sqllogictest
Artifact Content
Not logged in

Artifact f8eff17722c6ff23a9bcb084a6a9a5f9d9b5b1fc:


hash-threshold 8

statement ok
CREATE TABLE tab0(col0 INTEGER, col1 INTEGER, col2 INTEGER)

statement ok
CREATE TABLE tab1(col0 INTEGER, col1 INTEGER, col2 INTEGER)

statement ok
CREATE TABLE tab2(col0 INTEGER, col1 INTEGER, col2 INTEGER)

statement ok
INSERT INTO tab0 VALUES(97,1,99)

statement ok
INSERT INTO tab0 VALUES(15,81,47)

statement ok
INSERT INTO tab0 VALUES(87,21,10)

statement ok
INSERT INTO tab1 VALUES(51,14,96)

statement ok
INSERT INTO tab1 VALUES(85,5,59)

statement ok
INSERT INTO tab1 VALUES(91,47,68)

statement ok
INSERT INTO tab2 VALUES(64,77,40)

statement ok
INSERT INTO tab2 VALUES(75,67,58)

statement ok
INSERT INTO tab2 VALUES(46,51,23)

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-0
SELECT 20 DIV - - 96 + CAST( 90 AS SIGNED ) AS col2
----
90

skipif mysql # not compatible
query I rowsort label-0
SELECT 20 / - - 96 + CAST ( 90 AS INTEGER ) AS col2
----
90

query I rowsort
SELECT ALL - 14 + 42 * 46 * + 6 + - - 1 - - 22 AS col1
----
11601

query I rowsort
SELECT ALL - - 77 + - 29 AS col1
----
48

query I rowsort
SELECT ALL 13 * 21 AS col2
----
273

query I rowsort
SELECT ALL - 8 * - + 42 col0
----
336

onlyif mysql # aggregate syntax: 
query II rowsort label-5
SELECT ALL NULLIF ( - COUNT( * ), + 67 * - - ( + 25 ) + 89 + - 39 * 63 ) + + 54 AS col2, 11 * 31 * - - ( 70 )
----
53
23870

skipif mysql # not compatible
query II rowsort label-5
SELECT ALL NULLIF ( - COUNT ( * ), + 67 * - - ( + 25 ) + 89 + - 39 * 63 ) + + 54 AS col2, 11 * 31 * - - ( 70 )
----
53
23870

onlyif mysql # aggregate syntax: 
query I rowsort label-6
SELECT ALL 74 * - COALESCE ( + CASE - CASE WHEN NOT ( NOT - 79 >= NULL ) THEN 48 END WHEN + + COUNT( * ) THEN 6 END, MIN( ALL + - 30 ) * 45 * 77 ) * - 14
----
-107692200

skipif mysql # not compatible
query I rowsort label-6
SELECT ALL 74 * - COALESCE ( + CASE - CASE WHEN NOT ( NOT - 79 >= NULL ) THEN 48 END WHEN + + COUNT ( * ) THEN 6 END, MIN ( ALL + - 30 ) * 45 * 77 ) * - 14
----
-107692200

onlyif mysql # DIV for integer division: 
query I rowsort label-7
SELECT 81 DIV + + 31
----
2

skipif mysql # not compatible
query I rowsort label-7
SELECT 81 / + + 31
----
2

query I rowsort
SELECT DISTINCT 9 + + - 10 + + 68
----
67

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

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

query I rowsort
SELECT 36 + - 25 * - 20 * NULLIF ( 20, - + 9 )
----
10036

onlyif mysql # DIV for integer division: 
query I rowsort label-11
SELECT ALL 62 DIV ( + - 2 )
----
-31

skipif mysql # not compatible
query I rowsort label-11
SELECT ALL 62 / ( + - 2 )
----
-31

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-12
SELECT DISTINCT 73 - + - 75 + + 56 * + + COUNT( * ) * - 89 + + 87 DIV - - 98 * + + 68 * + 32
----
-4836

skipif mysql # not compatible
query I rowsort label-12
SELECT DISTINCT 73 - + - 75 + + 56 * + + COUNT ( * ) * - 89 + + 87 / - - 98 * + + 68 * + 32
----
-4836

query I rowsort
SELECT ALL 81 AS col0
----
81

onlyif mysql # aggregate syntax: 
query II rowsort label-14
SELECT - MAX( - 76 ), - 15 AS col2
----
76
-15

skipif mysql # not compatible
query II rowsort label-14
SELECT - MAX ( - 76 ), - 15 AS col2
----
76
-15

query I rowsort
SELECT ALL + 55 - + + 63
----
-8

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

skipif mysql # not compatible
query I rowsort label-16
SELECT DISTINCT CAST ( NULL AS INTEGER ) * - 85 * 50
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-17
SELECT 58 + + 78 + - COALESCE ( ( + CASE 68 WHEN - 77 - - 38 THEN NULL ELSE COUNT( * ) END ), + 81 + - COUNT( * ) + + CAST( NULL AS SIGNED ), + + 34 * - 30 * + COUNT( * ) ) * 15 * 38 AS col1
----
-434

skipif mysql # not compatible
query I rowsort label-17
SELECT 58 + + 78 + - COALESCE ( ( + CASE 68 WHEN - 77 - - 38 THEN NULL ELSE COUNT ( * ) END ), + 81 + - COUNT ( * ) + + CAST ( NULL AS INTEGER ), + + 34 * - 30 * + COUNT ( * ) ) * 15 * 38 AS col1
----
-434

query I rowsort
SELECT ALL 54 * + 30
----
1620

query I rowsort
SELECT 32 * - 37 AS col0
----
-1184

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-20
SELECT 67 * + 85 * - CAST( - SUM( - 52 ) AS SIGNED ) col2
----
-296140

skipif mysql # not compatible
query I rowsort label-20
SELECT 67 * + 85 * - CAST ( - SUM ( - 52 ) AS INTEGER ) col2
----
-296140

onlyif mysql # aggregate syntax: 
query I rowsort label-21
SELECT + COUNT( * ) + MAX( ALL + 26 ) AS col1
----
27

skipif mysql # not compatible
query I rowsort label-21
SELECT + COUNT ( * ) + MAX ( ALL + 26 ) AS col1
----
27

query I rowsort
SELECT + 15 + + ( - 10 ) AS col2
----
5

query I rowsort
SELECT ALL 89 * - 23 * + - 19 AS col0
----
38893

onlyif mysql # aggregate syntax: 
query I rowsort label-24
SELECT - 28 + - SUM( DISTINCT - 68 )
----
40

skipif mysql # not compatible
query I rowsort label-24
SELECT - 28 + - SUM ( DISTINCT - 68 )
----
40

query II rowsort
SELECT ALL - 70 + + + 79 AS col1, ( 26 ) * + + 74
----
9
1924

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-27
SELECT ALL - COUNT( * ) * + 15 * 46 + + + CAST( 30 AS SIGNED )
----
-660

skipif mysql # not compatible
query I rowsort label-27
SELECT ALL - COUNT ( * ) * + 15 * 46 + + + CAST ( 30 AS INTEGER )
----
-660

query I rowsort
SELECT ALL 17 * - 78 + + 4 + + 47 AS col1
----
-1275

query I rowsort
SELECT + - 92
----
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-30
SELECT - NULLIF ( - 48, MAX( ALL - - 22 ) )
----
48

skipif mysql # not compatible
query I rowsort label-30
SELECT - NULLIF ( - 48, MAX ( ALL - - 22 ) )
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-31
SELECT - COUNT( * ) * 35
----
-35

skipif mysql # not compatible
query I rowsort label-31
SELECT - COUNT ( * ) * 35
----
-35

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-32
SELECT DISTINCT - - 4 * - - CAST( - 2 AS SIGNED ) + 8 * - 32
----
-264

skipif mysql # not compatible
query I rowsort label-32
SELECT DISTINCT - - 4 * - - CAST ( - 2 AS INTEGER ) + 8 * - 32
----
-264

onlyif mysql # aggregate syntax: 
query I rowsort label-33
SELECT ALL COUNT( * ) * 82 * - COUNT( * ) - - 53 + + 97 + - 62 col1
----
6

skipif mysql # not compatible
query I rowsort label-33
SELECT ALL COUNT ( * ) * 82 * - COUNT ( * ) - - 53 + + 97 + - 62 col1
----
6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-34
SELECT - CAST( NULL AS SIGNED ) * + + 3 * + + 76 * + + 73 + ( - 82 )
----
NULL

skipif mysql # not compatible
query I rowsort label-34
SELECT - CAST ( NULL AS INTEGER ) * + + 3 * + + 76 * + + 73 + ( - 82 )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-35
SELECT ALL 25 * + COUNT( * ) + - 0 - + - 6 + + - ( + + CASE + CAST( + + 38 AS DECIMAL ) WHEN 3 THEN NULL WHEN + 42 THEN NULL WHEN - 80 THEN NULL ELSE 14 END ) AS col1, - 31 AS col0
----
17
-31

skipif mysql # not compatible
query II rowsort label-35
SELECT ALL 25 * + COUNT ( * ) + - 0 - + - 6 + + - ( + + CASE + CAST ( + + 38 AS REAL ) WHEN 3 THEN NULL WHEN + 42 THEN NULL WHEN - 80 THEN NULL ELSE 14 END ) AS col1, - 31 AS col0
----
17
-31

query I rowsort
SELECT DISTINCT - 85 * + + 44 AS col1
----
-3740

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-37
SELECT DISTINCT + - CAST( NULL AS SIGNED ) * - 89 + + - 0 + + COUNT( * ) + - 97 + + + 93 * - + ( + + 31 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-37
SELECT DISTINCT + - CAST ( NULL AS INTEGER ) * - 89 + + - 0 + + COUNT ( * ) + - 97 + + + 93 * - + ( + + 31 ) AS col1
----
NULL

query I rowsort
SELECT ALL - + 37 * - 63 + + 99 AS col2
----
2430

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-40
SELECT ALL COUNT( * ) * CAST( 64 AS SIGNED ) DIV - - 7 + + COUNT( DISTINCT - 69 ) DIV - MAX( ALL 51 ) + ( - 48 )
----
-39

skipif mysql # not compatible
query I rowsort label-40
SELECT ALL COUNT ( * ) * CAST ( 64 AS INTEGER ) / - - 7 + + COUNT ( DISTINCT - 69 ) / - MAX ( ALL 51 ) + ( - 48 )
----
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-41
SELECT ALL + COALESCE ( - 31, + COUNT( * ) ) col1
----
-31

skipif mysql # not compatible
query I rowsort label-41
SELECT ALL + COALESCE ( - 31, + COUNT ( * ) ) col1
----
-31

onlyif mysql # aggregate syntax: 
query II rowsort label-42
SELECT DISTINCT 32 * + + 59 * + ( + + 41 ) - - 9 col2, COUNT( DISTINCT + + 79 ) AS col0
----
77417
1

skipif mysql # not compatible
query II rowsort label-42
SELECT DISTINCT 32 * + + 59 * + ( + + 41 ) - - 9 col2, COUNT ( DISTINCT + + 79 ) AS col0
----
77417
1

query I rowsort
SELECT + 63 * COALESCE ( + 65, - 70 + - 19 ) AS col0
----
4095

onlyif mysql # aggregate syntax: 
query II rowsort label-44
SELECT ALL + 30 * 3 - - 96 AS col0, 58 * + - 85 - - COUNT( * ) AS col2
----
186
-4929

skipif mysql # not compatible
query II rowsort label-44
SELECT ALL + 30 * 3 - - 96 AS col0, 58 * + - 85 - - COUNT ( * ) AS col2
----
186
-4929

query I rowsort
SELECT - 74 * - 3 * - 51 * - - 91
----
-1030302

onlyif mysql # aggregate syntax: 
query II rowsort label-46
SELECT DISTINCT + 68 AS col1, - 11 + - 21 * + 19 * + MAX( ALL - 34 )
----
68
13555

skipif mysql # not compatible
query II rowsort label-46
SELECT DISTINCT + 68 AS col1, - 11 + - 21 * + 19 * + MAX ( ALL - 34 )
----
68
13555

query I rowsort
SELECT - 50 - - 56
----
6

query I rowsort
SELECT ALL + 78 AS col0
----
78

query I rowsort
SELECT ALL 21 * - - 24
----
504

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-50
SELECT DISTINCT + ( CAST( CAST( NULL AS SIGNED ) AS SIGNED ) ) AS col0, + 98 * - - 9 * - - 56 * - + MIN( ALL - - 34 ) + - 48 DIV - 29
----
NULL
-1679327

skipif mysql # not compatible
query II rowsort label-50
SELECT DISTINCT + ( CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) ) AS col0, + 98 * - - 9 * - - 56 * - + MIN ( ALL - - 34 ) + - 48 / - 29
----
NULL
-1679327

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

skipif mysql # not compatible
query I rowsort label-51
SELECT + MAX ( + + 15 )
----
15

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-52
SELECT - MAX( + - CAST( NULL AS DECIMAL ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-52
SELECT - MAX ( + - CAST ( NULL AS REAL ) )
----
NULL

query I rowsort
SELECT ALL ( ( ( 99 ) ) )
----
99

onlyif mysql # DIV for integer division: 
query I rowsort label-54
SELECT + 97 DIV + + 14
----
6

skipif mysql # not compatible
query I rowsort label-54
SELECT + 97 / + + 14
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-55
SELECT 78 * COUNT( * ) + - 28 AS col0
----
50

skipif mysql # not compatible
query I rowsort label-55
SELECT 78 * COUNT ( * ) + - 28 AS col0
----
50

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-56
SELECT DISTINCT COUNT( * ) * 35 DIV + 91 * - 61 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-56
SELECT DISTINCT COUNT ( * ) * 35 / + 91 * - 61 AS col0
----
0

query I rowsort
SELECT ALL 91 col2
----
91

onlyif mysql # DIV for integer division: 
query I rowsort label-58
SELECT - 61 DIV - + 88 * 96 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-58
SELECT - 61 / - + 88 * 96 AS col1
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-59
SELECT + MIN( - 93 ) * - + 15 col2, - 56 AS col0
----
1395
-56

skipif mysql # not compatible
query II rowsort label-59
SELECT + MIN ( - 93 ) * - + 15 col2, - 56 AS col0
----
1395
-56

query I rowsort
SELECT + 78 * + 78
----
6084

onlyif mysql # aggregate syntax: 
query I rowsort label-61
SELECT + 43 * - - COALESCE ( + 17, - SUM( ALL - 29 ) * 67 + - COUNT( * ) + + 84 ) * 86
----
62866

skipif mysql # not compatible
query I rowsort label-61
SELECT + 43 * - - COALESCE ( + 17, - SUM ( ALL - 29 ) * 67 + - COUNT ( * ) + + 84 ) * 86
----
62866

query I rowsort
SELECT DISTINCT 7 + - - 76
----
83

onlyif mysql # DIV for integer division: 
query I rowsort label-63
SELECT + - 80 DIV - 50
----
1

skipif mysql # not compatible
query I rowsort label-63
SELECT + - 80 / - 50
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-64
SELECT ALL + CASE - ( 13 ) WHEN + - 22 * + ( + 96 ) * + 94 THEN NULL WHEN 94 / + + CASE + + 13 WHEN 1 THEN + 2 ELSE NULL END * 49 + - 22 * 26 THEN ( + 56 ) + 21 * 83 ELSE NULL END + + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-64
SELECT ALL + CASE - ( 13 ) WHEN + - 22 * + ( + 96 ) * + 94 THEN NULL WHEN 94 / + + CASE + + 13 WHEN 1 THEN + 2 ELSE NULL END * 49 + - 22 * 26 THEN ( + 56 ) + 21 * 83 ELSE NULL END + + COUNT ( * )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-65
SELECT + + 5 * - - 97 DIV - 82 AS col0
----
-5

skipif mysql # not compatible
query I rowsort label-65
SELECT + + 5 * - - 97 / - 82 AS col0
----
-5

query I rowsort
SELECT DISTINCT - 41 + + 3 AS col2
----
-38

query II rowsort
SELECT ALL + 50 * 61 * + + 52, NULLIF ( 89, + 74 * - 44 ) - 63 col2
----
158600
26

query I rowsort
SELECT + 93 * ( - + 47 ) AS col0
----
-4371

onlyif mysql # aggregate syntax: 
query I rowsort label-69
SELECT + 62 * + COUNT( DISTINCT 57 ) * 59 + + 52 + 36 - + 99
----
3647

skipif mysql # not compatible
query I rowsort label-69
SELECT + 62 * + COUNT ( DISTINCT 57 ) * 59 + + 52 + 36 - + 99
----
3647

query I rowsort
SELECT + 2 - 36
----
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-71
SELECT DISTINCT + 17 * - - 31 * 5 + + 67 * - + NULLIF ( - 37, COUNT( * ) ) AS col0
----
5114

skipif mysql # not compatible
query I rowsort label-71
SELECT DISTINCT + 17 * - - 31 * 5 + + 67 * - + NULLIF ( - 37, COUNT ( * ) ) AS col0
----
5114

onlyif mysql # aggregate syntax: 
query I rowsort label-72
SELECT ALL COALESCE ( + CASE + COUNT( * ) WHEN - 85 + - AVG ( 23 ) + CASE - COUNT( * ) WHEN + - 67 THEN - 10 + - + 52 WHEN + - 11 THEN - + SUM( ALL - 46 ) / - - 81 WHEN - 39 + COUNT( * ) THEN NULL ELSE NULL END / + 46 THEN MAX( DISTINCT - 41 ) WHEN 10 THEN 14 ELSE NULL END, - ( 73 ) ) + - COUNT( * ) AS col1
----
-74

skipif mysql # not compatible
query I rowsort label-72
SELECT ALL COALESCE ( + CASE + COUNT ( * ) WHEN - 85 + - AVG ( 23 ) + CASE - COUNT ( * ) WHEN + - 67 THEN - 10 + - + 52 WHEN + - 11 THEN - + SUM ( ALL - 46 ) / - - 81 WHEN - 39 + COUNT ( * ) THEN NULL ELSE NULL END / + 46 THEN MAX ( DISTINCT - 41 ) WHEN 10 THEN 14 ELSE NULL END, - ( 73 ) ) + - COUNT ( * ) AS col1
----
-74

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-73
SELECT + + 53 - - - CASE - NULLIF ( - NULLIF ( + COALESCE ( + - 60, + + CAST( NULL AS SIGNED ) + - + 21 + 50 / + 84 + - + ( - COALESCE ( - - ( - - 76 ), + + 39 + NULLIF ( COALESCE ( + 55, AVG ( ALL - 88 ) ), 42 + ( 78 ) ) ) ) - - 2 ), 42 / 43 ), COUNT( * ) ) WHEN - COUNT( * ) THEN NULL ELSE 48 + - 69 END + + 33 AS col0
----
107

skipif mysql # not compatible
query I rowsort label-73
SELECT + + 53 - - - CASE - NULLIF ( - NULLIF ( + COALESCE ( + - 60, + + CAST ( NULL AS INTEGER ) + - + 21 + 50 / + 84 + - + ( - COALESCE ( - - ( - - 76 ), + + 39 + NULLIF ( COALESCE ( + 55, AVG ( ALL - 88 ) ), 42 + ( 78 ) ) ) ) - - 2 ), 42 / 43 ), COUNT ( * ) ) WHEN - COUNT ( * ) THEN NULL ELSE 48 + - 69 END + + 33 AS col0
----
107

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

onlyif mysql # DIV for integer division: 
query I rowsort label-75
SELECT + - 78 + - - 19 - + 11 DIV 77 AS col1
----
-59

skipif mysql # not compatible
query I rowsort label-75
SELECT + - 78 + - - 19 - + 11 / 77 AS col1
----
-59

query I rowsort
SELECT DISTINCT 7 * + 19 * + 87 + 51
----
11622

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

query I rowsort
SELECT ALL + + NULLIF ( - + 29, + 62 )
----
-29

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-79
SELECT DISTINCT 47 DIV COUNT( * ) * 74 - 6 + + 29 + + 36
----
3537

skipif mysql # not compatible
query I rowsort label-79
SELECT DISTINCT 47 / COUNT ( * ) * 74 - 6 + + 29 + + 36
----
3537

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-81
SELECT 37 / - CAST( NULL AS SIGNED ) - + 39 * 57 * 42
----
NULL

skipif mysql # not compatible
query I rowsort label-81
SELECT 37 / - CAST ( NULL AS INTEGER ) - + 39 * 57 * 42
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-82
SELECT + 9 * - + 17 + + + CAST( 69 AS SIGNED ) AS col0
----
-84

skipif mysql # not compatible
query I rowsort label-82
SELECT + 9 * - + 17 + + + CAST ( 69 AS INTEGER ) AS col0
----
-84

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-83
SELECT - 63 + + 41 + - - CAST( + MIN( 19 ) AS SIGNED ) AS col1
----
-3

skipif mysql # not compatible
query I rowsort label-83
SELECT - 63 + + 41 + - - CAST ( + MIN ( 19 ) AS INTEGER ) AS col1
----
-3

query I rowsort
SELECT + ( + 90 ) * 34 col2
----
3060

query I rowsort
SELECT - 80 * + - 4
----
320

query II rowsort
SELECT DISTINCT + ( 38 ) * - + 29 + - - 6 AS col1, ( - - ( 49 ) ) * + - 71 col2
----
-1096
-3479

query II rowsort
SELECT ( + 89 ) AS col0, + 55 + 86 AS col1
----
89
141

query I rowsort
SELECT ALL + 27 * 35
----
945

query I rowsort
SELECT - 44 * + 13 * 58
----
-33176

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-91
SELECT ALL - CASE + AVG ( + - 79 ) WHEN - COALESCE ( - - 22, + CAST( NULL AS SIGNED ), COUNT( * ) * + ( - ( CAST( NULL AS SIGNED ) ) ) ) THEN - + 49 + + COUNT( * ) * - + 2 + - + COALESCE ( + 11, + 9, + ( ( - AVG ( DISTINCT - NULLIF ( - 89, 27 ) ) ) ) ) + - COALESCE ( 96 + + 35, COALESCE ( 66, 80 ) * + 25 ) / 63 * COUNT( * ) END * - 83 - 79
----
NULL

skipif mysql # not compatible
query I rowsort label-91
SELECT ALL - CASE + AVG ( + - 79 ) WHEN - COALESCE ( - - 22, + CAST ( NULL AS INTEGER ), COUNT ( * ) * + ( - ( CAST ( NULL AS INTEGER ) ) ) ) THEN - + 49 + + COUNT ( * ) * - + 2 + - + COALESCE ( + 11, + 9, + ( ( - AVG ( DISTINCT - NULLIF ( - 89, 27 ) ) ) ) ) + - COALESCE ( 96 + + 35, COALESCE ( 66, 80 ) * + 25 ) / 63 * COUNT ( * ) END * - 83 - 79
----
NULL

query I rowsort
SELECT - 21 * 1
----
-21

query I rowsort
SELECT - 33 * + - 3 + - 60 AS col0
----
39

onlyif mysql # aggregate syntax: 
query II rowsort label-94
SELECT NULLIF ( - MAX( ALL - 22 ), - 52 ) AS col1, 75 AS col0
----
22
75

skipif mysql # not compatible
query II rowsort label-94
SELECT NULLIF ( - MAX ( ALL - 22 ), - 52 ) AS col1, 75 AS col0
----
22
75

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-95
SELECT ALL + 87 AS col2, - ( - 25 ) + + - 45 + 3 DIV - - SUM( DISTINCT + + 3 ) AS col2
----
87
-19

skipif mysql # not compatible
query II rowsort label-95
SELECT ALL + 87 AS col2, - ( - 25 ) + + - 45 + 3 / - - SUM ( DISTINCT + + 3 ) AS col2
----
87
-19

query I rowsort
SELECT - 85 * - ( 2 ) AS col0
----
170

query I rowsort
SELECT - 91 * + 18 AS col1
----
-1638

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

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

query II rowsort
SELECT 52 AS col0, 13 AS col0
----
52
13

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-100
SELECT ALL + 83 + - 13 + + + CAST( + 92 AS SIGNED ) * - 56 + + CAST( SUM( + 36 ) AS SIGNED ) * 35 AS col0
----
-3822

skipif mysql # not compatible
query I rowsort label-100
SELECT ALL + 83 + - 13 + + + CAST ( + 92 AS INTEGER ) * - 56 + + CAST ( SUM ( + 36 ) AS INTEGER ) * 35 AS col0
----
-3822

onlyif mysql # aggregate syntax: 
query I rowsort label-101
SELECT 48 + 4 - - 82 * - ( 61 ) * - 86 * + - 78 * - CASE - ( + 54 ) WHEN + MAX( DISTINCT - 26 ) + - 72 THEN 55 + + 97 END + COUNT( * ) + COALESCE ( 63, 74 + COUNT( * ), + 34 / NULLIF ( + COUNT( * ), 9 + + 96 ) + + 1 ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-101
SELECT 48 + 4 - - 82 * - ( 61 ) * - 86 * + - 78 * - CASE - ( + 54 ) WHEN + MAX ( DISTINCT - 26 ) + - 72 THEN 55 + + 97 END + COUNT ( * ) + COALESCE ( 63, 74 + COUNT ( * ), + 34 / NULLIF ( + COUNT ( * ), 9 + + 96 ) + + 1 ) col0
----
NULL

query II rowsort
SELECT 33 AS col0, 69 * - 69
----
33
-4761

query II rowsort
SELECT - 2 AS col2, + 63 * - 34 * 28
----
-2
-59976

onlyif mysql # aggregate syntax: 
query I rowsort label-104
SELECT DISTINCT - COUNT( - 3 ) + - 85 AS col2
----
-86

skipif mysql # not compatible
query I rowsort label-104
SELECT DISTINCT - COUNT ( - 3 ) + - 85 AS col2
----
-86

query I rowsort
SELECT ALL 50 + - - 59
----
109

onlyif mysql # aggregate syntax: 
query I rowsort label-106
SELECT DISTINCT + + 12 * - SUM( DISTINCT 73 ) AS col0
----
-876

skipif mysql # not compatible
query I rowsort label-106
SELECT DISTINCT + + 12 * - SUM ( DISTINCT 73 ) AS col0
----
-876

query I rowsort
SELECT - - 52 AS col1
----
52

query I rowsort
SELECT - 33 + 89 AS col2
----
56

query I rowsort
SELECT + 62 col1
----
62

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

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

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

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

query I rowsort
SELECT ALL - 88 + 34 AS col1
----
-54

onlyif mysql # aggregate syntax: 
query II rowsort label-113
SELECT DISTINCT + 96 AS col1, COUNT( * ) AS col0
----
96
1

skipif mysql # not compatible
query II rowsort label-113
SELECT DISTINCT + 96 AS col1, COUNT ( * ) AS col0
----
96
1

query II rowsort
SELECT - 80 AS col1, - 85 AS col0
----
-80
-85

query I rowsort
SELECT - 49 + + - 39
----
-88

query I rowsort
SELECT - - 60 col1
----
60

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-117
SELECT + + 47 col0, CAST( NULL AS DECIMAL ) AS col2
----
47
NULL

skipif mysql # not compatible
query II rowsort label-117
SELECT + + 47 col0, CAST ( NULL AS REAL ) AS col2
----
47
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-118
SELECT ALL + 61 - - COUNT( * )
----
62

skipif mysql # not compatible
query I rowsort label-118
SELECT ALL + 61 - - COUNT ( * )
----
62

query I rowsort
SELECT DISTINCT - 44 * - 33
----
1452

query I rowsort
SELECT DISTINCT - 68 AS col2
----
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-121
SELECT ALL COUNT( * ) * + - 19 col0
----
-19

skipif mysql # not compatible
query I rowsort label-121
SELECT ALL COUNT ( * ) * + - 19 col0
----
-19

onlyif mysql # aggregate syntax: 
query II rowsort label-122
SELECT DISTINCT 4 - + 12 AS col0, + COUNT( * )
----
-8
1

skipif mysql # not compatible
query II rowsort label-122
SELECT DISTINCT 4 - + 12 AS col0, + COUNT ( * )
----
-8
1

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-126
SELECT DISTINCT - NULLIF ( + CASE + - 90 WHEN - COUNT( - 55 ) THEN NULL WHEN + + 39 THEN NULL ELSE - 39 * + 53 * - - 32 * + 58 + - 72 * - - COUNT( * ) * 31 + + - 15 + + 63 + - 97 END, + COALESCE ( 9, - 0 ) )
----
3838633

skipif mysql # not compatible
query I rowsort label-126
SELECT DISTINCT - NULLIF ( + CASE + - 90 WHEN - COUNT ( - 55 ) THEN NULL WHEN + + 39 THEN NULL ELSE - 39 * + 53 * - - 32 * + 58 + - 72 * - - COUNT ( * ) * 31 + + - 15 + + 63 + - 97 END, + COALESCE ( 9, - 0 ) )
----
3838633

query I rowsort
SELECT 58 + + COALESCE ( - 20, 19 + + 83 ) * 66 col0
----
-1262

query I rowsort
SELECT 67 * + + ( - ( 41 ) )
----
-2747

onlyif mysql # aggregate syntax: 
query I rowsort label-129
SELECT ALL - 51 + - MIN( 81 ) - - 19 AS col1
----
-113

skipif mysql # not compatible
query I rowsort label-129
SELECT ALL - 51 + - MIN ( 81 ) - - 19 AS col1
----
-113

onlyif mysql # aggregate syntax: 
query I rowsort label-130
SELECT DISTINCT COUNT( * ) + 43 * + 0 + - 88
----
-87

skipif mysql # not compatible
query I rowsort label-130
SELECT DISTINCT COUNT ( * ) + 43 * + 0 + - 88
----
-87

query II rowsort
SELECT 51 - - 96, 23 AS col2
----
147
23

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-132
SELECT ALL - 24 * CAST( CAST( NULL AS SIGNED ) AS SIGNED ) AS col2, + 54 col2
----
NULL
54

skipif mysql # not compatible
query II rowsort label-132
SELECT ALL - 24 * CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) AS col2, + 54 col2
----
NULL
54

onlyif mysql # aggregate syntax: 
query I rowsort label-133
SELECT 57 * - MIN( ALL + + 9 )
----
-513

skipif mysql # not compatible
query I rowsort label-133
SELECT 57 * - MIN ( ALL + + 9 )
----
-513

query I rowsort
SELECT ALL - 52 + - - 71 + - 0 * - 62
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-135
SELECT ALL + MAX( DISTINCT 28 ) + 22
----
50

skipif mysql # not compatible
query I rowsort label-135
SELECT ALL + MAX ( DISTINCT 28 ) + 22
----
50

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-136
SELECT + - ( - - CAST( NULL AS SIGNED ) ) * - + 42 * - - 76 + COUNT( * ) * COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-136
SELECT + - ( - - CAST ( NULL AS INTEGER ) ) * - + 42 * - - 76 + COUNT ( * ) * COUNT ( * ) AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-137
SELECT - CAST( NULL AS SIGNED ) - - - 7 + 11 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-137
SELECT - CAST ( NULL AS INTEGER ) - - - 7 + 11 AS col2
----
NULL

query I rowsort
SELECT ALL + 23 AS col1
----
23

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-139
SELECT ALL - 92 + + - MIN( DISTINCT - CAST( NULL AS SIGNED ) ) / - + ( 74 ) + + 87 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-139
SELECT ALL - 92 + + - MIN ( DISTINCT - CAST ( NULL AS INTEGER ) ) / - + ( 74 ) + + 87 AS col2
----
NULL

query II rowsort
SELECT - - ( 84 ) AS col0, - 13 AS col2
----
84
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-141
SELECT ALL NULLIF ( - COALESCE ( 32, + - 59 ), ( + NULLIF ( - 5, + ( ( + CASE - + 42 WHEN + SUM( DISTINCT 99 ) THEN NULL ELSE - COALESCE ( - 43, - 18 + + 10 ) END ) ) ) ) ) AS col1
----
-32

skipif mysql # not compatible
query I rowsort label-141
SELECT ALL NULLIF ( - COALESCE ( 32, + - 59 ), ( + NULLIF ( - 5, + ( ( + CASE - + 42 WHEN + SUM ( DISTINCT 99 ) THEN NULL ELSE - COALESCE ( - 43, - 18 + + 10 ) END ) ) ) ) ) AS col1
----
-32

query I rowsort
SELECT DISTINCT - 18 col2
----
-18

query I rowsort
SELECT DISTINCT - + 97 - - 55 AS col0
----
-42

query I rowsort
SELECT ALL + + 35 * - - 39
----
1365

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-146
SELECT - 38 * 21 + + 48 + + - 42 DIV + + 70 + - 6
----
-756

skipif mysql # not compatible
query I rowsort label-146
SELECT - 38 * 21 + + 48 + + - 42 / + + 70 + - 6
----
-756

query I rowsort
SELECT + 74 * + 25 AS col2
----
1850

query I rowsort
SELECT - 13 - + + 6
----
-19

query I rowsort
SELECT DISTINCT - 49 AS col0
----
-49

onlyif mysql # DIV for integer division: 
query I rowsort label-150
SELECT 64 * + 51 * - - 15 + 72 + - + 15 * + - 27 * + 54 * + COALESCE ( - + ( + 71 ), - 66 * + - 53 + + + 45, 4 DIV + 66 ) AS col2
----
-1503738

skipif mysql # not compatible
query I rowsort label-150
SELECT 64 * + 51 * - - 15 + 72 + - + 15 * + - 27 * + 54 * + COALESCE ( - + ( + 71 ), - 66 * + - 53 + + + 45, 4 / + 66 ) AS col2
----
-1503738

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-152
SELECT COUNT( * ) * - + ( 28 ) * - + 81 * - + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-152
SELECT COUNT ( * ) * - + ( 28 ) * - + 81 * - + CAST ( NULL AS INTEGER ) AS col0
----
NULL

query II rowsort
SELECT ALL - 77, 24 AS col2
----
-77
24

onlyif mysql # aggregate syntax: 
query I rowsort label-154
SELECT 16 + - COUNT( * ) * - 96 * - COUNT( + + 73 )
----
-80

skipif mysql # not compatible
query I rowsort label-154
SELECT 16 + - COUNT ( * ) * - 96 * - COUNT ( + + 73 )
----
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-155
SELECT DISTINCT ( + - MIN( DISTINCT 18 ) ) * - 98 * - - COALESCE ( - + COALESCE ( - - 13, 27, 6 ), - 91 )
----
-22932

skipif mysql # not compatible
query I rowsort label-155
SELECT DISTINCT ( + - MIN ( DISTINCT 18 ) ) * - 98 * - - COALESCE ( - + COALESCE ( - - 13, 27, 6 ), - 91 )
----
-22932

query I rowsort
SELECT + 44 * + 9
----
396

onlyif mysql # aggregate syntax: 
query I rowsort label-157
SELECT ALL + 55 * COUNT( * ) + ( - 49 )
----
6

skipif mysql # not compatible
query I rowsort label-157
SELECT ALL + 55 * COUNT ( * ) + ( - 49 )
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-158
SELECT SUM( 79 ) col0
----
79

skipif mysql # not compatible
query I rowsort label-158
SELECT SUM ( 79 ) col0
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-159
SELECT SUM( DISTINCT 11 ) AS col2
----
11

skipif mysql # not compatible
query I rowsort label-159
SELECT SUM ( DISTINCT 11 ) AS col2
----
11

query I rowsort
SELECT + COALESCE ( - 98, + + ( - 68 ) ) AS col2
----
-98

onlyif mysql # DIV for integer division: 
query I rowsort label-161
SELECT ALL 93 * ( + 39 ) * 49 * - + 88 - + 24 DIV - 67 + - - 78
----
-15639546

skipif mysql # not compatible
query I rowsort label-161
SELECT ALL 93 * ( + 39 ) * 49 * - + 88 - + 24 / - 67 + - - 78
----
-15639546

onlyif mysql # aggregate syntax: 
query I rowsort label-162
SELECT 28 * + 1 + + COUNT( * ) * 4 AS col1
----
32

skipif mysql # not compatible
query I rowsort label-162
SELECT 28 * + 1 + + COUNT ( * ) * 4 AS col1
----
32

query I rowsort
SELECT DISTINCT ( - 57 ) * + 63 * 61
----
-219051

query I rowsort
SELECT + 90 + 72 AS col0
----
162

query I rowsort
SELECT ALL 80 * - + 8 + + 64 AS col0
----
-576

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-166
SELECT ALL COALESCE ( - 63, + 83 ) * + + 36 + 44 + 11 * + 89 * + + 65 * - COALESCE ( + - COUNT( * ), + - 61, 67 * + MAX( - + 15 ) * - + ( - ( 82 ) ) DIV + 72 + - 28 )
----
61411

skipif mysql # not compatible
query I rowsort label-166
SELECT ALL COALESCE ( - 63, + 83 ) * + + 36 + 44 + 11 * + 89 * + + 65 * - COALESCE ( + - COUNT ( * ), + - 61, 67 * + MAX ( - + 15 ) * - + ( - ( 82 ) ) / + 72 + - 28 )
----
61411

onlyif mysql # aggregate syntax: 
query II rowsort label-167
SELECT + 1 / CASE + + 26 WHEN - 12 * + 96 THEN + - 18 * + COUNT( * ) + + 15 END AS col1, 58 * + 6 col1
----
NULL
348

skipif mysql # not compatible
query II rowsort label-167
SELECT + 1 / CASE + + 26 WHEN - 12 * + 96 THEN + - 18 * + COUNT ( * ) + + 15 END AS col1, 58 * + 6 col1
----
NULL
348

query I rowsort
SELECT ALL 85 + + 22 col1
----
107

query II rowsort
SELECT NULLIF ( - - 62, + 31 ), 30 AS col1
----
62
30

query I rowsort
SELECT + 68 + - + 54 + + - 23 + + 20 + 74 AS col2
----
85

query I rowsort
SELECT ALL CASE 64 WHEN + 89 THEN + - 61 END - - 17 AS col2
----
NULL

query I rowsort
SELECT ALL NULLIF ( + 56, 90 )
----
56

query I rowsort
SELECT - - 99 + 64 * 11 * + + 11 AS col2
----
7843

onlyif mysql # aggregate syntax: 
query I rowsort label-174
SELECT - + MAX( - 45 ) col2
----
45

skipif mysql # not compatible
query I rowsort label-174
SELECT - + MAX ( - 45 ) col2
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-175
SELECT ALL - COALESCE ( 34, + 38, - COUNT( * ) )
----
-34

skipif mysql # not compatible
query I rowsort label-175
SELECT ALL - COALESCE ( 34, + 38, - COUNT ( * ) )
----
-34

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-176
SELECT - + ( CASE - CASE + 80 WHEN - + 61 THEN NULL WHEN - 67 THEN - + COUNT( * ) WHEN 98 * - 21 - + + COALESCE ( - + 99, - + 29 / + COUNT( * ) * - CAST( ( 53 ) AS SIGNED ) + 51, + - 92 / + 57 - - 53 ) THEN - COUNT( * ) * 44 ELSE NULL END WHEN + 10 THEN 49 END ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-176
SELECT - + ( CASE - CASE + 80 WHEN - + 61 THEN NULL WHEN - 67 THEN - + COUNT ( * ) WHEN 98 * - 21 - + + COALESCE ( - + 99, - + 29 / + COUNT ( * ) * - CAST ( ( 53 ) AS INTEGER ) + 51, + - 92 / + 57 - - 53 ) THEN - COUNT ( * ) * 44 ELSE NULL END WHEN + 10 THEN 49 END ) AS col2
----
NULL

query I rowsort
SELECT + - 55 * 55 AS col0
----
-3025

onlyif mysql # aggregate syntax: 
query I rowsort label-178
SELECT - COUNT( * ) + + + 48 * + 6 * - + 50
----
-14401

skipif mysql # not compatible
query I rowsort label-178
SELECT - COUNT ( * ) + + + 48 * + 6 * - + 50
----
-14401

query II rowsort
SELECT ALL + 17, 43 AS col1
----
17
43

query I rowsort
SELECT - 98 + - 41 * - + 77 + 49 col1
----
3108

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-182
SELECT - COUNT( * ) + ( - 68 )
----
-69

skipif mysql # not compatible
query I rowsort label-182
SELECT - COUNT ( * ) + ( - 68 )
----
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-183
SELECT ALL COUNT( DISTINCT - 90 )
----
1

skipif mysql # not compatible
query I rowsort label-183
SELECT ALL COUNT ( DISTINCT - 90 )
----
1

query I rowsort
SELECT DISTINCT - NULLIF ( 44, - + 21 ) + + + 85 col0
----
41

query I rowsort
SELECT - 80 * + 45 AS col0
----
-3600

onlyif mysql # DIV for integer division: 
query I rowsort label-186
SELECT ALL 92 + - 51 DIV - 79
----
92

skipif mysql # not compatible
query I rowsort label-186
SELECT ALL 92 + - 51 / - 79
----
92

query I rowsort
SELECT - 98 + 72 * + - 35
----
-2618

onlyif mysql # DIV for integer division: 
query I rowsort label-188
SELECT DISTINCT - 44 DIV - 16 + + - 23 * - + 82 AS col0
----
1888

skipif mysql # not compatible
query I rowsort label-188
SELECT DISTINCT - 44 / - 16 + + - 23 * - + 82 AS col0
----
1888

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-189
SELECT - 44 DIV + CAST( + CASE + + 17 WHEN - ( - COUNT( * ) ) * 39 + 58 THEN - + CAST( - COUNT( * ) AS SIGNED ) ELSE - COUNT( * ) * 15 END AS SIGNED ) AS col2
----
2

skipif mysql # not compatible
query I rowsort label-189
SELECT - 44 / + CAST ( + CASE + + 17 WHEN - ( - COUNT ( * ) ) * 39 + 58 THEN - + CAST ( - COUNT ( * ) AS INTEGER ) ELSE - COUNT ( * ) * 15 END AS INTEGER ) AS col2
----
2

onlyif mysql # DIV for integer division: 
query I rowsort label-190
SELECT ALL + 11 DIV - 82 + + 84
----
84

skipif mysql # not compatible
query I rowsort label-190
SELECT ALL + 11 / - 82 + + 84
----
84

query I rowsort
SELECT ( 90 )
----
90

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-193
SELECT ALL 26 DIV + 37 + 75 AS col0
----
75

skipif mysql # not compatible
query I rowsort label-193
SELECT ALL 26 / + 37 + 75 AS col0
----
75

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-194
SELECT - 14 DIV COUNT( ALL + 31 )
----
-14

skipif mysql # not compatible
query I rowsort label-194
SELECT - 14 / COUNT ( ALL + 31 )
----
-14

query I rowsort
SELECT ALL - COALESCE ( - + 93, 95 ) * + 19 + 55 + 49 + 84
----
1955

query II rowsort
SELECT - CASE + 97 WHEN 46 THEN 33 END * 10, + 90 AS col1
----
NULL
90

onlyif mysql # aggregate syntax: 
query I rowsort label-197
SELECT ALL 70 * + 91 + + 33 + + 93 + + ( - 21 ) * + 74 * + COUNT( * ) AS col1
----
4942

skipif mysql # not compatible
query I rowsort label-197
SELECT ALL 70 * + 91 + + 33 + + 93 + + ( - 21 ) * + 74 * + COUNT ( * ) AS col1
----
4942

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-200
SELECT + COUNT( ALL + 75 ) * - 52 + 26
----
-26

skipif mysql # not compatible
query I rowsort label-200
SELECT + COUNT ( ALL + 75 ) * - 52 + 26
----
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-201
SELECT + MIN( DISTINCT - 14 ) col1
----
-14

skipif mysql # not compatible
query I rowsort label-201
SELECT + MIN ( DISTINCT - 14 ) col1
----
-14

onlyif mysql # DIV for integer division: 
query II rowsort label-202
SELECT + ( + 50 ) AS col1, 18 DIV + + NULLIF ( - 67, + 98 * 24 + 8 )
----
50
0

skipif mysql # not compatible
query II rowsort label-202
SELECT + ( + 50 ) AS col1, 18 / + + NULLIF ( - 67, + 98 * 24 + 8 )
----
50
0

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-204
SELECT ALL + CAST( NULL AS SIGNED ) * + 1 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-204
SELECT ALL + CAST ( NULL AS INTEGER ) * + 1 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-205
SELECT + COALESCE ( - ( + - ( SUM( + 66 ) ) ), - + CAST( 34 AS SIGNED ) ) AS col2
----
66

skipif mysql # not compatible
query I rowsort label-205
SELECT + COALESCE ( - ( + - ( SUM ( + 66 ) ) ), - + CAST ( 34 AS INTEGER ) ) AS col2
----
66

query II rowsort
SELECT ALL ( - 58 ), - 10 AS col1
----
-58
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-207
SELECT + - 76 + - - 18 + NULLIF ( 48, - 60 - COUNT( * ) )
----
-10

skipif mysql # not compatible
query I rowsort label-207
SELECT + - 76 + - - 18 + NULLIF ( 48, - 60 - COUNT ( * ) )
----
-10

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-208
SELECT + + 95 - - 61 + - - 19 * + + COUNT( * ) + - CAST( - - 8 AS SIGNED )
----
167

skipif mysql # not compatible
query I rowsort label-208
SELECT + + 95 - - 61 + - - 19 * + + COUNT ( * ) + - CAST ( - - 8 AS INTEGER )
----
167

onlyif mysql # aggregate syntax: 
query I rowsort label-209
SELECT - COUNT( * ) * + - ( - 9 ) * - + MIN( ALL - 46 ) AS col1
----
-414

skipif mysql # not compatible
query I rowsort label-209
SELECT - COUNT ( * ) * + - ( - 9 ) * - + MIN ( ALL - 46 ) AS col1
----
-414

query I rowsort
SELECT 30 col1
----
30

query I rowsort
SELECT ALL - 24 * - 62
----
1488

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-212
SELECT ALL - COALESCE ( + + 77, + + ( COUNT( * ) ) DIV + COUNT( * ), 21, - 84 ) DIV + + 58
----
-1

skipif mysql # not compatible
query I rowsort label-212
SELECT ALL - COALESCE ( + + 77, + + ( COUNT ( * ) ) / + COUNT ( * ), 21, - 84 ) / + + 58
----
-1

query I rowsort
SELECT ALL + + 63 + + 58
----
121

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-214
SELECT DISTINCT 88 * ( - - MAX( - 34 ) ) DIV + 20
----
-149

skipif mysql # not compatible
query I rowsort label-214
SELECT DISTINCT 88 * ( - - MAX ( - 34 ) ) / + 20
----
-149

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-216
SELECT ALL - ( + + 48 ) + 97 + 44 + - 7 + + ( NULLIF ( - - 22, - - NULLIF ( 63, + COUNT( * ) * ( ( - 73 ) ) ) ) ) AS col1
----
108

skipif mysql # not compatible
query I rowsort label-216
SELECT ALL - ( + + 48 ) + 97 + 44 + - 7 + + ( NULLIF ( - - 22, - - NULLIF ( 63, + COUNT ( * ) * ( ( - 73 ) ) ) ) ) AS col1
----
108

onlyif mysql # aggregate syntax: 
query II rowsort label-217
SELECT ( + COUNT( * ) ) - + 48 + - 85 + 61 AS col1, - 44 + - MIN( + 22 ) AS col0
----
-71
-66

skipif mysql # not compatible
query II rowsort label-217
SELECT ( + COUNT ( * ) ) - + 48 + - 85 + 61 AS col1, - 44 + - MIN ( + 22 ) AS col0
----
-71
-66

onlyif mysql # aggregate syntax: 
query II rowsort label-218
SELECT 30 AS col2, 46 + + 45 * - + 46 * - COUNT( * )
----
30
2116

skipif mysql # not compatible
query II rowsort label-218
SELECT 30 AS col2, 46 + + 45 * - + 46 * - COUNT ( * )
----
30
2116

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-219
SELECT DISTINCT CASE - 24 WHEN + + NULLIF ( - 96, + 32 ) THEN - - 54 * 83 + - + MAX( DISTINCT - 80 ) + 92 + - COUNT( * ) ELSE - 67 + - 15 END + - 68 DIV + 6 + 33 + 90 * + - 82 * 22 AS col1
----
-162420

skipif mysql # not compatible
query I rowsort label-219
SELECT DISTINCT CASE - 24 WHEN + + NULLIF ( - 96, + 32 ) THEN - - 54 * 83 + - + MAX ( DISTINCT - 80 ) + 92 + - COUNT ( * ) ELSE - 67 + - 15 END + - 68 / + 6 + 33 + 90 * + - 82 * 22 AS col1
----
-162420

query I rowsort
SELECT 51 + + ( - 55 )
----
-4

query I rowsort
SELECT ALL ( - - 10 ) + - + 94 col0
----
-84

onlyif mysql # DIV for integer division: 
query II rowsort label-222
SELECT DISTINCT - 90 AS col0, 62 + - 20 DIV ( + - 8 )
----
-90
64

skipif mysql # not compatible
query II rowsort label-222
SELECT DISTINCT - 90 AS col0, 62 + - 20 / ( + - 8 )
----
-90
64

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-223
SELECT COALESCE ( ( - COALESCE ( - + 29, 14 DIV + 7 ) ), + 50 * - 28, - + COUNT( 93 ) ) * COALESCE ( + + 5, - MAX( ALL + 73 ), - + COALESCE ( - 18, + COALESCE ( + + COUNT( * ), + 46 ) - - + NULLIF ( - COALESCE ( - 15, + 7 ), + 38 * 29 + 9 ) ) * ( - 54 ) ) + 73
----
218

skipif mysql # not compatible
query I rowsort label-223
SELECT COALESCE ( ( - COALESCE ( - + 29, 14 / + 7 ) ), + 50 * - 28, - + COUNT ( 93 ) ) * COALESCE ( + + 5, - MAX ( ALL + 73 ), - + COALESCE ( - 18, + COALESCE ( + + COUNT ( * ), + 46 ) - - + NULLIF ( - COALESCE ( - 15, + 7 ), + 38 * 29 + 9 ) ) * ( - 54 ) ) + 73
----
218

onlyif mysql # DIV for integer division: 
query I rowsort label-224
SELECT ALL - 92 DIV - 73 col1
----
1

skipif mysql # not compatible
query I rowsort label-224
SELECT ALL - 92 / - 73 col1
----
1

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

onlyif mysql # DIV for integer division: 
query I rowsort label-226
SELECT NULLIF ( - + 95, + + 33 ) DIV - 44 + - - 23 AS col2
----
25

skipif mysql # not compatible
query I rowsort label-226
SELECT NULLIF ( - + 95, + + 33 ) / - 44 + - - 23 AS col2
----
25

onlyif mysql # aggregate syntax: 
query II rowsort label-227
SELECT ALL - 66 - 99 + - 11 AS col2, COUNT( * ) * - - 30 AS col0
----
-176
30

skipif mysql # not compatible
query II rowsort label-227
SELECT ALL - 66 - 99 + - 11 AS col2, COUNT ( * ) * - - 30 AS col0
----
-176
30

query I rowsort
SELECT 57 * - + 25 AS col0
----
-1425

query I rowsort
SELECT DISTINCT - 8 AS col2
----
-8

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-230
SELECT + 50 * 54 + 21 + + 87 * + + 33 * CAST( NULL AS SIGNED ) + COUNT( DISTINCT - ( + 42 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-230
SELECT + 50 * 54 + 21 + + 87 * + + 33 * CAST ( NULL AS INTEGER ) + COUNT ( DISTINCT - ( + 42 ) )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-231
SELECT + CASE + - 64 WHEN - ( 58 ) THEN - 45 * 31 WHEN - 18 + - 52 THEN NULL ELSE NULL END + - COALESCE ( + - COUNT( * ), + - CAST( - - 29 AS DECIMAL ) * + COUNT( * ) + - - 27 * - 75 + - + CAST( 37 AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-231
SELECT + CASE + - 64 WHEN - ( 58 ) THEN - 45 * 31 WHEN - 18 + - 52 THEN NULL ELSE NULL END + - COALESCE ( + - COUNT ( * ), + - CAST ( - - 29 AS REAL ) * + COUNT ( * ) + - - 27 * - 75 + - + CAST ( 37 AS INTEGER ) )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-232
SELECT - 77 DIV - 8 + + 8
----
17

skipif mysql # not compatible
query I rowsort label-232
SELECT - 77 / - 8 + + 8
----
17

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

onlyif mysql # aggregate syntax: 
query I rowsort label-234
SELECT - 15 * COUNT( * ) + 98 * - ( + 41 ) - + 20 + + + 1 + - 76 AS col2
----
-4128

skipif mysql # not compatible
query I rowsort label-234
SELECT - 15 * COUNT ( * ) + 98 * - ( + 41 ) - + 20 + + + 1 + - 76 AS col2
----
-4128

query I rowsort
SELECT DISTINCT - + 69 col1
----
-69

query I rowsort
SELECT ALL - 24 AS col1
----
-24

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

query I rowsort
SELECT ALL - 28 * 96 + - 96 + + + 60 * 48
----
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-239
SELECT + 66 + - 94 + 50 + - CAST( NULL AS SIGNED ) * + AVG ( ALL - 7 ) * - 59 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-239
SELECT + 66 + - 94 + 50 + - CAST ( NULL AS INTEGER ) * + AVG ( ALL - 7 ) * - 59 AS col2
----
NULL

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

query I rowsort
SELECT ALL - 84 * - - 52 + 60
----
-4308

query I rowsort
SELECT ALL 33 + - 16
----
17

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-244
SELECT DISTINCT - COUNT( * ) + + 39 - + + 43 DIV - + 74 - + 28 - - ( 47 ) DIV - 48 * 26 AS col2
----
10

skipif mysql # not compatible
query I rowsort label-244
SELECT DISTINCT - COUNT ( * ) + + 39 - + + 43 / - + 74 - + 28 - - ( 47 ) / - 48 * 26 AS col2
----
10

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-245
SELECT - 60 DIV 82 + + 97 * - + ( + NULLIF ( COUNT( DISTINCT - + 65 ), 70 ) ) * + + 88 + 12 AS col1, 85 + 52 col0
----
-8524
137

skipif mysql # not compatible
query II rowsort label-245
SELECT - 60 / 82 + + 97 * - + ( + NULLIF ( COUNT ( DISTINCT - + 65 ), 70 ) ) * + + 88 + 12 AS col1, 85 + 52 col0
----
-8524
137

query I rowsort
SELECT 61 + 37 * - ( + + 30 ) * 64 + + + 17
----
-70962

query I rowsort
SELECT 71 + + 13 AS col0
----
84

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-248
SELECT ALL 33 + - CAST( 79 AS SIGNED ) * + - COUNT( * ) col2, + CAST( - - 41 AS SIGNED )
----
112
41

skipif mysql # not compatible
query II rowsort label-248
SELECT ALL 33 + - CAST ( 79 AS INTEGER ) * + - COUNT ( * ) col2, + CAST ( - - 41 AS INTEGER )
----
112
41

query I rowsort
SELECT NULLIF ( + 41, - 31 ) + + + 38 AS col1
----
79

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-250
SELECT ALL COALESCE ( - 59, + 86 ) + - - CASE - + ( - 11 ) WHEN - 97 * + + 88 + - CASE - - MAX( - 89 ) WHEN - + 98 * 79 THEN - 67 * 98 ELSE NULL END + + - ( - 92 ) * - COUNT( * ) THEN - 49 + - 64 * + - 65 DIV + 99 ELSE + 78 * 97 END + 38 DIV - MAX( ALL 28 ) AS col2
----
7506

skipif mysql # not compatible
query I rowsort label-250
SELECT ALL COALESCE ( - 59, + 86 ) + - - CASE - + ( - 11 ) WHEN - 97 * + + 88 + - CASE - - MAX ( - 89 ) WHEN - + 98 * 79 THEN - 67 * 98 ELSE NULL END + + - ( - 92 ) * - COUNT ( * ) THEN - 49 + - 64 * + - 65 / + 99 ELSE + 78 * 97 END + 38 / - MAX ( ALL 28 ) AS col2
----
7506

query I rowsort
SELECT ALL - 97 + - - 28 AS col1
----
-69

query I rowsort
SELECT ALL + 33 - 88 + 44
----
-11

query I rowsort
SELECT ALL 73 * 90
----
6570

onlyif mysql # aggregate syntax: 
query I rowsort label-254
SELECT 77 + - COALESCE ( 9, COUNT( * ), - 65 ) AS col1
----
68

skipif mysql # not compatible
query I rowsort label-254
SELECT 77 + - COALESCE ( 9, COUNT ( * ), - 65 ) AS col1
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-255
SELECT ALL 62 * 34 - - + 78 + - COUNT( * ) - 72 col0
----
2113

skipif mysql # not compatible
query I rowsort label-255
SELECT ALL 62 * 34 - - + 78 + - COUNT ( * ) - 72 col0
----
2113

query I rowsort
SELECT + 86 col2
----
86

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

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

query I rowsort
SELECT 2 * + 38 AS col2
----
76

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-259
SELECT DISTINCT - 37 AS col0, - CAST( NULL AS SIGNED )
----
-37
NULL

skipif mysql # not compatible
query II rowsort label-259
SELECT DISTINCT - 37 AS col0, - CAST ( NULL AS INTEGER )
----
-37
NULL

query I rowsort
SELECT ALL - ( + 36 ) AS col1
----
-36

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

skipif mysql # not compatible
query I rowsort label-261
SELECT COUNT ( ALL + 27 ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-262
SELECT ALL - COUNT( * ), - 45 + - 46 AS col2
----
-1
-91

skipif mysql # not compatible
query II rowsort label-262
SELECT ALL - COUNT ( * ), - 45 + - 46 AS col2
----
-1
-91

query II rowsort
SELECT + 49 AS col2, + 5 + 84 + + - 52
----
49
37

query I rowsort
SELECT - 48 * + + 26 AS col2
----
-1248

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-265
SELECT DISTINCT - - 18 AS col0, COUNT( ALL - 67 ) * - - 45 * - + 70 - - + 15 / - - 29 / - COUNT( * ) + + ( - - 59 ) - 39 + 66 + + CASE - + COUNT( * ) WHEN + CASE WHEN NOT NULL <> COUNT( * ) THEN - CAST( NULL AS SIGNED ) END * + COUNT( * ) * - 45 / + CAST( NULL AS SIGNED ) / + 26 THEN - 13 WHEN + COUNT( * ) THEN NULL END * CAST( - ( 82 ) + + 48 AS SIGNED ) * 85
----
18
NULL

skipif mysql # not compatible
query II rowsort label-265
SELECT DISTINCT - - 18 AS col0, COUNT ( ALL - 67 ) * - - 45 * - + 70 - - + 15 / - - 29 / - COUNT ( * ) + + ( - - 59 ) - 39 + 66 + + CASE - + COUNT ( * ) WHEN + CASE WHEN NOT NULL <> COUNT ( * ) THEN - CAST ( NULL AS INTEGER ) END * + COUNT ( * ) * - 45 / + CAST ( NULL AS INTEGER ) / + 26 THEN - 13 WHEN + COUNT ( * ) THEN NULL END * CAST ( - ( 82 ) + + 48 AS INTEGER ) * 85
----
18
NULL

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-268
SELECT + - 31 * 40 + + + 30 DIV - - 44 AS col2
----
-1240

skipif mysql # not compatible
query I rowsort label-268
SELECT + - 31 * 40 + + + 30 / - - 44 AS col2
----
-1240

onlyif mysql # aggregate syntax: 
query I rowsort label-269
SELECT NULLIF ( - 46, + CASE COUNT( * ) WHEN 74 * + + 66 * + 60 + 56 - + COUNT( * ) THEN - - 50 WHEN - 56 THEN NULL END ) AS col2
----
-46

skipif mysql # not compatible
query I rowsort label-269
SELECT NULLIF ( - 46, + CASE COUNT ( * ) WHEN 74 * + + 66 * + 60 + 56 - + COUNT ( * ) THEN - - 50 WHEN - 56 THEN NULL END ) AS col2
----
-46

query I rowsort
SELECT + NULLIF ( - - 35, ( - 2 ) + - - 68 ) * + 7 + + 23
----
268

query I rowsort
SELECT + 84 + - ( + 5 ) AS col0
----
79

query II rowsort
SELECT + 77, - 8 col1
----
77
-8

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-274
SELECT 95 * SUM( ALL 44 )
----
4180

skipif mysql # not compatible
query I rowsort label-274
SELECT 95 * SUM ( ALL 44 )
----
4180

onlyif mysql # DIV for integer division: 
query I rowsort label-275
SELECT NULLIF ( 4, + 75 * + 19 + - 68 + 22 ) DIV - 56 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-275
SELECT NULLIF ( 4, + 75 * + 19 + - 68 + 22 ) / - 56 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-276
SELECT ALL + + CASE + + ( + + 4 ) WHEN + MAX( DISTINCT - 84 ) * + + 96 THEN - + MIN( DISTINCT + + 60 ) WHEN 30 THEN COALESCE ( + + 66, + 75 * + COALESCE ( + - 71, + - COUNT( DISTINCT - + 91 ) ), - + NULLIF ( + + COALESCE ( 18, - COUNT( * ) * 5, - 48 + 77 ), + 25 ) ) ELSE 67 END + 57
----
124

skipif mysql # not compatible
query I rowsort label-276
SELECT ALL + + CASE + + ( + + 4 ) WHEN + MAX ( DISTINCT - 84 ) * + + 96 THEN - + MIN ( DISTINCT + + 60 ) WHEN 30 THEN COALESCE ( + + 66, + 75 * + COALESCE ( + - 71, + - COUNT ( DISTINCT - + 91 ) ), - + NULLIF ( + + COALESCE ( 18, - COUNT ( * ) * 5, - 48 + 77 ), + 25 ) ) ELSE 67 END + 57
----
124

query I rowsort
SELECT - 50 * + - 4 * - 87 * 51 * + 34 + - 85
----
-30171685

query II rowsort
SELECT DISTINCT + + 67 + 1, - 44 AS col1
----
68
-44

query I rowsort
SELECT ALL + - CASE + ( + 85 ) WHEN + 10 / + + 93 THEN + 40 END + - 49
----
NULL

query I rowsort
SELECT ALL 21 + 5 AS col0
----
26

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-281
SELECT COUNT( * ) * 3, + CASE - - 59 WHEN + ( - - 99 ) THEN 98 ELSE 48 END * - 71 - ( + - CAST( NULL AS SIGNED ) ) AS col0
----
3
NULL

skipif mysql # not compatible
query II rowsort label-281
SELECT COUNT ( * ) * 3, + CASE - - 59 WHEN + ( - - 99 ) THEN 98 ELSE 48 END * - 71 - ( + - CAST ( NULL AS INTEGER ) ) AS col0
----
3
NULL

query II rowsort
SELECT DISTINCT - - 79 + + - 62 col0, + 56 AS col1
----
17
56

onlyif mysql # DIV for integer division: 
query I rowsort label-283
SELECT + - 36 DIV - 2
----
18

skipif mysql # not compatible
query I rowsort label-283
SELECT + - 36 / - 2
----
18

query I rowsort
SELECT + 18 - + 55 + 71
----
34

query I rowsort
SELECT - 63 * - 41 * + 33 AS col0
----
85239

query I rowsort
SELECT DISTINCT 92 + - 40 * + 72 * 22 + - - 65 + - 94 AS col0
----
-63297

onlyif mysql # aggregate syntax: 
query I rowsort label-287
SELECT - 98 + - - 99 * - COUNT( * )
----
-197

skipif mysql # not compatible
query I rowsort label-287
SELECT - 98 + - - 99 * - COUNT ( * )
----
-197

query I rowsort
SELECT ALL 27 - 8
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-289
SELECT DISTINCT + SUM( - 1 ) * + 3 * - 93 - - 46
----
325

skipif mysql # not compatible
query I rowsort label-289
SELECT DISTINCT + SUM ( - 1 ) * + 3 * - 93 - - 46
----
325

query I rowsort
SELECT ALL COALESCE ( - - 55, + 2 * + 18 + + - COALESCE ( - 43, - - 29, + + 7 + + ( + 74 ) ) + 6 + + 5 * + 97 ) AS col2
----
55

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-291
SELECT + 9 - 41 * + 61 + CASE - 14 WHEN + + 1 + - 27 THEN - CAST( + + 23 AS SIGNED ) WHEN 79 / 1 + MAX( DISTINCT + ( 79 ) ) * - 96 - + + 71 THEN NULL ELSE NULL END + + 35 * - 49 * - ( - + 15 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-291
SELECT + 9 - 41 * + 61 + CASE - 14 WHEN + + 1 + - 27 THEN - CAST ( + + 23 AS INTEGER ) WHEN 79 / 1 + MAX ( DISTINCT + ( 79 ) ) * - 96 - + + 71 THEN NULL ELSE NULL END + + 35 * - 49 * - ( - + 15 ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-292
SELECT - MAX( ALL 55 ) + 12 AS col0
----
-43

skipif mysql # not compatible
query I rowsort label-292
SELECT - MAX ( ALL 55 ) + 12 AS col0
----
-43

query I rowsort
SELECT - 55 + + - 38 * - 88 * + 48
----
160457

onlyif mysql # aggregate syntax: 
query I rowsort label-294
SELECT + 55 * - + COUNT( * ) * - SUM( ALL 59 )
----
3245

skipif mysql # not compatible
query I rowsort label-294
SELECT + 55 * - + COUNT ( * ) * - SUM ( ALL 59 )
----
3245

onlyif mysql # aggregate syntax: 
query II rowsort label-295
SELECT + COUNT( * ) + - + 61 AS col1, + 47 - - ( 4 )
----
-60
51

skipif mysql # not compatible
query II rowsort label-295
SELECT + COUNT ( * ) + - + 61 AS col1, + 47 - - ( 4 )
----
-60
51

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-297
SELECT ALL NULLIF ( + CASE 18 WHEN + COUNT( * ) + + - 41 THEN - 97 + + 19 END, - 86 ) * - COALESCE ( - - 57, - 78 / 74, + CASE - 22 WHEN - - 89 + COUNT( ALL + + 72 ) THEN + - COUNT( * ) * + 58 + - ( + 29 ) END )
----
NULL

skipif mysql # not compatible
query I rowsort label-297
SELECT ALL NULLIF ( + CASE 18 WHEN + COUNT ( * ) + + - 41 THEN - 97 + + 19 END, - 86 ) * - COALESCE ( - - 57, - 78 / 74, + CASE - 22 WHEN - - 89 + COUNT ( ALL + + 72 ) THEN + - COUNT ( * ) * + 58 + - ( + 29 ) END )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-298
SELECT DISTINCT 25 DIV 30 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-298
SELECT DISTINCT 25 / 30 AS col2
----
0

query I rowsort
SELECT + + 63 + 24 * + - 33
----
-729

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

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

query I rowsort
SELECT - - 83 + - 87
----
-4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-302
SELECT DISTINCT + + NULLIF ( + + CAST( NULL AS SIGNED ), + + 29 * ( - 63 ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-302
SELECT DISTINCT + + NULLIF ( + + CAST ( NULL AS INTEGER ), + + 29 * ( - 63 ) ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-303
SELECT ALL - - COUNT( * ) * + NULLIF ( - 17, + + 58 - + 99 ) + + + 17 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-303
SELECT ALL - - COUNT ( * ) * + NULLIF ( - 17, + + 58 - + 99 ) + + + 17 AS col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-304
SELECT - - 84 / + 28 + + CASE - + 35 WHEN - 43 * - 80 + 95 + 33 - + 14 + + 31 * - 30 THEN + CAST( NULL AS DECIMAL ) / CASE - 74 WHEN 59 THEN NULL WHEN + 84 * - COUNT( * ) / - COALESCE ( - + CASE - 46 WHEN 94 THEN + 83 ELSE NULL END, - CASE - ( 20 ) WHEN 57 THEN NULL ELSE AVG ( ALL + 99 ) + + 70 END ) * 51 + ( - 4 ) THEN NULL WHEN CAST( NULL AS DECIMAL ) + AVG ( ALL CAST( NULL AS SIGNED ) ) THEN + 84 + - 10 * - 88 ELSE - 50 + - CASE + 94 + 51 WHEN 45 * 94 THEN - MIN( 59 ) * 54 WHEN + 17 THEN + 5 ELSE NULL END END END * 74 + COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-304
SELECT - - 84 / + 28 + + CASE - + 35 WHEN - 43 * - 80 + 95 + 33 - + 14 + + 31 * - 30 THEN + CAST ( NULL AS REAL ) / CASE - 74 WHEN 59 THEN NULL WHEN + 84 * - COUNT ( * ) / - COALESCE ( - + CASE - 46 WHEN 94 THEN + 83 ELSE NULL END, - CASE - ( 20 ) WHEN 57 THEN NULL ELSE AVG ( ALL + 99 ) + + 70 END ) * 51 + ( - 4 ) THEN NULL WHEN CAST ( NULL AS REAL ) + AVG ( ALL CAST ( NULL AS INTEGER ) ) THEN + 84 + - 10 * - 88 ELSE - 50 + - CASE + 94 + 51 WHEN 45 * 94 THEN - MIN ( 59 ) * 54 WHEN + 17 THEN + 5 ELSE NULL END END END * 74 + COUNT ( * ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-305
SELECT - 56 * + - ( - + NULLIF ( 25, 15 ) ) + + ( COUNT( * ) ) AS col0, COUNT( * )
----
-1399
1

skipif mysql # not compatible
query II rowsort label-305
SELECT - 56 * + - ( - + NULLIF ( 25, 15 ) ) + + ( COUNT ( * ) ) AS col0, COUNT ( * )
----
-1399
1

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

query I rowsort
SELECT DISTINCT + 71 AS col2
----
71

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-308
SELECT - CAST( + - 65 AS SIGNED ) + - 62 AS col1
----
3

skipif mysql # not compatible
query I rowsort label-308
SELECT - CAST ( + - 65 AS INTEGER ) + - 62 AS col1
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-309
SELECT - 98 * + 48 * - - CAST( NULL AS SIGNED ) * - 4 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-309
SELECT - 98 * + 48 * - - CAST ( NULL AS INTEGER ) * - 4 col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-310
SELECT DISTINCT + COALESCE ( + 12, - 45 ) * + COUNT( * ) * + - SUM( - 89 ) AS col0, + 60 AS col2
----
1068
60

skipif mysql # not compatible
query II rowsort label-310
SELECT DISTINCT + COALESCE ( + 12, - 45 ) * + COUNT ( * ) * + - SUM ( - 89 ) AS col0, + 60 AS col2
----
1068
60

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-312
SELECT COUNT( * ) col1, 67 + - ( COUNT( * ) ) col0
----
1
66

skipif mysql # not compatible
query II rowsort label-312
SELECT COUNT ( * ) col1, 67 + - ( COUNT ( * ) ) col0
----
1
66

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-314
SELECT - NULLIF ( + + 24, - CAST( - 66 AS SIGNED ) - COALESCE ( + - 93, - - 64, NULLIF ( 58, + 54 + 94 ) ) + + 21 ) AS col2
----
-24

skipif mysql # not compatible
query I rowsort label-314
SELECT - NULLIF ( + + 24, - CAST ( - 66 AS INTEGER ) - COALESCE ( + - 93, - - 64, NULLIF ( 58, + 54 + 94 ) ) + + 21 ) AS col2
----
-24

query I rowsort
SELECT DISTINCT + 62 * + 36
----
2232

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-316
SELECT - COALESCE ( + ( + 14 ), + COUNT( * ) - + 94 + - 28 DIV + + CASE + 94 WHEN 96 THEN - - 23 WHEN 5 * - + 92 + + 8 + + - 46 * - 86 DIV + 78 * + - 20 * + 58 + + 28 THEN NULL END, - ( + - 35 ), - 26 ) AS col1
----
-14

skipif mysql # not compatible
query I rowsort label-316
SELECT - COALESCE ( + ( + 14 ), + COUNT ( * ) - + 94 + - 28 / + + CASE + 94 WHEN 96 THEN - - 23 WHEN 5 * - + 92 + + 8 + + - 46 * - 86 / + 78 * + - 20 * + 58 + + 28 THEN NULL END, - ( + - 35 ), - 26 ) AS col1
----
-14

query I rowsort
SELECT ALL + 44 * + + 20
----
880

query I rowsort
SELECT - 47 AS col2
----
-47

query I rowsort
SELECT - - 27 col1
----
27

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-321
SELECT + CAST( + 53 AS SIGNED ) * 12 col1
----
636

skipif mysql # not compatible
query I rowsort label-321
SELECT + CAST ( + 53 AS INTEGER ) * 12 col1
----
636

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-324
SELECT + 23 * - CAST( - 47 AS SIGNED ) AS col0, MIN( 53 )
----
1081
53

skipif mysql # not compatible
query II rowsort label-324
SELECT + 23 * - CAST ( - 47 AS INTEGER ) AS col0, MIN ( 53 )
----
1081
53

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-326
SELECT DISTINCT - COUNT( * ) DIV - + 51 * + 36 + - 16 + + NULLIF ( + COUNT( * ), - SUM( ALL - 75 ) ) AS col0, - 70 DIV + MAX( DISTINCT + - 35 )
----
-15
2

skipif mysql # not compatible
query II rowsort label-326
SELECT DISTINCT - COUNT ( * ) / - + 51 * + 36 + - 16 + + NULLIF ( + COUNT ( * ), - SUM ( ALL - 75 ) ) AS col0, - 70 / + MAX ( DISTINCT + - 35 )
----
-15
2

onlyif mysql # aggregate syntax: 
query I rowsort label-327
SELECT ALL 43 * + MAX( 21 ) AS col2
----
903

skipif mysql # not compatible
query I rowsort label-327
SELECT ALL 43 * + MAX ( 21 ) AS col2
----
903

query I rowsort
SELECT DISTINCT - + 47
----
-47

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-329
SELECT 41 DIV + 87 * 86 + ( - COUNT( * ) ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-329
SELECT 41 / + 87 * 86 + ( - COUNT ( * ) ) AS col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-330
SELECT 68 * + COUNT( + 20 ) col2
----
68

skipif mysql # not compatible
query I rowsort label-330
SELECT 68 * + COUNT ( + 20 ) col2
----
68

query I rowsort
SELECT ALL 70 - + 3 * - + ( - 86 ) + - 95 AS col1
----
-283

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-332
SELECT ALL 9 * NULLIF ( CAST( NULL AS SIGNED ), - + 23 ) * + 1
----
NULL

skipif mysql # not compatible
query I rowsort label-332
SELECT ALL 9 * NULLIF ( CAST ( NULL AS INTEGER ), - + 23 ) * + 1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-333
SELECT - SUM( ALL + 24 ) - - 61 AS col2
----
37

skipif mysql # not compatible
query I rowsort label-333
SELECT - SUM ( ALL + 24 ) - - 61 AS col2
----
37

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

query I rowsort
SELECT 61 * - + 94
----
-5734

query I rowsort
SELECT ALL - 38 * 29 AS col1
----
-1102

query I rowsort
SELECT 80 * 6 AS col0
----
480

onlyif mysql # aggregate syntax: 
query I rowsort label-338
SELECT ALL 50 * COUNT( * ) * + ( 75 ) * 8 * + 43 AS col0
----
1290000

skipif mysql # not compatible
query I rowsort label-338
SELECT ALL 50 * COUNT ( * ) * + ( 75 ) * 8 * + 43 AS col0
----
1290000

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

onlyif mysql # DIV for integer division: 
query I rowsort label-340
SELECT 70 DIV + ( + 93 )
----
0

skipif mysql # not compatible
query I rowsort label-340
SELECT 70 / + ( + 93 )
----
0

query I rowsort
SELECT ALL 14 * + 11
----
154

query I rowsort
SELECT 76 * + 18
----
1368

query I rowsort
SELECT DISTINCT 49 * 74
----
3626

onlyif mysql # aggregate syntax: 
query II rowsort label-344
SELECT ALL - ( + 21 ) + + ( + 53 ) + 48, - COUNT( DISTINCT 1 ) AS col1
----
80
-1

skipif mysql # not compatible
query II rowsort label-344
SELECT ALL - ( + 21 ) + + ( + 53 ) + 48, - COUNT ( DISTINCT 1 ) AS col1
----
80
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query III rowsort label-345
SELECT 2 - - 39 + - - COUNT( * ) * COUNT( * ) + - 38 * SUM( ALL + + CAST( + 86 AS SIGNED ) ) * - 81 AS col1, + SUM( - CASE - - 32 WHEN - 53 THEN - 59 WHEN - + 66 * + 48 THEN + - 86 END ) AS col2, 28 * - + MIN( 83 )
----
264750
NULL
-2324

skipif mysql # not compatible
query III rowsort label-345
SELECT 2 - - 39 + - - COUNT ( * ) * COUNT ( * ) + - 38 * SUM ( ALL + + CAST ( + 86 AS INTEGER ) ) * - 81 AS col1, + SUM ( - CASE - - 32 WHEN - 53 THEN - 59 WHEN - + 66 * + 48 THEN + - 86 END ) AS col2, 28 * - + MIN ( 83 )
----
264750
NULL
-2324

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-346
SELECT ALL - 85 DIV 29 AS col1, COUNT( 9 ) * 90 + + NULLIF ( + SUM( ALL 42 ), 34 )
----
-2
132

skipif mysql # not compatible
query II rowsort label-346
SELECT ALL - 85 / 29 AS col1, COUNT ( 9 ) * 90 + + NULLIF ( + SUM ( ALL 42 ), 34 )
----
-2
132

query I rowsort
SELECT 85 + + 7
----
92

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-348
SELECT COUNT( * ) * + COUNT( * ) - + CAST( NULL AS SIGNED ) - - 86 * + + 12 + - 96 * + COALESCE ( 88, ( 23 ) ) * COALESCE ( - 61, - + 32 + + 57, + + CAST( + - COALESCE ( - 77, 32 ) AS SIGNED ) + - - COUNT( * ) ) + COUNT( * ) AS col1, + COUNT( * ) AS col1
----
NULL
1

skipif mysql # not compatible
query II rowsort label-348
SELECT COUNT ( * ) * + COUNT ( * ) - + CAST ( NULL AS INTEGER ) - - 86 * + + 12 + - 96 * + COALESCE ( 88, ( 23 ) ) * COALESCE ( - 61, - + 32 + + 57, + + CAST ( + - COALESCE ( - 77, 32 ) AS INTEGER ) + - - COUNT ( * ) ) + COUNT ( * ) AS col1, + COUNT ( * ) AS col1
----
NULL
1

onlyif mysql # aggregate syntax: 
query I rowsort label-349
SELECT ALL - 61 + + - SUM( + + 75 ) * + - 51 * + 69 AS col2
----
263864

skipif mysql # not compatible
query I rowsort label-349
SELECT ALL - 61 + + - SUM ( + + 75 ) * + - 51 * + 69 AS col2
----
263864

onlyif mysql # aggregate syntax: 
query I rowsort label-350
SELECT ALL MAX( 78 ) AS col0
----
78

skipif mysql # not compatible
query I rowsort label-350
SELECT ALL MAX ( 78 ) AS col0
----
78

query I rowsort
SELECT ALL - 11 * + ( - - 61 ) AS col2
----
-671

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

skipif mysql # not compatible
query I rowsort label-352
SELECT + - COALESCE ( - COUNT ( * ), - 62 ) AS col2
----
1

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

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

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

skipif mysql # not compatible
query I rowsort label-354
SELECT MAX ( + 51 )
----
51

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-355
SELECT + CAST( NULL AS SIGNED ) * + 21 + - 85 + + - COUNT( * ) / - COALESCE ( + + 62, MIN( ALL + - 29 ) + 77 )
----
NULL

skipif mysql # not compatible
query I rowsort label-355
SELECT + CAST ( NULL AS INTEGER ) * + 21 + - 85 + + - COUNT ( * ) / - COALESCE ( + + 62, MIN ( ALL + - 29 ) + 77 )
----
NULL

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-357
SELECT CASE + MAX( 57 ) WHEN - 19 THEN - - 1 WHEN - 25 * + 49 THEN + - 35 ELSE 45 DIV + + 1 + - 96 END * - 45 * - + 13 AS col1
----
-29835

skipif mysql # not compatible
query I rowsort label-357
SELECT CASE + MAX ( 57 ) WHEN - 19 THEN - - 1 WHEN - 25 * + 49 THEN + - 35 ELSE 45 / + + 1 + - 96 END * - 45 * - + 13 AS col1
----
-29835

query I rowsort
SELECT ALL - + 93 AS col0
----
-93

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-359
SELECT + 37 + - CAST( - + 47 AS SIGNED )
----
84

skipif mysql # not compatible
query I rowsort label-359
SELECT + 37 + - CAST ( - + 47 AS INTEGER )
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-360
SELECT - 60 * 56 * 43 * - + COUNT( * ) * - + ( - + 96 ) AS col2
----
13870080

skipif mysql # not compatible
query I rowsort label-360
SELECT - 60 * 56 * 43 * - + COUNT ( * ) * - + ( - + 96 ) AS col2
----
13870080

query I rowsort
SELECT ALL 63 * - 9 AS col0
----
-567

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-362
SELECT 70 * - + ( + 65 ) * 61 * 83 * - 45 + - COUNT( * ) DIV + MAX( ALL - 40 )
----
1036649250

skipif mysql # not compatible
query I rowsort label-362
SELECT 70 * - + ( + 65 ) * 61 * 83 * - 45 + - COUNT ( * ) / + MAX ( ALL - 40 )
----
1036649250

onlyif mysql # aggregate syntax: 
query I rowsort label-363
SELECT COUNT( * ) * COUNT( * ) + 57 + + - ( + COUNT( * ) ) + + + MAX( DISTINCT 10 ) * - ( 32 )
----
-263

skipif mysql # not compatible
query I rowsort label-363
SELECT COUNT ( * ) * COUNT ( * ) + 57 + + - ( + COUNT ( * ) ) + + + MAX ( DISTINCT 10 ) * - ( 32 )
----
-263

query I rowsort
SELECT 77 - + + 4 - + 75 AS col2
----
-2

onlyif mysql # aggregate syntax: 
query II rowsort label-365
SELECT + 21 * + ( + 30 ) + + + COUNT( + 3 ) + COUNT( * ), + COUNT( * ) + + - 28 col0
----
632
-27

skipif mysql # not compatible
query II rowsort label-365
SELECT + 21 * + ( + 30 ) + + + COUNT ( + 3 ) + COUNT ( * ), + COUNT ( * ) + + - 28 col0
----
632
-27

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-366
SELECT MIN( ALL 75 ) * COUNT( DISTINCT 44 ) DIV ( + - COUNT( * ) ) AS col0
----
-75

skipif mysql # not compatible
query I rowsort label-366
SELECT MIN ( ALL 75 ) * COUNT ( DISTINCT 44 ) / ( + - COUNT ( * ) ) AS col0
----
-75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-367
SELECT 89 + - CAST( - + ( 8 ) AS SIGNED )
----
97

skipif mysql # not compatible
query I rowsort label-367
SELECT 89 + - CAST ( - + ( 8 ) AS INTEGER )
----
97

query I rowsort
SELECT 60 * 30 AS col2
----
1800

query I rowsort
SELECT 67 + - - 68 AS col1
----
135

query I rowsort
SELECT DISTINCT - 38 AS col1
----
-38

query I rowsort
SELECT DISTINCT 73 + - + 22 AS col0
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-372
SELECT 80 * 28 + + 39 * COUNT( * ) * + + COUNT( * ) AS col0
----
2279

skipif mysql # not compatible
query I rowsort label-372
SELECT 80 * 28 + + 39 * COUNT ( * ) * + + COUNT ( * ) AS col0
----
2279

query II rowsort
SELECT ALL 76, + 24 AS col0
----
76
24

query I rowsort
SELECT 89 col0
----
89

query I rowsort
SELECT ALL + ( 1 ) + - ( 77 ) AS col2
----
-76

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

skipif mysql # not compatible
query I rowsort label-376
SELECT CAST ( NULL AS INTEGER ) + 27 AS col2
----
NULL

query I rowsort
SELECT 76 * + - 71
----
-5396

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

onlyif mysql # DIV for integer division: 
query I rowsort label-379
SELECT DISTINCT 96 + + - COALESCE ( ( + 22 ), - 9 DIV + 33 )
----
74

skipif mysql # not compatible
query I rowsort label-379
SELECT DISTINCT 96 + + - COALESCE ( ( + 22 ), - 9 / + 33 )
----
74

query I rowsort
SELECT 30 + + 13 AS col0
----
43

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

query I rowsort
SELECT - - 49
----
49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-383
SELECT ALL CAST( + + CAST( NULL AS DECIMAL ) AS SIGNED ) + 48 * + NULLIF ( + COUNT( DISTINCT 95 ), 27 * - COUNT( DISTINCT + + 8 ) ) + + - 62 + COUNT( + 69 ) + 65 * + - 35 * - 88 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-383
SELECT ALL CAST ( + + CAST ( NULL AS REAL ) AS INTEGER ) + 48 * + NULLIF ( + COUNT ( DISTINCT 95 ), 27 * - COUNT ( DISTINCT + + 8 ) ) + + - 62 + COUNT ( + 69 ) + 65 * + - 35 * - 88 AS col1
----
NULL

query I rowsort
SELECT DISTINCT - 8 col0
----
-8

query II rowsort
SELECT 43, 85 + + + 30 - 4 + + 53 AS col1
----
43
164

onlyif mysql # aggregate syntax: 
query I rowsort label-386
SELECT ALL - ( + 64 ) * COUNT( * ) + - 85 - 58 AS col2
----
-207

skipif mysql # not compatible
query I rowsort label-386
SELECT ALL - ( + 64 ) * COUNT ( * ) + - 85 - 58 AS col2
----
-207

query I rowsort
SELECT - + 83 * - NULLIF ( - - 36, - 46 ) AS col1
----
2988

onlyif mysql # DIV for integer division: 
query I rowsort label-388
SELECT - - 8 - - 14 DIV - 58 + 45 AS col2
----
53

skipif mysql # not compatible
query I rowsort label-388
SELECT - - 8 - - 14 / - 58 + 45 AS col2
----
53

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

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-390
SELECT + + COUNT( * ), - NULLIF ( + MAX( ALL 52 ), + + CAST( NULL AS DECIMAL ) ) AS col1
----
1
-52

skipif mysql # not compatible
query II rowsort label-390
SELECT + + COUNT ( * ), - NULLIF ( + MAX ( ALL 52 ), + + CAST ( NULL AS REAL ) ) AS col1
----
1
-52

query I rowsort
SELECT DISTINCT - - 28 * + - 21 * 39 AS col1
----
-22932

query I rowsort
SELECT - 58 * + - 23 * + 7 * - + 12 AS col2
----
-112056

query I rowsort
SELECT ALL - 62 * - 57
----
3534

query I rowsort
SELECT - 7 * - 23 + - 37 + - - 20 AS col1
----
144

query I rowsort
SELECT + 62 + + - 80 + 46 * + - 52 AS col1
----
-2410

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

onlyif mysql # aggregate syntax: 
query I rowsort label-397
SELECT ALL + NULLIF ( + COUNT( * ), 53 - - + 86 + 10 - - 67 * 32 * - SUM( ALL 12 ) + - COUNT( * ) / - ( + 80 ) + + 37 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-397
SELECT ALL + NULLIF ( + COUNT ( * ), 53 - - + 86 + 10 - - 67 * 32 * - SUM ( ALL 12 ) + - COUNT ( * ) / - ( + 80 ) + + 37 ) AS col1
----
1

query I rowsort
SELECT DISTINCT + 38 AS col2
----
38

query I rowsort
SELECT ALL 10 * + 23 + - 40 * 58
----
-2090

onlyif mysql # aggregate syntax: 
query I rowsort label-400
SELECT DISTINCT 35 * COUNT( * ) + - 87 AS col2
----
-52

skipif mysql # not compatible
query I rowsort label-400
SELECT DISTINCT 35 * COUNT ( * ) + - 87 AS col2
----
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-401
SELECT ALL + COALESCE ( - + 37, COUNT( * ) )
----
-37

skipif mysql # not compatible
query I rowsort label-401
SELECT ALL + COALESCE ( - + 37, COUNT ( * ) )
----
-37

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-402
SELECT DISTINCT + 3 DIV - - CAST( + - 28 AS SIGNED ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-402
SELECT DISTINCT + 3 / - - CAST ( + - 28 AS INTEGER ) AS col0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-403
SELECT - COALESCE ( + 27, + - CAST( - - 6 AS SIGNED ), 53 * - 15 ) + 85
----
58

skipif mysql # not compatible
query I rowsort label-403
SELECT - COALESCE ( + 27, + - CAST ( - - 6 AS INTEGER ), 53 * - 15 ) + 85
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-404
SELECT ALL COUNT( DISTINCT + 4 ) * COUNT( * ) * - COUNT( ALL + - 15 )
----
-1

skipif mysql # not compatible
query I rowsort label-404
SELECT ALL COUNT ( DISTINCT + 4 ) * COUNT ( * ) * - COUNT ( ALL + - 15 )
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-405
SELECT - ( 61 ) DIV 40 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-405
SELECT - ( 61 ) / 40 AS col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-406
SELECT + 73 * 32 * - COUNT( * )
----
-2336

skipif mysql # not compatible
query I rowsort label-406
SELECT + 73 * 32 * - COUNT ( * )
----
-2336

onlyif mysql # aggregate syntax: 
query I rowsort label-407
SELECT MAX( 14 )
----
14

skipif mysql # not compatible
query I rowsort label-407
SELECT MAX ( 14 )
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-408
SELECT ALL 55 + - 27 - 83 * + COUNT( * ) * 65 - + 60 + + + 33 * - 5
----
-5592

skipif mysql # not compatible
query I rowsort label-408
SELECT ALL 55 + - 27 - 83 * + COUNT ( * ) * 65 - + 60 + + + 33 * - 5
----
-5592

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-409
SELECT + SUM( - - NULLIF ( - 25, + 46 ) ) - + ( COALESCE ( 70, - 70, - 90 ) ) DIV - COUNT( * ) AS col2
----
45

skipif mysql # not compatible
query I rowsort label-409
SELECT + SUM ( - - NULLIF ( - 25, + 46 ) ) - + ( COALESCE ( 70, - 70, - 90 ) ) / - COUNT ( * ) AS col2
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-410
SELECT - COUNT( + 30 ) col0
----
-1

skipif mysql # not compatible
query I rowsort label-410
SELECT - COUNT ( + 30 ) col0
----
-1

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

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-412
SELECT DISTINCT CAST( - CAST( NULL AS SIGNED ) AS DECIMAL ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-412
SELECT DISTINCT CAST ( - CAST ( NULL AS INTEGER ) AS REAL ) AS col0
----
NULL

query II rowsort
SELECT ALL 19 + - 42, 79 col1
----
-23
79

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

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

query I rowsort
SELECT ALL + 53 - - + 7 - + ( - + 98 )
----
158

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-417
SELECT + - 78 + - + 63 + - MIN( 10 ) - - + MAX( DISTINCT 0 ) col0
----
-151

skipif mysql # not compatible
query I rowsort label-417
SELECT + - 78 + - + 63 + - MIN ( 10 ) - - + MAX ( DISTINCT 0 ) col0
----
-151

query I rowsort
SELECT + - 73 - + + 13 AS col2
----
-86

query I rowsort
SELECT + + NULLIF ( + 12, + + 27 * - - 89 ) + 45 AS col1
----
57

query I rowsort
SELECT + + 98 - + + 0
----
98

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

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

query I rowsort
SELECT ALL - 17 * - 81 AS col2
----
1377

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-424
SELECT - 48 * 39 * - NULLIF ( + + COUNT( * ), - + 36 * - COUNT( * ) )
----
1872

skipif mysql # not compatible
query I rowsort label-424
SELECT - 48 * 39 * - NULLIF ( + + COUNT ( * ), - + 36 * - COUNT ( * ) )
----
1872

query I rowsort
SELECT ALL + 68 * + 17 + + ( - 19 ) AS col0
----
1137

onlyif mysql # aggregate syntax: 
query I rowsort label-426
SELECT + 6 + MIN( DISTINCT + 73 ) AS col1
----
79

skipif mysql # not compatible
query I rowsort label-426
SELECT + 6 + MIN ( DISTINCT + 73 ) AS col1
----
79

onlyif mysql # DIV for integer division: 
query II rowsort label-427
SELECT ALL + + 59 AS col1, 89 DIV + 77 + 42 - - 68 * NULLIF ( + 36, 69 )
----
59
2491

skipif mysql # not compatible
query II rowsort label-427
SELECT ALL + + 59 AS col1, 89 / + 77 + 42 - - 68 * NULLIF ( + 36, 69 )
----
59
2491

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-429
SELECT + + COUNT( * ) AS col0, - 55 * SUM( DISTINCT + + 58 ) DIV + + 45
----
1
-70

skipif mysql # not compatible
query II rowsort label-429
SELECT + + COUNT ( * ) AS col0, - 55 * SUM ( DISTINCT + + 58 ) / + + 45
----
1
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-430
SELECT + + ( - ( - 2 ) ) * + 55 * 95 * CASE 26 WHEN 62 THEN + 18 WHEN - COUNT( DISTINCT - 33 ) THEN + 39 + - COALESCE ( - - NULLIF ( + + COUNT( * ), - + CASE - 21 WHEN + + 74 + - 83 - - 86 + - 30 / - - AVG ( + 78 ) / - 21 / + 98 THEN + 23 * - 58 ELSE - 95 * 46 END ), 80 ) * - 78 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-430
SELECT + + ( - ( - 2 ) ) * + 55 * 95 * CASE 26 WHEN 62 THEN + 18 WHEN - COUNT ( DISTINCT - 33 ) THEN + 39 + - COALESCE ( - - NULLIF ( + + COUNT ( * ), - + CASE - 21 WHEN + + 74 + - 83 - - 86 + - 30 / - - AVG ( + 78 ) / - 21 / + 98 THEN + 23 * - 58 ELSE - 95 * 46 END ), 80 ) * - 78 ELSE NULL END
----
NULL

query II rowsort
SELECT + 95 * 55 AS col2, 93 AS col0
----
5225
93

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

onlyif mysql # aggregate syntax: 
query I rowsort label-433
SELECT - + COALESCE ( + COUNT( * ), - - 4 ) + + + SUM( ALL + 40 )
----
39

skipif mysql # not compatible
query I rowsort label-433
SELECT - + COALESCE ( + COUNT ( * ), - - 4 ) + + + SUM ( ALL + 40 )
----
39

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

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

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

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

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

skipif mysql # not compatible
query I rowsort label-436
SELECT - 39 / COUNT ( * )
----
-39

onlyif mysql # DIV for integer division: 
query I rowsort label-437
SELECT DISTINCT 57 DIV + 74 + + 12 AS col2
----
12

skipif mysql # not compatible
query I rowsort label-437
SELECT DISTINCT 57 / + 74 + + 12 AS col2
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-438
SELECT - COALESCE ( COUNT( * ), - + COUNT( * ) + + - 51 ) * NULLIF ( + 19, - 84 ) - + 51 AS col1
----
-70

skipif mysql # not compatible
query I rowsort label-438
SELECT - COALESCE ( COUNT ( * ), - + COUNT ( * ) + + - 51 ) * NULLIF ( + 19, - 84 ) - + 51 AS col1
----
-70

onlyif mysql # DIV for integer division: 
query I rowsort label-439
SELECT DISTINCT 63 DIV + - 41 + 60 AS col1
----
59

skipif mysql # not compatible
query I rowsort label-439
SELECT DISTINCT 63 / + - 41 + 60 AS col1
----
59

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-440
SELECT ALL 75 * + - CAST( 62 AS SIGNED ) * - 0 DIV - 55 * - COUNT( * ) + - 38 + 63
----
25

skipif mysql # not compatible
query I rowsort label-440
SELECT ALL 75 * + - CAST ( 62 AS INTEGER ) * - 0 / - 55 * - COUNT ( * ) + - 38 + 63
----
25

query I rowsort
SELECT - 73 + - + 86
----
-159

onlyif mysql # aggregate syntax: 
query I rowsort label-442
SELECT COALESCE ( - MAX( DISTINCT 83 ), 82 )
----
-83

skipif mysql # not compatible
query I rowsort label-442
SELECT COALESCE ( - MAX ( DISTINCT 83 ), 82 )
----
-83

query I rowsort
SELECT NULLIF ( - ( + 18 ), 87 )
----
-18

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-444
SELECT CASE CAST( NULL AS SIGNED ) WHEN - 21 THEN + + NULLIF ( + - 32, + COUNT( * ) - - - SUM( DISTINCT 83 ) ) * MIN( ALL + 78 ) * + 76 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-444
SELECT CASE CAST ( NULL AS INTEGER ) WHEN - 21 THEN + + NULLIF ( + - 32, + COUNT ( * ) - - - SUM ( DISTINCT 83 ) ) * MIN ( ALL + 78 ) * + 76 ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-445
SELECT DISTINCT CAST( + 29 AS SIGNED ) * - 78 + + - 18 + + 31 AS col2
----
-2249

skipif mysql # not compatible
query I rowsort label-445
SELECT DISTINCT CAST ( + 29 AS INTEGER ) * - 78 + + - 18 + + 31 AS col2
----
-2249

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-446
SELECT DISTINCT 55 * - + 34 * + CAST( NULL AS DECIMAL ) + - + CAST( NULL AS SIGNED ) + + COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-446
SELECT DISTINCT 55 * - + 34 * + CAST ( NULL AS REAL ) + - + CAST ( NULL AS INTEGER ) + + COUNT ( * ) AS col2
----
NULL

query I rowsort
SELECT - 13 + 39
----
26

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-448
SELECT ALL - ( - 7 ) * + CAST( NULL AS DECIMAL ) * - - CASE - + 56 WHEN - + 80 THEN 5 ELSE NULL END - - + 57, + COUNT( * ) AS col2
----
NULL
1

skipif mysql # not compatible
query II rowsort label-448
SELECT ALL - ( - 7 ) * + CAST ( NULL AS REAL ) * - - CASE - + 56 WHEN - + 80 THEN 5 ELSE NULL END - - + 57, + COUNT ( * ) AS col2
----
NULL
1

onlyif mysql # aggregate syntax: 
query I rowsort label-449
SELECT COALESCE ( COUNT( * ), - - 7 ) * - - COUNT( * ) * - 36 * 96
----
-3456

skipif mysql # not compatible
query I rowsort label-449
SELECT COALESCE ( COUNT ( * ), - - 7 ) * - - COUNT ( * ) * - 36 * 96
----
-3456

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-450
SELECT ALL + COALESCE ( - 44, - COALESCE ( - ( ( - 47 ) ), CAST( - COUNT( + 87 ) AS SIGNED ) * - - 75 + + 23 ), - 64 * + + 19 + + COUNT( * ) + + + 33 + + SUM( - + 80 ) DIV 72, 27 + + 64 + - COALESCE ( - 46, - CAST( - COUNT( * ) AS SIGNED ) ) DIV 66 * + + 36 ) DIV 97 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-450
SELECT ALL + COALESCE ( - 44, - COALESCE ( - ( ( - 47 ) ), CAST ( - COUNT ( + 87 ) AS INTEGER ) * - - 75 + + 23 ), - 64 * + + 19 + + COUNT ( * ) + + + 33 + + SUM ( - + 80 ) / 72, 27 + + 64 + - COALESCE ( - 46, - CAST ( - COUNT ( * ) AS INTEGER ) ) / 66 * + + 36 ) / 97 AS col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-451
SELECT DISTINCT - MIN( DISTINCT + 49 ) * + CAST( - 88 AS SIGNED ) * - NULLIF ( ( - 1 ), 95 + + + NULLIF ( + 70, - 47 ) ) + + 35 AS col2
----
4347

skipif mysql # not compatible
query I rowsort label-451
SELECT DISTINCT - MIN ( DISTINCT + 49 ) * + CAST ( - 88 AS INTEGER ) * - NULLIF ( ( - 1 ), 95 + + + NULLIF ( + 70, - 47 ) ) + + 35 AS col2
----
4347

query I rowsort
SELECT ALL 80 - + 42
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-453
SELECT + 54 * - 55 * COUNT( * ) * + - ( - - 41 ) AS col2
----
121770

skipif mysql # not compatible
query I rowsort label-453
SELECT + 54 * - 55 * COUNT ( * ) * + - ( - - 41 ) AS col2
----
121770

query I rowsort
SELECT - 37 + - 23 AS col0
----
-60

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-455
SELECT DISTINCT - 19 * + CAST( NULL AS SIGNED ) AS col1, - COUNT( ALL + 47 ) DIV + + 61 AS col1
----
NULL
0

skipif mysql # not compatible
query II rowsort label-455
SELECT DISTINCT - 19 * + CAST ( NULL AS INTEGER ) AS col1, - COUNT ( ALL + 47 ) / + + 61 AS col1
----
NULL
0

onlyif mysql # aggregate syntax: 
query I rowsort label-456
SELECT ALL + MAX( ALL + 97 ) AS col0
----
97

skipif mysql # not compatible
query I rowsort label-456
SELECT ALL + MAX ( ALL + 97 ) AS col0
----
97

query I rowsort
SELECT - + COALESCE ( + 50, 2, - 23 )
----
-50

query I rowsort
SELECT ALL 4 col2
----
4

query I rowsort
SELECT - + 81
----
-81

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

query I rowsort
SELECT DISTINCT - 55 col1
----
-55

query II rowsort
SELECT + 56 - + + 35 AS col2, 84 + - + 99 * + 28
----
21
-2688

query I rowsort
SELECT DISTINCT + 12 * + ( 60 ) - - 77 * ( 90 ) col0
----
7650

onlyif mysql # aggregate syntax: 
query I rowsort label-464
SELECT DISTINCT + 43 + - - COUNT( * )
----
44

skipif mysql # not compatible
query I rowsort label-464
SELECT DISTINCT + 43 + - - COUNT ( * )
----
44

onlyif mysql # DIV for integer division: 
query I rowsort label-465
SELECT ALL 15 DIV - 25
----
0

skipif mysql # not compatible
query I rowsort label-465
SELECT ALL 15 / - 25
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-466
SELECT 76 DIV 89
----
0

skipif mysql # not compatible
query I rowsort label-466
SELECT 76 / 89
----
0

query I rowsort
SELECT DISTINCT - 75 + 54 + ( - + 72 ) * + 64 * 31
----
-142869

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-471
SELECT + CASE - 57 WHEN + 40 THEN NULL ELSE 58 END * 84 + + 55 + 9 * + + COUNT( * ) * - ( - ( 92 ) ) * ( + - 57 ) AS col0
----
-42269

skipif mysql # not compatible
query I rowsort label-471
SELECT + CASE - 57 WHEN + 40 THEN NULL ELSE 58 END * 84 + + 55 + 9 * + + COUNT ( * ) * - ( - ( 92 ) ) * ( + - 57 ) AS col0
----
-42269

query II rowsort
SELECT 5 AS col1, - ( + ( + + 72 ) ) AS col0
----
5
-72

query II rowsort
SELECT + 20 AS col0, - ( - 81 )
----
20
81

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-474
SELECT DISTINCT - COALESCE ( - 94, - 6 * + + COUNT( * ) * + - COUNT( * ) + 93 + + - 46 ) DIV - + 5 AS col2, + 58
----
-18
58

skipif mysql # not compatible
query II rowsort label-474
SELECT DISTINCT - COALESCE ( - 94, - 6 * + + COUNT ( * ) * + - COUNT ( * ) + 93 + + - 46 ) / - + 5 AS col2, + 58
----
-18
58

onlyif mysql # aggregate syntax: 
query II rowsort label-475
SELECT ALL - CASE + 16 WHEN + 35 * + COUNT( * ) * - 0 THEN - 60 + + 85 ELSE COUNT( * ) END AS col0, 69 * - - 76 * MAX( ALL - - ( 48 ) )
----
-1
251712

skipif mysql # not compatible
query II rowsort label-475
SELECT ALL - CASE + 16 WHEN + 35 * + COUNT ( * ) * - 0 THEN - 60 + + 85 ELSE COUNT ( * ) END AS col0, 69 * - - 76 * MAX ( ALL - - ( 48 ) )
----
-1
251712

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query III rowsort label-477
SELECT DISTINCT COUNT( * ) - - ( + COUNT( * ) ) AS col2, + 77 DIV 37 + + + 90, + CASE - - MAX( - ( - + 45 ) ) WHEN - 14 * + - CASE - ( + 12 ) WHEN - COALESCE ( - 33, + 62, + - 72 + + 76 ) * + 41 THEN - ( - SUM( ALL - ( + 56 ) ) ) * 89 END * + - 15 * + 74 THEN - 12 * 69 - CAST( 16 AS SIGNED ) WHEN + 83 THEN NULL ELSE NULL END * 53 AS col2
----
2
92
NULL

skipif mysql # not compatible
query III rowsort label-477
SELECT DISTINCT COUNT ( * ) - - ( + COUNT ( * ) ) AS col2, + 77 / 37 + + + 90, + CASE - - MAX ( - ( - + 45 ) ) WHEN - 14 * + - CASE - ( + 12 ) WHEN - COALESCE ( - 33, + 62, + - 72 + + 76 ) * + 41 THEN - ( - SUM ( ALL - ( + 56 ) ) ) * 89 END * + - 15 * + 74 THEN - 12 * 69 - CAST ( 16 AS INTEGER ) WHEN + 83 THEN NULL ELSE NULL END * 53 AS col2
----
2
92
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-478
SELECT - 45 * 24 + 57 / + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-478
SELECT - 45 * 24 + 57 / + CAST ( NULL AS INTEGER )
----
NULL

query II rowsort
SELECT 13 AS col0, 70
----
13
70

onlyif mysql # aggregate syntax: 
query I rowsort label-480
SELECT ALL - COUNT( DISTINCT + - 83 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-480
SELECT ALL - COUNT ( DISTINCT + - 83 ) AS col1
----
-1

query II rowsort
SELECT + 40, 0 AS col2
----
40
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-482
SELECT COUNT( * ) + - + MAX( - 54 ) DIV 90
----
1

skipif mysql # not compatible
query I rowsort label-482
SELECT COUNT ( * ) + - + MAX ( - 54 ) / 90
----
1

query I rowsort
SELECT 39 * + 64
----
2496

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-486
SELECT ALL 4, + ( + COUNT( - 7 ) ) AS col2
----
4
1

skipif mysql # not compatible
query II rowsort label-486
SELECT ALL 4, + ( + COUNT ( - 7 ) ) AS col2
----
4
1

query I rowsort
SELECT + 47 - - NULLIF ( 11, - 29 + + 83 + - 72 + 49 )
----
58

query I rowsort
SELECT - NULLIF ( - 17, + 10 + - 2 ) * 9
----
153

query I rowsort
SELECT ALL - 90 * 51
----
-4590

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-491
SELECT + CASE 55 WHEN + 3 THEN NULL WHEN + 21 * 42 THEN COUNT( ALL + + 98 ) END * + 45
----
NULL

skipif mysql # not compatible
query I rowsort label-491
SELECT + CASE 55 WHEN + 3 THEN NULL WHEN + 21 * 42 THEN COUNT ( ALL + + 98 ) END * + 45
----
NULL

query II rowsort
SELECT + 33 AS col1, 42
----
33
42

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-493
SELECT ALL + - CASE - 88 WHEN - 77 + - 69 THEN - 81 WHEN COUNT( * ) * - - 54 + - 65 - + 1 + + 68 + - 47 + + MAX( DISTINCT - 2 ) * - 43 * CAST( - + 59 AS SIGNED ) THEN + + 84 * + 14 ELSE NULL END + - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-493
SELECT ALL + - CASE - 88 WHEN - 77 + - 69 THEN - 81 WHEN COUNT ( * ) * - - 54 + - 65 - + 1 + + 68 + - 47 + + MAX ( DISTINCT - 2 ) * - 43 * CAST ( - + 59 AS INTEGER ) THEN + + 84 * + 14 ELSE NULL END + - COUNT ( * )
----
NULL

query I rowsort
SELECT 83 + - 73
----
10

query I rowsort
SELECT - 10 - + 49 + 62 * 84 * + 6
----
31189

query I rowsort
SELECT ALL - 74 * + 90 + + 25
----
-6635

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-498
SELECT - NULLIF ( 53, + MIN( + - 24 ) / - 39 * + 34 ) AS col1
----
-53

skipif mysql # not compatible
query I rowsort label-498
SELECT - NULLIF ( 53, + MIN ( + - 24 ) / - 39 * + 34 ) AS col1
----
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-499
SELECT DISTINCT - 83 + - 59 + + 53 * - - NULLIF ( + + 86, + COUNT( 22 ) * + ( + ( - 22 ) ) ) AS col2
----
4416

skipif mysql # not compatible
query I rowsort label-499
SELECT DISTINCT - 83 + - 59 + + 53 * - - NULLIF ( + + 86, + COUNT ( 22 ) * + ( + ( - 22 ) ) ) AS col2
----
4416

onlyif mysql # aggregate syntax: 
query II rowsort label-500
SELECT COUNT( 64 ) + + 98, + ( 99 )
----
99
99

skipif mysql # not compatible
query II rowsort label-500
SELECT COUNT ( 64 ) + + 98, + ( 99 )
----
99
99

query I rowsort
SELECT ALL - + 79 * - 34
----
2686

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-502
SELECT DISTINCT + - COUNT( * ) * - MIN( DISTINCT + 76 ) / - 2 * 0 / CAST( NULL AS SIGNED ) + - + 12
----
NULL

skipif mysql # not compatible
query I rowsort label-502
SELECT DISTINCT + - COUNT ( * ) * - MIN ( DISTINCT + 76 ) / - 2 * 0 / CAST ( NULL AS INTEGER ) + - + 12
----
NULL

query I rowsort
SELECT + 4 + + - 66 AS col1
----
-62

query I rowsort
SELECT ALL 97 col2
----
97

query II rowsort
SELECT DISTINCT + 16 * + 73 AS col2, 82 + + 75 + - 87 AS col2
----
1168
70

onlyif mysql # aggregate syntax: 
query I rowsort label-506
SELECT ALL + 62 + - 2 * + CASE 6 WHEN - 87 THEN - 75 END * - - 46 + - COUNT( - - 78 )
----
NULL

skipif mysql # not compatible
query I rowsort label-506
SELECT ALL + 62 + - 2 * + CASE 6 WHEN - 87 THEN - 75 END * - - 46 + - COUNT ( - - 78 )
----
NULL

query I rowsort
SELECT 5 * - - 50
----
250

onlyif mysql # aggregate syntax: 
query I rowsort label-508
SELECT SUM( ALL + 40 ) AS col2
----
40

skipif mysql # not compatible
query I rowsort label-508
SELECT SUM ( ALL + 40 ) AS col2
----
40

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-510
SELECT 24 + COUNT( DISTINCT + + 38 ) AS col1
----
25

skipif mysql # not compatible
query I rowsort label-510
SELECT 24 + COUNT ( DISTINCT + + 38 ) AS col1
----
25

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-511
SELECT 95 * 84, ( + + CAST( NULL AS SIGNED ) ) * + 48 AS col1
----
7980
NULL

skipif mysql # not compatible
query II rowsort label-511
SELECT 95 * 84, ( + + CAST ( NULL AS INTEGER ) ) * + 48 AS col1
----
7980
NULL

query I rowsort
SELECT ALL 32 * + + 4 AS col1
----
128

query I rowsort
SELECT ALL - 69 col0
----
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-514
SELECT MAX( 50 )
----
50

skipif mysql # not compatible
query I rowsort label-514
SELECT MAX ( 50 )
----
50

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-517
SELECT COUNT( + + 25 ) col2
----
1

skipif mysql # not compatible
query I rowsort label-517
SELECT COUNT ( + + 25 ) col2
----
1

query I rowsort
SELECT + 37 - + - 21
----
58

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-519
SELECT + 42 / - CAST( NULL AS SIGNED ) AS col1, - ( - 27 )
----
NULL
27

skipif mysql # not compatible
query II rowsort label-519
SELECT + 42 / - CAST ( NULL AS INTEGER ) AS col1, - ( - 27 )
----
NULL
27

query I rowsort
SELECT + 54 * - NULLIF ( - 52, + 21 ) AS col1
----
2808

query I rowsort
SELECT - 60 + 65 + + 28 + + 99 * + 27 AS col2
----
2706

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

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

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

skipif mysql # not compatible
query I rowsort label-523
SELECT COUNT ( 79 )
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-524
SELECT ALL + ( - - COUNT( * ) ) / CASE 68 WHEN + 30 + - 0 * + - COUNT( * ) - + 79 THEN NULL WHEN COUNT( * ) * + - 1 * - - 85 THEN + CAST( NULL AS SIGNED ) + + 78 + - CAST( NULL AS SIGNED ) END AS col1, - 17 + - 39 * 21 * + CAST( + ( + + 64 ) AS SIGNED ) * + ( + + 53 )
----
NULL
-2778065

skipif mysql # not compatible
query II rowsort label-524
SELECT ALL + ( - - COUNT ( * ) ) / CASE 68 WHEN + 30 + - 0 * + - COUNT ( * ) - + 79 THEN NULL WHEN COUNT ( * ) * + - 1 * - - 85 THEN + CAST ( NULL AS INTEGER ) + + 78 + - CAST ( NULL AS INTEGER ) END AS col1, - 17 + - 39 * 21 * + CAST ( + ( + + 64 ) AS INTEGER ) * + ( + + 53 )
----
NULL
-2778065

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-525
SELECT + + 25 + + CASE 20 WHEN 94 * + + 43 DIV COUNT( * ) THEN + - 84 * - 70 - + NULLIF ( - + 27, + 9 ) * - 60 + CASE + 84 WHEN 52 THEN + + NULLIF ( + - 79, - + COUNT( * ) * - + 85 + + 1 DIV + 74 * CAST( - CAST( + - NULLIF ( + 94, - 48 * SUM( DISTINCT - CAST( - - 70 AS SIGNED ) ) ) AS SIGNED ) AS SIGNED ) * ( - 57 - 57 ) + 14 ) DIV - 33 WHEN + 95 * 12 - + NULLIF ( 26, CAST( + 4 AS SIGNED ) ) THEN NULL END - - 13 * + 51 ELSE + 5 END + ( 94 + + 91 ) col2
----
215

skipif mysql # not compatible
query I rowsort label-525
SELECT + + 25 + + CASE 20 WHEN 94 * + + 43 / COUNT ( * ) THEN + - 84 * - 70 - + NULLIF ( - + 27, + 9 ) * - 60 + CASE + 84 WHEN 52 THEN + + NULLIF ( + - 79, - + COUNT ( * ) * - + 85 + + 1 / + 74 * CAST ( - CAST ( + - NULLIF ( + 94, - 48 * SUM ( DISTINCT - CAST ( - - 70 AS INTEGER ) ) ) AS INTEGER ) AS INTEGER ) * ( - 57 - 57 ) + 14 ) / - 33 WHEN + 95 * 12 - + NULLIF ( 26, CAST ( + 4 AS INTEGER ) ) THEN NULL END - - 13 * + 51 ELSE + 5 END + ( 94 + + 91 ) col2
----
215

onlyif mysql # aggregate syntax: 
query I rowsort label-526
SELECT + - COALESCE ( + - 46, + 20 * - NULLIF ( + - COUNT( * ), + 98 + - - 84 - 19 ) * + 76 ) AS col1
----
46

skipif mysql # not compatible
query I rowsort label-526
SELECT + - COALESCE ( + - 46, + 20 * - NULLIF ( + - COUNT ( * ), + 98 + - - 84 - 19 ) * + 76 ) AS col1
----
46

query I rowsort
SELECT DISTINCT 24 + + - 99
----
-75

query I rowsort
SELECT ALL - ( 73 ) * + 41
----
-2993

onlyif mysql # aggregate syntax: 
query I rowsort label-529
SELECT ALL COUNT( * ) + 55
----
56

skipif mysql # not compatible
query I rowsort label-529
SELECT ALL COUNT ( * ) + 55
----
56

query I rowsort
SELECT - 86 * + 11
----
-946

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-531
SELECT + 25 * - + CASE - - COUNT( * ) WHEN + AVG ( 3 ) THEN - COUNT( * ) WHEN + SUM( + 3 ) + - CAST( NULL AS DECIMAL ) THEN - - COALESCE ( - COUNT( * ), - 7 + - 74 + ( - COALESCE ( - COUNT( * ), - + 52 ) ) / - MIN( DISTINCT + 60 ) * + COUNT( * ) + ( + 81 ) ) WHEN + - 25 THEN - 0 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-531
SELECT + 25 * - + CASE - - COUNT ( * ) WHEN + AVG ( 3 ) THEN - COUNT ( * ) WHEN + SUM ( + 3 ) + - CAST ( NULL AS REAL ) THEN - - COALESCE ( - COUNT ( * ), - 7 + - 74 + ( - COALESCE ( - COUNT ( * ), - + 52 ) ) / - MIN ( DISTINCT + 60 ) * + COUNT ( * ) + ( + 81 ) ) WHEN + - 25 THEN - 0 END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-532
SELECT ALL - - NULLIF ( - 34, + 39 * - 75 + + COUNT( * ) * - + AVG ( NULLIF ( + 39, - 41 ) ) * - - COUNT( * ) ) * - + 12 * - 9 + 78 - + 40 AS col1, 74 * - 36
----
-3634
-2664

skipif mysql # not compatible
query II rowsort label-532
SELECT ALL - - NULLIF ( - 34, + 39 * - 75 + + COUNT ( * ) * - + AVG ( NULLIF ( + 39, - 41 ) ) * - - COUNT ( * ) ) * - + 12 * - 9 + 78 - + 40 AS col1, 74 * - 36
----
-3634
-2664

query I rowsort
SELECT ALL + + 56 + 53
----
109

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-534
SELECT - + 9 + - MIN( DISTINCT - - CAST( + 71 AS SIGNED ) ) AS col1
----
-80

skipif mysql # not compatible
query I rowsort label-534
SELECT - + 9 + - MIN ( DISTINCT - - CAST ( + 71 AS INTEGER ) ) AS col1
----
-80

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-535
SELECT DISTINCT + 87 + - CAST( + + 51 AS SIGNED ) col2
----
36

skipif mysql # not compatible
query I rowsort label-535
SELECT DISTINCT + 87 + - CAST ( + + 51 AS INTEGER ) col2
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-536
SELECT - CASE + COUNT( * ) WHEN + 62 THEN 21 END
----
NULL

skipif mysql # not compatible
query I rowsort label-536
SELECT - CASE + COUNT ( * ) WHEN + 62 THEN 21 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-537
SELECT - - CASE 24 WHEN + 81 + 25 THEN COUNT( 13 ) WHEN + 7 + - + 8 THEN - COUNT( * ) ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-537
SELECT - - CASE 24 WHEN + 81 + 25 THEN COUNT ( 13 ) WHEN + 7 + - + 8 THEN - COUNT ( * ) ELSE NULL END AS col1
----
NULL

query I rowsort
SELECT ALL + 54 + - ( + ( + 99 ) ) AS col2
----
-45

query I rowsort
SELECT DISTINCT + + 14 + + 66 col1
----
80

onlyif mysql # DIV for integer division: 
query II rowsort label-540
SELECT ALL - + 43 DIV 47 * + 39 + - 55, - 39 AS col1
----
-55
-39

skipif mysql # not compatible
query II rowsort label-540
SELECT ALL - + 43 / 47 * + 39 + - 55, - 39 AS col1
----
-55
-39

query I rowsort
SELECT - 96 col1
----
-96

query I rowsort
SELECT DISTINCT NULLIF ( + - 31, 85 + - + 19 + + + 57 + + - 21 ) AS col0
----
-31

onlyif mysql # aggregate syntax: 
query II rowsort label-543
SELECT - MAX( 92 ) - 55, + 85 + + ( ( + ( - 87 ) ) ) AS col1
----
-147
-2

skipif mysql # not compatible
query II rowsort label-543
SELECT - MAX ( 92 ) - 55, + 85 + + ( ( + ( - 87 ) ) ) AS col1
----
-147
-2

query I rowsort
SELECT - 56 * + + 4 AS col1
----
-224

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-545
SELECT ALL + 57 DIV - COALESCE ( 8, COALESCE ( - 3, - 82, - - 71 - + - 21 * + - CAST( NULL AS SIGNED ) ) )
----
-7

skipif mysql # not compatible
query I rowsort label-545
SELECT ALL + 57 / - COALESCE ( 8, COALESCE ( - 3, - 82, - - 71 - + - 21 * + - CAST ( NULL AS INTEGER ) ) )
----
-7

query I rowsort
SELECT 14 col0
----
14

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-547
SELECT - ( - ( - MAX( ALL - 68 ) ) ) DIV 35 col2, - 62 * - + COUNT( + - 59 ) AS col2
----
1
62

skipif mysql # not compatible
query II rowsort label-547
SELECT - ( - ( - MAX ( ALL - 68 ) ) ) / 35 col2, - 62 * - + COUNT ( + - 59 ) AS col2
----
1
62

query I rowsort
SELECT ALL + 58 * + 64 AS col2
----
3712

query I rowsort
SELECT ALL + 69 col1
----
69

query I rowsort
SELECT 31 * + - 29 * 34 - - 78
----
-30488

query I rowsort
SELECT DISTINCT + 40 * + 45
----
1800

query I rowsort
SELECT DISTINCT - 85 * - 84 * 65
----
464100

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-555
SELECT DISTINCT + CAST( - 60 AS SIGNED ) AS col1
----
-60

skipif mysql # not compatible
query I rowsort label-555
SELECT DISTINCT + CAST ( - 60 AS INTEGER ) AS col1
----
-60

query I rowsort
SELECT ( - 40 ) col2
----
-40

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-557
SELECT ALL + 75, - 56 * + - CAST( NULL AS SIGNED ) col0
----
75
NULL

skipif mysql # not compatible
query II rowsort label-557
SELECT ALL + 75, - 56 * + - CAST ( NULL AS INTEGER ) col0
----
75
NULL

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

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

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

query I rowsort
SELECT - 30 * + - 11 AS col1
----
330

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-562
SELECT ALL COUNT( * ) * ( 19 )
----
19

skipif mysql # not compatible
query I rowsort label-562
SELECT ALL COUNT ( * ) * ( 19 )
----
19

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

query I rowsort
SELECT DISTINCT - NULLIF ( + 20, - + 12 ) * - 67 * - 54
----
-72360

onlyif mysql # DIV for integer division: 
query I rowsort label-565
SELECT ALL - 90 DIV + 78
----
-1

skipif mysql # not compatible
query I rowsort label-565
SELECT ALL - 90 / + 78
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-566
SELECT ALL - ( + COUNT( * ) ) * ( - 67 ) + + 62
----
129

skipif mysql # not compatible
query I rowsort label-566
SELECT ALL - ( + COUNT ( * ) ) * ( - 67 ) + + 62
----
129

query II rowsort
SELECT ALL + 43 AS col2, - 10 * - 37
----
43
370

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

onlyif mysql # aggregate syntax: 
query I rowsort label-569
SELECT DISTINCT - 21 * - - 58 + 9 + - 51 * - 63 + 36 + - COUNT( - - 47 ) AS col1
----
2039

skipif mysql # not compatible
query I rowsort label-569
SELECT DISTINCT - 21 * - - 58 + 9 + - 51 * - 63 + 36 + - COUNT ( - - 47 ) AS col1
----
2039

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

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

query I rowsort
SELECT + + COALESCE ( + 56, + 15 + - - 59 + - 49 * - 91 * + 75 ) * + - 46
----
-2576

onlyif mysql # aggregate syntax: 
query I rowsort label-572
SELECT MAX( ALL - - 64 )
----
64

skipif mysql # not compatible
query I rowsort label-572
SELECT MAX ( ALL - - 64 )
----
64

query I rowsort
SELECT - NULLIF ( - + 25, ( + 94 ) ) AS col1
----
25

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

skipif mysql # not compatible
query I rowsort label-574
SELECT DISTINCT - SUM ( 92 )
----
-92

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-575
SELECT ALL + 63 * ( - 2 ) + + 48 + CAST( 33 AS SIGNED ) * - 68 * 90 AS col2
----
-202038

skipif mysql # not compatible
query I rowsort label-575
SELECT ALL + 63 * ( - 2 ) + + 48 + CAST ( 33 AS INTEGER ) * - 68 * 90 AS col2
----
-202038

onlyif mysql # aggregate syntax: 
query I rowsort label-576
SELECT + 45 - + CASE 19 WHEN 27 + + MIN( DISTINCT 56 ) THEN NULL WHEN 18 THEN SUM( DISTINCT + 38 ) * + 27 - - 76 ELSE NULL END + + + 14 / 96 * + 89 + + + 41 - 68 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-576
SELECT + 45 - + CASE 19 WHEN 27 + + MIN ( DISTINCT 56 ) THEN NULL WHEN 18 THEN SUM ( DISTINCT + 38 ) * + 27 - - 76 ELSE NULL END + + + 14 / 96 * + 89 + + + 41 - 68 AS col1
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-578
SELECT ALL - NULLIF ( - 52, - + 78 * - COUNT( * ) ) col0
----
52

skipif mysql # not compatible
query I rowsort label-578
SELECT ALL - NULLIF ( - 52, - + 78 * - COUNT ( * ) ) col0
----
52

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-579
SELECT + COALESCE ( - 81, - - 35 * + CAST( 13 AS SIGNED ) ) * - 83 + 39 + + 85 + 43 * SUM( ALL 5 ) + - 20 - + + 21 * + 36 + - 41 DIV + MIN( ALL + 59 ) AS col1
----
6286

skipif mysql # not compatible
query I rowsort label-579
SELECT + COALESCE ( - 81, - - 35 * + CAST ( 13 AS INTEGER ) ) * - 83 + 39 + + 85 + 43 * SUM ( ALL 5 ) + - 20 - + + 21 * + 36 + - 41 / + MIN ( ALL + 59 ) AS col1
----
6286

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

skipif mysql # not compatible
query I rowsort label-580
SELECT DISTINCT SUM ( DISTINCT - 40 )
----
-40

query I rowsort
SELECT + 72 + - + 35
----
37

query II rowsort
SELECT ALL - - 41 * 84 * 1 AS col1, + 87 + 54 * + 74 AS col2
----
3444
4083

query I rowsort
SELECT - - 81 AS col2
----
81

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

query I rowsort
SELECT + - 42 + - 10 + 77 AS col0
----
25

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

query I rowsort
SELECT ALL - 71 * + - 69 * + 13 AS col2
----
63687

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-588
SELECT - 33 - COUNT( * ) DIV - 63 + 36 AS col2
----
3

skipif mysql # not compatible
query I rowsort label-588
SELECT - 33 - COUNT ( * ) / - 63 + 36 AS col2
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-589
SELECT + NULLIF ( COUNT( * ), CAST( ( + 48 ) AS SIGNED ) ) * + + 82 + + 79 col2
----
161

skipif mysql # not compatible
query I rowsort label-589
SELECT + NULLIF ( COUNT ( * ), CAST ( ( + 48 ) AS INTEGER ) ) * + + 82 + + 79 col2
----
161

onlyif mysql # aggregate syntax: 
query I rowsort label-590
SELECT DISTINCT + MAX( 45 ) * + 22
----
990

skipif mysql # not compatible
query I rowsort label-590
SELECT DISTINCT + MAX ( 45 ) * + 22
----
990

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

query II rowsort
SELECT - 5 AS col0, 27 AS col1
----
-5
27

query I rowsort
SELECT ALL 85 * + + 50 AS col0
----
4250

query I rowsort
SELECT - 97 + - 87 - 8 AS col0
----
-192

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-596
SELECT - 14 * + 56 DIV + MIN( DISTINCT - 2 )
----
392

skipif mysql # not compatible
query I rowsort label-596
SELECT - 14 * + 56 / + MIN ( DISTINCT - 2 )
----
392

query II rowsort
SELECT ALL 15 col1, 71 AS col0
----
15
71

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-598
SELECT ALL - CASE + 89 WHEN COUNT( * ) + - + AVG ( DISTINCT - - 83 ) - + ( + 19 ) THEN NULL ELSE + + COUNT( * ) * CAST( NULL AS SIGNED ) END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-598
SELECT ALL - CASE + 89 WHEN COUNT ( * ) + - + AVG ( DISTINCT - - 83 ) - + ( + 19 ) THEN NULL ELSE + + COUNT ( * ) * CAST ( NULL AS INTEGER ) END col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-599
SELECT - CAST( - 30 AS SIGNED ) * + 23 + - + 62 + + 1
----
629

skipif mysql # not compatible
query I rowsort label-599
SELECT - CAST ( - 30 AS INTEGER ) * + 23 + - + 62 + + 1
----
629

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-602
SELECT 27 / 14 * - 67 + - 47 + - COUNT( * ) * + MAX( ALL + + CAST( NULL AS SIGNED ) ) - 6 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-602
SELECT 27 / 14 * - 67 + - 47 + - COUNT ( * ) * + MAX ( ALL + + CAST ( NULL AS INTEGER ) ) - 6 AS col1
----
NULL

query I rowsort
SELECT DISTINCT - 81 AS col1
----
-81

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-604
SELECT 20 DIV 6 DIV - 43 * COUNT( * ) * COUNT( + 68 ), + 99 AS col0
----
0
99

skipif mysql # not compatible
query II rowsort label-604
SELECT 20 / 6 / - 43 * COUNT ( * ) * COUNT ( + 68 ), + 99 AS col0
----
0
99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-605
SELECT ALL + MAX( - 76 ) + - CAST( 21 AS SIGNED )
----
-97

skipif mysql # not compatible
query I rowsort label-605
SELECT ALL + MAX ( - 76 ) + - CAST ( 21 AS INTEGER )
----
-97

query I rowsort
SELECT ALL - 36 * - 57
----
2052

query II rowsort
SELECT + 91, 72 AS col1
----
91
72

query II rowsort
SELECT ALL - 10 AS col0, + 99
----
-10
99

query I rowsort
SELECT - 57 * + 74 + + 57
----
-4161

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-610
SELECT ALL + 91 + + + CAST( + - 81 AS SIGNED )
----
10

skipif mysql # not compatible
query I rowsort label-610
SELECT ALL + 91 + + + CAST ( + - 81 AS INTEGER )
----
10

onlyif mysql # aggregate syntax: 
query II rowsort label-611
SELECT + MIN( CASE + 94 WHEN - 28 THEN NULL ELSE + ( + 47 ) * - 78 END ) AS col1, + COUNT( * )
----
-3666
1

skipif mysql # not compatible
query II rowsort label-611
SELECT + MIN ( CASE + 94 WHEN - 28 THEN NULL ELSE + ( + 47 ) * - 78 END ) AS col1, + COUNT ( * )
----
-3666
1

query II rowsort
SELECT + 17, + ( - 59 ) AS col0
----
17
-59

query II rowsort
SELECT ALL - + 24 col2, ( - 58 ) - - ( + - 44 )
----
-24
-102

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-614
SELECT CAST( NULL AS SIGNED ) * + + 93 - + 44 * 44 + + 67 + MIN( 87 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-614
SELECT CAST ( NULL AS INTEGER ) * + + 93 - + 44 * 44 + + 67 + MIN ( 87 ) AS col0
----
NULL

query I rowsort
SELECT - 63 + + 36
----
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-616
SELECT + MIN( DISTINCT + ( + 17 ) ) col1
----
17

skipif mysql # not compatible
query I rowsort label-616
SELECT + MIN ( DISTINCT + ( + 17 ) ) col1
----
17

query I rowsort
SELECT ALL - ( + + 79 ) AS col1
----
-79

query I rowsort
SELECT DISTINCT - - 14 + - + 65 AS col1
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-619
SELECT ALL 46 + 93 + - CASE 3 WHEN + ( - 56 ) THEN NULL WHEN 34 + COUNT( * ) + - 80 * - - COUNT( DISTINCT - - 87 ) * + ( 20 ) * + - 17 THEN - 57 END
----
NULL

skipif mysql # not compatible
query I rowsort label-619
SELECT ALL 46 + 93 + - CASE 3 WHEN + ( - 56 ) THEN NULL WHEN 34 + COUNT ( * ) + - 80 * - - COUNT ( DISTINCT - - 87 ) * + ( 20 ) * + - 17 THEN - 57 END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-620
SELECT - CAST( 19 AS SIGNED ) * - 70 + 24
----
1354

skipif mysql # not compatible
query I rowsort label-620
SELECT - CAST ( 19 AS INTEGER ) * - 70 + 24
----
1354

query I rowsort
SELECT ALL - - 72 - 27 + + ( - 53 ) col2
----
-8

query I rowsort
SELECT ALL + 68 * 40 AS col1
----
2720

query I rowsort
SELECT ALL - 46 - 90 col1
----
-136

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-624
SELECT + CASE ( + - 18 ) WHEN 98 THEN NULL WHEN + 79 THEN NULL ELSE + - ( + 53 ) DIV - - 87 + + - 56 + + 86 END * + - COUNT( ALL + - 95 ) AS col0
----
-30

skipif mysql # not compatible
query I rowsort label-624
SELECT + CASE ( + - 18 ) WHEN 98 THEN NULL WHEN + 79 THEN NULL ELSE + - ( + 53 ) / - - 87 + + - 56 + + 86 END * + - COUNT ( ALL + - 95 ) AS col0
----
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-625
SELECT DISTINCT 49 * SUM( - 30 ) * 16 AS col1
----
-23520

skipif mysql # not compatible
query I rowsort label-625
SELECT DISTINCT 49 * SUM ( - 30 ) * 16 AS col1
----
-23520

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-626
SELECT 27 + MAX( + 69 ) - MIN( + - 22 ) * - COALESCE ( - + 33, SUM( - 32 ) ) + 37 * - COALESCE ( - 98, - - COUNT( * ) ) + + 78 DIV + COUNT( ALL 53 )
----
4526

skipif mysql # not compatible
query I rowsort label-626
SELECT 27 + MAX ( + 69 ) - MIN ( + - 22 ) * - COALESCE ( - + 33, SUM ( - 32 ) ) + 37 * - COALESCE ( - 98, - - COUNT ( * ) ) + + 78 / + COUNT ( ALL 53 )
----
4526

query I rowsort
SELECT + 97 * - 41 col1
----
-3977

onlyif mysql # aggregate syntax: 
query I rowsort label-628
SELECT NULLIF ( - 79, - COUNT( * ) ) + 33
----
-46

skipif mysql # not compatible
query I rowsort label-628
SELECT NULLIF ( - 79, - COUNT ( * ) ) + 33
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-629
SELECT MAX( - + 93 ) * + + 34 * + - 89
----
281418

skipif mysql # not compatible
query I rowsort label-629
SELECT MAX ( - + 93 ) * + + 34 * + - 89
----
281418

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-630
SELECT ALL 9 * + - MIN( DISTINCT - 22 ), + 73 DIV - ( - 93 ) * - COUNT( * ) * - 26 + + 62 AS col2
----
198
62

skipif mysql # not compatible
query II rowsort label-630
SELECT ALL 9 * + - MIN ( DISTINCT - 22 ), + 73 / - ( - 93 ) * - COUNT ( * ) * - 26 + + 62 AS col2
----
198
62

onlyif mysql # DIV for integer division: 
query I rowsort label-631
SELECT DISTINCT 20 DIV ( + 28 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-631
SELECT DISTINCT 20 / ( + 28 ) AS col0
----
0

query I rowsort
SELECT ALL 59 col2
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-633
SELECT DISTINCT 38 / 11 * + - CASE 0 WHEN - COUNT( * ) / - 57 + 23 THEN - - 53 ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-633
SELECT DISTINCT 38 / 11 * + - CASE 0 WHEN - COUNT ( * ) / - 57 + 23 THEN - - 53 ELSE NULL END AS col0
----
NULL

query I rowsort
SELECT ALL 16 col0
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-635
SELECT NULLIF ( - 82, - MAX( - 83 ) ) - - ( COUNT( * ) ) AS col0
----
-81

skipif mysql # not compatible
query I rowsort label-635
SELECT NULLIF ( - 82, - MAX ( - 83 ) ) - - ( COUNT ( * ) ) AS col0
----
-81

query I rowsort
SELECT 14 + - + 68 AS col2
----
-54

query I rowsort
SELECT 55 + - - 31 * 87 AS col2
----
2752

query I rowsort
SELECT 59 * - 57 AS col0
----
-3363

query I rowsort
SELECT ALL + 5 + - 83
----
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-640
SELECT ALL NULLIF ( 20, + + 65 * + - 44 * ( - 57 ) / - ( 50 ) - 39 + - ( 90 ) ) * + 83 + - MIN( ALL 1 ) AS col0
----
1659

skipif mysql # not compatible
query I rowsort label-640
SELECT ALL NULLIF ( 20, + + 65 * + - 44 * ( - 57 ) / - ( 50 ) - 39 + - ( 90 ) ) * + 83 + - MIN ( ALL 1 ) AS col0
----
1659

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-641
SELECT DISTINCT 72 + - CAST( + 43 AS DECIMAL ) + - - 25 + ( - 57 ) + 90 + + ( COALESCE ( - 61, - 79, 59 ) ) * 58 * CAST( NULL AS SIGNED ) * - 49 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-641
SELECT DISTINCT 72 + - CAST ( + 43 AS REAL ) + - - 25 + ( - 57 ) + 90 + + ( COALESCE ( - 61, - 79, 59 ) ) * 58 * CAST ( NULL AS INTEGER ) * - 49 AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-642
SELECT DISTINCT ( - - CASE + 39 WHEN 68 / CAST( + - COALESCE ( - SUM( DISTINCT - - 59 ), 92 + + + 88 + - 8 * - + 4 + + 30 * - 73, - COUNT( * ) / + 53 * CASE + - 32 WHEN 57 THEN NULL WHEN - 35 / - - 6 * - 89 - + 57 - - 29 * - + 40 THEN + COUNT( DISTINCT + 4 ) END * + - 29 * - 93, + + 39 + - 79 ) AS SIGNED ) THEN - CAST( - 78 AS SIGNED ) ELSE 67 END ) + 61
----
128

skipif mysql # not compatible
query I rowsort label-642
SELECT DISTINCT ( - - CASE + 39 WHEN 68 / CAST ( + - COALESCE ( - SUM ( DISTINCT - - 59 ), 92 + + + 88 + - 8 * - + 4 + + 30 * - 73, - COUNT ( * ) / + 53 * CASE + - 32 WHEN 57 THEN NULL WHEN - 35 / - - 6 * - 89 - + 57 - - 29 * - + 40 THEN + COUNT ( DISTINCT + 4 ) END * + - 29 * - 93, + + 39 + - 79 ) AS INTEGER ) THEN - CAST ( - 78 AS INTEGER ) ELSE 67 END ) + 61
----
128

onlyif mysql # DIV for integer division: 
query I rowsort label-643
SELECT - 53 DIV + 86 * - + 44 - 66 + + + 71 AS col2
----
5

skipif mysql # not compatible
query I rowsort label-643
SELECT - 53 / + 86 * - + 44 - 66 + + + 71 AS col2
----
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-644
SELECT ALL CAST( - 85 AS SIGNED ) + 9
----
-76

skipif mysql # not compatible
query I rowsort label-644
SELECT ALL CAST ( - 85 AS INTEGER ) + 9
----
-76

query I rowsort
SELECT DISTINCT + 60 + - 58 + - 28
----
-26

query I rowsort
SELECT COALESCE ( + 66, - 90 * - 23, + + 1 ) + 88 col2
----
154

query II rowsort
SELECT + + ( 16 ) AS col1, + 30 + + 24 * - - 60 + + + 38 AS col1
----
16
1508

onlyif mysql # aggregate syntax: 
query I rowsort label-648
SELECT ( - COUNT( * ) ) * + + 22 * - 96 + 98 col0
----
2210

skipif mysql # not compatible
query I rowsort label-648
SELECT ( - COUNT ( * ) ) * + + 22 * - 96 + 98 col0
----
2210

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-649
SELECT 16 * - ( + MAX( - 28 ) ) + 8 + - CAST( 70 AS SIGNED ) - 14
----
372

skipif mysql # not compatible
query I rowsort label-649
SELECT 16 * - ( + MAX ( - 28 ) ) + 8 + - CAST ( 70 AS INTEGER ) - 14
----
372

onlyif mysql # aggregate syntax: 
query I rowsort label-650
SELECT DISTINCT - CASE + + 72 WHEN SUM( DISTINCT - + 16 ) THEN NULL WHEN + 42 + 40 + - ( - 89 ) * + 51 + + 0 THEN - + 89 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-650
SELECT DISTINCT - CASE + + 72 WHEN SUM ( DISTINCT - + 16 ) THEN NULL WHEN + 42 + 40 + - ( - 89 ) * + 51 + + 0 THEN - + 89 END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-651
SELECT ALL - 58 - + + MIN( - 74 ) AS col0
----
16

skipif mysql # not compatible
query I rowsort label-651
SELECT ALL - 58 - + + MIN ( - 74 ) AS col0
----
16

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

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

query I rowsort
SELECT DISTINCT - 54 col2
----
-54

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-656
SELECT ALL + 55 * - 76 AS col1, - 85 + + 30 + SUM( - 75 ) + + 50 + - - 27 DIV - 1 + + - 53 * - 47 * - 98 - + + 1 DIV - 63 * SUM( - 37 ) DIV - ( - 3 ) + + + 34
----
-4180
-244191

skipif mysql # not compatible
query II rowsort label-656
SELECT ALL + 55 * - 76 AS col1, - 85 + + 30 + SUM ( - 75 ) + + 50 + - - 27 / - 1 + + - 53 * - 47 * - 98 - + + 1 / - 63 * SUM ( - 37 ) / - ( - 3 ) + + + 34
----
-4180
-244191

query I rowsort
SELECT ALL - - 70 * + + ( + - 98 )
----
-6860

query II rowsort
SELECT 52 + 26 AS col2, + 97 AS col1
----
78
97

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-660
SELECT + ( 14 ) - + CAST( 21 AS SIGNED ) - + 35 DIV 51 DIV + 51 AS col2
----
-7

skipif mysql # not compatible
query I rowsort label-660
SELECT + ( 14 ) - + CAST ( 21 AS INTEGER ) - + 35 / 51 / + 51 AS col2
----
-7

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

skipif mysql # not compatible
query I rowsort label-661
SELECT DISTINCT MAX ( 40 )
----
40

query I rowsort
SELECT ALL 68 * + 46
----
3128

onlyif mysql # aggregate syntax: 
query I rowsort label-663
SELECT + 74 + + 75 + - ( - 9 ) + 99 * - + COUNT( * ) * - - SUM( DISTINCT + 60 ) * + 71 / - CASE + 70 WHEN - - 87 THEN NULL WHEN - 2 * 85 + 57 THEN - 28 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-663
SELECT + 74 + + 75 + - ( - 9 ) + 99 * - + COUNT ( * ) * - - SUM ( DISTINCT + 60 ) * + 71 / - CASE + 70 WHEN - - 87 THEN NULL WHEN - 2 * 85 + 57 THEN - 28 ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-664
SELECT DISTINCT - NULLIF ( CASE 27 WHEN + COUNT( - + CAST( NULL AS SIGNED ) ) / - COUNT( * ) THEN NULL WHEN + - 86 * 0 THEN - 44 ELSE NULL END, + COUNT( * ) ) * + 57 * - - 50 * ( - + 45 ) + 93 - 97 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-664
SELECT DISTINCT - NULLIF ( CASE 27 WHEN + COUNT ( - + CAST ( NULL AS INTEGER ) ) / - COUNT ( * ) THEN NULL WHEN + - 86 * 0 THEN - 44 ELSE NULL END, + COUNT ( * ) ) * + 57 * - - 50 * ( - + 45 ) + 93 - 97 AS col2
----
NULL

query I rowsort
SELECT ALL 32 + - ( 77 )
----
-45

query I rowsort
SELECT - 38 + NULLIF ( + + 17, ( - + 52 ) )
----
-21

query I rowsort
SELECT + 44 - + 19
----
25

onlyif mysql # aggregate syntax: 
query II rowsort label-668
SELECT - 14 + + + ( - COUNT( * ) ) AS col0, 69 + - 59
----
-15
10

skipif mysql # not compatible
query II rowsort label-668
SELECT - 14 + + + ( - COUNT ( * ) ) AS col0, 69 + - 59
----
-15
10

onlyif mysql # aggregate syntax: 
query I rowsort label-669
SELECT + COUNT( * ) + - - 12
----
13

skipif mysql # not compatible
query I rowsort label-669
SELECT + COUNT ( * ) + - - 12
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-670
SELECT ALL ( - + COUNT( * ) ) + + - 76 + + 35 * 92 + + - 32 + - 2 - + 59 * + 25 + - - 59 * + 2 - + 90
----
1662

skipif mysql # not compatible
query I rowsort label-670
SELECT ALL ( - + COUNT ( * ) ) + + - 76 + + 35 * 92 + + - 32 + - 2 - + 59 * + 25 + - - 59 * + 2 - + 90
----
1662

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-672
SELECT - CASE ( + CAST( - + 9 AS SIGNED ) ) WHEN + - 21 THEN + 80 END
----
NULL

skipif mysql # not compatible
query I rowsort label-672
SELECT - CASE ( + CAST ( - + 9 AS INTEGER ) ) WHEN + - 21 THEN + 80 END
----
NULL

query I rowsort
SELECT + 96 + + 24 col2
----
120

query I rowsort
SELECT + 8 + + 24 + 12
----
44

onlyif mysql # DIV for integer division: 
query I rowsort label-675
SELECT ALL 19 DIV + - 28
----
0

skipif mysql # not compatible
query I rowsort label-675
SELECT ALL 19 / + - 28
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-676
SELECT DISTINCT 31 + - COUNT( * ) AS col1
----
30

skipif mysql # not compatible
query I rowsort label-676
SELECT DISTINCT 31 + - COUNT ( * ) AS col1
----
30

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-677
SELECT - CASE + + COUNT( * ) WHEN + COUNT( + 49 ) THEN - 11 * - COUNT( * ) * 45 + - 54 DIV 28 WHEN + 15 THEN NULL END
----
-494

skipif mysql # not compatible
query I rowsort label-677
SELECT - CASE + + COUNT ( * ) WHEN + COUNT ( + 49 ) THEN - 11 * - COUNT ( * ) * 45 + - 54 / 28 WHEN + 15 THEN NULL END
----
-494

query I rowsort
SELECT + 60 + NULLIF ( - + 12, - 38 ) col1
----
48

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

skipif mysql # not compatible
query I rowsort label-679
SELECT - MAX ( + 16 )
----
-16

query II rowsort
SELECT ALL + 0 AS col1, + 0
----
0
0

query II rowsort
SELECT + NULLIF ( + 48, + 35 / - 65 ), 62 AS col2
----
48
62

query I rowsort
SELECT DISTINCT - 8 * + + CASE 25 WHEN + + 77 THEN NULL ELSE + 46 END - + 17
----
-385

onlyif mysql # aggregate syntax: 
query I rowsort label-683
SELECT ALL COUNT( * ) * - - 61
----
61

skipif mysql # not compatible
query I rowsort label-683
SELECT ALL COUNT ( * ) * - - 61
----
61

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-684
SELECT - 52, CAST( + - CAST( - 36 AS SIGNED ) AS SIGNED ) * + ( - - 13 ) + - + 28 AS col2
----
-52
440

skipif mysql # not compatible
query II rowsort label-684
SELECT - 52, CAST ( + - CAST ( - 36 AS INTEGER ) AS INTEGER ) * + ( - - 13 ) + - + 28 AS col2
----
-52
440

onlyif mysql # aggregate syntax: 
query II rowsort label-685
SELECT ALL + 51, COUNT( * ) + - 51 AS col0
----
51
-50

skipif mysql # not compatible
query II rowsort label-685
SELECT ALL + 51, COUNT ( * ) + - 51 AS col0
----
51
-50

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-686
SELECT + - ( 72 ) * COALESCE ( - 20, + CAST( NULLIF ( - ( - 94 ), COALESCE ( COUNT( * ), - 68 * - 70 * - 10, - + ( - 62 ) ) ) AS SIGNED ), 69 ) + - + 96
----
1344

skipif mysql # not compatible
query I rowsort label-686
SELECT + - ( 72 ) * COALESCE ( - 20, + CAST ( NULLIF ( - ( - 94 ), COALESCE ( COUNT ( * ), - 68 * - 70 * - 10, - + ( - 62 ) ) ) AS INTEGER ), 69 ) + - + 96
----
1344

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-687
SELECT ALL + NULLIF ( + 32, - CAST( 88 AS SIGNED ) ) * 44
----
1408

skipif mysql # not compatible
query I rowsort label-687
SELECT ALL + NULLIF ( + 32, - CAST ( 88 AS INTEGER ) ) * 44
----
1408

onlyif mysql # DIV for integer division: 
query I rowsort label-688
SELECT - 1 DIV 38 + 98
----
98

skipif mysql # not compatible
query I rowsort label-688
SELECT - 1 / 38 + 98
----
98

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

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

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

query II rowsort
SELECT + - 20 AS col2, 18 * - 1 AS col1
----
-20
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-692
SELECT - - COUNT( * ) + ( 38 ) AS col1
----
39

skipif mysql # not compatible
query I rowsort label-692
SELECT - - COUNT ( * ) + ( 38 ) AS col1
----
39

onlyif mysql # DIV for integer division: 
query I rowsort label-693
SELECT DISTINCT - 18 DIV + NULLIF ( + - 47, + - 76 )
----
0

skipif mysql # not compatible
query I rowsort label-693
SELECT DISTINCT - 18 / + NULLIF ( + - 47, + - 76 )
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-694
SELECT - 59 AS col0, - 94 + - 75 + + 41 * + COUNT( * ) AS col1
----
-59
-128

skipif mysql # not compatible
query II rowsort label-694
SELECT - 59 AS col0, - 94 + - 75 + + 41 * + COUNT ( * ) AS col1
----
-59
-128

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-696
SELECT DISTINCT + - 93, COUNT( * ) * 52 DIV - - 95 AS col2
----
-93
0

skipif mysql # not compatible
query II rowsort label-696
SELECT DISTINCT + - 93, COUNT ( * ) * 52 / - - 95 AS col2
----
-93
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-697
SELECT - CAST( NULL AS SIGNED ) + + - ( CAST( NULL AS SIGNED ) ) + - + 71 + - - 31 * - CAST( NULL AS SIGNED ) * + 66 * + 26 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-697
SELECT - CAST ( NULL AS INTEGER ) + + - ( CAST ( NULL AS INTEGER ) ) + - + 71 + - - 31 * - CAST ( NULL AS INTEGER ) * + 66 * + 26 AS col1
----
NULL

query I rowsort
SELECT ALL + - 11 AS col0
----
-11

query I rowsort
SELECT ALL - 25 * - 9 AS col1
----
225

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

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

query I rowsort
SELECT DISTINCT COALESCE ( + 18, + 94 ) AS col2
----
18

query I rowsort
SELECT ALL + 5 * CASE 78 WHEN + 15 THEN 64 END + 27 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-703
SELECT - 68 + - 53 * - COUNT( * )
----
-15

skipif mysql # not compatible
query I rowsort label-703
SELECT - 68 + - 53 * - COUNT ( * )
----
-15

query I rowsort
SELECT - 14 * + + 82 AS col0
----
-1148

query I rowsort
SELECT + 20 + 12 col1
----
32

query I rowsort
SELECT ALL - 4 + 97 + 61
----
154

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

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

query I rowsort
SELECT - 84 * + 81 * + 68 AS col2
----
-462672

query I rowsort
SELECT ALL - ( + 64 ) + 83
----
19

query II rowsort
SELECT DISTINCT ( - 32 ) AS col1, - 99 AS col0
----
-32
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-711
SELECT ALL - MAX( ALL 48 ) + 61 AS col2
----
13

skipif mysql # not compatible
query I rowsort label-711
SELECT ALL - MAX ( ALL 48 ) + 61 AS col2
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-712
SELECT + 54 * CASE + COUNT( * ) WHEN - + 90 THEN + COUNT( * ) + + 41 END
----
NULL

skipif mysql # not compatible
query I rowsort label-712
SELECT + 54 * CASE + COUNT ( * ) WHEN - + 90 THEN + COUNT ( * ) + + 41 END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-713
SELECT + CAST( NULL AS SIGNED ) + 3 * 95 * - - 46 * + + 52
----
NULL

skipif mysql # not compatible
query I rowsort label-713
SELECT + CAST ( NULL AS INTEGER ) + 3 * 95 * - - 46 * + + 52
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-714
SELECT + COUNT( * ) DIV + + ( - - 45 ) * 6 - - + 77 * 79 + - 75 AS col2
----
6008

skipif mysql # not compatible
query I rowsort label-714
SELECT + COUNT ( * ) / + + ( - - 45 ) * 6 - - + 77 * 79 + - 75 AS col2
----
6008

query I rowsort
SELECT ALL + 91 - - 31
----
122

query I rowsort
SELECT ALL + - 26 AS col0
----
-26

query I rowsort
SELECT - 92 col1
----
-92

query I rowsort
SELECT DISTINCT + - 66 AS col2
----
-66

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-719
SELECT DISTINCT - 67 DIV - ( + 81 ) + + 59 * + + COALESCE ( + 70, + 25 * - 59 + + 16 + + COUNT( * ) ) - - + 84 * - ( - COUNT( * ) )
----
4214

skipif mysql # not compatible
query I rowsort label-719
SELECT DISTINCT - 67 / - ( + 81 ) + + 59 * + + COALESCE ( + 70, + 25 * - 59 + + 16 + + COUNT ( * ) ) - - + 84 * - ( - COUNT ( * ) )
----
4214

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

onlyif mysql # DIV for integer division: 
query I rowsort label-721
SELECT - 99 DIV 7 * 14 + + 94 AS col2
----
-102

skipif mysql # not compatible
query I rowsort label-721
SELECT - 99 / 7 * 14 + + 94 AS col2
----
-102

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-722
SELECT DISTINCT + CAST( - 64 AS SIGNED ) DIV - 36 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-722
SELECT DISTINCT + CAST ( - 64 AS INTEGER ) / - 36 AS col1
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-723
SELECT ALL 97 DIV - 15
----
-6

skipif mysql # not compatible
query I rowsort label-723
SELECT ALL 97 / - 15
----
-6

onlyif mysql # DIV for integer division: 
query I rowsort label-724
SELECT + 67 + - - 79 DIV 83 + 48 AS col2
----
115

skipif mysql # not compatible
query I rowsort label-724
SELECT + 67 + - - 79 / 83 + 48 AS col2
----
115

onlyif mysql # DIV for integer division: 
query I rowsort label-725
SELECT + - 69 DIV + 91
----
0

skipif mysql # not compatible
query I rowsort label-725
SELECT + - 69 / + 91
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-726
SELECT + + ( CAST( NULL AS SIGNED ) ) * 41 * - CASE + + 89 WHEN + COUNT( * ) + + 41 THEN + - 83 END + - - 23 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-726
SELECT + + ( CAST ( NULL AS INTEGER ) ) * 41 * - CASE + + 89 WHEN + COUNT ( * ) + + 41 THEN + - 83 END + - - 23 AS col2
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-728
SELECT ALL - 89 * + - COUNT( * ) - - 99
----
188

skipif mysql # not compatible
query I rowsort label-728
SELECT ALL - 89 * + - COUNT ( * ) - - 99
----
188

onlyif mysql # aggregate syntax: 
query I rowsort label-729
SELECT + - COUNT( 85 ) * 88 + + - SUM( - NULLIF ( + - 55, + 82 ) ) AS col1
----
-143

skipif mysql # not compatible
query I rowsort label-729
SELECT + - COUNT ( 85 ) * 88 + + - SUM ( - NULLIF ( + - 55, + 82 ) ) AS col1
----
-143

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

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-735
SELECT ALL 95 * 6 - COUNT( * ) AS col1
----
569

skipif mysql # not compatible
query I rowsort label-735
SELECT ALL 95 * 6 - COUNT ( * ) AS col1
----
569

query I rowsort
SELECT DISTINCT + 95 + - 89 + + 65 + + 77
----
148

query I rowsort
SELECT 50 * + 39 * - CASE - + 39 WHEN 69 THEN - 26 + - 94 + - 82 * - + 0 * + + 99 WHEN + 17 - + 3 THEN NULL END * - 82
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-738
SELECT ( + - CAST( 80 AS SIGNED ) ) * - 51 * CAST( - 36 AS SIGNED ) + - - 60 AS col1
----
-146820

skipif mysql # not compatible
query I rowsort label-738
SELECT ( + - CAST ( 80 AS INTEGER ) ) * - 51 * CAST ( - 36 AS INTEGER ) + - - 60 AS col1
----
-146820

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-740
SELECT ALL - COUNT( * ) + + 11 * - 6
----
-67

skipif mysql # not compatible
query I rowsort label-740
SELECT ALL - COUNT ( * ) + + 11 * - 6
----
-67

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

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

query I rowsort
SELECT NULLIF ( + 57, + 91 * 11 ) + + - 38 + - + 65 - - 49 * - 25 + 80 col0
----
-1191

query I rowsort
SELECT 49 * 85 * + 52
----
216580

query I rowsort
SELECT ALL - 9 + + - 15 AS col1
----
-24

query I rowsort
SELECT 30 + 23
----
53

query I rowsort
SELECT ALL 12 AS col1
----
12

query I rowsort
SELECT 39 + 27
----
66

query I rowsort
SELECT DISTINCT COALESCE ( + + 42, + 73, + 49 ) * - - ( - 75 ) + + 69 + ( 89 ) col2
----
-2992

query I rowsort
SELECT ALL - 73 + - 96 * 77 AS col0
----
-7465

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-750
SELECT DISTINCT - CAST( NULL AS SIGNED ) * - 32 * + ( - 28 ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-750
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * - 32 * + ( - 28 ) col0
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-752
SELECT 39 + + + COUNT( * ) AS col0
----
40

skipif mysql # not compatible
query I rowsort label-752
SELECT 39 + + + COUNT ( * ) AS col0
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-753
SELECT 74 - + MIN( - 82 ) AS col0
----
156

skipif mysql # not compatible
query I rowsort label-753
SELECT 74 - + MIN ( - 82 ) AS col0
----
156

query I rowsort
SELECT ALL 41 col2
----
41

query I rowsort
SELECT 47 + + - 54 * + 61
----
-3247

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

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-757
SELECT ALL + NULLIF ( - - ( + 71 ), - SUM( ALL 89 ) / - - 39 - CAST( NULL AS DECIMAL ) + - 76 * + + 97 * + 28 / 43 )
----
71

skipif mysql # not compatible
query I rowsort label-757
SELECT ALL + NULLIF ( - - ( + 71 ), - SUM ( ALL 89 ) / - - 39 - CAST ( NULL AS REAL ) + - 76 * + + 97 * + 28 / 43 )
----
71

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

query I rowsort
SELECT - 98 + + 40 * - 78 AS col1
----
-3218

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-760
SELECT ALL - MIN( ALL + 40 ) * + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-760
SELECT ALL - MIN ( ALL + 40 ) * + CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-761
SELECT + 7 * - 60 DIV COUNT( * ) AS col0
----
-420

skipif mysql # not compatible
query I rowsort label-761
SELECT + 7 * - 60 / COUNT ( * ) AS col0
----
-420

onlyif mysql # aggregate syntax: 
query I rowsort label-762
SELECT ALL + + COALESCE ( - MIN( - 7 ), 19, - 24 - + + 49 * 78 * 36 ) * 65 * - + COUNT( * )
----
-455

skipif mysql # not compatible
query I rowsort label-762
SELECT ALL + + COALESCE ( - MIN ( - 7 ), 19, - 24 - + + 49 * 78 * 36 ) * 65 * - + COUNT ( * )
----
-455

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-764
SELECT MAX( ALL - 53 ) DIV - COALESCE ( + + 69, + 91 * 84, - - 3 * + SUM( ALL 4 ) - - 82 ) * + - COALESCE ( + + 20, + 59 ) * + COALESCE ( - NULLIF ( - 12, + 38 + - AVG ( DISTINCT + - 7 ) ), + 48 - - - 96 * - + 41, - NULLIF ( + 30, COUNT( * ) ), + + 37 ) + 50 * - 80
----
-4000

skipif mysql # not compatible
query I rowsort label-764
SELECT MAX ( ALL - 53 ) / - COALESCE ( + + 69, + 91 * 84, - - 3 * + SUM ( ALL 4 ) - - 82 ) * + - COALESCE ( + + 20, + 59 ) * + COALESCE ( - NULLIF ( - 12, + 38 + - AVG ( DISTINCT + - 7 ) ), + 48 - - - 96 * - + 41, - NULLIF ( + 30, COUNT ( * ) ), + + 37 ) + 50 * - 80
----
-4000

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

query I rowsort
SELECT ALL + + 51 * + 47 * + + 7 * - NULLIF ( - 94, + + 10 )
----
1577226

onlyif mysql # aggregate syntax: 
query I rowsort label-767
SELECT - 74 * + 96 + + + 64 + + + 47 + - + MAX( - 88 )
----
-6905

skipif mysql # not compatible
query I rowsort label-767
SELECT - 74 * + 96 + + + 64 + + + 47 + - + MAX ( - 88 )
----
-6905

query I rowsort
SELECT 47 * 51
----
2397

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

query I rowsort
SELECT DISTINCT - + 66
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-771
SELECT - 42 * + - 23 + + 51 + - 45 + 63 + - ( - + COALESCE ( - SUM( DISTINCT + 6 ), - 69 * + ( + COUNT( * ) ) + - - 33 + + + 8 ) )
----
1029

skipif mysql # not compatible
query I rowsort label-771
SELECT - 42 * + - 23 + + 51 + - 45 + 63 + - ( - + COALESCE ( - SUM ( DISTINCT + 6 ), - 69 * + ( + COUNT ( * ) ) + - - 33 + + + 8 ) )
----
1029

query I rowsort
SELECT NULLIF ( - 59, 36 )
----
-59

query I rowsort
SELECT ALL - 86 col0
----
-86

query II rowsort
SELECT ALL - 29 AS col1, 29 col1
----
-29
29

onlyif mysql # DIV for integer division: 
query I rowsort label-775
SELECT + 54 DIV + 99 + + 86
----
86

skipif mysql # not compatible
query I rowsort label-775
SELECT + 54 / + 99 + + 86
----
86

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-776
SELECT ALL - - ( + 14 ) + + - CAST( 94 AS SIGNED ) - COUNT( * ) + - 8 AS col1
----
-89

skipif mysql # not compatible
query I rowsort label-776
SELECT ALL - - ( + 14 ) + + - CAST ( 94 AS INTEGER ) - COUNT ( * ) + - 8 AS col1
----
-89

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-777
SELECT ALL + COALESCE ( - COUNT( * ), 29 DIV + + 41 ) * 95
----
-95

skipif mysql # not compatible
query I rowsort label-777
SELECT ALL + COALESCE ( - COUNT ( * ), 29 / + + 41 ) * 95
----
-95

query III rowsort
SELECT ALL - 91 + - + 70 + 22 AS col1, 90 + 13 + + 44 * + + 64 + 20, + - 36 * + 9 col0
----
-139
2939
-324

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-779
SELECT 6 * + CASE 47 WHEN + 61 THEN - 29 - + + CAST( NULL AS SIGNED ) END / - 47 + + 83 + - 74 / - 60
----
NULL

skipif mysql # not compatible
query I rowsort label-779
SELECT 6 * + CASE 47 WHEN + 61 THEN - 29 - + + CAST ( NULL AS INTEGER ) END / - 47 + + 83 + - 74 / - 60
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-780
SELECT 4 * + CASE 87 WHEN + + NULLIF ( + 12, - 36 * 74 + COUNT( ALL - CAST( - 78 AS SIGNED ) ) * - 90 ) * + - 72 + ( - 84 ) THEN + + 12 ELSE NULL END * + 40 + COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-780
SELECT 4 * + CASE 87 WHEN + + NULLIF ( + 12, - 36 * 74 + COUNT ( ALL - CAST ( - 78 AS INTEGER ) ) * - 90 ) * + - 72 + ( - 84 ) THEN + + 12 ELSE NULL END * + 40 + COUNT ( * ) AS col1
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-782
SELECT COUNT( * ) * 75
----
75

skipif mysql # not compatible
query I rowsort label-782
SELECT COUNT ( * ) * 75
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-783
SELECT ALL COUNT( * ) * 16 AS col1
----
16

skipif mysql # not compatible
query I rowsort label-783
SELECT ALL COUNT ( * ) * 16 AS col1
----
16

onlyif mysql # aggregate syntax: 
query II rowsort label-784
SELECT + 9, 74 * - - COUNT( * ) AS col0
----
9
74

skipif mysql # not compatible
query II rowsort label-784
SELECT + 9, 74 * - - COUNT ( * ) AS col0
----
9
74

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-785
SELECT ALL COALESCE ( 53, 80 - 8 * - 72 ) * + + CAST( NULL AS SIGNED ) / 28, - 12 AS col0
----
NULL
-12

skipif mysql # not compatible
query II rowsort label-785
SELECT ALL COALESCE ( 53, 80 - 8 * - 72 ) * + + CAST ( NULL AS INTEGER ) / 28, - 12 AS col0
----
NULL
-12

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-787
SELECT ( + COUNT( * ) ) * - + 88 + - 34
----
-122

skipif mysql # not compatible
query I rowsort label-787
SELECT ( + COUNT ( * ) ) * - + 88 + - 34
----
-122

query I rowsort
SELECT 68 * - 31
----
-2108

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-789
SELECT ( - - 59 ) * CAST( + 27 AS SIGNED ) AS col0
----
1593

skipif mysql # not compatible
query I rowsort label-789
SELECT ( - - 59 ) * CAST ( + 27 AS INTEGER ) AS col0
----
1593

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-790
SELECT ALL + 15 * + MIN( ALL - CAST( 11 AS SIGNED ) ) * - + 41
----
6765

skipif mysql # not compatible
query I rowsort label-790
SELECT ALL + 15 * + MIN ( ALL - CAST ( 11 AS INTEGER ) ) * - + 41
----
6765

query II rowsort
SELECT 94 col2, + 45 + - 85 * + 9 col0
----
94
-720

query I rowsort
SELECT DISTINCT + 97 * + 51 AS col0
----
4947

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

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

query II rowsort
SELECT DISTINCT + 90, 98 AS col2
----
90
98

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-795
SELECT ALL + 14 * 75 * - + 24 * - 87 * - 34 * - CAST( NULL AS SIGNED ) + + + COALESCE ( + CASE + + ( - 40 ) WHEN + COUNT( + - 53 ) THEN + 21 END, + 35 ) AS col0, 79 + + - 5 AS col2
----
NULL
74

skipif mysql # not compatible
query II rowsort label-795
SELECT ALL + 14 * 75 * - + 24 * - 87 * - 34 * - CAST ( NULL AS INTEGER ) + + + COALESCE ( + CASE + + ( - 40 ) WHEN + COUNT ( + - 53 ) THEN + 21 END, + 35 ) AS col0, 79 + + - 5 AS col2
----
NULL
74

query II rowsort
SELECT ALL 66 AS col2, 87
----
66
87

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

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

query II rowsort
SELECT - + 31, + 66 AS col2
----
-31
66

query I rowsort
SELECT ALL + 56 + 83 AS col1
----
139

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

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

query I rowsort
SELECT - 85 - ( - 76 ) col1
----
-9

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

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

query I rowsort
SELECT - - 1 * - 64 + + NULLIF ( - - 31, - 90 ) * - 30 * + 41
----
-38194

query I rowsort
SELECT ALL + + 88 * + - 49 + + + 45
----
-4267

query I rowsort
SELECT ALL - - 22 * + - 37 + - 54
----
-868

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

onlyif mysql # aggregate syntax: 
query I rowsort label-807
SELECT DISTINCT - + 23 * 1 * - + 2 * + COUNT( * ) + - COUNT( * ) * COUNT( * )
----
45

skipif mysql # not compatible
query I rowsort label-807
SELECT DISTINCT - + 23 * 1 * - + 2 * + COUNT ( * ) + - COUNT ( * ) * COUNT ( * )
----
45

query I rowsort
SELECT ALL + 46 * 84 + - + 75 col1
----
3789

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

skipif mysql # not compatible
query I rowsort label-809
SELECT + COUNT ( * ) * - CAST ( + 81 AS INTEGER )
----
-81

query I rowsort
SELECT + 85 col1
----
85

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

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

query II rowsort
SELECT DISTINCT - ( - + 31 ) * + 15 + 65 + + - 19, + 61 AS col1
----
511
61

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

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

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

skipif mysql # not compatible
query I rowsort label-814
SELECT + MIN ( + + 49 )
----
49

query I rowsort
SELECT ALL 19 * + 63
----
1197

query I rowsort
SELECT - 25 + - 48 AS col2
----
-73

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

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

query I rowsort
SELECT ALL 13 * + 69 AS col1
----
897

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-820
SELECT ( + - 36 ) * COUNT( * ) + + 2 AS col2
----
-34

skipif mysql # not compatible
query I rowsort label-820
SELECT ( + - 36 ) * COUNT ( * ) + + 2 AS col2
----
-34

onlyif mysql # aggregate syntax: 
query II rowsort label-821
SELECT ALL MIN( ALL + 75 ) AS col1, ( 10 ) AS col0
----
75
10

skipif mysql # not compatible
query II rowsort label-821
SELECT ALL MIN ( ALL + 75 ) AS col1, ( 10 ) AS col0
----
75
10

query I rowsort
SELECT DISTINCT 95 * 59
----
5605

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-823
SELECT DISTINCT MIN( - 16 ) AS col1, + COUNT( - 83 ) DIV - 63 + + NULLIF ( + + 43, + + 69 * + 50 * - - 34 ) DIV - 27 + + 67 * 32 + - - 69
----
-16
2212

skipif mysql # not compatible
query II rowsort label-823
SELECT DISTINCT MIN ( - 16 ) AS col1, + COUNT ( - 83 ) / - 63 + + NULLIF ( + + 43, + + 69 * + 50 * - - 34 ) / - 27 + + 67 * 32 + - - 69
----
-16
2212

onlyif mysql # DIV for integer division: 
query II rowsort label-824
SELECT + + ( + 4 ) + + 28 AS col1, + 17 DIV - 54 + - + 48
----
32
-48

skipif mysql # not compatible
query II rowsort label-824
SELECT + + ( + 4 ) + + 28 AS col1, + 17 / - 54 + - + 48
----
32
-48

query I rowsort
SELECT + - 46 * + - 21 + - - 14 col2
----
980

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-826
SELECT + 33 + + 84 DIV - + CAST( + + 56 AS SIGNED ) AS col1
----
32

skipif mysql # not compatible
query I rowsort label-826
SELECT + 33 + + 84 / - + CAST ( + + 56 AS INTEGER ) AS col1
----
32

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-827
SELECT - COUNT( * ) + - + 91 + + 39 * - MIN( ALL CAST( NULL AS SIGNED ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-827
SELECT - COUNT ( * ) + - + 91 + + 39 * - MIN ( ALL CAST ( NULL AS INTEGER ) ) AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-828
SELECT DISTINCT 77 DIV 60 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-828
SELECT DISTINCT 77 / 60 AS col2
----
1

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-829
SELECT + 47 * CAST( + 13 AS SIGNED ) DIV 89 * 34 AS col2
----
204

skipif mysql # not compatible
query I rowsort label-829
SELECT + 47 * CAST ( + 13 AS INTEGER ) / 89 * 34 AS col2
----
204

query I rowsort
SELECT - 16 + + 78
----
62

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

skipif mysql # not compatible
query I rowsort label-831
SELECT ALL - COUNT ( * ) + - COUNT ( ALL - 4 ) AS col0
----
-2

query II rowsort
SELECT ALL + + 96 + 64 AS col0, - 59 * + 50 AS col0
----
160
-2950

onlyif mysql # aggregate syntax: 
query I rowsort label-833
SELECT DISTINCT + + 21 + SUM( ALL - CASE + 4 WHEN 26 THEN + + 23 - 58 - - 46 - - 56 - 88 END ) - - + 59 + - COUNT( * ) * - 59 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-833
SELECT DISTINCT + + 21 + SUM ( ALL - CASE + 4 WHEN 26 THEN + + 23 - 58 - - 46 - - 56 - 88 END ) - - + 59 + - COUNT ( * ) * - 59 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-834
SELECT - + 72 + - - COUNT( DISTINCT + - 6 )
----
-71

skipif mysql # not compatible
query I rowsort label-834
SELECT - + 72 + - - COUNT ( DISTINCT + - 6 )
----
-71

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

query I rowsort
SELECT DISTINCT - ( 27 ) * - 85 AS col1
----
2295

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-838
SELECT - 19 * - COALESCE ( - + COUNT( * ), - 35, CASE + COALESCE ( - 32, - - 43 * + 48 - + 82, + 56 + + 15 ) WHEN + 82 THEN NULL WHEN + 53 / + + 1 / - 56 THEN - - MIN( + 62 ) WHEN AVG ( 89 ) THEN NULL END ) AS col1
----
-19

skipif mysql # not compatible
query I rowsort label-838
SELECT - 19 * - COALESCE ( - + COUNT ( * ), - 35, CASE + COALESCE ( - 32, - - 43 * + 48 - + 82, + 56 + + 15 ) WHEN + 82 THEN NULL WHEN + 53 / + + 1 / - 56 THEN - - MIN ( + 62 ) WHEN AVG ( 89 ) THEN NULL END ) AS col1
----
-19

onlyif mysql # DIV for integer division: 
query I rowsort label-839
SELECT - - 64 DIV + - ( + 95 )
----
0

skipif mysql # not compatible
query I rowsort label-839
SELECT - - 64 / + - ( + 95 )
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-840
SELECT DISTINCT - 42 DIV 59 AS col0, 62 * - 45 AS col1
----
0
-2790

skipif mysql # not compatible
query II rowsort label-840
SELECT DISTINCT - 42 / 59 AS col0, 62 * - 45 AS col1
----
0
-2790

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-841
SELECT ALL + 96 DIV + COUNT( * ) - 21 + - ( - - 66 ) AS col1
----
9

skipif mysql # not compatible
query I rowsort label-841
SELECT ALL + 96 / + COUNT ( * ) - 21 + - ( - - 66 ) AS col1
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-842
SELECT CAST( 12 AS SIGNED ) AS col0
----
12

skipif mysql # not compatible
query I rowsort label-842
SELECT CAST ( 12 AS INTEGER ) AS col0
----
12

query I rowsort
SELECT ALL + + 55
----
55

query I rowsort
SELECT - 9 + + 40
----
31

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-845
SELECT ALL + 86 DIV - COUNT( ALL - 90 ) - - NULLIF ( + 35, - 23 ) + 70 * - 69
----
-4881

skipif mysql # not compatible
query I rowsort label-845
SELECT ALL + 86 / - COUNT ( ALL - 90 ) - - NULLIF ( + 35, - 23 ) + 70 * - 69
----
-4881

onlyif mysql # aggregate syntax: 
query I rowsort label-846
SELECT ALL + COALESCE ( - 33, - + MIN( 67 ) )
----
-33

skipif mysql # not compatible
query I rowsort label-846
SELECT ALL + COALESCE ( - 33, - + MIN ( 67 ) )
----
-33

query I rowsort
SELECT + 32 * - 3
----
-96

query I rowsort
SELECT ALL + NULLIF ( - + 50, + 43 + - 25 ) col0
----
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-849
SELECT DISTINCT - 33 * - CASE 78 WHEN 75 THEN COUNT( * ) * - - COUNT( * ) + + COUNT( * ) * - - 43 END
----
NULL

skipif mysql # not compatible
query I rowsort label-849
SELECT DISTINCT - 33 * - CASE 78 WHEN 75 THEN COUNT ( * ) * - - COUNT ( * ) + + COUNT ( * ) * - - 43 END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-850
SELECT - 90 DIV - 78
----
1

skipif mysql # not compatible
query I rowsort label-850
SELECT - 90 / - 78
----
1

query I rowsort
SELECT - 2 * + 13
----
-26

onlyif mysql # DIV for integer division: 
query I rowsort label-852
SELECT - 54 DIV + - 76
----
0

skipif mysql # not compatible
query I rowsort label-852
SELECT - 54 / + - 76
----
0

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

query I rowsort
SELECT - 72 * - 23 AS col1
----
1656

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

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

query I rowsort
SELECT - 36 * - 65 AS col0
----
2340

onlyif mysql # aggregate syntax: 
query I rowsort label-857
SELECT CASE + 47 WHEN 17 THEN - + 86 / - - COUNT( * ) / - COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-857
SELECT CASE + 47 WHEN 17 THEN - + 86 / - - COUNT ( * ) / - COUNT ( * ) END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-858
SELECT ALL - 79 DIV + + 17
----
-4

skipif mysql # not compatible
query I rowsort label-858
SELECT ALL - 79 / + + 17
----
-4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-859
SELECT - COALESCE ( + COUNT( * ), - 53 * - 31 + + 18, + 25 ), CAST( NULL AS SIGNED ) + + 48 AS col2
----
-1
NULL

skipif mysql # not compatible
query II rowsort label-859
SELECT - COALESCE ( + COUNT ( * ), - 53 * - 31 + + 18, + 25 ), CAST ( NULL AS INTEGER ) + + 48 AS col2
----
-1
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-860
SELECT - + 42 DIV + - 29 col2
----
1

skipif mysql # not compatible
query I rowsort label-860
SELECT - + 42 / + - 29 col2
----
1

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

skipif mysql # not compatible
query I rowsort label-861
SELECT + + 36 / - 35 + + + COUNT ( * )
----
0

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

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

query I rowsort
SELECT ALL - 62 + - - 39 + 74 AS col1
----
51

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-864
SELECT DISTINCT - ( 63 ) + 41 + 3 * + 4 - 1 DIV - + NULLIF ( COUNT( * ), + 46 ) AS col0
----
-9

skipif mysql # not compatible
query I rowsort label-864
SELECT DISTINCT - ( 63 ) + 41 + 3 * + 4 - 1 / - + NULLIF ( COUNT ( * ), + 46 ) AS col0
----
-9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-865
SELECT ALL 37 + + - 46 * NULLIF ( + - 13, 90 + - + COUNT( * ) ) + AVG ( ALL + CAST( NULL AS SIGNED ) ) - 91 * - 0 / - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-865
SELECT ALL 37 + + - 46 * NULLIF ( + - 13, 90 + - + COUNT ( * ) ) + AVG ( ALL + CAST ( NULL AS INTEGER ) ) - 91 * - 0 / - COUNT ( * )
----
NULL

query II rowsort
SELECT - + 79 AS col0, 30 AS col0
----
-79
30

onlyif mysql # aggregate syntax: 
query I rowsort label-867
SELECT ALL 50 + - 90 + + 84 + - 65 + COUNT( * ) * + + ( - 32 ) + + 64 * 43 AS col1
----
2699

skipif mysql # not compatible
query I rowsort label-867
SELECT ALL 50 + - 90 + + 84 + - 65 + COUNT ( * ) * + + ( - 32 ) + + 64 * 43 AS col1
----
2699

onlyif mysql # aggregate syntax: 
query II rowsort label-868
SELECT - COALESCE ( - + 19, - 53 ) + + 47 * - COUNT( * ) + - 55 AS col1, 7 - + - 32 - SUM( ALL - 28 ) + - 42 AS col1
----
-83
25

skipif mysql # not compatible
query II rowsort label-868
SELECT - COALESCE ( - + 19, - 53 ) + + 47 * - COUNT ( * ) + - 55 AS col1, 7 - + - 32 - SUM ( ALL - 28 ) + - 42 AS col1
----
-83
25

onlyif mysql # aggregate syntax: 
query II rowsort label-869
SELECT - - COUNT( * ) AS col0, 78 * COUNT( * ) + 26
----
1
104

skipif mysql # not compatible
query II rowsort label-869
SELECT - - COUNT ( * ) AS col0, 78 * COUNT ( * ) + 26
----
1
104

query I rowsort
SELECT - 33 + + 84 col1
----
51

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

skipif mysql # not compatible
query I rowsort label-871
SELECT MIN ( ALL 11 )
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-872
SELECT MIN( + + 71 ) + + - 52
----
19

skipif mysql # not compatible
query I rowsort label-872
SELECT MIN ( + + 71 ) + + - 52
----
19

onlyif mysql # DIV for integer division: 
query I rowsort label-873
SELECT DISTINCT 95 DIV + COALESCE ( - - ( + 46 ), + CASE - - 35 WHEN + - 4 THEN 8 WHEN - ( - 61 ) THEN + 33 ELSE NULL END )
----
2

skipif mysql # not compatible
query I rowsort label-873
SELECT DISTINCT 95 / + COALESCE ( - - ( + 46 ), + CASE - - 35 WHEN + - 4 THEN 8 WHEN - ( - 61 ) THEN + 33 ELSE NULL END )
----
2

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

query I rowsort
SELECT ( - - 42 )
----
42

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-876
SELECT DISTINCT MIN( ALL - 6 ) DIV 82
----
0

skipif mysql # not compatible
query I rowsort label-876
SELECT DISTINCT MIN ( ALL - 6 ) / 82
----
0

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

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

query I rowsort
SELECT 58 * 91 AS col0
----
5278

query I rowsort
SELECT 28 * 85 + 60 AS col1
----
2440

onlyif mysql # aggregate syntax: 
query I rowsort label-880
SELECT + 63 * - 5 - + 72 * + 80 * MAX( ALL + 49 ) AS col2
----
-282555

skipif mysql # not compatible
query I rowsort label-880
SELECT + 63 * - 5 - + 72 * + 80 * MAX ( ALL + 49 ) AS col2
----
-282555

query II rowsort
SELECT 84 * - 67 AS col1, + 82 AS col2
----
-5628
82

onlyif mysql # DIV for integer division: 
query I rowsort label-882
SELECT ALL + 83 DIV - 56
----
-1

skipif mysql # not compatible
query I rowsort label-882
SELECT ALL + 83 / - 56
----
-1

query I rowsort
SELECT ALL - 93 AS col0
----
-93

query I rowsort
SELECT 83 * 68
----
5644

query I rowsort
SELECT ALL + 57 + - + 56 AS col1
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-886
SELECT CAST( - - ( - + 32 ) AS SIGNED ) + + - CASE + 65 WHEN - 94 THEN - COUNT( * ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-886
SELECT CAST ( - - ( - + 32 ) AS INTEGER ) + + - CASE + 65 WHEN - 94 THEN - COUNT ( * ) END AS col1
----
NULL

query II rowsort
SELECT 73 + + 73 AS col2, + 54
----
146
54

query I rowsort
SELECT ALL - 84 + 73 AS col1
----
-11

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-889
SELECT ALL + CASE ( - - CAST( NULL AS SIGNED ) ) WHEN + 28 THEN 42 WHEN + 64 THEN NULL END + - 43 * + COUNT( DISTINCT 96 ) - 92 / + NULLIF ( + + 7, 47 + - 92 + 8 * 29 ) * 73
----
NULL

skipif mysql # not compatible
query I rowsort label-889
SELECT ALL + CASE ( - - CAST ( NULL AS INTEGER ) ) WHEN + 28 THEN 42 WHEN + 64 THEN NULL END + - 43 * + COUNT ( DISTINCT 96 ) - 92 / + NULLIF ( + + 7, 47 + - 92 + 8 * 29 ) * 73
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-890
SELECT - 24 + - - COUNT( + 37 ) * 42 AS col1, 10 * - 22 * - 1 - - 43 + 96 * - + NULLIF ( - 15, 57 )
----
18
1703

skipif mysql # not compatible
query II rowsort label-890
SELECT - 24 + - - COUNT ( + 37 ) * 42 AS col1, 10 * - 22 * - 1 - - 43 + 96 * - + NULLIF ( - 15, 57 )
----
18
1703

query I rowsort
SELECT DISTINCT + + 62 + + 81
----
143

query II rowsort
SELECT - 51 + + 84 AS col0, - 10 AS col2
----
33
-10

onlyif mysql # DIV for integer division: 
query I rowsort label-893
SELECT ALL - + 12 + + 19 DIV - - 7
----
-10

skipif mysql # not compatible
query I rowsort label-893
SELECT ALL - + 12 + + 19 / - - 7
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-894
SELECT SUM( - 47 ) AS col2
----
-47

skipif mysql # not compatible
query I rowsort label-894
SELECT SUM ( - 47 ) AS col2
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-895
SELECT 50 * CASE - - COUNT( * ) WHEN - AVG ( ALL - + 75 ) THEN - 62 END
----
NULL

skipif mysql # not compatible
query I rowsort label-895
SELECT 50 * CASE - - COUNT ( * ) WHEN - AVG ( ALL - + 75 ) THEN - 62 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-896
SELECT + 74 * 95 * + NULLIF ( - 93, - 81 * COUNT( - 5 ) + + 92 + - + ( - 18 ) + + COUNT( * ) * + - 10 )
----
-653790

skipif mysql # not compatible
query I rowsort label-896
SELECT + 74 * 95 * + NULLIF ( - 93, - 81 * COUNT ( - 5 ) + + 92 + - + ( - 18 ) + + COUNT ( * ) * + - 10 )
----
-653790

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-898
SELECT + ( - 12 ) * - 3 + - CASE 43 WHEN - 40 + NULLIF ( + NULLIF ( + 48, - 84 ), - CASE 35 WHEN + COALESCE ( 51, 55 + - + CAST( NULL AS SIGNED ) * + 5, 79 ) + + NULLIF ( - 63, 3 + + + ( 51 ) ) * ( 94 ) * + 9 + ( - 98 ) THEN + 91 ELSE - 27 + 62 * + 9 END ) THEN + 61 * + + 7 END + + + ( + - 82 ) * + 24
----
NULL

skipif mysql # not compatible
query I rowsort label-898
SELECT + ( - 12 ) * - 3 + - CASE 43 WHEN - 40 + NULLIF ( + NULLIF ( + 48, - 84 ), - CASE 35 WHEN + COALESCE ( 51, 55 + - + CAST ( NULL AS INTEGER ) * + 5, 79 ) + + NULLIF ( - 63, 3 + + + ( 51 ) ) * ( 94 ) * + 9 + ( - 98 ) THEN + 91 ELSE - 27 + 62 * + 9 END ) THEN + 61 * + + 7 END + + + ( + - 82 ) * + 24
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-899
SELECT ALL + ( - ( + COUNT( * ) ) ) DIV - COUNT( * ) + + - 73 AS col1
----
-72

skipif mysql # not compatible
query I rowsort label-899
SELECT ALL + ( - ( + COUNT ( * ) ) ) / - COUNT ( * ) + + - 73 AS col1
----
-72

query I rowsort
SELECT + 1 + + + 57 + - 93 col2
----
-35

query I rowsort
SELECT ALL + 58 * + 48 * 30 + - 36 AS col1
----
83484

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

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

query I rowsort
SELECT 16 * + NULLIF ( + CASE + 61 WHEN + 20 THEN NULL WHEN + 42 THEN + 80 * - CASE 35 WHEN 37 THEN NULL ELSE 71 END + 73 END, - - 49 ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-904
SELECT + 14 + + ( SUM( - 17 ) ) * 20, + 22 + - + 88 * COUNT( * ) AS col0
----
-326
-66

skipif mysql # not compatible
query II rowsort label-904
SELECT + 14 + + ( SUM ( - 17 ) ) * 20, + 22 + - + 88 * COUNT ( * ) AS col0
----
-326
-66

query I rowsort
SELECT ALL ( + 3 ) - + 0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-906
SELECT 19 * + COUNT( ALL + 64 )
----
19

skipif mysql # not compatible
query I rowsort label-906
SELECT 19 * + COUNT ( ALL + 64 )
----
19

query I rowsort
SELECT ALL 93 * - 10 * - 47
----
43710

query I rowsort
SELECT DISTINCT COALESCE ( - 44, + 76 ) AS col2
----
-44

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-909
SELECT - + ( - CASE + + 38 WHEN + - 42 * - ( + 8 ) + - 82 + + COUNT( DISTINCT - 65 ) * + + AVG ( DISTINCT 69 ) + 60 THEN - 50 + - - 58 + + 48 WHEN + CAST( NULL AS SIGNED ) THEN + 3 + + - ( - 17 ) * + 98 * + 97 ELSE NULL END )
----
NULL

skipif mysql # not compatible
query I rowsort label-909
SELECT - + ( - CASE + + 38 WHEN + - 42 * - ( + 8 ) + - 82 + + COUNT ( DISTINCT - 65 ) * + + AVG ( DISTINCT 69 ) + 60 THEN - 50 + - - 58 + + 48 WHEN + CAST ( NULL AS INTEGER ) THEN + 3 + + - ( - 17 ) * + 98 * + 97 ELSE NULL END )
----
NULL

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-911
SELECT ALL - 23 - + CAST( - + AVG ( + + 33 ) AS SIGNED )
----
10

skipif mysql # not compatible
query I rowsort label-911
SELECT ALL - 23 - + CAST ( - + AVG ( + + 33 ) AS INTEGER )
----
10

onlyif mysql # aggregate syntax: 
query II rowsort label-912
SELECT + 90 * + 13, MAX( ALL - 93 ) + - 38 * 36 AS col1
----
1170
-1461

skipif mysql # not compatible
query II rowsort label-912
SELECT + 90 * + 13, MAX ( ALL - 93 ) + - 38 * 36 AS col1
----
1170
-1461

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-915
SELECT 87 DIV 66 + - 9 AS col2
----
-8

skipif mysql # not compatible
query I rowsort label-915
SELECT 87 / 66 + - 9 AS col2
----
-8

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

skipif mysql # not compatible
query I rowsort label-916
SELECT + SUM ( 41 )
----
41

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-917
SELECT ( + 61 ) / - 49 + + CAST( NULL AS SIGNED ) * 58
----
NULL

skipif mysql # not compatible
query I rowsort label-917
SELECT ( + 61 ) / - 49 + + CAST ( NULL AS INTEGER ) * 58
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-918
SELECT ALL 73 DIV - + 42 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-918
SELECT ALL 73 / - + 42 AS col1
----
-1

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-920
SELECT ALL CAST( NULL AS SIGNED ) * - 81 / 6 + 83 + + MIN( DISTINCT - + 26 ) + - 48 / - 50, - NULLIF ( - - 29, 44 ) AS col1
----
NULL
-29

skipif mysql # not compatible
query II rowsort label-920
SELECT ALL CAST ( NULL AS INTEGER ) * - 81 / 6 + 83 + + MIN ( DISTINCT - + 26 ) + - 48 / - 50, - NULLIF ( - - 29, 44 ) AS col1
----
NULL
-29

query I rowsort
SELECT ALL 52 * + 15 + + - 84 AS col2
----
696

query I rowsort
SELECT ALL 37 * - - COALESCE ( - 94, + 28 ) * - - 83 + 12 + - 53
----
-288715

onlyif mysql # aggregate syntax: 
query II rowsort label-923
SELECT DISTINCT - 16 AS col2, + 35 * ( - + COUNT( * ) )
----
-16
-35

skipif mysql # not compatible
query II rowsort label-923
SELECT DISTINCT - 16 AS col2, + 35 * ( - + COUNT ( * ) )
----
-16
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-924
SELECT SUM( DISTINCT + 51 ) * COUNT( + 3 )
----
51

skipif mysql # not compatible
query I rowsort label-924
SELECT SUM ( DISTINCT + 51 ) * COUNT ( + 3 )
----
51

query I rowsort
SELECT DISTINCT 72 * - 53 col0
----
-3816

onlyif mysql # aggregate syntax: 
query I rowsort label-926
SELECT ALL 89 * - + 91 + - - 15 + 26 + MIN( ALL 68 ) AS col0
----
-7990

skipif mysql # not compatible
query I rowsort label-926
SELECT ALL 89 * - + 91 + - - 15 + 26 + MIN ( ALL 68 ) AS col0
----
-7990

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-927
SELECT ( - COALESCE ( + + COUNT( * ), - 69, - - 87 ) ) DIV + 10 * - 65 * 94 + + 98 DIV - 82 + - 49
----
-50

skipif mysql # not compatible
query I rowsort label-927
SELECT ( - COALESCE ( + + COUNT ( * ), - 69, - - 87 ) ) / + 10 * - 65 * 94 + + 98 / - 82 + - 49
----
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-928
SELECT ALL 32 * - COUNT( * ) * 90 * + 41 + + 24 + 62 + + COALESCE ( + 50, 96 + - 38, MAX( ALL + 27 ) + - 48 ) * + 29 col0
----
-116544

skipif mysql # not compatible
query I rowsort label-928
SELECT ALL 32 * - COUNT ( * ) * 90 * + 41 + + 24 + 62 + + COALESCE ( + 50, 96 + - 38, MAX ( ALL + 27 ) + - 48 ) * + 29 col0
----
-116544

onlyif mysql # aggregate syntax: 
query I rowsort label-929
SELECT MAX( DISTINCT 58 ) col1
----
58

skipif mysql # not compatible
query I rowsort label-929
SELECT MAX ( DISTINCT 58 ) col1
----
58

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-930
SELECT 25 * CAST( NULL AS DECIMAL ) * 20 + - 45 * + - 94 - - COUNT( * ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-930
SELECT 25 * CAST ( NULL AS REAL ) * 20 + - 45 * + - 94 - - COUNT ( * ) col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-931
SELECT MAX( ALL + 38 ) AS col2
----
38

skipif mysql # not compatible
query I rowsort label-931
SELECT MAX ( ALL + 38 ) AS col2
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-932
SELECT + CASE 61 WHEN - - SUM( + 27 ) THEN + 8 WHEN - 40 THEN NULL WHEN + SUM( DISTINCT 93 ) THEN + 52 + + 86 ELSE + - 9 END
----
-9

skipif mysql # not compatible
query I rowsort label-932
SELECT + CASE 61 WHEN - - SUM ( + 27 ) THEN + 8 WHEN - 40 THEN NULL WHEN + SUM ( DISTINCT 93 ) THEN + 52 + + 86 ELSE + - 9 END
----
-9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-933
SELECT ALL + CAST( NULL AS SIGNED ) + + CASE - SUM( ALL + 31 ) WHEN - + 48 THEN NULL WHEN + - COUNT( 43 ) THEN + - CASE + 92 WHEN - - 84 THEN NULL WHEN - 35 + - + 10 * 95 * 83 THEN CAST( 46 AS DECIMAL ) END ELSE - - 24 + - CAST( - - ( - - 13 ) AS SIGNED ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-933
SELECT ALL + CAST ( NULL AS INTEGER ) + + CASE - SUM ( ALL + 31 ) WHEN - + 48 THEN NULL WHEN + - COUNT ( 43 ) THEN + - CASE + 92 WHEN - - 84 THEN NULL WHEN - 35 + - + 10 * 95 * 83 THEN CAST ( 46 AS REAL ) END ELSE - - 24 + - CAST ( - - ( - - 13 ) AS INTEGER ) END AS col2
----
NULL

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

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

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

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

query I rowsort
SELECT ALL - COALESCE ( - - 84, 53, - - 33 * - 81 ) * - - NULLIF ( - 17, - 59 ) AS col1
----
1428

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

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

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

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

query I rowsort
SELECT + 2 * + 5
----
10

query I rowsort
SELECT - 72 * + 40 * - 89 AS col0
----
256320

query I rowsort
SELECT DISTINCT + 29 * 51 AS col0
----
1479

onlyif mysql # aggregate syntax: 
query I rowsort label-943
SELECT ALL + CASE - - 71 WHEN + 59 * - + 97 * + COUNT( * ) + + 27 * + 71 THEN 95 ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-943
SELECT ALL + CASE - - 71 WHEN + 59 * - + 97 * + COUNT ( * ) + + 27 * + 71 THEN 95 ELSE NULL END AS col2
----
NULL

query I rowsort
SELECT - - 32 - + - 37 - 55 + + ( - - 25 ) * + 55 * + 42 * - 47 col0
----
-2714236

query II rowsort
SELECT ALL 48, 18 AS col2
----
48
18

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-947
SELECT ALL + + 97 DIV 5
----
19

skipif mysql # not compatible
query I rowsort label-947
SELECT ALL + + 97 / 5
----
19

query I rowsort
SELECT - + 41 * + - 95
----
3895

query II rowsort
SELECT - 9, + 23 AS col1
----
-9
23

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-950
SELECT - - 72 + - CAST( - + NULLIF ( + - 39, + - 6 + - ( + 19 ) ) AS SIGNED ) AS col1
----
33

skipif mysql # not compatible
query I rowsort label-950
SELECT - - 72 + - CAST ( - + NULLIF ( + - 39, + - 6 + - ( + 19 ) ) AS INTEGER ) AS col1
----
33

query II rowsort
SELECT 30 AS col1, + 39 AS col2
----
30
39

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

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

query I rowsort
SELECT - 3 * - 48 AS col1
----
144

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

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

query II rowsort
SELECT 35, 52 col2
----
35
52

query I rowsort
SELECT ALL 91 + - 43 * 28 + - 93 * + 11 + + 13 + 75 - - - 21
----
-2069

query I rowsort
SELECT ALL 49 + + 16
----
65

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-958
SELECT COUNT( * ) DIV COUNT( ALL + 28 ) - + 36 + - COUNT( * ) + + 60 AS col1
----
24

skipif mysql # not compatible
query I rowsort label-958
SELECT COUNT ( * ) / COUNT ( ALL + 28 ) - + 36 + - COUNT ( * ) + + 60 AS col1
----
24

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

query II rowsort
SELECT - COALESCE ( 49, - 55 ) * + 54 AS col2, 39 AS col0
----
-2646
39

query I rowsort
SELECT + ( + 20 ) * - 83
----
-1660

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-963
SELECT ALL 60 * + - 12 + - COALESCE ( + CASE 78 WHEN - 6 * ( - 33 ) + + 67 THEN NULL ELSE + COUNT( * ) * - MIN( COALESCE ( - 34, + 87 ) ) END, + - 30 + 5 DIV + 68 ) AS col2
----
-754

skipif mysql # not compatible
query I rowsort label-963
SELECT ALL 60 * + - 12 + - COALESCE ( + CASE 78 WHEN - 6 * ( - 33 ) + + 67 THEN NULL ELSE + COUNT ( * ) * - MIN ( COALESCE ( - 34, + 87 ) ) END, + - 30 + 5 / + 68 ) AS col2
----
-754

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-965
SELECT ( - + NULLIF ( + - 91, + COUNT( * ) ) ) col1
----
91

skipif mysql # not compatible
query I rowsort label-965
SELECT ( - + NULLIF ( + - 91, + COUNT ( * ) ) ) col1
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-966
SELECT DISTINCT 22 * + + NULLIF ( + MIN( + + NULLIF ( - + 3, - 73 ) ), - COUNT( * ) ) + - 76 AS col1
----
-142

skipif mysql # not compatible
query I rowsort label-966
SELECT DISTINCT 22 * + + NULLIF ( + MIN ( + + NULLIF ( - + 3, - 73 ) ), - COUNT ( * ) ) + - 76 AS col1
----
-142

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

query I rowsort
SELECT ALL + 63 col2
----
63

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-969
SELECT CAST( - 30 AS SIGNED ) DIV + + 38 - + - 65 col0, 67
----
65
67

skipif mysql # not compatible
query II rowsort label-969
SELECT CAST ( - 30 AS INTEGER ) / + + 38 - + - 65 col0, 67
----
65
67

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-970
SELECT ALL 97 * - COUNT( DISTINCT + 66 ) + COUNT( * ) + + - 6 + + 70 * CAST( - 92 AS SIGNED ) + - ( + CAST( 26 AS SIGNED ) ) col1
----
-6568

skipif mysql # not compatible
query I rowsort label-970
SELECT ALL 97 * - COUNT ( DISTINCT + 66 ) + COUNT ( * ) + + - 6 + + 70 * CAST ( - 92 AS INTEGER ) + - ( + CAST ( 26 AS INTEGER ) ) col1
----
-6568

onlyif mysql # aggregate syntax: 
query I rowsort label-971
SELECT CASE 65 WHEN + 70 + 24 + ( + 88 ) + + 13 + + COUNT( * ) + - 77 / 69 THEN + 10 WHEN 22 THEN - 76 END
----
NULL

skipif mysql # not compatible
query I rowsort label-971
SELECT CASE 65 WHEN + 70 + 24 + ( + 88 ) + + 13 + + COUNT ( * ) + - 77 / 69 THEN + 10 WHEN 22 THEN - 76 END
----
NULL

query I rowsort
SELECT ALL + - 3 AS col1
----
-3

query I rowsort
SELECT ( 78 ) * + 2 + 51 + - 13 + - 67 AS col1
----
127

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-974
SELECT + 47 * - 99 AS col1, + COUNT( * ) * + - COUNT( * ) * + + COUNT( * ) - + 78 + + CAST( NULL AS SIGNED ) / + - 37
----
-4653
NULL

skipif mysql # not compatible
query II rowsort label-974
SELECT + 47 * - 99 AS col1, + COUNT ( * ) * + - COUNT ( * ) * + + COUNT ( * ) - + 78 + + CAST ( NULL AS INTEGER ) / + - 37
----
-4653
NULL

query I rowsort
SELECT + 0 + 10 col1
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-976
SELECT ALL + ( 47 ) * - COUNT( DISTINCT - 52 ) AS col1
----
-47

skipif mysql # not compatible
query I rowsort label-976
SELECT ALL + ( 47 ) * - COUNT ( DISTINCT - 52 ) AS col1
----
-47

query I rowsort
SELECT DISTINCT 88 * - + 13 AS col2
----
-1144

onlyif mysql # DIV for integer division: 
query I rowsort label-978
SELECT DISTINCT - 25 DIV - 35 col1
----
0

skipif mysql # not compatible
query I rowsort label-978
SELECT DISTINCT - 25 / - 35 col1
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-979
SELECT ALL - SUM( DISTINCT 10 ) AS col0, + COUNT( * ) col1
----
-10
1

skipif mysql # not compatible
query II rowsort label-979
SELECT ALL - SUM ( DISTINCT 10 ) AS col0, + COUNT ( * ) col1
----
-10
1

onlyif mysql # aggregate syntax: 
query I rowsort label-980
SELECT + - 87 + + + 80 + + 61 + + 38 * COUNT( * ) AS col2
----
92

skipif mysql # not compatible
query I rowsort label-980
SELECT + - 87 + + + 80 + + 61 + + 38 * COUNT ( * ) AS col2
----
92

query III rowsort
SELECT - 88 AS col2, 61 * - + ( - - 46 ) col0, + 85
----
-88
-2806
85

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-982
SELECT - 99, - 49 + + 48 + 49 / ( - + 51 ) * + 92 * + ( + NULLIF ( - 14, 37 ) ) + + CAST( NULL AS SIGNED ) AS col0
----
-99
NULL

skipif mysql # not compatible
query II rowsort label-982
SELECT - 99, - 49 + + 48 + 49 / ( - + 51 ) * + 92 * + ( + NULLIF ( - 14, 37 ) ) + + CAST ( NULL AS INTEGER ) AS col0
----
-99
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-983
SELECT + ( COUNT( * ) ) * - 11 + + 79 AS col0
----
68

skipif mysql # not compatible
query I rowsort label-983
SELECT + ( COUNT ( * ) ) * - 11 + + 79 AS col0
----
68

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-984
SELECT ALL - 24 + COALESCE ( - 88, COUNT( * ) DIV - 36 * + 8 - - + 3 * - CAST( NULL AS SIGNED ) ) + 74
----
-38

skipif mysql # not compatible
query I rowsort label-984
SELECT ALL - 24 + COALESCE ( - 88, COUNT ( * ) / - 36 * + 8 - - + 3 * - CAST ( NULL AS INTEGER ) ) + 74
----
-38

query I rowsort
SELECT ALL + 69 + + - 87
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-986
SELECT ALL + 24 + COUNT( ALL - - 44 ) + - 42
----
-17

skipif mysql # not compatible
query I rowsort label-986
SELECT ALL + 24 + COUNT ( ALL - - 44 ) + - 42
----
-17

query I rowsort
SELECT ALL - 70 + 25
----
-45

query I rowsort
SELECT + 19 * 29 AS col2
----
551

query I rowsort
SELECT - 37 + - + 79 col0
----
-116

query I rowsort
SELECT 7 col2
----
7

query I rowsort
SELECT 12 * + - 52 AS col0
----
-624

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-992
SELECT DISTINCT - ( - CAST( + 71 AS SIGNED ) ) AS col2
----
71

skipif mysql # not compatible
query I rowsort label-992
SELECT DISTINCT - ( - CAST ( + 71 AS INTEGER ) ) AS col2
----
71

query II rowsort
SELECT ALL - 25 + - 82 + 92, 53 AS col1
----
-15
53

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-994
SELECT + 12 * + CAST( NULL AS SIGNED ) / + MIN( 45 ) + - 76
----
NULL

skipif mysql # not compatible
query I rowsort label-994
SELECT + 12 * + CAST ( NULL AS INTEGER ) / + MIN ( 45 ) + - 76
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-996
SELECT ALL + - 6 * + NULLIF ( + ( - 74 ), COUNT( * ) * - 9 * + - COUNT( ALL - 9 ) ) * 52 + + + 19 AS col2
----
23107

skipif mysql # not compatible
query I rowsort label-996
SELECT ALL + - 6 * + NULLIF ( + ( - 74 ), COUNT ( * ) * - 9 * + - COUNT ( ALL - 9 ) ) * 52 + + + 19 AS col2
----
23107

query I rowsort
SELECT DISTINCT - - COALESCE ( - 6, - 25 + 31 ) - 23
----
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-998
SELECT COUNT( * ) + + 83 + + 78 AS col0
----
162

skipif mysql # not compatible
query I rowsort label-998
SELECT COUNT ( * ) + + 83 + + 78 AS col0
----
162

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-999
SELECT + 14 * - CAST( - - 1 AS SIGNED ) * - COALESCE ( + + ( - 5 ), + 45 + + 98 * + COUNT( * ) + + 98, + COUNT( * ), - 52 ) + - COUNT( + 72 ) + + SUM( DISTINCT - 39 ) + + NULLIF ( - 8, + + 14 + - - 91 ) AS col2
----
-118

skipif mysql # not compatible
query I rowsort label-999
SELECT + 14 * - CAST ( - - 1 AS INTEGER ) * - COALESCE ( + + ( - 5 ), + 45 + + 98 * + COUNT ( * ) + + 98, + COUNT ( * ), - 52 ) + - COUNT ( + 72 ) + + SUM ( DISTINCT - 39 ) + + NULLIF ( - 8, + + 14 + - - 91 ) AS col2
----
-118

query I rowsort
SELECT + 93 * + 63 - + 6 - - 37
----
5890

onlyif mysql # aggregate syntax: 
query I rowsort label-1001
SELECT ALL - + COALESCE ( - + 78, + 99 + ( - + COALESCE ( COUNT( * ), - 83 + + 1 ) ) * 99 ) AS col2
----
78

skipif mysql # not compatible
query I rowsort label-1001
SELECT ALL - + COALESCE ( - + 78, + 99 + ( - + COALESCE ( COUNT ( * ), - 83 + + 1 ) ) * 99 ) AS col2
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-1002
SELECT ALL - 96 * CASE + + COUNT( * ) WHEN - 56 * + 92 THEN + MIN( + 50 ) + - 80 + + 83 WHEN - - 72 THEN - + 80 ELSE 10 * + + 77 * + + 91 + 23 END
----
-6728928

skipif mysql # not compatible
query I rowsort label-1002
SELECT ALL - 96 * CASE + + COUNT ( * ) WHEN - 56 * + 92 THEN + MIN ( + 50 ) + - 80 + + 83 WHEN - - 72 THEN - + 80 ELSE 10 * + + 77 * + + 91 + 23 END
----
-6728928

query I rowsort
SELECT NULLIF ( + 16, + 58 ) AS col1
----
16

query I rowsort
SELECT ALL 60 * - 98 + - + 77
----
-5957

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1005
SELECT DISTINCT - - ( - 59 ) DIV + COUNT( * ) AS col1
----
-59

skipif mysql # not compatible
query I rowsort label-1005
SELECT DISTINCT - - ( - 59 ) / + COUNT ( * ) AS col1
----
-59

query I rowsort
SELECT ALL 78 * 83
----
6474

query I rowsort
SELECT 63 * - 8
----
-504

onlyif mysql # aggregate syntax: 
query II rowsort label-1008
SELECT ALL 17 + - 78 col1, 97 * + 42 * + ( - 61 ) * + + COUNT( ALL 83 ) AS col2
----
-61
-248514

skipif mysql # not compatible
query II rowsort label-1008
SELECT ALL 17 + - 78 col1, 97 * + 42 * + ( - 61 ) * + + COUNT ( ALL 83 ) AS col2
----
-61
-248514

query I rowsort
SELECT - NULLIF ( - - 43, + - 48 )
----
-43

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1011
SELECT 43 * NULLIF ( NULLIF ( + 4, + ( MIN( - 32 ) ) * 46 ), - 36 + + - COUNT( * ) ) + - + 25 DIV - 80 AS col1
----
172

skipif mysql # not compatible
query I rowsort label-1011
SELECT 43 * NULLIF ( NULLIF ( + 4, + ( MIN ( - 32 ) ) * 46 ), - 36 + + - COUNT ( * ) ) + - + 25 / - 80 AS col1
----
172

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

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

query I rowsort
SELECT DISTINCT - COALESCE ( - 86, ( - - 26 ) ) col0
----
86

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1014
SELECT + CAST( NULL AS SIGNED ) * 62 * 6 * - + 50
----
NULL

skipif mysql # not compatible
query I rowsort label-1014
SELECT + CAST ( NULL AS INTEGER ) * 62 * 6 * - + 50
----
NULL

query I rowsort
SELECT ALL 14 + - + 99
----
-85

query I rowsort
SELECT 2 * + 42
----
84

query II rowsort
SELECT ALL 8 * + 83 * - 70 AS col2, 45
----
-46480
45

query I rowsort
SELECT 12 - - 59
----
71

query I rowsort
SELECT - 66 col2
----
-66

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1020
SELECT ALL - COUNT( * ) - 96 + 65 DIV - 26
----
-99

skipif mysql # not compatible
query I rowsort label-1020
SELECT ALL - COUNT ( * ) - 96 + 65 / - 26
----
-99

query I rowsort
SELECT 92 * - 23 AS col2
----
-2116

query I rowsort
SELECT ALL 72 * - + 35 AS col2
----
-2520

query I rowsort
SELECT 2 + - 90
----
-88

query I rowsort
SELECT DISTINCT 7 * - 41
----
-287

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1026
SELECT SUM( - 54 ) DIV - COUNT( * ) - - + 60 AS col0
----
114

skipif mysql # not compatible
query I rowsort label-1026
SELECT SUM ( - 54 ) / - COUNT ( * ) - - + 60 AS col0
----
114

onlyif mysql # aggregate syntax: 
query I rowsort label-1027
SELECT COUNT( ALL + 42 )
----
1

skipif mysql # not compatible
query I rowsort label-1027
SELECT COUNT ( ALL + 42 )
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1028
SELECT CAST( - COUNT( * ) AS SIGNED ) + + ( + COUNT( 28 ) )
----
0

skipif mysql # not compatible
query I rowsort label-1028
SELECT CAST ( - COUNT ( * ) AS INTEGER ) + + ( + COUNT ( 28 ) )
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-1029
SELECT 29 DIV 43 - + 81
----
-81

skipif mysql # not compatible
query I rowsort label-1029
SELECT 29 / 43 - + 81
----
-81

query I rowsort
SELECT DISTINCT - - 61 AS col0
----
61

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1032
SELECT DISTINCT - + 44, MAX( ALL + 89 ) col2
----
-44
89

skipif mysql # not compatible
query II rowsort label-1032
SELECT DISTINCT - + 44, MAX ( ALL + 89 ) col2
----
-44
89

query I rowsort
SELECT ALL - 39 * - 13 * + 31 AS col1
----
15717

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1034
SELECT + COUNT( + CAST( NULL AS SIGNED ) ) + 33 + + 59 AS col0
----
92

skipif mysql # not compatible
query I rowsort label-1034
SELECT + COUNT ( + CAST ( NULL AS INTEGER ) ) + 33 + + 59 AS col0
----
92

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

skipif mysql # not compatible
query I rowsort label-1035
SELECT ALL + + 23 + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT 11 + 66
----
77

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1038
SELECT ALL MAX( ( - - 26 ) ) + + 85
----
111

skipif mysql # not compatible
query I rowsort label-1038
SELECT ALL MAX ( ( - - 26 ) ) + + 85
----
111

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1039
SELECT ALL + COUNT( * ) AS col0, + 16 + - + 81 DIV + + 36 + + + 48
----
1
62

skipif mysql # not compatible
query II rowsort label-1039
SELECT ALL + COUNT ( * ) AS col0, + 16 + - + 81 / + + 36 + + + 48
----
1
62

query I rowsort
SELECT ALL 26 * - 27 col1
----
-702

query II rowsort
SELECT 77 + + 27 - + 37 * + - 21 AS col2, - NULLIF ( + 8, - 94 ) col0
----
881
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-1042
SELECT ALL - 70 + - + 78 * - - MIN( - 15 ) * 10
----
11630

skipif mysql # not compatible
query I rowsort label-1042
SELECT ALL - 70 + - + 78 * - - MIN ( - 15 ) * 10
----
11630

query I rowsort
SELECT DISTINCT 73 * - + 14 AS col2
----
-1022

query I rowsort
SELECT 64 + 33 + - 88 + 28
----
37

onlyif mysql # DIV for integer division: 
query I rowsort label-1045
SELECT 67 DIV - 76
----
0

skipif mysql # not compatible
query I rowsort label-1045
SELECT 67 / - 76
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1046
SELECT - CASE - - 84 WHEN + COUNT( * ) * + COALESCE ( + - 19, - MAX( ( 30 ) ) ) + - COUNT( * ) THEN - - 25 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1046
SELECT - CASE - - 84 WHEN + COUNT ( * ) * + COALESCE ( + - 19, - MAX ( ( 30 ) ) ) + - COUNT ( * ) THEN - - 25 ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1047
SELECT ALL AVG ( - ( + 3 ) ) - + COUNT( + 94 ) * - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1047
SELECT ALL AVG ( - ( + 3 ) ) - + COUNT ( + 94 ) * - CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1048
SELECT + ( - + 89 ) DIV CAST( 24 AS SIGNED ) AS col1
----
-3

skipif mysql # not compatible
query I rowsort label-1048
SELECT + ( - + 89 ) / CAST ( 24 AS INTEGER ) AS col1
----
-3

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1049
SELECT + 42 * - 51 AS col0, 75 DIV COUNT( * ) * 23 * 75
----
-2142
129375

skipif mysql # not compatible
query II rowsort label-1049
SELECT + 42 * - 51 AS col0, 75 / COUNT ( * ) * 23 * 75
----
-2142
129375

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1050
SELECT + 60 + + - CAST( NULL AS DECIMAL ) / + 14
----
NULL

skipif mysql # not compatible
query I rowsort label-1050
SELECT + 60 + + - CAST ( NULL AS REAL ) / + 14
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1051
SELECT - COUNT( - - 35 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-1051
SELECT - COUNT ( - - 35 ) AS col1
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1052
SELECT + ( - CAST( - COUNT( * ) AS SIGNED ) ) + + ( + - 38 )
----
-37

skipif mysql # not compatible
query I rowsort label-1052
SELECT + ( - CAST ( - COUNT ( * ) AS INTEGER ) ) + + ( + - 38 )
----
-37

query I rowsort
SELECT + 6 - 11 col2
----
-5

query I rowsort
SELECT + 12 * + 61
----
732

query I rowsort
SELECT - 30 + + + 19 AS col2
----
-11

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1059
SELECT DISTINCT - - COUNT( * ) * + + 52 + - 20 * - 87 * + - 9 AS col2
----
-15608

skipif mysql # not compatible
query I rowsort label-1059
SELECT DISTINCT - - COUNT ( * ) * + + 52 + - 20 * - 87 * + - 9 AS col2
----
-15608

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1061
SELECT ALL + + COUNT( DISTINCT 69 ) * - COUNT( * ) + + 91 * + 19
----
1728

skipif mysql # not compatible
query I rowsort label-1061
SELECT ALL + + COUNT ( DISTINCT 69 ) * - COUNT ( * ) + + 91 * + 19
----
1728

query I rowsort
SELECT - NULLIF ( + ( - 43 ), 84 + + 48 - + + COALESCE ( - 24, - - 93, 30 ) - + - 40 - 98 / + 85 ) col2
----
43

query I rowsort
SELECT - 25 + + 28 * - 6
----
-193

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

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

query I rowsort
SELECT - 38 + - - 74
----
36

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1067
SELECT + CASE + + 20 WHEN + 13 THEN + + CAST( NULL AS SIGNED ) ELSE NULL END * + - 70, - 45 AS col0
----
NULL
-45

skipif mysql # not compatible
query II rowsort label-1067
SELECT + CASE + + 20 WHEN + 13 THEN + + CAST ( NULL AS INTEGER ) ELSE NULL END * + - 70, - 45 AS col0
----
NULL
-45

onlyif mysql # aggregate syntax: 
query II rowsort label-1068
SELECT ALL - 94 * 69 + + + 96 + + COUNT( * ) AS col2, 59 AS col2
----
-6389
59

skipif mysql # not compatible
query II rowsort label-1068
SELECT ALL - 94 * 69 + + + 96 + + COUNT ( * ) AS col2, 59 AS col2
----
-6389
59

query I rowsort
SELECT - - 47 * - 79
----
-3713

query I rowsort
SELECT DISTINCT + - 46 * - 22 * - 74 * 83 AS col1
----
-6215704

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1071
SELECT DISTINCT 29 * CAST( NULL AS SIGNED ) * - COUNT( * ) + - 99
----
NULL

skipif mysql # not compatible
query I rowsort label-1071
SELECT DISTINCT 29 * CAST ( NULL AS INTEGER ) * - COUNT ( * ) + - 99
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1072
SELECT ALL - CASE 58 WHEN - COUNT( * ) THEN NULL WHEN - + COALESCE ( - 42, + - MAX( 12 ), + + 13 * - + 9 + - 79 ) + - + 77 THEN + - 51 END * 22 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1072
SELECT ALL - CASE 58 WHEN - COUNT ( * ) THEN NULL WHEN - + COALESCE ( - 42, + - MAX ( 12 ), + + 13 * - + 9 + - 79 ) + - + 77 THEN + - 51 END * 22 AS col0
----
NULL

query I rowsort
SELECT DISTINCT - 83 * + 19
----
-1577

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1076
SELECT + CAST( NULL AS SIGNED ) * - NULLIF ( + 91, + + 35 ) - + ( - + 40 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1076
SELECT + CAST ( NULL AS INTEGER ) * - NULLIF ( + 91, + + 35 ) - + ( - + 40 ) AS col0
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1078
SELECT - 99 AS col1, MIN( - 50 )
----
-99
-50

skipif mysql # not compatible
query II rowsort label-1078
SELECT - 99 AS col1, MIN ( - 50 )
----
-99
-50

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

query I rowsort
SELECT ALL + 66 * + + 42 AS col1
----
2772

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1081
SELECT - 66 - + - CAST( + + 70 AS SIGNED )
----
4

skipif mysql # not compatible
query I rowsort label-1081
SELECT - 66 - + - CAST ( + + 70 AS INTEGER )
----
4

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1083
SELECT ALL CASE - 10 WHEN - 81 THEN + 3 - 91 + + 85 END * - + 58 / + + 96, - COUNT( * ) col0
----
NULL
-1

skipif mysql # not compatible
query II rowsort label-1083
SELECT ALL CASE - 10 WHEN - 81 THEN + 3 - 91 + + 85 END * - + 58 / + + 96, - COUNT ( * ) col0
----
NULL
-1

query I rowsort
SELECT + 60 * - 48 * - - 33
----
-95040

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

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

query I rowsort
SELECT - ( - 35 ) + + + CASE + + 23 WHEN - 7 - + 26 * 68 THEN + - 75 ELSE + 47 END AS col0
----
82

onlyif mysql # DIV for integer division: 
query I rowsort label-1087
SELECT + 13 DIV 39
----
0

skipif mysql # not compatible
query I rowsort label-1087
SELECT + 13 / 39
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1088
SELECT ALL NULLIF ( - + 45, 24 ) * - 31 * NULLIF ( + + 84, - - 30 * COUNT( * ) * CAST( + 80 AS SIGNED ) + - 74 / + 90 )
----
117180

skipif mysql # not compatible
query I rowsort label-1088
SELECT ALL NULLIF ( - + 45, 24 ) * - 31 * NULLIF ( + + 84, - - 30 * COUNT ( * ) * CAST ( + 80 AS INTEGER ) + - 74 / + 90 )
----
117180

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1089
SELECT - CAST( NULL AS SIGNED ) * - ( 69 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1089
SELECT - CAST ( NULL AS INTEGER ) * - ( 69 ) AS col2
----
NULL

query II rowsort
SELECT - 83 + + ( + - 38 ), + 69 AS col1
----
-121
69

query I rowsort
SELECT + 89 - 75 + - 56
----
-42

query II rowsort
SELECT ALL 84 col1, 4
----
84
4

onlyif mysql # DIV for integer division: 
query I rowsort label-1093
SELECT + 77 DIV - 82 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-1093
SELECT + 77 / - 82 AS col0
----
0

query II rowsort
SELECT ALL + COALESCE ( 84, - - 11, - + 63 ) * CASE 40 WHEN 85 THEN - 43 + - 69 + + COALESCE ( 50, - 1 * - - 63, 79 ) END + 96 AS col2, + ( + 1 )
----
NULL
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1095
SELECT ALL - 9 DIV - 68 + COUNT( ALL - 31 )
----
1

skipif mysql # not compatible
query I rowsort label-1095
SELECT ALL - 9 / - 68 + COUNT ( ALL - 31 )
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-1096
SELECT + - 3 DIV 16 - - 13 AS col0
----
13

skipif mysql # not compatible
query I rowsort label-1096
SELECT + - 3 / 16 - - 13 AS col0
----
13

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1097
SELECT - - 69 DIV - - COUNT( * ) + 55
----
124

skipif mysql # not compatible
query I rowsort label-1097
SELECT - - 69 / - - COUNT ( * ) + 55
----
124

query II rowsort
SELECT ALL + 59 AS col0, + 48
----
59
48

query I rowsort
SELECT + 53 + + - 52
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1100
SELECT + MIN( + 51 ) col1
----
51

skipif mysql # not compatible
query I rowsort label-1100
SELECT + MIN ( + 51 ) col1
----
51

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

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

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

skipif mysql # not compatible
query I rowsort label-1102
SELECT - - MAX ( DISTINCT 89 ) * + - AVG ( ALL + + CAST ( NULL AS INTEGER ) ) AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1103
SELECT ALL 19 / 6 / 26 + - 55 + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-1103
SELECT ALL 19 / 6 / 26 + - 55 + + CAST ( NULL AS INTEGER )
----
NULL

query II rowsort
SELECT 79, 83 AS col1
----
79
83

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

query I rowsort
SELECT ALL + COALESCE ( + 78, - 91 ) col1
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-1107
SELECT - ( - 11 ) * MAX( + 37 ) - + COUNT( DISTINCT 75 )
----
406

skipif mysql # not compatible
query I rowsort label-1107
SELECT - ( - 11 ) * MAX ( + 37 ) - + COUNT ( DISTINCT 75 )
----
406

query II rowsort
SELECT DISTINCT + - 28 AS col0, 36 AS col1
----
-28
36

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1109
SELECT ALL ( 17 ) / + CAST( NULL AS SIGNED ) + 83 * 40 + - - 56 * + COUNT( 40 ) + 16 + - 25 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1109
SELECT ALL ( 17 ) / + CAST ( NULL AS INTEGER ) + 83 * 40 + - - 56 * + COUNT ( 40 ) + 16 + - 25 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1110
SELECT + + 39 * SUM( - 30 ) + + - 28 - 42
----
-1240

skipif mysql # not compatible
query I rowsort label-1110
SELECT + + 39 * SUM ( - 30 ) + + - 28 - 42
----
-1240

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1111
SELECT - CAST( NULL AS SIGNED ) * - + 29 + 23 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1111
SELECT - CAST ( NULL AS INTEGER ) * - + 29 + 23 col0
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1113
SELECT 6 * 62 - + + ( COUNT( * ) ) * - 5 * 22
----
482

skipif mysql # not compatible
query I rowsort label-1113
SELECT 6 * 62 - + + ( COUNT ( * ) ) * - 5 * 22
----
482

query I rowsort
SELECT + ( - 31 ) * + 72 * - + 95 + - + 12 + - 94 * 14
----
210712

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1115
SELECT 12 - + COUNT( * ) + 98 + - COUNT( * ) DIV + 99 + SUM( DISTINCT + 65 ) + - ( + COUNT( * ) ) - CAST( - 32 AS SIGNED ) DIV ( - 42 ) * + - 2 * 62 * + 85 + - + COUNT( + - 54 )
----
172

skipif mysql # not compatible
query I rowsort label-1115
SELECT 12 - + COUNT ( * ) + 98 + - COUNT ( * ) / + 99 + SUM ( DISTINCT + 65 ) + - ( + COUNT ( * ) ) - CAST ( - 32 AS INTEGER ) / ( - 42 ) * + - 2 * 62 * + 85 + - + COUNT ( + - 54 )
----
172

onlyif mysql # aggregate syntax: 
query I rowsort label-1116
SELECT ALL + COUNT( * ) - + 50 * - 12
----
601

skipif mysql # not compatible
query I rowsort label-1116
SELECT ALL + COUNT ( * ) - + 50 * - 12
----
601

query II rowsort
SELECT ALL - 22 AS col0, - 41
----
-22
-41

query I rowsort
SELECT ALL - 80 * + - 49 AS col1
----
3920

query I rowsort
SELECT 2 + - 61
----
-59

query I rowsort
SELECT 8 * - + 51 * 7
----
-2856

query I rowsort
SELECT 12 + + 47
----
59

query II rowsort
SELECT - 62 AS col0, 18 * + 53 AS col2
----
-62
954

onlyif mysql # aggregate syntax: 
query I rowsort label-1123
SELECT 18 * + 37 * - COALESCE ( - 29, - + 98 ) * COUNT( * ) + + 81 col0
----
19395

skipif mysql # not compatible
query I rowsort label-1123
SELECT 18 * + 37 * - COALESCE ( - 29, - + 98 ) * COUNT ( * ) + + 81 col0
----
19395

query II rowsort
SELECT 98 + + 82 col2, 98 AS col0
----
180
98

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-1126
SELECT DISTINCT 79 AS col0, - 73 DIV - 78
----
79
0

skipif mysql # not compatible
query II rowsort label-1126
SELECT DISTINCT 79 AS col0, - 73 / - 78
----
79
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1127
SELECT ALL CAST( - COUNT( DISTINCT - 30 ) AS SIGNED ) + + 44 * - 98 * + - 44 AS col0, 2 * - 71
----
189727
-142

skipif mysql # not compatible
query II rowsort label-1127
SELECT ALL CAST ( - COUNT ( DISTINCT - 30 ) AS INTEGER ) + + 44 * - 98 * + - 44 AS col0, 2 * - 71
----
189727
-142

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1129
SELECT DISTINCT + + 54 + - 64 DIV + COUNT( * )
----
-10

skipif mysql # not compatible
query I rowsort label-1129
SELECT DISTINCT + + 54 + - 64 / + COUNT ( * )
----
-10

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1130
SELECT ALL + + SUM( - - 57 ) + - - 35 DIV - 22 AS col0, + COUNT( * ) AS col0
----
56
1

skipif mysql # not compatible
query II rowsort label-1130
SELECT ALL + + SUM ( - - 57 ) + - - 35 / - 22 AS col0, + COUNT ( * ) AS col0
----
56
1

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1134
SELECT + COALESCE ( + 15, - COUNT( * ) ) + + 89 / + + ( - CASE + 2 WHEN + - COUNT( * ) + - 62 THEN CASE 34 WHEN - 10 THEN + MAX( DISTINCT 29 ) * - - 86 / - - 47 WHEN + 34 THEN NULL ELSE NULL END * + 41 + - 80 WHEN + 99 * 15 THEN NULL END ) * + COUNT( * ) + - 18
----
NULL

skipif mysql # not compatible
query I rowsort label-1134
SELECT + COALESCE ( + 15, - COUNT ( * ) ) + + 89 / + + ( - CASE + 2 WHEN + - COUNT ( * ) + - 62 THEN CASE 34 WHEN - 10 THEN + MAX ( DISTINCT 29 ) * - - 86 / - - 47 WHEN + 34 THEN NULL ELSE NULL END * + 41 + - 80 WHEN + 99 * 15 THEN NULL END ) * + COUNT ( * ) + - 18
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1135
SELECT + COUNT( * ) AS col0, 28 * + + 0 - 39 col0
----
1
-39

skipif mysql # not compatible
query II rowsort label-1135
SELECT + COUNT ( * ) AS col0, 28 * + + 0 - 39 col0
----
1
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-1136
SELECT DISTINCT - 58 + + 2 + - COALESCE ( + ( + - ( - 23 ) ), 63 * - - COUNT( * ) + - - 79 * + - 10, - - 19 * - ( - - 71 ) ) * + COUNT( + + 15 ) AS col2
----
-79

skipif mysql # not compatible
query I rowsort label-1136
SELECT DISTINCT - 58 + + 2 + - COALESCE ( + ( + - ( - 23 ) ), 63 * - - COUNT ( * ) + - - 79 * + - 10, - - 19 * - ( - - 71 ) ) * + COUNT ( + + 15 ) AS col2
----
-79

query I rowsort
SELECT + 78 * 27
----
2106

onlyif mysql # aggregate syntax: 
query I rowsort label-1138
SELECT ALL - COALESCE ( MIN( DISTINCT - 42 ), - 49 ) - - COUNT( * )
----
43

skipif mysql # not compatible
query I rowsort label-1138
SELECT ALL - COALESCE ( MIN ( DISTINCT - 42 ), - 49 ) - - COUNT ( * )
----
43

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1139
SELECT + - 7 DIV - + 10 + + 62 + - COUNT( * ) AS col1
----
61

skipif mysql # not compatible
query I rowsort label-1139
SELECT + - 7 / - + 10 + + 62 + - COUNT ( * ) AS col1
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-1140
SELECT MIN( - - 16 ) * + 46
----
736

skipif mysql # not compatible
query I rowsort label-1140
SELECT MIN ( - - 16 ) * + 46
----
736

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1141
SELECT - CAST( NULL AS SIGNED ) * + - NULLIF ( - 35, + 97 ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1141
SELECT - CAST ( NULL AS INTEGER ) * + - NULLIF ( - 35, + 97 ) col0
----
NULL

query I rowsort
SELECT 32 * 93
----
2976

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1143
SELECT + COUNT( * ), CASE ( 33 ) WHEN - - CAST( CAST( NULL AS SIGNED ) AS SIGNED ) THEN - - NULLIF ( - 90, + 39 ) + - 86 END AS col1
----
1
NULL

skipif mysql # not compatible
query II rowsort label-1143
SELECT + COUNT ( * ), CASE ( 33 ) WHEN - - CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) THEN - - NULLIF ( - 90, + 39 ) + - 86 END AS col1
----
1
NULL

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

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

query I rowsort
SELECT 11 * - 21 + 27
----
-204

onlyif mysql # aggregate syntax: 
query I rowsort label-1146
SELECT DISTINCT NULLIF ( + 74, + COUNT( * ) * + 85 + + COUNT( * ) + - - 56 / + 50 * - 47 ) * - + ( - - 32 )
----
-2368

skipif mysql # not compatible
query I rowsort label-1146
SELECT DISTINCT NULLIF ( + 74, + COUNT ( * ) * + 85 + + COUNT ( * ) + - - 56 / + 50 * - 47 ) * - + ( - - 32 )
----
-2368

onlyif mysql # aggregate syntax: 
query II rowsort label-1147
SELECT ( + + COUNT( * ) ) * + 46, - 78 * 46 AS col2
----
46
-3588

skipif mysql # not compatible
query II rowsort label-1147
SELECT ( + + COUNT ( * ) ) * + 46, - 78 * 46 AS col2
----
46
-3588

query I rowsort
SELECT DISTINCT - 70 col1
----
-70

query II rowsort
SELECT 83 - ( - 17 ) AS col0, 82
----
100
82

onlyif mysql # DIV for integer division: 
query I rowsort label-1150
SELECT 18 DIV 5 AS col0
----
3

skipif mysql # not compatible
query I rowsort label-1150
SELECT 18 / 5 AS col0
----
3

query I rowsort
SELECT ALL 17 col2
----
17

query I rowsort
SELECT 43 + 3 AS col0
----
46

onlyif mysql # DIV for integer division: 
query I rowsort label-1153
SELECT 33 DIV - 33
----
-1

skipif mysql # not compatible
query I rowsort label-1153
SELECT 33 / - 33
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-1154
SELECT 37 - + COUNT( * ) AS col1, 26
----
36
26

skipif mysql # not compatible
query II rowsort label-1154
SELECT 37 - + COUNT ( * ) AS col1, 26
----
36
26

query I rowsort
SELECT DISTINCT 94 * + + 39
----
3666

query I rowsort
SELECT 46 - + 22 + - + ( + 3 )
----
21

query I rowsort
SELECT - NULLIF ( + + 84, + 63 ) AS col2
----
-84

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1158
SELECT ALL - 81 * 6 AS col2, 72 DIV - 55 - + 91 * + COUNT( * ) + - 72 AS col2
----
-486
-164

skipif mysql # not compatible
query II rowsort label-1158
SELECT ALL - 81 * 6 AS col2, 72 / - 55 - + 91 * + COUNT ( * ) + - 72 AS col2
----
-486
-164

onlyif mysql # aggregate syntax: 
query I rowsort label-1159
SELECT 83 * + 77 * - 83 + + 4 + - 91 + - + 50 + + 69 * + COUNT( * ) AS col0
----
-530521

skipif mysql # not compatible
query I rowsort label-1159
SELECT 83 * + 77 * - 83 + + 4 + - 91 + - + 50 + + 69 * + COUNT ( * ) AS col0
----
-530521

onlyif mysql # aggregate syntax: 
query II rowsort label-1160
SELECT 63 * - + COUNT( * ) AS col2, - 31 + + + 38 + + 94 * - + COALESCE ( 49, - 10, + - 68 * - COUNT( * ) + + - 14 - - 38 )
----
-63
-4599

skipif mysql # not compatible
query II rowsort label-1160
SELECT 63 * - + COUNT ( * ) AS col2, - 31 + + + 38 + + 94 * - + COALESCE ( 49, - 10, + - 68 * - COUNT ( * ) + + - 14 - - 38 )
----
-63
-4599

query I rowsort
SELECT DISTINCT - 29 - + 61 AS col2
----
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-1162
SELECT DISTINCT - + 2 * - + 94 * - ( + NULLIF ( - - COUNT( ALL + 44 ), + 97 ) ) AS col1
----
-188

skipif mysql # not compatible
query I rowsort label-1162
SELECT DISTINCT - + 2 * - + 94 * - ( + NULLIF ( - - COUNT ( ALL + 44 ), + 97 ) ) AS col1
----
-188

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1164
SELECT 74 DIV - 72 + - 54 AS col1
----
-55

skipif mysql # not compatible
query I rowsort label-1164
SELECT 74 / - 72 + - 54 AS col1
----
-55

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1165
SELECT - + SUM( - ( + + CAST( NULL AS DECIMAL ) ) ) + 40 + - CASE - 99 WHEN + COUNT( * ) + - + 38 THEN NULL WHEN 92 + + 74 + ( - CAST( - + 65 AS SIGNED ) ) * - 19 THEN - MIN( + + 61 ) * + - 58 - COUNT( * ) ELSE + 63 END + - + 21 * - 22 * COUNT( + 5 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1165
SELECT - + SUM ( - ( + + CAST ( NULL AS REAL ) ) ) + 40 + - CASE - 99 WHEN + COUNT ( * ) + - + 38 THEN NULL WHEN 92 + + 74 + ( - CAST ( - + 65 AS INTEGER ) ) * - 19 THEN - MIN ( + + 61 ) * + - 58 - COUNT ( * ) ELSE + 63 END + - + 21 * - 22 * COUNT ( + 5 ) AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1166
SELECT - + 41 DIV ( - 96 ) DIV - MAX( DISTINCT + + 85 ) + + + 46 + + + 35 - 48 AS col2
----
33

skipif mysql # not compatible
query I rowsort label-1166
SELECT - + 41 / ( - 96 ) / - MAX ( DISTINCT + + 85 ) + + + 46 + + + 35 - 48 AS col2
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-1167
SELECT + - 36 * - + 33 * - + 49 * + CASE 50 WHEN - 21 + 0 + - COUNT( * ) THEN NULL WHEN + 99 * - 43 + - - 35 THEN - 75 ELSE NULL END * - - 51 * + 0 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1167
SELECT + - 36 * - + 33 * - + 49 * + CASE 50 WHEN - 21 + 0 + - COUNT ( * ) THEN NULL WHEN + 99 * - 43 + - - 35 THEN - 75 ELSE NULL END * - - 51 * + 0 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1168
SELECT - - 24 + + 72 - COUNT( ALL + + 11 ) + 72 - 33 * + 77
----
-2374

skipif mysql # not compatible
query I rowsort label-1168
SELECT - - 24 + + 72 - COUNT ( ALL + + 11 ) + 72 - 33 * + 77
----
-2374

onlyif mysql # aggregate syntax: 
query I rowsort label-1169
SELECT ALL - - 59 * 58 + + 78 * 92 * - + 87 * - 20 * + 54 + - SUM( ALL 5 ) + COUNT( * )
----
674260378

skipif mysql # not compatible
query I rowsort label-1169
SELECT ALL - - 59 * 58 + + 78 * 92 * - + 87 * - 20 * + 54 + - SUM ( ALL 5 ) + COUNT ( * )
----
674260378

query I rowsort
SELECT ALL + + 95 col2
----
95

onlyif mysql # aggregate syntax: 
query I rowsort label-1171
SELECT - MIN( 95 ) * COUNT( * )
----
-95

skipif mysql # not compatible
query I rowsort label-1171
SELECT - MIN ( 95 ) * COUNT ( * )
----
-95

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1173
SELECT + 75 * - 9 + - COALESCE ( + 79, + CAST( + 99 AS SIGNED ) )
----
-754

skipif mysql # not compatible
query I rowsort label-1173
SELECT + 75 * - 9 + - COALESCE ( + 79, + CAST ( + 99 AS INTEGER ) )
----
-754

onlyif mysql # aggregate syntax: 
query I rowsort label-1174
SELECT MIN( - 73 )
----
-73

skipif mysql # not compatible
query I rowsort label-1174
SELECT MIN ( - 73 )
----
-73

query I rowsort
SELECT + 96 * + 73
----
7008

onlyif mysql # aggregate syntax: 
query I rowsort label-1176
SELECT ALL - 27 * 61 + - - 98 * - COUNT( * )
----
-1745

skipif mysql # not compatible
query I rowsort label-1176
SELECT ALL - 27 * 61 + - - 98 * - COUNT ( * )
----
-1745

onlyif mysql # aggregate syntax: 
query I rowsort label-1177
SELECT - 8 + - + 97 * + - 27 * + + 30 * 36 * COUNT( DISTINCT + 21 ) * 36 * + 18 AS col0
----
1832880952

skipif mysql # not compatible
query I rowsort label-1177
SELECT - 8 + - + 97 * + - 27 * + + 30 * 36 * COUNT ( DISTINCT + 21 ) * 36 * + 18 AS col0
----
1832880952

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1178
SELECT - 84 + - - 79 + 69 * - - 16 DIV COUNT( * ) + + COALESCE ( + 89, + ( - COUNT( ALL + CAST( - ( - + 81 ) AS SIGNED ) ) ) * - - 0 DIV + 96 ) + - - 44 + - 38
----
1194

skipif mysql # not compatible
query I rowsort label-1178
SELECT - 84 + - - 79 + 69 * - - 16 / COUNT ( * ) + + COALESCE ( + 89, + ( - COUNT ( ALL + CAST ( - ( - + 81 ) AS INTEGER ) ) ) * - - 0 / + 96 ) + - - 44 + - 38
----
1194

onlyif mysql # aggregate syntax: 
query I rowsort label-1179
SELECT SUM( - 41 )
----
-41

skipif mysql # not compatible
query I rowsort label-1179
SELECT SUM ( - 41 )
----
-41

query I rowsort
SELECT 54 * - - 66 + - 82 + + - 78 AS col0
----
3404

query I rowsort
SELECT ALL 6 * - ( + 85 ) + + 36 AS col2
----
-474

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1182
SELECT DISTINCT - CASE - + COUNT( * ) WHEN + CAST( NULL AS SIGNED ) * + - 52 + - 98 + - - 85 + - COALESCE ( + COUNT( * ), + + 54 + + 98 ) THEN + 3 / 55 END * + 83 + 77
----
NULL

skipif mysql # not compatible
query I rowsort label-1182
SELECT DISTINCT - CASE - + COUNT ( * ) WHEN + CAST ( NULL AS INTEGER ) * + - 52 + - 98 + - - 85 + - COALESCE ( + COUNT ( * ), + + 54 + + 98 ) THEN + 3 / 55 END * + 83 + 77
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1183
SELECT DISTINCT + COUNT( + + 54 ) * - 12 DIV 39 + + + 23 * + - 97 col1
----
-2231

skipif mysql # not compatible
query I rowsort label-1183
SELECT DISTINCT + COUNT ( + + 54 ) * - 12 / 39 + + + 23 * + - 97 col1
----
-2231

onlyif mysql # aggregate syntax: 
query II rowsort label-1184
SELECT ALL ( + 37 ) + COUNT( * ) * 78 AS col0, - 26 * - 48 AS col1
----
115
1248

skipif mysql # not compatible
query II rowsort label-1184
SELECT ALL ( + 37 ) + COUNT ( * ) * 78 AS col0, - 26 * - 48 AS col1
----
115
1248

onlyif mysql # aggregate syntax: 
query II rowsort label-1185
SELECT ALL + 62 AS col1, - 8 + - SUM( 77 ) AS col2
----
62
-85

skipif mysql # not compatible
query II rowsort label-1185
SELECT ALL + 62 AS col1, - 8 + - SUM ( 77 ) AS col2
----
62
-85

query I rowsort
SELECT + 30 + + - 11
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-1187
SELECT MAX( ( + 71 ) ) AS col2
----
71

skipif mysql # not compatible
query I rowsort label-1187
SELECT MAX ( ( + 71 ) ) AS col2
----
71

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1188
SELECT DISTINCT 53 + + 6 - 35 + - + CAST( NULL AS SIGNED ) / + + COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1188
SELECT DISTINCT 53 + + 6 - 35 + - + CAST ( NULL AS INTEGER ) / + + COUNT ( * ) AS col2
----
NULL

query II rowsort
SELECT 90 AS col1, 69 AS col0
----
90
69

onlyif mysql # aggregate syntax: 
query I rowsort label-1190
SELECT ALL MIN( DISTINCT - + 80 ) + 9 + - 46
----
-117

skipif mysql # not compatible
query I rowsort label-1190
SELECT ALL MIN ( DISTINCT - + 80 ) + 9 + - 46
----
-117

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1191
SELECT + + CAST( NULL AS SIGNED ) * + CAST( - + ( + 88 ) AS SIGNED ) / - + 46 * CAST( + 86 AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-1191
SELECT + + CAST ( NULL AS INTEGER ) * + CAST ( - + ( + 88 ) AS INTEGER ) / - + 46 * CAST ( + 86 AS REAL )
----
NULL

query I rowsort
SELECT + - 41 * - 38 AS col2
----
1558

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1193
SELECT MIN( - + ( - 2 ) ) AS col1, + 53 DIV - CAST( 68 AS SIGNED )
----
2
0

skipif mysql # not compatible
query II rowsort label-1193
SELECT MIN ( - + ( - 2 ) ) AS col1, + 53 / - CAST ( 68 AS INTEGER )
----
2
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1194
SELECT - + CASE + NULLIF ( - 21, 37 ) WHEN - + 0 THEN + 33 END + - CAST( NULL AS SIGNED ) + + + COUNT( * ) - + - 91 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1194
SELECT - + CASE + NULLIF ( - 21, 37 ) WHEN - + 0 THEN + 33 END + - CAST ( NULL AS INTEGER ) + + + COUNT ( * ) - + - 91 col2
----
NULL

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

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

query I rowsort
SELECT ALL 93 - - 70 * 91 * - 77 * - 88
----
43163213

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1197
SELECT + 33 * - - 68 + - COUNT( 10 ) DIV + + COALESCE ( + CASE + - ( + 76 ) WHEN - 80 THEN NULL ELSE + - 28 END, - + 18 ) + - 94 * + 67 * 66 col0
----
-413424

skipif mysql # not compatible
query I rowsort label-1197
SELECT + 33 * - - 68 + - COUNT ( 10 ) / + + COALESCE ( + CASE + - ( + 76 ) WHEN - 80 THEN NULL ELSE + - 28 END, - + 18 ) + - 94 * + 67 * 66 col0
----
-413424

query I rowsort
SELECT ALL - - 49 - - 66 AS col0
----
115

onlyif mysql # aggregate syntax: 
query I rowsort label-1199
SELECT ALL COUNT( + 50 ) col2
----
1

skipif mysql # not compatible
query I rowsort label-1199
SELECT ALL COUNT ( + 50 ) col2
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1200
SELECT + - CASE - 20 WHEN + 33 * + ( 18 ) / - 92 / + - COUNT( * ) + 13 - - - COUNT( * ) + - 77 THEN NULL ELSE - 57 * - CAST( NULL AS SIGNED ) + + 33 + + 74 * + 7 END + - 2 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1200
SELECT + - CASE - 20 WHEN + 33 * + ( 18 ) / - 92 / + - COUNT ( * ) + 13 - - - COUNT ( * ) + - 77 THEN NULL ELSE - 57 * - CAST ( NULL AS INTEGER ) + + 33 + + 74 * + 7 END + - 2 AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1201
SELECT ALL + + 37 * - + CAST( NULL AS SIGNED ) / 40 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1201
SELECT ALL + + 37 * - + CAST ( NULL AS INTEGER ) / 40 AS col2
----
NULL

query I rowsort
SELECT ALL + 9 * 28 + + NULLIF ( - 58, 38 * + + 27 + 66 * + 19 * 22 + 95 + 9 ) AS col2
----
194

query I rowsort
SELECT + - 45 * 87 AS col1
----
-3915

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-1204
SELECT - CAST( NULL AS DECIMAL ), 58 AS col0
----
NULL
58

skipif mysql # not compatible
query II rowsort label-1204
SELECT - CAST ( NULL AS REAL ), 58 AS col0
----
NULL
58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1205
SELECT - 37 AS col0, + MAX( + - 74 ) * + - 55 DIV CAST( - COUNT( * ) AS SIGNED ) + 48 - - 10 + + 31 * - 27 * - 89 * - + 35
----
-37
-2611267

skipif mysql # not compatible
query II rowsort label-1205
SELECT - 37 AS col0, + MAX ( + - 74 ) * + - 55 / CAST ( - COUNT ( * ) AS INTEGER ) + 48 - - 10 + + 31 * - 27 * - 89 * - + 35
----
-37
-2611267

query I rowsort
SELECT - 91 + + 97 - + + 67 AS col1
----
-61

query I rowsort
SELECT - - 3
----
3

query I rowsort
SELECT - NULLIF ( + 32, 18 ) + - - 18
----
-14

query I rowsort
SELECT DISTINCT + 57 * - 21
----
-1197

query I rowsort
SELECT ALL + + 41 AS col1
----
41

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1212
SELECT ALL 90 DIV 48 + - CAST( - COUNT( * ) AS SIGNED ) AS col0
----
2

skipif mysql # not compatible
query I rowsort label-1212
SELECT ALL 90 / 48 + - CAST ( - COUNT ( * ) AS INTEGER ) AS col0
----
2

query II rowsort
SELECT ( 82 ) AS col0, - COALESCE ( - - 89, 18 )
----
82
-89

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1214
SELECT - 60 DIV COUNT( * ) * - 77 col0
----
4620

skipif mysql # not compatible
query I rowsort label-1214
SELECT - 60 / COUNT ( * ) * - 77 col0
----
4620

query II rowsort
SELECT ALL - CASE - 61 WHEN - 48 THEN - 84 ELSE - - ( + 59 ) * + - 54 END * - 65 + 13 AS col2, 67
----
-207077
67

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

query I rowsort
SELECT ALL + 59 * 75 * - 33 AS col2
----
-146025

onlyif mysql # DIV for integer division: 
query I rowsort label-1218
SELECT - 30 DIV + - 94 col0
----
0

skipif mysql # not compatible
query I rowsort label-1218
SELECT - 30 / + - 94 col0
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-1219
SELECT ALL 42 DIV 90, 67 AS col2
----
0
67

skipif mysql # not compatible
query II rowsort label-1219
SELECT ALL 42 / 90, 67 AS col2
----
0
67

onlyif mysql # aggregate syntax: 
query I rowsort label-1220
SELECT + CASE + SUM( DISTINCT + 98 ) WHEN 39 * + 22 THEN 9 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1220
SELECT + CASE + SUM ( DISTINCT + 98 ) WHEN 39 * + 22 THEN 9 ELSE NULL END
----
NULL

query I rowsort
SELECT DISTINCT + ( + 19 ) col1
----
19

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1222
SELECT ALL - CAST( - ( - - 14 ) AS SIGNED ) * - COUNT( * ) + - - 6 * - ( + - 87 )
----
508

skipif mysql # not compatible
query I rowsort label-1222
SELECT ALL - CAST ( - ( - - 14 ) AS INTEGER ) * - COUNT ( * ) + - - 6 * - ( + - 87 )
----
508

onlyif mysql # aggregate syntax: 
query II rowsort label-1223
SELECT - 18 - COUNT( * ), MAX( ALL + 30 ) col2
----
-19
30

skipif mysql # not compatible
query II rowsort label-1223
SELECT - 18 - COUNT ( * ), MAX ( ALL + 30 ) col2
----
-19
30

query II rowsort
SELECT + COALESCE ( 33, - 20, 28 ) AS col1, + 99 * - 91 + - 90
----
33
-9099

onlyif mysql # aggregate syntax: 
query I rowsort label-1225
SELECT - 94 - - COUNT( * ) + 9
----
-84

skipif mysql # not compatible
query I rowsort label-1225
SELECT - 94 - - COUNT ( * ) + 9
----
-84

onlyif mysql # DIV for integer division: 
query I rowsort label-1226
SELECT + COALESCE ( + 30, - - 38 ) DIV 42
----
0

skipif mysql # not compatible
query I rowsort label-1226
SELECT + COALESCE ( + 30, - - 38 ) / 42
----
0

query I rowsort
SELECT 23 * 50 + 22 AS col2
----
1172

onlyif mysql # aggregate syntax: 
query II rowsort label-1228
SELECT + 64 * + 5 + - - 84 + - 50 AS col0, + COUNT( * ) AS col1
----
354
1

skipif mysql # not compatible
query II rowsort label-1228
SELECT + 64 * + 5 + - - 84 + - 50 AS col0, + COUNT ( * ) AS col1
----
354
1

query I rowsort
SELECT DISTINCT 80 col1
----
80

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1231
SELECT ALL - NULLIF ( + - 49, + 46 ) * MIN( DISTINCT + - 66 ) AS col1
----
-3234

skipif mysql # not compatible
query I rowsort label-1231
SELECT ALL - NULLIF ( + - 49, + 46 ) * MIN ( DISTINCT + - 66 ) AS col1
----
-3234

query II rowsort
SELECT + - 35 - + 8, - 13 AS col0
----
-43
-13

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1233
SELECT DISTINCT CASE + - NULLIF ( + CAST( - 39 AS SIGNED ), - 25 / - + NULLIF ( - ( + + 22 ), 57 + + 12 * 22 * 63 * + - COUNT( * ) ) ) WHEN - - COUNT( * ) * 64 + - 71 THEN NULL WHEN - 31 THEN + 44 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1233
SELECT DISTINCT CASE + - NULLIF ( + CAST ( - 39 AS INTEGER ), - 25 / - + NULLIF ( - ( + + 22 ), 57 + + 12 * 22 * 63 * + - COUNT ( * ) ) ) WHEN - - COUNT ( * ) * 64 + - 71 THEN NULL WHEN - 31 THEN + 44 ELSE NULL END
----
NULL

query I rowsort
SELECT + + 60 - + 58 + 94 col0
----
96

query I rowsort
SELECT ALL NULLIF ( - + 42, 69 )
----
-42

query I rowsort
SELECT - CASE 11 WHEN - 50 + 54 + - 84 + 54 THEN NULL WHEN 11 THEN NULL ELSE + 78 END * 16 / - 15
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1238
SELECT - MAX( - 81 ), 51 - + 45 + 35 * - COUNT( * ) col0
----
81
-29

skipif mysql # not compatible
query II rowsort label-1238
SELECT - MAX ( - 81 ), 51 - + 45 + 35 * - COUNT ( * ) col0
----
81
-29

query I rowsort
SELECT 41 + 58 + + 90 col1
----
189

query I rowsort
SELECT 30 - - 39
----
69

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

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

query I rowsort
SELECT ALL + 5 col2
----
5

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

query I rowsort
SELECT DISTINCT 34 + + + 15 * + 24
----
394

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1245
SELECT COUNT( * ) * 26 DIV 75 col2
----
0

skipif mysql # not compatible
query I rowsort label-1245
SELECT COUNT ( * ) * 26 / 75 col2
----
0

query I rowsort
SELECT ALL 26 + - + 23
----
3

query II rowsort
SELECT + 89, 93 AS col0
----
89
93

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1248
SELECT CAST( + COUNT( * ) AS SIGNED ) + - + CAST( - + 64 AS SIGNED ) col1
----
65

skipif mysql # not compatible
query I rowsort label-1248
SELECT CAST ( + COUNT ( * ) AS INTEGER ) + - + CAST ( - + 64 AS INTEGER ) col1
----
65

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1249
SELECT ALL - CASE - 79 WHEN - - 80 * 31 THEN - 35 ELSE 79 * + - COUNT( ALL - - 63 ) + - 45 END * + - CAST( NULLIF ( + - CAST( NULL AS SIGNED ), 57 + 16 ) AS SIGNED ) * - + 47 AS col0, 86
----
NULL
86

skipif mysql # not compatible
query II rowsort label-1249
SELECT ALL - CASE - 79 WHEN - - 80 * 31 THEN - 35 ELSE 79 * + - COUNT ( ALL - - 63 ) + - 45 END * + - CAST ( NULLIF ( + - CAST ( NULL AS INTEGER ), 57 + 16 ) AS INTEGER ) * - + 47 AS col0, 86
----
NULL
86

query I rowsort
SELECT 37 * - 53
----
-1961

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1251
SELECT 81 * + 14 - COUNT( * ) DIV 63 DIV + - COUNT( * ) AS col2
----
1134

skipif mysql # not compatible
query I rowsort label-1251
SELECT 81 * + 14 - COUNT ( * ) / 63 / + - COUNT ( * ) AS col2
----
1134

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1253
SELECT - 92 / - CAST( NULL AS DECIMAL ) + + 39 * - 30 * 17 * 1
----
NULL

skipif mysql # not compatible
query I rowsort label-1253
SELECT - 92 / - CAST ( NULL AS REAL ) + + 39 * - 30 * 17 * 1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1254
SELECT DISTINCT - CASE 98 WHEN + - 74 + 3 THEN COUNT( 50 ) WHEN + COUNT( * ) THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1254
SELECT DISTINCT - CASE 98 WHEN + - 74 + 3 THEN COUNT ( 50 ) WHEN + COUNT ( * ) THEN NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1255
SELECT DISTINCT - SUM( ALL + - 47 ) AS col1
----
47

skipif mysql # not compatible
query I rowsort label-1255
SELECT DISTINCT - SUM ( ALL + - 47 ) AS col1
----
47

query I rowsort
SELECT ALL + 54 - 21 - 94 * - - 82 AS col2
----
-7675

query I rowsort
SELECT - 29 * + 32 + - 26 + - - 68
----
-886

query I rowsort
SELECT 53 * 13
----
689

query I rowsort
SELECT NULLIF ( - - 39, ( 69 ) ) * + 6 + 54 + + + 32 AS col0
----
320

query I rowsort
SELECT ALL + 27 * - 70
----
-1890

onlyif mysql # aggregate syntax: 
query I rowsort label-1261
SELECT SUM( DISTINCT - - 16 ) + - 63
----
-47

skipif mysql # not compatible
query I rowsort label-1261
SELECT SUM ( DISTINCT - - 16 ) + - 63
----
-47

query I rowsort
SELECT DISTINCT + 37 - + 55
----
-18

query I rowsort
SELECT ALL - 87 col1
----
-87

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1264
SELECT ALL + 28 * + CAST( 10 AS SIGNED )
----
280

skipif mysql # not compatible
query I rowsort label-1264
SELECT ALL + 28 * + CAST ( 10 AS INTEGER )
----
280

onlyif mysql # aggregate syntax: 
query I rowsort label-1265
SELECT + 90 * + 62 + 47 * COUNT( * )
----
5627

skipif mysql # not compatible
query I rowsort label-1265
SELECT + 90 * + 62 + 47 * COUNT ( * )
----
5627

onlyif mysql # aggregate syntax: 
query I rowsort label-1266
SELECT DISTINCT - 65 * - COUNT( * ) AS col0
----
65

skipif mysql # not compatible
query I rowsort label-1266
SELECT DISTINCT - 65 * - COUNT ( * ) AS col0
----
65

query I rowsort
SELECT DISTINCT + 10 * 94
----
940

onlyif mysql # aggregate syntax: 
query I rowsort label-1268
SELECT CASE + COUNT( * ) WHEN COUNT( * ) THEN - 39 * - 33 END + + 0 col2
----
1287

skipif mysql # not compatible
query I rowsort label-1268
SELECT CASE + COUNT ( * ) WHEN COUNT ( * ) THEN - 39 * - 33 END + + 0 col2
----
1287

onlyif mysql # DIV for integer division: 
query I rowsort label-1269
SELECT 87 DIV 26
----
3

skipif mysql # not compatible
query I rowsort label-1269
SELECT 87 / 26
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1270
SELECT 58 + - CAST( + 27 AS SIGNED )
----
31

skipif mysql # not compatible
query I rowsort label-1270
SELECT 58 + - CAST ( + 27 AS INTEGER )
----
31

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1271
SELECT + CAST( - ( 81 ) AS SIGNED ) * COUNT( * ) + COUNT( * ) * + 19
----
-62

skipif mysql # not compatible
query I rowsort label-1271
SELECT + CAST ( - ( 81 ) AS INTEGER ) * COUNT ( * ) + COUNT ( * ) * + 19
----
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-1272
SELECT 6 + + MIN( DISTINCT + 5 - - ( + 53 ) ) * SUM( + 25 ) AS col2
----
1456

skipif mysql # not compatible
query I rowsort label-1272
SELECT 6 + + MIN ( DISTINCT + 5 - - ( + 53 ) ) * SUM ( + 25 ) AS col2
----
1456

query I rowsort
SELECT ALL 86 + + 53
----
139

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

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

query I rowsort
SELECT DISTINCT - 66 + - 54 AS col1
----
-120

onlyif mysql # aggregate syntax: 
query I rowsort label-1276
SELECT DISTINCT CASE + COUNT( * ) WHEN + 48 THEN + 9 WHEN ( COUNT( * ) ) * 68 THEN - 69 ELSE NULL END * 46
----
NULL

skipif mysql # not compatible
query I rowsort label-1276
SELECT DISTINCT CASE + COUNT ( * ) WHEN + 48 THEN + 9 WHEN ( COUNT ( * ) ) * 68 THEN - 69 ELSE NULL END * 46
----
NULL

query I rowsort
SELECT ALL 39 + + ( + ( - 75 ) )
----
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-1278
SELECT 2 + SUM( - 14 ) * 96 AS col2
----
-1342

skipif mysql # not compatible
query I rowsort label-1278
SELECT 2 + SUM ( - 14 ) * 96 AS col2
----
-1342

query I rowsort
SELECT ALL - 48 + + 68 * 37
----
2468

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1280
SELECT NULLIF ( + 4, 54 * - 79 ) + CAST( NULL AS DECIMAL ) * 58
----
NULL

skipif mysql # not compatible
query I rowsort label-1280
SELECT NULLIF ( + 4, 54 * - 79 ) + CAST ( NULL AS REAL ) * 58
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1281
SELECT COUNT( * ) + - COUNT( * ) col0
----
0

skipif mysql # not compatible
query I rowsort label-1281
SELECT COUNT ( * ) + - COUNT ( * ) col0
----
0

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1283
SELECT COALESCE ( MIN( + 92 ), + 87, - 43 ) DIV COALESCE ( 25 * + 59, COUNT( * ), - 47 * - 19 + 98 )
----
0

skipif mysql # not compatible
query I rowsort label-1283
SELECT COALESCE ( MIN ( + 92 ), + 87, - 43 ) / COALESCE ( 25 * + 59, COUNT ( * ), - 47 * - 19 + 98 )
----
0

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1284
SELECT CAST( NULL AS DECIMAL ) + ( + COUNT( * ) ) * 88 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1284
SELECT CAST ( NULL AS REAL ) + ( + COUNT ( * ) ) * 88 col0
----
NULL

query I rowsort
SELECT DISTINCT + 76 * 12
----
912

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1286
SELECT DISTINCT - 85 * - 24 + CAST( 51 AS SIGNED )
----
2091

skipif mysql # not compatible
query I rowsort label-1286
SELECT DISTINCT - 85 * - 24 + CAST ( 51 AS INTEGER )
----
2091

query I rowsort
SELECT DISTINCT 66 * 45
----
2970

onlyif mysql # DIV for integer division: 
query I rowsort label-1288
SELECT DISTINCT 78 DIV 32
----
2

skipif mysql # not compatible
query I rowsort label-1288
SELECT DISTINCT 78 / 32
----
2

query I rowsort
SELECT 11 * 80
----
880

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1290
SELECT 17 DIV NULLIF ( - COUNT( * ), 75 * - 52 )
----
-17

skipif mysql # not compatible
query I rowsort label-1290
SELECT 17 / NULLIF ( - COUNT ( * ), 75 * - 52 )
----
-17

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1292
SELECT DISTINCT 30 * COUNT( * ) col0
----
30

skipif mysql # not compatible
query I rowsort label-1292
SELECT DISTINCT 30 * COUNT ( * ) col0
----
30

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

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

query I rowsort
SELECT 62 + + 28
----
90

query I rowsort
SELECT ALL 65 * + 93 AS col1
----
6045

query I rowsort
SELECT DISTINCT 24 * 1 AS col0
----
24

query I rowsort
SELECT ALL - COALESCE ( - 45, 75 ) col2
----
45

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1299
SELECT ALL - - NULLIF ( + 64, + 15 * COUNT( * ) ) col1
----
64

skipif mysql # not compatible
query I rowsort label-1299
SELECT ALL - - NULLIF ( + 64, + 15 * COUNT ( * ) ) col1
----
64

query I rowsort
SELECT - 52 * 88 AS col2
----
-4576

query I rowsort
SELECT + 22 * 77
----
1694

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

query I rowsort
SELECT ALL + + 5
----
5

query I rowsort
SELECT + + 79 * + 25 + 30
----
2005

query I rowsort
SELECT - + 41 * 65 AS col0
----
-2665

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1306
SELECT + CAST( 92 AS SIGNED ) * 48 + - COALESCE ( 84 + 19, 6, + SUM( ALL 97 ) + - 75 ) AS col1
----
4313

skipif mysql # not compatible
query I rowsort label-1306
SELECT + CAST ( 92 AS INTEGER ) * 48 + - COALESCE ( 84 + 19, 6, + SUM ( ALL 97 ) + - 75 ) AS col1
----
4313

query I rowsort
SELECT DISTINCT 0 AS col2
----
0

query I rowsort
SELECT ALL 71 + 73 AS col0
----
144

query I rowsort
SELECT ALL - 97 + - 96
----
-193

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1313
SELECT - NULLIF ( 46, 75 ) + - COUNT( * )
----
-47

skipif mysql # not compatible
query I rowsort label-1313
SELECT - NULLIF ( 46, 75 ) + - COUNT ( * )
----
-47

query I rowsort
SELECT ALL - - 59 + 67 AS col2
----
126

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1315
SELECT - CASE - 1 WHEN - COUNT( * ) THEN - COALESCE ( CASE + 1 WHEN + 20 THEN - 27 + 46 DIV COUNT( * ) WHEN 4 THEN + COALESCE ( 6, MAX( - 14 ) * CASE 27 WHEN 36 THEN + COUNT( * ) * 92 ELSE + MAX( 85 ) END ) ELSE NULL END, + 17 ) ELSE - 55 END
----
17

skipif mysql # not compatible
query I rowsort label-1315
SELECT - CASE - 1 WHEN - COUNT ( * ) THEN - COALESCE ( CASE + 1 WHEN + 20 THEN - 27 + 46 / COUNT ( * ) WHEN 4 THEN + COALESCE ( 6, MAX ( - 14 ) * CASE 27 WHEN 36 THEN + COUNT ( * ) * 92 ELSE + MAX ( 85 ) END ) ELSE NULL END, + 17 ) ELSE - 55 END
----
17

query I rowsort
SELECT - - 70 AS col2
----
70

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

query I rowsort
SELECT - + 39 * 22
----
-858

query I rowsort
SELECT - + 81 + 26 * 33 AS col1
----
777

onlyif mysql # aggregate syntax: 
query I rowsort label-1320
SELECT + + 76 * + MAX( - 23 + 61 ) col2
----
2888

skipif mysql # not compatible
query I rowsort label-1320
SELECT + + 76 * + MAX ( - 23 + 61 ) col2
----
2888

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1322
SELECT ALL MIN( DISTINCT - + 72 ) AS col1
----
-72

skipif mysql # not compatible
query I rowsort label-1322
SELECT ALL MIN ( DISTINCT - + 72 ) AS col1
----
-72

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1324
SELECT DISTINCT CAST( - - ( + 65 ) AS SIGNED ) * MIN( 58 )
----
3770

skipif mysql # not compatible
query I rowsort label-1324
SELECT DISTINCT CAST ( - - ( + 65 ) AS INTEGER ) * MIN ( 58 )
----
3770

onlyif mysql # aggregate syntax: 
query I rowsort label-1325
SELECT ALL - COUNT( * ) - - 41 * 25 AS col1
----
1024

skipif mysql # not compatible
query I rowsort label-1325
SELECT ALL - COUNT ( * ) - - 41 * 25 AS col1
----
1024

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

skipif mysql # not compatible
query I rowsort label-1326
SELECT ALL - 54 - - CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT - 43 + + 86 AS col0
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-1328
SELECT DISTINCT - NULLIF ( - + COUNT( * ), - 43 ) * 79 col0
----
79

skipif mysql # not compatible
query I rowsort label-1328
SELECT DISTINCT - NULLIF ( - + COUNT ( * ), - 43 ) * 79 col0
----
79

query I rowsort
SELECT - 19 + - 61 * ( 59 ) AS col2
----
-3618

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1330
SELECT + CASE 85 WHEN + 9 * 79 THEN NULL WHEN + AVG ( CAST( 3 AS SIGNED ) ) THEN 4 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1330
SELECT + CASE 85 WHEN + 9 * 79 THEN NULL WHEN + AVG ( CAST ( 3 AS INTEGER ) ) THEN 4 END AS col0
----
NULL

query I rowsort
SELECT ALL 89 * + 14 col2
----
1246

onlyif mysql # DIV for integer division: 
query I rowsort label-1332
SELECT - 95 + - 75 + - 39 DIV + 75
----
-170

skipif mysql # not compatible
query I rowsort label-1332
SELECT - 95 + - 75 + - 39 / + 75
----
-170

query I rowsort
SELECT + COALESCE ( 98, COALESCE ( 92, + 67 * 90, 84 + - 22 ) )
----
98

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

query I rowsort
SELECT - 96 * + - 89 * - 0 + + 34 * + 74
----
2516

query I rowsort
SELECT DISTINCT - 37 * + + 95 AS col2
----
-3515

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

query I rowsort
SELECT ALL - NULLIF ( + + ( 58 ), 15 * 88 ) * - 5 AS col2
----
290

onlyif mysql # aggregate syntax: 
query I rowsort label-1339
SELECT MAX( DISTINCT + 92 ) * ( + 65 ) + 46
----
6026

skipif mysql # not compatible
query I rowsort label-1339
SELECT MAX ( DISTINCT + 92 ) * ( + 65 ) + 46
----
6026

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

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

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

query I rowsort
SELECT + COALESCE ( + 3, + 28 ) + - 23 col1
----
-20

query I rowsort
SELECT ALL 12 * - 31 AS col0
----
-372

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1344
SELECT + 17 + + 33 + + COUNT( * ) DIV ( 83 * ( - 39 ) ) AS col2
----
50

skipif mysql # not compatible
query I rowsort label-1344
SELECT + 17 + + 33 + + COUNT ( * ) / ( 83 * ( - 39 ) ) AS col2
----
50

onlyif mysql # DIV for integer division: 
query I rowsort label-1345
SELECT ALL 23 DIV + + 57
----
0

skipif mysql # not compatible
query I rowsort label-1345
SELECT ALL 23 / + + 57
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-1346
SELECT + + 31 DIV + 71 col1
----
0

skipif mysql # not compatible
query I rowsort label-1346
SELECT + + 31 / + 71 col1
----
0

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

skipif mysql # not compatible
query I rowsort label-1347
SELECT + 19 * + 93 + + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1348
SELECT ALL COUNT( * ) * - 16 DIV + 6
----
-2

skipif mysql # not compatible
query I rowsort label-1348
SELECT ALL COUNT ( * ) * - 16 / + 6
----
-2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1349
SELECT ALL + 53 * CAST( NULL AS SIGNED ) + + CASE - CASE 11 WHEN - 24 THEN 17 WHEN 3 * CASE + 20 * 60 WHEN + 49 / 8 THEN NULL WHEN + 22 THEN NULL ELSE CAST( NULL AS SIGNED ) * ( + 50 ) + + 61 END THEN NULL END + + COUNT( * ) * - 90 WHEN - 29 THEN NULLIF ( 12, - 81 + 25 ) WHEN + ( - 91 ) + 68 * 78 THEN 6 WHEN 12 THEN NULL END * - 93
----
NULL

skipif mysql # not compatible
query I rowsort label-1349
SELECT ALL + 53 * CAST ( NULL AS INTEGER ) + + CASE - CASE 11 WHEN - 24 THEN 17 WHEN 3 * CASE + 20 * 60 WHEN + 49 / 8 THEN NULL WHEN + 22 THEN NULL ELSE CAST ( NULL AS INTEGER ) * ( + 50 ) + + 61 END THEN NULL END + + COUNT ( * ) * - 90 WHEN - 29 THEN NULLIF ( 12, - 81 + 25 ) WHEN + ( - 91 ) + 68 * 78 THEN 6 WHEN 12 THEN NULL END * - 93
----
NULL

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

query I rowsort
SELECT ALL + NULLIF ( + - 22, 9 ) * 8
----
-176

query I rowsort
SELECT + + 29 * + - 67 * ( - 24 ) AS col2
----
46632

query I rowsort
SELECT - - 71 + + - 29
----
42

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1355
SELECT + + CAST( + - AVG ( + CAST( + 69 AS SIGNED ) ) AS SIGNED ) * - 71 AS col2
----
4899

skipif mysql # not compatible
query I rowsort label-1355
SELECT + + CAST ( + - AVG ( + CAST ( + 69 AS INTEGER ) ) AS INTEGER ) * - 71 AS col2
----
4899

onlyif mysql # DIV for integer division: 
query I rowsort label-1356
SELECT + 88 + - 57 DIV 86
----
88

skipif mysql # not compatible
query I rowsort label-1356
SELECT + 88 + - 57 / 86
----
88

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1358
SELECT + COALESCE ( 94, - 10, MAX( + CAST( NULL AS SIGNED ) ) ) + 75
----
169

skipif mysql # not compatible
query I rowsort label-1358
SELECT + COALESCE ( 94, - 10, MAX ( + CAST ( NULL AS INTEGER ) ) ) + 75
----
169

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1360
SELECT DISTINCT - CAST( NULL AS DECIMAL ) * - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-1360
SELECT DISTINCT - CAST ( NULL AS REAL ) * - COUNT ( * )
----
NULL

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

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

query I rowsort
SELECT - 55 + 56 + + - 89 AS col1
----
-88

query I rowsort
SELECT ALL - 31 * - 96 AS col2
----
2976

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1364
SELECT - 31 + + + 36 * + CASE COUNT( * ) WHEN 61 + + CASE + 67 + + 74 WHEN COUNT( * ) THEN NULL WHEN 16 THEN 90 * - CAST( 18 * NULLIF ( + 89 * 82, 63 ) AS SIGNED ) ELSE NULL END THEN NULL WHEN - 75 + 9 THEN - 52 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1364
SELECT - 31 + + + 36 * + CASE COUNT ( * ) WHEN 61 + + CASE + 67 + + 74 WHEN COUNT ( * ) THEN NULL WHEN 16 THEN 90 * - CAST ( 18 * NULLIF ( + 89 * 82, 63 ) AS INTEGER ) ELSE NULL END THEN NULL WHEN - 75 + 9 THEN - 52 END AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1365
SELECT ALL + CAST( - - ( - 26 ) AS SIGNED ) * 70
----
-1820

skipif mysql # not compatible
query I rowsort label-1365
SELECT ALL + CAST ( - - ( - 26 ) AS INTEGER ) * 70
----
-1820

onlyif mysql # aggregate syntax: 
query I rowsort label-1366
SELECT - COALESCE ( 18, - COALESCE ( + 15, 67 + - 86, - 10 * ( - COUNT( * ) ) ) ) + + 75
----
57

skipif mysql # not compatible
query I rowsort label-1366
SELECT - COALESCE ( 18, - COALESCE ( + 15, 67 + - 86, - 10 * ( - COUNT ( * ) ) ) ) + + 75
----
57

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1368
SELECT - 78 DIV + + 96 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-1368
SELECT - 78 / + + 96 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1369
SELECT - MAX( DISTINCT 8 ) * 84
----
-672

skipif mysql # not compatible
query I rowsort label-1369
SELECT - MAX ( DISTINCT 8 ) * 84
----
-672

onlyif mysql # aggregate syntax: 
query I rowsort label-1370
SELECT ALL ( + + COALESCE ( + - COALESCE ( 31, + COUNT( * ) ), 53, + ( 50 ) ) ) AS col1
----
-31

skipif mysql # not compatible
query I rowsort label-1370
SELECT ALL ( + + COALESCE ( + - COALESCE ( 31, + COUNT ( * ) ), 53, + ( 50 ) ) ) AS col1
----
-31

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

query I rowsort
SELECT + 78 + 2
----
80

onlyif mysql # DIV for integer division: 
query I rowsort label-1373
SELECT ALL + 68 DIV - 89 * + 4
----
0

skipif mysql # not compatible
query I rowsort label-1373
SELECT ALL + 68 / - 89 * + 4
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1374
SELECT - 24 * - + 25 * + 27 * - COUNT( * )
----
-16200

skipif mysql # not compatible
query I rowsort label-1374
SELECT - 24 * - + 25 * + 27 * - COUNT ( * )
----
-16200

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

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

query I rowsort
SELECT ALL + NULLIF ( + 85, + 69 + 73 )
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-1377
SELECT DISTINCT - 6 * - COUNT( * ) AS col2
----
6

skipif mysql # not compatible
query I rowsort label-1377
SELECT DISTINCT - 6 * - COUNT ( * ) AS col2
----
6

onlyif mysql # DIV for integer division: 
query I rowsort label-1378
SELECT ALL - 97 + + - 85 DIV - 30 AS col2
----
-95

skipif mysql # not compatible
query I rowsort label-1378
SELECT ALL - 97 + + - 85 / - 30 AS col2
----
-95

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1380
SELECT ALL + COALESCE ( - - ( 92 ), COUNT( * ) ) + 93 AS col2
----
185

skipif mysql # not compatible
query I rowsort label-1380
SELECT ALL + COALESCE ( - - ( 92 ), COUNT ( * ) ) + 93 AS col2
----
185

onlyif mysql # DIV for integer division: 
query I rowsort label-1381
SELECT 61 * - 75 + - - 30 DIV - 33 AS col0
----
-4575

skipif mysql # not compatible
query I rowsort label-1381
SELECT 61 * - 75 + - - 30 / - 33 AS col0
----
-4575

onlyif mysql # aggregate syntax: 
query I rowsort label-1382
SELECT ALL 0 + COUNT( * ) col1
----
1

skipif mysql # not compatible
query I rowsort label-1382
SELECT ALL 0 + COUNT ( * ) col1
----
1

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

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

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

query I rowsort
SELECT DISTINCT - + 17 + + - 15 * + + ( + 12 ) + + 39 AS col0
----
-158

query I rowsort
SELECT ALL - 80 + - 88 + 0 + 58 col0
----
-110

query I rowsort
SELECT + 97 * + + 23
----
2231

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1389
SELECT - 90, SUM( - 70 ) + 18 AS col0
----
-90
-52

skipif mysql # not compatible
query II rowsort label-1389
SELECT - 90, SUM ( - 70 ) + 18 AS col0
----
-90
-52

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

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

query I rowsort
SELECT ALL - - 89 AS col1
----
89

query I rowsort
SELECT - 64 + 96 - - 69 + 52 * - 88 * + 27 AS col1
----
-123451

onlyif mysql # aggregate syntax: 
query I rowsort label-1393
SELECT - MIN( DISTINCT 94 ) * - MIN( ( - 93 ) ) + - 93 AS col0
----
-8835

skipif mysql # not compatible
query I rowsort label-1393
SELECT - MIN ( DISTINCT 94 ) * - MIN ( ( - 93 ) ) + - 93 AS col0
----
-8835

query I rowsort
SELECT - 47 - + - 59 AS col0
----
12

query II rowsort
SELECT + - 41 AS col2, + 49 AS col1
----
-41
49

onlyif mysql # aggregate syntax: 
query II rowsort label-1396
SELECT ALL + COUNT( * ), - NULLIF ( 2, - AVG ( ALL 96 ) + + MIN( ALL COALESCE ( 24, - 16 + - 71, 85 - 10 ) + - 31 ) ) AS col0
----
1
-2

skipif mysql # not compatible
query II rowsort label-1396
SELECT ALL + COUNT ( * ), - NULLIF ( 2, - AVG ( ALL 96 ) + + MIN ( ALL COALESCE ( 24, - 16 + - 71, 85 - 10 ) + - 31 ) ) AS col0
----
1
-2

query I rowsort
SELECT ALL + 43 * - ( - 5 ) AS col1
----
215

query I rowsort
SELECT DISTINCT 78 - 6 AS col1
----
72

query I rowsort
SELECT DISTINCT 61 * - COALESCE ( - + 87, - 59, - 31 * + 14 ) * 20 AS col0
----
106140

query I rowsort
SELECT DISTINCT 79 * 81 AS col1
----
6399

query I rowsort
SELECT 11 * - 38
----
-418

query I rowsort
SELECT 46 * + 31 * + 13
----
18538

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1404
SELECT COALESCE ( - MAX( DISTINCT - 99 ), 58 * - 87, 34 ) * ( - MAX( ALL 66 ) )
----
-6534

skipif mysql # not compatible
query I rowsort label-1404
SELECT COALESCE ( - MAX ( DISTINCT - 99 ), 58 * - 87, 34 ) * ( - MAX ( ALL 66 ) )
----
-6534

query I rowsort
SELECT DISTINCT + 82 * + COALESCE ( + + 55, 85 )
----
4510

query I rowsort
SELECT DISTINCT 10 AS col0
----
10

query I rowsort
SELECT ALL + 64 + + 52 - - 43
----
159

onlyif mysql # aggregate syntax: 
query I rowsort label-1408
SELECT ALL ( COUNT( * ) ) * 35
----
35

skipif mysql # not compatible
query I rowsort label-1408
SELECT ALL ( COUNT ( * ) ) * 35
----
35

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1409
SELECT 42 + + 68 - - 85 DIV - - COUNT( * ) AS col1
----
195

skipif mysql # not compatible
query I rowsort label-1409
SELECT 42 + + 68 - - 85 / - - COUNT ( * ) AS col1
----
195

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1410
SELECT ALL + 65 + - 81, - CAST( - 15 AS SIGNED ) AS col1
----
-16
15

skipif mysql # not compatible
query II rowsort label-1410
SELECT ALL + 65 + - 81, - CAST ( - 15 AS INTEGER ) AS col1
----
-16
15

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1411
SELECT CAST( + 58 AS SIGNED ) + 18 + + 77 * + 40
----
3156

skipif mysql # not compatible
query I rowsort label-1411
SELECT CAST ( + 58 AS INTEGER ) + 18 + + 77 * + 40
----
3156

query I rowsort
SELECT 61 + - - 18 * + - 55 AS col1
----
-929

onlyif mysql # aggregate syntax: 
query I rowsort label-1413
SELECT + COUNT( * ) * + 16 + 6 AS col2
----
22

skipif mysql # not compatible
query I rowsort label-1413
SELECT + COUNT ( * ) * + 16 + 6 AS col2
----
22

query I rowsort
SELECT ALL + 65 + - 5 + - - 63 AS col1
----
123

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1415
SELECT + CASE + CAST( 86 AS DECIMAL ) WHEN - ( 46 ) THEN + 67 + + 47 ELSE NULL END * - 35
----
NULL

skipif mysql # not compatible
query I rowsort label-1415
SELECT + CASE + CAST ( 86 AS REAL ) WHEN - ( 46 ) THEN + 67 + + 47 ELSE NULL END * - 35
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1416
SELECT + NULLIF ( + 67, + + NULLIF ( + + 46, 66 - CASE WHEN 51 IN ( + 91 ) THEN + SUM( CAST( NULL AS SIGNED ) ) + - 92 ELSE - ( - 47 ) END ) ) / - CAST( NULL AS SIGNED ) + + NULLIF ( - COALESCE ( CAST( - 35 AS SIGNED ), + 6, COUNT( ALL 28 ) ), 75 + 14 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1416
SELECT + NULLIF ( + 67, + + NULLIF ( + + 46, 66 - CASE WHEN 51 IN ( + 91 ) THEN + SUM ( CAST ( NULL AS INTEGER ) ) + - 92 ELSE - ( - 47 ) END ) ) / - CAST ( NULL AS INTEGER ) + + NULLIF ( - COALESCE ( CAST ( - 35 AS INTEGER ), + 6, COUNT ( ALL 28 ) ), 75 + 14 )
----
NULL

query I rowsort
SELECT ALL - 90 + + ( + + 31 ) AS col0
----
-59

onlyif mysql # aggregate syntax: 
query II rowsort label-1418
SELECT DISTINCT + 32 + + + 54 AS col1, - COUNT( * ) AS col1
----
86
-1

skipif mysql # not compatible
query II rowsort label-1418
SELECT DISTINCT + 32 + + + 54 AS col1, - COUNT ( * ) AS col1
----
86
-1

query I rowsort
SELECT ALL - - 38 AS col0
----
38

query I rowsort
SELECT ALL + - 44 + - 90 + + - 34 AS col0
----
-168

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1422
SELECT 99 + COUNT( * ) AS col2, 19 + - + COUNT( 62 ) DIV - ( 34 * 90 ) col2
----
100
19

skipif mysql # not compatible
query II rowsort label-1422
SELECT 99 + COUNT ( * ) AS col2, 19 + - + COUNT ( 62 ) / - ( 34 * 90 ) col2
----
100
19

query II rowsort
SELECT 86 * - 79 AS col0, - 51
----
-6794
-51

query I rowsort
SELECT DISTINCT + + 14 * + 15 - 29 AS col1
----
181

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1425
SELECT ALL - + MIN( 56 ) - CASE - 52 WHEN 65 * + 83 THEN 9 * COUNT( * ) ELSE + CAST( + 23 AS SIGNED ) END + - CAST( + COUNT( * ) AS SIGNED )
----
-80

skipif mysql # not compatible
query I rowsort label-1425
SELECT ALL - + MIN ( 56 ) - CASE - 52 WHEN 65 * + 83 THEN 9 * COUNT ( * ) ELSE + CAST ( + 23 AS INTEGER ) END + - CAST ( + COUNT ( * ) AS INTEGER )
----
-80

query I rowsort
SELECT 78 * + + 55 + + + 49
----
4339

query I rowsort
SELECT - 47 * 43 + + 52 * + 18 * 72 AS col0
----
65371

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1428
SELECT CAST( + 10 AS SIGNED ) AS col2, 20 * 18 * + 61
----
10
21960

skipif mysql # not compatible
query II rowsort label-1428
SELECT CAST ( + 10 AS INTEGER ) AS col2, 20 * 18 * + 61
----
10
21960

query I rowsort
SELECT DISTINCT - - 23 AS col1
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-1430
SELECT DISTINCT - - COUNT( * ) - 98 - - 2 AS col2
----
-95

skipif mysql # not compatible
query I rowsort label-1430
SELECT DISTINCT - - COUNT ( * ) - 98 - - 2 AS col2
----
-95

query I rowsort
SELECT DISTINCT - 75 - 0
----
-75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1432
SELECT DISTINCT - COALESCE ( - - 36, - 50 + - 22 - 79, COALESCE ( 18, CAST( + ( COUNT( * ) ) AS SIGNED ) + COUNT( * ) ) ) AS col1
----
-36

skipif mysql # not compatible
query I rowsort label-1432
SELECT DISTINCT - COALESCE ( - - 36, - 50 + - 22 - 79, COALESCE ( 18, CAST ( + ( COUNT ( * ) ) AS INTEGER ) + COUNT ( * ) ) ) AS col1
----
-36

query I rowsort
SELECT ( + 32 ) * + + 23 AS col0
----
736

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: DIV for integer division: 
query I rowsort label-1434
SELECT ALL ( 93 ) DIV CASE - + COUNT( * ) WHEN + 93 * + 92 THEN - CASE - CAST( NULL AS DECIMAL ) WHEN + 87 DIV 94 + 64 THEN 61 + - 67 ELSE NULL END + + 7 DIV 6 WHEN - 40 THEN NULL ELSE CAST( 12 AS SIGNED ) + 95 * 37 END DIV - 90 + 30 * + 82 AS col0
----
2460

skipif mysql # not compatible
query I rowsort label-1434
SELECT ALL ( 93 ) / CASE - + COUNT ( * ) WHEN + 93 * + 92 THEN - CASE - CAST ( NULL AS REAL ) WHEN + 87 / 94 + 64 THEN 61 + - 67 ELSE NULL END + + 7 / 6 WHEN - 40 THEN NULL ELSE CAST ( 12 AS INTEGER ) + 95 * 37 END / - 90 + 30 * + 82 AS col0
----
2460

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1435
SELECT 4 * - CAST( NULL AS SIGNED ) * + 54 - + + 96 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1435
SELECT 4 * - CAST ( NULL AS INTEGER ) * + 54 - + + 96 AS col0
----
NULL

query I rowsort
SELECT DISTINCT 43 AS col2
----
43

query I rowsort
SELECT ALL 66 * + - 22 AS col1
----
-1452

onlyif mysql # DIV for integer division: 
query I rowsort label-1438
SELECT COALESCE ( + - NULLIF ( - 46, + - 63 ), - 62 ) DIV + 55
----
0

skipif mysql # not compatible
query I rowsort label-1438
SELECT COALESCE ( + - NULLIF ( - 46, + - 63 ), - 62 ) / + 55
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-1439
SELECT COUNT( * ) * + 38 * 71 AS col2, - 61
----
2698
-61

skipif mysql # not compatible
query II rowsort label-1439
SELECT COUNT ( * ) * + 38 * 71 AS col2, - 61
----
2698
-61

query I rowsort
SELECT ALL 60 + - ( + + NULLIF ( 52, - 54 ) )
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-1441
SELECT DISTINCT CASE 26 WHEN + COUNT( + - 41 ) THEN - - COUNT( * ) * COUNT( * ) WHEN 94 THEN + 92 WHEN - 5 THEN NULL ELSE - 61 * 2 + 91 END * + 95
----
-2945

skipif mysql # not compatible
query I rowsort label-1441
SELECT DISTINCT CASE 26 WHEN + COUNT ( + - 41 ) THEN - - COUNT ( * ) * COUNT ( * ) WHEN 94 THEN + 92 WHEN - 5 THEN NULL ELSE - 61 * 2 + 91 END * + 95
----
-2945

onlyif mysql # aggregate syntax: 
query I rowsort label-1442
SELECT 62 + 59 * COUNT( * ) * + + 82
----
4900

skipif mysql # not compatible
query I rowsort label-1442
SELECT 62 + 59 * COUNT ( * ) * + + 82
----
4900

query II rowsort
SELECT 80 AS col1, 27
----
80
27

query I rowsort
SELECT ALL 7 * 22
----
154

onlyif mysql # DIV for integer division: 
query I rowsort label-1445
SELECT DISTINCT 65 + 79 * 43 DIV - 75 - + 25 * 7
----
-155

skipif mysql # not compatible
query I rowsort label-1445
SELECT DISTINCT 65 + 79 * 43 / - 75 - + 25 * 7
----
-155

query II rowsort
SELECT ALL 24 + 70 * + 77 AS col1, + 97 AS col0
----
5414
97

query I rowsort
SELECT ALL 0 + + - 45 col0
----
-45

query I rowsort
SELECT DISTINCT 59 + - 15
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-1449
SELECT - MIN( ALL 30 ) AS col0
----
-30

skipif mysql # not compatible
query I rowsort label-1449
SELECT - MIN ( ALL 30 ) AS col0
----
-30

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1450
SELECT + CASE + + NULLIF ( - 17, + 9 ) WHEN + ( 32 ) * + 32 THEN COUNT( * ) DIV + 57 ELSE 30 END * MAX( - 7 )
----
-210

skipif mysql # not compatible
query I rowsort label-1450
SELECT + CASE + + NULLIF ( - 17, + 9 ) WHEN + ( 32 ) * + 32 THEN COUNT ( * ) / + 57 ELSE 30 END * MAX ( - 7 )
----
-210

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1451
SELECT - CAST( + 4 AS SIGNED ) + + 19 AS col0
----
15

skipif mysql # not compatible
query I rowsort label-1451
SELECT - CAST ( + 4 AS INTEGER ) + + 19 AS col0
----
15

query II rowsort
SELECT ALL 75, 2 * + 12 AS col2
----
75
24

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

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

query I rowsort
SELECT DISTINCT 23 + 7 * - 52
----
-341

query I rowsort
SELECT DISTINCT + 16 AS col2
----
16

query I rowsort
SELECT ALL + - 92 + + 26 AS col1
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-1457
SELECT + ( + 34 ) * - 8 * - - COUNT( * ) + 12 * 38
----
184

skipif mysql # not compatible
query I rowsort label-1457
SELECT + ( + 34 ) * - 8 * - - COUNT ( * ) + 12 * 38
----
184

onlyif mysql # DIV for integer division: 
query I rowsort label-1458
SELECT ALL 22 DIV 93
----
0

skipif mysql # not compatible
query I rowsort label-1458
SELECT ALL 22 / 93
----
0

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

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

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

query I rowsort
SELECT + - 47 - 25 * + 41 + - 41 AS col1
----
-1113

query II rowsort
SELECT ALL + + 62 AS col1, - NULLIF ( - 67, 87 - 50 ) + 9 AS col1
----
62
76

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

query I rowsort
SELECT + + 47
----
47

query I rowsort
SELECT ALL + + 85 AS col0
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-1466
SELECT - COUNT( DISTINCT 59 ) * 55
----
-55

skipif mysql # not compatible
query I rowsort label-1466
SELECT - COUNT ( DISTINCT 59 ) * 55
----
-55

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1467
SELECT DISTINCT - + ( 86 ) / + CAST( NULL AS SIGNED ) / + + 64 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1467
SELECT DISTINCT - + ( 86 ) / + CAST ( NULL AS INTEGER ) / + + 64 AS col2
----
NULL

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

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

query I rowsort
SELECT ALL - 37 * 73
----
-2701

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1471
SELECT - - 40 * - 32 + - COUNT( - 94 ) + + MAX( DISTINCT + 4 ) * + COALESCE ( 88, + 66 ) AS col0
----
-929

skipif mysql # not compatible
query I rowsort label-1471
SELECT - - 40 * - 32 + - COUNT ( - 94 ) + + MAX ( DISTINCT + 4 ) * + COALESCE ( 88, + 66 ) AS col0
----
-929

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

query I rowsort
SELECT ALL + + 45 * + + 31 AS col0
----
1395

query I rowsort
SELECT - 79 + + - 75 * - ( 10 ) + + - 87 AS col1
----
584

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1475
SELECT ALL + CAST( NULL AS SIGNED ) * - 12 * - ( - 12 ) / + 54 * + 87 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1475
SELECT ALL + CAST ( NULL AS INTEGER ) * - 12 * - ( - 12 ) / + 54 * + 87 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1476
SELECT - 96 * + + 92 * - - CASE - NULLIF ( - COUNT( * ), 55 * COUNT( * ) ) WHEN + COUNT( * ) * CAST( - NULLIF ( 36, 22 ) * + COALESCE ( - 71, 75 - 51 ) AS SIGNED ) THEN + CASE 81 WHEN - 89 THEN NULL WHEN + 53 THEN CAST( NULL AS SIGNED ) END WHEN 11 THEN 74 END * - 8 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1476
SELECT - 96 * + + 92 * - - CASE - NULLIF ( - COUNT ( * ), 55 * COUNT ( * ) ) WHEN + COUNT ( * ) * CAST ( - NULLIF ( 36, 22 ) * + COALESCE ( - 71, 75 - 51 ) AS INTEGER ) THEN + CASE 81 WHEN - 89 THEN NULL WHEN + 53 THEN CAST ( NULL AS INTEGER ) END WHEN 11 THEN 74 END * - 8 AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1477
SELECT 9 * + CAST( - COUNT( * ) AS SIGNED ) + - - COALESCE ( - COALESCE ( + 22, - 97 ), SUM( 7 ) ) * 57
----
-1263

skipif mysql # not compatible
query I rowsort label-1477
SELECT 9 * + CAST ( - COUNT ( * ) AS INTEGER ) + - - COALESCE ( - COALESCE ( + 22, - 97 ), SUM ( 7 ) ) * 57
----
-1263

query I rowsort
SELECT DISTINCT 61 * - 74 * 43 + 15
----
-194087

query I rowsort
SELECT DISTINCT 30 * 3 + - + 62 * 6 + - 12 AS col2
----
-294

onlyif mysql # aggregate syntax: 
query I rowsort label-1480
SELECT DISTINCT COALESCE ( + + 86, + COUNT( DISTINCT 39 ) * - ( ( COUNT( * ) ) ), 91 + 99 ) AS col2
----
86

skipif mysql # not compatible
query I rowsort label-1480
SELECT DISTINCT COALESCE ( + + 86, + COUNT ( DISTINCT 39 ) * - ( ( COUNT ( * ) ) ), 91 + 99 ) AS col2
----
86

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

skipif mysql # not compatible
query I rowsort label-1481
SELECT ALL 60 + - COUNT ( * ) AS col1
----
59

query I rowsort
SELECT ALL 19 + - - CASE + 88 WHEN 23 THEN NULL ELSE - 54 - + 53 END
----
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-1483
SELECT ALL ( - SUM( DISTINCT - ( ( 51 ) ) ) ) AS col1
----
51

skipif mysql # not compatible
query I rowsort label-1483
SELECT ALL ( - SUM ( DISTINCT - ( ( 51 ) ) ) ) AS col1
----
51

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1484
SELECT DISTINCT - CAST( - - 44 AS SIGNED ) + + 99 * + 76, - NULLIF ( 52, MAX( ALL + 19 ) ) + - 14 col0
----
7480
-66

skipif mysql # not compatible
query II rowsort label-1484
SELECT DISTINCT - CAST ( - - 44 AS INTEGER ) + + 99 * + 76, - NULLIF ( 52, MAX ( ALL + 19 ) ) + - 14 col0
----
7480
-66

query II rowsort
SELECT + 1 + 99, + 69 AS col1
----
100
69

onlyif mysql # DIV for integer division: 
query I rowsort label-1486
SELECT + 19 DIV - 13 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-1486
SELECT + 19 / - 13 AS col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-1487
SELECT ALL - 64 + - COUNT( * ) * + - 64
----
0

skipif mysql # not compatible
query I rowsort label-1487
SELECT ALL - 64 + - COUNT ( * ) * + - 64
----
0

query I rowsort
SELECT ALL + 10 + 65
----
75

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1490
SELECT - 83 DIV 4 AS col1
----
-20

skipif mysql # not compatible
query I rowsort label-1490
SELECT - 83 / 4 AS col1
----
-20

onlyif mysql # aggregate syntax: 
query II rowsort label-1491
SELECT ALL 70, - ( MIN( DISTINCT 15 ) ) AS col1
----
70
-15

skipif mysql # not compatible
query II rowsort label-1491
SELECT ALL 70, - ( MIN ( DISTINCT 15 ) ) AS col1
----
70
-15

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1493
SELECT ALL SUM( + 57 ) + - 35 + + - ( MIN( 66 ) ) + + 45 * 68
----
3016

skipif mysql # not compatible
query I rowsort label-1493
SELECT ALL SUM ( + 57 ) + - 35 + + - ( MIN ( 66 ) ) + + 45 * 68
----
3016

query I rowsort
SELECT ALL 47 + + NULLIF ( - 58, + - 80 ) AS col1
----
-11

query I rowsort
SELECT DISTINCT - 29 * - + 27
----
783

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1497
SELECT DISTINCT 29 * + CAST( 31 AS SIGNED ) AS col0
----
899

skipif mysql # not compatible
query I rowsort label-1497
SELECT DISTINCT 29 * + CAST ( 31 AS INTEGER ) AS col0
----
899

query II rowsort
SELECT ALL 47 AS col1, 43
----
47
43

onlyif mysql # aggregate syntax: 
query I rowsort label-1499
SELECT - + CASE + - 57 WHEN COUNT( * ) THEN 33 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1499
SELECT - + CASE + - 57 WHEN COUNT ( * ) THEN 33 END AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1500
SELECT + 86 - - - 8 - - NULLIF ( COUNT( DISTINCT - 91 ), + 43 ) + CAST( - NULLIF ( 58, - CASE - 60 WHEN - 48 THEN NULL ELSE - 4 * - 50 + - 20 END * - 67 ) AS SIGNED ) * - 79
----
4661

skipif mysql # not compatible
query I rowsort label-1500
SELECT + 86 - - - 8 - - NULLIF ( COUNT ( DISTINCT - 91 ), + 43 ) + CAST ( - NULLIF ( 58, - CASE - 60 WHEN - 48 THEN NULL ELSE - 4 * - 50 + - 20 END * - 67 ) AS INTEGER ) * - 79
----
4661

query II rowsort
SELECT 71, + 91 - + 78 AS col2
----
71
13

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1503
SELECT + + 27 + - 63 * - COUNT( DISTINCT - 58 )
----
90

skipif mysql # not compatible
query I rowsort label-1503
SELECT + + 27 + - 63 * - COUNT ( DISTINCT - 58 )
----
90

query I rowsort
SELECT 52 * + + 12 * 95 + 82 * 0
----
59280

query II rowsort
SELECT + 59, 57 AS col2
----
59
57

query II rowsort
SELECT ALL + + 36 AS col0, 32 AS col2
----
36
32

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1507
SELECT ALL 40 / - + CAST( NULL AS SIGNED ) / - COUNT( 23 ) + - CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-1507
SELECT ALL 40 / - + CAST ( NULL AS INTEGER ) / - COUNT ( 23 ) + - CAST ( NULL AS REAL )
----
NULL

query I rowsort
SELECT - + 69 * - - 83 AS col0
----
-5727

query I rowsort
SELECT DISTINCT 67 * 38
----
2546

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1511
SELECT SUM( ALL - - 14 ) AS col2
----
14

skipif mysql # not compatible
query I rowsort label-1511
SELECT SUM ( ALL - - 14 ) AS col2
----
14

query I rowsort
SELECT + - 8
----
-8

query I rowsort
SELECT + 32 * 28 * 68
----
60928

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1514
SELECT ALL - 78 * - 83 + + - COUNT( * ) / - + 26 * + + 32 + 44 + - 41 + + CASE 7 WHEN 65 * + CAST( NULL AS DECIMAL ) THEN 59 WHEN 59 / - SUM( DISTINCT 17 ) THEN NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1514
SELECT ALL - 78 * - 83 + + - COUNT ( * ) / - + 26 * + + 32 + 44 + - 41 + + CASE 7 WHEN 65 * + CAST ( NULL AS REAL ) THEN 59 WHEN 59 / - SUM ( DISTINCT 17 ) THEN NULL END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1515
SELECT ALL 26 * - - 44 + + SUM( ALL + + 25 ) + - COUNT( * )
----
1168

skipif mysql # not compatible
query I rowsort label-1515
SELECT ALL 26 * - - 44 + + SUM ( ALL + + 25 ) + - COUNT ( * )
----
1168

query I rowsort
SELECT ALL 32 * 74 + + + 49 + + 25
----
2442

query I rowsort
SELECT DISTINCT - 23 * + 69
----
-1587

query II rowsort
SELECT 52 + + 25 AS col1, - 48 - - - 79 AS col2
----
77
-127

onlyif mysql # aggregate syntax: 
query I rowsort label-1519
SELECT + ( 47 ) * - 20 + NULLIF ( + + 89, + COUNT( * ) - + 62 - COALESCE ( 31, 18, - COALESCE ( - 59, + ( - 36 ) + 73, - 90 ) ) * AVG ( ALL + 50 + - 84 ) ) AS col0
----
-851

skipif mysql # not compatible
query I rowsort label-1519
SELECT + ( 47 ) * - 20 + NULLIF ( + + 89, + COUNT ( * ) - + 62 - COALESCE ( 31, 18, - COALESCE ( - 59, + ( - 36 ) + 73, - 90 ) ) * AVG ( ALL + 50 + - 84 ) ) AS col0
----
-851

query I rowsort
SELECT 97 + + 40
----
137

onlyif mysql # aggregate syntax: 
query I rowsort label-1521
SELECT 0 * COUNT( * ) * + 38 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-1521
SELECT 0 * COUNT ( * ) * + 38 AS col2
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-1522
SELECT DISTINCT - 61 * + 15 AS col0, COUNT( * ) + 73 * - - 98 AS col0
----
-915
7155

skipif mysql # not compatible
query II rowsort label-1522
SELECT DISTINCT - 61 * + 15 AS col0, COUNT ( * ) + 73 * - - 98 AS col0
----
-915
7155

query I rowsort
SELECT 96 + - + 82
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-1524
SELECT ALL - 34 - - + NULLIF ( 22, NULLIF ( COUNT( ALL 8 ), + + COALESCE ( - AVG ( 69 ), + ( ( 45 ) ) ) * AVG ( ( 46 ) ) ) ) * + 11 AS col1
----
208

skipif mysql # not compatible
query I rowsort label-1524
SELECT ALL - 34 - - + NULLIF ( 22, NULLIF ( COUNT ( ALL 8 ), + + COALESCE ( - AVG ( 69 ), + ( ( 45 ) ) ) * AVG ( ( 46 ) ) ) ) * + 11 AS col1
----
208

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1525
SELECT CAST( NULL AS SIGNED ) + + 13 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1525
SELECT CAST ( NULL AS INTEGER ) + + 13 AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1526
SELECT ALL - 53 - + 68 * 8 * + 85 - 11 + + + 85 + - + CASE + 68 WHEN - 3 * 67 + 7 * + 15 THEN 57 ELSE - 72 * 2 END + + COUNT( * ) DIV ( + COUNT( * ) ) AS col0
----
-46074

skipif mysql # not compatible
query I rowsort label-1526
SELECT ALL - 53 - + 68 * 8 * + 85 - 11 + + + 85 + - + CASE + 68 WHEN - 3 * 67 + 7 * + 15 THEN 57 ELSE - 72 * 2 END + + COUNT ( * ) / ( + COUNT ( * ) ) AS col0
----
-46074

query I rowsort
SELECT + 92 * + 96
----
8832

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1528
SELECT SUM( + 73 ) * - CASE WHEN NOT ( NOT 27 BETWEEN 15 AND - NULLIF ( - 63, - 28 + + 76 ) ) THEN NULL ELSE + 77 * + 69 END / - CAST( - 69 AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1528
SELECT SUM ( + 73 ) * - CASE WHEN NOT ( NOT 27 BETWEEN 15 AND - NULLIF ( - 63, - 28 + + 76 ) ) THEN NULL ELSE + 77 * + 69 END / - CAST ( - 69 AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1529
SELECT 82 + 63 + - - 55 * + ( + COUNT( * ) ) AS col1
----
200

skipif mysql # not compatible
query I rowsort label-1529
SELECT 82 + 63 + - - 55 * + ( + COUNT ( * ) ) AS col1
----
200

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1530
SELECT DISTINCT - - 8 / + 81 * - 36 * MIN( - CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-1530
SELECT DISTINCT - - 8 / + 81 * - 36 * MIN ( - CAST ( NULL AS INTEGER ) )
----
NULL

query I rowsort
SELECT DISTINCT - 3 * - 18 * 34 AS col2
----
1836

query I rowsort
SELECT 30 * 43 * + 10 + + 62
----
12962

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1533
SELECT ALL + 70 * + NULLIF ( CASE ( - 62 ) WHEN + 6 * - 77 THEN + CAST( + 10 AS DECIMAL ) + - 72 WHEN - 84 * - 1 + - 62 / ( COUNT( * ) * - COALESCE ( 59 / - 54, + 78 ) + COUNT( * ) ) THEN NULL END, 63 - 96 / + 17 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1533
SELECT ALL + 70 * + NULLIF ( CASE ( - 62 ) WHEN + 6 * - 77 THEN + CAST ( + 10 AS REAL ) + - 72 WHEN - 84 * - 1 + - 62 / ( COUNT ( * ) * - COALESCE ( 59 / - 54, + 78 ) + COUNT ( * ) ) THEN NULL END, 63 - 96 / + 17 )
----
NULL

query I rowsort
SELECT DISTINCT 72 * NULLIF ( + 12, - + 81 + - ( + 75 ) + + 43 - 44 / - 94 * + 96 ) + 86
----
950

onlyif mysql # aggregate syntax: 
query I rowsort label-1535
SELECT MIN( - 50 )
----
-50

skipif mysql # not compatible
query I rowsort label-1535
SELECT MIN ( - 50 )
----
-50

query II rowsort
SELECT DISTINCT - + ( + 67 ) AS col0, - 27 AS col0
----
-67
-27

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1537
SELECT + 8 * AVG ( 16 ) * + + ( + + CASE - - 8 WHEN - + 65 THEN NULL WHEN 62 THEN NULL ELSE 22 * 17 END ) + - CASE CAST( NULL AS SIGNED ) + + 95 WHEN 30 + - 30 THEN NULL WHEN + 4 THEN + 49 - 30 WHEN 59 * COUNT( * ) THEN NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1537
SELECT + 8 * AVG ( 16 ) * + + ( + + CASE - - 8 WHEN - + 65 THEN NULL WHEN 62 THEN NULL ELSE 22 * 17 END ) + - CASE CAST ( NULL AS INTEGER ) + + 95 WHEN 30 + - 30 THEN NULL WHEN + 4 THEN + 49 - 30 WHEN 59 * COUNT ( * ) THEN NULL END AS col2
----
NULL

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

skipif mysql # not compatible
query I rowsort label-1538
SELECT + - SUM ( - 18 )
----
18

query II rowsort
SELECT ALL + 35 * + 26, 53 AS col1
----
910
53

onlyif mysql # aggregate syntax: 
query I rowsort label-1540
SELECT - 57 * COUNT( * ) - + 29 * - 6 AS col1
----
117

skipif mysql # not compatible
query I rowsort label-1540
SELECT - 57 * COUNT ( * ) - + 29 * - 6 AS col1
----
117

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1541
SELECT ALL 74 + - + 49 DIV + COUNT( * ) - - 50
----
75

skipif mysql # not compatible
query I rowsort label-1541
SELECT ALL 74 + - + 49 / + COUNT ( * ) - - 50
----
75

query I rowsort
SELECT 79 * - 16 + + 92 * + - 98
----
-10280

query I rowsort
SELECT DISTINCT - - 18
----
18

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

skipif mysql # not compatible
query I rowsort label-1544
SELECT ALL 44 + - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1545
SELECT 72 AS col2, ( + + 63 ) + - SUM( DISTINCT 35 ) AS col1
----
72
28

skipif mysql # not compatible
query II rowsort label-1545
SELECT 72 AS col2, ( + + 63 ) + - SUM ( DISTINCT 35 ) AS col1
----
72
28

onlyif mysql # aggregate syntax: 
query I rowsort label-1546
SELECT ALL COUNT( * ) + 21 * - + 35
----
-734

skipif mysql # not compatible
query I rowsort label-1546
SELECT ALL COUNT ( * ) + 21 * - + 35
----
-734

onlyif mysql # aggregate syntax: 
query I rowsort label-1547
SELECT MAX( - 64 ) - 57 AS col2
----
-121

skipif mysql # not compatible
query I rowsort label-1547
SELECT MAX ( - 64 ) - 57 AS col2
----
-121

onlyif mysql # aggregate syntax: 
query I rowsort label-1548
SELECT DISTINCT COUNT( * ) + + ( - 79 ) + 46 + - CASE WHEN NOT ( + 71 ) > 49 + - 79 THEN 35 END / - 21 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1548
SELECT DISTINCT COUNT ( * ) + + ( - 79 ) + 46 + - CASE WHEN NOT ( + 71 ) > 49 + - 79 THEN 35 END / - 21 AS col0
----
NULL

query II rowsort
SELECT + 93 AS col0, ( + 97 ) * 69 - - 54
----
93
6747

onlyif mysql # aggregate syntax: 
query I rowsort label-1550
SELECT ALL 84 + + + COALESCE ( 54, COALESCE ( + 17, NULLIF ( + 27, + 32 + SUM( + 77 ) ) ) * 2 ) * + 32
----
1812

skipif mysql # not compatible
query I rowsort label-1550
SELECT ALL 84 + + + COALESCE ( 54, COALESCE ( + 17, NULLIF ( + 27, + 32 + SUM ( + 77 ) ) ) * 2 ) * + 32
----
1812

onlyif mysql # aggregate syntax: 
query I rowsort label-1551
SELECT COUNT( * ) * - + 72 * - 84 AS col1
----
6048

skipif mysql # not compatible
query I rowsort label-1551
SELECT COUNT ( * ) * - + 72 * - 84 AS col1
----
6048

query I rowsort
SELECT 55 + + 10
----
65

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1553
SELECT 10, + 50 + - + 29 + - ( CAST( NULL AS SIGNED ) ) AS col0
----
10
NULL

skipif mysql # not compatible
query II rowsort label-1553
SELECT 10, + 50 + - + 29 + - ( CAST ( NULL AS INTEGER ) ) AS col0
----
10
NULL

query II rowsort
SELECT 80, 26 * - 64 * 67 AS col2
----
80
-111488

query I rowsort
SELECT DISTINCT 7 * - 82
----
-574

query I rowsort
SELECT ALL - 47 - + 60
----
-107

query II rowsort
SELECT - 16 AS col0, - 98 AS col0
----
-16
-98

query I rowsort
SELECT ALL + 75 * + - 85
----
-6375

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1559
SELECT ALL 35 DIV 76 * - - SUM( 76 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-1559
SELECT ALL 35 / 76 * - - SUM ( 76 ) AS col2
----
0

query II rowsort
SELECT ALL 23, + 12 - - 94 AS col2
----
23
106

query I rowsort
SELECT 91 col1
----
91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1562
SELECT ALL + 63, - 80 DIV - CASE - 53 WHEN 95 THEN NULL ELSE 78 + CAST( + 9 AS SIGNED ) + MAX( DISTINCT + 45 ) END AS col0
----
63
0

skipif mysql # not compatible
query II rowsort label-1562
SELECT ALL + 63, - 80 / - CASE - 53 WHEN 95 THEN NULL ELSE 78 + CAST ( + 9 AS INTEGER ) + MAX ( DISTINCT + 45 ) END AS col0
----
63
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1563
SELECT 7 + - ( + 59 ) + + 91 + NULLIF ( - 97, - 39 + COUNT( * ) * 74 ) + MAX( 36 ) * - COUNT( * ) AS col0
----
-94

skipif mysql # not compatible
query I rowsort label-1563
SELECT 7 + - ( + 59 ) + + 91 + NULLIF ( - 97, - 39 + COUNT ( * ) * 74 ) + MAX ( 36 ) * - COUNT ( * ) AS col0
----
-94

query I rowsort
SELECT - 89 * - 9 AS col1
----
801

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

query I rowsort
SELECT ALL - - 5 * - 10
----
-50

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

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

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

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

query I rowsort
SELECT ALL - - 80 * + - 88 AS col1
----
-7040

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1571
SELECT NULLIF ( 90, + - COUNT( * ) * + 77 ) - + - 82 + + 82 * - 29 * 37 AS col0
----
-87814

skipif mysql # not compatible
query I rowsort label-1571
SELECT NULLIF ( 90, + - COUNT ( * ) * + 77 ) - + - 82 + + 82 * - 29 * 37 AS col0
----
-87814

query I rowsort
SELECT DISTINCT + 73 col1
----
73

query I rowsort
SELECT DISTINCT - 17 col2
----
-17

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

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

query I rowsort
SELECT ALL - ( - 10 ) + + 44 AS col2
----
54

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1577
SELECT 25 DIV + + 31 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-1577
SELECT 25 / + + 31 AS col1
----
0

query I rowsort
SELECT 68 * + 88 * + + 10
----
59840

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1580
SELECT 50, - COUNT( * ) * 53 + - 94 AS col2
----
50
-147

skipif mysql # not compatible
query II rowsort label-1580
SELECT 50, - COUNT ( * ) * 53 + - 94 AS col2
----
50
-147

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

skipif mysql # not compatible
query I rowsort label-1581
SELECT DISTINCT MIN ( 83 )
----
83

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

skipif mysql # not compatible
query I rowsort label-1582
SELECT ALL - + COUNT ( * ) + - - 21 AS col2
----
20

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1584
SELECT COALESCE ( - COUNT( * ), - 95 * - COUNT( * ) DIV - + COALESCE ( 76, 9 ) + - 5, + 93 ) - 17 AS col2
----
-18

skipif mysql # not compatible
query I rowsort label-1584
SELECT COALESCE ( - COUNT ( * ), - 95 * - COUNT ( * ) / - + COALESCE ( 76, 9 ) + - 5, + 93 ) - 17 AS col2
----
-18

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1586
SELECT ALL + - SUM( DISTINCT 41 ) * + 29 + + 51
----
-1138

skipif mysql # not compatible
query I rowsort label-1586
SELECT ALL + - SUM ( DISTINCT 41 ) * + 29 + + 51
----
-1138

query I rowsort
SELECT - 30 * - 16 + + 43 * - 18
----
-294

onlyif mysql # aggregate syntax: 
query I rowsort label-1588
SELECT ALL + - ( + MAX( - 75 ) ) * + 43 + - + 16
----
3209

skipif mysql # not compatible
query I rowsort label-1588
SELECT ALL + - ( + MAX ( - 75 ) ) * + 43 + - + 16
----
3209

onlyif mysql # DIV for integer division: 
query I rowsort label-1589
SELECT DISTINCT + - 96 DIV 23 AS col1
----
-4

skipif mysql # not compatible
query I rowsort label-1589
SELECT DISTINCT + - 96 / 23 AS col1
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-1590
SELECT ALL + 18 * 44 + + + MIN( + 17 ) + - 93 + + - 98 AS col1
----
618

skipif mysql # not compatible
query I rowsort label-1590
SELECT ALL + 18 * 44 + + + MIN ( + 17 ) + - 93 + + - 98 AS col1
----
618

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1592
SELECT DISTINCT 90 * - NULLIF ( + ( 3 ), - 52 * - + 4 - COUNT( * ) )
----
-270

skipif mysql # not compatible
query I rowsort label-1592
SELECT DISTINCT 90 * - NULLIF ( + ( 3 ), - 52 * - + 4 - COUNT ( * ) )
----
-270

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

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

query I rowsort
SELECT ALL CASE - 18 WHEN + 52 THEN - + 49 * 53 END * - 5 * + AVG ( 12 ) + + + 95 + 34 * - 53
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1595
SELECT + COUNT( * ) * + 73 + 55
----
128

skipif mysql # not compatible
query I rowsort label-1595
SELECT + COUNT ( * ) * + 73 + 55
----
128

query I rowsort
SELECT - 66 * 0 * - 87 AS col2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-1597
SELECT COALESCE ( 42, + 92, + 18 ) DIV + + 37 + 16 + COALESCE ( + 4, - - 93 * + 49 ) + 67 AS col0
----
88

skipif mysql # not compatible
query I rowsort label-1597
SELECT COALESCE ( 42, + 92, + 18 ) / + + 37 + 16 + COALESCE ( + 4, - - 93 * + 49 ) + 67 AS col0
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-1598
SELECT COUNT( ALL + 36 )
----
1

skipif mysql # not compatible
query I rowsort label-1598
SELECT COUNT ( ALL + 36 )
----
1

query I rowsort
SELECT ALL 61 * + + 88 - - 51 AS col2
----
5419

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1601
SELECT ALL 79 * + 2 * + COUNT( * ) - - COUNT( * )
----
159

skipif mysql # not compatible
query I rowsort label-1601
SELECT ALL 79 * + 2 * + COUNT ( * ) - - COUNT ( * )
----
159

onlyif mysql # aggregate syntax: 
query II rowsort label-1602
SELECT + COALESCE ( 74, + COUNT( * ) ) * 31 + 91 AS col0, - 46 * 22 AS col2
----
2385
-1012

skipif mysql # not compatible
query II rowsort label-1602
SELECT + COALESCE ( 74, + COUNT ( * ) ) * 31 + 91 AS col0, - 46 * 22 AS col2
----
2385
-1012

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

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

query I rowsort
SELECT DISTINCT 42 * 81 - 87 col1
----
3315

onlyif mysql # aggregate syntax: 
query I rowsort label-1605
SELECT SUM( 33 )
----
33

skipif mysql # not compatible
query I rowsort label-1605
SELECT SUM ( 33 )
----
33

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1606
SELECT ALL 94 * + COALESCE ( + + 66, - 79 * 47, + - 15 + - 81 * - CASE - + 19 WHEN - 39 + CASE - 62 - - ( 26 ) WHEN 14 * + 32 THEN 34 + 9 * 34 WHEN + 89 * 89 THEN NULL END * - 63 THEN NULL WHEN ( - 49 ) - - CAST( NULL AS SIGNED ) THEN 9 END * + 66 ) * 96 col0
----
595584

skipif mysql # not compatible
query I rowsort label-1606
SELECT ALL 94 * + COALESCE ( + + 66, - 79 * 47, + - 15 + - 81 * - CASE - + 19 WHEN - 39 + CASE - 62 - - ( 26 ) WHEN 14 * + 32 THEN 34 + 9 * 34 WHEN + 89 * 89 THEN NULL END * - 63 THEN NULL WHEN ( - 49 ) - - CAST ( NULL AS INTEGER ) THEN 9 END * + 66 ) * 96 col0
----
595584

onlyif mysql # aggregate syntax: 
query I rowsort label-1607
SELECT + COALESCE ( - + 10, - + 81 * - 12 + MAX( + 67 ), - 92 * - 96 + + - 92 - - ( 91 ) * - 78 + 4 ) * 88
----
-880

skipif mysql # not compatible
query I rowsort label-1607
SELECT + COALESCE ( - + 10, - + 81 * - 12 + MAX ( + 67 ), - 92 * - 96 + + - 92 - - ( 91 ) * - 78 + 4 ) * 88
----
-880

query I rowsort
SELECT + 6 * - 8
----
-48

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1610
SELECT + 94 + + + 13 + 74 - + 31 - - 87 * 18 DIV - + 38 - - 53 AS col0
----
162

skipif mysql # not compatible
query I rowsort label-1610
SELECT + 94 + + + 13 + 74 - + 31 - - 87 * 18 / - + 38 - - 53 AS col0
----
162

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1611
SELECT + ( - - 40 ) - + - 28 * - CASE + + NULLIF ( - AVG ( + + 68 ), + 89 ) WHEN - + 87 THEN NULL WHEN + 50 THEN 77 END * - CAST( NULL AS SIGNED ) + 63
----
NULL

skipif mysql # not compatible
query I rowsort label-1611
SELECT + ( - - 40 ) - + - 28 * - CASE + + NULLIF ( - AVG ( + + 68 ), + 89 ) WHEN - + 87 THEN NULL WHEN + 50 THEN 77 END * - CAST ( NULL AS INTEGER ) + 63
----
NULL

query I rowsort
SELECT + - 14 * - + ( - + 61 )
----
-854

onlyif mysql # aggregate syntax: 
query I rowsort label-1613
SELECT - - COUNT( * ) + 16 AS col1
----
17

skipif mysql # not compatible
query I rowsort label-1613
SELECT - - COUNT ( * ) + 16 AS col1
----
17

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1614
SELECT DISTINCT ( + 37 ) * - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1614
SELECT DISTINCT ( + 37 ) * - CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT ALL + 34 * + ( - 2 ) AS col1
----
-68

onlyif mysql # DIV for integer division: 
query I rowsort label-1616
SELECT + - 65 DIV - 31 AS col2
----
2

skipif mysql # not compatible
query I rowsort label-1616
SELECT + - 65 / - 31 AS col2
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-1617
SELECT + 19 + 92 + + NULLIF ( - 92, + - 47 ) + - + 42 * - COUNT( * )
----
61

skipif mysql # not compatible
query I rowsort label-1617
SELECT + 19 + 92 + + NULLIF ( - 92, + - 47 ) + - + 42 * - COUNT ( * )
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-1618
SELECT DISTINCT COUNT( ALL + 89 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-1618
SELECT DISTINCT COUNT ( ALL + 89 ) AS col1
----
1

query I rowsort
SELECT ALL 2 + 55 * - 20 AS col1
----
-1098

onlyif mysql # DIV for integer division: 
query I rowsort label-1620
SELECT ALL 7 DIV 52
----
0

skipif mysql # not compatible
query I rowsort label-1620
SELECT ALL 7 / 52
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1621
SELECT DISTINCT + 51 + 23 * - 27 - NULLIF ( + 60, + - ( + CAST( NULL AS SIGNED ) ) + + - COUNT( ALL - 16 ) + COUNT( * ) ) AS col1
----
-630

skipif mysql # not compatible
query I rowsort label-1621
SELECT DISTINCT + 51 + 23 * - 27 - NULLIF ( + 60, + - ( + CAST ( NULL AS INTEGER ) ) + + - COUNT ( ALL - 16 ) + COUNT ( * ) ) AS col1
----
-630

onlyif mysql # aggregate syntax: 
query I rowsort label-1622
SELECT + - ( 80 ) * 64 + 89 + + - 33 + - COUNT( * ) AS col1
----
-5065

skipif mysql # not compatible
query I rowsort label-1622
SELECT + - ( 80 ) * 64 + 89 + + - 33 + - COUNT ( * ) AS col1
----
-5065

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1624
SELECT - MAX( ALL - 2 ) AS col1
----
2

skipif mysql # not compatible
query I rowsort label-1624
SELECT - MAX ( ALL - 2 ) AS col1
----
2

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

query II rowsort
SELECT ALL + 69 * 45 AS col1, + 87 * + 17
----
3105
1479

query I rowsort
SELECT ALL - 58 + + - 62 AS col1
----
-120

query I rowsort
SELECT - ( - 53 ) * - 40
----
-2120

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1629
SELECT ALL MAX( - 61 ) DIV - ( ( 62 ) ) - 45 AS col1
----
-45

skipif mysql # not compatible
query I rowsort label-1629
SELECT ALL MAX ( - 61 ) / - ( ( 62 ) ) - 45 AS col1
----
-45

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

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

query I rowsort
SELECT - 90 - - 77
----
-13

onlyif mysql # DIV for integer division: 
query I rowsort label-1632
SELECT ALL + 19 DIV + 61
----
0

skipif mysql # not compatible
query I rowsort label-1632
SELECT ALL + 19 / + 61
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1633
SELECT - CAST( 15 AS SIGNED ) * - + COUNT( * ) + + 12
----
27

skipif mysql # not compatible
query I rowsort label-1633
SELECT - CAST ( 15 AS INTEGER ) * - + COUNT ( * ) + + 12
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-1634
SELECT - CASE + - 19 WHEN + - 60 * + - 36 + - CASE - 92 WHEN + 89 THEN 66 END + + + 27 + - + MIN( 25 ) + - 6 / + AVG ( ALL 57 ) * - 41 THEN NULL ELSE COUNT( * ) END * 51
----
-51

skipif mysql # not compatible
query I rowsort label-1634
SELECT - CASE + - 19 WHEN + - 60 * + - 36 + - CASE - 92 WHEN + 89 THEN 66 END + + + 27 + - + MIN ( 25 ) + - 6 / + AVG ( ALL 57 ) * - 41 THEN NULL ELSE COUNT ( * ) END * 51
----
-51

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

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

query I rowsort
SELECT DISTINCT + 92 * + 4 * - 2 AS col2
----
-736

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

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

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

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

skipif mysql # not compatible
query I rowsort label-1639
SELECT - 36 / + COUNT ( * ) * COUNT ( * )
----
-36

query I rowsort
SELECT ALL 48 * - + 12
----
-576

onlyif mysql # aggregate syntax: 
query I rowsort label-1641
SELECT ALL COUNT( * ) * 9
----
9

skipif mysql # not compatible
query I rowsort label-1641
SELECT ALL COUNT ( * ) * 9
----
9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1642
SELECT - COALESCE ( - COUNT( 7 ), + + COUNT( * ), 11 * + + CAST( NULL AS SIGNED ) DIV + 76 * - SUM( 69 ) * 34 + COALESCE ( - CAST( NULL AS SIGNED ), - 40 ) DIV - 39 ) - 40 AS col1
----
-39

skipif mysql # not compatible
query I rowsort label-1642
SELECT - COALESCE ( - COUNT ( 7 ), + + COUNT ( * ), 11 * + + CAST ( NULL AS INTEGER ) / + 76 * - SUM ( 69 ) * 34 + COALESCE ( - CAST ( NULL AS INTEGER ), - 40 ) / - 39 ) - 40 AS col1
----
-39

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

skipif mysql # not compatible
query I rowsort label-1643
SELECT ALL + NULLIF ( - + 4, - - COUNT ( * ) + 50 )
----
-4

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1646
SELECT ALL - MIN( + + 24 ) * COUNT( * ) + + 77 AS col0
----
53

skipif mysql # not compatible
query I rowsort label-1646
SELECT ALL - MIN ( + + 24 ) * COUNT ( * ) + + 77 AS col0
----
53

onlyif mysql # DIV for integer division: 
query I rowsort label-1647
SELECT - 0 DIV 77
----
0

skipif mysql # not compatible
query I rowsort label-1647
SELECT - 0 / 77
----
0

query I rowsort
SELECT + 6 * 67 AS col2
----
402

onlyif mysql # aggregate syntax: 
query II rowsort label-1649
SELECT ALL + 41, 1 - + COUNT( * ) + + 24 + + COUNT( * ) * 80 col2
----
41
104

skipif mysql # not compatible
query II rowsort label-1649
SELECT ALL + 41, 1 - + COUNT ( * ) + + 24 + + COUNT ( * ) * 80 col2
----
41
104

query I rowsort
SELECT COALESCE ( - ( - ( - 28 ) ), 87 )
----
-28

query I rowsort
SELECT + 82 * 68 col1
----
5576

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

query I rowsort
SELECT COALESCE ( 97, - 70 - - + 68 ) AS col2
----
97

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1654
SELECT NULLIF ( + 51, 88 ) AS col1, + 22 * ( 75 ) * 42 * - ( - CAST( + 10 AS SIGNED ) ) AS col0
----
51
693000

skipif mysql # not compatible
query II rowsort label-1654
SELECT NULLIF ( + 51, 88 ) AS col1, + 22 * ( 75 ) * 42 * - ( - CAST ( + 10 AS INTEGER ) ) AS col0
----
51
693000

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1655
SELECT + 76 + - CAST( - - 46 AS SIGNED ) AS col1
----
30

skipif mysql # not compatible
query I rowsort label-1655
SELECT + 76 + - CAST ( - - 46 AS INTEGER ) AS col1
----
30

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

query II rowsort
SELECT ALL + 70, + 64 AS col1
----
70
64

query I rowsort
SELECT + 47 * - 33
----
-1551

query I rowsort
SELECT ALL 24 * - 3 + + 44 AS col2
----
-28

query I rowsort
SELECT 18 col2
----
18

query I rowsort
SELECT + + 2 * - ( 45 ) * 19
----
-1710

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

query I rowsort
SELECT DISTINCT 95 * + 1
----
95

query II rowsort
SELECT + - ( 20 ) - + 61 AS col0, + 20 + + 57 AS col2
----
-81
77

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

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

query I rowsort
SELECT + 53 * + 89 * - 27
----
-127359

query I rowsort
SELECT DISTINCT 22 * - 66 col0
----
-1452

onlyif mysql # aggregate syntax: 
query II rowsort label-1668
SELECT + SUM( ALL - 51 ) + + + 88 AS col1, - 84 + + 23 * + 53 AS col2
----
37
1135

skipif mysql # not compatible
query II rowsort label-1668
SELECT + SUM ( ALL - 51 ) + + + 88 AS col1, - 84 + + 23 * + 53 AS col2
----
37
1135

onlyif mysql # aggregate syntax: 
query I rowsort label-1669
SELECT ALL COALESCE ( - - 3, + - COUNT( * ) ) + - - COUNT( * ) AS col2
----
4

skipif mysql # not compatible
query I rowsort label-1669
SELECT ALL COALESCE ( - - 3, + - COUNT ( * ) ) + - - COUNT ( * ) AS col2
----
4

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1671
SELECT DISTINCT - CAST( NULL AS SIGNED ) + + AVG ( + 39 ) AS col0, 58
----
NULL
58

skipif mysql # not compatible
query II rowsort label-1671
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + + AVG ( + 39 ) AS col0, 58
----
NULL
58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1672
SELECT DISTINCT - MAX( 30 ) / MAX( - 71 ) * + CASE - 68 WHEN + 21 THEN NULL WHEN COUNT( * ) THEN + CASE + 77 WHEN 97 * - 36 THEN - 4 ELSE NULL END * 98 WHEN 24 - - CAST( CAST( NULL AS SIGNED ) AS SIGNED ) THEN ( CAST( NULL AS SIGNED ) ) * 26 WHEN - 17 * + 17 THEN - 54 END + 61
----
NULL

skipif mysql # not compatible
query I rowsort label-1672
SELECT DISTINCT - MAX ( 30 ) / MAX ( - 71 ) * + CASE - 68 WHEN + 21 THEN NULL WHEN COUNT ( * ) THEN + CASE + 77 WHEN 97 * - 36 THEN - 4 ELSE NULL END * 98 WHEN 24 - - CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) THEN ( CAST ( NULL AS INTEGER ) ) * 26 WHEN - 17 * + 17 THEN - 54 END + 61
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1673
SELECT DISTINCT - + SUM( COALESCE ( + 71, 3, - 91 ) ) - + 79 + - 38 * - 84 * + SUM( ALL - + 98 ) - - 2 * 59 AS col2
----
-312848

skipif mysql # not compatible
query I rowsort label-1673
SELECT DISTINCT - + SUM ( COALESCE ( + 71, 3, - 91 ) ) - + 79 + - 38 * - 84 * + SUM ( ALL - + 98 ) - - 2 * 59 AS col2
----
-312848

query I rowsort
SELECT + 46 + 19 AS col0
----
65

query I rowsort
SELECT + 86 * 29 AS col2
----
2494

query I rowsort
SELECT ALL + ( + 19 ) col2
----
19

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

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

query I rowsort
SELECT 55 + - 80 * - 19
----
1575

query I rowsort
SELECT 91 - 33 + 47 AS col0
----
105

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

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

query I rowsort
SELECT DISTINCT 84 * - 22 col2
----
-1848

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1683
SELECT + 52 DIV 27 + - 26 + - 35 DIV + 70 + 62
----
37

skipif mysql # not compatible
query I rowsort label-1683
SELECT + 52 / 27 + - 26 + - 35 / + 70 + 62
----
37

query I rowsort
SELECT ALL 19 * NULLIF ( - - 29, + 69 ) AS col2
----
551

onlyif mysql # DIV for integer division: 
query I rowsort label-1685
SELECT 0 + 61 + - 86 + + 91 DIV - 50 + 80 AS col1
----
54

skipif mysql # not compatible
query I rowsort label-1685
SELECT 0 + 61 + - 86 + + 91 / - 50 + 80 AS col1
----
54

query I rowsort
SELECT ALL - 45 col1
----
-45

onlyif mysql # DIV for integer division: 
query I rowsort label-1687
SELECT 15 DIV - + 69 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-1687
SELECT 15 / - + 69 AS col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1688
SELECT 96 + + - 53 + - - CAST( NULL AS DECIMAL ) + COALESCE ( + + CASE - SUM( + - 84 ) WHEN CAST( NULL AS SIGNED ) THEN NULL WHEN 7 + 11 - 30 THEN NULL WHEN 43 THEN + 79 + 92 ELSE NULL END, MIN( 89 ), + 43 - MAX( DISTINCT - 63 ) * 13 ) + 79 * ( + 58 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1688
SELECT 96 + + - 53 + - - CAST ( NULL AS REAL ) + COALESCE ( + + CASE - SUM ( + - 84 ) WHEN CAST ( NULL AS INTEGER ) THEN NULL WHEN 7 + 11 - 30 THEN NULL WHEN 43 THEN + 79 + 92 ELSE NULL END, MIN ( 89 ), + 43 - MAX ( DISTINCT - 63 ) * 13 ) + 79 * ( + 58 ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1689
SELECT DISTINCT 76 + + CASE COUNT( * ) WHEN + ( + 14 ) THEN + + ( - COUNT( * ) ) * + - COUNT( * ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1689
SELECT DISTINCT 76 + + CASE COUNT ( * ) WHEN + ( + 14 ) THEN + + ( - COUNT ( * ) ) * + - COUNT ( * ) END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1690
SELECT ALL - MAX( DISTINCT 26 ) * - 32 * + 21
----
17472

skipif mysql # not compatible
query I rowsort label-1690
SELECT ALL - MAX ( DISTINCT 26 ) * - 32 * + 21
----
17472

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

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

query I rowsort
SELECT DISTINCT - COALESCE ( - ( + 56 ), - + 55 ) + 31
----
87

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1693
SELECT DISTINCT - COUNT( - 11 ) DIV + 95 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-1693
SELECT DISTINCT - COUNT ( - 11 ) / + 95 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1694
SELECT ALL + SUM( ALL + - 55 ) + MIN( + 48 ) + 96 + - + 42 * + + 51 AS col0
----
-2053

skipif mysql # not compatible
query I rowsort label-1694
SELECT ALL + SUM ( ALL + - 55 ) + MIN ( + 48 ) + 96 + - + 42 * + + 51 AS col0
----
-2053

query I rowsort
SELECT ALL - 43 * 22
----
-946

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

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

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

query II rowsort
SELECT ALL + - CASE + + 34 WHEN + + 10 THEN NULL ELSE + 96 END + - 81 * - 26 * + 65 AS col0, - ( + 9 ) + - 4
----
136794
-13

query III rowsort
SELECT - + 76 AS col1, - 5, + + ( + 73 ) AS col0
----
-76
-5
73

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1700
SELECT - 67 + - COUNT( * ) DIV - 31 * - 79 col0
----
-67

skipif mysql # not compatible
query I rowsort label-1700
SELECT - 67 + - COUNT ( * ) / - 31 * - 79 col0
----
-67

query I rowsort
SELECT 51 + - - 24 AS col1
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-1702
SELECT ALL + CASE 11 WHEN - + 78 * + 65 + 78 - - 36 THEN NULL ELSE - + COUNT( DISTINCT + + 90 ) END + 93 * + COUNT( * )
----
92

skipif mysql # not compatible
query I rowsort label-1702
SELECT ALL + CASE 11 WHEN - + 78 * + 65 + 78 - - 36 THEN NULL ELSE - + COUNT ( DISTINCT + + 90 ) END + 93 * + COUNT ( * )
----
92

onlyif mysql # aggregate syntax: 
query II rowsort label-1703
SELECT 38, 4 * COUNT( * ) AS col0
----
38
4

skipif mysql # not compatible
query II rowsort label-1703
SELECT 38, 4 * COUNT ( * ) AS col0
----
38
4

onlyif mysql # aggregate syntax: 
query I rowsort label-1704
SELECT ALL + COUNT( * ) - + 20
----
-19

skipif mysql # not compatible
query I rowsort label-1704
SELECT ALL + COUNT ( * ) - + 20
----
-19

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1705
SELECT ( + - NULLIF ( 74, - + 74 + + COUNT( * ) / - - COUNT( * ) ) ) + COALESCE ( - 97, 13, - 7 - + CASE CASE - COALESCE ( 66, 31 * - 69 + 86, + 80 ) WHEN COUNT( * ) + + NULLIF ( - 77, 32 ) THEN + 57 + COALESCE ( ( 59 ), MIN( - 49 ) ) * + 32 END WHEN + 73 THEN NULL WHEN CAST( NULL AS SIGNED ) THEN 48 * + 7 END + + COUNT( * ) ) col1
----
-171

skipif mysql # not compatible
query I rowsort label-1705
SELECT ( + - NULLIF ( 74, - + 74 + + COUNT ( * ) / - - COUNT ( * ) ) ) + COALESCE ( - 97, 13, - 7 - + CASE CASE - COALESCE ( 66, 31 * - 69 + 86, + 80 ) WHEN COUNT ( * ) + + NULLIF ( - 77, 32 ) THEN + 57 + COALESCE ( ( 59 ), MIN ( - 49 ) ) * + 32 END WHEN + 73 THEN NULL WHEN CAST ( NULL AS INTEGER ) THEN 48 * + 7 END + + COUNT ( * ) ) col1
----
-171

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

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

query I rowsort
SELECT ALL - 35 * - 0 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1708
SELECT + 17 + + COUNT( * ) + - - 94 * + 37 * + 41 AS col2
----
142616

skipif mysql # not compatible
query I rowsort label-1708
SELECT + 17 + + COUNT ( * ) + - - 94 * + 37 * + 41 AS col2
----
142616

query I rowsort
SELECT ALL - 24 - - 80 - - + 58
----
114

query I rowsort
SELECT ( + 90 ) + + 59
----
149

query I rowsort
SELECT + 74 * - + 61
----
-4514

query I rowsort
SELECT ALL 14 * - - 19 AS col0
----
266

query I rowsort
SELECT 99 * + ( 40 ) * - 56
----
-221760

query I rowsort
SELECT - - 2 AS col1
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-1715
SELECT - 67 + + COUNT( * ) AS col1
----
-66

skipif mysql # not compatible
query I rowsort label-1715
SELECT - 67 + + COUNT ( * ) AS col1
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-1716
SELECT 94 * - COUNT( DISTINCT 45 )
----
-94

skipif mysql # not compatible
query I rowsort label-1716
SELECT 94 * - COUNT ( DISTINCT 45 )
----
-94

query I rowsort
SELECT ALL - 19 * ( 14 )
----
-266

onlyif mysql # aggregate syntax: 
query I rowsort label-1718
SELECT DISTINCT 84 * 67 * - COUNT( DISTINCT - + 19 )
----
-5628

skipif mysql # not compatible
query I rowsort label-1718
SELECT DISTINCT 84 * 67 * - COUNT ( DISTINCT - + 19 )
----
-5628

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1719
SELECT ALL 7 DIV + + CAST( - + COALESCE ( 35, - 71, + + MIN( DISTINCT 54 ), 5 * - + 40 + - COALESCE ( - 84, - 73 - - 26, 38 + 84, + 70 ) ) AS SIGNED ) * MIN( - 31 )
----
0

skipif mysql # not compatible
query I rowsort label-1719
SELECT ALL 7 / + + CAST ( - + COALESCE ( 35, - 71, + + MIN ( DISTINCT 54 ), 5 * - + 40 + - COALESCE ( - 84, - 73 - - 26, 38 + 84, + 70 ) ) AS INTEGER ) * MIN ( - 31 )
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1720
SELECT ALL 71 DIV - 1 * - - COUNT( * ) AS col0, - ( - 78 ) AS col1
----
-71
78

skipif mysql # not compatible
query II rowsort label-1720
SELECT ALL 71 / - 1 * - - COUNT ( * ) AS col0, - ( - 78 ) AS col1
----
-71
78

query I rowsort
SELECT ALL 65 * - 19 AS col1
----
-1235

onlyif mysql # DIV for integer division: 
query II rowsort label-1722
SELECT 96 * - 92 AS col2, + 28 DIV + - 34 AS col1
----
-8832
0

skipif mysql # not compatible
query II rowsort label-1722
SELECT 96 * - 92 AS col2, + 28 / + - 34 AS col1
----
-8832
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1723
SELECT DISTINCT 73 * + MAX( ALL - - CAST( NULL AS SIGNED ) ) + 48 / SUM( DISTINCT + 81 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1723
SELECT DISTINCT 73 * + MAX ( ALL - - CAST ( NULL AS INTEGER ) ) + 48 / SUM ( DISTINCT + 81 )
----
NULL

query I rowsort
SELECT ALL 41 * - 7 + - 92 AS col0
----
-379

onlyif mysql # aggregate syntax: 
query II rowsort label-1725
SELECT DISTINCT + COALESCE ( + 89, - COUNT( * ) + - NULLIF ( - COUNT( * ), 57 + - 79 ) ) + - + 74, + 29 - + 41 AS col2
----
15
-12

skipif mysql # not compatible
query II rowsort label-1725
SELECT DISTINCT + COALESCE ( + 89, - COUNT ( * ) + - NULLIF ( - COUNT ( * ), 57 + - 79 ) ) + - + 74, + 29 - + 41 AS col2
----
15
-12

query I rowsort
SELECT ALL - 58 + + + 76 * - 36 + - - 28 AS col0
----
-2766

onlyif mysql # aggregate syntax: 
query I rowsort label-1727
SELECT ALL 29 * + + COALESCE ( + 53, + + 2, + + 51 * - - 19 * + 83 + - 80 + COUNT( * ) ) AS col1
----
1537

skipif mysql # not compatible
query I rowsort label-1727
SELECT ALL 29 * + + COALESCE ( + 53, + + 2, + + 51 * - - 19 * + 83 + - 80 + COUNT ( * ) ) AS col1
----
1537

query II rowsort
SELECT ALL - ( - 24 ) AS col1, 51 AS col1
----
24
51

query I rowsort
SELECT + + 43 col1
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-1730
SELECT ALL - ( + COUNT( * ) ) + + 82 * + COUNT( - 76 )
----
81

skipif mysql # not compatible
query I rowsort label-1730
SELECT ALL - ( + COUNT ( * ) ) + + 82 * + COUNT ( - 76 )
----
81

query I rowsort
SELECT ALL + - 92 + 90 * - - 69 + - 16 + 31 * + 83 * - 57 AS col0
----
-140559

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1732
SELECT DISTINCT - COALESCE ( + - ( - NULLIF ( 20, 87 ) ), 11 * CAST( 9 AS SIGNED ) DIV - - COUNT( * ) ) AS col1
----
-20

skipif mysql # not compatible
query I rowsort label-1732
SELECT DISTINCT - COALESCE ( + - ( - NULLIF ( 20, 87 ) ), 11 * CAST ( 9 AS INTEGER ) / - - COUNT ( * ) ) AS col1
----
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-1733
SELECT - 26 * COUNT( * ) + 32
----
6

skipif mysql # not compatible
query I rowsort label-1733
SELECT - 26 * COUNT ( * ) + 32
----
6

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1734
SELECT ALL - CAST( NULL AS DECIMAL ) / + + 72 + - + 21 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1734
SELECT ALL - CAST ( NULL AS REAL ) / + + 72 + - + 21 AS col1
----
NULL

query I rowsort
SELECT ALL ( ( 46 ) ) - 81 AS col2
----
-35

query II rowsort
SELECT ALL + 81 - + 90, + 72 * + 5 + - ( + COALESCE ( - - 91, + - 70, - + 35 ) ) AS col1
----
-9
269

query I rowsort
SELECT DISTINCT - - 16 - - 82 - 81 * 4
----
-226

onlyif mysql # aggregate syntax: 
query I rowsort label-1738
SELECT ALL - SUM( ALL - 81 ) * SUM( ALL - + 26 ) * 61
----
-128466

skipif mysql # not compatible
query I rowsort label-1738
SELECT ALL - SUM ( ALL - 81 ) * SUM ( ALL - + 26 ) * 61
----
-128466

onlyif mysql # aggregate syntax: 
query I rowsort label-1739
SELECT - ( + + 59 ) * 65 * + SUM( DISTINCT + 21 ) - 33 col2
----
-80568

skipif mysql # not compatible
query I rowsort label-1739
SELECT - ( + + 59 ) * 65 * + SUM ( DISTINCT + 21 ) - 33 col2
----
-80568

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1741
SELECT - 68 + + 35 DIV 45 * 73 AS col0
----
-68

skipif mysql # not compatible
query I rowsort label-1741
SELECT - 68 + + 35 / 45 * 73 AS col0
----
-68

query II rowsort
SELECT - 72 * - 23, + 33 * 25 + - 35 col0
----
1656
790

onlyif mysql # aggregate syntax: 
query I rowsort label-1743
SELECT - + ( - + 30 ) + + 76 + + COUNT( * ) AS col1
----
107

skipif mysql # not compatible
query I rowsort label-1743
SELECT - + ( - + 30 ) + + 76 + + COUNT ( * ) AS col1
----
107

onlyif mysql # DIV for integer division: 
query I rowsort label-1744
SELECT - + COALESCE ( - - 42, - 39 + - - 5 * + NULLIF ( 31, + - 95 ) + - - 64 * - 81, + - 36 + 86 - 45 - 18 * - 80 DIV 6 ) AS col1
----
-42

skipif mysql # not compatible
query I rowsort label-1744
SELECT - + COALESCE ( - - 42, - 39 + - - 5 * + NULLIF ( 31, + - 95 ) + - - 64 * - 81, + - 36 + 86 - 45 - 18 * - 80 / 6 ) AS col1
----
-42

query I rowsort
SELECT - - 49 + - + 86 + - + 67 AS col0
----
-104

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

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

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

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

query I rowsort
SELECT - 37 - + - 39 col0
----
2

query I rowsort
SELECT DISTINCT NULLIF ( + - 16, - 45 )
----
-16

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1751
SELECT ALL NULLIF ( - COUNT( * ), - CASE - 97 WHEN + 69 THEN + - ( - 47 ) ELSE NULL END )
----
-1

skipif mysql # not compatible
query I rowsort label-1751
SELECT ALL NULLIF ( - COUNT ( * ), - CASE - 97 WHEN + 69 THEN + - ( - 47 ) ELSE NULL END )
----
-1

query II rowsort
SELECT - 84 * - CASE + 68 WHEN - + ( - 34 ) THEN NULL WHEN COALESCE ( + + 71, + + 53 - - 94 * 41 ) THEN NULL ELSE 80 END, + 16 AS col1
----
6720
16

query I rowsort
SELECT + 90 + + - CASE + - 69 WHEN + + 84 THEN + 23 END col2
----
NULL

query I rowsort
SELECT + 66 + + 3 AS col0
----
69

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1755
SELECT - CASE - COUNT( * ) WHEN + + 84 / 31 / - 78 THEN NULL WHEN 26 THEN 56 * - - 56 + + 8 ELSE NULL END + - 97 + + + CAST( NULL AS DECIMAL ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1755
SELECT - CASE - COUNT ( * ) WHEN + + 84 / 31 / - 78 THEN NULL WHEN 26 THEN 56 * - - 56 + + 8 ELSE NULL END + - 97 + + + CAST ( NULL AS REAL ) col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1756
SELECT + 60 - - + 82 * - - CASE + + CAST( + + 82 AS SIGNED ) WHEN 72 THEN NULL WHEN - + CASE - + 48 WHEN - COUNT( * ) - - CASE - 16 WHEN - 59 THEN NULL WHEN - 38 THEN + ( + 69 ) END + - 92 * 41 THEN NULL WHEN 89 THEN + 47 / 71 END * 47 THEN NULL WHEN 38 THEN MIN( - 80 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-1756
SELECT + 60 - - + 82 * - - CASE + + CAST ( + + 82 AS INTEGER ) WHEN 72 THEN NULL WHEN - + CASE - + 48 WHEN - COUNT ( * ) - - CASE - 16 WHEN - 59 THEN NULL WHEN - 38 THEN + ( + 69 ) END + - 92 * 41 THEN NULL WHEN 89 THEN + 47 / 71 END * 47 THEN NULL WHEN 38 THEN MIN ( - 80 ) END
----
NULL

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1758
SELECT MIN( ALL - CAST( - 76 AS SIGNED ) ) * 86 + - 52 + + 1
----
6485

skipif mysql # not compatible
query I rowsort label-1758
SELECT MIN ( ALL - CAST ( - 76 AS INTEGER ) ) * 86 + - 52 + + 1
----
6485

query I rowsort
SELECT ALL 69 * + 10 + + 98 AS col2
----
788

onlyif mysql # aggregate syntax: 
query I rowsort label-1760
SELECT DISTINCT + MAX( DISTINCT + 43 ) * - 91 + 83
----
-3830

skipif mysql # not compatible
query I rowsort label-1760
SELECT DISTINCT + MAX ( DISTINCT + 43 ) * - 91 + 83
----
-3830

query I rowsort
SELECT ALL - 39 * 63 + + - 48 AS col1
----
-2505

query I rowsort
SELECT + 0 + - COALESCE ( - 33, 49, + - 88 )
----
33

onlyif mysql # aggregate syntax: 
query II rowsort label-1763
SELECT + NULLIF ( + - COUNT( * ), - 18 / 62 ) AS col1, 20 AS col1
----
-1
20

skipif mysql # not compatible
query II rowsort label-1763
SELECT + NULLIF ( + - COUNT ( * ), - 18 / 62 ) AS col1, 20 AS col1
----
-1
20

onlyif mysql # aggregate syntax: 
query I rowsort label-1764
SELECT 99 * COUNT( * ) * - 16 + + SUM( + 96 )
----
-1488

skipif mysql # not compatible
query I rowsort label-1764
SELECT 99 * COUNT ( * ) * - 16 + + SUM ( + 96 )
----
-1488

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1765
SELECT ALL + + 10 * + + 26 + 94 + 20 + - - ( + CASE + + COALESCE ( 37, COUNT( - 41 ) ) WHEN + 11 * 76 + - 37 + - 43 THEN NULL WHEN + 83 + 19 * + 73 THEN CAST( NULL AS SIGNED ) ELSE 87 * 64 + 59 END ) AS col1
----
6001

skipif mysql # not compatible
query I rowsort label-1765
SELECT ALL + + 10 * + + 26 + 94 + 20 + - - ( + CASE + + COALESCE ( 37, COUNT ( - 41 ) ) WHEN + 11 * 76 + - 37 + - 43 THEN NULL WHEN + 83 + 19 * + 73 THEN CAST ( NULL AS INTEGER ) ELSE 87 * 64 + 59 END ) AS col1
----
6001

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1766
SELECT - 19 * + 9 + 47 + - 69 - CAST( 58 AS SIGNED ) * 32 + + ( + 85 ) * - 60 * - 91 AS col0
----
462051

skipif mysql # not compatible
query I rowsort label-1766
SELECT - 19 * + 9 + 47 + - 69 - CAST ( 58 AS INTEGER ) * 32 + + ( + 85 ) * - 60 * - 91 AS col0
----
462051

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1767
SELECT DISTINCT + 55 * 62 - - - 18 DIV - MAX( 26 ) AS col1
----
3410

skipif mysql # not compatible
query I rowsort label-1767
SELECT DISTINCT + 55 * 62 - - - 18 / - MAX ( 26 ) AS col1
----
3410

query I rowsort
SELECT ALL - - 27 * - 45 AS col1
----
-1215

onlyif mysql # aggregate syntax: 
query II rowsort label-1769
SELECT + 8 AS col1, - ( 88 ) + - 12 + 13 * COUNT( * )
----
8
-87

skipif mysql # not compatible
query II rowsort label-1769
SELECT + 8 AS col1, - ( 88 ) + - 12 + 13 * COUNT ( * )
----
8
-87

query I rowsort
SELECT ALL + - 46 AS col1
----
-46

query I rowsort
SELECT DISTINCT - 41 * + - 70 AS col0
----
2870

query I rowsort
SELECT + 90 * 80 AS col2
----
7200

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1773
SELECT ALL - 8 * NULLIF ( + - 5, CAST( + 5 AS SIGNED ) ) AS col1
----
40

skipif mysql # not compatible
query I rowsort label-1773
SELECT ALL - 8 * NULLIF ( + - 5, CAST ( + 5 AS INTEGER ) ) AS col1
----
40

query I rowsort
SELECT ALL + - 73 col1
----
-73

query I rowsort
SELECT - 13 + - ( + 67 )
----
-80

query II rowsort
SELECT ALL 70 col2, + 67 AS col0
----
70
67

onlyif mysql # aggregate syntax: 
query I rowsort label-1777
SELECT - - COUNT( * ) + - 27 * 1 + COUNT( 12 )
----
-25

skipif mysql # not compatible
query I rowsort label-1777
SELECT - - COUNT ( * ) + - 27 * 1 + COUNT ( 12 )
----
-25

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

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

query II rowsort
SELECT DISTINCT - 60 AS col0, + 80 - - 17 + - + 66 + 73 AS col1
----
-60
104

query I rowsort
SELECT ALL + 92 * - 12 * 86 AS col2
----
-94944

onlyif mysql # aggregate syntax: 
query I rowsort label-1781
SELECT - COUNT( * ) + - + COUNT( * ) * - 59 AS col0
----
58

skipif mysql # not compatible
query I rowsort label-1781
SELECT - COUNT ( * ) + - + COUNT ( * ) * - 59 AS col0
----
58

query I rowsort
SELECT ALL NULLIF ( - 26, - 42 + + + 99 + + + 38 / - 58 )
----
-26

onlyif mysql # DIV for integer division: 
query I rowsort label-1783
SELECT DISTINCT + 74 + - - 76 DIV + - 80
----
74

skipif mysql # not compatible
query I rowsort label-1783
SELECT DISTINCT + 74 + - - 76 / + - 80
----
74

query I rowsort
SELECT DISTINCT - 2 * 67
----
-134

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1786
SELECT DISTINCT + 39 + - + NULLIF ( - 5, - 99 + CASE 52 WHEN - COUNT( * ) THEN - 69 ELSE ( - + ( SUM( + 58 ) ) ) * - 13 + - 72 END )
----
44

skipif mysql # not compatible
query I rowsort label-1786
SELECT DISTINCT + 39 + - + NULLIF ( - 5, - 99 + CASE 52 WHEN - COUNT ( * ) THEN - 69 ELSE ( - + ( SUM ( + 58 ) ) ) * - 13 + - 72 END )
----
44

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1787
SELECT - CAST( + - 40 AS SIGNED ) DIV 83 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-1787
SELECT - CAST ( + - 40 AS INTEGER ) / 83 AS col1
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-1788
SELECT - NULLIF ( - + 34, - 94 + 53 + - COUNT( * ) ) * 5 + + + 46 AS col0, 38
----
216
38

skipif mysql # not compatible
query II rowsort label-1788
SELECT - NULLIF ( - + 34, - 94 + 53 + - COUNT ( * ) ) * 5 + + + 46 AS col0, 38
----
216
38

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1790
SELECT ALL 18 + - + SUM( DISTINCT - - 35 ) AS col2
----
-17

skipif mysql # not compatible
query I rowsort label-1790
SELECT ALL 18 + - + SUM ( DISTINCT - - 35 ) AS col2
----
-17

query I rowsort
SELECT ALL ( 0 )
----
0

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1793
SELECT - 71 + - SUM( + COALESCE ( CAST( 72 AS SIGNED ), - + CAST( NULL AS SIGNED ) * + 45 ) ) + + 47 AS col0
----
-96

skipif mysql # not compatible
query I rowsort label-1793
SELECT - 71 + - SUM ( + COALESCE ( CAST ( 72 AS INTEGER ), - + CAST ( NULL AS INTEGER ) * + 45 ) ) + + 47 AS col0
----
-96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1794
SELECT + NULLIF ( + 16, CAST( - SUM( - - 19 ) AS SIGNED ) )
----
16

skipif mysql # not compatible
query I rowsort label-1794
SELECT + NULLIF ( + 16, CAST ( - SUM ( - - 19 ) AS INTEGER ) )
----
16

query I rowsort
SELECT ALL ( + - 35 ) * - 76 AS col1
----
2660

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1796
SELECT 31 DIV - - 77 + - COUNT( * ) * + 60
----
-60

skipif mysql # not compatible
query I rowsort label-1796
SELECT 31 / - - 77 + - COUNT ( * ) * + 60
----
-60

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-1797
SELECT DISTINCT + 31 * 45, CASE 43 WHEN - - 69 THEN - 35 * + CAST( NULL AS DECIMAL ) / + MAX( DISTINCT + 84 ) * 66 + - + 11 * - ( + 42 ) ELSE NULL END AS col1
----
1395
NULL

skipif mysql # not compatible
query II rowsort label-1797
SELECT DISTINCT + 31 * 45, CASE 43 WHEN - - 69 THEN - 35 * + CAST ( NULL AS REAL ) / + MAX ( DISTINCT + 84 ) * 66 + - + 11 * - ( + 42 ) ELSE NULL END AS col1
----
1395
NULL

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

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

query I rowsort
SELECT - 47 * - 18
----
846

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1800
SELECT ALL + 3 * + + COALESCE ( + 79, + 48 DIV NULLIF ( + COUNT( * ), - + CAST( + COALESCE ( COUNT( * ), CASE - 92 WHEN - ( + 52 ) * + - 74 THEN 45 WHEN ( - CAST( NULL AS SIGNED ) ) THEN + 64 WHEN + 77 + - ( - 83 + + 81 * - 79 ) THEN NULL END * 72, + 77 * - CASE + 66 WHEN 24 THEN 17 WHEN + 0 THEN 41 ELSE NULL END ) AS SIGNED ) - 4 ) DIV 42 ) * + SUM( DISTINCT 58 ) + - 35 * - 55 col0
----
15671

skipif mysql # not compatible
query I rowsort label-1800
SELECT ALL + 3 * + + COALESCE ( + 79, + 48 / NULLIF ( + COUNT ( * ), - + CAST ( + COALESCE ( COUNT ( * ), CASE - 92 WHEN - ( + 52 ) * + - 74 THEN 45 WHEN ( - CAST ( NULL AS INTEGER ) ) THEN + 64 WHEN + 77 + - ( - 83 + + 81 * - 79 ) THEN NULL END * 72, + 77 * - CASE + 66 WHEN 24 THEN 17 WHEN + 0 THEN 41 ELSE NULL END ) AS INTEGER ) - 4 ) / 42 ) * + SUM ( DISTINCT 58 ) + - 35 * - 55 col0
----
15671

query I rowsort
SELECT ALL - 8 AS col1
----
-8

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

query I rowsort
SELECT ALL - NULLIF ( + - 94, - 57 / - + 59 - + + 23 ) AS col0
----
94

query I rowsort
SELECT DISTINCT - + 39
----
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-1805
SELECT + COUNT( * ) * 55 * + 95 * - 85 AS col1
----
-444125

skipif mysql # not compatible
query I rowsort label-1805
SELECT + COUNT ( * ) * 55 * + 95 * - 85 AS col1
----
-444125

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

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1807
SELECT - CAST( NULL AS DECIMAL ) * - 82 * + COUNT( * ) - - - 68
----
NULL

skipif mysql # not compatible
query I rowsort label-1807
SELECT - CAST ( NULL AS REAL ) * - 82 * + COUNT ( * ) - - - 68
----
NULL

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1809
SELECT + 10 DIV - 3
----
-3

skipif mysql # not compatible
query I rowsort label-1809
SELECT + 10 / - 3
----
-3

query I rowsort
SELECT 8 * + 79
----
632

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1811
SELECT - COUNT( * ) * - 58, CAST( 48 AS SIGNED ) AS col1
----
58
48

skipif mysql # not compatible
query II rowsort label-1811
SELECT - COUNT ( * ) * - 58, CAST ( 48 AS INTEGER ) AS col1
----
58
48

query II rowsort
SELECT - 63 * 39, + 49 AS col1
----
-2457
49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1813
SELECT ALL COUNT( * ) + 93, - MAX( ALL CAST( + 84 AS SIGNED ) ) * 69 + ( - + 6 ) AS col0
----
94
-5802

skipif mysql # not compatible
query II rowsort label-1813
SELECT ALL COUNT ( * ) + 93, - MAX ( ALL CAST ( + 84 AS INTEGER ) ) * 69 + ( - + 6 ) AS col0
----
94
-5802

query I rowsort
SELECT + NULLIF ( - + 74, + 58 )
----
-74

query I rowsort
SELECT ALL + 46 + 84 AS col2
----
130

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

skipif mysql # not compatible
query I rowsort label-1816
SELECT COUNT ( - 8 ) * - 43 / + - 60 * - - 54
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1817
SELECT ALL + 35 + + SUM( + + COALESCE ( - - 57, + 32, 45 ) ) AS col0
----
92

skipif mysql # not compatible
query I rowsort label-1817
SELECT ALL + 35 + + SUM ( + + COALESCE ( - - 57, + 32, 45 ) ) AS col0
----
92

onlyif mysql # aggregate syntax: 
query II rowsort label-1818
SELECT CASE WHEN NOT NULL IS NOT NULL THEN 99 ELSE NULL END * + 40 + - + 44 + - 78, 33 * + COUNT( * ) * + COUNT( * ) AS col0
----
3838
33

skipif mysql # not compatible
query II rowsort label-1818
SELECT CASE WHEN NOT NULL IS NOT NULL THEN 99 ELSE NULL END * + 40 + - + 44 + - 78, 33 * + COUNT ( * ) * + COUNT ( * ) AS col0
----
3838
33

query I rowsort
SELECT 71 + - + 57
----
14

query I rowsort
SELECT 9 * + - 81 AS col1
----
-729

onlyif mysql # aggregate syntax: 
query II rowsort label-1821
SELECT ( + 12 ) + - + COUNT( * ) AS col2, 63
----
11
63

skipif mysql # not compatible
query II rowsort label-1821
SELECT ( + 12 ) + - + COUNT ( * ) AS col2, 63
----
11
63

onlyif mysql # DIV for integer division: 
query II rowsort label-1822
SELECT 16 - + 73 DIV + 64 + - 78 + + + 48 AS col0, + 71
----
-15
71

skipif mysql # not compatible
query II rowsort label-1822
SELECT 16 - + 73 / + 64 + - 78 + + + 48 AS col0, + 71
----
-15
71

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1823
SELECT ALL 49 + + 36 / CAST( - CAST( NULL AS SIGNED ) AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-1823
SELECT ALL 49 + + 36 / CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1824
SELECT MIN( ALL + - 43 ) + 45 + - 24 - - 15 AS col0
----
-7

skipif mysql # not compatible
query I rowsort label-1824
SELECT MIN ( ALL + - 43 ) + 45 + - 24 - - 15 AS col0
----
-7

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

skipif mysql # not compatible
query I rowsort label-1825
SELECT ALL + COUNT ( * ) + + 83 AS col1
----
84

query I rowsort
SELECT 9 + - 75 AS col2
----
-66

query I rowsort
SELECT 15 + + + 69
----
84

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1828
SELECT ALL - CAST( - 31 AS SIGNED ) * 22 * + + CAST( + MAX( ALL - 46 ) AS SIGNED ) - - 61
----
-31311

skipif mysql # not compatible
query I rowsort label-1828
SELECT ALL - CAST ( - 31 AS INTEGER ) * 22 * + + CAST ( + MAX ( ALL - 46 ) AS INTEGER ) - - 61
----
-31311

query I rowsort
SELECT 25 + - + 21 AS col1
----
4

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

query I rowsort
SELECT 96 * + 42 AS col0
----
4032

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

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

query I rowsort
SELECT 8 * - 77 AS col2
----
-616

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

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

query I rowsort
SELECT ALL 17 col0
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-1836
SELECT 24 + - + COUNT( * ) * - COUNT( - 28 )
----
25

skipif mysql # not compatible
query I rowsort label-1836
SELECT 24 + - + COUNT ( * ) * - COUNT ( - 28 )
----
25

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1838
SELECT 36 * - MAX( - + 29 ) + 67 + - 50 + 92 DIV + 2
----
1107

skipif mysql # not compatible
query I rowsort label-1838
SELECT 36 * - MAX ( - + 29 ) + 67 + - 50 + 92 / + 2
----
1107

query II rowsort
SELECT ALL - - 72 - ( - + 57 ) AS col2, 84 AS col2
----
129
84

query I rowsort
SELECT DISTINCT - 46 AS col2
----
-46

query I rowsort
SELECT + 45 * + + 7
----
315

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

query I rowsort
SELECT ALL - 23 col2
----
-23

onlyif mysql # aggregate syntax: 
query II rowsort label-1844
SELECT MIN( DISTINCT + 19 ) + 19 AS col0, ( - 6 ) + NULLIF ( - - CASE - 96 WHEN 4 THEN NULL WHEN + CASE - 95 WHEN + 15 - - 6 THEN + + 75 END THEN + + 20 * 23 ELSE + 32 END, 99 * COUNT( * ) ) + + 90 * 99
----
38
8936

skipif mysql # not compatible
query II rowsort label-1844
SELECT MIN ( DISTINCT + 19 ) + 19 AS col0, ( - 6 ) + NULLIF ( - - CASE - 96 WHEN 4 THEN NULL WHEN + CASE - 95 WHEN + 15 - - 6 THEN + + 75 END THEN + + 20 * 23 ELSE + 32 END, 99 * COUNT ( * ) ) + + 90 * 99
----
38
8936

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

query I rowsort
SELECT 84 col2
----
84

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1847
SELECT + 1 * + ( CAST( NULL AS DECIMAL ) ) / + 19 * COUNT( * ) / + NULLIF ( COALESCE ( + 98, COUNT( ALL - 57 ) ), - + CASE - 31 WHEN + - 32 THEN - + COUNT( * ) ELSE NULL END / - NULLIF ( 81, 36 ) + 56 ) + + 22 * 25
----
NULL

skipif mysql # not compatible
query I rowsort label-1847
SELECT + 1 * + ( CAST ( NULL AS REAL ) ) / + 19 * COUNT ( * ) / + NULLIF ( COALESCE ( + 98, COUNT ( ALL - 57 ) ), - + CASE - 31 WHEN + - 32 THEN - + COUNT ( * ) ELSE NULL END / - NULLIF ( 81, 36 ) + 56 ) + + 22 * 25
----
NULL

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

query II rowsort
SELECT ALL - 33 AS col2, - 97 * - - 64 AS col2
----
-33
-6208

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1850
SELECT + - 39 * - 7 * + + 62 + MIN( DISTINCT + 29 ) - - - 7 DIV + 48 col1
----
16955

skipif mysql # not compatible
query I rowsort label-1850
SELECT + - 39 * - 7 * + + 62 + MIN ( DISTINCT + 29 ) - - - 7 / + 48 col1
----
16955

onlyif mysql # aggregate syntax: 
query I rowsort label-1851
SELECT DISTINCT - SUM( + 12 ) col0
----
-12

skipif mysql # not compatible
query I rowsort label-1851
SELECT DISTINCT - SUM ( + 12 ) col0
----
-12

query I rowsort
SELECT DISTINCT - ( 41 ) AS col1
----
-41

onlyif mysql # aggregate syntax: 
query II rowsort label-1853
SELECT ALL - 25 AS col2, - MIN( 68 )
----
-25
-68

skipif mysql # not compatible
query II rowsort label-1853
SELECT ALL - 25 AS col2, - MIN ( 68 )
----
-25
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-1854
SELECT ALL + 56 + + 26 * - MIN( ALL - + 51 ) AS col0
----
1382

skipif mysql # not compatible
query I rowsort label-1854
SELECT ALL + 56 + + 26 * - MIN ( ALL - + 51 ) AS col0
----
1382

onlyif mysql # aggregate syntax: 
query I rowsort label-1855
SELECT DISTINCT - - COUNT( * ) + + NULLIF ( - COUNT( * ), - 65 )
----
0

skipif mysql # not compatible
query I rowsort label-1855
SELECT DISTINCT - - COUNT ( * ) + + NULLIF ( - COUNT ( * ), - 65 )
----
0

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1857
SELECT COUNT( + + ( + 38 ) ) * - 24 * - 7 + + COUNT( * ) * + - COUNT( * ) - + + CAST( + AVG ( ALL - - CAST( - + 80 AS SIGNED ) ) AS SIGNED ) / + MAX( + 36 ) * - 84 * + 89 * + CAST( NULL AS SIGNED ) + 63 + 96
----
NULL

skipif mysql # not compatible
query I rowsort label-1857
SELECT COUNT ( + + ( + 38 ) ) * - 24 * - 7 + + COUNT ( * ) * + - COUNT ( * ) - + + CAST ( + AVG ( ALL - - CAST ( - + 80 AS INTEGER ) ) AS INTEGER ) / + MAX ( + 36 ) * - 84 * + 89 * + CAST ( NULL AS INTEGER ) + 63 + 96
----
NULL

query I rowsort
SELECT DISTINCT - - 76 AS col2
----
76

query I rowsort
SELECT ALL 73 + 15 + 12 col2
----
100

onlyif mysql # DIV for integer division: 
query I rowsort label-1860
SELECT 80 DIV + 15 AS col2
----
5

skipif mysql # not compatible
query I rowsort label-1860
SELECT 80 / + 15 AS col2
----
5

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1861
SELECT CASE + 22 WHEN + 80 + + 82 * - 66 THEN ( ( 69 ) ) * + 24 + - + CAST( NULL AS DECIMAL ) * + 20 * - 31 * - MAX( DISTINCT - + 19 ) * 99 * - 67 ELSE NULL END * 34
----
NULL

skipif mysql # not compatible
query I rowsort label-1861
SELECT CASE + 22 WHEN + 80 + + 82 * - 66 THEN ( ( 69 ) ) * + 24 + - + CAST ( NULL AS REAL ) * + 20 * - 31 * - MAX ( DISTINCT - + 19 ) * 99 * - 67 ELSE NULL END * 34
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1862
SELECT DISTINCT MAX( DISTINCT + - 62 )
----
-62

skipif mysql # not compatible
query I rowsort label-1862
SELECT DISTINCT MAX ( DISTINCT + - 62 )
----
-62

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1863
SELECT ALL 42 + 47 * 31 * - - 3 * + 35 + + 75, - 53 * + ( COUNT( * ) ) + - CAST( - COUNT( * ) AS SIGNED ) * + 72 AS col2
----
153102
19

skipif mysql # not compatible
query II rowsort label-1863
SELECT ALL 42 + 47 * 31 * - - 3 * + 35 + + 75, - 53 * + ( COUNT ( * ) ) + - CAST ( - COUNT ( * ) AS INTEGER ) * + 72 AS col2
----
153102
19

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

skipif mysql # not compatible
query I rowsort label-1864
SELECT ALL ( 39 ) * CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1865
SELECT DISTINCT + NULLIF ( - 67, + + MIN( + ( + 5 ) ) ) - 81 + + + 51
----
-97

skipif mysql # not compatible
query I rowsort label-1865
SELECT DISTINCT + NULLIF ( - 67, + + MIN ( + ( + 5 ) ) ) - 81 + + + 51
----
-97

onlyif mysql # DIV for integer division: 
query I rowsort label-1866
SELECT ALL 65 * 66 DIV - - 47 AS col0
----
91

skipif mysql # not compatible
query I rowsort label-1866
SELECT ALL 65 * 66 / - - 47 AS col0
----
91

query II rowsort
SELECT 56, ( - 17 ) AS col1
----
56
-17

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

skipif mysql # not compatible
query II rowsort label-1868
SELECT - COUNT ( * ), 26 AS col1
----
-1
26

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1869
SELECT 5 - + + SUM( DISTINCT + 28 ) / + 48 * - 19 * + ( ( - - AVG ( ALL 52 ) ) ) - - 67 + - - CASE + 98 WHEN COUNT( * ) THEN NULL ELSE 37 END * - 85 / + CAST( NULL AS SIGNED ) * + COUNT( * ) + 93 * 43 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1869
SELECT 5 - + + SUM ( DISTINCT + 28 ) / + 48 * - 19 * + ( ( - - AVG ( ALL 52 ) ) ) - - 67 + - - CASE + 98 WHEN COUNT ( * ) THEN NULL ELSE 37 END * - 85 / + CAST ( NULL AS INTEGER ) * + COUNT ( * ) + 93 * 43 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1870
SELECT DISTINCT 6 AS col1, 2 * - 16 - - 4 + - - SUM( DISTINCT + 44 )
----
6
16

skipif mysql # not compatible
query II rowsort label-1870
SELECT DISTINCT 6 AS col1, 2 * - 16 - - 4 + - - SUM ( DISTINCT + 44 )
----
6
16

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1871
SELECT ALL 58 AS col0, - 75 DIV + MAX( + - 87 )
----
58
0

skipif mysql # not compatible
query II rowsort label-1871
SELECT ALL 58 AS col0, - 75 / + MAX ( + - 87 )
----
58
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1872
SELECT 53 * + CASE + + 27 WHEN + + 78 THEN + - 41 WHEN + ( + 50 ) THEN SUM( 75 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-1872
SELECT 53 * + CASE + + 27 WHEN + + 78 THEN + - 41 WHEN + ( + 50 ) THEN SUM ( 75 ) END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1873
SELECT DISTINCT - 77 * - CAST( 66 AS SIGNED ) AS col1
----
5082

skipif mysql # not compatible
query I rowsort label-1873
SELECT DISTINCT - 77 * - CAST ( 66 AS INTEGER ) AS col1
----
5082

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1875
SELECT ALL - + COALESCE ( NULLIF ( + ( ( 47 ) ), + - 26 ), - 82, + + COUNT( DISTINCT - + 94 ), - + 12 ) * 36 * - 29
----
49068

skipif mysql # not compatible
query I rowsort label-1875
SELECT ALL - + COALESCE ( NULLIF ( + ( ( 47 ) ), + - 26 ), - 82, + + COUNT ( DISTINCT - + 94 ), - + 12 ) * 36 * - 29
----
49068

query I rowsort
SELECT DISTINCT + 54 * + + 58 AS col0
----
3132

onlyif mysql # aggregate syntax: 
query I rowsort label-1877
SELECT - MAX( ALL 80 ) * + NULLIF ( 53, 74 ) * - ( - 20 ) * + 54 + + 42 + - 82 * + MIN( ALL - + 94 ) col2
----
-4571450

skipif mysql # not compatible
query I rowsort label-1877
SELECT - MAX ( ALL 80 ) * + NULLIF ( 53, 74 ) * - ( - 20 ) * + 54 + + 42 + - 82 * + MIN ( ALL - + 94 ) col2
----
-4571450

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1878
SELECT - + COALESCE ( - 86, ( 70 ) * + 92 + - 72, 15 + + 81 + - 66 ) * - - 99 - + - COUNT( * ) + + 15 + - CAST( NULL AS SIGNED ) / + ( + 89 ) * - 55 - 59
----
NULL

skipif mysql # not compatible
query I rowsort label-1878
SELECT - + COALESCE ( - 86, ( 70 ) * + 92 + - 72, 15 + + 81 + - 66 ) * - - 99 - + - COUNT ( * ) + + 15 + - CAST ( NULL AS INTEGER ) / + ( + 89 ) * - 55 - 59
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1879
SELECT - 65 DIV + ( + 41 )
----
-1

skipif mysql # not compatible
query I rowsort label-1879
SELECT - 65 / + ( + 41 )
----
-1

query I rowsort
SELECT ALL - 20 * 68 + - - 12 AS col1
----
-1348

onlyif mysql # aggregate syntax: 
query I rowsort label-1881
SELECT + + 40 * - MAX( + 16 ) - 72
----
-712

skipif mysql # not compatible
query I rowsort label-1881
SELECT + + 40 * - MAX ( + 16 ) - 72
----
-712

onlyif mysql # aggregate syntax: 
query I rowsort label-1882
SELECT + 69 / + 63 + CASE - 44 WHEN + 15 THEN NULL WHEN + MAX( - + 57 ) THEN + + 90 END col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1882
SELECT + 69 / + 63 + CASE - 44 WHEN + 15 THEN NULL WHEN + MAX ( - + 57 ) THEN + + 90 END col0
----
NULL

query II rowsort
SELECT ALL + 47 AS col1, 15
----
47
15

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

query II rowsort
SELECT - 67, - 39 AS col2
----
-67
-39

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

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

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

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

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

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

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

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

query I rowsort
SELECT DISTINCT - 26 * + ( + 93 ) * + 21 * + + 25 * - 4
----
5077800

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1893
SELECT - 89 + - - ( ( CASE + 44 WHEN 66 THEN NULL ELSE - ( - - 89 ) DIV 82 * COUNT( * ) * + - 59 END ) ) AS col0
----
-30

skipif mysql # not compatible
query I rowsort label-1893
SELECT - 89 + - - ( ( CASE + 44 WHEN 66 THEN NULL ELSE - ( - - 89 ) / 82 * COUNT ( * ) * + - 59 END ) ) AS col0
----
-30

query I rowsort
SELECT - NULLIF ( - 49, + - 91 ) AS col1
----
49

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

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

query I rowsort
SELECT - 41 + - ( - 27 ) - - - 69 AS col0
----
-83

query I rowsort
SELECT + 35 * - - 23
----
805

query I rowsort
SELECT DISTINCT 47 * - ( - 15 ) * + 13 AS col2
----
9165

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1899
SELECT DISTINCT - 24 + COALESCE ( COALESCE ( - - COALESCE ( - 88, + 43 * - CAST( - 6 AS SIGNED ) + 70 ), + 77 + + - 70 ), + 90 DIV - CAST( - 59 AS SIGNED ) * + + 25 + + MIN( - ( 2 ) ) + 86, + ( + CASE 72 WHEN - 15 THEN + 43 * 61 END ) DIV CASE - 43 - COALESCE ( 16, 55 ) WHEN + COALESCE ( + 69, COALESCE ( SUM( - ( - 64 ) ), + 60 DIV - 73 ) ) THEN + COALESCE ( 88, + 98 DIV - 71 ) ELSE NULL END + - 43 ) col1
----
-112

skipif mysql # not compatible
query I rowsort label-1899
SELECT DISTINCT - 24 + COALESCE ( COALESCE ( - - COALESCE ( - 88, + 43 * - CAST ( - 6 AS INTEGER ) + 70 ), + 77 + + - 70 ), + 90 / - CAST ( - 59 AS INTEGER ) * + + 25 + + MIN ( - ( 2 ) ) + 86, + ( + CASE 72 WHEN - 15 THEN + 43 * 61 END ) / CASE - 43 - COALESCE ( 16, 55 ) WHEN + COALESCE ( + 69, COALESCE ( SUM ( - ( - 64 ) ), + 60 / - 73 ) ) THEN + COALESCE ( 88, + 98 / - 71 ) ELSE NULL END + - 43 ) col1
----
-112

query I rowsort
SELECT - - 37 AS col0
----
37

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1902
SELECT ALL COUNT( * ) + + + 95
----
96

skipif mysql # not compatible
query I rowsort label-1902
SELECT ALL COUNT ( * ) + + + 95
----
96

query I rowsort
SELECT - - 26 AS col1
----
26

onlyif mysql # aggregate syntax: 
query II rowsort label-1904
SELECT - MAX( + 67 ) AS col1, CASE - COUNT( * ) WHEN - + 43 - + COUNT( * ) THEN - - ( + NULLIF ( + 92, + 62 + + - 6 - - - 67 * - - 45 ) ) * + 92 ELSE NULL END * - + COUNT( * ) AS col2
----
-67
NULL

skipif mysql # not compatible
query II rowsort label-1904
SELECT - MAX ( + 67 ) AS col1, CASE - COUNT ( * ) WHEN - + 43 - + COUNT ( * ) THEN - - ( + NULLIF ( + 92, + 62 + + - 6 - - - 67 * - - 45 ) ) * + 92 ELSE NULL END * - + COUNT ( * ) AS col2
----
-67
NULL

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

onlyif mysql # DIV for integer division: 
query II rowsort label-1906
SELECT DISTINCT 86 + - - NULLIF ( 52, + 99 * + 68 + 24 * + 58 ) DIV + 92 AS col1, 19 * - + ( + + 80 ) AS col0
----
86
-1520

skipif mysql # not compatible
query II rowsort label-1906
SELECT DISTINCT 86 + - - NULLIF ( 52, + 99 * + 68 + 24 * + 58 ) / + 92 AS col1, 19 * - + ( + + 80 ) AS col0
----
86
-1520

onlyif mysql # aggregate syntax: 
query I rowsort label-1907
SELECT DISTINCT + + SUM( ALL - CASE + 92 WHEN + 68 THEN - 65 ELSE NULL END ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1907
SELECT DISTINCT + + SUM ( ALL - CASE + 92 WHEN + 68 THEN - 65 ELSE NULL END ) col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1908
SELECT ALL COUNT( * ) DIV - COALESCE ( - + 59, - CASE - 43 WHEN - 6 DIV CAST( NULL AS SIGNED ) THEN + + 37 - + 92 + + 90 WHEN + 48 * + CASE - COUNT( * ) WHEN 82 THEN + - 20 ELSE NULL END + + - COUNT( * ) THEN NULL END + - 37 * - 84, 53 ) + 85
----
85

skipif mysql # not compatible
query I rowsort label-1908
SELECT ALL COUNT ( * ) / - COALESCE ( - + 59, - CASE - 43 WHEN - 6 / CAST ( NULL AS INTEGER ) THEN + + 37 - + 92 + + 90 WHEN + 48 * + CASE - COUNT ( * ) WHEN 82 THEN + - 20 ELSE NULL END + + - COUNT ( * ) THEN NULL END + - 37 * - 84, 53 ) + 85
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-1909
SELECT - SUM( 84 ) + + 6
----
-78

skipif mysql # not compatible
query I rowsort label-1909
SELECT - SUM ( 84 ) + + 6
----
-78

query I rowsort
SELECT + 62 col0
----
62

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1912
SELECT DISTINCT - 73 DIV + 1 + - 68 + 66 + 22 + - - ( 12 )
----
-41

skipif mysql # not compatible
query I rowsort label-1912
SELECT DISTINCT - 73 / + 1 + - 68 + 66 + 22 + - - ( 12 )
----
-41

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1913
SELECT ALL 58 DIV COALESCE ( - ( - COALESCE ( - 83, + + COUNT( * ), + - 88 ) ), - ( + 30 ) + + ( MIN( DISTINCT - 7 ) ) + + 9 + + 53 + - + 19 * 3 ) * - 89 * 44 + - 25 + - 50 * + 31 col2
----
-1575

skipif mysql # not compatible
query I rowsort label-1913
SELECT ALL 58 / COALESCE ( - ( - COALESCE ( - 83, + + COUNT ( * ), + - 88 ) ), - ( + 30 ) + + ( MIN ( DISTINCT - 7 ) ) + + 9 + + 53 + - + 19 * 3 ) * - 89 * 44 + - 25 + - 50 * + 31 col2
----
-1575

query I rowsort
SELECT - + 4 * + ( + 80 ) AS col2
----
-320

query I rowsort
SELECT + - 35 * + 81 + + + 41
----
-2794

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

query I rowsort
SELECT ALL 74 * - - ( - 67 ) - 90 AS col2
----
-5048

query II rowsort
SELECT DISTINCT + 77 AS col0, 92
----
77
92

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

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

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

query II rowsort
SELECT ALL + 54 AS col1, 84 AS col2
----
54
84

query I rowsort
SELECT 67 * 30 * + - 28 * - + 66 + ( 18 ) AS col2
----
3714498

onlyif mysql # aggregate syntax: 
query I rowsort label-1923
SELECT ( + COALESCE ( + 75, + COUNT( ALL 78 ) ) )
----
75

skipif mysql # not compatible
query I rowsort label-1923
SELECT ( + COALESCE ( + 75, + COUNT ( ALL 78 ) ) )
----
75

query I rowsort
SELECT - 48 * - + 62
----
2976

query I rowsort
SELECT - 54 * ( - ( + 40 ) ) AS col0
----
2160

query I rowsort
SELECT - 71 + 82
----
11

query I rowsort
SELECT DISTINCT - ( - 58 ) * 54 AS col0
----
3132

query I rowsort
SELECT ALL + 77 * + + 51 * + 84
----
329868

query I rowsort
SELECT 34 * - NULLIF ( 39, 56 ) AS col1
----
-1326

query I rowsort
SELECT ALL + 4 * - 53
----
-212

onlyif mysql # DIV for integer division: 
query II rowsort label-1931
SELECT ALL 13 AS col1, 10 DIV 84
----
13
0

skipif mysql # not compatible
query II rowsort label-1931
SELECT ALL 13 AS col1, 10 / 84
----
13
0

query II rowsort
SELECT ALL + ( + 70 ) * 90 AS col0, - 70
----
6300
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-1933
SELECT COUNT( + 62 ) * COUNT( * ) * + 68 + + 34
----
102

skipif mysql # not compatible
query I rowsort label-1933
SELECT COUNT ( + 62 ) * COUNT ( * ) * + 68 + + 34
----
102

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1934
SELECT DISTINCT + 59 + - + CASE + 98 WHEN + CASE + - 48 WHEN 5 + + COUNT( * ) THEN + 61 + - CASE + COUNT( * ) WHEN 1 THEN NULL ELSE COUNT( * ) END * 99 / 56 / COUNT( - COALESCE ( - 33, + 86 ) ) WHEN COUNT( * ) THEN NULL END * MIN( ALL - CAST( + 92 AS SIGNED ) + ( ( + 0 ) ) ) + - NULLIF ( + 47, COALESCE ( - NULLIF ( COUNT( * ), - NULLIF ( - 86, + COUNT( 92 ) ) * 14 ), 3, - 3, - NULLIF ( 9, 25 + + 89 * ( + 7 ) ) / + 44 - - SUM( + 34 ) ) + CAST( NULL AS SIGNED ) ) THEN COUNT( * ) ELSE NULL END / - 80 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1934
SELECT DISTINCT + 59 + - + CASE + 98 WHEN + CASE + - 48 WHEN 5 + + COUNT ( * ) THEN + 61 + - CASE + COUNT ( * ) WHEN 1 THEN NULL ELSE COUNT ( * ) END * 99 / 56 / COUNT ( - COALESCE ( - 33, + 86 ) ) WHEN COUNT ( * ) THEN NULL END * MIN ( ALL - CAST ( + 92 AS INTEGER ) + ( ( + 0 ) ) ) + - NULLIF ( + 47, COALESCE ( - NULLIF ( COUNT ( * ), - NULLIF ( - 86, + COUNT ( 92 ) ) * 14 ), 3, - 3, - NULLIF ( 9, 25 + + 89 * ( + 7 ) ) / + 44 - - SUM ( + 34 ) ) + CAST ( NULL AS INTEGER ) ) THEN COUNT ( * ) ELSE NULL END / - 80 col1
----
NULL

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

skipif mysql # not compatible
query I rowsort label-1935
SELECT ALL - 5 + + COUNT ( * ) * + - 73 AS col1
----
-78

onlyif mysql # DIV for integer division: 
query III rowsort label-1936
SELECT + 38 DIV + 81 + + 52 AS col0, - 5 AS col0, + - 5
----
52
-5
-5

skipif mysql # not compatible
query III rowsort label-1936
SELECT + 38 / + 81 + + 52 AS col0, - 5 AS col0, + - 5
----
52
-5
-5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1937
SELECT CASE - + 11 WHEN + CAST( ( + 31 ) AS SIGNED ) / COUNT( - + 66 ) THEN 51 * - + COUNT( * ) ELSE - 52 END * - + COUNT( * ) AS col1
----
52

skipif mysql # not compatible
query I rowsort label-1937
SELECT CASE - + 11 WHEN + CAST ( ( + 31 ) AS INTEGER ) / COUNT ( - + 66 ) THEN 51 * - + COUNT ( * ) ELSE - 52 END * - + COUNT ( * ) AS col1
----
52

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

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

skipif mysql # not compatible
query I rowsort label-1939
SELECT ALL COUNT ( * ) / + 45
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1940
SELECT ALL + + CASE + 58 WHEN - 64 THEN + NULLIF ( - ( - + 66 ), - 32 ) * + - COUNT( + 90 ) + - 92 * + COUNT( * ) * 89 / - 68 END + CAST( - 82 AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-1940
SELECT ALL + + CASE + 58 WHEN - 64 THEN + NULLIF ( - ( - + 66 ), - 32 ) * + - COUNT ( + 90 ) + - 92 * + COUNT ( * ) * 89 / - 68 END + CAST ( - 82 AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1941
SELECT DISTINCT - - 32 + 47 * + + 15 * - - 90 + + 21 DIV - 14 + + MAX( ALL + + 91 ) + - COUNT( * ) DIV - COUNT( * ) AS col2
----
63573

skipif mysql # not compatible
query I rowsort label-1941
SELECT DISTINCT - - 32 + 47 * + + 15 * - - 90 + + 21 / - 14 + + MAX ( ALL + + 91 ) + - COUNT ( * ) / - COUNT ( * ) AS col2
----
63573

onlyif mysql # aggregate syntax: 
query I rowsort label-1942
SELECT DISTINCT COALESCE ( + MAX( DISTINCT + + 4 ), 3 )
----
4

skipif mysql # not compatible
query I rowsort label-1942
SELECT DISTINCT COALESCE ( + MAX ( DISTINCT + + 4 ), 3 )
----
4

onlyif mysql # DIV for integer division: 
query I rowsort label-1943
SELECT ALL 58 + + 33 DIV + ( 36 ) * - + ( - 82 ) col1
----
58

skipif mysql # not compatible
query I rowsort label-1943
SELECT ALL 58 + + 33 / + ( 36 ) * - + ( - 82 ) col1
----
58

query I rowsort
SELECT 21 - + 10 AS col0
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-1945
SELECT ALL SUM( DISTINCT 98 )
----
98

skipif mysql # not compatible
query I rowsort label-1945
SELECT ALL SUM ( DISTINCT 98 )
----
98

query I rowsort
SELECT - 71 + 61 AS col2
----
-10

query I rowsort
SELECT - - 97 col2
----
97

query II rowsort
SELECT DISTINCT - + 20 AS col2, 20 col2
----
-20
20

query I rowsort
SELECT ALL + 19 - 24 + - 52
----
-57

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1950
SELECT COALESCE ( - - 51, + + 79 + + MAX( 39 ) ) * CASE + COUNT( * ) WHEN + CAST( - NULLIF ( - - 16, - 32 + 92 ) AS SIGNED ) THEN NULL WHEN - 16 THEN + 24 ELSE - + 18 END + 31
----
-887

skipif mysql # not compatible
query I rowsort label-1950
SELECT COALESCE ( - - 51, + + 79 + + MAX ( 39 ) ) * CASE + COUNT ( * ) WHEN + CAST ( - NULLIF ( - - 16, - 32 + 92 ) AS INTEGER ) THEN NULL WHEN - 16 THEN + 24 ELSE - + 18 END + 31
----
-887

onlyif mysql # aggregate syntax: 
query I rowsort label-1951
SELECT 39 * + 9 + - COUNT( * ) AS col1
----
350

skipif mysql # not compatible
query I rowsort label-1951
SELECT 39 * + 9 + - COUNT ( * ) AS col1
----
350

query II rowsort
SELECT 89, - 38 AS col2
----
89
-38

query II rowsort
SELECT + 52 AS col2, - 34 * - 22 col0
----
52
748

query I rowsort
SELECT ALL - - 4 AS col0
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-1955
SELECT ALL - COUNT( DISTINCT 83 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-1955
SELECT ALL - COUNT ( DISTINCT 83 ) AS col2
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-1956
SELECT ( - 65 ) DIV + 20 AS col2
----
-3

skipif mysql # not compatible
query I rowsort label-1956
SELECT ( - 65 ) / + 20 AS col2
----
-3

query I rowsort
SELECT 80 * 48 + 71
----
3911

onlyif mysql # aggregate syntax: 
query I rowsort label-1958
SELECT ALL ( - 16 ) * - - 67 * - COUNT( * )
----
1072

skipif mysql # not compatible
query I rowsort label-1958
SELECT ALL ( - 16 ) * - - 67 * - COUNT ( * )
----
1072

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1959
SELECT ( - + 40 ) DIV + 91 * - - MIN( ALL + 23 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-1959
SELECT ( - + 40 ) / + 91 * - - MIN ( ALL + 23 ) AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1960
SELECT ALL - COUNT( * ) * 91 * 9 * + NULLIF ( - - 39, + COUNT( * ) )
----
-31941

skipif mysql # not compatible
query I rowsort label-1960
SELECT ALL - COUNT ( * ) * 91 * 9 * + NULLIF ( - - 39, + COUNT ( * ) )
----
-31941

query I rowsort
SELECT 43 * - 99 * - 60 col0
----
255420

query I rowsort
SELECT ALL + 72 + - ( 3 )
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-1963
SELECT + 62 * 89 - + NULLIF ( - ( 60 ), - 6 * - COUNT( * ) * + COALESCE ( + 39, - + ( - 14 ) * AVG ( DISTINCT - - 23 ) * + + MAX( 51 ) ) - - - AVG ( ALL 33 ) ) + + 15
----
5593

skipif mysql # not compatible
query I rowsort label-1963
SELECT + 62 * 89 - + NULLIF ( - ( 60 ), - 6 * - COUNT ( * ) * + COALESCE ( + 39, - + ( - 14 ) * AVG ( DISTINCT - - 23 ) * + + MAX ( 51 ) ) - - - AVG ( ALL 33 ) ) + + 15
----
5593

query I rowsort
SELECT 24 + + - 50
----
-26

onlyif mysql # aggregate syntax: 
query II rowsort label-1965
SELECT COALESCE ( 62, + MAX( DISTINCT - 84 ) * 49, - - 15 * + 76 * - - 6 ) * + 6 * 8, + 86 * CASE - + 14 WHEN - 64 THEN NULL WHEN 18 * + 23 - + 2 THEN NULL ELSE 83 END + + 24 AS col1
----
2976
7162

skipif mysql # not compatible
query II rowsort label-1965
SELECT COALESCE ( 62, + MAX ( DISTINCT - 84 ) * 49, - - 15 * + 76 * - - 6 ) * + 6 * 8, + 86 * CASE - + 14 WHEN - 64 THEN NULL WHEN 18 * + 23 - + 2 THEN NULL ELSE 83 END + + 24 AS col1
----
2976
7162

query I rowsort
SELECT 69 * - 8
----
-552

onlyif mysql # DIV for integer division: 
query II rowsort label-1967
SELECT ALL + 73 + - 38 * - 44 + + 13 AS col1, 64 DIV - 20
----
1758
-3

skipif mysql # not compatible
query II rowsort label-1967
SELECT ALL + 73 + - 38 * - 44 + + 13 AS col1, 64 / - 20
----
1758
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-1968
SELECT 85 - COUNT( * )
----
84

skipif mysql # not compatible
query I rowsort label-1968
SELECT 85 - COUNT ( * )
----
84

query I rowsort
SELECT ALL + - 59 * 70 - - 82
----
-4048

onlyif mysql # aggregate syntax: 
query I rowsort label-1970
SELECT ALL 45 + MIN( DISTINCT + 18 ) AS col0
----
63

skipif mysql # not compatible
query I rowsort label-1970
SELECT ALL 45 + MIN ( DISTINCT + 18 ) AS col0
----
63

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1971
SELECT ALL - MIN( DISTINCT - 19 ) + + SUM( DISTINCT 93 ) + + 48 + + + SUM( DISTINCT + + 89 ) + + + CAST( NULL AS SIGNED ) * - - CAST( - COUNT( * ) AS SIGNED ) * + - 97 * COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-1971
SELECT ALL - MIN ( DISTINCT - 19 ) + + SUM ( DISTINCT 93 ) + + 48 + + + SUM ( DISTINCT + + 89 ) + + + CAST ( NULL AS INTEGER ) * - - CAST ( - COUNT ( * ) AS INTEGER ) * + - 97 * COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1972
SELECT ALL + - 58 + COUNT( ALL + 84 ) * - - 37 * 65
----
2347

skipif mysql # not compatible
query I rowsort label-1972
SELECT ALL + - 58 + COUNT ( ALL + 84 ) * - - 37 * 65
----
2347

query I rowsort
SELECT + 12 + 10 + + - 63 AS col2
----
-41

query I rowsort
SELECT DISTINCT + ( - 10 ) + - 97 AS col2
----
-107

onlyif mysql # DIV for integer division: 
query II rowsort label-1975
SELECT - - ( + 31 ) col0, 42 DIV + - 58 * - 19
----
31
0

skipif mysql # not compatible
query II rowsort label-1975
SELECT - - ( + 31 ) col0, 42 / + - 58 * - 19
----
31
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1976
SELECT 81 + + COUNT( * ) + 84
----
166

skipif mysql # not compatible
query I rowsort label-1976
SELECT 81 + + COUNT ( * ) + 84
----
166

onlyif mysql # aggregate syntax: 
query I rowsort label-1977
SELECT ALL + 48 - - MIN( ALL + - 23 ) col0
----
25

skipif mysql # not compatible
query I rowsort label-1977
SELECT ALL + 48 - - MIN ( ALL + - 23 ) col0
----
25

query I rowsort
SELECT 12 * - 41 AS col2
----
-492

onlyif mysql # DIV for integer division: 
query I rowsort label-1979
SELECT + 52 + - 29 DIV - 1
----
81

skipif mysql # not compatible
query I rowsort label-1979
SELECT + 52 + - 29 / - 1
----
81

query I rowsort
SELECT 15 * + 44 * + 6 + 17
----
3977

onlyif mysql # DIV for integer division: 
query I rowsort label-1981
SELECT ALL - 98 DIV - 52
----
1

skipif mysql # not compatible
query I rowsort label-1981
SELECT ALL - 98 / - 52
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1982
SELECT 92 * 62 + COUNT( DISTINCT - 65 ) col1
----
5705

skipif mysql # not compatible
query I rowsort label-1982
SELECT 92 * 62 + COUNT ( DISTINCT - 65 ) col1
----
5705

query I rowsort
SELECT + 28 * + 28 + - 54 + - 53 AS col0
----
677

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

skipif mysql # not compatible
query I rowsort label-1984
SELECT + - MIN ( 84 )
----
-84

query II rowsort
SELECT + 73 AS col1, + 91 AS col0
----
73
91

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

skipif mysql # not compatible
query I rowsort label-1986
SELECT SUM ( + + 10 )
----
10

query I rowsort
SELECT DISTINCT ( - 60 ) * - 19
----
1140

onlyif mysql # aggregate syntax: 
query II rowsort label-1988
SELECT 3 * + COUNT( * ) + - COUNT( * ) * - - 6 * COUNT( * ) * - - 96, - NULLIF ( COUNT( * ), - 9 + + 78 - ( 35 ) * - 61 ) AS col1
----
-573
-1

skipif mysql # not compatible
query II rowsort label-1988
SELECT 3 * + COUNT ( * ) + - COUNT ( * ) * - - 6 * COUNT ( * ) * - - 96, - NULLIF ( COUNT ( * ), - 9 + + 78 - ( 35 ) * - 61 ) AS col1
----
-573
-1

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

skipif mysql # not compatible
query I rowsort label-1989
SELECT + MIN ( + - 58 )
----
-58

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1991
SELECT ALL 89 DIV 59 DIV - + 65
----
0

skipif mysql # not compatible
query I rowsort label-1991
SELECT ALL 89 / 59 / - + 65
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1992
SELECT + MIN( ALL 31 ) AS col0
----
31

skipif mysql # not compatible
query I rowsort label-1992
SELECT + MIN ( ALL 31 ) AS col0
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-1993
SELECT + 12 + + 24 + - MAX( - 33 ) * 28 * - MIN( ALL - - 64 )
----
-59100

skipif mysql # not compatible
query I rowsort label-1993
SELECT + 12 + + 24 + - MAX ( - 33 ) * 28 * - MIN ( ALL - - 64 )
----
-59100

onlyif mysql # aggregate syntax: 
query II rowsort label-1994
SELECT + CASE - + 57 WHEN 27 THEN 71 ELSE + COUNT( * ) END AS col0, 87
----
1
87

skipif mysql # not compatible
query II rowsort label-1994
SELECT + CASE - + 57 WHEN 27 THEN 71 ELSE + COUNT ( * ) END AS col0, 87
----
1
87

query I rowsort
SELECT DISTINCT - 44 * + 33 + - 12 AS col2
----
-1464

query I rowsort
SELECT + 64 + + 44 + - + 13 col1
----
95

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1998
SELECT + MIN( - + 77 ) col1
----
-77

skipif mysql # not compatible
query I rowsort label-1998
SELECT + MIN ( - + 77 ) col1
----
-77

query I rowsort
SELECT ALL 34 + - 13 AS col2
----
21

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2001
SELECT DISTINCT - 54 DIV 99 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-2001
SELECT DISTINCT - 54 / 99 AS col1
----
0

query I rowsort
SELECT + - 49 * 17
----
-833

onlyif mysql # aggregate syntax: 
query II rowsort label-2003
SELECT + 96 AS col0, + 63 + - COUNT( * )
----
96
62

skipif mysql # not compatible
query II rowsort label-2003
SELECT + 96 AS col0, + 63 + - COUNT ( * )
----
96
62

query I rowsort
SELECT - + 4
----
-4

query I rowsort
SELECT ALL 79 - + + 8 AS col0
----
71

query I rowsort
SELECT + 49 * 31 * + + 71
----
107849

query I rowsort
SELECT - NULLIF ( + 60, 7 + + 57 ) AS col2
----
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-2008
SELECT + SUM( + 89 ) - - 67
----
156

skipif mysql # not compatible
query I rowsort label-2008
SELECT + SUM ( + 89 ) - - 67
----
156

onlyif mysql # aggregate syntax: 
query I rowsort label-2009
SELECT - - MAX( ALL + + 43 ) AS col2
----
43

skipif mysql # not compatible
query I rowsort label-2009
SELECT - - MAX ( ALL + + 43 ) AS col2
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-2010
SELECT + 76 - + MIN( DISTINCT - - 27 ) + - 70 AS col0
----
-21

skipif mysql # not compatible
query I rowsort label-2010
SELECT + 76 - + MIN ( DISTINCT - - 27 ) + - 70 AS col0
----
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-2011
SELECT - 45 * - + 35 * - + COUNT( * )
----
-1575

skipif mysql # not compatible
query I rowsort label-2011
SELECT - 45 * - + 35 * - + COUNT ( * )
----
-1575

query I rowsort
SELECT DISTINCT - - 89 * + 68 AS col1
----
6052

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2013
SELECT DISTINCT - 88 AS col0, ( - + NULLIF ( + - 28, - CAST( - 10 AS SIGNED ) + + 41 * + 86 ) ) DIV 90
----
-88
0

skipif mysql # not compatible
query II rowsort label-2013
SELECT DISTINCT - 88 AS col0, ( - + NULLIF ( + - 28, - CAST ( - 10 AS INTEGER ) + + 41 * + 86 ) ) / 90
----
-88
0

query I rowsort
SELECT ALL - + 39 * - 62 * - 66 AS col1
----
-159588

query I rowsort
SELECT - + 31 * - 40 AS col1
----
1240

query I rowsort
SELECT ALL + ( + CASE - + 74 WHEN 31 * - 42 + - 96 THEN 67 END )
----
NULL

query I rowsort
SELECT - - 56 - + 68 AS col1
----
-12

query I rowsort
SELECT - - 40 AS col0
----
40

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2019
SELECT + + SUM( ALL - 85 ) + SUM( DISTINCT + 61 ) - - ( - + NULLIF ( - CAST( NULL AS SIGNED ), 42 / - - 92 + + + 78 + 64 - + ( - COUNT( * ) ) ) ) - - + 3 * - 81 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2019
SELECT + + SUM ( ALL - 85 ) + SUM ( DISTINCT + 61 ) - - ( - + NULLIF ( - CAST ( NULL AS INTEGER ), 42 / - - 92 + + + 78 + 64 - + ( - COUNT ( * ) ) ) ) - - + 3 * - 81 AS col0
----
NULL

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2022
SELECT 17 * + 19 + - 30 * - - 86, + 41 + + + CASE - 17 WHEN - 16 * + 3 / + + 3 + 16 + + - 57 - - - 62 * + 4 / - 8 THEN - + COUNT( * ) ELSE - 10 END - - 77 AS col0
----
-2257
108

skipif mysql # not compatible
query II rowsort label-2022
SELECT 17 * + 19 + - 30 * - - 86, + 41 + + + CASE - 17 WHEN - 16 * + 3 / + + 3 + 16 + + - 57 - - - 62 * + 4 / - 8 THEN - + COUNT ( * ) ELSE - 10 END - - 77 AS col0
----
-2257
108

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

onlyif mysql # DIV for integer division: 
query II rowsort label-2024
SELECT - 43 DIV 82 AS col0, 4 + + 78 AS col0
----
0
82

skipif mysql # not compatible
query II rowsort label-2024
SELECT - 43 / 82 AS col0, 4 + + 78 AS col0
----
0
82

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2025
SELECT - 36 / - 75 * - 94 + 5 + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-2025
SELECT - 36 / - 75 * - 94 + 5 + - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL + CASE - - 31 WHEN - 27 + 56 THEN NULL WHEN 72 THEN - ( 19 ) END
----
NULL

query II rowsort
SELECT ( - + COALESCE ( 74, + 84 ) ) AS col2, 36
----
-74
36

onlyif mysql # DIV for integer division: 
query I rowsort label-2028
SELECT ALL - 45 DIV - 9
----
5

skipif mysql # not compatible
query I rowsort label-2028
SELECT ALL - 45 / - 9
----
5

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2030
SELECT + ( + + 99 ) * NULLIF ( - + 88, + COUNT( * ) )
----
-8712

skipif mysql # not compatible
query I rowsort label-2030
SELECT + ( + + 99 ) * NULLIF ( - + 88, + COUNT ( * ) )
----
-8712

query I rowsort
SELECT ALL + 17 * 57 + 26 * + 69 col0
----
2763

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2032
SELECT ALL + CASE - + 34 WHEN + - 82 + + 32 * + AVG ( ALL - 87 ) / 16 THEN + NULLIF ( - 29, NULLIF ( - 11, + + COUNT( ALL + - 90 ) ) * - 2 / 51 - - - 14 ) WHEN + + CAST( - + 16 AS SIGNED ) * 30 + - - CAST( - COUNT( * ) AS SIGNED ) THEN - COUNT( * ) + 23 END
----
NULL

skipif mysql # not compatible
query I rowsort label-2032
SELECT ALL + CASE - + 34 WHEN + - 82 + + 32 * + AVG ( ALL - 87 ) / 16 THEN + NULLIF ( - 29, NULLIF ( - 11, + + COUNT ( ALL + - 90 ) ) * - 2 / 51 - - - 14 ) WHEN + + CAST ( - + 16 AS INTEGER ) * 30 + - - CAST ( - COUNT ( * ) AS INTEGER ) THEN - COUNT ( * ) + 23 END
----
NULL

query I rowsort
SELECT + CASE + 82 WHEN - 1 * - - 43 THEN NULL ELSE 41 + 76 + + 10 * + 75 END AS col1
----
867

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2036
SELECT ALL 47 * COUNT( * )
----
47

skipif mysql # not compatible
query I rowsort label-2036
SELECT ALL 47 * COUNT ( * )
----
47

onlyif mysql # aggregate syntax: 
query II rowsort label-2037
SELECT - 53 + - 63 AS col1, MIN( - + 13 ) + 50
----
-116
37

skipif mysql # not compatible
query II rowsort label-2037
SELECT - 53 + - 63 AS col1, MIN ( - + 13 ) + 50
----
-116
37

query I rowsort
SELECT + 58 * + - 15 AS col0
----
-870

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

query I rowsort
SELECT 74 * - 46 - 86
----
-3490

query I rowsort
SELECT + 80 col2
----
80

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

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

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

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

query I rowsort
SELECT - 91 * - 0 * - 89 + + 6 AS col1
----
6

query I rowsort
SELECT + 63 col2
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-2046
SELECT - COALESCE ( - - COUNT( * ), - 37 ) * - 91 AS col1
----
91

skipif mysql # not compatible
query I rowsort label-2046
SELECT - COALESCE ( - - COUNT ( * ), - 37 ) * - 91 AS col1
----
91

query I rowsort
SELECT - + 19
----
-19

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2048
SELECT + + COUNT( * ) - + + 77 DIV MAX( ( - 19 ) ) AS col1
----
5

skipif mysql # not compatible
query I rowsort label-2048
SELECT + + COUNT ( * ) - + + 77 / MAX ( ( - 19 ) ) AS col1
----
5

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

query I rowsort
SELECT + 83 * 51 + 72
----
4305

query II rowsort
SELECT + - 2 * NULLIF ( + - 33, + 17 ), + 82 * + 27 AS col0
----
66
2214

onlyif mysql # aggregate syntax: 
query I rowsort label-2052
SELECT DISTINCT MIN( ALL - 66 ) AS col0
----
-66

skipif mysql # not compatible
query I rowsort label-2052
SELECT DISTINCT MIN ( ALL - 66 ) AS col0
----
-66

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

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2054
SELECT - 23 + + + 19 + - - ( - ( - CASE + - 62 WHEN COALESCE ( + 22, + CASE 42 WHEN + + 62 * - - CAST( NULL AS DECIMAL ) - - 11 * - - ( + 78 ) THEN - COALESCE ( - 94, - 27 ) END ) THEN - + 43 * COUNT( * ) * 85 - 54 WHEN - 30 THEN NULL ELSE NULL END ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2054
SELECT - 23 + + + 19 + - - ( - ( - CASE + - 62 WHEN COALESCE ( + 22, + CASE 42 WHEN + + 62 * - - CAST ( NULL AS REAL ) - - 11 * - - ( + 78 ) THEN - COALESCE ( - 94, - 27 ) END ) THEN - + 43 * COUNT ( * ) * 85 - 54 WHEN - 30 THEN NULL ELSE NULL END ) ) AS col2
----
NULL

query I rowsort
SELECT ALL - 11 AS col2
----
-11

query I rowsort
SELECT - - 54 col1
----
54

onlyif mysql # DIV for integer division: 
query II rowsort label-2057
SELECT - 37 + + 58 + + + 17 DIV - - 15 col0, ( + 54 ) + - 67 AS col1
----
22
-13

skipif mysql # not compatible
query II rowsort label-2057
SELECT - 37 + + 58 + + + 17 / - - 15 col0, ( + 54 ) + - 67 AS col1
----
22
-13

query I rowsort
SELECT DISTINCT 25 col1
----
25

query I rowsort
SELECT ALL 25 + 20 + - 8
----
37

onlyif mysql # aggregate syntax: 
query II rowsort label-2060
SELECT DISTINCT - 31 * + + 56 AS col0, - MAX( + CASE 96 WHEN - + 40 THEN NULL WHEN - ( - - 25 ) THEN + 67 ELSE 62 END )
----
-1736
-62

skipif mysql # not compatible
query II rowsort label-2060
SELECT DISTINCT - 31 * + + 56 AS col0, - MAX ( + CASE 96 WHEN - + 40 THEN NULL WHEN - ( - - 25 ) THEN + 67 ELSE 62 END )
----
-1736
-62

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

query II rowsort
SELECT DISTINCT + 4 + - 78 col1, 90 AS col1
----
-74
90

query II rowsort
SELECT ALL - ( - 44 ), + 51 AS col2
----
44
51

query II rowsort
SELECT 43 * 83 * + 25 * + 1 * + 73 col0, 8
----
6513425
8

onlyif mysql # aggregate syntax: 
query I rowsort label-2065
SELECT - COUNT( + 62 ) * - 58 + + MAX( ALL - 5 ) AS col1
----
53

skipif mysql # not compatible
query I rowsort label-2065
SELECT - COUNT ( + 62 ) * - 58 + + MAX ( ALL - 5 ) AS col1
----
53

query I rowsort
SELECT 53 - - + ( 90 ) AS col0
----
143

query II rowsort
SELECT DISTINCT - 42 - + 59 AS col1, 53 * 37
----
-101
1961

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2069
SELECT ALL 93 * - COUNT( * ) * - 70 AS col0
----
6510

skipif mysql # not compatible
query I rowsort label-2069
SELECT ALL 93 * - COUNT ( * ) * - 70 AS col0
----
6510

onlyif mysql # aggregate syntax: 
query I rowsort label-2070
SELECT DISTINCT - 42 - - 52 * 16 + + COUNT( * ) AS col2
----
791

skipif mysql # not compatible
query I rowsort label-2070
SELECT DISTINCT - 42 - - 52 * 16 + + COUNT ( * ) AS col2
----
791

query I rowsort
SELECT + 43 * 55 + + 7 AS col1
----
2372

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

skipif mysql # not compatible
query I rowsort label-2072
SELECT + MIN ( - + 57 )
----
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-2073
SELECT + ( MAX( 7 ) ) AS col1
----
7

skipif mysql # not compatible
query I rowsort label-2073
SELECT + ( MAX ( 7 ) ) AS col1
----
7

query I rowsort
SELECT + NULLIF ( - 8, + - 29 * - 33 ) AS col0
----
-8

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

query I rowsort
SELECT ALL - + 81 * + ( + 54 )
----
-4374

onlyif mysql # aggregate syntax: 
query I rowsort label-2077
SELECT DISTINCT + MAX( + + 81 )
----
81

skipif mysql # not compatible
query I rowsort label-2077
SELECT DISTINCT + MAX ( + + 81 )
----
81

query I rowsort
SELECT ALL 15 col1
----
15

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2079
SELECT MAX( + 83 ) DIV - NULLIF ( - COUNT( * ), 45 ) AS col1, + 0 AS col2
----
83
0

skipif mysql # not compatible
query II rowsort label-2079
SELECT MAX ( + 83 ) / - NULLIF ( - COUNT ( * ), 45 ) AS col1, + 0 AS col2
----
83
0

onlyif mysql # aggregate syntax: 
query II rowsort label-2080
SELECT + ( + 68 ) AS col1, - 53 + + 51 + - + COUNT( * ) * + 87 + 82
----
68
-7

skipif mysql # not compatible
query II rowsort label-2080
SELECT + ( + 68 ) AS col1, - 53 + + 51 + - + COUNT ( * ) * + 87 + 82
----
68
-7

onlyif mysql # DIV for integer division: 
query I rowsort label-2081
SELECT 38 DIV + ( + - COALESCE ( + 66, - - 84 + + 71 + 26 DIV 73 ) ) + - - ( - ( - 79 ) ) AS col0
----
79

skipif mysql # not compatible
query I rowsort label-2081
SELECT 38 / + ( + - COALESCE ( + 66, - - 84 + + 71 + 26 / 73 ) ) + - - ( - ( - 79 ) ) AS col0
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-2082
SELECT + 21 * + + COUNT( * ) * + ( - 46 ) - + + 68 + + - 51 * COALESCE ( COUNT( * ), - 39 )
----
-1085

skipif mysql # not compatible
query I rowsort label-2082
SELECT + 21 * + + COUNT ( * ) * + ( - 46 ) - + + 68 + + - 51 * COALESCE ( COUNT ( * ), - 39 )
----
-1085

onlyif mysql # aggregate syntax: 
query I rowsort label-2083
SELECT SUM( DISTINCT + 44 ) - + COUNT( * )
----
43

skipif mysql # not compatible
query I rowsort label-2083
SELECT SUM ( DISTINCT + 44 ) - + COUNT ( * )
----
43

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2084
SELECT CASE - - 95 WHEN - - 36 + - - COALESCE ( + 51, + ( + - CAST( NULL AS DECIMAL ) ) + - 68 ) + - 79 - - 60 THEN NULL WHEN - + 59 * + 89 THEN + COUNT( * ) + + 31 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-2084
SELECT CASE - - 95 WHEN - - 36 + - - COALESCE ( + 51, + ( + - CAST ( NULL AS REAL ) ) + - 68 ) + - 79 - - 60 THEN NULL WHEN - + 59 * + 89 THEN + COUNT ( * ) + + 31 ELSE NULL END
----
NULL

query I rowsort
SELECT ALL + 84 + - + 79 AS col2
----
5

onlyif mysql # DIV for integer division: 
query I rowsort label-2086
SELECT + 74 - 70 DIV + - 19 col1
----
77

skipif mysql # not compatible
query I rowsort label-2086
SELECT + 74 - 70 / + - 19 col1
----
77

query I rowsort
SELECT ALL - 73 + - 27 AS col0
----
-100

onlyif mysql # DIV for integer division: 
query II rowsort label-2088
SELECT ALL 72 AS col0, - 86 + + + 65 DIV - 80 * + ( 32 )
----
72
-86

skipif mysql # not compatible
query II rowsort label-2088
SELECT ALL 72 AS col0, - 86 + + + 65 / - 80 * + ( 32 )
----
72
-86

query I rowsort
SELECT 37 * - 62
----
-2294

query I rowsort
SELECT ALL + 90 + 60
----
150

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2091
SELECT CAST( 72 AS SIGNED ) - + + 28, 95 AS col2
----
44
95

skipif mysql # not compatible
query II rowsort label-2091
SELECT CAST ( 72 AS INTEGER ) - + + 28, 95 AS col2
----
44
95

query I rowsort
SELECT 27 + 55
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-2093
SELECT MIN( ALL - 19 ) - - - 94 * + 55 AS col2
----
-5189

skipif mysql # not compatible
query I rowsort label-2093
SELECT MIN ( ALL - 19 ) - - - 94 * + 55 AS col2
----
-5189

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2094
SELECT - 39 col2, 99 - + - CAST( 21 AS SIGNED ) AS col0
----
-39
120

skipif mysql # not compatible
query II rowsort label-2094
SELECT - 39 col2, 99 - + - CAST ( 21 AS INTEGER ) AS col0
----
-39
120

query II rowsort
SELECT 3 AS col0, 21
----
3
21

onlyif mysql # aggregate syntax: 
query I rowsort label-2096
SELECT - 78 * 76 + - ( + + 65 ) + - + COUNT( * ) AS col2
----
-5994

skipif mysql # not compatible
query I rowsort label-2096
SELECT - 78 * 76 + - ( + + 65 ) + - + COUNT ( * ) AS col2
----
-5994

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2098
SELECT 91 DIV + 61 + - NULLIF ( - 88, + - 95 ) AS col1
----
89

skipif mysql # not compatible
query I rowsort label-2098
SELECT 91 / + 61 + - NULLIF ( - 88, + - 95 ) AS col1
----
89

query II rowsort
SELECT DISTINCT - 91 AS col2, + 53 AS col2
----
-91
53

query I rowsort
SELECT 62 + - 47 col2
----
15

onlyif mysql # aggregate syntax: 
query II rowsort label-2101
SELECT + COUNT( * ) AS col0, - 92 * + 70 AS col2
----
1
-6440

skipif mysql # not compatible
query II rowsort label-2101
SELECT + COUNT ( * ) AS col0, - 92 * + 70 AS col2
----
1
-6440

query I rowsort
SELECT ALL 70 * 3
----
210

query I rowsort
SELECT 78 * + 82 AS col1
----
6396

onlyif mysql # aggregate syntax: 
query I rowsort label-2104
SELECT ALL + CASE - 91 WHEN - - NULLIF ( 82, - + 4 * - COUNT( * ) ) * + 55 THEN - COUNT( * ) + 53 WHEN - 39 * + 31 + - ( - - 50 ) THEN - + 54 ELSE NULL END * + 54 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2104
SELECT ALL + CASE - 91 WHEN - - NULLIF ( 82, - + 4 * - COUNT ( * ) ) * + 55 THEN - COUNT ( * ) + 53 WHEN - 39 * + 31 + - ( - - 50 ) THEN - + 54 ELSE NULL END * + 54 AS col1
----
NULL

query I rowsort
SELECT DISTINCT 5 - 42
----
-37

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2107
SELECT + 45 * - + MAX( ALL 6 ) + 92 AS col0
----
-178

skipif mysql # not compatible
query I rowsort label-2107
SELECT + 45 * - + MAX ( ALL 6 ) + 92 AS col0
----
-178

query I rowsort
SELECT ( - 20 ) * - 54 AS col1
----
1080

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2109
SELECT - ( - CAST( - + CASE - CAST( NULL AS SIGNED ) WHEN + 82 * + ( + COALESCE ( + + 43, - 92, - 65 + - + 74 - + + 79 + - 42 * - 64 ) ) THEN + AVG ( DISTINCT + 75 ) * 99 + 19 + - - 37 / 28 END AS SIGNED ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2109
SELECT - ( - CAST ( - + CASE - CAST ( NULL AS INTEGER ) WHEN + 82 * + ( + COALESCE ( + + 43, - 92, - 65 + - + 74 - + + 79 + - 42 * - 64 ) ) THEN + AVG ( DISTINCT + 75 ) * 99 + 19 + - - 37 / 28 END AS INTEGER ) ) AS col0
----
NULL

query I rowsort
SELECT DISTINCT - 76 col1
----
-76

onlyif mysql # DIV for integer division: 
query III rowsort label-2111
SELECT DISTINCT - 63, + 29 + - ( + 52 ) - + - 76 * + 77 AS col1, - - 73 + + 97 + + 47 DIV - 41 + - - ( + 44 ) - + 24 * - 46 * + + 77 * NULLIF ( - ( 26 ), - 31 * + + 29 * 1 + + 68 ) - - ( 41 ) AS col0
----
-63
5829
-2209954

skipif mysql # not compatible
query III rowsort label-2111
SELECT DISTINCT - 63, + 29 + - ( + 52 ) - + - 76 * + 77 AS col1, - - 73 + + 97 + + 47 / - 41 + - - ( + 44 ) - + 24 * - 46 * + + 77 * NULLIF ( - ( 26 ), - 31 * + + 29 * 1 + + 68 ) - - ( 41 ) AS col0
----
-63
5829
-2209954

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2112
SELECT DISTINCT + 71 DIV - - COUNT( * ) col2
----
71

skipif mysql # not compatible
query I rowsort label-2112
SELECT DISTINCT + 71 / - - COUNT ( * ) col2
----
71

onlyif mysql # DIV for integer division: 
query I rowsort label-2113
SELECT - 69 DIV - 96
----
0

skipif mysql # not compatible
query I rowsort label-2113
SELECT - 69 / - 96
----
0

query I rowsort
SELECT ALL + - 32 + - + 36
----
-68

onlyif mysql # DIV for integer division: 
query I rowsort label-2115
SELECT ALL + - 15 DIV + + 28
----
0

skipif mysql # not compatible
query I rowsort label-2115
SELECT ALL + - 15 / + + 28
----
0

query I rowsort
SELECT + 22 * - + 46
----
-1012

query I rowsort
SELECT 4 + 34 * - - 42 * + 78
----
111388

onlyif mysql # aggregate syntax: 
query I rowsort label-2118
SELECT SUM( - 2 ) AS col1
----
-2

skipif mysql # not compatible
query I rowsort label-2118
SELECT SUM ( - 2 ) AS col1
----
-2

query I rowsort
SELECT ALL - + ( + 69 ) + - ( + + ( - 85 ) ) AS col0
----
16

onlyif mysql # DIV for integer division: 
query I rowsort label-2120
SELECT 83 * + 13 + - 11 DIV - 35 * + 33 AS col0
----
1079

skipif mysql # not compatible
query I rowsort label-2120
SELECT 83 * + 13 + - 11 / - 35 * + 33 AS col0
----
1079

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2121
SELECT - CASE 38 WHEN - COALESCE ( CAST( ( - + 58 ) AS SIGNED ), - ( - - COUNT( * ) ), + ( + 89 ) ) * - CASE - 89 WHEN 60 / + 61 * - 88 / + CAST( + 16 AS SIGNED ) + + 27 / COUNT( * ) + + 19 * + + 76 * - + 45 + + 6 * COUNT( * ) THEN - 84 + + 69 WHEN - CAST( NULL AS SIGNED ) * 61 THEN 60 * - ( 29 ) END - COUNT( * ) THEN 88 WHEN - CASE - ( + COUNT( * ) ) WHEN 50 THEN - 46 + 52 / 70 WHEN 96 THEN - 35 * - 95 + + 57 WHEN 69 THEN NULL END THEN - 35 * - 27 WHEN 64 THEN NULL END + - 78 * - ( - COUNT( * ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2121
SELECT - CASE 38 WHEN - COALESCE ( CAST ( ( - + 58 ) AS INTEGER ), - ( - - COUNT ( * ) ), + ( + 89 ) ) * - CASE - 89 WHEN 60 / + 61 * - 88 / + CAST ( + 16 AS INTEGER ) + + 27 / COUNT ( * ) + + 19 * + + 76 * - + 45 + + 6 * COUNT ( * ) THEN - 84 + + 69 WHEN - CAST ( NULL AS INTEGER ) * 61 THEN 60 * - ( 29 ) END - COUNT ( * ) THEN 88 WHEN - CASE - ( + COUNT ( * ) ) WHEN 50 THEN - 46 + 52 / 70 WHEN 96 THEN - 35 * - 95 + + 57 WHEN 69 THEN NULL END THEN - 35 * - 27 WHEN 64 THEN NULL END + - 78 * - ( - COUNT ( * ) ) AS col0
----
NULL

query I rowsort
SELECT ALL 78 col0
----
78

query I rowsort
SELECT DISTINCT + 86 + - 32
----
54

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2125
SELECT - CASE - - COUNT( * ) WHEN 90 THEN NULL WHEN - 90 THEN + COUNT( * ) - + 10 / ( - + 68 ) * COUNT( 70 ) + - 33 * + 45 END + + NULLIF ( - 71, - - ( + - 68 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-2125
SELECT - CASE - - COUNT ( * ) WHEN 90 THEN NULL WHEN - 90 THEN + COUNT ( * ) - + 10 / ( - + 68 ) * COUNT ( 70 ) + - 33 * + 45 END + + NULLIF ( - 71, - - ( + - 68 ) )
----
NULL

query I rowsort
SELECT ALL 66 + + 63 AS col2
----
129

onlyif mysql # aggregate syntax: 
query I rowsort label-2127
SELECT + 72 + COALESCE ( + - 7, + - COUNT( * ) ) AS col0
----
65

skipif mysql # not compatible
query I rowsort label-2127
SELECT + 72 + COALESCE ( + - 7, + - COUNT ( * ) ) AS col0
----
65

query I rowsort
SELECT ALL COALESCE ( + + ( + - 73 ), + 40 * + + 8 - 6 ) AS col0
----
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-2129
SELECT - 60 * + COUNT( * ) * 26
----
-1560

skipif mysql # not compatible
query I rowsort label-2129
SELECT - 60 * + COUNT ( * ) * 26
----
-1560

onlyif mysql # DIV for integer division: 
query I rowsort label-2130
SELECT DISTINCT 72 DIV - 71
----
-1

skipif mysql # not compatible
query I rowsort label-2130
SELECT DISTINCT 72 / - 71
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-2131
SELECT ALL 30 - - MAX( 99 ) * - 55 AS col1
----
-5415

skipif mysql # not compatible
query I rowsort label-2131
SELECT ALL 30 - - MAX ( 99 ) * - 55 AS col1
----
-5415

query I rowsort
SELECT - COALESCE ( ( + 50 ), - 87 * + 37 )
----
-50

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2133
SELECT + COALESCE ( + + 90, - 57, COUNT( * ) + + 92 + + 85 ) DIV COUNT( * ), 32 AS col0
----
90
32

skipif mysql # not compatible
query II rowsort label-2133
SELECT + COALESCE ( + + 90, - 57, COUNT ( * ) + + 92 + + 85 ) / COUNT ( * ), 32 AS col0
----
90
32

query I rowsort
SELECT ALL 24 * - + 12
----
-288

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2135
SELECT ALL 71 * - 28 * - - 82 * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-2135
SELECT ALL 71 * - 28 * - - 82 * CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2136
SELECT DISTINCT 4 * + 79 - + SUM( ALL - + 54 )
----
370

skipif mysql # not compatible
query I rowsort label-2136
SELECT DISTINCT 4 * + 79 - + SUM ( ALL - + 54 )
----
370

onlyif mysql # aggregate syntax: 
query I rowsort label-2137
SELECT ALL 88 * + - 74 * + - COUNT( * ) * + + 34 * + - COUNT( * )
----
-221408

skipif mysql # not compatible
query I rowsort label-2137
SELECT ALL 88 * + - 74 * + - COUNT ( * ) * + + 34 * + - COUNT ( * )
----
-221408

onlyif mysql # aggregate syntax: 
query I rowsort label-2138
SELECT 15 * + COUNT( * ) + 56 + - 36 AS col0
----
35

skipif mysql # not compatible
query I rowsort label-2138
SELECT 15 * + COUNT ( * ) + 56 + - 36 AS col0
----
35

query I rowsort
SELECT ( + - CASE 38 WHEN 78 THEN NULL ELSE 85 END ) AS col1
----
-85

query I rowsort
SELECT ALL + 23 AS col0
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-2141
SELECT ( - + CASE + ( - ( - - 55 ) ) WHEN - - 97 THEN + 64 * + 36 WHEN - + COUNT( 3 ) - - 47 THEN - COUNT( * ) + + + 53 END )
----
NULL

skipif mysql # not compatible
query I rowsort label-2141
SELECT ( - + CASE + ( - ( - - 55 ) ) WHEN - - 97 THEN + 64 * + 36 WHEN - + COUNT ( 3 ) - - 47 THEN - COUNT ( * ) + + + 53 END )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2142
SELECT + COUNT( * ) / + ( + 66 ) * - COUNT( * ) + - 68 + - COUNT( * ) - + CAST( NULL AS SIGNED ) + + CAST( NULL AS SIGNED ) * + 57 / - 94
----
NULL

skipif mysql # not compatible
query I rowsort label-2142
SELECT + COUNT ( * ) / + ( + 66 ) * - COUNT ( * ) + - 68 + - COUNT ( * ) - + CAST ( NULL AS INTEGER ) + + CAST ( NULL AS INTEGER ) * + 57 / - 94
----
NULL

query II rowsort
SELECT ( - - COALESCE ( - 80, - 53 ) ) AS col2, 62 AS col2
----
-80
62

query I rowsort
SELECT - 28 * CASE - - 47 WHEN 67 * - 13 THEN NULL ELSE + ( + 4 ) END * + 73
----
-8176

onlyif mysql # DIV for integer division: 
query I rowsort label-2145
SELECT + - 93 DIV - + 77 + - 88 AS col2
----
-87

skipif mysql # not compatible
query I rowsort label-2145
SELECT + - 93 / - + 77 + - 88 AS col2
----
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-2146
SELECT + COALESCE ( 85, - + 32 + COUNT( * ) ) - MIN( - 69 )
----
154

skipif mysql # not compatible
query I rowsort label-2146
SELECT + COALESCE ( 85, - + 32 + COUNT ( * ) ) - MIN ( - 69 )
----
154

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2147
SELECT ALL MAX( + + 51 ) * + 68 + - SUM( DISTINCT - 10 ) + - 48 + - 94, COALESCE ( - COALESCE ( - + CAST( - + 30 AS SIGNED ), + CAST( COUNT( * ) AS SIGNED ) + - + 28 ), - + 24, + 87 ) col0
----
3336
-30

skipif mysql # not compatible
query II rowsort label-2147
SELECT ALL MAX ( + + 51 ) * + 68 + - SUM ( DISTINCT - 10 ) + - 48 + - 94, COALESCE ( - COALESCE ( - + CAST ( - + 30 AS INTEGER ), + CAST ( COUNT ( * ) AS INTEGER ) + - + 28 ), - + 24, + 87 ) col0
----
3336
-30

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

query I rowsort
SELECT ALL - + NULLIF ( - 23, - - 61 ) * + + 76 * - 58 + - 48 AS col0
----
-101432

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

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

query I rowsort
SELECT 72 * - 86 + + + 74 AS col1
----
-6118

query I rowsort
SELECT CASE 41 WHEN 38 THEN NULL WHEN 42 + 95 * 52 + 45 THEN NULL ELSE - + 43 END AS col1
----
-43

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2153
SELECT ALL + COUNT( * ) * 99 DIV - + 45 AS col1
----
-2

skipif mysql # not compatible
query I rowsort label-2153
SELECT ALL + COUNT ( * ) * 99 / - + 45 AS col1
----
-2

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2154
SELECT + + 3 DIV COUNT( * ), - 77 AS col2
----
3
-77

skipif mysql # not compatible
query II rowsort label-2154
SELECT + + 3 / COUNT ( * ), - 77 AS col2
----
3
-77

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2156
SELECT DISTINCT - + COUNT( * ) * + 73 * + CAST( - - 99 AS SIGNED ) + + + 58 + + - COUNT( - 69 )
----
-7170

skipif mysql # not compatible
query I rowsort label-2156
SELECT DISTINCT - + COUNT ( * ) * + 73 * + CAST ( - - 99 AS INTEGER ) + + + 58 + + - COUNT ( - 69 )
----
-7170

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2157
SELECT DISTINCT + COALESCE ( - NULLIF ( + 54, COUNT( * ) ), + + ( + CAST( NULL AS SIGNED ) ) * - 68 ) * + 47 * 71 + + 11 AS col1
----
-180187

skipif mysql # not compatible
query I rowsort label-2157
SELECT DISTINCT + COALESCE ( - NULLIF ( + 54, COUNT ( * ) ), + + ( + CAST ( NULL AS INTEGER ) ) * - 68 ) * + 47 * 71 + + 11 AS col1
----
-180187

query I rowsort
SELECT ALL 13 * - 39 + + - 22 AS col2
----
-529

query I rowsort
SELECT - - ( 39 ) * + 37
----
1443

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2160
SELECT ALL + COALESCE ( + 22, - + 65 * - - 40 ), - COUNT( DISTINCT - 51 ) DIV - + 85 - 1 AS col1
----
22
-1

skipif mysql # not compatible
query II rowsort label-2160
SELECT ALL + COALESCE ( + 22, - + 65 * - - 40 ), - COUNT ( DISTINCT - 51 ) / - + 85 - 1 AS col1
----
22
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-2161
SELECT + + 2 + - 13 + COUNT( * ) AS col1
----
-10

skipif mysql # not compatible
query I rowsort label-2161
SELECT + + 2 + - 13 + COUNT ( * ) AS col1
----
-10

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2162
SELECT - CAST( - ( 67 ) AS SIGNED ) col1
----
67

skipif mysql # not compatible
query I rowsort label-2162
SELECT - CAST ( - ( 67 ) AS INTEGER ) col1
----
67

onlyif mysql # aggregate syntax: 
query I rowsort label-2163
SELECT MAX( 13 )
----
13

skipif mysql # not compatible
query I rowsort label-2163
SELECT MAX ( 13 )
----
13

onlyif mysql # DIV for integer division: 
query I rowsort label-2164
SELECT - 60 DIV - 14 AS col0
----
4

skipif mysql # not compatible
query I rowsort label-2164
SELECT - 60 / - 14 AS col0
----
4

onlyif mysql # aggregate syntax: 
query II rowsort label-2165
SELECT - COUNT( * ) AS col1, - 45 * + MIN( + + ( + + 96 ) ) AS col2
----
-1
-4320

skipif mysql # not compatible
query II rowsort label-2165
SELECT - COUNT ( * ) AS col1, - 45 * + MIN ( + + ( + + 96 ) ) AS col2
----
-1
-4320

query I rowsort
SELECT ALL + 27 * + 10 * - 82 * - 64
----
1416960

onlyif mysql # aggregate syntax: 
query I rowsort label-2167
SELECT - COUNT( * ) - 57 AS col2
----
-58

skipif mysql # not compatible
query I rowsort label-2167
SELECT - COUNT ( * ) - 57 AS col2
----
-58

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2168
SELECT DISTINCT CAST( - + CASE + 95 WHEN 71 * + 53 * + + COALESCE ( - - 42, - 24 / 85, + 5 ) THEN + - COALESCE ( + 30, + - 45 + - 82, + 19 ) / - - 27 + - CAST( NULL AS SIGNED ) * - - 2 WHEN - + 10 + 41 THEN + 3 * + - 31 * - 49 ELSE NULL END AS SIGNED ) AS col1, + 15 AS col1
----
NULL
15

skipif mysql # not compatible
query II rowsort label-2168
SELECT DISTINCT CAST ( - + CASE + 95 WHEN 71 * + 53 * + + COALESCE ( - - 42, - 24 / 85, + 5 ) THEN + - COALESCE ( + 30, + - 45 + - 82, + 19 ) / - - 27 + - CAST ( NULL AS INTEGER ) * - - 2 WHEN - + 10 + 41 THEN + 3 * + - 31 * - 49 ELSE NULL END AS INTEGER ) AS col1, + 15 AS col1
----
NULL
15

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2172
SELECT - 59 - - MIN( DISTINCT - 78 )
----
-137

skipif mysql # not compatible
query I rowsort label-2172
SELECT - 59 - - MIN ( DISTINCT - 78 )
----
-137

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

query I rowsort
SELECT + 76 * 96
----
7296

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2176
SELECT ALL 17 DIV - + 89 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-2176
SELECT ALL 17 / - + 89 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2177
SELECT 29 * 91 * + CASE + AVG ( 8 ) WHEN - + 43 THEN + 87 - ( 48 ) - - 82 WHEN - COALESCE ( + - 13, - 77 ) THEN NULL END * - + 1 + + 81 + 68 + - + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-2177
SELECT 29 * 91 * + CASE + AVG ( 8 ) WHEN - + 43 THEN + 87 - ( 48 ) - - 82 WHEN - COALESCE ( + - 13, - 77 ) THEN NULL END * - + 1 + + 81 + 68 + - + COUNT ( * )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2178
SELECT + 29 DIV - NULLIF ( + 7, - 68 )
----
-4

skipif mysql # not compatible
query I rowsort label-2178
SELECT + 29 / - NULLIF ( + 7, - 68 )
----
-4

query I rowsort
SELECT - 40 * 76 AS col0
----
-3040

onlyif mysql # DIV for integer division: 
query I rowsort label-2180
SELECT DISTINCT - 84 DIV - + 93 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-2180
SELECT DISTINCT - 84 / - + 93 AS col2
----
0

query II rowsort
SELECT ALL + 58, - 74 * - 82 AS col1
----
58
6068

onlyif mysql # aggregate syntax: 
query I rowsort label-2182
SELECT + CASE - ( + + 81 ) WHEN - - CASE + - 16 WHEN - + 23 - + + 21 THEN NULL ELSE COUNT( * ) + + 50 * 63 + + - 90 * - CASE - 56 WHEN - 45 THEN 39 WHEN - 52 THEN NULL END - + 45 END - - 56 THEN NULL ELSE + - 86 END
----
-86

skipif mysql # not compatible
query I rowsort label-2182
SELECT + CASE - ( + + 81 ) WHEN - - CASE + - 16 WHEN - + 23 - + + 21 THEN NULL ELSE COUNT ( * ) + + 50 * 63 + + - 90 * - CASE - 56 WHEN - 45 THEN 39 WHEN - 52 THEN NULL END - + 45 END - - 56 THEN NULL ELSE + - 86 END
----
-86

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2183
SELECT ALL - + 56 DIV + COUNT( * ) + COUNT( * ) + 75 DIV 51 AS col0
----
-54

skipif mysql # not compatible
query I rowsort label-2183
SELECT ALL - + 56 / + COUNT ( * ) + COUNT ( * ) + 75 / 51 AS col0
----
-54

query I rowsort
SELECT ALL + 13 * + - 73 + + 37
----
-912

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2186
SELECT + COUNT( DISTINCT + + 50 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-2186
SELECT + COUNT ( DISTINCT + + 50 ) AS col1
----
1

query I rowsort
SELECT 75 + - - 57 AS col1
----
132

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

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

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

query I rowsort
SELECT 91 * - + 54 * ( - + 23 ) + + 52
----
113074

query I rowsort
SELECT ALL - 86 + + 36 AS col1
----
-50

query I rowsort
SELECT DISTINCT - 28 + - 72
----
-100

query I rowsort
SELECT ALL + - 73 - - + 86
----
13

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2195
SELECT ALL - 36 * - - COUNT( * ) * + 9 * 92 * + - 2 AS col2
----
59616

skipif mysql # not compatible
query I rowsort label-2195
SELECT ALL - 36 * - - COUNT ( * ) * + 9 * 92 * + - 2 AS col2
----
59616

query I rowsort
SELECT - 7 + - + 50 - - 90 AS col1
----
33

query I rowsort
SELECT - ( + - NULLIF ( + 12, + + 59 ) ) * 43 * - 71 + 68 AS col2
----
-36568

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2198
SELECT DISTINCT + COUNT( * ) * + 91 + - + 17 AS col1, 4 DIV - 68 AS col2
----
74
0

skipif mysql # not compatible
query II rowsort label-2198
SELECT DISTINCT + COUNT ( * ) * + 91 + - + 17 AS col1, 4 / - 68 AS col2
----
74
0

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2200
SELECT 79 * COALESCE ( NULLIF ( 55, - 8 + - - 2 ), - - COUNT( * ) )
----
4345

skipif mysql # not compatible
query I rowsort label-2200
SELECT 79 * COALESCE ( NULLIF ( 55, - 8 + - - 2 ), - - COUNT ( * ) )
----
4345

query II rowsort
SELECT ALL 26, + 82 * + 70 + 99 AS col2
----
26
5839

onlyif mysql # aggregate syntax: 
query I rowsort label-2202
SELECT DISTINCT 60 * COUNT( * ) col2
----
60

skipif mysql # not compatible
query I rowsort label-2202
SELECT DISTINCT 60 * COUNT ( * ) col2
----
60

onlyif mysql # DIV for integer division: 
query I rowsort label-2203
SELECT 69 DIV + 49
----
1

skipif mysql # not compatible
query I rowsort label-2203
SELECT 69 / + 49
----
1

query II rowsort
SELECT ALL 89, + 34 AS col0
----
89
34

onlyif mysql # aggregate syntax: 
query I rowsort label-2205
SELECT MIN( + 4 ) * - + MAX( DISTINCT - 78 ) AS col2
----
312

skipif mysql # not compatible
query I rowsort label-2205
SELECT MIN ( + 4 ) * - + MAX ( DISTINCT - 78 ) AS col2
----
312

query I rowsort
SELECT 88 + - ( - + 96 ) * + 14 * - 20
----
-26792

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2207
SELECT SUM( + 92 ) DIV MIN( 8 ) AS col2, + 59 + - 11 AS col1
----
11
48

skipif mysql # not compatible
query II rowsort label-2207
SELECT SUM ( + 92 ) / MIN ( 8 ) AS col2, + 59 + - 11 AS col1
----
11
48

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2208
SELECT DISTINCT - 51 * + - CAST( COALESCE ( - 88, - 48, + 74 ) AS SIGNED ) AS col0, 42 AS col1
----
-4488
42

skipif mysql # not compatible
query II rowsort label-2208
SELECT DISTINCT - 51 * + - CAST ( COALESCE ( - 88, - 48, + 74 ) AS INTEGER ) AS col0, 42 AS col1
----
-4488
42

query I rowsort
SELECT 4 * - + 20 AS col2
----
-80

query I rowsort
SELECT DISTINCT 88 + - - 38
----
126

query I rowsort
SELECT ALL 5 * + 28
----
140

query I rowsort
SELECT 93 + 63 AS col1
----
156

query I rowsort
SELECT - 64 col2
----
-64

query I rowsort
SELECT DISTINCT - 79 * + 87 * - 25 AS col0
----
171825

onlyif mysql # aggregate syntax: 
query I rowsort label-2215
SELECT ALL + COUNT( * ) + - 79
----
-78

skipif mysql # not compatible
query I rowsort label-2215
SELECT ALL + COUNT ( * ) + - 79
----
-78

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

query I rowsort
SELECT 21 * - 9
----
-189

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2219
SELECT 10 + - 80 + + SUM( ALL + CAST( 0 AS SIGNED ) ) + - 16 AS col0
----
-86

skipif mysql # not compatible
query I rowsort label-2219
SELECT 10 + - 80 + + SUM ( ALL + CAST ( 0 AS INTEGER ) ) + - 16 AS col0
----
-86

onlyif mysql # aggregate syntax: 
query II rowsort label-2220
SELECT ALL - 92 + + + ( - 7 ) * - 76 col1, 95 + - 86 + ( + COUNT( * ) ) - - 61 * 21
----
440
1291

skipif mysql # not compatible
query II rowsort label-2220
SELECT ALL - 92 + + + ( - 7 ) * - 76 col1, 95 + - 86 + ( + COUNT ( * ) ) - - 61 * 21
----
440
1291

query I rowsort
SELECT + NULLIF ( - 81, - 76 * - 1 - 66 )
----
-81

query I rowsort
SELECT ALL - + 41
----
-41

query II rowsort
SELECT + 23 AS col0, + 11 col2
----
23
11

query I rowsort
SELECT ALL + 90 + + 3 - - 64 AS col2
----
157

onlyif mysql # aggregate syntax: 
query I rowsort label-2225
SELECT DISTINCT - COALESCE ( 34, + + COUNT( * ), + + COUNT( * ) * + - 64, 72 ) col2
----
-34

skipif mysql # not compatible
query I rowsort label-2225
SELECT DISTINCT - COALESCE ( 34, + + COUNT ( * ), + + COUNT ( * ) * + - 64, 72 ) col2
----
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-2226
SELECT ALL 64 - COUNT( * )
----
63

skipif mysql # not compatible
query I rowsort label-2226
SELECT ALL 64 - COUNT ( * )
----
63

query II rowsort
SELECT ALL - - 8, 77 AS col0
----
8
77

query I rowsort
SELECT - 47 + - - 91 AS col2
----
44

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

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

query I rowsort
SELECT COALESCE ( - ( + 93 ), + + 66 ) AS col0
----
-93

query I rowsort
SELECT ALL + 49 - 62 col0
----
-13

onlyif mysql # aggregate syntax: 
query II rowsort label-2232
SELECT ALL - NULLIF ( 74, + 60 / - COUNT( * ) ) AS col0, + NULLIF ( + 8, + ( ( 22 ) ) * 92 ) + 64 AS col2
----
-74
72

skipif mysql # not compatible
query II rowsort label-2232
SELECT ALL - NULLIF ( 74, + 60 / - COUNT ( * ) ) AS col0, + NULLIF ( + 8, + ( ( 22 ) ) * 92 ) + 64 AS col2
----
-74
72

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2234
SELECT NULLIF ( COUNT( * ), 45 ) * - COUNT( * ) * COUNT( * ) * ( - - COUNT( * ) )
----
-1

skipif mysql # not compatible
query I rowsort label-2234
SELECT NULLIF ( COUNT ( * ), 45 ) * - COUNT ( * ) * COUNT ( * ) * ( - - COUNT ( * ) )
----
-1

query I rowsort
SELECT 51 * - + 94 AS col1
----
-4794

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2236
SELECT DISTINCT - ( - COALESCE ( + ( + 9 ), - CAST( + 71 AS SIGNED ) * - - 43 * + 42, - 13 ) )
----
9

skipif mysql # not compatible
query I rowsort label-2236
SELECT DISTINCT - ( - COALESCE ( + ( + 9 ), - CAST ( + 71 AS INTEGER ) * - - 43 * + 42, - 13 ) )
----
9

query I rowsort
SELECT 66 col0
----
66

query I rowsort
SELECT 72 * - 93 * 7 * 73 AS col0
----
-3421656

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

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

query I rowsort
SELECT - 90 col2
----
-90

onlyif mysql # aggregate syntax: 
query II rowsort label-2241
SELECT MAX( - + 81 ) * - ( - SUM( - NULLIF ( + - 45, 71 ) ) ) AS col1, COUNT( * ) + 97
----
-3645
98

skipif mysql # not compatible
query II rowsort label-2241
SELECT MAX ( - + 81 ) * - ( - SUM ( - NULLIF ( + - 45, 71 ) ) ) AS col1, COUNT ( * ) + 97
----
-3645
98

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2242
SELECT ALL 41 * + + COUNT( * ) DIV - + CAST( - 66 AS SIGNED ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-2242
SELECT ALL 41 * + + COUNT ( * ) / - + CAST ( - 66 AS INTEGER ) AS col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2243
SELECT CAST( - + COUNT( * ) AS SIGNED ) - - 39
----
38

skipif mysql # not compatible
query I rowsort label-2243
SELECT CAST ( - + COUNT ( * ) AS INTEGER ) - - 39
----
38

query I rowsort
SELECT ALL 5 + - 49 AS col1
----
-44

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2246
SELECT 97 + + + COUNT( * ) col0, + CASE + + 23 WHEN + + ( + 18 ) + + 72 THEN COUNT( * ) + CAST( NULL AS SIGNED ) WHEN + - 35 THEN COUNT( * ) WHEN - 63 THEN NULL ELSE NULL END * + 2
----
98
NULL

skipif mysql # not compatible
query II rowsort label-2246
SELECT 97 + + + COUNT ( * ) col0, + CASE + + 23 WHEN + + ( + 18 ) + + 72 THEN COUNT ( * ) + CAST ( NULL AS INTEGER ) WHEN + - 35 THEN COUNT ( * ) WHEN - 63 THEN NULL ELSE NULL END * + 2
----
98
NULL

query I rowsort
SELECT ALL - ( + 19 ) + 76 + - ( + - 89 ) * - 20
----
-1723

query II rowsort
SELECT 13 * + + 49, - 73 AS col1
----
637
-73

onlyif mysql # aggregate syntax: 
query II rowsort label-2249
SELECT - COUNT( DISTINCT + + 7 ) AS col2, 96
----
-1
96

skipif mysql # not compatible
query II rowsort label-2249
SELECT - COUNT ( DISTINCT + + 7 ) AS col2, 96
----
-1
96

onlyif mysql # aggregate syntax: 
query I rowsort label-2250
SELECT 5 + MAX( 61 ) AS col0
----
66

skipif mysql # not compatible
query I rowsort label-2250
SELECT 5 + MAX ( 61 ) AS col0
----
66

query I rowsort
SELECT 48 - 2 AS col0
----
46

query I rowsort
SELECT ALL + 92 col1
----
92

query I rowsort
SELECT + + ( + + 87 ) * 72 AS col2
----
6264

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2254
SELECT + 82 / + + 35 * + 81 / CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2254
SELECT + 82 / + + 35 * + 81 / CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2255
SELECT 41 * 54 * + NULLIF ( - 37, 71 * + - 80 * - SUM( 21 ) ) + + - 34
----
-81952

skipif mysql # not compatible
query I rowsort label-2255
SELECT 41 * 54 * + NULLIF ( - 37, 71 * + - 80 * - SUM ( 21 ) ) + + - 34
----
-81952

query II rowsort
SELECT ALL - - 94 * + - 84, - 53 col2
----
-7896
-53

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2258
SELECT - - 65 DIV - ( - + 35 ) + + 42 + 26
----
69

skipif mysql # not compatible
query I rowsort label-2258
SELECT - - 65 / - ( - + 35 ) + + 42 + 26
----
69

query I rowsort
SELECT DISTINCT - 2 * + 75 AS col0
----
-150

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2260
SELECT ALL - MIN( + 49 ) * - COUNT( * ) * - + CAST( + - 69 AS SIGNED ) + 21 - 72 + + + 96 + 56 DIV + + 37
----
3427

skipif mysql # not compatible
query I rowsort label-2260
SELECT ALL - MIN ( + 49 ) * - COUNT ( * ) * - + CAST ( + - 69 AS INTEGER ) + 21 - 72 + + + 96 + 56 / + + 37
----
3427

onlyif mysql # aggregate syntax: 
query I rowsort label-2261
SELECT DISTINCT + + ( + - COUNT( DISTINCT - 13 ) ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-2261
SELECT DISTINCT + + ( + - COUNT ( DISTINCT - 13 ) ) AS col1
----
-1

query II rowsort
SELECT ALL - + ( - 6 ) * - 8 AS col1, - 7
----
-48
-7

query I rowsort
SELECT - - 58 * - 7
----
-406

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2264
SELECT - + 65 * - CAST( NULL AS DECIMAL ) + 34 + + 11 + 58 * - 60 - - NULLIF ( + 3, + ( + + 8 ) ) * - 6 * 93 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2264
SELECT - + 65 * - CAST ( NULL AS REAL ) + 34 + + 11 + 58 * - 60 - - NULLIF ( + 3, + ( + + 8 ) ) * - 6 * 93 AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2265
SELECT + CAST( + 32 AS SIGNED ) AS col0, + 95 AS col2
----
32
95

skipif mysql # not compatible
query II rowsort label-2265
SELECT + CAST ( + 32 AS INTEGER ) AS col0, + 95 AS col2
----
32
95

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2266
SELECT ALL + + COALESCE ( + - 36, 81 + - + 10 DIV - 35 ), 65 + MAX( - CAST( NULL AS SIGNED ) ) DIV - + 74 + + COUNT( * ) AS col1
----
-36
NULL

skipif mysql # not compatible
query II rowsort label-2266
SELECT ALL + + COALESCE ( + - 36, 81 + - + 10 / - 35 ), 65 + MAX ( - CAST ( NULL AS INTEGER ) ) / - + 74 + + COUNT ( * ) AS col1
----
-36
NULL

query I rowsort
SELECT - - 14 * 25
----
350

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2269
SELECT - 11 + - 48 AS col0, - 85 - + - CAST( NULL AS SIGNED )
----
-59
NULL

skipif mysql # not compatible
query II rowsort label-2269
SELECT - 11 + - 48 AS col0, - 85 - + - CAST ( NULL AS INTEGER )
----
-59
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2270
SELECT - - 65 DIV 89, 26 + + 41 + 51 * + 37 * - 60 + - ( + + ( + - 60 ) ) * - COUNT( ALL 39 ) * 63 AS col0
----
0
-116933

skipif mysql # not compatible
query II rowsort label-2270
SELECT - - 65 / 89, 26 + + 41 + 51 * + 37 * - 60 + - ( + + ( + - 60 ) ) * - COUNT ( ALL 39 ) * 63 AS col0
----
0
-116933

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

skipif mysql # not compatible
query I rowsort label-2271
SELECT ALL + 53 * - 8 / + COUNT ( * )
----
-424

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2273
SELECT DISTINCT + SUM( ALL 93 ) DIV + COUNT( * ), 68 AS col1
----
93
68

skipif mysql # not compatible
query II rowsort label-2273
SELECT DISTINCT + SUM ( ALL 93 ) / + COUNT ( * ), 68 AS col1
----
93
68

onlyif mysql # aggregate syntax: 
query II rowsort label-2274
SELECT ALL + 33, + 63 + + COUNT( ALL - 13 ) AS col0
----
33
64

skipif mysql # not compatible
query II rowsort label-2274
SELECT ALL + 33, + 63 + + COUNT ( ALL - 13 ) AS col0
----
33
64

query I rowsort
SELECT ALL 60 * 39 AS col0
----
2340

query I rowsort
SELECT ALL + 69 * 32
----
2208

onlyif mysql # aggregate syntax: 
query I rowsort label-2277
SELECT DISTINCT 20 * COUNT( * ) * - + NULLIF ( + 6, - 7 * - - 68 - - 87 + - + 78 ) + + - ( - 61 )
----
-59

skipif mysql # not compatible
query I rowsort label-2277
SELECT DISTINCT 20 * COUNT ( * ) * - + NULLIF ( + 6, - 7 * - - 68 - - 87 + - + 78 ) + + - ( - 61 )
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-2278
SELECT ALL - 96 * - COUNT( - ( 71 ) )
----
96

skipif mysql # not compatible
query I rowsort label-2278
SELECT ALL - 96 * - COUNT ( - ( 71 ) )
----
96

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2280
SELECT DISTINCT MAX( - 56 ) + 5 DIV NULLIF ( 16, - CAST( NULL AS SIGNED ) * + 31 * - + 78 * - 39 + - ( - 22 ) ) + - 86
----
-142

skipif mysql # not compatible
query I rowsort label-2280
SELECT DISTINCT MAX ( - 56 ) + 5 / NULLIF ( 16, - CAST ( NULL AS INTEGER ) * + 31 * - + 78 * - 39 + - ( - 22 ) ) + - 86
----
-142

onlyif mysql # aggregate syntax: 
query I rowsort label-2281
SELECT - COUNT( * ) + 90 AS col1
----
89

skipif mysql # not compatible
query I rowsort label-2281
SELECT - COUNT ( * ) + 90 AS col1
----
89

query I rowsort
SELECT - NULLIF ( - 47, 65 + - 74 + - 42 ) AS col1
----
47

query I rowsort
SELECT ALL + 34 + - - 7
----
41

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2285
SELECT DISTINCT - 25 + CAST( 82 AS SIGNED ) AS col2, - COALESCE ( 52, + 95 * 39 * + 7, - MAX( - 50 ) ) * + + 94 + 65
----
57
-4823

skipif mysql # not compatible
query II rowsort label-2285
SELECT DISTINCT - 25 + CAST ( 82 AS INTEGER ) AS col2, - COALESCE ( 52, + 95 * 39 * + 7, - MAX ( - 50 ) ) * + + 94 + 65
----
57
-4823

onlyif mysql # aggregate syntax: 
query I rowsort label-2286
SELECT ALL MAX( DISTINCT + + 49 ) + - 81 + - COUNT( * ) * - 53
----
21

skipif mysql # not compatible
query I rowsort label-2286
SELECT ALL MAX ( DISTINCT + + 49 ) + - 81 + - COUNT ( * ) * - 53
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-2287
SELECT - CASE - 68 WHEN - 70 + COUNT( * ) THEN 0 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2287
SELECT - CASE - 68 WHEN - 70 + COUNT ( * ) THEN 0 END AS col2
----
NULL

query I rowsort
SELECT DISTINCT 17 + + 14 + - + 48 * 86 AS col0
----
-4097

query II rowsort
SELECT 43, 62 AS col0
----
43
62

query I rowsort
SELECT + 46 + 94 * + 74 * + 75
----
521746

query I rowsort
SELECT 51 col2
----
51

query I rowsort
SELECT + - 56 + - 84
----
-140

onlyif mysql # aggregate syntax: 
query I rowsort label-2293
SELECT ALL + 76 - 13 * - COUNT( * ) * + 69
----
973

skipif mysql # not compatible
query I rowsort label-2293
SELECT ALL + 76 - 13 * - COUNT ( * ) * + 69
----
973

onlyif mysql # aggregate syntax: 
query I rowsort label-2294
SELECT + 79 + + COUNT( * ) - - - 39 * 52 * - SUM( ALL + ( - 52 ) ) + + 71 + 84
----
-105221

skipif mysql # not compatible
query I rowsort label-2294
SELECT + 79 + + COUNT ( * ) - - - 39 * 52 * - SUM ( ALL + ( - 52 ) ) + + 71 + 84
----
-105221

query I rowsort
SELECT DISTINCT + 42 - - 90 col1
----
132

onlyif mysql # DIV for integer division: 
query II rowsort label-2296
SELECT DISTINCT + 31 * ( - 94 ) AS col0, - 7 + + 45 DIV - 52 - - - ( - 18 ) AS col2
----
-2914
11

skipif mysql # not compatible
query II rowsort label-2296
SELECT DISTINCT + 31 * ( - 94 ) AS col0, - 7 + + 45 / - 52 - - - ( - 18 ) AS col2
----
-2914
11

onlyif mysql # DIV for integer division: 
query I rowsort label-2297
SELECT ALL + 9 DIV + 83
----
0

skipif mysql # not compatible
query I rowsort label-2297
SELECT ALL + 9 / + 83
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2298
SELECT + - 4 * - 10 / - 87 - COUNT( * ) - + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-2298
SELECT + - 4 * - 10 / - 87 - COUNT ( * ) - + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2299
SELECT ALL + SUM( DISTINCT - 1 )
----
-1

skipif mysql # not compatible
query I rowsort label-2299
SELECT ALL + SUM ( DISTINCT - 1 )
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2300
SELECT 13 DIV + + COUNT( * ) + 57 * - 63 + + 7 * NULLIF ( + + 21, + SUM( ALL + + 59 ) ) AS col2, ( + 94 ) + - MAX( DISTINCT - COALESCE ( + 43, + 17 ) )
----
-3431
137

skipif mysql # not compatible
query II rowsort label-2300
SELECT 13 / + + COUNT ( * ) + 57 * - 63 + + 7 * NULLIF ( + + 21, + SUM ( ALL + + 59 ) ) AS col2, ( + 94 ) + - MAX ( DISTINCT - COALESCE ( + 43, + 17 ) )
----
-3431
137

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2301
SELECT ALL - 49 DIV + 58 + - 0 + + - NULLIF ( - 1, 42 + - 93 + - AVG ( DISTINCT 98 ) + 54 * 29 * + COUNT( * ) ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-2301
SELECT ALL - 49 / + 58 + - 0 + + - NULLIF ( - 1, 42 + - 93 + - AVG ( DISTINCT 98 ) + 54 * 29 * + COUNT ( * ) ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2302
SELECT - COUNT( * ) + + 18 + 21 AS col0
----
38

skipif mysql # not compatible
query I rowsort label-2302
SELECT - COUNT ( * ) + + 18 + 21 AS col0
----
38

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2303
SELECT ALL + 32, 99 * - + CAST( NULL AS SIGNED ) + - - 55 + COUNT( * ) AS col0
----
32
NULL

skipif mysql # not compatible
query II rowsort label-2303
SELECT ALL + 32, 99 * - + CAST ( NULL AS INTEGER ) + - - 55 + COUNT ( * ) AS col0
----
32
NULL

query I rowsort
SELECT + COALESCE ( 49, + 43 * + 95 + 14 ) - - 3 AS col2
----
52

onlyif mysql # DIV for integer division: 
query I rowsort label-2305
SELECT ALL 70 DIV + 39
----
1

skipif mysql # not compatible
query I rowsort label-2305
SELECT ALL 70 / + 39
----
1

query I rowsort
SELECT DISTINCT + + 24 * - 63 + + 4 + - 20
----
-1528

query II rowsort
SELECT DISTINCT + 9, 25 + - 27 AS col0
----
9
-2

query I rowsort
SELECT DISTINCT 41 * 99 + + 80 AS col2
----
4139

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2310
SELECT + MAX( DISTINCT + ( - - 97 ) ) * - 37 AS col2
----
-3589

skipif mysql # not compatible
query I rowsort label-2310
SELECT + MAX ( DISTINCT + ( - - 97 ) ) * - 37 AS col2
----
-3589

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2311
SELECT + 3 * + 96 + - COUNT( * ) + 93 + + + ( - + 44 ) + - CAST( - 1 AS SIGNED ) AS col1
----
337

skipif mysql # not compatible
query I rowsort label-2311
SELECT + 3 * + 96 + - COUNT ( * ) + 93 + + + ( - + 44 ) + - CAST ( - 1 AS INTEGER ) AS col1
----
337

onlyif mysql # aggregate syntax: 
query I rowsort label-2312
SELECT ALL COALESCE ( MIN( - 58 ), - 81, + - NULLIF ( 7, 30 - - ( - 74 ) * 32 ) * + + ( - COUNT( * ) ) ) * - - 73 + + - 66 + - 99 - 48 * - - 32 * + - 55 * 33 + - 33
----
2783408

skipif mysql # not compatible
query I rowsort label-2312
SELECT ALL COALESCE ( MIN ( - 58 ), - 81, + - NULLIF ( 7, 30 - - ( - 74 ) * 32 ) * + + ( - COUNT ( * ) ) ) * - - 73 + + - 66 + - 99 - 48 * - - 32 * + - 55 * 33 + - 33
----
2783408

onlyif mysql # aggregate syntax: 
query I rowsort label-2313
SELECT DISTINCT CASE - 27 WHEN 48 THEN NULL WHEN - 19 THEN NULL ELSE - COUNT( - + 25 ) END * - COUNT( * ) + - 82 - + - ( COUNT( * ) ) * + NULLIF ( + SUM( ALL + + CASE + + 52 WHEN + + 52 + + 27 + + + 46 THEN NULL WHEN 66 - 31 THEN 51 END ), - 67 + + 31 ) * 95 * - - ( - 49 ) * + 21 + - + 57 * + 57 * 71 * - 28
----
NULL

skipif mysql # not compatible
query I rowsort label-2313
SELECT DISTINCT CASE - 27 WHEN 48 THEN NULL WHEN - 19 THEN NULL ELSE - COUNT ( - + 25 ) END * - COUNT ( * ) + - 82 - + - ( COUNT ( * ) ) * + NULLIF ( + SUM ( ALL + + CASE + + 52 WHEN + + 52 + + 27 + + + 46 THEN NULL WHEN 66 - 31 THEN 51 END ), - 67 + + 31 ) * 95 * - - ( - 49 ) * + 21 + - + 57 * + 57 * 71 * - 28
----
NULL

query I rowsort
SELECT DISTINCT + 39 col2
----
39

query I rowsort
SELECT ALL 28 * - 2 + + NULLIF ( + + 94, + 22 ) AS col0
----
38

query I rowsort
SELECT - ( + 81 ) * - 77
----
6237

onlyif mysql # aggregate syntax: 
query I rowsort label-2317
SELECT DISTINCT + 56 * + 82 + - + SUM( - 52 ) AS col2
----
4644

skipif mysql # not compatible
query I rowsort label-2317
SELECT DISTINCT + 56 * + 82 + - + SUM ( - 52 ) AS col2
----
4644

query I rowsort
SELECT COALESCE ( + 26, 12 )
----
26

query I rowsort
SELECT - 94 * + - 41
----
3854

onlyif mysql # aggregate syntax: 
query I rowsort label-2320
SELECT DISTINCT 40 * + - COUNT( ALL - 30 ) * COUNT( * ) + - 68 * - - 95 + 45
----
-6455

skipif mysql # not compatible
query I rowsort label-2320
SELECT DISTINCT 40 * + - COUNT ( ALL - 30 ) * COUNT ( * ) + - 68 * - - 95 + 45
----
-6455

onlyif mysql # aggregate syntax: 
query I rowsort label-2321
SELECT 87 + - + COUNT( * ) AS col0
----
86

skipif mysql # not compatible
query I rowsort label-2321
SELECT 87 + - + COUNT ( * ) AS col0
----
86

onlyif mysql # DIV for integer division: 
query I rowsort label-2322
SELECT 22 DIV + 71
----
0

skipif mysql # not compatible
query I rowsort label-2322
SELECT 22 / + 71
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2323
SELECT ALL - COUNT( * ) - + 19, - COUNT( * ) * 51 * + - NULLIF ( + 73, - CASE 98 WHEN + - 36 THEN 68 * + + 47 * + 5 END ) DIV COUNT( * ) AS col0
----
-20
3723

skipif mysql # not compatible
query II rowsort label-2323
SELECT ALL - COUNT ( * ) - + 19, - COUNT ( * ) * 51 * + - NULLIF ( + 73, - CASE 98 WHEN + - 36 THEN 68 * + + 47 * + 5 END ) / COUNT ( * ) AS col0
----
-20
3723

query I rowsort
SELECT 93 * + 50
----
4650

onlyif mysql # aggregate syntax: 
query I rowsort label-2325
SELECT 96 + + SUM( ALL - 95 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-2325
SELECT 96 + + SUM ( ALL - 95 ) AS col0
----
1

query I rowsort
SELECT 65 - + + 48 * ( + 38 )
----
-1759

query I rowsort
SELECT DISTINCT + - 60 * + - 23 * 45
----
62100

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

query I rowsort
SELECT ALL + COALESCE ( 30, + 75 ) AS col2
----
30

query I rowsort
SELECT - 44 * CASE - ( + 85 ) WHEN - 56 THEN - + 12 ELSE + + 88 - + + 83 END AS col1
----
-220

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2331
SELECT CAST( NULL AS SIGNED ) + - 79, 13 col0
----
NULL
13

skipif mysql # not compatible
query II rowsort label-2331
SELECT CAST ( NULL AS INTEGER ) + - 79, 13 col0
----
NULL
13

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2332
SELECT - CAST( NULL AS SIGNED ) - + - 74 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2332
SELECT - CAST ( NULL AS INTEGER ) - + - 74 AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2333
SELECT DISTINCT - COUNT( * ) * + + 91 DIV - 61 col0
----
1

skipif mysql # not compatible
query I rowsort label-2333
SELECT DISTINCT - COUNT ( * ) * + + 91 / - 61 col0
----
1

query I rowsort
SELECT 26 + + - 93
----
-67

onlyif mysql # DIV for integer division: 
query I rowsort label-2335
SELECT 13 DIV + 84 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-2335
SELECT 13 / + 84 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2336
SELECT MIN( ALL - 86 ) * - 75
----
6450

skipif mysql # not compatible
query I rowsort label-2336
SELECT MIN ( ALL - 86 ) * - 75
----
6450

query I rowsort
SELECT ALL + 87 * 33 * - + 41 AS col0
----
-117711

onlyif mysql # aggregate syntax: 
query I rowsort label-2338
SELECT DISTINCT + CASE - - 76 WHEN + + 59 - - - 8 THEN + + COUNT( * ) + - + 71 WHEN 84 THEN NULL ELSE - 26 END * + 95 * - 94
----
232180

skipif mysql # not compatible
query I rowsort label-2338
SELECT DISTINCT + CASE - - 76 WHEN + + 59 - - - 8 THEN + + COUNT ( * ) + - + 71 WHEN 84 THEN NULL ELSE - 26 END * + 95 * - 94
----
232180

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

query I rowsort
SELECT DISTINCT - 59 * - COALESCE ( - 18, - - NULLIF ( 98, 16 ) ) AS col0
----
-1062

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2343
SELECT ALL - CAST( - 42 AS SIGNED ) + 32 - + CASE - - 73 WHEN 63 / + COUNT( * ) THEN - + COUNT( * ) * - - 23 + 55 + + 87 / 63 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2343
SELECT ALL - CAST ( - 42 AS INTEGER ) + 32 - + CASE - - 73 WHEN 63 / + COUNT ( * ) THEN - + COUNT ( * ) * - - 23 + 55 + + 87 / 63 END AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-2344
SELECT DISTINCT - + 9 DIV - - 84 * - ( - - COALESCE ( + + 47, - 68, 70 ) ) AS col0, 54 + + 21 - + 32 AS col0
----
0
43

skipif mysql # not compatible
query II rowsort label-2344
SELECT DISTINCT - + 9 / - - 84 * - ( - - COALESCE ( + + 47, - 68, 70 ) ) AS col0, 54 + + 21 - + 32 AS col0
----
0
43

query I rowsort
SELECT ALL + + 47 + - - 72 AS col2
----
119

onlyif mysql # aggregate syntax: 
query I rowsort label-2346
SELECT COUNT( * ) * + 9 * 23 + + - 36
----
171

skipif mysql # not compatible
query I rowsort label-2346
SELECT COUNT ( * ) * + 9 * 23 + + - 36
----
171

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

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

query I rowsort
SELECT DISTINCT 83 + - + 14 AS col1
----
69

query I rowsort
SELECT ALL 42 + - 8 + + 32 * - 82 * - 78 + + 59 * 45 * - 95
----
-47519

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2350
SELECT + 62 DIV + MAX( - 92 ) * + + 69 * - 65 + - 98 AS col1
----
-98

skipif mysql # not compatible
query I rowsort label-2350
SELECT + 62 / + MAX ( - 92 ) * + + 69 * - 65 + - 98 AS col1
----
-98

query I rowsort
SELECT ALL 18 + 80 + + 29
----
127

query I rowsort
SELECT 78 + + 71
----
149

onlyif mysql # aggregate syntax: 
query I rowsort label-2353
SELECT ALL 30 + + 63 - COUNT( * )
----
92

skipif mysql # not compatible
query I rowsort label-2353
SELECT ALL 30 + + 63 - COUNT ( * )
----
92

query I rowsort
SELECT DISTINCT - 97 * + 63 * - 24 AS col0
----
146664

onlyif mysql # DIV for integer division: 
query I rowsort label-2355
SELECT DISTINCT 48 DIV - 41 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-2355
SELECT DISTINCT 48 / - 41 AS col1
----
-1

query I rowsort
SELECT ALL + 34 + + 38
----
72

query II rowsort
SELECT ALL - 61 col1, 56 AS col2
----
-61
56

onlyif mysql # aggregate syntax: 
query I rowsort label-2358
SELECT ALL 82 + + COUNT( * ) col0
----
83

skipif mysql # not compatible
query I rowsort label-2358
SELECT ALL 82 + + COUNT ( * ) col0
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-2359
SELECT DISTINCT COUNT( * ) + + MIN( ALL 69 ) col2
----
70

skipif mysql # not compatible
query I rowsort label-2359
SELECT DISTINCT COUNT ( * ) + + MIN ( ALL 69 ) col2
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-2360
SELECT ALL + NULLIF ( + 57, 50 ) + - - 18 + + 5 - + MIN( ALL + 1 ) + - 62 * + - 31
----
2001

skipif mysql # not compatible
query I rowsort label-2360
SELECT ALL + NULLIF ( + 57, 50 ) + - - 18 + + 5 - + MIN ( ALL + 1 ) + - 62 * + - 31
----
2001

onlyif mysql # aggregate syntax: 
query I rowsort label-2361
SELECT - NULLIF ( + 40, - + 26 ) * - COUNT( * ) + - + 37 - 13 * 25
----
-322

skipif mysql # not compatible
query I rowsort label-2361
SELECT - NULLIF ( + 40, - + 26 ) * - COUNT ( * ) + - + 37 - 13 * 25
----
-322

onlyif mysql # aggregate syntax: 
query I rowsort label-2362
SELECT ALL CASE + 27 WHEN + 64 THEN + COUNT( ALL 29 ) WHEN - 65 + - 16 + + 44 * + - 41 / 73 THEN NULL END * - + CASE WHEN NOT NULL >= COUNT( * ) THEN - 19 ELSE NULL END + - - 8
----
NULL

skipif mysql # not compatible
query I rowsort label-2362
SELECT ALL CASE + 27 WHEN + 64 THEN + COUNT ( ALL 29 ) WHEN - 65 + - 16 + + 44 * + - 41 / 73 THEN NULL END * - + CASE WHEN NOT NULL >= COUNT ( * ) THEN - 19 ELSE NULL END + - - 8
----
NULL

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

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

query I rowsort
SELECT 12 + - 32
----
-20

query I rowsort
SELECT DISTINCT 14 AS col1
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-2366
SELECT 22 + + 67 * + + COUNT( * ) * - COUNT( * ) AS col1
----
-45

skipif mysql # not compatible
query I rowsort label-2366
SELECT 22 + + 67 * + + COUNT ( * ) * - COUNT ( * ) AS col1
----
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-2367
SELECT ALL - + COUNT( DISTINCT - 29 ) * + ( + 30 ) - + + 5 + 17 * - - 8 * + + NULLIF ( + 1, NULLIF ( COUNT( * ), - - 60 ) ) + + + SUM( ALL + 58 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2367
SELECT ALL - + COUNT ( DISTINCT - 29 ) * + ( + 30 ) - + + 5 + 17 * - - 8 * + + NULLIF ( + 1, NULLIF ( COUNT ( * ), - - 60 ) ) + + + SUM ( ALL + 58 ) AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2368
SELECT DISTINCT - 31 DIV + COUNT( * ) AS col0
----
-31

skipif mysql # not compatible
query I rowsort label-2368
SELECT DISTINCT - 31 / + COUNT ( * ) AS col0
----
-31

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

skipif mysql # not compatible
query I rowsort label-2369
SELECT DISTINCT - COUNT ( * ) / + 30
----
0

query I rowsort
SELECT ALL - 82 * + + 48
----
-3936

query I rowsort
SELECT 90 * - 33 - - + 55 AS col0
----
-2915

query I rowsort
SELECT 49 + 81 AS col1
----
130

query I rowsort
SELECT + 41 * + 16 - 53 * + 93 col1
----
-4273

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2375
SELECT + 25 DIV 66
----
0

skipif mysql # not compatible
query I rowsort label-2375
SELECT + 25 / 66
----
0

query I rowsort
SELECT COALESCE ( + + 83, + 48 * ( - ( - - 77 ) ) ) + - 85 AS col0
----
-2

query I rowsort
SELECT ALL + + 16 * 3 AS col0
----
48

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2379
SELECT ALL + 30 + ( + 85 ) + + MIN( ALL - - 66 ) - 36 * - 48 * + SUM( DISTINCT 7 ) * + 84 - - 25 AS col1, 10
----
1016270
10

skipif mysql # not compatible
query II rowsort label-2379
SELECT ALL + 30 + ( + 85 ) + + MIN ( ALL - - 66 ) - 36 * - 48 * + SUM ( DISTINCT 7 ) * + 84 - - 25 AS col1, 10
----
1016270
10

onlyif mysql # aggregate syntax: 
query I rowsort label-2380
SELECT ALL - MAX( ALL 83 )
----
-83

skipif mysql # not compatible
query I rowsort label-2380
SELECT ALL - MAX ( ALL 83 )
----
-83

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2381
SELECT ALL + - COUNT( * ) + + COUNT( * ) * + + COUNT( * ) * - 11 * - CAST( - + COUNT( * ) AS SIGNED ) + - 80
----
-92

skipif mysql # not compatible
query I rowsort label-2381
SELECT ALL + - COUNT ( * ) + + COUNT ( * ) * + + COUNT ( * ) * - 11 * - CAST ( - + COUNT ( * ) AS INTEGER ) + - 80
----
-92

query I rowsort
SELECT ALL - + ( 40 ) + + 50 AS col0
----
10

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2383
SELECT ALL 44 + + COUNT( ALL - + CAST( 78 AS SIGNED ) ) col1
----
45

skipif mysql # not compatible
query I rowsort label-2383
SELECT ALL 44 + + COUNT ( ALL - + CAST ( 78 AS INTEGER ) ) col1
----
45

query I rowsort
SELECT 82 + - + 56 AS col2
----
26

query II rowsort
SELECT ALL - 41 AS col0, - 21
----
-41
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-2386
SELECT + COUNT( ALL - 34 )
----
1

skipif mysql # not compatible
query I rowsort label-2386
SELECT + COUNT ( ALL - 34 )
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2387
SELECT + 11 DIV 90 + - MIN( DISTINCT 59 )
----
-59

skipif mysql # not compatible
query I rowsort label-2387
SELECT + 11 / 90 + - MIN ( DISTINCT 59 )
----
-59

query I rowsort
SELECT - 32 * 84 + - - 93 * + 22
----
-642

query I rowsort
SELECT 97 + - 16 AS col0
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-2390
SELECT ALL 76 * - + 69 + SUM( 44 )
----
-5200

skipif mysql # not compatible
query I rowsort label-2390
SELECT ALL 76 * - + 69 + SUM ( 44 )
----
-5200

onlyif mysql # aggregate syntax: 
query I rowsort label-2391
SELECT 68 * COUNT( * ) * + + 28
----
1904

skipif mysql # not compatible
query I rowsort label-2391
SELECT 68 * COUNT ( * ) * + + 28
----
1904

onlyif mysql # aggregate syntax: 
query I rowsort label-2392
SELECT SUM( - 47 )
----
-47

skipif mysql # not compatible
query I rowsort label-2392
SELECT SUM ( - 47 )
----
-47

query I rowsort
SELECT DISTINCT 51 * - 58 * + 55 * + ( 55 ) * 17 + + 82 AS col1
----
-152115068

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2394
SELECT 81 - + CAST( + COUNT( - 23 ) AS SIGNED ) - + COUNT( + - 44 ) * 41 DIV + - 9 AS col2
----
84

skipif mysql # not compatible
query I rowsort label-2394
SELECT 81 - + CAST ( + COUNT ( - 23 ) AS INTEGER ) - + COUNT ( + - 44 ) * 41 / + - 9 AS col2
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-2395
SELECT ALL - 47 * - CASE + 72 WHEN 96 THEN + 65 * - 70 - 47 END * - - COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2395
SELECT ALL - 47 * - CASE + 72 WHEN 96 THEN + 65 * - 70 - 47 END * - - COUNT ( * ) AS col0
----
NULL

query I rowsort
SELECT ALL - 52 AS col1
----
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-2397
SELECT MAX( ALL - + 90 ) AS col1
----
-90

skipif mysql # not compatible
query I rowsort label-2397
SELECT MAX ( ALL - + 90 ) AS col1
----
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-2398
SELECT ALL 13 * + 61 + COUNT( - + 92 ) col2
----
794

skipif mysql # not compatible
query I rowsort label-2398
SELECT ALL 13 * + 61 + COUNT ( - + 92 ) col2
----
794

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2399
SELECT ALL - 61 AS col0, CAST( + 37 AS SIGNED ) AS col0
----
-61
37

skipif mysql # not compatible
query II rowsort label-2399
SELECT ALL - 61 AS col0, CAST ( + 37 AS INTEGER ) AS col0
----
-61
37

onlyif mysql # aggregate syntax: 
query I rowsort label-2400
SELECT COUNT( DISTINCT - 6 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-2400
SELECT COUNT ( DISTINCT - 6 ) AS col0
----
1

query II rowsort
SELECT ALL - 32 AS col0, 24 AS col0
----
-32
24

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2403
SELECT COUNT( ALL - 7 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-2403
SELECT COUNT ( ALL - 7 ) AS col0
----
1

query I rowsort
SELECT + NULLIF ( - - ( + - 23 ), - 58 ) * 88 AS col0
----
-2024

onlyif mysql # DIV for integer division: 
query I rowsort label-2405
SELECT + 35 DIV 96
----
0

skipif mysql # not compatible
query I rowsort label-2405
SELECT + 35 / 96
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2406
SELECT - 41 DIV ( + - 48 ) DIV + + 86 * - COUNT( * ) * - 27 + - + 84 + - SUM( - 89 ) * + + 61 + + MIN( DISTINCT + 70 ) + + - 71 + + 4 * 53 * + + 51 + + 96 * + - 88 AS col1
----
7708

skipif mysql # not compatible
query I rowsort label-2406
SELECT - 41 / ( + - 48 ) / + + 86 * - COUNT ( * ) * - 27 + - + 84 + - SUM ( - 89 ) * + + 61 + + MIN ( DISTINCT + 70 ) + + - 71 + + 4 * 53 * + + 51 + + 96 * + - 88 AS col1
----
7708

onlyif mysql # aggregate syntax: 
query II rowsort label-2407
SELECT ALL 23 * MAX( ALL - 26 ) * 36 + + 41 + + 86, + ( 33 ) AS col2
----
-21401
33

skipif mysql # not compatible
query II rowsort label-2407
SELECT ALL 23 * MAX ( ALL - 26 ) * 36 + + 41 + + 86, + ( 33 ) AS col2
----
-21401
33

onlyif mysql # aggregate syntax: 
query I rowsort label-2408
SELECT SUM( 31 )
----
31

skipif mysql # not compatible
query I rowsort label-2408
SELECT SUM ( 31 )
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-2409
SELECT DISTINCT COUNT( - - 63 )
----
1

skipif mysql # not compatible
query I rowsort label-2409
SELECT DISTINCT COUNT ( - - 63 )
----
1

query I rowsort
SELECT DISTINCT CASE 45 WHEN - + 27 THEN NULL ELSE - 68 END AS col0
----
-68

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2411
SELECT - 72 * 41 + CAST( NULL AS SIGNED ) / - 60 - + - 47 * - 2 + - 11 + - 23 / + 51
----
NULL

skipif mysql # not compatible
query I rowsort label-2411
SELECT - 72 * 41 + CAST ( NULL AS INTEGER ) / - 60 - + - 47 * - 2 + - 11 + - 23 / + 51
----
NULL

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

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

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

query I rowsort
SELECT + + 56 - - 93 + + - 69 col0
----
80

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2417
SELECT ALL - CAST( - COUNT( * ) AS SIGNED ) DIV 96 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-2417
SELECT ALL - CAST ( - COUNT ( * ) AS INTEGER ) / 96 AS col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2418
SELECT DISTINCT COALESCE ( + 38, - - ( - 70 ) * 52 + + 91 + - 47 ) + + CAST( - 54 AS DECIMAL ) / + 68 / + ( - 92 ) * - - CASE WHEN NULL >= NULL THEN COUNT( * ) WHEN - COUNT( * ) IS NULL THEN NULL ELSE NULL END * + 28 * - 58 + COUNT( * ) + + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-2418
SELECT DISTINCT COALESCE ( + 38, - - ( - 70 ) * 52 + + 91 + - 47 ) + + CAST ( - 54 AS REAL ) / + 68 / + ( - 92 ) * - - CASE WHEN NULL >= NULL THEN COUNT ( * ) WHEN - COUNT ( * ) IS NULL THEN NULL ELSE NULL END * + 28 * - 58 + COUNT ( * ) + + COUNT ( * )
----
NULL

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

skipif mysql # not compatible
query I rowsort label-2419
SELECT ALL CAST ( NULL AS INTEGER ) + ( - 96 )
----
NULL

query I rowsort
SELECT - - 73 col1
----
73

query I rowsort
SELECT DISTINCT + 79 + - + 91 AS col1
----
-12

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2422
SELECT ALL - + 92 + CASE + 85 WHEN + 9 + COUNT( * ) + + - 14 THEN - 96 / - 85 * + AVG ( - + CAST( NULL AS SIGNED ) ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-2422
SELECT ALL - + 92 + CASE + 85 WHEN + 9 + COUNT ( * ) + + - 14 THEN - 96 / - 85 * + AVG ( - + CAST ( NULL AS INTEGER ) ) END
----
NULL

query I rowsort
SELECT ALL + + 76 * - + 46 * - - 77 + + 96
----
-269096

query I rowsort
SELECT + 33 + - + 64
----
-31

query I rowsort
SELECT - 2 - - - 24 * - - ( 16 ) AS col2
----
-386

query I rowsort
SELECT - - 53
----
53

onlyif mysql # aggregate syntax: 
query II rowsort label-2427
SELECT + 45 AS col2, + MIN( ALL + 1 ) * - 99 * 23 - 31 + + CASE - - 95 WHEN 96 + 55 THEN - 73 END
----
45
NULL

skipif mysql # not compatible
query II rowsort label-2427
SELECT + 45 AS col2, + MIN ( ALL + 1 ) * - 99 * 23 - 31 + + CASE - - 95 WHEN 96 + 55 THEN - 73 END
----
45
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2428
SELECT DISTINCT - - 63 + + COUNT( - 89 )
----
64

skipif mysql # not compatible
query I rowsort label-2428
SELECT DISTINCT - - 63 + + COUNT ( - 89 )
----
64

query I rowsort
SELECT ALL - 85 + + ( 81 ) AS col2
----
-4

query I rowsort
SELECT DISTINCT + 24 * + 86 AS col1
----
2064

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

query I rowsort
SELECT + 26 col1
----
26

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2433
SELECT DISTINCT COUNT( * ) DIV - - COUNT( DISTINCT + - 83 ) - + + 62 AS col2
----
-61

skipif mysql # not compatible
query I rowsort label-2433
SELECT DISTINCT COUNT ( * ) / - - COUNT ( DISTINCT + - 83 ) - + + 62 AS col2
----
-61

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2434
SELECT ALL + ( + 53 ) AS col1, 12 / - CAST( NULL AS SIGNED )
----
53
NULL

skipif mysql # not compatible
query II rowsort label-2434
SELECT ALL + ( + 53 ) AS col1, 12 / - CAST ( NULL AS INTEGER )
----
53
NULL

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

query I rowsort
SELECT + 30 * - 43 AS col2
----
-1290

query II rowsort
SELECT ( - 83 ), 54 AS col0
----
-83
54

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2439
SELECT - 94 * + MAX( - - ( 95 ) )
----
-8930

skipif mysql # not compatible
query I rowsort label-2439
SELECT - 94 * + MAX ( - - ( 95 ) )
----
-8930

query I rowsort
SELECT + 0 * 53 * - 47
----
0

query I rowsort
SELECT - 11 + 13
----
2

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

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

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

query I rowsort
SELECT ALL + 73 col2
----
73

query I rowsort
SELECT NULLIF ( + 66, + 17 * + 33 ) AS col2
----
66

query I rowsort
SELECT + 57 + - + 60 * - - 82 col0
----
-4863

query II rowsort
SELECT - - 76 * 24, 57 col2
----
1824
57

query I rowsort
SELECT + + ( 99 ) + 82
----
181

query II rowsort
SELECT ALL + ( + + 8 ) AS col1, 24
----
8
24

onlyif mysql # DIV for integer division: 
query I rowsort label-2450
SELECT + 80 DIV - 97
----
0

skipif mysql # not compatible
query I rowsort label-2450
SELECT + 80 / - 97
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2451
SELECT ALL + COUNT( * ) * + - COUNT( * ) + + COUNT( * ) DIV + + 98 + - + 20 AS col0
----
-21

skipif mysql # not compatible
query I rowsort label-2451
SELECT ALL + COUNT ( * ) * + - COUNT ( * ) + + COUNT ( * ) / + + 98 + - + 20 AS col0
----
-21

query I rowsort
SELECT ALL 76 * - ( + + 19 )
----
-1444

query I rowsort
SELECT DISTINCT - 44 * 91 + - - 13 + 82 * + 70
----
1749

query II rowsort
SELECT DISTINCT - - 15 + - + 16 AS col1, + 20 + 86 + 39 + - - 70 AS col1
----
-1
215

query I rowsort
SELECT ALL + 50 + + ( 93 )
----
143

query I rowsort
SELECT + - 33 + - 80 - - 34 - + - ( + 80 )
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2457
SELECT + + 75 * - SUM( DISTINCT - 27 ) + - 11 * + - CAST( - 32 AS SIGNED )
----
1673

skipif mysql # not compatible
query I rowsort label-2457
SELECT + + 75 * - SUM ( DISTINCT - 27 ) + - 11 * + - CAST ( - 32 AS INTEGER )
----
1673

query I rowsort
SELECT DISTINCT 65 + + - 83
----
-18

query I rowsort
SELECT ALL - 89 + - 19 AS col2
----
-108

onlyif mysql # aggregate syntax: 
query II rowsort label-2460
SELECT - + 20 * + 47, MIN( ALL + 14 ) + - 41 col0
----
-940
-27

skipif mysql # not compatible
query II rowsort label-2460
SELECT - + 20 * + 47, MIN ( ALL + 14 ) + - 41 col0
----
-940
-27

onlyif mysql # aggregate syntax: 
query II rowsort label-2461
SELECT + - 92 + - COUNT( 7 ) AS col0, + COUNT( * ) * 3
----
-93
3

skipif mysql # not compatible
query II rowsort label-2461
SELECT + - 92 + - COUNT ( 7 ) AS col0, + COUNT ( * ) * 3
----
-93
3

query I rowsort
SELECT + 1 + + - 7 col0
----
-6

query I rowsort
SELECT - ( - 31 ) * + 66 * + 69
----
141174

onlyif mysql # aggregate syntax: 
query I rowsort label-2464
SELECT ALL - COUNT( * ) - + + 4 * COUNT( * )
----
-5

skipif mysql # not compatible
query I rowsort label-2464
SELECT ALL - COUNT ( * ) - + + 4 * COUNT ( * )
----
-5

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2465
SELECT - 26 AS col2, - CAST( - 15 AS SIGNED ) * - 25 AS col1
----
-26
-375

skipif mysql # not compatible
query II rowsort label-2465
SELECT - 26 AS col2, - CAST ( - 15 AS INTEGER ) * - 25 AS col1
----
-26
-375

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2466
SELECT 16 / CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2466
SELECT 16 / CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2467
SELECT ALL + MAX( ALL - 71 ) * - 84, - 1 col1
----
5964
-1

skipif mysql # not compatible
query II rowsort label-2467
SELECT ALL + MAX ( ALL - 71 ) * - 84, - 1 col1
----
5964
-1

onlyif mysql # aggregate syntax: 
query III rowsort label-2468
SELECT + 35 AS col0, MAX( ALL + - 32 ) * COUNT( * ), - COUNT( DISTINCT + 93 ) AS col1
----
35
-32
-1

skipif mysql # not compatible
query III rowsort label-2468
SELECT + 35 AS col0, MAX ( ALL + - 32 ) * COUNT ( * ), - COUNT ( DISTINCT + 93 ) AS col1
----
35
-32
-1

query I rowsort
SELECT 32 + + 58 col2
----
90

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2471
SELECT 6 DIV - 75 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2471
SELECT 6 / - 75 AS col0
----
0

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2473
SELECT ALL COALESCE ( + 49, 53 + + 23 ) * + - 84 + NULLIF ( - 49, + 89 - COUNT( * ) ) AS col2
----
-4165

skipif mysql # not compatible
query I rowsort label-2473
SELECT ALL COALESCE ( + 49, 53 + + 23 ) * + - 84 + NULLIF ( - 49, + 89 - COUNT ( * ) ) AS col2
----
-4165

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

skipif mysql # not compatible
query I rowsort label-2474
SELECT DISTINCT + COUNT ( * ) / - 89 * 42 * - COUNT ( * ) AS col2
----
0

query I rowsort
SELECT 41 * 26
----
1066

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2476
SELECT DISTINCT + CAST( - 65 AS SIGNED ) + + COUNT( * ) + - + 82 + + 41
----
-105

skipif mysql # not compatible
query I rowsort label-2476
SELECT DISTINCT + CAST ( - 65 AS INTEGER ) + + COUNT ( * ) + - + 82 + + 41
----
-105

onlyif mysql # aggregate syntax: 
query I rowsort label-2477
SELECT ALL - COUNT( * ) + - 92 - 17 col0
----
-110

skipif mysql # not compatible
query I rowsort label-2477
SELECT ALL - COUNT ( * ) + - 92 - 17 col0
----
-110

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

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

query I rowsort
SELECT ALL 52 + - + 43
----
9

query I rowsort
SELECT + + 34
----
34

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

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

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

skipif mysql # not compatible
query I rowsort label-2482
SELECT ALL + 59 + + + COUNT ( * ) AS col1
----
60

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

query I rowsort
SELECT DISTINCT + 42 * + - 9
----
-378

query I rowsort
SELECT DISTINCT CASE - NULLIF ( + - 46, 13 * 68 * - 1 + - 48 ) WHEN + - 84 THEN - - 29 END AS col2
----
NULL

query I rowsort
SELECT - - 82 * + - 93 + 25 AS col1
----
-7601

query I rowsort
SELECT - 71 * - 77 col0
----
5467

onlyif mysql # aggregate syntax: 
query I rowsort label-2488
SELECT ( + 39 ) + - COUNT( * ) * 37 * + 39
----
-1404

skipif mysql # not compatible
query I rowsort label-2488
SELECT ( + 39 ) + - COUNT ( * ) * 37 * + 39
----
-1404

onlyif mysql # DIV for integer division: 
query I rowsort label-2489
SELECT DISTINCT - 60 DIV - + 85 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-2489
SELECT DISTINCT - 60 / - + 85 AS col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-2490
SELECT - COUNT( * ) + - - 7 + CASE 54 WHEN - + MAX( ALL 35 ) THEN NULL ELSE - CAST( NULL AS DECIMAL ) * - - 42 * - + NULLIF ( + 40, + COALESCE ( - + NULLIF ( - 39, - - 79 + + + CAST( - ( + 88 ) AS SIGNED ) + COUNT( * ) ), + 28 - - 0 ) - + + 43 ) END AS col2, + 10 + - - MIN( ALL - 57 ) + CASE + + 94 WHEN 14 - - 27 THEN - COUNT( * ) WHEN + 58 THEN NULL ELSE 89 + - 54 END col0
----
NULL
-12

skipif mysql # not compatible
query II rowsort label-2490
SELECT - COUNT ( * ) + - - 7 + CASE 54 WHEN - + MAX ( ALL 35 ) THEN NULL ELSE - CAST ( NULL AS REAL ) * - - 42 * - + NULLIF ( + 40, + COALESCE ( - + NULLIF ( - 39, - - 79 + + + CAST ( - ( + 88 ) AS INTEGER ) + COUNT ( * ) ), + 28 - - 0 ) - + + 43 ) END AS col2, + 10 + - - MIN ( ALL - 57 ) + CASE + + 94 WHEN 14 - - 27 THEN - COUNT ( * ) WHEN + 58 THEN NULL ELSE 89 + - 54 END col0
----
NULL
-12

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

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

query I rowsort
SELECT - 51 + - + 23 AS col0
----
-74

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2494
SELECT 75 + 90 * COUNT( * )
----
165

skipif mysql # not compatible
query I rowsort label-2494
SELECT 75 + 90 * COUNT ( * )
----
165

query I rowsort
SELECT ALL COALESCE ( ( - 3 ), + 99, + 95 + - - 10 - - + 89 * - ( + 68 ) * 91 - + 36 + - 8 ) * + 67 col2
----
-201

onlyif mysql # DIV for integer division: 
query I rowsort label-2496
SELECT ALL COALESCE ( + 96, 17 * 6 DIV - 39 - 78 ) - ( + - 42 ) * 2 AS col2
----
180

skipif mysql # not compatible
query I rowsort label-2496
SELECT ALL COALESCE ( + 96, 17 * 6 / - 39 - 78 ) - ( + - 42 ) * 2 AS col2
----
180

query I rowsort
SELECT ( + + 49 ) * - 98 * + COALESCE ( + 94, + 12, + + ( - 20 ) ) AS col2
----
-451388

query II rowsort
SELECT 81 + + - 26, 24 AS col2
----
55
24

query I rowsort
SELECT 16 + 27 - - + 19 AS col2
----
62

onlyif mysql # aggregate syntax: 
query II rowsort label-2500
SELECT 26 + + 58 AS col1, COUNT( * ) * - ( - - COALESCE ( + 79, - - NULLIF ( - + COUNT( * ), - 54 ), 57 ) ) col1
----
84
-79

skipif mysql # not compatible
query II rowsort label-2500
SELECT 26 + + 58 AS col1, COUNT ( * ) * - ( - - COALESCE ( + 79, - - NULLIF ( - + COUNT ( * ), - 54 ), 57 ) ) col1
----
84
-79

query I rowsort
SELECT 32 * 6 * - ( - + 77 ) AS col2
----
14784

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2502
SELECT ( + 73 ) - - 86 + 81 * + - SUM( - CAST( 8 AS SIGNED ) )
----
807

skipif mysql # not compatible
query I rowsort label-2502
SELECT ( + 73 ) - - 86 + 81 * + - SUM ( - CAST ( 8 AS INTEGER ) )
----
807

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2503
SELECT CAST( NULL AS SIGNED ) + + 47 - + 50
----
NULL

skipif mysql # not compatible
query I rowsort label-2503
SELECT CAST ( NULL AS INTEGER ) + + 47 - + 50
----
NULL

query I rowsort
SELECT ALL 89 col1
----
89

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2505
SELECT CAST( NULL AS SIGNED ) * + + MAX( - - 21 ) AS col1
----
NULL

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2506
SELECT ALL AVG ( + 51 ) + - + CAST( NULL AS SIGNED ) * - 10 * + COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2506
SELECT ALL AVG ( + 51 ) + - + CAST ( NULL AS INTEGER ) * - 10 * + COUNT ( * ) AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2507
SELECT COUNT( * ) DIV 55 - - - ( + 59 ) AS col0
----
-59

skipif mysql # not compatible
query I rowsort label-2507
SELECT COUNT ( * ) / 55 - - - ( + 59 ) AS col0
----
-59

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

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

query II rowsort
SELECT ALL 64 + 70 AS col1, 16 + + 85
----
134
101

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2510
SELECT - 25 DIV + - 86 * - - 15 * + COALESCE ( MAX( DISTINCT 57 ), - + 37 - + ( - + 53 ) ) + - 80 AS col0
----
-80

skipif mysql # not compatible
query I rowsort label-2510
SELECT - 25 / + - 86 * - - 15 * + COALESCE ( MAX ( DISTINCT 57 ), - + 37 - + ( - + 53 ) ) + - 80 AS col0
----
-80

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

skipif mysql # not compatible
query I rowsort label-2511
SELECT - 62 * - CAST ( NULL AS INTEGER ) + - - 56
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2512
SELECT 66 DIV + ( 91 )
----
0

skipif mysql # not compatible
query I rowsort label-2512
SELECT 66 / + ( 91 )
----
0

query I rowsort
SELECT 37 + - 25 + - + 52
----
-40

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2514
SELECT ALL + + 73 + - COUNT( * ) AS col2, ( 60 ) + - MAX( ALL + 16 ) + + - 14 * + 86 * + 57 * - CASE + CASE - 42 WHEN 7 * + 77 THEN ( - - 52 ) ELSE - - MIN( + 38 ) * - 14 * + 37 END WHEN + 22 * - CASE + COUNT( * ) WHEN - - 8 THEN - 32 * 31 - + CAST( + 45 AS SIGNED ) + - - SUM( + + 17 ) + + + CAST( NULL AS SIGNED ) * 57 / - 97 WHEN 37 - + COUNT( * ) THEN - 87 END - 26 THEN NULL ELSE 90 + 3 END * ( - 34 ) col1
----
72
-217001692

skipif mysql # not compatible
query II rowsort label-2514
SELECT ALL + + 73 + - COUNT ( * ) AS col2, ( 60 ) + - MAX ( ALL + 16 ) + + - 14 * + 86 * + 57 * - CASE + CASE - 42 WHEN 7 * + 77 THEN ( - - 52 ) ELSE - - MIN ( + 38 ) * - 14 * + 37 END WHEN + 22 * - CASE + COUNT ( * ) WHEN - - 8 THEN - 32 * 31 - + CAST ( + 45 AS INTEGER ) + - - SUM ( + + 17 ) + + + CAST ( NULL AS INTEGER ) * 57 / - 97 WHEN 37 - + COUNT ( * ) THEN - 87 END - 26 THEN NULL ELSE 90 + 3 END * ( - 34 ) col1
----
72
-217001692

query I rowsort
SELECT ( 22 ) + - 84
----
-62

query I rowsort
SELECT 94 * + + 4 + + 1
----
377

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2517
SELECT ALL - - CASE 3 WHEN + - CAST( NULL AS SIGNED ) THEN + - CAST( NULL AS SIGNED ) WHEN - + 0 - - - 7 * + 78 * SUM( - + 74 ) THEN 69 END + - - ( + 69 ) * 73 * - ( - 15 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2517
SELECT ALL - - CASE 3 WHEN + - CAST ( NULL AS INTEGER ) THEN + - CAST ( NULL AS INTEGER ) WHEN - + 0 - - - 7 * + 78 * SUM ( - + 74 ) THEN 69 END + - - ( + 69 ) * 73 * - ( - 15 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2518
SELECT 79 * COUNT( * ) + 92 AS col0
----
171

skipif mysql # not compatible
query I rowsort label-2518
SELECT 79 * COUNT ( * ) + 92 AS col0
----
171

query I rowsort
SELECT + - 49 * + 47 + + - 37
----
-2340

onlyif mysql # aggregate syntax: 
query I rowsort label-2520
SELECT ALL + 13 + + - 70 / - - CASE 25 WHEN 85 THEN - 93 * 8 + - - COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-2520
SELECT ALL + 13 + + - 70 / - - CASE 25 WHEN 85 THEN - 93 * 8 + - - COUNT ( * ) END
----
NULL

query I rowsort
SELECT + 65 * + 42 + + + 83 AS col2
----
2813

query I rowsort
SELECT ALL - - NULLIF ( - 27, 73 )
----
-27

query I rowsort
SELECT ALL - - 25
----
25

query I rowsort
SELECT + 18 col2
----
18

query I rowsort
SELECT ALL NULLIF ( + 35, - 5 )
----
35

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2527
SELECT ALL - - 89 - - 59 * - SUM( DISTINCT - + 64 ) AS col1
----
3865

skipif mysql # not compatible
query I rowsort label-2527
SELECT ALL - - 89 - - 59 * - SUM ( DISTINCT - + 64 ) AS col1
----
3865

query I rowsort
SELECT ALL - - 14 * + + 26 * - 93 * - 96 AS col2
----
3249792

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2529
SELECT + 71 DIV 41 * + MIN( DISTINCT 86 ) + + 72
----
158

skipif mysql # not compatible
query I rowsort label-2529
SELECT + 71 / 41 * + MIN ( DISTINCT 86 ) + + 72
----
158

query I rowsort
SELECT - 11 * 55
----
-605

query I rowsort
SELECT - 65 AS col0
----
-65

query I rowsort
SELECT ALL CASE - 12 WHEN 56 + - 57 THEN + + ( ( + ( 10 ) ) ) ELSE 93 END
----
93

onlyif mysql # DIV for integer division: 
query II rowsort label-2533
SELECT ALL 21 AS col1, + CASE 42 WHEN + - 16 - - 52 + - 88 THEN NULL ELSE + 79 + - 66 * + + 1 DIV + 72 * + + 19 * + + 21 + - 11 + 5 END AS col2
----
21
73

skipif mysql # not compatible
query II rowsort label-2533
SELECT ALL 21 AS col1, + CASE 42 WHEN + - 16 - - 52 + - 88 THEN NULL ELSE + 79 + - 66 * + + 1 / + 72 * + + 19 * + + 21 + - 11 + 5 END AS col2
----
21
73

onlyif mysql # DIV for integer division: 
query I rowsort label-2534
SELECT - 18 DIV - 17
----
1

skipif mysql # not compatible
query I rowsort label-2534
SELECT - 18 / - 17
----
1

query I rowsort
SELECT + 24 * + + 39 AS col0
----
936

onlyif mysql # aggregate syntax: 
query I rowsort label-2536
SELECT + 12 + + - 50 + + COALESCE ( - 7, COUNT( * ) )
----
-45

skipif mysql # not compatible
query I rowsort label-2536
SELECT + 12 + + - 50 + + COALESCE ( - 7, COUNT ( * ) )
----
-45

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

skipif mysql # not compatible
query I rowsort label-2537
SELECT ALL - COUNT ( 48 ) / - MAX ( + 16 ) * + 71
----
0

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2539
SELECT ALL CAST( 4 AS SIGNED ) * 29, - 81 AS col1
----
116
-81

skipif mysql # not compatible
query II rowsort label-2539
SELECT ALL CAST ( 4 AS INTEGER ) * 29, - 81 AS col1
----
116
-81

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

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

query II rowsort
SELECT ( - + ( 69 ) ), 43 AS col0
----
-69
43

onlyif mysql # DIV for integer division: 
query I rowsort label-2542
SELECT 86 DIV - 16 + - 64 * + 19 AS col1
----
-1221

skipif mysql # not compatible
query I rowsort label-2542
SELECT 86 / - 16 + - 64 * + 19 AS col1
----
-1221

onlyif mysql # aggregate syntax: 
query II rowsort label-2543
SELECT ALL + 95 AS col1, 34 + - COUNT( - ( 18 ) ) AS col1
----
95
33

skipif mysql # not compatible
query II rowsort label-2543
SELECT ALL + 95 AS col1, 34 + - COUNT ( - ( 18 ) ) AS col1
----
95
33

onlyif mysql # aggregate syntax: 
query I rowsort label-2544
SELECT + MAX( - 99 ) AS col1
----
-99

skipif mysql # not compatible
query I rowsort label-2544
SELECT + MAX ( - 99 ) AS col1
----
-99

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

skipif mysql # not compatible
query I rowsort label-2545
SELECT + COUNT ( * ) + - - 67 AS col0
----
68

query I rowsort
SELECT ALL 83 * + - 28 + + 36
----
-2288

query I rowsort
SELECT + NULLIF ( - + 82, + + 12 )
----
-82

onlyif mysql # DIV for integer division: 
query I rowsort label-2548
SELECT DISTINCT + COALESCE ( + + 81, 37 - - ( - + 27 ) DIV - + 72, + 78 )
----
81

skipif mysql # not compatible
query I rowsort label-2548
SELECT DISTINCT + COALESCE ( + + 81, 37 - - ( - + 27 ) / - + 72, + 78 )
----
81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2549
SELECT ALL - 59 * + COUNT( * ) - - + CAST( NULL AS SIGNED ) * + - 31 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2549
SELECT ALL - 59 * + COUNT ( * ) - - + CAST ( NULL AS INTEGER ) * + - 31 col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2550
SELECT - MIN( DISTINCT + 81 ) AS col0
----
-81

skipif mysql # not compatible
query I rowsort label-2550
SELECT - MIN ( DISTINCT + 81 ) AS col0
----
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-2551
SELECT + - ( - NULLIF ( + 1, + AVG ( DISTINCT - 99 ) ) ) * 50 + - COUNT( DISTINCT - 61 )
----
49

skipif mysql # not compatible
query I rowsort label-2551
SELECT + - ( - NULLIF ( + 1, + AVG ( DISTINCT - 99 ) ) ) * 50 + - COUNT ( DISTINCT - 61 )
----
49

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2552
SELECT - 62 * - - ( + 34 ) AS col1, CAST( NULL AS SIGNED ) * + + 41
----
-2108
NULL

skipif mysql # not compatible
query II rowsort label-2552
SELECT - 62 * - - ( + 34 ) AS col1, CAST ( NULL AS INTEGER ) * + + 41
----
-2108
NULL

query I rowsort
SELECT DISTINCT - 60 * + ( + 4 ) * + 6 + - 94
----
-1534

onlyif mysql # aggregate syntax: 
query I rowsort label-2554
SELECT ALL + MAX( 87 ) AS col0
----
87

skipif mysql # not compatible
query I rowsort label-2554
SELECT ALL + MAX ( 87 ) AS col0
----
87

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

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

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

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

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2561
SELECT + CAST( + 18 AS SIGNED ) + 17 * 67
----
1157

skipif mysql # not compatible
query I rowsort label-2561
SELECT + CAST ( + 18 AS INTEGER ) + 17 * 67
----
1157

query I rowsort
SELECT - + 80 - - + 39 * - - 68 AS col0
----
2572

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2564
SELECT - - 69 * + - COALESCE ( + 45, - + 48, 61 + - ( + 53 ) ) + + 9 DIV 21 + 59
----
-3046

skipif mysql # not compatible
query I rowsort label-2564
SELECT - - 69 * + - COALESCE ( + 45, - + 48, 61 + - ( + 53 ) ) + + 9 / 21 + 59
----
-3046

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2565
SELECT - MAX( CAST( + - 16 AS SIGNED ) )
----
16

skipif mysql # not compatible
query I rowsort label-2565
SELECT - MAX ( CAST ( + - 16 AS INTEGER ) )
----
16

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2566
SELECT ALL + 16 + + - ( + 28 ) + - + COUNT( * ) + - + 52 - - COALESCE ( + 73, - 67 - + - ( + + CAST( + 43 AS SIGNED ) ) - + 88 ) * + - 61 * - CAST( - AVG ( DISTINCT 98 ) AS SIGNED ) AS col2
----
-436459

skipif mysql # not compatible
query I rowsort label-2566
SELECT ALL + 16 + + - ( + 28 ) + - + COUNT ( * ) + - + 52 - - COALESCE ( + 73, - 67 - + - ( + + CAST ( + 43 AS INTEGER ) ) - + 88 ) * + - 61 * - CAST ( - AVG ( DISTINCT 98 ) AS INTEGER ) AS col2
----
-436459

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2567
SELECT - 95 + - CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-2567
SELECT - 95 + - CAST ( NULL AS REAL )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2568
SELECT - 71 + + 87 + + + 14 * MIN( - + 15 )
----
-194

skipif mysql # not compatible
query I rowsort label-2568
SELECT - 71 + + 87 + + + 14 * MIN ( - + 15 )
----
-194

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

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2570
SELECT ALL + NULLIF ( COUNT( * ), + + 27 * - + CASE + 2 WHEN - 32 * - 28 THEN 85 + - 94 + - CAST( NULL AS DECIMAL ) - - - 39 + - - 36 END ) + + 2 * - - COUNT( * ) + - + 2 col0
----
1

skipif mysql # not compatible
query I rowsort label-2570
SELECT ALL + NULLIF ( COUNT ( * ), + + 27 * - + CASE + 2 WHEN - 32 * - 28 THEN 85 + - 94 + - CAST ( NULL AS REAL ) - - - 39 + - - 36 END ) + + 2 * - - COUNT ( * ) + - + 2 col0
----
1

query I rowsort
SELECT DISTINCT 83 AS col2
----
83

query I rowsort
SELECT ALL 76 + - - 46
----
122

query I rowsort
SELECT DISTINCT - ( - ( + - 30 ) ) * 25 * 11 AS col2
----
-8250

query II rowsort
SELECT 51 AS col0, + 22 + 39 * + 46
----
51
1816

onlyif mysql # aggregate syntax: 
query I rowsort label-2575
SELECT DISTINCT + CASE + COUNT( * ) WHEN - - ( + 7 ) THEN + 96 WHEN + SUM( DISTINCT 78 ) / + 55 - + + ( 69 ) + + 53 THEN NULL WHEN 36 THEN - + ( + 57 ) END + 61 - - 50
----
NULL

skipif mysql # not compatible
query I rowsort label-2575
SELECT DISTINCT + CASE + COUNT ( * ) WHEN - - ( + 7 ) THEN + 96 WHEN + SUM ( DISTINCT 78 ) / + 55 - + + ( 69 ) + + 53 THEN NULL WHEN 36 THEN - + ( + 57 ) END + 61 - - 50
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2576
SELECT ALL CAST( NULL AS SIGNED ), 87 * + 57 - COUNT( * ) AS col2
----
NULL
4958

skipif mysql # not compatible
query II rowsort label-2576
SELECT ALL CAST ( NULL AS INTEGER ), 87 * + 57 - COUNT ( * ) AS col2
----
NULL
4958

onlyif mysql # DIV for integer division: 
query I rowsort label-2577
SELECT + 35 DIV + + 6 AS col1
----
5

skipif mysql # not compatible
query I rowsort label-2577
SELECT + 35 / + + 6 AS col1
----
5

query I rowsort
SELECT + ( 48 ) + 68 * + 35 AS col2
----
2428

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

query I rowsort
SELECT ALL 17 + - 63 + - 81 col0
----
-127

query I rowsort
SELECT - 23 - + + 53 AS col0
----
-76

query I rowsort
SELECT DISTINCT - 81 + - 14
----
-95

query I rowsort
SELECT - 99 + + 58
----
-41

onlyif mysql # DIV for integer division: 
query I rowsort label-2584
SELECT DISTINCT + 9 DIV + 57 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-2584
SELECT DISTINCT + 9 / + 57 AS col1
----
0

query I rowsort
SELECT + 1 * - + 83 AS col1
----
-83

query I rowsort
SELECT DISTINCT + 55 * - 99 AS col0
----
-5445

query I rowsort
SELECT + + 86 - - + 23 * + 51
----
1259

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

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

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

query I rowsort
SELECT + 93 * 89 + + 32 AS col0
----
8309

query I rowsort
SELECT ALL + - 20
----
-20

query II rowsort
SELECT ALL + - 64 AS col1, + 3 * + 11 * + + 84 AS col0
----
-64
2772

query I rowsort
SELECT + 4 + - 13
----
-9

query I rowsort
SELECT ALL + NULLIF ( + - COALESCE ( - + ( - 21 ), + 22, + 75, + 34 - 63 ), 70 )
----
-21

query I rowsort
SELECT ALL - - 87 AS col0
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-2596
SELECT COUNT( * ) * 91 * 26
----
2366

skipif mysql # not compatible
query I rowsort label-2596
SELECT COUNT ( * ) * 91 * 26
----
2366

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

query I rowsort
SELECT 60 * - 50 + + 94 AS col0
----
-2906

query I rowsort
SELECT + 53 + + NULLIF ( 71, 52 + - 8 + - + 4 )
----
124

query II rowsort
SELECT 27, - 47 col2
----
27
-47

query I rowsort
SELECT ALL + ( - 39 ) + + - 99 * 81 AS col1
----
-8058

query I rowsort
SELECT DISTINCT 60 + 9 + + 16 col1
----
85

query I rowsort
SELECT DISTINCT + 12 + 44 AS col1
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-2604
SELECT DISTINCT + COUNT( * ) + - 44
----
-43

skipif mysql # not compatible
query I rowsort label-2604
SELECT DISTINCT + COUNT ( * ) + - 44
----
-43

onlyif mysql # DIV for integer division: 
query I rowsort label-2605
SELECT 25 DIV + ( - 83 ) * 98 - 70
----
-70

skipif mysql # not compatible
query I rowsort label-2605
SELECT 25 / + ( - 83 ) * 98 - 70
----
-70

query I rowsort
SELECT 47 + + - 77 * - 3
----
278

query I rowsort
SELECT DISTINCT 37 AS col1
----
37

onlyif mysql # aggregate syntax: 
query II rowsort label-2608
SELECT ALL + MAX( DISTINCT - COALESCE ( - 98, + ( 81 ) + + - 65 ) ) + + - 56 AS col0, SUM( + 63 ) AS col1
----
42
63

skipif mysql # not compatible
query II rowsort label-2608
SELECT ALL + MAX ( DISTINCT - COALESCE ( - 98, + ( 81 ) + + - 65 ) ) + + - 56 AS col0, SUM ( + 63 ) AS col1
----
42
63

onlyif mysql # aggregate syntax: 
query I rowsort label-2609
SELECT 37 + - COUNT( * )
----
36

skipif mysql # not compatible
query I rowsort label-2609
SELECT 37 + - COUNT ( * )
----
36

query I rowsort
SELECT 41 - + 37 AS col1
----
4

query I rowsort
SELECT ALL 97 col0
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-2612
SELECT 47 + + COUNT( * ) AS col2
----
48

skipif mysql # not compatible
query I rowsort label-2612
SELECT 47 + + COUNT ( * ) AS col2
----
48

query I rowsort
SELECT 50 * + + 41
----
2050

onlyif mysql # aggregate syntax: 
query I rowsort label-2614
SELECT ALL + 95 * - + 41 * + COUNT( * )
----
-3895

skipif mysql # not compatible
query I rowsort label-2614
SELECT ALL + 95 * - + 41 * + COUNT ( * )
----
-3895

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2615
SELECT ALL + CAST( NULL AS SIGNED ) * - 26 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2615
SELECT ALL + CAST ( NULL AS INTEGER ) * - 26 AS col2
----
NULL

query I rowsort
SELECT 75 * - ( - + 0 ) AS col2
----
0

query I rowsort
SELECT ALL + ( + 56 ) * - + NULLIF ( - + 25, ( 79 ) )
----
1400

query I rowsort
SELECT 77 + - + 30
----
47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2619
SELECT ALL MAX( DISTINCT + 40 ) AS col1, CAST( NULL AS SIGNED ) + - - COUNT( - 39 )
----
40
NULL

skipif mysql # not compatible
query II rowsort label-2619
SELECT ALL MAX ( DISTINCT + 40 ) AS col1, CAST ( NULL AS INTEGER ) + - - COUNT ( - 39 )
----
40
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2620
SELECT 26 * + + COUNT( * ) + - 83 * - CASE - 50 WHEN - + COUNT( * ) THEN NULL WHEN 92 * + 88 THEN + + ( + + 25 ) ELSE NULL END + 63
----
NULL

skipif mysql # not compatible
query I rowsort label-2620
SELECT 26 * + + COUNT ( * ) + - 83 * - CASE - 50 WHEN - + COUNT ( * ) THEN NULL WHEN 92 * + 88 THEN + + ( + + 25 ) ELSE NULL END + 63
----
NULL

query I rowsort
SELECT ALL - - 5 AS col1
----
5

query I rowsort
SELECT + 87 col0
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-2623
SELECT ALL - - CASE 66 WHEN + 77 * - COUNT( * ) THEN - 98 WHEN - 73 + + NULLIF ( + - 33, 14 ) THEN NULL WHEN + - 13 THEN NULL ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2623
SELECT ALL - - CASE 66 WHEN + 77 * - COUNT ( * ) THEN - 98 WHEN - 73 + + NULLIF ( + - 33, 14 ) THEN NULL WHEN + - 13 THEN NULL ELSE NULL END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2624
SELECT ALL 34 + + COUNT( * )
----
35

skipif mysql # not compatible
query I rowsort label-2624
SELECT ALL 34 + + COUNT ( * )
----
35

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2625
SELECT 78 * - + ( 3 ) + COUNT( * ) DIV + + 42 - 84
----
-318

skipif mysql # not compatible
query I rowsort label-2625
SELECT 78 * - + ( 3 ) + COUNT ( * ) / + + 42 - 84
----
-318

query II rowsort
SELECT ALL - 87 AS col0, - 28
----
-87
-28

onlyif mysql # aggregate syntax: 
query II rowsort label-2627
SELECT DISTINCT ( + 90 ) + + + 96, ( - COUNT( * ) ) AS col0
----
186
-1

skipif mysql # not compatible
query II rowsort label-2627
SELECT DISTINCT ( + 90 ) + + + 96, ( - COUNT ( * ) ) AS col0
----
186
-1

query I rowsort
SELECT DISTINCT 77 + + 52 AS col2
----
129

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2629
SELECT - AVG ( DISTINCT - 67 ) * - 89 * - CAST( - 84 AS SIGNED ) + NULLIF ( - CAST( NULL AS SIGNED ), + - 96 ) / - 14 * - COUNT( * ) * + + 45 AS col2, 9 * - + COUNT( * )
----
NULL
-9

skipif mysql # not compatible
query II rowsort label-2629
SELECT - AVG ( DISTINCT - 67 ) * - 89 * - CAST ( - 84 AS INTEGER ) + NULLIF ( - CAST ( NULL AS INTEGER ), + - 96 ) / - 14 * - COUNT ( * ) * + + 45 AS col2, 9 * - + COUNT ( * )
----
NULL
-9

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

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

query I rowsort
SELECT 15 + + 66 AS col1
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-2632
SELECT 51 - + NULLIF ( 80, - 90 / ( + COUNT( * ) ) - 88 ) + + + 89 AS col0
----
60

skipif mysql # not compatible
query I rowsort label-2632
SELECT 51 - + NULLIF ( 80, - 90 / ( + COUNT ( * ) ) - 88 ) + + + 89 AS col0
----
60

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

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

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

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

query I rowsort
SELECT ALL 76 - - - ( - ( - - 95 ) )
----
171

onlyif mysql # aggregate syntax: 
query I rowsort label-2636
SELECT COUNT( * ) + - - 32 * ( - - 24 ) * 39 * - MIN( ALL + + 6 ) AS col1
----
-179711

skipif mysql # not compatible
query I rowsort label-2636
SELECT COUNT ( * ) + - - 32 * ( - - 24 ) * 39 * - MIN ( ALL + + 6 ) AS col1
----
-179711

onlyif mysql # DIV for integer division: 
query I rowsort label-2637
SELECT 40 DIV + 43 * 9
----
0

skipif mysql # not compatible
query I rowsort label-2637
SELECT 40 / + 43 * 9
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2638
SELECT 76 DIV + 12
----
6

skipif mysql # not compatible
query I rowsort label-2638
SELECT 76 / + 12
----
6

query I rowsort
SELECT 46 * 11 AS col0
----
506

onlyif mysql # aggregate syntax: 
query II rowsort label-2640
SELECT 14, - 61 * + COUNT( DISTINCT - + 77 ) * 59 col1
----
14
-3599

skipif mysql # not compatible
query II rowsort label-2640
SELECT 14, - 61 * + COUNT ( DISTINCT - + 77 ) * 59 col1
----
14
-3599

query I rowsort
SELECT 85 + - 58 AS col1
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-2642
SELECT ALL CASE + 32 WHEN - - 5 + - 91 + ( ( + 36 ) ) THEN + CASE 60 WHEN + 15 THEN NULL WHEN - + 90 + + 91 * 24 * NULLIF ( - - COUNT( * ), 90 * + 75 * + 64 ) * - + 92 * - 21 THEN + 25 * - + NULLIF ( + 90, SUM( DISTINCT - 94 ) + - 28 * - 24 ) * + 14 + - COUNT( * ) * 61 WHEN - - 38 + + 37 - + 84 THEN + 57 - 34 END * + 17 + + - COUNT( * ) + - 15 WHEN 99 + + 9 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-2642
SELECT ALL CASE + 32 WHEN - - 5 + - 91 + ( ( + 36 ) ) THEN + CASE 60 WHEN + 15 THEN NULL WHEN - + 90 + + 91 * 24 * NULLIF ( - - COUNT ( * ), 90 * + 75 * + 64 ) * - + 92 * - 21 THEN + 25 * - + NULLIF ( + 90, SUM ( DISTINCT - 94 ) + - 28 * - 24 ) * + 14 + - COUNT ( * ) * 61 WHEN - - 38 + + 37 - + 84 THEN + 57 - 34 END * + 17 + + - COUNT ( * ) + - 15 WHEN 99 + + 9 THEN NULL END
----
NULL

query II rowsort
SELECT + 92 AS col1, - 12 AS col0
----
92
-12

query II rowsort
SELECT - - 41 AS col2, 75 AS col1
----
41
75

onlyif mysql # aggregate syntax: 
query I rowsort label-2645
SELECT ALL + - 47 * + COUNT( * ) * + + 7 AS col2
----
-329

skipif mysql # not compatible
query I rowsort label-2645
SELECT ALL + - 47 * + COUNT ( * ) * + + 7 AS col2
----
-329

query I rowsort
SELECT ( + 95 ) + + + 7
----
102

query II rowsort
SELECT + + 18 AS col0, - 46
----
18
-46

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2649
SELECT + NULLIF ( + 27, - 41 ) + + COUNT( DISTINCT + 45 )
----
28

skipif mysql # not compatible
query I rowsort label-2649
SELECT + NULLIF ( + 27, - 41 ) + + COUNT ( DISTINCT + 45 )
----
28

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2650
SELECT - - 31 DIV - 54 + 61 + - CAST( - 39 AS SIGNED ) - - ( - 74 ) AS col2
----
26

skipif mysql # not compatible
query I rowsort label-2650
SELECT - - 31 / - 54 + 61 + - CAST ( - 39 AS INTEGER ) - - ( - 74 ) AS col2
----
26

query I rowsort
SELECT ALL + 54 col1
----
54

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2652
SELECT - 22 - - + CAST( NULL AS SIGNED ) * 29 / - 88 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2652
SELECT - 22 - - + CAST ( NULL AS INTEGER ) * 29 / - 88 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2653
SELECT + MAX( DISTINCT + 21 )
----
21

skipif mysql # not compatible
query I rowsort label-2653
SELECT + MAX ( DISTINCT + 21 )
----
21

onlyif mysql # DIV for integer division: 
query I rowsort label-2654
SELECT - 66 DIV + - 13 AS col2
----
5

skipif mysql # not compatible
query I rowsort label-2654
SELECT - 66 / + - 13 AS col2
----
5

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

skipif mysql # not compatible
query I rowsort label-2655
SELECT + + COUNT ( * ) / 39 + + - 75
----
-75

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

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

query I rowsort
SELECT - + 7 + - - 48 + - 34 * + + 76 AS col1
----
-2543

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2659
SELECT ALL + COUNT( * ) * 66 DIV + 6 + - 18 * + 73 * - - 6 * - 18
----
141923

skipif mysql # not compatible
query I rowsort label-2659
SELECT ALL + COUNT ( * ) * 66 / + 6 + - 18 * + 73 * - - 6 * - 18
----
141923

query I rowsort
SELECT 32 * + - 4 + + + 0 col0
----
-128

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2661
SELECT ALL + - 2 * CAST( 21 AS SIGNED ) + - 3
----
-45

skipif mysql # not compatible
query I rowsort label-2661
SELECT ALL + - 2 * CAST ( 21 AS INTEGER ) + - 3
----
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-2662
SELECT - 84 * - + COUNT( * ) + 60 * - NULLIF ( + - 99, 95 + COUNT( * ) )
----
6024

skipif mysql # not compatible
query I rowsort label-2662
SELECT - 84 * - + COUNT ( * ) + 60 * - NULLIF ( + - 99, 95 + COUNT ( * ) )
----
6024

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2663
SELECT ALL + 6 * + 21 * + 16 + + 43 + + CAST( - - COUNT( * ) AS SIGNED ) * + COALESCE ( 66, 42 ) * - 96 col1
----
-4277

skipif mysql # not compatible
query I rowsort label-2663
SELECT ALL + 6 * + 21 * + 16 + + 43 + + CAST ( - - COUNT ( * ) AS INTEGER ) * + COALESCE ( 66, 42 ) * - 96 col1
----
-4277

onlyif mysql # aggregate syntax: 
query I rowsort label-2664
SELECT 30 * - COUNT( * ) + + 9 AS col0
----
-21

skipif mysql # not compatible
query I rowsort label-2664
SELECT 30 * - COUNT ( * ) + + 9 AS col0
----
-21

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2666
SELECT DISTINCT CAST( - + 93 AS SIGNED ) * - 91
----
8463

skipif mysql # not compatible
query I rowsort label-2666
SELECT DISTINCT CAST ( - + 93 AS INTEGER ) * - 91
----
8463

onlyif mysql # aggregate syntax: 
query I rowsort label-2667
SELECT - SUM( ALL + 35 ) * + 95 AS col1
----
-3325

skipif mysql # not compatible
query I rowsort label-2667
SELECT - SUM ( ALL + 35 ) * + 95 AS col1
----
-3325

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

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

query I rowsort
SELECT DISTINCT + 22 * - 38 AS col2
----
-836

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2670
SELECT MIN( DISTINCT - CAST( NULL AS DECIMAL ) )
----
NULL

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

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

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

query I rowsort
SELECT + 16 * NULLIF ( + + ( + 88 ), + AVG ( DISTINCT - 65 ) ) AS col0
----
1408

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2674
SELECT + + 54 - COUNT( * ) + 19
----
72

skipif mysql # not compatible
query I rowsort label-2674
SELECT + + 54 - COUNT ( * ) + 19
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-2675
SELECT + 56 + + SUM( 12 ) + + 10 * ( COUNT( * ) )
----
78

skipif mysql # not compatible
query I rowsort label-2675
SELECT + 56 + + SUM ( 12 ) + + 10 * ( COUNT ( * ) )
----
78

onlyif mysql # aggregate syntax: DIV for integer division: 
query III rowsort label-2676
SELECT ALL COUNT( * ) * 27 AS col2, 94 + - CASE WHEN NOT 19 >= + 68 * - + 78 THEN + 37 ELSE + + 47 * 59 * COUNT( * ) - + 51 + 47 END DIV 71 * + ( + - 70 ) col0, - COUNT( * ) AS col1
----
27
2824
-1

skipif mysql # not compatible
query III rowsort label-2676
SELECT ALL COUNT ( * ) * 27 AS col2, 94 + - CASE WHEN NOT 19 >= + 68 * - + 78 THEN + 37 ELSE + + 47 * 59 * COUNT ( * ) - + 51 + 47 END / 71 * + ( + - 70 ) col0, - COUNT ( * ) AS col1
----
27
2824
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2677
SELECT ALL - CASE 67 WHEN + 23 THEN NULL WHEN - 29 * 75 + 95 THEN - - CASE - - 11 WHEN - 14 THEN + 11 ELSE 68 * + - AVG ( 29 ) * + 3 END + + COUNT( 58 ) + - COUNT( * ) - + NULLIF ( COUNT( 98 ), ( - CASE - + MIN( ALL - 78 ) WHEN - 56 THEN NULL ELSE NULLIF ( - 84, - COUNT( * ) - - - 9 + NULLIF ( - + 55, - 11 ) + COALESCE ( - - 77, + + 32, - 22 * - 35 + 96 / + COALESCE ( 25, 3 / 23 ) ) * 70 / COUNT( * ) ) END ) ) + COALESCE ( ( 48 ), CAST( - 67 AS SIGNED ) ) * + 97 END
----
NULL

skipif mysql # not compatible
query I rowsort label-2677
SELECT ALL - CASE 67 WHEN + 23 THEN NULL WHEN - 29 * 75 + 95 THEN - - CASE - - 11 WHEN - 14 THEN + 11 ELSE 68 * + - AVG ( 29 ) * + 3 END + + COUNT ( 58 ) + - COUNT ( * ) - + NULLIF ( COUNT ( 98 ), ( - CASE - + MIN ( ALL - 78 ) WHEN - 56 THEN NULL ELSE NULLIF ( - 84, - COUNT ( * ) - - - 9 + NULLIF ( - + 55, - 11 ) + COALESCE ( - - 77, + + 32, - 22 * - 35 + 96 / + COALESCE ( 25, 3 / 23 ) ) * 70 / COUNT ( * ) ) END ) ) + COALESCE ( ( 48 ), CAST ( - 67 AS INTEGER ) ) * + 97 END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2678
SELECT DISTINCT - + 57 + - COUNT( * ) + + 8 * - 46 col1, + 61 * + 79 + + CASE 36 WHEN 1 THEN NULL WHEN 97 THEN - - 26 END AS col1
----
-426
NULL

skipif mysql # not compatible
query II rowsort label-2678
SELECT DISTINCT - + 57 + - COUNT ( * ) + + 8 * - 46 col1, + 61 * + 79 + + CASE 36 WHEN 1 THEN NULL WHEN 97 THEN - - 26 END AS col1
----
-426
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2679
SELECT ALL COUNT( - 97 ) + + - 55
----
-54

skipif mysql # not compatible
query I rowsort label-2679
SELECT ALL COUNT ( - 97 ) + + - 55
----
-54

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

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

query I rowsort
SELECT + + ( - 90 ) + + 93 - 27
----
-24

query I rowsort
SELECT + - 2 * 30
----
-60

query I rowsort
SELECT - + 22 + + 25
----
3

query I rowsort
SELECT DISTINCT + - 98
----
-98

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2685
SELECT DISTINCT MAX( DISTINCT 21 ) DIV - + COALESCE ( - + COUNT( * ), - CASE + + 90 WHEN 42 THEN + + 81 * - 43 WHEN 19 * 65 THEN - 14 + + - NULLIF ( + - 37, + - SUM( ALL - 35 ) ) WHEN + - 11 THEN NULL END ) + 9 AS col2
----
30

skipif mysql # not compatible
query I rowsort label-2685
SELECT DISTINCT MAX ( DISTINCT 21 ) / - + COALESCE ( - + COUNT ( * ), - CASE + + 90 WHEN 42 THEN + + 81 * - 43 WHEN 19 * 65 THEN - 14 + + - NULLIF ( + - 37, + - SUM ( ALL - 35 ) ) WHEN + - 11 THEN NULL END ) + 9 AS col2
----
30

query I rowsort
SELECT DISTINCT + + 3 * + 27 AS col1
----
81

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2688
SELECT DISTINCT - 55 DIV + - 83 + CASE COUNT( * ) WHEN + 66 THEN - + 66 ELSE 90 END + - 35
----
55

skipif mysql # not compatible
query I rowsort label-2688
SELECT DISTINCT - 55 / + - 83 + CASE COUNT ( * ) WHEN + 66 THEN - + 66 ELSE 90 END + - 35
----
55

query I rowsort
SELECT DISTINCT + 94 col1
----
94

query I rowsort
SELECT DISTINCT + + 34
----
34

query II rowsort
SELECT - + 70 * + 20 AS col2, + 56 AS col0
----
-1400
56

onlyif mysql # DIV for integer division: 
query I rowsort label-2692
SELECT + 13 + - - 57 + + 46 DIV + 90 + - 20 + + 4 * 48 AS col0
----
242

skipif mysql # not compatible
query I rowsort label-2692
SELECT + 13 + - - 57 + + 46 / + 90 + - 20 + + 4 * 48 AS col0
----
242

onlyif mysql # DIV for integer division: 
query I rowsort label-2693
SELECT - 18 DIV 6
----
-3

skipif mysql # not compatible
query I rowsort label-2693
SELECT - 18 / 6
----
-3

query I rowsort
SELECT - 30 * + 66
----
-1980

query I rowsort
SELECT ( - 63 )
----
-63

query I rowsort
SELECT DISTINCT + ( - 47 ) col1
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-2697
SELECT DISTINCT + MAX( ALL - 35 ) AS col0
----
-35

skipif mysql # not compatible
query I rowsort label-2697
SELECT DISTINCT + MAX ( ALL - 35 ) AS col0
----
-35

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2699
SELECT ALL + CAST( NULL AS SIGNED ) AS col1, 75
----
NULL
75

skipif mysql # not compatible
query II rowsort label-2699
SELECT ALL + CAST ( NULL AS INTEGER ) AS col1, 75
----
NULL
75

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2700
SELECT - 35 * CAST( 35 AS SIGNED ), - 36 AS col0
----
-1225
-36

skipif mysql # not compatible
query II rowsort label-2700
SELECT - 35 * CAST ( 35 AS INTEGER ), - 36 AS col0
----
-1225
-36

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2701
SELECT ALL 47 * + 74 * + - AVG ( ALL + CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-2701
SELECT ALL 47 * + 74 * + - AVG ( ALL + CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2702
SELECT - 52 DIV + 83 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-2702
SELECT - 52 / + 83 AS col2
----
0

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2704
SELECT - 44 * - 34 * - 65 + + NULLIF ( - COUNT( DISTINCT 12 ), - COUNT( DISTINCT 50 ) + - 1 + - - 15 / - - 98 * - 76 )
----
-97241

skipif mysql # not compatible
query I rowsort label-2704
SELECT - 44 * - 34 * - 65 + + NULLIF ( - COUNT ( DISTINCT 12 ), - COUNT ( DISTINCT 50 ) + - 1 + - - 15 / - - 98 * - 76 )
----
-97241

query I rowsort
SELECT - ( - - 38 ) - + 10
----
-48

query I rowsort
SELECT DISTINCT + 91 * 57 AS col1
----
5187

onlyif mysql # DIV for integer division: 
query I rowsort label-2707
SELECT - 16 DIV ( + 26 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2707
SELECT - 16 / ( + 26 ) AS col0
----
0

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

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

query I rowsort
SELECT + 81 - - 78 + + 41 AS col2
----
200

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2710
SELECT DISTINCT + ( + 19 ) + + - 31 + + ( + 23 ) * + 73 + + COALESCE ( + 79, - CAST( NULL AS SIGNED ) )
----
1746

skipif mysql # not compatible
query I rowsort label-2710
SELECT DISTINCT + ( + 19 ) + + - 31 + + ( + 23 ) * + 73 + + COALESCE ( + 79, - CAST ( NULL AS INTEGER ) )
----
1746

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

query I rowsort
SELECT ALL - 3 * - 56 * - 23 AS col2
----
-3864

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2713
SELECT DISTINCT 33 AS col0, + 87 - - 86 * - + 66 / + + CAST( NULL AS SIGNED ) * + CASE + COUNT( * ) WHEN 89 + + - COUNT( 46 ) * + + 88 * + 44 + - CAST( NULL AS SIGNED ) + - 89 * - ( + - ( - ( - 79 ) ) ) THEN 93 END * 46 + + 68 + - 46 * - 89
----
33
NULL

skipif mysql # not compatible
query II rowsort label-2713
SELECT DISTINCT 33 AS col0, + 87 - - 86 * - + 66 / + + CAST ( NULL AS INTEGER ) * + CASE + COUNT ( * ) WHEN 89 + + - COUNT ( 46 ) * + + 88 * + 44 + - CAST ( NULL AS INTEGER ) + - 89 * - ( + - ( - ( - 79 ) ) ) THEN 93 END * 46 + + 68 + - 46 * - 89
----
33
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-2714
SELECT 49 AS col0, SUM( CAST( NULL AS DECIMAL ) ) / 92 * + + COUNT( * ) * 54 + + AVG ( - 75 ) * - 51 AS col0
----
49
NULL

skipif mysql # not compatible
query II rowsort label-2714
SELECT 49 AS col0, SUM ( CAST ( NULL AS REAL ) ) / 92 * + + COUNT ( * ) * 54 + + AVG ( - 75 ) * - 51 AS col0
----
49
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2715
SELECT + 7 + + CAST( + + ( - + 93 ) AS SIGNED ) - - COUNT( * ) col1
----
-85

skipif mysql # not compatible
query I rowsort label-2715
SELECT + 7 + + CAST ( + + ( - + 93 ) AS INTEGER ) - - COUNT ( * ) col1
----
-85

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2716
SELECT 4 * + NULLIF ( CAST( NULL AS SIGNED ), - COUNT( * ) + - 12 * - 50 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2716
SELECT 4 * + NULLIF ( CAST ( NULL AS INTEGER ), - COUNT ( * ) + - 12 * - 50 ) AS col1
----
NULL

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

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-2718
SELECT - COUNT( * ) AS col2, - 42 * + 13 + + - CAST( NULL AS DECIMAL ) AS col2
----
-1
NULL

skipif mysql # not compatible
query II rowsort label-2718
SELECT - COUNT ( * ) AS col2, - 42 * + 13 + + - CAST ( NULL AS REAL ) AS col2
----
-1
NULL

query I rowsort
SELECT 11 - + + 53 + - - 56 AS col2
----
14

query I rowsort
SELECT ( - 76 )
----
-76

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

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

query I rowsort
SELECT ALL - 60 + + 93 + - + ( + + 13 ) AS col0
----
20

query I rowsort
SELECT ALL + 79 + - 48 * + 41 col1
----
-1889

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2724
SELECT DISTINCT + CAST( - - 32 AS SIGNED ) AS col1
----
32

skipif mysql # not compatible
query I rowsort label-2724
SELECT DISTINCT + CAST ( - - 32 AS INTEGER ) AS col1
----
32

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2726
SELECT 48, - 99 + + CASE + - 69 WHEN 5 / + COALESCE ( - 35, COUNT( * ) * - - COUNT( * ) + + 23 * - 52 ) + - 17 THEN NULL WHEN 41 THEN - - 90 + + MIN( - 46 ) WHEN - 93 - - 16 + - ( - 20 ) + NULLIF ( - 60, + COUNT( * ) + - CAST( - - 26 AS SIGNED ) - - + 72 ) * 14 * + 78 * + 34 + - 24 + - COUNT( * ) THEN 21 END AS col1
----
48
NULL

skipif mysql # not compatible
query II rowsort label-2726
SELECT 48, - 99 + + CASE + - 69 WHEN 5 / + COALESCE ( - 35, COUNT ( * ) * - - COUNT ( * ) + + 23 * - 52 ) + - 17 THEN NULL WHEN 41 THEN - - 90 + + MIN ( - 46 ) WHEN - 93 - - 16 + - ( - 20 ) + NULLIF ( - 60, + COUNT ( * ) + - CAST ( - - 26 AS INTEGER ) - - + 72 ) * 14 * + 78 * + 34 + - 24 + - COUNT ( * ) THEN 21 END AS col1
----
48
NULL

query I rowsort
SELECT NULLIF ( + 56, 26 ) * - - 72 col1
----
4032

onlyif mysql # aggregate syntax: 
query I rowsort label-2728
SELECT - 12 * COUNT( * ) + - 41
----
-53

skipif mysql # not compatible
query I rowsort label-2728
SELECT - 12 * COUNT ( * ) + - 41
----
-53

query I rowsort
SELECT 73 + + ( - - 54 )
----
127

query I rowsort
SELECT ALL - 77 * 88 AS col2
----
-6776

onlyif mysql # aggregate syntax: 
query I rowsort label-2731
SELECT COUNT( * ) * 55 + 64 AS col0
----
119

skipif mysql # not compatible
query I rowsort label-2731
SELECT COUNT ( * ) * 55 + 64 AS col0
----
119

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

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

query I rowsort
SELECT 57 * - + ( - 31 )
----
1767

query II rowsort
SELECT DISTINCT - 92 col1, 23 AS col0
----
-92
23

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2736
SELECT + 82 AS col2, + COUNT( * ) * - + 65
----
82
-65

skipif mysql # not compatible
query II rowsort label-2736
SELECT + 82 AS col2, + COUNT ( * ) * - + 65
----
82
-65

query I rowsort
SELECT ALL 17 * + 29 * + 32
----
15776

query II rowsort
SELECT DISTINCT - COALESCE ( + 60, + - 23, 43 ) AS col2, 48 * 60 AS col2
----
-60
2880

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2740
SELECT 85 + + - MIN( - 26 ) + 79 AS col2
----
190

skipif mysql # not compatible
query I rowsort label-2740
SELECT 85 + + - MIN ( - 26 ) + 79 AS col2
----
190

query I rowsort
SELECT ALL - NULLIF ( - - 30, - 80 + - + 11 )
----
-30

query I rowsort
SELECT ALL + 33 + - 7 * - - 21
----
-114

query I rowsort
SELECT ALL - 78 + - 54
----
-132

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

query II rowsort
SELECT 81 + - - 90 AS col0, + 48 AS col0
----
171
48

query I rowsort
SELECT 85 * - 45 * 47 AS col0
----
-179775

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

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

query II rowsort
SELECT 24 col2, 72 col2
----
24
72

onlyif mysql # aggregate syntax: 
query I rowsort label-2749
SELECT ALL - 52 + + + NULLIF ( 28, 13 ) * + + 34 * - NULLIF ( + 29, - 0 * - COUNT( * ) ) + 4 col0
----
-27656

skipif mysql # not compatible
query I rowsort label-2749
SELECT ALL - 52 + + + NULLIF ( 28, 13 ) * + + 34 * - NULLIF ( + 29, - 0 * - COUNT ( * ) ) + 4 col0
----
-27656

query I rowsort
SELECT 57 * - + ( + 13 ) col0
----
-741

onlyif mysql # aggregate syntax: 
query I rowsort label-2751
SELECT + ( + COUNT( * ) ) - + + 58 col2
----
-57

skipif mysql # not compatible
query I rowsort label-2751
SELECT + ( + COUNT ( * ) ) - + + 58 col2
----
-57

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2752
SELECT CAST( NULL AS SIGNED ) * - NULLIF ( + 16, 16 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2752
SELECT CAST ( NULL AS INTEGER ) * - NULLIF ( + 16, 16 ) AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2753
SELECT 47 + - + 53 + + - 37 + - 1 + - 52 * + 51 * + 24 + - + 41 DIV + 44 * 28 * + 72 * + - 47 AS col2, + COUNT( * )
----
-63692
1

skipif mysql # not compatible
query II rowsort label-2753
SELECT 47 + - + 53 + + - 37 + - 1 + - 52 * + 51 * + 24 + - + 41 / + 44 * 28 * + 72 * + - 47 AS col2, + COUNT ( * )
----
-63692
1

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2755
SELECT DISTINCT + - 98 * 94 * - COUNT( * ) * 5 DIV + COUNT( * ) + - ( + + 36 ) AS col0
----
46024

skipif mysql # not compatible
query I rowsort label-2755
SELECT DISTINCT + - 98 * 94 * - COUNT ( * ) * 5 / + COUNT ( * ) + - ( + + 36 ) AS col0
----
46024

onlyif mysql # aggregate syntax: 
query I rowsort label-2756
SELECT 95 * - CASE + + 45 WHEN + - MIN( DISTINCT - + 77 ) * + + 13 * COALESCE ( + MIN( DISTINCT + 17 ), - - 73 + - 20, NULLIF ( + 45, + + ( 94 ) ) ) + - COALESCE ( ( 25 ), SUM( + 18 ) + - 58 + - 1 ) THEN NULL ELSE - 47 * 79 END
----
352735

skipif mysql # not compatible
query I rowsort label-2756
SELECT 95 * - CASE + + 45 WHEN + - MIN ( DISTINCT - + 77 ) * + + 13 * COALESCE ( + MIN ( DISTINCT + 17 ), - - 73 + - 20, NULLIF ( + 45, + + ( 94 ) ) ) + - COALESCE ( ( 25 ), SUM ( + 18 ) + - 58 + - 1 ) THEN NULL ELSE - 47 * 79 END
----
352735

onlyif mysql # DIV for integer division: 
query I rowsort label-2757
SELECT DISTINCT + + 31 + - + 23 * - + 48 DIV 99 DIV 67
----
31

skipif mysql # not compatible
query I rowsort label-2757
SELECT DISTINCT + + 31 + - + 23 * - + 48 / 99 / 67
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-2758
SELECT ALL - + 69 * MIN( - 6 )
----
414

skipif mysql # not compatible
query I rowsort label-2758
SELECT ALL - + 69 * MIN ( - 6 )
----
414

query I rowsort
SELECT DISTINCT - NULLIF ( - + ( + + 32 ), 81 ) - 25 AS col2
----
7

query III rowsort
SELECT ALL 41 col2, - ( - 33 ) + - 71, - 80 AS col2
----
41
-38
-80

query I rowsort
SELECT ALL CASE - + 48 WHEN - 37 THEN + AVG ( ALL - 96 ) END col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2762
SELECT - 24 AS col1, 86 * + CAST( NULL AS SIGNED ) AS col2
----
-24
NULL

skipif mysql # not compatible
query II rowsort label-2762
SELECT - 24 AS col1, 86 * + CAST ( NULL AS INTEGER ) AS col2
----
-24
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2763
SELECT 95 + + 5 * - - COALESCE ( 76, MIN( DISTINCT + + ( 83 ) ) ) AS col2
----
475

skipif mysql # not compatible
query I rowsort label-2763
SELECT 95 + + 5 * - - COALESCE ( 76, MIN ( DISTINCT + + ( 83 ) ) ) AS col2
----
475

query II rowsort
SELECT 6 AS col2, - 30 AS col0
----
6
-30

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2765
SELECT ALL 78 DIV 86 + - 6 + + CAST( + 81 AS SIGNED ) + - 97 * + 82 AS col0, 46
----
-7879
46

skipif mysql # not compatible
query II rowsort label-2765
SELECT ALL 78 / 86 + - 6 + + CAST ( + 81 AS INTEGER ) + - 97 * + 82 AS col0, 46
----
-7879
46

query I rowsort
SELECT 44 * ( 62 ) * 95
----
259160

query I rowsort
SELECT DISTINCT 36 * - 64 AS col2
----
-2304

onlyif mysql # aggregate syntax: 
query I rowsort label-2768
SELECT ALL + MAX( + 30 ) * + 22 AS col2
----
660

skipif mysql # not compatible
query I rowsort label-2768
SELECT ALL + MAX ( + 30 ) * + 22 AS col2
----
660

onlyif mysql # aggregate syntax: 
query I rowsort label-2769
SELECT DISTINCT ( - - SUM( DISTINCT - + 43 ) ) * + 68 AS col0
----
-2924

skipif mysql # not compatible
query I rowsort label-2769
SELECT DISTINCT ( - - SUM ( DISTINCT - + 43 ) ) * + 68 AS col0
----
-2924

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2771
SELECT - 99 DIV - 49 * + - CAST( COUNT( * ) AS SIGNED ) + - 29 + - 90 DIV - - 45 + - NULLIF ( + 31, - 98 * - 28 ) + - + 13 * - 41 * - 2 * + + COUNT( * ) AS col2, - 8 * - 44 * - + CAST( - + 17 AS SIGNED ) * + - COALESCE ( + 0, + 81 )
----
-1130
0

skipif mysql # not compatible
query II rowsort label-2771
SELECT - 99 / - 49 * + - CAST ( COUNT ( * ) AS INTEGER ) + - 29 + - 90 / - - 45 + - NULLIF ( + 31, - 98 * - 28 ) + - + 13 * - 41 * - 2 * + + COUNT ( * ) AS col2, - 8 * - 44 * - + CAST ( - + 17 AS INTEGER ) * + - COALESCE ( + 0, + 81 )
----
-1130
0

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2773
SELECT NULLIF ( + 37, - 83 ) DIV - - 48 * + 5 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-2773
SELECT NULLIF ( + 37, - 83 ) / - - 48 * + 5 AS col1
----
0

query II rowsort
SELECT 50 + 80 AS col0, - 92 * 79
----
130
-7268

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2776
SELECT DISTINCT 67 * - COALESCE ( 67, 87 ) * - - COALESCE ( - COUNT( * ), - - 8 * 23 * - - 80 ) + + 92 AS col2
----
4581

skipif mysql # not compatible
query I rowsort label-2776
SELECT DISTINCT 67 * - COALESCE ( 67, 87 ) * - - COALESCE ( - COUNT ( * ), - - 8 * 23 * - - 80 ) + + 92 AS col2
----
4581

query I rowsort
SELECT ( + + 42 ) - + 81 AS col0
----
-39

query I rowsort
SELECT ALL 64 + + - 17 col2
----
47

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2779
SELECT COALESCE ( + 69, + + 9 - - 34, + - MIN( 92 ) ) * ( + 7 ) * + ( - + 65 ) - - 50 * + ( + 96 ) / - CASE - 9 WHEN + 93 - - CASE 96 WHEN + - 99 * - CAST( NULL AS DECIMAL ) + - + 0 + - 59 THEN AVG ( + 13 ) * + - COUNT( * ) / - COALESCE ( - 20, 40 ) + - - 58 WHEN - ( + - 9 ) + - 7 * + 78 THEN - + COUNT( * ) ELSE NULL END THEN 97 WHEN + 26 * 52 THEN NULL ELSE NULL END - + + 46 + + 2 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2779
SELECT COALESCE ( + 69, + + 9 - - 34, + - MIN ( 92 ) ) * ( + 7 ) * + ( - + 65 ) - - 50 * + ( + 96 ) / - CASE - 9 WHEN + 93 - - CASE 96 WHEN + - 99 * - CAST ( NULL AS REAL ) + - + 0 + - 59 THEN AVG ( + 13 ) * + - COUNT ( * ) / - COALESCE ( - 20, 40 ) + - - 58 WHEN - ( + - 9 ) + - 7 * + 78 THEN - + COUNT ( * ) ELSE NULL END THEN 97 WHEN + 26 * 52 THEN NULL ELSE NULL END - + + 46 + + 2 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2780
SELECT + 46 + + COUNT( * ) AS col2, - 89
----
47
-89

skipif mysql # not compatible
query II rowsort label-2780
SELECT + 46 + + COUNT ( * ) AS col2, - 89
----
47
-89

query I rowsort
SELECT ALL + 56 col1
----
56

query I rowsort
SELECT + COALESCE ( - 35, 4 * - 48, + 5 )
----
-35

query I rowsort
SELECT - 73 col0
----
-73

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2784
SELECT + CAST( - - COUNT( * ) AS SIGNED ) + - 97 + + - 22
----
-118

skipif mysql # not compatible
query I rowsort label-2784
SELECT + CAST ( - - COUNT ( * ) AS INTEGER ) + - 97 + + - 22
----
-118

query I rowsort
SELECT - 30 * + 54 - + 88 * - - 60 AS col0
----
-6900

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2786
SELECT - MIN( + 14 ) + - + 82 DIV - 78
----
-13

skipif mysql # not compatible
query I rowsort label-2786
SELECT - MIN ( + 14 ) + - + 82 / - 78
----
-13

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2787
SELECT DISTINCT + CAST( + 33 AS SIGNED ) + - MIN( DISTINCT + 4 ) + - + MAX( + 35 ) * + NULLIF ( + 14, CASE + 21 WHEN - - 18 THEN + 47 / + + COUNT( * ) + 13 + - 62 WHEN + 90 THEN NULL WHEN 16 * - 63 / - - 33 - COUNT( * ) THEN NULL ELSE NULL END + + COUNT( * ) ) * + 17
----
-8301

skipif mysql # not compatible
query I rowsort label-2787
SELECT DISTINCT + CAST ( + 33 AS INTEGER ) + - MIN ( DISTINCT + 4 ) + - + MAX ( + 35 ) * + NULLIF ( + 14, CASE + 21 WHEN - - 18 THEN + 47 / + + COUNT ( * ) + 13 + - 62 WHEN + 90 THEN NULL WHEN 16 * - 63 / - - 33 - COUNT ( * ) THEN NULL ELSE NULL END + + COUNT ( * ) ) * + 17
----
-8301

onlyif mysql # aggregate syntax: 
query I rowsort label-2788
SELECT ALL + MIN( + + 96 ) - - + MAX( DISTINCT + 26 )
----
122

skipif mysql # not compatible
query I rowsort label-2788
SELECT ALL + MIN ( + + 96 ) - - + MAX ( DISTINCT + 26 )
----
122

query I rowsort
SELECT - - NULLIF ( 79, - ( - + 71 ) )
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-2790
SELECT DISTINCT + COALESCE ( 96, + 89 ) * 32 + + - SUM( - 85 )
----
3157

skipif mysql # not compatible
query I rowsort label-2790
SELECT DISTINCT + COALESCE ( 96, + 89 ) * 32 + + - SUM ( - 85 )
----
3157

onlyif mysql # DIV for integer division: 
query I rowsort label-2791
SELECT DISTINCT + 10 DIV + 30
----
0

skipif mysql # not compatible
query I rowsort label-2791
SELECT DISTINCT + 10 / + 30
----
0

query I rowsort
SELECT - 66 * - + 68 * + + 33 col0
----
148104

onlyif mysql # aggregate syntax: 
query I rowsort label-2793
SELECT + 5 + SUM( 17 ) - 85 - + - MIN( - - 20 ) AS col0
----
-43

skipif mysql # not compatible
query I rowsort label-2793
SELECT + 5 + SUM ( 17 ) - 85 - + - MIN ( - - 20 ) AS col0
----
-43

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2794
SELECT DISTINCT + 77 - - - CASE - CAST( NULL AS SIGNED ) WHEN - 11 THEN NULL WHEN - 34 THEN 81 ELSE - 15 + 20 * - ( + CAST( + ( 96 ) AS SIGNED ) ) END AS col0, 35 AS col0
----
2012
35

skipif mysql # not compatible
query II rowsort label-2794
SELECT DISTINCT + 77 - - - CASE - CAST ( NULL AS INTEGER ) WHEN - 11 THEN NULL WHEN - 34 THEN 81 ELSE - 15 + 20 * - ( + CAST ( + ( 96 ) AS INTEGER ) ) END AS col0, 35 AS col0
----
2012
35

query I rowsort
SELECT - 19 + 88 - - 64
----
133

onlyif mysql # aggregate syntax: 
query II rowsort label-2796
SELECT - 32 * 45 AS col2, COUNT( * ) AS col1
----
-1440
1

skipif mysql # not compatible
query II rowsort label-2796
SELECT - 32 * 45 AS col2, COUNT ( * ) AS col1
----
-1440
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2797
SELECT - + 33 * - 52 + 14 * - + 98 + + COALESCE ( 47, + 75, COUNT( * ) DIV + 95 + 73 ) AS col2, 83 + - 17 DIV + 85 * + 87
----
391
83

skipif mysql # not compatible
query II rowsort label-2797
SELECT - + 33 * - 52 + 14 * - + 98 + + COALESCE ( 47, + 75, COUNT ( * ) / + 95 + 73 ) AS col2, 83 + - 17 / + 85 * + 87
----
391
83

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2798
SELECT ALL - CAST( NULL AS SIGNED ) * - 59 * NULLIF ( 85, + 76 + - 60 * + 60 * + COUNT( * ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2798
SELECT ALL - CAST ( NULL AS INTEGER ) * - 59 * NULLIF ( 85, + 76 + - 60 * + 60 * + COUNT ( * ) ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2799
SELECT DISTINCT - 16 * 85 + COUNT( * ) AS col1
----
-1359

skipif mysql # not compatible
query I rowsort label-2799
SELECT DISTINCT - 16 * 85 + COUNT ( * ) AS col1
----
-1359

query I rowsort
SELECT - + NULLIF ( + - 7, + + 47 ) + 52
----
59

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

query I rowsort
SELECT DISTINCT + 95 * - 99 AS col0
----
-9405

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2803
SELECT - COUNT( * ) + + + MAX( - - ( - CAST( NULL AS SIGNED ) ) ) - - + 97 * 98 AS col1, ( + + 16 ) + - 77 * + COUNT( * )
----
NULL
-61

skipif mysql # not compatible
query II rowsort label-2803
SELECT - COUNT ( * ) + + + MAX ( - - ( - CAST ( NULL AS INTEGER ) ) ) - - + 97 * 98 AS col1, ( + + 16 ) + - 77 * + COUNT ( * )
----
NULL
-61

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2804
SELECT ALL - 76 / + 12 * - CAST( NULL AS SIGNED ) + + 81 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2804
SELECT ALL - 76 / + 12 * - CAST ( NULL AS INTEGER ) + + 81 col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2805
SELECT + 33 DIV - 83 - 42 AS col2
----
-42

skipif mysql # not compatible
query I rowsort label-2805
SELECT + 33 / - 83 - 42 AS col2
----
-42

query I rowsort
SELECT ( - 35 )
----
-35

query I rowsort
SELECT 77 * - 95 + ( + 93 )
----
-7222

query I rowsort
SELECT + 29 + - 36 AS col0
----
-7

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

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

query I rowsort
SELECT + 45 * - 88 + + + ( - ( - 3 ) ) * + 47
----
-3819

onlyif mysql # DIV for integer division: 
query I rowsort label-2811
SELECT ( - 32 ) DIV 46 + - ( 99 ) AS col1
----
-99

skipif mysql # not compatible
query I rowsort label-2811
SELECT ( - 32 ) / 46 + - ( 99 ) AS col1
----
-99

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

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

query I rowsort
SELECT - 34 * - + 72
----
2448

query I rowsort
SELECT + 40 * 76 AS col2
----
3040

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2815
SELECT COALESCE ( - COUNT( ALL - 79 ), MIN( 7 ) * + ( + - COUNT( * ) ) + + 99 - + 39 + - 72 + - 2 + - ( + COALESCE ( + 94, - 22, - CASE + - 92 WHEN - COUNT( * ) THEN - - CASE - - 57 WHEN + - 50 THEN NULL ELSE - CAST( - 63 AS SIGNED ) END * - 23 * COUNT( * ) DIV - 76 * + + 31 * - + CASE - + MIN( + - 14 ) WHEN 30 THEN + 60 * - 87 END + - 28 END * - 4 - + COUNT( * ) + - COUNT( * ) ) ), + 30, COUNT( * ) * - - 41 - - MAX( ALL - 40 ) )
----
-1

skipif mysql # not compatible
query I rowsort label-2815
SELECT COALESCE ( - COUNT ( ALL - 79 ), MIN ( 7 ) * + ( + - COUNT ( * ) ) + + 99 - + 39 + - 72 + - 2 + - ( + COALESCE ( + 94, - 22, - CASE + - 92 WHEN - COUNT ( * ) THEN - - CASE - - 57 WHEN + - 50 THEN NULL ELSE - CAST ( - 63 AS INTEGER ) END * - 23 * COUNT ( * ) / - 76 * + + 31 * - + CASE - + MIN ( + - 14 ) WHEN 30 THEN + 60 * - 87 END + - 28 END * - 4 - + COUNT ( * ) + - COUNT ( * ) ) ), + 30, COUNT ( * ) * - - 41 - - MAX ( ALL - 40 ) )
----
-1

query II rowsort
SELECT + 16 + ( + 51 ), 68 * 61 AS col2
----
67
4148

query I rowsort
SELECT COALESCE ( - 71, ( 67 ) - + 21 ) AS col0
----
-71

query I rowsort
SELECT + + 56 col2
----
56

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2820
SELECT ALL - 33 DIV + + 30
----
-1

skipif mysql # not compatible
query I rowsort label-2820
SELECT ALL - 33 / + + 30
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-2821
SELECT ALL + ( + - 42 ) * - - COUNT( * ) + - 70 - + 90 AS col0
----
-202

skipif mysql # not compatible
query I rowsort label-2821
SELECT ALL + ( + - 42 ) * - - COUNT ( * ) + - 70 - + 90 AS col0
----
-202

query I rowsort
SELECT + - 69 * + 50
----
-3450

onlyif mysql # aggregate syntax: 
query I rowsort label-2823
SELECT ALL + SUM( DISTINCT - 55 ) col1
----
-55

skipif mysql # not compatible
query I rowsort label-2823
SELECT ALL + SUM ( DISTINCT - 55 ) col1
----
-55

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2824
SELECT - - COUNT( * ) * + AVG ( - 9 ) + - - COUNT( * ) + AVG ( + 22 ) * + - 25 * - + NULLIF ( CAST( NULL AS SIGNED ), - 86 * ( - COUNT( * ) ) + + + 62 ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2824
SELECT - - COUNT ( * ) * + AVG ( - 9 ) + - - COUNT ( * ) + AVG ( + 22 ) * + - 25 * - + NULLIF ( CAST ( NULL AS INTEGER ), - 86 * ( - COUNT ( * ) ) + + + 62 ) col2
----
NULL

query II rowsort
SELECT 80 AS col2, 97 * - + 74
----
80
-7178

query I rowsort
SELECT ALL - 66 col2
----
-66

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

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

query I rowsort
SELECT - NULLIF ( - 68, + + 65 )
----
68

query I rowsort
SELECT ALL + - ( + 1 ) * 15 * - 16 * - - 60 + - 3 + - COALESCE ( - 29, + - 29, 57 ) AS col0
----
14426

query I rowsort
SELECT + 81 - - 60
----
141

onlyif mysql # aggregate syntax: 
query II rowsort label-2831
SELECT 55, MAX( - 9 ) AS col0
----
55
-9

skipif mysql # not compatible
query II rowsort label-2831
SELECT 55, MAX ( - 9 ) AS col0
----
55
-9

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2833
SELECT - MIN( CASE + 91 WHEN 46 THEN + ( + 10 ) + + + 49 + - 7 + - 17 / - 60 / + 60 ELSE NULL END ) * + COUNT( * ) * 1 - - 73
----
NULL

skipif mysql # not compatible
query I rowsort label-2833
SELECT - MIN ( CASE + 91 WHEN 46 THEN + ( + 10 ) + + + 49 + - 7 + - 17 / - 60 / + 60 ELSE NULL END ) * + COUNT ( * ) * 1 - - 73
----
NULL

query I rowsort
SELECT ALL ( 66 ) * + - 34 AS col1
----
-2244

query I rowsort
SELECT + + 42 * + 17 AS col1
----
714

onlyif mysql # aggregate syntax: 
query II rowsort label-2836
SELECT - + ( ( + 90 ) ) + + COUNT( * ), + 6 AS col1
----
-89
6

skipif mysql # not compatible
query II rowsort label-2836
SELECT - + ( ( + 90 ) ) + + COUNT ( * ), + 6 AS col1
----
-89
6

query I rowsort
SELECT + 15 col0
----
15

query I rowsort
SELECT - - 62 + - 86 AS col1
----
-24

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

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

query I rowsort
SELECT ALL + 87 * - 7
----
-609

query I rowsort
SELECT + 39 * + - 51 * + 16 - - 89 AS col2
----
-31735

onlyif mysql # aggregate syntax: 
query I rowsort label-2842
SELECT + - COUNT( * ) - - 39 + - COUNT( * ) AS col0
----
37

skipif mysql # not compatible
query I rowsort label-2842
SELECT + - COUNT ( * ) - - 39 + - COUNT ( * ) AS col0
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-2843
SELECT DISTINCT MAX( + - 14 )
----
-14

skipif mysql # not compatible
query I rowsort label-2843
SELECT DISTINCT MAX ( + - 14 )
----
-14

onlyif mysql # DIV for integer division: 
query I rowsort label-2844
SELECT - 36 DIV - ( + 34 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-2844
SELECT - 36 / - ( + 34 ) AS col2
----
1

query I rowsort
SELECT + 48 * 58
----
2784

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2846
SELECT DISTINCT - 36 / + - MIN( DISTINCT CAST( NULL AS SIGNED ) ) AS col0
----
NULL

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

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2849
SELECT - CAST( - 27 AS SIGNED ) * - 32
----
-864

skipif mysql # not compatible
query I rowsort label-2849
SELECT - CAST ( - 27 AS INTEGER ) * - 32
----
-864

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

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

query I rowsort
SELECT 85 * - 31 AS col2
----
-2635

query I rowsort
SELECT ALL + 46 + 50
----
96

query I rowsort
SELECT DISTINCT - 62 AS col2
----
-62

query I rowsort
SELECT 47 * 89 + + 85 AS col0
----
4268

onlyif mysql # aggregate syntax: 
query I rowsort label-2855
SELECT 75 + + - COUNT( * ) + + + ( + CASE + - 59 WHEN 30 + 75 * - + 32 THEN + 1 ELSE + + CASE - - 31 WHEN + + 64 * - 22 * + COUNT( * ) + 62 THEN - - COUNT( * ) WHEN - + 29 THEN NULL WHEN 26 * NULLIF ( - - 1, + - 91 / 54 - NULLIF ( + 58, AVG ( + - 16 ) ) / 79 ) + AVG ( DISTINCT + 92 ) + - 96 + - 59 * - 56 * + - ( - 69 ) THEN - - ( - ( - 16 ) ) - 28 * COUNT( * ) / - ( + + ( ( 27 ) ) ) + + - 15 END / 4 END )
----
NULL

skipif mysql # not compatible
query I rowsort label-2855
SELECT 75 + + - COUNT ( * ) + + + ( + CASE + - 59 WHEN 30 + 75 * - + 32 THEN + 1 ELSE + + CASE - - 31 WHEN + + 64 * - 22 * + COUNT ( * ) + 62 THEN - - COUNT ( * ) WHEN - + 29 THEN NULL WHEN 26 * NULLIF ( - - 1, + - 91 / 54 - NULLIF ( + 58, AVG ( + - 16 ) ) / 79 ) + AVG ( DISTINCT + 92 ) + - 96 + - 59 * - 56 * + - ( - 69 ) THEN - - ( - ( - 16 ) ) - 28 * COUNT ( * ) / - ( + + ( ( 27 ) ) ) + + - 15 END / 4 END )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2856
SELECT NULLIF ( - - COUNT( * ), 25 * + NULLIF ( 14, + 76 ) ) * + 74 AS col0
----
74

skipif mysql # not compatible
query I rowsort label-2856
SELECT NULLIF ( - - COUNT ( * ), 25 * + NULLIF ( 14, + 76 ) ) * + 74 AS col0
----
74

query I rowsort
SELECT 84 + - 32
----
52

query I rowsort
SELECT ALL + 4 * + 89 * 58 * 40 * - + 47 AS col1
----
-38818240

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2859
SELECT - CAST( NULL AS SIGNED ) * - 11 * - 83 - 89 * + COUNT( * ) + 79 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2859
SELECT - CAST ( NULL AS INTEGER ) * - 11 * - 83 - 89 * + COUNT ( * ) + 79 AS col1
----
NULL

query I rowsort
SELECT ALL - 45 AS col2
----
-45

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2862
SELECT - 58 * + 60 + + COUNT( ALL - + 22 )
----
-3479

skipif mysql # not compatible
query I rowsort label-2862
SELECT - 58 * + 60 + + COUNT ( ALL - + 22 )
----
-3479

onlyif mysql # aggregate syntax: 
query I rowsort label-2863
SELECT DISTINCT - COALESCE ( 40, - 27 + - SUM( DISTINCT - 76 ) ) AS col0
----
-40

skipif mysql # not compatible
query I rowsort label-2863
SELECT DISTINCT - COALESCE ( 40, - 27 + - SUM ( DISTINCT - 76 ) ) AS col0
----
-40

query I rowsort
SELECT 24 * NULLIF ( + - 68, - 3 )
----
-1632

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

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2867
SELECT 73 + + 86 DIV - COALESCE ( + COUNT( * ), 36 - - + 11 * 90 DIV - 88 + 47, - - 65 * - - 84 + + 76, + + 90 + - 72 )
----
-13

skipif mysql # not compatible
query I rowsort label-2867
SELECT 73 + + 86 / - COALESCE ( + COUNT ( * ), 36 - - + 11 * 90 / - 88 + 47, - - 65 * - - 84 + + 76, + + 90 + - 72 )
----
-13

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

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

query I rowsort
SELECT - 57 * - - 38
----
-2166

query II rowsort
SELECT + + 34 * - 49 - 39 * 36 AS col0, 60
----
-3070
60

query I rowsort
SELECT - - 93 col1
----
93

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2872
SELECT ALL - 27 / + 19 / COUNT( * ) + COUNT( * ) - - - 51 + + - COUNT( * ) / - CAST( NULL AS DECIMAL ) * 64 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2872
SELECT ALL - 27 / + 19 / COUNT ( * ) + COUNT ( * ) - - - 51 + + - COUNT ( * ) / - CAST ( NULL AS REAL ) * 64 AS col0
----
NULL

query I rowsort
SELECT 42 + - 50 col2
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-2874
SELECT 73 * - SUM( - 90 )
----
6570

skipif mysql # not compatible
query I rowsort label-2874
SELECT 73 * - SUM ( - 90 )
----
6570

query I rowsort
SELECT + 90 + + ( 64 )
----
154

query I rowsort
SELECT ALL 18 + 56 + - 66 + - 39 * - 32
----
1256

query I rowsort
SELECT 40 + + 76
----
116

query I rowsort
SELECT 76 * - NULLIF ( + 49, + - 41 ) * - 36 + + - 13 * + 73 + - 67 + - + 19
----
133029

query I rowsort
SELECT ALL 12 + - ( - 41 ) + - 69 AS col1
----
-16

query II rowsort
SELECT - 20 AS col0, + 22 * 73
----
-20
1606

query II rowsort
SELECT ALL 75, ( 97 ) AS col1
----
75
97

query I rowsort
SELECT DISTINCT 17 + - CASE + 22 WHEN - 2 + 25 THEN NULL WHEN + 53 THEN 71 ELSE - - 67 END AS col0
----
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-2883
SELECT MIN( ALL 66 ) + 97 * + 58 AS col0
----
5692

skipif mysql # not compatible
query I rowsort label-2883
SELECT MIN ( ALL 66 ) + 97 * + 58 AS col0
----
5692

query I rowsort
SELECT 94 + COALESCE ( 32, + 11 ) AS col1
----
126

onlyif mysql # aggregate syntax: 
query I rowsort label-2885
SELECT COUNT( ALL + 78 )
----
1

skipif mysql # not compatible
query I rowsort label-2885
SELECT COUNT ( ALL + 78 )
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-2886
SELECT 4 * - + COUNT( ALL 32 ) * + 56 * - - 57, 99 AS col0
----
-12768
99

skipif mysql # not compatible
query II rowsort label-2886
SELECT 4 * - + COUNT ( ALL 32 ) * + 56 * - - 57, 99 AS col0
----
-12768
99

onlyif mysql # DIV for integer division: 
query I rowsort label-2887
SELECT ALL 5 DIV + 58 * + 68 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-2887
SELECT ALL 5 / + 58 * + 68 AS col1
----
0

query I rowsort
SELECT 10 + - 68 AS col2
----
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-2889
SELECT + COUNT( DISTINCT ( - 79 ) ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-2889
SELECT + COUNT ( DISTINCT ( - 79 ) ) AS col1
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2890
SELECT ALL + NULLIF ( - 45, - ( 97 ) ) - + CASE ( - 78 ) WHEN + - 37 * - 37 + + 76 + - 80 * - + CAST( - 18 AS SIGNED ) + + 46 - + MIN( - 53 ) THEN 97 * - + 31 END + + 54 * - COUNT( * ) AS col2, - COUNT( * ) DIV + 68 AS col0
----
NULL
0

skipif mysql # not compatible
query II rowsort label-2890
SELECT ALL + NULLIF ( - 45, - ( 97 ) ) - + CASE ( - 78 ) WHEN + - 37 * - 37 + + 76 + - 80 * - + CAST ( - 18 AS INTEGER ) + + 46 - + MIN ( - 53 ) THEN 97 * - + 31 END + + 54 * - COUNT ( * ) AS col2, - COUNT ( * ) / + 68 AS col0
----
NULL
0

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2892
SELECT ALL 69 DIV - 47
----
-1

skipif mysql # not compatible
query I rowsort label-2892
SELECT ALL 69 / - 47
----
-1

query I rowsort
SELECT 0 + 82 AS col2
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-2894
SELECT ALL - COUNT( + - 83 ) col0
----
-1

skipif mysql # not compatible
query I rowsort label-2894
SELECT ALL - COUNT ( + - 83 ) col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-2895
SELECT DISTINCT 4 * + + COUNT( * ) col1
----
4

skipif mysql # not compatible
query I rowsort label-2895
SELECT DISTINCT 4 * + + COUNT ( * ) col1
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-2896
SELECT ALL - + COUNT( 16 )
----
-1

skipif mysql # not compatible
query I rowsort label-2896
SELECT ALL - + COUNT ( 16 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-2897
SELECT + + COALESCE ( + 44, COUNT( ALL - - 68 ) )
----
44

skipif mysql # not compatible
query I rowsort label-2897
SELECT + + COALESCE ( + 44, COUNT ( ALL - - 68 ) )
----
44

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

skipif mysql # not compatible
query I rowsort label-2898
SELECT + ( - CAST ( NULL AS INTEGER ) ) + - + 65 + - 23
----
NULL

query I rowsort
SELECT 16 col0
----
16

query I rowsort
SELECT 87 * - - 29 AS col2
----
2523

query I rowsort
SELECT + 46 + + - 84
----
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-2902
SELECT DISTINCT - 98 * + COUNT( * ) col1
----
-98

skipif mysql # not compatible
query I rowsort label-2902
SELECT DISTINCT - 98 * + COUNT ( * ) col1
----
-98

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2904
SELECT - - 86 * ( + + 44 ) DIV - - COUNT( - 26 ) + + - 63 DIV - + 35
----
3785

skipif mysql # not compatible
query I rowsort label-2904
SELECT - - 86 * ( + + 44 ) / - - COUNT ( - 26 ) + + - 63 / - + 35
----
3785

onlyif mysql # aggregate syntax: 
query II rowsort label-2905
SELECT DISTINCT + COUNT( * ) + - ( - + 53 ) AS col2, + 85 + - + 48 + 67 + + - ( + COUNT( - 29 ) )
----
54
103

skipif mysql # not compatible
query II rowsort label-2905
SELECT DISTINCT + COUNT ( * ) + - ( - + 53 ) AS col2, + 85 + - + 48 + 67 + + - ( + COUNT ( - 29 ) )
----
54
103

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

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

query I rowsort
SELECT DISTINCT - 38 * + 45
----
-1710

onlyif mysql # aggregate syntax: 
query I rowsort label-2908
SELECT + ( + + COUNT( * ) ) - - 66 - + 42 * + + 35 + - 5
----
-1408

skipif mysql # not compatible
query I rowsort label-2908
SELECT + ( + + COUNT ( * ) ) - - 66 - + 42 * + + 35 + - 5
----
-1408

query I rowsort
SELECT ALL + + 42 * + 21 AS col0
----
882

query I rowsort
SELECT 64 + + + 43 + - 83 * 15 * + - 53 * 42
----
2771477

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2911
SELECT 85 + CAST( + 55 AS SIGNED )
----
140

skipif mysql # not compatible
query I rowsort label-2911
SELECT 85 + CAST ( + 55 AS INTEGER )
----
140

query I rowsort
SELECT ALL 12 + + - 24 AS col1
----
-12

query I rowsort
SELECT + ( - + 88 ) + + - 86
----
-174

onlyif mysql # aggregate syntax: 
query I rowsort label-2914
SELECT DISTINCT CASE 71 WHEN SUM( ALL - + 10 ) THEN - AVG ( + + 0 ) WHEN + ( + COALESCE ( - - 24, + 58 ) ) / - - COUNT( * ) THEN NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2914
SELECT DISTINCT CASE 71 WHEN SUM ( ALL - + 10 ) THEN - AVG ( + + 0 ) WHEN + ( + COALESCE ( - - 24, + 58 ) ) / - - COUNT ( * ) THEN NULL END AS col2
----
NULL

query I rowsort
SELECT ALL - 46 + + 95 AS col2
----
49

query I rowsort
SELECT ALL CASE 15 WHEN + CASE + ( 45 ) WHEN 64 * + 76 THEN NULL WHEN + 34 THEN NULL ELSE - - 99 END THEN - 11 + + 26 + 25 WHEN + 87 THEN NULL WHEN - 32 THEN 49 WHEN - 92 THEN NULL END - - + 94 * - ( + - 44 ) AS col2
----
NULL

query II rowsort
SELECT DISTINCT 79, 18 AS col1
----
79
18

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

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

query I rowsort
SELECT - CASE + 55 WHEN 12 THEN - 94 WHEN - AVG ( + 26 ) THEN NULL END
----
NULL

query I rowsort
SELECT DISTINCT 64 * 93 * - 38 col0
----
-226176

onlyif mysql # aggregate syntax: 
query I rowsort label-2921
SELECT + COUNT( * ) * 3 * - ( + 93 )
----
-279

skipif mysql # not compatible
query I rowsort label-2921
SELECT + COUNT ( * ) * 3 * - ( + 93 )
----
-279

query I rowsort
SELECT DISTINCT 28 * 82
----
2296

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2923
SELECT DISTINCT + CASE - 82 WHEN CAST( + 31 AS DECIMAL ) THEN - 93 WHEN - 48 / 16 / + - ( 3 ) THEN NULL WHEN + 4 THEN + ( 56 ) * + - 81 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2923
SELECT DISTINCT + CASE - 82 WHEN CAST ( + 31 AS REAL ) THEN - 93 WHEN - 48 / 16 / + - ( 3 ) THEN NULL WHEN + 4 THEN + ( 56 ) * + - 81 END AS col1
----
NULL

query I rowsort
SELECT ALL 63 * + + 4
----
252

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

onlyif mysql # DIV for integer division: 
query II rowsort label-2926
SELECT 6, 68 + + 77 DIV 69 + - - NULLIF ( - 18, NULLIF ( - 77, - 8 ) ) col0
----
6
51

skipif mysql # not compatible
query II rowsort label-2926
SELECT 6, 68 + + 77 / 69 + - - NULLIF ( - 18, NULLIF ( - 77, - 8 ) ) col0
----
6
51

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-2928
SELECT - - 97 * + 48 + - CASE - 41 WHEN 48 THEN + 66 END AS col1, 41 DIV - ( 85 ) AS col1
----
NULL
0

skipif mysql # not compatible
query II rowsort label-2928
SELECT - - 97 * + 48 + - CASE - 41 WHEN 48 THEN + 66 END AS col1, 41 / - ( 85 ) AS col1
----
NULL
0

query II rowsort
SELECT 12 AS col0, 5 AS col0
----
12
5

query II rowsort
SELECT ALL + + 77 AS col0, - 76 * - 58 AS col2
----
77
4408

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2931
SELECT + 32 AS col2, COUNT( * ) - COALESCE ( COUNT( * ), - 9 * + 36, - - 68 * 31 ) DIV - 39 + 34 AS col0
----
32
35

skipif mysql # not compatible
query II rowsort label-2931
SELECT + 32 AS col2, COUNT ( * ) - COALESCE ( COUNT ( * ), - 9 * + 36, - - 68 * 31 ) / - 39 + 34 AS col0
----
32
35

query I rowsort
SELECT + 56 * + 32 AS col1
----
1792

query I rowsort
SELECT - 30 * - 78
----
2340

query I rowsort
SELECT ALL + - 95 * + + 75
----
-7125

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2936
SELECT ALL + 18 * 59 * - SUM( - 90 ) - - CASE - 56 WHEN - 31 + + + CAST( NULL AS SIGNED ) - - MAX( + 66 ) / - + 26 * - - 77 THEN + 38 ELSE NULL END + 37 + ( - COUNT( * ) ) * - 16 + + 16 * - 64 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2936
SELECT ALL + 18 * 59 * - SUM ( - 90 ) - - CASE - 56 WHEN - 31 + + + CAST ( NULL AS INTEGER ) - - MAX ( + 66 ) / - + 26 * - - 77 THEN + 38 ELSE NULL END + 37 + ( - COUNT ( * ) ) * - 16 + + 16 * - 64 AS col1
----
NULL

query I rowsort
SELECT ALL - - 68 * + 53 + + 67 + - + 14
----
3657

query I rowsort
SELECT DISTINCT 71 * + 26 AS col2
----
1846

query II rowsort
SELECT - + 31 + - - 10, - 69 + - NULLIF ( 11, - - 69 / - 42 ) AS col0
----
-21
-80

query I rowsort
SELECT + 58 * + 54 AS col1
----
3132

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2941
SELECT - + 67 * + + ( + 29 ) + - 65 - + 73 * COALESCE ( + 68, COALESCE ( 11, 35 + - - CAST( 9 AS SIGNED ) ) ) DIV 30 AS col0
----
-2173

skipif mysql # not compatible
query I rowsort label-2941
SELECT - + 67 * + + ( + 29 ) + - 65 - + 73 * COALESCE ( + 68, COALESCE ( 11, 35 + - - CAST ( 9 AS INTEGER ) ) ) / 30 AS col0
----
-2173

onlyif mysql # aggregate syntax: 
query II rowsort label-2942
SELECT + 62 AS col2, 16 + COUNT( * )
----
62
17

skipif mysql # not compatible
query II rowsort label-2942
SELECT + 62 AS col2, 16 + COUNT ( * )
----
62
17

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2943
SELECT - COUNT( CAST( NULL AS SIGNED ) ) + + COALESCE ( + COUNT( + 23 ), - NULLIF ( - 2, 23 ) ) DIV - COUNT( * ), 97 DIV - 64
----
-1
-1

skipif mysql # not compatible
query II rowsort label-2943
SELECT - COUNT ( CAST ( NULL AS INTEGER ) ) + + COALESCE ( + COUNT ( + 23 ), - NULLIF ( - 2, 23 ) ) / - COUNT ( * ), 97 / - 64
----
-1
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2944
SELECT ALL 27 * + 4 * - COUNT( * ) * + CAST( - 44 AS SIGNED ) * 75 + - + ( + + 52 ) AS col2
----
356348

skipif mysql # not compatible
query I rowsort label-2944
SELECT ALL 27 * + 4 * - COUNT ( * ) * + CAST ( - 44 AS INTEGER ) * 75 + - + ( + + 52 ) AS col2
----
356348

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2946
SELECT DISTINCT - 78 - + + COUNT( * ) + - + 98 * - CASE - 32 WHEN 71 / - 77 * + COALESCE ( + + ( - + NULLIF ( CAST( NULL AS SIGNED ), - 62 ) ), 44 * + 87 * + 36 / + 75 + 87 - - 99 + - - COUNT( DISTINCT 79 ) ) * - 50 + + 6 + - 85 + - 44 THEN - 16 WHEN - - 55 THEN + 7 + 48 * - 21 END * 56
----
NULL

skipif mysql # not compatible
query I rowsort label-2946
SELECT DISTINCT - 78 - + + COUNT ( * ) + - + 98 * - CASE - 32 WHEN 71 / - 77 * + COALESCE ( + + ( - + NULLIF ( CAST ( NULL AS INTEGER ), - 62 ) ), 44 * + 87 * + 36 / + 75 + 87 - - 99 + - - COUNT ( DISTINCT 79 ) ) * - 50 + + 6 + - 85 + - 44 THEN - 16 WHEN - - 55 THEN + 7 + 48 * - 21 END * 56
----
NULL

query I rowsort
SELECT ALL + 87 * - - 5
----
435

onlyif mysql # aggregate syntax: 
query I rowsort label-2948
SELECT ALL + 14 - 15 - - COUNT( * ) * 32 + + + 61 * - 28 AS col2
----
-1677

skipif mysql # not compatible
query I rowsort label-2948
SELECT ALL + 14 - 15 - - COUNT ( * ) * 32 + + + 61 * - 28 AS col2
----
-1677

onlyif mysql # aggregate syntax: 
query I rowsort label-2949
SELECT ALL NULLIF ( - COUNT( * ), - 5 * + 77 + - 49 + 58 )
----
-1

skipif mysql # not compatible
query I rowsort label-2949
SELECT ALL NULLIF ( - COUNT ( * ), - 5 * + 77 + - 49 + 58 )
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2950
SELECT ALL COALESCE ( CAST( COALESCE ( + - 74, - + 10 ) AS SIGNED ), - 78 * - - 51, + - 99 * - 51 ) * - 54 * + 61
----
243756

skipif mysql # not compatible
query I rowsort label-2950
SELECT ALL COALESCE ( CAST ( COALESCE ( + - 74, - + 10 ) AS INTEGER ), - 78 * - - 51, + - 99 * - 51 ) * - 54 * + 61
----
243756

query I rowsort
SELECT - ( + 11 ) * - 8 * - 59
----
-5192

query I rowsort
SELECT ALL + 87 * 58
----
5046

onlyif mysql # aggregate syntax: 
query I rowsort label-2953
SELECT - COALESCE ( COUNT( * ), - - ( + 88 ) * + 74, + 50 ) + + + 78 * - 96 AS col2
----
-7489

skipif mysql # not compatible
query I rowsort label-2953
SELECT - COALESCE ( COUNT ( * ), - - ( + 88 ) * + 74, + 50 ) + + + 78 * - 96 AS col2
----
-7489

query I rowsort
SELECT - 41 - + + 29 AS col1
----
-70

query I rowsort
SELECT - 11 + + 65
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-2956
SELECT ALL - 15 - - + CASE 58 WHEN - 41 * - + 56 THEN + 39 + 99 * - COUNT( 44 ) * - MIN( ALL 51 ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-2956
SELECT ALL - 15 - - + CASE 58 WHEN - 41 * - + 56 THEN + 39 + 99 * - COUNT ( 44 ) * - MIN ( ALL 51 ) ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2957
SELECT - CASE - 23 WHEN COUNT( * ) / - - 34 THEN - 80 * + 77 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-2957
SELECT - CASE - 23 WHEN COUNT ( * ) / - - 34 THEN - 80 * + 77 ELSE NULL END
----
NULL

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

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

query I rowsort
SELECT DISTINCT 89 AS col0
----
89

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2962
SELECT + 57 + - - COUNT( * ) DIV + + 90 + - ( 4 ) * + 39 + + + 51
----
-48

skipif mysql # not compatible
query I rowsort label-2962
SELECT + 57 + - - COUNT ( * ) / + + 90 + - ( 4 ) * + 39 + + + 51
----
-48

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

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

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

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

query I rowsort
SELECT - CASE 6 WHEN + 67 THEN - 9 WHEN - 31 THEN - - 22 WHEN + 74 THEN NULL WHEN - - 70 THEN NULL ELSE + 98 END
----
-98

query I rowsort
SELECT ALL 16 + 59 + - 8
----
67

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2968
SELECT 95 * + 52 * + + 13 + - 44 + CASE 43 WHEN + 91 / COUNT( * ) + + 60 * - 9 THEN - COUNT( * ) * + COUNT( * ) / + 39 + - CAST( + 39 AS SIGNED ) * - - 70 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-2968
SELECT 95 * + 52 * + + 13 + - 44 + CASE 43 WHEN + 91 / COUNT ( * ) + + 60 * - 9 THEN - COUNT ( * ) * + COUNT ( * ) / + 39 + - CAST ( + 39 AS INTEGER ) * - - 70 ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2969
SELECT DISTINCT 17 / - - 79 + + 56 + 86 * 31 + 25 - + CAST( - COUNT( * ) AS DECIMAL ) / CASE + + 77 WHEN + + 80 / 82 + - 65 THEN MIN( ALL + 83 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-2969
SELECT DISTINCT 17 / - - 79 + + 56 + 86 * 31 + 25 - + CAST ( - COUNT ( * ) AS REAL ) / CASE + + 77 WHEN + + 80 / 82 + - 65 THEN MIN ( ALL + 83 ) END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2970
SELECT ALL - COUNT( * ) DIV - NULLIF ( - + 64, - + 41 + 85 + + 31 ) - - 32 + 15
----
47

skipif mysql # not compatible
query I rowsort label-2970
SELECT ALL - COUNT ( * ) / - NULLIF ( - + 64, - + 41 + 85 + + 31 ) - - 32 + 15
----
47

query I rowsort
SELECT ALL + 68 AS col0
----
68

query I rowsort
SELECT - 30 * + 89 + - - ( 73 )
----
-2597

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2973
SELECT ALL + 88 / + ( + 52 ) + MAX( DISTINCT + 36 ) - - MIN( DISTINCT - - CAST( NULL AS SIGNED ) ) + + SUM( ALL + + 70 ) * - COUNT( * ) * - 53 + 56 / - + 46 * NULLIF ( + 1, - - 52 ) + 20 - 51 * - 29 / + + 61
----
NULL

skipif mysql # not compatible
query I rowsort label-2973
SELECT ALL + 88 / + ( + 52 ) + MAX ( DISTINCT + 36 ) - - MIN ( DISTINCT - - CAST ( NULL AS INTEGER ) ) + + SUM ( ALL + + 70 ) * - COUNT ( * ) * - 53 + 56 / - + 46 * NULLIF ( + 1, - - 52 ) + 20 - 51 * - 29 / + + 61
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2974
SELECT + 96 * + SUM( + + 9 ) + - 93
----
771

skipif mysql # not compatible
query I rowsort label-2974
SELECT + 96 * + SUM ( + + 9 ) + - 93
----
771

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2976
SELECT ALL + 27 DIV + 1
----
27

skipif mysql # not compatible
query I rowsort label-2976
SELECT ALL + 27 / + 1
----
27

onlyif mysql # aggregate syntax: 
query II rowsort label-2977
SELECT NULLIF ( - SUM( ALL + 48 ), 0 ) * - - MIN( DISTINCT - - 23 ) * - 73 * 54 + 56 * - 17 + + 17 col2, + 32 + + SUM( - 58 ) * - 91 * - + 65 AS col2
----
4351033
-343038

skipif mysql # not compatible
query II rowsort label-2977
SELECT NULLIF ( - SUM ( ALL + 48 ), 0 ) * - - MIN ( DISTINCT - - 23 ) * - 73 * 54 + 56 * - 17 + + 17 col2, + 32 + + SUM ( - 58 ) * - 91 * - + 65 AS col2
----
4351033
-343038

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2978
SELECT DISTINCT 95 * + - 5 DIV - COUNT( * )
----
475

skipif mysql # not compatible
query I rowsort label-2978
SELECT DISTINCT 95 * + - 5 / - COUNT ( * )
----
475

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2979
SELECT ALL 53 * ( CAST( - COUNT( * ) AS SIGNED ) ) col2
----
-53

skipif mysql # not compatible
query I rowsort label-2979
SELECT ALL 53 * ( CAST ( - COUNT ( * ) AS INTEGER ) ) col2
----
-53

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

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

query II rowsort
SELECT 4 * 72 * 11, + 24 * - 50 AS col1
----
3168
-1200

query II rowsort
SELECT 99, 11 AS col1
----
99
11

query I rowsort
SELECT 94 * - 4
----
-376

query II rowsort
SELECT DISTINCT 86, + 75 col1
----
86
75

query I rowsort
SELECT 19 * 11 AS col2
----
209

query II rowsort
SELECT - 47 AS col0, 19 * - 78 col2
----
-47
-1482

query I rowsort
SELECT ALL - 93 + - + 74
----
-167

onlyif mysql # DIV for integer division: 
query II rowsort label-2988
SELECT - 3, - 29 DIV 67 * - - 72 * 67 + - 41 AS col2
----
-3
-41

skipif mysql # not compatible
query II rowsort label-2988
SELECT - 3, - 29 / 67 * - - 72 * 67 + - 41 AS col2
----
-3
-41

query I rowsort
SELECT 9 * + 54 col1
----
486

query I rowsort
SELECT 45 * 35 * + 81 * - + 34 AS col2
----
-4337550

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2991
SELECT ALL - - COALESCE ( 64, 2 DIV 54 * + COUNT( * ) + CAST( + ( - 74 ) AS SIGNED ) ) + + ( 19 ) + - SUM( + 13 ) * + COUNT( DISTINCT - 92 )
----
70

skipif mysql # not compatible
query I rowsort label-2991
SELECT ALL - - COALESCE ( 64, 2 / 54 * + COUNT ( * ) + CAST ( + ( - 74 ) AS INTEGER ) ) + + ( 19 ) + - SUM ( + 13 ) * + COUNT ( DISTINCT - 92 )
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-2992
SELECT ALL + MIN( NULLIF ( - - 94, + - 80 ) ) AS col0
----
94

skipif mysql # not compatible
query I rowsort label-2992
SELECT ALL + MIN ( NULLIF ( - - 94, + - 80 ) ) AS col0
----
94

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2993
SELECT + CAST( COUNT( ALL - 44 ) AS SIGNED )
----
1

skipif mysql # not compatible
query I rowsort label-2993
SELECT + CAST ( COUNT ( ALL - 44 ) AS INTEGER )
----
1

query I rowsort
SELECT 24 - 77 AS col0
----
-53

query I rowsort
SELECT ALL + 44 + 54 col1
----
98

query I rowsort
SELECT ALL - + 26 AS col1
----
-26

query I rowsort
SELECT - 65 * - 42
----
2730

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

skipif mysql # not compatible
query I rowsort label-2998
SELECT DISTINCT - MIN ( - 62 )
----
62

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

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

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

skipif mysql # not compatible
query I rowsort label-3000
SELECT ALL + COUNT ( * ) + - 83 AS col0
----
-82

onlyif mysql # DIV for integer division: 
query I rowsort label-3001
SELECT - - 59 DIV - 40 + + 89 col0
----
88

skipif mysql # not compatible
query I rowsort label-3001
SELECT - - 59 / - 40 + + 89 col0
----
88

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

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

query I rowsort
SELECT NULLIF ( 53, + 40 ) + - 43 * 79
----
-3344

query II rowsort
SELECT - 24 AS col0, 78 AS col0
----
-24
78

onlyif mysql # aggregate syntax: 
query I rowsort label-3005
SELECT + + COUNT( * ) * - 57 * - - 52 + - + 63
----
-3027

skipif mysql # not compatible
query I rowsort label-3005
SELECT + + COUNT ( * ) * - 57 * - - 52 + - + 63
----
-3027

onlyif mysql # aggregate syntax: 
query I rowsort label-3006
SELECT - 68 * SUM( DISTINCT 6 ) col1
----
-408

skipif mysql # not compatible
query I rowsort label-3006
SELECT - 68 * SUM ( DISTINCT 6 ) col1
----
-408

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

skipif mysql # not compatible
query I rowsort label-3007
SELECT ALL 7 * - COUNT ( * ) * - COUNT ( + - 35 ) AS col2
----
7

query II rowsort
SELECT ALL - 21, NULLIF ( - - 69, 65 ) + + + 84 AS col2
----
-21
153

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3009
SELECT - CAST( 13 AS SIGNED ) * + 47 + - 42 + + - 31
----
-684

skipif mysql # not compatible
query I rowsort label-3009
SELECT - CAST ( 13 AS INTEGER ) * + 47 + - 42 + + - 31
----
-684

query I rowsort
SELECT ALL - 33 AS col2
----
-33

onlyif mysql # DIV for integer division: 
query I rowsort label-3011
SELECT 4 DIV 72
----
0

skipif mysql # not compatible
query I rowsort label-3011
SELECT 4 / 72
----
0

query I rowsort
SELECT 75 * - 25 col2
----
-1875

query I rowsort
SELECT - 70 * + 46 * 51 + - 51
----
-164271

query I rowsort
SELECT ALL - 49 col2
----
-49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3015
SELECT DISTINCT 41 DIV - NULLIF ( - COUNT( * ), - CAST( - COUNT( * ) AS SIGNED ) )
----
41

skipif mysql # not compatible
query I rowsort label-3015
SELECT DISTINCT 41 / - NULLIF ( - COUNT ( * ), - CAST ( - COUNT ( * ) AS INTEGER ) )
----
41

onlyif mysql # DIV for integer division: 
query I rowsort label-3016
SELECT 94 DIV + + 93 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-3016
SELECT 94 / + + 93 AS col1
----
1

query I rowsort
SELECT ALL 76 * 5
----
380

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3018
SELECT 0 - + NULLIF ( - - 22, + MAX( ALL + 72 ) DIV 67 ) DIV + COALESCE ( - ( - 53 ), COALESCE ( - + COUNT( * ), - - 87 * 17, + + 54 ) ) col2
----
0

skipif mysql # not compatible
query I rowsort label-3018
SELECT 0 - + NULLIF ( - - 22, + MAX ( ALL + 72 ) / 67 ) / + COALESCE ( - ( - 53 ), COALESCE ( - + COUNT ( * ), - - 87 * 17, + + 54 ) ) col2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3019
SELECT DISTINCT 88 DIV + 63 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-3019
SELECT DISTINCT 88 / + 63 AS col1
----
1

query I rowsort
SELECT DISTINCT 87 col2
----
87

query I rowsort
SELECT 29 * 49 AS col1
----
1421

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3022
SELECT CAST( NULL AS SIGNED ) + + 47 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3022
SELECT CAST ( NULL AS INTEGER ) + + 47 col2
----
NULL

query I rowsort
SELECT 35 - + + 36
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3024
SELECT COUNT( * ) + - NULLIF ( + 19, - - 65 ) * - MAX( 40 ) * + 36 + - 82
----
27279

skipif mysql # not compatible
query I rowsort label-3024
SELECT COUNT ( * ) + - NULLIF ( + 19, - - 65 ) * - MAX ( 40 ) * + 36 + - 82
----
27279

query I rowsort
SELECT DISTINCT + 80 + 91
----
171

onlyif mysql # aggregate syntax: 
query I rowsort label-3026
SELECT ALL + ( + + 28 ) + + COUNT( * ) col2
----
29

skipif mysql # not compatible
query I rowsort label-3026
SELECT ALL + ( + + 28 ) + + COUNT ( * ) col2
----
29

query I rowsort
SELECT 39 + - - 74
----
113

query I rowsort
SELECT ALL - 62 + + + 53 * - 73 + + 36 * + - 18 * 33
----
-25315

query I rowsort
SELECT DISTINCT + 46 + 14 AS col2
----
60

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3030
SELECT ALL - + CAST( - 33 AS DECIMAL ) * - CASE - 45 WHEN - + 71 * 99 + + 54 / + 67 * - - 75 THEN 97 WHEN - 35 THEN + 32 ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3030
SELECT ALL - + CAST ( - 33 AS REAL ) * - CASE - 45 WHEN - + 71 * 99 + + 54 / + 67 * - - 75 THEN 97 WHEN - 35 THEN + 32 ELSE NULL END AS col1
----
NULL

query II rowsort
SELECT - 63 + 87, + 38 AS col1
----
24
38

query I rowsort
SELECT DISTINCT - + 34 + 47 col1
----
13

onlyif mysql # DIV for integer division: 
query I rowsort label-3033
SELECT + ( - ( + ( - 17 ) ) ) DIV + 36 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3033
SELECT + ( - ( + ( - 17 ) ) ) / + 36 AS col0
----
0

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3035
SELECT + MIN( + ( 39 ) ) AS col1
----
39

skipif mysql # not compatible
query I rowsort label-3035
SELECT + MIN ( + ( 39 ) ) AS col1
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-3036
SELECT DISTINCT - 97 * + - COALESCE ( - 43, - + COUNT( * ) ) - + 67
----
-4238

skipif mysql # not compatible
query I rowsort label-3036
SELECT DISTINCT - 97 * + - COALESCE ( - 43, - + COUNT ( * ) ) - + 67
----
-4238

query I rowsort
SELECT - 65 * - 76 col2
----
4940

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3038
SELECT ALL + CASE - 55 WHEN + CAST( NULL AS SIGNED ) - 32 * - COUNT( * ) THEN - 8 WHEN + NULLIF ( + ( + + 83 ), - + 60 * 30 * - 42 ) THEN NULL ELSE NULL END AS col0, - COUNT( * ) * - - 60 * 78 * - COALESCE ( - - 82, + - 36 + - COUNT( * ), + + 59 + + COALESCE ( - 82, + 22 DIV 78 ) )
----
NULL
383760

skipif mysql # not compatible
query II rowsort label-3038
SELECT ALL + CASE - 55 WHEN + CAST ( NULL AS INTEGER ) - 32 * - COUNT ( * ) THEN - 8 WHEN + NULLIF ( + ( + + 83 ), - + 60 * 30 * - 42 ) THEN NULL ELSE NULL END AS col0, - COUNT ( * ) * - - 60 * 78 * - COALESCE ( - - 82, + - 36 + - COUNT ( * ), + + 59 + + COALESCE ( - 82, + 22 / 78 ) )
----
NULL
383760

query I rowsort
SELECT DISTINCT + - 39
----
-39

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3040
SELECT ALL + CASE 52 WHEN CAST( NULL AS SIGNED ) THEN NULL ELSE 16 * - + 38 END AS col2, - SUM( ALL + 92 )
----
-608
-92

skipif mysql # not compatible
query II rowsort label-3040
SELECT ALL + CASE 52 WHEN CAST ( NULL AS INTEGER ) THEN NULL ELSE 16 * - + 38 END AS col2, - SUM ( ALL + 92 )
----
-608
-92

query II rowsort
SELECT - - 31 - + + 69, 59 AS col0
----
-38
59

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3042
SELECT 56 DIV - COUNT( * ) + - 96
----
-152

skipif mysql # not compatible
query I rowsort label-3042
SELECT 56 / - COUNT ( * ) + - 96
----
-152

onlyif mysql # aggregate syntax: 
query I rowsort label-3043
SELECT MIN( 12 )
----
12

skipif mysql # not compatible
query I rowsort label-3043
SELECT MIN ( 12 )
----
12

query I rowsort
SELECT + 94 * - 35
----
-3290

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

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

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

query I rowsort
SELECT ALL - 66 * 43 AS col2
----
-2838

onlyif mysql # aggregate syntax: 
query I rowsort label-3048
SELECT ALL - COUNT( ALL COALESCE ( 28, + + 43 - + - 53 + - 28 * 12 - 40 ) ) + CASE - 14 WHEN - 82 THEN + 14 WHEN - - 49 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-3048
SELECT ALL - COUNT ( ALL COALESCE ( 28, + + 43 - + - 53 + - 28 * 12 - 40 ) ) + CASE - 14 WHEN - 82 THEN + 14 WHEN - - 49 THEN NULL END
----
NULL

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

skipif mysql # not compatible
query I rowsort label-3049
SELECT COUNT ( - 6 )
----
1

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

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

query I rowsort
SELECT - CASE + + 11 WHEN + 5 THEN + 23 END AS col0
----
NULL

query I rowsort
SELECT ALL 91 col0
----
91

query I rowsort
SELECT + 63 * + 93 AS col2
----
5859

query I rowsort
SELECT + 81 + + 59 + + + 85
----
225

query I rowsort
SELECT + 92 * + ( + 71 )
----
6532

query I rowsort
SELECT - NULLIF ( 35, - 89 )
----
-35

query I rowsort
SELECT - NULLIF ( 18, 8 )
----
-18

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3059
SELECT ALL COUNT( * ) DIV 66 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3059
SELECT ALL COUNT ( * ) / 66 AS col2
----
0

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

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

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

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

query I rowsort
SELECT + 91 * 2 col0
----
182

onlyif mysql # aggregate syntax: 
query I rowsort label-3063
SELECT + CASE + MIN( 29 ) WHEN ( + 21 ) THEN + MIN( ( 29 ) ) END * 58
----
NULL

skipif mysql # not compatible
query I rowsort label-3063
SELECT + CASE + MIN ( 29 ) WHEN ( + 21 ) THEN + MIN ( ( 29 ) ) END * 58
----
NULL

query I rowsort
SELECT - CASE + 80 WHEN 21 THEN + 90 END
----
NULL

query I rowsort
SELECT + 2 * + 22 AS col0
----
44

query I rowsort
SELECT ALL CASE 31 WHEN - 59 THEN + 72 + - AVG ( 42 ) WHEN - 14 THEN NULL END AS col0
----
NULL

query I rowsort
SELECT ALL 82 col2
----
82

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3068
SELECT COUNT( * ) DIV - 20 - - COUNT( * ) * COUNT( * ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-3068
SELECT COUNT ( * ) / - 20 - - COUNT ( * ) * COUNT ( * ) AS col1
----
1

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

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

query I rowsort
SELECT DISTINCT - 42 * - 76
----
3192

onlyif mysql # DIV for integer division: 
query I rowsort label-3071
SELECT ALL - 69 DIV - 65 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-3071
SELECT ALL - 69 / - 65 AS col2
----
1

query I rowsort
SELECT 33 * COALESCE ( 9, 52 * + NULLIF ( + 61, 46 ) - 47, - 93 ) + + 15 col1
----
312

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

skipif mysql # not compatible
query I rowsort label-3073
SELECT ( + 40 ) / + 91 + COUNT ( * )
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-3074
SELECT 33 * 99 - 76 DIV 33 AS col1
----
3265

skipif mysql # not compatible
query I rowsort label-3074
SELECT 33 * 99 - 76 / 33 AS col1
----
3265

query I rowsort
SELECT DISTINCT + 42 * 73
----
3066

query I rowsort
SELECT - CASE 75 WHEN - 5 THEN - 13 * 55 END + - 81 col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3077
SELECT - COALESCE ( - 50, 4 DIV 80 ) DIV - 59 - + COUNT( * )
----
-1

skipif mysql # not compatible
query I rowsort label-3077
SELECT - COALESCE ( - 50, 4 / 80 ) / - 59 - + COUNT ( * )
----
-1

query I rowsort
SELECT - 94 * + 22 col1
----
-2068

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

skipif mysql # not compatible
query I rowsort label-3079
SELECT DISTINCT 12 * + COUNT ( * ) AS col0
----
12

query I rowsort
SELECT ALL + 30 col1
----
30

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3081
SELECT DISTINCT 37 * - 22 + CAST( COALESCE ( CASE + 74 WHEN SUM( DISTINCT 7 ) THEN 87 * MIN( DISTINCT 67 * 73 ) ELSE NULL END, SUM( 3 ), COUNT( * ), CAST( NULL AS SIGNED ) ) AS SIGNED ) * + 75
----
-589

skipif mysql # not compatible
query I rowsort label-3081
SELECT DISTINCT 37 * - 22 + CAST ( COALESCE ( CASE + 74 WHEN SUM ( DISTINCT 7 ) THEN 87 * MIN ( DISTINCT 67 * 73 ) ELSE NULL END, SUM ( 3 ), COUNT ( * ), CAST ( NULL AS INTEGER ) ) AS INTEGER ) * + 75
----
-589

onlyif mysql # aggregate syntax: 
query I rowsort label-3082
SELECT - COUNT( DISTINCT 30 ) * + 68 + 61
----
-7

skipif mysql # not compatible
query I rowsort label-3082
SELECT - COUNT ( DISTINCT 30 ) * + 68 + 61
----
-7

onlyif mysql # DIV for integer division: 
query I rowsort label-3083
SELECT - 59 DIV + 88
----
0

skipif mysql # not compatible
query I rowsort label-3083
SELECT - 59 / + 88
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3084
SELECT DISTINCT 12 * COUNT( * ) + - 66 DIV + 78 AS col1
----
12

skipif mysql # not compatible
query I rowsort label-3084
SELECT DISTINCT 12 * COUNT ( * ) + - 66 / + 78 AS col1
----
12

query I rowsort
SELECT ALL + 5 * ( 76 ) + + 61
----
441

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3086
SELECT - CAST( NULL AS DECIMAL ) * AVG ( DISTINCT - 68 / 5 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3086
SELECT - CAST ( NULL AS REAL ) * AVG ( DISTINCT - 68 / 5 ) AS col2
----
NULL

query I rowsort
SELECT COALESCE ( 5, - 80 + 46 )
----
5

onlyif mysql # DIV for integer division: 
query I rowsort label-3088
SELECT ALL + 98 DIV 85 col0
----
1

skipif mysql # not compatible
query I rowsort label-3088
SELECT ALL + 98 / 85 col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3089
SELECT - 23 + - MAX( + 83 ) AS col0
----
-106

skipif mysql # not compatible
query I rowsort label-3089
SELECT - 23 + - MAX ( + 83 ) AS col0
----
-106

onlyif mysql # aggregate syntax: 
query I rowsort label-3090
SELECT + NULLIF ( 34, COUNT( * ) / 77 + 33 )
----
34

skipif mysql # not compatible
query I rowsort label-3090
SELECT + NULLIF ( 34, COUNT ( * ) / 77 + 33 )
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-3091
SELECT ALL + COUNT( 35 )
----
1

skipif mysql # not compatible
query I rowsort label-3091
SELECT ALL + COUNT ( 35 )
----
1

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

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

query I rowsort
SELECT DISTINCT - 23 * 84 + 71 AS col2
----
-1861

query I rowsort
SELECT COALESCE ( + 12, 57 )
----
12

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3097
SELECT NULLIF ( COUNT( * ), + 89 )
----
1

skipif mysql # not compatible
query I rowsort label-3097
SELECT NULLIF ( COUNT ( * ), + 89 )
----
1

query I rowsort
SELECT ALL ( ( 76 ) )
----
76

query I rowsort
SELECT - CASE - 14 WHEN 31 THEN 10 WHEN 4 THEN NULL ELSE + 6 END
----
-6

query I rowsort
SELECT DISTINCT + ( 48 ) * - 23
----
-1104

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3101
SELECT ALL + 96 * + 69 - 18 DIV COALESCE ( - 90 * + 62, - COUNT( * ), 33 DIV 6 ) AS col2
----
6624

skipif mysql # not compatible
query I rowsort label-3101
SELECT ALL + 96 * + 69 - 18 / COALESCE ( - 90 * + 62, - COUNT ( * ), 33 / 6 ) AS col2
----
6624

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3102
SELECT ALL + 8 * - CAST( 80 AS SIGNED )
----
-640

skipif mysql # not compatible
query I rowsort label-3102
SELECT ALL + 8 * - CAST ( 80 AS INTEGER )
----
-640

onlyif mysql # aggregate syntax: 
query I rowsort label-3103
SELECT - SUM( + 80 ) + + 32 AS col0
----
-48

skipif mysql # not compatible
query I rowsort label-3103
SELECT - SUM ( + 80 ) + + 32 AS col0
----
-48

onlyif mysql # DIV for integer division: 
query I rowsort label-3104
SELECT + ( 13 ) - + ( 82 + - 22 DIV - 86 )
----
-69

skipif mysql # not compatible
query I rowsort label-3104
SELECT + ( 13 ) - + ( 82 + - 22 / - 86 )
----
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-3105
SELECT DISTINCT CASE - COUNT( DISTINCT 42 ) WHEN - 95 THEN + MAX( + 67 ) + 58 * + ( + 88 ) ELSE + 59 END
----
59

skipif mysql # not compatible
query I rowsort label-3105
SELECT DISTINCT CASE - COUNT ( DISTINCT 42 ) WHEN - 95 THEN + MAX ( + 67 ) + 58 * + ( + 88 ) ELSE + 59 END
----
59

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

query I rowsort
SELECT + 54 - 48 col1
----
6

query I rowsort
SELECT + 58 * 96
----
5568

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3110
SELECT SUM( 36 ) - MAX( DISTINCT 56 + + 10 )
----
-30

skipif mysql # not compatible
query I rowsort label-3110
SELECT SUM ( 36 ) - MAX ( DISTINCT 56 + + 10 )
----
-30

query I rowsort
SELECT ALL + 5 - + 23 AS col0
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-3112
SELECT + 20 + SUM( ALL + 35 + ( 72 ) ) AS col1
----
127

skipif mysql # not compatible
query I rowsort label-3112
SELECT + 20 + SUM ( ALL + 35 + ( 72 ) ) AS col1
----
127

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3113
SELECT CAST( + 6 AS SIGNED ) + 44 AS col0
----
50

skipif mysql # not compatible
query I rowsort label-3113
SELECT CAST ( + 6 AS INTEGER ) + 44 AS col0
----
50

query I rowsort
SELECT ALL 73 * 22
----
1606

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3115
SELECT ALL - ( COUNT( * ) ) * CASE + 98 WHEN + 37 THEN NULL ELSE 31 DIV - COUNT( * ) END AS col1
----
31

skipif mysql # not compatible
query I rowsort label-3115
SELECT ALL - ( COUNT ( * ) ) * CASE + 98 WHEN + 37 THEN NULL ELSE 31 / - COUNT ( * ) END AS col1
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-3116
SELECT DISTINCT + 11 * - MAX( DISTINCT 83 ) AS col1
----
-913

skipif mysql # not compatible
query I rowsort label-3116
SELECT DISTINCT + 11 * - MAX ( DISTINCT 83 ) AS col1
----
-913

query I rowsort
SELECT - ( - 26 ) + 32
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-3118
SELECT DISTINCT - 36 * + SUM( - 9 )
----
324

skipif mysql # not compatible
query I rowsort label-3118
SELECT DISTINCT - 36 * + SUM ( - 9 )
----
324

query I rowsort
SELECT ALL - 78 * 50 AS col0
----
-3900

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

skipif mysql # not compatible
query I rowsort label-3120
SELECT ALL COUNT ( * ) + 50 AS col0
----
51

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

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

query I rowsort
SELECT DISTINCT - 86 + + 83 AS col0
----
-3

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3124
SELECT ALL MAX( DISTINCT 19 ) + - 39 DIV 63
----
19

skipif mysql # not compatible
query I rowsort label-3124
SELECT ALL MAX ( DISTINCT 19 ) + - 39 / 63
----
19

query I rowsort
SELECT ALL 71 * + 96 col1
----
6816

query I rowsort
SELECT 10 + - 68 - 53 * + 18 AS col1
----
-1012

query I rowsort
SELECT DISTINCT 65 + 29 * + 84
----
2501

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

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

query I rowsort
SELECT DISTINCT - 52 col0
----
-52

query I rowsort
SELECT 94 - - ( - ( 93 ) ) AS col2
----
1

query I rowsort
SELECT ALL + NULLIF ( + + 33, - 59 ) + + 45
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-3132
SELECT ( - - COUNT( * ) ) - ( 35 ) AS col1
----
-34

skipif mysql # not compatible
query I rowsort label-3132
SELECT ( - - COUNT ( * ) ) - ( 35 ) AS col1
----
-34

query I rowsort
SELECT 39 * - ( 89 )
----
-3471

onlyif mysql # aggregate syntax: 
query I rowsort label-3134
SELECT - 82 * + SUM( + 26 ) + - 77 AS col2
----
-2209

skipif mysql # not compatible
query I rowsort label-3134
SELECT - 82 * + SUM ( + 26 ) + - 77 AS col2
----
-2209

onlyif mysql # DIV for integer division: 
query I rowsort label-3135
SELECT DISTINCT + 94 + + 0 DIV 13 AS col1
----
94

skipif mysql # not compatible
query I rowsort label-3135
SELECT DISTINCT + 94 + + 0 / 13 AS col1
----
94

query I rowsort
SELECT 29 * - + 89
----
-2581

query I rowsort
SELECT ALL ( - 34 ) * 30 AS col2
----
-1020

query I rowsort
SELECT DISTINCT ( - 7 ) - - 11
----
4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3139
SELECT 44 + CAST( + COUNT( * ) AS SIGNED ) + - 54 col2
----
-9

skipif mysql # not compatible
query I rowsort label-3139
SELECT 44 + CAST ( + COUNT ( * ) AS INTEGER ) + - 54 col2
----
-9

query I rowsort
SELECT ALL + 76 - + - 54
----
130

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

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

query I rowsort
SELECT 28 * + 29
----
812

onlyif mysql # DIV for integer division: 
query I rowsort label-3143
SELECT DISTINCT - - 27 DIV - - ( + 59 ) * 44 + - 72 * 31 AS col1
----
-2232

skipif mysql # not compatible
query I rowsort label-3143
SELECT DISTINCT - - 27 / - - ( + 59 ) * 44 + - 72 * 31 AS col1
----
-2232

onlyif mysql # DIV for integer division: 
query I rowsort label-3144
SELECT - 43 DIV - 12
----
3

skipif mysql # not compatible
query I rowsort label-3144
SELECT - 43 / - 12
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3145
SELECT 16 * - + COUNT( ALL ( 67 ) ) + MAX( ALL + 46 )
----
30

skipif mysql # not compatible
query I rowsort label-3145
SELECT 16 * - + COUNT ( ALL ( 67 ) ) + MAX ( ALL + 46 )
----
30

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

skipif mysql # not compatible
query I rowsort label-3146
SELECT COUNT ( * ) * + ( - 22 ) + - 11 AS col0
----
-33

query I rowsort
SELECT ALL - ( - + 54 ) AS col1
----
54

query I rowsort
SELECT DISTINCT 3 AS col0
----
3

query I rowsort
SELECT - ( 41 )
----
-41

query I rowsort
SELECT DISTINCT COALESCE ( + NULLIF ( NULLIF ( 94, - 42 + - 22 ), - 2 ), - 31 ) AS col0
----
94

query I rowsort
SELECT ALL - 83 col2
----
-83

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

query I rowsort
SELECT DISTINCT + 82 * - 2 * + 66 AS col1
----
-10824

onlyif mysql # aggregate syntax: 
query I rowsort label-3154
SELECT + 85 - - COUNT( * ) + - 4 AS col2
----
82

skipif mysql # not compatible
query I rowsort label-3154
SELECT + 85 - - COUNT ( * ) + - 4 AS col2
----
82

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3155
SELECT DISTINCT CAST( - 8 AS SIGNED ) AS col0
----
-8

skipif mysql # not compatible
query I rowsort label-3155
SELECT DISTINCT CAST ( - 8 AS INTEGER ) AS col0
----
-8

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3157
SELECT 65 + 35 - SUM( DISTINCT 88 ) * 43
----
-3684

skipif mysql # not compatible
query I rowsort label-3157
SELECT 65 + 35 - SUM ( DISTINCT 88 ) * 43
----
-3684

onlyif mysql # aggregate syntax: 
query I rowsort label-3158
SELECT - - ( + MAX( DISTINCT - 21 ) )
----
-21

skipif mysql # not compatible
query I rowsort label-3158
SELECT - - ( + MAX ( DISTINCT - 21 ) )
----
-21

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3159
SELECT DISTINCT - 99 DIV + ( + COALESCE ( MIN( DISTINCT 16 ), + COUNT( * ), - 86 + - 87 ) ) + + 41 AS col2
----
35

skipif mysql # not compatible
query I rowsort label-3159
SELECT DISTINCT - 99 / + ( + COALESCE ( MIN ( DISTINCT 16 ), + COUNT ( * ), - 86 + - 87 ) ) + + 41 AS col2
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-3160
SELECT ALL + 88 + NULLIF ( COUNT( * ), 92 * MIN( ALL 70 ) ) + ( - 25 ) AS col1
----
64

skipif mysql # not compatible
query I rowsort label-3160
SELECT ALL + 88 + NULLIF ( COUNT ( * ), 92 * MIN ( ALL 70 ) ) + ( - 25 ) AS col1
----
64

query I rowsort
SELECT - COALESCE ( + - 32, 2 * 51 ) - 94 * 81
----
-7582

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3162
SELECT DISTINCT ( 98 ) * - ( CAST( NULLIF ( - 41, + 73 / COUNT( * ) + 84 / + 4 ) AS SIGNED ) )
----
4018

skipif mysql # not compatible
query I rowsort label-3162
SELECT DISTINCT ( 98 ) * - ( CAST ( NULLIF ( - 41, + 73 / COUNT ( * ) + 84 / + 4 ) AS INTEGER ) )
----
4018

onlyif mysql # aggregate syntax: 
query I rowsort label-3163
SELECT DISTINCT - COUNT( * ) + - - SUM( 41 ) + CASE MIN( + 65 ) + 36 WHEN + 3 THEN NULL ELSE - 7 + + 21 END AS col2
----
54

skipif mysql # not compatible
query I rowsort label-3163
SELECT DISTINCT - COUNT ( * ) + - - SUM ( 41 ) + CASE MIN ( + 65 ) + 36 WHEN + 3 THEN NULL ELSE - 7 + + 21 END AS col2
----
54

query I rowsort
SELECT ALL - NULLIF ( - 73, - 49 )
----
73

onlyif mysql # aggregate syntax: 
query I rowsort label-3165
SELECT ALL - 45 * SUM( ALL 70 ) + - COALESCE ( + COALESCE ( 85, + 88, - 81 ), 50 )
----
-3235

skipif mysql # not compatible
query I rowsort label-3165
SELECT ALL - 45 * SUM ( ALL 70 ) + - COALESCE ( + COALESCE ( 85, + 88, - 81 ), 50 )
----
-3235

onlyif mysql # DIV for integer division: 
query I rowsort label-3166
SELECT 13 DIV 15 * 7
----
0

skipif mysql # not compatible
query I rowsort label-3166
SELECT 13 / 15 * 7
----
0

query I rowsort
SELECT DISTINCT - 52 AS col2
----
-52

query I rowsort
SELECT DISTINCT 41 * + ( 60 )
----
2460

query I rowsort
SELECT + 53 * + 46 + + 64
----
2502

query I rowsort
SELECT ALL NULLIF ( 93, + 83 ) * - 16
----
-1488

onlyif mysql # aggregate syntax: 
query I rowsort label-3171
SELECT ALL 76 * - 98 * + NULLIF ( MAX( DISTINCT + 97 ), - COUNT( * ) )
----
-722456

skipif mysql # not compatible
query I rowsort label-3171
SELECT ALL 76 * - 98 * + NULLIF ( MAX ( DISTINCT + 97 ), - COUNT ( * ) )
----
-722456

onlyif mysql # DIV for integer division: 
query I rowsort label-3172
SELECT 43 DIV + - 98 + 26 DIV + 40 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3172
SELECT 43 / + - 98 + 26 / + 40 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3173
SELECT COUNT( * ) * + 62 - - + 79 * ( + ( 56 ) * + COUNT( * ) )
----
4486

skipif mysql # not compatible
query I rowsort label-3173
SELECT COUNT ( * ) * + 62 - - + 79 * ( + ( 56 ) * + COUNT ( * ) )
----
4486

onlyif mysql # aggregate syntax: 
query I rowsort label-3174
SELECT MAX( 38 ) AS col2
----
38

skipif mysql # not compatible
query I rowsort label-3174
SELECT MAX ( 38 ) AS col2
----
38

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

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

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

skipif mysql # not compatible
query I rowsort label-3176
SELECT MAX ( - - 59 )
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-3177
SELECT MAX( + - 14 ) AS col0
----
-14

skipif mysql # not compatible
query I rowsort label-3177
SELECT MAX ( + - 14 ) AS col0
----
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-3178
SELECT DISTINCT 75 - 70 * - COUNT( * ) AS col2
----
145

skipif mysql # not compatible
query I rowsort label-3178
SELECT DISTINCT 75 - 70 * - COUNT ( * ) AS col2
----
145

onlyif mysql # aggregate syntax: 
query I rowsort label-3179
SELECT + MIN( + 96 ) col0
----
96

skipif mysql # not compatible
query I rowsort label-3179
SELECT + MIN ( + 96 ) col0
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-3180
SELECT COUNT( * ) + + CASE + COUNT( * ) WHEN + 10 THEN 80 * 50 END
----
NULL

skipif mysql # not compatible
query I rowsort label-3180
SELECT COUNT ( * ) + + CASE + COUNT ( * ) WHEN + 10 THEN 80 * 50 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3181
SELECT ALL COUNT( * ) - 94
----
-93

skipif mysql # not compatible
query I rowsort label-3181
SELECT ALL COUNT ( * ) - 94
----
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-3182
SELECT COUNT( * ) + - 80 * 73 AS col1
----
-5839

skipif mysql # not compatible
query I rowsort label-3182
SELECT COUNT ( * ) + - 80 * 73 AS col1
----
-5839

onlyif mysql # aggregate syntax: 
query I rowsort label-3183
SELECT ( - 71 ) * - COUNT( * )
----
71

skipif mysql # not compatible
query I rowsort label-3183
SELECT ( - 71 ) * - COUNT ( * )
----
71

query I rowsort
SELECT 64 * - + 81
----
-5184

query I rowsort
SELECT 34 + - - 65 col2
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-3186
SELECT + MAX( DISTINCT + 85 ) AS col2
----
85

skipif mysql # not compatible
query I rowsort label-3186
SELECT + MAX ( DISTINCT + 85 ) AS col2
----
85

onlyif mysql # aggregate syntax: 
query II rowsort label-3187
SELECT + 52 AS col2, COUNT( * ) - + + 46
----
52
-45

skipif mysql # not compatible
query II rowsort label-3187
SELECT + 52 AS col2, COUNT ( * ) - + + 46
----
52
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-3188
SELECT + + ( ( + COUNT( * ) ) ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-3188
SELECT + + ( ( + COUNT ( * ) ) ) AS col0
----
1

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3189
SELECT - 83 * - - 54 * - + ( - 31 ) + CAST( NULL AS DECIMAL ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3189
SELECT - 83 * - - 54 * - + ( - 31 ) + CAST ( NULL AS REAL ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3190
SELECT ALL - 5 * - COUNT( * )
----
5

skipif mysql # not compatible
query I rowsort label-3190
SELECT ALL - 5 * - COUNT ( * )
----
5

query I rowsort
SELECT ALL 49 * + + 81 col0
----
3969

query II rowsort
SELECT DISTINCT 48 AS col2, - 18
----
48
-18

query I rowsort
SELECT DISTINCT - NULLIF ( - 97, - 56 )
----
97

query I rowsort
SELECT - 2 + + 36
----
34

onlyif mysql # aggregate syntax: 
query II rowsort label-3195
SELECT ALL - 51 AS col1, CASE + 41 WHEN - 79 + + 36 * 27 THEN 70 * + 55 WHEN 83 THEN AVG ( - 62 ) WHEN COUNT( * ) THEN + 57 * 46 WHEN 53 THEN NULL ELSE 10 * COUNT( * ) END AS col1
----
-51
10

skipif mysql # not compatible
query II rowsort label-3195
SELECT ALL - 51 AS col1, CASE + 41 WHEN - 79 + + 36 * 27 THEN 70 * + 55 WHEN 83 THEN AVG ( - 62 ) WHEN COUNT ( * ) THEN + 57 * 46 WHEN 53 THEN NULL ELSE 10 * COUNT ( * ) END AS col1
----
-51
10

query I rowsort
SELECT ALL 77 * + 45
----
3465

query I rowsort
SELECT - + 33 + 71 * - 16 * 21
----
-23889

onlyif mysql # DIV for integer division: 
query I rowsort label-3198
SELECT ALL - - 49 DIV + + 25 + - - 40 * 99 AS col2
----
3961

skipif mysql # not compatible
query I rowsort label-3198
SELECT ALL - - 49 / + + 25 + - - 40 * 99 AS col2
----
3961

query I rowsort
SELECT DISTINCT - 28 AS col1
----
-28

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3200
SELECT + - ( - - ( + + COUNT( DISTINCT + CAST( NULL AS SIGNED ) ) ) ) + - COUNT( 99 )
----
-1

skipif mysql # not compatible
query I rowsort label-3200
SELECT + - ( - - ( + + COUNT ( DISTINCT + CAST ( NULL AS INTEGER ) ) ) ) + - COUNT ( 99 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3201
SELECT + MIN( + 68 ) AS col1
----
68

skipif mysql # not compatible
query I rowsort label-3201
SELECT + MIN ( + 68 ) AS col1
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-3202
SELECT - + 72 + + - MAX( 45 ) * 63 AS col2
----
-2907

skipif mysql # not compatible
query I rowsort label-3202
SELECT - + 72 + + - MAX ( 45 ) * 63 AS col2
----
-2907

onlyif mysql # aggregate syntax: 
query I rowsort label-3203
SELECT - ( 92 ) - - - COUNT( * ) AS col1
----
-93

skipif mysql # not compatible
query I rowsort label-3203
SELECT - ( 92 ) - - - COUNT ( * ) AS col1
----
-93

onlyif mysql # DIV for integer division: 
query I rowsort label-3204
SELECT ALL - 61 DIV - 77
----
0

skipif mysql # not compatible
query I rowsort label-3204
SELECT ALL - 61 / - 77
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3205
SELECT - - CAST( 16 AS SIGNED ) + - + 17 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-3205
SELECT - - CAST ( 16 AS INTEGER ) + - + 17 AS col1
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-3206
SELECT - 66 + - 57 DIV + 11 + - 51
----
-122

skipif mysql # not compatible
query I rowsort label-3206
SELECT - 66 + - 57 / + 11 + - 51
----
-122

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-3207
SELECT - - 10, - CAST( NULL AS DECIMAL ) AS col2
----
10
NULL

skipif mysql # not compatible
query II rowsort label-3207
SELECT - - 10, - CAST ( NULL AS REAL ) AS col2
----
10
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3208
SELECT DISTINCT + + COUNT( * ) + - ( + 63 ) + 54
----
-8

skipif mysql # not compatible
query I rowsort label-3208
SELECT DISTINCT + + COUNT ( * ) + - ( + 63 ) + 54
----
-8

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3209
SELECT DISTINCT + CAST( 59 AS SIGNED ) + - CAST( NULL AS DECIMAL ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3209
SELECT DISTINCT + CAST ( 59 AS INTEGER ) + - CAST ( NULL AS REAL ) AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3210
SELECT ALL + + 94 + - NULLIF ( - NULLIF ( 72, - 74 ), + CAST( NULL AS SIGNED ) ) AS col1
----
166

skipif mysql # not compatible
query I rowsort label-3210
SELECT ALL + + 94 + - NULLIF ( - NULLIF ( 72, - 74 ), + CAST ( NULL AS INTEGER ) ) AS col1
----
166

onlyif mysql # aggregate syntax: 
query I rowsort label-3211
SELECT - 32 + - MAX( - 92 )
----
60

skipif mysql # not compatible
query I rowsort label-3211
SELECT - 32 + - MAX ( - 92 )
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-3212
SELECT ALL + - 78 + - - COALESCE ( 38, + SUM( 27 ) * 75 + + COUNT( * ) )
----
-40

skipif mysql # not compatible
query I rowsort label-3212
SELECT ALL + - 78 + - - COALESCE ( 38, + SUM ( 27 ) * 75 + + COUNT ( * ) )
----
-40

query II rowsort
SELECT DISTINCT 89 AS col0, - 3 * 37 + 55 AS col2
----
89
-56

query I rowsort
SELECT ALL - 11 + - 69 * 16 col2
----
-1115

query I rowsort
SELECT + 12 * + 99 AS col2
----
1188

query I rowsort
SELECT ALL ( - ( - + 57 ) )
----
57

query I rowsort
SELECT ALL + ( ( + 49 ) )
----
49

onlyif mysql # aggregate syntax: 
query I rowsort label-3218
SELECT COUNT( * ) * 7 + - + 20 + + 10
----
-3

skipif mysql # not compatible
query I rowsort label-3218
SELECT COUNT ( * ) * 7 + - + 20 + + 10
----
-3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3219
SELECT ALL + 7 * + + COUNT( * ) - - 87 DIV - 29
----
4

skipif mysql # not compatible
query I rowsort label-3219
SELECT ALL + 7 * + + COUNT ( * ) - - 87 / - 29
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-3220
SELECT - 76 * CASE 9 WHEN 94 THEN NULL WHEN 29 / + COUNT( * ) THEN + 61 WHEN + 47 * + 42 THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-3220
SELECT - 76 * CASE 9 WHEN 94 THEN NULL WHEN 29 / + COUNT ( * ) THEN + 61 WHEN + 47 * + 42 THEN NULL ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3221
SELECT DISTINCT + CAST( + 63 AS SIGNED ) * - COUNT( * ) * 6 - 2 col1
----
-380

skipif mysql # not compatible
query I rowsort label-3221
SELECT DISTINCT + CAST ( + 63 AS INTEGER ) * - COUNT ( * ) * 6 - 2 col1
----
-380

query I rowsort
SELECT ALL + 0 AS col2
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-3223
SELECT ( COUNT( * ) ) AS col2, - COUNT( * ) * + + 74 AS col2
----
1
-74

skipif mysql # not compatible
query II rowsort label-3223
SELECT ( COUNT ( * ) ) AS col2, - COUNT ( * ) * + + 74 AS col2
----
1
-74

onlyif mysql # DIV for integer division: 
query I rowsort label-3224
SELECT ALL - 76 DIV - + 61
----
1

skipif mysql # not compatible
query I rowsort label-3224
SELECT ALL - 76 / - + 61
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3225
SELECT DISTINCT + CAST( 17 AS SIGNED ) AS col2
----
17

skipif mysql # not compatible
query I rowsort label-3225
SELECT DISTINCT + CAST ( 17 AS INTEGER ) AS col2
----
17

query I rowsort
SELECT ALL 16 * + 88
----
1408

onlyif mysql # aggregate syntax: 
query I rowsort label-3227
SELECT ALL MIN( ALL - + 92 ) * - + 83 AS col2
----
7636

skipif mysql # not compatible
query I rowsort label-3227
SELECT ALL MIN ( ALL - + 92 ) * - + 83 AS col2
----
7636

query I rowsort
SELECT - 92 - ( - + 84 ) col2
----
-8

query I rowsort
SELECT - 10 * - 94 AS col0
----
940

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3230
SELECT - COUNT( + + CAST( NULL AS DECIMAL ) ) * + + 24 + - 91 + 26 - + ( - 89 + 8 * 15 ) * 14
----
-499

skipif mysql # not compatible
query I rowsort label-3230
SELECT - COUNT ( + + CAST ( NULL AS REAL ) ) * + + 24 + - 91 + 26 - + ( - 89 + 8 * 15 ) * 14
----
-499

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3231
SELECT CASE - - CAST( NULL AS SIGNED ) WHEN + 96 * + + 23 THEN NULL ELSE 88 + 80 END AS col0
----
168

skipif mysql # not compatible
query I rowsort label-3231
SELECT CASE - - CAST ( NULL AS INTEGER ) WHEN + 96 * + + 23 THEN NULL ELSE 88 + 80 END AS col0
----
168

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3232
SELECT + CAST( - 29 AS SIGNED ) + - COUNT( * ) + + COUNT( * ) AS col2
----
-29

skipif mysql # not compatible
query I rowsort label-3232
SELECT + CAST ( - 29 AS INTEGER ) + - COUNT ( * ) + + COUNT ( * ) AS col2
----
-29

query I rowsort
SELECT ALL + CASE + - 58 WHEN - 46 * + 93 + - 18 THEN 89 ELSE NULL END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3234
SELECT + COUNT( * ) * 11 + 65 AS col0
----
76

skipif mysql # not compatible
query I rowsort label-3234
SELECT + COUNT ( * ) * 11 + 65 AS col0
----
76

query I rowsort
SELECT DISTINCT + + 56
----
56

query I rowsort
SELECT DISTINCT + 12 * + 81 * 85 + - + 84
----
82536

onlyif mysql # aggregate syntax: 
query I rowsort label-3237
SELECT ALL ( 33 ) * + - 70 + + 86 * 16 + + ( 79 + COUNT( * ) )
----
-854

skipif mysql # not compatible
query I rowsort label-3237
SELECT ALL ( 33 ) * + - 70 + + 86 * 16 + + ( 79 + COUNT ( * ) )
----
-854

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3238
SELECT + CASE - 36 WHEN - COUNT( DISTINCT + 37 ) THEN NULL WHEN + 3 + 94 THEN - ( + CAST( NULL AS SIGNED ) ) ELSE NULL END * + 0
----
NULL

skipif mysql # not compatible
query I rowsort label-3238
SELECT + CASE - 36 WHEN - COUNT ( DISTINCT + 37 ) THEN NULL WHEN + 3 + 94 THEN - ( + CAST ( NULL AS INTEGER ) ) ELSE NULL END * + 0
----
NULL

query I rowsort
SELECT - - 15
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-3240
SELECT DISTINCT - COUNT( * ) * - 48 + + - 27 * + 17 * 49
----
-22443

skipif mysql # not compatible
query I rowsort label-3240
SELECT DISTINCT - COUNT ( * ) * - 48 + + - 27 * + 17 * 49
----
-22443

onlyif mysql # aggregate syntax: 
query II rowsort label-3241
SELECT ALL 10 * COUNT( * ) col0, 45 AS col0
----
10
45

skipif mysql # not compatible
query II rowsort label-3241
SELECT ALL 10 * COUNT ( * ) col0, 45 AS col0
----
10
45

query I rowsort
SELECT ALL + + 42 + - + 31 * + + 62 * + + 77 * - 63 AS col2
----
9323664

onlyif mysql # aggregate syntax: 
query I rowsort label-3243
SELECT - - NULLIF ( - CASE + + ( - MIN( DISTINCT + 47 ) ) WHEN + 7 THEN - COUNT( * ) * - COALESCE ( 41, + 39, 18 ) + - 65 END, + NULLIF ( NULLIF ( - 80, 44 + - 6 ), 95 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-3243
SELECT - - NULLIF ( - CASE + + ( - MIN ( DISTINCT + 47 ) ) WHEN + 7 THEN - COUNT ( * ) * - COALESCE ( 41, + 39, 18 ) + - 65 END, + NULLIF ( NULLIF ( - 80, 44 + - 6 ), 95 ) )
----
NULL

query II rowsort
SELECT ALL + ( - + 95 ) AS col0, - 61
----
-95
-61

query I rowsort
SELECT ALL NULLIF ( - 65, - - 54 )
----
-65

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3246
SELECT ALL - 55 + - COALESCE ( - 47, CASE + CASE 37 WHEN 47 THEN NULL WHEN ( COUNT( * ) ) - ( + 91 ) THEN CAST( NULL AS SIGNED ) END WHEN + 74 * + 44 THEN SUM( - 85 ) * 71 + + ( 57 ) WHEN 82 * + 12 - 83 THEN NULL END + 32 ) AS col1
----
-8

skipif mysql # not compatible
query I rowsort label-3246
SELECT ALL - 55 + - COALESCE ( - 47, CASE + CASE 37 WHEN 47 THEN NULL WHEN ( COUNT ( * ) ) - ( + 91 ) THEN CAST ( NULL AS INTEGER ) END WHEN + 74 * + 44 THEN SUM ( - 85 ) * 71 + + ( 57 ) WHEN 82 * + 12 - 83 THEN NULL END + 32 ) AS col1
----
-8

query I rowsort
SELECT - - 63
----
63

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3248
SELECT + NULLIF ( + 58, + 34 + + 2 ) - - 26 + CAST( NULL AS SIGNED ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3248
SELECT + NULLIF ( + 58, + 34 + + 2 ) - - 26 + CAST ( NULL AS INTEGER ) col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3249
SELECT - 12 * 58 * - COUNT( * ) AS col2, - COALESCE ( - 84, - 42 ) * + MIN( ALL + 81 ) col0
----
696
6804

skipif mysql # not compatible
query II rowsort label-3249
SELECT - 12 * 58 * - COUNT ( * ) AS col2, - COALESCE ( - 84, - 42 ) * + MIN ( ALL + 81 ) col0
----
696
6804

query I rowsort
SELECT + 83 + + 4
----
87

query I rowsort
SELECT - 88 * 35 AS col2
----
-3080

onlyif mysql # DIV for integer division: 
query I rowsort label-3252
SELECT - 76 DIV NULLIF ( - 31, - 6 )
----
2

skipif mysql # not compatible
query I rowsort label-3252
SELECT - 76 / NULLIF ( - 31, - 6 )
----
2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3253
SELECT DISTINCT CAST( + - 72 AS SIGNED )
----
-72

skipif mysql # not compatible
query I rowsort label-3253
SELECT DISTINCT CAST ( + - 72 AS INTEGER )
----
-72

query I rowsort
SELECT - 52 - - 11 AS col2
----
-41

query I rowsort
SELECT ALL COALESCE ( - 7, - + 6 ) AS col2
----
-7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3256
SELECT ALL + CAST( NULL AS SIGNED ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3256
SELECT ALL + CAST ( NULL AS INTEGER ) col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3257
SELECT + MIN( + - 55 ) AS col2
----
-55

skipif mysql # not compatible
query I rowsort label-3257
SELECT + MIN ( + - 55 ) AS col2
----
-55

query I rowsort
SELECT - 22 * + 34
----
-748

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3259
SELECT ALL - 72 * - 46 * - ( + + CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-3259
SELECT ALL - 72 * - 46 * - ( + + CAST ( NULL AS INTEGER ) )
----
NULL

query I rowsort
SELECT ALL + ( 69 )
----
69

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3261
SELECT - CAST( NULL AS SIGNED ) / + 87 * - 51 + - 53 * + NULLIF ( 28, - 50 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3261
SELECT - CAST ( NULL AS INTEGER ) / + 87 * - 51 + - 53 * + NULLIF ( 28, - 50 ) AS col2
----
NULL

query I rowsort
SELECT 45 col1
----
45

query I rowsort
SELECT 38 + + 73 + 16 * - - 51 + - 83 * - 46 AS col1
----
4745

onlyif mysql # aggregate syntax: 
query II rowsort label-3264
SELECT ALL - COUNT( * ) AS col2, 23
----
-1
23

skipif mysql # not compatible
query II rowsort label-3264
SELECT ALL - COUNT ( * ) AS col2, 23
----
-1
23

query I rowsort
SELECT 79 * + 55
----
4345

query I rowsort
SELECT DISTINCT - NULLIF ( 66, 89 * + + 99 ) AS col1
----
-66

query I rowsort
SELECT ALL 74 + - + NULLIF ( - 39, + + 30 ) + + 57 - 51 * 37 * + 47 * + 23
----
-2039677

onlyif mysql # aggregate syntax: 
query I rowsort label-3268
SELECT ALL - MIN( - + 36 ) AS col0
----
36

skipif mysql # not compatible
query I rowsort label-3268
SELECT ALL - MIN ( - + 36 ) AS col0
----
36

query I rowsort
SELECT ALL - NULLIF ( + 21, + 82 )
----
-21

query I rowsort
SELECT ALL - - CASE - 18 WHEN - 24 THEN - 96 + + 83 * 15 WHEN + 83 THEN 48 * + 98 + 76 * 77 END + 89
----
NULL

query I rowsort
SELECT - 37 + - 41 AS col2
----
-78

query I rowsort
SELECT + - 40
----
-40

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3273
SELECT DISTINCT - COALESCE ( - 70, - 60 + COUNT( * ), + + 89 DIV 39 + 50 DIV + 4, - 50 + + 87 ) + COUNT( * )
----
71

skipif mysql # not compatible
query I rowsort label-3273
SELECT DISTINCT - COALESCE ( - 70, - 60 + COUNT ( * ), + + 89 / 39 + 50 / + 4, - 50 + + 87 ) + COUNT ( * )
----
71

onlyif mysql # aggregate syntax: 
query II rowsort label-3274
SELECT + COUNT( * ) * 82 + 31 col2, 10
----
113
10

skipif mysql # not compatible
query II rowsort label-3274
SELECT + COUNT ( * ) * 82 + 31 col2, 10
----
113
10

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3275
SELECT MAX( DISTINCT + 62 ) DIV 90 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3275
SELECT MAX ( DISTINCT + 62 ) / 90 AS col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3276
SELECT ALL - 70 + + - 89 - + ( SUM( + CASE - NULLIF ( + 87, CASE CAST( NULL AS SIGNED ) WHEN 13 / + ( 68 * - ( 64 ) ) THEN + 39 WHEN 70 * - 95 THEN 60 ELSE 15 + + 25 END * 5 ) WHEN + 36 THEN NULL WHEN 24 THEN NULL ELSE 66 END ) ) AS col2
----
-225

skipif mysql # not compatible
query I rowsort label-3276
SELECT ALL - 70 + + - 89 - + ( SUM ( + CASE - NULLIF ( + 87, CASE CAST ( NULL AS INTEGER ) WHEN 13 / + ( 68 * - ( 64 ) ) THEN + 39 WHEN 70 * - 95 THEN 60 ELSE 15 + + 25 END * 5 ) WHEN + 36 THEN NULL WHEN 24 THEN NULL ELSE 66 END ) ) AS col2
----
-225

onlyif mysql # aggregate syntax: 
query I rowsort label-3277
SELECT + 87 + + COUNT( * ) * - 57
----
30

skipif mysql # not compatible
query I rowsort label-3277
SELECT + 87 + + COUNT ( * ) * - 57
----
30

query I rowsort
SELECT DISTINCT - 59 * - ( 72 )
----
4248

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3279
SELECT CAST( NULL AS SIGNED ) + - 91 + + - 11 + 28 * + 84 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3279
SELECT CAST ( NULL AS INTEGER ) + - 91 + + - 11 + 28 * + 84 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3280
SELECT DISTINCT - 27, 83 * 94 * MIN( DISTINCT + 22 ) * 70 + MIN( DISTINCT 43 ) AS col0
----
-27
12015123

skipif mysql # not compatible
query II rowsort label-3280
SELECT DISTINCT - 27, 83 * 94 * MIN ( DISTINCT + 22 ) * 70 + MIN ( DISTINCT 43 ) AS col0
----
-27
12015123

query I rowsort
SELECT 86 + - 0 + - + 38 * 19 * - - 45 + 80
----
-32324

query I rowsort
SELECT ALL 84 - + 95 AS col0
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-3283
SELECT - 37 - + COALESCE ( - 85, + + COUNT( * ) )
----
48

skipif mysql # not compatible
query I rowsort label-3283
SELECT - 37 - + COALESCE ( - 85, + + COUNT ( * ) )
----
48

query I rowsort
SELECT 78 * - 99 col0
----
-7722

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3285
SELECT 65 + + 27 * + + COUNT( * ) DIV + 81 DIV + + 19 + NULLIF ( + 49, 92 ) * 83
----
4132

skipif mysql # not compatible
query I rowsort label-3285
SELECT 65 + + 27 * + + COUNT ( * ) / + 81 / + + 19 + NULLIF ( + 49, 92 ) * 83
----
4132

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3286
SELECT COUNT( * ) + + 84 + + 1 - + 3 + + MAX( ALL 15 ) - 14 DIV 20 * 2 * - 8 AS col2
----
98

skipif mysql # not compatible
query I rowsort label-3286
SELECT COUNT ( * ) + + 84 + + 1 - + 3 + + MAX ( ALL 15 ) - 14 / 20 * 2 * - 8 AS col2
----
98

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3287
SELECT ALL SUM( DISTINCT + 41 ) - - ( + 7 ) + - - 49 + + - 54 * 37 * - CASE - 99 WHEN MIN( + CAST( ( 52 ) AS SIGNED ) ) THEN 5 * 95 - + 70 END * 52
----
NULL

skipif mysql # not compatible
query I rowsort label-3287
SELECT ALL SUM ( DISTINCT + 41 ) - - ( + 7 ) + - - 49 + + - 54 * 37 * - CASE - 99 WHEN MIN ( + CAST ( ( 52 ) AS INTEGER ) ) THEN 5 * 95 - + 70 END * 52
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3288
SELECT ALL 4 AS col1, + MAX( DISTINCT - 75 ) * + 68 + + 94 + - 12 col0
----
4
-5018

skipif mysql # not compatible
query II rowsort label-3288
SELECT ALL 4 AS col1, + MAX ( DISTINCT - 75 ) * + 68 + + 94 + - 12 col0
----
4
-5018

query II rowsort
SELECT - 5, ( 80 ) AS col2
----
-5
80

onlyif mysql # aggregate syntax: 
query I rowsort label-3290
SELECT 48 + - - 32 + 56 + - MAX( DISTINCT + 37 ) * - + 37
----
1505

skipif mysql # not compatible
query I rowsort label-3290
SELECT 48 + - - 32 + 56 + - MAX ( DISTINCT + 37 ) * - + 37
----
1505

onlyif mysql # aggregate syntax: 
query I rowsort label-3291
SELECT DISTINCT COUNT( * ) - - 18 + + 99 col0
----
118

skipif mysql # not compatible
query I rowsort label-3291
SELECT DISTINCT COUNT ( * ) - - 18 + + 99 col0
----
118

query I rowsort
SELECT NULLIF ( - 96, 25 * + 2 ) * - 51
----
4896

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3293
SELECT ALL + COALESCE ( - 80, + CAST( NULL AS SIGNED ) - - - ( - ( - + ( 87 ) ) ), COUNT( * ) + + MIN( 90 ) ) * + 45 col0
----
-3600

skipif mysql # not compatible
query I rowsort label-3293
SELECT ALL + COALESCE ( - 80, + CAST ( NULL AS INTEGER ) - - - ( - ( - + ( 87 ) ) ), COUNT ( * ) + + MIN ( 90 ) ) * + 45 col0
----
-3600

onlyif mysql # aggregate syntax: 
query I rowsort label-3294
SELECT ALL SUM( - + 68 ) * + 39 AS col0
----
-2652

skipif mysql # not compatible
query I rowsort label-3294
SELECT ALL SUM ( - + 68 ) * + 39 AS col0
----
-2652

query I rowsort
SELECT 38 + - 50 AS col1
----
-12

query II rowsort
SELECT ALL 19, 10 AS col2
----
19
10

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3297
SELECT 48 + 19 + ( - 33 ) * + CAST( NULL AS SIGNED ) * - 92 * - MAX( - 96 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3297
SELECT 48 + 19 + ( - 33 ) * + CAST ( NULL AS INTEGER ) * - 92 * - MAX ( - 96 ) AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3298
SELECT 54 DIV - 8
----
-6

skipif mysql # not compatible
query I rowsort label-3298
SELECT 54 / - 8
----
-6

query II rowsort
SELECT - 29 AS col1, 93 AS col0
----
-29
93

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3300
SELECT CAST( NULL AS DECIMAL ) * + 65
----
NULL

skipif mysql # not compatible
query I rowsort label-3300
SELECT CAST ( NULL AS REAL ) * + 65
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3301
SELECT 73 + - COALESCE ( + CASE - 47 WHEN - 13 + COUNT( * ) THEN NULL WHEN + 95 THEN NULL ELSE - MIN( NULLIF ( - 50, CAST( NULL AS SIGNED ) ) ) END, 30 + - 85 ) + + 7 * - 90
----
-607

skipif mysql # not compatible
query I rowsort label-3301
SELECT 73 + - COALESCE ( + CASE - 47 WHEN - 13 + COUNT ( * ) THEN NULL WHEN + 95 THEN NULL ELSE - MIN ( NULLIF ( - 50, CAST ( NULL AS INTEGER ) ) ) END, 30 + - 85 ) + + 7 * - 90
----
-607

onlyif mysql # DIV for integer division: 
query I rowsort label-3302
SELECT ALL + 13 DIV - + 26 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3302
SELECT ALL + 13 / - + 26 AS col0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3303
SELECT 80 DIV - - COALESCE ( + 96, 9, - COUNT( * ) ) col1
----
0

skipif mysql # not compatible
query I rowsort label-3303
SELECT 80 / - - COALESCE ( + 96, 9, - COUNT ( * ) ) col1
----
0

query I rowsort
SELECT DISTINCT + 4 + + - 51
----
-47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3305
SELECT DISTINCT CAST( NULL AS SIGNED ) / + 29 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3305
SELECT DISTINCT CAST ( NULL AS INTEGER ) / + 29 AS col1
----
NULL

query II rowsort
SELECT 9 AS col1, - 22
----
9
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-3307
SELECT DISTINCT + 68 + - COUNT( * ) * - 79 * + 36
----
2912

skipif mysql # not compatible
query I rowsort label-3307
SELECT DISTINCT + 68 + - COUNT ( * ) * - 79 * + 36
----
2912

query I rowsort
SELECT ALL + 14 * + 71 AS col1
----
994

query I rowsort
SELECT - 69 + + 50 + - + 57 * + 84 + 20
----
-4787

query I rowsort
SELECT ALL + 15 + + 68 AS col1
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-3311
SELECT ALL - - 76 + COUNT( * )
----
77

skipif mysql # not compatible
query I rowsort label-3311
SELECT ALL - - 76 + COUNT ( * )
----
77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3312
SELECT ALL + COUNT( CAST( + 18 AS SIGNED ) ) + - + 24 AS col0, NULLIF ( - 48, - 76 ) DIV 99 AS col1
----
-23
0

skipif mysql # not compatible
query II rowsort label-3312
SELECT ALL + COUNT ( CAST ( + 18 AS INTEGER ) ) + - + 24 AS col0, NULLIF ( - 48, - 76 ) / 99 AS col1
----
-23
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3313
SELECT - 26 - 85 + - 3 + COUNT( - + ( 13 ) ) - - 52 * + 41 * 78
----
166183

skipif mysql # not compatible
query I rowsort label-3313
SELECT - 26 - 85 + - 3 + COUNT ( - + ( 13 ) ) - - 52 * + 41 * 78
----
166183

onlyif mysql # aggregate syntax: 
query II rowsort label-3314
SELECT + + 52 col0, 27 + - + 66 * + - 93 * + COUNT( * ) + 7
----
52
6172

skipif mysql # not compatible
query II rowsort label-3314
SELECT + + 52 col0, 27 + - + 66 * + - 93 * + COUNT ( * ) + 7
----
52
6172

query I rowsort
SELECT ALL + ( + 68 ) * 31
----
2108

query I rowsort
SELECT + NULLIF ( + 41, 29 + + 62 ) col1
----
41

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3317
SELECT CASE WHEN + - 44 <> 44 * - - 17 + 30 AND NOT NULL IS NOT NULL THEN COUNT( * ) WHEN NULL NOT IN ( COUNT( DISTINCT + 86 ) * - COUNT( * ) ) THEN + 53 ELSE ( 66 ) * - CAST( NULL AS SIGNED ) + 10 END
----
1

skipif mysql # not compatible
query I rowsort label-3317
SELECT CASE WHEN + - 44 <> 44 * - - 17 + 30 AND NOT NULL IS NOT NULL THEN COUNT ( * ) WHEN NULL NOT IN ( COUNT ( DISTINCT + 86 ) * - COUNT ( * ) ) THEN + 53 ELSE ( 66 ) * - CAST ( NULL AS INTEGER ) + 10 END
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3318
SELECT ALL - + COUNT( ALL - ( - - 28 ) )
----
-1

skipif mysql # not compatible
query I rowsort label-3318
SELECT ALL - + COUNT ( ALL - ( - - 28 ) )
----
-1

onlyif mysql # DIV for integer division: 
query II rowsort label-3319
SELECT DISTINCT - - 27 AS col2, - 44 DIV - 44 col0
----
27
1

skipif mysql # not compatible
query II rowsort label-3319
SELECT DISTINCT - - 27 AS col2, - 44 / - 44 col0
----
27
1

onlyif mysql # aggregate syntax: 
query II rowsort label-3320
SELECT ALL - - 2 AS col0, + 82 - - COUNT( 92 )
----
2
83

skipif mysql # not compatible
query II rowsort label-3320
SELECT ALL - - 2 AS col0, + 82 - - COUNT ( 92 )
----
2
83

query I rowsort
SELECT + + NULLIF ( - + 14, - 98 ) * - 79 + 7
----
1113

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3322
SELECT DISTINCT 11 DIV - - COALESCE ( - COUNT( * ), - 78 + + + CASE - 2 WHEN + 72 THEN + ( + 7 ) WHEN COUNT( * ) THEN 16 * - ( 74 ) WHEN COUNT( * ) THEN NULL ELSE NULL END * + 74 ) - + 25
----
-36

skipif mysql # not compatible
query I rowsort label-3322
SELECT DISTINCT 11 / - - COALESCE ( - COUNT ( * ), - 78 + + + CASE - 2 WHEN + 72 THEN + ( + 7 ) WHEN COUNT ( * ) THEN 16 * - ( 74 ) WHEN COUNT ( * ) THEN NULL ELSE NULL END * + 74 ) - + 25
----
-36

query I rowsort
SELECT DISTINCT - + 50 AS col1
----
-50

query II rowsort
SELECT 32 col1, - 13 AS col0
----
32
-13

onlyif mysql # DIV for integer division: 
query I rowsort label-3325
SELECT ALL + + 71 DIV NULLIF ( + ( - 48 ), + 55 ) col1
----
-1

skipif mysql # not compatible
query I rowsort label-3325
SELECT ALL + + 71 / NULLIF ( + ( - 48 ), + 55 ) col1
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3326
SELECT DISTINCT 75 AS col1, 50 DIV 36 * + + MIN( + 46 ) + + + 34 AS col2
----
75
80

skipif mysql # not compatible
query II rowsort label-3326
SELECT DISTINCT 75 AS col1, 50 / 36 * + + MIN ( + 46 ) + + + 34 AS col2
----
75
80

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3327
SELECT ALL + + CAST( + - 92 AS SIGNED ) * 43
----
-3956

skipif mysql # not compatible
query I rowsort label-3327
SELECT ALL + + CAST ( + - 92 AS INTEGER ) * 43
----
-3956

onlyif mysql # aggregate syntax: 
query I rowsort label-3328
SELECT - - ( 51 ) * - 71 + + COUNT( * )
----
-3620

skipif mysql # not compatible
query I rowsort label-3328
SELECT - - ( 51 ) * - 71 + + COUNT ( * )
----
-3620

query I rowsort
SELECT 93 * 2
----
186

query I rowsort
SELECT ALL - 14 * + 73 AS col2
----
-1022

onlyif mysql # aggregate syntax: 
query I rowsort label-3331
SELECT MIN( DISTINCT + + ( 1 ) )
----
1

skipif mysql # not compatible
query I rowsort label-3331
SELECT MIN ( DISTINCT + + ( 1 ) )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3332
SELECT 19 * - + CASE COUNT( * ) WHEN - 81 - - 74 THEN NULL ELSE + 79 END
----
-1501

skipif mysql # not compatible
query I rowsort label-3332
SELECT 19 * - + CASE COUNT ( * ) WHEN - 81 - - 74 THEN NULL ELSE + 79 END
----
-1501

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3333
SELECT DISTINCT + NULLIF ( + 3, - 52 * - + 91 + + + 96 * + 55 - - + ( 50 ) / - NULLIF ( ( + 10 ) * + COALESCE ( ( 78 ) * + COUNT( * ), - 75 * ( 2 ) - - COUNT( * ), - 86 + - CAST( NULL AS SIGNED ) ) + - 94, - 53 + + 15 ) ) * 91 AS col0
----
273

skipif mysql # not compatible
query I rowsort label-3333
SELECT DISTINCT + NULLIF ( + 3, - 52 * - + 91 + + + 96 * + 55 - - + ( 50 ) / - NULLIF ( ( + 10 ) * + COALESCE ( ( 78 ) * + COUNT ( * ), - 75 * ( 2 ) - - COUNT ( * ), - 86 + - CAST ( NULL AS INTEGER ) ) + - 94, - 53 + + 15 ) ) * 91 AS col0
----
273

onlyif mysql # aggregate syntax: 
query I rowsort label-3334
SELECT ALL + 89 * + NULLIF ( - 94, - 88 * + ( - 72 ) ) * - 20 * + COALESCE ( - 49, 94 - - COUNT( NULLIF ( - 22, 9 ) + 83 * + 81 ) * 9 ) col2
----
-8198680

skipif mysql # not compatible
query I rowsort label-3334
SELECT ALL + 89 * + NULLIF ( - 94, - 88 * + ( - 72 ) ) * - 20 * + COALESCE ( - 49, 94 - - COUNT ( NULLIF ( - 22, 9 ) + 83 * + 81 ) * 9 ) col2
----
-8198680

query II rowsort
SELECT 19 - + - 23 col2, - ( - 11 ) AS col2
----
42
11

onlyif mysql # aggregate syntax: 
query I rowsort label-3336
SELECT + COUNT( + - 64 ) * + - 69 * - 95 + 77 + + 18
----
6650

skipif mysql # not compatible
query I rowsort label-3336
SELECT + COUNT ( + - 64 ) * + - 69 * - 95 + 77 + + 18
----
6650

onlyif mysql # aggregate syntax: 
query I rowsort label-3337
SELECT - 93 + NULLIF ( + + 38, 54 ) - + NULLIF ( + NULLIF ( - 68, - AVG ( 30 ) * 65 - + COALESCE ( + 46, 9 + - COUNT( * ), - MAX( DISTINCT - 42 ) - - 50 ) ), 83 )
----
13

skipif mysql # not compatible
query I rowsort label-3337
SELECT - 93 + NULLIF ( + + 38, 54 ) - + NULLIF ( + NULLIF ( - 68, - AVG ( 30 ) * 65 - + COALESCE ( + 46, 9 + - COUNT ( * ), - MAX ( DISTINCT - 42 ) - - 50 ) ), 83 )
----
13

query I rowsort
SELECT + 69 + - - 49 * - 45 + ( - CASE + 80 WHEN - ( + 1 ) * - 46 THEN 69 END ) AS col1
----
NULL

query I rowsort
SELECT - COALESCE ( - - 67, 44 )
----
-67

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3340
SELECT + COUNT( * ) + MIN( - 64 ) DIV 12
----
-4

skipif mysql # not compatible
query I rowsort label-3340
SELECT + COUNT ( * ) + MIN ( - 64 ) / 12
----
-4

query I rowsort
SELECT - ( - + 49 ) * + + 17
----
833

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3342
SELECT ALL 57 + 1 col2, SUM( - - 23 ) DIV + 95
----
58
0

skipif mysql # not compatible
query II rowsort label-3342
SELECT ALL 57 + 1 col2, SUM ( - - 23 ) / + 95
----
58
0

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3343
SELECT ALL CAST( + 4 AS SIGNED ) DIV 75 * + 59 * 87 + 37 * + ( - 98 ) * + 25 col0
----
-90650

skipif mysql # not compatible
query I rowsort label-3343
SELECT ALL CAST ( + 4 AS INTEGER ) / 75 * + 59 * 87 + 37 * + ( - 98 ) * + 25 col0
----
-90650

query I rowsort
SELECT ALL 34 + - ( - 86 ) col0
----
120

query I rowsort
SELECT DISTINCT 4 + - 86 AS col0
----
-82

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-3346
SELECT ALL + NULLIF ( - - CAST( NULL AS DECIMAL ), + - 84 - - AVG ( - - 21 ) ) col1, + 54 AS col1
----
NULL
54

skipif mysql # not compatible
query II rowsort label-3346
SELECT ALL + NULLIF ( - - CAST ( NULL AS REAL ), + - 84 - - AVG ( - - 21 ) ) col1, + 54 AS col1
----
NULL
54

query I rowsort
SELECT DISTINCT 73 * + - 51 + - + 68
----
-3791

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3348
SELECT DISTINCT - ( + - 59 ) * + COUNT( + - 45 ) + + 51 * 10 DIV - + 34 AS col1
----
44

skipif mysql # not compatible
query I rowsort label-3348
SELECT DISTINCT - ( + - 59 ) * + COUNT ( + - 45 ) + + 51 * 10 / - + 34 AS col1
----
44

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3349
SELECT - + 0 * 50 * CAST( NULL AS SIGNED ) + - + 11 + 5 * - CASE + 38 WHEN COUNT( * ) THEN 7 - + ( + 21 ) * 11 ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3349
SELECT - + 0 * 50 * CAST ( NULL AS INTEGER ) + - + 11 + 5 * - CASE + 38 WHEN COUNT ( * ) THEN 7 - + ( + 21 ) * 11 ELSE NULL END AS col2
----
NULL

query I rowsort
SELECT ALL + + ( + 59 )
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-3351
SELECT - + 49 * + - 37 - NULLIF ( - - 0, - ( + 38 ) ) + ( - COUNT( * ) ) * - 24 AS col0
----
1837

skipif mysql # not compatible
query I rowsort label-3351
SELECT - + 49 * + - 37 - NULLIF ( - - 0, - ( + 38 ) ) + ( - COUNT ( * ) ) * - 24 AS col0
----
1837

onlyif mysql # aggregate syntax: 
query I rowsort label-3352
SELECT + 46 * 46 * + COUNT( * ) AS col1
----
2116

skipif mysql # not compatible
query I rowsort label-3352
SELECT + 46 * 46 * + COUNT ( * ) AS col1
----
2116

onlyif mysql # aggregate syntax: 
query I rowsort label-3353
SELECT ALL - + CASE - 93 WHEN - 8 THEN - - 93 * - - 25 * COUNT( * ) * - 47 * AVG ( ALL + 2 ) + ( + 73 ) ELSE NULL END * COUNT( * ) - + 51
----
NULL

skipif mysql # not compatible
query I rowsort label-3353
SELECT ALL - + CASE - 93 WHEN - 8 THEN - - 93 * - - 25 * COUNT ( * ) * - 47 * AVG ( ALL + 2 ) + ( + 73 ) ELSE NULL END * COUNT ( * ) - + 51
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3354
SELECT DISTINCT + ( - COUNT( * ) ) AS col1, - 78 AS col1
----
-1
-78

skipif mysql # not compatible
query II rowsort label-3354
SELECT DISTINCT + ( - COUNT ( * ) ) AS col1, - 78 AS col1
----
-1
-78

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3355
SELECT ALL + - SUM( DISTINCT - + 64 ) * CAST( - 31 AS SIGNED ) + - + 83 - 9 AS col2
----
-2076

skipif mysql # not compatible
query I rowsort label-3355
SELECT ALL + - SUM ( DISTINCT - + 64 ) * CAST ( - 31 AS INTEGER ) + - + 83 - 9 AS col2
----
-2076

query I rowsort
SELECT + + 4 * + - 78
----
-312

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3357
SELECT - + ( + 90 ) * COUNT( * ) * CAST( NULL AS SIGNED ) * - - 86
----
NULL

skipif mysql # not compatible
query I rowsort label-3357
SELECT - + ( + 90 ) * COUNT ( * ) * CAST ( NULL AS INTEGER ) * - - 86
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3358
SELECT ALL + SUM( 46 ), 50 AS col0
----
46
50

skipif mysql # not compatible
query II rowsort label-3358
SELECT ALL + SUM ( 46 ), 50 AS col0
----
46
50

onlyif mysql # DIV for integer division: 
query I rowsort label-3359
SELECT - 48 * ( 96 ) + + 7 + + 25 DIV ( - - 8 ) * - 30 AS col1
----
-4691

skipif mysql # not compatible
query I rowsort label-3359
SELECT - 48 * ( 96 ) + + 7 + + 25 / ( - - 8 ) * - 30 AS col1
----
-4691

onlyif mysql # aggregate syntax: 
query I rowsort label-3360
SELECT COALESCE ( - 53, - 77 + COUNT( * ) + - + 66 - + - 48 * + 0 * + 96 - - 4 ) col1
----
-53

skipif mysql # not compatible
query I rowsort label-3360
SELECT COALESCE ( - 53, - 77 + COUNT ( * ) + - + 66 - + - 48 * + 0 * + 96 - - 4 ) col1
----
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-3361
SELECT - + 33 * + + COUNT( * ) + + 86 + + COUNT( * ) * + + 23 * + 71 * 96 + 96 AS col1
----
156917

skipif mysql # not compatible
query I rowsort label-3361
SELECT - + 33 * + + COUNT ( * ) + + 86 + + COUNT ( * ) * + + 23 * + 71 * 96 + 96 AS col1
----
156917

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3362
SELECT DISTINCT + - 27 * + 38, - COALESCE ( + CASE 76 WHEN - 65 * + CASE - 49 WHEN 77 DIV 68 THEN - 44 * + 70 ELSE NULL END THEN - 79 WHEN MAX( DISTINCT + 88 ) THEN + COUNT( * ) DIV ( + 38 * + SUM( ( - 41 ) * 37 ) ) + 33 ELSE NULL END, 41 + - 30 * - CAST( + ( + 87 ) AS SIGNED ) ) DIV - 7 AS col2
----
-1026
378

skipif mysql # not compatible
query II rowsort label-3362
SELECT DISTINCT + - 27 * + 38, - COALESCE ( + CASE 76 WHEN - 65 * + CASE - 49 WHEN 77 / 68 THEN - 44 * + 70 ELSE NULL END THEN - 79 WHEN MAX ( DISTINCT + 88 ) THEN + COUNT ( * ) / ( + 38 * + SUM ( ( - 41 ) * 37 ) ) + 33 ELSE NULL END, 41 + - 30 * - CAST ( + ( + 87 ) AS INTEGER ) ) / - 7 AS col2
----
-1026
378

query I rowsort
SELECT DISTINCT ( ( 17 ) ) col2
----
17

query I rowsort
SELECT - 30 + + 16 * - 55 AS col1
----
-910

onlyif mysql # aggregate syntax: 
query I rowsort label-3365
SELECT ALL COALESCE ( + + COUNT( * ), - 73 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-3365
SELECT ALL COALESCE ( + + COUNT ( * ), - 73 ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3366
SELECT - COUNT( * ) + - + 94 AS col0
----
-95

skipif mysql # not compatible
query I rowsort label-3366
SELECT - COUNT ( * ) + - + 94 AS col0
----
-95

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3367
SELECT ALL + 85 + + 96 + - - COUNT( * ) - + - CASE 12 WHEN - 19 THEN - 39 + - - 21 * 2 WHEN - CAST( NULL AS SIGNED ) - 77 THEN NULL ELSE NULL END + - COUNT( * ) * + ( + AVG ( DISTINCT + ( - 97 ) ) + 62 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3367
SELECT ALL + 85 + + 96 + - - COUNT ( * ) - + - CASE 12 WHEN - 19 THEN - 39 + - - 21 * 2 WHEN - CAST ( NULL AS INTEGER ) - 77 THEN NULL ELSE NULL END + - COUNT ( * ) * + ( + AVG ( DISTINCT + ( - 97 ) ) + 62 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3368
SELECT ( + 15 ) * - 90 - + COUNT( * ) * - + 69 + 37 + - 47 AS col2
----
-1291

skipif mysql # not compatible
query I rowsort label-3368
SELECT ( + 15 ) * - 90 - + COUNT ( * ) * - + 69 + 37 + - 47 AS col2
----
-1291

query I rowsort
SELECT ALL - 13 * + 21 AS col1
----
-273

query II rowsort
SELECT ALL + 58 + - 61 + + + 65 AS col1, + 7 * - 65 * + - 58 AS col1
----
62
26390

query I rowsort
SELECT DISTINCT - 4 + - 95
----
-99

query I rowsort
SELECT - 63 * - - 22 AS col0
----
-1386

onlyif mysql # aggregate syntax: 
query I rowsort label-3373
SELECT ALL - ( + 35 ) * MAX( DISTINCT + - 36 )
----
1260

skipif mysql # not compatible
query I rowsort label-3373
SELECT ALL - ( + 35 ) * MAX ( DISTINCT + - 36 )
----
1260

onlyif mysql # aggregate syntax: 
query I rowsort label-3374
SELECT ALL + 59 + 89 + + 1 - + + 66 + + 98 * + + COUNT( * ) AS col2
----
181

skipif mysql # not compatible
query I rowsort label-3374
SELECT ALL + 59 + 89 + + 1 - + + 66 + + 98 * + + COUNT ( * ) AS col2
----
181

query I rowsort
SELECT + 16 + - 90 col2
----
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-3376
SELECT ALL - 86 + COUNT( * ) - + 71 + - COALESCE ( + + 11, + + 50 + + + 46, 79, + 98 ) AS col0
----
-167

skipif mysql # not compatible
query I rowsort label-3376
SELECT ALL - 86 + COUNT ( * ) - + 71 + - COALESCE ( + + 11, + + 50 + + + 46, 79, + 98 ) AS col0
----
-167

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3377
SELECT + CAST( - 64 AS SIGNED ) + COUNT( - 71 ) - - 40 * + + 6 - - CASE + ( COUNT( 15 ) ) WHEN - 86 THEN 17 ELSE 70 END
----
247

skipif mysql # not compatible
query I rowsort label-3377
SELECT + CAST ( - 64 AS INTEGER ) + COUNT ( - 71 ) - - 40 * + + 6 - - CASE + ( COUNT ( 15 ) ) WHEN - 86 THEN 17 ELSE 70 END
----
247

query I rowsort
SELECT ALL + 23 + 82 * + COALESCE ( 38, 15 )
----
3139

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3379
SELECT - COALESCE ( + - 92, + ( 3 ) DIV + CAST( NULL AS SIGNED ) ) * + NULLIF ( 52, + + 71 ) AS col1
----
4784

skipif mysql # not compatible
query I rowsort label-3379
SELECT - COALESCE ( + - 92, + ( 3 ) / + CAST ( NULL AS INTEGER ) ) * + NULLIF ( 52, + + 71 ) AS col1
----
4784

query I rowsort
SELECT - ( - 44 )
----
44

onlyif mysql # aggregate syntax: 
query II rowsort label-3381
SELECT 72, COUNT( * ) AS col0
----
72
1

skipif mysql # not compatible
query II rowsort label-3381
SELECT 72, COUNT ( * ) AS col0
----
72
1

query I rowsort
SELECT - ( 53 ) AS col0
----
-53

query II rowsort
SELECT ALL 49, 83 AS col0
----
49
83

query I rowsort
SELECT + + 60 * 66 AS col1
----
3960

onlyif mysql # aggregate syntax: 
query II rowsort label-3385
SELECT + + 23, - 96 - - 28 * + - COUNT( * ) * + 67 + - 22 * - 10 AS col1
----
23
-1752

skipif mysql # not compatible
query II rowsort label-3385
SELECT + + 23, - 96 - - 28 * + - COUNT ( * ) * + 67 + - 22 * - 10 AS col1
----
23
-1752

query II rowsort
SELECT 43, + 85 col2
----
43
85

query I rowsort
SELECT DISTINCT - 32 * + 14 AS col2
----
-448

onlyif mysql # DIV for integer division: 
query I rowsort label-3388
SELECT ALL - + 98 DIV - 59 - + 4
----
-3

skipif mysql # not compatible
query I rowsort label-3388
SELECT ALL - + 98 / - 59 - + 4
----
-3

query I rowsort
SELECT DISTINCT + 16 * - 1
----
-16

query I rowsort
SELECT ALL 5 * 70
----
350

onlyif mysql # aggregate syntax: 
query II rowsort label-3391
SELECT + 44 * - 77 + MAX( - + 18 ), - 28 AS col2
----
-3406
-28

skipif mysql # not compatible
query II rowsort label-3391
SELECT + 44 * - 77 + MAX ( - + 18 ), - 28 AS col2
----
-3406
-28

query I rowsort
SELECT ALL + + 84 col2
----
84

query I rowsort
SELECT + + ( - 63 ) + - 47
----
-110

onlyif mysql # aggregate syntax: 
query I rowsort label-3394
SELECT ALL - 38 * 36 * - ( + - COUNT( * ) ) * 23 - - + 60 AS col2
----
-31404

skipif mysql # not compatible
query I rowsort label-3394
SELECT ALL - 38 * 36 * - ( + - COUNT ( * ) ) * 23 - - + 60 AS col2
----
-31404

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3395
SELECT + - 33 / - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3395
SELECT + - 33 / - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3396
SELECT ALL + - CASE + 89 WHEN - - 1 THEN - + 90 + + - 81 ELSE ( + 30 ) DIV - COALESCE ( - 80, 68 + - 42 ) + - 69 END
----
69

skipif mysql # not compatible
query I rowsort label-3396
SELECT ALL + - CASE + 89 WHEN - - 1 THEN - + 90 + + - 81 ELSE ( + 30 ) / - COALESCE ( - 80, 68 + - 42 ) + - 69 END
----
69

query I rowsort
SELECT ALL + - 64
----
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-3398
SELECT NULLIF ( 50, + 17 + - + COUNT( * ) + - 28 + - - 58 / + + 58 )
----
50

skipif mysql # not compatible
query I rowsort label-3398
SELECT NULLIF ( 50, + 17 + - + COUNT ( * ) + - 28 + - - 58 / + + 58 )
----
50

query I rowsort
SELECT - 0 * 33 + + + 80
----
80

query I rowsort
SELECT + 47 * - + 85
----
-3995

onlyif mysql # aggregate syntax: 
query I rowsort label-3401
SELECT - COALESCE ( - + 8, COUNT( * ) ) + - 24 - - - 77 AS col2
----
-93

skipif mysql # not compatible
query I rowsort label-3401
SELECT - COALESCE ( - + 8, COUNT ( * ) ) + - 24 - - - 77 AS col2
----
-93

query I rowsort
SELECT ALL + - 91 AS col1
----
-91

query I rowsort
SELECT + 60 * - 89 AS col0
----
-5340

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3404
SELECT DISTINCT 34 DIV + COUNT( * ) AS col0
----
34

skipif mysql # not compatible
query I rowsort label-3404
SELECT DISTINCT 34 / + COUNT ( * ) AS col0
----
34

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3405
SELECT ALL - + 28 * 63 DIV ( + COUNT( * ) )
----
-1764

skipif mysql # not compatible
query I rowsort label-3405
SELECT ALL - + 28 * 63 / ( + COUNT ( * ) )
----
-1764

query I rowsort
SELECT - 6 * + 46
----
-276

query I rowsort
SELECT DISTINCT - 44 * - 26
----
1144

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3408
SELECT ALL + CAST( + 23 AS SIGNED ) + 13 AS col1
----
36

skipif mysql # not compatible
query I rowsort label-3408
SELECT ALL + CAST ( + 23 AS INTEGER ) + 13 AS col1
----
36

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3409
SELECT ALL - 26 + 78 + + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3409
SELECT ALL - 26 + 78 + + + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3410
SELECT 38 * + CAST( NULL AS SIGNED ) * 15 * + 25 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3410
SELECT 38 * + CAST ( NULL AS INTEGER ) * 15 * + 25 AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3411
SELECT ALL + 54 + - CAST( NULL AS SIGNED ) AS col0, 59 + - + 56 AS col1
----
NULL
3

skipif mysql # not compatible
query II rowsort label-3411
SELECT ALL + 54 + - CAST ( NULL AS INTEGER ) AS col0, 59 + - + 56 AS col1
----
NULL
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3412
SELECT 54 - + - CAST( NULL AS SIGNED ) + COUNT( 16 ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3412
SELECT 54 - + - CAST ( NULL AS INTEGER ) + COUNT ( 16 ) col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3413
SELECT DISTINCT + CAST( - 16 AS SIGNED ) + + ( - 23 )
----
-39

skipif mysql # not compatible
query I rowsort label-3413
SELECT DISTINCT + CAST ( - 16 AS INTEGER ) + + ( - 23 )
----
-39

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3414
SELECT DISTINCT - 82 DIV - 57, + CAST( NULL AS SIGNED ) AS col1
----
1
NULL

skipif mysql # not compatible
query II rowsort label-3414
SELECT DISTINCT - 82 / - 57, + CAST ( NULL AS INTEGER ) AS col1
----
1
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3415
SELECT DISTINCT - 73 + 17 + COUNT( * )
----
-55

skipif mysql # not compatible
query I rowsort label-3415
SELECT DISTINCT - 73 + 17 + COUNT ( * )
----
-55

query I rowsort
SELECT 53 + 41
----
94

query I rowsort
SELECT 89 * 56
----
4984

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3418
SELECT DISTINCT - 82 DIV 76 AS col0, + CASE - 0 WHEN + COUNT( * ) THEN 4 ELSE NULL END
----
-1
NULL

skipif mysql # not compatible
query II rowsort label-3418
SELECT DISTINCT - 82 / 76 AS col0, + CASE - 0 WHEN + COUNT ( * ) THEN 4 ELSE NULL END
----
-1
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3419
SELECT 63 + 24 + 41 - + - ( - + 63 ) DIV + - 86 * - MIN( 37 ) AS col0
----
128

skipif mysql # not compatible
query I rowsort label-3419
SELECT 63 + 24 + 41 - + - ( - + 63 ) / + - 86 * - MIN ( 37 ) AS col0
----
128

onlyif mysql # aggregate syntax: 
query I rowsort label-3420
SELECT ALL - 64 * + MIN( + 75 )
----
-4800

skipif mysql # not compatible
query I rowsort label-3420
SELECT ALL - 64 * + MIN ( + 75 )
----
-4800

onlyif mysql # DIV for integer division: 
query II rowsort label-3421
SELECT 72 + + 98 col2, - 27 DIV - - 53 AS col2
----
170
0

skipif mysql # not compatible
query II rowsort label-3421
SELECT 72 + + 98 col2, - 27 / - - 53 AS col2
----
170
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3422
SELECT 8 DIV + + 16
----
0

skipif mysql # not compatible
query I rowsort label-3422
SELECT 8 / + + 16
----
0

query I rowsort
SELECT 79 * - - 51 AS col1
----
4029

query I rowsort
SELECT 82 + + 84
----
166

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3425
SELECT DISTINCT - - CAST( NULL AS DECIMAL ) * MAX( DISTINCT - 86 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3425
SELECT DISTINCT - - CAST ( NULL AS REAL ) * MAX ( DISTINCT - 86 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3426
SELECT - 37 * + ( CASE + 86 WHEN + + CASE WHEN 90 IS NOT NULL THEN ( 22 ) * + 14 END THEN NULL WHEN + NULLIF ( 8, - NULLIF ( - MIN( 66 ), 68 ) ) THEN 29 ELSE NULL END ) * - 21 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3426
SELECT - 37 * + ( CASE + 86 WHEN + + CASE WHEN 90 IS NOT NULL THEN ( 22 ) * + 14 END THEN NULL WHEN + NULLIF ( 8, - NULLIF ( - MIN ( 66 ), 68 ) ) THEN 29 ELSE NULL END ) * - 21 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3427
SELECT ALL - 42 - - - 32 * + MIN( + 58 ) * 28 AS col0
----
-52010

skipif mysql # not compatible
query I rowsort label-3427
SELECT ALL - 42 - - - 32 * + MIN ( + 58 ) * 28 AS col0
----
-52010

query I rowsort
SELECT + + 63 col2
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-3429
SELECT COALESCE ( + 44, - + 92 * + 91 + 16 * COUNT( * ) * - - MAX( + ( - 43 ) ) + 30 + 59 * + COUNT( * ), - 39 )
----
44

skipif mysql # not compatible
query I rowsort label-3429
SELECT COALESCE ( + 44, - + 92 * + 91 + 16 * COUNT ( * ) * - - MAX ( + ( - 43 ) ) + 30 + 59 * + COUNT ( * ), - 39 )
----
44

query I rowsort
SELECT ALL - - 39 AS col0
----
39

onlyif mysql # DIV for integer division: 
query I rowsort label-3431
SELECT 87 DIV + - 31 + + + 22 - - 64 * NULLIF ( + - 73, - 15 ) DIV + 53 + + 43
----
-25

skipif mysql # not compatible
query I rowsort label-3431
SELECT 87 / + - 31 + + + 22 - - 64 * NULLIF ( + - 73, - 15 ) / + 53 + + 43
----
-25

query I rowsort
SELECT + + 53 col0
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-3433
SELECT COUNT( * ) * COUNT( DISTINCT + - 35 ) + + + NULLIF ( - 48, + 13 ) AS col1
----
-47

skipif mysql # not compatible
query I rowsort label-3433
SELECT COUNT ( * ) * COUNT ( DISTINCT + - 35 ) + + + NULLIF ( - 48, + 13 ) AS col1
----
-47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3434
SELECT CAST( 24 AS SIGNED ) AS col0
----
24

skipif mysql # not compatible
query I rowsort label-3434
SELECT CAST ( 24 AS INTEGER ) AS col0
----
24

query I rowsort
SELECT ALL - - 61
----
61

query I rowsort
SELECT ALL + 10 + - ( - 50 ) * 16 * 67 * 32
----
1715210

query I rowsort
SELECT - 54 * 71 AS col1
----
-3834

query I rowsort
SELECT + 72 + + 16 AS col0
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-3439
SELECT ALL + 66 * COUNT( * )
----
66

skipif mysql # not compatible
query I rowsort label-3439
SELECT ALL + 66 * COUNT ( * )
----
66

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3440
SELECT - 81 DIV + 40, COUNT( * ) + - 38 + + 50 DIV 77 + - + 0 AS col2
----
-2
-37

skipif mysql # not compatible
query II rowsort label-3440
SELECT - 81 / + 40, COUNT ( * ) + - 38 + + 50 / 77 + - + 0 AS col2
----
-2
-37

query I rowsort
SELECT 28 + 84 - - 74
----
186

onlyif mysql # aggregate syntax: 
query I rowsort label-3442
SELECT COUNT( * ) * + 44 AS col0
----
44

skipif mysql # not compatible
query I rowsort label-3442
SELECT COUNT ( * ) * + 44 AS col0
----
44

query I rowsort
SELECT 73 * - + 34 AS col2
----
-2482

query I rowsort
SELECT ALL 82 + + 82 + - 51 * 96 AS col1
----
-4732

query I rowsort
SELECT 47 + + - ( + 41 ) * - 77 AS col1
----
3204

onlyif mysql # aggregate syntax: 
query I rowsort label-3446
SELECT ALL 52 + COUNT( * ) * + 87 * - 35 AS col1
----
-2993

skipif mysql # not compatible
query I rowsort label-3446
SELECT ALL 52 + COUNT ( * ) * + 87 * - 35 AS col1
----
-2993

query II rowsort
SELECT ALL + 59 + - 43 * 28 AS col1, 57
----
-1145
57

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3448
SELECT ALL ( - SUM( - - 52 ) ) + + + 37 + CASE WHEN NULL < MAX( ALL - 27 ) THEN + + 53 + - + 61 * - 41 ELSE NULLIF ( - MAX( DISTINCT + NULLIF ( ( + 14 ), COALESCE ( + 88, 89 ) / - 92 ) ), + CAST( NULL AS SIGNED ) + + 82 / 99 ) END + - 97 * CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3448
SELECT ALL ( - SUM ( - - 52 ) ) + + + 37 + CASE WHEN NULL < MAX ( ALL - 27 ) THEN + + 53 + - + 61 * - 41 ELSE NULLIF ( - MAX ( DISTINCT + NULLIF ( ( + 14 ), COALESCE ( + 88, 89 ) / - 92 ) ), + CAST ( NULL AS INTEGER ) + + 82 / 99 ) END + - 97 * CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT ALL - 95 * - 43 AS col0
----
4085

query I rowsort
SELECT 73 + ( 99 )
----
172

query I rowsort
SELECT ALL - 86 * + 33 AS col2
----
-2838

query II rowsort
SELECT - 81 AS col1, - 47 * - 63
----
-81
2961

onlyif mysql # aggregate syntax: 
query I rowsort label-3453
SELECT 98 + - + COUNT( * )
----
97

skipif mysql # not compatible
query I rowsort label-3453
SELECT 98 + - + COUNT ( * )
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-3454
SELECT - SUM( DISTINCT - 52 )
----
52

skipif mysql # not compatible
query I rowsort label-3454
SELECT - SUM ( DISTINCT - 52 )
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-3455
SELECT 8 + - - 66 * - COUNT( * )
----
-58

skipif mysql # not compatible
query I rowsort label-3455
SELECT 8 + - - 66 * - COUNT ( * )
----
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-3456
SELECT ALL + COUNT( * ) - SUM( DISTINCT + 50 )
----
-49

skipif mysql # not compatible
query I rowsort label-3456
SELECT ALL + COUNT ( * ) - SUM ( DISTINCT + 50 )
----
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-3457
SELECT - SUM( DISTINCT - 39 ) AS col2
----
39

skipif mysql # not compatible
query I rowsort label-3457
SELECT - SUM ( DISTINCT - 39 ) AS col2
----
39

query I rowsort
SELECT ALL 39 * + CASE - - 48 WHEN - 28 + - 16 THEN - 28 * - 35 ELSE NULL END
----
NULL

query I rowsort
SELECT 88 * - 32
----
-2816

onlyif mysql # aggregate syntax: 
query II rowsort label-3460
SELECT DISTINCT COUNT( * ) AS col0, 23
----
1
23

skipif mysql # not compatible
query II rowsort label-3460
SELECT DISTINCT COUNT ( * ) AS col0, 23
----
1
23

query I rowsort
SELECT + 13 + - 48 AS col1
----
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-3462
SELECT ALL + + CASE + COALESCE ( 41, + COUNT( DISTINCT + + 26 ), 4 ) WHEN + COALESCE ( - 19, + 37 * + 47 ) THEN + COUNT( * ) END / COUNT( * ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3462
SELECT ALL + + CASE + COALESCE ( 41, + COUNT ( DISTINCT + + 26 ), 4 ) WHEN + COALESCE ( - 19, + 37 * + 47 ) THEN + COUNT ( * ) END / COUNT ( * ) col0
----
NULL

query I rowsort
SELECT - ( 1 ) + + + 37 + + 10 * - + 29 + 4 - - + 39
----
-211

onlyif mysql # aggregate syntax: 
query I rowsort label-3464
SELECT ALL + + NULLIF ( 29, + 62 * + 97 + 26 ) * - MAX( + - 42 )
----
1218

skipif mysql # not compatible
query I rowsort label-3464
SELECT ALL + + NULLIF ( 29, + 62 * + 97 + 26 ) * - MAX ( + - 42 )
----
1218

query I rowsort
SELECT - 35 * - 84 col0
----
2940

onlyif mysql # aggregate syntax: 
query II rowsort label-3466
SELECT + 42, 21 * - COUNT( * ) * + - MAX( DISTINCT 32 ) AS col0
----
42
672

skipif mysql # not compatible
query II rowsort label-3466
SELECT + 42, 21 * - COUNT ( * ) * + - MAX ( DISTINCT 32 ) AS col0
----
42
672

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3467
SELECT ALL CASE + 90 WHEN - 89 * - 91 + + 39 * - 53 * + - 49 THEN 52 + - - NULLIF ( 65, - NULLIF ( - COUNT( * ), CASE + 98 WHEN CAST( 70 AS SIGNED ) THEN NULL WHEN + 41 THEN 51 WHEN 61 + SUM( - 58 - + 78 / ( 82 + + 81 ) ) THEN NULL END * - 15 ) * 38 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-3467
SELECT ALL CASE + 90 WHEN - 89 * - 91 + + 39 * - 53 * + - 49 THEN 52 + - - NULLIF ( 65, - NULLIF ( - COUNT ( * ), CASE + 98 WHEN CAST ( 70 AS INTEGER ) THEN NULL WHEN + 41 THEN 51 WHEN 61 + SUM ( - 58 - + 78 / ( 82 + + 81 ) ) THEN NULL END * - 15 ) * 38 ) END
----
NULL

query I rowsort
SELECT ALL + - 62 * - 81 col0
----
5022

onlyif mysql # aggregate syntax: 
query I rowsort label-3469
SELECT ALL - - 49 * COUNT( * )
----
49

skipif mysql # not compatible
query I rowsort label-3469
SELECT ALL - - 49 * COUNT ( * )
----
49

query I rowsort
SELECT ( + + 96 ) * + ( + - 99 ) AS col1
----
-9504

onlyif mysql # aggregate syntax: 
query I rowsort label-3471
SELECT + NULLIF ( - 83, - + COUNT( * ) - - COUNT( * ) ) AS col1
----
-83

skipif mysql # not compatible
query I rowsort label-3471
SELECT + NULLIF ( - 83, - + COUNT ( * ) - - COUNT ( * ) ) AS col1
----
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-3472
SELECT ALL - - 63 * - 99 + - 38 + + + 81 * + NULLIF ( - 50, - NULLIF ( + 3, + COUNT( * ) + NULLIF ( 40, - ( 96 ) * 49 ) + 39 * 32 ) ) AS col0
----
-10325

skipif mysql # not compatible
query I rowsort label-3472
SELECT ALL - - 63 * - 99 + - 38 + + + 81 * + NULLIF ( - 50, - NULLIF ( + 3, + COUNT ( * ) + NULLIF ( 40, - ( 96 ) * 49 ) + 39 * 32 ) ) AS col0
----
-10325

query I rowsort
SELECT - 51 + + + 89 AS col0
----
38

query I rowsort
SELECT 93 * - - 16
----
1488

onlyif mysql # aggregate syntax: 
query I rowsort label-3475
SELECT ALL + - COUNT( ALL + 44 ) col2
----
-1

skipif mysql # not compatible
query I rowsort label-3475
SELECT ALL + - COUNT ( ALL + 44 ) col2
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3476
SELECT ALL - MIN( ALL + + CAST( NULL AS SIGNED ) ) * - CASE - 87 WHEN + 15 * + + ( + + 83 ) THEN + 24 + + 38 ELSE NULL END + + 1 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3476
SELECT ALL - MIN ( ALL + + CAST ( NULL AS INTEGER ) ) * - CASE - 87 WHEN + 15 * + + ( + + 83 ) THEN + 24 + + 38 ELSE NULL END + + 1 AS col1
----
NULL

query I rowsort
SELECT - - 98 * + COALESCE ( + - 20, + 40 )
----
-1960

onlyif mysql # aggregate syntax: 
query I rowsort label-3478
SELECT - COUNT( * ) - 51 * 38 * - - 52 col1
----
-100777

skipif mysql # not compatible
query I rowsort label-3478
SELECT - COUNT ( * ) - 51 * 38 * - - 52 col1
----
-100777

onlyif mysql # aggregate syntax: 
query I rowsort label-3479
SELECT + CASE - - 58 WHEN + 17 THEN NULL WHEN - COUNT( * ) THEN + - 40 + 9 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3479
SELECT + CASE - - 58 WHEN + 17 THEN NULL WHEN - COUNT ( * ) THEN + - 40 + 9 END AS col1
----
NULL

query I rowsort
SELECT ALL 41 * + ( + 77 ) * - 85
----
-268345

query II rowsort
SELECT + 9 AS col2, - 37 AS col1
----
9
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-3482
SELECT DISTINCT ( - 28 ) * 33 * + MAX( DISTINCT 68 ) - + 25
----
-62857

skipif mysql # not compatible
query I rowsort label-3482
SELECT DISTINCT ( - 28 ) * 33 * + MAX ( DISTINCT 68 ) - + 25
----
-62857

query I rowsort
SELECT ALL + 0 * 97 * + 27 * - 58 AS col1
----
0

query I rowsort
SELECT ALL 57 * + + 84 - NULLIF ( 2, + 91 )
----
4786

onlyif mysql # aggregate syntax: 
query I rowsort label-3485
SELECT DISTINCT 40 * + - 6 * - COUNT( * ) * + ( - ( + - COUNT( * ) ) ) AS col1
----
240

skipif mysql # not compatible
query I rowsort label-3485
SELECT DISTINCT 40 * + - 6 * - COUNT ( * ) * + ( - ( + - COUNT ( * ) ) ) AS col1
----
240

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3486
SELECT ALL + 18 AS col0, - COUNT( * ) * - 33 + + 13 * + 55 * CAST( NULL AS SIGNED )
----
18
NULL

skipif mysql # not compatible
query II rowsort label-3486
SELECT ALL + 18 AS col0, - COUNT ( * ) * - 33 + + 13 * + 55 * CAST ( NULL AS INTEGER )
----
18
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3487
SELECT MAX( ALL + - 11 ) col2
----
-11

skipif mysql # not compatible
query I rowsort label-3487
SELECT MAX ( ALL + - 11 ) col2
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-3488
SELECT + ( - 90 ) * - COUNT( * )
----
90

skipif mysql # not compatible
query I rowsort label-3488
SELECT + ( - 90 ) * - COUNT ( * )
----
90

query II rowsort
SELECT - ( - + 69 ), - 79 * + - 18 AS col2
----
69
1422

query I rowsort
SELECT ALL 69 - + - 30
----
99

query II rowsort
SELECT 64, - 69 col0
----
64
-69

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3492
SELECT + CAST( NULL AS SIGNED ) * - - 82 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3492
SELECT + CAST ( NULL AS INTEGER ) * - - 82 AS col1
----
NULL

query II rowsort
SELECT ALL 88, + 83 + 47 AS col2
----
88
130

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3494
SELECT + CAST( + 96 AS SIGNED ) - + - 33 col0
----
129

skipif mysql # not compatible
query I rowsort label-3494
SELECT + CAST ( + 96 AS INTEGER ) - + - 33 col0
----
129

query I rowsort
SELECT - COALESCE ( + + 23, + 56 ) AS col2
----
-23

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3496
SELECT ALL COUNT( * ) AS col0, CASE + 53 WHEN - 73 * + - 16 + + + 81 + + + 35 * - 17 THEN NULL WHEN 87 THEN NULL WHEN - NULLIF ( - ( + CASE NULLIF ( - COUNT( * ), - 94 ) WHEN + 19 THEN NULLIF ( + 62, - COUNT( * ) ) END ), - 77 + - 71 * + 51 ) * - COUNT( * ) THEN + 64 DIV 29 + + 39 ELSE 92 DIV 84 END AS col0
----
1
1

skipif mysql # not compatible
query II rowsort label-3496
SELECT ALL COUNT ( * ) AS col0, CASE + 53 WHEN - 73 * + - 16 + + + 81 + + + 35 * - 17 THEN NULL WHEN 87 THEN NULL WHEN - NULLIF ( - ( + CASE NULLIF ( - COUNT ( * ), - 94 ) WHEN + 19 THEN NULLIF ( + 62, - COUNT ( * ) ) END ), - 77 + - 71 * + 51 ) * - COUNT ( * ) THEN + 64 / 29 + + 39 ELSE 92 / 84 END AS col0
----
1
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3497
SELECT ALL MAX( - 96 ) DIV 11 * 58 * ( + 32 ) * + - CAST( + 94 AS SIGNED ) - + 4
----
1395708

skipif mysql # not compatible
query I rowsort label-3497
SELECT ALL MAX ( - 96 ) / 11 * 58 * ( + 32 ) * + - CAST ( + 94 AS INTEGER ) - + 4
----
1395708

query I rowsort
SELECT + 3 * - NULLIF ( - 27, 5 + + 2 ) AS col2
----
81

query I rowsort
SELECT ALL - 95 * + 30
----
-2850

onlyif mysql # DIV for integer division: 
query I rowsort label-3500
SELECT + + 90 DIV - - 21
----
4

skipif mysql # not compatible
query I rowsort label-3500
SELECT + + 90 / - - 21
----
4

onlyif mysql # aggregate syntax: 
query II rowsort label-3501
SELECT DISTINCT 70, + COUNT( * ) AS col1
----
70
1

skipif mysql # not compatible
query II rowsort label-3501
SELECT DISTINCT 70, + COUNT ( * ) AS col1
----
70
1

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3502
SELECT + + 20 + 24 + - COUNT( * ) + - CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-3502
SELECT + + 20 + 24 + - COUNT ( * ) + - CAST ( NULL AS REAL )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3503
SELECT - + COUNT( * ) - 86
----
-87

skipif mysql # not compatible
query I rowsort label-3503
SELECT - + COUNT ( * ) - 86
----
-87

query I rowsort
SELECT - + 77 AS col2
----
-77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3505
SELECT + + CAST( + + ( + COALESCE ( + - 16, + 39, + ( 29 ) + - COUNT( * ) * - COUNT( * ) + + 75 / + 82 ) ) AS SIGNED ) + + 45 AS col2
----
29

skipif mysql # not compatible
query I rowsort label-3505
SELECT + + CAST ( + + ( + COALESCE ( + - 16, + 39, + ( 29 ) + - COUNT ( * ) * - COUNT ( * ) + + 75 / + 82 ) ) AS INTEGER ) + + 45 AS col2
----
29

query I rowsort
SELECT - ( 1 ) AS col1
----
-1

query I rowsort
SELECT + - 96 + 66 AS col1
----
-30

query I rowsort
SELECT ALL + ( - - 55 ) + + 58
----
113

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3509
SELECT DISTINCT + CAST( NULL AS SIGNED ) + + - 63 + - 37 + - - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3509
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + + - 63 + - 37 + - - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3510
SELECT ALL - COUNT( DISTINCT - 78 ) + + + 48 AS col2
----
47

skipif mysql # not compatible
query I rowsort label-3510
SELECT ALL - COUNT ( DISTINCT - 78 ) + + + 48 AS col2
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-3511
SELECT ALL + COUNT( * ) + COUNT( * ) col0
----
2

skipif mysql # not compatible
query I rowsort label-3511
SELECT ALL + COUNT ( * ) + COUNT ( * ) col0
----
2

query I rowsort
SELECT - 27 + - + 52 AS col1
----
-79

query I rowsort
SELECT ALL 44 col0
----
44

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3514
SELECT - NULLIF ( + MAX( + 11 ), CAST( NULL AS DECIMAL ) ) + + 56
----
45

skipif mysql # not compatible
query I rowsort label-3514
SELECT - NULLIF ( + MAX ( + 11 ), CAST ( NULL AS REAL ) ) + + 56
----
45

query I rowsort
SELECT + ( + 42 )
----
42

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3516
SELECT - + 45 * - - COUNT( DISTINCT + CAST( NULL AS DECIMAL ) ) + + CASE + 1 WHEN - - COUNT( * ) / - - 70 THEN CASE 71 WHEN CAST( NULL AS SIGNED ) * - 90 * 59 THEN + ( - 87 ) ELSE + AVG ( ALL - 42 ) END + - COUNT( * ) * - 19 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3516
SELECT - + 45 * - - COUNT ( DISTINCT + CAST ( NULL AS REAL ) ) + + CASE + 1 WHEN - - COUNT ( * ) / - - 70 THEN CASE 71 WHEN CAST ( NULL AS INTEGER ) * - 90 * 59 THEN + ( - 87 ) ELSE + AVG ( ALL - 42 ) END + - COUNT ( * ) * - 19 END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3517
SELECT + + 84 AS col2, COUNT( * )
----
84
1

skipif mysql # not compatible
query II rowsort label-3517
SELECT + + 84 AS col2, COUNT ( * )
----
84
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3518
SELECT - 85 * - 62 * + 68 * + + COUNT( 7 )
----
358360

skipif mysql # not compatible
query I rowsort label-3518
SELECT - 85 * - 62 * + 68 * + + COUNT ( 7 )
----
358360

query I rowsort
SELECT ALL + + NULLIF ( + 18, - + ( - 52 ) ) * - 13 col1
----
-234

onlyif mysql # aggregate syntax: 
query II rowsort label-3520
SELECT ( COUNT( * ) ) col1, - SUM( DISTINCT + 26 ) * - 91 - + ( + COUNT( * ) )
----
1
2365

skipif mysql # not compatible
query II rowsort label-3520
SELECT ( COUNT ( * ) ) col1, - SUM ( DISTINCT + 26 ) * - 91 - + ( + COUNT ( * ) )
----
1
2365

query I rowsort
SELECT DISTINCT - ( - - 3 ) * 45 * + 19 AS col0
----
-2565

query I rowsort
SELECT 4 * - 64 + + 97 col1
----
-159

query I rowsort
SELECT ALL - 68 * + 94
----
-6392

query II rowsort
SELECT DISTINCT + 14 * + 89 col2, ( + + 28 ) + + + 65
----
1246
93

onlyif mysql # aggregate syntax: 
query I rowsort label-3525
SELECT DISTINCT 85 * - 2 - + MAX( DISTINCT 9 ) * 92
----
-998

skipif mysql # not compatible
query I rowsort label-3525
SELECT DISTINCT 85 * - 2 - + MAX ( DISTINCT 9 ) * 92
----
-998

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3526
SELECT ( + COUNT( * ) ) AS col2, CASE MAX( DISTINCT - 62 ) WHEN + ( - NULLIF ( + MAX( - 60 ), 40 ) ) * - + 1 THEN + 80 WHEN MIN( DISTINCT CAST( NULL AS SIGNED ) ) THEN - COUNT( * ) ELSE NULL END * 98 AS col2
----
1
NULL

skipif mysql # not compatible
query II rowsort label-3526
SELECT ( + COUNT ( * ) ) AS col2, CASE MAX ( DISTINCT - 62 ) WHEN + ( - NULLIF ( + MAX ( - 60 ), 40 ) ) * - + 1 THEN + 80 WHEN MIN ( DISTINCT CAST ( NULL AS INTEGER ) ) THEN - COUNT ( * ) ELSE NULL END * 98 AS col2
----
1
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3527
SELECT + COUNT( ALL - CAST( NULL AS SIGNED ) ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3527
SELECT + COUNT ( ALL - CAST ( NULL AS INTEGER ) ) AS col1
----
0

query I rowsort
SELECT ALL + COALESCE ( + 6, + ( - 2 ) + 98 - - + 55 )
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-3529
SELECT - COUNT( * ) + + 37 * 42 * - 23 * + 82
----
-2930845

skipif mysql # not compatible
query I rowsort label-3529
SELECT - COUNT ( * ) + + 37 * 42 * - 23 * + 82
----
-2930845

query I rowsort
SELECT + 87 - + - 58
----
145

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3531
SELECT + 46 * + 49, - ( CAST( - 65 AS SIGNED ) ) AS col1
----
2254
65

skipif mysql # not compatible
query II rowsort label-3531
SELECT + 46 * + 49, - ( CAST ( - 65 AS INTEGER ) ) AS col1
----
2254
65

query I rowsort
SELECT ALL + ( 59 )
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-3533
SELECT CASE - 81 WHEN + + 25 * 83 + 66 * - COUNT( * ) THEN NULL ELSE + 14 END
----
14

skipif mysql # not compatible
query I rowsort label-3533
SELECT CASE - 81 WHEN + + 25 * 83 + 66 * - COUNT ( * ) THEN NULL ELSE + 14 END
----
14

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3534
SELECT NULLIF ( NULLIF ( MAX( ALL CAST( NULL AS SIGNED ) ), + 11 + + 4 * + 1 ), - ( COUNT( * ) ) + + 12 + 22 + - + 17 * 79 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3534
SELECT NULLIF ( NULLIF ( MAX ( ALL CAST ( NULL AS INTEGER ) ), + 11 + + 4 * + 1 ), - ( COUNT ( * ) ) + + 12 + 22 + - + 17 * 79 )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3535
SELECT - CAST( NULL AS SIGNED ) * + MAX( DISTINCT - + 7 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3535
SELECT - CAST ( NULL AS INTEGER ) * + MAX ( DISTINCT - + 7 ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3536
SELECT ALL NULLIF ( - 54, - 43 ) * - COUNT( DISTINCT 57 ), COUNT( * ) AS col2
----
54
1

skipif mysql # not compatible
query II rowsort label-3536
SELECT ALL NULLIF ( - 54, - 43 ) * - COUNT ( DISTINCT 57 ), COUNT ( * ) AS col2
----
54
1

query I rowsort
SELECT DISTINCT ( ( + - 52 ) ) * 84 AS col0
----
-4368

onlyif mysql # aggregate syntax: 
query I rowsort label-3538
SELECT - CASE - ( + 0 ) WHEN 18 + - 60 THEN NULL WHEN - CASE - 67 WHEN + - 79 * + COUNT( * ) / 30 - + 32 * + 69 THEN MAX( DISTINCT + 34 ) / + 0 ELSE NULL END * + ( + 45 ) + + 19 * 17 THEN 20 WHEN + SUM( ALL + 78 ) + + 69 THEN 29 * 74 ELSE + NULLIF ( 82, + 72 + 26 ) * 7 END * - 92 + MIN( 88 + 57 ) AS col0
----
52953

skipif mysql # not compatible
query I rowsort label-3538
SELECT - CASE - ( + 0 ) WHEN 18 + - 60 THEN NULL WHEN - CASE - 67 WHEN + - 79 * + COUNT ( * ) / 30 - + 32 * + 69 THEN MAX ( DISTINCT + 34 ) / + 0 ELSE NULL END * + ( + 45 ) + + 19 * 17 THEN 20 WHEN + SUM ( ALL + 78 ) + + 69 THEN 29 * 74 ELSE + NULLIF ( 82, + 72 + 26 ) * 7 END * - 92 + MIN ( 88 + 57 ) AS col0
----
52953

onlyif mysql # aggregate syntax: 
query II rowsort label-3539
SELECT ALL + 43 * 94 * + 62 * 9 + 46 + - 3 + + - COUNT( * ) AS col1, - 2 + - + CASE + 6 WHEN 11 THEN NULL ELSE 79 - 8 END col0
----
2255478
-73

skipif mysql # not compatible
query II rowsort label-3539
SELECT ALL + 43 * 94 * + 62 * 9 + 46 + - 3 + + - COUNT ( * ) AS col1, - 2 + - + CASE + 6 WHEN 11 THEN NULL ELSE 79 - 8 END col0
----
2255478
-73

query I rowsort
SELECT - - 15 col0
----
15

query I rowsort
SELECT + 31 + 53 * + 54
----
2893

onlyif mysql # DIV for integer division: 
query I rowsort label-3542
SELECT + 44 + 98 + - 32 DIV + COALESCE ( - 18, - 1 * + 72 )
----
143

skipif mysql # not compatible
query I rowsort label-3542
SELECT + 44 + 98 + - 32 / + COALESCE ( - 18, - 1 * + 72 )
----
143

onlyif mysql # aggregate syntax: 
query II rowsort label-3543
SELECT - + COUNT( DISTINCT - 89 ) AS col0, - 45 + COALESCE ( + + NULLIF ( - - 64, + - 28 ), - 44 ) * - ( - COUNT( * ) ) * + + 90 + 76 - - 48 * - 55
----
-1
3151

skipif mysql # not compatible
query II rowsort label-3543
SELECT - + COUNT ( DISTINCT - 89 ) AS col0, - 45 + COALESCE ( + + NULLIF ( - - 64, + - 28 ), - 44 ) * - ( - COUNT ( * ) ) * + + 90 + 76 - - 48 * - 55
----
-1
3151

query I rowsort
SELECT ALL 28 + - 28 + + 35
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-3545
SELECT ALL COUNT( * ) + + 10 - + 76 * - ( + - 50 ) * + + MAX( DISTINCT 56 ) + - - 16 * - COUNT( * ) * + 25 AS col0
----
-213189

skipif mysql # not compatible
query I rowsort label-3545
SELECT ALL COUNT ( * ) + + 10 - + 76 * - ( + - 50 ) * + + MAX ( DISTINCT 56 ) + - - 16 * - COUNT ( * ) * + 25 AS col0
----
-213189

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3546
SELECT + + 34 * - - COUNT( * ) DIV - 94
----
0

skipif mysql # not compatible
query I rowsort label-3546
SELECT + + 34 * - - COUNT ( * ) / - 94
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3547
SELECT ALL - COUNT( * ) * - 0 * 60 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3547
SELECT ALL - COUNT ( * ) * - 0 * 60 AS col2
----
0

query II rowsort
SELECT DISTINCT 90 + + 79, - 5 AS col1
----
169
-5

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3549
SELECT - CAST( 92 AS SIGNED ) AS col0, 25 * + 61 AS col1
----
-92
1525

skipif mysql # not compatible
query II rowsort label-3549
SELECT - CAST ( 92 AS INTEGER ) AS col0, 25 * + 61 AS col1
----
-92
1525

onlyif mysql # DIV for integer division: 
query I rowsort label-3550
SELECT ( + 99 ) DIV - ( 48 ) AS col2
----
-2

skipif mysql # not compatible
query I rowsort label-3550
SELECT ( + 99 ) / - ( 48 ) AS col2
----
-2

query I rowsort
SELECT ALL - 79 + + 56
----
-23

query I rowsort
SELECT 94 + + - 38 * + + 44 AS col2
----
-1578

query I rowsort
SELECT + 91 * - 79
----
-7189

query I rowsort
SELECT 53 * + 84 AS col2
----
4452

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3555
SELECT ALL CAST( NULL AS DECIMAL ) * + 27
----
NULL

skipif mysql # not compatible
query I rowsort label-3555
SELECT ALL CAST ( NULL AS REAL ) * + 27
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3556
SELECT COALESCE ( - 90, 60 * + 71 DIV - 80 + + 4 ) AS col0
----
-90

skipif mysql # not compatible
query I rowsort label-3556
SELECT COALESCE ( - 90, 60 * + 71 / - 80 + + 4 ) AS col0
----
-90

query I rowsort
SELECT - - 84 col1
----
84

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3558
SELECT COUNT( * ) * - CASE - 72 WHEN + 63 THEN NULL WHEN - CAST( NULL AS SIGNED ) * SUM( ALL - 37 ) THEN NULL ELSE + - 39 DIV - - 96 + + - 79 - - 14 * + 12 + + 9 END DIV 23
----
-4

skipif mysql # not compatible
query I rowsort label-3558
SELECT COUNT ( * ) * - CASE - 72 WHEN + 63 THEN NULL WHEN - CAST ( NULL AS INTEGER ) * SUM ( ALL - 37 ) THEN NULL ELSE + - 39 / - - 96 + + - 79 - - 14 * + 12 + + 9 END / 23
----
-4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3559
SELECT ALL - CAST( NULL AS SIGNED ) * + + 80 + - + 85 + 25 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3559
SELECT ALL - CAST ( NULL AS INTEGER ) * + + 80 + - + 85 + 25 col0
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-3560
SELECT 27 DIV - 59 + 87 AS col2, + 55 col1
----
87
55

skipif mysql # not compatible
query II rowsort label-3560
SELECT 27 / - 59 + 87 AS col2, + 55 col1
----
87
55

query II rowsort
SELECT DISTINCT - 34 AS col1, - ( - 46 )
----
-34
46

query I rowsort
SELECT DISTINCT - 5 AS col2
----
-5

onlyif mysql # aggregate syntax: 
query II rowsort label-3563
SELECT 83 AS col2, ( + - COUNT( * ) ) * 23 AS col1
----
83
-23

skipif mysql # not compatible
query II rowsort label-3563
SELECT 83 AS col2, ( + - COUNT ( * ) ) * 23 AS col1
----
83
-23

onlyif mysql # DIV for integer division: 
query I rowsort label-3564
SELECT + 37 * 22 DIV + 58 + - 55 AS col0
----
-41

skipif mysql # not compatible
query I rowsort label-3564
SELECT + 37 * 22 / + 58 + - 55 AS col0
----
-41

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3565
SELECT 2 DIV - MAX( - 48 )
----
0

skipif mysql # not compatible
query I rowsort label-3565
SELECT 2 / - MAX ( - 48 )
----
0

query I rowsort
SELECT ALL - 37 * 95
----
-3515

query I rowsort
SELECT 72 * - 32 AS col1
----
-2304

query I rowsort
SELECT ALL + 65 * - - 17
----
1105

onlyif mysql # DIV for integer division: 
query I rowsort label-3569
SELECT 92 DIV + 34 AS col2
----
2

skipif mysql # not compatible
query I rowsort label-3569
SELECT 92 / + 34 AS col2
----
2

query I rowsort
SELECT ALL 16 * - 37 AS col1
----
-592

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3571
SELECT 98 * 72 * + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3571
SELECT 98 * 72 * + CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3572
SELECT DISTINCT - MAX( ALL + + 11 )
----
-11

skipif mysql # not compatible
query I rowsort label-3572
SELECT DISTINCT - MAX ( ALL + + 11 )
----
-11

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3573
SELECT ALL - CAST( 81 AS SIGNED )
----
-81

skipif mysql # not compatible
query I rowsort label-3573
SELECT ALL - CAST ( 81 AS INTEGER )
----
-81

query I rowsort
SELECT ALL + 65 + - 41 * - - 97 + + 80 + 72
----
-3760

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3575
SELECT SUM( DISTINCT - 34 ) DIV + 56 AS col2, 95 * - 91 * + + 64
----
0
-553280

skipif mysql # not compatible
query II rowsort label-3575
SELECT SUM ( DISTINCT - 34 ) / + 56 AS col2, 95 * - 91 * + + 64
----
0
-553280

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3576
SELECT 17 DIV - - CAST( 25 AS SIGNED ) * - 88 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3576
SELECT 17 / - - CAST ( 25 AS INTEGER ) * - 88 AS col1
----
0

query I rowsort
SELECT 97 * - + 28 * - 20 * + 94
----
5106080

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3578
SELECT DISTINCT - 76 + - - 64 DIV + 76 + NULLIF ( + 91, 16 * COALESCE ( - 98, - + 35 ) - - 65 * - - 44 + + 0 + + 42 - + 29 * CAST( MAX( DISTINCT 38 ) AS SIGNED ) ) DIV + 27 AS col1
----
-73

skipif mysql # not compatible
query I rowsort label-3578
SELECT DISTINCT - 76 + - - 64 / + 76 + NULLIF ( + 91, 16 * COALESCE ( - 98, - + 35 ) - - 65 * - - 44 + + 0 + + 42 - + 29 * CAST ( MAX ( DISTINCT 38 ) AS INTEGER ) ) / + 27 AS col1
----
-73

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3579
SELECT DISTINCT - SUM( ALL + - 44 ) + + - CAST( - - COUNT( * ) AS SIGNED ) col1
----
43

skipif mysql # not compatible
query I rowsort label-3579
SELECT DISTINCT - SUM ( ALL + - 44 ) + + - CAST ( - - COUNT ( * ) AS INTEGER ) col1
----
43

query II rowsort
SELECT - 61 AS col1, 14 * - 89
----
-61
-1246

onlyif mysql # aggregate syntax: 
query I rowsort label-3581
SELECT ALL - + 43 + + - MAX( ALL 89 )
----
-132

skipif mysql # not compatible
query I rowsort label-3581
SELECT ALL - + 43 + + - MAX ( ALL 89 )
----
-132

query I rowsort
SELECT + 82 - + 92
----
-10

onlyif mysql # aggregate syntax: 
query II rowsort label-3583
SELECT ALL COUNT( * ) AS col1, 83 - 49 AS col2
----
1
34

skipif mysql # not compatible
query II rowsort label-3583
SELECT ALL COUNT ( * ) AS col1, 83 - 49 AS col2
----
1
34

query II rowsort
SELECT - 45 col1, 49
----
-45
49

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3585
SELECT CAST( NULLIF ( + 86, + CAST( + 57 AS DECIMAL ) ) AS SIGNED ) * - - 62 AS col1
----
5332

skipif mysql # not compatible
query I rowsort label-3585
SELECT CAST ( NULLIF ( + 86, + CAST ( + 57 AS REAL ) ) AS INTEGER ) * - - 62 AS col1
----
5332

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3586
SELECT ALL - MIN( - ( 17 ) ) + + ( - CAST( + - 2 AS SIGNED ) ) + - + 61
----
-42

skipif mysql # not compatible
query I rowsort label-3586
SELECT ALL - MIN ( - ( 17 ) ) + + ( - CAST ( + - 2 AS INTEGER ) ) + - + 61
----
-42

query I rowsort
SELECT - 48 * - 45
----
2160

onlyif mysql # aggregate syntax: 
query I rowsort label-3588
SELECT + ( + ( - + SUM( + 6 ) ) )
----
-6

skipif mysql # not compatible
query I rowsort label-3588
SELECT + ( + ( - + SUM ( + 6 ) ) )
----
-6

query I rowsort
SELECT 32 + - + 10
----
22

query I rowsort
SELECT 78 + - - 92 AS col0
----
170

query I rowsort
SELECT 22 - + 31 AS col0
----
-9

query I rowsort
SELECT ALL + + 71 - 17
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-3593
SELECT DISTINCT - + NULLIF ( - + 69, 34 ) * + + 47 + - ( + COUNT( * ) ) AS col0
----
3242

skipif mysql # not compatible
query I rowsort label-3593
SELECT DISTINCT - + NULLIF ( - + 69, 34 ) * + + 47 + - ( + COUNT ( * ) ) AS col0
----
3242

query I rowsort
SELECT DISTINCT + 42
----
42

query I rowsort
SELECT ALL - 67 - - 81
----
14

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3596
SELECT COUNT( * ) DIV 12 * - 31 + + 25
----
25

skipif mysql # not compatible
query I rowsort label-3596
SELECT COUNT ( * ) / 12 * - 31 + + 25
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-3597
SELECT DISTINCT - COUNT( DISTINCT 84 )
----
-1

skipif mysql # not compatible
query I rowsort label-3597
SELECT DISTINCT - COUNT ( DISTINCT 84 )
----
-1

query I rowsort
SELECT 47 + - + 95
----
-48

query II rowsort
SELECT ALL 25, - CASE 17 WHEN 74 * NULLIF ( - 60, - - 46 ) * - - COALESCE ( + 41, - 99 + - + 79 ) THEN 97 WHEN - 95 + - 86 THEN - ( 17 ) + + 82 ELSE NULL END col0
----
25
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3600
SELECT ALL 82 DIV ( - COALESCE ( + - ( 10 ), + 82 ) )
----
8

skipif mysql # not compatible
query I rowsort label-3600
SELECT ALL 82 / ( - COALESCE ( + - ( 10 ), + 82 ) )
----
8

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3601
SELECT 47 DIV - 90 * + MIN( + 16 ) * 60
----
0

skipif mysql # not compatible
query I rowsort label-3601
SELECT 47 / - 90 * + MIN ( + 16 ) * 60
----
0

query II rowsort
SELECT DISTINCT 17 * - 68, + 26 AS col0
----
-1156
26

onlyif mysql # aggregate syntax: 
query I rowsort label-3603
SELECT ALL 76 * - + NULLIF ( - MAX( + - 68 ), - 42 ) AS col2
----
-5168

skipif mysql # not compatible
query I rowsort label-3603
SELECT ALL 76 * - + NULLIF ( - MAX ( + - 68 ), - 42 ) AS col2
----
-5168

query I rowsort
SELECT DISTINCT 11 * - + 29 * - NULLIF ( - 1, - 61 + - NULLIF ( + 76, - + 5 * + 36 - - 78 ) ) AS col1
----
-319

query I rowsort
SELECT DISTINCT - 43 col0
----
-43

onlyif mysql # aggregate syntax: 
query II rowsort label-3606
SELECT + COUNT( + - 78 ), - 40 AS col1
----
1
-40

skipif mysql # not compatible
query II rowsort label-3606
SELECT + COUNT ( + - 78 ), - 40 AS col1
----
1
-40

query I rowsort
SELECT DISTINCT 75 + 46
----
121

onlyif mysql # aggregate syntax: 
query I rowsort label-3608
SELECT 78 * + COUNT( * ) + + 74 AS col0
----
152

skipif mysql # not compatible
query I rowsort label-3608
SELECT 78 * + COUNT ( * ) + + 74 AS col0
----
152

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3609
SELECT COUNT( * ) * - 96 DIV - 49
----
1

skipif mysql # not compatible
query I rowsort label-3609
SELECT COUNT ( * ) * - 96 / - 49
----
1

query II rowsort
SELECT ALL 10 + - 26 AS col2, + 39 * - + 60
----
-16
-2340

onlyif mysql # DIV for integer division: 
query I rowsort label-3611
SELECT 97 DIV - 56 + + + 31
----
30

skipif mysql # not compatible
query I rowsort label-3611
SELECT 97 / - 56 + + + 31
----
30

onlyif mysql # aggregate syntax: 
query II rowsort label-3612
SELECT COUNT( DISTINCT + 17 ) col2, + 78 * - 58 * + + 55
----
1
-248820

skipif mysql # not compatible
query II rowsort label-3612
SELECT COUNT ( DISTINCT + 17 ) col2, + 78 * - 58 * + + 55
----
1
-248820

onlyif mysql # aggregate syntax: 
query I rowsort label-3613
SELECT ALL 62 + - COUNT( * )
----
61

skipif mysql # not compatible
query I rowsort label-3613
SELECT ALL 62 + - COUNT ( * )
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-3614
SELECT ALL + COALESCE ( + 59, + 69 + - 54 ) + - MAX( - + CASE + 25 WHEN 79 THEN - + 3 END ) * + - 67 * - + 63 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3614
SELECT ALL + COALESCE ( + 59, + 69 + - 54 ) + - MAX ( - + CASE + 25 WHEN 79 THEN - + 3 END ) * + - 67 * - + 63 AS col0
----
NULL

query I rowsort
SELECT + + 29 AS col0
----
29

query I rowsort
SELECT DISTINCT - - 22
----
22

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3617
SELECT 75 + - NULLIF ( CASE - 55 WHEN 60 * 18 / - 38 * 80 - + 56 THEN NULL WHEN - 5 - - 1 THEN NULL ELSE + + 50 + - 67 + + 27 END, + 12 * - CAST( - 9 AS SIGNED ) ) + 58 * 30 col2
----
1805

skipif mysql # not compatible
query I rowsort label-3617
SELECT 75 + - NULLIF ( CASE - 55 WHEN 60 * 18 / - 38 * 80 - + 56 THEN NULL WHEN - 5 - - 1 THEN NULL ELSE + + 50 + - 67 + + 27 END, + 12 * - CAST ( - 9 AS INTEGER ) ) + 58 * 30 col2
----
1805

query I rowsort
SELECT ALL - ( + 41 ) col1
----
-41

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3619
SELECT DISTINCT + 45 + COALESCE ( COUNT( * ), - - ( + + CASE + 50 WHEN - 45 * AVG ( DISTINCT CAST( - + COALESCE ( + + 33, - 38 ) AS SIGNED ) ) THEN 38 END ) ) * - NULLIF ( 24, 66 - - 57 )
----
21

skipif mysql # not compatible
query I rowsort label-3619
SELECT DISTINCT + 45 + COALESCE ( COUNT ( * ), - - ( + + CASE + 50 WHEN - 45 * AVG ( DISTINCT CAST ( - + COALESCE ( + + 33, - 38 ) AS INTEGER ) ) THEN 38 END ) ) * - NULLIF ( 24, 66 - - 57 )
----
21

onlyif mysql # aggregate syntax: 
query II rowsort label-3620
SELECT ALL + - 11 + + 71, COUNT( * ) + + 59
----
60
60

skipif mysql # not compatible
query II rowsort label-3620
SELECT ALL + - 11 + + 71, COUNT ( * ) + + 59
----
60
60

onlyif mysql # aggregate syntax: 
query I rowsort label-3621
SELECT + COUNT( * ) * SUM( - + 39 ) col2
----
-39

skipif mysql # not compatible
query I rowsort label-3621
SELECT + COUNT ( * ) * SUM ( - + 39 ) col2
----
-39

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3622
SELECT - CAST( NULL AS SIGNED ) * CAST( NULLIF ( + + 66, + 17 * - CASE + 17 WHEN - COUNT( * ) * + - 4 * + 87 * - 81 * - 39 * - ( CAST( NULL AS DECIMAL ) ) THEN NULL WHEN 22 THEN - 66 END / + 47 - 3 + + 20 ) AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3622
SELECT - CAST ( NULL AS INTEGER ) * CAST ( NULLIF ( + + 66, + 17 * - CASE + 17 WHEN - COUNT ( * ) * + - 4 * + 87 * - 81 * - 39 * - ( CAST ( NULL AS REAL ) ) THEN NULL WHEN 22 THEN - 66 END / + 47 - 3 + + 20 ) AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3623
SELECT - 6 + + - MIN( + + 64 )
----
-70

skipif mysql # not compatible
query I rowsort label-3623
SELECT - 6 + + - MIN ( + + 64 )
----
-70

onlyif mysql # aggregate syntax: 
query II rowsort label-3624
SELECT + 46 * COALESCE ( 97, - + COUNT( * ) * ( - 18 ) + + - 2 ) AS col0, + COUNT( * ) AS col1
----
4462
1

skipif mysql # not compatible
query II rowsort label-3624
SELECT + 46 * COALESCE ( 97, - + COUNT ( * ) * ( - 18 ) + + - 2 ) AS col0, + COUNT ( * ) AS col1
----
4462
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3625
SELECT ALL + COUNT( + + COALESCE ( - 22, - 70 ) ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-3625
SELECT ALL + COUNT ( + + COALESCE ( - 22, - 70 ) ) AS col1
----
1

query I rowsort
SELECT - + 51 + 12
----
-39

query I rowsort
SELECT - 24 col1
----
-24

query I rowsort
SELECT ALL - 71 - + 8 AS col1
----
-79

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3629
SELECT - CASE + - 1 WHEN + + ( - 8 ) THEN + + CAST( NULL AS SIGNED ) + + + 19 * + - 46 * - COUNT( DISTINCT - - 3 ) + CAST( 19 AS SIGNED ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-3629
SELECT - CASE + - 1 WHEN + + ( - 8 ) THEN + + CAST ( NULL AS INTEGER ) + + + 19 * + - 46 * - COUNT ( DISTINCT - - 3 ) + CAST ( 19 AS INTEGER ) END
----
NULL

query I rowsort
SELECT DISTINCT - 38 * - - 90 AS col1
----
-3420

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3631
SELECT - COALESCE ( - ( + + 85 ), - + CAST( NULL AS SIGNED ) ) * 84 + - 45 col1
----
7095

skipif mysql # not compatible
query I rowsort label-3631
SELECT - COALESCE ( - ( + + 85 ), - + CAST ( NULL AS INTEGER ) ) * 84 + - 45 col1
----
7095

query I rowsort
SELECT - + 49 AS col1
----
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-3633
SELECT + COUNT( - 96 ) * - 48 * - 57
----
2736

skipif mysql # not compatible
query I rowsort label-3633
SELECT + COUNT ( - 96 ) * - 48 * - 57
----
2736

onlyif mysql # aggregate syntax: 
query I rowsort label-3634
SELECT ALL + 37 * - COUNT( * )
----
-37

skipif mysql # not compatible
query I rowsort label-3634
SELECT ALL + 37 * - COUNT ( * )
----
-37

onlyif mysql # aggregate syntax: 
query II rowsort label-3635
SELECT DISTINCT NULLIF ( - + 55, + 43 ) AS col2, COUNT( * )
----
-55
1

skipif mysql # not compatible
query II rowsort label-3635
SELECT DISTINCT NULLIF ( - + 55, + 43 ) AS col2, COUNT ( * )
----
-55
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3636
SELECT ALL + NULLIF ( - 83, + - CAST( NULL AS SIGNED ) ) AS col2, SUM( DISTINCT 21 )
----
-83
21

skipif mysql # not compatible
query II rowsort label-3636
SELECT ALL + NULLIF ( - 83, + - CAST ( NULL AS INTEGER ) ) AS col2, SUM ( DISTINCT 21 )
----
-83
21

query I rowsort
SELECT ( + + 74 )
----
74

query I rowsort
SELECT ALL - 88 * + + 99 + - 25 AS col1
----
-8737

onlyif mysql # DIV for integer division: 
query I rowsort label-3639
SELECT 1 DIV 75 * - ( - 90 ) + + + ( - 57 )
----
-57

skipif mysql # not compatible
query I rowsort label-3639
SELECT 1 / 75 * - ( - 90 ) + + + ( - 57 )
----
-57

onlyif mysql # aggregate syntax: 
query II rowsort label-3640
SELECT DISTINCT 47 * COUNT( * ) + - 96 * ( + 86 ) col0, 13
----
-8209
13

skipif mysql # not compatible
query II rowsort label-3640
SELECT DISTINCT 47 * COUNT ( * ) + - 96 * ( + 86 ) col0, 13
----
-8209
13

onlyif mysql # aggregate syntax: 
query I rowsort label-3641
SELECT + 4 + - COUNT( * ) col1
----
3

skipif mysql # not compatible
query I rowsort label-3641
SELECT + 4 + - COUNT ( * ) col1
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3642
SELECT ALL COUNT( * ) * - 94 / CASE - 63 WHEN - + 12 THEN + + MAX( - 70 ) + MIN( - - 84 ) WHEN + 75 THEN NULL ELSE NULL END * + CASE - 95 WHEN + 64 THEN + COUNT( * ) + CAST( ( 78 ) AS SIGNED ) ELSE + 55 END * - 47 + 15 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3642
SELECT ALL COUNT ( * ) * - 94 / CASE - 63 WHEN - + 12 THEN + + MAX ( - 70 ) + MIN ( - - 84 ) WHEN + 75 THEN NULL ELSE NULL END * + CASE - 95 WHEN + 64 THEN + COUNT ( * ) + CAST ( ( 78 ) AS INTEGER ) ELSE + 55 END * - 47 + 15 AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3643
SELECT DISTINCT COUNT( * ) DIV + 3
----
0

skipif mysql # not compatible
query I rowsort label-3643
SELECT DISTINCT COUNT ( * ) / + 3
----
0

query I rowsort
SELECT + ( - - 18 )
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-3645
SELECT ALL CASE - 57 WHEN - + 9 * 47 / + MIN( DISTINCT - NULLIF ( - + 48, - 29 ) ) * - 5 THEN NULL ELSE - 83 END * NULLIF ( - - SUM( ALL + - 11 ), + 50 + - - ( ( - 22 ) ) + + 40 / - 70 )
----
913

skipif mysql # not compatible
query I rowsort label-3645
SELECT ALL CASE - 57 WHEN - + 9 * 47 / + MIN ( DISTINCT - NULLIF ( - + 48, - 29 ) ) * - 5 THEN NULL ELSE - 83 END * NULLIF ( - - SUM ( ALL + - 11 ), + 50 + - - ( ( - 22 ) ) + + 40 / - 70 )
----
913

onlyif mysql # aggregate syntax: 
query II rowsort label-3646
SELECT CASE WHEN COUNT( * ) BETWEEN - - ( + + 93 ) AND + - NULLIF ( + 36, + 80 ) * + 5 THEN - 31 ELSE NULL END, 84 AS col0
----
NULL
84

skipif mysql # not compatible
query II rowsort label-3646
SELECT CASE WHEN COUNT ( * ) BETWEEN - - ( + + 93 ) AND + - NULLIF ( + 36, + 80 ) * + 5 THEN - 31 ELSE NULL END, 84 AS col0
----
NULL
84

onlyif mysql # aggregate syntax: 
query I rowsort label-3647
SELECT - 90 * + 76 * 34 + 12 - + COUNT( * ) * - 78 AS col1
----
-232470

skipif mysql # not compatible
query I rowsort label-3647
SELECT - 90 * + 76 * 34 + 12 - + COUNT ( * ) * - 78 AS col1
----
-232470

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3648
SELECT CASE + CAST( 5 AS SIGNED ) WHEN + AVG ( 54 ) + - + 44 THEN - 12 END
----
NULL

skipif mysql # not compatible
query I rowsort label-3648
SELECT CASE + CAST ( 5 AS INTEGER ) WHEN + AVG ( 54 ) + - + 44 THEN - 12 END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3649
SELECT CASE - 11 WHEN + 88 THEN - ( + COUNT( * ) ) / + 41 * - 89 + - - ( - CASE 46 WHEN CASE 19 WHEN - 91 THEN - 73 * - 13 * + 43 ELSE NULL END + + 64 THEN - COUNT( DISTINCT + 86 ) + + COUNT( * ) WHEN 43 + CAST( COUNT( DISTINCT + 47 ) AS SIGNED ) THEN NULL END ) WHEN CAST( NULL AS SIGNED ) THEN 54 WHEN - 17 THEN 84 * - 38 + 46 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3649
SELECT CASE - 11 WHEN + 88 THEN - ( + COUNT ( * ) ) / + 41 * - 89 + - - ( - CASE 46 WHEN CASE 19 WHEN - 91 THEN - 73 * - 13 * + 43 ELSE NULL END + + 64 THEN - COUNT ( DISTINCT + 86 ) + + COUNT ( * ) WHEN 43 + CAST ( COUNT ( DISTINCT + 47 ) AS INTEGER ) THEN NULL END ) WHEN CAST ( NULL AS INTEGER ) THEN 54 WHEN - 17 THEN 84 * - 38 + 46 END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3650
SELECT ALL + 45 * + COALESCE ( + 51, - NULLIF ( + 23, + + COALESCE ( - 2, 89 - + 81 ) ) ) + - 7 * - + COUNT( * ) * - ( - 43 ) AS col0
----
2596

skipif mysql # not compatible
query I rowsort label-3650
SELECT ALL + 45 * + COALESCE ( + 51, - NULLIF ( + 23, + + COALESCE ( - 2, 89 - + 81 ) ) ) + - 7 * - + COUNT ( * ) * - ( - 43 ) AS col0
----
2596

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3651
SELECT + CASE - ( + - SUM( - 67 ) ) WHEN CAST( - COALESCE ( 89, 52 ) AS SIGNED ) THEN + CASE + 70 WHEN + 15 THEN + 17 * + 21 + + 35 ELSE + 71 END END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3651
SELECT + CASE - ( + - SUM ( - 67 ) ) WHEN CAST ( - COALESCE ( 89, 52 ) AS INTEGER ) THEN + CASE + 70 WHEN + 15 THEN + 17 * + 21 + + 35 ELSE + 71 END END AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3652
SELECT + CASE + COUNT( * ) WHEN CAST( NULL AS SIGNED ) THEN + 22 * - 6 * - 92 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-3652
SELECT + CASE + COUNT ( * ) WHEN CAST ( NULL AS INTEGER ) THEN + 22 * - 6 * - 92 ELSE NULL END
----
NULL

query I rowsort
SELECT ALL + - 94
----
-94

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3654
SELECT ALL - 0 * + 9 - - 40 DIV ( COUNT( * ) ) - - 27
----
67

skipif mysql # not compatible
query I rowsort label-3654
SELECT ALL - 0 * + 9 - - 40 / ( COUNT ( * ) ) - - 27
----
67

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3655
SELECT ( + CASE - 44 WHEN 48 THEN + 33 / - CAST( 7 AS SIGNED ) * - 31 + - ( - - 80 ) + + 70 + 3 + + - 56 WHEN + 38 * CAST( - 41 AS DECIMAL ) + - 76 THEN - MIN( ( + 42 ) ) ELSE NULL END ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3655
SELECT ( + CASE - 44 WHEN 48 THEN + 33 / - CAST ( 7 AS INTEGER ) * - 31 + - ( - - 80 ) + + 70 + 3 + + - 56 WHEN + 38 * CAST ( - 41 AS REAL ) + - 76 THEN - MIN ( ( + 42 ) ) ELSE NULL END ) AS col2
----
NULL

query I rowsort
SELECT + - 35 - - 10
----
-25

query I rowsort
SELECT + 21 * - - 17
----
357

query I rowsort
SELECT + - 82 col1
----
-82

onlyif mysql # DIV for integer division: 
query I rowsort label-3659
SELECT - - COALESCE ( - 48, 27 DIV - 57 ) * + 7 - - 10
----
-326

skipif mysql # not compatible
query I rowsort label-3659
SELECT - - COALESCE ( - 48, 27 / - 57 ) * + 7 - - 10
----
-326

query II rowsort
SELECT ALL + 72 col2, + 61
----
72
61

onlyif mysql # aggregate syntax: 
query I rowsort label-3661
SELECT MAX( + 79 ) AS col0
----
79

skipif mysql # not compatible
query I rowsort label-3661
SELECT MAX ( + 79 ) AS col0
----
79

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3662
SELECT + - AVG ( DISTINCT + + CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-3662
SELECT + - AVG ( DISTINCT + + CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3663
SELECT + 66 DIV + COUNT( * ) AS col2
----
66

skipif mysql # not compatible
query I rowsort label-3663
SELECT + 66 / + COUNT ( * ) AS col2
----
66

onlyif mysql # DIV for integer division: 
query I rowsort label-3664
SELECT DISTINCT 36 DIV + 27 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-3664
SELECT DISTINCT 36 / + 27 AS col2
----
1

query I rowsort
SELECT + 80 - 33 AS col2
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-3666
SELECT DISTINCT MAX( + 79 )
----
79

skipif mysql # not compatible
query I rowsort label-3666
SELECT DISTINCT MAX ( + 79 )
----
79

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3667
SELECT ALL 63 * - SUM( DISTINCT + 29 ) + + + 43 DIV 66
----
-1827

skipif mysql # not compatible
query I rowsort label-3667
SELECT ALL 63 * - SUM ( DISTINCT + 29 ) + + + 43 / 66
----
-1827

onlyif mysql # aggregate syntax: 
query I rowsort label-3668
SELECT COUNT( + - 6 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-3668
SELECT COUNT ( + - 6 ) AS col1
----
1

query I rowsort
SELECT - + 53 * - - 3 col2
----
-159

query I rowsort
SELECT ALL ( - 88 )
----
-88

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3671
SELECT + ( - 80 ) / + CAST( NULL AS SIGNED ) * ( MIN( - 79 ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3671
SELECT + ( - 80 ) / + CAST ( NULL AS INTEGER ) * ( MIN ( - 79 ) ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3672
SELECT + COUNT( * ) + - MIN( - ( + ( 53 ) ) )
----
54

skipif mysql # not compatible
query I rowsort label-3672
SELECT + COUNT ( * ) + - MIN ( - ( + ( 53 ) ) )
----
54

onlyif mysql # DIV for integer division: 
query I rowsort label-3673
SELECT - 47 - + 39 DIV - + 93
----
-47

skipif mysql # not compatible
query I rowsort label-3673
SELECT - 47 - + 39 / - + 93
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-3674
SELECT ALL NULLIF ( - 72, - 4 * - - COUNT( * ) ) AS col1
----
-72

skipif mysql # not compatible
query I rowsort label-3674
SELECT ALL NULLIF ( - 72, - 4 * - - COUNT ( * ) ) AS col1
----
-72

onlyif mysql # aggregate syntax: 
query II rowsort label-3675
SELECT ALL + 51 + MIN( - 30 ) + 55 AS col0, + 53 * - 67 AS col2
----
76
-3551

skipif mysql # not compatible
query II rowsort label-3675
SELECT ALL + 51 + MIN ( - 30 ) + 55 AS col0, + 53 * - 67 AS col2
----
76
-3551

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3676
SELECT - ( CAST( - ( - + 65 ) AS SIGNED ) ) * - 36 * - + ( + + 45 ) * + 74 AS col2
----
-7792200

skipif mysql # not compatible
query I rowsort label-3676
SELECT - ( CAST ( - ( - + 65 ) AS INTEGER ) ) * - 36 * - + ( + + 45 ) * + 74 AS col2
----
-7792200

query I rowsort
SELECT ALL ( - + 11 ) col2
----
-11

query I rowsort
SELECT - 63 + - 82
----
-145

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3679
SELECT 7 col2, - ( - 6 ) * - + MIN( ALL - CAST( - NULLIF ( + 28, + 12 / 92 + - ( 69 ) ) AS SIGNED ) ) AS col2
----
7
-168

skipif mysql # not compatible
query II rowsort label-3679
SELECT 7 col2, - ( - 6 ) * - + MIN ( ALL - CAST ( - NULLIF ( + 28, + 12 / 92 + - ( 69 ) ) AS INTEGER ) ) AS col2
----
7
-168

onlyif mysql # aggregate syntax: 
query II rowsort label-3680
SELECT 42 AS col1, NULLIF ( - 25, - 84 + 7 * - + 23 / - COUNT( * ) ) AS col2
----
42
-25

skipif mysql # not compatible
query II rowsort label-3680
SELECT 42 AS col1, NULLIF ( - 25, - 84 + 7 * - + 23 / - COUNT ( * ) ) AS col2
----
42
-25

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3681
SELECT ALL + 67 DIV + CAST( 58 AS SIGNED ) + 63
----
64

skipif mysql # not compatible
query I rowsort label-3681
SELECT ALL + 67 / + CAST ( 58 AS INTEGER ) + 63
----
64

query II rowsort
SELECT + 27 AS col0, 9
----
27
9

onlyif mysql # aggregate syntax: 
query II rowsort label-3683
SELECT DISTINCT + 84 AS col1, + ( SUM( - 21 ) ) * 46 AS col2
----
84
-966

skipif mysql # not compatible
query II rowsort label-3683
SELECT DISTINCT + 84 AS col1, + ( SUM ( - 21 ) ) * 46 AS col2
----
84
-966

onlyif mysql # aggregate syntax: 
query I rowsort label-3684
SELECT COUNT( * ) * - + SUM( ALL + 20 )
----
-20

skipif mysql # not compatible
query I rowsort label-3684
SELECT COUNT ( * ) * - + SUM ( ALL + 20 )
----
-20

query I rowsort
SELECT - 61 * 54 + - 61 + - 27 + 90 AS col0
----
-3292

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3686
SELECT + CAST( NULL AS SIGNED ) + 1 + - 45
----
NULL

skipif mysql # not compatible
query I rowsort label-3686
SELECT + CAST ( NULL AS INTEGER ) + 1 + - 45
----
NULL

query II rowsort
SELECT 7 * 98 AS col1, 90 AS col0
----
686
90

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3688
SELECT ALL - MIN( ( - + 87 ) ) DIV + - 98
----
0

skipif mysql # not compatible
query I rowsort label-3688
SELECT ALL - MIN ( ( - + 87 ) ) / + - 98
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3689
SELECT COUNT( * ) + 20 AS col0
----
21

skipif mysql # not compatible
query I rowsort label-3689
SELECT COUNT ( * ) + 20 AS col0
----
21

query II rowsort
SELECT 27 - - 5 AS col0, + 83 AS col2
----
32
83

query II rowsort
SELECT ALL 67 - + 68 AS col2, - 43 * 57
----
-1
-2451

onlyif mysql # aggregate syntax: 
query I rowsort label-3692
SELECT + SUM( ALL 68 ) AS col0
----
68

skipif mysql # not compatible
query I rowsort label-3692
SELECT + SUM ( ALL 68 ) AS col0
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-3693
SELECT 7 + - 40 + COUNT( * )
----
-32

skipif mysql # not compatible
query I rowsort label-3693
SELECT 7 + - 40 + COUNT ( * )
----
-32

query II rowsort
SELECT ALL - - 8 AS col2, + 93 AS col0
----
8
93

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3695
SELECT + + CAST( + 29 AS SIGNED ) * + - 39 + + 24 DIV - 29 + - 29 AS col0, - 30
----
-1160
-30

skipif mysql # not compatible
query II rowsort label-3695
SELECT + + CAST ( + 29 AS INTEGER ) * + - 39 + + 24 / - 29 + - 29 AS col0, - 30
----
-1160
-30

onlyif mysql # DIV for integer division: 
query I rowsort label-3696
SELECT - 0 DIV - - 24 + - 36 AS col1
----
-36

skipif mysql # not compatible
query I rowsort label-3696
SELECT - 0 / - - 24 + - 36 AS col1
----
-36

query I rowsort
SELECT DISTINCT 65 col1
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-3698
SELECT + CASE 82 WHEN - 69 THEN + 62 + - COUNT( ALL 20 ) ELSE NULL END col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3698
SELECT + CASE 82 WHEN - 69 THEN + 62 + - COUNT ( ALL 20 ) ELSE NULL END col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3699
SELECT - MAX( ALL + + 66 ) * - CAST( + COUNT( * ) AS SIGNED )
----
66

skipif mysql # not compatible
query I rowsort label-3699
SELECT - MAX ( ALL + + 66 ) * - CAST ( + COUNT ( * ) AS INTEGER )
----
66

query I rowsort
SELECT 22 + + + 4
----
26

query I rowsort
SELECT DISTINCT + 16 + + 8
----
24

query I rowsort
SELECT - 48 AS col1
----
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-3703
SELECT DISTINCT - 65 + - COUNT( * ) AS col1
----
-66

skipif mysql # not compatible
query I rowsort label-3703
SELECT DISTINCT - 65 + - COUNT ( * ) AS col1
----
-66

onlyif mysql # DIV for integer division: 
query II rowsort label-3704
SELECT 11 DIV - 27 col2, 14 AS col1
----
0
14

skipif mysql # not compatible
query II rowsort label-3704
SELECT 11 / - 27 col2, 14 AS col1
----
0
14

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3705
SELECT 82 * - 23 * - + CAST( NULL AS SIGNED ) * SUM( - 79 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3705
SELECT 82 * - 23 * - + CAST ( NULL AS INTEGER ) * SUM ( - 79 )
----
NULL

query I rowsort
SELECT ALL + 20 + - + 69 AS col1
----
-49

onlyif mysql # DIV for integer division: 
query I rowsort label-3707
SELECT ( 38 ) - + ( 35 ) DIV + NULLIF ( 23, - 13 * + 86 + + 22 )
----
37

skipif mysql # not compatible
query I rowsort label-3707
SELECT ( 38 ) - + ( 35 ) / + NULLIF ( 23, - 13 * + 86 + + 22 )
----
37

query I rowsort
SELECT 36 * + 97
----
3492

onlyif mysql # aggregate syntax: 
query I rowsort label-3709
SELECT DISTINCT NULLIF ( + + 17, + 77 ) - + - SUM( - 11 ) * + - 86 AS col2
----
963

skipif mysql # not compatible
query I rowsort label-3709
SELECT DISTINCT NULLIF ( + + 17, + 77 ) - + - SUM ( - 11 ) * + - 86 AS col2
----
963

query I rowsort
SELECT 32 + + 44 AS col1
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-3711
SELECT - 57 * - - 65 - - MAX( ALL - 51 ) AS col1
----
-3756

skipif mysql # not compatible
query I rowsort label-3711
SELECT - 57 * - - 65 - - MAX ( ALL - 51 ) AS col1
----
-3756

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3712
SELECT CAST( NULL AS SIGNED ) * - + CAST( COUNT( * ) AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3712
SELECT CAST ( NULL AS INTEGER ) * - + CAST ( COUNT ( * ) AS INTEGER )
----
NULL

query I rowsort
SELECT CASE + + 25 WHEN - COALESCE ( + + NULLIF ( + + 6, + + 64 ), 6 ) + NULLIF ( - 50, - NULLIF ( + - 72, 52 ) * + 95 * - - 69 + + 82 + 48 - 73 ) THEN 56 END
----
NULL

query I rowsort
SELECT + - 19 AS col1
----
-19

query I rowsort
SELECT + + 6 AS col0
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-3716
SELECT COUNT( * ) * + 16 + + 39
----
55

skipif mysql # not compatible
query I rowsort label-3716
SELECT COUNT ( * ) * + 16 + + 39
----
55

query I rowsort
SELECT - 73 * - + 9 AS col2
----
657

onlyif mysql # aggregate syntax: 
query I rowsort label-3718
SELECT + COUNT( * ) * - 58 * - + 11 * - + 8 * - + 78 + - 89 * + + 94 + - - 44 * - 40
----
387986

skipif mysql # not compatible
query I rowsort label-3718
SELECT + COUNT ( * ) * - 58 * - + 11 * - + 8 * - + 78 + - 89 * + + 94 + - - 44 * - 40
----
387986

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3719
SELECT - 39 * - + ( - NULLIF ( + ( + + 26 ), + CASE WHEN NULL IN ( CAST( COUNT( * ) AS SIGNED ), - 38 / - ( - ( - - 90 ) ) * 89 + - CAST( NULL AS SIGNED ) * - 16 ) THEN + + 2 * - COUNT( * ) ELSE NULL END * 1 ) ) AS col0
----
-1014

skipif mysql # not compatible
query I rowsort label-3719
SELECT - 39 * - + ( - NULLIF ( + ( + + 26 ), + CASE WHEN NULL IN ( CAST ( COUNT ( * ) AS INTEGER ), - 38 / - ( - ( - - 90 ) ) * 89 + - CAST ( NULL AS INTEGER ) * - 16 ) THEN + + 2 * - COUNT ( * ) ELSE NULL END * 1 ) ) AS col0
----
-1014

query I rowsort
SELECT + ( - 53 ) AS col2
----
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-3721
SELECT ALL - MAX( + + 76 )
----
-76

skipif mysql # not compatible
query I rowsort label-3721
SELECT ALL - MAX ( + + 76 )
----
-76

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3722
SELECT ALL + COUNT( * ) + + CAST( + 25 AS SIGNED ) AS col0
----
26

skipif mysql # not compatible
query I rowsort label-3722
SELECT ALL + COUNT ( * ) + + CAST ( + 25 AS INTEGER ) AS col0
----
26

query I rowsort
SELECT + 28 * + - 8 - + + 51
----
-275

onlyif mysql # aggregate syntax: 
query I rowsort label-3724
SELECT - COALESCE ( + 47, + 88, 79, 10 - - 4 + - + COUNT( * ), - 34 * + - 43 ) + - 23 - - 79
----
9

skipif mysql # not compatible
query I rowsort label-3724
SELECT - COALESCE ( + 47, + 88, 79, 10 - - 4 + - + COUNT ( * ), - 34 * + - 43 ) + - 23 - - 79
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-3725
SELECT 91 * COUNT( * ) AS col1
----
91

skipif mysql # not compatible
query I rowsort label-3725
SELECT 91 * COUNT ( * ) AS col1
----
91

query I rowsort
SELECT ALL + - 45 + 78 AS col0
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-3727
SELECT - ( COUNT( ALL 66 ) )
----
-1

skipif mysql # not compatible
query I rowsort label-3727
SELECT - ( COUNT ( ALL 66 ) )
----
-1

query I rowsort
SELECT DISTINCT - 65 + 23 + - - 91 - - - 36
----
13

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3729
SELECT 92 - - + 23 + + 18 AS col0, COUNT( * ) - 59 DIV + + 64 col0
----
133
1

skipif mysql # not compatible
query II rowsort label-3729
SELECT 92 - - + 23 + + 18 AS col0, COUNT ( * ) - 59 / + + 64 col0
----
133
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3730
SELECT 51 * + - COALESCE ( + + ( + - 24 ), - 68 DIV + - 23 ) - + 32 - + COUNT( * ) - COALESCE ( 86, + - COUNT( * ) * - 62 + + + NULLIF ( - + 41, + 94 ) )
----
1105

skipif mysql # not compatible
query I rowsort label-3730
SELECT 51 * + - COALESCE ( + + ( + - 24 ), - 68 / + - 23 ) - + 32 - + COUNT ( * ) - COALESCE ( 86, + - COUNT ( * ) * - 62 + + + NULLIF ( - + 41, + 94 ) )
----
1105

query I rowsort
SELECT ALL 3 col0
----
3

query I rowsort
SELECT 75 + - 23 AS col2
----
52

query I rowsort
SELECT 82 + 5
----
87

query I rowsort
SELECT 91 + + 98
----
189

query I rowsort
SELECT 27 * - + 76
----
-2052

onlyif mysql # aggregate syntax: 
query I rowsort label-3736
SELECT COUNT( * ) + + 84 AS col0
----
85

skipif mysql # not compatible
query I rowsort label-3736
SELECT COUNT ( * ) + + 84 AS col0
----
85

query I rowsort
SELECT 10 + - 69
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-3738
SELECT ALL 10 - - + 42 - + ( + MIN( DISTINCT - 52 ) ) * + COALESCE ( - 39, - - COUNT( * ) ) AS col2
----
-1976

skipif mysql # not compatible
query I rowsort label-3738
SELECT ALL 10 - - + 42 - + ( + MIN ( DISTINCT - 52 ) ) * + COALESCE ( - 39, - - COUNT ( * ) ) AS col2
----
-1976

query I rowsort
SELECT ALL ( - 80 ) - + 21 AS col2
----
-101

onlyif mysql # aggregate syntax: 
query II rowsort label-3740
SELECT + 98 + 55 * + COUNT( * ) AS col2, + COUNT( * ) * - 8 * - 29 col2
----
153
232

skipif mysql # not compatible
query II rowsort label-3740
SELECT + 98 + 55 * + COUNT ( * ) AS col2, + COUNT ( * ) * - 8 * - 29 col2
----
153
232

query I rowsort
SELECT + 92 * - + 20 AS col1
----
-1840

query I rowsort
SELECT + 62 * - + 26 * - - 3 AS col0
----
-4836

onlyif mysql # aggregate syntax: 
query I rowsort label-3743
SELECT - MIN( DISTINCT - - 74 ) * - 38 - - - 74 + 5 AS col2
----
2743

skipif mysql # not compatible
query I rowsort label-3743
SELECT - MIN ( DISTINCT - - 74 ) * - 38 - - - 74 + 5 AS col2
----
2743

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3744
SELECT - 44 DIV - - CASE 61 WHEN 93 THEN NULL WHEN - 66 THEN ( CAST( NULL AS SIGNED ) ) ELSE + + 12 * + ( NULLIF ( - 60, + + COUNT( * ) ) ) + + + COALESCE ( - 88, MIN( ALL - + 1 ) + + 36 + ( 90 ) + + 64 DIV COUNT( * ) ) + 49 * + ( - 37 ) END * MAX( DISTINCT 69 )
----
0

skipif mysql # not compatible
query I rowsort label-3744
SELECT - 44 / - - CASE 61 WHEN 93 THEN NULL WHEN - 66 THEN ( CAST ( NULL AS INTEGER ) ) ELSE + + 12 * + ( NULLIF ( - 60, + + COUNT ( * ) ) ) + + + COALESCE ( - 88, MIN ( ALL - + 1 ) + + 36 + ( 90 ) + + 64 / COUNT ( * ) ) + 49 * + ( - 37 ) END * MAX ( DISTINCT 69 )
----
0

query I rowsort
SELECT ALL + 93 * + ( 24 ) AS col0
----
2232

query I rowsort
SELECT ALL + + 63
----
63

query I rowsort
SELECT - 32 + - + 9 AS col2
----
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-3748
SELECT + + MAX( 91 )
----
91

skipif mysql # not compatible
query I rowsort label-3748
SELECT + + MAX ( 91 )
----
91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3749
SELECT + 81 * - COUNT( * ) * + 44 - - + CAST( - - ( + - 38 ) AS SIGNED ) + - 68 - + 91 col1
----
-3761

skipif mysql # not compatible
query I rowsort label-3749
SELECT + 81 * - COUNT ( * ) * + 44 - - + CAST ( - - ( + - 38 ) AS INTEGER ) + - 68 - + 91 col1
----
-3761

query I rowsort
SELECT DISTINCT - ( - 51 ) * - + 79
----
-4029

onlyif mysql # aggregate syntax: 
query II rowsort label-3751
SELECT COUNT( * ), - COUNT( * ) AS col1
----
1
-1

skipif mysql # not compatible
query II rowsort label-3751
SELECT COUNT ( * ), - COUNT ( * ) AS col1
----
1
-1

query I rowsort
SELECT + - 36 col1
----
-36

query I rowsort
SELECT ALL - NULLIF ( + 28, - - 98 ) * + ( - + 98 ) + + - 30 AS col0
----
2714

query I rowsort
SELECT + 99 + - 47 * - 60 * - 75 * 55
----
-11632401

query I rowsort
SELECT - ( + 18 ) * + - 25
----
450

query I rowsort
SELECT + - 71 + 6
----
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-3757
SELECT - - 66 - - + SUM( - 80 ) * 80
----
-6334

skipif mysql # not compatible
query I rowsort label-3757
SELECT - - 66 - - + SUM ( - 80 ) * 80
----
-6334

onlyif mysql # aggregate syntax: 
query II rowsort label-3758
SELECT DISTINCT - SUM( - - 42 ) * + + 46, - 32 - + 5 AS col2
----
-1932
-37

skipif mysql # not compatible
query II rowsort label-3758
SELECT DISTINCT - SUM ( - - 42 ) * + + 46, - 32 - + 5 AS col2
----
-1932
-37

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3759
SELECT - + ( 30 ) - + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3759
SELECT - + ( 30 ) - + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3760
SELECT - - 22 DIV 72 * - 34 col0
----
0

skipif mysql # not compatible
query I rowsort label-3760
SELECT - - 22 / 72 * - 34 col0
----
0

query I rowsort
SELECT ALL 5 * + + NULLIF ( - 58, 45 ) + + - 29
----
-319

onlyif mysql # aggregate syntax: 
query I rowsort label-3762
SELECT DISTINCT 43 * + ( - 46 ) + + COUNT( * )
----
-1977

skipif mysql # not compatible
query I rowsort label-3762
SELECT DISTINCT 43 * + ( - 46 ) + + COUNT ( * )
----
-1977

query I rowsort
SELECT DISTINCT - - 80 * + 12 AS col1
----
960

query I rowsort
SELECT ALL + + 36 AS col2
----
36

onlyif mysql # aggregate syntax: 
query II rowsort label-3765
SELECT - COUNT( * ) * 50 AS col1, + COALESCE ( 5, - + 31 * 31 * - 17 ) * + + 49 col2
----
-50
245

skipif mysql # not compatible
query II rowsort label-3765
SELECT - COUNT ( * ) * 50 AS col1, + COALESCE ( 5, - + 31 * 31 * - 17 ) * + + 49 col2
----
-50
245

onlyif mysql # aggregate syntax: 
query I rowsort label-3766
SELECT DISTINCT NULLIF ( - - COUNT( * ), + 2 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-3766
SELECT DISTINCT NULLIF ( - - COUNT ( * ), + 2 ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3767
SELECT + 58 + - COUNT( * ) * + - 19 col1
----
77

skipif mysql # not compatible
query I rowsort label-3767
SELECT + 58 + - COUNT ( * ) * + - 19 col1
----
77

onlyif mysql # aggregate syntax: 
query II rowsort label-3768
SELECT ALL + COUNT( * ) * + - 45, 14 AS col1
----
-45
14

skipif mysql # not compatible
query II rowsort label-3768
SELECT ALL + COUNT ( * ) * + - 45, 14 AS col1
----
-45
14

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3769
SELECT - ( + - CAST( NULL AS SIGNED ) ) + - - 30 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3769
SELECT - ( + - CAST ( NULL AS INTEGER ) ) + - - 30 AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3770
SELECT + 34 + 4 AS col1, ( + SUM( 87 ) ) DIV 32 * - 15 + + 16 AS col0
----
38
-14

skipif mysql # not compatible
query II rowsort label-3770
SELECT + 34 + 4 AS col1, ( + SUM ( 87 ) ) / 32 * - 15 + + 16 AS col0
----
38
-14

query I rowsort
SELECT DISTINCT 57 * - - 24 col0
----
1368

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3772
SELECT DISTINCT - COUNT( * ) - + 5 - + ( + + COUNT( * ) ) * 56 DIV COALESCE ( - COUNT( * ), + + 63 + - CAST( + 43 AS SIGNED ) * + COUNT( * ) + + MAX( + 50 ) - + 1 - - - COUNT( ALL 44 ) ) AS col2
----
50

skipif mysql # not compatible
query I rowsort label-3772
SELECT DISTINCT - COUNT ( * ) - + 5 - + ( + + COUNT ( * ) ) * 56 / COALESCE ( - COUNT ( * ), + + 63 + - CAST ( + 43 AS INTEGER ) * + COUNT ( * ) + + MAX ( + 50 ) - + 1 - - - COUNT ( ALL 44 ) ) AS col2
----
50

query I rowsort
SELECT + 98 * - 1
----
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-3774
SELECT DISTINCT ( + SUM( ALL - 75 ) ) AS col0
----
-75

skipif mysql # not compatible
query I rowsort label-3774
SELECT DISTINCT ( + SUM ( ALL - 75 ) ) AS col0
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-3775
SELECT - CASE - + 44 WHEN - + CASE - 71 WHEN + 25 THEN 66 WHEN - NULLIF ( - 51, - COUNT( + 33 ) ) THEN NULL ELSE - 24 - - ( + + COUNT( * ) ) + + + 40 END THEN NULL ELSE - 21 END AS col2
----
21

skipif mysql # not compatible
query I rowsort label-3775
SELECT - CASE - + 44 WHEN - + CASE - 71 WHEN + 25 THEN 66 WHEN - NULLIF ( - 51, - COUNT ( + 33 ) ) THEN NULL ELSE - 24 - - ( + + COUNT ( * ) ) + + + 40 END THEN NULL ELSE - 21 END AS col2
----
21

query I rowsort
SELECT + 68 * + 11 AS col1
----
748

onlyif mysql # aggregate syntax: 
query I rowsort label-3777
SELECT - 38 - COUNT( - - 85 ) + + 58 + - 46 * - 41
----
1905

skipif mysql # not compatible
query I rowsort label-3777
SELECT - 38 - COUNT ( - - 85 ) + + 58 + - 46 * - 41
----
1905

onlyif mysql # aggregate syntax: 
query I rowsort label-3778
SELECT + - COUNT( * ) * 86 - + 98 + - + 23 + + 0 * + CASE - COUNT( * ) WHEN + COUNT( * ) * + COUNT( * ) THEN NULL WHEN + 80 THEN - ( 82 ) ELSE NULL END + 62 + COUNT( * ) * + 16 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3778
SELECT + - COUNT ( * ) * 86 - + 98 + - + 23 + + 0 * + CASE - COUNT ( * ) WHEN + COUNT ( * ) * + COUNT ( * ) THEN NULL WHEN + 80 THEN - ( 82 ) ELSE NULL END + 62 + COUNT ( * ) * + 16 AS col0
----
NULL

query I rowsort
SELECT ALL 34 * 88 * + 75 AS col2
----
224400

query I rowsort
SELECT DISTINCT + 0 AS col0
----
0

query I rowsort
SELECT + - 61 col1
----
-61

query I rowsort
SELECT + - 51 AS col2
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-3783
SELECT + + COUNT( * ) * 99 AS col1
----
99

skipif mysql # not compatible
query I rowsort label-3783
SELECT + + COUNT ( * ) * 99 AS col1
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-3784
SELECT + + COUNT( * ) * 69 + + 48 + 63 AS col1
----
180

skipif mysql # not compatible
query I rowsort label-3784
SELECT + + COUNT ( * ) * 69 + + 48 + 63 AS col1
----
180

query I rowsort
SELECT DISTINCT + - 36 AS col0
----
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-3786
SELECT + - 26 * + - ( COUNT( * ) )
----
26

skipif mysql # not compatible
query I rowsort label-3786
SELECT + - 26 * + - ( COUNT ( * ) )
----
26

query I rowsort
SELECT ALL + + 84 col1
----
84

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3788
SELECT + 46 * + 44 - + 25 + - 90 DIV + SUM( DISTINCT - + 10 ) AS col1
----
2008

skipif mysql # not compatible
query I rowsort label-3788
SELECT + 46 * + 44 - + 25 + - 90 / + SUM ( DISTINCT - + 10 ) AS col1
----
2008

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3789
SELECT DISTINCT + CAST( + CAST( + 22 AS SIGNED ) AS SIGNED )
----
22

skipif mysql # not compatible
query I rowsort label-3789
SELECT DISTINCT + CAST ( + CAST ( + 22 AS INTEGER ) AS INTEGER )
----
22

query I rowsort
SELECT + + 56
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-3791
SELECT ( + - 45 ) * + + SUM( + 40 ) + - ( + 82 ) * COUNT( * ) - 83 * + COUNT( * ) + - NULLIF ( - 44, + 93 ) AS col2
----
-1921

skipif mysql # not compatible
query I rowsort label-3791
SELECT ( + - 45 ) * + + SUM ( + 40 ) + - ( + 82 ) * COUNT ( * ) - 83 * + COUNT ( * ) + - NULLIF ( - 44, + 93 ) AS col2
----
-1921

query I rowsort
SELECT - 82 * + 29
----
-2378

query I rowsort
SELECT ALL + 61 * + 34 AS col1
----
2074

query I rowsort
SELECT - 29 + + + ( - 42 )
----
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-3795
SELECT + MAX( - 86 )
----
-86

skipif mysql # not compatible
query I rowsort label-3795
SELECT + MAX ( - 86 )
----
-86

query I rowsort
SELECT - 46 * COALESCE ( - - 27, 66 )
----
-1242

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3797
SELECT DISTINCT CAST( + 55 AS SIGNED ) col1
----
55

skipif mysql # not compatible
query I rowsort label-3797
SELECT DISTINCT CAST ( + 55 AS INTEGER ) col1
----
55

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3798
SELECT 26 - 20 + MAX( - - ( + 39 ) ) * + COUNT( 16 ) DIV + - 83 + - 38 AS col0
----
-32

skipif mysql # not compatible
query I rowsort label-3798
SELECT 26 - 20 + MAX ( - - ( + 39 ) ) * + COUNT ( 16 ) / + - 83 + - 38 AS col0
----
-32

query I rowsort
SELECT DISTINCT 18 col0
----
18

query I rowsort
SELECT 36 - 83
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-3801
SELECT COUNT( * ) + 87 AS col1
----
88

skipif mysql # not compatible
query I rowsort label-3801
SELECT COUNT ( * ) + 87 AS col1
----
88

query I rowsort
SELECT 16 + - 53 * + 96
----
-5072

query I rowsort
SELECT 26 + + 41 AS col2
----
67

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3804
SELECT 35 + - 2 + COALESCE ( + - 37, MIN( DISTINCT + 84 ) + + 3 + - COUNT( * ) * - 39, - 14 * 71 * - + 34 DIV + NULLIF ( + 98, + + 26 * - - 54 * + 57 DIV - 5 DIV 81 + 85 - - COUNT( * ) ) ) AS col0
----
-4

skipif mysql # not compatible
query I rowsort label-3804
SELECT 35 + - 2 + COALESCE ( + - 37, MIN ( DISTINCT + 84 ) + + 3 + - COUNT ( * ) * - 39, - 14 * 71 * - + 34 / + NULLIF ( + 98, + + 26 * - - 54 * + 57 / - 5 / 81 + 85 - - COUNT ( * ) ) ) AS col0
----
-4

onlyif mysql # DIV for integer division: 
query I rowsort label-3805
SELECT ALL + 26 DIV - - COALESCE ( + - 17, 66 + + 7, - 37 )
----
-1

skipif mysql # not compatible
query I rowsort label-3805
SELECT ALL + 26 / - - COALESCE ( + - 17, 66 + + 7, - 37 )
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-3806
SELECT 42 DIV + 96
----
0

skipif mysql # not compatible
query I rowsort label-3806
SELECT 42 / + 96
----
0

query I rowsort
SELECT ALL 3 * - 68 col0
----
-204

query II rowsort
SELECT ALL 21 AS col0, ( - - 5 ) AS col0
----
21
5

query I rowsort
SELECT DISTINCT + 18 + - 99 AS col0
----
-81

query I rowsort
SELECT 97 + 73 AS col2
----
170

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3811
SELECT DISTINCT - ( - 31 ) + + NULLIF ( + 30, + 38 DIV - 56 + + - 80 * + 14 * - + 31 * + COUNT( * ) * - COALESCE ( - + 54, 24, - 88 ) - - 98 + + CASE - COUNT( 90 ) WHEN - 19 DIV - COALESCE ( - COALESCE ( + 1, CASE - 72 WHEN + CAST( NULLIF ( 95, 19 * 10 ) AS SIGNED ) DIV + ( 33 ) + - 65 THEN 84 + AVG ( 45 ) DIV 87 END, CAST( NULL AS SIGNED ) * 80 ), - 18 * 82, + COALESCE ( 8, + 90 * 95 ) ) THEN NULL WHEN 57 + 69 * COUNT( * ) THEN NULL ELSE 65 END ) + 64 DIV 84 AS col2
----
61

skipif mysql # not compatible
query I rowsort label-3811
SELECT DISTINCT - ( - 31 ) + + NULLIF ( + 30, + 38 / - 56 + + - 80 * + 14 * - + 31 * + COUNT ( * ) * - COALESCE ( - + 54, 24, - 88 ) - - 98 + + CASE - COUNT ( 90 ) WHEN - 19 / - COALESCE ( - COALESCE ( + 1, CASE - 72 WHEN + CAST ( NULLIF ( 95, 19 * 10 ) AS INTEGER ) / + ( 33 ) + - 65 THEN 84 + AVG ( 45 ) / 87 END, CAST ( NULL AS INTEGER ) * 80 ), - 18 * 82, + COALESCE ( 8, + 90 * 95 ) ) THEN NULL WHEN 57 + 69 * COUNT ( * ) THEN NULL ELSE 65 END ) + 64 / 84 AS col2
----
61

query I rowsort
SELECT ( - 21 )
----
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-3813
SELECT + COUNT( * ) * + COUNT( * ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-3813
SELECT + COUNT ( * ) * + COUNT ( * ) AS col2
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3814
SELECT + CAST( - - 71 AS SIGNED ) AS col1
----
71

skipif mysql # not compatible
query I rowsort label-3814
SELECT + CAST ( - - 71 AS INTEGER ) AS col1
----
71

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3815
SELECT 30 * COUNT( * ) + - ( - 25 ) + - 97 + + + 95 DIV 22
----
-38

skipif mysql # not compatible
query I rowsort label-3815
SELECT 30 * COUNT ( * ) + - ( - 25 ) + - 97 + + + 95 / 22
----
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-3816
SELECT + 85 * - - 38 * + - 46 - COUNT( * ) + 25 * - 31 * - 64 + 53 * - 22
----
-100147

skipif mysql # not compatible
query I rowsort label-3816
SELECT + 85 * - - 38 * + - 46 - COUNT ( * ) + 25 * - 31 * - 64 + 53 * - 22
----
-100147

query I rowsort
SELECT ALL - + 25 AS col1
----
-25

query I rowsort
SELECT 97 * - 28
----
-2716

onlyif mysql # aggregate syntax: 
query I rowsort label-3819
SELECT ALL COUNT( * ) + - 12
----
-11

skipif mysql # not compatible
query I rowsort label-3819
SELECT ALL COUNT ( * ) + - 12
----
-11

onlyif mysql # DIV for integer division: 
query I rowsort label-3820
SELECT - 9 DIV 37 - + - 34 DIV 23
----
1

skipif mysql # not compatible
query I rowsort label-3820
SELECT - 9 / 37 - + - 34 / 23
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3821
SELECT DISTINCT - COUNT( ALL + - 38 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-3821
SELECT DISTINCT - COUNT ( ALL + - 38 ) AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3822
SELECT ALL - - ( + - NULLIF ( + 53, 74 * - 15 + 12 * - ( COALESCE ( + 77, ( + - COUNT( * ) ) ) ) - + COUNT( * ) ) ) col1
----
-53

skipif mysql # not compatible
query I rowsort label-3822
SELECT ALL - - ( + - NULLIF ( + 53, 74 * - 15 + 12 * - ( COALESCE ( + 77, ( + - COUNT ( * ) ) ) ) - + COUNT ( * ) ) ) col1
----
-53

query I rowsort
SELECT DISTINCT 96 + 23 + - 11
----
108

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3824
SELECT + CAST( - + 76 AS SIGNED ) AS col0
----
-76

skipif mysql # not compatible
query I rowsort label-3824
SELECT + CAST ( - + 76 AS INTEGER ) AS col0
----
-76

onlyif mysql # DIV for integer division: 
query I rowsort label-3825
SELECT - + 20 DIV - 44 * + 88 + + 27 AS col2
----
27

skipif mysql # not compatible
query I rowsort label-3825
SELECT - + 20 / - 44 * + 88 + + 27 AS col2
----
27

query I rowsort
SELECT 55 + + 36
----
91

query I rowsort
SELECT DISTINCT 36 * - ( + 47 ) * ( + 10 ) * + 21 * 27 + CASE WHEN + 83 BETWEEN - - 43 AND NULL THEN + 15 * ( - 94 ) / + - 59 - + 45 END + 2 * - AVG ( DISTINCT 83 ) AS col0
----
NULL

query I rowsort
SELECT - 42 * + 98 + - 73 col1
----
-4189

query I rowsort
SELECT 30 * + 21
----
630

onlyif mysql # aggregate syntax: 
query I rowsort label-3830
SELECT ALL - MAX( - + CASE + + 79 WHEN + 1 / ( + 15 ) THEN + - 39 / 72 - - 8 + 94 END ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3830
SELECT ALL - MAX ( - + CASE + + 79 WHEN + 1 / ( + 15 ) THEN + - 39 / 72 - - 8 + 94 END ) AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3831
SELECT - 10 * 14 * + - 56 + - - AVG ( DISTINCT + ( CAST( NULL AS DECIMAL ) ) ) * + 58 * - + 20 + + 7 + + 32 * - + 16 + - 98 + + CASE - - 83 WHEN - + 39 THEN + + 56 WHEN - 41 THEN NULL ELSE + - 1 END + 58 + - 53 / 28 + - 64 * - ( + COUNT( * ) / 33 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3831
SELECT - 10 * 14 * + - 56 + - - AVG ( DISTINCT + ( CAST ( NULL AS REAL ) ) ) * + 58 * - + 20 + + 7 + + 32 * - + 16 + - 98 + + CASE - - 83 WHEN - + 39 THEN + + 56 WHEN - 41 THEN NULL ELSE + - 1 END + 58 + - 53 / 28 + - 64 * - ( + COUNT ( * ) / 33 ) AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3832
SELECT ALL COUNT( * ) * - - 75 DIV 11 * CAST( - + 27 AS SIGNED ) col2
----
-162

skipif mysql # not compatible
query I rowsort label-3832
SELECT ALL COUNT ( * ) * - - 75 / 11 * CAST ( - + 27 AS INTEGER ) col2
----
-162

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3833
SELECT DISTINCT 93 * CAST( NULL AS SIGNED ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3833
SELECT DISTINCT 93 * CAST ( NULL AS INTEGER ) col1
----
NULL

query I rowsort
SELECT 26 + + - 78 * + 17 AS col0
----
-1300

query I rowsort
SELECT ALL + 30 * + + ( + 86 )
----
2580

onlyif mysql # DIV for integer division: 
query I rowsort label-3836
SELECT 36 + + 20 DIV 85 AS col2
----
36

skipif mysql # not compatible
query I rowsort label-3836
SELECT 36 + + 20 / 85 AS col2
----
36

query II rowsort
SELECT ALL - 71 AS col0, + 55 AS col0
----
-71
55

query I rowsort
SELECT 42 * + 91 * - CASE 87 WHEN - 28 * + + 78 THEN - 28 WHEN - 75 THEN - - 17 END
----
NULL

query I rowsort
SELECT 30 * + + 98 * - + 39 + - + 59 + - 79
----
-114798

query I rowsort
SELECT ALL 22 col0
----
22

query I rowsort
SELECT 61 + - 61 AS col0
----
0

query I rowsort
SELECT ( 69 ) * + 54
----
3726

query I rowsort
SELECT DISTINCT + 12 + + 94 * - 80
----
-7508

onlyif mysql # aggregate syntax: 
query II rowsort label-3844
SELECT DISTINCT 37, MAX( DISTINCT 43 ) AS col0
----
37
43

skipif mysql # not compatible
query II rowsort label-3844
SELECT DISTINCT 37, MAX ( DISTINCT 43 ) AS col0
----
37
43

onlyif mysql # aggregate syntax: 
query I rowsort label-3845
SELECT ALL SUM( - 51 ) + 95
----
44

skipif mysql # not compatible
query I rowsort label-3845
SELECT ALL SUM ( - 51 ) + 95
----
44

query I rowsort
SELECT DISTINCT - - 53 + + 8 * 55
----
493

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3847
SELECT - + CAST( - NULLIF ( - 12, + 34 * - 18 + + 98 * + ( + - 7 ) ) AS SIGNED ) AS col1
----
-12

skipif mysql # not compatible
query I rowsort label-3847
SELECT - + CAST ( - NULLIF ( - 12, + 34 * - 18 + + 98 * + ( + - 7 ) ) AS INTEGER ) AS col1
----
-12

query II rowsort
SELECT - + 88, - 31 AS col2
----
-88
-31

onlyif mysql # DIV for integer division: 
query II rowsort label-3849
SELECT ALL - 32 col0, 67 - - 4 DIV + 65
----
-32
67

skipif mysql # not compatible
query II rowsort label-3849
SELECT ALL - 32 col0, 67 - - 4 / + 65
----
-32
67

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3850
SELECT - CASE - AVG ( DISTINCT + 32 ) WHEN + 86 THEN - + 27 WHEN 63 * 47 THEN NULL ELSE NULL END * - + SUM( DISTINCT - CAST( - + 98 AS SIGNED ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3850
SELECT - CASE - AVG ( DISTINCT + 32 ) WHEN + 86 THEN - + 27 WHEN 63 * 47 THEN NULL ELSE NULL END * - + SUM ( DISTINCT - CAST ( - + 98 AS INTEGER ) ) AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3851
SELECT 91 - - CAST( + 36 AS SIGNED )
----
127

skipif mysql # not compatible
query I rowsort label-3851
SELECT 91 - - CAST ( + 36 AS INTEGER )
----
127

query I rowsort
SELECT - 39 * + 24 - + 54 + + - 91 + + 9 * + 75 AS col2
----
-406

query I rowsort
SELECT DISTINCT - 73 + - 93 + - 29 * - 9 AS col0
----
95

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3854
SELECT DISTINCT - + COUNT( * ) DIV + 35 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3854
SELECT DISTINCT - + COUNT ( * ) / + 35 AS col1
----
0

query I rowsort
SELECT ALL - 40 - - + 66 col1
----
26

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3856
SELECT ALL - COALESCE ( ( - + 38 ), - 92 * + + 16 + + + 30, - 94, - - 91 * 63 + 16 + 74 + 68 + - 27 * + 10 + - COALESCE ( - 39, + CAST( NULL AS SIGNED ) DIV + ( - COUNT( * ) ) + - 41 + 4 * - NULLIF ( - 83 * - 11, 69 ), - 23 ) * 88 - - 83 ) * CAST( - 18 - + 46 AS SIGNED ) AS col0
----
-2432

skipif mysql # not compatible
query I rowsort label-3856
SELECT ALL - COALESCE ( ( - + 38 ), - 92 * + + 16 + + + 30, - 94, - - 91 * 63 + 16 + 74 + 68 + - 27 * + 10 + - COALESCE ( - 39, + CAST ( NULL AS INTEGER ) / + ( - COUNT ( * ) ) + - 41 + 4 * - NULLIF ( - 83 * - 11, 69 ), - 23 ) * 88 - - 83 ) * CAST ( - 18 - + 46 AS INTEGER ) AS col0
----
-2432

query II rowsort
SELECT DISTINCT - 73 AS col1, + 34 AS col2
----
-73
34

query II rowsort
SELECT 95, 45 AS col2
----
95
45

onlyif mysql # aggregate syntax: 
query I rowsort label-3859
SELECT ALL + COUNT( * ) * - - 82 AS col0
----
82

skipif mysql # not compatible
query I rowsort label-3859
SELECT ALL + COUNT ( * ) * - - 82 AS col0
----
82

query I rowsort
SELECT + + 24 col1
----
24

query I rowsort
SELECT - 55 * - + 50 AS col1
----
2750

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3862
SELECT DISTINCT - CAST( - + 87 AS SIGNED ) col0
----
87

skipif mysql # not compatible
query I rowsort label-3862
SELECT DISTINCT - CAST ( - + 87 AS INTEGER ) col0
----
87

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3863
SELECT DISTINCT ( - COUNT( * ) ) * 54 - - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3863
SELECT DISTINCT ( - COUNT ( * ) ) * 54 - - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT DISTINCT + 85 AS col2
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-3865
SELECT + MAX( ALL 94 ) col1
----
94

skipif mysql # not compatible
query I rowsort label-3865
SELECT + MAX ( ALL 94 ) col1
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-3866
SELECT + MAX( ALL 49 )
----
49

skipif mysql # not compatible
query I rowsort label-3866
SELECT + MAX ( ALL 49 )
----
49

query I rowsort
SELECT ALL 81 * - ( - 26 ) AS col0
----
2106

onlyif mysql # aggregate syntax: 
query II rowsort label-3868
SELECT SUM( DISTINCT - 69 ) AS col1, 84 + - + 86 + + 97 * - + ( + + 62 )
----
-69
-6016

skipif mysql # not compatible
query II rowsort label-3868
SELECT SUM ( DISTINCT - 69 ) AS col1, 84 + - + 86 + + 97 * - + ( + + 62 )
----
-69
-6016

onlyif mysql # DIV for integer division: 
query I rowsort label-3869
SELECT DISTINCT ( + - 87 ) * 34 + 4 DIV - 75
----
-2958

skipif mysql # not compatible
query I rowsort label-3869
SELECT DISTINCT ( + - 87 ) * 34 + 4 / - 75
----
-2958

onlyif mysql # aggregate syntax: 
query I rowsort label-3870
SELECT ALL 34 + - - ( - COUNT( * ) ) AS col1
----
33

skipif mysql # not compatible
query I rowsort label-3870
SELECT ALL 34 + - - ( - COUNT ( * ) ) AS col1
----
33

query II rowsort
SELECT + 39 + + + 55 AS col1, - 65 AS col1
----
94
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-3872
SELECT + COALESCE ( - + 51, + MIN( DISTINCT - ( - 66 ) ) * 61 ) AS col0
----
-51

skipif mysql # not compatible
query I rowsort label-3872
SELECT + COALESCE ( - + 51, + MIN ( DISTINCT - ( - 66 ) ) * 61 ) AS col0
----
-51

query I rowsort
SELECT + 16 + - 24 * ( + 98 )
----
-2336

query I rowsort
SELECT ALL 27 + + - 52 AS col0
----
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-3875
SELECT SUM( + 97 ) AS col2
----
97

skipif mysql # not compatible
query I rowsort label-3875
SELECT SUM ( + 97 ) AS col2
----
97

query I rowsort
SELECT ALL 98 + - NULLIF ( - 93, + + 74 / 67 - 15 ) * - ( - 57 ) AS col2
----
5399

onlyif mysql # DIV for integer division: 
query I rowsort label-3877
SELECT ALL 21 DIV - 27
----
0

skipif mysql # not compatible
query I rowsort label-3877
SELECT ALL 21 / - 27
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3878
SELECT DISTINCT COUNT( * ) + + + 31 AS col0
----
32

skipif mysql # not compatible
query I rowsort label-3878
SELECT DISTINCT COUNT ( * ) + + + 31 AS col0
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-3879
SELECT - CASE - MIN( + 23 ) WHEN + 54 + 36 - + CASE WHEN NOT + ( + COUNT( * ) ) IN ( + COALESCE ( + 49, CASE + COUNT( * ) WHEN COUNT( * ) THEN - - 12 * + COUNT( * ) * 69 + 49 + - 68 END - 82 * + + 75 * + 78 ) / COALESCE ( + 19, - 94 * 18, + 80 - 21 ) ) THEN 31 / + 81 ELSE + 50 END + 69 * 11 * + 35 THEN + 96 WHEN + 59 * - COUNT( * ) THEN NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3879
SELECT - CASE - MIN ( + 23 ) WHEN + 54 + 36 - + CASE WHEN NOT + ( + COUNT ( * ) ) IN ( + COALESCE ( + 49, CASE + COUNT ( * ) WHEN COUNT ( * ) THEN - - 12 * + COUNT ( * ) * 69 + 49 + - 68 END - 82 * + + 75 * + 78 ) / COALESCE ( + 19, - 94 * 18, + 80 - 21 ) ) THEN 31 / + 81 ELSE + 50 END + 69 * 11 * + 35 THEN + 96 WHEN + 59 * - COUNT ( * ) THEN NULL END AS col1
----
NULL

query I rowsort
SELECT - + 16 + 22 col1
----
6

onlyif mysql # aggregate syntax: 
query II rowsort label-3881
SELECT ALL 80 * - MAX( - + 57 ) * - - 57 * + COUNT( 97 ) + 81 col2, + 23 AS col2
----
260001
23

skipif mysql # not compatible
query II rowsort label-3881
SELECT ALL 80 * - MAX ( - + 57 ) * - - 57 * + COUNT ( 97 ) + 81 col2, + 23 AS col2
----
260001
23

query I rowsort
SELECT ALL 84 + 36 col0
----
120

query I rowsort
SELECT + 54 + - + 10 + - 38 AS col1
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-3884
SELECT - ( - COUNT( * ) ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-3884
SELECT - ( - COUNT ( * ) ) AS col2
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3885
SELECT + 68 + 21 * + 18 + + CASE + 41 WHEN - - SUM( DISTINCT + 23 ) * - 55 * + 12 * + + 24 + + - 14 + + NULLIF ( - 59, + + 30 * - 91 DIV 34 ) + + 0 DIV + - ( COUNT( * ) ) + - 10 THEN ( + - 31 ) ELSE COALESCE ( + COALESCE ( - COALESCE ( - 91, - 58 DIV CAST( + CASE - 22 WHEN - 56 * 18 THEN + 83 * - 25 + - 21 END AS SIGNED ), ( - 11 ) * + 19 - 51 * - 86 ), NULLIF ( 51, - 34 ) * 70, 24 ), + 92 * 17 + + 28 DIV - ( + 69 + - 25 * + COUNT( * ) ) ) + - COUNT( * ) END AS col2
----
536

skipif mysql # not compatible
query I rowsort label-3885
SELECT + 68 + 21 * + 18 + + CASE + 41 WHEN - - SUM ( DISTINCT + 23 ) * - 55 * + 12 * + + 24 + + - 14 + + NULLIF ( - 59, + + 30 * - 91 / 34 ) + + 0 / + - ( COUNT ( * ) ) + - 10 THEN ( + - 31 ) ELSE COALESCE ( + COALESCE ( - COALESCE ( - 91, - 58 / CAST ( + CASE - 22 WHEN - 56 * 18 THEN + 83 * - 25 + - 21 END AS INTEGER ), ( - 11 ) * + 19 - 51 * - 86 ), NULLIF ( 51, - 34 ) * 70, 24 ), + 92 * 17 + + 28 / - ( + 69 + - 25 * + COUNT ( * ) ) ) + - COUNT ( * ) END AS col2
----
536

query I rowsort
SELECT ALL - 44 * + 3
----
-132

onlyif mysql # aggregate syntax: 
query I rowsort label-3887
SELECT ALL - MIN( DISTINCT + 2 ) AS col1
----
-2

skipif mysql # not compatible
query I rowsort label-3887
SELECT ALL - MIN ( DISTINCT + 2 ) AS col1
----
-2

query I rowsort
SELECT - + ( + 99 )
----
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-3889
SELECT DISTINCT - 0 * - + COUNT( * ) col0
----
0

skipif mysql # not compatible
query I rowsort label-3889
SELECT DISTINCT - 0 * - + COUNT ( * ) col0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3890
SELECT - + 14 + + 41 DIV - 38 * COUNT( * )
----
-15

skipif mysql # not compatible
query I rowsort label-3890
SELECT - + 14 + + 41 / - 38 * COUNT ( * )
----
-15

query I rowsort
SELECT ALL + 49 col1
----
49

onlyif mysql # DIV for integer division: 
query I rowsort label-3892
SELECT + 70 DIV + 13 + + + 10 + 62
----
77

skipif mysql # not compatible
query I rowsort label-3892
SELECT + 70 / + 13 + + + 10 + 62
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-3893
SELECT - COUNT( * ) * COUNT( * ) * + COUNT( ALL - 61 ) * 54 AS col2
----
-54

skipif mysql # not compatible
query I rowsort label-3893
SELECT - COUNT ( * ) * COUNT ( * ) * + COUNT ( ALL - 61 ) * 54 AS col2
----
-54

onlyif mysql # DIV for integer division: 
query I rowsort label-3894
SELECT ALL - + 71 DIV 71 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-3894
SELECT ALL - + 71 / 71 AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3895
SELECT - + COUNT( * ) + + - 20 * 92 AS col1
----
-1841

skipif mysql # not compatible
query I rowsort label-3895
SELECT - + COUNT ( * ) + + - 20 * 92 AS col1
----
-1841

onlyif mysql # aggregate syntax: 
query I rowsort label-3896
SELECT COUNT( ALL + + 33 ) col0
----
1

skipif mysql # not compatible
query I rowsort label-3896
SELECT COUNT ( ALL + + 33 ) col0
----
1

query I rowsort
SELECT ALL - + 96 * 59 * + - 14 * NULLIF ( - ( + 42 ), - 39 * 12 + + + 30 * 19 / - 75 )
----
-3330432

onlyif mysql # DIV for integer division: 
query I rowsort label-3898
SELECT - + 62 DIV + 61
----
-1

skipif mysql # not compatible
query I rowsort label-3898
SELECT - + 62 / + 61
----
-1

query I rowsort
SELECT DISTINCT + + 80 AS col2
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-3900
SELECT DISTINCT + MAX( ALL + - 1 )
----
-1

skipif mysql # not compatible
query I rowsort label-3900
SELECT DISTINCT + MAX ( ALL + - 1 )
----
-1

query I rowsort
SELECT - 99 + - 15 col0
----
-114

query I rowsort
SELECT ALL + 57 * 15 * + 75
----
64125

onlyif mysql # aggregate syntax: 
query I rowsort label-3903
SELECT ALL + SUM( - 51 ) col0
----
-51

skipif mysql # not compatible
query I rowsort label-3903
SELECT ALL + SUM ( - 51 ) col0
----
-51

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3904
SELECT - 21 * COALESCE ( + 26, 45 + + COALESCE ( 38, - - 83, + 2 ) + + ( + ( + 0 ) ), - + CASE - 92 WHEN + COUNT( * ) - - + 46 THEN 12 ELSE + 62 * + 61 * 54 * - 65 END / + 63 + 10 - 19 ) / CAST( NULL AS SIGNED ) + - COUNT( * ) * + AVG ( NULLIF ( - 82, + ( 3 ) / 16 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-3904
SELECT - 21 * COALESCE ( + 26, 45 + + COALESCE ( 38, - - 83, + 2 ) + + ( + ( + 0 ) ), - + CASE - 92 WHEN + COUNT ( * ) - - + 46 THEN 12 ELSE + 62 * + 61 * 54 * - 65 END / + 63 + 10 - 19 ) / CAST ( NULL AS INTEGER ) + - COUNT ( * ) * + AVG ( NULLIF ( - 82, + ( 3 ) / 16 ) )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3905
SELECT 66 DIV + 67 + 26 + + NULLIF ( + + 94, + 59 ) DIV + + 34
----
28

skipif mysql # not compatible
query I rowsort label-3905
SELECT 66 / + 67 + 26 + + NULLIF ( + + 94, + 59 ) / + + 34
----
28

query I rowsort
SELECT ( 26 ) col2
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-3907
SELECT ALL - COUNT( * ) * - + MIN( ALL + 54 ) + - + 55 + COUNT( * ) + - MAX( - 91 ) * - COUNT( * ) * - 50 + + - 74 + 68 + 71 * + 10 + - 4 * + + COUNT( * ) AS col1
----
5250

skipif mysql # not compatible
query I rowsort label-3907
SELECT ALL - COUNT ( * ) * - + MIN ( ALL + 54 ) + - + 55 + COUNT ( * ) + - MAX ( - 91 ) * - COUNT ( * ) * - 50 + + - 74 + 68 + 71 * + 10 + - 4 * + + COUNT ( * ) AS col1
----
5250

onlyif mysql # aggregate syntax: 
query I rowsort label-3908
SELECT - 58 * - 22 * - MIN( ALL + 89 ) + + - COUNT( * ) AS col1
----
-113565

skipif mysql # not compatible
query I rowsort label-3908
SELECT - 58 * - 22 * - MIN ( ALL + 89 ) + + - COUNT ( * ) AS col1
----
-113565

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-3909
SELECT + COUNT( * ) + - ( + 27 ) * - 10 + - + COALESCE ( - 74, 62 * 67 ), + 80 + - - CAST( - + CAST( NULL AS DECIMAL ) AS SIGNED ) AS col2
----
345
NULL

skipif mysql # not compatible
query II rowsort label-3909
SELECT + COUNT ( * ) + - ( + 27 ) * - 10 + - + COALESCE ( - 74, 62 * 67 ), + 80 + - - CAST ( - + CAST ( NULL AS REAL ) AS INTEGER ) AS col2
----
345
NULL

query I rowsort
SELECT DISTINCT + 88 * - 63 + - 29 AS col1
----
-5573

query II rowsort
SELECT DISTINCT + 9 AS col1, - 60 AS col1
----
9
-60

query I rowsort
SELECT COALESCE ( + ( + 96 ), + - 55, + - 33 ) AS col2
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-3913
SELECT ALL + CASE COUNT( * ) WHEN COALESCE ( 56, - ( + + 34 ), + ( 38 ) * + 49 * - 95 ) / 6 * - COUNT( - - 4 ) THEN + COUNT( * ) / + COUNT( ALL + 12 ) ELSE NULL END * 62 * + MAX( ALL 41 ) + - - 13 + - 8 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3913
SELECT ALL + CASE COUNT ( * ) WHEN COALESCE ( 56, - ( + + 34 ), + ( 38 ) * + 49 * - 95 ) / 6 * - COUNT ( - - 4 ) THEN + COUNT ( * ) / + COUNT ( ALL + 12 ) ELSE NULL END * 62 * + MAX ( ALL 41 ) + - - 13 + - 8 AS col1
----
NULL

query I rowsort
SELECT ALL NULLIF ( - 59, - - 24 * 66 ) * ( + 87 ) + - 59 * 12 + - 31 + - - 66
----
-5806

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3915
SELECT + 86 + + NULLIF ( + + 89, - AVG ( + CAST( - + NULLIF ( + 15, + 62 + + + ( - COALESCE ( - + 27, + + 33 ) ) ) AS SIGNED ) ) )
----
175

skipif mysql # not compatible
query I rowsort label-3915
SELECT + 86 + + NULLIF ( + + 89, - AVG ( + CAST ( - + NULLIF ( + 15, + 62 + + + ( - COALESCE ( - + 27, + + 33 ) ) ) AS INTEGER ) ) )
----
175

onlyif mysql # aggregate syntax: 
query I rowsort label-3916
SELECT + COUNT( * ) * - + COUNT( * ) + - 43
----
-44

skipif mysql # not compatible
query I rowsort label-3916
SELECT + COUNT ( * ) * - + COUNT ( * ) + - 43
----
-44

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3917
SELECT + MIN( DISTINCT - CAST( + 55 AS SIGNED ) ), ( + COALESCE ( - 8, + + 8, + - COUNT( * ) ) ) * + 40 AS col2
----
-55
-320

skipif mysql # not compatible
query II rowsort label-3917
SELECT + MIN ( DISTINCT - CAST ( + 55 AS INTEGER ) ), ( + COALESCE ( - 8, + + 8, + - COUNT ( * ) ) ) * + 40 AS col2
----
-55
-320

query I rowsort
SELECT - ( - 87 ) AS col0
----
87

query I rowsort
SELECT - ( + 38 ) AS col0
----
-38

query I rowsort
SELECT - 50 * 46
----
-2300

onlyif mysql # aggregate syntax: 
query I rowsort label-3921
SELECT + COUNT( DISTINCT + 0 ) * + - 53 + + 89 + 5 AS col1
----
41

skipif mysql # not compatible
query I rowsort label-3921
SELECT + COUNT ( DISTINCT + 0 ) * + - 53 + + 89 + 5 AS col1
----
41

query II rowsort
SELECT ALL 90 AS col1, 20 AS col0
----
90
20

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3923
SELECT DISTINCT 73 * + + 28 - + 69 * - - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3923
SELECT DISTINCT 73 * + + 28 - + 69 * - - CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT + 61 * - 87
----
-5307

onlyif mysql # DIV for integer division: 
query I rowsort label-3925
SELECT ALL - 4 * 60 DIV 42 * + 34
----
-170

skipif mysql # not compatible
query I rowsort label-3925
SELECT ALL - 4 * 60 / 42 * + 34
----
-170

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3926
SELECT ALL + 23 DIV 28 * - - COUNT( + + 10 ) * + 12
----
0

skipif mysql # not compatible
query I rowsort label-3926
SELECT ALL + 23 / 28 * - - COUNT ( + + 10 ) * + 12
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3927
SELECT + CAST( - 13 AS SIGNED ) DIV COALESCE ( - + 14, + - NULLIF ( - COUNT( * ), 19 * - - NULLIF ( 12, + MIN( ALL - - ( + - 11 ) ) ) DIV + - 4 + - 84 + + 36 - - 57 + - + 68 * NULLIF ( + 57, + 45 ) ) * + 24 DIV CAST( - 0 AS SIGNED ) DIV + 90, - 93 ) col0
----
0

skipif mysql # not compatible
query I rowsort label-3927
SELECT + CAST ( - 13 AS INTEGER ) / COALESCE ( - + 14, + - NULLIF ( - COUNT ( * ), 19 * - - NULLIF ( 12, + MIN ( ALL - - ( + - 11 ) ) ) / + - 4 + - 84 + + 36 - - 57 + - + 68 * NULLIF ( + 57, + 45 ) ) * + 24 / CAST ( - 0 AS INTEGER ) / + 90, - 93 ) col0
----
0

query I rowsort
SELECT ALL - 41 AS col2
----
-41

query I rowsort
SELECT + 97 + + 68
----
165

query I rowsort
SELECT + + 27 * + 17 + 32
----
491

query II rowsort
SELECT ALL + COALESCE ( - 44, - 87 ), 43 - 0 col0
----
-44
43

onlyif mysql # aggregate syntax: 
query II rowsort label-3932
SELECT + 54 - - COUNT( * ) - - - 13 AS col1, COALESCE ( + - 80, + 55 ) * + 93 + 23 col2
----
42
-7417

skipif mysql # not compatible
query II rowsort label-3932
SELECT + 54 - - COUNT ( * ) - - - 13 AS col1, COALESCE ( + - 80, + 55 ) * + 93 + 23 col2
----
42
-7417

query I rowsort
SELECT + + 82 - - 73 AS col0
----
155

query II rowsort
SELECT ALL 4 AS col0, 24 AS col1
----
4
24

query I rowsort
SELECT ALL ( + + 93 ) AS col2
----
93

onlyif mysql # aggregate syntax: 
query II rowsort label-3936
SELECT - COUNT( * ), + COUNT( * ) + - - 99 AS col0
----
-1
100

skipif mysql # not compatible
query II rowsort label-3936
SELECT - COUNT ( * ), + COUNT ( * ) + - - 99 AS col0
----
-1
100

onlyif mysql # aggregate syntax: 
query II rowsort label-3937
SELECT ALL 54, MIN( + 99 ) AS col0
----
54
99

skipif mysql # not compatible
query II rowsort label-3937
SELECT ALL 54, MIN ( + 99 ) AS col0
----
54
99

onlyif mysql # aggregate syntax: 
query I rowsort label-3938
SELECT DISTINCT CASE WHEN + CASE + - COUNT( * ) WHEN - 10 THEN NULL WHEN + - 23 - 53 THEN ( COUNT( DISTINCT + ( + 21 ) ) ) * 72 + COALESCE ( + + 45, 9 ) WHEN - 40 + - 7 + - 1 THEN NULL END NOT IN ( + 14 + + 18 ) THEN NULL ELSE ( - - 46 ) END
----
46

skipif mysql # not compatible
query I rowsort label-3938
SELECT DISTINCT CASE WHEN + CASE + - COUNT ( * ) WHEN - 10 THEN NULL WHEN + - 23 - 53 THEN ( COUNT ( DISTINCT + ( + 21 ) ) ) * 72 + COALESCE ( + + 45, 9 ) WHEN - 40 + - 7 + - 1 THEN NULL END NOT IN ( + 14 + + 18 ) THEN NULL ELSE ( - - 46 ) END
----
46

query II rowsort
SELECT - 13 * 19 * + 24, 30 AS col2
----
-5928
30

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3940
SELECT ALL - 94 * CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3940
SELECT ALL - 94 * CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3941
SELECT ALL - SUM( ALL + 19 ), - COUNT( * ) AS col2
----
-19
-1

skipif mysql # not compatible
query II rowsort label-3941
SELECT ALL - SUM ( ALL + 19 ), - COUNT ( * ) AS col2
----
-19
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3942
SELECT DISTINCT COUNT( * ) + + 49 - COUNT( * )
----
49

skipif mysql # not compatible
query I rowsort label-3942
SELECT DISTINCT COUNT ( * ) + + 49 - COUNT ( * )
----
49

onlyif mysql # aggregate syntax: 
query I rowsort label-3943
SELECT - 73 * - 71 - COUNT( * ) + + - 34 * + ( + + 15 )
----
4672

skipif mysql # not compatible
query I rowsort label-3943
SELECT - 73 * - 71 - COUNT ( * ) + + - 34 * + ( + + 15 )
----
4672

query I rowsort
SELECT COALESCE ( 20, 57 * - 99 ) * - 15 col0
----
-300

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3945
SELECT 35 DIV ( - - COUNT( * ) )
----
35

skipif mysql # not compatible
query I rowsort label-3945
SELECT 35 / ( - - COUNT ( * ) )
----
35

onlyif mysql # DIV for integer division: 
query I rowsort label-3946
SELECT 42 * 46 DIV - - 2
----
966

skipif mysql # not compatible
query I rowsort label-3946
SELECT 42 * 46 / - - 2
----
966

onlyif mysql # aggregate syntax: 
query I rowsort label-3947
SELECT DISTINCT + 53 * - NULLIF ( - 94, 73 / 33 + - 42 / COUNT( * ) ) AS col2
----
4982

skipif mysql # not compatible
query I rowsort label-3947
SELECT DISTINCT + 53 * - NULLIF ( - 94, 73 / 33 + - 42 / COUNT ( * ) ) AS col2
----
4982

query I rowsort
SELECT ALL + 35 + 35
----
70

onlyif mysql # DIV for integer division: 
query I rowsort label-3949
SELECT 61 DIV + 89 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3949
SELECT 61 / + 89 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3950
SELECT ALL - NULLIF ( 70, COUNT( * ) * - 52 + 71 ) * + 22 - - 72 col1
----
-1468

skipif mysql # not compatible
query I rowsort label-3950
SELECT ALL - NULLIF ( 70, COUNT ( * ) * - 52 + 71 ) * + 22 - - 72 col1
----
-1468

onlyif mysql # aggregate syntax: 
query II rowsort label-3951
SELECT 70 * - 90 AS col1, ( + COUNT( + 73 ) ) + + + 75
----
-6300
76

skipif mysql # not compatible
query II rowsort label-3951
SELECT 70 * - 90 AS col1, ( + COUNT ( + 73 ) ) + + + 75
----
-6300
76

query I rowsort
SELECT ALL - ( - 99 ) AS col2
----
99

query I rowsort
SELECT + 78 * + 1 * + + 31 + 80 AS col0
----
2498

onlyif mysql # aggregate syntax: 
query I rowsort label-3954
SELECT 60 + + + ( NULLIF ( NULLIF ( + 40, + COUNT( * ) ), - + 79 ) )
----
100

skipif mysql # not compatible
query I rowsort label-3954
SELECT 60 + + + ( NULLIF ( NULLIF ( + 40, + COUNT ( * ) ), - + 79 ) )
----
100

query II rowsort
SELECT 96 * + 59 col2, 4
----
5664
4

onlyif mysql # aggregate syntax: 
query I rowsort label-3956
SELECT + MIN( + NULLIF ( + 33, - - 71 ) )
----
33

skipif mysql # not compatible
query I rowsort label-3956
SELECT + MIN ( + NULLIF ( + 33, - - 71 ) )
----
33

query I rowsort
SELECT - - ( - 45 ) AS col2
----
-45

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3958
SELECT DISTINCT + CAST( NULL AS SIGNED ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3958
SELECT DISTINCT + CAST ( NULL AS INTEGER ) col2
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-3959
SELECT 99 DIV 2 + - 87 - - + 30, 54 * + 17 AS col0
----
-8
918

skipif mysql # not compatible
query II rowsort label-3959
SELECT 99 / 2 + - 87 - - + 30, 54 * + 17 AS col0
----
-8
918

onlyif mysql # aggregate syntax: 
query I rowsort label-3960
SELECT + 52 + - CASE + COUNT( * ) WHEN - AVG ( ALL - CASE - + 82 WHEN 51 THEN NULL ELSE 63 END ) THEN + - COUNT( * ) ELSE 70 END AS col1
----
-18

skipif mysql # not compatible
query I rowsort label-3960
SELECT + 52 + - CASE + COUNT ( * ) WHEN - AVG ( ALL - CASE - + 82 WHEN 51 THEN NULL ELSE 63 END ) THEN + - COUNT ( * ) ELSE 70 END AS col1
----
-18

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-3961
SELECT - 61 / + 21 - + ( + COUNT( * ) ) * CAST( NULL AS DECIMAL ) * 12 * + 82 AS col2, + 83 * - CAST( NULL AS SIGNED ) AS col1
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-3961
SELECT - 61 / + 21 - + ( + COUNT ( * ) ) * CAST ( NULL AS REAL ) * 12 * + 82 AS col2, + 83 * - CAST ( NULL AS INTEGER ) AS col1
----
NULL
NULL

query I rowsort
SELECT ALL + + 87 + 35 col1
----
122

query I rowsort
SELECT 68 * - 43 * 9
----
-26316

query I rowsort
SELECT ALL - 9 + + + 30 * 58
----
1731

onlyif mysql # aggregate syntax: 
query II rowsort label-3965
SELECT DISTINCT - 98 * - + NULLIF ( + + 87, + 59 ) col0, - MIN( + - 58 ) AS col0
----
8526
58

skipif mysql # not compatible
query II rowsort label-3965
SELECT DISTINCT - 98 * - + NULLIF ( + + 87, + 59 ) col0, - MIN ( + - 58 ) AS col0
----
8526
58

onlyif mysql # aggregate syntax: 
query II rowsort label-3966
SELECT - ( + ( ( + - 66 ) ) ) + + CASE - MAX( DISTINCT + - 49 ) WHEN + 17 THEN - 2 END, 16 col0
----
NULL
16

skipif mysql # not compatible
query II rowsort label-3966
SELECT - ( + ( ( + - 66 ) ) ) + + CASE - MAX ( DISTINCT + - 49 ) WHEN + 17 THEN - 2 END, 16 col0
----
NULL
16

query I rowsort
SELECT ALL - 4 AS col2
----
-4

query II rowsort
SELECT 50 AS col1, 89
----
50
89

query II rowsort
SELECT 85 AS col0, 7 * - 25
----
85
-175

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3970
SELECT ALL CAST( - 25 AS SIGNED ) + 92 AS col0
----
67

skipif mysql # not compatible
query I rowsort label-3970
SELECT ALL CAST ( - 25 AS INTEGER ) + 92 AS col0
----
67

onlyif mysql # aggregate syntax: 
query I rowsort label-3971
SELECT COUNT( * ) + 79 + + 97 AS col0
----
177

skipif mysql # not compatible
query I rowsort label-3971
SELECT COUNT ( * ) + 79 + + 97 AS col0
----
177

onlyif mysql # aggregate syntax: 
query I rowsort label-3972
SELECT CASE - 39 WHEN + COUNT( * ) THEN NULL WHEN + + 76 THEN 49 END * - 35 * - - 53
----
NULL

skipif mysql # not compatible
query I rowsort label-3972
SELECT CASE - 39 WHEN + COUNT ( * ) THEN NULL WHEN + + 76 THEN 49 END * - 35 * - - 53
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3973
SELECT DISTINCT CASE + NULLIF ( - 52, - - 21 ) WHEN + - 24 THEN + 93 + - 18 WHEN COUNT( * ) - - + CAST( + 30 AS SIGNED ) + + - 44 * + ( + + 71 ) / - 13 * + 39 * + 33 THEN + 68 END + 24
----
NULL

skipif mysql # not compatible
query I rowsort label-3973
SELECT DISTINCT CASE + NULLIF ( - 52, - - 21 ) WHEN + - 24 THEN + 93 + - 18 WHEN COUNT ( * ) - - + CAST ( + 30 AS INTEGER ) + + - 44 * + ( + + 71 ) / - 13 * + 39 * + 33 THEN + 68 END + 24
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3974
SELECT 3 DIV 22 + 50
----
50

skipif mysql # not compatible
query I rowsort label-3974
SELECT 3 / 22 + 50
----
50

query I rowsort
SELECT ALL 22 + - 22 + 64 AS col1
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-3976
SELECT ALL + 67 + 6 * - COUNT( * )
----
61

skipif mysql # not compatible
query I rowsort label-3976
SELECT ALL + 67 + 6 * - COUNT ( * )
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-3977
SELECT SUM( + + 92 ) AS col2
----
92

skipif mysql # not compatible
query I rowsort label-3977
SELECT SUM ( + + 92 ) AS col2
----
92

query I rowsort
SELECT + 74 * + 91 + 15 col2
----
6749

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3979
SELECT COALESCE ( - - CASE + - 73 WHEN + MAX( + - 20 ) THEN + - 33 WHEN - + 82 + + + COUNT( * ) - 89 THEN + MIN( + 13 ) + - 13 + + 80 END, - + 87 * + + 75 + CASE - 56 WHEN - 60 / + 1 THEN + 79 * + 5 * + 77 * + 32 * + 11 + - + AVG ( DISTINCT - 7 ) / CAST( NULL AS DECIMAL ) ELSE NULL END ) * - 36 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3979
SELECT COALESCE ( - - CASE + - 73 WHEN + MAX ( + - 20 ) THEN + - 33 WHEN - + 82 + + + COUNT ( * ) - 89 THEN + MIN ( + 13 ) + - 13 + + 80 END, - + 87 * + + 75 + CASE - 56 WHEN - 60 / + 1 THEN + 79 * + 5 * + 77 * + 32 * + 11 + - + AVG ( DISTINCT - 7 ) / CAST ( NULL AS REAL ) ELSE NULL END ) * - 36 AS col2
----
NULL

query I rowsort
SELECT 80 + - 9
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-3981
SELECT MAX( DISTINCT - 29 ) AS col2
----
-29

skipif mysql # not compatible
query I rowsort label-3981
SELECT MAX ( DISTINCT - 29 ) AS col2
----
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-3982
SELECT + SUM( + 12 )
----
12

skipif mysql # not compatible
query I rowsort label-3982
SELECT + SUM ( + 12 )
----
12

query I rowsort
SELECT 96 + COALESCE ( + - 26, 88 )
----
70

onlyif mysql # DIV for integer division: 
query I rowsort label-3984
SELECT ALL + 32 DIV 13
----
2

skipif mysql # not compatible
query I rowsort label-3984
SELECT ALL + 32 / 13
----
2

query I rowsort
SELECT ALL - 34 AS col1
----
-34

query I rowsort
SELECT 79 * + + 85
----
6715

onlyif mysql # aggregate syntax: 
query I rowsort label-3987
SELECT ALL + MIN( DISTINCT 29 ) * + - 99 * + 38
----
-109098

skipif mysql # not compatible
query I rowsort label-3987
SELECT ALL + MIN ( DISTINCT 29 ) * + - 99 * + 38
----
-109098

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3988
SELECT + COUNT( * ) DIV - 31 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3988
SELECT + COUNT ( * ) / - 31 AS col2
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-3989
SELECT ALL + 45 DIV 85 + 91 + + 56 * - ( + + 6 ) AS col0, 19 * + 48 col2
----
-245
912

skipif mysql # not compatible
query II rowsort label-3989
SELECT ALL + 45 / 85 + 91 + + 56 * - ( + + 6 ) AS col0, 19 * + 48 col2
----
-245
912

query I rowsort
SELECT 22 * + + 51
----
1122

query I rowsort
SELECT DISTINCT + 54 * - ( + + 62 )
----
-3348

query I rowsort
SELECT ALL - NULLIF ( + COALESCE ( 42, + + 22 - - 23 * + 12 ), + + 31 )
----
-42

query I rowsort
SELECT + + ( - 28 ) AS col1
----
-28

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3994
SELECT ALL + COUNT( * ) * + + 49 + + + 63 AS col0, + 93 DIV + + 34 + - 66
----
112
-64

skipif mysql # not compatible
query II rowsort label-3994
SELECT ALL + COUNT ( * ) * + + 49 + + + 63 AS col0, + 93 / + + 34 + - 66
----
112
-64

query II rowsort
SELECT DISTINCT + 86 AS col0, - 46 AS col2
----
86
-46

query I rowsort
SELECT - 6 + 96 col1
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-3997
SELECT - 50 * + + COUNT( * ) + + - 48
----
-98

skipif mysql # not compatible
query I rowsort label-3997
SELECT - 50 * + + COUNT ( * ) + + - 48
----
-98

query I rowsort
SELECT ALL + 60 + + NULLIF ( + ( - 63 ), 4 )
----
-3

query I rowsort
SELECT ALL - - 89 + - - 71
----
160

query II rowsort
SELECT ALL + 27, 6 AS col1
----
27
6

query I rowsort
SELECT DISTINCT + 11 + 34
----
45

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4002
SELECT - + 0 * + 31 * 89 / + + ( - CAST( - - 38 AS DECIMAL ) ) * 30 + - 18 + + CASE ( + + CASE 88 WHEN - - 18 THEN NULL WHEN - + CASE + + 77 WHEN 3 * - 0 THEN + AVG ( + + 47 ) - + - 48 WHEN + + 32 THEN MIN( - 7 ) - 37 END THEN NULL ELSE + 0 * + COUNT( * ) END ) WHEN - 31 THEN - ( - CASE 73 WHEN ( 1 ) THEN 33 WHEN + 73 * COUNT( * ) THEN COUNT( * ) END ) ELSE NULL END * - 45 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4002
SELECT - + 0 * + 31 * 89 / + + ( - CAST ( - - 38 AS REAL ) ) * 30 + - 18 + + CASE ( + + CASE 88 WHEN - - 18 THEN NULL WHEN - + CASE + + 77 WHEN 3 * - 0 THEN + AVG ( + + 47 ) - + - 48 WHEN + + 32 THEN MIN ( - 7 ) - 37 END THEN NULL ELSE + 0 * + COUNT ( * ) END ) WHEN - 31 THEN - ( - CASE 73 WHEN ( 1 ) THEN 33 WHEN + 73 * COUNT ( * ) THEN COUNT ( * ) END ) ELSE NULL END * - 45 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4003
SELECT - + ( + COUNT( * ) )
----
-1

skipif mysql # not compatible
query I rowsort label-4003
SELECT - + ( + COUNT ( * ) )
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-4004
SELECT - CASE WHEN NOT + 16 IS NOT NULL THEN - 62 ELSE NULL END + - 24, 19 + + - COUNT( * ) AS col1
----
NULL
18

skipif mysql # not compatible
query II rowsort label-4004
SELECT - CASE WHEN NOT + 16 IS NOT NULL THEN - 62 ELSE NULL END + - 24, 19 + + - COUNT ( * ) AS col1
----
NULL
18

query I rowsort
SELECT ALL - 19 + 72 AS col2
----
53

onlyif mysql # aggregate syntax: 
query II rowsort label-4006
SELECT - 28 AS col2, COUNT( * ) AS col1
----
-28
1

skipif mysql # not compatible
query II rowsort label-4006
SELECT - 28 AS col2, COUNT ( * ) AS col1
----
-28
1

query I rowsort
SELECT - + 6
----
-6

query II rowsort
SELECT - + 93, 58 - - ( - + 53 ) AS col0
----
-93
5

onlyif mysql # aggregate syntax: 
query I rowsort label-4009
SELECT - 52 - + 20 - - COUNT( * ) + + 15 + + 64
----
8

skipif mysql # not compatible
query I rowsort label-4009
SELECT - 52 - + 20 - - COUNT ( * ) + + 15 + + 64
----
8

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4010
SELECT - MIN( CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-4010
SELECT - MIN ( CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4011
SELECT ALL + MAX( - 72 ) * 71
----
-5112

skipif mysql # not compatible
query I rowsort label-4011
SELECT ALL + MAX ( - 72 ) * 71
----
-5112

query II rowsort
SELECT DISTINCT 97, 34 AS col1
----
97
34

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4013
SELECT ALL + ( - - COALESCE ( + 21, 7 ) ) + - - 13 + CAST( - 87 AS SIGNED ) + 18 * - + MAX( + - 97 ) AS col1
----
1693

skipif mysql # not compatible
query I rowsort label-4013
SELECT ALL + ( - - COALESCE ( + 21, 7 ) ) + - - 13 + CAST ( - 87 AS INTEGER ) + 18 * - + MAX ( + - 97 ) AS col1
----
1693

onlyif mysql # DIV for integer division: 
query I rowsort label-4014
SELECT + 10 DIV + 89 * 30 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4014
SELECT + 10 / + 89 * 30 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4015
SELECT DISTINCT COALESCE ( + + 95, + SUM( + + 41 ), + 22, + 70 + + 64 * + 37 - 43 + + 34 )
----
95

skipif mysql # not compatible
query I rowsort label-4015
SELECT DISTINCT COALESCE ( + + 95, + SUM ( + + 41 ), + 22, + 70 + + 64 * + 37 - 43 + + 34 )
----
95

query I rowsort
SELECT ALL ( - + 95 ) AS col0
----
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-4017
SELECT DISTINCT ( - + ( COUNT( * ) ) ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-4017
SELECT DISTINCT ( - + ( COUNT ( * ) ) ) AS col2
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-4018
SELECT ( COUNT( * ) ), 56 AS col2
----
1
56

skipif mysql # not compatible
query II rowsort label-4018
SELECT ( COUNT ( * ) ), 56 AS col2
----
1
56

onlyif mysql # DIV for integer division: 
query I rowsort label-4019
SELECT ALL 69 DIV 45 DIV + - 96 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4019
SELECT ALL 69 / 45 / + - 96 AS col0
----
0

query I rowsort
SELECT + ( NULLIF ( - 77, - 55 ) ) * - ( 82 )
----
6314

query I rowsort
SELECT + ( - 99 )
----
-99

query I rowsort
SELECT ( 56 )
----
56

query I rowsort
SELECT + ( + 0 )
----
0

query I rowsort
SELECT ALL 97 * - 93
----
-9021

onlyif mysql # aggregate syntax: 
query I rowsort label-4025
SELECT + ( - 10 ) * + + ( - COUNT( ALL - - 40 ) )
----
10

skipif mysql # not compatible
query I rowsort label-4025
SELECT + ( - 10 ) * + + ( - COUNT ( ALL - - 40 ) )
----
10

query I rowsort
SELECT DISTINCT 26 * + - 80 * - 9 * 2
----
37440

query I rowsort
SELECT ALL + 50 col2
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-4028
SELECT ALL 61 * COUNT( * )
----
61

skipif mysql # not compatible
query I rowsort label-4028
SELECT ALL 61 * COUNT ( * )
----
61

query I rowsort
SELECT DISTINCT + - 6 AS col1
----
-6

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4030
SELECT - COUNT( * ) * + 16 + - ( - 28 ) DIV 32 AS col2
----
-16

skipif mysql # not compatible
query I rowsort label-4030
SELECT - COUNT ( * ) * + 16 + - ( - 28 ) / 32 AS col2
----
-16

query I rowsort
SELECT ALL + - 24
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-4032
SELECT ALL + CASE + - 94 WHEN 51 * - 65 THEN NULL WHEN + - 51 THEN - 20 WHEN + + 53 + + 98 * 78 THEN + COUNT( * ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4032
SELECT ALL + CASE + - 94 WHEN 51 * - 65 THEN NULL WHEN + - 51 THEN - 20 WHEN + + 53 + + 98 * 78 THEN + COUNT ( * ) END AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4033
SELECT ALL - + CASE - CAST( 62 AS SIGNED ) WHEN - - 93 THEN + 40 ELSE - 75 END * 61 * + - 28 * 18 + - 70 + 91
----
-2305779

skipif mysql # not compatible
query I rowsort label-4033
SELECT ALL - + CASE - CAST ( 62 AS INTEGER ) WHEN - - 93 THEN + 40 ELSE - 75 END * 61 * + - 28 * 18 + - 70 + 91
----
-2305779

onlyif mysql # aggregate syntax: 
query II rowsort label-4034
SELECT + 21 + 58, - COUNT( * ) AS col1
----
79
-1

skipif mysql # not compatible
query II rowsort label-4034
SELECT + 21 + 58, - COUNT ( * ) AS col1
----
79
-1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4035
SELECT ALL + - 90 AS col1, + CAST( - 73 AS SIGNED ) + - 18 AS col1
----
-90
-91

skipif mysql # not compatible
query II rowsort label-4035
SELECT ALL + - 90 AS col1, + CAST ( - 73 AS INTEGER ) + - 18 AS col1
----
-90
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-4036
SELECT DISTINCT + - CASE + 34 WHEN + 1 * + 37 + - - 61 THEN - 50 ELSE 94 END * - + 94 + - + SUM( - 8 ) * + 82 + - 56 * - 6 * - + NULLIF ( + 32, + + 97 ) + + 30 AS col1
----
-1230

skipif mysql # not compatible
query I rowsort label-4036
SELECT DISTINCT + - CASE + 34 WHEN + 1 * + 37 + - - 61 THEN - 50 ELSE 94 END * - + 94 + - + SUM ( - 8 ) * + 82 + - 56 * - 6 * - + NULLIF ( + 32, + + 97 ) + + 30 AS col1
----
-1230

onlyif mysql # aggregate syntax: 
query I rowsort label-4037
SELECT + ( 82 ) + + + 68 * + COUNT( * ) * + 3
----
286

skipif mysql # not compatible
query I rowsort label-4037
SELECT + ( 82 ) + + + 68 * + COUNT ( * ) * + 3
----
286

onlyif mysql # aggregate syntax: 
query I rowsort label-4038
SELECT ALL 45 * + - 52 * + ( + 29 ) + ( - COUNT( * ) ) - + + 81 + - 9 * 70
----
-68572

skipif mysql # not compatible
query I rowsort label-4038
SELECT ALL 45 * + - 52 * + ( + 29 ) + ( - COUNT ( * ) ) - + + 81 + - 9 * 70
----
-68572

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4039
SELECT ALL - + 47 * + + CAST( NULL AS SIGNED ) + - 88 * 21 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4039
SELECT ALL - + 47 * + + CAST ( NULL AS INTEGER ) + - 88 * 21 col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4040
SELECT ALL - 73 DIV - 55 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-4040
SELECT ALL - 73 / - 55 AS col0
----
1

query I rowsort
SELECT ALL + - 48 * - + 7 + - 9 AS col1
----
327

onlyif mysql # aggregate syntax: 
query II rowsort label-4042
SELECT - + COUNT( * ) + - 59 AS col0, + 83
----
-60
83

skipif mysql # not compatible
query II rowsort label-4042
SELECT - + COUNT ( * ) + - 59 AS col0, + 83
----
-60
83

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4043
SELECT ALL - CAST( + 78 AS SIGNED ) AS col0
----
-78

skipif mysql # not compatible
query I rowsort label-4043
SELECT ALL - CAST ( + 78 AS INTEGER ) AS col0
----
-78

query I rowsort
SELECT DISTINCT - + 20 + + 39 + + + 38 - - + 94 + 94
----
245

query I rowsort
SELECT ALL + + 57 + 29 AS col1
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-4046
SELECT + 37 + + - 0 - - COUNT( * ) * + COUNT( * ) * + 5 AS col2
----
42

skipif mysql # not compatible
query I rowsort label-4046
SELECT + 37 + + - 0 - - COUNT ( * ) * + COUNT ( * ) * + 5 AS col2
----
42

query I rowsort
SELECT DISTINCT + 80 col1
----
80

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4048
SELECT - 50 + + + COUNT( * ) DIV + 10 + - 39 AS col0
----
-89

skipif mysql # not compatible
query I rowsort label-4048
SELECT - 50 + + + COUNT ( * ) / + 10 + - 39 AS col0
----
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-4049
SELECT ALL ( 56 ) + + - COUNT( ALL 67 ) + - 78 AS col2
----
-23

skipif mysql # not compatible
query I rowsort label-4049
SELECT ALL ( 56 ) + + - COUNT ( ALL 67 ) + - 78 AS col2
----
-23

query I rowsort
SELECT DISTINCT + 67 - - NULLIF ( + - 96, - + 32 ) * + - 47 AS col2
----
4579

query I rowsort
SELECT ALL + 49 - 42
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-4052
SELECT - SUM( ALL - + 15 ) AS col0
----
15

skipif mysql # not compatible
query I rowsort label-4052
SELECT - SUM ( ALL - + 15 ) AS col0
----
15

query I rowsort
SELECT - 75 + ( + - 15 ) * 84
----
-1335

query I rowsort
SELECT - 39 * - - ( + - 60 ) AS col2
----
2340

query II rowsort
SELECT DISTINCT - 31 * + 10 AS col0, ( + 30 ) AS col0
----
-310
30

onlyif mysql # aggregate syntax: 
query I rowsort label-4056
SELECT - COUNT( * ) + 36
----
35

skipif mysql # not compatible
query I rowsort label-4056
SELECT - COUNT ( * ) + 36
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-4057
SELECT - 3 + - 94 * - COUNT( * ) col1
----
91

skipif mysql # not compatible
query I rowsort label-4057
SELECT - 3 + - 94 * - COUNT ( * ) col1
----
91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-4058
SELECT DISTINCT + COALESCE ( 5, - - COUNT( * ) - + - CASE - + CAST( NULL AS DECIMAL ) WHEN - CASE - 93 WHEN + - COALESCE ( + CAST( - 5 AS SIGNED ), ( 87 ) * 54, + 72 ) * 32 - - - 43 THEN NULL WHEN - ( 49 ) THEN - + 3 ELSE NULL END / - + COUNT( * ) THEN - + SUM( 59 ) END + - 44 * 94 * 4 ) AS col1, + 5 * - ( - CAST( NULL AS SIGNED ) ) * - 12 + - COUNT( * ) AS col0
----
5
NULL

skipif mysql # not compatible
query II rowsort label-4058
SELECT DISTINCT + COALESCE ( 5, - - COUNT ( * ) - + - CASE - + CAST ( NULL AS REAL ) WHEN - CASE - 93 WHEN + - COALESCE ( + CAST ( - 5 AS INTEGER ), ( 87 ) * 54, + 72 ) * 32 - - - 43 THEN NULL WHEN - ( 49 ) THEN - + 3 ELSE NULL END / - + COUNT ( * ) THEN - + SUM ( 59 ) END + - 44 * 94 * 4 ) AS col1, + 5 * - ( - CAST ( NULL AS INTEGER ) ) * - 12 + - COUNT ( * ) AS col0
----
5
NULL

query I rowsort
SELECT DISTINCT - 32 * - 44 * - 42
----
-59136

query II rowsort
SELECT ALL + 77 * - 36, + 23 AS col2
----
-2772
23

onlyif mysql # aggregate syntax: 
query II rowsort label-4061
SELECT - ( 58 ) + + 13 AS col0, 47 * MIN( + 53 ) AS col1
----
-45
2491

skipif mysql # not compatible
query II rowsort label-4061
SELECT - ( 58 ) + + 13 AS col0, 47 * MIN ( + 53 ) AS col1
----
-45
2491

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4062
SELECT + 56 DIV + COUNT( * ) AS col0
----
56

skipif mysql # not compatible
query I rowsort label-4062
SELECT + 56 / + COUNT ( * ) AS col0
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-4063
SELECT ( + 76 ) * + + MIN( 36 ) * + 52 + 67
----
142339

skipif mysql # not compatible
query I rowsort label-4063
SELECT ( + 76 ) * + + MIN ( 36 ) * + 52 + 67
----
142339

query I rowsort
SELECT + 36 col1
----
36

query I rowsort
SELECT - ( + 23 ) * 63 col1
----
-1449

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4066
SELECT - COUNT( * ) DIV - COUNT( * ) + - ( - 42 ) AS col1
----
43

skipif mysql # not compatible
query I rowsort label-4066
SELECT - COUNT ( * ) / - COUNT ( * ) + - ( - 42 ) AS col1
----
43

query I rowsort
SELECT + 52 + - 19 col2
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-4068
SELECT SUM( DISTINCT + 2 ) + + ( - - COUNT( * ) ) AS col0
----
3

skipif mysql # not compatible
query I rowsort label-4068
SELECT SUM ( DISTINCT + 2 ) + + ( - - COUNT ( * ) ) AS col0
----
3

query I rowsort
SELECT ALL - + 31 col2
----
-31

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4070
SELECT + CAST( NULL AS SIGNED ) * + + 32 - - 43 + + - AVG ( DISTINCT - - 18 ) * - CASE WHEN NOT - 51 <= + 72 THEN + CASE - 91 WHEN + 67 THEN - 31 WHEN - COUNT( * ) + - + 58 THEN NULL WHEN + 87 + 9 * - - 97 THEN NULL END END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4070
SELECT + CAST ( NULL AS INTEGER ) * + + 32 - - 43 + + - AVG ( DISTINCT - - 18 ) * - CASE WHEN NOT - 51 <= + 72 THEN + CASE - 91 WHEN + 67 THEN - 31 WHEN - COUNT ( * ) + - + 58 THEN NULL WHEN + 87 + 9 * - - 97 THEN NULL END END AS col1
----
NULL

query I rowsort
SELECT ALL - - ( + 80 ) + - 51 AS col0
----
29

query I rowsort
SELECT DISTINCT - - 79
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-4073
SELECT ALL + 13 + 49 + + COUNT( * ) * - 69 - + - 24 * - COUNT( * ) AS col0
----
-31

skipif mysql # not compatible
query I rowsort label-4073
SELECT ALL + 13 + 49 + + COUNT ( * ) * - 69 - + - 24 * - COUNT ( * ) AS col0
----
-31

onlyif mysql # aggregate syntax: 
query II rowsort label-4074
SELECT ALL + 44 + + 80 AS col0, - COUNT( * ) - - MAX( ALL 2 ) + - MIN( 33 ) * - - 41 AS col2
----
124
-1352

skipif mysql # not compatible
query II rowsort label-4074
SELECT ALL + 44 + + 80 AS col0, - COUNT ( * ) - - MAX ( ALL 2 ) + - MIN ( 33 ) * - - 41 AS col2
----
124
-1352

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4075
SELECT + - COUNT( - CAST( NULL AS SIGNED ) ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4075
SELECT + - COUNT ( - CAST ( NULL AS INTEGER ) ) AS col1
----
0

query I rowsort
SELECT ALL 38 + + 78 + 96
----
212

onlyif mysql # aggregate syntax: 
query I rowsort label-4077
SELECT 0 * SUM( ALL ( CASE WHEN NOT + 12 >= + 84 THEN - + COALESCE ( - 62, + 94 ) + - 58 WHEN NOT + 95 + - 90 <> - ( 58 ) + - 24 THEN - 56 ELSE NULL END ) )
----
0

skipif mysql # not compatible
query I rowsort label-4077
SELECT 0 * SUM ( ALL ( CASE WHEN NOT + 12 >= + 84 THEN - + COALESCE ( - 62, + 94 ) + - 58 WHEN NOT + 95 + - 90 <> - ( 58 ) + - 24 THEN - 56 ELSE NULL END ) )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4078
SELECT ALL + CASE - 81 WHEN SUM( - + 73 ) THEN + - 7 * + 85 ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4078
SELECT ALL + CASE - 81 WHEN SUM ( - + 73 ) THEN + - 7 * + 85 ELSE NULL END AS col0
----
NULL

query I rowsort
SELECT ALL + 17 - 77 AS col2
----
-60

onlyif mysql # DIV for integer division: 
query I rowsort label-4080
SELECT DISTINCT 83 DIV + 17 + COALESCE ( - + 45, 93 )
----
-41

skipif mysql # not compatible
query I rowsort label-4080
SELECT DISTINCT 83 / + 17 + COALESCE ( - + 45, 93 )
----
-41

query I rowsort
SELECT ALL + 37 - 45 AS col1
----
-8

query I rowsort
SELECT - - 69 AS col2
----
69

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4083
SELECT SUM( ALL - + 17 ) DIV + + 90 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4083
SELECT SUM ( ALL - + 17 ) / + + 90 AS col2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4084
SELECT ALL - 8 * COALESCE ( - + CAST( 59 AS SIGNED ), + 82 )
----
472

skipif mysql # not compatible
query I rowsort label-4084
SELECT ALL - 8 * COALESCE ( - + CAST ( 59 AS INTEGER ), + 82 )
----
472

query II rowsort
SELECT ALL 99, 35 col2
----
99
35

onlyif mysql # aggregate syntax: 
query I rowsort label-4086
SELECT 71 + + + 23 - + SUM( - 43 ) AS col1
----
137

skipif mysql # not compatible
query I rowsort label-4086
SELECT 71 + + + 23 - + SUM ( - 43 ) AS col1
----
137

query I rowsort
SELECT ALL 28 * - 51 * - 12 * - 96
----
-1645056

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4088
SELECT NULLIF ( - - COUNT( * ), - - 34 * + ( 24 ) ) DIV - 31
----
0

skipif mysql # not compatible
query I rowsort label-4088
SELECT NULLIF ( - - COUNT ( * ), - - 34 * + ( 24 ) ) / - 31
----
0

query I rowsort
SELECT 54 + - 36
----
18

query I rowsort
SELECT DISTINCT 51 * - - 46
----
2346

query II rowsort
SELECT ALL 21, + 11 AS col0
----
21
11

query I rowsort
SELECT DISTINCT - 0 * - - 13
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-4093
SELECT ALL + COUNT( * ) + - - 12 + 64 AS col1, 19 AS col2
----
77
19

skipif mysql # not compatible
query II rowsort label-4093
SELECT ALL + COUNT ( * ) + - - 12 + 64 AS col1, 19 AS col2
----
77
19

onlyif mysql # aggregate syntax: 
query II rowsort label-4094
SELECT ALL 79, - MAX( DISTINCT 77 ) - + - 61 AS col1
----
79
-16

skipif mysql # not compatible
query II rowsort label-4094
SELECT ALL 79, - MAX ( DISTINCT 77 ) - + - 61 AS col1
----
79
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-4095
SELECT MIN( ALL ( - 17 ) ) * - MIN( - + 73 )
----
-1241

skipif mysql # not compatible
query I rowsort label-4095
SELECT MIN ( ALL ( - 17 ) ) * - MIN ( - + 73 )
----
-1241

query I rowsort
SELECT 5 * - + 31 AS col0
----
-155

onlyif mysql # aggregate syntax: 
query I rowsort label-4097
SELECT DISTINCT - COUNT( * ) * 1 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-4097
SELECT DISTINCT - COUNT ( * ) * 1 AS col0
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4098
SELECT ALL + 46 + CAST( NULL AS SIGNED ) + - + 55 + + 35 * + + CASE + 79 WHEN + 99 + + ( - 17 ) THEN + 70 * COUNT( * ) WHEN - 0 THEN + COUNT( * ) + + - MAX( ALL + 95 ) + - + 82 / - ( + 84 ) * 81 ELSE NULL END - - 93
----
NULL

skipif mysql # not compatible
query I rowsort label-4098
SELECT ALL + 46 + CAST ( NULL AS INTEGER ) + - + 55 + + 35 * + + CASE + 79 WHEN + 99 + + ( - 17 ) THEN + 70 * COUNT ( * ) WHEN - 0 THEN + COUNT ( * ) + + - MAX ( ALL + 95 ) + - + 82 / - ( + 84 ) * 81 ELSE NULL END - - 93
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-4099
SELECT + 86 DIV - 71 - 14 AS col2, + 32 AS col0
----
-15
32

skipif mysql # not compatible
query II rowsort label-4099
SELECT + 86 / - 71 - 14 AS col2, + 32 AS col0
----
-15
32

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4100
SELECT + CAST( 9 AS SIGNED ) AS col1
----
9

skipif mysql # not compatible
query I rowsort label-4100
SELECT + CAST ( 9 AS INTEGER ) AS col1
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-4101
SELECT ALL - 34 + - COUNT( * ) + 23 * 75
----
1690

skipif mysql # not compatible
query I rowsort label-4101
SELECT ALL - 34 + - COUNT ( * ) + 23 * 75
----
1690

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4102
SELECT COUNT( 68 ) * + - COALESCE ( - 12, 52 + + 86 DIV + 80 - + - 18 * 15 * 72 * - 68 )
----
12

skipif mysql # not compatible
query I rowsort label-4102
SELECT COUNT ( 68 ) * + - COALESCE ( - 12, 52 + + 86 / + 80 - + - 18 * 15 * 72 * - 68 )
----
12

onlyif mysql # aggregate syntax: 
query II rowsort label-4103
SELECT ALL - - 53 + ( + COUNT( * ) ) AS col0, COUNT( * )
----
54
1

skipif mysql # not compatible
query II rowsort label-4103
SELECT ALL - - 53 + ( + COUNT ( * ) ) AS col0, COUNT ( * )
----
54
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4104
SELECT ALL - + 45 + CAST( - + 50 AS SIGNED ) AS col2
----
-95

skipif mysql # not compatible
query I rowsort label-4104
SELECT ALL - + 45 + CAST ( - + 50 AS INTEGER ) AS col2
----
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-4105
SELECT DISTINCT - - 28 * + COUNT( * ) AS col0
----
28

skipif mysql # not compatible
query I rowsort label-4105
SELECT DISTINCT - - 28 * + COUNT ( * ) AS col0
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-4106
SELECT ALL - COUNT( * ) + - CASE + + MIN( - + 42 ) WHEN + 4 / - 69 THEN NULL WHEN - 58 THEN NULL WHEN + 97 THEN - 2 * 7 * + COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-4106
SELECT ALL - COUNT ( * ) + - CASE + + MIN ( - + 42 ) WHEN + 4 / - 69 THEN NULL WHEN - 58 THEN NULL WHEN + 97 THEN - 2 * 7 * + COUNT ( * ) END
----
NULL

query I rowsort
SELECT DISTINCT - + 47 col0
----
-47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4108
SELECT + - 58, + ( 24 ) * 96 + - - COUNT( * ) + 18 * + + COUNT( * ) * 9 + - + CAST( NULL AS SIGNED ) col1
----
-58
NULL

skipif mysql # not compatible
query II rowsort label-4108
SELECT + - 58, + ( 24 ) * 96 + - - COUNT ( * ) + 18 * + + COUNT ( * ) * 9 + - + CAST ( NULL AS INTEGER ) col1
----
-58
NULL

query I rowsort
SELECT ALL + - ( - 79 ) + + - 52
----
27

query I rowsort
SELECT ALL - - 69 col2
----
69

query I rowsort
SELECT 35 * - 69 + + 63 AS col0
----
-2352

query I rowsort
SELECT - + 14 * - 55 + - 16
----
754

query I rowsort
SELECT + 61 * + 30
----
1830

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4114
SELECT ALL + 90 DIV - + COUNT( * ) AS col2
----
-90

skipif mysql # not compatible
query I rowsort label-4114
SELECT ALL + 90 / - + COUNT ( * ) AS col2
----
-90

query I rowsort
SELECT ALL - ( + - 78 )
----
78

onlyif mysql # aggregate syntax: 
query II rowsort label-4116
SELECT ALL + 46 - - - 62 + COUNT( * ) + - + 81 * + + 24 * + COUNT( * ) * - 27 + 81, 44 + + + 63 AS col1
----
52554
107

skipif mysql # not compatible
query II rowsort label-4116
SELECT ALL + 46 - - - 62 + COUNT ( * ) + - + 81 * + + 24 * + COUNT ( * ) * - 27 + 81, 44 + + + 63 AS col1
----
52554
107

query I rowsort
SELECT ALL - 48 AS col2
----
-48

query I rowsort
SELECT 37 * + 37 + - 13 + - 9
----
1347

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4119
SELECT ALL - 49 * - + 14 DIV ( + + COUNT( * ) )
----
686

skipif mysql # not compatible
query I rowsort label-4119
SELECT ALL - 49 * - + 14 / ( + + COUNT ( * ) )
----
686

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4120
SELECT MIN( ALL - CAST( NULL AS SIGNED ) ) + - 70 * - - 20 * - CAST( 94 AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4120
SELECT MIN ( ALL - CAST ( NULL AS INTEGER ) ) + - 70 * - - 20 * - CAST ( 94 AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4121
SELECT 35 * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4121
SELECT 35 * - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4122
SELECT 51 + + 79 - - 74 * + 57 AS col0, COUNT( * ) col2
----
4348
1

skipif mysql # not compatible
query II rowsort label-4122
SELECT 51 + + 79 - - 74 * + 57 AS col0, COUNT ( * ) col2
----
4348
1

onlyif mysql # DIV for integer division: 
query I rowsort label-4123
SELECT DISTINCT 4 DIV + 69
----
0

skipif mysql # not compatible
query I rowsort label-4123
SELECT DISTINCT 4 / + 69
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-4124
SELECT ALL - COUNT( * ) + - 99 AS col1, + 72
----
-100
72

skipif mysql # not compatible
query II rowsort label-4124
SELECT ALL - COUNT ( * ) + - 99 AS col1, + 72
----
-100
72

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4125
SELECT - COALESCE ( + + 37, - 58 * + 53 * COUNT( * ) DIV + COUNT( * ) )
----
-37

skipif mysql # not compatible
query I rowsort label-4125
SELECT - COALESCE ( + + 37, - 58 * + 53 * COUNT ( * ) / + COUNT ( * ) )
----
-37

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4126
SELECT ALL 80 + + 62 + - + CAST( - + 98 AS SIGNED ) + 44 + - + CAST( NULL AS SIGNED ) * - 35 * - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4126
SELECT ALL 80 + + 62 + - + CAST ( - + 98 AS INTEGER ) + 44 + - + CAST ( NULL AS INTEGER ) * - 35 * - CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-4127
SELECT ALL 38 * + 74 AS col0, 1 DIV - + 16 col2
----
2812
0

skipif mysql # not compatible
query II rowsort label-4127
SELECT ALL 38 * + 74 AS col0, 1 / - + 16 col2
----
2812
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4128
SELECT DISTINCT SUM( - + 80 ) * + - 91 * - COUNT( * ) + + 11 * 74 + + ( - - 43 )
----
-6423

skipif mysql # not compatible
query I rowsort label-4128
SELECT DISTINCT SUM ( - + 80 ) * + - 91 * - COUNT ( * ) + + 11 * 74 + + ( - - 43 )
----
-6423

query I rowsort
SELECT + 38 + ( + 79 ) + + 91
----
208

query I rowsort
SELECT - 44 - - 74 col2
----
30

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4131
SELECT + CAST( NULL AS SIGNED ) + + - 21
----
NULL

skipif mysql # not compatible
query I rowsort label-4131
SELECT + CAST ( NULL AS INTEGER ) + + - 21
----
NULL

query I rowsort
SELECT ALL - 61 * + ( 94 ) * - 21 * + + 68 + - 91 + + 44 * 45 + + 49
----
8190090

query I rowsort
SELECT ALL + - 17 AS col1
----
-17

query I rowsort
SELECT ( 86 ) AS col0
----
86

query I rowsort
SELECT ALL + - 70
----
-70

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4136
SELECT ALL + COUNT( * ) * 77 + - 23 - - 97 - 20 * - + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4136
SELECT ALL + COUNT ( * ) * 77 + - 23 - - 97 - 20 * - + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4137
SELECT + + MIN( + 34 ) AS col2, COUNT( * ) AS col2
----
34
1

skipif mysql # not compatible
query II rowsort label-4137
SELECT + + MIN ( + 34 ) AS col2, COUNT ( * ) AS col2
----
34
1

query I rowsort
SELECT - 34 * - - 69 + + 66
----
-2280

query I rowsort
SELECT + 62 * + 60
----
3720

query I rowsort
SELECT DISTINCT + - 2 AS col1
----
-2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4141
SELECT - + CASE ( 64 ) WHEN 8 + + 17 THEN NULL WHEN - - 77 THEN - COALESCE ( + - ( + 64 ), 86 DIV + 66, + 1, - CAST( NULL AS SIGNED ) + + SUM( DISTINCT 47 ) ) - 32 + - - 29 * + COUNT( * ) * 70 END + - + 85 AS col1, + 36 + - 48 + + + 4 DIV - - 64 * - - 91 - + COALESCE ( 57, 16 + + 55 - 68, - 13 * + 15, - MIN( DISTINCT 46 ) ) * + 15
----
NULL
-867

skipif mysql # not compatible
query II rowsort label-4141
SELECT - + CASE ( 64 ) WHEN 8 + + 17 THEN NULL WHEN - - 77 THEN - COALESCE ( + - ( + 64 ), 86 / + 66, + 1, - CAST ( NULL AS INTEGER ) + + SUM ( DISTINCT 47 ) ) - 32 + - - 29 * + COUNT ( * ) * 70 END + - + 85 AS col1, + 36 + - 48 + + + 4 / - - 64 * - - 91 - + COALESCE ( 57, 16 + + 55 - 68, - 13 * + 15, - MIN ( DISTINCT 46 ) ) * + 15
----
NULL
-867

onlyif mysql # aggregate syntax: 
query I rowsort label-4142
SELECT ALL + - 50 * NULLIF ( - 43, + + COUNT( * ) * + 59 + - 35 + - 34 ) + + - NULLIF ( - 75, + 70 )
----
2225

skipif mysql # not compatible
query I rowsort label-4142
SELECT ALL + - 50 * NULLIF ( - 43, + + COUNT ( * ) * + 59 + - 35 + - 34 ) + + - NULLIF ( - 75, + 70 )
----
2225

onlyif mysql # DIV for integer division: 
query I rowsort label-4143
SELECT DISTINCT + - 0 * - 67 DIV + 7 * 3 col2
----
0

skipif mysql # not compatible
query I rowsort label-4143
SELECT DISTINCT + - 0 * - 67 / + 7 * 3 col2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4144
SELECT DISTINCT + + 84 * - + CAST( NULL AS SIGNED ) + - 46
----
NULL

skipif mysql # not compatible
query I rowsort label-4144
SELECT DISTINCT + + 84 * - + CAST ( NULL AS INTEGER ) + - 46
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4145
SELECT DISTINCT + - 75 * - + 41 * - - 54 + + AVG ( 64 ) * + - 14 * - - CASE WHEN NOT 66 < + 63 THEN NULL WHEN 67 * - 58 - - - CASE - 79 WHEN 95 / - 79 THEN NULL WHEN 74 * - COUNT( * ) THEN NULL ELSE 80 END > NULL THEN - 53 ELSE + NULLIF ( - + 82, 0 * - + 75 * - + 27 + + 87 + + COUNT( * ) ) END * NULLIF ( + 48, 59 ) / + 47 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4145
SELECT DISTINCT + - 75 * - + 41 * - - 54 + + AVG ( 64 ) * + - 14 * - - CASE WHEN NOT 66 < + 63 THEN NULL WHEN 67 * - 58 - - - CASE - 79 WHEN 95 / - 79 THEN NULL WHEN 74 * - COUNT ( * ) THEN NULL ELSE 80 END > NULL THEN - 53 ELSE + NULLIF ( - + 82, 0 * - + 75 * - + 27 + + 87 + + COUNT ( * ) ) END * NULLIF ( + 48, 59 ) / + 47 AS col0
----
NULL

query I rowsort
SELECT ( - ( - + 79 ) ) AS col2
----
79

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4147
SELECT ALL + 1 * + 1 DIV 80 + - MIN( ALL + 40 )
----
-40

skipif mysql # not compatible
query I rowsort label-4147
SELECT ALL + 1 * + 1 / 80 + - MIN ( ALL + 40 )
----
-40

query I rowsort
SELECT DISTINCT + + 8 * - 40
----
-320

query I rowsort
SELECT ALL - + 46 * 43 + 43 AS col1
----
-1935

onlyif mysql # aggregate syntax: 
query I rowsort label-4150
SELECT - - COALESCE ( 35, - 14 * - COUNT( * ) ) * + 54
----
1890

skipif mysql # not compatible
query I rowsort label-4150
SELECT - - COALESCE ( 35, - 14 * - COUNT ( * ) ) * + 54
----
1890

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4151
SELECT - + CAST( NULL AS SIGNED ) / 36
----
NULL

skipif mysql # not compatible
query I rowsort label-4151
SELECT - + CAST ( NULL AS INTEGER ) / 36
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4152
SELECT DISTINCT + CAST( NULL AS SIGNED ), 63 AS col0
----
NULL
63

skipif mysql # not compatible
query II rowsort label-4152
SELECT DISTINCT + CAST ( NULL AS INTEGER ), 63 AS col0
----
NULL
63

onlyif mysql # aggregate syntax: 
query I rowsort label-4153
SELECT + COUNT( * ) * - 58 * - 53
----
3074

skipif mysql # not compatible
query I rowsort label-4153
SELECT + COUNT ( * ) * - 58 * - 53
----
3074

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4154
SELECT - COUNT( * ) * + ( + 97 ) * 33 + - - 23 AS col0, - COALESCE ( + 64, - 78 ) DIV + + 60
----
-3178
-1

skipif mysql # not compatible
query II rowsort label-4154
SELECT - COUNT ( * ) * + ( + 97 ) * 33 + - - 23 AS col0, - COALESCE ( + 64, - 78 ) / + + 60
----
-3178
-1

query I rowsort
SELECT ALL - 91 + 15
----
-76

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4156
SELECT DISTINCT 33 * + 67 * + CAST( NULL AS SIGNED ) * 49
----
NULL

skipif mysql # not compatible
query I rowsort label-4156
SELECT DISTINCT 33 * + 67 * + CAST ( NULL AS INTEGER ) * 49
----
NULL

query I rowsort
SELECT ALL 92 + - 76 * - - 83 AS col0
----
-6216

onlyif mysql # aggregate syntax: 
query I rowsort label-4158
SELECT ALL COUNT( ALL + 52 ) + + + NULLIF ( - 67, + ( COUNT( * ) ) ) * - - COUNT( * )
----
-66

skipif mysql # not compatible
query I rowsort label-4158
SELECT ALL COUNT ( ALL + 52 ) + + + NULLIF ( - 67, + ( COUNT ( * ) ) ) * - - COUNT ( * )
----
-66

query I rowsort
SELECT 58 col1
----
58

query I rowsort
SELECT + ( - + 68 ) + + 59 col1
----
-9

query I rowsort
SELECT DISTINCT 98 * 34 col2
----
3332

query I rowsort
SELECT ALL 56 + + 45 + 63 + - 27 AS col2
----
137

query I rowsort
SELECT - ( + + 72 ) AS col0
----
-72

query I rowsort
SELECT + 44 + - 77 AS col2
----
-33

query I rowsort
SELECT DISTINCT + 1 * - 3 AS col1
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-4166
SELECT ALL 26 + + 38 - - - 66 DIV + - 76 AS col2
----
64

skipif mysql # not compatible
query I rowsort label-4166
SELECT ALL 26 + + 38 - - - 66 / + - 76 AS col2
----
64

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4167
SELECT ALL ( - ( - - 39 ) ) DIV + 62 * + 19 * + COUNT( * ) - - - 25 AS col1
----
-25

skipif mysql # not compatible
query I rowsort label-4167
SELECT ALL ( - ( - - 39 ) ) / + 62 * + 19 * + COUNT ( * ) - - - 25 AS col1
----
-25

query I rowsort
SELECT DISTINCT 55 + 79
----
134

onlyif mysql # aggregate syntax: 
query I rowsort label-4169
SELECT - + COUNT( 68 )
----
-1

skipif mysql # not compatible
query I rowsort label-4169
SELECT - + COUNT ( 68 )
----
-1

query I rowsort
SELECT ALL + ( + 40 ) AS col2
----
40

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4171
SELECT ALL - ( + COUNT( * ) ) DIV 4 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4171
SELECT ALL - ( + COUNT ( * ) ) / 4 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4172
SELECT ALL + - ( + SUM( - - 92 ) )
----
-92

skipif mysql # not compatible
query I rowsort label-4172
SELECT ALL + - ( + SUM ( - - 92 ) )
----
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-4173
SELECT + 65 * - 60 * - COUNT( * )
----
3900

skipif mysql # not compatible
query I rowsort label-4173
SELECT + 65 * - 60 * - COUNT ( * )
----
3900

onlyif mysql # aggregate syntax: 
query I rowsort label-4174
SELECT - 34 * - - 16 * - 9 * + COUNT( * ) AS col0
----
4896

skipif mysql # not compatible
query I rowsort label-4174
SELECT - 34 * - - 16 * - 9 * + COUNT ( * ) AS col0
----
4896

onlyif mysql # aggregate syntax: 
query I rowsort label-4175
SELECT ALL 4 * - + COUNT( * )
----
-4

skipif mysql # not compatible
query I rowsort label-4175
SELECT ALL 4 * - + COUNT ( * )
----
-4

query II rowsort
SELECT 45, 38 AS col1
----
45
38

query II rowsort
SELECT DISTINCT + 16, - 21 AS col1
----
16
-21

query I rowsort
SELECT DISTINCT 75 * + - 55 AS col0
----
-4125

query I rowsort
SELECT + - 60 * + 13 AS col0
----
-780

query I rowsort
SELECT DISTINCT + 49 col2
----
49

query I rowsort
SELECT - ( 26 ) - + 74 AS col2
----
-100

onlyif mysql # aggregate syntax: 
query I rowsort label-4182
SELECT + - NULLIF ( - 10, + COUNT( * ) ) * + - 54 + - 71 * - 78 col1
----
4998

skipif mysql # not compatible
query I rowsort label-4182
SELECT + - NULLIF ( - 10, + COUNT ( * ) ) * + - 54 + - 71 * - 78 col1
----
4998

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4183
SELECT - CAST( NULL AS SIGNED ) * - 28 + + COUNT( * ) - 94
----
NULL

skipif mysql # not compatible
query I rowsort label-4183
SELECT - CAST ( NULL AS INTEGER ) * - 28 + + COUNT ( * ) - 94
----
NULL

query II rowsort
SELECT + 37 col0, - 66 + - COALESCE ( - 83, 80, + - 97 ) * 45 AS col2
----
37
3669

query I rowsort
SELECT ALL 25 * ( + + ( - 93 ) ) + 55
----
-2270

onlyif mysql # aggregate syntax: 
query I rowsort label-4186
SELECT 22 * NULLIF ( COUNT( DISTINCT - 75 ), - - 18 ) + - + 1
----
21

skipif mysql # not compatible
query I rowsort label-4186
SELECT 22 * NULLIF ( COUNT ( DISTINCT - 75 ), - - 18 ) + - + 1
----
21

onlyif mysql # aggregate syntax: 
query II rowsort label-4187
SELECT ALL + COUNT( * ), - 79 + - - 11 + + 13 AS col0
----
1
-55

skipif mysql # not compatible
query II rowsort label-4187
SELECT ALL + COUNT ( * ), - 79 + - - 11 + + 13 AS col0
----
1
-55

query I rowsort
SELECT DISTINCT - ( 15 ) * + + 54 + - 35 * 77 AS col1
----
-3505

onlyif mysql # aggregate syntax: 
query I rowsort label-4189
SELECT DISTINCT 6 * - SUM( ALL - - ( - 76 ) ) + - + 36
----
420

skipif mysql # not compatible
query I rowsort label-4189
SELECT DISTINCT 6 * - SUM ( ALL - - ( - 76 ) ) + - + 36
----
420

query I rowsort
SELECT DISTINCT - 4 * + 3 AS col1
----
-12

query I rowsort
SELECT ALL + 72 * + - 34 + 5
----
-2443

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4192
SELECT COALESCE ( - 39, + - CAST( NULL AS SIGNED ), + 91 ) * - + 26 + - 16 AS col1, + 76 col1
----
998
76

skipif mysql # not compatible
query II rowsort label-4192
SELECT COALESCE ( - 39, + - CAST ( NULL AS INTEGER ), + 91 ) * - + 26 + - 16 AS col1, + 76 col1
----
998
76

query I rowsort
SELECT ALL - 87 * 28 AS col2
----
-2436

onlyif mysql # aggregate syntax: 
query I rowsort label-4194
SELECT ALL - 60 + + COUNT( * ) AS col2
----
-59

skipif mysql # not compatible
query I rowsort label-4194
SELECT ALL - 60 + + COUNT ( * ) AS col2
----
-59

query I rowsort
SELECT 79 * 46
----
3634

query I rowsort
SELECT 85 + + + 80 AS col1
----
165

onlyif mysql # aggregate syntax: 
query II rowsort label-4197
SELECT - 71 col1, - COUNT( * )
----
-71
-1

skipif mysql # not compatible
query II rowsort label-4197
SELECT - 71 col1, - COUNT ( * )
----
-71
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4198
SELECT ALL + 15 + + SUM( 20 )
----
35

skipif mysql # not compatible
query I rowsort label-4198
SELECT ALL + 15 + + SUM ( 20 )
----
35

query I rowsort
SELECT DISTINCT ( + 69 ) * + + 73
----
5037

query I rowsort
SELECT ALL 3 - - - 29 AS col1
----
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-4201
SELECT COUNT( * ) - - 64 + - + 45 col1
----
20

skipif mysql # not compatible
query I rowsort label-4201
SELECT COUNT ( * ) - - 64 + - + 45 col1
----
20

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4202
SELECT DISTINCT + CASE - 88 WHEN 20 THEN - 5 WHEN - 45 / - + 90 * CAST( + 10 AS SIGNED ) + + COUNT( * ) - - - 86 * + 10 - - 13 THEN NULL ELSE NULL END - + 26 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4202
SELECT DISTINCT + CASE - 88 WHEN 20 THEN - 5 WHEN - 45 / - + 90 * CAST ( + 10 AS INTEGER ) + + COUNT ( * ) - - - 86 * + 10 - - 13 THEN NULL ELSE NULL END - + 26 AS col0
----
NULL

query I rowsort
SELECT DISTINCT + + 9 * - + 47 + - NULLIF ( 50, - - 31 )
----
-473

query I rowsort
SELECT 43 * + 35
----
1505

query I rowsort
SELECT ALL 75 * + ( + + 66 ) col1
----
4950

onlyif mysql # aggregate syntax: 
query II rowsort label-4206
SELECT 41 AS col0, + COALESCE ( - 84, - - 62 * 64 * + 30 - MIN( 8 ) + + - 26 * 68, + 23 * 50 * 92 * CASE + - 34 WHEN + 30 / 78 THEN + CASE - - 60 WHEN + 42 * - 36 - - - ( + 49 ) THEN - 93 + + - 66 * + + 5 * + 66 - + + COALESCE ( - 93, + COUNT( * ) ) + 54 WHEN 22 THEN NULL END END ) - - 62
----
41
-22

skipif mysql # not compatible
query II rowsort label-4206
SELECT 41 AS col0, + COALESCE ( - 84, - - 62 * 64 * + 30 - MIN ( 8 ) + + - 26 * 68, + 23 * 50 * 92 * CASE + - 34 WHEN + 30 / 78 THEN + CASE - - 60 WHEN + 42 * - 36 - - - ( + 49 ) THEN - 93 + + - 66 * + + 5 * + 66 - + + COALESCE ( - 93, + COUNT ( * ) ) + 54 WHEN 22 THEN NULL END END ) - - 62
----
41
-22

query I rowsort
SELECT + 58 + ( + - 97 ) AS col1
----
-39

query I rowsort
SELECT 64 - + + 35
----
29

onlyif mysql # DIV for integer division: 
query II rowsort label-4209
SELECT ALL - - 67 * - + 27 AS col0, - 76 DIV + 99 + + ( + - 88 )
----
-1809
-88

skipif mysql # not compatible
query II rowsort label-4209
SELECT ALL - - 67 * - + 27 AS col0, - 76 / + 99 + + ( + - 88 )
----
-1809
-88

query I rowsort
SELECT ALL - + 15 col1
----
-15

query I rowsort
SELECT ALL - - 24 AS col0
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-4212
SELECT 43 + MIN( - CASE + 41 WHEN + + 95 THEN - 42 + + 45 + + - 48 * + + 65 * + 45 + + 86 + 21 WHEN - 0 + 31 + + + 55 * - 14 THEN NULL WHEN 58 / + 48 THEN NULL END ) - COUNT( 33 ) * + 91 * 35 - 45 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4212
SELECT 43 + MIN ( - CASE + 41 WHEN + + 95 THEN - 42 + + 45 + + - 48 * + + 65 * + 45 + + 86 + 21 WHEN - 0 + 31 + + + 55 * - 14 THEN NULL WHEN 58 / + 48 THEN NULL END ) - COUNT ( 33 ) * + 91 * 35 - 45 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4213
SELECT ALL COUNT( * ) * + + ( - - 74 ) AS col1
----
74

skipif mysql # not compatible
query I rowsort label-4213
SELECT ALL COUNT ( * ) * + + ( - - 74 ) AS col1
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-4214
SELECT + 87 * + COALESCE ( + NULLIF ( - 78, - COUNT( * ) ), - CASE + 76 WHEN + 4 / + + 60 + + 86 THEN 7 ELSE 0 END ) + + 48 col2
----
-6738

skipif mysql # not compatible
query I rowsort label-4214
SELECT + 87 * + COALESCE ( + NULLIF ( - 78, - COUNT ( * ) ), - CASE + 76 WHEN + 4 / + + 60 + + 86 THEN 7 ELSE 0 END ) + + 48 col2
----
-6738

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4215
SELECT - MAX( 63 ) DIV CAST( 70 AS SIGNED )
----
0

skipif mysql # not compatible
query I rowsort label-4215
SELECT - MAX ( 63 ) / CAST ( 70 AS INTEGER )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4216
SELECT + 0 / - COUNT( * ) + 54 + - CASE + 12 WHEN + + AVG ( ALL - + 56 ) THEN 93 END
----
NULL

skipif mysql # not compatible
query I rowsort label-4216
SELECT + 0 / - COUNT ( * ) + 54 + - CASE + 12 WHEN + + AVG ( ALL - + 56 ) THEN 93 END
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-4217
SELECT 59, + CAST( NULL AS DECIMAL ) AS col1
----
59
NULL

skipif mysql # not compatible
query II rowsort label-4217
SELECT 59, + CAST ( NULL AS REAL ) AS col1
----
59
NULL

query I rowsort
SELECT - 48 * 1
----
-48

query I rowsort
SELECT + ( + ( + 69 ) ) AS col1
----
69

query I rowsort
SELECT - 97 + 78
----
-19

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4221
SELECT DISTINCT CAST( NULL AS SIGNED ) + - 7 + + + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-4221
SELECT DISTINCT CAST ( NULL AS INTEGER ) + - 7 + + + COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4222
SELECT ALL COUNT( ALL + - 37 ) + + + ( + - ( - MIN( DISTINCT 86 ) ) ) AS col2
----
87

skipif mysql # not compatible
query I rowsort label-4222
SELECT ALL COUNT ( ALL + - 37 ) + + + ( + - ( - MIN ( DISTINCT 86 ) ) ) AS col2
----
87

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4223
SELECT CAST( 10 AS SIGNED ) * - + 85
----
-850

skipif mysql # not compatible
query I rowsort label-4223
SELECT CAST ( 10 AS INTEGER ) * - + 85
----
-850

query I rowsort
SELECT ALL - 27 + + 7 col2
----
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-4225
SELECT 96 + MAX( + 18 ) + - 7 * 29
----
-89

skipif mysql # not compatible
query I rowsort label-4225
SELECT 96 + MAX ( + 18 ) + - 7 * 29
----
-89

query I rowsort
SELECT DISTINCT 81 + - 77
----
4

query I rowsort
SELECT ALL - 41 col1
----
-41

query I rowsort
SELECT ALL 16 + - 80 AS col0
----
-64

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4229
SELECT CASE - 25 WHEN COUNT( * ) * - - CAST( + - COUNT( * ) AS SIGNED ) THEN + 75 * CAST( 59 AS SIGNED ) + - ( + - MIN( DISTINCT 17 ) ) ELSE NULL END + ( CAST( - 49 AS SIGNED ) ) - - 30 AS col0, + 29 AS col2
----
NULL
29

skipif mysql # not compatible
query II rowsort label-4229
SELECT CASE - 25 WHEN COUNT ( * ) * - - CAST ( + - COUNT ( * ) AS INTEGER ) THEN + 75 * CAST ( 59 AS INTEGER ) + - ( + - MIN ( DISTINCT 17 ) ) ELSE NULL END + ( CAST ( - 49 AS INTEGER ) ) - - 30 AS col0, + 29 AS col2
----
NULL
29

query I rowsort
SELECT 89 - - - NULLIF ( 71, - 63 )
----
18

query II rowsort
SELECT 24 * + 26 AS col2, - 65 AS col0
----
624
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-4232
SELECT ALL 80 - + MIN( - 62 ) AS col1
----
142

skipif mysql # not compatible
query I rowsort label-4232
SELECT ALL 80 - + MIN ( - 62 ) AS col1
----
142

onlyif mysql # aggregate syntax: 
query I rowsort label-4233
SELECT DISTINCT - COUNT( * ) * - 0
----
0

skipif mysql # not compatible
query I rowsort label-4233
SELECT DISTINCT - COUNT ( * ) * - 0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4234
SELECT ALL - NULLIF ( - 27, + COUNT( * ) + - 61 * CAST( NULL AS SIGNED ) ) - 7 + - 3 - + 5 DIV 19
----
17

skipif mysql # not compatible
query I rowsort label-4234
SELECT ALL - NULLIF ( - 27, + COUNT ( * ) + - 61 * CAST ( NULL AS INTEGER ) ) - 7 + - 3 - + 5 / 19
----
17

query I rowsort
SELECT 14 * + - 95
----
-1330

onlyif mysql # aggregate syntax: 
query I rowsort label-4236
SELECT ALL 73 * - MIN( - 17 ) AS col2
----
1241

skipif mysql # not compatible
query I rowsort label-4236
SELECT ALL 73 * - MIN ( - 17 ) AS col2
----
1241

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4237
SELECT 20 + + - 97 DIV - 12 + + - COUNT( * )
----
27

skipif mysql # not compatible
query I rowsort label-4237
SELECT 20 + + - 97 / - 12 + + - COUNT ( * )
----
27

query I rowsort
SELECT 24 - 98
----
-74

query I rowsort
SELECT 30 + - 95 AS col0
----
-65

query I rowsort
SELECT + 20 * - 80 AS col2
----
-1600

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4241
SELECT - ( + CAST( NULL AS DECIMAL ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-4241
SELECT - ( + CAST ( NULL AS REAL ) )
----
NULL

query I rowsort
SELECT - 12 + 83 AS col2
----
71

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4243
SELECT ALL - CAST( + CASE 25 WHEN NULLIF ( 81, + AVG ( ALL - - 17 ) * - 58 + 20 + 19 + - 96 + + + CASE - COUNT( * ) WHEN - SUM( 95 ) * - 72 + 54 THEN + 86 * 28 + 23 ELSE - 87 * COALESCE ( - 73, + COUNT( * ), - 36 * + 15 ) + - - 49 + - ( + + 84 ) * 0 * 13 + - - 61 END * 92 + COALESCE ( - 34, - 37 ) ) * + 0 - 73 THEN CAST( NULL AS SIGNED ) + + 93 * + 92 END AS SIGNED ) / 7 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4243
SELECT ALL - CAST ( + CASE 25 WHEN NULLIF ( 81, + AVG ( ALL - - 17 ) * - 58 + 20 + 19 + - 96 + + + CASE - COUNT ( * ) WHEN - SUM ( 95 ) * - 72 + 54 THEN + 86 * 28 + 23 ELSE - 87 * COALESCE ( - 73, + COUNT ( * ), - 36 * + 15 ) + - - 49 + - ( + + 84 ) * 0 * 13 + - - 61 END * 92 + COALESCE ( - 34, - 37 ) ) * + 0 - 73 THEN CAST ( NULL AS INTEGER ) + + 93 * + 92 END AS INTEGER ) / 7 AS col2
----
NULL

query I rowsort
SELECT - + 12 AS col0
----
-12

query I rowsort
SELECT DISTINCT 27 * 47 * - 71 AS col2
----
-90099

query I rowsort
SELECT ALL - - 64 * ( - 3 )
----
-192

onlyif mysql # aggregate syntax: 
query I rowsort label-4247
SELECT - NULLIF ( - 92, + COALESCE ( + NULLIF ( - COUNT( * ), 96 ), + - 14 / - 17, - - 95, 20 ) * + - COUNT( * ) ) * + + COUNT( * ) + + COUNT( * )
----
93

skipif mysql # not compatible
query I rowsort label-4247
SELECT - NULLIF ( - 92, + COALESCE ( + NULLIF ( - COUNT ( * ), 96 ), + - 14 / - 17, - - 95, 20 ) * + - COUNT ( * ) ) * + + COUNT ( * ) + + COUNT ( * )
----
93

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4248
SELECT + 5 * - 71 + 9 DIV + - 50 * COUNT( 53 ) * + + 74 + - + COUNT( * ) AS col0
----
-356

skipif mysql # not compatible
query I rowsort label-4248
SELECT + 5 * - 71 + 9 / + - 50 * COUNT ( 53 ) * + + 74 + - + COUNT ( * ) AS col0
----
-356

onlyif mysql # aggregate syntax: 
query I rowsort label-4249
SELECT ALL - COUNT( * ) * 21 AS col2
----
-21

skipif mysql # not compatible
query I rowsort label-4249
SELECT ALL - COUNT ( * ) * 21 AS col2
----
-21

query I rowsort
SELECT CASE - 94 WHEN - 88 * + 52 THEN + 28 WHEN + - 64 * - + 68 + - 68 THEN ( - 12 ) / - + ( 48 ) * - ( - 17 ) - + 91 + - + 4 ELSE NULL END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4251
SELECT - ( - + 1 ) col2, SUM( ALL 49 ) * - 37
----
1
-1813

skipif mysql # not compatible
query II rowsort label-4251
SELECT - ( - + 1 ) col2, SUM ( ALL 49 ) * - 37
----
1
-1813

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4252
SELECT ALL + 25 * - CASE + CAST( + 5 AS SIGNED ) WHEN 10 THEN NULL ELSE 55 END * + 61 + 17 * + 97 + 13 AS col0, 37
----
-82213
37

skipif mysql # not compatible
query II rowsort label-4252
SELECT ALL + 25 * - CASE + CAST ( + 5 AS INTEGER ) WHEN 10 THEN NULL ELSE 55 END * + 61 + 17 * + 97 + 13 AS col0, 37
----
-82213
37

query I rowsort
SELECT + 72 - 22 * - 46
----
1084

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4254
SELECT ALL - CAST( NULL AS SIGNED ) * 47 + 0
----
NULL

skipif mysql # not compatible
query I rowsort label-4254
SELECT ALL - CAST ( NULL AS INTEGER ) * 47 + 0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4255
SELECT 76 DIV - - MAX( + 83 ) + - 52 AS col2
----
-52

skipif mysql # not compatible
query I rowsort label-4255
SELECT 76 / - - MAX ( + 83 ) + - 52 AS col2
----
-52

onlyif mysql # aggregate syntax: 
query II rowsort label-4256
SELECT ALL - COUNT( * ) AS col2, 12 * + + 34
----
-1
408

skipif mysql # not compatible
query II rowsort label-4256
SELECT ALL - COUNT ( * ) AS col2, 12 * + + 34
----
-1
408

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4257
SELECT + COUNT( * ) DIV + 78 - + 57
----
-57

skipif mysql # not compatible
query I rowsort label-4257
SELECT + COUNT ( * ) / + 78 - + 57
----
-57

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4258
SELECT DISTINCT 22 DIV - COALESCE ( - 89, + 10 + + + COUNT( * ) * CASE - COUNT( * ) WHEN - - 41 + + + 83 THEN + 34 - - 60 ELSE NULL END DIV - - 69 + + 32 + COALESCE ( - COUNT( 23 ), + 60 * + 3 ) * CAST( NULL AS SIGNED ), + 44 ) * - ( ( - + 80 ) ) * + NULLIF ( + + COUNT( + - 31 ), + 35 )
----
0

skipif mysql # not compatible
query I rowsort label-4258
SELECT DISTINCT 22 / - COALESCE ( - 89, + 10 + + + COUNT ( * ) * CASE - COUNT ( * ) WHEN - - 41 + + + 83 THEN + 34 - - 60 ELSE NULL END / - - 69 + + 32 + COALESCE ( - COUNT ( 23 ), + 60 * + 3 ) * CAST ( NULL AS INTEGER ), + 44 ) * - ( ( - + 80 ) ) * + NULLIF ( + + COUNT ( + - 31 ), + 35 )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4259
SELECT 32 * + 45 * + + 50 + CAST( ( - - 69 ) AS SIGNED ), + 97 col0
----
72069
97

skipif mysql # not compatible
query II rowsort label-4259
SELECT 32 * + 45 * + + 50 + CAST ( ( - - 69 ) AS INTEGER ), + 97 col0
----
72069
97

query I rowsort
SELECT ALL 66 * - + 67 + + 70 + + 78 col0
----
-4274

onlyif mysql # aggregate syntax: 
query I rowsort label-4261
SELECT MIN( 89 ) AS col1
----
89

skipif mysql # not compatible
query I rowsort label-4261
SELECT MIN ( 89 ) AS col1
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-4262
SELECT ALL 73 * - COUNT( * ) * - - 85 + - COUNT( DISTINCT 41 ) * + 7
----
-6212

skipif mysql # not compatible
query I rowsort label-4262
SELECT ALL 73 * - COUNT ( * ) * - - 85 + - COUNT ( DISTINCT 41 ) * + 7
----
-6212

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4263
SELECT 60 * - + 29 * 36 + - CAST( NULL AS DECIMAL ) + + + 6 * - 65 * + 99
----
NULL

skipif mysql # not compatible
query I rowsort label-4263
SELECT 60 * - + 29 * 36 + - CAST ( NULL AS REAL ) + + + 6 * - 65 * + 99
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4264
SELECT ALL 33 * - - COUNT( * ) AS col1
----
33

skipif mysql # not compatible
query I rowsort label-4264
SELECT ALL 33 * - - COUNT ( * ) AS col1
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-4265
SELECT + ( - 62 ) * - 5 * - 58 - + COUNT( * )
----
-17981

skipif mysql # not compatible
query I rowsort label-4265
SELECT + ( - 62 ) * - 5 * - 58 - + COUNT ( * )
----
-17981

onlyif mysql # aggregate syntax: 
query I rowsort label-4266
SELECT + 74 + COUNT( * ) AS col2
----
75

skipif mysql # not compatible
query I rowsort label-4266
SELECT + 74 + COUNT ( * ) AS col2
----
75

query I rowsort
SELECT + CASE 82 WHEN + - 5 / + - 9 THEN + + 19 * 10 - + - 83 WHEN + 96 THEN - 49 WHEN + 87 THEN NULL END AS col2
----
NULL

query I rowsort
SELECT DISTINCT 32 * - 42
----
-1344

onlyif mysql # DIV for integer division: 
query I rowsort label-4269
SELECT 97 * 77 + - + 73 DIV ( + COALESCE ( + 55, + 46 ) ) AS col1
----
7468

skipif mysql # not compatible
query I rowsort label-4269
SELECT 97 * 77 + - + 73 / ( + COALESCE ( + 55, + 46 ) ) AS col1
----
7468

query I rowsort
SELECT + 56 * 8
----
448

query I rowsort
SELECT - NULLIF ( - + 47, - 36 ) AS col1
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-4272
SELECT + 20 + + 2 + COUNT( DISTINCT + ( ( + 43 ) ) )
----
23

skipif mysql # not compatible
query I rowsort label-4272
SELECT + 20 + + 2 + COUNT ( DISTINCT + ( ( + 43 ) ) )
----
23

query II rowsort
SELECT 3 AS col0, - 12 * 13 + + 75
----
3
-81

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4274
SELECT ALL 35 AS col2, - CAST( - + 5 AS SIGNED )
----
35
5

skipif mysql # not compatible
query II rowsort label-4274
SELECT ALL 35 AS col2, - CAST ( - + 5 AS INTEGER )
----
35
5

query I rowsort
SELECT + 8 * + 19
----
152

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4276
SELECT ALL 57 DIV + - 76 - ( - 62 ) + + 33 + COUNT( * ) * 20 DIV - + 3
----
89

skipif mysql # not compatible
query I rowsort label-4276
SELECT ALL 57 / + - 76 - ( - 62 ) + + 33 + COUNT ( * ) * 20 / - + 3
----
89

query II rowsort
SELECT ALL + 60 AS col2, 98 AS col2
----
60
98

onlyif mysql # DIV for integer division: 
query I rowsort label-4278
SELECT + 40 + 39 DIV 24 - 91 AS col0
----
-50

skipif mysql # not compatible
query I rowsort label-4278
SELECT + 40 + 39 / 24 - 91 AS col0
----
-50

query I rowsort
SELECT ALL 98 col2
----
98

query I rowsort
SELECT DISTINCT ( - 43 ) AS col1
----
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-4281
SELECT ALL - COUNT( * ) * - + COUNT( * ) + - + 69 + - MAX( 45 ) AS col0
----
-113

skipif mysql # not compatible
query I rowsort label-4281
SELECT ALL - COUNT ( * ) * - + COUNT ( * ) + - + 69 + - MAX ( 45 ) AS col0
----
-113

onlyif mysql # aggregate syntax: 
query I rowsort label-4282
SELECT - + SUM( + + 64 ) AS col2
----
-64

skipif mysql # not compatible
query I rowsort label-4282
SELECT - + SUM ( + + 64 ) AS col2
----
-64

query I rowsort
SELECT ALL + NULLIF ( 1, - 51 )
----
1

query I rowsort
SELECT DISTINCT 41 + 44 * + 12 * + + 15 * - 76 * 13 * 54
----
-422547799

query II rowsort
SELECT - 27, 67 AS col2
----
-27
67

onlyif mysql # DIV for integer division: 
query I rowsort label-4286
SELECT + - 62 DIV - 72 + + 19 * - - 30 AS col2
----
570

skipif mysql # not compatible
query I rowsort label-4286
SELECT + - 62 / - 72 + + 19 * - - 30 AS col2
----
570

onlyif mysql # DIV for integer division: 
query I rowsort label-4287
SELECT - + ( - 57 ) + + + NULLIF ( 42, + 90 * + - ( + 58 ) ) DIV 40 col1
----
58

skipif mysql # not compatible
query I rowsort label-4287
SELECT - + ( - 57 ) + + + NULLIF ( 42, + 90 * + - ( + 58 ) ) / 40 col1
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-4288
SELECT ALL + - SUM( + 4 ) + - 75 * COUNT( * ) AS col0
----
-79

skipif mysql # not compatible
query I rowsort label-4288
SELECT ALL + - SUM ( + 4 ) + - 75 * COUNT ( * ) AS col0
----
-79

query I rowsort
SELECT + NULLIF ( - 16, - 92 + + + 33 ) + - 23 AS col1
----
-39

query I rowsort
SELECT - - 82 * + 35 AS col0
----
2870

query I rowsort
SELECT + 43 + 93 AS col0
----
136

query I rowsort
SELECT ALL + - 24 + 99 AS col0
----
75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4293
SELECT - MAX( - - CAST( NULL AS SIGNED ) ) + - - ( + ( COALESCE ( MAX( DISTINCT + 38 ), + + 92 * 85 ) ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4293
SELECT - MAX ( - - CAST ( NULL AS INTEGER ) ) + - - ( + ( COALESCE ( MAX ( DISTINCT + 38 ), + + 92 * 85 ) ) ) AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4294
SELECT ALL - + 11 + - CAST( COALESCE ( 49, + + 14 ) AS SIGNED )
----
-60

skipif mysql # not compatible
query I rowsort label-4294
SELECT ALL - + 11 + - CAST ( COALESCE ( 49, + + 14 ) AS INTEGER )
----
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-4295
SELECT + MAX( ALL - 23 )
----
-23

skipif mysql # not compatible
query I rowsort label-4295
SELECT + MAX ( ALL - 23 )
----
-23

query I rowsort
SELECT DISTINCT + ( + + ( - 53 ) )
----
-53

query I rowsort
SELECT + 34 col1
----
34

query I rowsort
SELECT ( - - 32 )
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-4299
SELECT + 81 * 9 + - + ( - COUNT( * ) ) AS col1
----
730

skipif mysql # not compatible
query I rowsort label-4299
SELECT + 81 * 9 + - + ( - COUNT ( * ) ) AS col1
----
730

query I rowsort
SELECT ( + - 85 ) AS col1
----
-85

query I rowsort
SELECT + 10 + - 86
----
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-4302
SELECT - COUNT( * ) * - ( 77 ) AS col1
----
77

skipif mysql # not compatible
query I rowsort label-4302
SELECT - COUNT ( * ) * - ( 77 ) AS col1
----
77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4303
SELECT + 28 * - - CAST( NULL AS SIGNED ) * + - 33 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4303
SELECT + 28 * - - CAST ( NULL AS INTEGER ) * + - 33 col2
----
NULL

query I rowsort
SELECT + 2 col0
----
2

query I rowsort
SELECT ALL 31 * + - 2 - 73 col0
----
-135

query I rowsort
SELECT ( + 30 )
----
30

query I rowsort
SELECT - 92 * + NULLIF ( 40, + 86 )
----
-3680

onlyif mysql # aggregate syntax: 
query I rowsort label-4308
SELECT CASE - COUNT( * ) WHEN - - 23 + 57 THEN - - 23 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4308
SELECT CASE - COUNT ( * ) WHEN - - 23 + 57 THEN - - 23 END AS col2
----
NULL

query I rowsort
SELECT ALL + 85 col2
----
85

query I rowsort
SELECT DISTINCT + 56 AS col0
----
56

onlyif mysql # aggregate syntax: 
query II rowsort label-4311
SELECT - ( + ( + - ( NULLIF ( + 81, + MAX( + - 35 ) / 80 ) ) ) ) * - - 13 * + 27 * - COALESCE ( - 12, 22 ) + + 17 AS col1, + SUM( + COALESCE ( 34, 79 ) ) + + 68 + + 79 - + + 51 * COUNT( * ) * 31
----
341189
-1400

skipif mysql # not compatible
query II rowsort label-4311
SELECT - ( + ( + - ( NULLIF ( + 81, + MAX ( + - 35 ) / 80 ) ) ) ) * - - 13 * + 27 * - COALESCE ( - 12, 22 ) + + 17 AS col1, + SUM ( + COALESCE ( 34, 79 ) ) + + 68 + + 79 - + + 51 * COUNT ( * ) * 31
----
341189
-1400

query I rowsort
SELECT + NULLIF ( + 59, + 83 )
----
59

query I rowsort
SELECT - 8 - - 5
----
-3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4314
SELECT + COUNT( * ) DIV ( - + ( - MIN( + - 48 ) ) ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4314
SELECT + COUNT ( * ) / ( - + ( - MIN ( + - 48 ) ) ) AS col1
----
0

query I rowsort
SELECT ALL ( 40 ) * + 27
----
1080

query I rowsort
SELECT + 26 * - 0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4317
SELECT DISTINCT + 20 DIV + - 66 * + + 43 * - 27, 31 * - + AVG ( DISTINCT + 87 ) * COUNT( + 50 ) * + CAST( NULL AS SIGNED ) AS col2
----
0
NULL

skipif mysql # not compatible
query II rowsort label-4317
SELECT DISTINCT + 20 / + - 66 * + + 43 * - 27, 31 * - + AVG ( DISTINCT + 87 ) * COUNT ( + 50 ) * + CAST ( NULL AS INTEGER ) AS col2
----
0
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4318
SELECT ALL + SUM( DISTINCT - 96 ) AS col2, - 33 * 23 * - 26 AS col0
----
-96
19734

skipif mysql # not compatible
query II rowsort label-4318
SELECT ALL + SUM ( DISTINCT - 96 ) AS col2, - 33 * 23 * - 26 AS col0
----
-96
19734

onlyif mysql # DIV for integer division: 
query I rowsort label-4319
SELECT + + 52 DIV + + COALESCE ( + 3, 76 )
----
17

skipif mysql # not compatible
query I rowsort label-4319
SELECT + + 52 / + + COALESCE ( + 3, 76 )
----
17

query I rowsort
SELECT ALL + 10 * + - 40 + - 29 + + 52
----
-377

onlyif mysql # aggregate syntax: 
query I rowsort label-4321
SELECT MAX( DISTINCT + 54 ) AS col1
----
54

skipif mysql # not compatible
query I rowsort label-4321
SELECT MAX ( DISTINCT + 54 ) AS col1
----
54

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4322
SELECT + ( + + COUNT( * ) ) * - 51 DIV COUNT( * )
----
-51

skipif mysql # not compatible
query I rowsort label-4322
SELECT + ( + + COUNT ( * ) ) * - 51 / COUNT ( * )
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-4323
SELECT - NULLIF ( + + 4, CASE - AVG ( ALL + + 59 ) WHEN - 66 THEN + + 56 END * - CASE - - 10 WHEN + ( + + 59 ) * 82 + + 18 * + 94 + 83 + + - 33 * - 99 THEN 99 WHEN - 37 THEN 83 + 5 ELSE NULL END * + - 58 * - - 69 / + COUNT( * ) )
----
-4

skipif mysql # not compatible
query I rowsort label-4323
SELECT - NULLIF ( + + 4, CASE - AVG ( ALL + + 59 ) WHEN - 66 THEN + + 56 END * - CASE - - 10 WHEN + ( + + 59 ) * 82 + + 18 * + 94 + 83 + + - 33 * - 99 THEN 99 WHEN - 37 THEN 83 + 5 ELSE NULL END * + - 58 * - - 69 / + COUNT ( * ) )
----
-4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4324
SELECT ALL + 19 + - - 27 * + + CASE + + 49 WHEN + - 27 * - 71 * - - COUNT( * ) + - + 58 + + + 86 * + COUNT( * ) + + MIN( + 4 ) THEN + 62 * + - CAST( + CAST( NULL AS DECIMAL ) AS SIGNED ) + NULLIF ( + 6, + 39 * + 55 + - 16 + + 2 * + 54 ) - 36 ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4324
SELECT ALL + 19 + - - 27 * + + CASE + + 49 WHEN + - 27 * - 71 * - - COUNT ( * ) + - + 58 + + + 86 * + COUNT ( * ) + + MIN ( + 4 ) THEN + 62 * + - CAST ( + CAST ( NULL AS REAL ) AS INTEGER ) + NULLIF ( + 6, + 39 * + 55 + - 16 + + 2 * + 54 ) - 36 ELSE NULL END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4325
SELECT ALL - MAX( DISTINCT + 35 )
----
-35

skipif mysql # not compatible
query I rowsort label-4325
SELECT ALL - MAX ( DISTINCT + 35 )
----
-35

query I rowsort
SELECT - + ( 97 ) AS col1
----
-97

query I rowsort
SELECT DISTINCT 55 + 29
----
84

query II rowsort
SELECT - ( - 77 ), 32 AS col1
----
77
32

onlyif mysql # aggregate syntax: 
query I rowsort label-4329
SELECT MIN( ALL + 32 ) - 52
----
-20

skipif mysql # not compatible
query I rowsort label-4329
SELECT MIN ( ALL + 32 ) - 52
----
-20

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4330
SELECT CAST( COALESCE ( CAST( - + ( + - 0 ) AS SIGNED ), - - 46 ) AS SIGNED ) * 89
----
0

skipif mysql # not compatible
query I rowsort label-4330
SELECT CAST ( COALESCE ( CAST ( - + ( + - 0 ) AS INTEGER ), - - 46 ) AS INTEGER ) * 89
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4331
SELECT + 40 DIV 45 - + ( - + 85 )
----
85

skipif mysql # not compatible
query I rowsort label-4331
SELECT + 40 / 45 - + ( - + 85 )
----
85

onlyif mysql # DIV for integer division: 
query I rowsort label-4332
SELECT 15 DIV 72 col2
----
0

skipif mysql # not compatible
query I rowsort label-4332
SELECT 15 / 72 col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4333
SELECT ALL - COUNT( ALL - - 57 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-4333
SELECT ALL - COUNT ( ALL - - 57 ) AS col2
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4334
SELECT CAST( + 73 AS SIGNED ) * - COUNT( * ) + - 17 DIV + - 53 + + 20
----
-53

skipif mysql # not compatible
query I rowsort label-4334
SELECT CAST ( + 73 AS INTEGER ) * - COUNT ( * ) + - 17 / + - 53 + + 20
----
-53

query I rowsort
SELECT ALL - ( - - 31 ) - + - 84
----
53

query I rowsort
SELECT ALL + ( + + 99 ) * - 99 * 7 AS col2
----
-68607

onlyif mysql # aggregate syntax: 
query I rowsort label-4337
SELECT 88 + + + COUNT( * ) AS col2
----
89

skipif mysql # not compatible
query I rowsort label-4337
SELECT 88 + + + COUNT ( * ) AS col2
----
89

onlyif mysql # DIV for integer division: 
query I rowsort label-4338
SELECT 33 DIV 34 - 23 AS col0
----
-23

skipif mysql # not compatible
query I rowsort label-4338
SELECT 33 / 34 - 23 AS col0
----
-23

query I rowsort
SELECT + 95 * + 53 + 99 - - 53 AS col1
----
5187

query I rowsort
SELECT 33 + 38 AS col0
----
71

query I rowsort
SELECT DISTINCT - 72 col1
----
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-4342
SELECT ALL + COUNT( * ) * + - 56
----
-56

skipif mysql # not compatible
query I rowsort label-4342
SELECT ALL + COUNT ( * ) * + - 56
----
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-4343
SELECT 34 * + 82 * - COUNT( * ) + 76 col1
----
-2712

skipif mysql # not compatible
query I rowsort label-4343
SELECT 34 * + 82 * - COUNT ( * ) + 76 col1
----
-2712

query I rowsort
SELECT ALL + ( + + 92 ) + 22 AS col1
----
114

query I rowsort
SELECT ALL + COALESCE ( 50, 25 ) * - 52 + + 45 AS col1
----
-2555

query I rowsort
SELECT 30 * 83 * + - CASE + + 64 WHEN - 77 THEN + - AVG ( DISTINCT + ( + + 77 ) ) / ( + 20 ) END
----
NULL

query I rowsort
SELECT 33 + - + ( 15 )
----
18

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4348
SELECT CAST( 89 AS SIGNED ) AS col2
----
89

skipif mysql # not compatible
query I rowsort label-4348
SELECT CAST ( 89 AS INTEGER ) AS col2
----
89

onlyif mysql # aggregate syntax: 
query II rowsort label-4349
SELECT ALL + - 58 + + 43 + + 43 AS col2, - 9 + - COUNT( * ) AS col2
----
28
-10

skipif mysql # not compatible
query II rowsort label-4349
SELECT ALL + - 58 + + 43 + + 43 AS col2, - 9 + - COUNT ( * ) AS col2
----
28
-10

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4350
SELECT DISTINCT - COALESCE ( CAST( + NULLIF ( + 50, - 35 ) AS SIGNED ), - - MAX( - 4 ) )
----
-50

skipif mysql # not compatible
query I rowsort label-4350
SELECT DISTINCT - COALESCE ( CAST ( + NULLIF ( + 50, - 35 ) AS INTEGER ), - - MAX ( - 4 ) )
----
-50

query I rowsort
SELECT ALL 75 + - 9
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-4352
SELECT 64 * - CASE + MAX( DISTINCT + 76 ) WHEN + 88 / COUNT( * ) + 78 THEN - 39 WHEN - + 91 THEN + ( + 62 ) * - 6 ELSE 77 END
----
-4928

skipif mysql # not compatible
query I rowsort label-4352
SELECT 64 * - CASE + MAX ( DISTINCT + 76 ) WHEN + 88 / COUNT ( * ) + 78 THEN - 39 WHEN - + 91 THEN + ( + 62 ) * - 6 ELSE 77 END
----
-4928

query I rowsort
SELECT DISTINCT + 84 + + - COALESCE ( + 37, - 67 ) + + + 57 + + 43 AS col1
----
147

query I rowsort
SELECT 25 + - 33 * 38 AS col1
----
-1229

query I rowsort
SELECT ALL - 34 + + - 52 AS col1
----
-86

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4356
SELECT + CAST( NULL AS SIGNED ) + 40 / - 12 - + COUNT( DISTINCT + 21 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4356
SELECT + CAST ( NULL AS INTEGER ) + 40 / - 12 - + COUNT ( DISTINCT + 21 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4357
SELECT 5 * - 49 - + COUNT( - 95 ) AS col1
----
-246

skipif mysql # not compatible
query I rowsort label-4357
SELECT 5 * - 49 - + COUNT ( - 95 ) AS col1
----
-246

query I rowsort
SELECT DISTINCT 40 AS col0
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-4359
SELECT ALL 77 + + - ( - + COUNT( + - 40 ) ) col0
----
78

skipif mysql # not compatible
query I rowsort label-4359
SELECT ALL 77 + + - ( - + COUNT ( + - 40 ) ) col0
----
78

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4360
SELECT ALL + ( + CAST( 69 AS SIGNED ) ) AS col2
----
69

skipif mysql # not compatible
query I rowsort label-4360
SELECT ALL + ( + CAST ( 69 AS INTEGER ) ) AS col2
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-4361
SELECT + COUNT( ALL - 13 )
----
1

skipif mysql # not compatible
query I rowsort label-4361
SELECT + COUNT ( ALL - 13 )
----
1

query I rowsort
SELECT ALL + 99 * - 46 AS col1
----
-4554

onlyif mysql # aggregate syntax: 
query I rowsort label-4363
SELECT - ( + - ( - + ( COUNT( * ) ) ) ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-4363
SELECT - ( + - ( - + ( COUNT ( * ) ) ) ) AS col0
----
-1

query I rowsort
SELECT ALL 44 - + 0 AS col0
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-4365
SELECT DISTINCT + ( + COUNT( * ) ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-4365
SELECT DISTINCT + ( + COUNT ( * ) ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4366
SELECT 79 + - - COUNT( 73 ) AS col2
----
80

skipif mysql # not compatible
query I rowsort label-4366
SELECT 79 + - - COUNT ( 73 ) AS col2
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-4367
SELECT COUNT( * ) - - 65 AS col0
----
66

skipif mysql # not compatible
query I rowsort label-4367
SELECT COUNT ( * ) - - 65 AS col0
----
66

onlyif mysql # aggregate syntax: 
query III rowsort label-4368
SELECT ALL NULLIF ( + - 3, - MAX( ALL - - 72 ) ) * + ( - COUNT( * ) ) col2, 65, - + 51 col2
----
3
65
-51

skipif mysql # not compatible
query III rowsort label-4368
SELECT ALL NULLIF ( + - 3, - MAX ( ALL - - 72 ) ) * + ( - COUNT ( * ) ) col2, 65, - + 51 col2
----
3
65
-51

query I rowsort
SELECT ALL 46 col0
----
46

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4370
SELECT CAST( NULL AS SIGNED ) * + - 50
----
NULL

skipif mysql # not compatible
query I rowsort label-4370
SELECT CAST ( NULL AS INTEGER ) * + - 50
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4371
SELECT DISTINCT - 47, + ( 66 ) * + 62 * + CAST( NULL AS SIGNED ) + 45 AS col2
----
-47
NULL

skipif mysql # not compatible
query II rowsort label-4371
SELECT DISTINCT - 47, + ( 66 ) * + 62 * + CAST ( NULL AS INTEGER ) + 45 AS col2
----
-47
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4372
SELECT DISTINCT - 85 AS col0, COUNT( * ) + + + 23 AS col1
----
-85
24

skipif mysql # not compatible
query II rowsort label-4372
SELECT DISTINCT - 85 AS col0, COUNT ( * ) + + + 23 AS col1
----
-85
24

query I rowsort
SELECT - 29 * + 4 + - 40
----
-156

onlyif mysql # DIV for integer division: 
query II rowsort label-4374
SELECT ALL - 59 AS col1, 21 DIV - - 44
----
-59
0

skipif mysql # not compatible
query II rowsort label-4374
SELECT ALL - 59 AS col1, 21 / - - 44
----
-59
0

query I rowsort
SELECT DISTINCT 9 * - 81 AS col0
----
-729

query I rowsort
SELECT 98 * 49 * - ( CASE + - 92 WHEN - + 54 THEN NULL WHEN + 42 THEN + + 77 END )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4377
SELECT 38 DIV + 52 + + 71 AS col0
----
71

skipif mysql # not compatible
query I rowsort label-4377
SELECT 38 / + 52 + + 71 AS col0
----
71

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4378
SELECT 40 DIV SUM( + + 8 ) AS col1
----
5

skipif mysql # not compatible
query I rowsort label-4378
SELECT 40 / SUM ( + + 8 ) AS col1
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-4379
SELECT ALL NULLIF ( - + 86, + + 90 + ( + MAX( ALL - - 11 ) ) ) + + MAX( ALL + 86 )
----
0

skipif mysql # not compatible
query I rowsort label-4379
SELECT ALL NULLIF ( - + 86, + + 90 + ( + MAX ( ALL - - 11 ) ) ) + + MAX ( ALL + 86 )
----
0

query I rowsort
SELECT 23 * - CASE - - 86 WHEN + 62 / - 70 * + 2 THEN ( - - 78 ) * - - 10 * 97 + + - 75 END / - - ( - 55 ) AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4381
SELECT 30 DIV + COALESCE ( - + 45, + 78 * - 37 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4381
SELECT 30 / + COALESCE ( - + 45, + 78 * - 37 ) AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4382
SELECT DISTINCT 8 + + COUNT( * ) + + - 4
----
5

skipif mysql # not compatible
query I rowsort label-4382
SELECT DISTINCT 8 + + COUNT ( * ) + + - 4
----
5

query II rowsort
SELECT ALL + 3 + + 17 AS col0, 89 + - ( + - 58 )
----
20
147

onlyif mysql # aggregate syntax: 
query II rowsort label-4384
SELECT + 78, - COUNT( * ) AS col2
----
78
-1

skipif mysql # not compatible
query II rowsort label-4384
SELECT + 78, - COUNT ( * ) AS col2
----
78
-1

query I rowsort
SELECT DISTINCT + 94 + 26 + + 16
----
136

query I rowsort
SELECT DISTINCT ( + - 79 ) + - 46
----
-125

onlyif mysql # aggregate syntax: 
query I rowsort label-4387
SELECT ALL - MIN( + + 5 ) col2
----
-5

skipif mysql # not compatible
query I rowsort label-4387
SELECT ALL - MIN ( + + 5 ) col2
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-4388
SELECT - COUNT( * ) * + 72 + + 69 AS col1
----
-3

skipif mysql # not compatible
query I rowsort label-4388
SELECT - COUNT ( * ) * + 72 + + 69 AS col1
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-4389
SELECT + CASE MAX( + 38 ) WHEN - + 44 + + 23 * - 53 THEN + + 14 + - 4 END
----
NULL

skipif mysql # not compatible
query I rowsort label-4389
SELECT + CASE MAX ( + 38 ) WHEN - + 44 + + 23 * - 53 THEN + + 14 + - 4 END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4390
SELECT ALL - CAST( SUM( 58 ) AS SIGNED )
----
-58

skipif mysql # not compatible
query I rowsort label-4390
SELECT ALL - CAST ( SUM ( 58 ) AS INTEGER )
----
-58

query I rowsort
SELECT ALL + 5 + 7
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-4392
SELECT 27 - ( COUNT( * ) )
----
26

skipif mysql # not compatible
query I rowsort label-4392
SELECT 27 - ( COUNT ( * ) )
----
26

query I rowsort
SELECT + 28 col0
----
28

query II rowsort
SELECT - 51 AS col2, 74 col0
----
-51
74

query II rowsort
SELECT ALL - 48 AS col2, 32 AS col2
----
-48
32

onlyif mysql # aggregate syntax: 
query II rowsort label-4396
SELECT ALL - COUNT( * ) AS col0, + NULLIF ( + 66, + - ( 62 ) ) AS col1
----
-1
66

skipif mysql # not compatible
query II rowsort label-4396
SELECT ALL - COUNT ( * ) AS col0, + NULLIF ( + 66, + - ( 62 ) ) AS col1
----
-1
66

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4397
SELECT + ( ( - - 69 ) ) DIV - - SUM( 23 ) * - - COUNT( * ) + + 57 * + COUNT( * ) AS col2
----
60

skipif mysql # not compatible
query I rowsort label-4397
SELECT + ( ( - - 69 ) ) / - - SUM ( 23 ) * - - COUNT ( * ) + + 57 * + COUNT ( * ) AS col2
----
60

query I rowsort
SELECT DISTINCT + ( + - 80 ) AS col2
----
-80

query II rowsort
SELECT ALL 63 AS col1, + 23
----
63
23

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4400
SELECT - + 73 * 48 * - + CAST( + + 95 AS SIGNED ) * - CASE WHEN NOT ( NULL ) IS NOT NULL THEN NULL ELSE - CASE - 87 WHEN + 30 * + 37 * - 25 * - - 32 * + 51 THEN - + 46 * - 33 + 20 - + 38 + + 94 + - ( 89 ) + - - 40 ELSE NULL END END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4400
SELECT - + 73 * 48 * - + CAST ( + + 95 AS INTEGER ) * - CASE WHEN NOT ( NULL ) IS NOT NULL THEN NULL ELSE - CASE - 87 WHEN + 30 * + 37 * - 25 * - - 32 * + 51 THEN - + 46 * - 33 + 20 - + 38 + + 94 + - ( 89 ) + - - 40 ELSE NULL END END AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4401
SELECT - - 56 DIV 49
----
1

skipif mysql # not compatible
query I rowsort label-4401
SELECT - - 56 / 49
----
1

query II rowsort
SELECT - 25 AS col1, 93 - 16
----
-25
77

onlyif mysql # aggregate syntax: 
query I rowsort label-4403
SELECT + SUM( 43 ) + - 51
----
-8

skipif mysql # not compatible
query I rowsort label-4403
SELECT + SUM ( 43 ) + - 51
----
-8

query I rowsort
SELECT + + ( - + 62 ) * + + 48 * 91
----
-270816

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4405
SELECT ALL CASE + + 32 WHEN + 9 THEN 53 ELSE CAST( NULL AS DECIMAL ) END * - 95 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4405
SELECT ALL CASE + + 32 WHEN + 9 THEN 53 ELSE CAST ( NULL AS REAL ) END * - 95 AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4406
SELECT + 52 / + CASE - 81 WHEN - 84 THEN 82 + - COUNT( DISTINCT + 56 ) WHEN - 12 / - CAST( NULL AS SIGNED ) THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-4406
SELECT + 52 / + CASE - 81 WHEN - 84 THEN 82 + - COUNT ( DISTINCT + 56 ) WHEN - 12 / - CAST ( NULL AS INTEGER ) THEN NULL END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4407
SELECT ALL COALESCE ( - 37, + 22, + 12 + + + CAST( - 0 AS SIGNED ) ) AS col2
----
-37

skipif mysql # not compatible
query I rowsort label-4407
SELECT ALL COALESCE ( - 37, + 22, + 12 + + + CAST ( - 0 AS INTEGER ) ) AS col2
----
-37

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4408
SELECT - NULLIF ( + - CASE - 79 WHEN + 69 THEN NULL WHEN - 33 THEN 7 WHEN - 20 / - NULLIF ( 61, 66 + - + 85 ) + - COUNT( * ) + 38 * + 72 THEN NULL END, + CAST( + - 60 AS SIGNED ) * - - 25 ) + + 99 + + - 40 * 22 * + - 23 / - + 84 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4408
SELECT - NULLIF ( + - CASE - 79 WHEN + 69 THEN NULL WHEN - 33 THEN 7 WHEN - 20 / - NULLIF ( 61, 66 + - + 85 ) + - COUNT ( * ) + 38 * + 72 THEN NULL END, + CAST ( + - 60 AS INTEGER ) * - - 25 ) + + 99 + + - 40 * 22 * + - 23 / - + 84 AS col1
----
NULL

query I rowsort
SELECT - 33 - + 81 + + 71
----
-43

query I rowsort
SELECT - 92 * + + 97
----
-8924

query II rowsort
SELECT + 98 * 23 AS col2, 93 - 18 AS col1
----
2254
75

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4412
SELECT ALL - 4 * + + 17 + - 7 DIV - COUNT( * ) AS col2
----
-61

skipif mysql # not compatible
query I rowsort label-4412
SELECT ALL - 4 * + + 17 + - 7 / - COUNT ( * ) AS col2
----
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-4413
SELECT + NULLIF ( 70, MAX( ( + - 41 ) ) * + COALESCE ( + 84, + 55 ) + 71 * - COALESCE ( + 8, + - ( 3 ) + + 76 ) + - + SUM( 36 ) ) AS col2
----
70

skipif mysql # not compatible
query I rowsort label-4413
SELECT + NULLIF ( 70, MAX ( ( + - 41 ) ) * + COALESCE ( + 84, + 55 ) + 71 * - COALESCE ( + 8, + - ( 3 ) + + 76 ) + - + SUM ( 36 ) ) AS col2
----
70

query I rowsort
SELECT + 85 + - 66 AS col0
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-4415
SELECT DISTINCT - COUNT( * ) * - ( 14 ) + + 52
----
66

skipif mysql # not compatible
query I rowsort label-4415
SELECT DISTINCT - COUNT ( * ) * - ( 14 ) + + 52
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-4416
SELECT ALL + 27 * - 19 + - COUNT( * ) + - 17 * + 18 + + - 44
----
-864

skipif mysql # not compatible
query I rowsort label-4416
SELECT ALL + 27 * - 19 + - COUNT ( * ) + - 17 * + 18 + + - 44
----
-864

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4417
SELECT CASE - 34 WHEN ( + - 61 ) / CAST( NULL AS SIGNED ) * + 79 * + COUNT( * ) THEN NULL WHEN + 3 THEN + NULLIF ( - 75, - 10 * - ( 11 ) - - - 16 ) / + 45 + + 61 + - 82 * - 48 * 33 + - ( + 43 ) * - 57 END
----
NULL

skipif mysql # not compatible
query I rowsort label-4417
SELECT CASE - 34 WHEN ( + - 61 ) / CAST ( NULL AS INTEGER ) * + 79 * + COUNT ( * ) THEN NULL WHEN + 3 THEN + NULLIF ( - 75, - 10 * - ( 11 ) - - - 16 ) / + 45 + + 61 + - 82 * - 48 * 33 + - ( + 43 ) * - 57 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4418
SELECT + 26 + + 30 + COUNT( * )
----
57

skipif mysql # not compatible
query I rowsort label-4418
SELECT + 26 + + 30 + COUNT ( * )
----
57

query II rowsort
SELECT + 32 - - + 90 AS col2, 53 AS col0
----
122
53

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4420
SELECT + ( + - COUNT( * ) ) col1, 84 * - 93 + - 6 + COUNT( - 92 ) DIV - 11 + + - COUNT( * ) AS col1
----
-1
-7819

skipif mysql # not compatible
query II rowsort label-4420
SELECT + ( + - COUNT ( * ) ) col1, 84 * - 93 + - 6 + COUNT ( - 92 ) / - 11 + + - COUNT ( * ) AS col1
----
-1
-7819

onlyif mysql # aggregate syntax: 
query I rowsort label-4421
SELECT - MAX( ALL - 17 ) * - 27 AS col0
----
-459

skipif mysql # not compatible
query I rowsort label-4421
SELECT - MAX ( ALL - 17 ) * - 27 AS col0
----
-459

onlyif mysql # aggregate syntax: 
query II rowsort label-4422
SELECT + - COUNT( DISTINCT - + 19 ) + - 41, MAX( + 6 ) * 93 + + - 30 + + + 99 * MIN( ALL - ( - 63 ) ) * + 0 AS col0
----
-42
528

skipif mysql # not compatible
query II rowsort label-4422
SELECT + - COUNT ( DISTINCT - + 19 ) + - 41, MAX ( + 6 ) * 93 + + - 30 + + + 99 * MIN ( ALL - ( - 63 ) ) * + 0 AS col0
----
-42
528

query I rowsort
SELECT ALL + - 37
----
-37

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4424
SELECT DISTINCT + - COUNT( * ) DIV 84, + 42 AS col0
----
0
42

skipif mysql # not compatible
query II rowsort label-4424
SELECT DISTINCT + - COUNT ( * ) / 84, + 42 AS col0
----
0
42

query I rowsort
SELECT + 20 * + 23
----
460

query I rowsort
SELECT ALL ( - + 17 ) * 56 + - 33 - + + 83 AS col0
----
-1068

onlyif mysql # aggregate syntax: 
query I rowsort label-4427
SELECT - COUNT( * ) * + + 80
----
-80

skipif mysql # not compatible
query I rowsort label-4427
SELECT - COUNT ( * ) * + + 80
----
-80

query I rowsort
SELECT ALL + + 3 AS col0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4429
SELECT + - CAST( + CAST( 61 AS SIGNED ) AS SIGNED )
----
-61

skipif mysql # not compatible
query I rowsort label-4429
SELECT + - CAST ( + CAST ( 61 AS INTEGER ) AS INTEGER )
----
-61

onlyif mysql # aggregate syntax: 
query II rowsort label-4430
SELECT - - 13 + NULLIF ( - - 13, - COUNT( * ) + - - 56 ) AS col1, + COALESCE ( - + ( + 86 ), - ( - 27 ) - - + 46 + + 12 ) col0
----
26
-86

skipif mysql # not compatible
query II rowsort label-4430
SELECT - - 13 + NULLIF ( - - 13, - COUNT ( * ) + - - 56 ) AS col1, + COALESCE ( - + ( + 86 ), - ( - 27 ) - - + 46 + + 12 ) col0
----
26
-86

query I rowsort
SELECT + + 27 * - 99 AS col0
----
-2673

onlyif mysql # aggregate syntax: 
query I rowsort label-4432
SELECT + 9 + + NULLIF ( + + COALESCE ( + 11, - CASE - 93 WHEN - - 12 THEN NULL WHEN - 49 THEN + 62 * - COUNT( * ) ELSE NULL END ), + - 47 * ( - - 1 ) / - 63 + - 85 * ( ( 2 ) ) + - + MIN( 15 ) )
----
20

skipif mysql # not compatible
query I rowsort label-4432
SELECT + 9 + + NULLIF ( + + COALESCE ( + 11, - CASE - 93 WHEN - - 12 THEN NULL WHEN - 49 THEN + 62 * - COUNT ( * ) ELSE NULL END ), + - 47 * ( - - 1 ) / - 63 + - 85 * ( ( 2 ) ) + - + MIN ( 15 ) )
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-4433
SELECT DISTINCT - COUNT( * ) * + - 92 + + COUNT( * )
----
93

skipif mysql # not compatible
query I rowsort label-4433
SELECT DISTINCT - COUNT ( * ) * + - 92 + + COUNT ( * )
----
93

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4434
SELECT DISTINCT + CASE COUNT( * ) WHEN + CASE + 9 WHEN - 52 THEN + + 51 / 5 END THEN NULL WHEN 47 - + 64 THEN + 18 ELSE - 36 * - CAST( NULL AS SIGNED ) - 53 * 6 + - 57 - - 70 END * + 75
----
NULL

skipif mysql # not compatible
query I rowsort label-4434
SELECT DISTINCT + CASE COUNT ( * ) WHEN + CASE + 9 WHEN - 52 THEN + + 51 / 5 END THEN NULL WHEN 47 - + 64 THEN + 18 ELSE - 36 * - CAST ( NULL AS INTEGER ) - 53 * 6 + - 57 - - 70 END * + 75
----
NULL

query I rowsort
SELECT - 36 + + 50 + + 85 - - - COALESCE ( - 99, - COALESCE ( + 27, - 27 ) * - + 11 * 14 ) + + ( COALESCE ( 17, - 11 - 6 ) ) * 21
----
555

query I rowsort
SELECT ALL - 56 * + 76 AS col0
----
-4256

onlyif mysql # aggregate syntax: 
query I rowsort label-4437
SELECT DISTINCT CASE - - COUNT( 48 ) WHEN - 60 * + 80 * COUNT( * ) THEN + 1 * - - 38 END
----
NULL

skipif mysql # not compatible
query I rowsort label-4437
SELECT DISTINCT CASE - - COUNT ( 48 ) WHEN - 60 * + 80 * COUNT ( * ) THEN + 1 * - - 38 END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4438
SELECT ALL CAST( + 67 AS SIGNED ) AS col1
----
67

skipif mysql # not compatible
query I rowsort label-4438
SELECT ALL CAST ( + 67 AS INTEGER ) AS col1
----
67

query I rowsort
SELECT - 69 + - + 64 + 84 + - 11 AS col2
----
-60

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4440
SELECT DISTINCT CASE + + CAST( NULL AS SIGNED ) WHEN - ( - 0 ) * COUNT( * ) * 51 / - COALESCE ( - 96, - 61, - 95 * 61 + + 86 + COALESCE ( - 79, - AVG ( - 73 ), + 24 ) * - 72 + + 87 * + 13 ) THEN + 34 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4440
SELECT DISTINCT CASE + + CAST ( NULL AS INTEGER ) WHEN - ( - 0 ) * COUNT ( * ) * 51 / - COALESCE ( - 96, - 61, - 95 * 61 + + 86 + COALESCE ( - 79, - AVG ( - 73 ), + 24 ) * - 72 + + 87 * + 13 ) THEN + 34 END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4441
SELECT - COUNT( * ) * + 2
----
-2

skipif mysql # not compatible
query I rowsort label-4441
SELECT - COUNT ( * ) * + 2
----
-2

onlyif mysql # DIV for integer division: 
query I rowsort label-4442
SELECT - 46 + - 30 + + 26 * ( + + 0 ) DIV 20 AS col1
----
-76

skipif mysql # not compatible
query I rowsort label-4442
SELECT - 46 + - 30 + + 26 * ( + + 0 ) / 20 AS col1
----
-76

query II rowsort
SELECT 9 AS col0, 16 AS col0
----
9
16

onlyif mysql # aggregate syntax: 
query I rowsort label-4444
SELECT ALL + 38 + + COUNT( * )
----
39

skipif mysql # not compatible
query I rowsort label-4444
SELECT ALL + 38 + + COUNT ( * )
----
39

query I rowsort
SELECT - 10 + + 16 AS col0
----
6

query I rowsort
SELECT + 15 + - 17
----
-2

query I rowsort
SELECT DISTINCT + 66 * - 38
----
-2508

query I rowsort
SELECT DISTINCT + 93 + + 17 AS col2
----
110

query I rowsort
SELECT ALL ( + 94 ) * - 0 AS col2
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4450
SELECT ALL MIN( ALL + + 13 ) DIV COUNT( * ) + 45 + - + 78 DIV - 26
----
61

skipif mysql # not compatible
query I rowsort label-4450
SELECT ALL MIN ( ALL + + 13 ) / COUNT ( * ) + 45 + - + 78 / - 26
----
61

query I rowsort
SELECT ALL + ( + - 63 ) AS col0
----
-63

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4452
SELECT CAST( + COUNT( * ) AS SIGNED ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-4452
SELECT CAST ( + COUNT ( * ) AS INTEGER ) AS col0
----
1

query II rowsort
SELECT DISTINCT + 0 AS col1, 6
----
0
6

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4454
SELECT ALL 1 DIV + - 89 - - COUNT( * ) - + 74 * - ( ( + COUNT( - 18 ) ) ), + 21 AS col0
----
75
21

skipif mysql # not compatible
query II rowsort label-4454
SELECT ALL 1 / + - 89 - - COUNT ( * ) - + 74 * - ( ( + COUNT ( - 18 ) ) ), + 21 AS col0
----
75
21

query I rowsort
SELECT - 20 * 75 AS col1
----
-1500

query II rowsort
SELECT + ( + - ( 48 ) ) AS col2, - 44
----
-48
-44

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4457
SELECT CAST( NULL AS SIGNED ) AS col0, + 20
----
NULL
20

skipif mysql # not compatible
query II rowsort label-4457
SELECT CAST ( NULL AS INTEGER ) AS col0, + 20
----
NULL
20

query I rowsort
SELECT DISTINCT + - 43 AS col2
----
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-4459
SELECT DISTINCT + NULLIF ( - COUNT( * ), 89 )
----
-1

skipif mysql # not compatible
query I rowsort label-4459
SELECT DISTINCT + NULLIF ( - COUNT ( * ), 89 )
----
-1

query II rowsort
SELECT + - 41 AS col0, 12
----
-41
12

query II rowsort
SELECT - 30 AS col2, 76
----
-30
76

query I rowsort
SELECT DISTINCT + - 70
----
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-4463
SELECT ALL + + ( - COUNT( * ) ) col0
----
-1

skipif mysql # not compatible
query I rowsort label-4463
SELECT ALL + + ( - COUNT ( * ) ) col0
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4464
SELECT ALL - COALESCE ( - - 63, 73 ) * - 29 + 75 * + 14, + 6 + + + 81 * - - 30 + - SUM( - - COALESCE ( 37, - 95 DIV - CAST( 55 AS SIGNED ) + + 89, + 61 * 78, + 77 ) ) + 44 AS col1
----
2877
2443

skipif mysql # not compatible
query II rowsort label-4464
SELECT ALL - COALESCE ( - - 63, 73 ) * - 29 + 75 * + 14, + 6 + + + 81 * - - 30 + - SUM ( - - COALESCE ( 37, - 95 / - CAST ( 55 AS INTEGER ) + + 89, + 61 * 78, + 77 ) ) + 44 AS col1
----
2877
2443

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4465
SELECT + 18 * 71 * - - 37, CAST( NULL AS SIGNED ) / - 29 AS col2
----
47286
NULL

skipif mysql # not compatible
query II rowsort label-4465
SELECT + 18 * 71 * - - 37, CAST ( NULL AS INTEGER ) / - 29 AS col2
----
47286
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4466
SELECT 21 * - - 4 * - CAST( NULL AS SIGNED ) + + - 36
----
NULL

skipif mysql # not compatible
query I rowsort label-4466
SELECT 21 * - - 4 * - CAST ( NULL AS INTEGER ) + + - 36
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4467
SELECT - COUNT( * ) + 58
----
57

skipif mysql # not compatible
query I rowsort label-4467
SELECT - COUNT ( * ) + 58
----
57

query I rowsort
SELECT 10 + ( - + 5 ) AS col1
----
5

onlyif mysql # DIV for integer division: 
query I rowsort label-4469
SELECT - 84 DIV + - 91
----
0

skipif mysql # not compatible
query I rowsort label-4469
SELECT - 84 / + - 91
----
0

query I rowsort
SELECT 57 * + 27 AS col0
----
1539

onlyif mysql # aggregate syntax: 
query I rowsort label-4471
SELECT + MIN( ALL - 2 ) AS col0
----
-2

skipif mysql # not compatible
query I rowsort label-4471
SELECT + MIN ( ALL - 2 ) AS col0
----
-2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4472
SELECT 59 - - ( 16 ) / + - CASE 25 WHEN + 11 * + 32 THEN 41 * + - 35 + 69 WHEN + 29 + - 32 * 51 - - 48 * - ( COUNT( * ) ) + CAST( NULL AS SIGNED ) + + - MAX( ALL + 3 ) / + 73 * 88 * 21 THEN + + 35 * - 8 + - SUM( DISTINCT - 98 ) * + 17 * - - 63 + - 70 - - COUNT( * ) + 32 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-4472
SELECT 59 - - ( 16 ) / + - CASE 25 WHEN + 11 * + 32 THEN 41 * + - 35 + 69 WHEN + 29 + - 32 * 51 - - 48 * - ( COUNT ( * ) ) + CAST ( NULL AS INTEGER ) + + - MAX ( ALL + 3 ) / + 73 * 88 * 21 THEN + + 35 * - 8 + - SUM ( DISTINCT - 98 ) * + 17 * - - 63 + - 70 - - COUNT ( * ) + 32 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4473
SELECT ALL - 46, CASE + 5 WHEN + + 2 THEN NULL WHEN COUNT( * ) + - 26 THEN NULL ELSE 70 END + 23 AS col2
----
-46
93

skipif mysql # not compatible
query II rowsort label-4473
SELECT ALL - 46, CASE + 5 WHEN + + 2 THEN NULL WHEN COUNT ( * ) + - 26 THEN NULL ELSE 70 END + 23 AS col2
----
-46
93

query I rowsort
SELECT DISTINCT + 10 AS col2
----
10

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4475
SELECT ALL - COALESCE ( + 55, + MAX( ALL + - 45 ) * - + COUNT( * ) + - CAST( NULL AS SIGNED ), + + COUNT( * ) ) + - ( + - 13 ) AS col0
----
-42

skipif mysql # not compatible
query I rowsort label-4475
SELECT ALL - COALESCE ( + 55, + MAX ( ALL + - 45 ) * - + COUNT ( * ) + - CAST ( NULL AS INTEGER ), + + COUNT ( * ) ) + - ( + - 13 ) AS col0
----
-42

onlyif mysql # DIV for integer division: 
query I rowsort label-4476
SELECT ALL COALESCE ( - 29, - 71, - 45 ) DIV - 4 + + 6
----
13

skipif mysql # not compatible
query I rowsort label-4476
SELECT ALL COALESCE ( - 29, - 71, - 45 ) / - 4 + + 6
----
13

query I rowsort
SELECT 24 * - 67
----
-1608

query I rowsort
SELECT 27 - - 57 + + 96 AS col2
----
180

query I rowsort
SELECT 33 * - 68 AS col1
----
-2244

onlyif mysql # aggregate syntax: 
query I rowsort label-4480
SELECT ALL COUNT( * ) + - - COUNT( * ) col0
----
2

skipif mysql # not compatible
query I rowsort label-4480
SELECT ALL COUNT ( * ) + - - COUNT ( * ) col0
----
2

query I rowsort
SELECT DISTINCT + ( - COALESCE ( + 90, 58 ) ) + + - 9 * + 13 * - 66
----
7632

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4482
SELECT ALL + CAST( - + 74 AS SIGNED ) * - 24 * 7 * 96
----
1193472

skipif mysql # not compatible
query I rowsort label-4482
SELECT ALL + CAST ( - + 74 AS INTEGER ) * - 24 * 7 * 96
----
1193472

query I rowsort
SELECT ALL - 7 + 25 + + - 41 * + + 4
----
-146

query I rowsort
SELECT ALL + 44 + - ( 71 )
----
-27

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4485
SELECT 49 * - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4485
SELECT 49 * - CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT 23 + + 70
----
93

query I rowsort
SELECT 32 + 44 AS col0
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-4488
SELECT MAX( DISTINCT - 0 ) * - 46
----
0

skipif mysql # not compatible
query I rowsort label-4488
SELECT MAX ( DISTINCT - 0 ) * - 46
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4489
SELECT ALL + COUNT( * ) * - CAST( NULL AS SIGNED ) / AVG ( DISTINCT + 15 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4489
SELECT ALL + COUNT ( * ) * - CAST ( NULL AS INTEGER ) / AVG ( DISTINCT + 15 ) AS col0
----
NULL

query I rowsort
SELECT ALL + 7 - - + 74 + - 44
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-4491
SELECT - COUNT( * ) * 95 + 83 col2
----
-12

skipif mysql # not compatible
query I rowsort label-4491
SELECT - COUNT ( * ) * 95 + 83 col2
----
-12

query I rowsort
SELECT ALL - 26 - + + 18
----
-44

query I rowsort
SELECT 56 * - 82 * 25
----
-114800

query I rowsort
SELECT + 15 * + - 83 * 28 + 12 - 76 * - 23 AS col0
----
-33100

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4495
SELECT - 16 + + CAST( NULL AS SIGNED ) + 49 * 46 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4495
SELECT - 16 + + CAST ( NULL AS INTEGER ) + 49 * 46 AS col0
----
NULL

query I rowsort
SELECT 35 * + COALESCE ( - 19, + ( - 23 ) )
----
-665

query II rowsort
SELECT 94 + 32, - 89 AS col2
----
126
-89

query II rowsort
SELECT + 35 * + 91 * - - 45 + + ( - - 83 ) AS col2, 68 AS col2
----
143408
68

query I rowsort
SELECT ALL - NULLIF ( + - 32, + 90 )
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-4500
SELECT + CASE - 28 WHEN + 4 - - 83 + + COUNT( * ) * + - 0 + - 53 + 86 THEN + 3 + - NULLIF ( 1, 85 ) + ( + COUNT( * ) ) + + - 93 * - 48 - - COUNT( * ) + 27 END * + 53
----
NULL

skipif mysql # not compatible
query I rowsort label-4500
SELECT + CASE - 28 WHEN + 4 - - 83 + + COUNT ( * ) * + - 0 + - 53 + 86 THEN + 3 + - NULLIF ( 1, 85 ) + ( + COUNT ( * ) ) + + - 93 * - 48 - - COUNT ( * ) + 27 END * + 53
----
NULL

query I rowsort
SELECT ALL - + 65
----
-65

query I rowsort
SELECT ALL + 50 * - CASE + - 80 WHEN + 21 THEN - 53 END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4503
SELECT ALL + + COUNT( * ) + + 98, 55 * + 84 AS col2
----
99
4620

skipif mysql # not compatible
query II rowsort label-4503
SELECT ALL + + COUNT ( * ) + + 98, 55 * + 84 AS col2
----
99
4620

query I rowsort
SELECT 81 * + 97 * + - 2
----
-15714

onlyif mysql # aggregate syntax: 
query I rowsort label-4505
SELECT + MAX( + 92 ) AS col2
----
92

skipif mysql # not compatible
query I rowsort label-4505
SELECT + MAX ( + 92 ) AS col2
----
92

onlyif mysql # aggregate syntax: 
query I rowsort label-4506
SELECT COUNT( * ) - + 62 + 39 + + + 76 + 2 + - - COUNT( * ) + + 13 * 57
----
798

skipif mysql # not compatible
query I rowsort label-4506
SELECT COUNT ( * ) - + 62 + 39 + + + 76 + 2 + - - COUNT ( * ) + + 13 * 57
----
798

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4507
SELECT COUNT( * ) + + - 34 + - COALESCE ( - 94, + + 25 * + 61 + - + 80 - - + 27 + 85 * - - ( - 94 ) + 15 * + 47 * - COUNT( ALL CAST( - 91 AS SIGNED ) ) - + 20 ) * - + 98, + 67 AS col0
----
-9245
67

skipif mysql # not compatible
query II rowsort label-4507
SELECT COUNT ( * ) + + - 34 + - COALESCE ( - 94, + + 25 * + 61 + - + 80 - - + 27 + 85 * - - ( - 94 ) + 15 * + 47 * - COUNT ( ALL CAST ( - 91 AS INTEGER ) ) - + 20 ) * - + 98, + 67 AS col0
----
-9245
67

query I rowsort
SELECT ALL 74 + 72 + 79
----
225

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4509
SELECT 49 + + - 68 * ( - 77 ) DIV COUNT( * ) AS col0
----
5285

skipif mysql # not compatible
query I rowsort label-4509
SELECT 49 + + - 68 * ( - 77 ) / COUNT ( * ) AS col0
----
5285

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4510
SELECT - MIN( + NULLIF ( 32, - CAST( NULL AS DECIMAL ) ) )
----
-32

skipif mysql # not compatible
query I rowsort label-4510
SELECT - MIN ( + NULLIF ( 32, - CAST ( NULL AS REAL ) ) )
----
-32

onlyif mysql # DIV for integer division: 
query I rowsort label-4511
SELECT DISTINCT 80 DIV 97 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4511
SELECT DISTINCT 80 / 97 AS col1
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-4512
SELECT ALL ( - 52 ) - + NULLIF ( - 77, - 74 ) AS col0, - COUNT( - - ( + - ( + + CASE - 38 WHEN - - 69 * - 16 THEN - 99 END ) ) )
----
25
0

skipif mysql # not compatible
query II rowsort label-4512
SELECT ALL ( - 52 ) - + NULLIF ( - 77, - 74 ) AS col0, - COUNT ( - - ( + - ( + + CASE - 38 WHEN - - 69 * - 16 THEN - 99 END ) ) )
----
25
0

query I rowsort
SELECT NULLIF ( - 31, - ( - + 43 ) ) * - + 24
----
744

onlyif mysql # aggregate syntax: 
query I rowsort label-4514
SELECT 68 + ( - SUM( DISTINCT 50 ) ) + + - 63 + - 96 + + 76
----
-65

skipif mysql # not compatible
query I rowsort label-4514
SELECT 68 + ( - SUM ( DISTINCT 50 ) ) + + - 63 + - 96 + + 76
----
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-4515
SELECT DISTINCT 73 * - - COUNT( * )
----
73

skipif mysql # not compatible
query I rowsort label-4515
SELECT DISTINCT 73 * - - COUNT ( * )
----
73

onlyif mysql # aggregate syntax: 
query I rowsort label-4516
SELECT - MIN( ALL + - 78 ) AS col1
----
78

skipif mysql # not compatible
query I rowsort label-4516
SELECT - MIN ( ALL + - 78 ) AS col1
----
78

query II rowsort
SELECT ALL 26, + ( 67 ) * 36 * + - 78 AS col2
----
26
-188136

query I rowsort
SELECT - COALESCE ( - 56, - - 14, + 47 )
----
56

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4519
SELECT DISTINCT CAST( NULL AS SIGNED ) * - 44 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4519
SELECT DISTINCT CAST ( NULL AS INTEGER ) * - 44 AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4520
SELECT - 73 * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4520
SELECT - 73 * + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4521
SELECT ALL ( 66 ) * - 0 * - 37 + MAX( ALL - - 29 ) AS col2
----
29

skipif mysql # not compatible
query I rowsort label-4521
SELECT ALL ( 66 ) * - 0 * - 37 + MAX ( ALL - - 29 ) AS col2
----
29

query I rowsort
SELECT ALL + - 47 AS col0
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-4523
SELECT ALL + SUM( DISTINCT - NULLIF ( - 10, - 36 ) )
----
10

skipif mysql # not compatible
query I rowsort label-4523
SELECT ALL + SUM ( DISTINCT - NULLIF ( - 10, - 36 ) )
----
10

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4524
SELECT + + 89 DIV + CAST( NULL AS SIGNED ) + - - 77, 97 DIV - COUNT( 87 ) AS col1
----
NULL
-97

skipif mysql # not compatible
query II rowsort label-4524
SELECT + + 89 / + CAST ( NULL AS INTEGER ) + - - 77, 97 / - COUNT ( 87 ) AS col1
----
NULL
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-4525
SELECT - - 84 * - COUNT( * ) AS col1
----
-84

skipif mysql # not compatible
query I rowsort label-4525
SELECT - - 84 * - COUNT ( * ) AS col1
----
-84

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4526
SELECT - - 15 - - - 36 * + 46 * + CAST( - 5 AS SIGNED ) + 74 + + + 64 + - CAST( NULL AS SIGNED ) / - 99
----
NULL

skipif mysql # not compatible
query I rowsort label-4526
SELECT - - 15 - - - 36 * + 46 * + CAST ( - 5 AS INTEGER ) + 74 + + + 64 + - CAST ( NULL AS INTEGER ) / - 99
----
NULL

query I rowsort
SELECT + ( - 56 ) AS col1
----
-56

query I rowsort
SELECT ALL + ( - 56 )
----
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-4529
SELECT + COUNT( ALL - 93 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-4529
SELECT + COUNT ( ALL - 93 ) AS col1
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4530
SELECT - 75 DIV 19 * - COUNT( * ) - + 49 + + + 47 + + 59 DIV - 5 - + 98 * ( 43 ) * + ( - 76 ) col2
----
320254

skipif mysql # not compatible
query I rowsort label-4530
SELECT - 75 / 19 * - COUNT ( * ) - + 49 + + + 47 + + 59 / - 5 - + 98 * ( 43 ) * + ( - 76 ) col2
----
320254

onlyif mysql # aggregate syntax: 
query II rowsort label-4531
SELECT + + COUNT( * ) AS col1, 50
----
1
50

skipif mysql # not compatible
query II rowsort label-4531
SELECT + + COUNT ( * ) AS col1, 50
----
1
50

onlyif mysql # aggregate syntax: 
query I rowsort label-4532
SELECT + 16 * - COUNT( DISTINCT + + 30 ) + 10
----
-6

skipif mysql # not compatible
query I rowsort label-4532
SELECT + 16 * - COUNT ( DISTINCT + + 30 ) + 10
----
-6

query I rowsort
SELECT - - 82 + 12
----
94

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4534
SELECT DISTINCT + + COUNT( * ) * - + 21 + + 76 + + 77 DIV - 91 - - 63 * COUNT( * )
----
118

skipif mysql # not compatible
query I rowsort label-4534
SELECT DISTINCT + + COUNT ( * ) * - + 21 + + 76 + + 77 / - 91 - - 63 * COUNT ( * )
----
118

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4535
SELECT + + 8 + 94 + 89 * - + 64 * - NULLIF ( + 50, + 17 ) / + - 58 / - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4535
SELECT + + 8 + 94 + 89 * - + 64 * - NULLIF ( + 50, + 17 ) / + - 58 / - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4536
SELECT DISTINCT + MIN( + ( 27 ) )
----
27

skipif mysql # not compatible
query I rowsort label-4536
SELECT DISTINCT + MIN ( + ( 27 ) )
----
27

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4537
SELECT ALL + CAST( - 48 AS SIGNED ) AS col1
----
-48

skipif mysql # not compatible
query I rowsort label-4537
SELECT ALL + CAST ( - 48 AS INTEGER ) AS col1
----
-48

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4538
SELECT - 10 * + 25 DIV + COUNT( * ) col0
----
-250

skipif mysql # not compatible
query I rowsort label-4538
SELECT - 10 * + 25 / + COUNT ( * ) col0
----
-250

onlyif mysql # DIV for integer division: 
query I rowsort label-4539
SELECT DISTINCT 15 * - - 25 + - 2 * - + ( 97 ) DIV - - 92 AS col2
----
377

skipif mysql # not compatible
query I rowsort label-4539
SELECT DISTINCT 15 * - - 25 + - 2 * - + ( 97 ) / - - 92 AS col2
----
377

query I rowsort
SELECT DISTINCT COALESCE ( - + 97, - + 34 ) col2
----
-97

query I rowsort
SELECT DISTINCT 92 * - ( + 49 ) * 68 * 58 AS col1
----
-17779552

query I rowsort
SELECT DISTINCT ( - 34 )
----
-34

query I rowsort
SELECT ALL 39 - 6 * + 73 col2
----
-399

query I rowsort
SELECT ALL 58 col1
----
58

query I rowsort
SELECT - 21 - 42 * - 52 * 72 AS col0
----
157227

query I rowsort
SELECT - 79 * + 5
----
-395

onlyif mysql # aggregate syntax: 
query I rowsort label-4547
SELECT ALL - 44 * COUNT( * ) * + + ( 14 )
----
-616

skipif mysql # not compatible
query I rowsort label-4547
SELECT ALL - 44 * COUNT ( * ) * + + ( 14 )
----
-616

query I rowsort
SELECT ALL ( + 94 ) AS col1
----
94

query II rowsort
SELECT ALL 73, 56 AS col1
----
73
56

query II rowsort
SELECT DISTINCT 75, 17 AS col2
----
75
17

query I rowsort
SELECT - ( - 49 )
----
49

query II rowsort
SELECT DISTINCT - 68, - 52 - 99 AS col0
----
-68
-151

query I rowsort
SELECT + - 93 * + 64 + 23 AS col1
----
-5929

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4554
SELECT + - CAST( NULL AS SIGNED ) * AVG ( - ( - 22 ) ) * 15 * + MIN( 74 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4554
SELECT + - CAST ( NULL AS INTEGER ) * AVG ( - ( - 22 ) ) * 15 * + MIN ( 74 ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4555
SELECT CASE - 40 WHEN + 51 THEN 10 + + SUM( DISTINCT 41 ) + + ( 80 ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4555
SELECT CASE - 40 WHEN + 51 THEN 10 + + SUM ( DISTINCT 41 ) + + ( 80 ) END AS col2
----
NULL

query I rowsort
SELECT + - 44 + + 76 AS col2
----
32

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4557
SELECT + SUM( ALL 59 ) + - 81 + - 79 DIV - 47
----
-21

skipif mysql # not compatible
query I rowsort label-4557
SELECT + SUM ( ALL 59 ) + - 81 + - 79 / - 47
----
-21

query I rowsort
SELECT ALL + - 20 AS col2
----
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-4559
SELECT DISTINCT + ( COUNT( * ) ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-4559
SELECT DISTINCT + ( COUNT ( * ) ) AS col0
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4560
SELECT + 64 + + ( - COUNT( * ) ) * - 97, 92 + + COALESCE ( + + COUNT( * ), - 45 + ( - COUNT( * ) ), - 64 ) + - - NULLIF ( - MAX( + 88 ), - - MAX( ALL 91 ) ) DIV - - 86 AS col2
----
161
92

skipif mysql # not compatible
query II rowsort label-4560
SELECT + 64 + + ( - COUNT ( * ) ) * - 97, 92 + + COALESCE ( + + COUNT ( * ), - 45 + ( - COUNT ( * ) ), - 64 ) + - - NULLIF ( - MAX ( + 88 ), - - MAX ( ALL 91 ) ) / - - 86 AS col2
----
161
92

query I rowsort
SELECT ALL - 83 * + - 41
----
3403

query II rowsort
SELECT + 38, - 55 + 19 * - 32 col1
----
38
-663

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4563
SELECT ALL + COUNT( * ) DIV + MIN( + - 31 ) + 21
----
21

skipif mysql # not compatible
query I rowsort label-4563
SELECT ALL + COUNT ( * ) / + MIN ( + - 31 ) + 21
----
21

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4564
SELECT ALL - - MIN( - - NULLIF ( 59, - 58 DIV + - 84 ) ) DIV SUM( 71 ) + - - 44 + COUNT( * ) + + 61 * - 54 AS col2
----
-3249

skipif mysql # not compatible
query I rowsort label-4564
SELECT ALL - - MIN ( - - NULLIF ( 59, - 58 / + - 84 ) ) / SUM ( 71 ) + - - 44 + COUNT ( * ) + + 61 * - 54 AS col2
----
-3249

query I rowsort
SELECT + + 67 * + 93
----
6231

onlyif mysql # DIV for integer division: 
query I rowsort label-4566
SELECT ALL - - 59 DIV - 97
----
0

skipif mysql # not compatible
query I rowsort label-4566
SELECT ALL - - 59 / - 97
----
0

query II rowsort
SELECT + 95, 80 AS col2
----
95
80

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4568
SELECT ALL + 3 col0, - 0 * COUNT( * ) * + - 71 + - MAX( - CAST( 37 AS SIGNED ) )
----
3
37

skipif mysql # not compatible
query II rowsort label-4568
SELECT ALL + 3 col0, - 0 * COUNT ( * ) * + - 71 + - MAX ( - CAST ( 37 AS INTEGER ) )
----
3
37

query I rowsort
SELECT - 46 + - - 94 AS col2
----
48

query I rowsort
SELECT ALL - NULLIF ( - 62, + + 83 * + - 38 * - 8 * ( 73 ) ) * + - 67 AS col0
----
-4154

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4571
SELECT ALL - COALESCE ( MAX( 5 ), - 58 ) DIV - 69 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4571
SELECT ALL - COALESCE ( MAX ( 5 ), - 58 ) / - 69 AS col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4572
SELECT - CASE ( + - 25 ) WHEN - ( - NULLIF ( + 28, + - 53 ) ) THEN - + 74 * + 22 ELSE + - CAST( 35 AS SIGNED ) END - CASE + + 79 WHEN 42 / 13 THEN - COUNT( * ) * - 51 + 93 / + 75 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-4572
SELECT - CASE ( + - 25 ) WHEN - ( - NULLIF ( + 28, + - 53 ) ) THEN - + 74 * + 22 ELSE + - CAST ( 35 AS INTEGER ) END - CASE + + 79 WHEN 42 / 13 THEN - COUNT ( * ) * - 51 + 93 / + 75 ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4573
SELECT DISTINCT + CAST( - - 38 AS SIGNED ) * + 43 - 66 AS col0
----
1568

skipif mysql # not compatible
query I rowsort label-4573
SELECT DISTINCT + CAST ( - - 38 AS INTEGER ) * + 43 - 66 AS col0
----
1568

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4574
SELECT - 27 * + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4574
SELECT - 27 * + + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT - 92 + ( 94 ) * + 12 AS col2
----
1036

query I rowsort
SELECT NULLIF ( + - 78, + 1 )
----
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-4577
SELECT - MIN( + 3 ) + - 2 + 93
----
88

skipif mysql # not compatible
query I rowsort label-4577
SELECT - MIN ( + 3 ) + - 2 + 93
----
88

query I rowsort
SELECT DISTINCT ( - 48 )
----
-48

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4579
SELECT ALL CAST( - - CASE + 81 WHEN - 91 THEN + 37 END AS SIGNED ), + MAX( ALL - - CAST( NULL AS SIGNED ) )
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-4579
SELECT ALL CAST ( - - CASE + 81 WHEN - 91 THEN + 37 END AS INTEGER ), + MAX ( ALL - - CAST ( NULL AS INTEGER ) )
----
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4580
SELECT SUM( - 56 ) + 3
----
-53

skipif mysql # not compatible
query I rowsort label-4580
SELECT SUM ( - 56 ) + 3
----
-53

query I rowsort
SELECT 77 * 69 col0
----
5313

query I rowsort
SELECT 48 * - 49
----
-2352

query I rowsort
SELECT 83 + - - 5 AS col1
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-4584
SELECT + CASE - - 81 WHEN - - 47 * - 17 THEN - COUNT( * ) * 4 * + ( + 38 ) END + 24 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4584
SELECT + CASE - - 81 WHEN - - 47 * - 17 THEN - COUNT ( * ) * 4 * + ( + 38 ) END + 24 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4585
SELECT DISTINCT - 95 * COUNT( * ) + ( + 22 ) * - - 44
----
873

skipif mysql # not compatible
query I rowsort label-4585
SELECT DISTINCT - 95 * COUNT ( * ) + ( + 22 ) * - - 44
----
873

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4586
SELECT + 12 DIV - - ( + - 15 ) * + CAST( - 70 AS SIGNED )
----
0

skipif mysql # not compatible
query I rowsort label-4586
SELECT + 12 / - - ( + - 15 ) * + CAST ( - 70 AS INTEGER )
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4587
SELECT DISTINCT - 45 + ( COUNT( * ) ) * 58 * COALESCE ( ( - 62 ), 92 + COUNT( * ) + 62 DIV + 49 + - + 49 ) + + - 15 + 25 * 11 AS col1
----
-3381

skipif mysql # not compatible
query I rowsort label-4587
SELECT DISTINCT - 45 + ( COUNT ( * ) ) * 58 * COALESCE ( ( - 62 ), 92 + COUNT ( * ) + 62 / + 49 + - + 49 ) + + - 15 + 25 * 11 AS col1
----
-3381

query I rowsort
SELECT ALL + ( + 6 ) + + + 19 * + 5 * - 52 * + - 75
----
370506

query I rowsort
SELECT - - ( + - ( 22 ) )
----
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-4590
SELECT - 62 * NULLIF ( - - 36, - 89 * + 2 / - + 38 - COUNT( * ) + + - 29 / - + 8 )
----
-2232

skipif mysql # not compatible
query I rowsort label-4590
SELECT - 62 * NULLIF ( - - 36, - 89 * + 2 / - + 38 - COUNT ( * ) + + - 29 / - + 8 )
----
-2232

onlyif mysql # aggregate syntax: 
query II rowsort label-4591
SELECT ALL - 43 + 74 AS col2, COUNT( * ) AS col2
----
31
1

skipif mysql # not compatible
query II rowsort label-4591
SELECT ALL - 43 + 74 AS col2, COUNT ( * ) AS col2
----
31
1

onlyif mysql # DIV for integer division: 
query I rowsort label-4592
SELECT ( 42 ) DIV - - ( 90 )
----
0

skipif mysql # not compatible
query I rowsort label-4592
SELECT ( 42 ) / - - ( 90 )
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4593
SELECT + 85 * - COUNT( * ) + CAST( - AVG ( - 46 ) AS SIGNED ) AS col1
----
-39

skipif mysql # not compatible
query I rowsort label-4593
SELECT + 85 * - COUNT ( * ) + CAST ( - AVG ( - 46 ) AS INTEGER ) AS col1
----
-39

query I rowsort
SELECT ALL - + 54 AS col2
----
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-4595
SELECT - NULLIF ( + 34, + COUNT( ALL - 22 ) )
----
-34

skipif mysql # not compatible
query I rowsort label-4595
SELECT - NULLIF ( + 34, + COUNT ( ALL - 22 ) )
----
-34

query I rowsort
SELECT DISTINCT - - 77 AS col1
----
77

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4597
SELECT - 51 - NULLIF ( NULLIF ( - 31, + - ( - - 88 ) ), + 78 ) * 20 * - 45 * + + COUNT( * ) * - 99 DIV + 9, 59 AS col0
----
306849
59

skipif mysql # not compatible
query II rowsort label-4597
SELECT - 51 - NULLIF ( NULLIF ( - 31, + - ( - - 88 ) ), + 78 ) * 20 * - 45 * + + COUNT ( * ) * - 99 / + 9, 59 AS col0
----
306849
59

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4598
SELECT 28 * - ( - CAST( 95 AS SIGNED ) ) col1
----
2660

skipif mysql # not compatible
query I rowsort label-4598
SELECT 28 * - ( - CAST ( 95 AS INTEGER ) ) col1
----
2660

onlyif mysql # aggregate syntax: 
query I rowsort label-4599
SELECT ALL - - ( + - SUM( 12 ) ) AS col1
----
-12

skipif mysql # not compatible
query I rowsort label-4599
SELECT ALL - - ( + - SUM ( 12 ) ) AS col1
----
-12

query I rowsort
SELECT ALL - + 17
----
-17

query I rowsort
SELECT ALL 28 * + + 93 * 58 AS col0
----
151032

onlyif mysql # aggregate syntax: 
query I rowsort label-4602
SELECT COUNT( * ) * 45
----
45

skipif mysql # not compatible
query I rowsort label-4602
SELECT COUNT ( * ) * 45
----
45

query I rowsort
SELECT 52 - + 71
----
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-4604
SELECT ALL - MAX( DISTINCT - + 88 )
----
88

skipif mysql # not compatible
query I rowsort label-4604
SELECT ALL - MAX ( DISTINCT - + 88 )
----
88

query I rowsort
SELECT 59 + 22 AS col0
----
81

query I rowsort
SELECT + 44 col2
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-4607
SELECT COUNT( * ) * + 22 AS col2
----
22

skipif mysql # not compatible
query I rowsort label-4607
SELECT COUNT ( * ) * + 22 AS col2
----
22

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4608
SELECT ALL - 87 AS col1, CAST( NULL AS SIGNED )
----
-87
NULL

skipif mysql # not compatible
query II rowsort label-4608
SELECT ALL - 87 AS col1, CAST ( NULL AS INTEGER )
----
-87
NULL

query I rowsort
SELECT 58 * + 91 AS col0
----
5278

query II rowsort
SELECT ALL - 93 AS col2, + 92 + 66 col1
----
-93
158

query I rowsort
SELECT DISTINCT + 72 * 6
----
432

query II rowsort
SELECT 17 AS col0, 86 * 37 + - 23 AS col2
----
17
3159

query I rowsort
SELECT ( - 89 ) * + + 44 + + + 15 * 28 AS col0
----
-3496

onlyif mysql # aggregate syntax: 
query I rowsort label-4614
SELECT ALL + 81 * COALESCE ( 84, - + COUNT( * ) )
----
6804

skipif mysql # not compatible
query I rowsort label-4614
SELECT ALL + 81 * COALESCE ( 84, - + COUNT ( * ) )
----
6804

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4615
SELECT ALL - 27 * - COUNT( * ) DIV - CASE + 92 WHEN + + MAX( + 49 ) THEN NULL ELSE - 35 + - 4 + - 9 DIV 53 END
----
0

skipif mysql # not compatible
query I rowsort label-4615
SELECT ALL - 27 * - COUNT ( * ) / - CASE + 92 WHEN + + MAX ( + 49 ) THEN NULL ELSE - 35 + - 4 + - 9 / 53 END
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4616
SELECT 57 * + CAST( + - CASE + 86 WHEN ( 34 ) * 61 THEN NULL WHEN - 68 * + + 12 * + 19 THEN + 26 / COUNT( + - 58 ) * - - 95 WHEN - + 39 + 55 + - - CAST( NULL AS SIGNED ) THEN - + 5 END AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4616
SELECT 57 * + CAST ( + - CASE + 86 WHEN ( 34 ) * 61 THEN NULL WHEN - 68 * + + 12 * + 19 THEN + 26 / COUNT ( + - 58 ) * - - 95 WHEN - + 39 + 55 + - - CAST ( NULL AS INTEGER ) THEN - + 5 END AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT 64 - - 83 AS col0
----
147

onlyif mysql # aggregate syntax: 
query II rowsort label-4618
SELECT DISTINCT - 9 + - + COUNT( * ) * + 88 * + 74 AS col1, ( - 59 ) + - COUNT( * ) AS col1
----
-6521
-60

skipif mysql # not compatible
query II rowsort label-4618
SELECT DISTINCT - 9 + - + COUNT ( * ) * + 88 * + 74 AS col1, ( - 59 ) + - COUNT ( * ) AS col1
----
-6521
-60

query I rowsort
SELECT ALL + 55 + + 60 AS col2
----
115

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4620
SELECT 56 - - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4620
SELECT 56 - - CAST ( NULL AS INTEGER )
----
NULL

query II rowsort
SELECT + 33 AS col0, 72
----
33
72

query II rowsort
SELECT - - 15 AS col0, - 25 AS col0
----
15
-25

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4623
SELECT + 19 * + CASE 64 WHEN + COUNT( * ) THEN + MAX( 87 ) ELSE + CAST( NULL AS SIGNED ) + - - 62 END col2, 43
----
NULL
43

skipif mysql # not compatible
query II rowsort label-4623
SELECT + 19 * + CASE 64 WHEN + COUNT ( * ) THEN + MAX ( 87 ) ELSE + CAST ( NULL AS INTEGER ) + - - 62 END col2, 43
----
NULL
43

query I rowsort
SELECT ALL + ( 29 ) AS col2
----
29

query II rowsort
SELECT ALL + 47 + - 50 * 46 AS col2, - 91
----
-2253
-91

query II rowsort
SELECT - 67 AS col0, - COALESCE ( 27, + 83, - 28 + + 45 ) AS col2
----
-67
-27

query I rowsort
SELECT ALL - - 93 + + 79
----
172

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4628
SELECT + 99 + + ( - COUNT( * ) ) DIV - 57 AS col0, 7
----
99
7

skipif mysql # not compatible
query II rowsort label-4628
SELECT + 99 + + ( - COUNT ( * ) ) / - 57 AS col0, 7
----
99
7

onlyif mysql # aggregate syntax: 
query I rowsort label-4629
SELECT - COUNT( ALL + 91 ) - + 47 AS col1
----
-48

skipif mysql # not compatible
query I rowsort label-4629
SELECT - COUNT ( ALL + 91 ) - + 47 AS col1
----
-48

query I rowsort
SELECT 74 + - 8 col1
----
66

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4631
SELECT 5 * + 95 / + CAST( NULL AS SIGNED ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4631
SELECT 5 * + 95 / + CAST ( NULL AS INTEGER ) col0
----
NULL

query I rowsort
SELECT ALL - - 5 - - 64 AS col2
----
69

query I rowsort
SELECT ALL + 62 * - 98
----
-6076

onlyif mysql # aggregate syntax: 
query II rowsort label-4634
SELECT + 49 + + SUM( ALL + 42 ), 53 + + COUNT( - 57 ) AS col2
----
91
54

skipif mysql # not compatible
query II rowsort label-4634
SELECT + 49 + + SUM ( ALL + 42 ), 53 + + COUNT ( - 57 ) AS col2
----
91
54

onlyif mysql # aggregate syntax: 
query I rowsort label-4635
SELECT ALL - COUNT( + + 81 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-4635
SELECT ALL - COUNT ( + + 81 ) AS col1
----
-1

query I rowsort
SELECT DISTINCT + + 75 * - 20
----
-1500

onlyif mysql # aggregate syntax: 
query II rowsort label-4637
SELECT DISTINCT - 61, SUM( DISTINCT 53 ) AS col2
----
-61
53

skipif mysql # not compatible
query II rowsort label-4637
SELECT DISTINCT - 61, SUM ( DISTINCT 53 ) AS col2
----
-61
53

onlyif mysql # aggregate syntax: 
query I rowsort label-4638
SELECT 14 * + + COUNT( * )
----
14

skipif mysql # not compatible
query I rowsort label-4638
SELECT 14 * + + COUNT ( * )
----
14

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4639
SELECT CAST( COUNT( * ) AS SIGNED ) DIV - 27
----
0

skipif mysql # not compatible
query I rowsort label-4639
SELECT CAST ( COUNT ( * ) AS INTEGER ) / - 27
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4640
SELECT ALL 16 DIV + 72 col1
----
0

skipif mysql # not compatible
query I rowsort label-4640
SELECT ALL 16 / + 72 col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4641
SELECT COUNT( DISTINCT - + 49 ) * - 16 AS col1
----
-16

skipif mysql # not compatible
query I rowsort label-4641
SELECT COUNT ( DISTINCT - + 49 ) * - 16 AS col1
----
-16

onlyif mysql # aggregate syntax: 
query II rowsort label-4642
SELECT COUNT( DISTINCT - 47 ) AS col0, + 63 * - 6 * + 64 + - 76 AS col1
----
1
-24268

skipif mysql # not compatible
query II rowsort label-4642
SELECT COUNT ( DISTINCT - 47 ) AS col0, + 63 * - 6 * + 64 + - 76 AS col1
----
1
-24268

query I rowsort
SELECT ALL 80 + 43 + 66 AS col2
----
189

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4644
SELECT DISTINCT 73 * 73 * - + 79 * 0 * + 76 * - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4644
SELECT DISTINCT 73 * 73 * - + 79 * 0 * + 76 * - CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT 22 * + 53 * - - 10 * - ( - 46 ) + - 76 - - 41
----
536325

query I rowsort
SELECT + 44 - - 80 * - 72
----
-5716

onlyif mysql # aggregate syntax: 
query I rowsort label-4647
SELECT + CASE 67 WHEN + ( - 21 ) THEN NULL WHEN + - 55 THEN + 48 + MAX( ALL - + 30 ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-4647
SELECT + CASE 67 WHEN + ( - 21 ) THEN NULL WHEN + - 55 THEN + 48 + MAX ( ALL - + 30 ) ELSE NULL END
----
NULL

query I rowsort
SELECT ALL 8 * - 25 AS col2
----
-200

onlyif mysql # aggregate syntax: 
query I rowsort label-4649
SELECT + COUNT( * ) * - COUNT( ALL + 87 )
----
-1

skipif mysql # not compatible
query I rowsort label-4649
SELECT + COUNT ( * ) * - COUNT ( ALL + 87 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4650
SELECT - ( - NULLIF ( - 2, + - COUNT( * ) ) ) * 51 * + + 87 * 30
----
-266220

skipif mysql # not compatible
query I rowsort label-4650
SELECT - ( - NULLIF ( - 2, + - COUNT ( * ) ) ) * 51 * + + 87 * 30
----
-266220

query I rowsort
SELECT ALL 2 + + - 24
----
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-4652
SELECT + 8 + - - COUNT( * ) * + MIN( DISTINCT + ( 20 ) ) AS col1
----
28

skipif mysql # not compatible
query I rowsort label-4652
SELECT + 8 + - - COUNT ( * ) * + MIN ( DISTINCT + ( 20 ) ) AS col1
----
28

onlyif mysql # DIV for integer division: 
query I rowsort label-4653
SELECT DISTINCT + 45 DIV + 77 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4653
SELECT DISTINCT + 45 / + 77 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4654
SELECT - 49 * ( - 95 ) + + - COUNT( * ) + 33 * - 92 AS col2
----
1618

skipif mysql # not compatible
query I rowsort label-4654
SELECT - 49 * ( - 95 ) + + - COUNT ( * ) + 33 * - 92 AS col2
----
1618

query I rowsort
SELECT DISTINCT - ( + + ( - 43 ) ) + + 59 + - + 10 + - 54 * + 73 AS col1
----
-3850

query I rowsort
SELECT DISTINCT 9 * - + 96
----
-864

onlyif mysql # aggregate syntax: 
query I rowsort label-4657
SELECT - 53 + - - CASE COUNT( * ) WHEN - 93 THEN NULL WHEN + - 72 THEN - + 63 ELSE 80 END AS col1
----
27

skipif mysql # not compatible
query I rowsort label-4657
SELECT - 53 + - - CASE COUNT ( * ) WHEN - 93 THEN NULL WHEN + - 72 THEN - + 63 ELSE 80 END AS col1
----
27

onlyif mysql # aggregate syntax: 
query II rowsort label-4658
SELECT DISTINCT - - COUNT( * ) * + 41 - - 98 * - 59, 59 + + MAX( DISTINCT - 69 ) AS col1
----
-5741
-10

skipif mysql # not compatible
query II rowsort label-4658
SELECT DISTINCT - - COUNT ( * ) * + 41 - - 98 * - 59, 59 + + MAX ( DISTINCT - 69 ) AS col1
----
-5741
-10

query I rowsort
SELECT + + 30 * + 86 AS col1
----
2580

onlyif mysql # aggregate syntax: 
query I rowsort label-4660
SELECT - + 24 * - NULLIF ( 83, COUNT( * ) )
----
1992

skipif mysql # not compatible
query I rowsort label-4660
SELECT - + 24 * - NULLIF ( 83, COUNT ( * ) )
----
1992

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4661
SELECT - 80 + - CASE - CASE + COUNT( * ) WHEN - 92 THEN 44 ELSE - 5 + + 36 END WHEN + 95 THEN + + 70 + - 38 WHEN 17 THEN 50 END * + ( 86 ) AS col0, - CAST( NULL AS SIGNED )
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-4661
SELECT - 80 + - CASE - CASE + COUNT ( * ) WHEN - 92 THEN 44 ELSE - 5 + + 36 END WHEN + 95 THEN + + 70 + - 38 WHEN 17 THEN 50 END * + ( 86 ) AS col0, - CAST ( NULL AS INTEGER )
----
NULL
NULL

query I rowsort
SELECT - - 55 * - 67
----
-3685

query I rowsort
SELECT - - NULLIF ( + 12, 96 * 56 - + 83 ) * + + 36
----
432

query I rowsort
SELECT DISTINCT ( + 32 ) * - - 1 * + 47 AS col0
----
1504

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: DIV for integer division: 
query II rowsort label-4665
SELECT - + 28 * - COUNT( * ) AS col0, - CASE - + 18 WHEN CAST( + CAST( - 26 AS SIGNED ) AS DECIMAL ) + - COUNT( * ) - + MAX( - + 17 ) + ( - - COUNT( * ) ) + - SUM( DISTINCT - 93 ) DIV - 61 * - - 94 * ( + 0 ) * CAST( NULL AS DECIMAL ) * + 4 + + + 30 DIV + - 73 * 46 THEN + SUM( + 67 ) ELSE ( - + 84 ) DIV + 22 + ( + - 42 ) * - COUNT( * ) END AS col1
----
28
-39

skipif mysql # not compatible
query II rowsort label-4665
SELECT - + 28 * - COUNT ( * ) AS col0, - CASE - + 18 WHEN CAST ( + CAST ( - 26 AS INTEGER ) AS REAL ) + - COUNT ( * ) - + MAX ( - + 17 ) + ( - - COUNT ( * ) ) + - SUM ( DISTINCT - 93 ) / - 61 * - - 94 * ( + 0 ) * CAST ( NULL AS REAL ) * + 4 + + + 30 / + - 73 * 46 THEN + SUM ( + 67 ) ELSE ( - + 84 ) / + 22 + ( + - 42 ) * - COUNT ( * ) END AS col1
----
28
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-4666
SELECT - COALESCE ( + 63, + COUNT( * ) ) * + - 72
----
4536

skipif mysql # not compatible
query I rowsort label-4666
SELECT - COALESCE ( + 63, + COUNT ( * ) ) * + - 72
----
4536

onlyif mysql # aggregate syntax: 
query I rowsort label-4667
SELECT DISTINCT + COUNT( * ) * - 72
----
-72

skipif mysql # not compatible
query I rowsort label-4667
SELECT DISTINCT + COUNT ( * ) * - 72
----
-72

query I rowsort
SELECT ( - 97 )
----
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-4669
SELECT + ( - MIN( ( - 50 ) ) ) * + 28 + - - 72 AS col1
----
1472

skipif mysql # not compatible
query I rowsort label-4669
SELECT + ( - MIN ( ( - 50 ) ) ) * + 28 + - - 72 AS col1
----
1472

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4670
SELECT - SUM( DISTINCT - + 62 ) - 2 * + 30 DIV 83 + 0 * + + 32
----
62

skipif mysql # not compatible
query I rowsort label-4670
SELECT - SUM ( DISTINCT - + 62 ) - 2 * + 30 / 83 + 0 * + + 32
----
62

query I rowsort
SELECT DISTINCT - 32 * - - 9 + + 78 AS col1
----
-210

onlyif mysql # aggregate syntax: 
query II rowsort label-4672
SELECT + COUNT( * ) col0, - 33 AS col2
----
1
-33

skipif mysql # not compatible
query II rowsort label-4672
SELECT + COUNT ( * ) col0, - 33 AS col2
----
1
-33

query I rowsort
SELECT ALL + 82 * - 51 * + + 65 / 71 / + + 39 + - 36 + + 60 * - - 85 + + 77 + - + NULLIF ( + - NULLIF ( + 78, + ( 26 ) ), + 95 - - - 21 - + + 19 * - - 25 ) * + 78 * - CASE - - 24 WHEN - - 3 THEN - + 66 WHEN 11 - 9 THEN 60 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4674
SELECT ALL COUNT( * ) * 3 + + COUNT( * ) AS col1
----
4

skipif mysql # not compatible
query I rowsort label-4674
SELECT ALL COUNT ( * ) * 3 + + COUNT ( * ) AS col1
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-4675
SELECT ALL 16 * - + 34 + + + SUM( ALL - 75 ) AS col2
----
-619

skipif mysql # not compatible
query I rowsort label-4675
SELECT ALL 16 * - + 34 + + + SUM ( ALL - 75 ) AS col2
----
-619

query I rowsort
SELECT + 3 - - 64 AS col0
----
67

query I rowsort
SELECT ALL 85 * - 22 * - + 4 + + 72
----
7552

query I rowsort
SELECT COALESCE ( + + 33, - ( - 80 ) )
----
33

query I rowsort
SELECT + ( 89 )
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-4680
SELECT - COALESCE ( - 30, - COUNT( * ) * + - 50 - 5, 22 ) * 23 * - 35
----
-24150

skipif mysql # not compatible
query I rowsort label-4680
SELECT - COALESCE ( - 30, - COUNT ( * ) * + - 50 - 5, 22 ) * 23 * - 35
----
-24150

query I rowsort
SELECT + 67 * 20 AS col1
----
1340

onlyif mysql # DIV for integer division: 
query I rowsort label-4682
SELECT ALL - 64 DIV + 74 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4682
SELECT ALL - 64 / + 74 AS col0
----
0

query I rowsort
SELECT DISTINCT + ( + 92 )
----
92

onlyif mysql # aggregate syntax: 
query II rowsort label-4684
SELECT DISTINCT COUNT( * ) * - 7 * 10 + COUNT( * ) * - 57 AS col0, + 90
----
-127
90

skipif mysql # not compatible
query II rowsort label-4684
SELECT DISTINCT COUNT ( * ) * - 7 * 10 + COUNT ( * ) * - 57 AS col0, + 90
----
-127
90

onlyif mysql # aggregate syntax: 
query I rowsort label-4685
SELECT ALL - - 68 * - MIN( - 97 ) + 83 * NULLIF ( - 66, COUNT( * ) ) - + 32
----
1086

skipif mysql # not compatible
query I rowsort label-4685
SELECT ALL - - 68 * - MIN ( - 97 ) + 83 * NULLIF ( - 66, COUNT ( * ) ) - + 32
----
1086

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4686
SELECT DISTINCT - + 2 * - CAST( NULL AS DECIMAL ) - + 80 * + AVG ( + 53 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4686
SELECT DISTINCT - + 2 * - CAST ( NULL AS REAL ) - + 80 * + AVG ( + 53 ) AS col2
----
NULL

query I rowsort
SELECT ALL 98 * - 2 col0
----
-196

onlyif mysql # aggregate syntax: 
query I rowsort label-4688
SELECT - + COALESCE ( - - 41, + COUNT( * ), 21 )
----
-41

skipif mysql # not compatible
query I rowsort label-4688
SELECT - + COALESCE ( - - 41, + COUNT ( * ), 21 )
----
-41

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4689
SELECT + CAST( NULL AS SIGNED ) - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-4689
SELECT + CAST ( NULL AS INTEGER ) - COUNT ( * )
----
NULL

query I rowsort
SELECT DISTINCT 30 col2
----
30

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4691
SELECT ALL - - 50 * CAST( - 95 AS SIGNED ) DIV - - COUNT( * ) + - MAX( DISTINCT + 69 ) + - COUNT( * )
----
-4820

skipif mysql # not compatible
query I rowsort label-4691
SELECT ALL - - 50 * CAST ( - 95 AS INTEGER ) / - - COUNT ( * ) + - MAX ( DISTINCT + 69 ) + - COUNT ( * )
----
-4820

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4692
SELECT + - 18 DIV + 21 * SUM( ALL - - 82 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4692
SELECT + - 18 / + 21 * SUM ( ALL - - 82 ) AS col2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4693
SELECT DISTINCT - 12 DIV 78
----
0

skipif mysql # not compatible
query I rowsort label-4693
SELECT DISTINCT - 12 / 78
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-4694
SELECT - + COUNT( * ) - MAX( - 34 ), 22 AS col0
----
33
22

skipif mysql # not compatible
query II rowsort label-4694
SELECT - + COUNT ( * ) - MAX ( - 34 ), 22 AS col0
----
33
22

query I rowsort
SELECT + - ( CASE 7 WHEN - - 5 * - 21 * - 73 * - 62 + + 18 THEN - 37 WHEN - 74 * + 54 THEN NULL ELSE NULL END ) + - ( - 5 ) - - - 85
----
NULL

query I rowsort
SELECT - - 68 - 53
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-4697
SELECT + + 99 + MIN( DISTINCT - 85 ) - - 69
----
83

skipif mysql # not compatible
query I rowsort label-4697
SELECT + + 99 + MIN ( DISTINCT - 85 ) - - 69
----
83

query I rowsort
SELECT - 90 * - 91 - + 93
----
8097

query I rowsort
SELECT ALL ( + - 74 )
----
-74

query I rowsort
SELECT 58 * + + 10 * 62
----
35960

query I rowsort
SELECT 3 * - 1 * + 7 * - 38 * - 13 + 84 AS col0
----
-10290

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4702
SELECT DISTINCT - COALESCE ( - 37, - 62, CAST( NULLIF ( 4, + 10 - 35 + - - 99 ) AS SIGNED ) * - 0, 13, - ( - 85 ) * + 72 + 89 + - 34 + + + 2 )
----
37

skipif mysql # not compatible
query I rowsort label-4702
SELECT DISTINCT - COALESCE ( - 37, - 62, CAST ( NULLIF ( 4, + 10 - 35 + - - 99 ) AS INTEGER ) * - 0, 13, - ( - 85 ) * + 72 + 89 + - 34 + + + 2 )
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-4703
SELECT ALL - 58 + + SUM( ALL - 84 ) * - ( + 26 )
----
2126

skipif mysql # not compatible
query I rowsort label-4703
SELECT ALL - 58 + + SUM ( ALL - 84 ) * - ( + 26 )
----
2126

query I rowsort
SELECT ALL - ( + - 47 )
----
47

query I rowsort
SELECT 48 * 38
----
1824

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4706
SELECT + 62 DIV + 82 * COUNT( * ) * - ( - 53 ) + + COUNT( * ) col2
----
1

skipif mysql # not compatible
query I rowsort label-4706
SELECT + 62 / + 82 * COUNT ( * ) * - ( - 53 ) + + COUNT ( * ) col2
----
1

query I rowsort
SELECT ALL - 68 + + - 66
----
-134

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4708
SELECT DISTINCT - 50 * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4708
SELECT DISTINCT - 50 * - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT + NULLIF ( 65, - 6 ) * + + 74 + + + 29
----
4839

onlyif mysql # aggregate syntax: 
query I rowsort label-4710
SELECT ALL + 23 + - COUNT( * )
----
22

skipif mysql # not compatible
query I rowsort label-4710
SELECT ALL + 23 + - COUNT ( * )
----
22

query I rowsort
SELECT ALL - 68 * + 50
----
-3400

query I rowsort
SELECT ALL - ( 81 ) AS col2
----
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-4713
SELECT COUNT( * ) - + + ( - - 60 ) AS col1
----
-59

skipif mysql # not compatible
query I rowsort label-4713
SELECT COUNT ( * ) - + + ( - - 60 ) AS col1
----
-59

query I rowsort
SELECT ALL - ( 97 )
----
-97

onlyif mysql # DIV for integer division: 
query II rowsort label-4715
SELECT 79 * - 1 + - 62 DIV 47 AS col1, 97
----
-80
97

skipif mysql # not compatible
query II rowsort label-4715
SELECT 79 * - 1 + - 62 / 47 AS col1, 97
----
-80
97

onlyif mysql # aggregate syntax: 
query II rowsort label-4716
SELECT + 22 + + SUM( 52 ) * + 93, 93 / + - COUNT( * ) + - CASE - + 38 WHEN - 92 * - 66 + + + 78 THEN - 38 ELSE NULL END + - 61 * + MAX( DISTINCT - 44 ) + + 32 / COUNT( * ) - + 84 col2
----
4858
NULL

skipif mysql # not compatible
query II rowsort label-4716
SELECT + 22 + + SUM ( 52 ) * + 93, 93 / + - COUNT ( * ) + - CASE - + 38 WHEN - 92 * - 66 + + + 78 THEN - 38 ELSE NULL END + - 61 * + MAX ( DISTINCT - 44 ) + + 32 / COUNT ( * ) - + 84 col2
----
4858
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4717
SELECT ALL - 68 - + 61 * + MIN( + 55 ) AS col1
----
-3423

skipif mysql # not compatible
query I rowsort label-4717
SELECT ALL - 68 - + 61 * + MIN ( + 55 ) AS col1
----
-3423

onlyif mysql # aggregate syntax: 
query I rowsort label-4718
SELECT - COUNT( ALL - - 85 )
----
-1

skipif mysql # not compatible
query I rowsort label-4718
SELECT - COUNT ( ALL - - 85 )
----
-1

query I rowsort
SELECT ALL - - COALESCE ( - 83, - + 74 ) AS col1
----
-83

query I rowsort
SELECT 69 * - 97
----
-6693

onlyif mysql # aggregate syntax: 
query I rowsort label-4721
SELECT - 88 + - COUNT( * ) AS col1
----
-89

skipif mysql # not compatible
query I rowsort label-4721
SELECT - 88 + - COUNT ( * ) AS col1
----
-89

onlyif mysql # DIV for integer division: 
query II rowsort label-4722
SELECT ALL - 59, 30 DIV + - 56 col1
----
-59
0

skipif mysql # not compatible
query II rowsort label-4722
SELECT ALL - 59, 30 / + - 56 col1
----
-59
0

query II rowsort
SELECT ALL + 46 AS col1, 70 * + 36 * + - NULLIF ( - - 68, + - 24 ) AS col2
----
46
-171360

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4724
SELECT DISTINCT + CAST( NULL AS SIGNED ) AS col2, + 85 AS col0
----
NULL
85

skipif mysql # not compatible
query II rowsort label-4724
SELECT DISTINCT + CAST ( NULL AS INTEGER ) AS col2, + 85 AS col0
----
NULL
85

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4725
SELECT + 38 + + 37 * + 12 * + 48 DIV + - COUNT( * ) DIV + COUNT( * ) + - 32 AS col2, + CAST( 61 AS SIGNED ) * - 1
----
-21306
-61

skipif mysql # not compatible
query II rowsort label-4725
SELECT + 38 + + 37 * + 12 * + 48 / + - COUNT ( * ) / + COUNT ( * ) + - 32 AS col2, + CAST ( 61 AS INTEGER ) * - 1
----
-21306
-61

query I rowsort
SELECT ALL CASE + 27 WHEN + - 72 THEN NULL WHEN 23 THEN NULL ELSE + 35 END
----
35

query I rowsort
SELECT DISTINCT 16 * + 47 AS col2
----
752

query I rowsort
SELECT - 98 col2
----
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-4729
SELECT + 95 * - NULLIF ( - 63, MAX( ALL + + 56 ) ) AS col2
----
5985

skipif mysql # not compatible
query I rowsort label-4729
SELECT + 95 * - NULLIF ( - 63, MAX ( ALL + + 56 ) ) AS col2
----
5985

query I rowsort
SELECT - - ( - ( 44 ) )
----
-44

query I rowsort
SELECT ALL 52 + 29 + + 56 AS col2
----
137

query I rowsort
SELECT 52 * - - 80
----
4160

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4733
SELECT ALL + 99 + + CAST( - - 94 AS SIGNED ) + MAX( ( 9 ) ) + + COALESCE ( + 64, 81 * - 16 ) + - 52 AS col1
----
214

skipif mysql # not compatible
query I rowsort label-4733
SELECT ALL + 99 + + CAST ( - - 94 AS INTEGER ) + MAX ( ( 9 ) ) + + COALESCE ( + 64, 81 * - 16 ) + - 52 AS col1
----
214

query I rowsort
SELECT ALL 16 + - 31 * - 96 * - 4 * - 68 * + + 29
----
23474704

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4735
SELECT MAX( DISTINCT + + 85 ) * 62 + + 62 DIV COUNT( * )
----
5332

skipif mysql # not compatible
query I rowsort label-4735
SELECT MAX ( DISTINCT + + 85 ) * 62 + + 62 / COUNT ( * )
----
5332

query I rowsort
SELECT + 95 col2
----
95

onlyif mysql # aggregate syntax: 
query I rowsort label-4737
SELECT + 27 * + + ( - COUNT( * ) ) + - MAX( 43 ) - 84 AS col0
----
-154

skipif mysql # not compatible
query I rowsort label-4737
SELECT + 27 * + + ( - COUNT ( * ) ) + - MAX ( 43 ) - 84 AS col0
----
-154

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4738
SELECT 96 DIV + COUNT( ALL + 41 )
----
96

skipif mysql # not compatible
query I rowsort label-4738
SELECT 96 / + COUNT ( ALL + 41 )
----
96

onlyif mysql # aggregate syntax: 
query II rowsort label-4739
SELECT ALL 85 + + + 32, 91 / CASE + 12 WHEN + 69 * - 79 * COUNT( * ) * + + 13 + + ( + 16 ) / + 89 + - 51 THEN - + 90 END AS col1
----
117
NULL

skipif mysql # not compatible
query II rowsort label-4739
SELECT ALL 85 + + + 32, 91 / CASE + 12 WHEN + 69 * - 79 * COUNT ( * ) * + + 13 + + ( + 16 ) / + 89 + - 51 THEN - + 90 END AS col1
----
117
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4740
SELECT DISTINCT 15 - 37 * COUNT( * ) AS col1
----
-22

skipif mysql # not compatible
query I rowsort label-4740
SELECT DISTINCT 15 - 37 * COUNT ( * ) AS col1
----
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-4741
SELECT DISTINCT - MAX( - - 42 ) AS col2
----
-42

skipif mysql # not compatible
query I rowsort label-4741
SELECT DISTINCT - MAX ( - - 42 ) AS col2
----
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-4742
SELECT + COUNT( * ) * 42 * - 36 - + + 74
----
-1586

skipif mysql # not compatible
query I rowsort label-4742
SELECT + COUNT ( * ) * 42 * - 36 - + + 74
----
-1586

query I rowsort
SELECT DISTINCT 8 * - + 35 col2
----
-280

onlyif mysql # aggregate syntax: 
query I rowsort label-4744
SELECT + 70 * COUNT( * ) + - 43
----
27

skipif mysql # not compatible
query I rowsort label-4744
SELECT + 70 * COUNT ( * ) + - 43
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-4745
SELECT DISTINCT - CASE 19 WHEN - 19 - + 3 + + COUNT( * ) THEN + 46 ELSE + - 54 - - 77 END
----
-23

skipif mysql # not compatible
query I rowsort label-4745
SELECT DISTINCT - CASE 19 WHEN - 19 - + 3 + + COUNT ( * ) THEN + 46 ELSE + - 54 - - 77 END
----
-23

query I rowsort
SELECT 48 * - ( + + 90 )
----
-4320

query I rowsort
SELECT + - COALESCE ( - 17, + 18 + 26 )
----
17

query I rowsort
SELECT DISTINCT - + 42
----
-42

onlyif mysql # aggregate syntax: 
query II rowsort label-4749
SELECT ALL - 73 * - + 57 * + 55 col2, + MAX( DISTINCT - + COALESCE ( 1, - - 47 * - 28 + + 41 ) ) AS col0
----
228855
-1

skipif mysql # not compatible
query II rowsort label-4749
SELECT ALL - 73 * - + 57 * + 55 col2, + MAX ( DISTINCT - + COALESCE ( 1, - - 47 * - 28 + + 41 ) ) AS col0
----
228855
-1

query I rowsort
SELECT ALL - - 60
----
60

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4751
SELECT DISTINCT - - COUNT( * ) * - 98 DIV 71, COUNT( * ) AS col2
----
-1
1

skipif mysql # not compatible
query II rowsort label-4751
SELECT DISTINCT - - COUNT ( * ) * - 98 / 71, COUNT ( * ) AS col2
----
-1
1

query I rowsort
SELECT ALL - + 43
----
-43

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4753
SELECT ALL + - 66 * + ( + 85 ) + - 14 DIV + COUNT( 95 )
----
-5624

skipif mysql # not compatible
query I rowsort label-4753
SELECT ALL + - 66 * + ( + 85 ) + - 14 / + COUNT ( 95 )
----
-5624

query I rowsort
SELECT DISTINCT - COALESCE ( + - 38, + 24 ) col1
----
38

query II rowsort
SELECT 97 + - ( + 70 ) AS col1, - 11 * - 6
----
27
66

query I rowsort
SELECT ALL + ( + 95 )
----
95

query I rowsort
SELECT 86 * ( 63 ) + - 71 AS col2
----
5347

query I rowsort
SELECT NULLIF ( + 58, - - 92 ) AS col1
----
58

query II rowsort
SELECT + 2 - + 39 + - 90 * - 70 * 30 col0, + 83 AS col2
----
188963
83

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4760
SELECT ALL - CASE - - 58 WHEN - 2 + 1 THEN - COALESCE ( - + 59, + 41, - 56 / + 42 + - CASE + 13 WHEN CASE ( + 63 ) WHEN + 76 * - 0 + 2 + + CAST( NULL AS DECIMAL ) * - 5 THEN 16 * 69 ELSE NULL END THEN NULL WHEN ( + + COUNT( * ) ) THEN NULL WHEN COUNT( * ) THEN 81 END ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-4760
SELECT ALL - CASE - - 58 WHEN - 2 + 1 THEN - COALESCE ( - + 59, + 41, - 56 / + 42 + - CASE + 13 WHEN CASE ( + 63 ) WHEN + 76 * - 0 + 2 + + CAST ( NULL AS REAL ) * - 5 THEN 16 * 69 ELSE NULL END THEN NULL WHEN ( + + COUNT ( * ) ) THEN NULL WHEN COUNT ( * ) THEN 81 END ) ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4761
SELECT - - 91 + COUNT( * )
----
92

skipif mysql # not compatible
query I rowsort label-4761
SELECT - - 91 + COUNT ( * )
----
92

onlyif mysql # aggregate syntax: 
query I rowsort label-4762
SELECT ALL + 85 + - COUNT( * ) * SUM( ALL - 49 )
----
134

skipif mysql # not compatible
query I rowsort label-4762
SELECT ALL + 85 + - COUNT ( * ) * SUM ( ALL - 49 )
----
134

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4763
SELECT DISTINCT + - ( + COALESCE ( + 89, - 34 * 70 ) ) DIV + + COUNT( * ) AS col0
----
-89

skipif mysql # not compatible
query I rowsort label-4763
SELECT DISTINCT + - ( + COALESCE ( + 89, - 34 * 70 ) ) / + + COUNT ( * ) AS col0
----
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-4764
SELECT ALL 46 + - + 90 * + 55 * + COUNT( * ) AS col2
----
-4904

skipif mysql # not compatible
query I rowsort label-4764
SELECT ALL 46 + - + 90 * + 55 * + COUNT ( * ) AS col2
----
-4904

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4765
SELECT 56, 78 * + ( - 14 ) + - - CASE - 96 WHEN - + 57 * 58 + - + CAST( NULL AS SIGNED ) THEN 2 END col0
----
56
NULL

skipif mysql # not compatible
query II rowsort label-4765
SELECT 56, 78 * + ( - 14 ) + - - CASE - 96 WHEN - + 57 * 58 + - + CAST ( NULL AS INTEGER ) THEN 2 END col0
----
56
NULL

query I rowsort
SELECT ALL + 40 + 19 AS col1
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-4767
SELECT - COUNT( * ) + 25 + + + 66
----
90

skipif mysql # not compatible
query I rowsort label-4767
SELECT - COUNT ( * ) + 25 + + + 66
----
90

onlyif mysql # aggregate syntax: 
query II rowsort label-4768
SELECT - 87, 8 - - COUNT( * ) col1
----
-87
9

skipif mysql # not compatible
query II rowsort label-4768
SELECT - 87, 8 - - COUNT ( * ) col1
----
-87
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4769
SELECT - 98 + + + CAST( - 60 AS SIGNED ) + - - 73 AS col1
----
-85

skipif mysql # not compatible
query I rowsort label-4769
SELECT - 98 + + + CAST ( - 60 AS INTEGER ) + - - 73 AS col1
----
-85

query I rowsort
SELECT ALL 10 + + 73
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-4771
SELECT - COALESCE ( - + COUNT( * ), + 84 )
----
1

skipif mysql # not compatible
query I rowsort label-4771
SELECT - COALESCE ( - + COUNT ( * ), + 84 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4772
SELECT - SUM( DISTINCT - - 97 )
----
-97

skipif mysql # not compatible
query I rowsort label-4772
SELECT - SUM ( DISTINCT - - 97 )
----
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-4773
SELECT - NULLIF ( - + 38, - MAX( + ( - - COALESCE ( - 93, - 41 + 4, 88 ) ) ) ) AS col0
----
38

skipif mysql # not compatible
query I rowsort label-4773
SELECT - NULLIF ( - + 38, - MAX ( + ( - - COALESCE ( - 93, - 41 + 4, 88 ) ) ) ) AS col0
----
38

query II rowsort
SELECT DISTINCT - 23 - - 65 + + - 50 AS col0, 82 col1
----
-8
82

onlyif mysql # aggregate syntax: 
query I rowsort label-4775
SELECT - COUNT( DISTINCT - 84 )
----
-1

skipif mysql # not compatible
query I rowsort label-4775
SELECT - COUNT ( DISTINCT - 84 )
----
-1

query I rowsort
SELECT + 44 + + - 6
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-4777
SELECT ALL 72 * - + 67 - 5 + + - ( - - 9 ) * + COALESCE ( - + 46, - 40 * - COUNT( * ) * 74, 76 + - - 92 + - 26 ) AS col2
----
-4415

skipif mysql # not compatible
query I rowsort label-4777
SELECT ALL 72 * - + 67 - 5 + + - ( - - 9 ) * + COALESCE ( - + 46, - 40 * - COUNT ( * ) * 74, 76 + - - 92 + - 26 ) AS col2
----
-4415

query I rowsort
SELECT ( + 91 )
----
91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4779
SELECT + 66 * + 84 + + 71 + 22 + + COUNT( * ) * + AVG ( + 44 ) / - CAST( - - 95 AS SIGNED ) / 21 + 18 - 32 + - CAST( NULL AS SIGNED ) * ( + - 77 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4779
SELECT + 66 * + 84 + + 71 + 22 + + COUNT ( * ) * + AVG ( + 44 ) / - CAST ( - - 95 AS INTEGER ) / 21 + 18 - 32 + - CAST ( NULL AS INTEGER ) * ( + - 77 )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4780
SELECT ALL - 35 * + - 16 * + CAST( NULL AS SIGNED ) - + + 78 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4780
SELECT ALL - 35 * + - 16 * + CAST ( NULL AS INTEGER ) - + + 78 col2
----
NULL

query I rowsort
SELECT + 38 * - 24 col1
----
-912

query II rowsort
SELECT ALL + 41, + 16 AS col0
----
41
16

onlyif mysql # aggregate syntax: 
query I rowsort label-4783
SELECT CASE - MIN( DISTINCT - + 87 ) WHEN + 15 * + - 74 + AVG ( ALL - - 47 ) THEN NULL ELSE - 40 * - 75 + NULLIF ( + 65, 34 ) + 45 * 2 - + - 15 END AS col1
----
3170

skipif mysql # not compatible
query I rowsort label-4783
SELECT CASE - MIN ( DISTINCT - + 87 ) WHEN + 15 * + - 74 + AVG ( ALL - - 47 ) THEN NULL ELSE - 40 * - 75 + NULLIF ( + 65, 34 ) + 45 * 2 - + - 15 END AS col1
----
3170

query I rowsort
SELECT + NULLIF ( - - 77, 54 + + + 64 ) AS col0
----
77

onlyif mysql # DIV for integer division: 
query I rowsort label-4785
SELECT 33 DIV - 21 + - + 83 + 27 - 54 AS col2
----
-111

skipif mysql # not compatible
query I rowsort label-4785
SELECT 33 / - 21 + - + 83 + 27 - 54 AS col2
----
-111

query I rowsort
SELECT + ( 52 )
----
52

onlyif mysql # DIV for integer division: 
query II rowsort label-4787
SELECT DISTINCT + 53, - 50 DIV + 30 AS col2
----
53
-1

skipif mysql # not compatible
query II rowsort label-4787
SELECT DISTINCT + 53, - 50 / + 30 AS col2
----
53
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4788
SELECT + ( - COUNT( * ) ) * + ( + CASE - + 40 WHEN 17 / + - 2 * AVG ( 89 ) THEN NULL ELSE - 82 END )
----
82

skipif mysql # not compatible
query I rowsort label-4788
SELECT + ( - COUNT ( * ) ) * + ( + CASE - + 40 WHEN 17 / + - 2 * AVG ( 89 ) THEN NULL ELSE - 82 END )
----
82

query I rowsort
SELECT - 8 * - 34
----
272

query I rowsort
SELECT - 66 + + - 87
----
-153

query I rowsort
SELECT + 48 * - + 69 + + 13 * + 57
----
-2571

query I rowsort
SELECT DISTINCT + + 26 col2
----
26

query II rowsort
SELECT ALL + 8 * - ( - + 49 ), - 28 * + + 69 AS col2
----
392
-1932

onlyif mysql # aggregate syntax: 
query I rowsort label-4794
SELECT - ( + 80 ) * - MIN( - + ( - 68 ) ) + - 12 AS col2
----
5428

skipif mysql # not compatible
query I rowsort label-4794
SELECT - ( + 80 ) * - MIN ( - + ( - 68 ) ) + - 12 AS col2
----
5428

query II rowsort
SELECT DISTINCT + - 49 col1, - 3
----
-49
-3

query I rowsort
SELECT ALL + - 98 * 72 + - + COALESCE ( - 93, - 85 + - 72, - COALESCE ( - 59, + 30 ) ) + - 11 + + 61 + 73 + + - 94 * + + 87 AS col1
----
-15018

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4797
SELECT ALL + CAST( - 57 AS SIGNED )
----
-57

skipif mysql # not compatible
query I rowsort label-4797
SELECT ALL + CAST ( - 57 AS INTEGER )
----
-57

query I rowsort
SELECT DISTINCT + + 32 AS col1
----
32

onlyif mysql # aggregate syntax: 
query II rowsort label-4799
SELECT - 18 * + - COUNT( + 20 ) + + 52, 2 col2
----
70
2

skipif mysql # not compatible
query II rowsort label-4799
SELECT - 18 * + - COUNT ( + 20 ) + + 52, 2 col2
----
70
2

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-4800
SELECT + CASE + ( 12 ) WHEN + 92 THEN + 69 WHEN - COUNT( * ) + 95 * MIN( ALL 63 ) THEN NULL END * + 6 * - + MAX( ALL + 49 ) + + 98 * COALESCE ( + - 49, + - MAX( ALL - 26 ) ) + - 60 + - COALESCE ( 24, + 3 ) AS col0, 12 + + - 19 - + NULLIF ( - 79, CAST( NULL AS DECIMAL ) / SUM( ALL 70 ) ) + - ( - 48 ) + - COALESCE ( + - 78, + 56 * + MIN( ALL 68 ) ) - - + COUNT( * ) / + + 32 * 36 * 93 / 27 / - 91 / - 19 + MIN( DISTINCT 27 ) * + 68 * + 24 * - CAST( NULL AS DECIMAL ) + - - 32 / 50
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-4800
SELECT + CASE + ( 12 ) WHEN + 92 THEN + 69 WHEN - COUNT ( * ) + 95 * MIN ( ALL 63 ) THEN NULL END * + 6 * - + MAX ( ALL + 49 ) + + 98 * COALESCE ( + - 49, + - MAX ( ALL - 26 ) ) + - 60 + - COALESCE ( 24, + 3 ) AS col0, 12 + + - 19 - + NULLIF ( - 79, CAST ( NULL AS REAL ) / SUM ( ALL 70 ) ) + - ( - 48 ) + - COALESCE ( + - 78, + 56 * + MIN ( ALL 68 ) ) - - + COUNT ( * ) / + + 32 * 36 * 93 / 27 / - 91 / - 19 + MIN ( DISTINCT 27 ) * + 68 * + 24 * - CAST ( NULL AS REAL ) + - - 32 / 50
----
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4801
SELECT + 22 * - ( - - 54 ) * 76 - + COUNT( * ) * + - COUNT( * ) + - + COUNT( * ) * + + ( - 8 ) * - MAX( DISTINCT + ( + 21 ) ) * - 56
----
-80879

skipif mysql # not compatible
query I rowsort label-4801
SELECT + 22 * - ( - - 54 ) * 76 - + COUNT ( * ) * + - COUNT ( * ) + - + COUNT ( * ) * + + ( - 8 ) * - MAX ( DISTINCT + ( + 21 ) ) * - 56
----
-80879

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4802
SELECT ALL - + 68 * - + CAST( NULL AS SIGNED ) * + - 44 * - 64 + - + COUNT( * ) + + 93, - 29 col1
----
NULL
-29

skipif mysql # not compatible
query II rowsort label-4802
SELECT ALL - + 68 * - + CAST ( NULL AS INTEGER ) * + - 44 * - 64 + - + COUNT ( * ) + + 93, - 29 col1
----
NULL
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-4803
SELECT - - SUM( + - 15 )
----
-15

skipif mysql # not compatible
query I rowsort label-4803
SELECT - - SUM ( + - 15 )
----
-15

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4804
SELECT - - CAST( - + 65 AS SIGNED ) + 25
----
-40

skipif mysql # not compatible
query I rowsort label-4804
SELECT - - CAST ( - + 65 AS INTEGER ) + 25
----
-40

query II rowsort
SELECT - 11 AS col1, - 17 + + 63
----
-11
46

query I rowsort
SELECT ALL + 40 + - 33 AS col0
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-4807
SELECT DISTINCT - SUM( + + 34 ) AS col2
----
-34

skipif mysql # not compatible
query I rowsort label-4807
SELECT DISTINCT - SUM ( + + 34 ) AS col2
----
-34

query I rowsort
SELECT ALL NULLIF ( 11, + 65 )
----
11

query I rowsort
SELECT ALL + 36 - 76 AS col2
----
-40

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4810
SELECT DISTINCT ( + - CAST( + - 78 AS SIGNED ) )
----
78

skipif mysql # not compatible
query I rowsort label-4810
SELECT DISTINCT ( + - CAST ( + - 78 AS INTEGER ) )
----
78

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4811
SELECT - NULLIF ( + - CAST( NULL AS SIGNED ), + - 41 + - - NULLIF ( 38, + 8 / 87 * + - 28 ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4811
SELECT - NULLIF ( + - CAST ( NULL AS INTEGER ), + - 41 + - - NULLIF ( 38, + 8 / 87 * + - 28 ) ) AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4812
SELECT ALL + 9 DIV + 76 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4812
SELECT ALL + 9 / + 76 AS col2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4813
SELECT DISTINCT - 18 DIV - - 86
----
0

skipif mysql # not compatible
query I rowsort label-4813
SELECT DISTINCT - 18 / - - 86
----
0

query I rowsort
SELECT DISTINCT ( - + 13 ) col1
----
-13

onlyif mysql # DIV for integer division: 
query II rowsort label-4815
SELECT ALL - 9 DIV + 6 AS col2, - 40 * - 27
----
-1
1080

skipif mysql # not compatible
query II rowsort label-4815
SELECT ALL - 9 / + 6 AS col2, - 40 * - 27
----
-1
1080

onlyif mysql # aggregate syntax: 
query I rowsort label-4816
SELECT - NULLIF ( + + 25, - + MAX( DISTINCT - 87 ) )
----
-25

skipif mysql # not compatible
query I rowsort label-4816
SELECT - NULLIF ( + + 25, - + MAX ( DISTINCT - 87 ) )
----
-25

query I rowsort
SELECT + 14 * - - 1 * - 53
----
-742

query I rowsort
SELECT + ( + 94 ) AS col2
----
94

query II rowsort
SELECT + ( - - 50 ) col2, - 34
----
50
-34

onlyif mysql # aggregate syntax: 
query II rowsort label-4820
SELECT DISTINCT + 29 * - 3 AS col2, - 51 * + MIN( + + 13 ) * - COUNT( * ) AS col1
----
-87
663

skipif mysql # not compatible
query II rowsort label-4820
SELECT DISTINCT + 29 * - 3 AS col2, - 51 * + MIN ( + + 13 ) * - COUNT ( * ) AS col1
----
-87
663

query I rowsort
SELECT ALL + + 15
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-4822
SELECT - COUNT( * ) * + 80 + + 61 * - COUNT( * ) - + - 22
----
-119

skipif mysql # not compatible
query I rowsort label-4822
SELECT - COUNT ( * ) * + 80 + + 61 * - COUNT ( * ) - + - 22
----
-119

query I rowsort
SELECT ALL + - 98 AS col1
----
-98

query I rowsort
SELECT + 68 * + - 84 AS col0
----
-5712

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4825
SELECT ALL + MAX( 25 ) / - + 54 + CAST( NULL AS SIGNED ) AS col1, 87 + 86 AS col2
----
NULL
173

skipif mysql # not compatible
query II rowsort label-4825
SELECT ALL + MAX ( 25 ) / - + 54 + CAST ( NULL AS INTEGER ) AS col1, 87 + 86 AS col2
----
NULL
173

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4826
SELECT ALL - 52 / - - ( 46 ) + + 4 + + + COUNT( * ) + + + CAST( NULL AS DECIMAL ) * + ( - 4 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4826
SELECT ALL - 52 / - - ( 46 ) + + 4 + + + COUNT ( * ) + + + CAST ( NULL AS REAL ) * + ( - 4 ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4827
SELECT DISTINCT + 23 * - MIN( DISTINCT - + 6 ) + + COUNT( * ), + 26 AS col2
----
139
26

skipif mysql # not compatible
query II rowsort label-4827
SELECT DISTINCT + 23 * - MIN ( DISTINCT - + 6 ) + + COUNT ( * ), + 26 AS col2
----
139
26

query I rowsort
SELECT + - 85 + ( 89 ) * - 13
----
-1242

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4829
SELECT + MAX( - + CAST( NULL AS SIGNED ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4829
SELECT + MAX ( - + CAST ( NULL AS INTEGER ) ) AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4830
SELECT ALL - - CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) * + ( 32 ) * CAST( - AVG ( 62 ) AS SIGNED ) + - 35 + - 26 + 83 * NULLIF ( - 26, + 17 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4830
SELECT ALL - - CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) * + ( 32 ) * CAST ( - AVG ( 62 ) AS INTEGER ) + - 35 + - 26 + 83 * NULLIF ( - 26, + 17 )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4831
SELECT + MAX( ALL - 39 ) DIV - 60 + 15
----
15

skipif mysql # not compatible
query I rowsort label-4831
SELECT + MAX ( ALL - 39 ) / - 60 + 15
----
15

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4832
SELECT ALL + 72 * + 40 * + + CASE + - ( - - 39 ) WHEN + 56 THEN - - 73 ELSE - MAX( 91 ) * - - COUNT( * ) + + 65 * - 90 * - 63 + + CAST( NULL AS SIGNED ) / 95 * 80 / - 9 / - NULLIF ( + - 77, COUNT( * ) + 23 + + + 78 * - 53 ) END * + + 71 + + + 31 + + COALESCE ( 72, + 99 * 27 * 61, + + COUNT( ALL + COALESCE ( 64, 17 ) ) + - 27 ) + - 38 * 59 - - 48 + - 8 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4832
SELECT ALL + 72 * + 40 * + + CASE + - ( - - 39 ) WHEN + 56 THEN - - 73 ELSE - MAX ( 91 ) * - - COUNT ( * ) + + 65 * - 90 * - 63 + + CAST ( NULL AS INTEGER ) / 95 * 80 / - 9 / - NULLIF ( + - 77, COUNT ( * ) + 23 + + + 78 * - 53 ) END * + + 71 + + + 31 + + COALESCE ( 72, + 99 * 27 * 61, + + COUNT ( ALL + COALESCE ( 64, 17 ) ) + - 27 ) + - 38 * 59 - - 48 + - 8 AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4833
SELECT DISTINCT - 2 * - NULLIF ( - 92, - COUNT( * ) * - 99 * - - MIN( - 17 ) + - CASE SUM( - 49 ) WHEN - - 92 THEN NULL ELSE + 79 - + COUNT( * ) + CASE + 12 WHEN 76 THEN NULL WHEN + COUNT( + 28 ) * CASE + 62 WHEN + 52 + - 75 THEN + CAST( NULL AS SIGNED ) + - 48 WHEN - 97 THEN + COALESCE ( + 95, ( - 27 ) + + - 67 + + 14 + MIN( + - 52 ) + + 7 * - 38 * - + 74 * ( - COUNT( * ) ) ) * + 63 END + + 76 - + COUNT( - 28 ) + 11 + + 78 - + 39 * + 30 * - ( + 96 ) + + 12 + 72 THEN NULL ELSE - MIN( + ( + 68 ) ) END - + 14 END + COUNT( * ) ) * 58 AS col1
----
-10672

skipif mysql # not compatible
query I rowsort label-4833
SELECT DISTINCT - 2 * - NULLIF ( - 92, - COUNT ( * ) * - 99 * - - MIN ( - 17 ) + - CASE SUM ( - 49 ) WHEN - - 92 THEN NULL ELSE + 79 - + COUNT ( * ) + CASE + 12 WHEN 76 THEN NULL WHEN + COUNT ( + 28 ) * CASE + 62 WHEN + 52 + - 75 THEN + CAST ( NULL AS INTEGER ) + - 48 WHEN - 97 THEN + COALESCE ( + 95, ( - 27 ) + + - 67 + + 14 + MIN ( + - 52 ) + + 7 * - 38 * - + 74 * ( - COUNT ( * ) ) ) * + 63 END + + 76 - + COUNT ( - 28 ) + 11 + + 78 - + 39 * + 30 * - ( + 96 ) + + 12 + 72 THEN NULL ELSE - MIN ( + ( + 68 ) ) END - + 14 END + COUNT ( * ) ) * 58 AS col1
----
-10672

query I rowsort
SELECT ALL + 38 + + + 97 col0
----
135

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4835
SELECT ALL CAST( CASE - 14 WHEN + + COUNT( * ) * - 44 + + 22 THEN NULL WHEN COUNT( * ) THEN 57 * - 47 END AS SIGNED ) + + COUNT( * ) + + 63 * - 33 + - - 45 / + 22 + + ( 83 ) + - 56 * - 66 * - ( + 62 ) * NULLIF ( + + ( + 25 ), 16 + - 40 ) * + COUNT( * ) + - + 29 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4835
SELECT ALL CAST ( CASE - 14 WHEN + + COUNT ( * ) * - 44 + + 22 THEN NULL WHEN COUNT ( * ) THEN 57 * - 47 END AS INTEGER ) + + COUNT ( * ) + + 63 * - 33 + - - 45 / + 22 + + ( 83 ) + - 56 * - 66 * - ( + 62 ) * NULLIF ( + + ( + 25 ), 16 + - 40 ) * + COUNT ( * ) + - + 29 AS col2
----
NULL

query I rowsort
SELECT DISTINCT 72 + 35
----
107

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4837
SELECT 83 + + 31 * - NULLIF ( - 64, + 17 ) * - + COUNT( DISTINCT NULLIF ( 48, + ( - CAST( NULL AS SIGNED ) ) ) ) * + 45
----
-89197

skipif mysql # not compatible
query I rowsort label-4837
SELECT 83 + + 31 * - NULLIF ( - 64, + 17 ) * - + COUNT ( DISTINCT NULLIF ( 48, + ( - CAST ( NULL AS INTEGER ) ) ) ) * + 45
----
-89197

onlyif mysql # aggregate syntax: 
query II rowsort label-4838
SELECT COUNT( * ) * 13 AS col0, 69
----
13
69

skipif mysql # not compatible
query II rowsort label-4838
SELECT COUNT ( * ) * 13 AS col0, 69
----
13
69

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4839
SELECT + 64 + + - 37 AS col0, + 33 DIV - + COUNT( * ) AS col2
----
27
-33

skipif mysql # not compatible
query II rowsort label-4839
SELECT + 64 + + - 37 AS col0, + 33 / - + COUNT ( * ) AS col2
----
27
-33

query I rowsort
SELECT 3 * + 22
----
66

query I rowsort
SELECT ALL 74 - 20 - 55 AS col0
----
-1

query II rowsort
SELECT ALL 40, - 86 AS col1
----
40
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-4843
SELECT ALL + COUNT( * ) * 10
----
10

skipif mysql # not compatible
query I rowsort label-4843
SELECT ALL + COUNT ( * ) * 10
----
10

query I rowsort
SELECT 93 * + - 78 AS col0
----
-7254

query I rowsort
SELECT 5 * + - COALESCE ( 84, + 77 ) * + 50 + + ( + 91 ) + - - 89 + ( + + 55 ) - 91 * - 91
----
-12484

query I rowsort
SELECT 12 - - 42
----
54

query I rowsort
SELECT 83 * + 83
----
6889

query I rowsort
SELECT 86 + - - 96 AS col1
----
182

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4849
SELECT 21 - + - MAX( ALL ( - 96 ) ) DIV CAST( - 87 AS SIGNED )
----
22

skipif mysql # not compatible
query I rowsort label-4849
SELECT 21 - + - MAX ( ALL ( - 96 ) ) / CAST ( - 87 AS INTEGER )
----
22

query I rowsort
SELECT 31 + - - 49
----
80

query I rowsort
SELECT ALL 14 col2
----
14

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4852
SELECT 37 / - CAST( NULL AS SIGNED ) * - 33 / + + ( 13 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4852
SELECT 37 / - CAST ( NULL AS INTEGER ) * - 33 / + + ( 13 )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4853
SELECT ALL + COUNT( * ) + + 4 DIV + 20
----
1

skipif mysql # not compatible
query I rowsort label-4853
SELECT ALL + COUNT ( * ) + + 4 / + 20
----
1

query I rowsort
SELECT 11 + - 11 * - 28 AS col1
----
319

query I rowsort
SELECT 18 * + - NULLIF ( - 22, + 91 )
----
396

onlyif mysql # aggregate syntax: 
query I rowsort label-4856
SELECT DISTINCT + COUNT( * ) + 5 col0
----
6

skipif mysql # not compatible
query I rowsort label-4856
SELECT DISTINCT + COUNT ( * ) + 5 col0
----
6

onlyif mysql # DIV for integer division: 
query I rowsort label-4857
SELECT 27 DIV 66
----
0

skipif mysql # not compatible
query I rowsort label-4857
SELECT 27 / 66
----
0

query I rowsort
SELECT ALL + 15 + - 98 AS col0
----
-83

onlyif mysql # DIV for integer division: 
query I rowsort label-4859
SELECT - 82 DIV 94 + ( - 89 ) AS col1
----
-89

skipif mysql # not compatible
query I rowsort label-4859
SELECT - 82 / 94 + ( - 89 ) AS col1
----
-89

query I rowsort
SELECT 17 + + 19 AS col2
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-4861
SELECT DISTINCT - MIN( ( - 63 ) )
----
63

skipif mysql # not compatible
query I rowsort label-4861
SELECT DISTINCT - MIN ( ( - 63 ) )
----
63

query I rowsort
SELECT ALL + 71 + 47
----
118

query I rowsort
SELECT ALL 59 + + ( - 27 )
----
32

query I rowsort
SELECT - ( + 25 ) * + COALESCE ( + 41 * + 59, + 12 ) + CASE + 21 WHEN + 4 THEN - ( + NULLIF ( 26, + 94 - 97 ) ) + 73 END
----
NULL

query I rowsort
SELECT 46 * 39
----
1794

onlyif mysql # aggregate syntax: 
query I rowsort label-4866
SELECT MAX( + 95 ) + - 45 AS col2
----
50

skipif mysql # not compatible
query I rowsort label-4866
SELECT MAX ( + 95 ) + - 45 AS col2
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-4867
SELECT ALL - CASE - ( 2 ) WHEN + COUNT( * ) + - ( 18 ) THEN + 94 ELSE - 49 * - 93 END
----
-4557

skipif mysql # not compatible
query I rowsort label-4867
SELECT ALL - CASE - ( 2 ) WHEN + COUNT ( * ) + - ( 18 ) THEN + 94 ELSE - 49 * - 93 END
----
-4557

query I rowsort
SELECT DISTINCT - 53 - + 68
----
-121

onlyif mysql # aggregate syntax: 
query I rowsort label-4869
SELECT DISTINCT - ( + COUNT( * ) ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-4869
SELECT DISTINCT - ( + COUNT ( * ) ) AS col2
----
-1

query I rowsort
SELECT 77 + - 12 col0
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-4871
SELECT DISTINCT 34 - COUNT( * ) AS col2
----
33

skipif mysql # not compatible
query I rowsort label-4871
SELECT DISTINCT 34 - COUNT ( * ) AS col2
----
33

onlyif mysql # DIV for integer division: 
query I rowsort label-4872
SELECT DISTINCT 52 DIV 69 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4872
SELECT DISTINCT 52 / 69 AS col1
----
0

query I rowsort
SELECT ALL 87 * 31
----
2697

onlyif mysql # aggregate syntax: 
query I rowsort label-4874
SELECT CASE - COUNT( - 74 ) WHEN 67 THEN COUNT( * ) * MAX( 77 ) + + 65 ELSE NULL END + + 18 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4874
SELECT CASE - COUNT ( - 74 ) WHEN 67 THEN COUNT ( * ) * MAX ( 77 ) + + 65 ELSE NULL END + + 18 AS col1
----
NULL

query I rowsort
SELECT ALL 33 * 79 AS col1
----
2607

query I rowsort
SELECT ALL 51 * 10 col2
----
510

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4877
SELECT SUM( + 62 ) / ( CASE + 14 WHEN COALESCE ( - ( + 5 ), 80 ) THEN - 14 / 21 + + CAST( COUNT( * ) - - CAST( COUNT( * ) AS SIGNED ) AS DECIMAL ) END ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4877
SELECT SUM ( + 62 ) / ( CASE + 14 WHEN COALESCE ( - ( + 5 ), 80 ) THEN - 14 / 21 + + CAST ( COUNT ( * ) - - CAST ( COUNT ( * ) AS INTEGER ) AS REAL ) END ) AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4878
SELECT COUNT( * ) DIV - 59
----
0

skipif mysql # not compatible
query I rowsort label-4878
SELECT COUNT ( * ) / - 59
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4879
SELECT 21 + COUNT( * ) * 18 AS col1
----
39

skipif mysql # not compatible
query I rowsort label-4879
SELECT 21 + COUNT ( * ) * 18 AS col1
----
39

query I rowsort
SELECT 28 * 48 AS col2
----
1344

query I rowsort
SELECT DISTINCT 14 + - 75
----
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-4882
SELECT ALL MIN( - 52 ) + + 51 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-4882
SELECT ALL MIN ( - 52 ) + + 51 AS col0
----
-1

query I rowsort
SELECT ALL 43 + 11
----
54

query I rowsort
SELECT 18 + + 84 AS col0
----
102

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4885
SELECT DISTINCT 78 + + CAST( 6 + - CAST( NULL AS DECIMAL ) AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4885
SELECT DISTINCT 78 + + CAST ( 6 + - CAST ( NULL AS REAL ) AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4886
SELECT ALL COUNT( * ) + - 20 col1
----
-19

skipif mysql # not compatible
query I rowsort label-4886
SELECT ALL COUNT ( * ) + - 20 col1
----
-19

query I rowsort
SELECT DISTINCT - 56 * 71 AS col0
----
-3976

query I rowsort
SELECT 30 * 38
----
1140

onlyif mysql # aggregate syntax: 
query I rowsort label-4889
SELECT ALL 13 + 44 * COUNT( * ) AS col2
----
57

skipif mysql # not compatible
query I rowsort label-4889
SELECT ALL 13 + 44 * COUNT ( * ) AS col2
----
57

onlyif mysql # DIV for integer division: 
query I rowsort label-4890
SELECT 25 DIV - 57 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4890
SELECT 25 / - 57 AS col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4891
SELECT + 94 - + MAX( CAST( NULL AS SIGNED ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4891
SELECT + 94 - + MAX ( CAST ( NULL AS INTEGER ) ) AS col2
----
NULL

query I rowsort
SELECT 15 + 26 AS col1
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-4893
SELECT DISTINCT + + 95 + - 44 * ( 46 * + COUNT( * ) ) AS col2
----
-1929

skipif mysql # not compatible
query I rowsort label-4893
SELECT DISTINCT + + 95 + - 44 * ( 46 * + COUNT ( * ) ) AS col2
----
-1929

query I rowsort
SELECT ALL - + 37 * - 31 + 47
----
1194

query I rowsort
SELECT - 49 * + 23 - 2
----
-1129

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4896
SELECT ALL - CAST( NULL AS SIGNED ) / 25
----
NULL

skipif mysql # not compatible
query I rowsort label-4896
SELECT ALL - CAST ( NULL AS INTEGER ) / 25
----
NULL

query I rowsort
SELECT + NULLIF ( - 76, - 98 ) col0
----
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-4898
SELECT ALL + MAX( 13 )
----
13

skipif mysql # not compatible
query I rowsort label-4898
SELECT ALL + MAX ( 13 )
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-4899
SELECT ALL - 21 * - 62 - - COUNT( * ) * 54
----
1356

skipif mysql # not compatible
query I rowsort label-4899
SELECT ALL - 21 * - 62 - - COUNT ( * ) * 54
----
1356

query I rowsort
SELECT DISTINCT + + 82 * 51
----
4182

query I rowsort
SELECT ALL - 22 * 11
----
-242

onlyif mysql # aggregate syntax: 
query I rowsort label-4902
SELECT ALL + MIN( 32 ) * 64
----
2048

skipif mysql # not compatible
query I rowsort label-4902
SELECT ALL + MIN ( 32 ) * 64
----
2048

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4903
SELECT - + CAST( - 56 AS SIGNED ) * + 24
----
1344

skipif mysql # not compatible
query I rowsort label-4903
SELECT - + CAST ( - 56 AS INTEGER ) * + 24
----
1344

query I rowsort
SELECT ALL - - CASE + 3 WHEN - 89 + - 51 THEN ( 57 ) WHEN + 73 THEN NULL ELSE 70 END * 16 AS col1
----
1120

query I rowsort
SELECT DISTINCT + + 67
----
67

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4906
SELECT ALL + - CAST( - 97 AS SIGNED )
----
97

skipif mysql # not compatible
query I rowsort label-4906
SELECT ALL + - CAST ( - 97 AS INTEGER )
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-4907
SELECT + - COALESCE ( - 16, + COUNT( * ), 75 * 45 + + 33 ) AS col0
----
16

skipif mysql # not compatible
query I rowsort label-4907
SELECT + - COALESCE ( - 16, + COUNT ( * ), 75 * 45 + + 33 ) AS col0
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-4908
SELECT - 60 * NULLIF ( + 68, COUNT( * ) ) col1
----
-4080

skipif mysql # not compatible
query I rowsort label-4908
SELECT - 60 * NULLIF ( + 68, COUNT ( * ) ) col1
----
-4080

query I rowsort
SELECT ALL - 17 * - 17 AS col1
----
289

onlyif mysql # aggregate syntax: 
query I rowsort label-4910
SELECT + COALESCE ( ( - COUNT( * ) ), - 85 )
----
-1

skipif mysql # not compatible
query I rowsort label-4910
SELECT + COALESCE ( ( - COUNT ( * ) ), - 85 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4911
SELECT ALL + ( + COUNT( * ) ) col2
----
1

skipif mysql # not compatible
query I rowsort label-4911
SELECT ALL + ( + COUNT ( * ) ) col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4912
SELECT COUNT( 10 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-4912
SELECT COUNT ( 10 ) AS col2
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-4913
SELECT ALL 80 DIV - - 48
----
1

skipif mysql # not compatible
query I rowsort label-4913
SELECT ALL 80 / - - 48
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4914
SELECT + 91 * + NULLIF ( ( 99 ), 23 * COUNT( * ) )
----
9009

skipif mysql # not compatible
query I rowsort label-4914
SELECT + 91 * + NULLIF ( ( 99 ), 23 * COUNT ( * ) )
----
9009

query I rowsort
SELECT ALL 97 * - - 38
----
3686

onlyif mysql # aggregate syntax: 
query I rowsort label-4916
SELECT - COUNT( DISTINCT - - 4 )
----
-1

skipif mysql # not compatible
query I rowsort label-4916
SELECT - COUNT ( DISTINCT - - 4 )
----
-1

query I rowsort
SELECT - NULLIF ( + 70, 91 + + 98 * 76 )
----
-70

query I rowsort
SELECT ALL 73 + 24 AS col2
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-4919
SELECT + 79 - - - 59 + 84 * ( - COUNT( * ) + + COUNT( * ) ) AS col2
----
20

skipif mysql # not compatible
query I rowsort label-4919
SELECT + 79 - - - 59 + 84 * ( - COUNT ( * ) + + COUNT ( * ) ) AS col2
----
20

query I rowsort
SELECT DISTINCT 4 AS col2
----
4

query I rowsort
SELECT DISTINCT - 33 + + 75 + 79
----
121

query I rowsort
SELECT ALL 26 + + 42 + + 8 * - 1 AS col2
----
60

query I rowsort
SELECT + 32 + - 71 + - 36 * 95 AS col2
----
-3459

query I rowsort
SELECT + 8 + - 98 * 26
----
-2540

query I rowsort
SELECT ALL 19 + 9 + ( - 86 ) * - 32 AS col1
----
2780

query I rowsort
SELECT + 25 * - + 0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4927
SELECT + 96 + - + 68 - + COUNT( * ) * - 54
----
82

skipif mysql # not compatible
query I rowsort label-4927
SELECT + 96 + - + 68 - + COUNT ( * ) * - 54
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-4928
SELECT + 1 - + + 86 + SUM( DISTINCT + 66 )
----
-19

skipif mysql # not compatible
query I rowsort label-4928
SELECT + 1 - + + 86 + SUM ( DISTINCT + 66 )
----
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-4929
SELECT + 92 + + COUNT( * ) AS col1
----
93

skipif mysql # not compatible
query I rowsort label-4929
SELECT + 92 + + COUNT ( * ) AS col1
----
93

query I rowsort
SELECT ALL 31 + - 53 - 47
----
-69

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4931
SELECT ALL CAST( NULL AS SIGNED ) - + - NULLIF ( + 27, 74 ) + - 88 * + 4 / ( - 67 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4931
SELECT ALL CAST ( NULL AS INTEGER ) - + - NULLIF ( + 27, 74 ) + - 88 * + 4 / ( - 67 ) AS col0
----
NULL

query I rowsort
SELECT + - 28 * - - 48 + + 87
----
-1257

query I rowsort
SELECT DISTINCT 29 col0
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-4934
SELECT DISTINCT 93 - + COUNT( * ) AS col2
----
92

skipif mysql # not compatible
query I rowsort label-4934
SELECT DISTINCT 93 - + COUNT ( * ) AS col2
----
92

query I rowsort
SELECT ALL + ( + 50 ) AS col0
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-4936
SELECT DISTINCT - + ( - - COUNT( * ) ) * 13 AS col0
----
-13

skipif mysql # not compatible
query I rowsort label-4936
SELECT DISTINCT - + ( - - COUNT ( * ) ) * 13 AS col0
----
-13

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4937
SELECT ALL - 67 DIV - - COUNT( * ) - 19 * + 28 AS col0
----
-599

skipif mysql # not compatible
query I rowsort label-4937
SELECT ALL - 67 / - - COUNT ( * ) - 19 * + 28 AS col0
----
-599

query I rowsort
SELECT DISTINCT + - 15
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-4939
SELECT ALL - - CASE - MIN( - 58 ) WHEN - 0 * NULLIF ( + SUM( ALL - 79 ), - 96 ) - COUNT( * ) THEN 17 + COUNT( * ) ELSE NULL END * 98 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4939
SELECT ALL - - CASE - MIN ( - 58 ) WHEN - 0 * NULLIF ( + SUM ( ALL - 79 ), - 96 ) - COUNT ( * ) THEN 17 + COUNT ( * ) ELSE NULL END * 98 AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4940
SELECT ALL + 2 DIV + - ( COUNT( * ) ) - + COUNT( * )
----
-3

skipif mysql # not compatible
query I rowsort label-4940
SELECT ALL + 2 / + - ( COUNT ( * ) ) - + COUNT ( * )
----
-3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4941
SELECT ALL + - COALESCE ( + 50, CAST( 8 AS SIGNED ), COUNT( * ) ) AS col0
----
-50

skipif mysql # not compatible
query I rowsort label-4941
SELECT ALL + - COALESCE ( + 50, CAST ( 8 AS INTEGER ), COUNT ( * ) ) AS col0
----
-50

onlyif mysql # DIV for integer division: 
query I rowsort label-4942
SELECT 76 DIV - 25 + - 95
----
-98

skipif mysql # not compatible
query I rowsort label-4942
SELECT 76 / - 25 + - 95
----
-98

onlyif mysql # DIV for integer division: 
query I rowsort label-4943
SELECT + 21 DIV - 21 + 27 DIV 57 + + 41 * 92
----
3771

skipif mysql # not compatible
query I rowsort label-4943
SELECT + 21 / - 21 + 27 / 57 + + 41 * 92
----
3771

query I rowsort
SELECT + 17 + 5
----
22

query I rowsort
SELECT + 69 col2
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-4946
SELECT ALL + COALESCE ( + MIN( DISTINCT 86 ), - 41 )
----
86

skipif mysql # not compatible
query I rowsort label-4946
SELECT ALL + COALESCE ( + MIN ( DISTINCT 86 ), - 41 )
----
86

query I rowsort
SELECT + NULLIF ( - 32, + 92 + 88 )
----
-32

query I rowsort
SELECT + - 10 + - 26 - - 42 * 86 col1
----
3576

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4949
SELECT - + 52 DIV + ( MIN( ALL + 23 ) )
----
-2

skipif mysql # not compatible
query I rowsort label-4949
SELECT - + 52 / + ( MIN ( ALL + 23 ) )
----
-2

query I rowsort
SELECT + + 37 * + 80 * - 42 + + 57 AS col0
----
-124263

onlyif mysql # DIV for integer division: 
query I rowsort label-4951
SELECT 60 DIV 11 + 26 col0
----
31

skipif mysql # not compatible
query I rowsort label-4951
SELECT 60 / 11 + 26 col0
----
31

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4952
SELECT ALL + 91 / + + CAST( NULL AS SIGNED ) * - 15 * - 37 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4952
SELECT ALL + 91 / + + CAST ( NULL AS INTEGER ) * - 15 * - 37 AS col2
----
NULL

query I rowsort
SELECT ALL + 46 * 49 AS col0
----
2254

query I rowsort
SELECT - 39 + 82 - 81 AS col2
----
-38

query I rowsort
SELECT - 15 + - - 56
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-4956
SELECT COALESCE ( + 70, 65 + + 34, - COUNT( * ) ) AS col2
----
70

skipif mysql # not compatible
query I rowsort label-4956
SELECT COALESCE ( + 70, 65 + + 34, - COUNT ( * ) ) AS col2
----
70

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4957
SELECT - CAST( 63 AS SIGNED ) * - ( ( + COUNT( * ) ) ) + - MIN( - 91 ) AS col2
----
154

skipif mysql # not compatible
query I rowsort label-4957
SELECT - CAST ( 63 AS INTEGER ) * - ( ( + COUNT ( * ) ) ) + - MIN ( - 91 ) AS col2
----
154

onlyif mysql # aggregate syntax: 
query I rowsort label-4958
SELECT ALL + COUNT( * ) * + 92 + - 31 AS col2
----
61

skipif mysql # not compatible
query I rowsort label-4958
SELECT ALL + COUNT ( * ) * + 92 + - 31 AS col2
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-4959
SELECT ALL - MAX( ALL - + 90 ) * + CASE 6 WHEN AVG ( COALESCE ( - 75, 79 ) ) + + 45 THEN NULL ELSE 3 END
----
270

skipif mysql # not compatible
query I rowsort label-4959
SELECT ALL - MAX ( ALL - + 90 ) * + CASE 6 WHEN AVG ( COALESCE ( - 75, 79 ) ) + + 45 THEN NULL ELSE 3 END
----
270

onlyif mysql # aggregate syntax: 
query I rowsort label-4960
SELECT NULLIF ( + + 3, - 46 * - MIN( ALL 81 ) ) AS col1
----
3

skipif mysql # not compatible
query I rowsort label-4960
SELECT NULLIF ( + + 3, - 46 * - MIN ( ALL 81 ) ) AS col1
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4961
SELECT + 68 + - - NULLIF ( + 92, + CASE + 26 WHEN CASE + 25 WHEN + 41 THEN - 5 * CAST( COUNT( * ) * + 95 AS SIGNED ) WHEN + 35 THEN 83 ELSE + 79 END THEN NULL WHEN 38 + - 36 THEN + 77 * + 80 END ) AS col2
----
160

skipif mysql # not compatible
query I rowsort label-4961
SELECT + 68 + - - NULLIF ( + 92, + CASE + 26 WHEN CASE + 25 WHEN + 41 THEN - 5 * CAST ( COUNT ( * ) * + 95 AS INTEGER ) WHEN + 35 THEN 83 ELSE + 79 END THEN NULL WHEN 38 + - 36 THEN + 77 * + 80 END ) AS col2
----
160

onlyif mysql # aggregate syntax: 
query I rowsort label-4962
SELECT NULLIF ( + 27, 22 * COUNT( * ) ) AS col0
----
27

skipif mysql # not compatible
query I rowsort label-4962
SELECT NULLIF ( + 27, 22 * COUNT ( * ) ) AS col0
----
27

query I rowsort
SELECT ALL + 38 * + 41 + + 78 - + 74 col0
----
1562

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4964
SELECT ALL COUNT( * ) * + 12 + - - 16 * + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4964
SELECT ALL COUNT ( * ) * + 12 + - - 16 * + CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4965
SELECT - 32 * COUNT( * ) / + - COUNT( * ) * + CASE 14 WHEN ( + 22 ) * 7 THEN + 32 END
----
NULL

skipif mysql # not compatible
query I rowsort label-4965
SELECT - 32 * COUNT ( * ) / + - COUNT ( * ) * + CASE 14 WHEN ( + 22 ) * 7 THEN + 32 END
----
NULL

query I rowsort
SELECT ALL - 11 * 64 + 52 + 78
----
-574

query I rowsort
SELECT ALL - 22 * - CASE - 41 WHEN 76 THEN NULL WHEN - 91 THEN NULL ELSE 90 END + + 83 AS col2
----
2063

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4968
SELECT ALL CAST( NULL AS SIGNED ), 95 AS col2
----
NULL
95

skipif mysql # not compatible
query II rowsort label-4968
SELECT ALL CAST ( NULL AS INTEGER ), 95 AS col2
----
NULL
95

onlyif mysql # aggregate syntax: 
query I rowsort label-4969
SELECT + COUNT( * ) + + 89 * + 92 AS col2
----
8189

skipif mysql # not compatible
query I rowsort label-4969
SELECT + COUNT ( * ) + + 89 * + 92 AS col2
----
8189

query I rowsort
SELECT ALL 84 - + 74 * 66 col0
----
-4800

onlyif mysql # aggregate syntax: 
query II rowsort label-4971
SELECT + COUNT( * ), + 58 * + ( 44 ) * + 25 AS col0
----
1
63800

skipif mysql # not compatible
query II rowsort label-4971
SELECT + COUNT ( * ), + 58 * + ( 44 ) * + 25 AS col0
----
1
63800

query I rowsort
SELECT + 98 * + + 30
----
2940

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4973
SELECT ALL ( + + CAST( + - ( + 18 ) AS SIGNED ) ) * 65 AS col2
----
-1170

skipif mysql # not compatible
query I rowsort label-4973
SELECT ALL ( + + CAST ( + - ( + 18 ) AS INTEGER ) ) * 65 AS col2
----
-1170

query I rowsort
SELECT ALL + 88 * - + ( - - 60 )
----
-5280

query I rowsort
SELECT ALL 18 col1
----
18

query I rowsort
SELECT - CASE + + 29 WHEN - 51 - + 37 THEN 59 END AS col0
----
NULL

query I rowsort
SELECT ALL + - 73 - - 41 - - 65 - + 71 * 84
----
-5931

query II rowsort
SELECT ALL 80 col1, + 89 + + + 74 AS col2
----
80
163

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4979
SELECT COUNT( * ) * - 78 + - 35 + + CAST( CASE COUNT( * ) WHEN + 86 THEN + COUNT( - 14 ) WHEN 75 THEN + CAST( NULL AS SIGNED ) / 63 END AS SIGNED ) * - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-4979
SELECT COUNT ( * ) * - 78 + - 35 + + CAST ( CASE COUNT ( * ) WHEN + 86 THEN + COUNT ( - 14 ) WHEN 75 THEN + CAST ( NULL AS INTEGER ) / 63 END AS INTEGER ) * - COUNT ( * )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4980
SELECT ALL 4 * - + NULLIF ( - - 2, - 22 * - COUNT( * ) + + COUNT( ALL - CAST( NULL AS SIGNED ) ) )
----
-8

skipif mysql # not compatible
query I rowsort label-4980
SELECT ALL 4 * - + NULLIF ( - - 2, - 22 * - COUNT ( * ) + + COUNT ( ALL - CAST ( NULL AS INTEGER ) ) )
----
-8

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4981
SELECT 26 - - 97 + + 35 + CAST( - 25 AS SIGNED ) * 47
----
-1017

skipif mysql # not compatible
query I rowsort label-4981
SELECT 26 - - 97 + + 35 + CAST ( - 25 AS INTEGER ) * 47
----
-1017

onlyif mysql # aggregate syntax: 
query I rowsort label-4982
SELECT - COUNT( * ) * - 18 + - - ( - 50 ) + NULLIF ( 72, + 43 + - COUNT( * ) )
----
40

skipif mysql # not compatible
query I rowsort label-4982
SELECT - COUNT ( * ) * - 18 + - - ( - 50 ) + NULLIF ( 72, + 43 + - COUNT ( * ) )
----
40

query I rowsort
SELECT ALL + 11 * - 87
----
-957

query II rowsort
SELECT 62 col0, - ( 17 ) AS col2
----
62
-17

query I rowsort
SELECT - ( - 39 ) + - 29
----
10

query I rowsort
SELECT 47 + - 26 AS col0
----
21

onlyif mysql # aggregate syntax: 
query II rowsort label-4987
SELECT - + 62 col2, + COUNT( * )
----
-62
1

skipif mysql # not compatible
query II rowsort label-4987
SELECT - + 62 col2, + COUNT ( * )
----
-62
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4988
SELECT ALL - - SUM( ALL - 70 ) AS col1
----
-70

skipif mysql # not compatible
query I rowsort label-4988
SELECT ALL - - SUM ( ALL - 70 ) AS col1
----
-70

query I rowsort
SELECT DISTINCT + ( 16 ) * - 86 AS col1
----
-1376

query I rowsort
SELECT + 2 * - 25 + 54 - - 40 AS col0
----
44

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4991
SELECT ALL - CAST( + - 96 AS SIGNED ) AS col0
----
96

skipif mysql # not compatible
query I rowsort label-4991
SELECT ALL - CAST ( + - 96 AS INTEGER ) AS col0
----
96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4992
SELECT - CAST( COALESCE ( - 91, - 53 * COUNT( * ) ) AS SIGNED ) * - 43
----
-3913

skipif mysql # not compatible
query I rowsort label-4992
SELECT - CAST ( COALESCE ( - 91, - 53 * COUNT ( * ) ) AS INTEGER ) * - 43
----
-3913

onlyif mysql # aggregate syntax: 
query I rowsort label-4993
SELECT ALL COUNT( * ) + 35
----
36

skipif mysql # not compatible
query I rowsort label-4993
SELECT ALL COUNT ( * ) + 35
----
36

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4994
SELECT + COALESCE ( + COUNT( * ), - + AVG ( ALL + 3 ) ) * + ( + 94 ) + - 44 * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4994
SELECT + COALESCE ( + COUNT ( * ), - + AVG ( ALL + 3 ) ) * + ( + 94 ) + - 44 * - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4995
SELECT ALL COUNT( * ) + - NULLIF ( + ( + 14 ), + NULLIF ( 98, - 97 + ( 51 - 14 ) / + CASE 40 * - 10 WHEN - 64 THEN + 71 / AVG ( ALL 15 ) END ) + ( - 50 + 71 ) ) * - COUNT( * ) col2
----
15

skipif mysql # not compatible
query I rowsort label-4995
SELECT ALL COUNT ( * ) + - NULLIF ( + ( + 14 ), + NULLIF ( 98, - 97 + ( 51 - 14 ) / + CASE 40 * - 10 WHEN - 64 THEN + 71 / AVG ( ALL 15 ) END ) + ( - 50 + 71 ) ) * - COUNT ( * ) col2
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-4996
SELECT 12 * - ( + + COUNT( * ) ) col0
----
-12

skipif mysql # not compatible
query I rowsort label-4996
SELECT 12 * - ( + + COUNT ( * ) ) col0
----
-12

query I rowsort
SELECT ALL 98 + + + 56 col1
----
154

onlyif mysql # aggregate syntax: 
query I rowsort label-4998
SELECT ALL - CASE - COUNT( 4 ) WHEN + 90 + - 29 THEN + 99 - 13 WHEN 94 * + 66 THEN - 27 ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4998
SELECT ALL - CASE - COUNT ( 4 ) WHEN + 90 + - 29 THEN + 99 - 13 WHEN 94 * + 66 THEN - 27 ELSE NULL END AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4999
SELECT 31 / + - CAST( NULL AS SIGNED ) AS col1, 0 AS col0
----
NULL
0

skipif mysql # not compatible
query II rowsort label-4999
SELECT 31 / + - CAST ( NULL AS INTEGER ) AS col1, 0 AS col0
----
NULL
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5000
SELECT CAST( NULL AS SIGNED ) * - 91 * 89 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5000
SELECT CAST ( NULL AS INTEGER ) * - 91 * 89 AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5001
SELECT DISTINCT - CASE - 51 WHEN - 1 THEN - 30 * - CAST( NULL AS SIGNED ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-5001
SELECT DISTINCT - CASE - 51 WHEN - 1 THEN - 30 * - CAST ( NULL AS INTEGER ) END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5002
SELECT DISTINCT + 33 + - + ( + - MIN( ALL + 46 ) )
----
79

skipif mysql # not compatible
query I rowsort label-5002
SELECT DISTINCT + 33 + - + ( + - MIN ( ALL + 46 ) )
----
79

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5003
SELECT 21 DIV COUNT( * ) * + 21
----
441

skipif mysql # not compatible
query I rowsort label-5003
SELECT 21 / COUNT ( * ) * + 21
----
441

onlyif mysql # aggregate syntax: 
query I rowsort label-5004
SELECT ALL - COUNT( * ) + + 65 * 48 AS col2
----
3119

skipif mysql # not compatible
query I rowsort label-5004
SELECT ALL - COUNT ( * ) + + 65 * 48 AS col2
----
3119

onlyif mysql # aggregate syntax: 
query I rowsort label-5005
SELECT - 66 * - COALESCE ( - 5, + COUNT( * ) ) - ( - 23 - 66 ) AS col1
----
-241

skipif mysql # not compatible
query I rowsort label-5005
SELECT - 66 * - COALESCE ( - 5, + COUNT ( * ) ) - ( - 23 - 66 ) AS col1
----
-241

query I rowsort
SELECT 40 * + - 57 col2
----
-2280

onlyif mysql # DIV for integer division: 
query I rowsort label-5007
SELECT 11 + + 11 DIV 59
----
11

skipif mysql # not compatible
query I rowsort label-5007
SELECT 11 + + 11 / 59
----
11

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5008
SELECT 46 / SUM( DISTINCT - CAST( NULL AS SIGNED ) ) / - + 76 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5008
SELECT 46 / SUM ( DISTINCT - CAST ( NULL AS INTEGER ) ) / - + 76 AS col1
----
NULL

query I rowsort
SELECT ALL - 16 * - 96 AS col2
----
1536

onlyif mysql # aggregate syntax: 
query II rowsort label-5010
SELECT 17 * - COUNT( * ) AS col2, 8 AS col1
----
-17
8

skipif mysql # not compatible
query II rowsort label-5010
SELECT 17 * - COUNT ( * ) AS col2, 8 AS col1
----
-17
8

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5011
SELECT 20 + - - 83 + NULLIF ( CAST( NULL AS SIGNED ), ( + ( + 10 ) ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-5011
SELECT 20 + - - 83 + NULLIF ( CAST ( NULL AS INTEGER ), ( + ( + 10 ) ) )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5012
SELECT ALL + CAST( 49 AS SIGNED ) - - - 53 AS col1
----
-4

skipif mysql # not compatible
query I rowsort label-5012
SELECT ALL + CAST ( 49 AS INTEGER ) - - - 53 AS col1
----
-4

query I rowsort
SELECT 27 * - - 98
----
2646

query I rowsort
SELECT 41 col2
----
41

query I rowsort
SELECT DISTINCT + 43 * - 71
----
-3053

query I rowsort
SELECT - 96 + 1
----
-95

query I rowsort
SELECT ALL + + 21 - - 96 AS col0
----
117

query I rowsort
SELECT 62 + + 82
----
144

onlyif mysql # aggregate syntax: 
query I rowsort label-5019
SELECT + COUNT( * ) * 69 AS col2
----
69

skipif mysql # not compatible
query I rowsort label-5019
SELECT + COUNT ( * ) * 69 AS col2
----
69

query I rowsort
SELECT + 72 * - 23 * - 56 AS col2
----
92736

onlyif mysql # aggregate syntax: 
query I rowsort label-5021
SELECT 41 + 65 + 73 + - + 62 + MAX( + 38 + 54 ) * + CASE SUM( ALL - 10 ) * + ( 57 * - 27 + 74 * - 16 ) WHEN - 87 THEN NULL ELSE - 29 END * - 10 * 11
----
293597

skipif mysql # not compatible
query I rowsort label-5021
SELECT 41 + 65 + 73 + - + 62 + MAX ( + 38 + 54 ) * + CASE SUM ( ALL - 10 ) * + ( 57 * - 27 + 74 * - 16 ) WHEN - 87 THEN NULL ELSE - 29 END * - 10 * 11
----
293597

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5022
SELECT CAST( NULL AS DECIMAL ) + - 1 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5022
SELECT CAST ( NULL AS REAL ) + - 1 AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5023
SELECT ALL + 90 DIV 3 + - - 78 * + 46 * 86
----
308598

skipif mysql # not compatible
query I rowsort label-5023
SELECT ALL + 90 / 3 + - - 78 * + 46 * 86
----
308598

onlyif mysql # aggregate syntax: 
query I rowsort label-5024
SELECT 61 * + SUM( DISTINCT + - ( 72 ) )
----
-4392

skipif mysql # not compatible
query I rowsort label-5024
SELECT 61 * + SUM ( DISTINCT + - ( 72 ) )
----
-4392

query I rowsort
SELECT - + 95
----
-95

query I rowsort
SELECT 10 + + 28 + - + COALESCE ( - 9, 15 )
----
47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5027
SELECT ALL - COALESCE ( + 93, - - CAST( + + 78 AS SIGNED ), CASE 42 WHEN - 51 THEN + 96 WHEN + COUNT( + 90 ) THEN NULL END * - 75 + 72 ) * + 3 col0
----
-279

skipif mysql # not compatible
query I rowsort label-5027
SELECT ALL - COALESCE ( + 93, - - CAST ( + + 78 AS INTEGER ), CASE 42 WHEN - 51 THEN + 96 WHEN + COUNT ( + 90 ) THEN NULL END * - 75 + 72 ) * + 3 col0
----
-279

onlyif mysql # aggregate syntax: 
query I rowsort label-5028
SELECT DISTINCT - CASE - 91 WHEN - + 45 THEN - + 75 WHEN 93 THEN NULL ELSE - SUM( + 4 ) + - 95 END AS col1
----
99

skipif mysql # not compatible
query I rowsort label-5028
SELECT DISTINCT - CASE - 91 WHEN - + 45 THEN - + 75 WHEN 93 THEN NULL ELSE - SUM ( + 4 ) + - 95 END AS col1
----
99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5029
SELECT - COUNT( * ) + - 38 * + CAST( - COUNT( * ) AS SIGNED ) AS col0
----
37

skipif mysql # not compatible
query I rowsort label-5029
SELECT - COUNT ( * ) + - 38 * + CAST ( - COUNT ( * ) AS INTEGER ) AS col0
----
37

query I rowsort
SELECT ALL 79 * - 4 + + 20
----
-296

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5031
SELECT 89 * + CASE ( - CAST( - 46 AS SIGNED ) ) WHEN 62 + + MIN( 66 + - 34 ) THEN 9 ELSE NULL END * COUNT( * ) + + 31 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5031
SELECT 89 * + CASE ( - CAST ( - 46 AS INTEGER ) ) WHEN 62 + + MIN ( 66 + - 34 ) THEN 9 ELSE NULL END * COUNT ( * ) + + 31 AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5032
SELECT - 45 DIV - + 26 + 64 + - - 38 AS col2
----
103

skipif mysql # not compatible
query I rowsort label-5032
SELECT - 45 / - + 26 + 64 + - - 38 AS col2
----
103

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5033
SELECT - CASE - - COUNT( * ) WHEN - 43 - 32 THEN NULL WHEN + 76 THEN NULL WHEN 49 THEN 57 * + CAST( NULL AS DECIMAL ) END * - AVG ( DISTINCT - 2 + NULLIF ( 90, 12 ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5033
SELECT - CASE - - COUNT ( * ) WHEN - 43 - 32 THEN NULL WHEN + 76 THEN NULL WHEN 49 THEN 57 * + CAST ( NULL AS REAL ) END * - AVG ( DISTINCT - 2 + NULLIF ( 90, 12 ) ) AS col2
----
NULL

query I rowsort
SELECT DISTINCT 29 * - 14 + - ( - + 13 )
----
-393

query I rowsort
SELECT ALL - 51 col0
----
-51

query I rowsort
SELECT ( ( 79 ) ) * + 30 AS col2
----
2370

onlyif mysql # aggregate syntax: 
query I rowsort label-5037
SELECT MAX( - + 58 )
----
-58

skipif mysql # not compatible
query I rowsort label-5037
SELECT MAX ( - + 58 )
----
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-5038
SELECT ALL - MIN( ALL - 62 ) AS col0
----
62

skipif mysql # not compatible
query I rowsort label-5038
SELECT ALL - MIN ( ALL - 62 ) AS col0
----
62

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5039
SELECT DISTINCT CAST( - 13 AS SIGNED ) * 25 + - CASE + + 37 WHEN - COALESCE ( 63, + 55 / NULLIF ( + AVG ( + CASE - 27 WHEN 33 THEN 82 / 32 + 78 WHEN + 43 / 96 THEN NULL ELSE - 0 END ), 39 ) ) THEN + 51 + - 24 END
----
NULL

skipif mysql # not compatible
query I rowsort label-5039
SELECT DISTINCT CAST ( - 13 AS INTEGER ) * 25 + - CASE + + 37 WHEN - COALESCE ( 63, + 55 / NULLIF ( + AVG ( + CASE - 27 WHEN 33 THEN 82 / 32 + 78 WHEN + 43 / 96 THEN NULL ELSE - 0 END ), 39 ) ) THEN + 51 + - 24 END
----
NULL

query I rowsort
SELECT DISTINCT - 53 col0
----
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-5041
SELECT ALL COUNT( * ) + + 61 * - 54 AS col2
----
-3293

skipif mysql # not compatible
query I rowsort label-5041
SELECT ALL COUNT ( * ) + + 61 * - 54 AS col2
----
-3293

onlyif mysql # aggregate syntax: 
query I rowsort label-5042
SELECT COUNT( + - NULLIF ( 33, - 41 ) ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-5042
SELECT COUNT ( + - NULLIF ( 33, - 41 ) ) AS col2
----
1

query I rowsort
SELECT ALL ( - 96 ) * + + 28 * 27 - - 88
----
-72488

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5044
SELECT NULLIF ( + 78, + - 36 * 36 + - CAST( + 8 AS SIGNED ) ) * - 92 AS col0
----
-7176

skipif mysql # not compatible
query I rowsort label-5044
SELECT NULLIF ( + 78, + - 36 * 36 + - CAST ( + 8 AS INTEGER ) ) * - 92 AS col0
----
-7176

query I rowsort
SELECT ALL COALESCE ( - - 35, ( 77 ) ) - + + 93 * 99 AS col2
----
-9172

query I rowsort
SELECT ALL 67 * 93
----
6231

query I rowsort
SELECT + 90 * - + 32 * 77 AS col0
----
-221760

onlyif mysql # aggregate syntax: 
query I rowsort label-5048
SELECT + MAX( + 25 )
----
25

skipif mysql # not compatible
query I rowsort label-5048
SELECT + MAX ( + 25 )
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-5049
SELECT - COUNT( + 15 ) + + 15 + - + COALESCE ( + 97, COUNT( * ) + - 51, ( 80 ) ) + 89 AS col0
----
6

skipif mysql # not compatible
query I rowsort label-5049
SELECT - COUNT ( + 15 ) + + 15 + - + COALESCE ( + 97, COUNT ( * ) + - 51, ( 80 ) ) + 89 AS col0
----
6

query I rowsort
SELECT - NULLIF ( - - 63, + 98 )
----
-63

onlyif mysql # DIV for integer division: 
query I rowsort label-5051
SELECT ALL - 85 DIV - - 36
----
-2

skipif mysql # not compatible
query I rowsort label-5051
SELECT ALL - 85 / - - 36
----
-2

query I rowsort
SELECT DISTINCT - ( 8 ) AS col2
----
-8

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5053
SELECT - CAST( NULL AS SIGNED ), 74 + - CASE + + CASE - - 80 WHEN - 5 * 43 - + 31 * 42 THEN + ( + 0 ) WHEN - ( 70 ) THEN NULL ELSE + 20 - 95 END WHEN + 40 THEN NULL WHEN + 61 THEN - COUNT( * ) END AS col1
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-5053
SELECT - CAST ( NULL AS INTEGER ), 74 + - CASE + + CASE - - 80 WHEN - 5 * 43 - + 31 * 42 THEN + ( + 0 ) WHEN - ( 70 ) THEN NULL ELSE + 20 - 95 END WHEN + 40 THEN NULL WHEN + 61 THEN - COUNT ( * ) END AS col1
----
NULL
NULL

query I rowsort
SELECT DISTINCT NULLIF ( + + 66, - 63 )
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-5055
SELECT - COALESCE ( - 5, - + COUNT( * ) ) AS col1
----
5

skipif mysql # not compatible
query I rowsort label-5055
SELECT - COALESCE ( - 5, - + COUNT ( * ) ) AS col1
----
5

query I rowsort
SELECT + 70 * + - 79
----
-5530

onlyif mysql # aggregate syntax: 
query I rowsort label-5057
SELECT + - COUNT( * ) * 29 col2
----
-29

skipif mysql # not compatible
query I rowsort label-5057
SELECT + - COUNT ( * ) * 29 col2
----
-29

query I rowsort
SELECT - NULLIF ( - ( 48 ), - - 38 * + 68 - + 58 ) * COALESCE ( 9, + 34 + 61 )
----
432

query I rowsort
SELECT DISTINCT + + 44 * - + 28 AS col2
----
-1232

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5060
SELECT DISTINCT - + 81 + - ( CASE - 12 WHEN - - ( 5 ) / CAST( NULL AS SIGNED ) - + 52 THEN - 66 END ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5060
SELECT DISTINCT - + 81 + - ( CASE - 12 WHEN - - ( 5 ) / CAST ( NULL AS INTEGER ) - + 52 THEN - 66 END ) AS col0
----
NULL

query I rowsort
SELECT ALL + 44 + 21 AS col2
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-5062
SELECT ALL + - COUNT( * ) + - ( + + 82 ) + - 53
----
-136

skipif mysql # not compatible
query I rowsort label-5062
SELECT ALL + - COUNT ( * ) + - ( + + 82 ) + - 53
----
-136

onlyif mysql # aggregate syntax: 
query I rowsort label-5063
SELECT DISTINCT - COUNT( * ) * - - COUNT( * ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-5063
SELECT DISTINCT - COUNT ( * ) * - - COUNT ( * ) AS col2
----
-1

query I rowsort
SELECT ALL NULLIF ( + - ( - 59 ), - + COALESCE ( 78, + 27 ) )
----
59

query I rowsort
SELECT ALL - + 1 + 97 AS col0
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-5066
SELECT ALL + - 39 + - ( + COUNT( * ) ) * + 53
----
-92

skipif mysql # not compatible
query I rowsort label-5066
SELECT ALL + - 39 + - ( + COUNT ( * ) ) * + 53
----
-92

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5067
SELECT - - NULLIF ( + CAST( NULL AS SIGNED ), - - 61 - + - NULLIF ( 24, 85 * 13 ) ) + 68
----
NULL

skipif mysql # not compatible
query I rowsort label-5067
SELECT - - NULLIF ( + CAST ( NULL AS INTEGER ), - - 61 - + - NULLIF ( 24, 85 * 13 ) ) + 68
----
NULL

query I rowsort
SELECT ( + 69 )
----
69

query I rowsort
SELECT - - 35 AS col0
----
35

query I rowsort
SELECT - - 94 AS col1
----
94

query I rowsort
SELECT ( 96 )
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-5072
SELECT + MAX( ALL + 17 )
----
17

skipif mysql # not compatible
query I rowsort label-5072
SELECT + MAX ( ALL + 17 )
----
17

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5073
SELECT ALL + CAST( - + 7 AS SIGNED ) col1
----
-7

skipif mysql # not compatible
query I rowsort label-5073
SELECT ALL + CAST ( - + 7 AS INTEGER ) col1
----
-7

onlyif mysql # DIV for integer division: 
query I rowsort label-5074
SELECT ALL - 60 DIV 19 * + - 18 AS col0
----
54

skipif mysql # not compatible
query I rowsort label-5074
SELECT ALL - 60 / 19 * + - 18 AS col0
----
54

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5075
SELECT DISTINCT - 23 * + 17 * CAST( NULL AS SIGNED ) + - 78 * + + 4 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5075
SELECT DISTINCT - 23 * + 17 * CAST ( NULL AS INTEGER ) + - 78 * + + 4 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5076
SELECT - 40 * ( - - ( + + NULLIF ( - + 15, 43 ) ) ) * + NULLIF ( 36, - 49 ) + + COUNT( * ) col1
----
21601

skipif mysql # not compatible
query I rowsort label-5076
SELECT - 40 * ( - - ( + + NULLIF ( - + 15, 43 ) ) ) * + NULLIF ( 36, - 49 ) + + COUNT ( * ) col1
----
21601

query II rowsort
SELECT ALL + 86, + 72 + + - 18 AS col2
----
86
54

onlyif mysql # aggregate syntax: 
query I rowsort label-5078
SELECT + MAX( - + ( - ( + - 58 ) ) ) AS col1
----
-58

skipif mysql # not compatible
query I rowsort label-5078
SELECT + MAX ( - + ( - ( + - 58 ) ) ) AS col1
----
-58

query I rowsort
SELECT + 9 * + 25 * + 99
----
22275

query I rowsort
SELECT ( 45 )
----
45

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5081
SELECT + 26 DIV - - 25 * - COUNT( * ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-5081
SELECT + 26 / - - 25 * - COUNT ( * ) AS col2
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-5082
SELECT DISTINCT + MAX( 46 ), + 42 AS col0
----
46
42

skipif mysql # not compatible
query II rowsort label-5082
SELECT DISTINCT + MAX ( 46 ), + 42 AS col0
----
46
42

query I rowsort
SELECT ( 49 )
----
49

query I rowsort
SELECT CASE - 63 WHEN 40 * + 24 THEN NULL WHEN + + 38 * - + 73 - - NULLIF ( - 57 + 6, - 2 ) THEN NULL ELSE + 38 * - 16 + - 36 * - 65 END AS col0
----
1732

query II rowsort
SELECT ALL + 85 AS col0, + 33 * - 95
----
85
-3135

query I rowsort
SELECT - 73 * - - 2
----
-146

query I rowsort
SELECT CASE - 22 WHEN - - 58 * - 45 THEN - 44 - - + 54 WHEN - 43 THEN NULL ELSE + 79 * + 47 - - 67 END AS col1
----
3780

query I rowsort
SELECT + ( 17 ) AS col2
----
17

onlyif mysql # aggregate syntax: 
query III rowsort label-5089
SELECT ALL + 1 AS col0, ( - + 12 ) - + + 42 AS col2, - + COUNT( * )
----
1
-54
-1

skipif mysql # not compatible
query III rowsort label-5089
SELECT ALL + 1 AS col0, ( - + 12 ) - + + 42 AS col2, - + COUNT ( * )
----
1
-54
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5090
SELECT ALL + CASE - 26 WHEN + 51 THEN 55 / + COUNT( * ) ELSE + 81 END
----
81

skipif mysql # not compatible
query I rowsort label-5090
SELECT ALL + CASE - 26 WHEN + 51 THEN 55 / + COUNT ( * ) ELSE + 81 END
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-5091
SELECT + COALESCE ( + 51, + COUNT( * ), - COUNT( * ) * + 89 ) col1
----
51

skipif mysql # not compatible
query I rowsort label-5091
SELECT + COALESCE ( + 51, + COUNT ( * ), - COUNT ( * ) * + 89 ) col1
----
51

onlyif mysql # DIV for integer division: 
query I rowsort label-5092
SELECT + 37 * - 92 DIV + 46 AS col2
----
-74

skipif mysql # not compatible
query I rowsort label-5092
SELECT + 37 * - 92 / + 46 AS col2
----
-74

query I rowsort
SELECT + ( - + 94 )
----
-94

query I rowsort
SELECT + - 29 * 39 * + + 50 - 12 AS col2
----
-56562

onlyif mysql # aggregate syntax: 
query I rowsort label-5095
SELECT + - 45 * + + 99 * 4 + ( 36 ) * - SUM( 77 )
----
-20592

skipif mysql # not compatible
query I rowsort label-5095
SELECT + - 45 * + + 99 * 4 + ( 36 ) * - SUM ( 77 )
----
-20592

onlyif mysql # aggregate syntax: 
query I rowsort label-5096
SELECT + COUNT( * ) + + ( + 98 )
----
99

skipif mysql # not compatible
query I rowsort label-5096
SELECT + COUNT ( * ) + + ( + 98 )
----
99

query II rowsort
SELECT ALL - 81 col0, COALESCE ( 46, - + 46 * - 31, 52 )
----
-81
46

onlyif mysql # aggregate syntax: 
query I rowsort label-5098
SELECT + 58 + + 5 * ( + 37 ) / - 40 * - 61 - CASE COUNT( * ) WHEN ( 17 ) THEN 90 WHEN ( + 66 ) * - 80 THEN + 12 ELSE NULL END * 47
----
NULL

skipif mysql # not compatible
query I rowsort label-5098
SELECT + 58 + + 5 * ( + 37 ) / - 40 * - 61 - CASE COUNT ( * ) WHEN ( 17 ) THEN 90 WHEN ( + 66 ) * - 80 THEN + 12 ELSE NULL END * 47
----
NULL

query I rowsort
SELECT - + 55 AS col0
----
-55

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5100
SELECT + COUNT( DISTINCT + 53 ) DIV 27 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-5100
SELECT + COUNT ( DISTINCT + 53 ) / 27 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5101
SELECT ALL - ( + COUNT( * ) ) * COUNT( * ) * 82 + 87
----
5

skipif mysql # not compatible
query I rowsort label-5101
SELECT ALL - ( + COUNT ( * ) ) * COUNT ( * ) * 82 + 87
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-5102
SELECT - CASE - - COUNT( * ) WHEN - 28 * + 83 + - COUNT( * ) + - COALESCE ( 17, + 1, 97 + NULLIF ( + 37, + 41 ) ) THEN 4 + - 98 END * - 59 + - ( + ( 18 ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5102
SELECT - CASE - - COUNT ( * ) WHEN - 28 * + 83 + - COUNT ( * ) + - COALESCE ( 17, + 1, 97 + NULLIF ( + 37, + 41 ) ) THEN 4 + - 98 END * - 59 + - ( + ( 18 ) ) AS col1
----
NULL

query I rowsort
SELECT ALL + 63 * - - 26
----
1638

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5104
SELECT DISTINCT 55 + - + CAST( NULL AS SIGNED ) + 89
----
NULL

skipif mysql # not compatible
query I rowsort label-5104
SELECT DISTINCT 55 + - + CAST ( NULL AS INTEGER ) + 89
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5105
SELECT ALL CAST( 94 AS SIGNED ) AS col0
----
94

skipif mysql # not compatible
query I rowsort label-5105
SELECT ALL CAST ( 94 AS INTEGER ) AS col0
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-5106
SELECT DISTINCT - + 4 + + - SUM( DISTINCT + 87 )
----
-91

skipif mysql # not compatible
query I rowsort label-5106
SELECT DISTINCT - + 4 + + - SUM ( DISTINCT + 87 )
----
-91

onlyif mysql # DIV for integer division: 
query I rowsort label-5107
SELECT + + 19 + - 76 DIV + NULLIF ( + 4, + 16 ) - + 14 col2
----
-14

skipif mysql # not compatible
query I rowsort label-5107
SELECT + + 19 + - 76 / + NULLIF ( + 4, + 16 ) - + 14 col2
----
-14

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5108
SELECT DISTINCT + 96 AS col0, - 86 + + COUNT( * ) * 20 DIV + COUNT( * ) AS col0
----
96
-66

skipif mysql # not compatible
query II rowsort label-5108
SELECT DISTINCT + 96 AS col0, - 86 + + COUNT ( * ) * 20 / + COUNT ( * ) AS col0
----
96
-66

query II rowsort
SELECT - 89 AS col1, 19 AS col1
----
-89
19

onlyif mysql # DIV for integer division: 
query I rowsort label-5110
SELECT + 74 DIV - 64
----
-1

skipif mysql # not compatible
query I rowsort label-5110
SELECT + 74 / - 64
----
-1

query I rowsort
SELECT - 44 + - 89 * - ( + - 31 )
----
-2803

query I rowsort
SELECT + NULLIF ( - + 63, 30 ) AS col1
----
-63

onlyif mysql # aggregate syntax: 
query II rowsort label-5113
SELECT - + COUNT( * ) AS col0, - 22 * 68 - - 72 + - - 18 AS col0
----
-1
-1406

skipif mysql # not compatible
query II rowsort label-5113
SELECT - + COUNT ( * ) AS col0, - 22 * 68 - - 72 + - - 18 AS col0
----
-1
-1406

query I rowsort
SELECT DISTINCT + + 61 + - 88 * + 60
----
-5219

query I rowsort
SELECT ( - + 65 ) AS col0
----
-65

query I rowsort
SELECT DISTINCT 4 * - 47
----
-188

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5117
SELECT DISTINCT CAST( - 62 AS SIGNED ) AS col1
----
-62

skipif mysql # not compatible
query I rowsort label-5117
SELECT DISTINCT CAST ( - 62 AS INTEGER ) AS col1
----
-62

query I rowsort
SELECT ALL + ( 38 ) - - 63 * + 55 * + - 73 + 2 * + - 59 + - 52 col1
----
-253077

query I rowsort
SELECT - 36 * - 36 * + 16 + + 52 + - + 7 * + 15 * + ( 96 )
----
10708

query I rowsort
SELECT + 80 * - 25
----
-2000

query I rowsort
SELECT ALL + ( - + 31 ) AS col2
----
-31

onlyif mysql # aggregate syntax: 
query II rowsort label-5122
SELECT DISTINCT - MAX( + 92 ) AS col0, - 55 * - + 14 * 67 + - 7 + 55
----
-92
51638

skipif mysql # not compatible
query II rowsort label-5122
SELECT DISTINCT - MAX ( + 92 ) AS col0, - 55 * - + 14 * 67 + - 7 + 55
----
-92
51638

query I rowsort
SELECT 30 * + - 35 AS col0
----
-1050

query II rowsort
SELECT ALL + 93 * + 37 AS col0, - 44 AS col0
----
3441
-44

query I rowsort
SELECT DISTINCT + 84 * + 56 * - 40
----
-188160

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5126
SELECT DISTINCT + CAST( NULL AS SIGNED ) / - CAST( 45 AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5126
SELECT DISTINCT + CAST ( NULL AS INTEGER ) / - CAST ( 45 AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT ALL 14 * + 77
----
1078

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5128
SELECT ALL + 94 * CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-5128
SELECT ALL + 94 * CAST ( NULL AS REAL )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5129
SELECT 71 + CASE + 82 WHEN - 87 THEN NULL WHEN - - 3 THEN + 27 * - 95 * - CAST( NULL AS SIGNED ) + - ( COALESCE ( - 35, - 13 / - 13 - - 95, CAST( 35 AS SIGNED ) * 70 ) + COUNT( * ) ) / - COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-5129
SELECT 71 + CASE + 82 WHEN - 87 THEN NULL WHEN - - 3 THEN + 27 * - 95 * - CAST ( NULL AS INTEGER ) + - ( COALESCE ( - 35, - 13 / - 13 - - 95, CAST ( 35 AS INTEGER ) * 70 ) + COUNT ( * ) ) / - COUNT ( * ) END
----
NULL

query I rowsort
SELECT DISTINCT - 21 * + 43
----
-903

onlyif mysql # DIV for integer division: 
query I rowsort label-5131
SELECT - COALESCE ( - 66, + + COALESCE ( - 27, + + 4 ), 0 DIV - 79 * + 62 + - 54 * 27 ) * + 60 AS col1
----
3960

skipif mysql # not compatible
query I rowsort label-5131
SELECT - COALESCE ( - 66, + + COALESCE ( - 27, + + 4 ), 0 / - 79 * + 62 + - 54 * 27 ) * + 60 AS col1
----
3960

query I rowsort
SELECT ALL + ( 48 ) + - 4 AS col0
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-5133
SELECT ALL - 3 + - + COUNT( * ) * + 85
----
-88

skipif mysql # not compatible
query I rowsort label-5133
SELECT ALL - 3 + - + COUNT ( * ) * + 85
----
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-5134
SELECT DISTINCT - 95 + - - 79 + - COUNT( - - 86 ) AS col0
----
-17

skipif mysql # not compatible
query I rowsort label-5134
SELECT DISTINCT - 95 + - - 79 + - COUNT ( - - 86 ) AS col0
----
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-5135
SELECT DISTINCT + COALESCE ( 88, - + NULLIF ( 49, - 14 + + 97 * + - COUNT( * ) ) ) AS col2
----
88

skipif mysql # not compatible
query I rowsort label-5135
SELECT DISTINCT + COALESCE ( 88, - + NULLIF ( 49, - 14 + + 97 * + - COUNT ( * ) ) ) AS col2
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-5136
SELECT 95 * COUNT( * ) AS col2
----
95

skipif mysql # not compatible
query I rowsort label-5136
SELECT 95 * COUNT ( * ) AS col2
----
95

onlyif mysql # aggregate syntax: 
query II rowsort label-5137
SELECT - 15 * - + 52 AS col1, + CASE SUM( 87 ) WHEN 53 THEN - 81 WHEN 79 THEN NULL END AS col0
----
780
NULL

skipif mysql # not compatible
query II rowsort label-5137
SELECT - 15 * - + 52 AS col1, + CASE SUM ( 87 ) WHEN 53 THEN - 81 WHEN 79 THEN NULL END AS col0
----
780
NULL

query I rowsort
SELECT ALL - ( + 43 ) * + + 7 + 63 AS col2
----
-238

query I rowsort
SELECT ALL - 98 col1
----
-98

query I rowsort
SELECT - + 41 col2
----
-41

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5141
SELECT - + CAST( + 32 AS SIGNED )
----
-32

skipif mysql # not compatible
query I rowsort label-5141
SELECT - + CAST ( + 32 AS INTEGER )
----
-32

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5142
SELECT + 42 DIV COUNT( * ) AS col0
----
42

skipif mysql # not compatible
query I rowsort label-5142
SELECT + 42 / COUNT ( * ) AS col0
----
42

query I rowsort
SELECT ALL - 1 - + 70 * - + 76
----
5319

query I rowsort
SELECT ALL + + COALESCE ( 87, - + 23 ) * 12 AS col1
----
1044

query I rowsort
SELECT DISTINCT - 57 * - + NULLIF ( + 52, + + 43 )
----
2964

query I rowsort
SELECT DISTINCT + 39 AS col2
----
39

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5147
SELECT ALL ( - 61 ) DIV 70 + + - CAST( - + 4 AS SIGNED )
----
4

skipif mysql # not compatible
query I rowsort label-5147
SELECT ALL ( - 61 ) / 70 + + - CAST ( - + 4 AS INTEGER )
----
4

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5148
SELECT DISTINCT + MIN( ( - 45 ) ) DIV - 38 + + 19
----
20

skipif mysql # not compatible
query I rowsort label-5148
SELECT DISTINCT + MIN ( ( - 45 ) ) / - 38 + + 19
----
20

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5149
SELECT COALESCE ( + + CAST( - - 18 AS SIGNED ), - COUNT( * ) ) + COUNT( * )
----
19

skipif mysql # not compatible
query I rowsort label-5149
SELECT COALESCE ( + + CAST ( - - 18 AS INTEGER ), - COUNT ( * ) ) + COUNT ( * )
----
19

onlyif mysql # DIV for integer division: 
query I rowsort label-5150
SELECT 40 DIV - + 71
----
0

skipif mysql # not compatible
query I rowsort label-5150
SELECT 40 / - + 71
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5151
SELECT ALL ( NULLIF ( + 53, + + COUNT( * ) * + AVG ( DISTINCT + + 80 ) ) ) DIV + - 71 * + NULLIF ( - 78, - 27 )
----
0

skipif mysql # not compatible
query I rowsort label-5151
SELECT ALL ( NULLIF ( + 53, + + COUNT ( * ) * + AVG ( DISTINCT + + 80 ) ) ) / + - 71 * + NULLIF ( - 78, - 27 )
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5152
SELECT ( - CAST( - 88 AS SIGNED ) ) * + 40 * - - 43 * - - MAX( ALL CAST( - 21 AS DECIMAL ) ) + + CASE 35 + + 69 / 70 WHEN - ( + 44 ) THEN - 50 - ( - CAST( NULL AS DECIMAL ) + + 94 ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5152
SELECT ( - CAST ( - 88 AS INTEGER ) ) * + 40 * - - 43 * - - MAX ( ALL CAST ( - 21 AS REAL ) ) + + CASE 35 + + 69 / 70 WHEN - ( + 44 ) THEN - 50 - ( - CAST ( NULL AS REAL ) + + 94 ) END AS col1
----
NULL

query I rowsort
SELECT 47 + - - 78 + 49 * + 35 * + 26
----
44715

query I rowsort
SELECT 56 + 38 + - ( + 26 ) * + 97
----
-2428

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5155
SELECT CAST( NULL AS SIGNED ) / - + 89
----
NULL

skipif mysql # not compatible
query I rowsort label-5155
SELECT CAST ( NULL AS INTEGER ) / - + 89
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5156
SELECT ALL - 7 * - COUNT( * )
----
7

skipif mysql # not compatible
query I rowsort label-5156
SELECT ALL - 7 * - COUNT ( * )
----
7

query I rowsort
SELECT DISTINCT - ( + 20 ) AS col1
----
-20

query I rowsort
SELECT ALL - 98 * + 13
----
-1274

onlyif mysql # aggregate syntax: 
query I rowsort label-5159
SELECT ALL COUNT( * ) * COUNT( * ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-5159
SELECT ALL COUNT ( * ) * COUNT ( * ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5160
SELECT DISTINCT + 80 + - 47 * - COALESCE ( - COUNT( * ), - 47 ) AS col1
----
33

skipif mysql # not compatible
query I rowsort label-5160
SELECT DISTINCT + 80 + - 47 * - COALESCE ( - COUNT ( * ), - 47 ) AS col1
----
33

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5161
SELECT NULLIF ( + - CASE + + 25 WHEN - ( + COALESCE ( + ( - + CASE - 40 WHEN - COUNT( * ) + + 67 THEN NULL WHEN + MIN( DISTINCT - 82 ) + + 52 * - 87 THEN 2 / 13 ELSE + 75 * 35 END ), 60 * + NULLIF ( + 94 * + 91, + NULLIF ( 1, 8 * - 80 + 79 ) * - 48 ), 20 ) ) / + 29 THEN COUNT( * ) + CAST( NULL AS SIGNED ) ELSE ( - CASE - 13 WHEN + 59 * 19 THEN 18 ELSE NULL END ) / + 95 END, COALESCE ( 60, - COUNT( * ) ) ) * 23 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5161
SELECT NULLIF ( + - CASE + + 25 WHEN - ( + COALESCE ( + ( - + CASE - 40 WHEN - COUNT ( * ) + + 67 THEN NULL WHEN + MIN ( DISTINCT - 82 ) + + 52 * - 87 THEN 2 / 13 ELSE + 75 * 35 END ), 60 * + NULLIF ( + 94 * + 91, + NULLIF ( 1, 8 * - 80 + 79 ) * - 48 ), 20 ) ) / + 29 THEN COUNT ( * ) + CAST ( NULL AS INTEGER ) ELSE ( - CASE - 13 WHEN + 59 * 19 THEN 18 ELSE NULL END ) / + 95 END, COALESCE ( 60, - COUNT ( * ) ) ) * 23 AS col0
----
NULL

query II rowsort
SELECT 24, 31 AS col2
----
24
31

onlyif mysql # DIV for integer division: 
query I rowsort label-5163
SELECT 55 DIV - 3 AS col2
----
-18

skipif mysql # not compatible
query I rowsort label-5163
SELECT 55 / - 3 AS col2
----
-18

query I rowsort
SELECT 90 * + 92
----
8280

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5165
SELECT + - 92 * + CASE - + 26 WHEN - COALESCE ( - 96, - 25 ) - - + 76 * + + NULLIF ( + 57, + CASE COUNT( * ) WHEN 14 THEN - 63 END / NULLIF ( + 74, 67 ) ) THEN NULL WHEN + 90 THEN NULL WHEN 35 * 34 THEN 99 WHEN + NULLIF ( - 96, CAST( 78 AS DECIMAL ) * 41 ) THEN NULL ELSE NULL END * + 45 - ( 82 - 60 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5165
SELECT + - 92 * + CASE - + 26 WHEN - COALESCE ( - 96, - 25 ) - - + 76 * + + NULLIF ( + 57, + CASE COUNT ( * ) WHEN 14 THEN - 63 END / NULLIF ( + 74, 67 ) ) THEN NULL WHEN + 90 THEN NULL WHEN 35 * 34 THEN 99 WHEN + NULLIF ( - 96, CAST ( 78 AS REAL ) * 41 ) THEN NULL ELSE NULL END * + 45 - ( 82 - 60 )
----
NULL

query I rowsort
SELECT - ( - - 88 )
----
-88

query I rowsort
SELECT ALL + 37 + - 45 AS col0
----
-8

query II rowsort
SELECT DISTINCT - - 89, + 71 * + + 20 AS col1
----
89
1420

onlyif mysql # aggregate syntax: 
query I rowsort label-5169
SELECT 85 * + COUNT( DISTINCT + + 38 ) * 68 AS col1
----
5780

skipif mysql # not compatible
query I rowsort label-5169
SELECT 85 * + COUNT ( DISTINCT + + 38 ) * 68 AS col1
----
5780

query I rowsort
SELECT ALL + - 95 + - 65 AS col2
----
-160

query II rowsort
SELECT + 95, + 59 * 4 + - + 73 AS col1
----
95
163

onlyif mysql # aggregate syntax: 
query I rowsort label-5172
SELECT ALL - 66 + - COALESCE ( + 56, + + 70 + ( - COUNT( * ) ) - - 73 ) * - - 33
----
-1914

skipif mysql # not compatible
query I rowsort label-5172
SELECT ALL - 66 + - COALESCE ( + 56, + + 70 + ( - COUNT ( * ) ) - - 73 ) * - - 33
----
-1914

onlyif mysql # aggregate syntax: 
query II rowsort label-5173
SELECT - 28 col2, - COUNT( * ) AS col1
----
-28
-1

skipif mysql # not compatible
query II rowsort label-5173
SELECT - 28 col2, - COUNT ( * ) AS col1
----
-28
-1

query II rowsort
SELECT + + 77 AS col1, + 15
----
77
15

query I rowsort
SELECT ALL - NULLIF ( 84, 27 * + 42 + - 86 ) * 42 * + 17
----
-59976

query I rowsort
SELECT 10 + 26 AS col1
----
36

query I rowsort
SELECT 54 - 97 + - + 38 AS col2
----
-81

query I rowsort
SELECT + 36 * 75 + 26 AS col0
----
2726

onlyif mysql # DIV for integer division: 
query I rowsort label-5179
SELECT - 65 DIV + 63 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-5179
SELECT - 65 / + 63 AS col1
----
-1

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5180
SELECT ALL + 61 * COALESCE ( 64, + 7 * - + 99 DIV - - CAST( - 2 AS SIGNED ), - 38 + 91 ) AS col1
----
3904

skipif mysql # not compatible
query I rowsort label-5180
SELECT ALL + 61 * COALESCE ( 64, + 7 * - + 99 / - - CAST ( - 2 AS INTEGER ), - 38 + 91 ) AS col1
----
3904

onlyif mysql # aggregate syntax: 
query I rowsort label-5181
SELECT - COUNT( * ) * - 33 + - COUNT( * ) AS col1
----
32

skipif mysql # not compatible
query I rowsort label-5181
SELECT - COUNT ( * ) * - 33 + - COUNT ( * ) AS col1
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-5182
SELECT DISTINCT + ( - COALESCE ( - COUNT( ALL - ( 44 ) ), - COUNT( * ), 32 ) )
----
1

skipif mysql # not compatible
query I rowsort label-5182
SELECT DISTINCT + ( - COALESCE ( - COUNT ( ALL - ( 44 ) ), - COUNT ( * ), 32 ) )
----
1

query I rowsort
SELECT ALL - 70 - - 45
----
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-5184
SELECT DISTINCT COUNT( * ) * - ( 92 ) + - 84
----
-176

skipif mysql # not compatible
query I rowsort label-5184
SELECT DISTINCT COUNT ( * ) * - ( 92 ) + - 84
----
-176

query I rowsort
SELECT - 6 + - 98 AS col1
----
-104

onlyif mysql # aggregate syntax: 
query I rowsort label-5186
SELECT ALL + 89 - - COUNT( * )
----
90

skipif mysql # not compatible
query I rowsort label-5186
SELECT ALL + 89 - - COUNT ( * )
----
90

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5187
SELECT NULLIF ( - 65, - - CASE - - COUNT( * ) WHEN + - COUNT( * ) + + - CAST( - ( - 31 ) AS SIGNED ) THEN - 84 END / COUNT( * ) + 5 ) * + 11 AS col0
----
-715

skipif mysql # not compatible
query I rowsort label-5187
SELECT NULLIF ( - 65, - - CASE - - COUNT ( * ) WHEN + - COUNT ( * ) + + - CAST ( - ( - 31 ) AS INTEGER ) THEN - 84 END / COUNT ( * ) + 5 ) * + 11 AS col0
----
-715

onlyif mysql # aggregate syntax: 
query I rowsort label-5188
SELECT + MAX( DISTINCT + 79 ) + + 29
----
108

skipif mysql # not compatible
query I rowsort label-5188
SELECT + MAX ( DISTINCT + 79 ) + + 29
----
108

onlyif mysql # aggregate syntax: 
query I rowsort label-5189
SELECT - 74 * - SUM( - 3 )
----
-222

skipif mysql # not compatible
query I rowsort label-5189
SELECT - 74 * - SUM ( - 3 )
----
-222

onlyif mysql # aggregate syntax: 
query I rowsort label-5190
SELECT + CASE + + MAX( ALL 70 ) WHEN - 2 THEN NULL ELSE - 83 * + COUNT( * ) - + + 36 * - 74 END * - + 70 + - 99
----
-180769

skipif mysql # not compatible
query I rowsort label-5190
SELECT + CASE + + MAX ( ALL 70 ) WHEN - 2 THEN NULL ELSE - 83 * + COUNT ( * ) - + + 36 * - 74 END * - + 70 + - 99
----
-180769

onlyif mysql # aggregate syntax: 
query I rowsort label-5191
SELECT DISTINCT + 11 * + + 42 * - COUNT( * ) AS col1
----
-462

skipif mysql # not compatible
query I rowsort label-5191
SELECT DISTINCT + 11 * + + 42 * - COUNT ( * ) AS col1
----
-462

onlyif mysql # aggregate syntax: 
query II rowsort label-5192
SELECT + NULLIF ( 86, + 69 ) * - 7 * - + COUNT( * ), + 82 AS col2
----
602
82

skipif mysql # not compatible
query II rowsort label-5192
SELECT + NULLIF ( 86, + 69 ) * - 7 * - + COUNT ( * ), + 82 AS col2
----
602
82

onlyif mysql # aggregate syntax: 
query II rowsort label-5193
SELECT DISTINCT 73 + + - COUNT( * ) AS col1, 10 AS col0
----
72
10

skipif mysql # not compatible
query II rowsort label-5193
SELECT DISTINCT 73 + + - COUNT ( * ) AS col1, 10 AS col0
----
72
10

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5194
SELECT ALL 32 + + - 5 DIV + COUNT( * ) AS col2
----
27

skipif mysql # not compatible
query I rowsort label-5194
SELECT ALL 32 + + - 5 / + COUNT ( * ) AS col2
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-5195
SELECT CASE 85 WHEN ( - 19 ) + - + 48 + + 33 + + 48 THEN + + 38 WHEN + COUNT( - 13 ) - 38 THEN NULL ELSE + 25 END AS col1
----
25

skipif mysql # not compatible
query I rowsort label-5195
SELECT CASE 85 WHEN ( - 19 ) + - + 48 + + 33 + + 48 THEN + + 38 WHEN + COUNT ( - 13 ) - 38 THEN NULL ELSE + 25 END AS col1
----
25

query I rowsort
SELECT CASE 56 WHEN - 25 THEN NULL ELSE + - 92 - - - 29 END AS col0
----
-121

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5197
SELECT ALL 26 * - + 89 * + 37 + 67 - - COALESCE ( 52, - CAST( NULL AS SIGNED ) ) + + MIN( ALL + 30 ) * - CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-5197
SELECT ALL 26 * - + 89 * + 37 + 67 - - COALESCE ( 52, - CAST ( NULL AS INTEGER ) ) + + MIN ( ALL + 30 ) * - CAST ( NULL AS REAL )
----
NULL

query I rowsort
SELECT + 78 + - 26 * + 53
----
-1300

onlyif mysql # aggregate syntax: 
query I rowsort label-5199
SELECT DISTINCT 88 * 45 + 74 * ( COUNT( + + 87 ) ) AS col1
----
4034

skipif mysql # not compatible
query I rowsort label-5199
SELECT DISTINCT 88 * 45 + 74 * ( COUNT ( + + 87 ) ) AS col1
----
4034

query I rowsort
SELECT + 38 * + - 99 AS col1
----
-3762

query I rowsort
SELECT 81 * - 20 * + 59 + - 15 - - 50 * + + ( - - 98 ) + - 78 + 64
----
-90709

query I rowsort
SELECT ALL 21 * 57
----
1197

onlyif mysql # aggregate syntax: 
query I rowsort label-5203
SELECT - + ( - 84 ) + 83 + - 23 + COUNT( * ) * + COUNT( * ) + 73 - 18 AS col2
----
200

skipif mysql # not compatible
query I rowsort label-5203
SELECT - + ( - 84 ) + 83 + - 23 + COUNT ( * ) * + COUNT ( * ) + 73 - 18 AS col2
----
200

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5204
SELECT ALL - COALESCE ( - - 53, + CAST( NULL AS SIGNED ), - 14 + 27 DIV - + 59, - COUNT( * ) + - COUNT( * ) ) * 48 + + 28 AS col2
----
-2516

skipif mysql # not compatible
query I rowsort label-5204
SELECT ALL - COALESCE ( - - 53, + CAST ( NULL AS INTEGER ), - 14 + 27 / - + 59, - COUNT ( * ) + - COUNT ( * ) ) * 48 + + 28 AS col2
----
-2516

onlyif mysql # aggregate syntax: 
query I rowsort label-5205
SELECT - + 89 * - + ( + + ( - COUNT( * ) ) ) * COUNT( * ) + 28 - - 63 + - 98
----
-96

skipif mysql # not compatible
query I rowsort label-5205
SELECT - + 89 * - + ( + + ( - COUNT ( * ) ) ) * COUNT ( * ) + 28 - - 63 + - 98
----
-96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5206
SELECT DISTINCT ( NULLIF ( 88, 99 ) ) * CAST( NULL AS SIGNED ) AS col1, NULLIF ( - COUNT( * ), - ( + 14 ) )
----
NULL
-1

skipif mysql # not compatible
query II rowsort label-5206
SELECT DISTINCT ( NULLIF ( 88, 99 ) ) * CAST ( NULL AS INTEGER ) AS col1, NULLIF ( - COUNT ( * ), - ( + 14 ) )
----
NULL
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5207
SELECT + + COUNT( ALL 58 ) col0
----
1

skipif mysql # not compatible
query I rowsort label-5207
SELECT + + COUNT ( ALL 58 ) col0
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5208
SELECT DISTINCT + + COUNT( - CAST( NULL AS SIGNED ) )
----
0

skipif mysql # not compatible
query I rowsort label-5208
SELECT DISTINCT + + COUNT ( - CAST ( NULL AS INTEGER ) )
----
0

query I rowsort
SELECT + 36 * 48
----
1728

query I rowsort
SELECT ALL + - 80 col1
----
-80

query I rowsort
SELECT DISTINCT + + 28
----
28

query II rowsort
SELECT ALL - 68 * + - 38, + 90 AS col2
----
2584
90

query I rowsort
SELECT DISTINCT - - 42 * - 96 * + 17 * 17 + ( - + 53 ) AS col1
----
-1165301

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5214
SELECT ALL COALESCE ( - - 9, + 86 * COUNT( * ) + 39 + 84 * + + 28 * - CAST( NULL AS SIGNED ) DIV 56 + - 86 DIV 66 ) AS col1
----
9

skipif mysql # not compatible
query I rowsort label-5214
SELECT ALL COALESCE ( - - 9, + 86 * COUNT ( * ) + 39 + 84 * + + 28 * - CAST ( NULL AS INTEGER ) / 56 + - 86 / 66 ) AS col1
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-5215
SELECT ALL - + 75 * - COUNT( ALL 75 ) + - NULLIF ( 84, + 85 )
----
-9

skipif mysql # not compatible
query I rowsort label-5215
SELECT ALL - + 75 * - COUNT ( ALL 75 ) + - NULLIF ( 84, + 85 )
----
-9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5216
SELECT ALL - CASE + - 72 WHEN - - 51 THEN NULL WHEN - CAST( 88 AS DECIMAL ) THEN + CASE - SUM( ALL 36 ) WHEN - ( 4 ) + + 94 THEN - CAST( NULL AS SIGNED ) END + 93 * 14 ELSE + 72 * - 5 + 8 * 51 END AS col0
----
-48

skipif mysql # not compatible
query I rowsort label-5216
SELECT ALL - CASE + - 72 WHEN - - 51 THEN NULL WHEN - CAST ( 88 AS REAL ) THEN + CASE - SUM ( ALL 36 ) WHEN - ( 4 ) + + 94 THEN - CAST ( NULL AS INTEGER ) END + 93 * 14 ELSE + 72 * - 5 + 8 * 51 END AS col0
----
-48

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5217
SELECT - + 44 - COALESCE ( - 75, - + COUNT( * ) / - 57 ) + + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5217
SELECT - + 44 - COALESCE ( - 75, - + COUNT ( * ) / - 57 ) + + - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5218
SELECT ( - - CASE + CASE + + SUM( + 55 ) WHEN + - 69 THEN + 43 WHEN - 17 + - - 48 + + 60 THEN 39 + + COUNT( * ) ELSE 86 + - ( CAST( NULL AS SIGNED ) ) / + 6 END WHEN - CAST( NULL AS SIGNED ) THEN 49 * - 17 WHEN COUNT( + 48 ) * 4 + ( COUNT( * ) ) THEN NULL WHEN + 33 + - 41 THEN 73 ELSE NULL END ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5218
SELECT ( - - CASE + CASE + + SUM ( + 55 ) WHEN + - 69 THEN + 43 WHEN - 17 + - - 48 + + 60 THEN 39 + + COUNT ( * ) ELSE 86 + - ( CAST ( NULL AS INTEGER ) ) / + 6 END WHEN - CAST ( NULL AS INTEGER ) THEN 49 * - 17 WHEN COUNT ( + 48 ) * 4 + ( COUNT ( * ) ) THEN NULL WHEN + 33 + - 41 THEN 73 ELSE NULL END ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5219
SELECT - MIN( - - 24 )
----
-24

skipif mysql # not compatible
query I rowsort label-5219
SELECT - MIN ( - - 24 )
----
-24

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5220
SELECT ALL CAST( - 64 AS SIGNED )
----
-64

skipif mysql # not compatible
query I rowsort label-5220
SELECT ALL CAST ( - 64 AS INTEGER )
----
-64

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5221
SELECT DISTINCT + COALESCE ( + COALESCE ( 40, - 17, + - 94 ), + 97 ) * + CAST( - COUNT( 42 ) AS SIGNED ) * 45 + - ( 60 ) / - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5221
SELECT DISTINCT + COALESCE ( + COALESCE ( 40, - 17, + - 94 ), + 97 ) * + CAST ( - COUNT ( 42 ) AS INTEGER ) * 45 + - ( 60 ) / - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5222
SELECT DISTINCT 97 + 30 + 35 - - CAST( NULL AS SIGNED ) + - MAX( + 24 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5222
SELECT DISTINCT 97 + 30 + 35 - - CAST ( NULL AS INTEGER ) + - MAX ( + 24 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5223
SELECT - MIN( 9 )
----
-9

skipif mysql # not compatible
query I rowsort label-5223
SELECT - MIN ( 9 )
----
-9

query I rowsort
SELECT DISTINCT ( - 52 )
----
-52

query I rowsort
SELECT DISTINCT 32 + + 3 AS col2
----
35

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5226
SELECT 54, ( - - CAST( NULL AS SIGNED ) ) AS col1
----
54
NULL

skipif mysql # not compatible
query II rowsort label-5226
SELECT 54, ( - - CAST ( NULL AS INTEGER ) ) AS col1
----
54
NULL

query I rowsort
SELECT ALL - 35 + + - 66
----
-101

onlyif mysql # DIV for integer division: 
query II rowsort label-5228
SELECT DISTINCT + 80 + - 28 + - 36 AS col2, + 1 DIV + 43 AS col2
----
16
0

skipif mysql # not compatible
query II rowsort label-5228
SELECT DISTINCT + 80 + - 28 + - 36 AS col2, + 1 / + 43 AS col2
----
16
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5229
SELECT - 67 + + - COALESCE ( - COUNT( * ), + - 30 ) * - + CAST( + 81 AS SIGNED ) AS col0
----
-148

skipif mysql # not compatible
query I rowsort label-5229
SELECT - 67 + + - COALESCE ( - COUNT ( * ), + - 30 ) * - + CAST ( + 81 AS INTEGER ) AS col0
----
-148

onlyif mysql # aggregate syntax: 
query II rowsort label-5230
SELECT 62, CASE 79 WHEN 98 THEN NULL WHEN - 90 THEN - COUNT( * ) ELSE NULL END col1
----
62
NULL

skipif mysql # not compatible
query II rowsort label-5230
SELECT 62, CASE 79 WHEN 98 THEN NULL WHEN - 90 THEN - COUNT ( * ) ELSE NULL END col1
----
62
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5231
SELECT + 90 + - - 20 * - CAST( NULL AS SIGNED ) * + - COALESCE ( - + 28, - COALESCE ( 44, 20 ) + + - 60 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5231
SELECT + 90 + - - 20 * - CAST ( NULL AS INTEGER ) * + - COALESCE ( - + 28, - COALESCE ( 44, 20 ) + + - 60 )
----
NULL

query I rowsort
SELECT DISTINCT 96 + - 9 AS col0
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-5233
SELECT - MIN( DISTINCT - 29 )
----
29

skipif mysql # not compatible
query I rowsort label-5233
SELECT - MIN ( DISTINCT - 29 )
----
29

query I rowsort
SELECT DISTINCT + 32 col2
----
32

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5235
SELECT DISTINCT 16 DIV + MIN( ALL - 63 ) + - - 91 * + NULLIF ( + 44, + 28 ) * - COALESCE ( - 72, 23 ) AS col0
----
288288

skipif mysql # not compatible
query I rowsort label-5235
SELECT DISTINCT 16 / + MIN ( ALL - 63 ) + - - 91 * + NULLIF ( + 44, + 28 ) * - COALESCE ( - 72, 23 ) AS col0
----
288288

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5236
SELECT CAST( - MIN( + - 77 ) AS SIGNED )
----
77

skipif mysql # not compatible
query I rowsort label-5236
SELECT CAST ( - MIN ( + - 77 ) AS INTEGER )
----
77

query I rowsort
SELECT DISTINCT + - 10 AS col2
----
-10

onlyif mysql # DIV for integer division: 
query I rowsort label-5238
SELECT ALL - - 97 DIV - 13 - - 68
----
61

skipif mysql # not compatible
query I rowsort label-5238
SELECT ALL - - 97 / - 13 - - 68
----
61

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5239
SELECT + - CASE + COUNT( * ) WHEN + + 85 * - - 41 + + 15 + - - 83 THEN 45 WHEN + - 9 + - 60 + 18 + - 68 THEN + 53 END * CASE + 56 WHEN + ( 92 ) THEN - 5 - + 39 WHEN 5 / 24 - 63 * - 24 THEN NULL ELSE - COALESCE ( CAST( NULL AS SIGNED ), MAX( 94 ) * + 80 + + SUM( ALL + 35 + - 27 ) * - COALESCE ( - CAST( - 32 AS DECIMAL ), 89 ) ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5239
SELECT + - CASE + COUNT ( * ) WHEN + + 85 * - - 41 + + 15 + - - 83 THEN 45 WHEN + - 9 + - 60 + 18 + - 68 THEN + 53 END * CASE + 56 WHEN + ( 92 ) THEN - 5 - + 39 WHEN 5 / 24 - 63 * - 24 THEN NULL ELSE - COALESCE ( CAST ( NULL AS INTEGER ), MAX ( 94 ) * + 80 + + SUM ( ALL + 35 + - 27 ) * - COALESCE ( - CAST ( - 32 AS REAL ), 89 ) ) END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5240
SELECT COUNT( * ), - 24 - - + 22 + - ( 93 ) col2
----
1
-95

skipif mysql # not compatible
query II rowsort label-5240
SELECT COUNT ( * ), - 24 - - + 22 + - ( 93 ) col2
----
1
-95

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5241
SELECT ALL + + 78 DIV 81 - - + CAST( - COUNT( * ) AS SIGNED )
----
-1

skipif mysql # not compatible
query I rowsort label-5241
SELECT ALL + + 78 / 81 - - + CAST ( - COUNT ( * ) AS INTEGER )
----
-1

query I rowsort
SELECT + 38 * - 52
----
-1976

onlyif mysql # aggregate syntax: 
query I rowsort label-5243
SELECT + + COUNT( * ) - + 51 AS col1
----
-50

skipif mysql # not compatible
query I rowsort label-5243
SELECT + + COUNT ( * ) - + 51 AS col1
----
-50

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5244
SELECT ALL 36 * + + 26 + + 99 - 88 - 62 DIV - COUNT( - 90 ) AS col0
----
1009

skipif mysql # not compatible
query I rowsort label-5244
SELECT ALL 36 * + + 26 + + 99 - 88 - 62 / - COUNT ( - 90 ) AS col0
----
1009

query I rowsort
SELECT ALL - ( - 6 ) * - + 52 + + - 11
----
-323

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5246
SELECT + 70 * + COUNT( * ) * 8 AS col2, CAST( NULL AS SIGNED ) AS col1
----
560
NULL

skipif mysql # not compatible
query II rowsort label-5246
SELECT + 70 * + COUNT ( * ) * 8 AS col2, CAST ( NULL AS INTEGER ) AS col1
----
560
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5247
SELECT DISTINCT NULLIF ( - - 62, - 16 ) * + MIN( DISTINCT + 35 ) AS col0
----
2170

skipif mysql # not compatible
query I rowsort label-5247
SELECT DISTINCT NULLIF ( - - 62, - 16 ) * + MIN ( DISTINCT + 35 ) AS col0
----
2170

query I rowsort
SELECT + - 17 * - 77 + - 71 * + 90 col0
----
-5081

onlyif mysql # aggregate syntax: 
query I rowsort label-5249
SELECT - - 84 * - - SUM( + 2 ) AS col0
----
168

skipif mysql # not compatible
query I rowsort label-5249
SELECT - - 84 * - - SUM ( + 2 ) AS col0
----
168

query I rowsort
SELECT ALL 58 * + ( - 3 ) + 45
----
-129

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5251
SELECT + COUNT( * ) + NULLIF ( NULLIF ( + + 65, - CASE + - 79 WHEN 30 + - + MIN( 50 ) + + 14 THEN NULL WHEN + 39 THEN - CAST( NULL AS SIGNED ) + 76 ELSE - COUNT( * ) END ), 17 ) - + MIN( - 62 ) * + 96 * 72 AS col2
----
428610

skipif mysql # not compatible
query I rowsort label-5251
SELECT + COUNT ( * ) + NULLIF ( NULLIF ( + + 65, - CASE + - 79 WHEN 30 + - + MIN ( 50 ) + + 14 THEN NULL WHEN + 39 THEN - CAST ( NULL AS INTEGER ) + 76 ELSE - COUNT ( * ) END ), 17 ) - + MIN ( - 62 ) * + 96 * 72 AS col2
----
428610

onlyif mysql # aggregate syntax: 
query I rowsort label-5252
SELECT MIN( ALL 57 ) * + + 23 * + 89 * + - ( 77 ) * - + 61 - + 38 - - 90
----
548041315

skipif mysql # not compatible
query I rowsort label-5252
SELECT MIN ( ALL 57 ) * + + 23 * + 89 * + - ( 77 ) * - + 61 - + 38 - - 90
----
548041315

query I rowsort
SELECT + 36 * - + 12 AS col2
----
-432

onlyif mysql # aggregate syntax: 
query II rowsort label-5254
SELECT 42 + - - 50 * + COUNT( * ) * - - 83 * + 54 AS col0, 4 AS col0
----
224142
4

skipif mysql # not compatible
query II rowsort label-5254
SELECT 42 + - - 50 * + COUNT ( * ) * - - 83 * + 54 AS col0, 4 AS col0
----
224142
4

query I rowsort
SELECT ALL - 29 col2
----
-29

query I rowsort
SELECT 47 * + 49 + + + 65 - - 23 + 13 + - 44 * - + 23 AS col0
----
3416

query I rowsort
SELECT 59 * 38
----
2242

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5258
SELECT ALL + 11 + CAST( + 31 AS SIGNED ) AS col0
----
42

skipif mysql # not compatible
query I rowsort label-5258
SELECT ALL + 11 + CAST ( + 31 AS INTEGER ) AS col0
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-5259
SELECT 40 + - - COUNT( * ) + 49 * - - ( 38 ) * + + COUNT( * ) * COUNT( * ) AS col1
----
1903

skipif mysql # not compatible
query I rowsort label-5259
SELECT 40 + - - COUNT ( * ) + 49 * - - ( 38 ) * + + COUNT ( * ) * COUNT ( * ) AS col1
----
1903

query I rowsort
SELECT 49 + + 9
----
58

query I rowsort
SELECT ALL - 39 * + 69
----
-2691

query I rowsort
SELECT ALL - 66 + + 99 AS col1
----
33

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5263
SELECT - 89, + COUNT( DISTINCT - - 36 ) * - + ( 71 ) * - - COALESCE ( - 3, - - 14, + 73 DIV + 39 ) * - 19 * COALESCE ( NULLIF ( 87, - 66 ), 4 * COUNT( * ) ) - COUNT( * ) DIV 91 AS col0
----
-89
-352089

skipif mysql # not compatible
query II rowsort label-5263
SELECT - 89, + COUNT ( DISTINCT - - 36 ) * - + ( 71 ) * - - COALESCE ( - 3, - - 14, + 73 / + 39 ) * - 19 * COALESCE ( NULLIF ( 87, - 66 ), 4 * COUNT ( * ) ) - COUNT ( * ) / 91 AS col0
----
-89
-352089

onlyif mysql # aggregate syntax: 
query II rowsort label-5264
SELECT - 90 AS col0, 2 * - ( - + 45 ) * - - COUNT( * )
----
-90
90

skipif mysql # not compatible
query II rowsort label-5264
SELECT - 90 AS col0, 2 * - ( - + 45 ) * - - COUNT ( * )
----
-90
90

onlyif mysql # aggregate syntax: 
query I rowsort label-5265
SELECT COUNT( * ) * - - COUNT( * ) * 15
----
15

skipif mysql # not compatible
query I rowsort label-5265
SELECT COUNT ( * ) * - - COUNT ( * ) * 15
----
15

query I rowsort
SELECT 75 + + 87 * + 51
----
4512

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5267
SELECT 81 DIV + + SUM( 55 )
----
1

skipif mysql # not compatible
query I rowsort label-5267
SELECT 81 / + + SUM ( 55 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5268
SELECT MIN( + 63 ) + - 46
----
17

skipif mysql # not compatible
query I rowsort label-5268
SELECT MIN ( + 63 ) + - 46
----
17

onlyif mysql # aggregate syntax: 
query II rowsort label-5269
SELECT ALL 0, + MAX( + 59 ) AS col0
----
0
59

skipif mysql # not compatible
query II rowsort label-5269
SELECT ALL 0, + MAX ( + 59 ) AS col0
----
0
59

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-5270
SELECT 10, - 84 + 17 - + 79 + - - 24 DIV COALESCE ( COUNT( - CAST( - + 57 AS SIGNED ) ), + - 96 - - 24 - - 64, - 71 * + 80 - 30 * NULLIF ( ( 2 ) * + 16, + 39 ) ) AS col0
----
10
-122

skipif mysql # not compatible
query II rowsort label-5270
SELECT 10, - 84 + 17 - + 79 + - - 24 / COALESCE ( COUNT ( - CAST ( - + 57 AS INTEGER ) ), + - 96 - - 24 - - 64, - 71 * + 80 - 30 * NULLIF ( ( 2 ) * + 16, + 39 ) ) AS col0
----
10
-122

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5271
SELECT 45, - COALESCE ( + 4, + 54 * + 14 DIV - - 99, + NULLIF ( 16, 15 + - 57 * + - 87 DIV - NULLIF ( SUM( DISTINCT + 81 ) * - CASE - 13 * 97 WHEN - COUNT( * ) + 8 THEN + COUNT( 99 ) * ( MIN( DISTINCT 54 ) ) END, 51 ) ) ) AS col0
----
45
-4

skipif mysql # not compatible
query II rowsort label-5271
SELECT 45, - COALESCE ( + 4, + 54 * + 14 / - - 99, + NULLIF ( 16, 15 + - 57 * + - 87 / - NULLIF ( SUM ( DISTINCT + 81 ) * - CASE - 13 * 97 WHEN - COUNT ( * ) + 8 THEN + COUNT ( 99 ) * ( MIN ( DISTINCT 54 ) ) END, 51 ) ) ) AS col0
----
45
-4

query I rowsort
SELECT 94 + 74
----
168

onlyif mysql # DIV for integer division: 
query I rowsort label-5273
SELECT ALL + 4 DIV + + 17 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-5273
SELECT ALL + 4 / + + 17 AS col1
----
0

query I rowsort
SELECT 71 + 18 * - 71
----
-1207

query I rowsort
SELECT DISTINCT + 31 - + - 26 AS col0
----
57

query I rowsort
SELECT 81 + - 76 AS col1
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-5277
SELECT DISTINCT 42 - - 10 + + COUNT( - + 73 ) + 89
----
142

skipif mysql # not compatible
query I rowsort label-5277
SELECT DISTINCT 42 - - 10 + + COUNT ( - + 73 ) + 89
----
142

query II rowsort
SELECT ALL 66 AS col2, 97 AS col0
----
66
97

query I rowsort
SELECT 61 + + 21
----
82

query I rowsort
SELECT 39 * + 57 AS col0
----
2223

query I rowsort
SELECT + + 83
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-5282
SELECT 73 * - COUNT( * ) - ( + 10 ) AS col0
----
-83

skipif mysql # not compatible
query I rowsort label-5282
SELECT 73 * - COUNT ( * ) - ( + 10 ) AS col0
----
-83

query I rowsort
SELECT + 9 * + 1
----
9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5284
SELECT + ( + NULLIF ( + 58, ( - + 78 ) + + 16 - 81 ) ) + + 65 + - NULLIF ( 45, - - 65 / COUNT( * ) - MIN( - NULLIF ( 50, + 7 - 81 * 91 ) ) ) - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5284
SELECT + ( + NULLIF ( + 58, ( - + 78 ) + + 16 - 81 ) ) + + 65 + - NULLIF ( 45, - - 65 / COUNT ( * ) - MIN ( - NULLIF ( 50, + 7 - 81 * 91 ) ) ) - CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5285
SELECT - 4 * + COUNT( * ) + 22 + 69 AS col2, - ( + CASE + 85 WHEN - 77 / - CAST( + CASE - + 51 WHEN 79 THEN + 95 + 13 * ( 60 * 77 ) END AS SIGNED ) + + 82 - COUNT( * ) * COUNT( * ) THEN NULL WHEN SUM( ALL 99 ) THEN COUNT( * ) ELSE COUNT( * ) * - ( COUNT( * ) ) END ) * 46 - 83
----
87
-37

skipif mysql # not compatible
query II rowsort label-5285
SELECT - 4 * + COUNT ( * ) + 22 + 69 AS col2, - ( + CASE + 85 WHEN - 77 / - CAST ( + CASE - + 51 WHEN 79 THEN + 95 + 13 * ( 60 * 77 ) END AS INTEGER ) + + 82 - COUNT ( * ) * COUNT ( * ) THEN NULL WHEN SUM ( ALL 99 ) THEN COUNT ( * ) ELSE COUNT ( * ) * - ( COUNT ( * ) ) END ) * 46 - 83
----
87
-37

query II rowsort
SELECT ALL - - 1, - 20 AS col1
----
1
-20

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5287
SELECT ALL - 74 * - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5287
SELECT ALL - 74 * - CAST ( NULL AS INTEGER ) AS col1
----
NULL

query II rowsort
SELECT - 42, 12 * - 34 AS col2
----
-42
-408

onlyif mysql # aggregate syntax: 
query I rowsort label-5289
SELECT NULLIF ( - COUNT( * ), + + NULLIF ( - 37, - 48 ) ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-5289
SELECT NULLIF ( - COUNT ( * ), + + NULLIF ( - 37, - 48 ) ) AS col0
----
-1

query I rowsort
SELECT + + ( CASE + 28 WHEN - 46 THEN - 6 WHEN 42 + COALESCE ( 18, - 6 ) THEN - 36 END ) col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5291
SELECT CASE + COALESCE ( - 63, 95, 73 / ( + 41 ), + CAST( - 32 AS DECIMAL ) - + 63 ) WHEN + CAST( NULL AS SIGNED ) THEN + 8 * - 45 ELSE NULL END / COALESCE ( - 75 - + 27 * 66, - 46 * - 25 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5291
SELECT CASE + COALESCE ( - 63, 95, 73 / ( + 41 ), + CAST ( - 32 AS REAL ) - + 63 ) WHEN + CAST ( NULL AS INTEGER ) THEN + 8 * - 45 ELSE NULL END / COALESCE ( - 75 - + 27 * 66, - 46 * - 25 )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5292
SELECT DISTINCT - 89 + + 52 * - AVG ( DISTINCT - + 4 ) * CAST( NULL AS SIGNED ) - 32 / + + 68 * - ( 17 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5292
SELECT DISTINCT - 89 + + 52 * - AVG ( DISTINCT - + 4 ) * CAST ( NULL AS INTEGER ) - 32 / + + 68 * - ( 17 ) AS col2
----
NULL

query I rowsort
SELECT DISTINCT 80 + - + 75
----
5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5294
SELECT DISTINCT ( 97 ) * + - COALESCE ( - 84, + COUNT( * ) - CAST( NULL AS SIGNED ) ) * 49 + 55 - + 78
----
399229

skipif mysql # not compatible
query I rowsort label-5294
SELECT DISTINCT ( 97 ) * + - COALESCE ( - 84, + COUNT ( * ) - CAST ( NULL AS INTEGER ) ) * 49 + 55 - + 78
----
399229

onlyif mysql # DIV for integer division: 
query I rowsort label-5295
SELECT ( + 19 ) DIV + ( - - NULLIF ( 96, + 75 ) ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-5295
SELECT ( + 19 ) / + ( - - NULLIF ( 96, + 75 ) ) AS col0
----
0

query I rowsort
SELECT DISTINCT 80 AS col1
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-5297
SELECT ALL COUNT( - 9 ) + - COUNT( * ) - COUNT( * ) * + + 65 AS col2
----
-65

skipif mysql # not compatible
query I rowsort label-5297
SELECT ALL COUNT ( - 9 ) + - COUNT ( * ) - COUNT ( * ) * + + 65 AS col2
----
-65

query I rowsort
SELECT ( - - 93 ) - - - 80 + - NULLIF ( + - 79, - + 87 * + 19 )
----
92

query I rowsort
SELECT 1 col1
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-5300
SELECT COUNT( * ) * + 26 AS col1, + 73
----
26
73

skipif mysql # not compatible
query II rowsort label-5300
SELECT COUNT ( * ) * + 26 AS col1, + 73
----
26
73

query I rowsort
SELECT DISTINCT CASE - 55 WHEN + - ( + 86 ) THEN NULL WHEN + 18 * + 80 THEN - - 88 * - - 86 * - 76 * 50 END - + CASE + 78 WHEN 51 THEN - 69 - 64 * 23 WHEN 60 * + 72 THEN - 30 * 51 + 99 END + 24
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5302
SELECT 71 + COUNT( + NULLIF ( + CAST( NULL AS SIGNED ), - 57 ) )
----
71

skipif mysql # not compatible
query I rowsort label-5302
SELECT 71 + COUNT ( + NULLIF ( + CAST ( NULL AS INTEGER ), - 57 ) )
----
71

query I rowsort
SELECT 84 - + 71 + + + 79
----
92

onlyif mysql # aggregate syntax: 
query I rowsort label-5304
SELECT DISTINCT + COUNT( 60 ) * - 94 AS col0
----
-94

skipif mysql # not compatible
query I rowsort label-5304
SELECT DISTINCT + COUNT ( 60 ) * - 94 AS col0
----
-94

query I rowsort
SELECT ALL 72 * + CASE - 28 WHEN 44 + + ( 87 ) THEN NULL WHEN - 37 THEN - 54 ELSE NULL END * 72 AS col1
----
NULL

query I rowsort
SELECT 87 col2
----
87

query I rowsort
SELECT 6 + - - 80
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-5308
SELECT DISTINCT + 96 - 69 + COUNT( * ) + - 50
----
-22

skipif mysql # not compatible
query I rowsort label-5308
SELECT DISTINCT + 96 - 69 + COUNT ( * ) + - 50
----
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-5309
SELECT - - COUNT( - 40 )
----
1

skipif mysql # not comp