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 + + ( + 22 ) - 63 * + 95 / - - COALESCE ( - 55, + 73 + - 59 + - - 3 + - 35 + - 61 + + MIN( ALL 99 ) * - 89 + COUNT( * ) * COUNT( * ) ) * 53 * + 40
----
NULL

skipif mysql # not compatible
query I rowsort label-5155
SELECT + COUNT ( * ) * - + COUNT ( - - 50 ) + COUNT ( DISTINCT 61 ) * - 48 + - COUNT ( * ) * - MAX ( ALL + 21 ) + - CAST ( NULL AS INTEGER ) + + 30 + + ( + 22 ) - 63 * + 95 / - - COALESCE ( - 55, + 73 + - 59 + - - 3 + - 35 + - 61 + + MIN ( ALL 99 ) * - 89 + COUNT ( * ) * COUNT ( * ) ) * 53 * + 40
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5156
SELECT COUNT( * ) * + 5 AS col1
----
5

skipif mysql # not compatible
query I rowsort label-5156
SELECT COUNT ( * ) * + 5 AS col1
----
5

query II rowsort
SELECT DISTINCT - 22 + + + 87 AS col0, - 64 AS col1
----
65
-64

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5158
SELECT ALL MAX( ALL + 0 ) DIV + - 19 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-5158
SELECT ALL MAX ( ALL + 0 ) / + - 19 AS col1
----
0

query III rowsort
SELECT DISTINCT - ( 68 ) AS col2, 1 AS col2, - - 87 AS col1
----
-68
1
87

onlyif mysql # aggregate syntax: 
query II rowsort label-5160
SELECT ALL 72 + - - 50 * 78 + COUNT( * ) * - 6 AS col2, - COUNT( * )
----
3966
-1

skipif mysql # not compatible
query II rowsort label-5160
SELECT ALL 72 + - - 50 * 78 + COUNT ( * ) * - 6 AS col2, - COUNT ( * )
----
3966
-1

query I rowsort
SELECT ALL ( + + 78 ) + + 86
----
164

onlyif mysql # aggregate syntax: 
query I rowsort label-5162
SELECT DISTINCT 89 * - COUNT( 88 )
----
-89

skipif mysql # not compatible
query I rowsort label-5162
SELECT DISTINCT 89 * - COUNT ( 88 )
----
-89

query I rowsort
SELECT DISTINCT 1 + 8 * - + 68 col2
----
-543

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5164
SELECT ALL ( - CASE + 66 WHEN + 27 * + + COALESCE ( 28, - CAST( NULL AS SIGNED ) ) THEN - 62 + 89 ELSE NULL END ) + - + CAST( NULL AS DECIMAL ) + - 65 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5164
SELECT ALL ( - CASE + 66 WHEN + 27 * + + COALESCE ( 28, - CAST ( NULL AS INTEGER ) ) THEN - 62 + 89 ELSE NULL END ) + - + CAST ( NULL AS REAL ) + - 65 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5165
SELECT COUNT( * ) * - ( - 50 ) * - - 74 * + + 46 AS col0, - 26 * - 89 AS col2
----
170200
2314

skipif mysql # not compatible
query II rowsort label-5165
SELECT COUNT ( * ) * - ( - 50 ) * - - 74 * + + 46 AS col0, - 26 * - 89 AS col2
----
170200
2314

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5166
SELECT CAST( + COALESCE ( + 63, 24 ) AS SIGNED ) - + 11 + 20 * + 80
----
1652

skipif mysql # not compatible
query I rowsort label-5166
SELECT CAST ( + COALESCE ( + 63, 24 ) AS INTEGER ) - + 11 + 20 * + 80
----
1652

query I rowsort
SELECT ALL 0 + + 68 * + - 7 AS col0
----
-476

query I rowsort
SELECT 0 + - CASE + + 62 WHEN + 59 * - 74 + - ( - - 2 ) * - - 91 / ( + + 32 ) THEN + ( - + 31 ) ELSE 85 END
----
-85

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5169
SELECT - CASE - 64 WHEN 96 - - 66 + - + 82 * + - ( - + 64 ) + 51 THEN - 72 * - COALESCE ( ( + 66 ), 44 * - 33 + CAST( - 76 AS DECIMAL ), 49 + - + 92 + - + 74 + - 47 * - + 14 + + + 74 * + ( + - 70 ) ) * 31 WHEN - 75 / + 56 THEN NULL END + 13 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5169
SELECT - CASE - 64 WHEN 96 - - 66 + - + 82 * + - ( - + 64 ) + 51 THEN - 72 * - COALESCE ( ( + 66 ), 44 * - 33 + CAST ( - 76 AS REAL ), 49 + - + 92 + - + 74 + - 47 * - + 14 + + + 74 * + ( + - 70 ) ) * 31 WHEN - 75 / + 56 THEN NULL END + 13 AS col0
----
NULL

query I rowsort
SELECT DISTINCT + 52 * + 71 + - 62 AS col1
----
3630

query I rowsort
SELECT 39 + + + 56 AS col0
----
95

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5172
SELECT - CASE - 5 WHEN - - 13 * + 10 + + 49 + + SUM( - - ( - 96 ) ) * + CAST( NULL AS SIGNED ) THEN COUNT( * ) * + - COUNT( * ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-5172
SELECT - CASE - 5 WHEN - - 13 * + 10 + + 49 + + SUM ( - - ( - 96 ) ) * + CAST ( NULL AS INTEGER ) THEN COUNT ( * ) * + - COUNT ( * ) ELSE NULL END
----
NULL

query I rowsort
SELECT + 38 + + + 48
----
86

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

skipif mysql # not compatible
query I rowsort label-5174
SELECT COUNT ( * ) * 85 + + COUNT ( * ) AS col1
----
86

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

skipif mysql # not compatible
query I rowsort label-5175
SELECT ALL - COUNT ( * ) * + + MIN ( 18 ) AS col1
----
-18

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5176
SELECT ALL + CAST( - - 16 AS SIGNED ) AS col0
----
16

skipif mysql # not compatible
query I rowsort label-5176
SELECT ALL + CAST ( - - 16 AS INTEGER ) AS col0
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-5177
SELECT 10 * + COALESCE ( + 39, - 22 * + NULLIF ( + COUNT( * ), MIN( ALL + 87 ) ), - 65 * + 19 * + COUNT( * ) ) AS col2
----
390

skipif mysql # not compatible
query I rowsort label-5177
SELECT 10 * + COALESCE ( + 39, - 22 * + NULLIF ( + COUNT ( * ), MIN ( ALL + 87 ) ), - 65 * + 19 * + COUNT ( * ) ) AS col2
----
390

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

onlyif mysql # DIV for integer division: 
query II rowsort label-5179
SELECT 90 DIV - + 88, 36 AS col2
----
-1
36

skipif mysql # not compatible
query II rowsort label-5179
SELECT 90 / - + 88, 36 AS col2
----
-1
36

onlyif mysql # aggregate syntax: 
query I rowsort label-5180
SELECT ALL + + 99 / - + CASE - - 0 WHEN + COUNT( DISTINCT 69 ) THEN - 96 * + 93 - - - 45 END * + 92 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5180
SELECT ALL + + 99 / - + CASE - - 0 WHEN + COUNT ( DISTINCT 69 ) THEN - 96 * + 93 - - - 45 END * + 92 col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5181
SELECT + 91 * 7 * + + 2 * + 32 - - 51 + 72 + - + COUNT( ALL + + 38 ) AS col2
----
40890

skipif mysql # not compatible
query I rowsort label-5181
SELECT + 91 * 7 * + + 2 * + 32 - - 51 + 72 + - + COUNT ( ALL + + 38 ) AS col2
----
40890

onlyif mysql # aggregate syntax: 
query I rowsort label-5182
SELECT 15 * - NULLIF ( 90, 32 ) * + ( - COUNT( * ) ) AS col0
----
1350

skipif mysql # not compatible
query I rowsort label-5182
SELECT 15 * - NULLIF ( 90, 32 ) * + ( - COUNT ( * ) ) AS col0
----
1350

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5183
SELECT CAST( NULL AS SIGNED ) / + 13 - 28, + COUNT( * ) + 96 - - 12 AS col1
----
NULL
109

skipif mysql # not compatible
query II rowsort label-5183
SELECT CAST ( NULL AS INTEGER ) / + 13 - 28, + COUNT ( * ) + 96 - - 12 AS col1
----
NULL
109

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5184
SELECT 92 * - 56 * 81 DIV + - COUNT( * )
----
417312

skipif mysql # not compatible
query I rowsort label-5184
SELECT 92 * - 56 * 81 / + - COUNT ( * )
----
417312

query I rowsort
SELECT DISTINCT 14 + - + 57
----
-43

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5186
SELECT ALL 73 + + + 26 + + CASE - 78 WHEN + 0 THEN NULL WHEN 23 * + 35 THEN 25 * NULLIF ( + 18, + COALESCE ( - 81, + + CASE + COUNT( * ) WHEN - 50 * - + 13 + + 85 THEN + CAST( NULL AS SIGNED ) END / + 16 / - ( - 47 ) + - CAST( NULL AS SIGNED ) * - 23 ) / 72 + - - 95 * - 99 * + COUNT( * ) ) ELSE - 7 END AS col0
----
92

skipif mysql # not compatible
query I rowsort label-5186
SELECT ALL 73 + + + 26 + + CASE - 78 WHEN + 0 THEN NULL WHEN 23 * + 35 THEN 25 * NULLIF ( + 18, + COALESCE ( - 81, + + CASE + COUNT ( * ) WHEN - 50 * - + 13 + + 85 THEN + CAST ( NULL AS INTEGER ) END / + 16 / - ( - 47 ) + - CAST ( NULL AS INTEGER ) * - 23 ) / 72 + - - 95 * - 99 * + COUNT ( * ) ) ELSE - 7 END AS col0
----
92

query I rowsort
SELECT DISTINCT + 45 + - 1
----
44

query I rowsort
SELECT 5 * 97
----
485

onlyif mysql # aggregate syntax: 
query I rowsort label-5189
SELECT ALL + COUNT( * ) + - 26 * - 89 * 39 * - 57 AS col1
----
-5144021

skipif mysql # not compatible
query I rowsort label-5189
SELECT ALL + COUNT ( * ) + - 26 * - 89 * 39 * - 57 AS col1
----
-5144021

query I rowsort
SELECT 36 * 20 - 14
----
706

onlyif mysql # aggregate syntax: 
query I rowsort label-5191
SELECT DISTINCT + 46 * - COUNT( * )
----
-46

skipif mysql # not compatible
query I rowsort label-5191
SELECT DISTINCT + 46 * - COUNT ( * )
----
-46

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-5192
SELECT DISTINCT - MIN( ALL - 0 ) + - COALESCE ( + + 50, - 84 DIV 25 + - 22 DIV + + CAST( - 73 AS SIGNED ) * 10 + - 39 * + COUNT( * ) * + + COALESCE ( + 67, + 48 + + - NULLIF ( + 53, + 98 ) ) ) * - + ( MIN( - 63 ) ), 96 + - ( + 22 ) + + ( COUNT( + + CAST( + - 84 AS SIGNED ) ) ) col2
----
-3150
75

skipif mysql # not compatible
query II rowsort label-5192
SELECT DISTINCT - MIN ( ALL - 0 ) + - COALESCE ( + + 50, - 84 / 25 + - 22 / + + CAST ( - 73 AS INTEGER ) * 10 + - 39 * + COUNT ( * ) * + + COALESCE ( + 67, + 48 + + - NULLIF ( + 53, + 98 ) ) ) * - + ( MIN ( - 63 ) ), 96 + - ( + 22 ) + + ( COUNT ( + + CAST ( + - 84 AS INTEGER ) ) ) col2
----
-3150
75

query I rowsort
SELECT DISTINCT - ( - - 31 )
----
-31

query I rowsort
SELECT ALL + 28 + 35
----
63

query I rowsort
SELECT DISTINCT 24 * + - 68
----
-1632

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

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

query I rowsort
SELECT NULLIF ( - 31, 69 * 71 ) * - + 66 + - - 21 + + 4
----
2071

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5198
SELECT ALL + NULLIF ( - 56, - + 66 + - 42 * - MAX( DISTINCT - 79 ) * - 70 - - 25 ) DIV + 26 col0
----
-2

skipif mysql # not compatible
query I rowsort label-5198
SELECT ALL + NULLIF ( - 56, - + 66 + - 42 * - MAX ( DISTINCT - 79 ) * - 70 - - 25 ) / + 26 col0
----
-2

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

skipif mysql # not compatible
query I rowsort label-5199
SELECT DISTINCT 17 - + - COUNT ( * ) AS col2
----
18

query I rowsort
SELECT DISTINCT + 81 * - 25 AS col1
----
-2025

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5201
SELECT DISTINCT + + COUNT( ALL + - 68 ) * - COUNT( * ) DIV 15, + 7 + 51 + + 31 AS col2
----
0
89

skipif mysql # not compatible
query II rowsort label-5201
SELECT DISTINCT + + COUNT ( ALL + - 68 ) * - COUNT ( * ) / 15, + 7 + 51 + + 31 AS col2
----
0
89

query I rowsort
SELECT 64 * 68 AS col0
----
4352

query I rowsort
SELECT 7 * - 14 AS col0
----
-98

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5205
SELECT ALL - COALESCE ( + 13, + 21 + ( - - 93 ) + + + NULLIF ( - 55, + MAX( DISTINCT - 3 ) / 10 ) )
----
-13

skipif mysql # not compatible
query I rowsort label-5205
SELECT ALL - COALESCE ( + 13, + 21 + ( - - 93 ) + + + NULLIF ( - 55, + MAX ( DISTINCT - 3 ) / 10 ) )
----
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-5206
SELECT ( + 31 ) + NULLIF ( + - COUNT( * ), + + 35 ) AS col2
----
30

skipif mysql # not compatible
query I rowsort label-5206
SELECT ( + 31 ) + NULLIF ( + - COUNT ( * ), + + 35 ) AS col2
----
30

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5207
SELECT - CAST( 92 AS SIGNED )
----
-92

skipif mysql # not compatible
query I rowsort label-5207
SELECT - CAST ( 92 AS INTEGER )
----
-92

query I rowsort
SELECT - 2 - + + NULLIF ( + 8, - 8 ) col2
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-5209
SELECT + 46 + 64 - COUNT( * )
----
109

skipif mysql # not compatible
query I rowsort label-5209
SELECT + 46 + 64 - COUNT ( * )
----
109

query II rowsort
SELECT + 99 AS col2, 96
----
99
96

query I rowsort
SELECT + - ( + - 36 ) + + 48 + COALESCE ( + 12, - 98 ) * + + 99 * + 70 AS col2
----
83244

onlyif mysql # aggregate syntax: 
query I rowsort label-5212
SELECT + + SUM( DISTINCT + - 32 ) + + - COUNT( * ) * + - NULLIF ( + 26, 23 ) col0
----
-6

skipif mysql # not compatible
query I rowsort label-5212
SELECT + + SUM ( DISTINCT + - 32 ) + + - COUNT ( * ) * + - NULLIF ( + 26, 23 ) col0
----
-6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5213
SELECT - + MIN( 5 ) - + CAST( 84 AS SIGNED ) * + 83 AS col0
----
-6977

skipif mysql # not compatible
query I rowsort label-5213
SELECT - + MIN ( 5 ) - + CAST ( 84 AS INTEGER ) * + 83 AS col0
----
-6977

onlyif mysql # aggregate syntax: 
query II rowsort label-5214
SELECT DISTINCT COUNT( * ) * 86 AS col0, 97 AS col0
----
86
97

skipif mysql # not compatible
query II rowsort label-5214
SELECT DISTINCT COUNT ( * ) * 86 AS col0, 97 AS col0
----
86
97

onlyif mysql # DIV for integer division: 
query I rowsort label-5215
SELECT + 43 + - 24 DIV + 94 * 64 AS col0
----
43

skipif mysql # not compatible
query I rowsort label-5215
SELECT + 43 + - 24 / + 94 * 64 AS col0
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-5216
SELECT ALL + 5 * 24 + 77 - + 11 + + 54 + + + ( 75 ) * MAX( + - 64 ) * + 59 * + 58 - + + 52 * COUNT( * )
----
-16425412

skipif mysql # not compatible
query I rowsort label-5216
SELECT ALL + 5 * 24 + 77 - + 11 + + 54 + + + ( 75 ) * MAX ( + - 64 ) * + 59 * + 58 - + + 52 * COUNT ( * )
----
-16425412

query I rowsort
SELECT + NULLIF ( - 98, + + 97 * - + 17 + - 57 + - - 31 * + 47 )
----
-98

query I rowsort
SELECT ALL 67 * 21 AS col2
----
1407

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5219
SELECT ALL - 44 * NULLIF ( - ( - 0 ), - COALESCE ( + AVG ( ALL - 7 ), + - ( - ( 55 ) ) * 4, - COUNT( * ) * - - 31 * + 1, + + 18 ) DIV 1 + 26 ) DIV - + 93 + 28 AS col1
----
28

skipif mysql # not compatible
query I rowsort label-5219
SELECT ALL - 44 * NULLIF ( - ( - 0 ), - COALESCE ( + AVG ( ALL - 7 ), + - ( - ( 55 ) ) * 4, - COUNT ( * ) * - - 31 * + 1, + + 18 ) / 1 + 26 ) / - + 93 + 28 AS col1
----
28

query I rowsort
SELECT - 37 + - 77 AS col0
----
-114

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5221
SELECT DISTINCT + COALESCE ( - 26, + 59 + + 67 ) * - - 87 + - - NULLIF ( - 6, NULLIF ( - + COUNT( * ), - 28 + + ( - + 41 ) + - 90 ) ) + + + 89 DIV - - 42 + + 16
----
-2250

skipif mysql # not compatible
query I rowsort label-5221
SELECT DISTINCT + COALESCE ( - 26, + 59 + + 67 ) * - - 87 + - - NULLIF ( - 6, NULLIF ( - + COUNT ( * ), - 28 + + ( - + 41 ) + - 90 ) ) + + + 89 / - - 42 + + 16
----
-2250

query I rowsort
SELECT ALL - 28 * - - 42 + - 37 AS col0
----
-1213

onlyif mysql # DIV for integer division: 
query II rowsort label-5223
SELECT NULLIF ( + 41, - 26 - - 70 ) AS col0, 16 DIV - 15 AS col0
----
41
-1

skipif mysql # not compatible
query II rowsort label-5223
SELECT NULLIF ( + 41, - 26 - - 70 ) AS col0, 16 / - 15 AS col0
----
41
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5224
SELECT - ( - 85 ) * 51 + - + COUNT( * ) + 6 DIV + 77 + - 20 - + + NULLIF ( - 1, - 81 * 23 * + 61 + + - 36 + - ( + 79 ) )
----
4315

skipif mysql # not compatible
query I rowsort label-5224
SELECT - ( - 85 ) * 51 + - + COUNT ( * ) + 6 / + 77 + - 20 - + + NULLIF ( - 1, - 81 * 23 * + 61 + + - 36 + - ( + 79 ) )
----
4315

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5225
SELECT - 9 / 37 * - CASE 54 WHEN + - CAST( NULL AS SIGNED ) * - ( + - 51 ) + + + 55 THEN - 1 END + 89 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5225
SELECT - 9 / 37 * - CASE 54 WHEN + - CAST ( NULL AS INTEGER ) * - ( + - 51 ) + + + 55 THEN - 1 END + 89 AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5226
SELECT + 77 DIV 15
----
5

skipif mysql # not compatible
query I rowsort label-5226
SELECT + 77 / 15
----
5

query I rowsort
SELECT - 83 * - 36 * - - 41 AS col2
----
122508

onlyif mysql # aggregate syntax: 
query I rowsort label-5228
SELECT DISTINCT - 96 * + 34 - - COUNT( * ) col1
----
-3263

skipif mysql # not compatible
query I rowsort label-5228
SELECT DISTINCT - 96 * + 34 - - COUNT ( * ) col1
----
-3263

onlyif mysql # DIV for integer division: 
query I rowsort label-5229
SELECT DISTINCT 18 DIV + 39 * + + 35 * - 60 * - 30
----
0

skipif mysql # not compatible
query I rowsort label-5229
SELECT DISTINCT 18 / + 39 * + + 35 * - 60 * - 30
----
0

query I rowsort
SELECT ALL 14 * - + 0 - 4
----
-4

query I rowsort
SELECT DISTINCT + 15 * 23
----
345

onlyif mysql # aggregate syntax: 
query I rowsort label-5232
SELECT ALL + CASE - 70 WHEN - COUNT( * ) / - + 73 THEN + COUNT( * ) * - 63 END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5232
SELECT ALL + CASE - 70 WHEN - COUNT ( * ) / - + 73 THEN + COUNT ( * ) * - 63 END col1
----
NULL

query I rowsort
SELECT - - ( 68 ) + + 73
----
141

query I rowsort
SELECT - - 2 * 46 AS col1
----
92

query I rowsort
SELECT + + 97 * 64
----
6208

query I rowsort
SELECT ALL + ( + 2 ) col1
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-5237
SELECT - MAX( + 78 ) * + 53 + + + 50
----
-4084

skipif mysql # not compatible
query I rowsort label-5237
SELECT - MAX ( + 78 ) * + 53 + + + 50
----
-4084

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5238
SELECT + COALESCE ( - CASE - 12 WHEN - + CAST( + 98 AS SIGNED ) THEN + 51 * - 2 WHEN - + 32 THEN NULL END, NULLIF ( MAX( 41 ), + + CAST( NULL AS SIGNED ) ), + 67 ) + + 64
----
105

skipif mysql # not compatible
query I rowsort label-5238
SELECT + COALESCE ( - CASE - 12 WHEN - + CAST ( + 98 AS INTEGER ) THEN + 51 * - 2 WHEN - + 32 THEN NULL END, NULLIF ( MAX ( 41 ), + + CAST ( NULL AS INTEGER ) ), + 67 ) + + 64
----
105

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5239
SELECT ALL CAST( + CASE 18 WHEN + 26 THEN + + 21 WHEN - - 38 THEN NULL WHEN - 14 THEN + 83 * 28 END AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5239
SELECT ALL CAST ( + CASE 18 WHEN + 26 THEN + + 21 WHEN - - 38 THEN NULL WHEN - 14 THEN + 83 * 28 END AS INTEGER )
----
NULL

query I rowsort
SELECT - 64 * - 65
----
4160

query I rowsort
SELECT ALL 3 * 49
----
147

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5242
SELECT DISTINCT - 8 * - + SUM( ALL - - 40 ) + + 85 AS col0, + SUM( ALL 45 ) DIV - 62 + - ( + 60 ) + - 22
----
405
-82

skipif mysql # not compatible
query II rowsort label-5242
SELECT DISTINCT - 8 * - + SUM ( ALL - - 40 ) + + 85 AS col0, + SUM ( ALL 45 ) / - 62 + - ( + 60 ) + - 22
----
405
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-5243
SELECT - - 75 * + MAX( - 3 ) * + + 62 AS col2
----
-13950

skipif mysql # not compatible
query I rowsort label-5243
SELECT - - 75 * + MAX ( - 3 ) * + + 62 AS col2
----
-13950

query I rowsort
SELECT + - 70 + + CASE - 12 WHEN 19 THEN 89 ELSE 66 END AS col0
----
-4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5245
SELECT DISTINCT 92 * + + ( + CAST( NULL AS SIGNED ) ) * + 19 + - AVG ( DISTINCT - 94 ) + + ( - 91 ) * ( + - 9 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5245
SELECT DISTINCT 92 * + + ( + CAST ( NULL AS INTEGER ) ) * + 19 + - AVG ( DISTINCT - 94 ) + + ( - 91 ) * ( + - 9 )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5246
SELECT + 36 + 15 AS col0, + ( - - CAST( + - 89 AS SIGNED ) ) AS col1
----
51
-89

skipif mysql # not compatible
query II rowsort label-5246
SELECT + 36 + 15 AS col0, + ( - - CAST ( + - 89 AS INTEGER ) ) AS col1
----
51
-89

query I rowsort
SELECT DISTINCT + 12 * + 83
----
996

query II rowsort
SELECT DISTINCT 95 AS col0, + 16 AS col2
----
95
16

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5250
SELECT CAST( - 33 AS SIGNED )
----
-33

skipif mysql # not compatible
query I rowsort label-5250
SELECT CAST ( - 33 AS INTEGER )
----
-33

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5251
SELECT + CAST( - + 48 AS SIGNED )
----
-48

skipif mysql # not compatible
query I rowsort label-5251
SELECT + CAST ( - + 48 AS INTEGER )
----
-48

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5252
SELECT CAST( + CASE 2 WHEN - - COALESCE ( - + COUNT( * ), + 89 ) THEN + + COUNT( * ) * - - CAST( 97 AS DECIMAL ) + + 13 - - COUNT( + 29 ) + - 96 ELSE NULL END AS SIGNED ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5252
SELECT CAST ( + CASE 2 WHEN - - COALESCE ( - + COUNT ( * ), + 89 ) THEN + + COUNT ( * ) * - - CAST ( 97 AS REAL ) + + 13 - - COUNT ( + 29 ) + - 96 ELSE NULL END AS INTEGER ) col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5253
SELECT + 7 * 54 * + - MIN( 3 ) AS col0
----
-1134

skipif mysql # not compatible
query I rowsort label-5253
SELECT + 7 * 54 * + - MIN ( 3 ) AS col0
----
-1134

query I rowsort
SELECT ALL 13 * - 54 AS col0
----
-702

query I rowsort
SELECT + 54 + - 91 AS col2
----
-37

query I rowsort
SELECT ALL 66 * - + 54 AS col2
----
-3564

query I rowsort
SELECT ALL 77 * 95 AS col0
----
7315

query I rowsort
SELECT ( - - 45 )
----
45

query I rowsort
SELECT + 35 * + 99 * 12
----
41580

onlyif mysql # aggregate syntax: 
query I rowsort label-5260
SELECT - 41 * COUNT( * ) * + - 13 col1
----
533

skipif mysql # not compatible
query I rowsort label-5260
SELECT - 41 * COUNT ( * ) * + - 13 col1
----
533

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5262
SELECT ALL - 20 DIV - - 29
----
0

skipif mysql # not compatible
query I rowsort label-5262
SELECT ALL - 20 / - - 29
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5263
SELECT + COUNT( * ) * - 14 + 3 DIV - + 45 * + COALESCE ( - 32, 1 ) - + - COUNT( * ) + + ( - 75 ) + - 5 * - 65 AS col0
----
237

skipif mysql # not compatible
query I rowsort label-5263
SELECT + COUNT ( * ) * - 14 + 3 / - + 45 * + COALESCE ( - 32, 1 ) - + - COUNT ( * ) + + ( - 75 ) + - 5 * - 65 AS col0
----
237

onlyif mysql # aggregate syntax: 
query I rowsort label-5264
SELECT + - COALESCE ( - + COUNT( * ), + - COALESCE ( COUNT( * ), - ( + - ( 65 ) ) + + 87, NULLIF ( - COUNT( * ), + 17 ) ) ) * + CASE - - 90 WHEN 23 THEN - - 15 * 89 + NULLIF ( - 79, + NULLIF ( 26, + 67 - - + 79 ) * - + COALESCE ( MAX( - - 52 ), + 1 ) * 48 ) * + MAX( DISTINCT - + 14 ) - - 60 END + 93 / + 92 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5264
SELECT + - COALESCE ( - + COUNT ( * ), + - COALESCE ( COUNT ( * ), - ( + - ( 65 ) ) + + 87, NULLIF ( - COUNT ( * ), + 17 ) ) ) * + CASE - - 90 WHEN 23 THEN - - 15 * 89 + NULLIF ( - 79, + NULLIF ( 26, + 67 - - + 79 ) * - + COALESCE ( MAX ( - - 52 ), + 1 ) * 48 ) * + MAX ( DISTINCT - + 14 ) - - 60 END + 93 / + 92 AS col1
----
NULL

query I rowsort
SELECT ALL + 71 * - 81 AS col1
----
-5751

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5266
SELECT - 48 DIV + + 6 + + 19 + + 5 + + 3 * - - MIN( - 49 ) + + 24
----
-107

skipif mysql # not compatible
query I rowsort label-5266
SELECT - 48 / + + 6 + + 19 + + 5 + + 3 * - - MIN ( - 49 ) + + 24
----
-107

query II rowsort
SELECT - 88, + 59 + + 20 AS col0
----
-88
79

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5268
SELECT ALL - ( + + 40 ) * - 68 * COALESCE ( + + 30, + 29 ) * - - 3 + - 5 * - ( 17 ) + 79 + - 38 - + 26 DIV - COUNT( * ) AS col2
----
244952

skipif mysql # not compatible
query I rowsort label-5268
SELECT ALL - ( + + 40 ) * - 68 * COALESCE ( + + 30, + 29 ) * - - 3 + - 5 * - ( 17 ) + 79 + - 38 - + 26 / - COUNT ( * ) AS col2
----
244952

query II rowsort
SELECT + 21, + 17 col2
----
21
17

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5270
SELECT ALL - MIN( + CAST( - + 30 AS SIGNED ) ) + 62
----
92

skipif mysql # not compatible
query I rowsort label-5270
SELECT ALL - MIN ( + CAST ( - + 30 AS INTEGER ) ) + 62
----
92

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

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

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5273
SELECT - CAST( NULL AS DECIMAL ) - - 87
----
NULL

skipif mysql # not compatible
query I rowsort label-5273
SELECT - CAST ( NULL AS REAL ) - - 87
----
NULL

query II rowsort
SELECT DISTINCT + 68 AS col1, 20 + - 15 AS col1
----
68
5

query I rowsort
SELECT 26 + + 97 AS col2
----
123

onlyif mysql # aggregate syntax: 
query I rowsort label-5276
SELECT MIN( 55 ) + + 80 + - 46 AS col2
----
89

skipif mysql # not compatible
query I rowsort label-5276
SELECT MIN ( 55 ) + + 80 + - 46 AS col2
----
89

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

query I rowsort
SELECT - 64 + 23 * + 85 AS col2
----
1891

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

skipif mysql # not compatible
query I rowsort label-5279
SELECT - + ( - - ( - + COALESCE ( 64, + 69 + + COUNT ( * ) ) ) )
----
64

query I rowsort
SELECT ALL + 83 + - ( + - 98 ) AS col1
----
181

query I rowsort
SELECT 96 - + 1 * + 55
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-5282
SELECT ALL COUNT( * ) + + COUNT( * ) * - 98 + COUNT( 36 ) col2
----
-96

skipif mysql # not compatible
query I rowsort label-5282
SELECT ALL COUNT ( * ) + + COUNT ( * ) * - 98 + COUNT ( 36 ) col2
----
-96

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5283
SELECT ALL - 4 DIV - 72 * - + 5 * + ( + COUNT( * ) )
----
0

skipif mysql # not compatible
query I rowsort label-5283
SELECT ALL - 4 / - 72 * - + 5 * + ( + COUNT ( * ) )
----
0

query I rowsort
SELECT 92 * ( 96 )
----
8832

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

skipif mysql # not compatible
query I rowsort label-5285
SELECT NULLIF ( - COUNT ( * ), - 53 ) + + + 62
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-5286
SELECT DISTINCT - CASE 33 WHEN - 85 + - 93 THEN - COUNT( * ) + - 15 WHEN 94 * MAX( 57 ) * 74 + - 98 + - + COUNT( * ) / + 76 * - 23 * + 64 * + + 45 * + - COALESCE ( + 30, + COUNT( ALL + 23 ) * - 34, + + 69 + + 69 ) / 24 THEN NULL ELSE 65 END * + 63 * - 29
----
118755

skipif mysql # not compatible
query I rowsort label-5286
SELECT DISTINCT - CASE 33 WHEN - 85 + - 93 THEN - COUNT ( * ) + - 15 WHEN 94 * MAX ( 57 ) * 74 + - 98 + - + COUNT ( * ) / + 76 * - 23 * + 64 * + + 45 * + - COALESCE ( + 30, + COUNT ( ALL + 23 ) * - 34, + + 69 + + 69 ) / 24 THEN NULL ELSE 65 END * + 63 * - 29
----
118755

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-5287
SELECT 25 AS col1, + NULLIF ( + - COUNT( * ), - + CAST( NULL AS SIGNED ) ) DIV + + 15 col0
----
25
0

skipif mysql # not compatible
query II rowsort label-5287
SELECT 25 AS col1, + NULLIF ( + - COUNT ( * ), - + CAST ( NULL AS INTEGER ) ) / + + 15 col0
----
25
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5288
SELECT COUNT( * ) + MIN( DISTINCT - 81 ) AS col2
----
-80

skipif mysql # not compatible
query I rowsort label-5288
SELECT COUNT ( * ) + MIN ( DISTINCT - 81 ) AS col2
----
-80

query II rowsort
SELECT 11 + 98, 70 AS col1
----
109
70

onlyif mysql # aggregate syntax: 
query I rowsort label-5290
SELECT COUNT( * ) * MIN( ALL + - 84 )
----
-84

skipif mysql # not compatible
query I rowsort label-5290
SELECT COUNT ( * ) * MIN ( ALL + - 84 )
----
-84

query I rowsort
SELECT 56 - 42 * - ( + 83 )
----
3542

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5292
SELECT DISTINCT + 87 * + 9 * + CAST( 13 AS SIGNED ) AS col1
----
10179

skipif mysql # not compatible
query I rowsort label-5292
SELECT DISTINCT + 87 * + 9 * + CAST ( 13 AS INTEGER ) AS col1
----
10179

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

skipif mysql # not compatible
query I rowsort label-5293
SELECT COUNT ( * ) / - - 8 AS col1
----
0

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5296
SELECT 46 * 12 DIV - - 16 AS col1
----
34

skipif mysql # not compatible
query I rowsort label-5296
SELECT 46 * 12 / - - 16 AS col1
----
34

query II rowsort
SELECT ALL - 17 AS col0, 60
----
-17
60

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query III rowsort label-5298
SELECT DISTINCT - 88 AS col0, + 52 * + + 9 * + + COUNT( * ), - NULLIF ( + - 0, ( + 50 ) + 3 * - CAST( NULL AS SIGNED ) * + 45 ) * - 77 - + 64 DIV CAST( 14 AS SIGNED ) AS col1
----
-88
468
-4

skipif mysql # not compatible
query III rowsort label-5298
SELECT DISTINCT - 88 AS col0, + 52 * + + 9 * + + COUNT ( * ), - NULLIF ( + - 0, ( + 50 ) + 3 * - CAST ( NULL AS INTEGER ) * + 45 ) * - 77 - + 64 / CAST ( 14 AS INTEGER ) AS col1
----
-88
468
-4

query II rowsort
SELECT + 28, - 52 col2
----
28
-52

query I rowsort
SELECT 15 * + 30 + - 82 AS col1
----
368

query I rowsort
SELECT 36 * - 10 AS col1
----
-360

query I rowsort
SELECT 71 * - 99
----
-7029

query II rowsort
SELECT + 86 AS col1, 47
----
86
47

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5305
SELECT ALL - SUM( ALL - 62 )
----
62

skipif mysql # not compatible
query I rowsort label-5305
SELECT ALL - SUM ( ALL - 62 )
----
62

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5306
SELECT ALL - + CAST( - CAST( + - CASE - NULLIF ( + + 17, 32 + + 71 * - 31 ) WHEN 93 + - ( + - 90 ) + + 10 THEN - - 45 + 0 WHEN + 74 THEN NULL END AS SIGNED ) AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5306
SELECT ALL - + CAST ( - CAST ( + - CASE - NULLIF ( + + 17, 32 + + 71 * - 31 ) WHEN 93 + - ( + - 90 ) + + 10 THEN - - 45 + 0 WHEN + 74 THEN NULL END AS INTEGER ) AS INTEGER )
----
NULL

query II rowsort
SELECT + - ( + 41 ) AS col2, - COALESCE ( NULLIF ( + 82, ( - ( + + 53 ) ) * - - 12 + - - 24 ), - 32 ) - + 19 AS col1
----
-41
-101

query II rowsort
SELECT ALL - 89 + - 98, + 79 col1
----
-187
79

query I rowsort
SELECT DISTINCT - 31 + 27
----
-4

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5311
SELECT ALL + + 32 + + - 17 * - CAST( NULL AS DECIMAL ) + - COUNT( * ) + - 57 / + ( + COUNT( * ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-5311
SELECT ALL + + 32 + + - 17 * - CAST ( NULL AS REAL ) + - COUNT ( * ) + - 57 / + ( + COUNT ( * ) )
----
NULL

query I rowsort
SELECT DISTINCT COALESCE ( + - 84, + 34 + - - 15 ) + + 98
----
14

query I rowsort
SELECT 62 + 47 AS col2
----
109

query II rowsort
SELECT + + 64, 32 AS col1
----
64
32

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5315
SELECT + - 2 * + 27 / - CAST( NULL AS SIGNED ) + + 48 / + ( + - SUM( DISTINCT + - 60 ) ) * 95 * - - 42
----
NULL

skipif mysql # not compatible
query I rowsort label-5315
SELECT + - 2 * + 27 / - CAST ( NULL AS INTEGER ) + + 48 / + ( + - SUM ( DISTINCT + - 60 ) ) * 95 * - - 42
----
NULL

query II rowsort
SELECT - + 54 AS col0, 7
----
-54
7

onlyif mysql # aggregate syntax: 
query I rowsort label-5317
SELECT COUNT( * ) * 68 AS col2
----
68

skipif mysql # not compatible
query I rowsort label-5317
SELECT COUNT ( * ) * 68 AS col2
----
68

onlyif mysql # aggregate syntax: 
query II rowsort label-5318
SELECT DISTINCT MAX( DISTINCT 75 ) col1, 98 * + - 59 AS col2
----
75
-5782

skipif mysql # not compatible
query II rowsort label-5318
SELECT DISTINCT MAX ( DISTINCT 75 ) col1, 98 * + - 59 AS col2
----
75
-5782

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-5321
SELECT - 1 AS col2, - 23 - SUM( ALL + 52 ) + - 76
----
-1
-151

skipif mysql # not compatible
query II rowsort label-5321
SELECT - 1 AS col2, - 23 - SUM ( ALL + 52 ) + - 76
----
-1
-151

onlyif mysql # aggregate syntax: 
query I rowsort label-5322
SELECT 10 + - - CASE COUNT( * ) WHEN + 74 * 7 THEN - 52 WHEN + - 81 + + 90 THEN NULL WHEN 94 THEN 66 * 22 END
----
NULL

skipif mysql # not compatible
query I rowsort label-5322
SELECT 10 + - - CASE COUNT ( * ) WHEN + 74 * 7 THEN - 52 WHEN + - 81 + + 90 THEN NULL WHEN 94 THEN 66 * 22 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5323
SELECT ALL 54 - COUNT( * ) col1
----
53

skipif mysql # not compatible
query I rowsort label-5323
SELECT ALL 54 - COUNT ( * ) col1
----
53

query I rowsort
SELECT 31 + 38 + - 33 * 81 AS col2
----
-2604

onlyif mysql # aggregate syntax: 
query II rowsort label-5325
SELECT COUNT( * ) * 80 AS col1, 22 AS col2
----
80
22

skipif mysql # not compatible
query II rowsort label-5325
SELECT COUNT ( * ) * 80 AS col1, 22 AS col2
----
80
22

onlyif mysql # aggregate syntax: 
query II rowsort label-5326
SELECT ALL COUNT( DISTINCT + 55 ) col0, 81 AS col1
----
1
81

skipif mysql # not compatible
query II rowsort label-5326
SELECT ALL COUNT ( DISTINCT + 55 ) col0, 81 AS col1
----
1
81

query II rowsort
SELECT 40 * - 85 AS col2, 8 * + ( - 46 ) * + 49 AS col0
----
-3400
-18032

query I rowsort
SELECT - 8 * 91 + 37 AS col1
----
-691

onlyif mysql # aggregate syntax: 
query I rowsort label-5329
SELECT ALL + 38 * + - 70 * - + COUNT( * ) AS col2
----
2660

skipif mysql # not compatible
query I rowsort label-5329
SELECT ALL + 38 * + - 70 * - + COUNT ( * ) AS col2
----
2660

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5330
SELECT COUNT( * ) * - 97 / - ( + CAST( + CAST( NULL AS DECIMAL ) AS SIGNED ) ) - + 94 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5330
SELECT COUNT ( * ) * - 97 / - ( + CAST ( + CAST ( NULL AS REAL ) AS INTEGER ) ) - + 94 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5331
SELECT MAX( DISTINCT + 57 ) AS col1
----
57

skipif mysql # not compatible
query I rowsort label-5331
SELECT MAX ( DISTINCT + 57 ) AS col1
----
57

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5332
SELECT COUNT( DISTINCT - 67 ) DIV - - 1 + 41 col2
----
42

skipif mysql # not compatible
query I rowsort label-5332
SELECT COUNT ( DISTINCT - 67 ) / - - 1 + 41 col2
----
42

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-5333
SELECT ALL + 42 * + + 41 + + 35 DIV + CAST( - 53 AS SIGNED ) AS col0, COALESCE ( - 7, COUNT( * ), + 33 ) * + 55 + - - ( ( + 80 ) ) - - + 90 col2
----
1722
-215

skipif mysql # not compatible
query II rowsort label-5333
SELECT ALL + 42 * + + 41 + + 35 / + CAST ( - 53 AS INTEGER ) AS col0, COALESCE ( - 7, COUNT ( * ), + 33 ) * + 55 + - - ( ( + 80 ) ) - - + 90 col2
----
1722
-215

query I rowsort
SELECT DISTINCT + 27 * - - CASE - 34 WHEN + 67 THEN 65 WHEN + 93 * 10 THEN - 14 WHEN + + 94 * 76 * - 90 + 51 THEN NULL ELSE NULL END * + + 25 + + 17 + 79
----
NULL

query I rowsort
SELECT - 72 col0
----
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-5336
SELECT + + 57 * + + 97 * + - COUNT( * ) + + 27 AS col2
----
-5502

skipif mysql # not compatible
query I rowsort label-5336
SELECT + + 57 * + + 97 * + - COUNT ( * ) + + 27 AS col2
----
-5502

onlyif mysql # aggregate syntax: 
query II rowsort label-5337
SELECT - SUM( - 63 ) AS col0, COUNT( * ) + 85
----
63
86

skipif mysql # not compatible
query II rowsort label-5337
SELECT - SUM ( - 63 ) AS col0, COUNT ( * ) + 85
----
63
86

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

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

query I rowsort
SELECT + - 97 * 79 AS col0
----
-7663

query I rowsort
SELECT + - 38 + - 21 AS col0
----
-59

query I rowsort
SELECT DISTINCT + 84 col0
----
84

query I rowsort
SELECT ALL + - 2
----
-2

query I rowsort
SELECT DISTINCT + 25 * + 37
----
925

onlyif mysql # aggregate syntax: 
query I rowsort label-5344
SELECT + 2 + + 57 * - + SUM( - - 29 ) col0
----
-1651

skipif mysql # not compatible
query I rowsort label-5344
SELECT + 2 + + 57 * - + SUM ( - - 29 ) col0
----
-1651

onlyif mysql # aggregate syntax: 
query II rowsort label-5345
SELECT + 79 + - COALESCE ( + - 66, 14 ) AS col1, COUNT( * )
----
145
1

skipif mysql # not compatible
query II rowsort label-5345
SELECT + 79 + - COALESCE ( + - 66, 14 ) AS col1, COUNT ( * )
----
145
1

query II rowsort
SELECT ALL - 15 * ( - + 1 ) AS col0, + 34 * - 45
----
15
-1530

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

skipif mysql # not compatible
query I rowsort label-5347
SELECT + 49 + - 10 + + COUNT ( * ) - 57 AS col2
----
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-5348
SELECT - COUNT( * ) + - 70 - COUNT( * ) + + SUM( ALL - 6 ) * + - 85 + 95 + 84
----
617

skipif mysql # not compatible
query I rowsort label-5348
SELECT - COUNT ( * ) + - 70 - COUNT ( * ) + + SUM ( ALL - 6 ) * + - 85 + 95 + 84
----
617

query I rowsort
SELECT + 36 * - 7 AS col0
----
-252

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

skipif mysql # not compatible
query I rowsort label-5350
SELECT DISTINCT ( + 68 ) + - + COUNT ( * ) AS col2
----
67

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

query II rowsort
SELECT - 73 col2, CASE - - 50 WHEN - 75 THEN 25 / + - 81 END * - - 74 + + 75
----
-73
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5353
SELECT - 65 + - NULLIF ( + 0, - - 29 ) + + 11 * MIN( + 77 ) * - 10 col0
----
-8535

skipif mysql # not compatible
query I rowsort label-5353
SELECT - 65 + - NULLIF ( + 0, - - 29 ) + + 11 * MIN ( + 77 ) * - 10 col0
----
-8535

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5354
SELECT ALL 4 DIV + COALESCE ( + 82, + MAX( ( - 61 ) ) ) + 79
----
79

skipif mysql # not compatible
query I rowsort label-5354
SELECT ALL 4 / + COALESCE ( + 82, + MAX ( ( - 61 ) ) ) + 79
----
79

onlyif mysql # DIV for integer division: 
query II rowsort label-5355
SELECT DISTINCT 54 DIV - NULLIF ( - 86, 93 + - 33 ) + + + 57 AS col2, 45 AS col2
----
57
45

skipif mysql # not compatible
query II rowsort label-5355
SELECT DISTINCT 54 / - NULLIF ( - 86, 93 + - 33 ) + + + 57 AS col2, 45 AS col2
----
57
45

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5356
SELECT ALL 22 / + 67 * - - CAST( NULL AS SIGNED ) + 79, - 30 * + 46 AS col0
----
NULL
-1380

skipif mysql # not compatible
query II rowsort label-5356
SELECT ALL 22 / + 67 * - - CAST ( NULL AS INTEGER ) + 79, - 30 * + 46 AS col0
----
NULL
-1380

query I rowsort
SELECT ( + 2 ) col2
----
2

query I rowsort
SELECT - 28 + - + 22
----
-50

query I rowsort
SELECT + COALESCE ( - 41, + + 98 )
----
-41

query I rowsort
SELECT + - COALESCE ( - 24, + + 78 + + - 65 )
----
24

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5361
SELECT ALL 98 * + 0 + + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5361
SELECT ALL 98 * + 0 + + - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5362
SELECT + - ( + 79 ) * - COUNT( * ) + - CASE - AVG ( + 98 ) WHEN - + 34 * 8 THEN NULL WHEN - + 41 / - - 77 THEN - 19 ELSE - + 80 + 72 END * + COUNT( * ) AS col2
----
87

skipif mysql # not compatible
query I rowsort label-5362
SELECT + - ( + 79 ) * - COUNT ( * ) + - CASE - AVG ( + 98 ) WHEN - + 34 * 8 THEN NULL WHEN - + 41 / - - 77 THEN - 19 ELSE - + 80 + 72 END * + COUNT ( * ) AS col2
----
87

query II rowsort
SELECT ALL + 81, 38 AS col1
----
81
38

query I rowsort
SELECT ALL + 86 * - 19 - 60 AS col2
----
-1694

onlyif mysql # aggregate syntax: 
query I rowsort label-5365
SELECT DISTINCT + + 44 * - + SUM( ALL - - 49 ) col2
----
-2156

skipif mysql # not compatible
query I rowsort label-5365
SELECT DISTINCT + + 44 * - + SUM ( ALL - - 49 ) col2
----
-2156

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5366
SELECT - 64 * ( - 30 ) + + + 46 - AVG ( DISTINCT - - NULLIF ( - 72, + ( + 8 ) ) ) + + ( CAST( NULL AS SIGNED ) ) + + 79
----
NULL

skipif mysql # not compatible
query I rowsort label-5366
SELECT - 64 * ( - 30 ) + + + 46 - AVG ( DISTINCT - - NULLIF ( - 72, + ( + 8 ) ) ) + + ( CAST ( NULL AS INTEGER ) ) + + 79
----
NULL

query I rowsort
SELECT + + ( - 93 ) + + 45 AS col2
----
-48

query I rowsort
SELECT - - 41 * + 12
----
492

onlyif mysql # aggregate syntax: 
query I rowsort label-5369
SELECT + - COUNT( * ) + + 23 AS col0
----
22

skipif mysql # not compatible
query I rowsort label-5369
SELECT + - COUNT ( * ) + + 23 AS col0
----
22

onlyif mysql # aggregate syntax: 
query II rowsort label-5370
SELECT COUNT( + 8 ), COUNT( ALL - 13 ) AS col0
----
1
1

skipif mysql # not compatible
query II rowsort label-5370
SELECT COUNT ( + 8 ), COUNT ( ALL - 13 ) AS col0
----
1
1

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

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

skipif mysql # not compatible
query I rowsort label-5372
SELECT + 8 / - 48
----
0

query I rowsort
SELECT ALL 13 * - 16 AS col2
----
-208

query I rowsort
SELECT - 19 * 10 AS col2
----
-190

query I rowsort
SELECT + 25 * + ( - 40 ) AS col1
----
-1000

onlyif mysql # aggregate syntax: 
query I rowsort label-5376
SELECT + 13 - + + MAX( - NULLIF ( + 10, + 29 ) ) AS col1
----
23

skipif mysql # not compatible
query I rowsort label-5376
SELECT + 13 - + + MAX ( - NULLIF ( + 10, + 29 ) ) AS col1
----
23

query I rowsort
SELECT - NULLIF ( + 23, - + 74 * 13 ) AS col2
----
-23

query I rowsort
SELECT + 89 * - 93
----
-8277

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5379
SELECT DISTINCT 12 + + COALESCE ( - 5, + 57 DIV + + COALESCE ( 49, + 84 ) * 73 DIV + 38 + + CASE MIN( DISTINCT + 78 ) WHEN + 69 THEN - 52 END ) AS col1
----
7

skipif mysql # not compatible
query I rowsort label-5379
SELECT DISTINCT 12 + + COALESCE ( - 5, + 57 / + + COALESCE ( 49, + 84 ) * 73 / + 38 + + CASE MIN ( DISTINCT + 78 ) WHEN + 69 THEN - 52 END ) AS col1
----
7

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-5381
SELECT DISTINCT - CASE - 29 WHEN + - 59 + + COUNT( * ) / + 75 * 68 THEN - 35 / - SUM( DISTINCT + 81 ) + 80 WHEN + 95 THEN + - 37 / + - COUNT( * ) END * - + 8 AS col0, 89 + + + 98 AS col2
----
NULL
187

skipif mysql # not compatible
query II rowsort label-5381
SELECT DISTINCT - CASE - 29 WHEN + - 59 + + COUNT ( * ) / + 75 * 68 THEN - 35 / - SUM ( DISTINCT + 81 ) + 80 WHEN + 95 THEN + - 37 / + - COUNT ( * ) END * - + 8 AS col0, 89 + + + 98 AS col2
----
NULL
187

onlyif mysql # aggregate syntax: 
query I rowsort label-5382
SELECT ALL 0 * - - NULLIF ( COUNT( * ), 22 + - + 10 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-5382
SELECT ALL 0 * - - NULLIF ( COUNT ( * ), 22 + - + 10 ) AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5383
SELECT ALL - 52 + 46 - - SUM( DISTINCT + 61 )
----
55

skipif mysql # not compatible
query I rowsort label-5383
SELECT ALL - 52 + 46 - - SUM ( DISTINCT + 61 )
----
55

onlyif mysql # DIV for integer division: 
query I rowsort label-5384
SELECT + + NULLIF ( + 40, - - 87 DIV - 94 - - 40 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5384
SELECT + + NULLIF ( + 40, - - 87 / - 94 - - 40 ) AS col1
----
NULL

query I rowsort
SELECT ( 4 ) AS col1
----
4

query I rowsort
SELECT DISTINCT - + 57
----
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-5387
SELECT ALL 62 - + COUNT( * ) * - 11
----
73

skipif mysql # not compatible
query I rowsort label-5387
SELECT ALL 62 - + COUNT ( * ) * - 11
----
73

onlyif mysql # aggregate syntax: 
query II rowsort label-5388
SELECT ALL - - 70 - - - 98 AS col1, COUNT( * )
----
-28
1

skipif mysql # not compatible
query II rowsort label-5388
SELECT ALL - - 70 - - - 98 AS col1, COUNT ( * )
----
-28
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5389
SELECT MAX( + - ( + 32 ) ) * - 19 col1
----
608

skipif mysql # not compatible
query I rowsort label-5389
SELECT MAX ( + - ( + 32 ) ) * - 19 col1
----
608

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5390
SELECT - 75 * + COALESCE ( + 6, CAST( + 50 AS SIGNED ) * - + COUNT( * ) + 68 - + 53 + + - 76 ) - 93 + - 33 * - - NULLIF ( - 0, + + MAX( DISTINCT + 34 ) + - 53 * + 45 * + - 9 + CAST( - 94 AS DECIMAL ) / COUNT( * ) )
----
-543

skipif mysql # not compatible
query I rowsort label-5390
SELECT - 75 * + COALESCE ( + 6, CAST ( + 50 AS INTEGER ) * - + COUNT ( * ) + 68 - + 53 + + - 76 ) - 93 + - 33 * - - NULLIF ( - 0, + + MAX ( DISTINCT + 34 ) + - 53 * + 45 * + - 9 + CAST ( - 94 AS REAL ) / COUNT ( * ) )
----
-543

query I rowsort
SELECT - 64 * + - 32
----
2048

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5392
SELECT ALL - 15 * - + 0 + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5392
SELECT ALL - 15 * - + 0 + CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5393
SELECT - 30 * + 79 - - COUNT( * )
----
-2369

skipif mysql # not compatible
query I rowsort label-5393
SELECT - 30 * + 79 - - COUNT ( * )
----
-2369

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

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

query I rowsort
SELECT DISTINCT - ( - 83 ) * - + 48 AS col0
----
-3984

onlyif mysql # aggregate syntax: 
query I rowsort label-5396
SELECT ALL + SUM( DISTINCT + - 60 ) + + 37 + - SUM( 82 ) + + 41 AS col0
----
-64

skipif mysql # not compatible
query I rowsort label-5396
SELECT ALL + SUM ( DISTINCT + - 60 ) + + 37 + - SUM ( 82 ) + + 41 AS col0
----
-64

query I rowsort
SELECT 56 * - 22
----
-1232

onlyif mysql # aggregate syntax: 
query I rowsort label-5398
SELECT 30 + + - MAX( + 5 )
----
25

skipif mysql # not compatible
query I rowsort label-5398
SELECT 30 + + - MAX ( + 5 )
----
25

query I rowsort
SELECT 65 * + 23
----
1495

query I rowsort
SELECT ALL - 51 + 65 AS col0
----
14

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5402
SELECT COUNT( - + 20 ) - - 82 AS col2
----
83

skipif mysql # not compatible
query I rowsort label-5402
SELECT COUNT ( - + 20 ) - - 82 AS col2
----
83

query I rowsort
SELECT 55 + 71 * - + 54
----
-3779

query II rowsort
SELECT ALL - ( + - 28 ) + - 98, 46 AS col1
----
-70
46

query II rowsort
SELECT DISTINCT 66 AS col0, 25 AS col2
----
66
25

onlyif mysql # aggregate syntax: 
query I rowsort label-5406
SELECT ALL 53 + - - 70 + 13 + - 6 * + 38 * + + ( + + COUNT( * ) )
----
-92

skipif mysql # not compatible
query I rowsort label-5406
SELECT ALL 53 + - - 70 + 13 + - 6 * + 38 * + + ( + + COUNT ( * ) )
----
-92

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

skipif mysql # not compatible
query I rowsort label-5407
SELECT 81 + + + CAST ( NULL AS INTEGER ) + + - 65 col0
----
NULL

query I rowsort
SELECT DISTINCT 59 + - 80
----
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-5409
SELECT 0 + + NULLIF ( 18, + - 70 ) + - 94 + - COUNT( * ) - - - 84 AS col1
----
-161

skipif mysql # not compatible
query I rowsort label-5409
SELECT 0 + + NULLIF ( 18, + - 70 ) + - 94 + - COUNT ( * ) - - - 84 AS col1
----
-161

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5410
SELECT 71 * + 14 * + + MAX( ALL + NULLIF ( 37, - COALESCE ( + CAST( 71 AS SIGNED ), + 33 * + + 11 * + + COALESCE ( - - 86, + - 32, + + 5 * - 9, 43 * - 24 ) ) ) ) * - 51, + 84 AS col2
----
-1875678
84

skipif mysql # not compatible
query II rowsort label-5410
SELECT 71 * + 14 * + + MAX ( ALL + NULLIF ( 37, - COALESCE ( + CAST ( 71 AS INTEGER ), + 33 * + + 11 * + + COALESCE ( - - 86, + - 32, + + 5 * - 9, 43 * - 24 ) ) ) ) * - 51, + 84 AS col2
----
-1875678
84

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

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

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

query I rowsort
SELECT DISTINCT - ( ( 84 ) )
----
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-5414
SELECT ALL - COUNT( * ) - 23 AS col0
----
-24

skipif mysql # not compatible
query I rowsort label-5414
SELECT ALL - COUNT ( * ) - 23 AS col0
----
-24

query I rowsort
SELECT DISTINCT 24 * + - 73 AS col2
----
-1752

query I rowsort
SELECT ALL + 40 - 91
----
-51

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5417
SELECT ALL - CAST( - MIN( + 54 ) AS SIGNED )
----
54

skipif mysql # not compatible
query I rowsort label-5417
SELECT ALL - CAST ( - MIN ( + 54 ) AS INTEGER )
----
54

onlyif mysql # DIV for integer division: 
query I rowsort label-5418
SELECT + 12 DIV - - 76 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-5418
SELECT + 12 / - - 76 AS col0
----
0

query I rowsort
SELECT 41 * - ( - 17 ) col1
----
697

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5420
SELECT - NULLIF ( - + 37, + + 52 * CASE - + 81 WHEN + 54 * + + ( + MAX( + CASE - 50 WHEN + 13 THEN 10 - - 40 WHEN - + ( - - 61 ) * 50 - 6 THEN NULL ELSE 66 END ) ) - - - 6 + + COALESCE ( + CASE - 90 WHEN - 15 + + + MIN( ALL + 96 ) + 60 * + ( MIN( ALL + 33 ) ) + - - COUNT( * ) THEN NULL ELSE + 66 + - 40 + CAST( NULL AS SIGNED ) END, - 5, 17, + 61 * + 18 ) THEN - CASE COUNT( * ) WHEN - ( - 20 ) - - 67 * COUNT( * ) THEN COUNT( * ) END - - 74 END ) * 99 AS col0
----
3663

skipif mysql # not compatible
query I rowsort label-5420
SELECT - NULLIF ( - + 37, + + 52 * CASE - + 81 WHEN + 54 * + + ( + MAX ( + CASE - 50 WHEN + 13 THEN 10 - - 40 WHEN - + ( - - 61 ) * 50 - 6 THEN NULL ELSE 66 END ) ) - - - 6 + + COALESCE ( + CASE - 90 WHEN - 15 + + + MIN ( ALL + 96 ) + 60 * + ( MIN ( ALL + 33 ) ) + - - COUNT ( * ) THEN NULL ELSE + 66 + - 40 + CAST ( NULL AS INTEGER ) END, - 5, 17, + 61 * + 18 ) THEN - CASE COUNT ( * ) WHEN - ( - 20 ) - - 67 * COUNT ( * ) THEN COUNT ( * ) END - - 74 END ) * 99 AS col0
----
3663

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5421
SELECT DISTINCT 91 * + CAST( 6 AS SIGNED ) col1, 22 AS col0
----
546
22

skipif mysql # not compatible
query II rowsort label-5421
SELECT DISTINCT 91 * + CAST ( 6 AS INTEGER ) col1, 22 AS col0
----
546
22

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5423
SELECT - + 56 DIV + + 69 + + 29 + - - 68
----
97

skipif mysql # not compatible
query I rowsort label-5423
SELECT - + 56 / + + 69 + + 29 + - - 68
----
97

query I rowsort
SELECT - 62 * - 62 * - 52
----
-199888

onlyif mysql # aggregate syntax: 
query II rowsort label-5425
SELECT ALL - COUNT( * ) * ( COUNT( - + ( 24 ) ) ) + 17 AS col0, + 1 AS col0
----
16
1

skipif mysql # not compatible
query II rowsort label-5425
SELECT ALL - COUNT ( * ) * ( COUNT ( - + ( 24 ) ) ) + 17 AS col0, + 1 AS col0
----
16
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5426
SELECT ALL - SUM( 56 )
----
-56

skipif mysql # not compatible
query I rowsort label-5426
SELECT ALL - SUM ( 56 )
----
-56

query I rowsort
SELECT ALL + 22 + - - 59
----
81

query I rowsort
SELECT DISTINCT + 94 + + - 0 AS col0
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-5429
SELECT DISTINCT MAX( ALL + 23 ) + - 95 * - 82 + 24
----
7837

skipif mysql # not compatible
query I rowsort label-5429
SELECT DISTINCT MAX ( ALL + 23 ) + - 95 * - 82 + 24
----
7837

query I rowsort
SELECT 65 + 12 AS col0
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-5431
SELECT + NULLIF ( 69, + COUNT( * ) ) AS col2
----
69

skipif mysql # not compatible
query I rowsort label-5431
SELECT + NULLIF ( 69, + COUNT ( * ) ) AS col2
----
69

onlyif mysql # DIV for integer division: 
query I rowsort label-5432
SELECT 81 + 22 DIV - 11 AS col2
----
79

skipif mysql # not compatible
query I rowsort label-5432
SELECT 81 + 22 / - 11 AS col2
----
79

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5434
SELECT 55 DIV + 26 AS col0
----
2

skipif mysql # not compatible
query I rowsort label-5434
SELECT 55 / + 26 AS col0
----
2

query I rowsort
SELECT DISTINCT ( 71 ) * - - 27
----
1917

query I rowsort
SELECT DISTINCT - 48 * ( 33 ) AS col1
----
-1584

query I rowsort
SELECT ALL + 93 * - 37 * 39 AS col2
----
-134199

query I rowsort
SELECT DISTINCT - 39 - - 28
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-5439
SELECT DISTINCT MAX( DISTINCT - 55 )
----
-55

skipif mysql # not compatible
query I rowsort label-5439
SELECT DISTINCT MAX ( DISTINCT - 55 )
----
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-5440
SELECT ALL - 21 - - CASE + + 43 WHEN ( + COUNT( * ) ) THEN + 82 ELSE NULL END + 94
----
NULL

skipif mysql # not compatible
query I rowsort label-5440
SELECT ALL - 21 - - CASE + + 43 WHEN ( + COUNT ( * ) ) THEN + 82 ELSE NULL END + 94
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5441
SELECT - ( 30 ) - - COUNT( * )
----
-29

skipif mysql # not compatible
query I rowsort label-5441
SELECT - ( 30 ) - - COUNT ( * )
----
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-5442
SELECT DISTINCT CASE - + 16 WHEN - 58 / MIN( + - 26 ) THEN NULL WHEN - COUNT( * ) THEN SUM( - 57 ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-5442
SELECT DISTINCT CASE - + 16 WHEN - 58 / MIN ( + - 26 ) THEN NULL WHEN - COUNT ( * ) THEN SUM ( - 57 ) ELSE NULL END
----
NULL

query I rowsort
SELECT - 76 * + + 90
----
-6840

query I rowsort
SELECT + 82 * 66 AS col1
----
5412

query II rowsort
SELECT ALL 35 col2, + 67 col0
----
35
67

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5446
SELECT + ( + - 58 ) col2, MAX( + - CAST( - + 12 AS SIGNED ) ) AS col0
----
-58
12

skipif mysql # not compatible
query II rowsort label-5446
SELECT + ( + - 58 ) col2, MAX ( + - CAST ( - + 12 AS INTEGER ) ) AS col0
----
-58
12

onlyif mysql # aggregate syntax: 
query II rowsort label-5447
SELECT + 80, - 6 * + SUM( ALL 23 ) AS col2
----
80
-138

skipif mysql # not compatible
query II rowsort label-5447
SELECT + 80, - 6 * + SUM ( ALL 23 ) AS col2
----
80
-138

query II rowsort
SELECT - 97, - 56 AS col1
----
-97
-56

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5450
SELECT ALL MAX( ALL + NULLIF ( + - 34, 6 ) ) AS col1
----
-34

skipif mysql # not compatible
query I rowsort label-5450
SELECT ALL MAX ( ALL + NULLIF ( + - 34, 6 ) ) AS col1
----
-34

query I rowsort
SELECT DISTINCT + + 37 * - - 36 * 22 + + 34 AS col0
----
29338

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5453
SELECT ALL + + 2, - CAST( - + 58 AS SIGNED ) AS col1
----
2
58

skipif mysql # not compatible
query II rowsort label-5453
SELECT ALL + + 2, - CAST ( - + 58 AS INTEGER ) AS col1
----
2
58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5454
SELECT - COUNT( * ) DIV - - NULLIF ( COUNT( * ), + COALESCE ( - - COUNT( * ), + 85 ) DIV + - 92 - - COUNT( * ) + 63 * COUNT( * ) + - + 73 * CAST( NULL AS SIGNED ) ) + 47 DIV + 19 + 80 + + 91 + - - SUM( 74 ) * 6
----
616

skipif mysql # not compatible
query I rowsort label-5454
SELECT - COUNT ( * ) / - - NULLIF ( COUNT ( * ), + COALESCE ( - - COUNT ( * ), + 85 ) / + - 92 - - COUNT ( * ) + 63 * COUNT ( * ) + - + 73 * CAST ( NULL AS INTEGER ) ) + 47 / + 19 + 80 + + 91 + - - SUM ( 74 ) * 6
----
616

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

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

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

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

query II rowsort
SELECT ALL + + 60 AS col0, - 88 * 37
----
60
-3256

query I rowsort
SELECT + 99 * + 50 - + + 41 * - 4
----
5114

onlyif mysql # aggregate syntax: 
query I rowsort label-5459
SELECT ALL + + 87 * + 77 + - - COUNT( * ) + - + 19 * - ( 90 )
----
8410

skipif mysql # not compatible
query I rowsort label-5459
SELECT ALL + + 87 * + 77 + - - COUNT ( * ) + - + 19 * - ( 90 )
----
8410

query I rowsort
SELECT ALL + 93 * - 86
----
-7998

onlyif mysql # aggregate syntax: 
query II rowsort label-5461
SELECT DISTINCT + ( CASE + 4 WHEN - + 64 + - 63 THEN NULL WHEN - 45 * + 51 + 30 + + 85 + + 90 THEN + + 8 / - + 13 - - - 76 - + 47 * - - 32 * + 80 * - ( + 5 ) * + MAX( ALL + 44 ) ELSE 29 END ), + 57 AS col2
----
29
57

skipif mysql # not compatible
query II rowsort label-5461
SELECT DISTINCT + ( CASE + 4 WHEN - + 64 + - 63 THEN NULL WHEN - 45 * + 51 + 30 + + 85 + + 90 THEN + + 8 / - + 13 - - - 76 - + 47 * - - 32 * + 80 * - ( + 5 ) * + MAX ( ALL + 44 ) ELSE 29 END ), + 57 AS col2
----
29
57

onlyif mysql # aggregate syntax: 
query I rowsort label-5462
SELECT - 65 * + SUM( DISTINCT COALESCE ( + 83, - 65 * - - 74 + + + ( - + 0 ) - 50, + 53 - 14 ) ) + - - 75 + + + 84 AS col1
----
-5236

skipif mysql # not compatible
query I rowsort label-5462
SELECT - 65 * + SUM ( DISTINCT COALESCE ( + 83, - 65 * - - 74 + + + ( - + 0 ) - 50, + 53 - 14 ) ) + - - 75 + + + 84 AS col1
----
-5236

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5463
SELECT ALL CAST( ( - 93 ) AS SIGNED ) * - 4 AS col2
----
372

skipif mysql # not compatible
query I rowsort label-5463
SELECT ALL CAST ( ( - 93 ) AS INTEGER ) * - 4 AS col2
----
372

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5464
SELECT + COUNT( * ) - - 21 - - 97 * + 94 * - CAST( + 38 AS SIGNED ) - 43 + - 34 * - 12 AS col2
----
-346097

skipif mysql # not compatible
query I rowsort label-5464
SELECT + COUNT ( * ) - - 21 - - 97 * + 94 * - CAST ( + 38 AS INTEGER ) - 43 + - 34 * - 12 AS col2
----
-346097

query I rowsort
SELECT + NULLIF ( + 96, 11 ) AS col2
----
96

query II rowsort
SELECT ALL 84 * 58 AS col1, 10
----
4872
10

query I rowsort
SELECT + 90 * + + 18
----
1620

query I rowsort
SELECT ALL + 84 col0
----
84

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5470
SELECT DISTINCT 88 * - - CASE - 71 WHEN CASE - - 9 WHEN - 52 - - COUNT( * ) THEN 16 END * 69 THEN 49 * - - 34 * 61 ELSE COUNT( * ) END * + + 62 + COUNT( * ) + + 72 * + 73 * + - COUNT( * ) + - NULLIF ( - 95, 73 ) * 67 * + + 26 - + 21
----
165670

skipif mysql # not compatible
query I rowsort label-5470
SELECT DISTINCT 88 * - - CASE - 71 WHEN CASE - - 9 WHEN - 52 - - COUNT ( * ) THEN 16 END * 69 THEN 49 * - - 34 * 61 ELSE COUNT ( * ) END * + + 62 + COUNT ( * ) + + 72 * + 73 * + - COUNT ( * ) + - NULLIF ( - 95, 73 ) * 67 * + + 26 - + 21
----
165670

onlyif mysql # aggregate syntax: 
query I rowsort label-5471
SELECT - CASE 23 WHEN - + CASE + 96 WHEN + 65 THEN NULL WHEN + + COALESCE ( + 65, + - 23 - + 55 ) THEN - COUNT( * ) END THEN COUNT( * ) ELSE 0 END * + 91
----
0

skipif mysql # not compatible
query I rowsort label-5471
SELECT - CASE 23 WHEN - + CASE + 96 WHEN + 65 THEN NULL WHEN + + COALESCE ( + 65, + - 23 - + 55 ) THEN - COUNT ( * ) END THEN COUNT ( * ) ELSE 0 END * + 91
----
0

query I rowsort
SELECT ALL 63 * 79 - 78 + 73 AS col0
----
4972

onlyif mysql # aggregate syntax: 
query I rowsort label-5473
SELECT + COALESCE ( 14, - + CASE 51 WHEN - 33 THEN - SUM( - 39 ) + COALESCE ( + 15, 82 ) + 41 + - COUNT( * ) WHEN + 23 THEN + 7 ELSE NULL END, - 70, + - COUNT( ALL + 56 ) + 14 ) * 98 - + 71 AS col0
----
1301

skipif mysql # not compatible
query I rowsort label-5473
SELECT + COALESCE ( 14, - + CASE 51 WHEN - 33 THEN - SUM ( - 39 ) + COALESCE ( + 15, 82 ) + 41 + - COUNT ( * ) WHEN + 23 THEN + 7 ELSE NULL END, - 70, + - COUNT ( ALL + 56 ) + 14 ) * 98 - + 71 AS col0
----
1301

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

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5475
SELECT + 0 + + CAST( + - 45 AS SIGNED ) DIV + + 15
----
-3

skipif mysql # not compatible
query I rowsort label-5475
SELECT + 0 + + CAST ( + - 45 AS INTEGER ) / + + 15
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-5476
SELECT + CASE + 71 WHEN COUNT( * ) + + 68 / 75 THEN + SUM( + + 69 ) WHEN - 16 / - + COUNT( * ) THEN NULL END * ( 31 ) + - 49 + - 21 + - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-5476
SELECT + CASE + 71 WHEN COUNT ( * ) + + 68 / 75 THEN + SUM ( + + 69 ) WHEN - 16 / - + COUNT ( * ) THEN NULL END * ( 31 ) + - 49 + - 21 + - COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5477
SELECT ALL + SUM( 41 ) * + 84 AS col0
----
3444

skipif mysql # not compatible
query I rowsort label-5477
SELECT ALL + SUM ( 41 ) * + 84 AS col0
----
3444

onlyif mysql # aggregate syntax: 
query I rowsort label-5478
SELECT + ( + SUM( - + 85 ) ) + + 11
----
-74

skipif mysql # not compatible
query I rowsort label-5478
SELECT + ( + SUM ( - + 85 ) ) + + 11
----
-74

query I rowsort
SELECT - 82 - + + 29 col0
----
-111

onlyif mysql # aggregate syntax: 
query I rowsort label-5480
SELECT - SUM( ALL 9 ) + + 3 AS col2
----
-6

skipif mysql # not compatible
query I rowsort label-5480
SELECT - SUM ( ALL 9 ) + + 3 AS col2
----
-6

query II rowsort
SELECT ALL ( 25 ) AS col2, - 63
----
25
-63

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5482
SELECT ALL - 29 * + 62 + + COUNT( ( + 88 ) ) AS col1, CAST( + 74 AS SIGNED )
----
-1797
74

skipif mysql # not compatible
query II rowsort label-5482
SELECT ALL - 29 * + 62 + + COUNT ( ( + 88 ) ) AS col1, CAST ( + 74 AS INTEGER )
----
-1797
74

onlyif mysql # aggregate syntax: 
query I rowsort label-5483
SELECT DISTINCT + 71 * - COUNT( DISTINCT - 96 )
----
-71

skipif mysql # not compatible
query I rowsort label-5483
SELECT DISTINCT + 71 * - COUNT ( DISTINCT - 96 )
----
-71

query I rowsort
SELECT + + 7 * NULLIF ( + 56, - 44 * + - 46 ) AS col1
----
392

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5486
SELECT - - 27 DIV - 26 AS col1, + ( + COUNT( * ) ) * - - 54 col0
----
-1
54

skipif mysql # not compatible
query II rowsort label-5486
SELECT - - 27 / - 26 AS col1, + ( + COUNT ( * ) ) * - - 54 col0
----
-1
54

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5489
SELECT ALL - + CAST( - + 71 AS SIGNED ) + + 34 * - 35
----
-1119

skipif mysql # not compatible
query I rowsort label-5489
SELECT ALL - + CAST ( - + 71 AS INTEGER ) + + 34 * - 35
----
-1119

onlyif mysql # aggregate syntax: 
query II rowsort label-5490
SELECT - + COALESCE ( + - COUNT( * ), + 93 * + + 41 + + 36 * - + 90 + + 67 * - 39, + 47 * ( + COALESCE ( - + 78, + - 91 ) ) ) * + - COUNT( * ) + + ( + 74 ) - - 25, 64 AS col1
----
98
64

skipif mysql # not compatible
query II rowsort label-5490
SELECT - + COALESCE ( + - COUNT ( * ), + 93 * + + 41 + + 36 * - + 90 + + 67 * - 39, + 47 * ( + COALESCE ( - + 78, + - 91 ) ) ) * + - COUNT ( * ) + + ( + 74 ) - - 25, 64 AS col1
----
98
64

query I rowsort
SELECT ALL + + 59 * - 9 * 67 - + + 45 + - 6
----
-35628

query I rowsort
SELECT DISTINCT + 64 * + 72 * - 50
----
-230400

query I rowsort
SELECT ALL + 36 * + - 35 AS col1
----
-1260

query I rowsort
SELECT + - 25 * - 70 + + + 46
----
1796

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5495
SELECT ALL 55 DIV + + MIN( DISTINCT 36 ) + 18 + + - COUNT( * )
----
18

skipif mysql # not compatible
query I rowsort label-5495
SELECT ALL 55 / + + MIN ( DISTINCT 36 ) + 18 + + - COUNT ( * )
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-5496
SELECT ALL + MIN( DISTINCT 15 ) AS col0
----
15

skipif mysql # not compatible
query I rowsort label-5496
SELECT ALL + MIN ( DISTINCT 15 ) AS col0
----
15

query I rowsort
SELECT DISTINCT + 11 * + - 29
----
-319

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

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

query II rowsort
SELECT + 99 AS col0, - 88 AS col1
----
99
-88

onlyif mysql # DIV for integer division: 
query I rowsort label-5500
SELECT DISTINCT + 39 - ( 3 ) + + 88 + - 96 DIV 9
----
114

skipif mysql # not compatible
query I rowsort label-5500
SELECT DISTINCT + 39 - ( 3 ) + + 88 + - 96 / 9
----
114

query I rowsort
SELECT DISTINCT 72 * - 52
----
-3744

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5502
SELECT DISTINCT 42 - - CAST( 20 AS SIGNED ) AS col1
----
62

skipif mysql # not compatible
query I rowsort label-5502
SELECT DISTINCT 42 - - CAST ( 20 AS INTEGER ) AS col1
----
62

onlyif mysql # DIV for integer division: 
query I rowsort label-5503
SELECT ALL 1 DIV + 90 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-5503
SELECT ALL 1 / + 90 AS col2
----
0

query I rowsort
SELECT 90 + + 40
----
130

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

skipif mysql # not compatible
query I rowsort label-5505
SELECT ALL 95 * + + COUNT ( ALL + 22 ) AS col1
----
95

query I rowsort
SELECT + 22 col0
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-5507
SELECT ALL 41 * - COUNT( + 43 ) * + 70 * - - 72 AS col0
----
-206640

skipif mysql # not compatible
query I rowsort label-5507
SELECT ALL 41 * - COUNT ( + 43 ) * + 70 * - - 72 AS col0
----
-206640

query II rowsort
SELECT ALL 30 AS col0, 4 AS col2
----
30
4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5509
SELECT CAST( NULL AS SIGNED ) * 2 * + NULLIF ( + 24, - 79 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5509
SELECT CAST ( NULL AS INTEGER ) * 2 * + NULLIF ( + 24, - 79 )
----
NULL

query II rowsort
SELECT ALL 81, - 79 AS col0
----
81
-79

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5511
SELECT ALL NULLIF ( MIN( NULLIF ( 73, + + NULLIF ( + 63, - + 13 / + + CAST( NULL AS SIGNED ) * + 75 ) ) ), + ( CASE 79 WHEN - 31 THEN + - 31 WHEN 14 THEN NULL WHEN ( + - 60 ) THEN NULL END ) ) col2
----
73

skipif mysql # not compatible
query I rowsort label-5511
SELECT ALL NULLIF ( MIN ( NULLIF ( 73, + + NULLIF ( + 63, - + 13 / + + CAST ( NULL AS INTEGER ) * + 75 ) ) ), + ( CASE 79 WHEN - 31 THEN + - 31 WHEN 14 THEN NULL WHEN ( + - 60 ) THEN NULL END ) ) col2
----
73

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5512
SELECT + COALESCE ( - COUNT( * ), + - CAST( NULL AS SIGNED ) * - - CAST( 72 AS SIGNED ) ) AS col1
----
-1

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5513
SELECT MIN( - 20 ) AS col1
----
-20

skipif mysql # not compatible
query I rowsort label-5513
SELECT MIN ( - 20 ) AS col1
----
-20

query II rowsort
SELECT - 65 AS col2, - 82
----
-65
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-5515
SELECT DISTINCT ( - SUM( - 80 ) ) + + COUNT( * ) AS col2
----
81

skipif mysql # not compatible
query I rowsort label-5515
SELECT DISTINCT ( - SUM ( - 80 ) ) + + COUNT ( * ) AS col2
----
81

query I rowsort
SELECT ALL - ( 15 ) + + - COALESCE ( - 7, - - ( + 29 ) ) AS col0
----
-8

query I rowsort
SELECT - 31 - + 0
----
-31

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5520
SELECT DISTINCT + 48 DIV + ( - 61 ) - + 88 - + - ( 60 ) + - + 95 + 37 AS col2
----
-86

skipif mysql # not compatible
query I rowsort label-5520
SELECT DISTINCT + 48 / + ( - 61 ) - + 88 - + - ( 60 ) + - + 95 + 37 AS col2
----
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-5521
SELECT MIN( DISTINCT 22 )
----
22

skipif mysql # not compatible
query I rowsort label-5521
SELECT MIN ( DISTINCT 22 )
----
22

query I rowsort
SELECT ALL + 15 + 5 AS col0
----
20

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5524
SELECT DISTINCT COUNT( * ) * + 7
----
7

skipif mysql # not compatible
query I rowsort label-5524
SELECT DISTINCT COUNT ( * ) * + 7
----
7

query I rowsort
SELECT ALL - 76 + + - 87 AS col2
----
-163

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

skipif mysql # not compatible
query I rowsort label-5526
SELECT COUNT ( ALL - + 2 ) - + ( + 31 ) AS col2
----
-30

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

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

query I rowsort
SELECT 85 + 53 AS col0
----
138

query I rowsort
SELECT + 8 * - + 58 AS col1
----
-464

query I rowsort
SELECT DISTINCT + 60 AS col1
----
60

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

skipif mysql # not compatible
query I rowsort label-5531
SELECT COUNT ( * ) / 39 AS col1
----
0

query I rowsort
SELECT ALL - + 52 + 95 * 36 * + 37 + - 38 * - ( - 40 )
----
124968

query I rowsort
SELECT 34 * - 12
----
-408

query I rowsort
SELECT - ( - 94 ) * + 97 * 48 AS col0
----
437664

onlyif mysql # aggregate syntax: 
query II rowsort label-5535
SELECT 43, + ( + 62 ) + CASE + 2 WHEN - 49 THEN + - ( - NULLIF ( + 38, + 87 - + 76 * - ( - 59 ) / + 2 ) ) END + - 74 - COUNT( * ) * 11 col0
----
43
NULL

skipif mysql # not compatible
query II rowsort label-5535
SELECT 43, + ( + 62 ) + CASE + 2 WHEN - 49 THEN + - ( - NULLIF ( + 38, + 87 - + 76 * - ( - 59 ) / + 2 ) ) END + - 74 - COUNT ( * ) * 11 col0
----
43
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5536
SELECT ALL - MIN( + 6 ) AS col1
----
-6

skipif mysql # not compatible
query I rowsort label-5536
SELECT ALL - MIN ( + 6 ) AS col1
----
-6

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

query I rowsort
SELECT DISTINCT - 89 - + + 62 AS col2
----
-151

query I rowsort
SELECT DISTINCT - 80 * - 65 AS col0
----
5200

onlyif mysql # DIV for integer division: 
query I rowsort label-5540
SELECT 94 + + 16 + - 31 + - 54 * - - 88 * - 30 DIV + NULLIF ( - - 15, 35 ) AS col0
----
9583

skipif mysql # not compatible
query I rowsort label-5540
SELECT 94 + + 16 + - 31 + - 54 * - - 88 * - 30 / + NULLIF ( - - 15, 35 ) AS col0
----
9583

onlyif mysql # aggregate syntax: 
query I rowsort label-5541
SELECT 64 * - COUNT( + 58 ) * + 44 + - 18
----
-2834

skipif mysql # not compatible
query I rowsort label-5541
SELECT 64 * - COUNT ( + 58 ) * + 44 + - 18
----
-2834

onlyif mysql # aggregate syntax: 
query I rowsort label-5542
SELECT ALL - MAX( + 91 ) * - 10 AS col2
----
910

skipif mysql # not compatible
query I rowsort label-5542
SELECT ALL - MAX ( + 91 ) * - 10 AS col2
----
910

query I rowsort
SELECT 71 - 42 AS col0
----
29

onlyif mysql # aggregate syntax: 
query II rowsort label-5544
SELECT 80 - - SUM( + - 5 ) * + COUNT( * ), 65 AS col2
----
75
65

skipif mysql # not compatible
query II rowsort label-5544
SELECT 80 - - SUM ( + - 5 ) * + COUNT ( * ), 65 AS col2
----
75
65

onlyif mysql # aggregate syntax: 
query II rowsort label-5545
SELECT DISTINCT - NULLIF ( - - 28, + + 79 * + + COUNT( * ) ) AS col0, 13
----
-28
13

skipif mysql # not compatible
query II rowsort label-5545
SELECT DISTINCT - NULLIF ( - - 28, + + 79 * + + COUNT ( * ) ) AS col0, 13
----
-28
13

onlyif mysql # DIV for integer division: 
query I rowsort label-5546
SELECT DISTINCT 82 DIV 92 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-5546
SELECT DISTINCT 82 / 92 AS col2
----
0

query I rowsort
SELECT - 91 * + 54 - + 3
----
-4917

query I rowsort
SELECT DISTINCT - ( 55 ) col2
----
-55

query I rowsort
SELECT 15 - - 7
----
22

onlyif mysql # DIV for integer division: 
query I rowsort label-5550
SELECT ALL - 27 DIV + 37
----
0

skipif mysql # not compatible
query I rowsort label-5550
SELECT ALL - 27 / + 37
----
0

query I rowsort
SELECT - - 75 AS col0
----
75

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-5553
SELECT - 16 + + 35 AS col1, + COUNT( * )
----
19
1

skipif mysql # not compatible
query II rowsort label-5553
SELECT - 16 + + 35 AS col1, + COUNT ( * )
----
19
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5554
SELECT - - COUNT( 74 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-5554
SELECT - - COUNT ( 74 ) AS col0
----
1

query I rowsort
SELECT - ( + - 62 ) * + 28
----
1736

query I rowsort
SELECT 54 + - 40
----
14

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5557
SELECT ALL - COUNT( * ) * + + CAST( 69 AS SIGNED ) * + - 67 * - 17
----
-78591

skipif mysql # not compatible
query I rowsort label-5557
SELECT ALL - COUNT ( * ) * + + CAST ( 69 AS INTEGER ) * + - 67 * - 17
----
-78591

query I rowsort
SELECT DISTINCT - - 51 + + 50 * + + 50
----
2551

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5559
SELECT ALL + 60 + + 1 * - CAST( NULL AS SIGNED ) * - 55, - NULLIF ( - 65, - 27 / 50 ) col1
----
NULL
65

skipif mysql # not compatible
query II rowsort label-5559
SELECT ALL + 60 + + 1 * - CAST ( NULL AS INTEGER ) * - 55, - NULLIF ( - 65, - 27 / 50 ) col1
----
NULL
65

query I rowsort
SELECT + 56 + + + 91
----
147

query I rowsort
SELECT ALL - 86 + + 48
----
-38

query I rowsort
SELECT DISTINCT 30 + - - 83 AS col0
----
113

query I rowsort
SELECT ALL 35 * + + 19 + - 70
----
595

query I rowsort
SELECT ALL + + 5 + 40 - NULLIF ( + 8, - - 67 * + - 8 + 43 ) - COALESCE ( 43, + 78 + + + ( 99 ), 63 ) * + - 55 + 97 * 87 + - - 45 AS col1
----
10886

query I rowsort
SELECT 23 + - - 20 AS col0
----
43

query I rowsort
SELECT DISTINCT NULLIF ( + - 43, + + 39 / - 71 )
----
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-5567
SELECT ALL 76 - COUNT( * ) + ( - 71 ) AS col2
----
4

skipif mysql # not compatible
query I rowsort label-5567
SELECT ALL 76 - COUNT ( * ) + ( - 71 ) AS col2
----
4

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5568
SELECT DISTINCT - ( + + 51 ) DIV + 50 + - COUNT( * ) DIV - 4 * + + 17 + 31
----
30

skipif mysql # not compatible
query I rowsort label-5568
SELECT DISTINCT - ( + + 51 ) / + 50 + - COUNT ( * ) / - 4 * + + 17 + 31
----
30

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5570
SELECT DISTINCT - 42 DIV - 85 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-5570
SELECT DISTINCT - 42 / - 85 AS col1
----
0

query I rowsort
SELECT ALL - 84 - 6 AS col2
----
-90

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5573
SELECT ALL 25 * - COUNT( + 80 ) * + + COUNT( * ) - SUM( + + 57 ) AS col2
----
-82

skipif mysql # not compatible
query I rowsort label-5573
SELECT ALL 25 * - COUNT ( + 80 ) * + + COUNT ( * ) - SUM ( + + 57 ) AS col2
----
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-5574
SELECT + MIN( DISTINCT 97 ) AS col2
----
97

skipif mysql # not compatible
query I rowsort label-5574
SELECT + MIN ( DISTINCT 97 ) AS col2
----
97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5575
SELECT - CAST( 82 AS SIGNED ) * 83 * NULLIF ( 50, + 22 ) - + - COUNT( * ) - + + 59 + + 14 * + + 22 AS col0
----
-340050

skipif mysql # not compatible
query I rowsort label-5575
SELECT - CAST ( 82 AS INTEGER ) * 83 * NULLIF ( 50, + 22 ) - + - COUNT ( * ) - + + 59 + + 14 * + + 22 AS col0
----
-340050

query I rowsort
SELECT ALL 2 * 60 * NULLIF ( + 58, 41 )
----
6960

query I rowsort
SELECT - 89 * - 86
----
7654

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5578
SELECT - 66 * - CAST( + 18 AS SIGNED ) AS col1, - 49
----
1188
-49

skipif mysql # not compatible
query II rowsort label-5578
SELECT - 66 * - CAST ( + 18 AS INTEGER ) AS col1, - 49
----
1188
-49

query I rowsort
SELECT - 77 + + 50 AS col0
----
-27

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5580
SELECT + 38 * 51 * - 70 - CAST( 47 AS SIGNED ) AS col0, + 5 AS col0
----
-135707
5

skipif mysql # not compatible
query II rowsort label-5580
SELECT + 38 * 51 * - 70 - CAST ( 47 AS INTEGER ) AS col0, + 5 AS col0
----
-135707
5

query II rowsort
SELECT DISTINCT + 41 AS col1, + 81
----
41
81

query I rowsort
SELECT ALL 0 * - - 44 + + 41 + + - 4
----
37

query I rowsort
SELECT ALL - NULLIF ( + - 72, - 1 ) * - 30 AS col0
----
-2160

query I rowsort
SELECT - 94 * 50 AS col2
----
-4700

onlyif mysql # aggregate syntax: 
query I rowsort label-5585
SELECT ALL - 66 * - 1 + - ( + + COALESCE ( - + 31, - 73 ) ) + - 22 + - + 4 * - 62 + + 30 + + - 97 * + 59 * - COUNT( * ) * 68 + 89 - + + 0 * ( + - NULLIF ( 71, + COUNT( * ) ) ) * - 30 + + COUNT( * ) + NULLIF ( 47, - - 92 * + 20 ) - - + 32 * 46 * COUNT( * ) * - + 6 - + 79
----
380743

skipif mysql # not compatible
query I rowsort label-5585
SELECT ALL - 66 * - 1 + - ( + + COALESCE ( - + 31, - 73 ) ) + - 22 + - + 4 * - 62 + + 30 + + - 97 * + 59 * - COUNT ( * ) * 68 + 89 - + + 0 * ( + - NULLIF ( 71, + COUNT ( * ) ) ) * - 30 + + COUNT ( * ) + NULLIF ( 47, - - 92 * + 20 ) - - + 32 * 46 * COUNT ( * ) * - + 6 - + 79
----
380743

query I rowsort
SELECT - 93 * 34
----
-3162

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5587
SELECT - 62 AS col1, 92 * - COUNT( * ) * CASE + + ( - MAX( ( + + 33 ) ) ) WHEN + 86 * + 84 * - 29 + - 28 THEN + 91 * - 32 / - 72 + AVG ( + + 14 ) - CAST( NULL AS SIGNED ) - ( + - 49 ) + + 16 - + CAST( - 44 AS SIGNED ) + + - MIN( ALL + - 69 ) * + 14 WHEN - 56 * COALESCE ( 86, 50, + 55 ) + - COUNT( * ) THEN NULL END AS col2
----
-62
NULL

skipif mysql # not compatible
query II rowsort label-5587
SELECT - 62 AS col1, 92 * - COUNT ( * ) * CASE + + ( - MAX ( ( + + 33 ) ) ) WHEN + 86 * + 84 * - 29 + - 28 THEN + 91 * - 32 / - 72 + AVG ( + + 14 ) - CAST ( NULL AS INTEGER ) - ( + - 49 ) + + 16 - + CAST ( - 44 AS INTEGER ) + + - MIN ( ALL + - 69 ) * + 14 WHEN - 56 * COALESCE ( 86, 50, + 55 ) + - COUNT ( * ) THEN NULL END AS col2
----
-62
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5588
SELECT ALL + + 86 DIV - + 28 + + - 39 AS col1
----
-42

skipif mysql # not compatible
query I rowsort label-5588
SELECT ALL + + 86 / - + 28 + + - 39 AS col1
----
-42

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-5590
SELECT ALL - COUNT( * ) col2, 67
----
-1
67

skipif mysql # not compatible
query II rowsort label-5590
SELECT ALL - COUNT ( * ) col2, 67
----
-1
67

query I rowsort
SELECT - + 68 - - + 39 AS col2
----
-29

query I rowsort
SELECT + - 93 - - - 87 + + + COALESCE ( - - 56, + - 75 * + 41 ) + - 82 AS col0
----
-206

query I rowsort
SELECT ALL - COALESCE ( 42, - - 76 + 24 + - 1 )
----
-42

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5595
SELECT - SUM( ALL - 43 ) AS col1
----
43

skipif mysql # not compatible
query I rowsort label-5595
SELECT - SUM ( ALL - 43 ) AS col1
----
43

onlyif mysql # DIV for integer division: 
query II rowsort label-5596
SELECT ALL - - 81 * + - 78 * + + 37 AS col2, 48 DIV - - 65 AS col2
----
-233766
0

skipif mysql # not compatible
query II rowsort label-5596
SELECT ALL - - 81 * + - 78 * + + 37 AS col2, 48 / - - 65 AS col2
----
-233766
0

query I rowsort
SELECT + 66 * - 81
----
-5346

query I rowsort
SELECT - ( 21 )
----
-21

query I rowsort
SELECT DISTINCT 84 * + - 47 * - 22 AS col1
----
86856

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5600
SELECT - 90 + + CAST( NULL AS SIGNED ), + 36 - - 54 + + 94 + NULLIF ( + - CAST( NULL AS SIGNED ), 94 * + CAST( - + COUNT( * ) AS SIGNED ) / - 69 + - 56 )
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-5600
SELECT - 90 + + CAST ( NULL AS INTEGER ), + 36 - - 54 + + 94 + NULLIF ( + - CAST ( NULL AS INTEGER ), 94 * + CAST ( - + COUNT ( * ) AS INTEGER ) / - 69 + - 56 )
----
NULL
NULL

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5602
SELECT - CAST( - + 73 AS SIGNED )
----
73

skipif mysql # not compatible
query I rowsort label-5602
SELECT - CAST ( - + 73 AS INTEGER )
----
73

onlyif mysql # aggregate syntax: 
query I rowsort label-5603
SELECT + CASE + - 8 WHEN - - 51 THEN - + ( + + 36 ) - - MAX( DISTINCT - 57 ) WHEN + 39 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-5603
SELECT + CASE + - 8 WHEN - - 51 THEN - + ( + + 36 ) - - MAX ( DISTINCT - 57 ) WHEN + 39 THEN NULL END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5604
SELECT - 66 DIV + - 81 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-5604
SELECT - 66 / + - 81 AS col1
----
0

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5606
SELECT DISTINCT + 49 DIV - 19 + + 96 col0
----
94

skipif mysql # not compatible
query I rowsort label-5606
SELECT DISTINCT + 49 / - 19 + + 96 col0
----
94

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5608
SELECT ALL - SUM( + 87 ) / 16 * - - 20 + - - 79 + + CAST( NULL AS SIGNED ) * + NULLIF ( - 4, 79 ) + - NULLIF ( - 30, SUM( ALL + 42 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-5608
SELECT ALL - SUM ( + 87 ) / 16 * - - 20 + - - 79 + + CAST ( NULL AS INTEGER ) * + NULLIF ( - 4, 79 ) + - NULLIF ( - 30, SUM ( ALL + 42 ) )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5609
SELECT ALL - 16 DIV - 85 + 44 AS col1
----
44

skipif mysql # not compatible
query I rowsort label-5609
SELECT ALL - 16 / - 85 + 44 AS col1
----
44

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5610
SELECT ALL 27 DIV ( - + COUNT( * ) ) + + MAX( 27 )
----
0

skipif mysql # not compatible
query I rowsort label-5610
SELECT ALL 27 / ( - + COUNT ( * ) ) + + MAX ( 27 )
----
0

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5613
SELECT - 0 DIV + 20 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-5613
SELECT - 0 / + 20 AS col2
----
0

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

query I rowsort
SELECT + 46 * + 70 * + - 80 AS col0
----
-257600

query I rowsort
SELECT ( - 43 ) AS col1
----
-43

query I rowsort
SELECT - 95 * - 71 + - - 60 * + 53
----
9925

onlyif mysql # aggregate syntax: 
query I rowsort label-5618
SELECT ALL + + COUNT( * ) * COUNT( * ) + - + ( 80 ) - + - ( - + 52 ) AS col0
----
-131

skipif mysql # not compatible
query I rowsort label-5618
SELECT ALL + + COUNT ( * ) * COUNT ( * ) + - + ( 80 ) - + - ( - + 52 ) AS col0
----
-131

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5620
SELECT DISTINCT + COALESCE ( + 94, + + 86 * - COALESCE ( 12, - COUNT( * ) ) ) * + + 43 + + 68 + 12 * - 86
----
3078

skipif mysql # not compatible
query I rowsort label-5620
SELECT DISTINCT + COALESCE ( + 94, + + 86 * - COALESCE ( 12, - COUNT ( * ) ) ) * + + 43 + + 68 + 12 * - 86
----
3078

query I rowsort
SELECT - 34 - 71
----
-105

query I rowsort
SELECT DISTINCT + + NULLIF ( + + 13, 20 ) AS col0
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-5623
SELECT + COUNT( + + 23 ) + - + 45
----
-44

skipif mysql # not compatible
query I rowsort label-5623
SELECT + COUNT ( + + 23 ) + - + 45
----
-44

query I rowsort
SELECT - + 83 + + 43 AS col2
----
-40

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5625
SELECT - - CAST( SUM( - 21 ) AS SIGNED )
----
-21

skipif mysql # not compatible
query I rowsort label-5625
SELECT - - CAST ( SUM ( - 21 ) AS INTEGER )
----
-21

query I rowsort
SELECT - - 97 + - + 65 AS col0
----
32

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

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

query I rowsort
SELECT 32 + + 32 AS col0
----
64

query I rowsort
SELECT ALL + + 41 * + 47 - - 98 + - - 7
----
2032

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5630
SELECT ALL + - COUNT( * ) - - + COALESCE ( - 46, CAST( NULL AS SIGNED ) DIV + + 45, + + 10 * + 46 + - MAX( DISTINCT + + 65 ) ) AS col2
----
-47

skipif mysql # not compatible
query I rowsort label-5630
SELECT ALL + - COUNT ( * ) - - + COALESCE ( - 46, CAST ( NULL AS INTEGER ) / + + 45, + + 10 * + 46 + - MAX ( DISTINCT + + 65 ) ) AS col2
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-5631
SELECT ALL + NULLIF ( - 90, - COUNT( * ) )
----
-90

skipif mysql # not compatible
query I rowsort label-5631
SELECT ALL + NULLIF ( - 90, - COUNT ( * ) )
----
-90

query I rowsort
SELECT + NULLIF ( + + 69, - 76 ) + + 17
----
86

onlyif mysql # aggregate syntax: 
query II rowsort label-5633
SELECT - - 11, 67 * + 6 + COUNT( * ) col0
----
11
403

skipif mysql # not compatible
query II rowsort label-5633
SELECT - - 11, 67 * + 6 + COUNT ( * ) col0
----
11
403

onlyif mysql # aggregate syntax: 
query I rowsort label-5634
SELECT + COUNT( - 77 ) + - 54
----
-53

skipif mysql # not compatible
query I rowsort label-5634
SELECT + COUNT ( - 77 ) + - 54
----
-53

onlyif mysql # DIV for integer division: 
query I rowsort label-5635
SELECT 55 DIV 71 * - + 4
----
0

skipif mysql # not compatible
query I rowsort label-5635
SELECT 55 / 71 * - + 4
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-5636
SELECT DISTINCT + 30 DIV - 31 col1, 54
----
0
54

skipif mysql # not compatible
query II rowsort label-5636
SELECT DISTINCT + 30 / - 31 col1, 54
----
0
54

query I rowsort
SELECT DISTINCT + 21 * + 21 AS col0
----
441

onlyif mysql # aggregate syntax: 
query I rowsort label-5638
SELECT ALL CASE 57 WHEN - 32 * - 48 THEN + 15 * - 68 - COUNT( * ) END * - + 32 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5638
SELECT ALL CASE 57 WHEN - 32 * - 48 THEN + 15 * - 68 - COUNT ( * ) END * - + 32 AS col0
----
NULL

query I rowsort
SELECT 90 + 85
----
175

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

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

query I rowsort
SELECT ALL - 3 + 62 AS col2
----
59

query I rowsort
SELECT ALL 12 * + 60
----
720

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

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

query I rowsort
SELECT 25 + + + ( + - 40 ) AS col1
----
-15

onlyif mysql # DIV for integer division: 
query I rowsort label-5645
SELECT ALL 6 + + + 36 DIV 74
----
6

skipif mysql # not compatible
query I rowsort label-5645
SELECT ALL 6 + + + 36 / 74
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-5646
SELECT ALL - MAX( - 38 ) + - + 64 AS col1
----
-26

skipif mysql # not compatible
query I rowsort label-5646
SELECT ALL - MAX ( - 38 ) + - + 64 AS col1
----
-26

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

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

query I rowsort
SELECT 62 * + 65 * - 8 + - 18
----
-32258

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5649
SELECT ALL + COUNT( DISTINCT + 24 ) * - 89 DIV - 63
----
1

skipif mysql # not compatible
query I rowsort label-5649
SELECT ALL + COUNT ( DISTINCT + 24 ) * - 89 / - 63
----
1

query I rowsort
SELECT 66 col2
----
66

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5651
SELECT ALL + 82 - - 12 * + COALESCE ( + COUNT( * ), + 47 * - 0 DIV - CASE + 19 WHEN - - 75 * COUNT( * ) THEN NULL ELSE + NULLIF ( MAX( + - 35 ), + 49 * + 71 - ( 81 ) ) END ) - + 5 AS col1
----
89

skipif mysql # not compatible
query I rowsort label-5651
SELECT ALL + 82 - - 12 * + COALESCE ( + COUNT ( * ), + 47 * - 0 / - CASE + 19 WHEN - - 75 * COUNT ( * ) THEN NULL ELSE + NULLIF ( MAX ( + - 35 ), + 49 * + 71 - ( 81 ) ) END ) - + 5 AS col1
----
89

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

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5655
SELECT - 68 DIV + COUNT( * ) + COUNT( - ( + 56 ) )
----
-67

skipif mysql # not compatible
query I rowsort label-5655
SELECT - 68 / + COUNT ( * ) + COUNT ( - ( + 56 ) )
----
-67

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5656
SELECT + ( - NULLIF ( SUM( ALL - ( + - 67 ) ), CAST( - COUNT( * ) AS SIGNED ) ) )
----
-67

skipif mysql # not compatible
query I rowsort label-5656
SELECT + ( - NULLIF ( SUM ( ALL - ( + - 67 ) ), CAST ( - COUNT ( * ) AS INTEGER ) ) )
----
-67

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5658
SELECT DISTINCT + COUNT( * ) + 6
----
7

skipif mysql # not compatible
query I rowsort label-5658
SELECT DISTINCT + COUNT ( * ) + 6
----
7

query I rowsort
SELECT 74 - ( - ( - 5 ) ) col2
----
69

onlyif mysql # aggregate syntax: 
query II rowsort label-5660
SELECT ALL 39, + COUNT( * ) * - 47 + - + 27 AS col1
----
39
-74

skipif mysql # not compatible
query II rowsort label-5660
SELECT ALL 39, + COUNT ( * ) * - 47 + - + 27 AS col1
----
39
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-5661
SELECT ALL + 17 + - CASE + + 40 WHEN + + 6 / - COUNT( * ) * + 65 THEN - 85 END + + 16 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5661
SELECT ALL + 17 + - CASE + + 40 WHEN + + 6 / - COUNT ( * ) * + 65 THEN - 85 END + + 16 AS col1
----
NULL

query I rowsort
SELECT ALL 43 + 47
----
90

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-5664
SELECT DISTINCT COUNT( * ) col0, - 38
----
1
-38

skipif mysql # not compatible
query II rowsort label-5664
SELECT DISTINCT COUNT ( * ) col0, - 38
----
1
-38

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

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

query II rowsort
SELECT - 6 AS col2, 26
----
-6
26

query I rowsort
SELECT 83 + + 33 AS col2
----
116

onlyif mysql # aggregate syntax: 
query I rowsort label-5668
SELECT ALL MIN( ALL - 29 ) AS col2
----
-29

skipif mysql # not compatible
query I rowsort label-5668
SELECT ALL MIN ( ALL - 29 ) AS col2
----
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-5669
SELECT 28 - - - COUNT( * )
----
27

skipif mysql # not compatible
query I rowsort label-5669
SELECT 28 - - - COUNT ( * )
----
27

query I rowsort
SELECT 99 * - 20
----
-1980

onlyif mysql # aggregate syntax: 
query II rowsort label-5671
SELECT SUM( - ( 98 ) ), 13 AS col1
----
-98
13

skipif mysql # not compatible
query II rowsort label-5671
SELECT SUM ( - ( 98 ) ), 13 AS col1
----
-98
13

query I rowsort
SELECT ALL + NULLIF ( 77, 1 ) * 45 - 36 col2
----
3429

query II rowsort
SELECT ALL - 99, 81 col1
----
-99
81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5674
SELECT ALL + 9 * + CAST( 60 AS SIGNED )
----
540

skipif mysql # not compatible
query I rowsort label-5674
SELECT ALL + 9 * + CAST ( 60 AS INTEGER )
----
540

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5676
SELECT 22 * 76 + - - AVG ( CAST( CAST( NULL AS SIGNED ) AS SIGNED ) ) + + CASE - + CAST( NULL AS SIGNED ) WHEN - 64 THEN - + 37 ELSE NULL END / 43 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5676
SELECT 22 * 76 + - - AVG ( CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) ) + + CASE - + CAST ( NULL AS INTEGER ) WHEN - 64 THEN - + 37 ELSE NULL END / 43 AS col1
----
NULL

query II rowsort
SELECT - 30 AS col1, 28 AS col0
----
-30
28

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5678
SELECT ALL - + MIN( ALL - CAST( + - 46 AS SIGNED ) ), 84 + - + 54 AS col2
----
-46
30

skipif mysql # not compatible
query II rowsort label-5678
SELECT ALL - + MIN ( ALL - CAST ( + - 46 AS INTEGER ) ), 84 + - + 54 AS col2
----
-46
30

onlyif mysql # aggregate syntax: 
query I rowsort label-5679
SELECT SUM( + + 28 ) AS col1
----
28

skipif mysql # not compatible
query I rowsort label-5679
SELECT SUM ( + + 28 ) AS col1
----
28

query I rowsort
SELECT NULLIF ( + + 93, + - 55 ) AS col0
----
93

query II rowsort
SELECT + 30 AS col1, - 84 AS col1
----
30
-84

query I rowsort
SELECT + ( + 80 ) * - + 86 col0
----
-6880

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5683
SELECT ALL CAST( NULL AS DECIMAL ) / - 94 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5683
SELECT ALL CAST ( NULL AS REAL ) / - 94 AS col0
----
NULL

query I rowsort
SELECT 81 * + 39 * - 94 * - 64 + - + 3
----
19004541

onlyif mysql # aggregate syntax: 
query II rowsort label-5685
SELECT ALL + + 66 AS col0, MIN( + ( 86 ) ) + - ( - 73 ) AS col2
----
66
159

skipif mysql # not compatible
query II rowsort label-5685
SELECT ALL + + 66 AS col0, MIN ( + ( 86 ) ) + - ( - 73 ) AS col2
----
66
159

query I rowsort
SELECT ALL - 70 * + 92
----
-6440

query II rowsort
SELECT DISTINCT + 44 AS col0, 62 col1
----
44
62

query I rowsort
SELECT DISTINCT + - 58 AS col2
----
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-5689
SELECT + - MAX( DISTINCT - - 18 )
----
-18

skipif mysql # not compatible
query I rowsort label-5689
SELECT + - MAX ( DISTINCT - - 18 )
----
-18

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

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

query I rowsort
SELECT 65 * + 43 + + 2 AS col1
----
2797

onlyif mysql # aggregate syntax: 
query I rowsort label-5692
SELECT + COUNT( * ) * - - 95 AS col1
----
95

skipif mysql # not compatible
query I rowsort label-5692
SELECT + COUNT ( * ) * - - 95 AS col1
----
95

onlyif mysql # aggregate syntax: 
query II rowsort label-5693
SELECT COUNT( * ) col2, 25 + - - 71
----
1
96

skipif mysql # not compatible
query II rowsort label-5693
SELECT COUNT ( * ) col2, 25 + - - 71
----
1
96

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5694
SELECT ALL 42 + + + 95 + + NULLIF ( 2, + 62 ) * - CAST( NULL AS SIGNED ) / - + 86 * - ( + - NULLIF ( - - 11, - - NULLIF ( 3, - + 39 ) ) ) col2, 39 * + 21
----
NULL
819

skipif mysql # not compatible
query II rowsort label-5694
SELECT ALL 42 + + + 95 + + NULLIF ( 2, + 62 ) * - CAST ( NULL AS INTEGER ) / - + 86 * - ( + - NULLIF ( - - 11, - - NULLIF ( 3, - + 39 ) ) ) col2, 39 * + 21
----
NULL
819

query I rowsort
SELECT + 12 + 55 * - + 0 - ( - 4 ) - ( + - 85 )
----
101

query I rowsort
SELECT - + 15 col2
----
-15

query I rowsort
SELECT ALL 31 + + 17 + - 69
----
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-5698
SELECT + COUNT( * ) + - - 6
----
7

skipif mysql # not compatible
query I rowsort label-5698
SELECT + COUNT ( * ) + - - 6
----
7

onlyif mysql # aggregate syntax: 
query II rowsort label-5699
SELECT DISTINCT 60 + - 15 AS col2, COALESCE ( + 72, + - COUNT( * ) ) * - + 6 - - 58 * - 60
----
45
-3912

skipif mysql # not compatible
query II rowsort label-5699
SELECT DISTINCT 60 + - 15 AS col2, COALESCE ( + 72, + - COUNT ( * ) ) * - + 6 - - 58 * - 60
----
45
-3912

query I rowsort
SELECT ALL + 12 + + + 51
----
63

query I rowsort
SELECT - ( 83 ) AS col1
----
-83

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5703
SELECT DISTINCT MAX( 46 ) + - + NULLIF ( + 26, COUNT( * ) ) + 41 * + 7 + - 71
----
236

skipif mysql # not compatible
query I rowsort label-5703
SELECT DISTINCT MAX ( 46 ) + - + NULLIF ( + 26, COUNT ( * ) ) + 41 * + 7 + - 71
----
236

query I rowsort
SELECT + 77 * + ( 68 )
----
5236

query I rowsort
SELECT - 83 + + 95 + ( + + 22 ) AS col1
----
34

query I rowsort
SELECT - 59 + - 55 - + 43
----
-157

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

skipif mysql # not compatible
query I rowsort label-5707
SELECT - ( MAX ( + - ( + - 9 ) ) )
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-5708
SELECT ALL - MAX( ALL NULLIF ( - - 73, + 74 * + - 11 ) ) - 3 AS col2
----
-76

skipif mysql # not compatible
query I rowsort label-5708
SELECT ALL - MAX ( ALL NULLIF ( - - 73, + 74 * + - 11 ) ) - 3 AS col2
----
-76

query I rowsort
SELECT + 47 * - 96 col1
----
-4512

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5710
SELECT - 65 + + COALESCE ( 50, MAX( DISTINCT - 1 ) ) + + - CAST( NULL AS SIGNED ) * + NULLIF ( + - 97, - 60 ) + + + 15 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5710
SELECT - 65 + + COALESCE ( 50, MAX ( DISTINCT - 1 ) ) + + - CAST ( NULL AS INTEGER ) * + NULLIF ( + - 97, - 60 ) + + + 15 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5711
SELECT - 41 + - - SUM( DISTINCT - - 46 ) * + 34 + + 99
----
1622

skipif mysql # not compatible
query I rowsort label-5711
SELECT - 41 + - - SUM ( DISTINCT - - 46 ) * + 34 + + 99
----
1622

onlyif mysql # aggregate syntax: 
query I rowsort label-5712
SELECT ALL SUM( - 82 )
----
-82

skipif mysql # not compatible
query I rowsort label-5712
SELECT ALL SUM ( - 82 )
----
-82

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

onlyif mysql # aggregate syntax: 
query II rowsort label-5714
SELECT - 14 + COUNT( * ) AS col1, + 90
----
-13
90

skipif mysql # not compatible
query II rowsort label-5714
SELECT - 14 + COUNT ( * ) AS col1, + 90
----
-13
90

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5716
SELECT - ( COUNT( * ) ) DIV + 10 * - 56 + - 43 * + - 44
----
1892

skipif mysql # not compatible
query I rowsort label-5716
SELECT - ( COUNT ( * ) ) / + 10 * - 56 + - 43 * + - 44
----
1892

onlyif mysql # DIV for integer division: 
query I rowsort label-5717
SELECT ALL - 21 DIV + 67
----
0

skipif mysql # not compatible
query I rowsort label-5717
SELECT ALL - 21 / + 67
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5718
SELECT - + CAST( NULL AS SIGNED ) + - 73 * - 68 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5718
SELECT - + CAST ( NULL AS INTEGER ) + - 73 * - 68 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5719
SELECT DISTINCT - + 1 * - + MIN( 49 ) - 15 - - 72 * COUNT( * ) AS col2
----
106

skipif mysql # not compatible
query I rowsort label-5719
SELECT DISTINCT - + 1 * - + MIN ( 49 ) - 15 - - 72 * COUNT ( * ) AS col2
----
106

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

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

query I rowsort
SELECT ALL - 74 * + 0 + + 43 col1
----
43

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5722
SELECT + 18 * - ( - - 54 ) + + 90 + 28 DIV + + COALESCE ( - + CASE + 41 WHEN NULLIF ( - 63, + + COALESCE ( - CAST( NULL AS SIGNED ), - 92 DIV - - 90, 52 ) ) THEN + + 60 + - CASE 87 WHEN COALESCE ( + 21, + - AVG ( + 41 ), + 58 * - 18 * 94 + + COALESCE ( - 98, + 15 - - 86 * ( + + 40 ) + 92 ) DIV + - ( + 72 ) * + 32 * - COUNT( * ) + - ( + 20 ) * 58, - 53 ) THEN - 28 - + COUNT( + 95 ) ELSE - COUNT( * ) END * 22 END, COALESCE ( 43, 59 DIV - 14 ) )
----
-882

skipif mysql # not compatible
query I rowsort label-5722
SELECT + 18 * - ( - - 54 ) + + 90 + 28 / + + COALESCE ( - + CASE + 41 WHEN NULLIF ( - 63, + + COALESCE ( - CAST ( NULL AS INTEGER ), - 92 / - - 90, 52 ) ) THEN + + 60 + - CASE 87 WHEN COALESCE ( + 21, + - AVG ( + 41 ), + 58 * - 18 * 94 + + COALESCE ( - 98, + 15 - - 86 * ( + + 40 ) + 92 ) / + - ( + 72 ) * + 32 * - COUNT ( * ) + - ( + 20 ) * 58, - 53 ) THEN - 28 - + COUNT ( + 95 ) ELSE - COUNT ( * ) END * 22 END, COALESCE ( 43, 59 / - 14 ) )
----
-882

query I rowsort
SELECT DISTINCT + 58 AS col1
----
58

query I rowsort
SELECT - 60 * - + 25
----
1500

query I rowsort
SELECT ALL ( + 49 ) * 68 + - + 62 * 65 + - + 5 + 99 * 89 * - NULLIF ( - - 30, ( + 93 ) ) AS col2
----
-265033

onlyif mysql # aggregate syntax: 
query I rowsort label-5726
SELECT ALL + CASE + 73 WHEN - 24 THEN 69 ELSE NULL END * - - COUNT( * ) * + 57
----
NULL

skipif mysql # not compatible
query I rowsort label-5726
SELECT ALL + CASE + 73 WHEN - 24 THEN 69 ELSE NULL END * - - COUNT ( * ) * + 57
----
NULL

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

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

query I rowsort
SELECT ALL 93 * + 69 + + 68 AS col1
----
6485

onlyif mysql # aggregate syntax: 
query I rowsort label-5729
SELECT MAX( NULLIF ( - ( - + 95 ), + 57 ) ) AS col1
----
95

skipif mysql # not compatible
query I rowsort label-5729
SELECT MAX ( NULLIF ( - ( - + 95 ), + 57 ) ) AS col1
----
95

onlyif mysql # aggregate syntax: 
query I rowsort label-5730
SELECT ALL - 39 * + 55 * + + MIN( DISTINCT + 0 ) + - - 52 * + - 91 AS col0
----
-4732

skipif mysql # not compatible
query I rowsort label-5730
SELECT ALL - 39 * + 55 * + + MIN ( DISTINCT + 0 ) + - - 52 * + - 91 AS col0
----
-4732

query I rowsort
SELECT - ( - - 1 ) AS col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5732
SELECT - COUNT( - 10 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-5732
SELECT - COUNT ( - 10 ) AS col0
----
-1

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-5733
SELECT - MIN( 53 ) + + 94 AS col2, + CAST( NULL AS DECIMAL ) AS col0
----
41
NULL

skipif mysql # not compatible
query II rowsort label-5733
SELECT - MIN ( 53 ) + + 94 AS col2, + CAST ( NULL AS REAL ) AS col0
----
41
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5734
SELECT ALL 89 * - - CAST( 20 AS SIGNED )
----
1780

skipif mysql # not compatible
query I rowsort label-5734
SELECT ALL 89 * - - CAST ( 20 AS INTEGER )
----
1780

onlyif mysql # aggregate syntax: 
query I rowsort label-5735
SELECT + CASE + COUNT( * ) WHEN - + 87 + 64 THEN - 47 / - 0 * 10 + 27 + 95 ELSE NULL END * 87 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5735
SELECT + CASE + COUNT ( * ) WHEN - + 87 + 64 THEN - 47 / - 0 * 10 + 27 + 95 ELSE NULL END * 87 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5736
SELECT DISTINCT COUNT( * ) * + 2 AS col1
----
2

skipif mysql # not compatible
query I rowsort label-5736
SELECT DISTINCT COUNT ( * ) * + 2 AS col1
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-5737
SELECT - COALESCE ( + 61, - + NULLIF ( COUNT( + + 90 ), - + COUNT( * ) * - 10 * - 99 + - 68 + 88 + ( + 44 ) / + 74 * + 2 ), + 15 ) AS col0
----
-61

skipif mysql # not compatible
query I rowsort label-5737
SELECT - COALESCE ( + 61, - + NULLIF ( COUNT ( + + 90 ), - + COUNT ( * ) * - 10 * - 99 + - 68 + 88 + ( + 44 ) / + 74 * + 2 ), + 15 ) AS col0
----
-61

query II rowsort
SELECT ALL 4 AS col2, - 11 AS col0
----
4
-11

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

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

query I rowsort
SELECT ALL 53 * + + 5 AS col2
----
265

query II rowsort
SELECT + 24 - 40 + - 92 * - + 34 * 30 AS col0, + ( 34 ) * - 15 col2
----
93824
-510

query I rowsort
SELECT ALL COALESCE ( - 30, - 78 )
----
-30

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5744
SELECT + 0 + + - 39 + 56 - COALESCE ( - MIN( DISTINCT - - 51 ), + - 97 * - COUNT( * ), 62 ) DIV + + 89 * - 46 AS col1
----
17

skipif mysql # not compatible
query I rowsort label-5744
SELECT + 0 + + - 39 + 56 - COALESCE ( - MIN ( DISTINCT - - 51 ), + - 97 * - COUNT ( * ), 62 ) / + + 89 * - 46 AS col1
----
17

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5745
SELECT + 18 DIV - SUM( - 54 ) * + 92 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-5745
SELECT + 18 / - SUM ( - 54 ) * + 92 AS col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5746
SELECT ALL CASE + - 7 WHEN + - COUNT( * ) * - ( + - 24 ) / + 33 * - + COUNT( * ) + - 99 / - 21 * - 85 + - COALESCE ( 8, 34 ) + + CAST( - 17 AS SIGNED ) * - NULLIF ( COUNT( * ), - + 28 ) THEN - COUNT( * ) - + - SUM( 69 ) * + - COUNT( * ) ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5746
SELECT ALL CASE + - 7 WHEN + - COUNT ( * ) * - ( + - 24 ) / + 33 * - + COUNT ( * ) + - 99 / - 21 * - 85 + - COALESCE ( 8, 34 ) + + CAST ( - 17 AS INTEGER ) * - NULLIF ( COUNT ( * ), - + 28 ) THEN - COUNT ( * ) - + - SUM ( 69 ) * + - COUNT ( * ) ELSE NULL END AS col1
----
NULL

query I rowsort
SELECT + 94 * + 88
----
8272

query I rowsort
SELECT + 64 + 76 AS col0
----
140

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5749
SELECT - MIN( - 59 ) - - CAST( NULL AS SIGNED ) + + NULLIF ( 28, - 39 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5749
SELECT - MIN ( - 59 ) - - CAST ( NULL AS INTEGER ) + + NULLIF ( 28, - 39 ) AS col1
----
NULL

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5752
SELECT - - 25 * + + CAST( + CAST( - 1 AS SIGNED ) AS SIGNED ) * - 85 * + + MAX( ALL 19 ) / - 59 + CAST( NULL AS SIGNED ) * ( + ( - 65 ) ) / + 80 + - 35 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5752
SELECT - - 25 * + + CAST ( + CAST ( - 1 AS INTEGER ) AS INTEGER ) * - 85 * + + MAX ( ALL 19 ) / - 59 + CAST ( NULL AS INTEGER ) * ( + ( - 65 ) ) / + 80 + - 35 AS col2
----
NULL

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5754
SELECT - COUNT( * ) DIV 36 * 61 + - 26 + - - 49 * + 58 + 87
----
2903

skipif mysql # not compatible
query I rowsort label-5754
SELECT - COUNT ( * ) / 36 * 61 + - 26 + - - 49 * + 58 + 87
----
2903

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

skipif mysql # not compatible
query I rowsort label-5755
SELECT ALL - CAST ( + CAST ( NULL AS INTEGER ) AS REAL ) AS col2
----
NULL

query I rowsort
SELECT DISTINCT 30 * - + 52
----
-1560

query I rowsort
SELECT + 69 + + 77
----
146

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-5759
SELECT ALL COUNT( * ) + - 53 * + - 95 col0, + ( 3 ) * - CASE - 96 WHEN 28 THEN - - COUNT( * ) * - 16 * 45 + + COUNT( * ) / - + ( + - ( + 89 ) ) + + 1 WHEN - 27 + - CASE 38 WHEN ( 27 ) THEN NULL WHEN - + 84 THEN + + 41 ELSE + 50 END * 97 * - ( - - 8 ) + + SUM( + - 41 ) THEN NULL END * + - COUNT( * )
----
5036
NULL

skipif mysql # not compatible
query II rowsort label-5759
SELECT ALL COUNT ( * ) + - 53 * + - 95 col0, + ( 3 ) * - CASE - 96 WHEN 28 THEN - - COUNT ( * ) * - 16 * 45 + + COUNT ( * ) / - + ( + - ( + 89 ) ) + + 1 WHEN - 27 + - CASE 38 WHEN ( 27 ) THEN NULL WHEN - + 84 THEN + + 41 ELSE + 50 END * 97 * - ( - - 8 ) + + SUM ( + - 41 ) THEN NULL END * + - COUNT ( * )
----
5036
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5761
SELECT ALL - 78 + + COUNT( * )
----
-77

skipif mysql # not compatible
query I rowsort label-5761
SELECT ALL - 78 + + COUNT ( * )
----
-77

onlyif mysql # DIV for integer division: 
query II rowsort label-5762
SELECT - - 13 DIV + - 35 + + 65 col1, 87
----
65
87

skipif mysql # not compatible
query II rowsort label-5762
SELECT - - 13 / + - 35 + + 65 col1, 87
----
65
87

query I rowsort
SELECT ( + 97 ) * 98 * + 43 col1
----
408758

onlyif mysql # DIV for integer division: 
query I rowsort label-5764
SELECT 40 DIV 80 * 58 + + 0
----
0

skipif mysql # not compatible
query I rowsort label-5764
SELECT 40 / 80 * 58 + + 0
----
0

query I rowsort
SELECT 32 + 65 AS col0
----
97

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5767
SELECT ALL - - 94 + 25 * - CAST( NULL AS DECIMAL ) * - + 89 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5767
SELECT ALL - - 94 + 25 * - CAST ( NULL AS REAL ) * - + 89 col2
----
NULL

query I rowsort
SELECT ( 5 ) + + 45 col0
----
50

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

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

query I rowsort
SELECT ALL + 43 + + 67
----
110

onlyif mysql # aggregate syntax: 
query I rowsort label-5771
SELECT DISTINCT + 27 * - 38 * + COUNT( * ) AS col1
----
-1026

skipif mysql # not compatible
query I rowsort label-5771
SELECT DISTINCT + 27 * - 38 * + COUNT ( * ) AS col1
----
-1026

query I rowsort
SELECT ALL - - 94 * - 40
----
-3760

query I rowsort
SELECT DISTINCT - + 52 + + 78 AS col0
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-5774
SELECT COALESCE ( - 43, 3 * + + 7 + + + COUNT( * ) )
----
-43

skipif mysql # not compatible
query I rowsort label-5774
SELECT COALESCE ( - 43, 3 * + + 7 + + + COUNT ( * ) )
----
-43

query I rowsort
SELECT ALL 2 - - 26 * + + 74
----
1926

query I rowsort
SELECT 9 - - 49
----
58

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5778
SELECT COALESCE ( COUNT( * ), COUNT( * ) ) + + 82 + - ( COUNT( * ) ) AS col2, + 2 DIV + 30
----
82
0

skipif mysql # not compatible
query II rowsort label-5778
SELECT COALESCE ( COUNT ( * ), COUNT ( * ) ) + + 82 + - ( COUNT ( * ) ) AS col2, + 2 / + 30
----
82
0

query II rowsort
SELECT DISTINCT 41 AS col1, - 32 AS col2
----
41
-32

onlyif mysql # aggregate syntax: 
query II rowsort label-5780
SELECT 23, COUNT( * ) * - - COALESCE ( 44, + 19 ) * - - COUNT( * ) AS col2
----
23
44

skipif mysql # not compatible
query II rowsort label-5780
SELECT 23, COUNT ( * ) * - - COALESCE ( 44, + 19 ) * - - COUNT ( * ) AS col2
----
23
44

query I rowsort
SELECT 22 * - 20 + + + 28
----
-412

query I rowsort
SELECT 99 * - CASE 58 WHEN + + ( + 74 ) THEN + 76 * - + 46 WHEN + - 78 * - 22 * + 27 THEN + NULLIF ( + 5, - + 69 + + 26 * + 76 ) END * - 83 + + 58
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5783
SELECT COUNT( * ) * - 77
----
-77

skipif mysql # not compatible
query I rowsort label-5783
SELECT COUNT ( * ) * - 77
----
-77

query I rowsort
SELECT ( 83 ) + - 76
----
7

onlyif mysql # aggregate syntax: 
query II rowsort label-5785
SELECT ALL 99 AS col2, SUM( ALL - 16 ) AS col0
----
99
-16

skipif mysql # not compatible
query II rowsort label-5785
SELECT ALL 99 AS col2, SUM ( ALL - 16 ) AS col0
----
99
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-5786
SELECT 9 + + COALESCE ( - COUNT( * ), + + 15, + 38, - 73 * - 84 ) * + ( - + 23 )
----
32

skipif mysql # not compatible
query I rowsort label-5786
SELECT 9 + + COALESCE ( - COUNT ( * ), + + 15, + 38, - 73 * - 84 ) * + ( - + 23 )
----
32

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5787
SELECT 18 + CAST( + 68 AS SIGNED )
----
86

skipif mysql # not compatible
query I rowsort label-5787
SELECT 18 + CAST ( + 68 AS INTEGER )
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-5788
SELECT COUNT( * ) * 59 * - 62 col0
----
-3658

skipif mysql # not compatible
query I rowsort label-5788
SELECT COUNT ( * ) * 59 * - 62 col0
----
-3658

onlyif mysql # aggregate syntax: 
query I rowsort label-5789
SELECT 28 + + COUNT( DISTINCT - + 88 ) - - 72 + - 30 * - - 73 AS col0
----
-2089

skipif mysql # not compatible
query I rowsort label-5789
SELECT 28 + + COUNT ( DISTINCT - + 88 ) - - 72 + - 30 * - - 73 AS col0
----
-2089

query II rowsort
SELECT ALL 10 AS col0, + 71 AS col2
----
10
71

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5791
SELECT COALESCE ( 32, - 93 * - CAST( NULL AS SIGNED ) ) + - + 3
----
29

skipif mysql # not compatible
query I rowsort label-5791
SELECT COALESCE ( 32, - 93 * - CAST ( NULL AS INTEGER ) ) + - + 3
----
29

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5792
SELECT ALL COALESCE ( COALESCE ( + 64, 9 ), + - 85 - 87 + + - 25 DIV + COUNT( * ) + - 61 ) * - 93 AS col0
----
-5952

skipif mysql # not compatible
query I rowsort label-5792
SELECT ALL COALESCE ( COALESCE ( + 64, 9 ), + - 85 - 87 + + - 25 / + COUNT ( * ) + - 61 ) * - 93 AS col0
----
-5952

query I rowsort
SELECT 53 + - + ( - - 40 ) AS col0
----
13

query II rowsort
SELECT 79, 73 col1
----
79
73

onlyif mysql # aggregate syntax: 
query II rowsort label-5795
SELECT DISTINCT 25 col0, MIN( 19 ) AS col2
----
25
19

skipif mysql # not compatible
query II rowsort label-5795
SELECT DISTINCT 25 col0, MIN ( 19 ) AS col2
----
25
19

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5797
SELECT ( + + 25 ) DIV - 57
----
0

skipif mysql # not compatible
query I rowsort label-5797
SELECT ( + + 25 ) / - 57
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5798
SELECT DISTINCT - 70 AS col2, COUNT( * ) DIV + + 12
----
-70
0

skipif mysql # not compatible
query II rowsort label-5798
SELECT DISTINCT - 70 AS col2, COUNT ( * ) / + + 12
----
-70
0

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

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

query I rowsort
SELECT DISTINCT ( - ( - + 8 ) ) + 94 col0
----
102

query I rowsort
SELECT ALL 92 / + + CASE CASE 8 WHEN - ( + + ( + 76 ) ) * - 68 THEN NULL ELSE - 22 * + 59 END WHEN 38 * + 63 THEN + 14 END * 48 col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5802
SELECT DISTINCT - ( + - 4 ) AS col0, 75 + 18 + - 0 * - + MAX( ALL - 22 ) + + - 58 col1
----
4
35

skipif mysql # not compatible
query II rowsort label-5802
SELECT DISTINCT - ( + - 4 ) AS col0, 75 + 18 + - 0 * - + MAX ( ALL - 22 ) + + - 58 col1
----
4
35

onlyif mysql # aggregate syntax: 
query I rowsort label-5803
SELECT CASE + 8 WHEN - + 34 THEN + 55 + - + 83 WHEN MIN( - 53 ) THEN - + 77 ELSE NULL END + - 22
----
NULL

skipif mysql # not compatible
query I rowsort label-5803
SELECT CASE + 8 WHEN - + 34 THEN + 55 + - + 83 WHEN MIN ( - 53 ) THEN - + 77 ELSE NULL END + - 22
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5804
SELECT + 12 + 38 * + COUNT( * ) * + 12
----
468

skipif mysql # not compatible
query I rowsort label-5804
SELECT + 12 + 38 * + COUNT ( * ) * + 12
----
468

query II rowsort
SELECT ALL 81 + + 55 AS col2, 3
----
136
3

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5807
SELECT + SUM( ALL + - 3 ) AS col1
----
-3

skipif mysql # not compatible
query I rowsort label-5807
SELECT + SUM ( ALL + - 3 ) AS col1
----
-3

query I rowsort
SELECT ALL - 6 - 58 AS col2
----
-64

query II rowsort
SELECT ALL - + ( + 54 ) AS col0, - 77 * + ( + 80 ) * 76 * 2 AS col1
----
-54
-936320

onlyif mysql # aggregate syntax: 
query II rowsort label-5810
SELECT ALL - COALESCE ( + 64, - 37 + + 66 ) AS col0, 30 - - + NULLIF ( - + COUNT( * ), + + 56 ) AS col0
----
-64
29

skipif mysql # not compatible
query II rowsort label-5810
SELECT ALL - COALESCE ( + 64, - 37 + + 66 ) AS col0, 30 - - + NULLIF ( - + COUNT ( * ), + + 56 ) AS col0
----
-64
29

query I rowsort
SELECT + ( NULLIF ( - 90, - - 4 ) )
----
-90

query I rowsort
SELECT 19 + - - 65 + + 29 * + 88 AS col1
----
2636

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5813
SELECT CAST( + - 82 AS SIGNED ) * - CAST( + 60 AS SIGNED ) * - 54 * - 19
----
5047920

skipif mysql # not compatible
query I rowsort label-5813
SELECT CAST ( + - 82 AS INTEGER ) * - CAST ( + 60 AS INTEGER ) * - 54 * - 19
----
5047920

onlyif mysql # aggregate syntax: 
query I rowsort label-5814
SELECT COUNT( * ) * + - 35 * - 31
----
1085

skipif mysql # not compatible
query I rowsort label-5814
SELECT COUNT ( * ) * + - 35 * - 31
----
1085

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5815
SELECT DISTINCT + 36 * - + 37, 40 + CAST( NULL AS SIGNED ) AS col1
----
-1332
NULL

skipif mysql # not compatible
query II rowsort label-5815
SELECT DISTINCT + 36 * - + 37, 40 + CAST ( NULL AS INTEGER ) AS col1
----
-1332
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5816
SELECT ALL - SUM( ALL + 14 ) AS col2, + CAST( NULL AS SIGNED ) AS col0
----
-14
NULL

skipif mysql # not compatible
query II rowsort label-5816
SELECT ALL - SUM ( ALL + 14 ) AS col2, + CAST ( NULL AS INTEGER ) AS col0
----
-14
NULL

query II rowsort
SELECT ALL + 27 * 67, 24 col2
----
1809
24

onlyif mysql # aggregate syntax: 
query I rowsort label-5818
SELECT ALL + 55 * + ( - MIN( - 90 ) ) AS col2
----
4950

skipif mysql # not compatible
query I rowsort label-5818
SELECT ALL + 55 * + ( - MIN ( - 90 ) ) AS col2
----
4950

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

skipif mysql # not compatible
query I rowsort label-5819
SELECT 34 * + COUNT ( * ) / - - ( + 72 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5820
SELECT ALL SUM( ( 77 ) ) AS col2
----
77

skipif mysql # not compatible
query I rowsort label-5820
SELECT ALL SUM ( ( 77 ) ) AS col2
----
77

onlyif mysql # DIV for integer division: 
query I rowsort label-5821
SELECT 8 + + + 65 DIV 34 + - 80 + + - 87 + + 53
----
-105

skipif mysql # not compatible
query I rowsort label-5821
SELECT 8 + + + 65 / 34 + - 80 + + - 87 + + 53
----
-105

query I rowsort
SELECT ALL COALESCE ( 91, + + 79 + - 10 ) AS col2
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-5823
SELECT DISTINCT CASE - 32 WHEN - NULLIF ( + + 38, 86 ) * + COUNT( * ) THEN 30 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5823
SELECT DISTINCT CASE - 32 WHEN - NULLIF ( + + 38, 86 ) * + COUNT ( * ) THEN 30 END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5824
SELECT - COUNT( * ) - + + 26
----
-27

skipif mysql # not compatible
query I rowsort label-5824
SELECT - COUNT ( * ) - + + 26
----
-27

onlyif mysql # DIV for integer division: 
query I rowsort label-5825
SELECT DISTINCT + COALESCE ( - 5, + 26 ) + - 94 + - NULLIF ( + + 87, + + 26 + + - 62 * - 10 * 24 ) DIV - - 40
----
-101

skipif mysql # not compatible
query I rowsort label-5825
SELECT DISTINCT + COALESCE ( - 5, + 26 ) + - 94 + - NULLIF ( + + 87, + + 26 + + - 62 * - 10 * 24 ) / - - 40
----
-101

onlyif mysql # aggregate syntax: 
query I rowsort label-5826
SELECT ALL - 92 + - - COUNT( * )
----
-91

skipif mysql # not compatible
query I rowsort label-5826
SELECT ALL - 92 + - - COUNT ( * )
----
-91

onlyif mysql # DIV for integer division: 
query I rowsort label-5827
SELECT DISTINCT 81 + - 52 * - 56 * + + 0 DIV 50 col0
----
81

skipif mysql # not compatible
query I rowsort label-5827
SELECT DISTINCT 81 + - 52 * - 56 * + + 0 / 50 col0
----
81

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5828
SELECT - + ( - 95 ) AS col2, - CAST( - 32 AS SIGNED ) * - 61 * 96 AS col1
----
95
-187392

skipif mysql # not compatible
query II rowsort label-5828
SELECT - + ( - 95 ) AS col2, - CAST ( - 32 AS INTEGER ) * - 61 * 96 AS col1
----
95
-187392

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5829
SELECT ALL ( + 54 ) + CAST( NULL AS SIGNED ) / + 69 + + 10 - + 13 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5829
SELECT ALL ( + 54 ) + CAST ( NULL AS INTEGER ) / + 69 + + 10 - + 13 AS col0
----
NULL

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

query I rowsort
SELECT DISTINCT - 49 * + + NULLIF ( 21, - 89 )
----
-1029

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-5832
SELECT + 57 DIV - 49 + - MAX( + + 27 ) + - COUNT( * ), - 8 * - 52 DIV + + CASE 46 WHEN 3 THEN - - 96 * - 75 + - - 59 + 17 + - CASE + 13 WHEN - MAX( DISTINCT + 85 ) * - 22 THEN + + 34 * - 48 * + 17 + ( + 31 ) + CAST( NULL AS SIGNED ) * - 31 + - 97 + + - 45 WHEN 15 + ( COUNT( - 97 ) ) THEN NULL WHEN + - 75 * + 33 + - 18 THEN - COUNT( * ) + + - CAST( NULL AS SIGNED ) END + 10 * SUM( ALL + 4 ) END + + 2 * 1 col1
----
-29
NULL

skipif mysql # not compatible
query II rowsort label-5832
SELECT + 57 / - 49 + - MAX ( + + 27 ) + - COUNT ( * ), - 8 * - 52 / + + CASE 46 WHEN 3 THEN - - 96 * - 75 + - - 59 + 17 + - CASE + 13 WHEN - MAX ( DISTINCT + 85 ) * - 22 THEN + + 34 * - 48 * + 17 + ( + 31 ) + CAST ( NULL AS INTEGER ) * - 31 + - 97 + + - 45 WHEN 15 + ( COUNT ( - 97 ) ) THEN NULL WHEN + - 75 * + 33 + - 18 THEN - COUNT ( * ) + + - CAST ( NULL AS INTEGER ) END + 10 * SUM ( ALL + 4 ) END + + 2 * 1 col1
----
-29
NULL

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

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

query I rowsort
SELECT DISTINCT + 64 col0
----
64

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5835
SELECT DISTINCT 11 DIV + ( + + MAX( ALL - + 84 ) ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-5835
SELECT DISTINCT 11 / + ( + + MAX ( ALL - + 84 ) ) AS col0
----
0

query I rowsort
SELECT ALL - 89 * + - CASE - 17 WHEN + 12 THEN - + 39 END * 96 - AVG ( ALL + + ( 24 ) ) AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5837
SELECT 60 * 76 + 90 + - COUNT( * ) DIV 70
----
4650

skipif mysql # not compatible
query I rowsort label-5837
SELECT 60 * 76 + 90 + - COUNT ( * ) / 70
----
4650

onlyif mysql # DIV for integer division: 
query I rowsort label-5838
SELECT + 99 DIV - ( 66 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-5838
SELECT + 99 / - ( 66 ) AS col2
----
-1

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5840
SELECT + SUM( ALL - 95 ) DIV NULLIF ( - - 50, + 27 ) + + + ( - 65 ) + 12 + - 40 + + + COUNT( * ) - + - 33 * + 78 * - 43 * NULLIF ( - + 60, 97 * + 28 * + 38 ) + 34 AS col0
----
6640861

skipif mysql # not compatible
query I rowsort label-5840
SELECT + SUM ( ALL - 95 ) / NULLIF ( - - 50, + 27 ) + + + ( - 65 ) + 12 + - 40 + + + COUNT ( * ) - + - 33 * + 78 * - 43 * NULLIF ( - + 60, 97 * + 28 * + 38 ) + 34 AS col0
----
6640861

onlyif mysql # aggregate syntax: 
query I rowsort label-5841
SELECT ALL + + 43 * + 88 * COUNT( * ) + 0 - + ( 25 )
----
3759

skipif mysql # not compatible
query I rowsort label-5841
SELECT ALL + + 43 * + 88 * COUNT ( * ) + 0 - + ( 25 )
----
3759

query II rowsort
SELECT ALL + 64 AS col0, 49 AS col1
----
64
49

onlyif mysql # aggregate syntax: 
query I rowsort label-5843
SELECT + COUNT( - ( 20 ) ) + + NULLIF ( 52, + 54 * + MAX( DISTINCT 3 ) * - 92 - + 57 + + - 58 + - COUNT( * ) + - - 25 + - 46 / - 89 - 78 - COALESCE ( ( - + COUNT( * ) ), + 44 - - 31 / - - COUNT( * ) - - ( COUNT( * ) ) ) / 76 / + 75 ) AS col0
----
53

skipif mysql # not compatible
query I rowsort label-5843
SELECT + COUNT ( - ( 20 ) ) + + NULLIF ( 52, + 54 * + MAX ( DISTINCT 3 ) * - 92 - + 57 + + - 58 + - COUNT ( * ) + - - 25 + - 46 / - 89 - 78 - COALESCE ( ( - + COUNT ( * ) ), + 44 - - 31 / - - COUNT ( * ) - - ( COUNT ( * ) ) ) / 76 / + 75 ) AS col0
----
53

query I rowsort
SELECT + 49 + - 90
----
-41

query II rowsort
SELECT ALL + 83, 42 AS col0
----
83
42

query I rowsort
SELECT 59 * - - 42 + + 45 + - 13 AS col2
----
2510

query I rowsort
SELECT + ( 7 ) col2
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-5848
SELECT ALL 24 * - + COUNT( * ) * - 68 * - 44
----
-71808

skipif mysql # not compatible
query I rowsort label-5848
SELECT ALL 24 * - + COUNT ( * ) * - 68 * - 44
----
-71808

query I rowsort
SELECT ALL + 73 col1
----
73

query I rowsort
SELECT - 95 + - 49
----
-144

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5851
SELECT MIN( + + ( ( - - CAST( 26 AS SIGNED ) ) ) )
----
26

skipif mysql # not compatible
query I rowsort label-5851
SELECT MIN ( + + ( ( - - CAST ( 26 AS INTEGER ) ) ) )
----
26

query I rowsort
SELECT + 65 * + - 47
----
-3055

query I rowsort
SELECT - 71 + - 1
----
-72

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5855
SELECT + COALESCE ( - COUNT( * ), - - 81 + 49 + + 56 ) * + 79 DIV - 71 + + 80
----
81

skipif mysql # not compatible
query I rowsort label-5855
SELECT + COALESCE ( - COUNT ( * ), - - 81 + 49 + + 56 ) * + 79 / - 71 + + 80
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-5856
SELECT ALL + 88 * + CASE - 8 WHEN + + COUNT( * ) THEN - 52 + - ( + - 43 ) - - 47 ELSE - COUNT( * ) END + COUNT( * ) AS col0
----
-87

skipif mysql # not compatible
query I rowsort label-5856
SELECT ALL + 88 * + CASE - 8 WHEN + + COUNT ( * ) THEN - 52 + - ( + - 43 ) - - 47 ELSE - COUNT ( * ) END + COUNT ( * ) AS col0
----
-87

query I rowsort
SELECT + 59 + + + 15
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-5858
SELECT ALL MAX( ALL + - 3 ) * + + 66 + 96 + + SUM( + 46 ) * + - 21
----
-1068

skipif mysql # not compatible
query I rowsort label-5858
SELECT ALL MAX ( ALL + - 3 ) * + + 66 + 96 + + SUM ( + 46 ) * + - 21
----
-1068

query I rowsort
SELECT ALL - 88 * + 68
----
-5984

onlyif mysql # aggregate syntax: 
query I rowsort label-5860
SELECT - COUNT( * ) + + 84 - + 36 * + 64 * + + 40 * + MIN( 47 )
----
-4331437

skipif mysql # not compatible
query I rowsort label-5860
SELECT - COUNT ( * ) + + 84 - + 36 * + 64 * + + 40 * + MIN ( 47 )
----
-4331437

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5861
SELECT DISTINCT 76 DIV - 12 * COALESCE ( + ( COUNT( * ) ), - ( - 7 ) ) AS col2
----
-6

skipif mysql # not compatible
query I rowsort label-5861
SELECT DISTINCT 76 / - 12 * COALESCE ( + ( COUNT ( * ) ), - ( - 7 ) ) AS col2
----
-6

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5862
SELECT - 87 DIV - SUM( + - 58 ) col0
----
-1

skipif mysql # not compatible
query I rowsort label-5862
SELECT - 87 / - SUM ( + - 58 ) col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5863
SELECT ALL - COUNT( ALL 66 ) + - 38 + COUNT( ALL + 39 )
----
-38

skipif mysql # not compatible
query I rowsort label-5863
SELECT ALL - COUNT ( ALL 66 ) + - 38 + COUNT ( ALL + 39 )
----
-38

onlyif mysql # aggregate syntax: 
query II rowsort label-5864
SELECT - 31 AS col2, MAX( 95 ) + 5 AS col2
----
-31
100

skipif mysql # not compatible
query II rowsort label-5864
SELECT - 31 AS col2, MAX ( 95 ) + 5 AS col2
----
-31
100

onlyif mysql # aggregate syntax: 
query I rowsort label-5865
SELECT + 84 + - COUNT( * ) * COUNT( * ) AS col0
----
83

skipif mysql # not compatible
query I rowsort label-5865
SELECT + 84 + - COUNT ( * ) * COUNT ( * ) AS col0
----
83

query I rowsort
SELECT + - NULLIF ( + 81, - 86 ) * - - 99 AS col1
----
-8019

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5867
SELECT CAST( NULL AS DECIMAL ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5867
SELECT CAST ( NULL AS REAL ) col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5868
SELECT - MIN( 55 ) + - + 6
----
-61

skipif mysql # not compatible
query I rowsort label-5868
SELECT - MIN ( 55 ) + - + 6
----
-61

query I rowsort
SELECT ALL + 47 - - 99 AS col0
----
146

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5871
SELECT ALL + CASE + - 50 WHEN 11 THEN NULL ELSE - - COUNT( * ) + + COUNT( * ) - + ( 11 ) END AS col0
----
-9

skipif mysql # not compatible
query I rowsort label-5871
SELECT ALL + CASE + - 50 WHEN 11 THEN NULL ELSE - - COUNT ( * ) + + COUNT ( * ) - + ( 11 ) END AS col0
----
-9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5872
SELECT DISTINCT - 19 - + CASE - 67 WHEN - CAST( NULL AS SIGNED ) + + 73 + - 9 + + 83 + - 36 THEN NULL WHEN - COUNT( * ) * 88 THEN NULL WHEN + MAX( 9 ) THEN - - 40 ELSE - - 62 * + - 19 - 23 END AS col1, 86 + - 43 AS col1
----
1182
43

skipif mysql # not compatible
query II rowsort label-5872
SELECT DISTINCT - 19 - + CASE - 67 WHEN - CAST ( NULL AS INTEGER ) + + 73 + - 9 + + 83 + - 36 THEN NULL WHEN - COUNT ( * ) * 88 THEN NULL WHEN + MAX ( 9 ) THEN - - 40 ELSE - - 62 * + - 19 - 23 END AS col1, 86 + - 43 AS col1
----
1182
43

query II rowsort
SELECT ALL - - 21 - - 5 - + 23 + - 39 AS col1, 53
----
-36
53

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

skipif mysql # not compatible
query I rowsort label-5874
SELECT + 96 + + + COUNT ( * ) AS col2
----
97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5875
SELECT - - 56 * + - ( + 46 ) + - COALESCE ( 30, + COUNT( * ) ) + - NULLIF ( - 22, + 60 + AVG ( - + 62 ) ) col0, COUNT( * ) + + SUM( + CAST( NULL AS SIGNED ) ) * + + 81 AS col2
----
-2584
NULL

skipif mysql # not compatible
query II rowsort label-5875
SELECT - - 56 * + - ( + 46 ) + - COALESCE ( 30, + COUNT ( * ) ) + - NULLIF ( - 22, + 60 + AVG ( - + 62 ) ) col0, COUNT ( * ) + + SUM ( + CAST ( NULL AS INTEGER ) ) * + + 81 AS col2
----
-2584
NULL

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query I rowsort label-5877
SELECT - 54 DIV - - CASE - 29 WHEN - + 78 + - 8 + + + 44 * - CASE CAST( + NULLIF ( + - 89, + + 90 + - 67 + + + 32 DIV - COUNT( * ) ) AS DECIMAL ) WHEN + COUNT( * ) * 68 THEN CASE + 39 WHEN COUNT( ALL - 2 ) * - COUNT( * ) + + 91 + - 3 THEN + 72 * 0 + - - 43 ELSE NULL END * - 80 + 36 WHEN + ( - 10 ) DIV + 89 THEN - 90 ELSE NULL END THEN - 78 * + COUNT( * ) WHEN + 35 - - 60 THEN NULL ELSE - + 66 + 19 * - - 45 DIV - 57 - 10 END * - 4 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-5877
SELECT - 54 / - - CASE - 29 WHEN - + 78 + - 8 + + + 44 * - CASE CAST ( + NULLIF ( + - 89, + + 90 + - 67 + + + 32 / - COUNT ( * ) ) AS REAL ) WHEN + COUNT ( * ) * 68 THEN CASE + 39 WHEN COUNT ( ALL - 2 ) * - COUNT ( * ) + + 91 + - 3 THEN + 72 * 0 + - - 43 ELSE NULL END * - 80 + 36 WHEN + ( - 10 ) / + 89 THEN - 90 ELSE NULL END THEN - 78 * + COUNT ( * ) WHEN + 35 - - 60 THEN NULL ELSE - + 66 + 19 * - - 45 / - 57 - 10 END * - 4 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5878
SELECT ALL - 54 * + - SUM( DISTINCT - ( + + 31 ) ) AS col2
----
-1674

skipif mysql # not compatible
query I rowsort label-5878
SELECT ALL - 54 * + - SUM ( DISTINCT - ( + + 31 ) ) AS col2
----
-1674

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5880
SELECT DISTINCT + CAST( + 10 AS SIGNED ), COALESCE ( + 83, - - 38, 60 + - 7 + 99 + + NULLIF ( + 91, + + 72 * 8 ) + - COUNT( * ) ) col0
----
10
83

skipif mysql # not compatible
query II rowsort label-5880
SELECT DISTINCT + CAST ( + 10 AS INTEGER ), COALESCE ( + 83, - - 38, 60 + - 7 + 99 + + NULLIF ( + 91, + + 72 * 8 ) + - COUNT ( * ) ) col0
----
10
83

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5881
SELECT ALL COUNT( * ) DIV - 31 col0, 84
----
0
84

skipif mysql # not compatible
query II rowsort label-5881
SELECT ALL COUNT ( * ) / - 31 col0, 84
----
0
84

onlyif mysql # aggregate syntax: 
query I rowsort label-5882
SELECT ALL + 9 / + - CASE - 80 WHEN - + MAX( DISTINCT + 86 ) * + 0 THEN - COUNT( * ) ELSE NULL END + - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-5882
SELECT ALL + 9 / + - CASE - 80 WHEN - + MAX ( DISTINCT + 86 ) * + 0 THEN - COUNT ( * ) ELSE NULL END + - COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5883
SELECT ( COUNT( * ) ) AS col2, NULLIF ( 71, 84 * + 99 + - 5 - - COUNT( * ) )
----
1
71

skipif mysql # not compatible
query II rowsort label-5883
SELECT ( COUNT ( * ) ) AS col2, NULLIF ( 71, 84 * + 99 + - 5 - - COUNT ( * ) )
----
1
71

query II rowsort
SELECT ( 6 ) AS col1, 18 * + 48 * - 42
----
6
-36288

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

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

query I rowsort
SELECT DISTINCT 71 * 87 AS col0
----
6177

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5887
SELECT ALL 29 + 49 + - CASE 39 WHEN - 83 * - COUNT( * ) * 29 * - 69 + + + 31 THEN NULL WHEN + + CAST( NULL AS SIGNED ) THEN 6 ELSE NULL END * - 90 - - AVG ( DISTINCT + - 61 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5887
SELECT ALL 29 + 49 + - CASE 39 WHEN - 83 * - COUNT ( * ) * 29 * - 69 + + + 31 THEN NULL WHEN + + CAST ( NULL AS INTEGER ) THEN 6 ELSE NULL END * - 90 - - AVG ( DISTINCT + - 61 ) AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5888
SELECT ALL COALESCE ( 85, COALESCE ( + - ( - 28 ), + MAX( 54 ) * - - 76 * + + 52, - + 49 + COUNT( * ) ), - - CAST( NULL AS SIGNED ) + + 68 ) + COUNT( * )
----
86

skipif mysql # not compatible
query I rowsort label-5888
SELECT ALL COALESCE ( 85, COALESCE ( + - ( - 28 ), + MAX ( 54 ) * - - 76 * + + 52, - + 49 + COUNT ( * ) ), - - CAST ( NULL AS INTEGER ) + + 68 ) + COUNT ( * )
----
86

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5889
SELECT 53 * CASE - - 19 WHEN + ( + - 6 ) + - - 18 + 1 THEN NULL WHEN ( + CASE WHEN NOT 75 <> NULL THEN + 42 + - 19 + - 49 * + - 2 * 57 + - 49 * CAST( NULL AS SIGNED ) END ) THEN 16 * + 17 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5889
SELECT 53 * CASE - - 19 WHEN + ( + - 6 ) + - - 18 + 1 THEN NULL WHEN ( + CASE WHEN NOT 75 <> NULL THEN + 42 + - 19 + - 49 * + - 2 * 57 + - 49 * CAST ( NULL AS INTEGER ) END ) THEN 16 * + 17 END AS col1
----
NULL

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

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

query II rowsort
SELECT ALL 70 * 2, 68 * 42 * - 10 AS col1
----
140
-28560

onlyif mysql # aggregate syntax: 
query I rowsort label-5892
SELECT 43 + + 99 * + - 56 + - 43 + - COUNT( * )
----
-5545

skipif mysql # not compatible
query I rowsort label-5892
SELECT 43 + + 99 * + - 56 + - 43 + - COUNT ( * )
----
-5545

onlyif mysql # aggregate syntax: 
query I rowsort label-5893
SELECT CASE - - COUNT( * ) WHEN - 31 * - 92 * + + 69 * - 33 * + 14 THEN 78 + - COALESCE ( + 78, + 49, + 86 + - 58 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-5893
SELECT CASE - - COUNT ( * ) WHEN - 31 * - 92 * + + 69 * - 33 * + 14 THEN 78 + - COALESCE ( + 78, + 49, + 86 + - 58 ) END
----
NULL

query I rowsort
SELECT 76 + + 13 * + 73
----
1025

onlyif mysql # aggregate syntax: 
query I rowsort label-5895
SELECT ALL COUNT( * ) + + 5
----
6

skipif mysql # not compatible
query I rowsort label-5895
SELECT ALL COUNT ( * ) + + 5
----
6

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5896
SELECT + ( + + CASE 80 WHEN COUNT( * ) THEN - + COALESCE ( COUNT( DISTINCT + + 81 ), - - 29 * - 23 + - - 40 ) WHEN CAST( NULL AS DECIMAL ) * 78 + ( - - 12 ) THEN - 8 END ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5896
SELECT + ( + + CASE 80 WHEN COUNT ( * ) THEN - + COALESCE ( COUNT ( DISTINCT + + 81 ), - - 29 * - 23 + - - 40 ) WHEN CAST ( NULL AS REAL ) * 78 + ( - - 12 ) THEN - 8 END ) AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5897
SELECT + 78 * + + CAST( + 2 AS SIGNED )
----
156

skipif mysql # not compatible
query I rowsort label-5897
SELECT + 78 * + + CAST ( + 2 AS INTEGER )
----
156

query I rowsort
SELECT DISTINCT 87 - - - 17 - - - 97 AS col1
----
-27

query I rowsort
SELECT DISTINCT - 26 * - 74 AS col2
----
1924

query I rowsort
SELECT ALL + 10 * + 61
----
610

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5901
SELECT - COUNT( * ) * - CAST( + CASE COUNT( * ) WHEN 16 THEN MAX( + - 43 ) WHEN 98 THEN + AVG ( ALL + 10 ) * + 39 * + 62 * - 25 + - 83 + + 44 WHEN - - 33 + - 8 - COUNT( * ) + + + 53 / + 61 * + CAST( NULL AS SIGNED ) * - COALESCE ( + CAST( NULL AS SIGNED ), + AVG ( ALL 34 ) ) * + 70 + - 42 * + + 69 * - COUNT( * ) * - 32 * + 84 + CASE - - 87 WHEN - - 92 THEN - 5 WHEN - + COUNT( * ) - - 70 THEN + 63 WHEN 62 THEN NULL ELSE NULL END THEN 7 ELSE - + 64 END AS SIGNED ) + - - 47 + + ( CASE + 85 WHEN + 84 + - 45 THEN NULL ELSE - COUNT( * ) END ) * - 78 AS col2
----
61

skipif mysql # not compatible
query I rowsort label-5901
SELECT - COUNT ( * ) * - CAST ( + CASE COUNT ( * ) WHEN 16 THEN MAX ( + - 43 ) WHEN 98 THEN + AVG ( ALL + 10 ) * + 39 * + 62 * - 25 + - 83 + + 44 WHEN - - 33 + - 8 - COUNT ( * ) + + + 53 / + 61 * + CAST ( NULL AS INTEGER ) * - COALESCE ( + CAST ( NULL AS INTEGER ), + AVG ( ALL 34 ) ) * + 70 + - 42 * + + 69 * - COUNT ( * ) * - 32 * + 84 + CASE - - 87 WHEN - - 92 THEN - 5 WHEN - + COUNT ( * ) - - 70 THEN + 63 WHEN 62 THEN NULL ELSE NULL END THEN 7 ELSE - + 64 END AS INTEGER ) + - - 47 + + ( CASE + 85 WHEN + 84 + - 45 THEN NULL ELSE - COUNT ( * ) END ) * - 78 AS col2
----
61

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5902
SELECT ALL 14 DIV + - 31 * MAX( DISTINCT + 55 )
----
0

skipif mysql # not compatible
query I rowsort label-5902
SELECT ALL 14 / + - 31 * MAX ( DISTINCT + 55 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5903
SELECT ALL - + MIN( - + 76 ) - 65 AS col1
----
11

skipif mysql # not compatible
query I rowsort label-5903
SELECT ALL - + MIN ( - + 76 ) - 65 AS col1
----
11

query I rowsort
SELECT DISTINCT + 66 * + CASE + 0 WHEN - + 18 THEN - - 18 * - - 9 END / 41 + ( + 7 ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5905
SELECT + COUNT( * ) * - 4 * + + COUNT( + + 84 ) + + - COUNT( * ) * - 38 * COUNT( * ) + + COUNT( * ) * COUNT( * )
----
35

skipif mysql # not compatible
query I rowsort label-5905
SELECT + COUNT ( * ) * - 4 * + + COUNT ( + + 84 ) + + - COUNT ( * ) * - 38 * COUNT ( * ) + + COUNT ( * ) * COUNT ( * )
----
35

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5906
SELECT COUNT( * ) - 41 DIV + 27 + 20
----
20

skipif mysql # not compatible
query I rowsort label-5906
SELECT COUNT ( * ) - 41 / + 27 + 20
----
20

query I rowsort
SELECT 1 * 74 + 38 AS col1
----
112

query I rowsort
SELECT NULLIF ( + 3, 1 ) - 13 + - 94
----
-104

query I rowsort
SELECT ALL - 14 * 57 AS col2
----
-798

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5910
SELECT ALL - CAST( 53 AS SIGNED ) AS col2
----
-53

skipif mysql # not compatible
query I rowsort label-5910
SELECT ALL - CAST ( 53 AS INTEGER ) AS col2
----
-53

query I rowsort
SELECT ALL + 95 + - 75 AS col2
----
20

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5913
SELECT 96 * - 43 + + CASE + - 89 WHEN NULLIF ( ( - + CAST( + NULLIF ( COUNT( * ), - MIN( 58 ) + + - 53 ) AS SIGNED ) ), - NULLIF ( - 37, - - 48 + - 63 + 89 * + CASE - 62 WHEN - 65 THEN 19 ELSE + 67 + - 26 / - - 46 + 62 END - - + 51 / ( COUNT( * ) ) ) * + - 65 * + + 89 + - 50 ) THEN COUNT( * ) * + COUNT( * ) + - + COUNT( * ) * - 73 WHEN + - 58 * + 57 + + - 39 + + 86 + - 92 THEN + - COUNT( - + COALESCE ( 36, + 86, 65 ) ) END + ( - COALESCE ( 60, + 73 + + 51, + 45 / NULLIF ( + 28 * + COALESCE ( + CAST( NULL AS DECIMAL ) * - CAST( NULL AS SIGNED ), - 26 + - 93 * + 55, + 38 + + 93 ), + COUNT( * ) * - 43 ) ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-5913
SELECT 96 * - 43 + + CASE + - 89 WHEN NULLIF ( ( - + CAST ( + NULLIF ( COUNT ( * ), - MIN ( 58 ) + + - 53 ) AS INTEGER ) ), - NULLIF ( - 37, - - 48 + - 63 + 89 * + CASE - 62 WHEN - 65 THEN 19 ELSE + 67 + - 26 / - - 46 + 62 END - - + 51 / ( COUNT ( * ) ) ) * + - 65 * + + 89 + - 50 ) THEN COUNT ( * ) * + COUNT ( * ) + - + COUNT ( * ) * - 73 WHEN + - 58 * + 57 + + - 39 + + 86 + - 92 THEN + - COUNT ( - + COALESCE ( 36, + 86, 65 ) ) END + ( - COALESCE ( 60, + 73 + + 51, + 45 / NULLIF ( + 28 * + COALESCE ( + CAST ( NULL AS REAL ) * - CAST ( NULL AS INTEGER ), - 26 + - 93 * + 55, + 38 + + 93 ), + COUNT ( * ) * - 43 ) ) )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5914
SELECT ALL - 23 DIV + 3 AS col0
----
-7

skipif mysql # not compatible
query I rowsort label-5914
SELECT ALL - 23 / + 3 AS col0
----
-7

query I rowsort
SELECT 18 + - 28
----
-10

query I rowsort
SELECT DISTINCT 71 * - - 63 col1
----
4473

onlyif mysql # aggregate syntax: 
query I rowsort label-5917
SELECT ALL 30 + - COUNT( * ) col1
----
29

skipif mysql # not compatible
query I rowsort label-5917
SELECT ALL 30 + - COUNT ( * ) col1
----
29

query I rowsort
SELECT 96 * 27 + 44 - - 92
----
2728

query I rowsort
SELECT ALL + 6 * + + 65 AS col0
----
390

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5921
SELECT MAX( + - 8 ) * + - 80 * 14 AS col2
----
8960

skipif mysql # not compatible
query I rowsort label-5921
SELECT MAX ( + - 8 ) * + - 80 * 14 AS col2
----
8960

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5922
SELECT DISTINCT - CASE - 83 WHEN + 21 * 80 DIV COUNT( * ) THEN NULL WHEN - + 30 + - SUM( - 54 ) * - 38 DIV + 97 + - + 56 + + 16 + 52 + + 78 THEN + 22 WHEN 25 THEN NULL ELSE 20 * COALESCE ( + 59, 40 DIV - 19 * - 16 + 74 + - COALESCE ( - - ( 59 ), + 39, + 48 ) ) END col2
----
-1180

skipif mysql # not compatible
query I rowsort label-5922
SELECT DISTINCT - CASE - 83 WHEN + 21 * 80 / COUNT ( * ) THEN NULL WHEN - + 30 + - SUM ( - 54 ) * - 38 / + 97 + - + 56 + + 16 + 52 + + 78 THEN + 22 WHEN 25 THEN NULL ELSE 20 * COALESCE ( + 59, 40 / - 19 * - 16 + 74 + - COALESCE ( - - ( 59 ), + 39, + 48 ) ) END col2
----
-1180

query I rowsort
SELECT ALL 87 / + - CASE 13 WHEN 79 THEN + 67 END * - + 63
----
NULL

query I rowsort
SELECT 49 * - 81 col1
----
-3969

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-5925
SELECT 88 + + 98 + + 9 AS col0, + COALESCE ( - 5, - ( CASE 60 WHEN + CAST( NULL AS SIGNED ) * - 10 * + AVG ( + + 81 ) THEN - - ( - NULLIF ( 90, 62 DIV - 40 + + 56 ) ) DIV + + 89 + + CAST( NULL AS SIGNED ) ELSE NULL END ) ) DIV - + 59 * SUM( + 35 ) AS col2
----
195
0

skipif mysql # not compatible
query II rowsort label-5925
SELECT 88 + + 98 + + 9 AS col0, + COALESCE ( - 5, - ( CASE 60 WHEN + CAST ( NULL AS INTEGER ) * - 10 * + AVG ( + + 81 ) THEN - - ( - NULLIF ( 90, 62 / - 40 + + 56 ) ) / + + 89 + + CAST ( NULL AS INTEGER ) ELSE NULL END ) ) / - + 59 * SUM ( + 35 ) AS col2
----
195
0

query I rowsort
SELECT + 70 * 11 + 78 AS col2
----
848

query I rowsort
SELECT ALL 16 * + 37
----
592

query I rowsort
SELECT - 92 col0
----
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-5929
SELECT - COUNT( 53 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-5929
SELECT - COUNT ( 53 ) AS col0
----
-1

query I rowsort
SELECT ALL 80 * - 3 AS col2
----
-240

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

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

query I rowsort
SELECT 74 + + ( - 40 )
----
34

query I rowsort
SELECT DISTINCT 15 * - ( - 63 ) AS col1
----
945

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5934
SELECT MIN( DISTINCT 42 ) DIV 5 AS col0
----
8

skipif mysql # not compatible
query I rowsort label-5934
SELECT MIN ( DISTINCT 42 ) / 5 AS col0
----
8

query I rowsort
SELECT 28 * + 13 AS col1
----
364

query I rowsort
SELECT 9 + 31
----
40

query I rowsort
SELECT DISTINCT 22 col2
----
22

query I rowsort
SELECT 28 * 60
----
1680

query I rowsort
SELECT ALL 8 + 54 * - 39
----
-2098

query I rowsort
SELECT DISTINCT CASE 13 WHEN - 12 THEN 85 WHEN 42 + - ( - 37 ) THEN AVG ( - 53 ) END + + 14
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5941
SELECT ( - COUNT( ALL 78 ) ) DIV + 21 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-5941
SELECT ( - COUNT ( ALL 78 ) ) / + 21 AS col2
----
0

query I rowsort
SELECT 44 + - 66
----
-22

query I rowsort
SELECT ALL - COALESCE ( 88, - 22 ) * 74 AS col0
----
-6512

query I rowsort
SELECT + 66 * ( 56 * 59 ) AS col1
----
218064

query I rowsort
SELECT - 72 + + 74 * - 80
----
-5992

query I rowsort
SELECT + 99 * 16 + + 85
----
1669

onlyif mysql # aggregate syntax: 
query I rowsort label-5947
SELECT ALL + 55 * + 60 + + COUNT( * ) AS col2
----
3301

skipif mysql # not compatible
query I rowsort label-5947
SELECT ALL + 55 * + 60 + + COUNT ( * ) AS col2
----
3301

query I rowsort
SELECT NULLIF ( 90, + ( 52 ) ) AS col0
----
90

query I rowsort
SELECT - 36 * - 61
----
2196

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5950
SELECT NULLIF ( + CASE + COUNT( * ) WHEN + AVG ( 4 ) * 23 THEN NULL WHEN 7 * 13 THEN SUM( ALL + 55 ) * COUNT( * ) + CAST( NULL AS SIGNED ) END, + 8 * - 5 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5950
SELECT NULLIF ( + CASE + COUNT ( * ) WHEN + AVG ( 4 ) * 23 THEN NULL WHEN 7 * 13 THEN SUM ( ALL + 55 ) * COUNT ( * ) + CAST ( NULL AS INTEGER ) END, + 8 * - 5 ) AS col1
----
NULL

query I rowsort
SELECT ALL 61 * + 61 + 78 AS col1
----
3799

query I rowsort
SELECT ALL + COALESCE ( + 45, 97 * 89 + + 11 ) col1
----
45

onlyif mysql # DIV for integer division: 
query I rowsort label-5953
SELECT DISTINCT 23 * ( + 83 * 36 ) - ( ( 86 ) - - COALESCE ( + 86, 3 ) DIV + 59 ) AS col0
----
68637

skipif mysql # not compatible
query I rowsort label-5953
SELECT DISTINCT 23 * ( + 83 * 36 ) - ( ( 86 ) - - COALESCE ( + 86, 3 ) / + 59 ) AS col0
----
68637

query I rowsort
SELECT ALL + 75 * - ( 28 * 91 )
----
-191100

query I rowsort
SELECT + ( ( 73 ) ) * 50 AS col0
----
3650

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5957
SELECT ALL + NULLIF ( 79, - COUNT( * ) + - CASE ( - CAST( NULL AS SIGNED ) ) WHEN - 66 * NULLIF ( - CAST( COUNT( * ) AS SIGNED ) * 68, 71 ) THEN 90 ELSE + COUNT( * ) END ) AS col0
----
79

skipif mysql # not compatible
query I rowsort label-5957
SELECT ALL + NULLIF ( 79, - COUNT ( * ) + - CASE ( - CAST ( NULL AS INTEGER ) ) WHEN - 66 * NULLIF ( - CAST ( COUNT ( * ) AS INTEGER ) * 68, 71 ) THEN 90 ELSE + COUNT ( * ) END ) AS col0
----
79

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5958
SELECT - - 38 * + NULLIF ( - COALESCE ( - ( + COUNT( * ) ), - 66 ) DIV 99, + 22 DIV CASE + COUNT( * ) WHEN + 46 THEN - 48 WHEN + COUNT( * ) THEN 27 ELSE 4 * 79 + - 5 END )
----
NULL

skipif mysql # not compatible
query I rowsort label-5958
SELECT - - 38 * + NULLIF ( - COALESCE ( - ( + COUNT ( * ) ), - 66 ) / 99, + 22 / CASE + COUNT ( * ) WHEN + 46 THEN - 48 WHEN + COUNT ( * ) THEN 27 ELSE 4 * 79 + - 5 END )
----
NULL

query I rowsort
SELECT DISTINCT + 32 * - 61
----
-1952

query I rowsort
SELECT - 18 * 9 AS col2
----
-162

query I rowsort
SELECT DISTINCT 3 AS col1
----
3

query I rowsort
SELECT - - NULLIF ( + 44, 96 ) + 35 AS col2
----
79

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

skipif mysql # not compatible
query I rowsort label-5963
SELECT - - NULLIF ( + COUNT ( * ), 55 ) AS col2
----
1

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5965
SELECT + COUNT( * ) + + 57 DIV - 65
----
1

skipif mysql # not compatible
query I rowsort label-5965
SELECT + COUNT ( * ) + + 57 / - 65
----
1

query I rowsort
SELECT ALL 32 + 92
----
124

query I rowsort
SELECT + - 36 * + 7
----
-252

query I rowsort
SELECT + 20 + 3 AS col0
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-5969
SELECT ALL - CASE 0 WHEN + 68 * - COUNT( * ) + - 57 THEN + COUNT( * ) * + 3 END * - COUNT( * ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5969
SELECT ALL - CASE 0 WHEN + 68 * - COUNT ( * ) + - 57 THEN + COUNT ( * ) * + 3 END * - COUNT ( * ) col0
----
NULL

query I rowsort
SELECT DISTINCT 77 + + 57 AS col1
----
134

query I rowsort
SELECT - + 17 + 58 AS col1
----
41

query I rowsort
SELECT - - 41 AS col1
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-5973
SELECT + CASE + COUNT( * ) WHEN 55 THEN ( + 22 ) + - 54 / COUNT( * ) WHEN - 57 * + 52 THEN SUM( 48 ) END * + 10
----
NULL

skipif mysql # not compatible
query I rowsort label-5973
SELECT + CASE + COUNT ( * ) WHEN 55 THEN ( + 22 ) + - 54 / COUNT ( * ) WHEN - 57 * + 52 THEN SUM ( 48 ) END * + 10
----
NULL

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

skipif mysql # not compatible
query I rowsort label-5974
SELECT + 31 + + COUNT ( * ) / - 90 AS col1
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-5975
SELECT ALL MAX( 59 ) + 92 col2
----
151

skipif mysql # not compatible
query I rowsort label-5975
SELECT ALL MAX ( 59 ) + 92 col2
----
151

onlyif mysql # DIV for integer division: 
query I rowsort label-5976
SELECT + 60 - + COALESCE ( 41, 25 DIV 69 ) * + 15 AS col0
----
-555

skipif mysql # not compatible
query I rowsort label-5976
SELECT + 60 - + COALESCE ( 41, 25 / 69 ) * + 15 AS col0
----
-555

query I rowsort
SELECT DISTINCT 66 + 31 * + 27
----
903

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

skipif mysql # not compatible
query I rowsort label-5978
SELECT + COUNT ( * ) / - SUM ( - ( + 62 ) )
----
0

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5980
SELECT ALL - 34 DIV + ( 47 ) - - 9 AS col1
----
9

skipif mysql # not compatible
query I rowsort label-5980
SELECT ALL - 34 / + ( 47 ) - - 9 AS col1
----
9

query I rowsort
SELECT ALL - 42 * + + 24
----
-1008

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5982
SELECT CAST( - + 94 AS SIGNED )
----
-94

skipif mysql # not compatible
query I rowsort label-5982
SELECT CAST ( - + 94 AS INTEGER )
----
-94

onlyif mysql # DIV for integer division: 
query I rowsort label-5983
SELECT ALL 94 DIV + - 16 - 16 * - 90 AS col2
----
1435

skipif mysql # not compatible
query I rowsort label-5983
SELECT ALL 94 / + - 16 - 16 * - 90 AS col2
----
1435

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5985
SELECT DISTINCT 12 * - COUNT( * ) * 46
----
-552

skipif mysql # not compatible
query I rowsort label-5985
SELECT DISTINCT 12 * - COUNT ( * ) * 46
----
-552

onlyif mysql # aggregate syntax: 
query I rowsort label-5986
SELECT + 13 * + 78 - + COUNT( * )
----
1013

skipif mysql # not compatible
query I rowsort label-5986
SELECT + 13 * + 78 - + COUNT ( * )
----
1013

onlyif mysql # aggregate syntax: 
query I rowsort label-5987
SELECT ALL 47 * + MIN( + 38 ) AS col0
----
1786

skipif mysql # not compatible
query I rowsort label-5987
SELECT ALL 47 * + MIN ( + 38 ) AS col0
----
1786

query I rowsort
SELECT + 53 + + - 65 AS col1
----
-12

onlyif mysql # DIV for integer division: 
query I rowsort label-5989
SELECT + 70 DIV - 36 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-5989
SELECT + 70 / - 36 AS col2
----
-1

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5991
SELECT + NULLIF ( - 16, + 72 * + COUNT( ( - CAST( + ( 2 ) AS SIGNED ) ) ) - 93 ) + + 40
----
24

skipif mysql # not compatible
query I rowsort label-5991
SELECT + NULLIF ( - 16, + 72 * + COUNT ( ( - CAST ( + ( 2 ) AS INTEGER ) ) ) - 93 ) + + 40
----
24

query I rowsort
SELECT ALL 52 * + 7 col1
----
364

onlyif mysql # aggregate syntax: 
query I rowsort label-5993
SELECT 71 * - 97 * - ( CASE + 21 WHEN + 90 THEN - 94 WHEN - 5 + COUNT( * ) THEN SUM( + 13 ) + 64 END ) + CASE + 92 WHEN + 75 THEN - 27 + 64 WHEN NULLIF ( - 17, 95 - - 82 ) THEN NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5993
SELECT 71 * - 97 * - ( CASE + 21 WHEN + 90 THEN - 94 WHEN - 5 + COUNT ( * ) THEN SUM ( + 13 ) + 64 END ) + CASE + 92 WHEN + 75 THEN - 27 + 64 WHEN NULLIF ( - 17, 95 - - 82 ) THEN NULL END AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5994
SELECT - - CAST( + + NULLIF ( - CASE 33 WHEN COUNT( * ) * - SUM( 41 * + 35 ) THEN NULL WHEN + CAST( - 94 AS SIGNED ) THEN CAST( + 7 AS SIGNED ) END, - COUNT( * ) ) AS SIGNED ) * - 63
----
NULL

skipif mysql # not compatible
query I rowsort label-5994
SELECT - - CAST ( + + NULLIF ( - CASE 33 WHEN COUNT ( * ) * - SUM ( 41 * + 35 ) THEN NULL WHEN + CAST ( - 94 AS INTEGER ) THEN CAST ( + 7 AS INTEGER ) END, - COUNT ( * ) ) AS INTEGER ) * - 63
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5995
SELECT - - 34 + - 49 DIV + COUNT( ALL ( + 21 ) + 63 * 50 ) AS col2
----
-15

skipif mysql # not compatible
query I rowsort label-5995
SELECT - - 34 + - 49 / + COUNT ( ALL ( + 21 ) + 63 * 50 ) AS col2
----
-15

query I rowsort
SELECT ALL + + NULLIF ( - 17, + 22 * + 13 ) AS col2
----
-17

query I rowsort
SELECT + - 30 AS col2
----
-30

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5999
SELECT - 64 * CAST( - 72 AS SIGNED ) DIV 10 AS col1
----
460

skipif mysql # not compatible
query I rowsort label-5999
SELECT - 64 * CAST ( - 72 AS INTEGER ) / 10 AS col1
----
460

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6000
SELECT DISTINCT + 90 * - 56 - + CAST( 18 AS SIGNED ) + 66 col2
----
-4992

skipif mysql # not compatible
query I rowsort label-6000
SELECT DISTINCT + 90 * - 56 - + CAST ( 18 AS INTEGER ) + 66 col2
----
-4992

onlyif mysql # DIV for integer division: 
query I rowsort label-6001
SELECT - 51 + - - 15 DIV + 68 AS col1
----
-51

skipif mysql # not compatible
query I rowsort label-6001
SELECT - 51 + - - 15 / + 68 AS col1
----
-51

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

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

query I rowsort
SELECT DISTINCT 7 * - ( 45 ) + 70 AS col1
----
-245

query I rowsort
SELECT DISTINCT + 32 * - + ( 53 ) + + 64
----
-1632

query I rowsort
SELECT - - 32 * 65 + 41 AS col2
----
2121

onlyif mysql # aggregate syntax: 
query I rowsort label-6006
SELECT ALL + - 72 * - NULLIF ( ( 31 ), - 82 ) + + ( - COUNT( * ) ) AS col1
----
2231

skipif mysql # not compatible
query I rowsort label-6006
SELECT ALL + - 72 * - NULLIF ( ( 31 ), - 82 ) + + ( - COUNT ( * ) ) AS col1
----
2231

onlyif mysql # aggregate syntax: 
query I rowsort label-6007
SELECT - SUM( - 2 ) AS col0
----
2

skipif mysql # not compatible
query I rowsort label-6007
SELECT - SUM ( - 2 ) AS col0
----
2

query I rowsort
SELECT DISTINCT - 93 + - - ( - 8 ) * 66
----
-621

query I rowsort
SELECT - 80 + - 73
----
-153

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6010
SELECT ( + 56 ) DIV MIN( DISTINCT + 56 )
----
1

skipif mysql # not compatible
query I rowsort label-6010
SELECT ( + 56 ) / MIN ( DISTINCT + 56 )
----
1

query I rowsort
SELECT 68 * + 23
----
1564

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

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

query I rowsort
SELECT ALL - 44 + - 97 * 45
----
-4409

onlyif mysql # aggregate syntax: 
query I rowsort label-6014
SELECT COUNT( * ) + + NULLIF ( - + 99, 89 + 90 ) * COUNT( * )
----
-98

skipif mysql # not compatible
query I rowsort label-6014
SELECT COUNT ( * ) + + NULLIF ( - + 99, 89 + 90 ) * COUNT ( * )
----
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-6015
SELECT 43 + - - COUNT( * )
----
44

skipif mysql # not compatible
query I rowsort label-6015
SELECT 43 + - - COUNT ( * )
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-6016
SELECT COALESCE ( + 18, + - 60 * - 32 ) * + COUNT( * ) AS col2
----
18

skipif mysql # not compatible
query I rowsort label-6016
SELECT COALESCE ( + 18, + - 60 * - 32 ) * + COUNT ( * ) AS col2
----
18

query II rowsort
SELECT ALL 92 AS col0, + 91 AS col1
----
92
91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6018
SELECT ALL - CAST( NULL AS SIGNED ) - - 19 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6018
SELECT ALL - CAST ( NULL AS INTEGER ) - - 19 AS col0
----
NULL

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

skipif mysql # not compatible
query I rowsort label-6019
SELECT DISTINCT COUNT ( * ) * + 77 / - - COUNT ( * )
----
77

query I rowsort
SELECT 72 * - - 73
----
5256

query I rowsort
SELECT ALL 71 * - 41
----
-2911

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6022
SELECT 78 + + COALESCE ( 25, - CAST( NULL AS SIGNED ) ) col0
----
103

skipif mysql # not compatible
query I rowsort label-6022
SELECT 78 + + COALESCE ( 25, - CAST ( NULL AS INTEGER ) ) col0
----
103

onlyif mysql # aggregate syntax: 
query II rowsort label-6023
SELECT DISTINCT - 20, COALESCE ( 65, + COUNT( * ) ) * 67 col0
----
-20
4355

skipif mysql # not compatible
query II rowsort label-6023
SELECT DISTINCT - 20, COALESCE ( 65, + COUNT ( * ) ) * 67 col0
----
-20
4355

onlyif mysql # aggregate syntax: 
query II rowsort label-6024
SELECT 53 AS col1, 12 + COUNT( - 67 ) col1
----
53
13

skipif mysql # not compatible
query II rowsort label-6024
SELECT 53 AS col1, 12 + COUNT ( - 67 ) col1
----
53
13

query I rowsort
SELECT 62 * 37 AS col2
----
2294

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6026
SELECT MIN( + + 4 ) * 84 + CAST( - 19 AS SIGNED ) + 92
----
409

skipif mysql # not compatible
query I rowsort label-6026
SELECT MIN ( + + 4 ) * 84 + CAST ( - 19 AS INTEGER ) + 92
----
409

query II rowsort
SELECT DISTINCT - 36 AS col1, 56 - - - 27 + + 41
----
-36
70

query II rowsort
SELECT 69 AS col1, 60
----
69
60

query I rowsort
SELECT ALL 93 * 64 col2
----
5952

query I rowsort
SELECT 87 * + 54
----
4698

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-6031
SELECT DISTINCT - 26 col1, + 1 * + + 42 * + NULLIF ( 38, 37 ) + CAST( COUNT( * ) + + 27 DIV + 36 AS SIGNED )
----
-26
1597

skipif mysql # not compatible
query II rowsort label-6031
SELECT DISTINCT - 26 col1, + 1 * + + 42 * + NULLIF ( 38, 37 ) + CAST ( COUNT ( * ) + + 27 / + 36 AS INTEGER )
----
-26
1597

query II rowsort
SELECT + 78 AS col2, - 41
----
78
-41

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6033
SELECT + - 29 / 97 + + 47 + 43 - - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6033
SELECT + - 29 / 97 + + 47 + 43 - - CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6034
SELECT 12 DIV + 30 + - - 41
----
41

skipif mysql # not compatible
query I rowsort label-6034
SELECT 12 / + 30 + - - 41
----
41

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6035
SELECT ALL 69 + 10 * - 43 * + CAST( - ( 55 ) AS SIGNED )
----
23719

skipif mysql # not compatible
query I rowsort label-6035
SELECT ALL 69 + 10 * - 43 * + CAST ( - ( 55 ) AS INTEGER )
----
23719

onlyif mysql # aggregate syntax: 
query I rowsort label-6036
SELECT - ( - - ( 15 ) ) * CASE 77 WHEN 24 + COUNT( 75 ) * 74 THEN 53 / - 66 WHEN - 35 THEN NULL WHEN 28 THEN NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6036
SELECT - ( - - ( 15 ) ) * CASE 77 WHEN 24 + COUNT ( 75 ) * 74 THEN 53 / - 66 WHEN - 35 THEN NULL WHEN 28 THEN NULL END AS col0
----
NULL

query I rowsort
SELECT 42 * ( 32 ) AS col1
----
1344

onlyif mysql # aggregate syntax: 
query I rowsort label-6038
SELECT 45 * - COUNT( * )
----
-45

skipif mysql # not compatible
query I rowsort label-6038
SELECT 45 * - COUNT ( * )
----
-45

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

skipif mysql # not compatible
query I rowsort label-6039
SELECT COUNT ( * ) / 16
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6040
SELECT - 38 * NULLIF ( + 28, - COALESCE ( COUNT( * ), 38 ) ) - - CASE - AVG ( ALL + CAST( 97 AS SIGNED ) ) + 45 WHEN + ( 88 ) * 15 + NULLIF ( - CAST( NULL AS SIGNED ), - 24 + + ( - 9 + COUNT( * ) / 3 ) ) THEN - 27 + 94 WHEN - 89 + + 0 THEN NULL WHEN 97 + ( CAST( COUNT( DISTINCT + 53 ) AS DECIMAL ) ) * 10 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-6040
SELECT - 38 * NULLIF ( + 28, - COALESCE ( COUNT ( * ), 38 ) ) - - CASE - AVG ( ALL + CAST ( 97 AS INTEGER ) ) + 45 WHEN + ( 88 ) * 15 + NULLIF ( - CAST ( NULL AS INTEGER ), - 24 + + ( - 9 + COUNT ( * ) / 3 ) ) THEN - 27 + 94 WHEN - 89 + + 0 THEN NULL WHEN 97 + ( CAST ( COUNT ( DISTINCT + 53 ) AS REAL ) ) * 10 THEN NULL END
----
NULL

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

skipif mysql # not compatible
query I rowsort label-6041
SELECT ALL - COUNT ( * ) + - 43 AS col0
----
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-6042
SELECT DISTINCT COUNT( + 45 ) + + 85 * 90 col1
----
7651

skipif mysql # not compatible
query I rowsort label-6042
SELECT DISTINCT COUNT ( + 45 ) + + 85 * 90 col1
----
7651

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6043
SELECT + 77 AS col0, CAST( NULL AS SIGNED ) + - 77 * 16
----
77
NULL

skipif mysql # not compatible
query II rowsort label-6043
SELECT + 77 AS col0, CAST ( NULL AS INTEGER ) + - 77 * 16
----
77
NULL

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

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

query I rowsort
SELECT DISTINCT - 73 col0
----
-73

query I rowsort
SELECT DISTINCT + - 21 + 49 AS col2
----
28

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6047
SELECT - - 91, - COUNT( * ) + + 53 - + COALESCE ( 32, COALESCE ( - 22, - 30 * - 74 ), + 2 DIV - SUM( ALL 9 * + 43 ) ) AS col0
----
91
20

skipif mysql # not compatible
query II rowsort label-6047
SELECT - - 91, - COUNT ( * ) + + 53 - + COALESCE ( 32, COALESCE ( - 22, - 30 * - 74 ), + 2 / - SUM ( ALL 9 * + 43 ) ) AS col0
----
91
20

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6048
SELECT ALL - COUNT( * ) AS col2, CAST( - COUNT( * ) AS SIGNED )
----
-1
-1

skipif mysql # not compatible
query II rowsort label-6048
SELECT ALL - COUNT ( * ) AS col2, CAST ( - COUNT ( * ) AS INTEGER )
----
-1
-1

query II rowsort
SELECT DISTINCT 6 AS col2, + 82
----
6
82

query I rowsort
SELECT 93 + + + 35 AS col1
----
128

onlyif mysql # aggregate syntax: 
query I rowsort label-6051
SELECT - MAX( DISTINCT + 73 ) * + 57 - 8 - - 31
----
-4138

skipif mysql # not compatible
query I rowsort label-6051
SELECT - MAX ( DISTINCT + 73 ) * + 57 - 8 - - 31
----
-4138

onlyif mysql # aggregate syntax: 
query I rowsort label-6052
SELECT - + CASE - COUNT( * ) WHEN - 76 THEN + 78 END
----
NULL

skipif mysql # not compatible
query I rowsort label-6052
SELECT - + CASE - COUNT ( * ) WHEN - 76 THEN + 78 END
----
NULL

query I rowsort
SELECT DISTINCT + - 30 + - + ( + + 38 ) col1
----
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-6054
SELECT ALL - - 67 - + 71 + - 2 * COUNT( * ) AS col1
----
-6

skipif mysql # not compatible
query I rowsort label-6054
SELECT ALL - - 67 - + 71 + - 2 * COUNT ( * ) AS col1
----
-6

query I rowsort
SELECT 70 * - + 84 col1
----
-5880

onlyif mysql # aggregate syntax: 
query I rowsort label-6056
SELECT DISTINCT 84 * + - ( - - 11 ) * NULLIF ( COUNT( * ), 98 ) AS col0
----
-924

skipif mysql # not compatible
query I rowsort label-6056
SELECT DISTINCT 84 * + - ( - - 11 ) * NULLIF ( COUNT ( * ), 98 ) AS col0
----
-924

query I rowsort
SELECT 47 + - + 76 AS col1
----
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-6058
SELECT DISTINCT - SUM( DISTINCT - 90 ) * + + NULLIF ( 81, + 14 ) * - ( 88 ) AS col2
----
-641520

skipif mysql # not compatible
query I rowsort label-6058
SELECT DISTINCT - SUM ( DISTINCT - 90 ) * + + NULLIF ( 81, + 14 ) * - ( 88 ) AS col2
----
-641520

query II rowsort
SELECT 33 + - 81, 85 * 67 + + 99 * 43 AS col1
----
-48
9952

onlyif mysql # DIV for integer division: 
query I rowsort label-6060
SELECT ALL + 16 DIV - 6 AS col1
----
-2

skipif mysql # not compatible
query I rowsort label-6060
SELECT ALL + 16 / - 6 AS col1
----
-2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6061
SELECT 62 DIV + 36 * + - COUNT( DISTINCT - 0 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-6061
SELECT 62 / + 36 * + - COUNT ( DISTINCT - 0 ) AS col0
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6062
SELECT MAX( - CAST( NULL AS SIGNED ) ) * 34 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6062
SELECT MAX ( - CAST ( NULL AS INTEGER ) ) * 34 AS col2
----
NULL

query I rowsort
SELECT 78 + - 12
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-6064
SELECT DISTINCT + 98 * + COUNT( * ) + 41
----
139

skipif mysql # not compatible
query I rowsort label-6064
SELECT DISTINCT + 98 * + COUNT ( * ) + 41
----
139

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

skipif mysql # not compatible
query I rowsort label-6065
SELECT DISTINCT - ( - - SUM ( DISTINCT 65 ) )
----
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-6066
SELECT ALL NULLIF ( + + COUNT( * ), + + 17 ) * + COUNT( ALL 29 ) * 11 + 18 AS col1
----
29

skipif mysql # not compatible
query I rowsort label-6066
SELECT ALL NULLIF ( + + COUNT ( * ), + + 17 ) * + COUNT ( ALL 29 ) * 11 + 18 AS col1
----
29

onlyif mysql # DIV for integer division: 
query I rowsort label-6067
SELECT + - 67 DIV - + 11 + + 90
----
96

skipif mysql # not compatible
query I rowsort label-6067
SELECT + - 67 / - + 11 + + 90
----
96

query I rowsort
SELECT - 91 * 8 - + 66 + + + 20 AS col0
----
-774

query II rowsort
SELECT + 37 + + + 8 AS col2, - 18 col2
----
45
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-6070
SELECT CASE - - 59 WHEN - + 8 + + 56 + - 33 THEN NULL ELSE 38 + + COUNT( * ) END * 54 AS col2
----
2106

skipif mysql # not compatible
query I rowsort label-6070
SELECT CASE - - 59 WHEN - + 8 + + 56 + - 33 THEN NULL ELSE 38 + + COUNT ( * ) END * 54 AS col2
----
2106

query I rowsort
SELECT ALL + - COALESCE ( 78, 23 + - + 27 * - 78 ) * + 66 + 82 AS col0
----
-5066

query I rowsort
SELECT 90 + + 27 AS col2
----
117

query I rowsort
SELECT 65 * + 92 * - - 38 + + 4 * 76 col0
----
227544

query I rowsort
SELECT - + 66 * + 53 * + 45 + + 3 * 59 + - 19
----
-157252

onlyif mysql # aggregate syntax: 
query I rowsort label-6075
SELECT ALL COALESCE ( 83, ( 22 ) + + CASE 30 WHEN COUNT( * ) THEN NULL WHEN 27 * 48 THEN SUM( DISTINCT + 67 ) + + 67 * + 4 ELSE NULL END ) + - 74
----
9

skipif mysql # not compatible
query I rowsort label-6075
SELECT ALL COALESCE ( 83, ( 22 ) + + CASE 30 WHEN COUNT ( * ) THEN NULL WHEN 27 * 48 THEN SUM ( DISTINCT + 67 ) + + 67 * + 4 ELSE NULL END ) + - 74
----
9

query II rowsort
SELECT ALL - ( - 26 ), 94 + + + 16 * + 7 AS col2
----
26
206

onlyif mysql # DIV for integer division: 
query I rowsort label-6077
SELECT 16 DIV 47 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-6077
SELECT 16 / 47 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6078
SELECT 59 + - COUNT( 71 ) - + + 33 + + 43
----
68

skipif mysql # not compatible
query I rowsort label-6078
SELECT 59 + - COUNT ( 71 ) - + + 33 + + 43
----
68

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6080
SELECT + - 73 * + ( + + 27 ) * 85 + + CASE - 62 WHEN + COUNT( * ) + - 1 THEN - 51 * 58 END * 25 + - 40 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6080
SELECT + - 73 * + ( + + 27 ) * 85 + + CASE - 62 WHEN + COUNT ( * ) + - 1 THEN - 51 * 58 END * 25 + - 40 AS col0
----
NULL

query I rowsort
SELECT ALL - 44 - - - 77 AS col0
----
-121

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6082
SELECT + + COUNT( * ) * - 49 * + 3 * + ( CAST( NULL AS SIGNED ) ) + CASE - AVG ( + ( + ( + 71 ) ) ) WHEN 85 * CAST( NULL AS DECIMAL ) THEN NULL WHEN + 48 + - 45 * - 55 THEN 42 + ( ( + 6 ) ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-6082
SELECT + + COUNT ( * ) * - 49 * + 3 * + ( CAST ( NULL AS INTEGER ) ) + CASE - AVG ( + ( + ( + 71 ) ) ) WHEN 85 * CAST ( NULL AS REAL ) THEN NULL WHEN + 48 + - 45 * - 55 THEN 42 + ( ( + 6 ) ) END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6083
SELECT - NULLIF ( - + 82, - 47 ) * + CAST( - 37 AS SIGNED ) * + COUNT( * ) AS col0
----
-3034

skipif mysql # not compatible
query I rowsort label-6083
SELECT - NULLIF ( - + 82, - 47 ) * + CAST ( - 37 AS INTEGER ) * + COUNT ( * ) AS col0
----
-3034

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6084
SELECT + 89 * - CASE + NULLIF ( - - 62, CAST( NULL AS SIGNED ) * 46 ) WHEN 19 * 41 THEN - ( - NULLIF ( - 18, 8 ) ) WHEN - 61 + + 37 / - 28 THEN - ( + 15 ) WHEN MAX( DISTINCT 18 ) * COUNT( * ) THEN NULL END + AVG ( 56 ) * 21 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6084
SELECT + 89 * - CASE + NULLIF ( - - 62, CAST ( NULL AS INTEGER ) * 46 ) WHEN 19 * 41 THEN - ( - NULLIF ( - 18, 8 ) ) WHEN - 61 + + 37 / - 28 THEN - ( + 15 ) WHEN MAX ( DISTINCT 18 ) * COUNT ( * ) THEN NULL END + AVG ( 56 ) * 21 AS col0
----
NULL

query I rowsort
SELECT + 98 + - + 80 AS col0
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-6086
SELECT ALL CASE + + 19 WHEN + + COUNT( ALL 73 ) THEN NULL WHEN - 35 THEN 40 END - - 14 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6086
SELECT ALL CASE + + 19 WHEN + + COUNT ( ALL 73 ) THEN NULL WHEN - 35 THEN 40 END - - 14 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6087
SELECT - COALESCE ( 2, + COUNT( * ), - 20 ) AS col1
----
-2

skipif mysql # not compatible
query I rowsort label-6087
SELECT - COALESCE ( 2, + COUNT ( * ), - 20 ) AS col1
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-6088
SELECT - 89 * - COUNT( * )
----
89

skipif mysql # not compatible
query I rowsort label-6088
SELECT - 89 * - COUNT ( * )
----
89

query I rowsort
SELECT ALL 34 col1
----
34

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

skipif mysql # not compatible
query I rowsort label-6090
SELECT + 1 + + - 54 + + COUNT ( * ) * - 73 AS col2
----
-126

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6091
SELECT - CAST( + 54 AS SIGNED ) + + COUNT( * ) * + 32 + 59 AS col0
----
37

skipif mysql # not compatible
query I rowsort label-6091
SELECT - CAST ( + 54 AS INTEGER ) + + COUNT ( * ) * + 32 + 59 AS col0
----
37

onlyif mysql # DIV for integer division: 
query I rowsort label-6092
SELECT + 53 * 42 DIV 27 AS col0
----
82

skipif mysql # not compatible
query I rowsort label-6092
SELECT + 53 * 42 / 27 AS col0
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-6093
SELECT - SUM( - - 76 ) * - 56 - 69 AS col0
----
4187

skipif mysql # not compatible
query I rowsort label-6093
SELECT - SUM ( - - 76 ) * - 56 - 69 AS col0
----
4187

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

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

query I rowsort
SELECT DISTINCT - 29 * - + 42 AS col2
----
1218

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6096
SELECT ALL + 11 * 45 * 16 * CAST( NULL AS DECIMAL ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6096
SELECT ALL + 11 * 45 * 16 * CAST ( NULL AS REAL ) AS col0
----
NULL

query I rowsort
SELECT ALL 29 * + 46 * + 80 AS col1
----
106720

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6098
SELECT ALL - 39 + - + COUNT( * ) * 29, - NULLIF ( - MAX( CAST( NULL AS SIGNED ) ), 92 ) col1
----
-68
NULL

skipif mysql # not compatible
query II rowsort label-6098
SELECT ALL - 39 + - + COUNT ( * ) * 29, - NULLIF ( - MAX ( CAST ( NULL AS INTEGER ) ), 92 ) col1
----
-68
NULL

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

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

query I rowsort
SELECT + CASE WHEN NULL IS NULL THEN NULL ELSE 96 END * - 94 + 19
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6102
SELECT - 93 + - + 58 * 71 DIV + 42 - - - ( 4 ) * + CAST( - ( CAST( - NULLIF ( 32, 19 ) AS SIGNED ) ) * + 48 AS SIGNED ) col1
----
-6335

skipif mysql # not compatible
query I rowsort label-6102
SELECT - 93 + - + 58 * 71 / + 42 - - - ( 4 ) * + CAST ( - ( CAST ( - NULLIF ( 32, 19 ) AS INTEGER ) ) * + 48 AS INTEGER ) col1
----
-6335

onlyif mysql # aggregate syntax: 
query I rowsort label-6103
SELECT DISTINCT + 94 + + COUNT( * ) + + 48 AS col2
----
143

skipif mysql # not compatible
query I rowsort label-6103
SELECT DISTINCT + 94 + + COUNT ( * ) + + 48 AS col2
----
143

onlyif mysql # aggregate syntax: 
query I rowsort label-6104
SELECT ALL - COUNT( * ) + + 55
----
54

skipif mysql # not compatible
query I rowsort label-6104
SELECT ALL - COUNT ( * ) + + 55
----
54

query I rowsort
SELECT - 91 + - - 50 + - + 63 * - - 50 AS col0
----
-3191

query I rowsort
SELECT - 30 * + 60
----
-1800

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6107
SELECT + CAST( - - 11 AS SIGNED )
----
11

skipif mysql # not compatible
query I rowsort label-6107
SELECT + CAST ( - - 11 AS INTEGER )
----
11

query I rowsort
SELECT DISTINCT - 6 * 63 + + 86 * - COALESCE ( - 33, - 81 * + 90, 58 + 61 * 55 ) AS col2
----
2460

query I rowsort
SELECT DISTINCT + - 95 * - - 67 + + - 9
----
-6374

query I rowsort
SELECT NULLIF ( - NULLIF ( - - 58, 89 ), + 69 + - 6 )
----
-58

query I rowsort
SELECT ALL + 98 * - 46 + ( - NULLIF ( + 19, + 32 * 50 ) ) AS col1
----
-4527

query I rowsort
SELECT DISTINCT - - CASE + ( + + ( - 89 ) ) WHEN 36 THEN 59 + 2 ELSE - COALESCE ( - 38, 60 * + 73, 12 + - 72 ) END * 34 AS col0
----
1292

onlyif mysql # DIV for integer division: 
query I rowsort label-6113
SELECT - + 34 - + 82 DIV + - 72
----
-33

skipif mysql # not compatible
query I rowsort label-6113
SELECT - + 34 - + 82 / + - 72
----
-33

query I rowsort
SELECT + - 53 * - 28 AS col1
----
1484

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6115
SELECT ALL + - NULLIF ( + 11, + - 38 ) * CAST( SUM( + 7 ) AS SIGNED ) - - 41 DIV COUNT( * )
----
-36

skipif mysql # not compatible
query I rowsort label-6115
SELECT ALL + - NULLIF ( + 11, + - 38 ) * CAST ( SUM ( + 7 ) AS INTEGER ) - - 41 / COUNT ( * )
----
-36

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6116
SELECT + CAST( CAST( - 35 AS DECIMAL ) AS SIGNED )
----
-35

skipif mysql # not compatible
query I rowsort label-6116
SELECT + CAST ( CAST ( - 35 AS REAL ) AS INTEGER )
----
-35

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6117
SELECT ALL + 4 * CAST( - 49 AS SIGNED ) * + 20 * + 76 - + 73 * CASE + ( 92 ) WHEN + 62 + - COUNT( * ) THEN 96 * 89 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6117
SELECT ALL + 4 * CAST ( - 49 AS INTEGER ) * + 20 * + 76 - + 73 * CASE + ( 92 ) WHEN + 62 + - COUNT ( * ) THEN 96 * 89 END AS col0
----
NULL

query I rowsort
SELECT + 87 - - 9
----
96

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6120
SELECT + MIN( CASE WHEN ( NULL ) NOT BETWEEN ( NULL ) AND - 36 THEN 3 END ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6120
SELECT + MIN ( CASE WHEN ( NULL ) NOT BETWEEN ( NULL ) AND - 36 THEN 3 END ) AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6121
SELECT ALL 0 * + 61 - - 64 * - SUM( ALL - - CAST( NULL AS SIGNED ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6121
SELECT ALL 0 * + 61 - - 64 * - SUM ( ALL - - CAST ( NULL AS INTEGER ) ) AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6122
SELECT ALL CAST( 82 AS SIGNED ) / + ( - + CAST( NULL AS DECIMAL ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-6122
SELECT ALL CAST ( 82 AS INTEGER ) / + ( - + CAST ( NULL AS REAL ) )
----
NULL

query I rowsort
SELECT - ( 87 ) AS col0
----
-87

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6125
SELECT + 91 * + - SUM( + ( - - 38 ) ) - 12 AS col2
----
-3470

skipif mysql # not compatible
query I rowsort label-6125
SELECT + 91 * + - SUM ( + ( - - 38 ) ) - 12 AS col2
----
-3470

query I rowsort
SELECT ALL 48 * - 80
----
-3840

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

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

query I rowsort
SELECT ALL 42 + + ( 11 ) AS col1
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-6129
SELECT MIN( ALL + + CASE - 65 WHEN + 63 THEN + 62 END )
----
NULL

skipif mysql # not compatible
query I rowsort label-6129
SELECT MIN ( ALL + + CASE - 65 WHEN + 63 THEN + 62 END )
----
NULL

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

skipif mysql # not compatible
query II rowsort label-6130
SELECT DISTINCT 46, COUNT ( * ) + + CAST ( NULL AS INTEGER ) AS col0
----
46
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6131
SELECT ALL 12 * 33 DIV 82 AS col2
----
4

skipif mysql # not compatible
query I rowsort label-6131
SELECT ALL 12 * 33 / 82 AS col2
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-6132
SELECT + COUNT( + COALESCE ( + - 52, + - 86 ) ) + - 9 AS col2
----
-8

skipif mysql # not compatible
query I rowsort label-6132
SELECT + COUNT ( + COALESCE ( + - 52, + - 86 ) ) + - 9 AS col2
----
-8

query I rowsort
SELECT ALL 88 * - 26
----
-2288

onlyif mysql # aggregate syntax: 
query I rowsort label-6134
SELECT ALL COALESCE ( + 15, 22 + + - 4 - - COUNT( DISTINCT - - 32 ), COUNT( * ) )
----
15

skipif mysql # not compatible
query I rowsort label-6134
SELECT ALL COALESCE ( + 15, 22 + + - 4 - - COUNT ( DISTINCT - - 32 ), COUNT ( * ) )
----
15

query II rowsort
SELECT 66 AS col2, 98 + + ( + 72 ) * - 36 AS col0
----
66
-2494

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6137
SELECT + CASE - COUNT( * ) WHEN + CASE - - 70 WHEN 40 / - 95 / + 14 THEN 95 WHEN MIN( 52 ) THEN 89 * + 40 ELSE NULL END THEN NULL WHEN + 25 THEN 22 END * 33
----
NULL

skipif mysql # not compatible
query I rowsort label-6137
SELECT + CASE - COUNT ( * ) WHEN + CASE - - 70 WHEN 40 / - 95 / + 14 THEN 95 WHEN MIN ( 52 ) THEN 89 * + 40 ELSE NULL END THEN NULL WHEN + 25 THEN 22 END * 33
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6138
SELECT 80, 60 + COUNT( * ) col0
----
80
61

skipif mysql # not compatible
query II rowsort label-6138
SELECT 80, 60 + COUNT ( * ) col0
----
80
61

query I rowsort
SELECT + 58 - + 61 col0
----
-3

query I rowsort
SELECT ALL + 81 + + 68
----
149

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6141
SELECT ALL - 9, + 27 + + 31 * - CAST( NULL AS SIGNED ) * + 67 AS col0
----
-9
NULL

skipif mysql # not compatible
query II rowsort label-6141
SELECT ALL - 9, + 27 + + 31 * - CAST ( NULL AS INTEGER ) * + 67 AS col0
----
-9
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6142
SELECT + 82 * + - 80 + + 67 + + CAST( + AVG ( DISTINCT 74 ) AS DECIMAL ) + - COUNT( * ) * - CAST( 16 + CAST( NULL AS SIGNED ) AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-6142
SELECT + 82 * + - 80 + + 67 + + CAST ( + AVG ( DISTINCT 74 ) AS REAL ) + - COUNT ( * ) * - CAST ( 16 + CAST ( NULL AS INTEGER ) AS REAL )
----
NULL

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

skipif mysql # not compatible
query I rowsort label-6143
SELECT - CAST ( NULL AS INTEGER ) * - 35 - - ( - - 83 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6144
SELECT ALL + CASE + - 6 WHEN - 40 / - 65 - - ( + + 61 ) THEN NULLIF ( - 89, COUNT( * ) * - 13 + - 91 / + 27 ) END - 79
----
NULL

skipif mysql # not compatible
query I rowsort label-6144
SELECT ALL + CASE + - 6 WHEN - 40 / - 65 - - ( + + 61 ) THEN NULLIF ( - 89, COUNT ( * ) * - 13 + - 91 / + 27 ) END - 79
----
NULL

query I rowsort
SELECT 30 * + 2 col1
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-6146
SELECT MIN( ALL - 80 ) + + 22
----
-58

skipif mysql # not compatible
query I rowsort label-6146
SELECT MIN ( ALL - 80 ) + + 22
----
-58

query I rowsort
SELECT + - NULLIF ( + - 25, + + 60 )
----
25

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6149
SELECT ALL - ( 17 ) DIV + - 20
----
0

skipif mysql # not compatible
query I rowsort label-6149
SELECT ALL - ( 17 ) / + - 20
----
0

query I rowsort
SELECT + 57 + - 61 AS col2
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-6151
SELECT - + COUNT( * ) * COUNT( * ) * - 56 + + 39
----
95

skipif mysql # not compatible
query I rowsort label-6151
SELECT - + COUNT ( * ) * COUNT ( * ) * - 56 + + 39
----
95

query I rowsort
SELECT DISTINCT - - 50
----
50

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6153
SELECT + - 45 AS col1, 58 DIV - + NULLIF ( - 96, 71 ) * + - SUM( - 28 ) AS col2
----
-45
0

skipif mysql # not compatible
query II rowsort label-6153
SELECT + - 45 AS col1, 58 / - + NULLIF ( - 96, 71 ) * + - SUM ( - 28 ) AS col2
----
-45
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6154
SELECT - 7 + + - COUNT( * ) - + - 12 * - + 30 + + ( - + 58 ) AS col2
----
-426

skipif mysql # not compatible
query I rowsort label-6154
SELECT - 7 + + - COUNT ( * ) - + - 12 * - + 30 + + ( - + 58 ) AS col2
----
-426

query I rowsort
SELECT 43 + 22
----
65

onlyif mysql # DIV for integer division: 
query II rowsort label-6156
SELECT DISTINCT + 29 * + 87 AS col2, 77 * 38 DIV - 78 + + + ( + 15 )
----
2523
-22

skipif mysql # not compatible
query II rowsort label-6156
SELECT DISTINCT + 29 * + 87 AS col2, 77 * 38 / - 78 + + + ( + 15 )
----
2523
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-6157
SELECT ALL COUNT( * ) + COUNT( DISTINCT 0 )
----
2

skipif mysql # not compatible
query I rowsort label-6157
SELECT ALL COUNT ( * ) + COUNT ( DISTINCT 0 )
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-6158
SELECT ALL 1 + + + SUM( - 11 )
----
-10

skipif mysql # not compatible
query I rowsort label-6158
SELECT ALL 1 + + + SUM ( - 11 )
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-6159
SELECT ALL + 12 + - COUNT( * ) + + NULLIF ( + 30, - + MIN( ALL - 67 ) ) col0
----
41

skipif mysql # not compatible
query I rowsort label-6159
SELECT ALL + 12 + - COUNT ( * ) + + NULLIF ( + 30, - + MIN ( ALL - 67 ) ) col0
----
41

query I rowsort
SELECT - 52 col0
----
-52

query II rowsort
SELECT 68 + - 14 AS col0, - 53
----
54
-53

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

query I rowsort
SELECT 7 * - 47
----
-329

query I rowsort
SELECT 13 + - 29
----
-16

query I rowsort
SELECT DISTINCT 93 * + 20
----
1860

query I rowsort
SELECT 97 * 90 * - 4
----
-34920

query I rowsort
SELECT DISTINCT - 76 + + 54
----
-22

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6168
SELECT DISTINCT 57 * - CASE 48 WHEN + 28 THEN NULL WHEN + - MIN( + - CAST( NULL AS SIGNED ) ) + - ( 20 ) THEN + MIN( + ( 58 ) ) * - NULLIF ( + NULLIF ( + 97, + 38 ) * - AVG ( ALL - 12 ) + - COUNT( * ) * 51, + 88 ) WHEN - 2 THEN ( + 99 ) ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6168
SELECT DISTINCT 57 * - CASE 48 WHEN + 28 THEN NULL WHEN + - MIN ( + - CAST ( NULL AS INTEGER ) ) + - ( 20 ) THEN + MIN ( + ( 58 ) ) * - NULLIF ( + NULLIF ( + 97, + 38 ) * - AVG ( ALL - 12 ) + - COUNT ( * ) * 51, + 88 ) WHEN - 2 THEN ( + 99 ) ELSE NULL END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6169
SELECT DISTINCT 65 - + 28, - 48 + + 20 + 52 * + - COUNT( * ) * 59 col0
----
37
-3096

skipif mysql # not compatible
query II rowsort label-6169
SELECT DISTINCT 65 - + 28, - 48 + + 20 + 52 * + - COUNT ( * ) * 59 col0
----
37
-3096

onlyif mysql # aggregate syntax: 
query I rowsort label-6170
SELECT DISTINCT 4 * + 8 * 53 + - COUNT( * ) AS col0
----
1695

skipif mysql # not compatible
query I rowsort label-6170
SELECT DISTINCT 4 * + 8 * 53 + - COUNT ( * ) AS col0
----
1695

query I rowsort
SELECT NULLIF ( - + 53, - NULLIF ( 10, + + 73 * + 73 ) )
----
-53

query I rowsort
SELECT - 75 + - 61 AS col0
----
-136

onlyif mysql # aggregate syntax: 
query I rowsort label-6173
SELECT ALL - - NULLIF ( - - COALESCE ( - 33, + 87 ), 54 * - - COUNT( * ) ) AS col1
----
-33

skipif mysql # not compatible
query I rowsort label-6173
SELECT ALL - - NULLIF ( - - COALESCE ( - 33, + 87 ), 54 * - - COUNT ( * ) ) AS col1
----
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-6174
SELECT COUNT( * ) * + 62 * - + 5 AS col0
----
-310

skipif mysql # not compatible
query I rowsort label-6174
SELECT COUNT ( * ) * + 62 * - + 5 AS col0
----
-310

onlyif mysql # aggregate syntax: 
query I rowsort label-6175
SELECT + + 10 * - NULLIF ( + COUNT( + 50 ), COUNT( * ) ) * - ( + - 60 ) * 75 + - 43 + - 8
----
NULL

skipif mysql # not compatible
query I rowsort label-6175
SELECT + + 10 * - NULLIF ( + COUNT ( + 50 ), COUNT ( * ) ) * - ( + - 60 ) * 75 + - 43 + - 8
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6176
SELECT DISTINCT - + MAX( ALL - 91 ) AS col2
----
91

skipif mysql # not compatible
query I rowsort label-6176
SELECT DISTINCT - + MAX ( ALL - 91 ) AS col2
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-6177
SELECT ALL - + MIN( + 63 ) AS col1
----
-63

skipif mysql # not compatible
query I rowsort label-6177
SELECT ALL - + MIN ( + 63 ) AS col1
----
-63

query I rowsort
SELECT + CASE 52 WHEN - 32 + + + 93 THEN - 43 * 8 WHEN + 92 THEN NULL ELSE - 99 END
----
-99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6179
SELECT CAST( - 79 AS SIGNED ) AS col0
----
-79

skipif mysql # not compatible
query I rowsort label-6179
SELECT CAST ( - 79 AS INTEGER ) AS col0
----
-79

onlyif mysql # aggregate syntax: 
query I rowsort label-6180
SELECT ALL - 65 * - COUNT( * ) * + - 55
----
-3575

skipif mysql # not compatible
query I rowsort label-6180
SELECT ALL - 65 * - COUNT ( * ) * + - 55
----
-3575

query I rowsort
SELECT ALL - - 38 AS col1
----
38

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6182
SELECT - 82 * COUNT( * ) DIV 61 * 18 + COUNT( * ) * 84 + 18
----
84

skipif mysql # not compatible
query I rowsort label-6182
SELECT - 82 * COUNT ( * ) / 61 * 18 + COUNT ( * ) * 84 + 18
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-6183
SELECT - 22 - - 29 + - 21 * - - 85 + COUNT( * )
----
-1777

skipif mysql # not compatible
query I rowsort label-6183
SELECT - 22 - - 29 + - 21 * - - 85 + COUNT ( * )
----
-1777

onlyif mysql # aggregate syntax: 
query I rowsort label-6184
SELECT MAX( + 5 ) + - - 15
----
20

skipif mysql # not compatible
query I rowsort label-6184
SELECT MAX ( + 5 ) + - - 15
----
20

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6185
SELECT DISTINCT + 43 + - ( - 83 ) * + CASE + 88 WHEN - COUNT( * ) + - COALESCE ( - 81, + NULLIF ( 0, AVG ( DISTINCT - ( - 58 ) ) ) DIV + 75 ) + - ( - 48 ) THEN COUNT( * ) + 6 DIV + CAST( + 26 - - 67 * 5 AS SIGNED ) ELSE 70 END AS col1
----
5853

skipif mysql # not compatible
query I rowsort label-6185
SELECT DISTINCT + 43 + - ( - 83 ) * + CASE + 88 WHEN - COUNT ( * ) + - COALESCE ( - 81, + NULLIF ( 0, AVG ( DISTINCT - ( - 58 ) ) ) / + 75 ) + - ( - 48 ) THEN COUNT ( * ) + 6 / + CAST ( + 26 - - 67 * 5 AS INTEGER ) ELSE 70 END AS col1
----
5853

query I rowsort
SELECT ALL + 25 + 52
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-6187
SELECT + 83 * CASE - + 18 WHEN + - ( - 36 ) + ( 31 ) * + + MAX( DISTINCT + 20 ) THEN 75 + 24 * 94 END * 7 - + AVG ( - 50 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6187
SELECT + 83 * CASE - + 18 WHEN + - ( - 36 ) + ( 31 ) * + + MAX ( DISTINCT + 20 ) THEN 75 + 24 * 94 END * 7 - + AVG ( - 50 )
----
NULL

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6189
SELECT DISTINCT 71 DIV + + 8
----
8

skipif mysql # not compatible
query I rowsort label-6189
SELECT DISTINCT 71 / + + 8
----
8

query I rowsort
SELECT DISTINCT + 43 + + - 59
----
-16

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6191
SELECT 91 * + 54 DIV - CAST( 27 AS SIGNED )
----
-182

skipif mysql # not compatible
query I rowsort label-6191
SELECT 91 * + 54 / - CAST ( 27 AS INTEGER )
----
-182

onlyif mysql # aggregate syntax: 
query I rowsort label-6192
SELECT ALL + 25 + + NULLIF ( + - 60, - + COALESCE ( + - 15, COUNT( * ) + - COUNT( * ) + - ( 9 ) / 51, - 89 ) * 8 + ( - 56 ) )
----
-35

skipif mysql # not compatible
query I rowsort label-6192
SELECT ALL + 25 + + NULLIF ( + - 60, - + COALESCE ( + - 15, COUNT ( * ) + - COUNT ( * ) + - ( 9 ) / 51, - 89 ) * 8 + ( - 56 ) )
----
-35

query I rowsort
SELECT 68 * + - 61 * - 88 col2
----
365024

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

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

query II rowsort
SELECT - 53, - 14 AS col2
----
-53
-14

query I rowsort
SELECT 16 - + 14 col1
----
2

query II rowsort
SELECT 18, CASE - 34 WHEN + - 92 THEN NULL WHEN 72 THEN + - 77 * + 91 - + 34 ELSE + 74 END - 47 AS col0
----
18
27

query I rowsort
SELECT DISTINCT - 8 * 35 AS col0
----
-280

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

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

query I rowsort
SELECT ALL - ( ( - + 54 ) ) - - 72
----
126

onlyif mysql # aggregate syntax: 
query I rowsort label-6201
SELECT 6 + + COUNT( * ) AS col1
----
7

skipif mysql # not compatible
query I rowsort label-6201
SELECT 6 + + COUNT ( * ) AS col1
----
7

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6204
SELECT ALL - 43 - 83 + COUNT( * ) * 30
----
-96

skipif mysql # not compatible
query I rowsort label-6204
SELECT ALL - 43 - 83 + COUNT ( * ) * 30
----
-96

query I rowsort
SELECT - 67 * + 64
----
-4288

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

skipif mysql # not compatible
query I rowsort label-6206
SELECT + 37 * - 58 + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT - - ( + CASE + ( - ( 42 ) ) WHEN 98 THEN NULL ELSE - + 84 END ) + - 24 + - 10 AS col1
----
-118

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-6208
SELECT 25 AS col1, + CASE - AVG ( ALL - - 22 ) WHEN 8 + - + 13 + + ( - + CAST( NULL AS SIGNED ) ) DIV - 42 THEN - 93 + COUNT( * ) * - 99 WHEN 84 DIV 50 THEN NULL ELSE MIN( + 50 ) * COUNT( * ) END DIV 5 col1
----
25
10

skipif mysql # not compatible
query II rowsort label-6208
SELECT 25 AS col1, + CASE - AVG ( ALL - - 22 ) WHEN 8 + - + 13 + + ( - + CAST ( NULL AS INTEGER ) ) / - 42 THEN - 93 + COUNT ( * ) * - 99 WHEN 84 / 50 THEN NULL ELSE MIN ( + 50 ) * COUNT ( * ) END / 5 col1
----
25
10

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

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

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

skipif mysql # not compatible
query II rowsort label-6210
SELECT - - 80 AS col1, - COUNT ( * )
----
80
-1

query I rowsort
SELECT - - 71 * - - CASE - 45 WHEN + 70 THEN NULL ELSE + ( + 20 ) END col2
----
1420

query I rowsort
SELECT + + 66 * + ( 20 ) - + 69
----
1251

onlyif mysql # aggregate syntax: 
query I rowsort label-6213
SELECT DISTINCT - - 39 * - SUM( - 29 )
----
1131

skipif mysql # not compatible
query I rowsort label-6213
SELECT DISTINCT - - 39 * - SUM ( - 29 )
----
1131

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6214
SELECT ALL + - 77 * + 73 * 24 * CAST( 80 AS SIGNED )
----
-10792320

skipif mysql # not compatible
query I rowsort label-6214
SELECT ALL + - 77 * + 73 * 24 * CAST ( 80 AS INTEGER )
----
-10792320

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6216
SELECT + 53 * - COUNT( DISTINCT + + 18 ) AS col2, 94 * - 92 + - CAST( NULL AS SIGNED )
----
-53
NULL

skipif mysql # not compatible
query II rowsort label-6216
SELECT + 53 * - COUNT ( DISTINCT + + 18 ) AS col2, 94 * - 92 + - CAST ( NULL AS INTEGER )
----
-53
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6217
SELECT - - MIN( ALL 47 ) * 13 + 1 + 52
----
664

skipif mysql # not compatible
query I rowsort label-6217
SELECT - - MIN ( ALL 47 ) * 13 + 1 + 52
----
664

query I rowsort
SELECT + - 39 - + 24 * + 17 * + 28 * - + 76 * + 81 col2
----
70326105

onlyif mysql # aggregate syntax: 
query I rowsort label-6219
SELECT + ( 88 ) * - 18 + 98 + COUNT( * ) AS col0
----
-1485

skipif mysql # not compatible
query I rowsort label-6219
SELECT + ( 88 ) * - 18 + 98 + COUNT ( * ) AS col0
----
-1485

query I rowsort
SELECT ALL + 69 * 85 + 83 + 96
----
6044

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6221
SELECT + 42 + + + COUNT( * ) DIV - 46 - + COUNT( * ) + - 19 * - 49 + - + CAST( 70 AS SIGNED )
----
902

skipif mysql # not compatible
query I rowsort label-6221
SELECT + 42 + + + COUNT ( * ) / - 46 - + COUNT ( * ) + - 19 * - 49 + - + CAST ( 70 AS INTEGER )
----
902

query I rowsort
SELECT ALL + - 12 AS col0
----
-12

query I rowsort
SELECT ALL 85 * + 54 + + - 2 + 8 + - - 23 + - 91
----
4528

query I rowsort
SELECT 57 * 91 + - 33 * - 86 col2
----
8025

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6225
SELECT ALL - 84 * 57 / + + CASE 4 WHEN - - COUNT( * ) * - 74 - + + 45 + - + 8 * - + 80 + 13 * + 76 THEN NULL WHEN + ( + COUNT( * ) ) + COUNT( * ) * - NULLIF ( 72 + CAST( 97 + 45 * + 96 AS SIGNED ), 29 / - COUNT( ALL - 67 * - 68 ) + 29 ) THEN - COALESCE ( + NULLIF ( 58, + 18 ), 78 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-6225
SELECT ALL - 84 * 57 / + + CASE 4 WHEN - - COUNT ( * ) * - 74 - + + 45 + - + 8 * - + 80 + 13 * + 76 THEN NULL WHEN + ( + COUNT ( * ) ) + COUNT ( * ) * - NULLIF ( 72 + CAST ( 97 + 45 * + 96 AS INTEGER ), 29 / - COUNT ( ALL - 67 * - 68 ) + 29 ) THEN - COALESCE ( + NULLIF ( 58, + 18 ), 78 ) END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6226
SELECT DISTINCT 60 * + 17 * + 29 * 88 * + CAST( NULL AS SIGNED ) + 89 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6226
SELECT DISTINCT 60 * + 17 * + 29 * 88 * + CAST ( NULL AS INTEGER ) + 89 AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6227
SELECT ALL COALESCE ( 20, 22, - + 69 ) * ( - NULLIF ( - 58, - + CAST( - 47 AS SIGNED ) + - 43 ) ) + 24
----
1184

skipif mysql # not compatible
query I rowsort label-6227
SELECT ALL COALESCE ( 20, 22, - + 69 ) * ( - NULLIF ( - 58, - + CAST ( - 47 AS INTEGER ) + - 43 ) ) + 24
----
1184

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6229
SELECT ALL ( + ( - 77 ) ) * + + COALESCE ( 39, 15 ) + + COUNT( * ) DIV 14 + + - 18
----
-3021

skipif mysql # not compatible
query I rowsort label-6229
SELECT ALL ( + ( - 77 ) ) * + + COALESCE ( 39, 15 ) + + COUNT ( * ) / 14 + + - 18
----
-3021

query I rowsort
SELECT + 71 * - 33
----
-2343

onlyif mysql # aggregate syntax: 
query I rowsort label-6231
SELECT - MAX( ALL - ( + 89 ) ) * 35 + + + 26 AS col1
----
3141

skipif mysql # not compatible
query I rowsort label-6231
SELECT - MAX ( ALL - ( + 89 ) ) * 35 + + + 26 AS col1
----
3141

onlyif mysql # aggregate syntax: 
query I rowsort label-6232
SELECT - 53 + 66 * - + COUNT( * ) + - + 19
----
-138

skipif mysql # not compatible
query I rowsort label-6232
SELECT - 53 + 66 * - + COUNT ( * ) + - + 19
----
-138

onlyif mysql # aggregate syntax: 
query I rowsort label-6233
SELECT ALL + COALESCE ( - 27, - 97 * + - ( + - COUNT( - ( + 12 ) ) ) + + + SUM( + 67 ) - + 0 * - 57 ) AS col1
----
-27

skipif mysql # not compatible
query I rowsort label-6233
SELECT ALL + COALESCE ( - 27, - 97 * + - ( + - COUNT ( - ( + 12 ) ) ) + + + SUM ( + 67 ) - + 0 * - 57 ) AS col1
----
-27

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

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

query I rowsort
SELECT 94 * - 5 + 90 + - - 99 * - 12 AS col1
----
-1568

onlyif mysql # aggregate syntax: 
query I rowsort label-6236
SELECT + NULLIF ( + 16, + 19 ) * + CASE + - 10 WHEN + 78 * - 56 THEN NULL WHEN 33 * - COUNT( * ) * + 1 + + 22 / 45 THEN + 29 - - ( + 4 ) * COUNT( * ) ELSE + 83 END AS col2
----
1328

skipif mysql # not compatible
query I rowsort label-6236
SELECT + NULLIF ( + 16, + 19 ) * + CASE + - 10 WHEN + 78 * - 56 THEN NULL WHEN 33 * - COUNT ( * ) * + 1 + + 22 / 45 THEN + 29 - - ( + 4 ) * COUNT ( * ) ELSE + 83 END AS col2
----
1328

query I rowsort
SELECT DISTINCT + 35 col0
----
35

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6238
SELECT ALL + 22 DIV COUNT( ALL 83 )
----
22

skipif mysql # not compatible
query I rowsort label-6238
SELECT ALL + 22 / COUNT ( ALL 83 )
----
22

query I rowsort
SELECT + ( + + ( + + 71 ) ) - - 28 * + - 78 + 30
----
-2083

onlyif mysql # aggregate syntax: 
query I rowsort label-6240
SELECT - MIN( ALL + 47 ) + - 82
----
-129

skipif mysql # not compatible
query I rowsort label-6240
SELECT - MIN ( ALL + 47 ) + - 82
----
-129

onlyif mysql # aggregate syntax: 
query I rowsort label-6241
SELECT - - 86 * + COALESCE ( - 76, - - 79 * CASE COUNT( * ) WHEN SUM( 9 ) / + ( + 64 ) - 34 THEN NULL WHEN COUNT( * ) THEN - 50 * 75 END * + 97, ( COUNT( - 41 ) ) )
----
-6536

skipif mysql # not compatible
query I rowsort label-6241
SELECT - - 86 * + COALESCE ( - 76, - - 79 * CASE COUNT ( * ) WHEN SUM ( 9 ) / + ( + 64 ) - 34 THEN NULL WHEN COUNT ( * ) THEN - 50 * 75 END * + 97, ( COUNT ( - 41 ) ) )
----
-6536

query I rowsort
SELECT ALL - 81 * ( + 51 )
----
-4131

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6243
SELECT - - COALESCE ( - 90, 30 * CASE + - COUNT( * ) WHEN + - 99 THEN NULL WHEN + 82 THEN NULL ELSE + 90 END + + 87 + 27 DIV + 73 ) AS col1
----
-90

skipif mysql # not compatible
query I rowsort label-6243
SELECT - - COALESCE ( - 90, 30 * CASE + - COUNT ( * ) WHEN + - 99 THEN NULL WHEN + 82 THEN NULL ELSE + 90 END + + 87 + 27 / + 73 ) AS col1
----
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-6244
SELECT - COUNT( * ) + 93
----
92

skipif mysql # not compatible
query I rowsort label-6244
SELECT - COUNT ( * ) + 93
----
92

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6245
SELECT - ( - - 3 ) AS col0, - CASE CAST( NULL AS SIGNED ) WHEN - + 3 - - + MIN( - - COALESCE ( 24, + - 98 ) ) THEN - 92 WHEN 4 * - 13 THEN 99 END
----
-3
NULL

skipif mysql # not compatible
query II rowsort label-6245
SELECT - ( - - 3 ) AS col0, - CASE CAST ( NULL AS INTEGER ) WHEN - + 3 - - + MIN ( - - COALESCE ( 24, + - 98 ) ) THEN - 92 WHEN 4 * - 13 THEN 99 END
----
-3
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6246
SELECT - COUNT( - 53 ) + - 76
----
-77

skipif mysql # not compatible
query I rowsort label-6246
SELECT - COUNT ( - 53 ) + - 76
----
-77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6247
SELECT - NULLIF ( 18, + CAST( - 25 AS SIGNED ) * 15 - + 44 / - - CAST( + + MAX( + + 12 ) AS SIGNED ) ) * 98 AS col2
----
-1764

skipif mysql # not compatible
query I rowsort label-6247
SELECT - NULLIF ( 18, + CAST ( - 25 AS INTEGER ) * 15 - + 44 / - - CAST ( + + MAX ( + + 12 ) AS INTEGER ) ) * 98 AS col2
----
-1764

query I rowsort
SELECT ALL - - 49 * - 97 AS col0
----
-4753

query II rowsort
SELECT DISTINCT - ( 24 ), NULLIF ( 16, - + ( + ( 89 ) ) ) AS col1
----
-24
16

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6250
SELECT - 15 - - COALESCE ( 77, 87 * COUNT( * ) + 1 * ( - - COUNT( * ) ) DIV - 56 DIV 67 + NULLIF ( + 41, - 21 ) + 35 + + 72 * + 76, + 73 * - 42, + 52 ) - 90 DIV 79 * 25
----
37

skipif mysql # not compatible
query I rowsort label-6250
SELECT - 15 - - COALESCE ( 77, 87 * COUNT ( * ) + 1 * ( - - COUNT ( * ) ) / - 56 / 67 + NULLIF ( + 41, - 21 ) + 35 + + 72 * + 76, + 73 * - 42, + 52 ) - 90 / 79 * 25
----
37

query I rowsort
SELECT ALL NULLIF ( - 0, - 34 - + + 34 * - 53 )
----
0

query I rowsort
SELECT ALL - 33 col2
----
-33

query I rowsort
SELECT - + 60 * + 93 * - 80 AS col2
----
446400

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6254
SELECT - - 48 * + 7 + - 6 + + CAST( - NULLIF ( - - 7, 24 ) AS SIGNED )
----
323

skipif mysql # not compatible
query I rowsort label-6254
SELECT - - 48 * + 7 + - 6 + + CAST ( - NULLIF ( - - 7, 24 ) AS INTEGER )
----
323

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6255
SELECT + + ( CASE ( - 49 ) WHEN + 50 + + 95 THEN - 46 WHEN 45 THEN 21 / + 17 END ) + + CAST( SUM( + CAST( NULL AS SIGNED ) ) AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6255
SELECT + + ( CASE ( - 49 ) WHEN + 50 + + 95 THEN - 46 WHEN 45 THEN 21 / + 17 END ) + + CAST ( SUM ( + CAST ( NULL AS INTEGER ) ) AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6256
SELECT ALL + + 74 DIV + + COUNT( * ) - 65 AS col2
----
9

skipif mysql # not compatible
query I rowsort label-6256
SELECT ALL + + 74 / + + COUNT ( * ) - 65 AS col2
----
9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6257
SELECT ALL 61 / MIN( - 62 ) / + 50 + 29 + CAST( NULL AS SIGNED ) * + 31, SUM( + + 48 ) AS col0
----
NULL
48

skipif mysql # not compatible
query II rowsort label-6257
SELECT ALL 61 / MIN ( - 62 ) / + 50 + 29 + CAST ( NULL AS INTEGER ) * + 31, SUM ( + + 48 ) AS col0
----
NULL
48

onlyif mysql # aggregate syntax: 
query I rowsort label-6258
SELECT DISTINCT - COUNT( DISTINCT - + 5 ) * + - MIN( - 39 )
----
-39

skipif mysql # not compatible
query I rowsort label-6258
SELECT DISTINCT - COUNT ( DISTINCT - + 5 ) * + - MIN ( - 39 )
----
-39

onlyif mysql # DIV for integer division: 
query I rowsort label-6259
SELECT DISTINCT - 29 DIV - 39 + - - ( 95 ) + + 25 col2
----
120

skipif mysql # not compatible
query I rowsort label-6259
SELECT DISTINCT - 29 / - 39 + - - ( 95 ) + + 25 col2
----
120

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6260
SELECT DISTINCT 87 DIV + SUM( ALL - 78 ) + + 73
----
72

skipif mysql # not compatible
query I rowsort label-6260
SELECT DISTINCT 87 / + SUM ( ALL - 78 ) + + 73
----
72

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6261
SELECT ALL 56 DIV 59 * - - 51 * COUNT( * ) + + COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-6261
SELECT ALL 56 / 59 * - - 51 * COUNT ( * ) + + COUNT ( * )
----
1

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

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6264
SELECT + 74 DIV - 65 - COUNT( * ) * 32 DIV - 15 AS col2, + NULLIF ( + - 28, + + 10 ) + - + 61 AS col1
----
1
-89

skipif mysql # not compatible
query II rowsort label-6264
SELECT + 74 / - 65 - COUNT ( * ) * 32 / - 15 AS col2, + NULLIF ( + - 28, + + 10 ) + - + 61 AS col1
----
1
-89

query I rowsort
SELECT + 87 * + 70 + + 42 AS col1
----
6132

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

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

query I rowsort
SELECT ( - 55 ) AS col1
----
-55

query I rowsort
SELECT ( 90 ) AS col1
----
90

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6269
SELECT ALL - 40 * 74 DIV 6 - - COALESCE ( 41, + - COUNT( * ) ) AS col1
----
-452

skipif mysql # not compatible
query I rowsort label-6269
SELECT ALL - 40 * 74 / 6 - - COALESCE ( 41, + - COUNT ( * ) ) AS col1
----
-452

query II rowsort
SELECT DISTINCT + 38, - NULLIF ( 6, 63 ) * - 62 col2
----
38
372

query II rowsort
SELECT ALL + 77, + ( 96 ) AS col1
----
77
96

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6272
SELECT ALL SUM( DISTINCT - ( - 51 ) ) DIV + + ( SUM( + 29 ) )
----
1

skipif mysql # not compatible
query I rowsort label-6272
SELECT ALL SUM ( DISTINCT - ( - 51 ) ) / + + ( SUM ( + 29 ) )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6273
SELECT CASE + MAX( DISTINCT + 88 ) WHEN - 59 THEN NULL WHEN - CASE + MAX( 1 ) WHEN - COUNT( * ) THEN NULL WHEN + 62 THEN NULL WHEN - 10 THEN NULL WHEN + 62 THEN - 97 + 7 ELSE NULL END + + 3 THEN 61 + 2 END * + 26 + 29
----
NULL

skipif mysql # not compatible
query I rowsort label-6273
SELECT CASE + MAX ( DISTINCT + 88 ) WHEN - 59 THEN NULL WHEN - CASE + MAX ( 1 ) WHEN - COUNT ( * ) THEN NULL WHEN + 62 THEN NULL WHEN - 10 THEN NULL WHEN + 62 THEN - 97 + 7 ELSE NULL END + + 3 THEN 61 + 2 END * + 26 + 29
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6274
SELECT ALL - 67 col1, 37 * + COUNT( * ) + - + 16
----
-67
21

skipif mysql # not compatible
query II rowsort label-6274
SELECT ALL - 67 col1, 37 * + COUNT ( * ) + - + 16
----
-67
21

onlyif mysql # aggregate syntax: 
query I rowsort label-6275
SELECT NULLIF ( 87, - - MIN( + - 94 ) ) + 27 col2
----
114

skipif mysql # not compatible
query I rowsort label-6275
SELECT NULLIF ( 87, - - MIN ( + - 94 ) ) + 27 col2
----
114

query I rowsort
SELECT - 92 * + - 82 - - - 95
----
7449

query I rowsort
SELECT COALESCE ( 60, + 1 ) * - + 19 AS col0
----
-1140

query I rowsort
SELECT 47 * + + 45 AS col2
----
2115

onlyif mysql # aggregate syntax: 
query I rowsort label-6279
SELECT 51 - - COUNT( DISTINCT 54 )
----
52

skipif mysql # not compatible
query I rowsort label-6279
SELECT 51 - - COUNT ( DISTINCT 54 )
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-6280
SELECT - SUM( - 82 )
----
82

skipif mysql # not compatible
query I rowsort label-6280
SELECT - SUM ( - 82 )
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-6281
SELECT - + ( CASE + 34 WHEN + 61 + + 55 THEN - 77 + COUNT( * ) WHEN - 79 THEN NULL END )
----
NULL

skipif mysql # not compatible
query I rowsort label-6281
SELECT - + ( CASE + 34 WHEN + 61 + + 55 THEN - 77 + COUNT ( * ) WHEN - 79 THEN NULL END )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6282
SELECT ALL - 0 DIV 11
----
0

skipif mysql # not compatible
query I rowsort label-6282
SELECT ALL - 0 / 11
----
0

query II rowsort
SELECT DISTINCT + 63, - 24 + - 23 AS col1
----
63
-47

query I rowsort
SELECT ALL - 8 + - 12 + + 12 - 67
----
-75

query I rowsort
SELECT - 74 + + + 48
----
-26

query I rowsort
SELECT ALL - + 9 + + + 96 - 54 * 83
----
-4395

query I rowsort
SELECT 58 * - 26 col0
----
-1508

query I rowsort
SELECT DISTINCT ( - 10 )
----
-10

query I rowsort
SELECT DISTINCT + - 80 + + COALESCE ( - - NULLIF ( - + 13, 52 ), - 66 ) AS col1
----
-93

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

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

query II rowsort
SELECT DISTINCT 78 AS col2, 51
----
78
51

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6293
SELECT 91 + + - 54 * 61 - 61 DIV + - NULLIF ( + + 83, + 44 * + + 63 * CAST( + + COALESCE ( - MAX( ALL - 5 ), - 94 ) AS SIGNED ) * + COUNT( * ) )
----
-3203

skipif mysql # not compatible
query I rowsort label-6293
SELECT 91 + + - 54 * 61 - 61 / + - NULLIF ( + + 83, + 44 * + + 63 * CAST ( + + COALESCE ( - MAX ( ALL - 5 ), - 94 ) AS INTEGER ) * + COUNT ( * ) )
----
-3203

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6294
SELECT CASE SUM( DISTINCT - 50 ) WHEN - ( + + 43 ) + - 7 THEN ( + 15 ) * - 6 ELSE NULL END * + 36 + + - 8 DIV 72
----
-3240

skipif mysql # not compatible
query I rowsort label-6294
SELECT CASE SUM ( DISTINCT - 50 ) WHEN - ( + + 43 ) + - 7 THEN ( + 15 ) * - 6 ELSE NULL END * + 36 + + - 8 / 72
----
-3240

onlyif mysql # aggregate syntax: 
query II rowsort label-6295
SELECT 40, 68 * + COUNT( * ) * 91 AS col2
----
40
6188

skipif mysql # not compatible
query II rowsort label-6295
SELECT 40, 68 * + COUNT ( * ) * 91 AS col2
----
40
6188

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6296
SELECT 43 AS col0, 16 * + - COUNT( * ) * + CAST( NULL AS SIGNED ) / - COUNT( * ) col1
----
43
NULL

skipif mysql # not compatible
query II rowsort label-6296
SELECT 43 AS col0, 16 * + - COUNT ( * ) * + CAST ( NULL AS INTEGER ) / - COUNT ( * ) col1
----
43
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6297
SELECT + 8 DIV - ( - 51 ) + + 33 + + 71
----
104

skipif mysql # not compatible
query I rowsort label-6297
SELECT + 8 / - ( - 51 ) + + 33 + + 71
----
104

onlyif mysql # aggregate syntax: 
query I rowsort label-6298
SELECT COUNT( * ) - + - 88 * + CASE + 53 WHEN + - COUNT( * ) * 21 THEN - 94 WHEN 87 - + 92 THEN + 49 END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6298
SELECT COUNT ( * ) - + - 88 * + CASE + 53 WHEN + - COUNT ( * ) * 21 THEN - 94 WHEN 87 - + 92 THEN + 49 END col1
----
NULL

query I rowsort
SELECT 78 * - 16 AS col0
----
-1248

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6301
SELECT ALL - 94 - + 29 col2, - MIN( DISTINCT - 63 ) * - - 9 + + 55 AS col1
----
-123
622

skipif mysql # not compatible
query II rowsort label-6301
SELECT ALL - 94 - + 29 col2, - MIN ( DISTINCT - 63 ) * - - 9 + + 55 AS col1
----
-123
622

query II rowsort
SELECT + 37 AS col1, ( + - 41 )
----
37
-41

onlyif mysql # DIV for integer division: 
query I rowsort label-6303
SELECT ALL + 67 DIV + 71
----
0

skipif mysql # not compatible
query I rowsort label-6303
SELECT ALL + 67 / + 71
----
0

query I rowsort
SELECT ALL ( - - 9 ) * + 57 AS col2
----
513

onlyif mysql # aggregate syntax: 
query I rowsort label-6305
SELECT DISTINCT + 49 * MIN( - - 99 )
----
4851

skipif mysql # not compatible
query I rowsort label-6305
SELECT DISTINCT + 49 * MIN ( - - 99 )
----
4851

query II rowsort
SELECT ALL - 80 AS col2, 19
----
-80
19

query I rowsort
SELECT 67 * - - 32 + + 58
----
2202

onlyif mysql # aggregate syntax: 
query I rowsort label-6308
SELECT ALL - COUNT( * ) * - 32
----
32

skipif mysql # not compatible
query I rowsort label-6308
SELECT ALL - COUNT ( * ) * - 32
----
32

query I rowsort
SELECT DISTINCT + 77 * - - 83 col1
----
6391

onlyif mysql # aggregate syntax: 
query I rowsort label-6310
SELECT ALL - NULLIF ( + 66, 88 + 84 ) * - + 93 * - 77 - - - CASE + + CASE + COUNT( * ) WHEN 71 + - 78 THEN - COUNT( * ) + + 53 END WHEN 67 + SUM( - 89 ) / 12 THEN - 76 + - 62 ELSE NULL END col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6310
SELECT ALL - NULLIF ( + 66, 88 + 84 ) * - + 93 * - 77 - - - CASE + + CASE + COUNT ( * ) WHEN 71 + - 78 THEN - COUNT ( * ) + + 53 END WHEN 67 + SUM ( - 89 ) / 12 THEN - 76 + - 62 ELSE NULL END col0
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-6311
SELECT DISTINCT - 73 AS col1, 4 DIV + + 53
----
-73
0

skipif mysql # not compatible
query II rowsort label-6311
SELECT DISTINCT - 73 AS col1, 4 / + + 53
----
-73
0

query II rowsort
SELECT + 15, + 40 AS col1
----
15
40

query I rowsort
SELECT DISTINCT - 83 col2
----
-83

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6315
SELECT ( - COUNT( * ) ) * NULLIF ( - + 84, MAX( ALL 25 ) * - 45 * - 99 * AVG ( 67 ) ) + - + COALESCE ( 23, 21 - 62 ) + 90
----
151

skipif mysql # not compatible
query I rowsort label-6315
SELECT ( - COUNT ( * ) ) * NULLIF ( - + 84, MAX ( ALL 25 ) * - 45 * - 99 * AVG ( 67 ) ) + - + COALESCE ( 23, 21 - 62 ) + 90
----
151

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6316
SELECT ALL - NULLIF ( + - 64, 98 ) + COALESCE ( + + 12, + COUNT( * ) DIV COALESCE ( 6, 29 ) * + 30 ) AS col2
----
76

skipif mysql # not compatible
query I rowsort label-6316
SELECT ALL - NULLIF ( + - 64, 98 ) + COALESCE ( + + 12, + COUNT ( * ) / COALESCE ( 6, 29 ) * + 30 ) AS col2
----
76

onlyif mysql # aggregate syntax: 
query II rowsort label-6317
SELECT 56 AS col2, + SUM( ALL + 58 ) + COUNT( * ) AS col2
----
56
59

skipif mysql # not compatible
query II rowsort label-6317
SELECT 56 AS col2, + SUM ( ALL + 58 ) + COUNT ( * ) AS col2
----
56
59

onlyif mysql # aggregate syntax: 
query I rowsort label-6318
SELECT ALL + 73 + + CASE + + COUNT( * ) WHEN + + COALESCE ( 80, - - 20 + 36, - 95 / + 1 / - - 26 ) THEN 25 END + + 30 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6318
SELECT ALL + 73 + + CASE + + COUNT ( * ) WHEN + + COALESCE ( 80, - - 20 + 36, - 95 / + 1 / - - 26 ) THEN 25 END + + 30 AS col0
----
NULL

query I rowsort
SELECT DISTINCT - 62 + 22
----
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-6320
SELECT + 92 + + - 87 - + COUNT( * ) - - 9 * - MAX( DISTINCT + - 23 ) * - 62 * + 88 * + 46 AS col1
----
-51952028

skipif mysql # not compatible
query I rowsort label-6320
SELECT + 92 + + - 87 - + COUNT ( * ) - - 9 * - MAX ( DISTINCT + - 23 ) * - 62 * + 88 * + 46 AS col1
----
-51952028

query I rowsort
SELECT - - COALESCE ( + 17, 99 )
----
17

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6323
SELECT + 50 - 11 * 22 + - SUM( DISTINCT - CAST( NULL AS SIGNED ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6323
SELECT + 50 - 11 * 22 + - SUM ( DISTINCT - CAST ( NULL AS INTEGER ) ) AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6324
SELECT - ( + NULLIF ( + 78, + CASE + 15 WHEN - - COUNT( * ) THEN NULL WHEN + 74 DIV + - NULLIF ( - 43, 58 ) THEN NULL WHEN ( 86 ) THEN NULL ELSE + MIN( ALL 68 ) * - 43 END * 32 ) ) DIV - NULLIF ( 1, - 95 ) AS col0
----
78

skipif mysql # not compatible
query I rowsort label-6324
SELECT - ( + NULLIF ( + 78, + CASE + 15 WHEN - - COUNT ( * ) THEN NULL WHEN + 74 / + - NULLIF ( - 43, 58 ) THEN NULL WHEN ( 86 ) THEN NULL ELSE + MIN ( ALL 68 ) * - 43 END * 32 ) ) / - NULLIF ( 1, - 95 ) AS col0
----
78

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6325
SELECT DISTINCT + CAST( NULL AS SIGNED ) + + - 42 * - + MIN( - 28 ) / - ( + CAST( - NULLIF ( + 95, - COUNT( DISTINCT - 5 ) * - 38 ) AS SIGNED ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6325
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + + - 42 * - + MIN ( - 28 ) / - ( + CAST ( - NULLIF ( + 95, - COUNT ( DISTINCT - 5 ) * - 38 ) AS INTEGER ) ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6326
SELECT DISTINCT + 88 AS col0, - COUNT( * ) * + 28 * 48 AS col0
----
88
-1344

skipif mysql # not compatible
query II rowsort label-6326
SELECT DISTINCT + 88 AS col0, - COUNT ( * ) * + 28 * 48 AS col0
----
88
-1344

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6328
SELECT DISTINCT COALESCE ( + + SUM( - 82 ), - COUNT( 99 ), + CAST( NULL AS SIGNED ) * + 63 + - 37 + 14 + + 64 ) col0
----
-82

skipif mysql # not compatible
query I rowsort label-6328
SELECT DISTINCT COALESCE ( + + SUM ( - 82 ), - COUNT ( 99 ), + CAST ( NULL AS INTEGER ) * + 63 + - 37 + 14 + + 64 ) col0
----
-82

query I rowsort
SELECT ALL - ( - 54 ) - - ( + + 37 ) AS col0
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-6330
SELECT - 49 * - COALESCE ( - 19, COUNT( * ) + + 58 + + 71, COUNT( ALL - + 54 ) )
----
-931

skipif mysql # not compatible
query I rowsort label-6330
SELECT - 49 * - COALESCE ( - 19, COUNT ( * ) + + 58 + + 71, COUNT ( ALL - + 54 ) )
----
-931

query I rowsort
SELECT ALL + 62 * - + 77 AS col1
----
-4774

query I rowsort
SELECT + COALESCE ( - 41, - 15 )
----
-41

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6333
SELECT DISTINCT 65 * - - CASE 70 WHEN - 25 THEN NULL WHEN - + MAX( + + 17 ) * - - 53 * - 48 THEN - - 86 ELSE + COUNT( * ) * + 36 * + + 68 DIV 2 END * + 57 AS col0
----
4534920

skipif mysql # not compatible
query I rowsort label-6333
SELECT DISTINCT 65 * - - CASE 70 WHEN - 25 THEN NULL WHEN - + MAX ( + + 17 ) * - - 53 * - 48 THEN - - 86 ELSE + COUNT ( * ) * + 36 * + + 68 / 2 END * + 57 AS col0
----
4534920

query II rowsort
SELECT ALL - ( - ( COALESCE ( - 56, - - 67 ) ) ) AS col0, + 22 AS col1
----
-56
22

query I rowsort
SELECT COALESCE ( - - 74, NULLIF ( + + 10, - - 34 ) - - 97 * 7, + - 38 * - 89 + + 87 )
----
74

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6336
SELECT NULLIF ( CAST( NULL AS SIGNED ), CAST( + - 73 AS DECIMAL ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6336
SELECT NULLIF ( CAST ( NULL AS INTEGER ), CAST ( + - 73 AS REAL ) ) AS col0
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6338
SELECT ALL + MAX( ALL + 12 ) AS col2, - COALESCE ( COUNT( * ), - - 35 * 7 )
----
12
-1

skipif mysql # not compatible
query II rowsort label-6338
SELECT ALL + MAX ( ALL + 12 ) AS col2, - COALESCE ( COUNT ( * ), - - 35 * 7 )
----
12
-1

query I rowsort
SELECT - 35 + + 41
----
6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6340
SELECT ALL + CASE COUNT( * ) WHEN CASE 94 WHEN ( + 14 ) + - 72 + 90 * AVG ( DISTINCT - 39 ) * + SUM( + - 55 ) * 46 THEN CAST( NULL AS SIGNED ) - + COUNT( * ) ELSE + 17 / + 99 END THEN 29 WHEN - 52 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-6340
SELECT ALL + CASE COUNT ( * ) WHEN CASE 94 WHEN ( + 14 ) + - 72 + 90 * AVG ( DISTINCT - 39 ) * + SUM ( + - 55 ) * 46 THEN CAST ( NULL AS INTEGER ) - + COUNT ( * ) ELSE + 17 / + 99 END THEN 29 WHEN - 52 THEN NULL END
----
NULL

query I rowsort
SELECT 73 * + 8 + + + 18 col1
----
602

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6342
SELECT DISTINCT + CASE - 83 WHEN + - COALESCE ( - 44, - 52, + + COUNT( * ) ) + ( - + ( + 26 ) ) THEN + SUM( - 98 ) * 94 * + 64 + ( CAST( + COUNT( * ) AS SIGNED ) - - 30 * 71 ) * COALESCE ( 92 - 79, - ( + 51 ), - 5 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-6342
SELECT DISTINCT + CASE - 83 WHEN + - COALESCE ( - 44, - 52, + + COUNT ( * ) ) + ( - + ( + 26 ) ) THEN + SUM ( - 98 ) * 94 * + 64 + ( CAST ( + COUNT ( * ) AS INTEGER ) - - 30 * 71 ) * COALESCE ( 92 - 79, - ( + 51 ), - 5 ) END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6343
SELECT DISTINCT + 15 * COALESCE ( 51, + 57 ) * + + ( 86 ) + - + COUNT( * ) + - - CASE - COUNT( * ) WHEN + 60 THEN - 1 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-6343
SELECT DISTINCT + 15 * COALESCE ( 51, + 57 ) * + + ( 86 ) + - + COUNT ( * ) + - - CASE - COUNT ( * ) WHEN + 60 THEN - 1 ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6344
SELECT ALL 8 * + COUNT( * ) + 17 + 34 * + + 64, + 66 + 84 * - 47 * - + CAST( NULL AS SIGNED ) AS col2
----
2201
NULL

skipif mysql # not compatible
query II rowsort label-6344
SELECT ALL 8 * + COUNT ( * ) + 17 + 34 * + + 64, + 66 + 84 * - 47 * - + CAST ( NULL AS INTEGER ) AS col2
----
2201
NULL

query I rowsort
SELECT - 81 - - + ( 83 ) + + 73 * 38 col2
----
2776

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6346
SELECT ALL - + 43 * CAST( NULL AS DECIMAL ) AS col0
----
NULL

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6348
SELECT - - CAST( - 58 AS SIGNED ) + - + ( 18 ) + 58 AS col2
----
-18

skipif mysql # not compatible
query I rowsort label-6348
SELECT - - CAST ( - 58 AS INTEGER ) + - + ( 18 ) + 58 AS col2
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-6349
SELECT DISTINCT - COUNT( * ) * + - 95
----
95

skipif mysql # not compatible
query I rowsort label-6349
SELECT DISTINCT - COUNT ( * ) * + - 95
----
95

query I rowsort
SELECT - + 36 * 8 + - ( - - 98 ) AS col1
----
-386

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6351
SELECT - - 61 / - CAST( NULL AS SIGNED ) + - 82 + - COUNT( * ) - - CAST( - 57 AS SIGNED ) * COALESCE ( AVG ( - + 94 ), + 64 ) / + 29 + - + 83 / + MIN( ALL - 87 + - 35 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6351
SELECT - - 61 / - CAST ( NULL AS INTEGER ) + - 82 + - COUNT ( * ) - - CAST ( - 57 AS INTEGER ) * COALESCE ( AVG ( - + 94 ), + 64 ) / + 29 + - + 83 / + MIN ( ALL - 87 + - 35 ) AS col1
----
NULL

query III rowsort
SELECT + ( - 75 ) AS col2, 22 - 90 * - 79 col2, + + 75
----
-75
7132
75

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

skipif mysql # not compatible
query I rowsort label-6353
SELECT DISTINCT - - COUNT ( * ) + - 77 AS col2
----
-76

query I rowsort
SELECT + - 22 - + 20 * + 42 AS col1
----
-862

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6355
SELECT DISTINCT - 67 - - 85, + COUNT( * ) + + 62 DIV + 35 + - MAX( + 21 ) + + 13 * + + 62 + 86 AS col1
----
18
873

skipif mysql # not compatible
query II rowsort label-6355
SELECT DISTINCT - 67 - - 85, + COUNT ( * ) + + 62 / + 35 + - MAX ( + 21 ) + + 13 * + + 62 + 86 AS col1
----
18
873

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6358
SELECT ALL 50 * + SUM( 36 ) * + + COUNT( * )
----
1800

skipif mysql # not compatible
query I rowsort label-6358
SELECT ALL 50 * + SUM ( 36 ) * + + COUNT ( * )
----
1800

query I rowsort
SELECT ALL 89 * + - 4
----
-356

onlyif mysql # aggregate syntax: 
query I rowsort label-6360
SELECT - - 60 + - 54 + + + COUNT( * ) AS col2
----
7

skipif mysql # not compatible
query I rowsort label-6360
SELECT - - 60 + - 54 + + + COUNT ( * ) AS col2
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-6361
SELECT + - 54 - - COUNT( * ) - - NULLIF ( + 14, - 78 + 45 )
----
-39

skipif mysql # not compatible
query I rowsort label-6361
SELECT + - 54 - - COUNT ( * ) - - NULLIF ( + 14, - 78 + 45 )
----
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-6362
SELECT ALL - 74 - + + NULLIF ( - 31, 57 + - + SUM( 31 ) ) AS col1
----
-43

skipif mysql # not compatible
query I rowsort label-6362
SELECT ALL - 74 - + + NULLIF ( - 31, 57 + - + SUM ( 31 ) ) AS col1
----
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-6363
SELECT ALL - 15 * - - COALESCE ( 3, - - COUNT( * ) )
----
-45

skipif mysql # not compatible
query I rowsort label-6363
SELECT ALL - 15 * - - COALESCE ( 3, - - COUNT ( * ) )
----
-45

query I rowsort
SELECT + - 10 + + 81 * ( + 0 ) AS col0
----
-10

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6366
SELECT 68 AS col1, 79 * + 55 * COUNT( * ) col2
----
68
4345

skipif mysql # not compatible
query II rowsort label-6366
SELECT 68 AS col1, 79 * + 55 * COUNT ( * ) col2
----
68
4345

query I rowsort
SELECT DISTINCT 66 * - 27
----
-1782

onlyif mysql # aggregate syntax: 
query I rowsort label-6368
SELECT + 71 + + NULLIF ( - + COUNT( * ), + 11 )
----
70

skipif mysql # not compatible
query I rowsort label-6368
SELECT + 71 + + NULLIF ( - + COUNT ( * ), + 11 )
----
70

query I rowsort
SELECT + 88 * + + 73
----
6424

query I rowsort
SELECT + 47 + - + 81 + 19 AS col1
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-6371
SELECT ( + - 61 ) * + 26 + - SUM( + 87 ) AS col1
----
-1673

skipif mysql # not compatible
query I rowsort label-6371
SELECT ( + - 61 ) * + 26 + - SUM ( + 87 ) AS col1
----
-1673

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6374
SELECT 68 * + - COUNT( * ) + 5 * - - 83 AS col2
----
347

skipif mysql # not compatible
query I rowsort label-6374
SELECT 68 * + - COUNT ( * ) + 5 * - - 83 AS col2
----
347

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

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

query I rowsort
SELECT + 87 * + 18 AS col2
----
1566

query I rowsort
SELECT + 5 + + 50
----
55

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6380
SELECT ALL COUNT( * ) * - 2 + + - MIN( DISTINCT - 49 ) * + + 59
----
2889

skipif mysql # not compatible
query I rowsort label-6380
SELECT ALL COUNT ( * ) * - 2 + + - MIN ( DISTINCT - 49 ) * + + 59
----
2889

query II rowsort
SELECT - 17 * 59 + - 77 AS col0, 19 AS col2
----
-1080
19

query I rowsort
SELECT ALL + 38 * - + 38 + 21 AS col0
----
-1423

query I rowsort
SELECT DISTINCT 46 * 40 AS col2
----
1840

onlyif mysql # aggregate syntax: 
query I rowsort label-6384
SELECT DISTINCT - COUNT( - + 38 ) * + 83 + - CASE - COUNT( + 12 ) WHEN - 14 THEN + CASE 54 WHEN + COALESCE ( - 15, + + 61 ) * - CASE 26 WHEN 37 + 82 THEN NULL ELSE 96 / - 53 END THEN NULL WHEN NULLIF ( 24, 79 + 92 ) - - 7 THEN - 72 END END + - 32
----
NULL

skipif mysql # not compatible
query I rowsort label-6384
SELECT DISTINCT - COUNT ( - + 38 ) * + 83 + - CASE - COUNT ( + 12 ) WHEN - 14 THEN + CASE 54 WHEN + COALESCE ( - 15, + + 61 ) * - CASE 26 WHEN 37 + 82 THEN NULL ELSE 96 / - 53 END THEN NULL WHEN NULLIF ( 24, 79 + 92 ) - - 7 THEN - 72 END END + - 32
----
NULL

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6386
SELECT ALL + + 44 col2, 83 / + 37 * - CAST( NULL AS SIGNED ) * + + ( + 23 ) * + ( + + 52 ) + - 81 * + 8 + - 13
----
44
NULL

skipif mysql # not compatible
query II rowsort label-6386
SELECT ALL + + 44 col2, 83 / + 37 * - CAST ( NULL AS INTEGER ) * + + ( + 23 ) * + ( + + 52 ) + - 81 * + 8 + - 13
----
44
NULL

query I rowsort
SELECT DISTINCT + + 42 * 58 + 17 - + + 10
----
2443

query I rowsort
SELECT + + 90 + + + 87
----
177

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6389
SELECT + - 32 * + COALESCE ( - - 7, + + MAX( + 53 ), + 98 * 23 - CAST( NULL AS SIGNED ) ) * - 74 * 37 + 14 - - - NULLIF ( + - 71, 61 ) col0
----
613397

skipif mysql # not compatible
query I rowsort label-6389
SELECT + - 32 * + COALESCE ( - - 7, + + MAX ( + 53 ), + 98 * 23 - CAST ( NULL AS INTEGER ) ) * - 74 * 37 + 14 - - - NULLIF ( + - 71, 61 ) col0
----
613397

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

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

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

skipif mysql # not compatible
query II rowsort label-6391
SELECT DISTINCT + + 28 AS col2, 90 + - - 28 / - ( + CAST ( NULL AS INTEGER ) ) + + 97
----
28
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6392
SELECT ALL ( - 20 ) * 25 - + COUNT( * ) DIV + 37 * - - 13
----
-500

skipif mysql # not compatible
query I rowsort label-6392
SELECT ALL ( - 20 ) * 25 - + COUNT ( * ) / + 37 * - - 13
----
-500

query I rowsort
SELECT - 68 * - + 18 AS col0
----
1224

onlyif mysql # DIV for integer division: 
query I rowsort label-6394
SELECT ALL - 60 DIV + 47 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-6394
SELECT ALL - 60 / + 47 AS col2
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6395
SELECT - 81 * - + CASE - COUNT( * ) WHEN + 59 THEN NULL ELSE - CAST( - COUNT( * ) AS SIGNED ) - - 79 + + + 41 - - 99 END - - COUNT( * ) AS col1
----
17821

skipif mysql # not compatible
query I rowsort label-6395
SELECT - 81 * - + CASE - COUNT ( * ) WHEN + 59 THEN NULL ELSE - CAST ( - COUNT ( * ) AS INTEGER ) - - 79 + + + 41 - - 99 END - - COUNT ( * ) AS col1
----
17821

query I rowsort
SELECT ALL - 56 AS col1
----
-56

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6398
SELECT ALL + - ( + CASE + 90 WHEN - SUM( ALL + 94 ) * + 70 * - 54 - 53 THEN NULL WHEN 17 THEN NULL ELSE 24 + + 16 END ) * + 64 AS col0
----
-2560

skipif mysql # not compatible
query I rowsort label-6398
SELECT ALL + - ( + CASE + 90 WHEN - SUM ( ALL + 94 ) * + 70 * - 54 - 53 THEN NULL WHEN 17 THEN NULL ELSE 24 + + 16 END ) * + 64 AS col0
----
-2560

query I rowsort
SELECT - - COALESCE ( 27, - 84 ) - + 89
----
-62

query I rowsort
SELECT + 19 * + 31 + + 52 + - 96
----
545

query I rowsort
SELECT - ( - - 80 )
----
-80

query I rowsort
SELECT + 40 + - 14
----
26

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

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

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

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

query I rowsort
SELECT DISTINCT 48 * 32 AS col1
----
1536

query I rowsort
SELECT DISTINCT 12 + - 44
----
-32

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6409
SELECT ALL COUNT( * ) * 47
----
47

skipif mysql # not compatible
query I rowsort label-6409
SELECT ALL COUNT ( * ) * 47
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-6410
SELECT DISTINCT COUNT( DISTINCT 92 ) + + 95 * 0
----
1

skipif mysql # not compatible
query I rowsort label-6410
SELECT DISTINCT COUNT ( DISTINCT 92 ) + + 95 * 0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6411
SELECT ALL CASE AVG ( + - 35 ) WHEN + - ( + MIN( - - 0 ) ) + - ( - 60 ) THEN NULL WHEN 20 THEN - - COUNT( * ) END + - 10 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6411
SELECT ALL CASE AVG ( + - 35 ) WHEN + - ( + MIN ( - - 0 ) ) + - ( - 60 ) THEN NULL WHEN 20 THEN - - COUNT ( * ) END + - 10 AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6412
SELECT ALL COUNT( * ) * 94 DIV + 29
----
3

skipif mysql # not compatible
query I rowsort label-6412
SELECT ALL COUNT ( * ) * 94 / + 29
----
3

query I rowsort
SELECT DISTINCT 34 + + - 13
----
21

query I rowsort
SELECT ( + 40 ) * 36
----
1440

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

skipif mysql # not compatible
query I rowsort label-6415
SELECT ALL 40 + - COUNT ( * ) AS col1
----
39

query I rowsort
SELECT 31 + - 53 * + 26 col2
----
-1347

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6417
SELECT NULLIF ( + - 68, 64 * + + COUNT( * ) * COUNT( * ) ) + 18 + - 1 + + + COUNT( DISTINCT + 2 ) DIV + 16 * - 6 col2
----
-51

skipif mysql # not compatible
query I rowsort label-6417
SELECT NULLIF ( + - 68, 64 * + + COUNT ( * ) * COUNT ( * ) ) + 18 + - 1 + + + COUNT ( DISTINCT + 2 ) / + 16 * - 6 col2
----
-51

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6418
SELECT - MIN( DISTINCT - ( + + 74 ) ) DIV - + 41 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-6418
SELECT - MIN ( DISTINCT - ( + + 74 ) ) / - + 41 AS col0
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6419
SELECT ALL CAST( 92 AS SIGNED ) * - 35 + - ( + - 1 )
----
-3219

skipif mysql # not compatible
query I rowsort label-6419
SELECT ALL CAST ( 92 AS INTEGER ) * - 35 + - ( + - 1 )
----
-3219

onlyif mysql # aggregate syntax: 
query I rowsort label-6420
SELECT 2 * + + 56 - - ( - - ( + 89 ) ) * - + COUNT( * ) col1
----
23

skipif mysql # not compatible
query I rowsort label-6420
SELECT 2 * + + 56 - - ( - - ( + 89 ) ) * - + COUNT ( * ) col1
----
23

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6421
SELECT 89 * 55 + + 9 + - + SUM( ALL - 77 ) + CAST( NULL AS SIGNED ) / - - 76 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6421
SELECT 89 * 55 + + 9 + - + SUM ( ALL - 77 ) + CAST ( NULL AS INTEGER ) / - - 76 AS col0
----
NULL

query I rowsort
SELECT DISTINCT 26 * - 83
----
-2158

query I rowsort
SELECT ALL - CASE - ( - 70 ) WHEN NULLIF ( - 48, 45 ) THEN + + 41 END
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-6424
SELECT ALL + 98 * - + 31, 37 * + + CAST( NULL AS DECIMAL ) AS col2
----
-3038
NULL

skipif mysql # not compatible
query II rowsort label-6424
SELECT ALL + 98 * - + 31, 37 * + + CAST ( NULL AS REAL ) AS col2
----
-3038
NULL

query I rowsort
SELECT CASE 14 WHEN - 85 THEN + + 83 ELSE 99 END + - - 74 AS col1
----
173

query I rowsort
SELECT + 2 * - 11 + - 88 * + 68 + + 82 AS col0
----
-5924

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6427
SELECT 91 * CAST( + - 24 AS SIGNED ) + + COUNT( DISTINCT COALESCE ( - 20, 25 ) )
----
-2183

skipif mysql # not compatible
query I rowsort label-6427
SELECT 91 * CAST ( + - 24 AS INTEGER ) + + COUNT ( DISTINCT COALESCE ( - 20, 25 ) )
----
-2183

query I rowsort
SELECT ALL + 82 * - + 17
----
-1394

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6429
SELECT - NULLIF ( - 75, - CAST( 61 AS SIGNED ) * + + COUNT( * ) )
----
75

skipif mysql # not compatible
query I rowsort label-6429
SELECT - NULLIF ( - 75, - CAST ( 61 AS INTEGER ) * + + COUNT ( * ) )
----
75

query I rowsort
SELECT - - 30 AS col0
----
30

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6432
SELECT DISTINCT + + MAX( DISTINCT - + 70 ) + + 21 AS col0
----
-49

skipif mysql # not compatible
query I rowsort label-6432
SELECT DISTINCT + + MAX ( DISTINCT - + 70 ) + + 21 AS col0
----
-49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6433
SELECT DISTINCT - 31 * - - 96 / CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6433
SELECT DISTINCT - 31 * - - 96 / CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6434
SELECT 16 DIV - 11
----
-1

skipif mysql # not compatible
query I rowsort label-6434
SELECT 16 / - 11
----
-1

query II rowsort
SELECT 25 * 29 * + 84 AS col0, - 11 + + 4 + - + 84 AS col0
----
60900
-91

query I rowsort
SELECT 96 + 64
----
160

query I rowsort
SELECT DISTINCT - NULLIF ( + 90, + + COALESCE ( 79, + + 0 ) + - - 18 ) * - 94 AS col0
----
8460

query I rowsort
SELECT ALL + 77 + 49 AS col2
----
126

onlyif mysql # aggregate syntax: 
query II rowsort label-6439
SELECT 6 + + COALESCE ( - 35, 53 * 75, - + 80 + + 98 ) + - 8 - + - ( - 84 ) AS col0, + COUNT( * )
----
-121
1

skipif mysql # not compatible
query II rowsort label-6439
SELECT 6 + + COALESCE ( - 35, 53 * 75, - + 80 + + 98 ) + - 8 - + - ( - 84 ) AS col0, + COUNT ( * )
----
-121
1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6440
SELECT NULLIF ( - - 54, - 96 + - 24 / 77 + + CAST( + 8 AS SIGNED ) * + - 21 + - 79 ) * + + 25, - 92 AS col0
----
1350
-92

skipif mysql # not compatible
query II rowsort label-6440
SELECT NULLIF ( - - 54, - 96 + - 24 / 77 + + CAST ( + 8 AS INTEGER ) * + - 21 + - 79 ) * + + 25, - 92 AS col0
----
1350
-92

query II rowsort
SELECT ALL 40 AS col0, 11
----
40
11

query I rowsort
SELECT 15 + 72 AS col1
----
87

query I rowsort
SELECT 51 * + 82
----
4182

query I rowsort
SELECT ALL - 4 + - 36 col1
----
-40

query I rowsort
SELECT 22 + - + 9 + 15 AS col2
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-6446
SELECT COUNT( * ) + + CASE + ( + NULLIF ( + COALESCE ( - 18, - 76 + + ( - 36 ) ), + + 69 + + - ( - + 29 ) ) ) WHEN 35 THEN - 33 + - 74 END
----
NULL

skipif mysql # not compatible
query I rowsort label-6446
SELECT COUNT ( * ) + + CASE + ( + NULLIF ( + COALESCE ( - 18, - 76 + + ( - 36 ) ), + + 69 + + - ( - + 29 ) ) ) WHEN 35 THEN - 33 + - 74 END
----
NULL

query I rowsort
SELECT ALL 93 * + 17
----
1581

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6451
SELECT MIN( 84 ) + + 6 AS col0, 68 + - 86 + COUNT( * ) * 1 AS col2
----
90
-17

skipif mysql # not compatible
query II rowsort label-6451
SELECT MIN ( 84 ) + + 6 AS col0, 68 + - 86 + COUNT ( * ) * 1 AS col2
----
90
-17

query I rowsort
SELECT ALL 57 * - 59
----
-3363

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6453
SELECT 42 * CAST( 34 AS SIGNED ) * + 78 + - 30 + - ( + 20 ) AS col1
----
111334

skipif mysql # not compatible
query I rowsort label-6453
SELECT 42 * CAST ( 34 AS INTEGER ) * + 78 + - 30 + - ( + 20 ) AS col1
----
111334

onlyif mysql # aggregate syntax: 
query I rowsort label-6454
SELECT DISTINCT NULLIF ( 44, - + ( COUNT( * ) ) * - 69 - - + 1 + - AVG ( ALL + - 89 ) * 55 / + 46 - 62 * - MAX( 20 ) + 49 + ( + 96 ) * + 7 ) * MAX( DISTINCT - 58 * - 69 ) AS col2
----
176088

skipif mysql # not compatible
query I rowsort label-6454
SELECT DISTINCT NULLIF ( 44, - + ( COUNT ( * ) ) * - 69 - - + 1 + - AVG ( ALL + - 89 ) * 55 / + 46 - 62 * - MAX ( 20 ) + 49 + ( + 96 ) * + 7 ) * MAX ( DISTINCT - 58 * - 69 ) AS col2
----
176088

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6456
SELECT ALL 48 * - + ( - + COUNT( * ) ) - 19 * + 64, - 28 AS col0
----
-1168
-28

skipif mysql # not compatible
query II rowsort label-6456
SELECT ALL 48 * - + ( - + COUNT ( * ) ) - 19 * + 64, - 28 AS col0
----
-1168
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-6457
SELECT CASE - 47 WHEN - 42 THEN - 28 + - CASE 10 WHEN + ( - 49 ) + + 76 THEN + 11 / + 8 + - COUNT( * ) END WHEN + 88 THEN NULL ELSE + 48 END * CASE - MIN( DISTINCT 29 ) WHEN + 11 + + 28 * + 45 THEN COUNT( * ) + 99 WHEN 73 THEN NULL ELSE NULL END + 28 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6457
SELECT CASE - 47 WHEN - 42 THEN - 28 + - CASE 10 WHEN + ( - 49 ) + + 76 THEN + 11 / + 8 + - COUNT ( * ) END WHEN + 88 THEN NULL ELSE + 48 END * CASE - MIN ( DISTINCT 29 ) WHEN + 11 + + 28 * + 45 THEN COUNT ( * ) + 99 WHEN 73 THEN NULL ELSE NULL END + 28 AS col2
----
NULL

query I rowsort
SELECT ALL + 93 * 4
----
372

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

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

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

query I rowsort
SELECT - 59 * + 81 * 46
----
-219834

query I rowsort
SELECT 83 * 79 * + 7 + + + CASE + 32 WHEN + 88 + + 20 THEN + + 90 END AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6463
SELECT ALL 56 DIV + COALESCE ( - + 10, - 68, 38 DIV - NULLIF ( 3, + NULLIF ( - CAST( NULL AS SIGNED ), + 65 + + + 61 * - CAST( NULL AS SIGNED ) + + NULLIF ( - 63, 67 DIV 16 + 83 ) ) ) ) + COALESCE ( + 32, 30 + + 93 ) AS col2
----
27

skipif mysql # not compatible
query I rowsort label-6463
SELECT ALL 56 / + COALESCE ( - + 10, - 68, 38 / - NULLIF ( 3, + NULLIF ( - CAST ( NULL AS INTEGER ), + 65 + + + 61 * - CAST ( NULL AS INTEGER ) + + NULLIF ( - 63, 67 / 16 + 83 ) ) ) ) + COALESCE ( + 32, 30 + + 93 ) AS col2
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-6464
SELECT - COUNT( * ) + - - 26 * - 66
----
-1717

skipif mysql # not compatible
query I rowsort label-6464
SELECT - COUNT ( * ) + - - 26 * - 66
----
-1717

query I rowsort
SELECT - 0 + + + 35 AS col1
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-6466
SELECT 6 * - 68 + - 70 + 65 + 59 - + + SUM( 88 ) * + + MAX( ALL - 16 ) AS col2
----
1054

skipif mysql # not compatible
query I rowsort label-6466
SELECT 6 * - 68 + - 70 + 65 + 59 - + + SUM ( 88 ) * + + MAX ( ALL - 16 ) AS col2
----
1054

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6467
SELECT ALL - CAST( - - 85 AS SIGNED ) * + 23 + - COUNT( * )
----
-1956

skipif mysql # not compatible
query I rowsort label-6467
SELECT ALL - CAST ( - - 85 AS INTEGER ) * + 23 + - COUNT ( * )
----
-1956

onlyif mysql # aggregate syntax: 
query I rowsort label-6468
SELECT + 47 * 26 * ( - 55 ) * - COUNT( * ) * + SUM( + 82 ) + - 72 AS col0
----
5511148

skipif mysql # not compatible
query I rowsort label-6468
SELECT + 47 * 26 * ( - 55 ) * - COUNT ( * ) * + SUM ( + 82 ) + - 72 AS col0
----
5511148

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6470
SELECT ALL + 37 * + + 80 * 59 DIV + NULLIF ( + - 5, - 29 )
----
-34928

skipif mysql # not compatible
query I rowsort label-6470
SELECT ALL + 37 * + + 80 * 59 / + NULLIF ( + - 5, - 29 )
----
-34928

query I rowsort
SELECT + 75 + - 20
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-6472
SELECT ALL COUNT( * ) + 45
----
46

skipif mysql # not compatible
query I rowsort label-6472
SELECT ALL COUNT ( * ) + 45
----
46

query I rowsort
SELECT + ( + 75 ) + - 6 * 61
----
-291

query I rowsort
SELECT ALL 58 + + 87 AS col0
----
145

onlyif mysql # aggregate syntax: 
query I rowsort label-6475
SELECT ALL COUNT( * ) + + ( 18 )
----
19

skipif mysql # not compatible
query I rowsort label-6475
SELECT ALL COUNT ( * ) + + ( 18 )
----
19

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6476
SELECT + CAST( + 11 AS SIGNED ) * + 69 col0
----
759

skipif mysql # not compatible
query I rowsort label-6476
SELECT + CAST ( + 11 AS INTEGER ) * + 69 col0
----
759

query I rowsort
SELECT - 65 + + 0 AS col1
----
-65

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-6478
SELECT DISTINCT + ( 96 ) + - - MIN( ALL - 91 ) AS col1, + 51 * + 25 * - CAST( NULL AS DECIMAL ) * - - CASE - 18 WHEN 45 THEN - - 86 END - - + 37 + - + 66 + - COUNT( * ) AS col0
----
5
NULL

skipif mysql # not compatible
query II rowsort label-6478
SELECT DISTINCT + ( 96 ) + - - MIN ( ALL - 91 ) AS col1, + 51 * + 25 * - CAST ( NULL AS REAL ) * - - CASE - 18 WHEN 45 THEN - - 86 END - - + 37 + - + 66 + - COUNT ( * ) AS col0
----
5
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6479
SELECT - COUNT( * ) * 37
----
-37

skipif mysql # not compatible
query I rowsort label-6479
SELECT - COUNT ( * ) * 37
----
-37

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-6480
SELECT - CASE - CAST( + 19 AS DECIMAL ) WHEN + ( 79 ) THEN + 19 ELSE NULL END, 15 AS col0
----
NULL
15

skipif mysql # not compatible
query II rowsort label-6480
SELECT - CASE - CAST ( + 19 AS REAL ) WHEN + ( 79 ) THEN + 19 ELSE NULL END, 15 AS col0
----
NULL
15

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query III rowsort label-6481
SELECT - NULLIF ( + 25, + 84 ) + + + COUNT( DISTINCT 33 ) + + - 18 * - 83 * - + NULLIF ( + - 30, + + 39 ) + - 91 col0, - CAST( NULL AS SIGNED ) AS col2, 19 + + 82 + 91 AS col1
----
44705
NULL
192

skipif mysql # not compatible
query III rowsort label-6481
SELECT - NULLIF ( + 25, + 84 ) + + + COUNT ( DISTINCT 33 ) + + - 18 * - 83 * - + NULLIF ( + - 30, + + 39 ) + - 91 col0, - CAST ( NULL AS INTEGER ) AS col2, 19 + + 82 + 91 AS col1
----
44705
NULL
192

query I rowsort
SELECT ALL + 73 + 42 * - 62 + - 68 AS col1
----
-2599

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6483
SELECT ALL CAST( - 14 AS SIGNED ) + - 98 + - 74 + + 31
----
-155

skipif mysql # not compatible
query I rowsort label-6483
SELECT ALL CAST ( - 14 AS INTEGER ) + - 98 + - 74 + + 31
----
-155

onlyif mysql # aggregate syntax: 
query II rowsort label-6484
SELECT - 51 AS col0, - 23 * - + COUNT( * )
----
-51
23

skipif mysql # not compatible
query II rowsort label-6484
SELECT - 51 AS col0, - 23 * - + COUNT ( * )
----
-51
23

onlyif mysql # aggregate syntax: 
query I rowsort label-6485
SELECT ALL + NULLIF ( ( + COUNT( * ) ), + 5 ) - - 39
----
40

skipif mysql # not compatible
query I rowsort label-6485
SELECT ALL + NULLIF ( ( + COUNT ( * ) ), + 5 ) - - 39
----
40

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6486
SELECT + 70 - + + 14 + - + COUNT( * ) DIV + - 67 col1, - MAX( DISTINCT - 91 ) * + COALESCE ( - 69, 43 * 95 * 73 * + - 70, 77 )
----
56
-6279

skipif mysql # not compatible
query II rowsort label-6486
SELECT + 70 - + + 14 + - + COUNT ( * ) / + - 67 col1, - MAX ( DISTINCT - 91 ) * + COALESCE ( - 69, 43 * 95 * 73 * + - 70, 77 )
----
56
-6279

query II rowsort
SELECT 26 AS col1, + 12 + + + 65
----
26
77

onlyif mysql # aggregate syntax: 
query I rowsort label-6488
SELECT DISTINCT COUNT( ALL - 41 ) col1
----
1

skipif mysql # not compatible
query I rowsort label-6488
SELECT DISTINCT COUNT ( ALL - 41 ) col1
----
1

onlyif mysql # DIV for integer division: 
query II rowsort label-6489
SELECT + 46 DIV - 3 AS col1, 32 AS col2
----
-15
32

skipif mysql # not compatible
query II rowsort label-6489
SELECT + 46 / - 3 AS col1, 32 AS col2
----
-15
32

onlyif mysql # aggregate syntax: 
query I rowsort label-6490
SELECT ALL NULLIF ( 3, 97 * - COALESCE ( 22, 37 * - 10 + - ( + 88 ) - + - ( COUNT( * ) ) ) )
----
3

skipif mysql # not compatible
query I rowsort label-6490
SELECT ALL NULLIF ( 3, 97 * - COALESCE ( 22, 37 * - 10 + - ( + 88 ) - + - ( COUNT ( * ) ) ) )
----
3

query I rowsort
SELECT ALL + 83 * ( - 5 )
----
-415

onlyif mysql # aggregate syntax: 
query I rowsort label-6492
SELECT - 98 * - - 30 * + + COUNT( * ) AS col2
----
-2940

skipif mysql # not compatible
query I rowsort label-6492
SELECT - 98 * - - 30 * + + COUNT ( * ) AS col2
----
-2940

query I rowsort
SELECT ALL NULLIF ( 52, + 15 - + 37 ) AS col0
----
52

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

query I rowsort
SELECT + - 43 / + 12 / + + CASE + - 62 WHEN 10 + - 1 THEN + 83 WHEN 2 THEN NULL END - + + 35 / + 61 col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6496
SELECT ALL + + COUNT( 34 ) AS col1, 67 * - COUNT( * )
----
1
-67

skipif mysql # not compatible
query II rowsort label-6496
SELECT ALL + + COUNT ( 34 ) AS col1, 67 * - COUNT ( * )
----
1
-67

query I rowsort
SELECT DISTINCT + + 83 AS col2
----
83

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6498
SELECT + + 14 / 18 * + CAST( NULL AS SIGNED ) + + ( COUNT( * ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6498
SELECT + + 14 / 18 * + CAST ( NULL AS INTEGER ) + + ( COUNT ( * ) ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6499
SELECT + COUNT( - 90 ) * SUM( 98 ) - - + 50 AS col1
----
148

skipif mysql # not compatible
query I rowsort label-6499
SELECT + COUNT ( - 90 ) * SUM ( 98 ) - - + 50 AS col1
----
148

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

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6502
SELECT DISTINCT + 48 * + COUNT( ALL 7 ) DIV - 53 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-6502
SELECT DISTINCT + 48 * + COUNT ( ALL 7 ) / - 53 AS col2
----
0

query II rowsort
SELECT 53, + 1 AS col1
----
53
1

onlyif mysql # DIV for integer division: 
query I rowsort label-6504
SELECT - + 26 DIV - 83 DIV - 1
----
0

skipif mysql # not compatible
query I rowsort label-6504
SELECT - + 26 / - 83 / - 1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6505
SELECT + + 21 * - 18 * + 49 + - CASE + COUNT( * ) WHEN ( + COALESCE ( 65, - SUM( + 67 ) * - 1 + + + COUNT( * ) ) ) THEN NULL WHEN - + 94 - - COUNT( * ) THEN - 84 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6505
SELECT + + 21 * - 18 * + 49 + - CASE + COUNT ( * ) WHEN ( + COALESCE ( 65, - SUM ( + 67 ) * - 1 + + + COUNT ( * ) ) ) THEN NULL WHEN - + 94 - - COUNT ( * ) THEN - 84 END AS col1
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6508
SELECT DISTINCT 12 * - 41 * + - 76 * + MAX( - 1 ) + - MIN( ALL + 91 ) + 21 + - 0 + - 23 + 67 + + - ( + 10 ) + 10 * - 12 + + - 74 + - 42
----
-37664

skipif mysql # not compatible
query I rowsort label-6508
SELECT DISTINCT 12 * - 41 * + - 76 * + MAX ( - 1 ) + - MIN ( ALL + 91 ) + 21 + - 0 + - 23 + 67 + + - ( + 10 ) + 10 * - 12 + + - 74 + - 42
----
-37664

query II rowsort
SELECT ALL - COALESCE ( - - 62, + + 65, - 47 ) * - + 69 + + 74, + 17 AS col0
----
4352
17

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6510
SELECT DISTINCT + CAST( NULL AS SIGNED ) AS col1, 21 AS col1
----
NULL
21

skipif mysql # not compatible
query II rowsort label-6510
SELECT DISTINCT + CAST ( NULL AS INTEGER ) AS col1, 21 AS col1
----
NULL
21

query II rowsort
SELECT ALL + + 56, 37 AS col1
----
56
37

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

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

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

query I rowsort
SELECT DISTINCT - 89 * 56 + - 63 * - - 2
----
-5110

onlyif mysql # aggregate syntax: 
query I rowsort label-6515
SELECT ALL - 39 * + - 0 + MAX( DISTINCT + 64 ) col0
----
64

skipif mysql # not compatible
query I rowsort label-6515
SELECT ALL - 39 * + - 0 + MAX ( DISTINCT + 64 ) col0
----
64

query I rowsort
SELECT - ( - 13 ) col1
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-6517
SELECT DISTINCT ( - + COUNT( * ) ) * - 15
----
15

skipif mysql # not compatible
query I rowsort label-6517
SELECT DISTINCT ( - + COUNT ( * ) ) * - 15
----
15

query I rowsort
SELECT DISTINCT + 59 - 0 + 64 * - 68
----
-4293

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6519
SELECT ALL CAST( NULL AS SIGNED ) * + 66, - 33 + 14 AS col2
----
NULL
-19

skipif mysql # not compatible
query II rowsort label-6519
SELECT ALL CAST ( NULL AS INTEGER ) * + 66, - 33 + 14 AS col2
----
NULL
-19

query I rowsort
SELECT DISTINCT NULLIF ( + 66, + 46 ) AS col0
----
66

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6521
SELECT + 70 + + CASE - COUNT( * ) WHEN ( - 7 ) * 95 + + - 26 THEN - 61 + - CASE 12 WHEN - COUNT( * ) THEN ( + CAST( NULL AS SIGNED ) ) + 77 WHEN + - 82 THEN - - 93 / - 43 / - 37 + + 70 WHEN 1 THEN + AVG ( 39 ) + 23 END + + 28 * - MAX( - NULLIF ( - 33, 98 * 23 ) ) ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6521
SELECT + 70 + + CASE - COUNT ( * ) WHEN ( - 7 ) * 95 + + - 26 THEN - 61 + - CASE 12 WHEN - COUNT ( * ) THEN ( + CAST ( NULL AS INTEGER ) ) + 77 WHEN + - 82 THEN - - 93 / - 43 / - 37 + + 70 WHEN 1 THEN + AVG ( 39 ) + 23 END + + 28 * - MAX ( - NULLIF ( - 33, 98 * 23 ) ) ELSE NULL END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6522
SELECT - NULLIF ( + 39, + + 46 + COALESCE ( + + COUNT( * ), + 43 ) )
----
-39

skipif mysql # not compatible
query I rowsort label-6522
SELECT - NULLIF ( + 39, + + 46 + COALESCE ( + + COUNT ( * ), + 43 ) )
----
-39

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

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

query II rowsort
SELECT + 46 + - 55 + + + NULLIF ( - 24, - 51 / - - 65 ) * + + 19 AS col1, - 84 AS col1
----
-465
-84

query I rowsort
SELECT - 11 * - + 76 AS col2
----
836

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6526
SELECT ALL 34 - CAST( NULL AS SIGNED ) * + 24 col2, 94 + + 21 AS col0
----
NULL
115

skipif mysql # not compatible
query II rowsort label-6526
SELECT ALL 34 - CAST ( NULL AS INTEGER ) * + 24 col2, 94 + + 21 AS col0
----
NULL
115

onlyif mysql # aggregate syntax: 
query I rowsort label-6527
SELECT + 40 * COALESCE ( + 4, - CASE + 59 WHEN + 19 THEN - - COUNT( * ) ELSE NULL END * 64 ) * - 56 AS col2
----
-8960

skipif mysql # not compatible
query I rowsort label-6527
SELECT + 40 * COALESCE ( + 4, - CASE + 59 WHEN + 19 THEN - - COUNT ( * ) ELSE NULL END * 64 ) * - 56 AS col2
----
-8960

onlyif mysql # aggregate syntax: 
query I rowsort label-6528
SELECT + MIN( DISTINCT + - 42 ) + - + 32
----
-74

skipif mysql # not compatible
query I rowsort label-6528
SELECT + MIN ( DISTINCT + - 42 ) + - + 32
----
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-6529
SELECT DISTINCT COUNT( 3 )
----
1

skipif mysql # not compatible
query I rowsort label-6529
SELECT DISTINCT COUNT ( 3 )
----
1

query II rowsort
SELECT ALL - 6 * + 57 AS col2, 12 AS col2
----
-342
12

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6531
SELECT DISTINCT 93 DIV - NULLIF ( 61, 11 DIV 86 ) * COUNT( * )
----
-1

skipif mysql # not compatible
query I rowsort label-6531
SELECT DISTINCT 93 / - NULLIF ( 61, 11 / 86 ) * COUNT ( * )
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-6532
SELECT - 32 + + + COUNT( * ), 23 AS col1
----
-31
23

skipif mysql # not compatible
query II rowsort label-6532
SELECT - 32 + + + COUNT ( * ), 23 AS col1
----
-31
23

onlyif mysql # aggregate syntax: 
query I rowsort label-6533
SELECT + CASE 44 WHEN + + SUM( DISTINCT + + 49 ) THEN + 84 WHEN 36 * - 10 * AVG ( - 88 ) - SUM( 63 ) THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-6533
SELECT + CASE 44 WHEN + + SUM ( DISTINCT + + 49 ) THEN + 84 WHEN 36 * - 10 * AVG ( - 88 ) - SUM ( 63 ) THEN NULL END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6534
SELECT - - ( + 91 ) AS col2, - CAST( + - COALESCE ( - 83, + 64 ) AS SIGNED ) AS col2
----
91
-83

skipif mysql # not compatible
query II rowsort label-6534
SELECT - - ( + 91 ) AS col2, - CAST ( + - COALESCE ( - 83, + 64 ) AS INTEGER ) AS col2
----
91
-83

onlyif mysql # DIV for integer division: 
query I rowsort label-6535
SELECT ALL - 11 * - + 61 DIV 20
----
33

skipif mysql # not compatible
query I rowsort label-6535
SELECT ALL - 11 * - + 61 / 20
----
33

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6536
SELECT ALL 2 DIV + COUNT( * ) + - 21 + + 62
----
43

skipif mysql # not compatible
query I rowsort label-6536
SELECT ALL 2 / + COUNT ( * ) + - 21 + + 62
----
43

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6537
SELECT ALL + + 21 DIV - NULLIF ( 86, CAST( - COALESCE ( + 47, - + 52, + 2 * - 48 ) AS SIGNED ) * MIN( + - ( + - 77 ) ) ) + - 52 AS col1
----
-52

skipif mysql # not compatible
query I rowsort label-6537
SELECT ALL + + 21 / - NULLIF ( 86, CAST ( - COALESCE ( + 47, - + 52, + 2 * - 48 ) AS INTEGER ) * MIN ( + - ( + - 77 ) ) ) + - 52 AS col1
----
-52

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6538
SELECT DISTINCT - + 39 DIV + + 21 + + + COUNT( * ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-6538
SELECT DISTINCT - + 39 / + + 21 + + + COUNT ( * ) AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6539
SELECT ALL + + MIN( DISTINCT - 24 ) + - + COALESCE ( - 26, + - 39 + + 47 * - ( - COUNT( * ) ) * - 54 ) AS col2
----
2

skipif mysql # not compatible
query I rowsort label-6539
SELECT ALL + + MIN ( DISTINCT - 24 ) + - + COALESCE ( - 26, + - 39 + + 47 * - ( - COUNT ( * ) ) * - 54 ) AS col2
----
2

query I rowsort
SELECT DISTINCT + 59 + - + ( + - 23 ) + 15 - 42 * - + ( + 11 )
----
559

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6541
SELECT ALL - - COUNT( * ) + - - CAST( - + 80 AS SIGNED )
----
-79

skipif mysql # not compatible
query I rowsort label-6541
SELECT ALL - - COUNT ( * ) + - - CAST ( - + 80 AS INTEGER )
----
-79

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6542
SELECT + - ( + + 28 ), + COUNT( * ) * CAST( + NULLIF ( - 42, - - 19 + COUNT( * ) ) AS SIGNED ) + + CASE - 24 WHEN + 76 THEN - - 84 * AVG ( + - 71 ) WHEN 30 * 91 + - 77 / + SUM( DISTINCT 97 / 79 ) THEN NULL END AS col2
----
-28
NULL

skipif mysql # not compatible
query II rowsort label-6542
SELECT + - ( + + 28 ), + COUNT ( * ) * CAST ( + NULLIF ( - 42, - - 19 + COUNT ( * ) ) AS INTEGER ) + + CASE - 24 WHEN + 76 THEN - - 84 * AVG ( + - 71 ) WHEN 30 * 91 + - 77 / + SUM ( DISTINCT 97 / 79 ) THEN NULL END AS col2
----
-28
NULL

query I rowsort
SELECT ALL - NULLIF ( - 84, - 85 ) AS col1
----
84

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6544
SELECT ( - - 32 ) + - CAST( + 87 AS SIGNED ) * - + 20 AS col1
----
1772

skipif mysql # not compatible
query I rowsort label-6544
SELECT ( - - 32 ) + - CAST ( + 87 AS INTEGER ) * - + 20 AS col1
----
1772

onlyif mysql # aggregate syntax: 
query I rowsort label-6545
SELECT + COALESCE ( - + NULLIF ( + + 89, - 8 + - ( + 68 ) * 28 ), - COUNT( * ) ) * + 93 AS col2
----
-8277

skipif mysql # not compatible
query I rowsort label-6545
SELECT + COALESCE ( - + NULLIF ( + + 89, - 8 + - ( + 68 ) * 28 ), - COUNT ( * ) ) * + 93 AS col2
----
-8277

query I rowsort
SELECT DISTINCT - COALESCE ( + 63, - + 69 ) + + + 13
----
-50

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6548
SELECT ALL 83 - - 44 * - COUNT( DISTINCT - 54 ) DIV CAST( 64 AS SIGNED )
----
83

skipif mysql # not compatible
query I rowsort label-6548
SELECT ALL 83 - - 44 * - COUNT ( DISTINCT - 54 ) / CAST ( 64 AS INTEGER )
----
83

query I rowsort
SELECT DISTINCT - ( + 32 ) col2
----
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-6550
SELECT DISTINCT - 73 - + - ( + + 97 ) * + COUNT( * ) col1
----
24

skipif mysql # not compatible
query I rowsort label-6550
SELECT DISTINCT - 73 - + - ( + + 97 ) * + COUNT ( * ) col1
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-6551
SELECT COALESCE ( 2, + COUNT( + 82 ) ) + - - ( 11 ) + - 37 AS col1
----
-24

skipif mysql # not compatible
query I rowsort label-6551
SELECT COALESCE ( 2, + COUNT ( + 82 ) ) + - - ( 11 ) + - 37 AS col1
----
-24

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6552
SELECT ALL - CAST( - 26 AS SIGNED ) AS col2
----
26

skipif mysql # not compatible
query I rowsort label-6552
SELECT ALL - CAST ( - 26 AS INTEGER ) AS col2
----
26

query II rowsort
SELECT 33 AS col1, + 97
----
33
97

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6554
SELECT DISTINCT CASE + 89 WHEN - + COUNT( * ) THEN NULL ELSE COUNT( * ) * + + COUNT( DISTINCT + - ( + + 6 ) ) END DIV - MAX( DISTINCT + 17 ) col1
----
0

skipif mysql # not compatible
query I rowsort label-6554
SELECT DISTINCT CASE + 89 WHEN - + COUNT ( * ) THEN NULL ELSE COUNT ( * ) * + + COUNT ( DISTINCT + - ( + + 6 ) ) END / - MAX ( DISTINCT + 17 ) col1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6555
SELECT AVG ( DISTINCT + 59 ) / - CAST( NULL AS SIGNED ) * AVG ( ALL 35 ) + - - 11 - + 21 + + ( + 36 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6555
SELECT AVG ( DISTINCT + 59 ) / - CAST ( NULL AS INTEGER ) * AVG ( ALL 35 ) + - - 11 - + 21 + + ( + 36 ) AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-6556
SELECT 40 * 63 DIV 82 AS col0, + 75 AS col2
----
30
75

skipif mysql # not compatible
query II rowsort label-6556
SELECT 40 * 63 / 82 AS col0, + 75 AS col2
----
30
75

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6557
SELECT SUM( ALL 88 ) DIV + + 6 AS col2
----
14

skipif mysql # not compatible
query I rowsort label-6557
SELECT SUM ( ALL 88 ) / + + 6 AS col2
----
14

query II rowsort
SELECT ALL 60, + 82 AS col1
----
60
82

query II rowsort
SELECT 76, + 89 + + 48 * - + NULLIF ( - 25, + + 40 ) AS col0
----
76
1289

query I rowsort
SELECT DISTINCT 81 * - 17 col0
----
-1377

onlyif mysql # aggregate syntax: 
query I rowsort label-6561
SELECT + COUNT( * ) * + 97 * - - 37 AS col1
----
3589

skipif mysql # not compatible
query I rowsort label-6561
SELECT + COUNT ( * ) * + 97 * - - 37 AS col1
----
3589

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6563
SELECT ALL COUNT( * ) + - + 8 + - + 21 + 4 * + + 34 * - 87 * 94 - + 79 + 0 * + 97 * + ( - MIN( - 10 ) ) * - - 13 * + 14 + + + 29 + - CASE - - 0 WHEN 33 THEN - COUNT( DISTINCT + 36 ) WHEN ( - 72 ) THEN - 0 / ( 61 * 29 ) ELSE NULL END + AVG ( ALL - 29 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6563
SELECT ALL COUNT ( * ) + - + 8 + - + 21 + 4 * + + 34 * - 87 * 94 - + 79 + 0 * + 97 * + ( - MIN ( - 10 ) ) * - - 13 * + 14 + + + 29 + - CASE - - 0 WHEN 33 THEN - COUNT ( DISTINCT + 36 ) WHEN ( - 72 ) THEN - 0 / ( 61 * 29 ) ELSE NULL END + AVG ( ALL - 29 ) AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6564
SELECT - 96 * 87 * + 73 + + CASE 30 WHEN + - ( - 37 ) THEN - + COUNT( * ) WHEN CAST( NULL AS SIGNED ) THEN + 50 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-6564
SELECT - 96 * 87 * + 73 + + CASE 30 WHEN + - ( - 37 ) THEN - + COUNT ( * ) WHEN CAST ( NULL AS INTEGER ) THEN + 50 ELSE NULL END
----
NULL

query II rowsort
SELECT DISTINCT - 30, ( - 52 ) AS col1
----
-30
-52

onlyif mysql # DIV for integer division: 
query I rowsort label-6566
SELECT DISTINCT - 99 DIV 1 AS col2
----
-99

skipif mysql # not compatible
query I rowsort label-6566
SELECT DISTINCT - 99 / 1 AS col2
----
-99

query I rowsort
SELECT ALL + + 74 + - + 33 AS col1
----
41

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6568
SELECT ALL - 66 + 6 + - + CAST( NULL AS DECIMAL ) * + 67 + ( - 62 ) / + 7 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6568
SELECT ALL - 66 + 6 + - + CAST ( NULL AS REAL ) * + 67 + ( - 62 ) / + 7 AS col2
----
NULL

query I rowsort
SELECT ALL - 55 + - 28
----
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-6570
SELECT ALL - 49 * + - 46 * - COUNT( * ) AS col1
----
-2254

skipif mysql # not compatible
query I rowsort label-6570
SELECT ALL - 49 * + - 46 * - COUNT ( * ) AS col1
----
-2254

query I rowsort
SELECT DISTINCT 11 * + NULLIF ( + + ( 63 ), + 53 ) AS col2
----
693

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6572
SELECT + ( COUNT( * ) ) DIV ( - - NULLIF ( 4, - ( 98 ) + 24 ) ) + 13 * + - 19 * 28
----
-6916

skipif mysql # not compatible
query I rowsort label-6572
SELECT + ( COUNT ( * ) ) / ( - - NULLIF ( 4, - ( 98 ) + 24 ) ) + 13 * + - 19 * 28
----
-6916

query II rowsort
SELECT ALL - 71, ( 43 ) AS col1
----
-71
43

query I rowsort
SELECT ALL + 5 + 3
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-6575
SELECT COUNT( * ) + + 3 AS col0
----
4

skipif mysql # not compatible
query I rowsort label-6575
SELECT COUNT ( * ) + + 3 AS col0
----
4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6576
SELECT + 98 * - + 64 + + COALESCE ( + - COUNT( * ), - CASE 6 WHEN - 7 * + + COUNT( * ) * - COALESCE ( - - 53, + CAST( + 11 AS SIGNED ), 32 DIV + COUNT( * ) * - - 30 ) * ( - 51 ) - 28 THEN - 77 DIV CASE + 56 * 60 WHEN - 43 THEN COUNT( * ) WHEN + AVG ( - 43 ) THEN NULL ELSE - 35 END END ) + 57 DIV + COUNT( * ) AS col0
----
-6216

skipif mysql # not compatible
query I rowsort label-6576
SELECT + 98 * - + 64 + + COALESCE ( + - COUNT ( * ), - CASE 6 WHEN - 7 * + + COUNT ( * ) * - COALESCE ( - - 53, + CAST ( + 11 AS INTEGER ), 32 / + COUNT ( * ) * - - 30 ) * ( - 51 ) - 28 THEN - 77 / CASE + 56 * 60 WHEN - 43 THEN COUNT ( * ) WHEN + AVG ( - 43 ) THEN NULL ELSE - 35 END END ) + 57 / + COUNT ( * ) AS col0
----
-6216

query I rowsort
SELECT 19 - - 12 AS col1
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-6578
SELECT DISTINCT - MIN( ALL + 5 )
----
-5

skipif mysql # not compatible
query I rowsort label-6578
SELECT DISTINCT - MIN ( ALL + 5 )
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-6579
SELECT ALL MIN( - 72 ) * - + MAX( - 95 ) * - CASE - COUNT( * ) WHEN - SUM( - 86 ) THEN NULL WHEN - - 90 THEN + 92 WHEN + 24 THEN + + 84 END
----
NULL

skipif mysql # not compatible
query I rowsort label-6579
SELECT ALL MIN ( - 72 ) * - + MAX ( - 95 ) * - CASE - COUNT ( * ) WHEN - SUM ( - 86 ) THEN NULL WHEN - - 90 THEN + 92 WHEN + 24 THEN + + 84 END
----
NULL

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-6581
SELECT ALL + 14 DIV - + 67 col0, - 77
----
0
-77

skipif mysql # not compatible
query II rowsort label-6581
SELECT ALL + 14 / - + 67 col0, - 77
----
0
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-6582
SELECT DISTINCT NULLIF ( + - 48, - + 43 + COUNT( * ) + + 19 * - + 67 / + + ( CASE - + NULLIF ( - + 34, COUNT( * ) * - 60 * + 84 * - 37 ) WHEN 56 THEN + 80 END ) * 21 + 63 + + 6 / 75 ) - - 52
----
4

skipif mysql # not compatible
query I rowsort label-6582
SELECT DISTINCT NULLIF ( + - 48, - + 43 + COUNT ( * ) + + 19 * - + 67 / + + ( CASE - + NULLIF ( - + 34, COUNT ( * ) * - 60 * + 84 * - 37 ) WHEN 56 THEN + 80 END ) * 21 + 63 + + 6 / 75 ) - - 52
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-6583
SELECT DISTINCT - ( - NULLIF ( - 67, - - COUNT( * ) ) ) AS col0
----
-67

skipif mysql # not compatible
query I rowsort label-6583
SELECT DISTINCT - ( - NULLIF ( - 67, - - COUNT ( * ) ) ) AS col0
----
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-6584
SELECT ALL + COUNT( * ) - - + 41 * + + 77 col2
----
3158

skipif mysql # not compatible
query I rowsort label-6584
SELECT ALL + COUNT ( * ) - - + 41 * + + 77 col2
----
3158

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6585
SELECT ALL - CASE - COUNT( * ) WHEN - 28 - 25 THEN 48 + + 40 - - ( + COUNT( + + 33 ) ) * + 59 WHEN + + COUNT( * ) + - 13 + + - CAST( NULL AS SIGNED ) - - - 99 + COUNT( * ) + 37 * - 37 THEN NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6585
SELECT ALL - CASE - COUNT ( * ) WHEN - 28 - 25 THEN 48 + + 40 - - ( + COUNT ( + + 33 ) ) * + 59 WHEN + + COUNT ( * ) + - 13 + + - CAST ( NULL AS INTEGER ) - - - 99 + COUNT ( * ) + 37 * - 37 THEN NULL END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6586
SELECT 25 * COUNT( * ) * - 78
----
-1950

skipif mysql # not compatible
query I rowsort label-6586
SELECT 25 * COUNT ( * ) * - 78
----
-1950

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6587
SELECT DISTINCT - 42 - + CAST( NULL AS SIGNED ) + + 82 + - NULLIF ( - 35, + 46 + + CAST( + + COUNT( * ) AS SIGNED ) ) * - - 93, + 52 * + 36 AS col0
----
NULL
1872

skipif mysql # not compatible
query II rowsort label-6587
SELECT DISTINCT - 42 - + CAST ( NULL AS INTEGER ) + + 82 + - NULLIF ( - 35, + 46 + + CAST ( + + COUNT ( * ) AS INTEGER ) ) * - - 93, + 52 * + 36 AS col0
----
NULL
1872

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

skipif mysql # not compatible
query I rowsort label-6588
SELECT 79 + - 99 * - - 55 / + ( - COUNT ( * ) ) AS col2
----
5524

query I rowsort
SELECT ALL - 24 * 78 AS col0
----
-1872

query I rowsort
SELECT 50 * + 36
----
1800

onlyif mysql # DIV for integer division: 
query II rowsort label-6591
SELECT ALL - 51 DIV - 32, - 50 AS col0
----
1
-50

skipif mysql # not compatible
query II rowsort label-6591
SELECT ALL - 51 / - 32, - 50 AS col0
----
1
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-6592
SELECT DISTINCT + 6 * - + NULLIF ( 3, + 11 + COUNT( * ) ) col0
----
-18

skipif mysql # not compatible
query I rowsort label-6592
SELECT DISTINCT + 6 * - + NULLIF ( 3, + 11 + COUNT ( * ) ) col0
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-6593
SELECT 66 - + + ( 50 ) + - - CASE 47 WHEN - - ( 25 ) THEN + ( - - COUNT( * ) ) * + COALESCE ( 69, + 55 / + COALESCE ( + 22, NULLIF ( 40, 86 ) * + - 46 * - 13, + 37 + 51 ) ) * + 91 WHEN - 17 + 41 * + ( 74 / 43 ) THEN NULL ELSE NULL END * ( 57 + - 80 ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6593
SELECT 66 - + + ( 50 ) + - - CASE 47 WHEN - - ( 25 ) THEN + ( - - COUNT ( * ) ) * + COALESCE ( 69, + 55 / + COALESCE ( + 22, NULLIF ( 40, 86 ) * + - 46 * - 13, + 37 + 51 ) ) * + 91 WHEN - 17 + 41 * + ( 74 / 43 ) THEN NULL ELSE NULL END * ( 57 + - 80 ) col1
----
NULL

query II rowsort
SELECT 75 * + - 56 AS col1, - 90 - 33 - - - 1
----
-4200
-124

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6595
SELECT MAX( 39 ) DIV ( 20 ) col2, + COUNT( * ) * - - COUNT( * )
----
1
1

skipif mysql # not compatible
query II rowsort label-6595
SELECT MAX ( 39 ) / ( 20 ) col2, + COUNT ( * ) * - - COUNT ( * )
----
1
1

query I rowsort
SELECT - 53 + + 84 - - 76 * 5 AS col2
----
411

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6597
SELECT - CASE + + MIN( - 25 ) WHEN - 80 * - 40 THEN - 85 WHEN + - CASE - 60 WHEN 22 THEN - - 28 + + + MAX( ALL + 65 ) * - 18 END + - 15 - - - ( + - 90 ) + - - 19 * + 77 * - ( + 8 ) / 38 * 98 THEN 70 * 98 ELSE NULL END + - 50 * CASE + 42 + CASE - 77 WHEN - 32 / COUNT( * ) THEN NULL ELSE 32 + + 35 END WHEN ( CAST( NULL AS SIGNED ) ) THEN ( 82 ) + 57 WHEN 92 THEN NULL WHEN + 49 THEN + 72 + - 90 END
----
NULL

skipif mysql # not compatible
query I rowsort label-6597
SELECT - CASE + + MIN ( - 25 ) WHEN - 80 * - 40 THEN - 85 WHEN + - CASE - 60 WHEN 22 THEN - - 28 + + + MAX ( ALL + 65 ) * - 18 END + - 15 - - - ( + - 90 ) + - - 19 * + 77 * - ( + 8 ) / 38 * 98 THEN 70 * 98 ELSE NULL END + - 50 * CASE + 42 + CASE - 77 WHEN - 32 / COUNT ( * ) THEN NULL ELSE 32 + + 35 END WHEN ( CAST ( NULL AS INTEGER ) ) THEN ( 82 ) + 57 WHEN 92 THEN NULL WHEN + 49 THEN + 72 + - 90 END
----
NULL

query I rowsort
SELECT ALL 6 + 4 AS col1
----
10

query I rowsort
SELECT - COALESCE ( 86, + 49 ) AS col1
----
-86

query I rowsort
SELECT ALL - 70 + - + 61 AS col1
----
-131

query I rowsort
SELECT + - 64 + - + 69 AS col2
----
-133

query I rowsort
SELECT + + 89 + - + 56
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-6603
SELECT DISTINCT - ( - 5 ) * + COUNT( * )
----
5

skipif mysql # not compatible
query I rowsort label-6603
SELECT DISTINCT - ( - 5 ) * + COUNT ( * )
----
5

query I rowsort
SELECT - 69 * - 79
----
5451

onlyif mysql # aggregate syntax: 
query II rowsort label-6605
SELECT DISTINCT + ( 49 ) * - ( + COUNT( * ) ) * - COUNT( * ) + - + 68 + - CASE + 66 WHEN - 21 THEN - NULLIF ( + 24, MAX( ALL + 10 ) ) * - COUNT( * ) * - 9 ELSE + 15 END - COUNT( * ), - NULLIF ( + 35, - 57 + - 49 / + ( - COUNT( * ) ) )
----
-35
-35

skipif mysql # not compatible
query II rowsort label-6605
SELECT DISTINCT + ( 49 ) * - ( + COUNT ( * ) ) * - COUNT ( * ) + - + 68 + - CASE + 66 WHEN - 21 THEN - NULLIF ( + 24, MAX ( ALL + 10 ) ) * - COUNT ( * ) * - 9 ELSE + 15 END - COUNT ( * ), - NULLIF ( + 35, - 57 + - 49 / + ( - COUNT ( * ) ) )
----
-35
-35

query I rowsort
SELECT + NULLIF ( - + 12, - + 89 )
----
-12

query I rowsort
SELECT ALL - 93 * 76 - - ( + 4 )
----
-7064

query I rowsort
SELECT + + 37 * 99 AS col1
----
3663

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6610
SELECT + + 88 DIV - - 26
----
3

skipif mysql # not compatible
query I rowsort label-6610
SELECT + + 88 / - - 26
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-6611
SELECT + COUNT( + 81 ) + + + 99 * - - 26 * - + 68 * - - 52 AS col0
----
-9101663

skipif mysql # not compatible
query I rowsort label-6611
SELECT + COUNT ( + 81 ) + + + 99 * - - 26 * - + 68 * - - 52 AS col0
----
-9101663

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6613
SELECT DISTINCT ( 9 ) DIV - MIN( DISTINCT - 4 ) AS col2
----
2

skipif mysql # not compatible
query I rowsort label-6613
SELECT DISTINCT ( 9 ) / - MIN ( DISTINCT - 4 ) AS col2
----
2

query I rowsort
SELECT + 30 - 53 + - ( 99 )
----
-122

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6615
SELECT - COALESCE ( - MIN( 13 ), + SUM( + 47 ) ) DIV + - COUNT( * ) + + 65 AS col2
----
52

skipif mysql # not compatible
query I rowsort label-6615
SELECT - COALESCE ( - MIN ( 13 ), + SUM ( + 47 ) ) / + - COUNT ( * ) + + 65 AS col2
----
52

query I rowsort
SELECT 28 * + 17 - - - 21
----
455

onlyif mysql # aggregate syntax: 
query I rowsort label-6617
SELECT NULLIF ( + COUNT( DISTINCT - 81 ), + 97 + - 8 + + 58 / - COALESCE ( 53, - + 25, + - COUNT( * ) ) ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-6617
SELECT NULLIF ( + COUNT ( DISTINCT - 81 ), + 97 + - 8 + + 58 / - COALESCE ( 53, - + 25, + - COUNT ( * ) ) ) AS col0
----
1

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

skipif mysql # not compatible
query I rowsort label-6618
SELECT ALL - 55 * + COUNT ( 92 ) AS col2
----
-55

query I rowsort
SELECT + NULLIF ( 10, + 58 ) AS col2
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-6620
SELECT - COUNT( * ) + - ( ( 94 ) ) * - 68
----
6391

skipif mysql # not compatible
query I rowsort label-6620
SELECT - COUNT ( * ) + - ( ( 94 ) ) * - 68
----
6391

query I rowsort
SELECT ALL + COALESCE ( + 67, + + ( - 63 ) ) col0
----
67

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6622
SELECT + COALESCE ( - - CAST( ( + 30 ) AS SIGNED ), + - 46 - + ( + 90 ) ) DIV + + ( + 95 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-6622
SELECT + COALESCE ( - - CAST ( ( + 30 ) AS INTEGER ), + - 46 - + ( + 90 ) ) / + + ( + 95 ) AS col0
----
0

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6625
SELECT - COUNT( 57 ) + 38 AS col0
----
37

skipif mysql # not compatible
query I rowsort label-6625
SELECT - COUNT ( 57 ) + 38 AS col0
----
37

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6626
SELECT DISTINCT 51 * - - CAST( - 74 AS SIGNED ) + - 5
----
-3779

skipif mysql # not compatible
query I rowsort label-6626
SELECT DISTINCT 51 * - - CAST ( - 74 AS INTEGER ) + - 5
----
-3779

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

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

query I rowsort
SELECT - COALESCE ( - + 85, + 19 * - 0 + 64 + - - 79 ) * + 74
----
6290

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6629
SELECT - ( - CAST( NULLIF ( - 14, + + 77 / - 73 ) AS SIGNED ) ) AS col1
----
-14

skipif mysql # not compatible
query I rowsort label-6629
SELECT - ( - CAST ( NULLIF ( - 14, + + 77 / - 73 ) AS INTEGER ) ) AS col1
----
-14

query I rowsort
SELECT DISTINCT NULLIF ( - 16, - ( - 24 ) ) AS col0
----
-16

query I rowsort
SELECT ALL + 93 * 99 * + 39 AS col2
----
359073

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6632
SELECT - COALESCE ( + - COUNT( * ), AVG ( ALL + 97 ) * + 5 * + 34 * - 76 + + 3 ) * CAST( NULL AS SIGNED ) + + MAX( + 95 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6632
SELECT - COALESCE ( + - COUNT ( * ), AVG ( ALL + 97 ) * + 5 * + 34 * - 76 + + 3 ) * CAST ( NULL AS INTEGER ) + + MAX ( + 95 )
----
NULL

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6635
SELECT ALL - 74 + + 42 * + CAST( 77 AS SIGNED ) AS col1
----
3160

skipif mysql # not compatible
query I rowsort label-6635
SELECT ALL - 74 + + 42 * + CAST ( 77 AS INTEGER ) AS col1
----
3160

query II rowsort
SELECT ALL + + 94 + + 21 * 39 AS col1, 30
----
913
30

onlyif mysql # aggregate syntax: 
query I rowsort label-6637
SELECT - + COUNT( DISTINCT - 11 ) * - 97 col1
----
97

skipif mysql # not compatible
query I rowsort label-6637
SELECT - + COUNT ( DISTINCT - 11 ) * - 97 col1
----
97

query I rowsort
SELECT DISTINCT + 71 * + 2 AS col1
----
142

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

skipif mysql # not compatible
query I rowsort label-6639
SELECT ALL COUNT ( * ) + + 93 AS col0
----
94

query I rowsort
SELECT - 54 - + - 60 AS col1
----
6

query I rowsort
SELECT + 23 * - 29
----
-667

query I rowsort
SELECT ALL ( + 28 ) col1
----
28

query II rowsort
SELECT 80 col1, 37 AS col2
----
80
37

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

query I rowsort
SELECT ALL + ( 94 ) col2
----
94

query I rowsort
SELECT - + 92 - 79 col2
----
-171

onlyif mysql # aggregate syntax: 
query I rowsort label-6647
SELECT ALL - NULLIF ( + - 94, - - COUNT( * ) ) * ( - 5 )
----
-470

skipif mysql # not compatible
query I rowsort label-6647
SELECT ALL - NULLIF ( + - 94, - - COUNT ( * ) ) * ( - 5 )
----
-470

onlyif mysql # aggregate syntax: 
query I rowsort label-6648
SELECT + - 17 - MAX( 68 ) + - CASE + 26 WHEN 93 + + 73 THEN - 61 WHEN + - ( - COUNT( * ) ) + + - 31 * + - 43 THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-6648
SELECT + - 17 - MAX ( 68 ) + - CASE + 26 WHEN 93 + + 73 THEN - 61 WHEN + - ( - COUNT ( * ) ) + + - 31 * + - 43 THEN NULL ELSE NULL END
----
NULL

query I rowsort
SELECT ALL + - 56
----
-56

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query III rowsort label-6650
SELECT ALL + 15 AS col0, 14 * + CAST( + COUNT( * ) AS SIGNED ) AS col2, - 92 AS col1
----
15
14
-92

skipif mysql # not compatible
query III rowsort label-6650
SELECT ALL + 15 AS col0, 14 * + CAST ( + COUNT ( * ) AS INTEGER ) AS col2, - 92 AS col1
----
15
14
-92

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6651
SELECT + COUNT( - 99 ) * + 65 + + 29 + - CASE 98 WHEN + 69 THEN NULL ELSE - + 12 * + + 17 + + 80 END + - CAST( NULL AS SIGNED ) + - 83 * - 30
----
NULL

skipif mysql # not compatible
query I rowsort label-6651
SELECT + COUNT ( - 99 ) * + 65 + + 29 + - CASE 98 WHEN + 69 THEN NULL ELSE - + 12 * + + 17 + + 80 END + - CAST ( NULL AS INTEGER ) + - 83 * - 30
----
NULL

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6653
SELECT + 54 DIV - 84 - - ( + 49 ) AS col0
----
49

skipif mysql # not compatible
query I rowsort label-6653
SELECT + 54 / - 84 - - ( + 49 ) AS col0
----
49

onlyif mysql # aggregate syntax: 
query I rowsort label-6654
SELECT + ( + COUNT( * ) ) * - - 18 * + 86
----
1548

skipif mysql # not compatible
query I rowsort label-6654
SELECT + ( + COUNT ( * ) ) * - - 18 * + 86
----
1548

query I rowsort
SELECT + 88 - - 15 * - + 8 AS col0
----
-32

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6656
SELECT ALL 10 DIV 43 + - COUNT( * ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-6656
SELECT ALL 10 / 43 + - COUNT ( * ) AS col0
----
-1

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-6658
SELECT + ( 68 ) AS col2, + 60 DIV - - CASE CAST( - 84 AS SIGNED ) WHEN - 96 THEN NULL ELSE COUNT( * ) END AS col0
----
68
60

skipif mysql # not compatible
query II rowsort label-6658
SELECT + ( 68 ) AS col2, + 60 / - - CASE CAST ( - 84 AS INTEGER ) WHEN - 96 THEN NULL ELSE COUNT ( * ) END AS col0
----
68
60

query I rowsort
SELECT + ( COALESCE ( - - 69, - 84, + 35 ) ) * - 34 * - 57 AS col0
----
133722

onlyif mysql # aggregate syntax: 
query I rowsort label-6660
SELECT ALL COUNT( * ) * MIN( - 67 ) + 87 + - + COALESCE ( - + 21, + + 35 ) col1
----
41

skipif mysql # not compatible
query I rowsort label-6660
SELECT ALL COUNT ( * ) * MIN ( - 67 ) + 87 + - + COALESCE ( - + 21, + + 35 ) col1
----
41

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6662
SELECT + 58 + + CAST( 85 AS SIGNED ) * - 54 col1, 85
----
-4532
85

skipif mysql # not compatible
query II rowsort label-6662
SELECT + 58 + + CAST ( 85 AS INTEGER ) * - 54 col1, 85
----
-4532
85

query I rowsort
SELECT COALESCE ( + 12, - 65 ) AS col0
----
12

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6664
SELECT DISTINCT 96 * - SUM( DISTINCT + 68 ) + - 96 AS col1, + 71 * CAST( COUNT( * ) AS SIGNED ) * + - 12 + - 55 AS col1
----
-6624
-907

skipif mysql # not compatible
query II rowsort label-6664
SELECT DISTINCT 96 * - SUM ( DISTINCT + 68 ) + - 96 AS col1, + 71 * CAST ( COUNT ( * ) AS INTEGER ) * + - 12 + - 55 AS col1
----
-6624
-907

query I rowsort
SELECT ALL 4 * + 2 * + 30
----
240

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

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

query II rowsort
SELECT 86 col1, - 45
----
86
-45

query I rowsort
SELECT ALL + - 42 + - - 78 AS col0
----
36

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6669
SELECT - ( - + 70 ) - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6669
SELECT - ( - + 70 ) - CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT DISTINCT 28 * - 78 - + 89 AS col1
----
-2273

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6671
SELECT ALL 32 * 19 + + 53 + + CAST( NULL AS SIGNED ) * 78
----
NULL

skipif mysql # not compatible
query I rowsort label-6671
SELECT ALL 32 * 19 + + 53 + + CAST ( NULL AS INTEGER ) * 78
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6672
SELECT - 72 + + SUM( + - 3 ) AS col1
----
-75

skipif mysql # not compatible
query I rowsort label-6672
SELECT - 72 + + SUM ( + - 3 ) AS col1
----
-75

onlyif mysql # DIV for integer division: 
query I rowsort label-6673
SELECT DISTINCT - + 30 DIV - 46 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-6673
SELECT DISTINCT - + 30 / - 46 AS col1
----
0

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6675
SELECT ALL NULLIF ( + 16, - 69 * + 74 ) AS col2, - 45 + - 60 * + COUNT( * ) + - 70 * - 27 + + - 31 + - 77 * + CASE + 86 WHEN - NULLIF ( 57, + - 38 ) / + 67 THEN + 72 END / COUNT( ALL + - 47 ) col2
----
16
NULL

skipif mysql # not compatible
query II rowsort label-6675
SELECT ALL NULLIF ( + 16, - 69 * + 74 ) AS col2, - 45 + - 60 * + COUNT ( * ) + - 70 * - 27 + + - 31 + - 77 * + CASE + 86 WHEN - NULLIF ( 57, + - 38 ) / + 67 THEN + 72 END / COUNT ( ALL + - 47 ) col2
----
16
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6677
SELECT ALL - 26 * + 19 * - SUM( + 92 ) + - - 52 + - 17 * - + 33
----
46061

skipif mysql # not compatible
query I rowsort label-6677
SELECT ALL - 26 * + 19 * - SUM ( + 92 ) + - - 52 + - 17 * - + 33
----
46061

onlyif mysql # aggregate syntax: 
query II rowsort label-6678
SELECT - 88 + 25, COUNT( DISTINCT - + ( - + 56 ) ) AS col1
----
-63
1

skipif mysql # not compatible
query II rowsort label-6678
SELECT - 88 + 25, COUNT ( DISTINCT - + ( - + 56 ) ) AS col1
----
-63
1

query II rowsort
SELECT ALL - 17 col0, + 8 * - 93
----
-17
-744

query I rowsort
SELECT 5 + - 5 col2
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-6681
SELECT - 15 + + 78 + 43 * + 87 + 49 * + + 22 AS col2, 19 DIV 73 AS col0
----
4882
0

skipif mysql # not compatible
query II rowsort label-6681
SELECT - 15 + + 78 + 43 * + 87 + 49 * + + 22 AS col2, 19 / 73 AS col0
----
4882
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6682
SELECT CASE - 89 WHEN - - 25 THEN - + CAST( NULL AS SIGNED ) + + 68 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6682
SELECT CASE - 89 WHEN - - 25 THEN - + CAST ( NULL AS INTEGER ) + + 68 END AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6683
SELECT MAX( ALL + - 15 ) + - + 72 / - - 49 * - 87 * + - CAST( NULL AS SIGNED ) AS col2, - 82
----
NULL
-82

skipif mysql # not compatible
query II rowsort label-6683
SELECT MAX ( ALL + - 15 ) + - + 72 / - - 49 * - 87 * + - CAST ( NULL AS INTEGER ) AS col2, - 82
----
NULL
-82

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6684
SELECT 34 * - CAST( NULL AS DECIMAL ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6684
SELECT 34 * - CAST ( NULL AS REAL ) AS col0
----
NULL

query I rowsort
SELECT 28 * + 28 + - 25 AS col1
----
759

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6686
SELECT 41 DIV + 3 col1, AVG ( + 95 ) - + 77 + 21 * - NULLIF ( + + CASE + + 6 WHEN + 2 THEN COUNT( * ) ELSE NULL END, + 90 * - 15 * - 45 ) * + 83 * + 50 AS col2
----
13
NULL

skipif mysql # not compatible
query II rowsort label-6686
SELECT 41 / + 3 col1, AVG ( + 95 ) - + 77 + 21 * - NULLIF ( + + CASE + + 6 WHEN + 2 THEN COUNT ( * ) ELSE NULL END, + 90 * - 15 * - 45 ) * + 83 * + 50 AS col2
----
13
NULL

query I rowsort
SELECT DISTINCT 12 + + - 34 AS col0
----
-22

query I rowsort
SELECT ALL 71 + - 92
----
-21

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-6689
SELECT ALL - CAST( - 82 AS SIGNED ) DIV - + SUM( + + 89 ) + - 82, - 83 DIV + 11 AS col1
----
-82
-7

skipif mysql # not compatible
query II rowsort label-6689
SELECT ALL - CAST ( - 82 AS INTEGER ) / - + SUM ( + + 89 ) + - 82, - 83 / + 11 AS col1
----
-82
-7

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

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

query I rowsort
SELECT 56 + + 41 + - - 73
----
170

onlyif mysql # aggregate syntax: 
query I rowsort label-6692
SELECT + 61 * + - COUNT( * ) - + + 28 AS col2
----
-89

skipif mysql # not compatible
query I rowsort label-6692
SELECT + 61 * + - COUNT ( * ) - + + 28 AS col2
----
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-6693
SELECT ALL 28 * + + 54 * + COUNT( * ) AS col2
----
1512

skipif mysql # not compatible
query I rowsort label-6693
SELECT ALL 28 * + + 54 * + COUNT ( * ) AS col2
----
1512

onlyif mysql # aggregate syntax: 
query I rowsort label-6694
SELECT DISTINCT - NULLIF ( + 24, COUNT( * ) ) AS col0
----
-24

skipif mysql # not compatible
query I rowsort label-6694
SELECT DISTINCT - NULLIF ( + 24, COUNT ( * ) ) AS col0
----
-24

query I rowsort
SELECT 21 * + 26 + + 84 AS col1
----
630

query II rowsort
SELECT ALL - ( - 99 ) AS col1, 30 AS col2
----
99
30

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6697
SELECT + CAST( - 70 AS SIGNED ) + + 33
----
-37

skipif mysql # not compatible
query I rowsort label-6697
SELECT + CAST ( - 70 AS INTEGER ) + + 33
----
-37

query I rowsort
SELECT 94 - - + 11 * - - 31
----
435

query I rowsort
SELECT ALL 0 * - - 51 * 86
----
0

query I rowsort
SELECT ( 63 ) * - 8 * 22 AS col0
----
-11088

onlyif mysql # aggregate syntax: 
query II rowsort label-6701
SELECT - MAX( - + 6 ) AS col2, 87 AS col1
----
6
87

skipif mysql # not compatible
query II rowsort label-6701
SELECT - MAX ( - + 6 ) AS col2, 87 AS col1
----
6
87

query I rowsort
SELECT - COALESCE ( - - 81, - 61, 36 + - 79 * + ( - ( 51 ) ) - 30 ) AS col2
----
-81

query I rowsort
SELECT + 96 * + 18
----
1728

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6705
SELECT - 19 * + - 85 * - + COUNT( * ) + - + NULLIF ( 61, - NULLIF ( + + COUNT( * ), NULLIF ( + + 33, - + 33 + - 82 ) ) ) + + 6
----
-1670

skipif mysql # not compatible
query I rowsort label-6705
SELECT - 19 * + - 85 * - + COUNT ( * ) + - + NULLIF ( 61, - NULLIF ( + + COUNT ( * ), NULLIF ( + + 33, - + 33 + - 82 ) ) ) + + 6
----
-1670

onlyif mysql # aggregate syntax: 
query I rowsort label-6706
SELECT ALL 89 * - CASE SUM( + ( + 98 ) ) WHEN 83 + 76 THEN + - NULLIF ( + - 95, + - AVG ( - 9 ) ) + 45 * - COUNT( * ) / + 10 / SUM( + - 66 ) / - 9 + 85 * 39 * + 83 + - 63 * + 1 - 44 END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6706
SELECT ALL 89 * - CASE SUM ( + ( + 98 ) ) WHEN 83 + 76 THEN + - NULLIF ( + - 95, + - AVG ( - 9 ) ) + 45 * - COUNT ( * ) / + 10 / SUM ( + - 66 ) / - 9 + 85 * 39 * + 83 + - 63 * + 1 - 44 END col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6707
SELECT 81 * - 97 AS col0, COUNT( * ) + + COUNT( * ) col1
----
-7857
2

skipif mysql # not compatible
query II rowsort label-6707
SELECT 81 * - 97 AS col0, COUNT ( * ) + + COUNT ( * ) col1
----
-7857
2

query I rowsort
SELECT ( 57 ) AS col0
----
57

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6709
SELECT ALL + + 60 DIV ( 12 ) * COUNT( 79 ) + - + 80 + - 23 DIV + 30 * + - 68 col0
----
-75

skipif mysql # not compatible
query I rowsort label-6709
SELECT ALL + + 60 / ( 12 ) * COUNT ( 79 ) + - + 80 + - 23 / + 30 * + - 68 col0
----
-75

onlyif mysql # aggregate syntax: 
query II rowsort label-6710
SELECT 19 * - + COUNT( * ) AS col2, 35 AS col0
----
-19
35

skipif mysql # not compatible
query II rowsort label-6710
SELECT 19 * - + COUNT ( * ) AS col2, 35 AS col0
----
-19
35

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

query I rowsort
SELECT + 38 - - 84
----
122

query I rowsort
SELECT 22 * 61
----
1342

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6714
SELECT + COUNT( * ) * 37, - CAST( - 27 AS SIGNED ) AS col0
----
37
27

skipif mysql # not compatible
query II rowsort label-6714
SELECT + COUNT ( * ) * 37, - CAST ( - 27 AS INTEGER ) AS col0
----
37
27

onlyif mysql # aggregate syntax: 
query I rowsort label-6715
SELECT 44 * + MIN( ALL - 41 ) * + ( + 77 ) / ( 62 ) + + CASE - - 0 WHEN + + AVG ( + ( - - 62 ) ) * - 68 + + - ( - 10 ) * - - 30 * - 78 / + ( - 7 ) * - + 98 + + + COUNT( * ) THEN + - 9 / 45 + + 27 * 24 END + + 78 * + 42
----
NULL

skipif mysql # not compatible
query I rowsort label-6715
SELECT 44 * + MIN ( ALL - 41 ) * + ( + 77 ) / ( 62 ) + + CASE - - 0 WHEN + + AVG ( + ( - - 62 ) ) * - 68 + + - ( - 10 ) * - - 30 * - 78 / + ( - 7 ) * - + 98 + + + COUNT ( * ) THEN + - 9 / 45 + + 27 * 24 END + + 78 * + 42
----
NULL

query I rowsort
SELECT 79 * - - 42 * - - 91
----
301938

onlyif mysql # aggregate syntax: 
query I rowsort label-6717
SELECT ALL - 96 + COUNT( * )
----
-95

skipif mysql # not compatible
query I rowsort label-6717
SELECT ALL - 96 + COUNT ( * )
----
-95

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6718
SELECT 60 - MIN( + - 95 ) DIV CASE 88 WHEN - 47 * - + COALESCE ( + + 98, + COUNT( * ), + 93 ) + ( + 83 ) THEN NULL WHEN - - CAST( NULL AS SIGNED ) THEN NULL ELSE + + 54 DIV 49 END
----
155

skipif mysql # not compatible
query I rowsort label-6718
SELECT 60 - MIN ( + - 95 ) / CASE 88 WHEN - 47 * - + COALESCE ( + + 98, + COUNT ( * ), + 93 ) + ( + 83 ) THEN NULL WHEN - - CAST ( NULL AS INTEGER ) THEN NULL ELSE + + 54 / 49 END
----
155

onlyif mysql # aggregate syntax: 
query I rowsort label-6719
SELECT DISTINCT 95 * COUNT( ALL - 64 ) + + 88 + - 60 * - - SUM( 41 ) * ( - + ( - + 20 ) ) * + - 85 - ( - 60 ) * + ( - COUNT( * ) ) - + + 32 AS col1
----
4182091

skipif mysql # not compatible
query I rowsort label-6719
SELECT DISTINCT 95 * COUNT ( ALL - 64 ) + + 88 + - 60 * - - SUM ( 41 ) * ( - + ( - + 20 ) ) * + - 85 - ( - 60 ) * + ( - COUNT ( * ) ) - + + 32 AS col1
----
4182091

onlyif mysql # aggregate syntax: 
query I rowsort label-6720
SELECT + 58 * - 0 + + 63 + 34 * - COUNT( * ) col2
----
29

skipif mysql # not compatible
query I rowsort label-6720
SELECT + 58 * - 0 + + 63 + 34 * - COUNT ( * ) col2
----
29

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6721
SELECT + CASE - 62 WHEN - 45 / COALESCE ( - 1, 72 ) + + - COUNT( * ) THEN ( + - ( - CAST( NULL AS DECIMAL ) ) ) WHEN 86 + - + ( 20 ) - - COUNT( * ) * 41 + + + 2 * 46 / COALESCE ( + 19, - 83 * 92 ) * + COUNT( 66 ) THEN NULL WHEN + 21 / 85 THEN NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6721
SELECT + CASE - 62 WHEN - 45 / COALESCE ( - 1, 72 ) + + - COUNT ( * ) THEN ( + - ( - CAST ( NULL AS REAL ) ) ) WHEN 86 + - + ( 20 ) - - COUNT ( * ) * 41 + + + 2 * 46 / COALESCE ( + 19, - 83 * 92 ) * + COUNT ( 66 ) THEN NULL WHEN + 21 / 85 THEN NULL END AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6722
SELECT 34 DIV - 65 + 95 - + 71 * + - 19 * + MAX( ALL - 35 ) * 38 + - ( COUNT( ( - CAST( + 87 AS SIGNED ) ) ) )
----
-1794076

skipif mysql # not compatible
query I rowsort label-6722
SELECT 34 / - 65 + 95 - + 71 * + - 19 * + MAX ( ALL - 35 ) * 38 + - ( COUNT ( ( - CAST ( + 87 AS INTEGER ) ) ) )
----
-1794076

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6723
SELECT 95 * - CAST( - 98 AS SIGNED ) * COUNT( * ) + - + 83 * 47 AS col1
----
5409

skipif mysql # not compatible
query I rowsort label-6723
SELECT 95 * - CAST ( - 98 AS INTEGER ) * COUNT ( * ) + - + 83 * 47 AS col1
----
5409

query I rowsort
SELECT 69 + + 27 + + 24 * - + 95 * - 29
----
66216

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

skipif mysql # not compatible
query I rowsort label-6725
SELECT - COUNT ( * ) / - + 31 - + COUNT ( * ) AS col0
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-6726
SELECT DISTINCT - 43 DIV - 6 col2
----
7

skipif mysql # not compatible
query I rowsort label-6726
SELECT DISTINCT - 43 / - 6 col2
----
7

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

skipif mysql # not compatible
query I rowsort label-6727
SELECT DISTINCT 57 * COUNT ( * ) - + COUNT ( DISTINCT 32 ) AS col2
----
56

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6728
SELECT - CASE AVG ( DISTINCT - 18 ) WHEN 58 + - 21 + + 89 * + NULLIF ( - COUNT( DISTINCT - 14 ), COUNT( * ) ) - COUNT( + - 91 ) THEN + - 62 * COUNT( * ) + + 15 * COUNT( * ) WHEN 7 / - ( + AVG ( DISTINCT + COALESCE ( + - 57, - 67, - 59 + - 54, + 49 ) ) ) * 48 + + MAX( DISTINCT 59 ) / CASE 7 + 25 WHEN + 90 THEN 46 * 27 END + - CAST( NULL AS SIGNED ) THEN NULL ELSE NULL END * 83
----
NULL

skipif mysql # not compatible
query I rowsort label-6728
SELECT - CASE AVG ( DISTINCT - 18 ) WHEN 58 + - 21 + + 89 * + NULLIF ( - COUNT ( DISTINCT - 14 ), COUNT ( * ) ) - COUNT ( + - 91 ) THEN + - 62 * COUNT ( * ) + + 15 * COUNT ( * ) WHEN 7 / - ( + AVG ( DISTINCT + COALESCE ( + - 57, - 67, - 59 + - 54, + 49 ) ) ) * 48 + + MAX ( DISTINCT 59 ) / CASE 7 + 25 WHEN + 90 THEN 46 * 27 END + - CAST ( NULL AS INTEGER ) THEN NULL ELSE NULL END * 83
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6729
SELECT DISTINCT COUNT( * ) * 76 * - 60 col1, 38 AS col0
----
-4560
38

skipif mysql # not compatible
query II rowsort label-6729
SELECT DISTINCT COUNT ( * ) * 76 * - 60 col1, 38 AS col0
----
-4560
38

onlyif mysql # DIV for integer division: 
query I rowsort label-6730
SELECT DISTINCT + 44 DIV 92
----
0

skipif mysql # not compatible
query I rowsort label-6730
SELECT DISTINCT + 44 / 92
----
0

query I rowsort
SELECT - 57 * + - 86 AS col2
----
4902

query I rowsort
SELECT ALL - 34 * + 35 - + 14 AS col0
----
-1204

onlyif mysql # aggregate syntax: 
query I rowsort label-6733
SELECT MIN( - 49 )
----
-49

skipif mysql # not compatible
query I rowsort label-6733
SELECT MIN ( - 49 )
----
-49

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

query I rowsort
SELECT ALL + - 50 col1
----
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-6736
SELECT - - MAX( ALL + + 1 ) * + ( ( - 51 ) ) * + 71 * 23 + 43
----
-83240

skipif mysql # not compatible
query I rowsort label-6736
SELECT - - MAX ( ALL + + 1 ) * + ( ( - 51 ) ) * + 71 * 23 + 43
----
-83240

query I rowsort
SELECT + 94 * - 31 AS col0
----
-2914

query I rowsort
SELECT - 34 + - + 76
----
-110

query I rowsort
SELECT + 61 * - 33
----
-2013

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6741
SELECT - ( 80 ) + + COUNT( * ) * + ( COUNT( * ) ) + 83 col1
----
4

skipif mysql # not compatible
query I rowsort label-6741
SELECT - ( 80 ) + + COUNT ( * ) * + ( COUNT ( * ) ) + 83 col1
----
4

query II rowsort
SELECT - + 19 AS col0, 86 col0
----
-19
86

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6743
SELECT DISTINCT + 62 AS col2, + CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) * + + 23
----
62
NULL

skipif mysql # not compatible
query II rowsort label-6743
SELECT DISTINCT + 62 AS col2, + CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) * + + 23
----
62
NULL

query I rowsort
SELECT - 36 + + 2 AS col0
----
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-6745
SELECT + 6 - - COUNT( * ) * - + 26 + + + 81 AS col2
----
61

skipif mysql # not compatible
query I rowsort label-6745
SELECT + 6 - - COUNT ( * ) * - + 26 + + + 81 AS col2
----
61

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6747
SELECT + 19 - - COUNT( * ) - 82, 11 * + + 96 AS col0
----
-62
1056

skipif mysql # not compatible
query II rowsort label-6747
SELECT + 19 - - COUNT ( * ) - 82, 11 * + + 96 AS col0
----
-62
1056

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6748
SELECT - COALESCE ( MIN( ALL + 84 ), + 57, + 62 DIV + 3 - CASE - + 94 WHEN + - COUNT( * ) * - + 4 * + CAST( + 30 AS SIGNED ) + + + 10 THEN NULL WHEN + + 75 * + 19 * 49 THEN - + 89 DIV 79 END )
----
-84

skipif mysql # not compatible
query I rowsort label-6748
SELECT - COALESCE ( MIN ( ALL + 84 ), + 57, + 62 / + 3 - CASE - + 94 WHEN + - COUNT ( * ) * - + 4 * + CAST ( + 30 AS INTEGER ) + + + 10 THEN NULL WHEN + + 75 * + 19 * 49 THEN - + 89 / 79 END )
----
-84

query I rowsort
SELECT ALL + 83 + + - 19 AS col1
----
64

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6751
SELECT ALL 65 + - - CAST( - + 43 AS SIGNED ) AS col1
----
22

skipif mysql # not compatible
query I rowsort label-6751
SELECT ALL 65 + - - CAST ( - + 43 AS INTEGER ) AS col1
----
22

query I rowsort
SELECT + 77 + - 97 * - 9
----
950

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6753
SELECT + CASE + + 83 WHEN 68 THEN - + 83 * - CAST( + ( - 25 ) AS SIGNED ) + - 86 - 16 WHEN - COALESCE ( + + COUNT( * ), - CASE + 63 WHEN MIN( 1 ) THEN 67 + 11 END ) * 61 THEN NULL ELSE NULL END + - 58 / - 98 * - 56 / - 35 AS col2, 41 col0
----
NULL
41

skipif mysql # not compatible
query II rowsort label-6753
SELECT + CASE + + 83 WHEN 68 THEN - + 83 * - CAST ( + ( - 25 ) AS INTEGER ) + - 86 - 16 WHEN - COALESCE ( + + COUNT ( * ), - CASE + 63 WHEN MIN ( 1 ) THEN 67 + 11 END ) * 61 THEN NULL ELSE NULL END + - 58 / - 98 * - 56 / - 35 AS col2, 41 col0
----
NULL
41

onlyif mysql # aggregate syntax: 
query I rowsort label-6754
SELECT ALL 59 + - + MIN( ALL 27 ) * - 0 AS col1
----
59

skipif mysql # not compatible
query I rowsort label-6754
SELECT ALL 59 + - + MIN ( ALL 27 ) * - 0 AS col1
----
59

query I rowsort
SELECT - ( 15 ) AS col0
----
-15

query II rowsort
SELECT + 29 + + 3 AS col2, + 8
----
32
8

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6757
SELECT - CAST( NULL AS DECIMAL ) + - MIN( DISTINCT + + 57 ) + - 82
----
NULL

skipif mysql # not compatible
query I rowsort label-6757
SELECT - CAST ( NULL AS REAL ) + - MIN ( DISTINCT + + 57 ) + - 82
----
NULL

query I rowsort
SELECT - CASE - + 35 WHEN + 21 THEN + 29 * 5 ELSE NULL END AS col2
----
NULL

query I rowsort
SELECT + ( + 98 ) + + 71 AS col0
----
169

onlyif mysql # aggregate syntax: 
query I rowsort label-6760
SELECT + 93 * COUNT( * ) * 63 AS col0
----
5859

skipif mysql # not compatible
query I rowsort label-6760
SELECT + 93 * COUNT ( * ) * 63 AS col0
----
5859

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6761
SELECT ALL 53 DIV 86 - + CASE MIN( ALL - 63 ) WHEN + - 50 * - 73 THEN NULL WHEN 95 * 62 THEN NULL ELSE MIN( + 82 ) + + 32 * - + MAX( ALL - - 61 ) + + 45 END col0
----
1825

skipif mysql # not compatible
query I rowsort label-6761
SELECT ALL 53 / 86 - + CASE MIN ( ALL - 63 ) WHEN + - 50 * - 73 THEN NULL WHEN 95 * 62 THEN NULL ELSE MIN ( + 82 ) + + 32 * - + MAX ( ALL - - 61 ) + + 45 END col0
----
1825

query II rowsort
SELECT ( - - 64 ) AS col2, - 28 + 52 - + 91 + - 64
----
64
-131

onlyif mysql # aggregate syntax: 
query I rowsort label-6763
SELECT ALL + COALESCE ( - 96, - - 81 * 6 + + COUNT( ALL - CASE + 36 WHEN + 28 THEN 68 ELSE NULL END ) + - MAX( + - 25 ) ) * + + COUNT( * ) AS col2
----
-96

skipif mysql # not compatible
query I rowsort label-6763
SELECT ALL + COALESCE ( - 96, - - 81 * 6 + + COUNT ( ALL - CASE + 36 WHEN + 28 THEN 68 ELSE NULL END ) + - MAX ( + - 25 ) ) * + + COUNT ( * ) AS col2
----
-96

query I rowsort
SELECT - 81 + + 18
----
-63

query I rowsort
SELECT DISTINCT 87 * - 72
----
-6264

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6766
SELECT 30 * COALESCE ( + COUNT( * ), + CAST( + + 5 AS SIGNED ) * 79 ) + 80 AS col1
----
110

skipif mysql # not compatible
query I rowsort label-6766
SELECT 30 * COALESCE ( + COUNT ( * ), + CAST ( + + 5 AS INTEGER ) * 79 ) + 80 AS col1
----
110

onlyif mysql # aggregate syntax: 
query I rowsort label-6767
SELECT + NULLIF ( - SUM( - 91 ), 29 ) * + CASE + + COUNT( * ) WHEN - - 19 * + 37 * - + 3 + COUNT( + 4 ) THEN + 84 * + 41 / + 50 + 19 ELSE NULL END + + 11
----
NULL

skipif mysql # not compatible
query I rowsort label-6767
SELECT + NULLIF ( - SUM ( - 91 ), 29 ) * + CASE + + COUNT ( * ) WHEN - - 19 * + 37 * - + 3 + COUNT ( + 4 ) THEN + 84 * + 41 / + 50 + 19 ELSE NULL END + + 11
----
NULL

query I rowsort
SELECT ALL + 31 * 79 AS col2
----
2449

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6769
SELECT - + ( + COALESCE ( + 35, - NULLIF ( - - 85, CASE 56 WHEN 21 * 50 * - + 41 * + 47 * - - NULLIF ( + + 88, - CAST( + COUNT( * ) AS SIGNED ) ) + 97 + + MIN( - COALESCE ( - + 53, + - 17 * + 32 ) ) THEN + 15 ELSE NULL END * - 48 ), 55 * - 15 + 29 ) ) + 65 AS col1
----
30

skipif mysql # not compatible
query I rowsort label-6769
SELECT - + ( + COALESCE ( + 35, - NULLIF ( - - 85, CASE 56 WHEN 21 * 50 * - + 41 * + 47 * - - NULLIF ( + + 88, - CAST ( + COUNT ( * ) AS INTEGER ) ) + 97 + + MIN ( - COALESCE ( - + 53, + - 17 * + 32 ) ) THEN + 15 ELSE NULL END * - 48 ), 55 * - 15 + 29 ) ) + 65 AS col1
----
30

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

query I rowsort
SELECT 8 * - 87 * - 7 + + 6 AS col0
----
4878

onlyif mysql # DIV for integer division: 
query I rowsort label-6772
SELECT ALL + + 51 DIV - - 51 col1
----
1

skipif mysql # not compatible
query I rowsort label-6772
SELECT ALL + + 51 / - - 51 col1
----
1

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

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

query I rowsort
SELECT - 67 * + + 60 AS col1
----
-4020

onlyif mysql # aggregate syntax: 
query I rowsort label-6775
SELECT ALL - + ( - 66 ) * + 81 + - COUNT( * )
----
5345

skipif mysql # not compatible
query I rowsort label-6775
SELECT ALL - + ( - 66 ) * + 81 + - COUNT ( * )
----
5345

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6776
SELECT + + SUM( DISTINCT - 62 ) + 80 + - NULLIF ( + 94, ( - + 15 ) * 6 * 2 * + ( 68 ) * 78 + - + 82 ) + + 96 + + 36 DIV + 73 AS col0
----
20

skipif mysql # not compatible
query I rowsort label-6776
SELECT + + SUM ( DISTINCT - 62 ) + 80 + - NULLIF ( + 94, ( - + 15 ) * 6 * 2 * + ( 68 ) * 78 + - + 82 ) + + 96 + + 36 / + 73 AS col0
----
20

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6777
SELECT - - 98 * - 27 * - CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-6777
SELECT - - 98 * - 27 * - CAST ( NULL AS REAL )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6778
SELECT + - 93 + + COUNT( 91 ) * MAX( DISTINCT + 19 ) * - 44 * - + 37
----
30839

skipif mysql # not compatible
query I rowsort label-6778
SELECT + - 93 + + COUNT ( 91 ) * MAX ( DISTINCT + 19 ) * - 44 * - + 37
----
30839

onlyif mysql # aggregate syntax: 
query I rowsort label-6779
SELECT ALL ( + 98 ) * - 27 + + 0 + + 75 + - COUNT( * ) * - - 84 - + 81 * - ( - 69 )
----
-8244

skipif mysql # not compatible
query I rowsort label-6779
SELECT ALL ( + 98 ) * - 27 + + 0 + + 75 + - COUNT ( * ) * - - 84 - + 81 * - ( - 69 )
----
-8244

query I rowsort
SELECT ALL + + 97 + + 98 * + - 2
----
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-6781
SELECT DISTINCT - + COUNT( * ) + + + 65
----
64

skipif mysql # not compatible
query I rowsort label-6781
SELECT DISTINCT - + COUNT ( * ) + + + 65
----
64

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

query I rowsort
SELECT - ( + - 27 ) col0
----
27

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

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

query I rowsort
SELECT + ( 10 ) * + ( - 35 ) * - 33 - + - 89
----
11639

query I rowsort
SELECT - 18 - - 83 + - + 14
----
51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6787
SELECT CAST( NULL AS SIGNED ) / - 61
----
NULL

skipif mysql # not compatible
query I rowsort label-6787
SELECT CAST ( NULL AS INTEGER ) / - 61
----
NULL

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

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

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

skipif mysql # not compatible
query II rowsort label-6789
SELECT DISTINCT 91 AS col1, - COUNT ( * )
----
91
-1

query I rowsort
SELECT ( - + 36 ) - - + 27 AS col2
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-6791
SELECT COUNT( * ) - 84 AS col2
----
-83

skipif mysql # not compatible
query I rowsort label-6791
SELECT COUNT ( * ) - 84 AS col2
----
-83

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

skipif mysql # not compatible
query I rowsort label-6792
SELECT 44 * 88 + + - COUNT ( * ) AS col2
----
3871

onlyif mysql # DIV for integer division: 
query I rowsort label-6793
SELECT 84 DIV + 6
----
14

skipif mysql # not compatible
query I rowsort label-6793
SELECT 84 / + 6
----
14

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6795
SELECT + 9 AS col2, + MAX( - NULLIF ( 54, + CAST( 88 AS SIGNED ) ) ) - - 3 + - 52
----
9
-103

skipif mysql # not compatible
query II rowsort label-6795
SELECT + 9 AS col2, + MAX ( - NULLIF ( 54, + CAST ( 88 AS INTEGER ) ) ) - - 3 + - 52
----
9
-103

query I rowsort
SELECT 29 * 5 AS col2
----
145

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6797
SELECT SUM( 32 ) - - - NULLIF ( 35, + ( + 27 ) ) DIV 89
----
32

skipif mysql # not compatible
query I rowsort label-6797
SELECT SUM ( 32 ) - - - NULLIF ( 35, + ( + 27 ) ) / 89
----
32

query I rowsort
SELECT ALL - + 72
----
-72

query I rowsort
SELECT ALL + + 16 + - + ( - - 59 ) * - + 60 * + 47 * - + 89 AS col1
----
-14807804

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

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

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

query I rowsort
SELECT ALL - 68 + + 71 AS col2
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-6803
SELECT DISTINCT + COUNT( * ) + + - 45
----
-44

skipif mysql # not compatible
query I rowsort label-6803
SELECT DISTINCT + COUNT ( * ) + + - 45
----
-44

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6804
SELECT 94 + + + AVG ( DISTINCT 37 ) + - CASE 4 WHEN - 81 + - MIN( + - 22 ) THEN - + 24 - 39 * - 6 * + + 37 * + 70 - CAST( NULL AS SIGNED ) WHEN 73 THEN 13 WHEN + - ( - 16 ) THEN ( - - 94 ) * CAST( + 9 AS SIGNED ) * + 82 * + - 6 + + NULLIF ( + 14, - 43 * + 45 - ( 53 ) ) * ( - 24 / 93 ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-6804
SELECT 94 + + + AVG ( DISTINCT 37 ) + - CASE 4 WHEN - 81 + - MIN ( + - 22 ) THEN - + 24 - 39 * - 6 * + + 37 * + 70 - CAST ( NULL AS INTEGER ) WHEN 73 THEN 13 WHEN + - ( - 16 ) THEN ( - - 94 ) * CAST ( + 9 AS INTEGER ) * + 82 * + - 6 + + NULLIF ( + 14, - 43 * + 45 - ( 53 ) ) * ( - 24 / 93 ) ELSE NULL END
----
NULL

query I rowsort
SELECT ALL 12 * - - 93 AS col2
----
1116

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6806
SELECT DISTINCT + 41 + - + 14 * - CAST( NULL AS SIGNED ) * + 86 * 6 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6806
SELECT DISTINCT + 41 + - + 14 * - CAST ( NULL AS INTEGER ) * + 86 * 6 col1
----
NULL

query I rowsort
SELECT ALL - 7 + 87 AS col2
----
80

query I rowsort
SELECT 2 * + ( - 76 ) * 39 + - 97
----
-6025

onlyif mysql # aggregate syntax: 
query I rowsort label-6809
SELECT 48 * - + COUNT( - 90 )
----
-48

skipif mysql # not compatible
query I rowsort label-6809
SELECT 48 * - + COUNT ( - 90 )
----
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-6810
SELECT ALL + NULLIF ( + ( 56 ), - + 64 ) + + - COUNT( * ) - + 66 * - COUNT( * )
----
121

skipif mysql # not compatible
query I rowsort label-6810
SELECT ALL + NULLIF ( + ( 56 ), - + 64 ) + + - COUNT ( * ) - + 66 * - COUNT ( * )
----
121

query II rowsort
SELECT ALL + 47 + + 49 * 63 AS col2, + 57 col2
----
3134
57

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6813
SELECT ALL - CAST( + 97 AS SIGNED ) + 44 + + 99 * - 82, 65 + - SUM( DISTINCT - + 20 ) + - + ( NULLIF ( - 24, - COUNT( * ) + + 1 ) ) AS col1
----
-8171
109

skipif mysql # not compatible
query II rowsort label-6813
SELECT ALL - CAST ( + 97 AS INTEGER ) + 44 + + 99 * - 82, 65 + - SUM ( DISTINCT - + 20 ) + - + ( NULLIF ( - 24, - COUNT ( * ) + + 1 ) ) AS col1
----
-8171
109

onlyif mysql # aggregate syntax: 
query I rowsort label-6814
SELECT 28 + + - COUNT( 50 ) * + + 16
----
12

skipif mysql # not compatible
query I rowsort label-6814
SELECT 28 + + - COUNT ( 50 ) * + + 16
----
12

query I rowsort
SELECT - NULLIF ( - 29, - 91 )
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-6816
SELECT 74 + - ( - 76 ) * - ( - COUNT( * ) ) AS col1
----
150

skipif mysql # not compatible
query I rowsort label-6816
SELECT 74 + - ( - 76 ) * - ( - COUNT ( * ) ) AS col1
----
150

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6817
SELECT ALL + 75 * COUNT( * ) + + COUNT( * ) + + 83 + - - COALESCE ( 28, + CASE + 62 WHEN - COUNT( * ) THEN + + NULLIF ( + + 88, SUM( ALL CAST( NULL AS SIGNED ) ) ) * 74 ELSE NULL END ) * + + NULLIF ( + - 9, 16 * 79 * + COUNT( * ) ) * - 50 * - 60
----
-755841

skipif mysql # not compatible
query I rowsort label-6817
SELECT ALL + 75 * COUNT ( * ) + + COUNT ( * ) + + 83 + - - COALESCE ( 28, + CASE + 62 WHEN - COUNT ( * ) THEN + + NULLIF ( + + 88, SUM ( ALL CAST ( NULL AS INTEGER ) ) ) * 74 ELSE NULL END ) * + + NULLIF ( + - 9, 16 * 79 * + COUNT ( * ) ) * - 50 * - 60
----
-755841

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6819
SELECT AVG ( + + 23 ) + + 57 + - ( + CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-6819
SELECT AVG ( + + 23 ) + + 57 + - ( + CAST ( NULL AS INTEGER ) )
----
NULL

query I rowsort
SELECT ALL + 74 * + + 62
----
4588

onlyif mysql # aggregate syntax: 
query I rowsort label-6821
SELECT DISTINCT - 20 - 3 + + 32 * + NULLIF ( - 14, - - COUNT( * ) + - 50 ) col0
----
-471

skipif mysql # not compatible
query I rowsort label-6821
SELECT DISTINCT - 20 - 3 + + 32 * + NULLIF ( - 14, - - COUNT ( * ) + - 50 ) col0
----
-471

query I rowsort
SELECT 4 + + + 16
----
20

query II rowsort
SELECT - 30 AS col0, 74 AS col1
----
-30
74

query I rowsort
SELECT ALL + 75 * - 97 * - - 27 AS col1
----
-196425

query III rowsort
SELECT ALL 37 AS col0, 17 * 96 * + - 4, - 99 AS col0
----
37
-6528
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-6826
SELECT 94 + - MAX( DISTINCT 48 ) AS col1
----
46

skipif mysql # not compatible
query I rowsort label-6826
SELECT 94 + - MAX ( DISTINCT 48 ) AS col1
----
46

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6828
SELECT ALL 98 DIV - 37 col2
----
-2

skipif mysql # not compatible
query I rowsort label-6828
SELECT ALL 98 / - 37 col2
----
-2

query II rowsort
SELECT - 4 AS col2, + 23
----
-4
23

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6830
SELECT 0 + - CAST( NULL AS DECIMAL ) - - COUNT( * ) + 65 + + 89 + + 38
----
NULL

skipif mysql # not compatible
query I rowsort label-6830
SELECT 0 + - CAST ( NULL AS REAL ) - - COUNT ( * ) + 65 + + 89 + + 38
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6831
SELECT - ( - - 82 ) * - - 98 + 25 + - 4 * 84 + + 80 DIV + ( + + 71 ) + + + 80 - ( 51 ) * + 0 + 75 AS col0
----
-8191

skipif mysql # not compatible
query I rowsort label-6831
SELECT - ( - - 82 ) * - - 98 + 25 + - 4 * 84 + + 80 / + ( + + 71 ) + + + 80 - ( 51 ) * + 0 + 75 AS col0
----
-8191

query I rowsort
SELECT DISTINCT 51 * + 45
----
2295

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query III rowsort label-6833
SELECT ALL 94 * + CAST( + + MAX( ALL - 20 ) AS SIGNED ) + + + 79 + 92 AS col0, 39, 58 AS col0
----
-1709
39
58

skipif mysql # not compatible
query III rowsort label-6833
SELECT ALL 94 * + CAST ( + + MAX ( ALL - 20 ) AS INTEGER ) + + + 79 + 92 AS col0, 39, 58 AS col0
----
-1709
39
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6834
SELECT ALL - 71 * 84 * - 42 * COALESCE ( + 98, + + 28, + 69 ) + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6834
SELECT ALL - 71 * 84 * - 42 * COALESCE ( + 98, + + 28, + 69 ) + - CAST ( NULL AS INTEGER )
----
NULL

query II rowsort
SELECT ALL - 60 AS col1, 72
----
-60
72

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6836
SELECT + COUNT( * ) + + COALESCE ( COUNT( * ), - 75, - ( - 5 ) * 60 + + SUM( + 96 ) + 67 + + 91 ) DIV - - MAX( ALL - 39 ) * + 6, 51 - + 2 + + 59 AS col2
----
1
108

skipif mysql # not compatible
query II rowsort label-6836
SELECT + COUNT ( * ) + + COALESCE ( COUNT ( * ), - 75, - ( - 5 ) * 60 + + SUM ( + 96 ) + 67 + + 91 ) / - - MAX ( ALL - 39 ) * + 6, 51 - + 2 + + 59 AS col2
----
1
108

onlyif mysql # aggregate syntax: 
query I rowsort label-6837
SELECT COUNT( * ) * - 42 + + 0 * - 94 * + 51
----
-42

skipif mysql # not compatible
query I rowsort label-6837
SELECT COUNT ( * ) * - 42 + + 0 * - 94 * + 51
----
-42

query I rowsort
SELECT ALL - 11 + + 11 * + 3
----
22

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6839
SELECT + 89 * - 82 AS col0, - COALESCE ( + + COUNT( * ), 67 ) * + 36 DIV - 40 * - COUNT( * ) + - 37 * - + 4 AS col2
----
-7298
148

skipif mysql # not compatible
query II rowsort label-6839
SELECT + 89 * - 82 AS col0, - COALESCE ( + + COUNT ( * ), 67 ) * + 36 / - 40 * - COUNT ( * ) + - 37 * - + 4 AS col2
----
-7298
148

onlyif mysql # aggregate syntax: 
query I rowsort label-6840
SELECT MAX( DISTINCT - 2 ) * - COUNT( * ) - - ( - 91 )
----
-89

skipif mysql # not compatible
query I rowsort label-6840
SELECT MAX ( DISTINCT - 2 ) * - COUNT ( * ) - - ( - 91 )
----
-89

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6843
SELECT DISTINCT - ( - + COUNT( * ) ) + - - 13
----
14

skipif mysql # not compatible
query I rowsort label-6843
SELECT DISTINCT - ( - + COUNT ( * ) ) + - - 13
----
14

query II rowsort
SELECT + 50 AS col0, 68 col1
----
50
68

onlyif mysql # aggregate syntax: 
query I rowsort label-6845
SELECT DISTINCT + 85 + COUNT( * ) * ( - + COUNT( * ) ) * CASE - - 96 WHEN - 23 THEN + - MAX( ALL + 94 ) ELSE NULL END * + 71
----
NULL

skipif mysql # not compatible
query I rowsort label-6845
SELECT DISTINCT + 85 + COUNT ( * ) * ( - + COUNT ( * ) ) * CASE - - 96 WHEN - 23 THEN + - MAX ( ALL + 94 ) ELSE NULL END * + 71
----
NULL

query I rowsort
SELECT DISTINCT + 63 - - + 34 AS col2
----
97

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

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

query I rowsort
SELECT 91 * + 22 + 34
----
2036

query I rowsort
SELECT - ( - 58 ) AS col1
----
58

onlyif mysql # DIV for integer division: 
query I rowsort label-6850
SELECT 95 DIV 91 * + - 99 * + 21 col2
----
-2079

skipif mysql # not compatible
query I rowsort label-6850
SELECT 95 / 91 * + - 99 * + 21 col2
----
-2079

query I rowsort
SELECT + 71 * - 31 AS col0
----
-2201

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

skipif mysql # not compatible
query I rowsort label-6852
SELECT ALL MIN ( ALL 52 )
----
52

onlyif mysql # DIV for integer division: 
query I rowsort label-6853
SELECT DISTINCT - 89 DIV - 38 AS col2
----
2

skipif mysql # not compatible
query I rowsort label-6853
SELECT DISTINCT - 89 / - 38 AS col2
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-6854
SELECT ALL - COUNT( + + 59 ) * 24 + - 57
----
-81

skipif mysql # not compatible
query I rowsort label-6854
SELECT ALL - COUNT ( + + 59 ) * 24 + - 57
----
-81

onlyif mysql # DIV for integer division: 
query I rowsort label-6855
SELECT - 58 DIV 48 * - + 38
----
38

skipif mysql # not compatible
query I rowsort label-6855
SELECT - 58 / 48 * - + 38
----
38

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6857
SELECT - 93 DIV + NULLIF ( - 61, - 96 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-6857
SELECT - 93 / + NULLIF ( - 61, - 96 ) AS col2
----
1

query I rowsort
SELECT - 81 + + + 77
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-6859
SELECT - 57 + CASE 66 WHEN - + 40 * - - COALESCE ( 35, 59 * COUNT( * ) ) * + COUNT( * ) THEN + - 88 ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6859
SELECT - 57 + CASE 66 WHEN - + 40 * - - COALESCE ( 35, 59 * COUNT ( * ) ) * + COUNT ( * ) THEN + - 88 ELSE NULL END AS col2
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6861
SELECT - - 63 + 54 - - 82 * COUNT( * )
----
199

skipif mysql # not compatible
query I rowsort label-6861
SELECT - - 63 + 54 - - 82 * COUNT ( * )
----
199

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6864
SELECT - CASE + 53 WHEN - 63 THEN NULL WHEN - - ( + 6 ) THEN MIN( + 53 ) + - 68 + + - 14 + - + COUNT( * ) * - - CAST( - + 0 AS SIGNED ) END / + + 62 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6864
SELECT - CASE + 53 WHEN - 63 THEN NULL WHEN - - ( + 6 ) THEN MIN ( + 53 ) + - 68 + + - 14 + - + COUNT ( * ) * - - CAST ( - + 0 AS INTEGER ) END / + + 62 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query III rowsort label-6865
SELECT - + 2 + - CASE WHEN NOT NULL NOT IN ( - COUNT( * ), + 54 * + 49 * - 29 - 91 ) THEN NULL WHEN NOT NULL NOT BETWEEN NULL AND - 93 * + COUNT( * ) THEN + 98 WHEN NOT - 11 + + - 74 + - - 48 + - - 43 BETWEEN - NULLIF ( + 27, + 74 * - 22 ) AND + 49 THEN NULL END col0, - 67 AS col2, 21 * + + COALESCE ( + - 56, - ( 16 ), 39 )
----
NULL
-67
-1176

skipif mysql # not compatible
query III rowsort label-6865
SELECT - + 2 + - CASE WHEN NOT NULL NOT IN ( - COUNT ( * ), + 54 * + 49 * - 29 - 91 ) THEN NULL WHEN NOT NULL NOT BETWEEN NULL AND - 93 * + COUNT ( * ) THEN + 98 WHEN NOT - 11 + + - 74 + - - 48 + - - 43 BETWEEN - NULLIF ( + 27, + 74 * - 22 ) AND + 49 THEN NULL END col0, - 67 AS col2, 21 * + + COALESCE ( + - 56, - ( 16 ), 39 )
----
NULL
-67
-1176

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6866
SELECT COALESCE ( + 54, - 48 + + + ( - SUM( + + 94 ) ), + + 9 + 65 + + 16 * COUNT( * ) + + 49 + + - COUNT( * ) * + - SUM( + 43 ) * 11 / + - 3 * - 56 ) * + + 13 * - - CAST( NULL AS SIGNED ) + + 75 + - + MIN( DISTINCT 82 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6866
SELECT COALESCE ( + 54, - 48 + + + ( - SUM ( + + 94 ) ), + + 9 + 65 + + 16 * COUNT ( * ) + + 49 + + - COUNT ( * ) * + - SUM ( + 43 ) * 11 / + - 3 * - 56 ) * + + 13 * - - CAST ( NULL AS INTEGER ) + + 75 + - + MIN ( DISTINCT 82 )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6867
SELECT ALL - 30 * + + 12 + 11 + - + 3 - - 35 * + 23 * - 84 * + + CASE WHEN ( NULL ) IS NULL THEN + - COALESCE ( - 32, COALESCE ( + 29, + 35 ) + + 80 + + COUNT( ALL 3 ) - + 57, 89 + 44 DIV + 85 * + + 53 ) ELSE NULL END AS col2
----
-2164192

skipif mysql # not compatible
query I rowsort label-6867
SELECT ALL - 30 * + + 12 + 11 + - + 3 - - 35 * + 23 * - 84 * + + CASE WHEN ( NULL ) IS NULL THEN + - COALESCE ( - 32, COALESCE ( + 29, + 35 ) + + 80 + + COUNT ( ALL 3 ) - + 57, 89 + 44 / + 85 * + + 53 ) ELSE NULL END AS col2
----
-2164192

query I rowsort
SELECT + - 19 * + - 46
----
874

query I rowsort
SELECT + + 61 * - ( - 11 ) + - + 57
----
614

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6870
SELECT ALL - - CASE - 73 WHEN + + MAX( + 35 ) THEN + 47 END * + - ( + + CAST( NULL AS SIGNED ) ) * - 42 * + + 20 + - SUM( ( 35 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-6870
SELECT ALL - - CASE - 73 WHEN + + MAX ( + 35 ) THEN + 47 END * + - ( + + CAST ( NULL AS INTEGER ) ) * - 42 * + + 20 + - SUM ( ( 35 ) )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6871
SELECT DISTINCT + 44 * COUNT( * ) + + - CAST( NULL AS SIGNED ) - + + NULLIF ( + 50, MIN( - + 14 ) + - 46 ) - - + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-6871
SELECT DISTINCT + 44 * COUNT ( * ) + + - CAST ( NULL AS INTEGER ) - + + NULLIF ( + 50, MIN ( - + 14 ) + - 46 ) - - + COUNT ( * )
----
NULL

query I rowsort
SELECT ALL + - 19 col0
----
-19

query I rowsort
SELECT + 63 * + 94 * + 40
----
236880

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6874
SELECT DISTINCT - SUM( 92 ) DIV - + 71
----
1

skipif mysql # not compatible
query I rowsort label-6874
SELECT DISTINCT - SUM ( 92 ) / - + 71
----
1

query I rowsort
SELECT + 95 + - 21 AS col2
----
74

query II rowsort
SELECT ALL + 49 AS col1, + 20 col1
----
49
20

query I rowsort
SELECT + 47 * - 13 AS col1
----
-611

query I rowsort
SELECT + 65 + - 29 + - - 30 * + + 73
----
2226

onlyif mysql # aggregate syntax: 
query I rowsort label-6879
SELECT DISTINCT - NULLIF ( 87, + 53 + - + 6 ) * - - 86 + 61 * - COUNT( * )
----
-7543

skipif mysql # not compatible
query I rowsort label-6879
SELECT DISTINCT - NULLIF ( 87, + 53 + - + 6 ) * - - 86 + 61 * - COUNT ( * )
----
-7543

query I rowsort
SELECT DISTINCT 88 * 50 AS col1
----
4400

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

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

query I rowsort
SELECT + 11 * + 56
----
616

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6883
SELECT + 17 + + 29 * + + 19 col1, 47 DIV + + COUNT( * )
----
568
47

skipif mysql # not compatible
query II rowsort label-6883
SELECT + 17 + + 29 * + + 19 col1, 47 / + + COUNT ( * )
----
568
47

query I rowsort
SELECT ALL 23 + + 53 + 14 col2
----
90

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6885
SELECT MAX( ALL - CAST( NULL AS SIGNED ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6885
SELECT MAX ( ALL - CAST ( NULL AS INTEGER ) ) AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6886
SELECT - 93 + - MIN( ALL - + 5 ) DIV + - 71
----
-93

skipif mysql # not compatible
query I rowsort label-6886
SELECT - 93 + - MIN ( ALL - + 5 ) / + - 71
----
-93

query I rowsort
SELECT - 11 + - - 27 AS col2
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-6888
SELECT ALL SUM( + + 87 ) col2
----
87

skipif mysql # not compatible
query I rowsort label-6888
SELECT ALL SUM ( + + 87 ) col2
----
87

query I rowsort
SELECT + 81 * 76 AS col1
----
6156

query I rowsort
SELECT - 87 + 94
----
7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6891
SELECT ALL - ( COUNT( * ) ) + + ( COALESCE ( 25, + - 15 ) ) * - - 7 * - + 47 + + + 2 + - 35 DIV + 91
----
-8224

skipif mysql # not compatible
query I rowsort label-6891
SELECT ALL - ( COUNT ( * ) ) + + ( COALESCE ( 25, + - 15 ) ) * - - 7 * - + 47 + + + 2 + - 35 / + 91
----
-8224

onlyif mysql # aggregate syntax: 
query I rowsort label-6892
SELECT - 51 + + COUNT( DISTINCT + 85 ) + 84 AS col2
----
34

skipif mysql # not compatible
query I rowsort label-6892
SELECT - 51 + + COUNT ( DISTINCT + 85 ) + 84 AS col2
----
34

query I rowsort
SELECT ALL + 40 * 11 AS col1
----
440

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6894
SELECT - + 17 / + - COUNT( * ) + + ( - - ( CASE - 45 WHEN 67 THEN + - MIN( CAST( 76 AS SIGNED ) ) / + 71 + - 77 - 69 WHEN - - 78 * + - 63 * - + 39 THEN NULL END ) ) + + + 53 / - - 98
----
NULL

skipif mysql # not compatible
query I rowsort label-6894
SELECT - + 17 / + - COUNT ( * ) + + ( - - ( CASE - 45 WHEN 67 THEN + - MIN ( CAST ( 76 AS INTEGER ) ) / + 71 + - 77 - 69 WHEN - - 78 * + - 63 * - + 39 THEN NULL END ) ) + + + 53 / - - 98
----
NULL

query I rowsort
SELECT ALL + + 42 + - 9 + 14 + + 94 + - - 69 AS col2
----
210

query I rowsort
SELECT + 48 * + 89 AS col1
----
4272

onlyif mysql # aggregate syntax: 
query II rowsort label-6897
SELECT - ( + 44 ) * - - CASE 61 WHEN + 7 THEN NULL ELSE - SUM( 92 ) + + 13 END, 0 col2
----
3476
0

skipif mysql # not compatible
query II rowsort label-6897
SELECT - ( + 44 ) * - - CASE 61 WHEN + 7 THEN NULL ELSE - SUM ( 92 ) + + 13 END, 0 col2
----
3476
0

query I rowsort
SELECT + 62 * 19 AS col2
----
1178

query I rowsort
SELECT ALL - + 30 * - - 7
----
-210

onlyif mysql # aggregate syntax: 
query I rowsort label-6900
SELECT DISTINCT + + 67 * 43 * CASE 82 WHEN - 44 * - - CASE + 44 WHEN 22 - - 78 THEN + 0 * + ( - 49 ) WHEN - 24 THEN NULL WHEN + 85 THEN NULL ELSE 62 * + + ( MAX( DISTINCT 69 ) ) * - + 34 * - COUNT( * ) * - - 69 END + 92 * - 52 * + COUNT( * ) - - CASE + ( - 5 ) WHEN + 7 + 27 THEN - NULLIF ( 66, 48 ) WHEN - 16 THEN NULL END THEN 32 ELSE 33 * + 96 END * + 93
----
848811744

skipif mysql # not compatible
query I rowsort label-6900
SELECT DISTINCT + + 67 * 43 * CASE 82 WHEN - 44 * - - CASE + 44 WHEN 22 - - 78 THEN + 0 * + ( - 49 ) WHEN - 24 THEN NULL WHEN + 85 THEN NULL ELSE 62 * + + ( MAX ( DISTINCT 69 ) ) * - + 34 * - COUNT ( * ) * - - 69 END + 92 * - 52 * + COUNT ( * ) - - CASE + ( - 5 ) WHEN + 7 + 27 THEN - NULLIF ( 66, 48 ) WHEN - 16 THEN NULL END THEN 32 ELSE 33 * + 96 END * + 93
----
848811744

query I rowsort
SELECT + - 5 * + 82 + - 86 + - 14 AS col1
----
-510

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6902
SELECT DISTINCT + - 50 col1, + 65 DIV + MIN( 1 ) - - 2 AS col1
----
-50
67

skipif mysql # not compatible
query II rowsort label-6902
SELECT DISTINCT + - 50 col1, + 65 / + MIN ( 1 ) - - 2 AS col1
----
-50
67

query I rowsort
SELECT - + 65 * 26 - + 73 AS col0
----
-1763

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6904
SELECT ALL - - COUNT( * ) * 34 - CAST( NULL AS SIGNED ) + + 66 + 21
----
NULL

skipif mysql # not compatible
query I rowsort label-6904
SELECT ALL - - COUNT ( * ) * 34 - CAST ( NULL AS INTEGER ) + + 66 + 21
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6905
SELECT - COUNT( * ) + COUNT( 29 ) AS col0, - 63 AS col0
----
0
-63

skipif mysql # not compatible
query II rowsort label-6905
SELECT - COUNT ( * ) + COUNT ( 29 ) AS col0, - 63 AS col0
----
0
-63

query II rowsort
SELECT ALL + - 51 AS col2, - 35 * - 20
----
-51
700

onlyif mysql # aggregate syntax: 
query I rowsort label-6907
SELECT - COUNT( * ) + 73 AS col2
----
72

skipif mysql # not compatible
query I rowsort label-6907
SELECT - COUNT ( * ) + 73 AS col2
----
72

query I rowsort
SELECT - ( - 12 ) * 23 + - ( - - 17 )
----
259

onlyif mysql # aggregate syntax: 
query I rowsort label-6909
SELECT - COUNT( * ) * + 46 + 26 + 40 AS col1
----
20

skipif mysql # not compatible
query I rowsort label-6909
SELECT - COUNT ( * ) * + 46 + 26 + 40 AS col1
----
20

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6910
SELECT - 69 AS col1, + 96 DIV + - MIN( DISTINCT + 13 ) + - + 4
----
-69
-11

skipif mysql # not compatible
query II rowsort label-6910
SELECT - 69 AS col1, + 96 / + - MIN ( DISTINCT + 13 ) + - + 4
----
-69
-11

query I rowsort
SELECT - 33 * 21 + + 97 + - + 8 * - + 19 col2
----
-444

query I rowsort
SELECT - 61 * 14 + + + 89 AS col1
----
-765

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6913
SELECT ALL + 44 DIV - - MAX( + 55 )
----
0

skipif mysql # not compatible
query I rowsort label-6913
SELECT ALL + 44 / - - MAX ( + 55 )
----
0

query I rowsort
SELECT 49 + 30
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-6915
SELECT ALL - - SUM( DISTINCT + 49 ) AS col2
----
49

skipif mysql # not compatible
query I rowsort label-6915
SELECT ALL - - SUM ( DISTINCT + 49 ) AS col2
----
49

onlyif mysql # aggregate syntax: 
query II rowsort label-6916
SELECT ALL COUNT( * ) * + - 41 * + - 85 * - 64 / - - 48 / CASE + 75 WHEN + + 46 THEN NULL WHEN + 35 THEN 73 END * + - 51 + + 18, - 37 AS col0
----
NULL
-37

skipif mysql # not compatible
query II rowsort label-6916
SELECT ALL COUNT ( * ) * + - 41 * + - 85 * - 64 / - - 48 / CASE + 75 WHEN + + 46 THEN NULL WHEN + 35 THEN 73 END * + - 51 + + 18, - 37 AS col0
----
NULL
-37

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6917
SELECT MIN( DISTINCT - + 0 ) DIV + 57 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-6917
SELECT MIN ( DISTINCT - + 0 ) / + 57 AS col2
----
0

query I rowsort
SELECT ALL - 44 * - 69 AS col0
----
3036

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6919
SELECT COUNT( * ) * - CAST( + 79 AS SIGNED ) / - - 96 * + + 47 - - 55 + COUNT( * ) - 76 + + 25 * - CAST( NULL AS DECIMAL ) * - - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-6919
SELECT COUNT ( * ) * - CAST ( + 79 AS INTEGER ) / - - 96 * + + 47 - - 55 + COUNT ( * ) - 76 + + 25 * - CAST ( NULL AS REAL ) * - - COUNT ( * )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6920
SELECT 78 DIV - 94 * + NULLIF ( 74, 60 ) * - - COALESCE ( - 78, + 29, + 19 )
----
0

skipif mysql # not compatible
query I rowsort label-6920
SELECT 78 / - 94 * + NULLIF ( 74, 60 ) * - - COALESCE ( - 78, + 29, + 19 )
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-6921
SELECT NULLIF ( 87, 73 * + 56 + 40 ) DIV 77 col2
----
1

skipif mysql # not compatible
query I rowsort label-6921
SELECT NULLIF ( 87, 73 * + 56 + 40 ) / 77 col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6922
SELECT MAX( + - 37 ) * + 86
----
-3182

skipif mysql # not compatible
query I rowsort label-6922
SELECT MAX ( + - 37 ) * + 86
----
-3182

query I rowsort
SELECT 23 * + - 88 * + 21 AS col2
----
-42504

query II rowsort
SELECT ALL ( + 31 ) + + + 84 * + 16 + - 74 AS col1, - 88 * + 14 AS col2
----
1301
-1232

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

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

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

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

query I rowsort
SELECT ALL 22 * - 90 AS col2
----
-1980

query II rowsort
SELECT NULLIF ( 8, - + ( 10 ) ) * + 65 + + 81 * + + 7 col1, 31
----
1087
31

onlyif mysql # aggregate syntax: 
query I rowsort label-6929
SELECT ALL COUNT( * ) + - - 72
----
73

skipif mysql # not compatible
query I rowsort label-6929
SELECT ALL COUNT ( * ) + - - 72
----
73

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6930
SELECT COUNT( * ) + ( + CAST( COALESCE ( + 71, COUNT( DISTINCT + 34 ) ) AS SIGNED ) ) AS col0, 36 col1
----
72
36

skipif mysql # not compatible
query II rowsort label-6930
SELECT COUNT ( * ) + ( + CAST ( COALESCE ( + 71, COUNT ( DISTINCT + 34 ) ) AS INTEGER ) ) AS col0, 36 col1
----
72
36

onlyif mysql # aggregate syntax: 
query I rowsort label-6931
SELECT ALL - 80 - - COUNT( * ) + - - 14
----
-65

skipif mysql # not compatible
query I rowsort label-6931
SELECT ALL - 80 - - COUNT ( * ) + - - 14
----
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-6932
SELECT DISTINCT COUNT( * ) * 51 * 11
----
561

skipif mysql # not compatible
query I rowsort label-6932
SELECT DISTINCT COUNT ( * ) * 51 * 11
----
561

query I rowsort
SELECT + 82 * - 22 AS col1
----
-1804

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

query I rowsort
SELECT DISTINCT + 50 * 68
----
3400

query I rowsort
SELECT ALL 79 - - - 85 - 55 - + 73 * - 95 * + - 95
----
-658886

onlyif mysql # DIV for integer division: 
query I rowsort label-6937
SELECT - 49 DIV 38
----
-1

skipif mysql # not compatible
query I rowsort label-6937
SELECT - 49 / 38
----
-1

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

skipif mysql # not compatible
query I rowsort label-6938
SELECT 94 * COUNT ( * ) * + 25 AS col0
----
2350

query I rowsort
SELECT + 32 * - - 25 AS col0
----
800

query I rowsort
SELECT ( + 22 ) * + 53 AS col2
----
1166

onlyif mysql # aggregate syntax: 
query II rowsort label-6941
SELECT DISTINCT - - ( - SUM( - + ( 15 ) ) ) AS col1, 43 AS col2
----
15
43

skipif mysql # not compatible
query II rowsort label-6941
SELECT DISTINCT - - ( - SUM ( - + ( 15 ) ) ) AS col1, 43 AS col2
----
15
43

query I rowsort
SELECT + 98 * - - NULLIF ( 4, - - 46 ) * - 68
----
-26656

query II rowsort
SELECT DISTINCT - NULLIF ( - 3, + 62 + - 94 ), + 75 + 99 col2
----
3
174

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6944
SELECT DISTINCT + 30 + + 54 + - 10 * - + CASE + + 99 WHEN - CAST( NULL AS SIGNED ) / + 70 THEN CAST( NULL AS SIGNED ) WHEN COUNT( * ) THEN 79 * + 37 END * + 71 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6944
SELECT DISTINCT + 30 + + 54 + - 10 * - + CASE + + 99 WHEN - CAST ( NULL AS INTEGER ) / + 70 THEN CAST ( NULL AS INTEGER ) WHEN COUNT ( * ) THEN 79 * + 37 END * + 71 AS col0
----
NULL

query I rowsort
SELECT 4 * 20
----
80

query I rowsort
SELECT ALL + 12 + + 64 * 15 AS col2
----
972

onlyif mysql # aggregate syntax: 
query I rowsort label-6947
SELECT 84 + - COUNT( * ) - - 74 * - 64 * - - 97
----
-459309

skipif mysql # not compatible
query I rowsort label-6947
SELECT 84 + - COUNT ( * ) - - 74 * - 64 * - - 97
----
-459309

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6948
SELECT + 79 * - 92 + - + 59 * CAST( 93 AS SIGNED ) AS col0, 12 col0
----
-12755
12

skipif mysql # not compatible
query II rowsort label-6948
SELECT + 79 * - 92 + - + 59 * CAST ( 93 AS INTEGER ) AS col0, 12 col0
----
-12755
12

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6949
SELECT ALL - ( - CASE - + 26 WHEN - ( + 94 ) THEN NULL WHEN - 49 THEN NULL WHEN - 80 THEN NULL WHEN + - 79 * + 84 THEN NULL ELSE - 15 END ) + + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6949
SELECT ALL - ( - CASE - + 26 WHEN - ( + 94 ) THEN NULL WHEN - 49 THEN NULL WHEN - 80 THEN NULL WHEN + - 79 * + 84 THEN NULL ELSE - 15 END ) + + CAST ( NULL AS INTEGER ) AS col2
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6951
SELECT COUNT( * ) + 29
----
30

skipif mysql # not compatible
query I rowsort label-6951
SELECT COUNT ( * ) + 29
----
30

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6952
SELECT DISTINCT CAST( - NULLIF ( 42, - 97 + 90 - - COUNT( * ) DIV SUM( DISTINCT + 53 ) + + - ( - 90 ) ) AS SIGNED ) * - COUNT( * ) * - COALESCE ( - 70, + - 26 ) * + + 84 - - 91 * - 31 + 27 DIV - 53 AS col1
----
244139

skipif mysql # not compatible
query I rowsort label-6952
SELECT DISTINCT CAST ( - NULLIF ( 42, - 97 + 90 - - COUNT ( * ) / SUM ( DISTINCT + 53 ) + + - ( - 90 ) ) AS INTEGER ) * - COUNT ( * ) * - COALESCE ( - 70, + - 26 ) * + + 84 - - 91 * - 31 + 27 / - 53 AS col1
----
244139

onlyif mysql # aggregate syntax: 
query I rowsort label-6953
SELECT DISTINCT + ( - COUNT( * ) ) + - 62 AS col0
----
-63

skipif mysql # not compatible
query I rowsort label-6953
SELECT DISTINCT + ( - COUNT ( * ) ) + - 62 AS col0
----
-63

query I rowsort
SELECT ALL - 50 + - 36 AS col0
----
-86

query I rowsort
SELECT 9 * 76 AS col0
----
684

query I rowsort
SELECT 45 * 39 * - - 49 col0
----
85995

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6957
SELECT 28 AS col1, + COUNT( DISTINCT - 88 ) + 6 DIV + 64 AS col2
----
28
1

skipif mysql # not compatible
query II rowsort label-6957
SELECT 28 AS col1, + COUNT ( DISTINCT - 88 ) + 6 / + 64 AS col2
----
28
1

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

skipif mysql # not compatible
query I rowsort label-6958
SELECT ALL COUNT ( - + 17 ) AS col0
----
1

query I rowsort
SELECT 64 + - 51 + + + 96 * 87 * + - 76 * 98
----
-62205683

onlyif mysql # aggregate syntax: 
query I rowsort label-6960
SELECT - COUNT( * ) * - 31 + + - 2 AS col0
----
29

skipif mysql # not compatible
query I rowsort label-6960
SELECT - COUNT ( * ) * - 31 + + - 2 AS col0
----
29

query I rowsort
SELECT ALL 83 - 78
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-6962
SELECT 94 * + - 87 * MAX( + 59 ) * + ( - + 15 ) + + - 65
----
7237465

skipif mysql # not compatible
query I rowsort label-6962
SELECT 94 * + - 87 * MAX ( + 59 ) * + ( - + 15 ) + + - 65
----
7237465

onlyif mysql # aggregate syntax: 
query I rowsort label-6963
SELECT ALL + NULLIF ( COUNT( - 93 ), + COUNT( * ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6963
SELECT ALL + NULLIF ( COUNT ( - 93 ), + COUNT ( * ) ) AS col0
----
NULL

query I rowsort
SELECT DISTINCT 68 * + CASE 10 WHEN - 78 * + - 1 * 54 * + + CASE - 40 WHEN 48 / - 27 THEN 30 + + + ( - 44 ) END * - - 80 THEN - 21 WHEN 26 THEN - - 17 END * - + 32 * - + 6 * 19 * - - 53 AS col2
----
NULL

query I rowsort
SELECT + + 82 * + + 99
----
8118

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

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

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

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

query I rowsort
SELECT - - 42 col1
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-6969
SELECT + - NULLIF ( + 99, + 25 + 78 + 36 + - 36 ) * - MIN( + 11 ) * - 93
----
-101277

skipif mysql # not compatible
query I rowsort label-6969
SELECT + - NULLIF ( + 99, + 25 + 78 + 36 + - 36 ) * - MIN ( + 11 ) * - 93
----
-101277

query I rowsort
SELECT DISTINCT + + 48 AS col1
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-6971
SELECT ALL COUNT( * ) * - - 55 + + + 47 AS col2
----
102

skipif mysql # not compatible
query I rowsort label-6971
SELECT ALL COUNT ( * ) * - - 55 + + + 47 AS col2
----
102

onlyif mysql # DIV for integer division: 
query I rowsort label-6972
SELECT DISTINCT 66 * - 57 + - 54 DIV + 53 AS col0
----
-3763

skipif mysql # not compatible
query I rowsort label-6972
SELECT DISTINCT 66 * - 57 + - 54 / + 53 AS col0
----
-3763

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6973
SELECT 55 * + - MIN( + CAST( - - 23 AS SIGNED ) ) * + 3 + - 68 + 46 + - ( + 44 ) AS col0
----
-3861

skipif mysql # not compatible
query I rowsort label-6973
SELECT 55 * + - MIN ( + CAST ( - - 23 AS INTEGER ) ) * + 3 + - 68 + 46 + - ( + 44 ) AS col0
----
-3861

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6974
SELECT + 88 * CAST( 67 AS SIGNED ) * + 14 * - + 13 AS col0
----
-1073072

skipif mysql # not compatible
query I rowsort label-6974
SELECT + 88 * CAST ( 67 AS INTEGER ) * + 14 * - + 13 AS col0
----
-1073072

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6975
SELECT NULLIF ( + CAST( NULL AS SIGNED ), 90 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6975
SELECT NULLIF ( + CAST ( NULL AS INTEGER ), 90 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6976
SELECT ALL + COUNT( * ) * COUNT( * ) + - 5 + + 27 AS col0
----
23

skipif mysql # not compatible
query I rowsort label-6976
SELECT ALL + COUNT ( * ) * COUNT ( * ) + - 5 + + 27 AS col0
----
23

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

query I rowsort
SELECT - 52 * - 11 AS col1
----
572

onlyif mysql # aggregate syntax: 
query II rowsort label-6979
SELECT ALL + ( - + NULLIF ( - 28, ( 9 ) ) ) * CASE + 68 WHEN + 33 * - ( - 37 ) THEN 9 / - COUNT( - - 81 ) + + 9 WHEN + - 45 THEN NULL WHEN + + COUNT( * ) THEN + COUNT( + ( + 35 ) ) END * 44 * - - 56 + - 49 + - 23 + - 55 AS col0, 36 * + 95
----
NULL
3420

skipif mysql # not compatible
query II rowsort label-6979
SELECT ALL + ( - + NULLIF ( - 28, ( 9 ) ) ) * CASE + 68 WHEN + 33 * - ( - 37 ) THEN 9 / - COUNT ( - - 81 ) + + 9 WHEN + - 45 THEN NULL WHEN + + COUNT ( * ) THEN + COUNT ( + ( + 35 ) ) END * 44 * - - 56 + - 49 + - 23 + - 55 AS col0, 36 * + 95
----
NULL
3420

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6981
SELECT DISTINCT COALESCE ( + 54, + + 94 + - 1 + 9, COUNT( * ) * - - 12 DIV + 79 )
----
54

skipif mysql # not compatible
query I rowsort label-6981
SELECT DISTINCT COALESCE ( + 54, + + 94 + - 1 + 9, COUNT ( * ) * - - 12 / + 79 )
----
54

query I rowsort
SELECT - 86 * - 64 AS col0
----
5504

query I rowsort
SELECT DISTINCT - NULLIF ( 22, - 96 )
----
-22

query II rowsort
SELECT ALL + 21, 61 AS col1
----
21
61

onlyif mysql # DIV for integer division: 
query I rowsort label-6985
SELECT DISTINCT - 5 DIV + 14 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-6985
SELECT DISTINCT - 5 / + 14 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6986
SELECT DISTINCT - COUNT( 22 )
----
-1

skipif mysql # not compatible
query I rowsort label-6986
SELECT DISTINCT - COUNT ( 22 )
----
-1

query I rowsort
SELECT ALL 95 * - 79 * 5 * + - 88 + - - 11 + 11
----
3302222

onlyif mysql # aggregate syntax: 
query I rowsort label-6988
SELECT - MIN( DISTINCT - + 20 ) AS col1
----
20

skipif mysql # not compatible
query I rowsort label-6988
SELECT - MIN ( DISTINCT - + 20 ) AS col1
----
20

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

query II rowsort
SELECT - 64, + 52 AS col1
----
-64
52

query I rowsort
SELECT DISTINCT + + COALESCE ( 30, 2 * - 60, + - 65 + 3 * - + 21 ) * + ( + 32 )
----
960

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6992
SELECT - - 17 + + 13 * - - COUNT( * ) + COALESCE ( - 84, 28 DIV + - 95 + + 91 * + ( - + 61 ) + - + COUNT( * ) ) AS col0
----
-54

skipif mysql # not compatible
query I rowsort label-6992
SELECT - - 17 + + 13 * - - COUNT ( * ) + COALESCE ( - 84, 28 / + - 95 + + 91 * + ( - + 61 ) + - + COUNT ( * ) ) AS col0
----
-54

query I rowsort
SELECT ALL + 48 + + 63 AS col0
----
111

query I rowsort
SELECT + 14 - ( + ( - 23 ) ) col1
----
37

onlyif mysql # DIV for integer division: 
query I rowsort label-6995
SELECT ALL 97 DIV + + ( ( - 90 ) )
----
-1

skipif mysql # not compatible
query I rowsort label-6995
SELECT ALL 97 / + + ( ( - 90 ) )
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6996
SELECT ALL - 45 + + NULLIF ( + 93, + + 7 ) - + 71 * + + 9 + + - COALESCE ( - COALESCE ( - 72, + 58 DIV - - ( - COUNT( * ) ) ), + 90, 44 + + + 93 + + 96 + - 70 DIV - 38 ) AS col2
----
-663

skipif mysql # not compatible
query I rowsort label-6996
SELECT ALL - 45 + + NULLIF ( + 93, + + 7 ) - + 71 * + + 9 + + - COALESCE ( - COALESCE ( - 72, + 58 / - - ( - COUNT ( * ) ) ), + 90, 44 + + + 93 + + 96 + - 70 / - 38 ) AS col2
----
-663

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6997
SELECT DISTINCT - - 14 + + 81 * - - CASE ( 48 ) WHEN CAST( + 2 AS SIGNED ) THEN + 25 + 0 END
----
NULL

skipif mysql # not compatible
query I rowsort label-6997
SELECT DISTINCT - - 14 + + 81 * - - CASE ( 48 ) WHEN CAST ( + 2 AS INTEGER ) THEN + 25 + 0 END
----
NULL

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

skipif mysql # not compatible
query I rowsort label-6998
SELECT ALL - 65 + - 63 * COUNT ( * ) * - COUNT ( * )
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-6999
SELECT + - MAX( + 37 ) * 0 + - - 84
----
84

skipif mysql # not compatible
query I rowsort label-6999
SELECT + - MAX ( + 37 ) * 0 + - - 84
----
84

query I rowsort
SELECT DISTINCT - CASE - 65 WHEN - CASE - 50 WHEN + 93 + + 97 * + 41 THEN NULL WHEN + + 55 THEN NULL ELSE + 86 END + + 54 THEN NULL WHEN - 98 * + 9 - + 65 THEN NULL ELSE + 18 * + 38 * 3 + ( 61 ) END + + + 77 AS col1
----
-2036

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7001
SELECT - CAST( - ( + 26 ) AS SIGNED ) AS col2
----
26

skipif mysql # not compatible
query I rowsort label-7001
SELECT - CAST ( - ( + 26 ) AS INTEGER ) AS col2
----
26

query I rowsort
SELECT + + 26 + - 6 * CASE 66 WHEN 59 THEN + 67 WHEN + 54 THEN ( + 7 ) + 12 END
----
NULL

query I rowsort
SELECT + COALESCE ( + 54, 81 + COALESCE ( - 53, - 53 * 56, + 27 - - 40 ), - 37 ) AS col0
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-7004
SELECT + COUNT( DISTINCT + COALESCE ( - 83, - + 13 + 56 / - 46 ) ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-7004
SELECT + COUNT ( DISTINCT + COALESCE ( - 83, - + 13 + 56 / - 46 ) ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7005
SELECT + CASE 68 WHEN + COUNT( * ) THEN - + AVG ( - + 43 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-7005
SELECT + CASE 68 WHEN + COUNT ( * ) THEN - + AVG ( - + 43 ) END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7006
SELECT DISTINCT - 17 DIV 99 + 63 + - 63
----
0

skipif mysql # not compatible
query I rowsort label-7006
SELECT DISTINCT - 17 / 99 + 63 + - 63
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7007
SELECT CAST( + 50 AS SIGNED ) AS col0, 12 * - 67 AS col2
----
50
-804

skipif mysql # not compatible
query II rowsort label-7007
SELECT CAST ( + 50 AS INTEGER ) AS col0, 12 * - 67 AS col2
----
50
-804

onlyif mysql # DIV for integer division: 
query I rowsort label-7008
SELECT DISTINCT - 23 DIV + 23 - - 15 AS col0
----
14

skipif mysql # not compatible
query I rowsort label-7008
SELECT DISTINCT - 23 / + 23 - - 15 AS col0
----
14

query I rowsort
SELECT + 35 * + + ( + 5 ) AS col1
----
175

query II rowsort
SELECT 86 * + + 21 * 90 * + 59 - + 18 + + 4 * + 18 * - + ( - + ( 58 ) ), + 35 AS col2
----
9594018
35

onlyif mysql # DIV for integer division: 
query I rowsort label-7011
SELECT ALL + 90 DIV + - NULLIF ( 2, + + 51 ) - - ( + 87 )
----
42

skipif mysql # not compatible
query I rowsort label-7011
SELECT ALL + 90 / + - NULLIF ( 2, + + 51 ) - - ( + 87 )
----
42

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7012
SELECT + CAST( - + 81 AS SIGNED )
----
-81

skipif mysql # not compatible
query I rowsort label-7012
SELECT + CAST ( - + 81 AS INTEGER )
----
-81

query I rowsort
SELECT + 40 + + 30 - - 77 AS col0
----
147

query I rowsort
SELECT + 99 * + 30
----
2970

onlyif mysql # aggregate syntax: 
query I rowsort label-7015
SELECT + 5 * - + SUM( ALL 37 )
----
-185

skipif mysql # not compatible
query I rowsort label-7015
SELECT + 5 * - + SUM ( ALL 37 )
----
-185

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7016
SELECT ALL COUNT( * ) DIV 28 col1, - 39
----
0
-39

skipif mysql # not compatible
query II rowsort label-7016
SELECT ALL COUNT ( * ) / 28 col1, - 39
----
0
-39

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7017
SELECT 86 * + 17 + + COUNT( * ) * 61 + 16 * + + 96 DIV 19
----
1603

skipif mysql # not compatible
query I rowsort label-7017
SELECT 86 * + 17 + + COUNT ( * ) * 61 + 16 * + + 96 / 19
----
1603

query I rowsort
SELECT - 32 * + 50 * - 42 + + 13 AS col0
----
67213

query I rowsort
SELECT + 69 + 88 AS col2
----
157

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7020
SELECT + 62 + 14 - + SUM( DISTINCT 98 ) * + 70 + + 73 DIV 73 AS col2
----
-6783

skipif mysql # not compatible
query I rowsort label-7020
SELECT + 62 + 14 - + SUM ( DISTINCT 98 ) * + 70 + + 73 / 73 AS col2
----
-6783

query I rowsort
SELECT - - 7 + + 38 + + 28 AS col1
----
73

query I rowsort
SELECT DISTINCT + 43 * 43 AS col2
----
1849

query I rowsort
SELECT + 12 * + + 27 + + + NULLIF ( + - 48, 6 * + 89 + + 26 * - + 61 + + + ( - 81 ) + - + 0 * 97 / + 72 * - 61 + 3 + - + 21 * + NULLIF ( ( + + COALESCE ( - 51, - 14 / 94 ) ), 9 ) ) + - 95 + + CASE ( 39 ) WHEN 85 THEN NULL WHEN - COALESCE ( - 69, + 93 * + + 72 + + 81, - 36 ) THEN NULL WHEN + 41 THEN 28 ELSE NULL END + - 34 * - 92
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7024
SELECT - 71 * 18 - + 96 DIV COUNT( * ) * + 30
----
-4158

skipif mysql # not compatible
query I rowsort label-7024
SELECT - 71 * 18 - + 96 / COUNT ( * ) * + 30
----
-4158

query I rowsort
SELECT - 76 + - 88 + + - 56 + - 84 AS col1
----
-304

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

skipif mysql # not compatible
query I rowsort label-7026
SELECT - MIN ( ALL - 79 )
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-7027
SELECT - 28 * - MIN( ALL 52 ) * + - ( 26 ) * 1 - + 70 + - + NULLIF ( 66, COUNT( * ) ) + + 42 * - + 28 * 19 AS col0
----
-60336

skipif mysql # not compatible
query I rowsort label-7027
SELECT - 28 * - MIN ( ALL 52 ) * + - ( 26 ) * 1 - + 70 + - + NULLIF ( 66, COUNT ( * ) ) + + 42 * - + 28 * 19 AS col0
----
-60336

query I rowsort
SELECT 92 + + + 99 * - 65 * + ( + + 52 ) col0
----
-334528

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

skipif mysql # not compatible
query I rowsort label-7029
SELECT + COUNT ( * ) / + 22 * 90 * - - 46 AS col2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-7030
SELECT DISTINCT + 49 + - 80 DIV - 30
----
51

skipif mysql # not compatible
query I rowsort label-7030
SELECT DISTINCT + 49 + - 80 / - 30
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-7031
SELECT DISTINCT + 69 + MIN( - 60 ) AS col0
----
9

skipif mysql # not compatible
query I rowsort label-7031
SELECT DISTINCT + 69 + MIN ( - 60 ) AS col0
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-7032
SELECT DISTINCT + 58 + + 19 + - + COUNT( * ) * + ( 53 ) AS col2
----
24

skipif mysql # not compatible
query I rowsort label-7032
SELECT DISTINCT + 58 + + 19 + - + COUNT ( * ) * + ( 53 ) AS col2
----
24

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7033
SELECT ALL + + 41 + + - 59 + CAST( NULL AS SIGNED ) * 93
----
NULL

skipif mysql # not compatible
query I rowsort label-7033
SELECT ALL + + 41 + + - 59 + CAST ( NULL AS INTEGER ) * 93
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7034
SELECT DISTINCT - SUM( - + CAST( + - 92 AS SIGNED ) ) * + 85 AS col0
----
-7820

skipif mysql # not compatible
query I rowsort label-7034
SELECT DISTINCT - SUM ( - + CAST ( + - 92 AS INTEGER ) ) * + 85 AS col0
----
-7820

query II rowsort
SELECT 51 * 28 AS col0, + 84 AS col0
----
1428
84

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7036
SELECT ALL + - 11 * + SUM( ALL - CAST( + + 49 AS SIGNED ) )
----
539

skipif mysql # not compatible
query I rowsort label-7036
SELECT ALL + - 11 * + SUM ( ALL - CAST ( + + 49 AS INTEGER ) )
----
539

onlyif mysql # DIV for integer division: 
query I rowsort label-7037
SELECT 97 DIV + + 56
----
1

skipif mysql # not compatible
query I rowsort label-7037
SELECT 97 / + + 56
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7038
SELECT COUNT( * ) * + - 23 AS col1
----
-23

skipif mysql # not compatible
query I rowsort label-7038
SELECT COUNT ( * ) * + - 23 AS col1
----
-23

query I rowsort
SELECT ALL - 99 - 5
----
-104

query I rowsort
SELECT ALL - 84 col2
----
-84

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7042
SELECT COUNT( * ) + + CASE - 52 WHEN + COUNT( * ) THEN + 13 * - 48 WHEN - - 96 THEN MIN( DISTINCT + 27 ) + - NULLIF ( + - 4, + + 28 ) END + 82 + - - CAST( NULL AS SIGNED ) - NULLIF ( - 40, CASE - CASE - 48 WHEN - + 2 THEN + 10 * 44 + MAX( DISTINCT + 52 ) ELSE NULL END WHEN 86 * + + 10 THEN COALESCE ( - CAST( NULL AS SIGNED ), + 70 * 3 * 47 - - 79 * - + 56 * 91 ) WHEN - 54 THEN 76 * + 53 ELSE 46 + + 87 END + + 54 ) + + NULLIF ( + 70 + + MIN( DISTINCT + ( - 8 ) ), 98 ) * 37 * 21 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7042
SELECT COUNT ( * ) + + CASE - 52 WHEN + COUNT ( * ) THEN + 13 * - 48 WHEN - - 96 THEN MIN ( DISTINCT + 27 ) + - NULLIF ( + - 4, + + 28 ) END + 82 + - - CAST ( NULL AS INTEGER ) - NULLIF ( - 40, CASE - CASE - 48 WHEN - + 2 THEN + 10 * 44 + MAX ( DISTINCT + 52 ) ELSE NULL END WHEN 86 * + + 10 THEN COALESCE ( - CAST ( NULL AS INTEGER ), + 70 * 3 * 47 - - 79 * - + 56 * 91 ) WHEN - 54 THEN 76 * + 53 ELSE 46 + + 87 END + + 54 ) + + NULLIF ( + 70 + + MIN ( DISTINCT + ( - 8 ) ), 98 ) * 37 * 21 AS col1
----
NULL

query I rowsort
SELECT 99 * + + 66 * - 77 - - - 11 AS col2
----
-503129

onlyif mysql # aggregate syntax: 
query II rowsort label-7044
SELECT ALL - 68, 90 + - COUNT( * ) AS col0
----
-68
89

skipif mysql # not compatible
query II rowsort label-7044
SELECT ALL - 68, 90 + - COUNT ( * ) AS col0
----
-68
89

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7045
SELECT DISTINCT - CAST( + + 15 AS SIGNED ) AS col1
----
-15

skipif mysql # not compatible
query I rowsort label-7045
SELECT DISTINCT - CAST ( + + 15 AS INTEGER ) AS col1
----
-15

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7047
SELECT DISTINCT - 46 * + 81 * + COUNT( * ) AS col0
----
-3726

skipif mysql # not compatible
query I rowsort label-7047
SELECT DISTINCT - 46 * + 81 * + COUNT ( * ) AS col0
----
-3726

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7048
SELECT ALL - CAST( + CASE + 63 WHEN 90 + 81 THEN NULL WHEN + + CAST( NULL AS SIGNED ) * - 36 - - + 86 * + COUNT( * ) THEN - 18 END AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7048
SELECT ALL - CAST ( + CASE + 63 WHEN 90 + 81 THEN NULL WHEN + + CAST ( NULL AS INTEGER ) * - 36 - - + 86 * + COUNT ( * ) THEN - 18 END AS INTEGER )
----
NULL

query I rowsort
SELECT ALL - 18 col0
----
-18

onlyif mysql # aggregate syntax: 
query II rowsort label-7050
SELECT ALL - 34 AS col0, MIN( - - 54 ) * 35 + 20 - + - ( - 41 )
----
-34
1869

skipif mysql # not compatible
query II rowsort label-7050
SELECT ALL - 34 AS col0, MIN ( - - 54 ) * 35 + 20 - + - ( - 41 )
----
-34
1869

query I rowsort
SELECT 38 * 10 + - 26
----
354

query I rowsort
SELECT + + 84 col2
----
84

query I rowsort
SELECT ALL 30 + 93 + ( + 47 ) * + 77 * + ( 22 ) AS col2
----
79741

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7054
SELECT + COUNT( * ), 39 DIV 68 AS col2
----
1
0

skipif mysql # not compatible
query II rowsort label-7054
SELECT + COUNT ( * ), 39 / 68 AS col2
----
1
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7055
SELECT 30 / - + 1 * + + CAST( NULL AS SIGNED ) - + - COUNT( * ) + 92 / - 48 + - 51 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7055
SELECT 30 / - + 1 * + + CAST ( NULL AS INTEGER ) - + - COUNT ( * ) + 92 / - 48 + - 51 AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7056
SELECT COUNT( * ) * CAST( NULL AS SIGNED ) * - ( 50 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7056
SELECT COUNT ( * ) * CAST ( NULL AS INTEGER ) * - ( 50 ) AS col0
----
NULL

query I rowsort
SELECT ALL + 89 * + 0 AS col0
----
0

query I rowsort
SELECT DISTINCT 91 + + 50 * + 79
----
4041

onlyif mysql # DIV for integer division: 
query I rowsort label-7059
SELECT DISTINCT 0 DIV - 40
----
0

skipif mysql # not compatible
query I rowsort label-7059
SELECT DISTINCT 0 / - 40
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7060
SELECT DISTINCT - + CAST( + 90 AS SIGNED ) + + 52
----
-38

skipif mysql # not compatible
query I rowsort label-7060
SELECT DISTINCT - + CAST ( + 90 AS INTEGER ) + + 52
----
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-7061
SELECT ALL + + MIN( ALL - 15 ) + + + 83
----
68

skipif mysql # not compatible
query I rowsort label-7061
SELECT ALL + + MIN ( ALL - 15 ) + + + 83
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-7062
SELECT - COUNT( * ) - + - 72
----
71

skipif mysql # not compatible
query I rowsort label-7062
SELECT - COUNT ( * ) - + - 72
----
71

query I rowsort
SELECT 89 + 78
----
167

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7064
SELECT 57, + 56 DIV SUM( ALL - - 14 ) AS col0
----
57
4

skipif mysql # not compatible
query II rowsort label-7064
SELECT 57, + 56 / SUM ( ALL - - 14 ) AS col0
----
57
4

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

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7066
SELECT MAX( ALL - - CASE + 53 WHEN + - 86 * - NULLIF ( - - 18, - 86 + + 40 ) * ( + 31 ) + 46 + 71 / - - 71 * + + ( + 93 ) * 26 / - - 90 + CAST( - 72 AS DECIMAL ) THEN NULL ELSE + 82 END ) + + COUNT( DISTINCT COALESCE ( 19, 73 + + 38 + + 24 + + 23 / 12 ) ) AS col2
----
83

skipif mysql # not compatible
query I rowsort label-7066
SELECT MAX ( ALL - - CASE + 53 WHEN + - 86 * - NULLIF ( - - 18, - 86 + + 40 ) * ( + 31 ) + 46 + 71 / - - 71 * + + ( + 93 ) * 26 / - - 90 + CAST ( - 72 AS REAL ) THEN NULL ELSE + 82 END ) + + COUNT ( DISTINCT COALESCE ( 19, 73 + + 38 + + 24 + + 23 / 12 ) ) AS col2
----
83

query I rowsort
SELECT 56 - - 99
----
155

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7068
SELECT ALL + COUNT( + CAST( NULL AS SIGNED ) ) col2
----
0

skipif mysql # not compatible
query I rowsort label-7068
SELECT ALL + COUNT ( + CAST ( NULL AS INTEGER ) ) col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7069
SELECT CASE + ( 19 ) WHEN COUNT( - 15 ) - - - 14 + 64 * - COUNT( * ) THEN NULL WHEN + 30 * - - 28 THEN - 95 - - CASE - - 47 WHEN 0 * + 79 THEN + COALESCE ( - CAST( - + 80 AS SIGNED ), 44 + + 11 - - - 0 * + 74 ) ELSE + SUM( ALL - ( 39 ) ) * 96 * + ( - + 18 ) END - + 78 * + + 3 WHEN + + 59 THEN NULL ELSE + + 69 END
----
69

skipif mysql # not compatible
query I rowsort label-7069
SELECT CASE + ( 19 ) WHEN COUNT ( - 15 ) - - - 14 + 64 * - COUNT ( * ) THEN NULL WHEN + 30 * - - 28 THEN - 95 - - CASE - - 47 WHEN 0 * + 79 THEN + COALESCE ( - CAST ( - + 80 AS INTEGER ), 44 + + 11 - - - 0 * + 74 ) ELSE + SUM ( ALL - ( 39 ) ) * 96 * + ( - + 18 ) END - + 78 * + + 3 WHEN + + 59 THEN NULL ELSE + + 69 END
----
69

query I rowsort
SELECT ALL + ( - 72 ) * - + ( + + 53 )
----
3816

query I rowsort
SELECT 32 + 48 AS col0
----
80

query I rowsort
SELECT ( - - 72 ) * 15 + - 16
----
1064

query I rowsort
SELECT 39 * 74 AS col0
----
2886

onlyif mysql # DIV for integer division: 
query I rowsort label-7074
SELECT ALL 57 DIV - 35
----
-1

skipif mysql # not compatible
query I rowsort label-7074
SELECT ALL 57 / - 35
----
-1

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-7076
SELECT DISTINCT - ( + + 83 ) AS col1, 34 DIV + 61 AS col0
----
-83
0

skipif mysql # not compatible
query II rowsort label-7076
SELECT DISTINCT - ( + + 83 ) AS col1, 34 / + 61 AS col0
----
-83
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7077
SELECT DISTINCT 51 * + 42 AS col2, + 86 * - COUNT( * ) * + 65 * 87 DIV - 1 - - - 27
----
2142
486303

skipif mysql # not compatible
query II rowsort label-7077
SELECT DISTINCT 51 * + 42 AS col2, + 86 * - COUNT ( * ) * + 65 * 87 / - 1 - - - 27
----
2142
486303

onlyif mysql # aggregate syntax: 
query II rowsort label-7078
SELECT ALL 61 * - COUNT( * ) + - + 33 + 20 AS col0, - 50 AS col2
----
-74
-50

skipif mysql # not compatible
query II rowsort label-7078
SELECT ALL 61 * - COUNT ( * ) + - + 33 + 20 AS col0, - 50 AS col2
----
-74
-50

query I rowsort
SELECT - 27 + 4 + + 38
----
15

query I rowsort
SELECT + - 15 * + 94 AS col1
----
-1410

onlyif mysql # aggregate syntax: 
query I rowsort label-7081
SELECT + 28 * + 57 * SUM( ALL + 42 ) + - 60 + + 41
----
67013

skipif mysql # not compatible
query I rowsort label-7081
SELECT + 28 * + 57 * SUM ( ALL + 42 ) + - 60 + + 41
----
67013

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7083
SELECT CAST( NULL AS SIGNED ) * 37 + + NULLIF ( - 19, 0 ) + + 37 + + ( - 64 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7083
SELECT CAST ( NULL AS INTEGER ) * 37 + + NULLIF ( - 19, 0 ) + + 37 + + ( - 64 )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7084
SELECT + - 24 - + 80 AS col2, 12 * + ( + COUNT( * ) ) + - 56
----
-104
-44

skipif mysql # not compatible
query II rowsort label-7084
SELECT + - 24 - + 80 AS col2, 12 * + ( + COUNT ( * ) ) + - 56
----
-104
-44

query I rowsort
SELECT - + 55 + 20
----
-35

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

skipif mysql # not compatible
query I rowsort label-7086
SELECT ALL + + COUNT ( * ) + COUNT ( * ) + - 35 AS col2
----
-33

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7087
SELECT DISTINCT - + CAST( - 72 AS SIGNED ) + + + 21 * - - CASE ( - ( 38 ) ) WHEN - 22 * + COUNT( ALL + + CAST( 21 AS DECIMAL ) ) THEN NULL ELSE - ( + 86 ) * + 84 + - ( COALESCE ( COUNT( * ), 64 + - - 33 * 20, - + ( - + 16 ) ) ) END + + 98 + - ( 95 ) + + 24 AS col1
----
-151626

skipif mysql # not compatible
query I rowsort label-7087
SELECT DISTINCT - + CAST ( - 72 AS INTEGER ) + + + 21 * - - CASE ( - ( 38 ) ) WHEN - 22 * + COUNT ( ALL + + CAST ( 21 AS REAL ) ) THEN NULL ELSE - ( + 86 ) * + 84 + - ( COALESCE ( COUNT ( * ), 64 + - - 33 * 20, - + ( - + 16 ) ) ) END + + 98 + - ( 95 ) + + 24 AS col1
----
-151626

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7088
SELECT + 33 + + 42 + - COUNT( * ) + COALESCE ( 98, + 40 / 33 + COUNT( * ) + + 88 ) * - - CAST( NULL AS SIGNED ) * 66 + 0 * 45
----
NULL

skipif mysql # not compatible
query I rowsort label-7088
SELECT + 33 + + 42 + - COUNT ( * ) + COALESCE ( 98, + 40 / 33 + COUNT ( * ) + + 88 ) * - - CAST ( NULL AS INTEGER ) * 66 + 0 * 45
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7089
SELECT DISTINCT - 41 + MAX( DISTINCT 92 ) col2
----
51

skipif mysql # not compatible
query I rowsort label-7089
SELECT DISTINCT - 41 + MAX ( DISTINCT 92 ) col2
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-7090
SELECT - - MAX( 33 ) * - + 47 + + + 90 * 54 AS col1
----
3309

skipif mysql # not compatible
query I rowsort label-7090
SELECT - - MAX ( 33 ) * - + 47 + + + 90 * 54 AS col1
----
3309

query I rowsort
SELECT ALL + 8 + - 76
----
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-7092
SELECT + - COUNT( * ) + + 25
----
24

skipif mysql # not compatible
query I rowsort label-7092
SELECT + - COUNT ( * ) + + 25
----
24

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7093
SELECT + - 28 DIV + SUM( + 51 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-7093
SELECT + - 28 / + SUM ( + 51 ) AS col0
----
0

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7096
SELECT DISTINCT - ( - + CAST( NULL AS SIGNED ) ) * - SUM( CAST( - - 15 AS SIGNED ) ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7096
SELECT DISTINCT - ( - + CAST ( NULL AS INTEGER ) ) * - SUM ( CAST ( - - 15 AS INTEGER ) ) col1
----
NULL

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7098
SELECT ALL COUNT( * ) DIV + 29 AS col0, - 65
----
0
-65

skipif mysql # not compatible
query II rowsort label-7098
SELECT ALL COUNT ( * ) / + 29 AS col0, - 65
----
0
-65

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7100
SELECT ALL 19 DIV + 84 col0
----
0

skipif mysql # not compatible
query I rowsort label-7100
SELECT ALL 19 / + 84 col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7101
SELECT ALL 93 * + + COUNT( DISTINCT + + 26 ) AS col1
----
93

skipif mysql # not compatible
query I rowsort label-7101
SELECT ALL 93 * + + COUNT ( DISTINCT + + 26 ) AS col1
----
93

query II rowsort
SELECT + 36 * - 64 * 46 AS col2, 64 AS col0
----
-105984
64

query I rowsort
SELECT DISTINCT 0 * 60 AS col2
----
0

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

query I rowsort
SELECT + 0 * ( + ( - - 57 ) )
----
0

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7108
SELECT - 99 + COUNT( * )
----
-98

skipif mysql # not compatible
query I rowsort label-7108
SELECT - 99 + COUNT ( * )
----
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-7109
SELECT + SUM( + + 40 ) * - + 94
----
-3760

skipif mysql # not compatible
query I rowsort label-7109
SELECT + SUM ( + + 40 ) * - + 94
----
-3760

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7110
SELECT SUM( DISTINCT - 6 ) DIV - 57 + + - 42 + + 21
----
-21

skipif mysql # not compatible
query I rowsort label-7110
SELECT SUM ( DISTINCT - 6 ) / - 57 + + - 42 + + 21
----
-21

query I rowsort
SELECT ( ( - 6 ) )
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-7112
SELECT ALL + MAX( - 67 ) AS col1
----
-67

skipif mysql # not compatible
query I rowsort label-7112
SELECT ALL + MAX ( - 67 ) AS col1
----
-67

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7114
SELECT ALL 88 DIV - 37 + - - 65 AS col0
----
63

skipif mysql # not compatible
query I rowsort label-7114
SELECT ALL 88 / - 37 + - - 65 AS col0
----
63

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7115
SELECT ALL ( + 28 ) * - - 80 + CAST( NULL AS SIGNED ) * 6 + + 7 * + 73 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7115
SELECT ALL ( + 28 ) * - - 80 + CAST ( NULL AS INTEGER ) * 6 + + 7 * + 73 AS col1
----
NULL

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

query I rowsort
SELECT + 3 * ( + 57 ) AS col0
----
171

query I rowsort
SELECT 92 * - 80 + - + 52 + - + 90
----
-7502

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7120
SELECT ALL - 95 * COUNT( * ) * + 61 * - + 3 * + 76 * - - 31 + + COUNT( * ) - CAST( NULL AS SIGNED ) AS col0, 91 AS col0
----
NULL
91

skipif mysql # not compatible
query II rowsort label-7120
SELECT ALL - 95 * COUNT ( * ) * + 61 * - + 3 * + 76 * - - 31 + + COUNT ( * ) - CAST ( NULL AS INTEGER ) AS col0, 91 AS col0
----
NULL
91

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

query I rowsort
SELECT - + 67 * + - 10
----
670

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

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7125
SELECT ALL - COUNT( * ) DIV 39 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-7125
SELECT ALL - COUNT ( * ) / 39 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7126
SELECT DISTINCT + - SUM( ALL + + 7 )
----
-7

skipif mysql # not compatible
query I rowsort label-7126
SELECT DISTINCT + - SUM ( ALL + + 7 )
----
-7

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7128
SELECT + + 45 * + + 59 - - 8 - + COUNT( * ) * + - 94 AS col2
----
2757

skipif mysql # not compatible
query I rowsort label-7128
SELECT + + 45 * + + 59 - - 8 - + COUNT ( * ) * + - 94 AS col2
----
2757

query I rowsort
SELECT DISTINCT + - 23
----
-23

query I rowsort
SELECT - 97 - + 46 - + - 96 col0
----
-47

query I rowsort
SELECT + - 47 AS col2
----
-47

query I rowsort
SELECT ALL + 88 * - 24
----
-2112

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-7134
SELECT + CASE 94 WHEN + + COUNT( * ) THEN - 53 ELSE NULL END * - 50 col0, 78 - 76
----
NULL
2

skipif mysql # not compatible
query II rowsort label-7134
SELECT + CASE 94 WHEN + + COUNT ( * ) THEN - 53 ELSE NULL END * - 50 col0, 78 - 76
----
NULL
2

query I rowsort
SELECT - COALESCE ( + + 2, 4 * + 93 ) * + 43 * - 84
----
7224

query I rowsort
SELECT ALL + + 70 * 9 * + 30 - - - 46
----
18854

query I rowsort
SELECT ALL - 27 * + 50 + + ( - - 72 ) + - 16 AS col0
----
-1294

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7138
SELECT + 33 * - 32 * - 3 * 28 * - + 85 - - NULLIF ( - - CASE + 78 WHEN 94 THEN NULL ELSE + 98 END, COUNT( * ) + + 73 ) * + + ( - 43 ) * + + NULLIF ( + 86, - NULLIF ( + NULLIF ( - 36, COUNT( * ) ), - CAST( NULL AS DECIMAL ) + + 84 ) ) * + 47 - + 42 * ( - 43 )
----
-24571022

skipif mysql # not compatible
query I rowsort label-7138
SELECT + 33 * - 32 * - 3 * 28 * - + 85 - - NULLIF ( - - CASE + 78 WHEN 94 THEN NULL ELSE + 98 END, COUNT ( * ) + + 73 ) * + + ( - 43 ) * + + NULLIF ( + 86, - NULLIF ( + NULLIF ( - 36, COUNT ( * ) ), - CAST ( NULL AS REAL ) + + 84 ) ) * + 47 - + 42 * ( - 43 )
----
-24571022

onlyif mysql # aggregate syntax: 
query I rowsort label-7139
SELECT DISTINCT MAX( - 45 ) col2
----
-45

skipif mysql # not compatible
query I rowsort label-7139
SELECT DISTINCT MAX ( - 45 ) col2
----
-45

query I rowsort
SELECT + - 41 - - + ( + + 87 ) AS col2
----
46

query I rowsort
SELECT ALL COALESCE ( + 27, + + 82 + + 93 )
----
27

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

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

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

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

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

query I rowsort
SELECT - 76 + 74
----
-2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7146
SELECT - CAST( 26 AS SIGNED ) AS col1
----
-26

skipif mysql # not compatible
query I rowsort label-7146
SELECT - CAST ( 26 AS INTEGER ) AS col1
----
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-7147
SELECT + 52 + - MAX( ALL - 53 ) col0
----
105

skipif mysql # not compatible
query I rowsort label-7147
SELECT + 52 + - MAX ( ALL - 53 ) col0
----
105

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7148
SELECT + 70 DIV 49 * - - COUNT( * ) * - - 82 * - 49 AS col1
----
-4018

skipif mysql # not compatible
query I rowsort label-7148
SELECT + 70 / 49 * - - COUNT ( * ) * - - 82 * - 49 AS col1
----
-4018

query I rowsort
SELECT - ( - 32 ) AS col1
----
32

query II rowsort
SELECT ALL 82 AS col1, - 1 AS col0
----
82
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7151
SELECT DISTINCT COUNT( * ) + 59 AS col0
----
60

skipif mysql # not compatible
query I rowsort label-7151
SELECT DISTINCT COUNT ( * ) + 59 AS col0
----
60

query II rowsort
SELECT DISTINCT 75 * - 95 AS col0, 20 AS col1
----
-7125
20

query I rowsort
SELECT ALL 4 * - 38 * - + 60
----
9120

onlyif mysql # aggregate syntax: 
query II rowsort label-7154
SELECT 55 AS col2, SUM( ALL + + 71 ) + 81
----
55
152

skipif mysql # not compatible
query II rowsort label-7154
SELECT 55 AS col2, SUM ( ALL + + 71 ) + 81
----
55
152

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7155
SELECT ALL 80 + + - 85 + + 57 + + 0 * + COUNT( - + ( - 47 ) ) + + - ( + - COUNT( - 79 ) ) * + - 60 * + 97 DIV COALESCE ( + + COUNT( 48 ), - 19, 65 ) * - 63 AS col0
----
366712

skipif mysql # not compatible
query I rowsort label-7155
SELECT ALL 80 + + - 85 + + 57 + + 0 * + COUNT ( - + ( - 47 ) ) + + - ( + - COUNT ( - 79 ) ) * + - 60 * + 97 / COALESCE ( + + COUNT ( 48 ), - 19, 65 ) * - 63 AS col0
----
366712

query I rowsort
SELECT DISTINCT 39 * + 37
----
1443

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-7157
SELECT ALL - 28 AS col0, CAST( NULL AS SIGNED ) + - - CAST( NULL AS DECIMAL ) + - + MIN( + - 87 ) * COUNT( * ) * 5 / - 97 AS col1
----
-28
NULL

skipif mysql # not compatible
query II rowsort label-7157
SELECT ALL - 28 AS col0, CAST ( NULL AS INTEGER ) + - - CAST ( NULL AS REAL ) + - + MIN ( + - 87 ) * COUNT ( * ) * 5 / - 97 AS col1
----
-28
NULL

query I rowsort
SELECT 98 * + + 77 AS col2
----
7546

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7159
SELECT ALL - 44 * - - ( COUNT( * ) ) * - - CAST( NULL AS SIGNED ) + + 41 + - 55 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7159
SELECT ALL - 44 * - - ( COUNT ( * ) ) * - - CAST ( NULL AS INTEGER ) + + 41 + - 55 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7160
SELECT ALL - + 62, - SUM( ALL - 48 ) AS col0
----
-62
48

skipif mysql # not compatible
query II rowsort label-7160
SELECT ALL - + 62, - SUM ( ALL - 48 ) AS col0
----
-62
48

query II rowsort
SELECT + 84 AS col2, + 48
----
84
48

query I rowsort
SELECT ALL 85 - - 96
----
181

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7163
SELECT ALL - CASE - 55 WHEN 83 THEN AVG ( ALL - 77 ) WHEN + - 86 THEN - + 62 * 3 * 37 * + - 64 WHEN - ( 68 ) THEN 19 / + ( - 8 ) - + - 37 * - NULLIF ( - - 34, - CASE + + 3 WHEN + CAST( + 12 AS DECIMAL ) THEN + - 33 ELSE + 86 * + - COUNT( * ) END + - 55 ) END * + + CAST( NULL AS SIGNED ) * + 98 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7163
SELECT ALL - CASE - 55 WHEN 83 THEN AVG ( ALL - 77 ) WHEN + - 86 THEN - + 62 * 3 * 37 * + - 64 WHEN - ( 68 ) THEN 19 / + ( - 8 ) - + - 37 * - NULLIF ( - - 34, - CASE + + 3 WHEN + CAST ( + 12 AS REAL ) THEN + - 33 ELSE + 86 * + - COUNT ( * ) END + - 55 ) END * + + CAST ( NULL AS INTEGER ) * + 98 AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7164
SELECT - 29 + - CAST( 80 AS SIGNED ) * - - 71 * + ( + COUNT( * ) )
----
-5709

skipif mysql # not compatible
query I rowsort label-7164
SELECT - 29 + - CAST ( 80 AS INTEGER ) * - - 71 * + ( + COUNT ( * ) )
----
-5709

query II rowsort
SELECT - 38 * + - 12, COALESCE ( - 60, + 81 + COALESCE ( - 91, + 6 - ( + 7 ) ) ) - - - 47 col2
----
456
-107

onlyif mysql # aggregate syntax: 
query I rowsort label-7166
SELECT DISTINCT - 50 * + - 2 - COUNT( ALL - 86 ) * + - 13 col1
----
113

skipif mysql # not compatible
query I rowsort label-7166
SELECT DISTINCT - 50 * + - 2 - COUNT ( ALL - 86 ) * + - 13 col1
----
113

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7167
SELECT ALL - - 12 AS col0, + 19 * + - 84 * - CAST( NULL AS SIGNED ) + - - 55 AS col1
----
12
NULL

skipif mysql # not compatible
query II rowsort label-7167
SELECT ALL - - 12 AS col0, + 19 * + - 84 * - CAST ( NULL AS INTEGER ) + - - 55 AS col1
----
12
NULL

query I rowsort
SELECT + + ( + - 92 ) * - 0 + NULLIF ( 65, + + AVG ( + 57 ) )
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-7169
SELECT - 51 - COUNT( 50 ) * - 7 AS col0
----
-44

skipif mysql # not compatible
query I rowsort label-7169
SELECT - 51 - COUNT ( 50 ) * - 7 AS col0
----
-44

query I rowsort
SELECT 31 * - 95 col0
----
-2945

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

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

query I rowsort
SELECT + 4 * + 84 * + + ( 58 ) AS col2
----
19488

query I rowsort
SELECT + ( + ( + 14 ) ) * - 34 AS col0
----
-476

query II rowsort
SELECT DISTINCT - - 96 AS col1, 11
----
96
11

onlyif mysql # DIV for integer division: 
query II rowsort label-7175
SELECT ALL - 34 DIV + + 19, + 29 AS col0
----
-1
29

skipif mysql # not compatible
query II rowsort label-7175
SELECT ALL - 34 / + + 19, + 29 AS col0
----
-1
29

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7176
SELECT ALL - COALESCE ( 37, + + 26 DIV + + MIN( + 68 ) + - ( + ( - - 55 ) ) )
----
-37

skipif mysql # not compatible
query I rowsort label-7176
SELECT ALL - COALESCE ( 37, + + 26 / + + MIN ( + 68 ) + - ( + ( - - 55 ) ) )
----
-37

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

skipif mysql # not compatible
query I rowsort label-7177
SELECT + COUNT ( * ) * + + 5 + - 76 AS col0
----
-71

query I rowsort
SELECT - 54 * + 48 col2
----
-2592

query I rowsort
SELECT 33 + + + 32 * + 22
----
737

query I rowsort
SELECT 51 + + 87 + + 45
----
183

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7181
SELECT ALL - ( 41 ) + 55 - - - 22 - - 79 * - CAST( - - COALESCE ( + COUNT( * ), + - 69, - 70 * - 37 + + ( 50 ) / 40 ) AS SIGNED ) * + 75 * - COALESCE ( + + 42, 63, + 90 )
----
248842

skipif mysql # not compatible
query I rowsort label-7181
SELECT ALL - ( 41 ) + 55 - - - 22 - - 79 * - CAST ( - - COALESCE ( + COUNT ( * ), + - 69, - 70 * - 37 + + ( 50 ) / 40 ) AS INTEGER ) * + 75 * - COALESCE ( + + 42, 63, + 90 )
----
248842

onlyif mysql # aggregate syntax: 
query I rowsort label-7182
SELECT 29 + - COUNT( * ) - + 80 * 38 AS col0
----
-3012

skipif mysql # not compatible
query I rowsort label-7182
SELECT 29 + - COUNT ( * ) - + 80 * 38 AS col0
----
-3012

query I rowsort
SELECT DISTINCT - 91 + + 86 * + 9
----
683

query I rowsort
SELECT ALL 40 + - - 96 * + 79 AS col1
----
7624

query I rowsort
SELECT ALL - COALESCE ( 69, + + 30 + + 4 ) * ( - 8 ) * + 14 - - ( + + 67 ) AS col0
----
7795

onlyif mysql # aggregate syntax: 
query I rowsort label-7186
SELECT DISTINCT - ( COUNT( ALL 56 ) ) + - 47 + - 9
----
-57

skipif mysql # not compatible
query I rowsort label-7186
SELECT DISTINCT - ( COUNT ( ALL 56 ) ) + - 47 + - 9
----
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-7187
SELECT MIN( ALL - + 92 ) + + + 19
----
-73

skipif mysql # not compatible
query I rowsort label-7187
SELECT MIN ( ALL - + 92 ) + + + 19
----
-73

query II rowsort
SELECT 73 + 46 AS col1, - 78
----
119
-78

query I rowsort
SELECT 57 - 46 + - + 29 + - + 51 + - 39
----
-108

onlyif mysql # aggregate syntax: 
query I rowsort label-7190
SELECT DISTINCT 92 + SUM( DISTINCT 12 ) - 4
----
100

skipif mysql # not compatible
query I rowsort label-7190
SELECT DISTINCT 92 + SUM ( DISTINCT 12 ) - 4
----
100

onlyif mysql # aggregate syntax: 
query II rowsort label-7191
SELECT ALL 27 - - - COUNT( * ), + 37 AS col1
----
26
37

skipif mysql # not compatible
query II rowsort label-7191
SELECT ALL 27 - - - COUNT ( * ), + 37 AS col1
----
26
37

onlyif mysql # aggregate syntax: 
query I rowsort label-7192
SELECT MAX( DISTINCT - 8 ) * 77 AS col0
----
-616

skipif mysql # not compatible
query I rowsort label-7192
SELECT MAX ( DISTINCT - 8 ) * 77 AS col0
----
-616

onlyif mysql # DIV for integer division: 
query II rowsort label-7193
SELECT ALL + 38 DIV - + 54 AS col2, - 75 - 55
----
0
-130

skipif mysql # not compatible
query II rowsort label-7193
SELECT ALL + 38 / - + 54 AS col2, - 75 - 55
----
0
-130

query I rowsort
SELECT - 86 + + + 96 - + 17 AS col1
----
-7

query I rowsort
SELECT DISTINCT 56 - 84
----
-28

query I rowsort
SELECT DISTINCT - 54 * - NULLIF ( + - 70, - ( 32 ) ) * - 78 AS col0
----
294840

query II rowsort
SELECT 10 * - 68 AS col2, 31 + 60 AS col0
----
-680
91

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

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

query I rowsort
SELECT ALL - + NULLIF ( - - 0, 29 ) AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7200
SELECT ALL - CASE + 97 WHEN + 78 THEN NULL ELSE - 91 * + - COUNT( * ) END AS col1
----
-91

skipif mysql # not compatible
query I rowsort label-7200
SELECT ALL - CASE + 97 WHEN + 78 THEN NULL ELSE - 91 * + - COUNT ( * ) END AS col1
----
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-7201
SELECT + SUM( ALL - - 49 ) * - + 1 * - 65 AS col1
----
3185

skipif mysql # not compatible
query I rowsort label-7201
SELECT + SUM ( ALL - - 49 ) * - + 1 * - 65 AS col1
----
3185

query I rowsort
SELECT DISTINCT - COALESCE ( - 41, + 72 ) col2
----
41

query I rowsort
SELECT ALL - 5 * + 35 col0
----
-175

query I rowsort
SELECT DISTINCT + 78 * 97 AS col0
----
7566

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7205
SELECT CAST( NULL AS SIGNED ) * - NULLIF ( + 3, + + 83 ) + - - COUNT( * ) * + - 63 - - 4 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7205
SELECT CAST ( NULL AS INTEGER ) * - NULLIF ( + 3, + + 83 ) + - - COUNT ( * ) * + - 63 - - 4 AS col0
----
NULL

query I rowsort
SELECT + NULLIF ( + 83, - - 53 ) AS col2
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-7207
SELECT 48 * + - MAX( - 18 )
----
864

skipif mysql # not compatible
query I rowsort label-7207
SELECT 48 * + - MAX ( - 18 )
----
864

onlyif mysql # aggregate syntax: 
query I rowsort label-7208
SELECT COUNT( * ) - - 66 * - + 39
----
-2573

skipif mysql # not compatible
query I rowsort label-7208
SELECT COUNT ( * ) - - 66 * - + 39
----
-2573

onlyif mysql # aggregate syntax: 
query I rowsort label-7209
SELECT + - CASE - 10 WHEN + - ( 15 ) + - + 18 * SUM( - 60 ) * + 54 THEN + COUNT( + 77 ) * - ( 40 ) - + + 56 + + + 80 + 37 + + - 2 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7209
SELECT + - CASE - 10 WHEN + - ( 15 ) + - + 18 * SUM ( - 60 ) * + 54 THEN + COUNT ( + 77 ) * - ( 40 ) - + + 56 + + + 80 + 37 + + - 2 END AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7210
SELECT 32 + - - 63 + - + COUNT( * ) + 39 * + + CAST( NULL AS SIGNED ) * - 82 + 36 * - 54
----
NULL

skipif mysql # not compatible
query I rowsort label-7210
SELECT 32 + - - 63 + - + COUNT ( * ) + 39 * + + CAST ( NULL AS INTEGER ) * - 82 + 36 * - 54
----
NULL

query I rowsort
SELECT DISTINCT COALESCE ( 53, 85 ) * 40
----
2120

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7212
SELECT DISTINCT + 32 + - 81 + + COUNT( * ) DIV - 31 * - 6
----
-49

skipif mysql # not compatible
query I rowsort label-7212
SELECT DISTINCT + 32 + - 81 + + COUNT ( * ) / - 31 * - 6
----
-49

query I rowsort
SELECT - 40 * + 21 col1
----
-840

query I rowsort
SELECT ALL + 42 + - - 60
----
102

onlyif mysql # aggregate syntax: 
query II rowsort label-7215
SELECT - 33, - NULLIF ( 2, - NULLIF ( + 5, 90 * COUNT( * ) * + COUNT( * ) ) ) * - 2 col1
----
-33
4

skipif mysql # not compatible
query II rowsort label-7215
SELECT - 33, - NULLIF ( 2, - NULLIF ( + 5, 90 * COUNT ( * ) * + COUNT ( * ) ) ) * - 2 col1
----
-33
4

query II rowsort
SELECT 36, - 61 AS col1
----
36
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-7217
SELECT ALL + 15 + + + COUNT( ALL - 5 ) AS col0
----
16

skipif mysql # not compatible
query I rowsort label-7217
SELECT ALL + 15 + + + COUNT ( ALL - 5 ) AS col0
----
16

query I rowsort
SELECT ALL - 42 * + 62
----
-2604

onlyif mysql # aggregate syntax: 
query I rowsort label-7219
SELECT ALL - 70 * - COUNT( * )
----
70

skipif mysql # not compatible
query I rowsort label-7219
SELECT ALL - 70 * - COUNT ( * )
----
70

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

query I rowsort
SELECT DISTINCT + 52 * + - 7
----
-364

onlyif mysql # aggregate syntax: 
query I rowsort label-7222
SELECT DISTINCT - 97 - + - ( + + 20 ) + 44 * 22 * + COUNT( * ) AS col0
----
891

skipif mysql # not compatible
query I rowsort label-7222
SELECT DISTINCT - 97 - + - ( + + 20 ) + 44 * 22 * + COUNT ( * ) AS col0
----
891

query I rowsort
SELECT ALL + 43 * 46 AS col2
----
1978

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7224
SELECT - 88 + - 97 + COUNT( * ) + - - 76 + 29 * + 38 * + 16 * + CAST( NULL AS SIGNED ) + 23 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7224
SELECT - 88 + - 97 + COUNT ( * ) + - - 76 + 29 * + 38 * + 16 * + CAST ( NULL AS INTEGER ) + 23 AS col0
----
NULL

query I rowsort
SELECT DISTINCT - 4 col2
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-7226
SELECT ALL + COUNT( ALL 69 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-7226
SELECT ALL + COUNT ( ALL 69 ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7227
SELECT ALL - 0 * ( COUNT( * ) )
----
0

skipif mysql # not compatible
query I rowsort label-7227
SELECT ALL - 0 * ( COUNT ( * ) )
----
0

query I rowsort
SELECT DISTINCT + + CASE - - 96 WHEN + + 11 THEN - - 37 * + 74 / 64 ELSE - + ( - + ( ( + ( 49 ) ) ) ) END AS col1
----
49

query I rowsort
SELECT + 91 * 79
----
7189

query I rowsort
SELECT ALL 30 * + 54
----
1620

onlyif mysql # DIV for integer division: 
query I rowsort label-7231
SELECT - ( + 90 ) DIV 46
----
-1

skipif mysql # not compatible
query I rowsort label-7231
SELECT - ( + 90 ) / 46
----
-1

query I rowsort
SELECT ALL 87 * + 15 + 68 * + - 47 AS col0
----
-1891

query I rowsort
SELECT ALL + - 20 * + 93 + - ( - 30 ) AS col2
----
-1830

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7234
SELECT - + COUNT( * ) + + 84 + CAST( + + ( + - CAST( + + 18 AS SIGNED ) ) AS SIGNED )
----
65

skipif mysql # not compatible
query I rowsort label-7234
SELECT - + COUNT ( * ) + + 84 + CAST ( + + ( + - CAST ( + + 18 AS INTEGER ) ) AS INTEGER )
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-7235
SELECT ALL + COUNT( * ) * - 43 + 61 + + - ( + + ( - 74 ) ) * 23 col1
----
1720

skipif mysql # not compatible
query I rowsort label-7235
SELECT ALL + COUNT ( * ) * - 43 + 61 + + - ( + + ( - 74 ) ) * 23 col1
----
1720

query I rowsort
SELECT + - 63 - + - 97
----
34

query I rowsort
SELECT DISTINCT - - 66 * + + 16 + - ( - - 43 ) + + + 64 AS col2
----
1077

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7238
SELECT ALL 30 * - 92 / + + 7 * - 12 + - - 88 * CAST( NULL AS SIGNED ), - 93 * - 80 AS col1
----
NULL
7440

skipif mysql # not compatible
query II rowsort label-7238
SELECT ALL 30 * - 92 / + + 7 * - 12 + - - 88 * CAST ( NULL AS INTEGER ), - 93 * - 80 AS col1
----
NULL
7440

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

skipif mysql # not compatible
query I rowsort label-7239
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * + - 58 + - 31
----
NULL

query II rowsort
SELECT ALL 29 * - - ( 64 ) + - + 76 AS col1, - 90
----
1780
-90

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

skipif mysql # not compatible
query I rowsort label-7241
SELECT MAX ( + 69 )
----
69

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7242
SELECT ( + 41 ) * - NULLIF ( - 45, - 50 + MAX( - 38 ) - - 69 + - 16 * - - MAX( ALL 63 ) * + MIN( + CAST( + + 57 AS SIGNED ) ) + + 78 + - 58 + - + 15 ) * - 55 + 79 + + + ( CAST( NULL AS SIGNED ) ) * - 99 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7242
SELECT ( + 41 ) * - NULLIF ( - 45, - 50 + MAX ( - 38 ) - - 69 + - 16 * - - MAX ( ALL 63 ) * + MIN ( + CAST ( + + 57 AS INTEGER ) ) + + 78 + - 58 + - + 15 ) * - 55 + 79 + + + ( CAST ( NULL AS INTEGER ) ) * - 99 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7243
SELECT MAX( - 43 ) AS col0, 8 AS col0
----
-43
8

skipif mysql # not compatible
query II rowsort label-7243
SELECT MAX ( - 43 ) AS col0, 8 AS col0
----
-43
8

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7244
SELECT - ( + - 78 ) * + - 22 + + SUM( DISTINCT CAST( NULL AS SIGNED ) ) * - 46
----
NULL

skipif mysql # not compatible
query I rowsort label-7244
SELECT - ( + - 78 ) * + - 22 + + SUM ( DISTINCT CAST ( NULL AS INTEGER ) ) * - 46
----
NULL

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

query I rowsort
SELECT + 81 + 97 AS col2
----
178

onlyif mysql # aggregate syntax: 
query I rowsort label-7247
SELECT ALL CASE - ( - 36 ) WHEN COUNT( DISTINCT - 31 ) THEN + SUM( + - 80 ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7247
SELECT ALL CASE - ( - 36 ) WHEN COUNT ( DISTINCT - 31 ) THEN + SUM ( + - 80 ) END AS col0
----
NULL

query I rowsort
SELECT ALL 63 * - 17
----
-1071

query I rowsort
SELECT DISTINCT 80 - + - 90 AS col1
----
170

query I rowsort
SELECT ALL ( 27 ) AS col2
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-7251
SELECT ALL MAX( - 63 ) AS col1
----
-63

skipif mysql # not compatible
query I rowsort label-7251
SELECT ALL MAX ( - 63 ) AS col1
----
-63

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7253
SELECT ALL CASE + - 28 WHEN + 11 * NULLIF ( + 69, 24 + + + ( - CAST( + COUNT( * ) AS SIGNED ) ) ) - 27 THEN - + 73 + - 14 + 1 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7253
SELECT ALL CASE + - 28 WHEN + 11 * NULLIF ( + 69, 24 + + + ( - CAST ( + COUNT ( * ) AS INTEGER ) ) ) - 27 THEN - + 73 + - 14 + 1 END AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7254
SELECT ALL - - CASE - 46 WHEN 26 * + 45 * + 6 THEN NULL ELSE + 70 END DIV 25 AS col0
----
2

skipif mysql # not compatible
query I rowsort label-7254
SELECT ALL - - CASE - 46 WHEN 26 * + 45 * + 6 THEN NULL ELSE + 70 END / 25 AS col0
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-7255
SELECT + MIN( - - 30 ) AS col2
----
30

skipif mysql # not compatible
query I rowsort label-7255
SELECT + MIN ( - - 30 ) AS col2
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-7256
SELECT - - COUNT( * ) - 79
----
-78

skipif mysql # not compatible
query I rowsort label-7256
SELECT - - COUNT ( * ) - 79
----
-78

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7257
SELECT - - 10 * - COUNT( * ) / - CAST( NULL AS SIGNED ) * - + 74 AS col2, + COUNT( * ) AS col0
----
NULL
1

skipif mysql # not compatible
query II rowsort label-7257
SELECT - - 10 * - COUNT ( * ) / - CAST ( NULL AS INTEGER ) * - + 74 AS col2, + COUNT ( * ) AS col0
----
NULL
1

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

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

query I rowsort
SELECT - 48 * + - 18
----
864

query I rowsort
SELECT DISTINCT + 60 * - 16 * + 79
----
-75840

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7262
SELECT DISTINCT + COALESCE ( - 1, + + 70, - - 74 * 25 - ( - - 59 ) + + 46 * - CASE + - 2 WHEN - - 92 * - + ( + - 18 ) + + COALESCE ( - + 96, COUNT( * ) + + 42 + - + COALESCE ( 93, 38 ) * + 79 + - - 65 / COUNT( - 59 ), + + 77 * + COUNT( * ) + + 62 + - COALESCE ( + CAST( + 18 AS SIGNED ), - 22, 17 ) * - 85 * 51 + + 9 ) THEN NULL WHEN + - ( - + CAST( + 77 AS SIGNED ) ) + COALESCE ( 54, - 47 + CAST( NULL AS SIGNED ) ) + 92 * - 78 THEN + 21 WHEN + 71 THEN NULL ELSE + COUNT( * ) * 69 END + 71, 52 * - 41 + + 34 * 15 ) * MAX( 83 * + 16 ) AS col1
----
-1328

skipif mysql # not compatible
query I rowsort label-7262
SELECT DISTINCT + COALESCE ( - 1, + + 70, - - 74 * 25 - ( - - 59 ) + + 46 * - CASE + - 2 WHEN - - 92 * - + ( + - 18 ) + + COALESCE ( - + 96, COUNT ( * ) + + 42 + - + COALESCE ( 93, 38 ) * + 79 + - - 65 / COUNT ( - 59 ), + + 77 * + COUNT ( * ) + + 62 + - COALESCE ( + CAST ( + 18 AS INTEGER ), - 22, 17 ) * - 85 * 51 + + 9 ) THEN NULL WHEN + - ( - + CAST ( + 77 AS INTEGER ) ) + COALESCE ( 54, - 47 + CAST ( NULL AS INTEGER ) ) + 92 * - 78 THEN + 21 WHEN + 71 THEN NULL ELSE + COUNT ( * ) * 69 END + 71, 52 * - 41 + + 34 * 15 ) * MAX ( 83 * + 16 ) AS col1
----
-1328

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

skipif mysql # not compatible
query I rowsort label-7263
SELECT COUNT ( ALL + 45 ) AS col0
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7264
SELECT - + 83 * - - 11 DIV COUNT( * )
----
-913

skipif mysql # not compatible
query I rowsort label-7264
SELECT - + 83 * - - 11 / COUNT ( * )
----
-913

query I rowsort
SELECT - 50 * + - 85 AS col0
----
4250

onlyif mysql # aggregate syntax: 
query I rowsort label-7266
SELECT + COALESCE ( - 98, + + COUNT( * ) ) AS col0
----
-98

skipif mysql # not compatible
query I rowsort label-7266
SELECT + COALESCE ( - 98, + + COUNT ( * ) ) AS col0
----
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-7267
SELECT ( + SUM( + 12 ) ) AS col2
----
12

skipif mysql # not compatible
query I rowsort label-7267
SELECT ( + SUM ( + 12 ) ) AS col2
----
12

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7268
SELECT - 77 DIV ( + ( + - NULLIF ( + 59, + - COUNT( + 56 ) ) ) ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-7268
SELECT - 77 / ( + ( + - NULLIF ( + 59, + - COUNT ( + 56 ) ) ) ) AS col1
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7269
SELECT ALL + 27 / ( + - 54 ) + + 18 + - - 18 * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7269
SELECT ALL + 27 / ( + - 54 ) + + 18 + - - 18 * CAST ( NULL AS INTEGER )
----
NULL

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7271
SELECT 57 DIV 98
----
0

skipif mysql # not compatible
query I rowsort label-7271
SELECT 57 / 98
----
0

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7273
SELECT DISTINCT 23 * - + MIN( 60 )
----
-1380

skipif mysql # not compatible
query I rowsort label-7273
SELECT DISTINCT 23 * - + MIN ( 60 )
----
-1380

query I rowsort
SELECT ALL 82 - + + 17
----
65

query II rowsort
SELECT + 22 AS col0, 42 * - 74
----
22
-3108

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7276
SELECT SUM( + 94 ) + + + COUNT( * ) * + ( + - ( ( + 12 ) ) ) * + 18 * + 63 * - COUNT( * ) + - + CAST( NULL AS SIGNED ) * - 1 * + 56 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7276
SELECT SUM ( + 94 ) + + + COUNT ( * ) * + ( + - ( ( + 12 ) ) ) * + 18 * + 63 * - COUNT ( * ) + - + CAST ( NULL AS INTEGER ) * - 1 * + 56 AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7277
SELECT ( + 13 ) * - NULLIF ( - + 20, - + 51 / ( + 73 ) / 93 - - 87 + CAST( NULL AS SIGNED ) )
----
260

skipif mysql # not compatible
query I rowsort label-7277
SELECT ( + 13 ) * - NULLIF ( - + 20, - + 51 / ( + 73 ) / 93 - - 87 + CAST ( NULL AS INTEGER ) )
----
260

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7278
SELECT CAST( NULL AS SIGNED ) + 33 * - + 90 + - NULLIF ( - - 33, - - ( - ( - 86 ) ) ) * - - 55 * 58 AS col0, - 81, - - 75 + COALESCE ( - 99, 39 + - 70 ) AS col0
----
NULL
-81
-24

skipif mysql # not compatible
query III rowsort label-7278
SELECT CAST ( NULL AS INTEGER ) + 33 * - + 90 + - NULLIF ( - - 33, - - ( - ( - 86 ) ) ) * - - 55 * 58 AS col0, - 81, - - 75 + COALESCE ( - 99, 39 + - 70 ) AS col0
----
NULL
-81
-24

query I rowsort
SELECT ALL 9 * - 9
----
-81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7280
SELECT SUM( 77 ) + + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7280
SELECT SUM ( 77 ) + + CAST ( NULL AS INTEGER ) AS col0
----
NULL

query II rowsort
SELECT - 53, 90 + + 36 + - 49 * + 19 col1
----
-53
-805

query I rowsort
SELECT ALL 62 * 50 col2
----
3100

query I rowsort
SELECT 92 * - ( - + 83 ) AS col2
----
7636

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7284
SELECT ALL - 22 + + - 22 + + COUNT( * ) + + 19 + + - 52 DIV - + 70 * + + 23 + - 80 * - ( 48 ) AS col1, 9 + - + 76 + - + 62 * - - 72
----
3816
-4531

skipif mysql # not compatible
query II rowsort label-7284
SELECT ALL - 22 + + - 22 + + COUNT ( * ) + + 19 + + - 52 / - + 70 * + + 23 + - 80 * - ( 48 ) AS col1, 9 + - + 76 + - + 62 * - - 72
----
3816
-4531

onlyif mysql # aggregate syntax: 
query I rowsort label-7285
SELECT ALL + - COUNT( * ) + 72 col1
----
71

skipif mysql # not compatible
query I rowsort label-7285
SELECT ALL + - COUNT ( * ) + 72 col1
----
71

onlyif mysql # DIV for integer division: 
query II rowsort label-7286
SELECT ALL 4, - 31 DIV - - 72 AS col0
----
4
0

skipif mysql # not compatible
query II rowsort label-7286
SELECT ALL 4, - 31 / - - 72 AS col0
----
4
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7287
SELECT ALL 51 + MIN( + + 17 ) + + ( + 43 ) col0
----
111

skipif mysql # not compatible
query I rowsort label-7287
SELECT ALL 51 + MIN ( + + 17 ) + + ( + 43 ) col0
----
111

query I rowsort
SELECT ALL - + 51 + - 46 AS col2
----
-97

query I rowsort
SELECT 95 + + 76
----
171

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7290
SELECT DISTINCT - + ( - + 94 ) / + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7290
SELECT DISTINCT - + ( - + 94 ) / + - CAST ( NULL AS INTEGER )
----
NULL

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

skipif mysql # not compatible
query I rowsort label-7291
SELECT - 55 / + 8 + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT 84 * 36 * + + 99 col2
----
299376

query I rowsort
SELECT DISTINCT - + 88
----
-88

query II rowsort
SELECT ALL - 43 AS col2, 92 AS col0
----
-43
92

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7295
SELECT - ( MAX( ALL + 61 ) ) + + 21 * 14 DIV + + 13
----
-39

skipif mysql # not compatible
query I rowsort label-7295
SELECT - ( MAX ( ALL + 61 ) ) + + 21 * 14 / + + 13
----
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-7296
SELECT ALL + 46 + + 76 * COUNT( * ) * - - 56 AS col0
----
4302

skipif mysql # not compatible
query I rowsort label-7296
SELECT ALL + 46 + + 76 * COUNT ( * ) * - - 56 AS col0
----
4302

onlyif mysql # DIV for integer division: 
query I rowsort label-7297
SELECT DISTINCT 36 + 67 DIV + 97 + 47 AS col2
----
83

skipif mysql # not compatible
query I rowsort label-7297
SELECT DISTINCT 36 + 67 / + 97 + 47 AS col2
----
83

query I rowsort
SELECT - ( + 68 ) * - + 57 + 28
----
3904

onlyif mysql # aggregate syntax: 
query I rowsort label-7299
SELECT ALL + 66 + - COUNT( * ) + - 71
----
-6

skipif mysql # not compatible
query I rowsort label-7299
SELECT ALL + 66 + - COUNT ( * ) + - 71
----
-6

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7302
SELECT + CAST( - CASE - COUNT( * ) WHEN - + 81 - 77 THEN + 77 WHEN - 99 THEN NULL END AS SIGNED ) * + 76 + + ( 81 ) * + 92 + 54 * - 10 + - + 20
----
NULL

skipif mysql # not compatible
query I rowsort label-7302
SELECT + CAST ( - CASE - COUNT ( * ) WHEN - + 81 - 77 THEN + 77 WHEN - 99 THEN NULL END AS INTEGER ) * + 76 + + ( 81 ) * + 92 + 54 * - 10 + - + 20
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7303
SELECT ALL - COALESCE ( + ( 18 ), - - 57 * - 91 + + SUM( DISTINCT - 77 ) * 99 ) * 35 * 6 + + 21 AS col1
----
-3759

skipif mysql # not compatible
query I rowsort label-7303
SELECT ALL - COALESCE ( + ( 18 ), - - 57 * - 91 + + SUM ( DISTINCT - 77 ) * 99 ) * 35 * 6 + + 21 AS col1
----
-3759

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7305
SELECT 82 DIV - 57 + 56
----
55

skipif mysql # not compatible
query I rowsort label-7305
SELECT 82 / - 57 + 56
----
55

query I rowsort
SELECT ALL - 46 - 52
----
-98

query I rowsort
SELECT 38 * - 17 * + - 23 AS col2
----
14858

query II rowsort
SELECT + 61, - 4 AS col0
----
61
-4

query I rowsort
SELECT 76 + - 42
----
34

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

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

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

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

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

query I rowsort
SELECT 76 * 93
----
7068

query I rowsort
SELECT 82 + - 48 AS col0
----
34

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

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

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

query I rowsort
SELECT 66 * + 90 col1
----
5940

onlyif mysql # aggregate syntax: 
query I rowsort label-7318
SELECT 20 * 17 + + 57 - - 37 * + + 96 + - - NULLIF ( - COUNT( + 93 ), - 72 / - ( - 84 ) + + - 36 * 57 ) AS col2
----
3948

skipif mysql # not compatible
query I rowsort label-7318
SELECT 20 * 17 + + 57 - - 37 * + + 96 + - - NULLIF ( - COUNT ( + 93 ), - 72 / - ( - 84 ) + + - 36 * 57 ) AS col2
----
3948

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7319
SELECT ALL - AVG ( + 45 ) * + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7319
SELECT ALL - AVG ( + 45 ) * + CAST ( NULL AS INTEGER ) AS col0
----
NULL

query II rowsort
SELECT 68 AS col1, 54
----
68
54

onlyif mysql # aggregate syntax: 
query I rowsort label-7321
SELECT COUNT( DISTINCT + 22 ) + MAX( 7 ) col1
----
8

skipif mysql # not compatible
query I rowsort label-7321
SELECT COUNT ( DISTINCT + 22 ) + MAX ( 7 ) col1
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-7322
SELECT COUNT( * ) + + ( + 5 ) * - 43 + 33 * COUNT( * )
----
-181

skipif mysql # not compatible
query I rowsort label-7322
SELECT COUNT ( * ) + + ( + 5 ) * - 43 + 33 * COUNT ( * )
----
-181

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

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

query II rowsort
SELECT DISTINCT + 35 AS col2, 46
----
35
46

onlyif mysql # aggregate syntax: 
query I rowsort label-7325
SELECT ALL + 13 + MIN( ALL - 43 )
----
-30

skipif mysql # not compatible
query I rowsort label-7325
SELECT ALL + 13 + MIN ( ALL - 43 )
----
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-7326
SELECT DISTINCT + 44 + + MIN( ALL + ( 15 ) ) * - MIN( DISTINCT - 14 ) AS col0
----
254

skipif mysql # not compatible
query I rowsort label-7326
SELECT DISTINCT + 44 + + MIN ( ALL + ( 15 ) ) * - MIN ( DISTINCT - 14 ) AS col0
----
254

query I rowsort
SELECT DISTINCT - 69 + + 49 * - 13
----
-706

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

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

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

query I rowsort
SELECT 79 * 45 col2
----
3555

onlyif mysql # aggregate syntax: 
query II rowsort label-7331
SELECT ALL + MAX( + 64 ) * - - SUM( + 15 ), + 65 AS col0
----
960
65

skipif mysql # not compatible
query II rowsort label-7331
SELECT ALL + MAX ( + 64 ) * - - SUM ( + 15 ), + 65 AS col0
----
960
65

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-7332
SELECT NULLIF ( 67, + - CAST( + - 72 AS SIGNED ) + - + 11 ) DIV 29 AS col0, - 33 + - 33 + - - 6 + - 48 DIV 41 * 70 AS col1
----
2
-130

skipif mysql # not compatible
query II rowsort label-7332
SELECT NULLIF ( 67, + - CAST ( + - 72 AS INTEGER ) + - + 11 ) / 29 AS col0, - 33 + - 33 + - - 6 + - 48 / 41 * 70 AS col1
----
2
-130

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7333
SELECT + COALESCE ( COALESCE ( + - CAST( NULL AS SIGNED ), 90 ), - 47 ) + - 27 * - + 66
----
1872

skipif mysql # not compatible
query I rowsort label-7333
SELECT + COALESCE ( COALESCE ( + - CAST ( NULL AS INTEGER ), 90 ), - 47 ) + - 27 * - + 66
----
1872

onlyif mysql # aggregate syntax: 
query I rowsort label-7334
SELECT DISTINCT 81 * SUM( ALL 92 ) - 32
----
7420

skipif mysql # not compatible
query I rowsort label-7334
SELECT DISTINCT 81 * SUM ( ALL 92 ) - 32
----
7420

query II rowsort
SELECT DISTINCT - 30, 87 * - 93 AS col1
----
-30
-8091

onlyif mysql # aggregate syntax: 
query I rowsort label-7336
SELECT ALL 99 + + MAX( DISTINCT + - 76 ) AS col1
----
23

skipif mysql # not compatible
query I rowsort label-7336
SELECT ALL 99 + + MAX ( DISTINCT + - 76 ) AS col1
----
23

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7337
SELECT + 69 DIV - ( - 33 ) + + 27 + + CAST( + ( + 48 ) AS SIGNED )
----
77

skipif mysql # not compatible
query I rowsort label-7337
SELECT + 69 / - ( - 33 ) + + 27 + + CAST ( + ( + 48 ) AS INTEGER )
----
77

query I rowsort
SELECT DISTINCT 38 * - - ( 11 )
----
418

onlyif mysql # aggregate syntax: 
query II rowsort label-7339
SELECT DISTINCT + COUNT( * ), 99 - - 5 AS col0
----
1
104

skipif mysql # not compatible
query II rowsort label-7339
SELECT DISTINCT + COUNT ( * ), 99 - - 5 AS col0
----
1
104

query I rowsort
SELECT DISTINCT + + 61 col0
----
61

onlyif mysql # aggregate syntax: 
query II rowsort label-7341
SELECT - 23 * - 98 - - SUM( - 26 ), + COUNT( * ) + + MAX( ALL + 72 ) col2
----
2228
73

skipif mysql # not compatible
query II rowsort label-7341
SELECT - 23 * - 98 - - SUM ( - 26 ), + COUNT ( * ) + + MAX ( ALL + 72 ) col2
----
2228
73

query I rowsort
SELECT - 94 * + 42
----
-3948

onlyif mysql # aggregate syntax: 
query I rowsort label-7343
SELECT CASE + + COUNT( * ) WHEN - + ( - - 23 ) THEN NULL WHEN 60 THEN + 39 ELSE NULL END col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7343
SELECT CASE + + COUNT ( * ) WHEN - + ( - - 23 ) THEN NULL WHEN 60 THEN + 39 ELSE NULL END col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7344
SELECT + COALESCE ( - - COALESCE ( + 71, - - 38 ), - - 93 + - - CAST( + 23 AS SIGNED ) * 72 ) AS col2
----
71

skipif mysql # not compatible
query I rowsort label-7344
SELECT + COALESCE ( - - COALESCE ( + 71, - - 38 ), - - 93 + - - CAST ( + 23 AS INTEGER ) * 72 ) AS col2
----
71

query I rowsort
SELECT ALL - 15 * - 76 * 9 AS col1
----
10260

query II rowsort
SELECT DISTINCT + ( - ( + 33 ) ) AS col1, 53
----
-33
53

onlyif mysql # aggregate syntax: 
query II rowsort label-7347
SELECT + 22 * - COUNT( * ) AS col1, 81
----
-22
81

skipif mysql # not compatible
query II rowsort label-7347
SELECT + 22 * - COUNT ( * ) AS col1, 81
----
-22
81

query I rowsort
SELECT - 63 * + 0 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7349
SELECT - MIN( ALL - 43 ) + + - 83
----
-40

skipif mysql # not compatible
query I rowsort label-7349
SELECT - MIN ( ALL - 43 ) + + - 83
----
-40

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

skipif mysql # not compatible
query I rowsort label-7350
SELECT ALL + COUNT ( DISTINCT - ( ( 36 ) ) ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-7351
SELECT DISTINCT - COUNT( * ) * + COUNT( * ) + + - 23 * - + SUM( 8 ) AS col2, - COUNT( * ) * + - COUNT( * )
----
183
1

skipif mysql # not compatible
query II rowsort label-7351
SELECT DISTINCT - COUNT ( * ) * + COUNT ( * ) + + - 23 * - + SUM ( 8 ) AS col2, - COUNT ( * ) * + - COUNT ( * )
----
183
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7352
SELECT - 27 + COUNT( * )
----
-26

skipif mysql # not compatible
query I rowsort label-7352
SELECT - 27 + COUNT ( * )
----
-26

query I rowsort
SELECT ALL + 80 + 34 col0
----
114

query I rowsort
SELECT ALL - 89 + + - 24 + + + 60 + - 59 - 63 col2
----
-175

query I rowsort
SELECT DISTINCT - ( - 38 ) * - 62 AS col1
----
-2356

query I rowsort
SELECT ALL 67 + + 75
----
142

onlyif mysql # aggregate syntax: 
query I rowsort label-7357
SELECT DISTINCT - + 47 + MAX( 31 )
----
-16

skipif mysql # not compatible
query I rowsort label-7357
SELECT DISTINCT - + 47 + MAX ( 31 )
----
-16

query I rowsort
SELECT DISTINCT + 40 + + 68
----
108

query I rowsort
SELECT - - 1 + 23 AS col2
----
24

query I rowsort
SELECT + - ( - 8 ) * 54
----
432

query I rowsort
SELECT - + 26 + - 73 AS col0
----
-99

onlyif mysql # DIV for integer division: 
query I rowsort label-7362
SELECT DISTINCT 70 - + 97 DIV 68
----
69

skipif mysql # not compatible
query I rowsort label-7362
SELECT DISTINCT 70 - + 97 / 68
----
69

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7363
SELECT DISTINCT - 88 * + 72 + CASE + 43 WHEN + - 1 THEN + + 37 WHEN + + 85 + + - ( CAST( - CAST( - 21 AS SIGNED ) AS SIGNED ) ) * + - 67 THEN NULL END - - - 56
----
NULL

skipif mysql # not compatible
query I rowsort label-7363
SELECT DISTINCT - 88 * + 72 + CASE + 43 WHEN + - 1 THEN + + 37 WHEN + + 85 + + - ( CAST ( - CAST ( - 21 AS INTEGER ) AS INTEGER ) ) * + - 67 THEN NULL END - - - 56
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7364
SELECT + 57 * - 27 AS col1, 89 - + COUNT( * ) + + - 75 DIV - 58
----
-1539
89

skipif mysql # not compatible
query II rowsort label-7364
SELECT + 57 * - 27 AS col1, 89 - + COUNT ( * ) + + - 75 / - 58
----
-1539
89

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

onlyif mysql # aggregate syntax: 
query II rowsort label-7366
SELECT ALL - MIN( - 21 ), + 70 + + 11 AS col0
----
21
81

skipif mysql # not compatible
query II rowsort label-7366
SELECT ALL - MIN ( - 21 ), + 70 + + 11 AS col0
----
21
81

query I rowsort
SELECT - - 0 * - 83 - 47 * + + 13 AS col0
----
-611

query I rowsort
SELECT - - 83 + + + 70 col0
----
153

onlyif mysql # aggregate syntax: 
query I rowsort label-7369
SELECT DISTINCT 72 * + - COUNT( DISTINCT 36 ) * - + 67 * 14 + 14
----
67550

skipif mysql # not compatible
query I rowsort label-7369
SELECT DISTINCT 72 * + - COUNT ( DISTINCT 36 ) * - + 67 * 14 + 14
----
67550

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7370
SELECT COUNT( * ) DIV + + MIN( DISTINCT 65 ) + - - 30
----
30

skipif mysql # not compatible
query I rowsort label-7370
SELECT COUNT ( * ) / + + MIN ( DISTINCT 65 ) + - - 30
----
30

onlyif mysql # DIV for integer division: 
query I rowsort label-7371
SELECT ALL + 28 DIV - 93
----
0

skipif mysql # not compatible
query I rowsort label-7371
SELECT ALL + 28 / - 93
----
0

query II rowsort
SELECT DISTINCT + 34 AS col1, - 13
----
34
-13

query I rowsort
SELECT ALL 52 * - 96
----
-4992

onlyif mysql # aggregate syntax: 
query I rowsort label-7374
SELECT + CASE 35 WHEN 7 THEN - + 11 * + + SUM( + + ( - 6 ) ) WHEN + 58 THEN NULL END / - 41 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7374
SELECT + CASE 35 WHEN 7 THEN - + 11 * + + SUM ( + + ( - 6 ) ) WHEN + 58 THEN NULL END / - 41 AS col1
----
NULL

query I rowsort
SELECT DISTINCT 64 * - 19 * + + 65 AS col0
----
-79040

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

skipif mysql # not compatible
query I rowsort label-7376
SELECT + ( + 73 ) / CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7377
SELECT ALL + 27, 71 + - COUNT( * ) + + 36 AS col1
----
27
106

skipif mysql # not compatible
query II rowsort label-7377
SELECT ALL + 27, 71 + - COUNT ( * ) + + 36 AS col1
----
27
106

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

query II rowsort
SELECT DISTINCT + 40 AS col1, 96 AS col0
----
40
96

onlyif mysql # DIV for integer division: 
query I rowsort label-7380
SELECT + ( - - 14 ) DIV 63 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-7380
SELECT + ( - - 14 ) / 63 AS col2
----
0

query I rowsort
SELECT - 63 + + 66 * - 71 + - + 23 AS col1
----
-4772

query I rowsort
SELECT + ( - 15 ) * - + 63 col0
----
945

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7383
SELECT ALL - CAST( NULL AS SIGNED ) * 50 + 46, 20 AS col0
----
NULL
20

skipif mysql # not compatible
query II rowsort label-7383
SELECT ALL - CAST ( NULL AS INTEGER ) * 50 + 46, 20 AS col0
----
NULL
20

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7385
SELECT ALL - 21 * + 92 + 15 * - 91 * - - CAST( NULL AS SIGNED ) + + MAX( DISTINCT - 86 ) + 83 + + MIN( DISTINCT - + ( - - 27 ) ) + - + CASE + - 98 WHEN + COUNT( * ) + + 38 THEN NULL ELSE - COUNT( * ) END + + COUNT( - + 99 ) * 90 * + - 39 * + ( + 11 ) * - - 68, ( + - 4 ) AS col1
----
NULL
-4

skipif mysql # not compatible
query II rowsort label-7385
SELECT ALL - 21 * + 92 + 15 * - 91 * - - CAST ( NULL AS INTEGER ) + + MAX ( DISTINCT - 86 ) + 83 + + MIN ( DISTINCT - + ( - - 27 ) ) + - + CASE + - 98 WHEN + COUNT ( * ) + + 38 THEN NULL ELSE - COUNT ( * ) END + + COUNT ( - + 99 ) * 90 * + - 39 * + ( + 11 ) * - - 68, ( + - 4 ) AS col1
----
NULL
-4

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

query II rowsort
SELECT ALL + 43 AS col1, 7 AS col1
----
43
7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7388
SELECT ALL 17 * - 19 * + 27 + - COALESCE ( + + 37, + MIN( ALL - CAST( - + 80 AS SIGNED ) ) ) DIV - 74
----
-8721

skipif mysql # not compatible
query I rowsort label-7388
SELECT ALL 17 * - 19 * + 27 + - COALESCE ( + + 37, + MIN ( ALL - CAST ( - + 80 AS INTEGER ) ) ) / - 74
----
-8721

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7389
SELECT COALESCE ( - CAST( NULL AS SIGNED ), - 94, 48 )
----
-94

skipif mysql # not compatible
query I rowsort label-7389
SELECT COALESCE ( - CAST ( NULL AS INTEGER ), - 94, 48 )
----
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-7390
SELECT ALL + COUNT( * ) * - + MIN( - - 34 )
----
-34

skipif mysql # not compatible
query I rowsort label-7390
SELECT ALL + COUNT ( * ) * - + MIN ( - - 34 )
----
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-7391
SELECT ALL + COUNT( * ) * + - 3 + + - 28 * - 39 col1
----
1089

skipif mysql # not compatible
query I rowsort label-7391
SELECT ALL + COUNT ( * ) * + - 3 + + - 28 * - 39 col1
----
1089

query II rowsort
SELECT 58 * + 76 + 7 AS col1, 77
----
4415
77

onlyif mysql # aggregate syntax: 
query I rowsort label-7393
SELECT + SUM( - - 74 ) AS col1
----
74

skipif mysql # not compatible
query I rowsort label-7393
SELECT + SUM ( - - 74 ) AS col1
----
74

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7394
SELECT - - 69 * - CAST( NULL AS DECIMAL ) + - 38 + + 22 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7394
SELECT - - 69 * - CAST ( NULL AS REAL ) + - 38 + + 22 col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7395
SELECT - + COALESCE ( 96, 30 - CAST( NULL AS SIGNED ), - COUNT( + 79 ) ) AS col2
----
-96

skipif mysql # not compatible
query I rowsort label-7395
SELECT - + COALESCE ( 96, 30 - CAST ( NULL AS INTEGER ), - COUNT ( + 79 ) ) AS col2
----
-96

query II rowsort
SELECT + 67 AS col1, - 45 AS col1
----
67
-45

query I rowsort
SELECT - - 55 * - 7 + + 85
----
-300

onlyif mysql # aggregate syntax: 
query I rowsort label-7398
SELECT DISTINCT + + 32 / - - CASE + 56 WHEN - 58 THEN - AVG ( DISTINCT + 92 ) WHEN COUNT( * ) + - 79 + + CASE - SUM( 52 ) WHEN + 89 THEN + 99 ELSE NULL END / 19 - + COALESCE ( + 42, 90 ) THEN NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7398
SELECT DISTINCT + + 32 / - - CASE + 56 WHEN - 58 THEN - AVG ( DISTINCT + 92 ) WHEN COUNT ( * ) + - 79 + + CASE - SUM ( 52 ) WHEN + 89 THEN + 99 ELSE NULL END / 19 - + COALESCE ( + 42, 90 ) THEN NULL END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7399
SELECT - COUNT( * ) * + COUNT( ALL + 22 ) * 64 * + 6 AS col0
----
-384

skipif mysql # not compatible
query I rowsort label-7399
SELECT - COUNT ( * ) * + COUNT ( ALL + 22 ) * 64 * + 6 AS col0
----
-384

query II rowsort
SELECT ALL + + ( 3 ) * - 24 AS col2, 28 AS col0
----
-72
28

onlyif mysql # aggregate syntax: 
query II rowsort label-7401
SELECT + 51 + - - 95 * 51, + 55 + COUNT( * ) AS col2
----
4896
56

skipif mysql # not compatible
query II rowsort label-7401
SELECT + 51 + - - 95 * 51, + 55 + COUNT ( * ) AS col2
----
4896
56

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7404
SELECT COALESCE ( - COUNT( - 53 ), + - 31 )
----
-1

skipif mysql # not compatible
query I rowsort label-7404
SELECT COALESCE ( - COUNT ( - 53 ), + - 31 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7405
SELECT + 22 * + - SUM( - 70 )
----
1540

skipif mysql # not compatible
query I rowsort label-7405
SELECT + 22 * + - SUM ( - 70 )
----
1540

query I rowsort
SELECT ALL - ( 75 ) * - - 18 AS col0
----
-1350

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

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

query I rowsort
SELECT DISTINCT + - 35 * + 16 * 88 AS col0
----
-49280

onlyif mysql # aggregate syntax: 
query I rowsort label-7409
SELECT 76 * + MIN( - 32 )
----
-2432

skipif mysql # not compatible
query I rowsort label-7409
SELECT 76 * + MIN ( - 32 )
----
-2432

onlyif mysql # aggregate syntax: 
query I rowsort label-7410
SELECT ALL 5 + CASE - 62 WHEN - 30 * MIN( DISTINCT + + 4 ) * + 3 - + 29 + + 12 THEN NULL ELSE + - 29 END
----
-24

skipif mysql # not compatible
query I rowsort label-7410
SELECT ALL 5 + CASE - 62 WHEN - 30 * MIN ( DISTINCT + + 4 ) * + 3 - + 29 + + 12 THEN NULL ELSE + - 29 END
----
-24

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

query I rowsort
SELECT 66 * + 58 AS col0
----
3828

query I rowsort
SELECT ALL 69 + 23 + + + 97 * - + 75 + - 17
----
-7200

query I rowsort
SELECT ALL COALESCE ( + 58, 54 ) + - COALESCE ( + 50, - ( - 94 ) ) AS col2
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-7415
SELECT MIN( + 87 ) * - + 50
----
-4350

skipif mysql # not compatible
query I rowsort label-7415
SELECT MIN ( + 87 ) * - + 50
----
-4350

onlyif mysql # DIV for integer division: 
query I rowsort label-7416
SELECT DISTINCT + 80 DIV - + 87
----
0

skipif mysql # not compatible
query I rowsort label-7416
SELECT DISTINCT + 80 / - + 87
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-7417
SELECT ALL 39 + 2 - 81 * - - 68 + + 94 AS col1, + MIN( + 62 ) AS col0
----
-5373
62

skipif mysql # not compatible
query II rowsort label-7417
SELECT ALL 39 + 2 - 81 * - - 68 + + 94 AS col1, + MIN ( + 62 ) AS col0
----
-5373
62

onlyif mysql # aggregate syntax: 
query I rowsort label-7418
SELECT ALL COUNT( * ) + - ( 39 ) + - 34 * - + 18 * - 49
----
-30026

skipif mysql # not compatible
query I rowsort label-7418
SELECT ALL COUNT ( * ) + - ( 39 ) + - 34 * - + 18 * - 49
----
-30026

query I rowsort
SELECT 99 * - - 96 + - CASE 24 WHEN 52 + + + 15 THEN - 92 ELSE NULL END + + 47 + - 26 * + + 2 AS col2
----
NULL

query I rowsort
SELECT - 63 * + 11 * 86 AS col2
----
-59598

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

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7423
SELECT ALL 7 - + 14 + - 30 * - COUNT( * ) + - 61 + 64 + - ( - 24 ) DIV + 64 * 90 * - MIN( + 46 ) * - 29
----
26

skipif mysql # not compatible
query I rowsort label-7423
SELECT ALL 7 - + 14 + - 30 * - COUNT ( * ) + - 61 + 64 + - ( - 24 ) / + 64 * 90 * - MIN ( + 46 ) * - 29
----
26

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7424
SELECT 85 + + - 60 + - + 81 + + 97 * - 98 * - 58 * - 20 - - 76 + 87 DIV + SUM( + 48 ) AS col1
----
-11026939

skipif mysql # not compatible
query I rowsort label-7424
SELECT 85 + + - 60 + - + 81 + + 97 * - 98 * - 58 * - 20 - - 76 + 87 / + SUM ( + 48 ) AS col1
----
-11026939

onlyif mysql # aggregate syntax: 
query I rowsort label-7425
SELECT - 90 + + COUNT( * ) + + 15
----
-74

skipif mysql # not compatible
query I rowsort label-7425
SELECT - 90 + + COUNT ( * ) + + 15
----
-74

query I rowsort
SELECT + ( + 34 ) * - 40
----
-1360

query I rowsort
SELECT + 12 * - 14 * + ( + + 30 ) AS col1
----
-5040

onlyif mysql # aggregate syntax: 
query I rowsort label-7428
SELECT + 39 + + + COUNT( * ) AS col2
----
40

skipif mysql # not compatible
query I rowsort label-7428
SELECT + 39 + + + COUNT ( * ) AS col2
----
40

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7429
SELECT ALL + 38 * + CAST( - - 42 AS SIGNED ) AS col1
----
1596

skipif mysql # not compatible
query I rowsort label-7429
SELECT ALL + 38 * + CAST ( - - 42 AS INTEGER ) AS col1
----
1596

query I rowsort
SELECT + ( 45 ) * - 52
----
-2340

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

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

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

skipif mysql # not compatible
query I rowsort label-7432
SELECT DISTINCT - 5 * + COUNT ( * ) AS col1
----
-5

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

skipif mysql # not compatible
query I rowsort label-7433
SELECT 23 * + + COUNT ( ALL - 21 ) AS col2
----
23

onlyif mysql # aggregate syntax: 
query II rowsort label-7434
SELECT 25 + + + 97 col0, + MAX( ALL - 18 ) * + 84
----
122
-1512

skipif mysql # not compatible
query II rowsort label-7434
SELECT 25 + + + 97 col0, + MAX ( ALL - 18 ) * + 84
----
122
-1512

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7435
SELECT DISTINCT - CAST( NULL AS DECIMAL ) * + 74 + - 24 * - 36 * - ( - 26 ) * - 80 * - + SUM( - 0 ) + ( 68 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7435
SELECT DISTINCT - CAST ( NULL AS REAL ) * + 74 + - 24 * - 36 * - ( - 26 ) * - 80 * - + SUM ( - 0 ) + ( 68 ) AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7436
SELECT 2 DIV 20
----
0

skipif mysql # not compatible
query I rowsort label-7436
SELECT 2 / 20
----
0

query I rowsort
SELECT 82 - - 10 AS col1
----
92

onlyif mysql # DIV for integer division: 
query I rowsort label-7438
SELECT ALL + 93 + - 11 DIV + + 41 + 69
----
162

skipif mysql # not compatible
query I rowsort label-7438
SELECT ALL + 93 + - 11 / + + 41 + 69
----
162

query II rowsort
SELECT - 60 AS col0, + 72 + - - 35 AS col1
----
-60
107

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7440
SELECT ALL - 65 DIV - - 73 * - COUNT( * ) * - + 5
----
0

skipif mysql # not compatible
query I rowsort label-7440
SELECT ALL - 65 / - - 73 * - COUNT ( * ) * - + 5
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7441
SELECT 66 DIV - + MIN( DISTINCT - 83 )
----
0

skipif mysql # not compatible
query I rowsort label-7441
SELECT 66 / - + MIN ( DISTINCT - 83 )
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7442
SELECT 2 DIV + + ( ( - + CASE - - 68 WHEN + COALESCE ( - 38, 23 * - COUNT( * ) ) THEN NULL ELSE + ( 8 ) END ) )
----
0

skipif mysql # not compatible
query I rowsort label-7442
SELECT 2 / + + ( ( - + CASE - - 68 WHEN + COALESCE ( - 38, 23 * - COUNT ( * ) ) THEN NULL ELSE + ( 8 ) END ) )
----
0

query I rowsort
SELECT DISTINCT - 48 * + - 84 AS col2
----
4032

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7444
SELECT ALL + MAX( ALL 89 ) + + + 17 DIV + 76
----
89

skipif mysql # not compatible
query I rowsort label-7444
SELECT ALL + MAX ( ALL 89 ) + + + 17 / + 76
----
89

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

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7446
SELECT CASE + CAST( + 11 AS DECIMAL ) WHEN - - 21 / - + 81 + - + 13 * + 41 * 91 * 38 THEN + - COUNT( DISTINCT + ( - 58 ) ) END / 59 * + ( 7 ) + + - 47 * + COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7446
SELECT CASE + CAST ( + 11 AS REAL ) WHEN - - 21 / - + 81 + - + 13 * + 41 * 91 * 38 THEN + - COUNT ( DISTINCT + ( - 58 ) ) END / 59 * + ( 7 ) + + - 47 * + COUNT ( * ) AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7447
SELECT ALL + 83 * + ( + + ( + + 30 ) ) + CAST( NULL AS SIGNED ) + - 22 + 0 + + - 95 / + 37 * - 8 col2, 38, 42 + + 10 * - + 61 AS col0
----
NULL
38
-568

skipif mysql # not compatible
query III rowsort label-7447
SELECT ALL + 83 * + ( + + ( + + 30 ) ) + CAST ( NULL AS INTEGER ) + - 22 + 0 + + - 95 / + 37 * - 8 col2, 38, 42 + + 10 * - + 61 AS col0
----
NULL
38
-568

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7450
SELECT ALL MAX( ALL + 3 ) * + COUNT( * ) + - + COALESCE ( - - COUNT( * ), - 96 + - - 87, 26 ) + 23 * - 36 AS col0
----
-826

skipif mysql # not compatible
query I rowsort label-7450
SELECT ALL MAX ( ALL + 3 ) * + COUNT ( * ) + - + COALESCE ( - - COUNT ( * ), - 96 + - - 87, 26 ) + 23 * - 36 AS col0
----
-826

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7451
SELECT ALL - CAST( - 79 AS SIGNED ) * 49 + 63 - 76 AS col1
----
3858

skipif mysql # not compatible
query I rowsort label-7451
SELECT ALL - CAST ( - 79 AS INTEGER ) * 49 + 63 - 76 AS col1
----
3858

query II rowsort
SELECT 58 * + - ( 23 ) + - 12 + + 57, 34 AS col0
----
-1289
34

onlyif mysql # aggregate syntax: 
query I rowsort label-7453
SELECT ALL - MAX( - 56 ) col1
----
56

skipif mysql # not compatible
query I rowsort label-7453
SELECT ALL - MAX ( - 56 ) col1
----
56

query I rowsort
SELECT 16 * + + 30 AS col0
----
480

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7455
SELECT 52 * + + CAST( - - 21 AS SIGNED ) AS col1
----
1092

skipif mysql # not compatible
query I rowsort label-7455
SELECT 52 * + + CAST ( - - 21 AS INTEGER ) AS col1
----
1092

query I rowsort
SELECT DISTINCT 9 * - - 71 AS col2
----
639

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

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

query I rowsort
SELECT ALL - + 98 * + - 39
----
3822

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7459
SELECT + - CAST( NULL AS SIGNED ) * - MIN( + + 37 ), + 4 AS col0
----
NULL
4

skipif mysql # not compatible
query II rowsort label-7459
SELECT + - CAST ( NULL AS INTEGER ) * - MIN ( + + 37 ), + 4 AS col0
----
NULL
4

query I rowsort
SELECT DISTINCT + - 36
----
-36

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7462
SELECT - 63 / + - CAST( - 83 AS SIGNED ) * + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7462
SELECT - 63 / + - CAST ( - 83 AS INTEGER ) * + CAST ( NULL AS INTEGER ) AS col1
----
NULL

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

query I rowsort
SELECT ( 21 ) col0
----
21

onlyif mysql # DIV for integer division: 
query I rowsort label-7465
SELECT ALL 20 DIV ( 45 )
----
0

skipif mysql # not compatible
query I rowsort label-7465
SELECT ALL 20 / ( 45 )
----
0

query I rowsort
SELECT + COALESCE ( + - 58, - 49 ) AS col0
----
-58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7467
SELECT + + CAST( - - COUNT( * ) AS SIGNED ) + + 90 col0, 96 AS col0
----
91
96

skipif mysql # not compatible
query II rowsort label-7467
SELECT + + CAST ( - - COUNT ( * ) AS INTEGER ) + + 90 col0, 96 AS col0
----
91
96

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

query I rowsort
SELECT + - 21 * 41
----
-861

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7470
SELECT ALL - CAST( + + ( + + 68 ) AS SIGNED ) + - - ( + 52 ) AS col0
----
-16

skipif mysql # not compatible
query I rowsort label-7470
SELECT ALL - CAST ( + + ( + + 68 ) AS INTEGER ) + - - ( + 52 ) AS col0
----
-16

query I rowsort
SELECT DISTINCT 61 * + 32 AS col1
----
1952

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7472
SELECT ALL - + 97 + 53 + - COUNT( * ) AS col2, + CAST( NULL AS SIGNED )
----
-45
NULL

skipif mysql # not compatible
query II rowsort label-7472
SELECT ALL - + 97 + 53 + - COUNT ( * ) AS col2, + CAST ( NULL AS INTEGER )
----
-45
NULL

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

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

query I rowsort
SELECT + 12 + 85
----
97

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

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

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

query I rowsort
SELECT ALL 94 + + 85 AS col2
----
179

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7478
SELECT ALL 70 + + 64 * CAST( NULL AS SIGNED ) + - 68 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7478
SELECT ALL 70 + + 64 * CAST ( NULL AS INTEGER ) + - 68 AS col0
----
NULL

query I rowsort
SELECT + 76 * - 49
----
-3724

onlyif mysql # aggregate syntax: 
query I rowsort label-7480
SELECT + COALESCE ( - ( COUNT( * ) ), + MIN( ALL - 24 ) + 90 ) - - ( COUNT( * ) )
----
0

skipif mysql # not compatible
query I rowsort label-7480
SELECT + COALESCE ( - ( COUNT ( * ) ), + MIN ( ALL - 24 ) + 90 ) - - ( COUNT ( * ) )
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-7481
SELECT 18 AS col1, COUNT( - - 86 )
----
18
1

skipif mysql # not compatible
query II rowsort label-7481
SELECT 18 AS col1, COUNT ( - - 86 )
----
18
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7482
SELECT ALL COUNT( * ) AS col2, 21 / - CAST( NULL AS SIGNED ) AS col0
----
1
NULL

skipif mysql # not compatible
query II rowsort label-7482
SELECT ALL COUNT ( * ) AS col2, 21 / - CAST ( NULL AS INTEGER ) AS col0
----
1
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7483
SELECT DISTINCT - NULLIF ( - 33, - 61 ) DIV + 20
----
1

skipif mysql # not compatible
query I rowsort label-7483
SELECT DISTINCT - NULLIF ( - 33, - 61 ) / + 20
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7484
SELECT ALL + 62 + + - NULLIF ( - 78, - COUNT( ALL - 55 ) ) AS col1
----
140

skipif mysql # not compatible
query I rowsort label-7484
SELECT ALL + 62 + + - NULLIF ( - 78, - COUNT ( ALL - 55 ) ) AS col1
----
140

query I rowsort
SELECT DISTINCT - ( 3 ) - + 23 * - - 89
----
-2050

query I rowsort
SELECT - 80 * + + 10 * + 22
----
-17600

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7489
SELECT DISTINCT - 17 DIV - - 52
----
0

skipif mysql # not compatible
query I rowsort label-7489
SELECT DISTINCT - 17 / - - 52
----
0

query I rowsort
SELECT ALL + CASE WHEN NOT NULL IS NULL THEN - 83 ELSE NULL END
----
NULL

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

query I rowsort
SELECT - 50 * ( + 58 )
----
-2900

onlyif mysql # aggregate syntax: 
query I rowsort label-7493
SELECT ALL - CASE 79 WHEN COUNT( * ) * + - 40 THEN NULL ELSE - 29 END * 39 + - 46 AS col0
----
1085

skipif mysql # not compatible
query I rowsort label-7493
SELECT ALL - CASE 79 WHEN COUNT ( * ) * + - 40 THEN NULL ELSE - 29 END * 39 + - 46 AS col0
----
1085

onlyif mysql # aggregate syntax: 
query I rowsort label-7494
SELECT ALL - ( COALESCE ( + - COUNT( * ), - 7 ) ) * + 35
----
35

skipif mysql # not compatible
query I rowsort label-7494
SELECT ALL - ( COALESCE ( + - COUNT ( * ), - 7 ) ) * + 35
----
35

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7495
SELECT ALL - COALESCE ( - + 24, 45 * 80 DIV + 26 DIV + + 55 + COUNT( * ) + + 74 ) * + - 52 * - 31 AS col1
----
38688

skipif mysql # not compatible
query I rowsort label-7495
SELECT ALL - COALESCE ( - + 24, 45 * 80 / + 26 / + + 55 + COUNT ( * ) + + 74 ) * + - 52 * - 31 AS col1
----
38688

query I rowsort
SELECT NULLIF ( - + 86, 52 )
----
-86

query I rowsort
SELECT - - 68 * + 79
----
5372

query II rowsort
SELECT ALL + 63 * - 73 * + 3 * + 14 AS col2, - 83 + 23
----
-193158
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-7499
SELECT DISTINCT + 77 * 19 + 48 * + - MAX( DISTINCT NULLIF ( + - 96, + 27 ) ) - - - 32 + COALESCE ( NULLIF ( + + 6, 89 * - + 70 * - 69 ), + - ( 37 ) + + COUNT( * ) ) + - 30 * 99
----
3075

skipif mysql # not compatible
query I rowsort label-7499
SELECT DISTINCT + 77 * 19 + 48 * + - MAX ( DISTINCT NULLIF ( + - 96, + 27 ) ) - - - 32 + COALESCE ( NULLIF ( + + 6, 89 * - + 70 * - 69 ), + - ( 37 ) + + COUNT ( * ) ) + - 30 * 99
----
3075

onlyif mysql # aggregate syntax: 
query II rowsort label-7500
SELECT ALL + 47, MAX( + 85 ) + + 68 AS col1
----
47
153

skipif mysql # not compatible
query II rowsort label-7500
SELECT ALL + 47, MAX ( + 85 ) + + 68 AS col1
----
47
153

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7502
SELECT - 34 * - + 8 + - + COUNT( * )
----
271

skipif mysql # not compatible
query I rowsort label-7502
SELECT - 34 * - + 8 + - + COUNT ( * )
----
271

query I rowsort
SELECT + - NULLIF ( + 75, 4 * + - 78 * - - 59 ) AS col2
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-7504
SELECT - ( NULLIF ( - - 34, + - 47 + + COUNT( * ) ) )
----
-34

skipif mysql # not compatible
query I rowsort label-7504
SELECT - ( NULLIF ( - - 34, + - 47 + + COUNT ( * ) ) )
----
-34

query II rowsort
SELECT DISTINCT + + 87 AS col1, - 88 * 56 * - - 79 AS col1
----
87
-389312

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7506
SELECT ALL + 27 AS col0, COUNT( * ) + 97 + 42 DIV + 46 * + + 74 * + - 18 - 25 AS col1
----
27
73

skipif mysql # not compatible
query II rowsort label-7506
SELECT ALL + 27 AS col0, COUNT ( * ) + 97 + 42 / + 46 * + + 74 * + - 18 - 25 AS col1
----
27
73

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7507
SELECT + + 70 AS col1, - CAST( - 12 AS SIGNED ) + ( 2 ) AS col1
----
70
14

skipif mysql # not compatible
query II rowsort label-7507
SELECT + + 70 AS col1, - CAST ( - 12 AS INTEGER ) + ( 2 ) AS col1
----
70
14

query II rowsort
SELECT + - 11 * - 94 AS col0, - 2
----
1034
-2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7509
SELECT ALL - COUNT( * ) * - 70 + CASE + ( + COUNT( * ) ) WHEN 37 * + 37 * + + 25 + - 31 THEN + - CASE + + 11 WHEN + NULLIF ( - + 1, + 92 * ( - 40 ) / + COUNT( * ) + - + 58 - + 5 ) * - 70 * - 73 + - + 65 THEN - 20 WHEN - 12 * - + CAST( 0 AS SIGNED ) * - CAST( NULL AS SIGNED ) + + 27 * - + 6 + CAST( - 83 AS SIGNED ) THEN NULL WHEN 20 / - 44 THEN + + CASE + 17 WHEN + 85 THEN NULL WHEN + + 54 * COUNT( * ) * + + 95 + 2 + + - 97 * - COUNT( * ) THEN + 11 ELSE ( COUNT( * ) ) END * - 51 WHEN CAST( + 51 AS SIGNED ) / - 97 THEN - 44 * - 79 + - 90 * 32 END ELSE NULL END - + COALESCE ( 70, 20, - COUNT( * ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-7509
SELECT ALL - COUNT ( * ) * - 70 + CASE + ( + COUNT ( * ) ) WHEN 37 * + 37 * + + 25 + - 31 THEN + - CASE + + 11 WHEN + NULLIF ( - + 1, + 92 * ( - 40 ) / + COUNT ( * ) + - + 58 - + 5 ) * - 70 * - 73 + - + 65 THEN - 20 WHEN - 12 * - + CAST ( 0 AS INTEGER ) * - CAST ( NULL AS INTEGER ) + + 27 * - + 6 + CAST ( - 83 AS INTEGER ) THEN NULL WHEN 20 / - 44 THEN + + CASE + 17 WHEN + 85 THEN NULL WHEN + + 54 * COUNT ( * ) * + + 95 + 2 + + - 97 * - COUNT ( * ) THEN + 11 ELSE ( COUNT ( * ) ) END * - 51 WHEN CAST ( + 51 AS INTEGER ) / - 97 THEN - 44 * - 79 + - 90 * 32 END ELSE NULL END - + COALESCE ( 70, 20, - COUNT ( * ) )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7510
SELECT + + CAST( + ( 77 ) AS SIGNED )
----
77

skipif mysql # not compatible
query I rowsort label-7510
SELECT + + CAST ( + ( 77 ) AS INTEGER )
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-7511
SELECT ALL + 55 * - MAX( 92 ) AS col1
----
-5060

skipif mysql # not compatible
query I rowsort label-7511
SELECT ALL + 55 * - MAX ( 92 ) AS col1
----
-5060

onlyif mysql # DIV for integer division: 
query II rowsort label-7512
SELECT - ( - 49 ) DIV + ( 20 ) AS col2, + 33 - 72 + + 16
----
2
-23

skipif mysql # not compatible
query II rowsort label-7512
SELECT - ( - 49 ) / + ( 20 ) AS col2, + 33 - 72 + + 16
----
2
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-7513
SELECT + 87 * - + 69 - + + COALESCE ( - + 56, - 21, - 99 ) + + + MAX( + - ( - 80 ) ) + - 81
----
-5948

skipif mysql # not compatible
query I rowsort label-7513
SELECT + 87 * - + 69 - + + COALESCE ( - + 56, - 21, - 99 ) + + + MAX ( + - ( - 80 ) ) + - 81
----
-5948

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

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-7515
SELECT + 38 + - + 33 + - - CAST( NULL AS DECIMAL ) + + 66 AS col1, - SUM( NULLIF ( 28, + 94 ) ) + - MAX( DISTINCT 23 ) * + MIN( 3 ) * - 94 AS col1
----
NULL
6458

skipif mysql # not compatible
query II rowsort label-7515
SELECT + 38 + - + 33 + - - CAST ( NULL AS REAL ) + + 66 AS col1, - SUM ( NULLIF ( 28, + 94 ) ) + - MAX ( DISTINCT 23 ) * + MIN ( 3 ) * - 94 AS col1
----
NULL
6458

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

onlyif mysql # aggregate syntax: 
query II rowsort label-7517
SELECT 65, COUNT( * ) * - - 33 * COUNT( * ) AS col2
----
65
33

skipif mysql # not compatible
query II rowsort label-7517
SELECT 65, COUNT ( * ) * - - 33 * COUNT ( * ) AS col2
----
65
33

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

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

query I rowsort
SELECT ALL - 93 + + - 30 AS col2
----
-123

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7520
SELECT ALL NULLIF ( 39, + 21 + 49 - - ( - 90 ) * - + SUM( DISTINCT 56 ) ) DIV - - COUNT( + - CASE ( + 86 ) WHEN 99 + + 20 THEN - 47 ELSE + 45 END ) AS col1
----
39

skipif mysql # not compatible
query I rowsort label-7520
SELECT ALL NULLIF ( 39, + 21 + 49 - - ( - 90 ) * - + SUM ( DISTINCT 56 ) ) / - - COUNT ( + - CASE ( + 86 ) WHEN 99 + + 20 THEN - 47 ELSE + 45 END ) AS col1
----
39

query I rowsort
SELECT ALL 16 * + 73
----
1168

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-7522
SELECT + 22 - CAST( 2 AS SIGNED ) - + 35 * + 24, + 13 DIV COUNT( * ) AS col2
----
-820
13

skipif mysql # not compatible
query II rowsort label-7522
SELECT + 22 - CAST ( 2 AS INTEGER ) - + 35 * + 24, + 13 / COUNT ( * ) AS col2
----
-820
13

onlyif mysql # aggregate syntax: 
query I rowsort label-7523
SELECT DISTINCT 34 * - 1 * SUM( DISTINCT + 7 ) * - - ( - MAX( - 22 ) ) * + 95 + COALESCE ( ( + 77 ), - ( 67 ), + - 48, - 66 * 52 + + 39 + + COUNT( * ) ) - 33 * - + 74
----
-494901

skipif mysql # not compatible
query I rowsort label-7523
SELECT DISTINCT 34 * - 1 * SUM ( DISTINCT + 7 ) * - - ( - MAX ( - 22 ) ) * + 95 + COALESCE ( ( + 77 ), - ( 67 ), + - 48, - 66 * 52 + + 39 + + COUNT ( * ) ) - 33 * - + 74
----
-494901

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7524
SELECT - CAST( - 57 AS SIGNED ) AS col0, 7 AS col1
----
57
7

skipif mysql # not compatible
query II rowsort label-7524
SELECT - CAST ( - 57 AS INTEGER ) AS col0, 7 AS col1
----
57
7

query II rowsort
SELECT - ( - + 70 ) AS col1, + 21 col2
----
70
21

onlyif mysql # DIV for integer division: 
query I rowsort label-7526
SELECT + 86 + + 67 DIV - - 11 AS col2
----
92

skipif mysql # not compatible
query I rowsort label-7526
SELECT + 86 + + 67 / - - 11 AS col2
----
92

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

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

query I rowsort
SELECT + 62 + + ( - - NULLIF ( - 19, - + 82 ) )
----
43

onlyif mysql # DIV for integer division: 
query I rowsort label-7529
SELECT ALL COALESCE ( + 63, + ( - 98 ) * 5 - 1 DIV - AVG ( ALL 12 ) ) AS col2
----
63

skipif mysql # not compatible
query I rowsort label-7529
SELECT ALL COALESCE ( + 63, + ( - 98 ) * 5 - 1 / - AVG ( ALL 12 ) ) AS col2
----
63

query I rowsort
SELECT ALL 44 * - 58 AS col0
----
-2552

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7531
SELECT ALL - NULLIF ( 23, + 46 * - ( CAST( NULL AS SIGNED ) ) ) AS col2
----
-23

skipif mysql # not compatible
query I rowsort label-7531
SELECT ALL - NULLIF ( 23, + 46 * - ( CAST ( NULL AS INTEGER ) ) ) AS col2
----
-23

query I rowsort
SELECT DISTINCT - 74 AS col0
----
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-7533
SELECT 29 * - - 47 * + - MAX( ALL + 55 ) col1
----
-74965

skipif mysql # not compatible
query I rowsort label-7533
SELECT 29 * - - 47 * + - MAX ( ALL + 55 ) col1
----
-74965

query I rowsort
SELECT DISTINCT - - 57 AS col2
----
57

query II rowsort
SELECT 8 * 22 AS col2, 41 * - - 65 AS col0
----
176
2665

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

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

query II rowsort
SELECT + ( - 20 ) AS col0, 56 * - - 1
----
-20
56

query I rowsort
SELECT ALL + + 56 + + - 10 AS col2
----
46

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7539
SELECT ALL CAST( NULL AS SIGNED ) + - 59 AS col0, + 91 - + + 63 AS col0
----
NULL
28

skipif mysql # not compatible
query II rowsort label-7539
SELECT ALL CAST ( NULL AS INTEGER ) + - 59 AS col0, + 91 - + + 63 AS col0
----
NULL
28

query I rowsort
SELECT 77 * - 98 + - 8 * + 41
----
-7874

query I rowsort
SELECT ALL - + ( + 82 ) * + 8 AS col2
----
-656

onlyif mysql # aggregate syntax: 
query I rowsort label-7542
SELECT ALL + 35 + COUNT( * ) * 50
----
85

skipif mysql # not compatible
query I rowsort label-7542
SELECT ALL + 35 + COUNT ( * ) * 50
----
85

query I rowsort
SELECT DISTINCT - - 43 AS col0
----
43

query I rowsort
SELECT DISTINCT - - 82 AS col2
----
82

query I rowsort
SELECT 57 * + + 20 + + 66
----
1206

onlyif mysql # aggregate syntax: 
query I rowsort label-7546
SELECT COUNT( * ) * + COALESCE ( - COALESCE ( - + COUNT( * ), - COUNT( * ) ), 13, - + CASE + - 25 WHEN - - COUNT( DISTINCT + 33 ) + - 61 THEN COUNT( * ) * - 84 + + + COUNT( * ) END + + 71 + + 50 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-7546
SELECT COUNT ( * ) * + COALESCE ( - COALESCE ( - + COUNT ( * ), - COUNT ( * ) ), 13, - + CASE + - 25 WHEN - - COUNT ( DISTINCT + 33 ) + - 61 THEN COUNT ( * ) * - 84 + + + COUNT ( * ) END + + 71 + + 50 ) AS col2
----
1

query II rowsort
SELECT ALL + 74 + - + 32, 64 - - 6 AS col2
----
42
70

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

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

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

query I rowsort
SELECT ALL + 34 * + 52 AS col2
----
1768

query I rowsort
SELECT 11 * 84
----
924

query I rowsort
SELECT ALL + 35 * - 83
----
-2905

onlyif mysql # aggregate syntax: 
query I rowsort label-7553
SELECT COUNT( * ) + + 43
----
44

skipif mysql # not compatible
query I rowsort label-7553
SELECT COUNT ( * ) + + 43
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-7554
SELECT DISTINCT + 17 * SUM( + + 47 )
----
799

skipif mysql # not compatible
query I rowsort label-7554
SELECT DISTINCT + 17 * SUM ( + + 47 )
----
799

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7555
SELECT COALESCE ( + 36, - COUNT( * ) DIV - 69 ) DIV 86 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-7555
SELECT COALESCE ( + 36, - COUNT ( * ) / - 69 ) / 86 AS col0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7556
SELECT 1 * + - NULLIF ( 80, - - COALESCE ( + 58, - - 78, - 93 * + + 66 ) + - 92 - + + COUNT( * ) ) DIV - 45 + + COUNT( * ) + + + 63 + + COUNT( * ) + + MAX( + 88 ) AS col0
----
154

skipif mysql # not compatible
query I rowsort label-7556
SELECT 1 * + - NULLIF ( 80, - - COALESCE ( + 58, - - 78, - 93 * + + 66 ) + - 92 - + + COUNT ( * ) ) / - 45 + + COUNT ( * ) + + + 63 + + COUNT ( * ) + + MAX ( + 88 ) AS col0
----
154

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7558
SELECT NULLIF ( 45, + - CASE CAST( + + 96 AS SIGNED ) WHEN - - 83 * - NULLIF ( - 51, + - 72 ) * COUNT( * ) THEN NULL ELSE 62 END ) * - 53 * + 52, 48 AS col1
----
-124020
48

skipif mysql # not compatible
query II rowsort label-7558
SELECT NULLIF ( 45, + - CASE CAST ( + + 96 AS INTEGER ) WHEN - - 83 * - NULLIF ( - 51, + - 72 ) * COUNT ( * ) THEN NULL ELSE 62 END ) * - 53 * + 52, 48 AS col1
----
-124020
48

query II rowsort
SELECT ALL 88 AS col1, - 11
----
88
-11

query I rowsort
SELECT ALL 85 * 84 * - 60
----
-428400

onlyif mysql # DIV for integer division: 
query I rowsort label-7561
SELECT ( + - 65 ) DIV - + 77 - - - 72 + + + 59 AS col2
----
-13

skipif mysql # not compatible
query I rowsort label-7561
SELECT ( + - 65 ) / - + 77 - - - 72 + + + 59 AS col2
----
-13

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7562
SELECT DISTINCT 62 * - - NULLIF ( - - 58, - - 28 * - COUNT( * ) ) / + + 11 / COUNT( * ) - - CAST( NULL AS SIGNED ), COUNT( * ) col2
----
NULL
1

skipif mysql # not compatible
query II rowsort label-7562
SELECT DISTINCT 62 * - - NULLIF ( - - 58, - - 28 * - COUNT ( * ) ) / + + 11 / COUNT ( * ) - - CAST ( NULL AS INTEGER ), COUNT ( * ) col2
----
NULL
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7563
SELECT + 7 * + - CASE + 79 WHEN 74 * 48 / + 84 THEN NULL WHEN - - 48 THEN + 37 WHEN SUM( ALL - 84 ) THEN - - 11 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7563
SELECT + 7 * + - CASE + 79 WHEN 74 * 48 / + 84 THEN NULL WHEN - - 48 THEN + 37 WHEN SUM ( ALL - 84 ) THEN - - 11 END AS col1
----
NULL

query I rowsort
SELECT ALL + 55 * - 38
----
-2090

onlyif mysql # DIV for integer division: 
query II rowsort label-7565
SELECT + + 20 AS col2, - 8 DIV - 73
----
20
0

skipif mysql # not compatible
query II rowsort label-7565
SELECT + + 20 AS col2, - 8 / - 73
----
20
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7566
SELECT 74 DIV + - 72 - 37 + - CAST( SUM( DISTINCT - 70 ) AS SIGNED ) * 67
----
4652

skipif mysql # not compatible
query I rowsort label-7566
SELECT 74 / + - 72 - 37 + - CAST ( SUM ( DISTINCT - 70 ) AS INTEGER ) * 67
----
4652

query I rowsort
SELECT + + 51 col2
----
51

query I rowsort
SELECT 54 - - ( 34 )
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-7569
SELECT ALL 87 + - + COUNT( * ) + + 27
----
113

skipif mysql # not compatible
query I rowsort label-7569
SELECT ALL 87 + - + COUNT ( * ) + + 27
----
113

query I rowsort
SELECT DISTINCT - ( + + 67 ) + - 24
----
-91

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

skipif mysql # not compatible
query I rowsort label-7571
SELECT DISTINCT COUNT ( * ) * - + 32 AS col0
----
-32

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-7572
SELECT COUNT( * ) DIV + + CAST( + 26 AS SIGNED ), COUNT( * ) AS col2
----
0
1

skipif mysql # not compatible
query II rowsort label-7572
SELECT COUNT ( * ) / + + CAST ( + 26 AS INTEGER ), COUNT ( * ) AS col2
----
0
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7573
SELECT ALL + 39 + 81 + + MIN( DISTINCT - 27 ) * 71 * + ( - + 50 ) AS col0
----
95970

skipif mysql # not compatible
query I rowsort label-7573
SELECT ALL + 39 + 81 + + MIN ( DISTINCT - 27 ) * 71 * + ( - + 50 ) AS col0
----
95970

onlyif mysql # aggregate syntax: 
query I rowsort label-7574
SELECT ( - + CASE + 0 WHEN - 11 + COUNT( * ) THEN + ( + 21 ) ELSE NULL END ) - - 75 * - + 49
----
NULL

skipif mysql # not compatible
query I rowsort label-7574
SELECT ( - + CASE + 0 WHEN - 11 + COUNT ( * ) THEN + ( + 21 ) ELSE NULL END ) - - 75 * - + 49
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7575
SELECT + COUNT( * ) * + 55 + 71
----
126

skipif mysql # not compatible
query I rowsort label-7575
SELECT + COUNT ( * ) * + 55 + 71
----
126

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7576
SELECT ALL - 78 + - COUNT( ALL + - 38 ) - + 0 AS col1, - 9 * - - 5 * + 53 + - 30 DIV + 90 AS col1
----
-79
-2385

skipif mysql # not compatible
query II rowsort label-7576
SELECT ALL - 78 + - COUNT ( ALL + - 38 ) - + 0 AS col1, - 9 * - - 5 * + 53 + - 30 / + 90 AS col1
----
-79
-2385

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7577
SELECT 56 * - NULLIF ( + + CASE + 0 WHEN 92 + + 82 THEN COUNT( * ) / + - ( - + 34 ) - - 82 + + ( + 79 ) WHEN - 74 THEN 54 * - + ( - 40 ) * - ( 3 ) END, 28 + + 53 * CASE - CAST( NULL AS SIGNED ) WHEN + + 2 THEN + - 34 END - + + 58 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7577
SELECT 56 * - NULLIF ( + + CASE + 0 WHEN 92 + + 82 THEN COUNT ( * ) / + - ( - + 34 ) - - 82 + + ( + 79 ) WHEN - 74 THEN 54 * - + ( - 40 ) * - ( 3 ) END, 28 + + 53 * CASE - CAST ( NULL AS INTEGER ) WHEN + + 2 THEN + - 34 END - + + 58 ) AS col1
----
NULL

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

onlyif mysql # aggregate syntax: 
query II rowsort label-7579
SELECT ALL 17 - + CASE + 48 WHEN - 65 / + 8 + COUNT( * ) THEN + + 64 WHEN 46 / + COUNT( * ) THEN NULL END AS col2, 81
----
NULL
81

skipif mysql # not compatible
query II rowsort label-7579
SELECT ALL 17 - + CASE + 48 WHEN - 65 / + 8 + COUNT ( * ) THEN + + 64 WHEN 46 / + COUNT ( * ) THEN NULL END AS col2, 81
----
NULL
81

query I rowsort
SELECT DISTINCT 76 * + 58 AS col0
----
4408

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7581
SELECT ALL - CAST( 84 AS SIGNED ) - 19 AS col2
----
-103

skipif mysql # not compatible
query I rowsort label-7581
SELECT ALL - CAST ( 84 AS INTEGER ) - 19 AS col2
----
-103

onlyif mysql # DIV for integer division: 
query I rowsort label-7582
SELECT 11 DIV 95 * 52
----
0

skipif mysql # not compatible
query I rowsort label-7582
SELECT 11 / 95 * 52
----
0

query I rowsort
SELECT ALL 11 * - 63 AS col1
----
-693

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

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

query I rowsort
SELECT 10 * 42 * + 94 AS col1
----
39480

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7588
SELECT - COUNT( * ) - COUNT( * ) AS col1, 3 * + 87 * CAST( NULL AS SIGNED ) * 85 * - 81 AS col1
----
-2
NULL

skipif mysql # not compatible
query II rowsort label-7588
SELECT - COUNT ( * ) - COUNT ( * ) AS col1, 3 * + 87 * CAST ( NULL AS INTEGER ) * 85 * - 81 AS col1
----
-2
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7589
SELECT DISTINCT 44 * - 89 AS col2, - COALESCE ( - - COUNT( * ), + + 85 * + 30 ) + 53 AS col1
----
-3916
52

skipif mysql # not compatible
query II rowsort label-7589
SELECT DISTINCT 44 * - 89 AS col2, - COALESCE ( - - COUNT ( * ), + + 85 * + 30 ) + 53 AS col1
----
-3916
52

query I rowsort
SELECT - ( + + 25 ) + 54
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-7591
SELECT ALL CASE 67 WHEN 44 - + 71 * MAX( + 71 ) * + COUNT( * ) + + + 64 THEN - 99 + + - CASE - 54 WHEN - 24 * + 67 THEN AVG ( ALL 5 ) END WHEN - MIN( DISTINCT 84 ) THEN NULL WHEN - + COUNT( * ) THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-7591
SELECT ALL CASE 67 WHEN 44 - + 71 * MAX ( + 71 ) * + COUNT ( * ) + + + 64 THEN - 99 + + - CASE - 54 WHEN - 24 * + 67 THEN AVG ( ALL 5 ) END WHEN - MIN ( DISTINCT 84 ) THEN NULL WHEN - + COUNT ( * ) THEN NULL ELSE NULL END
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7593
SELECT ALL MAX( ALL 61 ) + + - 27 + + + 90
----
124

skipif mysql # not compatible
query I rowsort label-7593
SELECT ALL MAX ( ALL 61 ) + + - 27 + + + 90
----
124

query I rowsort
SELECT - 27 + - 90
----
-117

onlyif mysql # aggregate syntax: 
query I rowsort label-7595
SELECT ALL - + 47 + - - 28 + + + COUNT( * ) col2
----
-18

skipif mysql # not compatible
query I rowsort label-7595
SELECT ALL - + 47 + - - 28 + + + COUNT ( * ) col2
----
-18

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7596
SELECT - + 54 + - COUNT( * ) - - CAST( COUNT( * ) AS SIGNED ) * - 86
----
-141

skipif mysql # not compatible
query I rowsort label-7596
SELECT - + 54 + - COUNT ( * ) - - CAST ( COUNT ( * ) AS INTEGER ) * - 86
----
-141

query I rowsort
SELECT ALL + 71 * 43 + + - 86 AS col1
----
2967

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7598
SELECT DISTINCT - ( - - 85 ) * 74 - - - 73 + - 39 + + - COUNT( * ) - + COALESCE ( - - ( + 50 ), 38, - 91 ) + - - 85 * ( - + SUM( ALL - 22 ) ) DIV + + 59 AS col1
----
-6422

skipif mysql # not compatible
query I rowsort label-7598
SELECT DISTINCT - ( - - 85 ) * 74 - - - 73 + - 39 + + - COUNT ( * ) - + COALESCE ( - - ( + 50 ), 38, - 91 ) + - - 85 * ( - + SUM ( ALL - 22 ) ) / + + 59 AS col1
----
-6422

onlyif mysql # aggregate syntax: 
query I rowsort label-7599
SELECT + COUNT( * ) + - 76 * + 11 * - 86
----
71897

skipif mysql # not compatible
query I rowsort label-7599
SELECT + COUNT ( * ) + - 76 * + 11 * - 86
----
71897

onlyif mysql # aggregate syntax: 
query I rowsort label-7600
SELECT + COUNT( * ) * 47 * + 20 + + ( - - COUNT( * ) )
----
941

skipif mysql # not compatible
query I rowsort label-7600
SELECT + COUNT ( * ) * 47 * + 20 + + ( - - COUNT ( * ) )
----
941

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7601
SELECT ALL + COALESCE ( - COALESCE ( + - 29, - + COUNT( * ) + + + ( + - COALESCE ( - CAST( NULL AS SIGNED ), COALESCE ( 99, 26 DIV + 92 + + 54 + - - COUNT( * ), 52 ) * 96, + 77, + + 14 ) ) DIV - COUNT( * ) * + 92 ), 26 + - + ( - - 55 ) - - NULLIF ( + COUNT( * ), MIN( DISTINCT - 93 ) + - 32 + + CASE - COUNT( * ) WHEN - - 17 + - 66 THEN NULL ELSE 38 * + 70 END DIV + COUNT( DISTINCT + 58 ) * - MAX( DISTINCT + + 15 ) ), 32 * 93, - CASE - 29 WHEN + + CAST( NULL AS SIGNED ) + - + COUNT( * ) THEN - 38 + + - COUNT( * ) * + 15 WHEN - + 85 - - - 43 THEN NULL ELSE NULL END * + 21 DIV SUM( ALL - 84 ) + + NULLIF ( 18, 0 ) DIV - 39 ) * 27
----
783

skipif mysql # not compatible
query I rowsort label-7601
SELECT ALL + COALESCE ( - COALESCE ( + - 29, - + COUNT ( * ) + + + ( + - COALESCE ( - CAST ( NULL AS INTEGER ), COALESCE ( 99, 26 / + 92 + + 54 + - - COUNT ( * ), 52 ) * 96, + 77, + + 14 ) ) / - COUNT ( * ) * + 92 ), 26 + - + ( - - 55 ) - - NULLIF ( + COUNT ( * ), MIN ( DISTINCT - 93 ) + - 32 + + CASE - COUNT ( * ) WHEN - - 17 + - 66 THEN NULL ELSE 38 * + 70 END / + COUNT ( DISTINCT + 58 ) * - MAX ( DISTINCT + + 15 ) ), 32 * 93, - CASE - 29 WHEN + + CAST ( NULL AS INTEGER ) + - + COUNT ( * ) THEN - 38 + + - COUNT ( * ) * + 15 WHEN - + 85 - - - 43 THEN NULL ELSE NULL END * + 21 / SUM ( ALL - 84 ) + + NULLIF ( 18, 0 ) / - 39 ) * 27
----
783

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7604
SELECT COUNT( * ) * + - 29 * - - 31 + + + ( + 17 ) + - COUNT( * ) AS col2
----
-883

skipif mysql # not compatible
query I rowsort label-7604
SELECT COUNT ( * ) * + - 29 * - - 31 + + + ( + 17 ) + - COUNT ( * ) AS col2
----
-883

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-7606
SELECT ALL 49 * + + NULLIF ( - + COUNT( * ), + COALESCE ( + ( AVG ( + - 19 ) ), + 27, - - 67 ) ) AS col0, + 43
----
-49
43

skipif mysql # not compatible
query II rowsort label-7606
SELECT ALL 49 * + + NULLIF ( - + COUNT ( * ), + COALESCE ( + ( AVG ( + - 19 ) ), + 27, - - 67 ) ) AS col0, + 43
----
-49
43

onlyif mysql # aggregate syntax: 
query I rowsort label-7607
SELECT ALL - COUNT( * ) * - 29 - - + 98 + ( - MIN( ALL - 64 ) ) + 20 AS col1
----
211

skipif mysql # not compatible
query I rowsort label-7607
SELECT ALL - COUNT ( * ) * - 29 - - + 98 + ( - MIN ( ALL - 64 ) ) + 20 AS col1
----
211

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

query I rowsort
SELECT + 93 * - + 79 AS col1
----
-7347

query I rowsort
SELECT + 99 + - 61
----
38

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7612
SELECT + 64, - CAST( NULL AS SIGNED ) AS col0
----
64
NULL

skipif mysql # not compatible
query II rowsort label-7612
SELECT + 64, - CAST ( NULL AS INTEGER ) AS col0
----
64
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7613
SELECT - 52 DIV 37 col2
----
-1

skipif mysql # not compatible
query I rowsort label-7613
SELECT - 52 / 37 col2
----
-1

query I rowsort
SELECT ALL 57 * + - 9 AS col1
----
-513

onlyif mysql # DIV for integer division: 
query I rowsort label-7615
SELECT DISTINCT 69 DIV + - 69 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-7615
SELECT DISTINCT 69 / + - 69 AS col2
----
-1

query I rowsort
SELECT - ( - 20 ) AS col1
----
20

query I rowsort
SELECT ALL NULLIF ( + 96, 67 * 40 ) AS col1
----
96

onlyif mysql # DIV for integer division: 
query I rowsort label-7618
SELECT + 16 DIV - 30
----
0

skipif mysql # not compatible
query I rowsort label-7618
SELECT + 16 / - 30
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7619
SELECT ALL 21 + - 45 + - CAST( NULL AS SIGNED ) * + - MIN( DISTINCT + 9 ) * 83
----
NULL

skipif mysql # not compatible
query I rowsort label-7619
SELECT ALL 21 + - 45 + - CAST ( NULL AS INTEGER ) * + - MIN ( DISTINCT + 9 ) * 83
----
NULL

query II rowsort
SELECT 5 AS col1, 42 AS col1
----
5
42

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7621
SELECT ALL + 72 + - 56 + + + COALESCE ( - 10, 44 ) + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7621
SELECT ALL + 72 + - 56 + + + COALESCE ( - 10, 44 ) + CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7622
SELECT DISTINCT CAST( NULL AS SIGNED ) + ( + - 44 ) - + 97 + + 34
----
NULL

skipif mysql # not compatible
query I rowsort label-7622
SELECT DISTINCT CAST ( NULL AS INTEGER ) + ( + - 44 ) - + 97 + + 34
----
NULL

query I rowsort
SELECT - 85 + - - NULLIF ( 75, + - 2 )
----
-10

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7624
SELECT DISTINCT NULLIF ( CAST( NULL AS SIGNED ), + + 19 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7624
SELECT DISTINCT NULLIF ( CAST ( NULL AS INTEGER ), + + 19 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7625
SELECT + MAX( DISTINCT + - 56 ) * - - SUM( DISTINCT - ( + + 21 ) ) AS col1
----
1176

skipif mysql # not compatible
query I rowsort label-7625
SELECT + MAX ( DISTINCT + - 56 ) * - - SUM ( DISTINCT - ( + + 21 ) ) AS col1
----
1176

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7626
SELECT ALL + 10 + - CAST( NULL AS DECIMAL ) * 82
----
NULL

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

query I rowsort
SELECT DISTINCT - 55 + - 60
----
-115

onlyif mysql # aggregate syntax: 
query I rowsort label-7628
SELECT ALL - 37 + NULLIF ( + MIN( DISTINCT 4 ), 25 * 55 ) AS col2
----
-33

skipif mysql # not compatible
query I rowsort label-7628
SELECT ALL - 37 + NULLIF ( + MIN ( DISTINCT 4 ), 25 * 55 ) AS col2
----
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-7629
SELECT ALL CASE 59 WHEN - 1 THEN - 45 / - 38 WHEN 65 THEN - 25 + - 78 ELSE 18 + MAX( ALL - 9 ) END AS col2
----
9

skipif mysql # not compatible
query I rowsort label-7629
SELECT ALL CASE 59 WHEN - 1 THEN - 45 / - 38 WHEN 65 THEN - 25 + - 78 ELSE 18 + MAX ( ALL - 9 ) END AS col2
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7630
SELECT DISTINCT CAST( ( - 17 ) AS SIGNED ) AS col0
----
-17

skipif mysql # not compatible
query I rowsort label-7630
SELECT DISTINCT CAST ( ( - 17 ) AS INTEGER ) AS col0
----
-17

query I rowsort
SELECT ALL 90 * 16 AS col0
----
1440

query I rowsort
SELECT ALL - 38 + 20 AS col2
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-7633
SELECT DISTINCT - 20 * COALESCE ( COUNT( * ) * + MAX( DISTINCT 94 * 42 ), + 84 ) AS col2
----
-78960

skipif mysql # not compatible
query I rowsort label-7633
SELECT DISTINCT - 20 * COALESCE ( COUNT ( * ) * + MAX ( DISTINCT 94 * 42 ), + 84 ) AS col2
----
-78960

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7635
SELECT CASE MIN( 41 ) WHEN 56 THEN + COUNT( * ) * - COUNT( * ) END / 55 - 47 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7635
SELECT CASE MIN ( 41 ) WHEN 56 THEN + COUNT ( * ) * - COUNT ( * ) END / 55 - 47 AS col0
----
NULL

query I rowsort
SELECT + 65 * 83 AS col1
----
5395

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

skipif mysql # not compatible
query I rowsort label-7637
SELECT - CAST ( NULL AS INTEGER ) - 42 * - 44
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7638
SELECT ALL SUM( 83 ) DIV + 44 - + 24 AS col2
----
-23

skipif mysql # not compatible
query I rowsort label-7638
SELECT ALL SUM ( 83 ) / + 44 - + 24 AS col2
----
-23

onlyif mysql # DIV for integer division: 
query I rowsort label-7639
SELECT - 30 DIV 62 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-7639
SELECT - 30 / 62 AS col0
----
0

query I rowsort
SELECT + 6 * - 77
----
-462

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7641
SELECT - CASE ( 8 ) WHEN - 14 - CAST( CASE 34 WHEN + 86 THEN + 94 END AS SIGNED ) THEN 1 WHEN 60 + + COUNT( * ) * 92 THEN - 63 ELSE NULL END / + 75 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7641
SELECT - CASE ( 8 ) WHEN - 14 - CAST ( CASE 34 WHEN + 86 THEN + 94 END AS INTEGER ) THEN 1 WHEN 60 + + COUNT ( * ) * 92 THEN - 63 ELSE NULL END / + 75 AS col1
----
NULL

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

query I rowsort
SELECT + 58 - - 73
----
131

query I rowsort
SELECT - 70 * + 44 col2
----
-3080

query I rowsort
SELECT + 76 * 32
----
2432

query I rowsort
SELECT ALL 16 + 35 * - 13
----
-439

query I rowsort
SELECT 20 + - ( - 67 + ( - 93 ) )
----
180

query I rowsort
SELECT ALL - 13 * - 0 AS col2
----
0

query I rowsort
SELECT DISTINCT - ( 10 ) col1
----
-10

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7650
SELECT - CAST( + 73 AS SIGNED ) * 17 + + 99 * MIN( ALL + CAST( NULL AS SIGNED ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7650
SELECT - CAST ( + 73 AS INTEGER ) * 17 + + 99 * MIN ( ALL + CAST ( NULL AS INTEGER ) ) AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7651
SELECT ALL NULLIF ( - 30, + CAST( COUNT( DISTINCT + CAST( NULL AS SIGNED ) ) AS SIGNED ) * 80 ) + + CAST( + 60 + 17 AS SIGNED ) * - 65 AS col2
----
-5035

skipif mysql # not compatible
query I rowsort label-7651
SELECT ALL NULLIF ( - 30, + CAST ( COUNT ( DISTINCT + CAST ( NULL AS INTEGER ) ) AS INTEGER ) * 80 ) + + CAST ( + 60 + 17 AS INTEGER ) * - 65 AS col2
----
-5035

onlyif mysql # DIV for integer division: 
query I rowsort label-7652
SELECT ALL 80 + + 63 DIV - 89
----
80

skipif mysql # not compatible
query I rowsort label-7652
SELECT ALL 80 + + 63 / - 89
----
80

query I rowsort
SELECT ALL 4 + + 64 AS col1
----
68

query I rowsort
SELECT 52 * 88
----
4576

onlyif mysql # aggregate syntax: 
query I rowsort label-7655
SELECT DISTINCT 15 + - COUNT( 0 ) * - 86
----
101

skipif mysql # not compatible
query I rowsort label-7655
SELECT DISTINCT 15 + - COUNT ( 0 ) * - 86
----
101

onlyif mysql # aggregate syntax: 
query I rowsort label-7656
SELECT MIN( ALL - 33 ) + COUNT( * )
----
-32

skipif mysql # not compatible
query I rowsort label-7656
SELECT MIN ( ALL - 33 ) + COUNT ( * )
----
-32

query I rowsort
SELECT 41 + - 62 col1
----
-21

onlyif mysql # DIV for integer division: 
query I rowsort label-7658
SELECT ALL COALESCE ( 30, - ( 10 ), - 41 ) DIV 87 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-7658
SELECT ALL COALESCE ( 30, - ( 10 ), - 41 ) / 87 AS col2
----
0

query I rowsort
SELECT DISTINCT 0 col1
----
0

query I rowsort
SELECT ALL - - 9 * 32 AS col1
----
288

onlyif mysql # aggregate syntax: 
query I rowsort label-7661
SELECT DISTINCT + 74 - COUNT( * )
----
73

skipif mysql # not compatible
query I rowsort label-7661
SELECT DISTINCT + 74 - COUNT ( * )
----
73

query I rowsort
SELECT - 36 * - ( 18 )
----
648

onlyif mysql # aggregate syntax: 
query I rowsort label-7663
SELECT - MIN( ALL + 32 ) + - COUNT( * )
----
-33

skipif mysql # not compatible
query I rowsort label-7663
SELECT - MIN ( ALL + 32 ) + - COUNT ( * )
----
-33

query I rowsort
SELECT 29 + + NULLIF ( 75 - 40, 0 ) AS col1
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-7665
SELECT ALL + 40 - - COUNT( * )
----
41

skipif mysql # not compatible
query I rowsort label-7665
SELECT ALL + 40 - - COUNT ( * )
----
41

query I rowsort
SELECT ALL ( ( - 13 ) ) * 87 AS col0
----
-1131

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7667
SELECT + CAST( 53 AS SIGNED ) + 64 * CAST( + 28 AS SIGNED )
----
1845

skipif mysql # not compatible
query I rowsort label-7667
SELECT + CAST ( 53 AS INTEGER ) + 64 * CAST ( + 28 AS INTEGER )
----
1845

query I rowsort
SELECT 62 + 1 * 70
----
132

query I rowsort
SELECT ( 53 ) + + 46 AS col2
----
99

query I rowsort
SELECT - 25 + - 6 AS col0
----
-31

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7671
SELECT DISTINCT - 66 * CASE + 11 * 28 WHEN - 28 / 79 THEN NULL WHEN - 19 + + COUNT( * ) THEN NULL WHEN - ( CAST( NULL AS SIGNED ) ) THEN NULL ELSE - 0 END AS col1
----
0

skipif mysql # not compatible
query I rowsort label-7671
SELECT DISTINCT - 66 * CASE + 11 * 28 WHEN - 28 / 79 THEN NULL WHEN - 19 + + COUNT ( * ) THEN NULL WHEN - ( CAST ( NULL AS INTEGER ) ) THEN NULL ELSE - 0 END AS col1
----
0

query I rowsort
SELECT - 52 * - 28
----
1456

query I rowsort
SELECT DISTINCT - + 27 AS col2
----
-27

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7674
SELECT - COALESCE ( + NULLIF ( - 20, + 21 * - 3 ), 78 + + 54, 41 ) * - CAST( NULL AS SIGNED ) + 60 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7674
SELECT - COALESCE ( + NULLIF ( - 20, + 21 * - 3 ), 78 + + 54, 41 ) * - CAST ( NULL AS INTEGER ) + 60 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7675
SELECT DISTINCT - COUNT( * ) * + 25
----
-25

skipif mysql # not compatible
query I rowsort label-7675
SELECT DISTINCT - COUNT ( * ) * + 25
----
-25

query I rowsort
SELECT + 19 * 25 AS col0
----
475

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7677
SELECT + CAST( NULL AS SIGNED ) / 67 + 5 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7677
SELECT + CAST ( NULL AS INTEGER ) / 67 + 5 AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7678
SELECT 36 DIV - - ( 89 )
----
0

skipif mysql # not compatible
query I rowsort label-7678
SELECT 36 / - - ( 89 )
----
0

query I rowsort
SELECT DISTINCT + ( - 33 ) * - 22 AS col1
----
726

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

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

query I rowsort
SELECT 20 * 81 * 3 AS col1
----
4860

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

query I rowsort
SELECT - 37 * + 26 + 16
----
-946

onlyif mysql # DIV for integer division: 
query I rowsort label-7684
SELECT DISTINCT 69 DIV + 21 AS col2
----
3

skipif mysql # not compatible
query I rowsort label-7684
SELECT DISTINCT 69 / + 21 AS col2
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7685
SELECT DISTINCT 28 + COUNT( * ) * - 36
----
-8

skipif mysql # not compatible
query I rowsort label-7685
SELECT DISTINCT 28 + COUNT ( * ) * - 36
----
-8

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

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

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

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

query I rowsort
SELECT ALL - 90 col2
----
-90

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7690
SELECT DISTINCT - ( - - 92 ) - + 53 * COUNT( DISTINCT - 71 + 9 / 58 ) AS col2
----
-145

skipif mysql # not compatible
query I rowsort label-7690
SELECT DISTINCT - ( - - 92 ) - + 53 * COUNT ( DISTINCT - 71 + 9 / 58 ) AS col2
----
-145

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7691
SELECT DISTINCT + CAST( NULL AS SIGNED ) * - 3 * 34 - 83
----
NULL

skipif mysql # not compatible
query I rowsort label-7691
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * - 3 * 34 - 83
----
NULL

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

query I rowsort
SELECT 97 + - 22 AS col2
----
75

query I rowsort
SELECT + 34 - - 26 AS col2
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-7695
SELECT - - NULLIF ( 69, CASE - 19 WHEN - 3 + 94 * - 3 THEN NULL ELSE - COUNT( * ) + CASE 93 WHEN - AVG ( 62 ) + - 10 THEN + 37 ELSE 31 END END ) AS col0
----
69

skipif mysql # not compatible
query I rowsort label-7695
SELECT - - NULLIF ( 69, CASE - 19 WHEN - 3 + 94 * - 3 THEN NULL ELSE - COUNT ( * ) + CASE 93 WHEN - AVG ( 62 ) + - 10 THEN + 37 ELSE 31 END END ) AS col0
----
69

onlyif mysql # DIV for integer division: 
query I rowsort label-7696
SELECT DISTINCT - 62 DIV 32
----
-1

skipif mysql # not compatible
query I rowsort label-7696
SELECT DISTINCT - 62 / 32
----
-1

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

skipif mysql # not compatible
query I rowsort label-7697
SELECT + COUNT ( * ) / + 61 - - 12 AS col2
----
12

query I rowsort
SELECT 36 * + 64 * 76
----
175104

onlyif mysql # aggregate syntax: 
query I rowsort label-7699
SELECT ALL + 29 * + - SUM( ALL 21 ) AS col2
----
-609

skipif mysql # not compatible
query I rowsort label-7699
SELECT ALL + 29 * + - SUM ( ALL 21 ) AS col2
----
-609

query I rowsort
SELECT + 32 * 12
----
384

query I rowsort
SELECT ALL - 68 * + CASE - 87 WHEN 89 THEN 2 WHEN 40 + - 66 THEN NULL ELSE NULL END
----
NULL

query I rowsort
SELECT + 89 + - 34 AS col1
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-7703
SELECT MIN( DISTINCT + 27 ) AS col2
----
27

skipif mysql # not compatible
query I rowsort label-7703
SELECT MIN ( DISTINCT + 27 ) AS col2
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-7704
SELECT ALL MIN( - 7 ) col0
----
-7

skipif mysql # not compatible
query I rowsort label-7704
SELECT ALL MIN ( - 7 ) col0
----
-7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7705
SELECT + 73 * CAST( NULL AS SIGNED ) - 34 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7705
SELECT + 73 * CAST ( NULL AS INTEGER ) - 34 col2
----
NULL

query I rowsort
SELECT + 17 * - - 83
----
1411

onlyif mysql # aggregate syntax: 
query I rowsort label-7707
SELECT ( + 59 ) * COUNT( * ) AS col1
----
59

skipif mysql # not compatible
query I rowsort label-7707
SELECT ( + 59 ) * COUNT ( * ) AS col1
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-7708
SELECT ALL - - COUNT( * ) * + 81 + 86 + + ( 98 )
----
265

skipif mysql # not compatible
query I rowsort label-7708
SELECT ALL - - COUNT ( * ) * + 81 + 86 + + ( 98 )
----
265

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

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

query I rowsort
SELECT CASE + 34 WHEN 71 / 97 THEN 47 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7711
SELECT DISTINCT - COUNT( + 69 ) * 40 + + ( + 3 + ( + ( 47 ) + COUNT( * ) ) ) + - 99 AS col0
----
-88

skipif mysql # not compatible
query I rowsort label-7711
SELECT DISTINCT - COUNT ( + 69 ) * 40 + + ( + 3 + ( + ( 47 ) + COUNT ( * ) ) ) + - 99 AS col0
----
-88

query I rowsort
SELECT NULLIF ( COALESCE ( - - 7, 3 ), 87 - 95 )
----
7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7713
SELECT ALL CAST( - ( + - COALESCE ( - COUNT( * ), - 75 ) ) AS SIGNED ) * 83 + 57
----
-26

skipif mysql # not compatible
query I rowsort label-7713
SELECT ALL CAST ( - ( + - COALESCE ( - COUNT ( * ), - 75 ) ) AS INTEGER ) * 83 + 57
----
-26

query II rowsort
SELECT + 15, + NULLIF ( 17, + 36 * + ( - AVG ( + 20 ) ) + - 27 ) AS col0
----
15
17

query II rowsort
SELECT ALL + 81 AS col2, - 20 * - 18 AS col1
----
81
360

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7716
SELECT CASE 55 WHEN + CAST( - 40 AS SIGNED ) THEN NULL WHEN + 19 THEN NULL ELSE + SUM( 83 ) * ( 68 DIV + NULLIF ( 83, 85 ) ) END AS col0
----
0

skipif mysql # not compatible
query I rowsort label-7716
SELECT CASE 55 WHEN + CAST ( - 40 AS INTEGER ) THEN NULL WHEN + 19 THEN NULL ELSE + SUM ( 83 ) * ( 68 / + NULLIF ( 83, 85 ) ) END AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7717
SELECT - 71 * 22 + + + COUNT( * ) * - 46 AS col0
----
-1608

skipif mysql # not compatible
query I rowsort label-7717
SELECT - 71 * 22 + + + COUNT ( * ) * - 46 AS col0
----
-1608

onlyif mysql # aggregate syntax: 
query I rowsort label-7718
SELECT - COUNT( ALL + + 7 ) - - 49 * - 24
----
-1177

skipif mysql # not compatible
query I rowsort label-7718
SELECT - COUNT ( ALL + + 7 ) - - 49 * - 24
----
-1177

onlyif mysql # aggregate syntax: 
query I rowsort label-7719
SELECT SUM( 30 ) AS col0
----
30

skipif mysql # not compatible
query I rowsort label-7719
SELECT SUM ( 30 ) AS col0
----
30

query I rowsort
SELECT 59 * + 7 + - 2
----
411

onlyif mysql # aggregate syntax: 
query I rowsort label-7721
SELECT COUNT( * ) * + + COUNT( * ) - - ( 4 ) - 45 * - 87 * 88 col1
----
344525

skipif mysql # not compatible
query I rowsort label-7721
SELECT COUNT ( * ) * + + COUNT ( * ) - - ( 4 ) - 45 * - 87 * 88 col1
----
344525

onlyif mysql # aggregate syntax: 
query II rowsort label-7722
SELECT COUNT( * ), CASE CASE AVG ( - 95 ) WHEN 59 THEN 52 WHEN + 61 / 15 THEN - 91 + + COUNT( * ) END WHEN - 28 + 47 THEN - 41 END AS col2
----
1
NULL

skipif mysql # not compatible
query II rowsort label-7722
SELECT COUNT ( * ), CASE CASE AVG ( - 95 ) WHEN 59 THEN 52 WHEN + 61 / 15 THEN - 91 + + COUNT ( * ) END WHEN - 28 + 47 THEN - 41 END AS col2
----
1
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7723
SELECT - COUNT( * ) + CAST( + - 35 AS SIGNED ) + 5
----
-31

skipif mysql # not compatible
query I rowsort label-7723
SELECT - COUNT ( * ) + CAST ( + - 35 AS INTEGER ) + 5
----
-31

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7725
SELECT ALL + 96, CAST( NULL AS SIGNED ) col0
----
96
NULL

skipif mysql # not compatible
query II rowsort label-7725
SELECT ALL + 96, CAST ( NULL AS INTEGER ) col0
----
96
NULL

query I rowsort
SELECT - ( + 75 ) * 37 * 75 + + 26
----
-208099

onlyif mysql # DIV for integer division: 
query I rowsort label-7727
SELECT ALL + 78 DIV + 3
----
26

skipif mysql # not compatible
query I rowsort label-7727
SELECT ALL + 78 / + 3
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-7728
SELECT ALL 73 - MIN( + - 18 ) AS col2
----
91

skipif mysql # not compatible
query I rowsort label-7728
SELECT ALL 73 - MIN ( + - 18 ) AS col2
----
91

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

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

query I rowsort
SELECT - 91 + 88 AS col1
----
-3

query I rowsort
SELECT - + 46 + + 93 AS col0
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-7732
SELECT - ( + - 93 ) * + COALESCE ( - 89, MIN( DISTINCT - 27 ) ) AS col0
----
-8277

skipif mysql # not compatible
query I rowsort label-7732
SELECT - ( + - 93 ) * + COALESCE ( - 89, MIN ( DISTINCT - 27 ) ) AS col0
----
-8277

query I rowsort
SELECT + 27 * 68
----
1836

query I rowsort
SELECT ALL - NULLIF ( 9, - + COALESCE ( + 29, 14 * - ( ( - 47 ) * 28 ), 60 / - 42 ) ) * 91 AS col2
----
-819

onlyif mysql # aggregate syntax: 
query I rowsort label-7735
SELECT - 71 * - NULLIF ( - 7, COUNT( * ) ) * 23
----
-11431

skipif mysql # not compatible
query I rowsort label-7735
SELECT - 71 * - NULLIF ( - 7, COUNT ( * ) ) * 23
----
-11431

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

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

query I rowsort
SELECT DISTINCT + 33 * + 91
----
3003

query I rowsort
SELECT ALL NULLIF ( - 94, + 67 ) AS col1
----
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-7739
SELECT ALL + MIN( ALL + ( - 40 ) ) * 17
----
-680

skipif mysql # not compatible
query I rowsort label-7739
SELECT ALL + MIN ( ALL + ( - 40 ) ) * 17
----
-680

query I rowsort
SELECT + 30 + + + ( 68 ) - 61 * - 2 AS col0
----
220

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

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

skipif mysql # not compatible
query I rowsort label-7742
SELECT ALL + CAST ( - + AVG ( DISTINCT 63 ) AS INTEGER )
----
-63

query I rowsort
SELECT DISTINCT + 6 + - NULLIF ( + - 8, 26 * 46 )
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-7744
SELECT + 70 + + - NULLIF ( - + 47, - 76 * 20 + + 0 * COUNT( * ) ) + - 42 * 35 AS col1
----
-1353

skipif mysql # not compatible
query I rowsort label-7744
SELECT + 70 + + - NULLIF ( - + 47, - 76 * 20 + + 0 * COUNT ( * ) ) + - 42 * 35 AS col1
----
-1353

onlyif mysql # aggregate syntax: 
query I rowsort label-7745
SELECT + 10 + COALESCE ( - - 73, + 16, - 20 * 39 ) * COUNT( * ) AS col1
----
83

skipif mysql # not compatible
query I rowsort label-7745
SELECT + 10 + COALESCE ( - - 73, + 16, - 20 * 39 ) * COUNT ( * ) AS col1
----
83

onlyif mysql # DIV for integer division: 
query I rowsort label-7746
SELECT DISTINCT + 56 DIV 60 * 13
----
0

skipif mysql # not compatible
query I rowsort label-7746
SELECT DISTINCT + 56 / 60 * 13
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7747
SELECT DISTINCT + - COUNT( * ) + - COUNT( * ) DIV + 49 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-7747
SELECT DISTINCT + - COUNT ( * ) + - COUNT ( * ) / + 49 AS col0
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7748
SELECT ALL - - CAST( + 36 AS SIGNED ) + + - 48 + 57 * 71 AS col1
----
4035

skipif mysql # not compatible
query I rowsort label-7748
SELECT ALL - - CAST ( + 36 AS INTEGER ) + + - 48 + 57 * 71 AS col1
----
4035

onlyif mysql # aggregate syntax: 
query I rowsort label-7749
SELECT + 99 + ( 36 ) * + + COUNT( * )
----
135

skipif mysql # not compatible
query I rowsort label-7749
SELECT + 99 + ( 36 ) * + + COUNT ( * )
----
135

query I rowsort
SELECT ALL 5 + 1 * 12
----
17

query I rowsort
SELECT DISTINCT + 68 AS col1
----
68

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query I rowsort label-7752
SELECT ALL CASE - - 49 WHEN + 83 + + 37 THEN NULL WHEN - 12 * MIN( DISTINCT - 93 * 19 ) THEN - ( COUNT( * ) ) WHEN CAST( 97 AS DECIMAL ) THEN NULL ELSE 67 + + 84 * 63 END DIV - 35 + 82 AS col0
----
-71

skipif mysql # not compatible
query I rowsort label-7752
SELECT ALL CASE - - 49 WHEN + 83 + + 37 THEN NULL WHEN - 12 * MIN ( DISTINCT - 93 * 19 ) THEN - ( COUNT ( * ) ) WHEN CAST ( 97 AS REAL ) THEN NULL ELSE 67 + + 84 * 63 END / - 35 + 82 AS col0
----
-71

query I rowsort
SELECT ALL 58 * + 17 AS col0
----
986

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7754
SELECT + 63 DIV + + 12 AS col0, COUNT( - - 34 ) AS col2
----
5
1

skipif mysql # not compatible
query II rowsort label-7754
SELECT + 63 / + + 12 AS col0, COUNT ( - - 34 ) AS col2
----
5
1

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7756
SELECT + COALESCE ( - 51, - 42 ) + + 64 * - COUNT( * ) AS col2
----
-115

skipif mysql # not compatible
query I rowsort label-7756
SELECT + COALESCE ( - 51, - 42 ) + + 64 * - COUNT ( * ) AS col2
----
-115

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7757
SELECT ( - CAST( - 48 AS SIGNED ) ) AS col0
----
48

skipif mysql # not compatible
query I rowsort label-7757
SELECT ( - CAST ( - 48 AS INTEGER ) ) AS col0
----
48

query II rowsort
SELECT - 22 + - 94, + 7 AS col2
----
-116
7

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7760
SELECT ( - COALESCE ( - 17, - - 62 * COUNT( * ), 69 ) )
----
17

skipif mysql # not compatible
query I rowsort label-7760
SELECT ( - COALESCE ( - 17, - - 62 * COUNT ( * ), 69 ) )
----
17

query I rowsort
SELECT + COALESCE ( + 70, 32 ) * + 41
----
2870

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7762
SELECT + CAST( - 0 AS SIGNED ) AS col1, 93 * - CASE ( 99 ) WHEN 60 / - AVG ( DISTINCT - 91 ) + + 6 * 10 THEN + 97 END * - 64 + 79 / - 7
----
0
NULL

skipif mysql # not compatible
query II rowsort label-7762
SELECT + CAST ( - 0 AS INTEGER ) AS col1, 93 * - CASE ( 99 ) WHEN 60 / - AVG ( DISTINCT - 91 ) + + 6 * 10 THEN + 97 END * - 64 + 79 / - 7
----
0
NULL

query I rowsort
SELECT ( - 33 )
----
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-7764
SELECT ALL + COUNT( DISTINCT 64 ) * ( + + COUNT( * ) ) - 65
----
-64

skipif mysql # not compatible
query I rowsort label-7764
SELECT ALL + COUNT ( DISTINCT 64 ) * ( + + COUNT ( * ) ) - 65
----
-64

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7765
SELECT - CAST( + - 18 AS SIGNED ) * 2 - + + 87 * 17 col0
----
-1443

skipif mysql # not compatible
query I rowsort label-7765
SELECT - CAST ( + - 18 AS INTEGER ) * 2 - + + 87 * 17 col0
----
-1443

onlyif mysql # aggregate syntax: 
query I rowsort label-7766
SELECT + ( - SUM( - 32 ) ) AS col2
----
32

skipif mysql # not compatible
query I rowsort label-7766
SELECT + ( - SUM ( - 32 ) ) AS col2
----
32

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7767
SELECT - CAST( 66 AS SIGNED ) + - 90 - + 49 * + 74 AS col1
----
-3782

skipif mysql # not compatible
query I rowsort label-7767
SELECT - CAST ( 66 AS INTEGER ) + - 90 - + 49 * + 74 AS col1
----
-3782

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

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

query I rowsort
SELECT + 55 * - - 37
----
2035

onlyif mysql # aggregate syntax: 
query I rowsort label-7770
SELECT - - 84 * - 4 * COUNT( * ) AS col1
----
-336

skipif mysql # not compatible
query I rowsort label-7770
SELECT - - 84 * - 4 * COUNT ( * ) AS col1
----
-336

query I rowsort
SELECT - 69 - - 32 col2
----
-37

query I rowsort
SELECT ALL + NULLIF ( - 41, - 91 ) AS col1
----
-41

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7774
SELECT ALL CASE - + 33 WHEN - 50 THEN - NULLIF ( + MIN( ALL 74 ), + COUNT( - 85 ) ) * - 90 ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7774
SELECT ALL CASE - + 33 WHEN - 50 THEN - NULLIF ( + MIN ( ALL 74 ), + COUNT ( - 85 ) ) * - 90 ELSE NULL END AS col1
----
NULL

query I rowsort
SELECT ALL - 34 * 99 + 53 + + 81 AS col1
----
-3232

onlyif mysql # aggregate syntax: 
query II rowsort label-7776
SELECT - - 23 * + 85 AS col2, - COUNT( DISTINCT + 7 ) - - ( 71 ) col2
----
1955
70

skipif mysql # not compatible
query II rowsort label-7776
SELECT - - 23 * + 85 AS col2, - COUNT ( DISTINCT + 7 ) - - ( 71 ) col2
----
1955
70

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

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

query I rowsort
SELECT ( - 46 )
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-7779
SELECT - 28 * - 97 * - 27 - - 35 * COUNT( * ) AS col2
----
-73297

skipif mysql # not compatible
query I rowsort label-7779
SELECT - 28 * - 97 * - 27 - - 35 * COUNT ( * ) AS col2
----
-73297

onlyif mysql # aggregate syntax: 
query I rowsort label-7780
SELECT - COUNT( * ) - + 60 * - - 47 AS col0
----
-2821

skipif mysql # not compatible
query I rowsort label-7780
SELECT - COUNT ( * ) - + 60 * - - 47 AS col0
----
-2821

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7781
SELECT - 72 * - - CAST( - - 3 AS SIGNED ) + - 91
----
-307

skipif mysql # not compatible
query I rowsort label-7781
SELECT - 72 * - - CAST ( - - 3 AS INTEGER ) + - 91
----
-307

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7783
SELECT - - COUNT( DISTINCT + 92 ) col0
----
1

skipif mysql # not compatible
query I rowsort label-7783
SELECT - - COUNT ( DISTINCT + 92 ) col0
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7784
SELECT + 55 DIV 94 * - CAST( - MIN( 22 ) AS SIGNED )
----
0

skipif mysql # not compatible
query I rowsort label-7784
SELECT + 55 / 94 * - CAST ( - MIN ( 22 ) AS INTEGER )
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7785
SELECT 52 + + + 96 * 6 * + CAST( NULLIF ( + 64, SUM( DISTINCT 21 ) * + 51 ) AS SIGNED ) * 80 + + 64 DIV 86 AS col1
----
2949172

skipif mysql # not compatible
query I rowsort label-7785
SELECT 52 + + + 96 * 6 * + CAST ( NULLIF ( + 64, SUM ( DISTINCT 21 ) * + 51 ) AS INTEGER ) * 80 + + 64 / 86 AS col1
----
2949172

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

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

query I rowsort
SELECT ALL + + 14 + - + 66
----
-52

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7788
SELECT ALL 61 + ( CAST( + 56 AS SIGNED ) ) AS col1
----
117

skipif mysql # not compatible
query I rowsort label-7788
SELECT ALL 61 + ( CAST ( + 56 AS INTEGER ) ) AS col1
----
117

query II rowsort
SELECT - 11 AS col1, 89
----
-11
89

query I rowsort
SELECT ALL 52 - - 45 AS col2
----
97

query I rowsort
SELECT 35 * + - 69 AS col1
----
-2415

query I rowsort
SELECT 71 * + - 36
----
-2556

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

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

query II rowsort
SELECT ALL 4 * + 50 * 11, 66 * - + 56 AS col1
----
2200
-3696

onlyif mysql # aggregate syntax: 
query I rowsort label-7795
SELECT ALL - 23 - - COUNT( * ) col0
----
-22

skipif mysql # not compatible
query I rowsort label-7795
SELECT ALL - 23 - - COUNT ( * ) col0
----
-22

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7797
SELECT + CAST( - 11 AS SIGNED ) * + - 93 + - 71 + - 4
----
948

skipif mysql # not compatible
query I rowsort label-7797
SELECT + CAST ( - 11 AS INTEGER ) * + - 93 + - 71 + - 4
----
948

query I rowsort
SELECT ALL 68 * - + 49 AS col0
----
-3332

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7799
SELECT ( + - COUNT( * ) ) / COALESCE ( + CASE NULLIF ( - NULLIF ( CASE 33 WHEN - 97 + COUNT( * ) THEN + COALESCE ( 87, 78 ) * CAST( NULL AS SIGNED ) END, - 27 ), 62 + COUNT( * ) ) WHEN - 45 * - 9 THEN 69 * 95 + - 69 * ( 52 ) END, CAST( NULL AS SIGNED ) ) - 47
----
NULL

skipif mysql # not compatible
query I rowsort label-7799
SELECT ( + - COUNT ( * ) ) / COALESCE ( + CASE NULLIF ( - NULLIF ( CASE 33 WHEN - 97 + COUNT ( * ) THEN + COALESCE ( 87, 78 ) * CAST ( NULL AS INTEGER ) END, - 27 ), 62 + COUNT ( * ) ) WHEN - 45 * - 9 THEN 69 * 95 + - 69 * ( 52 ) END, CAST ( NULL AS INTEGER ) ) - 47
----
NULL

query I rowsort
SELECT 51 * + - 21 AS col2
----
-1071

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7801
SELECT CAST( - - 42 AS SIGNED ) - - + 79 - + 17
----
104

skipif mysql # not compatible
query I rowsort label-7801
SELECT CAST ( - - 42 AS INTEGER ) - - + 79 - + 17
----
104

onlyif mysql # aggregate syntax: 
query I rowsort label-7802
SELECT MIN( + 68 ) * 95 * - 75 + - ( + ( + 28 ) ) + + CASE + MAX( DISTINCT - ( 45 ) ) WHEN COUNT( * ) - 82 THEN - 86 WHEN - 2 THEN 95 + + 17 END * SUM( DISTINCT + 30 + 53 ) + ( + AVG ( ( 7 ) ) + 30 ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7802
SELECT MIN ( + 68 ) * 95 * - 75 + - ( + ( + 28 ) ) + + CASE + MAX ( DISTINCT - ( 45 ) ) WHEN COUNT ( * ) - 82 THEN - 86 WHEN - 2 THEN 95 + + 17 END * SUM ( DISTINCT + 30 + 53 ) + ( + AVG ( ( 7 ) ) + 30 ) col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7803
SELECT COALESCE ( + 79, - - 83 ) DIV + + 98 + + 61
----
61

skipif mysql # not compatible
query I rowsort label-7803
SELECT COALESCE ( + 79, - - 83 ) / + + 98 + + 61
----
61

query I rowsort
SELECT + 53 + + 67 AS col2
----
120

query II rowsort
SELECT ALL - + 93, + 30 col1
----
-93
30

query I rowsort
SELECT - 62 * 52 AS col1
----
-3224

onlyif mysql # aggregate syntax: 
query I rowsort label-7807
SELECT DISTINCT COUNT( * ) + - - 16
----
17

skipif mysql # not compatible
query I rowsort label-7807
SELECT DISTINCT COUNT ( * ) + - - 16
----
17

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

query I rowsort
SELECT DISTINCT + 41 + ( - + 61 ) + - 69 AS col0
----
-89

query I rowsort
SELECT ALL - - 20 col1
----
20

query I rowsort
SELECT + - 21 col0
----
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-7812
SELECT DISTINCT CASE + COUNT( * ) WHEN + - 40 / - 36 + + - 10 THEN + 35 ELSE NULL END + 0
----
NULL

skipif mysql # not compatible
query I rowsort label-7812
SELECT DISTINCT CASE + COUNT ( * ) WHEN + - 40 / - 36 + + - 10 THEN + 35 ELSE NULL END + 0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7813
SELECT DISTINCT - MIN( DISTINCT 61 ) + COUNT( * ) + + 83 * - + 32 + 9 DIV COUNT( * )
----
-2707

skipif mysql # not compatible
query I rowsort label-7813
SELECT DISTINCT - MIN ( DISTINCT 61 ) + COUNT ( * ) + + 83 * - + 32 + 9 / COUNT ( * )
----
-2707

onlyif mysql # aggregate syntax: 
query I rowsort label-7814
SELECT + COUNT( * ) * 65 AS col1
----
65

skipif mysql # not compatible
query I rowsort label-7814
SELECT + COUNT ( * ) * 65 AS col1
----
65

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7815
SELECT + ( + 76 ) * CAST( NULL AS SIGNED ) / 91 + - 32 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7815
SELECT + ( + 76 ) * CAST ( NULL AS INTEGER ) / 91 + - 32 AS col2
----
NULL

query II rowsort
SELECT ALL 89 AS col2, + 18 AS col0
----
89
18

onlyif mysql # aggregate syntax: 
query I rowsort label-7817
SELECT 51 * - - COUNT( * ) - - 41 + + 20 + + 35 + 53 * - 95 + 75
----
-4813

skipif mysql # not compatible
query I rowsort label-7817
SELECT 51 * - - COUNT ( * ) - - 41 + + 20 + + 35 + 53 * - 95 + 75
----
-4813

query I rowsort
SELECT DISTINCT - ( - - 58 ) * + 46 + + 4 + 6 AS col0
----
-2658

onlyif mysql # DIV for integer division: 
query I rowsort label-7819
SELECT ALL - + 16 DIV + 23
----
0

skipif mysql # not compatible
query I rowsort label-7819
SELECT ALL - + 16 / + 23
----
0

query II rowsort
SELECT ALL - 59 col1, + 33 AS col0
----
-59
33

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query II rowsort label-7821
SELECT 94 AS col0, - COALESCE ( ( 78 ), - + 50 * - COUNT( * ) ) * ( - 17 + - 22 DIV CASE 27 + + NULLIF ( + 20 + + 94 * - COUNT( * ), + CAST( + 29 AS DECIMAL ) ) * - 99 WHEN - COUNT( * ) THEN CASE + 20 WHEN 17 + - 43 THEN 91 WHEN + 0 * + 46 - 73 THEN NULL END - - 11 ELSE 55 - 18 END ) AS col0
----
94
1326

skipif mysql # not compatible
query II rowsort label-7821
SELECT 94 AS col0, - COALESCE ( ( 78 ), - + 50 * - COUNT ( * ) ) * ( - 17 + - 22 / CASE 27 + + NULLIF ( + 20 + + 94 * - COUNT ( * ), + CAST ( + 29 AS REAL ) ) * - 99 WHEN - COUNT ( * ) THEN CASE + 20 WHEN 17 + - 43 THEN 91 WHEN + 0 * + 46 - 73 THEN NULL END - - 11 ELSE 55 - 18 END ) AS col0
----
94
1326

query I rowsort
SELECT 55 + - 99 * + 92 * 47
----
-428021

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7823
SELECT ALL - ( + 5 ) - - CAST( + CASE + 8 WHEN 30 THEN ( CAST( 67 AS SIGNED ) ) - + CAST( + 88 AS SIGNED ) ELSE NULL END AS DECIMAL ) + - 54 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7823
SELECT ALL - ( + 5 ) - - CAST ( + CASE + 8 WHEN 30 THEN ( CAST ( 67 AS INTEGER ) ) - + CAST ( + 88 AS INTEGER ) ELSE NULL END AS REAL ) + - 54 AS col1
----
NULL

query I rowsort
SELECT 29 * - 68
----
-1972

query I rowsort
SELECT 64 + - 8
----
56

onlyif mysql # aggregate syntax: 
query II rowsort label-7826
SELECT 35 + + - COUNT( * ) AS col2, COUNT( * ) * - 83 + + COUNT( * ) + - 29 AS col0
----
34
-111

skipif mysql # not compatible
query II rowsort label-7826
SELECT 35 + + - COUNT ( * ) AS col2, COUNT ( * ) * - 83 + + COUNT ( * ) + - 29 AS col0
----
34
-111

query I rowsort
SELECT 71 * - 98 * + 9
----
-62622

query I rowsort
SELECT DISTINCT + 82 * + 28
----
2296

onlyif mysql # aggregate syntax: 
query I rowsort label-7829
SELECT 54 + MAX( ALL + 99 ) AS col1
----
153

skipif mysql # not compatible
query I rowsort label-7829
SELECT 54 + MAX ( ALL + 99 ) AS col1
----
153

query II rowsort
SELECT ALL 66 AS col0, + 89 AS col2
----
66
89

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7831
SELECT DISTINCT 18 AS col2, - 76 + MIN( DISTINCT 22 ) * + 78 + + + 59 DIV - 7 col2
----
18
1632

skipif mysql # not compatible
query II rowsort label-7831
SELECT DISTINCT 18 AS col2, - 76 + MIN ( DISTINCT 22 ) * + 78 + + + 59 / - 7 col2
----
18
1632

query II rowsort
SELECT 32, 6 * 65 col2
----
32
390

onlyif mysql # DIV for integer division: 
query II rowsort label-7833
SELECT ALL 22, + 24 + + + 26 + - 74 DIV + 95 AS col0
----
22
50

skipif mysql # not compatible
query II rowsort label-7833
SELECT ALL 22, + 24 + + + 26 + - 74 / + 95 AS col0
----
22
50

query I rowsort
SELECT 70 * 61 * 76 AS col2
----
324520

query I rowsort
SELECT DISTINCT - 10 * + 34
----
-340

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

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

query I rowsort
SELECT 60 * + 87
----
5220

query I rowsort
SELECT 96 * - 76 AS col1
----
-7296

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7840
SELECT COUNT( * ) * + 55 * 45
----
2475

skipif mysql # not compatible
query I rowsort label-7840
SELECT COUNT ( * ) * + 55 * 45
----
2475

query II rowsort
SELECT + 42 AS col0, 37 AS col0
----
42
37

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7842
SELECT DISTINCT - - ( + - 14 ) * + CAST( COALESCE ( MAX( - 99 ), CASE + 48 WHEN + 53 * 88 THEN NULL WHEN 7 * + 73 THEN NULL ELSE 89 / + COUNT( * ) + SUM( DISTINCT + 0 ) END / CASE + COUNT( * ) WHEN ( NULLIF ( - ( 58 ), 59 ) ) * 28 + + 44 THEN 6 * + 89 END ) AS SIGNED ) * 13 + - 6 * ( 76 ) + - 29
----
17533

skipif mysql # not compatible
query I rowsort label-7842
SELECT DISTINCT - - ( + - 14 ) * + CAST ( COALESCE ( MAX ( - 99 ), CASE + 48 WHEN + 53 * 88 THEN NULL WHEN 7 * + 73 THEN NULL ELSE 89 / + COUNT ( * ) + SUM ( DISTINCT + 0 ) END / CASE + COUNT ( * ) WHEN ( NULLIF ( - ( 58 ), 59 ) ) * 28 + + 44 THEN 6 * + 89 END ) AS INTEGER ) * 13 + - 6 * ( 76 ) + - 29
----
17533

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7844
SELECT ALL - 19 * - 57 + - CASE - AVG ( ALL - 35 ) WHEN - CASE 86 WHEN 26 * + ( + 52 ) THEN 60 * + 65 ELSE + COALESCE ( 46, ( - 95 ) * 90, + 20 ) END - + CAST( 82 + COUNT( * ) * + 4 AS SIGNED ) * - COUNT( * ) THEN + 96 WHEN 69 THEN NULL END * 98 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7844
SELECT ALL - 19 * - 57 + - CASE - AVG ( ALL - 35 ) WHEN - CASE 86 WHEN 26 * + ( + 52 ) THEN 60 * + 65 ELSE + COALESCE ( 46, ( - 95 ) * 90, + 20 ) END - + CAST ( 82 + COUNT ( * ) * + 4 AS INTEGER ) * - COUNT ( * ) THEN + 96 WHEN 69 THEN NULL END * 98 AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7845
SELECT CAST( + NULLIF ( - - ( + + COALESCE ( + 21, + + COUNT( * ), + AVG ( DISTINCT 13 ) * 62 - ( - 62 ) * - ( + CAST( NULL AS SIGNED ) ) ) ), + 61 * 93 ) AS SIGNED )
----
21

skipif mysql # not compatible
query I rowsort label-7845
SELECT CAST ( + NULLIF ( - - ( + + COALESCE ( + 21, + + COUNT ( * ), + AVG ( DISTINCT 13 ) * 62 - ( - 62 ) * - ( + CAST ( NULL AS INTEGER ) ) ) ), + 61 * 93 ) AS INTEGER )
----
21

query I rowsort
SELECT ALL + 1 + - 63
----
-62

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7849
SELECT CAST( 83 AS SIGNED ) + - - 75 + + COUNT( * ), 47 * + + 61 * + 11 + - COUNT( * ) AS col2
----
159
31536

skipif mysql # not compatible
query II rowsort label-7849
SELECT CAST ( 83 AS INTEGER ) + - - 75 + + COUNT ( * ), 47 * + + 61 * + 11 + - COUNT ( * ) AS col2
----
159
31536

query I rowsort
SELECT DISTINCT 66 + + 45
----
111

onlyif mysql # aggregate syntax: 
query I rowsort label-7851
SELECT ALL - 51 * + + 30 * + CASE - - 31 WHEN + 13 THEN NULL WHEN 42 THEN 35 WHEN 36 THEN NULL ELSE COUNT( * ) END + 24
----
-1506

skipif mysql # not compatible
query I rowsort label-7851
SELECT ALL - 51 * + + 30 * + CASE - - 31 WHEN + 13 THEN NULL WHEN 42 THEN 35 WHEN 36 THEN NULL ELSE COUNT ( * ) END + 24
----
-1506

onlyif mysql # DIV for integer division: 
query I rowsort label-7852
SELECT - 35 * - 43 + 91 * 95 * + 48 + - - 18 DIV + 69
----
416465

skipif mysql # not compatible
query I rowsort label-7852
SELECT - 35 * - 43 + 91 * 95 * + 48 + - - 18 / + 69
----
416465

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

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

query I rowsort
SELECT + 63 * - 95 * - 56
----
335160

onlyif mysql # aggregate syntax: 
query I rowsort label-7855
SELECT DISTINCT - COUNT( * ) + - + COALESCE ( - 87, + 57, - + 26 ) AS col0
----
86

skipif mysql # not compatible
query I rowsort label-7855
SELECT DISTINCT - COUNT ( * ) + - + COALESCE ( - 87, + 57, - + 26 ) AS col0
----
86

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7856
SELECT DISTINCT + 27 + + MAX( DISTINCT + 32 ) - - + NULLIF ( - + ( - 90 ), 30 + - COUNT( * ) ) DIV 61
----
60

skipif mysql # not compatible
query I rowsort label-7856
SELECT DISTINCT + 27 + + MAX ( DISTINCT + 32 ) - - + NULLIF ( - + ( - 90 ), 30 + - COUNT ( * ) ) / 61
----
60

query I rowsort
SELECT DISTINCT + 69 + - + 44
----
25

onlyif mysql # aggregate syntax: 
query II rowsort label-7858
SELECT ALL COUNT( * ) col1, - 85 - 95 + + - 50 * - 60 AS col2
----
1
2820

skipif mysql # not compatible
query II rowsort label-7858
SELECT ALL COUNT ( * ) col1, - 85 - 95 + + - 50 * - 60 AS col2
----
1
2820

query II rowsort
SELECT ALL + 41, + 72 col2
----
41
72

query II rowsort
SELECT 49 AS col0, + 1 AS col1
----
49
1

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

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

query I rowsort
SELECT + COALESCE ( - 13, + ( + 48 ) + 2 )
----
-13

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7864
SELECT - COUNT( * ) * + COUNT( NULLIF ( - - 8, 1 ) )
----
-1

skipif mysql # not compatible
query I rowsort label-7864
SELECT - COUNT ( * ) * + COUNT ( NULLIF ( - - 8, 1 ) )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7865
SELECT ALL + 95 * + NULLIF ( + 43, + - NULLIF ( + + CASE - 13 WHEN - + 42 THEN NULL ELSE NULLIF ( 13, ( + 97 ) ) END, COUNT( * ) * 25 + ( + 91 ) ) + 70 / + 91 )
----
4085

skipif mysql # not compatible
query I rowsort label-7865
SELECT ALL + 95 * + NULLIF ( + 43, + - NULLIF ( + + CASE - 13 WHEN - + 42 THEN NULL ELSE NULLIF ( 13, ( + 97 ) ) END, COUNT ( * ) * 25 + ( + 91 ) ) + 70 / + 91 )
----
4085

onlyif mysql # aggregate syntax: 
query II rowsort label-7866
SELECT - ( 29 ) AS col0, - 12 - - CASE + ( + 56 ) WHEN - ( 32 ) + 18 THEN NULL WHEN + 98 THEN + COUNT( - 20 ) * ( - 42 * 15 + - 49 * 94 ) END + COUNT( * ) * + 64 * - 63
----
-29
NULL

skipif mysql # not compatible
query II rowsort label-7866
SELECT - ( 29 ) AS col0, - 12 - - CASE + ( + 56 ) WHEN - ( 32 ) + 18 THEN NULL WHEN + 98 THEN + COUNT ( - 20 ) * ( - 42 * 15 + - 49 * 94 ) END + COUNT ( * ) * + 64 * - 63
----
-29
NULL

query II rowsort
SELECT ALL - 23 - - - 2 + 35 + + - 28 * - 5, - 43 col0
----
150
-43

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7868
SELECT DISTINCT NULLIF ( + + ( - CAST( NULL AS SIGNED ) ), - 28 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7868
SELECT DISTINCT NULLIF ( + + ( - CAST ( NULL AS INTEGER ) ), - 28 )
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-7869
SELECT DISTINCT + 51 DIV 75 AS col1, + NULLIF ( 53, - 95 ) AS col2
----
0
53

skipif mysql # not compatible
query II rowsort label-7869
SELECT DISTINCT + 51 / 75 AS col1, + NULLIF ( 53, - 95 ) AS col2
----
0
53

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7870
SELECT - ( + - 4 ) * - + 83 AS col0, 52 * - CAST( NULL AS SIGNED ) * + - 88 + + COUNT( * ) AS col2
----
-332
NULL

skipif mysql # not compatible
query II rowsort label-7870
SELECT - ( + - 4 ) * - + 83 AS col0, 52 * - CAST ( NULL AS INTEGER ) * + - 88 + + COUNT ( * ) AS col2
----
-332
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7871
SELECT - ( 35 ), 90 * + COALESCE ( + - 78, + COUNT( * ) ) AS col1
----
-35
-7020

skipif mysql # not compatible
query II rowsort label-7871
SELECT - ( 35 ), 90 * + COALESCE ( + - 78, + COUNT ( * ) ) AS col1
----
-35
-7020

query I rowsort
SELECT + 27 + + 61 * - - 25 - + 65
----
1487

query I rowsort
SELECT - 44 + + 69
----
25

onlyif mysql # DIV for integer division: 
query I rowsort label-7874
SELECT - 9 DIV - 55
----
0

skipif mysql # not compatible
query I rowsort label-7874
SELECT - 9 / - 55
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-7875
SELECT ALL 16 DIV - 21 + + 90
----
90

skipif mysql # not compatible
query I rowsort label-7875
SELECT ALL 16 / - 21 + + 90
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-7876
SELECT - ( - 94 ) + 67 + + 37 + 9 + 73 * + - ( ( 93 ) ) * COUNT( * )
----
-6582

skipif mysql # not compatible
query I rowsort label-7876
SELECT - ( - 94 ) + 67 + + 37 + 9 + 73 * + - ( ( 93 ) ) * COUNT ( * )
----
-6582

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7877
SELECT ( + CAST( - - 24 AS SIGNED ) )
----
24

skipif mysql # not compatible
query I rowsort label-7877
SELECT ( + CAST ( - - 24 AS INTEGER ) )
----
24

onlyif mysql # aggregate syntax: 
query II rowsort label-7878
SELECT ALL - 61 * + + 75 AS col0, + NULLIF ( - 58, + - 49 - + 42 + COUNT( * ) * 87 )
----
-4575
-58

skipif mysql # not compatible
query II rowsort label-7878
SELECT ALL - 61 * + + 75 AS col0, + NULLIF ( - 58, + - 49 - + 42 + COUNT ( * ) * 87 )
----
-4575
-58

query I rowsort
SELECT ALL 84 * + 76 + + 98 + - 91
----
6391

query I rowsort
SELECT ALL 53 * 6 + - COALESCE ( - - 91, 66 ) - + + 25 * 53
----
-1098

query I rowsort
SELECT ALL - - 59 * + 81 + + 41
----
4820

onlyif mysql # aggregate syntax: 
query I rowsort label-7882
SELECT - + 66 + - + NULLIF ( - 72, COUNT( - - 9 ) * - 60 )
----
6

skipif mysql # not compatible
query I rowsort label-7882
SELECT - + 66 + - + NULLIF ( - 72, COUNT ( - - 9 ) * - 60 )
----
6

query I rowsort
SELECT ALL + 55 * + 24 * + + 4 + + 0 + - 23
----
5257

query I rowsort
SELECT - 80 * ( - - 35 )
----
-2800

query III rowsort
SELECT ALL + - ( + 47 ) AS col2, + 93 col0, - 35
----
-47
93
-35

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7887
SELECT - + 93 * - + 26 + + - ( + 82 ) * + COUNT( * )
----
2336

skipif mysql # not compatible
query I rowsort label-7887
SELECT - + 93 * - + 26 + + - ( + 82 ) * + COUNT ( * )
----
2336

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7888
SELECT DISTINCT - ( 35 ) * - 22 * - CAST( - + MAX( DISTINCT + 64 ) AS SIGNED ) + - 38 + - 26 * - CAST( NULL AS SIGNED ) / + CAST( 45 + 79 AS SIGNED ) + ( - COUNT( * ) ) * 78 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7888
SELECT DISTINCT - ( 35 ) * - 22 * - CAST ( - + MAX ( DISTINCT + 64 ) AS INTEGER ) + - 38 + - 26 * - CAST ( NULL AS INTEGER ) / + CAST ( 45 + 79 AS INTEGER ) + ( - COUNT ( * ) ) * 78 AS col0
----
NULL

query II rowsort
SELECT - 65 + + 41 AS col2, 54 * + 11 + + 53
----
-24
647

query I rowsort
SELECT ALL + 40 * - 58
----
-2320

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7892
SELECT ALL + MIN( - 83 ) * + CASE - 36 WHEN - 4 THEN NULL WHEN + 71 THEN 14 ELSE NULL END - - 84
----
NULL

skipif mysql # not compatible
query I rowsort label-7892
SELECT ALL + MIN ( - 83 ) * + CASE - 36 WHEN - 4 THEN NULL WHEN + 71 THEN 14 ELSE NULL END - - 84
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7893
SELECT DISTINCT 22 * 32 DIV 71
----
9

skipif mysql # not compatible
query I rowsort label-7893
SELECT DISTINCT 22 * 32 / 71
----
9

onlyif mysql # DIV for integer division: 
query I rowsort label-7894
SELECT - + 90 DIV 76 DIV + 66 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-7894
SELECT - + 90 / 76 / + 66 AS col1
----
0

query I rowsort
SELECT + + 85 * - 48 AS col2
----
-4080

query I rowsort
SELECT ALL + - NULLIF ( - + 72, + 51 ) * 59 * 76 AS col2
----
322848

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7897
SELECT - CAST( NULL AS SIGNED ) + + 31 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7897
SELECT - CAST ( NULL AS INTEGER ) + + 31 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7898
SELECT ALL 84 * COUNT( * ) AS col1
----
84

skipif mysql # not compatible
query I rowsort label-7898
SELECT ALL 84 * COUNT ( * ) AS col1
----
84

query I rowsort
SELECT DISTINCT - 46 * + - 56 AS col1
----
2576

onlyif mysql # aggregate syntax: 
query I rowsort label-7900
SELECT + 37 * - 81 + + - SUM( ALL - 40 ) AS col0
----
-2957

skipif mysql # not compatible
query I rowsort label-7900
SELECT + 37 * - 81 + + - SUM ( ALL - 40 ) AS col0
----
-2957

onlyif mysql # aggregate syntax: 
query I rowsort label-7901
SELECT ALL + SUM( + + 38 ) * - - COUNT( * ) * 49 * 51 + - - COUNT( * )
----
94963

skipif mysql # not compatible
query I rowsort label-7901
SELECT ALL + SUM ( + + 38 ) * - - COUNT ( * ) * 49 * 51 + - - COUNT ( * )
----
94963

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7902
SELECT ALL + CAST( NULL AS SIGNED ) * + + COUNT( DISTINCT - - 76 ), 2 AS col0
----
NULL
2

skipif mysql # not compatible
query II rowsort label-7902
SELECT ALL + CAST ( NULL AS INTEGER ) * + + COUNT ( DISTINCT - - 76 ), 2 AS col0
----
NULL
2

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-7903
SELECT DISTINCT CAST( NULL AS DECIMAL ) AS col2, 70 col0
----
NULL
70

skipif mysql # not compatible
query II rowsort label-7903
SELECT DISTINCT CAST ( NULL AS REAL ) AS col2, 70 col0
----
NULL
70

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7904
SELECT ALL MAX( + CAST( + 36 AS SIGNED ) ) AS col2
----
36

skipif mysql # not compatible
query I rowsort label-7904
SELECT ALL MAX ( + CAST ( + 36 AS INTEGER ) ) AS col2
----
36

query I rowsort
SELECT + 87 + + 12
----
99

query I rowsort
SELECT + 4 + - - 30 AS col2
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-7907
SELECT - CASE - - SUM( + ( + + 19 ) ) WHEN - 12 * - 98 THEN NULL ELSE - 68 END AS col2
----
68

skipif mysql # not compatible
query I rowsort label-7907
SELECT - CASE - - SUM ( + ( + + 19 ) ) WHEN - 12 * - 98 THEN NULL ELSE - 68 END AS col2
----
68

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7909
SELECT + 57 + - - ( + 96 ) + - COUNT( * )
----
152

skipif mysql # not compatible
query I rowsort label-7909
SELECT + 57 + - - ( + 96 ) + - COUNT ( * )
----
152

query II rowsort
SELECT 62, 19 * - 34 AS col1
----
62
-646

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7911
SELECT - CAST( NULL AS SIGNED ) + - - 20 + 89 * - - 37
----
NULL

skipif mysql # not compatible
query I rowsort label-7911
SELECT - CAST ( NULL AS INTEGER ) + - - 20 + 89 * - - 37
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7912
SELECT ALL 39 + CASE - 29 WHEN + 24 THEN - SUM( + 13 ) + - ( + 34 ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-7912
SELECT ALL 39 + CASE - 29 WHEN + 24 THEN - SUM ( + 13 ) + - ( + 34 ) ELSE NULL END
----
NULL

query I rowsort
SELECT - 9 + - - 27
----
18

query I rowsort
SELECT ALL 15 + + 24 AS col1
----
39

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7915
SELECT DISTINCT MIN( + 15 ) + - NULLIF ( - 65, - 81 / ( + 63 ) / - 46 * 53 - CAST( NULL AS SIGNED ) / COUNT( * ) )
----
80

skipif mysql # not compatible
query I rowsort label-7915
SELECT DISTINCT MIN ( + 15 ) + - NULLIF ( - 65, - 81 / ( + 63 ) / - 46 * 53 - CAST ( NULL AS INTEGER ) / COUNT ( * ) )
----
80

query I rowsort
SELECT DISTINCT 44 + 93 - - 97
----
234

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7917
SELECT ALL CASE MIN( - 97 ) WHEN - 81 * 78 * 88 THEN + - 43 + 57 + - CAST( NULL AS DECIMAL ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-7917
SELECT ALL CASE MIN ( - 97 ) WHEN - 81 * 78 * 88 THEN + - 43 + 57 + - CAST ( NULL AS REAL ) END
----
NULL

query I rowsort
SELECT DISTINCT 20 * - - 68 * 95
----
129200

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7920
SELECT DISTINCT COUNT( * ) + 92 AS col1
----
93

skipif mysql # not compatible
query I rowsort label-7920
SELECT DISTINCT COUNT ( * ) + 92 AS col1
----
93

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7921
SELECT + CAST( + + 82 AS SIGNED ) * + NULLIF ( + COUNT( * ), COUNT( * ) * 85 + + 27 - + 84 / 28 ) AS col1
----
82

skipif mysql # not compatible
query I rowsort label-7921
SELECT + CAST ( + + 82 AS INTEGER ) * + NULLIF ( + COUNT ( * ), COUNT ( * ) * 85 + + 27 - + 84 / 28 ) AS col1
----
82

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7923
SELECT + 0 * - COUNT( * ) AS col1
----
0

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

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

skipif mysql # not compatible
query I rowsort label-7924
SELECT ( + + ( CAST ( NULL AS INTEGER ) ) ) * + COUNT ( ALL + - 65 ) AS col2
----
NULL

query II rowsort
SELECT ALL - 55 col2, 51
----
-55
51

query II rowsort
SELECT 98 * 22 + 93 AS col1, 16 col1
----
2249
16

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

query I rowsort
SELECT ALL - + 89 col1
----
-89

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7929
SELECT DISTINCT + NULLIF ( - 25, + CAST( NULL AS DECIMAL ) ) * - + COUNT( * ) AS col0
----
25

skipif mysql # not compatible
query I rowsort label-7929
SELECT DISTINCT + NULLIF ( - 25, + CAST ( NULL AS REAL ) ) * - + COUNT ( * ) AS col0
----
25

query I rowsort
SELECT - 72 * + 42 AS col1
----
-3024

onlyif mysql # aggregate syntax: 
query I rowsort label-7931
SELECT 19 * - 47 + + 42 + + - MAX( DISTINCT + 46 ) AS col2
----
-897

skipif mysql # not compatible
query I rowsort label-7931
SELECT 19 * - 47 + + 42 + + - MAX ( DISTINCT + 46 ) AS col2
----
-897

query II rowsort
SELECT DISTINCT + 50 * + ( - 2 ) AS col0, 48 AS col2
----
-100
48

query I rowsort
SELECT - 38 * 95
----
-3610

onlyif mysql # aggregate syntax: 
query I rowsort label-7934
SELECT + 88 * - 53 * 1 + - CASE WHEN NULL <> 1 THEN 49 WHEN NOT 68 + - 10 > NULLIF ( + 20, - 94 * COUNT( * ) ) / + 26 THEN - 28 + - 11 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7934
SELECT + 88 * - 53 * 1 + - CASE WHEN NULL <> 1 THEN 49 WHEN NOT 68 + - 10 > NULLIF ( + 20, - 94 * COUNT ( * ) ) / + 26 THEN - 28 + - 11 END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7935
SELECT SUM( DISTINCT 56 ) AS col1
----
56

skipif mysql # not compatible
query I rowsort label-7935
SELECT SUM ( DISTINCT 56 ) AS col1
----
56

query I rowsort
SELECT - + 87 * 14 - - 22
----
-1196

query II rowsort
SELECT DISTINCT 40 * + - 60 AS col1, 17
----
-2400
17

onlyif mysql # DIV for integer division: 
query I rowsort label-7938
SELECT DISTINCT - 78 DIV - 20 AS col2
----
3

skipif mysql # not compatible
query I rowsort label-7938
SELECT DISTINCT - 78 / - 20 AS col2
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-7939
SELECT 74 DIV - 8 col2
----
-9

skipif mysql # not compatible
query I rowsort label-7939
SELECT 74 / - 8 col2
----
-9

query I rowsort
SELECT 45 * - 86
----
-3870

query II rowsort
SELECT 80 * + + 0 AS col2, 51 AS col2
----
0
51

query I rowsort
SELECT DISTINCT - 51 + + 56 + 64
----
69

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7943
SELECT DISTINCT 80 + COUNT( * ) - - 25 + + 68 DIV - - 74
----
106

skipif mysql # not compatible
query I rowsort label-7943
SELECT DISTINCT 80 + COUNT ( * ) - - 25 + + 68 / - - 74
----
106

query I rowsort
SELECT 70 - - 39 * + + 10 col2
----
460

query I rowsort
SELECT DISTINCT 74 + 51 AS col2
----
125

onlyif mysql # aggregate syntax: 
query I rowsort label-7946
SELECT ALL - 43 * + 66 * - COUNT( * ) AS col2
----
2838

skipif mysql # not compatible
query I rowsort label-7946
SELECT ALL - 43 * + 66 * - COUNT ( * ) AS col2
----
2838

query I rowsort
SELECT DISTINCT + 88 + 30 AS col2
----
118

query I rowsort
SELECT ALL - 34 + + 49 col2
----
15

query I rowsort
SELECT 79 + + - COALESCE ( - 69, + 53 ) * - 23 - + 77
----
-1585

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7950
SELECT CAST( NULL AS SIGNED ) * 64, 40 * - COUNT( * ) - - 34 * + 34 AS col2
----
NULL
1116

skipif mysql # not compatible
query II rowsort label-7950
SELECT CAST ( NULL AS INTEGER ) * 64, 40 * - COUNT ( * ) - - 34 * + 34 AS col2
----
NULL
1116

onlyif mysql # aggregate syntax: 
query II rowsort label-7951
SELECT + ( + 8 ) * - + COUNT( * ) - + 30 AS col0, 99 AS col0
----
-38
99

skipif mysql # not compatible
query II rowsort label-7951
SELECT + ( + 8 ) * - + COUNT ( * ) - + 30 AS col0, 99 AS col0
----
-38
99

query I rowsort
SELECT DISTINCT - 22 * 33 + 25
----
-701

onlyif mysql # aggregate syntax: 
query II rowsort label-7953
SELECT COUNT( * ) + + 22, + 3 col0
----
23
3

skipif mysql # not compatible
query II rowsort label-7953
SELECT COUNT ( * ) + + 22, + 3 col0
----
23
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7954
SELECT ALL - COUNT( DISTINCT ( - 28 ) ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-7954
SELECT ALL - COUNT ( DISTINCT ( - 28 ) ) AS col1
----
-1

query I rowsort
SELECT + ( - 82 ) + 66
----
-16

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7956
SELECT ALL 59 * - + ( + + 66 ) * 97 + - - CAST( NULL AS SIGNED ) + - 59 + + ( 19 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7956
SELECT ALL 59 * - + ( + + 66 ) * 97 + - - CAST ( NULL AS INTEGER ) + - 59 + + ( 19 )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7957
SELECT DISTINCT 99 * - - 77 * - CASE ( - 52 ) WHEN - 17 + - - 52 THEN + AVG ( ALL - 96 ) END * - SUM( - CAST( NULL AS SIGNED ) * + 58 + + 23 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7957
SELECT DISTINCT 99 * - - 77 * - CASE ( - 52 ) WHEN - 17 + - - 52 THEN + AVG ( ALL - 96 ) END * - SUM ( - CAST ( NULL AS INTEGER ) * + 58 + + 23 ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7958
SELECT ALL COUNT( * ) - + 77 + + 41 col1
----
-35

skipif mysql # not compatible
query I rowsort label-7958
SELECT ALL COUNT ( * ) - + 77 + + 41 col1
----
-35

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7959
SELECT + 73 DIV 63 + - 91 * COUNT( * ) + + + 92 AS col2
----
2

skipif mysql # not compatible
query I rowsort label-7959
SELECT + 73 / 63 + - 91 * COUNT ( * ) + + + 92 AS col2
----
2

query I rowsort
SELECT DISTINCT - + 21 AS col1
----
-21

query I rowsort
SELECT - 70 + + 31
----
-39

query I rowsort
SELECT ALL - CASE WHEN + AVG ( ALL + 84 ) BETWEEN + - 29 AND NULL THEN + 52 * - 21 * - AVG ( - 70 ) - + 15 END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7963
SELECT 59 * 75 + 22 * + - 83 + - - COUNT( * ) AS col2, + 26
----
2600
26

skipif mysql # not compatible
query II rowsort label-7963
SELECT 59 * 75 + 22 * + - 83 + - - COUNT ( * ) AS col2, + 26
----
2600
26

query I rowsort
SELECT DISTINCT - + 10
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-7965
SELECT MIN( - - 21 ) + + 20 + 19 + - + 7 * - 24 * + COUNT( * )
----
228

skipif mysql # not compatible
query I rowsort label-7965
SELECT MIN ( - - 21 ) + + 20 + 19 + - + 7 * - 24 * + COUNT ( * )
----
228

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7966
SELECT 92 DIV + NULLIF ( 69, + 12 * + COUNT( * ) * 12 + - NULLIF ( + - 17, - 64 ) ) + 39 AS col2
----
40

skipif mysql # not compatible
query I rowsort label-7966
SELECT 92 / + NULLIF ( 69, + 12 * + COUNT ( * ) * 12 + - NULLIF ( + - 17, - 64 ) ) + 39 AS col2
----
40

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7967
SELECT 39 * - - CAST( + - 45 AS SIGNED ) + + 9 + 44 + - 30 + + COUNT( * ) * 80 - + + 34 AS col2
----
-1686

skipif mysql # not compatible
query I rowsort label-7967
SELECT 39 * - - CAST ( + - 45 AS INTEGER ) + + 9 + 44 + - 30 + + COUNT ( * ) * 80 - + + 34 AS col2
----
-1686

onlyif mysql # aggregate syntax: 
query I rowsort label-7968
SELECT DISTINCT 11 * + - 18 * - CASE - COUNT( * ) WHEN + 19 THEN + + COALESCE ( - 44, 89 / - COUNT( * ), - 68 / + 92 ) * + 42 WHEN + COUNT( - 46 ) THEN NULL ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7968
SELECT DISTINCT 11 * + - 18 * - CASE - COUNT ( * ) WHEN + 19 THEN + + COALESCE ( - 44, 89 / - COUNT ( * ), - 68 / + 92 ) * + 42 WHEN + COUNT ( - 46 ) THEN NULL ELSE NULL END AS col1
----
NULL

query I rowsort
SELECT ALL + 37 + ( - ( + 37 ) ) + + - 15 + + 44 * + - COALESCE ( - + 41, - - 52, + ( 41 ) * - 22 )
----
1789

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7970
SELECT COALESCE ( COALESCE ( + 96, CASE 38 WHEN - 26 THEN + 79 ELSE - 54 END * - 14 + 86 + + 36 + 9, - 32, - 97 ), COALESCE ( + 23, + 95 * + 39 ) * + CAST( - COALESCE ( 22, - 34, + 55 ) AS DECIMAL ) - - 78 * + 72 ) + + CASE 81 WHEN COUNT( * ) + MIN( + ( + 27 ) ) THEN ( 19 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-7970
SELECT COALESCE ( COALESCE ( + 96, CASE 38 WHEN - 26 THEN + 79 ELSE - 54 END * - 14 + 86 + + 36 + 9, - 32, - 97 ), COALESCE ( + 23, + 95 * + 39 ) * + CAST ( - COALESCE ( 22, - 34, + 55 ) AS REAL ) - - 78 * + 72 ) + + CASE 81 WHEN COUNT ( * ) + MIN ( + ( + 27 ) ) THEN ( 19 ) END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7971
SELECT ALL - 74 * COUNT( * ) * + 82
----
-6068

skipif mysql # not compatible
query I rowsort label-7971
SELECT ALL - 74 * COUNT ( * ) * + 82
----
-6068

query I rowsort
SELECT 54 + + 16
----
70

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7973
SELECT 90 * - + ( - - COALESCE ( + 77, - + ( + 74 ) DIV + COUNT( * ) DIV 39, + COUNT( * ) ) ) AS col2
----
-6930

skipif mysql # not compatible
query I rowsort label-7973
SELECT 90 * - + ( - - COALESCE ( + 77, - + ( + 74 ) / + COUNT ( * ) / 39, + COUNT ( * ) ) ) AS col2
----
-6930

query II rowsort
SELECT ALL - 65 + - 15 * + 42 + + 55 + + 7 + + 47 AS col1, 42
----
-586
42

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7975
SELECT ALL + 1 + + - CAST( ( - + CAST( NULL AS SIGNED ) ) AS SIGNED ) + - - 1 + + - 3 + - 70 * ( + 10 ) / COUNT( * ) + + 28
----
NULL

skipif mysql # not compatible
query I rowsort label-7975
SELECT ALL + 1 + + - CAST ( ( - + CAST ( NULL AS INTEGER ) ) AS INTEGER ) + - - 1 + + - 3 + - 70 * ( + 10 ) / COUNT ( * ) + + 28
----
NULL

query I rowsort
SELECT DISTINCT 69 + + 80
----
149

onlyif mysql # aggregate syntax: 
query I rowsort label-7977
SELECT ALL MIN( DISTINCT + - 40 )
----
-40

skipif mysql # not compatible
query I rowsort label-7977
SELECT ALL MIN ( DISTINCT + - 40 )
----
-40

query I rowsort
SELECT 89 + + CASE - 56 WHEN - - 51 + - 70 THEN - 26 END * - 41 AS col1
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7979
SELECT ALL + 2 + + CAST( NULL AS DECIMAL ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7979
SELECT ALL + 2 + + CAST ( NULL AS REAL ) AS col1
----
NULL

query I rowsort
SELECT 99 + - 26 * + 45 AS col0
----
-1071

onlyif mysql # aggregate syntax: 
query I rowsort label-7981
SELECT ALL 85 + COUNT( * )
----
86

skipif mysql # not compatible
query I rowsort label-7981
SELECT ALL 85 + COUNT ( * )
----
86

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7982
SELECT DISTINCT - COUNT( * ) DIV - - 37 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-7982
SELECT DISTINCT - COUNT ( * ) / - - 37 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7983
SELECT COUNT( * ) + + 23 AS col0
----
24

skipif mysql # not compatible
query I rowsort label-7983
SELECT COUNT ( * ) + + 23 AS col0
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-7984
SELECT ALL - COUNT( * ) - 43
----
-44

skipif mysql # not compatible
query I rowsort label-7984
SELECT ALL - COUNT ( * ) - 43
----
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-7985
SELECT - SUM( ALL 98 ) * - + 58 - - 68 + 96
----
5848

skipif mysql # not compatible
query I rowsort label-7985
SELECT - SUM ( ALL 98 ) * - + 58 - - 68 + 96
----
5848

onlyif mysql # aggregate syntax: 
query I rowsort label-7986
SELECT + COUNT( * ) + + + 65 * - - 55
----
3576

skipif mysql # not compatible
query I rowsort label-7986
SELECT + COUNT ( * ) + + + 65 * - - 55
----
3576

query I rowsort
SELECT ALL + 39 * + - 95 col2
----
-3705

onlyif mysql # aggregate syntax: 
query I rowsort label-7988
SELECT ALL - COUNT( * ) * 94 * + 99 AS col2
----
-9306

skipif mysql # not compatible
query I rowsort label-7988
SELECT ALL - COUNT ( * ) * 94 * + 99 AS col2
----
-9306

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7989
SELECT - COALESCE ( - - SUM( DISTINCT - 20 ), - CAST( NULL AS SIGNED ) ) * - + 55 AS col1, NULLIF ( - 98, 51 )
----
-1100
-98

skipif mysql # not compatible
query II rowsort label-7989
SELECT - COALESCE ( - - SUM ( DISTINCT - 20 ), - CAST ( NULL AS INTEGER ) ) * - + 55 AS col1, NULLIF ( - 98, 51 )
----
-1100
-98

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7990
SELECT DISTINCT CASE + 82 WHEN - + 27 + - 1 THEN + CASE - - 58 WHEN + 34 * + 9 + + COUNT( + - 73 ) THEN NULL ELSE 28 - + 4 END + + 34 ELSE ( - NULLIF ( CAST( 85 AS SIGNED ), 20 ) ) END AS col1
----
-85

skipif mysql # not compatible
query I rowsort label-7990
SELECT DISTINCT CASE + 82 WHEN - + 27 + - 1 THEN + CASE - - 58 WHEN + 34 * + 9 + + COUNT ( + - 73 ) THEN NULL ELSE 28 - + 4 END + + 34 ELSE ( - NULLIF ( CAST ( 85 AS INTEGER ), 20 ) ) END AS col1
----
-85

query I rowsort
SELECT ALL - 33 * 85
----
-2805

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7993
SELECT DISTINCT CAST( - - NULLIF ( CAST( - + COUNT( ALL + + 87 ) AS SIGNED ), 29 * ( - 31 ) - - 2 ) AS SIGNED ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-7993
SELECT DISTINCT CAST ( - - NULLIF ( CAST ( - + COUNT ( ALL + + 87 ) AS INTEGER ), 29 * ( - 31 ) - - 2 ) AS INTEGER ) AS col0
----
-1

query I rowsort
SELECT + 63 * + 41
----
2583

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

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

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

query I rowsort
SELECT ALL - 17 * 17 + + 28
----
-261

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

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

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

query I rowsort
SELECT ALL 17 * - 71
----
-1207

query I rowsort
SELECT + - COALESCE ( - ( - 92 ), - 40 * - - 25 * + 1 ) AS col1
----
-92

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8002
SELECT ALL 50 * + 62 * - 1 / 49 / - + 33 / - - CAST( NULL AS SIGNED ) + + 76 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8002
SELECT ALL 50 * + 62 * - 1 / 49 / - + 33 / - - CAST ( NULL AS INTEGER ) + + 76 AS col1
----
NULL

query II rowsort
SELECT + 37 AS col1, - ( + 12 ) AS col1
----
37
-12

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8004
SELECT + + NULLIF ( 86, - SUM( + CAST( - 59 AS SIGNED ) ) * 50 * 10 + - 65 ) AS col0
----
86

skipif mysql # not compatible
query I rowsort label-8004
SELECT + + NULLIF ( 86, - SUM ( + CAST ( - 59 AS INTEGER ) ) * 50 * 10 + - 65 ) AS col0
----
86

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8005
SELECT + CAST( - + CASE - COUNT( * ) WHEN - - 96 THEN NULL WHEN - - 5 THEN NULL WHEN + 39 THEN COUNT( * ) END AS DECIMAL ) + - 3 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8005
SELECT + CAST ( - + CASE - COUNT ( * ) WHEN - - 96 THEN NULL WHEN - - 5 THEN NULL WHEN + 39 THEN COUNT ( * ) END AS REAL ) + - 3 col2
----
NULL

query I rowsort
SELECT + COALESCE ( - 32, + + 41 )
----
-32

query I rowsort
SELECT ALL 13 * - 27 + + 20
----
-331

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-8010
SELECT ALL + 6 DIV 36
----
0

skipif mysql # not compatible
query I rowsort label-8010
SELECT ALL + 6 / 36
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8011
SELECT + COALESCE ( 29, + - COALESCE ( + + COUNT( * ), + 22 + + - AVG ( + NULLIF ( 48, + 40 ) ) ) * - - 67 + + 25 + 64 * 75, ( + 39 ) * ( 24 ) ) DIV + 19
----
1

skipif mysql # not compatible
query I rowsort label-8011
SELECT + COALESCE ( 29, + - COALESCE ( + + COUNT ( * ), + 22 + + - AVG ( + NULLIF ( 48, + 40 ) ) ) * - - 67 + + 25 + 64 * 75, ( + 39 ) * ( 24 ) ) / + 19
----
1

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

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

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

query I rowsort
SELECT ALL 56 * ( - ( - 82 ) ) + + 35
----
4627

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

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

query I rowsort
SELECT ALL + ( - 30 ) - 23
----
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-8017
SELECT DISTINCT MIN( DISTINCT 67 )
----
67

skipif mysql # not compatible
query I rowsort label-8017
SELECT DISTINCT MIN ( DISTINCT 67 )
----
67

query II rowsort
SELECT 24 AS col0, 13 * + 76 AS col2
----
24
988

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8019
SELECT ALL + AVG ( DISTINCT - - 32 ) - + MAX( + - CAST( NULL AS DECIMAL ) ) * COUNT( * ) + - 78 + + ( + 82 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8019
SELECT ALL + AVG ( DISTINCT - - 32 ) - + MAX ( + - CAST ( NULL AS REAL ) ) * COUNT ( * ) + - 78 + + ( + 82 ) AS col1
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-8021
SELECT - 32 - + + NULLIF ( - COUNT( * ), + 97 ) AS col2
----
-31

skipif mysql # not compatible
query I rowsort label-8021
SELECT - 32 - + + NULLIF ( - COUNT ( * ), + 97 ) AS col2
----
-31

query II rowsort
SELECT - - 50, + NULLIF ( + 88, - 41 + + 98 ) col0
----
50
88

onlyif mysql # aggregate syntax: 
query I rowsort label-8023
SELECT ALL - SUM( DISTINCT - 90 ) AS col1
----
90

skipif mysql # not compatible
query I rowsort label-8023
SELECT ALL - SUM ( DISTINCT - 90 ) AS col1
----
90

query I rowsort
SELECT - + 51 * + - 36 AS col2
----
1836

onlyif mysql # aggregate syntax: 
query I rowsort label-8025
SELECT ALL - CASE WHEN 44 IS NULL THEN + 33 + AVG ( - 59 ) - - - SUM( - 56 ) + + COUNT( * ) * 33 / - 78 + 20 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8025
SELECT ALL - CASE WHEN 44 IS NULL THEN + 33 + AVG ( - 59 ) - - - SUM ( - 56 ) + + COUNT ( * ) * 33 / - 78 + 20 END AS col1
----
NULL

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-8027
SELECT - 77 DIV + 54 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-8027
SELECT - 77 / + 54 AS col1
----
-1

query I rowsort
SELECT - NULLIF ( + + 81, - + 0 )
----
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-8029
SELECT DISTINCT + + 23 * - 78 + - 76 * 34 * NULLIF ( + - 22, - COUNT( * ) + - 41 * - + 59 * - + 39 * - 61 * COUNT( * ) ) + + 67
----
55121

skipif mysql # not compatible
query I rowsort label-8029
SELECT DISTINCT + + 23 * - 78 + - 76 * 34 * NULLIF ( + - 22, - COUNT ( * ) + - 41 * - + 59 * - + 39 * - 61 * COUNT ( * ) ) + + 67
----
55121

query I rowsort
SELECT + ( - + 45 ) * + 15 * + 12 * + 28
----
-226800

query I rowsort
SELECT - 4 + 34 * + 4
----
132

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8032
SELECT DISTINCT + + 28 DIV - + 8 + + + 98 + + COUNT( * ) AS col1
----
96

skipif mysql # not compatible
query I rowsort label-8032
SELECT DISTINCT + + 28 / - + 8 + + + 98 + + COUNT ( * ) AS col1
----
96

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8033
SELECT + 2 * 41 * + - 29 + - 15 DIV - SUM( + - 61 ) * - 88 * + COUNT( * ) + - 81 * 11 + + 55 + - 63
----
-3277

skipif mysql # not compatible
query I rowsort label-8033
SELECT + 2 * 41 * + - 29 + - 15 / - SUM ( + - 61 ) * - 88 * + COUNT ( * ) + - 81 * 11 + + 55 + - 63
----
-3277

onlyif mysql # aggregate syntax: 
query I rowsort label-8034
SELECT + + MIN( DISTINCT 80 )
----
80

skipif mysql # not compatible
query I rowsort label-8034
SELECT + + MIN ( DISTINCT 80 )
----
80

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8035
SELECT ALL 81 DIV + COUNT( * ) - MAX( + - 75 ) + 14 * - + 40 + - COUNT( * ) * + 81 + + - 83 + + 19 AS col0
----
-549

skipif mysql # not compatible
query I rowsort label-8035
SELECT ALL 81 / + COUNT ( * ) - MAX ( + - 75 ) + 14 * - + 40 + - COUNT ( * ) * + 81 + + - 83 + + 19 AS col0
----
-549

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8036
SELECT ALL + 96 DIV + 67 + MAX( ALL 13 ) AS col0, 22
----
14
22

skipif mysql # not compatible
query II rowsort label-8036
SELECT ALL + 96 / + 67 + MAX ( ALL 13 ) AS col0, 22
----
14
22

query I rowsort
SELECT ALL + + 24 col1
----
24

query I rowsort
SELECT - 93 * + + 19
----
-1767

query II rowsort
SELECT + ( + 38 ) col2, + 12
----
38
12

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

query I rowsort
SELECT DISTINCT + 31 col0
----
31

query I rowsort
SELECT ( 80 ) AS col0
----
80

query I rowsort
SELECT DISTINCT + COALESCE ( + 50, + + 34 ) AS col0
----
50

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8044
SELECT DISTINCT 21 * 35 * - ( - 59 ) + + 79 + + + COUNT( * ) DIV - - NULLIF ( COUNT( * ), + 60 * + ( - 25 ) + 41 ) AS col1
----
43445

skipif mysql # not compatible
query I rowsort label-8044
SELECT DISTINCT 21 * 35 * - ( - 59 ) + + 79 + + + COUNT ( * ) / - - NULLIF ( COUNT ( * ), + 60 * + ( - 25 ) + 41 ) AS col1
----
43445

onlyif mysql # aggregate syntax: 
query I rowsort label-8045
SELECT + CASE + + 64 WHEN - - SUM( ALL - - 49 ) * - 26 + - 14 THEN NULL WHEN 64 THEN COUNT( * ) END * - 60 AS col1
----
-60

skipif mysql # not compatible
query I rowsort label-8045
SELECT + CASE + + 64 WHEN - - SUM ( ALL - - 49 ) * - 26 + - 14 THEN NULL WHEN 64 THEN COUNT ( * ) END * - 60 AS col1
----
-60

query I rowsort
SELECT ALL + 47 * 51 col2
----
2397

query II rowsort
SELECT ( + 43 ) AS col1, 92
----
43
92

query I rowsort
SELECT ALL - 73 * 90 - + + 71
----
-6641

onlyif mysql # aggregate syntax: 
query I rowsort label-8049
SELECT DISTINCT 22 * + MAX( + 15 ) * - 89 * - 32 AS col0
----
939840

skipif mysql # not compatible
query I rowsort label-8049
SELECT DISTINCT 22 * + MAX ( + 15 ) * - 89 * - 32 AS col0
----
939840

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

query I rowsort
SELECT + 51 * 28 AS col0
----
1428

onlyif mysql # aggregate syntax: 
query I rowsort label-8052
SELECT SUM( ALL - 31 ) + 22 * - 72
----
-1615

skipif mysql # not compatible
query I rowsort label-8052
SELECT SUM ( ALL - 31 ) + 22 * - 72
----
-1615

onlyif mysql # aggregate syntax: 
query I rowsort label-8053
SELECT - 20 * - + 11 - - COUNT( * ) AS col1
----
221

skipif mysql # not compatible
query I rowsort label-8053
SELECT - 20 * - + 11 - - COUNT ( * ) AS col1
----
221

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8054
SELECT 95 + + 7 + - 83 + 94 * 78 * + + CAST( NULL AS SIGNED ) + + 12 * 58 + - 88 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8054
SELECT 95 + + 7 + - 83 + 94 * 78 * + + CAST ( NULL AS INTEGER ) + + 12 * 58 + - 88 AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8055
SELECT CASE COUNT( * ) WHEN + - COALESCE ( - 38, + - 26, + - ( 76 ) * + COALESCE ( - - 73, + CAST( NULL AS SIGNED ) / + - MAX( DISTINCT + 10 ) ) ) / 81 THEN 19 END * + 92 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8055
SELECT CASE COUNT ( * ) WHEN + - COALESCE ( - 38, + - 26, + - ( 76 ) * + COALESCE ( - - 73, + CAST ( NULL AS INTEGER ) / + - MAX ( DISTINCT + 10 ) ) ) / 81 THEN 19 END * + 92 col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8056
SELECT ( - 82 ) + + + 52 + - SUM( ALL - - 27 ) AS col1
----
-57

skipif mysql # not compatible
query I rowsort label-8056
SELECT ( - 82 ) + + + 52 + - SUM ( ALL - - 27 ) AS col1
----
-57

onlyif mysql # DIV for integer division: 
query I rowsort label-8057
SELECT DISTINCT ( - - 0 ) DIV - 65 + + COALESCE ( - 24, 59 )
----
-24

skipif mysql # not compatible
query I rowsort label-8057
SELECT DISTINCT ( - - 0 ) / - 65 + + COALESCE ( - 24, 59 )
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-8058
SELECT 76 * + COUNT( * ) + - + 41
----
35

skipif mysql # not compatible
query I rowsort label-8058
SELECT 76 * + COUNT ( * ) + - + 41
----
35

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8059
SELECT CAST( NULL AS SIGNED ) + 24 - + 24 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8059
SELECT CAST ( NULL AS INTEGER ) + 24 - + 24 AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8060
SELECT DISTINCT CASE - - 8 WHEN - CASE - - 12 WHEN 81 + + COUNT( DISTINCT 83 ) THEN + + 47 + + 93 WHEN - 57 THEN NULL ELSE NULL END DIV + 69 THEN - + 25 + 79 * - 61 ELSE 53 END DIV 79
----
0

skipif mysql # not compatible
query I rowsort label-8060
SELECT DISTINCT CASE - - 8 WHEN - CASE - - 12 WHEN 81 + + COUNT ( DISTINCT 83 ) THEN + + 47 + + 93 WHEN - 57 THEN NULL ELSE NULL END / + 69 THEN - + 25 + 79 * - 61 ELSE 53 END / 79
----
0

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8062
SELECT ALL COALESCE ( COUNT( * ), + + COUNT( DISTINCT ( + 25 ) ) ), - CAST( COUNT( * ) AS SIGNED ) + + 63 AS col0
----
1
62

skipif mysql # not compatible
query II rowsort label-8062
SELECT ALL COALESCE ( COUNT ( * ), + + COUNT ( DISTINCT ( + 25 ) ) ), - CAST ( COUNT ( * ) AS INTEGER ) + + 63 AS col0
----
1
62

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8063
SELECT DISTINCT - ( ( + CAST( 14 AS SIGNED ) ) ) * ( - 53 ) + 92, - ( 69 ) * + + 33 AS col2
----
834
-2277

skipif mysql # not compatible
query II rowsort label-8063
SELECT DISTINCT - ( ( + CAST ( 14 AS INTEGER ) ) ) * ( - 53 ) + 92, - ( 69 ) * + + 33 AS col2
----
834
-2277

query III rowsort
SELECT 44 * + + 34 + 13, 3 * + + 74 AS col1, 52 + + 55 AS col2
----
1509
222
107

query I rowsort
SELECT 88 + - 85
----
3

query I rowsort
SELECT ALL + 50 * + 14
----
700

query I rowsort
SELECT - 31 col2
----
-31

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8068
SELECT - CASE - + 15 WHEN - - 38 THEN + 6 * + 55 / + - 51 + - COUNT( ALL + 84 ) + 0 + + - 30 + - - COUNT( * ) * + + CAST( NULL AS SIGNED ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-8068
SELECT - CASE - + 15 WHEN - - 38 THEN + 6 * + 55 / + - 51 + - COUNT ( ALL + 84 ) + 0 + + - 30 + - - COUNT ( * ) * + + CAST ( NULL AS INTEGER ) ELSE NULL END
----
NULL

query I rowsort
SELECT ALL + 0 + 70
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-8070
SELECT 67 * - 4 + + 9 * + 36 - + - COUNT( * ) + - 90
----
-33

skipif mysql # not compatible
query I rowsort label-8070
SELECT 67 * - 4 + + 9 * + 36 - + - COUNT ( * ) + - 90
----
-33

query I rowsort
SELECT ALL - 89 + + 32
----
-57

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8072
SELECT DISTINCT + 51 * - - COUNT( * ), 47 + + - 20 DIV 9 AS col2
----
51
45

skipif mysql # not compatible
query II rowsort label-8072
SELECT DISTINCT + 51 * - - COUNT ( * ), 47 + + - 20 / 9 AS col2
----
51
45

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8073
SELECT ALL + 40 + + 47 DIV - COUNT( * ) AS col2
----
-7

skipif mysql # not compatible
query I rowsort label-8073
SELECT ALL + 40 + + 47 / - COUNT ( * ) AS col2
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-8074
SELECT ALL - - 91 + + + COALESCE ( - COUNT( * ), - + 29 * 21 * - 44 ) col2
----
90

skipif mysql # not compatible
query I rowsort label-8074
SELECT ALL - - 91 + + + COALESCE ( - COUNT ( * ), - + 29 * 21 * - 44 ) col2
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-8075
SELECT ALL + - 78 + - 47 + NULLIF ( COUNT( * ), 62 + + - 11 * - - 49 * 58 * - - 80 ) AS col0
----
-124

skipif mysql # not compatible
query I rowsort label-8075
SELECT ALL + - 78 + - 47 + NULLIF ( COUNT ( * ), 62 + + - 11 * - - 49 * 58 * - - 80 ) AS col0
----
-124

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8076
SELECT - COALESCE ( - - 14, + 8 ) * + 98 DIV COUNT( * )
----
-1372

skipif mysql # not compatible
query I rowsort label-8076
SELECT - COALESCE ( - - 14, + 8 ) * + 98 / COUNT ( * )
----
-1372

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8077
SELECT ALL + + 53 * - CAST( NULL AS SIGNED ) + + 85 * + + 2 + + 89 * + 78
----
NULL

skipif mysql # not compatible
query I rowsort label-8077
SELECT ALL + + 53 * - CAST ( NULL AS INTEGER ) + + 85 * + + 2 + + 89 * + 78
----
NULL

query I rowsort
SELECT DISTINCT - 70 - + 9 + 22
----
-57

query I rowsort
SELECT DISTINCT + 61 * 31 AS col1
----
1891

query II rowsort
SELECT ALL - 63 AS col1, 37 AS col2
----
-63
37

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8081
SELECT DISTINCT 28 / + - CAST( NULL AS SIGNED ) / + 78, 25 - - 77 - - 4 + - ( CAST( NULL AS SIGNED ) ) * 79 * 40 col0
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-8081
SELECT DISTINCT 28 / + - CAST ( NULL AS INTEGER ) / + 78, 25 - - 77 - - 4 + - ( CAST ( NULL AS INTEGER ) ) * 79 * 40 col0
----
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8082
SELECT COUNT( ALL 25 ) * + COUNT( * ) * - ( - ( + 33 ) ) + - ( - 29 ) col0
----
62

skipif mysql # not compatible
query I rowsort label-8082
SELECT COUNT ( ALL 25 ) * + COUNT ( * ) * - ( - ( + 33 ) ) + - ( - 29 ) col0
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-8083
SELECT DISTINCT - NULLIF ( - 84, + + NULLIF ( + + 99, - + 5 * SUM( - - 53 ) ) )
----
84

skipif mysql # not compatible
query I rowsort label-8083
SELECT DISTINCT - NULLIF ( - 84, + + NULLIF ( + + 99, - + 5 * SUM ( - - 53 ) ) )
----
84

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

query I rowsort
SELECT - 54 * + + 75 * 42 + - + 66 AS col1
----
-170166

onlyif mysql # DIV for integer division: 
query II rowsort label-8086
SELECT DISTINCT - 40, - 13 DIV 55 AS col0
----
-40
0

skipif mysql # not compatible
query II rowsort label-8086
SELECT DISTINCT - 40, - 13 / 55 AS col0
----
-40
0

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-8088
SELECT DISTINCT + 99 * - COALESCE ( COUNT( * ), - + 49 + + ( 92 ) ) AS col2
----
-99

skipif mysql # not compatible
query I rowsort label-8088
SELECT DISTINCT + 99 * - COALESCE ( COUNT ( * ), - + 49 + + ( 92 ) ) AS col2
----
-99

onlyif mysql # aggregate syntax: 
query II rowsort label-8089
SELECT ALL 36 AS col0, COUNT( * ) * + 98
----
36
98

skipif mysql # not compatible
query II rowsort label-8089
SELECT ALL 36 AS col0, COUNT ( * ) * + 98
----
36
98

query II rowsort
SELECT DISTINCT 41 AS col2, 53 AS col2
----
41
53

query I rowsort
SELECT DISTINCT + 12 + 30 AS col1
----
42

query I rowsort
SELECT ALL - 54 col2
----
-54

onlyif mysql # aggregate syntax: 
query II rowsort label-8093
SELECT ALL 26 col0, - ( - - ( + ( + - 29 ) ) ) + - - ( - 33 ) * + 49 * - 76 + + MIN( 29 ) AS col1
----
26
122950

skipif mysql # not compatible
query II rowsort label-8093
SELECT ALL 26 col0, - ( - - ( + ( + - 29 ) ) ) + - - ( - 33 ) * + 49 * - 76 + + MIN ( 29 ) AS col1
----
26
122950

query I rowsort
SELECT 13 * + 48 * - + ( 39 ) AS col0
----
-24336

query I rowsort
SELECT + 20 * - - 77 col1
----
1540

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

query I rowsort
SELECT ALL - 4 + - + 55
----
-59

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8098
SELECT 90 - + - 64 DIV COUNT( + COALESCE ( + ( + 10 ), + + 41, + 58 ) ) * 17 AS col1
----
1178

skipif mysql # not compatible
query I rowsort label-8098
SELECT 90 - + - 64 / COUNT ( + COALESCE ( + ( + 10 ), + + 41, + 58 ) ) * 17 AS col1
----
1178

query I rowsort
SELECT ALL + 29 + - 52
----
-23

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8100
SELECT ALL 26 * CAST( - 97 AS SIGNED ), - 61 + - 23 AS col0
----
-2522
-84

skipif mysql # not compatible
query II rowsort label-8100
SELECT ALL 26 * CAST ( - 97 AS INTEGER ), - 61 + - 23 AS col0
----
-2522
-84

query I rowsort
SELECT DISTINCT 65 + - 83 + - 45
----
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-8102
SELECT ALL + 38 + COUNT( * )
----
39

skipif mysql # not compatible
query I rowsort label-8102
SELECT ALL + 38 + COUNT ( * )
----
39

onlyif mysql # aggregate syntax: 
query II rowsort label-8103
SELECT DISTINCT - + MIN( ALL + 61 ) * + - 66, CASE + 43 WHEN - 90 THEN COUNT( * ) ELSE + 74 END AS col0
----
4026
74

skipif mysql # not compatible
query II rowsort label-8103
SELECT DISTINCT - + MIN ( ALL + 61 ) * + - 66, CASE + 43 WHEN - 90 THEN COUNT ( * ) ELSE + 74 END AS col0
----
4026
74

query I rowsort
SELECT DISTINCT + - 93 + 1 col2
----
-92

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8108
SELECT ALL + 77 * MIN( DISTINCT - CAST( NULL AS SIGNED ) ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8108
SELECT ALL + 77 * MIN ( DISTINCT - CAST ( NULL AS INTEGER ) ) col1
----
NULL

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

onlyif mysql # aggregate syntax: 
query II rowsort label-8110
SELECT - 39 col0, - MIN( DISTINCT 1 ) AS col1
----
-39
-1

skipif mysql # not compatible
query II rowsort label-8110
SELECT - 39 col0, - MIN ( DISTINCT 1 ) AS col1
----
-39
-1

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

skipif mysql # not compatible
query I rowsort label-8111
SELECT - + SUM ( - 77 )
----
77

query I rowsort
SELECT ALL + - 51 - - - CASE - - 24 WHEN + 1 THEN NULL WHEN 95 + 4 THEN 12 END + + + AVG ( - 55 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8113
SELECT + ( - 26 ) + + - SUM( + 12 )
----
-38

skipif mysql # not compatible
query I rowsort label-8113
SELECT + ( - 26 ) + + - SUM ( + 12 )
----
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-8114
SELECT ALL + 17 * + 83 + - COUNT( + 95 )
----
1410

skipif mysql # not compatible
query I rowsort label-8114
SELECT ALL + 17 * + 83 + - COUNT ( + 95 )
----
1410

query I rowsort
SELECT NULLIF ( - 6, 68 ) AS col0
----
-6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8116
SELECT CASE + + CASE - 52 WHEN + CAST( NULL AS SIGNED ) + - 70 THEN - ( - 22 ) ELSE + COUNT( * ) * + - COUNT( * ) * NULLIF ( + - 47, - NULLIF ( - NULLIF ( + CAST( COALESCE ( COUNT( * ), 90 - 88 * - 6 ) AS SIGNED ), - ( - 65 ) - - 18 * NULLIF ( + COUNT( * ), CASE COUNT( * ) WHEN 42 THEN + 91 WHEN + 88 * - 92 THEN COUNT( * ) * + 32 WHEN COUNT( * ) + + 70 THEN NULL END ) ), + NULLIF ( + 19, COUNT( * ) ) * 67 ) + 29 * ( - 83 * 54 ) ) END WHEN - 70 * 43 THEN - 47 - 94 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8116
SELECT CASE + + CASE - 52 WHEN + CAST ( NULL AS INTEGER ) + - 70 THEN - ( - 22 ) ELSE + COUNT ( * ) * + - COUNT ( * ) * NULLIF ( + - 47, - NULLIF ( - NULLIF ( + CAST ( COALESCE ( COUNT ( * ), 90 - 88 * - 6 ) AS INTEGER ), - ( - 65 ) - - 18 * NULLIF ( + COUNT ( * ), CASE COUNT ( * ) WHEN 42 THEN + 91 WHEN + 88 * - 92 THEN COUNT ( * ) * + 32 WHEN COUNT ( * ) + + 70 THEN NULL END ) ), + NULLIF ( + 19, COUNT ( * ) ) * 67 ) + 29 * ( - 83 * 54 ) ) END WHEN - 70 * 43 THEN - 47 - 94 END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8117
SELECT - 27 + + CASE + 46 WHEN - 66 THEN NULL WHEN + CASE + COUNT( * ) WHEN + ( - 43 ) THEN NULL ELSE - 97 + + + 95 + - AVG ( DISTINCT - 97 ) * - 17 * 37 END + - 11 THEN + NULLIF ( + 79, SUM( 7 ) ) + 26 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-8117
SELECT - 27 + + CASE + 46 WHEN - 66 THEN NULL WHEN + CASE + COUNT ( * ) WHEN + ( - 43 ) THEN NULL ELSE - 97 + + + 95 + - AVG ( DISTINCT - 97 ) * - 17 * 37 END + - 11 THEN + NULLIF ( + 79, SUM ( 7 ) ) + 26 ELSE NULL END
----
NULL

query I rowsort
SELECT - 45 * - 57 AS col0
----
2565

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

skipif mysql # not compatible
query I rowsort label-8119
SELECT - 12 * 15 + CAST ( NULL AS INTEGER )
----
NULL

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8122
SELECT ALL + 31 * 13 + - COUNT( DISTINCT CAST( NULL AS SIGNED ) ) + 97
----
500

skipif mysql # not compatible
query I rowsort label-8122
SELECT ALL + 31 * 13 + - COUNT ( DISTINCT CAST ( NULL AS INTEGER ) ) + 97
----
500

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8123
SELECT - 61 DIV - 65 * CAST( - 84 AS SIGNED )
----
0

skipif mysql # not compatible
query I rowsort label-8123
SELECT - 61 / - 65 * CAST ( - 84 AS INTEGER )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8124
SELECT ALL + 81 * 65 + - 26 + - CASE 87 WHEN - 98 THEN ( - 74 ) + - 0 WHEN SUM( - - 38 ) THEN NULL END + ( + 21 ) * - ( 39 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8124
SELECT ALL + 81 * 65 + - 26 + - CASE 87 WHEN - 98 THEN ( - 74 ) + - 0 WHEN SUM ( - - 38 ) THEN NULL END + ( + 21 ) * - ( 39 )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8125
SELECT 12 * + 55 * COALESCE ( 60, - - 16 + + 65 + - + COUNT( * ) - - + 49 DIV + - COUNT( * ) + - COUNT( * ), - - 0 ) + - 99 + - 79 DIV 96 + + ( 34 + 29 * - COUNT( * ) ) * - 73
----
39136

skipif mysql # not compatible
query I rowsort label-8125
SELECT 12 * + 55 * COALESCE ( 60, - - 16 + + 65 + - + COUNT ( * ) - - + 49 / + - COUNT ( * ) + - COUNT ( * ), - - 0 ) + - 99 + - 79 / 96 + + ( 34 + 29 * - COUNT ( * ) ) * - 73
----
39136

query I rowsort
SELECT - 79 - + + 27 * - 25
----
596

query I rowsort
SELECT - 49 + - 18
----
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-8128
SELECT - 74 * + 33 * COUNT( * ) + - ( + 96 )
----
-2538

skipif mysql # not compatible
query I rowsort label-8128
SELECT - 74 * + 33 * COUNT ( * ) + - ( + 96 )
----
-2538

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

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

query I rowsort
SELECT - 44 + + 3 + 19
----
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-8131
SELECT + + 39 * + COUNT( * ) AS col1
----
39

skipif mysql # not compatible
query I rowsort label-8131
SELECT + + 39 * + COUNT ( * ) AS col1
----
39

query I rowsort
SELECT ALL - - 62 + 94 AS col2
----
156

query I rowsort
SELECT + COALESCE ( - + 40, + - 21 )
----
-40

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

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

query I rowsort
SELECT ALL + ( - 84 ) AS col1
----
-84

query I rowsort
SELECT + - 12 + 62 * + 34
----
2096

query I rowsort
SELECT ALL - 7 - 13 AS col1
----
-20

query I rowsort
SELECT + + 37 + - 31 - + 97 AS col0
----
-91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8139
SELECT DISTINCT + ( - CASE 63 WHEN - + 69 THEN NULL WHEN - 66 THEN NULL ELSE CAST( NULL AS SIGNED ) END ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8139
SELECT DISTINCT + ( - CASE 63 WHEN - + 69 THEN NULL WHEN - 66 THEN NULL ELSE CAST ( NULL AS INTEGER ) END ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8140
SELECT DISTINCT + 24 - - - COUNT( ALL - - 66 ) * - COUNT( * ) AS col1
----
25

skipif mysql # not compatible
query I rowsort label-8140
SELECT DISTINCT + 24 - - - COUNT ( ALL - - 66 ) * - COUNT ( * ) AS col1
----
25

query I rowsort
SELECT DISTINCT 44 * - 44 AS col0
----
-1936

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-8143
SELECT + 52 * + COALESCE ( + - 26, + 68 DIV - 54 ), 92 DIV + 94 AS col0
----
-1352
0

skipif mysql # not compatible
query II rowsort label-8143
SELECT + 52 * + COALESCE ( + - 26, + 68 / - 54 ), 92 / + 94 AS col0
----
-1352
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8144
SELECT + COALESCE ( + 85, + + 67 + - 50 + + 58 - COUNT( * ) + - + 62 DIV - MIN( ALL + 68 ) * - 27 ) AS col2
----
85

skipif mysql # not compatible
query I rowsort label-8144
SELECT + COALESCE ( + 85, + + 67 + - 50 + + 58 - COUNT ( * ) + - + 62 / - MIN ( ALL + 68 ) * - 27 ) AS col2
----
85

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8145
SELECT CAST( - 54 AS SIGNED ) AS col0
----
-54

skipif mysql # not compatible
query I rowsort label-8145
SELECT CAST ( - 54 AS INTEGER ) AS col0
----
-54

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8148
SELECT - COUNT( * ) * + 56 + + COUNT( * ) * + + CAST( NULL AS SIGNED ) * - CAST( NULL AS SIGNED ) * + ( + - 31 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8148
SELECT - COUNT ( * ) * + 56 + + COUNT ( * ) * + + CAST ( NULL AS INTEGER ) * - CAST ( NULL AS INTEGER ) * + ( + - 31 ) AS col0
----
NULL

query I rowsort
SELECT + 16 * - 71
----
-1136

query I rowsort
SELECT - 21 * + 9 * - 52
----
9828

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-8152
SELECT ALL + 43 AS col0, - ( + MIN( ALL - 15 ) ) + + 94
----
43
109

skipif mysql # not compatible
query II rowsort label-8152
SELECT ALL + 43 AS col0, - ( + MIN ( ALL - 15 ) ) + + 94
----
43
109

query I rowsort
SELECT DISTINCT 56 * + - 26
----
-1456

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8154
SELECT 26 DIV 79 - - COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-8154
SELECT 26 / 79 - - COUNT ( * )
----
1

query II rowsort
SELECT ALL + 88 AS col1, - 4 + + 70 + 67
----
88
133

query I rowsort
SELECT + 85 * - 81 AS col2
----
-6885

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8157
SELECT ALL + CASE - 51 WHEN - 94 + + - 82 THEN NULL WHEN - 48 * + CAST( NULL AS SIGNED ) / - ( + 80 ) + - 86 THEN + MAX( ALL - + NULLIF ( 13, + 85 ) ) ELSE + 39 END * - 84 + COUNT( * ) + 56
----
-3219

skipif mysql # not compatible
query I rowsort label-8157
SELECT ALL + CASE - 51 WHEN - 94 + + - 82 THEN NULL WHEN - 48 * + CAST ( NULL AS INTEGER ) / - ( + 80 ) + - 86 THEN + MAX ( ALL - + NULLIF ( 13, + 85 ) ) ELSE + 39 END * - 84 + COUNT ( * ) + 56
----
-3219

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

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

query I rowsort
SELECT ( - 21 ) AS col1
----
-21

query I rowsort
SELECT + 50 * 27
----
1350

query I rowsort
SELECT - 55 + - 91 + + 64 AS col2
----
-82

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8162
SELECT ALL + CASE + 1 WHEN 57 THEN NULL WHEN 48 THEN - + 54 ELSE + 71 / + 24 * + 77 + COALESCE ( + 2, - - MIN( - - 90 ), + 42 ) + - + COUNT( * ) * - 53 + + CASE ( + CASE + NULLIF ( 43, - ( + 90 ) * 81 ) WHEN + 70 + 88 THEN - 47 WHEN 17 / + 56 + + 3 * + CAST( NULL AS SIGNED ) THEN - 54 ELSE CAST( 62 AS DECIMAL ) + - 57 * + 2 END ) WHEN 92 THEN - 54 WHEN 26 THEN 30 END END
----
NULL

skipif mysql # not compatible
query I rowsort label-8162
SELECT ALL + CASE + 1 WHEN 57 THEN NULL WHEN 48 THEN - + 54 ELSE + 71 / + 24 * + 77 + COALESCE ( + 2, - - MIN ( - - 90 ), + 42 ) + - + COUNT ( * ) * - 53 + + CASE ( + CASE + NULLIF ( 43, - ( + 90 ) * 81 ) WHEN + 70 + 88 THEN - 47 WHEN 17 / + 56 + + 3 * + CAST ( NULL AS INTEGER ) THEN - 54 ELSE CAST ( 62 AS REAL ) + - 57 * + 2 END ) WHEN 92 THEN - 54 WHEN 26 THEN 30 END END
----
NULL

query I rowsort
SELECT ( - - 74 ) AS col0
----
74

query I rowsort
SELECT + 7 * + 74 + CASE + + AVG ( DISTINCT - 10 ) WHEN 20 THEN NULL WHEN - 60 THEN + + 13 + + 84 END AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8165
SELECT ALL - 71 * COUNT( ALL 55 ) + + 12 + CAST( 38 AS SIGNED ), - 88 * - 14 + - 89 AS col2
----
-21
1143

skipif mysql # not compatible
query II rowsort label-8165
SELECT ALL - 71 * COUNT ( ALL 55 ) + + 12 + CAST ( 38 AS INTEGER ), - 88 * - 14 + - 89 AS col2
----
-21
1143

onlyif mysql # aggregate syntax: 
query I rowsort label-8166
SELECT ALL + 73 * 93 + + + MIN( DISTINCT 12 )
----
6801

skipif mysql # not compatible
query I rowsort label-8166
SELECT ALL + 73 * 93 + + + MIN ( DISTINCT 12 )
----
6801

query I rowsort
SELECT - 42 * - 42 col0
----
1764

query II rowsort
SELECT + - 43, ( 53 ) AS col1
----
-43
53

query I rowsort
SELECT ALL + - COALESCE ( + + 0, - 43 )
----
0

query I rowsort
SELECT DISTINCT + 35 * + + 18 AS col0
----
630

query I rowsort
SELECT ALL + 94 * + - 20 + 67 AS col0
----
-1813

onlyif mysql # DIV for integer division: 
query I rowsort label-8172
SELECT ALL + 44 * - 41 + - 14 DIV - 62 AS col2
----
-1804

skipif mysql # not compatible
query I rowsort label-8172
SELECT ALL + 44 * - 41 + - 14 / - 62 AS col2
----
-1804

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-8174
SELECT - + COUNT( * ) + - - 23 * - - CASE + - 42 WHEN ( 25 ) THEN + 30 + + 36 - - 41 END * + + 44 + + 75 + + 60 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8174
SELECT - + COUNT ( * ) + - - 23 * - - CASE + - 42 WHEN ( 25 ) THEN + 30 + + 36 - - 41 END * + + 44 + + 75 + + 60 AS col0
----
NULL

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

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

query II rowsort
SELECT ALL 95, + 76 AS col2
----
95
76

onlyif mysql # aggregate syntax: 
query I rowsort label-8177
SELECT - MIN( DISTINCT - - 91 ) - 71 AS col2
----
-162

skipif mysql # not compatible
query I rowsort label-8177
SELECT - MIN ( DISTINCT - - 91 ) - 71 AS col2
----
-162

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8178
SELECT + 27 * - NULLIF ( - ( + 59 ), + 13 ) * + - CASE - + NULLIF ( + + 54, - 56 ) WHEN - CASE COUNT( * ) WHEN + COUNT( * ) * 2 THEN + + 12 * + 35 + + ( CASE 24 WHEN - 64 THEN + AVG ( ALL 79 ) WHEN - CAST( NULL AS SIGNED ) THEN NULL WHEN COUNT( DISTINCT - 85 ) THEN 17 END - + COUNT( * ) ) ELSE NULL END THEN - 65 * COUNT( 33 * - 99 ) END + + CASE + 98 WHEN - AVG ( 87 ) - SUM( ALL + 66 ) * COUNT( * ) THEN - 51 ELSE + 29 END * + 18
----
NULL

skipif mysql # not compatible
query I rowsort label-8178
SELECT + 27 * - NULLIF ( - ( + 59 ), + 13 ) * + - CASE - + NULLIF ( + + 54, - 56 ) WHEN - CASE COUNT ( * ) WHEN + COUNT ( * ) * 2 THEN + + 12 * + 35 + + ( CASE 24 WHEN - 64 THEN + AVG ( ALL 79 ) WHEN - CAST ( NULL AS INTEGER ) THEN NULL WHEN COUNT ( DISTINCT - 85 ) THEN 17 END - + COUNT ( * ) ) ELSE NULL END THEN - 65 * COUNT ( 33 * - 99 ) END + + CASE + 98 WHEN - AVG ( 87 ) - SUM ( ALL + 66 ) * COUNT ( * ) THEN - 51 ELSE + 29 END * + 18
----
NULL

query I rowsort
SELECT DISTINCT ( - 39 )
----
-39

query I rowsort
SELECT - + COALESCE ( + - 87, - 33 )
----
87

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8181
SELECT DISTINCT - CASE - 78 WHEN - - ( - 84 ) / + + COUNT( * ) + + - 59 THEN + - 36 + + ( + 68 ) * - 98 + - COUNT( 30 ) - + - 93 + - CAST( NULL AS SIGNED ) / + - 86 END * 29 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8181
SELECT DISTINCT - CASE - 78 WHEN - - ( - 84 ) / + + COUNT ( * ) + + - 59 THEN + - 36 + + ( + 68 ) * - 98 + - COUNT ( 30 ) - + - 93 + - CAST ( NULL AS INTEGER ) / + - 86 END * 29 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8182
SELECT 60 * 76 * - - COUNT( * ) AS col2, 18 AS col2
----
4560
18

skipif mysql # not compatible
query II rowsort label-8182
SELECT 60 * 76 * - - COUNT ( * ) AS col2, 18 AS col2
----
4560
18

query I rowsort
SELECT 8 - + - 5 AS col1
----
13

query I rowsort
SELECT ALL - 84 * - 5
----
420

query I rowsort
SELECT 79 * - + 6 * + 8 AS col0
----
-3792

onlyif mysql # aggregate syntax: 
query I rowsort label-8186
SELECT MAX( DISTINCT - 99 ) + - + NULLIF ( MAX( DISTINCT - 17 ), + COUNT( * ) )
----
-82

skipif mysql # not compatible
query I rowsort label-8186
SELECT MAX ( DISTINCT - 99 ) + - + NULLIF ( MAX ( DISTINCT - 17 ), + COUNT ( * ) )
----
-82

query I rowsort
SELECT ( 58 ) - 43 AS col2
----
15

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

skipif mysql # not compatible
query II rowsort label-8188
SELECT DISTINCT 49 col2, COUNT ( ALL - - ( + CAST ( NULL AS INTEGER ) ) ) * - 22 - + - 89 AS col2
----
49
89

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8189
SELECT 92 + + 15, CAST( NULL AS SIGNED ) + + + 85 AS col2
----
107
NULL

skipif mysql # not compatible
query II rowsort label-8189
SELECT 92 + + 15, CAST ( NULL AS INTEGER ) + + + 85 AS col2
----
107
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8190
SELECT COUNT( * ) - 10 + - - COUNT( + - 34 ) + COUNT( * )
----
-7

skipif mysql # not compatible
query I rowsort label-8190
SELECT COUNT ( * ) - 10 + - - COUNT ( + - 34 ) + COUNT ( * )
----
-7

query II rowsort
SELECT - 53 AS col0, + 37 + - - 18
----
-53
55

query I rowsort
SELECT ALL 86 + 61 col2
----
147

onlyif mysql # DIV for integer division: 
query I rowsort label-8193
SELECT DISTINCT - 12 + + + 70 DIV - - 83 AS col2
----
-12

skipif mysql # not compatible
query I rowsort label-8193
SELECT DISTINCT - 12 + + + 70 / - - 83 AS col2
----
-12

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-8195
SELECT DISTINCT NULLIF ( - 38, + + 59 ) DIV ( + 73 ) * - ( - 53 ) DIV 91 * - - 47 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-8195
SELECT DISTINCT NULLIF ( - 38, + + 59 ) / ( + 73 ) * - ( - 53 ) / 91 * - - 47 AS col0
----
0

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

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

query I rowsort
SELECT ALL ( 96 ) * 97
----
9312

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8198
SELECT COUNT( * ) + + 53 + - CASE - 61 WHEN + CAST( NULL AS SIGNED ) + + 11 - - + 74 THEN + 18 / + 28 ELSE 63 END * CAST( NULL AS SIGNED ) * + 5 / - 38 * + MAX( DISTINCT 39 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8198
SELECT COUNT ( * ) + + 53 + - CASE - 61 WHEN + CAST ( NULL AS INTEGER ) + + 11 - - + 74 THEN + 18 / + 28 ELSE 63 END * CAST ( NULL AS INTEGER ) * + 5 / - 38 * + MAX ( DISTINCT 39 ) AS col1
----
NULL

query I rowsort
SELECT 52 + + + 75
----
127

onlyif mysql # aggregate syntax: 
query II rowsort label-8200
SELECT DISTINCT - 91 AS col0, COUNT( * ) + + COUNT( + 22 ) AS col0
----
-91
2

skipif mysql # not compatible
query II rowsort label-8200
SELECT DISTINCT - 91 AS col0, COUNT ( * ) + + COUNT ( + 22 ) AS col0
----
-91
2

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

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

query II rowsort
SELECT 2 AS col0, + 68
----
2
68

query II rowsort
SELECT 75, 13 col0
----
75
13

query II rowsort
SELECT DISTINCT - 70, 76 + - 34 AS col1
----
-70
42

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

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

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

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

query I rowsort
SELECT ALL + ( - 20 ) - 59 col0
----
-79

query I rowsort
SELECT + NULLIF ( 25, 18 )
----
25

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8209
SELECT - 11 * + 20 * + + COUNT( * ) + + 25 - + 32 DIV - - 48 + - + 16 * - - 97
----
-1747

skipif mysql # not compatible
query I rowsort label-8209
SELECT - 11 * + 20 * + + COUNT ( * ) + + 25 - + 32 / - - 48 + - + 16 * - - 97
----
-1747

onlyif mysql # aggregate syntax: 
query II rowsort label-8210
SELECT DISTINCT - COUNT( * ), 36 * + - 16 AS col1
----
-1
-576

skipif mysql # not compatible
query II rowsort label-8210
SELECT DISTINCT - COUNT ( * ), 36 * + - 16 AS col1
----
-1
-576

query II rowsort
SELECT DISTINCT - 39 AS col1, - 15 AS col2
----
-39
-15

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8212
SELECT + COALESCE ( + 3, 47, + 20 ) + + CASE - 84 WHEN + + CAST( 86 AS SIGNED ) THEN - - COUNT( * ) WHEN + 47 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-8212
SELECT + COALESCE ( + 3, 47, + 20 ) + + CASE - 84 WHEN + + CAST ( 86 AS INTEGER ) THEN - - COUNT ( * ) WHEN + 47 THEN NULL END
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-8214
SELECT ( + 35 ) + CASE - 75 WHEN + 86 + - - 16 THEN - 67 + + 7 WHEN - CASE ( + + 65 ) WHEN - 83 + - 64 * 72 THEN 30 END * 27 * AVG ( - 65 ) THEN ( 10 ) * + COUNT( * ) - 91 * - 69 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8214
SELECT ( + 35 ) + CASE - 75 WHEN + 86 + - - 16 THEN - 67 + + 7 WHEN - CASE ( + + 65 ) WHEN - 83 + - 64 * 72 THEN 30 END * 27 * AVG ( - 65 ) THEN ( 10 ) * + COUNT ( * ) - 91 * - 69 END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8215
SELECT ALL - COUNT( * ) * + 92 + CASE - - 66 WHEN - 76 * - ( - 93 ) THEN + ( + 12 ) WHEN - 94 / - - 28 * + 65 * NULLIF ( + + COUNT( * ), + - 84 * + - 85 * 67 ) + 25 THEN NULL ELSE NULL END col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8215
SELECT ALL - COUNT ( * ) * + 92 + CASE - - 66 WHEN - 76 * - ( - 93 ) THEN + ( + 12 ) WHEN - 94 / - - 28 * + 65 * NULLIF ( + + COUNT ( * ), + - 84 * + - 85 * 67 ) + 25 THEN NULL ELSE NULL END col2
----
NULL

query II rowsort
SELECT ALL + 39, - 85 col0
----
39
-85

query II rowsort
SELECT - 19, - 52 AS col1
----
-19
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-8218
SELECT - 5 + - 91 + COUNT( * )
----
-95

skipif mysql # not compatible
query I rowsort label-8218
SELECT - 5 + - 91 + COUNT ( * )
----
-95

onlyif mysql # DIV for integer division: 
query I rowsort label-8219
SELECT 47 DIV 69
----
0

skipif mysql # not compatible
query I rowsort label-8219
SELECT 47 / 69
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-8220
SELECT - 70 AS col1, - 48 * + 10 + 47 DIV - 29
----
-70
-481

skipif mysql # not compatible
query II rowsort label-8220
SELECT - 70 AS col1, - 48 * + 10 + 47 / - 29
----
-70
-481

query I rowsort
SELECT 6 + - 27
----
-21

onlyif mysql # aggregate syntax: 
query II rowsort label-8222
SELECT DISTINCT - SUM( 60 ) + COUNT( * ), 94 AS col0
----
-59
94

skipif mysql # not compatible
query II rowsort label-8222
SELECT DISTINCT - SUM ( 60 ) + COUNT ( * ), 94 AS col0
----
-59
94

query I rowsort
SELECT DISTINCT 47 AS col0
----
47

query I rowsort
SELECT ALL + 53 * - - 68
----
3604

query I rowsort
SELECT 14 + 35 col1
----
49

query I rowsort
SELECT DISTINCT + 80 + + 36 AS col2
----
116

onlyif mysql # aggregate syntax: 
query I rowsort label-8227
SELECT ALL - COUNT( * ) + + 46 * - - 50 AS col1
----
2299

skipif mysql # not compatible
query I rowsort label-8227
SELECT ALL - COUNT ( * ) + + 46 * - - 50 AS col1
----
2299

query I rowsort
SELECT 27 * ( - 78 )
----
-2106

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8229
SELECT ALL ( + NULLIF ( - CAST( NULL AS SIGNED ), 66 ) ) + - 6 + ( - + AVG ( - 16 ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8229
SELECT ALL ( + NULLIF ( - CAST ( NULL AS INTEGER ), 66 ) ) + - 6 + ( - + AVG ( - 16 ) ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8230
SELECT ALL + CASE - - CASE 20 WHEN SUM( + - 60 ) * + - 13 THEN NULL WHEN - ( 3 ) * - 40 * + ( + 58 ) - + ( + 36 ) THEN NULL ELSE 43 / - 10 + - - 59 END WHEN AVG ( DISTINCT 6 ) THEN 24 * 8 + 40 ELSE - 56 END * + 50
----
-2800

skipif mysql # not compatible
query I rowsort label-8230
SELECT ALL + CASE - - CASE 20 WHEN SUM ( + - 60 ) * + - 13 THEN NULL WHEN - ( 3 ) * - 40 * + ( + 58 ) - + ( + 36 ) THEN NULL ELSE 43 / - 10 + - - 59 END WHEN AVG ( DISTINCT 6 ) THEN 24 * 8 + 40 ELSE - 56 END * + 50
----
-2800

query I rowsort
SELECT 7 - + 97
----
-90

query II rowsort
SELECT DISTINCT + 35 * - 52 AS col2, 46 * + 56 * - 57 + 15
----
-1820
-146817

query I rowsort
SELECT 17 + + 82 AS col0
----
99

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8234
SELECT + 62 DIV - + 56 + SUM( ALL + 85 ) + 20 + - 80 - 70 * + COUNT( * ) * 67
----
-4666

skipif mysql # not compatible
query I rowsort label-8234
SELECT + 62 / - + 56 + SUM ( ALL + 85 ) + 20 + - 80 - 70 * + COUNT ( * ) * 67
----
-4666

onlyif mysql # aggregate syntax: 
query II rowsort label-8235
SELECT ALL - 83 * - - 71 * + + 68 + + 90 * + - 59 AS col2, COUNT( * ) AS col0
----
-406034
1

skipif mysql # not compatible
query II rowsort label-8235
SELECT ALL - 83 * - - 71 * + + 68 + + 90 * + - 59 AS col2, COUNT ( * ) AS col0
----
-406034
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8236
SELECT DISTINCT + NULLIF ( + 6, ( + COUNT( * ) ) ) * - + 14
----
-84

skipif mysql # not compatible
query I rowsort label-8236
SELECT DISTINCT + NULLIF ( + 6, ( + COUNT ( * ) ) ) * - + 14
----
-84

onlyif mysql # DIV for integer division: 
query I rowsort label-8237
SELECT ALL 90 DIV + + 3 AS col2
----
30

skipif mysql # not compatible
query I rowsort label-8237
SELECT ALL 90 / + + 3 AS col2
----
30

onlyif mysql # DIV for integer division: 
query I rowsort label-8238
SELECT ALL + COALESCE ( + - 88, + + 38 + ( - ( + 68 ) ), + 85, 82 DIV - + 59 * - 89 ) * + 32 - - + 41
----
-2775

skipif mysql # not compatible
query I rowsort label-8238
SELECT ALL + COALESCE ( + - 88, + + 38 + ( - ( + 68 ) ), + 85, 82 / - + 59 * - 89 ) * + 32 - - + 41
----
-2775

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8239
SELECT DISTINCT + 13 * - COALESCE ( 22, 43, CAST( NULL AS SIGNED ) )
----
-286

skipif mysql # not compatible
query I rowsort label-8239
SELECT DISTINCT + 13 * - COALESCE ( 22, 43, CAST ( NULL AS INTEGER ) )
----
-286

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8240
SELECT ALL + CASE 17 WHEN 92 THEN + + CASE + - MAX( + + 26 ) WHEN CAST( NULL AS DECIMAL ) + COUNT( * ) + - - CAST( NULL AS SIGNED ) * + + 0 THEN + ( 64 ) ELSE 78 END + - 0 ELSE NULL END * - 47 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8240
SELECT ALL + CASE 17 WHEN 92 THEN + + CASE + - MAX ( + + 26 ) WHEN CAST ( NULL AS REAL ) + COUNT ( * ) + - - CAST ( NULL AS INTEGER ) * + + 0 THEN + ( 64 ) ELSE 78 END + - 0 ELSE NULL END * - 47 AS col0
----
NULL

query I rowsort
SELECT 3 * + + 96 - 4 AS col0
----
284

onlyif mysql # DIV for integer division: 
query I rowsort label-8242
SELECT ALL 20 DIV + - CASE - 58 WHEN + + 2 THEN - 55 ELSE 66 END col1
----
0

skipif mysql # not compatible
query I rowsort label-8242
SELECT ALL 20 / + - CASE - 58 WHEN + + 2 THEN - 55 ELSE 66 END col1
----
0

query I rowsort
SELECT 34 + 51 * 39 AS col0
----
2023

onlyif mysql # aggregate syntax: 
query I rowsort label-8244
SELECT + MAX( - 83 ) AS col2
----
-83

skipif mysql # not compatible
query I rowsort label-8244
SELECT + MAX ( - 83 ) AS col2
----
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-8245
SELECT + ( + 42 ) + + COUNT( * ) AS col0
----
43

skipif mysql # not compatible
query I rowsort label-8245
SELECT + ( + 42 ) + + COUNT ( * ) AS col0
----
43

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

onlyif mysql # aggregate syntax: 
query I rowsort label-8247
SELECT 82 * COUNT( * )
----
82

skipif mysql # not compatible
query I rowsort label-8247
SELECT 82 * COUNT ( * )
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-8248
SELECT + 87 * + 29 * - COUNT( * ) * - 8 - - ( + + SUM( ALL 68 ) ) AS col0
----
20252

skipif mysql # not compatible
query I rowsort label-8248
SELECT + 87 * + 29 * - COUNT ( * ) * - 8 - - ( + + SUM ( ALL 68 ) ) AS col0
----
20252

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

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

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

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

query I rowsort
SELECT DISTINCT + 0 * - 12 col0
----
0

query I rowsort
SELECT - - 82 col2
----
82

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

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

query I rowsort
SELECT + 33 + 89 AS col0
----
122

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8255
SELECT + SUM( - - CAST( + 33 AS SIGNED ) ) AS col1
----
33

skipif mysql # not compatible
query I rowsort label-8255
SELECT + SUM ( - - CAST ( + 33 AS INTEGER ) ) AS col1
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-8256
SELECT 57 * - - 17 - 10 * + - 14 - + 55 - 6 * + COUNT( * )
----
1048

skipif mysql # not compatible
query I rowsort label-8256
SELECT 57 * - - 17 - 10 * + - 14 - + 55 - 6 * + COUNT ( * )
----
1048

query I rowsort
SELECT DISTINCT - 84 + + 3
----
-81

query I rowsort
SELECT DISTINCT 40 + + 19
----
59

query I rowsort
SELECT ALL + 21 * 46
----
966

query I rowsort
SELECT + 69 + 57
----
126

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

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

query I rowsort
SELECT DISTINCT 33 * ( 1 ) * + 45 AS col1
----
1485

query I rowsort
SELECT - 45 + - 75
----
-120

query I rowsort
SELECT - 63 * - 21
----
1323

query I rowsort
SELECT ALL 68 * - 88 AS col1
----
-5984

onlyif mysql # aggregate syntax: 
query I rowsort label-8266
SELECT ALL COALESCE ( 42, 56 ) + - + COUNT( * )
----
41

skipif mysql # not compatible
query I rowsort label-8266
SELECT ALL COALESCE ( 42, 56 ) + - + COUNT ( * )
----
41

query I rowsort
SELECT + 33 + + 66 + COALESCE ( + + 10, - + 48 )
----
109

query I rowsort
SELECT - 15 - + 81
----
-96

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8269
SELECT ALL - 95 DIV - - COUNT( DISTINCT 18 ) col2
----
-95

skipif mysql # not compatible
query I rowsort label-8269
SELECT ALL - 95 / - - COUNT ( DISTINCT 18 ) col2
----
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-8270
SELECT + 27 * + SUM( DISTINCT - - 33 ) AS col0
----
891

skipif mysql # not compatible
query I rowsort label-8270
SELECT + 27 * + SUM ( DISTINCT - - 33 ) AS col0
----
891

onlyif mysql # aggregate syntax: 
query II rowsort label-8271
SELECT DISTINCT NULLIF ( 64, + 95 + - 31 + - + 97 + + - NULLIF ( + 27, + CASE 3 WHEN - 63 + - + 8 - 7 + + 43 * + 44 THEN 36 ELSE NULL END ) - + - 32 ), 61 * - ( 73 ) + COUNT( * ) AS col0
----
64
-4452

skipif mysql # not compatible
query II rowsort label-8271
SELECT DISTINCT NULLIF ( 64, + 95 + - 31 + - + 97 + + - NULLIF ( + 27, + CASE 3 WHEN - 63 + - + 8 - 7 + + 43 * + 44 THEN 36 ELSE NULL END ) - + - 32 ), 61 * - ( 73 ) + COUNT ( * ) AS col0
----
64
-4452

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8272
SELECT ALL NULLIF ( CAST( NULL AS DECIMAL ), + - 94 * + + 5 + - 81 * CASE WHEN + 32 IS NOT NULL THEN NULL ELSE - ( 21 ) END - + 8 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8272
SELECT ALL NULLIF ( CAST ( NULL AS REAL ), + - 94 * + + 5 + - 81 * CASE WHEN + 32 IS NOT NULL THEN NULL ELSE - ( 21 ) END - + 8 ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8273
SELECT + SUM( ALL 45 ) * 14 + 57 * + 99 + 33, 46 AS col2
----
6306
46

skipif mysql # not compatible
query II rowsort label-8273
SELECT + SUM ( ALL 45 ) * 14 + 57 * + 99 + 33, 46 AS col2
----
6306
46

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8274
SELECT ALL + 79 * - 43 - + + 90 + + NULLIF ( + - 79, - 33 * + 14 * + 8 ), CAST( + SUM( DISTINCT + 3 ) AS SIGNED ) AS col1
----
-3566
3

skipif mysql # not compatible
query II rowsort label-8274
SELECT ALL + 79 * - 43 - + + 90 + + NULLIF ( + - 79, - 33 * + 14 * + 8 ), CAST ( + SUM ( DISTINCT + 3 ) AS INTEGER ) AS col1
----
-3566
3

onlyif mysql # aggregate syntax: 
query II rowsort label-8275
SELECT DISTINCT + 90, COUNT( ALL 94 ) + + 66 AS col1
----
90
67

skipif mysql # not compatible
query II rowsort label-8275
SELECT DISTINCT + 90, COUNT ( ALL 94 ) + + 66 AS col1
----
90
67

query I rowsort
SELECT DISTINCT + 86 * - 69
----
-5934

onlyif mysql # DIV for integer division: 
query II rowsort label-8277
SELECT + 38 AS col1, 13 * ( 84 ) DIV + + 73 AS col1
----
38
14

skipif mysql # not compatible
query II rowsort label-8277
SELECT + 38 AS col1, 13 * ( 84 ) / + + 73 AS col1
----
38
14

onlyif mysql # DIV for integer division: 
query I rowsort label-8278
SELECT + 32 DIV 8 * + - 78 + - ( - 27 ) AS col2
----
-285

skipif mysql # not compatible
query I rowsort label-8278
SELECT + 32 / 8 * + - 78 + - ( - 27 ) AS col2
----
-285

query II rowsort
SELECT 32 col1, 43
----
32
43

query I rowsort
SELECT - - 34 + 84
----
118

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8282
SELECT + CAST( + 20 AS SIGNED )
----
20

skipif mysql # not compatible
query I rowsort label-8282
SELECT + CAST ( + 20 AS INTEGER )
----
20

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8283
SELECT + - 31 * - 91 + - 71 + + + CASE + 24 WHEN 71 THEN - + COUNT( * ) + - - 36 WHEN 29 + + - 74 * - 79 THEN - + 16 WHEN 14 THEN + CAST( + + 16 AS SIGNED ) END + + 41 * + + 52 / + 20
----
NULL

skipif mysql # not compatible
query I rowsort label-8283
SELECT + - 31 * - 91 + - 71 + + + CASE + 24 WHEN 71 THEN - + COUNT ( * ) + - - 36 WHEN 29 + + - 74 * - 79 THEN - + 16 WHEN 14 THEN + CAST ( + + 16 AS INTEGER ) END + + 41 * + + 52 / + 20
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8284
SELECT - - 84 DIV + - 49
----
-1

skipif mysql # not compatible
query I rowsort label-8284
SELECT - - 84 / + - 49
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8285
SELECT ALL + - SUM( DISTINCT - 52 )
----
52

skipif mysql # not compatible
query I rowsort label-8285
SELECT ALL + - SUM ( DISTINCT - 52 )
----
52

query I rowsort
SELECT ALL - + ( - + 20 ) * + 39
----
780

onlyif mysql # aggregate syntax: 
query I rowsort label-8287
SELECT ALL + - COUNT( DISTINCT + + 52 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-8287
SELECT ALL + - COUNT ( DISTINCT + + 52 ) AS col1
----
-1

query I rowsort
SELECT - 37 + ( 94 ) * - 86
----
-8121

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

onlyif mysql # aggregate syntax: 
query II rowsort label-8290
SELECT + 51 + SUM( - + 31 ) AS col1, 82 * - 44 AS col0
----
20
-3608

skipif mysql # not compatible
query II rowsort label-8290
SELECT + 51 + SUM ( - + 31 ) AS col1, 82 * - 44 AS col0
----
20
-3608

query I rowsort
SELECT ALL + 7 * + 24 - + 11 + + + 41 - - - 89 + 91
----
200

onlyif mysql # aggregate syntax: 
query I rowsort label-8292
SELECT + - 87 * + 31 + + MIN( - 79 ) * + MAX( + 63 )
----
-7674

skipif mysql # not compatible
query I rowsort label-8292
SELECT + - 87 * + 31 + + MIN ( - 79 ) * + MAX ( + 63 )
----
-7674

onlyif mysql # aggregate syntax: 
query II rowsort label-8293
SELECT 43 AS col2, 77 * - COUNT( * ) * + + 49
----
43
-3773

skipif mysql # not compatible
query II rowsort label-8293
SELECT 43 AS col2, 77 * - COUNT ( * ) * + + 49
----
43
-3773

query I rowsort
SELECT ALL - 88 * - 32
----
2816

query I rowsort
SELECT + - 77 + + + 18
----
-59

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-8297
SELECT 92 * + 21 + 56 + COUNT( CAST( - + 25 AS DECIMAL ) ) col2, - 53 + MAX( ALL - - 34 ) * - - 80 col0
----
1989
2667

skipif mysql # not compatible
query II rowsort label-8297
SELECT 92 * + 21 + 56 + COUNT ( CAST ( - + 25 AS REAL ) ) col2, - 53 + MAX ( ALL - - 34 ) * - - 80 col0
----
1989
2667

query I rowsort
SELECT ALL - ( - 92 ) * + 69 + - + 30
----
6318

query I rowsort
SELECT + 69 + + + 94 AS col0
----
163

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-8301
SELECT DISTINCT ( + 53 ) * - ( 55 ) * + 64 - + COALESCE ( - 2, ( 48 ) * 33 DIV + 12 + 67 + + + 60 + - 58 - + + 49 * + 72 - + 44 + + - 66 )
----
-186558

skipif mysql # not compatible
query I rowsort label-8301
SELECT DISTINCT ( + 53 ) * - ( 55 ) * + 64 - + COALESCE ( - 2, ( 48 ) * 33 / + 12 + 67 + + + 60 + - 58 - + + 49 * + 72 - + 44 + + - 66 )
----
-186558

onlyif mysql # aggregate syntax: 
query I rowsort label-8302
SELECT ALL CASE - - COUNT( * ) WHEN + 71 THEN NULL WHEN - 54 THEN + COUNT( * ) ELSE NULL END + 50 + 26
----
NULL

skipif mysql # not compatible
query I rowsort label-8302
SELECT ALL CASE - - COUNT ( * ) WHEN + 71 THEN NULL WHEN - 54 THEN + COUNT ( * ) ELSE NULL END + 50 + 26
----
NULL

query I rowsort
SELECT + 33 * + + 78
----
2574

query II rowsort
SELECT + 39 + 9 + 20 * + + COALESCE ( + 23, + + 88 ) * + + 84, 56 + 66 col0
----
38688
122

query I rowsort
SELECT - NULLIF ( 48, 21 )
----
-48

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8306
SELECT + COUNT( * ) + CAST( NULL AS SIGNED ) / + 68 / + 14
----
NULL

skipif mysql # not compatible
query I rowsort label-8306
SELECT + COUNT ( * ) + CAST ( NULL AS INTEGER ) / + 68 / + 14
----
NULL

query I rowsort
SELECT - 92 + - 37 col0
----
-129

query I rowsort
SELECT + 3 * - 38 * - - 43
----
-4902

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8309
SELECT ALL 15 * - + CAST( + MAX( ALL - 99 ) AS SIGNED ) AS col1
----
1485

skipif mysql # not compatible
query I rowsort label-8309
SELECT ALL 15 * - + CAST ( + MAX ( ALL - 99 ) AS INTEGER ) AS col1
----
1485

onlyif mysql # aggregate syntax: 
query I rowsort label-8310
SELECT ALL CASE + 75 WHEN - 84 THEN NULL WHEN - + COUNT( * ) + + + COUNT( * ) THEN + 70 + - SUM( DISTINCT - 22 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-8310
SELECT ALL CASE + 75 WHEN - 84 THEN NULL WHEN - + COUNT ( * ) + + + COUNT ( * ) THEN + 70 + - SUM ( DISTINCT - 22 ) END
----
NULL

query I rowsort
SELECT ALL 71 col0
----
71

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8312
SELECT + COUNT( ALL + 15 ) + - ( + CAST( + + 36 AS SIGNED ) ) AS col1
----
-35

skipif mysql # not compatible
query I rowsort label-8312
SELECT + COUNT ( ALL + 15 ) + - ( + CAST ( + + 36 AS INTEGER ) ) AS col1
----
-35

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8313
SELECT DISTINCT CASE + + CAST( NULL AS SIGNED ) WHEN 96 THEN NULL ELSE + 84 * 60 END AS col2
----
5040

skipif mysql # not compatible
query I rowsort label-8313
SELECT DISTINCT CASE + + CAST ( NULL AS INTEGER ) WHEN 96 THEN NULL ELSE + 84 * 60 END AS col2
----
5040

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8314
SELECT + 73 * CAST( 78 AS SIGNED ) AS col0
----
5694

skipif mysql # not compatible
query I rowsort label-8314
SELECT + 73 * CAST ( 78 AS INTEGER ) AS col0
----
5694

query I rowsort
SELECT ALL 79 * + - 29
----
-2291

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8316
SELECT + 43 - + CASE + CAST( NULL AS SIGNED ) WHEN + 48 + + 45 THEN - COUNT( * ) WHEN 90 * - - CAST( 52 AS SIGNED ) * 97 THEN + + 25 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-8316
SELECT + 43 - + CASE + CAST ( NULL AS INTEGER ) WHEN + 48 + + 45 THEN - COUNT ( * ) WHEN 90 * - - CAST ( 52 AS INTEGER ) * 97 THEN + + 25 ELSE NULL END
----
NULL

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

skipif mysql # not compatible
query I rowsort label-8317
SELECT - ( + MAX ( - - 63 ) )
----
-63

query I rowsort
SELECT + 20 - 40
----
-20

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8319
SELECT - COUNT( * ) DIV - ( + 94 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-8319
SELECT - COUNT ( * ) / - ( + 94 ) AS col0
----
0

query I rowsort
SELECT - 96 * + - 48 + 7 + - 22
----
4593

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8321
SELECT + 86 * - 2 + CAST( - 1 AS SIGNED ) * + + 25 AS col0
----
-197

skipif mysql # not compatible
query I rowsort label-8321
SELECT + 86 * - 2 + CAST ( - 1 AS INTEGER ) * + + 25 AS col0
----
-197

onlyif mysql # DIV for integer division: 
query I rowsort label-8322
SELECT + + 91 DIV + COALESCE ( + 14, 62 * - 40 ) + - 51
----
-45

skipif mysql # not compatible
query I rowsort label-8322
SELECT + + 91 / + COALESCE ( + 14, 62 * - 40 ) + - 51
----
-45

onlyif mysql # DIV for integer division: 
query I rowsort label-8323
SELECT - COALESCE ( + 85, 77 DIV - + 0 )
----
-85

skipif mysql # not compatible
query I rowsort label-8323
SELECT - COALESCE ( + 85, 77 / - + 0 )
----
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-8324
SELECT 39 / 79 - - ( - COUNT( * ) ) * - CASE + 3 WHEN 44 + + COUNT( * ) THEN NULL WHEN 61 THEN - + 37 END + + - 93
----
NULL

skipif mysql # not compatible
query I rowsort label-8324
SELECT 39 / 79 - - ( - COUNT ( * ) ) * - CASE + 3 WHEN 44 + + COUNT ( * ) THEN NULL WHEN 61 THEN - + 37 END + + - 93
----
NULL

query I rowsort
SELECT - + 22 * 34 AS col2
----
-748

query I rowsort
SELECT DISTINCT - - 0 * ( + + 20 ) AS col0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8327
SELECT ALL + 42 + + 78 - CAST( + 93 AS SIGNED ) col1, - 0
----
27
0

skipif mysql # not compatible
query II rowsort label-8327
SELECT ALL + 42 + + 78 - CAST ( + 93 AS INTEGER ) col1, - 0
----
27
0

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

skipif mysql # not compatible
query I rowsort label-8328
SELECT CAST ( NULL AS REAL ) * 36 AS col1
----
NULL

query II rowsort
SELECT - ( - 70 ) * - 99 * 40, 26 AS col2
----
-277200
26

query I rowsort
SELECT DISTINCT - 51 + + - 79
----
-130

query II rowsort
SELECT + ( + 40 ) AS col2, 91 * + 48 * + 21 col0
----
40
91728

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8332
SELECT - 24 * - + COUNT( * ) + - CAST( 7 AS SIGNED ) - - COUNT( * ) DIV + - ( 53 ) AS col1
----
17

skipif mysql # not compatible
query I rowsort label-8332
SELECT - 24 * - + COUNT ( * ) + - CAST ( 7 AS INTEGER ) - - COUNT ( * ) / + - ( 53 ) AS col1
----
17

query I rowsort
SELECT ALL + - 45 + ( + 58 )
----
13

query I rowsort
SELECT ALL - 35 + - + 51
----
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-8335
SELECT DISTINCT - COUNT( 94 )
----
-1

skipif mysql # not compatible
query I rowsort label-8335
SELECT DISTINCT - COUNT ( 94 )
----
-1

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

onlyif mysql # aggregate syntax: 
query I rowsort label-8337
SELECT 3 * + + 86 + CASE 40 WHEN 8 THEN - 94 ELSE - COUNT( * ) * + - 91 * - + 69 END AS col0
----
-6021

skipif mysql # not compatible
query I rowsort label-8337
SELECT 3 * + + 86 + CASE 40 WHEN 8 THEN - 94 ELSE - COUNT ( * ) * + - 91 * - + 69 END AS col0
----
-6021

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8338
SELECT 27 * - CAST( + 79 AS SIGNED )
----
-2133

skipif mysql # not compatible
query I rowsort label-8338
SELECT 27 * - CAST ( + 79 AS INTEGER )
----
-2133

onlyif mysql # aggregate syntax: 
query I rowsort label-8339
SELECT 42 + + 35 * 92 * + COUNT( * )
----
3262

skipif mysql # not compatible
query I rowsort label-8339
SELECT 42 + + 35 * 92 * + COUNT ( * )
----
3262

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8340
SELECT 61 + - CAST( + 14 AS SIGNED ) - + COUNT( * ) + - 52
----
-6

skipif mysql # not compatible
query I rowsort label-8340
SELECT 61 + - CAST ( + 14 AS INTEGER ) - + COUNT ( * ) + - 52
----
-6

query I rowsort
SELECT ALL 38 * + 2
----
76

query I rowsort
SELECT 68 * - + 37 AS col0
----
-2516

onlyif mysql # aggregate syntax: 
query I rowsort label-8343
SELECT 39 * + ( + 98 ) * - COUNT( * )
----
-3822

skipif mysql # not compatible
query I rowsort label-8343
SELECT 39 * + ( + 98 ) * - COUNT ( * )
----
-3822

onlyif mysql # aggregate syntax: 
query I rowsort label-8344
SELECT COUNT( * ) + - - 52 AS col1
----
53

skipif mysql # not compatible
query I rowsort label-8344
SELECT COUNT ( * ) + - - 52 AS col1
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-8345
SELECT 51 + + - 23 * - + COUNT( * ) * - + 61 AS col1
----
-1352

skipif mysql # not compatible
query I rowsort label-8345
SELECT 51 + + - 23 * - + COUNT ( * ) * - + 61 AS col1
----
-1352

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8346
SELECT AVG ( - 57 ) + - 45 + + + 68 + - 10 - + - 57 + - 84 + - CAST( NULL AS SIGNED ) / COUNT( * ) * 7 * + - 31 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8346
SELECT AVG ( - 57 ) + - 45 + + + 68 + - 10 - + - 57 + - 84 + - CAST ( NULL AS INTEGER ) / COUNT ( * ) * 7 * + - 31 AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8347
SELECT ALL 25 DIV + + 66
----
0

skipif mysql # not compatible
query I rowsort label-8347
SELECT ALL 25 / + + 66
----
0

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8349
SELECT ALL + 62 / - 59 + 38 * - 51 * - 88 * + + 55 / - - AVG ( - CASE - 53 WHEN 97 * - CAST( NULL AS SIGNED ) THEN + + 31 * 12 END ) + - COUNT( * ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8349
SELECT ALL + 62 / - 59 + 38 * - 51 * - 88 * + + 55 / - - AVG ( - CASE - 53 WHEN 97 * - CAST ( NULL AS INTEGER ) THEN + + 31 * 12 END ) + - COUNT ( * ) col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8350
SELECT + 6 * + + COUNT( DISTINCT 30 ) * 63 * - 41 * + 89
----
-1379322

skipif mysql # not compatible
query I rowsort label-8350
SELECT + 6 * + + COUNT ( DISTINCT 30 ) * 63 * - 41 * + 89
----
-1379322

query I rowsort
SELECT ALL - + 50 col2
----
-50

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

onlyif mysql # aggregate syntax: 
query I rowsort label-8353
SELECT ALL + 71 + + COUNT( * ) * - 6 AS col0
----
65

skipif mysql # not compatible
query I rowsort label-8353
SELECT ALL + 71 + + COUNT ( * ) * - 6 AS col0
----
65

query I rowsort
SELECT + ( + 22 ) col2
----
22

onlyif mysql # aggregate syntax: 
query II rowsort label-8355
SELECT - COUNT( DISTINCT + + 26 ) + + 84 AS col0, - 33 * 5 * 54 * + 87
----
83
-775170

skipif mysql # not compatible
query II rowsort label-8355
SELECT - COUNT ( DISTINCT + + 26 ) + + 84 AS col0, - 33 * 5 * 54 * + 87
----
83
-775170

query I rowsort
SELECT - 42 * + 85
----
-3570

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

query I rowsort
SELECT - 56 * COALESCE ( + 37, + 86 )
----
-2072

query I rowsort
SELECT ALL + + 93 + - 79 AS col0
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-8360
SELECT + 85 * - + 83 + NULLIF ( - CASE - - 47 WHEN - 42 * 64 THEN + 26 WHEN + 23 THEN NULL ELSE NULL END, - 45 ) + + 27 + CASE - 32 WHEN - 23 THEN NULL WHEN - 91 THEN NULL WHEN COUNT( - 53 ) - COUNT( * ) THEN NULL ELSE - ( + 37 ) END / 14 * + 47
----
NULL

skipif mysql # not compatible
query I rowsort label-8360
SELECT + 85 * - + 83 + NULLIF ( - CASE - - 47 WHEN - 42 * 64 THEN + 26 WHEN + 23 THEN NULL ELSE NULL END, - 45 ) + + 27 + CASE - 32 WHEN - 23 THEN NULL WHEN - 91 THEN NULL WHEN COUNT ( - 53 ) - COUNT ( * ) THEN NULL ELSE - ( + 37 ) END / 14 * + 47
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-8362
SELECT ALL + ( - 83 ) + - COUNT( + 35 )
----
-84

skipif mysql # not compatible
query I rowsort label-8362
SELECT ALL + ( - 83 ) + - COUNT ( + 35 )
----
-84

onlyif mysql # DIV for integer division: 
query II rowsort label-8363
SELECT ALL - 6 * 76 DIV + 98 AS col0, 8 * - + 27 AS col1
----
-4
-216

skipif mysql # not compatible
query II rowsort label-8363
SELECT ALL - 6 * 76 / + 98 AS col0, 8 * - + 27 AS col1
----
-4
-216

query I rowsort
SELECT + 49 + - 61
----
-12

query II rowsort
SELECT - 88 * - + 16 + + 99 AS col1, 21 * 58 AS col0
----
1507
1218

onlyif mysql # aggregate syntax: 
query I rowsort label-8366
SELECT - COUNT( * ) * + COALESCE ( - + 92, + 81, - 0 + - 87 ) + 1 col1
----
93

skipif mysql # not compatible
query I rowsort label-8366
SELECT - COUNT ( * ) * + COALESCE ( - + 92, + 81, - 0 + - 87 ) + 1 col1
----
93

query I rowsort
SELECT ALL - ( - 14 ) col2
----
14

query I rowsort
SELECT ALL - 8 * 29
----
-232

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8369
SELECT 35 * CAST( - COUNT( * ) AS SIGNED ) + 22
----
-13

skipif mysql # not compatible
query I rowsort label-8369
SELECT 35 * CAST ( - COUNT ( * ) AS INTEGER ) + 22
----
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-8370
SELECT 23 * CASE - 82 WHEN + 7 THEN NULL ELSE + 95 * - 58 + COUNT( * ) END * - + 87
----
11023509

skipif mysql # not compatible
query I rowsort label-8370
SELECT 23 * CASE - 82 WHEN + 7 THEN NULL ELSE + 95 * - 58 + COUNT ( * ) END * - + 87
----
11023509

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

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

query II rowsort
SELECT ALL - 97 AS col0, 54
----
-97
54

query I rowsort
SELECT 33 + - + 44
----
-11

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8374
SELECT - COUNT( DISTINCT 37 ) * - NULLIF ( + 43, - + CAST( NULL AS SIGNED ) ) DIV 35 + + 87 + - + 63 AS col2
----
25

skipif mysql # not compatible
query I rowsort label-8374
SELECT - COUNT ( DISTINCT 37 ) * - NULLIF ( + 43, - + CAST ( NULL AS INTEGER ) ) / 35 + + 87 + - + 63 AS col2
----
25

onlyif mysql # aggregate syntax: 
query II rowsort label-8375
SELECT 30, - CASE - NULLIF ( - + 13, 14 ) WHEN + 10 + + 12 + - MAX( + 40 ) THEN 36 * + + 37 END * - 5 AS col1
----
30
NULL

skipif mysql # not compatible
query II rowsort label-8375
SELECT 30, - CASE - NULLIF ( - + 13, 14 ) WHEN + 10 + + 12 + - MAX ( + 40 ) THEN 36 * + + 37 END * - 5 AS col1
----
30
NULL

query I rowsort
SELECT ALL 68 - + 50 AS col2
----
18

query I rowsort
SELECT 61 * - 75 * - 18
----
82350

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

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

query I rowsort
SELECT 77 + 20 AS col1
----
97

query I rowsort
SELECT 48 * 47
----
2256

query I rowsort
SELECT 51 * - + 56
----
-2856

query I rowsort
SELECT DISTINCT 16 * COALESCE ( NULLIF ( 24, + NULLIF ( - 9, - 40 ) * - 67 ), - 86 )
----
384

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-8385
SELECT ALL + + MIN( 24 ) + - 31
----
-7

skipif mysql # not compatible
query I rowsort label-8385
SELECT ALL + + MIN ( 24 ) + - 31
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-8386
SELECT - 48 - + SUM( ALL + 40 )
----
-88

skipif mysql # not compatible
query I rowsort label-8386
SELECT - 48 - + SUM ( ALL + 40 )
----
-88

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8388
SELECT - 61 + + CAST( NULL AS SIGNED ) + + - AVG ( DISTINCT 33 ) * AVG ( + ( - 4 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-8388
SELECT - 61 + + CAST ( NULL AS INTEGER ) + + - AVG ( DISTINCT 33 ) * AVG ( + ( - 4 ) )
----
NULL

query II rowsort
SELECT ALL 38 AS col1, 94 AS col1
----
38
94

onlyif mysql # DIV for integer division: 
query I rowsort label-8390
SELECT + + 79 DIV - 2
----
-39

skipif mysql # not compatible
query I rowsort label-8390
SELECT + + 79 / - 2
----
-39

onlyif mysql # DIV for integer division: 
query I rowsort label-8391
SELECT 21 DIV + 96 - + 40 * - 10 + 99 - + 70
----
429

skipif mysql # not compatible
query I rowsort label-8391
SELECT 21 / + 96 - + 40 * - 10 + 99 - + 70
----
429

query II rowsort
SELECT ALL + 31 AS col2, - 95 * - 44
----
31
4180

query II rowsort
SELECT ALL + - 89 AS col0, + 41 AS col2
----
-89
41

query I rowsort
SELECT DISTINCT + ( + - 29 ) AS col1
----
-29

query I rowsort
SELECT DISTINCT - 23 * - 29 - ( - + 17 ) * - 63 AS col2
----
-404

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

onlyif mysql # DIV for integer division: 
query I rowsort label-8397
SELECT + 60 DIV - - 24 AS col0
----
2

skipif mysql # not compatible
query I rowsort label-8397
SELECT + 60 / - - 24 AS col0
----
2

onlyif mysql # DIV for integer division: 
query I rowsort label-8398
SELECT + 28 DIV + 77
----
0

skipif mysql # not compatible
query I rowsort label-8398
SELECT + 28 / + 77
----
0

query I rowsort
SELECT ALL + 72 col0
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-8400
SELECT MIN( ALL + + 16 ) * 42 * 76 - 54 * + 52 * - CASE WHEN NOT NULL NOT BETWEEN NULL AND 17 THEN NULL ELSE + 56 END + + 3 + + 43 + + + 42 + 33 * + + 39 * + 89 AS col0
----
322951

skipif mysql # not compatible
query I rowsort label-8400
SELECT MIN ( ALL + + 16 ) * 42 * 76 - 54 * + 52 * - CASE WHEN NOT NULL NOT BETWEEN NULL AND 17 THEN NULL ELSE + 56 END + + 3 + + 43 + + + 42 + 33 * + + 39 * + 89 AS col0
----
322951

query I rowsort
SELECT - CASE + - AVG ( - - 85 ) WHEN + + 75 * + 88 * + + 26 - + 65 + + 6 - + 95 THEN NULL WHEN + 76 - - + 60 THEN + + 27 ELSE NULL END + - 9 * - 56
----
NULL

query I rowsort
SELECT ALL 96 * - 8
----
-768

query I rowsort
SELECT ALL 55 + - - 92 AS col0
----
147

onlyif mysql # aggregate syntax: 
query I rowsort label-8404
SELECT - 67 + - - 72 * + + 20 * 53 * CASE - - COUNT( * ) WHEN + - 38 THEN - COUNT( * ) ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8404
SELECT - 67 + - - 72 * + + 20 * 53 * CASE - - COUNT ( * ) WHEN + - 38 THEN - COUNT ( * ) ELSE NULL END AS col2
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-8406
SELECT ALL + 15 + - - 10 * - + COUNT( * ) AS col1
----
5

skipif mysql # not compatible
query I rowsort label-8406
SELECT ALL + 15 + - - 10 * - + COUNT ( * ) AS col1
----
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8407
SELECT - CAST( NULL AS SIGNED ) + + ( 31 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8407
SELECT - CAST ( NULL AS INTEGER ) + + ( 31 ) AS col2
----
NULL

query I rowsort
SELECT - + 85 - + ( - ( - + 8 ) ) AS col2
----
-93

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

skipif mysql # not compatible
query I rowsort label-8409
SELECT - COALESCE ( + COUNT ( * ), - 6 ) AS col2
----
-1

query I rowsort
SELECT ALL - - 51 - + 94
----
-43

query I rowsort
SELECT - - NULLIF ( + 23, + 22 * + 29 ) * 44
----
1012

query I rowsort
SELECT - - 97 AS col2
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-8413
SELECT ALL - + CASE + 4 WHEN - 13 THEN 35 END / ( - COUNT( * ) ) * - - 71 * - 75 - - 89
----
NULL

skipif mysql # not compatible
query I rowsort label-8413
SELECT ALL - + CASE + 4 WHEN - 13 THEN 35 END / ( - COUNT ( * ) ) * - - 71 * - 75 - - 89
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8414
SELECT + 26 DIV 85 * 98 * ( - COUNT( * ) ) + + 20 * + 87 + - COALESCE ( 17, + 76 + - - 69 )
----
1723

skipif mysql # not compatible
query I rowsort label-8414
SELECT + 26 / 85 * 98 * ( - COUNT ( * ) ) + + 20 * + 87 + - COALESCE ( 17, + 76 + - - 69 )
----
1723

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8415
SELECT - CAST( 80 AS SIGNED ) * - 75 * + COUNT( * ) + - 10 - 37 + + 79 * - - 32
----
8481

skipif mysql # not compatible
query I rowsort label-8415
SELECT - CAST ( 80 AS INTEGER ) * - 75 * + COUNT ( * ) + - 10 - 37 + + 79 * - - 32
----
8481

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8416
SELECT - - 73 + - CAST( 11 AS SIGNED )
----
62

skipif mysql # not compatible
query I rowsort label-8416
SELECT - - 73 + - CAST ( 11 AS INTEGER )
----
62

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8417
SELECT + CAST( - - 97 AS SIGNED ) * COUNT( * ) + COUNT( * ) * 44 DIV + 65 AS col1
----
97

skipif mysql # not compatible
query I rowsort label-8417
SELECT + CAST ( - - 97 AS INTEGER ) * COUNT ( * ) + COUNT ( * ) * 44 / + 65 AS col1
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-8418
SELECT - - 23 * - + NULLIF ( + 19, - COUNT( * ) )
----
-437

skipif mysql # not compatible
query I rowsort label-8418
SELECT - - 23 * - + NULLIF ( + 19, - COUNT ( * ) )
----
-437

onlyif mysql # DIV for integer division: 
query I rowsort label-8419
SELECT ALL 63 DIV - + 1 col0
----
-63

skipif mysql # not compatible
query I rowsort label-8419
SELECT ALL 63 / - + 1 col0
----
-63

onlyif mysql # aggregate syntax: 
query II rowsort label-8420
SELECT + MAX( ALL + 65 ) + + - 79 * + NULLIF ( + - NULLIF ( + 26, 97 / - - 19 + + COUNT( * ) + - COUNT( * ) * + COUNT( * ) + 96 ), 20 ) AS col1, 52 AS col1
----
2119
52

skipif mysql # not compatible
query II rowsort label-8420
SELECT + MAX ( ALL + 65 ) + + - 79 * + NULLIF ( + - NULLIF ( + 26, 97 / - - 19 + + COUNT ( * ) + - COUNT ( * ) * + COUNT ( * ) + 96 ), 20 ) AS col1, 52 AS col1
----
2119
52

onlyif mysql # DIV for integer division: 
query I rowsort label-8421
SELECT + 9 DIV - - 41 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-8421
SELECT + 9 / - - 41 AS col1
----
0

query I rowsort
SELECT + 21 * + 9
----
189

query II rowsort
SELECT 73 * + - 61 * 50 * - - 56 + - 46 * + 22 col2, + 96
----
-12469412
96

onlyif mysql # aggregate syntax: 
query I rowsort label-8424
SELECT + ( - 21 ) + + 63 + + COUNT( * ) col2
----
43

skipif mysql # not compatible
query I rowsort label-8424
SELECT + ( - 21 ) + + 63 + + COUNT ( * ) col2
----
43

query I rowsort
SELECT ALL 0 * + 14 + - 61 + 47
----
-14

query I rowsort
SELECT + ( - - COALESCE ( + 31, 69 * + + 93 * - + 18 ) ) AS col0
----
31

query I rowsort
SELECT + 91 * - - 62 AS col0
----
5642

onlyif mysql # DIV for integer division: 
query I rowsort label-8428
SELECT ALL 2 DIV 41 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-8428
SELECT ALL 2 / 41 AS col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8429
SELECT DISTINCT 14 + - CAST( COUNT( * ) AS SIGNED ), 66 AS col2
----
13
66

skipif mysql # not compatible
query II rowsort label-8429
SELECT DISTINCT 14 + - CAST ( COUNT ( * ) AS INTEGER ), 66 AS col2
----
13
66

query II rowsort
SELECT ALL 30 AS col0, - 5 * - + 65 AS col2
----
30
325

query II rowsort
SELECT 93, - 53 * 93 AS col1
----
93
-4929

query I rowsort
SELECT ALL 49 + + ( + + 38 )
----
87

query II rowsort
SELECT - 85 AS col1, 9 AS col0
----
-85
9

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

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

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

query I rowsort
SELECT - 52 * 51
----
-2652

onlyif mysql # aggregate syntax: 
query I rowsort label-8437
SELECT ALL 22 * COUNT( * ) + - + 31 - COUNT( * ) * + 55
----
-64

skipif mysql # not compatible
query I rowsort label-8437
SELECT ALL 22 * COUNT ( * ) + - + 31 - COUNT ( * ) * + 55
----
-64

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8439
SELECT DISTINCT NULLIF ( - CASE + 51 WHEN + 57 + 5 THEN + MAX( DISTINCT + - ( - - 94 ) ) WHEN + + CAST( NULL AS SIGNED ) THEN NULL ELSE NULL END, - ( - + 22 ) - 11 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8439
SELECT DISTINCT NULLIF ( - CASE + 51 WHEN + 57 + 5 THEN + MAX ( DISTINCT + - ( - - 94 ) ) WHEN + + CAST ( NULL AS INTEGER ) THEN NULL ELSE NULL END, - ( - + 22 ) - 11 )
----
NULL

query II rowsort
SELECT - - 12 col0, + 17
----
12
17

query I rowsort
SELECT DISTINCT + ( - - 57 ) AS col1
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-8442
SELECT COUNT( ALL + - 74 )
----
1

skipif mysql # not compatible
query I rowsort label-8442
SELECT COUNT ( ALL + - 74 )
----
1

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

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

query I rowsort
SELECT ( - 26 ) * 4 AS col0
----
-104

query I rowsort
SELECT 35 + - - 39 + 17
----
91

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8446
SELECT 81 + - CASE WHEN NOT 22 <= NULL THEN + CASE COUNT( * ) WHEN - - ( - 75 ) THEN + 59 ELSE + + 1 END DIV - 93 + + 48 + - - COUNT( * ) ELSE 47 + + + 76 + + 52 * + NULLIF ( + 69, + 12 ) + 21 DIV - - ( + ( - + 1 ) ) END AS col2
----
-3609

skipif mysql # not compatible
query I rowsort label-8446
SELECT 81 + - CASE WHEN NOT 22 <= NULL THEN + CASE COUNT ( * ) WHEN - - ( - 75 ) THEN + 59 ELSE + + 1 END / - 93 + + 48 + - - COUNT ( * ) ELSE 47 + + + 76 + + 52 * + NULLIF ( + 69, + 12 ) + 21 / - - ( + ( - + 1 ) ) END AS col2
----
-3609

onlyif mysql # DIV for integer division: 
query I rowsort label-8447
SELECT 83 DIV + 33
----
2

skipif mysql # not compatible
query I rowsort label-8447
SELECT 83 / + 33
----
2

onlyif mysql # DIV for integer division: 
query I rowsort label-8448
SELECT ALL - - 15 DIV + 69 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-8448
SELECT ALL - - 15 / + 69 AS col2
----
0

query I rowsort
SELECT DISTINCT - 25 * + 90
----
-2250

query I rowsort
SELECT ALL + 77 * 74
----
5698

query I rowsort
SELECT ALL - ( 5 ) col1
----
-5

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8452
SELECT 52 DIV + - COUNT( * ) AS col0
----
-52

skipif mysql # not compatible
query I rowsort label-8452
SELECT 52 / + - COUNT ( * ) AS col0
----
-52

query I rowsort
SELECT ALL + 86 * + 86
----
7396

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

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

query I rowsort
SELECT 52 * - - 91 AS col1
----
4732

onlyif mysql # DIV for integer division: 
query I rowsort label-8456
SELECT 87 * 59 DIV 89
----
57

skipif mysql # not compatible
query I rowsort label-8456
SELECT 87 * 59 / 89
----
57

query I rowsort
SELECT ALL 9 + - - 32
----
41

query I rowsort
SELECT 5 * ( + + 39 ) - - + 29 AS col0
----
224

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-8459
SELECT ALL + CAST( NULL AS SIGNED ) + - - 3 AS col2, - 31 DIV 26 AS col0
----
NULL
-1

skipif mysql # not compatible
query II rowsort label-8459
SELECT ALL + CAST ( NULL AS INTEGER ) + - - 3 AS col2, - 31 / 26 AS col0
----
NULL
-1

query I rowsort
SELECT ALL 61 + - 23 + + 58
----
96

query I rowsort
SELECT ALL - 42 + - + 72 AS col2
----
-114

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8462
SELECT DISTINCT 96 + + - COUNT( * ) + - - 16 * + - 4 * 76 + 72 DIV + - COUNT( + 63 )
----
-4841

skipif mysql # not compatible
query I rowsort label-8462
SELECT DISTINCT 96 + + - COUNT ( * ) + - - 16 * + - 4 * 76 + 72 / + - COUNT ( + 63 )
----
-4841

query I rowsort
SELECT - - 70 AS col1
----
70

query I rowsort
SELECT ALL 67 - + - NULLIF ( 48, + 56 / + - 44 + + 66 + - - 54 ) * - 6 * + 14 * + + 25 + + 50 AS col0
----
-100683

query I rowsort
SELECT 57 * - 9 AS col1
----
-513

query I rowsort
SELECT ALL - - 43 * - 83
----
-3569

onlyif mysql # aggregate syntax: 
query II rowsort label-8467
SELECT - 50 + - + COUNT( * ) * - 60 * + 79, - COUNT( * ) + COUNT( * ) AS col1
----
4690
0

skipif mysql # not compatible
query II rowsort label-8467
SELECT - 50 + - + COUNT ( * ) * - 60 * + 79, - COUNT ( * ) + COUNT ( * ) AS col1
----
4690
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8468
SELECT ALL 94 DIV 41 - - 90 + 93, - COUNT( * ) AS col1
----
185
-1

skipif mysql # not compatible
query II rowsort label-8468
SELECT ALL 94 / 41 - - 90 + 93, - COUNT ( * ) AS col1
----
185
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-8469
SELECT COUNT( * ) + - - 64 AS col1, + 14
----
65
14

skipif mysql # not compatible
query II rowsort label-8469
SELECT COUNT ( * ) + - - 64 AS col1, + 14
----
65
14

query I rowsort
SELECT 80 * + - 75 AS col2
----
-6000

query II rowsort
SELECT + 77 + + 46 AS col0, - 34
----
123
-34

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

onlyif mysql # aggregate syntax: 
query I rowsort label-8473
SELECT COALESCE ( + 8, + + 11 + - COUNT( * ) ) * - ( - 0 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-8473
SELECT COALESCE ( + 8, + + 11 + - COUNT ( * ) ) * - ( - 0 ) AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8474
SELECT - + MIN( DISTINCT - 75 ) col2
----
75

skipif mysql # not compatible
query I rowsort label-8474
SELECT - + MIN ( DISTINCT - 75 ) col2
----
75

query I rowsort
SELECT 6 * + 30 AS col2
----
180

query I rowsort
SELECT - 27 + - 49 AS col0
----
-76

query I rowsort
SELECT ALL - 8 col2
----
-8

query I rowsort
SELECT - + 52 col0
----
-52

query I rowsort
SELECT DISTINCT 40 * 1 AS col1
----
40

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

query I rowsort
SELECT 29 * + - 79
----
-2291

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

skipif mysql # not compatible
query II rowsort label-8482
SELECT 7 AS col1, COUNT ( * ) col1
----
7
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8483
SELECT 9 DIV - 97 + + COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-8483
SELECT 9 / - 97 + + COUNT ( * )
----
1

query II rowsort
SELECT + 98 AS col1, + 60 + + 49
----
98
109

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8485
SELECT ALL 48 * - 67 + + CAST( NULL AS SIGNED ) + 9
----
NULL

skipif mysql # not compatible
query I rowsort label-8485
SELECT ALL 48 * - 67 + + CAST ( NULL AS INTEGER ) + 9
----
NULL

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

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

query I rowsort
SELECT 58 + + 57
----
115

query I rowsort
SELECT DISTINCT + 0 * + 18
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8489
SELECT - CASE - 23 WHEN 74 THEN NULL WHEN - 19 * - - COUNT( * ) THEN NULL ELSE - + COUNT( * ) + + + ( 9 ) END * - 91 + - 41, ( - CAST( - 85 AS SIGNED ) ) AS col0
----
687
85

skipif mysql # not compatible
query II rowsort label-8489
SELECT - CASE - 23 WHEN 74 THEN NULL WHEN - 19 * - - COUNT ( * ) THEN NULL ELSE - + COUNT ( * ) + + + ( 9 ) END * - 91 + - 41, ( - CAST ( - 85 AS INTEGER ) ) AS col0
----
687
85

query I rowsort
SELECT ALL + 83 * + - 25
----
-2075

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

skipif mysql # not compatible
query I rowsort label-8491
SELECT DISTINCT - 38 * + COUNT ( * ) AS col0
----
-38

query I rowsort
SELECT DISTINCT + ( 34 ) col2
----
34

query I rowsort
SELECT - 25 * + - 34 AS col0
----
850

query II rowsort
SELECT + 83 AS col0, 93
----
83
93

query I rowsort
SELECT + 90 + + - 49 * - 7 + - 66 AS col2
----
367

query I rowsort
SELECT - 25 * 53
----
-1325

query I rowsort
SELECT DISTINCT + - 99 col0
----
-99

query I rowsort
SELECT + 70 * + 88
----
6160

query I rowsort
SELECT ALL + 40 * + 57
----
2280

onlyif mysql # aggregate syntax: 
query I rowsort label-8500
SELECT - NULLIF ( 79, 67 ) * - + 13 * + SUM( 60 )
----
61620

skipif mysql # not compatible
query I rowsort label-8500
SELECT - NULLIF ( 79, 67 ) * - + 13 * + SUM ( 60 )
----
61620

query I rowsort
SELECT ALL 67 * - 71
----
-4757

query I rowsort
SELECT + - 80 * 8 AS col2
----
-640

query I rowsort
SELECT ALL - 99 + - 21 AS col1
----
-120

query I rowsort
SELECT DISTINCT - 88 * - 44 AS col2
----
3872

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8505
SELECT DISTINCT CAST( NULL AS SIGNED ) + + COUNT( + 70 ) * - 37 * COUNT( + 17 ) - 38 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8505
SELECT DISTINCT CAST ( NULL AS INTEGER ) + + COUNT ( + 70 ) * - 37 * COUNT ( + 17 ) - 38 AS col1
----
NULL

query I rowsort
SELECT + 86 * - ( + 67 ) + - 51 AS col1
----
-5813

onlyif mysql # aggregate syntax: 
query II rowsort label-8507
SELECT - 65 AS col1, + MIN( ALL + + 25 )
----
-65
25

skipif mysql # not compatible
query II rowsort label-8507
SELECT - 65 AS col1, + MIN ( ALL + + 25 )
----
-65
25

query I rowsort
SELECT ALL 70 + + 51 + - + 11 * - ( - + NULLIF ( - 52, 84 ) ) AS col2
----
693

onlyif mysql # aggregate syntax: 
query II rowsort label-8509
SELECT + 22 * + COUNT( * ) AS col0, + 85 AS col1
----
22
85

skipif mysql # not compatible
query II rowsort label-8509
SELECT + 22 * + COUNT ( * ) AS col0, + 85 AS col1
----
22
85

query I rowsort
SELECT DISTINCT 33 + - ( - 35 ) - + + 35 AS col2
----
33

query II rowsort
SELECT ALL 94, + 21 AS col1
----
94
21

query II rowsort
SELECT 71 col1, 37 col2
----
71
37

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8513
SELECT - CAST( NULL AS SIGNED ) + 98 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8513
SELECT - CAST ( NULL AS INTEGER ) + 98 AS col2
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-8515
SELECT + SUM( - 30 ) * 29
----
-870

skipif mysql # not compatible
query I rowsort label-8515
SELECT + SUM ( - 30 ) * 29
----
-870

query I rowsort
SELECT + ( - 28 ) col0
----
-28

query II rowsort
SELECT DISTINCT + 19 AS col2, 69
----
19
69

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

query I rowsort
SELECT - 96 * 36 col2
----
-3456

query I rowsort
SELECT ( - 19 )
----
-19

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

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

query I rowsort
SELECT - 78 - 95 AS col2
----
-173

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8523
SELECT + + 87, NULLIF ( + 15, + + 53 ) AS col0, - - CAST( NULL AS SIGNED ) AS col0
----
87
15
NULL

skipif mysql # not compatible
query III rowsort label-8523
SELECT + + 87, NULLIF ( + 15, + + 53 ) AS col0, - - CAST ( NULL AS INTEGER ) AS col0
----
87
15
NULL

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

onlyif mysql # DIV for integer division: 
query II rowsort label-8525
SELECT - ( 44 ) * + + 92 * - 14 AS col1, 18 - - 19 DIV - 22 + 58
----
56672
76

skipif mysql # not compatible
query II rowsort label-8525
SELECT - ( 44 ) * + + 92 * - 14 AS col1, 18 - - 19 / - 22 + 58
----
56672
76

query I rowsort
SELECT - 98 + + ( + 27 ) AS col0
----
-71

query I rowsort
SELECT - - 89 * - + 24
----
-2136

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8528
SELECT - + NULLIF ( 44, + 23 ) - + 75 DIV + COUNT( + + CAST( + + 21 AS SIGNED ) ) + 84 * - CASE + 67 WHEN + + 62 THEN - - 78 + - + 17 WHEN - 3 THEN NULL ELSE + 49 END
----
-4235

skipif mysql # not compatible
query I rowsort label-8528
SELECT - + NULLIF ( 44, + 23 ) - + 75 / + COUNT ( + + CAST ( + + 21 AS INTEGER ) ) + 84 * - CASE + 67 WHEN + + 62 THEN - - 78 + - + 17 WHEN - 3 THEN NULL ELSE + 49 END
----
-4235

query II rowsort
SELECT ALL 75 AS col0, 89 AS col1
----
75
89

query I rowsort
SELECT - ( 39 )
----
-39

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8531
SELECT ALL - - CAST( NULL AS SIGNED ) * - 43 * + ( + 93 ) * 36 + + 53 + + + 13 * + 20
----
NULL

skipif mysql # not compatible
query I rowsort label-8531
SELECT ALL - - CAST ( NULL AS INTEGER ) * - 43 * + ( + 93 ) * 36 + + 53 + + + 13 * + 20
----
NULL

query I rowsort
SELECT ALL + + 95 + - + CASE 85 WHEN - 29 THEN ( + 40 ) END * 91 * 28 AS col1
----
NULL

query I rowsort
SELECT - 21 col0
----
-21

query I rowsort
SELECT - - 88 + - 46 AS col0
----
42

query I rowsort
SELECT + + 24 * - 28 AS col2
----
-672

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8536
SELECT + ( + ( + COALESCE ( + - 75, - 61 ) ) ) DIV - COUNT( * )
----
75

skipif mysql # not compatible
query I rowsort label-8536
SELECT + ( + ( + COALESCE ( + - 75, - 61 ) ) ) / - COUNT ( * )
----
75

query I rowsort
SELECT DISTINCT 51 * + 61
----
3111

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8538
SELECT + CAST( + + 90 AS SIGNED ) + - CAST( 77 AS SIGNED ) AS col0
----
13

skipif mysql # not compatible
query I rowsort label-8538
SELECT + CAST ( + + 90 AS INTEGER ) + - CAST ( 77 AS INTEGER ) AS col0
----
13

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8539
SELECT CASE + CAST( NULL AS SIGNED ) WHEN - 4 * - + 30 + - 27 + + - MAX( DISTINCT - 3 ) THEN NULL WHEN - 61 + 69 THEN + 15 * - COUNT( * ) * + 12 * + COUNT( * ) + 25 WHEN - + 57 * 21 THEN NULL END * + - 32 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8539
SELECT CASE + CAST ( NULL AS INTEGER ) WHEN - 4 * - + 30 + - 27 + + - MAX ( DISTINCT - 3 ) THEN NULL WHEN - 61 + 69 THEN + 15 * - COUNT ( * ) * + 12 * + COUNT ( * ) + 25 WHEN - + 57 * 21 THEN NULL END * + - 32 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8540
SELECT CASE + 35 WHEN + SUM( - NULLIF ( - - 46, + 39 - 34 ) ) * 58 - - 18 + - 41 THEN - - 95 * + - 30 ELSE NULL END + - SUM( + + 75 ) + 19
----
NULL

skipif mysql # not compatible
query I rowsort label-8540
SELECT CASE + 35 WHEN + SUM ( - NULLIF ( - - 46, + 39 - 34 ) ) * 58 - - 18 + - 41 THEN - - 95 * + - 30 ELSE NULL END + - SUM ( + + 75 ) + 19
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8541
SELECT DISTINCT + 10 - - COALESCE ( + - COUNT( DISTINCT + + 60 ), 24 ) AS col1, 24 AS col2
----
9
24

skipif mysql # not compatible
query II rowsort label-8541
SELECT DISTINCT + 10 - - COALESCE ( + - COUNT ( DISTINCT + + 60 ), 24 ) AS col1, 24 AS col2
----
9
24

query I rowsort
SELECT ALL - 55 * - 11 * + + 91 AS col1
----
55055

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8543
SELECT ALL 39 DIV - SUM( ALL - 81 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-8543
SELECT ALL 39 / - SUM ( ALL - 81 ) AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8544
SELECT COUNT( * ) * + - MAX( - 18 ) + - - ( ( + 0 ) )
----
18

skipif mysql # not compatible
query I rowsort label-8544
SELECT COUNT ( * ) * + - MAX ( - 18 ) + - - ( ( + 0 ) )
----
18

query I rowsort
SELECT 61 * 43 AS col1
----
2623

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8546
SELECT + 71 DIV - COUNT( * ) + 99
----
28

skipif mysql # not compatible
query I rowsort label-8546
SELECT + 71 / - COUNT ( * ) + 99
----
28

query I rowsort
SELECT - 83 * 69 - - ( 0 )
----
-5727

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8548
SELECT 77 + + - CAST( NULL AS SIGNED ) + + NULLIF ( COALESCE ( - 56, 99 / + 75 * + CAST( NULL AS SIGNED ) + + 49 ), + COUNT( * ) / - + COUNT( * ) ) * ( COUNT( * ) ) + - + 52 * 98 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8548
SELECT 77 + + - CAST ( NULL AS INTEGER ) + + NULLIF ( COALESCE ( - 56, 99 / + 75 * + CAST ( NULL AS INTEGER ) + + 49 ), + COUNT ( * ) / - + COUNT ( * ) ) * ( COUNT ( * ) ) + - + 52 * 98 AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8549
SELECT ALL COUNT( DISTINCT + NULLIF ( - + CAST( NULL AS SIGNED ), 25 ) ) * - + 45
----
0

skipif mysql # not compatible
query I rowsort label-8549
SELECT ALL COUNT ( DISTINCT + NULLIF ( - + CAST ( NULL AS INTEGER ), 25 ) ) * - + 45
----
0

query I rowsort
SELECT + 20 * - 44 + 34 AS col0
----
-846

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8552
SELECT CAST( NULL AS SIGNED ) + - 13 + - + ( + 89 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8552
SELECT CAST ( NULL AS INTEGER ) + - 13 + - + ( + 89 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8553
SELECT ALL - CASE - 1 WHEN + + COUNT( * ) THEN + 40 + - 1 - - + ( - 49 ) * - 55 * + - 5 WHEN + 68 THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-8553
SELECT ALL - CASE - 1 WHEN + + COUNT ( * ) THEN + 40 + - 1 - - + ( - 49 ) * - 55 * + - 5 WHEN + 68 THEN NULL ELSE NULL END
----
NULL

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

skipif mysql # not compatible
query I rowsort label-8554
SELECT ALL - - CASE - COUNT ( * ) WHEN 70 THEN + ( + ( - COUNT ( * ) ) ) END AS col1
----
NULL

query I rowsort
SELECT ALL - NULLIF ( - 32, + 83 * + 36 ) AS col2
----
32

query I rowsort
SELECT + COALESCE ( 86, + 7 + + 83 )
----
86

query I rowsort
SELECT - 43 * 4 + - + 86 AS col2
----
-258

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8558
SELECT - + 84 * - CAST( NULL AS SIGNED ) + - 21 * + COUNT( * ) * + - ( + + 22 ) + + - 77
----
NULL

skipif mysql # not compatible
query I rowsort label-8558
SELECT - + 84 * - CAST ( NULL AS INTEGER ) + - 21 * + COUNT ( * ) * + - ( + + 22 ) + + - 77
----
NULL

query I rowsort
SELECT 55 * + + 72 + 0
----
3960

query I rowsort
SELECT DISTINCT - NULLIF ( + + ( + 82 ), + 38 ) + - + 12 * + 18
----
-298

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8561
SELECT DISTINCT NULLIF ( - + MAX( 84 ), 62 + COUNT( * ) ) DIV COUNT( * ) + + - COALESCE ( - 61, 7 DIV - 12 ) AS col0, 81 + - 93 AS col0
----
-23
-12

skipif mysql # not compatible
query II rowsort label-8561
SELECT DISTINCT NULLIF ( - + MAX ( 84 ), 62 + COUNT ( * ) ) / COUNT ( * ) + + - COALESCE ( - 61, 7 / - 12 ) AS col0, 81 + - 93 AS col0
----
-23
-12

query I rowsort
SELECT DISTINCT + 72 + 48
----
120

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8563
SELECT DISTINCT + CASE + 78 WHEN + 11 THEN + NULLIF ( + 13, MIN( + 78 ) ) - 75 - - + 7 ELSE + COUNT( * ) - - ( 62 ) END * 2 DIV + 34 AS col0
----
3

skipif mysql # not compatible
query I rowsort label-8563
SELECT DISTINCT + CASE + 78 WHEN + 11 THEN + NULLIF ( + 13, MIN ( + 78 ) ) - 75 - - + 7 ELSE + COUNT ( * ) - - ( 62 ) END * 2 / + 34 AS col0
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8564
SELECT ALL + - 93 + + CAST( NULL AS SIGNED ) + + SUM( ALL 65 ) * + + 41 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8564
SELECT ALL + - 93 + + CAST ( NULL AS INTEGER ) + + SUM ( ALL 65 ) * + + 41 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8565
SELECT COUNT( 65 ) - + - 98 AS col2
----
99

skipif mysql # not compatible
query I rowsort label-8565
SELECT COUNT ( 65 ) - + - 98 AS col2
----
99

query II rowsort
SELECT - ( - 28 ) col0, - 61 * 71
----
28
-4331

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8567
SELECT 58 * - 15 + - 67 - + COUNT( * ) DIV + - CAST( - COUNT( * ) AS SIGNED ) AS col0
----
-938

skipif mysql # not compatible
query I rowsort label-8567
SELECT 58 * - 15 + - 67 - + COUNT ( * ) / + - CAST ( - COUNT ( * ) AS INTEGER ) AS col0
----
-938

onlyif mysql # aggregate syntax: 
query II rowsort label-8568
SELECT + COALESCE ( 93, 40 + - SUM( DISTINCT - 98 ) ) * + COUNT( * ) + + 14 AS col0, 48 AS col0
----
107
48

skipif mysql # not compatible
query II rowsort label-8568
SELECT + COALESCE ( 93, 40 + - SUM ( DISTINCT - 98 ) ) * + COUNT ( * ) + + 14 AS col0, 48 AS col0
----
107
48

onlyif mysql # aggregate syntax: 
query I rowsort label-8569
SELECT + 96 * - 93 * + COUNT( * )
----
-8928

skipif mysql # not compatible
query I rowsort label-8569
SELECT + 96 * - 93 * + COUNT ( * )
----
-8928

query I rowsort
SELECT DISTINCT + 41 + - + 83
----
-42

query II rowsort
SELECT ALL 38 col0, 56 * - 1 + + 63
----
38
7

query I rowsort
SELECT ALL + 96 - + 53 col1
----
43

query I rowsort
SELECT 71 - 13
----
58

onlyif mysql # DIV for integer division: 
query II rowsort label-8574
SELECT - 49 AS col2, ( + - 94 ) DIV + 40 + + 39 + + 54
----
-49
91

skipif mysql # not compatible
query II rowsort label-8574
SELECT - 49 AS col2, ( + - 94 ) / + 40 + + 39 + + 54
----
-49
91

query I rowsort
SELECT 61 * 89 AS col1
----
5429

query I rowsort
SELECT 96 * + 80
----
7680

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-8578
SELECT COUNT( * ) + + 45 AS col1
----
46

skipif mysql # not compatible
query I rowsort label-8578
SELECT COUNT ( * ) + + 45 AS col1
----
46

onlyif mysql # DIV for integer division: 
query I rowsort label-8579
SELECT 15 - - 95 DIV 76
----
16

skipif mysql # not compatible
query I rowsort label-8579
SELECT 15 - - 95 / 76
----
16

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

query II rowsort
SELECT ALL 16 col1, - 60
----
16
-60

query I rowsort
SELECT DISTINCT - 79 * - 61 * + - 8 * + 56 AS col2
----
-2158912

query I rowsort
SELECT DISTINCT - ( + 18 ) AS col1
----
-18

query I rowsort
SELECT DISTINCT 84 + 11 AS col1
----
95

query I rowsort
SELECT 92 - + - 6
----
98

query II rowsort
SELECT + 34 AS col1, 55 col1
----
34
55

onlyif mysql # DIV for integer division: 
query I rowsort label-8587
SELECT + 28 DIV - + 96 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-8587
SELECT + 28 / - + 96 AS col1
----
0

query I rowsort
SELECT 64 * - 54 + + ( - - 61 ) AS col1
----
-3395

onlyif mysql # aggregate syntax: 
query I rowsort label-8589
SELECT - 37 * - + MAX( ALL + 39 ) AS col2
----
1443

skipif mysql # not compatible
query I rowsort label-8589
SELECT - 37 * - + MAX ( ALL + 39 ) AS col2
----
1443

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

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

query I rowsort
SELECT ALL - + 11 AS col0
----
-11

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

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

query I rowsort
SELECT NULLIF ( 5, + 74 ) AS col1
----
5

onlyif mysql # DIV for integer division: 
query II rowsort label-8594
SELECT 98 DIV + 2 - 14 AS col0, 7
----
35
7

skipif mysql # not compatible
query II rowsort label-8594
SELECT 98 / + 2 - 14 AS col0, 7
----
35
7

onlyif mysql # aggregate syntax: 
query I rowsort label-8595
SELECT ALL - SUM( ALL - 49 ) col0
----
49

skipif mysql # not compatible
query I rowsort label-8595
SELECT ALL - SUM ( ALL - 49 ) col0
----
49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8596
SELECT + CAST( NULL AS SIGNED ) - 90 / - + 34 - - 67 * + 2 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8596
SELECT + CAST ( NULL AS INTEGER ) - 90 / - + 34 - - 67 * + 2 AS col0
----
NULL

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8598
SELECT DISTINCT 95 + - - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8598
SELECT DISTINCT 95 + - - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8599
SELECT ALL + 43 + - 46 + - 32 + - 40 + MAX( + + 45 ) AS col0
----
-30

skipif mysql # not compatible
query I rowsort label-8599
SELECT ALL + 43 + - 46 + - 32 + - 40 + MAX ( + + 45 ) AS col0
----
-30

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

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

query I rowsort
SELECT ALL - 68 + - ( - 74 ) AS col2
----
6

onlyif mysql # aggregate syntax: 
query II rowsort label-8602
SELECT + 83 + + COUNT( * ) + - - 32, + ( - - 42 ) AS col1
----
116
42

skipif mysql # not compatible
query II rowsort label-8602
SELECT + 83 + + COUNT ( * ) + - - 32, + ( - - 42 ) AS col1
----
116
42

onlyif mysql # aggregate syntax: 
query II rowsort label-8603
SELECT + 50, - COUNT( - 30 ) + - + MAX( - 91 ) * - MAX( DISTINCT 91 ) AS col2
----
50
-8282

skipif mysql # not compatible
query II rowsort label-8603
SELECT + 50, - COUNT ( - 30 ) + - + MAX ( - 91 ) * - MAX ( DISTINCT 91 ) AS col2
----
50
-8282

onlyif mysql # aggregate syntax: 
query II rowsort label-8604
SELECT - COUNT( 60 ) - + + 47 AS col0, + ( + ( - + COUNT( * ) ) ) * - - 22 AS col2
----
-48
-22

skipif mysql # not compatible
query II rowsort label-8604
SELECT - COUNT ( 60 ) - + + 47 AS col0, + ( + ( - + COUNT ( * ) ) ) * - - 22 AS col2
----
-48
-22

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8605
SELECT 13 * + 56 + 83 + - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8605
SELECT 13 * + 56 + 83 + - CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8606
SELECT 88 - + MAX( + 84 ) AS col2, SUM( 21 ) * + COUNT( ALL + 17 ) + + 7 * + COUNT( - 48 ) AS col2
----
4
28

skipif mysql # not compatible
query II rowsort label-8606
SELECT 88 - + MAX ( + 84 ) AS col2, SUM ( 21 ) * + COUNT ( ALL + 17 ) + + 7 * + COUNT ( - 48 ) AS col2
----
4
28

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

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

query II rowsort
SELECT - 67, + ( - 31 ) col0
----
-67
-31

onlyif mysql # DIV for integer division: 
query I rowsort label-8609
SELECT ALL + + 66 - + ( - 87 ) - - 67 DIV - - 48
----
154

skipif mysql # not compatible
query I rowsort label-8609
SELECT ALL + + 66 - + ( - 87 ) - - 67 / - - 48
----
154

query II rowsort
SELECT DISTINCT 34 AS col2, + 48
----
34
48

query I rowsort
SELECT ALL - 55 * + - 36
----
1980

query I rowsort
SELECT ALL 33 - - 88
----
121

onlyif mysql # DIV for integer division: 
query I rowsort label-8613
SELECT + 15 DIV + 34
----
0

skipif mysql # not compatible
query I rowsort label-8613
SELECT + 15 / + 34
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8614
SELECT - COALESCE ( + COUNT( 18 ), + 85 ) DIV 16 + + COUNT( * ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-8614
SELECT - COALESCE ( + COUNT ( 18 ), + 85 ) / 16 + + COUNT ( * ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8615
SELECT + COUNT( * ) + + 43
----
44

skipif mysql # not compatible
query I rowsort label-8615
SELECT + COUNT ( * ) + + 43
----
44

query I rowsort
SELECT ALL - 92 * - ( + + 92 )
----
8464

onlyif mysql # aggregate syntax: 
query II rowsort label-8617
SELECT DISTINCT MIN( ALL 81 ) AS col1, - 19 AS col0
----
81
-19

skipif mysql # not compatible
query II rowsort label-8617
SELECT DISTINCT MIN ( ALL 81 ) AS col1, - 19 AS col0
----
81
-19

query I rowsort
SELECT - 74 + + 47 AS col0
----
-27

query I rowsort
SELECT ALL COALESCE ( + 60, 6 )
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-8620
SELECT - 61 * MIN( ALL + + 35 )
----
-2135

skipif mysql # not compatible
query I rowsort label-8620
SELECT - 61 * MIN ( ALL + + 35 )
----
-2135

query I rowsort
SELECT ALL 67 * + + 6
----
402

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

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

query I rowsort
SELECT DISTINCT COALESCE ( - 6, 91 * + 51 + 91 ) AS col1
----
-6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8624
SELECT - 55 + + 26 + - - CAST( NULL AS SIGNED ) + - 30 * - + 89 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8624
SELECT - 55 + + 26 + - - CAST ( NULL AS INTEGER ) + - 30 * - + 89 col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8625
SELECT ALL + COUNT( * ) + + MIN( - 91 ) * - 64 AS col0
----
5825

skipif mysql # not compatible
query I rowsort label-8625
SELECT ALL + COUNT ( * ) + + MIN ( - 91 ) * - 64 AS col0
----
5825

query I rowsort
SELECT ( - ( - 99 ) )
----
99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8627
SELECT - 19 + + + CAST( AVG ( DISTINCT - 11 ) AS SIGNED ) + + + CAST( + MAX( DISTINCT NULLIF ( - 7, - 20 ) ) AS SIGNED ) * - COUNT( * ) AS col1
----
-23

skipif mysql # not compatible
query I rowsort label-8627
SELECT - 19 + + + CAST ( AVG ( DISTINCT - 11 ) AS INTEGER ) + + + CAST ( + MAX ( DISTINCT NULLIF ( - 7, - 20 ) ) AS INTEGER ) * - COUNT ( * ) AS col1
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-8628
SELECT - 36 * - 10 * + COUNT( * ) * - 26 - 83 AS col1
----
-9443

skipif mysql # not compatible
query I rowsort label-8628
SELECT - 36 * - 10 * + COUNT ( * ) * - 26 - 83 AS col1
----
-9443

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

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

query I rowsort
SELECT DISTINCT + - 40
----
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-8631
SELECT - - 77 + + MAX( DISTINCT - 11 ) AS col2
----
66

skipif mysql # not compatible
query I rowsort label-8631
SELECT - - 77 + + MAX ( DISTINCT - 11 ) AS col2
----
66

query I rowsort
SELECT ALL - + 94 * - - 82 + + + 53 AS col0
----
-7655

onlyif mysql # aggregate syntax: 
query II rowsort label-8633
SELECT + 22 * 35 + + COUNT( + 47 ) col0, + ( - - COUNT( * ) ) * COUNT( * ) + + 16
----
771
17

skipif mysql # not compatible
query II rowsort label-8633
SELECT + 22 * 35 + + COUNT ( + 47 ) col0, + ( - - COUNT ( * ) ) * COUNT ( * ) + + 16
----
771
17

onlyif mysql # DIV for integer division: 
query I rowsort label-8634
SELECT - 67 DIV - 79 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-8634
SELECT - 67 / - 79 AS col1
----
0

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

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

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

skipif mysql # not compatible
query I rowsort label-8636
SELECT ALL + 80 / + + 2 * COUNT ( * ) + + - ( CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8637
SELECT - 81 * COUNT( ALL ( 57 ) ) * - + 74 * + 2
----
11988

skipif mysql # not compatible
query I rowsort label-8637
SELECT - 81 * COUNT ( ALL ( 57 ) ) * - + 74 * + 2
----
11988

query I rowsort
SELECT + CASE WHEN 99 NOT BETWEEN NULL AND + - 42 * - 8 + - 70 + - 88 THEN + 93 ELSE NULL END
----
NULL

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

query I rowsort
SELECT ALL 26 * + - 12 - + - 22 + 12 - + 6 * + 61
----
-644

onlyif mysql # aggregate syntax: 
query I rowsort label-8641
SELECT + + 51 * + NULLIF ( - MAX( ALL - 27 ), - ( + ( + 5 ) ) / 69 * + - ( - 11 ) )
----
1377

skipif mysql # not compatible
query I rowsort label-8641
SELECT + + 51 * + NULLIF ( - MAX ( ALL - 27 ), - ( + ( + 5 ) ) / 69 * + - ( - 11 ) )
----
1377

query II rowsort
SELECT ALL + ( - 25 ), 55 + + 81 AS col2
----
-25
136

query I rowsort
SELECT + - 38 * + 44 + 75 * - 92 + + 60 + + - 11 * + 61 + - - 86
----
-9097

query I rowsort
SELECT ALL 34 * + 41
----
1394

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-8647
SELECT - CASE - ( - + COUNT( * ) ) WHEN + - 78 * 32 - - + 13 + - - COUNT( * ) + - 71 THEN - 68 + 18 WHEN + 6 THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-8647
SELECT - CASE - ( - + COUNT ( * ) ) WHEN + - 78 * 32 - - + 13 + - - COUNT ( * ) + - 71 THEN - 68 + 18 WHEN + 6 THEN NULL ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8648
SELECT + MAX( - 17 ) - - 41 + 23
----
47

skipif mysql # not compatible
query I rowsort label-8648
SELECT + MAX ( - 17 ) - - 41 + 23
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-8649
SELECT + 15 + - COUNT( * ) * 76
----
-61

skipif mysql # not compatible
query I rowsort label-8649
SELECT + 15 + - COUNT ( * ) * 76
----
-61

query II rowsort
SELECT 72, 22 AS col2
----
72
22

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8651
SELECT ALL MAX( ALL 52 ) / CAST( NULL AS SIGNED ) + + ( COUNT( * ) ), MIN( - + 89 ) + + + 24 + - + 96 - - 82 * + 64 col0
----
NULL
5087

skipif mysql # not compatible
query II rowsort label-8651
SELECT ALL MAX ( ALL 52 ) / CAST ( NULL AS INTEGER ) + + ( COUNT ( * ) ), MIN ( - + 89 ) + + + 24 + - + 96 - - 82 * + 64 col0
----
NULL
5087

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

query I rowsort
SELECT DISTINCT + 7 + 8
----
15

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8654
SELECT + 14 - - + 2 + + CAST( NULL AS SIGNED ) * - CASE + CASE + MAX( - 16 ) WHEN - 16 + 68 THEN 77 END WHEN - 97 * - - 32 THEN + 70 WHEN + - 79 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-8654
SELECT + 14 - - + 2 + + CAST ( NULL AS INTEGER ) * - CASE + CASE + MAX ( - 16 ) WHEN - 16 + 68 THEN 77 END WHEN - 97 * - - 32 THEN + 70 WHEN + - 79 THEN NULL END
----
NULL

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

skipif mysql # not compatible
query I rowsort label-8655
SELECT ALL COUNT ( * ) / 98
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8656
SELECT - 32 DIV - - 27
----
-1

skipif mysql # not compatible
query I rowsort label-8656
SELECT - 32 / - - 27
----
-1

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8657
SELECT + ( + 84 ) * CASE + 91 WHEN 50 + + 24 + - 41 + - + NULLIF ( 8, ( - + CAST( + - 83 AS DECIMAL ) ) ) * + - 41 THEN - + 23 * + 19 * 12 + 57 - + MIN( 73 ) + 22 * - 75 END col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8657
SELECT + ( + 84 ) * CASE + 91 WHEN 50 + + 24 + - 41 + - + NULLIF ( 8, ( - + CAST ( + - 83 AS REAL ) ) ) * + - 41 THEN - + 23 * + 19 * 12 + 57 - + MIN ( 73 ) + 22 * - 75 END col0
----
NULL

query I rowsort
SELECT ALL 14 + 86 + NULLIF ( - 17, + 33 + + 2 * + - 12 + + - 63 + + + 43 / 23 )
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-8659
SELECT + 19 * SUM( DISTINCT + - 19 )
----
-361

skipif mysql # not compatible
query I rowsort label-8659
SELECT + 19 * SUM ( DISTINCT + - 19 )
----
-361

query I rowsort
SELECT - 25 + 8 * - 1 + - + 81
----
-114

onlyif mysql # aggregate syntax: 
query I rowsort label-8661
SELECT - MAX( + + 87 ) * + + 11 AS col0
----
-957

skipif mysql # not compatible
query I rowsort label-8661
SELECT - MAX ( + + 87 ) * + + 11 AS col0
----
-957

onlyif mysql # aggregate syntax: 
query I rowsort label-8662
SELECT - COUNT( * ) + - COUNT( * ) AS col1
----
-2

skipif mysql # not compatible
query I rowsort label-8662
SELECT - COUNT ( * ) + - COUNT ( * ) AS col1
----
-2

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8664
SELECT DISTINCT + + 73, COUNT( * ) * 6 DIV - 35 AS col0
----
73
0

skipif mysql # not compatible
query II rowsort label-8664
SELECT DISTINCT + + 73, COUNT ( * ) * 6 / - 35 AS col0
----
73
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query III rowsort label-8665
SELECT DISTINCT + 30 AS col1, + 15 + + NULLIF ( - CAST( - 4 AS SIGNED ), + 34 + + + CAST( NULL AS DECIMAL ) ) * - 64 * - ( ( - + 61 ) ) * + CAST( NULL AS SIGNED ) + - CAST( NULL AS SIGNED ) AS col2, ( + 65 ) + - SUM( 74 ) AS col2
----
30
NULL
-9

skipif mysql # not compatible
query III rowsort label-8665
SELECT DISTINCT + 30 AS col1, + 15 + + NULLIF ( - CAST ( - 4 AS INTEGER ), + 34 + + + CAST ( NULL AS REAL ) ) * - 64 * - ( ( - + 61 ) ) * + CAST ( NULL AS INTEGER ) + - CAST ( NULL AS INTEGER ) AS col2, ( + 65 ) + - SUM ( 74 ) AS col2
----
30
NULL
-9

query I rowsort
SELECT + NULLIF ( + 75, + + ( NULLIF ( NULLIF ( + - 21, + COALESCE ( 73, - 96 * + 82 ) ), + 10 + 18 / - 11 * - 23 * 90 ) ) ) AS col0
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-8667
SELECT ALL + + CASE - MIN( - 70 ) WHEN - 89 THEN 81 WHEN ( 20 ) + 0 THEN NULL END * + 73 * + ( - AVG ( - 57 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-8667
SELECT ALL + + CASE - MIN ( - 70 ) WHEN - 89 THEN 81 WHEN ( 20 ) + 0 THEN NULL END * + 73 * + ( - AVG ( - 57 ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8668
SELECT - MIN( + 54 ) * NULLIF ( - + 55, + - 59 ) + + 76 AS col0
----
3046

skipif mysql # not compatible
query I rowsort label-8668
SELECT - MIN ( + 54 ) * NULLIF ( - + 55, + - 59 ) + + 76 AS col0
----
3046

query I rowsort
SELECT - + 40 * + 75 * - 26
----
78000

onlyif mysql # aggregate syntax: 
query II rowsort label-8670
SELECT DISTINCT + 18 * 56 + + 79, + COUNT( * ) AS col0
----
1087
1

skipif mysql # not compatible
query II rowsort label-8670
SELECT DISTINCT + 18 * 56 + + 79, + COUNT ( * ) AS col0
----
1087
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8671
SELECT ALL - + 74 - + COALESCE ( - 27, 79 ) + - 16 * - + COUNT( * ) - + 38
----
-69

skipif mysql # not compatible
query I rowsort label-8671
SELECT ALL - + 74 - + COALESCE ( - 27, 79 ) + - 16 * - + COUNT ( * ) - + 38
----
-69

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

query I rowsort
SELECT DISTINCT - - 41 AS col1
----
41

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8674
SELECT ALL - - CAST( - AVG ( + CAST( NULL AS DECIMAL ) ) AS SIGNED ) - 63 + + NULLIF ( - COALESCE ( CAST( + + 13 AS SIGNED ), + MAX( 48 ) ), 86 + - 48 ) + - 85 * COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8674
SELECT ALL - - CAST ( - AVG ( + CAST ( NULL AS REAL ) ) AS INTEGER ) - 63 + + NULLIF ( - COALESCE ( CAST ( + + 13 AS INTEGER ), + MAX ( 48 ) ), 86 + - 48 ) + - 85 * COUNT ( * ) AS col0
----
NULL

query II rowsort
SELECT ALL - 7 AS col0, 76 col1
----
-7
76

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

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

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

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

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8680
SELECT ALL + COUNT( * ) DIV COALESCE ( + + 54, + 57, 92 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-8680
SELECT ALL + COUNT ( * ) / COALESCE ( + + 54, + 57, 92 ) AS col1
----
0

query II rowsort
SELECT 70 + 95 AS col0, 19 col0
----
165
19

query II rowsort
SELECT COALESCE ( - 97, + 82 ) - 33, 85 + 73 AS col0
----
-130
158

onlyif mysql # aggregate syntax: 
query I rowsort label-8683
SELECT COUNT( * ) - - + 53 col0
----
54

skipif mysql # not compatible
query I rowsort label-8683
SELECT COUNT ( * ) - - + 53 col0
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-8684
SELECT ALL + 38 + - COUNT( + 97 ) * + 59
----
-21

skipif mysql # not compatible
query I rowsort label-8684
SELECT ALL + 38 + - COUNT ( + 97 ) * + 59
----
-21

onlyif mysql # aggregate syntax: 
query II rowsort label-8685
SELECT 49, 6 + - + COUNT( * ) AS col1
----
49
5

skipif mysql # not compatible
query II rowsort label-8685
SELECT 49, 6 + - + COUNT ( * ) AS col1
----
49
5

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

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

query II rowsort
SELECT ALL + 66 * 76 AS col2, + 4
----
5016
4

query I rowsort
SELECT 15 + 12 + - - ( - 77 ) AS col0
----
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-8689
SELECT DISTINCT MIN( ALL + 31 ) * + - 87
----
-2697

skipif mysql # not compatible
query I rowsort label-8689
SELECT DISTINCT MIN ( ALL + 31 ) * + - 87
----
-2697

query I rowsort
SELECT ALL 38 + - 17 * - 94 AS col2
----
1636

query I rowsort
SELECT ALL NULLIF ( + 99, - 0 * + 28 * + + 53 ) * + - 32 + 49 + - 7
----
-3126

onlyif mysql # aggregate syntax: 
query I rowsort label-8692
SELECT ( + ( - - CASE - - 51 WHEN + + 32 THEN NULL ELSE + 95 + + 39 END ) ) * 74 * - COALESCE ( + - 10, - + 24 * + 85 + - 56 / 63 ) - + + 1 + + - CASE + - 16 WHEN + COUNT( * ) + 0 THEN + COUNT( ALL 41 ) END + - 96
----
NULL

skipif mysql # not compatible
query I rowsort label-8692
SELECT ( + ( - - CASE - - 51 WHEN + + 32 THEN NULL ELSE + 95 + + 39 END ) ) * 74 * - COALESCE ( + - 10, - + 24 * + 85 + - 56 / 63 ) - + + 1 + + - CASE + - 16 WHEN + COUNT ( * ) + 0 THEN + COUNT ( ALL 41 ) END + - 96
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8693
SELECT ALL 76 AS col2, + COALESCE ( 26, + - MIN( 35 ) ) DIV - ( - + COALESCE ( - 51, + 42 ) ) + 56 AS col1
----
76
56

skipif mysql # not compatible
query II rowsort label-8693
SELECT ALL 76 AS col2, + COALESCE ( 26, + - MIN ( 35 ) ) / - ( - + COALESCE ( - 51, + 42 ) ) + 56 AS col1
----
76
56

onlyif mysql # aggregate syntax: 
query I rowsort label-8694
SELECT DISTINCT 37 + 12 * - CASE - 7 WHEN - - COUNT( * ) THEN NULL WHEN - 62 * - - 24 THEN COUNT( * ) / 93 * 38 - - 93 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-8694
SELECT DISTINCT 37 + 12 * - CASE - 7 WHEN - - COUNT ( * ) THEN NULL WHEN - 62 * - - 24 THEN COUNT ( * ) / 93 * 38 - - 93 ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8695
SELECT DISTINCT CAST( NULL AS SIGNED ) / + COALESCE ( - 86, 71, 85 - + 86 ) / + ( + 32 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8695
SELECT DISTINCT CAST ( NULL AS INTEGER ) / + COALESCE ( - 86, 71, 85 - + 86 ) / + ( + 32 )
----
NULL

query I rowsort
SELECT 24 + + 37
----
61

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

query I rowsort
SELECT DISTINCT + ( + 30 ) * - ( 7 ) AS col0
----
-210

query II rowsort
SELECT ALL 78, 46 col0
----
78
46

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-8701
SELECT - 30 DIV COALESCE ( + + 98, + 80 * + - 78 ) * + + 29 + - + 7 DIV 30 * - 54
----
0

skipif mysql # not compatible
query I rowsort label-8701
SELECT - 30 / COALESCE ( + + 98, + 80 * + - 78 ) * + + 29 + - + 7 / 30 * - 54
----
0

query I rowsort
SELECT ALL ( - 96 ) - - 16 + 67
----
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-8703
SELECT CASE 59 WHEN + + 56 + + + SUM( ALL - - 34 ) + - - 18 * - 93 THEN NULL WHEN 43 - + - 26 THEN + 89 END
----
NULL

skipif mysql # not compatible
query I rowsort label-8703
SELECT CASE 59 WHEN + + 56 + + + SUM ( ALL - - 34 ) + - - 18 * - 93 THEN NULL WHEN 43 - + - 26 THEN + 89 END
----
NULL

query I rowsort
SELECT 93 + ( 47 )
----
140

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8705
SELECT ALL - - 2 AS col0, - 50 * - CAST( + 62 AS SIGNED ) * + 96 * + 92 - - 70 * - 55 + 44 AS col2
----
2
27375394

skipif mysql # not compatible
query II rowsort label-8705
SELECT ALL - - 2 AS col0, - 50 * - CAST ( + 62 AS INTEGER ) * + 96 * + 92 - - 70 * - 55 + 44 AS col2
----
2
27375394

query I rowsort
SELECT - 72 * - 61
----
4392

onlyif mysql # aggregate syntax: 
query I rowsort label-8707
SELECT DISTINCT 42 * - COUNT( 37 ) + - COUNT( * ) AS col0
----
-43

skipif mysql # not compatible
query I rowsort label-8707
SELECT DISTINCT 42 * - COUNT ( 37 ) + - COUNT ( * ) AS col0
----
-43

query I rowsort
SELECT DISTINCT + 62 * + 58 + 54 + - 52 AS col2
----
3598

onlyif mysql # DIV for integer division: 
query I rowsort label-8709
SELECT + + 2 DIV 69 + + ( 40 )
----
40

skipif mysql # not compatible
query I rowsort label-8709
SELECT + + 2 / 69 + + ( 40 )
----
40

query I rowsort
SELECT - 13 + - 68 + + 14 * + 99 + + 90 AS col1
----
1395

query II rowsort
SELECT ALL - + 52, 63 col0
----
-52
63

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8712
SELECT - COALESCE ( + 77, + 5, + 52 * + CAST( 8 AS SIGNED ) )
----
-77

skipif mysql # not compatible
query I rowsort label-8712
SELECT - COALESCE ( + 77, + 5, + 52 * + CAST ( 8 AS INTEGER ) )
----
-77

query I rowsort
SELECT 65 * 91 + - - 67
----
5982

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

query II rowsort
SELECT + 47 AS col1, 56 AS col0
----
47
56

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8717
SELECT 33 * - 75 * - 74 + 8 / - - 31 * 44 * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8717
SELECT 33 * - 75 * - 74 + 8 / - - 31 * 44 * + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8718
SELECT COUNT( * ) + + 50 * NULLIF ( + + 79, 48 )
----
3951

skipif mysql # not compatible
query I rowsort label-8718
SELECT COUNT ( * ) + + 50 * NULLIF ( + + 79, 48 )
----
3951

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8721
SELECT DISTINCT + 52 + + COALESCE ( ( + 63 ), 6 * CASE COALESCE ( + - 13, - COUNT( * ) * + 42 ) WHEN + - 50 THEN NULL WHEN + CAST( NULL AS SIGNED ) + 17 THEN + 34 - - NULLIF ( NULLIF ( - 71, - 97 * + ( - 90 ) ), - - NULLIF ( + - 19, - 9 ) * - 15 + - 5 ) + 35 + 11 * - COALESCE ( - + 15, - 60 * - 82 * 49 ) END )
----
115

skipif mysql # not compatible
query I rowsort label-8721
SELECT DISTINCT + 52 + + COALESCE ( ( + 63 ), 6 * CASE COALESCE ( + - 13, - COUNT ( * ) * + 42 ) WHEN + - 50 THEN NULL WHEN + CAST ( NULL AS INTEGER ) + 17 THEN + 34 - - NULLIF ( NULLIF ( - 71, - 97 * + ( - 90 ) ), - - NULLIF ( + - 19, - 9 ) * - 15 + - 5 ) + 35 + 11 * - COALESCE ( - + 15, - 60 * - 82 * 49 ) END )
----
115

onlyif mysql # aggregate syntax: 
query I rowsort label-8722
SELECT ALL + 6 + COUNT( ALL + 15 ) + + 33
----
40

skipif mysql # not compatible
query I rowsort label-8722
SELECT ALL + 6 + COUNT ( ALL + 15 ) + + 33
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-8723
SELECT ALL + 34 * COUNT( - + ( CASE + 84 WHEN 36 THEN - - ( 95 ) ELSE NULL END ) ) * + 67 - - 14 + - 46
----
-32

skipif mysql # not compatible
query I rowsort label-8723
SELECT ALL + 34 * COUNT ( - + ( CASE + 84 WHEN 36 THEN - - ( 95 ) ELSE NULL END ) ) * + 67 - - 14 + - 46
----
-32

query I rowsort
SELECT 61 * - 23 + + + 98
----
-1305

query I rowsort
SELECT ALL - ( 62 ) + + ( - - 81 ) col1
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-8726
SELECT 71 * - CASE + + 12 WHEN + - 76 THEN 47 WHEN + COUNT( * ) * MAX( ALL 86 ) * - 57 * + ( - COUNT( * ) ) THEN + + 40 END / - + MIN( DISTINCT - 46 ) - + 42
----
NULL

skipif mysql # not compatible
query I rowsort label-8726
SELECT 71 * - CASE + + 12 WHEN + - 76 THEN 47 WHEN + COUNT ( * ) * MAX ( ALL 86 ) * - 57 * + ( - COUNT ( * ) ) THEN + + 40 END / - + MIN ( DISTINCT - 46 ) - + 42
----
NULL

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

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

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

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

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

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

query II rowsort
SELECT ALL 67 + 94 AS col0, 90 col0
----
161
90

onlyif mysql # aggregate syntax: 
query I rowsort label-8731
SELECT DISTINCT - ( CASE + 98 WHEN 89 / + - ( ( - MAX( DISTINCT - 60 ) ) ) THEN NULL WHEN 10 THEN NULL ELSE 45 END ) - + - 10 + 31 * - 86 + 10
----
-2691

skipif mysql # not compatible
query I rowsort label-8731
SELECT DISTINCT - ( CASE + 98 WHEN 89 / + - ( ( - MAX ( DISTINCT - 60 ) ) ) THEN NULL WHEN 10 THEN NULL ELSE 45 END ) - + - 10 + 31 * - 86 + 10
----
-2691

query I rowsort
SELECT ALL 60 * - + 20 * + 32 AS col0
----
-38400

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8733
SELECT 40 - 47 col2, CASE + + 9 WHEN - + 45 THEN NULL ELSE - + CAST( NULL AS SIGNED ) END
----
-7
NULL

skipif mysql # not compatible
query II rowsort label-8733
SELECT 40 - 47 col2, CASE + + 9 WHEN - + 45 THEN NULL ELSE - + CAST ( NULL AS INTEGER ) END
----
-7
NULL

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

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

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

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

query I rowsort
SELECT + ( + - 73 ) AS col0
----
-73

query I rowsort
SELECT DISTINCT + 44 AS col1
----
44

onlyif mysql # DIV for integer division: 
query I rowsort label-8738
SELECT DISTINCT 73 - - 16 - + 42 + - 30 DIV - 55
----
47

skipif mysql # not compatible
query I rowsort label-8738
SELECT DISTINCT 73 - - 16 - + 42 + - 30 / - 55
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-8739
SELECT ALL + SUM( - ( 63 ) )
----
-63

skipif mysql # not compatible
query I rowsort label-8739
SELECT ALL + SUM ( - ( 63 ) )
----
-63

onlyif mysql # DIV for integer division: 
query I rowsort label-8740
SELECT + 74 DIV - 2 AS col2
----
-37

skipif mysql # not compatible
query I rowsort label-8740
SELECT + 74 / - 2 AS col2
----
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-8741
SELECT ALL ( 20 ) * + 48 - + COUNT( * )
----
959

skipif mysql # not compatible
query I rowsort label-8741
SELECT ALL ( 20 ) * + 48 - + COUNT ( * )
----
959

query I rowsort
SELECT DISTINCT + - 18
----
-18

query I rowsort
SELECT + + 77 - 57 AS col2
----
20

onlyif mysql # DIV for integer division: 
query I rowsort label-8744
SELECT + + 14 DIV + 37 col0
----
0

skipif mysql # not compatible
query I rowsort label-8744
SELECT + + 14 / + 37 col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8745
SELECT ALL + 76 * + MAX( 63 ) + + 12 + 12
----
4812

skipif mysql # not compatible
query I rowsort label-8745
SELECT ALL + 76 * + MAX ( 63 ) + + 12 + 12
----
4812

onlyif mysql # aggregate syntax: 
query II rowsort label-8746
SELECT + - 39 * COUNT( * ), 88 AS col0
----
-39
88

skipif mysql # not compatible
query II rowsort label-8746
SELECT + - 39 * COUNT ( * ), 88 AS col0
----
-39
88

onlyif mysql # DIV for integer division: 
query I rowsort label-8747
SELECT + + 11 * - 51 + 27 DIV - + 19 + - 74 DIV 58 DIV + 17
----
-562

skipif mysql # not compatible
query I rowsort label-8747
SELECT + + 11 * - 51 + 27 / - + 19 + - 74 / 58 / + 17
----
-562

query I rowsort
SELECT - 46 * + 41 col1
----
-1886

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8749
SELECT + COALESCE ( - + 78, - - 46 * - - COALESCE ( + ( + 50 ), - 56, - - CASE 75 WHEN + 36 DIV ( COALESCE ( ( 70 ), + 32, ( - + 11 ) ) ) + 79 * + 98 * CAST( NULL AS SIGNED ) * - CASE + - 18 WHEN 44 THEN - + 1 END * - - 46 THEN + 92 WHEN - + 67 THEN - - 77 ELSE NULL END ) DIV - - 66 - + 54 + + 17 - + + NULLIF ( + + 20, + 57 ), - 5 + + COUNT( * ) )
----
-78

skipif mysql # not compatible
query I rowsort label-8749
SELECT + COALESCE ( - + 78, - - 46 * - - COALESCE ( + ( + 50 ), - 56, - - CASE 75 WHEN + 36 / ( COALESCE ( ( 70 ), + 32, ( - + 11 ) ) ) + 79 * + 98 * CAST ( NULL AS INTEGER ) * - CASE + - 18 WHEN 44 THEN - + 1 END * - - 46 THEN + 92 WHEN - + 67 THEN - - 77 ELSE NULL END ) / - - 66 - + 54 + + 17 - + + NULLIF ( + + 20, + 57 ), - 5 + + COUNT ( * ) )
----
-78

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8750
SELECT + CAST( NULL AS SIGNED ) * + 42 * - 26 AS col0, COUNT( + 22 )
----
NULL
1

skipif mysql # not compatible
query II rowsort label-8750
SELECT + CAST ( NULL AS INTEGER ) * + 42 * - 26 AS col0, COUNT ( + 22 )
----
NULL
1

onlyif mysql # aggregate syntax: 
query II rowsort label-8751
SELECT ALL COUNT( * ) * - - 88 + + + SUM( DISTINCT + + 73 ) + + ( - + 3 ) AS col0, 97 * - 16
----
158
-1552

skipif mysql # not compatible
query II rowsort label-8751
SELECT ALL COUNT ( * ) * - - 88 + + + SUM ( DISTINCT + + 73 ) + + ( - + 3 ) AS col0, 97 * - 16
----
158
-1552

query I rowsort
SELECT DISTINCT 97 * - 62 + 67 * ( 30 ) AS col0
----
-4004

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-8753
SELECT ALL 68 * + - 71 * - MIN( DISTINCT + ( + + COALESCE ( - 49, - CAST( NULL AS SIGNED ), 91 ) ) ), + 98 DIV - 24 + + 7 AS col1
----
-236572
3

skipif mysql # not compatible
query II rowsort label-8753
SELECT ALL 68 * + - 71 * - MIN ( DISTINCT + ( + + COALESCE ( - 49, - CAST ( NULL AS INTEGER ), 91 ) ) ), + 98 / - 24 + + 7 AS col1
----
-236572
3

query I rowsort
SELECT + 39 + COALESCE ( 57, - 77 ) AS col2
----
96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8755
SELECT ALL 71 * + 65 + - CASE 45 WHEN 43 THEN - 8 END + - - 88 + - 18 + COUNT( * ) / - CAST( + ( + 50 ) AS SIGNED ) * COUNT( * ) * - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-8755
SELECT ALL 71 * + 65 + - CASE 45 WHEN 43 THEN - 8 END + - - 88 + - 18 + COUNT ( * ) / - CAST ( + ( + 50 ) AS INTEGER ) * COUNT ( * ) * - COUNT ( * )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8756
SELECT COUNT( ALL - ( + CAST( + 24 AS SIGNED ) ) ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-8756
SELECT COUNT ( ALL - ( + CAST ( + 24 AS INTEGER ) ) ) AS col2
----
1

query I rowsort
SELECT + NULLIF ( + - 60, - + 97 ) + + 44
----
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-8758
SELECT MIN( - 17 ) AS col2
----
-17

skipif mysql # not compatible
query I rowsort label-8758
SELECT MIN ( - 17 ) AS col2
----
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-8759
SELECT - 85 - MAX( ALL - + 39 )
----
-46

skipif mysql # not compatible
query I rowsort label-8759
SELECT - 85 - MAX ( ALL - + 39 )
----
-46

query I rowsort
SELECT ALL - ( - 63 ) * - 53 AS col1
----
-3339

query I rowsort
SELECT - 8 * - 63 * + 41 + 15
----
20679

onlyif mysql # aggregate syntax: 
query I rowsort label-8762
SELECT - SUM( + 11 ) - 89
----
-100

skipif mysql # not compatible
query I rowsort label-8762
SELECT - SUM ( + 11 ) - 89
----
-100

onlyif mysql # aggregate syntax: 
query I rowsort label-8763
SELECT DISTINCT - 85 * - MAX( - 79 )
----
-6715

skipif mysql # not compatible
query I rowsort label-8763
SELECT DISTINCT - 85 * - MAX ( - 79 )
----
-6715

query I rowsort
SELECT ALL 55 * + 89
----
4895

onlyif mysql # aggregate syntax: 
query I rowsort label-8765
SELECT - COUNT( * ) + ( 64 ) * - 83
----
-5313

skipif mysql # not compatible
query I rowsort label-8765
SELECT - COUNT ( * ) + ( 64 ) * - 83
----
-5313

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8766
SELECT ALL CASE - + 48 WHEN - 51 THEN NULL WHEN - + CAST( NULL AS SIGNED ) THEN + COUNT( * ) / + 93 + - + 22 - - - ( + - ( 88 ) ) + + 59 + + + 63 * + COUNT( 26 ) + 93 * - 3 + + 54 + - - 46 - - - ( + COUNT( * ) ) ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8766
SELECT ALL CASE - + 48 WHEN - 51 THEN NULL WHEN - + CAST ( NULL AS INTEGER ) THEN + COUNT ( * ) / + 93 + - + 22 - - - ( + - ( 88 ) ) + + 59 + + + 63 * + COUNT ( 26 ) + 93 * - 3 + + 54 + - - 46 - - - ( + COUNT ( * ) ) ELSE NULL END AS col2
----
NULL

query I rowsort
SELECT - 19 * 97
----
-1843

onlyif mysql # aggregate syntax: 
query II rowsort label-8768
SELECT ALL 90 AS col1, COUNT( * ) AS col2
----
90
1

skipif mysql # not compatible
query II rowsort label-8768
SELECT ALL 90 AS col1, COUNT ( * ) AS col2
----
90
1

query I rowsort
SELECT - 4 + + 54
----
50

query I rowsort
SELECT - - 50 * + 52 AS col2
----
2600

onlyif mysql # aggregate syntax: 
query II rowsort label-8771
SELECT - - 54 AS col0, COUNT( * ) + - 0 + - - COUNT( * ) + - - 52 - + - 44 * + NULLIF ( - 85, - 57 * - 44 ) col2
----
54
-3686

skipif mysql # not compatible
query II rowsort label-8771
SELECT - - 54 AS col0, COUNT ( * ) + - 0 + - - COUNT ( * ) + - - 52 - + - 44 * + NULLIF ( - 85, - 57 * - 44 ) col2
----
54
-3686

query I rowsort
SELECT - 18 + + + 21
----
3

onlyif mysql # aggregate syntax: 
query II rowsort label-8773
SELECT - - 56, MAX( ALL 16 ) * - - 94 * 78 AS col1
----
56
117312

skipif mysql # not compatible
query II rowsort label-8773
SELECT - - 56, MAX ( ALL 16 ) * - - 94 * 78 AS col1
----
56
117312

onlyif mysql # aggregate syntax: 
query I rowsort label-8774
SELECT + 92 + COUNT( * ) * ( 73 ) AS col2
----
165

skipif mysql # not compatible
query I rowsort label-8774
SELECT + 92 + COUNT ( * ) * ( 73 ) AS col2
----
165

query I rowsort
SELECT - 31 + + 20 * + 29
----
549

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8776
SELECT + - 53 * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8776
SELECT + - 53 * - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8777
SELECT ALL + COALESCE ( + 57, - 64 + MAX( ALL + 70 ) )
----
57

skipif mysql # not compatible
query I rowsort label-8777
SELECT ALL + COALESCE ( + 57, - 64 + MAX ( ALL + 70 ) )
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-8778
SELECT - + MIN( - 70 ) + + - COUNT( * ) AS col1
----
69

skipif mysql # not compatible
query I rowsort label-8778
SELECT - + MIN ( - 70 ) + + - COUNT ( * ) AS col1
----
69

query I rowsort
SELECT ALL - - 75 + + - 68 AS col2
----
7

query I rowsort
SELECT - 20 + - - 32
----
12

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8781
SELECT - NULLIF ( + 21, - - 25 * - + ( + 13 ) * - CAST( - 6 AS SIGNED ) + 88 + + 33 * - + 98 + + 15 + + 86 * 60 + + + 59 + - + COUNT( * ) ) + - - 54 + 4 + ( + 8 ) * - 61
----
-451

skipif mysql # not compatible
query I rowsort label-8781
SELECT - NULLIF ( + 21, - - 25 * - + ( + 13 ) * - CAST ( - 6 AS INTEGER ) + 88 + + 33 * - + 98 + + 15 + + 86 * 60 + + + 59 + - + COUNT ( * ) ) + - - 54 + 4 + ( + 8 ) * - 61
----
-451

query I rowsort
SELECT + 4 + 15 AS col0
----
19

query I rowsort
SELECT DISTINCT + + ( - 25 )
----
-25

onlyif mysql # aggregate syntax: 
query II rowsort label-8784
SELECT - 47 * + SUM( ALL + 51 ), + COUNT( * ) AS col2
----
-2397
1

skipif mysql # not compatible
query II rowsort label-8784
SELECT - 47 * + SUM ( ALL + 51 ), + COUNT ( * ) AS col2
----
-2397
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8785
SELECT ALL MIN( - 47 ) / - 83 + - + 85 + + ( + COUNT( DISTINCT - - 37 ) ) * ( CASE - 88 WHEN - COUNT( * ) + - 38 + 52 THEN + 26 END ) + 15 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8785
SELECT ALL MIN ( - 47 ) / - 83 + - + 85 + + ( + COUNT ( DISTINCT - - 37 ) ) * ( CASE - 88 WHEN - COUNT ( * ) + - 38 + 52 THEN + 26 END ) + 15 AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8786
SELECT DISTINCT + 71 DIV + - 37 + + + ( + COUNT( * ) ) col0
----
0

skipif mysql # not compatible
query I rowsort label-8786
SELECT DISTINCT + 71 / + - 37 + + + ( + COUNT ( * ) ) col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8787
SELECT DISTINCT 33 / + - COUNT( * ) + - + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8787
SELECT DISTINCT 33 / + - COUNT ( * ) + - + CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8788
SELECT - 86 DIV - - 48 + + MAX( 42 )
----
41

skipif mysql # not compatible
query I rowsort label-8788
SELECT - 86 / - - 48 + + MAX ( 42 )
----
41

onlyif mysql # aggregate syntax: 
query II rowsort label-8789
SELECT ALL + MIN( - + 30 ), - 30 AS col2
----
-30
-30

skipif mysql # not compatible
query II rowsort label-8789
SELECT ALL + MIN ( - + 30 ), - 30 AS col2
----
-30
-30

query I rowsort
SELECT + 15 + 23 * + 15 AS col1
----
360

onlyif mysql # aggregate syntax: 
query I rowsort label-8791
SELECT - COUNT( * ) * - - ( + 30 ) AS col1
----
-30

skipif mysql # not compatible
query I rowsort label-8791
SELECT - COUNT ( * ) * - - ( + 30 ) AS col1
----
-30

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8792
SELECT + CAST( - + CAST( + - 85 AS DECIMAL ) AS SIGNED )
----
85

skipif mysql # not compatible
query I rowsort label-8792
SELECT + CAST ( - + CAST ( + - 85 AS REAL ) AS INTEGER )
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-8793
SELECT + CASE - - 15 WHEN + 66 * + - NULLIF ( 85, 16 + + + 47 * 31 ) THEN 29 + + ( + 32 ) WHEN - ( - + COUNT( + 66 ) ) THEN - + COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-8793
SELECT + CASE - - 15 WHEN + 66 * + - NULLIF ( 85, 16 + + + 47 * 31 ) THEN 29 + + ( + 32 ) WHEN - ( - + COUNT ( + 66 ) ) THEN - + COUNT ( * ) END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8794
SELECT + 79 DIV - 90
----
0

skipif mysql # not compatible
query I rowsort label-8794
SELECT + 79 / - 90
----
0

query I rowsort
SELECT - 42 * + + 55 + + 61 * - NULLIF ( - 91, + 43 ) + 80
----
3321

query I rowsort
SELECT + 97 * - 28 * - - 7 AS col2
----
-19012

onlyif mysql # aggregate syntax: 
query I rowsort label-8797
SELECT DISTINCT - 45 * 30 - + COUNT( * ) + + + 71 + 22 * + 56 col2
----
-48

skipif mysql # not compatible
query I rowsort label-8797
SELECT DISTINCT - 45 * 30 - + COUNT ( * ) + + + 71 + 22 * + 56 col2
----
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-8798
SELECT ALL + MIN( 59 )
----
59

skipif mysql # not compatible
query I rowsort label-8798
SELECT ALL + MIN ( 59 )
----
59

query I rowsort
SELECT ALL + 66 col0
----
66

query I rowsort
SELECT - ( 20 )
----
-20

query I rowsort
SELECT COALESCE ( - 57, - + 1 )
----
-57

query I rowsort
SELECT - 95 * - 14
----
1330

query I rowsort
SELECT 36 * 33 AS col2
----
1188

query II rowsort
SELECT ( 99 ), 9 col1
----
99
9

onlyif mysql # DIV for integer division: 
query I rowsort label-8805
SELECT 2 DIV + 76 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-8805
SELECT 2 / + 76 AS col2
----
0

query I rowsort
SELECT ALL NULLIF ( - 12, + 39 ) AS col0
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-8807
SELECT - MIN( + 73 )
----
-73

skipif mysql # not compatible
query I rowsort label-8807
SELECT - MIN ( + 73 )
----
-73

query I rowsort
SELECT DISTINCT + 74 + 32 AS col1
----
106

query I rowsort
SELECT + 56 - - - 36 * + - 9 + + - 27 * + 73 * + 62 AS col2
----
-121822

query I rowsort
SELECT ALL 31 col1
----
31

query I rowsort
SELECT - 65 * 39 * + - 17 AS col2
----
43095

query I rowsort
SELECT DISTINCT + 8 + - 51 AS col0
----
-43

onlyif mysql # DIV for integer division: 
query I rowsort label-8813
SELECT + 32 DIV + 2 col0
----
16

skipif mysql # not compatible
query I rowsort label-8813
SELECT + 32 / + 2 col0
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-8814
SELECT NULLIF ( - - 76, + COUNT( * ) - + + 19 / + 99 ) * + + 51
----
3876

skipif mysql # not compatible
query I rowsort label-8814
SELECT NULLIF ( - - 76, + COUNT ( * ) - + + 19 / + 99 ) * + + 51
----
3876

query I rowsort
SELECT DISTINCT + 58 + - - 63 AS col0
----
121

onlyif mysql # aggregate syntax: 
query I rowsort label-8816
SELECT ALL - COUNT( * ) + - 71 * - 10 + 6 AS col0
----
715

skipif mysql # not compatible
query I rowsort label-8816
SELECT ALL - COUNT ( * ) + - 71 * - 10 + 6 AS col0
----
715

query I rowsort
SELECT 81 - - 56 * + 52 + + 40 AS col1
----
3033

query II rowsort
SELECT ALL + + 60 + + - 34, ( - - 40 ) AS col2
----
26
40

onlyif mysql # DIV for integer division: 
query I rowsort label-8819
SELECT 27 DIV - 31
----
0

skipif mysql # not compatible
query I rowsort label-8819
SELECT 27 / - 31
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8820
SELECT ALL 51 * COALESCE ( + CASE WHEN + 22 BETWEEN ( CAST( 53 AS SIGNED ) * + - NULLIF ( + - 34, + + CAST( NULL AS SIGNED ) + - 52 + 58 + + 21 * 27 ) + 15 * 31 ) AND - ( - 18 ) + - MAX( + ( - 77 ) ) * - 77 THEN COUNT( * ) - + - COALESCE ( + COUNT( * ), - 64, + 89 ) - - 23 WHEN + 84 / 94 + - + 54 + - + 23 IN ( 61 ) THEN - CAST( 68 AS SIGNED ) ELSE NULL END, 88 + - 25 * + 18, 28 + CAST( 51 AS SIGNED ), - SUM( - 14 ) * - 50 - + ( 76 ) ) col2
----
-18462

skipif mysql # not compatible
query I rowsort label-8820
SELECT ALL 51 * COALESCE ( + CASE WHEN + 22 BETWEEN ( CAST ( 53 AS INTEGER ) * + - NULLIF ( + - 34, + + CAST ( NULL AS INTEGER ) + - 52 + 58 + + 21 * 27 ) + 15 * 31 ) AND - ( - 18 ) + - MAX ( + ( - 77 ) ) * - 77 THEN COUNT ( * ) - + - COALESCE ( + COUNT ( * ), - 64, + 89 ) - - 23 WHEN + 84 / 94 + - + 54 + - + 23 IN ( 61 ) THEN - CAST ( 68 AS INTEGER ) ELSE NULL END, 88 + - 25 * + 18, 28 + CAST ( 51 AS INTEGER ), - SUM ( - 14 ) * - 50 - + ( 76 ) ) col2
----
-18462

query I rowsort
SELECT 86 + + 49
----
135

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-8822
SELECT ALL - 2 * + CAST( NULL AS SIGNED ) * - ( CASE - 5 WHEN NULLIF ( 21, + + 67 ) THEN NULL WHEN - - CAST( NULL AS SIGNED ) THEN - - NULLIF ( COALESCE ( - MIN( + 31 ), - ( + + 71 ) / + - ( - 15 ) ), - 6 ) ELSE NULL END ), - CAST( NULL AS DECIMAL )
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-8822
SELECT ALL - 2 * + CAST ( NULL AS INTEGER ) * - ( CASE - 5 WHEN NULLIF ( 21, + + 67 ) THEN NULL WHEN - - CAST ( NULL AS INTEGER ) THEN - - NULLIF ( COALESCE ( - MIN ( + 31 ), - ( + + 71 ) / + - ( - 15 ) ), - 6 ) ELSE NULL END ), - CAST ( NULL AS REAL )
----
NULL
NULL

query II rowsort
SELECT - 57 * - 29 + + - 6 AS col1, - 23
----
1647
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-8824
SELECT 15 + + - 79 + - + 59 * + 23 * - - COUNT( * ) AS col1
----
-1421

skipif mysql # not compatible
query I rowsort label-8824
SELECT 15 + + - 79 + - + 59 * + 23 * - - COUNT ( * ) AS col1
----
-1421

onlyif mysql # aggregate syntax: 
query I rowsort label-8825
SELECT ALL - COUNT( * ) * + COUNT( * ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-8825
SELECT ALL - COUNT ( * ) * + COUNT ( * ) AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8826
SELECT ALL + NULLIF ( + COUNT( * ), - 54 ) * - 24 * - + 1
----
24

skipif mysql # not compatible
query I rowsort label-8826
SELECT ALL + NULLIF ( + COUNT ( * ), - 54 ) * - 24 * - + 1
----
24

query I rowsort
SELECT 30 - - 8 + + - 41 * - 69
----
2867

query II rowsort
SELECT DISTINCT - 72 AS col0, 82 AS col0
----
-72
82

onlyif mysql # aggregate syntax: 
query I rowsort label-8829
SELECT ALL 37 * + COUNT( * )
----
37

skipif mysql # not compatible
query I rowsort label-8829
SELECT ALL 37 * + COUNT ( * )
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-8830
SELECT COUNT( * ) * - COUNT( - 11 ) * + 50
----
-50

skipif mysql # not compatible
query I rowsort label-8830
SELECT COUNT ( * ) * - COUNT ( - 11 ) * + 50
----
-50

query I rowsort
SELECT 20 + + 11
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-8832
SELECT COUNT( * ) + 25 AS col1
----
26

skipif mysql # not compatible
query I rowsort label-8832
SELECT COUNT ( * ) + 25 AS col1
----
26

query I rowsort
SELECT ALL 1 * + 60 col2
----
60

query I rowsort
SELECT 49 * + 81 + 98 AS col2
----
4067

query I rowsort
SELECT 75 - + - 48 AS col1
----
123

query I rowsort
SELECT 46 * - ( - - 35 )
----
-1610

query I rowsort
SELECT DISTINCT 39 * 60 + + 40 AS col2
----
2380

query I rowsort
SELECT ALL - NULLIF ( + 53, + + 16 ) AS col0
----
-53

query I rowsort
SELECT - + ( 72 )
----
-72

query I rowsort
SELECT ALL 83 * - 30
----
-2490

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8841
SELECT ALL - MAX( + 66 ) + + + COUNT( * ) DIV - 98 * 99 AS col2
----
-66

skipif mysql # not compatible
query I rowsort label-8841
SELECT ALL - MAX ( + 66 ) + + + COUNT ( * ) / - 98 * 99 AS col2
----
-66

query I rowsort
SELECT ALL 97 * - - 92
----
8924

query I rowsort
SELECT ALL 87 col0
----
87

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8844
SELECT - 98 AS col0, CAST( + 28 AS SIGNED )
----
-98
28

skipif mysql # not compatible
query II rowsort label-8844
SELECT - 98 AS col0, CAST ( + 28 AS INTEGER )
----
-98
28

onlyif mysql # aggregate syntax: 
query I rowsort label-8845
SELECT ALL - 70 + - + MIN( - 66 )
----
-4

skipif mysql # not compatible
query I rowsort label-8845
SELECT ALL - 70 + - + MIN ( - 66 )
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-8846
SELECT ALL 24 + - COUNT( * ) AS col1
----
23

skipif mysql # not compatible
query I rowsort label-8846
SELECT ALL 24 + - COUNT ( * ) AS col1
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-8847
SELECT DISTINCT + MAX( DISTINCT 62 ) AS col0
----
62

skipif mysql # not compatible
query I rowsort label-8847
SELECT DISTINCT + MAX ( DISTINCT 62 ) AS col0
----
62

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8848
SELECT NULLIF ( + 96, 7 + 94 ) + - - COUNT( * ) * - 27 + - CAST( - - ( NULLIF ( + MAX( + 1 ), + + 24 ) ) AS SIGNED ) * + 17 * + 26 col2
----
-373

skipif mysql # not compatible
query I rowsort label-8848
SELECT NULLIF ( + 96, 7 + 94 ) + - - COUNT ( * ) * - 27 + - CAST ( - - ( NULLIF ( + MAX ( + 1 ), + + 24 ) ) AS INTEGER ) * + 17 * + 26 col2
----
-373

query I rowsort
SELECT 73 + - 13 + - 98 AS col1
----
-38

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8850
SELECT + 90 + + - 39 + - 32 + - - 93 / - + CAST( NULL AS SIGNED ) * 38 * - 74 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8850
SELECT + 90 + + - 39 + - 32 + - - 93 / - + CAST ( NULL AS INTEGER ) * 38 * - 74 AS col1
----
NULL

query I rowsort
SELECT - + ( + 20 )
----
-20

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8852
SELECT ALL + - 8 + - 31 + - 39 DIV + COUNT( * )
----
-78

skipif mysql # not compatible
query I rowsort label-8852
SELECT ALL + - 8 + - 31 + - 39 / + COUNT ( * )
----
-78

query I rowsort
SELECT ALL NULLIF ( + 14, 10 )
----
14

query I rowsort
SELECT 96 + 53 AS col1
----
149

query I rowsort
SELECT - 57 * - + ( 82 ) AS col0
----
4674

query I rowsort
SELECT ALL COALESCE ( + - 56, 29 * + + 82 + 61 + + 79, - - 54 ) * - 51
----
2856

query I rowsort
SELECT 42 + 31 * + 25
----
817

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8858
SELECT - CASE - 99 WHEN + 84 * COUNT( * ) + 70 THEN - - 38 + 0 + COUNT( * ) / - CAST( NULL AS SIGNED ) * + + 42 WHEN + COUNT( * ) * - + 19 * + COUNT( * ) * - + 4 THEN NULL END + - 0 * + 5
----
NULL

skipif mysql # not compatible
query I rowsort label-8858
SELECT - CASE - 99 WHEN + 84 * COUNT ( * ) + 70 THEN - - 38 + 0 + COUNT ( * ) / - CAST ( NULL AS INTEGER ) * + + 42 WHEN + COUNT ( * ) * - + 19 * + COUNT ( * ) * - + 4 THEN NULL END + - 0 * + 5
----
NULL

query I rowsort
SELECT 31 + - - 80
----
111

onlyif mysql # aggregate syntax: 
query I rowsort label-8860
SELECT MAX( 21 ) AS col1
----
21

skipif mysql # not compatible
query I rowsort label-8860
SELECT MAX ( 21 ) AS col1
----
21

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8861
SELECT COUNT( * ) DIV + - 33 + + 68
----
68

skipif mysql # not compatible
query I rowsort label-8861
SELECT COUNT ( * ) / + - 33 + + 68
----
68

query I rowsort
SELECT 15 * - + 51 col1
----
-765

onlyif mysql # DIV for integer division: 
query I rowsort label-8863
SELECT 21 DIV - 95 col2
----
0

skipif mysql # not compatible
query I rowsort label-8863
SELECT 21 / - 95 col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8864
SELECT 44 * + 53 * - 40 + - SUM( 89 ) * 38
----
-96662

skipif mysql # not compatible
query I rowsort label-8864
SELECT 44 * + 53 * - 40 + - SUM ( 89 ) * 38
----
-96662

onlyif mysql # aggregate syntax: 
query I rowsort label-8865
SELECT DISTINCT - SUM( DISTINCT + 9 )
----
-9

skipif mysql # not compatible
query I rowsort label-8865
SELECT DISTINCT - SUM ( DISTINCT + 9 )
----
-9

query I rowsort
SELECT ALL + 81 * - + 44 AS col0
----
-3564

query II rowsort
SELECT DISTINCT - 88 AS col1, + 9
----
-88
9

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8868
SELECT ALL + 72 * + + 46, - COUNT( * ) * + - 92 DIV - - 59 AS col2
----
3312
1

skipif mysql # not compatible
query II rowsort label-8868
SELECT ALL + 72 * + + 46, - COUNT ( * ) * + - 92 / - - 59 AS col2
----
3312
1

query II rowsort
SELECT + 15, + 97 AS col0
----
15
97

query I rowsort
SELECT ALL + 54 * - 12 * + 71
----
-46008

onlyif mysql # aggregate syntax: 
query II rowsort label-8871
SELECT COUNT( * ) AS col0, + 6 + + + 76 - - 6 * + 15
----
1
172

skipif mysql # not compatible
query II rowsort label-8871
SELECT COUNT ( * ) AS col0, + 6 + + + 76 - - 6 * + 15
----
1
172

onlyif mysql # aggregate syntax: 
query I rowsort label-8872
SELECT DISTINCT COUNT( * ) * + 53 + - 82 * - COUNT( * ) AS col2
----
135

skipif mysql # not compatible
query I rowsort label-8872
SELECT DISTINCT COUNT ( * ) * + 53 + - 82 * - COUNT ( * ) AS col2
----
135

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8873
SELECT ALL + 20 AS col0, - 80 + - 72 DIV + - ( 23 ) * COUNT( * ) AS col0
----
20
-77

skipif mysql # not compatible
query II rowsort label-8873
SELECT ALL + 20 AS col0, - 80 + - 72 / + - ( 23 ) * COUNT ( * ) AS col0
----
20
-77

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8874
SELECT COUNT( * ), 4 DIV ( - 48 ) AS col2
----
1
0

skipif mysql # not compatible
query II rowsort label-8874
SELECT COUNT ( * ), 4 / ( - 48 ) AS col2
----
1
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-8875
SELECT ALL + 91 AS col0, 92 * + CAST( + - CASE - 86 WHEN CAST( + COUNT( * ) AS SIGNED ) * - + 10 + + 7 THEN + - 54 ELSE - 56 DIV + - 62 * - + 77 END AS SIGNED ) * + 94 DIV + SUM( - - 87 )
----
91
0

skipif mysql # not compatible
query II rowsort label-8875
SELECT ALL + 91 AS col0, 92 * + CAST ( + - CASE - 86 WHEN CAST ( + COUNT ( * ) AS INTEGER ) * - + 10 + + 7 THEN + - 54 ELSE - 56 / + - 62 * - + 77 END AS INTEGER ) * + 94 / + SUM ( - - 87 )
----
91
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8876
SELECT + 52 * - COUNT( * ) + - 16
----
-68

skipif mysql # not compatible
query I rowsort label-8876
SELECT + 52 * - COUNT ( * ) + - 16
----
-68

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8877
SELECT DISTINCT + CASE 25 WHEN + 62 THEN + COUNT( * ) WHEN + COUNT( * ) THEN - 67 END + - - CAST( 38 AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8877
SELECT DISTINCT + CASE 25 WHEN + 62 THEN + COUNT ( * ) WHEN + COUNT ( * ) THEN - 67 END + - - CAST ( 38 AS INTEGER ) AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8878
SELECT ALL - CAST( NULL AS SIGNED ) + 72 * + - 71 * + ( 73 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8878
SELECT ALL - CAST ( NULL AS INTEGER ) + 72 * + - 71 * + ( 73 ) AS col2
----
NULL

query I rowsort
SELECT + NULLIF ( + - 43, 46 ) * + 11
----
-473

query I rowsort
SELECT ALL + - 93 + - 55 AS col0
----
-148

query I rowsort
SELECT - ( - 25 ) AS col1
----
25

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8882
SELECT ALL - 25 DIV + + 95 AS col1, 56 * - - COUNT( * ) + - 61 * 43 * + 66 + + COUNT( * ) + + + 64 * + 42 AS col2
----
0
-170373

skipif mysql # not compatible
query II rowsort label-8882
SELECT ALL - 25 / + + 95 AS col1, 56 * - - COUNT ( * ) + - 61 * 43 * + 66 + + COUNT ( * ) + + + 64 * + 42 AS col2
----
0
-170373

query II rowsort
SELECT ALL - 98, 78 AS col0
----
-98
78

query II rowsort
SELECT - - 41, + 47 AS col1
----
41
47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8885
SELECT + CAST( - 87 AS SIGNED ) + 51 AS col1
----
-36

skipif mysql # not compatible
query I rowsort label-8885
SELECT + CAST ( - 87 AS INTEGER ) + 51 AS col1
----
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-8886
SELECT DISTINCT COUNT( * ) + + 33 col1
----
34

skipif mysql # not compatible
query I rowsort label-8886
SELECT DISTINCT COUNT ( * ) + + 33 col1
----
34

query II rowsort
SELECT + 27 AS col2, 62 AS col2
----
27
62

onlyif mysql # aggregate syntax: 
query I rowsort label-8888
SELECT ALL MIN( DISTINCT + 33 ) + - 74 AS col0
----
-41

skipif mysql # not compatible
query I rowsort label-8888
SELECT ALL MIN ( DISTINCT + 33 ) + - 74 AS col0
----
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-8889
SELECT ALL ( COUNT( * ) ) + COUNT( * )
----
2

skipif mysql # not compatible
query I rowsort label-8889
SELECT ALL ( COUNT ( * ) ) + COUNT ( * )
----
2

onlyif mysql # aggregate syntax: 
query II rowsort label-8890
SELECT - 78, COUNT( * ) * 30 * + - COUNT( * ) - + 82 + - 77 AS col0
----
-78
-189

skipif mysql # not compatible
query II rowsort label-8890
SELECT - 78, COUNT ( * ) * 30 * + - COUNT ( * ) - + 82 + - 77 AS col0
----
-78
-189

onlyif mysql # aggregate syntax: 
query I rowsort label-8891
SELECT ALL - COUNT( DISTINCT 61 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-8891
SELECT ALL - COUNT ( DISTINCT 61 ) AS col1
----
-1

query I rowsort
SELECT DISTINCT - 31 * - ( + 98 ) AS col1
----
3038

query I rowsort
SELECT + 41 * + 12 AS col1
----
492

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8894
SELECT ALL + COALESCE ( + + 85, + 99 ) DIV - COUNT( * ) AS col0
----
-85

skipif mysql # not compatible
query I rowsort label-8894
SELECT ALL + COALESCE ( + + 85, + 99 ) / - COUNT ( * ) AS col0
----
-85

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8895
SELECT ALL ( CAST( NULL AS SIGNED ) ) * - - ( CAST( NULL AS SIGNED ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8895
SELECT ALL ( CAST ( NULL AS INTEGER ) ) * - - ( CAST ( NULL AS INTEGER ) ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8896
SELECT - COUNT( * ) AS col2, - 26 AS col0
----
-1
-26

skipif mysql # not compatible
query II rowsort label-8896
SELECT - COUNT ( * ) AS col2, - 26 AS col0
----
-1
-26

query I rowsort
SELECT + - 17 * + 8
----
-136

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8898
SELECT CAST( + 31 AS SIGNED ) AS col1, SUM( + 86 )
----
31
86

skipif mysql # not compatible
query II rowsort label-8898
SELECT CAST ( + 31 AS INTEGER ) AS col1, SUM ( + 86 )
----
31
86

query I rowsort
SELECT ALL - ( + + 43 ) AS col2
----
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-8900
SELECT + 69 * + COUNT( * ) * + 41 AS col0
----
2829

skipif mysql # not compatible
query I rowsort label-8900
SELECT + 69 * + COUNT ( * ) * + 41 AS col0
----
2829

query I rowsort
SELECT ALL ( + - 87 ) - + 44
----
-131

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8902
SELECT + 74 - + ( 42 ) - CAST( NULL AS SIGNED ) * + 54 - + ( 56 ) - 62 * 97 * 20 * 56 * - - 90
----
NULL

skipif mysql # not compatible
query I rowsort label-8902
SELECT + 74 - + ( 42 ) - CAST ( NULL AS INTEGER ) * + 54 - + ( 56 ) - 62 * 97 * 20 * 56 * - - 90
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8903
SELECT DISTINCT ( MAX( - 51 ) ) * 11 - - - 30
----
-591

skipif mysql # not compatible
query I rowsort label-8903
SELECT DISTINCT ( MAX ( - 51 ) ) * 11 - - - 30
----
-591

onlyif mysql # aggregate syntax: 
query II rowsort label-8904
SELECT DISTINCT + ( - - 50 ) AS col1, 46 * + COUNT( * )
----
50
46

skipif mysql # not compatible
query II rowsort label-8904
SELECT DISTINCT + ( - - 50 ) AS col1, 46 * + COUNT ( * )
----
50
46

query I rowsort
SELECT + 97 * - 76
----
-7372

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8906
SELECT ALL + CAST( NULL AS SIGNED ) / - 36 + + 8
----
NULL

skipif mysql # not compatible
query I rowsort label-8906
SELECT ALL + CAST ( NULL AS INTEGER ) / - 36 + + 8
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8907
SELECT - NULLIF ( + 88, 47 ) * 23 / + 33 / 83 * ( + + AVG ( DISTINCT + 66 ) ) / 59 / - + 16 * - - 15 * + CAST( NULL AS SIGNED ) + + 61 + + COUNT( * ) AS col1, 38 col0
----
NULL
38

skipif mysql # not compatible
query II rowsort label-8907
SELECT - NULLIF ( + 88, 47 ) * 23 / + 33 / 83 * ( + + AVG ( DISTINCT + 66 ) ) / 59 / - + 16 * - - 15 * + CAST ( NULL AS INTEGER ) + + 61 + + COUNT ( * ) AS col1, 38 col0
----
NULL
38

query I rowsort
SELECT - 72 * - ( - + 83 )
----
-5976

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query III rowsort label-8909
SELECT - COUNT( * ) + - 76 + - + ( + + 40 ) + + NULLIF ( - 3, + - CAST( NULL AS SIGNED ) ), 19 * + COUNT( * ) * 10 * COUNT( ALL - 8 ) + 22 AS col1, - 68 DIV + - 77 AS col0
----
-120
212
0

skipif mysql # not compatible
query III rowsort label-8909
SELECT - COUNT ( * ) + - 76 + - + ( + + 40 ) + + NULLIF ( - 3, + - CAST ( NULL AS INTEGER ) ), 19 * + COUNT ( * ) * 10 * COUNT ( ALL - 8 ) + 22 AS col1, - 68 / + - 77 AS col0
----
-120
212
0

query I rowsort
SELECT ALL 41 * + - 33 + 41 AS col0
----
-1312

onlyif mysql # DIV for integer division: 
query II rowsort label-8911
SELECT DISTINCT - 95 DIV + 2 AS col2, 63
----
-47
63

skipif mysql # not compatible
query II rowsort label-8911
SELECT DISTINCT - 95 / + 2 AS col2, 63
----
-47
63

onlyif mysql # aggregate syntax: 
query I rowsort label-8912
SELECT DISTINCT COUNT( ALL - 1 ) * + - MIN( + 75 ) + + 74
----
-1

skipif mysql # not compatible
query I rowsort label-8912
SELECT DISTINCT COUNT ( ALL - 1 ) * + - MIN ( + 75 ) + + 74
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8913
SELECT DISTINCT + 21 * + + 47 + 83 - + + 64 * + - CAST( - - 40 AS SIGNED ) + 37, - COUNT( * ) AS col1
----
3667
-1

skipif mysql # not compatible
query II rowsort label-8913
SELECT DISTINCT + 21 * + + 47 + 83 - + + 64 * + - CAST ( - - 40 AS INTEGER ) + 37, - COUNT ( * ) AS col1
----
3667
-1

query I rowsort
SELECT ALL - 77 * - 83 col2
----
6391

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8915
SELECT + 50 * 84 - + 47 * + - CASE - COUNT( * ) WHEN - COUNT( * ) THEN NULL WHEN - CAST( - + SUM( + - 61 ) AS SIGNED ) THEN - + 39 WHEN + COUNT( * ) / + 10 * - - 43 * - - 21 + - + 41 + 89 THEN 1 * + 23 - + 42 * - COUNT( * ) - - 95 ELSE + + 83 / - - 77 * + CAST( NULL AS SIGNED ) * 57 + + - CAST( - 86 AS DECIMAL ) END + 63 + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8915
SELECT + 50 * 84 - + 47 * + - CASE - COUNT ( * ) WHEN - COUNT ( * ) THEN NULL WHEN - CAST ( - + SUM ( + - 61 ) AS INTEGER ) THEN - + 39 WHEN + COUNT ( * ) / + 10 * - - 43 * - - 21 + - + 41 + 89 THEN 1 * + 23 - + 42 * - COUNT ( * ) - - 95 ELSE + + 83 / - - 77 * + CAST ( NULL AS INTEGER ) * 57 + + - CAST ( - 86 AS REAL ) END + 63 + - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT DISTINCT + - 83 AS col2
----
-83

query II rowsort
SELECT 76 * - 91 * - - 75 + + 46 * + + 51, + ( + 18 ) AS col2
----
-516354
18

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8918
SELECT - - 65 + - - CAST( NULL AS SIGNED ) + - 64 * + ( + + 65 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8918
SELECT - - 65 + - - CAST ( NULL AS INTEGER ) + - 64 * + ( + + 65 ) AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8919
SELECT ALL 66 * + 58 + + 87 * + CAST( + 53 AS SIGNED ) * 38 + + 43 AS col0
----
179089

skipif mysql # not compatible
query I rowsort label-8919
SELECT ALL 66 * + 58 + + 87 * + CAST ( + 53 AS INTEGER ) * 38 + + 43 AS col0
----
179089

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8920
SELECT - CAST( 77 AS SIGNED ) + - 71 AS col0
----
-148

skipif mysql # not compatible
query I rowsort label-8920
SELECT - CAST ( 77 AS INTEGER ) + - 71 AS col0
----
-148

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8921
SELECT + AVG ( ALL - 63 ) + ( CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-8921
SELECT + AVG ( ALL - 63 ) + ( CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8922
SELECT + - COUNT( ALL + + 19 )
----
-1

skipif mysql # not compatible
query I rowsort label-8922
SELECT + - COUNT ( ALL + + 19 )
----
-1

query I rowsort
SELECT ALL - 83 * + 67 + NULLIF ( + 67, - 40 + + + 48 ) - - + 72 * + + 70
----
-454

query II rowsort
SELECT - - 24 * - 93 col1, 63 AS col0
----
-2232
63

onlyif mysql # aggregate syntax: 
query II rowsort label-8925
SELECT - - ( + 66 ), MAX( ALL - + 5 ) AS col2
----
66
-5

skipif mysql # not compatible
query II rowsort label-8925
SELECT - - ( + 66 ), MAX ( ALL - + 5 ) AS col2
----
66
-5

query I rowsort
SELECT ALL ( - - 64 ) AS col0
----
64

query I rowsort
SELECT - + ( 66 ) * + - ( - 60 ) * - 91 + ( + 63 )
----
360423

onlyif mysql # aggregate syntax: 
query I rowsort label-8928
SELECT - 87 + CASE - + 81 WHEN 29 + - + 57 / ( - CASE - COUNT( * ) WHEN 24 + 4 THEN NULL WHEN + - 83 THEN - 63 ELSE NULL END ) + - ( 32 ) * + - 4 THEN NULL WHEN - 85 + 86 THEN 43 + + NULLIF ( - 52, + + 52 ) + + - NULLIF ( - 50, NULLIF ( + 49, + + COUNT( * ) + 97 * - 63 ) ) + + 52 * - 39 + - + 71 ELSE + ( + COUNT( * ) ) END - - 49
----
-37

skipif mysql # not compatible
query I rowsort label-8928
SELECT - 87 + CASE - + 81 WHEN 29 + - + 57 / ( - CASE - COUNT ( * ) WHEN 24 + 4 THEN NULL WHEN + - 83 THEN - 63 ELSE NULL END ) + - ( 32 ) * + - 4 THEN NULL WHEN - 85 + 86 THEN 43 + + NULLIF ( - 52, + + 52 ) + + - NULLIF ( - 50, NULLIF ( + 49, + + COUNT ( * ) + 97 * - 63 ) ) + + 52 * - 39 + - + 71 ELSE + ( + COUNT ( * ) ) END - - 49
----
-37

onlyif mysql # DIV for integer division: 
query I rowsort label-8929
SELECT DISTINCT - 36 DIV 53 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-8929
SELECT DISTINCT - 36 / 53 AS col0
----
0

query II rowsort
SELECT + 70 - + - 56 AS col0, + 15
----
126
15

onlyif mysql # DIV for integer division: 
query I rowsort label-8931
SELECT + 75 DIV 2 * ( - 27 ) DIV 89 AS col1
----
-11

skipif mysql # not compatible
query I rowsort label-8931
SELECT + 75 / 2 * ( - 27 ) / 89 AS col1
----
-11

query I rowsort
SELECT - 14 + 73 + - ( - ( - + 4 ) ) + + - 40 * + CASE - 69 WHEN 99 * - 65 THEN - 92 END + + 39 - + 9 AS col2
----
NULL

query I rowsort
SELECT - + 48 col1
----
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-8934
SELECT ALL - CASE + COUNT( * ) WHEN + 33 THEN NULL WHEN 83 + 7 * - 95 THEN - + AVG ( + 94 ) END * + 50 / + 57 + - 49 * + - COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8934
SELECT ALL - CASE + COUNT ( * ) WHEN + 33 THEN NULL WHEN 83 + 7 * - 95 THEN - + AVG ( + 94 ) END * + 50 / + 57 + - 49 * + - COUNT ( * ) AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8935
SELECT DISTINCT - 71 DIV - - 40 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-8935
SELECT DISTINCT - 71 / - - 40 AS col2
----
-1

query I rowsort
SELECT + 74 + ( + 36 ) * 4
----
218

onlyif mysql # DIV for integer division: 
query I rowsort label-8937
SELECT + 33 DIV + + 61
----
0

skipif mysql # not compatible
query I rowsort label-8937
SELECT + 33 / + + 61
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8938
SELECT ALL - COUNT( * ) * + 81
----
-81

skipif mysql # not compatible
query I rowsort label-8938
SELECT ALL - COUNT ( * ) * + 81
----
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-8939
SELECT + COUNT( * ) + + COALESCE ( - 20, - 95 ) + NULLIF ( - 53, - 6 / + + 44 + + 52 ) col2
----
-72

skipif mysql # not compatible
query I rowsort label-8939
SELECT + COUNT ( * ) + + COALESCE ( - 20, - 95 ) + NULLIF ( - 53, - 6 / + + 44 + + 52 ) col2
----
-72

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8940
SELECT ALL AVG ( + CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-8940
SELECT ALL AVG ( + CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8941
SELECT - COUNT( * ), + MIN( - - CAST( NULL AS SIGNED ) ) / + 41 * - 71 AS col0
----
-1
NULL

skipif mysql # not compatible
query II rowsort label-8941
SELECT - COUNT ( * ), + MIN ( - - CAST ( NULL AS INTEGER ) ) / + 41 * - 71 AS col0
----
-1
NULL

query I rowsort
SELECT + 3 + 22 AS col1
----
25

onlyif mysql # aggregate syntax: 
query II rowsort label-8943
SELECT 48 AS col0, 30 * MIN( + + 46 ) AS col1
----
48
1380

skipif mysql # not compatible
query II rowsort label-8943
SELECT 48 AS col0, 30 * MIN ( + + 46 ) AS col1
----
48
1380

query I rowsort
SELECT 59 * + 7 * - 42
----
-17346

onlyif mysql # aggregate syntax: 
query I rowsort label-8945
SELECT ALL 85 + - COUNT( * ) col2
----
84

skipif mysql # not compatible
query I rowsort label-8945
SELECT ALL 85 + - COUNT ( * ) col2
----
84

query I rowsort
SELECT DISTINCT 20 + + 36 * + 17
----
632

query II rowsort
SELECT 67 AS col1, - NULLIF ( - - 56, 23 )
----
67
-56

onlyif mysql # DIV for integer division: 
query II rowsort label-8948
SELECT 49 * 68 * - 78 AS col1, + 48 + - + 39 DIV - 2
----
-259896
67

skipif mysql # not compatible
query II rowsort label-8948
SELECT 49 * 68 * - 78 AS col1, + 48 + - + 39 / - 2
----
-259896
67

query I rowsort
SELECT ALL 49 + 68
----
117

onlyif mysql # aggregate syntax: 
query II rowsort label-8950
SELECT + 65 AS col1, MAX( ALL + 22 ) AS col1
----
65
22

skipif mysql # not compatible
query II rowsort label-8950
SELECT + 65 AS col1, MAX ( ALL + 22 ) AS col1
----
65
22

onlyif mysql # aggregate syntax: 
query I rowsort label-8951
SELECT ALL 31 + CASE + COUNT( * ) WHEN 83 THEN NULL ELSE - 84 END * + 39 col0
----
-3245

skipif mysql # not compatible
query I rowsort label-8951
SELECT ALL 31 + CASE + COUNT ( * ) WHEN 83 THEN NULL ELSE - 84 END * + 39 col0
----
-3245

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8952
SELECT ALL - 0, ( 46 ) * - COALESCE ( - 73, - 98 * + + 41 DIV + - COUNT( * ) - + ( + 41 ), 10 ) * 82 + - COUNT( * ) + + 16 + - ( + 86 ) col1
----
0
275285

skipif mysql # not compatible
query II rowsort label-8952
SELECT ALL - 0, ( 46 ) * - COALESCE ( - 73, - 98 * + + 41 / + - COUNT ( * ) - + ( + 41 ), 10 ) * 82 + - COUNT ( * ) + + 16 + - ( + 86 ) col1
----
0
275285

query I rowsort
SELECT ALL - 91 + 14
----
-77

query I rowsort
SELECT 74 * + 94 AS col0
----
6956

onlyif mysql # aggregate syntax: 
query I rowsort label-8955
SELECT ALL 19 + COUNT( * )
----
20

skipif mysql # not compatible
query I rowsort label-8955
SELECT ALL 19 + COUNT ( * )
----
20

query II rowsort
SELECT + 26 AS col0, - 98 * - - 79 AS col0
----
26
-7742

onlyif mysql # aggregate syntax: 
query I rowsort label-8957
SELECT DISTINCT 36 * + COUNT( * )
----
36

skipif mysql # not compatible
query I rowsort label-8957
SELECT DISTINCT 36 * + COUNT ( * )
----
36

query I rowsort
SELECT ALL - 89 col1
----
-89

onlyif mysql # DIV for integer division: 
query I rowsort label-8959
SELECT - 60 DIV 95 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-8959
SELECT - 60 / 95 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8960
SELECT MAX( - 81 ) * + 22 + - 97 AS col1
----
-1879

skipif mysql # not compatible
query I rowsort label-8960
SELECT MAX ( - 81 ) * + 22 + - 97 AS col1
----
-1879

query I rowsort
SELECT + - ( - 16 )
----
16

query I rowsort
SELECT ALL - + CASE - - 30 WHEN + 32 THEN + + 37 * - 29 END AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8963
SELECT CAST( + COUNT( * ) AS SIGNED ) * + - 37 * 25
----
-925

skipif mysql # not compatible
query I rowsort label-8963
SELECT CAST ( + COUNT ( * ) AS INTEGER ) * + - 37 * 25
----
-925

onlyif mysql # DIV for integer division: 
query I rowsort label-8964
SELECT ALL - 42 DIV 28
----
-1

skipif mysql # not compatible
query I rowsort label-8964
SELECT ALL - 42 / 28
----
-1

query I rowsort
SELECT ALL - + 40 AS col1
----
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-8966
SELECT + 9 * - + COUNT( - 78 ) AS col1
----
-9

skipif mysql # not compatible
query I rowsort label-8966
SELECT + 9 * - + COUNT ( - 78 ) AS col1
----
-9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8967
SELECT - 5 * - - 34 * - 95 * + 0 + + AVG ( DISTINCT + + 20 ) * + + CASE - COUNT( * ) WHEN - CAST( NULL AS SIGNED ) + - + CAST( - 4 AS SIGNED ) / - 93 * + 7 THEN - 60 ELSE NULL END, 13 * + - ( 80 ) AS col2
----
NULL
-1040

skipif mysql # not compatible
query II rowsort label-8967
SELECT - 5 * - - 34 * - 95 * + 0 + + AVG ( DISTINCT + + 20 ) * + + CASE - COUNT ( * ) WHEN - CAST ( NULL AS INTEGER ) + - + CAST ( - 4 AS INTEGER ) / - 93 * + 7 THEN - 60 ELSE NULL END, 13 * + - ( 80 ) AS col2
----
NULL
-1040

query I rowsort
SELECT - ( - - CASE + - 94 WHEN + 95 THEN NULL WHEN 22 THEN NULL WHEN - 48 THEN + 23 ELSE NULL END ) * - 82 * - 38
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8969
SELECT 40 * COUNT( * )
----
40

skipif mysql # not compatible
query I rowsort label-8969
SELECT 40 * COUNT ( * )
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-8970
SELECT ALL - + 22 * COUNT( ALL - 29 ) * - + 50 + + + ( - COUNT( * ) ) * + - 43 col0
----
1143

skipif mysql # not compatible
query I rowsort label-8970
SELECT ALL - + 22 * COUNT ( ALL - 29 ) * - + 50 + + + ( - COUNT ( * ) ) * + - 43 col0
----
1143

onlyif mysql # aggregate syntax: 
query I rowsort label-8971
SELECT - MAX( ALL - 52 )
----
52

skipif mysql # not compatible
query I rowsort label-8971
SELECT - MAX ( ALL - 52 )
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-8972
SELECT - + COUNT( - 8 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-8972
SELECT - + COUNT ( - 8 ) AS col2
----
-1

query I rowsort
SELECT DISTINCT - ( - 53 )
----
53

query I rowsort
SELECT ( + - 78 ) * + - 38 + - 25 AS col1
----
2939

query I rowsort
SELECT DISTINCT 25 col2
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-8976
SELECT 40 * SUM( ALL - - 94 ) AS col0
----
3760

skipif mysql # not compatible
query I rowsort label-8976
SELECT 40 * SUM ( ALL - - 94 ) AS col0
----
3760

onlyif mysql # DIV for integer division: 
query I rowsort label-8977
SELECT DISTINCT 39 DIV - 31 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-8977
SELECT DISTINCT 39 / - 31 AS col1
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-8978
SELECT ALL + 85 + + 25 + - 14 DIV + 20 * - COALESCE ( + 89, + - 42 )
----
110

skipif mysql # not compatible
query I rowsort label-8978
SELECT ALL + 85 + + 25 + - 14 / + 20 * - COALESCE ( + 89, + - 42 )
----
110

query I rowsort
SELECT 21 - - 72 AS col1
----
93

query I rowsort
SELECT 30 * + 45
----
1350

query I rowsort
SELECT DISTINCT - 13 * + 18
----
-234

onlyif mysql # aggregate syntax: 
query I rowsort label-8982
SELECT ALL 38 * + + 78 * + COUNT( * ) AS col1
----
2964

skipif mysql # not compatible
query I rowsort label-8982
SELECT ALL 38 * + + 78 * + COUNT ( * ) AS col1
----
2964

query I rowsort
SELECT DISTINCT 96 + + + ( + 82 ) AS col2
----
178

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8984
SELECT DISTINCT - 68 + + 27 * + + 8 / + CASE - CAST( + - ( + 36 ) AS SIGNED ) WHEN - 64 THEN NULL WHEN + ( 27 ) THEN + + 95 / 52 - + 11 WHEN + - 21 THEN NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8984
SELECT DISTINCT - 68 + + 27 * + + 8 / + CASE - CAST ( + - ( + 36 ) AS INTEGER ) WHEN - 64 THEN NULL WHEN + ( 27 ) THEN + + 95 / 52 - + 11 WHEN + - 21 THEN NULL END AS col1
----
NULL

query I rowsort
SELECT ALL 31 + + 0 + 96 + + 66
----
193

query I rowsort
SELECT DISTINCT 90 + - - 27 * - ( + 26 )
----
-612

query I rowsort
SELECT ALL + 95 * + 29
----
2755

query I rowsort
SELECT 45 * COALESCE ( 40, 67, + 52 )
----
1800

query I rowsort
SELECT ALL 95 + - 71
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-8990
SELECT SUM( DISTINCT + 65 ) AS col0
----
65

skipif mysql # not compatible
query I rowsort label-8990
SELECT SUM ( DISTINCT + 65 ) AS col0
----
65

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8991
SELECT NULLIF ( COUNT( * ), + + 41 ) * - + COALESCE ( COUNT( * ), + 11 ) DIV NULLIF ( + 5, - 66 * - MIN( - - 95 ) ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-8991
SELECT NULLIF ( COUNT ( * ), + + 41 ) * - + COALESCE ( COUNT ( * ), + 11 ) / NULLIF ( + 5, - 66 * - MIN ( - - 95 ) ) AS col2
----
0

query I rowsort
SELECT ALL - + 41 AS col2
----
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-8993
SELECT DISTINCT - COUNT( * ) - - 85 AS col0
----
84

skipif mysql # not compatible
query I rowsort label-8993
SELECT DISTINCT - COUNT ( * ) - - 85 AS col0
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-8994
SELECT ALL COUNT( * ) * + 31 - 43
----
-12

skipif mysql # not compatible
query I rowsort label-8994
SELECT ALL COUNT ( * ) * + 31 - 43
----
-12

query I rowsort
SELECT 86 + - 56
----
30

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8996
SELECT ALL 63 DIV 27 DIV - 95 + NULLIF ( + + COUNT( * ), - + 31 ) * - + 11 * - 65
----
715

skipif mysql # not compatible
query I rowsort label-8996
SELECT ALL 63 / 27 / - 95 + NULLIF ( + + COUNT ( * ), - + 31 ) * - + 11 * - 65
----
715

onlyif mysql # aggregate syntax: 
query I rowsort label-8997
SELECT - 3 * ( - COALESCE ( - 39, NULLIF ( - 94, - + 19 ), 6 + - + COUNT( * ) ) ) + - MIN( 47 ) AS col0
----
-164

skipif mysql # not compatible
query I rowsort label-8997
SELECT - 3 * ( - COALESCE ( - 39, NULLIF ( - 94, - + 19 ), 6 + - + COUNT ( * ) ) ) + - MIN ( 47 ) AS col0
----
-164

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8998
SELECT + SUM( 27 ), 8 + - 32 + 56 - + - COALESCE ( + 64, 43 ) + + - 78 DIV + + 30 DIV + - ( - + COUNT( * ) ) + 82 * 31 DIV - 94 + + - 9 * 49 - 61 + + 19 AS col2
----
27
-416

skipif mysql # not compatible
query II rowsort label-8998
SELECT + SUM ( 27 ), 8 + - 32 + 56 - + - COALESCE ( + 64, 43 ) + + - 78 / + + 30 / + - ( - + COUNT ( * ) ) + 82 * 31 / - 94 + + - 9 * 49 - 61 + + 19 AS col2
----
27
-416

onlyif mysql # aggregate syntax: 
query I rowsort label-8999
SELECT - - 96 * - - ( + 38 ) + - - COUNT( * ) AS col0
----
3649

skipif mysql # not compatible
query I rowsort label-8999
SELECT - - 96 * - - ( + 38 ) + - - COUNT ( * ) AS col0
----
3649

onlyif mysql # aggregate syntax: 
query I rowsort label-9000
SELECT ALL 90 * - + COUNT( * ) * - - 9 col1
----
-810

skipif mysql # not compatible
query I rowsort label-9000
SELECT ALL 90 * - + COUNT ( * ) * - - 9 col1
----
-810

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9001
SELECT + 30 DIV CAST( - - 90 AS SIGNED )
----
0

skipif mysql # not compatible
query I rowsort label-9001
SELECT + 30 / CAST ( - - 90 AS INTEGER )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9002
SELECT CASE + ( + 37 ) WHEN + COUNT( * ) - - 24 + 37 THEN + COUNT( * ) END col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9002
SELECT CASE + ( + 37 ) WHEN + COUNT ( * ) - - 24 + 37 THEN + COUNT ( * ) END col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9003
SELECT + 87 * - 79 * CAST( NULL AS SIGNED ) + + 46
----
NULL

skipif mysql # not compatible
query I rowsort label-9003
SELECT + 87 * - 79 * CAST ( NULL AS INTEGER ) + + 46
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9004
SELECT 89 * - + 16 + - ( - 94 ) + - + 57 * + COUNT( * ) * 31 * + 69 AS col2
----
-123253

skipif mysql # not compatible
query I rowsort label-9004
SELECT 89 * - + 16 + - ( - 94 ) + - + 57 * + COUNT ( * ) * 31 * + 69 AS col2
----
-123253

onlyif mysql # aggregate syntax: 
query I rowsort label-9005
SELECT DISTINCT - MIN( DISTINCT - 51 ) AS col2
----
51

skipif mysql # not compatible
query I rowsort label-9005
SELECT DISTINCT - MIN ( DISTINCT - 51 ) AS col2
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-9006
SELECT ALL COUNT( * ) + 18 * + 86 * - + 64 + - 68 + - 96 * + + 92
----
-107971

skipif mysql # not compatible
query I rowsort label-9006
SELECT ALL COUNT ( * ) + 18 * + 86 * - + 64 + - 68 + - 96 * + + 92
----
-107971

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9007
SELECT + 15 + - - SUM( ALL 24 ), - 32 DIV + 55 * - + 33 AS col1
----
39
0

skipif mysql # not compatible
query II rowsort label-9007
SELECT + 15 + - - SUM ( ALL 24 ), - 32 / + 55 * - + 33 AS col1
----
39
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9008
SELECT - ( - - 65 ) - - COALESCE ( + ( + - COUNT( * ) ), + 86 )
----
-66

skipif mysql # not compatible
query I rowsort label-9008
SELECT - ( - - 65 ) - - COALESCE ( + ( + - COUNT ( * ) ), + 86 )
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-9009
SELECT - MIN( - 95 ) * + MIN( + - 53 ) * - 17 * - 63
----
-5392485

skipif mysql # not compatible
query I rowsort label-9009
SELECT - MIN ( - 95 ) * + MIN ( + - 53 ) * - 17 * - 63
----
-5392485

query I rowsort
SELECT ALL - 54 + + + 98
----
44

query I rowsort
SELECT - 61 + - 16 AS col1
----
-77

query I rowsort
SELECT DISTINCT 2 col1
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-9013
SELECT ALL CASE + ( - + SUM( 77 ) ) WHEN - 63 THEN + + 63 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-9013
SELECT ALL CASE + ( - + SUM ( 77 ) ) WHEN - 63 THEN + + 63 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9014
SELECT - 64, - COUNT( ALL + 57 ) * + - 2 + + 0 AS col1
----
-64
2

skipif mysql # not compatible
query II rowsort label-9014
SELECT - 64, - COUNT ( ALL + 57 ) * + - 2 + + 0 AS col1
----
-64
2

query I rowsort
SELECT - CASE - 96 WHEN 25 THEN NULL WHEN - 99 THEN + 84 ELSE NULL END + - 69 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9016
SELECT - COUNT( * ) * + 74
----
-74

skipif mysql # not compatible
query I rowsort label-9016
SELECT - COUNT ( * ) * + 74
----
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-9017
SELECT - ( - + ( + 28 ) ) * + COUNT( * )
----
28

skipif mysql # not compatible
query I rowsort label-9017
SELECT - ( - + ( + 28 ) ) * + COUNT ( * )
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-9018
SELECT + 84 + + 35 * - + 15 * - 92 * + 98 * + MAX( ALL + 24 ) AS col1
----
113601684

skipif mysql # not compatible
query I rowsort label-9018
SELECT + 84 + + 35 * - + 15 * - 92 * + 98 * + MAX ( ALL + 24 ) AS col1
----
113601684

query I rowsort
SELECT ALL NULLIF ( + - 70, - + 97 * + 28 * 72 + - 59 + - 37 )
----
-70

query I rowsort
SELECT ALL + 64 * - 65 AS col2
----
-4160

query I rowsort
SELECT ( - 95 ) col0
----
-95

query I rowsort
SELECT + 60 + - 80
----
-20

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9023
SELECT + ( - CAST( NULL AS SIGNED ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9023
SELECT + ( - CAST ( NULL AS INTEGER ) ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9024
SELECT ALL ( COUNT( * ) ) * 95 + + 73
----
168

skipif mysql # not compatible
query I rowsort label-9024
SELECT ALL ( COUNT ( * ) ) * 95 + + 73
----
168

onlyif mysql # aggregate syntax: 
query I rowsort label-9025
SELECT + MIN( ALL - 47 )
----
-47

skipif mysql # not compatible
query I rowsort label-9025
SELECT + MIN ( ALL - 47 )
----
-47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9026
SELECT DISTINCT + - 17 * ( CAST( NULL AS SIGNED ) ) / + 28 * + 16 / - 75 * + 91 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9026
SELECT DISTINCT + - 17 * ( CAST ( NULL AS INTEGER ) ) / + 28 * + 16 / - 75 * + 91 col0
----
NULL

query I rowsort
SELECT - - 51 * 54 AS col1
----
2754

onlyif mysql # aggregate syntax: 
query I rowsort label-9028
SELECT DISTINCT - NULLIF ( MAX( - 8 ), + + ( + 34 ) * + AVG ( ALL + - 66 ) * + + 79 * - 22 + 61 + - 9 ) * + 57 AS col1
----
456

skipif mysql # not compatible
query I rowsort label-9028
SELECT DISTINCT - NULLIF ( MAX ( - 8 ), + + ( + 34 ) * + AVG ( ALL + - 66 ) * + + 79 * - 22 + 61 + - 9 ) * + 57 AS col1
----
456

onlyif mysql # aggregate syntax: 
query II rowsort label-9029
SELECT + + COUNT( * ), COUNT( + 66 ) col1
----
1
1

skipif mysql # not compatible
query II rowsort label-9029
SELECT + + COUNT ( * ), COUNT ( + 66 ) col1
----
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9030
SELECT ALL + - COUNT( ALL ( 93 ) ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-9030
SELECT ALL + - COUNT ( ALL ( 93 ) ) AS col0
----
-1

query I rowsort
SELECT - 67 * - 74
----
4958

onlyif mysql # aggregate syntax: 
query I rowsort label-9032
SELECT DISTINCT + COUNT( * ) * + NULLIF ( 82, + COUNT( * ) ) + 99
----
181

skipif mysql # not compatible
query I rowsort label-9032
SELECT DISTINCT + COUNT ( * ) * + NULLIF ( 82, + COUNT ( * ) ) + 99
----
181

onlyif mysql # aggregate syntax: 
query I rowsort label-9033
SELECT ALL COUNT( * ) * 66 - + 12 AS col1
----
54

skipif mysql # not compatible
query I rowsort label-9033
SELECT ALL COUNT ( * ) * 66 - + 12 AS col1
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-9034
SELECT ALL + - MAX( DISTINCT 8 ) col0
----
-8

skipif mysql # not compatible
query I rowsort label-9034
SELECT ALL + - MAX ( DISTINCT 8 ) col0
----
-8

query II rowsort
SELECT 60 * - - 72 - - - 64, 6 AS col2
----
4256
6

query I rowsort
SELECT DISTINCT + + 66 * + 75 + - 80 * + 3 + - 2
----
4708

query I rowsort
SELECT ALL - 4 * - 82 + + 25 col2
----
353

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9038
SELECT + 15 * - + COUNT( * ) * ( + - 10 ) col1, 79 DIV + 74
----
150
1

skipif mysql # not compatible
query II rowsort label-9038
SELECT + 15 * - + COUNT ( * ) * ( + - 10 ) col1, 79 / + 74
----
150
1

query I rowsort
SELECT - NULLIF ( + 87, + - 60 + 59 )
----
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-9040
SELECT + 97 + - - 96 + - SUM( 13 ) AS col1
----
180

skipif mysql # not compatible
query I rowsort label-9040
SELECT + 97 + - - 96 + - SUM ( 13 ) AS col1
----
180

query I rowsort
SELECT DISTINCT 38 * - - 39 + - 87
----
1395

onlyif mysql # aggregate syntax: 
query II rowsort label-9042
SELECT ALL 86, - MAX( + 21 ) AS col2
----
86
-21

skipif mysql # not compatible
query II rowsort label-9042
SELECT ALL 86, - MAX ( + 21 ) AS col2
----
86
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-9043
SELECT ALL COUNT( * ) + - 58 + - - COUNT( * )
----
-56

skipif mysql # not compatible
query I rowsort label-9043
SELECT ALL COUNT ( * ) + - 58 + - - COUNT ( * )
----
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-9044
SELECT MIN( 66 )
----
66

skipif mysql # not compatible
query I rowsort label-9044
SELECT MIN ( 66 )
----
66

query I rowsort
SELECT ALL 56 + - - 88 AS col2
----
144

query I rowsort
SELECT + ( ( - 34 ) ) * + 0 - + 96 AS col1
----
-96

onlyif mysql # DIV for integer division: 
query I rowsort label-9047
SELECT + ( ( 38 ) ) DIV - 67
----
0

skipif mysql # not compatible
query I rowsort label-9047
SELECT + ( ( 38 ) ) / - 67
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9048
SELECT + SUM( + 93 ) + + + 89 * COUNT( * )
----
182

skipif mysql # not compatible
query I rowsort label-9048
SELECT + SUM ( + 93 ) + + + 89 * COUNT ( * )
----
182

query I rowsort
SELECT ALL 20 - + 24 AS col0
----
-4

query I rowsort
SELECT + 26 - 20 + 10 * - 97
----
-964

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9051
SELECT + 2 - - CAST( NULL AS SIGNED ) - - + 83 + 63 AS col1, + 52 * + + 12 + - 81 AS col2
----
NULL
543

skipif mysql # not compatible
query II rowsort label-9051
SELECT + 2 - - CAST ( NULL AS INTEGER ) - - + 83 + 63 AS col1, + 52 * + + 12 + - 81 AS col2
----
NULL
543

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9052
SELECT - CAST( - - 69 AS SIGNED ) AS col0
----
-69

skipif mysql # not compatible
query I rowsort label-9052
SELECT - CAST ( - - 69 AS INTEGER ) AS col0
----
-69

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9053
SELECT - 84 * 30 / - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9053
SELECT - 84 * 30 / - CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT DISTINCT + 78 * + + 91 * + + 10 AS col2
----
70980

query I rowsort
SELECT DISTINCT 19 - + 34 AS col0
----
-15

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9056
SELECT ALL + 35 * + CAST( - COUNT( * ) AS SIGNED ) * + 24 AS col1
----
-840

skipif mysql # not compatible
query I rowsort label-9056
SELECT ALL + 35 * + CAST ( - COUNT ( * ) AS INTEGER ) * + 24 AS col1
----
-840

query I rowsort
SELECT - - 65 - 87
----
-22

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9058
SELECT + CAST( - 45 AS SIGNED ) col2
----
-45

skipif mysql # not compatible
query I rowsort label-9058
SELECT + CAST ( - 45 AS INTEGER ) col2
----
-45

query II rowsort
SELECT ALL + + 45 AS col0, 2 AS col0
----
45
2

onlyif mysql # aggregate syntax: 
query II rowsort label-9060
SELECT + 80 AS col0, - COUNT( * )
----
80
-1

skipif mysql # not compatible
query II rowsort label-9060
SELECT + 80 AS col0, - COUNT ( * )
----
80
-1

query I rowsort
SELECT - 85 * + 3
----
-255

query I rowsort
SELECT - 29 + + + 65 col1
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-9063
SELECT ALL + - CASE - + 98 WHEN + 70 THEN 56 WHEN + 52 THEN NULL ELSE 3 + - MIN( DISTINCT + 19 ) END AS col2
----
16

skipif mysql # not compatible
query I rowsort label-9063
SELECT ALL + - CASE - + 98 WHEN + 70 THEN 56 WHEN + 52 THEN NULL ELSE 3 + - MIN ( DISTINCT + 19 ) END AS col2
----
16

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9064
SELECT + 31 * + + 71 + CASE 88 WHEN 64 THEN 22 ELSE + + SUM( - CAST( NULL AS SIGNED ) ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-9064
SELECT + 31 * + + 71 + CASE 88 WHEN 64 THEN 22 ELSE + + SUM ( - CAST ( NULL AS INTEGER ) ) END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9065
SELECT - CAST( NULL AS SIGNED ) - + 40 + - - 46 / + + 99
----
NULL

skipif mysql # not compatible
query I rowsort label-9065
SELECT - CAST ( NULL AS INTEGER ) - + 40 + - - 46 / + + 99
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9066
SELECT - 51 DIV - 5
----
10

skipif mysql # not compatible
query I rowsort label-9066
SELECT - 51 / - 5
----
10

onlyif mysql # DIV for integer division: 
query I rowsort label-9067
SELECT - + 58 DIV - 78 + + - 75 + + 98 + 58 AS col2
----
81

skipif mysql # not compatible
query I rowsort label-9067
SELECT - + 58 / - 78 + + - 75 + + 98 + 58 AS col2
----
81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9068
SELECT ALL 36 / - 40 - - - 4 / 48 + + 43 * - - CASE + - 20 WHEN 59 + - - COALESCE ( + + 2, - MIN( ( + - 28 ) ) + 68 * - + 71 + + 10 + + CAST( - 64 AS SIGNED ) * - + 91 ) THEN NULL WHEN - CASE COUNT( * ) WHEN + ( CAST( NULL AS DECIMAL ) ) THEN NULL WHEN + - 22 THEN - 75 + 92 ELSE NULL END * - - 35 THEN + - 64 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9068
SELECT ALL 36 / - 40 - - - 4 / 48 + + 43 * - - CASE + - 20 WHEN 59 + - - COALESCE ( + + 2, - MIN ( ( + - 28 ) ) + 68 * - + 71 + + 10 + + CAST ( - 64 AS INTEGER ) * - + 91 ) THEN NULL WHEN - CASE COUNT ( * ) WHEN + ( CAST ( NULL AS REAL ) ) THEN NULL WHEN + - 22 THEN - 75 + 92 ELSE NULL END * - - 35 THEN + - 64 END AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9069
SELECT DISTINCT - + 73 DIV - 3 + + + 19 AS col2
----
43

skipif mysql # not compatible
query I rowsort label-9069
SELECT DISTINCT - + 73 / - 3 + + + 19 AS col2
----
43

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9070
SELECT ALL - 37 DIV + SUM( - - 27 ) + - CASE + CASE + - 73 WHEN + COUNT( * ) THEN + - COUNT( * ) WHEN 79 THEN 96 END WHEN - + 9 + + CAST( NULL AS SIGNED ) * - + 22 + COUNT( * ) THEN - COUNT( * ) + - SUM( DISTINCT + 60 ) WHEN + 88 THEN NULL ELSE - 35 DIV 41 END * 92 + - ( + 43 ) + COUNT( * ) + - 27
----
-70

skipif mysql # not compatible
query I rowsort label-9070
SELECT ALL - 37 / + SUM ( - - 27 ) + - CASE + CASE + - 73 WHEN + COUNT ( * ) THEN + - COUNT ( * ) WHEN 79 THEN 96 END WHEN - + 9 + + CAST ( NULL AS INTEGER ) * - + 22 + COUNT ( * ) THEN - COUNT ( * ) + - SUM ( DISTINCT + 60 ) WHEN + 88 THEN NULL ELSE - 35 / 41 END * 92 + - ( + 43 ) + COUNT ( * ) + - 27
----
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-9071
SELECT ALL - 58 * + 12 * - COUNT( * ) AS col1
----
696

skipif mysql # not compatible
query I rowsort label-9071
SELECT ALL - 58 * + 12 * - COUNT ( * ) AS col1
----
696

onlyif mysql # aggregate syntax: 
query I rowsort label-9072
SELECT DISTINCT + - CASE ( + 74 ) WHEN - 58 THEN + + 79 END / + - 4 + - COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9072
SELECT DISTINCT + - CASE ( + 74 ) WHEN - 58 THEN + + 79 END / + - 4 + - COUNT ( * ) AS col0
----
NULL

query I rowsort
SELECT - + 89 + - + 31
----
-120

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-9074
SELECT ALL + CAST( NULL AS SIGNED ), - CASE + - 25 WHEN 61 * 45 - - + 88 THEN COUNT( * ) ELSE - 26 DIV + - NULLIF ( + 2, + - 81 ) + - 11 * + - 66 END * + - 23 AS col2
----
NULL
16997

skipif mysql # not compatible
query II rowsort label-9074
SELECT ALL + CAST ( NULL AS INTEGER ), - CASE + - 25 WHEN 61 * 45 - - + 88 THEN COUNT ( * ) ELSE - 26 / + - NULLIF ( + 2, + - 81 ) + - 11 * + - 66 END * + - 23 AS col2
----
NULL
16997

query I rowsort
SELECT ALL - 9 + - + 26 AS col2
----
-35

query I rowsort
SELECT + 45 * + 71
----
3195

onlyif mysql # aggregate syntax: 
query II rowsort label-9077
SELECT + 49 AS col0, 29 + MAX( ALL - 5 )
----
49
24

skipif mysql # not compatible
query II rowsort label-9077
SELECT + 49 AS col0, 29 + MAX ( ALL - 5 )
----
49
24

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-9078
SELECT CAST( NULL AS DECIMAL ) AS col1, - 34 * - + 61 - 71 * - - COUNT( * )
----
NULL
2003

skipif mysql # not compatible
query II rowsort label-9078
SELECT CAST ( NULL AS REAL ) AS col1, - 34 * - + 61 - 71 * - - COUNT ( * )
----
NULL
2003

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9079
SELECT 30 + 15 DIV - 68 * + 29 * MAX( + 84 )
----
30

skipif mysql # not compatible
query I rowsort label-9079
SELECT 30 + 15 / - 68 * + 29 * MAX ( + 84 )
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-9080
SELECT 69 + - COUNT( * ) * + - ( + 12 ) AS col1
----
81

skipif mysql # not compatible
query I rowsort label-9080
SELECT 69 + - COUNT ( * ) * + - ( + 12 ) AS col1
----
81

query I rowsort
SELECT DISTINCT - 82 col0
----
-82

query I rowsort
SELECT ALL - 20 col1
----
-20

query I rowsort
SELECT ALL 15 - - + 38 + + - 7 * + 6 AS col0
----
11

query I rowsort
SELECT DISTINCT 73 * - COALESCE ( + 46, + 46 ) AS col1
----
-3358

query I rowsort
SELECT ( ( - 59 ) ) * - 36 AS col1
----
2124

onlyif mysql # aggregate syntax: 
query I rowsort label-9086
SELECT ALL COUNT( * ) * + - 30
----
-30

skipif mysql # not compatible
query I rowsort label-9086
SELECT ALL COUNT ( * ) * + - 30
----
-30

query I rowsort
SELECT ALL 20 * - 59 AS col2
----
-1180

onlyif mysql # aggregate syntax: 
query I rowsort label-9088
SELECT ALL 79 - - CASE 58 WHEN + - COALESCE ( 5, 4 * - COUNT( * ) - + 88 / - 8 ) THEN 90 WHEN 19 THEN NULL ELSE - 62 * + - 40 END AS col2
----
2559

skipif mysql # not compatible
query I rowsort label-9088
SELECT ALL 79 - - CASE 58 WHEN + - COALESCE ( 5, 4 * - COUNT ( * ) - + 88 / - 8 ) THEN 90 WHEN 19 THEN NULL ELSE - 62 * + - 40 END AS col2
----
2559

onlyif mysql # aggregate syntax: 
query II rowsort label-9089
SELECT 55 + COUNT( * ), + CASE 17 WHEN + + 1 THEN - ( + 66 ) ELSE 33 END AS col0
----
56
33

skipif mysql # not compatible
query II rowsort label-9089
SELECT 55 + COUNT ( * ), + CASE 17 WHEN + + 1 THEN - ( + 66 ) ELSE 33 END AS col0
----
56
33

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9090
SELECT 58 * - COUNT( * ) DIV - CASE 34 WHEN + 67 * 84 THEN NULL ELSE - 95 - + 54 + MIN( 76 ) END
----
0

skipif mysql # not compatible
query I rowsort label-9090
SELECT 58 * - COUNT ( * ) / - CASE 34 WHEN + 67 * 84 THEN NULL ELSE - 95 - + 54 + MIN ( 76 ) END
----
0

query I rowsort
SELECT ALL 72 * - + CASE + 27 WHEN + + 21 THEN + 89 END
----
NULL

query I rowsort
SELECT 65 + - 91
----
-26

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9093
SELECT 84 * CAST( NULL AS SIGNED ) AS col1, 87 + - 16 col0
----
NULL
71

skipif mysql # not compatible
query II rowsort label-9093
SELECT 84 * CAST ( NULL AS INTEGER ) AS col1, 87 + - 16 col0
----
NULL
71

query I rowsort
SELECT 90 + 39 * - 34 col1
----
-1236

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9095
SELECT ( - COUNT( * ) ) + + 84 DIV + 60
----
0

skipif mysql # not compatible
query I rowsort label-9095
SELECT ( - COUNT ( * ) ) + + 84 / + 60
----
0

query I rowsort
SELECT DISTINCT 86 col1
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-9097
SELECT DISTINCT + MAX( ALL + - 71 )
----
-71

skipif mysql # not compatible
query I rowsort label-9097
SELECT DISTINCT + MAX ( ALL + - 71 )
----
-71

query I rowsort
SELECT NULLIF ( + 38, + 55 - + 12 ) * + 74 - 52 * 70 - 57 - + 23 col2
----
-908

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9099
SELECT 84 + + CAST( 51 AS SIGNED ) * 36 AS col2
----
1920

skipif mysql # not compatible
query I rowsort label-9099
SELECT 84 + + CAST ( 51 AS INTEGER ) * 36 AS col2
----
1920

query II rowsort
SELECT ALL 57 + - + 49 AS col0, 52 + + 11 - 60
----
8
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9101
SELECT MIN( ALL + - NULLIF ( - - 19, + ( + + 1 ) ) ) * + COUNT( * ) * - + 0 * 76 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9101
SELECT MIN ( ALL + - NULLIF ( - - 19, + ( + + 1 ) ) ) * + COUNT ( * ) * - + 0 * 76 AS col0
----
0

query I rowsort
SELECT ALL - 62 * + 40 + - 77 AS col1
----
-2557

onlyif mysql # aggregate syntax: 
query I rowsort label-9103
SELECT ALL + COUNT( * ) + 73 AS col2
----
74

skipif mysql # not compatible
query I rowsort label-9103
SELECT ALL + COUNT ( * ) + 73 AS col2
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-9104
SELECT ALL + + 8 + - COUNT( * ) + + - NULLIF ( COUNT( * ), COUNT( * ) ) * - ( 47 ) + + - 15
----
NULL

skipif mysql # not compatible
query I rowsort label-9104
SELECT ALL + + 8 + - COUNT ( * ) + + - NULLIF ( COUNT ( * ), COUNT ( * ) ) * - ( 47 ) + + - 15
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9105
SELECT DISTINCT - CAST( - - 88 AS SIGNED ) col1
----
-88

skipif mysql # not compatible
query I rowsort label-9105
SELECT DISTINCT - CAST ( - - 88 AS INTEGER ) col1
----
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-9106
SELECT 58 * ( - 17 ) + + - COUNT( * ) - - 7
----
-980

skipif mysql # not compatible
query I rowsort label-9106
SELECT 58 * ( - 17 ) + + - COUNT ( * ) - - 7
----
-980

query II rowsort
SELECT 9 * 23 AS col1, - 33
----
207
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-9108
SELECT ALL - + MIN( DISTINCT - ( - 58 ) )
----
-58

skipif mysql # not compatible
query I rowsort label-9108
SELECT ALL - + MIN ( DISTINCT - ( - 58 ) )
----
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-9109
SELECT + + CASE ( CASE WHEN NULL >= - 6 THEN + 49 ELSE - COUNT( * ) END ) WHEN + 7 THEN - CASE + 62 WHEN + + 10 THEN 44 / CASE + 49 WHEN 0 THEN NULL WHEN 32 THEN + + 25 * 66 ELSE 59 END ELSE + 28 END ELSE - - 55 END AS col1
----
55

skipif mysql # not compatible
query I rowsort label-9109
SELECT + + CASE ( CASE WHEN NULL >= - 6 THEN + 49 ELSE - COUNT ( * ) END ) WHEN + 7 THEN - CASE + 62 WHEN + + 10 THEN 44 / CASE + 49 WHEN 0 THEN NULL WHEN 32 THEN + + 25 * 66 ELSE 59 END ELSE + 28 END ELSE - - 55 END AS col1
----
55

query I rowsort
SELECT ( - 45 )
----
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-9111
SELECT DISTINCT + 22 - + - 3 * - COUNT( * ) + - + COUNT( * ) AS col0
----
18

skipif mysql # not compatible
query I rowsort label-9111
SELECT DISTINCT + 22 - + - 3 * - COUNT ( * ) + - + COUNT ( * ) AS col0
----
18

onlyif mysql # DIV for integer division: 
query I rowsort label-9112
SELECT 49 * 60 DIV - - 9
----
326

skipif mysql # not compatible
query I rowsort label-9112
SELECT 49 * 60 / - - 9
----
326

query I rowsort
SELECT ALL + 4 - - - 58 col1
----
-54

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9114
SELECT DISTINCT - CAST( - COUNT( * ) AS SIGNED ) * + 67 AS col2
----
67

skipif mysql # not compatible
query I rowsort label-9114
SELECT DISTINCT - CAST ( - COUNT ( * ) AS INTEGER ) * + 67 AS col2
----
67

query I rowsort
SELECT DISTINCT + 23 - + 60 - + ( + ( + 14 ) ) + - 59
----
-110

query I rowsort
SELECT 75 * 17
----
1275

query I rowsort
SELECT 49 * + - 7
----
-343

onlyif mysql # DIV for integer division: 
query II rowsort label-9118
SELECT 16 AS col1, - 12 DIV - 8 AS col2
----
16
1

skipif mysql # not compatible
query II rowsort label-9118
SELECT 16 AS col1, - 12 / - 8 AS col2
----
16
1

onlyif mysql # DIV for integer division: 
query I rowsort label-9119
SELECT 94 DIV + - 78
----
-1

skipif mysql # not compatible
query I rowsort label-9119
SELECT 94 / + - 78
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9120
SELECT ALL MAX( ALL 7 ) AS col0
----
7

skipif mysql # not compatible
query I rowsort label-9120
SELECT ALL MAX ( ALL 7 ) AS col0
----
7

onlyif mysql # aggregate syntax: 
query II rowsort label-9121
SELECT COUNT( * ) + + 58 * 7 col2, + 63 AS col0
----
407
63

skipif mysql # not compatible
query II rowsort label-9121
SELECT COUNT ( * ) + + 58 * 7 col2, + 63 AS col0
----
407
63

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9122
SELECT 3 * - COALESCE ( 75, 33 DIV + 83 + - + MAX( ALL + 54 ) + 49 ) AS col2, MAX( ALL - - 44 ) * 86 AS col2
----
-225
3784

skipif mysql # not compatible
query II rowsort label-9122
SELECT 3 * - COALESCE ( 75, 33 / + 83 + - + MAX ( ALL + 54 ) + 49 ) AS col2, MAX ( ALL - - 44 ) * 86 AS col2
----
-225
3784

onlyif mysql # aggregate syntax: 
query I rowsort label-9123
SELECT DISTINCT MIN( 6 )
----
6

skipif mysql # not compatible
query I rowsort label-9123
SELECT DISTINCT MIN ( 6 )
----
6

query II rowsort
SELECT ALL 8, + 89 AS col0
----
8
89

query I rowsort
SELECT 93 * 66 AS col2
----
6138

query I rowsort
SELECT ALL 19 * 70 col1
----
1330

query II rowsort
SELECT ALL 72 col0, ( 38 ) * - + 95
----
72
-3610

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9128
SELECT + 9, + 86 + - CAST( NULL AS SIGNED ) + - MAX( DISTINCT + 85 ) AS col2
----
9
NULL

skipif mysql # not compatible
query II rowsort label-9128
SELECT + 9, + 86 + - CAST ( NULL AS INTEGER ) + - MAX ( DISTINCT + 85 ) AS col2
----
9
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9129
SELECT - + SUM( ALL - 3 ) AS col0
----
3

skipif mysql # not compatible
query I rowsort label-9129
SELECT - + SUM ( ALL - 3 ) AS col0
----
3

query II rowsort
SELECT 40 col2, - 94 * - 60 * + 20 * + 57 + + - NULLIF ( - 34, + 79 * + 26 ) AS col2
----
40
6429634

query II rowsort
SELECT ( - 40 ) + + - 15, + ( - 6 ) * + 57 col2
----
-55
-342

query I rowsort
SELECT ( - 50 ) AS col0
----
-50

onlyif mysql # DIV for integer division: 
query I rowsort label-9133
SELECT + 24 DIV 25 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-9133
SELECT + 24 / 25 AS col1
----
0

query I rowsort
SELECT ALL + 2 + - 60
----
-58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9135
SELECT DISTINCT - - 31 * - CAST( NULL AS SIGNED ) + + + 53
----
NULL

skipif mysql # not compatible
query I rowsort label-9135
SELECT DISTINCT - - 31 * - CAST ( NULL AS INTEGER ) + + + 53
----
NULL

query II rowsort
SELECT DISTINCT 49 AS col1, 13
----
49
13

query I rowsort
SELECT ALL 91 + - ( - 13 ) * 10 + 22
----
243

query I rowsort
SELECT 55 - + - 78
----
133

query I rowsort
SELECT + + 62 + - 51 AS col0
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-9140
SELECT + MAX( DISTINCT - 0 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-9140
SELECT + MAX ( DISTINCT - 0 ) AS col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9141
SELECT DISTINCT + CASE + - 83 WHEN + + ( + 77 ) THEN + + SUM( ALL - 64 ) WHEN - CAST( - - 54 AS SIGNED ) THEN + ( + - 19 ) ELSE + - 93 END AS col0
----
-93

skipif mysql # not compatible
query I rowsort label-9141
SELECT DISTINCT + CASE + - 83 WHEN + + ( + 77 ) THEN + + SUM ( ALL - 64 ) WHEN - CAST ( - - 54 AS INTEGER ) THEN + ( + - 19 ) ELSE + - 93 END AS col0
----
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-9142
SELECT - 72 * 69 + + - COUNT( * ) + + + 56
----
-4913

skipif mysql # not compatible
query I rowsort label-9142
SELECT - 72 * 69 + + - COUNT ( * ) + + + 56
----
-4913

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9143
SELECT + - CAST( - ( COUNT( * ) ) AS SIGNED ) * + + MAX( ALL - 23 ) - + 21
----
-44

skipif mysql # not compatible
query I rowsort label-9143
SELECT + - CAST ( - ( COUNT ( * ) ) AS INTEGER ) * + + MAX ( ALL - 23 ) - + 21
----
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-9144
SELECT - + 6 - COUNT( * ) + + 88 * + 11 * - COUNT( * ) AS col2
----
-975

skipif mysql # not compatible
query I rowsort label-9144
SELECT - + 6 - COUNT ( * ) + + 88 * + 11 * - COUNT ( * ) AS col2
----
-975

onlyif mysql # DIV for integer division: 
query I rowsort label-9145
SELECT - 97 DIV - NULLIF ( + 71, - + 41 * - 92 ) + 54 + - 70
----
-15

skipif mysql # not compatible
query I rowsort label-9145
SELECT - 97 / - NULLIF ( + 71, - + 41 * - 92 ) + 54 + - 70
----
-15

query I rowsort
SELECT ALL 10 * - NULLIF ( 4, - + 48 ) AS col2
----
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-9147
SELECT ALL + COALESCE ( - MIN( - - 51 ), + 52 ) AS col0
----
-51

skipif mysql # not compatible
query I rowsort label-9147
SELECT ALL + COALESCE ( - MIN ( - - 51 ), + 52 ) AS col0
----
-51

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9148
SELECT + CAST( NULL AS SIGNED ) * + - 0 + + CAST( - 86 AS DECIMAL ) / + 73 - + ( - + 86 ) + + COUNT( * ) + - - COUNT( * ) * - 35
----
NULL

skipif mysql # not compatible
query I rowsort label-9148
SELECT + CAST ( NULL AS INTEGER ) * + - 0 + + CAST ( - 86 AS REAL ) / + 73 - + ( - + 86 ) + + COUNT ( * ) + - - COUNT ( * ) * - 35
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9149
SELECT 27 * - + CAST( COALESCE ( 90, + ( + 50 ) ) AS SIGNED ) * + 14 + AVG ( + 46 ) + CASE - 74 WHEN + 44 THEN 70 + COUNT( * ) + COUNT( * ) + - 21 + + CAST( NULL AS SIGNED ) + + 23 * - 93 ELSE NULL END * 60 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9149
SELECT 27 * - + CAST ( COALESCE ( 90, + ( + 50 ) ) AS INTEGER ) * + 14 + AVG ( + 46 ) + CASE - 74 WHEN + 44 THEN 70 + COUNT ( * ) + COUNT ( * ) + - 21 + + CAST ( NULL AS INTEGER ) + + 23 * - 93 ELSE NULL END * 60 AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9150
SELECT + ( + - 56 ) + 62 DIV - ( 10 ) * + COUNT( * ) + + - 1 AS col0, + COUNT( * ) AS col0
----
-63
1

skipif mysql # not compatible
query II rowsort label-9150
SELECT + ( + - 56 ) + 62 / - ( 10 ) * + COUNT ( * ) + + - 1 AS col0, + COUNT ( * ) AS col0
----
-63
1

query I rowsort
SELECT + ( - ( 92 ) ) col2
----
-92

query I rowsort
SELECT - 43 + + 53 * - 82 col1
----
-4389

onlyif mysql # aggregate syntax: 
query I rowsort label-9153
SELECT ALL + COUNT( * ) * - 17 AS col2
----
-17

skipif mysql # not compatible
query I rowsort label-9153
SELECT ALL + COUNT ( * ) * - 17 AS col2
----
-17

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9154
SELECT DISTINCT 96 DIV - 68 col2, COUNT( * ) AS col0
----
-1
1

skipif mysql # not compatible
query II rowsort label-9154
SELECT DISTINCT 96 / - 68 col2, COUNT ( * ) AS col0
----
-1
1

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9155
SELECT DISTINCT - SUM( - CAST( NULL AS DECIMAL ) ) * + 87 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9155
SELECT DISTINCT - SUM ( - CAST ( NULL AS REAL ) ) * + 87 AS col0
----
NULL

query I rowsort
SELECT - 25 + - - 67 AS col2
----
42

query I rowsort
SELECT ALL + 29 * + - 19 * - - 78 * - 98
----
4211844

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9158
SELECT + 95 * - CAST( NULL AS SIGNED ) AS col1, - 7
----
NULL
-7

skipif mysql # not compatible
query II rowsort label-9158
SELECT + 95 * - CAST ( NULL AS INTEGER ) AS col1, - 7
----
NULL
-7

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9159
SELECT - 1 + 3 AS col1, 22 * 1 DIV 39 * + COUNT( - + 57 ) AS col2
----
2
0

skipif mysql # not compatible
query II rowsort label-9159
SELECT - 1 + 3 AS col1, 22 * 1 / 39 * + COUNT ( - + 57 ) AS col2
----
2
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9160
SELECT DISTINCT - 56 * - COUNT( * ) AS col0
----
56

skipif mysql # not compatible
query I rowsort label-9160
SELECT DISTINCT - 56 * - COUNT ( * ) AS col0
----
56

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9161
SELECT ALL + COALESCE ( + 42, + 43 ) + - + COALESCE ( + 26, CAST( NULL AS SIGNED ) + - - 89 - + 94 ) AS col2
----
16

skipif mysql # not compatible
query I rowsort label-9161
SELECT ALL + COALESCE ( + 42, + 43 ) + - + COALESCE ( + 26, CAST ( NULL AS INTEGER ) + - - 89 - + 94 ) AS col2
----
16

query I rowsort
SELECT - 95 - + 4 col1
----
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-9163
SELECT + ( - COUNT( * ) ) + - - 1 + 59 + + 51 * + 18 AS col0
----
977

skipif mysql # not compatible
query I rowsort label-9163
SELECT + ( - COUNT ( * ) ) + - - 1 + 59 + + 51 * + 18 AS col0
----
977

onlyif mysql # aggregate syntax: 
query I rowsort label-9164
SELECT DISTINCT - - ( + 35 ) * COALESCE ( - COUNT( * ), ( + + 10 ), - + 68 * + 23 * + MIN( ALL - 33 ) )
----
-35

skipif mysql # not compatible
query I rowsort label-9164
SELECT DISTINCT - - ( + 35 ) * COALESCE ( - COUNT ( * ), ( + + 10 ), - + 68 * + 23 * + MIN ( ALL - 33 ) )
----
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-9165
SELECT ALL + COUNT( * ) + + 97 - + 1
----
97

skipif mysql # not compatible
query I rowsort label-9165
SELECT ALL + COUNT ( * ) + + 97 - + 1
----
97

query I rowsort
SELECT - 17 + + ( + 39 ) AS col1
----
22

query I rowsort
SELECT ALL 60 col0
----
60

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9168
SELECT DISTINCT + - 66 + + COUNT( * ) DIV + 11 AS col2
----
-66

skipif mysql # not compatible
query I rowsort label-9168
SELECT DISTINCT + - 66 + + COUNT ( * ) / + 11 AS col2
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-9169
SELECT - 45 + COUNT( * )
----
-44

skipif mysql # not compatible
query I rowsort label-9169
SELECT - 45 + COUNT ( * )
----
-44

query I rowsort
SELECT ALL + 71 + CASE + 11 WHEN 96 THEN - CASE + 17 WHEN + 7 THEN - + 45 ELSE - 65 END / 42 + - + 48 ELSE NULL END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9171
SELECT + + COUNT( * ) + ( - + 93 ) + 76 AS col1, + 15
----
-16
15

skipif mysql # not compatible
query II rowsort label-9171
SELECT + + COUNT ( * ) + ( - + 93 ) + 76 AS col1, + 15
----
-16
15

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9172
SELECT + - 85 * 51 * 16 DIV 88 col1, COALESCE ( + 21, + 33 DIV - COUNT( * ) + - - 74 ) * + 9
----
-788
189

skipif mysql # not compatible
query II rowsort label-9172
SELECT + - 85 * 51 * 16 / 88 col1, COALESCE ( + 21, + 33 / - COUNT ( * ) + - - 74 ) * + 9
----
-788
189

onlyif mysql # aggregate syntax: 
query I rowsort label-9173
SELECT DISTINCT + 80 * 36 - ( - MAX( ALL + - 23 ) ) - 46 AS col0
----
2811

skipif mysql # not compatible
query I rowsort label-9173
SELECT DISTINCT + 80 * 36 - ( - MAX ( ALL + - 23 ) ) - 46 AS col0
----
2811

query I rowsort
SELECT - - NULLIF ( - 27, + 0 * + 45 / 4 + + 97 )
----
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-9175
SELECT + + COUNT( * ) + + COUNT( * )
----
2

skipif mysql # not compatible
query I rowsort label-9175
SELECT + + COUNT ( * ) + + COUNT ( * )
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-9176
SELECT ALL 64 * + ( + COUNT( * ) ) * + 45
----
2880

skipif mysql # not compatible
query I rowsort label-9176
SELECT ALL 64 * + ( + COUNT ( * ) ) * + 45
----
2880

onlyif mysql # aggregate syntax: 
query I rowsort label-9177
SELECT - COUNT( * ) * + MAX( DISTINCT 30 ) AS col1
----
-30

skipif mysql # not compatible
query I rowsort label-9177
SELECT - COUNT ( * ) * + MAX ( DISTINCT 30 ) AS col1
----
-30

query I rowsort
SELECT DISTINCT + + 86
----
86

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9179
SELECT + SUM( + + 21 ) DIV ( - - 57 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9179
SELECT + SUM ( + + 21 ) / ( - - 57 ) AS col0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9180
SELECT ALL + 64 DIV COUNT( * ) + + 78 AS col2
----
142

skipif mysql # not compatible
query I rowsort label-9180
SELECT ALL + 64 / COUNT ( * ) + + 78 AS col2
----
142

query I rowsort
SELECT ALL + - ( - 65 ) AS col0
----
65

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9182
SELECT CAST( - - 70 AS SIGNED ) AS col2
----
70

skipif mysql # not compatible
query I rowsort label-9182
SELECT CAST ( - - 70 AS INTEGER ) AS col2
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-9183
SELECT ALL 59 / + 82 * 88 * + - 80 - 35 * 63 * + - COUNT( * ) * - 75 / - - COUNT( DISTINCT 15 ) - - CASE ( 71 ) WHEN COUNT( DISTINCT + + 45 ) THEN 88 END + + MAX( + 41 ) / + 57
----
NULL

skipif mysql # not compatible
query I rowsort label-9183
SELECT ALL 59 / + 82 * 88 * + - 80 - 35 * 63 * + - COUNT ( * ) * - 75 / - - COUNT ( DISTINCT 15 ) - - CASE ( 71 ) WHEN COUNT ( DISTINCT + + 45 ) THEN 88 END + + MAX ( + 41 ) / + 57
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9184
SELECT CAST( + 86 AS SIGNED )
----
86

skipif mysql # not compatible
query I rowsort label-9184
SELECT CAST ( + 86 AS INTEGER )
----
86

onlyif mysql # DIV for integer division: 
query I rowsort label-9185
SELECT ALL 97 DIV 44 AS col2
----
2

skipif mysql # not compatible
query I rowsort label-9185
SELECT ALL 97 / 44 AS col2
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-9186
SELECT + COALESCE ( - - 87, - 10 + + COUNT( * ) )
----
87

skipif mysql # not compatible
query I rowsort label-9186
SELECT + COALESCE ( - - 87, - 10 + + COUNT ( * ) )
----
87

onlyif mysql # aggregate syntax: 
query III rowsort label-9187
SELECT DISTINCT + 7, - COUNT( DISTINCT 76 ) AS col1, + 14 + + 21 * + 50 col0
----
7
-1
1064

skipif mysql # not compatible
query III rowsort label-9187
SELECT DISTINCT + 7, - COUNT ( DISTINCT 76 ) AS col1, + 14 + + 21 * + 50 col0
----
7
-1
1064

onlyif mysql # aggregate syntax: 
query I rowsort label-9188
SELECT DISTINCT 55 * + COUNT( * ) AS col0
----
55

skipif mysql # not compatible
query I rowsort label-9188
SELECT DISTINCT 55 * + COUNT ( * ) AS col0
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-9189
SELECT ALL - COALESCE ( + 65, - 73 ) * + 4 * + 11 - - COUNT( * ) + - - 42 + - 94
----
-2911

skipif mysql # not compatible
query I rowsort label-9189
SELECT ALL - COALESCE ( + 65, - 73 ) * + 4 * + 11 - - COUNT ( * ) + - - 42 + - 94
----
-2911

onlyif mysql # DIV for integer division: 
query II rowsort label-9190
SELECT + 84 - - 39 * 76 DIV 47 + + 51 AS col0, 18 + + + 39
----
198
57

skipif mysql # not compatible
query II rowsort label-9190
SELECT + 84 - - 39 * 76 / 47 + + 51 AS col0, 18 + + + 39
----
198
57

query II rowsort
SELECT ALL 90 * - 52 * + 92 AS col2, 84 + + 0 AS col0
----
-430560
84

query I rowsort
SELECT - 2 * + + 93 AS col2
----
-186

query I rowsort
SELECT + ( 48 )
----
48

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9194
SELECT NULLIF ( - + 72, + + NULLIF ( + + 96, - 51 ) * + CAST( + + 33 AS SIGNED ) + - 17 )
----
-72

skipif mysql # not compatible
query I rowsort label-9194
SELECT NULLIF ( - + 72, + + NULLIF ( + + 96, - 51 ) * + CAST ( + + 33 AS INTEGER ) + - 17 )
----
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-9195
SELECT DISTINCT + NULLIF ( + - 70, + COALESCE ( 68, 17 * 33 + - - 55 * - 83 * + - 66 * - + 92 ) + + 35 + - 55 ) * + MIN( DISTINCT + - 12 ) * + 54 + - 7 * - 97
----
46039

skipif mysql # not compatible
query I rowsort label-9195
SELECT DISTINCT + NULLIF ( + - 70, + COALESCE ( 68, 17 * 33 + - - 55 * - 83 * + - 66 * - + 92 ) + + 35 + - 55 ) * + MIN ( DISTINCT + - 12 ) * + 54 + - 7 * - 97
----
46039

onlyif mysql # aggregate syntax: 
query I rowsort label-9196
SELECT ALL - ( COUNT( * ) ) * - 91 + - 23 * - MIN( ALL + 12 ) + - 31 + - 25 * 75
----
-1539

skipif mysql # not compatible
query I rowsort label-9196
SELECT ALL - ( COUNT ( * ) ) * - 91 + - 23 * - MIN ( ALL + 12 ) + - 31 + - 25 * 75
----
-1539

onlyif mysql # aggregate syntax: 
query I rowsort label-9197
SELECT - - 80 * + + ( + - 72 ) * + SUM( DISTINCT + 59 ) AS col0
----
-339840

skipif mysql # not compatible
query I rowsort label-9197
SELECT - - 80 * + + ( + - 72 ) * + SUM ( DISTINCT + 59 ) AS col0
----
-339840

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9198
SELECT + CAST( NULL AS SIGNED ) * + 48 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9198
SELECT + CAST ( NULL AS INTEGER ) * + 48 AS col2
----
NULL

query I rowsort
SELECT ALL + 42 * 61 + + 42
----
2604

onlyif mysql # aggregate syntax: 
query I rowsort label-9200
SELECT MAX( DISTINCT - 24 )
----
-24

skipif mysql # not compatible
query I rowsort label-9200
SELECT MAX ( DISTINCT - 24 )
----
-24

query I rowsort
SELECT 25 - - - ( + 6 )
----
19

query I rowsort
SELECT - + ( + 55 )
----
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-9203
SELECT + COUNT( DISTINCT 80 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-9203
SELECT + COUNT ( DISTINCT 80 ) AS col0
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9204
SELECT ALL - 50 * + 69 + - COALESCE ( CAST( NULL AS SIGNED ), - 59 ) + + COUNT( * ) * + 86 * + + 12 AS col1, - 86 + 54 * 49 + + COUNT( DISTINCT + + 57 ) + - 77
----
-2359
2484

skipif mysql # not compatible
query II rowsort label-9204
SELECT ALL - 50 * + 69 + - COALESCE ( CAST ( NULL AS INTEGER ), - 59 ) + + COUNT ( * ) * + 86 * + + 12 AS col1, - 86 + 54 * 49 + + COUNT ( DISTINCT + + 57 ) + - 77
----
-2359
2484

query I rowsort
SELECT - 95 + - + 64 * + 83 AS col0
----
-5407

query I rowsort
SELECT 15 * - 80 + + 86 * - ( - 81 ) col2
----
5766

query I rowsort
SELECT + 69 * - - 74 AS col1
----
5106

onlyif mysql # aggregate syntax: 
query I rowsort label-9208
SELECT 18 + - COUNT( * ) AS col0
----
17

skipif mysql # not compatible
query I rowsort label-9208
SELECT 18 + - COUNT ( * ) AS col0
----
17

onlyif mysql # DIV for integer division: 
query I rowsort label-9209
SELECT + COALESCE ( - 10, + - 91 ) DIV + 22 col0
----
0

skipif mysql # not compatible
query I rowsort label-9209
SELECT + COALESCE ( - 10, + - 91 ) / + 22 col0
----
0

query I rowsort
SELECT DISTINCT + ( - NULLIF ( - 35, - + 92 ) )
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-9211
SELECT ALL - COUNT( * ) * ( 80 )
----
-80

skipif mysql # not compatible
query I rowsort label-9211
SELECT ALL - COUNT ( * ) * ( 80 )
----
-80

query I rowsort
SELECT 17 * - 48 + + 84 AS col2
----
-732

query II rowsort
SELECT DISTINCT 91 AS col2, - 61
----
91
-61

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9214
SELECT 49 + - ( - CAST( NULLIF ( + 84, 78 ) AS SIGNED ) ) * - COUNT( * ) AS col1
----
-35

skipif mysql # not compatible
query I rowsort label-9214
SELECT 49 + - ( - CAST ( NULLIF ( + 84, 78 ) AS INTEGER ) ) * - COUNT ( * ) AS col1
----
-35

query I rowsort
SELECT ALL + 46 * + - 42
----
-1932

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9216
SELECT + 11 * + - 5 + + COUNT( + CAST( NULL AS SIGNED ) ) * + 3 col1
----
-55

skipif mysql # not compatible
query I rowsort label-9216
SELECT + 11 * + - 5 + + COUNT ( + CAST ( NULL AS INTEGER ) ) * + 3 col1
----
-55

query I rowsort
SELECT 65 * - 52 * - 55 AS col1
----
185900

onlyif mysql # aggregate syntax: 
query II rowsort label-9218
SELECT 3 - 17 AS col2, - 57 * + ( - SUM( ALL - 29 ) ) * + 9 * + COUNT( * ) + + + 34
----
-14
-14843

skipif mysql # not compatible
query II rowsort label-9218
SELECT 3 - 17 AS col2, - 57 * + ( - SUM ( ALL - 29 ) ) * + 9 * + COUNT ( * ) + + + 34
----
-14
-14843

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9219
SELECT ALL - 39 AS col1, + 69 + + COUNT( * ) * + CAST( 2 AS SIGNED ) * + + 23 AS col0
----
-39
115

skipif mysql # not compatible
query II rowsort label-9219
SELECT ALL - 39 AS col1, + 69 + + COUNT ( * ) * + CAST ( 2 AS INTEGER ) * + + 23 AS col0
----
-39
115

query I rowsort
SELECT ALL - 1 + - - 76 * - 41
----
-3117

onlyif mysql # aggregate syntax: 
query I rowsort label-9221
SELECT ALL + 46 + - COUNT( * )
----
45

skipif mysql # not compatible
query I rowsort label-9221
SELECT ALL + 46 + - COUNT ( * )
----
45

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9222
SELECT ALL 2 + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9222
SELECT ALL 2 + + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9223
SELECT 93 + + COUNT( * )
----
94

skipif mysql # not compatible
query I rowsort label-9223
SELECT 93 + + COUNT ( * )
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-9224
SELECT ALL - NULLIF ( 61, - 71 + COALESCE ( COUNT( * ), 66 ) + + 70 / - 99 + - 93 )
----
-61

skipif mysql # not compatible
query I rowsort label-9224
SELECT ALL - NULLIF ( 61, - 71 + COALESCE ( COUNT ( * ), 66 ) + + 70 / - 99 + - 93 )
----
-61

onlyif mysql # aggregate syntax: 
query II rowsort label-9225
SELECT 47 * - + ( - - 64 ) + - 83 AS col0, 29 + + + CASE - - 88 WHEN + SUM( ALL 75 ) * MIN( DISTINCT + 37 ) * + 4 - - + 48 THEN NULL WHEN 67 + 96 THEN + COALESCE ( - 31, + 82 + + 98 ) ELSE + 55 END col0
----
-3091
84

skipif mysql # not compatible
query II rowsort label-9225
SELECT 47 * - + ( - - 64 ) + - 83 AS col0, 29 + + + CASE - - 88 WHEN + SUM ( ALL 75 ) * MIN ( DISTINCT + 37 ) * + 4 - - + 48 THEN NULL WHEN 67 + 96 THEN + COALESCE ( - 31, + 82 + + 98 ) ELSE + 55 END col0
----
-3091
84

onlyif mysql # aggregate syntax: 
query I rowsort label-9226
SELECT ALL 8 + 30 + MAX( + + 78 )
----
116

skipif mysql # not compatible
query I rowsort label-9226
SELECT ALL 8 + 30 + MAX ( + + 78 )
----
116

onlyif mysql # aggregate syntax: 
query I rowsort label-9227
SELECT 93 * + COUNT( * )
----
93

skipif mysql # not compatible
query I rowsort label-9227
SELECT 93 * + COUNT ( * )
----
93

query I rowsort
SELECT 28 * - + 73 AS col2
----
-2044

query I rowsort
SELECT 99 + 62 + + 79 - - 78 + + 90
----
408

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9230
SELECT 35 DIV - - MIN( ALL - + 40 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-9230
SELECT 35 / - - MIN ( ALL - + 40 ) AS col1
----
0

query I rowsort
SELECT ALL - ( - - 23 )
----
-23

query I rowsort
SELECT ALL - ( + 70 ) AS col2
----
-70

query I rowsort
SELECT DISTINCT 69 - + - ( 17 ) AS col0
----
86

onlyif mysql # aggregate syntax: 
query II rowsort label-9234
SELECT DISTINCT - COUNT( * ), - 84 * + - 76 * - 85 AS col2
----
-1
-542640

skipif mysql # not compatible
query II rowsort label-9234
SELECT DISTINCT - COUNT ( * ), - 84 * + - 76 * - 85 AS col2
----
-1
-542640

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9235
SELECT - - CAST( - + AVG ( - + 4 ) AS SIGNED ) AS col0
----
4

skipif mysql # not compatible
query I rowsort label-9235
SELECT - - CAST ( - + AVG ( - + 4 ) AS INTEGER ) AS col0
----
4

query I rowsort
SELECT - 27 + - 20 + + 80 * + 73 + + 23 AS col2
----
5816

query II rowsort
SELECT ALL - 50 AS col1, 33 * + + 90 + + 28
----
-50
2998

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9238
SELECT 94 + 36 + - NULLIF ( - COALESCE ( + - 19, + + COALESCE ( + CAST( NULL AS SIGNED ), - CAST( + + 99 AS SIGNED ) DIV 71 - - 59 + - + 2 + - + 78, + 98 + + 30 ) ), 73 - + 27 ) + - - CAST( - + 60 AS SIGNED ) * - - 18 * + + COUNT( * ) * - MIN( ALL - 22 ) AS col1
----
-23649

skipif mysql # not compatible
query I rowsort label-9238
SELECT 94 + 36 + - NULLIF ( - COALESCE ( + - 19, + + COALESCE ( + CAST ( NULL AS INTEGER ), - CAST ( + + 99 AS INTEGER ) / 71 - - 59 + - + 2 + - + 78, + 98 + + 30 ) ), 73 - + 27 ) + - - CAST ( - + 60 AS INTEGER ) * - - 18 * + + COUNT ( * ) * - MIN ( ALL - 22 ) AS col1
----
-23649

onlyif mysql # aggregate syntax: 
query II rowsort label-9239
SELECT - - 53, ( + + MIN( + 20 ) ) AS col2
----
53
20

skipif mysql # not compatible
query II rowsort label-9239
SELECT - - 53, ( + + MIN ( + 20 ) ) AS col2
----
53
20

onlyif mysql # aggregate syntax: 
query I rowsort label-9240
SELECT - ( COUNT( * ) ) * 88 + ( - - 97 )
----
9

skipif mysql # not compatible
query I rowsort label-9240
SELECT - ( COUNT ( * ) ) * 88 + ( - - 97 )
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-9241
SELECT MIN( ALL + + 70 ) - 75 * - 70 + 85
----
5405

skipif mysql # not compatible
query I rowsort label-9241
SELECT MIN ( ALL + + 70 ) - 75 * - 70 + 85
----
5405

query I rowsort
SELECT DISTINCT + ( 89 ) col0
----
89

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9243
SELECT 30 + - NULLIF ( + 82, - 42 ) * + CAST( NULL AS SIGNED ) * + AVG ( ALL - 41 ) - 36 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9243
SELECT 30 + - NULLIF ( + 82, - 42 ) * + CAST ( NULL AS INTEGER ) * + AVG ( ALL - 41 ) - 36 AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9244
SELECT ALL - + 86 DIV COUNT( - 10 )
----
-86

skipif mysql # not compatible
query I rowsort label-9244
SELECT ALL - + 86 / COUNT ( - 10 )
----
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-9245
SELECT DISTINCT - COUNT( ALL + 25 ) col0
----
-1

skipif mysql # not compatible
query I rowsort label-9245
SELECT DISTINCT - COUNT ( ALL + 25 ) col0
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-9246
SELECT - COUNT( * ) AS col2, + 80 * - ( + 44 ) * + ( + 42 ) + - COUNT( * ) + 57
----
-1
-147784

skipif mysql # not compatible
query II rowsort label-9246
SELECT - COUNT ( * ) AS col2, + 80 * - ( + 44 ) * + ( + 42 ) + - COUNT ( * ) + 57
----
-1
-147784

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9247
SELECT NULLIF ( - 66, + CAST( - - 59 AS SIGNED ) ) + 33 - 39 AS col1, + COUNT( * )
----
-72
1

skipif mysql # not compatible
query II rowsort label-9247
SELECT NULLIF ( - 66, + CAST ( - - 59 AS INTEGER ) ) + 33 - 39 AS col1, + COUNT ( * )
----
-72
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9248
SELECT - 43 + - - 19 + 88 + - - CASE 66 WHEN + - NULLIF ( 58, - + 24 ) THEN - 49 * + 22 + - 52 + 18 + 11 + + ( 34 ) * COUNT( * ) END * 17 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9248
SELECT - 43 + - - 19 + 88 + - - CASE 66 WHEN + - NULLIF ( 58, - + 24 ) THEN - 49 * + 22 + - 52 + 18 + 11 + + ( 34 ) * COUNT ( * ) END * 17 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9249
SELECT - + COUNT( DISTINCT 9 )
----
-1

skipif mysql # not compatible
query I rowsort label-9249
SELECT - + COUNT ( DISTINCT 9 )
----
-1

query II rowsort
SELECT ALL + 45, + NULLIF ( 45, 4 * - + 25 ) AS col2
----
45
45

query I rowsort
SELECT - - 89 col1
----
89

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9252
SELECT 58 * + + 24 AS col1, CAST( NULL AS SIGNED ) AS col1
----
1392
NULL

skipif mysql # not compatible
query II rowsort label-9252
SELECT 58 * + + 24 AS col1, CAST ( NULL AS INTEGER ) AS col1
----
1392
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9253
SELECT 94 + - + 66 + MAX( ALL - 75 )
----
-47

skipif mysql # not compatible
query I rowsort label-9253
SELECT 94 + - + 66 + MAX ( ALL - 75 )
----
-47

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9254
SELECT DISTINCT - 87 DIV ( 40 ) * - - 76 * 65 * + + CASE WHEN NULL <= - SUM( ALL - ( NULLIF ( - 35, + 30 + 75 ) ) ) THEN NULL ELSE + 45 END - ( - - MAX( ALL 79 ) ) col0, 98
----
-444679
98

skipif mysql # not compatible
query II rowsort label-9254
SELECT DISTINCT - 87 / ( 40 ) * - - 76 * 65 * + + CASE WHEN NULL <= - SUM ( ALL - ( NULLIF ( - 35, + 30 + 75 ) ) ) THEN NULL ELSE + 45 END - ( - - MAX ( ALL 79 ) ) col0, 98
----
-444679
98

onlyif mysql # DIV for integer division: 
query I rowsort label-9255
SELECT 78 DIV 28
----
2

skipif mysql # not compatible
query I rowsort label-9255
SELECT 78 / 28
----
2

query I rowsort
SELECT ALL - 98 * + + 70 + - 49 * + 32 * - - 0 * + 91
----
-6860

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9257
SELECT ALL 19 * + 10 + - + COUNT( + CAST( - 82 AS SIGNED ) ) * + - 19 + - 64 DIV - - 46 AS col0
----
208

skipif mysql # not compatible
query I rowsort label-9257
SELECT ALL 19 * + 10 + - + COUNT ( + CAST ( - 82 AS INTEGER ) ) * + - 19 + - 64 / - - 46 AS col0
----
208

onlyif mysql # DIV for integer division: 
query I rowsort label-9258
SELECT + 37 DIV - + 20 - + 18
----
-19

skipif mysql # not compatible
query I rowsort label-9258
SELECT + 37 / - + 20 - + 18
----
-19

query I rowsort
SELECT ALL + 89 * - 0 + + 40 - + + 24
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-9260
SELECT DISTINCT - MAX( + + 23 ) * - + 25 + COUNT( * )
----
576

skipif mysql # not compatible
query I rowsort label-9260
SELECT DISTINCT - MAX ( + + 23 ) * - + 25 + COUNT ( * )
----
576

query I rowsort
SELECT + - 6 - 46
----
-52

query II rowsort
SELECT ALL 85 - 18, + 7 AS col2
----
67
7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9263
SELECT - ( - 55 ) DIV - - 40 * COUNT( * ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-9263
SELECT - ( - 55 ) / - - 40 * COUNT ( * ) AS col0
----
1

query II rowsort
SELECT + 24 * 69, ( + - ( + + 95 ) ) col2
----
1656
-95

onlyif mysql # aggregate syntax: 
query II rowsort label-9265
SELECT + - 98 + - + 88, + COUNT( * ) + - 6 + - - 32 col0
----
-186
27

skipif mysql # not compatible
query II rowsort label-9265
SELECT + - 98 + - + 88, + COUNT ( * ) + - 6 + - - 32 col0
----
-186
27

onlyif mysql # DIV for integer division: 
query I rowsort label-9266
SELECT DISTINCT - 92 DIV - + 96 + + 1
----
1

skipif mysql # not compatible
query I rowsort label-9266
SELECT DISTINCT - 92 / - + 96 + + 1
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9267
SELECT ALL CASE + 7 WHEN + 29 THEN NULL ELSE CAST( - 55 AS SIGNED ) END AS col0
----
-55

skipif mysql # not compatible
query I rowsort label-9267
SELECT ALL CASE + 7 WHEN + 29 THEN NULL ELSE CAST ( - 55 AS INTEGER ) END AS col0
----
-55

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9268
SELECT - - CASE + ( - + 22 ) WHEN + + CAST( + 50 AS SIGNED ) THEN - + 52 ELSE - COUNT( * ) * + 35 + - - 13 END
----
-22

skipif mysql # not compatible
query I rowsort label-9268
SELECT - - CASE + ( - + 22 ) WHEN + + CAST ( + 50 AS INTEGER ) THEN - + 52 ELSE - COUNT ( * ) * + 35 + - - 13 END
----
-22

query I rowsort
SELECT + - 54 * 4 AS col1
----
-216

onlyif mysql # aggregate syntax: 
query I rowsort label-9270
SELECT ALL COUNT( * ) * + 89 * - 45 AS col1
----
-4005

skipif mysql # not compatible
query I rowsort label-9270
SELECT ALL COUNT ( * ) * + 89 * - 45 AS col1
----
-4005

query I rowsort
SELECT + + 79 * + + 40 + + 29 - 91 + + - 35
----
3063

query I rowsort
SELECT ALL - 37 col0
----
-37

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9273
SELECT + 71 * + 31 * ( - 41 ) * - + 93 + + CAST( NULL AS SIGNED ) + 6 + - 86 - - 94
----
NULL

skipif mysql # not compatible
query I rowsort label-9273
SELECT + 71 * + 31 * ( - 41 ) * - + 93 + + CAST ( NULL AS INTEGER ) + 6 + - 86 - - 94
----
NULL

query I rowsort
SELECT ALL 10 + - 7 AS col0
----
3

query I rowsort
SELECT + - NULLIF ( - - 52, 14 ) - - 9 + - - 55
----
12

query I rowsort
SELECT + + 27 + + 77 * - 9
----
-666

onlyif mysql # DIV for integer division: 
query I rowsort label-9277
SELECT ALL - 58 + NULLIF ( - 9, - 75 ) + + 49 + - 21 DIV - NULLIF ( + - 32, 97 ) * - - 77 DIV - 33
----
-18

skipif mysql # not compatible
query I rowsort label-9277
SELECT ALL - 58 + NULLIF ( - 9, - 75 ) + + 49 + - 21 / - NULLIF ( + - 32, 97 ) * - - 77 / - 33
----
-18

query I rowsort
SELECT + - 52 + 29 * + 55 AS col0
----
1543

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9279
SELECT ALL - CAST( NULL AS SIGNED ) + - 87 + + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-9279
SELECT ALL - CAST ( NULL AS INTEGER ) + - 87 + + COUNT ( * )
----
NULL

query I rowsort
SELECT - COALESCE ( 90, + - 72 ) AS col0
----
-90

onlyif mysql # aggregate syntax: 
query II rowsort label-9281
SELECT + ( 81 ) + 1 AS col1, + COUNT( * ) - + 36 * + 14
----
82
-503

skipif mysql # not compatible
query II rowsort label-9281
SELECT + ( 81 ) + 1 AS col1, + COUNT ( * ) - + 36 * + 14
----
82
-503

query II rowsort
SELECT ALL + 46 + + - 81 + 50 AS col1, - 53 col2
----
15
-53

query II rowsort
SELECT ALL - 74 * + 61 * 73 AS col0, - 38 - + COALESCE ( - - 9, + - 43 ) AS col0
----
-329522
-47

query I rowsort
SELECT DISTINCT 32 + + 10 AS col0
----
42

query I rowsort
SELECT - 61 + + 13 col1
----
-48

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9286
SELECT ALL COALESCE ( + 77, + 71 * - 44 ) DIV - 37 + COUNT( DISTINCT + - 47 )
----
-1

skipif mysql # not compatible
query I rowsort label-9286
SELECT ALL COALESCE ( + 77, + 71 * - 44 ) / - 37 + COUNT ( DISTINCT + - 47 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9287
SELECT + MIN( DISTINCT + 34 ) + 1
----
35

skipif mysql # not compatible
query I rowsort label-9287
SELECT + MIN ( DISTINCT + 34 ) + 1
----
35

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9288
SELECT - 79 * 49 DIV + 46, MIN( - - 22 ) AS col1
----
-84
22

skipif mysql # not compatible
query II rowsort label-9288
SELECT - 79 * 49 / + 46, MIN ( - - 22 ) AS col1
----
-84
22

onlyif mysql # aggregate syntax: 
query I rowsort label-9289
SELECT - 55 - - COUNT( * ) * 0
----
-55

skipif mysql # not compatible
query I rowsort label-9289
SELECT - 55 - - COUNT ( * ) * 0
----
-55

query II rowsort
SELECT ALL + 64 AS col1, 66 * - - 33
----
64
2178

onlyif mysql # DIV for integer division: 
query I rowsort label-9291
SELECT - 71 DIV - - 94 * + 33 * + 15 + - + 46 AS col1
----
-46

skipif mysql # not compatible
query I rowsort label-9291
SELECT - 71 / - - 94 * + 33 * + 15 + - + 46 AS col1
----
-46

query I rowsort
SELECT ALL 83 * 20 * - + 72 - + 56 + - 79 AS col1
----
-119655

onlyif mysql # aggregate syntax: 
query I rowsort label-9293
SELECT - 43 * + NULLIF ( - ( + 64 ), 87 * - + 53 + COUNT( * ) + - 31 * + COUNT( * ) + + - 75 / COALESCE ( - 98, + + 6 ) ) * - 68
----
-187136

skipif mysql # not compatible
query I rowsort label-9293
SELECT - 43 * + NULLIF ( - ( + 64 ), 87 * - + 53 + COUNT ( * ) + - 31 * + COUNT ( * ) + + - 75 / COALESCE ( - 98, + + 6 ) ) * - 68
----
-187136

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9294
SELECT DISTINCT + NULLIF ( - + 32, - 65 * - - 26 ) / CASE + ( + - 66 ) WHEN CAST( NULL AS DECIMAL ) * + + 50 THEN NULL WHEN - 4 + 47 THEN + CASE + 48 WHEN + 2 THEN NULL WHEN - - SUM( 44 ) THEN - 56 * + 32 / 17 WHEN + 51 + COUNT( * ) + + 29 THEN NULL ELSE NULL END END
----
NULL

skipif mysql # not compatible
query I rowsort label-9294
SELECT DISTINCT + NULLIF ( - + 32, - 65 * - - 26 ) / CASE + ( + - 66 ) WHEN CAST ( NULL AS REAL ) * + + 50 THEN NULL WHEN - 4 + 47 THEN + CASE + 48 WHEN + 2 THEN NULL WHEN - - SUM ( 44 ) THEN - 56 * + 32 / 17 WHEN + 51 + COUNT ( * ) + + 29 THEN NULL ELSE NULL END END
----
NULL

query I rowsort
SELECT - 95 + + 34 + - - 16 - 73 AS col0
----
-118

query I rowsort
SELECT ALL + ( - 12 ) AS col2
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-9297
SELECT ( + - COUNT( * ) ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-9297
SELECT ( + - COUNT ( * ) ) AS col0
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-9298
SELECT 64, - MAX( - - 65 ) AS col0
----
64
-65

skipif mysql # not compatible
query II rowsort label-9298
SELECT 64, - MAX ( - - 65 ) AS col0
----
64
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-9299
SELECT CASE 58 WHEN + MIN( - 58 ) + - - 17 - - + 33 * ( - - AVG ( + + 33 ) ) / + 41 + + 20 + - 44 * + - 33 + 72 * - - 47 THEN NULL WHEN COUNT( * ) + + + 46 * - NULLIF ( - 4, + + 15 ) THEN ( + 99 ) END col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9299
SELECT CASE 58 WHEN + MIN ( - 58 ) + - - 17 - - + 33 * ( - - AVG ( + + 33 ) ) / + 41 + + 20 + - 44 * + - 33 + 72 * - - 47 THEN NULL WHEN COUNT ( * ) + + + 46 * - NULLIF ( - 4, + + 15 ) THEN ( + 99 ) END col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9300
SELECT - + COUNT( * ) + - NULLIF ( + 93, 61 * + 5 + - 40 + - 18 + 75 + + - 20 * - 9 + + - 22 * 51 * + 40 + + 83 / - 65 + - 11 + - 66 * - 72 * 78 ) + - - 6 * + ( + 26 ) col2
----
62

skipif mysql # not compatible
query I rowsort label-9300
SELECT - + COUNT ( * ) + - NULLIF ( + 93, 61 * + 5 + - 40 + - 18 + 75 + + - 20 * - 9 + + - 22 * 51 * + 40 + + 83 / - 65 + - 11 + - 66 * - 72 * 78 ) + - - 6 * + ( + 26 ) col2
----
62

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9301
SELECT ALL - CAST( + + 39 AS SIGNED ) * - - 85 + 54 - + - 4 - - + 25
----
-3232

skipif mysql # not compatible
query I rowsort label-9301
SELECT ALL - CAST ( + + 39 AS INTEGER ) * - - 85 + 54 - + - 4 - - + 25
----
-3232

onlyif mysql # aggregate syntax: 
query I rowsort label-9302
SELECT - 62 + - COUNT( * ) + + - 81 * - + 11 AS col0
----
828

skipif mysql # not compatible
query I rowsort label-9302
SELECT - 62 + - COUNT ( * ) + + - 81 * - + 11 AS col0
----
828

query I rowsort
SELECT ALL + CASE - 60 WHEN - 29 + - 89 THEN 13 * - 8 ELSE + 10 END
----
10

query I rowsort
SELECT ALL + - 14 AS col2
----
-14

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9305
SELECT ALL - COUNT( * ) * - 5 - 15 * + 13 * 31 + - 61 DIV - COUNT( * ) AS col1
----
-5979

skipif mysql # not compatible
query I rowsort label-9305
SELECT ALL - COUNT ( * ) * - 5 - 15 * + 13 * 31 + - 61 / - COUNT ( * ) AS col1
----
-5979

query I rowsort
SELECT DISTINCT + ( + 33 )
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-9307
SELECT DISTINCT CASE 97 WHEN 19 * 6 THEN NULL ELSE - 57 + + 40 - + 6 END * - COUNT( * ) + 36 + + 23 * + 91 AS col1
----
2152

skipif mysql # not compatible
query I rowsort label-9307
SELECT DISTINCT CASE 97 WHEN 19 * 6 THEN NULL ELSE - 57 + + 40 - + 6 END * - COUNT ( * ) + 36 + + 23 * + 91 AS col1
----
2152

onlyif mysql # DIV for integer division: 
query I rowsort label-9308
SELECT - + NULLIF ( + ( + 92 ), - 66 ) DIV - - 15 col0
----
-6

skipif mysql # not compatible
query I rowsort label-9308
SELECT - + NULLIF ( + ( + 92 ), - 66 ) / - - 15 col0
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-9309
SELECT + + 42 + - - CASE + + 85 WHEN + - 57 + 56 THEN - 98 / 59 * - - 71 * MIN( DISTINCT + 89 ) - + 80 WHEN + + 61 THEN + - 8 END - 76
----
NULL

skipif mysql # not compatible
query I rowsort label-9309
SELECT + + 42 + - - CASE + + 85 WHEN + - 57 + 56 THEN - 98 / 59 * - - 71 * MIN ( DISTINCT + 89 ) - + 80 WHEN + + 61 THEN + - 8 END - 76
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9310
SELECT + 47 + + 77 * COUNT( * )
----
124

skipif mysql # not compatible
query I rowsort label-9310
SELECT + 47 + + 77 * COUNT ( * )
----
124

query II rowsort
SELECT - 65, 93 * 95 + 65 * + 14 AS col2
----
-65
9745

onlyif mysql # DIV for integer division: 
query I rowsort label-9312
SELECT - + 81 DIV 38
----
-2

skipif mysql # not compatible
query I rowsort label-9312
SELECT - + 81 / 38
----
-2

query I rowsort
SELECT DISTINCT COALESCE ( - - 57, 76 - + 56 ) AS col2
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-9314
SELECT ALL COUNT( * ) + - COUNT( * ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9314
SELECT ALL COUNT ( * ) + - COUNT ( * ) AS col0
----
0

query I rowsort
SELECT + 33 + + 50 * - 73 AS col1
----
-3617

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9316
SELECT + CAST( NULL AS SIGNED ) + + 10 AS col1, 23
----
NULL
23

skipif mysql # not compatible
query II rowsort label-9316
SELECT + CAST ( NULL AS INTEGER ) + + 10 AS col1, 23
----
NULL
23

onlyif mysql # aggregate syntax: 
query II rowsort label-9317
SELECT ALL SUM( 59 ) AS col1, - 58
----
59
-58

skipif mysql # not compatible
query II rowsort label-9317
SELECT ALL SUM ( 59 ) AS col1, - 58
----
59
-58

query I rowsort
SELECT ALL 91 + - ( - 35 )
----
126

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9319
SELECT + COUNT( * ) * + 41 AS col1, + 88 DIV + 62
----
41
1

skipif mysql # not compatible
query II rowsort label-9319
SELECT + COUNT ( * ) * + 41 AS col1, + 88 / + 62
----
41
1

query I rowsort
SELECT + 55 + 25 AS col1
----
80

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9321
SELECT ALL - 18 DIV 7 * - 81 - + COUNT( * ) + 35
----
196

skipif mysql # not compatible
query I rowsort label-9321
SELECT ALL - 18 / 7 * - 81 - + COUNT ( * ) + 35
----
196

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9322
SELECT ALL CASE + 1 WHEN - - 67 THEN NULL WHEN - + 21 / + + CAST( + 81 AS SIGNED ) THEN - + 28 ELSE NULL END - - - 41
----
NULL

skipif mysql # not compatible
query I rowsort label-9322
SELECT ALL CASE + 1 WHEN - - 67 THEN NULL WHEN - + 21 / + + CAST ( + 81 AS INTEGER ) THEN - + 28 ELSE NULL END - - - 41
----
NULL

query I rowsort
SELECT 44 * + 49 AS col0
----
2156

query I rowsort
SELECT 53 * - + 60 * 81 - - ( + 83 )
----
-257497

onlyif mysql # aggregate syntax: 
query I rowsort label-9325
SELECT + COUNT( * ) - + 52 col2
----
-51

skipif mysql # not compatible
query I rowsort label-9325
SELECT + COUNT ( * ) - + 52 col2
----
-51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9326
SELECT - CAST( NULL AS SIGNED ) * + 19 * - + 16
----
NULL

skipif mysql # not compatible
query I rowsort label-9326
SELECT - CAST ( NULL AS INTEGER ) * + 19 * - + 16
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9327
SELECT 7 + + + 34, MIN( ALL - + ( 43 ) ) AS col0
----
41
-43

skipif mysql # not compatible
query II rowsort label-9327
SELECT 7 + + + 34, MIN ( ALL - + ( 43 ) ) AS col0
----
41
-43

query I rowsort
SELECT ALL 20 * 20 * 72
----
28800

query I rowsort
SELECT DISTINCT - 65 * + 97 + - - 97
----
-6208

onlyif mysql # aggregate syntax: 
query I rowsort label-9330
SELECT ALL COUNT( * ) * - 84
----
-84

skipif mysql # not compatible
query I rowsort label-9330
SELECT ALL COUNT ( * ) * - 84
----
-84

onlyif mysql # DIV for integer division: 
query I rowsort label-9331
SELECT ALL + - 79 DIV 25 DIV - 27
----
0

skipif mysql # not compatible
query I rowsort label-9331
SELECT ALL + - 79 / 25 / - 27
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-9332
SELECT 62 * + 39 - - - 67 * 8 col1, - COUNT( * ) * 21 + - + 55 + NULLIF ( - 2, - + 49 * - + 92 + + 66 ) + - + COALESCE ( + 63, - 18 + 36, - 26, - 77 ) * - - 78 * + + COALESCE ( - + 63, - 2 + CASE + 81 WHEN 12 THEN NULL WHEN COUNT( * ) / - + COUNT( * ) THEN + COUNT( * ) ELSE + 7 END * - - 52 ) col2
----
1882
309504

skipif mysql # not compatible
query II rowsort label-9332
SELECT 62 * + 39 - - - 67 * 8 col1, - COUNT ( * ) * 21 + - + 55 + NULLIF ( - 2, - + 49 * - + 92 + + 66 ) + - + COALESCE ( + 63, - 18 + 36, - 26, - 77 ) * - - 78 * + + COALESCE ( - + 63, - 2 + CASE + 81 WHEN 12 THEN NULL WHEN COUNT ( * ) / - + COUNT ( * ) THEN + COUNT ( * ) ELSE + 7 END * - - 52 ) col2
----
1882
309504

query I rowsort
SELECT ALL - + 70 AS col0
----
-70

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9334
SELECT ALL + + CAST( + + 32 AS SIGNED ) + - 63
----
-31

skipif mysql # not compatible
query I rowsort label-9334
SELECT ALL + + CAST ( + + 32 AS INTEGER ) + - 63
----
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-9335
SELECT - COUNT( DISTINCT - 59 ) * - 13 col2
----
13

skipif mysql # not compatible
query I rowsort label-9335
SELECT - COUNT ( DISTINCT - 59 ) * - 13 col2
----
13

query I rowsort
SELECT 84 * - 74 + - 84 AS col0
----
-6300

query I rowsort
SELECT DISTINCT + 58 + + 9 - + + 43 AS col0
----
24

onlyif mysql # aggregate syntax: 
query II rowsort label-9338
SELECT DISTINCT + ( - COUNT( * ) ), + 33 AS col0
----
-1
33

skipif mysql # not compatible
query II rowsort label-9338
SELECT DISTINCT + ( - COUNT ( * ) ), + 33 AS col0
----
-1
33

onlyif mysql # aggregate syntax: 
query II rowsort label-9339
SELECT ALL + COALESCE ( + + COUNT( * ), - 85, - 32 ) + + 58 AS col1, ( + 88 ) + + 58 AS col0
----
59
146

skipif mysql # not compatible
query II rowsort label-9339
SELECT ALL + COALESCE ( + + COUNT ( * ), - 85, - 32 ) + + 58 AS col1, ( + 88 ) + + 58 AS col0
----
59
146

query I rowsort
SELECT DISTINCT ( - - 84 )
----
84

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9341
SELECT DISTINCT + - CAST( NULL AS SIGNED ) + - - 46
----
NULL

skipif mysql # not compatible
query I rowsort label-9341
SELECT DISTINCT + - CAST ( NULL AS INTEGER ) + - - 46
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9342
SELECT 68 + COALESCE ( + 1, - + 95 + CAST( NULL AS SIGNED ) * + - 51 ) + + 23 * 3 * - 21 + - + ( + 59 ) AS col2
----
-1439

skipif mysql # not compatible
query I rowsort label-9342
SELECT 68 + COALESCE ( + 1, - + 95 + CAST ( NULL AS INTEGER ) * + - 51 ) + + 23 * 3 * - 21 + - + ( + 59 ) AS col2
----
-1439

onlyif mysql # aggregate syntax: 
query I rowsort label-9343
SELECT ALL + COUNT( + 40 ) - - 5 * - 50
----
-249

skipif mysql # not compatible
query I rowsort label-9343
SELECT ALL + COUNT ( + 40 ) - - 5 * - 50
----
-249

query I rowsort
SELECT 74 * - + 12
----
-888

onlyif mysql # aggregate syntax: 
query I rowsort label-9345
SELECT NULLIF ( ( + 88 ), - - 99 * - + COUNT( * ) ) * - COUNT( * ) AS col0
----
-88

skipif mysql # not compatible
query I rowsort label-9345
SELECT NULLIF ( ( + 88 ), - - 99 * - + COUNT ( * ) ) * - COUNT ( * ) AS col0
----
-88

onlyif mysql # DIV for integer division: 
query I rowsort label-9346
SELECT ALL + 56 DIV 52 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-9346
SELECT ALL + 56 / 52 AS col2
----
1

query I rowsort
SELECT 93 + + 85 AS col2
----
178

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9348
SELECT COALESCE ( COALESCE ( + 38, + + 17 * + SUM( ALL + + 39 ) DIV - 38 ), + + CASE - + 1 WHEN 60 * 48 + + - 81 * - - 59 + 83 THEN + 11 WHEN - 86 DIV - 23 THEN + 64 END ) DIV + - 12
----
-3

skipif mysql # not compatible
query I rowsort label-9348
SELECT COALESCE ( COALESCE ( + 38, + + 17 * + SUM ( ALL + + 39 ) / - 38 ), + + CASE - + 1 WHEN 60 * 48 + + - 81 * - - 59 + 83 THEN + 11 WHEN - 86 / - 23 THEN + 64 END ) / + - 12
----
-3

query I rowsort
SELECT 3 + 24 AS col1
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-9350
SELECT ALL COUNT( * ) - - 5 * - 40 AS col1
----
-199

skipif mysql # not compatible
query I rowsort label-9350
SELECT ALL COUNT ( * ) - - 5 * - 40 AS col1
----
-199

onlyif mysql # aggregate syntax: 
query I rowsort label-9351
SELECT COUNT( * ) + 27 AS col0
----
28

skipif mysql # not compatible
query I rowsort label-9351
SELECT COUNT ( * ) + 27 AS col0
----
28

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9352
SELECT ALL + 57 DIV CAST( - 13 AS SIGNED ) * + + 63 * - 45 AS col1
----
11340

skipif mysql # not compatible
query I rowsort label-9352
SELECT ALL + 57 / CAST ( - 13 AS INTEGER ) * + + 63 * - 45 AS col1
----
11340

onlyif mysql # aggregate syntax: 
query I rowsort label-9353
SELECT COUNT( * ) + - - 31
----
32

skipif mysql # not compatible
query I rowsort label-9353
SELECT COUNT ( * ) + - - 31
----
32

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9354
SELECT 37 + + 92 * 39 + - CAST( NULL AS DECIMAL ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9354
SELECT 37 + + 92 * 39 + - CAST ( NULL AS REAL ) AS col1
----
NULL

query I rowsort
SELECT 58 * 80 + - + 21 * - 95
----
6635

onlyif mysql # aggregate syntax: 
query I rowsort label-9356
SELECT 63 - COALESCE ( + - 48, + 28 + + - COUNT( * ) * - NULLIF ( + 84, - ( - 42 ) * 0 ) + - + ( - - 32 ), - 6 )
----
111

skipif mysql # not compatible
query I rowsort label-9356
SELECT 63 - COALESCE ( + - 48, + 28 + + - COUNT ( * ) * - NULLIF ( + 84, - ( - 42 ) * 0 ) + - + ( - - 32 ), - 6 )
----
111

onlyif mysql # DIV for integer division: 
query I rowsort label-9357
SELECT - 24 DIV + 44 + - 38
----
-38

skipif mysql # not compatible
query I rowsort label-9357
SELECT - 24 / + 44 + - 38
----
-38

query I rowsort
SELECT NULLIF ( 53, + 33 ) / + CASE 83 / - 25 WHEN 28 - 33 THEN + 99 WHEN + ( + 46 ) THEN NULL WHEN - 45 + 2 THEN NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9359
SELECT MAX( ALL - 90 )
----
-90

skipif mysql # not compatible
query I rowsort label-9359
SELECT MAX ( ALL - 90 )
----
-90

query I rowsort
SELECT ALL 17 + + 32 * ( 39 )
----
1265

onlyif mysql # aggregate syntax: 
query I rowsort label-9361
SELECT ( + COUNT( * ) ) + - 90 * 70
----
-6299

skipif mysql # not compatible
query I rowsort label-9361
SELECT ( + COUNT ( * ) ) + - 90 * 70
----
-6299

onlyif mysql # aggregate syntax: 
query I rowsort label-9362
SELECT COUNT( + 44 ) * - 29 + 13 * MAX( 95 - + 5 )
----
1141

skipif mysql # not compatible
query I rowsort label-9362
SELECT COUNT ( + 44 ) * - 29 + 13 * MAX ( 95 - + 5 )
----
1141

onlyif mysql # aggregate syntax: 
query I rowsort label-9363
SELECT ALL 64 + - COUNT( * ) * - 15 AS col2
----
79

skipif mysql # not compatible
query I rowsort label-9363
SELECT ALL 64 + - COUNT ( * ) * - 15 AS col2
----
79

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9364
SELECT DISTINCT 23 * COALESCE ( - MAX( ALL + 42 ) * + 65, 36 DIV + 32 + - 24, + COUNT( * ) )
----
-62790

skipif mysql # not compatible
query I rowsort label-9364
SELECT DISTINCT 23 * COALESCE ( - MAX ( ALL + 42 ) * + 65, 36 / + 32 + - 24, + COUNT ( * ) )
----
-62790

query I rowsort
SELECT NULLIF ( 29, - 89 ) * ( - ( 15 ) ) + 96 AS col0
----
-339

query I rowsort
SELECT ( - 98 ) * 55
----
-5390

query I rowsort
SELECT ALL 58 * - 76
----
-4408

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9368
SELECT CAST( 26 AS SIGNED ) + 36 AS col2
----
62

skipif mysql # not compatible
query I rowsort label-9368
SELECT CAST ( 26 AS INTEGER ) + 36 AS col2
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-9369
SELECT ALL + 14 + COUNT( * )
----
15

skipif mysql # not compatible
query I rowsort label-9369
SELECT ALL + 14 + COUNT ( * )
----
15

query I rowsort
SELECT DISTINCT 63 * 30
----
1890

query I rowsort
SELECT ALL 22 * + 43 AS col2
----
946

query I rowsort
SELECT DISTINCT 81 + + 81
----
162

onlyif mysql # DIV for integer division: 
query I rowsort label-9373
SELECT DISTINCT - 42 DIV 22
----
-1

skipif mysql # not compatible
query I rowsort label-9373
SELECT DISTINCT - 42 / 22
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9374
SELECT ALL - CASE CAST( CASE + 84 WHEN - 36 * + ( + ( - 50 ) ) THEN - 69 END AS SIGNED ) WHEN + MAX( + 24 ) THEN 39 WHEN COUNT( * ) * 63 + + 74 THEN NULL END col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9374
SELECT ALL - CASE CAST ( CASE + 84 WHEN - 36 * + ( + ( - 50 ) ) THEN - 69 END AS INTEGER ) WHEN + MAX ( + 24 ) THEN 39 WHEN COUNT ( * ) * 63 + + 74 THEN NULL END col0
----
NULL

query I rowsort
SELECT ALL 15 - 68
----
-53

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9376
SELECT 3 + 51 DIV COUNT( * ) AS col0
----
54

skipif mysql # not compatible
query I rowsort label-9376
SELECT 3 + 51 / COUNT ( * ) AS col0
----
54

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9377
SELECT - SUM( DISTINCT + CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-9377
SELECT - SUM ( DISTINCT + CAST ( NULL AS INTEGER ) )
----
NULL

query I rowsort
SELECT 13 + 23
----
36

query I rowsort
SELECT ( + 4 ) * + 1 AS col0
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-9380
SELECT 19 * - COUNT( * )
----
-19

skipif mysql # not compatible
query I rowsort label-9380
SELECT 19 * - COUNT ( * )
----
-19

query I rowsort
SELECT DISTINCT + 70 * 11 AS col0
----
770

onlyif mysql # aggregate syntax: 
query I rowsort label-9382
SELECT COUNT( * ) * 34 AS col2
----
34

skipif mysql # not compatible
query I rowsort label-9382
SELECT COUNT ( * ) * 34 AS col2
----
34

query I rowsort
SELECT ALL + 52 - + 37 * 63
----
-2279

query I rowsort
SELECT 9 * 90 AS col1
----
810

onlyif mysql # aggregate syntax: 
query I rowsort label-9385
SELECT DISTINCT COUNT( * ) * - 68
----
-68

skipif mysql # not compatible
query I rowsort label-9385
SELECT DISTINCT COUNT ( * ) * - 68
----
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-9386
SELECT DISTINCT + MIN( + 77 ) * - COUNT( * )
----
-77

skipif mysql # not compatible
query I rowsort label-9386
SELECT DISTINCT + MIN ( + 77 ) * - COUNT ( * )
----
-77

query I rowsort
SELECT - 79 * + 16
----
-1264

query I rowsort
SELECT ALL + 52 * 95 AS col0
----
4940

query I rowsort
SELECT - NULLIF ( - NULLIF ( 49, - 37 + - 71 ), 16 + - 67 * 66 ) AS col2
----
49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9390
SELECT DISTINCT SUM( DISTINCT + CAST( NULL AS SIGNED ) ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9390
SELECT DISTINCT SUM ( DISTINCT + CAST ( NULL AS INTEGER ) ) col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9391
SELECT ALL + MAX( DISTINCT - ( 62 ) ) + + COUNT( * ) * + 5 AS col2
----
-57

skipif mysql # not compatible
query I rowsort label-9391
SELECT ALL + MAX ( DISTINCT - ( 62 ) ) + + COUNT ( * ) * + 5 AS col2
----
-57

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9392
SELECT - 54 * CAST( NULL AS SIGNED ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9392
SELECT - 54 * CAST ( NULL AS INTEGER ) col1
----
NULL

query I rowsort
SELECT ALL - 90 * - 76 AS col2
----
6840

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9394
SELECT ALL - COUNT( * ) DIV 98 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-9394
SELECT ALL - COUNT ( * ) / 98 AS col1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-9395
SELECT ALL + - 8 + - ( + 92 ) DIV 56 AS col2
----
-9

skipif mysql # not compatible
query I rowsort label-9395
SELECT ALL + - 8 + - ( + 92 ) / 56 AS col2
----
-9

query I rowsort
SELECT DISTINCT + 59 * 49 + 72 col0
----
2963

query I rowsort
SELECT ALL 12 * 53 + - 43 * 6 AS col0
----
378

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9398
SELECT + MAX( CAST( NULL AS SIGNED ) ) * 23 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9398
SELECT + MAX ( CAST ( NULL AS INTEGER ) ) * 23 AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9399
SELECT COALESCE ( - 56, 55 DIV MIN( DISTINCT + NULLIF ( - 81, - 50 ) ) - - 91 * 8, CASE + 76 WHEN + COUNT( * ) THEN COUNT( * ) * - 52 + - COALESCE ( MIN( - 38 ), - 79 * + 71 + + COUNT( * ), - 74 * + MAX( ALL 46 ) ) WHEN MAX( 6 ) THEN NULL WHEN + 35 THEN - 30 END + + 86 )
----
-56

skipif mysql # not compatible
query I rowsort label-9399
SELECT COALESCE ( - 56, 55 / MIN ( DISTINCT + NULLIF ( - 81, - 50 ) ) - - 91 * 8, CASE + 76 WHEN + COUNT ( * ) THEN COUNT ( * ) * - 52 + - COALESCE ( MIN ( - 38 ), - 79 * + 71 + + COUNT ( * ), - 74 * + MAX ( ALL 46 ) ) WHEN MAX ( 6 ) THEN NULL WHEN + 35 THEN - 30 END + + 86 )
----
-56

query I rowsort
SELECT + 68 * 79 AS col0
----
5372

onlyif mysql # aggregate syntax: 
query I rowsort label-9401
SELECT ALL - 37 * COUNT( * ) + 91 AS col1
----
54

skipif mysql # not compatible
query I rowsort label-9401
SELECT ALL - 37 * COUNT ( * ) + 91 AS col1
----
54

onlyif mysql # DIV for integer division: 
query I rowsort label-9402
SELECT - 12 DIV 14 - + 84
----
-84

skipif mysql # not compatible
query I rowsort label-9402
SELECT - 12 / 14 - + 84
----
-84

query I rowsort
SELECT - 35 + 99
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-9404
SELECT + - 80 * MAX( 12 + - 97 * + 12 ) AS col2
----
92160

skipif mysql # not compatible
query I rowsort label-9404
SELECT + - 80 * MAX ( 12 + - 97 * + 12 ) AS col2
----
92160

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9405
SELECT + CASE - NULLIF ( + COALESCE ( 18, 49, - 61 + 74 ), 39 + 51 ) WHEN 59 - 17 * ( CASE MIN( ALL 30 ) WHEN + 40 THEN 6 END ) THEN NULL WHEN 81 + 9 THEN - 11 WHEN CAST( NULL AS SIGNED ) THEN NULL ELSE + 94 END
----
94

skipif mysql # not compatible
query I rowsort label-9405
SELECT + CASE - NULLIF ( + COALESCE ( 18, 49, - 61 + 74 ), 39 + 51 ) WHEN 59 - 17 * ( CASE MIN ( ALL 30 ) WHEN + 40 THEN 6 END ) THEN NULL WHEN 81 + 9 THEN - 11 WHEN CAST ( NULL AS INTEGER ) THEN NULL ELSE + 94 END
----
94

query I rowsort
SELECT ALL + + 91 * 20
----
1820

query I rowsort
SELECT DISTINCT 41 * + 16 - + 76 * + 49
----
-3068

query I rowsort
SELECT + + 19 * 28 AS col0
----
532

query I rowsort
SELECT ALL 10 * 7 AS col0
----
70

query I rowsort
SELECT DISTINCT + 0 * 69 - - 88 AS col0
----
88

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9411
SELECT + + 43 * 70 - CAST( 19 + 41 AS SIGNED ) * 58
----
-470

skipif mysql # not compatible
query I rowsort label-9411
SELECT + + 43 * 70 - CAST ( 19 + 41 AS INTEGER ) * 58
----
-470

query I rowsort
SELECT + + 93 AS col2
----
93

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9413
SELECT + CAST( NULL AS SIGNED ) * 91
----
NULL

skipif mysql # not compatible
query I rowsort label-9413
SELECT + CAST ( NULL AS INTEGER ) * 91
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9414
SELECT + COUNT( * ) * - ( 58 )
----
-58

skipif mysql # not compatible
query I rowsort label-9414
SELECT + COUNT ( * ) * - ( 58 )
----
-58

query I rowsort
SELECT ALL - ( - 34 ) * 16
----
544

onlyif mysql # aggregate syntax: 
query I rowsort label-9416
SELECT SUM( 17 ) col2
----
17

skipif mysql # not compatible
query I rowsort label-9416
SELECT SUM ( 17 ) col2
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-9417
SELECT + CASE - - 56 WHEN - ( 23 ) THEN MIN( ALL 31 ) WHEN - CASE - 29 WHEN 31 THEN 38 / 24 END THEN - 96 ELSE NULL END col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9417
SELECT + CASE - - 56 WHEN - ( 23 ) THEN MIN ( ALL 31 ) WHEN - CASE - 29 WHEN 31 THEN 38 / 24 END THEN - 96 ELSE NULL END col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9418
SELECT DISTINCT + CAST( - - 27 AS SIGNED ) * 16 - - 98 AS col0
----
530

skipif mysql # not compatible
query I rowsort label-9418
SELECT DISTINCT + CAST ( - - 27 AS INTEGER ) * 16 - - 98 AS col0
----
530

query I rowsort
SELECT ALL 32 * + - 75 * - 41
----
98400

onlyif mysql # aggregate syntax: 
query I rowsort label-9420
SELECT ALL SUM( DISTINCT + 88 )
----
88

skipif mysql # not compatible
query I rowsort label-9420
SELECT ALL SUM ( DISTINCT + 88 )
----
88

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9421
SELECT COUNT( - CAST( NULL AS SIGNED ) )
----
0

skipif mysql # not compatible
query I rowsort label-9421
SELECT COUNT ( - CAST ( NULL AS INTEGER ) )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9422
SELECT ALL COUNT( * ) * + CASE WHEN + 15 <> - 22 / - COUNT( * ) THEN COALESCE ( + 63, + 79 * ( 6 ) ) * 13 ELSE + 19 * - 75 + + 71 END
----
819

skipif mysql # not compatible
query I rowsort label-9422
SELECT ALL COUNT ( * ) * + CASE WHEN + 15 <> - 22 / - COUNT ( * ) THEN COALESCE ( + 63, + 79 * ( 6 ) ) * 13 ELSE + 19 * - 75 + + 71 END
----
819

query I rowsort
SELECT + 20 - + 84 AS col0
----
-64

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9424
SELECT ALL - CAST( COUNT( * ) AS SIGNED ) DIV COUNT( * ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-9424
SELECT ALL - CAST ( COUNT ( * ) AS INTEGER ) / COUNT ( * ) AS col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9425
SELECT MIN( - 65 )
----
-65

skipif mysql # not compatible
query I rowsort label-9425
SELECT MIN ( - 65 )
----
-65

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9426
SELECT + COUNT( * ) DIV + 26 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9426
SELECT + COUNT ( * ) / + 26 AS col0
----
0

query I rowsort
SELECT + 67 + - - ( 84 )
----
151

onlyif mysql # aggregate syntax: 
query I rowsort label-9428
SELECT DISTINCT SUM( ALL + 81 ) AS col1
----
81

skipif mysql # not compatible
query I rowsort label-9428
SELECT DISTINCT SUM ( ALL + 81 ) AS col1
----
81

query I rowsort
SELECT + 60 + + 33 * 95 AS col1
----
3195

query I rowsort
SELECT - 25 * - - 68 AS col2
----
-1700

onlyif mysql # DIV for integer division: 
query I rowsort label-9431
SELECT ALL COALESCE ( - 94, 8 DIV 32, + 54 ) + - 27 AS col1
----
-121

skipif mysql # not compatible
query I rowsort label-9431
SELECT ALL COALESCE ( - 94, 8 / 32, + 54 ) + - 27 AS col1
----
-121

query I rowsort
SELECT DISTINCT - 3 * - + 89 * - 39
----
-10413

onlyif mysql # aggregate syntax: 
query I rowsort label-9433
SELECT - 89 + 40 * COUNT( * )
----
-49

skipif mysql # not compatible
query I rowsort label-9433
SELECT - 89 + 40 * COUNT ( * )
----
-49

query I rowsort
SELECT ALL 95 + 29
----
124

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9435
SELECT DISTINCT ( + NULLIF ( + COALESCE ( + 55, CAST( NULL AS SIGNED ) + + 83 ), 17 * 74 ) ) + 32
----
87

skipif mysql # not compatible
query I rowsort label-9435
SELECT DISTINCT ( + NULLIF ( + COALESCE ( + 55, CAST ( NULL AS INTEGER ) + + 83 ), 17 * 74 ) ) + 32
----
87

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9436
SELECT ALL + + SUM( - 12 ) + + 94 DIV + 7 col0
----
1

skipif mysql # not compatible
query I rowsort label-9436
SELECT ALL + + SUM ( - 12 ) + + 94 / + 7 col0
----
1

query I rowsort
SELECT - 39 + - 60 AS col1
----
-99

query I rowsort
SELECT DISTINCT - 86 * - + 73 AS col2
----
6278

onlyif mysql # DIV for integer division: 
query I rowsort label-9439
SELECT + 83 DIV + 87 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-9439
SELECT + 83 / + 87 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9440
SELECT + + ( - 18 ) * COUNT( * )
----
-18

skipif mysql # not compatible
query I rowsort label-9440
SELECT + + ( - 18 ) * COUNT ( * )
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-9441
SELECT - - ( + + ( - MAX( 46 ) ) ) AS col0
----
-46

skipif mysql # not compatible
query I rowsort label-9441
SELECT - - ( + + ( - MAX ( 46 ) ) ) AS col0
----
-46

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9442
SELECT ALL + CAST( - 79 AS SIGNED )
----
-79

skipif mysql # not compatible
query I rowsort label-9442
SELECT ALL + CAST ( - 79 AS INTEGER )
----
-79

query I rowsort
SELECT ALL + 95 + + 90 * + 30
----
2795

onlyif mysql # aggregate syntax: 
query I rowsort label-9444
SELECT - - 89 + MAX( DISTINCT - 28 ) + + 62 * 33 * - 12 AS col2
----
-24491

skipif mysql # not compatible
query I rowsort label-9444
SELECT - - 89 + MAX ( DISTINCT - 28 ) + + 62 * 33 * - 12 AS col2
----
-24491

query I rowsort
SELECT + 85 * + 37 - 3 + + 43 AS col1
----
3185

query I rowsort
SELECT - + 9 + + 82
----
73

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9447
SELECT ALL - COUNT( * ) DIV + - COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-9447
SELECT ALL - COUNT ( * ) / + - COUNT ( * )
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9448
SELECT ALL - COUNT( * ) DIV + COUNT( * ) * COALESCE ( COUNT( * ), - 1 - COALESCE ( 51, - 87 ) ) - - 28 AS col1
----
27

skipif mysql # not compatible
query I rowsort label-9448
SELECT ALL - COUNT ( * ) / + COUNT ( * ) * COALESCE ( COUNT ( * ), - 1 - COALESCE ( 51, - 87 ) ) - - 28 AS col1
----
27

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9449
SELECT DISTINCT - - NULLIF ( + - SUM( NULLIF ( + 79, + CAST( NULL AS SIGNED ) * ( ( 41 ) ) ) ), 43 ) * ( 7 ) AS col2
----
-553

skipif mysql # not compatible
query I rowsort label-9449
SELECT DISTINCT - - NULLIF ( + - SUM ( NULLIF ( + 79, + CAST ( NULL AS INTEGER ) * ( ( 41 ) ) ) ), 43 ) * ( 7 ) AS col2
----
-553

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9450
SELECT ALL - + 1 / - 19 + + 20 * CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9450
SELECT ALL - + 1 / - 19 + + 20 * CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9451
SELECT DISTINCT 39 / - + 52 + 34 * - 27 - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9451
SELECT DISTINCT 39 / - + 52 + 34 * - 27 - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9452
SELECT ALL - 43 DIV - COUNT( ALL 48 ) AS col2
----
43

skipif mysql # not compatible
query I rowsort label-9452
SELECT ALL - 43 / - COUNT ( ALL 48 ) AS col2
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-9453
SELECT + + NULLIF ( + - MIN( + 10 ), 58 )
----
-10

skipif mysql # not compatible
query I rowsort label-9453
SELECT + + NULLIF ( + - MIN ( + 10 ), 58 )
----
-10

query I rowsort
SELECT ALL - 51 * + + 55 * + 51 AS col0
----
-143055

onlyif mysql # DIV for integer division: 
query I rowsort label-9455
SELECT + COALESCE ( 35, 25 DIV + 88 )
----
35

skipif mysql # not compatible
query I rowsort label-9455
SELECT + COALESCE ( 35, 25 / + 88 )
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-9456
SELECT ALL + CASE 43 WHEN COALESCE ( COUNT( ALL 60 ), COUNT( * ) * + 44, 78 ) - + 31 THEN + 35 END
----
NULL

skipif mysql # not compatible
query I rowsort label-9456
SELECT ALL + CASE 43 WHEN COALESCE ( COUNT ( ALL 60 ), COUNT ( * ) * + 44, 78 ) - + 31 THEN + 35 END
----
NULL

query I rowsort
SELECT - + 13 * - 41 * 5 AS col0
----
2665

onlyif mysql # DIV for integer division: 
query I rowsort label-9458
SELECT + + 7 * - 98 DIV 89
----
-7

skipif mysql # not compatible
query I rowsort label-9458
SELECT + + 7 * - 98 / 89
----
-7

onlyif mysql # DIV for integer division: 
query I rowsort label-9459
SELECT - 44 + + 37 DIV - NULLIF ( 29 * 46 - 14, 18 * 44 )
----
-44

skipif mysql # not compatible
query I rowsort label-9459
SELECT - 44 + + 37 / - NULLIF ( 29 * 46 - 14, 18 * 44 )
----
-44

query I rowsort
SELECT DISTINCT + - 84 AS col2
----
-84

query I rowsort
SELECT - 27 + + 33 AS col0
----
6

query I rowsort
SELECT ALL - ( - 38 ) AS col1
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-9463
SELECT DISTINCT - COUNT( ALL + 95 ) * 7 * + 66
----
-462

skipif mysql # not compatible
query I rowsort label-9463
SELECT DISTINCT - COUNT ( ALL + 95 ) * 7 * + 66
----
-462

query I rowsort
SELECT 12 * - 3 AS col1
----
-36

query I rowsort
SELECT DISTINCT - ( - 4 )
----
4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9466
SELECT ALL - CAST( + MAX( + - 16 ) AS SIGNED ) AS col1
----
16

skipif mysql # not compatible
query I rowsort label-9466
SELECT ALL - CAST ( + MAX ( + - 16 ) AS INTEGER ) AS col1
----
16

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9467
SELECT COALESCE ( + 68, CASE + 83 WHEN COUNT( * ) + CAST( - 40 AS DECIMAL ) * - COUNT( * ) THEN 68 WHEN - 16 * SUM( ALL 74 ) THEN + 59 + 37 ELSE NULL END ) + NULLIF ( + ( 88 ) + + COUNT( * ) * + 17, 43 * - 81 + + ( 66 ) * - COALESCE ( 18, - 34 ) ) * + 34
----
3638

skipif mysql # not compatible
query I rowsort label-9467
SELECT COALESCE ( + 68, CASE + 83 WHEN COUNT ( * ) + CAST ( - 40 AS REAL ) * - COUNT ( * ) THEN 68 WHEN - 16 * SUM ( ALL 74 ) THEN + 59 + 37 ELSE NULL END ) + NULLIF ( + ( 88 ) + + COUNT ( * ) * + 17, 43 * - 81 + + ( 66 ) * - COALESCE ( 18, - 34 ) ) * + 34
----
3638

query II rowsort
SELECT ALL - 67 AS col0, + 98 col1
----
-67
98

onlyif mysql # aggregate syntax: 
query I rowsort label-9469
SELECT 2 * + - COUNT( * ) AS col1
----
-2

skipif mysql # not compatible
query I rowsort label-9469
SELECT 2 * + - COUNT ( * ) AS col1
----
-2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9470
SELECT 38 + - + CAST( 72 AS SIGNED ) * ( - COUNT( * ) * 26 - 66 )
----
6662

skipif mysql # not compatible
query I rowsort label-9470
SELECT 38 + - + CAST ( 72 AS INTEGER ) * ( - COUNT ( * ) * 26 - 66 )
----
6662

query II rowsort
SELECT 46 AS col1, 97
----
46
97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9472
SELECT CAST( NULL AS SIGNED ) + + MIN( + 10 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9472
SELECT CAST ( NULL AS INTEGER ) + + MIN ( + 10 )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9473
SELECT ALL CAST( 67 AS SIGNED ) + + 12 + - 36
----
43

skipif mysql # not compatible
query I rowsort label-9473
SELECT ALL CAST ( 67 AS INTEGER ) + + 12 + - 36
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-9474
SELECT COUNT( * ) * - 53
----
-53

skipif mysql # not compatible
query I rowsort label-9474
SELECT COUNT ( * ) * - 53
----
-53

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9475
SELECT ALL COALESCE ( - - MIN( - - 19 ), 67 DIV 47 ) * - 8
----
-152

skipif mysql # not compatible
query I rowsort label-9475
SELECT ALL COALESCE ( - - MIN ( - - 19 ), 67 / 47 ) * - 8
----
-152

onlyif mysql # aggregate syntax: 
query I rowsort label-9476
SELECT ALL 19 + - COUNT( + 77 )
----
18

skipif mysql # not compatible
query I rowsort label-9476
SELECT ALL 19 + - COUNT ( + 77 )
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-9477
SELECT DISTINCT 42 + - + COUNT( * )
----
41

skipif mysql # not compatible
query I rowsort label-9477
SELECT DISTINCT 42 + - + COUNT ( * )
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-9478
SELECT ALL 1 + - COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-9478
SELECT ALL 1 + - COUNT ( * )
----
0

query I rowsort
SELECT 62 * + - 29 AS col0
----
-1798

query I rowsort
SELECT ALL - 98 + + 89 col1
----
-9

query I rowsort
SELECT ALL + 24 + + - 12 + + 98 * - 73 AS col2
----
-7142

query I rowsort
SELECT + ( + 76 ) * 97
----
7372

query I rowsort
SELECT ALL 87 - + 58 + - 94 * 86 AS col0
----
-8055

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9484
SELECT 7 * + CASE - 47 WHEN + 69 THEN NULL WHEN - 25 THEN COALESCE ( + COUNT( * ), - 97 ) WHEN 90 THEN CASE 47 WHEN + 60 THEN NULL ELSE - 61 END * 34 + 79 * CAST( + 81 * 16 - - 37 AS SIGNED ) ELSE NULL END * + 38
----
NULL

skipif mysql # not compatible
query I rowsort label-9484
SELECT 7 * + CASE - 47 WHEN + 69 THEN NULL WHEN - 25 THEN COALESCE ( + COUNT ( * ), - 97 ) WHEN 90 THEN CASE 47 WHEN + 60 THEN NULL ELSE - 61 END * 34 + 79 * CAST ( + 81 * 16 - - 37 AS INTEGER ) ELSE NULL END * + 38
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9485
SELECT DISTINCT - ( 91 ) * + 73 + CASE + 1 + 89 * - 5 WHEN - 39 THEN 45 * 90 END / COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9485
SELECT DISTINCT - ( 91 ) * + 73 + CASE + 1 + 89 * - 5 WHEN - 39 THEN 45 * 90 END / COUNT ( * ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9486
SELECT ALL + - ( CASE + - 42 WHEN + 71 THEN - ( - COUNT( * ) ) END ) - 65 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9486
SELECT ALL + - ( CASE + - 42 WHEN + 71 THEN - ( - COUNT ( * ) ) END ) - 65 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9487
SELECT ALL - CASE 76 WHEN 77 * - 87 THEN + 91 * + COUNT( * ) + 76 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-9487
SELECT ALL - CASE 76 WHEN 77 * - 87 THEN + 91 * + COUNT ( * ) + 76 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9488
SELECT DISTINCT 14 * COUNT( * ) * 73 + - CASE 51 WHEN 99 THEN + COUNT( * ) + - 32 ELSE - COUNT( * ) END * NULLIF ( + 63 + - SUM( 43 ) * 15, + MIN( ALL 61 ) )
----
440

skipif mysql # not compatible
query I rowsort label-9488
SELECT DISTINCT 14 * COUNT ( * ) * 73 + - CASE 51 WHEN 99 THEN + COUNT ( * ) + - 32 ELSE - COUNT ( * ) END * NULLIF ( + 63 + - SUM ( 43 ) * 15, + MIN ( ALL 61 ) )
----
440

query II rowsort
SELECT + - 99 AS col1, 48
----
-99
48

onlyif mysql # aggregate syntax: 
query I rowsort label-9490
SELECT COUNT( ALL + 45 ) * - + 35
----
-35

skipif mysql # not compatible
query I rowsort label-9490
SELECT COUNT ( ALL + 45 ) * - + 35
----
-35

query I rowsort
SELECT ALL + + 24 * 77 * - ( + 52 ) col2
----
-96096

query II rowsort
SELECT ALL - 35 AS col1, - 54
----
-35
-54

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9493
SELECT - 89 / CASE + - CAST( 71 AS SIGNED ) WHEN 47 * - 16 THEN 68 END * - NULLIF ( 50 + 12, AVG ( 29 ) * 29 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9493
SELECT - 89 / CASE + - CAST ( 71 AS INTEGER ) WHEN 47 * - 16 THEN 68 END * - NULLIF ( 50 + 12, AVG ( 29 ) * 29 ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9494
SELECT - CASE 17 WHEN COUNT( * ) THEN - NULLIF ( - COUNT( * ), COALESCE ( - 7, 38 + - COUNT( * ) ) ) WHEN + 86 THEN - 86 WHEN CASE + 59 WHEN - 79 * - 37 - + 69 * 92 THEN 49 * 78 END THEN + 10 + 71 * - 87 END + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-9494
SELECT - CASE 17 WHEN COUNT ( * ) THEN - NULLIF ( - COUNT ( * ), COALESCE ( - 7, 38 + - COUNT ( * ) ) ) WHEN + 86 THEN - 86 WHEN CASE + 59 WHEN - 79 * - 37 - + 69 * 92 THEN 49 * 78 END THEN + 10 + 71 * - 87 END + COUNT ( * )
----
NULL

query I rowsort
SELECT ALL - - 72 col1
----
72

onlyif mysql # DIV for integer division: 
query I rowsort label-9496
SELECT 12 DIV + 25
----
0

skipif mysql # not compatible
query I rowsort label-9496
SELECT 12 / + 25
----
0

query I rowsort
SELECT ALL + 93 * + 78 AS col2
----
7254

onlyif mysql # DIV for integer division: 
query I rowsort label-9498
SELECT DISTINCT + 20 DIV - + 91 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9498
SELECT DISTINCT + 20 / - + 91 AS col0
----
0

query I rowsort
SELECT DISTINCT + 11 + 92
----
103

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9500
SELECT 2 DIV + ( COUNT( * ) ) AS col2
----
2

skipif mysql # not compatible
query I rowsort label-9500
SELECT 2 / + ( COUNT ( * ) ) AS col2
----
2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9501
SELECT COUNT( * ) DIV - 95 col1
----
0

skipif mysql # not compatible
query I rowsort label-9501
SELECT COUNT ( * ) / - 95 col1
----
0

query I rowsort
SELECT ALL + ( 65 ) + - 75 AS col2
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-9503
SELECT 9 - + COUNT( + 70 ) * - - 58 AS col0
----
-49

skipif mysql # not compatible
query I rowsort label-9503
SELECT 9 - + COUNT ( + 70 ) * - - 58 AS col0
----
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-9504
SELECT 47 * - CASE 58 WHEN - 24 * + 83 THEN NULL WHEN COUNT( DISTINCT 22 ) + 11 * 5 THEN COUNT( * ) END * 52
----
NULL

skipif mysql # not compatible
query I rowsort label-9504
SELECT 47 * - CASE 58 WHEN - 24 * + 83 THEN NULL WHEN COUNT ( DISTINCT 22 ) + 11 * 5 THEN COUNT ( * ) END * 52
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9505
SELECT 18 - - - 49 * 31 + 64 * - COUNT( * )
----
-1565

skipif mysql # not compatible
query I rowsort label-9505
SELECT 18 - - - 49 * 31 + 64 * - COUNT ( * )
----
-1565

query I rowsort
SELECT DISTINCT - ( + ( + - 38 ) ) * + 88 * 53
----
177232

query I rowsort
SELECT ALL + 94 + + 79
----
173

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9508
SELECT ALL - 30 + + + CAST( + COUNT( * ) AS SIGNED ) * 77 + 21 AS col2
----
68

skipif mysql # not compatible
query I rowsort label-9508
SELECT ALL - 30 + + + CAST ( + COUNT ( * ) AS INTEGER ) * 77 + 21 AS col2
----
68

query I rowsort
SELECT DISTINCT + ( 80 ) + + 19 + - 27
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-9510
SELECT DISTINCT + COUNT( * ) * - - 56
----
56

skipif mysql # not compatible
query I rowsort label-9510
SELECT DISTINCT + COUNT ( * ) * - - 56
----
56

query I rowsort
SELECT ALL 1 + + - 89 col1
----
-88

query I rowsort
SELECT 53 - + 69
----
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-9513
SELECT ALL COUNT( ALL - 37 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-9513
SELECT ALL COUNT ( ALL - 37 ) AS col1
----
1

query I rowsort
SELECT 33 * + + 42
----
1386

query I rowsort
SELECT 37 + + 38 + + 59 * 43 * 40 AS col0
----
101555

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9516
SELECT ALL 65 + + COALESCE ( + CAST( - CASE 63 WHEN + COUNT( * ) THEN NULL WHEN 24 THEN 13 + - 99 END AS SIGNED ), 51 ) AS col0
----
116

skipif mysql # not compatible
query I rowsort label-9516
SELECT ALL 65 + + COALESCE ( + CAST ( - CASE 63 WHEN + COUNT ( * ) THEN NULL WHEN 24 THEN 13 + - 99 END AS INTEGER ), 51 ) AS col0
----
116

onlyif mysql # aggregate syntax: 
query I rowsort label-9517
SELECT 53 + ( + 57 ) + + - COUNT( * ) * - COUNT( * ) AS col1
----
111

skipif mysql # not compatible
query I rowsort label-9517
SELECT 53 + ( + 57 ) + + - COUNT ( * ) * - COUNT ( * ) AS col1
----
111

query I rowsort
SELECT ALL 14 * 72 + + 28
----
1036

query I rowsort
SELECT ALL - 67 - 33 AS col0
----
-100

query I rowsort
SELECT 45 + - 75
----
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-9521
SELECT ALL + + ( - + CASE + MIN( + + 47 ) WHEN - 55 * 63 THEN NULL ELSE 7 END ) * 60 AS col0
----
-420

skipif mysql # not compatible
query I rowsort label-9521
SELECT ALL + + ( - + CASE + MIN ( + + 47 ) WHEN - 55 * 63 THEN NULL ELSE 7 END ) * 60 AS col0
----
-420

query I rowsort
SELECT + COALESCE ( - - 17, + 91 * 25 ) * 66 AS col1
----
1122

onlyif mysql # aggregate syntax: 
query I rowsort label-9523
SELECT ALL + 76 * - ( + 36 ) * + + COUNT( * )
----
-2736

skipif mysql # not compatible
query I rowsort label-9523
SELECT ALL + 76 * - ( + 36 ) * + + COUNT ( * )
----
-2736

onlyif mysql # aggregate syntax: 
query I rowsort label-9524
SELECT 22 + + COUNT( - 47 ) - 84 * 89 col1
----
-7453

skipif mysql # not compatible
query I rowsort label-9524
SELECT 22 + + COUNT ( - 47 ) - 84 * 89 col1
----
-7453

onlyif mysql # aggregate syntax: 
query I rowsort label-9525
SELECT ALL - ( - - 70 ) * + 65 + + COUNT( - 54 ) * 57
----
-4493

skipif mysql # not compatible
query I rowsort label-9525
SELECT ALL - ( - - 70 ) * + 65 + + COUNT ( - 54 ) * 57
----
-4493

onlyif mysql # aggregate syntax: 
query I rowsort label-9526
SELECT DISTINCT - COUNT( + + 2 )
----
-1

skipif mysql # not compatible
query I rowsort label-9526
SELECT DISTINCT - COUNT ( + + 2 )
----
-1

query I rowsort
SELECT + NULLIF ( + + 69, + - 92 ) + + - 48 AS col1
----
21

query I rowsort
SELECT - 46 * - 7 * - 55
----
-17710

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9529
SELECT 14 + 34 - SUM( ALL + 13 ) - 39 * CASE 59 WHEN CAST( 45 AS SIGNED ) * 78 THEN + 80 WHEN - 59 / + 81 THEN NULL ELSE - 85 * 96 END
----
318275

skipif mysql # not compatible
query I rowsort label-9529
SELECT 14 + 34 - SUM ( ALL + 13 ) - 39 * CASE 59 WHEN CAST ( 45 AS INTEGER ) * 78 THEN + 80 WHEN - 59 / + 81 THEN NULL ELSE - 85 * 96 END
----
318275

onlyif mysql # aggregate syntax: 
query I rowsort label-9530
SELECT 1 * - - SUM( - 65 )
----
-65

skipif mysql # not compatible
query I rowsort label-9530
SELECT 1 * - - SUM ( - 65 )
----
-65

query I rowsort
SELECT - 60 * 91 * + + 40
----
-218400

query I rowsort
SELECT ALL - - 43 AS col1
----
43

query I rowsort
SELECT ALL + - 87 AS col2
----
-87

onlyif mysql # DIV for integer division: 
query I rowsort label-9534
SELECT + + 80 * 24 + 51 + - + 72 DIV 48 AS col0
----
1970

skipif mysql # not compatible
query I rowsort label-9534
SELECT + + 80 * 24 + 51 + - + 72 / 48 AS col0
----
1970

query I rowsort
SELECT DISTINCT + 69 * + ( CASE WHEN + 2 <= - ( 30 ) * 94 + - 0 * + 79 THEN 64 END ) * 81
----
NULL

query I rowsort
SELECT DISTINCT + - 5 AS col0
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-9537
SELECT ALL + + COUNT( * ) * 70 * - COUNT( * ) + - - 35
----
-35

skipif mysql # not compatible
query I rowsort label-9537
SELECT ALL + + COUNT ( * ) * 70 * - COUNT ( * ) + - - 35
----
-35

query II rowsort
SELECT ALL + 24 * 93, 14 + 43 + - 92 AS col1
----
2232
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-9539
SELECT DISTINCT - 26 * - - CASE - - 94 WHEN - NULLIF ( 93, COUNT( * ) ) * + 31 THEN NULLIF ( + NULLIF ( - 9, - 4 * + 39 ), 18 ) ELSE NULL END + COALESCE ( 35, + 21, + 56 ) * 21
----
NULL

skipif mysql # not compatible
query I rowsort label-9539
SELECT DISTINCT - 26 * - - CASE - - 94 WHEN - NULLIF ( 93, COUNT ( * ) ) * + 31 THEN NULLIF ( + NULLIF ( - 9, - 4 * + 39 ), 18 ) ELSE NULL END + COALESCE ( 35, + 21, + 56 ) * 21
----
NULL

query I rowsort
SELECT NULLIF ( + ( + + 31 ), + - 76 ) AS col1
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-9541
SELECT SUM( - 33 ) AS col0
----
-33

skipif mysql # not compatible
query I rowsort label-9541
SELECT SUM ( - 33 ) AS col0
----
-33

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9542
SELECT - COUNT( * ) DIV + 52 + 52 + ( - + 73 ) AS col1
----
-21

skipif mysql # not compatible
query I rowsort label-9542
SELECT - COUNT ( * ) / + 52 + 52 + ( - + 73 ) AS col1
----
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-9543
SELECT MAX( - 93 ) AS col1
----
-93

skipif mysql # not compatible
query I rowsort label-9543
SELECT MAX ( - 93 ) AS col1
----
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-9544
SELECT + 37 + + 67 * COUNT( * ) + - SUM( ALL 22 ) * 42
----
-820

skipif mysql # not compatible
query I rowsort label-9544
SELECT + 37 + + 67 * COUNT ( * ) + - SUM ( ALL 22 ) * 42
----
-820

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9545
SELECT DISTINCT + COUNT( * ) AS col1, CAST( NULL AS SIGNED ) col1
----
1
NULL

skipif mysql # not compatible
query II rowsort label-9545
SELECT DISTINCT + COUNT ( * ) AS col1, CAST ( NULL AS INTEGER ) col1
----
1
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9546
SELECT ALL 86 * - - 79 + - - COUNT( * ) AS col2
----
6795

skipif mysql # not compatible
query I rowsort label-9546
SELECT ALL 86 * - - 79 + - - COUNT ( * ) AS col2
----
6795

onlyif mysql # aggregate syntax: 
query I rowsort label-9547
SELECT DISTINCT + MAX( - + 23 )
----
-23

skipif mysql # not compatible
query I rowsort label-9547
SELECT DISTINCT + MAX ( - + 23 )
----
-23

query I rowsort
SELECT + 95 * 47
----
4465

onlyif mysql # aggregate syntax: 
query I rowsort label-9549
SELECT ALL + 99 - - 17 + - - COUNT( * )
----
117

skipif mysql # not compatible
query I rowsort label-9549
SELECT ALL + 99 - - 17 + - - COUNT ( * )
----
117

query I rowsort
SELECT - 71 * - 25 AS col0
----
1775

query I rowsort
SELECT DISTINCT + 90 * + 51
----
4590

onlyif mysql # aggregate syntax: 
query I rowsort label-9552
SELECT ALL + 73 * + COUNT( * )
----
73

skipif mysql # not compatible
query I rowsort label-9552
SELECT ALL + 73 * + COUNT ( * )
----
73

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9553
SELECT - + CAST( COUNT( * ) AS SIGNED ) * 36
----
-36

skipif mysql # not compatible
query I rowsort label-9553
SELECT - + CAST ( COUNT ( * ) AS INTEGER ) * 36
----
-36

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9554
SELECT DISTINCT + CASE + NULLIF ( 80, + 58 ) WHEN + MAX( ALL - 6 ) THEN COUNT( DISTINCT 95 ) * 78 END - CASE 25 - ( 26 ) WHEN - 44 THEN NULL WHEN CAST( NULL AS SIGNED ) * 6 THEN NULL ELSE 6 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9554
SELECT DISTINCT + CASE + NULLIF ( 80, + 58 ) WHEN + MAX ( ALL - 6 ) THEN COUNT ( DISTINCT 95 ) * 78 END - CASE 25 - ( 26 ) WHEN - 44 THEN NULL WHEN CAST ( NULL AS INTEGER ) * 6 THEN NULL ELSE 6 END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9555
SELECT - - ( 90 ) * - + 67 + 75 * CASE 20 WHEN + COUNT( * ) * - 99 THEN NULL ELSE - SUM( + ( 18 ) ) * COUNT( * ) + - 36 END + MIN( DISTINCT - ( 63 ) )
----
-10143

skipif mysql # not compatible
query I rowsort label-9555
SELECT - - ( 90 ) * - + 67 + 75 * CASE 20 WHEN + COUNT ( * ) * - 99 THEN NULL ELSE - SUM ( + ( 18 ) ) * COUNT ( * ) + - 36 END + MIN ( DISTINCT - ( 63 ) )
----
-10143

query I rowsort
SELECT ALL - 50 col1
----
-50

query II rowsort
SELECT ALL - 26, - 81 col0
----
-26
-81

query I rowsort
SELECT ALL - 64 * + + 9 AS col0
----
-576

query I rowsort
SELECT ALL CASE + + 63 WHEN - + 22 THEN NULL ELSE - - 33 * 17 * + 19 END AS col1
----
10659

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9560
SELECT - - CAST( NULL AS DECIMAL ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9560
SELECT - - CAST ( NULL AS REAL ) AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9561
SELECT ALL - 20 DIV - COUNT( * ) + + + COUNT( * ) DIV 25
----
20

skipif mysql # not compatible
query I rowsort label-9561
SELECT ALL - 20 / - COUNT ( * ) + + + COUNT ( * ) / 25
----
20

onlyif mysql # DIV for integer division: 
query I rowsort label-9562
SELECT + - 9 DIV - 22 - - NULLIF ( + 41, + 73 DIV 67 ) AS col2
----
41

skipif mysql # not compatible
query I rowsort label-9562
SELECT + - 9 / - 22 - - NULLIF ( + 41, + 73 / 67 ) AS col2
----
41

query I rowsort
SELECT DISTINCT CASE WHEN - 44 NOT BETWEEN - - NULLIF ( - 63, 35 ) * + 71 AND NULL THEN NULL ELSE - 3 END + + 70 AS col2
----
67

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9564
SELECT COUNT( + 78 ) DIV - COALESCE ( - 52, - COUNT( * ), - 97 ) - - 30
----
30

skipif mysql # not compatible
query I rowsort label-9564
SELECT COUNT ( + 78 ) / - COALESCE ( - 52, - COUNT ( * ), - 97 ) - - 30
----
30

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9565
SELECT DISTINCT - 75 DIV ( + COUNT( * ) ) + 60
----
-15

skipif mysql # not compatible
query I rowsort label-9565
SELECT DISTINCT - 75 / ( + COUNT ( * ) ) + 60
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-9566
SELECT + 74 * - 1 * + - SUM( 38 ) AS col2
----
2812

skipif mysql # not compatible
query I rowsort label-9566
SELECT + 74 * - 1 * + - SUM ( 38 ) AS col2
----
2812

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9567
SELECT + 32 DIV + 52 * - - 99 * + - 21, ( COUNT( 82 ) ) AS col2
----
0
1

skipif mysql # not compatible
query II rowsort label-9567
SELECT + 32 / + 52 * - - 99 * + - 21, ( COUNT ( 82 ) ) AS col2
----
0
1

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9568
SELECT ALL - 49 / + COALESCE ( + 74, + 53 ) + - CAST( NULL AS DECIMAL ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9568
SELECT ALL - 49 / + COALESCE ( + 74, + 53 ) + - CAST ( NULL AS REAL ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9569
SELECT + 44 * - COUNT( * )
----
-44

skipif mysql # not compatible
query I rowsort label-9569
SELECT + 44 * - COUNT ( * )
----
-44

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9570
SELECT CAST( - 54 AS SIGNED )
----
-54

skipif mysql # not compatible
query I rowsort label-9570
SELECT CAST ( - 54 AS INTEGER )
----
-54

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9571
SELECT CAST( + 55 AS SIGNED ) AS col0, 69 * + - 76 AS col0
----
55
-5244

skipif mysql # not compatible
query II rowsort label-9571
SELECT CAST ( + 55 AS INTEGER ) AS col0, 69 * + - 76 AS col0
----
55
-5244

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9572
SELECT + CAST( + 24 AS SIGNED ) AS col1
----
24

skipif mysql # not compatible
query I rowsort label-9572
SELECT + CAST ( + 24 AS INTEGER ) AS col1
----
24

query I rowsort
SELECT + CASE - 44 WHEN - 19 / - + ( + + 83 ) + + 90 THEN NULL WHEN 5 + + 78 THEN NULL ELSE 86 END
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-9574
SELECT ALL 84 * + 12 * + 26 * - 33 * - + SUM( DISTINCT + 53 ) AS col1
----
45837792

skipif mysql # not compatible
query I rowsort label-9574
SELECT ALL 84 * + 12 * + 26 * - 33 * - + SUM ( DISTINCT + 53 ) AS col1
----
45837792

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9575
SELECT DISTINCT + COUNT( + - 21 ) * - 6 + - - ( - + 57 ) DIV - 6 AS col2
----
3

skipif mysql # not compatible
query I rowsort label-9575
SELECT DISTINCT + COUNT ( + - 21 ) * - 6 + - - ( - + 57 ) / - 6 AS col2
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9576
SELECT + CAST( NULL AS SIGNED ) AS col2, - CAST( NULL AS SIGNED )
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-9576
SELECT + CAST ( NULL AS INTEGER ) AS col2, - CAST ( NULL AS INTEGER )
----
NULL
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9577
SELECT + NULLIF ( - ( - - 34 ), 49 * + CAST( - - ( - 89 ) AS DECIMAL ) ) AS col1
----
-34

skipif mysql # not compatible
query I rowsort label-9577
SELECT + NULLIF ( - ( - - 34 ), 49 * + CAST ( - - ( - 89 ) AS REAL ) ) AS col1
----
-34

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-9578
SELECT + CAST( NULL AS DECIMAL ) AS col0, 15 * + + 95 + - - 11 AS col0
----
NULL
1436

skipif mysql # not compatible
query II rowsort label-9578
SELECT + CAST ( NULL AS REAL ) AS col0, 15 * + + 95 + - - 11 AS col0
----
NULL
1436

query I rowsort
SELECT ALL 48 * - 33 AS col2
----
-1584

query I rowsort
SELECT ( 1 ) AS col0
----
1

query II rowsort
SELECT + 0 AS col1, 58 * - - 54
----
0
3132

onlyif mysql # DIV for integer division: 
query II rowsort label-9582
SELECT + 72 - + 20, - 93 + 95 DIV 74 AS col0
----
52
-92

skipif mysql # not compatible
query II rowsort label-9582
SELECT + 72 - + 20, - 93 + 95 / 74 AS col0
----
52
-92

query I rowsort
SELECT + ( 76 ) AS col2
----
76

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9584
SELECT COALESCE ( + 1, - ( - CAST( + 80 AS SIGNED ) ) ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-9584
SELECT COALESCE ( + 1, - ( - CAST ( + 80 AS INTEGER ) ) ) AS col1
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9585
SELECT - 12 * + CAST( - 99 AS SIGNED )
----
1188

skipif mysql # not compatible
query I rowsort label-9585
SELECT - 12 * + CAST ( - 99 AS INTEGER )
----
1188

query II rowsort
SELECT ALL + 27, - 37 AS col1
----
27
-37

query I rowsort
SELECT ALL 30 * + 78 AS col0
----
2340

onlyif mysql # aggregate syntax: 
query I rowsort label-9588
SELECT DISTINCT MIN( + ( - 91 ) )
----
-91

skipif mysql # not compatible
query I rowsort label-9588
SELECT DISTINCT MIN ( + ( - 91 ) )
----
-91

onlyif mysql # aggregate syntax: 
query III rowsort label-9589
SELECT ALL - 72 AS col2, - 4, 77 * - ( COUNT( * ) ) AS col1
----
-72
-4
-77

skipif mysql # not compatible
query III rowsort label-9589
SELECT ALL - 72 AS col2, - 4, 77 * - ( COUNT ( * ) ) AS col1
----
-72
-4
-77

query I rowsort
SELECT DISTINCT ( + 97 ) col0
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-9591
SELECT DISTINCT - - 9 * - + COUNT( * ) * - 57 + 42 AS col2
----
555

skipif mysql # not compatible
query I rowsort label-9591
SELECT DISTINCT - - 9 * - + COUNT ( * ) * - 57 + 42 AS col2
----
555

query I rowsort
SELECT + - COALESCE ( + 2, ( ( - 81 ) ), + 24 ) * 32 + + 68 * 40
----
2656

onlyif mysql # DIV for integer division: 
query I rowsort label-9593
SELECT - 6 - 56 - COALESCE ( + 2, + 20 + - - 48 + - 86 * 32 DIV 14 ) + 91 * - 71 * 41 AS col1
----
-264965

skipif mysql # not compatible
query I rowsort label-9593
SELECT - 6 - 56 - COALESCE ( + 2, + 20 + - - 48 + - 86 * 32 / 14 ) + 91 * - 71 * 41 AS col1
----
-264965

query I rowsort
SELECT ALL + COALESCE ( 36, - - 49 )
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-9595
SELECT + - MAX( ALL + 67 ) * + 68
----
-4556

skipif mysql # not compatible
query I rowsort label-9595
SELECT + - MAX ( ALL + 67 ) * + 68
----
-4556

query I rowsort
SELECT - 19 * - 4 + - COALESCE ( 92, 88 * - + 83 + - 48 ) AS col1
----
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-9597
SELECT + + 4 + + MAX( + ( + - ( + 55 ) ) )
----
-51

skipif mysql # not compatible
query I rowsort label-9597
SELECT + + 4 + + MAX ( + ( + - ( + 55 ) ) )
----
-51

query I rowsort
SELECT ALL + - 55 + + + 76
----
21

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9599
SELECT - - ( COALESCE ( + 12, 75, + - 75 * - 49 + ( COALESCE ( + COALESCE ( SUM( ALL 54 ), 60 + 52 DIV - 94, 13 ), + ( + 15 ), + 36 + 17 ) + COUNT( * ) ) ) ) + 98 DIV + 78
----
13

skipif mysql # not compatible
query I rowsort label-9599
SELECT - - ( COALESCE ( + 12, 75, + - 75 * - 49 + ( COALESCE ( + COALESCE ( SUM ( ALL 54 ), 60 + 52 / - 94, 13 ), + ( + 15 ), + 36 + 17 ) + COUNT ( * ) ) ) ) + 98 / + 78
----
13

query I rowsort
SELECT - - 24 - + 36
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-9601
SELECT COALESCE ( COUNT( * ), - 31 ) + + 5 AS col2
----
6

skipif mysql # not compatible
query I rowsort label-9601
SELECT COALESCE ( COUNT ( * ), - 31 ) + + 5 AS col2
----
6

query I rowsort
SELECT ALL - + 50 + 42
----
-8

query I rowsort
SELECT DISTINCT - 32 + - - 38 AS col2
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-9604
SELECT ALL + 69 + - COUNT( * )
----
68

skipif mysql # not compatible
query I rowsort label-9604
SELECT ALL + 69 + - COUNT ( * )
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-9605
SELECT DISTINCT - + COUNT( * ) + 90 AS col0
----
89

skipif mysql # not compatible
query I rowsort label-9605
SELECT DISTINCT - + COUNT ( * ) + 90 AS col0
----
89

query I rowsort
SELECT - 66 * 16
----
-1056

onlyif mysql # aggregate syntax: 
query I rowsort label-9607
SELECT - + SUM( 82 )
----
-82

skipif mysql # not compatible
query I rowsort label-9607
SELECT - + SUM ( 82 )
----
-82

onlyif mysql # aggregate syntax: 
query II rowsort label-9608
SELECT 72 AS col2, - COALESCE ( - 37, - 16 * - COUNT( * ) ) AS col1
----
72
37

skipif mysql # not compatible
query II rowsort label-9608
SELECT 72 AS col2, - COALESCE ( - 37, - 16 * - COUNT ( * ) ) AS col1
----
72
37

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9609
SELECT - NULLIF ( - + 99, - 65 ) + + COUNT( - - 76 ) + + - 58 * 16 DIV + 49
----
82

skipif mysql # not compatible
query I rowsort label-9609
SELECT - NULLIF ( - + 99, - 65 ) + + COUNT ( - - 76 ) + + - 58 * 16 / + 49
----
82

query II rowsort
SELECT 66, + 73 col1
----
66
73

query II rowsort
SELECT - + 77 AS col1, + 81
----
-77
81

query I rowsort
SELECT 18 + + NULLIF ( - COALESCE ( + - 79, 67 * 72 + + 8 ), - 63 ) * - 84 col0
----
-6618

query I rowsort
SELECT 21 * - 90 * - 25
----
47250

onlyif mysql # aggregate syntax: 
query I rowsort label-9614
SELECT 57 * - COUNT( + + 7 ) AS col1
----
-57

skipif mysql # not compatible
query I rowsort label-9614
SELECT 57 * - COUNT ( + + 7 ) AS col1
----
-57

query I rowsort
SELECT DISTINCT 50 + - 31 + + 14 AS col1
----
33

onlyif mysql # aggregate syntax: 
query II rowsort label-9616
SELECT ALL - ( 63 ), + CASE - 47 WHEN - + 79 THEN - NULLIF ( + COUNT( ALL 52 ), + 75 ) WHEN 23 + - 28 THEN NULL ELSE NULL END AS col0
----
-63
NULL

skipif mysql # not compatible
query II rowsort label-9616
SELECT ALL - ( 63 ), + CASE - 47 WHEN - + 79 THEN - NULLIF ( + COUNT ( ALL 52 ), + 75 ) WHEN 23 + - 28 THEN NULL ELSE NULL END AS col0
----
-63
NULL

query I rowsort
SELECT ALL 85 - + 77 + + 34 AS col2
----
42

query I rowsort
SELECT 47 * - + 37 AS col0
----
-1739

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9619
SELECT ALL - CAST( + 31 AS SIGNED ) * - 84 col0
----
2604

skipif mysql # not compatible
query I rowsort label-9619
SELECT ALL - CAST ( + 31 AS INTEGER ) * - 84 col0
----
2604

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9620
SELECT DISTINCT - CAST( NULLIF ( - + COALESCE ( + - COUNT( * ), + 55 ), - 17 ) AS SIGNED )
----
-1

skipif mysql # not compatible
query I rowsort label-9620
SELECT DISTINCT - CAST ( NULLIF ( - + COALESCE ( + - COUNT ( * ), + 55 ), - 17 ) AS INTEGER )
----
-1

query I rowsort
SELECT DISTINCT - 63 - - 3
----
-60

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9622
SELECT MIN( ALL 63 ) DIV + + CAST( 70 AS SIGNED ) DIV - + COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-9622
SELECT MIN ( ALL 63 ) / + + CAST ( 70 AS INTEGER ) / - + COUNT ( * )
----
0

query I rowsort
SELECT NULLIF ( + - 1, 31 * - + AVG ( DISTINCT - - ( - 86 ) ) / - 84 * 65 + + 36 ) * - 88
----
88

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9624
SELECT 53 + - CAST( + 50 AS SIGNED ) col0
----
3

skipif mysql # not compatible
query I rowsort label-9624
SELECT 53 + - CAST ( + 50 AS INTEGER ) col0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9625
SELECT NULLIF ( + 56, + MIN( DISTINCT + 51 ) + - CASE - - 19 WHEN + - 58 THEN - 47 ELSE 67 END ) * - CASE 4 + - 99 WHEN 30 THEN NULL WHEN - NULLIF ( 64, 25 * - 55 + - 34 ) THEN - 9 WHEN 68 THEN NULL END - NULLIF ( 60, + 33 ) * 55 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9625
SELECT NULLIF ( + 56, + MIN ( DISTINCT + 51 ) + - CASE - - 19 WHEN + - 58 THEN - 47 ELSE 67 END ) * - CASE 4 + - 99 WHEN 30 THEN NULL WHEN - NULLIF ( 64, 25 * - 55 + - 34 ) THEN - 9 WHEN 68 THEN NULL END - NULLIF ( 60, + 33 ) * 55 AS col1
----
NULL

query I rowsort
SELECT 72 * + 97 AS col1
----
6984

onlyif mysql # aggregate syntax: 
query I rowsort label-9627
SELECT 78 + - - 97 + + - 96 + + + 43 + + 30 * + - 35 * - + MAX( + 92 ) * 90
----
8694122

skipif mysql # not compatible
query I rowsort label-9627
SELECT 78 + - - 97 + + - 96 + + + 43 + + 30 * + - 35 * - + MAX ( + 92 ) * 90
----
8694122

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9628
SELECT DISTINCT 30 * + 30 AS col1, CAST( NULL AS SIGNED ) / - 16 + - COUNT( * ) + COUNT( * )
----
900
NULL

skipif mysql # not compatible
query II rowsort label-9628
SELECT DISTINCT 30 * + 30 AS col1, CAST ( NULL AS INTEGER ) / - 16 + - COUNT ( * ) + COUNT ( * )
----
900
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9629
SELECT 30 * - SUM( - 55 ) * - 83 + 88 + - ( + 24 ) + ( 9 ) * - 0
----
-136886

skipif mysql # not compatible
query I rowsort label-9629
SELECT 30 * - SUM ( - 55 ) * - 83 + 88 + - ( + 24 ) + ( 9 ) * - 0
----
-136886

query I rowsort
SELECT ALL - - 64 AS col2
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-9631
SELECT DISTINCT COUNT( DISTINCT + 3 ) * - 86 AS col2
----
-86

skipif mysql # not compatible
query I rowsort label-9631
SELECT DISTINCT COUNT ( DISTINCT + 3 ) * - 86 AS col2
----
-86

query I rowsort
SELECT - NULLIF ( 42, 60 ) AS col2
----
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-9633
SELECT - MIN( 9 ) * + + 26 + + 34 + + 44
----
-156

skipif mysql # not compatible
query I rowsort label-9633
SELECT - MIN ( 9 ) * + + 26 + + 34 + + 44
----
-156

query I rowsort
SELECT 97 + - 45 AS col2
----
52

query I rowsort
SELECT ALL + 72 + - 51 + - 3 AS col2
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-9636
SELECT DISTINCT + COUNT( ALL 36 ) + 97 AS col2
----
98

skipif mysql # not compatible
query I rowsort label-9636
SELECT DISTINCT + COUNT ( ALL 36 ) + 97 AS col2
----
98

onlyif mysql # aggregate syntax: 
query I rowsort label-9637
SELECT DISTINCT - 81 * + 11 - - - 35 * + 28 * - 1 * COUNT( * )
----
89

skipif mysql # not compatible
query I rowsort label-9637
SELECT DISTINCT - 81 * + 11 - - - 35 * + 28 * - 1 * COUNT ( * )
----
89

query I rowsort
SELECT DISTINCT 71 + + 76 * - - 47 + + - 8 AS col2
----
3635

onlyif mysql # aggregate syntax: 
query I rowsort label-9639
SELECT ALL - SUM( - - 22 ) AS col1
----
-22

skipif mysql # not compatible
query I rowsort label-9639
SELECT ALL - SUM ( - - 22 ) AS col1
----
-22

onlyif mysql # DIV for integer division: 
query I rowsort label-9640
SELECT ( + 10 ) DIV 67
----
0

skipif mysql # not compatible
query I rowsort label-9640
SELECT ( + 10 ) / 67
----
0

query II rowsort
SELECT ALL - + 10 * + - 44, + 18 col1
----
440
18

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9642
SELECT ALL + 87 + 28 col2, CAST( NULL AS SIGNED ) + 74
----
115
NULL

skipif mysql # not compatible
query II rowsort label-9642
SELECT ALL + 87 + 28 col2, CAST ( NULL AS INTEGER ) + 74
----
115
NULL

query I rowsort
SELECT 31 * - 0
----
0

query I rowsort
SELECT ALL + ( - 34 ) - + 95 + - 88 AS col1
----
-217

query I rowsort
SELECT DISTINCT + 31 - COALESCE ( 78, - + 95, + 77 ) AS col2
----
-47

query I rowsort
SELECT ALL - 92 col0
----
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-9647
SELECT MIN( + + 99 ) - + + 62 - 96 + - 69 AS col2
----
-128

skipif mysql # not compatible
query I rowsort label-9647
SELECT MIN ( + + 99 ) - + + 62 - 96 + - 69 AS col2
----
-128

query I rowsort
SELECT ALL - ( + 32 )
----
-32

onlyif mysql # aggregate syntax: 
query II rowsort label-9649
SELECT COUNT( * ) AS col2, + 28 AS col1
----
1
28

skipif mysql # not compatible
query II rowsort label-9649
SELECT COUNT ( * ) AS col2, + 28 AS col1
----
1
28

onlyif mysql # aggregate syntax: 
query II rowsort label-9650
SELECT COUNT( * ) AS col1, MIN( ALL + 35 ) * + NULLIF ( + 9, + 46 + - 19 + 91 * + 66 ) + + 38
----
1
353

skipif mysql # not compatible
query II rowsort label-9650
SELECT COUNT ( * ) AS col1, MIN ( ALL + 35 ) * + NULLIF ( + 9, + 46 + - 19 + 91 * + 66 ) + + 38
----
1
353

onlyif mysql # aggregate syntax: 
query I rowsort label-9651
SELECT 82 * + COUNT( * )
----
82

skipif mysql # not compatible
query I rowsort label-9651
SELECT 82 * + COUNT ( * )
----
82

onlyif mysql # DIV for integer division: 
query I rowsort label-9652
SELECT ALL - 40 DIV 96
----
0

skipif mysql # not compatible
query I rowsort label-9652
SELECT ALL - 40 / 96
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9653
SELECT 56 + + COUNT( * )
----
57

skipif mysql # not compatible
query I rowsort label-9653
SELECT 56 + + COUNT ( * )
----
57

onlyif mysql # aggregate syntax: 
query II rowsort label-9654
SELECT + 96 AS col0, COUNT( * ) + + 83
----
96
84

skipif mysql # not compatible
query II rowsort label-9654
SELECT + 96 AS col0, COUNT ( * ) + + 83
----
96
84

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9655
SELECT DISTINCT - SUM( DISTINCT + CAST( NULL AS SIGNED ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9655
SELECT DISTINCT - SUM ( DISTINCT + CAST ( NULL AS INTEGER ) ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9656
SELECT DISTINCT - 33, - COUNT( * ) + 88 AS col1
----
-33
87

skipif mysql # not compatible
query II rowsort label-9656
SELECT DISTINCT - 33, - COUNT ( * ) + 88 AS col1
----
-33
87

onlyif mysql # aggregate syntax: 
query I rowsort label-9657
SELECT ALL 95 * 87 * - + COUNT( * ) AS col1
----
-8265

skipif mysql # not compatible
query I rowsort label-9657
SELECT ALL 95 * 87 * - + COUNT ( * ) AS col1
----
-8265

query I rowsort
SELECT 72 * 50
----
3600

query I rowsort
SELECT ALL + 41 * + - 84 AS col2
----
-3444

onlyif mysql # aggregate syntax: 
query I rowsort label-9660
SELECT DISTINCT - 69 * + COUNT( * )
----
-69

skipif mysql # not compatible
query I rowsort label-9660
SELECT DISTINCT - 69 * + COUNT ( * )
----
-69

query I rowsort
SELECT ALL + 14 * + 10 * - 76 AS col0
----
-10640

onlyif mysql # DIV for integer division: 
query I rowsort label-9662
SELECT 62 DIV + + 14
----
4

skipif mysql # not compatible
query I rowsort label-9662
SELECT 62 / + + 14
----
4

query I rowsort
SELECT ALL - + 49 col0
----
-49

onlyif mysql # aggregate syntax: 
query II rowsort label-9664
SELECT COUNT( * ) * 59 + 54 * - - 45 col0, ( - 67 )
----
2489
-67

skipif mysql # not compatible
query II rowsort label-9664
SELECT COUNT ( * ) * 59 + 54 * - - 45 col0, ( - 67 )
----
2489
-67

query I rowsort
SELECT 76 - - 27
----
103

onlyif mysql # aggregate syntax: 
query I rowsort label-9666
SELECT - 41 + - 71 * - COUNT( * ) + ( + 43 ) * - + 15 AS col1
----
-615

skipif mysql # not compatible
query I rowsort label-9666
SELECT - 41 + - 71 * - COUNT ( * ) + ( + 43 ) * - + 15 AS col1
----
-615

query I rowsort
SELECT DISTINCT + + 33 + - - 86 + + 6 * 74 col0
----
563

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9668
SELECT ALL + COALESCE ( + + CAST( NULL AS SIGNED ), + + 25 + + + 47, + 86 + - 85 ) + + 8
----
80

skipif mysql # not compatible
query I rowsort label-9668
SELECT ALL + COALESCE ( + + CAST ( NULL AS INTEGER ), + + 25 + + + 47, + 86 + - 85 ) + + 8
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-9669
SELECT + COALESCE ( COALESCE ( + + COUNT( * ), - SUM( ALL 33 ) * + - 74, - 95 ), 66 ) col0
----
1

skipif mysql # not compatible
query I rowsort label-9669
SELECT + COALESCE ( COALESCE ( + + COUNT ( * ), - SUM ( ALL 33 ) * + - 74, - 95 ), 66 ) col0
----
1

query II rowsort
SELECT DISTINCT + 42, 50 col0
----
42
50

query I rowsort
SELECT DISTINCT - 85 + 35
----
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-9672
SELECT DISTINCT COUNT( * ) + 91
----
92

skipif mysql # not compatible
query I rowsort label-9672
SELECT DISTINCT COUNT ( * ) + 91
----
92

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9673
SELECT ALL + 52 + COUNT( * ) DIV - 20 + + 70 col1
----
122

skipif mysql # not compatible
query I rowsort label-9673
SELECT ALL + 52 + COUNT ( * ) / - 20 + + 70 col1
----
122

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9674
SELECT + - CAST( NULL AS SIGNED ) - + 6
----
NULL

skipif mysql # not compatible
query I rowsort label-9674
SELECT + - CAST ( NULL AS INTEGER ) - + 6
----
NULL

query I rowsort
SELECT + + 72 - + 44
----
28

query II rowsort
SELECT - - 24, 83 AS col2
----
24
83

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9677
SELECT ALL 87 + - 28 + + - CAST( + + COUNT( * ) AS SIGNED ) * 5 DIV + 19 + ( 9 ) AS col1
----
68

skipif mysql # not compatible
query I rowsort label-9677
SELECT ALL 87 + - 28 + + - CAST ( + + COUNT ( * ) AS INTEGER ) * 5 / + 19 + ( 9 ) AS col1
----
68

onlyif mysql # DIV for integer division: 
query I rowsort label-9678
SELECT + 57 + + - 48 + + 32 DIV + 31 AS col2
----
10

skipif mysql # not compatible
query I rowsort label-9678
SELECT + 57 + + - 48 + + 32 / + 31 AS col2
----
10

query I rowsort
SELECT + 27 * + - 85 AS col0
----
-2295

onlyif mysql # aggregate syntax: 
query I rowsort label-9680
SELECT + 70 + - COUNT( * ) AS col2
----
69

skipif mysql # not compatible
query I rowsort label-9680
SELECT + 70 + - COUNT ( * ) AS col2
----
69

onlyif mysql # DIV for integer division: 
query I rowsort label-9681
SELECT - NULLIF ( 73, 90 ) - + 9 DIV 16 * + - 29 * - 98 AS col0
----
-73

skipif mysql # not compatible
query I rowsort label-9681
SELECT - NULLIF ( 73, 90 ) - + 9 / 16 * + - 29 * - 98 AS col0
----
-73

query I rowsort
SELECT DISTINCT 45 * + 28 AS col0
----
1260

onlyif mysql # aggregate syntax: 
query II rowsort label-9683
SELECT DISTINCT 23 AS col1, + ( + COUNT( * ) )
----
23
1

skipif mysql # not compatible
query II rowsort label-9683
SELECT DISTINCT 23 AS col1, + ( + COUNT ( * ) )
----
23
1

query I rowsort
SELECT ALL ( + - 5 ) AS col1
----
-5

onlyif mysql # DIV for integer division: 
query II rowsort label-9685
SELECT DISTINCT + 35 DIV + 6 AS col1, + 77
----
5
77

skipif mysql # not compatible
query II rowsort label-9685
SELECT DISTINCT + 35 / + 6 AS col1, + 77
----
5
77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9686
SELECT DISTINCT COALESCE ( + + 26, - - COUNT( * ) + + 68 + - 41, 13 ) - - 88 * - - 7 + + ( 49 ) + - 69 DIV - NULLIF ( + 50 + + 37, CAST( NULL AS SIGNED ) )
----
691

skipif mysql # not compatible
query I rowsort label-9686
SELECT DISTINCT COALESCE ( + + 26, - - COUNT ( * ) + + 68 + - 41, 13 ) - - 88 * - - 7 + + ( 49 ) + - 69 / - NULLIF ( + 50 + + 37, CAST ( NULL AS INTEGER ) )
----
691

query I rowsort
SELECT + 79 * + 74 * - 69 AS col1
----
-403374

query I rowsort
SELECT - 43 + 2
----
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-9689
SELECT - NULLIF ( + - NULLIF ( - 27, - 9 * - MAX( - 95 ) ), - COALESCE ( - - 98, 75 * 79, MAX( ALL + 11 ) * 24 + 41 ) )
----
-27

skipif mysql # not compatible
query I rowsort label-9689
SELECT - NULLIF ( + - NULLIF ( - 27, - 9 * - MAX ( - 95 ) ), - COALESCE ( - - 98, 75 * 79, MAX ( ALL + 11 ) * 24 + 41 ) )
----
-27

query I rowsort
SELECT - ( ( + 46 ) ) + + 67 * - + 31 + 33 + + + ( COALESCE ( + 35, - 21, + 6 ) )
----
-2055

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9691
SELECT + COUNT( * ) DIV - ( + 55 ) col1
----
0

skipif mysql # not compatible
query I rowsort label-9691
SELECT + COUNT ( * ) / - ( + 55 ) col1
----
0

query I rowsort
SELECT - ( + 32 )
----
-32

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9693
SELECT ALL - 45 * + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9693
SELECT ALL - 45 * + + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT 9 * + 23 + - - 68 AS col0
----
275

query I rowsort
SELECT ALL + ( + ( 10 ) ) AS col1
----
10

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9696
SELECT ( + - NULLIF ( - CAST( SUM( DISTINCT 7 ) AS SIGNED ), 37 + - 27 + + - COUNT( * ) + - CAST( 69 AS DECIMAL ) * 2 ) )
----
7

skipif mysql # not compatible
query I rowsort label-9696
SELECT ( + - NULLIF ( - CAST ( SUM ( DISTINCT 7 ) AS INTEGER ), 37 + - 27 + + - COUNT ( * ) + - CAST ( 69 AS REAL ) * 2 ) )
----
7

onlyif mysql # DIV for integer division: 
query II rowsort label-9697
SELECT + ( 43 ) DIV - 93 + 83 * - 8 - 71 + + 69, 35 + 36 * - 13 AS col2
----
-666
-433

skipif mysql # not compatible
query II rowsort label-9697
SELECT + ( 43 ) / - 93 + 83 * - 8 - 71 + + 69, 35 + 36 * - 13 AS col2
----
-666
-433

onlyif mysql # aggregate syntax: 
query I rowsort label-9698
SELECT + ( - MAX( - - 68 ) )
----
-68

skipif mysql # not compatible
query I rowsort label-9698
SELECT + ( - MAX ( - - 68 ) )
----
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-9699
SELECT - 71 + - + COUNT( * ) + - + 67
----
-139

skipif mysql # not compatible
query I rowsort label-9699
SELECT - 71 + - + COUNT ( * ) + - + 67
----
-139

query I rowsort
SELECT - 47 * 54 * ( 98 ) AS col1
----
-248724

query I rowsort
SELECT ALL 37 * 84 + 83
----
3191

onlyif mysql # aggregate syntax: 
query I rowsort label-9702
SELECT + NULLIF ( + 75, + 25 * - - 67 + SUM( - + 72 ) ) * 68 + + - 93 AS col2
----
5007

skipif mysql # not compatible
query I rowsort label-9702
SELECT + NULLIF ( + 75, + 25 * - - 67 + SUM ( - + 72 ) ) * 68 + + - 93 AS col2
----
5007

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9703
SELECT - + 17 + - + CAST( 17 AS SIGNED ) - - ( + + COUNT( * ) ) AS col0, 34
----
-33
34

skipif mysql # not compatible
query II rowsort label-9703
SELECT - + 17 + - + CAST ( 17 AS INTEGER ) - - ( + + COUNT ( * ) ) AS col0, 34
----
-33
34

onlyif mysql # aggregate syntax: 
query I rowsort label-9704
SELECT - 19 * 39 + - + 51 - CASE 58 WHEN 40 * 33 / COUNT( * ) THEN - - 31 END * 82
----
NULL

skipif mysql # not compatible
query I rowsort label-9704
SELECT - 19 * 39 + - + 51 - CASE 58 WHEN 40 * 33 / COUNT ( * ) THEN - - 31 END * 82
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9705
SELECT DISTINCT + CAST( + COUNT( * ) AS SIGNED ), 39 * - 96 + 47 AS col2
----
1
-3697

skipif mysql # not compatible
query II rowsort label-9705
SELECT DISTINCT + CAST ( + COUNT ( * ) AS INTEGER ), 39 * - 96 + 47 AS col2
----
1
-3697

onlyif mysql # aggregate syntax: 
query I rowsort label-9706
SELECT ALL + ( + - COUNT( * ) ) * ( - + 77 ) + 49 + - - 82 AS col2
----
208

skipif mysql # not compatible
query I rowsort label-9706
SELECT ALL + ( + - COUNT ( * ) ) * ( - + 77 ) + 49 + - - 82 AS col2
----
208

query I rowsort
SELECT ALL - 16 * + 45 + - - 31 AS col0
----
-689

onlyif mysql # aggregate syntax: 
query I rowsort label-9708
SELECT + + CASE ( - + 1 ) WHEN + 35 - + COUNT( * ) / 82 THEN NULL ELSE 89 END AS col0
----
89

skipif mysql # not compatible
query I rowsort label-9708
SELECT + + CASE ( - + 1 ) WHEN + 35 - + COUNT ( * ) / 82 THEN NULL ELSE 89 END AS col0
----
89

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9709
SELECT ALL + COUNT( * ) * - CAST( NULL AS SIGNED ) + + 25 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9709
SELECT ALL + COUNT ( * ) * - CAST ( NULL AS INTEGER ) + + 25 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9710
SELECT ALL + 30 * + - COUNT( * ) + 39 + 11 AS col2
----
20

skipif mysql # not compatible
query I rowsort label-9710
SELECT ALL + 30 * + - COUNT ( * ) + 39 + 11 AS col2
----
20

query I rowsort
SELECT DISTINCT + 54 * - 0 * 34 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9712
SELECT NULLIF ( - 92, - COUNT( * ) * + ( - - ( ( - CASE - - 53 WHEN 7 THEN 63 ELSE NULL END ) ) ) + 31 )
----
-92

skipif mysql # not compatible
query I rowsort label-9712
SELECT NULLIF ( - 92, - COUNT ( * ) * + ( - - ( ( - CASE - - 53 WHEN 7 THEN 63 ELSE NULL END ) ) ) + 31 )
----
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-9713
SELECT DISTINCT + SUM( ALL - ( + 66 ) ) AS col2
----
-66

skipif mysql # not compatible
query I rowsort label-9713
SELECT DISTINCT + SUM ( ALL - ( + 66 ) ) AS col2
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-9714
SELECT ALL - - 54 * - COUNT( * ) + - 62 - + + ( ( - 14 ) )
----
-102

skipif mysql # not compatible
query I rowsort label-9714
SELECT ALL - - 54 * - COUNT ( * ) + - 62 - + + ( ( - 14 ) )
----
-102

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9715
SELECT - COUNT( * ) DIV + 31
----
0

skipif mysql # not compatible
query I rowsort label-9715
SELECT - COUNT ( * ) / + 31
----
0

query I rowsort
SELECT + + 9 * - 76 AS col1
----
-684

query I rowsort
SELECT DISTINCT + + 89 * - - 13 - - 85 + - 34 * + 11
----
868

query I rowsort
SELECT ALL ( 85 ) AS col0
----
85

onlyif mysql # DIV for integer division: 
query I rowsort label-9719
SELECT ALL ( - + 89 ) DIV - 52 col1
----
1

skipif mysql # not compatible
query I rowsort label-9719
SELECT ALL ( - + 89 ) / - 52 col1
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9720
SELECT CAST( - 66 AS SIGNED ) AS col0
----
-66

skipif mysql # not compatible
query I rowsort label-9720
SELECT CAST ( - 66 AS INTEGER ) AS col0
----
-66

query I rowsort
SELECT - - 77 col1
----
77

query I rowsort
SELECT ALL + 80 * - + 19
----
-1520

onlyif mysql # aggregate syntax: 
query I rowsort label-9723
SELECT + 91 * + COUNT( * ) AS col1
----
91

skipif mysql # not compatible
query I rowsort label-9723
SELECT + 91 * + COUNT ( * ) AS col1
----
91

onlyif mysql # aggregate syntax: 
query II rowsort label-9724
SELECT ALL COUNT( * ), 77 AS col2
----
1
77

skipif mysql # not compatible
query II rowsort label-9724
SELECT ALL COUNT ( * ), 77 AS col2
----
1
77

query I rowsort
SELECT - ( - 76 )
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-9726
SELECT - MAX( - 79 )
----
79

skipif mysql # not compatible
query I rowsort label-9726
SELECT - MAX ( - 79 )
----
79

query I rowsort
SELECT - 55 * 52 * 31 AS col0
----
-88660

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9728
SELECT + CASE + + 72 WHEN - ( 40 ) THEN NULL WHEN - 59 THEN + - 33 WHEN + CASE ( 12 ) WHEN + CAST( + ( - MIN( ALL ( - 25 ) ) ) AS SIGNED ) * 67 THEN + NULLIF ( - 84, 19 + - CAST( + 34 AS SIGNED ) ) * COUNT( * ) ELSE NULL END THEN - 72 END * - 95
----
NULL

skipif mysql # not compatible
query I rowsort label-9728
SELECT + CASE + + 72 WHEN - ( 40 ) THEN NULL WHEN - 59 THEN + - 33 WHEN + CASE ( 12 ) WHEN + CAST ( + ( - MIN ( ALL ( - 25 ) ) ) AS INTEGER ) * 67 THEN + NULLIF ( - 84, 19 + - CAST ( + 34 AS INTEGER ) ) * COUNT ( * ) ELSE NULL END THEN - 72 END * - 95
----
NULL

query I rowsort
SELECT + 32 - 37 AS col0
----
-5

query I rowsort
SELECT - COALESCE ( - ( + - 91 ), 24 ) AS col2
----
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-9731
SELECT ALL MAX( + 36 )
----
36

skipif mysql # not compatible
query I rowsort label-9731
SELECT ALL MAX ( + 36 )
----
36

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9732
SELECT + COALESCE ( - - 59, + COUNT( * ) * + + MAX( ALL 95 ) + - + 88 ) * - + CAST( + + COUNT( * ) AS SIGNED )
----
-59

skipif mysql # not compatible
query I rowsort label-9732
SELECT + COALESCE ( - - 59, + COUNT ( * ) * + + MAX ( ALL 95 ) + - + 88 ) * - + CAST ( + + COUNT ( * ) AS INTEGER )
----
-59

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9733
SELECT ALL MAX( - 42 ) DIV - 44 + + 8 * 67 * - 6 + + COUNT( * )
----
-3215

skipif mysql # not compatible
query I rowsort label-9733
SELECT ALL MAX ( - 42 ) / - 44 + + 8 * 67 * - 6 + + COUNT ( * )
----
-3215

query I rowsort
SELECT + 59 * 14 AS col1
----
826

query I rowsort
SELECT DISTINCT 71 * - - 64 AS col0
----
4544

onlyif mysql # aggregate syntax: 
query I rowsort label-9736
SELECT CASE - COUNT( - 43 ) WHEN - 78 THEN 2 WHEN - + 13 - + COUNT( * ) * - + ( - ( 18 ) ) THEN NULL WHEN - 74 THEN NULL END * ( - 17 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9736
SELECT CASE - COUNT ( - 43 ) WHEN - 78 THEN 2 WHEN - + 13 - + COUNT ( * ) * - + ( - ( 18 ) ) THEN NULL WHEN - 74 THEN NULL END * ( - 17 )
----
NULL

query I rowsort
SELECT 23 + - - 3 col0
----
26

query I rowsort
SELECT DISTINCT + 6 + - 52
----
-46

query I rowsort
SELECT ALL - + CASE - 26 WHEN - 97 * + 71 * - 69 THEN + + 37 * - 72 + - NULLIF ( 40, + ( 80 ) ) + - 90 WHEN 49 + 91 THEN + 89 END
----
NULL

query I rowsort
SELECT DISTINCT + + 46 + 1 AS col1
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-9741
SELECT ALL - ( + 55 ) + COUNT( * )
----
-54

skipif mysql # not compatible
query I rowsort label-9741
SELECT ALL - ( + 55 ) + COUNT ( * )
----
-54

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9742
SELECT CASE + + COUNT( * ) WHEN 66 - - 10 - + - CASE + COUNT( * ) WHEN + 18 + 99 THEN - - CAST( NULL AS SIGNED ) WHEN 47 * 14 THEN + 1 ELSE NULL END / COALESCE ( 82 * + COUNT( * ), + 87 - 70 ) * + 12 THEN NULL WHEN 83 THEN NULL ELSE - 79 * 99 END AS col2
----
-7821

skipif mysql # not compatible
query I rowsort label-9742
SELECT CASE + + COUNT ( * ) WHEN 66 - - 10 - + - CASE + COUNT ( * ) WHEN + 18 + 99 THEN - - CAST ( NULL AS INTEGER ) WHEN 47 * 14 THEN + 1 ELSE NULL END / COALESCE ( 82 * + COUNT ( * ), + 87 - 70 ) * + 12 THEN NULL WHEN 83 THEN NULL ELSE - 79 * 99 END AS col2
----
-7821

onlyif mysql # aggregate syntax: 
query I rowsort label-9743
SELECT ALL + - ( 23 ) + - 95 - - MAX( DISTINCT - + 0 )
----
-118

skipif mysql # not compatible
query I rowsort label-9743
SELECT ALL + - ( 23 ) + - 95 - - MAX ( DISTINCT - + 0 )
----
-118

onlyif mysql # aggregate syntax: 
query I rowsort label-9744
SELECT DISTINCT 15 * + + 57 + CASE 32 WHEN + 27 THEN NULL WHEN - 59 + + 18 * + 36 + MAX( DISTINCT - 98 ) THEN + AVG ( 30 ) + + 67 * + COUNT( * ) WHEN - 50 * - 55 + + 81 THEN NULL WHEN + 40 THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-9744
SELECT DISTINCT 15 * + + 57 + CASE 32 WHEN + 27 THEN NULL WHEN - 59 + + 18 * + 36 + MAX ( DISTINCT - 98 ) THEN + AVG ( 30 ) + + 67 * + COUNT ( * ) WHEN - 50 * - 55 + + 81 THEN NULL WHEN + 40 THEN NULL ELSE NULL END
----
NULL

query I rowsort
SELECT DISTINCT - NULLIF ( + 46, 99 + + - 19 ) col2
----
-46

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9746
SELECT ALL + - 3 - 71 - - 11 * + - 23 DIV - COUNT( * ) + - 5 + - - 95 DIV 20
----
178

skipif mysql # not compatible
query I rowsort label-9746
SELECT ALL + - 3 - 71 - - 11 * + - 23 / - COUNT ( * ) + - 5 + - - 95 / 20
----
178

onlyif mysql # aggregate syntax: 
query II rowsort label-9747
SELECT ( - + 13 ) - + 34 AS col2, + 25 + - - COUNT( * ) AS col2
----
-47
26

skipif mysql # not compatible
query II rowsort label-9747
SELECT ( - + 13 ) - + 34 AS col2, + 25 + - - COUNT ( * ) AS col2
----
-47
26

onlyif mysql # aggregate syntax: 
query I rowsort label-9748
SELECT + COALESCE ( 69, NULLIF ( + ( - 30 ), - - COUNT( * ) ) + + 49 ) * 3 * 1 - + - 63 AS col0
----
270

skipif mysql # not compatible
query I rowsort label-9748
SELECT + COALESCE ( 69, NULLIF ( + ( - 30 ), - - COUNT ( * ) ) + + 49 ) * 3 * 1 - + - 63 AS col0
----
270

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9749
SELECT 95 * - COUNT( * ) * 70 + + 67 * - 32 + + ( + 18 ) + - - 11 + COUNT( * ) * CASE 65 WHEN 90 - 97 * + MIN( + 4 / 99 ) THEN 28 WHEN CAST( 15 AS SIGNED ) / + 15 + 46 THEN NULL END / 36 - + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-9749
SELECT 95 * - COUNT ( * ) * 70 + + 67 * - 32 + + ( + 18 ) + - - 11 + COUNT ( * ) * CASE 65 WHEN 90 - 97 * + MIN ( + 4 / 99 ) THEN 28 WHEN CAST ( 15 AS INTEGER ) / + 15 + 46 THEN NULL END / 36 - + COUNT ( * )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9750
SELECT DISTINCT - + 61 DIV + 14
----
-4

skipif mysql # not compatible
query I rowsort label-9750
SELECT DISTINCT - + 61 / + 14
----
-4

query I rowsort
SELECT - 75 - 67
----
-142

onlyif mysql # aggregate syntax: 
query I rowsort label-9752
SELECT 23 - + NULLIF ( + - 63, 68 + + MAX( + - 4 ) )
----
86

skipif mysql # not compatible
query I rowsort label-9752
SELECT 23 - + NULLIF ( + - 63, 68 + + MAX ( + - 4 ) )
----
86

query I rowsort
SELECT - - ( 92 )
----
92

onlyif mysql # aggregate syntax: 
query I rowsort label-9754
SELECT 66 + COUNT( 34 )
----
67

skipif mysql # not compatible
query I rowsort label-9754
SELECT 66 + COUNT ( 34 )
----
67

onlyif mysql # aggregate syntax: 
query II rowsort label-9755
SELECT - 17, - COUNT( * ) AS col2
----
-17
-1

skipif mysql # not compatible
query II rowsort label-9755
SELECT - 17, - COUNT ( * ) AS col2
----
-17
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-9756
SELECT 72 DIV - 6 AS col1
----
-12

skipif mysql # not compatible
query I rowsort label-9756
SELECT 72 / - 6 AS col1
----
-12

query II rowsort
SELECT 54 AS col2, 87 * 99 + - 65
----
54
8548

query I rowsort
SELECT 46 + + - 85 AS col2
----
-39

query I rowsort
SELECT 56 + - 34 + + 13 AS col0
----
35

onlyif mysql # DIV for integer division: 
query I rowsort label-9760
SELECT ALL 20 DIV - COALESCE ( 3, + + 4, + 82 ) col0
----
-6

skipif mysql # not compatible
query I rowsort label-9760
SELECT ALL 20 / - COALESCE ( 3, + + 4, + 82 ) col0
----
-6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9761
SELECT 62 / CAST( NULL AS SIGNED ) * NULLIF ( + CAST( - + 68 AS SIGNED ), + 24 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9761
SELECT 62 / CAST ( NULL AS INTEGER ) * NULLIF ( + CAST ( - + 68 AS INTEGER ), + 24 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9762
SELECT COUNT( DISTINCT - - 69 ) + 50 AS col2
----
51

skipif mysql # not compatible
query I rowsort label-9762
SELECT COUNT ( DISTINCT - - 69 ) + 50 AS col2
----
51

query I rowsort
SELECT ALL + 54 + 91 AS col1
----
145

onlyif mysql # aggregate syntax: 
query I rowsort label-9764
SELECT DISTINCT COUNT( * ) + - - NULLIF ( + 25, - + 14 ) AS col0
----
26

skipif mysql # not compatible
query I rowsort label-9764
SELECT DISTINCT COUNT ( * ) + - - NULLIF ( + 25, - + 14 ) AS col0
----
26

query I rowsort
SELECT ALL 72 + - 44
----
28

query I rowsort
SELECT DISTINCT + 27 + + 96 + 69
----
192

query I rowsort
SELECT ( - NULLIF ( 26, + 95 ) ) * - 44
----
1144

onlyif mysql # aggregate syntax: 
query I rowsort label-9768
SELECT ALL 36 + - + MIN( 63 ) AS col2
----
-27

skipif mysql # not compatible
query I rowsort label-9768
SELECT ALL 36 + - + MIN ( 63 ) AS col2
----
-27

query II rowsort
SELECT 87 + 59 AS col0, + 22 AS col0
----
146
22

query I rowsort
SELECT DISTINCT - 10 + + 55
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-9771
SELECT + 16 * - SUM( DISTINCT - 0 ) + COUNT( ALL - 96 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-9771
SELECT + 16 * - SUM ( DISTINCT - 0 ) + COUNT ( ALL - 96 ) AS col1
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9772
SELECT DISTINCT - 98 DIV - 48 + MIN( - 4 ) + - - 50 AS col1
----
48

skipif mysql # not compatible
query I rowsort label-9772
SELECT DISTINCT - 98 / - 48 + MIN ( - 4 ) + - - 50 AS col1
----
48

onlyif mysql # DIV for integer division: 
query I rowsort label-9773
SELECT - - 79 DIV + 40 + - 34
----
-33

skipif mysql # not compatible
query I rowsort label-9773
SELECT - - 79 / + 40 + - 34
----
-33

query II rowsort
SELECT - 48 * + NULLIF ( - 34, + 11 ) AS col2, 90 AS col2
----
1632
90

query I rowsort
SELECT + - 99 col0
----
-99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9776
SELECT + 57 + - - 78 * + CAST( NULL AS SIGNED ) + + 35 * NULLIF ( NULLIF ( + 32, + + 22 * ( + 38 ) ), - + 82 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9776
SELECT + 57 + - - 78 * + CAST ( NULL AS INTEGER ) + + 35 * NULLIF ( NULLIF ( + 32, + + 22 * ( + 38 ) ), - + 82 )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9777
SELECT ALL - 54 DIV - - 31 + + ( - + 40 ) AS col0
----
-41

skipif mysql # not compatible
query I rowsort label-9777
SELECT ALL - 54 / - - 31 + + ( - + 40 ) AS col0
----
-41

query I rowsort
SELECT ALL - + 31 AS col0
----
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-9779
SELECT + MIN( + 50 ) AS col1
----
50

skipif mysql # not compatible
query I rowsort label-9779
SELECT + MIN ( + 50 ) AS col1
----
50

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9780
SELECT - + CAST( + AVG ( - 89 ) AS SIGNED ) * - ( + 21 ) + 81 * - + 59 * - CAST( NULL AS SIGNED ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9780
SELECT - + CAST ( + AVG ( - 89 ) AS INTEGER ) * - ( + 21 ) + 81 * - + 59 * - CAST ( NULL AS INTEGER ) col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9781
SELECT + 14 DIV - 20
----
0

skipif mysql # not compatible
query I rowsort label-9781
SELECT + 14 / - 20
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-9782
SELECT 15 AS col0, + COUNT( * ) AS col2
----
15
1

skipif mysql # not compatible
query II rowsort label-9782
SELECT 15 AS col0, + COUNT ( * ) AS col2
----
15
1

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9783
SELECT ALL + COALESCE ( - 40, - CAST( NULL AS SIGNED ) * + ( 73 ), 70 DIV 78 ) * 6
----
-240

skipif mysql # not compatible
query I rowsort label-9783
SELECT ALL + COALESCE ( - 40, - CAST ( NULL AS INTEGER ) * + ( 73 ), 70 / 78 ) * 6
----
-240

query I rowsort
SELECT 99 * - 78 * + + 69 col0
----
-532818

onlyif mysql # aggregate syntax: 
query I rowsort label-9785
SELECT - 80 * + + CASE + - ( - 24 ) WHEN + 45 THEN - 69 + + - 40 - 78 * 62 ELSE NULL END + + MAX( - 85 ) + + ( - 67 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9785
SELECT - 80 * + + CASE + - ( - 24 ) WHEN + 45 THEN - 69 + + - 40 - 78 * 62 ELSE NULL END + + MAX ( - 85 ) + + ( - 67 )
----
NULL

query I rowsort
SELECT ALL - ( 59 )
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-9787
SELECT + COUNT( + 28 )
----
1

skipif mysql # not compatible
query I rowsort label-9787
SELECT + COUNT ( + 28 )
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9788
SELECT + 30 * 71 * CASE + - CASE + + 37 WHEN 13 THEN + - CAST( - 36 AS SIGNED ) * - SUM( 98 ) * 11 + + 84 ELSE COUNT( * ) * + 22 + COUNT( * ) END WHEN - 14 + + 11 THEN - ( + 16 ) END * 81
----
NULL

skipif mysql # not compatible
query I rowsort label-9788
SELECT + 30 * 71 * CASE + - CASE + + 37 WHEN 13 THEN + - CAST ( - 36 AS INTEGER ) * - SUM ( 98 ) * 11 + + 84 ELSE COUNT ( * ) * + 22 + COUNT ( * ) END WHEN - 14 + + 11 THEN - ( + 16 ) END * 81
----
NULL

query I rowsort
SELECT + 0 * + 42
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-9790
SELECT ALL + 58 + - 43 DIV 47 * - - 44 + - 78 AS col2
----
-20

skipif mysql # not compatible
query I rowsort label-9790
SELECT ALL + 58 + - 43 / 47 * - - 44 + - 78 AS col2
----
-20

query I rowsort
SELECT ALL - 95 + + 25 + + 19 + + + 57 + - + 99 * 70 AS col2
----
-6924

onlyif mysql # aggregate syntax: 
query I rowsort label-9792
SELECT 66 * + COUNT( ALL - 19 ) * - + ( + - 39 ) AS col1
----
2574

skipif mysql # not compatible
query I rowsort label-9792
SELECT 66 * + COUNT ( ALL - 19 ) * - + ( + - 39 ) AS col1
----
2574

onlyif mysql # DIV for integer division: 
query I rowsort label-9793
SELECT ALL - 13 DIV + - 95
----
0

skipif mysql # not compatible
query I rowsort label-9793
SELECT ALL - 13 / + - 95
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9794
SELECT ALL + COUNT( * ) + - 68, + 67 DIV + 26 AS col0
----
-67
2

skipif mysql # not compatible
query II rowsort label-9794
SELECT ALL + COUNT ( * ) + - 68, + 67 / + 26 AS col0
----
-67
2

query I rowsort
SELECT DISTINCT - 68 * - 29 AS col2
----
1972

onlyif mysql # aggregate syntax: 
query I rowsort label-9796
SELECT MIN( DISTINCT - 93 ) + - 85
----
-178

skipif mysql # not compatible
query I rowsort label-9796
SELECT MIN ( DISTINCT - 93 ) + - 85
----
-178

query I rowsort
SELECT 91 * - - 93
----
8463

onlyif mysql # aggregate syntax: 
query I rowsort label-9798
SELECT 97 + MIN( + - 5 )
----
92

skipif mysql # not compatible
query I rowsort label-9798
SELECT 97 + MIN ( + - 5 )
----
92

onlyif mysql # aggregate syntax: 
query I rowsort label-9799
SELECT DISTINCT - 78 + + 36 + 81 + + COUNT( * )
----
40

skipif mysql # not compatible
query I rowsort label-9799
SELECT DISTINCT - 78 + + 36 + 81 + + COUNT ( * )
----
40

query I rowsort
SELECT ALL + 23 + + 64 * - 23
----
-1449

onlyif mysql # DIV for integer division: 
query II rowsort label-9801
SELECT - 7 DIV + - 20, + 5 AS col1
----
0
5

skipif mysql # not compatible
query II rowsort label-9801
SELECT - 7 / + - 20, + 5 AS col1
----
0
5

query I rowsort
SELECT + 24 * - 3
----
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-9803
SELECT - 95 - - + COUNT( * ) + + 82 * + 68
----
5482

skipif mysql # not compatible
query I rowsort label-9803
SELECT - 95 - - + COUNT ( * ) + + 82 * + 68
----
5482

onlyif mysql # aggregate syntax: 
query I rowsort label-9804
SELECT ALL - 24 + + ( - MAX( ALL - 57 ) ) AS col0
----
33

skipif mysql # not compatible
query I rowsort label-9804
SELECT ALL - 24 + + ( - MAX ( ALL - 57 ) ) AS col0
----
33

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9805
SELECT DISTINCT + COUNT( * ) DIV - 21, NULLIF ( 5, 65 ) + + 99 col2
----
0
104

skipif mysql # not compatible
query II rowsort label-9805
SELECT DISTINCT + COUNT ( * ) / - 21, NULLIF ( 5, 65 ) + + 99 col2
----
0
104

query I rowsort
SELECT - 71 + 24 + 33 AS col2
----
-14

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9807
SELECT ALL MAX( + + 40 ) DIV 61
----
0

skipif mysql # not compatible
query I rowsort label-9807
SELECT ALL MAX ( + + 40 ) / 61
----
0

query I rowsort
SELECT - 88 * + 45
----
-3960

onlyif mysql # aggregate syntax: 
query I rowsort label-9809
SELECT ALL MIN( DISTINCT 3 ) AS col1
----
3

skipif mysql # not compatible
query I rowsort label-9809
SELECT ALL MIN ( DISTINCT 3 ) AS col1
----
3

query I rowsort
SELECT ALL 59 - + + 49 + + 46 AS col0
----
56

query I rowsort
SELECT ALL - 69 * 86 + - - 48 AS col1
----
-5886

query II rowsort
SELECT DISTINCT - 58 - - 32 AS col2, 27
----
-26
27

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9813
SELECT + CAST( + COUNT( * ) AS SIGNED ) col0, 66 * - 57
----
1
-3762

skipif mysql # not compatible
query II rowsort label-9813
SELECT + CAST ( + COUNT ( * ) AS INTEGER ) col0, 66 * - 57
----
1
-3762

query I rowsort
SELECT + ( - + 37 )
----
-37

query I rowsort
SELECT ALL + - NULLIF ( 34, + 12 ) col2
----
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-9816
SELECT ALL + - COUNT( ALL + - 7 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-9816
SELECT ALL + - COUNT ( ALL + - 7 ) AS col2
----
-1

query I rowsort
SELECT ALL + + 4 AS col0
----
4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9818
SELECT - CAST( + 82 AS SIGNED ) * + 79 * 6 * + - 39 + + 43 col2
----
1515895

skipif mysql # not compatible
query I rowsort label-9818
SELECT - CAST ( + 82 AS INTEGER ) * + 79 * 6 * + - 39 + + 43 col2
----
1515895

query I rowsort
SELECT ALL - 31 * + + 16 + - 6 + 91 AS col0
----
-411

query I rowsort
SELECT + 23 + + - 25
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-9821
SELECT DISTINCT - 15 * 97 * ( MIN( DISTINCT + 71 ) ) AS col2
----
-103305

skipif mysql # not compatible
query I rowsort label-9821
SELECT DISTINCT - 15 * 97 * ( MIN ( DISTINCT + 71 ) ) AS col2
----
-103305

onlyif mysql # aggregate syntax: 
query I rowsort label-9822
SELECT + CASE + + 38 WHEN - - 53 THEN + COUNT( * ) WHEN + + 24 THEN NULL END + - + 47 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9822
SELECT + CASE + + 38 WHEN - - 53 THEN + COUNT ( * ) WHEN + + 24 THEN NULL END + - + 47 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9823
SELECT ALL CASE - + 14 WHEN 0 * COALESCE ( - - 10, - + 62, - COUNT( ALL + - ( 77 ) ) ) THEN 71 + + - ( - COUNT( * ) ) * 34 WHEN + 73 + 10 * 11 THEN + 72 ELSE 19 END * 50 + + 71 * 54 col1
----
4784

skipif mysql # not compatible
query I rowsort label-9823
SELECT ALL CASE - + 14 WHEN 0 * COALESCE ( - - 10, - + 62, - COUNT ( ALL + - ( 77 ) ) ) THEN 71 + + - ( - COUNT ( * ) ) * 34 WHEN + 73 + 10 * 11 THEN + 72 ELSE 19 END * 50 + + 71 * 54 col1
----
4784

query I rowsort
SELECT DISTINCT 8 * + - 99 col1
----
-792

query II rowsort
SELECT + 78 * 10 + + 26 AS col0, 97 AS col1
----
806
97

onlyif mysql # aggregate syntax: 
query II rowsort label-9826
SELECT ALL 81, 28 + + + 32 - - 74 + 97 * + MAX( - 28 ) col1
----
81
-2582

skipif mysql # not compatible
query II rowsort label-9826
SELECT ALL 81, 28 + + + 32 - - 74 + 97 * + MAX ( - 28 ) col1
----
81
-2582

onlyif mysql # aggregate syntax: 
query I rowsort label-9827
SELECT MAX( ALL + 58 )
----
58

skipif mysql # not compatible
query I rowsort label-9827
SELECT MAX ( ALL + 58 )
----
58

query I rowsort
SELECT - 31 + - 55
----
-86

query I rowsort
SELECT ALL 37 + 55 AS col2
----
92

onlyif mysql # aggregate syntax: 
query I rowsort label-9830
SELECT MAX( ALL + ( - + 1 ) ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-9830
SELECT MAX ( ALL + ( - + 1 ) ) AS col0
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-9831
SELECT DISTINCT COUNT( * ), 86 + - 29 AS col1
----
1
57

skipif mysql # not compatible
query II rowsort label-9831
SELECT DISTINCT COUNT ( * ), 86 + - 29 AS col1
----
1
57

onlyif mysql # aggregate syntax: 
query I rowsort label-9832
SELECT ALL COALESCE ( + SUM( 23 ), SUM( DISTINCT - 2 ) * SUM( - 7 ) * - 11 * - + 72 * - 22 ) AS col0
----
23

skipif mysql # not compatible
query I rowsort label-9832
SELECT ALL COALESCE ( + SUM ( 23 ), SUM ( DISTINCT - 2 ) * SUM ( - 7 ) * - 11 * - + 72 * - 22 ) AS col0
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-9833
SELECT + MAX( 58 ) + - - 51
----
109

skipif mysql # not compatible
query I rowsort label-9833
SELECT + MAX ( 58 ) + - - 51
----
109

query I rowsort
SELECT - 71 + - 14 AS col1
----
-85

onlyif mysql # DIV for integer division: 
query I rowsort label-9835
SELECT ALL 53 DIV + 93 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-9835
SELECT ALL 53 / + 93 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9836
SELECT - 65 * + COUNT( * )
----
-65

skipif mysql # not compatible
query I rowsort label-9836
SELECT - 65 * + COUNT ( * )
----
-65

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9837
SELECT DISTINCT + NULLIF ( - 91, - 45 - 41 * - - 32 + - CAST( + AVG ( ALL - 72 ) AS SIGNED ) * + 19 ) * - 0 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-9837
SELECT DISTINCT + NULLIF ( - 91, - 45 - 41 * - - 32 + - CAST ( + AVG ( ALL - 72 ) AS INTEGER ) * + 19 ) * - 0 AS col1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-9838
SELECT ALL COALESCE ( - 96, - 14 * - + 37 + - 27 DIV - - 80 * ( 94 ) )
----
-96

skipif mysql # not compatible
query I rowsort label-9838
SELECT ALL COALESCE ( - 96, - 14 * - + 37 + - 27 / - - 80 * ( 94 ) )
----
-96

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9839
SELECT - + MAX( 86 ) + 17 * 0 + + 14 DIV + SUM( + 70 )
----
-86

skipif mysql # not compatible
query I rowsort label-9839
SELECT - + MAX ( 86 ) + 17 * 0 + + 14 / + SUM ( + 70 )
----
-86

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9840
SELECT - ( - CASE + 11 WHEN - 4 * - NULLIF ( - CAST( NULL AS SIGNED ), + 75 ) - + 44 THEN NULL ELSE COUNT( * ) END ) DIV - 83 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-9840
SELECT - ( - CASE + 11 WHEN - 4 * - NULLIF ( - CAST ( NULL AS INTEGER ), + 75 ) - + 44 THEN NULL ELSE COUNT ( * ) END ) / - 83 AS col2
----
0

query I rowsort
SELECT - 39 * + 18 AS col1
----
-702

query II rowsort
SELECT - + 75 AS col2, 4 * + 67
----
-75
268

onlyif mysql # aggregate syntax: 
query I rowsort label-9843
SELECT - 13 * 73 + - + 44 + - - COUNT( * ) AS col1
----
-992

skipif mysql # not compatible
query I rowsort label-9843
SELECT - 13 * 73 + - + 44 + - - COUNT ( * ) AS col1
----
-992

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9844
SELECT - + 7 * 89 DIV - + ( + COUNT( * ) ) AS col1
----
623

skipif mysql # not compatible
query I rowsort label-9844
SELECT - + 7 * 89 / - + ( + COUNT ( * ) ) AS col1
----
623

query I rowsort
SELECT ALL + + ( - + 81 ) AS col0
----
-81

query I rowsort
SELECT DISTINCT + COALESCE ( - 69, 7 )
----
-69

query I rowsort
SELECT DISTINCT 67 * + 93 AS col2
----
6231

query I rowsort
SELECT - 41 + + 27
----
-14

query I rowsort
SELECT - ( + 55 ) AS col1
----
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-9850
SELECT - 85 * COUNT( * )
----
-85

skipif mysql # not compatible
query I rowsort label-9850
SELECT - 85 * COUNT ( * )
----
-85

query II rowsort
SELECT ALL + - 29 AS col0, 20
----
-29
20

onlyif mysql # aggregate syntax: 
query II rowsort label-9852
SELECT 19, + CASE + 46 WHEN + COUNT( * ) THEN NULL WHEN - 59 / + 14 + + ( - + AVG ( DISTINCT - 96 ) ) + SUM( + 86 ) / 20 + - 99 THEN + 3 END AS col0
----
19
NULL

skipif mysql # not compatible
query II rowsort label-9852
SELECT 19, + CASE + 46 WHEN + COUNT ( * ) THEN NULL WHEN - 59 / + 14 + + ( - + AVG ( DISTINCT - 96 ) ) + SUM ( + 86 ) / 20 + - 99 THEN + 3 END AS col0
----
19
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9853
SELECT 66 * - CAST( NULL AS SIGNED ) * + CAST( - + 29 AS SIGNED ) + + MIN( ALL + 74 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9853
SELECT 66 * - CAST ( NULL AS INTEGER ) * + CAST ( - + 29 AS INTEGER ) + + MIN ( ALL + 74 )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9854
SELECT - 21 DIV 59 DIV - 40 + + - 26
----
-26

skipif mysql # not compatible
query I rowsort label-9854
SELECT - 21 / 59 / - 40 + + - 26
----
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-9855
SELECT + COUNT( * ) * + + COUNT( * ) + + 93 AS col2
----
94

skipif mysql # not compatible
query I rowsort label-9855
SELECT + COUNT ( * ) * + + COUNT ( * ) + + 93 AS col2
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-9856
SELECT + - COUNT( DISTINCT - 84 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-9856
SELECT + - COUNT ( DISTINCT - 84 ) AS col1
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-9857
SELECT ALL COALESCE ( - 6, - 61, - 37 ) DIV + 34 + + 35
----
35

skipif mysql # not compatible
query I rowsort label-9857
SELECT ALL COALESCE ( - 6, - 61, - 37 ) / + 34 + + 35
----
35

query I rowsort
SELECT - - 80 * 23
----
1840

onlyif mysql # aggregate syntax: 
query I rowsort label-9859
SELECT ALL 93 * + + 21 + + - COUNT( * )
----
1952

skipif mysql # not compatible
query I rowsort label-9859
SELECT ALL 93 * + + 21 + + - COUNT ( * )
----
1952

query II rowsort
SELECT ( 42 ) AS col0, 45 AS col0
----
42
45

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9861
SELECT ALL ( - 11 ) * - 41 * + CAST( NULL AS SIGNED ) + 6 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9861
SELECT ALL ( - 11 ) * - 41 * + CAST ( NULL AS INTEGER ) + 6 col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9862
SELECT DISTINCT 55 * 26 * - 55 + - 83 + + 66 DIV + 93 AS col2
----
-78733

skipif mysql # not compatible
query I rowsort label-9862
SELECT DISTINCT 55 * 26 * - 55 + - 83 + + 66 / + 93 AS col2
----
-78733

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9863
SELECT ( + + 4 ), - COUNT( * ) - - 91 * + CAST( + - 58 AS SIGNED ) col1
----
4
-5279

skipif mysql # not compatible
query II rowsort label-9863
SELECT ( + + 4 ), - COUNT ( * ) - - 91 * + CAST ( + - 58 AS INTEGER ) col1
----
4
-5279

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9864
SELECT ( + ( COUNT( ALL + CAST( NULL AS SIGNED ) ) ) )
----
0

skipif mysql # not compatible
query I rowsort label-9864
SELECT ( + ( COUNT ( ALL + CAST ( NULL AS INTEGER ) ) ) )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9865
SELECT + 55 + COUNT( * )
----
56

skipif mysql # not compatible
query I rowsort label-9865
SELECT + 55 + COUNT ( * )
----
56

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9866
SELECT + CASE + - CAST( NULL AS SIGNED ) WHEN + 43 THEN - 1 / + - 29 + 96 + - + 9 + - + AVG ( ALL 79 ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-9866
SELECT + CASE + - CAST ( NULL AS INTEGER ) WHEN + 43 THEN - 1 / + - 29 + 96 + - + 9 + - + AVG ( ALL 79 ) ELSE NULL END
----
NULL

query I rowsort
SELECT ( + - 7 ) + 71
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-9868
SELECT MIN( - 88 ) * + 47
----
-4136

skipif mysql # not compatible
query I rowsort label-9868
SELECT MIN ( - 88 ) * + 47
----
-4136

query I rowsort
SELECT ( 60 ) * + 55
----
3300

query I rowsort
SELECT DISTINCT 48 - - 38 + - 29
----
57

query I rowsort
SELECT ALL NULLIF ( + 7, + + 55 ) * - - 26 col0
----
182

onlyif mysql # aggregate syntax: 
query I rowsort label-9872
SELECT ( + - COUNT( * ) ) * - + 0 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-9872
SELECT ( + - COUNT ( * ) ) * - + 0 AS col1
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9873
SELECT ALL SUM( ALL - 9 ) - 51 + + + COUNT( * ) + 15 * 73 + 63 * + + 20 + + MIN( DISTINCT + - 88 ) DIV + COALESCE ( 11, + 64 )
----
2288

skipif mysql # not compatible
query I rowsort label-9873
SELECT ALL SUM ( ALL - 9 ) - 51 + + + COUNT ( * ) + 15 * 73 + 63 * + + 20 + + MIN ( DISTINCT + - 88 ) / + COALESCE ( 11, + 64 )
----
2288

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9874
SELECT DISTINCT 12 - + 7 * + 66 * + 19 AS col2, COALESCE ( NULLIF ( + - COALESCE ( - COUNT( * ), - 67, + 11 * 28 * + 46 ), COUNT( * ) + AVG ( ALL 63 ) - 97 * - COUNT( * ) / - CAST( NULL AS SIGNED ) ), - 53 )
----
-8766
1

skipif mysql # not compatible
query II rowsort label-9874
SELECT DISTINCT 12 - + 7 * + 66 * + 19 AS col2, COALESCE ( NULLIF ( + - COALESCE ( - COUNT ( * ), - 67, + 11 * 28 * + 46 ), COUNT ( * ) + AVG ( ALL 63 ) - 97 * - COUNT ( * ) / - CAST ( NULL AS INTEGER ) ), - 53 )
----
-8766
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9875
SELECT MAX( - 49 ) + - 90
----
-139

skipif mysql # not compatible
query I rowsort label-9875
SELECT MAX ( - 49 ) + - 90
----
-139

onlyif mysql # aggregate syntax: 
query I rowsort label-9876
SELECT ALL COUNT( * ) * - + 44 * - COUNT( * ) AS col1
----
44

skipif mysql # not compatible
query I rowsort label-9876
SELECT ALL COUNT ( * ) * - + 44 * - COUNT ( * ) AS col1
----
44

query I rowsort
SELECT ( - 66 ) + - + 93 col1
----
-159

query I rowsort
SELECT ALL ( ( + 14 ) ) col0
----
14

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9879
SELECT + CAST( - 22 AS SIGNED ) - - 47 AS col0
----
25

skipif mysql # not compatible
query I rowsort label-9879
SELECT + CAST ( - 22 AS INTEGER ) - - 47 AS col0
----
25

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9880
SELECT + COUNT( * ) * + 89 - + CAST( NULL AS SIGNED ) * + 8 * - 0 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9880
SELECT + COUNT ( * ) * + 89 - + CAST ( NULL AS INTEGER ) * + 8 * - 0 AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9881
SELECT 44 - - + 55 + - ( + + 72 ) + - + 22 AS col0, - CAST( + - NULLIF ( - 95, + 42 * + 91 * + NULLIF ( - 79, + 33 ) ) AS SIGNED ) AS col2
----
5
-95

skipif mysql # not compatible
query II rowsort label-9881
SELECT 44 - - + 55 + - ( + + 72 ) + - + 22 AS col0, - CAST ( + - NULLIF ( - 95, + 42 * + 91 * + NULLIF ( - 79, + 33 ) ) AS INTEGER ) AS col2
----
5
-95

query I rowsort
SELECT ALL 59 + + ( - 52 ) AS col2
----
7

query I rowsort
SELECT ALL + 42 * - 32 - - 3 AS col1
----
-1341

onlyif mysql # DIV for integer division: 
query I rowsort label-9884
SELECT - 3 DIV + 25 + - 15 * - 54 AS col1
----
810

skipif mysql # not compatible
query I rowsort label-9884
SELECT - 3 / + 25 + - 15 * - 54 AS col1
----
810

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9885
SELECT DISTINCT + CAST( NULL AS SIGNED ) / - COUNT( * ) col1, - 13 AS col2
----
NULL
-13

skipif mysql # not compatible
query II rowsort label-9885
SELECT DISTINCT + CAST ( NULL AS INTEGER ) / - COUNT ( * ) col1, - 13 AS col2
----
NULL
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-9886
SELECT - - MIN( DISTINCT + + 14 )
----
14

skipif mysql # not compatible
query I rowsort label-9886
SELECT - - MIN ( DISTINCT + + 14 )
----
14

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9887
SELECT - + CASE - + 48 WHEN - 1 THEN - COALESCE ( COUNT( * ), - ( - COUNT( * ) ) / + 27 * + + 58 * + 20 * + + 51 * 42 + AVG ( + 55 ), - ( CAST( NULL AS SIGNED ) ) ) WHEN - 92 THEN - 74 * - 20 END
----
NULL

skipif mysql # not compatible
query I rowsort label-9887
SELECT - + CASE - + 48 WHEN - 1 THEN - COALESCE ( COUNT ( * ), - ( - COUNT ( * ) ) / + 27 * + + 58 * + 20 * + + 51 * 42 + AVG ( + 55 ), - ( CAST ( NULL AS INTEGER ) ) ) WHEN - 92 THEN - 74 * - 20 END
----
NULL

query I rowsort
SELECT 13 - 97
----
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-9889
SELECT ALL + 81 * NULLIF ( + + COALESCE ( + 20, - + COUNT( * ) + + 74 ), - 69 * + 57 ) * + 84 + - SUM( ALL + 2 ) - + 68 + + 87 + COUNT( * ) * 24 AS col2
----
136121

skipif mysql # not compatible
query I rowsort label-9889
SELECT ALL + 81 * NULLIF ( + + COALESCE ( + 20, - + COUNT ( * ) + + 74 ), - 69 * + 57 ) * + 84 + - SUM ( ALL + 2 ) - + 68 + + 87 + COUNT ( * ) * 24 AS col2
----
136121

query I rowsort
SELECT ALL - 90 + + 36 AS col2
----
-54

query I rowsort
SELECT 92 * - - 99
----
9108

onlyif mysql # aggregate syntax: 
query II rowsort label-9892
SELECT ALL - 20 * 17 AS col1, CASE + 0 WHEN + - 46 + 77 + - + AVG ( - 40 ) * - + 5 THEN - 82 WHEN COUNT( * ) * - - 82 THEN NULL END
----
-340
NULL

skipif mysql # not compatible
query II rowsort label-9892
SELECT ALL - 20 * 17 AS col1, CASE + 0 WHEN + - 46 + 77 + - + AVG ( - 40 ) * - + 5 THEN - 82 WHEN COUNT ( * ) * - - 82 THEN NULL END
----
-340
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9893
SELECT ( + 0 ) DIV - - ( + - 37 ) col0
----
0

skipif mysql # not compatible
query I rowsort label-9893
SELECT ( + 0 ) / - - ( + - 37 ) col0
----
0

query I rowsort
SELECT DISTINCT - - 84 AS col2
----
84

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9895
SELECT ALL - - COUNT( * ) + - 51 + - + COUNT( * ) - - CAST( + CASE - 17 WHEN - 55 THEN NULL WHEN + - 80 THEN + 85 * + 56 * 20 + - 0 + - - CASE - 70 WHEN 35 THEN + 14 * COUNT( * ) ELSE NULL END + AVG ( 9 ) END AS SIGNED ) * + COUNT( * ) * ( + 72 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9895
SELECT ALL - - COUNT ( * ) + - 51 + - + COUNT ( * ) - - CAST ( + CASE - 17 WHEN - 55 THEN NULL WHEN + - 80 THEN + 85 * + 56 * 20 + - 0 + - - CASE - 70 WHEN 35 THEN + 14 * COUNT ( * ) ELSE NULL END + AVG ( 9 ) END AS INTEGER ) * + COUNT ( * ) * ( + 72 )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9896
SELECT ALL - 55 DIV - ( + 34 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-9896
SELECT ALL - 55 / - ( + 34 ) AS col0
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9897
SELECT 91 * - + 9 * - 51 / - ( + + CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-9897
SELECT 91 * - + 9 * - 51 / - ( + + CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9898
SELECT 65 + + NULLIF ( + ( - 7 ), + COUNT( * ) ) - + 4 * + - 94 * COALESCE ( 25, - 98 DIV - - CAST( - 53 AS SIGNED ) ) * - + 53 AS col1
----
-498142

skipif mysql # not compatible
query I rowsort label-9898
SELECT 65 + + NULLIF ( + ( - 7 ), + COUNT ( * ) ) - + 4 * + - 94 * COALESCE ( 25, - 98 / - - CAST ( - 53 AS INTEGER ) ) * - + 53 AS col1
----
-498142

query I rowsort
SELECT ALL + 64 * + + 14
----
896

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9900
SELECT 81 + + CASE + 50 WHEN + 68 - - + COALESCE ( 73, + CAST( - 3 AS SIGNED ) * + 26 - + - 88 / - CASE - 88 WHEN + 2 THEN 62 / + + 15 + 77 ELSE NULL END * 6 ) THEN 21 WHEN + 50 / CAST( NULL AS SIGNED ) THEN NULL WHEN 60 THEN NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9900
SELECT 81 + + CASE + 50 WHEN + 68 - - + COALESCE ( 73, + CAST ( - 3 AS INTEGER ) * + 26 - + - 88 / - CASE - 88 WHEN + 2 THEN 62 / + + 15 + 77 ELSE NULL END * 6 ) THEN 21 WHEN + 50 / CAST ( NULL AS INTEGER ) THEN NULL WHEN 60 THEN NULL END AS col1
----
NULL

query I rowsort
SELECT NULLIF ( - 76, - 1 ) - - 6
----
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-9902
SELECT COUNT( * ) + + NULLIF ( + 87, 44 )
----
88

skipif mysql # not compatible
query I rowsort label-9902
SELECT COUNT ( * ) + + NULLIF ( + 87, 44 )
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-9903
SELECT ALL + 65 * COUNT( * ) AS col0
----
65

skipif mysql # not compatible
query I rowsort label-9903
SELECT ALL + 65 * COUNT ( * ) AS col0
----
65

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9904
SELECT COALESCE ( 67, COUNT( * ) ) * - CASE - 66 WHEN CAST( NULL AS SIGNED ) THEN + NULLIF ( + 82, - 35 ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9904
SELECT COALESCE ( 67, COUNT ( * ) ) * - CASE - 66 WHEN CAST ( NULL AS INTEGER ) THEN + NULLIF ( + 82, - 35 ) END AS col2
----
NULL

query I rowsort
SELECT 10 + - COALESCE ( 74, 11 + + + 74 ) AS col1
----
-64

query I rowsort
SELECT 16 + 85 col0
----
101

onlyif mysql # aggregate syntax: 
query II rowsort label-9907
SELECT ALL COUNT( * ) col1, 51 AS col1
----
1
51

skipif mysql # not compatible
query II rowsort label-9907
SELECT ALL COUNT ( * ) col1, 51 AS col1
----
1
51

onlyif mysql # DIV for integer division: 
query I rowsort label-9908
SELECT 96 DIV + - 23
----
-4

skipif mysql # not compatible
query I rowsort label-9908
SELECT 96 / + - 23
----
-4

query I rowsort
SELECT 32 * + - 91 AS col1
----
-2912

query I rowsort
SELECT - 50 * - ( - + 99 ) + - 82 col2
----
-5032

query II rowsort
SELECT 42 AS col0, 43 AS col1
----
42
43

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9912
SELECT ALL 0 DIV COUNT( * ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-9912
SELECT ALL 0 / COUNT ( * ) AS col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9913
SELECT 15 + - 18 + - CAST( NULL AS SIGNED ) + + MAX( + 8 ) / - - 28 + - 33 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9913
SELECT 15 + - 18 + - CAST ( NULL AS INTEGER ) + + MAX ( + 8 ) / - - 28 + - 33 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9914
SELECT DISTINCT MIN( DISTINCT - + 52 )
----
-52

skipif mysql # not compatible
query I rowsort label-9914
SELECT DISTINCT MIN ( DISTINCT - + 52 )
----
-52

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9915
SELECT CAST( NULL AS SIGNED ) + + COUNT( * ) * SUM( DISTINCT 98 ) + 28 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9915
SELECT CAST ( NULL AS INTEGER ) + + COUNT ( * ) * SUM ( DISTINCT 98 ) + 28 AS col1
----
NULL

query I rowsort
SELECT - 74 * + ( + + 60 )
----
-4440

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9917
SELECT ALL 48 + ( 68 ) * + - 95 + - MAX( ALL + CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-9917
SELECT ALL 48 + ( 68 ) * + - 95 + - MAX ( ALL + CAST ( NULL AS INTEGER ) )
----
NULL

query I rowsort
SELECT DISTINCT + 13 * - - 47 * - + 75
----
-45825

query I rowsort
SELECT + 40 + - 91 + + 60 * 81
----
4809

onlyif mysql # aggregate syntax: 
query I rowsort label-9920
SELECT + COUNT( * ) * - - 4 AS col0
----
4

skipif mysql # not compatible
query I rowsort label-9920
SELECT + COUNT ( * ) * - - 4 AS col0
----
4

onlyif mysql # aggregate syntax: 
query II rowsort label-9921
SELECT - 93 AS col1, + MIN( 85 ) AS col2
----
-93
85

skipif mysql # not compatible
query II rowsort label-9921
SELECT - 93 AS col1, + MIN ( 85 ) AS col2
----
-93
85

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9922
SELECT ALL + 19 + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-9922
SELECT ALL + 19 + CAST ( NULL AS REAL )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9923
SELECT DISTINCT MAX( - 95 ) AS col0
----
-95

skipif mysql # not compatible
query I rowsort label-9923
SELECT DISTINCT MAX ( - 95 ) AS col0
----
-95

query II rowsort
SELECT DISTINCT - 20 AS col2, + 92 AS col0
----
-20
92

query I rowsort
SELECT ALL + + 75 * - 13 AS col1
----
-975

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9926
SELECT + 66 * - 55 * + CAST( NULL AS SIGNED ) / + COUNT( * ) * - COUNT( * ) + - + 68 + + 1
----
NULL

skipif mysql # not compatible
query I rowsort label-9926
SELECT + 66 * - 55 * + CAST ( NULL AS INTEGER ) / + COUNT ( * ) * - COUNT ( * ) + - + 68 + + 1
----
NULL

query I rowsort
SELECT DISTINCT + 96 * + 19 + + 18 + + 85
----
1927

onlyif mysql # aggregate syntax: 
query II rowsort label-9928
SELECT + + 84, MIN( ALL - 10 ) AS col1
----
84
-10

skipif mysql # not compatible
query II rowsort label-9928
SELECT + + 84, MIN ( ALL - 10 ) AS col1
----
84
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-9929
SELECT ALL - + SUM( DISTINCT + - 55 ) AS col2
----
55

skipif mysql # not compatible
query I rowsort label-9929
SELECT ALL - + SUM ( DISTINCT + - 55 ) AS col2
----
55

onlyif mysql # DIV for integer division: 
query I rowsort label-9930
SELECT + 54 DIV - 36 + - 58
----
-59

skipif mysql # not compatible
query I rowsort label-9930
SELECT + 54 / - 36 + - 58
----
-59

query I rowsort
SELECT DISTINCT - ( + 75 ) AS col0
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-9932
SELECT ALL ( + - 58 ) * - - MIN( DISTINCT - 44 ) AS col1
----
2552

skipif mysql # not compatible
query I rowsort label-9932
SELECT ALL ( + - 58 ) * - - MIN ( DISTINCT - 44 ) AS col1
----
2552

query I rowsort
SELECT + 39 + - 67 * + ( - - 64 ) * - 62 AS col0
----
265895

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9934
SELECT + SUM( + CAST( + COALESCE ( + 27, 86 ) AS SIGNED ) )
----
27

skipif mysql # not compatible
query I rowsort label-9934
SELECT + SUM ( + CAST ( + COALESCE ( + 27, 86 ) AS INTEGER ) )
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-9935
SELECT + CASE + COUNT( * ) WHEN - 55 + - 40 + - 98 THEN + + 63 ELSE + + 15 * COUNT( * ) END
----
15

skipif mysql # not compatible
query I rowsort label-9935
SELECT + CASE + COUNT ( * ) WHEN - 55 + - 40 + - 98 THEN + + 63 ELSE + + 15 * COUNT ( * ) END
----
15

query I rowsort
SELECT + 2 * + 47 AS col1
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-9937
SELECT 69 * - 8 * + - 54 + - COUNT( * ) * + 20 * 42 AS col0
----
28968

skipif mysql # not compatible
query I rowsort label-9937
SELECT 69 * - 8 * + - 54 + - COUNT ( * ) * + 20 * 42 AS col0
----
28968

query I rowsort
SELECT + COALESCE ( 30, 41 ) AS col1
----
30

query I rowsort
SELECT 60 * - 72 + - 13
----
-4333

query II rowsort
SELECT ALL + 20 AS col1, + 74 AS col0
----
20
74

query I rowsort
SELECT DISTINCT 43 * + 19 AS col0
----
817

query I rowsort
SELECT ALL - NULLIF ( 83, - 21 * - - 77 + + 53 + - 29 ) / CASE 34 WHEN - 48 - + 3 + + - 7 THEN 57 END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9943
SELECT - 90 DIV + + COUNT( * )
----
-90

skipif mysql # not compatible
query I rowsort label-9943
SELECT - 90 / + + COUNT ( * )
----
-90

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9944
SELECT ALL + CAST( - + CASE 84 WHEN MAX( + - 57 ) THEN 30 * - 11 ELSE NULL END AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9944
SELECT ALL + CAST ( - + CASE 84 WHEN MAX ( + - 57 ) THEN 30 * - 11 ELSE NULL END AS INTEGER ) AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9945
SELECT ALL - 6 DIV ( + 11 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-9945
SELECT ALL - 6 / ( + 11 ) AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9946
SELECT MIN( ALL 20 ) AS col2
----
20

skipif mysql # not compatible
query I rowsort label-9946
SELECT MIN ( ALL 20 ) AS col2
----
20

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9947
SELECT COUNT( * ), 93 * - 31 + 48 - CASE + - 17 WHEN + + 52 THEN NULL ELSE - 72 DIV + + 95 + + + 17 - - ( 63 ) * + 38 * + ( - 66 ) + - 18 END AS col0
----
1
155170

skipif mysql # not compatible
query II rowsort label-9947
SELECT COUNT ( * ), 93 * - 31 + 48 - CASE + - 17 WHEN + + 52 THEN NULL ELSE - 72 / + + 95 + + + 17 - - ( 63 ) * + 38 * + ( - 66 ) + - 18 END AS col0
----
1
155170

query I rowsort
SELECT - 12 * - 3
----
36

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9949
SELECT ALL + CAST( - + 74 AS SIGNED )
----
-74

skipif mysql # not compatible
query I rowsort label-9949
SELECT ALL + CAST ( - + 74 AS INTEGER )
----
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-9950
SELECT - COUNT( * ) * 7 * + 53 - + 8 * 56
----
-819

skipif mysql # not compatible
query I rowsort label-9950
SELECT - COUNT ( * ) * 7 * + 53 - + 8 * 56
----
-819

query I rowsort
SELECT - 36 * - + 48 col0
----
1728

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9952
SELECT ALL + 70 + - 56 DIV + COUNT( * )
----
14

skipif mysql # not compatible
query I rowsort label-9952
SELECT ALL + 70 + - 56 / + COUNT ( * )
----
14

query I rowsort
SELECT DISTINCT + 89 + + 25
----
114

onlyif mysql # DIV for integer division: 
query I rowsort label-9954
SELECT ALL - 83 + + 81 * 16 DIV 90 + 61 + 62 * - 15 - + - 47
----
-891

skipif mysql # not compatible
query I rowsort label-9954
SELECT ALL - 83 + + 81 * 16 / 90 + 61 + 62 * - 15 - + - 47
----
-891

onlyif mysql # aggregate syntax: 
query I rowsort label-9955
SELECT ALL + 25 + CASE 6 WHEN + ( - + 53 ) + - + 84 THEN + 59 WHEN + - COUNT( * ) THEN NULL WHEN + 72 THEN NULL ELSE NULL END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9955
SELECT ALL + 25 + CASE 6 WHEN + ( - + 53 ) + - + 84 THEN + 59 WHEN + - COUNT ( * ) THEN NULL WHEN + 72 THEN NULL ELSE NULL END col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9956
SELECT - - COALESCE ( COALESCE ( - - 40, + COUNT( ALL - 13 ) ), - - CASE - ( - 79 ) WHEN - 66 THEN 43 WHEN - 96 THEN - 83 ELSE NULL END ) AS col0
----
40

skipif mysql # not compatible
query I rowsort label-9956
SELECT - - COALESCE ( COALESCE ( - - 40, + COUNT ( ALL - 13 ) ), - - CASE - ( - 79 ) WHEN - 66 THEN 43 WHEN - 96 THEN - 83 ELSE NULL END ) AS col0
----
40

query I rowsort
SELECT ALL + ( + - 14 ) AS col2
----
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-9958
SELECT COUNT( ALL - 45 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-9958
SELECT COUNT ( ALL - 45 ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9959
SELECT + 94 + + COUNT( * )
----
95

skipif mysql # not compatible
query I rowsort label-9959
SELECT + 94 + + COUNT ( * )
----
95

onlyif mysql # aggregate syntax: 
query I rowsort label-9960
SELECT MIN( + 9 )
----
9

skipif mysql # not compatible
query I rowsort label-9960
SELECT MIN ( + 9 )
----
9

query II rowsort
SELECT - 60 AS col0, - 0
----
-60
0

query I rowsort
SELECT ALL + - 98 + + 26 col2
----
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-9963
SELECT ALL + MAX( DISTINCT + - 86 ) + + 65 AS col2
----
-21

skipif mysql # not compatible
query I rowsort label-9963
SELECT ALL + MAX ( DISTINCT + - 86 ) + + 65 AS col2
----
-21

onlyif mysql # DIV for integer division: 
query I rowsort label-9964
SELECT - 61 DIV 14 * + 4 AS col1
----
-16

skipif mysql # not compatible
query I rowsort label-9964
SELECT - 61 / 14 * + 4 AS col1
----
-16

query I rowsort
SELECT - 83 col0
----
-83

query I rowsort
SELECT ALL + - 6 + + 97 * + 23 AS col2
----
2225

onlyif mysql # aggregate syntax: 
query I rowsort label-9967
SELECT ALL 18 * - COUNT( * ) + - SUM( ALL + 96 ) AS col1
----
-114

skipif mysql # not compatible
query I rowsort label-9967
SELECT ALL 18 * - COUNT ( * ) + - SUM ( ALL + 96 ) AS col1
----
-114

query I rowsort
SELECT ALL + 82 - - 89
----
171

onlyif mysql # aggregate syntax: 
query I rowsort label-9969
SELECT DISTINCT - + CASE + - 0 WHEN - 52 THEN NULL WHEN - - 81 THEN SUM( ( + 84 ) ) ELSE NULL END * + 78 * + + 38 * - 50
----
NULL

skipif mysql # not compatible
query I rowsort label-9969
SELECT DISTINCT - + CASE + - 0 WHEN - 52 THEN NULL WHEN - - 81 THEN SUM ( ( + 84 ) ) ELSE NULL END * + 78 * + + 38 * - 50
----
NULL

query I rowsort
SELECT + - 2 * - 43 AS col0
----
86

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9971
SELECT ALL - COUNT( * ) * 81 AS col2, + NULLIF ( - - 17, - 99 ) + + 57 DIV - 92
----
-81
17

skipif mysql # not compatible
query II rowsort label-9971
SELECT ALL - COUNT ( * ) * 81 AS col2, + NULLIF ( - - 17, - 99 ) + + 57 / - 92
----
-81
17

onlyif mysql # aggregate syntax: 
query I rowsort label-9972
SELECT + + 69 - + + COUNT( * ) + 50
----
118

skipif mysql # not compatible
query I rowsort label-9972
SELECT + + 69 - + + COUNT ( * ) + 50
----
118

onlyif mysql # aggregate syntax: 
query II rowsort label-9973
SELECT - COUNT( * ), + 72 * - 48 AS col2
----
-1
-3456

skipif mysql # not compatible
query II rowsort label-9973
SELECT - COUNT ( * ), + 72 * - 48 AS col2
----
-1
-3456

query II rowsort
SELECT ALL + - 7, 22 AS col1
----
-7
22

query II rowsort
SELECT + 77 - 62, 93 AS col2
----
15
93

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9976
SELECT CAST( - ( + 5 ) AS SIGNED ) AS col2
----
-5

skipif mysql # not compatible
query I rowsort label-9976
SELECT CAST ( - ( + 5 ) AS INTEGER ) AS col2
----
-5

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9977
SELECT ( ( + 22 ) ) DIV + 60 + + + 63 AS col0, - SUM( + 29 )
----
63
-29

skipif mysql # not compatible
query II rowsort label-9977
SELECT ( ( + 22 ) ) / + 60 + + + 63 AS col0, - SUM ( + 29 )
----
63
-29

query I rowsort
SELECT + ( 17 ) AS col0
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-9979
SELECT DISTINCT 25 * SUM( DISTINCT + 3 ) * 0 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-9979
SELECT DISTINCT 25 * SUM ( DISTINCT + 3 ) * 0 AS col2
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-9980
SELECT ALL + COUNT( DISTINCT + - 12 ) AS col1, 28 * 68 AS col2
----
1
1904

skipif mysql # not compatible
query II rowsort label-9980
SELECT ALL + COUNT ( DISTINCT + - 12 ) AS col1, 28 * 68 AS col2
----
1
1904

onlyif mysql # aggregate syntax: 
query I rowsort label-9981
SELECT + 90 - MAX( + 20 ) AS col2
----
70

skipif mysql # not compatible
query I rowsort label-9981
SELECT + 90 - MAX ( + 20 ) AS col2
----
70

query II rowsort
SELECT + 49 * + + 88 AS col2, 63 - - + ( - 55 )
----
4312
8

onlyif mysql # aggregate syntax: 
query I rowsort label-9983
SELECT ALL - COALESCE ( + 7, ( ( - 85 ) ), - + ( - 12 ), 16 ) * COUNT( DISTINCT + NULLIF ( - 4, - COALESCE ( + 10, - + ( 36 ) ) ) ) + - COALESCE ( 85, - 71 * 72 ) / CASE 29 * 92 + + 55 WHEN + 74 * 57 + + 32 THEN NULL WHEN 98 * - COUNT( * ) THEN - 97 * + 5 END
----
NULL

skipif mysql # not compatible
query I rowsort label-9983
SELECT ALL - COALESCE ( + 7, ( ( - 85 ) ), - + ( - 12 ), 16 ) * COUNT ( DISTINCT + NULLIF ( - 4, - COALESCE ( + 10, - + ( 36 ) ) ) ) + - COALESCE ( 85, - 71 * 72 ) / CASE 29 * 92 + + 55 WHEN + 74 * 57 + + 32 THEN NULL WHEN 98 * - COUNT ( * ) THEN - 97 * + 5 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9984
SELECT ( + COUNT( + 62 ) )
----
1

skipif mysql # not compatible
query I rowsort label-9984
SELECT ( + COUNT ( + 62 ) )
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9985
SELECT + CAST( - 91 AS SIGNED ) AS col0
----
-91

skipif mysql # not compatible
query I rowsort label-9985
SELECT + CAST ( - 91 AS INTEGER ) AS col0
----
-91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9986
SELECT + CAST( NULL AS SIGNED ) + + ( + - 55 ) + 63
----
NULL

skipif mysql # not compatible
query I rowsort label-9986
SELECT + CAST ( NULL AS INTEGER ) + + ( + - 55 ) + 63
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9987
SELECT + ( NULLIF ( + CAST( NULL AS SIGNED ), + - 51 ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9987
SELECT + ( NULLIF ( + CAST ( NULL AS INTEGER ), + - 51 ) ) AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9988
SELECT + 13 + + - 72 + - COUNT( * ) DIV - + NULLIF ( + + 54, 95 * + 39 * - - 27 + - COUNT( * ) )
----
-59

skipif mysql # not compatible
query I rowsort label-9988
SELECT + 13 + + - 72 + - COUNT ( * ) / - + NULLIF ( + + 54, 95 * + 39 * - - 27 + - COUNT ( * ) )
----
-59

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9989
SELECT ALL - 86 * + 5 * - MAX( DISTINCT - - 20 ) * - COUNT( + + 23 ) + - - 96 + - CAST( NULL AS SIGNED ) * + + 37 + - - 27 * COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9989
SELECT ALL - 86 * + 5 * - MAX ( DISTINCT - - 20 ) * - COUNT ( + + 23 ) + - - 96 + - CAST ( NULL AS INTEGER ) * + + 37 + - - 27 * COUNT ( * ) AS col1
----
NULL

query I rowsort
SELECT + 30 + + + 71
----
101

onlyif mysql # aggregate syntax: 
query I rowsort label-9991
SELECT ( - NULLIF ( - 60, COUNT( * ) ) )
----
60

skipif mysql # not compatible
query I rowsort label-9991
SELECT ( - NULLIF ( - 60, COUNT ( * ) ) )
----
60

query I rowsort
SELECT ALL + ( + 67 )
----
67

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9993
SELECT ALL + 87 * COALESCE ( + - CAST( NULL AS SIGNED ), - - 67 + - - 42 - + 99, + 28 ) * 74 + - + 77 - + + 98 AS col1
----
64205

skipif mysql # not compatible
query I rowsort label-9993
SELECT ALL + 87 * COALESCE ( + - CAST ( NULL AS INTEGER ), - - 67 + - - 42 - + 99, + 28 ) * 74 + - + 77 - + + 98 AS col1
----
64205

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9994
SELECT - COUNT( * ) * + + 88 * + - ( + COUNT( * ) ) / 84 * 85 + 33 + + COUNT( * ) / CASE - 9 WHEN + + 53 THEN NULL WHEN + - 77 * - - COALESCE ( + 38, 55 ) * + 16 * + 18 - - 47 THEN ( CAST( NULL AS SIGNED ) ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-9994
SELECT - COUNT ( * ) * + + 88 * + - ( + COUNT ( * ) ) / 84 * 85 + 33 + + COUNT ( * ) / CASE - 9 WHEN + + 53 THEN NULL WHEN + - 77 * - - COALESCE ( + 38, 55 ) * + 16 * + 18 - - 47 THEN ( CAST ( NULL AS INTEGER ) ) END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9995
SELECT ALL + 9 * - - CAST( - - 90 AS SIGNED ) + + 56 + + 59 + + + 33 * + 72 / + 39 * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9995
SELECT ALL + 9 * - - CAST ( - - 90 AS INTEGER ) + + 56 + + 59 + + + 33 * + 72 / + 39 * - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9996
SELECT ALL 87 * - - 5 / 46 * + 38 + - CASE - + COALESCE ( - 4, - 69 / CAST( NULL AS SIGNED ) + + 67 + 6 * + COUNT( 28 ) * + 34 ) WHEN + 0 THEN COUNT( + 95 ) + 47 END - 27 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9996
SELECT ALL 87 * - - 5 / 46 * + 38 + - CASE - + COALESCE ( - 4, - 69 / CAST ( NULL AS INTEGER ) + + 67 + 6 * + COUNT ( 28 ) * + 34 ) WHEN + 0 THEN COUNT ( + 95 ) + 47 END - 27 col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9997
SELECT - - COALESCE ( - COUNT( - ( 28 ) ), - - COALESCE ( - ( + 15 ), - - 72 DIV - 91, 99 * 15 DIV + 62 + ( CAST( NULL AS SIGNED ) ), - 98 ) ) + + 50 * 22 - 20
----
1079

skipif mysql # not compatible
query I rowsort label-9997
SELECT - - COALESCE ( - COUNT ( - ( 28 ) ), - - COALESCE ( - ( + 15 ), - - 72 / - 91, 99 * 15 / + 62 + ( CAST ( NULL AS INTEGER ) ), - 98 ) ) + + 50 * 22 - 20
----
1079

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9998
SELECT + + 80 * + 48 * + CASE + 98 WHEN + COUNT( * ) THEN NULL WHEN - - 70 + COUNT( * ) THEN + + 93 * - 88 WHEN - CASE + COUNT( * ) WHEN + ( - 14 ) * 25 * - 68 + - + SUM( DISTINCT - 72 ) THEN + 47 WHEN + 95 * + 17 - ( 92 ) THEN - 67 / + 19 - + COUNT( * ) END * ( + 59 ) + 47 * + ( - 19 * + 29 + + 67 ) THEN 77 ELSE - 62 * 66 END * CAST( 4 AS SIGNED )
----
-62853120

skipif mysql # not compatible
query I rowsort label-9998
SELECT + + 80 * + 48 * + CASE + 98 WHEN + COUNT ( * ) THEN NULL WHEN - - 70 + COUNT ( * ) THEN + + 93 * - 88 WHEN - CASE + COUNT ( * ) WHEN + ( - 14 ) * 25 * - 68 + - + SUM ( DISTINCT - 72 ) THEN + 47 WHEN + 95 * + 17 - ( 92 ) THEN - 67 / + 19 - + COUNT ( * ) END * ( + 59 ) + 47 * + ( - 19 * + 29 + + 67 ) THEN 77 ELSE - 62 * 66 END * CAST ( 4 AS INTEGER )
----
-62853120

onlyif mysql # DIV for integer division: 
query I rowsort label-9999
SELECT - + 74 + + 61 DIV - - 45
----
-73

skipif mysql # not compatible
query I rowsort label-9999
SELECT - + 74 + + 61 / - - 45
----
-73

