sqllogictest
Artifact Content
Not logged in

Artifact ba6dea2840e82a79ce58c19ed5fdf1949ed6bec5:


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 # aggregate syntax: 
query I rowsort label-0
SELECT ALL 88 - + 34 - + + 40 + + 14 + - 42 * + + COALESCE ( - + 29, + + 95 ) * COUNT( * )
----
1246

skipif mysql # not compatible
query I rowsort label-0
SELECT ALL 88 - + 34 - + + 40 + + 14 + - 42 * + + COALESCE ( - + 29, + + 95 ) * COUNT ( * )
----
1246

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-1
SELECT ALL + CAST( NULL AS DECIMAL ) * - + ( - - 25 ) / COUNT( * ), + 77 * - + 30 AS col2
----
NULL
-2310

skipif mysql # not compatible
query II rowsort label-1
SELECT ALL + CAST ( NULL AS REAL ) * - + ( - - 25 ) / COUNT ( * ), + 77 * - + 30 AS col2
----
NULL
-2310

onlyif mysql # aggregate syntax: 
query I rowsort label-2
SELECT ALL 52 - - COUNT( * ) * - ( - + NULLIF ( 3, 97 / - 22 + - ( - - 13 ) + + 63 ) ) * 74 AS col0
----
274

skipif mysql # not compatible
query I rowsort label-2
SELECT ALL 52 - - COUNT ( * ) * - ( - + NULLIF ( 3, 97 / - 22 + - ( - - 13 ) + + 63 ) ) * 74 AS col0
----
274

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

skipif mysql # not compatible
query I rowsort label-3
SELECT DISTINCT + 84 * - COUNT ( * ) AS col0
----
-84

query I rowsort
SELECT DISTINCT NULLIF ( - 0, - 65 ) AS col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-5
SELECT DISTINCT 83 - 24 + - + CAST( NULL AS DECIMAL ) / - - 7 AS col2, - COUNT( * ) AS col1
----
NULL
-1

skipif mysql # not compatible
query II rowsort label-5
SELECT DISTINCT 83 - 24 + - + CAST ( NULL AS REAL ) / - - 7 AS col2, - COUNT ( * ) AS col1
----
NULL
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-6
SELECT + 57 * + 19 * - CASE 13 WHEN + COUNT( * ) THEN + 5 ELSE + - COUNT( ALL + - 62 ) END AS col1
----
1083

skipif mysql # not compatible
query I rowsort label-6
SELECT + 57 * + 19 * - CASE 13 WHEN + COUNT ( * ) THEN + 5 ELSE + - COUNT ( ALL + - 62 ) END AS col1
----
1083

query I rowsort
SELECT ALL - + 22 * + 85 * + 85 AS col2
----
-158950

query I rowsort
SELECT DISTINCT + - 60 * 65
----
-3900

query I rowsort
SELECT - 53 * - 97
----
5141

query II rowsort
SELECT ( - 62 ) col2, + 15 - - 94 AS col2
----
-62
109

onlyif mysql # aggregate syntax: 
query I rowsort label-11
SELECT - + NULLIF ( + + 73, - COUNT( * ) - CASE - 14 WHEN + 12 THEN + COUNT( * ) END ) * - 48 AS col0
----
3504

skipif mysql # not compatible
query I rowsort label-11
SELECT - + NULLIF ( + + 73, - COUNT ( * ) - CASE - 14 WHEN + 12 THEN + COUNT ( * ) END ) * - 48 AS col0
----
3504

query II rowsort
SELECT - - 89 + 22, - 12 * + NULLIF ( - + 64, + - 83 * 7 - 53 + - + 58 ) * + 40 AS col1
----
111
30720

onlyif mysql # aggregate syntax: 
query I rowsort label-13
SELECT ALL + MIN( ( + + NULLIF ( 79, - 35 ) ) ) AS col1
----
79

skipif mysql # not compatible
query I rowsort label-13
SELECT ALL + MIN ( ( + + NULLIF ( 79, - 35 ) ) ) AS col1
----
79

query I rowsort
SELECT - - 40 * + 10 AS col2
----
400

onlyif mysql # aggregate syntax: 
query I rowsort label-15
SELECT ALL 22 * - + ( COUNT( * ) ) * 64 + + - 57 + - COUNT( * )
----
-1466

skipif mysql # not compatible
query I rowsort label-15
SELECT ALL 22 * - + ( COUNT ( * ) ) * 64 + + - 57 + - COUNT ( * )
----
-1466

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

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

query I rowsort
SELECT ALL + 85 * - + 38
----
-3230

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-18
SELECT - CAST( + + 42 AS SIGNED ) * - 32 + - CAST( - + 8 AS SIGNED )
----
1352

skipif mysql # not compatible
query I rowsort label-18
SELECT - CAST ( + + 42 AS INTEGER ) * - 32 + - CAST ( - + 8 AS INTEGER )
----
1352

onlyif mysql # aggregate syntax: 
query I rowsort label-19
SELECT ALL + COUNT( * ) * - COALESCE ( 56, - 26 ) + ( + 77 )
----
21

skipif mysql # not compatible
query I rowsort label-19
SELECT ALL + COUNT ( * ) * - COALESCE ( 56, - 26 ) + ( + 77 )
----
21

query I rowsort
SELECT ALL + ( + + 11 ) * + 71 AS col0
----
781

query I rowsort
SELECT DISTINCT 19 * + 26 + - 83
----
411

query I rowsort
SELECT DISTINCT + 60 * 42 col2
----
2520

onlyif mysql # aggregate syntax: 
query I rowsort label-23
SELECT DISTINCT + 51 * - SUM( 66 ) * 72 AS col0
----
-242352

skipif mysql # not compatible
query I rowsort label-23
SELECT DISTINCT + 51 * - SUM ( 66 ) * 72 AS col0
----
-242352

query I rowsort
SELECT + CASE + - 38 WHEN - 86 THEN + 82 WHEN - 82 * - + 14 THEN NULL ELSE NULL END
----
NULL

query I rowsort
SELECT ALL - 88 * - COALESCE ( - 26, + 6 ) + - 90
----
-2378

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-26
SELECT + 54 * - + CAST( - 31 AS SIGNED ) * + 80 + - - 35 AS col0
----
133955

skipif mysql # not compatible
query I rowsort label-26
SELECT + 54 * - + CAST ( - 31 AS INTEGER ) * + 80 + - - 35 AS col0
----
133955

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-28
SELECT + NULLIF ( + - COUNT( * ), 59 )
----
-1

skipif mysql # not compatible
query I rowsort label-28
SELECT + NULLIF ( + - COUNT ( * ), 59 )
----
-1

query I rowsort
SELECT CASE + + 87 WHEN CASE 74 WHEN + 31 + + ( - 27 ) THEN NULL WHEN + 48 * - 97 + 6 - + - 45 + 31 THEN - 35 END THEN - ( - - 72 ) END
----
NULL

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

query I rowsort
SELECT - 68 * + 41 - + ( 74 ) AS col2
----
-2862

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-32
SELECT DISTINCT CAST( - - COUNT( * ) AS SIGNED )
----
1

skipif mysql # not compatible
query I rowsort label-32
SELECT DISTINCT CAST ( - - COUNT ( * ) AS INTEGER )
----
1

query I rowsort
SELECT ALL NULLIF ( 52, - - 41 ) * - 91
----
-4732

onlyif mysql # aggregate syntax: 
query I rowsort label-34
SELECT + 64 * - 48 * - MAX( ALL ( 41 ) ) AS col1
----
125952

skipif mysql # not compatible
query I rowsort label-34
SELECT + 64 * - 48 * - MAX ( ALL ( 41 ) ) AS col1
----
125952

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

onlyif mysql # aggregate syntax: 
query II rowsort label-36
SELECT ALL NULLIF ( - 45, + 7 ), ( COUNT( * ) ) + - 55 + - 25 AS col0
----
-45
-79

skipif mysql # not compatible
query II rowsort label-36
SELECT ALL NULLIF ( - 45, + 7 ), ( COUNT ( * ) ) + - 55 + - 25 AS col0
----
-45
-79

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

query I rowsort
SELECT + 11 + + 52 AS col0
----
63

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

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

query I rowsort
SELECT + 28 * + 54 AS col2
----
1512

onlyif mysql # aggregate syntax: 
query I rowsort label-41
SELECT + NULLIF ( + COUNT( * ), 96 ) * + COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-41
SELECT + NULLIF ( + COUNT ( * ), 96 ) * + COUNT ( * )
----
1

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

skipif mysql # not compatible
query I rowsort label-42
SELECT DISTINCT COUNT ( + 15 ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-43
SELECT + MAX( CASE 90 WHEN - 63 + CASE ( 84 ) WHEN 56 THEN 9 WHEN 69 THEN 58 ELSE + 63 END THEN NULL WHEN + 95 THEN 46 END ) * + 54
----
NULL

skipif mysql # not compatible
query I rowsort label-43
SELECT + MAX ( CASE 90 WHEN - 63 + CASE ( 84 ) WHEN 56 THEN 9 WHEN 69 THEN 58 ELSE + 63 END THEN NULL WHEN + 95 THEN 46 END ) * + 54
----
NULL

query I rowsort
SELECT + 57 + + 93 * + 58 AS col0
----
5451

onlyif mysql # aggregate syntax: 
query I rowsort label-45
SELECT DISTINCT + 54 + COUNT( * ) AS col0
----
55

skipif mysql # not compatible
query I rowsort label-45
SELECT DISTINCT + 54 + COUNT ( * ) AS col0
----
55

query I rowsort
SELECT ALL + 36 + + 33 * + 48 AS col0
----
1620

query I rowsort
SELECT DISTINCT 74 * + 96
----
7104

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-50
SELECT 82 DIV 45 + 2 AS col2
----
3

skipif mysql # not compatible
query I rowsort label-50
SELECT 82 / 45 + 2 AS col2
----
3

query I rowsort
SELECT ( - 15 ) - 93 col2
----
-108

query I rowsort
SELECT 75 * + ( 77 )
----
5775

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

skipif mysql # not compatible
query I rowsort label-53
SELECT ALL 73 * CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-54
SELECT ALL - CASE 87 WHEN + 28 * + 59 - COALESCE ( 48, + ( + COUNT( ALL 29 ) ) + CASE 25 - COUNT( * ) WHEN - 68 THEN NULL WHEN + 85 THEN - 85 + 99 END ) THEN - 99 WHEN 99 THEN NULL ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-54
SELECT ALL - CASE 87 WHEN + 28 * + 59 - COALESCE ( 48, + ( + COUNT ( ALL 29 ) ) + CASE 25 - COUNT ( * ) WHEN - 68 THEN NULL WHEN + 85 THEN - 85 + 99 END ) THEN - 99 WHEN 99 THEN NULL ELSE NULL END AS col2
----
NULL

query I rowsort
SELECT DISTINCT - 92 + 57 * + 75
----
4183

onlyif mysql # DIV for integer division: 
query I rowsort label-56
SELECT ALL - 19 + 35 DIV 44
----
-19

skipif mysql # not compatible
query I rowsort label-56
SELECT ALL - 19 + 35 / 44
----
-19

query I rowsort
SELECT 7 - + 76
----
-69

query I rowsort
SELECT ALL - NULLIF ( 4, - 50 )
----
-4

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

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

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

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

query I rowsort
SELECT 38 * + 15 + - 20
----
550

query I rowsort
SELECT DISTINCT + 2 * 76
----
152

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-64
SELECT 48 * 63 + COUNT( * ) * - ( - 94 ) AS col1
----
3118

skipif mysql # not compatible
query I rowsort label-64
SELECT 48 * 63 + COUNT ( * ) * - ( - 94 ) AS col1
----
3118

query I rowsort
SELECT 32 * - 89 AS col2
----
-2848

onlyif mysql # aggregate syntax: 
query I rowsort label-66
SELECT DISTINCT - COALESCE ( 90, NULLIF ( 20, 27 + + 17 ) - - 42 ) * - COUNT( * ) AS col0
----
90

skipif mysql # not compatible
query I rowsort label-66
SELECT DISTINCT - COALESCE ( 90, NULLIF ( 20, 27 + + 17 ) - - 42 ) * - COUNT ( * ) AS col0
----
90

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-68
SELECT DISTINCT 40 DIV - 78
----
0

skipif mysql # not compatible
query I rowsort label-68
SELECT DISTINCT 40 / - 78
----
0

query I rowsort
SELECT 58 * 6
----
348

onlyif mysql # aggregate syntax: 
query I rowsort label-70
SELECT + COALESCE ( - 86, - 82 * COUNT( * ) + 73 ) + - COUNT( * ) col1
----
-87

skipif mysql # not compatible
query I rowsort label-70
SELECT + COALESCE ( - 86, - 82 * COUNT ( * ) + 73 ) + - COUNT ( * ) col1
----
-87

query I rowsort
SELECT DISTINCT CASE 18 WHEN 38 * - ( - 73 ) THEN NULL ELSE + 76 END AS col2
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-72
SELECT 37 * + SUM( - 62 ) AS col2
----
-2294

skipif mysql # not compatible
query I rowsort label-72
SELECT 37 * + SUM ( - 62 ) AS col2
----
-2294

query I rowsort
SELECT DISTINCT + 62 + - 26
----
36

query I rowsort
SELECT DISTINCT - 51 * 43 AS col2
----
-2193

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

skipif mysql # not compatible
query I rowsort label-75
SELECT ALL - 92 + - COUNT ( * ) AS col1
----
-93

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-76
SELECT ALL NULLIF ( CAST( NULL AS SIGNED ), - 56 + - ( 63 ) ) + - COUNT( * ) * + COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-76
SELECT ALL NULLIF ( CAST ( NULL AS INTEGER ), - 56 + - ( 63 ) ) + - COUNT ( * ) * + COUNT ( * ) AS col1
----
NULL

query I rowsort
SELECT ALL + ( 33 ) * 93
----
3069

query I rowsort
SELECT ( - 75 ) * + 50
----
-3750

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-80
SELECT NULLIF ( + 62, - 8 ) + ( - CASE CASE 51 WHEN + 75 THEN NULL ELSE COUNT( * ) DIV - 79 END WHEN 42 - + 3 THEN 11 + 77 WHEN - 5 THEN 11 + + COUNT( * ) ELSE 47 END ) DIV - 49 AS col1
----
62

skipif mysql # not compatible
query I rowsort label-80
SELECT NULLIF ( + 62, - 8 ) + ( - CASE CASE 51 WHEN + 75 THEN NULL ELSE COUNT ( * ) / - 79 END WHEN 42 - + 3 THEN 11 + 77 WHEN - 5 THEN 11 + + COUNT ( * ) ELSE 47 END ) / - 49 AS col1
----
62

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-82
SELECT ALL + 68 + 53 DIV ( 69 * 88 + - 33 DIV 62 ) AS col1
----
68

skipif mysql # not compatible
query I rowsort label-82
SELECT ALL + 68 + 53 / ( 69 * 88 + - 33 / 62 ) AS col1
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-83
SELECT + COALESCE ( 98, COUNT( * ) + - 21, - 77 ) AS col1
----
98

skipif mysql # not compatible
query I rowsort label-83
SELECT + COALESCE ( 98, COUNT ( * ) + - 21, - 77 ) AS col1
----
98

onlyif mysql # aggregate syntax: 
query I rowsort label-84
SELECT DISTINCT CASE 48 WHEN + ( NULLIF ( - 30, 74 ) ) + ( - ( 61 ) ) * - COALESCE ( - COUNT( * ) * 12 + - 83, 28 * CASE WHEN ( NULL ) > NULL THEN NULL ELSE + COUNT( * ) END + + 12 / + 16 ) THEN + COUNT( * ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-84
SELECT DISTINCT CASE 48 WHEN + ( NULLIF ( - 30, 74 ) ) + ( - ( 61 ) ) * - COALESCE ( - COUNT ( * ) * 12 + - 83, 28 * CASE WHEN ( NULL ) > NULL THEN NULL ELSE + COUNT ( * ) END + + 12 / + 16 ) THEN + COUNT ( * ) END AS col2
----
NULL

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-86
SELECT DISTINCT + 74 DIV 3
----
24

skipif mysql # not compatible
query I rowsort label-86
SELECT DISTINCT + 74 / 3
----
24

query I rowsort
SELECT 10 * 32
----
320

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-89
SELECT MAX( ALL 39 )
----
39

skipif mysql # not compatible
query I rowsort label-89
SELECT MAX ( ALL 39 )
----
39

onlyif mysql # DIV for integer division: 
query I rowsort label-90
SELECT 42 DIV + - 41 + 51 * 33 AS col0
----
1682

skipif mysql # not compatible
query I rowsort label-90
SELECT 42 / + - 41 + 51 * 33 AS col0
----
1682

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

skipif mysql # not compatible
query I rowsort label-91
SELECT ALL 36 - + - COUNT ( * ) AS col0
----
37

query I rowsort
SELECT 26 + - - 93 AS col2
----
119

onlyif mysql # aggregate syntax: 
query I rowsort label-93
SELECT ALL NULLIF ( + COUNT( DISTINCT 49 ), - COUNT( * ) * 81 ) * + 43
----
43

skipif mysql # not compatible
query I rowsort label-93
SELECT ALL NULLIF ( + COUNT ( DISTINCT 49 ), - COUNT ( * ) * 81 ) * + 43
----
43

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-94
SELECT ( - - CAST( + MAX( 28 ) AS SIGNED ) ) * - 12 AS col2
----
-336

skipif mysql # not compatible
query I rowsort label-94
SELECT ( - - CAST ( + MAX ( 28 ) AS INTEGER ) ) * - 12 AS col2
----
-336

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-96
SELECT 36 * - 30 * COUNT( * )
----
-1080

skipif mysql # not compatible
query I rowsort label-96
SELECT 36 * - 30 * COUNT ( * )
----
-1080

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-97
SELECT CAST( NULL AS SIGNED ) * - - CAST( - AVG ( 59 ) AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-97
SELECT CAST ( NULL AS INTEGER ) * - - CAST ( - AVG ( 59 ) AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT 26 * 17 col1
----
442

onlyif mysql # aggregate syntax: 
query I rowsort label-99
SELECT ALL - MIN( - 27 ) col2
----
27

skipif mysql # not compatible
query I rowsort label-99
SELECT ALL - MIN ( - 27 ) col2
----
27

query I rowsort
SELECT 35 * - 88 AS col2
----
-3080

onlyif mysql # aggregate syntax: 
query I rowsort label-101
SELECT ALL - MAX( - NULLIF ( + 28, 72 ) )
----
28

skipif mysql # not compatible
query I rowsort label-101
SELECT ALL - MAX ( - NULLIF ( + 28, 72 ) )
----
28

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

skipif mysql # not compatible
query I rowsort label-102
SELECT DISTINCT COUNT ( ALL - - 33 ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-103
SELECT - ( - 36 ) * + 54 - COUNT( * ) AS col1
----
1943

skipif mysql # not compatible
query I rowsort label-103
SELECT - ( - 36 ) * + 54 - COUNT ( * ) AS col1
----
1943

query I rowsort
SELECT ALL - - 40 + - + 75 AS col2
----
-35

query I rowsort
SELECT ALL - 13 + + 43
----
30

query I rowsort
SELECT ALL + 33 + - 14 - - 8 * - 71
----
-549

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-108
SELECT - ( - - 94 ) DIV 46 col0
----
-2

skipif mysql # not compatible
query I rowsort label-108
SELECT - ( - - 94 ) / 46 col0
----
-2

query I rowsort
SELECT ALL - 63 + 6 AS col1
----
-57

query I rowsort
SELECT 55 + 38
----
93

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

skipif mysql # not compatible
query I rowsort label-111
SELECT - ( SUM ( ALL + 40 ) ) AS col2
----
-40

query I rowsort
SELECT - + 83 + 11 + - 49 AS col0
----
-121

query I rowsort
SELECT + + 77 - NULLIF ( - NULLIF ( - 42, 90 / + 28 ), + 34 ) + - 27 AS col0
----
8

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

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

query I rowsort
SELECT - - 8 + + 5 + 59 * + 99
----
5854

onlyif mysql # DIV for integer division: 
query I rowsort label-116
SELECT + - 3 DIV + + 41 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-116
SELECT + - 3 / + + 41 AS col2
----
0

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

skipif mysql # not compatible
query I rowsort label-117
SELECT ALL - MIN ( CAST ( NULL AS INTEGER ) ) + 86
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-118
SELECT - COUNT( - CAST( NULL AS SIGNED ) ) * 87
----
0

skipif mysql # not compatible
query I rowsort label-118
SELECT - COUNT ( - CAST ( NULL AS INTEGER ) ) * 87
----
0

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

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

query I rowsort
SELECT DISTINCT 24 * - 4
----
-96

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

skipif mysql # not compatible
query I rowsort label-121
SELECT - MIN ( DISTINCT - 88 ) + - COUNT ( * )
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-122
SELECT DISTINCT - COUNT( * ) - - 94
----
93

skipif mysql # not compatible
query I rowsort label-122
SELECT DISTINCT - COUNT ( * ) - - 94
----
93

query I rowsort
SELECT ALL - 56 * - 30 + - NULLIF ( - 2 + + 67, 77 * 20 + CASE ( 41 ) WHEN + 83 * + COALESCE ( - 63, 14 ) THEN 4 ELSE 25 * - ( 82 ) + 58 END ) AS col1
----
1615

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

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

query I rowsort
SELECT ALL 96 * + 90 AS col0
----
8640

query I rowsort
SELECT - 50 * + 89 * + 46 + - 67 col1
----
-204767

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

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

query II rowsort
SELECT ALL + 52 AS col0, + 54 * 3 AS col1
----
52
162

onlyif mysql # aggregate syntax: 
query I rowsort label-129
SELECT CASE + COUNT( * ) WHEN + 28 THEN 87 * + 2 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-129
SELECT CASE + COUNT ( * ) WHEN + 28 THEN 87 * + 2 END AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-130
SELECT ALL - 57 * + 85 DIV + CAST( + CAST( + COUNT( * ) AS SIGNED ) AS SIGNED )
----
-4845

skipif mysql # not compatible
query I rowsort label-130
SELECT ALL - 57 * + 85 / + CAST ( + CAST ( + COUNT ( * ) AS INTEGER ) AS INTEGER )
----
-4845

query I rowsort
SELECT + 24 * + 75
----
1800

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

skipif mysql # not compatible
query I rowsort label-132
SELECT ALL COUNT ( * ) / + + 66
----
0

query I rowsort
SELECT + 41 - - 42 + + - 29 + 97 * 66
----
6456

onlyif mysql # aggregate syntax: 
query I rowsort label-134
SELECT 48 * + 3 * 3 * 42 - MIN( DISTINCT 56 ) AS col0
----
18088

skipif mysql # not compatible
query I rowsort label-134
SELECT 48 * + 3 * 3 * 42 - MIN ( DISTINCT 56 ) AS col0
----
18088

onlyif mysql # DIV for integer division: 
query I rowsort label-135
SELECT + 88 DIV 92
----
0

skipif mysql # not compatible
query I rowsort label-135
SELECT + 88 / 92
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-136
SELECT + CAST( NULL AS SIGNED ) * - + ( - + 31 ) / COUNT( * ) + CASE CASE - 20 WHEN 61 THEN NULL ELSE - 83 * 77 END WHEN 83 + 60 THEN + 14 - 93 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-136
SELECT + CAST ( NULL AS INTEGER ) * - + ( - + 31 ) / COUNT ( * ) + CASE CASE - 20 WHEN 61 THEN NULL ELSE - 83 * 77 END WHEN 83 + 60 THEN + 14 - 93 ELSE NULL END
----
NULL

query I rowsort
SELECT + 5 + + 15 AS col1
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-138
SELECT + NULLIF ( COUNT( 67 ), COUNT( * ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-138
SELECT + NULLIF ( COUNT ( 67 ), COUNT ( * ) )
----
NULL

query I rowsort
SELECT ALL 42 * + ( 55 ) + 2
----
2312

onlyif mysql # aggregate syntax: 
query I rowsort label-140
SELECT ALL + COUNT( - + ( 31 ) ) * + 18 + + COUNT( * )
----
19

skipif mysql # not compatible
query I rowsort label-140
SELECT ALL + COUNT ( - + ( 31 ) ) * + 18 + + COUNT ( * )
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-141
SELECT DISTINCT 22 * - MIN( ALL - 9 )
----
198

skipif mysql # not compatible
query I rowsort label-141
SELECT DISTINCT 22 * - MIN ( ALL - 9 )
----
198

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-142
SELECT DISTINCT + 11 * 93 + + CAST( NULL AS SIGNED ) + - COUNT( * ) * - 22 + 96
----
NULL

skipif mysql # not compatible
query I rowsort label-142
SELECT DISTINCT + 11 * 93 + + CAST ( NULL AS INTEGER ) + - COUNT ( * ) * - 22 + 96
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-143
SELECT DISTINCT COALESCE ( + NULLIF ( - 22, + COUNT( * ) ), + 10 )
----
-22

skipif mysql # not compatible
query I rowsort label-143
SELECT DISTINCT COALESCE ( + NULLIF ( - 22, + COUNT ( * ) ), + 10 )
----
-22

query I rowsort
SELECT DISTINCT - 32 * - + 4 + - 51 + - 36 AS col2
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-145
SELECT + 23 + - 75 * + + SUM( DISTINCT + 70 ) AS col0
----
-5227

skipif mysql # not compatible
query I rowsort label-145
SELECT + 23 + - 75 * + + SUM ( DISTINCT + 70 ) AS col0
----
-5227

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

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

query I rowsort
SELECT - 98 + + 94
----
-4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-148
SELECT - NULLIF ( - 59, - CAST( NULL AS SIGNED ) * + 62 ) + 9 AS col2
----
68

skipif mysql # not compatible
query I rowsort label-148
SELECT - NULLIF ( - 59, - CAST ( NULL AS INTEGER ) * + 62 ) + 9 AS col2
----
68

query I rowsort
SELECT DISTINCT - 68 * + COALESCE ( + 3, 31 )
----
-204

query I rowsort
SELECT ALL NULLIF ( 45, 89 ) AS col0
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-151
SELECT DISTINCT - 99 - + COUNT( * ) + 0 * 28 * - COUNT( * )
----
-100

skipif mysql # not compatible
query I rowsort label-151
SELECT DISTINCT - 99 - + COUNT ( * ) + 0 * 28 * - COUNT ( * )
----
-100

query I rowsort
SELECT ALL + 40 * + ( + 72 )
----
2880

onlyif mysql # aggregate syntax: 
query I rowsort label-153
SELECT - + 29 + + - MAX( ALL + + 76 ) * - 94
----
7115

skipif mysql # not compatible
query I rowsort label-153
SELECT - + 29 + + - MAX ( ALL + + 76 ) * - 94
----
7115

onlyif mysql # DIV for integer division: 
query I rowsort label-154
SELECT DISTINCT + COALESCE ( - - 99, - 74 DIV CASE ( + 0 ) WHEN - 49 THEN 13 + 85 END, 26 + + 85 ) * 37 AS col1
----
3663

skipif mysql # not compatible
query I rowsort label-154
SELECT DISTINCT + COALESCE ( - - 99, - 74 / CASE ( + 0 ) WHEN - 49 THEN 13 + 85 END, 26 + + 85 ) * 37 AS col1
----
3663

query II rowsort
SELECT ALL + 13 AS col2, + 48 AS col2
----
13
48

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-156
SELECT ALL + + 21 - + - CAST( NULL AS SIGNED ) / + MIN( DISTINCT 97 )
----
NULL

skipif mysql # not compatible
query I rowsort label-156
SELECT ALL + + 21 - + - CAST ( NULL AS INTEGER ) / + MIN ( DISTINCT 97 )
----
NULL

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

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

query I rowsort
SELECT - ( ( - NULLIF ( + ( 82 ), - 49 / 92 ) ) ) + ( 42 )
----
124

onlyif mysql # aggregate syntax: 
query II rowsort label-159
SELECT ALL + 51 AS col1, 22 + - COUNT( * ) AS col2
----
51
21

skipif mysql # not compatible
query II rowsort label-159
SELECT ALL + 51 AS col1, 22 + - COUNT ( * ) AS col2
----
51
21

query I rowsort
SELECT - 66 * + 92
----
-6072

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

query II rowsort
SELECT DISTINCT ( - 53 ), 6 + 14 AS col1
----
-53
20

onlyif mysql # DIV for integer division: 
query I rowsort label-163
SELECT ALL + 88 DIV - 96
----
0

skipif mysql # not compatible
query I rowsort label-163
SELECT ALL + 88 / - 96
----
0

query I rowsort
SELECT - 72 + 56
----
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-165
SELECT DISTINCT + CASE - + 56 WHEN + 87 THEN MIN( 50 ) * - AVG ( ALL + 90 ) + 16 * 43 END / 51 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-165
SELECT DISTINCT + CASE - + 56 WHEN + 87 THEN MIN ( 50 ) * - AVG ( ALL + 90 ) + 16 * 43 END / 51 AS col1
----
NULL

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

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

query I rowsort
SELECT DISTINCT 77 * + - ( - 86 ) AS col0
----
6622

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-168
SELECT 62 * + - CAST( + + 17 AS SIGNED ) + - - 32 + + 27
----
-995

skipif mysql # not compatible
query I rowsort label-168
SELECT 62 * + - CAST ( + + 17 AS INTEGER ) + - - 32 + + 27
----
-995

onlyif mysql # aggregate syntax: 
query II rowsort label-169
SELECT - 12 * - 92 AS col1, SUM( - 13 ) AS col2
----
1104
-13

skipif mysql # not compatible
query II rowsort label-169
SELECT - 12 * - 92 AS col1, SUM ( - 13 ) AS col2
----
1104
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-170
SELECT + 18 + - CASE - 33 WHEN + COUNT( * ) + MIN( ALL - 17 ) * - 29 THEN + 15 WHEN - 73 THEN NULL ELSE 60 END + - 10 AS col2
----
-52

skipif mysql # not compatible
query I rowsort label-170
SELECT + 18 + - CASE - 33 WHEN + COUNT ( * ) + MIN ( ALL - 17 ) * - 29 THEN + 15 WHEN - 73 THEN NULL ELSE 60 END + - 10 AS col2
----
-52

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

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

query I rowsort
SELECT + NULLIF ( - 69, 15 ) AS col1
----
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-173
SELECT + COUNT( ALL + COALESCE ( + 16, - 54 ) ) * 83
----
83

skipif mysql # not compatible
query I rowsort label-173
SELECT + COUNT ( ALL + COALESCE ( + 16, - 54 ) ) * 83
----
83

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

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-176
SELECT ALL - 65 * + 48 + COUNT( * ) - 89 DIV - 96
----
-3119

skipif mysql # not compatible
query I rowsort label-176
SELECT ALL - 65 * + 48 + COUNT ( * ) - 89 / - 96
----
-3119

query I rowsort
SELECT ( 12 ) col0
----
12

query II rowsort
SELECT - 99 + + + 82 AS col2, 68 * - 57 AS col1
----
-17
-3876

onlyif mysql # aggregate syntax: 
query I rowsort label-179
SELECT + 21 * COUNT( DISTINCT + 60 ) + 60
----
81

skipif mysql # not compatible
query I rowsort label-179
SELECT + 21 * COUNT ( DISTINCT + 60 ) + 60
----
81

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-180
SELECT DISTINCT - COUNT( * ) * SUM( + - 24 ) DIV + 7 - 81 AS col0
----
-78

skipif mysql # not compatible
query I rowsort label-180
SELECT DISTINCT - COUNT ( * ) * SUM ( + - 24 ) / + 7 - 81 AS col0
----
-78

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-182
SELECT DISTINCT CASE - + SUM( ALL 23 ) WHEN + 37 / - 11 THEN - 13 WHEN - 91 THEN - 40 ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-182
SELECT DISTINCT CASE - + SUM ( ALL 23 ) WHEN + 37 / - 11 THEN - 13 WHEN - 91 THEN - 40 ELSE NULL END AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-183
SELECT DISTINCT 13 - - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-183
SELECT DISTINCT 13 - - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL - 70 * - - 49
----
-3430

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-185
SELECT + 62 - - COUNT( * ) + + CAST( + - CAST( NULL AS SIGNED ) AS SIGNED ) / 16 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-185
SELECT + 62 - - COUNT ( * ) + + CAST ( + - CAST ( NULL AS INTEGER ) AS INTEGER ) / 16 AS col2
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-187
SELECT - MAX( DISTINCT - - 88 ) - + ( - NULLIF ( 73, 3 ) )
----
-15

skipif mysql # not compatible
query I rowsort label-187
SELECT - MAX ( DISTINCT - - 88 ) - + ( - NULLIF ( 73, 3 ) )
----
-15

query I rowsort
SELECT - NULLIF ( 76, + 64 * - 69 + + 37 )
----
-76

query I rowsort
SELECT 33 + 68
----
101

onlyif mysql # aggregate syntax: 
query I rowsort label-190
SELECT - COUNT( * ) - - + 47 * - + MAX( 97 ) AS col0
----
-4560

skipif mysql # not compatible
query I rowsort label-190
SELECT - COUNT ( * ) - - + 47 * - + MAX ( 97 ) AS col0
----
-4560

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-193
SELECT + 64 * + - SUM( ALL + CAST( NULL AS SIGNED ) ) * - 86 + - 89 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-193
SELECT + 64 * + - SUM ( ALL + CAST ( NULL AS INTEGER ) ) * - 86 + - 89 AS col2
----
NULL

query I rowsort
SELECT 53 * - 23 + + 18 * - 91 + - 18 * 32 AS col0
----
-3433

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-195
SELECT ALL + 62 * - - CASE - 83 WHEN 46 * COUNT( * ) THEN NULL WHEN - 44 THEN NULL ELSE 40 END DIV COUNT( * ) + - NULLIF ( + 75, - 94 * 39 ) DIV - 68
----
2481

skipif mysql # not compatible
query I rowsort label-195
SELECT ALL + 62 * - - CASE - 83 WHEN 46 * COUNT ( * ) THEN NULL WHEN - 44 THEN NULL ELSE 40 END / COUNT ( * ) + - NULLIF ( + 75, - 94 * 39 ) / - 68
----
2481

query I rowsort
SELECT 10 + + 41 * + 70 + 47
----
2927

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

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

query I rowsort
SELECT 20 + - 41 AS col2
----
-21

query I rowsort
SELECT 26 * 54 AS col1
----
1404

onlyif mysql # aggregate syntax: 
query I rowsort label-200
SELECT ALL + MAX( DISTINCT + - 89 ) + - 51
----
-140

skipif mysql # not compatible
query I rowsort label-200
SELECT ALL + MAX ( DISTINCT + - 89 ) + - 51
----
-140

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-201
SELECT ALL 30 AS col2, - COALESCE ( - 94, + 53 + 77 + 76 * COUNT( * ) ) DIV - MAX( 38 ) AS col1
----
30
-2

skipif mysql # not compatible
query II rowsort label-201
SELECT ALL 30 AS col2, - COALESCE ( - 94, + 53 + 77 + 76 * COUNT ( * ) ) / - MAX ( 38 ) AS col1
----
30
-2

query I rowsort
SELECT 16 + + 62 col0
----
78

query I rowsort
SELECT 55 + 39 AS col0
----
94

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

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

query I rowsort
SELECT ALL - 85 + + 46 * 19
----
789

query I rowsort
SELECT 32 - + - 27 - + + 95 AS col1
----
-36

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-208
SELECT ALL + 21 + - - 81 DIV - + 62 AS col0
----
20

skipif mysql # not compatible
query I rowsort label-208
SELECT ALL + 21 + - - 81 / - + 62 AS col0
----
20

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-209
SELECT AVG ( - 83 ) * + 14 / 45 + - SUM( CAST( NULL AS SIGNED ) ) + COUNT( * ) * 19
----
NULL

skipif mysql # not compatible
query I rowsort label-209
SELECT AVG ( - 83 ) * + 14 / 45 + - SUM ( CAST ( NULL AS INTEGER ) ) + COUNT ( * ) * 19
----
NULL

query I rowsort
SELECT ALL - ( + + 39 ) + - 11 AS col2
----
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-211
SELECT DISTINCT - 40 + MAX( - 91 ) + + ( + 57 ) AS col0
----
-74

skipif mysql # not compatible
query I rowsort label-211
SELECT DISTINCT - 40 + MAX ( - 91 ) + + ( + 57 ) AS col0
----
-74

query I rowsort
SELECT ALL 29 * - 20 col2
----
-580

query I rowsort
SELECT 60 + 88 AS col0
----
148

onlyif mysql # aggregate syntax: 
query I rowsort label-214
SELECT ALL - COUNT( * ) + - - 31
----
30

skipif mysql # not compatible
query I rowsort label-214
SELECT ALL - COUNT ( * ) + - - 31
----
30

query II rowsort
SELECT - 46 * + - 47 + 76, + 28 * - 75 col1
----
2238
-2100

onlyif mysql # aggregate syntax: 
query I rowsort label-216
SELECT MAX( DISTINCT 38 ) - - 52 + - 86 * + 46 * 48
----
-189798

skipif mysql # not compatible
query I rowsort label-216
SELECT MAX ( DISTINCT 38 ) - - 52 + - 86 * + 46 * 48
----
-189798

query I rowsort
SELECT ALL + 50 * - + ( - + 12 ) AS col0
----
600

onlyif mysql # aggregate syntax: 
query II rowsort label-218
SELECT ALL - - 27 AS col2, - 45 * 2 * - 47 + + COUNT( * ) + ( - 22 )
----
27
4209

skipif mysql # not compatible
query II rowsort label-218
SELECT ALL - - 27 AS col2, - 45 * 2 * - 47 + + COUNT ( * ) + ( - 22 )
----
27
4209

onlyif mysql # aggregate syntax: 
query I rowsort label-219
SELECT + CASE - 26 WHEN + - 63 THEN NULL WHEN ( - 1 ) THEN NULL ELSE 6 * COUNT( * ) END
----
6

skipif mysql # not compatible
query I rowsort label-219
SELECT + CASE - 26 WHEN + - 63 THEN NULL WHEN ( - 1 ) THEN NULL ELSE 6 * COUNT ( * ) END
----
6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-220
SELECT + + COUNT( * ) * - CAST( NULL AS SIGNED ) * + 67 + 14 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-220
SELECT + + COUNT ( * ) * - CAST ( NULL AS INTEGER ) * + 67 + 14 AS col1
----
NULL

query I rowsort
SELECT ALL - 85 - + 43 AS col0
----
-128

onlyif mysql # aggregate syntax: 
query I rowsort label-222
SELECT + 19 + - COUNT( * )
----
18

skipif mysql # not compatible
query I rowsort label-222
SELECT + 19 + - COUNT ( * )
----
18

query I rowsort
SELECT - 89 * - 68 AS col0
----
6052

query I rowsort
SELECT 30 + + 38 AS col1
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-225
SELECT ALL - - ( + CASE - 65 WHEN + NULLIF ( + + 5, - COUNT( * ) * 84 ) THEN NULL WHEN - CASE 0 WHEN COUNT( * ) / + 42 THEN - 11 * COUNT( * ) + - 74 END THEN + 26 + - 69 WHEN 71 THEN + COUNT( * ) * + COUNT( * ) ELSE NULL END )
----
NULL

skipif mysql # not compatible
query I rowsort label-225
SELECT ALL - - ( + CASE - 65 WHEN + NULLIF ( + + 5, - COUNT ( * ) * 84 ) THEN NULL WHEN - CASE 0 WHEN COUNT ( * ) / + 42 THEN - 11 * COUNT ( * ) + - 74 END THEN + 26 + - 69 WHEN 71 THEN + COUNT ( * ) * + COUNT ( * ) ELSE NULL END )
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-227
SELECT + - 2 * - 13 + - - COUNT( ALL + 26 ) AS col0
----
27

skipif mysql # not compatible
query I rowsort label-227
SELECT + - 2 * - 13 + - - COUNT ( ALL + 26 ) AS col0
----
27

query I rowsort
SELECT - 55 * - 70
----
3850

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

skipif mysql # not compatible
query I rowsort label-229
SELECT DISTINCT - MAX ( 84 )
----
-84

query II rowsort
SELECT ALL - - NULLIF ( + + 2, + 64 ) AS col1, 24 + + - 25 * - 97 AS col0
----
2
2449

query I rowsort
SELECT DISTINCT + 91 - - - 57 + + 82 - + + 55
----
61

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

skipif mysql # not compatible
query I rowsort label-232
SELECT 68 * + - ( + + COUNT ( * ) ) + + COUNT ( * ) AS col1
----
-67

onlyif mysql # DIV for integer division: 
query I rowsort label-233
SELECT ALL + 58 DIV - 96 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-233
SELECT ALL + 58 / - 96 AS col0
----
0

query I rowsort
SELECT + ( + 91 ) * - 58
----
-5278

query I rowsort
SELECT - + NULLIF ( - 91, - - 71 * + + 89 / - - 71 ) AS col2
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-236
SELECT + 96 + - 61 * + + SUM( - - 98 ) AS col2
----
-5882

skipif mysql # not compatible
query I rowsort label-236
SELECT + 96 + - 61 * + + SUM ( - - 98 ) AS col2
----
-5882

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-237
SELECT - CAST( NULL AS SIGNED ) AS col0, COALESCE ( COUNT( * ), - MAX( + 35 ) * 49 ) AS col1
----
NULL
1

skipif mysql # not compatible
query II rowsort label-237
SELECT - CAST ( NULL AS INTEGER ) AS col0, COALESCE ( COUNT ( * ), - MAX ( + 35 ) * 49 ) AS col1
----
NULL
1

query I rowsort
SELECT 47 * + 16 col1
----
752

onlyif mysql # aggregate syntax: 
query I rowsort label-239
SELECT + 70 * COUNT( * ) + - 4 AS col2
----
66

skipif mysql # not compatible
query I rowsort label-239
SELECT + 70 * COUNT ( * ) + - 4 AS col2
----
66

query I rowsort
SELECT ALL + 8 * - + 53 AS col1
----
-424

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-241
SELECT - 18 DIV - 23 * + 8 * CASE - 31 WHEN 38 - - 90 * COUNT( ALL 56 ) THEN NULL ELSE COUNT( * ) END
----
0

skipif mysql # not compatible
query I rowsort label-241
SELECT - 18 / - 23 * + 8 * CASE - 31 WHEN 38 - - 90 * COUNT ( ALL 56 ) THEN NULL ELSE COUNT ( * ) END
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-242
SELECT DISTINCT + COUNT( ALL + 86 ) * + + 12 + - - 10 * - ( - 87 )
----
882

skipif mysql # not compatible
query I rowsort label-242
SELECT DISTINCT + COUNT ( ALL + 86 ) * + + 12 + - - 10 * - ( - 87 )
----
882

onlyif mysql # aggregate syntax: 
query II rowsort label-243
SELECT ALL 20 AS col0, 50 * - + 59 + - 35 * - COUNT( * ) * + ( - SUM( ALL + 30 ) )
----
20
-4000

skipif mysql # not compatible
query II rowsort label-243
SELECT ALL 20 AS col0, 50 * - + 59 + - 35 * - COUNT ( * ) * + ( - SUM ( ALL + 30 ) )
----
20
-4000

onlyif mysql # DIV for integer division: 
query I rowsort label-244
SELECT 26 DIV - 78
----
0

skipif mysql # not compatible
query I rowsort label-244
SELECT 26 / - 78
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-245
SELECT ALL 54 + CASE - COUNT( * ) WHEN - - 86 * 43 THEN NULL WHEN - ( - 5 ) THEN - 22 END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-245
SELECT ALL 54 + CASE - COUNT ( * ) WHEN - - 86 * 43 THEN NULL WHEN - ( - 5 ) THEN - 22 END col1
----
NULL

query II rowsort
SELECT DISTINCT 25 AS col2, 80
----
25
80

onlyif mysql # DIV for integer division: 
query I rowsort label-247
SELECT 10 - - + 66 - 85 DIV + - 1 + 22
----
183

skipif mysql # not compatible
query I rowsort label-247
SELECT 10 - - + 66 - 85 / + - 1 + 22
----
183

query I rowsort
SELECT DISTINCT ( - 13 ) + 96 AS col2
----
83

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

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

query I rowsort
SELECT ALL - 98 + + ( - 93 )
----
-191

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

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

query II rowsort
SELECT ALL 96 AS col0, 23 - - 5
----
96
28

onlyif mysql # aggregate syntax: 
query I rowsort label-253
SELECT ALL + 26 * - MAX( DISTINCT 81 )
----
-2106

skipif mysql # not compatible
query I rowsort label-253
SELECT ALL + 26 * - MAX ( DISTINCT 81 )
----
-2106

query I rowsort
SELECT ALL + 27 * + 1 + - 73 + - 89 col2
----
-135

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-255
SELECT + 53 AS col1, NULLIF ( + - 44, MAX( - 7 ) DIV + 19 + 7 ) DIV - ( - 54 ) + - 95
----
53
-95

skipif mysql # not compatible
query II rowsort label-255
SELECT + 53 AS col1, NULLIF ( + - 44, MAX ( - 7 ) / + 19 + 7 ) / - ( - 54 ) + - 95
----
53
-95

query II rowsort
SELECT ALL - 96, ( + CASE - + 24 WHEN 97 + 28 THEN - 23 END ) + 72 AS col1
----
-96
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-257
SELECT CASE + 73 WHEN + - 99 THEN - 56 WHEN - 19 + + 48 + - ( 41 + 24 ) * + ( - 63 * - 73 ) THEN - COALESCE ( NULLIF ( + 15, + 88 ), + 26 * COUNT( * ) - + 99, + 88 ) + 2 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-257
SELECT CASE + 73 WHEN + - 99 THEN - 56 WHEN - 19 + + 48 + - ( 41 + 24 ) * + ( - 63 * - 73 ) THEN - COALESCE ( NULLIF ( + 15, + 88 ), + 26 * COUNT ( * ) - + 99, + 88 ) + 2 ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-258
SELECT 54 DIV - + 97 * - ( 48 ) + CAST( - 57 AS SIGNED ) AS col1
----
-57

skipif mysql # not compatible
query I rowsort label-258
SELECT 54 / - + 97 * - ( 48 ) + CAST ( - 57 AS INTEGER ) AS col1
----
-57

query I rowsort
SELECT - 75 * + 13
----
-975

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-260
SELECT - COUNT( * ) DIV - 28 * + 82 + + - 34 col1
----
-34

skipif mysql # not compatible
query I rowsort label-260
SELECT - COUNT ( * ) / - 28 * + 82 + + - 34 col1
----
-34

query II rowsort
SELECT DISTINCT + 85 AS col1, 73
----
85
73

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-263
SELECT ALL - + 97 / + 10 - ( + + CASE - + ( 17 ) WHEN - 23 THEN NULL ELSE COUNT( * ) + ( NULLIF ( - 49, 83 * 72 ) ) END ) - CASE - ( ( - 18 ) ) WHEN 25 THEN - 57 ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-263
SELECT ALL - + 97 / + 10 - ( + + CASE - + ( 17 ) WHEN - 23 THEN NULL ELSE COUNT ( * ) + ( NULLIF ( - 49, 83 * 72 ) ) END ) - CASE - ( ( - 18 ) ) WHEN 25 THEN - 57 ELSE NULL END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-264
SELECT ALL + MAX( DISTINCT 51 ) * 99 AS col2
----
5049

skipif mysql # not compatible
query I rowsort label-264
SELECT ALL + MAX ( DISTINCT 51 ) * 99 AS col2
----
5049

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-265
SELECT + 23 AS col0, + 10 + + COUNT( ALL - - 42 ) DIV - 15 * + - 98 + 95 AS col2
----
23
105

skipif mysql # not compatible
query II rowsort label-265
SELECT + 23 AS col0, + 10 + + COUNT ( ALL - - 42 ) / - 15 * + - 98 + 95 AS col2
----
23
105

query I rowsort
SELECT DISTINCT - - 47 * - 60 * - 22
----
62040

query I rowsort
SELECT DISTINCT + ( 40 ) AS col1
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-268
SELECT - + 98 + + + ( + 55 ) + + 70 + - - COUNT( * )
----
28

skipif mysql # not compatible
query I rowsort label-268
SELECT - + 98 + + + ( + 55 ) + + 70 + - - COUNT ( * )
----
28

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

skipif mysql # not compatible
query I rowsort label-269
SELECT ALL - 87 * - - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT - 19 * - 85 AS col0
----
1615

onlyif mysql # aggregate syntax: 
query I rowsort label-271
SELECT + 26 * - SUM( ALL + + 17 ) - - 89 + ( + 38 ) * + 10 AS col1
----
27

skipif mysql # not compatible
query I rowsort label-271
SELECT + 26 * - SUM ( ALL + + 17 ) - - 89 + ( + 38 ) * + 10 AS col1
----
27

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

skipif mysql # not compatible
query I rowsort label-272
SELECT - - 40 * COUNT ( * )
----
40

query I rowsort
SELECT ALL + 77 + + 27 col2
----
104

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-274
SELECT + ( - 52 ) + + 17 + + 45 + + NULLIF ( - 45, + CAST( - 23 AS SIGNED ) ) + 96 * 57
----
5437

skipif mysql # not compatible
query I rowsort label-274
SELECT + ( - 52 ) + + 17 + + 45 + + NULLIF ( - 45, + CAST ( - 23 AS INTEGER ) ) + 96 * 57
----
5437

query I rowsort
SELECT ALL - - 42 + - 60
----
-18

query I rowsort
SELECT - 37 * - 24 AS col1
----
888

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-277
SELECT - 95 + COUNT( * ) * - 35 / + - CASE + 92 WHEN + 75 + 87 + SUM( DISTINCT 22 + + 79 ) THEN COUNT( * ) * + COUNT( * ) - 26 WHEN + CAST( + 80 AS SIGNED ) THEN 30 * MAX( ( + 47 ) ) - + COUNT( * ) WHEN 53 * AVG ( DISTINCT 11 ) THEN 16 END
----
NULL

skipif mysql # not compatible
query I rowsort label-277
SELECT - 95 + COUNT ( * ) * - 35 / + - CASE + 92 WHEN + 75 + 87 + SUM ( DISTINCT 22 + + 79 ) THEN COUNT ( * ) * + COUNT ( * ) - 26 WHEN + CAST ( + 80 AS INTEGER ) THEN 30 * MAX ( ( + 47 ) ) - + COUNT ( * ) WHEN 53 * AVG ( DISTINCT 11 ) THEN 16 END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-278
SELECT + COUNT( * ) - + CAST( + - ( - - 6 ) AS SIGNED )
----
7

skipif mysql # not compatible
query I rowsort label-278
SELECT + COUNT ( * ) - + CAST ( + - ( - - 6 ) AS INTEGER )
----
7

query I rowsort
SELECT DISTINCT 66 + - 71 + - - 39
----
34

query I rowsort
SELECT - 71 + - 23 AS col1
----
-94

query I rowsort
SELECT + 77 - + 20 * + 12
----
-163

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

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

query I rowsort
SELECT ALL 59 + + + 35 + - 81 AS col0
----
13

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-285
SELECT DISTINCT - 40 * 29 * - ( + COUNT( - - 22 ) ) col1
----
1160

skipif mysql # not compatible
query I rowsort label-285
SELECT DISTINCT - 40 * 29 * - ( + COUNT ( - - 22 ) ) col1
----
1160

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-286
SELECT - COALESCE ( + - 90, 79, - 53 + + + 38 * + + ( - + 54 ) + - CAST( CAST( NULL AS SIGNED ) + 70 * - 40 AS SIGNED ) ) AS col0
----
90

skipif mysql # not compatible
query I rowsort label-286
SELECT - COALESCE ( + - 90, 79, - 53 + + + 38 * + + ( - + 54 ) + - CAST ( CAST ( NULL AS INTEGER ) + 70 * - 40 AS INTEGER ) ) AS col0
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-287
SELECT ALL MAX( DISTINCT - 15 ) + - - 97
----
82

skipif mysql # not compatible
query I rowsort label-287
SELECT ALL MAX ( DISTINCT - 15 ) + - - 97
----
82

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-288
SELECT ALL CAST( NULL AS SIGNED ) - - + COUNT( * ) / - 93 * - 40 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-288
SELECT ALL CAST ( NULL AS INTEGER ) - - + COUNT ( * ) / - 93 * - 40 AS col1
----
NULL

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

skipif mysql # not compatible
query I rowsort label-289
SELECT DISTINCT 88 / - - CAST ( NULL AS INTEGER ) AS col1
----
NULL

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-293
SELECT + 99 + - 90, NULLIF ( + ( 91 ), 27 ) + - MIN( ALL 39 ) * 35 AS col2
----
9
-1274

skipif mysql # not compatible
query II rowsort label-293
SELECT + 99 + - 90, NULLIF ( + ( 91 ), 27 ) + - MIN ( ALL 39 ) * 35 AS col2
----
9
-1274

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-294
SELECT - CASE + 62 WHEN - - 51 + - + 37 THEN + AVG ( ALL - CAST( + - 38 AS SIGNED ) ) WHEN - ( + 39 ) * + 42 THEN NULL END + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-294
SELECT - CASE + 62 WHEN - - 51 + - + 37 THEN + AVG ( ALL - CAST ( + - 38 AS INTEGER ) ) WHEN - ( + 39 ) * + 42 THEN NULL END + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-295
SELECT CAST( + CAST( NULL AS SIGNED ) AS SIGNED ), 6 AS col0
----
NULL
6

skipif mysql # not compatible
query II rowsort label-295
SELECT CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ), 6 AS col0
----
NULL
6

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-297
SELECT DISTINCT - 51 * 40 - CAST( NULL AS SIGNED ) * - COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-297
SELECT DISTINCT - 51 * 40 - CAST ( NULL AS INTEGER ) * - COUNT ( * ) AS col2
----
NULL

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-299
SELECT - + 13 + - 52 DIV - 65
----
-13

skipif mysql # not compatible
query I rowsort label-299
SELECT - + 13 + - 52 / - 65
----
-13

onlyif mysql # DIV for integer division: 
query I rowsort label-300
SELECT + + 64 * - - 78 + - 24 + + + 49 + + 50 * + 86 + 69 DIV 47 AS col0
----
9318

skipif mysql # not compatible
query I rowsort label-300
SELECT + + 64 * - - 78 + - 24 + + + 49 + + 50 * + 86 + 69 / 47 AS col0
----
9318

onlyif mysql # aggregate syntax: 
query I rowsort label-301
SELECT + 94 * + + 14 + - MAX( DISTINCT + 47 ) AS col1
----
1269

skipif mysql # not compatible
query I rowsort label-301
SELECT + 94 * + + 14 + - MAX ( DISTINCT + 47 ) AS col1
----
1269

onlyif mysql # aggregate syntax: 
query I rowsort label-302
SELECT COALESCE ( + 3, 13 * - SUM( 5 ) + - 71 * COUNT( * ) * ( + 49 ) ) * 6 + + 65 AS col1
----
83

skipif mysql # not compatible
query I rowsort label-302
SELECT COALESCE ( + 3, 13 * - SUM ( 5 ) + - 71 * COUNT ( * ) * ( + 49 ) ) * 6 + + 65 AS col1
----
83

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-303
SELECT ALL + COALESCE ( - 59, - COUNT( * ), + 69 ) * - ( - - NULLIF ( 0, - CAST( NULL AS SIGNED ) ) ) + 15
----
15

skipif mysql # not compatible
query I rowsort label-303
SELECT ALL + COALESCE ( - 59, - COUNT ( * ), + 69 ) * - ( - - NULLIF ( 0, - CAST ( NULL AS INTEGER ) ) ) + 15
----
15

query I rowsort
SELECT - 17 + - - 45 + + - 2 * + 11 * + 81
----
-1754

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-305
SELECT ALL + - CASE - 72 WHEN + CAST( SUM( 75 ) AS SIGNED ) THEN COUNT( * ) WHEN - - 61 + 42 * ( - 82 * - 7 ) THEN NULL ELSE NULL END * CASE - 70 * 69 WHEN - 59 + 47 THEN - 85 WHEN - 26 * - 43 THEN - 45 ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-305
SELECT ALL + - CASE - 72 WHEN + CAST ( SUM ( 75 ) AS INTEGER ) THEN COUNT ( * ) WHEN - - 61 + 42 * ( - 82 * - 7 ) THEN NULL ELSE NULL END * CASE - 70 * 69 WHEN - 59 + 47 THEN - 85 WHEN - 26 * - 43 THEN - 45 ELSE NULL END AS col1
----
NULL

query I rowsort
SELECT - 99 * + 73 + + ( + + 57 ) + 97 AS col2
----
-7073

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-307
SELECT ALL - 6 * + 22 * + + CAST( NULL AS SIGNED ) + 89 + + + ( 56 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-307
SELECT ALL - 6 * + 22 * + + CAST ( NULL AS INTEGER ) + 89 + + + ( 56 ) AS col2
----
NULL

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

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

query I rowsort
SELECT ALL 94 * 68 + + + ( + + CASE ( + 56 ) WHEN 96 THEN 38 * + 94 + + 3 WHEN ( 64 ) THEN NULL WHEN 72 / + 59 THEN NULL ELSE - 48 * 81 END )
----
2504

query I rowsort
SELECT - ( + - 69 ) * + 64 AS col0
----
4416

query I rowsort
SELECT ALL + - 78 * 26 AS col1
----
-2028

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-312
SELECT ALL + 92 * - 74 + + 4 * 85 * + + ( - 71 ) * MAX( ALL 91 ) + 11 DIV - 35 + 46
----
-2203502

skipif mysql # not compatible
query I rowsort label-312
SELECT ALL + 92 * - 74 + + 4 * 85 * + + ( - 71 ) * MAX ( ALL 91 ) + 11 / - 35 + 46
----
-2203502

query I rowsort
SELECT - - 51 * + ( - - 20 ) col2
----
1020

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-314
SELECT - 80 + + + CAST( NULL AS DECIMAL ) * 88 + COUNT( * ) * 5 * COUNT( * ) + - COUNT( * ) - 48 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-314
SELECT - 80 + + + CAST ( NULL AS REAL ) * 88 + COUNT ( * ) * 5 * COUNT ( * ) + - COUNT ( * ) - 48 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-315
SELECT DISTINCT + COALESCE ( - 6, + 80, - - 87 ) * + + 41 * + - 11 - 80 * COUNT( * )
----
2626

skipif mysql # not compatible
query I rowsort label-315
SELECT DISTINCT + COALESCE ( - 6, + 80, - - 87 ) * + + 41 * + - 11 - 80 * COUNT ( * )
----
2626

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-316
SELECT ALL + MAX( DISTINCT + CAST( - + 51 AS SIGNED ) ) * COUNT( * ) + - + 90
----
-141

skipif mysql # not compatible
query I rowsort label-316
SELECT ALL + MAX ( DISTINCT + CAST ( - + 51 AS INTEGER ) ) * COUNT ( * ) + - + 90
----
-141

query I rowsort
SELECT - CASE WHEN ( NULL BETWEEN 59 AND ( + 22 ) ) THEN 48 ELSE 91 END
----
-91

onlyif mysql # DIV for integer division: 
query I rowsort label-318
SELECT ALL 35 * 74 + - 69 + + 15 DIV 21 * - + 52 * + - ( - - 82 ) DIV 60
----
2521

skipif mysql # not compatible
query I rowsort label-318
SELECT ALL 35 * 74 + - 69 + + 15 / 21 * - + 52 * + - ( - - 82 ) / 60
----
2521

onlyif mysql # aggregate syntax: 
query I rowsort label-319
SELECT ALL - CASE + 72 WHEN - 11 THEN - CASE + - 25 WHEN + + 97 / + 98 THEN + 97 + + 9 WHEN - 34 + COUNT( * ) THEN - 72 * 92 END / + 34 WHEN - 25 + + 38 THEN NULL END * + 40 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-319
SELECT ALL - CASE + 72 WHEN - 11 THEN - CASE + - 25 WHEN + + 97 / + 98 THEN + 97 + + 9 WHEN - 34 + COUNT ( * ) THEN - 72 * 92 END / + 34 WHEN - 25 + + 38 THEN NULL END * + 40 AS col0
----
NULL

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

query I rowsort
SELECT DISTINCT - ( + + COALESCE ( COALESCE ( + + 43, 17 * + + 56, - - 11 + - + 85 ), 62, 81 ) ) - 45 * 47 AS col2
----
-2158

query II rowsort
SELECT ALL 85, NULLIF ( 43, 33 ) AS col2
----
85
43

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-323
SELECT DISTINCT CAST( + 28 AS SIGNED ) AS col0
----
28

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

query I rowsort
SELECT DISTINCT 71 - + + 89 AS col1
----
-18

query II rowsort
SELECT DISTINCT 90 col1, - 95 AS col0
----
90
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-326
SELECT DISTINCT 47 * - - COUNT( * ) AS col1
----
47

skipif mysql # not compatible
query I rowsort label-326
SELECT DISTINCT 47 * - - COUNT ( * ) AS col1
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-327
SELECT ALL COUNT( * ) - NULLIF ( - 81, - + 80 + + 30 )
----
82

skipif mysql # not compatible
query I rowsort label-327
SELECT ALL COUNT ( * ) - NULLIF ( - 81, - + 80 + + 30 )
----
82

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-328
SELECT COUNT( + ( + - 10 ) ) * 45 / - + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-328
SELECT COUNT ( + ( + - 10 ) ) * 45 / - + CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT 50 * + - 66 AS col1
----
-3300

onlyif mysql # aggregate syntax: 
query I rowsort label-330
SELECT ALL 11 * + 94 * COUNT( * )
----
1034

skipif mysql # not compatible
query I rowsort label-330
SELECT ALL 11 * + 94 * COUNT ( * )
----
1034

onlyif mysql # aggregate syntax: 
query II rowsort label-331
SELECT - 8 col2, - ( - COUNT( * ) ) col0
----
-8
1

skipif mysql # not compatible
query II rowsort label-331
SELECT - 8 col2, - ( - COUNT ( * ) ) col0
----
-8
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-332
SELECT ALL + 0 DIV - - MAX( DISTINCT - 51 )
----
0

skipif mysql # not compatible
query I rowsort label-332
SELECT ALL + 0 / - - MAX ( DISTINCT - 51 )
----
0

query I rowsort
SELECT ALL 63 * + 8
----
504

onlyif mysql # aggregate syntax: 
query I rowsort label-334
SELECT ALL - MIN( 25 ) * + COUNT( * ) - + - 34 + 62 * - - 52 * + 63
----
203121

skipif mysql # not compatible
query I rowsort label-334
SELECT ALL - MIN ( 25 ) * + COUNT ( * ) - + - 34 + 62 * - - 52 * + 63
----
203121

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-336
SELECT ALL 52 DIV - 27
----
-1

skipif mysql # not compatible
query I rowsort label-336
SELECT ALL 52 / - 27
----
-1

query I rowsort
SELECT 74 * + 53 + NULLIF ( 75, 48 ) AS col0
----
3997

onlyif mysql # aggregate syntax: 
query I rowsort label-338
SELECT DISTINCT - 3 + + COALESCE ( COUNT( * ), - COUNT( * ) )
----
-2

skipif mysql # not compatible
query I rowsort label-338
SELECT DISTINCT - 3 + + COALESCE ( COUNT ( * ), - COUNT ( * ) )
----
-2

query II rowsort
SELECT NULLIF ( + 35, - ( - 52 ) ) col0, + ( 30 ) + 43 * + 10 * 57
----
35
24540

onlyif mysql # DIV for integer division: 
query I rowsort label-340
SELECT 7 DIV + - 91 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-340
SELECT 7 / + - 91 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-341
SELECT - COUNT( * ) * - - 6 + + - 43 * - + MIN( 91 ) AS col0
----
3907

skipif mysql # not compatible
query I rowsort label-341
SELECT - COUNT ( * ) * - - 6 + + - 43 * - + MIN ( 91 ) AS col0
----
3907

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-343
SELECT COUNT( * ) AS col0, + NULLIF ( + COUNT( * ), + + 13 + - CASE + 65 WHEN + MAX( - 68 ) THEN - 85 WHEN + COUNT( DISTINCT ( - 53 ) ) + 19 THEN NULL WHEN 68 + 70 THEN NULL ELSE NULL END + - CASE + MAX( DISTINCT - 18 ) WHEN - 69 - + 43 THEN NULL WHEN + 11 THEN CAST( + 0 AS SIGNED ) END )
----
1
1

skipif mysql # not compatible
query II rowsort label-343
SELECT COUNT ( * ) AS col0, + NULLIF ( + COUNT ( * ), + + 13 + - CASE + 65 WHEN + MAX ( - 68 ) THEN - 85 WHEN + COUNT ( DISTINCT ( - 53 ) ) + 19 THEN NULL WHEN 68 + 70 THEN NULL ELSE NULL END + - CASE + MAX ( DISTINCT - 18 ) WHEN - 69 - + 43 THEN NULL WHEN + 11 THEN CAST ( + 0 AS INTEGER ) END )
----
1
1

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

skipif mysql # not compatible
query I rowsort label-344
SELECT COUNT ( 32 )
----
1

query I rowsort
SELECT ALL - 46 + + 74 * - 8 col1
----
-638

onlyif mysql # aggregate syntax: 
query I rowsort label-346
SELECT MAX( + 27 ) * - - 36 AS col1
----
972

skipif mysql # not compatible
query I rowsort label-346
SELECT MAX ( + 27 ) * - - 36 AS col1
----
972

query I rowsort
SELECT ALL 98 + + 93 AS col1
----
191

onlyif mysql # aggregate syntax: 
query II rowsort label-348
SELECT ALL + + 42 + + - 55 * - - 51 AS col2, COUNT( * )
----
-2763
1

skipif mysql # not compatible
query II rowsort label-348
SELECT ALL + + 42 + + - 55 * - - 51 AS col2, COUNT ( * )
----
-2763
1

onlyif mysql # aggregate syntax: 
query I rowsort label-349
SELECT ALL - 55 + + 14 * CASE 42 WHEN - - 93 THEN - COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-349
SELECT ALL - 55 + + 14 * CASE 42 WHEN - - 93 THEN - COUNT ( * ) END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-350
SELECT + + 69 col2, + 81 * - COUNT( * )
----
69
-81

skipif mysql # not compatible
query II rowsort label-350
SELECT + + 69 col2, + 81 * - COUNT ( * )
----
69
-81

query I rowsort
SELECT ALL 25 * + + 11 AS col2
----
275

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-352
SELECT 56 + + - COUNT( * ) DIV + - 42, + 4 AS col2
----
56
4

skipif mysql # not compatible
query II rowsort label-352
SELECT 56 + + - COUNT ( * ) / + - 42, + 4 AS col2
----
56
4

query I rowsort
SELECT 2 + + - 95 + + 55 + + - 18 + 54 AS col1
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-354
SELECT ALL - CASE - 18 WHEN - 42 THEN NULL ELSE + 72 END + COUNT( * ) * 93
----
21

skipif mysql # not compatible
query I rowsort label-354
SELECT ALL - CASE - 18 WHEN - 42 THEN NULL ELSE + 72 END + COUNT ( * ) * 93
----
21

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

skipif mysql # not compatible
query I rowsort label-355
SELECT DISTINCT - MIN ( - 72 )
----
72

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-356
SELECT - COUNT( * ) * - CAST( 96 AS SIGNED ) * + CASE 28 WHEN + 7 THEN COUNT( * ) END + CAST( + 53 AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-356
SELECT - COUNT ( * ) * - CAST ( 96 AS INTEGER ) * + CASE 28 WHEN + 7 THEN COUNT ( * ) END + CAST ( + 53 AS REAL )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-357
SELECT ALL + 94 DIV + 54 col1
----
1

skipif mysql # not compatible
query I rowsort label-357
SELECT ALL + 94 / + 54 col1
----
1

query I rowsort
SELECT DISTINCT ( - 42 ) - 98 AS col1
----
-140

query I rowsort
SELECT ALL + 76 * + 35 AS col1
----
2660

onlyif mysql # DIV for integer division: 
query I rowsort label-360
SELECT ALL + 67 * 90 * + COALESCE ( - COALESCE ( + 62, - - 78 ), 88 * + 89 + + - 83 DIV 22, 55 )
----
-373860

skipif mysql # not compatible
query I rowsort label-360
SELECT ALL + 67 * 90 * + COALESCE ( - COALESCE ( + 62, - - 78 ), 88 * + 89 + + - 83 / 22, 55 )
----
-373860

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-361
SELECT 4 * + 10 + + 39 - 45 + AVG ( ALL - 34 ) / ( + + 23 ) * + CASE 25 WHEN + ( SUM( DISTINCT + 41 ) ) THEN NULL WHEN 15 + 32 * - 97 THEN - CAST( NULL AS SIGNED ) + COUNT( * ) ELSE NULL END / SUM( + 14 / 27 ) + 50
----
NULL

skipif mysql # not compatible
query I rowsort label-361
SELECT 4 * + 10 + + 39 - 45 + AVG ( ALL - 34 ) / ( + + 23 ) * + CASE 25 WHEN + ( SUM ( DISTINCT + 41 ) ) THEN NULL WHEN 15 + 32 * - 97 THEN - CAST ( NULL AS INTEGER ) + COUNT ( * ) ELSE NULL END / SUM ( + 14 / 27 ) + 50
----
NULL

query I rowsort
SELECT DISTINCT + 77 * 74 AS col0
----
5698

onlyif mysql # aggregate syntax: 
query I rowsort label-363
SELECT COUNT( + + 50 ) - + COUNT( * ) * + - 24 col2
----
25

skipif mysql # not compatible
query I rowsort label-363
SELECT COUNT ( + + 50 ) - + COUNT ( * ) * + - 24 col2
----
25

onlyif mysql # aggregate syntax: 
query II rowsort label-364
SELECT 50 * + COUNT( ALL - 27 ) * - 76 AS col0, 7 + + + 57 AS col0
----
-3800
64

skipif mysql # not compatible
query II rowsort label-364
SELECT 50 * + COUNT ( ALL - 27 ) * - 76 AS col0, 7 + + + 57 AS col0
----
-3800
64

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

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

query I rowsort
SELECT 60 * + ( - + 99 ) col0
----
-5940

query II rowsort
SELECT DISTINCT + 14 * + - 53 AS col1, 23 + - - 71 col1
----
-742
94

query I rowsort
SELECT ALL + 5 * - 71 AS col0
----
-355

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-369
SELECT 85 * - CAST( - 60 AS SIGNED )
----
5100

skipif mysql # not compatible
query I rowsort label-369
SELECT 85 * - CAST ( - 60 AS INTEGER )
----
5100

query I rowsort
SELECT ALL - 32 + 43 + - 3 + + - 86 * + - 21
----
1814

query II rowsort
SELECT ALL - 99 + 11 AS col0, 94
----
-88
94

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-372
SELECT - CASE - + 19 WHEN + 74 + + CASE 1 WHEN 68 + + 35 THEN 66 / - + CASE CAST( - ( 20 ) AS SIGNED ) WHEN ( + COUNT( ALL 8 ) ) THEN - ( 71 ) ELSE NULL END ELSE NULL END / COUNT( * ) THEN NULL WHEN 45 * 56 THEN 85 * + MAX( 41 ) END + 58 * 61 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-372
SELECT - CASE - + 19 WHEN + 74 + + CASE 1 WHEN 68 + + 35 THEN 66 / - + CASE CAST ( - ( 20 ) AS INTEGER ) WHEN ( + COUNT ( ALL 8 ) ) THEN - ( 71 ) ELSE NULL END ELSE NULL END / COUNT ( * ) THEN NULL WHEN 45 * 56 THEN 85 * + MAX ( 41 ) END + 58 * 61 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-373
SELECT ALL + 20 * 49 + 62 + + 3 + COUNT( * ) + + 30 * 19 * + - MAX( DISTINCT - 59 ) AS col1
----
34676

skipif mysql # not compatible
query I rowsort label-373
SELECT ALL + 20 * 49 + 62 + + 3 + COUNT ( * ) + + 30 * 19 * + - MAX ( DISTINCT - 59 ) AS col1
----
34676

query I rowsort
SELECT ALL 99 * + 65 - + - 39 + + 77 col1
----
6551

query I rowsort
SELECT ALL + + ( - - 12 ) * 67
----
804

onlyif mysql # DIV for integer division: 
query I rowsort label-376
SELECT - 19 DIV - 44 + - 5
----
-5

skipif mysql # not compatible
query I rowsort label-376
SELECT - 19 / - 44 + - 5
----
-5

query I rowsort
SELECT + 35 + + + ( - + 70 ) AS col0
----
-35

onlyif mysql # DIV for integer division: 
query I rowsort label-378
SELECT + 79 DIV 31 * - 92 * + - 95 col1
----
17480

skipif mysql # not compatible
query I rowsort label-378
SELECT + 79 / 31 * - 92 * + - 95 col1
----
17480

query I rowsort
SELECT 68 + 64 + + NULLIF ( 38, - 20 ) + - + 18 col0
----
152

query I rowsort
SELECT + 31 * + - 63 + 3
----
-1950

query I rowsort
SELECT ALL + 23 - + 20
----
3

query I rowsort
SELECT 60 + - 70 * + 51
----
-3510

query I rowsort
SELECT ALL 36 * - ( - 83 )
----
2988

onlyif mysql # aggregate syntax: 
query I rowsort label-384
SELECT - COUNT( * ) * MAX( 49 ) + + 57
----
8

skipif mysql # not compatible
query I rowsort label-384
SELECT - COUNT ( * ) * MAX ( 49 ) + + 57
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-385
SELECT ALL ( + MIN( DISTINCT + + 20 ) ) - 66 AS col0
----
-46

skipif mysql # not compatible
query I rowsort label-385
SELECT ALL ( + MIN ( DISTINCT + + 20 ) ) - 66 AS col0
----
-46

query I rowsort
SELECT DISTINCT 71 * + - 20
----
-1420

query I rowsort
SELECT DISTINCT + 81 * + 10
----
810

query I rowsort
SELECT + ( - 55 ) * - ( + 67 )
----
3685

query I rowsort
SELECT DISTINCT 35 * - + 88 * - + 20
----
61600

query II rowsort
SELECT ALL 92, - 51 AS col2
----
92
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-391
SELECT ALL MAX( DISTINCT - ( + 27 ) )
----
-27

skipif mysql # not compatible
query I rowsort label-391
SELECT ALL MAX ( DISTINCT - ( + 27 ) )
----
-27

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-392
SELECT DISTINCT 99 * - CASE - CASE WHEN NOT + SUM( CAST( NULL AS SIGNED ) ) IN ( 10, - 71 / + 6 ) THEN - 47 END WHEN 18 * + COUNT( 24 ) THEN NULL WHEN - 49 THEN NULL WHEN + 60 THEN - 21 * COUNT( * ) ELSE 99 + + MAX( + 38 + + 11 * - 59 ) END
----
50688

skipif mysql # not compatible
query I rowsort label-392
SELECT DISTINCT 99 * - CASE - CASE WHEN NOT + SUM ( CAST ( NULL AS INTEGER ) ) IN ( 10, - 71 / + 6 ) THEN - 47 END WHEN 18 * + COUNT ( 24 ) THEN NULL WHEN - 49 THEN NULL WHEN + 60 THEN - 21 * COUNT ( * ) ELSE 99 + + MAX ( + 38 + + 11 * - 59 ) END
----
50688

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-393
SELECT + SUM( + CAST( - + 42 AS SIGNED ) ) + - 7
----
-49

skipif mysql # not compatible
query I rowsort label-393
SELECT + SUM ( + CAST ( - + 42 AS INTEGER ) ) + - 7
----
-49

onlyif mysql # aggregate syntax: 
query II rowsort label-394
SELECT - COALESCE ( + COUNT( * ), + 67 ), 19 AS col1
----
-1
19

skipif mysql # not compatible
query II rowsort label-394
SELECT - COALESCE ( + COUNT ( * ), + 67 ), 19 AS col1
----
-1
19

onlyif mysql # aggregate syntax: 
query I rowsort label-395
SELECT DISTINCT - COUNT( * ) * - MIN( DISTINCT - - 61 ) AS col0
----
61

skipif mysql # not compatible
query I rowsort label-395
SELECT DISTINCT - COUNT ( * ) * - MIN ( DISTINCT - - 61 ) AS col0
----
61

onlyif mysql # aggregate syntax: 
query II rowsort label-396
SELECT - NULLIF ( - MIN( DISTINCT 78 ), 47 ) * - COUNT( * ) AS col1, + 80 col0
----
-78
80

skipif mysql # not compatible
query II rowsort label-396
SELECT - NULLIF ( - MIN ( DISTINCT 78 ), 47 ) * - COUNT ( * ) AS col1, + 80 col0
----
-78
80

onlyif mysql # aggregate syntax: 
query I rowsort label-397
SELECT + 93 - + + COUNT( * )
----
92

skipif mysql # not compatible
query I rowsort label-397
SELECT + 93 - + + COUNT ( * )
----
92

query II rowsort
SELECT - - 9 + NULLIF ( 81, - 50 ) + 25 AS col1, 66 AS col0
----
115
66

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-399
SELECT DISTINCT - ( + 92 ) + - - 80 + + - 99 + + COUNT( * ) DIV - - 7 + + 72 * - 65
----
-4791

skipif mysql # not compatible
query I rowsort label-399
SELECT DISTINCT - ( + 92 ) + - - 80 + + - 99 + + COUNT ( * ) / - - 7 + + 72 * - 65
----
-4791

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-400
SELECT - CAST( NULL AS SIGNED ) + + CASE + 74 WHEN + 11 THEN 62 END
----
NULL

skipif mysql # not compatible
query I rowsort label-400
SELECT - CAST ( NULL AS INTEGER ) + + CASE + 74 WHEN + 11 THEN 62 END
----
NULL

query I rowsort
SELECT - + 76 * - + 55 + + 42
----
4222

query I rowsort
SELECT - + 90 col2
----
-90

query I rowsort
SELECT - 30 + + - ( 60 ) * - 4 col2
----
210

onlyif mysql # aggregate syntax: 
query I rowsort label-404
SELECT ALL - 54 + + - 32 + - + ( - 58 ) * + SUM( ALL 84 ) + + - 23 * 2 * - - 57 AS col2
----
2164

skipif mysql # not compatible
query I rowsort label-404
SELECT ALL - 54 + + - 32 + - + ( - 58 ) * + SUM ( ALL 84 ) + + - 23 * 2 * - - 57 AS col2
----
2164

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

skipif mysql # not compatible
query I rowsort label-405
SELECT DISTINCT COUNT ( * ) + - 98 AS col2
----
-97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-406
SELECT ALL - 24, NULLIF ( CAST( NULL AS SIGNED ), + COUNT( * ) * + CASE - 97 WHEN 84 THEN - 48 + + 36 / + 98 * COUNT( DISTINCT 21 * 52 ) END + 59 ) AS col2
----
-24
NULL

skipif mysql # not compatible
query II rowsort label-406
SELECT ALL - 24, NULLIF ( CAST ( NULL AS INTEGER ), + COUNT ( * ) * + CASE - 97 WHEN 84 THEN - 48 + + 36 / + 98 * COUNT ( DISTINCT 21 * 52 ) END + 59 ) AS col2
----
-24
NULL

query I rowsort
SELECT DISTINCT + 51 * 36 + - 16 AS col2
----
1820

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

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

query I rowsort
SELECT - - 7 * - - ( - 26 ) col0
----
-182

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

skipif mysql # not compatible
query I rowsort label-410
SELECT SUM ( DISTINCT 61 )
----
61

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

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

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

skipif mysql # not compatible
query I rowsort label-412
SELECT ALL + + COUNT ( DISTINCT + 36 ) AS col2
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-413
SELECT DISTINCT - ( + 32 ) * + - 28 + 68 DIV - 93 AS col1
----
896

skipif mysql # not compatible
query I rowsort label-413
SELECT DISTINCT - ( + 32 ) * + - 28 + 68 / - 93 AS col1
----
896

query I rowsort
SELECT ALL 67 * + 95 - + 3
----
6362

onlyif mysql # aggregate syntax: 
query I rowsort label-415
SELECT CASE - COUNT( + - 43 ) WHEN + - COALESCE ( + AVG ( DISTINCT + 9 ), + + 15 ) THEN - - MAX( DISTINCT 57 ) ELSE - 64 + - 30 END AS col1
----
-94

skipif mysql # not compatible
query I rowsort label-415
SELECT CASE - COUNT ( + - 43 ) WHEN + - COALESCE ( + AVG ( DISTINCT + 9 ), + + 15 ) THEN - - MAX ( DISTINCT 57 ) ELSE - 64 + - 30 END AS col1
----
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-416
SELECT DISTINCT + COUNT( * ) * + 66 col0
----
66

skipif mysql # not compatible
query I rowsort label-416
SELECT DISTINCT + COUNT ( * ) * + 66 col0
----
66

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-417
SELECT ALL + 99, - SUM( - CAST( NULL AS DECIMAL ) ) AS col0
----
99
NULL

skipif mysql # not compatible
query II rowsort label-417
SELECT ALL + 99, - SUM ( - CAST ( NULL AS REAL ) ) AS col0
----
99
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-418
SELECT + 12 DIV - 48 * ( 84 ) * + + COALESCE ( - COALESCE ( + - 78, - - 44 DIV COUNT( * ) ), 16 - + 34 )
----
0

skipif mysql # not compatible
query I rowsort label-418
SELECT + 12 / - 48 * ( 84 ) * + + COALESCE ( - COALESCE ( + - 78, - - 44 / COUNT ( * ) ), 16 - + 34 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-419
SELECT - SUM( ALL + 57 ) + 20 AS col2
----
-37

skipif mysql # not compatible
query I rowsort label-419
SELECT - SUM ( ALL + 57 ) + 20 AS col2
----
-37

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-421
SELECT COUNT( * ) * + 61 + - 37 * 80 col0
----
-2899

skipif mysql # not compatible
query I rowsort label-421
SELECT COUNT ( * ) * + 61 + - 37 * 80 col0
----
-2899

onlyif mysql # aggregate syntax: 
query I rowsort label-422
SELECT + SUM( DISTINCT 3 ) * - 34
----
-102

skipif mysql # not compatible
query I rowsort label-422
SELECT + SUM ( DISTINCT 3 ) * - 34
----
-102

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-423
SELECT + SUM( 47 ) DIV + + 91
----
0

skipif mysql # not compatible
query I rowsort label-423
SELECT + SUM ( 47 ) / + + 91
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-424
SELECT DISTINCT 88 DIV + 40
----
2

skipif mysql # not compatible
query I rowsort label-424
SELECT DISTINCT 88 / + 40
----
2

query I rowsort
SELECT ALL 22 * 92 + + - NULLIF ( 74, + + 90 ) * 26 AS col2
----
100

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

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

query I rowsort
SELECT DISTINCT 84 * - + 71 + + + 56
----
-5908

onlyif mysql # DIV for integer division: 
query I rowsort label-428
SELECT ALL 17 * 67 DIV + 27 AS col1
----
42

skipif mysql # not compatible
query I rowsort label-428
SELECT ALL 17 * 67 / + 27 AS col1
----
42

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-429
SELECT ALL 90 * CAST( NULL AS SIGNED ) + + 33
----
NULL

skipif mysql # not compatible
query I rowsort label-429
SELECT ALL 90 * CAST ( NULL AS INTEGER ) + + 33
----
NULL

query I rowsort
SELECT ALL 87 + - 45 + - 15 - - 83 * + + 1 AS col1
----
110

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-431
SELECT + CAST( + CASE + COUNT( * ) WHEN - 52 THEN + 62 END AS SIGNED ) * - 33 + - + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-431
SELECT + CAST ( + CASE + COUNT ( * ) WHEN - 52 THEN + 62 END AS INTEGER ) * - 33 + - + COUNT ( * )
----
NULL

query I rowsort
SELECT + 69 + + 18 AS col2
----
87

onlyif mysql # DIV for integer division: 
query I rowsort label-433
SELECT + 75 - + - 47 DIV - 93
----
75

skipif mysql # not compatible
query I rowsort label-433
SELECT + 75 - + - 47 / - 93
----
75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-434
SELECT 66, MAX( - CASE - 19 WHEN 65 + + 65 THEN - CAST( - - ( 56 ) AS SIGNED ) END ) AS col2
----
66
NULL

skipif mysql # not compatible
query II rowsort label-434
SELECT 66, MAX ( - CASE - 19 WHEN 65 + + 65 THEN - CAST ( - - ( 56 ) AS INTEGER ) END ) AS col2
----
66
NULL

query II rowsort
SELECT + 76 AS col1, + 59 * 68 AS col0
----
76
4012

onlyif mysql # aggregate syntax: 
query I rowsort label-436
SELECT ALL CASE - COUNT( * ) WHEN - - 18 * + MIN( DISTINCT 92 ) THEN + 89 + - 17 WHEN 5 THEN NULL WHEN + 21 * + - 36 + 8 THEN NULL ELSE NULL END + 59
----
NULL

skipif mysql # not compatible
query I rowsort label-436
SELECT ALL CASE - COUNT ( * ) WHEN - - 18 * + MIN ( DISTINCT 92 ) THEN + 89 + - 17 WHEN 5 THEN NULL WHEN + 21 * + - 36 + 8 THEN NULL ELSE NULL END + 59
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-437
SELECT + - CASE COUNT( * ) WHEN CAST( - COUNT( * ) AS SIGNED ) THEN 29 + + 71 + + - 28 * + - 0 + 73 WHEN 44 THEN + CAST( ( + 56 ) AS DECIMAL ) * - 86 - - 64 END - + COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-437
SELECT + - CASE COUNT ( * ) WHEN CAST ( - COUNT ( * ) AS INTEGER ) THEN 29 + + 71 + + - 28 * + - 0 + 73 WHEN 44 THEN + CAST ( ( + 56 ) AS REAL ) * - 86 - - 64 END - + COUNT ( * ) AS col0
----
NULL

query I rowsort
SELECT DISTINCT - 72 + - 86
----
-158

onlyif mysql # DIV for integer division: 
query I rowsort label-439
SELECT + + 3 DIV - 35 * - 72
----
0

skipif mysql # not compatible
query I rowsort label-439
SELECT + + 3 / - 35 * - 72
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-440
SELECT + MIN( ALL - - 71 ) + 28 - 70 + COUNT( * ) * - 49 col1
----
-20

skipif mysql # not compatible
query I rowsort label-440
SELECT + MIN ( ALL - - 71 ) + 28 - 70 + COUNT ( * ) * - 49 col1
----
-20

query I rowsort
SELECT ALL - 59 * + + 11 AS col0
----
-649

query I rowsort
SELECT + 34 + + 67 AS col2
----
101

onlyif mysql # aggregate syntax: 
query I rowsort label-443
SELECT - NULLIF ( - 79, - COUNT( * ) ) - + 62
----
17

skipif mysql # not compatible
query I rowsort label-443
SELECT - NULLIF ( - 79, - COUNT ( * ) ) - + 62
----
17

onlyif mysql # DIV for integer division: 
query I rowsort label-444
SELECT DISTINCT 73 DIV - 42 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-444
SELECT DISTINCT 73 / - 42 AS col0
----
-1

query I rowsort
SELECT ALL + - NULLIF ( - - 52, 61 ) - + 22 AS col1
----
-74

query I rowsort
SELECT + - 76 + - ( + + 7 )
----
-83

query I rowsort
SELECT ALL - - 56 * - + 95 col2
----
-5320

query I rowsort
SELECT ALL + 96 * 55 + + 3
----
5283

onlyif mysql # DIV for integer division: 
query I rowsort label-449
SELECT - 60 * ( 6 ) + 6 DIV + 49 AS col1
----
-360

skipif mysql # not compatible
query I rowsort label-449
SELECT - 60 * ( 6 ) + 6 / + 49 AS col1
----
-360

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

query I rowsort
SELECT 8 * 97
----
776

query II rowsort
SELECT 70 + - 11 col0, 86 + 94 + + 16 + + 23 AS col1
----
59
219

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-453
SELECT CAST( NULL AS SIGNED ) * - 46 + + CASE 13 WHEN - - COALESCE ( + + 52, - 43, + 23, - CASE - + 62 WHEN + + 82 THEN - 68 WHEN 99 + - ( 11 ) * COUNT( DISTINCT 95 ) THEN 1 ELSE + 65 * + 43 END * 65 + COUNT( * ) * 54 ) THEN 8 - ( 57 ) * 65 ELSE 70 + + COALESCE ( 61, 93 / - 76 + - COUNT( * ) ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-453
SELECT CAST ( NULL AS INTEGER ) * - 46 + + CASE 13 WHEN - - COALESCE ( + + 52, - 43, + 23, - CASE - + 62 WHEN + + 82 THEN - 68 WHEN 99 + - ( 11 ) * COUNT ( DISTINCT 95 ) THEN 1 ELSE + 65 * + 43 END * 65 + COUNT ( * ) * 54 ) THEN 8 - ( 57 ) * 65 ELSE 70 + + COALESCE ( 61, 93 / - 76 + - COUNT ( * ) ) END AS col0
----
NULL

query I rowsort
SELECT 51 * + 47 AS col2
----
2397

query I rowsort
SELECT 63 * ( - 1 ) * 34
----
-2142

query I rowsort
SELECT ALL - 45 + - 56 AS col0
----
-101

onlyif mysql # DIV for integer division: 
query I rowsort label-457
SELECT ALL - 73 DIV - 57
----
1

skipif mysql # not compatible
query I rowsort label-457
SELECT ALL - 73 / - 57
----
1

query I rowsort
SELECT ALL + 18 + + 39 + - 92 AS col0
----
-35

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-459
SELECT DISTINCT 82 + + - 85 + + - COUNT( * ) + - + ( + + COALESCE ( 46, - CAST( NULL AS SIGNED ) ) ) + - + ( - 56 ) * - + ( 23 ) * + 19 AS col1
----
-24522

skipif mysql # not compatible
query I rowsort label-459
SELECT DISTINCT 82 + + - 85 + + - COUNT ( * ) + - + ( + + COALESCE ( 46, - CAST ( NULL AS INTEGER ) ) ) + - + ( - 56 ) * - + ( 23 ) * + 19 AS col1
----
-24522

query I rowsort
SELECT ALL 0 + 68
----
68

query I rowsort
SELECT 89 * 87 col0
----
7743

onlyif mysql # aggregate syntax: 
query I rowsort label-462
SELECT ALL + COUNT( DISTINCT - - 13 ) + 43 * 63
----
2710

skipif mysql # not compatible
query I rowsort label-462
SELECT ALL + COUNT ( DISTINCT - - 13 ) + 43 * 63
----
2710

query I rowsort
SELECT DISTINCT + 28 + - - 90 AS col2
----
118

onlyif mysql # DIV for integer division: 
query I rowsort label-464
SELECT 79 DIV + 32
----
2

skipif mysql # not compatible
query I rowsort label-464
SELECT 79 / + 32
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-465
SELECT ALL 73 + MAX( + 25 )
----
98

skipif mysql # not compatible
query I rowsort label-465
SELECT ALL 73 + MAX ( + 25 )
----
98

query I rowsort
SELECT 5 + - 70 + + 91 + - ( - 69 ) col2
----
95

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-467
SELECT ALL + 62 * + 19 * + - CAST( 83 AS SIGNED ) + + 56 AS col2
----
-97718

skipif mysql # not compatible
query I rowsort label-467
SELECT ALL + 62 * + 19 * + - CAST ( 83 AS INTEGER ) + + 56 AS col2
----
-97718

query I rowsort
SELECT ALL + 93 - - - CASE - 51 WHEN - CASE + + ( - + 67 ) WHEN - 49 THEN NULL WHEN + 64 THEN - + COALESCE ( + AVG ( DISTINCT 46 ), + 63 - - 46 * - COALESCE ( 7 * 79, + 30 * + 69 + 90 * 9, + 43 ) ) / 51 END * 56 THEN + 41 END col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-469
SELECT DISTINCT - COUNT( * ) * - ( + - COUNT( * ) ) * 68 * + - 96 - CASE WHEN NOT - 35 > NULLIF ( + + CASE + + 38 WHEN + 22 / 24 THEN - 99 ELSE NULL END, 20 - 49 ) THEN NULL WHEN NOT - 52 * - 86 IS NOT NULL THEN + NULLIF ( 50, + 93 * MAX( ALL - 17 ) ) ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-469
SELECT DISTINCT - COUNT ( * ) * - ( + - COUNT ( * ) ) * 68 * + - 96 - CASE WHEN NOT - 35 > NULLIF ( + + CASE + + 38 WHEN + 22 / 24 THEN - 99 ELSE NULL END, 20 - 49 ) THEN NULL WHEN NOT - 52 * - 86 IS NOT NULL THEN + NULLIF ( 50, + 93 * MAX ( ALL - 17 ) ) ELSE NULL END AS col2
----
NULL

query I rowsort
SELECT 74 + + 34 AS col0
----
108

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

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

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

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

query I rowsort
SELECT 45 * + 95
----
4275

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-474
SELECT DISTINCT - COUNT( * ) DIV + 98 + + + NULLIF ( - + 83, + 52 * - CAST( - + 87 AS SIGNED ) * + + 62 + - 51 ) * + - 33 + - CAST( + 77 AS SIGNED ) DIV - 25 AS col1
----
2742

skipif mysql # not compatible
query I rowsort label-474
SELECT DISTINCT - COUNT ( * ) / + 98 + + + NULLIF ( - + 83, + 52 * - CAST ( - + 87 AS INTEGER ) * + + 62 + - 51 ) * + - 33 + - CAST ( + 77 AS INTEGER ) / - 25 AS col1
----
2742

query I rowsort
SELECT 54 * - 42 * - 66
----
149688

query I rowsort
SELECT ALL - 77 + - - 72
----
-5

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-477
SELECT ALL - COALESCE ( - 61, - - ( 67 ) DIV - 63 + + COUNT( * ) ) AS col0
----
61

skipif mysql # not compatible
query I rowsort label-477
SELECT ALL - COALESCE ( - 61, - - ( 67 ) / - 63 + + COUNT ( * ) ) AS col0
----
61

query I rowsort
SELECT DISTINCT 77 + 38
----
115

query II rowsort
SELECT 10, 72 AS col2
----
10
72

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-480
SELECT DISTINCT - COUNT( * ) + - + COUNT( * ) * + 93 DIV - ( - + COALESCE ( + 92, + COUNT( * ) ) ) AS col2
----
-2

skipif mysql # not compatible
query I rowsort label-480
SELECT DISTINCT - COUNT ( * ) + - + COUNT ( * ) * + 93 / - ( - + COALESCE ( + 92, + COUNT ( * ) ) ) AS col2
----
-2

onlyif mysql # aggregate syntax: 
query II rowsort label-481
SELECT DISTINCT - 27 AS col0, - 73 * + 19 + - + COUNT( - - 11 )
----
-27
-1388

skipif mysql # not compatible
query II rowsort label-481
SELECT DISTINCT - 27 AS col0, - 73 * + 19 + - + COUNT ( - - 11 )
----
-27
-1388

onlyif mysql # aggregate syntax: 
query I rowsort label-482
SELECT 78 * + SUM( ALL - 36 ) - - 29 AS col1
----
-2779

skipif mysql # not compatible
query I rowsort label-482
SELECT 78 * + SUM ( ALL - 36 ) - - 29 AS col1
----
-2779

query I rowsort
SELECT 24 * + + 87
----
2088

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-484
SELECT ALL + COUNT( * ) + + + 0 * + 85 * + - 9 DIV 13 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-484
SELECT ALL + COUNT ( * ) + + + 0 * + 85 * + - 9 / 13 AS col1
----
1

query I rowsort
SELECT 95 * + + 22 AS col2
----
2090

query II rowsort
SELECT ALL - 30 AS col2, - 58
----
-30
-58

query I rowsort
SELECT ALL - 51 - + 92 - - 4 * + 75
----
157

query I rowsort
SELECT 15 * - 32 * 17 + - 57 AS col1
----
-8217

query II rowsort
SELECT DISTINCT 14, + 33 AS col0
----
14
33

onlyif mysql # aggregate syntax: 
query I rowsort label-490
SELECT + 54 + + NULLIF ( + COUNT( * ), + 88 ) AS col0
----
55

skipif mysql # not compatible
query I rowsort label-490
SELECT + 54 + + NULLIF ( + COUNT ( * ), + 88 ) AS col0
----
55

query I rowsort
SELECT ALL - + 90 - - 20
----
-70

query I rowsort
SELECT DISTINCT + + 27 * 38 * - 76
----
-77976

onlyif mysql # DIV for integer division: 
query I rowsort label-493
SELECT 12 DIV - 38 * 50 * - - 69 * 1
----
0

skipif mysql # not compatible
query I rowsort label-493
SELECT 12 / - 38 * 50 * - - 69 * 1
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-494
SELECT 99 * + COALESCE ( + - 58, + COUNT( * ) * - + 30 DIV + 0 - + + 93 + - 6 ), 22 AS col2
----
-5742
22

skipif mysql # not compatible
query II rowsort label-494
SELECT 99 * + COALESCE ( + - 58, + COUNT ( * ) * - + 30 / + 0 - + + 93 + - 6 ), 22 AS col2
----
-5742
22

query I rowsort
SELECT COALESCE ( ( + 85 ), 92 ) col2
----
85

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-496
SELECT DISTINCT 1, 22 * - - CAST( NULL AS SIGNED ) AS col1
----
1
NULL

skipif mysql # not compatible
query II rowsort label-496
SELECT DISTINCT 1, 22 * - - CAST ( NULL AS INTEGER ) AS col1
----
1
NULL

query II rowsort
SELECT - 4 + + 98 + 49 col2, - 33 AS col2
----
143
-33

query I rowsort
SELECT 22 - - - 39 + + 73 AS col0
----
56

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-499
SELECT - CASE COUNT( * ) WHEN - COALESCE ( + + ( - COUNT( * ) ), 33 * + 92 + - 91 ) THEN - 46 DIV - 91 * + 74 - + 25 END AS col1
----
25

skipif mysql # not compatible
query I rowsort label-499
SELECT - CASE COUNT ( * ) WHEN - COALESCE ( + + ( - COUNT ( * ) ), 33 * + 92 + - 91 ) THEN - 46 / - 91 * + 74 - + 25 END AS col1
----
25

query II rowsort
SELECT ALL 68 AS col0, - 96
----
68
-96

query I rowsort
SELECT DISTINCT + 57 * + 70
----
3990

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-502
SELECT ALL + 73 AS col0, + 99 + - - SUM( ALL - - 85 ) + - CAST( NULL AS SIGNED ) * + + 19 AS col0
----
73
NULL

skipif mysql # not compatible
query II rowsort label-502
SELECT ALL + 73 AS col0, + 99 + - - SUM ( ALL - - 85 ) + - CAST ( NULL AS INTEGER ) * + + 19 AS col0
----
73
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-503
SELECT + 93 * 86 * - + MIN( DISTINCT + 89 ) AS col0
----
-711822

skipif mysql # not compatible
query I rowsort label-503
SELECT + 93 * 86 * - + MIN ( DISTINCT + 89 ) AS col0
----
-711822

onlyif mysql # aggregate syntax: 
query I rowsort label-504
SELECT + + 18 - - 27 - - COUNT( * )
----
46

skipif mysql # not compatible
query I rowsort label-504
SELECT + + 18 - - 27 - - COUNT ( * )
----
46

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-507
SELECT ALL 72 + + 63 + + 88 / - 10 + - CAST( NULL AS SIGNED ) * - 94
----
NULL

skipif mysql # not compatible
query I rowsort label-507
SELECT ALL 72 + + 63 + + 88 / - 10 + - CAST ( NULL AS INTEGER ) * - 94
----
NULL

query I rowsort
SELECT ALL - 14 * 15 + 16 col2
----
-194

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-509
SELECT COUNT( * ) * - 44 DIV 36 + + 72 * - - 63
----
4535

skipif mysql # not compatible
query I rowsort label-509
SELECT COUNT ( * ) * - 44 / 36 + + 72 * - - 63
----
4535

onlyif mysql # DIV for integer division: 
query I rowsort label-510
SELECT + 17 DIV + - ( + 6 ) + 33 AS col2
----
31

skipif mysql # not compatible
query I rowsort label-510
SELECT + 17 / + - ( + 6 ) + 33 AS col2
----
31

query I rowsort
SELECT ALL 29 * - - 80 + 69 + 43 * + 86
----
6087

onlyif mysql # aggregate syntax: 
query I rowsort label-512
SELECT + 6 + + COUNT( * ) AS col1
----
7

skipif mysql # not compatible
query I rowsort label-512
SELECT + 6 + + COUNT ( * ) AS col1
----
7

query II rowsort
SELECT ALL - 59 * - 57 * + + 14 + + 97 col2, - 95 + - 41 col0
----
47179
-136

onlyif mysql # DIV for integer division: 
query II rowsort label-514
SELECT + ( - ( + + 90 ) ) DIV 25 AS col1, 38 * 84 * + - 46 AS col0
----
-3
-146832

skipif mysql # not compatible
query II rowsort label-514
SELECT + ( - ( + + 90 ) ) / 25 AS col1, 38 * 84 * + - 46 AS col0
----
-3
-146832

onlyif mysql # aggregate syntax: 
query I rowsort label-515
SELECT + 0 + SUM( DISTINCT + - 51 )
----
-51

skipif mysql # not compatible
query I rowsort label-515
SELECT + 0 + SUM ( DISTINCT + - 51 )
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-516
SELECT 83 * + + 27 + + 47 + - MAX( DISTINCT - + ( + 95 ) ) AS col2
----
2383

skipif mysql # not compatible
query I rowsort label-516
SELECT 83 * + + 27 + + 47 + - MAX ( DISTINCT - + ( + 95 ) ) AS col2
----
2383

onlyif mysql # aggregate syntax: 
query I rowsort label-517
SELECT + COALESCE ( + - MIN( + 12 ), - + 66 ) AS col0
----
-12

skipif mysql # not compatible
query I rowsort label-517
SELECT + COALESCE ( + - MIN ( + 12 ), - + 66 ) AS col0
----
-12

query I rowsort
SELECT DISTINCT + COALESCE ( + 19, 0 + 77 ) * - - 53 - + 57
----
950

onlyif mysql # aggregate syntax: 
query I rowsort label-519
SELECT ALL + MIN( 78 ) AS col2
----
78

skipif mysql # not compatible
query I rowsort label-519
SELECT ALL + MIN ( 78 ) AS col2
----
78

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-520
SELECT ALL 28 * - + 42 * MAX( + CAST( NULL AS SIGNED ) ) * + COALESCE ( COUNT( * ), 49 * - - CASE + + 11 WHEN 3 * + 21 + + COALESCE ( - MAX( DISTINCT + + 61 ), + MIN( 45 ) * 2 ) + ( + 48 + + 25 ) + 83 / 83 THEN - 25 + - SUM( ALL 81 ) END ) - + 11 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-520
SELECT ALL 28 * - + 42 * MAX ( + CAST ( NULL AS INTEGER ) ) * + COALESCE ( COUNT ( * ), 49 * - - CASE + + 11 WHEN 3 * + 21 + + COALESCE ( - MAX ( DISTINCT + + 61 ), + MIN ( 45 ) * 2 ) + ( + 48 + + 25 ) + 83 / 83 THEN - 25 + - SUM ( ALL 81 ) END ) - + 11 AS col0
----
NULL

query I rowsort
SELECT - - 40 * 61
----
2440

query I rowsort
SELECT - - 26 col1
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-523
SELECT + + 80 * - MAX( 81 ) * + 86 + - COUNT( * ) * - 22
----
-557258

skipif mysql # not compatible
query I rowsort label-523
SELECT + + 80 * - MAX ( 81 ) * + 86 + - COUNT ( * ) * - 22
----
-557258

onlyif mysql # aggregate syntax: 
query I rowsort label-524
SELECT - SUM( + - 37 ) * + - MAX( ALL 10 ) + + - 78 + + + 16 AS col0
----
-432

skipif mysql # not compatible
query I rowsort label-524
SELECT - SUM ( + - 37 ) * + - MAX ( ALL 10 ) + + - 78 + + + 16 AS col0
----
-432

query I rowsort
SELECT NULLIF ( + 84, + - ( 42 ) ) AS col2
----
84

onlyif mysql # DIV for integer division: 
query I rowsort label-526
SELECT ALL + + 33 DIV + 43
----
0

skipif mysql # not compatible
query I rowsort label-526
SELECT ALL + + 33 / + 43
----
0

query I rowsort
SELECT DISTINCT + CASE WHEN ( NOT + 2 <= - 64 ) THEN NULL ELSE 60 + + + ( + 68 ) END + 39 - - 24
----
NULL

query I rowsort
SELECT ALL - + 37 + 82 AS col2
----
45

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-529
SELECT - + 64 DIV - 88 * COUNT( * ) * 70 + + COUNT( * ) + + - 87 * 20 * + 23 AS col0
----
-40019

skipif mysql # not compatible
query I rowsort label-529
SELECT - + 64 / - 88 * COUNT ( * ) * 70 + + COUNT ( * ) + + - 87 * 20 * + 23 AS col0
----
-40019

query I rowsort
SELECT - - 53 * - 35 AS col2
----
-1855

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-531
SELECT - - NULLIF ( - + 80, + - CAST( + - 96 AS SIGNED ) ) + MAX( + - 27 )
----
-107

skipif mysql # not compatible
query I rowsort label-531
SELECT - - NULLIF ( - + 80, + - CAST ( + - 96 AS INTEGER ) ) + MAX ( + - 27 )
----
-107

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

skipif mysql # not compatible
query I rowsort label-532
SELECT MIN ( ALL CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-533
SELECT - 0 + + COUNT( * ) * 94
----
94

skipif mysql # not compatible
query I rowsort label-533
SELECT - 0 + + COUNT ( * ) * 94
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-534
SELECT ALL + - NULLIF ( 92, - MAX( 87 ) ) + - 40 AS col1
----
-132

skipif mysql # not compatible
query I rowsort label-534
SELECT ALL + - NULLIF ( 92, - MAX ( 87 ) ) + - 40 AS col1
----
-132

query I rowsort
SELECT + 13 + + 25 * + + 3
----
88

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

skipif mysql # not compatible
query I rowsort label-536
SELECT ALL - CAST ( + 63 AS INTEGER ) + - + 16
----
-79

query I rowsort
SELECT - 53 * - - 83
----
-4399

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-538
SELECT DISTINCT - - ( + + 18 ) / + AVG ( 36 ) * - CAST( NULL AS SIGNED ) * + 29 + - ( - CASE - 52 WHEN + + 72 THEN + - MAX( ALL - 14 ) ELSE - 88 END ) + 82 - - ( + 30 ) + - 16 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-538
SELECT DISTINCT - - ( + + 18 ) / + AVG ( 36 ) * - CAST ( NULL AS INTEGER ) * + 29 + - ( - CASE - 52 WHEN + + 72 THEN + - MAX ( ALL - 14 ) ELSE - 88 END ) + 82 - - ( + 30 ) + - 16 col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-539
SELECT DISTINCT - 32 + - + 99 DIV - + CAST( 44 AS SIGNED )
----
-30

skipif mysql # not compatible
query I rowsort label-539
SELECT DISTINCT - 32 + - + 99 / - + CAST ( 44 AS INTEGER )
----
-30

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-540
SELECT - 13 * - - ( + CAST( NULL AS SIGNED ) ) * COUNT( * ) + NULLIF ( - - 37, + 5 ) + - - CASE - 85 WHEN - ( + + 8 ) * + 40 THEN - - 26 - - CASE - + AVG ( 60 ) WHEN 13 THEN 9 + + NULLIF ( 68 - COUNT( * ), 51 ) * 77 WHEN 35 THEN NULL ELSE NULL END + - COALESCE ( 37, NULLIF ( 88, 25 ) / 60 ) END * + ( 41 + - 5 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-540
SELECT - 13 * - - ( + CAST ( NULL AS INTEGER ) ) * COUNT ( * ) + NULLIF ( - - 37, + 5 ) + - - CASE - 85 WHEN - ( + + 8 ) * + 40 THEN - - 26 - - CASE - + AVG ( 60 ) WHEN 13 THEN 9 + + NULLIF ( 68 - COUNT ( * ), 51 ) * 77 WHEN 35 THEN NULL ELSE NULL END + - COALESCE ( 37, NULLIF ( 88, 25 ) / 60 ) END * + ( 41 + - 5 ) AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-541
SELECT - 30 DIV - - 84 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-541
SELECT - 30 / - - 84 AS col2
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-542
SELECT ALL - 14 + - - COUNT( DISTINCT + 14 ) AS col2, 81 col0
----
-13
81

skipif mysql # not compatible
query II rowsort label-542
SELECT ALL - 14 + - - COUNT ( DISTINCT + 14 ) AS col2, 81 col0
----
-13
81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-543
SELECT ALL NULLIF ( - - CAST( NULL AS SIGNED ), 75 ) + - 73 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-543
SELECT ALL NULLIF ( - - CAST ( NULL AS INTEGER ), 75 ) + - 73 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-544
SELECT - 94 - + 63 + 2 * COUNT( * ) + - - CASE 59 WHEN - + CASE - 26 WHEN 93 * COUNT( * ) + 9 THEN 19 END + + - 36 * - + 87 THEN + 58 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-544
SELECT - 94 - + 63 + 2 * COUNT ( * ) + - - CASE 59 WHEN - + CASE - 26 WHEN 93 * COUNT ( * ) + 9 THEN 19 END + + - 36 * - + 87 THEN + 58 END AS col1
----
NULL

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-546
SELECT ALL + 38 DIV - 89 * 98 - + 20 col2
----
-20

skipif mysql # not compatible
query I rowsort label-546
SELECT ALL + 38 / - 89 * 98 - + 20 col2
----
-20

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-547
SELECT - CAST( + 8 AS SIGNED ) * - + 77
----
616

skipif mysql # not compatible
query I rowsort label-547
SELECT - CAST ( + 8 AS INTEGER ) * - + 77
----
616

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-549
SELECT ( + CAST( - 99 AS SIGNED ) ) * + 6 - - 83 AS col2
----
-511

skipif mysql # not compatible
query I rowsort label-549
SELECT ( + CAST ( - 99 AS INTEGER ) ) * + 6 - - 83 AS col2
----
-511

query I rowsort
SELECT ALL + 24 * 48
----
1152

query I rowsort
SELECT DISTINCT + COALESCE ( - - ( - 11 ), 75 ) AS col0
----
-11

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

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

query I rowsort
SELECT 52 * + + 43 + - - 68 AS col0
----
2304

query I rowsort
SELECT + 10 * + 93
----
930

onlyif mysql # DIV for integer division: 
query I rowsort label-555
SELECT + 80 + - + 56 DIV - - 53
----
79

skipif mysql # not compatible
query I rowsort label-555
SELECT + 80 + - + 56 / - - 53
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-556
SELECT ALL COUNT( * ) * 91 AS col1
----
91

skipif mysql # not compatible
query I rowsort label-556
SELECT ALL COUNT ( * ) * 91 AS col1
----
91

onlyif mysql # DIV for integer division: 
query I rowsort label-557
SELECT + 98 DIV - 94 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-557
SELECT + 98 / - 94 AS col2
----
-1

query I rowsort
SELECT 59 * - 20 + - + 37 AS col1
----
-1217

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-559
SELECT + 34 DIV - 93 * + - COALESCE ( - - 23, - 61, - SUM( ALL - + 34 ) * - MAX( DISTINCT 14 ) )
----
0

skipif mysql # not compatible
query I rowsort label-559
SELECT + 34 / - 93 * + - COALESCE ( - - 23, - 61, - SUM ( ALL - + 34 ) * - MAX ( DISTINCT 14 ) )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-560
SELECT 20 + - 31 * 55 - COUNT( * )
----
-1686

skipif mysql # not compatible
query I rowsort label-560
SELECT 20 + - 31 * 55 - COUNT ( * )
----
-1686

query I rowsort
SELECT ALL + 79 * 59
----
4661

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-562
SELECT CAST( + 65 AS SIGNED ) * - - 88
----
5720

skipif mysql # not compatible
query I rowsort label-562
SELECT CAST ( + 65 AS INTEGER ) * - - 88
----
5720

query I rowsort
SELECT + COALESCE ( + + 24, + 61 * + 12 + - + ( + - 44 ) * - 87 ) AS col1
----
24

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-565
SELECT 31 * 97 * 70 * + + CASE - 70 WHEN 44 * - - NULLIF ( + + 47, + 4 ) + - 89 THEN NULL WHEN ( + 41 ) THEN NULL ELSE + COUNT( * ) END AS col2
----
210490

skipif mysql # not compatible
query I rowsort label-565
SELECT 31 * 97 * 70 * + + CASE - 70 WHEN 44 * - - NULLIF ( + + 47, + 4 ) + - 89 THEN NULL WHEN ( + 41 ) THEN NULL ELSE + COUNT ( * ) END AS col2
----
210490

onlyif mysql # aggregate syntax: 
query I rowsort label-566
SELECT ALL - ( - + 67 ) + - - 85 * - 65 + + COUNT( DISTINCT + 61 ) + - 12
----
-5469

skipif mysql # not compatible
query I rowsort label-566
SELECT ALL - ( - + 67 ) + - - 85 * - 65 + + COUNT ( DISTINCT + 61 ) + - 12
----
-5469

query I rowsort
SELECT ALL - 47 + - - 46 AS col0
----
-1

query I rowsort
SELECT + 50 + - 31
----
19

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

onlyif mysql # aggregate syntax: 
query II rowsort label-570
SELECT DISTINCT - COUNT( * ) + + 77 AS col1, - 89 + + - CASE + 0 WHEN ( 26 ) THEN NULL WHEN 89 THEN - - 8 ELSE - 45 * 75 * + - 91 END * 21
----
76
-6449714

skipif mysql # not compatible
query II rowsort label-570
SELECT DISTINCT - COUNT ( * ) + + 77 AS col1, - 89 + + - CASE + 0 WHEN ( 26 ) THEN NULL WHEN 89 THEN - - 8 ELSE - 45 * 75 * + - 91 END * 21
----
76
-6449714

query I rowsort
SELECT DISTINCT + 45 + - 68
----
-23

query I rowsort
SELECT ALL - 82 - 28
----
-110

query II rowsort
SELECT - 71 AS col2, 85
----
-71
85

query II rowsort
SELECT ALL 73, 75 AS col2
----
73
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-575
SELECT CAST( 17 AS SIGNED ) + - 90 AS col0
----
-73

skipif mysql # not compatible
query I rowsort label-575
SELECT CAST ( 17 AS INTEGER ) + - 90 AS col0
----
-73

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

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

query II rowsort
SELECT 14 - 33 + ( + 83 ) AS col2, 69 - 52
----
64
17

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-578
SELECT ALL - MAX( ALL + - 96 ) - + COALESCE ( - + ( + + 10 ), + CASE - ( - - NULLIF ( + 76, - COUNT( * ) + - 76 ) ) WHEN - CAST( NULL AS SIGNED ) / MAX( + 4 ) + - 71 THEN NULL ELSE + 3 END, 24 * - 22 ) * COUNT( * ) AS col2
----
106

skipif mysql # not compatible
query I rowsort label-578
SELECT ALL - MAX ( ALL + - 96 ) - + COALESCE ( - + ( + + 10 ), + CASE - ( - - NULLIF ( + 76, - COUNT ( * ) + - 76 ) ) WHEN - CAST ( NULL AS INTEGER ) / MAX ( + 4 ) + - 71 THEN NULL ELSE + 3 END, 24 * - 22 ) * COUNT ( * ) AS col2
----
106

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

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

query I rowsort
SELECT 98 * + 25 AS col1
----
2450

onlyif mysql # DIV for integer division: 
query I rowsort label-581
SELECT ALL - 56 DIV + - 87 * + 1 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-581
SELECT ALL - 56 / + - 87 * + 1 AS col1
----
0

query I rowsort
SELECT 19 * - + 11 * 48 + - 80 AS col0
----
-10112

onlyif mysql # aggregate syntax: 
query I rowsort label-583
SELECT ALL - 83 - + MAX( 41 ) AS col2
----
-124

skipif mysql # not compatible
query I rowsort label-583
SELECT ALL - 83 - + MAX ( 41 ) AS col2
----
-124

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-585
SELECT DISTINCT - CAST( + + COUNT( DISTINCT 19 ) AS SIGNED )
----
-1

skipif mysql # not compatible
query I rowsort label-585
SELECT DISTINCT - CAST ( + + COUNT ( DISTINCT 19 ) AS INTEGER )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-586
SELECT 33 * - SUM( 77 )
----
-2541

skipif mysql # not compatible
query I rowsort label-586
SELECT 33 * - SUM ( 77 )
----
-2541

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-587
SELECT + 6, ( + 95 ) + + CAST( NULL AS SIGNED ) AS col1
----
6
NULL

skipif mysql # not compatible
query II rowsort label-587
SELECT + 6, ( + 95 ) + + CAST ( NULL AS INTEGER ) AS col1
----
6
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-588
SELECT 39 + + CASE + 94 WHEN - 95 / 89 THEN NULLIF ( + + 52, + 87 + - + 5 ) / + COUNT( * ) - + 26 WHEN - COUNT( * ) THEN + 39 + - 72 * ( - MAX( + 8 ) ) - + ( 68 + CASE - ( - 9 ) - - 83 WHEN CAST( NULL AS DECIMAL ) THEN + 24 END ) * 11 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-588
SELECT 39 + + CASE + 94 WHEN - 95 / 89 THEN NULLIF ( + + 52, + 87 + - + 5 ) / + COUNT ( * ) - + 26 WHEN - COUNT ( * ) THEN + 39 + - 72 * ( - MAX ( + 8 ) ) - + ( 68 + CASE - ( - 9 ) - - 83 WHEN CAST ( NULL AS REAL ) THEN + 24 END ) * 11 ELSE NULL END
----
NULL

query I rowsort
SELECT 10 * - 41
----
-410

onlyif mysql # aggregate syntax: 
query I rowsort label-590
SELECT - COUNT( * ) * + 24 * + 87 * - - CASE - 27 WHEN 54 * 76 / 24 + 91 THEN + 5 ELSE NULL END + - 13
----
NULL

skipif mysql # not compatible
query I rowsort label-590
SELECT - COUNT ( * ) * + 24 * + 87 * - - CASE - 27 WHEN 54 * 76 / 24 + 91 THEN + 5 ELSE NULL END + - 13
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-592
SELECT + COUNT( ALL + 20 ) AS col0, 37 AS col0
----
1
37

skipif mysql # not compatible
query II rowsort label-592
SELECT + COUNT ( ALL + 20 ) AS col0, 37 AS col0
----
1
37

onlyif mysql # aggregate syntax: 
query I rowsort label-593
SELECT ALL - MAX( DISTINCT - ( + + 21 ) )
----
21

skipif mysql # not compatible
query I rowsort label-593
SELECT ALL - MAX ( DISTINCT - ( + + 21 ) )
----
21

query I rowsort
SELECT + 23 * - 72 AS col2
----
-1656

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

skipif mysql # not compatible
query I rowsort label-595
SELECT ALL - SUM ( ( + - 91 ) ) AS col2
----
91

query I rowsort
SELECT - 76 - - + 86 AS col2
----
10

query II rowsort
SELECT 37, - 18 col1
----
37
-18

query II rowsort
SELECT - - 45, - CASE + 94 WHEN - + COALESCE ( - AVG ( DISTINCT - 82 ), + 0 ) THEN + 89 WHEN + 18 + 42 THEN NULL END * - - ( + 79 ) col1
----
45
NULL

query I rowsort
SELECT + COALESCE ( 27, - 5 ) AS col0
----
27

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

query I rowsort
SELECT DISTINCT 4 + + 89 * 64
----
5700

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-602
SELECT + COUNT( * ) + + 68 DIV + 32 col0
----
3

skipif mysql # not compatible
query I rowsort label-602
SELECT + COUNT ( * ) + + 68 / + 32 col0
----
3

query II rowsort
SELECT ALL 16 AS col2, 63
----
16
63

query I rowsort
SELECT 63 * + - NULLIF ( - ( + 95 ), - - 71 ) col1
----
5985

onlyif mysql # aggregate syntax: 
query I rowsort label-605
SELECT 5 + 84 - + NULLIF ( NULLIF ( + NULLIF ( + 77, + 98 * - 14 * - 74 ), + ( + ( CASE + 1 WHEN - 14 * - - SUM( + 26 ) * - + 33 * + 17 + + 84 THEN - MAX( + 6 ) ELSE 13 END ) ) ), + 65 )
----
12

skipif mysql # not compatible
query I rowsort label-605
SELECT 5 + 84 - + NULLIF ( NULLIF ( + NULLIF ( + 77, + 98 * - 14 * - 74 ), + ( + ( CASE + 1 WHEN - 14 * - - SUM ( + 26 ) * - + 33 * + 17 + + 84 THEN - MAX ( + 6 ) ELSE 13 END ) ) ), + 65 )
----
12

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-606
SELECT 14 + 0 + - + 82 DIV - COUNT( * ) + + - 17 + + 14
----
93

skipif mysql # not compatible
query I rowsort label-606
SELECT 14 + 0 + - + 82 / - COUNT ( * ) + + - 17 + + 14
----
93

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

query I rowsort
SELECT 88 * 80
----
7040

query I rowsort
SELECT 24 + + 96 col0
----
120

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-610
SELECT DISTINCT - ( 31 ) * 65 * + SUM( ALL + - CAST( + + 15 AS SIGNED ) )
----
30225

skipif mysql # not compatible
query I rowsort label-610
SELECT DISTINCT - ( 31 ) * 65 * + SUM ( ALL + - CAST ( + + 15 AS INTEGER ) )
----
30225

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-611
SELECT DISTINCT COUNT( ALL - + 12 ) AS col2, 62 DIV 96 * + - COUNT( - 7 )
----
1
0

skipif mysql # not compatible
query II rowsort label-611
SELECT DISTINCT COUNT ( ALL - + 12 ) AS col2, 62 / 96 * + - COUNT ( - 7 )
----
1
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-612
SELECT ALL - 51 * CAST( - 34 AS SIGNED )
----
1734

skipif mysql # not compatible
query I rowsort label-612
SELECT ALL - 51 * CAST ( - 34 AS INTEGER )
----
1734

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-613
SELECT CAST( + COUNT( * ) AS SIGNED ) - - 55 AS col1
----
56

skipif mysql # not compatible
query I rowsort label-613
SELECT CAST ( + COUNT ( * ) AS INTEGER ) - - 55 AS col1
----
56

query I rowsort
SELECT 33 * + + 51 AS col1
----
1683

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-615
SELECT COALESCE ( - COUNT( * ), + - 10 DIV + CAST( 87 AS SIGNED ) + + 97, + - COUNT( * ) ) + 46 + - 0
----
45

skipif mysql # not compatible
query I rowsort label-615
SELECT COALESCE ( - COUNT ( * ), + - 10 / + CAST ( 87 AS INTEGER ) + + 97, + - COUNT ( * ) ) + 46 + - 0
----
45

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

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

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

skipif mysql # not compatible
query I rowsort label-617
SELECT NULLIF ( + COUNT ( - - 62 ), - COUNT ( * ) )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-618
SELECT NULLIF ( + 90, - 62 * + + 37 * + + COUNT( * ) - + COUNT( ALL + - 84 ) / 78 - 28 ) AS col0
----
90

skipif mysql # not compatible
query I rowsort label-618
SELECT NULLIF ( + 90, - 62 * + + 37 * + + COUNT ( * ) - + COUNT ( ALL + - 84 ) / 78 - 28 ) AS col0
----
90

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-619
SELECT 23 DIV - COUNT( - - 53 ) AS col0
----
-23

skipif mysql # not compatible
query I rowsort label-619
SELECT 23 / - COUNT ( - - 53 ) AS col0
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-620
SELECT 58 * + CASE - 57 WHEN - + 69 - - 30 + - - 24 * 17 THEN - + CASE + - 91 WHEN + 68 - - - COUNT( * ) + - 17 * - COUNT( DISTINCT - 54 ) * + 67 THEN + 58 / - 63 + 32 WHEN COUNT( * ) / 58 THEN - 40 * - 66 END * - 9 - 79 WHEN - 24 * 70 THEN NULL ELSE NULL END * 24 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-620
SELECT 58 * + CASE - 57 WHEN - + 69 - - 30 + - - 24 * 17 THEN - + CASE + - 91 WHEN + 68 - - - COUNT ( * ) + - 17 * - COUNT ( DISTINCT - 54 ) * + 67 THEN + 58 / - 63 + 32 WHEN COUNT ( * ) / 58 THEN - 40 * - 66 END * - 9 - 79 WHEN - 24 * 70 THEN NULL ELSE NULL END * 24 AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-621
SELECT - - 18 - 7 * - + 37 DIV + COUNT( * ) + - 73 + + + 28 DIV ( - 93 ) AS col2
----
204

skipif mysql # not compatible
query I rowsort label-621
SELECT - - 18 - 7 * - + 37 / + COUNT ( * ) + - 73 + + + 28 / ( - 93 ) AS col2
----
204

onlyif mysql # aggregate syntax: 
query I rowsort label-622
SELECT - COUNT( ALL - - 80 ) + - 57 + + - 17 * - COUNT( * ) col2
----
-41

skipif mysql # not compatible
query I rowsort label-622
SELECT - COUNT ( ALL - - 80 ) + - 57 + + - 17 * - COUNT ( * ) col2
----
-41

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-623
SELECT CASE + CAST( NULL AS SIGNED ) WHEN - COUNT( * ) THEN - - 79 WHEN - + MIN( + 62 ) THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-623
SELECT CASE + CAST ( NULL AS INTEGER ) WHEN - COUNT ( * ) THEN - - 79 WHEN - + MIN ( + 62 ) THEN NULL END
----
NULL

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-625
SELECT + + 2 - CAST( + COUNT( * ) AS SIGNED ) * - 44
----
46

skipif mysql # not compatible
query I rowsort label-625
SELECT + + 2 - CAST ( + COUNT ( * ) AS INTEGER ) * - 44
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-626
SELECT + CASE - 99 WHEN + + 53 + - - COUNT( * ) THEN NULL ELSE - 26 END AS col0
----
-26

skipif mysql # not compatible
query I rowsort label-626
SELECT + CASE - 99 WHEN + + 53 + - - COUNT ( * ) THEN NULL ELSE - 26 END AS col0
----
-26

query I rowsort
SELECT DISTINCT 36 * - 12 * - + 58 + + 96 + - 16
----
25136

query I rowsort
SELECT DISTINCT + + 74 * 32 + - 64
----
2304

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-629
SELECT ALL + COUNT( * ) - 61 DIV 38 * - 23 + + 57 AS col1, - 92 * + - COUNT( * ) * + - COUNT( * )
----
81
-92

skipif mysql # not compatible
query II rowsort label-629
SELECT ALL + COUNT ( * ) - 61 / 38 * - 23 + + 57 AS col1, - 92 * + - COUNT ( * ) * + - COUNT ( * )
----
81
-92

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

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

query I rowsort
SELECT + - 66 + + 23 col0
----
-43

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-632
SELECT - COUNT( + CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) ) col2
----
0

skipif mysql # not compatible
query I rowsort label-632
SELECT - COUNT ( + CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) ) col2
----
0

query I rowsort
SELECT - + ( - 58 ) + 0
----
58

query I rowsort
SELECT - 90 * + + 50 AS col1
----
-4500

query I rowsort
SELECT + 59 * + 49 + - 36
----
2855

onlyif mysql # DIV for integer division: 
query I rowsort label-636
SELECT - - 64 + - 21 - - + 46 DIV + 48 AS col2
----
43

skipif mysql # not compatible
query I rowsort label-636
SELECT - - 64 + - 21 - - + 46 / + 48 AS col2
----
43

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-637
SELECT 73 AS col0, - CAST( + 99 AS SIGNED ) * 74
----
73
-7326

skipif mysql # not compatible
query II rowsort label-637
SELECT 73 AS col0, - CAST ( + 99 AS INTEGER ) * 74
----
73
-7326

onlyif mysql # aggregate syntax: 
query I rowsort label-638
SELECT - NULLIF ( + SUM( - + ( + 77 ) ), + + COUNT( * ) * - 58 / 32 - + - 64 + + - 26 - + ( + - 40 ) ) AS col0
----
77

skipif mysql # not compatible
query I rowsort label-638
SELECT - NULLIF ( + SUM ( - + ( + 77 ) ), + + COUNT ( * ) * - 58 / 32 - + - 64 + + - 26 - + ( + - 40 ) ) AS col0
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-639
SELECT + 36 + ( + COUNT( * ) ) col2
----
37

skipif mysql # not compatible
query I rowsort label-639
SELECT + 36 + ( + COUNT ( * ) ) col2
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-640
SELECT + ( CASE - 43 WHEN - 23 THEN NULL ELSE - + ( COUNT( + 32 ) ) * + 56 END ) * 32 - + NULLIF ( - 99, 46 )
----
-1693

skipif mysql # not compatible
query I rowsort label-640
SELECT + ( CASE - 43 WHEN - 23 THEN NULL ELSE - + ( COUNT ( + 32 ) ) * + 56 END ) * 32 - + NULLIF ( - 99, 46 )
----
-1693

onlyif mysql # aggregate syntax: 
query I rowsort label-641
SELECT ALL CASE 56 WHEN - 5 THEN - COUNT( DISTINCT - 5 ) ELSE + 34 END * 86 AS col1
----
2924

skipif mysql # not compatible
query I rowsort label-641
SELECT ALL CASE 56 WHEN - 5 THEN - COUNT ( DISTINCT - 5 ) ELSE + 34 END * 86 AS col1
----
2924

onlyif mysql # DIV for integer division: 
query I rowsort label-642
SELECT DISTINCT + 83 DIV + 76 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-642
SELECT DISTINCT + 83 / + 76 AS col0
----
1

query I rowsort
SELECT + 41 + 51 + - - ( - + 90 )
----
2

query I rowsort
SELECT DISTINCT 53 * - - 91
----
4823

query I rowsort
SELECT + 17 + - 98
----
-81

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

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

query I rowsort
SELECT ALL 99 * - + 32 AS col1
----
-3168

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

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

query I rowsort
SELECT + 11 - - + 85 + + - 49 + + 4 AS col0
----
51

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

query I rowsort
SELECT + 81 + COALESCE ( + - 26, - + 81 ) - + 74 * - 22 + + 11
----
1694

onlyif mysql # aggregate syntax: 
query I rowsort label-652
SELECT + MIN( ALL + 95 ) - + - ( 14 ) - - 29
----
138

skipif mysql # not compatible
query I rowsort label-652
SELECT + MIN ( ALL + 95 ) - + - ( 14 ) - - 29
----
138

query I rowsort
SELECT + 58 + 32 AS col0
----
90

onlyif mysql # DIV for integer division: 
query II rowsort label-654
SELECT ALL 45 + - - 51 DIV + + 89 AS col1, 75 + - 54
----
45
21

skipif mysql # not compatible
query II rowsort label-654
SELECT ALL 45 + - - 51 / + + 89 AS col1, 75 + - 54
----
45
21

query I rowsort
SELECT - 17 * + + ( 57 ) + + 40 col0
----
-929

query I rowsort
SELECT ALL + 21 * - 53 AS col2
----
-1113

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-657
SELECT DISTINCT + - ( + COUNT( * ) ) DIV - - 81 + 65 + + + 18 AS col1
----
83

skipif mysql # not compatible
query I rowsort label-657
SELECT DISTINCT + - ( + COUNT ( * ) ) / - - 81 + 65 + + + 18 AS col1
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-658
SELECT ALL + - 40 * - 99 * + 91 * COUNT( * )
----
360360

skipif mysql # not compatible
query I rowsort label-658
SELECT ALL + - 40 * - 99 * + 91 * COUNT ( * )
----
360360

onlyif mysql # DIV for integer division: 
query I rowsort label-659
SELECT ALL + + 81 DIV + + 48 + 98 + + 49 col1
----
148

skipif mysql # not compatible
query I rowsort label-659
SELECT ALL + + 81 / + + 48 + 98 + + 49 col1
----
148

query I rowsort
SELECT - + 6 + + - 18 AS col2
----
-24

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

onlyif mysql # aggregate syntax: 
query I rowsort label-662
SELECT ALL + - 48 * - ( + 28 ) * - 11 + COUNT( * ) - - + 84 * - 9
----
-15539

skipif mysql # not compatible
query I rowsort label-662
SELECT ALL + - 48 * - ( + 28 ) * - 11 + COUNT ( * ) - - + 84 * - 9
----
-15539

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-664
SELECT + - 16 * + 24 + + - COUNT( * ) AS col1, + COUNT( * )
----
-385
1

skipif mysql # not compatible
query II rowsort label-664
SELECT + - 16 * + 24 + + - COUNT ( * ) AS col1, + COUNT ( * )
----
-385
1

query I rowsort
SELECT + 81 * + 73 AS col0
----
5913

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

skipif mysql # not compatible
query II rowsort label-666
SELECT - 49 col1, - ( ( CAST ( NULL AS INTEGER ) ) ) AS col0
----
-49
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-667
SELECT ALL - 52 * + 88 - COUNT( * ) + 64 DIV + + 30
----
-4575

skipif mysql # not compatible
query I rowsort label-667
SELECT ALL - 52 * + 88 - COUNT ( * ) + 64 / + + 30
----
-4575

onlyif mysql # DIV for integer division: 
query II rowsort label-668
SELECT ALL + + 23 DIV - - 54 * - 1 AS col1, - 97 AS col2
----
0
-97

skipif mysql # not compatible
query II rowsort label-668
SELECT ALL + + 23 / - - 54 * - 1 AS col1, - 97 AS col2
----
0
-97

query I rowsort
SELECT - + 54 + + 22
----
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-670
SELECT DISTINCT + + MIN( + 51 )
----
51

skipif mysql # not compatible
query I rowsort label-670
SELECT DISTINCT + + MIN ( + 51 )
----
51

onlyif mysql # DIV for integer division: 
query I rowsort label-671
SELECT ALL - 15 DIV - 21 * + - 99 * - + ( - - 40 ) * - + 64
----
0

skipif mysql # not compatible
query I rowsort label-671
SELECT ALL - 15 / - 21 * + - 99 * - + ( - - 40 ) * - + 64
----
0

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

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

query II rowsort
SELECT + 89 col0, 11 col0
----
89
11

onlyif mysql # aggregate syntax: 
query I rowsort label-674
SELECT + MIN( 53 ) * + COUNT( * ) + 45 - + 94
----
4

skipif mysql # not compatible
query I rowsort label-674
SELECT + MIN ( 53 ) * + COUNT ( * ) + 45 - + 94
----
4

query I rowsort
SELECT - - 29 * + - 67
----
-1943

query I rowsort
SELECT ALL + 24 * 58 col2
----
1392

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

query I rowsort
SELECT ALL + 69 * - 71 * - - 56
----
-274344

onlyif mysql # aggregate syntax: 
query I rowsort label-679
SELECT - ( - 11 ) * 26 * MIN( ALL - 62 ) AS col1
----
-17732

skipif mysql # not compatible
query I rowsort label-679
SELECT - ( - 11 ) * 26 * MIN ( ALL - 62 ) AS col1
----
-17732

query I rowsort
SELECT - 0 - + 71 + + 72 AS col2
----
1

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-682
SELECT - CAST( NULL AS SIGNED ) * - 54 col2, - ( + 51 ) * + + 11 + - - 13 * - COUNT( * ) + + CAST( NULL AS SIGNED )
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-682
SELECT - CAST ( NULL AS INTEGER ) * - 54 col2, - ( + 51 ) * + + 11 + - - 13 * - COUNT ( * ) + + CAST ( NULL AS INTEGER )
----
NULL
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-683
SELECT + 88 + - 7, - 31 DIV ( + + 11 ) AS col0
----
81
-2

skipif mysql # not compatible
query II rowsort label-683
SELECT + 88 + - 7, - 31 / ( + + 11 ) AS col0
----
81
-2

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

skipif mysql # not compatible
query I rowsort label-684
SELECT ALL ( - + COUNT ( * ) ) / 80 * 63
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-685
SELECT - 58 DIV + - 23 AS col1
----
2

skipif mysql # not compatible
query I rowsort label-685
SELECT - 58 / + - 23 AS col1
----
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-686
SELECT ALL COALESCE ( - ( + CAST( - 24 AS SIGNED ) ), COUNT( * ), - 34 + - - 46 - - 55 ) + - + MAX( + 61 ) - - 51
----
14

skipif mysql # not compatible
query I rowsort label-686
SELECT ALL COALESCE ( - ( + CAST ( - 24 AS INTEGER ) ), COUNT ( * ), - 34 + - - 46 - - 55 ) + - + MAX ( + 61 ) - - 51
----
14

onlyif mysql # DIV for integer division: 
query I rowsort label-687
SELECT ALL - 34 DIV + 23 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-687
SELECT ALL - 34 / + 23 AS col1
----
-1

query I rowsort
SELECT ALL 98 * 25 AS col2
----
2450

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-689
SELECT + 29 - - 50 - + - 88 + 12 + - + COUNT( * ) + - - 97 + - - 0 * - COALESCE ( + CAST( - COALESCE ( + 41, - NULLIF ( + 19, - - 63 * - COALESCE ( - ( + 60 ), - ( - 66 ) + - 41 ) + + 82 ), 9, + 89 + COUNT( - ( 25 ) ) ) AS SIGNED ), - COUNT( 99 ) ) DIV - 67 + - 90 DIV 70
----
274

skipif mysql # not compatible
query I rowsort label-689
SELECT + 29 - - 50 - + - 88 + 12 + - + COUNT ( * ) + - - 97 + - - 0 * - COALESCE ( + CAST ( - COALESCE ( + 41, - NULLIF ( + 19, - - 63 * - COALESCE ( - ( + 60 ), - ( - 66 ) + - 41 ) + + 82 ), 9, + 89 + COUNT ( - ( 25 ) ) ) AS INTEGER ), - COUNT ( 99 ) ) / - 67 + - 90 / 70
----
274

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-691
SELECT - 12 * - 81 + - NULLIF ( 30, - + 31 ) AS col0, 22 - + 61 DIV - 34 + - - 46
----
942
69

skipif mysql # not compatible
query II rowsort label-691
SELECT - 12 * - 81 + - NULLIF ( 30, - + 31 ) AS col0, 22 - + 61 / - 34 + - - 46
----
942
69

onlyif mysql # aggregate syntax: 
query I rowsort label-692
SELECT + MAX( DISTINCT + 29 )
----
29

skipif mysql # not compatible
query I rowsort label-692
SELECT + MAX ( DISTINCT + 29 )
----
29

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-694
SELECT ALL 9 - - 27 DIV - + 48
----
9

skipif mysql # not compatible
query I rowsort label-694
SELECT ALL 9 - - 27 / - + 48
----
9

query I rowsort
SELECT 90 + 51 col0
----
141

query I rowsort
SELECT - 51 * 47 * + 21 + - + 87 + + + 48 AS col0
----
-50376

query I rowsort
SELECT 59 - + 82 * - - 10 AS col1
----
-761

onlyif mysql # aggregate syntax: 
query II rowsort label-698
SELECT + 12 AS col1, CASE - 2 WHEN - 65 + - 31 * + + 19 * - COUNT( * ) * - 93 / + + 34 THEN + 36 + ( + MAX( ALL + 36 ) ) - + - 24 + + - COUNT( * ) / + 61 ELSE 39 * - ( 69 ) + + 99 END AS col1
----
12
-2592

skipif mysql # not compatible
query II rowsort label-698
SELECT + 12 AS col1, CASE - 2 WHEN - 65 + - 31 * + + 19 * - COUNT ( * ) * - 93 / + + 34 THEN + 36 + ( + MAX ( ALL + 36 ) ) - + - 24 + + - COUNT ( * ) / + 61 ELSE 39 * - ( 69 ) + + 99 END AS col1
----
12
-2592

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-699
SELECT 4 * CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-699
SELECT 4 * CAST ( NULL AS REAL )
----
NULL

query I rowsort
SELECT 8 + 77
----
85

query I rowsort
SELECT 17 + - + 89 * 81
----
-7192

onlyif mysql # DIV for integer division: 
query I rowsort label-702
SELECT 23 DIV + 86 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-702
SELECT 23 / + 86 AS col0
----
0

query I rowsort
SELECT 94 + 18
----
112

onlyif mysql # DIV for integer division: 
query I rowsort label-704
SELECT DISTINCT - 20 DIV + 3 AS col1
----
-6

skipif mysql # not compatible
query I rowsort label-704
SELECT DISTINCT - 20 / + 3 AS col1
----
-6

query I rowsort
SELECT 13 + - 98 * + 72 AS col0
----
-7043

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-707
SELECT 48 + - 5 + 30 + 12 / + CAST( NULL AS DECIMAL ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-707
SELECT 48 + - 5 + 30 + 12 / + CAST ( NULL AS REAL ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-708
SELECT 46 AS col0, + COUNT( * ) * - 72 * 79
----
46
-5688

skipif mysql # not compatible
query II rowsort label-708
SELECT 46 AS col0, + COUNT ( * ) * - 72 * 79
----
46
-5688

query I rowsort
SELECT 29 + 78
----
107

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-710
SELECT COUNT( ALL - 34 ) - + COALESCE ( - - COUNT( * ), 84 ) DIV + + CAST( - + 80 AS SIGNED ) + 43 * + + ( COUNT( * ) ) * - - 92
----
3957

skipif mysql # not compatible
query I rowsort label-710
SELECT COUNT ( ALL - 34 ) - + COALESCE ( - - COUNT ( * ), 84 ) / + + CAST ( - + 80 AS INTEGER ) + 43 * + + ( COUNT ( * ) ) * - - 92
----
3957

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-711
SELECT 87 + - 87 * + - COUNT( * ) * CAST( - COUNT( * ) AS SIGNED ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-711
SELECT 87 + - 87 * + - COUNT ( * ) * CAST ( - COUNT ( * ) AS INTEGER ) AS col2
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-712
SELECT DISTINCT - NULLIF ( + 39, + 87 + + + 46 ) DIV - + 48, + COALESCE ( 24, - - COUNT( * ) ) AS col2
----
0
24

skipif mysql # not compatible
query II rowsort label-712
SELECT DISTINCT - NULLIF ( + 39, + 87 + + + 46 ) / - + 48, + COALESCE ( 24, - - COUNT ( * ) ) AS col2
----
0
24

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-713
SELECT + NULLIF ( + 75, + CAST( + COUNT( * ) AS SIGNED ) ) col1
----
75

skipif mysql # not compatible
query I rowsort label-713
SELECT + NULLIF ( + 75, + CAST ( + COUNT ( * ) AS INTEGER ) ) col1
----
75

query I rowsort
SELECT ( + 13 ) + + 48 * + 26 * + - 10
----
-12467

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-715
SELECT DISTINCT - 81 DIV MIN( ALL + 65 ) * + + 21 + + - COALESCE ( 54, 67 * - - 93 * 76 ) - - + 28 + COUNT( * )
----
-46

skipif mysql # not compatible
query I rowsort label-715
SELECT DISTINCT - 81 / MIN ( ALL + 65 ) * + + 21 + + - COALESCE ( 54, 67 * - - 93 * 76 ) - - + 28 + COUNT ( * )
----
-46

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

skipif mysql # not compatible
query I rowsort label-716
SELECT ALL - NULLIF ( - 14, + - 19 - + COUNT ( * ) )
----
14

onlyif mysql # DIV for integer division: 
query I rowsort label-717
SELECT - 99 DIV 38
----
-2

skipif mysql # not compatible
query I rowsort label-717
SELECT - 99 / 38
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-718
SELECT 35 * - 53 + - COUNT( * )
----
-1856

skipif mysql # not compatible
query I rowsort label-718
SELECT 35 * - 53 + - COUNT ( * )
----
-1856

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

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

query II rowsort
SELECT ALL - 94 col0, 10 * 53 * - 52 AS col2
----
-94
-27560

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

onlyif mysql # aggregate syntax: 
query I rowsort label-722
SELECT ALL - SUM( - 72 ) * COUNT( * ) - + 19 - 77 * COUNT( * ) * + 43 + - NULLIF ( 3, 17 * + + 39 * + CASE - 18 WHEN + - 4 * 47 * - 28 + - COUNT( * ) / - 12 * + - 17 THEN - 81 END * 61 + + 32 ) * + NULLIF ( + 65, 35 )
----
-3453

skipif mysql # not compatible
query I rowsort label-722
SELECT ALL - SUM ( - 72 ) * COUNT ( * ) - + 19 - 77 * COUNT ( * ) * + 43 + - NULLIF ( 3, 17 * + + 39 * + CASE - 18 WHEN + - 4 * 47 * - 28 + - COUNT ( * ) / - 12 * + - 17 THEN - 81 END * 61 + + 32 ) * + NULLIF ( + 65, 35 )
----
-3453

onlyif mysql # aggregate syntax: 
query II rowsort label-723
SELECT ALL + COUNT( * ) + + 36 / - CASE 62 WHEN 69 * 30 THEN 68 + + 14 END col1, 72 * + 14 AS col0
----
NULL
1008

skipif mysql # not compatible
query II rowsort label-723
SELECT ALL + COUNT ( * ) + + 36 / - CASE 62 WHEN 69 * 30 THEN 68 + + 14 END col1, 72 * + 14 AS col0
----
NULL
1008

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

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

query I rowsort
SELECT 14 + + 88
----
102

query II rowsort
SELECT DISTINCT - 24 + + 39, 21 AS col1
----
15
21

query II rowsort
SELECT DISTINCT - 56, - 61 AS col1
----
-56
-61

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

query I rowsort
SELECT ALL 76 * + 33 AS col0
----
2508

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-730
SELECT 4 DIV + + NULLIF ( MIN( 11 ), - 31 * + 76 * - + 70 )
----
0

skipif mysql # not compatible
query I rowsort label-730
SELECT 4 / + + NULLIF ( MIN ( 11 ), - 31 * + 76 * - + 70 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-731
SELECT - COUNT( ALL + 4 ) + 21 + + - 0 + 16 AS col2
----
36

skipif mysql # not compatible
query I rowsort label-731
SELECT - COUNT ( ALL + 4 ) + 21 + + - 0 + 16 AS col2
----
36

query II rowsort
SELECT ALL 32 AS col1, - 88 AS col2
----
32
-88

query I rowsort
SELECT - NULLIF ( 36, 5 ) col2
----
-36

query I rowsort
SELECT ALL 41 * + 18 * + ( 44 )
----
32472

onlyif mysql # aggregate syntax: 
query I rowsort label-735
SELECT + COUNT( * ) * + + 64 col1
----
64

skipif mysql # not compatible
query I rowsort label-735
SELECT + COUNT ( * ) * + + 64 col1
----
64

query I rowsort
SELECT ALL - 62 - 90 + - 28 AS col0
----
-180

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-738
SELECT - 98 + - 74 + - - SUM( + - 74 )
----
-246

skipif mysql # not compatible
query I rowsort label-738
SELECT - 98 + - 74 + - - SUM ( + - 74 )
----
-246

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-739
SELECT ALL + 71 DIV MIN( + 21 ) AS col2
----
3

skipif mysql # not compatible
query I rowsort label-739
SELECT ALL + 71 / MIN ( + 21 ) AS col2
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-740
SELECT - MIN( + CASE + - 2 WHEN 99 THEN 51 WHEN - + 55 THEN - 49 + CAST( NULL AS SIGNED ) ELSE - - 14 END ) AS col0
----
-14

skipif mysql # not compatible
query I rowsort label-740
SELECT - MIN ( + CASE + - 2 WHEN 99 THEN 51 WHEN - + 55 THEN - 49 + CAST ( NULL AS INTEGER ) ELSE - - 14 END ) AS col0
----
-14

query I rowsort
SELECT - + 18 + - 27 AS col2
----
-45

query I rowsort
SELECT ALL - - 4 * - 19 col0
----
-76

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

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

query I rowsort
SELECT ALL NULLIF ( 34, + + 22 )
----
34

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

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

query I rowsort
SELECT ALL - 52 * - COALESCE ( + 66, 54, - 0 ) AS col0
----
3432

query II rowsort
SELECT + 51, 77 AS col1
----
51
77

onlyif mysql # aggregate syntax: 
query I rowsort label-748
SELECT DISTINCT - + 62 * - COUNT( * ) * + 38 AS col0
----
2356

skipif mysql # not compatible
query I rowsort label-748
SELECT DISTINCT - + 62 * - COUNT ( * ) * + 38 AS col0
----
2356

query I rowsort
SELECT - 27 + + 5 col2
----
-22

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

skipif mysql # not compatible
query II rowsort label-750
SELECT - - 4 AS col1, CAST ( - 54 AS REAL ) * - 24 * + CAST ( NULL AS INTEGER ) + CAST ( NULL AS INTEGER ) col2
----
4
NULL

query I rowsort
SELECT + NULLIF ( + 77, - CASE 8 WHEN + 15 THEN + 88 WHEN ( + + AVG ( - 24 ) ) THEN 89 WHEN 40 THEN NULL END )
----
77

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

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

query I rowsort
SELECT + - 42 * - 51 * - 93
----
-199206

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

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

query II rowsort
SELECT + 74 AS col1, + 81 AS col1
----
74
81

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

skipif mysql # not compatible
query I rowsort label-756
SELECT + 99 / - 71
----
-1

query I rowsort
SELECT DISTINCT + 20 * - 24 * 64 * + 90
----
-2764800

query I rowsort
SELECT - ( - 13 ) + - 8 col2
----
5

query I rowsort
SELECT + 71 * 32
----
2272

query I rowsort
SELECT - 41 + - 66
----
-107

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

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

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

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

skipif mysql # not compatible
query I rowsort label-763
SELECT + COUNT ( * ) - + 57 + + 41 AS col2
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-764
SELECT + MAX( + 37 ) AS col0
----
37

skipif mysql # not compatible
query I rowsort label-764
SELECT + MAX ( + 37 ) AS col0
----
37

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-765
SELECT DISTINCT - COUNT( * ) * COUNT( * ) DIV - + COUNT( * ) + - 51 AS col2
----
-50

skipif mysql # not compatible
query I rowsort label-765
SELECT DISTINCT - COUNT ( * ) * COUNT ( * ) / - + COUNT ( * ) + - 51 AS col2
----
-50

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-766
SELECT + NULLIF ( + COALESCE ( 21, 49 * - 24 DIV + 70, - COUNT( * ) ), + 87 + + + 58 + + 20 ) col0
----
21

skipif mysql # not compatible
query I rowsort label-766
SELECT + NULLIF ( + COALESCE ( 21, 49 * - 24 / + 70, - COUNT ( * ) ), + 87 + + + 58 + + 20 ) col0
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-767
SELECT COUNT( - 99 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-767
SELECT COUNT ( - 99 ) AS col2
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-768
SELECT DISTINCT 58 * + 48 * + COUNT( * ) - - CAST( NULL AS SIGNED ) / - ( + + 96 ) * - 27
----
NULL

skipif mysql # not compatible
query I rowsort label-768
SELECT DISTINCT 58 * + 48 * + COUNT ( * ) - - CAST ( NULL AS INTEGER ) / - ( + + 96 ) * - 27
----
NULL

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

skipif mysql # not compatible
query I rowsort label-769
SELECT MIN ( DISTINCT 59 )
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-770
SELECT + 93 + - 79 + - ( - 63 ) + + NULLIF ( + 76, - 35 + - COUNT( * ) ) + + - COUNT( * ) * - + ( 92 )
----
245

skipif mysql # not compatible
query I rowsort label-770
SELECT + 93 + - 79 + - ( - 63 ) + + NULLIF ( + 76, - 35 + - COUNT ( * ) ) + + - COUNT ( * ) * - + ( 92 )
----
245

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-772
SELECT - CAST( + 81 AS SIGNED ), 72 AS col1
----
-81
72

skipif mysql # not compatible
query II rowsort label-772
SELECT - CAST ( + 81 AS INTEGER ), 72 AS col1
----
-81
72

query I rowsort
SELECT 3 * + + 33 + + 13
----
112

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

query I rowsort
SELECT + 45 + + 86 AS col1
----
131

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-777
SELECT + - 3 DIV - 1 AS col1, COUNT( * ) * + 87 * - 8 * + NULLIF ( - 52, + - 66 DIV 24 * + 69 + + + CAST( + 91 AS SIGNED ) + + 2 ) * + COUNT( * ) * + 77 * 8
----
3
22294272

skipif mysql # not compatible
query II rowsort label-777
SELECT + - 3 / - 1 AS col1, COUNT ( * ) * + 87 * - 8 * + NULLIF ( - 52, + - 66 / 24 * + 69 + + + CAST ( + 91 AS INTEGER ) + + 2 ) * + COUNT ( * ) * + 77 * 8
----
3
22294272

query I rowsort
SELECT - 58 + - - ( 60 ) AS col2
----
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-779
SELECT + - CAST( NULL AS SIGNED ) + - - 18, COUNT( + 5 ) / - ( - 61 ) + + CASE + 45 WHEN + 47 THEN + - MIN( DISTINCT + + 89 ) ELSE NULL END AS col0
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-779
SELECT + - CAST ( NULL AS INTEGER ) + - - 18, COUNT ( + 5 ) / - ( - 61 ) + + CASE + 45 WHEN + 47 THEN + - MIN ( DISTINCT + + 89 ) ELSE NULL END AS col0
----
NULL
NULL

query I rowsort
SELECT - 72 + - 75 + 92
----
-55

query I rowsort
SELECT - 85 * - 53 * + 96
----
432480

query I rowsort
SELECT DISTINCT + 99 + - + 33 AS col0
----
66

query I rowsort
SELECT - + 71 + + ( 23 ) + + - 61
----
-109

onlyif mysql # aggregate syntax: 
query II rowsort label-784
SELECT DISTINCT - 7 * - COUNT( * ), + 83 AS col2
----
7
83

skipif mysql # not compatible
query II rowsort label-784
SELECT DISTINCT - 7 * - COUNT ( * ), + 83 AS col2
----
7
83

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

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-786
SELECT ALL - 96 + - ( - COUNT( - + CAST( + ( 24 ) AS DECIMAL ) ) )
----
-95

skipif mysql # not compatible
query I rowsort label-786
SELECT ALL - 96 + - ( - COUNT ( - + CAST ( + ( 24 ) AS REAL ) ) )
----
-95

query II rowsort
SELECT DISTINCT + 38 + + 27, 62 AS col1
----
65
62

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-788
SELECT ALL + 98 DIV - MIN( ALL + 87 ) + + 17 col0
----
16

skipif mysql # not compatible
query I rowsort label-788
SELECT ALL + 98 / - MIN ( ALL + 87 ) + + 17 col0
----
16

onlyif mysql # DIV for integer division: 
query I rowsort label-789
SELECT - 13 DIV - 26 + - CASE - 21 WHEN - + 14 THEN NULL ELSE - 85 END + 71 + - 75 * + 48 AS col1
----
-3444

skipif mysql # not compatible
query I rowsort label-789
SELECT - 13 / - 26 + - CASE - 21 WHEN - + 14 THEN NULL ELSE - 85 END + 71 + - 75 * + 48 AS col1
----
-3444

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-790
SELECT ALL - 84 DIV + - 73 + + ( + + COUNT( * ) ) AS col1
----
2

skipif mysql # not compatible
query I rowsort label-790
SELECT ALL - 84 / + - 73 + + ( + + COUNT ( * ) ) AS col1
----
2

query I rowsort
SELECT DISTINCT + 47 * - 39
----
-1833

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

onlyif mysql # DIV for integer division: 
query I rowsort label-793
SELECT ALL + + 77 DIV + ( 13 ) + + 38 + + 68
----
111

skipif mysql # not compatible
query I rowsort label-793
SELECT ALL + + 77 / + ( 13 ) + + 38 + + 68
----
111

query II rowsort
SELECT 33 * + 99 + - 69 AS col0, 41
----
3198
41

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-795
SELECT - 79 * - - 68 + 94, + 60 DIV + CAST( - - MAX( DISTINCT + ( - - 61 ) ) AS SIGNED ) col1
----
-5278
0

skipif mysql # not compatible
query II rowsort label-795
SELECT - 79 * - - 68 + 94, + 60 / + CAST ( - - MAX ( DISTINCT + ( - - 61 ) ) AS INTEGER ) col1
----
-5278
0

query II rowsort
SELECT + 66, 84 AS col2
----
66
84

onlyif mysql # aggregate syntax: 
query II rowsort label-797
SELECT 79 * - 42 * 7 + - 36 AS col1, + COUNT( * ) * 67 * COUNT( * ) * + - COUNT( * ) AS col2
----
-23262
-67

skipif mysql # not compatible
query II rowsort label-797
SELECT 79 * - 42 * 7 + - 36 AS col1, + COUNT ( * ) * 67 * COUNT ( * ) * + - COUNT ( * ) AS col2
----
-23262
-67

query I rowsort
SELECT ALL - CASE - 6 WHEN - 78 / - 87 THEN - 73 WHEN - CASE WHEN NOT NULL IS NOT NULL THEN - 98 END THEN NULL ELSE + - ( 67 ) * 35 + 98 END AS col2
----
2247

onlyif mysql # aggregate syntax: 
query I rowsort label-799
SELECT ALL - CASE + MIN( ALL + 70 ) WHEN + - COUNT( * ) THEN - + 24 WHEN 53 THEN 82 * + 45 ELSE 94 END AS col1
----
-94

skipif mysql # not compatible
query I rowsort label-799
SELECT ALL - CASE + MIN ( ALL + 70 ) WHEN + - COUNT ( * ) THEN - + 24 WHEN 53 THEN 82 * + 45 ELSE 94 END AS col1
----
-94

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

skipif mysql # not compatible
query I rowsort label-800
SELECT COUNT ( * ) + + 45 AS col0
----
46

query II rowsort
SELECT ALL - 78 AS col2, 52 AS col1
----
-78
52

onlyif mysql # DIV for integer division: 
query I rowsort label-802
SELECT 23 DIV - - 82 * 54 DIV 43 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-802
SELECT 23 / - - 82 * 54 / 43 AS col1
----
0

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

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

query II rowsort
SELECT 24 AS col1, ( ( - + 47 ) ) AS col0
----
24
-47

query I rowsort
SELECT 68 * - - 82
----
5576

onlyif mysql # aggregate syntax: 
query I rowsort label-806
SELECT SUM( 8 ) + + + COUNT( DISTINCT + 31 )
----
9

skipif mysql # not compatible
query I rowsort label-806
SELECT SUM ( 8 ) + + + COUNT ( DISTINCT + 31 )
----
9

query II rowsort
SELECT ALL - 13, + 80 AS col1
----
-13
80

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-808
SELECT CAST( + + 90 AS SIGNED ) + - 72 * - 27
----
2034

skipif mysql # not compatible
query I rowsort label-808
SELECT CAST ( + + 90 AS INTEGER ) + - 72 * - 27
----
2034

query I rowsort
SELECT ALL + 17 * - 71
----
-1207

query I rowsort
SELECT 58 * 96 AS col1
----
5568

query III rowsort
SELECT - 55 AS col1, NULLIF ( + 21, + 43 ) AS col2, 67
----
-55
21
67

query I rowsort
SELECT 33 - + + 68 AS col1
----
-35

query II rowsort
SELECT ALL + 77, - 15 AS col2
----
77
-15

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-814
SELECT + COALESCE ( - 94, 41 * - 41 + + - SUM( ALL + 48 ), - CAST( NULL AS SIGNED ) )
----
-94

skipif mysql # not compatible
query I rowsort label-814
SELECT + COALESCE ( - 94, 41 * - 41 + + - SUM ( ALL + 48 ), - CAST ( NULL AS INTEGER ) )
----
-94

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

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

query I rowsort
SELECT ALL 48 * - - 37
----
1776

onlyif mysql # aggregate syntax: 
query I rowsort label-817
SELECT DISTINCT + NULLIF ( + 51, COUNT( DISTINCT + 3 ) * 63 + 84 ) + - + 11 AS col0
----
40

skipif mysql # not compatible
query I rowsort label-817
SELECT DISTINCT + NULLIF ( + 51, COUNT ( DISTINCT + 3 ) * 63 + 84 ) + - + 11 AS col0
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-818
SELECT DISTINCT + 78 + - - COUNT( * )
----
79

skipif mysql # not compatible
query I rowsort label-818
SELECT DISTINCT + 78 + - - COUNT ( * )
----
79

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-819
SELECT ALL - 9 * - AVG ( - CAST( NULL AS DECIMAL ) ) + - NULLIF ( 74, 31 + - + NULLIF ( - 18, - 51 + 89 ) * + 29 ) / + 26 + 9 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-819
SELECT ALL - 9 * - AVG ( - CAST ( NULL AS REAL ) ) + - NULLIF ( 74, 31 + - + NULLIF ( - 18, - 51 + 89 ) * + 29 ) / + 26 + 9 AS col1
----
NULL

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

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

query II rowsort
SELECT DISTINCT 15 AS col1, 24 col0
----
15
24

query I rowsort
SELECT ALL + 84 + + + 73
----
157

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-823
SELECT CAST( - ( + 24 ) AS SIGNED ) + - - SUM( ALL - 12 ) AS col2
----
-36

skipif mysql # not compatible
query I rowsort label-823
SELECT CAST ( - ( + 24 ) AS INTEGER ) + - - SUM ( ALL - 12 ) AS col2
----
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-824
SELECT 14 * - + COALESCE ( - 16, + MIN( + 60 ) + MIN( 58 ) ) AS col0
----
224

skipif mysql # not compatible
query I rowsort label-824
SELECT 14 * - + COALESCE ( - 16, + MIN ( + 60 ) + MIN ( 58 ) ) AS col0
----
224

onlyif mysql # DIV for integer division: 
query I rowsort label-825
SELECT - 0 DIV + - 45 + + - 7 + + - ( + - 85 )
----
78

skipif mysql # not compatible
query I rowsort label-825
SELECT - 0 / + - 45 + + - 7 + + - ( + - 85 )
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-826
SELECT DISTINCT + COALESCE ( - - COUNT( ALL + 93 ), + 42 ) * 76
----
76

skipif mysql # not compatible
query I rowsort label-826
SELECT DISTINCT + COALESCE ( - - COUNT ( ALL + 93 ), + 42 ) * 76
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-827
SELECT DISTINCT CASE - ( + COUNT( * ) ) WHEN - + 53 + CASE 28 WHEN - 97 * + 98 THEN 12 END THEN NULL WHEN + 87 * + + 96 + - 66 * NULLIF ( + 15, + ( + 84 ) * 78 + + 8 ) + + SUM( + + 44 ) THEN + ( - - 7 ) WHEN - 79 THEN NULL ELSE NULL END - 28 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-827
SELECT DISTINCT CASE - ( + COUNT ( * ) ) WHEN - + 53 + CASE 28 WHEN - 97 * + 98 THEN 12 END THEN NULL WHEN + 87 * + + 96 + - 66 * NULLIF ( + 15, + ( + 84 ) * 78 + + 8 ) + + SUM ( + + 44 ) THEN + ( - - 7 ) WHEN - 79 THEN NULL ELSE NULL END - 28 AS col2
----
NULL

query I rowsort
SELECT 42 + 41 + + 11 * + 17 AS col2
----
270

query I rowsort
SELECT DISTINCT + 3 * - 51
----
-153

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-830
SELECT CAST( NULL AS SIGNED ) + - 66 * - + 54 + + + SUM( DISTINCT 38 ) / - + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-830
SELECT CAST ( NULL AS INTEGER ) + - 66 * - + 54 + + + SUM ( DISTINCT 38 ) / - + COUNT ( * )
----
NULL

query II rowsort
SELECT 68 * - - 61 AS col1, 51 AS col2
----
4148
51

query I rowsort
SELECT 39 * - + 96 AS col2
----
-3744

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

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

query II rowsort
SELECT 77 - 64 col2, + 51 AS col0
----
13
51

onlyif mysql # DIV for integer division: 
query I rowsort label-835
SELECT 58 DIV - 10
----
-5

skipif mysql # not compatible
query I rowsort label-835
SELECT 58 / - 10
----
-5

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-836
SELECT ALL + 40 DIV - MIN( - 18 )
----
2

skipif mysql # not compatible
query I rowsort label-836
SELECT ALL + 40 / - MIN ( - 18 )
----
2

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-838
SELECT DISTINCT - 58 DIV 48 DIV - 21 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-838
SELECT DISTINCT - 58 / 48 / - 21 AS col0
----
0

query I rowsort
SELECT 77 + 49 * - 88
----
-4235

onlyif mysql # aggregate syntax: 
query II rowsort label-840
SELECT ALL 86 * MIN( DISTINCT + 42 ) * - - 23, - COALESCE ( - 50, + 99 * - 1 * - 7 + NULLIF ( - 96, - 18 / NULLIF ( 47, + 55 ) ) ) col1
----
83076
50

skipif mysql # not compatible
query II rowsort label-840
SELECT ALL 86 * MIN ( DISTINCT + 42 ) * - - 23, - COALESCE ( - 50, + 99 * - 1 * - 7 + NULLIF ( - 96, - 18 / NULLIF ( 47, + 55 ) ) ) col1
----
83076
50

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-841
SELECT ALL - CAST( + 77 AS SIGNED ) + - 61
----
-138

skipif mysql # not compatible
query I rowsort label-841
SELECT ALL - CAST ( + 77 AS INTEGER ) + - 61
----
-138

onlyif mysql # aggregate syntax: 
query I rowsort label-842
SELECT 20 + - 78 * - 70 * + + COUNT( ALL - + 44 ) AS col2
----
5480

skipif mysql # not compatible
query I rowsort label-842
SELECT 20 + - 78 * - 70 * + + COUNT ( ALL - + 44 ) AS col2
----
5480

query I rowsort
SELECT - + COALESCE ( 20, - 64 - 19, - + 52 ) col0
----
-20

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-845
SELECT 66 + + 84 DIV 5 + 79 AS col0
----
161

skipif mysql # not compatible
query I rowsort label-845
SELECT 66 + + 84 / 5 + 79 AS col0
----
161

onlyif mysql # DIV for integer division: 
query I rowsort label-846
SELECT 10 * + 70 + 36 + 40 DIV 91 AS col1
----
736

skipif mysql # not compatible
query I rowsort label-846
SELECT 10 * + 70 + 36 + 40 / 91 AS col1
----
736

query II rowsort
SELECT 56 * - 89, 28 AS col1
----
-4984
28

query I rowsort
SELECT 58 + 89 col0
----
147

query I rowsort
SELECT DISTINCT - 71 + - ( + 5 ) AS col1
----
-76

query I rowsort
SELECT DISTINCT + 13 * 62 AS col1
----
806

query I rowsort
SELECT ALL - + 38 + - 78 + + 54
----
-62

query I rowsort
SELECT + 70 + 60 col1
----
130

onlyif mysql # aggregate syntax: 
query I rowsort label-853
SELECT - COUNT( * ) * - NULLIF ( + 27, COUNT( * ) + - 4 )
----
27

skipif mysql # not compatible
query I rowsort label-853
SELECT - COUNT ( * ) * - NULLIF ( + 27, COUNT ( * ) + - 4 )
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-854
SELECT ALL COUNT( * ) * - COUNT( * ) - - COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-854
SELECT ALL COUNT ( * ) * - COUNT ( * ) - - COUNT ( * )
----
0

query I rowsort
SELECT + 92 + + 99 AS col0
----
191

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-857
SELECT + 12 + + NULLIF ( - NULLIF ( - COUNT( * ), - + 18 / - - 20 * + 98 ), + COUNT( * ) ) * + - MAX( DISTINCT + 72 ) + - - 54 * + 72 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-857
SELECT + 12 + + NULLIF ( - NULLIF ( - COUNT ( * ), - + 18 / - - 20 * + 98 ), + COUNT ( * ) ) * + - MAX ( DISTINCT + 72 ) + - - 54 * + 72 AS col2
----
NULL

query I rowsort
SELECT ALL 77 * + - 61
----
-4697

query I rowsort
SELECT + 6 * - 32
----
-192

query I rowsort
SELECT CASE - 59 WHEN + 83 THEN NULL ELSE + 43 END col1
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-861
SELECT + 76 * - + CASE - 91 WHEN - 20 * ( - ( + + 11 ) ) + - - COUNT( * ) THEN + 56 WHEN - 19 * - 81 * 7 - 97 * - COUNT( * ) + - 46 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-861
SELECT + 76 * - + CASE - 91 WHEN - 20 * ( - ( + + 11 ) ) + - - COUNT ( * ) THEN + 56 WHEN - 19 * - 81 * 7 - 97 * - COUNT ( * ) + - 46 THEN NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-862
SELECT DISTINCT + 0, COUNT( * ) + - + 44 AS col0
----
0
-43

skipif mysql # not compatible
query II rowsort label-862
SELECT DISTINCT + 0, COUNT ( * ) + - + 44 AS col0
----
0
-43

query I rowsort
SELECT + 70 * 42 * 57 AS col0
----
167580

onlyif mysql # aggregate syntax: 
query I rowsort label-864
SELECT + 33 * - - ( + + COUNT( DISTINCT + 23 ) ) + + 19 AS col2
----
52

skipif mysql # not compatible
query I rowsort label-864
SELECT + 33 * - - ( + + COUNT ( DISTINCT + 23 ) ) + + 19 AS col2
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-865
SELECT + COUNT( * ) * ( - 72 ) col2
----
-72

skipif mysql # not compatible
query I rowsort label-865
SELECT + COUNT ( * ) * ( - 72 ) col2
----
-72

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-866
SELECT COALESCE ( - NULLIF ( + CAST( NULL AS SIGNED ), 44 + - 56 ), + 48, - 61 )
----
48

skipif mysql # not compatible
query I rowsort label-866
SELECT COALESCE ( - NULLIF ( + CAST ( NULL AS INTEGER ), 44 + - 56 ), + 48, - 61 )
----
48

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-867
SELECT DISTINCT + COALESCE ( + CASE + ( + - COUNT( * ) ) WHEN + CAST( NULL AS SIGNED ) THEN - + ( 24 ) + + 75 ELSE NULL END, + COUNT( * ), - - 65 )
----
1

skipif mysql # not compatible
query I rowsort label-867
SELECT DISTINCT + COALESCE ( + CASE + ( + - COUNT ( * ) ) WHEN + CAST ( NULL AS INTEGER ) THEN - + ( 24 ) + + 75 ELSE NULL END, + COUNT ( * ), - - 65 )
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-868
SELECT CASE + 61 WHEN - 14 THEN COUNT( * ) + - 53 END AS col1, + 32 * + 24 - 97 * - 45 * - 7 AS col0
----
NULL
-29787

skipif mysql # not compatible
query II rowsort label-868
SELECT CASE + 61 WHEN - 14 THEN COUNT ( * ) + - 53 END AS col1, + 32 * + 24 - 97 * - 45 * - 7 AS col0
----
NULL
-29787

onlyif mysql # aggregate syntax: 
query II rowsort label-869
SELECT ALL + COUNT( * ), 45 + 66 + + ( 69 ) * + 37 * - COUNT( * ) * + 36 col1
----
1
-91797

skipif mysql # not compatible
query II rowsort label-869
SELECT ALL + COUNT ( * ), 45 + 66 + + ( 69 ) * + 37 * - COUNT ( * ) * + 36 col1
----
1
-91797

query I rowsort
SELECT DISTINCT 20 * - 18 * + 97 + + 64
----
-34856

query I rowsort
SELECT + 64 * + NULLIF ( + 35, + 84 + - 59 + - 31 ) + - 13
----
2227

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-872
SELECT + + 44 * + 22 * + COUNT( * ) - - CASE - 63 WHEN - CAST( NULL AS SIGNED ) THEN NULL WHEN 53 * - + ( 14 ) + - 12 THEN + - 40 ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-872
SELECT + + 44 * + 22 * + COUNT ( * ) - - CASE - 63 WHEN - CAST ( NULL AS INTEGER ) THEN NULL WHEN 53 * - + ( 14 ) + - 12 THEN + - 40 ELSE NULL END AS col1
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-875
SELECT - 52 * - COUNT( + CASE + 92 WHEN 27 THEN 9 * - 61 + - - 30 / - 59 * + 67 * + + 27 + 97 + 93 END ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-875
SELECT - 52 * - COUNT ( + CASE + 92 WHEN 27 THEN 9 * - 61 + - - 30 / - 59 * + 67 * + + 27 + 97 + 93 END ) AS col2
----
0

query I rowsort
SELECT + NULLIF ( 31, 65 ) AS col1
----
31

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

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

query II rowsort
SELECT - - 14 * 76 + + 44, - 36 + + - 1 AS col2
----
1108
-37

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

skipif mysql # not compatible
query I rowsort label-879
SELECT DISTINCT SUM ( DISTINCT - ( - 39 ) )
----
39

query II rowsort
SELECT ALL - 52 AS col0, 36
----
-52
36

query I rowsort
SELECT - ( + 9 ) * + 63 - + 42 col2
----
-609

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-882
SELECT DISTINCT - 26 * - CAST( - COUNT( 24 ) AS SIGNED ) AS col0
----
-26

skipif mysql # not compatible
query I rowsort label-882
SELECT DISTINCT - 26 * - CAST ( - COUNT ( 24 ) AS INTEGER ) AS col0
----
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-883
SELECT - SUM( + 39 ) AS col1
----
-39

skipif mysql # not compatible
query I rowsort label-883
SELECT - SUM ( + 39 ) AS col1
----
-39

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-884
SELECT - - 88 * - 54 * ( + + CAST( NULL AS SIGNED ) ) * 60 * 31 * + - 21 + - - 23 + + 98 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-884
SELECT - - 88 * - 54 * ( + + CAST ( NULL AS INTEGER ) ) * 60 * 31 * + - 21 + - - 23 + + 98 AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-885
SELECT DISTINCT - CAST( NULL AS SIGNED ) - + 45 + + 31 + + 81 / - - COUNT( * ) * - 17 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-885
SELECT DISTINCT - CAST ( NULL AS INTEGER ) - + 45 + + 31 + + 81 / - - COUNT ( * ) * - 17 col0
----
NULL

query I rowsort
SELECT ALL - - 31 * - + 58 + - 9
----
-1807

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-887
SELECT DISTINCT + COALESCE ( + - MIN( ( 46 ) ), - 7 ) - CAST( NULL AS SIGNED ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-887
SELECT DISTINCT + COALESCE ( + - MIN ( ( 46 ) ), - 7 ) - CAST ( NULL AS INTEGER ) col0
----
NULL

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

onlyif mysql # aggregate syntax: 
query II rowsort label-889
SELECT 54 AS col2, 81 * COUNT( * ) AS col0
----
54
81

skipif mysql # not compatible
query II rowsort label-889
SELECT 54 AS col2, 81 * COUNT ( * ) AS col0
----
54
81

onlyif mysql # aggregate syntax: 
query II rowsort label-890
SELECT - COALESCE ( - + 8, - - 85 + - + 66 ), - COUNT( * ) - - - 45 col1
----
8
-46

skipif mysql # not compatible
query II rowsort label-890
SELECT - COALESCE ( - + 8, - - 85 + - + 66 ), - COUNT ( * ) - - - 45 col1
----
8
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-891
SELECT - 76 + COUNT( 38 ) AS col0
----
-75

skipif mysql # not compatible
query I rowsort label-891
SELECT - 76 + COUNT ( 38 ) AS col0
----
-75

onlyif mysql # aggregate syntax: 
query II rowsort label-892
SELECT - 53 + - COUNT( * ) * 37 * - 96 AS col1, 84 * - COALESCE ( - + COALESCE ( - NULLIF ( CASE + 46 WHEN 28 THEN - COUNT( + ( + 18 ) ) WHEN - AVG ( - - 84 ) + - - 58 THEN 30 END, + 41 * - 65 * + - 22 * - - 95 - - NULLIF ( COUNT( * ), - 13 + ( + 62 ) * - 38 ) - - 39 ), 70, COUNT( * ) ), + 99 * 96 - + 40 ) * COUNT( DISTINCT + 59 * 56 ) + + CASE + MIN( + 26 ) WHEN 72 + + 10 THEN NULL WHEN 21 THEN + COUNT( * ) + 42 WHEN AVG ( ALL 12 ) THEN + 70 END / 31 AS col2
----
3499
NULL

skipif mysql # not compatible
query II rowsort label-892
SELECT - 53 + - COUNT ( * ) * 37 * - 96 AS col1, 84 * - COALESCE ( - + COALESCE ( - NULLIF ( CASE + 46 WHEN 28 THEN - COUNT ( + ( + 18 ) ) WHEN - AVG ( - - 84 ) + - - 58 THEN 30 END, + 41 * - 65 * + - 22 * - - 95 - - NULLIF ( COUNT ( * ), - 13 + ( + 62 ) * - 38 ) - - 39 ), 70, COUNT ( * ) ), + 99 * 96 - + 40 ) * COUNT ( DISTINCT + 59 * 56 ) + + CASE + MIN ( + 26 ) WHEN 72 + + 10 THEN NULL WHEN 21 THEN + COUNT ( * ) + 42 WHEN AVG ( ALL 12 ) THEN + 70 END / 31 AS col2
----
3499
NULL

query II rowsort
SELECT 40 AS col2, - 99 AS col1
----
40
-99

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

skipif mysql # not compatible
query I rowsort label-894
SELECT 21 * 54 + + + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-895
SELECT - 46 DIV - 56
----
0

skipif mysql # not compatible
query I rowsort label-895
SELECT - 46 / - 56
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-896
SELECT + 54 / - + 24 + + + 96 * + + CAST( NULL AS SIGNED ) AS col1, + 23 + - 58 AS col1
----
NULL
-35

skipif mysql # not compatible
query II rowsort label-896
SELECT + 54 / - + 24 + + + 96 * + + CAST ( NULL AS INTEGER ) AS col1, + 23 + - 58 AS col1
----
NULL
-35

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-898
SELECT ALL + COUNT( * ) DIV - 60 + 73 col0
----
73

skipif mysql # not compatible
query I rowsort label-898
SELECT ALL + COUNT ( * ) / - 60 + 73 col0
----
73

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-899
SELECT ( - ( - - 28 ) ) DIV + 10 - + + 72 * + + COUNT( * ) + + + 40 + - - COUNT( * ) * COUNT( * )
----
-33

skipif mysql # not compatible
query I rowsort label-899
SELECT ( - ( - - 28 ) ) / + 10 - + + 72 * + + COUNT ( * ) + + + 40 + - - COUNT ( * ) * COUNT ( * )
----
-33

onlyif mysql # DIV for integer division: 
query I rowsort label-900
SELECT DISTINCT ( - ( - + 29 ) ) DIV - - NULLIF ( + 44, + 47 ) + 97 - + 40
----
57

skipif mysql # not compatible
query I rowsort label-900
SELECT DISTINCT ( - ( - + 29 ) ) / - - NULLIF ( + 44, + 47 ) + 97 - + 40
----
57

onlyif mysql # DIV for integer division: 
query I rowsort label-901
SELECT DISTINCT 47 DIV + 5 + + 4
----
13

skipif mysql # not compatible
query I rowsort label-901
SELECT DISTINCT 47 / + 5 + + 4
----
13

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-902
SELECT ALL + 28 AS col2, CAST( COALESCE ( - 20, + - 64 ) AS SIGNED )
----
28
-20

skipif mysql # not compatible
query II rowsort label-902
SELECT ALL + 28 AS col2, CAST ( COALESCE ( - 20, + - 64 ) AS INTEGER )
----
28
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-903
SELECT DISTINCT 34 * - - 78 * + MIN( ALL 8 ) + + - 77 AS col0
----
21139

skipif mysql # not compatible
query I rowsort label-903
SELECT DISTINCT 34 * - - 78 * + MIN ( ALL 8 ) + + - 77 AS col0
----
21139

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-904
SELECT ALL - 61 * - 69 * - ( - 91 ) + ( + 62 ) + + COALESCE ( - 10, - + SUM( ALL - 7 ) * 74 + 99 + 48 + + ( - 98 ) - + + COUNT( * ) * - + MAX( 84 ) + + + COUNT( * ) + + + 89 + + + 3 * - 59 DIV + 22, - CAST( NULL AS SIGNED ) DIV - - CASE - + 98 WHEN + 23 THEN NULL WHEN - 35 - 46 THEN - 29 * - 70 + 26 * + 67 ELSE AVG ( 49 ) + + COALESCE ( 46 + + 3, 53 + ( + 71 + 77 ) * - 53, + 59 + - 2 ) END ) * COUNT( * ) AS col0
----
383071

skipif mysql # not compatible
query I rowsort label-904
SELECT ALL - 61 * - 69 * - ( - 91 ) + ( + 62 ) + + COALESCE ( - 10, - + SUM ( ALL - 7 ) * 74 + 99 + 48 + + ( - 98 ) - + + COUNT ( * ) * - + MAX ( 84 ) + + + COUNT ( * ) + + + 89 + + + 3 * - 59 / + 22, - CAST ( NULL AS INTEGER ) / - - CASE - + 98 WHEN + 23 THEN NULL WHEN - 35 - 46 THEN - 29 * - 70 + 26 * + 67 ELSE AVG ( 49 ) + + COALESCE ( 46 + + 3, 53 + ( + 71 + 77 ) * - 53, + 59 + - 2 ) END ) * COUNT ( * ) AS col0
----
383071

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-906
SELECT ALL + 67 * + - CAST( 38 AS SIGNED ) * - 38 - + 58 AS col1
----
96690

skipif mysql # not compatible
query I rowsort label-906
SELECT ALL + 67 * + - CAST ( 38 AS INTEGER ) * - 38 - + 58 AS col1
----
96690

query III rowsort
SELECT - 27 col2, 36, - 32 col2
----
-27
36
-32

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-908
SELECT NULLIF ( - 62, + 13 * + 71 * + 3 + - CAST( NULL AS SIGNED ) + 90 - + + 67 + + 83 ) AS col2, 11 AS col1
----
-62
11

skipif mysql # not compatible
query II rowsort label-908
SELECT NULLIF ( - 62, + 13 * + 71 * + 3 + - CAST ( NULL AS INTEGER ) + 90 - + + 67 + + 83 ) AS col2, 11 AS col1
----
-62
11

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-909
SELECT + + MIN( DISTINCT 21 ) * CAST( NULL AS SIGNED ) + - AVG ( - ( + 35 ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-909
SELECT + + MIN ( DISTINCT 21 ) * CAST ( NULL AS INTEGER ) + - AVG ( - ( + 35 ) ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-910
SELECT ALL NULLIF ( NULLIF ( ( + - 93 ), 15 ), + + 39 + - 72 - - - MAX( DISTINCT - - 73 ) * 62 - - + 11 + + - 99 + + COUNT( * ) * - 18 + + + 4 + + CASE - + 35 WHEN 87 THEN 30 / - - 48 END * - + 59 * + 69 * - 37 )
----
-93

skipif mysql # not compatible
query I rowsort label-910
SELECT ALL NULLIF ( NULLIF ( ( + - 93 ), 15 ), + + 39 + - 72 - - - MAX ( DISTINCT - - 73 ) * 62 - - + 11 + + - 99 + + COUNT ( * ) * - 18 + + + 4 + + CASE - + 35 WHEN 87 THEN 30 / - - 48 END * - + 59 * + 69 * - 37 )
----
-93

onlyif mysql # DIV for integer division: 
query I rowsort label-911
SELECT + 91 + + - ( - + 90 ) + + 23 DIV 13 + 79
----
261

skipif mysql # not compatible
query I rowsort label-911
SELECT + 91 + + - ( - + 90 ) + + 23 / 13 + 79
----
261

query I rowsort
SELECT DISTINCT 70 * - - 97
----
6790

query II rowsort
SELECT ALL 84 AS col2, 57 * + + 13 AS col2
----
84
741

onlyif mysql # aggregate syntax: 
query II rowsort label-914
SELECT DISTINCT + + 58 * - 75 AS col1, 55 * - 14 * + ( - + ( 76 ) ) * COUNT( * ) AS col1
----
-4350
58520

skipif mysql # not compatible
query II rowsort label-914
SELECT DISTINCT + + 58 * - 75 AS col1, 55 * - 14 * + ( - + ( 76 ) ) * COUNT ( * ) AS col1
----
-4350
58520

onlyif mysql # aggregate syntax: 
query II rowsort label-915
SELECT ALL - 57, MAX( 74 ) AS col2
----
-57
74

skipif mysql # not compatible
query II rowsort label-915
SELECT ALL - 57, MAX ( 74 ) AS col2
----
-57
74

onlyif mysql # DIV for integer division: 
query I rowsort label-916
SELECT DISTINCT + 87 DIV - 32
----
-2

skipif mysql # not compatible
query I rowsort label-916
SELECT DISTINCT + 87 / - 32
----
-2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-917
SELECT COALESCE ( - + 61, + - CAST( NULL AS SIGNED ), - + COUNT( * ) + - 76 ) * + 23 - 48
----
-1451

skipif mysql # not compatible
query I rowsort label-917
SELECT COALESCE ( - + 61, + - CAST ( NULL AS INTEGER ), - + COUNT ( * ) + - 76 ) * + 23 - 48
----
-1451

onlyif mysql # aggregate syntax: 
query I rowsort label-918
SELECT 52 + + + MAX( DISTINCT - + 15 ) * COUNT( * ) AS col0
----
37

skipif mysql # not compatible
query I rowsort label-918
SELECT 52 + + + MAX ( DISTINCT - + 15 ) * COUNT ( * ) AS col0
----
37

query I rowsort
SELECT ALL + 26 * + 88 AS col0
----
2288

query I rowsort
SELECT 42 * 58
----
2436

query I rowsort
SELECT DISTINCT + NULLIF ( - 45, - 63 * - - 78 + - 66 ) * - 43
----
1935

query I rowsort
SELECT ALL - 53 + + + 52 AS col0
----
-1

query I rowsort
SELECT ALL - 81 * - 23 AS col2
----
1863

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-925
SELECT DISTINCT - 72 + 74 DIV + SUM( 65 )
----
-71

skipif mysql # not compatible
query I rowsort label-925
SELECT DISTINCT - 72 + 74 / + SUM ( 65 )
----
-71

query I rowsort
SELECT 77 * + - COALESCE ( - 18, - 88 ) AS col2
----
1386

onlyif mysql # aggregate syntax: 
query I rowsort label-927
SELECT ALL - 27 + 28 + + COUNT( * ) * - 17 + + - COUNT( * ) * + 20
----
-36

skipif mysql # not compatible
query I rowsort label-927
SELECT ALL - 27 + 28 + + COUNT ( * ) * - 17 + + - COUNT ( * ) * + 20
----
-36

onlyif mysql # DIV for integer division: 
query I rowsort label-928
SELECT 67 * 89 DIV + 94
----
63

skipif mysql # not compatible
query I rowsort label-928
SELECT 67 * 89 / + 94
----
63

query I rowsort
SELECT DISTINCT 68 + - 67 AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-930
SELECT ALL ( ( + SUM( ALL - - 76 ) ) ) + + 36 + - - 2 AS col2
----
114

skipif mysql # not compatible
query I rowsort label-930
SELECT ALL ( ( + SUM ( ALL - - 76 ) ) ) + + 36 + - - 2 AS col2
----
114

query I rowsort
SELECT - 73 * + 64
----
-4672

onlyif mysql # aggregate syntax: 
query I rowsort label-932
SELECT ALL + 42 * + 63 * + ( COUNT( * ) )
----
2646

skipif mysql # not compatible
query I rowsort label-932
SELECT ALL + 42 * + 63 * + ( COUNT ( * ) )
----
2646

query I rowsort
SELECT 41 + 19 - - 10 AS col1
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-934
SELECT DISTINCT + + 94 - + 23 + COUNT( DISTINCT 78 )
----
72

skipif mysql # not compatible
query I rowsort label-934
SELECT DISTINCT + + 94 - + 23 + COUNT ( DISTINCT 78 )
----
72

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-936
SELECT 2 DIV + 66 + - - 0 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-936
SELECT 2 / + 66 + - - 0 AS col0
----
0

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

skipif mysql # not compatible
query I rowsort label-937
SELECT + COUNT ( * ) * - 99 * - 51 AS col1
----
5049

onlyif mysql # aggregate syntax: 
query II rowsort label-938
SELECT COUNT( * ) * 54 AS col2, 80 * - 63
----
54
-5040

skipif mysql # not compatible
query II rowsort label-938
SELECT COUNT ( * ) * 54 AS col2, 80 * - 63
----
54
-5040

onlyif mysql # DIV for integer division: 
query I rowsort label-939
SELECT + 36 DIV + 49
----
0

skipif mysql # not compatible
query I rowsort label-939
SELECT + 36 / + 49
----
0

query I rowsort
SELECT 13 * - 72 * 19 col0
----
-17784

onlyif mysql # DIV for integer division: 
query I rowsort label-941
SELECT ALL 15 DIV 30 * - 33 * 96 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-941
SELECT ALL 15 / 30 * - 33 * 96 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-942
SELECT ALL COUNT( * ) * + 0 - 61 + + 6 AS col0
----
-55

skipif mysql # not compatible
query I rowsort label-942
SELECT ALL COUNT ( * ) * + 0 - 61 + + 6 AS col0
----
-55

onlyif mysql # DIV for integer division: 
query II rowsort label-943
SELECT - 3 DIV + + 33 AS col1, 59
----
0
59

skipif mysql # not compatible
query II rowsort label-943
SELECT - 3 / + + 33 AS col1, 59
----
0
59

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-944
SELECT ALL + COALESCE ( 67, CAST( + 71 AS SIGNED ) ) col0
----
67

skipif mysql # not compatible
query I rowsort label-944
SELECT ALL + COALESCE ( 67, CAST ( + 71 AS INTEGER ) ) col0
----
67

query I rowsort
SELECT 94 * - 39 - - 29 AS col1
----
-3637

onlyif mysql # aggregate syntax: 
query I rowsort label-946
SELECT 61 * - MIN( DISTINCT - 43 ) * - 60 * + 54
----
-8498520

skipif mysql # not compatible
query I rowsort label-946
SELECT 61 * - MIN ( DISTINCT - 43 ) * - 60 * + 54
----
-8498520

onlyif mysql # aggregate syntax: 
query I rowsort label-947
SELECT ALL COALESCE ( + 91, + 57 - 54 ) + - CASE WHEN NOT + 70 >= - COUNT( * ) + COUNT( * ) - + - NULLIF ( + + 83, - 50 ) + + - 92 * + + COUNT( * ) THEN NULL ELSE + + 3 END
----
88

skipif mysql # not compatible
query I rowsort label-947
SELECT ALL COALESCE ( + 91, + 57 - 54 ) + - CASE WHEN NOT + 70 >= - COUNT ( * ) + COUNT ( * ) - + - NULLIF ( + + 83, - 50 ) + + - 92 * + + COUNT ( * ) THEN NULL ELSE + + 3 END
----
88

query II rowsort
SELECT 73 AS col0, 3
----
73
3

onlyif mysql # aggregate syntax: 
query II rowsort label-949
SELECT ALL 15, 99 + - COUNT( * ) AS col0
----
15
98

skipif mysql # not compatible
query II rowsort label-949
SELECT ALL 15, 99 + - COUNT ( * ) AS col0
----
15
98

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-950
SELECT DISTINCT 17 AS col1, COALESCE ( 21, COUNT( * ) + + 72 ) DIV - 31
----
17
0

skipif mysql # not compatible
query II rowsort label-950
SELECT DISTINCT 17 AS col1, COALESCE ( 21, COUNT ( * ) + + 72 ) / - 31
----
17
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-951
SELECT ALL ( + 85 ) + 30, 19 + - 91 * + COUNT( * ) * - + 1 + CAST( 53 AS SIGNED ) col1
----
115
163

skipif mysql # not compatible
query II rowsort label-951
SELECT ALL ( + 85 ) + 30, 19 + - 91 * + COUNT ( * ) * - + 1 + CAST ( 53 AS INTEGER ) col1
----
115
163

query I rowsort
SELECT ALL 88 + 9
----
97

query I rowsort
SELECT DISTINCT 46 + - COALESCE ( - 11, + 29 * 76 * - + 30 + + 37 + + CASE - - 70 WHEN + - 51 THEN - - 49 + + - 58 + - 25 ELSE NULL END ) * 38 AS col1
----
464

query II rowsort
SELECT 77 * + 54 * + 70 AS col2, + 16 AS col1
----
291060
16

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-955
SELECT ALL 81 + + CAST( - ( - 32 ) AS SIGNED ), 30 AS col2
----
113
30

skipif mysql # not compatible
query II rowsort label-955
SELECT ALL 81 + + CAST ( - ( - 32 ) AS INTEGER ), 30 AS col2
----
113
30

query I rowsort
SELECT ( + - 3 ) * 28 col1
----
-84

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-957
SELECT 16 col1, + 16 + CASE + + 46 WHEN - COUNT( * ) + - - CAST( + + 53 AS SIGNED ) + - + ( + - 59 ) + + 64 / 79 + 40 / + 17 * - COALESCE ( COUNT( * ), - + 76 + - + 37 * - COUNT( * ) + - - 83 ) * - NULLIF ( NULLIF ( 88, + AVG ( - 19 ) ), ( - + 51 ) ) * - 28 THEN + 37 * 73 ELSE + 48 END col0
----
16
64

skipif mysql # not compatible
query II rowsort label-957
SELECT 16 col1, + 16 + CASE + + 46 WHEN - COUNT ( * ) + - - CAST ( + + 53 AS INTEGER ) + - + ( + - 59 ) + + 64 / 79 + 40 / + 17 * - COALESCE ( COUNT ( * ), - + 76 + - + 37 * - COUNT ( * ) + - - 83 ) * - NULLIF ( NULLIF ( 88, + AVG ( - 19 ) ), ( - + 51 ) ) * - 28 THEN + 37 * 73 ELSE + 48 END col0
----
16
64

query II rowsort
SELECT - 37 col0, 87
----
-37
87

onlyif mysql # aggregate syntax: 
query I rowsort label-959
SELECT ALL + 95 + - COUNT( ALL + 23 ) AS col1
----
94

skipif mysql # not compatible
query I rowsort label-959
SELECT ALL + 95 + - COUNT ( ALL + 23 ) AS col1
----
94

onlyif mysql # DIV for integer division: 
query I rowsort label-960
SELECT 95 * ( - - 95 ) + - 54 DIV - 56
----
9025

skipif mysql # not compatible
query I rowsort label-960
SELECT 95 * ( - - 95 ) + - 54 / - 56
----
9025

onlyif mysql # aggregate syntax: 
query I rowsort label-961
SELECT 12 * - COUNT( * ) * ( + 36 ) * + COUNT( * )
----
-432

skipif mysql # not compatible
query I rowsort label-961
SELECT 12 * - COUNT ( * ) * ( + 36 ) * + COUNT ( * )
----
-432

query I rowsort
SELECT ALL 26 * 51 * ( 77 ) + - + ( - - 52 )
----
102050

query I rowsort
SELECT NULLIF ( + 12, + CASE 61 WHEN + 92 THEN NULL ELSE + - 19 END )
----
12

query I rowsort
SELECT ALL 98 * - 42 AS col2
----
-4116

onlyif mysql # aggregate syntax: 
query I rowsort label-965
SELECT DISTINCT 94 * - MAX( 17 ) - COUNT( * ) AS col2
----
-1599

skipif mysql # not compatible
query I rowsort label-965
SELECT DISTINCT 94 * - MAX ( 17 ) - COUNT ( * ) AS col2
----
-1599

query I rowsort
SELECT ALL + 96 * - 6 AS col2
----
-576

onlyif mysql # aggregate syntax: 
query I rowsort label-967
SELECT + CASE - 73 WHEN + + ( - 51 ) THEN + COUNT( * ) * + 55 * - - ( - AVG ( ALL 99 ) ) ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-967
SELECT + CASE - 73 WHEN + + ( - 51 ) THEN + COUNT ( * ) * + 55 * - - ( - AVG ( ALL 99 ) ) ELSE NULL END AS col0
----
NULL

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

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

query I rowsort
SELECT - - 41 * 79 AS col2
----
3239

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-970
SELECT - 7 * - ( + COUNT( * ) ) AS col2, + COUNT( * ) DIV 10
----
7
0

skipif mysql # not compatible
query II rowsort label-970
SELECT - 7 * - ( + COUNT ( * ) ) AS col2, + COUNT ( * ) / 10
----
7
0

query I rowsort
SELECT DISTINCT + ( - 23 ) col1
----
-23

query II rowsort
SELECT DISTINCT + + 86, - 29 AS col2
----
86
-29

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

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

query II rowsort
SELECT DISTINCT + 68 AS col1, 31 AS col2
----
68
31

onlyif mysql # aggregate syntax: 
query I rowsort label-975
SELECT ALL COALESCE ( - 91, - + 51, + - 94 ) * ( + + COUNT( * ) ) AS col2
----
-91

skipif mysql # not compatible
query I rowsort label-975
SELECT ALL COALESCE ( - 91, - + 51, + - 94 ) * ( + + COUNT ( * ) ) AS col2
----
-91

query I rowsort
SELECT - 73 * - 99
----
7227

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

query I rowsort
SELECT DISTINCT - 47 * + - 66 * - + 91 + 58 AS col2
----
-282224

onlyif mysql # aggregate syntax: 
query I rowsort label-979
SELECT DISTINCT + ( - - NULLIF ( - + 79, + - 80 * 9 + + COUNT( * ) ) )
----
-79

skipif mysql # not compatible
query I rowsort label-979
SELECT DISTINCT + ( - - NULLIF ( - + 79, + - 80 * 9 + + COUNT ( * ) ) )
----
-79

query I rowsort
SELECT ALL + + 24 * + 88
----
2112

onlyif mysql # aggregate syntax: 
query I rowsort label-981
SELECT + - 9 * + COUNT( * ) * + - COUNT( DISTINCT + 27 ) + + 22 * + - 18 * - 82 * + 72
----
2337993

skipif mysql # not compatible
query I rowsort label-981
SELECT + - 9 * + COUNT ( * ) * + - COUNT ( DISTINCT + 27 ) + + 22 * + - 18 * - 82 * + 72
----
2337993

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-982
SELECT + + MIN( - + CAST( + 92 AS SIGNED ) ) AS col2
----
-92

skipif mysql # not compatible
query I rowsort label-982
SELECT + + MIN ( - + CAST ( + 92 AS INTEGER ) ) AS col2
----
-92

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-983
SELECT + 58 AS col0, ( COUNT( ALL 51 ) ) - + CAST( + ( - + CASE + 29 WHEN COUNT( * ) THEN + + 89 WHEN CASE + + 37 WHEN + 2 + + 86 THEN + + CAST( NULL AS SIGNED ) - + - 71 WHEN - 39 * 86 - + COALESCE ( ( - + COALESCE ( + + 23, - ( - + 34 ) * + 87, - 64 / 56 / - 36 / 5 ) ), - 8 * 80 ) * COUNT( * ) + 5 * 71 THEN NULL ELSE NULL END * + 53 THEN NULL WHEN - 62 * AVG ( ( - 16 ) ) THEN NULL WHEN 91 THEN NULL ELSE - COUNT( * ) END ) AS SIGNED ) - - 8 * - 67 AS col2
----
58
-536

skipif mysql # not compatible
query II rowsort label-983
SELECT + 58 AS col0, ( COUNT ( ALL 51 ) ) - + CAST ( + ( - + CASE + 29 WHEN COUNT ( * ) THEN + + 89 WHEN CASE + + 37 WHEN + 2 + + 86 THEN + + CAST ( NULL AS INTEGER ) - + - 71 WHEN - 39 * 86 - + COALESCE ( ( - + COALESCE ( + + 23, - ( - + 34 ) * + 87, - 64 / 56 / - 36 / 5 ) ), - 8 * 80 ) * COUNT ( * ) + 5 * 71 THEN NULL ELSE NULL END * + 53 THEN NULL WHEN - 62 * AVG ( ( - 16 ) ) THEN NULL WHEN 91 THEN NULL ELSE - COUNT ( * ) END ) AS INTEGER ) - - 8 * - 67 AS col2
----
58
-536

query I rowsort
SELECT ALL - - 12 + 70 - + 5 AS col2
----
77

query I rowsort
SELECT - ( - 89 ) + 21 AS col1
----
110

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-986
SELECT + CAST( + - MIN( ALL CASE - 6 WHEN + 10 THEN + 77 * 30 - + 1 + - - 0 END ) AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-986
SELECT + CAST ( + - MIN ( ALL CASE - 6 WHEN + 10 THEN + 77 * 30 - + 1 + - - 0 END ) AS INTEGER )
----
NULL

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

query I rowsort
SELECT ALL 6 + 82
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-989
SELECT + COUNT( * ) - 40 AS col0
----
-39

skipif mysql # not compatible
query I rowsort label-989
SELECT + COUNT ( * ) - 40 AS col0
----
-39

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

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

query I rowsort
SELECT ALL 41 + 59
----
100

onlyif mysql # DIV for integer division: 
query I rowsort label-992
SELECT ALL 0 DIV - 26 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-992
SELECT ALL 0 / - 26 AS col2
----
0

query I rowsort
SELECT DISTINCT + ( 29 ) + + 69
----
98

query I rowsort
SELECT DISTINCT 35 * + 60 * + 59
----
123900

query I rowsort
SELECT ALL 94 + 29
----
123

query I rowsort
SELECT ALL 6 + - - 41 * + - 89
----
-3643

query I rowsort
SELECT + 76 + - 63
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-998
SELECT DISTINCT 40 * + SUM( - + 35 )
----
-1400

skipif mysql # not compatible
query I rowsort label-998
SELECT DISTINCT 40 * + SUM ( - + 35 )
----
-1400

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-999
SELECT + ( + 71 ) + + CAST( NULL AS DECIMAL ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-999
SELECT + ( + 71 ) + + CAST ( NULL AS REAL ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1000
SELECT ALL 58 + - COALESCE ( + 63, - 44, + - ( COUNT( * ) ) )
----
-5

skipif mysql # not compatible
query I rowsort label-1000
SELECT ALL 58 + - COALESCE ( + 63, - 44, + - ( COUNT ( * ) ) )
----
-5

onlyif mysql # DIV for integer division: 
query II rowsort label-1001
SELECT - COALESCE ( COALESCE ( + + 74, 15 ), + - 24 DIV - 29, 65 * - 51 + - 78 ) col0, 66 + - + 44
----
-74
22

skipif mysql # not compatible
query II rowsort label-1001
SELECT - COALESCE ( COALESCE ( + + 74, 15 ), + - 24 / - 29, 65 * - 51 + - 78 ) col0, 66 + - + 44
----
-74
22

onlyif mysql # aggregate syntax: 
query I rowsort label-1002
SELECT - 46 + + NULLIF ( - 77, - 56 ) + + COUNT( * ) - 92 col0
----
-214

skipif mysql # not compatible
query I rowsort label-1002
SELECT - 46 + + NULLIF ( - 77, - 56 ) + + COUNT ( * ) - 92 col0
----
-214

onlyif mysql # DIV for integer division: 
query I rowsort label-1003
SELECT - COALESCE ( COALESCE ( COALESCE ( 9, - 4 ), - 61 DIV - 17 - - + 75 ), - - 25 * - 67 * 97 )
----
-9

skipif mysql # not compatible
query I rowsort label-1003
SELECT - COALESCE ( COALESCE ( COALESCE ( 9, - 4 ), - 61 / - 17 - - + 75 ), - - 25 * - 67 * 97 )
----
-9

query II rowsort
SELECT - 22 + + 23 AS col1, + 29 * - - 79 AS col1
----
1
2291

onlyif mysql # DIV for integer division: 
query I rowsort label-1005
SELECT ALL COALESCE ( 25, + 21, - 50 DIV - 65 DIV CASE + - 65 WHEN - - ( - 61 ) THEN - 73 END * + + 98 + 11 + 49 * 8 ) - + + 81 * 77 * - + 60 AS col0
----
374245

skipif mysql # not compatible
query I rowsort label-1005
SELECT ALL COALESCE ( 25, + 21, - 50 / - 65 / CASE + - 65 WHEN - - ( - 61 ) THEN - 73 END * + + 98 + 11 + 49 * 8 ) - + + 81 * 77 * - + 60 AS col0
----
374245

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

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

query I rowsort
SELECT ALL 39 * + 24 * ( + COALESCE ( + 63, + 40 ) ) AS col1
----
58968

onlyif mysql # aggregate syntax: 
query I rowsort label-1008
SELECT DISTINCT MIN( - ( - + 51 ) )
----
51

skipif mysql # not compatible
query I rowsort label-1008
SELECT DISTINCT MIN ( - ( - + 51 ) )
----
51

query I rowsort
SELECT DISTINCT 57 - 71
----
-14

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1010
SELECT + 86 DIV NULLIF ( - + 34, - COUNT( + 55 ) ) * MIN( ALL + - 92 ) DIV - - 83 + - COALESCE ( + 8, - 34 + 23 + + 21, + 55 ) + 17 + - + MAX( ALL - 42 ) col1
----
53

skipif mysql # not compatible
query I rowsort label-1010
SELECT + 86 / NULLIF ( - + 34, - COUNT ( + 55 ) ) * MIN ( ALL + - 92 ) / - - 83 + - COALESCE ( + 8, - 34 + 23 + + 21, + 55 ) + 17 + - + MAX ( ALL - 42 ) col1
----
53

query I rowsort
SELECT - 4 * 44 AS col0
----
-176

query I rowsort
SELECT DISTINCT - 46 * 97 AS col1
----
-4462

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1013
SELECT DISTINCT + AVG ( + 78 ) / - + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-1013
SELECT DISTINCT + AVG ( + 78 ) / - + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT + 69 * - 52 - 70 AS col0
----
-3658

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1015
SELECT - 91 DIV + 37 * - COUNT( * )
----
2

skipif mysql # not compatible
query I rowsort label-1015
SELECT - 91 / + 37 * - COUNT ( * )
----
2

query I rowsort
SELECT + - 54 + + 79
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-1017
SELECT DISTINCT - + COUNT( * ) * 32 col0
----
-32

skipif mysql # not compatible
query I rowsort label-1017
SELECT DISTINCT - + COUNT ( * ) * 32 col0
----
-32

query I rowsort
SELECT ALL + - 74 col1
----
-74

query I rowsort
SELECT DISTINCT COALESCE ( 15, - + 24 ) * + - 96 AS col1
----
-1440

query I rowsort
SELECT - 80 + - 10 AS col2
----
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-1021
SELECT DISTINCT + 7 * 33 * + 44 - + COUNT( * ) + - - 89
----
10252

skipif mysql # not compatible
query I rowsort label-1021
SELECT DISTINCT + 7 * 33 * + 44 - + COUNT ( * ) + - - 89
----
10252

onlyif mysql # aggregate syntax: 
query II rowsort label-1022
SELECT DISTINCT + - NULLIF ( + 46, 9 + + 79 + - SUM( ALL - 1 ) ) * 56, 72 * - 15 * 79 + - 77 - COALESCE ( COUNT( - 39 ), + 8 ) AS col1
----
-2576
-85398

skipif mysql # not compatible
query II rowsort label-1022
SELECT DISTINCT + - NULLIF ( + 46, 9 + + 79 + - SUM ( ALL - 1 ) ) * 56, 72 * - 15 * 79 + - 77 - COALESCE ( COUNT ( - 39 ), + 8 ) AS col1
----
-2576
-85398

query I rowsort
SELECT - 7 * + 32 col2
----
-224

onlyif mysql # aggregate syntax: 
query I rowsort label-1024
SELECT COUNT( DISTINCT 2 ) col2
----
1

skipif mysql # not compatible
query I rowsort label-1024
SELECT COUNT ( DISTINCT 2 ) col2
----
1

query I rowsort
SELECT DISTINCT - + 47 * 28
----
-1316

query I rowsort
SELECT ALL 88 * + 61 + - 7 col1
----
5361

onlyif mysql # aggregate syntax: 
query I rowsort label-1027
SELECT DISTINCT + MAX( ALL - + 43 )
----
-43

skipif mysql # not compatible
query I rowsort label-1027
SELECT DISTINCT + MAX ( ALL - + 43 )
----
-43

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

skipif mysql # not compatible
query I rowsort label-1028
SELECT - 0 * - - COUNT ( * )
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1029
SELECT ALL CAST( - CASE 97 WHEN + 93 THEN 20 + 11 + - + MIN( - 21 ) + - COUNT( * ) WHEN - MAX( ALL + 9 ) * + + COUNT( * ) THEN NULL END AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-1029
SELECT ALL CAST ( - CASE 97 WHEN + 93 THEN 20 + 11 + - + MIN ( - 21 ) + - COUNT ( * ) WHEN - MAX ( ALL + 9 ) * + + COUNT ( * ) THEN NULL END AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1030
SELECT DISTINCT - 13 * - - COUNT( * ) AS col1
----
-13

skipif mysql # not compatible
query I rowsort label-1030
SELECT DISTINCT - 13 * - - COUNT ( * ) AS col1
----
-13

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1031
SELECT - 64 - - - 55 + + 74 * ( + 14 ) + - - CAST( NULL AS SIGNED ) - + CAST( NULL AS SIGNED ) * - + 4
----
NULL

skipif mysql # not compatible
query I rowsort label-1031
SELECT - 64 - - - 55 + + 74 * ( + 14 ) + - - CAST ( NULL AS INTEGER ) - + CAST ( NULL AS INTEGER ) * - + 4
----
NULL

query I rowsort
SELECT DISTINCT 93 - + 23
----
70

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1034
SELECT ALL MAX( ALL - 58 ) * + 86 + 37 - MIN( ALL - 55 ) * - 38 AS col0
----
-7041

skipif mysql # not compatible
query I rowsort label-1034
SELECT ALL MAX ( ALL - 58 ) * + 86 + 37 - MIN ( ALL - 55 ) * - 38 AS col0
----
-7041

query I rowsort
SELECT + 86 - - 32 AS col1
----
118

query I rowsort
SELECT ALL 92 - 41
----
51

query I rowsort
SELECT 18 * - - 44 AS col0
----
792

query I rowsort
SELECT DISTINCT 86 * + 11
----
946

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

skipif mysql # not compatible
query I rowsort label-1039
SELECT - + SUM ( ALL - 33 ) AS col2
----
33

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1040
SELECT COUNT( * ) * - CAST( NULL AS SIGNED ) * - 91 * - 36 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1040
SELECT COUNT ( * ) * - CAST ( NULL AS INTEGER ) * - 91 * - 36 AS col1
----
NULL

query I rowsort
SELECT + 33 + 55 - 90
----
-2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1042
SELECT DISTINCT 81 + - CAST( MAX( ALL - 86 ) AS SIGNED ) AS col2
----
167

skipif mysql # not compatible
query I rowsort label-1042
SELECT DISTINCT 81 + - CAST ( MAX ( ALL - 86 ) AS INTEGER ) AS col2
----
167

query I rowsort
SELECT 57 + + - 88 + + 67 * - 63 + + 6 AS col0
----
-4246

query I rowsort
SELECT ALL - 62 + 47 + - 59 AS col2
----
-74

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1045
SELECT - 24 * + + 30 + + SUM( DISTINCT + 52 ) - COUNT( * ) AS col2, - 36 DIV - 17 + - COUNT( * ) + + - 92 AS col2
----
-669
-91

skipif mysql # not compatible
query II rowsort label-1045
SELECT - 24 * + + 30 + + SUM ( DISTINCT + 52 ) - COUNT ( * ) AS col2, - 36 / - 17 + - COUNT ( * ) + + - 92 AS col2
----
-669
-91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1046
SELECT + + NULLIF ( COALESCE ( + COUNT( DISTINCT 53 ), - 44 * ( + 78 ) * COUNT( * ) + CAST( NULL AS SIGNED ), - CAST( NULL AS SIGNED ) + - ( + 9 ) DIV + + 85 * + 32 - + - COUNT( * ) ), 91 + + + 55 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-1046
SELECT + + NULLIF ( COALESCE ( + COUNT ( DISTINCT 53 ), - 44 * ( + 78 ) * COUNT ( * ) + CAST ( NULL AS INTEGER ), - CAST ( NULL AS INTEGER ) + - ( + 9 ) / + + 85 * + 32 - + - COUNT ( * ) ), 91 + + + 55 ) AS col2
----
1

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1048
SELECT ALL - 68 + + COUNT( * ) * + - MAX( 90 ) AS col1
----
-158

skipif mysql # not compatible
query I rowsort label-1048
SELECT ALL - 68 + + COUNT ( * ) * + - MAX ( 90 ) AS col1
----
-158

query I rowsort
SELECT ALL - - 44 + - - 91 + + 26 AS col1
----
161

onlyif mysql # aggregate syntax: 
query I rowsort label-1050
SELECT - ( + 27 ) - - + 64 + - COUNT( 64 ) * + + 13
----
24

skipif mysql # not compatible
query I rowsort label-1050
SELECT - ( + 27 ) - - + 64 + - COUNT ( 64 ) * + + 13
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-1051
SELECT DISTINCT MAX( - 58 ) + + + 93 AS col1
----
35

skipif mysql # not compatible
query I rowsort label-1051
SELECT DISTINCT MAX ( - 58 ) + + + 93 AS col1
----
35

query I rowsort
SELECT + 34 * + 17 + - + 62
----
516

query II rowsort
SELECT 13, - 35 col0
----
13
-35

query I rowsort
SELECT ALL 65 * + 68 * + - 40 AS col0
----
-176800

query I rowsort
SELECT ALL - 26 - + + 90 + + 81 * + 1 col1
----
-35

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1056
SELECT ALL - COUNT( * ) AS col1, 17 + - 12 DIV - ( 48 ) + + - CASE - 6 WHEN + + AVG ( + CAST( - - 46 AS SIGNED ) ) * + + 94 + COUNT( * ) THEN NULL WHEN ( - 22 ) THEN NULL ELSE - MAX( + 32 ) END
----
-1
49

skipif mysql # not compatible
query II rowsort label-1056
SELECT ALL - COUNT ( * ) AS col1, 17 + - 12 / - ( 48 ) + + - CASE - 6 WHEN + + AVG ( + CAST ( - - 46 AS INTEGER ) ) * + + 94 + COUNT ( * ) THEN NULL WHEN ( - 22 ) THEN NULL ELSE - MAX ( + 32 ) END
----
-1
49

query I rowsort
SELECT ( + 71 ) + NULLIF ( + ( - 89 ), + 10 ) AS col2
----
-18

query I rowsort
SELECT 93 - - 4 + - - NULLIF ( - - 68, + - 77 ) * 16 + CASE - 48 WHEN + 13 + + 60 THEN - ( + - 43 ) WHEN - 34 * - 49 THEN NULL END * + 20
----
NULL

query I rowsort
SELECT 63 * - 56 + ( - 75 ) + - ( - + 18 ) * + 93 * 12 + - + 86 * - 84 AS col2
----
23709

query I rowsort
SELECT 2 - - - ( - 24 ) AS col0
----
26

query I rowsort
SELECT ALL - 91 - 77 AS col2
----
-168

query I rowsort
SELECT 76 + + 41
----
117

query I rowsort
SELECT ALL - 64 * + 86 AS col2
----
-5504

query I rowsort
SELECT 92 + - 16 col2
----
76

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1065
SELECT ALL - 91 / MAX( 27 ) * - CASE + 42 WHEN - 24 THEN CAST( 24 AS SIGNED ) WHEN - 26 THEN - 62 ELSE NULL END + + 50, ( + + MIN( ALL 88 ) ) AS col0
----
NULL
88

skipif mysql # not compatible
query II rowsort label-1065
SELECT ALL - 91 / MAX ( 27 ) * - CASE + 42 WHEN - 24 THEN CAST ( 24 AS INTEGER ) WHEN - 26 THEN - 62 ELSE NULL END + + 50, ( + + MIN ( ALL 88 ) ) AS col0
----
NULL
88

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1066
SELECT COUNT( * ) + 35 * - - NULLIF ( + - 10, + + 72 / + ( + 1 ) ) + - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1066
SELECT COUNT ( * ) + 35 * - - NULLIF ( + - 10, + + 72 / + ( + 1 ) ) + - CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT ALL - 73 * 85
----
-6205

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

query II rowsort
SELECT 13, 88 + + + 67 AS col0
----
13
155

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1070
SELECT 18 DIV + + COALESCE ( ( - - 52 ), + + 45 * COUNT( DISTINCT 92 ) DIV + 52 DIV + ( + - ( + - NULLIF ( - 87, + CAST( - + 63 AS SIGNED ) ) ) ) )
----
0

skipif mysql # not compatible
query I rowsort label-1070
SELECT 18 / + + COALESCE ( ( - - 52 ), + + 45 * COUNT ( DISTINCT 92 ) / + 52 / + ( + - ( + - NULLIF ( - 87, + CAST ( - + 63 AS INTEGER ) ) ) ) )
----
0

query II rowsort
SELECT ALL 97 AS col1, + 37 + + 84 + + + ( - 74 ) AS col2
----
97
47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1072
SELECT ALL 0 col2, 90 * - 80 + + 14 + + COALESCE ( + + COUNT( * ), + + 50 + - 50, - 48 * - + 72 * + + 44 * - + 10 + + 11 - + + 32 + + COUNT( * ), - 12 ) * - - 99 * COUNT( DISTINCT - 30 ) * CAST( NULL AS SIGNED )
----
0
NULL

skipif mysql # not compatible
query II rowsort label-1072
SELECT ALL 0 col2, 90 * - 80 + + 14 + + COALESCE ( + + COUNT ( * ), + + 50 + - 50, - 48 * - + 72 * + + 44 * - + 10 + + 11 - + + 32 + + COUNT ( * ), - 12 ) * - - 99 * COUNT ( DISTINCT - 30 ) * CAST ( NULL AS INTEGER )
----
0
NULL

query I rowsort
SELECT 1 * 89
----
89

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1074
SELECT DISTINCT 52 + CASE 72 WHEN - CASE + CAST( NULL AS SIGNED ) WHEN + 14 * 27 + + 60 + - - 59 THEN - 58 + - 16 END * - - 34 * + 82 THEN - 74 WHEN - - 37 / - + SUM( ALL + + 22 ) THEN NULL WHEN 54 THEN - 79 * + CAST( NULL AS SIGNED ) + 81 * - - 79 + - ( - ( - + 20 ) ) + - + COUNT( * ) * - - COUNT( * ) ELSE + + 58 + + CAST( NULL AS SIGNED ) * + 34 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1074
SELECT DISTINCT 52 + CASE 72 WHEN - CASE + CAST ( NULL AS INTEGER ) WHEN + 14 * 27 + + 60 + - - 59 THEN - 58 + - 16 END * - - 34 * + 82 THEN - 74 WHEN - - 37 / - + SUM ( ALL + + 22 ) THEN NULL WHEN 54 THEN - 79 * + CAST ( NULL AS INTEGER ) + 81 * - - 79 + - ( - ( - + 20 ) ) + - + COUNT ( * ) * - - COUNT ( * ) ELSE + + 58 + + CAST ( NULL AS INTEGER ) * + 34 END AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1075
SELECT ALL COUNT( - 35 ) + + - COUNT( DISTINCT - + 73 ) col2, CAST( + 78 AS SIGNED ) AS col1
----
0
78

skipif mysql # not compatible
query II rowsort label-1075
SELECT ALL COUNT ( - 35 ) + + - COUNT ( DISTINCT - + 73 ) col2, CAST ( + 78 AS INTEGER ) AS col1
----
0
78

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

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

query I rowsort
SELECT DISTINCT - 24 + - 59
----
-83

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1080
SELECT DISTINCT - - SUM( 70 ) + CASE + 9 WHEN + NULLIF ( + 89, - 89 ) + + 19 THEN - + 54 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1080
SELECT DISTINCT - - SUM ( 70 ) + CASE + 9 WHEN + NULLIF ( + 89, - 89 ) + + 19 THEN - + 54 END AS col1
----
NULL

query I rowsort
SELECT ALL - 32 + - + 35
----
-67

query II rowsort
SELECT + - 2 AS col0, + 68 + 34 AS col0
----
-2
102

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1083
SELECT - 22 * + - 58 * - 58 * - - CASE - 17 WHEN - - 70 * - CAST( - - 28 AS DECIMAL ) THEN - 31 END - 79 + + + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-1083
SELECT - 22 * + - 58 * - 58 * - - CASE - 17 WHEN - - 70 * - CAST ( - - 28 AS REAL ) THEN - 31 END - 79 + + + COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1084
SELECT - CASE 39 WHEN + 29 * + 46 THEN - COUNT( * ) + - - 29 + + 8 / + + 88 END
----
NULL

skipif mysql # not compatible
query I rowsort label-1084
SELECT - CASE 39 WHEN + 29 * + 46 THEN - COUNT ( * ) + - - 29 + + 8 / + + 88 END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1085
SELECT - COUNT( * ) * CAST( - 58 AS SIGNED ) * + + CASE 85 WHEN - 23 + CAST( + 83 AS SIGNED ) * + - 68 + 2 * + 0 THEN NULL WHEN + 31 * CASE - - ( + 29 ) WHEN - ( - 10 ) * 52 + + 68 + + MAX( ALL - 59 ) * + 1 THEN - 78 / 38 + 37 * 75 + - COUNT( * ) + - 9 WHEN 73 * + + COUNT( DISTINCT + 8 ) * 91 THEN 69 ELSE NULL END + 49 THEN 58 / SUM( ALL ( - 8 ) * - CASE 90 WHEN - 21 / + 78 THEN 62 END ) END + - NULLIF ( 31, - 26 ) * + 16 - - 94
----
NULL

skipif mysql # not compatible
query I rowsort label-1085
SELECT - COUNT ( * ) * CAST ( - 58 AS INTEGER ) * + + CASE 85 WHEN - 23 + CAST ( + 83 AS INTEGER ) * + - 68 + 2 * + 0 THEN NULL WHEN + 31 * CASE - - ( + 29 ) WHEN - ( - 10 ) * 52 + + 68 + + MAX ( ALL - 59 ) * + 1 THEN - 78 / 38 + 37 * 75 + - COUNT ( * ) + - 9 WHEN 73 * + + COUNT ( DISTINCT + 8 ) * 91 THEN 69 ELSE NULL END + 49 THEN 58 / SUM ( ALL ( - 8 ) * - CASE 90 WHEN - 21 / + 78 THEN 62 END ) END + - NULLIF ( 31, - 26 ) * + 16 - - 94
----
NULL

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

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

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

skipif mysql # not compatible
query I rowsort label-1087
SELECT DISTINCT - SUM ( + + 81 ) AS col2
----
-81

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1088
SELECT DISTINCT - + NULLIF ( 65, 87 + - 91 * + COUNT( * ) / - CAST( NULL AS DECIMAL ) )
----
-65

skipif mysql # not compatible
query I rowsort label-1088
SELECT DISTINCT - + NULLIF ( 65, 87 + - 91 * + COUNT ( * ) / - CAST ( NULL AS REAL ) )
----
-65

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1090
SELECT + COUNT( * ) * - 3 * + COALESCE ( - MIN( + 17 ), 16 ) - + 94 AS col0
----
-43

skipif mysql # not compatible
query I rowsort label-1090
SELECT + COUNT ( * ) * - 3 * + COALESCE ( - MIN ( + 17 ), 16 ) - + 94 AS col0
----
-43

onlyif mysql # DIV for integer division: 
query II rowsort label-1091
SELECT + - 51 AS col2, 17 DIV + 30
----
-51
0

skipif mysql # not compatible
query II rowsort label-1091
SELECT + - 51 AS col2, 17 / + 30
----
-51
0

query I rowsort
SELECT ALL 41 - - 96 + + 72 + 61
----
270

onlyif mysql # aggregate syntax: 
query II rowsort label-1093
SELECT + 67 * + 80 * - NULLIF ( - 51, - 11 - - AVG ( DISTINCT + 62 ) + + 62 ) + MAX( - - 79 ), - 87 AS col2
----
273439
-87

skipif mysql # not compatible
query II rowsort label-1093
SELECT + 67 * + 80 * - NULLIF ( - 51, - 11 - - AVG ( DISTINCT + 62 ) + + 62 ) + MAX ( - - 79 ), - 87 AS col2
----
273439
-87

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

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

query I rowsort
SELECT 2 + - ( - 75 ) * - - 42
----
3152

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1096
SELECT DISTINCT + SUM( + 79 ) * - + 89 * 10 * - CAST( NULL AS SIGNED ) * - - MAX( DISTINCT + - 68 ) * + 90 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1096
SELECT DISTINCT + SUM ( + 79 ) * - + 89 * 10 * - CAST ( NULL AS INTEGER ) * - - MAX ( DISTINCT + - 68 ) * + 90 col0
----
NULL

query I rowsort
SELECT ALL - 95 * 20 AS col1
----
-1900

query I rowsort
SELECT DISTINCT 17 * + 86 * 14
----
20468

onlyif mysql # aggregate syntax: 
query I rowsort label-1099
SELECT DISTINCT 34 * - 87 * - - MIN( + - 42 ) AS col0
----
124236

skipif mysql # not compatible
query I rowsort label-1099
SELECT DISTINCT 34 * - 87 * - - MIN ( + - 42 ) AS col0
----
124236

onlyif mysql # DIV for integer division: 
query I rowsort label-1100
SELECT ALL + COALESCE ( 94, - + 92 ) DIV + 51 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-1100
SELECT ALL + COALESCE ( 94, - + 92 ) / + 51 AS col1
----
1

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

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

query I rowsort
SELECT - 39 * + 2 AS col0
----
-78

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

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

query I rowsort
SELECT + 27 + 8 AS col2
----
35

onlyif mysql # aggregate syntax: 
query II rowsort label-1105
SELECT ALL SUM( ALL + + COALESCE ( 89, - - 67 + - 66 + 54 + - - 43 ) ), - 25 col2
----
89
-25

skipif mysql # not compatible
query II rowsort label-1105
SELECT ALL SUM ( ALL + + COALESCE ( 89, - - 67 + - 66 + 54 + - - 43 ) ), - 25 col2
----
89
-25

query II rowsort
SELECT - 3 * 28, + 64 AS col1
----
-84
64

query I rowsort
SELECT ALL + 33 + - + 80 + + 86 * + - 47
----
-4089

onlyif mysql # aggregate syntax: 
query I rowsort label-1108
SELECT ALL - 22 + CASE - - 8 WHEN + - COUNT( ALL - + 62 ) - COUNT( * ) THEN 66 * + + 8 WHEN - 20 / - CASE + 45 WHEN - 39 THEN 90 WHEN + - 31 THEN NULL END THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1108
SELECT ALL - 22 + CASE - - 8 WHEN + - COUNT ( ALL - + 62 ) - COUNT ( * ) THEN 66 * + + 8 WHEN - 20 / - CASE + 45 WHEN - 39 THEN 90 WHEN + - 31 THEN NULL END THEN NULL END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1109
SELECT - - 17 - + COALESCE ( - + COALESCE ( + 80, + 45 + + 64 + - - COUNT( * ) + ( NULLIF ( + COUNT( * ), CAST( NULL AS SIGNED ) ) ), 58 ), + 73 * - 29 ) AS col0
----
97

skipif mysql # not compatible
query I rowsort label-1109
SELECT - - 17 - + COALESCE ( - + COALESCE ( + 80, + 45 + + 64 + - - COUNT ( * ) + ( NULLIF ( + COUNT ( * ), CAST ( NULL AS INTEGER ) ) ), 58 ), + 73 * - 29 ) AS col0
----
97

query I rowsort
SELECT ALL CASE 96 WHEN - 41 THEN + 9 * - 73 + - - 44 ELSE NULL END
----
NULL

query I rowsort
SELECT DISTINCT - - 28 + - 12 AS col2
----
16

onlyif mysql # DIV for integer division: 
query I rowsort label-1112
SELECT ALL - + 78 + NULLIF ( - 55, + 47 ) DIV 95 AS col2
----
-78

skipif mysql # not compatible
query I rowsort label-1112
SELECT ALL - + 78 + NULLIF ( - 55, + 47 ) / 95 AS col2
----
-78

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1115
SELECT - 17 + 70 AS col1, 54 * MAX( + 59 )
----
53
3186

skipif mysql # not compatible
query II rowsort label-1115
SELECT - 17 + 70 AS col1, 54 * MAX ( + 59 )
----
53
3186

query I rowsort
SELECT - 31 + + + 47
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-1117
SELECT ALL + 83 * - - 47 + + COUNT( ALL - 60 )
----
3902

skipif mysql # not compatible
query I rowsort label-1117
SELECT ALL + 83 * - - 47 + + COUNT ( ALL - 60 )
----
3902

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1118
SELECT - NULLIF ( + NULLIF ( + - NULLIF ( + 78, - 79 ), - CAST( - 72 AS DECIMAL ) ), - 2 ) * ( + 83 ) AS col2
----
6474

skipif mysql # not compatible
query I rowsort label-1118
SELECT - NULLIF ( + NULLIF ( + - NULLIF ( + 78, - 79 ), - CAST ( - 72 AS REAL ) ), - 2 ) * ( + 83 ) AS col2
----
6474

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1119
SELECT 40 DIV - 18 + - SUM( 82 )
----
-84

skipif mysql # not compatible
query I rowsort label-1119
SELECT 40 / - 18 + - SUM ( 82 )
----
-84

onlyif mysql # DIV for integer division: 
query I rowsort label-1120
SELECT DISTINCT + 77 DIV 94 * 0
----
0

skipif mysql # not compatible
query I rowsort label-1120
SELECT DISTINCT + 77 / 94 * 0
----
0

query I rowsort
SELECT ALL + 55 * + 45 * 17 AS col2
----
42075

query I rowsort
SELECT + + 49 * - 86
----
-4214

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

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

query I rowsort
SELECT ALL + 47 * + 94 - + 70
----
4348

query I rowsort
SELECT - - 80 * 92
----
7360

onlyif mysql # aggregate syntax: 
query I rowsort label-1126
SELECT + COUNT( * ) * + + 99 + + 49 AS col2
----
148

skipif mysql # not compatible
query I rowsort label-1126
SELECT + COUNT ( * ) * + + 99 + + 49 AS col2
----
148

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1127
SELECT NULLIF ( - - CAST( NULL AS SIGNED ), - COUNT( * ) * + 87 * 19 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1127
SELECT NULLIF ( - - CAST ( NULL AS INTEGER ), - COUNT ( * ) * + 87 * 19 )
----
NULL

query I rowsort
SELECT + COALESCE ( ( 47 ), + 28 * - 44 * - 7, + - ( + - 0 ) ) AS col2
----
47

query I rowsort
SELECT + 6 + 62
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-1130
SELECT + NULLIF ( COUNT( * ), - 7 ) * - ( 88 ) * - 94 - 42
----
8230

skipif mysql # not compatible
query I rowsort label-1130
SELECT + NULLIF ( COUNT ( * ), - 7 ) * - ( 88 ) * - 94 - 42
----
8230

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1131
SELECT DISTINCT + 91 * - 92 * + 83 * COALESCE ( COUNT( * ), + 2 * + COALESCE ( - 29, - 20 + + 60 + - 90 ) * - 75 + - 8 DIV - 65 )
----
-694876

skipif mysql # not compatible
query I rowsort label-1131
SELECT DISTINCT + 91 * - 92 * + 83 * COALESCE ( COUNT ( * ), + 2 * + COALESCE ( - 29, - 20 + + 60 + - 90 ) * - 75 + - 8 / - 65 )
----
-694876

query I rowsort
SELECT + 11 + - + 50 * + 66 AS col2
----
-3289

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1134
SELECT NULLIF ( - COUNT( DISTINCT - 47 ), 12 )
----
-1

skipif mysql # not compatible
query I rowsort label-1134
SELECT NULLIF ( - COUNT ( DISTINCT - 47 ), 12 )
----
-1

query II rowsort
SELECT ALL + 47 AS col1, 25 * - - 69
----
47
1725

query I rowsort
SELECT + 75 + - 94 AS col2
----
-19

query I rowsort
SELECT + 40 * + 81 AS col2
----
3240

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1138
SELECT + CAST( - 33 AS SIGNED ) + + + CASE + + 51 WHEN - - AVG ( DISTINCT - 68 ) * - 20 + - - COALESCE ( - 31, + 75 ) * + 18 THEN + COUNT( * ) WHEN + 60 THEN - 30 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1138
SELECT + CAST ( - 33 AS INTEGER ) + + + CASE + + 51 WHEN - - AVG ( DISTINCT - 68 ) * - 20 + - - COALESCE ( - 31, + 75 ) * + 18 THEN + COUNT ( * ) WHEN + 60 THEN - 30 END AS col0
----
NULL

query I rowsort
SELECT DISTINCT CASE - + 59 WHEN 19 THEN + 51 * - 82 * + CASE + 73 WHEN + 57 THEN NULL WHEN + 32 THEN + 88 END - + - 73 + - 66 ELSE NULL END / - - 8
----
NULL

query I rowsort
SELECT ALL - 58 * - + ( + + 65 ) + + 32 AS col1
----
3802

query I rowsort
SELECT - 33 - - 0 AS col1
----
-33

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1142
SELECT + 4 DIV - COUNT( * ) col1
----
-4

skipif mysql # not compatible
query I rowsort label-1142
SELECT + 4 / - COUNT ( * ) col1
----
-4

query I rowsort
SELECT ALL - 42 * 53 + 61
----
-2165

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

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

query I rowsort
SELECT ALL 86 + + - 99 * + 38 * - 58 AS col2
----
218282

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

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

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

query I rowsort
SELECT + + 71 + 78
----
149

query I rowsort
SELECT ALL + 66 + - ( - - ( - 70 ) ) col1
----
136

onlyif mysql # aggregate syntax: 
query I rowsort label-1150
SELECT - - 96 + COUNT( - 50 ) * 38
----
134

skipif mysql # not compatible
query I rowsort label-1150
SELECT - - 96 + COUNT ( - 50 ) * 38
----
134

onlyif mysql # aggregate syntax: 
query I rowsort label-1151
SELECT ALL 5 + COUNT( * ) * + - 55 * - + 57 AS col1
----
3140

skipif mysql # not compatible
query I rowsort label-1151
SELECT ALL 5 + COUNT ( * ) * + - 55 * - + 57 AS col1
----
3140

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

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1154
SELECT - 71 + + + 85 + COUNT( * ) + - COALESCE ( + 49, 42, - SUM( - - 46 ) DIV + - 11 )
----
-34

skipif mysql # not compatible
query I rowsort label-1154
SELECT - 71 + + + 85 + COUNT ( * ) + - COALESCE ( + 49, 42, - SUM ( - - 46 ) / + - 11 )
----
-34

query I rowsort
SELECT ALL - - 50 - 95 AS col0
----
-45

query II rowsort
SELECT - 10 AS col1, 82
----
-10
82

query II rowsort
SELECT ALL - 24 col2, - 53 * + - NULLIF ( + + 56, + 55 ) AS col1
----
-24
2968

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1158
SELECT - + 69 * + 59 + - COUNT( * ) DIV - 2 AS col1
----
-4071

skipif mysql # not compatible
query I rowsort label-1158
SELECT - + 69 * + 59 + - COUNT ( * ) / - 2 AS col1
----
-4071

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1159
SELECT ALL + + COALESCE ( + 65, - - COUNT( + 67 ) * 45 DIV - + 74 + 52 ) * 59 + - CASE ( COUNT( * ) ) WHEN 86 THEN + ( NULLIF ( 0, + ( 84 ) ) ) ELSE + 73 END AS col1, - 97 col0
----
3762
-97

skipif mysql # not compatible
query II rowsort label-1159
SELECT ALL + + COALESCE ( + 65, - - COUNT ( + 67 ) * 45 / - + 74 + 52 ) * 59 + - CASE ( COUNT ( * ) ) WHEN 86 THEN + ( NULLIF ( 0, + ( 84 ) ) ) ELSE + 73 END AS col1, - 97 col0
----
3762
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-1160
SELECT DISTINCT + 47 * MAX( DISTINCT - - 76 ) col0
----
3572

skipif mysql # not compatible
query I rowsort label-1160
SELECT DISTINCT + 47 * MAX ( DISTINCT - - 76 ) col0
----
3572

query I rowsort
SELECT ALL - 89 - + 22 AS col0
----
-111

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

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

query I rowsort
SELECT ALL + - 71 * + 67
----
-4757

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

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

query I rowsort
SELECT 34 * - + 35 - - 25 * + + 45 AS col0
----
-65

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1166
SELECT - SUM( + NULLIF ( - COALESCE ( - 47, - 58 ), - - 64 + - CAST( NULL AS SIGNED ) ) ) AS col0
----
-47

skipif mysql # not compatible
query I rowsort label-1166
SELECT - SUM ( + NULLIF ( - COALESCE ( - 47, - 58 ), - - 64 + - CAST ( NULL AS INTEGER ) ) ) AS col0
----
-47

query I rowsort
SELECT - 47 + - 85 col0
----
-132

query I rowsort
SELECT - 88 + - - 63 + + + 30 AS col0
----
5

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

skipif mysql # not compatible
query I rowsort label-1169
SELECT ALL - COUNT ( * ) / - 3
----
0

query I rowsort
SELECT 76 * - 3 AS col1
----
-228

query I rowsort
SELECT ALL - 14 * 24 AS col2
----
-336

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1173
SELECT ALL - 5 + + SUM( - 87 ) col0
----
-92

skipif mysql # not compatible
query I rowsort label-1173
SELECT ALL - 5 + + SUM ( - 87 ) col0
----
-92

query I rowsort
SELECT 33 * + + 50 + + + 4 AS col1
----
1654

onlyif mysql # aggregate syntax: 
query I rowsort label-1175
SELECT ALL NULLIF ( + 95, 50 ) + - + COUNT( * ) + + - 41 col1
----
53

skipif mysql # not compatible
query I rowsort label-1175
SELECT ALL NULLIF ( + 95, 50 ) + - + COUNT ( * ) + + - 41 col1
----
53

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1177
SELECT + 90 * - ( + 62 ) - + - COUNT( * ) col0
----
-5579

skipif mysql # not compatible
query I rowsort label-1177
SELECT + 90 * - ( + 62 ) - + - COUNT ( * ) col0
----
-5579

query I rowsort
SELECT NULLIF ( 31, - 3 / - 6 ) * - 51 AS col0
----
-1581

query I rowsort
SELECT ALL 16 * - 15
----
-240

onlyif mysql # aggregate syntax: 
query I rowsort label-1180
SELECT CASE WHEN NOT 29 IS NULL THEN NULL WHEN NOT 32 * 91 / + 12 IS NOT NULL THEN 86 + + 14 * - + 52 + + COUNT( ALL + 82 ) ELSE NULL END + - 81
----
NULL

skipif mysql # not compatible
query I rowsort label-1180
SELECT CASE WHEN NOT 29 IS NULL THEN NULL WHEN NOT 32 * 91 / + 12 IS NOT NULL THEN 86 + + 14 * - + 52 + + COUNT ( ALL + 82 ) ELSE NULL END + - 81
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1181
SELECT ( + 66 ) DIV - 15
----
-4

skipif mysql # not compatible
query I rowsort label-1181
SELECT ( + 66 ) / - 15
----
-4

query I rowsort
SELECT ALL - 54 * + + 2
----
-108

query I rowsort
SELECT 87 * - 40 * + + 99 AS col2
----
-344520

onlyif mysql # DIV for integer division: 
query I rowsort label-1184
SELECT DISTINCT 65 DIV - 72 + + 90 col0
----
90

skipif mysql # not compatible
query I rowsort label-1184
SELECT DISTINCT 65 / - 72 + + 90 col0
----
90

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1185
SELECT ALL + AVG ( ALL + 75 ) - - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-1185
SELECT ALL + AVG ( ALL + 75 ) - - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1186
SELECT DISTINCT + 21 * ( - COUNT( 86 ) ) / - CASE - 15 WHEN + 96 THEN NULL WHEN COUNT( * ) THEN + 12 END
----
NULL

skipif mysql # not compatible
query I rowsort label-1186
SELECT DISTINCT + 21 * ( - COUNT ( 86 ) ) / - CASE - 15 WHEN + 96 THEN NULL WHEN COUNT ( * ) THEN + 12 END
----
NULL

query I rowsort
SELECT ( + 22 ) * + + 65 AS col1
----
1430

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1188
SELECT ALL + CAST( NULL AS SIGNED ) * - SUM( - + COALESCE ( + - 9, - + 71 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-1188
SELECT ALL + CAST ( NULL AS INTEGER ) * - SUM ( - + COALESCE ( + - 9, - + 71 ) )
----
NULL

query I rowsort
SELECT DISTINCT + 77 * + 17 AS col0
----
1309

query I rowsort
SELECT - 49 + + - 60 + 99
----
-10

query I rowsort
SELECT 59 + - - 86 * + 35 * 54 * - + 94
----
-15278701

onlyif mysql # DIV for integer division: 
query I rowsort label-1192
SELECT + 58 DIV 49 * + - 97 AS col1
----
-97

skipif mysql # not compatible
query I rowsort label-1192
SELECT + 58 / 49 * + - 97 AS col1
----
-97

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

skipif mysql # not compatible
query I rowsort label-1193
SELECT ALL SUM ( + + 57 ) AS col2
----
57

query I rowsort
SELECT NULLIF ( 73, + - ( + 69 ) * - - 12 + - - ( 20 ) - - 45 ) + 80 AS col0
----
153

onlyif mysql # aggregate syntax: 
query I rowsort label-1195
SELECT COUNT( ALL - + 37 ) - 36 AS col0
----
-35

skipif mysql # not compatible
query I rowsort label-1195
SELECT COUNT ( ALL - + 37 ) - 36 AS col0
----
-35

query II rowsort
SELECT - ( - + 3 ) AS col2, 11
----
3
11

query II rowsort
SELECT ALL - 51 AS col0, + 19
----
-51
19

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1199
SELECT ALL - 36 * SUM( DISTINCT 3 ) DIV 48 + 92 AS col2, + 99 AS col1
----
90
99

skipif mysql # not compatible
query II rowsort label-1199
SELECT ALL - 36 * SUM ( DISTINCT 3 ) / 48 + 92 AS col2, + 99 AS col1
----
90
99

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1200
SELECT + COUNT( * ) DIV + - 39 * 82 * + + COUNT( * ) + + - 44 AS col1
----
-44

skipif mysql # not compatible
query I rowsort label-1200
SELECT + COUNT ( * ) / + - 39 * 82 * + + COUNT ( * ) + + - 44 AS col1
----
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-1201
SELECT DISTINCT - COUNT( * ) + + - 80 + 93 * - 55 AS col1
----
-5196

skipif mysql # not compatible
query I rowsort label-1201
SELECT DISTINCT - COUNT ( * ) + + - 80 + 93 * - 55 AS col1
----
-5196

query I rowsort
SELECT 5 + 97 * + 12 col1
----
1169

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1203
SELECT ALL - 46 * - COUNT( DISTINCT + CAST( NULL AS SIGNED ) ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-1203
SELECT ALL - 46 * - COUNT ( DISTINCT + CAST ( NULL AS INTEGER ) ) AS col2
----
0

query II rowsort
SELECT + 70 AS col1, CASE + COALESCE ( 37, + 81 ) WHEN + + AVG ( + - 10 ) * 75 + + 69 THEN NULL WHEN 75 - - 9 THEN NULL ELSE + 46 END AS col1
----
70
46

query I rowsort
SELECT ALL + 74 + 52
----
126

query I rowsort
SELECT 1 + + + ( + 93 )
----
94

onlyif mysql # DIV for integer division: 
query I rowsort label-1207
SELECT 37 * 44 DIV 68
----
23

skipif mysql # not compatible
query I rowsort label-1207
SELECT 37 * 44 / 68
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-1208
SELECT DISTINCT - COUNT( * ) + 57 + 98
----
154

skipif mysql # not compatible
query I rowsort label-1208
SELECT DISTINCT - COUNT ( * ) + 57 + 98
----
154

query I rowsort
SELECT ALL - ( 57 ) AS col2
----
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-1210
SELECT ALL - SUM( DISTINCT 48 )
----
-48

skipif mysql # not compatible
query I rowsort label-1210
SELECT ALL - SUM ( DISTINCT 48 )
----
-48

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1211
SELECT ALL - CAST( - ( 83 ) AS SIGNED ) + + 63
----
146

skipif mysql # not compatible
query I rowsort label-1211
SELECT ALL - CAST ( - ( 83 ) AS INTEGER ) + + 63
----
146

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1212
SELECT - COALESCE ( + - 46, ( 99 ), - - COUNT( * ) ) * 3 + - - MAX( CAST( NULL AS SIGNED ) ) * - 83 + 85 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1212
SELECT - COALESCE ( + - 46, ( 99 ), - - COUNT ( * ) ) * 3 + - - MAX ( CAST ( NULL AS INTEGER ) ) * - 83 + 85 col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1213
SELECT ALL - MAX( DISTINCT + + 71 ) / ( - 61 ) * + 97 + 17 * - CASE - 46 WHEN - 39 THEN 66 END * 99 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1213
SELECT ALL - MAX ( DISTINCT + + 71 ) / ( - 61 ) * + 97 + 17 * - CASE - 46 WHEN - 39 THEN 66 END * 99 AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1214
SELECT DISTINCT - CAST( - 59 AS SIGNED ) AS col1
----
59

skipif mysql # not compatible
query I rowsort label-1214
SELECT DISTINCT - CAST ( - 59 AS INTEGER ) AS col1
----
59

query I rowsort
SELECT 17 + - - 18 col2
----
35

query I rowsort
SELECT DISTINCT + - 34 * - 72
----
2448

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1217
SELECT + MIN( + + 69 ) * + 49 + 48 + + COUNT( * ) + - CAST( NULL AS SIGNED ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1217
SELECT + MIN ( + + 69 ) * + 49 + 48 + + COUNT ( * ) + - CAST ( NULL AS INTEGER ) col1
----
NULL

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1219
SELECT + COUNT( * ) + + 31 * - COALESCE ( - - 93, - MAX( DISTINCT 61 ) DIV + 60 * - + CASE - COUNT( * ) WHEN 37 - 4 * 24 THEN + + COUNT( * ) WHEN - COUNT( * ) THEN - + 7 END + 30 + - 83 + COUNT( * ) + - 51, - 34 )
----
-2882

skipif mysql # not compatible
query I rowsort label-1219
SELECT + COUNT ( * ) + + 31 * - COALESCE ( - - 93, - MAX ( DISTINCT 61 ) / + 60 * - + CASE - COUNT ( * ) WHEN 37 - 4 * 24 THEN + + COUNT ( * ) WHEN - COUNT ( * ) THEN - + 7 END + 30 + - 83 + COUNT ( * ) + - 51, - 34 )
----
-2882

query I rowsort
SELECT ALL 9 - - 39 * - COALESCE ( + 57, - + 68 - 93 ) AS col0
----
-2214

query I rowsort
SELECT ALL - 14 * + + 18 * 36
----
-9072

query I rowsort
SELECT 2 + + - 4
----
-2

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

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

query I rowsort
SELECT 94 + - 72 AS col0
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-1225
SELECT MIN( - 43 ) * + 44 AS col1
----
-1892

skipif mysql # not compatible
query I rowsort label-1225
SELECT MIN ( - 43 ) * + 44 AS col1
----
-1892

onlyif mysql # aggregate syntax: 
query I rowsort label-1226
SELECT COUNT( * ) + 48 AS col2
----
49

skipif mysql # not compatible
query I rowsort label-1226
SELECT COUNT ( * ) + 48 AS col2
----
49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1227
SELECT - CASE 12 WHEN + NULLIF ( + 64, + 88 * + 80 + - CAST( NULL AS SIGNED ) ) * - - 79 - + 21 THEN 51 * + 5 + CAST( NULL AS SIGNED ) - + 87 * 9 * 24 * - 53 * 72 * - 93 ELSE 28 END
----
-28

skipif mysql # not compatible
query I rowsort label-1227
SELECT - CASE 12 WHEN + NULLIF ( + 64, + 88 * + 80 + - CAST ( NULL AS INTEGER ) ) * - - 79 - + 21 THEN 51 * + 5 + CAST ( NULL AS INTEGER ) - + 87 * 9 * 24 * - 53 * 72 * - 93 ELSE 28 END
----
-28

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1230
SELECT + 56 + - 68 + - - 34 DIV 72 + - 36
----
-48

skipif mysql # not compatible
query I rowsort label-1230
SELECT + 56 + - 68 + - - 34 / 72 + - 36
----
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-1231
SELECT - MAX( + ( - + 9 ) ) AS col1
----
9

skipif mysql # not compatible
query I rowsort label-1231
SELECT - MAX ( + ( - + 9 ) ) AS col1
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-1232
SELECT + COUNT( * ) * + 32 col2
----
32

skipif mysql # not compatible
query I rowsort label-1232
SELECT + COUNT ( * ) * + 32 col2
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-1233
SELECT ALL 66 + + COALESCE ( - + ( + 63 ), + 16 + CASE 83 WHEN + 10 * + - 68 * 75 + 19 THEN - 21 * + + 79 + + - 31 + 59 * - + 88 - 40 WHEN + COUNT( - 0 ) * - NULLIF ( 64, + - ( - + COUNT( * ) ) ) THEN NULL ELSE NULL END )
----
3

skipif mysql # not compatible
query I rowsort label-1233
SELECT ALL 66 + + COALESCE ( - + ( + 63 ), + 16 + CASE 83 WHEN + 10 * + - 68 * 75 + 19 THEN - 21 * + + 79 + + - 31 + 59 * - + 88 - 40 WHEN + COUNT ( - 0 ) * - NULLIF ( 64, + - ( - + COUNT ( * ) ) ) THEN NULL ELSE NULL END )
----
3

query II rowsort
SELECT ALL 3, + 88 * - - 18 AS col2
----
3
1584

query I rowsort
SELECT + 88 + + 49 AS col0
----
137

query I rowsort
SELECT + 47 * - - 62 * 95 * 66 AS col1
----
18270780

query I rowsort
SELECT DISTINCT 11 * - 79 AS col1
----
-869

query I rowsort
SELECT + 52 * + 51 AS col0
----
2652

onlyif mysql # aggregate syntax: 
query I rowsort label-1239
SELECT + 75 * + COUNT( * ) - - - 45 AS col1
----
30

skipif mysql # not compatible
query I rowsort label-1239
SELECT + 75 * + COUNT ( * ) - - - 45 AS col1
----
30

query I rowsort
SELECT - 17 * 40
----
-680

query I rowsort
SELECT - 34 + 77 + 22
----
65

query I rowsort
SELECT DISTINCT - 59 * + - 15 + + + 51
----
936

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1243
SELECT CASE + 86 WHEN + 69 + + CAST( NULL AS SIGNED ) THEN - + MAX( + + NULLIF ( 62, + - 87 ) ) ELSE + CAST( - MAX( - + 24 ) AS SIGNED ) END
----
24

skipif mysql # not compatible
query I rowsort label-1243
SELECT CASE + 86 WHEN + 69 + + CAST ( NULL AS INTEGER ) THEN - + MAX ( + + NULLIF ( 62, + - 87 ) ) ELSE + CAST ( - MAX ( - + 24 ) AS INTEGER ) END
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-1244
SELECT CASE - 59 WHEN - + 88 THEN NULL WHEN 26 THEN NULL WHEN + 91 / 18 * - NULLIF ( + 58, - - 69 ) + 11 THEN 63 * COUNT( * ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1244
SELECT CASE - 59 WHEN - + 88 THEN NULL WHEN 26 THEN NULL WHEN + 91 / 18 * - NULLIF ( + 58, - - 69 ) + 11 THEN 63 * COUNT ( * ) ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1245
SELECT ALL + 66 AS col2, - CASE + + 15 WHEN - 55 THEN + 61 WHEN COUNT( + 23 ) THEN COUNT( * ) * - 72 END AS col2
----
66
NULL

skipif mysql # not compatible
query II rowsort label-1245
SELECT ALL + 66 AS col2, - CASE + + 15 WHEN - 55 THEN + 61 WHEN COUNT ( + 23 ) THEN COUNT ( * ) * - 72 END AS col2
----
66
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1247
SELECT ALL + CASE 11 WHEN - 48 + + 26 - - COALESCE ( + 67, + - 41 ) * + - 43 * 35 * + MIN( + - 3 ) THEN 79 END
----
NULL

skipif mysql # not compatible
query I rowsort label-1247
SELECT ALL + CASE 11 WHEN - 48 + + 26 - - COALESCE ( + 67, + - 41 ) * + - 43 * 35 * + MIN ( + - 3 ) THEN 79 END
----
NULL

query I rowsort
SELECT + 21 * + 9 AS col0
----
189

onlyif mysql # aggregate syntax: 
query I rowsort label-1249
SELECT ALL - COUNT( - - 54 ) * + 35
----
-35

skipif mysql # not compatible
query I rowsort label-1249
SELECT ALL - COUNT ( - - 54 ) * + 35
----
-35

query I rowsort
SELECT 7 * 79 + 99 * - 29
----
-2318

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1251
SELECT DISTINCT + CASE 89 WHEN - + CASE - 29 WHEN + 1 / - 7 THEN 61 * - 82 / - 80 END THEN - 45 - + 8 WHEN - AVG ( ALL - - 42 ) THEN - 1 * - 28 ELSE NULL END * - 69, 57 + + NULLIF ( + 92, + CAST( NULL AS SIGNED ) ) * 57 + - + 5 col2
----
NULL
5296

skipif mysql # not compatible
query II rowsort label-1251
SELECT DISTINCT + CASE 89 WHEN - + CASE - 29 WHEN + 1 / - 7 THEN 61 * - 82 / - 80 END THEN - 45 - + 8 WHEN - AVG ( ALL - - 42 ) THEN - 1 * - 28 ELSE NULL END * - 69, 57 + + NULLIF ( + 92, + CAST ( NULL AS INTEGER ) ) * 57 + - + 5 col2
----
NULL
5296

query II rowsort
SELECT + 94 AS col1, - 44 * - + 71
----
94
3124

onlyif mysql # aggregate syntax: 
query I rowsort label-1253
SELECT ALL + 74 * + ( + 1 ) + - 4 * - - 38 - - COALESCE ( COUNT( * ), + - 32 + ( - COALESCE ( 21, - 24 ) ) * - COUNT( * ) ) + + - 64 * - 89 - 5
----
5614

skipif mysql # not compatible
query I rowsort label-1253
SELECT ALL + 74 * + ( + 1 ) + - 4 * - - 38 - - COALESCE ( COUNT ( * ), + - 32 + ( - COALESCE ( 21, - 24 ) ) * - COUNT ( * ) ) + + - 64 * - 89 - 5
----
5614

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1254
SELECT - 68 * 16 + - COUNT( * ) DIV + ( + 17 ) AS col1
----
-1088

skipif mysql # not compatible
query I rowsort label-1254
SELECT - 68 * 16 + - COUNT ( * ) / + ( + 17 ) AS col1
----
-1088

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1256
SELECT + 95 col1, - 96 * COUNT( * ) DIV - ( + 66 ) AS col1
----
95
1

skipif mysql # not compatible
query II rowsort label-1256
SELECT + 95 col1, - 96 * COUNT ( * ) / - ( + 66 ) AS col1
----
95
1

query II rowsort
SELECT ALL + - 21 AS col1, 34 AS col0
----
-21
34

onlyif mysql # aggregate syntax: 
query I rowsort label-1258
SELECT + CASE + 69 WHEN + - 99 THEN COUNT( * ) WHEN 16 THEN NULL WHEN - 36 * + 9 + - 19 - + 35 * + COUNT( + - 78 ) * - 72 THEN + 44 ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1258
SELECT + CASE + 69 WHEN + - 99 THEN COUNT ( * ) WHEN 16 THEN NULL WHEN - 36 * + 9 + - 19 - + 35 * + COUNT ( + - 78 ) * - 72 THEN + 44 ELSE NULL END AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1259
SELECT - - 71 DIV + 22 AS col1
----
3

skipif mysql # not compatible
query I rowsort label-1259
SELECT - - 71 / + 22 AS col1
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1260
SELECT ALL ( CAST( - + MIN( DISTINCT + CASE + 18 WHEN 75 THEN 68 * - 87 - 64 END ) AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-1260
SELECT ALL ( CAST ( - + MIN ( DISTINCT + CASE + 18 WHEN 75 THEN 68 * - 87 - 64 END ) AS INTEGER ) )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1261
SELECT - + 32 DIV + - ( 90 ) * - 53
----
0

skipif mysql # not compatible
query I rowsort label-1261
SELECT - + 32 / + - ( 90 ) * - 53
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1262
SELECT - 70 + - + MAX( ALL 52 ) col2
----
-122

skipif mysql # not compatible
query I rowsort label-1262
SELECT - 70 + - + MAX ( ALL 52 ) col2
----
-122

query I rowsort
SELECT - CASE 98 WHEN 47 THEN NULL WHEN - 7 THEN - 17 * - 66 + - 83 - + 6 END + - - 49
----
NULL

query I rowsort
SELECT ALL - + 51 * 21 AS col0
----
-1071

query II rowsort
SELECT - 98 + + 54 - - 77 * - 40 AS col2, 56 AS col0
----
-3124
56

query I rowsort
SELECT - + 80 - + 46 * 28
----
-1368

query I rowsort
SELECT ALL - + ( - 61 ) * - 7
----
-427

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1268
SELECT DISTINCT + ( - + 80 ) + - - 87 - + 10 + + - MIN( DISTINCT - - CAST( NULL AS SIGNED ) ) * - ( - 11 ) * + + 88 / + + 65 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1268
SELECT DISTINCT + ( - + 80 ) + - - 87 - + 10 + + - MIN ( DISTINCT - - CAST ( NULL AS INTEGER ) ) * - ( - 11 ) * + + 88 / + + 65 AS col1
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1269
SELECT ALL + 19 + + AVG ( DISTINCT - 85 ) / + CAST( NULL AS DECIMAL ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1269
SELECT ALL + 19 + + AVG ( DISTINCT - 85 ) / + CAST ( NULL AS REAL ) AS col2
----
NULL

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1271
SELECT - 87 + 55 AS col2, - 60 - SUM( ALL + CASE - 18 WHEN + 65 + 53 * 97 THEN + - 93 ELSE NULL END ) * + - 31 AS col2
----
-32
NULL

skipif mysql # not compatible
query II rowsort label-1271
SELECT - 87 + 55 AS col2, - 60 - SUM ( ALL + CASE - 18 WHEN + 65 + 53 * 97 THEN + - 93 ELSE NULL END ) * + - 31 AS col2
----
-32
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1272
SELECT ALL CASE + 14 WHEN + 18 THEN - 93 END * 80 * + CAST( COUNT( * ) AS SIGNED ) + + CAST( - - 15 AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-1272
SELECT ALL CASE + 14 WHEN + 18 THEN - 93 END * 80 * + CAST ( COUNT ( * ) AS INTEGER ) + + CAST ( - - 15 AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1273
SELECT DISTINCT + 1 DIV + 65 col2, COALESCE ( SUM( 37 ), + 66 * COUNT( * ) DIV + - 51, 13 ) * 28
----
0
1036

skipif mysql # not compatible
query II rowsort label-1273
SELECT DISTINCT + 1 / + 65 col2, COALESCE ( SUM ( 37 ), + 66 * COUNT ( * ) / + - 51, 13 ) * 28
----
0
1036

query I rowsort
SELECT + 99 * + + 21
----
2079

onlyif mysql # aggregate syntax: 
query I rowsort label-1275
SELECT + 34 + - 63 * - SUM( ALL 96 )
----
6082

skipif mysql # not compatible
query I rowsort label-1275
SELECT + 34 + - 63 * - SUM ( ALL 96 )
----
6082

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1276
SELECT 75 * - CAST( + - 36 AS SIGNED ) + 69 col1
----
2769

skipif mysql # not compatible
query I rowsort label-1276
SELECT 75 * - CAST ( + - 36 AS INTEGER ) + 69 col1
----
2769

onlyif mysql # DIV for integer division: 
query II rowsort label-1277
SELECT + 21 DIV 24 AS col2, 64 DIV 52 col2
----
0
1

skipif mysql # not compatible
query II rowsort label-1277
SELECT + 21 / 24 AS col2, 64 / 52 col2
----
0
1

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

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

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

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

query I rowsort
SELECT + 15 + + + 32
----
47

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

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

query I rowsort
SELECT ALL + - 4 * 45 AS col1
----
-180

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1283
SELECT + + CAST( NULL AS SIGNED ) * - 97 * 10 + + + MAX( DISTINCT 59 ) / - 76 + - 37 + - 16 + 54 * - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1283
SELECT + + CAST ( NULL AS INTEGER ) * - 97 * 10 + + + MAX ( DISTINCT 59 ) / - 76 + - 37 + - 16 + 54 * - CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT DISTINCT + 75 * - - 27
----
2025

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

query I rowsort
SELECT COALESCE ( 10, - 92 )
----
10

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1287
SELECT + + 42 * + 52 - CAST( NULL AS SIGNED ) AS col2
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1288
SELECT - ( 9 ) + + 37 - - 17 * + + COUNT( * ) * 35 * + 70 AS col2
----
41678

skipif mysql # not compatible
query I rowsort label-1288
SELECT - ( 9 ) + + 37 - - 17 * + + COUNT ( * ) * 35 * + 70 AS col2
----
41678

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1290
SELECT + COALESCE ( + 27, - - COUNT( * ) * 33 )
----
27

skipif mysql # not compatible
query I rowsort label-1290
SELECT + COALESCE ( + 27, - - COUNT ( * ) * 33 )
----
27

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1292
SELECT ALL + - CAST( NULL AS SIGNED ) * + - ( - 39 ) * - 62 + - COUNT( * ) * + - COUNT( ALL ( 95 ) ) * - 53
----
NULL

skipif mysql # not compatible
query I rowsort label-1292
SELECT ALL + - CAST ( NULL AS INTEGER ) * + - ( - 39 ) * - 62 + - COUNT ( * ) * + - COUNT ( ALL ( 95 ) ) * - 53
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1293
SELECT + 68 * - - COUNT( * ) * - 7, + COUNT( * ) + 3 * - 41 AS col0
----
-476
-122

skipif mysql # not compatible
query II rowsort label-1293
SELECT + 68 * - - COUNT ( * ) * - 7, + COUNT ( * ) + 3 * - 41 AS col0
----
-476
-122

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1296
SELECT ALL + 83 * - 56 + + 55 AS col1, + COUNT( * ) col0
----
-4593
1

skipif mysql # not compatible
query II rowsort label-1296
SELECT ALL + 83 * - 56 + + 55 AS col1, + COUNT ( * ) col0
----
-4593
1

query I rowsort
SELECT ALL + 15 + - ( 61 ) AS col2
----
-46

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1298
SELECT DISTINCT + + CAST( + + COUNT( + - 32 ) AS SIGNED ) + 28
----
29

skipif mysql # not compatible
query I rowsort label-1298
SELECT DISTINCT + + CAST ( + + COUNT ( + - 32 ) AS INTEGER ) + 28
----
29

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1299
SELECT MAX( DISTINCT + 61 ) DIV 40 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-1299
SELECT MAX ( DISTINCT + 61 ) / 40 AS col2
----
1

query I rowsort
SELECT ALL - - 45 + 89
----
134

query I rowsort
SELECT 21 * 32 AS col1
----
672

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1302
SELECT 95 * + AVG ( ALL - CAST( NULL AS DECIMAL ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-1302
SELECT 95 * + AVG ( ALL - CAST ( NULL AS REAL ) )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1303
SELECT ALL 57 AS col1, + SUM( + + 5 ) * + 77 * 29 - - - 72 + - 21 + COUNT( * )
----
57
11073

skipif mysql # not compatible
query II rowsort label-1303
SELECT ALL 57 AS col1, + SUM ( + + 5 ) * + 77 * 29 - - - 72 + - 21 + COUNT ( * )
----
57
11073

onlyif mysql # DIV for integer division: 
query I rowsort label-1304
SELECT 5 DIV - + 64 * ( + ( - 23 ) ) * + 46 col2
----
0

skipif mysql # not compatible
query I rowsort label-1304
SELECT 5 / - + 64 * ( + ( - 23 ) ) * + 46 col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1305
SELECT ALL - MIN( DISTINCT + 10 ) + + 55 col2
----
45

skipif mysql # not compatible
query I rowsort label-1305
SELECT ALL - MIN ( DISTINCT + 10 ) + + 55 col2
----
45

onlyif mysql # aggregate syntax: 
query II rowsort label-1306
SELECT ALL + ( - 17 ) - - 45 + + - 68 + 37 * - 23, MAX( + + 33 ) + - NULLIF ( 69, + - 60 ) AS col2
----
-891
-36

skipif mysql # not compatible
query II rowsort label-1306
SELECT ALL + ( - 17 ) - - 45 + + - 68 + 37 * - 23, MAX ( + + 33 ) + - NULLIF ( 69, + - 60 ) AS col2
----
-891
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-1307
SELECT 21 * + CASE 27 WHEN + 53 THEN - 20 WHEN - 11 * - NULLIF ( - MAX( ALL + 79 ), - - 99 ) * + 19 + + 40 THEN 75 * + 46 ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1307
SELECT 21 * + CASE 27 WHEN + 53 THEN - 20 WHEN - 11 * - NULLIF ( - MAX ( ALL + 79 ), - - 99 ) * + 19 + + 40 THEN 75 * + 46 ELSE NULL END AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1308
SELECT ALL + COALESCE ( - COALESCE ( + CAST( NULL AS SIGNED ), - NULLIF ( + + 38, + 69 * + 75 * + 21 ) + - + COUNT( * ), ( - 58 ) ), + ( 36 ) ) * - - 91 AS col0
----
3549

skipif mysql # not compatible
query I rowsort label-1308
SELECT ALL + COALESCE ( - COALESCE ( + CAST ( NULL AS INTEGER ), - NULLIF ( + + 38, + 69 * + 75 * + 21 ) + - + COUNT ( * ), ( - 58 ) ), + ( 36 ) ) * - - 91 AS col0
----
3549

query II rowsort
SELECT - 21, + 71 AS col0
----
-21
71

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1310
SELECT DISTINCT + 97 * - - 72 * + + 92, - CAST( NULL AS SIGNED ) AS col2
----
642528
NULL

skipif mysql # not compatible
query II rowsort label-1310
SELECT DISTINCT + 97 * - - 72 * + + 92, - CAST ( NULL AS INTEGER ) AS col2
----
642528
NULL

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

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

query I rowsort
SELECT ( 30 ) * - + 23
----
-690

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

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

skipif mysql # not compatible
query I rowsort label-1314
SELECT ALL - COUNT ( + 40 ) AS col1
----
-1

onlyif mysql # DIV for integer division: 
query II rowsort label-1315
SELECT ALL - 16, + ( + 53 ) - - 32 - - 23 DIV + 45 - - 32 AS col2
----
-16
117

skipif mysql # not compatible
query II rowsort label-1315
SELECT ALL - 16, + ( + 53 ) - - 32 - - 23 / + 45 - - 32 AS col2
----
-16
117

query I rowsort
SELECT ALL 62 * 53 * - 68 AS col2
----
-223448

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1317
SELECT ALL - ( 7 ) DIV + SUM( 7 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-1317
SELECT ALL - ( 7 ) / + SUM ( 7 ) AS col0
----
-1

query II rowsort
SELECT + 40 AS col1, 18 * ( 39 )
----
40
702

onlyif mysql # aggregate syntax: 
query II rowsort label-1319
SELECT ALL - - NULLIF ( - + COUNT( * ), + 7 ) AS col2, 98
----
-1
98

skipif mysql # not compatible
query II rowsort label-1319
SELECT ALL - - NULLIF ( - + COUNT ( * ), + 7 ) AS col2, 98
----
-1
98

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1320
SELECT - 16 DIV + - CAST( 82 AS SIGNED ) + - 39 + - 38
----
-77

skipif mysql # not compatible
query I rowsort label-1320
SELECT - 16 / + - CAST ( 82 AS INTEGER ) + - 39 + - 38
----
-77

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1321
SELECT - 86 DIV + 75 * ( + COUNT( * ) ) - - + 15 + + NULLIF ( - MIN( ALL - 28 ), 97 DIV NULLIF ( + 57, - + AVG ( 53 ) ) - - 4 * + + 45 * - ( 12 ) ) + + 44
----
86

skipif mysql # not compatible
query I rowsort label-1321
SELECT - 86 / + 75 * ( + COUNT ( * ) ) - - + 15 + + NULLIF ( - MIN ( ALL - 28 ), 97 / NULLIF ( + 57, - + AVG ( 53 ) ) - - 4 * + + 45 * - ( 12 ) ) + + 44
----
86

onlyif mysql # aggregate syntax: 
query II rowsort label-1322
SELECT - 14 AS col2, + 23 - - - COALESCE ( + 8, - ( - 25 ), 72 * + COUNT( * ) + - - SUM( - 34 ) ) col1
----
-14
15

skipif mysql # not compatible
query II rowsort label-1322
SELECT - 14 AS col2, + 23 - - - COALESCE ( + 8, - ( - 25 ), 72 * + COUNT ( * ) + - - SUM ( - 34 ) ) col1
----
-14
15

onlyif mysql # DIV for integer division: 
query I rowsort label-1323
SELECT ALL + ( 57 ) DIV - 71
----
0

skipif mysql # not compatible
query I rowsort label-1323
SELECT ALL + ( 57 ) / - 71
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1324
SELECT DISTINCT CAST( NULL AS SIGNED ) + 95 * - CASE COUNT( * ) WHEN - - 43 THEN - 65 ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1324
SELECT DISTINCT CAST ( NULL AS INTEGER ) + 95 * - CASE COUNT ( * ) WHEN - - 43 THEN - 65 ELSE NULL END AS col1
----
NULL

query II rowsort
SELECT + 64, + 58 AS col2
----
64
58

onlyif mysql # aggregate syntax: 
query I rowsort label-1326
SELECT ALL - + COALESCE ( + 95, 63 + - COUNT( * ) * - 5 * + CASE - + 3 WHEN - 61 THEN NULL ELSE + ( - - 21 ) + + 68 END ) AS col1
----
-95

skipif mysql # not compatible
query I rowsort label-1326
SELECT ALL - + COALESCE ( + 95, 63 + - COUNT ( * ) * - 5 * + CASE - + 3 WHEN - 61 THEN NULL ELSE + ( - - 21 ) + + 68 END ) AS col1
----
-95

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1328
SELECT + - 14 * 42 - + - 5 * 13 * + NULLIF ( - + 17, - 30 ) + - ( 44 ) + COUNT( * ) - 20 AS col0
----
-1756

skipif mysql # not compatible
query I rowsort label-1328
SELECT + - 14 * 42 - + - 5 * 13 * + NULLIF ( - + 17, - 30 ) + - ( 44 ) + COUNT ( * ) - 20 AS col0
----
-1756

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: DIV for integer division: 
query I rowsort label-1329
SELECT - COALESCE ( + SUM( - 67 ), - ( - 98 ) * - 71 + + 1 + 82 DIV + COUNT( ALL 55 ), - CAST( + + SUM( + CAST( + 7 AS DECIMAL ) ) AS SIGNED ) ) * - ( + - COUNT( * ) ) AS col1
----
67

skipif mysql # not compatible
query I rowsort label-1329
SELECT - COALESCE ( + SUM ( - 67 ), - ( - 98 ) * - 71 + + 1 + 82 / + COUNT ( ALL 55 ), - CAST ( + + SUM ( + CAST ( + 7 AS REAL ) ) AS INTEGER ) ) * - ( + - COUNT ( * ) ) AS col1
----
67

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

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

query I rowsort
SELECT - COALESCE ( + 62, - + 46, - - 50 * - 40 - + 59 * - 35 )
----
-62

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

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

query I rowsort
SELECT ALL 24 * + - 11
----
-264

onlyif mysql # aggregate syntax: 
query I rowsort label-1334
SELECT COALESCE ( ( + 17 ), + 36 - - 95 ) + CASE - 44 WHEN + 2 THEN NULL WHEN - - COUNT( * ) THEN 61 ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1334
SELECT COALESCE ( ( + 17 ), + 36 - - 95 ) + CASE - 44 WHEN + 2 THEN NULL WHEN - - COUNT ( * ) THEN 61 ELSE NULL END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1335
SELECT ALL 94 - - + COUNT( * ) * - 82 * - + 13 + - + 27 AS col0
----
1133

skipif mysql # not compatible
query I rowsort label-1335
SELECT ALL 94 - - + COUNT ( * ) * - 82 * - + 13 + - + 27 AS col0
----
1133

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1336
SELECT DISTINCT 53 * 61 * - 38 DIV + COUNT( * ), 46 AS col2
----
-122854
46

skipif mysql # not compatible
query II rowsort label-1336
SELECT DISTINCT 53 * 61 * - 38 / + COUNT ( * ), 46 AS col2
----
-122854
46

onlyif mysql # aggregate syntax: 
query I rowsort label-1337
SELECT ALL - ( - COUNT( * ) ) - - NULLIF ( - + 6, + COUNT( * ) + - COUNT( * ) + 61 )
----
-5

skipif mysql # not compatible
query I rowsort label-1337
SELECT ALL - ( - COUNT ( * ) ) - - NULLIF ( - + 6, + COUNT ( * ) + - COUNT ( * ) + 61 )
----
-5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1338
SELECT 21 * - 88 AS col1, - MAX( DISTINCT + + 19 ) * + COALESCE ( + 14, - 44 / + + 20, - 52 / 7 - - + 12 ) * 25 * CAST( NULL AS SIGNED ) AS col1
----
-1848
NULL

skipif mysql # not compatible
query II rowsort label-1338
SELECT 21 * - 88 AS col1, - MAX ( DISTINCT + + 19 ) * + COALESCE ( + 14, - 44 / + + 20, - 52 / 7 - - + 12 ) * 25 * CAST ( NULL AS INTEGER ) AS col1
----
-1848
NULL

query I rowsort
SELECT ALL 88 * - ( + + 44 ) AS col1
----
-3872

onlyif mysql # aggregate syntax: 
query I rowsort label-1340
SELECT 30 + COUNT( * ) AS col0
----
31

skipif mysql # not compatible
query I rowsort label-1340
SELECT 30 + COUNT ( * ) AS col0
----
31

query I rowsort
SELECT 40 + 5 AS col2
----
45

onlyif mysql # DIV for integer division: 
query I rowsort label-1342
SELECT 11 DIV + 69
----
0

skipif mysql # not compatible
query I rowsort label-1342
SELECT 11 / + 69
----
0

query I rowsort
SELECT 49 + 9 col1
----
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1344
SELECT CAST( NULL AS SIGNED ) + 87 * - + 70 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1344
SELECT CAST ( NULL AS INTEGER ) + 87 * - + 70 AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1345
SELECT 30 + + 76 DIV 67
----
31

skipif mysql # not compatible
query I rowsort label-1345
SELECT 30 + + 76 / 67
----
31

query I rowsort
SELECT 36 * 26
----
936

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1347
SELECT DISTINCT COUNT( * ) DIV + 37 * COALESCE ( 99, 51 )
----
0

skipif mysql # not compatible
query I rowsort label-1347
SELECT DISTINCT COUNT ( * ) / + 37 * COALESCE ( 99, 51 )
----
0

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1349
SELECT ALL 20 * + - ( + 42 ) + - 63 * 64 * + 68 + + COUNT( * ) col0
----
-275015

skipif mysql # not compatible
query I rowsort label-1349
SELECT ALL 20 * + - ( + 42 ) + - 63 * 64 * + 68 + + COUNT ( * ) col0
----
-275015

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1350
SELECT ALL 45 * - 96 DIV + COUNT( * ) + + + 8
----
-4312

skipif mysql # not compatible
query I rowsort label-1350
SELECT ALL 45 * - 96 / + COUNT ( * ) + + + 8
----
-4312

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1351
SELECT CAST( - - 80 AS SIGNED ) * + CASE - 35 WHEN - - 27 THEN NULL ELSE + CAST( NULL AS DECIMAL ) * - 22 - - - 22 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1351
SELECT CAST ( - - 80 AS INTEGER ) * + CASE - 35 WHEN - - 27 THEN NULL ELSE + CAST ( NULL AS REAL ) * - 22 - - - 22 END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1352
SELECT 94 + 28 - + + COUNT( * )
----
121

skipif mysql # not compatible
query I rowsort label-1352
SELECT 94 + 28 - + + COUNT ( * )
----
121

query I rowsort
SELECT - 59 + - 66 AS col1
----
-125

query I rowsort
SELECT + + 87 col2
----
87

query I rowsort
SELECT DISTINCT + NULLIF ( + 38, + 80 )
----
38

query I rowsort
SELECT - - 82 * 1 + + 83
----
165

query I rowsort
SELECT + - 43 * + + 97
----
-4171

query I rowsort
SELECT + - 27 + 52 AS col0
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-1359
SELECT DISTINCT NULLIF ( COUNT( * ), + 23 * - + 33 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-1359
SELECT DISTINCT NULLIF ( COUNT ( * ), + 23 * - + 33 ) AS col0
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1360
SELECT - NULLIF ( + CAST( - 16 AS SIGNED ), - 99 ) AS col2
----
16

skipif mysql # not compatible
query I rowsort label-1360
SELECT - NULLIF ( + CAST ( - 16 AS INTEGER ), - 99 ) AS col2
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-1361
SELECT ALL 70 * + - COUNT( * ) * + 0
----
0

skipif mysql # not compatible
query I rowsort label-1361
SELECT ALL 70 * + - COUNT ( * ) * + 0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1362
SELECT - CASE - 62 WHEN + 44 THEN NULL WHEN + 66 THEN NULL ELSE - - 20 * COUNT( * ) END AS col0
----
-20

skipif mysql # not compatible
query I rowsort label-1362
SELECT - CASE - 62 WHEN + 44 THEN NULL WHEN + 66 THEN NULL ELSE - - 20 * COUNT ( * ) END AS col0
----
-20

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1363
SELECT 56 AS col2, CAST( - 15 AS SIGNED ) * - 89 + - - 86
----
56
1421

skipif mysql # not compatible
query II rowsort label-1363
SELECT 56 AS col2, CAST ( - 15 AS INTEGER ) * - 89 + - - 86
----
56
1421

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1365
SELECT ALL 34 * - - COUNT( DISTINCT + + 83 ) AS col1, 77 * COUNT( * )
----
34
77

skipif mysql # not compatible
query II rowsort label-1365
SELECT ALL 34 * - - COUNT ( DISTINCT + + 83 ) AS col1, 77 * COUNT ( * )
----
34
77

query II rowsort
SELECT ALL 73 col2, - ( + 84 )
----
73
-84

query I rowsort
SELECT - CASE - 63 WHEN + - 91 THEN - 20 ELSE NULL END
----
NULL

query I rowsort
SELECT - NULLIF ( + 42, 43 ) + 94
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-1369
SELECT - CASE - 18 WHEN + COUNT( * ) THEN + 20 / 70 / + ( - COUNT( * ) ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-1369
SELECT - CASE - 18 WHEN + COUNT ( * ) THEN + 20 / 70 / + ( - COUNT ( * ) ) END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1370
SELECT + 75 * + - CAST( NULL AS SIGNED ) / + 47 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1370
SELECT + 75 * + - CAST ( NULL AS INTEGER ) / + 47 AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1371
SELECT + 92 DIV - + 78 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-1371
SELECT + 92 / - + 78 AS col0
----
-1

query I rowsort
SELECT ALL 98 * - - 59 * - - 1 * - + 13 * - + 49
----
3683134

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1374
SELECT ALL + 53 + COUNT( * ) + - + ( + + 45 ) col0
----
9

skipif mysql # not compatible
query I rowsort label-1374
SELECT ALL + 53 + COUNT ( * ) + - + ( + + 45 ) col0
----
9

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

skipif mysql # not compatible
query I rowsort label-1375
SELECT + 56 / + - COUNT ( * ) AS col0
----
-56

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1376
SELECT - MIN( ALL 46 ) + + 57 + - CAST( NULL AS SIGNED ) * + - 68 * - 70
----
NULL

skipif mysql # not compatible
query I rowsort label-1376
SELECT - MIN ( ALL 46 ) + + 57 + - CAST ( NULL AS INTEGER ) * + - 68 * - 70
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1377
SELECT ALL 27 + MIN( DISTINCT + - 31 ) * - + 83 AS col2
----
2600

skipif mysql # not compatible
query I rowsort label-1377
SELECT ALL 27 + MIN ( DISTINCT + - 31 ) * - + 83 AS col2
----
2600

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1379
SELECT + 7 DIV 48 + - ( 45 )
----
-45

skipif mysql # not compatible
query I rowsort label-1379
SELECT + 7 / 48 + - ( 45 )
----
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-1380
SELECT ALL + CASE + + COUNT( * ) WHEN + + 29 / - 17 + + 43 THEN COUNT( * ) + + 6 - + 13 ELSE NULL END * + 45 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1380
SELECT ALL + CASE + + COUNT ( * ) WHEN + + 29 / - 17 + + 43 THEN COUNT ( * ) + + 6 - + 13 ELSE NULL END * + 45 AS col2
----
NULL

query I rowsort
SELECT ALL 4 * - 31 * 9 AS col0
----
-1116

onlyif mysql # aggregate syntax: 
query II rowsort label-1382
SELECT + 5 * 15 - COALESCE ( - 28, + 45 ), 90 * + COALESCE ( - 46, + MIN( DISTINCT - 55 ), + + 0 ) * + 41 AS col2
----
103
-169740

skipif mysql # not compatible
query II rowsort label-1382
SELECT + 5 * 15 - COALESCE ( - 28, + 45 ), 90 * + COALESCE ( - 46, + MIN ( DISTINCT - 55 ), + + 0 ) * + 41 AS col2
----
103
-169740

query I rowsort
SELECT - 93 * + 44
----
-4092

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

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

query I rowsort
SELECT ALL - + 43 * + + 20 + 98 - - 70 AS col0
----
-692

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1387
SELECT - 70 DIV 13 AS col2
----
-5

skipif mysql # not compatible
query I rowsort label-1387
SELECT - 70 / 13 AS col2
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-1388
SELECT 65 * - - COUNT( * ) + 74 + - 88 + + COALESCE ( + COUNT( * ), + SUM( + + 61 ) ) * + 91 + - COUNT( * ) * - 28 * + + CASE - COUNT( * ) WHEN CASE - - 82 WHEN - + 54 + + 85 THEN 1 + + 84 * + 11 * - 20 WHEN - 90 THEN NULL END * + - 10 THEN ( + SUM( ( 69 ) ) ) + 36 ELSE NULL END + - ( - 17 ) + + AVG ( DISTINCT + 22 ) * 0
----
NULL

skipif mysql # not compatible
query I rowsort label-1388
SELECT 65 * - - COUNT ( * ) + 74 + - 88 + + COALESCE ( + COUNT ( * ), + SUM ( + + 61 ) ) * + 91 + - COUNT ( * ) * - 28 * + + CASE - COUNT ( * ) WHEN CASE - - 82 WHEN - + 54 + + 85 THEN 1 + + 84 * + 11 * - 20 WHEN - 90 THEN NULL END * + - 10 THEN ( + SUM ( ( 69 ) ) ) + 36 ELSE NULL END + - ( - 17 ) + + AVG ( DISTINCT + 22 ) * 0
----
NULL

query I rowsort
SELECT - NULLIF ( + 94, - 27 * + 42 - + 56 )
----
-94

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

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

query I rowsort
SELECT - 23 + + 86
----
63

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1393
SELECT - SUM( - ( - 78 ) ) + 3 - 19
----
-94

skipif mysql # not compatible
query I rowsort label-1393
SELECT - SUM ( - ( - 78 ) ) + 3 - 19
----
-94

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

skipif mysql # not compatible
query I rowsort label-1394
SELECT ALL 87 / - + COUNT ( * ) AS col0
----
-87

query II rowsort
SELECT + 69 + 36 * - + 30 * - 15 AS col2, 55
----
16269
55

query I rowsort
SELECT ALL 80 + - + 58
----
22

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

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

query II rowsort
SELECT ALL 85, ( - 2 ) AS col2
----
85
-2

query II rowsort
SELECT 41 AS col1, - 91 * + 1 col1
----
41
-91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1400
SELECT + COUNT( * ) + + ( - + 73 ) + - 67 - + 2 * + NULLIF ( - + CAST( - - CAST( NULL AS DECIMAL ) AS SIGNED ), + 98 ) + - 35 * ( MIN( + 6 ) ) * + 53 + - 92 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1400
SELECT + COUNT ( * ) + + ( - + 73 ) + - 67 - + 2 * + NULLIF ( - + CAST ( - - CAST ( NULL AS REAL ) AS INTEGER ), + 98 ) + - 35 * ( MIN ( + 6 ) ) * + 53 + - 92 AS col1
----
NULL

query I rowsort
SELECT - NULLIF ( + + 15, + 71 * + 88 + + 14 + - 43 - + 9 * - 9 ) col0
----
-15

query II rowsort
SELECT 84, - 15 AS col1
----
84
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-1403
SELECT ALL 44 + - MAX( DISTINCT + 28 )
----
16

skipif mysql # not compatible
query I rowsort label-1403
SELECT ALL 44 + - MAX ( DISTINCT + 28 )
----
16

query I rowsort
SELECT DISTINCT + 14 + + - 11 AS col2
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-1405
SELECT + 96 + + 20 + - 53 * 0 * + MIN( - 53 ) AS col1
----
116

skipif mysql # not compatible
query I rowsort label-1405
SELECT + 96 + + 20 + - 53 * 0 * + MIN ( - 53 ) AS col1
----
116

query I rowsort
SELECT - 66 - ( 64 ) col2
----
-130

query III rowsort
SELECT DISTINCT + 60 AS col2, + 20, + NULLIF ( - + 53, AVG ( ALL + - 67 ) + - + 32 ) + - 65 + - - 36 AS col1
----
60
20
-82

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1408
SELECT - + CASE + 83 WHEN ( + + CAST( + + COALESCE ( 77, + 40 ) AS SIGNED ) ) + + MAX( 25 ) + + 81 - + + COALESCE ( - 75, 6 ) + - 55 * - 98 / - - 19 THEN - 55 + - - NULLIF ( 3, + COUNT( * ) / - + 59 + - - COUNT( * ) ) * - 26 + 53 ELSE + - 57 END
----
57

skipif mysql # not compatible
query I rowsort label-1408
SELECT - + CASE + 83 WHEN ( + + CAST ( + + COALESCE ( 77, + 40 ) AS INTEGER ) ) + + MAX ( 25 ) + + 81 - + + COALESCE ( - 75, 6 ) + - 55 * - 98 / - - 19 THEN - 55 + - - NULLIF ( 3, + COUNT ( * ) / - + 59 + - - COUNT ( * ) ) * - 26 + 53 ELSE + - 57 END
----
57

query I rowsort
SELECT DISTINCT 93 + + + 71
----
164

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1412
SELECT - SUM( DISTINCT COALESCE ( 43, + + 96 * 90 * - - 40 + - 13 ) ) * + CASE 45 WHEN + 80 + - 91 THEN - 30 * + - ( - + 17 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-1412
SELECT - SUM ( DISTINCT COALESCE ( 43, + + 96 * 90 * - - 40 + - 13 ) ) * + CASE 45 WHEN + 80 + - 91 THEN - 30 * + - ( - + 17 ) END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1413
SELECT ALL ( - + 46 ) DIV + 19
----
-2

skipif mysql # not compatible
query I rowsort label-1413
SELECT ALL ( - + 46 ) / + 19
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-1414
SELECT + 77 * + + CASE + - COUNT( * ) WHEN + COUNT( * ) THEN NULL WHEN + COUNT( * ) * + + 42 - COUNT( * ) THEN + 4 * - 75 * - + 81 + + + 65 / 52 + 24 + - + 38 ELSE NULL END + + - 7
----
NULL

skipif mysql # not compatible
query I rowsort label-1414
SELECT + 77 * + + CASE + - COUNT ( * ) WHEN + COUNT ( * ) THEN NULL WHEN + COUNT ( * ) * + + 42 - COUNT ( * ) THEN + 4 * - 75 * - + 81 + + + 65 / 52 + 24 + - + 38 ELSE NULL END + + - 7
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1415
SELECT DISTINCT - + CASE - - 65 WHEN 87 * - - 17 * 46 - + MAX( + ( + 29 ) ) THEN - 81 * + 33 WHEN + 38 THEN + - 9 ELSE NULL END - - + 82 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1415
SELECT DISTINCT - + CASE - - 65 WHEN 87 * - - 17 * 46 - + MAX ( + ( + 29 ) ) THEN - 81 * + 33 WHEN + 38 THEN + - 9 ELSE NULL END - - + 82 AS col1
----
NULL

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

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

query I rowsort
SELECT ALL - 47 * 17 * + 35
----
-27965

query I rowsort
SELECT DISTINCT - + 73 * - + 87
----
6351

query II rowsort
SELECT ALL - + 1 AS col2, + ( 80 ) * + COALESCE ( - 55, - 49 ) AS col1
----
-1
-4400

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1420
SELECT ALL - 93, 14 DIV + - MAX( ALL + 76 ) AS col0
----
-93
0

skipif mysql # not compatible
query II rowsort label-1420
SELECT ALL - 93, 14 / + - MAX ( ALL + 76 ) AS col0
----
-93
0

query I rowsort
SELECT NULLIF ( - 5, 73 * - 21 ) * - + 19 * + - 96 AS col1
----
-9120

onlyif mysql # aggregate syntax: 
query II rowsort label-1422
SELECT 46 * + + 43, - COUNT( * ) + 37 AS col1
----
1978
36

skipif mysql # not compatible
query II rowsort label-1422
SELECT 46 * + + 43, - COUNT ( * ) + 37 AS col1
----
1978
36

query I rowsort
SELECT 59 * + 61
----
3599

onlyif mysql # aggregate syntax: 
query I rowsort label-1424
SELECT ALL - NULLIF ( SUM( ALL + 94 ), + 77 * + 36 + NULLIF ( + 95, - 69 ) + + 84 ) AS col2
----
-94

skipif mysql # not compatible
query I rowsort label-1424
SELECT ALL - NULLIF ( SUM ( ALL + 94 ), + 77 * + 36 + NULLIF ( + 95, - 69 ) + + 84 ) AS col2
----
-94

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1425
SELECT 36 DIV + ( + 44 ) col1, - COUNT( * ) AS col0
----
0
-1

skipif mysql # not compatible
query II rowsort label-1425
SELECT 36 / + ( + 44 ) col1, - COUNT ( * ) AS col0
----
0
-1

query I rowsort
SELECT DISTINCT + 7 * + 24
----
168

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1427
SELECT ALL + COALESCE ( - - 83, 21 * - + CASE 93 WHEN CAST( NULL AS SIGNED ) THEN 28 WHEN - + 84 * - AVG ( ALL - - 21 ) * + 32 * - 68 THEN + 50 WHEN + 94 THEN - 34 END + + NULLIF ( - 44, + 75 ), - + 97 / + 64 * + 26 + 20 + + 23 / - + 58, + 21 + + 36 + + 38 ) + 34 * + 74 + - COUNT( * ) * + 59 * + 86 + - CASE - COUNT( * ) WHEN MIN( - 80 ) THEN 83 WHEN - + 77 THEN NULL END + - 78 + + + 62 * COUNT( * ) * 78
----
NULL

skipif mysql # not compatible
query I rowsort label-1427
SELECT ALL + COALESCE ( - - 83, 21 * - + CASE 93 WHEN CAST ( NULL AS INTEGER ) THEN 28 WHEN - + 84 * - AVG ( ALL - - 21 ) * + 32 * - 68 THEN + 50 WHEN + 94 THEN - 34 END + + NULLIF ( - 44, + 75 ), - + 97 / + 64 * + 26 + 20 + + 23 / - + 58, + 21 + + 36 + + 38 ) + 34 * + 74 + - COUNT ( * ) * + 59 * + 86 + - CASE - COUNT ( * ) WHEN MIN ( - 80 ) THEN 83 WHEN - + 77 THEN NULL END + - 78 + + + 62 * COUNT ( * ) * 78
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1428
SELECT DISTINCT - 80 + + CAST( 7 AS SIGNED ) AS col2
----
-73

skipif mysql # not compatible
query I rowsort label-1428
SELECT DISTINCT - 80 + + CAST ( 7 AS INTEGER ) AS col2
----
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-1429
SELECT ALL 81 * - COUNT( * )
----
-81

skipif mysql # not compatible
query I rowsort label-1429
SELECT ALL 81 * - COUNT ( * )
----
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-1430
SELECT ALL 39 + - COUNT( * )
----
38

skipif mysql # not compatible
query I rowsort label-1430
SELECT ALL 39 + - COUNT ( * )
----
38

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1431
SELECT DISTINCT 98 + NULLIF ( 35, + 76 * + - 45 ) * + COUNT( * ) * - 98 * - + 36, - 66 + - + COUNT( * ) + CAST( NULL AS SIGNED ) * ( 27 ) * - 2 AS col2
----
123578
NULL

skipif mysql # not compatible
query II rowsort label-1431
SELECT DISTINCT 98 + NULLIF ( 35, + 76 * + - 45 ) * + COUNT ( * ) * - 98 * - + 36, - 66 + - + COUNT ( * ) + CAST ( NULL AS INTEGER ) * ( 27 ) * - 2 AS col2
----
123578
NULL

query II rowsort
SELECT DISTINCT + 8 * - 55 AS col2, - 87
----
-440
-87

onlyif mysql # DIV for integer division: 
query II rowsort label-1433
SELECT 39 DIV 92, - 6 * 64 AS col0
----
0
-384

skipif mysql # not compatible
query II rowsort label-1433
SELECT 39 / 92, - 6 * 64 AS col0
----
0
-384

query I rowsort
SELECT 45 * 36 * + 57 AS col2
----
92340

query I rowsort
SELECT ALL - 35 + + - 18
----
-53

query I rowsort
SELECT 61 + - 28 + + 58
----
91

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1437
SELECT COUNT( - 24 ) DIV - + 60 * ( + - 59 ) + ( 51 ) AS col0
----
51

skipif mysql # not compatible
query I rowsort label-1437
SELECT COUNT ( - 24 ) / - + 60 * ( + - 59 ) + ( 51 ) AS col0
----
51

query I rowsort
SELECT DISTINCT - 45 * 11 * - 21
----
10395

query I rowsort
SELECT ALL + 90 * + - 61 AS col1
----
-5490

query I rowsort
SELECT + NULLIF ( - - 23, - 46 )
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-1441
SELECT ALL CASE 28 WHEN - 77 THEN 43 WHEN - 51 + - MAX( + 33 ) THEN NULLIF ( - COUNT( * ), 86 + COUNT( * ) + 3 / - 40 + 75 ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1441
SELECT ALL CASE 28 WHEN - 77 THEN 43 WHEN - 51 + - MAX ( + 33 ) THEN NULLIF ( - COUNT ( * ), 86 + COUNT ( * ) + 3 / - 40 + 75 ) END AS col1
----
NULL

query I rowsort
SELECT DISTINCT + - 9 - 41 AS col2
----
-50

query I rowsort
SELECT - 26 + ( + - 28 ) col2
----
-54

query I rowsort
SELECT 18 + 17 * - - 64 AS col2
----
1106

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1445
SELECT + 75 + + CAST( - 11 AS SIGNED ) AS col2
----
64

skipif mysql # not compatible
query I rowsort label-1445
SELECT + 75 + + CAST ( - 11 AS INTEGER ) AS col2
----
64

query I rowsort
SELECT DISTINCT - 9 * 42 - - 56
----
-322

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

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

query I rowsort
SELECT DISTINCT 11 * - 77 * + - 79
----
66913

query I rowsort
SELECT DISTINCT - ( COALESCE ( - - 72, 88 ) )
----
-72

query I rowsort
SELECT 20 * - + 73 + - + 59 AS col2
----
-1519

query I rowsort
SELECT - 69 * 10 AS col0
----
-690

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1452
SELECT - - CASE COUNT( * ) WHEN - - 24 THEN NULL ELSE CASE 74 WHEN - - 41 THEN NULL WHEN + 52 + + - 13 THEN + - COUNT( * ) WHEN - 96 * - 34 THEN + 52 - - + 53 * + + COUNT( * ) ELSE NULL END * + CASE + COUNT( * ) WHEN + 17 THEN - 59 + + + 55 WHEN CASE - 73 WHEN + + 6 * + 98 THEN + COALESCE ( - - 33, - SUM( ALL 23 ) + 54, 88 ) * 82 + - + 63 WHEN - CASE 18 WHEN - - COUNT( * ) THEN - + 97 - - - 60 - 26 WHEN + 61 THEN - 29 ELSE - + 25 + + - COUNT( * ) * CAST( NULL AS DECIMAL ) + - ( - MIN( + 96 ) ) END THEN ( 73 ) / + NULLIF ( - 98 * - COUNT( * ) + 60, + 86 / - 1 + 85 * - 34 ) WHEN + 82 THEN - 62 WHEN COUNT( * ) THEN NULL ELSE - 61 END + + ( + 40 ) THEN 99 ELSE NULL END END * + 40 - - 50 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1452
SELECT - - CASE COUNT ( * ) WHEN - - 24 THEN NULL ELSE CASE 74 WHEN - - 41 THEN NULL WHEN + 52 + + - 13 THEN + - COUNT ( * ) WHEN - 96 * - 34 THEN + 52 - - + 53 * + + COUNT ( * ) ELSE NULL END * + CASE + COUNT ( * ) WHEN + 17 THEN - 59 + + + 55 WHEN CASE - 73 WHEN + + 6 * + 98 THEN + COALESCE ( - - 33, - SUM ( ALL 23 ) + 54, 88 ) * 82 + - + 63 WHEN - CASE 18 WHEN - - COUNT ( * ) THEN - + 97 - - - 60 - 26 WHEN + 61 THEN - 29 ELSE - + 25 + + - COUNT ( * ) * CAST ( NULL AS REAL ) + - ( - MIN ( + 96 ) ) END THEN ( 73 ) / + NULLIF ( - 98 * - COUNT ( * ) + 60, + 86 / - 1 + 85 * - 34 ) WHEN + 82 THEN - 62 WHEN COUNT ( * ) THEN NULL ELSE - 61 END + + ( + 40 ) THEN 99 ELSE NULL END END * + 40 - - 50 col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1453
SELECT COUNT( * ) - - + CASE + CAST( + + 10 AS SIGNED ) WHEN - 71 / 36 * + 38 THEN 59 END AS col0, - 79 * + 49
----
NULL
-3871

skipif mysql # not compatible
query II rowsort label-1453
SELECT COUNT ( * ) - - + CASE + CAST ( + + 10 AS INTEGER ) WHEN - 71 / 36 * + 38 THEN 59 END AS col0, - 79 * + 49
----
NULL
-3871

query I rowsort
SELECT 30 * + ( + + 11 )
----
330

query I rowsort
SELECT 65 * - 4 * - 71
----
18460

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

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

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

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

query II rowsort
SELECT DISTINCT + 21 + 60 + 86, 51 AS col0
----
167
51

query I rowsort
SELECT ALL - 66 + 50
----
-16

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1460
SELECT COUNT( * ) * 51 * + 33 - + + CAST( 88 AS SIGNED )
----
1595

skipif mysql # not compatible
query I rowsort label-1460
SELECT COUNT ( * ) * 51 * + 33 - + + CAST ( 88 AS INTEGER )
----
1595

query I rowsort
SELECT ALL 75 * - - 65 AS col2
----
4875

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1463
SELECT 39 * 12 + 33 + CAST( 13 AS SIGNED ) * - - CAST( + COUNT( * ) AS SIGNED ) * - - MIN( ALL + 46 ) * + 31 col2
----
19039

skipif mysql # not compatible
query I rowsort label-1463
SELECT 39 * 12 + 33 + CAST ( 13 AS INTEGER ) * - - CAST ( + COUNT ( * ) AS INTEGER ) * - - MIN ( ALL + 46 ) * + 31 col2
----
19039

query II rowsort
SELECT + 26 AS col0, 91
----
26
91

query I rowsort
SELECT 30 * - - 57 + + 78
----
1788

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

skipif mysql # not compatible
query I rowsort label-1466
SELECT ALL + 3 + 75 + COUNT ( * ) AS col1
----
79

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

skipif mysql # not compatible
query I rowsort label-1467
SELECT 90 * COUNT ( * )
----
90

query I rowsort
SELECT 64 + - - 62 AS col0
----
126

query I rowsort
SELECT ALL - 6 - + ( 91 ) + + 66 * - + 20
----
-1417

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

query I rowsort
SELECT - 14 + + 17 col2
----
3

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

skipif mysql # not compatible
query I rowsort label-1472
SELECT ALL - CAST ( NULL AS INTEGER ) * 57 col0
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1474
SELECT - - COALESCE ( + - ( - 5 ), - 86 ) + - 13 - - 7 * - COALESCE ( - 93, + + 24 ) + + - MIN( ALL - + 29 )
----
672

skipif mysql # not compatible
query I rowsort label-1474
SELECT - - COALESCE ( + - ( - 5 ), - 86 ) + - 13 - - 7 * - COALESCE ( - 93, + + 24 ) + + - MIN ( ALL - + 29 )
----
672

query I rowsort
SELECT - + 49 * 1 AS col2
----
-49

query I rowsort
SELECT ALL + 69 * + 60 AS col0
----
4140

query I rowsort
SELECT ALL - 10 * + - 2 AS col0
----
20

onlyif mysql # DIV for integer division: 
query II rowsort label-1478
SELECT - 17 DIV - + 71 * + 55, 97 - - - 78 AS col1
----
0
19

skipif mysql # not compatible
query II rowsort label-1478
SELECT - 17 / - + 71 * + 55, 97 - - - 78 AS col1
----
0
19

onlyif mysql # aggregate syntax: 
query I rowsort label-1479
SELECT - COUNT( * ) - - - COUNT( DISTINCT + 89 ) + + 43 AS col2
----
41

skipif mysql # not compatible
query I rowsort label-1479
SELECT - COUNT ( * ) - - - COUNT ( DISTINCT + 89 ) + + 43 AS col2
----
41

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1480
SELECT - - 64 DIV - COUNT( * ) + 90 + COUNT( * ) AS col2
----
27

skipif mysql # not compatible
query I rowsort label-1480
SELECT - - 64 / - COUNT ( * ) + 90 + COUNT ( * ) AS col2
----
27

query I rowsort
SELECT DISTINCT + + COALESCE ( + + 62, 88 ) AS col0
----
62

query I rowsort
SELECT + + 42 - - 32 AS col0
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-1483
SELECT DISTINCT NULLIF ( - + 14, - 67 + + 41 * + 7 ) * COALESCE ( 56, - 93 ) + - COUNT( * ) - + - ( - + 45 ) * - 50
----
1465

skipif mysql # not compatible
query I rowsort label-1483
SELECT DISTINCT NULLIF ( - + 14, - 67 + + 41 * + 7 ) * COALESCE ( 56, - 93 ) + - COUNT ( * ) - + - ( - + 45 ) * - 50
----
1465

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1484
SELECT 34 DIV - MIN( ALL + 75 ) + + + 23 + COUNT( DISTINCT - - 95 ) * 59 + + SUM( ALL + 15 ) AS col0
----
97

skipif mysql # not compatible
query I rowsort label-1484
SELECT 34 / - MIN ( ALL + 75 ) + + + 23 + COUNT ( DISTINCT - - 95 ) * 59 + + SUM ( ALL + 15 ) AS col0
----
97

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1485
SELECT + 76 + ( - + MIN( + 46 ) ) + + + 56 DIV - + 32 AS col0
----
29

skipif mysql # not compatible
query I rowsort label-1485
SELECT + 76 + ( - + MIN ( + 46 ) ) + + + 56 / - + 32 AS col0
----
29

query I rowsort
SELECT ALL + 70 * - 31 + + + 57 AS col2
----
-2113

onlyif mysql # aggregate syntax: 
query I rowsort label-1487
SELECT DISTINCT - ( 81 ) * 97 - 50 - 65 + - COUNT( * )
----
-7973

skipif mysql # not compatible
query I rowsort label-1487
SELECT DISTINCT - ( 81 ) * 97 - 50 - 65 + - COUNT ( * )
----
-7973

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1488
SELECT ALL 29 * + CAST( 26 AS SIGNED ) + - NULLIF ( - 15, - 50 ) + + 40 + + 24 * 92 DIV + COUNT( * )
----
3017

skipif mysql # not compatible
query I rowsort label-1488
SELECT ALL 29 * + CAST ( 26 AS INTEGER ) + - NULLIF ( - 15, - 50 ) + + 40 + + 24 * 92 / + COUNT ( * )
----
3017

onlyif mysql # DIV for integer division: 
query II rowsort label-1489
SELECT + ( - 27 ) * ( 49 ) + + + 50 DIV - - 87 * - 4 AS col0, - 0
----
-1323
0

skipif mysql # not compatible
query II rowsort label-1489
SELECT + ( - 27 ) * ( 49 ) + + + 50 / - - 87 * - 4 AS col0, - 0
----
-1323
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1490
SELECT ALL 34 * AVG ( ALL - CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-1490
SELECT ALL 34 * AVG ( ALL - CAST ( NULL AS INTEGER ) )
----
NULL

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

skipif mysql # not compatible
query I rowsort label-1491
SELECT COUNT ( * ) * - COUNT ( * ) + + + 27 col1
----
26

query I rowsort
SELECT - 57 * + 89 AS col1
----
-5073

onlyif mysql # aggregate syntax: 
query I rowsort label-1493
SELECT CASE + 24 WHEN + 13 * + 93 - + 11 / 53 * 63 THEN 29 WHEN - - ( - 92 ) * + 16 THEN 26 + COUNT( * ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1493
SELECT CASE + 24 WHEN + 13 * + 93 - + 11 / 53 * 63 THEN 29 WHEN - - ( - 92 ) * + 16 THEN 26 + COUNT ( * ) ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1494
SELECT + COALESCE ( - - ( - + MAX( - ( + 65 ) ) ), - 24, + MIN( + + 29 ) ) + - + MIN( + 39 ) + 65
----
91

skipif mysql # not compatible
query I rowsort label-1494
SELECT + COALESCE ( - - ( - + MAX ( - ( + 65 ) ) ), - 24, + MIN ( + + 29 ) ) + - + MIN ( + 39 ) + 65
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-1495
SELECT ALL 67 * + 73 * - COUNT( * ) + + + 83
----
-4808

skipif mysql # not compatible
query I rowsort label-1495
SELECT ALL 67 * + 73 * - COUNT ( * ) + + + 83
----
-4808

query I rowsort
SELECT CASE + ( - 49 ) WHEN - 14 THEN + + NULLIF ( + 25, + 25 ) ELSE - + COALESCE ( + 71, - + 45 * + - 16 * - + 90 * - 71 - - 57, + 38 ) * 39 END
----
-2769

query I rowsort
SELECT + 98 + + - 54 - 32 + - 46 + + 13 * - ( 76 )
----
-1022

onlyif mysql # DIV for integer division: 
query I rowsort label-1498
SELECT + 10 DIV + 97
----
0

skipif mysql # not compatible
query I rowsort label-1498
SELECT + 10 / + 97
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1499
SELECT MAX( DISTINCT 77 ) AS col0
----
77

skipif mysql # not compatible
query I rowsort label-1499
SELECT MAX ( DISTINCT 77 ) AS col0
----
77

onlyif mysql # DIV for integer division: 
query I rowsort label-1500
SELECT ALL 68 DIV - - 41
----
1

skipif mysql # not compatible
query I rowsort label-1500
SELECT ALL 68 / - - 41
----
1

query I rowsort
SELECT ALL + 72 * + 57 AS col2
----
4104

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1502
SELECT + CAST( + 93 AS SIGNED ) * + NULLIF ( 58, - 21 / 74 ) + + 96 + - 99 * COUNT( * ) col2, + COUNT( * ) AS col0
----
5391
1

skipif mysql # not compatible
query II rowsort label-1502
SELECT + CAST ( + 93 AS INTEGER ) * + NULLIF ( 58, - 21 / 74 ) + + 96 + - 99 * COUNT ( * ) col2, + COUNT ( * ) AS col0
----
5391
1

query I rowsort
SELECT DISTINCT 20 * 12 * + 28
----
6720

onlyif mysql # aggregate syntax: 
query I rowsort label-1504
SELECT - SUM( DISTINCT + 53 ) col0
----
-53

skipif mysql # not compatible
query I rowsort label-1504
SELECT - SUM ( DISTINCT + 53 ) col0
----
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-1505
SELECT + - 69 * + 70 * - COUNT( * ) * 88 + + NULLIF ( - + ( + 79 ), - COUNT( * ) )
----
424961

skipif mysql # not compatible
query I rowsort label-1505
SELECT + - 69 * + 70 * - COUNT ( * ) * 88 + + NULLIF ( - + ( + 79 ), - COUNT ( * ) )
----
424961

query I rowsort
SELECT - - 64 * - 72 * + + 16 col1
----
-73728

onlyif mysql # DIV for integer division: 
query I rowsort label-1507
SELECT - 88 * 99 DIV + 92 - - 94 + + 96 + 56
----
152

skipif mysql # not compatible
query I rowsort label-1507
SELECT - 88 * 99 / + 92 - - 94 + + 96 + 56
----
152

query I rowsort
SELECT DISTINCT NULLIF ( - 19, - 37 ) AS col2
----
-19

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1509
SELECT ALL - AVG ( + CAST( NULL AS SIGNED ) ) * COUNT( DISTINCT + - 5 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1509
SELECT ALL - AVG ( + CAST ( NULL AS INTEGER ) ) * COUNT ( DISTINCT + - 5 )
----
NULL

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1511
SELECT DISTINCT + + CAST( NULL AS DECIMAL ) + 80
----
NULL

skipif mysql # not compatible
query I rowsort label-1511
SELECT DISTINCT + + CAST ( NULL AS REAL ) + 80
----
NULL

query I rowsort
SELECT ALL + - 87 + 46 AS col2
----
-41

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

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

query I rowsort
SELECT - 90 * + + 89 AS col2
----
-8010

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1515
SELECT ALL - + 96 DIV + - NULLIF ( + 72, - 15 + COALESCE ( + ( - 57 ), + 61 + + 10 + 61 ) + + 60 ) + 76, - COUNT( * ) DIV + COUNT( * ) AS col2
----
77
-1

skipif mysql # not compatible
query II rowsort label-1515
SELECT ALL - + 96 / + - NULLIF ( + 72, - 15 + COALESCE ( + ( - 57 ), + 61 + + 10 + 61 ) + + 60 ) + 76, - COUNT ( * ) / + COUNT ( * ) AS col2
----
77
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-1516
SELECT ALL - - COUNT( * ) * - + 31 - + 33
----
-64

skipif mysql # not compatible
query I rowsort label-1516
SELECT ALL - - COUNT ( * ) * - + 31 - + 33
----
-64

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1517
SELECT DISTINCT 82 DIV - COUNT( * ) * COUNT( * ) + - - NULLIF ( COUNT( * ), 89 * 8 + + + COUNT( * ) + - 13 * 21 + - - 72 )
----
-81

skipif mysql # not compatible
query I rowsort label-1517
SELECT DISTINCT 82 / - COUNT ( * ) * COUNT ( * ) + - - NULLIF ( COUNT ( * ), 89 * 8 + + + COUNT ( * ) + - 13 * 21 + - - 72 )
----
-81

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1519
SELECT - COUNT( * ) DIV - ( COUNT( * ) ), - 56 AS col1
----
1
-56

skipif mysql # not compatible
query II rowsort label-1519
SELECT - COUNT ( * ) / - ( COUNT ( * ) ), - 56 AS col1
----
1
-56

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1520
SELECT CAST( NULL AS SIGNED ), + MIN( - 30 ) * AVG ( + - 89 ) * 14 * + 19 + 22 - - - 84 + + MIN( 7 ) - - CAST( NULL AS SIGNED ) * - - ( + - 36 ) * 43 + 43
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-1520
SELECT CAST ( NULL AS INTEGER ), + MIN ( - 30 ) * AVG ( + - 89 ) * 14 * + 19 + 22 - - - 84 + + MIN ( 7 ) - - CAST ( NULL AS INTEGER ) * - - ( + - 36 ) * 43 + 43
----
NULL
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-1521
SELECT ALL 94 DIV 16 - 50 AS col0, 28
----
-45
28

skipif mysql # not compatible
query II rowsort label-1521
SELECT ALL 94 / 16 - 50 AS col0, 28
----
-45
28

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

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

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

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

query I rowsort
SELECT ALL 81 * - 11 AS col1
----
-891

query I rowsort
SELECT ALL - 4 - 68 AS col0
----
-72

query I rowsort
SELECT 71 * 72
----
5112

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

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

query I rowsort
SELECT 83 * + 61 col1
----
5063

onlyif mysql # aggregate syntax: 
query I rowsort label-1530
SELECT 90 - + + MAX( - 43 ) - 14
----
119

skipif mysql # not compatible
query I rowsort label-1530
SELECT 90 - + + MAX ( - 43 ) - 14
----
119

onlyif mysql # aggregate syntax: 
query I rowsort label-1531
SELECT ( ( - SUM( ALL + 88 ) ) ) - - 79 + - 99 AS col0
----
-108

skipif mysql # not compatible
query I rowsort label-1531
SELECT ( ( - SUM ( ALL + 88 ) ) ) - - 79 + - 99 AS col0
----
-108

query I rowsort
SELECT 73 + - 18 AS col2
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-1533
SELECT + COUNT( * ) * 65 + + SUM( ALL - 7 ) AS col2
----
58

skipif mysql # not compatible
query I rowsort label-1533
SELECT + COUNT ( * ) * 65 + + SUM ( ALL - 7 ) AS col2
----
58

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1534
SELECT - 6 DIV - - 98 * 85 - + MIN( 89 ) + + 27 + 68 * 37 AS col0
----
2454

skipif mysql # not compatible
query I rowsort label-1534
SELECT - 6 / - - 98 * 85 - + MIN ( 89 ) + + 27 + 68 * 37 AS col0
----
2454

query I rowsort
SELECT 24 + - + 23 AS col2
----
1

query II rowsort
SELECT - 40 AS col1, - 62 AS col1
----
-40
-62

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1537
SELECT - CASE + - 72 WHEN + ( - 58 ) THEN + 6 + + CAST( NULL AS DECIMAL ) END + - 78 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1537
SELECT - CASE + - 72 WHEN + ( - 58 ) THEN + 6 + + CAST ( NULL AS REAL ) END + - 78 AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1538
SELECT + 72 DIV + 45
----
1

skipif mysql # not compatible
query I rowsort label-1538
SELECT + 72 / + 45
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1539
SELECT DISTINCT CASE - 42 WHEN 21 - - - 54 THEN - 57 + ( + CAST( + COUNT( * ) AS SIGNED ) ) + - + 96 END / - CASE + 57 WHEN + + 77 THEN NULL WHEN + COUNT( * ) - - COALESCE ( 10, - CAST( - - 55 AS DECIMAL ) * - 8 + + COUNT( * ) ) THEN + + 71 / 92 ELSE + + 16 + COUNT( * ) + + 96 END
----
NULL

skipif mysql # not compatible
query I rowsort label-1539
SELECT DISTINCT CASE - 42 WHEN 21 - - - 54 THEN - 57 + ( + CAST ( + COUNT ( * ) AS INTEGER ) ) + - + 96 END / - CASE + 57 WHEN + + 77 THEN NULL WHEN + COUNT ( * ) - - COALESCE ( 10, - CAST ( - - 55 AS REAL ) * - 8 + + COUNT ( * ) ) THEN + + 71 / 92 ELSE + + 16 + COUNT ( * ) + + 96 END
----
NULL

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

skipif mysql # not compatible
query I rowsort label-1540
SELECT ALL + MAX ( DISTINCT - 27 ) AS col0
----
-27

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1541
SELECT 24 / - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1541
SELECT 24 / - CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1542
SELECT DISTINCT SUM( - 94 ) + - CAST( NULL AS SIGNED ) + - - 5 * + ( CAST( NULL AS SIGNED ) ) * COUNT( * ) - 85 * + COUNT( * ) * + + 94 - ( 7 ) + + 62 * - COUNT( * ) * - - COALESCE ( + 40, - COUNT( - 31 ) * + 77 * - 50 + - + 13 * - - CAST( + - 9 AS SIGNED ) / 88 + - NULLIF ( + 79, + NULLIF ( + SUM( ALL + CAST( NULL AS SIGNED ) ), + NULLIF ( 11, + 33 ) * 48 - - 54 + + COUNT( * ) * 52 - + 20 * 41 * - - 29 + - COALESCE ( - 86, - - 61, 13 * + 50 ) + - - 17 * - NULLIF ( - 92, 0 ) * ( 26 + + 92 ) ) ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-1542
SELECT DISTINCT SUM ( - 94 ) + - CAST ( NULL AS INTEGER ) + - - 5 * + ( CAST ( NULL AS INTEGER ) ) * COUNT ( * ) - 85 * + COUNT ( * ) * + + 94 - ( 7 ) + + 62 * - COUNT ( * ) * - - COALESCE ( + 40, - COUNT ( - 31 ) * + 77 * - 50 + - + 13 * - - CAST ( + - 9 AS INTEGER ) / 88 + - NULLIF ( + 79, + NULLIF ( + SUM ( ALL + CAST ( NULL AS INTEGER ) ), + NULLIF ( 11, + 33 ) * 48 - - 54 + + COUNT ( * ) * 52 - + 20 * 41 * - - 29 + - COALESCE ( - 86, - - 61, 13 * + 50 ) + - - 17 * - NULLIF ( - 92, 0 ) * ( 26 + + 92 ) ) ) )
----
NULL

query II rowsort
SELECT - ( - 98 ) * + - 14 AS col2, 76
----
-1372
76

onlyif mysql # aggregate syntax: 
query I rowsort label-1544
SELECT ALL - 28 + + 56 * + 22 * 95 - COUNT( * ) * + 75 + - COUNT( * )
----
116936

skipif mysql # not compatible
query I rowsort label-1544
SELECT ALL - 28 + + 56 * + 22 * 95 - COUNT ( * ) * + 75 + - COUNT ( * )
----
116936

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1545
SELECT COUNT( * ) + - ( - - CAST( 55 AS SIGNED ) )
----
-54

skipif mysql # not compatible
query I rowsort label-1545
SELECT COUNT ( * ) + - ( - - CAST ( 55 AS INTEGER ) )
----
-54

query I rowsort
SELECT - 88 * 51
----
-4488

query I rowsort
SELECT ALL - COALESCE ( + + 52, + + 17 ) + + + 47 AS col2
----
-5

query I rowsort
SELECT ALL 62 + + - 67 * - 36 * - 44 AS col1
----
-106066

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1549
SELECT - - 42, AVG ( 50 ) * + CAST( NULL AS SIGNED ) AS col0
----
42
NULL

skipif mysql # not compatible
query II rowsort label-1549
SELECT - - 42, AVG ( 50 ) * + CAST ( NULL AS INTEGER ) AS col0
----
42
NULL

query I rowsort
SELECT 55 - + 6 AS col2
----
49

query II rowsort
SELECT 12 AS col2, 46
----
12
46

query I rowsort
SELECT ALL - 35 - - 69 + + - 90
----
-56

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1553
SELECT - 34 * + + 25 + + CAST( COALESCE ( + - COUNT( + 79 ), - 42, - 95 ) AS SIGNED ) + - - 38 AS col0
----
-813

skipif mysql # not compatible
query I rowsort label-1553
SELECT - 34 * + + 25 + + CAST ( COALESCE ( + - COUNT ( + 79 ), - 42, - 95 ) AS INTEGER ) + - - 38 AS col0
----
-813

onlyif mysql # aggregate syntax: 
query I rowsort label-1554
SELECT 94 * + 47 * + - COUNT( * ) AS col0
----
-4418

skipif mysql # not compatible
query I rowsort label-1554
SELECT 94 * + 47 * + - COUNT ( * ) AS col0
----
-4418

query I rowsort
SELECT ALL 92 * + - 35 * + 46
----
-148120

query I rowsort
SELECT DISTINCT + 63 * - - 73
----
4599

query II rowsort
SELECT ALL - 45 col1, 72 + + 35 * + 83 * + 86 - 45 AS col1
----
-45
249857

query II rowsort
SELECT DISTINCT - 99 * + 12, + 7 * ( - 92 ) AS col1
----
-1188
-644

query I rowsort
SELECT ALL - NULLIF ( - + 79, 64 ) AS col2
----
79

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1560
SELECT DISTINCT CASE - + 71 WHEN - CAST( - - ( + + 94 ) AS SIGNED ) * - 62 + - - 1 + 46 * + 76 THEN + 63 * - 88 WHEN + 89 THEN NULL END / + - MAX( 83 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1560
SELECT DISTINCT CASE - + 71 WHEN - CAST ( - - ( + + 94 ) AS INTEGER ) * - 62 + - - 1 + 46 * + 76 THEN + 63 * - 88 WHEN + 89 THEN NULL END / + - MAX ( 83 ) AS col2
----
NULL

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

skipif mysql # not compatible
query I rowsort label-1561
SELECT DISTINCT - ( MIN ( - - 81 ) )
----
-81

query I rowsort
SELECT 70 * 81
----
5670

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1563
SELECT NULLIF ( NULLIF ( - 95, + 78 * + + 52 ), 10 * 55 + CAST( NULL AS SIGNED ) + + COUNT( * ) - 94 * + - COUNT( + 85 ) ) + + - COUNT( * ) * + 45 + 70
----
-70

skipif mysql # not compatible
query I rowsort label-1563
SELECT NULLIF ( NULLIF ( - 95, + 78 * + + 52 ), 10 * 55 + CAST ( NULL AS INTEGER ) + + COUNT ( * ) - 94 * + - COUNT ( + 85 ) ) + + - COUNT ( * ) * + 45 + 70
----
-70

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

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

query II rowsort
SELECT + 35, 97 * + 22 AS col1
----
35
2134

query I rowsort
SELECT DISTINCT - - ( + CASE - 54 WHEN - 67 + + 67 THEN - - 20 WHEN + - 4 THEN + - 82 ELSE NULL END )
----
NULL

query I rowsort
SELECT ALL - 92 + 93
----
1

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

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

query I rowsort
SELECT 8 * - 67
----
-536

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1570
SELECT CAST( NULL AS SIGNED ), 26 AS col2
----
NULL
26

skipif mysql # not compatible
query II rowsort label-1570
SELECT CAST ( NULL AS INTEGER ), 26 AS col2
----
NULL
26

onlyif mysql # aggregate syntax: 
query II rowsort label-1571
SELECT - COUNT( * ) AS col0, COALESCE ( 15, - + 22 + ( - + MIN( ALL 89 ) ), + - 34 )
----
-1
15

skipif mysql # not compatible
query II rowsort label-1571
SELECT - COUNT ( * ) AS col0, COALESCE ( 15, - + 22 + ( - + MIN ( ALL 89 ) ), + - 34 )
----
-1
15

onlyif mysql # aggregate syntax: 
query II rowsort label-1572
SELECT ALL 15, - MAX( - ( + 50 ) ) AS col0
----
15
50

skipif mysql # not compatible
query II rowsort label-1572
SELECT ALL 15, - MAX ( - ( + 50 ) ) AS col0
----
15
50

query I rowsort
SELECT 72 + ( ( + 43 ) ) + 82
----
197

query I rowsort
SELECT 87 - + COALESCE ( + 97, - 46 + - + ( + - 82 ) ) * + 51
----
-4860

query I rowsort
SELECT 31 * + 94 * + 82 AS col1
----
238948

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1577
SELECT ALL - MIN( DISTINCT 35 ) + - CASE - 97 WHEN - CASE - - 9 WHEN + COUNT( * ) THEN NULL ELSE + + COUNT( - - 55 ) + + 69 END THEN 43 * + - 66 WHEN - + 38 THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1577
SELECT ALL - MIN ( DISTINCT 35 ) + - CASE - 97 WHEN - CASE - - 9 WHEN + COUNT ( * ) THEN NULL ELSE + + COUNT ( - - 55 ) + + 69 END THEN 43 * + - 66 WHEN - + 38 THEN NULL ELSE NULL END
----
NULL

query I rowsort
SELECT ( + 97 ) * + - 18 AS col2
----
-1746

query II rowsort
SELECT DISTINCT 5 AS col2, + 56 * + 54
----
5
3024

query I rowsort
SELECT DISTINCT 78 - - 39
----
117

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1581
SELECT MIN( ( - - CAST( + NULLIF ( + CAST( + - 95 AS SIGNED ), + 65 ) AS SIGNED ) ) ) + 10 AS col2, COALESCE ( - 72, - 82, 86, + ( + - MAX( ALL - + 82 ) ) )
----
-85
-72

skipif mysql # not compatible
query II rowsort label-1581
SELECT MIN ( ( - - CAST ( + NULLIF ( + CAST ( + - 95 AS INTEGER ), + 65 ) AS INTEGER ) ) ) + 10 AS col2, COALESCE ( - 72, - 82, 86, + ( + - MAX ( ALL - + 82 ) ) )
----
-85
-72

query I rowsort
SELECT ALL 53 - - 15 AS col0
----
68

query I rowsort
SELECT ( + 6 ) * - + 39
----
-234

onlyif mysql # aggregate syntax: 
query II rowsort label-1584
SELECT 75 * 64, + COUNT( * ) AS col1
----
4800
1

skipif mysql # not compatible
query II rowsort label-1584
SELECT 75 * 64, + COUNT ( * ) AS col1
----
4800
1

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

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

query I rowsort
SELECT ALL 5 * + - 82
----
-410

query I rowsort
SELECT 90 + + + 22
----
112

query II rowsort
SELECT ALL 69 * + + 13, - 31 AS col2
----
897
-31

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

skipif mysql # not compatible
query I rowsort label-1589
SELECT - ( 62 ) / - + COUNT ( * ) col2
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-1590
SELECT CASE + + COALESCE ( ( + MAX( - + 39 ) ), - ( + ( - 48 ) ) + - 70 - + + COUNT( * ) * - 22 ) WHEN + - COUNT( * ) + + 94 THEN + 69 ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1590
SELECT CASE + + COALESCE ( ( + MAX ( - + 39 ) ), - ( + ( - 48 ) ) + - 70 - + + COUNT ( * ) * - 22 ) WHEN + - COUNT ( * ) + + 94 THEN + 69 ELSE NULL END AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1591
SELECT + CAST( + 69 AS SIGNED ) - 60
----
9

skipif mysql # not compatible
query I rowsort label-1591
SELECT + CAST ( + 69 AS INTEGER ) - 60
----
9

query I rowsort
SELECT DISTINCT + ( - - NULLIF ( 29, - ( 57 ) + + - 10 ) )
----
29

onlyif mysql # aggregate syntax: 
query II rowsort label-1593
SELECT DISTINCT + - 4 * - 24 + - NULLIF ( 7, 25 - + ( - 57 ) - + + ( + - 10 ) ) + - 10 AS col2, COUNT( * ) + - + 0 AS col0
----
79
1

skipif mysql # not compatible
query II rowsort label-1593
SELECT DISTINCT + - 4 * - 24 + - NULLIF ( 7, 25 - + ( - 57 ) - + + ( + - 10 ) ) + - 10 AS col2, COUNT ( * ) + - + 0 AS col0
----
79
1

query I rowsort
SELECT - 9 * - 93 + + 26
----
863

query I rowsort
SELECT - ( - 27 ) - + 75 AS col0
----
-48

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1596
SELECT ALL - + COALESCE ( + 8, + COALESCE ( - ( + 55 ), - COUNT( * ), + COUNT( * ) * - + 91 - - 71 ) * - 42 + 10 + + - 84 * 11 * + + CAST( NULL AS SIGNED ) * CASE - - ( + - 99 ) WHEN - 74 THEN + - 51 - + 42 * MIN( - NULLIF ( - 35, + 33 ) ) END ) * + CASE - 59 WHEN - + 66 + + - ( - ( + + 37 ) ) THEN NULL WHEN 32 THEN - 11 END * - MAX( - - 6 ) + + 77 + - 55 + + AVG ( + 81 ) + 12 + + MIN( ALL - 29 ) - 67 + + - COUNT( * ) * 21 * + 30 * - MIN( + 1 ) - 17 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1596
SELECT ALL - + COALESCE ( + 8, + COALESCE ( - ( + 55 ), - COUNT ( * ), + COUNT ( * ) * - + 91 - - 71 ) * - 42 + 10 + + - 84 * 11 * + + CAST ( NULL AS INTEGER ) * CASE - - ( + - 99 ) WHEN - 74 THEN + - 51 - + 42 * MIN ( - NULLIF ( - 35, + 33 ) ) END ) * + CASE - 59 WHEN - + 66 + + - ( - ( + + 37 ) ) THEN NULL WHEN 32 THEN - 11 END * - MAX ( - - 6 ) + + 77 + - 55 + + AVG ( + 81 ) + 12 + + MIN ( ALL - 29 ) - 67 + + - COUNT ( * ) * 21 * + 30 * - MIN ( + 1 ) - 17 AS col2
----
NULL

query I rowsort
SELECT - + 55 * + + 43 * - 71
----
167915

query I rowsort
SELECT - 97 * - NULLIF ( - ( + 62 ), - 35 ) + 84 AS col2
----
-5930

query I rowsort
SELECT ALL - - 17 + - 9 AS col2
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-1600
SELECT ALL + + 5 * + + 31 - + COUNT( * )
----
154

skipif mysql # not compatible
query I rowsort label-1600
SELECT ALL + + 5 * + + 31 - + COUNT ( * )
----
154

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1601
SELECT DISTINCT + - NULLIF ( - - 78, - NULLIF ( - + 73, 43 + + - 12 + - - COUNT( * ) - + COUNT( * ) * 38 / COUNT( * ) * + 95 + + 4 ) / CAST( NULL AS SIGNED ) * + + MAX( DISTINCT - - 86 ) / 77 + + - 96 + + + 43 ) * - + ( - 76 )
----
-5928

skipif mysql # not compatible
query I rowsort label-1601
SELECT DISTINCT + - NULLIF ( - - 78, - NULLIF ( - + 73, 43 + + - 12 + - - COUNT ( * ) - + COUNT ( * ) * 38 / COUNT ( * ) * + 95 + + 4 ) / CAST ( NULL AS INTEGER ) * + + MAX ( DISTINCT - - 86 ) / 77 + + - 96 + + + 43 ) * - + ( - 76 )
----
-5928

query II rowsort
SELECT DISTINCT - + 75 - 59, 28 + + + 44 AS col2
----
-134
72

onlyif mysql # aggregate syntax: 
query I rowsort label-1603
SELECT ALL + + COUNT( * ) * NULLIF ( 85, + - 26 ) AS col2
----
85

skipif mysql # not compatible
query I rowsort label-1603
SELECT ALL + + COUNT ( * ) * NULLIF ( 85, + - 26 ) AS col2
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-1604
SELECT + 11 + + + COUNT( * ) + - 29 AS col1
----
-17

skipif mysql # not compatible
query I rowsort label-1604
SELECT + 11 + + + COUNT ( * ) + - 29 AS col1
----
-17

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1605
SELECT + CAST( - 77 AS SIGNED ) * 90 AS col0, + 91 col0
----
-6930
91

skipif mysql # not compatible
query II rowsort label-1605
SELECT + CAST ( - 77 AS INTEGER ) * 90 AS col0, + 91 col0
----
-6930
91

query I rowsort
SELECT - 11 + - 24
----
-35

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

skipif mysql # not compatible
query II rowsort label-1607
SELECT 45 AS col1, CAST ( NULL AS INTEGER ) AS col2
----
45
NULL

query I rowsort
SELECT DISTINCT ( - + 71 ) AS col1
----
-71

onlyif mysql # DIV for integer division: 
query I rowsort label-1609
SELECT ALL 58 DIV 39 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-1609
SELECT ALL 58 / 39 AS col0
----
1

query I rowsort
SELECT + 63 * - 18 AS col0
----
-1134

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1612
SELECT + NULLIF ( + COUNT( * ), + 61 + + 59 + + MIN( ALL 30 ) - - 83 * - MAX( DISTINCT - 96 ) + - 35 DIV + AVG ( ALL - 21 ) ) * 57 + 52 + CASE + 76 WHEN + 35 * + + CAST( NULL AS SIGNED ) - - - ( MIN( - 11 ) ) - + CASE 48 WHEN 39 THEN - 53 + - + 28 END * - 25 * + 1 THEN - + ( - + 49 ) DIV - + 75 ELSE + - 35 * - - 55 * - 3 + + 37 + 58 + 34 * MAX( - 62 ) END + + 11
----
3882

skipif mysql # not compatible
query I rowsort label-1612
SELECT + NULLIF ( + COUNT ( * ), + 61 + + 59 + + MIN ( ALL 30 ) - - 83 * - MAX ( DISTINCT - 96 ) + - 35 / + AVG ( ALL - 21 ) ) * 57 + 52 + CASE + 76 WHEN + 35 * + + CAST ( NULL AS INTEGER ) - - - ( MIN ( - 11 ) ) - + CASE 48 WHEN 39 THEN - 53 + - + 28 END * - 25 * + 1 THEN - + ( - + 49 ) / - + 75 ELSE + - 35 * - - 55 * - 3 + + 37 + 58 + 34 * MAX ( - 62 ) END + + 11
----
3882

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

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

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

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

query I rowsort
SELECT ALL 22 * 74 * 83 AS col0
----
135124

onlyif mysql # DIV for integer division: 
query I rowsort label-1616
SELECT - 28 DIV - 35 * + ( ( 16 ) )
----
0

skipif mysql # not compatible
query I rowsort label-1616
SELECT - 28 / - 35 * + ( ( 16 ) )
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1617
SELECT COUNT( * ) DIV + + 36 + - - 97 AS col0, + 24
----
97
24

skipif mysql # not compatible
query II rowsort label-1617
SELECT COUNT ( * ) / + + 36 + - - 97 AS col0, + 24
----
97
24

query I rowsort
SELECT + 10 * + - 83 * + 88 AS col0
----
-73040

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1619
SELECT CAST( - - 66 AS SIGNED ) AS col0
----
66

skipif mysql # not compatible
query I rowsort label-1619
SELECT CAST ( - - 66 AS INTEGER ) AS col0
----
66

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1620
SELECT DISTINCT 43 DIV 85 + + CAST( - + 76 AS SIGNED ) AS col2
----
-76

skipif mysql # not compatible
query I rowsort label-1620
SELECT DISTINCT 43 / 85 + + CAST ( - + 76 AS INTEGER ) AS col2
----
-76

onlyif mysql # DIV for integer division: 
query I rowsort label-1621
SELECT ALL + 69 DIV + 76 + + - NULLIF ( - 26, 55 ) - - 36 * + 90 * + - 99 * - + 37 col0
----
11868146

skipif mysql # not compatible
query I rowsort label-1621
SELECT ALL + 69 / + 76 + + - NULLIF ( - 26, 55 ) - - 36 * + 90 * + - 99 * - + 37 col0
----
11868146

onlyif mysql # aggregate syntax: 
query I rowsort label-1622
SELECT ALL - + 60 * - CASE + 32 WHEN + 35 THEN NULL WHEN + MIN( ALL 61 ) THEN + 49 END + - - SUM( + 71 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1622
SELECT ALL - + 60 * - CASE + 32 WHEN + 35 THEN NULL WHEN + MIN ( ALL 61 ) THEN + 49 END + - - SUM ( + 71 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1623
SELECT - + MIN( ALL 58 ) * 85 * - COUNT( * ) + 45 + COUNT( * ) AS col0
----
4976

skipif mysql # not compatible
query I rowsort label-1623
SELECT - + MIN ( ALL 58 ) * 85 * - COUNT ( * ) + 45 + COUNT ( * ) AS col0
----
4976

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1624
SELECT - ( + + 9 ) * + COUNT( * ) + CASE + - 8 WHEN 42 THEN + 65 * 27 + + ( + + 55 ) + + - 27 + + 81 ELSE - - 51 DIV - - 42 + - ( - + 58 ) END + - COUNT( * ) * - + NULLIF ( CAST( - 14 AS SIGNED ), + 53 * + - 45 ) AS col2
----
36

skipif mysql # not compatible
query I rowsort label-1624
SELECT - ( + + 9 ) * + COUNT ( * ) + CASE + - 8 WHEN 42 THEN + 65 * 27 + + ( + + 55 ) + + - 27 + + 81 ELSE - - 51 / - - 42 + - ( - + 58 ) END + - COUNT ( * ) * - + NULLIF ( CAST ( - 14 AS INTEGER ), + 53 * + - 45 ) AS col2
----
36

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1625
SELECT - + CAST( NULL AS SIGNED ) + - COUNT( 42 ) * + COALESCE ( ( - SUM( - 77 ) ), - - 93, + 82 ) * + 91
----
NULL

skipif mysql # not compatible
query I rowsort label-1625
SELECT - + CAST ( NULL AS INTEGER ) + - COUNT ( 42 ) * + COALESCE ( ( - SUM ( - 77 ) ), - - 93, + 82 ) * + 91
----
NULL

query I rowsort
SELECT + - 10 * - + 66 AS col2
----
660

onlyif mysql # aggregate syntax: 
query II rowsort label-1627
SELECT + + 37 AS col1, 60 * COUNT( * )
----
37
60

skipif mysql # not compatible
query II rowsort label-1627
SELECT + + 37 AS col1, 60 * COUNT ( * )
----
37
60

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1629
SELECT + + NULLIF ( COUNT( * ), 43 * + 99 * 16 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-1629
SELECT + + NULLIF ( COUNT ( * ), 43 * + 99 * 16 ) AS col2
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1630
SELECT DISTINCT + 71 / - + 67 * - 49 * - - 66 + - MIN( ALL + CAST( NULL AS SIGNED ) ) * + + AVG ( + - 27 ) + - - 3 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1630
SELECT DISTINCT + 71 / - + 67 * - 49 * - - 66 + - MIN ( ALL + CAST ( NULL AS INTEGER ) ) * + + AVG ( + - 27 ) + - - 3 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1631
SELECT ALL + COUNT( * ) * - 67 + - COALESCE ( - 44, 10 + - 66 * - - SUM( 88 ) ) - - + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1631
SELECT ALL + COUNT ( * ) * - 67 + - COALESCE ( - 44, 10 + - 66 * - - SUM ( 88 ) ) - - + CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT ALL 24 * 44 + + 16 AS col0
----
1072

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1633
SELECT DISTINCT - 21 * - - 88 - + CAST( + 46 AS SIGNED )
----
-1894

skipif mysql # not compatible
query I rowsort label-1633
SELECT DISTINCT - 21 * - - 88 - + CAST ( + 46 AS INTEGER )
----
-1894

onlyif mysql # aggregate syntax: 
query I rowsort label-1634
SELECT ALL MAX( DISTINCT 78 ) AS col1
----
78

skipif mysql # not compatible
query I rowsort label-1634
SELECT ALL MAX ( DISTINCT 78 ) AS col1
----
78

query II rowsort
SELECT - + 77 + - 62 * + 95, 43 + + 91 + 14 + + 9 AS col2
----
-5967
157

query I rowsort
SELECT + - 8 * - 93 - + 55 AS col0
----
689

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

skipif mysql # not compatible
query I rowsort label-1637
SELECT 58 - - + CAST ( - 53 AS INTEGER ) AS col2
----
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1638
SELECT 68 - + + 93 + - + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-1638
SELECT 68 - + + 93 + - + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1639
SELECT DISTINCT - 31 * - COUNT( * ) AS col0
----
31

skipif mysql # not compatible
query I rowsort label-1639
SELECT DISTINCT - 31 * - COUNT ( * ) AS col0
----
31

query I rowsort
SELECT ALL 52 + - 85
----
-33

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query I rowsort label-1641
SELECT DISTINCT - 40 * + + COALESCE ( + 25, 32 + CASE + - CAST( NULL AS DECIMAL ) WHEN + 26 THEN - + COUNT( * ) DIV COALESCE ( - ( + 30 ), 61 ) + - + 42 + + - COALESCE ( + 86, - 85, + 4 + ( 59 ) DIV 45 ) END, + + 79 ) * - - 49
----
-49000

skipif mysql # not compatible
query I rowsort label-1641
SELECT DISTINCT - 40 * + + COALESCE ( + 25, 32 + CASE + - CAST ( NULL AS REAL ) WHEN + 26 THEN - + COUNT ( * ) / COALESCE ( - ( + 30 ), 61 ) + - + 42 + + - COALESCE ( + 86, - 85, + 4 + ( 59 ) / 45 ) END, + + 79 ) * - - 49
----
-49000

onlyif mysql # aggregate syntax: 
query I rowsort label-1642
SELECT DISTINCT - 31 + + COUNT( * ) + + - 44
----
-74

skipif mysql # not compatible
query I rowsort label-1642
SELECT DISTINCT - 31 + + COUNT ( * ) + + - 44
----
-74

query I rowsort
SELECT 9 * 10 * - 67
----
-6030

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1644
SELECT 80 * - 0, + ( + 92 ) DIV + - SUM( - - 56 ) AS col1
----
0
-1

skipif mysql # not compatible
query II rowsort label-1644
SELECT 80 * - 0, + ( + 92 ) / + - SUM ( - - 56 ) AS col1
----
0
-1

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

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

query I rowsort
SELECT ALL - 14 + + ( - 34 )
----
-48

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-1647
SELECT DISTINCT - 96 + + 44 AS col1, - CAST( + - CAST( NULL AS SIGNED ) AS DECIMAL ) col2
----
-52
NULL

skipif mysql # not compatible
query II rowsort label-1647
SELECT DISTINCT - 96 + + 44 AS col1, - CAST ( + - CAST ( NULL AS INTEGER ) AS REAL ) col2
----
-52
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1648
SELECT ALL COUNT( * ) + + ( - ( + + 50 ) )
----
-49

skipif mysql # not compatible
query I rowsort label-1648
SELECT ALL COUNT ( * ) + + ( - ( + + 50 ) )
----
-49

onlyif mysql # DIV for integer division: 
query II rowsort label-1649
SELECT 24 DIV 11 AS col0, - ( + 28 ) + 2 + + 1
----
2
-25

skipif mysql # not compatible
query II rowsort label-1649
SELECT 24 / 11 AS col0, - ( + 28 ) + 2 + + 1
----
2
-25

onlyif mysql # DIV for integer division: 
query I rowsort label-1650
SELECT ALL 50 + 10 DIV 93 + - + 8 * - ( - - 40 )
----
370

skipif mysql # not compatible
query I rowsort label-1650
SELECT ALL 50 + 10 / 93 + - + 8 * - ( - - 40 )
----
370

query I rowsort
SELECT + 50 * 20 * + 13 * + + 15 AS col2
----
195000

onlyif mysql # aggregate syntax: 
query I rowsort label-1652
SELECT DISTINCT COUNT( * ) * - AVG ( - 87 ) + + ( + CASE 47 WHEN 56 / - - 78 * - - 59 THEN + - 3 END )
----
NULL

skipif mysql # not compatible
query I rowsort label-1652
SELECT DISTINCT COUNT ( * ) * - AVG ( - 87 ) + + ( + CASE 47 WHEN 56 / - - 78 * - - 59 THEN + - 3 END )
----
NULL

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

query II rowsort
SELECT - 16 + + 84, 7 AS col1
----
68
7

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

query I rowsort
SELECT ALL 13 * 29 * 25 * 33 AS col1
----
311025

query I rowsort
SELECT DISTINCT 17 - - 14 * + + 90 AS col1
----
1277

query II rowsort
SELECT + ( ( - 78 ) ) - + 24 AS col0, + 74 + + + 31
----
-102
105

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1660
SELECT 54 * - CAST( NULL AS SIGNED ) + + 78 + - COALESCE ( + 62, 65 + - CASE - 12 WHEN 17 THEN + 11 END + + COUNT( * ) * - 66 * 6, - 52 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1660
SELECT 54 * - CAST ( NULL AS INTEGER ) + + 78 + - COALESCE ( + 62, 65 + - CASE - 12 WHEN 17 THEN + 11 END + + COUNT ( * ) * - 66 * 6, - 52 ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1661
SELECT - MAX( + + 75 ) * - COALESCE ( + + 34, + 33 + - 96 * + + 80 * + 39 * COUNT( * ), - + 63 + + MAX( + + 95 ) + + 22 * + 48 ) + + + SUM( ALL - 49 )
----
2501

skipif mysql # not compatible
query I rowsort label-1661
SELECT - MAX ( + + 75 ) * - COALESCE ( + + 34, + 33 + - 96 * + + 80 * + 39 * COUNT ( * ), - + 63 + + MAX ( + + 95 ) + + 22 * + 48 ) + + + SUM ( ALL - 49 )
----
2501

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1662
SELECT DISTINCT CAST( + MAX( 71 ) AS SIGNED ) DIV - - 28
----
2

skipif mysql # not compatible
query I rowsort label-1662
SELECT DISTINCT CAST ( + MAX ( 71 ) AS INTEGER ) / - - 28
----
2

query I rowsort
SELECT - 32 + - - 34 + - 7
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-1664
SELECT - ( + - 97 ) + + ( - 86 ) + - 62 + - + NULLIF ( 40, - + 19 + CASE WHEN 95 <> 55 + - 91 THEN - 52 ELSE NULL END ) + - MIN( - 96 )
----
5

skipif mysql # not compatible
query I rowsort label-1664
SELECT - ( + - 97 ) + + ( - 86 ) + - 62 + - + NULLIF ( 40, - + 19 + CASE WHEN 95 <> 55 + - 91 THEN - 52 ELSE NULL END ) + - MIN ( - 96 )
----
5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1665
SELECT ALL - + ( + - MIN( ALL + 15 ) ) * CAST( - - ( + 33 ) AS SIGNED )
----
495

skipif mysql # not compatible
query I rowsort label-1665
SELECT ALL - + ( + - MIN ( ALL + 15 ) ) * CAST ( - - ( + 33 ) AS INTEGER )
----
495

onlyif mysql # aggregate syntax: 
query I rowsort label-1666
SELECT + 55 * - + COUNT( * ) + - - 75 * - 65 + 87
----
-4843

skipif mysql # not compatible
query I rowsort label-1666
SELECT + 55 * - + COUNT ( * ) + - - 75 * - 65 + 87
----
-4843

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

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

query I rowsort
SELECT ALL 46 * 64
----
2944

onlyif mysql # aggregate syntax: 
query I rowsort label-1669
SELECT 93 + + - 43 + + MIN( 37 )
----
87

skipif mysql # not compatible
query I rowsort label-1669
SELECT 93 + + - 43 + + MIN ( 37 )
----
87

query I rowsort
SELECT 64 * - 84 * - 55
----
295680

query I rowsort
SELECT ALL - 45 + 42 AS col0
----
-3

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1673
SELECT 9 DIV MIN( ALL + 65 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-1673
SELECT 9 / MIN ( ALL + 65 ) AS col1
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-1674
SELECT ALL + 82 + + - ( 14 ) AS col2, - MIN( ALL - 31 ) AS col2
----
68
31

skipif mysql # not compatible
query II rowsort label-1674
SELECT ALL + 82 + + - ( 14 ) AS col2, - MIN ( ALL - 31 ) AS col2
----
68
31

query I rowsort
SELECT ( 95 ) + - 88
----
7

query I rowsort
SELECT DISTINCT - 9 + - - 34 AS col1
----
25

query I rowsort
SELECT 99 + + 30
----
129

onlyif mysql # aggregate syntax: 
query I rowsort label-1678
SELECT ALL 80 + + COALESCE ( 67, 0 ) + + COUNT( * ) * + + 96 col0
----
243

skipif mysql # not compatible
query I rowsort label-1678
SELECT ALL 80 + + COALESCE ( 67, 0 ) + + COUNT ( * ) * + + 96 col0
----
243

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

skipif mysql # not compatible
query I rowsort label-1679
SELECT ALL - 28 + + COUNT ( * ) AS col2
----
-27

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

skipif mysql # not compatible
query I rowsort label-1680
SELECT DISTINCT SUM ( - ( - 26 ) )
----
26

query I rowsort
SELECT 15 + - + 54
----
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-1682
SELECT COUNT( * ) + - 13 * 15
----
-194

skipif mysql # not compatible
query I rowsort label-1682
SELECT COUNT ( * ) + - 13 * 15
----
-194

query I rowsort
SELECT 28 * 21
----
588

query I rowsort
SELECT ALL - 92 * - 66 * + 82 AS col2
----
497904

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1685
SELECT 34 + - CASE + CASE MIN( 33 ) WHEN - COUNT( ALL - 12 ) THEN + ( - 33 ) ELSE NULL END WHEN + 16 THEN - COUNT( * ) / - COUNT( * ) - - 46 + - 33 WHEN - + 84 THEN - CAST( COUNT( * ) AS SIGNED ) WHEN - 49 THEN - ( + COUNT( * ) ) END + - 43
----
NULL

skipif mysql # not compatible
query I rowsort label-1685
SELECT 34 + - CASE + CASE MIN ( 33 ) WHEN - COUNT ( ALL - 12 ) THEN + ( - 33 ) ELSE NULL END WHEN + 16 THEN - COUNT ( * ) / - COUNT ( * ) - - 46 + - 33 WHEN - + 84 THEN - CAST ( COUNT ( * ) AS INTEGER ) WHEN - 49 THEN - ( + COUNT ( * ) ) END + - 43
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1686
SELECT 5 + + 10 + - 53 * 57 - 78 * 79 * - + COUNT( DISTINCT + - 51 ) AS col2, + MIN( ALL + 75 ) + 52 + - 74
----
3156
53

skipif mysql # not compatible
query II rowsort label-1686
SELECT 5 + + 10 + - 53 * 57 - 78 * 79 * - + COUNT ( DISTINCT + - 51 ) AS col2, + MIN ( ALL + 75 ) + 52 + - 74
----
3156
53

onlyif mysql # aggregate syntax: 
query I rowsort label-1687
SELECT COALESCE ( + COUNT( * ), 64 * COUNT( * ) ) + + 95 AS col0
----
96

skipif mysql # not compatible
query I rowsort label-1687
SELECT COALESCE ( + COUNT ( * ), 64 * COUNT ( * ) ) + + 95 AS col0
----
96

query I rowsort
SELECT - 40 * 68 + + 84
----
-2636

onlyif mysql # aggregate syntax: 
query I rowsort label-1689
SELECT SUM( ALL COALESCE ( 82, 94 * - 66 ) ) * 26 col0
----
2132

skipif mysql # not compatible
query I rowsort label-1689
SELECT SUM ( ALL COALESCE ( 82, 94 * - 66 ) ) * 26 col0
----
2132

onlyif mysql # aggregate syntax: 
query I rowsort label-1690
SELECT ALL - CASE - 67 WHEN 9 - + 77 THEN CASE MIN( DISTINCT 47 ) WHEN 34 * - 93 - + 24 THEN - 2 * + 13 WHEN - 78 + + NULLIF ( - 40, + 65 ) THEN NULL END WHEN 60 THEN NULLIF ( 64, - 34 ) * + 86 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1690
SELECT ALL - CASE - 67 WHEN 9 - + 77 THEN CASE MIN ( DISTINCT 47 ) WHEN 34 * - 93 - + 24 THEN - 2 * + 13 WHEN - 78 + + NULLIF ( - 40, + 65 ) THEN NULL END WHEN 60 THEN NULLIF ( 64, - 34 ) * + 86 END AS col2
----
NULL

query I rowsort
SELECT 43 * CASE 92 / + 20 WHEN 9 + + 10 THEN 98 ELSE NULL END
----
NULL

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

skipif mysql # not compatible
query I rowsort label-1692
SELECT ALL 48 * CAST ( NULL AS INTEGER ) col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1693
SELECT COUNT( * ) + - 34 * ( + 81 + CASE + 55 WHEN 21 THEN 53 * 44 ELSE NULL END * ( + AVG ( + 49 ) + - 70 * - 2 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-1693
SELECT COUNT ( * ) + - 34 * ( + 81 + CASE + 55 WHEN 21 THEN 53 * 44 ELSE NULL END * ( + AVG ( + 49 ) + - 70 * - 2 ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1694
SELECT ALL - CASE + 98 WHEN ( - 74 ) THEN - 57 / 27 WHEN ( COUNT( * ) ) / - 67 + - CASE COUNT( * ) - - 22 WHEN + 49 + + NULLIF ( SUM( + 54 ) - 6, 62 - + 96 * 22 ) THEN NULL ELSE 15 END THEN NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1694
SELECT ALL - CASE + 98 WHEN ( - 74 ) THEN - 57 / 27 WHEN ( COUNT ( * ) ) / - 67 + - CASE COUNT ( * ) - - 22 WHEN + 49 + + NULLIF ( SUM ( + 54 ) - 6, 62 - + 96 * 22 ) THEN NULL ELSE 15 END THEN NULL END AS col2
----
NULL

query I rowsort
SELECT 21 * 50 + 53
----
1103

onlyif mysql # aggregate syntax: 
query I rowsort label-1696
SELECT CASE 5 WHEN 70 THEN 17 ELSE NULL END + COUNT( * ) / + 63
----
NULL

skipif mysql # not compatible
query I rowsort label-1696
SELECT CASE 5 WHEN 70 THEN 17 ELSE NULL END + COUNT ( * ) / + 63
----
NULL

query I rowsort
SELECT ALL 12 * 20
----
240

onlyif mysql # DIV for integer division: 
query I rowsort label-1698
SELECT CASE - 28 WHEN + 17 THEN NULL ELSE + 39 + 93 END DIV 95 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-1698
SELECT CASE - 28 WHEN + 17 THEN NULL ELSE + 39 + 93 END / 95 AS col1
----
1

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

skipif mysql # not compatible
query I rowsort label-1699
SELECT MAX ( DISTINCT 49 )
----
49

onlyif mysql # aggregate syntax: 
query I rowsort label-1700
SELECT ALL 89 * - COUNT( * ) AS col1
----
-89

skipif mysql # not compatible
query I rowsort label-1700
SELECT ALL 89 * - COUNT ( * ) AS col1
----
-89

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1701
SELECT DISTINCT 47 * CAST( - CASE 81 WHEN 24 THEN 95 + 13 WHEN - 10 - 98 THEN - 72 END AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-1701
SELECT DISTINCT 47 * CAST ( - CASE 81 WHEN 24 THEN 95 + 13 WHEN - 10 - 98 THEN - 72 END AS INTEGER )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1702
SELECT ALL 6 * ( 37 DIV - 88 ) col2
----
0

skipif mysql # not compatible
query I rowsort label-1702
SELECT ALL 6 * ( 37 / - 88 ) col2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1703
SELECT DISTINCT + 12 + + COALESCE ( - 59, - CAST( NULL AS SIGNED ) ) * 15
----
-873

skipif mysql # not compatible
query I rowsort label-1703
SELECT DISTINCT + 12 + + COALESCE ( - 59, - CAST ( NULL AS INTEGER ) ) * 15
----
-873

query I rowsort
SELECT ALL - 58 * + 36
----
-2088

query I rowsort
SELECT DISTINCT 76 + 14 col2
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-1706
SELECT - SUM( - ( - 61 ) ) AS col1
----
-61

skipif mysql # not compatible
query I rowsort label-1706
SELECT - SUM ( - ( - 61 ) ) AS col1
----
-61

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

skipif mysql # not compatible
query I rowsort label-1707
SELECT DISTINCT 40 + - COUNT ( * ) AS col1
----
39

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1709
SELECT ALL COUNT( DISTINCT - 10 ) * NULLIF ( 87 - - 64, ( + 79 ) )
----
151

skipif mysql # not compatible
query I rowsort label-1709
SELECT ALL COUNT ( DISTINCT - 10 ) * NULLIF ( 87 - - 64, ( + 79 ) )
----
151

query I rowsort
SELECT DISTINCT 4 + + 9
----
13

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1711
SELECT - COALESCE ( - 48, 4 * CAST( - COUNT( * ) AS SIGNED ) )
----
48

skipif mysql # not compatible
query I rowsort label-1711
SELECT - COALESCE ( - 48, 4 * CAST ( - COUNT ( * ) AS INTEGER ) )
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-1712
SELECT ALL 80 + 32 * COUNT( * )
----
112

skipif mysql # not compatible
query I rowsort label-1712
SELECT ALL 80 + 32 * COUNT ( * )
----
112

onlyif mysql # aggregate syntax: 
query I rowsort label-1713
SELECT ALL 39 + SUM( ALL 30 ) * - 71
----
-2091

skipif mysql # not compatible
query I rowsort label-1713
SELECT ALL 39 + SUM ( ALL 30 ) * - 71
----
-2091

query I rowsort
SELECT ALL - 96 + 63
----
-33

query I rowsort
SELECT ALL 33 * 18 AS col0
----
594

onlyif mysql # DIV for integer division: 
query I rowsort label-1716
SELECT - 3 - ( + 64 ) DIV - 31 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-1716
SELECT - 3 - ( + 64 ) / - 31 AS col1
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1717
SELECT + CAST( NULL AS SIGNED ) * - CASE + 24 WHEN + 16 THEN 92 WHEN 71 THEN ( 37 ) ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1717
SELECT + CAST ( NULL AS INTEGER ) * - CASE + 24 WHEN + 16 THEN 92 WHEN 71 THEN ( 37 ) ELSE NULL END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1718
SELECT ALL SUM( - 91 ) AS col2
----
-91

skipif mysql # not compatible
query I rowsort label-1718
SELECT ALL SUM ( - 91 ) AS col2
----
-91

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1719
SELECT DISTINCT + NULLIF ( - CAST( + 66 AS DECIMAL ), 10 + 16 ) - CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-1719
SELECT DISTINCT + NULLIF ( - CAST ( + 66 AS REAL ), 10 + 16 ) - CAST ( NULL AS REAL )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1720
SELECT - 45 * NULLIF ( + 44, + COUNT( * ) * - 78 ) AS col2
----
-1980

skipif mysql # not compatible
query I rowsort label-1720
SELECT - 45 * NULLIF ( + 44, + COUNT ( * ) * - 78 ) AS col2
----
-1980

onlyif mysql # DIV for integer division: 
query I rowsort label-1721
SELECT ALL + 28 DIV - 67 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-1721
SELECT ALL + 28 / - 67 AS col1
----
0

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

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

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

query I rowsort
SELECT DISTINCT 96 * 23 - - 47 AS col1
----
2255

query I rowsort
SELECT - + 98 * - 53
----
5194

query I rowsort
SELECT - + ( + 72 ) * 87 + + 85 AS col0
----
-6179

query I rowsort
SELECT + - ( 26 ) * 89
----
-2314

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1728
SELECT 12 DIV - 98 + 87 * - COUNT( * )
----
-87

skipif mysql # not compatible
query I rowsort label-1728
SELECT 12 / - 98 + 87 * - COUNT ( * )
----
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-1729
SELECT ALL + - ( + CASE 33 WHEN - AVG ( 94 ) THEN - ( + COUNT( * ) ) * 26 WHEN - 97 * - 9 THEN NULL ELSE - COUNT( * ) END )
----
1

skipif mysql # not compatible
query I rowsort label-1729
SELECT ALL + - ( + CASE 33 WHEN - AVG ( 94 ) THEN - ( + COUNT ( * ) ) * 26 WHEN - 97 * - 9 THEN NULL ELSE - COUNT ( * ) END )
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1730
SELECT - CAST( 89 AS SIGNED ) * COUNT( * ) - MAX( + 30 )
----
-119

skipif mysql # not compatible
query I rowsort label-1730
SELECT - CAST ( 89 AS INTEGER ) * COUNT ( * ) - MAX ( + 30 )
----
-119

query I rowsort
SELECT - - 21 + - 0
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-1732
SELECT ALL + CASE 19 WHEN + SUM( ALL - ( 41 ) ) * + 4 THEN - 30 * + 13 WHEN - 44 THEN + 9 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1732
SELECT ALL + CASE 19 WHEN + SUM ( ALL - ( 41 ) ) * + 4 THEN - 30 * + 13 WHEN - 44 THEN + 9 END AS col0
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1734
SELECT + - ( COUNT( * ) ) * - 51 + COALESCE ( 34 - 71, - 1 + + NULLIF ( - 8, 98 ) )
----
14

skipif mysql # not compatible
query I rowsort label-1734
SELECT + - ( COUNT ( * ) ) * - 51 + COALESCE ( 34 - 71, - 1 + + NULLIF ( - 8, 98 ) )
----
14

query I rowsort
SELECT ALL ( 66 ) * - ( + 96 ) + - 7 AS col1
----
-6343

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

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

query I rowsort
SELECT ALL 12 * - 44 + 84 AS col2
----
-444

onlyif mysql # aggregate syntax: 
query I rowsort label-1738
SELECT + + 0 * NULLIF ( + 4 * 46, COUNT( * ) + 9 / 2 ) + - 13 AS col1
----
-13

skipif mysql # not compatible
query I rowsort label-1738
SELECT + + 0 * NULLIF ( + 4 * 46, COUNT ( * ) + 9 / 2 ) + - 13 AS col1
----
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-1739
SELECT DISTINCT + 72 * 49 * SUM( ALL - 66 )
----
-232848

skipif mysql # not compatible
query I rowsort label-1739
SELECT DISTINCT + 72 * 49 * SUM ( ALL - 66 )
----
-232848

onlyif mysql # aggregate syntax: 
query I rowsort label-1740
SELECT - 81 + + MIN( 50 ) AS col1
----
-31

skipif mysql # not compatible
query I rowsort label-1740
SELECT - 81 + + MIN ( 50 ) AS col1
----
-31

query I rowsort
SELECT + 87 * + + CASE - 78 WHEN 22 THEN + 36 ELSE 60 END
----
5220

query I rowsort
SELECT ALL 93 * + + 96 col0
----
8928

query I rowsort
SELECT ALL + 26 * + 65 + 40
----
1730

onlyif mysql # aggregate syntax: 
query I rowsort label-1744
SELECT SUM( DISTINCT + 6 ) AS col2
----
6

skipif mysql # not compatible
query I rowsort label-1744
SELECT SUM ( DISTINCT + 6 ) AS col2
----
6

query I rowsort
SELECT + 34 + + 47 + - 52
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-1746
SELECT ALL 90 * - + 61 - - NULLIF ( - COALESCE ( 97, + 18 ) - MIN( + 42 ), 43 * COALESCE ( 0, - COALESCE ( 77, COUNT( * ) / 97 + 99 * + COALESCE ( 89, 19 ) ) + + COUNT( * ) * 76, 62 ) ) * - 31
----
-1181

skipif mysql # not compatible
query I rowsort label-1746
SELECT ALL 90 * - + 61 - - NULLIF ( - COALESCE ( 97, + 18 ) - MIN ( + 42 ), 43 * COALESCE ( 0, - COALESCE ( 77, COUNT ( * ) / 97 + 99 * + COALESCE ( 89, 19 ) ) + + COUNT ( * ) * 76, 62 ) ) * - 31
----
-1181

query I rowsort
SELECT - NULLIF ( + + 89, + AVG ( ALL 22 ) )
----
-89

query I rowsort
SELECT ALL ( 97 ) - - 22
----
119

query I rowsort
SELECT + 27 * ( 47 ) * 11 AS col1
----
13959

query I rowsort
SELECT ALL ( - - 54 ) - - 82 AS col2
----
136

onlyif mysql # aggregate syntax: 
query I rowsort label-1751
SELECT + COUNT( ALL + 99 ) * 49
----
49

skipif mysql # not compatible
query I rowsort label-1751
SELECT + COUNT ( ALL + 99 ) * 49
----
49

query I rowsort
SELECT + 9 + 2
----
11

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

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

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

skipif mysql # not compatible
query I rowsort label-1754
SELECT + 85 + + + CAST ( NULL AS INTEGER ) + + 12 col2
----
NULL

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

skipif mysql # not compatible
query I rowsort label-1755
SELECT ALL 22 * - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT DISTINCT + 54 * + 10
----
540

query I rowsort
SELECT + - 85 + + 67 + + 27 AS col1
----
9

query I rowsort
SELECT + 49 * 11 AS col1
----
539

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

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

query I rowsort
SELECT - - 36 + + - 21 AS col0
----
15

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

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

query I rowsort
SELECT 91 + 32 AS col1
----
123

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1763
SELECT DISTINCT - 39 DIV + 50 + COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-1763
SELECT DISTINCT - 39 / + 50 + COUNT ( * )
----
1

query I rowsort
SELECT ALL + 80 + - - 4
----
84

query I rowsort
SELECT DISTINCT - 22 + 53
----
31

query I rowsort
SELECT DISTINCT - CASE AVG ( DISTINCT 17 ) WHEN + 76 * + 71 THEN - 3 / CASE + 42 WHEN 51 THEN NULL WHEN NULLIF ( + 42, - 47 ) * + 94 THEN - 91 END WHEN 95 THEN NULL END AS col2
----
NULL

query I rowsort
SELECT DISTINCT + - 1 + + 53 AS col1
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-1768
SELECT ALL - 89 + - + 61 + COUNT( * )
----
-149

skipif mysql # not compatible
query I rowsort label-1768
SELECT ALL - 89 + - + 61 + COUNT ( * )
----
-149

query I rowsort
SELECT ALL 95 + - 94 + - 18 col2
----
-17

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1770
SELECT + 43 * - - 8 DIV COUNT( * ) + 84
----
428

skipif mysql # not compatible
query I rowsort label-1770
SELECT + 43 * - - 8 / COUNT ( * ) + 84
----
428

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

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

query I rowsort
SELECT DISTINCT + 87 + + 54
----
141

query I rowsort
SELECT ALL - 28 + 99 AS col2
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-1774
SELECT COALESCE ( - - COUNT( * ), + 79 + + COUNT( * ) ) + 71
----
72

skipif mysql # not compatible
query I rowsort label-1774
SELECT COALESCE ( - - COUNT ( * ), + 79 + + COUNT ( * ) ) + 71
----
72

query I rowsort
SELECT DISTINCT + 86 * 92
----
7912

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

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

query I rowsort
SELECT 93 * - + 64
----
-5952

onlyif mysql # aggregate syntax: 
query I rowsort label-1778
SELECT ALL - 96 - 70 - COUNT( * ) AS col0
----
-167

skipif mysql # not compatible
query I rowsort label-1778
SELECT ALL - 96 - 70 - COUNT ( * ) AS col0
----
-167

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1779
SELECT ALL + MAX( ALL 86 ) - + - ( 97 ) DIV 86
----
87

skipif mysql # not compatible
query I rowsort label-1779
SELECT ALL + MAX ( ALL 86 ) - + - ( 97 ) / 86
----
87

query I rowsort
SELECT 89 * + 32 * ( - 23 ) AS col2
----
-65504

query I rowsort
SELECT 25 + + 4 * - ( - 61 )
----
269

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1782
SELECT DISTINCT - COUNT( DISTINCT - CAST( NULL AS SIGNED ) ) DIV + + NULLIF ( - ( + 41 ), 27 )
----
0

skipif mysql # not compatible
query I rowsort label-1782
SELECT DISTINCT - COUNT ( DISTINCT - CAST ( NULL AS INTEGER ) ) / + + NULLIF ( - ( + 41 ), 27 )
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1783
SELECT COUNT( * ) + - - CASE + 14 WHEN + 18 THEN COUNT( * ) ELSE NULL END - CAST( - MAX( + 20 ) AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-1783
SELECT COUNT ( * ) + - - CASE + 14 WHEN + 18 THEN COUNT ( * ) ELSE NULL END - CAST ( - MAX ( + 20 ) AS INTEGER )
----
NULL

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

skipif mysql # not compatible
query I rowsort label-1784
SELECT 8 / + + 17
----
0

query I rowsort
SELECT 18 - - 88 AS col2
----
106

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1786
SELECT ALL CAST( + + 75 AS SIGNED ) * - ( 48 ) * + 10 + NULLIF ( - 98, 66 / 45 - 27 ) * + 79 AS col1
----
-43742

skipif mysql # not compatible
query I rowsort label-1786
SELECT ALL CAST ( + + 75 AS INTEGER ) * - ( 48 ) * + 10 + NULLIF ( - 98, 66 / 45 - 27 ) * + 79 AS col1
----
-43742

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1787
SELECT 27 - + 41 + + CAST( NULL AS DECIMAL ) + 81 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1787
SELECT 27 - + 41 + + CAST ( NULL AS REAL ) + 81 AS col1
----
NULL

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

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

query II rowsort
SELECT ALL 38, - 49 * - + 10 * + 19 AS col0
----
38
9310

query I rowsort
SELECT ALL + 25 * + - 90 * - 89 + 84
----
200334

query II rowsort
SELECT DISTINCT 63, 7 * 44 - 75 col2
----
63
233

onlyif mysql # aggregate syntax: 
query II rowsort label-1792
SELECT - 85, - SUM( + 83 ) AS col0
----
-85
-83

skipif mysql # not compatible
query II rowsort label-1792
SELECT - 85, - SUM ( + 83 ) AS col0
----
-85
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-1793
SELECT - COALESCE ( + SUM( DISTINCT 13 ), + 22 * 0, 63 * - COUNT( * ) + ( + 67 ) ) AS col0
----
-13

skipif mysql # not compatible
query I rowsort label-1793
SELECT - COALESCE ( + SUM ( DISTINCT 13 ), + 22 * 0, 63 * - COUNT ( * ) + ( + 67 ) ) AS col0
----
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-1794
SELECT ALL - SUM( ALL 2 ) AS col2
----
-2

skipif mysql # not compatible
query I rowsort label-1794
SELECT ALL - SUM ( ALL 2 ) AS col2
----
-2

query I rowsort
SELECT + 47 * - 25 * - 66 AS col2
----
77550

query I rowsort
SELECT + ( 50 ) * + 61
----
3050

onlyif mysql # aggregate syntax: 
query I rowsort label-1797
SELECT - ( + + COUNT( * ) ) - 59 + 74
----
14

skipif mysql # not compatible
query I rowsort label-1797
SELECT - ( + + COUNT ( * ) ) - 59 + 74
----
14

onlyif mysql # DIV for integer division: 
query I rowsort label-1798
SELECT ALL 99 + 14 DIV + 63 * 95 - + 86
----
13

skipif mysql # not compatible
query I rowsort label-1798
SELECT ALL 99 + 14 / + 63 * 95 - + 86
----
13

query I rowsort
SELECT - + COALESCE ( + - 28, + + 14 ) AS col0
----
28

query I rowsort
SELECT ALL 13 + - - 20
----
33

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1801
SELECT - ( - COUNT( * ) ) * + 82 + 35 DIV + COUNT( * )
----
117

skipif mysql # not compatible
query I rowsort label-1801
SELECT - ( - COUNT ( * ) ) * + 82 + 35 / + COUNT ( * )
----
117

onlyif mysql # DIV for integer division: 
query I rowsort label-1802
SELECT ALL - 99 + + 33 DIV - 34 + 4
----
-95

skipif mysql # not compatible
query I rowsort label-1802
SELECT ALL - 99 + + 33 / - 34 + 4
----
-95

query I rowsort
SELECT ALL - 93 + - + 55
----
-148

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1805
SELECT + + NULLIF ( CASE 37 WHEN + MAX( 33 ) THEN 18 WHEN + COUNT( * ) THEN 50 * + 0 + + COUNT( * ) ELSE NULL END, - 91 * + 6 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1805
SELECT + + NULLIF ( CASE 37 WHEN + MAX ( 33 ) THEN 18 WHEN + COUNT ( * ) THEN 50 * + 0 + + COUNT ( * ) ELSE NULL END, - 91 * + 6 )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1806
SELECT ALL - CAST( NULL AS SIGNED ) + 91 * - + 9 / 61 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1806
SELECT ALL - CAST ( NULL AS INTEGER ) + 91 * - + 9 / 61 AS col1
----
NULL

query I rowsort
SELECT DISTINCT 84 + - 83 * - 24 AS col1
----
2076

onlyif mysql # aggregate syntax: 
query I rowsort label-1808
SELECT + + 92 * - 10 + - + SUM( 76 ) + + 34 col2
----
-962

skipif mysql # not compatible
query I rowsort label-1808
SELECT + + 92 * - 10 + - + SUM ( 76 ) + + 34 col2
----
-962

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1810
SELECT 94 DIV 46 - - 2 + 4
----
8

skipif mysql # not compatible
query I rowsort label-1810
SELECT 94 / 46 - - 2 + 4
----
8

onlyif mysql # DIV for integer division: 
query I rowsort label-1811
SELECT 77 DIV 82
----
0

skipif mysql # not compatible
query I rowsort label-1811
SELECT 77 / 82
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1812
SELECT CASE - + 49 WHEN + - SUM( - 88 ) THEN + 76 + - ( 88 ) END / 75 + - 49
----
NULL

skipif mysql # not compatible
query I rowsort label-1812
SELECT CASE - + 49 WHEN + - SUM ( - 88 ) THEN + 76 + - ( 88 ) END / 75 + - 49
----
NULL

query I rowsort
SELECT - 55 * - 67
----
3685

query I rowsort
SELECT - 99 + - 84 AS col0
----
-183

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1815
SELECT ALL - COUNT( * ) DIV SUM( ( 11 ) )
----
0

skipif mysql # not compatible
query I rowsort label-1815
SELECT ALL - COUNT ( * ) / SUM ( ( 11 ) )
----
0

query I rowsort
SELECT ALL 64 - - 11
----
75

onlyif mysql # DIV for integer division: 
query I rowsort label-1817
SELECT ALL - COALESCE ( - + 14, - 35, + - 28 ) DIV 52
----
0

skipif mysql # not compatible
query I rowsort label-1817
SELECT ALL - COALESCE ( - + 14, - 35, + - 28 ) / 52
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-1818
SELECT DISTINCT 81 DIV + 13
----
6

skipif mysql # not compatible
query I rowsort label-1818
SELECT DISTINCT 81 / + 13
----
6

query II rowsort
SELECT 9 * - 17, 53 AS col1
----
-153
53

query I rowsort
SELECT DISTINCT 75 - - - ( + 16 )
----
59

query I rowsort
SELECT ALL 10 * + 24 AS col2
----
240

query I rowsort
SELECT 99 * 90 AS col2
----
8910

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1824
SELECT ALL - NULLIF ( - CAST( NULL AS SIGNED ), - 90 ) * 38 * - CASE 84 WHEN NULLIF ( - 42, 64 + COUNT( * ) ) + - ( + 24 ) THEN COUNT( * ) WHEN 32 * - 6 THEN NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1824
SELECT ALL - NULLIF ( - CAST ( NULL AS INTEGER ), - 90 ) * 38 * - CASE 84 WHEN NULLIF ( - 42, 64 + COUNT ( * ) ) + - ( + 24 ) THEN COUNT ( * ) WHEN 32 * - 6 THEN NULL END AS col0
----
NULL

query I rowsort
SELECT 18 + + 78 AS col0
----
96

query I rowsort
SELECT 53 * + ( 15 ) * 33 * - 39
----
-1023165

query I rowsort
SELECT 27 + + 64
----
91

onlyif mysql # aggregate syntax: 
query II rowsort label-1828
SELECT ALL COUNT( DISTINCT + 47 ) AS col0, 27 * ( 97 ) + + 15
----
1
2634

skipif mysql # not compatible
query II rowsort label-1828
SELECT ALL COUNT ( DISTINCT + 47 ) AS col0, 27 * ( 97 ) + + 15
----
1
2634

onlyif mysql # aggregate syntax: 
query I rowsort label-1829
SELECT DISTINCT + - COUNT( * ) + - - SUM( - + ( + 38 ) ) AS col0
----
-39

skipif mysql # not compatible
query I rowsort label-1829
SELECT DISTINCT + - COUNT ( * ) + - - SUM ( - + ( + 38 ) ) AS col0
----
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-1830
SELECT DISTINCT + NULLIF ( - 85, + COUNT( * ) ) + 1 + 95 AS col1
----
11

skipif mysql # not compatible
query I rowsort label-1830
SELECT DISTINCT + NULLIF ( - 85, + COUNT ( * ) ) + 1 + 95 AS col1
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-1831
SELECT DISTINCT + - ( - 63 ) * - - COUNT( ALL + 72 ) * + SUM( + 16 )
----
1008

skipif mysql # not compatible
query I rowsort label-1831
SELECT DISTINCT + - ( - 63 ) * - - COUNT ( ALL + 72 ) * + SUM ( + 16 )
----
1008

onlyif mysql # DIV for integer division: 
query II rowsort label-1832
SELECT ALL - - 60 + - 69, + 50 + 95 DIV ( 82 * - 16 ) col0
----
-9
50

skipif mysql # not compatible
query II rowsort label-1832
SELECT ALL - - 60 + - 69, + 50 + 95 / ( 82 * - 16 ) col0
----
-9
50

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1833
SELECT - CAST( 78 AS SIGNED ) + + 60 * - + 99 * - ( 41 )
----
243462

skipif mysql # not compatible
query I rowsort label-1833
SELECT - CAST ( 78 AS INTEGER ) + + 60 * - + 99 * - ( 41 )
----
243462

query I rowsort
SELECT - 58 * + + 37
----
-2146

onlyif mysql # DIV for integer division: 
query I rowsort label-1835
SELECT ALL + 44 DIV + 97 * 41 * - 78 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-1835
SELECT ALL + 44 / + 97 * 41 * - 78 AS col1
----
0

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1837
SELECT ALL - 53 + + 75 AS col0, + 79 DIV + 86 - COUNT( + 40 )
----
22
-1

skipif mysql # not compatible
query II rowsort label-1837
SELECT ALL - 53 + + 75 AS col0, + 79 / + 86 - COUNT ( + 40 )
----
22
-1

query I rowsort
SELECT - - 42 + - ( - 83 ) * - 16
----
-1286

onlyif mysql # aggregate syntax: 
query I rowsort label-1839
SELECT ALL CASE 47 WHEN 22 + + 25 * 21 THEN MAX( ALL 89 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-1839
SELECT ALL CASE 47 WHEN 22 + + 25 * 21 THEN MAX ( ALL 89 ) END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1840
SELECT + COALESCE ( ( + + 64 ), - 79 ) + - ( - CASE 38 WHEN + COUNT( * ) THEN NULL WHEN CASE 64 WHEN + 9 * - CASE + 91 * 50 WHEN 91 + 66 THEN NULL WHEN 6 / 63 THEN 5 ELSE + ( + 3 ) + 93 * + COUNT( * ) END THEN NULL ELSE 51 END * COUNT( * ) THEN NULL WHEN + 52 THEN - 1 * + 7 ELSE NULL END ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1840
SELECT + COALESCE ( ( + + 64 ), - 79 ) + - ( - CASE 38 WHEN + COUNT ( * ) THEN NULL WHEN CASE 64 WHEN + 9 * - CASE + 91 * 50 WHEN 91 + 66 THEN NULL WHEN 6 / 63 THEN 5 ELSE + ( + 3 ) + 93 * + COUNT ( * ) END THEN NULL ELSE 51 END * COUNT ( * ) THEN NULL WHEN + 52 THEN - 1 * + 7 ELSE NULL END ) AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1841
SELECT + 17 + + 58 + + + 22 DIV - 1 AS col2
----
53

skipif mysql # not compatible
query I rowsort label-1841
SELECT + 17 + + 58 + + + 22 / - 1 AS col2
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-1842
SELECT ALL - SUM( + 94 ) + + 66
----
-28

skipif mysql # not compatible
query I rowsort label-1842
SELECT ALL - SUM ( + 94 ) + + 66
----
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-1843
SELECT ALL - CASE + 90 WHEN 20 + + 85 THEN + NULLIF ( - 18, 65 * - 89 ) ELSE - CASE + NULLIF ( + 72, + 10 + + MAX( NULLIF ( 12, 90 * + 53 + + 76 ) ) ) WHEN 55 - 32 * + 6 THEN COUNT( * ) WHEN + 57 THEN NULL WHEN 37 THEN COUNT( * ) ELSE NULL END END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1843
SELECT ALL - CASE + 90 WHEN 20 + + 85 THEN + NULLIF ( - 18, 65 * - 89 ) ELSE - CASE + NULLIF ( + 72, + 10 + + MAX ( NULLIF ( 12, 90 * + 53 + + 76 ) ) ) WHEN 55 - 32 * + 6 THEN COUNT ( * ) WHEN + 57 THEN NULL WHEN 37 THEN COUNT ( * ) ELSE NULL END END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1844
SELECT COUNT( * ) * - 14 + + - 28 + - - ( - 2 )
----
-44

skipif mysql # not compatible
query I rowsort label-1844
SELECT COUNT ( * ) * - 14 + + - 28 + - - ( - 2 )
----
-44

onlyif mysql # DIV for integer division: 
query I rowsort label-1845
SELECT + + 26 + 49 DIV 41
----
27

skipif mysql # not compatible
query I rowsort label-1845
SELECT + + 26 + 49 / 41
----
27

query I rowsort
SELECT DISTINCT 31 * + 53
----
1643

onlyif mysql # DIV for integer division: 
query I rowsort label-1847
SELECT ALL - 68 DIV + + 66 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-1847
SELECT ALL - 68 / + + 66 AS col1
----
-1

query I rowsort
SELECT + 52 * + + 68 col2
----
3536

onlyif mysql # aggregate syntax: 
query I rowsort label-1849
SELECT + CASE - NULLIF ( + + 25, + + 55 + - 31 + - 16 ) WHEN CASE - 47 WHEN - 27 / + ( ( 98 ) ) THEN 77 * + 46 + AVG ( ALL 33 ) WHEN - ( ( - 75 ) ) * 32 + 85 THEN 94 + + COUNT( + 11 + + 11 ) * COUNT( * ) WHEN + 23 THEN 54 + COUNT( * ) END THEN + 85 ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1849
SELECT + CASE - NULLIF ( + + 25, + + 55 + - 31 + - 16 ) WHEN CASE - 47 WHEN - 27 / + ( ( 98 ) ) THEN 77 * + 46 + AVG ( ALL 33 ) WHEN - ( ( - 75 ) ) * 32 + 85 THEN 94 + + COUNT ( + 11 + + 11 ) * COUNT ( * ) WHEN + 23 THEN 54 + COUNT ( * ) END THEN + 85 ELSE NULL END AS col2
----
NULL

query I rowsort
SELECT + NULLIF ( 49, 13 )
----
49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1851
SELECT + CASE 14 WHEN - - 31 * - 90 THEN - 10 * CASE 67 * COUNT( * ) WHEN - CASE + 16 WHEN NULLIF ( + 84, ( CAST( NULL AS DECIMAL ) ) + 96 ) THEN 98 WHEN + COUNT( DISTINCT - 16 ) + COUNT( * ) THEN - COUNT( ALL 71 ) + 43 WHEN 71 THEN NULL END * - 91 THEN - 91 END WHEN 77 * + SUM( + 36 ) + NULLIF ( + SUM( - 64 ), CASE - COUNT( * ) WHEN + 12 THEN 51 * + 21 + 17 ELSE NULL END ) THEN 19 / + CAST( NULL AS SIGNED ) + ( 79 + + SUM( - 51 + 84 * + 64 ) ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1851
SELECT + CASE 14 WHEN - - 31 * - 90 THEN - 10 * CASE 67 * COUNT ( * ) WHEN - CASE + 16 WHEN NULLIF ( + 84, ( CAST ( NULL AS REAL ) ) + 96 ) THEN 98 WHEN + COUNT ( DISTINCT - 16 ) + COUNT ( * ) THEN - COUNT ( ALL 71 ) + 43 WHEN 71 THEN NULL END * - 91 THEN - 91 END WHEN 77 * + SUM ( + 36 ) + NULLIF ( + SUM ( - 64 ), CASE - COUNT ( * ) WHEN + 12 THEN 51 * + 21 + 17 ELSE NULL END ) THEN 19 / + CAST ( NULL AS INTEGER ) + ( 79 + + SUM ( - 51 + 84 * + 64 ) ) END AS col2
----
NULL

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

skipif mysql # not compatible
query I rowsort label-1852
SELECT + ( - + MAX ( ALL + + ( + - 19 ) ) ) / 62
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1853
SELECT + 22 * - 74 * + 26 * - COUNT( - 70 ) DIV - COALESCE ( COUNT( * ), CASE + 82 WHEN AVG ( CAST( NULL AS SIGNED ) ) THEN + 13 END + - ( 1 ) )
----
-42328

skipif mysql # not compatible
query I rowsort label-1853
SELECT + 22 * - 74 * + 26 * - COUNT ( - 70 ) / - COALESCE ( COUNT ( * ), CASE + 82 WHEN AVG ( CAST ( NULL AS INTEGER ) ) THEN + 13 END + - ( 1 ) )
----
-42328

query I rowsort
SELECT CASE - - 65 WHEN + 25 THEN + - ( - COALESCE ( 15, 80 ) ) END
----
NULL

query I rowsort
SELECT CASE - 47 WHEN 44 THEN 57 + + 30 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1856
SELECT + 62 * + MIN( + 48 ) col2
----
2976

skipif mysql # not compatible
query I rowsort label-1856
SELECT + 62 * + MIN ( + 48 ) col2
----
2976

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1857
SELECT ALL + 7 * - 3 DIV + 3 + + COUNT( * ) - - 47 DIV - COUNT( DISTINCT - 80 + 33 )
----
-53

skipif mysql # not compatible
query I rowsort label-1857
SELECT ALL + 7 * - 3 / + 3 + + COUNT ( * ) - - 47 / - COUNT ( DISTINCT - 80 + 33 )
----
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-1858
SELECT SUM( - 75 ) AS col1
----
-75

skipif mysql # not compatible
query I rowsort label-1858
SELECT SUM ( - 75 ) AS col1
----
-75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1859
SELECT ALL COUNT( * ) * + - CAST( NULL AS SIGNED ) + - 71 AS col2, 69 col1
----
NULL
69

skipif mysql # not compatible
query II rowsort label-1859
SELECT ALL COUNT ( * ) * + - CAST ( NULL AS INTEGER ) + - 71 AS col2, 69 col1
----
NULL
69

query II rowsort
SELECT ALL 89 * + 37 + + 20 AS col2, 52 - + - 17 col2
----
3313
69

query I rowsort
SELECT + 26 * - 26 AS col2
----
-676

onlyif mysql # aggregate syntax: 
query II rowsort label-1862
SELECT - 32 + - COUNT( * ) + - 82 AS col0, 49 - 9 - ( 12 ) * NULLIF ( COUNT( ALL + 93 ), - 26 * + 5 + 60 )
----
-115
28

skipif mysql # not compatible
query II rowsort label-1862
SELECT - 32 + - COUNT ( * ) + - 82 AS col0, 49 - 9 - ( 12 ) * NULLIF ( COUNT ( ALL + 93 ), - 26 * + 5 + 60 )
----
-115
28

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1866
SELECT + COALESCE ( - + SUM( - 95 ), 61 ) - - + 12 AS col1
----
107

skipif mysql # not compatible
query I rowsort label-1866
SELECT + COALESCE ( - + SUM ( - 95 ), 61 ) - - + 12 AS col1
----
107

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1867
SELECT ALL + NULLIF ( + 30, + 86 + 77 * CASE + CAST( NULL AS DECIMAL ) WHEN - CAST( - 39 AS SIGNED ) + 80 THEN 65 * + ( 92 / 77 ) - + 51 WHEN - 61 * - COUNT( * ) THEN + 4 END - 32 ) col1
----
30

skipif mysql # not compatible
query I rowsort label-1867
SELECT ALL + NULLIF ( + 30, + 86 + 77 * CASE + CAST ( NULL AS REAL ) WHEN - CAST ( - 39 AS INTEGER ) + 80 THEN 65 * + ( 92 / 77 ) - + 51 WHEN - 61 * - COUNT ( * ) THEN + 4 END - 32 ) col1
----
30

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1868
SELECT DISTINCT 16 * + SUM( - + CAST( NULL AS SIGNED ) ) - - + 76 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1868
SELECT DISTINCT 16 * + SUM ( - + CAST ( NULL AS INTEGER ) ) - - + 76 AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1869
SELECT DISTINCT - CAST( + - ( + 84 ) AS SIGNED ) + + + 49
----
133

skipif mysql # not compatible
query I rowsort label-1869
SELECT DISTINCT - CAST ( + - ( + 84 ) AS INTEGER ) + + + 49
----
133

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1870
SELECT ALL NULLIF ( + - ( - CAST( MAX( - 69 ) AS SIGNED ) ), - 90 * + 54 )
----
-69

skipif mysql # not compatible
query I rowsort label-1870
SELECT ALL NULLIF ( + - ( - CAST ( MAX ( - 69 ) AS INTEGER ) ), - 90 * + 54 )
----
-69

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

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

query I rowsort
SELECT DISTINCT + 24 + - 44
----
-20

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1874
SELECT - 92 * MIN( - - 61 ) * 21 * 21 * + 50 + - 44 + 56
----
-123744588

skipif mysql # not compatible
query I rowsort label-1874
SELECT - 92 * MIN ( - - 61 ) * 21 * 21 * + 50 + - 44 + 56
----
-123744588

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1876
SELECT - 58 * + - COUNT( ALL 36 )
----
58

skipif mysql # not compatible
query I rowsort label-1876
SELECT - 58 * + - COUNT ( ALL 36 )
----
58

query I rowsort
SELECT - + 72 * - - 84
----
-6048

query I rowsort
SELECT ALL + 66 * + - 59 * + 36 * + 23 AS col1
----
-3224232

query I rowsort
SELECT DISTINCT - 8 - 97
----
-105

onlyif mysql # aggregate syntax: 
query I rowsort label-1880
SELECT DISTINCT + 50 * 24 + COUNT( * ) * + 6 AS col2
----
1206

skipif mysql # not compatible
query I rowsort label-1880
SELECT DISTINCT + 50 * 24 + COUNT ( * ) * + 6 AS col2
----
1206

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1881
SELECT DISTINCT + - 11 DIV + + 59 * MIN( + 2 )
----
0

skipif mysql # not compatible
query I rowsort label-1881
SELECT DISTINCT + - 11 / + + 59 * MIN ( + 2 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1882
SELECT ALL + COALESCE ( 8, 20 + + SUM( ALL 85 ) + COUNT( * ) * ( - 33 ) ) * CASE - ( - ( + ( + 11 ) ) ) WHEN NULLIF ( - 45, 12 ) THEN - MAX( - 92 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-1882
SELECT ALL + COALESCE ( 8, 20 + + SUM ( ALL 85 ) + COUNT ( * ) * ( - 33 ) ) * CASE - ( - ( + ( + 11 ) ) ) WHEN NULLIF ( - 45, 12 ) THEN - MAX ( - 92 ) END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1883
SELECT DISTINCT - ( - 99 ) * 59 + ( - + 40 ) + ( - COUNT( - 30 ) )
----
5800

skipif mysql # not compatible
query I rowsort label-1883
SELECT DISTINCT - ( - 99 ) * 59 + ( - + 40 ) + ( - COUNT ( - 30 ) )
----
5800

onlyif mysql # aggregate syntax: 
query II rowsort label-1884
SELECT DISTINCT + 80 AS col2, - CASE + 98 WHEN - + 87 THEN NULL WHEN + COUNT( * ) THEN + 48 ELSE NULL END * 25 + + 42 * 87
----
80
NULL

skipif mysql # not compatible
query II rowsort label-1884
SELECT DISTINCT + 80 AS col2, - CASE + 98 WHEN - + 87 THEN NULL WHEN + COUNT ( * ) THEN + 48 ELSE NULL END * 25 + + 42 * 87
----
80
NULL

query I rowsort
SELECT ALL - 64 * 77 AS col1
----
-4928

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1887
SELECT + CAST( NULL AS SIGNED ) / + 43 * - - 67 + - - COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1887
SELECT + CAST ( NULL AS INTEGER ) / + 43 * - - 67 + - - COUNT ( * ) AS col1
----
NULL

query I rowsort
SELECT - 75 + + - 41 + + 52
----
-64

query I rowsort
SELECT + CASE + 59 WHEN - 14 THEN NULL WHEN 70 THEN - - 87 ELSE NULL END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1890
SELECT - 67 DIV + 80 * - 25 + + 57 * + + 1 * - 64
----
-3648

skipif mysql # not compatible
query I rowsort label-1890
SELECT - 67 / + 80 * - 25 + + 57 * + + 1 * - 64
----
-3648

query I rowsort
SELECT + 98 * + - 4
----
-392

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

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

query II rowsort
SELECT ALL + 82 AS col1, + 62 AS col1
----
82
62

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1894
SELECT - 69 + - + 79 - - CAST( + + CASE + 9 WHEN - - ( 94 ) + + 91 THEN - 44 * 30 - - 79 END AS SIGNED ) / + 36 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1894
SELECT - 69 + - + 79 - - CAST ( + + CASE + 9 WHEN - - ( 94 ) + + 91 THEN - 44 * 30 - - 79 END AS INTEGER ) / + 36 AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1895
SELECT DISTINCT + CASE 24 WHEN - + 68 THEN NULL WHEN + NULLIF ( 41, + + 80 * 53 ) + CAST( SUM( - 50 ) + 32 AS SIGNED ) THEN 16 * - 23 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1895
SELECT DISTINCT + CASE 24 WHEN - + 68 THEN NULL WHEN + NULLIF ( 41, + + 80 * 53 ) + CAST ( SUM ( - 50 ) + 32 AS INTEGER ) THEN 16 * - 23 END AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1896
SELECT DISTINCT + 13 DIV 83 + - 93
----
-93

skipif mysql # not compatible
query I rowsort label-1896
SELECT DISTINCT + 13 / 83 + - 93
----
-93

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1898
SELECT DISTINCT + ( - SUM( DISTINCT 43 ) ) DIV 44 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-1898
SELECT DISTINCT + ( - SUM ( DISTINCT 43 ) ) / 44 AS col2
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1899
SELECT + COUNT( * ) + - 40 col0, 18 - 87 + - + 57 + - - 4 DIV + 60
----
-39
-126

skipif mysql # not compatible
query II rowsort label-1899
SELECT + COUNT ( * ) + - 40 col0, 18 - 87 + - + 57 + - - 4 / + 60
----
-39
-126

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

onlyif mysql # DIV for integer division: 
query II rowsort label-1901
SELECT + NULLIF ( - 7, + 74 ) DIV + 68 AS col0, 13 col1
----
0
13

skipif mysql # not compatible
query II rowsort label-1901
SELECT + NULLIF ( - 7, + 74 ) / + 68 AS col0, 13 col1
----
0
13

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1902
SELECT 62 + + + SUM( + + 87 ) DIV 18 * - + ( + COUNT( * ) ) + 30 AS col1
----
88

skipif mysql # not compatible
query I rowsort label-1902
SELECT 62 + + + SUM ( + + 87 ) / 18 * - + ( + COUNT ( * ) ) + 30 AS col1
----
88

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

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

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

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

query I rowsort
SELECT ALL 73 + 74 * - 49
----
-3553

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1906
SELECT COALESCE ( + 82, + 58 ) * ( - + 56 ) + - + 38 + + ( COUNT( * ) + NULLIF ( - 28, + 81 * + 83 + - 81 ) ) DIV + 77 AS col0
----
-4630

skipif mysql # not compatible
query I rowsort label-1906
SELECT COALESCE ( + 82, + 58 ) * ( - + 56 ) + - + 38 + + ( COUNT ( * ) + NULLIF ( - 28, + 81 * + 83 + - 81 ) ) / + 77 AS col0
----
-4630

onlyif mysql # aggregate syntax: 
query II rowsort label-1907
SELECT + 88 AS col2, + 99 - 52 + MAX( + 26 ) AS col1
----
88
73

skipif mysql # not compatible
query II rowsort label-1907
SELECT + 88 AS col2, + 99 - 52 + MAX ( + 26 ) AS col1
----
88
73

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1908
SELECT 22 DIV 37 + - + CAST( 45 AS SIGNED ) + - COALESCE ( - 26, 53 + - COALESCE ( 31, 7 + - 21 * CASE WHEN - 58 - 51 IS NULL THEN NULL WHEN NOT 99 * 99 NOT IN ( 67 ) THEN 92 + COUNT( * ) ELSE NULL END ) ) col2
----
-19

skipif mysql # not compatible
query I rowsort label-1908
SELECT 22 / 37 + - + CAST ( 45 AS INTEGER ) + - COALESCE ( - 26, 53 + - COALESCE ( 31, 7 + - 21 * CASE WHEN - 58 - 51 IS NULL THEN NULL WHEN NOT 99 * 99 NOT IN ( 67 ) THEN 92 + COUNT ( * ) ELSE NULL END ) ) col2
----
-19

query II rowsort
SELECT + 26 + 20 AS col2, - 90 AS col0
----
46
-90

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

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

query I rowsort
SELECT ALL 5 + - 26 * + 24
----
-619

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

query I rowsort
SELECT ALL 88 + - 4
----
84

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

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

query I rowsort
SELECT ALL + - 92 * + 87
----
-8004

onlyif mysql # aggregate syntax: 
query II rowsort label-1916
SELECT ALL 21 AS col0, 92 * - 98 + COUNT( * )
----
21
-9015

skipif mysql # not compatible
query II rowsort label-1916
SELECT ALL 21 AS col0, 92 * - 98 + COUNT ( * )
----
21
-9015

query II rowsort
SELECT DISTINCT + 65 AS col1, 64 + - 90 AS col2
----
65
-26

query I rowsort
SELECT - - NULLIF ( + 88, - 80 + - 8 - - - 42 * - - 43 )
----
88

query I rowsort
SELECT ALL - 70 * 23
----
-1610

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

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

query I rowsort
SELECT - 51 + - 90 AS col2
----
-141

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

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

query I rowsort
SELECT ALL 35 * 1
----
35

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1924
SELECT ALL 56 AS col1, + CAST( + 63 AS SIGNED ) * + 98 + + 1
----
56
6175

skipif mysql # not compatible
query II rowsort label-1924
SELECT ALL 56 AS col1, + CAST ( + 63 AS INTEGER ) * + 98 + + 1
----
56
6175

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1925
SELECT DISTINCT + MIN( 85 ) * + 58 - + CAST( NULL AS SIGNED ) * - + COUNT( * ) * + 19 / AVG ( DISTINCT - NULLIF ( 93, + 65 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-1925
SELECT DISTINCT + MIN ( 85 ) * + 58 - + CAST ( NULL AS INTEGER ) * - + COUNT ( * ) * + 19 / AVG ( DISTINCT - NULLIF ( 93, + 65 ) )
----
NULL

query II rowsort
SELECT DISTINCT + 83 AS col0, - 31
----
83
-31

onlyif mysql # DIV for integer division: 
query I rowsort label-1927
SELECT ALL + 54 DIV 7 AS col2
----
7

skipif mysql # not compatible
query I rowsort label-1927
SELECT ALL + 54 / 7 AS col2
----
7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1928
SELECT + NULLIF ( + CAST( + 18 AS SIGNED ), - - 40 ) + + 84 + + 27 + + COUNT( * ) AS col1
----
130

skipif mysql # not compatible
query I rowsort label-1928
SELECT + NULLIF ( + CAST ( + 18 AS INTEGER ), - - 40 ) + + 84 + + 27 + + COUNT ( * ) AS col1
----
130

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1930
SELECT COUNT( * ) + - 90 + - 59 * - 98 - - + 23 * 67 - + 76 AS col2
----
7158

skipif mysql # not compatible
query I rowsort label-1930
SELECT COUNT ( * ) + - 90 + - 59 * - 98 - - + 23 * 67 - + 76 AS col2
----
7158

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1932
SELECT 12 * - - 82 * - COUNT( * ) * 98 AS col0
----
-96432

skipif mysql # not compatible
query I rowsort label-1932
SELECT 12 * - - 82 * - COUNT ( * ) * 98 AS col0
----
-96432

query I rowsort
SELECT DISTINCT - 88 * - - 60 * + 7 AS col2
----
-36960

onlyif mysql # aggregate syntax: 
query I rowsort label-1934
SELECT ALL - COUNT( ALL - 35 ) + - + 64 + 13 col1
----
-52

skipif mysql # not compatible
query I rowsort label-1934
SELECT ALL - COUNT ( ALL - 35 ) + - + 64 + 13 col1
----
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-1935
SELECT 27 * 38 * 26 * + NULLIF ( - + 37, - + 57 * - 65 * 85 + - COUNT( * ) + + 76 ) * 77
----
-75999924

skipif mysql # not compatible
query I rowsort label-1935
SELECT 27 * 38 * 26 * + NULLIF ( - + 37, - + 57 * - 65 * 85 + - COUNT ( * ) + + 76 ) * 77
----
-75999924

onlyif mysql # aggregate syntax: 
query II rowsort label-1936
SELECT ALL - COUNT( * ) + - 57 AS col2, + 4 * - + NULLIF ( - - COUNT( DISTINCT 6 ), 84 )
----
-58
-4

skipif mysql # not compatible
query II rowsort label-1936
SELECT ALL - COUNT ( * ) + - 57 AS col2, + 4 * - + NULLIF ( - - COUNT ( DISTINCT 6 ), 84 )
----
-58
-4

query I rowsort
SELECT DISTINCT + 15 * + ( + 49 )
----
735

onlyif mysql # aggregate syntax: 
query I rowsort label-1938
SELECT 37 * SUM( - 44 )
----
-1628

skipif mysql # not compatible
query I rowsort label-1938
SELECT 37 * SUM ( - 44 )
----
-1628

query I rowsort
SELECT ALL + 43 + + 93 + + 3 * + 60 AS col0
----
316

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

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

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

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

query I rowsort
SELECT ALL 9 + - - 93 + - 76
----
26

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

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

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

skipif mysql # not compatible
query I rowsort label-1944
SELECT COUNT ( - 92 ) * - COUNT ( DISTINCT + 54 ) col1
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-1945
SELECT ALL - 43 + 49, MAX( DISTINCT 84 ) AS col0
----
6
84

skipif mysql # not compatible
query II rowsort label-1945
SELECT ALL - 43 + 49, MAX ( DISTINCT 84 ) AS col0
----
6
84

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1946
SELECT 43 - - - NULLIF ( 15, - 38 * + + CAST( NULL AS SIGNED ) ) + + 28 - + 92 + COUNT( * ) AS col2
----
-35

skipif mysql # not compatible
query I rowsort label-1946
SELECT 43 - - - NULLIF ( 15, - 38 * + + CAST ( NULL AS INTEGER ) ) + + 28 - + 92 + COUNT ( * ) AS col2
----
-35

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

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

query I rowsort
SELECT ALL 77 - - NULLIF ( - 31, + - 89 * + 50 * + 76 - - 76 + - 45 ) * 25
----
-698

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

skipif mysql # not compatible
query I rowsort label-1949
SELECT 29 * 15 + - COUNT ( * ) AS col0
----
434

query I rowsort
SELECT ALL + 65 * - 5 * - 62 * + 46 / CASE 77 WHEN + + 92 * 1 + + 76 THEN - 94 + 36 END + 50 * - CASE - COALESCE ( 76, 5, - 11 + - 23 ) - + 37 WHEN 36 + 66 THEN 47 ELSE - 46 / - 74 + 29 END AS col1
----
NULL

query I rowsort
SELECT + 90 * 10 + + 5 - + 64 * + ( - ( + + 25 ) )
----
2505

query I rowsort
SELECT ALL - NULLIF ( + 69, 1 )
----
-69

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

query I rowsort
SELECT 6 + - - 29 * - + 34 - - 12 * - 73 + 12 AS col0
----
-1844

query I rowsort
SELECT + 74 / + 17 - + CASE 58 WHEN - ( - 59 ) THEN + 29 * ( 36 * 13 + 60 ) WHEN + 61 + 29 THEN NULL ELSE NULL END * 64 AS col2
----
NULL

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

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

query I rowsort
SELECT + 83 * 65
----
5395

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1959
SELECT + MIN( + + CAST( NULL AS SIGNED ) ) AS col0, - 1 - + 68
----
NULL
-69

skipif mysql # not compatible
query II rowsort label-1959
SELECT + MIN ( + + CAST ( NULL AS INTEGER ) ) AS col0, - 1 - + 68
----
NULL
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-1960
SELECT + 40 + + MIN( ALL + 56 ) + - - 18 AS col0
----
114

skipif mysql # not compatible
query I rowsort label-1960
SELECT + 40 + + MIN ( ALL + 56 ) + - - 18 AS col0
----
114

query I rowsort
SELECT - 49 * 26 + + 44 AS col0
----
-1230

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1962
SELECT COUNT( * ) DIV + 54, - 28 AS col1
----
0
-28

skipif mysql # not compatible
query II rowsort label-1962
SELECT COUNT ( * ) / + 54, - 28 AS col1
----
0
-28

query I rowsort
SELECT 54 * + 74 - ( 9 ) AS col0
----
3987

onlyif mysql # aggregate syntax: 
query I rowsort label-1964
SELECT MAX( + + 85 ) * - 6 AS col1
----
-510

skipif mysql # not compatible
query I rowsort label-1964
SELECT MAX ( + + 85 ) * - 6 AS col1
----
-510

onlyif mysql # aggregate syntax: 
query I rowsort label-1965
SELECT - NULLIF ( + COUNT( * ), + 81 * + COUNT( * ) + 92 * + COUNT( * ) )
----
-1

skipif mysql # not compatible
query I rowsort label-1965
SELECT - NULLIF ( + COUNT ( * ), + 81 * + COUNT ( * ) + 92 * + COUNT ( * ) )
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1966
SELECT ALL SUM( + 78 ) + - CAST( NULL AS SIGNED ) / + 16 * 57 + + + 50
----
NULL

skipif mysql # not compatible
query I rowsort label-1966
SELECT ALL SUM ( + 78 ) + - CAST ( NULL AS INTEGER ) / + 16 * 57 + + + 50
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1967
SELECT COUNT( * ) - - 11 * + 85 * - + CAST( - + 72 AS SIGNED ) + - 98 AS col0, 1
----
67223
1

skipif mysql # not compatible
query II rowsort label-1967
SELECT COUNT ( * ) - - 11 * + 85 * - + CAST ( - + 72 AS INTEGER ) + - 98 AS col0, 1
----
67223
1

query II rowsort
SELECT 72 AS col2, COALESCE ( 5, + 50 ) AS col0
----
72
5

query I rowsort
SELECT 47 * - - 78 col0
----
3666

onlyif mysql # aggregate syntax: 
query II rowsort label-1970
SELECT ALL + COUNT( * ) + - COUNT( + 16 ) AS col2, + COUNT( - ( - ( + - 43 ) ) )
----
0
1

skipif mysql # not compatible
query II rowsort label-1970
SELECT ALL + COUNT ( * ) + - COUNT ( + 16 ) AS col2, + COUNT ( - ( - ( + - 43 ) ) )
----
0
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1971
SELECT - MAX( - 23 ) AS col2
----
23

skipif mysql # not compatible
query I rowsort label-1971
SELECT - MAX ( - 23 ) AS col2
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-1972
SELECT COALESCE ( - NULLIF ( - - NULLIF ( + 84, 13 * + + COUNT( 82 ) ), - 13 + + 25 * COUNT( * ) ), 65, 30 - 20 )
----
-84

skipif mysql # not compatible
query I rowsort label-1972
SELECT COALESCE ( - NULLIF ( - - NULLIF ( + 84, 13 * + + COUNT ( 82 ) ), - 13 + + 25 * COUNT ( * ) ), 65, 30 - 20 )
----
-84

query I rowsort
SELECT - 71 * - + 31 + + 63 + + 97 + - ( 84 ) AS col2
----
2277

query I rowsort
SELECT 53 - + + 46 AS col0
----
7

onlyif mysql # DIV for integer division: 
query I rowsort label-1975
SELECT 48 DIV - COALESCE ( - - 53, + 74, - 20 * - + 62 ) + - + 43
----
-43

skipif mysql # not compatible
query I rowsort label-1975
SELECT 48 / - COALESCE ( - - 53, + 74, - 20 * - + 62 ) + - + 43
----
-43

query I rowsort
SELECT - 92 * 62
----
-5704

query II rowsort
SELECT ALL + 26 * + 27 + 40 * - - ( + + 29 ) * + 43 AS col0, NULLIF ( - 94, AVG ( DISTINCT 30 ) ) AS col1
----
50582
-94

query I rowsort
SELECT + 3 * 31 * NULLIF ( 79, ( + 33 ) ) AS col0
----
7347

query I rowsort
SELECT NULLIF ( 0, - 82 + - 10 )
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1980
SELECT ALL 8 * + - COALESCE ( + COUNT( ALL + 91 ), 68 DIV - COUNT( * ), - + ( + - 66 ) * COALESCE ( - 54, 56 * - NULLIF ( 4 * ( NULLIF ( - 77, + 59 ) ), - 12 ) ) ) + + COALESCE ( 90, + 79 + + 78 )
----
82

skipif mysql # not compatible
query I rowsort label-1980
SELECT ALL 8 * + - COALESCE ( + COUNT ( ALL + 91 ), 68 / - COUNT ( * ), - + ( + - 66 ) * COALESCE ( - 54, 56 * - NULLIF ( 4 * ( NULLIF ( - 77, + 59 ) ), - 12 ) ) ) + + COALESCE ( 90, + 79 + + 78 )
----
82

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1981
SELECT + SUM( + 84 ) + + CAST( - 35 AS DECIMAL ) * - 32 / 19 * + 72 * + ( CASE 94 WHEN - 52 THEN + 45 END ) + 99 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1981
SELECT + SUM ( + 84 ) + + CAST ( - 35 AS REAL ) * - 32 / 19 * + 72 * + ( CASE 94 WHEN - 52 THEN + 45 END ) + 99 AS col1
----
NULL

query II rowsort
SELECT + 75 AS col1, 1 AS col0
----
75
1

query I rowsort
SELECT ALL + COALESCE ( + 81, - 64 + 6 )
----
81

query I rowsort
SELECT DISTINCT - 32 * - 7 + - 52
----
172

query I rowsort
SELECT ALL - 39 * + 62
----
-2418

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

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

query I rowsort
SELECT + 33 * - ( 26 ) + 44 AS col2
----
-814

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1988
SELECT - + COUNT( * ) DIV 87 * - 3 col2
----
0

skipif mysql # not compatible
query I rowsort label-1988
SELECT - + COUNT ( * ) / 87 * - 3 col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1989
SELECT ALL + 36 * + + NULLIF ( + + 37, - 40 * ( CAST( NULL AS SIGNED ) ) + + 40 ) * - 80 * COUNT( * ) AS col2
----
-106560

skipif mysql # not compatible
query I rowsort label-1989
SELECT ALL + 36 * + + NULLIF ( + + 37, - 40 * ( CAST ( NULL AS INTEGER ) ) + + 40 ) * - 80 * COUNT ( * ) AS col2
----
-106560

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-1990
SELECT DISTINCT + COUNT( * ), + 93 + - 26 * 20 - + 58 + - COUNT( ALL + + 10 ) * + ( + 14 ) * - CAST( NULL AS DECIMAL ) col0
----
1
NULL

skipif mysql # not compatible
query II rowsort label-1990
SELECT DISTINCT + COUNT ( * ), + 93 + - 26 * 20 - + 58 + - COUNT ( ALL + + 10 ) * + ( + 14 ) * - CAST ( NULL AS REAL ) col0
----
1
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1991
SELECT + + COALESCE ( + 85, - + 3 ) AS col2, + ( - + COUNT( * ) ) + + COUNT( * ) * SUM( DISTINCT 28 ) + - 65
----
85
-38

skipif mysql # not compatible
query II rowsort label-1991
SELECT + + COALESCE ( + 85, - + 3 ) AS col2, + ( - + COUNT ( * ) ) + + COUNT ( * ) * SUM ( DISTINCT 28 ) + - 65
----
85
-38

query I rowsort
SELECT - + CASE - - 6 WHEN 15 THEN + - 37 + + 2 END + - - NULLIF ( ( + - 62 ), + 0 )
----
NULL

query I rowsort
SELECT ALL 46 * - 26 + - 71 - 68 + - - 0 col2
----
-1335

query II rowsort
SELECT ALL + 79, 13 * 78 AS col1
----
79
1014

query I rowsort
SELECT - 11 * + - 50
----
550

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1997
SELECT + 25 * - COUNT( * ) * - COALESCE ( - 33, - - 54 ) + 70 AS col0, + ( - COUNT( * ) ) * + 76
----
-755
-76

skipif mysql # not compatible
query II rowsort label-1997
SELECT + 25 * - COUNT ( * ) * - COALESCE ( - 33, - - 54 ) + 70 AS col0, + ( - COUNT ( * ) ) * + 76
----
-755
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-1998
SELECT DISTINCT - COALESCE ( + 24, - 52 * + 15 + - 7, - 32 * - + 60 + - + 19 + + CASE 0 WHEN + ( COUNT( * ) ) * + 42 THEN 21 WHEN 29 THEN 71 * 84 WHEN 61 THEN NULL ELSE NULL END ) * + 38
----
-912

skipif mysql # not compatible
query I rowsort label-1998
SELECT DISTINCT - COALESCE ( + 24, - 52 * + 15 + - 7, - 32 * - + 60 + - + 19 + + CASE 0 WHEN + ( COUNT ( * ) ) * + 42 THEN 21 WHEN 29 THEN 71 * 84 WHEN 61 THEN NULL ELSE NULL END ) * + 38
----
-912

query I rowsort
SELECT - + 98 * - 98
----
9604

onlyif mysql # aggregate syntax: 
query I rowsort label-2000
SELECT ALL - MAX( 25 ) * 76 * + 21 AS col0
----
-39900

skipif mysql # not compatible
query I rowsort label-2000
SELECT ALL - MAX ( 25 ) * 76 * + 21 AS col0
----
-39900

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

skipif mysql # not compatible
query II rowsort label-2001
SELECT - COUNT ( * ) + - CAST ( NULL AS INTEGER ) + - - 45 col1, 90 col0
----
NULL
90

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2002
SELECT + 70 - CAST( + 18 AS SIGNED ) AS col2
----
52

skipif mysql # not compatible
query I rowsort label-2002
SELECT + 70 - CAST ( + 18 AS INTEGER ) AS col2
----
52

query I rowsort
SELECT - 13 * - 10 * + 11 + 32
----
1462

onlyif mysql # aggregate syntax: 
query I rowsort label-2004
SELECT + 83 * ( + CASE COUNT( * ) WHEN ( + 86 ) + - 21 * - 94 THEN NULL WHEN COUNT( * ) THEN - 87 ELSE NULL END )
----
-7221

skipif mysql # not compatible
query I rowsort label-2004
SELECT + 83 * ( + CASE COUNT ( * ) WHEN ( + 86 ) + - 21 * - 94 THEN NULL WHEN COUNT ( * ) THEN - 87 ELSE NULL END )
----
-7221

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2006
SELECT - - 72, - 2 + COUNT( ALL 82 ) + + CAST( NULL AS SIGNED ) + + 62 AS col1
----
72
NULL

skipif mysql # not compatible
query II rowsort label-2006
SELECT - - 72, - 2 + COUNT ( ALL 82 ) + + CAST ( NULL AS INTEGER ) + + 62 AS col1
----
72
NULL

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2008
SELECT - NULLIF ( + 64, MIN( DISTINCT - 86 ) / CAST( NULL AS SIGNED ) )
----
-64

skipif mysql # not compatible
query I rowsort label-2008
SELECT - NULLIF ( + 64, MIN ( DISTINCT - 86 ) / CAST ( NULL AS INTEGER ) )
----
-64

query II rowsort
SELECT - 70 + 30 AS col2, - 12 col2
----
-40
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-2010
SELECT ALL - COUNT( * ) + - + 38 col1
----
-39

skipif mysql # not compatible
query I rowsort label-2010
SELECT ALL - COUNT ( * ) + - + 38 col1
----
-39

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2011
SELECT + 46 + + COUNT( * ) - + 37 * + + ( 12 ) + - - 60 * - 3 - - - CAST( NULL AS SIGNED ) * + 50 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2011
SELECT + 46 + + COUNT ( * ) - + 37 * + + ( 12 ) + - - 60 * - 3 - - - CAST ( NULL AS INTEGER ) * + 50 AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-2012
SELECT - NULLIF ( - - ( - 43 ), + - 11 ) AS col2, - 55 DIV 34 * + 73
----
43
-73

skipif mysql # not compatible
query II rowsort label-2012
SELECT - NULLIF ( - - ( - 43 ), + - 11 ) AS col2, - 55 / 34 * + 73
----
43
-73

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2013
SELECT + SUM( 74 ) + 6 * CAST( - NULLIF ( + - 38, + + COUNT( * ) ) AS SIGNED ) DIV + + 48 - + ( + 21 ) * 32
----
-594

skipif mysql # not compatible
query I rowsort label-2013
SELECT + SUM ( 74 ) + 6 * CAST ( - NULLIF ( + - 38, + + COUNT ( * ) ) AS INTEGER ) / + + 48 - + ( + 21 ) * 32
----
-594

query I rowsort
SELECT - NULLIF ( + 62, 74 )
----
-62

query I rowsort
SELECT + 80 * + 55 * 86 AS col2
----
378400

onlyif mysql # aggregate syntax: 
query I rowsort label-2016
SELECT DISTINCT 91 * + + MIN( ( - - 90 ) ) AS col2
----
8190

skipif mysql # not compatible
query I rowsort label-2016
SELECT DISTINCT 91 * + + MIN ( ( - - 90 ) ) AS col2
----
8190

query I rowsort
SELECT ALL 26 * - 88
----
-2288

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2019
SELECT ALL + NULLIF ( 63, + + SUM( DISTINCT - ( - 33 ) ) )
----
63

skipif mysql # not compatible
query I rowsort label-2019
SELECT ALL + NULLIF ( 63, + + SUM ( DISTINCT - ( - 33 ) ) )
----
63

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2020
SELECT DISTINCT + NULLIF ( 15, - NULLIF ( - 52, + 24 + + 46 * - COALESCE ( - 41, + COALESCE ( - NULLIF ( 57, - 64 ), + COUNT( * ) + + 4 ) + AVG ( DISTINCT - 14 + 39 ), 92 - COALESCE ( + CAST( NULL AS SIGNED ) + + 52, - COUNT( * ) / COUNT( * ) ) ) ) * 72 )
----
15

skipif mysql # not compatible
query I rowsort label-2020
SELECT DISTINCT + NULLIF ( 15, - NULLIF ( - 52, + 24 + + 46 * - COALESCE ( - 41, + COALESCE ( - NULLIF ( 57, - 64 ), + COUNT ( * ) + + 4 ) + AVG ( DISTINCT - 14 + 39 ), 92 - COALESCE ( + CAST ( NULL AS INTEGER ) + + 52, - COUNT ( * ) / COUNT ( * ) ) ) ) * 72 )
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-2021
SELECT - 56 * MAX( DISTINCT - 83 ) AS col0
----
4648

skipif mysql # not compatible
query I rowsort label-2021
SELECT - 56 * MAX ( DISTINCT - 83 ) AS col0
----
4648

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2022
SELECT - - 88 DIV COALESCE ( CAST( + 75 AS SIGNED ), 86 ) DIV 6
----
0

skipif mysql # not compatible
query I rowsort label-2022
SELECT - - 88 / COALESCE ( CAST ( + 75 AS INTEGER ), 86 ) / 6
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2023
SELECT ALL + 83 * - + 64 + + 86 + + - 28, 98 DIV SUM( DISTINCT - - 94 ) + + - 70 AS col1
----
-5254
-69

skipif mysql # not compatible
query II rowsort label-2023
SELECT ALL + 83 * - + 64 + + 86 + + - 28, 98 / SUM ( DISTINCT - - 94 ) + + - 70 AS col1
----
-5254
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-2024
SELECT ALL + + CASE - 6 WHEN - 48 * - 17 * 9 + - 51 + 96 THEN + COUNT( * ) WHEN 40 THEN NULL ELSE 36 END AS col2
----
36

skipif mysql # not compatible
query I rowsort label-2024
SELECT ALL + + CASE - 6 WHEN - 48 * - 17 * 9 + - 51 + 96 THEN + COUNT ( * ) WHEN 40 THEN NULL ELSE 36 END AS col2
----
36

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

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

query I rowsort
SELECT - - 44 * - 2
----
-88

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2027
SELECT - - 28 DIV CAST( 73 AS SIGNED ) + - 42 AS col0
----
-42

skipif mysql # not compatible
query I rowsort label-2027
SELECT - - 28 / CAST ( 73 AS INTEGER ) + - 42 AS col0
----
-42

query I rowsort
SELECT ALL 1 * - 45 * + + 20
----
-900

onlyif mysql # aggregate syntax: 
query I rowsort label-2029
SELECT + 84 * 28 * - MAX( - - 98 ) AS col1
----
-230496

skipif mysql # not compatible
query I rowsort label-2029
SELECT + 84 * 28 * - MAX ( - - 98 ) AS col1
----
-230496

onlyif mysql # aggregate syntax: 
query I rowsort label-2030
SELECT - 54 + CASE + 38 WHEN + 39 THEN SUM( DISTINCT - 31 ) / - 73 WHEN COUNT( * ) / - - 36 + + 66 THEN 22 + 71 END * 3
----
NULL

skipif mysql # not compatible
query I rowsort label-2030
SELECT - 54 + CASE + 38 WHEN + 39 THEN SUM ( DISTINCT - 31 ) / - 73 WHEN COUNT ( * ) / - - 36 + + 66 THEN 22 + 71 END * 3
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2031
SELECT DISTINCT - 30 * - CAST( NULL AS DECIMAL ) + - - 21
----
NULL

skipif mysql # not compatible
query I rowsort label-2031
SELECT DISTINCT - 30 * - CAST ( NULL AS REAL ) + - - 21
----
NULL

query II rowsort
SELECT - 67 + + 81 AS col2, + 24 * - + 10 AS col0
----
14
-240

query I rowsort
SELECT ALL - 23 * 66 + - + 63
----
-1581

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

query I rowsort
SELECT - - ( - - 45 ) * 27 + ( 45 ) + + + 38 + + 82 AS col2
----
1380

query I rowsort
SELECT - - 76 * 20 AS col1
----
1520

onlyif mysql # aggregate syntax: 
query I rowsort label-2037
SELECT ALL + - 47 * 85 - MIN( 21 ) + + COUNT( * ) + + - 31 + - 4
----
-4050

skipif mysql # not compatible
query I rowsort label-2037
SELECT ALL + - 47 * 85 - MIN ( 21 ) + + COUNT ( * ) + + - 31 + - 4
----
-4050

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2038
SELECT DISTINCT - - CASE - - 56 WHEN - - COALESCE ( + 21, 68 / + + 89 * + - CASE + MAX( DISTINCT - 43 ) WHEN 36 * + 43 + + 11 THEN + 60 END, + 31 ) THEN 44 + MAX( ALL - 53 ) WHEN + ( COUNT( CAST( NULL AS SIGNED ) ) ) + CAST( 66 AS SIGNED ) * 11 THEN 17 END * COALESCE ( - 36, 66 ) + 84 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2038
SELECT DISTINCT - - CASE - - 56 WHEN - - COALESCE ( + 21, 68 / + + 89 * + - CASE + MAX ( DISTINCT - 43 ) WHEN 36 * + 43 + + 11 THEN + 60 END, + 31 ) THEN 44 + MAX ( ALL - 53 ) WHEN + ( COUNT ( CAST ( NULL AS INTEGER ) ) ) + CAST ( 66 AS INTEGER ) * 11 THEN 17 END * COALESCE ( - 36, 66 ) + 84 col1
----
NULL

query I rowsort
SELECT - - 43 + + 58 AS col2
----
101

onlyif mysql # aggregate syntax: 
query III rowsort label-2040
SELECT COUNT( * ) AS col2, + ( - 75 ) AS col0, - 47 * - - 62 + + 82 AS col1
----
1
-75
-2832

skipif mysql # not compatible
query III rowsort label-2040
SELECT COUNT ( * ) AS col2, + ( - 75 ) AS col0, - 47 * - - 62 + + 82 AS col1
----
1
-75
-2832

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2041
SELECT ALL 93 + + 69 + - - CAST( NULL AS SIGNED ) / - 19 * 2 * - - 89 - + ( - MIN( DISTINCT + 60 ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2041
SELECT ALL 93 + + 69 + - - CAST ( NULL AS INTEGER ) / - 19 * 2 * - - 89 - + ( - MIN ( DISTINCT + 60 ) ) AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2042
SELECT DISTINCT - COALESCE ( + 76, + - 83 ) + - - 2 * + + ( MAX( - 21 ) ) + - ( CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-2042
SELECT DISTINCT - COALESCE ( + 76, + - 83 ) + - - 2 * + + ( MAX ( - 21 ) ) + - ( CAST ( NULL AS INTEGER ) )
----
NULL

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

query I rowsort
SELECT 37 * - 20
----
-740

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

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

query I rowsort
SELECT 43 - + 97 col0
----
-54

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2047
SELECT COUNT( DISTINCT + 39 ) * - NULLIF ( + 62, CAST( NULL AS SIGNED ) + + - 62 + - 26 * - 81 ) + - COUNT( * ) + - 98 + + 15 col0
----
-146

skipif mysql # not compatible
query I rowsort label-2047
SELECT COUNT ( DISTINCT + 39 ) * - NULLIF ( + 62, CAST ( NULL AS INTEGER ) + + - 62 + - 26 * - 81 ) + - COUNT ( * ) + - 98 + + 15 col0
----
-146

query I rowsort
SELECT 52 - + 82
----
-30

query I rowsort
SELECT ALL - COALESCE ( + - 3, + 43, - 40 ) - - + 24 AS col0
----
27

query I rowsort
SELECT ALL + 57 * + - 64 * + 0 col0
----
0

query I rowsort
SELECT ALL 44 - + 64 AS col0
----
-20

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2052
SELECT MIN( ALL 52 ) / - + CASE + 79 WHEN - NULLIF ( CASE + COUNT( * ) WHEN + 12 THEN + - 53 + + COUNT( * ) WHEN 50 + - 23 / + SUM( DISTINCT 50 * - 14 ) THEN 9 * - 44 + - 34 * + SUM( 90 * 79 ) ELSE + 76 + 67 * - 53 END, - 42 ) THEN - 77 + CAST( NULL AS SIGNED ) * + 57 END
----
NULL

skipif mysql # not compatible
query I rowsort label-2052
SELECT MIN ( ALL 52 ) / - + CASE + 79 WHEN - NULLIF ( CASE + COUNT ( * ) WHEN + 12 THEN + - 53 + + COUNT ( * ) WHEN 50 + - 23 / + SUM ( DISTINCT 50 * - 14 ) THEN 9 * - 44 + - 34 * + SUM ( 90 * 79 ) ELSE + 76 + 67 * - 53 END, - 42 ) THEN - 77 + CAST ( NULL AS INTEGER ) * + 57 END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2053
SELECT 12 DIV - 43 - - COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-2053
SELECT 12 / - 43 - - COUNT ( * )
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2054
SELECT + CAST( NULL AS SIGNED ) * - ( 23 ) * - + MAX( DISTINCT 84 ) + + 0
----
NULL

skipif mysql # not compatible
query I rowsort label-2054
SELECT + CAST ( NULL AS INTEGER ) * - ( 23 ) * - + MAX ( DISTINCT 84 ) + + 0
----
NULL

query I rowsort
SELECT ( - 71 ) - 72
----
-143

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2056
SELECT ALL 8 DIV + COUNT( * ) AS col0
----
8

skipif mysql # not compatible
query I rowsort label-2056
SELECT ALL 8 / + COUNT ( * ) AS col0
----
8

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2057
SELECT ALL - CASE 41 WHEN + 91 / + + 16 + 74 * + COUNT( * ) + - - 42 THEN - ( - 85 ) WHEN + - 51 * ( - CAST( NULL AS SIGNED ) + + 83 ) THEN NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2057
SELECT ALL - CASE 41 WHEN + 91 / + + 16 + 74 * + COUNT ( * ) + - - 42 THEN - ( - 85 ) WHEN + - 51 * ( - CAST ( NULL AS INTEGER ) + + 83 ) THEN NULL END AS col1
----
NULL

query I rowsort
SELECT 14 * + - 10 col2
----
-140

query I rowsort
SELECT + 36 * + 28 AS col2
----
1008

onlyif mysql # aggregate syntax: 
query I rowsort label-2060
SELECT SUM( - + ( - - 66 ) ) + + + ( + SUM( ALL 41 ) )
----
-25

skipif mysql # not compatible
query I rowsort label-2060
SELECT SUM ( - + ( - - 66 ) ) + + + ( + SUM ( ALL 41 ) )
----
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-2061
SELECT ALL + 54 * - - CASE - 15 WHEN 77 / + 50 + - - COUNT( * ) THEN NULL WHEN NULLIF ( - 65, - - ( + + 26 ) + ( 18 ) * - 93 ) THEN MIN( ALL 55 ) + + 46 / 43 END col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2061
SELECT ALL + 54 * - - CASE - 15 WHEN 77 / + 50 + - - COUNT ( * ) THEN NULL WHEN NULLIF ( - 65, - - ( + + 26 ) + ( 18 ) * - 93 ) THEN MIN ( ALL 55 ) + + 46 / 43 END col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2062
SELECT + 93 + - SUM( + 19 ) * 41 * - COALESCE ( + - 43, - - MIN( - ( + 86 ) ) ) AS col2
----
-33404

skipif mysql # not compatible
query I rowsort label-2062
SELECT + 93 + - SUM ( + 19 ) * 41 * - COALESCE ( + - 43, - - MIN ( - ( + 86 ) ) ) AS col2
----
-33404

query I rowsort
SELECT - 2 * 7
----
-14

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2064
SELECT + 95 * - - COUNT( * ) DIV + COUNT( * ) + + - ( + 20 ) AS col0
----
75

skipif mysql # not compatible
query I rowsort label-2064
SELECT + 95 * - - COUNT ( * ) / + COUNT ( * ) + + - ( + 20 ) AS col0
----
75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2065
SELECT DISTINCT - + CASE 30 WHEN + COALESCE ( 60, + COALESCE ( 85, 7 ), - COALESCE ( 69, ( 58 ) / 3 + 96, + 74, + 3 ), + 65 * COUNT( * ) ) * - 71 + - 56 THEN 0 + CAST( NULL AS SIGNED ) WHEN ( + CASE - 33 WHEN 73 * + ( COUNT( * ) ) + - 20 THEN NULL ELSE 44 END ) THEN 90 + - 60 * - 81 ELSE CASE WHEN NOT NULL NOT IN ( 98 ) THEN COUNT( * ) END + - ( CAST( + 23 AS SIGNED ) ) * - 47 END
----
NULL

skipif mysql # not compatible
query I rowsort label-2065
SELECT DISTINCT - + CASE 30 WHEN + COALESCE ( 60, + COALESCE ( 85, 7 ), - COALESCE ( 69, ( 58 ) / 3 + 96, + 74, + 3 ), + 65 * COUNT ( * ) ) * - 71 + - 56 THEN 0 + CAST ( NULL AS INTEGER ) WHEN ( + CASE - 33 WHEN 73 * + ( COUNT ( * ) ) + - 20 THEN NULL ELSE 44 END ) THEN 90 + - 60 * - 81 ELSE CASE WHEN NOT NULL NOT IN ( 98 ) THEN COUNT ( * ) END + - ( CAST ( + 23 AS INTEGER ) ) * - 47 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2066
SELECT + 68 + 67 * - 12 * + ( COUNT( * ) ) * + + 23 AS col1
----
-18424

skipif mysql # not compatible
query I rowsort label-2066
SELECT + 68 + 67 * - 12 * + ( COUNT ( * ) ) * + + 23 AS col1
----
-18424

query II rowsort
SELECT - 14 col2, + 59 + 56 * - 33
----
-14
-1789

query I rowsort
SELECT ALL + 27 + + 23
----
50

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2069
SELECT ALL + COUNT( * ) + - + COUNT( * ) * COALESCE ( ( + - 68 ), + - CAST( AVG ( ALL + - 18 ) AS SIGNED ) ) AS col2, + 32 AS col0
----
69
32

skipif mysql # not compatible
query II rowsort label-2069
SELECT ALL + COUNT ( * ) + - + COUNT ( * ) * COALESCE ( ( + - 68 ), + - CAST ( AVG ( ALL + - 18 ) AS INTEGER ) ) AS col2, + 32 AS col0
----
69
32

onlyif mysql # aggregate syntax: 
query I rowsort label-2070
SELECT DISTINCT + 44 + - CASE + 29 WHEN + + NULLIF ( - 95, + 53 ) + + COUNT( * ) THEN NULL WHEN - - NULLIF ( + + 21, + 49 ) THEN NULL WHEN - 42 * + COUNT( * ) THEN NULL WHEN 42 THEN 65 / - 46 END * 88 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2070
SELECT DISTINCT + 44 + - CASE + 29 WHEN + + NULLIF ( - 95, + 53 ) + + COUNT ( * ) THEN NULL WHEN - - NULLIF ( + + 21, + 49 ) THEN NULL WHEN - 42 * + COUNT ( * ) THEN NULL WHEN 42 THEN 65 / - 46 END * 88 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2071
SELECT ALL - 86 * ( + 17 ) * + ( 35 ), 15 * + NULLIF ( + + COUNT( * ), + CASE + COUNT( * ) WHEN 4 THEN NULL ELSE + 84 + + 60 END ) AS col0
----
-51170
15

skipif mysql # not compatible
query II rowsort label-2071
SELECT ALL - 86 * ( + 17 ) * + ( 35 ), 15 * + NULLIF ( + + COUNT ( * ), + CASE + COUNT ( * ) WHEN 4 THEN NULL ELSE + 84 + + 60 END ) AS col0
----
-51170
15

query II rowsort
SELECT - 48 AS col0, - 12 * - - 11 col1
----
-48
-132

query I rowsort
SELECT DISTINCT ( 78 ) + - 18 AS col1
----
60

query I rowsort
SELECT 47 * + 62 AS col0
----
2914

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2075
SELECT CAST( NULL AS SIGNED ) + 57 - + + 12 + - 2 + 38
----
NULL

skipif mysql # not compatible
query I rowsort label-2075
SELECT CAST ( NULL AS INTEGER ) + 57 - + + 12 + - 2 + 38
----
NULL

query I rowsort
SELECT DISTINCT + 43 - + - 5 * 88 AS col1
----
483

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

query II rowsort
SELECT - 2, 97 col2
----
-2
97

query I rowsort
SELECT 43 + 61 * + - 54 * + - 20 * - + 99 + + 62
----
-6522015

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2080
SELECT 78 - - - 75 * - 11 * - + CAST( + 50 AS SIGNED ) AS col1
----
-41172

skipif mysql # not compatible
query I rowsort label-2080
SELECT 78 - - - 75 * - 11 * - + CAST ( + 50 AS INTEGER ) AS col1
----
-41172

query I rowsort
SELECT 52 + 9 AS col0
----
61

onlyif mysql # aggregate syntax: 
query II rowsort label-2082
SELECT ALL 61, MAX( + 46 ) * - + 47 + + ( COUNT( * ) ) col1
----
61
-2161

skipif mysql # not compatible
query II rowsort label-2082
SELECT ALL 61, MAX ( + 46 ) * - + 47 + + ( COUNT ( * ) ) col1
----
61
-2161

query I rowsort
SELECT 71 * - 13
----
-923

query II rowsort
SELECT DISTINCT 21, - ( + 61 ) AS col2
----
21
-61

onlyif mysql # aggregate syntax: 
query II rowsort label-2085
SELECT 4, COUNT( DISTINCT 33 ) col0
----
4
1

skipif mysql # not compatible
query II rowsort label-2085
SELECT 4, COUNT ( DISTINCT 33 ) col0
----
4
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2086
SELECT 87 + + 35 + + 52 + - CAST( NULL AS SIGNED ) - - 16 + + ( CAST( NULL AS SIGNED ) ) + - - 8 / + + AVG ( ALL 48 ) * + - 65 * + 39
----
NULL

skipif mysql # not compatible
query I rowsort label-2086
SELECT 87 + + 35 + + 52 + - CAST ( NULL AS INTEGER ) - - 16 + + ( CAST ( NULL AS INTEGER ) ) + - - 8 / + + AVG ( ALL 48 ) * + - 65 * + 39
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2087
SELECT ALL + 26 * COUNT( * ) * + - 18 * COUNT( * ) * + - ( - + 71 ) / CASE + 4 WHEN 39 THEN NULL WHEN - - 51 THEN - COUNT( * ) + 48 ELSE 48 + NULLIF ( + ( - CAST( NULL AS SIGNED ) ), - 71 - COUNT( * ) ) END * - 62 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2087
SELECT ALL + 26 * COUNT ( * ) * + - 18 * COUNT ( * ) * + - ( - + 71 ) / CASE + 4 WHEN 39 THEN NULL WHEN - - 51 THEN - COUNT ( * ) + 48 ELSE 48 + NULLIF ( + ( - CAST ( NULL AS INTEGER ) ), - 71 - COUNT ( * ) ) END * - 62 col1
----
NULL

query II rowsort
SELECT 61 * + 94 AS col1, - 21 * 90
----
5734
-1890

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2089
SELECT SUM( DISTINCT + 58 ) + + - 33 DIV + - 70 AS col0
----
58

skipif mysql # not compatible
query I rowsort label-2089
SELECT SUM ( DISTINCT + 58 ) + + - 33 / + - 70 AS col0
----
58

query II rowsort
SELECT 18 col2, + 72
----
18
72

query I rowsort
SELECT DISTINCT + 8 * 96
----
768

query II rowsort
SELECT + - 29 AS col1, 32 AS col2
----
-29
32

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

query I rowsort
SELECT ALL - - COALESCE ( - 40, + 4 + - 21, + 70 )
----
-40

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2095
SELECT COALESCE ( - 72, + + 12 + + 6 ) DIV + 50 + - CAST( + 21 AS SIGNED )
----
-22

skipif mysql # not compatible
query I rowsort label-2095
SELECT COALESCE ( - 72, + + 12 + + 6 ) / + 50 + - CAST ( + 21 AS INTEGER )
----
-22

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

skipif mysql # not compatible
query I rowsort label-2096
SELECT MIN ( ALL - CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2097
SELECT 67 DIV - 11 AS col0
----
-6

skipif mysql # not compatible
query I rowsort label-2097
SELECT 67 / - 11 AS col0
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-2098
SELECT ALL 60 * + - NULLIF ( 61, - COALESCE ( + - 67, + 0 ) ) * MIN( - 9 ) + - 41 AS col2
----
32899

skipif mysql # not compatible
query I rowsort label-2098
SELECT ALL 60 * + - NULLIF ( 61, - COALESCE ( + - 67, + 0 ) ) * MIN ( - 9 ) + - 41 AS col2
----
32899

onlyif mysql # DIV for integer division: 
query I rowsort label-2099
SELECT 85 DIV - - 62
----
1

skipif mysql # not compatible
query I rowsort label-2099
SELECT 85 / - - 62
----
1

query I rowsort
SELECT + NULLIF ( - 65, + - 63 )
----
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-2101
SELECT ALL - CASE - + 66 WHEN + - 64 - 90 * + ( + 58 ) * + ( - 9 ) THEN NULL WHEN - COUNT( * ) + + 49 / - 48 / + 12 + 85 THEN 71 ELSE NULL END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2101
SELECT ALL - CASE - + 66 WHEN + - 64 - 90 * + ( + 58 ) * + ( - 9 ) THEN NULL WHEN - COUNT ( * ) + + 49 / - 48 / + 12 + 85 THEN 71 ELSE NULL END col1
----
NULL

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2103
SELECT ALL + 81 + + + 43 - + 66 * 57 DIV + 90 col0
----
83

skipif mysql # not compatible
query I rowsort label-2103
SELECT ALL + 81 + + + 43 - + 66 * 57 / + 90 col0
----
83

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2104
SELECT - CAST( - + 71 AS SIGNED ) * 59 - COALESCE ( + 1, - 77 * + 42 + + 42 + + 27, + 28 DIV - - COUNT( * ) + + 83 * - 42 - + 91 )
----
4188

skipif mysql # not compatible
query I rowsort label-2104
SELECT - CAST ( - + 71 AS INTEGER ) * 59 - COALESCE ( + 1, - 77 * + 42 + + 42 + + 27, + 28 / - - COUNT ( * ) + + 83 * - 42 - + 91 )
----
4188

query I rowsort
SELECT ALL - 6 + - 93 + + - 58 * - - 77 + + - 63
----
-4628

query II rowsort
SELECT ALL - 57, + 21 + - 54 - - - 32 * - - 94 AS col0
----
-57
-3041

onlyif mysql # aggregate syntax: 
query II rowsort label-2107
SELECT ALL - COUNT( * ) AS col2, - 9 + - 5
----
-1
-14

skipif mysql # not compatible
query II rowsort label-2107
SELECT ALL - COUNT ( * ) AS col2, - 9 + - 5
----
-1
-14

query II rowsort
SELECT ALL - 34 AS col0, + 63 * + 88 AS col1
----
-34
5544

query I rowsort
SELECT DISTINCT - 87 - 92
----
-179

onlyif mysql # aggregate syntax: 
query I rowsort label-2110
SELECT + 17 + - 39 * + 37 - - COUNT( * )
----
-1425

skipif mysql # not compatible
query I rowsort label-2110
SELECT + 17 + - 39 * + 37 - - COUNT ( * )
----
-1425

query I rowsort
SELECT + ( - 61 ) * + 92 - + + 0
----
-5612

onlyif mysql # DIV for integer division: 
query I rowsort label-2112
SELECT DISTINCT 34 DIV 43 * 90 * - 7
----
0

skipif mysql # not compatible
query I rowsort label-2112
SELECT DISTINCT 34 / 43 * 90 * - 7
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2113
SELECT ALL MAX( 3 )
----
3

skipif mysql # not compatible
query I rowsort label-2113
SELECT ALL MAX ( 3 )
----
3

query II rowsort
SELECT ALL - 94 * 21 * + ( - - 16 ) * - 51 * - - 4 + - 37, + 83 + - - 99 AS col1
----
6443099
182

onlyif mysql # aggregate syntax: 
query II rowsort label-2115
SELECT + 9 * - + COUNT( * ), 72 col1
----
-9
72

skipif mysql # not compatible
query II rowsort label-2115
SELECT + 9 * - + COUNT ( * ), 72 col1
----
-9
72

onlyif mysql # aggregate syntax: 
query I rowsort label-2116
SELECT + MAX( ALL - 48 ) + - COUNT( * )
----
-49

skipif mysql # not compatible
query I rowsort label-2116
SELECT + MAX ( ALL - 48 ) + - COUNT ( * )
----
-49

onlyif mysql # DIV for integer division: 
query I rowsort label-2117
SELECT + 73 DIV + 37 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-2117
SELECT + 73 / + 37 AS col1
----
1

query I rowsort
SELECT - 79 * 94 * - 63 AS col0
----
467838

query I rowsort
SELECT + 91 - + 29 AS col1
----
62

query I rowsort
SELECT - 55 * - 8 AS col1
----
440

onlyif mysql # aggregate syntax: 
query I rowsort label-2121
SELECT - ( - - 96 ) * + + 44 + + COUNT( * ) + 59 * + 62 + + 16
----
-549

skipif mysql # not compatible
query I rowsort label-2121
SELECT - ( - - 96 ) * + + 44 + + COUNT ( * ) + 59 * + 62 + + 16
----
-549

query I rowsort
SELECT ALL + 26 + - - 70 + NULLIF ( + 33, 1 ) * + 5 AS col0
----
261

query I rowsort
SELECT ALL - 46 + + 65
----
19

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2124
SELECT + COUNT( * ) DIV + 13 + + 23 - - - 37 * 61 * - 91 col2
----
205410

skipif mysql # not compatible
query I rowsort label-2124
SELECT + COUNT ( * ) / + 13 + + 23 - - - 37 * 61 * - 91 col2
----
205410

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2125
SELECT + COUNT( * ) * ( - + 98 ) DIV - 27 + - - 19 + - - 46 + - - 10 * + - 65 + - ( + MIN( - 94 ) ) * - 48 AS col2
----
-5094

skipif mysql # not compatible
query I rowsort label-2125
SELECT + COUNT ( * ) * ( - + 98 ) / - 27 + - - 19 + - - 46 + - - 10 * + - 65 + - ( + MIN ( - 94 ) ) * - 48 AS col2
----
-5094

onlyif mysql # aggregate syntax: 
query I rowsort label-2126
SELECT - - 65 - + 99 - 58 + 32 + + COUNT( * ) * - ( + 88 )
----
-148

skipif mysql # not compatible
query I rowsort label-2126
SELECT - - 65 - + 99 - 58 + 32 + + COUNT ( * ) * - ( + 88 )
----
-148

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2127
SELECT + NULLIF ( + COUNT( * ), + + 47 ) DIV 34 * 10 + - 46 + ( + ( + COALESCE ( + 9, + 41 + + + 7 ) ) ) + - 24 * MAX( DISTINCT 37 )
----
-925

skipif mysql # not compatible
query I rowsort label-2127
SELECT + NULLIF ( + COUNT ( * ), + + 47 ) / 34 * 10 + - 46 + ( + ( + COALESCE ( + 9, + 41 + + + 7 ) ) ) + - 24 * MAX ( DISTINCT 37 )
----
-925

onlyif mysql # aggregate syntax: 
query I rowsort label-2128
SELECT - - 82 * + 35 + + 81 + 68 * - SUM( - 16 ) * + 90 AS col0
----
100871

skipif mysql # not compatible
query I rowsort label-2128
SELECT - - 82 * + 35 + + 81 + 68 * - SUM ( - 16 ) * + 90 AS col0
----
100871

onlyif mysql # aggregate syntax: 
query I rowsort label-2129
SELECT - 36 * - SUM( - 45 ) * - 82 + - CASE 13 WHEN - - 18 + 54 THEN + + 27 + 46 END + + + 74 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2129
SELECT - 36 * - SUM ( - 45 ) * - 82 + - CASE 13 WHEN - - 18 + 54 THEN + + 27 + 46 END + + + 74 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2130
SELECT 55 * ( - 57 ) + 71 - - 25 * - 17 + - NULLIF ( - NULLIF ( + 71, - COALESCE ( + COUNT( * ), - 95 ) * 12 ), 16 * 88 ) * + 64 AS col2
----
1055

skipif mysql # not compatible
query I rowsort label-2130
SELECT 55 * ( - 57 ) + 71 - - 25 * - 17 + - NULLIF ( - NULLIF ( + 71, - COALESCE ( + COUNT ( * ), - 95 ) * 12 ), 16 * 88 ) * + 64 AS col2
----
1055

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

skipif mysql # not compatible
query I rowsort label-2131
SELECT - + 39 * COUNT ( ALL 23 ) AS col1
----
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-2132
SELECT ALL COUNT( * ) * + 84 - - - 24 * - 44
----
1140

skipif mysql # not compatible
query I rowsort label-2132
SELECT ALL COUNT ( * ) * + 84 - - - 24 * - 44
----
1140

query I rowsort
SELECT - 67 + + + 59 AS col1
----
-8

query I rowsort
SELECT + + 89 + - 52 AS col1
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-2135
SELECT NULLIF ( - + 52, - 72 + 76 * - 32 / COUNT( * ) * + 25 )
----
-52

skipif mysql # not compatible
query I rowsort label-2135
SELECT NULLIF ( - + 52, - 72 + 76 * - 32 / COUNT ( * ) * + 25 )
----
-52

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

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

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

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

query I rowsort
SELECT ALL 28 * 68
----
1904

query I rowsort
SELECT + 33 + - 86 * - 71 * - 69 AS col2
----
-421281

onlyif mysql # aggregate syntax: 
query I rowsort label-2140
SELECT ALL - COUNT( ALL + 73 ) * + + 53 + 69 + + 92
----
108

skipif mysql # not compatible
query I rowsort label-2140
SELECT ALL - COUNT ( ALL + 73 ) * + + 53 + 69 + + 92
----
108

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2141
SELECT ALL CAST( - 83 AS SIGNED ) AS col1
----
-83

skipif mysql # not compatible
query I rowsort label-2141
SELECT ALL CAST ( - 83 AS INTEGER ) AS col1
----
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-2142
SELECT ALL MIN( - 82 ) col2
----
-82

skipif mysql # not compatible
query I rowsort label-2142
SELECT ALL MIN ( - 82 ) col2
----
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-2143
SELECT + NULLIF ( 1, COUNT( * ) ) + 37 + 34 * + 8
----
NULL

skipif mysql # not compatible
query I rowsort label-2143
SELECT + NULLIF ( 1, COUNT ( * ) ) + 37 + 34 * + 8
----
NULL

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2146
SELECT + 56 * - ( 28 ) / MIN( - + 75 ) / + - 69 + + AVG ( ALL 88 ) + CAST( NULL AS SIGNED ) * COUNT( * ) - 91 + - COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2146
SELECT + 56 * - ( 28 ) / MIN ( - + 75 ) / + - 69 + + AVG ( ALL 88 ) + CAST ( NULL AS INTEGER ) * COUNT ( * ) - 91 + - COUNT ( * ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2147
SELECT DISTINCT COUNT( * ) + + COALESCE ( 45, + 18 * + 37 + - + 31 ) AS col1, - 97 * + 99 * + 0
----
46
0

skipif mysql # not compatible
query II rowsort label-2147
SELECT DISTINCT COUNT ( * ) + + COALESCE ( 45, + 18 * + 37 + - + 31 ) AS col1, - 97 * + 99 * + 0
----
46
0

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

skipif mysql # not compatible
query I rowsort label-2148
SELECT ALL MIN ( ALL 4 )
----
4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2149
SELECT ALL 14 * + CASE + COALESCE ( - 74, COUNT( * ) + 23, - 87, - 89 ) WHEN + + 28 THEN + + 13 * + + CASE - - 99 WHEN + 52 THEN COUNT( * ) WHEN CAST( NULL AS SIGNED ) THEN + 9 + 54 END WHEN 21 THEN CASE + 30 WHEN COUNT( * ) * 60 THEN + 7 END * 89 + ( 31 + 46 * + 45 ) / 94 END * - NULLIF ( 44 * - ( - 60 ), + COUNT( * ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-2149
SELECT ALL 14 * + CASE + COALESCE ( - 74, COUNT ( * ) + 23, - 87, - 89 ) WHEN + + 28 THEN + + 13 * + + CASE - - 99 WHEN + 52 THEN COUNT ( * ) WHEN CAST ( NULL AS INTEGER ) THEN + 9 + 54 END WHEN 21 THEN CASE + 30 WHEN COUNT ( * ) * 60 THEN + 7 END * 89 + ( 31 + 46 * + 45 ) / 94 END * - NULLIF ( 44 * - ( - 60 ), + COUNT ( * ) )
----
NULL

query I rowsort
SELECT - + COALESCE ( - 95, + - 52 * 47 ) AS col2
----
95

onlyif mysql # aggregate syntax: 
query I rowsort label-2151
SELECT + 82 + + 37 + 54 * + SUM( ( + 52 ) ) * - - ( 30 ) + - 4
----
84355

skipif mysql # not compatible
query I rowsort label-2151
SELECT + 82 + + 37 + 54 * + SUM ( ( + 52 ) ) * - - ( 30 ) + - 4
----
84355

query II rowsort
SELECT ALL 20 AS col1, + 63 AS col1
----
20
63

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2154
SELECT - 9 + + COUNT( * ) + + NULLIF ( + + 9, + 77 + - 63 ) - 37 * - - 34
----
-1257

skipif mysql # not compatible
query I rowsort label-2154
SELECT - 9 + + COUNT ( * ) + + NULLIF ( + + 9, + 77 + - 63 ) - 37 * - - 34
----
-1257

query I rowsort
SELECT ALL 79 + + 34
----
113

query II rowsort
SELECT NULLIF ( + + 29, + 75 ) AS col1, + 98 AS col1
----
29
98

onlyif mysql # aggregate syntax: 
query II rowsort label-2157
SELECT - NULLIF ( 62, 99 * - - 96 - + 93 ) + - - ( + 85 ) + COUNT( * ) AS col2, - COUNT( * ) AS col2
----
24
-1

skipif mysql # not compatible
query II rowsort label-2157
SELECT - NULLIF ( 62, 99 * - - 96 - + 93 ) + - - ( + 85 ) + COUNT ( * ) AS col2, - COUNT ( * ) AS col2
----
24
-1

query I rowsort
SELECT DISTINCT 36 * - - 57
----
2052

query I rowsort
SELECT ALL + + NULLIF ( + 13, + + 26 )
----
13

query II rowsort
SELECT + 66, 67 * - 50 AS col2
----
66
-3350

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2161
SELECT + COUNT( * ) DIV - + 23 - + COUNT( * ) - 42 AS col2
----
-43

skipif mysql # not compatible
query I rowsort label-2161
SELECT + COUNT ( * ) / - + 23 - + COUNT ( * ) - 42 AS col2
----
-43

onlyif mysql # aggregate syntax: 
query II rowsort label-2162
SELECT - 11 * + + 79 * + COUNT( * ) AS col2, - ( - 70 ) AS col2
----
-869
70

skipif mysql # not compatible
query II rowsort label-2162
SELECT - 11 * + + 79 * + COUNT ( * ) AS col2, - ( - 70 ) AS col2
----
-869
70

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

query II rowsort
SELECT + 89, 93 * + ( 20 ) AS col0
----
89
1860

query II rowsort
SELECT NULLIF ( + 0, 56 ) AS col0, - 36
----
0
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-2166
SELECT + 84 * 31 + - COUNT( * ) AS col0
----
2603

skipif mysql # not compatible
query I rowsort label-2166
SELECT + 84 * 31 + - COUNT ( * ) AS col0
----
2603

query I rowsort
SELECT ALL - + 13 * 53 AS col0
----
-689

onlyif mysql # aggregate syntax: 
query I rowsort label-2168
SELECT - 78 * + COUNT( + ( 94 ) )
----
-78

skipif mysql # not compatible
query I rowsort label-2168
SELECT - 78 * + COUNT ( + ( 94 ) )
----
-78

query I rowsort
SELECT + 48 * + 93
----
4464

query I rowsort
SELECT - 53 * - 20 - + 24 AS col0
----
1036

onlyif mysql # aggregate syntax: 
query I rowsort label-2171
SELECT DISTINCT - 39 * 72 * - + COUNT( * ) AS col2
----
2808

skipif mysql # not compatible
query I rowsort label-2171
SELECT DISTINCT - 39 * 72 * - + COUNT ( * ) AS col2
----
2808

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2172
SELECT 62 * 97 AS col2, - 88 + 80 - - + 22 * - ( + 13 ) * + CAST( + + 2 AS SIGNED )
----
6014
-580

skipif mysql # not compatible
query II rowsort label-2172
SELECT 62 * 97 AS col2, - 88 + 80 - - + 22 * - ( + 13 ) * + CAST ( + + 2 AS INTEGER )
----
6014
-580

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2173
SELECT DISTINCT - NULLIF ( + - MAX( - 7 ), - 62 * + AVG ( ALL - + 2 ) + + CAST( - - 96 AS SIGNED ) )
----
-7

skipif mysql # not compatible
query I rowsort label-2173
SELECT DISTINCT - NULLIF ( + - MAX ( - 7 ), - 62 * + AVG ( ALL - + 2 ) + + CAST ( - - 96 AS INTEGER ) )
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-2174
SELECT ALL 22 + + - COALESCE ( ( + 34 ), ( + - COUNT( * ) ) * + 37 ) + + - SUM( DISTINCT - 32 ) - - 6 * + COUNT( * )
----
26

skipif mysql # not compatible
query I rowsort label-2174
SELECT ALL 22 + + - COALESCE ( ( + 34 ), ( + - COUNT ( * ) ) * + 37 ) + + - SUM ( DISTINCT - 32 ) - - 6 * + COUNT ( * )
----
26

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2175
SELECT - CASE + - 62 WHEN + 27 THEN NULL WHEN + COUNT( * ) * COUNT( * ) + + 85 - + ( - ( + 85 ) ) * + + 43 + + 48 THEN 67 - + - 21 + - - 39 END * - COUNT( * ) + CAST( 47 - 27 AS SIGNED ) * - 40
----
NULL

skipif mysql # not compatible
query I rowsort label-2175
SELECT - CASE + - 62 WHEN + 27 THEN NULL WHEN + COUNT ( * ) * COUNT ( * ) + + 85 - + ( - ( + 85 ) ) * + + 43 + + 48 THEN 67 - + - 21 + - - 39 END * - COUNT ( * ) + CAST ( 47 - 27 AS INTEGER ) * - 40
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2176
SELECT 52 DIV + 61 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-2176
SELECT 52 / + 61 AS col1
----
0

query I rowsort
SELECT 88 + 58 AS col1
----
146

onlyif mysql # aggregate syntax: 
query II rowsort label-2178
SELECT 97 * + 51 AS col0, COUNT( * ) + - 95 + - - CASE + 65 WHEN - 93 THEN NULL WHEN - 46 - - - 60 THEN + COUNT( * ) END * 62
----
4947
NULL

skipif mysql # not compatible
query II rowsort label-2178
SELECT 97 * + 51 AS col0, COUNT ( * ) + - 95 + - - CASE + 65 WHEN - 93 THEN NULL WHEN - 46 - - - 60 THEN + COUNT ( * ) END * 62
----
4947
NULL

query I rowsort
SELECT ALL - 22 + 34 AS col2
----
12

query I rowsort
SELECT ALL 38 * + 39 * + 95 AS col2
----
140790

query I rowsort
SELECT 87 * 74
----
6438

query I rowsort
SELECT ALL - 22 + 41
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-2183
SELECT ALL NULLIF ( + 17, COUNT( * ) ) + 9
----
26

skipif mysql # not compatible
query I rowsort label-2183
SELECT ALL NULLIF ( + 17, COUNT ( * ) ) + 9
----
26

query I rowsort
SELECT 77 + 46
----
123

query I rowsort
SELECT 12 * + 1
----
12

onlyif mysql # aggregate syntax: 
query II rowsort label-2186
SELECT COALESCE ( 46, 29, - COUNT( * ) ), - 45 AS col2
----
46
-45

skipif mysql # not compatible
query II rowsort label-2186
SELECT COALESCE ( 46, 29, - COUNT ( * ) ), - 45 AS col2
----
46
-45

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2187
SELECT - 10 + CAST( + MIN( DISTINCT - + ( 93 ) ) AS SIGNED ) AS col1
----
-103

skipif mysql # not compatible
query I rowsort label-2187
SELECT - 10 + CAST ( + MIN ( DISTINCT - + ( 93 ) ) AS INTEGER ) AS col1
----
-103

query I rowsort
SELECT NULLIF ( 1, 77 * - - 26 + 97 )
----
1

query I rowsort
SELECT - ( + - COALESCE ( 59, + 90, 26 + - ( - ( 49 ) ) ) )
----
59

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

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

query I rowsort
SELECT ALL + 43 - + + 48 + - 1 AS col2
----
-6

query I rowsort
SELECT ( + 17 ) - + 8 AS col2
----
9

query I rowsort
SELECT + 2 * 51
----
102

onlyif mysql # aggregate syntax: 
query I rowsort label-2194
SELECT + 46 - + 43 + + + COUNT( * ) + - 82 + - 81 * + + 73 + - ( + + 8 ) * - - 74 * + COUNT( * )
----
-6583

skipif mysql # not compatible
query I rowsort label-2194
SELECT + 46 - + 43 + + + COUNT ( * ) + - 82 + - 81 * + + 73 + - ( + + 8 ) * - - 74 * + COUNT ( * )
----
-6583

onlyif mysql # aggregate syntax: 
query I rowsort label-2195
SELECT + ( + 30 ) + - 72 + - - ( - + COUNT( * ) ) * + COUNT( * )
----
-43

skipif mysql # not compatible
query I rowsort label-2195
SELECT + ( + 30 ) + - 72 + - - ( - + COUNT ( * ) ) * + COUNT ( * )
----
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-2196
SELECT ALL 29 - COUNT( * ) + CASE WHEN NOT NULL IS NULL THEN 6 ELSE - MIN( DISTINCT 23 ) * + 36 END + - - 21 * - 37
----
-1577

skipif mysql # not compatible
query I rowsort label-2196
SELECT ALL 29 - COUNT ( * ) + CASE WHEN NOT NULL IS NULL THEN 6 ELSE - MIN ( DISTINCT 23 ) * + 36 END + - - 21 * - 37
----
-1577

query II rowsort
SELECT ALL 13 - 45 AS col2, + 83 * 20
----
-32
1660

query I rowsort
SELECT - 26 + - 55 AS col0
----
-81

query I rowsort
SELECT - 96 - + 40
----
-136

onlyif mysql # DIV for integer division: 
query I rowsort label-2200
SELECT - 77 DIV + 37 + + 61
----
59

skipif mysql # not compatible
query I rowsort label-2200
SELECT - 77 / + 37 + + 61
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-2201
SELECT - 69 * + + 20 - - COUNT( * ) AS col0
----
-1379

skipif mysql # not compatible
query I rowsort label-2201
SELECT - 69 * + + 20 - - COUNT ( * ) AS col0
----
-1379

query I rowsort
SELECT ( 92 ) * 98 AS col1
----
9016

onlyif mysql # aggregate syntax: 
query I rowsort label-2203
SELECT + + SUM( DISTINCT 62 ) col1
----
62

skipif mysql # not compatible
query I rowsort label-2203
SELECT + + SUM ( DISTINCT 62 ) col1
----
62

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2204
SELECT NULLIF ( + + 75, NULLIF ( + CASE 13 WHEN - 46 * 83 THEN 55 * + - 34 WHEN + COUNT( * ) + 0 + COUNT( * ) - - 31 THEN NULL ELSE + 73 * 22 END, 24 * + 30 + - NULLIF ( + 34 + 4, - 30 * + 84 ) ) + - COUNT( * ) ) DIV CAST( 52 AS SIGNED )
----
1

skipif mysql # not compatible
query I rowsort label-2204
SELECT NULLIF ( + + 75, NULLIF ( + CASE 13 WHEN - 46 * 83 THEN 55 * + - 34 WHEN + COUNT ( * ) + 0 + COUNT ( * ) - - 31 THEN NULL ELSE + 73 * 22 END, 24 * + 30 + - NULLIF ( + 34 + 4, - 30 * + 84 ) ) + - COUNT ( * ) ) / CAST ( 52 AS INTEGER )
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-2205
SELECT + 76 + + 6 DIV 90
----
76

skipif mysql # not compatible
query I rowsort label-2205
SELECT + 76 + + 6 / 90
----
76

query I rowsort
SELECT + 87 * 30 + - 93 * - 72 AS col1
----
9306

onlyif mysql # aggregate syntax: 
query I rowsort label-2207
SELECT ( 88 ) * - 59 * + COUNT( * ) + 66 * 71 AS col0
----
-506

skipif mysql # not compatible
query I rowsort label-2207
SELECT ( 88 ) * - 59 * + COUNT ( * ) + 66 * 71 AS col0
----
-506

onlyif mysql # aggregate syntax: 
query II rowsort label-2208
SELECT DISTINCT - COUNT( * ) col0, + 52 * - - MIN( ALL + + 38 )
----
-1
1976

skipif mysql # not compatible
query II rowsort label-2208
SELECT DISTINCT - COUNT ( * ) col0, + 52 * - - MIN ( ALL + + 38 )
----
-1
1976

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2209
SELECT CAST( - + 27 AS SIGNED ) + + CAST( - SUM( DISTINCT - 29 ) AS SIGNED ) col1, 20 - + ( + - 85 ) AS col1
----
2
105

skipif mysql # not compatible
query II rowsort label-2209
SELECT CAST ( - + 27 AS INTEGER ) + + CAST ( - SUM ( DISTINCT - 29 ) AS INTEGER ) col1, 20 - + ( + - 85 ) AS col1
----
2
105

query I rowsort
SELECT DISTINCT - 53 + - 51
----
-104

onlyif mysql # aggregate syntax: 
query II rowsort label-2211
SELECT 97 * - MAX( DISTINCT - 1 ) * 0 + - 85 AS col0, + 21
----
-85
21

skipif mysql # not compatible
query II rowsort label-2211
SELECT 97 * - MAX ( DISTINCT - 1 ) * 0 + - 85 AS col0, + 21
----
-85
21

query I rowsort
SELECT DISTINCT + 81 * 10 AS col1
----
810

query I rowsort
SELECT DISTINCT 15 + 46
----
61

query I rowsort
SELECT 81 * 92 AS col1
----
7452

onlyif mysql # aggregate syntax: 
query I rowsort label-2215
SELECT 87 + + COUNT( * ) + - - COALESCE ( + 2, 4 + - - 5, 61 + - 27 ) + + COUNT( * ) - + - MIN( - 70 ) * + 28
----
-1869

skipif mysql # not compatible
query I rowsort label-2215
SELECT 87 + + COUNT ( * ) + - - COALESCE ( + 2, 4 + - - 5, 61 + - 27 ) + + COUNT ( * ) - + - MIN ( - 70 ) * + 28
----
-1869

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2216
SELECT ALL 50 + + COUNT( * ) - 15 * 89 * - 89 + + 84 + - - MAX( 23 ) DIV - SUM( ALL + 16 ) AS col1
----
118949

skipif mysql # not compatible
query I rowsort label-2216
SELECT ALL 50 + + COUNT ( * ) - 15 * 89 * - 89 + + 84 + - - MAX ( 23 ) / - SUM ( ALL + 16 ) AS col1
----
118949

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2218
SELECT ALL - 91 + + COUNT( * )
----
-90

skipif mysql # not compatible
query I rowsort label-2218
SELECT ALL - 91 + + COUNT ( * )
----
-90

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

skipif mysql # not compatible
query I rowsort label-2219
SELECT ALL SUM ( ALL 75 )
----
75

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2220
SELECT 12 + - + COUNT( * ) + - + 47 + - - COUNT( * ) DIV - - 40 AS col0
----
-36

skipif mysql # not compatible
query I rowsort label-2220
SELECT 12 + - + COUNT ( * ) + - + 47 + - - COUNT ( * ) / - - 40 AS col0
----
-36

onlyif mysql # aggregate syntax: 
query II rowsort label-2221
SELECT 5, 2 + + 47 * - MAX( ALL 25 ) * - COUNT( * ) * + 45 + - 53 AS col1
----
5
52824

skipif mysql # not compatible
query II rowsort label-2221
SELECT 5, 2 + + 47 * - MAX ( ALL 25 ) * - COUNT ( * ) * + 45 + - 53 AS col1
----
5
52824

query I rowsort
SELECT + 77 + 79
----
156

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2223
SELECT DISTINCT + - CASE 22 WHEN - - 79 THEN NULL WHEN + 47 * CAST( NULL AS SIGNED ) * + 79 - - 45 * + - CAST( + CASE - + COUNT( DISTINCT + + 42 ) WHEN + SUM( ALL + + 60 ) THEN - + 63 + 45 ELSE NULL END AS DECIMAL ) + + 38 THEN + COUNT( * ) WHEN 18 + 37 / - 92 THEN NULL ELSE NULL END / + SUM( - COALESCE ( - 82, 80 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-2223
SELECT DISTINCT + - CASE 22 WHEN - - 79 THEN NULL WHEN + 47 * CAST ( NULL AS INTEGER ) * + 79 - - 45 * + - CAST ( + CASE - + COUNT ( DISTINCT + + 42 ) WHEN + SUM ( ALL + + 60 ) THEN - + 63 + 45 ELSE NULL END AS REAL ) + + 38 THEN + COUNT ( * ) WHEN 18 + 37 / - 92 THEN NULL ELSE NULL END / + SUM ( - COALESCE ( - 82, 80 ) )
----
NULL

query I rowsort
SELECT - 44 + - 55 AS col1
----
-99

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

query I rowsort
SELECT - - 26 * 52 AS col2
----
1352

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2227
SELECT + + CASE - - AVG ( ALL 5 ) WHEN 42 THEN NULL WHEN COUNT( * ) * - 38 THEN NULL WHEN CASE COUNT( * ) WHEN - CAST( NULL AS SIGNED ) + - - 2 THEN NULL WHEN + CAST( NULL AS SIGNED ) + + 35 THEN - 97 WHEN + 43 THEN NULL ELSE NULL END + + 4 THEN 69 * - 18 + 14 END + 5 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2227
SELECT + + CASE - - AVG ( ALL 5 ) WHEN 42 THEN NULL WHEN COUNT ( * ) * - 38 THEN NULL WHEN CASE COUNT ( * ) WHEN - CAST ( NULL AS INTEGER ) + - - 2 THEN NULL WHEN + CAST ( NULL AS INTEGER ) + + 35 THEN - 97 WHEN + 43 THEN NULL ELSE NULL END + + 4 THEN 69 * - 18 + 14 END + 5 AS col0
----
NULL

query I rowsort
SELECT + - 76 + + 55
----
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-2229
SELECT ALL - SUM( ALL + - 50 ) col1
----
50

skipif mysql # not compatible
query I rowsort label-2229
SELECT ALL - SUM ( ALL + - 50 ) col1
----
50

query I rowsort
SELECT + + 2 + + 12 * + 5 + - 22
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-2231
SELECT ALL + 27 * + + 16 + 63 + + 45 * + COUNT( * ) AS col1
----
540

skipif mysql # not compatible
query I rowsort label-2231
SELECT ALL + 27 * + + 16 + 63 + + 45 * + COUNT ( * ) AS col1
----
540

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2232
SELECT DISTINCT 95 * - 18 + + CAST( NULL AS DECIMAL ) * COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-2232
SELECT DISTINCT 95 * - 18 + + CAST ( NULL AS REAL ) * COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2233
SELECT DISTINCT + MIN( DISTINCT + - 26 )
----
-26

skipif mysql # not compatible
query I rowsort label-2233
SELECT DISTINCT + MIN ( DISTINCT + - 26 )
----
-26

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2234
SELECT + CASE - 89 WHEN - COUNT( * ) THEN - 18 * - 44 ELSE + 16 DIV + MIN( + 8 ) + COUNT( * ) END * + - 41 AS col1
----
-123

skipif mysql # not compatible
query I rowsort label-2234
SELECT + CASE - 89 WHEN - COUNT ( * ) THEN - 18 * - 44 ELSE + 16 / + MIN ( + 8 ) + COUNT ( * ) END * + - 41 AS col1
----
-123

onlyif mysql # aggregate syntax: 
query I rowsort label-2235
SELECT ALL 45 * + 32 + - COUNT( * ) * 18 AS col2
----
1422

skipif mysql # not compatible
query I rowsort label-2235
SELECT ALL 45 * + 32 + - COUNT ( * ) * 18 AS col2
----
1422

onlyif mysql # DIV for integer division: 
query I rowsort label-2236
SELECT ALL 16 DIV + 76
----
0

skipif mysql # not compatible
query I rowsort label-2236
SELECT ALL 16 / + 76
----
0

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2238
SELECT COUNT( * ) DIV - COALESCE ( + 93, - AVG ( DISTINCT + 55 ) ) * 31 * - 97 - - + 60 col1
----
60

skipif mysql # not compatible
query I rowsort label-2238
SELECT COUNT ( * ) / - COALESCE ( + 93, - AVG ( DISTINCT + 55 ) ) * 31 * - 97 - - + 60 col1
----
60

query I rowsort
SELECT + COALESCE ( ( - 34 ), 85 ) col2
----
-34

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

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

query I rowsort
SELECT 58 * 15 + + NULLIF ( + 65, + 36 * - 30 ) * + ( NULLIF ( + 2, - - 51 + + - 32 ) )
----
1000

onlyif mysql # DIV for integer division: 
query I rowsort label-2242
SELECT DISTINCT 13 * - + 15 + + 68 + - 13 DIV - - ( + 46 ) - + ( + - 60 ) AS col2
----
-67

skipif mysql # not compatible
query I rowsort label-2242
SELECT DISTINCT 13 * - + 15 + + 68 + - 13 / - - ( + 46 ) - + ( + - 60 ) AS col2
----
-67

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2243
SELECT ALL 69 * + CAST( NULL AS SIGNED ) / + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-2243
SELECT ALL 69 * + CAST ( NULL AS INTEGER ) / + COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2244
SELECT CASE - COUNT( * ) WHEN NULLIF ( + ( + + 36 ), - - COUNT( * ) + + - 71 ) THEN + 53 - + MAX( DISTINCT - + 40 ) WHEN - 84 * + - AVG ( - 2 ) THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-2244
SELECT CASE - COUNT ( * ) WHEN NULLIF ( + ( + + 36 ), - - COUNT ( * ) + + - 71 ) THEN + 53 - + MAX ( DISTINCT - + 40 ) WHEN - 84 * + - AVG ( - 2 ) THEN NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2245
SELECT COALESCE ( - COUNT( * ), - - 51 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-2245
SELECT COALESCE ( - COUNT ( * ), - - 51 ) AS col1
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-2246
SELECT DISTINCT 50 * 31 + 73 DIV + 78 AS col1
----
1550

skipif mysql # not compatible
query I rowsort label-2246
SELECT DISTINCT 50 * 31 + 73 / + 78 AS col1
----
1550

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

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

query II rowsort
SELECT ALL + 71 AS col0, + 93
----
71
93

onlyif mysql # aggregate syntax: 
query I rowsort label-2249
SELECT - 73 * + MIN( + 40 ) col0
----
-2920

skipif mysql # not compatible
query I rowsort label-2249
SELECT - 73 * + MIN ( + 40 ) col0
----
-2920

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2251
SELECT ALL + 38 * 6 - - - 16 * - 8 * - ( + + 2 ) + 3 + 11 + COUNT( * )
----
-13

skipif mysql # not compatible
query I rowsort label-2251
SELECT ALL + 38 * 6 - - - 16 * - 8 * - ( + + 2 ) + 3 + 11 + COUNT ( * )
----
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-2252
SELECT MAX( DISTINCT + 26 )
----
26

skipif mysql # not compatible
query I rowsort label-2252
SELECT MAX ( DISTINCT + 26 )
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-2253
SELECT - 75 * + 37 + - + 36 * + + SUM( + 17 )
----
-3387

skipif mysql # not compatible
query I rowsort label-2253
SELECT - 75 * + 37 + - + 36 * + + SUM ( + 17 )
----
-3387

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query III rowsort label-2254
SELECT DISTINCT - 84 AS col1, COUNT( * ) AS col1, - - CAST( NULL AS DECIMAL )
----
-84
1
NULL

skipif mysql # not compatible
query III rowsort label-2254
SELECT DISTINCT - 84 AS col1, COUNT ( * ) AS col1, - - CAST ( NULL AS REAL )
----
-84
1
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2255
SELECT - + COUNT( * ) DIV MAX( + + ( - 28 ) ) AS col0, 7
----
0
7

skipif mysql # not compatible
query II rowsort label-2255
SELECT - + COUNT ( * ) / MAX ( + + ( - 28 ) ) AS col0, 7
----
0
7

query II rowsort
SELECT + + 11 + - 93 + ( 80 ) AS col2, 37 AS col1
----
-2
37

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2257
SELECT - + ( - + ( NULLIF ( - 98, - - MAX( ALL - + CAST( NULL AS SIGNED ) ) ) ) ) * + ( + 59 ) AS col2
----
-5782

skipif mysql # not compatible
query I rowsort label-2257
SELECT - + ( - + ( NULLIF ( - 98, - - MAX ( ALL - + CAST ( NULL AS INTEGER ) ) ) ) ) * + ( + 59 ) AS col2
----
-5782

query I rowsort
SELECT - - 36 + + 56 + - + 29 - + - 5 AS col0
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-2259
SELECT - 31 - + 71 + - 15 - + COUNT( * )
----
-118

skipif mysql # not compatible
query I rowsort label-2259
SELECT - 31 - + 71 + - 15 - + COUNT ( * )
----
-118

query I rowsort
SELECT DISTINCT - COALESCE ( 88, + - 58 )
----
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-2261
SELECT ALL - - COUNT( * ) + - COUNT( * ) + + 45 * 74 * - - 98 AS col2
----
326340

skipif mysql # not compatible
query I rowsort label-2261
SELECT ALL - - COUNT ( * ) + - COUNT ( * ) + + 45 * 74 * - - 98 AS col2
----
326340

onlyif mysql # aggregate syntax: 
query I rowsort label-2262
SELECT - 44 + - 58 * + - MAX( DISTINCT - - 95 ) AS col1
----
5466

skipif mysql # not compatible
query I rowsort label-2262
SELECT - 44 + - 58 * + - MAX ( DISTINCT - - 95 ) AS col1
----
5466

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2263
SELECT ALL - 39 DIV + - COALESCE ( + - 95, - ( SUM( ALL 9 ) ) )
----
0

skipif mysql # not compatible
query I rowsort label-2263
SELECT ALL - 39 / + - COALESCE ( + - 95, - ( SUM ( ALL 9 ) ) )
----
0

query I rowsort
SELECT ALL + + ( - 72 ) * + 47 AS col1
----
-3384

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

skipif mysql # not compatible
query II rowsort label-2265
SELECT - CAST ( NULL AS REAL ) AS col1, 99 * ( + CAST ( + - CAST ( NULL AS INTEGER ) AS INTEGER ) ) + - + COUNT ( * ) + - - 28
----
NULL
NULL

query I rowsort
SELECT ALL + - 26 + - COALESCE ( + 35, 67, 30 )
----
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-2267
SELECT - SUM( DISTINCT - 49 ) + - 90
----
-41

skipif mysql # not compatible
query I rowsort label-2267
SELECT - SUM ( DISTINCT - 49 ) + - 90
----
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-2268
SELECT + ( - + 52 ) - MAX( 80 )
----
-132

skipif mysql # not compatible
query I rowsort label-2268
SELECT + ( - + 52 ) - MAX ( 80 )
----
-132

onlyif mysql # aggregate syntax: 
query I rowsort label-2269
SELECT ( - 34 ) * + 53 + NULLIF ( 97, - 87 ) + - - COUNT( * ) col1
----
-1704

skipif mysql # not compatible
query I rowsort label-2269
SELECT ( - 34 ) * + 53 + NULLIF ( 97, - 87 ) + - - COUNT ( * ) col1
----
-1704

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2270
SELECT ALL 9 DIV - COALESCE ( - 20, - 87 * ( + 87 ) * 95, + COUNT( ALL + 98 ) ) + CAST( + 53 AS SIGNED )
----
53

skipif mysql # not compatible
query I rowsort label-2270
SELECT ALL 9 / - COALESCE ( - 20, - 87 * ( + 87 ) * 95, + COUNT ( ALL + 98 ) ) + CAST ( + 53 AS INTEGER )
----
53

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2271
SELECT - 3 DIV - + MIN( + 19 ) + 2 * ( 53 ) + 82 * - 40 + - 71
----
-3245

skipif mysql # not compatible
query I rowsort label-2271
SELECT - 3 / - + MIN ( + 19 ) + 2 * ( 53 ) + 82 * - 40 + - 71
----
-3245

query I rowsort
SELECT - ( - 5 ) * + 59
----
295

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2273
SELECT ALL 21 DIV - COUNT( * ) + 37 AS col2
----
16

skipif mysql # not compatible
query I rowsort label-2273
SELECT ALL 21 / - COUNT ( * ) + 37 AS col2
----
16

query I rowsort
SELECT ALL 15 * - 76
----
-1140

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2276
SELECT - 68 DIV 3 * + 86 col0
----
-1892

skipif mysql # not compatible
query I rowsort label-2276
SELECT - 68 / 3 * + 86 col0
----
-1892

query I rowsort
SELECT + 73 * + 51
----
3723

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

query I rowsort
SELECT + 50 + - 59 AS col2
----
-9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2280
SELECT ( 57 ), AVG ( + + 20 ) * ( - 67 ) / - + 98 + + 13 + - 83 * + 30 + - 39 + - 38 + - 2 * CASE 98 WHEN - 12 * - 28 THEN COUNT( * ) / + ( 29 ) + + 13 * - 49 WHEN - 93 THEN NULL WHEN - COALESCE ( 62, 1, + SUM( ALL - CAST( 56 AS SIGNED ) ) * 11 ) THEN 14 * CASE + 74 WHEN 51 THEN + MIN( DISTINCT 49 ) / CASE 30 WHEN CAST( 3 AS SIGNED ) + COUNT( * ) THEN 63 ELSE ( 97 ) END WHEN 65 THEN 36 END END * COUNT( DISTINCT - 69 ) + - 81 AS col0
----
57
NULL

skipif mysql # not compatible
query II rowsort label-2280
SELECT ( 57 ), AVG ( + + 20 ) * ( - 67 ) / - + 98 + + 13 + - 83 * + 30 + - 39 + - 38 + - 2 * CASE 98 WHEN - 12 * - 28 THEN COUNT ( * ) / + ( 29 ) + + 13 * - 49 WHEN - 93 THEN NULL WHEN - COALESCE ( 62, 1, + SUM ( ALL - CAST ( 56 AS INTEGER ) ) * 11 ) THEN 14 * CASE + 74 WHEN 51 THEN + MIN ( DISTINCT 49 ) / CASE 30 WHEN CAST ( 3 AS INTEGER ) + COUNT ( * ) THEN 63 ELSE ( 97 ) END WHEN 65 THEN 36 END END * COUNT ( DISTINCT - 69 ) + - 81 AS col0
----
57
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2281
SELECT + 37 DIV - + 57 * - - 11 * + SUM( 69 )
----
0

skipif mysql # not compatible
query I rowsort label-2281
SELECT + 37 / - + 57 * - - 11 * + SUM ( 69 )
----
0

query I rowsort
SELECT 64 * - + NULLIF ( - 97, 74 * 59 ) + 70 AS col2
----
6278

query I rowsort
SELECT DISTINCT 61 * 84 * 82 AS col1
----
420168

query I rowsort
SELECT + + 76 + + + 9 AS col1
----
85

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2285
SELECT ALL - CAST( COUNT( * ) AS SIGNED ) col1
----
-1

skipif mysql # not compatible
query I rowsort label-2285
SELECT ALL - CAST ( COUNT ( * ) AS INTEGER ) col1
----
-1

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2288
SELECT + COUNT( * ) * - 90 + + 90 * 11 * + - 85
----
-84240

skipif mysql # not compatible
query I rowsort label-2288
SELECT + COUNT ( * ) * - 90 + + 90 * 11 * + - 85
----
-84240

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2289
SELECT + + 89 * + 23 + + CAST( + 76 AS SIGNED )
----
2123

skipif mysql # not compatible
query I rowsort label-2289
SELECT + + 89 * + 23 + + CAST ( + 76 AS INTEGER )
----
2123

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2291
SELECT ALL CAST( NULL AS SIGNED ) * - + 11 * 65 * COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2291
SELECT ALL CAST ( NULL AS INTEGER ) * - + 11 * 65 * COUNT ( * ) AS col2
----
NULL

query I rowsort
SELECT 76 * + 9 - + + ( + - 55 )
----
739

onlyif mysql # aggregate syntax: 
query I rowsort label-2293
SELECT ALL - COUNT( 67 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-2293
SELECT ALL - COUNT ( 67 ) AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-2294
SELECT ALL + 19 + 67 * - 69 * + + COUNT( * ) + + 24
----
-4580

skipif mysql # not compatible
query I rowsort label-2294
SELECT ALL + 19 + 67 * - 69 * + + COUNT ( * ) + + 24
----
-4580

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2295
SELECT 99 + + + 70 + + 89 DIV COUNT( * ) - 53
----
205

skipif mysql # not compatible
query I rowsort label-2295
SELECT 99 + + + 70 + + 89 / COUNT ( * ) - 53
----
205

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2296
SELECT 91 + + 73 + + 63 + + - 93 DIV + - 67 + + COUNT( * ) * 69
----
297

skipif mysql # not compatible
query I rowsort label-2296
SELECT 91 + + 73 + + 63 + + - 93 / + - 67 + + COUNT ( * ) * 69
----
297

query I rowsort
SELECT 71 * - 92 * + + 16 AS col2
----
-104512

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2298
SELECT ALL 40, - AVG ( 45 ) * + CAST( NULL AS SIGNED ) AS col2
----
40
NULL

skipif mysql # not compatible
query II rowsort label-2298
SELECT ALL 40, - AVG ( 45 ) * + CAST ( NULL AS INTEGER ) AS col2
----
40
NULL

query I rowsort
SELECT 81 * + 55
----
4455

onlyif mysql # DIV for integer division: 
query II rowsort label-2300
SELECT ALL - 35 col0, + 43 DIV + ( - 59 ) AS col1
----
-35
0

skipif mysql # not compatible
query II rowsort label-2300
SELECT ALL - 35 col0, + 43 / + ( - 59 ) AS col1
----
-35
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2301
SELECT ALL - CASE + 14 WHEN 94 * - COALESCE ( - 80, - - 62 ) + + 6 THEN + NULLIF ( 88, - 93 ) * + + 51 / - 22 / + 22 + - 14 + - 60 * NULLIF ( - 37, 83 ) + - COUNT( * ) / - 62 WHEN 44 / 2 THEN 83 ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2301
SELECT ALL - CASE + 14 WHEN 94 * - COALESCE ( - 80, - - 62 ) + + 6 THEN + NULLIF ( 88, - 93 ) * + + 51 / - 22 / + 22 + - 14 + - 60 * NULLIF ( - 37, 83 ) + - COUNT ( * ) / - 62 WHEN 44 / 2 THEN 83 ELSE NULL END AS col0
----
NULL

query II rowsort
SELECT + 14, 8 AS col1
----
14
8

query I rowsort
SELECT 96 * - + 68 AS col2
----
-6528

onlyif mysql # aggregate syntax: 
query I rowsort label-2304
SELECT 32 * + + COALESCE ( + COUNT( * ), + - COUNT( * ) * - + COUNT( * ) * ( - 32 ) + - 50 * 80, CASE - - 11 WHEN - - 78 THEN NULL WHEN - 85 - - 50 + ( + - 86 ) THEN + + 37 ELSE NULL END, + - 24 )
----
32

skipif mysql # not compatible
query I rowsort label-2304
SELECT 32 * + + COALESCE ( + COUNT ( * ), + - COUNT ( * ) * - + COUNT ( * ) * ( - 32 ) + - 50 * 80, CASE - - 11 WHEN - - 78 THEN NULL WHEN - 85 - - 50 + ( + - 86 ) THEN + + 37 ELSE NULL END, + - 24 )
----
32

onlyif mysql # DIV for integer division: 
query II rowsort label-2305
SELECT 35 AS col0, 25 - + ( - - 11 ) DIV + 18 + 97
----
35
122

skipif mysql # not compatible
query II rowsort label-2305
SELECT 35 AS col0, 25 - + ( - - 11 ) / + 18 + 97
----
35
122

onlyif mysql # aggregate syntax: 
query I rowsort label-2306
SELECT 78 * + 39 - - - NULLIF ( + + 57, 10 + 56 ) * 4 * SUM( ALL 93 )
----
-18162

skipif mysql # not compatible
query I rowsort label-2306
SELECT 78 * + 39 - - - NULLIF ( + + 57, 10 + 56 ) * 4 * SUM ( ALL 93 )
----
-18162

query I rowsort
SELECT 22 * - 74 AS col2
----
-1628

onlyif mysql # DIV for integer division: 
query I rowsort label-2308
SELECT 42 DIV - 97 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-2308
SELECT 42 / - 97 AS col2
----
0

query I rowsort
SELECT - 63 * + 9 col0
----
-567

onlyif mysql # DIV for integer division: 
query I rowsort label-2310
SELECT DISTINCT + 33 DIV + + 65
----
0

skipif mysql # not compatible
query I rowsort label-2310
SELECT DISTINCT + 33 / + + 65
----
0

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

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

query I rowsort
SELECT + + NULLIF ( - + 24, - 52 * 76 )
----
-24

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

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

query I rowsort
SELECT ALL + 83 + 16 + - + 72
----
27

query I rowsort
SELECT ( 16 ) * - 1 AS col0
----
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-2316
SELECT DISTINCT + + CASE - 64 WHEN 26 * 18 - + 4 THEN + - CASE + + 5 WHEN - + COUNT( * ) THEN 33 * - 95 + + + 96 WHEN - 75 THEN - MIN( 33 ) WHEN - 88 / - 45 + 85 + - + NULLIF ( + MAX( ALL 24 ), 84 ) THEN NULL ELSE + 62 + MIN( ALL 66 ) END ELSE NULL END * - 4 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2316
SELECT DISTINCT + + CASE - 64 WHEN 26 * 18 - + 4 THEN + - CASE + + 5 WHEN - + COUNT ( * ) THEN 33 * - 95 + + + 96 WHEN - 75 THEN - MIN ( 33 ) WHEN - 88 / - 45 + 85 + - + NULLIF ( + MAX ( ALL 24 ), 84 ) THEN NULL ELSE + 62 + MIN ( ALL 66 ) END ELSE NULL END * - 4 AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2317
SELECT AVG ( ALL CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-2317
SELECT AVG ( ALL CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2318
SELECT ALL + NULLIF ( + NULLIF ( MAX( ALL 29 ), 92 ), - COUNT( * ) + - 53 * - 33 ) * 40 * 96 * + 14 * 76 * - 7, - 44 * CAST( 14 AS SIGNED ) * + + ( - + 39 ) * 26 AS col1
----
-829409280
624624

skipif mysql # not compatible
query II rowsort label-2318
SELECT ALL + NULLIF ( + NULLIF ( MAX ( ALL 29 ), 92 ), - COUNT ( * ) + - 53 * - 33 ) * 40 * 96 * + 14 * 76 * - 7, - 44 * CAST ( 14 AS INTEGER ) * + + ( - + 39 ) * 26 AS col1
----
-829409280
624624

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2319
SELECT DISTINCT - COALESCE ( - CAST( NULL AS SIGNED ), + CAST( NULL AS SIGNED ), - 77 ) + 56 AS col0
----
133

skipif mysql # not compatible
query I rowsort label-2319
SELECT DISTINCT - COALESCE ( - CAST ( NULL AS INTEGER ), + CAST ( NULL AS INTEGER ), - 77 ) + 56 AS col0
----
133

query II rowsort
SELECT + 70, + 72 * - - 20 AS col1
----
70
1440

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2321
SELECT COUNT( * ) + 16 * CAST( 24 AS SIGNED ) + 71 AS col2
----
456

skipif mysql # not compatible
query I rowsort label-2321
SELECT COUNT ( * ) + 16 * CAST ( 24 AS INTEGER ) + 71 AS col2
----
456

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

query I rowsort
SELECT 70 + + + 99
----
169

query II rowsort
SELECT 14 * + 29 * + 65 AS col2, + 78
----
26390
78

onlyif mysql # aggregate syntax: 
query II rowsort label-2325
SELECT - 4 AS col1, + COALESCE ( + COALESCE ( + 31, + - MAX( 6 ) ), - SUM( + - 89 ), - - 89 * + + 87 * - 92 ) * ( + 34 ) * - - MIN( 8 ) AS col1
----
-4
8432

skipif mysql # not compatible
query II rowsort label-2325
SELECT - 4 AS col1, + COALESCE ( + COALESCE ( + 31, + - MAX ( 6 ) ), - SUM ( + - 89 ), - - 89 * + + 87 * - 92 ) * ( + 34 ) * - - MIN ( 8 ) AS col1
----
-4
8432

query I rowsort
SELECT ALL - 7 - - - 79 AS col2
----
-86

query I rowsort
SELECT ( + 33 ) + - 63
----
-30

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

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

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

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

query II rowsort
SELECT DISTINCT 51 * - 64 AS col2, - 67
----
-3264
-67

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

skipif mysql # not compatible
query I rowsort label-2331
SELECT - COUNT ( 13 )
----
-1

query II rowsort
SELECT COALESCE ( + + 9, 41 * 54 ) + - 99, 44 * + - 90 + + 20 col1
----
-90
-3940

query I rowsort
SELECT ALL 86 * + 69 AS col0
----
5934

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2334
SELECT DISTINCT COUNT( * ) - + 11 DIV 69 col0
----
1

skipif mysql # not compatible
query I rowsort label-2334
SELECT DISTINCT COUNT ( * ) - + 11 / 69 col0
----
1

query I rowsort
SELECT 80 + - 84
----
-4

query I rowsort
SELECT 16 + 12 + + 29 AS col2
----
57

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2337
SELECT CASE 36 WHEN - 74 * - 72 THEN NULL ELSE MIN( DISTINCT + + CASE + + 47 WHEN 92 * - 91 THEN NULL ELSE + CAST( NULL AS SIGNED ) END ) + ( - COUNT( * ) ) END AS col1, - 0 col1
----
NULL
0

skipif mysql # not compatible
query II rowsort label-2337
SELECT CASE 36 WHEN - 74 * - 72 THEN NULL ELSE MIN ( DISTINCT + + CASE + + 47 WHEN 92 * - 91 THEN NULL ELSE + CAST ( NULL AS INTEGER ) END ) + ( - COUNT ( * ) ) END AS col1, - 0 col1
----
NULL
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2338
SELECT NULLIF ( - 97, + 31 * + CAST( NULL AS SIGNED ) / - 71 + MAX( DISTINCT - 28 ) + + 55 - 43 + - COUNT( * ) * - + 24 + + 52 + AVG ( + 43 ) - + + 72 * + ( - 45 ) * + 24 * 22 + + CASE 19 WHEN 50 + - 75 * 12 THEN + COUNT( * ) WHEN - NULLIF ( 85, - 42 ) THEN + 74 END )
----
-97

skipif mysql # not compatible
query I rowsort label-2338
SELECT NULLIF ( - 97, + 31 * + CAST ( NULL AS INTEGER ) / - 71 + MAX ( DISTINCT - 28 ) + + 55 - 43 + - COUNT ( * ) * - + 24 + + 52 + AVG ( + 43 ) - + + 72 * + ( - 45 ) * + 24 * 22 + + CASE 19 WHEN 50 + - 75 * 12 THEN + COUNT ( * ) WHEN - NULLIF ( 85, - 42 ) THEN + 74 END )
----
-97

query I rowsort
SELECT 32 * - + 14 AS col2
----
-448

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2340
SELECT ALL + NULLIF ( CASE - - 45 WHEN - - 39 THEN - - AVG ( + 64 ) + + CASE + + 53 WHEN 29 THEN NULL WHEN - 69 THEN + 27 / + 61 ELSE NULL END + + - 41 + + CAST( + 92 AS DECIMAL ) * 19 END, + NULLIF ( + 94, + 81 ) * - 47 ) / - 48
----
NULL

skipif mysql # not compatible
query I rowsort label-2340
SELECT ALL + NULLIF ( CASE - - 45 WHEN - - 39 THEN - - AVG ( + 64 ) + + CASE + + 53 WHEN 29 THEN NULL WHEN - 69 THEN + 27 / + 61 ELSE NULL END + + - 41 + + CAST ( + 92 AS REAL ) * 19 END, + NULLIF ( + 94, + 81 ) * - 47 ) / - 48
----
NULL

query I rowsort
SELECT 6 + + - 18 AS col2
----
-12

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2342
SELECT ALL COUNT( * ) DIV 86, COALESCE ( 35, + COUNT( DISTINCT + + 81 ) DIV + 25, + 69 ) + + + 34 * + + 97 AS col0
----
0
3333

skipif mysql # not compatible
query II rowsort label-2342
SELECT ALL COUNT ( * ) / 86, COALESCE ( 35, + COUNT ( DISTINCT + + 81 ) / + 25, + 69 ) + + + 34 * + + 97 AS col0
----
0
3333

onlyif mysql # aggregate syntax: 
query II rowsort label-2343
SELECT - 8 * - + 17 * - + MIN( ALL - 1 ), + 9 AS col1
----
136
9

skipif mysql # not compatible
query II rowsort label-2343
SELECT - 8 * - + 17 * - + MIN ( ALL - 1 ), + 9 AS col1
----
136
9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2344
SELECT ALL 56 * + ( 31 ) + - - CAST( 9 AS SIGNED ) DIV 95 * - MIN( + + 84 )
----
1736

skipif mysql # not compatible
query I rowsort label-2344
SELECT ALL 56 * + ( 31 ) + - - CAST ( 9 AS INTEGER ) / 95 * - MIN ( + + 84 )
----
1736

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

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

query I rowsort
SELECT + + CASE - 33 WHEN - + 44 * - 63 * 27 THEN - 50 END + - - 93 col2
----
NULL

query I rowsort
SELECT - 22 + - 23 + 10 col2
----
-35

query I rowsort
SELECT ALL - 4 * + 34
----
-136

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2351
SELECT ALL - 16 * - + 78 - + + COUNT( * ) + + + MIN( + - 86 ) + - COUNT( * ) + + 29 AS col1
----
1189

skipif mysql # not compatible
query I rowsort label-2351
SELECT ALL - 16 * - + 78 - + + COUNT ( * ) + + + MIN ( + - 86 ) + - COUNT ( * ) + + 29 AS col1
----
1189

onlyif mysql # aggregate syntax: 
query I rowsort label-2352
SELECT DISTINCT + - 36 * - - COUNT( * ) + + 29 + 26 * 67 + + 36 * - COALESCE ( + 13, + COUNT( * ), 24 )
----
1267

skipif mysql # not compatible
query I rowsort label-2352
SELECT DISTINCT + - 36 * - - COUNT ( * ) + + 29 + 26 * 67 + + 36 * - COALESCE ( + 13, + COUNT ( * ), 24 )
----
1267

query I rowsort
SELECT ALL - + 95 * + + 20 * - 44 AS col1
----
83600

query I rowsort
SELECT - 11 + 67 - 81 * 31 * - ( + 1 ) * - 4
----
-9988

onlyif mysql # aggregate syntax: 
query I rowsort label-2355
SELECT ALL + COUNT( 20 ) + + - 57
----
-56

skipif mysql # not compatible
query I rowsort label-2355
SELECT ALL + COUNT ( 20 ) + + - 57
----
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-2356
SELECT + - SUM( ALL + - 64 ) + + + 58
----
122

skipif mysql # not compatible
query I rowsort label-2356
SELECT + - SUM ( ALL + - 64 ) + + + 58
----
122

query I rowsort
SELECT DISTINCT NULLIF ( + - 99, + 56 + + - 9 * + - 21 )
----
-99

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2359
SELECT + + 91 + 23 * + COUNT( * ) * + 27 / - 51 + + 73 * + - ( + 53 ) * 10 * + - CASE + + 37 WHEN + 61 * - COALESCE ( NULLIF ( + + 70, CAST( NULL AS SIGNED ) * - - ( + + 58 ) ), - 98 - 18, - 45 + 86 / + 98 ) / - 40 THEN CAST( - SUM( + 33 ) AS SIGNED ) + 31 WHEN 7 * 49 + - 45 * - 32 THEN 21 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2359
SELECT + + 91 + 23 * + COUNT ( * ) * + 27 / - 51 + + 73 * + - ( + 53 ) * 10 * + - CASE + + 37 WHEN + 61 * - COALESCE ( NULLIF ( + + 70, CAST ( NULL AS INTEGER ) * - - ( + + 58 ) ), - 98 - 18, - 45 + 86 / + 98 ) / - 40 THEN CAST ( - SUM ( + 33 ) AS INTEGER ) + 31 WHEN 7 * 49 + - 45 * - 32 THEN 21 END AS col2
----
NULL

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2361
SELECT - 13 * + 72 / - CAST( NULL AS DECIMAL ) / - - 91
----
NULL

skipif mysql # not compatible
query I rowsort label-2361
SELECT - 13 * + 72 / - CAST ( NULL AS REAL ) / - - 91
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2362
SELECT ALL + ( + - NULLIF ( - 71, + COUNT( * ) ) ) * - 35 AS col1
----
-2485

skipif mysql # not compatible
query I rowsort label-2362
SELECT ALL + ( + - NULLIF ( - 71, + COUNT ( * ) ) ) * - 35 AS col1
----
-2485

query I rowsort
SELECT ALL - 77 * COALESCE ( 34, + 48 ) AS col2
----
-2618

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

query I rowsort
SELECT + 81 * - 80
----
-6480

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

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

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

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

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

skipif mysql # not compatible
query I rowsort label-2368
SELECT - ( SUM ( + 40 ) )
----
-40

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2371
SELECT DISTINCT - NULLIF ( + 96, + COUNT( - 4 ) ) DIV + 50 + + + 89
----
88

skipif mysql # not compatible
query I rowsort label-2371
SELECT DISTINCT - NULLIF ( + 96, + COUNT ( - 4 ) ) / + 50 + + + 89
----
88

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2372
SELECT DISTINCT 83 / - + 2 + + SUM( + 45 ) + + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-2372
SELECT DISTINCT 83 / - + 2 + + SUM ( + 45 ) + + CAST ( NULL AS REAL )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2373
SELECT 15 DIV - - COUNT( ALL + + 41 ) + ( + 44 ) AS col2, 71 * - 43
----
59
-3053

skipif mysql # not compatible
query II rowsort label-2373
SELECT 15 / - - COUNT ( ALL + + 41 ) + ( + 44 ) AS col2, 71 * - 43
----
59
-3053

query I rowsort
SELECT + NULLIF ( - ( + 12 ), - 69 * + 94 - + 23 )
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-2375
SELECT + 55 + + COUNT( * ) AS col2
----
56

skipif mysql # not compatible
query I rowsort label-2375
SELECT + 55 + + COUNT ( * ) AS col2
----
56

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2376
SELECT DISTINCT - + 46 / - 89 - CAST( NULL AS SIGNED ) + - MAX( ALL + - 70 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2376
SELECT DISTINCT - + 46 / - 89 - CAST ( NULL AS INTEGER ) + - MAX ( ALL + - 70 )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2377
SELECT DISTINCT + - 80 DIV ( + 51 ) * - + 10 DIV + 60 + - COUNT( * ) * + 62 + 77 + - COUNT( * )
----
14

skipif mysql # not compatible
query I rowsort label-2377
SELECT DISTINCT + - 80 / ( + 51 ) * - + 10 / + 60 + - COUNT ( * ) * + 62 + 77 + - COUNT ( * )
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-2378
SELECT DISTINCT + 76 * 10 * COUNT( * ) + + COUNT( * ) AS col0
----
761

skipif mysql # not compatible
query I rowsort label-2378
SELECT DISTINCT + 76 * 10 * COUNT ( * ) + + COUNT ( * ) AS col0
----
761

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2379
SELECT ALL 47 * + + 80 + - CAST( NULL AS SIGNED ) + - 49 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2379
SELECT ALL 47 * + + 80 + - CAST ( NULL AS INTEGER ) + - 49 col2
----
NULL

query I rowsort
SELECT - 84 * 15 + 93 + - 91
----
-1258

query II rowsort
SELECT + 82 AS col2, 25
----
82
25

query I rowsort
SELECT - 31 * 67 AS col1
----
-2077

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2383
SELECT + + COALESCE ( + + 84, 90 + + CAST( + 37 AS SIGNED ) ) AS col0
----
84

skipif mysql # not compatible
query I rowsort label-2383
SELECT + + COALESCE ( + + 84, 90 + + CAST ( + 37 AS INTEGER ) ) AS col0
----
84

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2384
SELECT ALL - 39 * 9 * - 83 + + + CAST( - 40 AS SIGNED ) - + 68 + + 0
----
29025

skipif mysql # not compatible
query I rowsort label-2384
SELECT ALL - 39 * 9 * - 83 + + + CAST ( - 40 AS INTEGER ) - + 68 + + 0
----
29025

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2385
SELECT - COUNT( * ) * - + 14 DIV - 8 + + + COUNT( * ) DIV - + 45 + - + 37 - - 11
----
-27

skipif mysql # not compatible
query I rowsort label-2385
SELECT - COUNT ( * ) * - + 14 / - 8 + + + COUNT ( * ) / - + 45 + - + 37 - - 11
----
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-2386
SELECT DISTINCT - MAX( + 3 ) col2
----
-3

skipif mysql # not compatible
query I rowsort label-2386
SELECT DISTINCT - MAX ( + 3 ) col2
----
-3

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2388
SELECT DISTINCT + 48 AS col2, - CAST( 99 AS SIGNED ) * + - 26 AS col0
----
48
2574

skipif mysql # not compatible
query II rowsort label-2388
SELECT DISTINCT + 48 AS col2, - CAST ( 99 AS INTEGER ) * + - 26 AS col0
----
48
2574

query II rowsort
SELECT DISTINCT ( - 62 ) col1, 28
----
-62
28

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

query I rowsort
SELECT - 93 + - + 61 * + 28 AS col0
----
-1801

query I rowsort
SELECT - 98 - + 65 col2
----
-163

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2394
SELECT - CAST( + 43 AS SIGNED ) + - - 9 + - 76 * SUM( ALL - 68 )
----
5134

skipif mysql # not compatible
query I rowsort label-2394
SELECT - CAST ( + 43 AS INTEGER ) + - - 9 + - 76 * SUM ( ALL - 68 )
----
5134

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2397
SELECT + 27 * + COALESCE ( + + 69, COALESCE ( + 35, + - NULLIF ( - 94, + ( COALESCE ( 32, 85 ) ) ) ), + + 15 ) / - CASE + 76 WHEN 33 + - 11 + + 27 THEN NULL WHEN - COUNT( * ) + + + 12 * 18 THEN - + 19 END * 86 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2397
SELECT + 27 * + COALESCE ( + + 69, COALESCE ( + 35, + - NULLIF ( - 94, + ( COALESCE ( 32, 85 ) ) ) ), + + 15 ) / - CASE + 76 WHEN 33 + - 11 + + 27 THEN NULL WHEN - COUNT ( * ) + + + 12 * 18 THEN - + 19 END * 86 AS col2
----
NULL

query I rowsort
SELECT - 39 + + - 12
----
-51

query I rowsort
SELECT ALL 50 * + - 34 * - 54 AS col0
----
91800

onlyif mysql # aggregate syntax: 
query I rowsort label-2400
SELECT DISTINCT - COUNT( * ) + + 36 * + - 90 col2
----
-3241

skipif mysql # not compatible
query I rowsort label-2400
SELECT DISTINCT - COUNT ( * ) + + 36 * + - 90 col2
----
-3241

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2401
SELECT COUNT( * ) * + 0 * + - CAST( + - 25 AS SIGNED ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2401
SELECT COUNT ( * ) * + 0 * + - CAST ( + - 25 AS INTEGER ) AS col0
----
0

query I rowsort
SELECT 25 + - 61 - - 99
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-2403
SELECT ALL - ( 62 ) + + - COUNT( * ) - + 37
----
-100

skipif mysql # not compatible
query I rowsort label-2403
SELECT ALL - ( 62 ) + + - COUNT ( * ) - + 37
----
-100

onlyif mysql # aggregate syntax: 
query I rowsort label-2404
SELECT DISTINCT + COUNT( * ) * MAX( ALL + 59 )
----
59

skipif mysql # not compatible
query I rowsort label-2404
SELECT DISTINCT + COUNT ( * ) * MAX ( ALL + 59 )
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-2405
SELECT ALL - 74 + 35 * - SUM( ( 22 ) ) AS col2
----
-844

skipif mysql # not compatible
query I rowsort label-2405
SELECT ALL - 74 + 35 * - SUM ( ( 22 ) ) AS col2
----
-844

onlyif mysql # aggregate syntax: 
query II rowsort label-2406
SELECT 32 AS col2, - NULLIF ( + + ( 13 ), - + MIN( + 77 ) ) AS col1
----
32
-13

skipif mysql # not compatible
query II rowsort label-2406
SELECT 32 AS col2, - NULLIF ( + + ( 13 ), - + MIN ( + 77 ) ) AS col1
----
32
-13

onlyif mysql # DIV for integer division: 
query II rowsort label-2407
SELECT - 68, ( + + 39 ) + + ( + 18 ) DIV 49 AS col2
----
-68
39

skipif mysql # not compatible
query II rowsort label-2407
SELECT - 68, ( + + 39 ) + + ( + 18 ) / 49 AS col2
----
-68
39

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

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

query II rowsort
SELECT 80, 37 * - + COALESCE ( - - 48, - 60 ) * - 2 AS col0
----
80
3552

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2411
SELECT ALL CAST( NULL AS SIGNED ) + - 97 / + 15 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2411
SELECT ALL CAST ( NULL AS INTEGER ) + - 97 / + 15 AS col0
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2413
SELECT DISTINCT + SUM( + + 39 ) * - COALESCE ( - 11, - COUNT( * ), 73 ) AS col1, 21
----
429
21

skipif mysql # not compatible
query II rowsort label-2413
SELECT DISTINCT + SUM ( + + 39 ) * - COALESCE ( - 11, - COUNT ( * ), 73 ) AS col1, 21
----
429
21

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2414
SELECT + CASE - CAST( + - 13 AS SIGNED ) WHEN + + 14 THEN - 85 + - 58 WHEN 61 THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-2414
SELECT + CASE - CAST ( + - 13 AS INTEGER ) WHEN + + 14 THEN - 85 + - 58 WHEN 61 THEN NULL ELSE NULL END
----
NULL

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

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

query I rowsort
SELECT DISTINCT 18 - 32 AS col0
----
-14

query II rowsort
SELECT DISTINCT 58 * + NULLIF ( 82, + - 11 ) * + - 39 * - 59 AS col2, 44
----
10943556
44

onlyif mysql # DIV for integer division: 
query I rowsort label-2418
SELECT 30 DIV - 12 + + 80 AS col0
----
78

skipif mysql # not compatible
query I rowsort label-2418
SELECT 30 / - 12 + + 80 AS col0
----
78

query I rowsort
SELECT 99 * 10
----
990

onlyif mysql # aggregate syntax: 
query I rowsort label-2420
SELECT + 6 * - MAX( ALL + 9 )
----
-54

skipif mysql # not compatible
query I rowsort label-2420
SELECT + 6 * - MAX ( ALL + 9 )
----
-54

query I rowsort
SELECT 30 + 88 AS col2
----
118

query II rowsort
SELECT + 11 AS col0, 70 + + 29
----
11
99

query I rowsort
SELECT - 73 * 54 + 13
----
-3929

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

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

query II rowsort
SELECT - 11 AS col1, 29
----
-11
29

query I rowsort
SELECT + + 13 * 53 * 75 + - 45 AS col0
----
51630

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2428
SELECT DISTINCT 87 DIV 11
----
7

skipif mysql # not compatible
query I rowsort label-2428
SELECT DISTINCT 87 / 11
----
7

query I rowsort
SELECT - 31 + 70
----
39

query I rowsort
SELECT DISTINCT + 32 * - + 70 AS col2
----
-2240

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2431
SELECT CAST( - 42 AS SIGNED ) * 34 * - - 92 * + 30 col0
----
-3941280

skipif mysql # not compatible
query I rowsort label-2431
SELECT CAST ( - 42 AS INTEGER ) * 34 * - - 92 * + 30 col0
----
-3941280

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

query I rowsort
SELECT 35 + - 55
----
-20

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2434
SELECT DISTINCT MAX( + 21 ) + - 35 * + 82 * + 22 * + - 82 DIV - 82 + COUNT( * ) * - 97
----
-63216

skipif mysql # not compatible
query I rowsort label-2434
SELECT DISTINCT MAX ( + 21 ) + - 35 * + 82 * + 22 * + - 82 / - 82 + COUNT ( * ) * - 97
----
-63216

onlyif mysql # aggregate syntax: 
query I rowsort label-2435
SELECT ALL + 87 + + 58 * 5 + + MAX( ALL 39 ) AS col2
----
416

skipif mysql # not compatible
query I rowsort label-2435
SELECT ALL + 87 + + 58 * 5 + + MAX ( ALL 39 ) AS col2
----
416

query I rowsort
SELECT 15 * 83 AS col2
----
1245

query I rowsort
SELECT ALL - 14 + + 12 col0
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-2438
SELECT DISTINCT - MAX( ALL + 57 ) + + NULLIF ( + 64, 25 - - 68 ) AS col2
----
7

skipif mysql # not compatible
query I rowsort label-2438
SELECT DISTINCT - MAX ( ALL + 57 ) + + NULLIF ( + 64, 25 - - 68 ) AS col2
----
7

onlyif mysql # DIV for integer division: 
query I rowsort label-2439
SELECT ALL + 14 + 44 + - ( 35 ) DIV + 38 + + + 76 * - 13
----
-930

skipif mysql # not compatible
query I rowsort label-2439
SELECT ALL + 14 + 44 + - ( 35 ) / + 38 + + + 76 * - 13
----
-930

onlyif mysql # aggregate syntax: 
query I rowsort label-2440
SELECT ALL + COUNT( * ) + - + 39
----
-38

skipif mysql # not compatible
query I rowsort label-2440
SELECT ALL + COUNT ( * ) + - + 39
----
-38

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2441
SELECT 60 DIV - CAST( + + COUNT( * ) AS SIGNED )
----
-60

skipif mysql # not compatible
query I rowsort label-2441
SELECT 60 / - CAST ( + + COUNT ( * ) AS INTEGER )
----
-60

query I rowsort
SELECT 31 * + 92 * + 11
----
31372

query I rowsort
SELECT ALL 37 * + - 37
----
-1369

onlyif mysql # aggregate syntax: 
query I rowsort label-2444
SELECT CASE 12 WHEN + 2 - + ( - + 56 ) + + 91 - + 39 + - 20 * COUNT( * ) THEN + + 41 + - ( + 42 ) ELSE NULL END + - 48
----
NULL

skipif mysql # not compatible
query I rowsort label-2444
SELECT CASE 12 WHEN + 2 - + ( - + 56 ) + + 91 - + 39 + - 20 * COUNT ( * ) THEN + + 41 + - ( + 42 ) ELSE NULL END + - 48
----
NULL

query I rowsort
SELECT DISTINCT + - 51 + 4 + 87 AS col2
----
40

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2446
SELECT ALL - - 88 - + - CAST( NULL AS SIGNED ) + + 54 * - 10
----
NULL

skipif mysql # not compatible
query I rowsort label-2446
SELECT ALL - - 88 - + - CAST ( NULL AS INTEGER ) + + 54 * - 10
----
NULL

query I rowsort
SELECT DISTINCT 55 * + 92 - + 41 col1
----
5019

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2448
SELECT ALL + - AVG ( 97 ) * ( 37 ) + + - CAST( NULL AS SIGNED ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2448
SELECT ALL + - AVG ( 97 ) * ( 37 ) + + - CAST ( NULL AS INTEGER ) col2
----
NULL

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2450
SELECT + 5 DIV + ( + 93 ) + - - 41 + 21 * COALESCE ( COUNT( * ), 56 * + CASE 87 WHEN + 82 THEN 48 WHEN - 0 DIV + 4 + + 65 + 15 + 44 * - + 47 THEN NULL END - - 27 ) * 70 * 74 * - 26
----
-2828239

skipif mysql # not compatible
query I rowsort label-2450
SELECT + 5 / + ( + 93 ) + - - 41 + 21 * COALESCE ( COUNT ( * ), 56 * + CASE 87 WHEN + 82 THEN 48 WHEN - 0 / + 4 + + 65 + 15 + 44 * - + 47 THEN NULL END - - 27 ) * 70 * 74 * - 26
----
-2828239

query I rowsort
SELECT + 84 * + - 42 + - 58 + - 94 * + 69 * 21 + + 31 + + - 77 AS col2
----
-139838

query II rowsort
SELECT ALL 87 - - + 10 AS col1, - 29
----
97
-29

query I rowsort
SELECT ALL + 49 * - ( + + 42 ) * - 50 AS col0
----
102900

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2454
SELECT ALL + 99 * COUNT( * ) * CAST( + - 27 AS SIGNED ) col2
----
-2673

skipif mysql # not compatible
query I rowsort label-2454
SELECT ALL + 99 * COUNT ( * ) * CAST ( + - 27 AS INTEGER ) col2
----
-2673

query II rowsort
SELECT - 6 * - - 74, 2 + 42 AS col0
----
-444
44

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2456
SELECT ALL 76 * - 62 * - 20 / CAST( NULL AS SIGNED ) + 43
----
NULL

skipif mysql # not compatible
query I rowsort label-2456
SELECT ALL 76 * - 62 * - 20 / CAST ( NULL AS INTEGER ) + 43
----
NULL

query I rowsort
SELECT NULLIF ( 80, - - 71 + + 54 ) AS col2
----
80

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

skipif mysql # not compatible
query I rowsort label-2458
SELECT + - MIN ( + 1 )
----
-1

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

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

query I rowsort
SELECT 90 * - 51 AS col2
----
-4590

query II rowsort
SELECT 71 AS col2, - 60 AS col2
----
71
-60

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

skipif mysql # not compatible
query I rowsort label-2462
SELECT ALL COUNT ( * ) + + 84 * - 52 AS col2
----
-4367

query I rowsort
SELECT DISTINCT 86 + 41 AS col0
----
127

query I rowsort
SELECT + 15 * - 68 AS col2
----
-1020

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2465
SELECT DISTINCT 39 + - CASE - - CAST( + + COALESCE ( MIN( - 69 ), + 61 ) AS SIGNED ) WHEN + 78 + - + 68 * ( + - ( + - ( - - 3 ) ) ) THEN - 19 + - 29 ELSE NULL END * CAST( CAST( + 37 AS SIGNED ) AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-2465
SELECT DISTINCT 39 + - CASE - - CAST ( + + COALESCE ( MIN ( - 69 ), + 61 ) AS INTEGER ) WHEN + 78 + - + 68 * ( + - ( + - ( - - 3 ) ) ) THEN - 19 + - 29 ELSE NULL END * CAST ( CAST ( + 37 AS INTEGER ) AS INTEGER )
----
NULL

query I rowsort
SELECT ALL - 83 + + 11
----
-72

query II rowsort
SELECT DISTINCT 2 AS col1, - 63
----
2
-63

query I rowsort
SELECT + 79 + - 88 AS col1
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-2469
SELECT - 85 - + MAX( ALL - 45 ) * - ( - - SUM( ALL 1 ) ) * + + 33 AS col1
----
-1570

skipif mysql # not compatible
query I rowsort label-2469
SELECT - 85 - + MAX ( ALL - 45 ) * - ( - - SUM ( ALL 1 ) ) * + + 33 AS col1
----
-1570

query II rowsort
SELECT + 56 + 60 - 64 AS col1, 93 AS col2
----
52
93

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2472
SELECT - NULLIF ( - - COUNT( * ), + COUNT( * ) + - - 41 + + + 47 )
----
-1

skipif mysql # not compatible
query I rowsort label-2472
SELECT - NULLIF ( - - COUNT ( * ), + COUNT ( * ) + - - 41 + + + 47 )
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2473
SELECT - CASE + 28 WHEN 8 * + + 93 / COALESCE ( + 81, - 15, - ( - 99 ) / + + COALESCE ( - + 37, - + 52 + - 11, + + 14 ) ) * - 68 THEN + CAST( + 0 AS SIGNED ) - - 88 END col0, 23
----
NULL
23

skipif mysql # not compatible
query II rowsort label-2473
SELECT - CASE + 28 WHEN 8 * + + 93 / COALESCE ( + 81, - 15, - ( - 99 ) / + + COALESCE ( - + 37, - + 52 + - 11, + + 14 ) ) * - 68 THEN + CAST ( + 0 AS INTEGER ) - - 88 END col0, 23
----
NULL
23

query I rowsort
SELECT ALL ( + 99 ) - - 85 AS col2
----
184

onlyif mysql # aggregate syntax: 
query I rowsort label-2475
SELECT DISTINCT COUNT( - 66 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-2475
SELECT DISTINCT COUNT ( - 66 ) AS col1
----
1

query I rowsort
SELECT ALL - + 53 - + 91 * - 64 * + + 85
----
494987

query I rowsort
SELECT - 61 * - - 37
----
-2257

onlyif mysql # aggregate syntax: 
query I rowsort label-2478
SELECT DISTINCT - 77 - - MIN( + ( 84 ) )
----
7

skipif mysql # not compatible
query I rowsort label-2478
SELECT DISTINCT - 77 - - MIN ( + ( 84 ) )
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-2479
SELECT SUM( ALL - + 85 ) AS col0
----
-85

skipif mysql # not compatible
query I rowsort label-2479
SELECT SUM ( ALL - + 85 ) AS col0
----
-85

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2481
SELECT - - 50 + - CAST( NULL AS SIGNED ) + + AVG ( ALL + 3 ) * + + 17
----
NULL

skipif mysql # not compatible
query I rowsort label-2481
SELECT - - 50 + - CAST ( NULL AS INTEGER ) + + AVG ( ALL + 3 ) * + + 17
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2482
SELECT ALL - COUNT( * ) DIV - 27 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-2482
SELECT ALL - COUNT ( * ) / - 27 AS col2
----
0

query I rowsort
SELECT - - NULLIF ( - NULLIF ( + + 35, + AVG ( DISTINCT + 70 ) ), + 52 / + + 75 + ( + 64 ) ) * + - 81 + + 29
----
2864

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2485
SELECT DISTINCT + 0 DIV + + ( + - COUNT( * ) ) * 69, + 61 AS col1
----
0
61

skipif mysql # not compatible
query II rowsort label-2485
SELECT DISTINCT + 0 / + + ( + - COUNT ( * ) ) * 69, + 61 AS col1
----
0
61

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

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

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

query I rowsort
SELECT DISTINCT + 50 * 39 * - 3 + + - 44 AS col1
----
-5894

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2489
SELECT ALL - 92 * - - 61 * - + 47 + + 95 - - + CASE - CAST( - + 90 AS SIGNED ) WHEN + 38 THEN - 36 / - + 32 END * - 64 * + COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2489
SELECT ALL - 92 * - - 61 * - + 47 + + 95 - - + CASE - CAST ( - + 90 AS INTEGER ) WHEN + 38 THEN - 36 / - + 32 END * - 64 * + COUNT ( * ) AS col0
----
NULL

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2491
SELECT + 60 DIV + 96 DIV 41 * 51 + - 46
----
-46

skipif mysql # not compatible
query I rowsort label-2491
SELECT + 60 / + 96 / 41 * 51 + - 46
----
-46

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2492
SELECT + + 75, + CASE + - 40 WHEN 72 + + - ( - 1 ) THEN + - ( - MIN( ALL + + ( + 13 ) ) ) END * + - COALESCE ( - ( 22 ), - CAST( 18 AS SIGNED ) - 53 ) + + 58 - 57 AS col1
----
75
NULL

skipif mysql # not compatible
query II rowsort label-2492
SELECT + + 75, + CASE + - 40 WHEN 72 + + - ( - 1 ) THEN + - ( - MIN ( ALL + + ( + 13 ) ) ) END * + - COALESCE ( - ( 22 ), - CAST ( 18 AS INTEGER ) - 53 ) + + 58 - 57 AS col1
----
75
NULL

query I rowsort
SELECT - - 37 + 83 * + 26
----
2195

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2494
SELECT 31 * - 33 + - COUNT( * ) DIV - COUNT( * ) + + 67 - - + 81 + - 75
----
-949

skipif mysql # not compatible
query I rowsort label-2494
SELECT 31 * - 33 + - COUNT ( * ) / - COUNT ( * ) + + 67 - - + 81 + - 75
----
-949

onlyif mysql # aggregate syntax: 
query I rowsort label-2495
SELECT ALL + - SUM( ALL 42 ) * + 52 + + 49 AS col1
----
-2135

skipif mysql # not compatible
query I rowsort label-2495
SELECT ALL + - SUM ( ALL 42 ) * + 52 + + 49 AS col1
----
-2135

query II rowsort
SELECT + 80, 84 AS col0
----
80
84

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2497
SELECT CASE 76 WHEN CAST( NULL AS DECIMAL ) + - 49 + + 33 / - ( - 82 ) THEN NULL WHEN 41 / - 19 THEN + 49 * + + 5 + + 48 + - 32 * COUNT( * ) ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2497
SELECT CASE 76 WHEN CAST ( NULL AS REAL ) + - 49 + + 33 / - ( - 82 ) THEN NULL WHEN 41 / - 19 THEN + 49 * + + 5 + + 48 + - 32 * COUNT ( * ) ELSE NULL END AS col0
----
NULL

query I rowsort
SELECT ALL - 53 * + 43 + NULLIF ( - 36, - 71 )
----
-2315

query I rowsort
SELECT ALL 30 * - 33 + + 24
----
-966

onlyif mysql # aggregate syntax: 
query I rowsort label-2500
SELECT + 16 + - SUM( ALL - 1 )
----
17

skipif mysql # not compatible
query I rowsort label-2500
SELECT + 16 + - SUM ( ALL - 1 )
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-2501
SELECT + 92 + + COUNT( * ) AS col0
----
93

skipif mysql # not compatible
query I rowsort label-2501
SELECT + 92 + + COUNT ( * ) AS col0
----
93

onlyif mysql # aggregate syntax: 
query II rowsort label-2502
SELECT MIN( + 84 ) AS col2, - ( - 30 )
----
84
30

skipif mysql # not compatible
query II rowsort label-2502
SELECT MIN ( + 84 ) AS col2, - ( - 30 )
----
84
30

onlyif mysql # aggregate syntax: 
query I rowsort label-2503
SELECT + CASE + 3 WHEN - - CASE NULLIF ( - COUNT( * ), 76 * + + 6 + + ( - + 50 ) ) WHEN - + 12 + - 36 + - AVG ( - 91 ) - 11 * 89 THEN + NULLIF ( 90, + - 24 ) + - NULLIF ( 27, + + 73 ) + - 18 * 71 + + + MAX( + 20 ) + 89 WHEN - 45 + - 28 * 33 THEN NULL ELSE NULL END THEN + 75 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-2503
SELECT + CASE + 3 WHEN - - CASE NULLIF ( - COUNT ( * ), 76 * + + 6 + + ( - + 50 ) ) WHEN - + 12 + - 36 + - AVG ( - 91 ) - 11 * 89 THEN + NULLIF ( 90, + - 24 ) + - NULLIF ( 27, + + 73 ) + - 18 * 71 + + + MAX ( + 20 ) + 89 WHEN - 45 + - 28 * 33 THEN NULL ELSE NULL END THEN + 75 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2504
SELECT ALL + NULLIF ( + 63, + 10 ) * 51 + - - COUNT( * ) AS col0
----
3214

skipif mysql # not compatible
query I rowsort label-2504
SELECT ALL + NULLIF ( + 63, + 10 ) * 51 + - - COUNT ( * ) AS col0
----
3214

onlyif mysql # aggregate syntax: 
query I rowsort label-2505
SELECT - NULLIF ( + + COUNT( * ), 24 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-2505
SELECT - NULLIF ( + + COUNT ( * ), 24 ) AS col1
----
-1

query I rowsort
SELECT + 38 + - 97 AS col1
----
-59

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

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

query I rowsort
SELECT + + 59 - - ( 72 )
----
131

onlyif mysql # aggregate syntax: 
query I rowsort label-2509
SELECT ALL + 73 * 26 * COUNT( * ) + + - COUNT( * ) col0
----
1897

skipif mysql # not compatible
query I rowsort label-2509
SELECT ALL + 73 * 26 * COUNT ( * ) + + - COUNT ( * ) col0
----
1897

onlyif mysql # aggregate syntax: 
query I rowsort label-2510
SELECT DISTINCT + 15 * + - 33 / + COUNT( * ) - 93 + CASE - - 19 WHEN - 22 THEN + - 43 + + 40 WHEN + 5 THEN NULL END * + 30
----
NULL

skipif mysql # not compatible
query I rowsort label-2510
SELECT DISTINCT + 15 * + - 33 / + COUNT ( * ) - 93 + CASE - - 19 WHEN - 22 THEN + - 43 + + 40 WHEN + 5 THEN NULL END * + 30
----
NULL

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

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

query I rowsort
SELECT - NULLIF ( 22, 93 )
----
-22

query II rowsort
SELECT DISTINCT + 71 * - + 33 AS col1, + 27
----
-2343
27

query I rowsort
SELECT DISTINCT - 54 * - + 88
----
4752

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2516
SELECT ALL - 86 DIV 98 + - COUNT( * ) + - 12 + 65
----
52

skipif mysql # not compatible
query I rowsort label-2516
SELECT ALL - 86 / 98 + - COUNT ( * ) + - 12 + 65
----
52

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2517
SELECT CAST( 57 AS SIGNED ), - CASE 37 WHEN - - 72 * ( - 45 ) THEN + + 95 * + 8 WHEN - 75 - - + 2 THEN - 7 * NULLIF ( - 73, - 15 ) + + + 71 + + 1 ELSE NULL END AS col1
----
57
NULL

skipif mysql # not compatible
query II rowsort label-2517
SELECT CAST ( 57 AS INTEGER ), - CASE 37 WHEN - - 72 * ( - 45 ) THEN + + 95 * + 8 WHEN - 75 - - + 2 THEN - 7 * NULLIF ( - 73, - 15 ) + + + 71 + + 1 ELSE NULL END AS col1
----
57
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-2518
SELECT DISTINCT - ( + - 16 ) DIV - 68 + - 3 DIV 53 AS col0, + COALESCE ( 87, 41, + + 21 ) + + + 68 * - 9
----
0
-525

skipif mysql # not compatible
query II rowsort label-2518
SELECT DISTINCT - ( + - 16 ) / - 68 + - 3 / 53 AS col0, + COALESCE ( 87, 41, + + 21 ) + + + 68 * - 9
----
0
-525

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

skipif mysql # not compatible
query I rowsort label-2519
SELECT + 58 / - - 76 + + COUNT ( * )
----
1

query II rowsort
SELECT + - COALESCE ( - - 47, - ( + 11 ) ), - 74 col0
----
-47
-74

query I rowsort
SELECT + + 66 * 67 AS col0
----
4422

onlyif mysql # DIV for integer division: 
query II rowsort label-2522
SELECT DISTINCT + - 41 DIV - 51 + - 4 + + 15, - ( 89 ) AS col1
----
11
-89

skipif mysql # not compatible
query II rowsort label-2522
SELECT DISTINCT + - 41 / - 51 + - 4 + + 15, - ( 89 ) AS col1
----
11
-89

query I rowsort
SELECT ALL + 6 + - + 10 * 53 AS col1
----
-524

onlyif mysql # aggregate syntax: 
query I rowsort label-2524
SELECT 53 * - - MIN( ALL - - 97 )
----
5141

skipif mysql # not compatible
query I rowsort label-2524
SELECT 53 * - - MIN ( ALL - - 97 )
----
5141

onlyif mysql # aggregate syntax: 
query I rowsort label-2525
SELECT DISTINCT + MAX( DISTINCT - 30 ) + + 77 + + 80 * - 73
----
-5793

skipif mysql # not compatible
query I rowsort label-2525
SELECT DISTINCT + MAX ( DISTINCT - 30 ) + + 77 + + 80 * - 73
----
-5793

onlyif mysql # aggregate syntax: 
query I rowsort label-2526
SELECT DISTINCT + COUNT( ALL - - 71 ) * + COALESCE ( + + 36, - 84 * - - 95 ) - - - COUNT( * ) AS col1
----
35

skipif mysql # not compatible
query I rowsort label-2526
SELECT DISTINCT + COUNT ( ALL - - 71 ) * + COALESCE ( + + 36, - 84 * - - 95 ) - - - COUNT ( * ) AS col1
----
35

onlyif mysql # DIV for integer division: 
query I rowsort label-2527
SELECT DISTINCT - 82 + ( 62 ) DIV - - 23
----
-80

skipif mysql # not compatible
query I rowsort label-2527
SELECT DISTINCT - 82 + ( 62 ) / - - 23
----
-80

query I rowsort
SELECT 41 * - - 35
----
1435

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

skipif mysql # not compatible
query I rowsort label-2529
SELECT DISTINCT - COUNT ( ALL - 57 ) AS col1
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2530
SELECT ALL - CASE - 75 WHEN - - 35 THEN NULL WHEN CAST( - + SUM( ALL - 24 ) AS SIGNED ) THEN 83 * - 1 + - AVG ( - 41 ) * NULLIF ( - 64, 15 ) + - - NULLIF ( 88, + - CAST( NULL AS SIGNED ) ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2530
SELECT ALL - CASE - 75 WHEN - - 35 THEN NULL WHEN CAST ( - + SUM ( ALL - 24 ) AS INTEGER ) THEN 83 * - 1 + - AVG ( - 41 ) * NULLIF ( - 64, 15 ) + - - NULLIF ( 88, + - CAST ( NULL AS INTEGER ) ) END AS col1
----
NULL

query II rowsort
SELECT DISTINCT 66 AS col0, 68 * 26
----
66
1768

query II rowsort
SELECT ALL 18 col2, 74 AS col0
----
18
74

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-2533
SELECT ALL 78 * + MAX( 58 ) AS col1, + 36 + + CAST( NULL AS DECIMAL ) col2
----
4524
NULL

skipif mysql # not compatible
query II rowsort label-2533
SELECT ALL 78 * + MAX ( 58 ) AS col1, + 36 + + CAST ( NULL AS REAL ) col2
----
4524
NULL

query I rowsort
SELECT 49 + - - 64
----
113

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2535
SELECT - 57 - + + 75 - - - CAST( NULL AS SIGNED ) * + 7 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2535
SELECT - 57 - + + 75 - - - CAST ( NULL AS INTEGER ) * + 7 AS col1
----
NULL

query I rowsort
SELECT - - 50 col2
----
50

query I rowsort
SELECT 9 * - - 40 AS col0
----
360

query II rowsort
SELECT - 85 AS col2, - 94 * + 94 * - 98
----
-85
865928

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2539
SELECT - 23 + - 34 * - - 68 + - ( 4 ) + - 93 - - - COUNT( ALL + + CAST( + 43 AS SIGNED ) ) - - COUNT( * ) * 21 * + + 99
----
-354

skipif mysql # not compatible
query I rowsort label-2539
SELECT - 23 + - 34 * - - 68 + - ( 4 ) + - 93 - - - COUNT ( ALL + + CAST ( + 43 AS INTEGER ) ) - - COUNT ( * ) * 21 * + + 99
----
-354

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

query I rowsort
SELECT DISTINCT + 25 + 50
----
75

onlyif mysql # DIV for integer division: 
query I rowsort label-2542
SELECT ALL - ( - + 7 ) DIV + 73
----
0

skipif mysql # not compatible
query I rowsort label-2542
SELECT ALL - ( - + 7 ) / + 73
----
0

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

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

query I rowsort
SELECT ALL - 92 + - NULLIF ( + 91, - 9 ) AS col1
----
-183

query I rowsort
SELECT 68 * - 40
----
-2720

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2546
SELECT + 73 * - CASE 52 WHEN - + 61 THEN NULL ELSE 75 * + 17 * + 39 * - + 0 + - 44 DIV COUNT( * ) + - MIN( DISTINCT - 91 ) END AS col0
----
-3431

skipif mysql # not compatible
query I rowsort label-2546
SELECT + 73 * - CASE 52 WHEN - + 61 THEN NULL ELSE 75 * + 17 * + 39 * - + 0 + - 44 / COUNT ( * ) + - MIN ( DISTINCT - 91 ) END AS col0
----
-3431

onlyif mysql # aggregate syntax: 
query I rowsort label-2547
SELECT 99 / 98 - 70 / - + 24 * + ( + 68 ) * + + CASE - - 42 WHEN - 61 THEN + + 18 * + + MAX( DISTINCT - 8 ) END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2547
SELECT 99 / 98 - 70 / - + 24 * + ( + 68 ) * + + CASE - - 42 WHEN - 61 THEN + + 18 * + + MAX ( DISTINCT - 8 ) END col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2548
SELECT - 82 DIV + 16
----
-5

skipif mysql # not compatible
query I rowsort label-2548
SELECT - 82 / + 16
----
-5

query I rowsort
SELECT 58 + + 9 AS col0
----
67

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

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

query I rowsort
SELECT ALL 70 + - 64
----
6

onlyif mysql # DIV for integer division: 
query I rowsort label-2552
SELECT - 93 DIV + 4 + - 44 AS col0
----
-67

skipif mysql # not compatible
query I rowsort label-2552
SELECT - 93 / + 4 + - 44 AS col0
----
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-2553
SELECT 68 + - + 65 + - ( + SUM( + 96 ) ) * + - 96
----
9219

skipif mysql # not compatible
query I rowsort label-2553
SELECT 68 + - + 65 + - ( + SUM ( + 96 ) ) * + - 96
----
9219

onlyif mysql # aggregate syntax: 
query I rowsort label-2554
SELECT ALL - 49 + + - SUM( DISTINCT + 48 ) - + - 51
----
-46

skipif mysql # not compatible
query I rowsort label-2554
SELECT ALL - 49 + + - SUM ( DISTINCT + 48 ) - + - 51
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-2555
SELECT ( 95 ) * + - SUM( ALL 32 ) AS col1
----
-3040

skipif mysql # not compatible
query I rowsort label-2555
SELECT ( 95 ) * + - SUM ( ALL 32 ) AS col1
----
-3040

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2556
SELECT - CAST( NULL AS DECIMAL ) * + MAX( ALL + ( ( - - 46 ) ) ) - + 46 * - 8 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2556
SELECT - CAST ( NULL AS REAL ) * + MAX ( ALL + ( ( - - 46 ) ) ) - + 46 * - 8 col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2557
SELECT DISTINCT ( + + CAST( NULL AS DECIMAL ) ) - - COUNT( * ) - NULLIF ( - - 73, + 23 * ( - 50 ) + 6 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2557
SELECT DISTINCT ( + + CAST ( NULL AS REAL ) ) - - COUNT ( * ) - NULLIF ( - - 73, + 23 * ( - 50 ) + 6 )
----
NULL

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

skipif mysql # not compatible
query I rowsort label-2558
SELECT DISTINCT - MIN ( DISTINCT - - 38 )
----
-38

query I rowsort
SELECT - 71 * 39 + - 33 - + + 76 * + + 72 AS col1
----
-8274

onlyif mysql # DIV for integer division: 
query I rowsort label-2560
SELECT 44 DIV + + 61
----
0

skipif mysql # not compatible
query I rowsort label-2560
SELECT 44 / + + 61
----
0

query II rowsort
SELECT DISTINCT - 82 AS col2, - ( - 75 )
----
-82
75

query I rowsort
SELECT ALL - 25 * + - 9
----
225

query I rowsort
SELECT ALL - COALESCE ( + ( - 45 ), 51 * + 48 ) AS col1
----
45

query II rowsort
SELECT 24 AS col2, - 7 AS col0
----
24
-7

query I rowsort
SELECT 40 * + 22
----
880

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

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

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

query II rowsort
SELECT 16 AS col2, 86
----
16
86

onlyif mysql # DIV for integer division: 
query I rowsort label-2569
SELECT 59 DIV + ( 35 ) col1
----
1

skipif mysql # not compatible
query I rowsort label-2569
SELECT 59 / + ( 35 ) col1
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-2570
SELECT DISTINCT - 37, - 54 + + COUNT( * ) AS col2
----
-37
-53

skipif mysql # not compatible
query II rowsort label-2570
SELECT DISTINCT - 37, - 54 + + COUNT ( * ) AS col2
----
-37
-53

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2571
SELECT - CASE - 22 WHEN - 44 THEN + CAST( 45 AS SIGNED ) * 13 + - - 93 DIV - + 28 * - + ( 93 ) ELSE + 16 END AS col2
----
-16

skipif mysql # not compatible
query I rowsort label-2571
SELECT - CASE - 22 WHEN - 44 THEN + CAST ( 45 AS INTEGER ) * 13 + - - 93 / - + 28 * - + ( 93 ) ELSE + 16 END AS col2
----
-16

query I rowsort
SELECT ALL - 7 + - 94 * + 14
----
-1323

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2573
SELECT CAST( NULL AS SIGNED ) * + + 35 * + 41 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2573
SELECT CAST ( NULL AS INTEGER ) * + + 35 * + 41 AS col0
----
NULL

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

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

query I rowsort
SELECT - 74 - + 81
----
-155

query I rowsort
SELECT - 87 - + + ( COALESCE ( + NULLIF ( - 81, + + 81 ), + - 3 ) )
----
-6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2577
SELECT - + CASE 73 WHEN CAST( NULL AS SIGNED ) THEN NULL WHEN - COUNT( * ) THEN - 76 ELSE + COUNT( DISTINCT - - 19 ) END AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-2577
SELECT - + CASE 73 WHEN CAST ( NULL AS INTEGER ) THEN NULL WHEN - COUNT ( * ) THEN - 76 ELSE + COUNT ( DISTINCT - - 19 ) END AS col2
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2578
SELECT 83 * + MIN( ALL 12 ) + COALESCE ( - 82, - 17 ) + + AVG ( + 85 ) * CASE - 9 WHEN 46 THEN + CAST( 63 AS SIGNED ) * - - 58 / - 33 END + - 37 + 54 * + - 95
----
NULL

skipif mysql # not compatible
query I rowsort label-2578
SELECT 83 * + MIN ( ALL 12 ) + COALESCE ( - 82, - 17 ) + + AVG ( + 85 ) * CASE - 9 WHEN 46 THEN + CAST ( 63 AS INTEGER ) * - - 58 / - 33 END + - 37 + 54 * + - 95
----
NULL

query I rowsort
SELECT 26 * + 82 AS col0
----
2132

onlyif mysql # aggregate syntax: 
query I rowsort label-2580
SELECT + MIN( ALL - 63 ) + MAX( - 90 ) + - 54 + + 95 + - 42 AS col0
----
-154

skipif mysql # not compatible
query I rowsort label-2580
SELECT + MIN ( ALL - 63 ) + MAX ( - 90 ) + - 54 + + 95 + - 42 AS col0
----
-154

onlyif mysql # aggregate syntax: 
query I rowsort label-2581
SELECT DISTINCT + 39 + + - 91 + - COUNT( * ) * + - 17
----
-35

skipif mysql # not compatible
query I rowsort label-2581
SELECT DISTINCT + 39 + + - 91 + - COUNT ( * ) * + - 17
----
-35

query I rowsort
SELECT ALL + 80 + ( + - 82 ) * - 56 * 32 * - - 93 + 31
----
13665903

query II rowsort
SELECT 63 AS col2, - 37
----
63
-37

query II rowsort
SELECT ALL 9, - 69 AS col2
----
9
-69

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2585
SELECT DISTINCT - 11 * + 80 * + 39 + - - COUNT( * ) DIV + - MAX( DISTINCT + 39 ) + - - 43 AS col1, ( + + 37 ) + - - COUNT( * ) AS col1
----
-34277
38

skipif mysql # not compatible
query II rowsort label-2585
SELECT DISTINCT - 11 * + 80 * + 39 + - - COUNT ( * ) / + - MAX ( DISTINCT + 39 ) + - - 43 AS col1, ( + + 37 ) + - - COUNT ( * ) AS col1
----
-34277
38

onlyif mysql # aggregate syntax: 
query II rowsort label-2586
SELECT - 82, 5 * 31 * + + ( - 96 ) * + SUM( ALL - 77 ) col0
----
-82
1145760

skipif mysql # not compatible
query II rowsort label-2586
SELECT - 82, 5 * 31 * + + ( - 96 ) * + SUM ( ALL - 77 ) col0
----
-82
1145760

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2589
SELECT DISTINCT + - COUNT( DISTINCT + 52 ) AS col0, - NULLIF ( - - 29, + 49 )
----
-1
-29

skipif mysql # not compatible
query II rowsort label-2589
SELECT DISTINCT + - COUNT ( DISTINCT + 52 ) AS col0, - NULLIF ( - - 29, + 49 )
----
-1
-29

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

skipif mysql # not compatible
query I rowsort label-2590
SELECT ALL 75 / COUNT ( * ) col2
----
75

onlyif mysql # DIV for integer division: 
query I rowsort label-2591
SELECT - 12 DIV 78 + + 20
----
20

skipif mysql # not compatible
query I rowsort label-2591
SELECT - 12 / 78 + + 20
----
20

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2592
SELECT + CASE - + 48 WHEN + 8 THEN NULL ELSE + 17 + + CAST( NULL AS SIGNED ) + + 25 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2592
SELECT + CASE - + 48 WHEN + 8 THEN NULL ELSE + 17 + + CAST ( NULL AS INTEGER ) + + 25 END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2593
SELECT DISTINCT COUNT( * ) * - MAX( 94 )
----
-94

skipif mysql # not compatible
query I rowsort label-2593
SELECT DISTINCT COUNT ( * ) * - MAX ( 94 )
----
-94

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

skipif mysql # not compatible
query I rowsort label-2594
SELECT 38 / 97 - + + ( - COUNT ( * ) )
----
1

query I rowsort
SELECT + 39 * + 99 AS col1
----
3861

onlyif mysql # aggregate syntax: 
query I rowsort label-2596
SELECT ALL COUNT( * ) * + + 11 * - - 48
----
528

skipif mysql # not compatible
query I rowsort label-2596
SELECT ALL COUNT ( * ) * + + 11 * - - 48
----
528

onlyif mysql # aggregate syntax: 
query I rowsort label-2597
SELECT CASE 72 WHEN 76 THEN NULL WHEN + - ( + CASE - ( - + 1 ) WHEN COUNT( * ) THEN - + 48 END ) THEN + + ( 88 ) END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2597
SELECT CASE 72 WHEN 76 THEN NULL WHEN + - ( + CASE - ( - + 1 ) WHEN COUNT ( * ) THEN - + 48 END ) THEN + + ( 88 ) END col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2598
SELECT + COUNT( * ) * - ( + - COALESCE ( + - 5, - + ( COUNT( * ) ), 88 + - 60 + - 41 + 67 + + + 37 * - 59 * + 76 ) ) AS col2
----
-5

skipif mysql # not compatible
query I rowsort label-2598
SELECT + COUNT ( * ) * - ( + - COALESCE ( + - 5, - + ( COUNT ( * ) ), 88 + - 60 + - 41 + 67 + + + 37 * - 59 * + 76 ) ) AS col2
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-2599
SELECT COUNT( * ) * - + 10 + - - 49 + - 94 AS col0
----
-55

skipif mysql # not compatible
query I rowsort label-2599
SELECT COUNT ( * ) * - + 10 + - - 49 + - 94 AS col0
----
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-2600
SELECT + 79 * - NULLIF ( CASE + SUM( ALL + 16 ) WHEN - 1 THEN NULL WHEN + + 61 THEN + 80 END, + 46 * MIN( + - 25 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-2600
SELECT + 79 * - NULLIF ( CASE + SUM ( ALL + 16 ) WHEN - 1 THEN NULL WHEN + + 61 THEN + 80 END, + 46 * MIN ( + - 25 ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2601
SELECT + 91 + + 14 * - COUNT( * ) - - - 34 + 13
----
56

skipif mysql # not compatible
query I rowsort label-2601
SELECT + 91 + + 14 * - COUNT ( * ) - - - 34 + 13
----
56

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2604
SELECT - 49 * - SUM( ALL - 87 )
----
-4263

skipif mysql # not compatible
query I rowsort label-2604
SELECT - 49 * - SUM ( ALL - 87 )
----
-4263

onlyif mysql # aggregate syntax: 
query I rowsort label-2605
SELECT + COALESCE ( + COUNT( * ), - 75, - 23 )
----
1

skipif mysql # not compatible
query I rowsort label-2605
SELECT + COALESCE ( + COUNT ( * ), - 75, - 23 )
----
1

query I rowsort
SELECT ALL 79 * + 24 + 80
----
1976

query I rowsort
SELECT + COALESCE ( 38, + 17 ) - - 13 AS col2
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-2608
SELECT ALL 72 * - 76 + + 83 * + + MIN( - 86 )
----
-12610

skipif mysql # not compatible
query I rowsort label-2608
SELECT ALL 72 * - 76 + + 83 * + + MIN ( - 86 )
----
-12610

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2610
SELECT ALL - 10 * + 95 + + ( + - SUM( - 83 ) )
----
-867

skipif mysql # not compatible
query I rowsort label-2610
SELECT ALL - 10 * + 95 + + ( + - SUM ( - 83 ) )
----
-867

query I rowsort
SELECT ALL 75 + - 48
----
27

onlyif mysql # aggregate syntax: DIV for integer division: 
query III rowsort label-2612
SELECT - COUNT( * ) DIV - - COUNT( * ), 10 col1, + 21 * 8 AS col0
----
-1
10
168

skipif mysql # not compatible
query III rowsort label-2612
SELECT - COUNT ( * ) / - - COUNT ( * ), 10 col1, + 21 * 8 AS col0
----
-1
10
168

query I rowsort
SELECT - 28 * + 40
----
-1120

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2614
SELECT ALL + 76 + - 41 * + ( - COUNT( * ) ) DIV ( + 63 )
----
76

skipif mysql # not compatible
query I rowsort label-2614
SELECT ALL + 76 + - 41 * + ( - COUNT ( * ) ) / ( + 63 )
----
76

query I rowsort
SELECT - - 65 - - 36 AS col0
----
101

onlyif mysql # aggregate syntax: 
query I rowsort label-2616
SELECT - COUNT( ALL + 93 ) + - 93 AS col1
----
-94

skipif mysql # not compatible
query I rowsort label-2616
SELECT - COUNT ( ALL + 93 ) + - 93 AS col1
----
-94

query I rowsort
SELECT - + CASE + 21 WHEN - 65 THEN NULL WHEN + 86 THEN 62 + - - 26 + + - 27 END - - 74 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2618
SELECT ALL - - 34 + + + ( CAST( NULL AS SIGNED ) ) + + + 49 - + 68, SUM( ALL + ( 4 ) ) AS col0
----
NULL
4

skipif mysql # not compatible
query II rowsort label-2618
SELECT ALL - - 34 + + + ( CAST ( NULL AS INTEGER ) ) + + + 49 - + 68, SUM ( ALL + ( 4 ) ) AS col0
----
NULL
4

onlyif mysql # aggregate syntax: 
query I rowsort label-2619
SELECT - - COUNT( * ) + - + 47 AS col1
----
-46

skipif mysql # not compatible
query I rowsort label-2619
SELECT - - COUNT ( * ) + - + 47 AS col1
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-2620
SELECT ALL - COUNT( * ) + 55 * 97 * 81
----
432134

skipif mysql # not compatible
query I rowsort label-2620
SELECT ALL - COUNT ( * ) + 55 * 97 * 81
----
432134

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2623
SELECT - 48 + - + 27 * CAST( - 30 AS SIGNED ) + + NULLIF ( + COUNT( * ), + - 77 * 59 ) + 79 AS col0
----
842

skipif mysql # not compatible
query I rowsort label-2623
SELECT - 48 + - + 27 * CAST ( - 30 AS INTEGER ) + + NULLIF ( + COUNT ( * ), + - 77 * 59 ) + 79 AS col0
----
842

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2624
SELECT DISTINCT NULLIF ( CAST( - 2 AS SIGNED ), + ( + MAX( + 76 ) ) )
----
-2

skipif mysql # not compatible
query I rowsort label-2624
SELECT DISTINCT NULLIF ( CAST ( - 2 AS INTEGER ), + ( + MAX ( + 76 ) ) )
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-2625
SELECT + + SUM( - - 87 ) + 10 AS col2
----
97

skipif mysql # not compatible
query I rowsort label-2625
SELECT + + SUM ( - - 87 ) + 10 AS col2
----
97

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2626
SELECT - 57 + + 97 + CASE - + COUNT( DISTINCT + 47 ) WHEN 38 THEN NULL WHEN + CASE - - 24 WHEN - 99 THEN + 21 + + 58 END THEN COUNT( DISTINCT 6 ) ELSE + 47 END * NULLIF ( - + 99, ( + - 47 ) * 49 * NULLIF ( 81, - + COALESCE ( + 85, - 33 ) ) ) DIV 99 AS col0
----
-7

skipif mysql # not compatible
query I rowsort label-2626
SELECT - 57 + + 97 + CASE - + COUNT ( DISTINCT + 47 ) WHEN 38 THEN NULL WHEN + CASE - - 24 WHEN - 99 THEN + 21 + + 58 END THEN COUNT ( DISTINCT 6 ) ELSE + 47 END * NULLIF ( - + 99, ( + - 47 ) * 49 * NULLIF ( 81, - + COALESCE ( + 85, - 33 ) ) ) / 99 AS col0
----
-7

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2628
SELECT - 10 DIV + - 29 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2628
SELECT - 10 / + - 29 AS col0
----
0

query I rowsort
SELECT ALL - 33 * + 59 AS col0
----
-1947

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

query I rowsort
SELECT DISTINCT - 24 * ( + + 29 ) AS col2
----
-696

onlyif mysql # aggregate syntax: 
query I rowsort label-2632
SELECT + COALESCE ( - + 78, - 80, + 6 ) + - - COUNT( * ) + + 15 AS col1
----
-62

skipif mysql # not compatible
query I rowsort label-2632
SELECT + COALESCE ( - + 78, - 80, + 6 ) + - - COUNT ( * ) + + 15 AS col1
----
-62

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2634
SELECT DISTINCT + 1, 21 * - CASE + - 46 WHEN + - COUNT( * ) THEN - 43 * - 36 * + ( 17 ) + + ( - CAST( NULL AS SIGNED ) ) / - - 33 * - 31 + - 46 WHEN COUNT( * ) + - COUNT( * ) THEN NULL END * - - 60 AS col2
----
1
NULL

skipif mysql # not compatible
query II rowsort label-2634
SELECT DISTINCT + 1, 21 * - CASE + - 46 WHEN + - COUNT ( * ) THEN - 43 * - 36 * + ( 17 ) + + ( - CAST ( NULL AS INTEGER ) ) / - - 33 * - 31 + - 46 WHEN COUNT ( * ) + - COUNT ( * ) THEN NULL END * - - 60 AS col2
----
1
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2635
SELECT - 67 + 49 + - COUNT( * ) DIV 86 * + - 79 + + + 6 * + + 6 AS col1
----
18

skipif mysql # not compatible
query I rowsort label-2635
SELECT - 67 + 49 + - COUNT ( * ) / 86 * + - 79 + + + 6 * + + 6 AS col1
----
18

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2636
SELECT - COUNT( * ) DIV CAST( - 60 AS SIGNED ) col1
----
0

skipif mysql # not compatible
query I rowsort label-2636
SELECT - COUNT ( * ) / CAST ( - 60 AS INTEGER ) col1
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2637
SELECT + COALESCE ( - - 81, - 53 ) + - COUNT( * ) DIV - + 46
----
81

skipif mysql # not compatible
query I rowsort label-2637
SELECT + COALESCE ( - - 81, - 53 ) + - COUNT ( * ) / - + 46
----
81

query I rowsort
SELECT + 20 * + + NULLIF ( - 72, + 48 * - 32 ) AS col2
----
-1440

query I rowsort
SELECT + 26 + 36
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-2640
SELECT ALL 12 * - + 33 * + MIN( ALL 18 ) + + ( - 63 ) AS col2
----
-7191

skipif mysql # not compatible
query I rowsort label-2640
SELECT ALL 12 * - + 33 * + MIN ( ALL 18 ) + + ( - 63 ) AS col2
----
-7191

onlyif mysql # aggregate syntax: 
query I rowsort label-2641
SELECT + 25 * COUNT( DISTINCT + - 89 ) + + 33
----
58

skipif mysql # not compatible
query I rowsort label-2641
SELECT + 25 * COUNT ( DISTINCT + - 89 ) + + 33
----
58

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2642
SELECT ALL 37 * 11 + CAST( NULL AS SIGNED ) AS col2, 49 * + 22 * - 83 AS col0
----
NULL
-89474

skipif mysql # not compatible
query II rowsort label-2642
SELECT ALL 37 * 11 + CAST ( NULL AS INTEGER ) AS col2, 49 * + 22 * - 83 AS col0
----
NULL
-89474

query I rowsort
SELECT DISTINCT + COALESCE ( - 53, + 49 ) * + 45 AS col1
----
-2385

onlyif mysql # aggregate syntax: 
query I rowsort label-2644
SELECT CASE - 12 WHEN + 67 THEN + COUNT( * ) * 57 + + + 43 END
----
NULL

skipif mysql # not compatible
query I rowsort label-2644
SELECT CASE - 12 WHEN + 67 THEN + COUNT ( * ) * 57 + + + 43 END
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2646
SELECT + + COUNT( ALL + 75 ) * + ( - + 25 ) col1
----
-25

skipif mysql # not compatible
query I rowsort label-2646
SELECT + + COUNT ( ALL + 75 ) * + ( - + 25 ) col1
----
-25

onlyif mysql # DIV for integer division: 
query I rowsort label-2647
SELECT - 91 * - 19 + 86 DIV 37
----
1731

skipif mysql # not compatible
query I rowsort label-2647
SELECT - 91 * - 19 + 86 / 37
----
1731

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

skipif mysql # not compatible
query I rowsort label-2648
SELECT - NULLIF ( 19, COUNT ( * ) ) AS col2
----
-19

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2650
SELECT - 60 AS col2, - 64 + - COUNT( * ) AS col2
----
-60
-65

skipif mysql # not compatible
query II rowsort label-2650
SELECT - 60 AS col2, - 64 + - COUNT ( * ) AS col2
----
-60
-65

query II rowsort
SELECT 97 * - 21 - - 17 * 45, - 47 AS col2
----
-1272
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-2652
SELECT DISTINCT SUM( ALL - 78 ) AS col0
----
-78

skipif mysql # not compatible
query I rowsort label-2652
SELECT DISTINCT SUM ( ALL - 78 ) AS col0
----
-78

onlyif mysql # aggregate syntax: 
query II rowsort label-2653
SELECT ALL ( - 85 ) - + COUNT( * ) AS col1, - 76 + + 59 * + 84 + 17 AS col1
----
-86
4897

skipif mysql # not compatible
query II rowsort label-2653
SELECT ALL ( - 85 ) - + COUNT ( * ) AS col1, - 76 + + 59 * + 84 + 17 AS col1
----
-86
4897

onlyif mysql # aggregate syntax: 
query I rowsort label-2654
SELECT NULLIF ( - 9, + COUNT( * ) + - 86 - + + 82 )
----
-9

skipif mysql # not compatible
query I rowsort label-2654
SELECT NULLIF ( - 9, + COUNT ( * ) + - 86 - + + 82 )
----
-9

query I rowsort
SELECT ALL 89 - 11
----
78

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2656
SELECT + 28 * + + CAST( 9 AS SIGNED ) * - 29 + - 49 * + 41 * + 64
----
-135884

skipif mysql # not compatible
query I rowsort label-2656
SELECT + 28 * + + CAST ( 9 AS INTEGER ) * - 29 + - 49 * + 41 * + 64
----
-135884

onlyif mysql # aggregate syntax: 
query I rowsort label-2657
SELECT COALESCE ( - - COUNT( * ), - 44 ) - + 77 + + + 25
----
-51

skipif mysql # not compatible
query I rowsort label-2657
SELECT COALESCE ( - - COUNT ( * ), - 44 ) - + 77 + + + 25
----
-51

query I rowsort
SELECT ALL - 87 * 76 AS col2
----
-6612

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2659
SELECT ALL + 28 * + COUNT( * ) * - - ( - + 55 ) - + + CAST( - - 33 AS SIGNED ) AS col2
----
-1573

skipif mysql # not compatible
query I rowsort label-2659
SELECT ALL + 28 * + COUNT ( * ) * - - ( - + 55 ) - + + CAST ( - - 33 AS INTEGER ) AS col2
----
-1573

query II rowsort
SELECT + 85 - 36 + - 74 AS col0, + 52 * - 10
----
-25
-520

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

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

query I rowsort
SELECT - ( - - 86 ) * - 25 * + - 93 + - 77 + - 27 AS col1
----
-200054

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2663
SELECT DISTINCT + 87, 95 * - - CAST( 79 AS SIGNED ) AS col1
----
87
7505

skipif mysql # not compatible
query II rowsort label-2663
SELECT DISTINCT + 87, 95 * - - CAST ( 79 AS INTEGER ) AS col1
----
87
7505

query I rowsort
SELECT 46 * - 28 col0
----
-1288

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2665
SELECT - 78 + + CAST( + 79 AS SIGNED ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-2665
SELECT - 78 + + CAST ( + 79 AS INTEGER ) AS col2
----
1

query I rowsort
SELECT 44 - 16 * - ( 40 )
----
684

query I rowsort
SELECT 50 * 99 * - ( - 98 ) col1
----
485100

query I rowsort
SELECT 53 - 68 + 89 AS col0
----
74

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2670
SELECT 75 DIV - 36 + 6 col0
----
4

skipif mysql # not compatible
query I rowsort label-2670
SELECT 75 / - 36 + 6 col0
----
4

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2671
SELECT ALL - 2 * + 96, - COUNT( * ) * 77 * - - 50 + 77 DIV + 9 AS col1
----
-192
-3842

skipif mysql # not compatible
query II rowsort label-2671
SELECT ALL - 2 * + 96, - COUNT ( * ) * 77 * - - 50 + 77 / + 9 AS col1
----
-192
-3842

query I rowsort
SELECT 40 * + 90
----
3600

query I rowsort
SELECT 76 + - 81 - - + 3 + ( + + 10 )
----
8

query I rowsort
SELECT DISTINCT + 93 * + 42 * - 11
----
-42966

query I rowsort
SELECT ALL - 30 + + + 98 AS col1
----
68

query I rowsort
SELECT ALL + 75 * + + 85 * + 60
----
382500

query I rowsort
SELECT ALL + 3 + - 30
----
-27

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2679
SELECT DISTINCT 67 + + COUNT( * ) AS col0, + 25 DIV - 56 + - 4 AS col1
----
68
-4

skipif mysql # not compatible
query II rowsort label-2679
SELECT DISTINCT 67 + + COUNT ( * ) AS col0, + 25 / - 56 + - 4 AS col1
----
68
-4

onlyif mysql # DIV for integer division: 
query I rowsort label-2680
SELECT + 21 DIV - + 17 + + + 78
----
77

skipif mysql # not compatible
query I rowsort label-2680
SELECT + 21 / - + 17 + + + 78
----
77

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2681
SELECT COUNT( - 45 ) DIV COUNT( ALL 84 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-2681
SELECT COUNT ( - 45 ) / COUNT ( ALL 84 ) AS col2
----
1

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2683
SELECT ALL - 4 + ( + - 95 ) + + - 25 + - - 83 + 90 * - + 58 * - COUNT( * ) AS col1
----
5179

skipif mysql # not compatible
query I rowsort label-2683
SELECT ALL - 4 + ( + - 95 ) + + - 25 + - - 83 + 90 * - + 58 * - COUNT ( * ) AS col1
----
5179

query I rowsort
SELECT ( + 76 ) * - 30 AS col2
----
-2280

onlyif mysql # aggregate syntax: 
query I rowsort label-2685
SELECT + 59 * + COUNT( * ) * + 93 * - 72 + - - 63 * - 18
----
-396198

skipif mysql # not compatible
query I rowsort label-2685
SELECT + 59 * + COUNT ( * ) * + 93 * - 72 + - - 63 * - 18
----
-396198

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2686
SELECT - COUNT( * ) DIV 95 col0
----
0

skipif mysql # not compatible
query I rowsort label-2686
SELECT - COUNT ( * ) / 95 col0
----
0

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

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

query I rowsort
SELECT ALL 93 - - + 68
----
161

query I rowsort
SELECT - 67 * + 31
----
-2077

query I rowsort
SELECT DISTINCT - + 13 - + + 89 - - - 28 col1
----
-130

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2691
SELECT ALL 20 * + 50 col2, CAST( - 2 AS SIGNED ) AS col2
----
1000
-2

skipif mysql # not compatible
query II rowsort label-2691
SELECT ALL 20 * + 50 col2, CAST ( - 2 AS INTEGER ) AS col2
----
1000
-2

onlyif mysql # DIV for integer division: 
query I rowsort label-2692
SELECT 12 + ( 97 ) DIV - + 9
----
2

skipif mysql # not compatible
query I rowsort label-2692
SELECT 12 + ( 97 ) / - + 9
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-2693
SELECT ALL - SUM( ALL - + 27 ) - - 20 AS col2
----
47

skipif mysql # not compatible
query I rowsort label-2693
SELECT ALL - SUM ( ALL - + 27 ) - - 20 AS col2
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-2694
SELECT + 84 * + MIN( ALL + + 89 ) + + 56 - 59 * 0 col2
----
7532

skipif mysql # not compatible
query I rowsort label-2694
SELECT + 84 * + MIN ( ALL + + 89 ) + + 56 - 59 * 0 col2
----
7532

query I rowsort
SELECT ALL + 2 - + 19 + - 82
----
-99

onlyif mysql # aggregate syntax: 
query II rowsort label-2696
SELECT ALL - COUNT( * ) * + + NULLIF ( 82, 6 + + 27 + + 61 * + 88 + - + 24 + - COUNT( * ) ) AS col0, 50 * - COUNT( * )
----
-82
-50

skipif mysql # not compatible
query II rowsort label-2696
SELECT ALL - COUNT ( * ) * + + NULLIF ( 82, 6 + + 27 + + 61 * + 88 + - + 24 + - COUNT ( * ) ) AS col0, 50 * - COUNT ( * )
----
-82
-50

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2697
SELECT MIN( ( + - 78 ) ) + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-2697
SELECT MIN ( ( + - 78 ) ) + + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT - 26 * - 88
----
2288

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2699
SELECT CAST( NULL AS SIGNED ) + + ( - + 70 ) / - - CAST( NULL AS SIGNED ) * + CASE WHEN 33 IS NOT NULL THEN + 11 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2699
SELECT CAST ( NULL AS INTEGER ) + + ( - + 70 ) / - - CAST ( NULL AS INTEGER ) * + CASE WHEN 33 IS NOT NULL THEN + 11 END AS col2
----
NULL

query II rowsort
SELECT 81 - - + 75, ( + 67 ) AS col1
----
156
67

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

skipif mysql # not compatible
query I rowsort label-2701
SELECT - SUM ( - - 69 ) + + - COUNT ( * ) AS col2
----
-70

query I rowsort
SELECT 27 + - - 75 * 57 * - 97
----
-414648

query I rowsort
SELECT - 92 * + ( + 39 ) AS col0
----
-3588

onlyif mysql # aggregate syntax: 
query I rowsort label-2704
SELECT SUM( DISTINCT 71 ) * - COUNT( * ) AS col0
----
-71

skipif mysql # not compatible
query I rowsort label-2704
SELECT SUM ( DISTINCT 71 ) * - COUNT ( * ) AS col0
----
-71

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

query I rowsort
SELECT 60 + + - 79 + 25 col2
----
6

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2708
SELECT ( + 29 ) + COUNT( * ) + + + 66 AS col0
----
96

skipif mysql # not compatible
query I rowsort label-2708
SELECT ( + 29 ) + COUNT ( * ) + + + 66 AS col0
----
96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2709
SELECT CAST( + 78 AS SIGNED ) * 55, COUNT( - 22 ) col1
----
4290
1

skipif mysql # not compatible
query II rowsort label-2709
SELECT CAST ( + 78 AS INTEGER ) * 55, COUNT ( - 22 ) col1
----
4290
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2710
SELECT SUM( DISTINCT + - 67 ) + + 97 * 5 AS col1
----
418

skipif mysql # not compatible
query I rowsort label-2710
SELECT SUM ( DISTINCT + - 67 ) + + 97 * 5 AS col1
----
418

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2712
SELECT ALL MAX( - - 95 ) + + 26 * 17
----
537

skipif mysql # not compatible
query I rowsort label-2712
SELECT ALL MAX ( - - 95 ) + + 26 * 17
----
537

query II rowsort
SELECT 74 AS col1, 0 AS col0
----
74
0

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

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

query I rowsort
SELECT DISTINCT + 61 + + 5 AS col1
----
66

query I rowsort
SELECT 85 * - + 91
----
-7735

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2717
SELECT 88 + MAX( - 10 ), 49 DIV - + 89 - - 91 * - - 88 AS col0
----
78
8008

skipif mysql # not compatible
query II rowsort label-2717
SELECT 88 + MAX ( - 10 ), 49 / - + 89 - - 91 * - - 88 AS col0
----
78
8008

query I rowsort
SELECT ALL - 35 + + 12 - + 86
----
-109

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

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

query I rowsort
SELECT 85 + - 64 * + 83 col2
----
-5227

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2721
SELECT ALL + COUNT( * ) * - CAST( NULL AS DECIMAL ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2721
SELECT ALL + COUNT ( * ) * - CAST ( NULL AS REAL ) col2
----
NULL

query I rowsort
SELECT + 91 * + 91 + - + 70
----
8211

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2723
SELECT + 16 DIV + CAST( + 98 AS SIGNED ) + ( + + 59 ) AS col2
----
59

skipif mysql # not compatible
query I rowsort label-2723
SELECT + 16 / + CAST ( + 98 AS INTEGER ) + ( + + 59 ) AS col2
----
59

query I rowsort
SELECT DISTINCT + 54 * + - 95 AS col0
----
-5130

query I rowsort
SELECT ALL ( NULLIF ( - + 85, - 19 * + 20 * 65 * 28 ) ) * + - 35 - + 62
----
2913

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

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

query I rowsort
SELECT - 8 + + + 97 + + ( + 76 )
----
165

onlyif mysql # aggregate syntax: 
query II rowsort label-2728
SELECT DISTINCT + 44 * + COUNT( - 63 ) + - ( + 31 ) AS col1, - 31 AS col2
----
13
-31

skipif mysql # not compatible
query II rowsort label-2728
SELECT DISTINCT + 44 * + COUNT ( - 63 ) + - ( + 31 ) AS col1, - 31 AS col2
----
13
-31

onlyif mysql # aggregate syntax: 
query II rowsort label-2729
SELECT - + 68 * + 72 + + - 24 + COUNT( + + 78 ) AS col1, - 99 + + - 78 - - + 86 * + - 35 AS col2
----
-4919
-3187

skipif mysql # not compatible
query II rowsort label-2729
SELECT - + 68 * + 72 + + - 24 + COUNT ( + + 78 ) AS col1, - 99 + + - 78 - - + 86 * + - 35 AS col2
----
-4919
-3187

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

skipif mysql # not compatible
query I rowsort label-2730
SELECT DISTINCT + COUNT ( + - 18 ) * 29 AS col1
----
29

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

skipif mysql # not compatible
query I rowsort label-2731
SELECT ALL + 72 / - COUNT ( * ) AS col1
----
-72

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

skipif mysql # not compatible
query I rowsort label-2732
SELECT - + 67 * + - COUNT ( 60 ) AS col2
----
67

query II rowsort
SELECT DISTINCT + + 75, ( - + ( 52 ) ) AS col0
----
75
-52

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2734
SELECT DISTINCT - + 98 DIV + + SUM( DISTINCT - 50 )
----
1

skipif mysql # not compatible
query I rowsort label-2734
SELECT DISTINCT - + 98 / + + SUM ( DISTINCT - 50 )
----
1

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

skipif mysql # not compatible
query I rowsort label-2735
SELECT ALL + COUNT ( ALL 75 ) AS col1
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2736
SELECT ALL 98 DIV 36 + + - COUNT( * ) - 92 AS col1
----
-91

skipif mysql # not compatible
query I rowsort label-2736
SELECT ALL 98 / 36 + + - COUNT ( * ) - 92 AS col1
----
-91

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

skipif mysql # not compatible
query I rowsort label-2737
SELECT DISTINCT - + COUNT ( * ) / - ( - ( 20 ) ) AS col0
----
0

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2739
SELECT ALL - 46 + - MIN( ALL - 2 ) DIV + 85 + + COALESCE ( + ( + - CAST( 5 AS SIGNED ) ), + 57 * + 30 + + 95, - 48 - CAST( ( 82 ) AS SIGNED ) + - 53 + + + 50 DIV 78 * + 66 DIV 24 * 21 DIV - 81 * 23 + - 6 - 53, 63 ) + 33 AS col1
----
-18

skipif mysql # not compatible
query I rowsort label-2739
SELECT ALL - 46 + - MIN ( ALL - 2 ) / + 85 + + COALESCE ( + ( + - CAST ( 5 AS INTEGER ) ), + 57 * + 30 + + 95, - 48 - CAST ( ( 82 ) AS INTEGER ) + - 53 + + + 50 / 78 * + 66 / 24 * 21 / - 81 * 23 + - 6 - 53, 63 ) + 33 AS col1
----
-18

query I rowsort
SELECT DISTINCT - 65 + 24
----
-41

query II rowsort
SELECT ALL 78, ( + 59 ) AS col2
----
78
59

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2742
SELECT ALL CAST( + 41 AS SIGNED ) + + - 29 - ( + 10 ) - + 77 + - - 83 + - COUNT( * ) AS col0
----
7

skipif mysql # not compatible
query I rowsort label-2742
SELECT ALL CAST ( + 41 AS INTEGER ) + + - 29 - ( + 10 ) - + 77 + - - 83 + - COUNT ( * ) AS col0
----
7

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2744
SELECT - 51 - + 32 + - 58 + SUM( 76 ) + 20
----
-45

skipif mysql # not compatible
query I rowsort label-2744
SELECT - 51 - + 32 + - 58 + SUM ( 76 ) + 20
----
-45

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

skipif mysql # not compatible
query I rowsort label-2745
SELECT + COUNT ( * ) + 2 AS col2
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2746
SELECT + CAST( + + COUNT( * ) AS SIGNED ) + 98 - 1 AS col1
----
98

skipif mysql # not compatible
query I rowsort label-2746
SELECT + CAST ( + + COUNT ( * ) AS INTEGER ) + 98 - 1 AS col1
----
98

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

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

query I rowsort
SELECT ALL 32 + 37
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-2749
SELECT ALL MIN( ALL + 55 ) + + COUNT( * )
----
56

skipif mysql # not compatible
query I rowsort label-2749
SELECT ALL MIN ( ALL + 55 ) + + COUNT ( * )
----
56

onlyif mysql # aggregate syntax: 
query II rowsort label-2750
SELECT ALL MIN( DISTINCT + + 19 ), 2 AS col0
----
19
2

skipif mysql # not compatible
query II rowsort label-2750
SELECT ALL MIN ( DISTINCT + + 19 ), 2 AS col0
----
19
2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2751
SELECT ALL - COUNT( * ) * CASE + 71 WHEN + 54 THEN + - ( - 85 ) ELSE 99 + + COUNT( * ) END DIV + 90
----
-1

skipif mysql # not compatible
query I rowsort label-2751
SELECT ALL - COUNT ( * ) * CASE + 71 WHEN + 54 THEN + - ( - 85 ) ELSE 99 + + COUNT ( * ) END / + 90
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-2752
SELECT 95, 94 + MAX( DISTINCT 68 ) AS col2
----
95
162

skipif mysql # not compatible
query II rowsort label-2752
SELECT 95, 94 + MAX ( DISTINCT 68 ) AS col2
----
95
162

onlyif mysql # aggregate syntax: 
query I rowsort label-2753
SELECT ALL 73 * + ( COUNT( DISTINCT + + 29 ) ) col0
----
73

skipif mysql # not compatible
query I rowsort label-2753
SELECT ALL 73 * + ( COUNT ( DISTINCT + + 29 ) ) col0
----
73

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: DIV for integer division: 
query I rowsort label-2754
SELECT + 12 DIV - NULLIF ( COUNT( * ), - CAST( CAST( - 67 AS DECIMAL ) AS SIGNED ) ) + - 17 - 97 - + 50 AS col0
----
-176

skipif mysql # not compatible
query I rowsort label-2754
SELECT + 12 / - NULLIF ( COUNT ( * ), - CAST ( CAST ( - 67 AS REAL ) AS INTEGER ) ) + - 17 - 97 - + 50 AS col0
----
-176

onlyif mysql # aggregate syntax: 
query I rowsort label-2755
SELECT DISTINCT CASE - 86 WHEN - 63 THEN NULL WHEN - 32 THEN + 47 END / - 20 - + COUNT( + 5 ) * + ( - + 64 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2755
SELECT DISTINCT CASE - 86 WHEN - 63 THEN NULL WHEN - 32 THEN + 47 END / - 20 - + COUNT ( + 5 ) * + ( - + 64 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2756
SELECT + 31 * + - CASE - 58 WHEN 58 THEN + 95 WHEN - - 96 THEN + - COUNT( * ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-2756
SELECT + 31 * + - CASE - 58 WHEN 58 THEN + 95 WHEN - - 96 THEN + - COUNT ( * ) ELSE NULL END
----
NULL

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2758
SELECT ALL + ( - COALESCE ( + 72, ( 34 ) DIV - COUNT( 6 ) * + - 65 * - - 91, 19 ) ) AS col1
----
-72

skipif mysql # not compatible
query I rowsort label-2758
SELECT ALL + ( - COALESCE ( + 72, ( 34 ) / - COUNT ( 6 ) * + - 65 * - - 91, 19 ) ) AS col1
----
-72

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2759
SELECT DISTINCT + + 1 * + 23 - + CAST( NULL AS SIGNED ) / - COUNT( DISTINCT - + 87 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2759
SELECT DISTINCT + + 1 * + 23 - + CAST ( NULL AS INTEGER ) / - COUNT ( DISTINCT - + 87 ) AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2760
SELECT + + 62 / + CAST( NULL AS SIGNED ) - 70 + 42
----
NULL

skipif mysql # not compatible
query I rowsort label-2760
SELECT + + 62 / + CAST ( NULL AS INTEGER ) - 70 + 42
----
NULL

query II rowsort
SELECT 5, 30 AS col1
----
5
30

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2762
SELECT DISTINCT - - COUNT( - + 65 ) DIV - 64 col1
----
0

skipif mysql # not compatible
query I rowsort label-2762
SELECT DISTINCT - - COUNT ( - + 65 ) / - 64 col1
----
0

query II rowsort
SELECT ALL + ( - - 34 ), 17 AS col2
----
34
17

query II rowsort
SELECT + + 95 AS col0, 64 - - 50
----
95
114

query II rowsort
SELECT ALL + 39, 10 AS col0
----
39
10

query II rowsort
SELECT - 17 AS col0, 21 AS col0
----
-17
21

onlyif mysql # aggregate syntax: 
query I rowsort label-2767
SELECT + 25 + - MAX( + 45 )
----
-20

skipif mysql # not compatible
query I rowsort label-2767
SELECT + 25 + - MAX ( + 45 )
----
-20

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

query I rowsort
SELECT - 25 * - NULLIF ( 61, - + 45 / - ( - 78 ) / - ( + 78 ) ) + + 94
----
1619

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

skipif mysql # not compatible
query I rowsort label-2770
SELECT - - CAST ( NULL AS INTEGER ) + + 85 + + 18 AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2771
SELECT ALL - 39 * + MIN( - 62 ) + + COUNT( * ), COUNT( * ) * + 51 DIV 96 + + ( 35 ) - - + 66 col2
----
2419
101

skipif mysql # not compatible
query II rowsort label-2771
SELECT ALL - 39 * + MIN ( - 62 ) + + COUNT ( * ), COUNT ( * ) * + 51 / 96 + + ( 35 ) - - + 66 col2
----
2419
101

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2772
SELECT 94 * - CAST( - 20 AS SIGNED ) + SUM( ALL - 57 )
----
1823

skipif mysql # not compatible
query I rowsort label-2772
SELECT 94 * - CAST ( - 20 AS INTEGER ) + SUM ( ALL - 57 )
----
1823

onlyif mysql # aggregate syntax: 
query I rowsort label-2773
SELECT - COUNT( * ) + - NULLIF ( + 23, + COUNT( * ) ) AS col0
----
-24

skipif mysql # not compatible
query I rowsort label-2773
SELECT - COUNT ( * ) + - NULLIF ( + 23, + COUNT ( * ) ) AS col0
----
-24

query I rowsort
SELECT ALL - 97 * + 67 + - 78 * + 34 AS col0
----
-9151

query I rowsort
SELECT - 51 + + 30
----
-21

query I rowsort
SELECT + 33 - 63 * - + 76
----
4821

onlyif mysql # DIV for integer division: 
query II rowsort label-2777
SELECT ALL - 43 DIV + 52 AS col1, 20
----
0
20

skipif mysql # not compatible
query II rowsort label-2777
SELECT ALL - 43 / + 52 AS col1, 20
----
0
20

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2778
SELECT - COALESCE ( - - ( - 97 ), COUNT( * ) * - 4, 78 + - - 0 DIV - 31 ) * + 20
----
1940

skipif mysql # not compatible
query I rowsort label-2778
SELECT - COALESCE ( - - ( - 97 ), COUNT ( * ) * - 4, 78 + - - 0 / - 31 ) * + 20
----
1940

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

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

query I rowsort
SELECT ALL 91 + - - 73
----
164

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2781
SELECT - COUNT( DISTINCT + 46 ) + + + 57 * 90 + - ( + - 33 ) DIV - COUNT( * ) AS col2
----
5096

skipif mysql # not compatible
query I rowsort label-2781
SELECT - COUNT ( DISTINCT + 46 ) + + + 57 * 90 + - ( + - 33 ) / - COUNT ( * ) AS col2
----
5096

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2782
SELECT + CAST( + 2 AS SIGNED ) + - 12 * - + 76
----
914

skipif mysql # not compatible
query I rowsort label-2782
SELECT + CAST ( + 2 AS INTEGER ) + - 12 * - + 76
----
914

query II rowsort
SELECT ALL CASE 90 WHEN 91 THEN - - 20 + - 13 END * + + 22 * + 14 AS col0, 3 + - 35 * + 41 * + 60
----
NULL
-86097

query I rowsort
SELECT ALL - 71 * + 58
----
-4118

onlyif mysql # aggregate syntax: 
query I rowsort label-2785
SELECT - SUM( ALL + NULLIF ( + 55, - 22 ) ) + - + 49 + 29 AS col2
----
-75

skipif mysql # not compatible
query I rowsort label-2785
SELECT - SUM ( ALL + NULLIF ( + 55, - 22 ) ) + - + 49 + 29 AS col2
----
-75

onlyif mysql # aggregate syntax: 
query II rowsort label-2786
SELECT - 37 * 43, - CASE COUNT( * ) WHEN + ( - COUNT( * ) ) THEN NULL WHEN - COUNT( * ) * - 37 * - 73 + - 0 * 75 - + 7 THEN NULL WHEN + MAX( ALL - - 28 ) THEN NULL ELSE - 51 + - - 7 + + + 70 END AS col1
----
-1591
-26

skipif mysql # not compatible
query II rowsort label-2786
SELECT - 37 * 43, - CASE COUNT ( * ) WHEN + ( - COUNT ( * ) ) THEN NULL WHEN - COUNT ( * ) * - 37 * - 73 + - 0 * 75 - + 7 THEN NULL WHEN + MAX ( ALL - - 28 ) THEN NULL ELSE - 51 + - - 7 + + + 70 END AS col1
----
-1591
-26

query I rowsort
SELECT ALL 49 * 21 AS col0
----
1029

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2788
SELECT 75 + - MIN( ALL + 62 ) + - + 43 DIV + 90
----
13

skipif mysql # not compatible
query I rowsort label-2788
SELECT 75 + - MIN ( ALL + 62 ) + - + 43 / + 90
----
13

query I rowsort
SELECT NULLIF ( + 5, + 20 + 48 ) + - + 51
----
-46

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2791
SELECT ALL 86 * - 75 / + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-2791
SELECT ALL 86 * - 75 / + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2792
SELECT 64 + + COUNT( * ) + + 78 + - - COUNT( * )
----
144

skipif mysql # not compatible
query I rowsort label-2792
SELECT 64 + + COUNT ( * ) + + 78 + - - COUNT ( * )
----
144

query II rowsort
SELECT DISTINCT 44 * - + 51 AS col2, 78
----
-2244
78

onlyif mysql # aggregate syntax: 
query I rowsort label-2794
SELECT - 13 - - - 79 * - COUNT( * ) AS col2
----
66

skipif mysql # not compatible
query I rowsort label-2794
SELECT - 13 - - - 79 * - COUNT ( * ) AS col2
----
66

onlyif mysql # DIV for integer division: 
query I rowsort label-2795
SELECT 56 DIV + 60 * - 75 + + 36 col0
----
36

skipif mysql # not compatible
query I rowsort label-2795
SELECT 56 / + 60 * - 75 + + 36 col0
----
36

query I rowsort
SELECT ALL - 45 * + 16 * + 51 AS col1
----
-36720

onlyif mysql # aggregate syntax: 
query I rowsort label-2797
SELECT NULLIF ( + CASE ( + 66 ) WHEN 56 THEN 78 / + 97 + COUNT( * ) ELSE NULL END, - 72 + + - 8 ) * + 3
----
NULL

skipif mysql # not compatible
query I rowsort label-2797
SELECT NULLIF ( + CASE ( + 66 ) WHEN 56 THEN 78 / + 97 + COUNT ( * ) ELSE NULL END, - 72 + + - 8 ) * + 3
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2798
SELECT + SUM( DISTINCT + + 34 ) DIV - - 49 + - COUNT( * ) + + MIN( - - 33 ) AS col1
----
32

skipif mysql # not compatible
query I rowsort label-2798
SELECT + SUM ( DISTINCT + + 34 ) / - - 49 + - COUNT ( * ) + + MIN ( - - 33 ) AS col1
----
32

query II rowsort
SELECT + ( + 78 ) AS col2, + 77 + + + 76 AS col0
----
78
153

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2800
SELECT 33 + + COALESCE ( - 41, - CASE 71 WHEN COUNT( * ) THEN NULL WHEN - 26 * 42 THEN + - 42 DIV - - 12 + + COUNT( * ) ELSE NULL END, - 81 ) + + 4 DIV 67 AS col0
----
-8

skipif mysql # not compatible
query I rowsort label-2800
SELECT 33 + + COALESCE ( - 41, - CASE 71 WHEN COUNT ( * ) THEN NULL WHEN - 26 * 42 THEN + - 42 / - - 12 + + COUNT ( * ) ELSE NULL END, - 81 ) + + 4 / 67 AS col0
----
-8

query I rowsort
SELECT + - COALESCE ( + + 35, - 17 + + + 96 )
----
-35

query I rowsort
SELECT 66 * + + 65
----
4290

query I rowsort
SELECT DISTINCT - 51 + + 85 AS col0
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-2804
SELECT ALL - + ( + CASE + COUNT( * ) WHEN - 88 THEN + 27 / - + 84 - - COALESCE ( + 26, + 30 ) * + 31 * - 67 + - + 43 WHEN - ( 77 ) + + 26 + - 69 + + ( - 10 ) * + + ( 69 ) THEN - COUNT( * ) END )
----
NULL

skipif mysql # not compatible
query I rowsort label-2804
SELECT ALL - + ( + CASE + COUNT ( * ) WHEN - 88 THEN + 27 / - + 84 - - COALESCE ( + 26, + 30 ) * + 31 * - 67 + - + 43 WHEN - ( 77 ) + + 26 + - 69 + + ( - 10 ) * + + ( 69 ) THEN - COUNT ( * ) END )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2805
SELECT ALL + - 6 DIV - 96
----
0

skipif mysql # not compatible
query I rowsort label-2805
SELECT ALL + - 6 / - 96
----
0

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2806
SELECT ALL - 18 + + CAST( NULL AS DECIMAL ) + + 89 * AVG ( DISTINCT - 14 ) - 75 - - - 57 - 26 + 0 - - 65 / - ( + + MAX( DISTINCT - 21 ) ) * 27 / - - 78
----
NULL

skipif mysql # not compatible
query I rowsort label-2806
SELECT ALL - 18 + + CAST ( NULL AS REAL ) + + 89 * AVG ( DISTINCT - 14 ) - 75 - - - 57 - 26 + 0 - - 65 / - ( + + MAX ( DISTINCT - 21 ) ) * 27 / - - 78
----
NULL

query I rowsort
SELECT + COALESCE ( + 56, + 68 )
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-2808
SELECT CASE COUNT( * ) WHEN - 45 + - 45 THEN + 0 + + COUNT( * ) END * - 17 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2808
SELECT CASE COUNT ( * ) WHEN - 45 + - 45 THEN + 0 + + COUNT ( * ) END * - 17 AS col0
----
NULL

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2810
SELECT ALL - + ( + - 16 ) AS col2, 55 + 58 * - COUNT( * ) AS col1
----
16
-3

skipif mysql # not compatible
query II rowsort label-2810
SELECT ALL - + ( + - 16 ) AS col2, 55 + 58 * - COUNT ( * ) AS col1
----
16
-3

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2811
SELECT + 87 * 27 * COUNT( * ) + - - ( COUNT( * ) ) DIV ( - 58 ) DIV - 71 * + COUNT( * ) + - + 47 * 56 * - - 96 + + 80 AS col1, MIN( DISTINCT + + 45 ) DIV - 67 * + + 44 + - 71
----
-250243
-71

skipif mysql # not compatible
query II rowsort label-2811
SELECT + 87 * 27 * COUNT ( * ) + - - ( COUNT ( * ) ) / ( - 58 ) / - 71 * + COUNT ( * ) + - + 47 * 56 * - - 96 + + 80 AS col1, MIN ( DISTINCT + + 45 ) / - 67 * + + 44 + - 71
----
-250243
-71

query I rowsort
SELECT DISTINCT - 57 * + 38
----
-2166

query II rowsort
SELECT - 28 AS col2, - 14 AS col0
----
-28
-14

query I rowsort
SELECT 88 + + 98
----
186

query I rowsort
SELECT ALL - 48 + - - 16 AS col0
----
-32

query I rowsort
SELECT 59 * + 83 AS col0
----
4897

query I rowsort
SELECT DISTINCT - 30 * + 8
----
-240

query I rowsort
SELECT DISTINCT - 57 * 35 AS col0
----
-1995

onlyif mysql # DIV for integer division: 
query I rowsort label-2819
SELECT 78 DIV + 85 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-2819
SELECT 78 / + 85 AS col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2820
SELECT ALL + 85 - + NULLIF ( 29, MAX( 59 ) * + CAST( NULL AS SIGNED ) * - NULLIF ( 28, - - 47 ) ) AS col2
----
56

skipif mysql # not compatible
query I rowsort label-2820
SELECT ALL + 85 - + NULLIF ( 29, MAX ( 59 ) * + CAST ( NULL AS INTEGER ) * - NULLIF ( 28, - - 47 ) ) AS col2
----
56

onlyif mysql # aggregate syntax: 
query II rowsort label-2821
SELECT 33 col0, - SUM( DISTINCT - 8 ) col0
----
33
8

skipif mysql # not compatible
query II rowsort label-2821
SELECT 33 col0, - SUM ( DISTINCT - 8 ) col0
----
33
8

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2822
SELECT 68 + - COUNT( * ) + - 17 AS col0, COUNT( * ) DIV + 79 + - + 31
----
50
-31

skipif mysql # not compatible
query II rowsort label-2822
SELECT 68 + - COUNT ( * ) + - 17 AS col0, COUNT ( * ) / + 79 + - + 31
----
50
-31

query I rowsort
SELECT 4 * 13 col1
----
52

query I rowsort
SELECT 75 * + 33
----
2475

query I rowsort
SELECT 78 + + + 4
----
82

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2826
SELECT DISTINCT + CASE + + 64 WHEN + 20 + + - 75 * + COALESCE ( + 22, 27 ) * + 21 THEN COUNT( * ) + + + CASE + 83 WHEN + - 71 THEN - 10 + 73 WHEN 6 * - 30 THEN NULL END + ( + - CAST( - + 23 AS SIGNED ) ) WHEN + - 71 THEN - 10 * + 75 + + - 39 END / 67 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2826
SELECT DISTINCT + CASE + + 64 WHEN + 20 + + - 75 * + COALESCE ( + 22, 27 ) * + 21 THEN COUNT ( * ) + + + CASE + 83 WHEN + - 71 THEN - 10 + 73 WHEN 6 * - 30 THEN NULL END + ( + - CAST ( - + 23 AS INTEGER ) ) WHEN + - 71 THEN - 10 * + 75 + + - 39 END / 67 AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2827
SELECT ALL + 86 DIV 55 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-2827
SELECT ALL + 86 / 55 AS col2
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-2828
SELECT 94 DIV 84
----
1

skipif mysql # not compatible
query I rowsort label-2828
SELECT 94 / 84
----
1

query I rowsort
SELECT ALL 95 * 14 AS col2
----
1330

onlyif mysql # aggregate syntax: 
query I rowsort label-2830
SELECT COUNT( * ) - + 90 AS col0
----
-89

skipif mysql # not compatible
query I rowsort label-2830
SELECT COUNT ( * ) - + 90 AS col0
----
-89

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2831
SELECT ( COUNT( DISTINCT - + 29 ) ) DIV - - ( + 28 ) + - + 75
----
-75

skipif mysql # not compatible
query I rowsort label-2831
SELECT ( COUNT ( DISTINCT - + 29 ) ) / - - ( + 28 ) + - + 75
----
-75

query II rowsort
SELECT ALL - 19 AS col2, + 95
----
-19
95

query I rowsort
SELECT - NULLIF ( - + 52, ( + 90 ) + 16 )
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-2834
SELECT + MIN( + - 26 ) * 38
----
-988

skipif mysql # not compatible
query I rowsort label-2834
SELECT + MIN ( + - 26 ) * 38
----
-988

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query I rowsort label-2835
SELECT - + NULLIF ( 24, - - 16 + + + CAST( NULL AS DECIMAL ) ) DIV - COUNT( * ) + 31 AS col2
----
55

skipif mysql # not compatible
query I rowsort label-2835
SELECT - + NULLIF ( 24, - - 16 + + + CAST ( NULL AS REAL ) ) / - COUNT ( * ) + 31 AS col2
----
55

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2837
SELECT - COUNT( * ) * - 13 + + - COUNT( * )
----
12

skipif mysql # not compatible
query I rowsort label-2837
SELECT - COUNT ( * ) * - 13 + + - COUNT ( * )
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-2838
SELECT ALL COUNT( + - 89 ) + + + 41 col2
----
42

skipif mysql # not compatible
query I rowsort label-2838
SELECT ALL COUNT ( + - 89 ) + + + 41 col2
----
42

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2839
SELECT DISTINCT - AVG ( 75 ) * CAST( NULL AS SIGNED ) + - - 76
----
NULL

skipif mysql # not compatible
query I rowsort label-2839
SELECT DISTINCT - AVG ( 75 ) * CAST ( NULL AS INTEGER ) + - - 76
----
NULL

query I rowsort
SELECT ALL + 13 + + 0 - - 79 * 57
----
4516

onlyif mysql # aggregate syntax: 
query I rowsort label-2841
SELECT DISTINCT 78 + ( + - 31 ) * + 65 + - COUNT( * ) col0
----
-1938

skipif mysql # not compatible
query I rowsort label-2841
SELECT DISTINCT 78 + ( + - 31 ) * + 65 + - COUNT ( * ) col0
----
-1938

query I rowsort
SELECT DISTINCT - COALESCE ( - 78, + 92, 72 + - ( + + 59 ) + 72 * + 25, - 86 )
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-2843
SELECT ALL MAX( ALL + 41 ) + 44 + + - 19
----
66

skipif mysql # not compatible
query I rowsort label-2843
SELECT ALL MAX ( ALL + 41 ) + 44 + + - 19
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-2844
SELECT ( + + MIN( + 33 ) ) * - COUNT( * ) * + - 2 AS col2
----
66

skipif mysql # not compatible
query I rowsort label-2844
SELECT ( + + MIN ( + 33 ) ) * - COUNT ( * ) * + - 2 AS col2
----
66

query I rowsort
SELECT ALL - 22 + 79 + + 62 + + 66 AS col1
----
185

onlyif mysql # aggregate syntax: 
query II rowsort label-2846
SELECT + + COUNT( * ) AS col2, - 95 + - 6 AS col0
----
1
-101

skipif mysql # not compatible
query II rowsort label-2846
SELECT + + COUNT ( * ) AS col2, - 95 + - 6 AS col0
----
1
-101

query I rowsort
SELECT + 9 + - 86
----
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-2848
SELECT - ( + - NULLIF ( + COALESCE ( + 61, MIN( - ( + ( COALESCE ( - 53, 23 ) ) ) ) ), - COUNT( * ) * - COUNT( DISTINCT + 32 ) ) ) AS col1
----
61

skipif mysql # not compatible
query I rowsort label-2848
SELECT - ( + - NULLIF ( + COALESCE ( + 61, MIN ( - ( + ( COALESCE ( - 53, 23 ) ) ) ) ), - COUNT ( * ) * - COUNT ( DISTINCT + 32 ) ) ) AS col1
----
61

query I rowsort
SELECT 60 + - - 69
----
129

onlyif mysql # aggregate syntax: 
query I rowsort label-2850
SELECT - 93 - - COUNT( DISTINCT 27 )
----
-92

skipif mysql # not compatible
query I rowsort label-2850
SELECT - 93 - - COUNT ( DISTINCT 27 )
----
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-2851
SELECT - MAX( + 35 ) * - - 9 + - 68 + + ( - 58 ) AS col1
----
-441

skipif mysql # not compatible
query I rowsort label-2851
SELECT - MAX ( + 35 ) * - - 9 + - 68 + + ( - 58 ) AS col1
----
-441

query II rowsort
SELECT + 4, 2 * - - 78 AS col2
----
4
156

query I rowsort
SELECT - 50 + 67
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-2854
SELECT ALL 16 - - 73 + + COUNT( 79 )
----
90

skipif mysql # not compatible
query I rowsort label-2854
SELECT ALL 16 - - 73 + + COUNT ( 79 )
----
90

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2855
SELECT CASE + + CASE 39 WHEN + 16 THEN NULL WHEN 36 * + 9 THEN 94 + - 4 END WHEN 73 THEN NULL WHEN - 40 THEN NULL ELSE - - COUNT( * ) END * - + CAST( NULL AS DECIMAL ) - - 16 * - COUNT( * ) / - + 96
----
NULL

skipif mysql # not compatible
query I rowsort label-2855
SELECT CASE + + CASE 39 WHEN + 16 THEN NULL WHEN 36 * + 9 THEN 94 + - 4 END WHEN 73 THEN NULL WHEN - 40 THEN NULL ELSE - - COUNT ( * ) END * - + CAST ( NULL AS REAL ) - - 16 * - COUNT ( * ) / - + 96
----
NULL

query I rowsort
SELECT ALL 86 * - + 73 AS col1
----
-6278

query I rowsort
SELECT 69 + - - 95 AS col1
----
164

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2858
SELECT ALL + MIN( - ( 73 ) ) DIV + 4
----
-18

skipif mysql # not compatible
query I rowsort label-2858
SELECT ALL + MIN ( - ( 73 ) ) / + 4
----
-18

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2859
SELECT CAST( + 18 AS SIGNED ) + 70 AS col2
----
88

skipif mysql # not compatible
query I rowsort label-2859
SELECT CAST ( + 18 AS INTEGER ) + 70 AS col2
----
88

onlyif mysql # DIV for integer division: 
query II rowsort label-2860
SELECT ALL 80 - - - 97, + 9 DIV 14 + + 35 AS col2
----
-17
35

skipif mysql # not compatible
query II rowsort label-2860
SELECT ALL 80 - - - 97, + 9 / 14 + + 35 AS col2
----
-17
35

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2861
SELECT CAST( - 91 AS SIGNED ) * 27 + - + NULLIF ( + 97, + CAST( NULL AS SIGNED ) )
----
-2554

skipif mysql # not compatible
query I rowsort label-2861
SELECT CAST ( - 91 AS INTEGER ) * 27 + - + NULLIF ( + 97, + CAST ( NULL AS INTEGER ) )
----
-2554

query I rowsort
SELECT 97 + + 89 AS col0
----
186

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

query I rowsort
SELECT - COALESCE ( - 46, + 68 )
----
46

onlyif mysql # aggregate syntax: 
query II rowsort label-2865
SELECT - 20 + + COUNT( * ), - 15 AS col1
----
-19
-15

skipif mysql # not compatible
query II rowsort label-2865
SELECT - 20 + + COUNT ( * ), - 15 AS col1
----
-19
-15

query I rowsort
SELECT + COALESCE ( - - 27, 37 * + - 40 + + 71 ) * + 94
----
2538

onlyif mysql # aggregate syntax: 
query I rowsort label-2867
SELECT - 38 * - COUNT( * ) * - 43
----
-1634

skipif mysql # not compatible
query I rowsort label-2867
SELECT - 38 * - COUNT ( * ) * - 43
----
-1634

query I rowsort
SELECT DISTINCT + 8 * + 87 * - 36 AS col1
----
-25056

onlyif mysql # aggregate syntax: 
query I rowsort label-2869
SELECT - COALESCE ( - 79, COUNT( * ) ) AS col1
----
79

skipif mysql # not compatible
query I rowsort label-2869
SELECT - COALESCE ( - 79, COUNT ( * ) ) AS col1
----
79

onlyif mysql # aggregate syntax: 
query II rowsort label-2870
SELECT ALL SUM( DISTINCT - 21 ) AS col1, 70 AS col2
----
-21
70

skipif mysql # not compatible
query II rowsort label-2870
SELECT ALL SUM ( DISTINCT - 21 ) AS col1, 70 AS col2
----
-21
70

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

skipif mysql # not compatible
query I rowsort label-2871
SELECT - 2 * COUNT ( * )
----
-2

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

skipif mysql # not compatible
query I rowsort label-2872
SELECT DISTINCT COUNT ( * ) * - 16 / - 45
----
0

query I rowsort
SELECT DISTINCT + 64 + + 2
----
66

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2874
SELECT ALL + 78 + - + 24 / + + 55 * - CAST( NULL AS SIGNED ) - + - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-2874
SELECT ALL + 78 + - + 24 / + + 55 * - CAST ( NULL AS INTEGER ) - + - COUNT ( * )
----
NULL

query I rowsort
SELECT + 77 + - + 63 * + 16
----
-931

query I rowsort
SELECT DISTINCT - + 77 + + - 23 + + 95 AS col0
----
-5

onlyif mysql # DIV for integer division: 
query I rowsort label-2877
SELECT - 74 DIV - 33 + + 54
----
56

skipif mysql # not compatible
query I rowsort label-2877
SELECT - 74 / - 33 + + 54
----
56

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2878
SELECT ALL + 12 + - 74 DIV + + COUNT( * ) AS col1
----
-62

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2879
SELECT ALL - - 27 + - - CAST( + + 10 AS SIGNED )
----
37

skipif mysql # not compatible
query I rowsort label-2879
SELECT ALL - - 27 + - - CAST ( + + 10 AS INTEGER )
----
37

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

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

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

skipif mysql # not compatible
query I rowsort label-2881
SELECT + + 14 * + + 85 + COUNT ( * ) AS col0
----
1191

query I rowsort
SELECT - 94 * - - 17
----
-1598

onlyif mysql # aggregate syntax: 
query I rowsort label-2883
SELECT + CASE 72 WHEN - 93 + + ( - 56 ) + - 80 THEN + + COUNT( ALL - 59 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-2883
SELECT + CASE 72 WHEN - 93 + + ( - 56 ) + - 80 THEN + + COUNT ( ALL - 59 ) END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2884
SELECT ALL + 71 * - 79 - + COUNT( * ) - 37 + ( + 1 ) * - 43 AS col1
----
-5690

skipif mysql # not compatible
query I rowsort label-2884
SELECT ALL + 71 * - 79 - + COUNT ( * ) - 37 + ( + 1 ) * - 43 AS col1
----
-5690

query I rowsort
SELECT + ( + + 24 ) + - + 46 * + 18
----
-804

onlyif mysql # aggregate syntax: 
query I rowsort label-2886
SELECT - 48 * + COUNT( * ) * - 37 + - ( + 56 ) * 52 AS col0
----
-1136

skipif mysql # not compatible
query I rowsort label-2886
SELECT - 48 * + COUNT ( * ) * - 37 + - ( + 56 ) * 52 AS col0
----
-1136

query I rowsort
SELECT ALL + 66 * + 35 * + 76 col0
----
175560

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2889
SELECT + CAST( - 32 AS SIGNED ) * + 62 + + COUNT( * )
----
-1983

skipif mysql # not compatible
query I rowsort label-2889
SELECT + CAST ( - 32 AS INTEGER ) * + 62 + + COUNT ( * )
----
-1983

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

skipif mysql # not compatible
query I rowsort label-2890
SELECT + CAST ( NULL AS INTEGER ) / + 11
----
NULL

query I rowsort
SELECT + 38 * 69
----
2622

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

skipif mysql # not compatible
query I rowsort label-2892
SELECT MIN ( ALL - - 73 )
----
73

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

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

query I rowsort
SELECT DISTINCT 32 * 37 AS col1
----
1184

query II rowsort
SELECT DISTINCT 12 AS col1, - 27 AS col2
----
12
-27

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2896
SELECT + 37 * + + CAST( + 49 AS SIGNED ) AS col2
----
1813

skipif mysql # not compatible
query I rowsort label-2896
SELECT + 37 * + + CAST ( + 49 AS INTEGER ) AS col2
----
1813

query I rowsort
SELECT + 48 + 48 + + ( + 46 ) AS col0
----
142

query I rowsort
SELECT - NULLIF ( - 39, + 23 * - + 65 ) AS col2
----
39

query I rowsort
SELECT + 25 + - - 23
----
48

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2900
SELECT + - COUNT( * ) * + 76 DIV 91 * - + 44 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2900
SELECT + - COUNT ( * ) * + 76 / 91 * - + 44 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2901
SELECT - - COUNT( * ) + MAX( - 75 ) col0
----
-74

skipif mysql # not compatible
query I rowsort label-2901
SELECT - - COUNT ( * ) + MAX ( - 75 ) col0
----
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-2902
SELECT ALL + COUNT( + + 26 ) + + 94 AS col0
----
95

skipif mysql # not compatible
query I rowsort label-2902
SELECT ALL + COUNT ( + + 26 ) + + 94 AS col0
----
95

query I rowsort
SELECT ALL + 66 * - + 36
----
-2376

query I rowsort
SELECT + COALESCE ( - - 49, - 27 + + 93 ) * - 49
----
-2401

query I rowsort
SELECT DISTINCT 81 + - 6
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-2906
SELECT - - 28 + NULLIF ( + 75, + 53 * - - COALESCE ( - MAX( DISTINCT - - 52 ), - 69 - + 40 ) * - - NULLIF ( + 84, 99 * + - COUNT( * ) ) + - COUNT( * ) + 44 * + + 83 * - - 88 + + 63 / - 50 / 30 )
----
103

skipif mysql # not compatible
query I rowsort label-2906
SELECT - - 28 + NULLIF ( + 75, + 53 * - - COALESCE ( - MAX ( DISTINCT - - 52 ), - 69 - + 40 ) * - - NULLIF ( + 84, 99 * + - COUNT ( * ) ) + - COUNT ( * ) + 44 * + + 83 * - - 88 + + 63 / - 50 / 30 )
----
103

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2907
SELECT ALL - CAST( NULL AS DECIMAL ) * - NULLIF ( - MAX( + 77 ), + - 79 ) * + 81 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2907
SELECT ALL - CAST ( NULL AS REAL ) * - NULLIF ( - MAX ( + 77 ), + - 79 ) * + 81 AS col0
----
NULL

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2909
SELECT - + 97 AS col1, 44 * - - CAST( 92 AS SIGNED ) AS col2
----
-97
4048

skipif mysql # not compatible
query II rowsort label-2909
SELECT - + 97 AS col1, 44 * - - CAST ( 92 AS INTEGER ) AS col2
----
-97
4048

onlyif mysql # aggregate syntax: 
query I rowsort label-2910
SELECT + CASE + 4 WHEN + COUNT( * ) THEN - 4 / + 77 - + 58 + - 51 * + AVG ( DISTINCT 6 ) WHEN 37 - 17 * + + 73 * COUNT( * ) THEN 81 * + ( - - COUNT( * ) ) END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2910
SELECT + CASE + 4 WHEN + COUNT ( * ) THEN - 4 / + 77 - + 58 + - 51 * + AVG ( DISTINCT 6 ) WHEN 37 - 17 * + + 73 * COUNT ( * ) THEN 81 * + ( - - COUNT ( * ) ) END col1
----
NULL

query I rowsort
SELECT ALL + + 88 col2
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-2912
SELECT - 27 - - NULLIF ( ( - MIN( DISTINCT + 28 ) ), - 84 ) * + 39 * 41 * + 34 AS col2
----
-1522275

skipif mysql # not compatible
query I rowsort label-2912
SELECT - 27 - - NULLIF ( ( - MIN ( DISTINCT + 28 ) ), - 84 ) * + 39 * 41 * + 34 AS col2
----
-1522275

query I rowsort
SELECT - + 1 * 89
----
-89

query I rowsort
SELECT ALL - 90 * - 88 AS col0
----
7920

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2915
SELECT - 41 - 83 / CASE - 40 WHEN - - NULLIF ( - 10, + + 97 ) + + - MAX( DISTINCT + 65 ) THEN - CAST( NULL AS SIGNED ) * + 44 + + 8 * - COUNT( * ) + - + 51 + COUNT( * ) WHEN + 36 THEN NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2915
SELECT - 41 - 83 / CASE - 40 WHEN - - NULLIF ( - 10, + + 97 ) + + - MAX ( DISTINCT + 65 ) THEN - CAST ( NULL AS INTEGER ) * + 44 + + 8 * - COUNT ( * ) + - + 51 + COUNT ( * ) WHEN + 36 THEN NULL END AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2916
SELECT ALL 78 DIV - + 40 - + NULLIF ( + 17, + + COUNT( * ) * 65 )
----
-18

skipif mysql # not compatible
query I rowsort label-2916
SELECT ALL 78 / - + 40 - + NULLIF ( + 17, + + COUNT ( * ) * 65 )
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-2917
SELECT DISTINCT + COALESCE ( + - COUNT( * ), - - 70 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-2917
SELECT DISTINCT + COALESCE ( + - COUNT ( * ), - - 70 ) AS col0
----
-1

query I rowsort
SELECT - 62 + 45
----
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-2919
SELECT + COUNT( * ) * + 60 + - 63 AS col2
----
-3

skipif mysql # not compatible
query I rowsort label-2919
SELECT + COUNT ( * ) * + 60 + - 63 AS col2
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-2920
SELECT COUNT( * ) - - - 60 AS col1
----
-59

skipif mysql # not compatible
query I rowsort label-2920
SELECT COUNT ( * ) - - - 60 AS col1
----
-59

query I rowsort
SELECT 26 * - 15 + - + 45 + + 17 + + 13 - + - ( - 52 ) + - - 60 * 40
----
1943

onlyif mysql # aggregate syntax: 
query II rowsort label-2922
SELECT ALL - COUNT( * ), - 47 + 52 col2
----
-1
5

skipif mysql # not compatible
query II rowsort label-2922
SELECT ALL - COUNT ( * ), - 47 + 52 col2
----
-1
5

query II rowsort
SELECT + 39 AS col2, 35 col2
----
39
35

query I rowsort
SELECT 87 + - - COALESCE ( 69, - 92 * 4 + + 29 * 19 ) * + 48 col2
----
3399

query I rowsort
SELECT ALL + 27 + 66
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-2926
SELECT ALL MAX( DISTINCT 78 ) + - - 9
----
87

skipif mysql # not compatible
query I rowsort label-2926
SELECT ALL MAX ( DISTINCT 78 ) + - - 9
----
87

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2927
SELECT 3 + + + 55 DIV COUNT( * ) col1
----
58

skipif mysql # not compatible
query I rowsort label-2927
SELECT 3 + + + 55 / COUNT ( * ) col1
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-2928
SELECT ALL 55 + - COUNT( DISTINCT 25 ) * - COUNT( * ) - + - 25 AS col1
----
81

skipif mysql # not compatible
query I rowsort label-2928
SELECT ALL 55 + - COUNT ( DISTINCT 25 ) * - COUNT ( * ) - + - 25 AS col1
----
81

query I rowsort
SELECT 13 + 66 AS col0
----
79

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

skipif mysql # not compatible
query I rowsort label-2930
SELECT ALL 73 * - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-2931
SELECT 30 AS col2, 31 DIV + - 74 * - - 36 col2
----
30
0

skipif mysql # not compatible
query II rowsort label-2931
SELECT 30 AS col2, 31 / + - 74 * - - 36 col2
----
30
0

query I rowsort
SELECT 38 + + ( + + 90 ) AS col0
----
128

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2933
SELECT NULLIF ( - 14, - - COUNT( * ) ) + + 8 + + + SUM( ALL - + 48 ) DIV - + ( + 42 ) AS col0
----
-5

skipif mysql # not compatible
query I rowsort label-2933
SELECT NULLIF ( - 14, - - COUNT ( * ) ) + + 8 + + + SUM ( ALL - + 48 ) / - + ( + 42 ) AS col0
----
-5

query I rowsort
SELECT DISTINCT 72 * 99
----
7128

query I rowsort
SELECT ALL - - 55 + + 52 - + 11
----
96

onlyif mysql # aggregate syntax: 
query II rowsort label-2936
SELECT ALL 4 AS col0, 38 * + COALESCE ( - 39, - MIN( + + 76 ) - - COUNT( * ) ) + ( + + 65 ) - - - ( + - 65 ) + - 23 - 48 * + - 39 AS col2
----
4
497

skipif mysql # not compatible
query II rowsort label-2936
SELECT ALL 4 AS col0, 38 * + COALESCE ( - 39, - MIN ( + + 76 ) - - COUNT ( * ) ) + ( + + 65 ) - - - ( + - 65 ) + - 23 - 48 * + - 39 AS col2
----
4
497

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

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2938
SELECT ALL CASE + COUNT( * ) WHEN 49 - + - 11 * + CAST( + 16 AS DECIMAL ) THEN - 5 * - - 41 + + - 69 WHEN - 86 / - 4 THEN + 19 * 38 ELSE - - MAX( 60 ) END * 31 + + 43 AS col1
----
1903

skipif mysql # not compatible
query I rowsort label-2938
SELECT ALL CASE + COUNT ( * ) WHEN 49 - + - 11 * + CAST ( + 16 AS REAL ) THEN - 5 * - - 41 + + - 69 WHEN - 86 / - 4 THEN + 19 * 38 ELSE - - MAX ( 60 ) END * 31 + + 43 AS col1
----
1903

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2940
SELECT ( + ( 85 ) ) + - 13 DIV + + COALESCE ( 91, + 16 ) + - + NULLIF ( + 88, + SUM( - 46 ) ) AS col2
----
-3

skipif mysql # not compatible
query I rowsort label-2940
SELECT ( + ( 85 ) ) + - 13 / + + COALESCE ( 91, + 16 ) + - + NULLIF ( + 88, + SUM ( - 46 ) ) AS col2
----
-3

query I rowsort
SELECT + 45 - 9 AS col2
----
36

query I rowsort
SELECT DISTINCT 15 - + 44
----
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-2943
SELECT + 89 + - + 41 * - COUNT( * ) AS col1
----
130

skipif mysql # not compatible
query I rowsort label-2943
SELECT + 89 + - + 41 * - COUNT ( * ) AS col1
----
130

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

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

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

query I rowsort
SELECT - 12 + + + 11
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-2947
SELECT 35 + 77 - - COUNT( * )
----
113

skipif mysql # not compatible
query I rowsort label-2947
SELECT 35 + 77 - - COUNT ( * )
----
113

query II rowsort
SELECT ALL - - ( - NULLIF ( + 36, 5 ) ) AS col0, 49
----
-36
49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2949
SELECT ALL 99 * + 90 - - CAST( NULL AS SIGNED ) col0
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2950
SELECT - 39 + + + 7 - - + 19 * ( + COUNT( * ) )
----
-13

skipif mysql # not compatible
query I rowsort label-2950
SELECT - 39 + + + 7 - - + 19 * ( + COUNT ( * ) )
----
-13

query I rowsort
SELECT DISTINCT + 16 * + 5
----
80

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2954
SELECT 62 DIV + 89
----
0

skipif mysql # not compatible
query I rowsort label-2954
SELECT 62 / + 89
----
0

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2956
SELECT 22 * + + SUM( - 75 ) * + 80 + - 21
----
-132021

skipif mysql # not compatible
query I rowsort label-2956
SELECT 22 * + + SUM ( - 75 ) * + 80 + - 21
----
-132021

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2957
SELECT 88 DIV - MAX( DISTINCT + + 47 )
----
-1

skipif mysql # not compatible
query I rowsort label-2957
SELECT 88 / - MAX ( DISTINCT + + 47 )
----
-1

query I rowsort
SELECT ALL 97 + + 68
----
165

query II rowsort
SELECT DISTINCT 56 + - - 0 col2, 26
----
56
26

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2960
SELECT DISTINCT - 49 DIV - - MIN( 27 )
----
-1

skipif mysql # not compatible
query I rowsort label-2960
SELECT DISTINCT - 49 / - - MIN ( 27 )
----
-1

query I rowsort
SELECT DISTINCT - 41 + 75 - 18
----
16

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2962
SELECT ALL - 68 DIV COUNT( * ) AS col0
----
-68

skipif mysql # not compatible
query I rowsort label-2962
SELECT ALL - 68 / COUNT ( * ) AS col0
----
-68

query I rowsort
SELECT 13 * + - 75 * + + 98 * 45
----
-4299750

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2965
SELECT DISTINCT + CASE - 75 WHEN + + 33 - + 67 * - COUNT( * ) * + + 19 * 12 * - 65 THEN - + 50 ELSE MAX( 13 ) + + 33 END + + ( 95 )
----
141

skipif mysql # not compatible
query I rowsort label-2965
SELECT DISTINCT + CASE - 75 WHEN + + 33 - + 67 * - COUNT ( * ) * + + 19 * 12 * - 65 THEN - + 50 ELSE MAX ( 13 ) + + 33 END + + ( 95 )
----
141

query I rowsort
SELECT ALL - 96 + + 44 - 85
----
-137

onlyif mysql # DIV for integer division: 
query II rowsort label-2967
SELECT 3 DIV 24, + 79 AS col1
----
0
79

skipif mysql # not compatible
query II rowsort label-2967
SELECT 3 / 24, + 79 AS col1
----
0
79

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2968
SELECT ALL - CASE - + CAST( 65 AS SIGNED ) WHEN - - 47 * + 24 + - CAST( + 65 AS SIGNED ) - - COALESCE ( CASE + 76 WHEN - + 28 THEN NULL WHEN - COUNT( * ) / + 42 * 47 * - NULLIF ( + + 59, + 63 ) THEN NULL ELSE + 41 END, + 39 ) THEN - + NULLIF ( 60, + - 18 ) WHEN + - 27 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-2968
SELECT ALL - CASE - + CAST ( 65 AS INTEGER ) WHEN - - 47 * + 24 + - CAST ( + 65 AS INTEGER ) - - COALESCE ( CASE + 76 WHEN - + 28 THEN NULL WHEN - COUNT ( * ) / + 42 * 47 * - NULLIF ( + + 59, + 63 ) THEN NULL ELSE + 41 END, + 39 ) THEN - + NULLIF ( 60, + - 18 ) WHEN + - 27 THEN NULL END
----
NULL

query I rowsort
SELECT 48 * 60 col1
----
2880

query II rowsort
SELECT DISTINCT - ( 85 ), 2 AS col0
----
-85
2

query I rowsort
SELECT ALL + NULLIF ( - - 44, + - 38 ) + 87 AS col1
----
131

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2972
SELECT DISTINCT - 78 + COALESCE ( + 68, - CAST( + - ( + + ( + 69 ) ) AS SIGNED ) * 22 * + 20, - ( - - 0 ) * - - 45 ) AS col2, + 59 AS col1
----
-10
59

skipif mysql # not compatible
query II rowsort label-2972
SELECT DISTINCT - 78 + COALESCE ( + 68, - CAST ( + - ( + + ( + 69 ) ) AS INTEGER ) * 22 * + 20, - ( - - 0 ) * - - 45 ) AS col2, + 59 AS col1
----
-10
59

onlyif mysql # aggregate syntax: 
query I rowsort label-2973
SELECT ALL ( 7 ) - - NULLIF ( + COUNT( * ), - + 57 ) AS col2
----
8

skipif mysql # not compatible
query I rowsort label-2973
SELECT ALL ( 7 ) - - NULLIF ( + COUNT ( * ), - + 57 ) AS col2
----
8

query II rowsort
SELECT DISTINCT - 33 - 44, - 14 AS col2
----
-77
-14

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2976
SELECT + 51 + MIN( ALL - 48 )
----
3

skipif mysql # not compatible
query I rowsort label-2976
SELECT + 51 + MIN ( ALL - 48 )
----
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2977
SELECT CASE - - 51 WHEN COUNT( * ) THEN + + 17 DIV - 69 + - + ( 28 ) + 41 DIV + ( + COALESCE ( 82, + - 56 ) ) DIV + - 65 + - 84 ELSE + 59 + 18 END + + ( + 24 )
----
101

skipif mysql # not compatible
query I rowsort label-2977
SELECT CASE - - 51 WHEN COUNT ( * ) THEN + + 17 / - 69 + - + ( 28 ) + 41 / + ( + COALESCE ( 82, + - 56 ) ) / + - 65 + - 84 ELSE + 59 + 18 END + + ( + 24 )
----
101

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2979
SELECT ALL ( - + 11 ), MIN( + 59 ) * - 77 * CAST( NULL AS SIGNED ) col2
----
-11
NULL

skipif mysql # not compatible
query II rowsort label-2979
SELECT ALL ( - + 11 ), MIN ( + 59 ) * - 77 * CAST ( NULL AS INTEGER ) col2
----
-11
NULL

query I rowsort
SELECT ALL 26 * + 5 AS col1
----
130

query I rowsort
SELECT DISTINCT + - 86 * + - 3 AS col0
----
258

query I rowsort
SELECT + NULLIF ( + 53, + 35 ) AS col2
----
53

query I rowsort
SELECT 19 + - 93
----
-74

query I rowsort
SELECT DISTINCT - + 73 * + 53 AS col1
----
-3869

onlyif mysql # DIV for integer division: 
query I rowsort label-2985
SELECT DISTINCT - 57 DIV - 72 * - + 86 DIV - 20 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-2985
SELECT DISTINCT - 57 / - 72 * - + 86 / - 20 AS col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2986
SELECT + COALESCE ( + + 7, SUM( - + CAST( NULL AS SIGNED ) ) ) AS col2
----
7

skipif mysql # not compatible
query I rowsort label-2986
SELECT + COALESCE ( + + 7, SUM ( - + CAST ( NULL AS INTEGER ) ) ) AS col2
----
7

onlyif mysql # DIV for integer division: 
query I rowsort label-2987
SELECT + + 18 DIV + 71 * - 91
----
0

skipif mysql # not compatible
query I rowsort label-2987
SELECT + + 18 / + 71 * - 91
----
0

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

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

query I rowsort
SELECT + 59 * 28 * + 16
----
26432

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

query I rowsort
SELECT + NULLIF ( - 2, + 5 )
----
-2

query II rowsort
SELECT 27 * + 57 - + 96 AS col1, 9
----
1443
9

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2993
SELECT DISTINCT - CAST( 28 AS SIGNED ) * - - 48, + 17 AS col2
----
-1344
17

skipif mysql # not compatible
query II rowsort label-2993
SELECT DISTINCT - CAST ( 28 AS INTEGER ) * - - 48, + 17 AS col2
----
-1344
17

query I rowsort
SELECT DISTINCT 9 * - ( - 31 ) + + 8
----
287

query I rowsort
SELECT + NULLIF ( 93, + 78 ) + - 63 * + 65
----
-4002

query I rowsort
SELECT - 55 * - 29
----
1595

onlyif mysql # aggregate syntax: 
query I rowsort label-2997
SELECT COALESCE ( - 92, - COUNT( * ) - ( 89 ), 91 )
----
-92

skipif mysql # not compatible
query I rowsort label-2997
SELECT COALESCE ( - 92, - COUNT ( * ) - ( 89 ), 91 )
----
-92

query I rowsort
SELECT 64 * + 73 + + + 39 AS col2
----
4711

query I rowsort
SELECT - 31 - + 84 AS col1
----
-115

query I rowsort
SELECT + 19 * - 72
----
-1368

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3002
SELECT + 95 + - COUNT( DISTINCT - 41 ) + - - 29 + - NULLIF ( 78, 77 ) + 36 AS col2
----
81

skipif mysql # not compatible
query I rowsort label-3002
SELECT + 95 + - COUNT ( DISTINCT - 41 ) + - - 29 + - NULLIF ( 78, 77 ) + 36 AS col2
----
81

onlyif mysql # aggregate syntax: 
query II rowsort label-3003
SELECT ALL + 92 * + COUNT( * ) * - 46 AS col2, + 52
----
-4232
52

skipif mysql # not compatible
query II rowsort label-3003
SELECT ALL + 92 * + COUNT ( * ) * - 46 AS col2, + 52
----
-4232
52

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3005
SELECT DISTINCT ( + 11 ) DIV 49 + - - COUNT( * ) + - 41 - + + 67 * - 41
----
2707

skipif mysql # not compatible
query I rowsort label-3005
SELECT DISTINCT ( + 11 ) / 49 + - - COUNT ( * ) + - 41 - + + 67 * - 41
----
2707

query I rowsort
SELECT ALL - 4 * + + 82 * ( + 89 ) AS col0
----
-29192

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3007
SELECT - - CAST( NULL AS DECIMAL ) + - + 42 + - 45 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3007
SELECT - - CAST ( NULL AS REAL ) + - + 42 + - 45 AS col0
----
NULL

query I rowsort
SELECT ALL + - 88 * - 61 + + - ( + AVG ( DISTINCT CASE - 73 WHEN - + ( - 0 ) - - 73 THEN 10 + + 86 END ) ) AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3009
SELECT + + 29 DIV - - ( + - 27 ) AS col2, + ( - NULLIF ( + 17, CAST( NULL AS SIGNED ) * 75 ) ) AS col2
----
-1
-17

skipif mysql # not compatible
query II rowsort label-3009
SELECT + + 29 / - - ( + - 27 ) AS col2, + ( - NULLIF ( + 17, CAST ( NULL AS INTEGER ) * 75 ) ) AS col2
----
-1
-17

query I rowsort
SELECT + 44 + + - 96 AS col0
----
-52

query I rowsort
SELECT - 18 + + + ( - 24 ) * - - 59
----
-1434

query I rowsort
SELECT ALL - 43 * - - 72 + + 27 col2
----
-3069

query II rowsort
SELECT 38 AS col1, 3 AS col2
----
38
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3014
SELECT ALL - + CASE 87 WHEN + 33 - + 28 * - 16 * - 3 * + ( - COUNT( * ) ) + COALESCE ( - - 96, + ( + 13 ) ) THEN - - 13 END * - 60
----
NULL

skipif mysql # not compatible
query I rowsort label-3014
SELECT ALL - + CASE 87 WHEN + 33 - + 28 * - 16 * - 3 * + ( - COUNT ( * ) ) + COALESCE ( - - 96, + ( + 13 ) ) THEN - - 13 END * - 60
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3015
SELECT - + ( - ( + 53 ) ) + - ( 11 ) + + - 72 + - 0 + 98 * - MIN( ALL - CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-3015
SELECT - + ( - ( + 53 ) ) + - ( 11 ) + + - 72 + - 0 + 98 * - MIN ( ALL - CAST ( NULL AS INTEGER ) )
----
NULL

query II rowsort
SELECT DISTINCT 29, 7 AS col2
----
29
7

query I rowsort
SELECT - 60 + - 83
----
-143

onlyif mysql # aggregate syntax: 
query I rowsort label-3018
SELECT + COUNT( * ) - + - 77 col2
----
78

skipif mysql # not compatible
query I rowsort label-3018
SELECT + COUNT ( * ) - + - 77 col2
----
78

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3020
SELECT + 86 + 22 - ( COUNT( DISTINCT + 6 ) ) DIV + - 87 AS col0
----
108

skipif mysql # not compatible
query I rowsort label-3020
SELECT + 86 + 22 - ( COUNT ( DISTINCT + 6 ) ) / + - 87 AS col0
----
108

query I rowsort
SELECT 40 * + 42 - 92 AS col1
----
1588

query I rowsort
SELECT DISTINCT + 50 * - 68
----
-3400

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3023
SELECT - CAST( - 24 AS SIGNED ) DIV 21
----
1

skipif mysql # not compatible
query I rowsort label-3023
SELECT - CAST ( - 24 AS INTEGER ) / 21
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-3024
SELECT - COUNT( * ) * + 21 * + 25 * + - 82 + - 80 - 36 * - 40 AS col0, + 19 AS col1
----
44410
19

skipif mysql # not compatible
query II rowsort label-3024
SELECT - COUNT ( * ) * + 21 * + 25 * + - 82 + - 80 - 36 * - 40 AS col0, + 19 AS col1
----
44410
19

query II rowsort
SELECT + ( - - 56 ), + 92 * + + 99 AS col0
----
56
9108

query I rowsort
SELECT - 26 * - 44 col1
----
1144

onlyif mysql # aggregate syntax: 
query I rowsort label-3027
SELECT + 8 + + - 7 - MAX( DISTINCT + 72 ) col0
----
-71

skipif mysql # not compatible
query I rowsort label-3027
SELECT + 8 + + - 7 - MAX ( DISTINCT + 72 ) col0
----
-71

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3028
SELECT + CASE 76 WHEN + CASE 24 WHEN + - 28 THEN - 9 + - 60 * - - 76 WHEN 44 * + - 68 * - 51 + - 8 THEN NULL ELSE - COUNT( * ) END + + + ( 82 ) THEN 71 ELSE + ( - CAST( NULL AS SIGNED ) ) / + 31 END AS col1, + 48 + - 47 AS col0
----
NULL
1

skipif mysql # not compatible
query II rowsort label-3028
SELECT + CASE 76 WHEN + CASE 24 WHEN + - 28 THEN - 9 + - 60 * - - 76 WHEN 44 * + - 68 * - 51 + - 8 THEN NULL ELSE - COUNT ( * ) END + + + ( 82 ) THEN 71 ELSE + ( - CAST ( NULL AS INTEGER ) ) / + 31 END AS col1, + 48 + - 47 AS col0
----
NULL
1

query I rowsort
SELECT + 96 * + 93 * 35 AS col0
----
312480

query I rowsort
SELECT + 60 * - 96 col0
----
-5760

query I rowsort
SELECT 58 * + 67 - - 42 AS col0
----
3928

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3032
SELECT + ( - 82 ) - SUM( - - 29 ) * - NULLIF ( 96, - - 54 + CAST( NULL AS SIGNED ) ) * - - 62
----
172526

skipif mysql # not compatible
query I rowsort label-3032
SELECT + ( - 82 ) - SUM ( - - 29 ) * - NULLIF ( 96, - - 54 + CAST ( NULL AS INTEGER ) ) * - - 62
----
172526

query I rowsort
SELECT + - 67 * 47
----
-3149

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3034
SELECT DISTINCT NULLIF ( 17, COUNT( * ) / - + 15 ) * - 96 * - + 84 * 69 * 71 * COUNT( DISTINCT 10 ) * - CAST( NULL AS SIGNED ) * - NULLIF ( - + 31, - NULLIF ( 74, + 28 ) ) * - - 48 + - + 47 * + NULLIF ( 30, + COUNT( * ) * - 43 * + 77 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3034
SELECT DISTINCT NULLIF ( 17, COUNT ( * ) / - + 15 ) * - 96 * - + 84 * 69 * 71 * COUNT ( DISTINCT 10 ) * - CAST ( NULL AS INTEGER ) * - NULLIF ( - + 31, - NULLIF ( 74, + 28 ) ) * - - 48 + - + 47 * + NULLIF ( 30, + COUNT ( * ) * - 43 * + 77 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3035
SELECT + COUNT( ALL - 40 ) * - + 62 * ( + NULLIF ( - 63, - - 99 ) ) - 53
----
3853

skipif mysql # not compatible
query I rowsort label-3035
SELECT + COUNT ( ALL - 40 ) * - + 62 * ( + NULLIF ( - 63, - - 99 ) ) - 53
----
3853

query I rowsort
SELECT DISTINCT - ( 37 ) * 6 + + - 71 - 89
----
-382

onlyif mysql # DIV for integer division: 
query I rowsort label-3037
SELECT - 5 DIV + 32
----
0

skipif mysql # not compatible
query I rowsort label-3037
SELECT - 5 / + 32
----
0

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3039
SELECT + COUNT( * ) + + 78 * - 24 * + 42 AS col0, 29 - CAST( NULL AS SIGNED ) AS col0
----
-78623
NULL

skipif mysql # not compatible
query II rowsort label-3039
SELECT + COUNT ( * ) + + 78 * - 24 * + 42 AS col0, 29 - CAST ( NULL AS INTEGER ) AS col0
----
-78623
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3040
SELECT ALL - - 43 + - SUM( ALL + 2 ) AS col0
----
41

skipif mysql # not compatible
query I rowsort label-3040
SELECT ALL - - 43 + - SUM ( ALL + 2 ) AS col0
----
41

onlyif mysql # aggregate syntax: 
query II rowsort label-3041
SELECT - + COALESCE ( COUNT( * ), - 36, 96 + + 16 ), + 87 * - COUNT( * ) + + 30 AS col1
----
-1
-57

skipif mysql # not compatible
query II rowsort label-3041
SELECT - + COALESCE ( COUNT ( * ), - 36, 96 + + 16 ), + 87 * - COUNT ( * ) + + 30 AS col1
----
-1
-57

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3042
SELECT DISTINCT + 81 + - 61 + + - 31 * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3042
SELECT DISTINCT + 81 + - 61 + + - 31 * CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT 7 + - - 82 col0
----
89

query I rowsort
SELECT DISTINCT - 82 + - 45 * - - CASE + 78 WHEN - 71 THEN 62 ELSE - 22 END AS col0
----
908

query I rowsort
SELECT 94 - - + 37 AS col0
----
131

query I rowsort
SELECT 97 * - 9
----
-873

onlyif mysql # aggregate syntax: 
query I rowsort label-3047
SELECT 3 + + NULLIF ( + - COUNT( ALL - 11 ), + 30 ) + - - COUNT( * ) AS col2
----
3

skipif mysql # not compatible
query I rowsort label-3047
SELECT 3 + + NULLIF ( + - COUNT ( ALL - 11 ), + 30 ) + - - COUNT ( * ) AS col2
----
3

query I rowsort
SELECT NULLIF ( + - 39, 18 * + 17 / + 43 ) * - 1
----
39

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3049
SELECT DISTINCT + NULLIF ( - 47, - + AVG ( DISTINCT + 42 ) ) * + + CASE - 26 WHEN 43 + 86 THEN + 86 * + + ( - NULLIF ( - 68, + - 45 * 13 ) ) * - + ( + 51 ) * 75 / + + 35 + 5 + - - 50 * + 81 / - + 69 - - - COALESCE ( 62, - + 35 ) * - ( - CASE - 92 WHEN 87 + - + CAST( NULL AS SIGNED ) THEN + + COUNT( * ) END ) + - 92 * 36 ELSE NULL END * - 2 + - 17 - 75 + - 19
----
NULL

skipif mysql # not compatible
query I rowsort label-3049
SELECT DISTINCT + NULLIF ( - 47, - + AVG ( DISTINCT + 42 ) ) * + + CASE - 26 WHEN 43 + 86 THEN + 86 * + + ( - NULLIF ( - 68, + - 45 * 13 ) ) * - + ( + 51 ) * 75 / + + 35 + 5 + - - 50 * + 81 / - + 69 - - - COALESCE ( 62, - + 35 ) * - ( - CASE - 92 WHEN 87 + - + CAST ( NULL AS INTEGER ) THEN + + COUNT ( * ) END ) + - 92 * 36 ELSE NULL END * - 2 + - 17 - 75 + - 19
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3050
SELECT DISTINCT - MAX( ALL + 44 )
----
-44

skipif mysql # not compatible
query I rowsort label-3050
SELECT DISTINCT - MAX ( ALL + 44 )
----
-44

query I rowsort
SELECT 28 - - 73 * 14 + - 77 * - + 89 - + 2
----
7901

onlyif mysql # aggregate syntax: 
query I rowsort label-3052
SELECT ALL - SUM( DISTINCT + 55 ) AS col1
----
-55

skipif mysql # not compatible
query I rowsort label-3052
SELECT ALL - SUM ( DISTINCT + 55 ) AS col1
----
-55

query I rowsort
SELECT DISTINCT - 19 * + 35 AS col0
----
-665

onlyif mysql # aggregate syntax: 
query I rowsort label-3054
SELECT ALL - NULLIF ( + 92, - - 32 * - 74 / + 26 * + + 71 ) * 44 * - + COUNT( * ) + + NULLIF ( + 0, 52 ) - 49 AS col1
----
3999

skipif mysql # not compatible
query I rowsort label-3054
SELECT ALL - NULLIF ( + 92, - - 32 * - 74 / + 26 * + + 71 ) * 44 * - + COUNT ( * ) + + NULLIF ( + 0, 52 ) - 49 AS col1
----
3999

onlyif mysql # aggregate syntax: 
query I rowsort label-3055
SELECT 18 + + SUM( DISTINCT 76 ) + NULLIF ( + + 60, COALESCE ( + 43, ( - + 10 ) ) ) + - 21 + + - COUNT( * ) * - 65 * 44
----
2993

skipif mysql # not compatible
query I rowsort label-3055
SELECT 18 + + SUM ( DISTINCT 76 ) + NULLIF ( + + 60, COALESCE ( + 43, ( - + 10 ) ) ) + - 21 + + - COUNT ( * ) * - 65 * 44
----
2993

onlyif mysql # DIV for integer division: 
query I rowsort label-3056
SELECT 54 DIV - + 42 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-3056
SELECT 54 / - + 42 AS col0
----
-1

query I rowsort
SELECT 28 + + 30 AS col1
----
58

onlyif mysql # DIV for integer division: 
query I rowsort label-3058
SELECT 67 DIV - 51
----
-1

skipif mysql # not compatible
query I rowsort label-3058
SELECT 67 / - 51
----
-1

query I rowsort
SELECT 99 - 42 AS col0
----
57

query I rowsort
SELECT - 25 * + 25 + - 89
----
-714

onlyif mysql # aggregate syntax: 
query I rowsort label-3061
SELECT + 17 * - - 64 - - 5 + + 80 + + + 5 * + - 50 * - 39 / + - 78 * + - CASE + + 17 WHEN - - SUM( ALL + 64 ) THEN 41 + COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-3061
SELECT + 17 * - - 64 - - 5 + + 80 + + + 5 * + - 50 * - 39 / + - 78 * + - CASE + + 17 WHEN - - SUM ( ALL + 64 ) THEN 41 + COUNT ( * ) END
----
NULL

query I rowsort
SELECT 79 + - CASE + 38 WHEN + 86 / + 29 + + + 11 + - - 93 THEN + 15 ELSE NULL END + 19 AS col0
----
NULL

query I rowsort
SELECT ALL + - 42 + - + NULLIF ( 60, 68 ) + + - 87
----
-189

query I rowsort
SELECT DISTINCT - 24 + + 12
----
-12

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3065
SELECT ALL + ( + - 41 ) * - CAST( NULL AS SIGNED ) + - + 89 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3065
SELECT ALL + ( + - 41 ) * - CAST ( NULL AS INTEGER ) + - + 89 AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3066
SELECT ( + 88 ) + + - 35 + + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3066
SELECT ( + 88 ) + + - 35 + + - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3067
SELECT ( - CASE - + 39 WHEN - 76 THEN NULL WHEN + AVG ( ALL + 88 ) THEN NULL WHEN - - 16 THEN - - COALESCE ( + + 2, - - 74 ) ELSE NULL END ) + + 43, - ( + CASE - + ( - 60 ) WHEN 3 * - 10 * - - 34 * - 1 THEN COALESCE ( - 86, + ( - MIN( + - 80 ) ) / 42 ) END ) AS col1
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-3067
SELECT ( - CASE - + 39 WHEN - 76 THEN NULL WHEN + AVG ( ALL + 88 ) THEN NULL WHEN - - 16 THEN - - COALESCE ( + + 2, - - 74 ) ELSE NULL END ) + + 43, - ( + CASE - + ( - 60 ) WHEN 3 * - 10 * - - 34 * - 1 THEN COALESCE ( - 86, + ( - MIN ( + - 80 ) ) / 42 ) END ) AS col1
----
NULL
NULL

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3069
SELECT DISTINCT - 17 DIV - 86 - + COUNT( * ) AS col1
----
-1

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

query I rowsort
SELECT 4 + 39 * + 5
----
199

onlyif mysql # aggregate syntax: 
query I rowsort label-3071
SELECT DISTINCT + COUNT( * ) + - 35
----
-34

skipif mysql # not compatible
query I rowsort label-3071
SELECT DISTINCT + COUNT ( * ) + - 35
----
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-3072
SELECT ALL COUNT( * ) - 39
----
-38

skipif mysql # not compatible
query I rowsort label-3072
SELECT ALL COUNT ( * ) - 39
----
-38

query II rowsort
SELECT 32 * 22, 97 * + 42 * 93 AS col0
----
704
378882

query I rowsort
SELECT ALL - 5 * - - 92
----
-460

query I rowsort
SELECT 3 + - 44 AS col2
----
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-3076
SELECT 48 + MIN( + - 29 ) col2
----
19

skipif mysql # not compatible
query I rowsort label-3076
SELECT 48 + MIN ( + - 29 ) col2
----
19

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-3078
SELECT ALL 42 AS col0, 91 DIV - 53 AS col0
----
42
-1

skipif mysql # not compatible
query II rowsort label-3078
SELECT ALL 42 AS col0, 91 / - 53 AS col0
----
42
-1

query I rowsort
SELECT DISTINCT ( - 3 ) * + 93 AS col2
----
-279

query I rowsort
SELECT 32 * + + 12
----
384

query I rowsort
SELECT 38 + - - 30 + + 65 * + - 31
----
-1947

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3082
SELECT ALL CAST( - + CASE + 81 WHEN - - AVG ( ALL 77 ) THEN + 94 ELSE NULL END AS SIGNED ) * + 79
----
NULL

skipif mysql # not compatible
query I rowsort label-3082
SELECT ALL CAST ( - + CASE + 81 WHEN - - AVG ( ALL 77 ) THEN + 94 ELSE NULL END AS INTEGER ) * + 79
----
NULL

query I rowsort
SELECT 57 * 0 AS col1
----
0

query I rowsort
SELECT 33 * - 51 + 29 - + 20 * + 66
----
-2974

onlyif mysql # aggregate syntax: 
query I rowsort label-3085
SELECT ALL - NULLIF ( - 36, - COUNT( * ) - + + ( 26 ) ) AS col0
----
36

skipif mysql # not compatible
query I rowsort label-3085
SELECT ALL - NULLIF ( - 36, - COUNT ( * ) - + + ( 26 ) ) AS col0
----
36

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3086
SELECT 47 * - + COUNT( ALL - CAST( + + 49 AS DECIMAL ) )
----
-47

skipif mysql # not compatible
query I rowsort label-3086
SELECT 47 * - + COUNT ( ALL - CAST ( + + 49 AS REAL ) )
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-3087
SELECT ALL - + MIN( + 80 ) * + 36 AS col2
----
-2880

skipif mysql # not compatible
query I rowsort label-3087
SELECT ALL - + MIN ( + 80 ) * + 36 AS col2
----
-2880

onlyif mysql # aggregate syntax: 
query I rowsort label-3088
SELECT DISTINCT - 70 * - - COUNT( * ) * + MIN( ALL - 80 ) + - ( 15 ) + - 62
----
5523

skipif mysql # not compatible
query I rowsort label-3088
SELECT DISTINCT - 70 * - - COUNT ( * ) * + MIN ( ALL - 80 ) + - ( 15 ) + - 62
----
5523

query I rowsort
SELECT 94 * - + 21 * - 38 - + 86 * + 33 + + + 5 AS col1
----
72179

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3090
SELECT ALL 77 * + NULLIF ( + 75, + 89 * CAST( NULL AS SIGNED ) + COUNT( * ) * - + 5 - + ( + 34 ) - - 65 ) * + - 75 + + COUNT( * ) * + - 29 col2
----
-433154

skipif mysql # not compatible
query I rowsort label-3090
SELECT ALL 77 * + NULLIF ( + 75, + 89 * CAST ( NULL AS INTEGER ) + COUNT ( * ) * - + 5 - + ( + 34 ) - - 65 ) * + - 75 + + COUNT ( * ) * + - 29 col2
----
-433154

onlyif mysql # aggregate syntax: 
query I rowsort label-3091
SELECT + NULLIF ( + 24, 76 / - CASE - MIN( ALL + 2 ) WHEN - 84 * COUNT( * ) + + + 70 * - + 72 * + + 68 THEN + COUNT( * ) - - 93 * + 7 / 90 * + 32 END ) AS col0
----
24

skipif mysql # not compatible
query I rowsort label-3091
SELECT + NULLIF ( + 24, 76 / - CASE - MIN ( ALL + 2 ) WHEN - 84 * COUNT ( * ) + + + 70 * - + 72 * + + 68 THEN + COUNT ( * ) - - 93 * + 7 / 90 * + 32 END ) AS col0
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-3092
SELECT + SUM( ALL 51 ) AS col1
----
51

skipif mysql # not compatible
query I rowsort label-3092
SELECT + SUM ( ALL 51 ) AS col1
----
51

query I rowsort
SELECT + 93 * - + 52 - - 12 col0
----
-4824

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3094
SELECT + - 35 * + 15 DIV - 15 - - 41 + COUNT( * ) AS col0
----
77

skipif mysql # not compatible
query I rowsort label-3094
SELECT + - 35 * + 15 / - 15 - - 41 + COUNT ( * ) AS col0
----
77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3095
SELECT ALL + CASE + 13 WHEN + ( - - 3 ) - CAST( NULL AS SIGNED ) * - 24 + + 59 THEN NULL WHEN + CASE + 71 WHEN - COUNT( * ) * COUNT( * ) + + + 44 THEN + COUNT( * ) ELSE 66 + + 47 END THEN + CAST( NULL AS SIGNED ) + + 84 / - COUNT( * ) END + 41 col0, 0 AS col1
----
NULL
0

skipif mysql # not compatible
query II rowsort label-3095
SELECT ALL + CASE + 13 WHEN + ( - - 3 ) - CAST ( NULL AS INTEGER ) * - 24 + + 59 THEN NULL WHEN + CASE + 71 WHEN - COUNT ( * ) * COUNT ( * ) + + + 44 THEN + COUNT ( * ) ELSE 66 + + 47 END THEN + CAST ( NULL AS INTEGER ) + + 84 / - COUNT ( * ) END + 41 col0, 0 AS col1
----
NULL
0

query I rowsort
SELECT - - 65 - 99 col1
----
-34

query II rowsort
SELECT + 53 AS col2, 71 * + 50 col2
----
53
3550

query II rowsort
SELECT - 76 AS col2, 23 AS col0
----
-76
23

onlyif mysql # aggregate syntax: 
query I rowsort label-3099
SELECT ALL 84 + + COUNT( * ) + NULLIF ( + 74, - 21 + - 17 )
----
159

skipif mysql # not compatible
query I rowsort label-3099
SELECT ALL 84 + + COUNT ( * ) + NULLIF ( + 74, - 21 + - 17 )
----
159

onlyif mysql # aggregate syntax: 
query III rowsort label-3100
SELECT - 54 * + 10 * - MIN( DISTINCT 60 ) * 85 + + 53 AS col2, 55 * - 2 + + 95 - 97 * 90 + - COUNT( * ) * 10 * - 53, - 44 + + - 41 col0
----
2754053
-8215
-85

skipif mysql # not compatible
query III rowsort label-3100
SELECT - 54 * + 10 * - MIN ( DISTINCT 60 ) * 85 + + 53 AS col2, 55 * - 2 + + 95 - 97 * 90 + - COUNT ( * ) * 10 * - 53, - 44 + + - 41 col0
----
2754053
-8215
-85

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3101
SELECT ALL + 68 DIV - + 18 + + 21 + + 81 + + 66 - SUM( DISTINCT 85 ) * + - 77
----
6710

skipif mysql # not compatible
query I rowsort label-3101
SELECT ALL + 68 / - + 18 + + 21 + + 81 + + 66 - SUM ( DISTINCT 85 ) * + - 77
----
6710

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3102
SELECT ALL - + 22 + 6 DIV - - 10 * COUNT( * )
----
-22

skipif mysql # not compatible
query I rowsort label-3102
SELECT ALL - + 22 + 6 / - - 10 * COUNT ( * )
----
-22

query I rowsort
SELECT DISTINCT + + 59 + + COALESCE ( 33, - - 7 )
----
92

query I rowsort
SELECT ALL + 88 * - + 34 * - 15 * + - 66 * 37 + + - 66 AS col1
----
-109597026

query I rowsort
SELECT DISTINCT - 77 - 59 AS col1
----
-136

query I rowsort
SELECT + 94 - - 84 AS col0
----
178

query I rowsort
SELECT ALL 45 * 32
----
1440

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

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

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

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

query I rowsort
SELECT ALL - 37 * 51 AS col0
----
-1887

onlyif mysql # DIV for integer division: 
query I rowsort label-3111
SELECT + 55 DIV 90 * + + 62 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3111
SELECT + 55 / 90 * + + 62 AS col2
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-3112
SELECT ALL 67 DIV + 26 AS col1, 88 AS col0
----
2
88

skipif mysql # not compatible
query II rowsort label-3112
SELECT ALL 67 / + 26 AS col1, 88 AS col0
----
2
88

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3114
SELECT + 19 DIV - 33, + 18 + COUNT( * ) AS col1
----
0
19

skipif mysql # not compatible
query II rowsort label-3114
SELECT + 19 / - 33, + 18 + COUNT ( * ) AS col1
----
0
19

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3115
SELECT - COUNT( * ) DIV - COALESCE ( - 21, + - COUNT( * ) )
----
0

skipif mysql # not compatible
query I rowsort label-3115
SELECT - COUNT ( * ) / - COALESCE ( - 21, + - COUNT ( * ) )
----
0

query I rowsort
SELECT + 37 + - 51 + - 79 + - 78 * - 33 * - 0 - + - 24 + + 37 AS col0
----
-32

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

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

query I rowsort
SELECT + 13 + 21 - 29 col0
----
5

query I rowsort
SELECT ALL 25 * - 74 AS col1
----
-1850

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3120
SELECT + AVG ( + 96 ) / - - 55 * + CAST( NULL AS DECIMAL ) + - - 42 + + + COUNT( + - 16 ) - 72 + 30 * + 16 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3120
SELECT + AVG ( + 96 ) / - - 55 * + CAST ( NULL AS REAL ) + - - 42 + + + COUNT ( + - 16 ) - 72 + 30 * + 16 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3121
SELECT ALL + 2 / + + CAST( NULL AS SIGNED ) * - + COUNT( * ) + + CASE COUNT( * ) WHEN + 76 THEN + + SUM( DISTINCT 97 ) * CAST( - 74 AS SIGNED ) + + - 72 + + 17 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3121
SELECT ALL + 2 / + + CAST ( NULL AS INTEGER ) * - + COUNT ( * ) + + CASE COUNT ( * ) WHEN + 76 THEN + + SUM ( DISTINCT 97 ) * CAST ( - 74 AS INTEGER ) + + - 72 + + 17 END AS col1
----
NULL

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3123
SELECT ALL + 52 DIV - 31 + + 81 * + - 18 DIV - COUNT( * )
----
1457

skipif mysql # not compatible
query I rowsort label-3123
SELECT ALL + 52 / - 31 + + 81 * + - 18 / - COUNT ( * )
----
1457

onlyif mysql # aggregate syntax: 
query I rowsort label-3124
SELECT ALL + CASE + 51 WHEN - + 10 THEN 21 * 38 + - + 8 WHEN - + COUNT( * ) + - - 56 THEN + - COUNT( * ) * + 63 + + 3 END * - 77 / + 42
----
NULL

skipif mysql # not compatible
query I rowsort label-3124
SELECT ALL + CASE + 51 WHEN - + 10 THEN 21 * 38 + - + 8 WHEN - + COUNT ( * ) + - - 56 THEN + - COUNT ( * ) * + 63 + + 3 END * - 77 / + 42
----
NULL

query I rowsort
SELECT + - 30 * + 59 + + 98
----
-1672

onlyif mysql # aggregate syntax: 
query I rowsort label-3126
SELECT ALL 37 * - - 40 * + 1 + 65 + + - COUNT( ALL 7 ) + - 90 * - 24
----
3704

skipif mysql # not compatible
query I rowsort label-3126
SELECT ALL 37 * - - 40 * + 1 + 65 + + - COUNT ( ALL 7 ) + - 90 * - 24
----
3704

onlyif mysql # aggregate syntax: 
query I rowsort label-3127
SELECT DISTINCT 10 * + ( + MIN( DISTINCT - + ( - 8 ) ) ) AS col1
----
80

skipif mysql # not compatible
query I rowsort label-3127
SELECT DISTINCT 10 * + ( + MIN ( DISTINCT - + ( - 8 ) ) ) AS col1
----
80

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3128
SELECT + + CAST( NULL AS SIGNED ) + - + NULLIF ( + 30, 28 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3128
SELECT + + CAST ( NULL AS INTEGER ) + - + NULLIF ( + 30, 28 ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3129
SELECT + 2 + + - COALESCE ( - ( 8 ), + 19, + + 24 + COUNT( * ) ) - 41 + - + 99 * - COUNT( * )
----
68

skipif mysql # not compatible
query I rowsort label-3129
SELECT + 2 + + - COALESCE ( - ( 8 ), + 19, + + 24 + COUNT ( * ) ) - 41 + - + 99 * - COUNT ( * )
----
68

onlyif mysql # aggregate syntax: 
query III rowsort label-3130
SELECT - 85 - + - 15 * + 95, + MAX( 15 ) AS col2, + 99 AS col2
----
1340
15
99

skipif mysql # not compatible
query III rowsort label-3130
SELECT - 85 - + - 15 * + 95, + MAX ( 15 ) AS col2, + 99 AS col2
----
1340
15
99

query I rowsort
SELECT - 29 + - + 99
----
-128

onlyif mysql # aggregate syntax: 
query I rowsort label-3132
SELECT + - CASE - - 5 WHEN + ( 59 ) THEN + 59 ELSE - COUNT( * ) * - 50 END col2
----
-50

skipif mysql # not compatible
query I rowsort label-3132
SELECT + - CASE - - 5 WHEN + ( 59 ) THEN + 59 ELSE - COUNT ( * ) * - 50 END col2
----
-50

onlyif mysql # DIV for integer division: 
query I rowsort label-3133
SELECT ALL - 39 DIV - - 84 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3133
SELECT ALL - 39 / - - 84 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3134
SELECT DISTINCT 20 * + 69 + 75 - COUNT( * )
----
1454

skipif mysql # not compatible
query I rowsort label-3134
SELECT DISTINCT 20 * + 69 + 75 - COUNT ( * )
----
1454

query I rowsort
SELECT ALL + 23 * + 33 + 85
----
844

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3136
SELECT ALL 70 * - 18 - - - 77 * 51 * - 21 - - COUNT( DISTINCT CAST( + 21 AS SIGNED ) ) + + + 11 AS col2
----
81219

skipif mysql # not compatible
query I rowsort label-3136
SELECT ALL 70 * - 18 - - - 77 * 51 * - 21 - - COUNT ( DISTINCT CAST ( + 21 AS INTEGER ) ) + + + 11 AS col2
----
81219

query I rowsort
SELECT - + 68 * + - 33 * - 33 + NULLIF ( + + 50, - - 85 )
----
-74002

onlyif mysql # aggregate syntax: 
query II rowsort label-3138
SELECT - 87 * + COUNT( * ), + COUNT( + 62 ) + + 50 * - + 67 col0
----
-87
-3349

skipif mysql # not compatible
query II rowsort label-3138
SELECT - 87 * + COUNT ( * ), + COUNT ( + 62 ) + + 50 * - + 67 col0
----
-87
-3349

query I rowsort
SELECT - 31 * + + 0 * + - 43 * - + 81 + + 90 + 93
----
183

query I rowsort
SELECT - 27 + 25 AS col0
----
-2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3141
SELECT + AVG ( + 40 ) + CASE + - COUNT( * ) WHEN - + 6 * + 15 THEN + COUNT( * ) WHEN CASE 32 WHEN - - CASE - 9 WHEN - 4 * + + CAST( NULL AS SIGNED ) + + 78 / + 40 * + - 47 THEN NULL ELSE COUNT( DISTINCT + 78 ) END THEN NULL WHEN NULLIF ( 22, - 46 + - + ( + 39 ) - - 80 ) THEN - 95 WHEN 63 THEN + - 33 END * - ( + - CASE + COUNT( * ) WHEN + CASE + + 90 WHEN - 60 THEN 96 WHEN + COUNT( * ) + COUNT( * ) + + + 11 THEN 77 ELSE NULL END + + 19 + CAST( NULL AS SIGNED ) / + COALESCE ( - 0, - 14 * NULLIF ( + 56, 2 ) ) * + 5 THEN + 62 END ) + + 5 THEN NULL END / 22 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3141
SELECT + AVG ( + 40 ) + CASE + - COUNT ( * ) WHEN - + 6 * + 15 THEN + COUNT ( * ) WHEN CASE 32 WHEN - - CASE - 9 WHEN - 4 * + + CAST ( NULL AS INTEGER ) + + 78 / + 40 * + - 47 THEN NULL ELSE COUNT ( DISTINCT + 78 ) END THEN NULL WHEN NULLIF ( 22, - 46 + - + ( + 39 ) - - 80 ) THEN - 95 WHEN 63 THEN + - 33 END * - ( + - CASE + COUNT ( * ) WHEN + CASE + + 90 WHEN - 60 THEN 96 WHEN + COUNT ( * ) + COUNT ( * ) + + + 11 THEN 77 ELSE NULL END + + 19 + CAST ( NULL AS INTEGER ) / + COALESCE ( - 0, - 14 * NULLIF ( + 56, 2 ) ) * + 5 THEN + 62 END ) + + 5 THEN NULL END / 22 AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3142
SELECT ALL + CAST( - 35 AS SIGNED ) DIV 30 * + COUNT( * ) * - 93 + + + 85 + + 61 AS col1
----
239

skipif mysql # not compatible
query I rowsort label-3142
SELECT ALL + CAST ( - 35 AS INTEGER ) / 30 * + COUNT ( * ) * - 93 + + + 85 + + 61 AS col1
----
239

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-3144
SELECT COUNT( * ) AS col0, + 99 * + 95 + 91
----
1
9496

skipif mysql # not compatible
query II rowsort label-3144
SELECT COUNT ( * ) AS col0, + 99 * + 95 + 91
----
1
9496

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3145
SELECT ALL CAST( 56 AS SIGNED ) AS col1
----
56

skipif mysql # not compatible
query I rowsort label-3145
SELECT ALL CAST ( 56 AS INTEGER ) AS col1
----
56

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

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

skipif mysql # not compatible
query II rowsort label-3147
SELECT ALL CAST ( NULL AS INTEGER ), 92 AS col1
----
NULL
92

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3148
SELECT + 49 + + NULLIF ( - - COALESCE ( + - 22, 23 + + SUM( ALL 44 ) DIV + 59, - - 30 ), + 80 * + - 2 + 16 )
----
27

skipif mysql # not compatible
query I rowsort label-3148
SELECT + 49 + + NULLIF ( - - COALESCE ( + - 22, 23 + + SUM ( ALL 44 ) / + 59, - - 30 ), + 80 * + - 2 + 16 )
----
27

query I rowsort
SELECT - 61 + + - 36
----
-97

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

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

query I rowsort
SELECT - 37 + + 63
----
26

query I rowsort
SELECT - 13 * + 16 * + - 29
----
6032

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

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

query I rowsort
SELECT ALL 25 + 53 - - 18 * - - 74
----
1410

query I rowsort
SELECT - NULLIF ( - + 98, + + 28 * - - 72 * + 23 )
----
98

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3157
SELECT DISTINCT + CASE 43 WHEN + - 96 THEN 2 * + + 22 + - COUNT( * ) END + CAST( + + ( - 14 ) AS SIGNED ) + 10
----
NULL

skipif mysql # not compatible
query I rowsort label-3157
SELECT DISTINCT + CASE 43 WHEN + - 96 THEN 2 * + + 22 + - COUNT ( * ) END + CAST ( + + ( - 14 ) AS INTEGER ) + 10
----
NULL

query I rowsort
SELECT - ( + - 33 ) col0
----
33

query I rowsort
SELECT ALL 78 + NULLIF ( 96, - 75 )
----
174

query I rowsort
SELECT 72 + + + 75 AS col1
----
147

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3162
SELECT - 42 * + + 71 + 39 col2, 92 + - + CAST( NULL AS SIGNED ) AS col0
----
-2943
NULL

skipif mysql # not compatible
query II rowsort label-3162
SELECT - 42 * + + 71 + 39 col2, 92 + - + CAST ( NULL AS INTEGER ) AS col0
----
-2943
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3163
SELECT ALL ( 63 ) + - 16 - 91, 46 * COUNT( * ) AS col0
----
-44
46

skipif mysql # not compatible
query II rowsort label-3163
SELECT ALL ( 63 ) + - 16 - 91, 46 * COUNT ( * ) AS col0
----
-44
46

query II rowsort
SELECT NULLIF ( - + 34, 12 * - 23 * + + 85 + - ( ( + 41 ) ) ) AS col1, - 89
----
-34
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-3165
SELECT - MIN( 51 ) AS col0
----
-51

skipif mysql # not compatible
query I rowsort label-3165
SELECT - MIN ( 51 ) AS col0
----
-51

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

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3168
SELECT DISTINCT + 1 DIV - - COALESCE ( 59, 98, - COUNT( * ) * + 99 + - 40 * - 13 * - + 64 ) col0
----
0

skipif mysql # not compatible
query I rowsort label-3168
SELECT DISTINCT + 1 / - - COALESCE ( 59, 98, - COUNT ( * ) * + 99 + - 40 * - 13 * - + 64 ) col0
----
0

query II rowsort
SELECT DISTINCT 87 - + 8 * 63 AS col0, - 27
----
-417
-27

query I rowsort
SELECT - 27 * + ( - + 35 ) AS col0
----
945

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3171
SELECT DISTINCT 1 - 32 + CAST( NULL AS SIGNED ) * + + 23 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3171
SELECT DISTINCT 1 - 32 + CAST ( NULL AS INTEGER ) * + + 23 AS col0
----
NULL

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

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

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

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

query I rowsort
SELECT DISTINCT - + NULLIF ( - 68, 8 )
----
68

query I rowsort
SELECT 97 * 23 - + 21 AS col0
----
2210

query I rowsort
SELECT + 46 * 88 - 6
----
4042

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

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

query III rowsort
SELECT 51 + - - ( + 84 ) AS col0, 35, + - 38 col0
----
135
35
-38

query II rowsort
SELECT ALL - 38 AS col2, + 57
----
-38
57

onlyif mysql # DIV for integer division: 
query I rowsort label-3180
SELECT 22 DIV - - 44 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3180
SELECT 22 / - - 44 AS col1
----
0

query I rowsort
SELECT DISTINCT + 92 * + 96
----
8832

onlyif mysql # DIV for integer division: 
query I rowsort label-3182
SELECT 38 DIV - 20 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-3182
SELECT 38 / - 20 AS col1
----
-1

query I rowsort
SELECT DISTINCT + 29 + - 53
----
-24

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3184
SELECT DISTINCT 71 * SUM( ALL 85 ) * - - CAST( NULL AS DECIMAL ) + ( - 18 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3184
SELECT DISTINCT 71 * SUM ( ALL 85 ) * - - CAST ( NULL AS REAL ) + ( - 18 )
----
NULL

query I rowsort
SELECT 53 + - 51 * + - 9
----
512

query I rowsort
SELECT + 40 * + ( + 26 ) AS col2
----
1040

query I rowsort
SELECT 25 + + 61 * + - 28
----
-1683

onlyif mysql # DIV for integer division: 
query I rowsort label-3188
SELECT DISTINCT - - 28 - + 4 DIV 34 + 48 AS col0
----
76

skipif mysql # not compatible
query I rowsort label-3188
SELECT DISTINCT - - 28 - + 4 / 34 + 48 AS col0
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-3189
SELECT DISTINCT + SUM( + 2 ) * - 95 col0
----
-190

skipif mysql # not compatible
query I rowsort label-3189
SELECT DISTINCT + SUM ( + 2 ) * - 95 col0
----
-190

query I rowsort
SELECT ALL - ( - - 46 ) col2
----
-46

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3191
SELECT 37 / CASE - + SUM( ALL - + 68 ) WHEN + 88 + - ( - 75 ) THEN + 26 * + + 20 END * + COUNT( * ) + + 96 + - 89 * + - MIN( ALL 69 ) * - - 93 - + + 47 * 69 - CASE CASE COUNT( * ) WHEN - COALESCE ( 61, + 94, + 39 + 87 ) + + 78 THEN + CAST( - 7 AS DECIMAL ) END WHEN 71 * + AVG ( ALL 81 ) THEN - + 15 * - + COUNT( * ) / 50 WHEN - ( + - 14 ) * - 81 THEN - 48 * - CASE CASE - + 88 WHEN 97 / - + COUNT( * ) / + 93 THEN NULL WHEN 3 + 24 THEN NULL WHEN - 68 THEN 68 * 24 + - 6 WHEN 48 * 96 THEN 99 ELSE NULL END WHEN - 7 THEN CAST( MIN( ALL + 21 ) AS SIGNED ) + 8 WHEN - 12 * 36 + AVG ( 31 + - 56 * 19 ) * - 13 THEN 25 + + ( 41 ) WHEN - 58 THEN 37 - 52 ELSE NULL END END + 70 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3191
SELECT 37 / CASE - + SUM ( ALL - + 68 ) WHEN + 88 + - ( - 75 ) THEN + 26 * + + 20 END * + COUNT ( * ) + + 96 + - 89 * + - MIN ( ALL 69 ) * - - 93 - + + 47 * 69 - CASE CASE COUNT ( * ) WHEN - COALESCE ( 61, + 94, + 39 + 87 ) + + 78 THEN + CAST ( - 7 AS REAL ) END WHEN 71 * + AVG ( ALL 81 ) THEN - + 15 * - + COUNT ( * ) / 50 WHEN - ( + - 14 ) * - 81 THEN - 48 * - CASE CASE - + 88 WHEN 97 / - + COUNT ( * ) / + 93 THEN NULL WHEN 3 + 24 THEN NULL WHEN - 68 THEN 68 * 24 + - 6 WHEN 48 * 96 THEN 99 ELSE NULL END WHEN - 7 THEN CAST ( MIN ( ALL + 21 ) AS INTEGER ) + 8 WHEN - 12 * 36 + AVG ( 31 + - 56 * 19 ) * - 13 THEN 25 + + ( 41 ) WHEN - 58 THEN 37 - 52 ELSE NULL END END + 70 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3192
SELECT ALL - - NULLIF ( - 92, + - COUNT( * ) ) AS col1
----
-92

skipif mysql # not compatible
query I rowsort label-3192
SELECT ALL - - NULLIF ( - 92, + - COUNT ( * ) ) AS col1
----
-92

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

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

query I rowsort
SELECT 51 * 37 + + + 55 * - 40 - - - 35 AS col0
----
-348

query I rowsort
SELECT ALL - 40 * - + 13 AS col2
----
520

onlyif mysql # aggregate syntax: 
query I rowsort label-3196
SELECT NULLIF ( + COUNT( * ), + + 62 ) * + - 63 * + + 26
----
-1638

skipif mysql # not compatible
query I rowsort label-3196
SELECT NULLIF ( + COUNT ( * ), + + 62 ) * + - 63 * + + 26
----
-1638

onlyif mysql # aggregate syntax: 
query I rowsort label-3197
SELECT - 19 * - - 84 + COUNT( * )
----
-1595

skipif mysql # not compatible
query I rowsort label-3197
SELECT - 19 * - - 84 + COUNT ( * )
----
-1595

onlyif mysql # aggregate syntax: 
query II rowsort label-3198
SELECT - 22 * + + SUM( - 93 ) - - 16 col2, + 59 + + 22
----
2062
81

skipif mysql # not compatible
query II rowsort label-3198
SELECT - 22 * + + SUM ( - 93 ) - - 16 col2, + 59 + + 22
----
2062
81

query I rowsort
SELECT 66 + 2
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-3200
SELECT ALL 6 * + MIN( - + 33 ) col0
----
-198

skipif mysql # not compatible
query I rowsort label-3200
SELECT ALL 6 * + MIN ( - + 33 ) col0
----
-198

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3202
SELECT ALL CASE 37 WHEN - - 2 THEN + - 75 + - 90 WHEN 5 THEN NULL WHEN + 54 THEN NULL WHEN - + 14 THEN NULL END * 60 * 72 * CASE - COUNT( * ) WHEN + CAST( NULL AS SIGNED ) THEN SUM( 13 ) WHEN - 83 THEN + 31 ELSE NULL END * + - 42, 1 AS col2
----
NULL
1

skipif mysql # not compatible
query II rowsort label-3202
SELECT ALL CASE 37 WHEN - - 2 THEN + - 75 + - 90 WHEN 5 THEN NULL WHEN + 54 THEN NULL WHEN - + 14 THEN NULL END * 60 * 72 * CASE - COUNT ( * ) WHEN + CAST ( NULL AS INTEGER ) THEN SUM ( 13 ) WHEN - 83 THEN + 31 ELSE NULL END * + - 42, 1 AS col2
----
NULL
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3203
SELECT DISTINCT CASE 24 WHEN - + ( - 23 ) THEN - 11 + - 49 + + 36 - + SUM( + + 78 ) WHEN + 13 + - 14 * + + 91 THEN NULL END + 38 + + 29 * 48
----
NULL

skipif mysql # not compatible
query I rowsort label-3203
SELECT DISTINCT CASE 24 WHEN - + ( - 23 ) THEN - 11 + - 49 + + 36 - + SUM ( + + 78 ) WHEN + 13 + - 14 * + + 91 THEN NULL END + 38 + + 29 * 48
----
NULL

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

query I rowsort
SELECT ( - + 24 ) + 71 + - + 4 AS col0
----
43

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3206
SELECT DISTINCT CAST( NULL AS SIGNED ) + - + 6 + - - CAST( - - AVG ( + - ( - 4 ) ) AS SIGNED ) * 96 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3206
SELECT DISTINCT CAST ( NULL AS INTEGER ) + - + 6 + - - CAST ( - - AVG ( + - ( - 4 ) ) AS INTEGER ) * 96 AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3207
SELECT CAST( NULL AS SIGNED ) * - ( - 46 ), 49 + + 18 AS col1
----
NULL
67

skipif mysql # not compatible
query II rowsort label-3207
SELECT CAST ( NULL AS INTEGER ) * - ( - 46 ), 49 + + 18 AS col1
----
NULL
67

onlyif mysql # DIV for integer division: 
query I rowsort label-3208
SELECT 76 + - + 17 + - 49 DIV + NULLIF ( + 83, + 91 )
----
59

skipif mysql # not compatible
query I rowsort label-3208
SELECT 76 + - + 17 + - 49 / + NULLIF ( + 83, + 91 )
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-3209
SELECT - CASE - + 75 WHEN - ( + + ( - COUNT( * ) ) ) THEN NULL WHEN 44 THEN NULL ELSE 3 END col0
----
-3

skipif mysql # not compatible
query I rowsort label-3209
SELECT - CASE - + 75 WHEN - ( + + ( - COUNT ( * ) ) ) THEN NULL WHEN 44 THEN NULL ELSE 3 END col0
----
-3

query I rowsort
SELECT ALL + 43 + 93 - + - 79 AS col1
----
215

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3211
SELECT 63 + 77 - ( - CAST( NULL AS SIGNED ) ) + - 24 * + 65 * - 8 * + - 11 * NULLIF ( CASE COUNT( * ) WHEN + 73 THEN + - 99 / + - 37 * 34 / - 88 WHEN COUNT( * ) + + + 98 THEN + - 60 ELSE NULL END, - 82 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3211
SELECT 63 + 77 - ( - CAST ( NULL AS INTEGER ) ) + - 24 * + 65 * - 8 * + - 11 * NULLIF ( CASE COUNT ( * ) WHEN + 73 THEN + - 99 / + - 37 * 34 / - 88 WHEN COUNT ( * ) + + + 98 THEN + - 60 ELSE NULL END, - 82 ) AS col1
----
NULL

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

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3213
SELECT ALL 48 * - MIN( DISTINCT CAST( NULL AS DECIMAL ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-3213
SELECT ALL 48 * - MIN ( DISTINCT CAST ( NULL AS REAL ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3214
SELECT - 60 + - 37 * - SUM( DISTINCT + NULLIF ( 67, + 87 + - 52 ) ) AS col2
----
2419

skipif mysql # not compatible
query I rowsort label-3214
SELECT - 60 + - 37 * - SUM ( DISTINCT + NULLIF ( 67, + 87 + - 52 ) ) AS col2
----
2419

query I rowsort
SELECT ALL - 43 + 81 col1
----
38

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3216
SELECT - CASE - 99 WHEN - - 11 THEN + CAST( 20 AS SIGNED ) * - + 83 - + NULLIF ( - - 88, + + 36 ) WHEN CAST( - + 3 AS SIGNED ) THEN 13 END
----
NULL

skipif mysql # not compatible
query I rowsort label-3216
SELECT - CASE - 99 WHEN - - 11 THEN + CAST ( 20 AS INTEGER ) * - + 83 - + NULLIF ( - - 88, + + 36 ) WHEN CAST ( - + 3 AS INTEGER ) THEN 13 END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3217
SELECT + 7 * - 85 * CAST( NULL AS SIGNED ) AS col0
----
NULL

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3219
SELECT - 30 + + NULLIF ( + - CAST( NULL AS SIGNED ), 74 / CAST( NULL AS SIGNED ) ) * - 17 + - - 22
----
NULL

skipif mysql # not compatible
query I rowsort label-3219
SELECT - 30 + + NULLIF ( + - CAST ( NULL AS INTEGER ), 74 / CAST ( NULL AS INTEGER ) ) * - 17 + - - 22
----
NULL

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

skipif mysql # not compatible
query I rowsort label-3220
SELECT - COUNT ( * ) + + + 52
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-3221
SELECT - COUNT( - ( + 94 ) ) + - + 19 * 67 AS col2
----
-1274

skipif mysql # not compatible
query I rowsort label-3221
SELECT - COUNT ( - ( + 94 ) ) + - + 19 * 67 AS col2
----
-1274

query II rowsort
SELECT DISTINCT 61, 30 * - 35 AS col0
----
61
-1050

query I rowsort
SELECT - 4 + + ( - ( + 25 ) ) AS col1
----
-29

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3224
SELECT ALL - ( + COALESCE ( + 18, + + 13, + + CAST( NULL AS SIGNED ) ) ) DIV 80 * - 57 * + - 1 * 10 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3224
SELECT ALL - ( + COALESCE ( + 18, + + 13, + + CAST ( NULL AS INTEGER ) ) ) / 80 * - 57 * + - 1 * 10 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3225
SELECT DISTINCT - COUNT( ALL 2 ) col0
----
-1

skipif mysql # not compatible
query I rowsort label-3225
SELECT DISTINCT - COUNT ( ALL 2 ) col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3226
SELECT + MIN( ALL 81 )
----
81

skipif mysql # not compatible
query I rowsort label-3226
SELECT + MIN ( ALL 81 )
----
81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3227
SELECT + ( - CAST( 2 AS SIGNED ) ) AS col2
----
-2

skipif mysql # not compatible
query I rowsort label-3227
SELECT + ( - CAST ( 2 AS INTEGER ) ) AS col2
----
-2

query I rowsort
SELECT + - 50 * - 19 AS col1
----
950

query I rowsort
SELECT DISTINCT + 44 * + 48 AS col0
----
2112

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3230
SELECT ALL - 11 * + 62 * + 45 AS col0, - CAST( - 18 AS SIGNED ) * - 72 + - 58 + - COUNT( * ) DIV 80 - - - 37 AS col1
----
-30690
-1391

skipif mysql # not compatible
query II rowsort label-3230
SELECT ALL - 11 * + 62 * + 45 AS col0, - CAST ( - 18 AS INTEGER ) * - 72 + - 58 + - COUNT ( * ) / 80 - - - 37 AS col1
----
-30690
-1391

query I rowsort
SELECT CASE + + 72 WHEN - 1 THEN - 73 ELSE NULL END AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3232
SELECT 0 DIV - + COALESCE ( - 11, - 43, + 32 DIV + 7 + - 28 ) + 8
----
8

skipif mysql # not compatible
query I rowsort label-3232
SELECT 0 / - + COALESCE ( - 11, - 43, + 32 / + 7 + - 28 ) + 8
----
8

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3233
SELECT - 7 * + 15 / + 23 * CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3233
SELECT - 7 * + 15 / + 23 * CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3234
SELECT DISTINCT - COUNT( * ) * - CAST( NULL AS SIGNED ) + 53 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3234
SELECT DISTINCT - COUNT ( * ) * - CAST ( NULL AS INTEGER ) + 53 AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3235
SELECT DISTINCT - CAST( - 91 AS SIGNED ) * + + ( - - 78 ) * + - 12 - 10 * - - 44 AS col2
----
-85616

skipif mysql # not compatible
query I rowsort label-3235
SELECT DISTINCT - CAST ( - 91 AS INTEGER ) * + + ( - - 78 ) * + - 12 - 10 * - - 44 AS col2
----
-85616

onlyif mysql # aggregate syntax: 
query I rowsort label-3236
SELECT ALL - + COUNT( * ) * + 49 + + - 38
----
-87

skipif mysql # not compatible
query I rowsort label-3236
SELECT ALL - + COUNT ( * ) * + 49 + + - 38
----
-87

query I rowsort
SELECT DISTINCT + ( - + 19 ) AS col1
----
-19

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3238
SELECT ALL - 19 * - 71 * CAST( NULL AS SIGNED ) + + 65 + - 19 + - - 49 - ( - 89 ) * 61 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3238
SELECT ALL - 19 * - 71 * CAST ( NULL AS INTEGER ) + + 65 + - 19 + - - 49 - ( - 89 ) * 61 AS col0
----
NULL

query I rowsort
SELECT COALESCE ( - 44, 6, + 81 )
----
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-3240
SELECT CASE - 73 WHEN 82 + - 85 THEN COUNT( * ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3240
SELECT CASE - 73 WHEN 82 + - 85 THEN COUNT ( * ) END AS col2
----
NULL

query I rowsort
SELECT + 9 * + 69 * + 77 AS col2
----
47817

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3242
SELECT 19 * + ( 84 ) DIV + 83 - - COUNT( + ( - 88 ) ) * 80 AS col2
----
99

skipif mysql # not compatible
query I rowsort label-3242
SELECT 19 * + ( 84 ) / + 83 - - COUNT ( + ( - 88 ) ) * 80 AS col2
----
99

query I rowsort
SELECT + 79 * - 22 AS col1
----
-1738

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3244
SELECT DISTINCT + CAST( 20 AS SIGNED )
----
20

skipif mysql # not compatible
query I rowsort label-3244
SELECT DISTINCT + CAST ( 20 AS INTEGER )
----
20

query I rowsort
SELECT DISTINCT 51 * - 78 + 42 * NULLIF ( 21, 82 ) AS col1
----
-3096

onlyif mysql # aggregate syntax: 
query I rowsort label-3246
SELECT ALL COUNT( * ) * - + MAX( ALL - 52 ) + + 47
----
99

skipif mysql # not compatible
query I rowsort label-3246
SELECT ALL COUNT ( * ) * - + MAX ( ALL - 52 ) + + 47
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-3247
SELECT DISTINCT COUNT( * ) * - 30 col2
----
-30

skipif mysql # not compatible
query I rowsort label-3247
SELECT DISTINCT COUNT ( * ) * - 30 col2
----
-30

query I rowsort
SELECT - ( 4 ) col0
----
-4

query I rowsort
SELECT ALL 25 * + - 35 * COALESCE ( + CASE 88 WHEN + 69 THEN NULL WHEN + 87 * + 74 THEN 67 + 54 END, 45 ) * 41 AS col1
----
-1614375

query I rowsort
SELECT + 48 * + 6
----
288

onlyif mysql # aggregate syntax: 
query II rowsort label-3251
SELECT COUNT( * ) AS col0, - 76 * COUNT( * ) AS col0
----
1
-76

skipif mysql # not compatible
query II rowsort label-3251
SELECT COUNT ( * ) AS col0, - 76 * COUNT ( * ) AS col0
----
1
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-3252
SELECT - 89 * + SUM( - 11 )
----
979

skipif mysql # not compatible
query I rowsort label-3252
SELECT - 89 * + SUM ( - 11 )
----
979

onlyif mysql # aggregate syntax: 
query II rowsort label-3253
SELECT DISTINCT MIN( DISTINCT + + 17 ), - 90 AS col2
----
17
-90

skipif mysql # not compatible
query II rowsort label-3253
SELECT DISTINCT MIN ( DISTINCT + + 17 ), - 90 AS col2
----
17
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-3254
SELECT ALL 65 - - COUNT( 59 ) AS col2
----
66

skipif mysql # not compatible
query I rowsort label-3254
SELECT ALL 65 - - COUNT ( 59 ) AS col2
----
66

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3255
SELECT ALL - CASE - - 86 WHEN CAST( NULLIF ( - 90, + 90 * - + 33 ) AS SIGNED ) THEN NULL WHEN + + 62 * 56 THEN NULL ELSE - COUNT( * ) END AS col0
----
1

skipif mysql # not compatible
query I rowsort label-3255
SELECT ALL - CASE - - 86 WHEN CAST ( NULLIF ( - 90, + 90 * - + 33 ) AS INTEGER ) THEN NULL WHEN + + 62 * 56 THEN NULL ELSE - COUNT ( * ) END AS col0
----
1

query I rowsort
SELECT ALL - 67 - 55 AS col2
----
-122

onlyif mysql # aggregate syntax: 
query II rowsort label-3257
SELECT DISTINCT 50, COALESCE ( + + 93, 23, 4 * + 85 ) + - + COUNT( * ) * - - 16 * + + 68 + + - ( - - 99 ) + NULLIF ( + 54, - - 82 * + 31 ) AS col1
----
50
-1040

skipif mysql # not compatible
query II rowsort label-3257
SELECT DISTINCT 50, COALESCE ( + + 93, 23, 4 * + 85 ) + - + COUNT ( * ) * - - 16 * + + 68 + + - ( - - 99 ) + NULLIF ( + 54, - - 82 * + 31 ) AS col1
----
50
-1040

onlyif mysql # aggregate syntax: 
query II rowsort label-3258
SELECT ALL 95 AS col0, - COUNT( * ) * + COUNT( * )
----
95
-1

skipif mysql # not compatible
query II rowsort label-3258
SELECT ALL 95 AS col0, - COUNT ( * ) * + COUNT ( * )
----
95
-1

query II rowsort
SELECT ALL - 75 AS col0, + 7
----
-75
7

query I rowsort
SELECT + - 59 + + 34
----
-25

query I rowsort
SELECT + - 1 * - 95 col0
----
95

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3262
SELECT ( CAST( 99 AS SIGNED ) ) AS col0
----
99

skipif mysql # not compatible
query I rowsort label-3262
SELECT ( CAST ( 99 AS INTEGER ) ) AS col0
----
99

query I rowsort
SELECT + 68 + + - 45 - - ( - - 67 ) AS col0
----
90

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3264
SELECT - + COUNT( * ) DIV + 39 + - 55 + 96 * + - COUNT( * ) - + 73 + + - 17 AS col1
----
-241

skipif mysql # not compatible
query I rowsort label-3264
SELECT - + COUNT ( * ) / + 39 + - 55 + 96 * + - COUNT ( * ) - + 73 + + - 17 AS col1
----
-241

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3265
SELECT - CASE - - 41 WHEN + + 70 THEN + 80 END + 65 + CASE + 62 WHEN + CAST( 79 AS SIGNED ) + + COUNT( * ) + - 7 THEN NULL ELSE - 32 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3265
SELECT - CASE - - 41 WHEN + + 70 THEN + 80 END + 65 + CASE + 62 WHEN + CAST ( 79 AS INTEGER ) + + COUNT ( * ) + - 7 THEN NULL ELSE - 32 END AS col2
----
NULL

query I rowsort
SELECT - 52 * 29 col0
----
-1508

query I rowsort
SELECT DISTINCT - 71 * + 45 + - 13 * 44 * + 64
----
-39803

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3268
SELECT - 95 + - CASE COALESCE ( 24, ( + + 62 ) / + + 15, + + 50 * - 46 ) WHEN - + 82 * + 6 * + - 28 * + - 64 THEN - + CASE 17 WHEN - - 15 * + 74 * - 21 - + 13 - - 81 - COUNT( * ) + - + COUNT( * ) THEN NULL ELSE - ( + - COALESCE ( - - SUM( - 26 ), + COUNT( * ) ) ) - - 68 + - - ( ( + + 26 ) ) + 7 * - 72 END * + 65 WHEN 59 THEN NULL ELSE + 26 END + + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-3268
SELECT - 95 + - CASE COALESCE ( 24, ( + + 62 ) / + + 15, + + 50 * - 46 ) WHEN - + 82 * + 6 * + - 28 * + - 64 THEN - + CASE 17 WHEN - - 15 * + 74 * - 21 - + 13 - - 81 - COUNT ( * ) + - + COUNT ( * ) THEN NULL ELSE - ( + - COALESCE ( - - SUM ( - 26 ), + COUNT ( * ) ) ) - - 68 + - - ( ( + + 26 ) ) + 7 * - 72 END * + 65 WHEN 59 THEN NULL ELSE + 26 END + + CAST ( NULL AS REAL )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3269
SELECT ALL + 26 DIV 48 + - + 41 DIV COALESCE ( + 25, + + ( + - 59 ) ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-3269
SELECT ALL + 26 / 48 + - + 41 / COALESCE ( + 25, + + ( + - 59 ) ) AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3270
SELECT ALL - + CASE - 7 WHEN COUNT( * ) THEN - + 5 + + 88 + 67 ELSE NULL END / 37 + - 81 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3270
SELECT ALL - + CASE - 7 WHEN COUNT ( * ) THEN - + 5 + + 88 + 67 ELSE NULL END / 37 + - 81 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: DIV for integer division: 
query II rowsort label-3271
SELECT DISTINCT - - MIN( ALL - ( - ( - - 40 ) ) ) DIV - + COALESCE ( + - 34, COUNT( * ) * - - 8 * 85 * - COALESCE ( 97, - + CASE CASE 11 WHEN 0 THEN NULL WHEN - CAST( - ( 45 ) AS SIGNED ) THEN + - 78 ELSE NULL END WHEN - 90 THEN + CAST( + + 84 AS SIGNED ) + - 2 + 85 WHEN 33 THEN 4 - + COUNT( * ) + 65 - - COALESCE ( - + ( - - COUNT( ALL - 91 ) ), 95 * - COUNT( * ) * - 94 * 50 ) * 80 * 92 * - - 54 END * - 45 ) + + 59 ) + 59, CAST( NULL AS DECIMAL ) * SUM( ALL 11 ) AS col0
----
60
NULL

skipif mysql # not compatible
query II rowsort label-3271
SELECT DISTINCT - - MIN ( ALL - ( - ( - - 40 ) ) ) / - + COALESCE ( + - 34, COUNT ( * ) * - - 8 * 85 * - COALESCE ( 97, - + CASE CASE 11 WHEN 0 THEN NULL WHEN - CAST ( - ( 45 ) AS INTEGER ) THEN + - 78 ELSE NULL END WHEN - 90 THEN + CAST ( + + 84 AS INTEGER ) + - 2 + 85 WHEN 33 THEN 4 - + COUNT ( * ) + 65 - - COALESCE ( - + ( - - COUNT ( ALL - 91 ) ), 95 * - COUNT ( * ) * - 94 * 50 ) * 80 * 92 * - - 54 END * - 45 ) + + 59 ) + 59, CAST ( NULL AS REAL ) * SUM ( ALL 11 ) AS col0
----
60
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3272
SELECT ALL + ( + ( + 49 ) ) DIV + COUNT( ALL + ( - + 92 ) ) + + 71, 69 - - - 42 DIV + - COUNT( * ) + - 86 AS col2
----
120
25

skipif mysql # not compatible
query II rowsort label-3272
SELECT ALL + ( + ( + 49 ) ) / + COUNT ( ALL + ( - + 92 ) ) + + 71, 69 - - - 42 / + - COUNT ( * ) + - 86 AS col2
----
120
25

onlyif mysql # aggregate syntax: 
query I rowsort label-3273
SELECT - MIN( + + 68 ) * + 39 + + 60 AS col2
----
-2592

skipif mysql # not compatible
query I rowsort label-3273
SELECT - MIN ( + + 68 ) * + 39 + + 60 AS col2
----
-2592

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3274
SELECT ALL + ( - COUNT( * ) ) / - CAST( NULL AS SIGNED ) * - - COUNT( * ) * - - 93 + 22 + - COUNT( - ( - NULLIF ( - 15, 57 ) ) ) - MAX( DISTINCT - 20 ) * - + ( - COUNT( ALL + 53 ) ) - 61 + + + 18 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3274
SELECT ALL + ( - COUNT ( * ) ) / - CAST ( NULL AS INTEGER ) * - - COUNT ( * ) * - - 93 + 22 + - COUNT ( - ( - NULLIF ( - 15, 57 ) ) ) - MAX ( DISTINCT - 20 ) * - + ( - COUNT ( ALL + 53 ) ) - 61 + + + 18 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3275
SELECT COUNT( * ) * - 58 + 97 - + - 79
----
118

skipif mysql # not compatible
query I rowsort label-3275
SELECT COUNT ( * ) * - 58 + 97 - + - 79
----
118

query I rowsort
SELECT DISTINCT + ( 78 ) AS col1
----
78

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3277
SELECT ALL + 48 DIV + ( - ( + COALESCE ( - 38, - COUNT( * ), - 62 * 3 + + ( - - 33 ) ) ) ) + - 32 * + 66 AS col0
----
-2111

skipif mysql # not compatible
query I rowsort label-3277
SELECT ALL + 48 / + ( - ( + COALESCE ( - 38, - COUNT ( * ), - 62 * 3 + + ( - - 33 ) ) ) ) + - 32 * + 66 AS col0
----
-2111

onlyif mysql # aggregate syntax: 
query I rowsort label-3278
SELECT DISTINCT - COUNT( ALL 69 ) * + 21
----
-21

skipif mysql # not compatible
query I rowsort label-3278
SELECT DISTINCT - COUNT ( ALL 69 ) * + 21
----
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-3279
SELECT ALL + CASE + MIN( + + 6 ) WHEN - - 94 * 26 THEN NULL ELSE + ( 6 ) + + 5 END
----
11

skipif mysql # not compatible
query I rowsort label-3279
SELECT ALL + CASE + MIN ( + + 6 ) WHEN - - 94 * 26 THEN NULL ELSE + ( 6 ) + + 5 END
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-3280
SELECT ALL 47 / + 95 * - 52 * - + 48 + + 67 + - CASE - 90 WHEN + 7 THEN + 81 + - COUNT( * ) ELSE NULL END * + MIN( + - 45 ) * 37 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3280
SELECT ALL 47 / + 95 * - 52 * - + 48 + + 67 + - CASE - 90 WHEN + 7 THEN + 81 + - COUNT ( * ) ELSE NULL END * + MIN ( + - 45 ) * 37 AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3281
SELECT ALL - ( + 23 ) * - 21 / - CASE + 36 WHEN - 61 / - COUNT( * ) * - CASE + COUNT( * ) WHEN 46 * + 63 - 83 / + - 30 - + - 97 * + 86 THEN NULL WHEN 27 THEN + 7 + + CAST( NULL AS SIGNED ) * + + 79 END * - 19 THEN NULL WHEN 93 THEN + - 21 + - 11 * - 75 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3281
SELECT ALL - ( + 23 ) * - 21 / - CASE + 36 WHEN - 61 / - COUNT ( * ) * - CASE + COUNT ( * ) WHEN 46 * + 63 - 83 / + - 30 - + - 97 * + 86 THEN NULL WHEN 27 THEN + 7 + + CAST ( NULL AS INTEGER ) * + + 79 END * - 19 THEN NULL WHEN 93 THEN + - 21 + - 11 * - 75 END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query III rowsort label-3282
SELECT DISTINCT - ( - COUNT( * ) ), COUNT( * ), + 65 AS col1
----
1
1
65

skipif mysql # not compatible
query III rowsort label-3282
SELECT DISTINCT - ( - COUNT ( * ) ), COUNT ( * ), + 65 AS col1
----
1
1
65

query I rowsort
SELECT ALL - 25 - - 98 AS col0
----
73

onlyif mysql # aggregate syntax: 
query I rowsort label-3284
SELECT 63 + - COUNT( * ) AS col1
----
62

skipif mysql # not compatible
query I rowsort label-3284
SELECT 63 + - COUNT ( * ) AS col1
----
62

onlyif mysql # DIV for integer division: 
query I rowsort label-3285
SELECT COALESCE ( + 89, - 29, + 60 + - 57 ) DIV - 81 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-3285
SELECT COALESCE ( + 89, - 29, + 60 + - 57 ) / - 81 AS col2
----
-1

query I rowsort
SELECT DISTINCT 13 * + - 70
----
-910

onlyif mysql # DIV for integer division: 
query II rowsort label-3287
SELECT DISTINCT + 8 DIV - + 48, 13 - - - 12 * - - 3 AS col0
----
0
-23

skipif mysql # not compatible
query II rowsort label-3287
SELECT DISTINCT + 8 / - + 48, 13 - - - 12 * - - 3 AS col0
----
0
-23

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3288
SELECT ALL COUNT( * ) * - - 79 DIV + 11 col2
----
7

skipif mysql # not compatible
query I rowsort label-3288
SELECT ALL COUNT ( * ) * - - 79 / + 11 col2
----
7

query II rowsort
SELECT ALL + 85 * + 96 AS col0, 34 + + 19
----
8160
53

onlyif mysql # aggregate syntax: 
query I rowsort label-3290
SELECT 54 + - 48 * - + COUNT( * )
----
102

skipif mysql # not compatible
query I rowsort label-3290
SELECT 54 + - 48 * - + COUNT ( * )
----
102

onlyif mysql # aggregate syntax: 
query II rowsort label-3291
SELECT DISTINCT 42 * + - 98 * + 17 - - COUNT( * ) + - + COUNT( * ), 45 col2
----
-69972
45

skipif mysql # not compatible
query II rowsort label-3291
SELECT DISTINCT 42 * + - 98 * + 17 - - COUNT ( * ) + - + COUNT ( * ), 45 col2
----
-69972
45

onlyif mysql # DIV for integer division: 
query I rowsort label-3292
SELECT - 86 + 54 DIV 33 + 9 + 84 * + + 8 + 20 * + 64 * - + 33 + 40
----
-41604

skipif mysql # not compatible
query I rowsort label-3292
SELECT - 86 + 54 / 33 + 9 + 84 * + + 8 + 20 * + 64 * - + 33 + 40
----
-41604

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3293
SELECT ALL CASE + 50 WHEN COUNT( * ) / ( 80 ) * - CAST( - MAX( DISTINCT - 28 ) AS SIGNED ) * - 39 / 45 + + 87 THEN 3 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-3293
SELECT ALL CASE + 50 WHEN COUNT ( * ) / ( 80 ) * - CAST ( - MAX ( DISTINCT - 28 ) AS INTEGER ) * - 39 / 45 + + 87 THEN 3 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3294
SELECT DISTINCT - CASE - 61 WHEN + - COUNT( * ) / - 79 THEN - 61 + - 87 / - 18 / + + 12 / 64 WHEN - NULLIF ( - + 25, 59 ) + + COUNT( * ) * - - 83 THEN 8 * + 9 - - 8 END * + 95 * COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-3294
SELECT DISTINCT - CASE - 61 WHEN + - COUNT ( * ) / - 79 THEN - 61 + - 87 / - 18 / + + 12 / 64 WHEN - NULLIF ( - + 25, 59 ) + + COUNT ( * ) * - - 83 THEN 8 * + 9 - - 8 END * + 95 * COUNT ( * )
----
NULL

query I rowsort
SELECT 92 * 47 col2
----
4324

onlyif mysql # aggregate syntax: 
query I rowsort label-3296
SELECT ALL 83 + + 24 * - - NULLIF ( - COALESCE ( - 51, - 20, - + 3 + - 95, - 76 + + COUNT( * ) + + COUNT( * ) ), + 31 * + ( + 74 ) - - COUNT( * ) + + 21 ) AS col0
----
1307

skipif mysql # not compatible
query I rowsort label-3296
SELECT ALL 83 + + 24 * - - NULLIF ( - COALESCE ( - 51, - 20, - + 3 + - 95, - 76 + + COUNT ( * ) + + COUNT ( * ) ), + 31 * + ( + 74 ) - - COUNT ( * ) + + 21 ) AS col0
----
1307

onlyif mysql # aggregate syntax: 
query I rowsort label-3297
SELECT NULLIF ( ( 65 ), + MAX( DISTINCT - 34 ) + - ( + + NULLIF ( - MAX( 58 ), + 27 ) ) * NULLIF ( + - 71, - + COUNT( * ) ) + + ( 26 ) / - 2 )
----
65

skipif mysql # not compatible
query I rowsort label-3297
SELECT NULLIF ( ( 65 ), + MAX ( DISTINCT - 34 ) + - ( + + NULLIF ( - MAX ( 58 ), + 27 ) ) * NULLIF ( + - 71, - + COUNT ( * ) ) + + ( 26 ) / - 2 )
----
65

query I rowsort
SELECT DISTINCT CASE + - 25 WHEN + 45 THEN + 84 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3299
SELECT DISTINCT - 61 * - + COUNT( * ) + 16 * + CASE - + 92 WHEN + COUNT( + 66 ) * - 35 * 29 THEN NULL WHEN - 93 THEN NULL WHEN - 99 - 52 THEN - 19 END / 99 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3299
SELECT DISTINCT - 61 * - + COUNT ( * ) + 16 * + CASE - + 92 WHEN + COUNT ( + 66 ) * - 35 * 29 THEN NULL WHEN - 93 THEN NULL WHEN - 99 - 52 THEN - 19 END / 99 AS col0
----
NULL

query I rowsort
SELECT ALL + 28 + + - 97
----
-69

query I rowsort
SELECT ALL 85 + 92
----
177

query II rowsort
SELECT + ( + + 27 ) AS col2, 20 AS col0
----
27
20

onlyif mysql # aggregate syntax: 
query I rowsort label-3303
SELECT ALL + 68 * MIN( ALL + 78 )
----
5304

skipif mysql # not compatible
query I rowsort label-3303
SELECT ALL + 68 * MIN ( ALL + 78 )
----
5304

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3304
SELECT ( + 20 ) / - 34 + - 32 * 10 * + CAST( NULL AS SIGNED ) - 15 * - + 23 - - 30 + - 89 + + - COUNT( DISTINCT - + 17 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3304
SELECT ( + 20 ) / - 34 + - 32 * 10 * + CAST ( NULL AS INTEGER ) - 15 * - + 23 - - 30 + - 89 + + - COUNT ( DISTINCT - + 17 ) AS col0
----
NULL

query I rowsort
SELECT 67 * + 32 AS col2
----
2144

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3306
SELECT DISTINCT + 11 + 27 - - - 35 - + + 78 - - + 59 / 12 * ( - 91 ) + CAST( NULL AS SIGNED ) / - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-3306
SELECT DISTINCT + 11 + 27 - - - 35 - + + 78 - - + 59 / 12 * ( - 91 ) + CAST ( NULL AS INTEGER ) / - COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3307
SELECT ALL - MIN( 99 ) AS col2
----
-99

skipif mysql # not compatible
query I rowsort label-3307
SELECT ALL - MIN ( 99 ) AS col2
----
-99

query I rowsort
SELECT 57 * + - 18
----
-1026

onlyif mysql # aggregate syntax: 
query I rowsort label-3309
SELECT CASE - + 5 WHEN 62 - + 72 THEN - 53 + 20 WHEN + + 66 + + 79 * 86 + - 74 / - 15 THEN NULL ELSE NULL END * 43 - - + 65 / - 60 + + 25 + 19 * + 15 * + + 98 - - - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-3309
SELECT CASE - + 5 WHEN 62 - + 72 THEN - 53 + 20 WHEN + + 66 + + 79 * 86 + - 74 / - 15 THEN NULL ELSE NULL END * 43 - - + 65 / - 60 + + 25 + 19 * + 15 * + + 98 - - - COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3310
SELECT 26 AS col0, COUNT( * ) AS col1
----
26
1

skipif mysql # not compatible
query II rowsort label-3310
SELECT 26 AS col0, COUNT ( * ) AS col1
----
26
1

query I rowsort
SELECT ALL + 93 - 41 AS col0
----
52

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3312
SELECT MAX( ( 91 ) ) * 94 + + COUNT( * ) * + COUNT( * ), COUNT( * ) DIV + COUNT( * ) AS col0
----
8555
1

skipif mysql # not compatible
query II rowsort label-3312
SELECT MAX ( ( 91 ) ) * 94 + + COUNT ( * ) * + COUNT ( * ), COUNT ( * ) / + COUNT ( * ) AS col0
----
8555
1

query I rowsort
SELECT ALL - ( - - 95 ) AS col0
----
-95

query I rowsort
SELECT 94 * + 98 * - ( - 57 ) - 79
----
525005

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3315
SELECT 92 * CAST( NULL AS DECIMAL ) * - + MAX( + 27 ) / + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-3315
SELECT 92 * CAST ( NULL AS REAL ) * - + MAX ( + 27 ) / + COUNT ( * )
----
NULL

query II rowsort
SELECT + 46 AS col2, + 62 * + + 85 AS col2
----
46
5270

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3317
SELECT + 1 AS col2, - COALESCE ( ( - 93 ), 39 * + 95 * + - COUNT( * ) / 87, MIN( ALL + 41 ) / - 25 ) * + - SUM( ALL - CAST( NULL AS SIGNED ) ) / 79 + 56 - - ( - + 32 ) + + 73 * - CAST( - - COUNT( * ) AS SIGNED ) + 35 - 22
----
1
NULL

skipif mysql # not compatible
query II rowsort label-3317
SELECT + 1 AS col2, - COALESCE ( ( - 93 ), 39 * + 95 * + - COUNT ( * ) / 87, MIN ( ALL + 41 ) / - 25 ) * + - SUM ( ALL - CAST ( NULL AS INTEGER ) ) / 79 + 56 - - ( - + 32 ) + + 73 * - CAST ( - - COUNT ( * ) AS INTEGER ) + 35 - 22
----
1
NULL

query I rowsort
SELECT 85 * - 30 + + 57 AS col1
----
-2493

query II rowsort
SELECT DISTINCT - 43, - ( 79 ) + + ( 54 ) + + ( - 86 ) * - + 49 AS col0
----
-43
4189

onlyif mysql # aggregate syntax: 
query I rowsort label-3320
SELECT 82 * + - COUNT( + 10 ) AS col1
----
-82

skipif mysql # not compatible
query I rowsort label-3320
SELECT 82 * + - COUNT ( + 10 ) AS col1
----
-82

query I rowsort
SELECT ALL + 21 * + 16
----
336

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3322
SELECT ALL - 20, COALESCE ( COUNT( * ), 94 * + 90 * MIN( ALL - 12 ), + 66 * + - 87 DIV + 81 ) * - 51 * 72 + + NULLIF ( + - 54, - + 59 ) AS col0
----
-20
-3726

skipif mysql # not compatible
query II rowsort label-3322
SELECT ALL - 20, COALESCE ( COUNT ( * ), 94 * + 90 * MIN ( ALL - 12 ), + 66 * + - 87 / + 81 ) * - 51 * 72 + + NULLIF ( + - 54, - + 59 ) AS col0
----
-20
-3726

query II rowsort
SELECT ALL - 62 AS col1, - 16 AS col1
----
-62
-16

query II rowsort
SELECT 39, 80 AS col0
----
39
80

query II rowsort
SELECT DISTINCT 13, 91 AS col2
----
13
91

query I rowsort
SELECT ALL + 95 * + 86
----
8170

query I rowsort
SELECT 69 * - 92 AS col2
----
-6348

onlyif mysql # aggregate syntax: 
query I rowsort label-3328
SELECT + SUM( ALL + + 24 ) + - 1 + + 92 * + 7
----
667

skipif mysql # not compatible
query I rowsort label-3328
SELECT + SUM ( ALL + + 24 ) + - 1 + + 92 * + 7
----
667

query I rowsort
SELECT DISTINCT + NULLIF ( - - 16, 47 )
----
16

query II rowsort
SELECT 41, 24 AS col1
----
41
24

query I rowsort
SELECT ALL + 73 + 98 AS col2
----
171

query I rowsort
SELECT 48 * 32 AS col2
----
1536

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3333
SELECT + COALESCE ( + 16, + COUNT( DISTINCT - ( CAST( NULL AS SIGNED ) ) ) * - 36, AVG ( - ( 41 ) ) DIV - + 56 + + COUNT( * ) * - CASE - 32 WHEN - 1 * CAST( NULL AS SIGNED ) THEN + 30 END + - + 5 * 38 ) * + - 8
----
-128

skipif mysql # not compatible
query I rowsort label-3333
SELECT + COALESCE ( + 16, + COUNT ( DISTINCT - ( CAST ( NULL AS INTEGER ) ) ) * - 36, AVG ( - ( 41 ) ) / - + 56 + + COUNT ( * ) * - CASE - 32 WHEN - 1 * CAST ( NULL AS INTEGER ) THEN + 30 END + - + 5 * 38 ) * + - 8
----
-128

onlyif mysql # DIV for integer division: 
query I rowsort label-3334
SELECT DISTINCT + 57 DIV 97
----
0

skipif mysql # not compatible
query I rowsort label-3334
SELECT DISTINCT + 57 / 97
----
0

query I rowsort
SELECT - + ( 66 )
----
-66

query I rowsort
SELECT ( - + 48 )
----
-48

query I rowsort
SELECT ALL + + 64 + 85
----
149

query I rowsort
SELECT DISTINCT ( + + 4 ) * + + 58 * - - ( + 20 )
----
4640

query II rowsort
SELECT ALL 17 + 48 - + 5 * + ( - ( - 61 ) ), + 3 AS col0
----
-240
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3340
SELECT ALL - COUNT( * ) + + + COUNT( * ) * + 99 * - 27
----
-2674

skipif mysql # not compatible
query I rowsort label-3340
SELECT ALL - COUNT ( * ) + + + COUNT ( * ) * + 99 * - 27
----
-2674

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3341
SELECT ALL SUM( DISTINCT 8 ) * + CAST( NULL AS DECIMAL ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3341
SELECT ALL SUM ( DISTINCT 8 ) * + CAST ( NULL AS REAL ) AS col2
----
NULL

query II rowsort
SELECT - 10 AS col2, - 77 * 55 * - ( + 58 ) AS col0
----
-10
245630

onlyif mysql # aggregate syntax: 
query I rowsort label-3343
SELECT + CASE - 69 WHEN - 7 * 82 + + + NULLIF ( + - 79, - COUNT( * ) * - AVG ( ALL + 65 ) - + 22 + - + 56 + 54 ) / - + 18 * + 45 THEN - CASE - CASE ( + + COUNT( * ) ) WHEN SUM( ALL + - 11 ) THEN + 73 ELSE NULL END WHEN + CASE 50 WHEN - 62 * - COUNT( * ) + - - 11 + + 3 * 96 * + - 38 + 10 THEN + - COUNT( * ) WHEN + MAX( - 69 ) / - 30 * + - 28 THEN + CASE 75 WHEN - 95 THEN 23 END / + - ( - COUNT( * ) ) WHEN 21 THEN NULL ELSE + 92 * + 82 END * + 40 THEN - - 27 WHEN - 22 THEN NULL ELSE NULL END END + - - 72
----
NULL

skipif mysql # not compatible
query I rowsort label-3343
SELECT + CASE - 69 WHEN - 7 * 82 + + + NULLIF ( + - 79, - COUNT ( * ) * - AVG ( ALL + 65 ) - + 22 + - + 56 + 54 ) / - + 18 * + 45 THEN - CASE - CASE ( + + COUNT ( * ) ) WHEN SUM ( ALL + - 11 ) THEN + 73 ELSE NULL END WHEN + CASE 50 WHEN - 62 * - COUNT ( * ) + - - 11 + + 3 * 96 * + - 38 + 10 THEN + - COUNT ( * ) WHEN + MAX ( - 69 ) / - 30 * + - 28 THEN + CASE 75 WHEN - 95 THEN 23 END / + - ( - COUNT ( * ) ) WHEN 21 THEN NULL ELSE + 92 * + 82 END * + 40 THEN - - 27 WHEN - 22 THEN NULL ELSE NULL END END + - - 72
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3344
SELECT ALL 86 - + 85 AS col0, - CAST( NULL AS SIGNED ) * - + 21 * - - 71 * - 24
----
1
NULL

skipif mysql # not compatible
query II rowsort label-3344
SELECT ALL 86 - + 85 AS col0, - CAST ( NULL AS INTEGER ) * - + 21 * - - 71 * - 24
----
1
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3345
SELECT ALL + 97 * COUNT( * ) AS col2
----
97

skipif mysql # not compatible
query I rowsort label-3345
SELECT ALL + 97 * COUNT ( * ) AS col2
----
97

query II rowsort
SELECT DISTINCT 85 * 61 col0, - 77 AS col0
----
5185
-77

query I rowsort
SELECT ALL 2 * - 75 AS col1
----
-150

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3348
SELECT - CAST( NULL AS SIGNED ) * COALESCE ( CAST( NULL AS SIGNED ), + - 11, + + 28 * CASE + 76 WHEN + 74 * - 27 THEN NULL ELSE + + 61 END + - 69 + + - 2 ) / - NULLIF ( - SUM( - - 49 ), - + 15 + 85 ) + - - 85 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3348
SELECT - CAST ( NULL AS INTEGER ) * COALESCE ( CAST ( NULL AS INTEGER ), + - 11, + + 28 * CASE + 76 WHEN + 74 * - 27 THEN NULL ELSE + + 61 END + - 69 + + - 2 ) / - NULLIF ( - SUM ( - - 49 ), - + 15 + 85 ) + - - 85 AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3349
SELECT + CAST( - 15 AS SIGNED ) * + 46 + - COALESCE ( + 87, + ( + 27 ) ) + + + 18 + - NULLIF ( 0, + + 20 * 56 + + - 91 ) * ( - 92 ) * + 67 AS col1
----
-759

skipif mysql # not compatible
query I rowsort label-3349
SELECT + CAST ( - 15 AS INTEGER ) * + 46 + - COALESCE ( + 87, + ( + 27 ) ) + + + 18 + - NULLIF ( 0, + + 20 * 56 + + - 91 ) * ( - 92 ) * + 67 AS col1
----
-759

query II rowsort
SELECT ALL + ( - - 32 ) AS col2, + ( + + 53 ) AS col0
----
32
53

onlyif mysql # aggregate syntax: 
query II rowsort label-3351
SELECT ALL 84 * - + 6, 34 + - COUNT( * ) + - 26 AS col0
----
-504
7

skipif mysql # not compatible
query II rowsort label-3351
SELECT ALL 84 * - + 6, 34 + - COUNT ( * ) + - 26 AS col0
----
-504
7

onlyif mysql # aggregate syntax: 
query II rowsort label-3352
SELECT ALL + SUM( ALL + + 59 ) col1, 8
----
59
8

skipif mysql # not compatible
query II rowsort label-3352
SELECT ALL + SUM ( ALL + + 59 ) col1, 8
----
59
8

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3353
SELECT ALL - 35 DIV 8 * + 27 * NULLIF ( + 99, - MAX( ALL NULLIF ( + 24, + 98 ) ) ) AS col2, 38
----
-10692
38

skipif mysql # not compatible
query II rowsort label-3353
SELECT ALL - 35 / 8 * + 27 * NULLIF ( + 99, - MAX ( ALL NULLIF ( + 24, + 98 ) ) ) AS col2, 38
----
-10692
38

query I rowsort
SELECT - 30 + + 9
----
-21

onlyif mysql # DIV for integer division: 
query I rowsort label-3355
SELECT - 48 DIV + 63
----
0

skipif mysql # not compatible
query I rowsort label-3355
SELECT - 48 / + 63
----
0

query I rowsort
SELECT - 25 * + + 17 + - 87
----
-512

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3357
SELECT ALL - 57 * CASE 46 WHEN MAX( ALL 11 ) THEN NULL WHEN + 14 - + CASE + - COUNT( * ) WHEN - 87 THEN 55 * + 70 * + 85 / 88 + - - 70 / - 26 + 2 / - COUNT( * ) ELSE + 73 - - 70 + - 99 END + - + 5 THEN + CAST( + 5 AS SIGNED ) + 40 + 57 + + 79 * + ( + - 4 ) ELSE NULL END * - - 59 + - 34 * - ( NULLIF ( - + 27, 4 ) ) + + CASE - 14 WHEN + 95 / - 29 THEN 5 * - 76 ELSE 34 + + 35 + - + 60 END + + NULLIF ( 54, 49 - - 89 + 49 / - - 44 * 57 ) + 24 * - 74
----
NULL

skipif mysql # not compatible
query I rowsort label-3357
SELECT ALL - 57 * CASE 46 WHEN MAX ( ALL 11 ) THEN NULL WHEN + 14 - + CASE + - COUNT ( * ) WHEN - 87 THEN 55 * + 70 * + 85 / 88 + - - 70 / - 26 + 2 / - COUNT ( * ) ELSE + 73 - - 70 + - 99 END + - + 5 THEN + CAST ( + 5 AS INTEGER ) + 40 + 57 + + 79 * + ( + - 4 ) ELSE NULL END * - - 59 + - 34 * - ( NULLIF ( - + 27, 4 ) ) + + CASE - 14 WHEN + 95 / - 29 THEN 5 * - 76 ELSE 34 + + 35 + - + 60 END + + NULLIF ( 54, 49 - - 89 + 49 / - - 44 * 57 ) + 24 * - 74
----
NULL

query I rowsort
SELECT - - 22 + + 56 AS col2
----
78

query II rowsort
SELECT ALL 4 + 46 AS col0, - 10
----
50
-10

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3360
SELECT ALL - CAST( ( + + ( + 37 ) ) AS SIGNED )
----
-37

skipif mysql # not compatible
query I rowsort label-3360
SELECT ALL - CAST ( ( + + ( + 37 ) ) AS INTEGER )
----
-37

onlyif mysql # DIV for integer division: 
query I rowsort label-3361
SELECT DISTINCT + ( - 76 ) * 11 DIV - - 88
----
-9

skipif mysql # not compatible
query I rowsort label-3361
SELECT DISTINCT + ( - 76 ) * 11 / - - 88
----
-9

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3362
SELECT ALL - CAST( NULL AS SIGNED ) + - + 46 + NULLIF ( - 16, - CAST( - COALESCE ( - + 49, - - 77 + + 64 + + 44 * + 37 ) AS DECIMAL ) ) * 87 * - - 40 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3362
SELECT ALL - CAST ( NULL AS INTEGER ) + - + 46 + NULLIF ( - 16, - CAST ( - COALESCE ( - + 49, - - 77 + + 64 + + 44 * + 37 ) AS REAL ) ) * 87 * - - 40 col2
----
NULL

query I rowsort
SELECT - + 99 * + 40 + + 40
----
-3920

query I rowsort
SELECT ALL + - 12 + + + 74 * 55
----
4058

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3365
SELECT - + CAST( NULL AS SIGNED ) + + 42 + + 94
----
NULL

skipif mysql # not compatible
query I rowsort label-3365
SELECT - + CAST ( NULL AS INTEGER ) + + 42 + + 94
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3366
SELECT DISTINCT + 18 * - MIN( DISTINCT CAST( + 51 AS SIGNED ) ) col0
----
-918

skipif mysql # not compatible
query I rowsort label-3366
SELECT DISTINCT + 18 * - MIN ( DISTINCT CAST ( + 51 AS INTEGER ) ) col0
----
-918

onlyif mysql # DIV for integer division: 
query I rowsort label-3367
SELECT DISTINCT - 11 DIV + - 91
----
0

skipif mysql # not compatible
query I rowsort label-3367
SELECT DISTINCT - 11 / + - 91
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3368
SELECT + 27 * ( - 9 ) * - 29 + - COUNT( * )
----
7046

skipif mysql # not compatible
query I rowsort label-3368
SELECT + 27 * ( - 9 ) * - 29 + - COUNT ( * )
----
7046

query I rowsort
SELECT DISTINCT - 84 * + 95 col1
----
-7980

query I rowsort
SELECT + ( + 86 ) * - 95 + 75 * + 41
----
-5095

query I rowsort
SELECT DISTINCT 44 * - 52 AS col0
----
-2288

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3372
SELECT CAST( 91 AS SIGNED ) col1
----
91

skipif mysql # not compatible
query I rowsort label-3372
SELECT CAST ( 91 AS INTEGER ) col1
----
91

query I rowsort
SELECT + ( - 53 ) AS col0
----
-53

query I rowsort
SELECT DISTINCT + 21 * 95
----
1995

onlyif mysql # aggregate syntax: 
query II rowsort label-3375
SELECT ALL + COUNT( * ) AS col2, 64
----
1
64

skipif mysql # not compatible
query II rowsort label-3375
SELECT ALL + COUNT ( * ) AS col2, 64
----
1
64

onlyif mysql # aggregate syntax: 
query I rowsort label-3376
SELECT DISTINCT + MAX( DISTINCT + - 52 ) col0
----
-52

skipif mysql # not compatible
query I rowsort label-3376
SELECT DISTINCT + MAX ( DISTINCT + - 52 ) col0
----
-52

onlyif mysql # aggregate syntax: 
query II rowsort label-3377
SELECT + 40 * COUNT( * ) * + 63 - + + 85 + - COUNT( * ) + + NULLIF ( - 64, + COUNT( ALL - 4 ) ) * - 23 AS col2, 51 * + COUNT( DISTINCT 55 ) + - CASE WHEN NOT - 77 IS NULL THEN 95 END * 10 * + ( - - 61 ) / + - 29 * - 25 * + - CASE - SUM( DISTINCT - - 67 ) WHEN - + COUNT( * ) THEN + + COUNT( * ) + - 16 END + + - AVG ( 66 ) + - 47 - - - 67 + 44 / + + ( 28 )
----
3906
NULL

skipif mysql # not compatible
query II rowsort label-3377
SELECT + 40 * COUNT ( * ) * + 63 - + + 85 + - COUNT ( * ) + + NULLIF ( - 64, + COUNT ( ALL - 4 ) ) * - 23 AS col2, 51 * + COUNT ( DISTINCT 55 ) + - CASE WHEN NOT - 77 IS NULL THEN 95 END * 10 * + ( - - 61 ) / + - 29 * - 25 * + - CASE - SUM ( DISTINCT - - 67 ) WHEN - + COUNT ( * ) THEN + + COUNT ( * ) + - 16 END + + - AVG ( 66 ) + - 47 - - - 67 + 44 / + + ( 28 )
----
3906
NULL

query II rowsort
SELECT ALL + 27 col1, + 70 AS col0
----
27
70

onlyif mysql # aggregate syntax: 
query I rowsort label-3379
SELECT ALL - 85 / 10 / CASE + + COUNT( DISTINCT 79 ) WHEN - 53 THEN + 41 - 1 + - - 60 * COUNT( * ) + + 18 * - 11 * + + 18 + - - 86 * + 87 + + 92 * + 57 * + ( - COUNT( 60 ) ) WHEN + 92 + + 11 + - 13 THEN COUNT( * ) * COUNT( * ) ELSE NULL END + + 75
----
NULL

skipif mysql # not compatible
query I rowsort label-3379
SELECT ALL - 85 / 10 / CASE + + COUNT ( DISTINCT 79 ) WHEN - 53 THEN + 41 - 1 + - - 60 * COUNT ( * ) + + 18 * - 11 * + + 18 + - - 86 * + 87 + + 92 * + 57 * + ( - COUNT ( 60 ) ) WHEN + 92 + + 11 + - 13 THEN COUNT ( * ) * COUNT ( * ) ELSE NULL END + + 75
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3380
SELECT + CAST( - 89 AS SIGNED )
----
-89

skipif mysql # not compatible
query I rowsort label-3380
SELECT + CAST ( - 89 AS INTEGER )
----
-89

query I rowsort
SELECT ( + + 66 ) AS col2
----
66

onlyif mysql # aggregate syntax: 
query II rowsort label-3382
SELECT ALL + 8 * 17 + 68, 88 * - + COUNT( * ) AS col2
----
204
-88

skipif mysql # not compatible
query II rowsort label-3382
SELECT ALL + 8 * 17 + 68, 88 * - + COUNT ( * ) AS col2
----
204
-88

query I rowsort
SELECT ( - + NULLIF ( - + 76, - + 58 ) ) col2
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-3384
SELECT DISTINCT - SUM( 25 ) * + 28 + - MIN( + 81 + 88 ) AS col1
----
-869

skipif mysql # not compatible
query I rowsort label-3384
SELECT DISTINCT - SUM ( 25 ) * + 28 + - MIN ( + 81 + 88 ) AS col1
----
-869

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3385
SELECT ALL 8 * CAST( 49 * + 88 AS SIGNED ) + - 56
----
34440

skipif mysql # not compatible
query I rowsort label-3385
SELECT ALL 8 * CAST ( 49 * + 88 AS INTEGER ) + - 56
----
34440

onlyif mysql # aggregate syntax: 
query I rowsort label-3386
SELECT ALL + SUM( DISTINCT 24 ) * 2 + ( - 14 ) col1
----
34

skipif mysql # not compatible
query I rowsort label-3386
SELECT ALL + SUM ( DISTINCT 24 ) * 2 + ( - 14 ) col1
----
34

query I rowsort
SELECT ALL - 92 * + 73 + + 51
----
-6665

query I rowsort
SELECT + 41 * - 46
----
-1886

onlyif mysql # DIV for integer division: 
query I rowsort label-3389
SELECT - 58 DIV + 55 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-3389
SELECT - 58 / + 55 AS col0
----
-1

query I rowsort
SELECT - 45 * + 18 + + 16 AS col0
----
-794

onlyif mysql # aggregate syntax: 
query I rowsort label-3391
SELECT ALL SUM( 53 ) AS col0
----
53

skipif mysql # not compatible
query I rowsort label-3391
SELECT ALL SUM ( 53 ) AS col0
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-3392
SELECT CASE - 42 WHEN - 39 + - 69 * + ( 42 ) THEN + COUNT( * ) * - 56 WHEN - ( ( COUNT( * ) ) ) THEN NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3392
SELECT CASE - 42 WHEN - 39 + - 69 * + ( 42 ) THEN + COUNT ( * ) * - 56 WHEN - ( ( COUNT ( * ) ) ) THEN NULL END AS col1
----
NULL

query I rowsort
SELECT ALL - ( - 32 ) * 66 - - 95 AS col1
----
2207

query I rowsort
SELECT + 5 * + 12
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-3395
SELECT - 11 * COUNT( * ) AS col0
----
-11

skipif mysql # not compatible
query I rowsort label-3395
SELECT - 11 * COUNT ( * ) AS col0
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-3396
SELECT ALL - 96 / CASE + 7 WHEN 88 THEN SUM( 63 ) * 90 WHEN + COUNT( * ) THEN - 48 / + 79 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-3396
SELECT ALL - 96 / CASE + 7 WHEN 88 THEN SUM ( 63 ) * 90 WHEN + COUNT ( * ) THEN - 48 / + 79 ELSE NULL END
----
NULL

query I rowsort
SELECT + 22 - - 89
----
111

query I rowsort
SELECT + 81 * ( 36 )
----
2916

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3399
SELECT DISTINCT 44 * COALESCE ( 14, CAST( 38 AS SIGNED ) ) - 20 AS col0
----
596

skipif mysql # not compatible
query I rowsort label-3399
SELECT DISTINCT 44 * COALESCE ( 14, CAST ( 38 AS INTEGER ) ) - 20 AS col0
----
596

query I rowsort
SELECT ALL ( ( + 72 ) )
----
72

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3401
SELECT DISTINCT - 15 * + CAST( NULL AS SIGNED ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3401
SELECT DISTINCT - 15 * + CAST ( NULL AS INTEGER ) col1
----
NULL

query I rowsort
SELECT DISTINCT 39 - + 42
----
-3

query I rowsort
SELECT 51 * + 72 AS col2
----
3672

query I rowsort
SELECT ALL - 97 * - 89
----
8633

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3405
SELECT DISTINCT - ( + NULLIF ( - 40, + CAST( NULL AS SIGNED ) ) ) * - 46 col0
----
-1840

skipif mysql # not compatible
query I rowsort label-3405
SELECT DISTINCT - ( + NULLIF ( - 40, + CAST ( NULL AS INTEGER ) ) ) * - 46 col0
----
-1840

query I rowsort
SELECT ALL - 7 * - 45
----
315

onlyif mysql # aggregate syntax: 
query I rowsort label-3407
SELECT 41 * COALESCE ( 74 * COUNT( * ), - ( + 34 ) * 1 )
----
3034

skipif mysql # not compatible
query I rowsort label-3407
SELECT 41 * COALESCE ( 74 * COUNT ( * ), - ( + 34 ) * 1 )
----
3034

query I rowsort
SELECT 56 + 51
----
107

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3409
SELECT 1 - 25 DIV COUNT( * ) AS col0
----
-24

skipif mysql # not compatible
query I rowsort label-3409
SELECT 1 - 25 / COUNT ( * ) AS col0
----
-24

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3410
SELECT ALL - MIN( DISTINCT 85 ) DIV - 44 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-3410
SELECT ALL - MIN ( DISTINCT 85 ) / - 44 AS col0
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-3411
SELECT 72 DIV 1
----
72

skipif mysql # not compatible
query I rowsort label-3411
SELECT 72 / 1
----
72

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3412
SELECT 76 + CAST( NULL AS SIGNED ) * 38 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3412
SELECT 76 + CAST ( NULL AS INTEGER ) * 38 col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3413
SELECT ALL + 35 + - COUNT( * ) col0
----
34

skipif mysql # not compatible
query I rowsort label-3413
SELECT ALL + 35 + - COUNT ( * ) col0
----
34

query I rowsort
SELECT ALL 49 + + 42
----
91

query I rowsort
SELECT 91 + - 92 * 62 AS col0
----
-5613

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3416
SELECT ALL - 62 DIV - COUNT( * )
----
62

skipif mysql # not compatible
query I rowsort label-3416
SELECT ALL - 62 / - COUNT ( * )
----
62

query I rowsort
SELECT ALL + 8 + + 99 col0
----
107

query I rowsort
SELECT - 73 * - 46 + 70 AS col2
----
3428

onlyif mysql # aggregate syntax: 
query I rowsort label-3419
SELECT DISTINCT - COUNT( * ) * + 68 col2
----
-68

skipif mysql # not compatible
query I rowsort label-3419
SELECT DISTINCT - COUNT ( * ) * + 68 col2
----
-68

onlyif mysql # DIV for integer division: 
query I rowsort label-3420
SELECT 75 DIV 91
----
0

skipif mysql # not compatible
query I rowsort label-3420
SELECT 75 / 91
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3421
SELECT 72 DIV - 57 + SUM( DISTINCT - 29 ) * 51 AS col2
----
-1480

skipif mysql # not compatible
query I rowsort label-3421
SELECT 72 / - 57 + SUM ( DISTINCT - 29 ) * 51 AS col2
----
-1480

query I rowsort
SELECT 81 * 25 AS col1
----
2025

query I rowsort
SELECT 20 + + 83 AS col0
----
103

onlyif mysql # aggregate syntax: 
query I rowsort label-3424
SELECT DISTINCT COUNT( * ) + + 0 col0
----
1

skipif mysql # not compatible
query I rowsort label-3424
SELECT DISTINCT COUNT ( * ) + + 0 col0
----
1

query I rowsort
SELECT ALL - COALESCE ( + 54, + 13 )
----
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-3426
SELECT DISTINCT + MAX( DISTINCT + 41 ) + 49
----
90

skipif mysql # not compatible
query I rowsort label-3426
SELECT DISTINCT + MAX ( DISTINCT + 41 ) + 49
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-3427
SELECT ALL - COUNT( * ) + - ( 70 - 13 ) AS col1
----
-58

skipif mysql # not compatible
query I rowsort label-3427
SELECT ALL - COUNT ( * ) + - ( 70 - 13 ) AS col1
----
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-3428
SELECT DISTINCT SUM( + 79 ) * 36 AS col0
----
2844

skipif mysql # not compatible
query I rowsort label-3428
SELECT DISTINCT SUM ( + 79 ) * 36 AS col0
----
2844

onlyif mysql # DIV for integer division: 
query I rowsort label-3429
SELECT ALL 23 DIV 43
----
0

skipif mysql # not compatible
query I rowsort label-3429
SELECT ALL 23 / 43
----
0

query I rowsort
SELECT - 49 * - 88 + + 14
----
4326

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3431
SELECT 61 * + CASE + 59 + 25 WHEN 69 * - CAST( NULL AS SIGNED ) THEN - NULLIF ( 83, + COUNT( * ) / + 7 ) WHEN - CASE + 20 WHEN + 47 - 83 * 20 THEN NULL WHEN 61 THEN 25 END THEN NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3431
SELECT 61 * + CASE + 59 + 25 WHEN 69 * - CAST ( NULL AS INTEGER ) THEN - NULLIF ( 83, + COUNT ( * ) / + 7 ) WHEN - CASE + 20 WHEN + 47 - 83 * 20 THEN NULL WHEN 61 THEN 25 END THEN NULL END AS col0
----
NULL

query I rowsort
SELECT ALL 50 * + 54 AS col2
----
2700

onlyif mysql # aggregate syntax: 
query I rowsort label-3433
SELECT - COUNT( * ) + 75 * 10
----
749

skipif mysql # not compatible
query I rowsort label-3433
SELECT - COUNT ( * ) + 75 * 10
----
749

query I rowsort
SELECT + ( 57 ) * + 59 - 61 * + 29 AS col2
----
1594

query I rowsort
SELECT 71 + + 71
----
142

query I rowsort
SELECT - 69 + - 99 AS col2
----
-168

query I rowsort
SELECT 64 + 52 * - 95
----
-4876

query I rowsort
SELECT 50 * + - 76 AS col1
----
-3800

query I rowsort
SELECT 86 * - + 43
----
-3698

onlyif mysql # DIV for integer division: 
query I rowsort label-3440
SELECT 95 DIV + 8
----
11

skipif mysql # not compatible
query I rowsort label-3440
SELECT 95 / + 8
----
11

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3441
SELECT ALL + 39 * CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3441
SELECT ALL + 39 * CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3442
SELECT 1 + - + 4 - - 37 * COUNT( * ) AS col2
----
34

skipif mysql # not compatible
query I rowsort label-3442
SELECT 1 + - + 4 - - 37 * COUNT ( * ) AS col2
----
34

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3443
SELECT 76 * - CAST( MAX( + 46 ) AS SIGNED ) * 11
----
-38456

skipif mysql # not compatible
query I rowsort label-3443
SELECT 76 * - CAST ( MAX ( + 46 ) AS INTEGER ) * 11
----
-38456

query I rowsort
SELECT ALL 67 + - + 63 AS col2
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-3445
SELECT ALL - SUM( DISTINCT 85 ) + + 43 * 82 AS col0
----
3441

skipif mysql # not compatible
query I rowsort label-3445
SELECT ALL - SUM ( DISTINCT 85 ) + + 43 * 82 AS col0
----
3441

query I rowsort
SELECT ALL + 3 + ( - 17 ) * - 51
----
870

query I rowsort
SELECT DISTINCT - 49 + 15 AS col2
----
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-3448
SELECT DISTINCT SUM( DISTINCT - - ( 87 ) )
----
87

skipif mysql # not compatible
query I rowsort label-3448
SELECT DISTINCT SUM ( DISTINCT - - ( 87 ) )
----
87

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3449
SELECT - SUM( - - CAST( ( 64 ) AS SIGNED ) ) AS col0
----
-64

skipif mysql # not compatible
query I rowsort label-3449
SELECT - SUM ( - - CAST ( ( 64 ) AS INTEGER ) ) AS col0
----
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-3450
SELECT ALL + 4 + NULLIF ( 5, 23 * + COUNT( * ) ) - 6 * - SUM( - 33 + 48 )
----
99

skipif mysql # not compatible
query I rowsort label-3450
SELECT ALL + 4 + NULLIF ( 5, 23 * + COUNT ( * ) ) - 6 * - SUM ( - 33 + 48 )
----
99

query I rowsort
SELECT 26 * 44
----
1144

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3452
SELECT DISTINCT + COUNT( * ) DIV 78 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3452
SELECT DISTINCT + COUNT ( * ) / 78 AS col0
----
0

query I rowsort
SELECT DISTINCT - 37 * - + ( - 44 ) + - 64
----
-1692

query I rowsort
SELECT ALL + 54 * - + 87 + 97
----
-4601

query I rowsort
SELECT 16 * + 7
----
112

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3456
SELECT ALL 54 * 10 DIV COUNT( * )
----
540

skipif mysql # not compatible
query I rowsort label-3456
SELECT ALL 54 * 10 / COUNT ( * )
----
540

onlyif mysql # DIV for integer division: 
query I rowsort label-3457
SELECT ( 54 ) DIV - 89 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3457
SELECT ( 54 ) / - 89 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3458
SELECT COUNT( * ) * + 4 AS col1
----
4

skipif mysql # not compatible
query I rowsort label-3458
SELECT COUNT ( * ) * + 4 AS col1
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-3459
SELECT ALL - 36 * - 71 - ( MAX( 29 ) ) - - NULLIF ( CASE + COUNT( * ) WHEN 85 + - 97 THEN NULL WHEN CASE 44 WHEN - 34 THEN NULL WHEN - 96 + 61 THEN + 41 ELSE NULL END / 26 THEN COUNT( + 16 ) END + 62 * + COUNT( * ), + COALESCE ( NULLIF ( - 68, + 49 + + 3 * 64 ), - 73 ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3459
SELECT ALL - 36 * - 71 - ( MAX ( 29 ) ) - - NULLIF ( CASE + COUNT ( * ) WHEN 85 + - 97 THEN NULL WHEN CASE 44 WHEN - 34 THEN NULL WHEN - 96 + 61 THEN + 41 ELSE NULL END / 26 THEN COUNT ( + 16 ) END + 62 * + COUNT ( * ), + COALESCE ( NULLIF ( - 68, + 49 + + 3 * 64 ), - 73 ) ) AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3460
SELECT DISTINCT + 46 * - 77 * + CASE + AVG ( 24 ) WHEN + 15 * CASE + 18 WHEN MIN( 11 ) * - CAST( - 59 AS DECIMAL ) THEN NULL WHEN + 1 * + 21 THEN ( MAX( + 40 ) ) END THEN - 47 * 38 END
----
NULL

skipif mysql # not compatible
query I rowsort label-3460
SELECT DISTINCT + 46 * - 77 * + CASE + AVG ( 24 ) WHEN + 15 * CASE + 18 WHEN MIN ( 11 ) * - CAST ( - 59 AS REAL ) THEN NULL WHEN + 1 * + 21 THEN ( MAX ( + 40 ) ) END THEN - 47 * 38 END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3461
SELECT 30 DIV - 80 * + 23 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3461
SELECT 30 / - 80 * + 23 AS col1
----
0

query I rowsort
SELECT 17 * 39 AS col1
----
663

onlyif mysql # aggregate syntax: 
query I rowsort label-3463
SELECT CASE - 14 WHEN COUNT( * ) - + 89 * + 45 THEN NULL ELSE - ( 17 ) END
----
-17

skipif mysql # not compatible
query I rowsort label-3463
SELECT CASE - 14 WHEN COUNT ( * ) - + 89 * + 45 THEN NULL ELSE - ( 17 ) END
----
-17

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3464
SELECT + MIN( - + CAST( NULL AS SIGNED ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3464
SELECT + MIN ( - + CAST ( NULL AS INTEGER ) ) AS col1
----
NULL

query I rowsort
SELECT + - 9 + + 57 * + 51 AS col2
----
2898

query I rowsort
SELECT - + 81 - 16 + + 91
----
-6

onlyif mysql # DIV for integer division: 
query I rowsort label-3467
SELECT + 80 * - 13 + + 50 DIV - 39
----
-1041

skipif mysql # not compatible
query I rowsort label-3467
SELECT + 80 * - 13 + + 50 / - 39
----
-1041

query I rowsort
SELECT + - 6 - + 80 + 53 * - 97
----
-5227

query I rowsort
SELECT DISTINCT 21 * + + 38 * 21 col1
----
16758

onlyif mysql # aggregate syntax: 
query I rowsort label-3470
SELECT ALL 80 + + MAX( - 90 ) AS col1
----
-10

skipif mysql # not compatible
query I rowsort label-3470
SELECT ALL 80 + + MAX ( - 90 ) AS col1
----
-10

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3471
SELECT ALL + 80 * - 43 * - 67 * + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3471
SELECT ALL + 80 * - 43 * - 67 * + CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3472
SELECT ALL MAX( + 18 ) + - - COALESCE ( MIN( ALL + 55 ), COUNT( * ) + + 7 ) AS col1
----
73

skipif mysql # not compatible
query I rowsort label-3472
SELECT ALL MAX ( + 18 ) + - - COALESCE ( MIN ( ALL + 55 ), COUNT ( * ) + + 7 ) AS col1
----
73

query I rowsort
SELECT + ( - 88 ) - + 96 AS col1
----
-184

query I rowsort
SELECT DISTINCT 85 * - 34 AS col0
----
-2890

query I rowsort
SELECT ALL 44 + - 67
----
-23

query I rowsort
SELECT + 55 - + 68
----
-13

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3477
SELECT - CASE 34 WHEN - SUM( ALL CAST( - 39 AS SIGNED ) ) THEN - 8 WHEN - COUNT( * ) * + CASE 95 WHEN - ( - CAST( NULL AS SIGNED ) ) THEN NULL ELSE + MAX( DISTINCT - 99 ) END THEN 29 * 97 END
----
NULL

skipif mysql # not compatible
query I rowsort label-3477
SELECT - CASE 34 WHEN - SUM ( ALL CAST ( - 39 AS INTEGER ) ) THEN - 8 WHEN - COUNT ( * ) * + CASE 95 WHEN - ( - CAST ( NULL AS INTEGER ) ) THEN NULL ELSE + MAX ( DISTINCT - 99 ) END THEN 29 * 97 END
----
NULL

query I rowsort
SELECT ALL + 8 + - 36 AS col2
----
-28

query I rowsort
SELECT + 31 - + 7 - - - 3 * + 24 AS col0
----
-48

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3480
SELECT ALL COUNT( * ) + - 32 + - ( + CASE WHEN CAST( NULL AS SIGNED ) = ( - 61 * SUM( ALL 1 * - 21 ) ) THEN + 92 * - 61 END )
----
NULL

skipif mysql # not compatible
query I rowsort label-3480
SELECT ALL COUNT ( * ) + - 32 + - ( + CASE WHEN CAST ( NULL AS INTEGER ) = ( - 61 * SUM ( ALL 1 * - 21 ) ) THEN + 92 * - 61 END )
----
NULL

query I rowsort
SELECT + ( 19 ) * + + COALESCE ( - 75, 17 * ( 94 * + 45 ) ) AS col0
----
-1425

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3482
SELECT ALL 13 + - 92 * - - ( MIN( + CAST( 20 AS SIGNED ) ) ) * CAST( 39 + MAX( + 91 ) * - 29 AS SIGNED )
----
4784013

skipif mysql # not compatible
query I rowsort label-3482
SELECT ALL 13 + - 92 * - - ( MIN ( + CAST ( 20 AS INTEGER ) ) ) * CAST ( 39 + MAX ( + 91 ) * - 29 AS INTEGER )
----
4784013

onlyif mysql # aggregate syntax: 
query I rowsort label-3483
SELECT + COUNT( * ) + + 74 AS col1
----
75

skipif mysql # not compatible
query I rowsort label-3483
SELECT + COUNT ( * ) + + 74 AS col1
----
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3484
SELECT + CAST( 76 AS SIGNED ) + - 84 AS col1
----
-8

skipif mysql # not compatible
query I rowsort label-3484
SELECT + CAST ( 76 AS INTEGER ) + - 84 AS col1
----
-8

query I rowsort
SELECT - 1 - - ( + 67 )
----
66

onlyif mysql # DIV for integer division: 
query I rowsort label-3486
SELECT ALL ( - - 96 ) DIV + + 70 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-3486
SELECT ALL ( - - 96 ) / + + 70 AS col0
----
1

query I rowsort
SELECT + 72 + 24 AS col1
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-3488
SELECT - 78 - - COUNT( * ) + + 70 * 97 * - 58 col2
----
-393897

skipif mysql # not compatible
query I rowsort label-3488
SELECT - 78 - - COUNT ( * ) + + 70 * 97 * - 58 col2
----
-393897

onlyif mysql # aggregate syntax: 
query I rowsort label-3489
SELECT DISTINCT + 18 * - + MAX( + 6 ) col0
----
-108

skipif mysql # not compatible
query I rowsort label-3489
SELECT DISTINCT + 18 * - + MAX ( + 6 ) col0
----
-108

query II rowsort
SELECT ALL + 55, + 53 AS col1
----
55
53

query I rowsort
SELECT - 42 + - + 62 - + 66 + 64
----
-106

onlyif mysql # aggregate syntax: 
query I rowsort label-3492
SELECT ALL + CASE - + 77 WHEN 70 THEN + 43 WHEN + COUNT( DISTINCT + 24 ) THEN NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3492
SELECT ALL + CASE - + 77 WHEN 70 THEN + 43 WHEN + COUNT ( DISTINCT + 24 ) THEN NULL END AS col0
----
NULL

query I rowsort
SELECT DISTINCT - 67 * - 59
----
3953

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3494
SELECT ALL - - CAST( NULL AS SIGNED ) * MAX( - + 1 ) * + 47 - + ( + COUNT( * ) + + 99 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3494
SELECT ALL - - CAST ( NULL AS INTEGER ) * MAX ( - + 1 ) * + 47 - + ( + COUNT ( * ) + + 99 ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3495
SELECT 64 AS col2, - MAX( ALL - 8 )
----
64
8

skipif mysql # not compatible
query II rowsort label-3495
SELECT 64 AS col2, - MAX ( ALL - 8 )
----
64
8

onlyif mysql # DIV for integer division: 
query I rowsort label-3496
SELECT - 11 DIV 19 * 11 + 53 AS col2
----
53

skipif mysql # not compatible
query I rowsort label-3496
SELECT - 11 / 19 * 11 + 53 AS col2
----
53

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3497
SELECT ALL + + COUNT( * ) * - NULLIF ( ( COUNT( * ) ), + NULLIF ( ( 10 ), 16 * + 74 + - 5 * 80 ) ) DIV 37 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3497
SELECT ALL + + COUNT ( * ) * - NULLIF ( ( COUNT ( * ) ), + NULLIF ( ( 10 ), 16 * + 74 + - 5 * 80 ) ) / 37 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3498
SELECT + + 28 * - ( COUNT( * ) )
----
-28

skipif mysql # not compatible
query I rowsort label-3498
SELECT + + 28 * - ( COUNT ( * ) )
----
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-3499
SELECT - - 23 * + + 50 * + 56 / - CASE COALESCE ( 65, - 74 * - COUNT( * ), 41 ) WHEN + 89 THEN 83 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3499
SELECT - - 23 * + + 50 * + 56 / - CASE COALESCE ( 65, - 74 * - COUNT ( * ), 41 ) WHEN + 89 THEN 83 END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3500
SELECT ALL + ( - - NULLIF ( + 77, MAX( - 73 ) ) )
----
77

skipif mysql # not compatible
query I rowsort label-3500
SELECT ALL + ( - - NULLIF ( + 77, MAX ( - 73 ) ) )
----
77

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3501
SELECT 1 col1, - 34 + + + 30 + NULLIF ( 59 - - COUNT( * ) * 59, + 8 ) DIV ( COUNT( * ) * - 8 ) * 19 AS col1
----
1
-270

skipif mysql # not compatible
query II rowsort label-3501
SELECT 1 col1, - 34 + + + 30 + NULLIF ( 59 - - COUNT ( * ) * 59, + 8 ) / ( COUNT ( * ) * - 8 ) * 19 AS col1
----
1
-270

query I rowsort
SELECT + - ( 7 )
----
-7

onlyif mysql # DIV for integer division: 
query I rowsort label-3503
SELECT DISTINCT + - 77 DIV - 33
----
2

skipif mysql # not compatible
query I rowsort label-3503
SELECT DISTINCT + - 77 / - 33
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-3504
SELECT DISTINCT + + SUM( ALL + 89 )
----
89

skipif mysql # not compatible
query I rowsort label-3504
SELECT DISTINCT + + SUM ( ALL + 89 )
----
89

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3505
SELECT ALL + - 2 * COALESCE ( CAST( COUNT( * ) AS SIGNED ), - 40 + ( + 64 ) )
----
-2

skipif mysql # not compatible
query I rowsort label-3505
SELECT ALL + - 2 * COALESCE ( CAST ( COUNT ( * ) AS INTEGER ), - 40 + ( + 64 ) )
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-3506
SELECT - + 96 + + 6 * + 9 * COUNT( * )
----
-42

skipif mysql # not compatible
query I rowsort label-3506
SELECT - + 96 + + 6 * + 9 * COUNT ( * )
----
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-3507
SELECT DISTINCT + + 86 * - + 97 + - + NULLIF ( 22, COUNT( * ) ) - + 1 * - 28 AS col1
----
-8336

skipif mysql # not compatible
query I rowsort label-3507
SELECT DISTINCT + + 86 * - + 97 + - + NULLIF ( 22, COUNT ( * ) ) - + 1 * - 28 AS col1
----
-8336

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3508
SELECT - - NULLIF ( 85, + - CAST( 92 AS SIGNED ) ) * - 95 AS col2
----
-8075

skipif mysql # not compatible
query I rowsort label-3508
SELECT - - NULLIF ( 85, + - CAST ( 92 AS INTEGER ) ) * - 95 AS col2
----
-8075

query I rowsort
SELECT ALL - 57 * - CASE - 57 WHEN + 16 + 51 THEN 98 * - 49 ELSE NULL END + 92
----
NULL

query II rowsort
SELECT + 52, + CASE 44 WHEN - 4 THEN 85 * - 52 END col1
----
52
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3511
SELECT + + COUNT( * ) DIV 68
----
0

skipif mysql # not compatible
query I rowsort label-3511
SELECT + + COUNT ( * ) / 68
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3512
SELECT ALL - 81 * COUNT( * ) + + 46 + COUNT( 2 ) DIV COUNT( ALL + 83 DIV 99 ) AS col2
----
-34

skipif mysql # not compatible
query I rowsort label-3512
SELECT ALL - 81 * COUNT ( * ) + + 46 + COUNT ( 2 ) / COUNT ( ALL + 83 / 99 ) AS col2
----
-34

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3513
SELECT - 2 * + 18 + 32 + COALESCE ( + 17, - CAST( NULL AS SIGNED ) ) AS col2
----
13

skipif mysql # not compatible
query I rowsort label-3513
SELECT - 2 * + 18 + 32 + COALESCE ( + 17, - CAST ( NULL AS INTEGER ) ) AS col2
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-3514
SELECT - - 77 - + ( + 56 ) * - COUNT( * )
----
133

skipif mysql # not compatible
query I rowsort label-3514
SELECT - - 77 - + ( + 56 ) * - COUNT ( * )
----
133

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3515
SELECT - COALESCE ( COUNT( * ), - SUM( + 79 ) * 67 ) * COUNT( ALL CAST( NULL AS SIGNED ) * 41 ) + 66 AS col0
----
66

skipif mysql # not compatible
query I rowsort label-3515
SELECT - COALESCE ( COUNT ( * ), - SUM ( + 79 ) * 67 ) * COUNT ( ALL CAST ( NULL AS INTEGER ) * 41 ) + 66 AS col0
----
66

query I rowsort
SELECT DISTINCT + 94 * + + 66 AS col2
----
6204

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3517
SELECT ALL 31 * - CAST( NULL AS SIGNED ) + + + COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3517
SELECT ALL 31 * - CAST ( NULL AS INTEGER ) + + + COUNT ( * ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3518
SELECT - COUNT( 32 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-3518
SELECT - COUNT ( 32 ) AS col1
----
-1

query I rowsort
SELECT ALL ( 53 ) AS col2
----
53

onlyif mysql # DIV for integer division: 
query I rowsort label-3520
SELECT DISTINCT 93 * - - 56 + 48 + 51 DIV 67 * + 54
----
5256

skipif mysql # not compatible
query I rowsort label-3520
SELECT DISTINCT 93 * - - 56 + 48 + 51 / 67 * + 54
----
5256

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3521
SELECT ALL CAST( 74 AS SIGNED )
----
74

skipif mysql # not compatible
query I rowsort label-3521
SELECT ALL CAST ( 74 AS INTEGER )
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-3522
SELECT + 8 + - + 72 * + + ( COUNT( + 33 ) )
----
-64

skipif mysql # not compatible
query I rowsort label-3522
SELECT + 8 + - + 72 * + + ( COUNT ( + 33 ) )
----
-64

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3523
SELECT DISTINCT NULLIF ( + 83, + + 13 * MIN( DISTINCT + CAST( NULL AS SIGNED ) ) ) * - ( - 41 )
----
3403

skipif mysql # not compatible
query I rowsort label-3523
SELECT DISTINCT NULLIF ( + 83, + + 13 * MIN ( DISTINCT + CAST ( NULL AS INTEGER ) ) ) * - ( - 41 )
----
3403

query I rowsort
SELECT + 2 + + + 93 AS col0
----
95

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3525
SELECT ALL ( + + MIN( - CAST( 78 AS SIGNED ) ) ) * - CAST( - 58 AS SIGNED ) AS col0
----
-4524

skipif mysql # not compatible
query I rowsort label-3525
SELECT ALL ( + + MIN ( - CAST ( 78 AS INTEGER ) ) ) * - CAST ( - 58 AS INTEGER ) AS col0
----
-4524

onlyif mysql # aggregate syntax: 
query I rowsort label-3526
SELECT ALL ( + + 10 ) - CASE - 3 WHEN 41 THEN 56 * 11 + 74 * - 93 WHEN 4 THEN NULL ELSE 62 END + COUNT( - 91 ) * - 3
----
-55

skipif mysql # not compatible
query I rowsort label-3526
SELECT ALL ( + + 10 ) - CASE - 3 WHEN 41 THEN 56 * 11 + 74 * - 93 WHEN 4 THEN NULL ELSE 62 END + COUNT ( - 91 ) * - 3
----
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-3527
SELECT + 89 * - - 89 * - + COUNT( * )
----
-7921

skipif mysql # not compatible
query I rowsort label-3527
SELECT + 89 * - - 89 * - + COUNT ( * )
----
-7921

onlyif mysql # aggregate syntax: 
query I rowsort label-3528
SELECT ALL MIN( + 74 ) - 53 * 57 + + COUNT( * ) * - 80 AS col0
----
-3027

skipif mysql # not compatible
query I rowsort label-3528
SELECT ALL MIN ( + 74 ) - 53 * 57 + + COUNT ( * ) * - 80 AS col0
----
-3027

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3529
SELECT DISTINCT COUNT( + CAST( NULL AS SIGNED ) )
----
0

skipif mysql # not compatible
query I rowsort label-3529
SELECT DISTINCT COUNT ( + CAST ( NULL AS INTEGER ) )
----
0

query II rowsort
SELECT + 24 * - + 85 AS col1, + 89 AS col1
----
-2040
89

query I rowsort
SELECT ALL 30 * 75 AS col0
----
2250

onlyif mysql # DIV for integer division: 
query I rowsort label-3532
SELECT + 42 DIV 75 DIV - 87 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3532
SELECT + 42 / 75 / - 87 AS col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3533
SELECT ALL CASE 22 WHEN CAST( NULL AS SIGNED ) + + 74 * 78 THEN COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-3533
SELECT ALL CASE 22 WHEN CAST ( NULL AS INTEGER ) + + 74 * 78 THEN COUNT ( * ) END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-3534
SELECT ALL COUNT( * ) - + CAST( NULL AS DECIMAL ) AS col0, 84
----
NULL
84

skipif mysql # not compatible
query II rowsort label-3534
SELECT ALL COUNT ( * ) - + CAST ( NULL AS REAL ) AS col0, 84
----
NULL
84

onlyif mysql # aggregate syntax: 
query I rowsort label-3535
SELECT + 88 * - - COUNT( * ) AS col1
----
88

skipif mysql # not compatible
query I rowsort label-3535
SELECT + 88 * - - COUNT ( * ) AS col1
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-3536
SELECT + + MIN( ALL + 37 ) - 2 AS col1
----
35

skipif mysql # not compatible
query I rowsort label-3536
SELECT + + MIN ( ALL + 37 ) - 2 AS col1
----
35

onlyif mysql # DIV for integer division: 
query II rowsort label-3537
SELECT + + 52 DIV + 82 AS col0, 97 AS col2
----
0
97

skipif mysql # not compatible
query II rowsort label-3537
SELECT + + 52 / + 82 AS col0, 97 AS col2
----
0
97

query I rowsort
SELECT ALL + ( + 16 )
----
16

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3539
SELECT CASE MAX( DISTINCT + 10 ) WHEN COALESCE ( - 26, 32, + 66 * + 33 + CASE + 95 WHEN COALESCE ( + 38, CAST( NULL AS SIGNED ) + 20, 47 * SUM( ALL 91 ) ) - - MIN( 5 + - 39 ) THEN + 54 * 32 + - 49 ELSE 19 / ( + 98 ) END, 27 ) + + 22 * 2 THEN NULL WHEN - 93 THEN MIN( + 98 ) * + 62 END * - 12 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3539
SELECT CASE MAX ( DISTINCT + 10 ) WHEN COALESCE ( - 26, 32, + 66 * + 33 + CASE + 95 WHEN COALESCE ( + 38, CAST ( NULL AS INTEGER ) + 20, 47 * SUM ( ALL 91 ) ) - - MIN ( 5 + - 39 ) THEN + 54 * 32 + - 49 ELSE 19 / ( + 98 ) END, 27 ) + + 22 * 2 THEN NULL WHEN - 93 THEN MIN ( + 98 ) * + 62 END * - 12 col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3540
SELECT ALL - - COUNT( 88 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-3540
SELECT ALL - - COUNT ( 88 ) AS col1
----
1

query I rowsort
SELECT ALL + - 50 * + - 71 col1
----
3550

query II rowsort
SELECT DISTINCT + 94 * + 98, - 58 AS col2
----
9212
-58

query I rowsort
SELECT 39 - + - 46 AS col1
----
85

onlyif mysql # aggregate syntax: 
query II rowsort label-3544
SELECT + COUNT( 15 ) AS col2, - ( 24 ) AS col2
----
1
-24

skipif mysql # not compatible
query II rowsort label-3544
SELECT + COUNT ( 15 ) AS col2, - ( 24 ) AS col2
----
1
-24

query I rowsort
SELECT ALL - 70 + - 4
----
-74

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3546
SELECT - 0 / + CAST( NULL AS SIGNED ) * - 81 + + - MIN( DISTINCT - 52 ) + 24 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3546
SELECT - 0 / + CAST ( NULL AS INTEGER ) * - 81 + + - MIN ( DISTINCT - 52 ) + 24 AS col1
----
NULL

query I rowsort
SELECT 49 * - 49 - 84 AS col1
----
-2485

query I rowsort
SELECT + 6 + 43 AS col0
----
49

query I rowsort
SELECT ALL 85 + - - 72 + - 96 + 69 * + 17 * + 24 col2
----
28213

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3550
SELECT ALL - COUNT( * ) + CASE + CAST( NULL AS SIGNED ) WHEN - 5 / - NULLIF ( 48, + 25 ) - - CAST( + 3 + + COUNT( * ) * - 95 AS SIGNED ) / + CAST( NULL AS SIGNED ) THEN 72 + - 87 WHEN - COUNT( * ) * - 85 THEN NULL WHEN + 93 THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-3550
SELECT ALL - COUNT ( * ) + CASE + CAST ( NULL AS INTEGER ) WHEN - 5 / - NULLIF ( 48, + 25 ) - - CAST ( + 3 + + COUNT ( * ) * - 95 AS INTEGER ) / + CAST ( NULL AS INTEGER ) THEN 72 + - 87 WHEN - COUNT ( * ) * - 85 THEN NULL WHEN + 93 THEN NULL ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3551
SELECT 92 * + NULLIF ( + CASE 61 WHEN + - MIN( DISTINCT + 3 ) + - 53 / 91 THEN + NULLIF ( 20, 93 * MIN( - 76 ) ) END, - 3 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3551
SELECT 92 * + NULLIF ( + CASE 61 WHEN + - MIN ( DISTINCT + 3 ) + - 53 / 91 THEN + NULLIF ( 20, 93 * MIN ( - 76 ) ) END, - 3 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3552
SELECT DISTINCT - 35 + 87 * - + COUNT( + - 80 )
----
-122

skipif mysql # not compatible
query I rowsort label-3552
SELECT DISTINCT - 35 + 87 * - + COUNT ( + - 80 )
----
-122

query I rowsort
SELECT ALL - ( + + 98 )
----
-98

query I rowsort
SELECT 1 * - ( 90 ) AS col1
----
-90

onlyif mysql # DIV for integer division: 
query I rowsort label-3555
SELECT ALL + 72 + 47 DIV - 77
----
72

skipif mysql # not compatible
query I rowsort label-3555
SELECT ALL + 72 + 47 / - 77
----
72

query I rowsort
SELECT 82 - - 34 AS col1
----
116

query I rowsort
SELECT DISTINCT - 99 * - 94 AS col2
----
9306

onlyif mysql # DIV for integer division: 
query I rowsort label-3558
SELECT 91 + 32 - + 96 DIV + 60
----
122

skipif mysql # not compatible
query I rowsort label-3558
SELECT 91 + 32 - + 96 / + 60
----
122

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3559
SELECT COUNT( * ) * + CAST( + 83 AS SIGNED )
----
83

skipif mysql # not compatible
query I rowsort label-3559
SELECT COUNT ( * ) * + CAST ( + 83 AS INTEGER )
----
83

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3560
SELECT 30 * - 45 * - + CAST( NULL AS SIGNED ) AS col0, 52 AS col0
----
NULL
52

skipif mysql # not compatible
query II rowsort label-3560
SELECT 30 * - 45 * - + CAST ( NULL AS INTEGER ) AS col0, 52 AS col0
----
NULL
52

query I rowsort
SELECT 1 + 77
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-3562
SELECT ALL - ( + 41 ) - + COUNT( * )
----
-42

skipif mysql # not compatible
query I rowsort label-3562
SELECT ALL - ( + 41 ) - + COUNT ( * )
----
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-3563
SELECT ALL + 45 * ( SUM( + 8 ) ) AS col2
----
360

skipif mysql # not compatible
query I rowsort label-3563
SELECT ALL + 45 * ( SUM ( + 8 ) ) AS col2
----
360

onlyif mysql # aggregate syntax: 
query I rowsort label-3564
SELECT COUNT( * ) - + COUNT( * ) * - COUNT( * ) + + 29
----
31

skipif mysql # not compatible
query I rowsort label-3564
SELECT COUNT ( * ) - + COUNT ( * ) * - COUNT ( * ) + + 29
----
31

query I rowsort
SELECT 6 * 24 AS col1
----
144

query I rowsort
SELECT 16 + 30 col0
----
46

query I rowsort
SELECT 92 + - 25 AS col1
----
67

query I rowsort
SELECT 36 - - 54 col0
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-3569
SELECT - 61 + COUNT( * ) AS col2
----
-60

skipif mysql # not compatible
query I rowsort label-3569
SELECT - 61 + COUNT ( * ) AS col2
----
-60

query I rowsort
SELECT DISTINCT - 35 + 86
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-3571
SELECT ALL - 76 + - 10 * + COUNT( * ) col0
----
-86

skipif mysql # not compatible
query I rowsort label-3571
SELECT ALL - 76 + - 10 * + COUNT ( * ) col0
----
-86

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3572
SELECT ALL - COALESCE ( - + CAST( COUNT( * ) AS SIGNED ), + + 16, + 62 ) col2
----
1

skipif mysql # not compatible
query I rowsort label-3572
SELECT ALL - COALESCE ( - + CAST ( COUNT ( * ) AS INTEGER ), + + 16, + 62 ) col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3573
SELECT CASE + COUNT( * ) WHEN - 18 / + AVG ( ALL 70 ) * 50 THEN COUNT( * ) WHEN - MAX( DISTINCT 57 ) * + 88 THEN - 83 + 94 * 12 ELSE NULL END * + 34 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3573
SELECT CASE + COUNT ( * ) WHEN - 18 / + AVG ( ALL 70 ) * 50 THEN COUNT ( * ) WHEN - MAX ( DISTINCT 57 ) * + 88 THEN - 83 + 94 * 12 ELSE NULL END * + 34 AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3574
SELECT - 52 * CAST( NULL AS SIGNED ) + - ( 89 ) * + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-3574
SELECT - 52 * CAST ( NULL AS INTEGER ) + - ( 89 ) * + COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3575
SELECT ALL - MIN( ALL - 3 ) + + 80 AS col1
----
83

skipif mysql # not compatible
query I rowsort label-3575
SELECT ALL - MIN ( ALL - 3 ) + + 80 AS col1
----
83

query I rowsort
SELECT ALL 7 + 24
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-3577
SELECT + 86 + COUNT( * ) - - 1 * - 21
----
66

skipif mysql # not compatible
query I rowsort label-3577
SELECT + 86 + COUNT ( * ) - - 1 * - 21
----
66

query I rowsort
SELECT 33 * + - 99 + 46 AS col2
----
-3221

query I rowsort
SELECT + - ( - 8 ) AS col2
----
8

query I rowsort
SELECT ALL 74 + - 27 * + - 2 + + 56
----
184

query I rowsort
SELECT DISTINCT - + 6 * - 79 col0
----
474

query I rowsort
SELECT ALL - + ( + 60 ) AS col2
----
-60

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3583
SELECT DISTINCT CAST( MIN( DISTINCT + 88 ) AS SIGNED ) + CASE + 56 WHEN - 44 THEN NULL WHEN + 11 * + 55 + - ( + 79 ) THEN - 8 * 80 + + MIN( ALL - 25 ) ELSE 56 END
----
144

skipif mysql # not compatible
query I rowsort label-3583
SELECT DISTINCT CAST ( MIN ( DISTINCT + 88 ) AS INTEGER ) + CASE + 56 WHEN - 44 THEN NULL WHEN + 11 * + 55 + - ( + 79 ) THEN - 8 * 80 + + MIN ( ALL - 25 ) ELSE 56 END
----
144

query I rowsort
SELECT ALL 21 * + 75
----
1575

query I rowsort
SELECT 1 + 10 AS col2
----
11

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3586
SELECT + 41 * 85 * + + 87 + + COUNT( * ) + + - 79 DIV - + 71 AS col0
----
303197

skipif mysql # not compatible
query I rowsort label-3586
SELECT + 41 * 85 * + + 87 + + COUNT ( * ) + + - 79 / - + 71 AS col0
----
303197

query I rowsort
SELECT 85 * + + 33 * + 49 AS col1
----
137445

onlyif mysql # DIV for integer division: 
query I rowsort label-3588
SELECT 91 + - - 49 DIV + + 6 AS col2
----
99

skipif mysql # not compatible
query I rowsort label-3588
SELECT 91 + - - 49 / + + 6 AS col2
----
99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3589
SELECT ALL + ( + MAX( ALL + 30 ) ) - - - 69 - - - CAST( NULL AS SIGNED ) / - - 53 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3589
SELECT ALL + ( + MAX ( ALL + 30 ) ) - - - 69 - - - CAST ( NULL AS INTEGER ) / - - 53 AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3590
SELECT 16 + + + COUNT( * ) + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3590
SELECT 16 + + + COUNT ( * ) + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT DISTINCT - ( 91 ) * 34
----
-3094

onlyif mysql # aggregate syntax: 
query I rowsort label-3592
SELECT - COUNT( * ) * + ( 4 ) * + + MAX( DISTINCT - 69 ) + + 87 + 73 * + COUNT( - 5 ) AS col2
----
436

skipif mysql # not compatible
query I rowsort label-3592
SELECT - COUNT ( * ) * + ( 4 ) * + + MAX ( DISTINCT - 69 ) + + 87 + 73 * + COUNT ( - 5 ) AS col2
----
436

query II rowsort
SELECT ALL 91 AS col0, + 73
----
91
73

onlyif mysql # DIV for integer division: 
query I rowsort label-3594
SELECT ALL - 87 DIV + - 46
----
1

skipif mysql # not compatible
query I rowsort label-3594
SELECT ALL - 87 / + - 46
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-3595
SELECT ALL COUNT( * ) AS col0, - 63 * - + 35
----
1
2205

skipif mysql # not compatible
query II rowsort label-3595
SELECT ALL COUNT ( * ) AS col0, - 63 * - + 35
----
1
2205

query I rowsort
SELECT - NULLIF ( 37, + 11 )
----
-37

onlyif mysql # DIV for integer division: 
query I rowsort label-3597
SELECT 19 DIV - - 9 AS col1
----
2

skipif mysql # not compatible
query I rowsort label-3597
SELECT 19 / - - 9 AS col1
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-3598
SELECT ALL + ( 6 ) * - 67 + - MIN( - 28 ) * 97 AS col1
----
2314

skipif mysql # not compatible
query I rowsort label-3598
SELECT ALL + ( 6 ) * - 67 + - MIN ( - 28 ) * 97 AS col1
----
2314

onlyif mysql # aggregate syntax: 
query I rowsort label-3599
SELECT ALL COUNT( ALL - ( - 53 ) )
----
1

skipif mysql # not compatible
query I rowsort label-3599
SELECT ALL COUNT ( ALL - ( - 53 ) )
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3600
SELECT DISTINCT COUNT( * ) + + COUNT( * ) DIV 49
----
1

skipif mysql # not compatible
query I rowsort label-3600
SELECT DISTINCT COUNT ( * ) + + COUNT ( * ) / 49
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3601
SELECT ALL + ( + + NULLIF ( CASE + 86 WHEN - 15 * COUNT( * ) THEN + COALESCE ( - CASE 53 WHEN COUNT( * ) + + ( + 7 ) * 7 THEN NULL WHEN CASE + 71 WHEN COALESCE ( 46, - 85 * - 44 + 8 ) THEN + 47 END THEN + 43 * COUNT( * ) END, + 44, - 28 ) * - 22 + + 62 WHEN 15 + 84 * + ( - 46 * + COUNT( * ) ) THEN - ( + 72 ) + 76 ELSE NULL END, + COUNT( * ) / 36 ) ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3601
SELECT ALL + ( + + NULLIF ( CASE + 86 WHEN - 15 * COUNT ( * ) THEN + COALESCE ( - CASE 53 WHEN COUNT ( * ) + + ( + 7 ) * 7 THEN NULL WHEN CASE + 71 WHEN COALESCE ( 46, - 85 * - 44 + 8 ) THEN + 47 END THEN + 43 * COUNT ( * ) END, + 44, - 28 ) * - 22 + + 62 WHEN 15 + 84 * + ( - 46 * + COUNT ( * ) ) THEN - ( + 72 ) + 76 ELSE NULL END, + COUNT ( * ) / 36 ) ) col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3602
SELECT COUNT( + 20 )
----
1

skipif mysql # not compatible
query I rowsort label-3602
SELECT COUNT ( + 20 )
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3603
SELECT ALL + 86 + + - CAST( - CASE COUNT( * ) WHEN - 19 THEN + 94 ELSE NULL END AS SIGNED ) + 34 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3603
SELECT ALL + 86 + + - CAST ( - CASE COUNT ( * ) WHEN - 19 THEN + 94 ELSE NULL END AS INTEGER ) + 34 AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3604
SELECT DISTINCT - 27 + 53 + + CAST( NULL AS SIGNED ) + + + 70 / - COALESCE ( - 32, + 1, CAST( NULL AS SIGNED ) ) + - 30
----
NULL

skipif mysql # not compatible
query I rowsort label-3604
SELECT DISTINCT - 27 + 53 + + CAST ( NULL AS INTEGER ) + + + 70 / - COALESCE ( - 32, + 1, CAST ( NULL AS INTEGER ) ) + - 30
----
NULL

query I rowsort
SELECT ALL + 5 + + 75 AS col1
----
80

query I rowsort
SELECT DISTINCT - 47 + + - 67 * - 92 AS col0
----
6117

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-3607
SELECT 32 AS col0, + SUM( - 38 ) * - 93 + - CAST( NULL AS DECIMAL ) + + - 71
----
32
NULL

skipif mysql # not compatible
query II rowsort label-3607
SELECT 32 AS col0, + SUM ( - 38 ) * - 93 + - CAST ( NULL AS REAL ) + + - 71
----
32
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3608
SELECT DISTINCT + + 79 + - COUNT( * ) AS col1
----
78

skipif mysql # not compatible
query I rowsort label-3608
SELECT DISTINCT + + 79 + - COUNT ( * ) AS col1
----
78

query I rowsort
SELECT - 48 - + 69 AS col2
----
-117

onlyif mysql # aggregate syntax: 
query I rowsort label-3610
SELECT ALL + - ( - 42 ) + CASE 53 WHEN - 58 THEN - 93 * 49 + 23 * 69 WHEN ( + 54 ) * 63 THEN SUM( 35 ) END + + 77 * + ( - 6 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3610
SELECT ALL + - ( - 42 ) + CASE 53 WHEN - 58 THEN - 93 * 49 + 23 * 69 WHEN ( + 54 ) * 63 THEN SUM ( 35 ) END + + 77 * + ( - 6 )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3611
SELECT - SUM( - - 31 ) - - MIN( ALL + + CAST( NULL AS SIGNED ) ) * - 35
----
NULL

skipif mysql # not compatible
query I rowsort label-3611
SELECT - SUM ( - - 31 ) - - MIN ( ALL + + CAST ( NULL AS INTEGER ) ) * - 35
----
NULL

query I rowsort
SELECT + - CASE - 67 WHEN + + 10 + 64 THEN - 53 * + 72 * + 68 END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3613
SELECT DISTINCT 87 * + ( - + 62 ) + - COUNT( * ) * - 99 col0
----
-5295

skipif mysql # not compatible
query I rowsort label-3613
SELECT DISTINCT 87 * + ( - + 62 ) + - COUNT ( * ) * - 99 col0
----
-5295

query I rowsort
SELECT ALL - 79 * 44 AS col2
----
-3476

onlyif mysql # aggregate syntax: 
query I rowsort label-3615
SELECT DISTINCT 23 * + SUM( DISTINCT - 84 )
----
-1932

skipif mysql # not compatible
query I rowsort label-3615
SELECT DISTINCT 23 * + SUM ( DISTINCT - 84 )
----
-1932

onlyif mysql # DIV for integer division: 
query I rowsort label-3616
SELECT + 32 DIV + 54 - + - 35 col2
----
35

skipif mysql # not compatible
query I rowsort label-3616
SELECT + 32 / + 54 - + - 35 col2
----
35

query I rowsort
SELECT ALL + + 24 * + - 12 col0
----
-288

query I rowsort
SELECT DISTINCT + + ( - + 59 ) AS col0
----
-59

query I rowsort
SELECT + 24 - 54
----
-30

query I rowsort
SELECT NULLIF ( + 66, - + 82 )
----
66

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3621
SELECT ALL ( 10 ) * - 4 DIV + + SUM( - 56 ) - 61 * + 60
----
-3660

skipif mysql # not compatible
query I rowsort label-3621
SELECT ALL ( 10 ) * - 4 / + + SUM ( - 56 ) - 61 * + 60
----
-3660

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3622
SELECT - CASE 92 WHEN - + 98 THEN - 5 + 87 ELSE - 66 END DIV CAST( 99 AS SIGNED ) * - 5 + + NULLIF ( - 21, - 23 ) * COUNT( * ) AS col0
----
-21

skipif mysql # not compatible
query I rowsort label-3622
SELECT - CASE 92 WHEN - + 98 THEN - 5 + 87 ELSE - 66 END / CAST ( 99 AS INTEGER ) * - 5 + + NULLIF ( - 21, - 23 ) * COUNT ( * ) AS col0
----
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-3623
SELECT + 85 * - MIN( 23 )
----
-1955

skipif mysql # not compatible
query I rowsort label-3623
SELECT + 85 * - MIN ( 23 )
----
-1955

onlyif mysql # aggregate syntax: 
query II rowsort label-3624
SELECT + COUNT( ALL 83 ) AS col2, COUNT( * ) AS col2
----
1
1

skipif mysql # not compatible
query II rowsort label-3624
SELECT + COUNT ( ALL 83 ) AS col2, COUNT ( * ) AS col2
----
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3625
SELECT + 55 + + 73 + - 29 * 26 * - MAX( + - 28 )
----
-20984

skipif mysql # not compatible
query I rowsort label-3625
SELECT + 55 + + 73 + - 29 * 26 * - MAX ( + - 28 )
----
-20984

query II rowsort
SELECT DISTINCT + ( 40 ) AS col2, - 77 * 59 col0
----
40
-4543

query I rowsort
SELECT ALL COALESCE ( 30, ( + 77 ), - ( - 25 ) ) * 78 AS col1
----
2340

query I rowsort
SELECT + 49 * - 38 AS col0
----
-1862

onlyif mysql # aggregate syntax: 
query I rowsort label-3629
SELECT ALL ( + COUNT( DISTINCT - 6 ) ) * 18
----
18

skipif mysql # not compatible
query I rowsort label-3629
SELECT ALL ( + COUNT ( DISTINCT - 6 ) ) * 18
----
18

query I rowsort
SELECT DISTINCT 66 * + 14 col1
----
924

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3631
SELECT + 89 * - CAST( NULL AS SIGNED ) * - 91
----
NULL

skipif mysql # not compatible
query I rowsort label-3631
SELECT + 89 * - CAST ( NULL AS INTEGER ) * - 91
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3632
SELECT + 95 * 17 * COUNT( * ) * - + 52
----
-83980

skipif mysql # not compatible
query I rowsort label-3632
SELECT + 95 * 17 * COUNT ( * ) * - + 52
----
-83980

onlyif mysql # aggregate syntax: 
query I rowsort label-3633
SELECT ALL COUNT( * ) * + 19
----
19

skipif mysql # not compatible
query I rowsort label-3633
SELECT ALL COUNT ( * ) * + 19
----
19

query I rowsort
SELECT + 7 - 77
----
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-3635
SELECT + 83 + + ( 25 ) + - ( + + 93 ) - + 94 * + 73 + + NULLIF ( 81, 37 ) * - ( COUNT( * ) ) col0
----
-6928

skipif mysql # not compatible
query I rowsort label-3635
SELECT + 83 + + ( 25 ) + - ( + + 93 ) - + 94 * + 73 + + NULLIF ( 81, 37 ) * - ( COUNT ( * ) ) col0
----
-6928

onlyif mysql # aggregate syntax: 
query II rowsort label-3636
SELECT DISTINCT + 38 + + 54 AS col2, COUNT( * )
----
92
1

skipif mysql # not compatible
query II rowsort label-3636
SELECT DISTINCT + 38 + + 54 AS col2, COUNT ( * )
----
92
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3637
SELECT ALL - - 56 + - ( + 99 ) + + COUNT( * ) * CASE + ( 67 ) WHEN + ( - COUNT( * ) ) + - CASE - 2 WHEN MAX( + 51 ) THEN 55 * + 72 END THEN NULL WHEN + 78 + + COUNT( * ) THEN + 7 WHEN MIN( ALL 48 ) THEN NULL END / 47 + + 9 * 24
----
NULL

skipif mysql # not compatible
query I rowsort label-3637
SELECT ALL - - 56 + - ( + 99 ) + + COUNT ( * ) * CASE + ( 67 ) WHEN + ( - COUNT ( * ) ) + - CASE - 2 WHEN MAX ( + 51 ) THEN 55 * + 72 END THEN NULL WHEN + 78 + + COUNT ( * ) THEN + 7 WHEN MIN ( ALL 48 ) THEN NULL END / 47 + + 9 * 24
----
NULL

query I rowsort
SELECT ALL + COALESCE ( 33, + - 15 + - + 86 + 13 * - - 24 + - + 91 * 49, - 80 ) + + 40 AS col0
----
73

onlyif mysql # aggregate syntax: 
query I rowsort label-3639
SELECT ALL + + 43 * + - MAX( DISTINCT - 87 )
----
3741

skipif mysql # not compatible
query I rowsort label-3639
SELECT ALL + + 43 * + - MAX ( DISTINCT - 87 )
----
3741

onlyif mysql # aggregate syntax: 
query II rowsort label-3640
SELECT DISTINCT + COUNT( * ) + 9 AS col2, + 66 + - COUNT( * )
----
10
65

skipif mysql # not compatible
query II rowsort label-3640
SELECT DISTINCT + COUNT ( * ) + 9 AS col2, + 66 + - COUNT ( * )
----
10
65

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3641
SELECT ALL + - CASE - + 31 WHEN - - ( + + 97 ) - AVG ( ALL + + 43 ) THEN - CAST( - ( 95 ) AS SIGNED ) + - 20 * + 26 WHEN COUNT( * ) * + 19 THEN NULL WHEN + COUNT( * ) THEN - 50 WHEN - COUNT( DISTINCT 91 ) THEN NULL END + COUNT( * ) * + COUNT( ALL 65 * + 24 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3641
SELECT ALL + - CASE - + 31 WHEN - - ( + + 97 ) - AVG ( ALL + + 43 ) THEN - CAST ( - ( 95 ) AS INTEGER ) + - 20 * + 26 WHEN COUNT ( * ) * + 19 THEN NULL WHEN + COUNT ( * ) THEN - 50 WHEN - COUNT ( DISTINCT 91 ) THEN NULL END + COUNT ( * ) * + COUNT ( ALL 65 * + 24 )
----
NULL

query I rowsort
SELECT + + 68 + - 85 * + 93 AS col0
----
-7837

query I rowsort
SELECT + NULLIF ( 86, - - 53 ) AS col0
----
86

query I rowsort
SELECT - - 94 + 97 * + 50 * - 20 * - ( - - 88 ) AS col2
----
8536094

query I rowsort
SELECT ALL - 83 * + + 14 * + 36 AS col1
----
-41832

onlyif mysql # aggregate syntax: 
query I rowsort label-3646
SELECT - + COUNT( * ) + 84 * - 23
----
-1933

skipif mysql # not compatible
query I rowsort label-3646
SELECT - + COUNT ( * ) + 84 * - 23
----
-1933

query I rowsort
SELECT ALL + 13 - + 63 AS col2
----
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-3648
SELECT - - 44 + + - CASE + 11 WHEN - 65 * 88 THEN - COALESCE ( - COUNT( * ), ( + 56 ) - - COUNT( * ), - 5 ) * 11 ELSE 81 END - 74
----
-111

skipif mysql # not compatible
query I rowsort label-3648
SELECT - - 44 + + - CASE + 11 WHEN - 65 * 88 THEN - COALESCE ( - COUNT ( * ), ( + 56 ) - - COUNT ( * ), - 5 ) * 11 ELSE 81 END - 74
----
-111

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3649
SELECT ALL - + 72 * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3649
SELECT ALL - + 72 * CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3650
SELECT ALL + - COALESCE ( 24, - - COUNT( * ) * 89 ) AS col1
----
-24

skipif mysql # not compatible
query I rowsort label-3650
SELECT ALL + - COALESCE ( 24, - - COUNT ( * ) * 89 ) AS col1
----
-24

query I rowsort
SELECT - + 67 * + 3
----
-201

query I rowsort
SELECT - 22 + - 55
----
-77

query I rowsort
SELECT - 97 + - - ( ( - - 11 ) ) + NULLIF ( 34, - 68 + + - 28 * - 36 ) + - 54
----
-106

query I rowsort
SELECT + 62 * 97 AS col1
----
6014

onlyif mysql # aggregate syntax: 
query I rowsort label-3655
SELECT ALL + CASE - - SUM( DISTINCT 77 ) WHEN - 11 THEN NULL WHEN + 80 THEN NULL WHEN + - 76 + + + 62 + + - 23 + + 17 * + 19 / COUNT( * ) THEN 60 ELSE 38 END * + 7 AS col1
----
266

skipif mysql # not compatible
query I rowsort label-3655
SELECT ALL + CASE - - SUM ( DISTINCT 77 ) WHEN - 11 THEN NULL WHEN + 80 THEN NULL WHEN + - 76 + + + 62 + + - 23 + + 17 * + 19 / COUNT ( * ) THEN 60 ELSE 38 END * + 7 AS col1
----
266

onlyif mysql # aggregate syntax: 
query I rowsort label-3656
SELECT - COUNT( * ) * + 93 + + + 53 + + + 61 AS col0
----
21

skipif mysql # not compatible
query I rowsort label-3656
SELECT - COUNT ( * ) * + 93 + + + 53 + + + 61 AS col0
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-3657
SELECT ALL + COALESCE ( + - 80, + + COUNT( ALL - 85 ) + + 49 ) AS col1
----
-80

skipif mysql # not compatible
query I rowsort label-3657
SELECT ALL + COALESCE ( + - 80, + + COUNT ( ALL - 85 ) + + 49 ) AS col1
----
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-3658
SELECT ALL + MAX( - 9 ) AS col0
----
-9

skipif mysql # not compatible
query I rowsort label-3658
SELECT ALL + MAX ( - 9 ) AS col0
----
-9

onlyif mysql # DIV for integer division: 
query I rowsort label-3659
SELECT - 90 DIV - 63 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-3659
SELECT - 90 / - 63 AS col0
----
1

query I rowsort
SELECT 26 + - + 46 * 19
----
-848

query I rowsort
SELECT NULLIF ( - - 68, + + 76 ) * + 94 + 70 AS col1
----
6462

onlyif mysql # aggregate syntax: 
query II rowsort label-3662
SELECT DISTINCT - 96 AS col1, + SUM( 24 )
----
-96
24

skipif mysql # not compatible
query II rowsort label-3662
SELECT DISTINCT - 96 AS col1, + SUM ( 24 )
----
-96
24

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3663
SELECT ALL 54 DIV COUNT( * )
----
54

skipif mysql # not compatible
query I rowsort label-3663
SELECT ALL 54 / COUNT ( * )
----
54

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3664
SELECT COALESCE ( 6, + 48, + 55, COUNT( * ) * + 18 ) DIV - 10
----
0

skipif mysql # not compatible
query I rowsort label-3664
SELECT COALESCE ( 6, + 48, + 55, COUNT ( * ) * + 18 ) / - 10
----
0

query I rowsort
SELECT DISTINCT + 96 + + 29 + NULLIF ( - 22, - + 50 ) AS col0
----
103

onlyif mysql # aggregate syntax: 
query II rowsort label-3666
SELECT DISTINCT 89 + 18 + COUNT( * ), + 34 * + + 60 AS col1
----
108
2040

skipif mysql # not compatible
query II rowsort label-3666
SELECT DISTINCT 89 + 18 + COUNT ( * ), + 34 * + + 60 AS col1
----
108
2040

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3667
SELECT MIN( + 47 ) + - 17 + MAX( DISTINCT + 20 ) + + + 24 DIV - + ( - 10 ) + 37
----
89

skipif mysql # not compatible
query I rowsort label-3667
SELECT MIN ( + 47 ) + - 17 + MAX ( DISTINCT + 20 ) + + + 24 / - + ( - 10 ) + 37
----
89

query II rowsort
SELECT DISTINCT 56 AS col1, 76 * 19 * + 4
----
56
5776

onlyif mysql # DIV for integer division: 
query I rowsort label-3669
SELECT ALL 18 DIV - 48
----
0

skipif mysql # not compatible
query I rowsort label-3669
SELECT ALL 18 / - 48
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3670
SELECT MAX( DISTINCT 80 ) * + 38 * - + 17 + 53 AS col2
----
-51627

skipif mysql # not compatible
query I rowsort label-3670
SELECT MAX ( DISTINCT 80 ) * + 38 * - + 17 + 53 AS col2
----
-51627

query I rowsort
SELECT + 63 + - 33 - + 30 + - 27 * 47 col2
----
-1269

query I rowsort
SELECT ALL + 78 + + 64
----
142

query I rowsort
SELECT - + NULLIF ( + 46, - 35 * + 26 )
----
-46

query II rowsort
SELECT - - 59 AS col1, 83 * 23 AS col0
----
59
1909

onlyif mysql # aggregate syntax: 
query I rowsort label-3675
SELECT DISTINCT 51 + + 76 + - + 95 * + 38 + + MIN( ALL - - 33 )
----
-3450

skipif mysql # not compatible
query I rowsort label-3675
SELECT DISTINCT 51 + + 76 + - + 95 * + 38 + + MIN ( ALL - - 33 )
----
-3450

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3676
SELECT + CAST( NULL AS SIGNED ) * - 22
----
NULL

skipif mysql # not compatible
query I rowsort label-3676
SELECT + CAST ( NULL AS INTEGER ) * - 22
----
NULL

query II rowsort
SELECT ALL - 80 AS col0, - 51 col0
----
-80
-51

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3678
SELECT ALL COUNT( * ) - + COUNT( + 4 ), - COALESCE ( 23, - + COALESCE ( + 63, - - 28 ) DIV - 66 ) AS col0
----
0
-23

skipif mysql # not compatible
query II rowsort label-3678
SELECT ALL COUNT ( * ) - + COUNT ( + 4 ), - COALESCE ( 23, - + COALESCE ( + 63, - - 28 ) / - 66 ) AS col0
----
0
-23

query I rowsort
SELECT DISTINCT + 84 * - 30
----
-2520

query I rowsort
SELECT - 66 * - - 75
----
-4950

query I rowsort
SELECT - 23 + + 22 AS col2
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3682
SELECT ALL - COUNT( * ) / + + CAST( NULL AS SIGNED ) / - COUNT( * ) / - + 14 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3682
SELECT ALL - COUNT ( * ) / + + CAST ( NULL AS INTEGER ) / - COUNT ( * ) / - + 14 col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3683
SELECT + COUNT( * ) DIV - + 94 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3683
SELECT + COUNT ( * ) / - + 94 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3684
SELECT + COUNT( * ) - - + 63 - + 34 + + + 14
----
44

skipif mysql # not compatible
query I rowsort label-3684
SELECT + COUNT ( * ) - - + 63 - + 34 + + + 14
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-3685
SELECT NULLIF ( - 8, COUNT( * ) * - ( + + 67 ) + - - 93 * + 77 )
----
-8

skipif mysql # not compatible
query I rowsort label-3685
SELECT NULLIF ( - 8, COUNT ( * ) * - ( + + 67 ) + - - 93 * + 77 )
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-3686
SELECT MIN( - + 98 ) - - + 49 + + 15 AS col0
----
-34

skipif mysql # not compatible
query I rowsort label-3686
SELECT MIN ( - + 98 ) - - + 49 + + 15 AS col0
----
-34

query I rowsort
SELECT 1 * - 98 col0
----
-98

onlyif mysql # DIV for integer division: 
query I rowsort label-3688
SELECT ALL - 27 DIV + 7
----
-3

skipif mysql # not compatible
query I rowsort label-3688
SELECT ALL - 27 / + 7
----
-3

query I rowsort
SELECT DISTINCT - ( - 5 ) AS col0
----
5

query I rowsort
SELECT DISTINCT + NULLIF ( 26, + 71 ) + - 5 AS col1
----
21

query I rowsort
SELECT ( - CASE - ( + - 55 ) WHEN + + 93 THEN - 10 * 60 + 75 + + 77 * - 41 END ) * + 85 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3692
SELECT 36 * - 12 * - ( + 65 ) AS col2, 53 - - 86 + + COUNT( * ) * - 31
----
28080
108

skipif mysql # not compatible
query II rowsort label-3692
SELECT 36 * - 12 * - ( + 65 ) AS col2, 53 - - 86 + + COUNT ( * ) * - 31
----
28080
108

onlyif mysql # aggregate syntax: 
query I rowsort label-3693
SELECT ALL + 82 + CASE - 78 WHEN AVG ( - + 99 ) * + 11 + + + 91 THEN - 15 + + 18 WHEN + 65 - + 42 THEN - 48 + - 96 ELSE NULL END - CASE COUNT( * ) WHEN COUNT( * ) + 7 THEN 69 + 90 * 84 WHEN 48 / COUNT( * ) + MIN( ( 50 ) + 67 ) THEN 85 ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3693
SELECT ALL + 82 + CASE - 78 WHEN AVG ( - + 99 ) * + 11 + + + 91 THEN - 15 + + 18 WHEN + 65 - + 42 THEN - 48 + - 96 ELSE NULL END - CASE COUNT ( * ) WHEN COUNT ( * ) + 7 THEN 69 + 90 * 84 WHEN 48 / COUNT ( * ) + MIN ( ( 50 ) + 67 ) THEN 85 ELSE NULL END AS col1
----
NULL

query II rowsort
SELECT 26 * - - 62 * ( + 68 ) AS col2, - 46 AS col2
----
109616
-46

query I rowsort
SELECT DISTINCT + 37 + - + 26
----
11

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3696
SELECT ALL - 83 + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3696
SELECT ALL - 83 + CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3697
SELECT DISTINCT - COUNT( 87 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-3697
SELECT DISTINCT - COUNT ( 87 ) AS col0
----
-1

query I rowsort
SELECT ALL 48 + - ( + - 69 )
----
117

query I rowsort
SELECT 64 * + 53 col0
----
3392

query I rowsort
SELECT ALL - 20 + 74
----
54

query I rowsort
SELECT 15 + + - 74 AS col1
----
-59

query I rowsort
SELECT + 5 * - + 32
----
-160

query I rowsort
SELECT 74 * + 37 col1
----
2738

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3704
SELECT 5 DIV - 48 DIV COUNT( * ) col1
----
0

skipif mysql # not compatible
query I rowsort label-3704
SELECT 5 / - 48 / COUNT ( * ) col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3705
SELECT + 14 * - 39 + + + 0 - + - COUNT( * ) - + 77 AS col2
----
-622

skipif mysql # not compatible
query I rowsort label-3705
SELECT + 14 * - 39 + + + 0 - + - COUNT ( * ) - + 77 AS col2
----
-622

query I rowsort
SELECT 54 * ( - - 5 ) AS col1
----
270

onlyif mysql # aggregate syntax: 
query I rowsort label-3707
SELECT - 3 * + 30 + + ( + 17 ) * + 43 + COUNT( * ) + ( + 99 ) - NULLIF ( 77, ( 48 ) ) + + 44 * MAX( ALL + 32 + + COALESCE ( - 16, ( 93 ) ) )
----
1368

skipif mysql # not compatible
query I rowsort label-3707
SELECT - 3 * + 30 + + ( + 17 ) * + 43 + COUNT ( * ) + ( + 99 ) - NULLIF ( 77, ( 48 ) ) + + 44 * MAX ( ALL + 32 + + COALESCE ( - 16, ( 93 ) ) )
----
1368

onlyif mysql # aggregate syntax: 
query I rowsort label-3708
SELECT + CASE - MIN( - - 53 ) WHEN 97 + - 32 THEN NULL ELSE - + 30 END + + COUNT( * )
----
-29

skipif mysql # not compatible
query I rowsort label-3708
SELECT + CASE - MIN ( - - 53 ) WHEN 97 + - 32 THEN NULL ELSE - + 30 END + + COUNT ( * )
----
-29

query I rowsort
SELECT DISTINCT - 72 * + 57 - 47
----
-4151

onlyif mysql # aggregate syntax: 
query I rowsort label-3710
SELECT + 21 * - NULLIF ( - MAX( + - ( + 91 ) ), COUNT( * ) * - MAX( + 87 ) + 48 + + 92 ) * - 53 col1
----
101283

skipif mysql # not compatible
query I rowsort label-3710
SELECT + 21 * - NULLIF ( - MAX ( + - ( + 91 ) ), COUNT ( * ) * - MAX ( + 87 ) + 48 + + 92 ) * - 53 col1
----
101283

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3711
SELECT 23 + - - 10 * COALESCE ( + NULLIF ( + 27, + 87 * + 13 ), - 34, - - 67 + + COUNT( * ) ) * NULLIF ( 36 DIV - 5, + 24 ) AS col2
----
-1867

skipif mysql # not compatible
query I rowsort label-3711
SELECT 23 + - - 10 * COALESCE ( + NULLIF ( + 27, + 87 * + 13 ), - 34, - - 67 + + COUNT ( * ) ) * NULLIF ( 36 / - 5, + 24 ) AS col2
----
-1867

query I rowsort
SELECT - 30 + ( 21 ) + + 17
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-3713
SELECT 53 * COUNT( * ) * + - 86 * 90 * 35
----
-14357700

skipif mysql # not compatible
query I rowsort label-3713
SELECT 53 * COUNT ( * ) * + - 86 * 90 * 35
----
-14357700

onlyif mysql # aggregate syntax: 
query I rowsort label-3714
SELECT - COALESCE ( - - 89, + COUNT( + 27 ) + + + COUNT( * ) ) + - 67 col2
----
-156

skipif mysql # not compatible
query I rowsort label-3714
SELECT - COALESCE ( - - 89, + COUNT ( + 27 ) + + + COUNT ( * ) ) + - 67 col2
----
-156

onlyif mysql # aggregate syntax: 
query I rowsort label-3715
SELECT ALL COUNT( DISTINCT - 95 )
----
1

skipif mysql # not compatible
query I rowsort label-3715
SELECT ALL COUNT ( DISTINCT - 95 )
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3716
SELECT COALESCE ( 25, + + 98 + MAX( ALL - 97 ) + 76 + CASE + 87 WHEN 75 + 61 THEN + 47 + + 4 END * 41 ) DIV COUNT( 63 ) AS col2
----
25

skipif mysql # not compatible
query I rowsort label-3716
SELECT COALESCE ( 25, + + 98 + MAX ( ALL - 97 ) + 76 + CASE + 87 WHEN 75 + 61 THEN + 47 + + 4 END * 41 ) / COUNT ( 63 ) AS col2
----
25

onlyif mysql # DIV for integer division: 
query I rowsort label-3717
SELECT DISTINCT - ( + + 59 ) DIV 8 + - + 90 + - - 21
----
-76

skipif mysql # not compatible
query I rowsort label-3717
SELECT DISTINCT - ( + + 59 ) / 8 + - + 90 + - - 21
----
-76

query I rowsort
SELECT 36 * 68 AS col1
----
2448

onlyif mysql # DIV for integer division: 
query I rowsort label-3719
SELECT + 66 * - 63 * + - COALESCE ( + 67, + 13, ( 22 ) + + 25 DIV + 70 ) AS col2
----
278586

skipif mysql # not compatible
query I rowsort label-3719
SELECT + 66 * - 63 * + - COALESCE ( + 67, + 13, ( 22 ) + + 25 / + 70 ) AS col2
----
278586

query I rowsort
SELECT - 61 * + - 41 + + 7
----
2508

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3721
SELECT ALL + 9, + COUNT( * ) * ( + - 42 ) * - CASE - 64 WHEN - CAST( NULL AS SIGNED ) THEN - 59 * + 56 * + + 89 + COUNT( * ) * COUNT( * ) END AS col1
----
9
NULL

skipif mysql # not compatible
query II rowsort label-3721
SELECT ALL + 9, + COUNT ( * ) * ( + - 42 ) * - CASE - 64 WHEN - CAST ( NULL AS INTEGER ) THEN - 59 * + 56 * + + 89 + COUNT ( * ) * COUNT ( * ) END AS col1
----
9
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3722
SELECT ALL COUNT( * ) * + 70 * - - 81 col1
----
5670

skipif mysql # not compatible
query I rowsort label-3722
SELECT ALL COUNT ( * ) * + 70 * - - 81 col1
----
5670

onlyif mysql # aggregate syntax: 
query I rowsort label-3723
SELECT ALL 61 * - - 91 * - + 28 + - - MIN( + 16 )
----
-155412

skipif mysql # not compatible
query I rowsort label-3723
SELECT ALL 61 * - - 91 * - + 28 + - - MIN ( + 16 )
----
-155412

onlyif mysql # aggregate syntax: 
query II rowsort label-3724
SELECT COUNT( * ) AS col2, 90
----
1
90

skipif mysql # not compatible
query II rowsort label-3724
SELECT COUNT ( * ) AS col2, 90
----
1
90

onlyif mysql # aggregate syntax: 
query I rowsort label-3725
SELECT - ( 73 ) + - 61 + COUNT( * )
----
-133

skipif mysql # not compatible
query I rowsort label-3725
SELECT - ( 73 ) + - 61 + COUNT ( * )
----
-133

query I rowsort
SELECT + CASE ( + 89 ) WHEN + ( 96 ) + 15 THEN - 87 WHEN + CASE + 84 WHEN - 56 * + 72 THEN NULL ELSE + 31 + 54 END THEN NULL WHEN - 11 * + 82 THEN 91 * + 1 END
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3727
SELECT ( + 29 ) * - 31 + + 10 + - CAST( NULL AS DECIMAL ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3727
SELECT ( + 29 ) * - 31 + + 10 + - CAST ( NULL AS REAL ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3728
SELECT - 94 * - 30 * + COUNT( * ) AS col2, 63 + 33 AS col0
----
2820
96

skipif mysql # not compatible
query II rowsort label-3728
SELECT - 94 * - 30 * + COUNT ( * ) AS col2, 63 + 33 AS col0
----
2820
96

query I rowsort
SELECT + + 43 col0
----
43

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3730
SELECT + 94, 3 DIV + - 19 DIV + COUNT( * ) AS col2
----
94
0

skipif mysql # not compatible
query II rowsort label-3730
SELECT + 94, 3 / + - 19 / + COUNT ( * ) AS col2
----
94
0

query I rowsort
SELECT ALL + + 13 * - + 91 + - 86 + - 37 - 37
----
-1343

onlyif mysql # aggregate syntax: 
query II rowsort label-3732
SELECT ALL COALESCE ( + SUM( 97 ), + + 9 + COUNT( * ) ) AS col1, - 11
----
97
-11

skipif mysql # not compatible
query II rowsort label-3732
SELECT ALL COALESCE ( + SUM ( 97 ), + + 9 + COUNT ( * ) ) AS col1, - 11
----
97
-11

query I rowsort
SELECT - - 57 * + 51
----
2907

query I rowsort
SELECT ALL ( - - 36 ) AS col0
----
36

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3735
SELECT ALL - - 65 * + + COUNT( * ) + + CASE 73 WHEN + COALESCE ( + NULLIF ( - + 84, + - 12 / - 33 - 58 * + 29 ), 26 ) THEN + CASE 18 WHEN CAST( 96 AS SIGNED ) THEN - 40 WHEN - 87 * - ( 45 ) THEN 67 END ELSE NULL END + 85 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3735
SELECT ALL - - 65 * + + COUNT ( * ) + + CASE 73 WHEN + COALESCE ( + NULLIF ( - + 84, + - 12 / - 33 - 58 * + 29 ), 26 ) THEN + CASE 18 WHEN CAST ( 96 AS INTEGER ) THEN - 40 WHEN - 87 * - ( 45 ) THEN 67 END ELSE NULL END + 85 AS col0
----
NULL

query I rowsort
SELECT - 87 * 45 col0
----
-3915

query I rowsort
SELECT ( - + 78 ) AS col1
----
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-3738
SELECT - MAX( + 71 ) AS col1
----
-71

skipif mysql # not compatible
query I rowsort label-3738
SELECT - MAX ( + 71 ) AS col1
----
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-3739
SELECT - COUNT( * ) * - 97 AS col0
----
97

skipif mysql # not compatible
query I rowsort label-3739
SELECT - COUNT ( * ) * - 97 AS col0
----
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3740
SELECT + CAST( 36 AS SIGNED ) * 31 AS col2
----
1116

skipif mysql # not compatible
query I rowsort label-3740
SELECT + CAST ( 36 AS INTEGER ) * 31 AS col2
----
1116

query I rowsort
SELECT - + 22 col0
----
-22

query II rowsort
SELECT ALL + 81 AS col1, 7 col2
----
81
7

query II rowsort
SELECT DISTINCT 79 AS col0, - 78
----
79
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-3744
SELECT - - COUNT( * ) * - 32 + + 62 AS col0
----
30

skipif mysql # not compatible
query I rowsort label-3744
SELECT - - COUNT ( * ) * - 32 + + 62 AS col0
----
30

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3745
SELECT ALL - COALESCE ( - COUNT( * ), - + 81, 65, - NULLIF ( + COUNT( * ), - COALESCE ( + 29, + 96 DIV - - COUNT( * ) * + 22 ) * 3 + 85 * + 25 ) * 48 ) DIV 13
----
0

skipif mysql # not compatible
query I rowsort label-3745
SELECT ALL - COALESCE ( - COUNT ( * ), - + 81, 65, - NULLIF ( + COUNT ( * ), - COALESCE ( + 29, + 96 / - - COUNT ( * ) * + 22 ) * 3 + 85 * + 25 ) * 48 ) / 13
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3746
SELECT CASE - 51 WHEN + ( - + 17 ) + 91 THEN - 13 / - 63 - + + MAX( - + 23 ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3746
SELECT CASE - 51 WHEN + ( - + 17 ) + 91 THEN - 13 / - 63 - + + MAX ( - + 23 ) END AS col0
----
NULL

query I rowsort
SELECT ALL - + 10 + 96
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-3748
SELECT ALL 3 + - 54 - ( - 40 ) + + 86 * COUNT( * )
----
75

skipif mysql # not compatible
query I rowsort label-3748
SELECT ALL 3 + - 54 - ( - 40 ) + + 86 * COUNT ( * )
----
75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3749
SELECT ALL CASE 38 WHEN + + 87 - - - 78 * + - 85 + - 48 - CASE WHEN NOT ( + CASE CAST( NULL AS SIGNED ) WHEN COUNT( * ) THEN 0 / - 74 WHEN - 90 THEN NULL ELSE NULL END IS NULL ) THEN NULL WHEN - CAST( NULL AS DECIMAL ) * - 75 + ( 56 + AVG ( 38 ) ) IS NULL THEN COALESCE ( + 17, + 43 ) ELSE NULL END + + 15 THEN + 46 END + - 78
----
NULL

skipif mysql # not compatible
query I rowsort label-3749
SELECT ALL CASE 38 WHEN + + 87 - - - 78 * + - 85 + - 48 - CASE WHEN NOT ( + CASE CAST ( NULL AS INTEGER ) WHEN COUNT ( * ) THEN 0 / - 74 WHEN - 90 THEN NULL ELSE NULL END IS NULL ) THEN NULL WHEN - CAST ( NULL AS REAL ) * - 75 + ( 56 + AVG ( 38 ) ) IS NULL THEN COALESCE ( + 17, + 43 ) ELSE NULL END + + 15 THEN + 46 END + - 78
----
NULL

query I rowsort
SELECT + 3 * - 59 * + 58 AS col1
----
-10266

query I rowsort
SELECT ALL + 27 * - 33 AS col1
----
-891

onlyif mysql # aggregate syntax: 
query I rowsort label-3752
SELECT + 20 + - + MIN( DISTINCT 91 ) + - + COUNT( * ) + - - 68 * COUNT( - 61 )
----
-4

skipif mysql # not compatible
query I rowsort label-3752
SELECT + 20 + - + MIN ( DISTINCT 91 ) + - + COUNT ( * ) + - - 68 * COUNT ( - 61 )
----
-4

query I rowsort
SELECT + 79 * - COALESCE ( 57, + + 11 + + ( - 34 ) ) * + - 78
----
351234

query I rowsort
SELECT - 67 - + 66
----
-133

onlyif mysql # aggregate syntax: 
query I rowsort label-3755
SELECT - ( - CASE + + ( 26 ) WHEN + 72 * - + 33 THEN NULL WHEN - - COUNT( * ) THEN NULL ELSE 94 END )
----
94

skipif mysql # not compatible
query I rowsort label-3755
SELECT - ( - CASE + + ( 26 ) WHEN + 72 * - + 33 THEN NULL WHEN - - COUNT ( * ) THEN NULL ELSE 94 END )
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-3756
SELECT - MAX( DISTINCT + 73 )
----
-73

skipif mysql # not compatible
query I rowsort label-3756
SELECT - MAX ( DISTINCT + 73 )
----
-73

query I rowsort
SELECT + 43 + 19
----
62

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3758
SELECT ALL - COUNT( * ) DIV - - 30 + - COALESCE ( + 37, + 39 ) * 55 * + + 81 * - 29 AS col2
----
4780215

skipif mysql # not compatible
query I rowsort label-3758
SELECT ALL - COUNT ( * ) / - - 30 + - COALESCE ( + 37, + 39 ) * 55 * + + 81 * - 29 AS col2
----
4780215

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3759
SELECT DISTINCT + CAST( - COALESCE ( 61, + + 72 * - 90 / COUNT( * ) + - 34 + + 42 ) AS SIGNED )
----
-61

skipif mysql # not compatible
query I rowsort label-3759
SELECT DISTINCT + CAST ( - COALESCE ( 61, + + 72 * - 90 / COUNT ( * ) + - 34 + + 42 ) AS INTEGER )
----
-61

query I rowsort
SELECT - 57 * + 71 + - 4 + 6 * - 18 * NULLIF ( + + 69, + + 32 ) AS col0
----
-11503

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3761
SELECT CAST( + - ( - 7 ) AS SIGNED ) AS col0
----
7

skipif mysql # not compatible
query I rowsort label-3761
SELECT CAST ( + - ( - 7 ) AS INTEGER ) AS col0
----
7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3762
SELECT ALL - COUNT( * ) DIV + - 50 + - + 24 + - 2 - 17
----
-43

skipif mysql # not compatible
query I rowsort label-3762
SELECT ALL - COUNT ( * ) / + - 50 + - + 24 + - 2 - 17
----
-43

query I rowsort
SELECT + 13 * - - 54 * - 20 col2
----
-14040

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3764
SELECT ALL 25 DIV - MIN( + 30 )
----
0

skipif mysql # not compatible
query I rowsort label-3764
SELECT ALL 25 / - MIN ( + 30 )
----
0

query I rowsort
SELECT + ( + - 36 ) AS col0
----
-36

onlyif mysql # DIV for integer division: 
query I rowsort label-3766
SELECT DISTINCT - 87 DIV + 97 - ( - 87 ) + - 40 + 98 AS col2
----
145

skipif mysql # not compatible
query I rowsort label-3766
SELECT DISTINCT - 87 / + 97 - ( - 87 ) + - 40 + 98 AS col2
----
145

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3767
SELECT + CAST( - NULLIF ( - - 95, + AVG ( + 95 ) ) AS SIGNED ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3767
SELECT + CAST ( - NULLIF ( - - 95, + AVG ( + 95 ) ) AS INTEGER ) col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3768
SELECT + MAX( 76 ) - + 58 AS col0
----
18

skipif mysql # not compatible
query I rowsort label-3768
SELECT + MAX ( 76 ) - + 58 AS col0
----
18

query I rowsort
SELECT + 77 * - 58
----
-4466

onlyif mysql # aggregate syntax: 
query I rowsort label-3770
SELECT + MAX( DISTINCT - + 0 ) * 85
----
0

skipif mysql # not compatible
query I rowsort label-3770
SELECT + MAX ( DISTINCT - + 0 ) * 85
----
0

query I rowsort
SELECT ( - + 84 ) AS col1
----
-84

query I rowsort
SELECT DISTINCT - 40 * + 77 + - 64 - - + 53 * + 42
----
-918

onlyif mysql # aggregate syntax: 
query I rowsort label-3773
SELECT DISTINCT + SUM( DISTINCT - 33 )
----
-33

skipif mysql # not compatible
query I rowsort label-3773
SELECT DISTINCT + SUM ( DISTINCT - 33 )
----
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-3774
SELECT DISTINCT + SUM( 59 ) * - 7 col1
----
-413

skipif mysql # not compatible
query I rowsort label-3774
SELECT DISTINCT + SUM ( 59 ) * - 7 col1
----
-413

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3775
SELECT - - 86 DIV - SUM( DISTINCT - 37 ) + + 20 AS col2
----
22

skipif mysql # not compatible
query I rowsort label-3775
SELECT - - 86 / - SUM ( DISTINCT - 37 ) + + 20 AS col2
----
22

onlyif mysql # DIV for integer division: 
query I rowsort label-3776
SELECT ALL + 75 DIV 63
----
1

skipif mysql # not compatible
query I rowsort label-3776
SELECT ALL + 75 / 63
----
1

query II rowsort
SELECT ALL + - 2 AS col0, + 60
----
-2
60

onlyif mysql # aggregate syntax: 
query II rowsort label-3778
SELECT + - COUNT( * ), 75 * + COUNT( DISTINCT - 3 ) AS col0
----
-1
75

skipif mysql # not compatible
query II rowsort label-3778
SELECT + - COUNT ( * ), 75 * + COUNT ( DISTINCT - 3 ) AS col0
----
-1
75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3779
SELECT + - 83 + - - 72 - + - COUNT( * ) - COALESCE ( + CASE 14 WHEN - 99 * + COUNT( * ) - 0 - + + 38 * - 70 * CAST( NULL AS SIGNED ) / 68 THEN NULL WHEN NULLIF ( COUNT( * ), - 23 * - ( - 77 ) ) THEN 83 - 12 WHEN 32 THEN - 93 END, 55 * - 25 )
----
1365

skipif mysql # not compatible
query I rowsort label-3779
SELECT + - 83 + - - 72 - + - COUNT ( * ) - COALESCE ( + CASE 14 WHEN - 99 * + COUNT ( * ) - 0 - + + 38 * - 70 * CAST ( NULL AS INTEGER ) / 68 THEN NULL WHEN NULLIF ( COUNT ( * ), - 23 * - ( - 77 ) ) THEN 83 - 12 WHEN 32 THEN - 93 END, 55 * - 25 )
----
1365

onlyif mysql # aggregate syntax: 
query I rowsort label-3780
SELECT + + NULLIF ( - + 5, + 97 * - 59 - + - 63 / 39 ) + + COUNT( * ) + - 43
----
-47

skipif mysql # not compatible
query I rowsort label-3780
SELECT + + NULLIF ( - + 5, + 97 * - 59 - + - 63 / 39 ) + + COUNT ( * ) + - 43
----
-47

query I rowsort
SELECT - + 45 * - 71 AS col1
----
3195

onlyif mysql # aggregate syntax: 
query I rowsort label-3782
SELECT - - 34 + - - MAX( DISTINCT 38 )
----
72

skipif mysql # not compatible
query I rowsort label-3782
SELECT - - 34 + - - MAX ( DISTINCT 38 )
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-3783
SELECT ALL - COUNT( * ) * 2 AS col2
----
-2

skipif mysql # not compatible
query I rowsort label-3783
SELECT ALL - COUNT ( * ) * 2 AS col2
----
-2

query I rowsort
SELECT DISTINCT + 96 * + + 35 * 28 + + 47 - - 12 AS col2
----
94139

query I rowsort
SELECT DISTINCT - - ( 70 ) * - - 56 + - - 40 + - 67
----
3893

onlyif mysql # aggregate syntax: 
query I rowsort label-3786
SELECT - - SUM( ( + 42 ) ) + 62 + 78 * + 28 * 81 AS col0
----
177008

skipif mysql # not compatible
query I rowsort label-3786
SELECT - - SUM ( ( + 42 ) ) + 62 + 78 * + 28 * 81 AS col0
----
177008

onlyif mysql # aggregate syntax: 
query I rowsort label-3787
SELECT ALL 71 * + COUNT( * ) + 45 + 10
----
126

skipif mysql # not compatible
query I rowsort label-3787
SELECT ALL 71 * + COUNT ( * ) + 45 + 10
----
126

query I rowsort
SELECT DISTINCT + 20 + 26 AS col0
----
46

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3789
SELECT DISTINCT + - NULLIF ( - 22, - 73 * + 55 * + CAST( + 95 AS SIGNED ) * - ( - - 74 ) + + AVG ( - 90 ) / + 40 ) * - 89 AS col2
----
-1958

skipif mysql # not compatible
query I rowsort label-3789
SELECT DISTINCT + - NULLIF ( - 22, - 73 * + 55 * + CAST ( + 95 AS INTEGER ) * - ( - - 74 ) + + AVG ( - 90 ) / + 40 ) * - 89 AS col2
----
-1958

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3790
SELECT - ( + 51 ) + - 28 + - - CAST( - ( + 32 ) AS SIGNED ) + 18 * + + 62 + - COUNT( ALL - - ( - 58 ) ) * + CAST( - 39 * - 59 AS SIGNED )
----
-1296

skipif mysql # not compatible
query I rowsort label-3790
SELECT - ( + 51 ) + - 28 + - - CAST ( - ( + 32 ) AS INTEGER ) + 18 * + + 62 + - COUNT ( ALL - - ( - 58 ) ) * + CAST ( - 39 * - 59 AS INTEGER )
----
-1296

query I rowsort
SELECT DISTINCT + 29 * - - 64
----
1856

onlyif mysql # DIV for integer division: 
query II rowsort label-3792
SELECT - 6 DIV + 49 - - NULLIF ( - 7, 38 ) + + 58, - 44 AS col1
----
51
-44

skipif mysql # not compatible
query II rowsort label-3792
SELECT - 6 / + 49 - - NULLIF ( - 7, 38 ) + + 58, - 44 AS col1
----
51
-44

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3793
SELECT 10 * + 49 AS col1, + 82 DIV + - 14 * COUNT( + 21 ) + 60 + + 15 + + 95
----
490
165

skipif mysql # not compatible
query II rowsort label-3793
SELECT 10 * + 49 AS col1, + 82 / + - 14 * COUNT ( + 21 ) + 60 + + 15 + + 95
----
490
165

onlyif mysql # aggregate syntax: 
query II rowsort label-3794
SELECT 19 + - COUNT( * ) AS col2, + COUNT( * )
----
18
1

skipif mysql # not compatible
query II rowsort label-3794
SELECT 19 + - COUNT ( * ) AS col2, + COUNT ( * )
----
18
1

query I rowsort
SELECT 29 + + - 64 + + 24 AS col0
----
-11

onlyif mysql # DIV for integer division: 
query II rowsort label-3796
SELECT ALL + 96 DIV 22 * - 10 AS col0, 82 * + 15 * - ( + NULLIF ( + 81, + 34 ) )
----
-40
-99630

skipif mysql # not compatible
query II rowsort label-3796
SELECT ALL + 96 / 22 * - 10 AS col0, 82 * + 15 * - ( + NULLIF ( + 81, + 34 ) )
----
-40
-99630

query II rowsort
SELECT DISTINCT 90 * + 24 AS col1, 51
----
2160
51

onlyif mysql # aggregate syntax: 
query I rowsort label-3798
SELECT ALL 25 * + + COUNT( * )
----
25

skipif mysql # not compatible
query I rowsort label-3798
SELECT ALL 25 * + + COUNT ( * )
----
25

query I rowsort
SELECT ( + 54 ) * + 65 * - 90 * + 24 + 20 AS col1
----
-7581580

query I rowsort
SELECT DISTINCT + 79 * NULLIF ( - + 28, - 34 - + + 52 ) * - 85 AS col0
----
188020

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3801
SELECT + 40 DIV - 33 + + CASE - NULLIF ( 95, 55 ) WHEN + COUNT( * ) * - 65 DIV - 24 THEN + 38 + + + 94 ELSE - - 19 END * ( 85 ) AS col1
----
1614

skipif mysql # not compatible
query I rowsort label-3801
SELECT + 40 / - 33 + + CASE - NULLIF ( 95, 55 ) WHEN + COUNT ( * ) * - 65 / - 24 THEN + 38 + + + 94 ELSE - - 19 END * ( 85 ) AS col1
----
1614

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3802
SELECT + 2 DIV - - COUNT( 33 ) + + + ( + 90 ) - + + 88 * + CASE + 16 WHEN - 87 * AVG ( + 47 ) * 64 THEN NULL ELSE + COALESCE ( - 42, 56 DIV 5 - 83 * - 16 ) - - 35 END
----
708

skipif mysql # not compatible
query I rowsort label-3802
SELECT + 2 / - - COUNT ( 33 ) + + + ( + 90 ) - + + 88 * + CASE + 16 WHEN - 87 * AVG ( + 47 ) * 64 THEN NULL ELSE + COALESCE ( - 42, 56 / 5 - 83 * - 16 ) - - 35 END
----
708

query I rowsort
SELECT 54 * + - 40 col2
----
-2160

onlyif mysql # aggregate syntax: 
query I rowsort label-3804
SELECT MIN( - 34 ) * + 69 AS col1
----
-2346

skipif mysql # not compatible
query I rowsort label-3804
SELECT MIN ( - 34 ) * + 69 AS col1
----
-2346

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3805
SELECT 60 + + ( - 30 ) * + + 92 + - - 93 + - CAST( - + NULLIF ( 88, - MIN( 29 ) ) AS SIGNED ) + 99 + - - 5 * 99 * - 26 * - MAX( 8 - + 65 * - 13 ) AS col1
----
10975690

skipif mysql # not compatible
query I rowsort label-3805
SELECT 60 + + ( - 30 ) * + + 92 + - - 93 + - CAST ( - + NULLIF ( 88, - MIN ( 29 ) ) AS INTEGER ) + 99 + - - 5 * 99 * - 26 * - MAX ( 8 - + 65 * - 13 ) AS col1
----
10975690

query I rowsort
SELECT DISTINCT + 16 * + - 90 AS col0
----
-1440

onlyif mysql # aggregate syntax: 
query I rowsort label-3807
SELECT 59 * + + COUNT( * ) * - + 42 AS col2
----
-2478

skipif mysql # not compatible
query I rowsort label-3807
SELECT 59 * + + COUNT ( * ) * - + 42 AS col2
----
-2478

query I rowsort
SELECT ALL - - 33 col1
----
33

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3809
SELECT + COUNT( * ) + - COUNT( * ) DIV + - 40 AS col2, - 47 DIV - + 10 col1
----
1
4

skipif mysql # not compatible
query II rowsort label-3809
SELECT + COUNT ( * ) + - COUNT ( * ) / + - 40 AS col2, - 47 / - + 10 col1
----
1
4

onlyif mysql # aggregate syntax: 
query I rowsort label-3810
SELECT + COUNT( * ) + ( 66 )
----
67

skipif mysql # not compatible
query I rowsort label-3810
SELECT + COUNT ( * ) + ( 66 )
----
67

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3811
SELECT + - ( ( CAST( + 43 AS SIGNED ) ) )
----
-43

skipif mysql # not compatible
query I rowsort label-3811
SELECT + - ( ( CAST ( + 43 AS INTEGER ) ) )
----
-43

query I rowsort
SELECT ALL - 43 + + 31 AS col0
----
-12

query I rowsort
SELECT DISTINCT - 85 * 43 + + 99 * + - ( + 12 ) * 74
----
-91567

onlyif mysql # aggregate syntax: 
query I rowsort label-3814
SELECT MIN( DISTINCT - ( + 51 ) ) AS col2
----
-51

skipif mysql # not compatible
query I rowsort label-3814
SELECT MIN ( DISTINCT - ( + 51 ) ) AS col2
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-3815
SELECT ALL COUNT( * ) * + - COUNT( * ) * - ( - 65 )
----
-65

skipif mysql # not compatible
query I rowsort label-3815
SELECT ALL COUNT ( * ) * + - COUNT ( * ) * - ( - 65 )
----
-65

query I rowsort
SELECT ALL 79 + 30 col0
----
109

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3817
SELECT + CAST( NULL AS SIGNED ) * + 4 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3817
SELECT + CAST ( NULL AS INTEGER ) * + 4 col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3818
SELECT ALL - 91 * COALESCE ( + 3, - + 66 - - 12 ) AS col2, - CAST( NULL AS SIGNED ) * 0
----
-273
NULL

skipif mysql # not compatible
query II rowsort label-3818
SELECT ALL - 91 * COALESCE ( + 3, - + 66 - - 12 ) AS col2, - CAST ( NULL AS INTEGER ) * 0
----
-273
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3819
SELECT 87 * - + MAX( - 69 )
----
6003

skipif mysql # not compatible
query I rowsort label-3819
SELECT 87 * - + MAX ( - 69 )
----
6003

onlyif mysql # aggregate syntax: 
query I rowsort label-3820
SELECT ALL - MAX( DISTINCT - 49 )
----
49

skipif mysql # not compatible
query I rowsort label-3820
SELECT ALL - MAX ( DISTINCT - 49 )
----
49

onlyif mysql # aggregate syntax: 
query I rowsort label-3821
SELECT ALL + COALESCE ( COUNT( * ), + COALESCE ( + CASE + 63 WHEN + 9 THEN NULL WHEN + COUNT( * ) + - + COUNT( + 71 ) * + 5 + + - 10 * + 91 THEN COALESCE ( - 36, 33 ) ELSE NULL END, 95, + 68 ) ) + ( 71 )
----
72

skipif mysql # not compatible
query I rowsort label-3821
SELECT ALL + COALESCE ( COUNT ( * ), + COALESCE ( + CASE + 63 WHEN + 9 THEN NULL WHEN + COUNT ( * ) + - + COUNT ( + 71 ) * + 5 + + - 10 * + 91 THEN COALESCE ( - 36, 33 ) ELSE NULL END, 95, + 68 ) ) + ( 71 )
----
72

query I rowsort
SELECT COALESCE ( - + 68, - + 15 ) * + 23 AS col2
----
-1564

query II rowsort
SELECT - 59 AS col0, 86
----
-59
86

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3824
SELECT DISTINCT + 10 * + CAST( 70 AS SIGNED ) AS col0
----
700

skipif mysql # not compatible
query I rowsort label-3824
SELECT DISTINCT + 10 * + CAST ( 70 AS INTEGER ) AS col0
----
700

query I rowsort
SELECT DISTINCT + 92 * - 35 AS col1
----
-3220

query I rowsort
SELECT ALL - 37 - - 20 col1
----
-17

query II rowsort
SELECT - 24 AS col1, - 2 AS col1
----
-24
-2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3828
SELECT CAST( NULL AS SIGNED ) * - 6 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3828
SELECT CAST ( NULL AS INTEGER ) * - 6 AS col0
----
NULL

query I rowsort
SELECT 70 * - 11 AS col1
----
-770

query I rowsort
SELECT DISTINCT + 92 * 46 col2
----
4232

query II rowsort
SELECT ALL 89, - ( + 34 ) + + 61 AS col1
----
89
27

query I rowsort
SELECT 54 + - 76 AS col2
----
-22

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3833
SELECT SUM( + + 27 ) DIV - - COUNT( DISTINCT - 87 )
----
27

skipif mysql # not compatible
query I rowsort label-3833
SELECT SUM ( + + 27 ) / - - COUNT ( DISTINCT - 87 )
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-3834
SELECT 63 + 42 + + - COALESCE ( COUNT( * ), + 36 )
----
104

skipif mysql # not compatible
query I rowsort label-3834
SELECT 63 + 42 + + - COALESCE ( COUNT ( * ), + 36 )
----
104

onlyif mysql # aggregate syntax: 
query II rowsort label-3835
SELECT COUNT( * ), - 84 * - 45 AS col0
----
1
3780

skipif mysql # not compatible
query II rowsort label-3835
SELECT COUNT ( * ), - 84 * - 45 AS col0
----
1
3780

onlyif mysql # DIV for integer division: 
query I rowsort label-3836
SELECT 79 DIV - 94
----
0

skipif mysql # not compatible
query I rowsort label-3836
SELECT 79 / - 94
----
0

query I rowsort
SELECT ALL 35 * 72 col2
----
2520

query I rowsort
SELECT DISTINCT - 57 / - CASE + + 15 WHEN - 71 THEN - + 4 ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3839
SELECT CAST( NULL AS SIGNED ) / - ( - 0 ) + 20 / + 1 * 68 / 13 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3839
SELECT CAST ( NULL AS INTEGER ) / - ( - 0 ) + 20 / + 1 * 68 / 13 AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3840
SELECT + COALESCE ( - 18, 64 ) DIV - 37 col0
----
0

skipif mysql # not compatible
query I rowsort label-3840
SELECT + COALESCE ( - 18, 64 ) / - 37 col0
----
0

query I rowsort
SELECT ALL + 88 * - 59 + 51
----
-5141

query I rowsort
SELECT 97 * - NULLIF ( - 49, - 51 ) * + 63 * 14 - 67 + + 81 AS col1
----
4192160

query II rowsort
SELECT + - 84 AS col0, 77 + + - 15 AS col2
----
-84
62

onlyif mysql # DIV for integer division: 
query I rowsort label-3844
SELECT - 0 DIV + 63 + - 7 * + 37 AS col2
----
-259

skipif mysql # not compatible
query I rowsort label-3844
SELECT - 0 / + 63 + - 7 * + 37 AS col2
----
-259

onlyif mysql # aggregate syntax: 
query I rowsort label-3845
SELECT DISTINCT - - COUNT( * ) + - 76 AS col0
----
-75

skipif mysql # not compatible
query I rowsort label-3845
SELECT DISTINCT - - COUNT ( * ) + - 76 AS col0
----
-75

onlyif mysql # DIV for integer division: 
query I rowsort label-3846
SELECT ALL - 31 + - + 94 DIV - CASE - 7 WHEN + 72 * - 22 THEN NULL ELSE - + 30 END
----
-34

skipif mysql # not compatible
query I rowsort label-3846
SELECT ALL - 31 + - + 94 / - CASE - 7 WHEN + 72 * - 22 THEN NULL ELSE - + 30 END
----
-34

query I rowsort
SELECT DISTINCT - + ( - - 2 )
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-3848
SELECT MIN( + 83 )
----
83

skipif mysql # not compatible
query I rowsort label-3848
SELECT MIN ( + 83 )
----
83

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3849
SELECT - 83 + ( - 1 ) * - + ( - + 30 ) * ( 85 ) + + 82 * + 40 * + MAX( - 71 ) - 77 + - CAST( COUNT( * ) AS SIGNED ) DIV 69
----
-235590

skipif mysql # not compatible
query I rowsort label-3849
SELECT - 83 + ( - 1 ) * - + ( - + 30 ) * ( 85 ) + + 82 * + 40 * + MAX ( - 71 ) - 77 + - CAST ( COUNT ( * ) AS INTEGER ) / 69
----
-235590

onlyif mysql # aggregate syntax: 
query I rowsort label-3850
SELECT + + MIN( DISTINCT - 57 ) AS col0
----
-57

skipif mysql # not compatible
query I rowsort label-3850
SELECT + + MIN ( DISTINCT - 57 ) AS col0
----
-57

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3851
SELECT + 66 - COUNT( * ) DIV 63, 57 DIV + - 22 + - 82 AS col0
----
66
-84

skipif mysql # not compatible
query II rowsort label-3851
SELECT + 66 - COUNT ( * ) / 63, 57 / + - 22 + - 82 AS col0
----
66
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-3852
SELECT ALL - 79 * + 68 * + 85 + 81 * 4 * MAX( ALL + - 15 )
----
-461480

skipif mysql # not compatible
query I rowsort label-3852
SELECT ALL - 79 * + 68 * + 85 + 81 * 4 * MAX ( ALL + - 15 )
----
-461480

onlyif mysql # aggregate syntax: 
query I rowsort label-3853
SELECT ALL + MIN( DISTINCT 9 ) - + 73 * + + 19
----
-1378

skipif mysql # not compatible
query I rowsort label-3853
SELECT ALL + MIN ( DISTINCT 9 ) - + 73 * + + 19
----
-1378

query I rowsort
SELECT ALL 14 * - 78
----
-1092

onlyif mysql # aggregate syntax: 
query I rowsort label-3855
SELECT + 20 + + COUNT( - 99 )
----
21

skipif mysql # not compatible
query I rowsort label-3855
SELECT + 20 + + COUNT ( - 99 )
----
21

query I rowsort
SELECT ALL 26 * 86
----
2236

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3857
SELECT DISTINCT CASE - - 51 WHEN + 73 THEN - 16 ELSE + 26 + 78 END - - CAST( NULL AS DECIMAL ) + - 29 + - NULLIF ( 88, ( 4 ) / 82 ) + + 33 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3857
SELECT DISTINCT CASE - - 51 WHEN + 73 THEN - 16 ELSE + 26 + 78 END - - CAST ( NULL AS REAL ) + - 29 + - NULLIF ( 88, ( 4 ) / 82 ) + + 33 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3858
SELECT + COUNT( * ) + + 72 * COUNT( * ) + - 90 * - 66 AS col0
----
6013

skipif mysql # not compatible
query I rowsort label-3858
SELECT + COUNT ( * ) + + 72 * COUNT ( * ) + - 90 * - 66 AS col0
----
6013

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3859
SELECT ALL ( 6 ) * + COUNT( * ) DIV - 31 * + 18 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3859
SELECT ALL ( 6 ) * + COUNT ( * ) / - 31 * + 18 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3860
SELECT + 90 + + 32 + COUNT( * ) AS col2
----
123

skipif mysql # not compatible
query I rowsort label-3860
SELECT + 90 + + 32 + COUNT ( * ) AS col2
----
123

onlyif mysql # aggregate syntax: 
query I rowsort label-3861
SELECT + 7 * - 88 * - COUNT( * ) * 94
----
57904

skipif mysql # not compatible
query I rowsort label-3861
SELECT + 7 * - 88 * - COUNT ( * ) * 94
----
57904

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3862
SELECT - ( - COUNT( + + 16 ) ) + - CAST( - COUNT( * ) AS SIGNED ) + + 28 * + 31 + - 2 * - ( COUNT( * ) ) + 47 + - - 82 DIV + - 6 AS col2
----
906

skipif mysql # not compatible
query I rowsort label-3862
SELECT - ( - COUNT ( + + 16 ) ) + - CAST ( - COUNT ( * ) AS INTEGER ) + + 28 * + 31 + - 2 * - ( COUNT ( * ) ) + 47 + - - 82 / + - 6 AS col2
----
906

onlyif mysql # aggregate syntax: 
query I rowsort label-3863
SELECT - ( + MIN( - 62 ) ) * + COUNT( * ) AS col1
----
62

skipif mysql # not compatible
query I rowsort label-3863
SELECT - ( + MIN ( - 62 ) ) * + COUNT ( * ) AS col1
----
62

query I rowsort
SELECT - 42 + + + 68 AS col0
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-3865
SELECT DISTINCT MAX( + 26 ) AS col0
----
26

skipif mysql # not compatible
query I rowsort label-3865
SELECT DISTINCT MAX ( + 26 ) AS col0
----
26

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3866
SELECT + ( 48 ) * + CASE - - 97 WHEN 51 + COUNT( * ) + - + 14 / - COUNT( * ) + + 45 THEN + - 5 + - - CAST( 67 AS SIGNED ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3866
SELECT + ( 48 ) * + CASE - - 97 WHEN 51 + COUNT ( * ) + - + 14 / - COUNT ( * ) + + 45 THEN + - 5 + - - CAST ( 67 AS INTEGER ) END AS col0
----
NULL

query II rowsort
SELECT DISTINCT + 61 * + + 47 col0, 11
----
2867
11

onlyif mysql # aggregate syntax: 
query I rowsort label-3868
SELECT + 12 * - COALESCE ( + + 99, COUNT( * ) * + + 67 * - - 97, 56 )
----
-1188

skipif mysql # not compatible
query I rowsort label-3868
SELECT + 12 * - COALESCE ( + + 99, COUNT ( * ) * + + 67 * - - 97, 56 )
----
-1188

query I rowsort
SELECT - 18 * - - 80 * + 21
----
-30240

query I rowsort
SELECT ALL + 34 * + - 63 + 41 AS col2
----
-2101

query I rowsort
SELECT ALL + 99 * - 29 + 92 AS col1
----
-2779

onlyif mysql # aggregate syntax: 
query I rowsort label-3872
SELECT - - 96 + + - SUM( DISTINCT - 30 )
----
126

skipif mysql # not compatible
query I rowsort label-3872
SELECT - - 96 + + - SUM ( DISTINCT - 30 )
----
126

onlyif mysql # aggregate syntax: 
query I rowsort label-3873
SELECT ALL + - MAX( - 61 )
----
61

skipif mysql # not compatible
query I rowsort label-3873
SELECT ALL + - MAX ( - 61 )
----
61

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3874
SELECT - + ( COUNT( * ) ) + + COALESCE ( + CAST( + - 52 AS SIGNED ), COUNT( * ) ) + ( - - ( + - 97 ) )
----
-150

skipif mysql # not compatible
query I rowsort label-3874
SELECT - + ( COUNT ( * ) ) + + COALESCE ( + CAST ( + - 52 AS INTEGER ), COUNT ( * ) ) + ( - - ( + - 97 ) )
----
-150

query I rowsort
SELECT ALL 27 * + 39 + - 85 AS col1
----
968

onlyif mysql # aggregate syntax: 
query II rowsort label-3876
SELECT ALL - COUNT( + 80 ) * + 16 + 95 + 41 * - 67 - 3 + + ( - - 22 ) AS col0, 29 * - COUNT( * ) - + + 28
----
-2649
-57

skipif mysql # not compatible
query II rowsort label-3876
SELECT ALL - COUNT ( + 80 ) * + 16 + 95 + 41 * - 67 - 3 + + ( - - 22 ) AS col0, 29 * - COUNT ( * ) - + + 28
----
-2649
-57

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3877
SELECT + NULLIF ( - - 7, + CAST( NULL AS SIGNED ) ) AS col2
----
7

skipif mysql # not compatible
query I rowsort label-3877
SELECT + NULLIF ( - - 7, + CAST ( NULL AS INTEGER ) ) AS col2
----
7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3878
SELECT ALL - 41 * - 87 * 66 + + - CAST( 67 AS SIGNED ) + 70 AS col1
----
235425

skipif mysql # not compatible
query I rowsort label-3878
SELECT ALL - 41 * - 87 * 66 + + - CAST ( 67 AS INTEGER ) + 70 AS col1
----
235425

onlyif mysql # aggregate syntax: 
query I rowsort label-3879
SELECT - - 97 * - 82 + COALESCE ( - COALESCE ( - 64, - 27 * 27 * - + COUNT( * ) + + 69, + 47 ), + - ( + + 38 ) * - - 67, 66, 67 )
----
-7890

skipif mysql # not compatible
query I rowsort label-3879
SELECT - - 97 * - 82 + COALESCE ( - COALESCE ( - 64, - 27 * 27 * - + COUNT ( * ) + + 69, + 47 ), + - ( + + 38 ) * - - 67, 66, 67 )
----
-7890

query I rowsort
SELECT - 28 + - 18 + - 26 AS col1
----
-72

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3881
SELECT ALL + - 28 * 65 * 43 DIV 87 - - ( - COUNT( * ) ) AS col1
----
-900

skipif mysql # not compatible
query I rowsort label-3881
SELECT ALL + - 28 * 65 * 43 / 87 - - ( - COUNT ( * ) ) AS col1
----
-900

query I rowsort
SELECT - 67 * - 79 AS col1
----
5293

query I rowsort
SELECT - 72 * 4
----
-288

onlyif mysql # aggregate syntax: 
query I rowsort label-3884
SELECT + COUNT( * ) * - 22 + + 6 + - MAX( + 79 ) AS col1
----
-95

skipif mysql # not compatible
query I rowsort label-3884
SELECT + COUNT ( * ) * - 22 + + 6 + - MAX ( + 79 ) AS col1
----
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-3885
SELECT + 47 * - + 13 * + 0 + 61 + + 35 * - 82 + + CASE COUNT( * ) WHEN COUNT( * ) THEN NULL WHEN + 37 THEN NULL ELSE + + COALESCE ( + 31, - 13, - 67 * - COUNT( * ) ) END + ( + 74 + + ( + 6 + COUNT( * ) ) * - 76 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3885
SELECT + 47 * - + 13 * + 0 + 61 + + 35 * - 82 + + CASE COUNT ( * ) WHEN COUNT ( * ) THEN NULL WHEN + 37 THEN NULL ELSE + + COALESCE ( + 31, - 13, - 67 * - COUNT ( * ) ) END + ( + 74 + + ( + 6 + COUNT ( * ) ) * - 76 )
----
NULL

query I rowsort
SELECT ALL + 50 * + 3 AS col2
----
150

onlyif mysql # aggregate syntax: 
query I rowsort label-3887
SELECT MAX( DISTINCT - + 44 )
----
-44

skipif mysql # not compatible
query I rowsort label-3887
SELECT MAX ( DISTINCT - + 44 )
----
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-3888
SELECT ALL - 39 * + MIN( - - ( + - 78 ) )
----
3042

skipif mysql # not compatible
query I rowsort label-3888
SELECT ALL - 39 * + MIN ( - - ( + - 78 ) )
----
3042

onlyif mysql # aggregate syntax: 
query I rowsort label-3889
SELECT DISTINCT + - COUNT( ALL + 18 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-3889
SELECT DISTINCT + - COUNT ( ALL + 18 ) AS col1
----
-1

query I rowsort
SELECT DISTINCT + 11 * + + 8 - + 47
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-3891
SELECT - COALESCE ( 9, - COUNT( * ) - - COUNT( * ) )
----
-9

skipif mysql # not compatible
query I rowsort label-3891
SELECT - COALESCE ( 9, - COUNT ( * ) - - COUNT ( * ) )
----
-9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3892
SELECT ALL CAST( - + NULLIF ( CAST( NULL AS SIGNED ), + 94 + - - 33 ) AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3892
SELECT ALL CAST ( - + NULLIF ( CAST ( NULL AS INTEGER ), + 94 + - - 33 ) AS INTEGER ) AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3893
SELECT SUM( DISTINCT CAST( + 48 AS SIGNED ) ) AS col1
----
48

skipif mysql # not compatible
query I rowsort label-3893
SELECT SUM ( DISTINCT CAST ( + 48 AS INTEGER ) ) AS col1
----
48

query I rowsort
SELECT - 61 * - ( - 90 ) * + 51 * - NULLIF ( - 13, + - 12 )
----
-3639870

onlyif mysql # aggregate syntax: 
query I rowsort label-3895
SELECT MAX( DISTINCT 50 )
----
50

skipif mysql # not compatible
query I rowsort label-3895
SELECT MAX ( DISTINCT 50 )
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-3896
SELECT - 78 - + + COUNT( DISTINCT - 34 )
----
-79

skipif mysql # not compatible
query I rowsort label-3896
SELECT - 78 - + + COUNT ( DISTINCT - 34 )
----
-79

onlyif mysql # aggregate syntax: 
query I rowsort label-3897
SELECT + 84 * MIN( 9 )
----
756

skipif mysql # not compatible
query I rowsort label-3897
SELECT + 84 * MIN ( 9 )
----
756

onlyif mysql # aggregate syntax: 
query I rowsort label-3898
SELECT - ( COUNT( + ( + 94 ) ) )
----
-1

skipif mysql # not compatible
query I rowsort label-3898
SELECT - ( COUNT ( + ( + 94 ) ) )
----
-1

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3899
SELECT - CAST( + CAST( NULL AS DECIMAL ) AS SIGNED ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3899
SELECT - CAST ( + CAST ( NULL AS REAL ) AS INTEGER ) col0
----
NULL

query I rowsort
SELECT + 31 * - 80
----
-2480

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3901
SELECT ALL - SUM( - CAST( + - 16 AS SIGNED ) ) DIV + + COALESCE ( - 26, - 61 + - - COUNT( ALL - 41 ) * - + COALESCE ( ( - - 24 ), + - CASE + + 3 WHEN - 99 + - 0 THEN NULL ELSE 11 END + 29 ) ) col2
----
0

skipif mysql # not compatible
query I rowsort label-3901
SELECT ALL - SUM ( - CAST ( + - 16 AS INTEGER ) ) / + + COALESCE ( - 26, - 61 + - - COUNT ( ALL - 41 ) * - + COALESCE ( ( - - 24 ), + - CASE + + 3 WHEN - 99 + - 0 THEN NULL ELSE 11 END + 29 ) ) col2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3902
SELECT DISTINCT CAST( - ( 89 ) AS SIGNED )
----
-89

skipif mysql # not compatible
query I rowsort label-3902
SELECT DISTINCT CAST ( - ( 89 ) AS INTEGER )
----
-89

query I rowsort
SELECT DISTINCT 60 + 92 AS col0
----
152

onlyif mysql # aggregate syntax: 
query I rowsort label-3904
SELECT ALL MIN( + 49 ) AS col2
----
49

skipif mysql # not compatible
query I rowsort label-3904
SELECT ALL MIN ( + 49 ) AS col2
----
49

onlyif mysql # aggregate syntax: 
query I rowsort label-3905
SELECT DISTINCT MIN( DISTINCT ( 59 ) ) AS col1
----
59

skipif mysql # not compatible
query I rowsort label-3905
SELECT DISTINCT MIN ( DISTINCT ( 59 ) ) AS col1
----
59

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3906
SELECT - 12 DIV 63 DIV + 34 * + - COUNT( * ) col0
----
0

skipif mysql # not compatible
query I rowsort label-3906
SELECT - 12 / 63 / + 34 * + - COUNT ( * ) col0
----
0

query I rowsort
SELECT + ( 74 ) + - + NULLIF ( - 38, - 1 + - 34 ) AS col1
----
112

onlyif mysql # DIV for integer division: 
query I rowsort label-3908
SELECT + 53 DIV - 97 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3908
SELECT + 53 / - 97 AS col0
----
0

query I rowsort
SELECT ALL 59 + 3 AS col1
----
62

onlyif mysql # DIV for integer division: 
query I rowsort label-3910
SELECT + + 25 DIV - 14
----
-1

skipif mysql # not compatible
query I rowsort label-3910
SELECT + + 25 / - 14
----
-1

query I rowsort
SELECT + + 67 + 34
----
101

query I rowsort
SELECT DISTINCT 84 + + - 75 * 96
----
-7116

onlyif mysql # aggregate syntax: 
query I rowsort label-3913
SELECT + - CASE MAX( ALL + 33 ) WHEN 87 THEN - 90 WHEN + COUNT( + 20 ) THEN NULL WHEN COUNT( * ) THEN - - 85 END + - + 15 + 85 + 75 + 26 * - ( + 74 ) * 8 * 95 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3913
SELECT + - CASE MAX ( ALL + 33 ) WHEN 87 THEN - 90 WHEN + COUNT ( + 20 ) THEN NULL WHEN COUNT ( * ) THEN - - 85 END + - + 15 + 85 + 75 + 26 * - ( + 74 ) * 8 * 95 AS col2
----
NULL

query I rowsort
SELECT ALL + 86 + 1 AS col1
----
87

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3915
SELECT ALL - 51 DIV COUNT( * ) + - 83 + + - 35 + 97
----
-72

skipif mysql # not compatible
query I rowsort label-3915
SELECT ALL - 51 / COUNT ( * ) + - 83 + + - 35 + 97
----
-72

query II rowsort
SELECT + 31 AS col0, + 6
----
31
6

onlyif mysql # aggregate syntax: 
query II rowsort label-3917
SELECT - ( 81 ) * + - 19, COUNT( ALL - 41 ) + - + 2 + + 28 + 99 col1
----
1539
126

skipif mysql # not compatible
query II rowsort label-3917
SELECT - ( 81 ) * + - 19, COUNT ( ALL - 41 ) + - + 2 + + 28 + 99 col1
----
1539
126

query II rowsort
SELECT + 4 AS col0, - 54
----
4
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-3919
SELECT SUM( ALL ( - 95 ) ) AS col1
----
-95

skipif mysql # not compatible
query I rowsort label-3919
SELECT SUM ( ALL ( - 95 ) ) AS col1
----
-95

query I rowsort
SELECT + ( - - 93 ) - + 49 + 23
----
67

onlyif mysql # aggregate syntax: 
query II rowsort label-3921
SELECT + - 85 AS col1, COUNT( - 89 ) + + 24 AS col2
----
-85
25

skipif mysql # not compatible
query II rowsort label-3921
SELECT + - 85 AS col1, COUNT ( - 89 ) + + 24 AS col2
----
-85
25

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3922
SELECT + 70 + + 10 * + COUNT( * ) * - CASE 94 WHEN + 18 - + 14 + + 92 + + 17 * - 96 * 0 + 53 THEN - 47 WHEN + CAST( + 17 AS DECIMAL ) THEN - 16 - + 30 WHEN COUNT( * ) * - 97 THEN COUNT( * ) END * ( + 90 + + 12 ) + + CAST( 35 AS DECIMAL ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3922
SELECT + 70 + + 10 * + COUNT ( * ) * - CASE 94 WHEN + 18 - + 14 + + 92 + + 17 * - 96 * 0 + 53 THEN - 47 WHEN + CAST ( + 17 AS REAL ) THEN - 16 - + 30 WHEN COUNT ( * ) * - 97 THEN COUNT ( * ) END * ( + 90 + + 12 ) + + CAST ( 35 AS REAL ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3923
SELECT + SUM( DISTINCT 20 )
----
20

skipif mysql # not compatible
query I rowsort label-3923
SELECT + SUM ( DISTINCT 20 )
----
20

query I rowsort
SELECT ALL 48 * - 93 col1
----
-4464

onlyif mysql # aggregate syntax: 
query I rowsort label-3925
SELECT - COUNT( * ) - - 47 AS col0
----
46

skipif mysql # not compatible
query I rowsort label-3925
SELECT - COUNT ( * ) - - 47 AS col0
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-3926
SELECT DISTINCT - SUM( ALL + + 27 )
----
-27

skipif mysql # not compatible
query I rowsort label-3926
SELECT DISTINCT - SUM ( ALL + + 27 )
----
-27

query I rowsort
SELECT 55 - 8
----
47

onlyif mysql # DIV for integer division: 
query I rowsort label-3928
SELECT 38 DIV - + 48 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3928
SELECT 38 / - + 48 AS col2
----
0

query I rowsort
SELECT 74 * + + 16
----
1184

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3930
SELECT 44 + - + 56 + 40 DIV + CAST( - + MAX( ALL 5 ) AS SIGNED ) AS col1, - SUM( - + 78 ) * - NULLIF ( 5, 86 )
----
-20
-390

skipif mysql # not compatible
query II rowsort label-3930
SELECT 44 + - + 56 + 40 / + CAST ( - + MAX ( ALL 5 ) AS INTEGER ) AS col1, - SUM ( - + 78 ) * - NULLIF ( 5, 86 )
----
-20
-390

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3931
SELECT 83 * + NULLIF ( 52, - 47 * + - CAST( NULL AS SIGNED ) * 40 * - NULLIF ( - 17, + COUNT( * ) ) + + + CAST( NULL AS DECIMAL ) * - + 99 * - + 40 )
----
4316

skipif mysql # not compatible
query I rowsort label-3931
SELECT 83 * + NULLIF ( 52, - 47 * + - CAST ( NULL AS INTEGER ) * 40 * - NULLIF ( - 17, + COUNT ( * ) ) + + + CAST ( NULL AS REAL ) * - + 99 * - + 40 )
----
4316

query I rowsort
SELECT 54 + + + 98
----
152

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3933
SELECT 89 - - CAST( 44 AS SIGNED ) + + - NULLIF ( + 26, + 20 )
----
107

skipif mysql # not compatible
query I rowsort label-3933
SELECT 89 - - CAST ( 44 AS INTEGER ) + + - NULLIF ( + 26, + 20 )
----
107

query I rowsort
SELECT DISTINCT - 88 * + - 2
----
176

query I rowsort
SELECT 73 + + ( + 68 ) AS col0
----
141

query I rowsort
SELECT ALL + 16 + - 2
----
14

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3937
SELECT 63 * - 48 DIV ( + COUNT( * ) ) AS col2
----
-3024

skipif mysql # not compatible
query I rowsort label-3937
SELECT 63 * - 48 / ( + COUNT ( * ) ) AS col2
----
-3024

query I rowsort
SELECT 98 + + 99 * 19 + + 4 + 62
----
2045

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3939
SELECT 88 * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3939
SELECT 88 * CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3940
SELECT DISTINCT 73 + - COALESCE ( - 31, - SUM( + 5 ) DIV - + 29, + - COUNT( * ) * - - 75 ) + + 43 col2
----
147

skipif mysql # not compatible
query I rowsort label-3940
SELECT DISTINCT 73 + - COALESCE ( - 31, - SUM ( + 5 ) / - + 29, + - COUNT ( * ) * - - 75 ) + + 43 col2
----
147

onlyif mysql # DIV for integer division: 
query I rowsort label-3941
SELECT DISTINCT + 57 DIV ( + + 16 )
----
3

skipif mysql # not compatible
query I rowsort label-3941
SELECT DISTINCT + 57 / ( + + 16 )
----
3

query I rowsort
SELECT ALL ( - 64 ) + + 73 AS col2
----
9

query I rowsort
SELECT 28 * - - 85
----
2380

query I rowsort
SELECT ALL + + 72 * - 74
----
-5328

query II rowsort
SELECT 72 AS col1, 82 + + 39 AS col2
----
72
121

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3946
SELECT DISTINCT + 33 * - 79 - 42 DIV + 36 * - COUNT( * ) AS col0
----
-2606

skipif mysql # not compatible
query I rowsort label-3946
SELECT DISTINCT + 33 * - 79 - 42 / + 36 * - COUNT ( * ) AS col0
----
-2606

onlyif mysql # aggregate syntax: 
query I rowsort label-3947
SELECT 51 * + 95 + - - 5 + - + ( + MIN( - + 14 ) )
----
4864

skipif mysql # not compatible
query I rowsort label-3947
SELECT 51 * + 95 + - - 5 + - + ( + MIN ( - + 14 ) )
----
4864

onlyif mysql # aggregate syntax: 
query I rowsort label-3948
SELECT + COUNT( * ) * - COUNT( * ) * - 51 AS col2
----
51

skipif mysql # not compatible
query I rowsort label-3948
SELECT + COUNT ( * ) * - COUNT ( * ) * - 51 AS col2
----
51

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3949
SELECT - CAST( NULL AS DECIMAL ) + + COUNT( ALL + - 80 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3949
SELECT - CAST ( NULL AS REAL ) + + COUNT ( ALL + - 80 )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3950
SELECT - 88 * 55 + - 6 + - 82 + - 73 * - + 1 + - 29 + - 42 * 11 + + - 16 DIV + 87 * + - 14 * + 65
----
-5346

skipif mysql # not compatible
query I rowsort label-3950
SELECT - 88 * 55 + - 6 + - 82 + - 73 * - + 1 + - 29 + - 42 * 11 + + - 16 / + 87 * + - 14 * + 65
----
-5346

onlyif mysql # aggregate syntax: 
query II rowsort label-3951
SELECT DISTINCT - 18, COUNT( * ) AS col1
----
-18
1

skipif mysql # not compatible
query II rowsort label-3951
SELECT DISTINCT - 18, COUNT ( * ) AS col1
----
-18
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query III rowsort label-3952
SELECT DISTINCT - + 42 col0, SUM( ALL - - 23 ) DIV - COUNT( * ) + + COUNT( + 57 ) + + 95, + 49 * 9 AS col1
----
-42
73
441

skipif mysql # not compatible
query III rowsort label-3952
SELECT DISTINCT - + 42 col0, SUM ( ALL - - 23 ) / - COUNT ( * ) + + COUNT ( + 57 ) + + 95, + 49 * 9 AS col1
----
-42
73
441

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3953
SELECT CAST( NULL AS SIGNED ) AS col0, 50 + - NULLIF ( + - COUNT( * ), - 76 ) * + + COUNT( * )
----
NULL
51

skipif mysql # not compatible
query II rowsort label-3953
SELECT CAST ( NULL AS INTEGER ) AS col0, 50 + - NULLIF ( + - COUNT ( * ), - 76 ) * + + COUNT ( * )
----
NULL
51

onlyif mysql # aggregate syntax: 
query II rowsort label-3954
SELECT ALL - 67 AS col1, - COUNT( * )
----
-67
-1

skipif mysql # not compatible
query II rowsort label-3954
SELECT ALL - 67 AS col1, - COUNT ( * )
----
-67
-1

query I rowsort
SELECT DISTINCT - - ( + - 63 ) AS col2
----
-63

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3956
SELECT 56 * + CAST( NULL AS DECIMAL ) * + 89 * - 71 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3956
SELECT 56 * + CAST ( NULL AS REAL ) * + 89 * - 71 AS col0
----
NULL

query II rowsort
SELECT ALL 97 * + 95 * - - 20, 31 AS col2
----
184300
31

query II rowsort
SELECT ALL + 47 + 50 * - 14, - 23 AS col2
----
-653
-23

query II rowsort
SELECT ( + 81 ) * - + 98 + - 60 - + 40 + - 75 - - - 83 AS col2, + 30 AS col2
----
-8196
30

query I rowsort
SELECT ALL ( 42 ) * - - 2 + - 58
----
26

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3961
SELECT DISTINCT + 29 + - CAST( NULL AS SIGNED ) + 37 * + 63 * - 48 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3961
SELECT DISTINCT + 29 + - CAST ( NULL AS INTEGER ) + 37 * + 63 * - 48 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3962
SELECT ALL 13 + - 18 + 2 + - 34 * + 60 + + CAST( + + 63 AS SIGNED ) - + 27 + - CASE + 40 WHEN + 22 * + ( + - COUNT( * ) ) + + 89 THEN 45 END * - COUNT( * ) * + 23 * 10 * - 74
----
NULL

skipif mysql # not compatible
query I rowsort label-3962
SELECT ALL 13 + - 18 + 2 + - 34 * + 60 + + CAST ( + + 63 AS INTEGER ) - + 27 + - CASE + 40 WHEN + 22 * + ( + - COUNT ( * ) ) + + 89 THEN 45 END * - COUNT ( * ) * + 23 * 10 * - 74
----
NULL

query I rowsort
SELECT DISTINCT + 2 / - CASE - - ( + 49 ) WHEN + 89 - - + 97 + + + 79 * + 46 THEN + 58 * - 28 END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3964
SELECT DISTINCT + 30 + + 57 AS col1, - SUM( + 38 ) col1
----
87
-38

skipif mysql # not compatible
query II rowsort label-3964
SELECT DISTINCT + 30 + + 57 AS col1, - SUM ( + 38 ) col1
----
87
-38

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3965
SELECT CAST( + 63 AS SIGNED ) DIV - + 91
----
0

skipif mysql # not compatible
query I rowsort label-3965
SELECT CAST ( + 63 AS INTEGER ) / - + 91
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3966
SELECT CAST( + 36 AS SIGNED ) * 19 AS col2
----
684

skipif mysql # not compatible
query I rowsort label-3966
SELECT CAST ( + 36 AS INTEGER ) * 19 AS col2
----
684

onlyif mysql # aggregate syntax: 
query I rowsort label-3967
SELECT 79 - CASE - + 15 WHEN - - 30 + + 96 + 76 THEN NULLIF ( - 90, 61 ) * - 14 * - + COUNT( * ) + - 48 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-3967
SELECT 79 - CASE - + 15 WHEN - - 30 + + 96 + 76 THEN NULLIF ( - 90, 61 ) * - 14 * - + COUNT ( * ) + - 48 ELSE NULL END
----
NULL

query I rowsort
SELECT 88 - CASE - 19 WHEN - 61 THEN + 98 + 75 WHEN CASE 39 WHEN - 29 / + - 27 * - 64 * - 73 * - 61 - - + 1 THEN NULL ELSE - 47 END THEN 42 + 58 END
----
NULL

query I rowsort
SELECT 98 * 64 col2
----
6272

query I rowsort
SELECT ALL + 13 * 32
----
416

query I rowsort
SELECT ALL + 28 * + 87
----
2436

onlyif mysql # aggregate syntax: 
query I rowsort label-3972
SELECT ALL COUNT( ALL + 37 )
----
1

skipif mysql # not compatible
query I rowsort label-3972
SELECT ALL COUNT ( ALL + 37 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3973
SELECT DISTINCT - + 7 - - 62 * + 34 * - COALESCE ( + 39, + COUNT( * ) ) * + 59
----
-4850515

skipif mysql # not compatible
query I rowsort label-3973
SELECT DISTINCT - + 7 - - 62 * + 34 * - COALESCE ( + 39, + COUNT ( * ) ) * + 59
----
-4850515

query I rowsort
SELECT - - 15 + - + 64
----
-49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3975
SELECT CASE + CAST( + 96 AS SIGNED ) WHEN - + 53 THEN + 47 * + - 79 * + COUNT( * ) - - 74 + + ( 45 ) ELSE - 37 END
----
-37

skipif mysql # not compatible
query I rowsort label-3975
SELECT CASE + CAST ( + 96 AS INTEGER ) WHEN - + 53 THEN + 47 * + - 79 * + COUNT ( * ) - - 74 + + ( 45 ) ELSE - 37 END
----
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-3976
SELECT ALL - - 57 - + COUNT( + 44 )
----
56

skipif mysql # not compatible
query I rowsort label-3976
SELECT ALL - - 57 - + COUNT ( + 44 )
----
56

query I rowsort
SELECT - - 23 * - - 76 * - 95
----
-166060

query I rowsort
SELECT + 94 * - 27 + - 75 * - 92
----
4362

onlyif mysql # aggregate syntax: 
query I rowsort label-3979
SELECT - 52 + - COUNT( * ) + 31 - - COUNT( * ) * COUNT( * ) AS col0
----
-21

skipif mysql # not compatible
query I rowsort label-3979
SELECT - 52 + - COUNT ( * ) + 31 - - COUNT ( * ) * COUNT ( * ) AS col0
----
-21

query II rowsort
SELECT ALL 91 * + + 57 AS col1, - 76 * + 85 * - 19 - + 95
----
5187
122645

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3981
SELECT - 61 * + + CAST( + - 56 AS SIGNED ) * + COUNT( * ) + + + 97 AS col0, + 1 AS col0
----
3513
1

skipif mysql # not compatible
query II rowsort label-3981
SELECT - 61 * + + CAST ( + - 56 AS INTEGER ) * + COUNT ( * ) + + + 97 AS col0, + 1 AS col0
----
3513
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3982
SELECT ALL + + 53 DIV 53 * - + SUM( ALL - + 33 )
----
33

skipif mysql # not compatible
query I rowsort label-3982
SELECT ALL + + 53 / 53 * - + SUM ( ALL - + 33 )
----
33

query I rowsort
SELECT + + 92 col1
----
92

query I rowsort
SELECT DISTINCT + 19 * + 89 AS col0
----
1691

query I rowsort
SELECT ALL + COALESCE ( - + 77, + 62 ) * + 17
----
-1309

query I rowsort
SELECT ALL - 27 * + ( - 66 )
----
1782

onlyif mysql # aggregate syntax: 
query I rowsort label-3987
SELECT - - COUNT( * ) * - + 81
----
-81

skipif mysql # not compatible
query I rowsort label-3987
SELECT - - COUNT ( * ) * - + 81
----
-81

query I rowsort
SELECT - 50 - - + 0 AS col0
----
-50

onlyif mysql # aggregate syntax: 
query II rowsort label-3989
SELECT + COUNT( * ), 62 * + - 10 AS col2
----
1
-620

skipif mysql # not compatible
query II rowsort label-3989
SELECT + COUNT ( * ), 62 * + - 10 AS col2
----
1
-620

onlyif mysql # aggregate syntax: 
query I rowsort label-3990
SELECT + 44 / - + CASE + COUNT( - 56 ) WHEN - + 4 * + 20 - - + COUNT( * ) * ( + 2 ) * 63 + - NULLIF ( + - 58, - SUM( + 57 ) ) + 49 + + + ( - NULLIF ( 4, COUNT( ALL 96 ) * 53 ) ) / + 25 THEN 33 * 42 END
----
NULL

skipif mysql # not compatible
query I rowsort label-3990
SELECT + 44 / - + CASE + COUNT ( - 56 ) WHEN - + 4 * + 20 - - + COUNT ( * ) * ( + 2 ) * 63 + - NULLIF ( + - 58, - SUM ( + 57 ) ) + 49 + + + ( - NULLIF ( 4, COUNT ( ALL 96 ) * 53 ) ) / + 25 THEN 33 * 42 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3991
SELECT ALL 23 * - COALESCE ( + + 6, + - 86 + - COUNT( * ), 73 ) + 72 AS col2
----
-66

skipif mysql # not compatible
query I rowsort label-3991
SELECT ALL 23 * - COALESCE ( + + 6, + - 86 + - COUNT ( * ), 73 ) + 72 AS col2
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-3992
SELECT MAX( 18 ) * + 21 + 64 * NULLIF ( + MAX( + 74 ), + - 91 ) + - 46 AS col1
----
5068

skipif mysql # not compatible
query I rowsort label-3992
SELECT MAX ( 18 ) * + 21 + 64 * NULLIF ( + MAX ( + 74 ), + - 91 ) + - 46 AS col1
----
5068

onlyif mysql # aggregate syntax: 
query I rowsort label-3993
SELECT ALL + 19 * - + 56 + + COUNT( * ) + - 80 * + 2 + 58
----
-1165

skipif mysql # not compatible
query I rowsort label-3993
SELECT ALL + 19 * - + 56 + + COUNT ( * ) + - 80 * + 2 + 58
----
-1165

query I rowsort
SELECT ALL 3 * - 9 * - - 68 + 21
----
-1815

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3995
SELECT ALL + 28 col0, + 89 DIV COUNT( * ) * - 36 AS col1
----
28
-3204

skipif mysql # not compatible
query II rowsort label-3995
SELECT ALL + 28 col0, + 89 / COUNT ( * ) * - 36 AS col1
----
28
-3204

onlyif mysql # aggregate syntax: 
query I rowsort label-3996
SELECT MAX( DISTINCT 94 ) AS col0
----
94

skipif mysql # not compatible
query I rowsort label-3996
SELECT MAX ( DISTINCT 94 ) AS col0
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-3997
SELECT COUNT( ALL 80 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-3997
SELECT COUNT ( ALL 80 ) AS col1
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3998
SELECT ALL COUNT( * ) * + 38 * 63 - + MAX( ALL 87 ) DIV - 93 * - COUNT( * ) AS col2
----
2394

skipif mysql # not compatible
query I rowsort label-3998
SELECT ALL COUNT ( * ) * + 38 * 63 - + MAX ( ALL 87 ) / - 93 * - COUNT ( * ) AS col2
----
2394

query I rowsort
SELECT DISTINCT 6 * - 40
----
-240

query I rowsort
SELECT + 35 * + 78 AS col1
----
2730

query I rowsort
SELECT - - 13 + + 20
----
33

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4002
SELECT + CAST( + 62 AS SIGNED ) * + SUM( DISTINCT 70 ) col1
----
4340

skipif mysql # not compatible
query I rowsort label-4002
SELECT + CAST ( + 62 AS INTEGER ) * + SUM ( DISTINCT 70 ) col1
----
4340

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4003
SELECT + CAST( - + 90 AS SIGNED )
----
-90

skipif mysql # not compatible
query I rowsort label-4003
SELECT + CAST ( - + 90 AS INTEGER )
----
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-4004
SELECT - - COUNT( * ) + + 26 AS col0
----
27

skipif mysql # not compatible
query I rowsort label-4004
SELECT - - COUNT ( * ) + + 26 AS col0
----
27

onlyif mysql # DIV for integer division: 
query I rowsort label-4005
SELECT DISTINCT - 75 DIV - - 69 + - 75 AS col0
----
-76

skipif mysql # not compatible
query I rowsort label-4005
SELECT DISTINCT - 75 / - - 69 + - 75 AS col0
----
-76

query I rowsort
SELECT - 70 + + 85 + - - 89 AS col2
----
104

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4007
SELECT - MIN( 5 ) DIV 62 AS col1, 41
----
0
41

skipif mysql # not compatible
query II rowsort label-4007
SELECT - MIN ( 5 ) / 62 AS col1, 41
----
0
41

query I rowsort
SELECT DISTINCT - 25 * - 49 * + 73 + 25 AS col2
----
89450

onlyif mysql # aggregate syntax: 
query II rowsort label-4009
SELECT DISTINCT CASE 80 WHEN - COALESCE ( MIN( ALL - + 11 ), - - ( ( ( + 31 ) ) ) ) * + MAX( + 22 ) THEN 59 WHEN - + 63 * 86 * + 17 THEN NULL END / - 85 AS col2, - COUNT( * ) + - COUNT( * )
----
NULL
-2

skipif mysql # not compatible
query II rowsort label-4009
SELECT DISTINCT CASE 80 WHEN - COALESCE ( MIN ( ALL - + 11 ), - - ( ( ( + 31 ) ) ) ) * + MAX ( + 22 ) THEN 59 WHEN - + 63 * 86 * + 17 THEN NULL END / - 85 AS col2, - COUNT ( * ) + - COUNT ( * )
----
NULL
-2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4010
SELECT ALL - NULLIF ( - 21, + + CAST( COUNT( * ) AS SIGNED ) )
----
21

skipif mysql # not compatible
query I rowsort label-4010
SELECT ALL - NULLIF ( - 21, + + CAST ( COUNT ( * ) AS INTEGER ) )
----
21

onlyif mysql # aggregate syntax: 
query II rowsort label-4011
SELECT DISTINCT + ( - 88 ) * - COUNT( * ) + + 85, - 98 AS col1
----
173
-98

skipif mysql # not compatible
query II rowsort label-4011
SELECT DISTINCT + ( - 88 ) * - COUNT ( * ) + + 85, - 98 AS col1
----
173
-98

query I rowsort
SELECT ALL + 23 * - - 10
----
230

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4013
SELECT ALL + - 17 + + 24 / - + 58 + - + 84 * CAST( NULL AS SIGNED ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4013
SELECT ALL + - 17 + + 24 / - + 58 + - + 84 * CAST ( NULL AS INTEGER ) col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4014
SELECT - CAST( 12 AS SIGNED ) + - ( CAST( + 69 AS SIGNED ) ) * - + 6 AS col0
----
402

skipif mysql # not compatible
query I rowsort label-4014
SELECT - CAST ( 12 AS INTEGER ) + - ( CAST ( + 69 AS INTEGER ) ) * - + 6 AS col0
----
402

query I rowsort
SELECT DISTINCT + 90 * - 64 + + 75 + 33 AS col1
----
-5652

query I rowsort
SELECT DISTINCT + ( 58 )
----
58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4017
SELECT ALL 25 / + ( - + COUNT( ALL NULLIF ( - - 99, - ( + 64 ) * - 94 ) ) ) * 56 + + 55 * - COUNT( * ) + + 80 + - + CAST( NULL AS SIGNED ) * ( + - 10 ) * + - 93 + + - COUNT( * ) + MAX( 44 ) + + 12 / 97 / 59
----
NULL

skipif mysql # not compatible
query I rowsort label-4017
SELECT ALL 25 / + ( - + COUNT ( ALL NULLIF ( - - 99, - ( + 64 ) * - 94 ) ) ) * 56 + + 55 * - COUNT ( * ) + + 80 + - + CAST ( NULL AS INTEGER ) * ( + - 10 ) * + - 93 + + - COUNT ( * ) + MAX ( 44 ) + + 12 / 97 / 59
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4018
SELECT - - 1 DIV + + 2 + COUNT( + 65 )
----
1

skipif mysql # not compatible
query I rowsort label-4018
SELECT - - 1 / + + 2 + COUNT ( + 65 )
----
1

query I rowsort
SELECT - + 60 + + - 89
----
-149

onlyif mysql # aggregate syntax: 
query I rowsort label-4020
SELECT - 67 * + + MIN( DISTINCT - 77 ) - + - ( + - 67 ) AS col1
----
5092

skipif mysql # not compatible
query I rowsort label-4020
SELECT - 67 * + + MIN ( DISTINCT - 77 ) - + - ( + - 67 ) AS col1
----
5092

onlyif mysql # DIV for integer division: 
query I rowsort label-4021
SELECT - 32 DIV + + 83 * + NULLIF ( - ( 87 ), + 10 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4021
SELECT - 32 / + + 83 * + NULLIF ( - ( 87 ), + 10 ) AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4022
SELECT + SUM( - 36 )
----
-36

skipif mysql # not compatible
query I rowsort label-4022
SELECT + SUM ( - 36 )
----
-36

onlyif mysql # DIV for integer division: 
query I rowsort label-4023
SELECT ALL 87 DIV + + 19 + - 28 AS col1
----
-24

skipif mysql # not compatible
query I rowsort label-4023
SELECT ALL 87 / + + 19 + - 28 AS col1
----
-24

onlyif mysql # DIV for integer division: 
query I rowsort label-4024
SELECT - 96 DIV - + 34 AS col1
----
2

skipif mysql # not compatible
query I rowsort label-4024
SELECT - 96 / - + 34 AS col1
----
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4025
SELECT 48 / 4 + + 91 * - 16 * + CAST( NULL AS SIGNED ) AS col0, COUNT( * )
----
NULL
1

skipif mysql # not compatible
query II rowsort label-4025
SELECT 48 / 4 + + 91 * - 16 * + CAST ( NULL AS INTEGER ) AS col0, COUNT ( * )
----
NULL
1

query I rowsort
SELECT ALL + ( + 68 ) AS col2
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-4027
SELECT + SUM( ALL 93 )
----
93

skipif mysql # not compatible
query I rowsort label-4027
SELECT + SUM ( ALL 93 )
----
93

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4028
SELECT 21 * + 35 + - CAST( NULL AS SIGNED ) * COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4028
SELECT 21 * + 35 + - CAST ( NULL AS INTEGER ) * COUNT ( * ) AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query III rowsort label-4029
SELECT ( - - COUNT( * ) ) AS col2, - COUNT( * ) * + 84 * + 83 AS col0, + NULLIF ( + COUNT( * ), + 61 + - - 51 + - COUNT( * ) ) DIV + 21 - + 85 - + 68
----
1
-6972
-153

skipif mysql # not compatible
query III rowsort label-4029
SELECT ( - - COUNT ( * ) ) AS col2, - COUNT ( * ) * + 84 * + 83 AS col0, + NULLIF ( + COUNT ( * ), + 61 + - - 51 + - COUNT ( * ) ) / + 21 - + 85 - + 68
----
1
-6972
-153

query I rowsort
SELECT - + 83 col0
----
-83

query I rowsort
SELECT - 80 * + 79
----
-6320

query I rowsort
SELECT DISTINCT - 45 * - + 0 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4033
SELECT - + ( - 46 ) * - 27 + + 95 + - COUNT( * ) * - 21 - 60 * - + 44 AS col1
----
1514

skipif mysql # not compatible
query I rowsort label-4033
SELECT - + ( - 46 ) * - 27 + + 95 + - COUNT ( * ) * - 21 - 60 * - + 44 AS col1
----
1514

onlyif mysql # aggregate syntax: 
query II rowsort label-4034
SELECT MAX( + + 17 ) AS col0, 2 * 44 + - NULLIF ( - 67, 63 / 30 )
----
17
155

skipif mysql # not compatible
query II rowsort label-4034
SELECT MAX ( + + 17 ) AS col0, 2 * 44 + - NULLIF ( - 67, 63 / 30 )
----
17
155

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4035
SELECT NULLIF ( CAST( NULL AS SIGNED ), - COUNT( * ) ) - - - CAST( NULL AS SIGNED ) * + + 52
----
NULL

skipif mysql # not compatible
query I rowsort label-4035
SELECT NULLIF ( CAST ( NULL AS INTEGER ), - COUNT ( * ) ) - - - CAST ( NULL AS INTEGER ) * + + 52
----
NULL

query I rowsort
SELECT ALL COALESCE ( + 32, + 84 ) AS col2
----
32

query I rowsort
SELECT DISTINCT 85 * + - 15 * + 51 * + - 68
----
4421700

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4038
SELECT DISTINCT - SUM( ALL 35 ) AS col0, 19 + + 11 + - 63 DIV 5 AS col2
----
-35
18

skipif mysql # not compatible
query II rowsort label-4038
SELECT DISTINCT - SUM ( ALL 35 ) AS col0, 19 + + 11 + - 63 / 5 AS col2
----
-35
18

query I rowsort
SELECT DISTINCT + + 65 + + - 15 - 1 AS col1
----
49

query I rowsort
SELECT - 87 + - - 20 AS col0
----
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-4041
SELECT 75 - 98 * - COUNT( * )
----
173

skipif mysql # not compatible
query I rowsort label-4041
SELECT 75 - 98 * - COUNT ( * )
----
173

query I rowsort
SELECT COALESCE ( + ( - - 37 ), - - ( - 49 ) + 55 + + 76 ) AS col2
----
37

query I rowsort
SELECT DISTINCT - 44 + + 5
----
-39

query I rowsort
SELECT ALL + - 23 + + 83 AS col0
----
60

query I rowsort
SELECT + 36 + - 16
----
20

query I rowsort
SELECT ALL - + 10 * + + 14 * + - 93 * 79
----
1028580

query I rowsort
SELECT ALL ( 38 ) + - - 45 - 61 + + - 70
----
-48

query I rowsort
SELECT ALL + 50 + 84 col0
----
134

query I rowsort
SELECT ALL - 16 + + 44
----
28

query I rowsort
SELECT DISTINCT - 43 * + - 17 AS col0
----
731

onlyif mysql # aggregate syntax: 
query I rowsort label-4051
SELECT CASE + 0 WHEN - 93 THEN + 97 / + 70 WHEN AVG ( + 69 ) + + 24 * 46 THEN - + 56 * - 4 * - + 8 - - COUNT( * ) END / + 2 + + 15
----
NULL

skipif mysql # not compatible
query I rowsort label-4051
SELECT CASE + 0 WHEN - 93 THEN + 97 / + 70 WHEN AVG ( + 69 ) + + 24 * 46 THEN - + 56 * - 4 * - + 8 - - COUNT ( * ) END / + 2 + + 15
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4052
SELECT ALL - 25 * + 32 * + MAX( - 94 ) AS col1
----
75200

skipif mysql # not compatible
query I rowsort label-4052
SELECT ALL - 25 * + 32 * + MAX ( - 94 ) AS col1
----
75200

query I rowsort
SELECT DISTINCT - NULLIF ( + 78, + - 29 ) AS col1
----
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-4054
SELECT ALL - COUNT( * ) - - - COALESCE ( + + 30, - 58, + 96 - + ( + 1 ) ) + + 20 + 90 - - COUNT( * ) * 71 * - 51 * COUNT( * ) + - 83
----
-3625

skipif mysql # not compatible
query I rowsort label-4054
SELECT ALL - COUNT ( * ) - - - COALESCE ( + + 30, - 58, + 96 - + ( + 1 ) ) + + 20 + 90 - - COUNT ( * ) * 71 * - 51 * COUNT ( * ) + - 83
----
-3625

onlyif mysql # aggregate syntax: 
query II rowsort label-4055
SELECT ALL - COALESCE ( - + MIN( 23 ), 41 - 28 - + 46 * 68 * + - 13 ), + 80 AS col1
----
23
80

skipif mysql # not compatible
query II rowsort label-4055
SELECT ALL - COALESCE ( - + MIN ( 23 ), 41 - 28 - + 46 * 68 * + - 13 ), + 80 AS col1
----
23
80

onlyif mysql # aggregate syntax: 
query I rowsort label-4056
SELECT 18 * 93 * + 73 * - ( - COUNT( * ) )
----
122202

skipif mysql # not compatible
query I rowsort label-4056
SELECT 18 * 93 * + 73 * - ( - COUNT ( * ) )
----
122202

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4057
SELECT COUNT( DISTINCT + 79 ) * - CAST( NULL AS SIGNED ) + - 19 * + + 27 * - 70 * 19 * - - ( 20 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4057
SELECT COUNT ( DISTINCT + 79 ) * - CAST ( NULL AS INTEGER ) + - 19 * + + 27 * - 70 * 19 * - - ( 20 ) AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4058
SELECT ALL - CAST( - MIN( 26 ) AS SIGNED )
----
26

skipif mysql # not compatible
query I rowsort label-4058
SELECT ALL - CAST ( - MIN ( 26 ) AS INTEGER )
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-4059
SELECT ALL - NULLIF ( + 89, + - 83 + - COUNT( - 70 ) )
----
-89

skipif mysql # not compatible
query I rowsort label-4059
SELECT ALL - NULLIF ( + 89, + - 83 + - COUNT ( - 70 ) )
----
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-4060
SELECT DISTINCT - SUM( DISTINCT 97 ) - 44 AS col2
----
-141

skipif mysql # not compatible
query I rowsort label-4060
SELECT DISTINCT - SUM ( DISTINCT 97 ) - 44 AS col2
----
-141

query I rowsort
SELECT ALL - 81 * - + 35
----
2835

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4062
SELECT ALL - CAST( + + 54 AS SIGNED ) AS col0
----
-54

skipif mysql # not compatible
query I rowsort label-4062
SELECT ALL - CAST ( + + 54 AS INTEGER ) AS col0
----
-54

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4063
SELECT + CAST( NULL AS SIGNED ) * + ( + - COALESCE ( + - 15, 97, - 96 ) ) + + 95
----
NULL

skipif mysql # not compatible
query I rowsort label-4063
SELECT + CAST ( NULL AS INTEGER ) * + ( + - COALESCE ( + - 15, 97, - 96 ) ) + + 95
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4064
SELECT ALL - MAX( ALL 81 ) * - COUNT( * )
----
81

skipif mysql # not compatible
query I rowsort label-4064
SELECT ALL - MAX ( ALL 81 ) * - COUNT ( * )
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-4065
SELECT 98 * - COUNT( * ) AS col1
----
-98

skipif mysql # not compatible
query I rowsort label-4065
SELECT 98 * - COUNT ( * ) AS col1
----
-98

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4066
SELECT COUNT( * ) DIV + - 48 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4066
SELECT COUNT ( * ) / + - 48 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4067
SELECT ALL - + ( + COUNT( * ) ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-4067
SELECT ALL - + ( + COUNT ( * ) ) AS col1
----
-1

query I rowsort
SELECT + 77 + + 55 + + - 45 * + 70 AS col1
----
-3018

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4069
SELECT ALL + COALESCE ( + COUNT( * ), + 21 DIV - - COUNT( * ), + CAST( - + COALESCE ( 1, - 68, 2 * 2 + + 85 + - + 42 * - 72 + + 11 ) AS SIGNED ) ) * + + 40 AS col2
----
40

skipif mysql # not compatible
query I rowsort label-4069
SELECT ALL + COALESCE ( + COUNT ( * ), + 21 / - - COUNT ( * ), + CAST ( - + COALESCE ( 1, - 68, 2 * 2 + + 85 + - + 42 * - 72 + + 11 ) AS INTEGER ) ) * + + 40 AS col2
----
40

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4070
SELECT ALL COUNT( * ) DIV - ( - 50 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4070
SELECT ALL COUNT ( * ) / - ( - 50 ) AS col2
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4071
SELECT - 0 DIV + 86 * + 65 * + 11 * - 85 * - 59 DIV + + ( COUNT( * ) ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4071
SELECT - 0 / + 86 * + 65 * + 11 * - 85 * - 59 / + + ( COUNT ( * ) ) AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4072
SELECT DISTINCT + - 21 + + COUNT( ALL 48 )
----
-20

skipif mysql # not compatible
query I rowsort label-4072
SELECT DISTINCT + - 21 + + COUNT ( ALL 48 )
----
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-4073
SELECT ALL SUM( DISTINCT + 19 ) + 73 + 33
----
125

skipif mysql # not compatible
query I rowsort label-4073
SELECT ALL SUM ( DISTINCT + 19 ) + 73 + 33
----
125

query II rowsort
SELECT ALL 80, - 36 AS col2
----
80
-36

query I rowsort
SELECT 0 * - 39 AS col1
----
0

query I rowsort
SELECT - 41 + - 27 * - - 10 + 77
----
-234

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4077
SELECT + SUM( - + 56 ) * + + CAST( - + 91 AS SIGNED ) AS col2
----
5096

skipif mysql # not compatible
query I rowsort label-4077
SELECT + SUM ( - + 56 ) * + + CAST ( - + 91 AS INTEGER ) AS col2
----
5096

onlyif mysql # aggregate syntax: 
query I rowsort label-4078
SELECT ALL - COUNT( * ) + + - ( - + ( - 95 ) )
----
-96

skipif mysql # not compatible
query I rowsort label-4078
SELECT ALL - COUNT ( * ) + + - ( - + ( - 95 ) )
----
-96

onlyif mysql # aggregate syntax: 
query II rowsort label-4079
SELECT - COUNT( * ) + - 42 + + 52, 21 AS col0
----
9
21

skipif mysql # not compatible
query II rowsort label-4079
SELECT - COUNT ( * ) + - 42 + + 52, 21 AS col0
----
9
21

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4080
SELECT DISTINCT CAST( - AVG ( 52 ) AS SIGNED ) + - + MAX( ( + 34 ) ) * - 3 AS col2
----
50

skipif mysql # not compatible
query I rowsort label-4080
SELECT DISTINCT CAST ( - AVG ( 52 ) AS INTEGER ) + - + MAX ( ( + 34 ) ) * - 3 AS col2
----
50

query I rowsort
SELECT 0 + + 8
----
8

query I rowsort
SELECT ALL 99 + + 91 AS col2
----
190

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4083
SELECT ALL COUNT( * ) + - 0 DIV 11 DIV - 14 + + + COUNT( * )
----
2

skipif mysql # not compatible
query I rowsort label-4083
SELECT ALL COUNT ( * ) + - 0 / 11 / - 14 + + + COUNT ( * )
----
2

query I rowsort
SELECT 89 + + + 72
----
161

onlyif mysql # aggregate syntax: 
query I rowsort label-4085
SELECT SUM( DISTINCT + 24 ) * 31
----
744

skipif mysql # not compatible
query I rowsort label-4085
SELECT SUM ( DISTINCT + 24 ) * 31
----
744

query I rowsort
SELECT 99 + - - 18 + 15
----
132

onlyif mysql # aggregate syntax: 
query II rowsort label-4087
SELECT ALL 61, 78 * + 10 * SUM( 62 ) AS col1
----
61
48360

skipif mysql # not compatible
query II rowsort label-4087
SELECT ALL 61, 78 * + 10 * SUM ( 62 ) AS col1
----
61
48360

query I rowsort
SELECT ALL 43 - - 75 AS col1
----
118

query II rowsort
SELECT + 14, + 77 AS col0
----
14
77

onlyif mysql # aggregate syntax: 
query I rowsort label-4090
SELECT ( - 88 ) + - SUM( DISTINCT + - 10 ) AS col1
----
-78

skipif mysql # not compatible
query I rowsort label-4090
SELECT ( - 88 ) + - SUM ( DISTINCT + - 10 ) AS col1
----
-78

query I rowsort
SELECT + COALESCE ( + NULLIF ( - - 5, - 83 * 48 - + 40 * 11 * - 48 * 29 * - 32 + - 66 ), - 30 + - - 42 ) col1
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-4092
SELECT DISTINCT SUM( + - 31 ) * + 6
----
-186

skipif mysql # not compatible
query I rowsort label-4092
SELECT DISTINCT SUM ( + - 31 ) * + 6
----
-186

query I rowsort
SELECT 8 * + - 14
----
-112

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4094
SELECT ALL + ( COALESCE ( - 10, 17 * COALESCE ( 99, + - AVG ( DISTINCT - - 42 ) DIV - COUNT( * ) + - 3 ) ) )
----
-10

skipif mysql # not compatible
query I rowsort label-4094
SELECT ALL + ( COALESCE ( - 10, 17 * COALESCE ( 99, + - AVG ( DISTINCT - - 42 ) / - COUNT ( * ) + - 3 ) ) )
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-4095
SELECT - 65 * + 80 * 93 + 91 - - COALESCE ( 77, - 15, - 18 - - 1 + - 3 * - 2 * + - COUNT( * ) ) col1
----
-483432

skipif mysql # not compatible
query I rowsort label-4095
SELECT - 65 * + 80 * 93 + 91 - - COALESCE ( 77, - 15, - 18 - - 1 + - 3 * - 2 * + - COUNT ( * ) ) col1
----
-483432

onlyif mysql # aggregate syntax: 
query II rowsort label-4096
SELECT MAX( DISTINCT + 3 ) AS col2, - 10 * + - 40
----
3
400

skipif mysql # not compatible
query II rowsort label-4096
SELECT MAX ( DISTINCT + 3 ) AS col2, - 10 * + - 40
----
3
400

query I rowsort
SELECT - 89 + - 89 AS col2
----
-178

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4098
SELECT + CASE - NULLIF ( - 36, + - NULLIF ( 71, COUNT( * ) / + 74 * - 98 ) * 2 + + + 85 ) WHEN + + CAST( NULL AS SIGNED ) THEN - - 30 * + 19 + + 5 - 13 + + 8 + + 59 * + COUNT( * ) WHEN + 93 THEN NULL ELSE + 40 END AS col1
----
40

skipif mysql # not compatible
query I rowsort label-4098
SELECT + CASE - NULLIF ( - 36, + - NULLIF ( 71, COUNT ( * ) / + 74 * - 98 ) * 2 + + + 85 ) WHEN + + CAST ( NULL AS INTEGER ) THEN - - 30 * + 19 + + 5 - 13 + + 8 + + 59 * + COUNT ( * ) WHEN + 93 THEN NULL ELSE + 40 END AS col1
----
40

query I rowsort
SELECT - 35 * 48 * + + 77
----
-129360

query I rowsort
SELECT - 41 * + 28 AS col1
----
-1148

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4101
SELECT DISTINCT + CAST( + CASE - 25 WHEN + 84 THEN 38 * 38 * - + 50 ELSE NULL END AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4101
SELECT DISTINCT + CAST ( + CASE - 25 WHEN + 84 THEN 38 * 38 * - + 50 ELSE NULL END AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT ALL + 96 * 69
----
6624

onlyif mysql # aggregate syntax: 
query I rowsort label-4103
SELECT - COUNT( + 79 ) * + - 50 + + 56 + + - COUNT( * )
----
105

skipif mysql # not compatible
query I rowsort label-4103
SELECT - COUNT ( + 79 ) * + - 50 + + 56 + + - COUNT ( * )
----
105

query I rowsort
SELECT ALL - 5 + - 82 AS col0
----
-87

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4105
SELECT - + COUNT( * ) + - + CAST( NULL AS SIGNED ) col0, 0 + + 19
----
NULL
19

skipif mysql # not compatible
query II rowsort label-4105
SELECT - + COUNT ( * ) + - + CAST ( NULL AS INTEGER ) col0, 0 + + 19
----
NULL
19

query I rowsort
SELECT - + 24 * 69 * 84 col2
----
-139104

query I rowsort
SELECT ALL - 44 + + 83 + + 39 - 82 * - 23 AS col1
----
1964

query I rowsort
SELECT DISTINCT + - 68 * + 64
----
-4352

query I rowsort
SELECT - + 3 * - 73 - - + 88
----
307

query I rowsort
SELECT + 61 * - 27 AS col1
----
-1647

query II rowsort
SELECT ALL 37 AS col1, - 11 AS col0
----
37
-11

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4112
SELECT - 5 - + 7 + + CAST( - - CASE + - 15 WHEN - 96 * + - 70 THEN - + MAX( - + 77 ) END AS DECIMAL ) * + 27 * - 64 * - 28
----
NULL

skipif mysql # not compatible
query I rowsort label-4112
SELECT - 5 - + 7 + + CAST ( - - CASE + - 15 WHEN - 96 * + - 70 THEN - + MAX ( - + 77 ) END AS REAL ) * + 27 * - 64 * - 28
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4113
SELECT ALL - + ( + COUNT( * ) ) + - - 21 * + MIN( DISTINCT - 81 ) * + - 13 AS col0
----
22112

skipif mysql # not compatible
query I rowsort label-4113
SELECT ALL - + ( + COUNT ( * ) ) + - - 21 * + MIN ( DISTINCT - 81 ) * + - 13 AS col0
----
22112

onlyif mysql # aggregate syntax: 
query II rowsort label-4114
SELECT DISTINCT - 43 AS col2, + SUM( + 59 ) AS col0
----
-43
59

skipif mysql # not compatible
query II rowsort label-4114
SELECT DISTINCT - 43 AS col2, + SUM ( + 59 ) AS col0
----
-43
59

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4115
SELECT ALL + 28 - 45 + - 44 + + 52 + + + CAST( - + 30 AS SIGNED ) + - COUNT( * ) * - - 21 * - 61
----
1242

skipif mysql # not compatible
query I rowsort label-4115
SELECT ALL + 28 - 45 + - 44 + + 52 + + + CAST ( - + 30 AS INTEGER ) + - COUNT ( * ) * - - 21 * - 61
----
1242

query I rowsort
SELECT + + 23 * - 60
----
-1380

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4117
SELECT ALL - ( - CAST( NULL AS SIGNED ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4117
SELECT ALL - ( - CAST ( NULL AS INTEGER ) ) AS col0
----
NULL

query I rowsort
SELECT - COALESCE ( - 76, - 17 ) AS col0
----
76

query I rowsort
SELECT + 37 - + ( 78 ) + - 4
----
-45

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4120
SELECT ALL 43 - - CAST( - 62 AS SIGNED ) + - + 35 DIV - 10
----
-16

skipif mysql # not compatible
query I rowsort label-4120
SELECT ALL 43 - - CAST ( - 62 AS INTEGER ) + - + 35 / - 10
----
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-4121
SELECT DISTINCT + 8 * + - CASE + - 50 WHEN + COUNT( * ) THEN - 28 * + + 88 END
----
NULL

skipif mysql # not compatible
query I rowsort label-4121
SELECT DISTINCT + 8 * + - CASE + - 50 WHEN + COUNT ( * ) THEN - 28 * + + 88 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4122
SELECT + ( - COUNT( * ) ) + 74 col1
----
73

skipif mysql # not compatible
query I rowsort label-4122
SELECT + ( - COUNT ( * ) ) + 74 col1
----
73

query II rowsort
SELECT ALL + 99 * - 77 AS col2, ( + 67 )
----
-7623
67

query I rowsort
SELECT + ( - 4 ) * NULLIF ( + - 19, 47 * 70 * 29 + 81 )
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-4125
SELECT DISTINCT COUNT( * ) * + 59 col0
----
59

skipif mysql # not compatible
query I rowsort label-4125
SELECT DISTINCT COUNT ( * ) * + 59 col0
----
59

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4126
SELECT CAST( NULLIF ( - 85, - CASE - 20 WHEN - COUNT( * ) * 0 THEN - ( - + 19 ) + 0 WHEN COUNT( * ) + 13 - + 74 + - - 60 * - - 5 THEN NULL END ) AS SIGNED ) AS col0
----
-85

skipif mysql # not compatible
query I rowsort label-4126
SELECT CAST ( NULLIF ( - 85, - CASE - 20 WHEN - COUNT ( * ) * 0 THEN - ( - + 19 ) + 0 WHEN COUNT ( * ) + 13 - + 74 + - - 60 * - - 5 THEN NULL END ) AS INTEGER ) AS col0
----
-85

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-4127
SELECT + 71 / + + CAST( NULL AS DECIMAL ), 79 + - - CAST( NULL AS DECIMAL )
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-4127
SELECT + 71 / + + CAST ( NULL AS REAL ), 79 + - - CAST ( NULL AS REAL )
----
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4128
SELECT + 86 / - + CAST( NULL AS SIGNED ) * 40 + + - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-4128
SELECT + 86 / - + CAST ( NULL AS INTEGER ) * 40 + + - COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4129
SELECT + 48 + - - SUM( 36 ) + + 54
----
138

skipif mysql # not compatible
query I rowsort label-4129
SELECT + 48 + - - SUM ( 36 ) + + 54
----
138

query I rowsort
SELECT ( - + 44 ) AS col0
----
-44

query II rowsort
SELECT + 77 - - 46 AS col0, - 25 + - - 53
----
123
28

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4132
SELECT - COUNT( * ) DIV - + 68 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4132
SELECT - COUNT ( * ) / - + 68 AS col0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4133
SELECT DISTINCT CAST( - 90 AS SIGNED ) * - - 94 AS col0
----
-8460

skipif mysql # not compatible
query I rowsort label-4133
SELECT DISTINCT CAST ( - 90 AS INTEGER ) * - - 94 AS col0
----
-8460

query I rowsort
SELECT + 5 + + COALESCE ( + - 76, + 86, 42 * + 58 ) col0
----
-71

query I rowsort
SELECT + COALESCE ( + 6, 14, + 25 ) AS col0
----
6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4136
SELECT DISTINCT - 97 * - CAST( 66 AS SIGNED )
----
6402

skipif mysql # not compatible
query I rowsort label-4136
SELECT DISTINCT - 97 * - CAST ( 66 AS INTEGER )
----
6402

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4137
SELECT - + COUNT( * ) - + ( + CASE + + 6 WHEN + CAST( NULL AS SIGNED ) THEN NULL WHEN + 33 * + 10 + + 57 + 62 + - 71 / MIN( ALL - 82 ) THEN - MAX( DISTINCT 80 ) END ) * - COUNT( DISTINCT + 4 ) + - CAST( NULL AS SIGNED ), + 11 AS col1
----
NULL
11

skipif mysql # not compatible
query II rowsort label-4137
SELECT - + COUNT ( * ) - + ( + CASE + + 6 WHEN + CAST ( NULL AS INTEGER ) THEN NULL WHEN + 33 * + 10 + + 57 + 62 + - 71 / MIN ( ALL - 82 ) THEN - MAX ( DISTINCT 80 ) END ) * - COUNT ( DISTINCT + 4 ) + - CAST ( NULL AS INTEGER ), + 11 AS col1
----
NULL
11

onlyif mysql # aggregate syntax: 
query I rowsort label-4138
SELECT ALL + - 93 * - MIN( - - 28 ) + - 9 + + + COUNT( * ) * + 59 AS col0
----
2654

skipif mysql # not compatible
query I rowsort label-4138
SELECT ALL + - 93 * - MIN ( - - 28 ) + - 9 + + + COUNT ( * ) * + 59 AS col0
----
2654

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4139
SELECT ALL + ( 68 ) * + CASE + 28 WHEN 7 * - ( + COUNT( * ) ) + + 67 * + - 50 - - - COUNT( * ) THEN NULL WHEN + CASE 29 WHEN ( 75 ) + + ( CASE COUNT( 94 ) WHEN + + 3 THEN - 55 * + AVG ( ALL 30 ) + + 56 * + ( + 96 / + 54 - - CAST( NULL AS SIGNED ) ) ELSE - 64 END ) THEN + 86 WHEN + 13 THEN 8 END + + 99 THEN 17 END + - 91 * + MIN( ALL + 53 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4139
SELECT ALL + ( 68 ) * + CASE + 28 WHEN 7 * - ( + COUNT ( * ) ) + + 67 * + - 50 - - - COUNT ( * ) THEN NULL WHEN + CASE 29 WHEN ( 75 ) + + ( CASE COUNT ( 94 ) WHEN + + 3 THEN - 55 * + AVG ( ALL 30 ) + + 56 * + ( + 96 / + 54 - - CAST ( NULL AS INTEGER ) ) ELSE - 64 END ) THEN + 86 WHEN + 13 THEN 8 END + + 99 THEN 17 END + - 91 * + MIN ( ALL + 53 )
----
NULL

query I rowsort
SELECT + 62 + - 83 * - 98 * + + 46
----
374226

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4141
SELECT DISTINCT - MAX( + 55 ) * + 95 + - 10 + 71 * COUNT( * ) - - 73 DIV + SUM( 3 ) AS col2
----
-5140

skipif mysql # not compatible
query I rowsort label-4141
SELECT DISTINCT - MAX ( + 55 ) * + 95 + - 10 + 71 * COUNT ( * ) - - 73 / + SUM ( 3 ) AS col2
----
-5140

query I rowsort
SELECT - NULLIF ( + ( - - ( + 86 ) ), + + 59 + 82 )
----
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-4143
SELECT - COUNT( * ) + 84
----
83

skipif mysql # not compatible
query I rowsort label-4143
SELECT - COUNT ( * ) + 84
----
83

query I rowsort
SELECT ALL 3 * - 74 - + 86 col1
----
-308

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4145
SELECT ALL CASE - AVG ( ALL - 39 ) WHEN + 52 * 72 - + + 26 * 29 + - 88 * + 74 + 51 + ( 44 ) / 18 THEN + - 95 + + + 73 + + 84 WHEN - - CAST( + 92 AS SIGNED ) THEN - 22 + - + 27 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4145
SELECT ALL CASE - AVG ( ALL - 39 ) WHEN + 52 * 72 - + + 26 * 29 + - 88 * + 74 + 51 + ( 44 ) / 18 THEN + - 95 + + + 73 + + 84 WHEN - - CAST ( + 92 AS INTEGER ) THEN - 22 + - + 27 END AS col0
----
NULL

query I rowsort
SELECT - - 52 + - 97 AS col2
----
-45

query I rowsort
SELECT - - ( + 46 )
----
46

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4148
SELECT - + MAX( - 49 ) + + CAST( - - ( + - NULLIF ( - + 0, - + 95 * 71 - + 95 ) ) AS SIGNED ) AS col2
----
49

skipif mysql # not compatible
query I rowsort label-4148
SELECT - + MAX ( - 49 ) + + CAST ( - - ( + - NULLIF ( - + 0, - + 95 * 71 - + 95 ) ) AS INTEGER ) AS col2
----
49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4149
SELECT ALL + + 24 * - ( - MIN( DISTINCT ( - CAST( 4 AS SIGNED ) ) ) ) + - 9
----
-105

skipif mysql # not compatible
query I rowsort label-4149
SELECT ALL + + 24 * - ( - MIN ( DISTINCT ( - CAST ( 4 AS INTEGER ) ) ) ) + - 9
----
-105

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4150
SELECT - 92 DIV - - NULLIF ( 17, + COUNT( * ) * 45 * - - CAST( - 45 AS SIGNED ) * - - 23 + - 99 DIV - 80 - - COUNT( * ) DIV + ( + + ( + + CASE + COALESCE ( - 86, + 89 + 9 - 92 ) WHEN + + COALESCE ( + 97, - 46 * + 74 ) - - 10 THEN + 66 END ) ) * 49 + - 27 * 34 ) * + COUNT( * ) AS col2
----
-5

skipif mysql # not compatible
query I rowsort label-4150
SELECT - 92 / - - NULLIF ( 17, + COUNT ( * ) * 45 * - - CAST ( - 45 AS INTEGER ) * - - 23 + - 99 / - 80 - - COUNT ( * ) / + ( + + ( + + CASE + COALESCE ( - 86, + 89 + 9 - 92 ) WHEN + + COALESCE ( + 97, - 46 * + 74 ) - - 10 THEN + 66 END ) ) * 49 + - 27 * 34 ) * + COUNT ( * ) AS col2
----
-5

query I rowsort
SELECT - 55 * - 82 * ( 59 ) * - 97 AS col1
----
-25810730

onlyif mysql # DIV for integer division: 
query I rowsort label-4152
SELECT DISTINCT 31 DIV 83
----
0

skipif mysql # not compatible
query I rowsort label-4152
SELECT DISTINCT 31 / 83
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4153
SELECT COUNT( * ) * - - 71
----
71

skipif mysql # not compatible
query I rowsort label-4153
SELECT COUNT ( * ) * - - 71
----
71

query I rowsort
SELECT DISTINCT + 76 + - 92 AS col2
----
-16

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4155
SELECT DISTINCT 25 AS col1, CAST( + CASE 17 WHEN - + AVG ( + - 33 ) * + COUNT( * ) + 5 THEN - CASE + ( 2 ) WHEN - - 34 * + 21 * - COUNT( ALL + + 54 ) THEN NULL ELSE + 35 + 50 END / + 74 + + COUNT( ALL - 60 ) / + + 62 WHEN + + 15 * + 3 * + 20 + 16 * AVG ( CAST( 92 AS SIGNED ) ) THEN NULL END AS SIGNED ) AS col1
----
25
NULL

skipif mysql # not compatible
query II rowsort label-4155
SELECT DISTINCT 25 AS col1, CAST ( + CASE 17 WHEN - + AVG ( + - 33 ) * + COUNT ( * ) + 5 THEN - CASE + ( 2 ) WHEN - - 34 * + 21 * - COUNT ( ALL + + 54 ) THEN NULL ELSE + 35 + 50 END / + 74 + + COUNT ( ALL - 60 ) / + + 62 WHEN + + 15 * + 3 * + 20 + 16 * AVG ( CAST ( 92 AS INTEGER ) ) THEN NULL END AS INTEGER ) AS col1
----
25
NULL

query I rowsort
SELECT 98 * - - 14
----
1372

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4157
SELECT COALESCE ( - 66, CASE - 5 WHEN + - 40 + 31 THEN + 89 WHEN 16 * + ( + 26 ) THEN NULL END ) + - - 55 + + COUNT( * ) DIV - 85 AS col0, - 45 AS col2
----
-11
-45

skipif mysql # not compatible
query II rowsort label-4157
SELECT COALESCE ( - 66, CASE - 5 WHEN + - 40 + 31 THEN + 89 WHEN 16 * + ( + 26 ) THEN NULL END ) + - - 55 + + COUNT ( * ) / - 85 AS col0, - 45 AS col2
----
-11
-45

query I rowsort
SELECT 14 + + 18
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-4159
SELECT DISTINCT - COUNT( * ) + - 3 * COUNT( * ) AS col2
----
-4

skipif mysql # not compatible
query I rowsort label-4159
SELECT DISTINCT - COUNT ( * ) + - 3 * COUNT ( * ) AS col2
----
-4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4160
SELECT ALL CAST( NULL AS SIGNED ) + - 67 + - 7 * - + CAST( NULL AS SIGNED ) * - + 97 / + - AVG ( ALL 30 ) + + 68 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4160
SELECT ALL CAST ( NULL AS INTEGER ) + - 67 + - 7 * - + CAST ( NULL AS INTEGER ) * - + 97 / + - AVG ( ALL 30 ) + + 68 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4161
SELECT ALL + 59 + MAX( 39 )
----
98

skipif mysql # not compatible
query I rowsort label-4161
SELECT ALL + 59 + MAX ( 39 )
----
98

query II rowsort
SELECT ALL 17 + - 92 + - 83 AS col2, ( + ( - ( + + 55 ) ) )
----
-158
-55

query I rowsort
SELECT DISTINCT - 10 + - + 65
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-4164
SELECT - CASE - 63 WHEN COUNT( * ) THEN + + 1 END + + - 10
----
NULL

skipif mysql # not compatible
query I rowsort label-4164
SELECT - CASE - 63 WHEN COUNT ( * ) THEN + + 1 END + + - 10
----
NULL

query I rowsort
SELECT + COALESCE ( + 66, + ( + - 0 ) ) * - 35
----
-2310

query I rowsort
SELECT NULLIF ( + 39, - 53 ) * + 14 AS col2
----
546

onlyif mysql # DIV for integer division: 
query I rowsort label-4167
SELECT DISTINCT + ( + - 91 ) DIV - - 6 AS col2
----
-15

skipif mysql # not compatible
query I rowsort label-4167
SELECT DISTINCT + ( + - 91 ) / - - 6 AS col2
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-4168
SELECT ALL - 16 - - - ( COUNT( * ) ) AS col1
----
-17

skipif mysql # not compatible
query I rowsort label-4168
SELECT ALL - 16 - - - ( COUNT ( * ) ) AS col1
----
-17

query I rowsort
SELECT ALL - 53 * - - 72 col2
----
-3816

onlyif mysql # aggregate syntax: 
query I rowsort label-4170
SELECT DISTINCT COUNT( * ) - - MAX( + - 83 ) AS col0
----
-82

skipif mysql # not compatible
query I rowsort label-4170
SELECT DISTINCT COUNT ( * ) - - MAX ( + - 83 ) AS col0
----
-82

query I rowsort
SELECT ALL + 36 * + 53
----
1908

query I rowsort
SELECT 6 * - 82 * 64
----
-31488

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4173
SELECT ALL + 61 - 87 * CAST( - ( + 79 ) AS SIGNED ) AS col0
----
6934

skipif mysql # not compatible
query I rowsort label-4173
SELECT ALL + 61 - 87 * CAST ( - ( + 79 ) AS INTEGER ) AS col0
----
6934

query II rowsort
SELECT ALL - 96 AS col1, + 86 AS col1
----
-96
86

query I rowsort
SELECT ALL + 92 * - 17 * + 54 AS col2
----
-84456

query I rowsort
SELECT DISTINCT - COALESCE ( - 82, - ( + 59 ) ) AS col0
----
82

query II rowsort
SELECT + 16 AS col1, ( - 59 ) + + + 63
----
16
4

query I rowsort
SELECT - 53 + + - ( + + 95 ) AS col0
----
-148

query II rowsort
SELECT - 62 * + + 52 + 35, + 7 AS col2
----
-3189
7

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4180
SELECT 30 AS col0, 5 - - 20 + + CAST( - - 24 AS SIGNED ) AS col1
----
30
49

skipif mysql # not compatible
query II rowsort label-4180
SELECT 30 AS col0, 5 - - 20 + + CAST ( - - 24 AS INTEGER ) AS col1
----
30
49

onlyif mysql # aggregate syntax: 
query I rowsort label-4181
SELECT MAX( + 81 ) col0
----
81

skipif mysql # not compatible
query I rowsort label-4181
SELECT MAX ( + 81 ) col0
----
81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4182
SELECT ALL + COUNT( * ) * - - CASE 35 WHEN 72 * - + 63 + + 49 + + - 53 - - 49 THEN + CASE + 97 WHEN - - COUNT( * ) + - 34 / + 70 - + + CAST( NULL AS SIGNED ) + + - 35 THEN 86 / + - CASE + 11 WHEN - 95 + CAST( - 8 AS SIGNED ) * + 58 + - 7 - 85 THEN NULL WHEN + 47 THEN NULLIF ( - COUNT( * ), 29 ) ELSE NULL END WHEN 53 THEN NULL END + - 38 END
----
NULL

skipif mysql # not compatible
query I rowsort label-4182
SELECT ALL + COUNT ( * ) * - - CASE 35 WHEN 72 * - + 63 + + 49 + + - 53 - - 49 THEN + CASE + 97 WHEN - - COUNT ( * ) + - 34 / + 70 - + + CAST ( NULL AS INTEGER ) + + - 35 THEN 86 / + - CASE + 11 WHEN - 95 + CAST ( - 8 AS INTEGER ) * + 58 + - 7 - 85 THEN NULL WHEN + 47 THEN NULLIF ( - COUNT ( * ), 29 ) ELSE NULL END WHEN 53 THEN NULL END + - 38 END
----
NULL

query I rowsort
SELECT 89 * - ( - 81 ) AS col1
----
7209

query II rowsort
SELECT 92 + - + 90 AS col0, 25 AS col1
----
2
25

query I rowsort
SELECT 1 + + + 42
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-4186
SELECT ALL + COUNT( * ) + - 81 AS col0
----
-80

skipif mysql # not compatible
query I rowsort label-4186
SELECT ALL + COUNT ( * ) + - 81 AS col0
----
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-4187
SELECT 91 + COUNT( * ) - + 15
----
77

skipif mysql # not compatible
query I rowsort label-4187
SELECT 91 + COUNT ( * ) - + 15
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-4188
SELECT ALL - COUNT( * ) * 25
----
-25

skipif mysql # not compatible
query I rowsort label-4188
SELECT ALL - COUNT ( * ) * 25
----
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-4189
SELECT 36 - COUNT( * ) + COUNT( * )
----
36

skipif mysql # not compatible
query I rowsort label-4189
SELECT 36 - COUNT ( * ) + COUNT ( * )
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-4190
SELECT DISTINCT - ( + - CASE + COUNT( * ) WHEN - + MAX( DISTINCT 98 ) + 19 * 93 + + 32 + + - 49 + - AVG ( - 61 ) * + 18 + - 29 / 25 + + ( 11 ) + 52 THEN NULL ELSE - COUNT( * ) END ) * + COALESCE ( - + 82, + 54, + MIN( 89 ) ) * COALESCE ( + 21, - ( + 27 ) ) - 8
----
1714

skipif mysql # not compatible
query I rowsort label-4190
SELECT DISTINCT - ( + - CASE + COUNT ( * ) WHEN - + MAX ( DISTINCT 98 ) + 19 * 93 + + 32 + + - 49 + - AVG ( - 61 ) * + 18 + - 29 / 25 + + ( 11 ) + 52 THEN NULL ELSE - COUNT ( * ) END ) * + COALESCE ( - + 82, + 54, + MIN ( 89 ) ) * COALESCE ( + 21, - ( + 27 ) ) - 8
----
1714

onlyif mysql # aggregate syntax: 
query I rowsort label-4191
SELECT ALL + SUM( DISTINCT - 52 ) + 61 AS col2
----
9

skipif mysql # not compatible
query I rowsort label-4191
SELECT ALL + SUM ( DISTINCT - 52 ) + 61 AS col2
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-4192
SELECT DISTINCT - 9 + - MIN( + 16 ) AS col2
----
-25

skipif mysql # not compatible
query I rowsort label-4192
SELECT DISTINCT - 9 + - MIN ( + 16 ) AS col2
----
-25

query I rowsort
SELECT 17 + - 4 AS col1
----
13

query II rowsort
SELECT ALL - 36 * - - 56, 73 AS col1
----
-2016
73

onlyif mysql # aggregate syntax: 
query II rowsort label-4195
SELECT DISTINCT - MAX( ALL 73 ) + - 94 * - 77 col1, COUNT( * ) AS col0
----
7165
1

skipif mysql # not compatible
query II rowsort label-4195
SELECT DISTINCT - MAX ( ALL 73 ) + - 94 * - 77 col1, COUNT ( * ) AS col0
----
7165
1

onlyif mysql # DIV for integer division: 
query I rowsort label-4196
SELECT ALL 76 DIV + 42
----
1

skipif mysql # not compatible
query I rowsort label-4196
SELECT ALL 76 / + 42
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4197
SELECT ALL - COUNT( - ( - 55 ) )
----
-1

skipif mysql # not compatible
query I rowsort label-4197
SELECT ALL - COUNT ( - ( - 55 ) )
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4198
SELECT DISTINCT - AVG ( - ( 77 ) ) * 14 * 23 + + 97 / CAST( 23 AS SIGNED ) * ( + + CAST( NULL AS SIGNED ) ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4198
SELECT DISTINCT - AVG ( - ( 77 ) ) * 14 * 23 + + 97 / CAST ( 23 AS INTEGER ) * ( + + CAST ( NULL AS INTEGER ) ) col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4199
SELECT ALL + 12 * 41 + + 79 + COUNT( * ) AS col0
----
572

skipif mysql # not compatible
query I rowsort label-4199
SELECT ALL + 12 * 41 + + 79 + COUNT ( * ) AS col0
----
572

query I rowsort
SELECT 51 + - 25
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-4201
SELECT ALL + MAX( ALL + + 29 ) * ( - NULLIF ( - COUNT( * ), + SUM( ALL 12 ) ) ) AS col1
----
29

skipif mysql # not compatible
query I rowsort label-4201
SELECT ALL + MAX ( ALL + + 29 ) * ( - NULLIF ( - COUNT ( * ), + SUM ( ALL 12 ) ) ) AS col1
----
29

query I rowsort
SELECT + 16 * 5 + - 31 AS col1
----
49

onlyif mysql # aggregate syntax: 
query I rowsort label-4203
SELECT ALL - - 8 - COUNT( * )
----
7

skipif mysql # not compatible
query I rowsort label-4203
SELECT ALL - - 8 - COUNT ( * )
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-4204
SELECT ALL - + COALESCE ( + + 82, 13, + COUNT( * ), + 69 * 71 )
----
-82

skipif mysql # not compatible
query I rowsort label-4204
SELECT ALL - + COALESCE ( + + 82, 13, + COUNT ( * ), + 69 * 71 )
----
-82

query I rowsort
SELECT ALL 97 - 44 AS col2
----
53

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4206
SELECT ALL + 7 * - COUNT( * ) + + 28 + + 80 DIV - 6 + + + COUNT( * ) AS col2
----
9

skipif mysql # not compatible
query I rowsort label-4206
SELECT ALL + 7 * - COUNT ( * ) + + 28 + + 80 / - 6 + + + COUNT ( * ) AS col2
----
9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4207
SELECT ALL - - COUNT( * ) * - CAST( - COUNT( * ) AS SIGNED ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-4207
SELECT ALL - - COUNT ( * ) * - CAST ( - COUNT ( * ) AS INTEGER ) AS col2
----
1

query I rowsort
SELECT 35 * ( + + 14 ) + + ( - 81 )
----
409

onlyif mysql # DIV for integer division: 
query I rowsort label-4209
SELECT 0 DIV 11
----
0

skipif mysql # not compatible
query I rowsort label-4209
SELECT 0 / 11
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4210
SELECT + - CAST( + - 17 AS SIGNED )
----
17

skipif mysql # not compatible
query I rowsort label-4210
SELECT + - CAST ( + - 17 AS INTEGER )
----
17

query I rowsort
SELECT + 61 * 14 + + COALESCE ( - - 70, - 23 ) AS col2
----
924

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4212
SELECT DISTINCT - ( 44 ) DIV CASE + 20 WHEN - CASE + 82 WHEN + 95 * COUNT( * ) THEN + 81 END DIV - 52 THEN NULL WHEN - CASE - 63 WHEN 30 + NULLIF ( 3, + 62 + 80 ) THEN - 17 END * + 51 THEN - - 55 WHEN - 58 THEN 93 + - 93 ELSE - + 60 END AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4212
SELECT DISTINCT - ( 44 ) / CASE + 20 WHEN - CASE + 82 WHEN + 95 * COUNT ( * ) THEN + 81 END / - 52 THEN NULL WHEN - CASE - 63 WHEN 30 + NULLIF ( 3, + 62 + 80 ) THEN - 17 END * + 51 THEN - - 55 WHEN - 58 THEN 93 + - 93 ELSE - + 60 END AS col2
----
0

query I rowsort
SELECT + 79 + + 45
----
124

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4214
SELECT DISTINCT - COUNT( * ) * + + 99 * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4214
SELECT DISTINCT - COUNT ( * ) * + + 99 * + CAST ( NULL AS INTEGER )
----
NULL

query II rowsort
SELECT DISTINCT + 94 + - 44 * - 91 AS col1, 41 AS col0
----
4098
41

query I rowsort
SELECT ALL 78 * + + 9
----
702

query I rowsort
SELECT + 84 * 31 AS col2
----
2604

query I rowsort
SELECT + 90 * + 35 AS col2
----
3150

onlyif mysql # aggregate syntax: 
query I rowsort label-4219
SELECT + 49 + - - COUNT( * ) AS col0
----
50

skipif mysql # not compatible
query I rowsort label-4219
SELECT + 49 + - - COUNT ( * ) AS col0
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-4220
SELECT - COUNT( DISTINCT + - 86 )
----
-1

skipif mysql # not compatible
query I rowsort label-4220
SELECT - COUNT ( DISTINCT + - 86 )
----
-1

query I rowsort
SELECT ALL 48 + - 7 AS col1
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-4222
SELECT + 54 + + - 46 + + - SUM( + - 88 ) + + - 49 + + ( CASE 50 WHEN 18 * + 51 + + 22 THEN NULL ELSE + 51 * - 32 * 10 END ) * + + 89 * + - 34 AS col0
----
49384367

skipif mysql # not compatible
query I rowsort label-4222
SELECT + 54 + + - 46 + + - SUM ( + - 88 ) + + - 49 + + ( CASE 50 WHEN 18 * + 51 + + 22 THEN NULL ELSE + 51 * - 32 * 10 END ) * + + 89 * + - 34 AS col0
----
49384367

query I rowsort
SELECT DISTINCT 77 * + NULLIF ( - 93, - 31 * 21 )
----
-7161

query II rowsort
SELECT DISTINCT 81 AS col2, 97
----
81
97

query II rowsort
SELECT ALL ( + 70 ) + - 68 AS col1, + 85 AS col2
----
2
85

query I rowsort
SELECT DISTINCT - 87 * - 20
----
1740

query I rowsort
SELECT - NULLIF ( - 27, - 48 )
----
27

query I rowsort
SELECT - 76 + + + 1 AS col0
----
-75

query I rowsort
SELECT DISTINCT - 87 * 65 AS col1
----
-5655

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4230
SELECT - + 97 * 89 + + CAST( + 85 AS SIGNED ) AS col1
----
-8548

skipif mysql # not compatible
query I rowsort label-4230
SELECT - + 97 * 89 + + CAST ( + 85 AS INTEGER ) AS col1
----
-8548

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4231
SELECT - + ( CAST( NULL AS SIGNED ) ) * - + 41 col1, 23
----
NULL
23

skipif mysql # not compatible
query II rowsort label-4231
SELECT - + ( CAST ( NULL AS INTEGER ) ) * - + 41 col1, 23
----
NULL
23

onlyif mysql # aggregate syntax: 
query I rowsort label-4232
SELECT ALL + 86 * - MIN( DISTINCT + 31 ) + - 5 + + - 75 AS col2
----
-2746

skipif mysql # not compatible
query I rowsort label-4232
SELECT ALL + 86 * - MIN ( DISTINCT + 31 ) + - 5 + + - 75 AS col2
----
-2746

query II rowsort
SELECT DISTINCT + 38 AS col0, + 0
----
38
0

query I rowsort
SELECT 22 * + 71 * 1 + 30 - + - 65
----
1657

query I rowsort
SELECT ALL + NULLIF ( + - 25, - ( - 69 ) ) AS col0
----
-25

query I rowsort
SELECT DISTINCT + 58 * 6
----
348

onlyif mysql # aggregate syntax: 
query I rowsort label-4237
SELECT ALL + ( - - 67 ) * - 41 - + 4 + - + MIN( DISTINCT - 0 )
----
-2751

skipif mysql # not compatible
query I rowsort label-4237
SELECT ALL + ( - - 67 ) * - 41 - + 4 + - + MIN ( DISTINCT - 0 )
----
-2751

query II rowsort
SELECT ALL + 15 AS col0, 19 AS col0
----
15
19

query I rowsort
SELECT - 55 * 40 AS col0
----
-2200

onlyif mysql # DIV for integer division: 
query I rowsort label-4240
SELECT - + ( ( 42 ) ) DIV 10
----
-4

skipif mysql # not compatible
query I rowsort label-4240
SELECT - + ( ( 42 ) ) / 10
----
-4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4241
SELECT DISTINCT + + 59 / - CASE - ( + 72 ) WHEN - 8 THEN + 67 + + 21 + + + 13 ELSE NULL END * + 10 * + 66 - 13 - + MAX( + CAST( NULL AS SIGNED ) ) * - 51 * + - COUNT( * ) + - 29 + 2 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4241
SELECT DISTINCT + + 59 / - CASE - ( + 72 ) WHEN - 8 THEN + 67 + + 21 + + + 13 ELSE NULL END * + 10 * + 66 - 13 - + MAX ( + CAST ( NULL AS INTEGER ) ) * - 51 * + - COUNT ( * ) + - 29 + 2 col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4242
SELECT 39 DIV + + 48 + - + 69
----
-69

skipif mysql # not compatible
query I rowsort label-4242
SELECT 39 / + + 48 + - + 69
----
-69

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4243
SELECT - - 70 * CAST( NULL AS SIGNED ) * 30
----
NULL

skipif mysql # not compatible
query I rowsort label-4243
SELECT - - 70 * CAST ( NULL AS INTEGER ) * 30
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4244
SELECT ALL + + AVG ( + CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-4244
SELECT ALL + + AVG ( + CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4245
SELECT DISTINCT MAX( DISTINCT ( + 54 ) ) * + + 46 * 81 + + COUNT( * ) * 26 + 30 * - 88
----
198590

skipif mysql # not compatible
query I rowsort label-4245
SELECT DISTINCT MAX ( DISTINCT ( + 54 ) ) * + + 46 * 81 + + COUNT ( * ) * 26 + 30 * - 88
----
198590

onlyif mysql # aggregate syntax: 
query I rowsort label-4246
SELECT DISTINCT - 63 * - 30 * - COUNT( * ) + 19 * 15 + - 13 AS col1
----
-1618

skipif mysql # not compatible
query I rowsort label-4246
SELECT DISTINCT - 63 * - 30 * - COUNT ( * ) + 19 * 15 + - 13 AS col1
----
-1618

query I rowsort
SELECT DISTINCT - 90 * - 8
----
720

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4248
SELECT - AVG ( DISTINCT - 66 ) + CASE + - 74 WHEN 83 THEN - - 5 - + + 75 * + 89 END / + - COUNT( * ) + 98 - + 40 + + COALESCE ( - 9, - + SUM( - 79 ) ) / - - 31 / - 1 * 14 + - + NULLIF ( - COUNT( * ), + 27 + + 49 ) * + NULLIF ( - - ( + 50 ), - CAST( - MIN( 54 ) AS SIGNED ) ) * 77 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4248
SELECT - AVG ( DISTINCT - 66 ) + CASE + - 74 WHEN 83 THEN - - 5 - + + 75 * + 89 END / + - COUNT ( * ) + 98 - + 40 + + COALESCE ( - 9, - + SUM ( - 79 ) ) / - - 31 / - 1 * 14 + - + NULLIF ( - COUNT ( * ), + 27 + + 49 ) * + NULLIF ( - - ( + 50 ), - CAST ( - MIN ( 54 ) AS INTEGER ) ) * 77 col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4249
SELECT + CASE - 21 WHEN - 25 - - MIN( DISTINCT + 17 ) + - - 91 + + + CASE WHEN NOT - 3 IS NOT NULL THEN CAST( + 54 AS SIGNED ) END * - + 82 THEN + SUM( ALL + 0 ) WHEN + 31 * + 14 + - 35 THEN - COUNT( * ) * - 76 * + COUNT( * ) * + ( + 54 ) / + 18 + + 26 ELSE NULL END col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4249
SELECT + CASE - 21 WHEN - 25 - - MIN ( DISTINCT + 17 ) + - - 91 + + + CASE WHEN NOT - 3 IS NOT NULL THEN CAST ( + 54 AS INTEGER ) END * - + 82 THEN + SUM ( ALL + 0 ) WHEN + 31 * + 14 + - 35 THEN - COUNT ( * ) * - 76 * + COUNT ( * ) * + ( + 54 ) / + 18 + + 26 ELSE NULL END col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4250
SELECT COUNT( * ) col2, 52
----
1
52

skipif mysql # not compatible
query II rowsort label-4250
SELECT COUNT ( * ) col2, 52
----
1
52

onlyif mysql # aggregate syntax: 
query I rowsort label-4251
SELECT - 43 + COUNT( * ) AS col2
----
-42

skipif mysql # not compatible
query I rowsort label-4251
SELECT - 43 + COUNT ( * ) AS col2
----
-42

onlyif mysql # aggregate syntax: 
query II rowsort label-4252
SELECT COUNT( * ), - 27 * - COALESCE ( 86, - 77 ) AS col2
----
1
2322

skipif mysql # not compatible
query II rowsort label-4252
SELECT COUNT ( * ), - 27 * - COALESCE ( 86, - 77 ) AS col2
----
1
2322

query I rowsort
SELECT - 37 * - 53 AS col0
----
1961

query II rowsort
SELECT ALL 19 AS col1, ( + 25 )
----
19
25

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4255
SELECT - NULLIF ( - + MIN( + 86 ), + + NULLIF ( + + 35, CAST( + - COUNT( * ) AS SIGNED ) + 68 - - - 20 / - 90 ) )
----
86

skipif mysql # not compatible
query I rowsort label-4255
SELECT - NULLIF ( - + MIN ( + 86 ), + + NULLIF ( + + 35, CAST ( + - COUNT ( * ) AS INTEGER ) + 68 - - - 20 / - 90 ) )
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-4256
SELECT DISTINCT - 64 + 81 * + COUNT( * )
----
17

skipif mysql # not compatible
query I rowsort label-4256
SELECT DISTINCT - 64 + 81 * + COUNT ( * )
----
17

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4257
SELECT ALL CAST( NULL AS SIGNED ) * COUNT( * ), + 88 col1
----
NULL
88

skipif mysql # not compatible
query II rowsort label-4257
SELECT ALL CAST ( NULL AS INTEGER ) * COUNT ( * ), + 88 col1
----
NULL
88

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4258
SELECT ALL NULLIF ( MIN( 43 ), - + 95 ) DIV - 14
----
-3

skipif mysql # not compatible
query I rowsort label-4258
SELECT ALL NULLIF ( MIN ( 43 ), - + 95 ) / - 14
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4259
SELECT DISTINCT 18 + - 65 * + 83 + + + 41 + - CAST( 20 AS SIGNED ) + + 3 + - 52 * - 46 + + 33 AS col2
----
-2928

skipif mysql # not compatible
query I rowsort label-4259
SELECT DISTINCT 18 + - 65 * + 83 + + + 41 + - CAST ( 20 AS INTEGER ) + + 3 + - 52 * - 46 + + 33 AS col2
----
-2928

onlyif mysql # DIV for integer division: 
query I rowsort label-4260
SELECT DISTINCT ( - - 15 ) DIV - ( - - 38 ) + - + 47
----
-47

skipif mysql # not compatible
query I rowsort label-4260
SELECT DISTINCT ( - - 15 ) / - ( - - 38 ) + - + 47
----
-47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4261
SELECT ALL CAST( - 25 AS SIGNED ) * + 90
----
-2250

skipif mysql # not compatible
query I rowsort label-4261
SELECT ALL CAST ( - 25 AS INTEGER ) * + 90
----
-2250

query I rowsort
SELECT + 71 * - 6 AS col2
----
-426

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4263
SELECT - CAST( - - 10 AS SIGNED )
----
-10

skipif mysql # not compatible
query I rowsort label-4263
SELECT - CAST ( - - 10 AS INTEGER )
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-4264
SELECT + 35 - - COUNT( DISTINCT - 16 ) * COUNT( * ) AS col0
----
36

skipif mysql # not compatible
query I rowsort label-4264
SELECT + 35 - - COUNT ( DISTINCT - 16 ) * COUNT ( * ) AS col0
----
36

query I rowsort
SELECT ALL 17 - 92 * + - 49 AS col2
----
4525

query I rowsort
SELECT - ( - - 36 ) col2
----
-36

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4267
SELECT + COALESCE ( - - 80, CAST( NULL AS SIGNED ), + 21, + COUNT( - + 73 ) ) + + + COUNT( * ) + CASE - 69 WHEN - 45 THEN - 42 WHEN - 38 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-4267
SELECT + COALESCE ( - - 80, CAST ( NULL AS INTEGER ), + 21, + COUNT ( - + 73 ) ) + + + COUNT ( * ) + CASE - 69 WHEN - 45 THEN - 42 WHEN - 38 THEN NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4268
SELECT ALL - 29 * - 75 * 30 + - + COUNT( * )
----
65249

skipif mysql # not compatible
query I rowsort label-4268
SELECT ALL - 29 * - 75 * 30 + - + COUNT ( * )
----
65249

onlyif mysql # aggregate syntax: 
query I rowsort label-4269
SELECT ALL - SUM( DISTINCT 80 )
----
-80

skipif mysql # not compatible
query I rowsort label-4269
SELECT ALL - SUM ( DISTINCT 80 )
----
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-4270
SELECT + MAX( 50 )
----
50

skipif mysql # not compatible
query I rowsort label-4270
SELECT + MAX ( 50 )
----
50

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4271
SELECT ALL + CAST( - 32 AS SIGNED )
----
-32

skipif mysql # not compatible
query I rowsort label-4271
SELECT ALL + CAST ( - 32 AS INTEGER )
----
-32

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4272
SELECT + + 24 * + MAX( + - 42 ) + + + AVG ( DISTINCT - + CAST( NULL AS DECIMAL ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-4272
SELECT + + 24 * + MAX ( + - 42 ) + + + AVG ( DISTINCT - + CAST ( NULL AS REAL ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4273
SELECT - ( COUNT( * ) ) * - 12 * - - 33
----
396

skipif mysql # not compatible
query I rowsort label-4273
SELECT - ( COUNT ( * ) ) * - 12 * - - 33
----
396

onlyif mysql # aggregate syntax: 
query I rowsort label-4274
SELECT ALL + - 65 * - 44 * COUNT( * )
----
2860

skipif mysql # not compatible
query I rowsort label-4274
SELECT ALL + - 65 * - 44 * COUNT ( * )
----
2860

query I rowsort
SELECT + ( - 52 ) + + + 31
----
-21

query I rowsort
SELECT 33 * - + 1 + + - 81
----
-114

query I rowsort
SELECT ALL + 53 + 68
----
121

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4278
SELECT + ( CAST( - - 17 AS SIGNED ) ) AS col2
----
17

skipif mysql # not compatible
query I rowsort label-4278
SELECT + ( CAST ( - - 17 AS INTEGER ) ) AS col2
----
17

query I rowsort
SELECT ALL - 78 + 51
----
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-4280
SELECT ALL - - 77 + - COUNT( * ) AS col0
----
76

skipif mysql # not compatible
query I rowsort label-4280
SELECT ALL - - 77 + - COUNT ( * ) AS col0
----
76

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4281
SELECT ALL - - CAST( NULL AS SIGNED ) AS col0, - 49
----
NULL
-49

skipif mysql # not compatible
query II rowsort label-4281
SELECT ALL - - CAST ( NULL AS INTEGER ) AS col0, - 49
----
NULL
-49

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4282
SELECT 99 + + - 24 DIV + ( - - 30 ) * + 34 * + ( + - COUNT( * ) ) col0
----
99

skipif mysql # not compatible
query I rowsort label-4282
SELECT 99 + + - 24 / + ( - - 30 ) * + 34 * + ( + - COUNT ( * ) ) col0
----
99

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4283
SELECT ALL - 42 col1, 89 * - CAST( - - CAST( NULL AS SIGNED ) AS SIGNED ) * - 93
----
-42
NULL

skipif mysql # not compatible
query II rowsort label-4283
SELECT ALL - 42 col1, 89 * - CAST ( - - CAST ( NULL AS INTEGER ) AS INTEGER ) * - 93
----
-42
NULL

query I rowsort
SELECT 92 * 59
----
5428

onlyif mysql # aggregate syntax: 
query II rowsort label-4285
SELECT DISTINCT - SUM( + 41 ), 53 AS col1
----
-41
53

skipif mysql # not compatible
query II rowsort label-4285
SELECT DISTINCT - SUM ( + 41 ), 53 AS col1
----
-41
53

query I rowsort
SELECT ALL - 77 + + 4 AS col1
----
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-4287
SELECT 7 + - 65 + - 61 * + COUNT( * )
----
-119

skipif mysql # not compatible
query I rowsort label-4287
SELECT 7 + - 65 + - 61 * + COUNT ( * )
----
-119

onlyif mysql # aggregate syntax: 
query I rowsort label-4288
SELECT - 41 * - - NULLIF ( MIN( DISTINCT - 80 ), + - 47 ) + + 91
----
3371

skipif mysql # not compatible
query I rowsort label-4288
SELECT - 41 * - - NULLIF ( MIN ( DISTINCT - 80 ), + - 47 ) + + 91
----
3371

onlyif mysql # aggregate syntax: 
query I rowsort label-4289
SELECT ALL + 4 * - - SUM( + ( - - 44 ) ) * + - 52 + + 69 AS col2
----
-9083

skipif mysql # not compatible
query I rowsort label-4289
SELECT ALL + 4 * - - SUM ( + ( - - 44 ) ) * + - 52 + + 69 AS col2
----
-9083

onlyif mysql # aggregate syntax: 
query I rowsort label-4290
SELECT DISTINCT - MAX( - - 62 )
----
-62

skipif mysql # not compatible
query I rowsort label-4290
SELECT DISTINCT - MAX ( - - 62 )
----
-62

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4291
SELECT ALL - ( - 36 ) - + + COUNT( * ) + 60 * + 57 * COALESCE ( CASE ( + 4 ) WHEN - + 29 + + COUNT( * ) THEN + 63 WHEN + 70 THEN - + 73 DIV - 55 - + 41 END, - ( COALESCE ( 82, COUNT( * ) ) ) + - - NULLIF ( - 1, 64 ) + + - 63 ) AS col2
----
-499285

skipif mysql # not compatible
query I rowsort label-4291
SELECT ALL - ( - 36 ) - + + COUNT ( * ) + 60 * + 57 * COALESCE ( CASE ( + 4 ) WHEN - + 29 + + COUNT ( * ) THEN + 63 WHEN + 70 THEN - + 73 / - 55 - + 41 END, - ( COALESCE ( 82, COUNT ( * ) ) ) + - - NULLIF ( - 1, 64 ) + + - 63 ) AS col2
----
-499285

query I rowsort
SELECT DISTINCT 60 * - 75
----
-4500

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4293
SELECT ALL + COALESCE ( + 72, + 10 * 19 * + ( + 85 ) * + + CAST( NULL AS SIGNED ) ) - - + 7 AS col1
----
79

skipif mysql # not compatible
query I rowsort label-4293
SELECT ALL + COALESCE ( + 72, + 10 * 19 * + ( + 85 ) * + + CAST ( NULL AS INTEGER ) ) - - + 7 AS col1
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-4294
SELECT ALL 77 - - 10 * 87 + - - COUNT( * )
----
948

skipif mysql # not compatible
query I rowsort label-4294
SELECT ALL 77 - - 10 * 87 + - - COUNT ( * )
----
948

query II rowsort
SELECT DISTINCT + 87 * - + 74 AS col2, 95
----
-6438
95

onlyif mysql # aggregate syntax: 
query I rowsort label-4296
SELECT CASE - 54 WHEN - 71 THEN - 48 - ( - 48 ) END + + 55 - - MIN( ALL + 22 ) + 21
----
NULL

skipif mysql # not compatible
query I rowsort label-4296
SELECT CASE - 54 WHEN - 71 THEN - 48 - ( - 48 ) END + + 55 - - MIN ( ALL + 22 ) + 21
----
NULL

query I rowsort
SELECT 32 * - 30 col1
----
-960

onlyif mysql # aggregate syntax: 
query II rowsort label-4298
SELECT ( - + 27 ) * - - 0 + + SUM( ALL + + 29 ) AS col2, + 91 AS col2
----
29
91

skipif mysql # not compatible
query II rowsort label-4298
SELECT ( - + 27 ) * - - 0 + + SUM ( ALL + + 29 ) AS col2, + 91 AS col2
----
29
91

query I rowsort
SELECT 71 + + 95 - 3 - + 44 AS col1
----
119

onlyif mysql # aggregate syntax: 
query II rowsort label-4300
SELECT 48 + - + COUNT( * ), + 69 * - - 15 * 72 AS col0
----
47
74520

skipif mysql # not compatible
query II rowsort label-4300
SELECT 48 + - + COUNT ( * ), + 69 * - - 15 * 72 AS col0
----
47
74520

onlyif mysql # DIV for integer division: 
query I rowsort label-4301
SELECT DISTINCT 52 - 22 DIV - 23 AS col1
----
52

skipif mysql # not compatible
query I rowsort label-4301
SELECT DISTINCT 52 - 22 / - 23 AS col1
----
52

onlyif mysql # DIV for integer division: 
query I rowsort label-4302
SELECT ALL 11 DIV - 30 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4302
SELECT ALL 11 / - 30 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4303
SELECT - - MAX( ALL + ( + 93 ) ) col2
----
93

skipif mysql # not compatible
query I rowsort label-4303
SELECT - - MAX ( ALL + ( + 93 ) ) col2
----
93

onlyif mysql # DIV for integer division: 
query I rowsort label-4304
SELECT DISTINCT - + 51 DIV - - ( - + 21 ) AS col2
----
2

skipif mysql # not compatible
query I rowsort label-4304
SELECT DISTINCT - + 51 / - - ( - + 21 ) AS col2
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-4305
SELECT ALL + ( + - COUNT( * ) ) * - 50 AS col1
----
50

skipif mysql # not compatible
query I rowsort label-4305
SELECT ALL + ( + - COUNT ( * ) ) * - 50 AS col1
----
50

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4306
SELECT ALL CAST( NULL AS SIGNED ) * + - COUNT( * ) / ( + COUNT( * ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4306
SELECT ALL CAST ( NULL AS INTEGER ) * + - COUNT ( * ) / ( + COUNT ( * ) ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4307
SELECT 29 * - + SUM( 4 )
----
-116

skipif mysql # not compatible
query I rowsort label-4307
SELECT 29 * - + SUM ( 4 )
----
-116

query II rowsort
SELECT - 46 + + + 69 AS col0, 52 AS col2
----
23
52

query II rowsort
SELECT 75 * - 59 * 87 AS col2, + 65 * ( CASE + COALESCE ( 69, 92 / 73 + + + 75 / + NULLIF ( - + 93, + 72 ), - + 35, 79 * - ( 61 ) ) WHEN + - 94 THEN ( - COALESCE ( - 57, + - 16 * + - AVG ( ALL - 81 ) ) ) END )
----
-384975
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4310
SELECT 19 + ( CASE + - 81 WHEN - 15 THEN 19 + - + ( + COUNT( * ) ) WHEN + - 54 THEN - - 6 ELSE 50 + + 49 - 42 + + - CAST( NULL AS SIGNED ) END ) + 88
----
NULL

skipif mysql # not compatible
query I rowsort label-4310
SELECT 19 + ( CASE + - 81 WHEN - 15 THEN 19 + - + ( + COUNT ( * ) ) WHEN + - 54 THEN - - 6 ELSE 50 + + 49 - 42 + + - CAST ( NULL AS INTEGER ) END ) + 88
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4311
SELECT ALL NULLIF ( - ( - 81 ), CAST( + MAX( + 85 ) AS DECIMAL ) ) * - ( + 69 ) * 40 AS col0
----
-223560

skipif mysql # not compatible
query I rowsort label-4311
SELECT ALL NULLIF ( - ( - 81 ), CAST ( + MAX ( + 85 ) AS REAL ) ) * - ( + 69 ) * 40 AS col0
----
-223560

onlyif mysql # aggregate syntax: 
query I rowsort label-4312
SELECT ALL - 42 + + - MIN( 53 ) - 5 col0
----
-100

skipif mysql # not compatible
query I rowsort label-4312
SELECT ALL - 42 + + - MIN ( 53 ) - 5 col0
----
-100

query I rowsort
SELECT DISTINCT 48 * + 96 - 96 AS col1
----
4512

onlyif mysql # aggregate syntax: 
query II rowsort label-4314
SELECT DISTINCT 92 + COUNT( * ) AS col0, - ( 79 )
----
93
-79

skipif mysql # not compatible
query II rowsort label-4314
SELECT DISTINCT 92 + COUNT ( * ) AS col0, - ( 79 )
----
93
-79

query I rowsort
SELECT DISTINCT 75 + + + 56 + - 78
----
53

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4316
SELECT ALL + CAST( NULL AS SIGNED ) + 56
----
NULL

skipif mysql # not compatible
query I rowsort label-4316
SELECT ALL + CAST ( NULL AS INTEGER ) + 56
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4317
SELECT DISTINCT - + MIN( DISTINCT - - 28 ) AS col1, + 36
----
-28
36

skipif mysql # not compatible
query II rowsort label-4317
SELECT DISTINCT - + MIN ( DISTINCT - - 28 ) AS col1, + 36
----
-28
36

onlyif mysql # aggregate syntax: 
query I rowsort label-4318
SELECT ALL - - NULLIF ( + 49, COUNT( + - 84 ) ) AS col1
----
49

skipif mysql # not compatible
query I rowsort label-4318
SELECT ALL - - NULLIF ( + 49, COUNT ( + - 84 ) ) AS col1
----
49

query I rowsort
SELECT DISTINCT - 99 + - + 84
----
-183

query I rowsort
SELECT ALL 59 + - + 55
----
4

query I rowsort
SELECT + 29 * + COALESCE ( - ( + + 86 ), + 79 )
----
-2494

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4322
SELECT DISTINCT - ( COUNT( * ) ) * - ( + 58 ) DIV + + 59
----
0

skipif mysql # not compatible
query I rowsort label-4322
SELECT DISTINCT - ( COUNT ( * ) ) * - ( + 58 ) / + + 59
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4323
SELECT DISTINCT - MIN( NULLIF ( + 26, + 46 ) )
----
-26

skipif mysql # not compatible
query I rowsort label-4323
SELECT DISTINCT - MIN ( NULLIF ( + 26, + 46 ) )
----
-26

query I rowsort
SELECT DISTINCT 61 + + 16 AS col2
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-4325
SELECT ALL - COUNT( + 87 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-4325
SELECT ALL - COUNT ( + 87 ) AS col0
----
-1

query II rowsort
SELECT 1 AS col2, 78 AS col1
----
1
78

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4327
SELECT ALL MIN( ALL + - 23 ) - + 40 * + CAST( NULL AS SIGNED ) / - 1 * - 62 / + COUNT( * ) * + + 75 AS col0, 42
----
NULL
42

skipif mysql # not compatible
query II rowsort label-4327
SELECT ALL MIN ( ALL + - 23 ) - + 40 * + CAST ( NULL AS INTEGER ) / - 1 * - 62 / + COUNT ( * ) * + + 75 AS col0, 42
----
NULL
42

query I rowsort
SELECT DISTINCT 54 * + 86 AS col2
----
4644

query I rowsort
SELECT DISTINCT - NULLIF ( - ( + 20 ), + 28 )
----
20

onlyif mysql # DIV for integer division: 
query I rowsort label-4330
SELECT 42 DIV - 72
----
0

skipif mysql # not compatible
query I rowsort label-4330
SELECT 42 / - 72
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-4331
SELECT ALL - 78 AS col2, COUNT( * ) / + 23 + + - 33 - + - 63 + + + NULLIF ( + COUNT( - 69 ), + AVG ( - 41 ) ) + 81 + + ( + + 75 ) / + MAX( ALL + CASE + 52 WHEN + 60 THEN - 22 END ) / + 98 * - ( AVG ( - 92 ) ) AS col0
----
-78
NULL

skipif mysql # not compatible
query II rowsort label-4331
SELECT ALL - 78 AS col2, COUNT ( * ) / + 23 + + - 33 - + - 63 + + + NULLIF ( + COUNT ( - 69 ), + AVG ( - 41 ) ) + 81 + + ( + + 75 ) / + MAX ( ALL + CASE + 52 WHEN + 60 THEN - 22 END ) / + 98 * - ( AVG ( - 92 ) ) AS col0
----
-78
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4332
SELECT ALL - MIN( - - 90 )
----
-90

skipif mysql # not compatible
query I rowsort label-4332
SELECT ALL - MIN ( - - 90 )
----
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-4333
SELECT ( + 49 ) + + COUNT( * ) + - COUNT( * )
----
49

skipif mysql # not compatible
query I rowsort label-4333
SELECT ( + 49 ) + + COUNT ( * ) + - COUNT ( * )
----
49

query I rowsort
SELECT 52 * - 73
----
-3796

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-4335
SELECT 19 * + COALESCE ( - 28, - - ( 50 ) + + + 8 ) * + COUNT( * ) + + CAST( NULL AS DECIMAL ), 77 AS col0
----
NULL
77

skipif mysql # not compatible
query II rowsort label-4335
SELECT 19 * + COALESCE ( - 28, - - ( 50 ) + + + 8 ) * + COUNT ( * ) + + CAST ( NULL AS REAL ), 77 AS col0
----
NULL
77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4336
SELECT ALL - COUNT( * ) - + COALESCE ( + NULLIF ( - - 64, - 55 + + - 11 ), + 17 DIV 89 + - + 74 + + 85 + - - 8 * COUNT( * ) * 71, + COUNT( DISTINCT - 70 ) ) + - - 59 + CAST( + 41 AS SIGNED ) - - 33 * - + 15 * + 12 * 37 AS col1
----
-219745

skipif mysql # not compatible
query I rowsort label-4336
SELECT ALL - COUNT ( * ) - + COALESCE ( + NULLIF ( - - 64, - 55 + + - 11 ), + 17 / 89 + - + 74 + + 85 + - - 8 * COUNT ( * ) * 71, + COUNT ( DISTINCT - 70 ) ) + - - 59 + CAST ( + 41 AS INTEGER ) - - 33 * - + 15 * + 12 * 37 AS col1
----
-219745

onlyif mysql # DIV for integer division: 
query I rowsort label-4337
SELECT 32 DIV + 52 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4337
SELECT 32 / + 52 AS col0
----
0

query I rowsort
SELECT 68 * + + 34 col2
----
2312

query I rowsort
SELECT DISTINCT + 56 * - 83
----
-4648

onlyif mysql # aggregate syntax: 
query I rowsort label-4340
SELECT 61 + + - 40 + + - 26 + - COUNT( * ) col2
----
-6

skipif mysql # not compatible
query I rowsort label-4340
SELECT 61 + + - 40 + + - 26 + - COUNT ( * ) col2
----
-6

onlyif mysql # aggregate syntax: 
query II rowsort label-4341
SELECT ALL 92 col2, MIN( ALL - 66 ) AS col2
----
92
-66

skipif mysql # not compatible
query II rowsort label-4341
SELECT ALL 92 col2, MIN ( ALL - 66 ) AS col2
----
92
-66

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4342
SELECT COUNT( - 32 ) * + COALESCE ( + COUNT( * ), + 92, - 20 * - + 8 + COUNT( * ) + + 90 DIV + NULLIF ( ( - + 11 ), - - MAX( 54 ) DIV - 30 ) + + + 40 ) AS col0, CAST( 18 AS SIGNED ) AS col0
----
1
18

skipif mysql # not compatible
query II rowsort label-4342
SELECT COUNT ( - 32 ) * + COALESCE ( + COUNT ( * ), + 92, - 20 * - + 8 + COUNT ( * ) + + 90 / + NULLIF ( ( - + 11 ), - - MAX ( 54 ) / - 30 ) + + + 40 ) AS col0, CAST ( 18 AS INTEGER ) AS col0
----
1
18

onlyif mysql # aggregate syntax: 
query I rowsort label-4343
SELECT ALL COUNT( * ) * ( - COALESCE ( - + 94, + 3 * 83 + - - COUNT( * ) ) )
----
94

skipif mysql # not compatible
query I rowsort label-4343
SELECT ALL COUNT ( * ) * ( - COALESCE ( - + 94, + 3 * 83 + - - COUNT ( * ) ) )
----
94

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4344
SELECT ALL 47, NULLIF ( - - CAST( NULL AS SIGNED ), - ( 41 ) ) + + + 73 AS col0
----
47
NULL

skipif mysql # not compatible
query II rowsort label-4344
SELECT ALL 47, NULLIF ( - - CAST ( NULL AS INTEGER ), - ( 41 ) ) + + + 73 AS col0
----
47
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4345
SELECT DISTINCT - + CAST( NULL AS SIGNED ) + + SUM( 90 ) + 14 + + + NULLIF ( - + 97, 31 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4345
SELECT DISTINCT - + CAST ( NULL AS INTEGER ) + + SUM ( 90 ) + 14 + + + NULLIF ( - + 97, 31 ) AS col0
----
NULL

query I rowsort
SELECT 13 + 96 * + 91 + 38 AS col1
----
8787

onlyif mysql # aggregate syntax: 
query I rowsort label-4347
SELECT - COALESCE ( - MIN( + CASE + + 24 WHEN + 39 THEN NULL WHEN - 91 THEN ( - 92 ) END ), + + COUNT( - 10 ) ) - - 6 AS col0
----
5

skipif mysql # not compatible
query I rowsort label-4347
SELECT - COALESCE ( - MIN ( + CASE + + 24 WHEN + 39 THEN NULL WHEN - 91 THEN ( - 92 ) END ), + + COUNT ( - 10 ) ) - - 6 AS col0
----
5

onlyif mysql # DIV for integer division: 
query I rowsort label-4348
SELECT ALL - 46 + - 14 * ( - 30 ) DIV - 86 AS col0
----
-50

skipif mysql # not compatible
query I rowsort label-4348
SELECT ALL - 46 + - 14 * ( - 30 ) / - 86 AS col0
----
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-4349
SELECT ALL MIN( + 2 )
----
2

skipif mysql # not compatible
query I rowsort label-4349
SELECT ALL MIN ( + 2 )
----
2

query I rowsort
SELECT - NULLIF ( - 67, + 92 ) AS col1
----
67

onlyif mysql # aggregate syntax: 
query I rowsort label-4351
SELECT ALL - 97 + + + COUNT( * ) * 38 - COALESCE ( - + 74, + + 28, - 67 )
----
15

skipif mysql # not compatible
query I rowsort label-4351
SELECT ALL - 97 + + + COUNT ( * ) * 38 - COALESCE ( - + 74, + + 28, - 67 )
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-4352
SELECT + COUNT( * ) * + - ( - 95 ) - MIN( + 71 ) AS col1
----
24

skipif mysql # not compatible
query I rowsort label-4352
SELECT + COUNT ( * ) * + - ( - 95 ) - MIN ( + 71 ) AS col1
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-4353
SELECT ALL - - ( + - 93 ) + + 20 + COALESCE ( COUNT( * ), 30 * + 57 ) AS col1
----
-72

skipif mysql # not compatible
query I rowsort label-4353
SELECT ALL - - ( + - 93 ) + + 20 + COALESCE ( COUNT ( * ), 30 * + 57 ) AS col1
----
-72

query I rowsort
SELECT ALL 64 + + - 56 AS col1
----
8

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4355
SELECT ALL MAX( DISTINCT - 10 ) + 88 + + - CAST( NULL AS DECIMAL ) * + 17 + 59
----
NULL

skipif mysql # not compatible
query I rowsort label-4355
SELECT ALL MAX ( DISTINCT - 10 ) + 88 + + - CAST ( NULL AS REAL ) * + 17 + 59
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4356
SELECT + CAST( NULL AS SIGNED ) - COALESCE ( - MAX( - 30 ), 85 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4356
SELECT + CAST ( NULL AS INTEGER ) - COALESCE ( - MAX ( - 30 ), 85 )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4357
SELECT - + 5 AS col2, COUNT( * )
----
-5
1

skipif mysql # not compatible
query II rowsort label-4357
SELECT - + 5 AS col2, COUNT ( * )
----
-5
1

onlyif mysql # aggregate syntax: 
query II rowsort label-4358
SELECT - - 64 * + 47 * - COUNT( * ) AS col0, + COALESCE ( + + COUNT( * ), - 78 + 2 + + 56 ) + - 4 AS col0
----
-3008
-3

skipif mysql # not compatible
query II rowsort label-4358
SELECT - - 64 * + 47 * - COUNT ( * ) AS col0, + COALESCE ( + + COUNT ( * ), - 78 + 2 + + 56 ) + - 4 AS col0
----
-3008
-3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4359
SELECT ALL - 15 * CASE + COUNT( * ) WHEN + - 25 + - 36 THEN - ( + 33 ) * + + CASE - 89 WHEN - + 81 - + 97 * + 75 - + 35 DIV - COUNT( - 13 ) THEN + + 16 * 51 WHEN 46 * + 41 THEN + ( MAX( ( - - 99 ) ) ) + 25 ELSE - 19 END * COUNT( * ) + - - 37 + 59 DIV 70 ELSE - ( ( 48 ) ) END - 88 AS col1
----
632

skipif mysql # not compatible
query I rowsort label-4359
SELECT ALL - 15 * CASE + COUNT ( * ) WHEN + - 25 + - 36 THEN - ( + 33 ) * + + CASE - 89 WHEN - + 81 - + 97 * + 75 - + 35 / - COUNT ( - 13 ) THEN + + 16 * 51 WHEN 46 * + 41 THEN + ( MAX ( ( - - 99 ) ) ) + 25 ELSE - 19 END * COUNT ( * ) + - - 37 + 59 / 70 ELSE - ( ( 48 ) ) END - 88 AS col1
----
632

onlyif mysql # DIV for integer division: 
query I rowsort label-4360
SELECT 50 DIV 96 + - 57
----
-57

skipif mysql # not compatible
query I rowsort label-4360
SELECT 50 / 96 + - 57
----
-57

onlyif mysql # aggregate syntax: 
query II rowsort label-4361
SELECT ALL - 77 * + 64 - - + COUNT( * ) + - 0 * - 22 AS col0, - 22 + - - 47
----
-4927
25

skipif mysql # not compatible
query II rowsort label-4361
SELECT ALL - 77 * + 64 - - + COUNT ( * ) + - 0 * - 22 AS col0, - 22 + - - 47
----
-4927
25

query I rowsort
SELECT + 7 * 94 AS col0
----
658

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4363
SELECT COUNT( * ) * + + 29 + + 6 + - CAST( NULL AS SIGNED ) + - 64 + - 30 * + 26 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4363
SELECT COUNT ( * ) * + + 29 + + 6 + - CAST ( NULL AS INTEGER ) + - 64 + - 30 * + 26 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4364
SELECT + 72 * - COUNT( * ) AS col1
----
-72

skipif mysql # not compatible
query I rowsort label-4364
SELECT + 72 * - COUNT ( * ) AS col1
----
-72

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4365
SELECT + 58 * CAST( NULL AS DECIMAL ) * COUNT( ALL 65 ) + + 77 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4365
SELECT + 58 * CAST ( NULL AS REAL ) * COUNT ( ALL 65 ) + + 77 AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4366
SELECT - 12 + 22 * - 57 * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4366
SELECT - 12 + 22 * - 57 * CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4367
SELECT MAX( - 78 )
----
-78

skipif mysql # not compatible
query I rowsort label-4367
SELECT MAX ( - 78 )
----
-78

query I rowsort
SELECT ALL 36 * CASE 80 WHEN - 75 / - + 42 THEN CASE 24 WHEN - ( + 90 ) * 50 - ( - + COALESCE ( ( + + 18 ), - 22 * + 48 ) ) THEN NULL WHEN 37 + - 35 THEN NULL ELSE 66 + + 41 END + - 42 END / - CASE - 23 WHEN + ( 59 ) * + ( - 44 ) THEN + 55 END / 92 * - 55 AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-4369
SELECT DISTINCT 47 DIV - 19 AS col2, - 18
----
-2
-18

skipif mysql # not compatible
query II rowsort label-4369
SELECT DISTINCT 47 / - 19 AS col2, - 18
----
-2
-18

query I rowsort
SELECT + 76 * - + 93 * + - 20
----
141360

onlyif mysql # aggregate syntax: 
query II rowsort label-4371
SELECT ALL NULLIF ( + 47, + 49 + + 3 ) AS col0, + COUNT( * )
----
47
1

skipif mysql # not compatible
query II rowsort label-4371
SELECT ALL NULLIF ( + 47, + 49 + + 3 ) AS col0, + COUNT ( * )
----
47
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4372
SELECT - 94 DIV - COALESCE ( + ( + + 56 ), - COUNT( * ) ) * + - COUNT( * ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-4372
SELECT - 94 / - COALESCE ( + ( + + 56 ), - COUNT ( * ) ) * + - COUNT ( * ) AS col0
----
-1

query I rowsort
SELECT ALL 0 * - 42 * 62 AS col2
----
0

query I rowsort
SELECT + 40 * - + ( - 46 )
----
1840

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4375
SELECT DISTINCT + + CAST( NULL AS SIGNED ) + 66 + 95
----
NULL

skipif mysql # not compatible
query I rowsort label-4375
SELECT DISTINCT + + CAST ( NULL AS INTEGER ) + 66 + 95
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4376
SELECT DISTINCT - 67 + - MIN( - - 58 ) * 40 * 49 AS col2
----
-113747

skipif mysql # not compatible
query I rowsort label-4376
SELECT DISTINCT - 67 + - MIN ( - - 58 ) * 40 * 49 AS col2
----
-113747

query I rowsort
SELECT - NULLIF ( + 95, - 68 ) + 19 + 13 AS col0
----
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-4378
SELECT DISTINCT MIN( ALL 0 )
----
0

skipif mysql # not compatible
query I rowsort label-4378
SELECT DISTINCT MIN ( ALL 0 )
----
0

query II rowsort
SELECT + 66 - - + 33 col1, 46
----
99
46

onlyif mysql # aggregate syntax: 
query I rowsort label-4380
SELECT + CASE - 44 WHEN COUNT( * ) * CASE - - 3 WHEN - CASE + SUM( 62 ) WHEN + + 19 - 9 THEN NULL WHEN - 39 + - 33 + - 61 + - - 23 / + - 29 THEN NULL ELSE 41 * - 32 * - + COUNT( * ) END THEN NULL WHEN + - 98 THEN NULL WHEN + + 26 * 24 THEN - 47 END THEN + 43 * + 69 + + NULLIF ( 83, - ( - 72 ) ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-4380
SELECT + CASE - 44 WHEN COUNT ( * ) * CASE - - 3 WHEN - CASE + SUM ( 62 ) WHEN + + 19 - 9 THEN NULL WHEN - 39 + - 33 + - 61 + - - 23 / + - 29 THEN NULL ELSE 41 * - 32 * - + COUNT ( * ) END THEN NULL WHEN + - 98 THEN NULL WHEN + + 26 * 24 THEN - 47 END THEN + 43 * + 69 + + NULLIF ( 83, - ( - 72 ) ) END
----
NULL

query I rowsort
SELECT - + 79 + - 61
----
-140

onlyif mysql # aggregate syntax: 
query I rowsort label-4382
SELECT DISTINCT - - 54 + - 58 * - + SUM( + - 64 ) AS col0
----
-3658

skipif mysql # not compatible
query I rowsort label-4382
SELECT DISTINCT - - 54 + - 58 * - + SUM ( + - 64 ) AS col0
----
-3658

onlyif mysql # DIV for integer division: 
query I rowsort label-4383
SELECT ALL - 33 DIV + 27 - + 75
----
-76

skipif mysql # not compatible
query I rowsort label-4383
SELECT ALL - 33 / + 27 - + 75
----
-76

query I rowsort
SELECT - 8 * + 77
----
-616

query I rowsort
SELECT + 84 * + 81
----
6804

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4386
SELECT CAST( 92 AS SIGNED ) AS col0
----
92

skipif mysql # not compatible
query I rowsort label-4386
SELECT CAST ( 92 AS INTEGER ) AS col0
----
92

onlyif mysql # DIV for integer division: 
query I rowsort label-4387
SELECT - 72 DIV + 20 AS col0
----
-3

skipif mysql # not compatible
query I rowsort label-4387
SELECT - 72 / + 20 AS col0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4388
SELECT CAST( - ( 2 ) AS SIGNED ) col0
----
-2

skipif mysql # not compatible
query I rowsort label-4388
SELECT CAST ( - ( 2 ) AS INTEGER ) col0
----
-2

query I rowsort
SELECT ALL 42 * + + 8 AS col0
----
336

query I rowsort
SELECT DISTINCT 1 * - 57
----
-57

onlyif mysql # DIV for integer division: 
query I rowsort label-4391
SELECT - 7 DIV + 25
----
0

skipif mysql # not compatible
query I rowsort label-4391
SELECT - 7 / + 25
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4392
SELECT + COALESCE ( CAST( - - COALESCE ( - - COUNT( * ), - + 80 / + 93 ) AS SIGNED ), + 44 ) * 95
----
95

skipif mysql # not compatible
query I rowsort label-4392
SELECT + COALESCE ( CAST ( - - COALESCE ( - - COUNT ( * ), - + 80 / + 93 ) AS INTEGER ), + 44 ) * 95
----
95

onlyif mysql # DIV for integer division: 
query I rowsort label-4393
SELECT - 16 DIV + - 8 - + - 9
----
11

skipif mysql # not compatible
query I rowsort label-4393
SELECT - 16 / + - 8 - + - 9
----
11

query II rowsort
SELECT DISTINCT + 19 AS col0, - 95 * - 58
----
19
5510

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4395
SELECT DISTINCT + CAST( 35 AS SIGNED ) AS col0
----
35

skipif mysql # not compatible
query I rowsort label-4395
SELECT DISTINCT + CAST ( 35 AS INTEGER ) AS col0
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-4396
SELECT + ( + COUNT( * ) ) col0
----
1

skipif mysql # not compatible
query I rowsort label-4396
SELECT + ( + COUNT ( * ) ) col0
----
1

query I rowsort
SELECT + 53 * - 38 AS col0
----
-2014

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4398
SELECT ALL COUNT( * ) * 9 + COUNT( * ) - - 95 DIV + - 56
----
9

skipif mysql # not compatible
query I rowsort label-4398
SELECT ALL COUNT ( * ) * 9 + COUNT ( * ) - - 95 / + - 56
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4399
SELECT 93 * - ( - CAST( NULL AS SIGNED ) ) + + 24 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4399
SELECT 93 * - ( - CAST ( NULL AS INTEGER ) ) + + 24 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4400
SELECT ALL 96 * + - 24 + - - COUNT( * ), ( - 7 ) * + COUNT( DISTINCT - 17 ) AS col2
----
-2303
-7

skipif mysql # not compatible
query II rowsort label-4400
SELECT ALL 96 * + - 24 + - - COUNT ( * ), ( - 7 ) * + COUNT ( DISTINCT - 17 ) AS col2
----
-2303
-7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4401
SELECT ALL CASE - COALESCE ( + 97, - - 8, NULLIF ( - CAST( NULL AS SIGNED ), + 41 + + + ( - - 29 ) ) * - 5 - 18 ) WHEN - ( - 87 ) + 64 + + - 93 THEN - + 68 + 48 ELSE NULL END * 66 + - - COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4401
SELECT ALL CASE - COALESCE ( + 97, - - 8, NULLIF ( - CAST ( NULL AS INTEGER ), + 41 + + + ( - - 29 ) ) * - 5 - 18 ) WHEN - ( - 87 ) + 64 + + - 93 THEN - + 68 + 48 ELSE NULL END * 66 + - - COUNT ( * ) AS col0
----
NULL

query I rowsort
SELECT - 97 + + 94 + + + 68 * - 46 AS col1
----
-3131

query I rowsort
SELECT 42 * 66 AS col2
----
2772

onlyif mysql # DIV for integer division: 
query I rowsort label-4404
SELECT ALL + 70 DIV + - 39 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-4404
SELECT ALL + 70 / + - 39 AS col0
----
-1

query I rowsort
SELECT 22 * + - 22
----
-484

onlyif mysql # aggregate syntax: 
query I rowsort label-4406
SELECT - MIN( + COALESCE ( + - 68, - ( - 85 ) ) ) * - + 31 + + + 71 + - 99 * + - 87 + - + ( - 55 ) - + COUNT( * )
----
6630

skipif mysql # not compatible
query I rowsort label-4406
SELECT - MIN ( + COALESCE ( + - 68, - ( - 85 ) ) ) * - + 31 + + + 71 + - 99 * + - 87 + - + ( - 55 ) - + COUNT ( * )
----
6630

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4407
SELECT ALL + - 39 DIV + 57 * COUNT( * ) * 89 + 89, 19 DIV 46 col1
----
89
0

skipif mysql # not compatible
query II rowsort label-4407
SELECT ALL + - 39 / + 57 * COUNT ( * ) * 89 + 89, 19 / 46 col1
----
89
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4408
SELECT COUNT( - 69 ) - - + 5 * + 72
----
361

skipif mysql # not compatible
query I rowsort label-4408
SELECT COUNT ( - 69 ) - - + 5 * + 72
----
361

onlyif mysql # aggregate syntax: 
query I rowsort label-4409
SELECT ALL - COUNT( * ) * + ( + + 54 ) * + 45 * + + 91 - - 63
----
-221067

skipif mysql # not compatible
query I rowsort label-4409
SELECT ALL - COUNT ( * ) * + ( + + 54 ) * + 45 * + + 91 - - 63
----
-221067

onlyif mysql # aggregate syntax: 
query I rowsort label-4410
SELECT 91 * - MAX( ALL + 46 ) col1
----
-4186

skipif mysql # not compatible
query I rowsort label-4410
SELECT 91 * - MAX ( ALL + 46 ) col1
----
-4186

query I rowsort
SELECT 43 - 59 AS col1
----
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-4412
SELECT 17 + - 43 + + + COUNT( * ) * + 85 AS col0
----
59

skipif mysql # not compatible
query I rowsort label-4412
SELECT 17 + - 43 + + + COUNT ( * ) * + 85 AS col0
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-4413
SELECT ALL + 60 * - 54 * + COUNT( * ) AS col1
----
-3240

skipif mysql # not compatible
query I rowsort label-4413
SELECT ALL + 60 * - 54 * + COUNT ( * ) AS col1
----
-3240

query I rowsort
SELECT 32 + - 28 AS col2
----
4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4415
SELECT ALL - 87 + - 45 + + + CAST( + ( + + 65 ) AS SIGNED ) AS col0
----
-67

skipif mysql # not compatible
query I rowsort label-4415
SELECT ALL - 87 + - 45 + + + CAST ( + ( + + 65 ) AS INTEGER ) AS col0
----
-67

query I rowsort
SELECT ALL + 24 + + ( + 85 )
----
109

query I rowsort
SELECT + 49 * + 93 + - 85 AS col2
----
4472

query II rowsort
SELECT ALL 89 + - 62 * + NULLIF ( ( - 2 ), - 51 ), - 52 - + - 53 col0
----
213
1

query II rowsort
SELECT + 25 AS col2, - 83
----
25
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-4420
SELECT MIN( DISTINCT + 48 ) + + SUM( DISTINCT + + 33 ) + - 74 AS col2
----
7

skipif mysql # not compatible
query I rowsort label-4420
SELECT MIN ( DISTINCT + 48 ) + + SUM ( DISTINCT + + 33 ) + - 74 AS col2
----
7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4421
SELECT ALL + 24 + + 33 + + MAX( + 44 ) + - - COALESCE ( + 49, + 39, - ( - CAST( + - AVG ( DISTINCT 87 ) AS SIGNED ) ) ) + + + 22 * + + COUNT( * ) DIV + CAST( NULL AS SIGNED ) * + 66 * + NULLIF ( - 96, + 35 ) - - CAST( + - 63 AS SIGNED ) + + 19 AS col0, - COUNT( * ) - - + 92 + + COUNT( * ) * 91 + 0 + - 47 + - 67 DIV - 85 AS col0
----
NULL
135

skipif mysql # not compatible
query II rowsort label-4421
SELECT ALL + 24 + + 33 + + MAX ( + 44 ) + - - COALESCE ( + 49, + 39, - ( - CAST ( + - AVG ( DISTINCT 87 ) AS INTEGER ) ) ) + + + 22 * + + COUNT ( * ) / + CAST ( NULL AS INTEGER ) * + 66 * + NULLIF ( - 96, + 35 ) - - CAST ( + - 63 AS INTEGER ) + + 19 AS col0, - COUNT ( * ) - - + 92 + + COUNT ( * ) * 91 + 0 + - 47 + - 67 / - 85 AS col0
----
NULL
135

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4422
SELECT 41 * + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4422
SELECT 41 * + CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4423
SELECT 61 / 59 * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4423
SELECT 61 / 59 * CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4424
SELECT + 11 * 30 + - CAST( + CAST( 36 AS SIGNED ) AS SIGNED ) AS col2
----
294

skipif mysql # not compatible
query I rowsort label-4424
SELECT + 11 * 30 + - CAST ( + CAST ( 36 AS INTEGER ) AS INTEGER ) AS col2
----
294

onlyif mysql # aggregate syntax: 
query II rowsort label-4425
SELECT DISTINCT COUNT( * ) * + + 71 * - NULLIF ( - + 50, COUNT( * ) ) * - 22 AS col1, + COUNT( * ) + + + 23 * - 54 + 71
----
-78100
-1170

skipif mysql # not compatible
query II rowsort label-4425
SELECT DISTINCT COUNT ( * ) * + + 71 * - NULLIF ( - + 50, COUNT ( * ) ) * - 22 AS col1, + COUNT ( * ) + + + 23 * - 54 + 71
----
-78100
-1170

query I rowsort
SELECT ALL 5 + + + 63 AS col1
----
68

query I rowsort
SELECT - ( 73 ) AS col1
----
-73

onlyif mysql # DIV for integer division: 
query I rowsort label-4428
SELECT ALL - + COALESCE ( 97, 54 + - 4 DIV - 88 )
----
-97

skipif mysql # not compatible
query I rowsort label-4428
SELECT ALL - + COALESCE ( 97, 54 + - 4 / - 88 )
----
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-4429
SELECT ALL NULLIF ( COUNT( * ), + + COUNT( * ) ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4429
SELECT ALL NULLIF ( COUNT ( * ), + + COUNT ( * ) ) col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4430
SELECT - COUNT( * ) + 1 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4430
SELECT - COUNT ( * ) + 1 AS col0
----
0

query I rowsort
SELECT 57 * - 88
----
-5016

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-4432
SELECT - 38, + ( - 30 ) * NULLIF ( - CASE - ( 78 ) WHEN - 63 - 7 + + 33 * - 12 THEN - - MIN( + COALESCE ( ( + CAST( NULL AS DECIMAL ) ), + + ( 12 ) ) ) - - COUNT( * ) + + 61 WHEN 82 THEN NULL WHEN + 50 + + - 76 THEN NULL ELSE NULL END, + 44 ) col2
----
-38
NULL

skipif mysql # not compatible
query II rowsort label-4432
SELECT - 38, + ( - 30 ) * NULLIF ( - CASE - ( 78 ) WHEN - 63 - 7 + + 33 * - 12 THEN - - MIN ( + COALESCE ( ( + CAST ( NULL AS REAL ) ), + + ( 12 ) ) ) - - COUNT ( * ) + + 61 WHEN 82 THEN NULL WHEN + 50 + + - 76 THEN NULL ELSE NULL END, + 44 ) col2
----
-38
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4433
SELECT DISTINCT + 41 * - + 76 + - 61 + COUNT( * ) + - 56 + - + 18 - + - 62
----
-3188

skipif mysql # not compatible
query I rowsort label-4433
SELECT DISTINCT + 41 * - + 76 + - 61 + COUNT ( * ) + - 56 + - + 18 - + - 62
----
-3188

onlyif mysql # DIV for integer division: 
query I rowsort label-4434
SELECT + 79 + 56 DIV 86 DIV - + 46 col1
----
79

skipif mysql # not compatible
query I rowsort label-4434
SELECT + 79 + 56 / 86 / - + 46 col1
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-4435
SELECT ALL - SUM( - 80 )
----
80

skipif mysql # not compatible
query I rowsort label-4435
SELECT ALL - SUM ( - 80 )
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-4436
SELECT ALL - COALESCE ( + - 12, + 7, COUNT( * ) * - + 42 * + 0 ) AS col2
----
12

skipif mysql # not compatible
query I rowsort label-4436
SELECT ALL - COALESCE ( + - 12, + 7, COUNT ( * ) * - + 42 * + 0 ) AS col2
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-4437
SELECT + COALESCE ( - - 6, + 47, - 6 ) * MAX( DISTINCT 50 ) + 20 * + - 54 + 10 * - ( + 46 ) AS col2
----
-1240

skipif mysql # not compatible
query I rowsort label-4437
SELECT + COALESCE ( - - 6, + 47, - 6 ) * MAX ( DISTINCT 50 ) + 20 * + - 54 + 10 * - ( + 46 ) AS col2
----
-1240

query II rowsort
SELECT DISTINCT 1, + 75 col1
----
1
75

query I rowsort
SELECT + 64 + + 86 * + - 49 - - 39
----
-4111

onlyif mysql # aggregate syntax: 
query II rowsort label-4440
SELECT COUNT( * ), + 95 + 87 AS col0
----
1
182

skipif mysql # not compatible
query II rowsort label-4440
SELECT COUNT ( * ), + 95 + 87 AS col0
----
1
182

query II rowsort
SELECT 52 + 42 AS col2, - 98
----
94
-98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4442
SELECT CAST( NULL AS SIGNED ) / + 78 / - 80
----
NULL

skipif mysql # not compatible
query I rowsort label-4442
SELECT CAST ( NULL AS INTEGER ) / + 78 / - 80
----
NULL

query I rowsort
SELECT 62 + 45 AS col1
----
107

query I rowsort
SELECT NULLIF ( 78, 78 + + 85 + - 34 - 2 * 7 ) * 62 AS col0
----
4836

onlyif mysql # aggregate syntax: 
query II rowsort label-4445
SELECT 71 * - MIN( + 35 ) AS col2, 37
----
-2485
37

skipif mysql # not compatible
query II rowsort label-4445
SELECT 71 * - MIN ( + 35 ) AS col2, 37
----
-2485
37

onlyif mysql # aggregate syntax: 
query I rowsort label-4446
SELECT - MIN( 51 ) AS col2
----
-51

skipif mysql # not compatible
query I rowsort label-4446
SELECT - MIN ( 51 ) AS col2
----
-51

query I rowsort
SELECT ALL + 28 * + 44
----
1232

onlyif mysql # aggregate syntax: 
query I rowsort label-4448
SELECT DISTINCT 45 * + 51 + 41 / + ( + - NULLIF ( + + NULLIF ( 54, + 54 ), - ( - 93 ) + + + NULLIF ( 50, + MAX( ALL - COALESCE ( + ( + 45 ), + + 95 ) ) * - 72 + + - 18 - 67 ) - + ( + 41 ) ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-4448
SELECT DISTINCT 45 * + 51 + 41 / + ( + - NULLIF ( + + NULLIF ( 54, + 54 ), - ( - 93 ) + + + NULLIF ( 50, + MAX ( ALL - COALESCE ( + ( + 45 ), + + 95 ) ) * - 72 + + - 18 - 67 ) - + ( + 41 ) ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4449
SELECT 42 - 80 + - 14 * + - NULLIF ( + 58, + 47 * - COALESCE ( - 45, 39 ) * + + 27 - - - 99 ) - + + 34 * + NULLIF ( - + COUNT( * ), 50 )
----
808

skipif mysql # not compatible
query I rowsort label-4449
SELECT 42 - 80 + - 14 * + - NULLIF ( + 58, + 47 * - COALESCE ( - 45, 39 ) * + + 27 - - - 99 ) - + + 34 * + NULLIF ( - + COUNT ( * ), 50 )
----
808

query I rowsort
SELECT ( - 56 ) * + 48
----
-2688

onlyif mysql # aggregate syntax: 
query I rowsort label-4451
SELECT 87 * + COUNT( * )
----
87

skipif mysql # not compatible
query I rowsort label-4451
SELECT 87 * + COUNT ( * )
----
87

onlyif mysql # aggregate syntax: 
query II rowsort label-4452
SELECT SUM( DISTINCT - - 16 ) col2, 25 * + 52
----
16
1300

skipif mysql # not compatible
query II rowsort label-4452
SELECT SUM ( DISTINCT - - 16 ) col2, 25 * + 52
----
16
1300

query I rowsort
SELECT ALL 57 * 35 + - 56 AS col2
----
1939

onlyif mysql # aggregate syntax: 
query I rowsort label-4454
SELECT - 75 * + 77 + 11 * - ( - COUNT( * ) )
----
-5764

skipif mysql # not compatible
query I rowsort label-4454
SELECT - 75 * + 77 + 11 * - ( - COUNT ( * ) )
----
-5764

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4455
SELECT - 19 + + + 76 DIV - NULLIF ( - + 9, + 26 - - COUNT( * ) ) * + COUNT( * ) + - + 67
----
-78

skipif mysql # not compatible
query I rowsort label-4455
SELECT - 19 + + + 76 / - NULLIF ( - + 9, + 26 - - COUNT ( * ) ) * + COUNT ( * ) + - + 67
----
-78

query I rowsort
SELECT - NULLIF ( - 9, + - 36 ) + - - 50 AS col1
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-4457
SELECT - 2 - + COUNT( * ) + + + 37
----
34

skipif mysql # not compatible
query I rowsort label-4457
SELECT - 2 - + COUNT ( * ) + + + 37
----
34

query I rowsort
SELECT DISTINCT - 86 * - 2 AS col0
----
172

onlyif mysql # aggregate syntax: 
query II rowsort label-4459
SELECT - - COUNT( * ) * - + 95, 5 AS col1
----
-95
5

skipif mysql # not compatible
query II rowsort label-4459
SELECT - - COUNT ( * ) * - + 95, 5 AS col1
----
-95
5

onlyif mysql # aggregate syntax: 
query II rowsort label-4460
SELECT ALL + ( COUNT( * ) ), ( 55 ) AS col0
----
1
55

skipif mysql # not compatible
query II rowsort label-4460
SELECT ALL + ( COUNT ( * ) ), ( 55 ) AS col0
----
1
55

onlyif mysql # aggregate syntax: 
query I rowsort label-4461
SELECT ALL + - COUNT( + 39 ) * 63
----
-63

skipif mysql # not compatible
query I rowsort label-4461
SELECT ALL + - COUNT ( + 39 ) * 63
----
-63

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4462
SELECT DISTINCT - COALESCE ( - 14, CASE + 40 WHEN - - 33 + 0 + - + 35 / - CAST( + 75 AS SIGNED ) + - 70 + 7 THEN - 29 WHEN + - 12 THEN - 91 WHEN - 26 THEN NULL END ) AS col0
----
14

skipif mysql # not compatible
query I rowsort label-4462
SELECT DISTINCT - COALESCE ( - 14, CASE + 40 WHEN - - 33 + 0 + - + 35 / - CAST ( + 75 AS INTEGER ) + - 70 + 7 THEN - 29 WHEN + - 12 THEN - 91 WHEN - 26 THEN NULL END ) AS col0
----
14

query I rowsort
SELECT + 31 + 14 AS col2
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-4464
SELECT DISTINCT COALESCE ( - MIN( 52 ), + ( - 77 ) * - + CASE - + 99 WHEN 41 THEN + 96 * + 7 + - 32 END, - 44 * + ( - + MAX( ALL 36 ) ), + MIN( ALL - 54 ) * - ( - - 66 ) * - + COUNT( * ) - 19 + - 39 + ( 52 ) ) + + SUM( DISTINCT + + 31 ) AS col0
----
-21

skipif mysql # not compatible
query I rowsort label-4464
SELECT DISTINCT COALESCE ( - MIN ( 52 ), + ( - 77 ) * - + CASE - + 99 WHEN 41 THEN + 96 * + 7 + - 32 END, - 44 * + ( - + MAX ( ALL 36 ) ), + MIN ( ALL - 54 ) * - ( - - 66 ) * - + COUNT ( * ) - 19 + - 39 + ( 52 ) ) + + SUM ( DISTINCT + + 31 ) AS col0
----
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-4465
SELECT - MAX( 36 ) AS col1
----
-36

skipif mysql # not compatible
query I rowsort label-4465
SELECT - MAX ( 36 ) AS col1
----
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-4466
SELECT + 25 - - - 25 / 8 * - NULLIF ( ( CASE COUNT( * ) WHEN - 31 THEN 10 + NULLIF ( 24, + COUNT( * ) ) WHEN - 41 * - - 7 THEN + + 5 + - ( + + 88 ) + + + 26 WHEN + + 41 + - COUNT( * ) THEN NULL END ), - ( - 39 ) * 95 * - 58 ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4466
SELECT + 25 - - - 25 / 8 * - NULLIF ( ( CASE COUNT ( * ) WHEN - 31 THEN 10 + NULLIF ( 24, + COUNT ( * ) ) WHEN - 41 * - - 7 THEN + + 5 + - ( + + 88 ) + + + 26 WHEN + + 41 + - COUNT ( * ) THEN NULL END ), - ( - 39 ) * 95 * - 58 ) col1
----
NULL

query I rowsort
SELECT ALL 13 + 39
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-4468
SELECT ALL 72 * + - 87 * 92 * - + COUNT( * )
----
576288

skipif mysql # not compatible
query I rowsort label-4468
SELECT ALL 72 * + - 87 * 92 * - + COUNT ( * )
----
576288

onlyif mysql # DIV for integer division: 
query I rowsort label-4469
SELECT + 78 DIV - 70 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-4469
SELECT + 78 / - 70 AS col0
----
-1

query I rowsort
SELECT + 65 + - 5
----
60

query II rowsort
SELECT ALL 19, 65 AS col2
----
19
65

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4472
SELECT + 42 + + - COALESCE ( NULLIF ( COUNT( * ), - - 12 ), - + 78 DIV + COUNT( * ), - - 30 ) AS col2
----
41

skipif mysql # not compatible
query I rowsort label-4472
SELECT + 42 + + - COALESCE ( NULLIF ( COUNT ( * ), - - 12 ), - + 78 / + COUNT ( * ), - - 30 ) AS col2
----
41

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4473
SELECT COUNT( * ) * + COUNT( * ) - 8 * + 70 * - 27 - + 14 AS col0, 87 DIV - ( + 80 ) - - + 74 AS col1
----
15107
73

skipif mysql # not compatible
query II rowsort label-4473
SELECT COUNT ( * ) * + COUNT ( * ) - 8 * + 70 * - 27 - + 14 AS col0, 87 / - ( + 80 ) - - + 74 AS col1
----
15107
73

query I rowsort
SELECT + 59 * + - 85 AS col1
----
-5015

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4475
SELECT ALL 78 DIV - 11 + + COUNT( * ) AS col0, 76
----
-6
76

skipif mysql # not compatible
query II rowsort label-4475
SELECT ALL 78 / - 11 + + COUNT ( * ) AS col0, 76
----
-6
76

query I rowsort
SELECT + COALESCE ( 28, + 63 * - + ( + 29 ), + 67 ) + - - 1 * + 58 col1
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-4477
SELECT + 94 * - COUNT( * ) AS col0
----
-94

skipif mysql # not compatible
query I rowsort label-4477
SELECT + 94 * - COUNT ( * ) AS col0
----
-94

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4478
SELECT 25 * + - 64 + - - 16 + + 67 / + 18 * + CAST( NULL AS SIGNED ) / - CAST( + 65 AS DECIMAL ) * - + 64 * + - 94 + 29 * - COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4478
SELECT 25 * + - 64 + - - 16 + + 67 / + 18 * + CAST ( NULL AS INTEGER ) / - CAST ( + 65 AS REAL ) * - + 64 * + - 94 + 29 * - COUNT ( * ) AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4479
SELECT ALL - 52 DIV + COALESCE ( - 37, + + COUNT( * ), - 8 * + 89 * + 93 + - COUNT( * ) + 33 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-4479
SELECT ALL - 52 / + COALESCE ( - 37, + + COUNT ( * ), - 8 * + 89 * + 93 + - COUNT ( * ) + 33 ) AS col1
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4480
SELECT + CAST( - 9 AS SIGNED )
----
-9

skipif mysql # not compatible
query I rowsort label-4480
SELECT + CAST ( - 9 AS INTEGER )
----
-9

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4481
SELECT - COALESCE ( + ( 83 ), COUNT( - 3 ) * + 59 + + - 2 + + 22 - ( + + 40 ) - - + ( - COUNT( * ) ), + 43 * 88 * + + MIN( ALL - 64 ) * + 17 DIV - CASE 62 WHEN + 33 THEN 79 * + + COUNT( * ) * CASE + COUNT( * ) WHEN 46 THEN - + 9 + + 18 WHEN - COUNT( * ) DIV - 90 + 73 + - - 9 THEN NULL ELSE NULL END ELSE + 88 END ) col0
----
-83

skipif mysql # not compatible
query I rowsort label-4481
SELECT - COALESCE ( + ( 83 ), COUNT ( - 3 ) * + 59 + + - 2 + + 22 - ( + + 40 ) - - + ( - COUNT ( * ) ), + 43 * 88 * + + MIN ( ALL - 64 ) * + 17 / - CASE 62 WHEN + 33 THEN 79 * + + COUNT ( * ) * CASE + COUNT ( * ) WHEN 46 THEN - + 9 + + 18 WHEN - COUNT ( * ) / - 90 + 73 + - - 9 THEN NULL ELSE NULL END ELSE + 88 END ) col0
----
-83

query I rowsort
SELECT + + ( - + 96 )
----
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-4483
SELECT - 53 * + + COUNT( * ) + - + 39 col1
----
-92

skipif mysql # not compatible
query I rowsort label-4483
SELECT - 53 * + + COUNT ( * ) + - + 39 col1
----
-92

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4484
SELECT ALL - + COUNT( * ) * + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-4484
SELECT ALL - + COUNT ( * ) * + CAST ( NULL AS REAL )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4485
SELECT ALL + 7, CASE SUM( DISTINCT - 30 ) WHEN + ( - 80 ) THEN - 22 - - - 59 END * + 81 * + 92 AS col0
----
7
NULL

skipif mysql # not compatible
query II rowsort label-4485
SELECT ALL + 7, CASE SUM ( DISTINCT - 30 ) WHEN + ( - 80 ) THEN - 22 - - - 59 END * + 81 * + 92 AS col0
----
7
NULL

query I rowsort
SELECT - 75 * - 50 + + 60 col1
----
3810

onlyif mysql # aggregate syntax: 
query II rowsort label-4487
SELECT 7 col0, 38 * + NULLIF ( + COUNT( * ), + 3 * + MIN( DISTINCT + + 40 ) ) * - 62 - + MIN( + 47 ) col1
----
7
-2403

skipif mysql # not compatible
query II rowsort label-4487
SELECT 7 col0, 38 * + NULLIF ( + COUNT ( * ), + 3 * + MIN ( DISTINCT + + 40 ) ) * - 62 - + MIN ( + 47 ) col1
----
7
-2403

query I rowsort
SELECT + - 0 + 3 col0
----
3

query I rowsort
SELECT + 32 - 96
----
-64

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4490
SELECT ALL - ( - 38 ) DIV - 85 AS col0, - MIN( + 28 ) DIV - 30 - - 13
----
0
13

skipif mysql # not compatible
query II rowsort label-4490
SELECT ALL - ( - 38 ) / - 85 AS col0, - MIN ( + 28 ) / - 30 - - 13
----
0
13

onlyif mysql # DIV for integer division: 
query I rowsort label-4491
SELECT - + 25 DIV 36 col1
----
0

skipif mysql # not compatible
query I rowsort label-4491
SELECT - + 25 / 36 col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4492
SELECT ALL + ( 78 ) * + - 85 + + MIN( DISTINCT - COALESCE ( - 16, - 60 * + 56 + + - 42 ) )
----
-6614

skipif mysql # not compatible
query I rowsort label-4492
SELECT ALL + ( 78 ) * + - 85 + + MIN ( DISTINCT - COALESCE ( - 16, - 60 * + 56 + + - 42 ) )
----
-6614

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4493
SELECT - CASE + - 71 WHEN + 28 - - COUNT( * ) - - 46 THEN NULL ELSE + + CAST( - 10 AS SIGNED ) END + 45 AS col2, 79 DIV 90 AS col0
----
55
0

skipif mysql # not compatible
query II rowsort label-4493
SELECT - CASE + - 71 WHEN + 28 - - COUNT ( * ) - - 46 THEN NULL ELSE + + CAST ( - 10 AS INTEGER ) END + 45 AS col2, 79 / 90 AS col0
----
55
0

query I rowsort
SELECT ALL + 28 * - 40
----
-1120

onlyif mysql # aggregate syntax: 
query I rowsort label-4495
SELECT - COALESCE ( + 12, + 84 - - SUM( DISTINCT 25 ), + 4 ) + + - ( MAX( ALL - 84 ) ) AS col2
----
72

skipif mysql # not compatible
query I rowsort label-4495
SELECT - COALESCE ( + 12, + 84 - - SUM ( DISTINCT 25 ), + 4 ) + + - ( MAX ( ALL - 84 ) ) AS col2
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-4496
SELECT ALL + 56 + 51 + - COUNT( * ) + + 1 + + 10 + - 76 * + 41 AS col1
----
-2999

skipif mysql # not compatible
query I rowsort label-4496
SELECT ALL + 56 + 51 + - COUNT ( * ) + + 1 + + 10 + - 76 * + 41 AS col1
----
-2999

onlyif mysql # aggregate syntax: 
query II rowsort label-4497
SELECT - SUM( ALL + 92 ) AS col1, - MAX( - + 82 ) * 28 * - + COUNT( * ) col1
----
-92
-2296

skipif mysql # not compatible
query II rowsort label-4497
SELECT - SUM ( ALL + 92 ) AS col1, - MAX ( - + 82 ) * 28 * - + COUNT ( * ) col1
----
-92
-2296

onlyif mysql # aggregate syntax: 
query I rowsort label-4498
SELECT ALL 90 + - 50 + - - MIN( ALL + + 54 ) + ( 25 ) * + + 7 * - - COUNT( * )
----
269

skipif mysql # not compatible
query I rowsort label-4498
SELECT ALL 90 + - 50 + - - MIN ( ALL + + 54 ) + ( 25 ) * + + 7 * - - COUNT ( * )
----
269

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4499
SELECT DISTINCT CAST( 57 AS SIGNED ) AS col2
----
57

skipif mysql # not compatible
query I rowsort label-4499
SELECT DISTINCT CAST ( 57 AS INTEGER ) AS col2
----
57

query I rowsort
SELECT - 66 * + - ( 11 ) col2
----
726

query I rowsort
SELECT + 24 + - 40 + + + 65
----
49

query I rowsort
SELECT ALL 30 - + - 80 AS col1
----
110

onlyif mysql # aggregate syntax: 
query II rowsort label-4503
SELECT 67 * + COUNT( * ) AS col1, COUNT( * )
----
67
1

skipif mysql # not compatible
query II rowsort label-4503
SELECT 67 * + COUNT ( * ) AS col1, COUNT ( * )
----
67
1

query I rowsort
SELECT ALL 82 * - + 1
----
-82

query I rowsort
SELECT ALL ( - + 43 ) - + ( + 93 ) * - + 8
----
701

onlyif mysql # aggregate syntax: 
query I rowsort label-4506
SELECT COUNT( * ) * 19
----
19

skipif mysql # not compatible
query I rowsort label-4506
SELECT COUNT ( * ) * 19
----
19

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4507
SELECT 76 - - 60 + - CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-4507
SELECT 76 - - 60 + - CAST ( NULL AS REAL )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4508
SELECT + CASE 90 WHEN + + 56 * + + CAST( + + 11 AS SIGNED ) THEN + + 27 WHEN + + 96 THEN 12 WHEN - 69 * ( - - 22 ) THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-4508
SELECT + CASE 90 WHEN + + 56 * + + CAST ( + + 11 AS INTEGER ) THEN + + 27 WHEN + + 96 THEN 12 WHEN - 69 * ( - - 22 ) THEN NULL ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4509
SELECT 65 * - 97 AS col0, SUM( 81 ) * + 44 + CASE ( - 69 ) WHEN COUNT( * ) / NULLIF ( + 89, - + 58 ) + 75 * 77 * 37 + - 5 THEN + 36 - + CAST( + 49 AS SIGNED ) + - COALESCE ( 65, - - 66 - ( 86 ) ) * + + 68 * + CAST( - 41 AS SIGNED ) * - + 41 END
----
-6305
NULL

skipif mysql # not compatible
query II rowsort label-4509
SELECT 65 * - 97 AS col0, SUM ( 81 ) * + 44 + CASE ( - 69 ) WHEN COUNT ( * ) / NULLIF ( + 89, - + 58 ) + 75 * 77 * 37 + - 5 THEN + 36 - + CAST ( + 49 AS INTEGER ) + - COALESCE ( 65, - - 66 - ( 86 ) ) * + + 68 * + CAST ( - 41 AS INTEGER ) * - + 41 END
----
-6305
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4510
SELECT ALL - CAST( - ( - - COALESCE ( + - 92, + 15 * - 46 * - 56, - 37 ) ) AS SIGNED )
----
-92

skipif mysql # not compatible
query I rowsort label-4510
SELECT ALL - CAST ( - ( - - COALESCE ( + - 92, + 15 * - 46 * - 56, - 37 ) ) AS INTEGER )
----
-92

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-4511
SELECT - CASE ( + 83 ) WHEN - ( - MIN( ALL + 76 ) ) THEN - 18 / - 29 * + - CAST( + 2 AS DECIMAL ) - - - 16 + 12 - + 78 WHEN - - ( - + MAX( 93 ) ) * + 24 THEN NULL ELSE NULL END - + ( - 40 ) AS col1, 26 AS col1
----
NULL
26

skipif mysql # not compatible
query II rowsort label-4511
SELECT - CASE ( + 83 ) WHEN - ( - MIN ( ALL + 76 ) ) THEN - 18 / - 29 * + - CAST ( + 2 AS REAL ) - - - 16 + 12 - + 78 WHEN - - ( - + MAX ( 93 ) ) * + 24 THEN NULL ELSE NULL END - + ( - 40 ) AS col1, 26 AS col1
----
NULL
26

onlyif mysql # DIV for integer division: 
query I rowsort label-4512
SELECT ALL 20 DIV 14
----
1

skipif mysql # not compatible
query I rowsort label-4512
SELECT ALL 20 / 14
----
1

query I rowsort
SELECT DISTINCT + 4 + 56 AS col1
----
60

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4514
SELECT ALL - 45 * 79 * COUNT( * ) * 45 + CAST( NULL AS DECIMAL ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4514
SELECT ALL - 45 * 79 * COUNT ( * ) * 45 + CAST ( NULL AS REAL ) col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4515
SELECT + + SUM( + + 80 ) AS col0
----
80

skipif mysql # not compatible
query I rowsort label-4515
SELECT + + SUM ( + + 80 ) AS col0
----
80

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4516
SELECT ( + AVG ( + 22 ) ) * + 87 * COUNT( ALL + + 96 ) + + 26 + 60 / + COUNT( * ) / 73 / 91 * CAST( NULL AS SIGNED ), 99 * + + MAX( - - 47 ) AS col0
----
NULL
4653

skipif mysql # not compatible
query II rowsort label-4516
SELECT ( + AVG ( + 22 ) ) * + 87 * COUNT ( ALL + + 96 ) + + 26 + 60 / + COUNT ( * ) / 73 / 91 * CAST ( NULL AS INTEGER ), 99 * + + MAX ( - - 47 ) AS col0
----
NULL
4653

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4517
SELECT DISTINCT - COALESCE ( - CASE + 33 WHEN - 92 * - 47 THEN 11 END, - + 57 + - 98, - 59 + - 99 ) + MIN( ALL - 45 ) + COUNT( * ) * + 51 DIV - + COUNT( * )
----
59

skipif mysql # not compatible
query I rowsort label-4517
SELECT DISTINCT - COALESCE ( - CASE + 33 WHEN - 92 * - 47 THEN 11 END, - + 57 + - 98, - 59 + - 99 ) + MIN ( ALL - 45 ) + COUNT ( * ) * + 51 / - + COUNT ( * )
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-4518
SELECT ALL + COUNT( * ) + + 54 AS col2
----
55

skipif mysql # not compatible
query I rowsort label-4518
SELECT ALL + COUNT ( * ) + + 54 AS col2
----
55

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4519
SELECT DISTINCT - CASE CAST( NULL AS SIGNED ) WHEN 41 * 41 * - 76 - - 32 THEN ( + 90 ) WHEN - + CASE + 5 WHEN - - COUNT( * ) + 26 THEN NULL ELSE + 25 END * + - 91 + - - COUNT( * ) THEN NULL ELSE NULL END * - CASE COALESCE ( - 10, + + ( 52 ) ) WHEN - AVG ( + CAST( NULL AS SIGNED ) ) + 22 * - 28 THEN + 69 WHEN - 88 THEN MAX( DISTINCT + 76 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-4519
SELECT DISTINCT - CASE CAST ( NULL AS INTEGER ) WHEN 41 * 41 * - 76 - - 32 THEN ( + 90 ) WHEN - + CASE + 5 WHEN - - COUNT ( * ) + 26 THEN NULL ELSE + 25 END * + - 91 + - - COUNT ( * ) THEN NULL ELSE NULL END * - CASE COALESCE ( - 10, + + ( 52 ) ) WHEN - AVG ( + CAST ( NULL AS INTEGER ) ) + 22 * - 28 THEN + 69 WHEN - 88 THEN MAX ( DISTINCT + 76 ) END
----
NULL

query I rowsort
SELECT DISTINCT - 41 + + 73 * + 41 * - - 92 - - 55
----
275370

query I rowsort
SELECT - 66 + - 69
----
-135

onlyif mysql # DIV for integer division: 
query I rowsort label-4522
SELECT + ( - 76 ) DIV - 92
----
0

skipif mysql # not compatible
query I rowsort label-4522
SELECT + ( - 76 ) / - 92
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4523
SELECT ALL - 8 + 84 - + 82 + NULLIF ( + 87, + COUNT( * ) / + 88 + + 61 ) AS col2
----
81

skipif mysql # not compatible
query I rowsort label-4523
SELECT ALL - 8 + 84 - + 82 + NULLIF ( + 87, + COUNT ( * ) / + 88 + + 61 ) AS col2
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-4524
SELECT ALL + COUNT( * ) + ( + ( - 80 ) ) * 31 AS col1
----
-2479

skipif mysql # not compatible
query I rowsort label-4524
SELECT ALL + COUNT ( * ) + ( + ( - 80 ) ) * 31 AS col1
----
-2479

onlyif mysql # aggregate syntax: 
query I rowsort label-4525
SELECT COALESCE ( - MAX( ALL - 44 ), 14 ) + + 79
----
123

skipif mysql # not compatible
query I rowsort label-4525
SELECT COALESCE ( - MAX ( ALL - 44 ), 14 ) + + 79
----
123

onlyif mysql # DIV for integer division: 
query I rowsort label-4526
SELECT 77 DIV - 83
----
0

skipif mysql # not compatible
query I rowsort label-4526
SELECT 77 / - 83
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4527
SELECT DISTINCT + 79 DIV + - 14 AS col2
----
-5

skipif mysql # not compatible
query I rowsort label-4527
SELECT DISTINCT + 79 / + - 14 AS col2
----
-5

query I rowsort
SELECT ALL - 24 - + 69 col0
----
-93

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4529
SELECT 67 - + 4 + + - CAST( - - 56 AS SIGNED ) * - - 38 * 2 AS col0
----
-4193

skipif mysql # not compatible
query I rowsort label-4529
SELECT 67 - + 4 + + - CAST ( - - 56 AS INTEGER ) * - - 38 * 2 AS col0
----
-4193

query II rowsort
SELECT - 16 col0, - 7 + 22 + COALESCE ( 4, + 11 )
----
-16
19

onlyif mysql # DIV for integer division: 
query I rowsort label-4531
SELECT 86 + - - 66 DIV - + 92
----
86

skipif mysql # not compatible
query I rowsort label-4531
SELECT 86 + - - 66 / - + 92
----
86

query I rowsort
SELECT ALL + 62 * + 52
----
3224

onlyif mysql # aggregate syntax: 
query I rowsort label-4533
SELECT ALL - 7 * + COUNT( * ) * - - 13 AS col1
----
-91

skipif mysql # not compatible
query I rowsort label-4533
SELECT ALL - 7 * + COUNT ( * ) * - - 13 AS col1
----
-91

query I rowsort
SELECT 2 * - 34 col0
----
-68

query I rowsort
SELECT 15 * 58 col2
----
870

query I rowsort
SELECT 86 + - 38 col1
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-4537
SELECT 21 + + 57 + + 73 * 38 + - 25 + + COUNT( * ) AS col1
----
2828

skipif mysql # not compatible
query I rowsort label-4537
SELECT 21 + + 57 + + 73 * 38 + - 25 + + COUNT ( * ) AS col1
----
2828

onlyif mysql # aggregate syntax: 
query I rowsort label-4538
SELECT 78 + + COUNT( * )
----
79

skipif mysql # not compatible
query I rowsort label-4538
SELECT 78 + + COUNT ( * )
----
79

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4539
SELECT - 8 + - CAST( NULL AS SIGNED ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4539
SELECT - 8 + - CAST ( NULL AS INTEGER ) col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4540
SELECT DISTINCT - + 47 AS col2, + 52 * + - MIN( ALL 43 )
----
-47
-2236

skipif mysql # not compatible
query II rowsort label-4540
SELECT DISTINCT - + 47 AS col2, + 52 * + - MIN ( ALL 43 )
----
-47
-2236

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4541
SELECT DISTINCT - COALESCE ( 61, 41 DIV COUNT( * ) DIV 40 + + 8 DIV + 19 + + 31 )
----
-61

skipif mysql # not compatible
query I rowsort label-4541
SELECT DISTINCT - COALESCE ( 61, 41 / COUNT ( * ) / 40 + + 8 / + 19 + + 31 )
----
-61

query I rowsort
SELECT ALL 65 + + ( - + 9 ) * + ( - 83 ) col2
----
812

query I rowsort
SELECT ALL - + 4 col0
----
-4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4544
SELECT DISTINCT + 97 / + CASE - COALESCE ( CAST( NULL AS SIGNED ), + 2 ) WHEN - 61 * - 47 * - 96 THEN + 77 WHEN - 11 - + + 83 * - 97 THEN NULL ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4544
SELECT DISTINCT + 97 / + CASE - COALESCE ( CAST ( NULL AS INTEGER ), + 2 ) WHEN - 61 * - 47 * - 96 THEN + 77 WHEN - 11 - + + 83 * - 97 THEN NULL ELSE NULL END AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-4545
SELECT 80 + + - 0 DIV + 30 * + ( 97 ), + 54 AS col1
----
80
54

skipif mysql # not compatible
query II rowsort label-4545
SELECT 80 + + - 0 / + 30 * + ( 97 ), + 54 AS col1
----
80
54

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4546
SELECT + CAST( NULL AS SIGNED ) * + 84 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4546
SELECT + CAST ( NULL AS INTEGER ) * + 84 col2
----
NULL

query I rowsort
SELECT ALL 54 + + 54 col2
----
108

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4548
SELECT ALL - ( + CAST( COUNT( DISTINCT + 99 ) AS SIGNED ) )
----
-1

skipif mysql # not compatible
query I rowsort label-4548
SELECT ALL - ( + CAST ( COUNT ( DISTINCT + 99 ) AS INTEGER ) )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4549
SELECT + COUNT( - + 21 ) * ( + 83 )
----
83

skipif mysql # not compatible
query I rowsort label-4549
SELECT + COUNT ( - + 21 ) * ( + 83 )
----
83

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4550
SELECT DISTINCT 38 DIV COUNT( * ) DIV + - COALESCE ( + 54, 51 + + COUNT( * ) ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4550
SELECT DISTINCT 38 / COUNT ( * ) / + - COALESCE ( + 54, 51 + + COUNT ( * ) ) AS col1
----
0

query II rowsort
SELECT 88 AS col0, 14 AS col0
----
88
14

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4552
SELECT 74 * + + MAX( ALL + COALESCE ( + CAST( NULL AS SIGNED ), + 33 ) ) - - + 67 DIV 94 * 67 + + + 91 + 65
----
2598

skipif mysql # not compatible
query I rowsort label-4552
SELECT 74 * + + MAX ( ALL + COALESCE ( + CAST ( NULL AS INTEGER ), + 33 ) ) - - + 67 / 94 * 67 + + + 91 + 65
----
2598

onlyif mysql # aggregate syntax: 
query I rowsort label-4553
SELECT - MIN( + 84 ) AS col2
----
-84

skipif mysql # not compatible
query I rowsort label-4553
SELECT - MIN ( + 84 ) AS col2
----
-84

query I rowsort
SELECT 87 + + 96 col0
----
183

query I rowsort
SELECT - 25 + + 19
----
-6

query II rowsort
SELECT DISTINCT 12, 12 * - 39 * + - 16 * - 4 * + 52 AS col2
----
12
-1557504

onlyif mysql # aggregate syntax: 
query II rowsort label-4557
SELECT DISTINCT 18 * + + 57 AS col0, COALESCE ( 73, COUNT( * ), - SUM( DISTINCT + 19 ) ) * + 73 * - 66 + - COALESCE ( + - 10, - 16 ) * - + 35 * - 96
----
1026
-318114

skipif mysql # not compatible
query II rowsort label-4557
SELECT DISTINCT 18 * + + 57 AS col0, COALESCE ( 73, COUNT ( * ), - SUM ( DISTINCT + 19 ) ) * + 73 * - 66 + - COALESCE ( + - 10, - 16 ) * - + 35 * - 96
----
1026
-318114

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4558
SELECT ALL 53 * + 31, 96 DIV COUNT( ALL + - 21 ) * - + 70 * + 31 + - - 11 + COUNT( * ) * - 22 * + 49 + - + SUM( + 1 ) AS col2
----
1643
-209388

skipif mysql # not compatible
query II rowsort label-4558
SELECT ALL 53 * + 31, 96 / COUNT ( ALL + - 21 ) * - + 70 * + 31 + - - 11 + COUNT ( * ) * - 22 * + 49 + - + SUM ( + 1 ) AS col2
----
1643
-209388

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4559
SELECT - ( + CAST( - 59 AS SIGNED ) ) * + + 70 + + NULLIF ( - - 83, 39 + COALESCE ( + COUNT( + 65 ), - + 15 ) * - 27 + + 99 * ( - 12 ) * + 51 - + + 19 ) + - 81 + - 68 AS col1, 22 * - + COUNT( * ) - 35 * 33
----
4064
-1177

skipif mysql # not compatible
query II rowsort label-4559
SELECT - ( + CAST ( - 59 AS INTEGER ) ) * + + 70 + + NULLIF ( - - 83, 39 + COALESCE ( + COUNT ( + 65 ), - + 15 ) * - 27 + + 99 * ( - 12 ) * + 51 - + + 19 ) + - 81 + - 68 AS col1, 22 * - + COUNT ( * ) - 35 * 33
----
4064
-1177

onlyif mysql # aggregate syntax: 
query I rowsort label-4560
SELECT - 82 + - + ( + COUNT( - + 79 ) )
----
-83

skipif mysql # not compatible
query I rowsort label-4560
SELECT - 82 + - + ( + COUNT ( - + 79 ) )
----
-83

onlyif mysql # DIV for integer division: 
query I rowsort label-4561
SELECT - 17 DIV - 73 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4561
SELECT - 17 / - 73 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4562
SELECT - 11 + NULLIF ( - 46, + 93 * + COALESCE ( + - 21, - ( COUNT( * ) ), - 50 ) * 26 + 49 ) AS col2
----
-57

skipif mysql # not compatible
query I rowsort label-4562
SELECT - 11 + NULLIF ( - 46, + 93 * + COALESCE ( + - 21, - ( COUNT ( * ) ), - 50 ) * 26 + 49 ) AS col2
----
-57

onlyif mysql # DIV for integer division: 
query I rowsort label-4563
SELECT ALL - 59 DIV + 99
----
0

skipif mysql # not compatible
query I rowsort label-4563
SELECT ALL - 59 / + 99
----
0

query II rowsort
SELECT 83 AS col2, + 28 AS col2
----
83
28

query I rowsort
SELECT DISTINCT - + 71 * 62 + - 58 col0
----
-4460

query II rowsort
SELECT 96 AS col1, 82
----
96
82

query I rowsort
SELECT ALL - 45 * + 16 + + + 18
----
-702

query II rowsort
SELECT 64 AS col1, 73
----
64
73

query I rowsort
SELECT + 82 * + + 60 AS col2
----
4920

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4570
SELECT - - 13 + - CAST( + + COUNT( * ) AS SIGNED ) * + 66
----
-53

skipif mysql # not compatible
query I rowsort label-4570
SELECT - - 13 + - CAST ( + + COUNT ( * ) AS INTEGER ) * + 66
----
-53

query I rowsort
SELECT ALL 88 * + 95
----
8360

query II rowsort
SELECT + 59 col1, + 68 AS col2
----
59
68

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4573
SELECT + 70 * CAST( NULL AS SIGNED ) + + 68 + 23 - - 21 * - 43 * 75 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4573
SELECT + 70 * CAST ( NULL AS INTEGER ) + + 68 + 23 - - 21 * - 43 * 75 AS col0
----
NULL

query II rowsort
SELECT + + 97 AS col2, 34 * - + 41
----
97
-1394

onlyif mysql # aggregate syntax: 
query I rowsort label-4575
SELECT ALL + 58 * + CASE - COUNT( * ) WHEN - 83 - 54 + - 79 + + CASE 13 WHEN + - 95 * 23 THEN - MIN( 11 ) ELSE + + 48 * 31 END * - - 59 THEN - 73 END + - ( + - 13 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4575
SELECT ALL + 58 * + CASE - COUNT ( * ) WHEN - 83 - 54 + - 79 + + CASE 13 WHEN + - 95 * 23 THEN - MIN ( 11 ) ELSE + + 48 * 31 END * - - 59 THEN - 73 END + - ( + - 13 )
----
NULL

query I rowsort
SELECT - 15 + - 98 + - ( - 93 ) * + 80 AS col1
----
7327

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4577
SELECT + SUM( DISTINCT 69 ) * NULLIF ( + 44, - 34 * - + 37 ) - 90 + - - 23 + + 28 + 33 + - COUNT( * ) * 14 DIV + 34 AS col1
----
3030

skipif mysql # not compatible
query I rowsort label-4577
SELECT + SUM ( DISTINCT 69 ) * NULLIF ( + 44, - 34 * - + 37 ) - 90 + - - 23 + + 28 + 33 + - COUNT ( * ) * 14 / + 34 AS col1
----
3030

onlyif mysql # aggregate syntax: 
query I rowsort label-4578
SELECT + COUNT( * ) - + 40 - 72 + + COUNT( * )
----
-110

skipif mysql # not compatible
query I rowsort label-4578
SELECT + COUNT ( * ) - + 40 - 72 + + COUNT ( * )
----
-110

onlyif mysql # aggregate syntax: 
query I rowsort label-4579
SELECT MIN( ALL + 15 ) AS col0
----
15

skipif mysql # not compatible
query I rowsort label-4579
SELECT MIN ( ALL + 15 ) AS col0
----
15

query II rowsort
SELECT DISTINCT 12 * + - 93 - - 85 * + - ( - - 56 ), + 69 col1
----
-5876
69

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4581
SELECT - COALESCE ( + 22, + 75 DIV + - 18 * + COUNT( * ) ) AS col2, - 72 * 14 AS col1
----
-22
-1008

skipif mysql # not compatible
query II rowsort label-4581
SELECT - COALESCE ( + 22, + 75 / + - 18 * + COUNT ( * ) ) AS col2, - 72 * 14 AS col1
----
-22
-1008

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4582
SELECT + CASE - 60 WHEN - - AVG ( - CAST( 30 AS SIGNED ) ) THEN NULL ELSE + 95 + - 0 END + 51 AS col1, 55 * COALESCE ( + 76, - + 49 ) + - + 23
----
146
4157

skipif mysql # not compatible
query II rowsort label-4582
SELECT + CASE - 60 WHEN - - AVG ( - CAST ( 30 AS INTEGER ) ) THEN NULL ELSE + 95 + - 0 END + 51 AS col1, 55 * COALESCE ( + 76, - + 49 ) + - + 23
----
146
4157

query I rowsort
SELECT ALL 59 * 23 AS col2
----
1357

onlyif mysql # DIV for integer division: 
query II rowsort label-4584
SELECT + 65 DIV - + 88 AS col2, 22
----
0
22

skipif mysql # not compatible
query II rowsort label-4584
SELECT + 65 / - + 88 AS col2, 22
----
0
22

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4585
SELECT + 41 * NULLIF ( + CASE - 80 WHEN + - 60 THEN + NULLIF ( 89, + 87 ) - - 0 WHEN - COUNT( * ) + 51 / + 99 THEN COUNT( * ) * 87 + + + 17 + COUNT( * ) END, - + CAST( NULL AS SIGNED ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4585
SELECT + 41 * NULLIF ( + CASE - 80 WHEN + - 60 THEN + NULLIF ( 89, + 87 ) - - 0 WHEN - COUNT ( * ) + 51 / + 99 THEN COUNT ( * ) * 87 + + + 17 + COUNT ( * ) END, - + CAST ( NULL AS INTEGER ) ) AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4586
SELECT + CASE + 50 WHEN + + 47 / COALESCE ( + 39, + CASE COALESCE ( + 41, - + 52 ) WHEN - NULLIF ( - + ( + + 27 ), - 54 * - - CAST( NULL AS SIGNED ) + + 53 + + 75 + + 75 ) THEN NULL WHEN + ( - 35 ) * + - 13 THEN NULL WHEN - 14 THEN 48 + + 90 ELSE - 21 END ) * ( - 40 ) * + 28 / COUNT( * ) + + 95 THEN ( + 35 ) ELSE 41 * + 9 + + 2 * + ( + - 89 ) + - 41 END + - SUM( - 50 ) * 74 AS col0
----
3850

skipif mysql # not compatible
query I rowsort label-4586
SELECT + CASE + 50 WHEN + + 47 / COALESCE ( + 39, + CASE COALESCE ( + 41, - + 52 ) WHEN - NULLIF ( - + ( + + 27 ), - 54 * - - CAST ( NULL AS INTEGER ) + + 53 + + 75 + + 75 ) THEN NULL WHEN + ( - 35 ) * + - 13 THEN NULL WHEN - 14 THEN 48 + + 90 ELSE - 21 END ) * ( - 40 ) * + 28 / COUNT ( * ) + + 95 THEN ( + 35 ) ELSE 41 * + 9 + + 2 * + ( + - 89 ) + - 41 END + - SUM ( - 50 ) * 74 AS col0
----
3850

query I rowsort
SELECT + 29 + + 10 * 48
----
509

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4588
SELECT ALL NULLIF ( 65, CAST( - 26 AS DECIMAL ) * - - 5 ) * 0
----
0

skipif mysql # not compatible
query I rowsort label-4588
SELECT ALL NULLIF ( 65, CAST ( - 26 AS REAL ) * - - 5 ) * 0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4589
SELECT + CAST( NULL AS SIGNED ) * + + 1 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4589
SELECT + CAST ( NULL AS INTEGER ) * + + 1 col0
----
NULL

query I rowsort
SELECT - 11 * + + NULLIF ( + 34, + + 24 )
----
-374

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4591
SELECT + 23 + + - COUNT( DISTINCT 43 ) + - 55 DIV - 94 AS col0
----
22

skipif mysql # not compatible
query I rowsort label-4591
SELECT + 23 + + - COUNT ( DISTINCT 43 ) + - 55 / - 94 AS col0
----
22

query I rowsort
SELECT + 3 + 42
----
45

query I rowsort
SELECT + 56 + 81 AS col1
----
137

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4594
SELECT + + 83 + 32 + 12 AS col0, - MAX( ALL 83 ) * 33 * + + 3 - + 21 + + CAST( + AVG ( ALL - 12 ) AS SIGNED ) * + 50 - - ( + - MIN( + 8 ) ) AS col0
----
127
-8846

skipif mysql # not compatible
query II rowsort label-4594
SELECT + + 83 + 32 + 12 AS col0, - MAX ( ALL 83 ) * 33 * + + 3 - + 21 + + CAST ( + AVG ( ALL - 12 ) AS INTEGER ) * + 50 - - ( + - MIN ( + 8 ) ) AS col0
----
127
-8846

onlyif mysql # DIV for integer division: 
query I rowsort label-4595
SELECT DISTINCT - 14 DIV + 93 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4595
SELECT DISTINCT - 14 / + 93 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4596
SELECT MIN( DISTINCT + 25 ) col1
----
25

skipif mysql # not compatible
query I rowsort label-4596
SELECT MIN ( DISTINCT + 25 ) col1
----
25

query I rowsort
SELECT - + 3 + + 0
----
-3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4598
SELECT DISTINCT + - 69 DIV 36 + + COUNT( * ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4598
SELECT DISTINCT + - 69 / 36 + + COUNT ( * ) AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4599
SELECT - 22 * 90 + + 46 + + + 17 + + MIN( DISTINCT 59 )
----
-1858

skipif mysql # not compatible
query I rowsort label-4599
SELECT - 22 * 90 + + 46 + + + 17 + + MIN ( DISTINCT 59 )
----
-1858

query I rowsort
SELECT DISTINCT + 53 * - - 1 * 15
----
795

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4601
SELECT + 35 DIV - ( - + 70 ) + + - COUNT( * ) col2
----
-1

skipif mysql # not compatible
query I rowsort label-4601
SELECT + 35 / - ( - + 70 ) + + - COUNT ( * ) col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4602
SELECT DISTINCT - 20 * CASE + 42 WHEN + MAX( ALL - 57 ) * - 71 THEN NULL ELSE - 52 * - + COALESCE ( 83, - 3 ) END + - - 8 AS col2
----
-86312

skipif mysql # not compatible
query I rowsort label-4602
SELECT DISTINCT - 20 * CASE + 42 WHEN + MAX ( ALL - 57 ) * - 71 THEN NULL ELSE - 52 * - + COALESCE ( 83, - 3 ) END + - - 8 AS col2
----
-86312

query I rowsort
SELECT ALL + 62 * 90 AS col0
----
5580

onlyif mysql # aggregate syntax: 
query I rowsort label-4604
SELECT + 86 * - - 47 - - ( + COUNT( * ) ) + COUNT( * ) AS col2
----
4044

skipif mysql # not compatible
query I rowsort label-4604
SELECT + 86 * - - 47 - - ( + COUNT ( * ) ) + COUNT ( * ) AS col2
----
4044

query I rowsort
SELECT DISTINCT + 29 * - + 35
----
-1015

query I rowsort
SELECT 61 * 9 * - 79 AS col1
----
-43371

onlyif mysql # aggregate syntax: 
query I rowsort label-4607
SELECT DISTINCT - NULLIF ( + 1, + 56 + + 94 + - ( - AVG ( DISTINCT 15 ) ) * - COUNT( * ) ) col1
----
-1

skipif mysql # not compatible
query I rowsort label-4607
SELECT DISTINCT - NULLIF ( + 1, + 56 + + 94 + - ( - AVG ( DISTINCT 15 ) ) * - COUNT ( * ) ) col1
----
-1

query I rowsort
SELECT 77 + 15
----
92

onlyif mysql # aggregate syntax: DIV for integer division: 
query III rowsort label-4609
SELECT + 1 AS col0, + 95 + + - 42 * + + ( - ( COUNT( * ) ) ) - 4 DIV + 72 * + + 14 AS col2, + 88 * 45 AS col2
----
1
137
3960

skipif mysql # not compatible
query III rowsort label-4609
SELECT + 1 AS col0, + 95 + + - 42 * + + ( - ( COUNT ( * ) ) ) - 4 / + 72 * + + 14 AS col2, + 88 * 45 AS col2
----
1
137
3960

query I rowsort
SELECT 86 + 19 AS col1
----
105

query I rowsort
SELECT DISTINCT 18 * + 56
----
1008

query I rowsort
SELECT ALL - 48 * + 71 * - 51 AS col1
----
173808

query I rowsort
SELECT 76 * - - 61
----
4636

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4614
SELECT 12 + + 76 * - CASE - 6 WHEN - 29 * - MIN( ALL + - 75 ) + - 19 * + COUNT( * ) THEN NULL WHEN - CAST( + + COUNT( * ) AS DECIMAL ) THEN NULL WHEN 84 THEN + 33 * - 52 ELSE 94 * - 76 END + + 36
----
542992

skipif mysql # not compatible
query I rowsort label-4614
SELECT 12 + + 76 * - CASE - 6 WHEN - 29 * - MIN ( ALL + - 75 ) + - 19 * + COUNT ( * ) THEN NULL WHEN - CAST ( + + COUNT ( * ) AS REAL ) THEN NULL WHEN 84 THEN + 33 * - 52 ELSE 94 * - 76 END + + 36
----
542992

onlyif mysql # aggregate syntax: 
query II rowsort label-4615
SELECT DISTINCT - COUNT( * ) * + COUNT( * ) * + + 11 AS col2, - COUNT( * )
----
-11
-1

skipif mysql # not compatible
query II rowsort label-4615
SELECT DISTINCT - COUNT ( * ) * + COUNT ( * ) * + + 11 AS col2, - COUNT ( * )
----
-11
-1

query II rowsort
SELECT ALL 69 AS col2, + 13 col2
----
69
13

query I rowsort
SELECT ALL 17 + - - 86 AS col0
----
103

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4618
SELECT 67 * + COUNT( * ) * 66 + - + 9 * 34 DIV + 11 AS col1
----
4395

skipif mysql # not compatible
query I rowsort label-4618
SELECT 67 * + COUNT ( * ) * 66 + - + 9 * 34 / + 11 AS col1
----
4395

onlyif mysql # aggregate syntax: 
query I rowsort label-4619
SELECT DISTINCT - 31 * COUNT( * )
----
-31

skipif mysql # not compatible
query I rowsort label-4619
SELECT DISTINCT - 31 * COUNT ( * )
----
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-4620
SELECT COUNT( * ) + + ( + 18 ) AS col1
----
19

skipif mysql # not compatible
query I rowsort label-4620
SELECT COUNT ( * ) + + ( + 18 ) AS col1
----
19

query I rowsort
SELECT 14 - + 65
----
-51

query II rowsort
SELECT ALL 34 AS col0, - CASE - 29 WHEN - + ( 36 ) + + 11 + - 97 - + + 86 THEN - 52 * + 46 END AS col0
----
34
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4623
SELECT DISTINCT + 58 + + COUNT( * ) * - - MAX( ALL - 99 ), + 94 AS col1
----
-41
94

skipif mysql # not compatible
query II rowsort label-4623
SELECT DISTINCT + 58 + + COUNT ( * ) * - - MAX ( ALL - 99 ), + 94 AS col1
----
-41
94

query I rowsort
SELECT ALL ( + - 35 ) + + 93 + - 78
----
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-4625
SELECT MIN( DISTINCT - + 32 ) * 96 + 21
----
-3051

skipif mysql # not compatible
query I rowsort label-4625
SELECT MIN ( DISTINCT - + 32 ) * 96 + 21
----
-3051

query I rowsort
SELECT + 10 + - 92 + 72 + 3 AS col1
----
-7

query II rowsort
SELECT 50 AS col2, + 55 AS col0
----
50
55

onlyif mysql # aggregate syntax: 
query I rowsort label-4628
SELECT 86 + - + 79 + - MAX( + - 72 )
----
79

skipif mysql # not compatible
query I rowsort label-4628
SELECT 86 + - + 79 + - MAX ( + - 72 )
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-4629
SELECT ALL 93 + - + 3 + - MIN( ALL + 8 ) + + 68 * CASE - 40 WHEN - + 39 * + 65 * - 79 * - ( + - 28 ) * + - COUNT( * ) * + 21 + 96 THEN 19 ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4629
SELECT ALL 93 + - + 3 + - MIN ( ALL + 8 ) + + 68 * CASE - 40 WHEN - + 39 * + 65 * - 79 * - ( + - 28 ) * + - COUNT ( * ) * + 21 + 96 THEN 19 ELSE NULL END AS col0
----
NULL

query I rowsort
SELECT - ( + 89 ) col0
----
-89

onlyif mysql # aggregate syntax: 
query II rowsort label-4631
SELECT ( + COALESCE ( ( + 94 ), + 70, 99 ) ) + COUNT( DISTINCT - 45 ) AS col2, + 46 AS col0
----
95
46

skipif mysql # not compatible
query II rowsort label-4631
SELECT ( + COALESCE ( ( + 94 ), + 70, 99 ) ) + COUNT ( DISTINCT - 45 ) AS col2, + 46 AS col0
----
95
46

onlyif mysql # aggregate syntax: 
query I rowsort label-4632
SELECT DISTINCT 16 * - COUNT( * ) AS col2
----
-16

skipif mysql # not compatible
query I rowsort label-4632
SELECT DISTINCT 16 * - COUNT ( * ) AS col2
----
-16

query I rowsort
SELECT ALL 20 - 72
----
-52

query I rowsort
SELECT ALL 64 * + - 41 + - + 23 + 65 AS col2
----
-2582

onlyif mysql # aggregate syntax: 
query I rowsort label-4635
SELECT DISTINCT - ( - + ( - COUNT( + 71 ) ) ) * COUNT( * ) + COUNT( * ) - 33 - - 79 * + + 97 + - COUNT( * )
----
7629

skipif mysql # not compatible
query I rowsort label-4635
SELECT DISTINCT - ( - + ( - COUNT ( + 71 ) ) ) * COUNT ( * ) + COUNT ( * ) - 33 - - 79 * + + 97 + - COUNT ( * )
----
7629

onlyif mysql # aggregate syntax: 
query I rowsort label-4636
SELECT + CASE 68 WHEN + 44 THEN COALESCE ( 39, + 24 ) WHEN + - COUNT( * ) / + - MAX( 38 ) + + + 66 + 26 THEN + + 98 - - 80 * 88 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4636
SELECT + CASE 68 WHEN + 44 THEN COALESCE ( 39, + 24 ) WHEN + - COUNT ( * ) / + - MAX ( 38 ) + + + 66 + 26 THEN + + 98 - - 80 * 88 END AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4637
SELECT DISTINCT - + CAST( + COUNT( * ) AS SIGNED ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-4637
SELECT DISTINCT - + CAST ( + COUNT ( * ) AS INTEGER ) AS col1
----
-1

query I rowsort
SELECT 34 * 30 * - 77 - + - 67
----
-78473

onlyif mysql # aggregate syntax: 
query II rowsort label-4639
SELECT - 94 col2, + 59 * COUNT( * ) AS col1
----
-94
59

skipif mysql # not compatible
query II rowsort label-4639
SELECT - 94 col2, + 59 * COUNT ( * ) AS col1
----
-94
59

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4640
SELECT CAST( NULL AS SIGNED ) * 10 + - 23
----
NULL

skipif mysql # not compatible
query I rowsort label-4640
SELECT CAST ( NULL AS INTEGER ) * 10 + - 23
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-4641
SELECT 14 DIV 59 * - 40, 48 * - 29 col0
----
0
-1392

skipif mysql # not compatible
query II rowsort label-4641
SELECT 14 / 59 * - 40, 48 * - 29 col0
----
0
-1392

query I rowsort
SELECT DISTINCT - - 74 * + 35 col2
----
2590

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4643
SELECT DISTINCT - + CAST( - CAST( + + 35 AS SIGNED ) AS SIGNED )
----
35

skipif mysql # not compatible
query I rowsort label-4643
SELECT DISTINCT - + CAST ( - CAST ( + + 35 AS INTEGER ) AS INTEGER )
----
35

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4644
SELECT DISTINCT 60 DIV - 31 DIV - COUNT( * ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-4644
SELECT DISTINCT 60 / - 31 / - COUNT ( * ) AS col1
----
1

query I rowsort
SELECT DISTINCT 95 * 46 AS col2
----
4370

onlyif mysql # aggregate syntax: 
query II rowsort label-4646
SELECT 96 * - + 87 * + - 56 * + 50, 14 * COUNT( * ) col1
----
23385600
14

skipif mysql # not compatible
query II rowsort label-4646
SELECT 96 * - + 87 * + - 56 * + 50, 14 * COUNT ( * ) col1
----
23385600
14

onlyif mysql # aggregate syntax: 
query I rowsort label-4647
SELECT ALL 30 + - + COUNT( * ) AS col2
----
29

skipif mysql # not compatible
query I rowsort label-4647
SELECT ALL 30 + - + COUNT ( * ) AS col2
----
29

query I rowsort
SELECT 79 + - + 91 AS col0
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-4649
SELECT 80 * - 39 - - CASE 61 WHEN - ( 32 ) * 50 THEN + COUNT( * ) + COUNT( * ) ELSE NULL END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4649
SELECT 80 * - 39 - - CASE 61 WHEN - ( 32 ) * 50 THEN + COUNT ( * ) + COUNT ( * ) ELSE NULL END col1
----
NULL

query I rowsort
SELECT 21 * - 27
----
-567

query I rowsort
SELECT ALL + 71 + + - 34 AS col0
----
37

query I rowsort
SELECT ALL - NULLIF ( + 84, + + 58 ) + - 84 - - 17 + + ( - - 51 ) AS col0
----
-100

query I rowsort
SELECT 14 + 55 AS col0
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-4654
SELECT ALL COUNT( ALL + 96 )
----
1

skipif mysql # not compatible
query I rowsort label-4654
SELECT ALL COUNT ( ALL + 96 )
----
1

query I rowsort
SELECT 11 + 0 AS col1
----
11

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4656
SELECT CAST( - + ( 34 ) AS SIGNED ) * + MAX( + - 31 ) AS col0
----
1054

skipif mysql # not compatible
query I rowsort label-4656
SELECT CAST ( - + ( 34 ) AS INTEGER ) * + MAX ( + - 31 ) AS col0
----
1054

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4657
SELECT ALL - - MIN( 97 ) * - + 49 - - 77 DIV 44
----
-4752

skipif mysql # not compatible
query I rowsort label-4657
SELECT ALL - - MIN ( 97 ) * - + 49 - - 77 / 44
----
-4752

query I rowsort
SELECT 57 + 24 - 72
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4659
SELECT 88 + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4659
SELECT 88 + CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4660
SELECT + MIN( - + 34 ) + + - ( + 3 ), MIN( ALL - ( 42 ) ) AS col1
----
-37
-42

skipif mysql # not compatible
query II rowsort label-4660
SELECT + MIN ( - + 34 ) + + - ( + 3 ), MIN ( ALL - ( 42 ) ) AS col1
----
-37
-42

query II rowsort
SELECT 49 * + - 90 + - - 47 + + COALESCE ( + 5, 42 * 48 ), 63 AS col1
----
-4358
63

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4662
SELECT 80 + - + MAX( ALL + 7 ) DIV 75
----
80

skipif mysql # not compatible
query I rowsort label-4662
SELECT 80 + - + MAX ( ALL + 7 ) / 75
----
80

query I rowsort
SELECT ( - + 70 ) + + 46 AS col1
----
-24

query I rowsort
SELECT - 24 - + 65 AS col0
----
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-4665
SELECT 6 + + - MAX( ALL 42 ) AS col0
----
-36

skipif mysql # not compatible
query I rowsort label-4665
SELECT 6 + + - MAX ( ALL 42 ) AS col0
----
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-4666
SELECT - 77 * NULLIF ( + + 97, NULLIF ( + 95, - + COUNT( * ) ) )
----
-7469

skipif mysql # not compatible
query I rowsort label-4666
SELECT - 77 * NULLIF ( + + 97, NULLIF ( + 95, - + COUNT ( * ) ) )
----
-7469

query I rowsort
SELECT + 95 * + - 33
----
-3135

onlyif mysql # aggregate syntax: 
query I rowsort label-4668
SELECT ALL COUNT( * ) * + + CASE 34 WHEN - + COUNT( * ) THEN NULL WHEN 54 THEN + 10 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4668
SELECT ALL COUNT ( * ) * + + CASE 34 WHEN - + COUNT ( * ) THEN NULL WHEN 54 THEN + 10 END AS col2
----
NULL

query I rowsort
SELECT - 63 * - 59 - + 58 + 74 * - 39
----
773

query I rowsort
SELECT DISTINCT 82 * - 92 * + - 21 + - 23 AS col1
----
158401

onlyif mysql # aggregate syntax: 
query I rowsort label-4671
SELECT + COUNT( ALL - + 21 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-4671
SELECT + COUNT ( ALL - + 21 ) AS col0
----
1

query I rowsort
SELECT DISTINCT 7 * + 38 + 66 AS col0
----
332

onlyif mysql # aggregate syntax: 
query I rowsort label-4673
SELECT ALL 75 * + CASE - 5 WHEN - - 58 THEN + - 36 / - 39 WHEN + COUNT( * ) THEN NULL END + - NULLIF ( - 69, - COUNT( * ) ) * + + 16 / + 15 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4673
SELECT ALL 75 * + CASE - 5 WHEN - - 58 THEN + - 36 / - 39 WHEN + COUNT ( * ) THEN NULL END + - NULLIF ( - 69, - COUNT ( * ) ) * + + 16 / + 15 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4674
SELECT + SUM( 50 ) AS col1
----
50

skipif mysql # not compatible
query I rowsort label-4674
SELECT + SUM ( 50 ) AS col1
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-4675
SELECT + COUNT( + 93 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-4675
SELECT + COUNT ( + 93 ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4676
SELECT DISTINCT - 30 * MAX( 72 ) + COUNT( * ) AS col2
----
-2159

skipif mysql # not compatible
query I rowsort label-4676
SELECT DISTINCT - 30 * MAX ( 72 ) + COUNT ( * ) AS col2
----
-2159

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4677
SELECT ALL + COUNT( ALL 64 ) * + 64 * + 76 DIV COUNT( * ) + - - 50 AS col0
----
4914

skipif mysql # not compatible
query I rowsort label-4677
SELECT ALL + COUNT ( ALL 64 ) * + 64 * + 76 / COUNT ( * ) + - - 50 AS col0
----
4914

onlyif mysql # aggregate syntax: 
query I rowsort label-4678
SELECT + 82 * + COUNT( * ) AS col0
----
82

skipif mysql # not compatible
query I rowsort label-4678
SELECT + 82 * + COUNT ( * ) AS col0
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-4679
SELECT + 0 + COUNT( * ) + 88 * + 38 AS col1
----
3345

skipif mysql # not compatible
query I rowsort label-4679
SELECT + 0 + COUNT ( * ) + 88 * + 38 AS col1
----
3345

query I rowsort
SELECT DISTINCT 99 * + 3 + 35 col1
----
332

onlyif mysql # aggregate syntax: 
query I rowsort label-4681
SELECT ALL - ( COUNT( * ) ) * + - 44 col2
----
44

skipif mysql # not compatible
query I rowsort label-4681
SELECT ALL - ( COUNT ( * ) ) * + - 44 col2
----
44

query I rowsort
SELECT 76 * + - 55 + - 71
----
-4251

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4683
SELECT + 64 DIV COALESCE ( + 6, - - CAST( NULL AS SIGNED ) ) AS col1
----
10

skipif mysql # not compatible
query I rowsort label-4683
SELECT + 64 / COALESCE ( + 6, - - CAST ( NULL AS INTEGER ) ) AS col1
----
10

onlyif mysql # DIV for integer division: 
query I rowsort label-4684
SELECT + 23 - + 32 DIV + 80 * + - 38
----
23

skipif mysql # not compatible
query I rowsort label-4684
SELECT + 23 - + 32 / + 80 * + - 38
----
23

query I rowsort
SELECT ALL 34 * + 11
----
374

onlyif mysql # aggregate syntax: 
query I rowsort label-4686
SELECT MAX( + ( + 9 ) ) AS col2
----
9

skipif mysql # not compatible
query I rowsort label-4686
SELECT MAX ( + ( + 9 ) ) AS col2
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-4687
SELECT - 46 + - CASE + - ( + COUNT( 9 ) ) WHEN + 78 - COALESCE ( CASE - - 21 WHEN + 70 + 61 * + - 76 THEN 84 + + 21 + 73 END, - 52, - 44 * - 70 + - - 21, + ( + COUNT( * ) ) * - 79 + + 98 + - - 89 + + + COUNT( * ) * - 46 * - AVG ( NULLIF ( + - 0, + 19 ) ) ) THEN - 79 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4687
SELECT - 46 + - CASE + - ( + COUNT ( 9 ) ) WHEN + 78 - COALESCE ( CASE - - 21 WHEN + 70 + 61 * + - 76 THEN 84 + + 21 + 73 END, - 52, - 44 * - 70 + - - 21, + ( + COUNT ( * ) ) * - 79 + + 98 + - - 89 + + + COUNT ( * ) * - 46 * - AVG ( NULLIF ( + - 0, + 19 ) ) ) THEN - 79 END AS col0
----
NULL

query I rowsort
SELECT DISTINCT + + 37 - 96 AS col1
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-4689
SELECT ALL + CASE 89 WHEN - 83 / + MIN( ALL 16 ) THEN + 95 * - + 23 END
----
NULL

skipif mysql # not compatible
query I rowsort label-4689
SELECT ALL + CASE 89 WHEN - 83 / + MIN ( ALL 16 ) THEN + 95 * - + 23 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4690
SELECT DISTINCT SUM( - 77 )
----
-77

skipif mysql # not compatible
query I rowsort label-4690
SELECT DISTINCT SUM ( - 77 )
----
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-4691
SELECT ALL + 35 * - ( + - COUNT( * ) )
----
35

skipif mysql # not compatible
query I rowsort label-4691
SELECT ALL + 35 * - ( + - COUNT ( * ) )
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-4692
SELECT DISTINCT - + COUNT( * ) - - + 17
----
16

skipif mysql # not compatible
query I rowsort label-4692
SELECT DISTINCT - + COUNT ( * ) - - + 17
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-4693
SELECT DISTINCT + SUM( - - 6 )
----
6

skipif mysql # not compatible
query I rowsort label-4693
SELECT DISTINCT + SUM ( - - 6 )
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-4694
SELECT - COALESCE ( - NULLIF ( - + 97, + 60 ), + + 65 ) * + COUNT( * )
----
-97

skipif mysql # not compatible
query I rowsort label-4694
SELECT - COALESCE ( - NULLIF ( - + 97, + 60 ), + + 65 ) * + COUNT ( * )
----
-97

onlyif mysql # aggregate syntax: 
query II rowsort label-4695
SELECT - 23, COUNT( * ) AS col0
----
-23
1

skipif mysql # not compatible
query II rowsort label-4695
SELECT - 23, COUNT ( * ) AS col0
----
-23
1

query I rowsort
SELECT ALL + ( - 4 ) AS col1
----
-4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4697
SELECT - - 53 * + ( COUNT( * ) ) * ( + - CAST( NULL AS SIGNED ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4697
SELECT - - 53 * + ( COUNT ( * ) ) * ( + - CAST ( NULL AS INTEGER ) ) AS col0
----
NULL

query I rowsort
SELECT ALL + 48 + 68
----
116

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4699
SELECT - COUNT( * ) + - 8 + + 30 + + CAST( 60 AS SIGNED ) + + - 54 col1, 92 * - COUNT( * )
----
27
-92

skipif mysql # not compatible
query II rowsort label-4699
SELECT - COUNT ( * ) + - 8 + + 30 + + CAST ( 60 AS INTEGER ) + + - 54 col1, 92 * - COUNT ( * )
----
27
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-4700
SELECT + NULLIF ( - COUNT( * ), - 22 )
----
-1

skipif mysql # not compatible
query I rowsort label-4700
SELECT + NULLIF ( - COUNT ( * ), - 22 )
----
-1

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4701
SELECT ALL 15 / ( COUNT( * ) ) * CAST( NULL AS DECIMAL ) / + COUNT( * ) * COALESCE ( + - 41, - - 65 * + 20 + - 39 - + 59 * + - 85 * + + 23 + - 0 * - 25, CAST( NULL AS DECIMAL ) * COUNT( DISTINCT + - NULLIF ( NULLIF ( + + 10, - COALESCE ( 9, + 17 ) * - 77 * + 84 ), + - 44 ) ) ) * - 52 + - 33 + - 86 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4701
SELECT ALL 15 / ( COUNT ( * ) ) * CAST ( NULL AS REAL ) / + COUNT ( * ) * COALESCE ( + - 41, - - 65 * + 20 + - 39 - + 59 * + - 85 * + + 23 + - 0 * - 25, CAST ( NULL AS REAL ) * COUNT ( DISTINCT + - NULLIF ( NULLIF ( + + 10, - COALESCE ( 9, + 17 ) * - 77 * + 84 ), + - 44 ) ) ) * - 52 + - 33 + - 86 AS col0
----
NULL

query II rowsort
SELECT + 19 * - 66, + 59 AS col1
----
-1254
59

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4703
SELECT 8 DIV + + 99 + + COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-4703
SELECT 8 / + + 99 + + COUNT ( * )
----
1

query I rowsort
SELECT ALL + NULLIF ( - - 88, + 57 )
----
88

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4705
SELECT 17 DIV + 51 - + + COUNT( - 26 )
----
-1

skipif mysql # not compatible
query I rowsort label-4705
SELECT 17 / + 51 - + + COUNT ( - 26 )
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-4706
SELECT ALL + 76 AS col2, 9 + - 55 * - ( + MAX( + - 49 ) ) - + 92 - + 31
----
76
-2809

skipif mysql # not compatible
query II rowsort label-4706
SELECT ALL + 76 AS col2, 9 + - 55 * - ( + MAX ( + - 49 ) ) - + 92 - + 31
----
76
-2809

query I rowsort
SELECT + NULLIF ( 13, + + 50 )
----
13

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4708
SELECT DISTINCT 26 DIV - COALESCE ( + + 65, + SUM( - 30 ) ) + + 62 AS col2, - 3 - SUM( + + 22 ) DIV + 74 AS col0
----
62
-3

skipif mysql # not compatible
query II rowsort label-4708
SELECT DISTINCT 26 / - COALESCE ( + + 65, + SUM ( - 30 ) ) + + 62 AS col2, - 3 - SUM ( + + 22 ) / + 74 AS col0
----
62
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-4709
SELECT ALL + COUNT( * ) * - ( - 70 )
----
70

skipif mysql # not compatible
query I rowsort label-4709
SELECT ALL + COUNT ( * ) * - ( - 70 )
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-4710
SELECT 90 * + 79 * + 15 + - MIN( DISTINCT + + 82 )
----
106568

skipif mysql # not compatible
query I rowsort label-4710
SELECT 90 * + 79 * + 15 + - MIN ( DISTINCT + + 82 )
----
106568

query I rowsort
SELECT ALL - 76 * + 40 - 16
----
-3056

onlyif mysql # aggregate syntax: 
query I rowsort label-4712
SELECT + COUNT( * ) * 97 * - - 42
----
4074

skipif mysql # not compatible
query I rowsort label-4712
SELECT + COUNT ( * ) * 97 * - - 42
----
4074

query II rowsort
SELECT ALL + 75, 63 AS col2
----
75
63

query I rowsort
SELECT + 5 - - - 11 AS col0
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-4715
SELECT CASE - 22 WHEN - COUNT( * ) THEN NULL WHEN - - 45 THEN - COUNT( * ) ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4715
SELECT CASE - 22 WHEN - COUNT ( * ) THEN NULL WHEN - - 45 THEN - COUNT ( * ) ELSE NULL END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4716
SELECT ALL + COUNT( ALL - 26 ) * - SUM( 92 ) * - 16 + - 54 - - - ( - - 40 )
----
1378

skipif mysql # not compatible
query I rowsort label-4716
SELECT ALL + COUNT ( ALL - 26 ) * - SUM ( 92 ) * - 16 + - 54 - - - ( - - 40 )
----
1378

query I rowsort
SELECT + 93 * ( + - 80 ) col2
----
-7440

query I rowsort
SELECT + ( 17 ) col1
----
17

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: DIV for integer division: 
query II rowsort label-4719
SELECT + + 86, CASE CASE + NULLIF ( + 21, 85 - + 54 + + AVG ( 12 ) ) WHEN + COUNT( * ) * + - 23 * - + COUNT( * ) * - + CAST( NULL AS DECIMAL ) THEN - 16 - 43 * - - 91 + + - CASE COUNT( * ) WHEN - - 16 + - 23 * - 1 + + 16 THEN COUNT( * ) - - 31 + + 32 * + 12 END ELSE CAST( NULL AS SIGNED ) END WHEN - - ( 77 ) THEN NULL WHEN - COUNT( * ) * 72 * - 93 THEN COUNT( * ) ELSE 97 * MIN( DISTINCT + 27 ) * 96 DIV + + 62 - MAX( - 20 ) - + - 3 END AS col1
----
86
4078

skipif mysql # not compatible
query II rowsort label-4719
SELECT + + 86, CASE CASE + NULLIF ( + 21, 85 - + 54 + + AVG ( 12 ) ) WHEN + COUNT ( * ) * + - 23 * - + COUNT ( * ) * - + CAST ( NULL AS REAL ) THEN - 16 - 43 * - - 91 + + - CASE COUNT ( * ) WHEN - - 16 + - 23 * - 1 + + 16 THEN COUNT ( * ) - - 31 + + 32 * + 12 END ELSE CAST ( NULL AS INTEGER ) END WHEN - - ( 77 ) THEN NULL WHEN - COUNT ( * ) * 72 * - 93 THEN COUNT ( * ) ELSE 97 * MIN ( DISTINCT + 27 ) * 96 / + + 62 - MAX ( - 20 ) - + - 3 END AS col1
----
86
4078

onlyif mysql # aggregate syntax: 
query I rowsort label-4720
SELECT ALL + - MAX( DISTINCT - 14 )
----
14

skipif mysql # not compatible
query I rowsort label-4720
SELECT ALL + - MAX ( DISTINCT - 14 )
----
14

onlyif mysql # DIV for integer division: 
query I rowsort label-4721
SELECT ALL + 70 DIV - 78
----
0

skipif mysql # not compatible
query I rowsort label-4721
SELECT ALL + 70 / - 78
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4722
SELECT ALL MIN( DISTINCT - 58 )
----
-58

skipif mysql # not compatible
query I rowsort label-4722
SELECT ALL MIN ( DISTINCT - 58 )
----
-58

query I rowsort
SELECT + + 73 + + 20 * - - 38 + + + 24 AS col2
----
857

onlyif mysql # aggregate syntax: 
query I rowsort label-4724
SELECT - + SUM( 89 ) - ( + - 24 ) * - COUNT( * ) * - + 19 AS col0
----
367

skipif mysql # not compatible
query I rowsort label-4724
SELECT - + SUM ( 89 ) - ( + - 24 ) * - COUNT ( * ) * - + 19 AS col0
----
367

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4725
SELECT - 97 DIV + CAST( + COALESCE ( 2, + - 27 * - 30, - + COUNT( * ) DIV CAST( NULL AS SIGNED ) ) AS SIGNED )
----
-48

skipif mysql # not compatible
query I rowsort label-4725
SELECT - 97 / + CAST ( + COALESCE ( 2, + - 27 * - 30, - + COUNT ( * ) / CAST ( NULL AS INTEGER ) ) AS INTEGER )
----
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-4726
SELECT ALL 66 * 26 * - CASE COUNT( * ) WHEN MAX( DISTINCT + 25 ) + - 46 * - 91 * - COUNT( * ) THEN - + NULLIF ( + 42, + 7 * + COUNT( + - 25 ) ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-4726
SELECT ALL 66 * 26 * - CASE COUNT ( * ) WHEN MAX ( DISTINCT + 25 ) + - 46 * - 91 * - COUNT ( * ) THEN - + NULLIF ( + 42, + 7 * + COUNT ( + - 25 ) ) END
----
NULL

query I rowsort
SELECT 98 * + 55 + 7
----
5397

query I rowsort
SELECT 86 * - 48 * 26 - 53 col1
----
-107381

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4729
SELECT CASE 48 WHEN - - 64 THEN + + CAST( NULL AS SIGNED ) * CAST( NULL AS DECIMAL ) + - COUNT( * ) END + + 66 * 67
----
NULL

skipif mysql # not compatible
query I rowsort label-4729
SELECT CASE 48 WHEN - - 64 THEN + + CAST ( NULL AS INTEGER ) * CAST ( NULL AS REAL ) + - COUNT ( * ) END + + 66 * 67
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4730
SELECT ALL COUNT( * ) AS col2, + 31
----
1
31

skipif mysql # not compatible
query II rowsort label-4730
SELECT ALL COUNT ( * ) AS col2, + 31
----
1
31

query I rowsort
SELECT 20 + + + 71 AS col0
----
91

onlyif mysql # aggregate syntax: 
query II rowsort label-4732
SELECT - + ( - + 74 ) AS col1, 28 * ( + ( - COUNT( * ) ) ) AS col0
----
74
-28

skipif mysql # not compatible
query II rowsort label-4732
SELECT - + ( - + 74 ) AS col1, 28 * ( + ( - COUNT ( * ) ) ) AS col0
----
74
-28

query I rowsort
SELECT ALL + 63 + + + 91 AS col0
----
154

query I rowsort
SELECT ALL 55 + + 7 * + 26
----
237

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4735
SELECT 58 + - CAST( NULL AS SIGNED ) + + 71 / + 96 + 7 + - 50 / - + 51 / - ( 19 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4735
SELECT 58 + - CAST ( NULL AS INTEGER ) + + 71 / + 96 + 7 + - 50 / - + 51 / - ( 19 )
----
NULL

query I rowsort
SELECT ALL - - 92 + - 2 AS col0
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-4737
SELECT - 13 + + COUNT( * ) col1
----
-12

skipif mysql # not compatible
query I rowsort label-4737
SELECT - 13 + + COUNT ( * ) col1
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-4738
SELECT ALL + COUNT( * ) + 86 col1
----
87

skipif mysql # not compatible
query I rowsort label-4738
SELECT ALL + COUNT ( * ) + 86 col1
----
87

onlyif mysql # aggregate syntax: 
query II rowsort label-4739
SELECT COUNT( * ) + + COUNT( * ) col1, 4 * - ( - + 44 ) * ( - + CASE + 34 WHEN + COUNT( * ) THEN + - COUNT( * ) + - + AVG ( 73 ) + + 93 WHEN + + 23 THEN NULL END ) AS col1
----
2
NULL

skipif mysql # not compatible
query II rowsort label-4739
SELECT COUNT ( * ) + + COUNT ( * ) col1, 4 * - ( - + 44 ) * ( - + CASE + 34 WHEN + COUNT ( * ) THEN + - COUNT ( * ) + - + AVG ( 73 ) + + 93 WHEN + + 23 THEN NULL END ) AS col1
----
2
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4740
SELECT DISTINCT + COUNT( * ) + - 92 AS col2, + 70 - + - 89 + + - 38
----
-91
121

skipif mysql # not compatible
query II rowsort label-4740
SELECT DISTINCT + COUNT ( * ) + - 92 AS col2, + 70 - + - 89 + + - 38
----
-91
121

query I rowsort
SELECT 95 * - 8 AS col0
----
-760

query I rowsort
SELECT DISTINCT + 40 + - 93 * 92
----
-8516

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4743
SELECT ALL - MAX( DISTINCT + 70 ) - + COALESCE ( + 89, 92 DIV 24 + + MIN( + 93 ) ) + + 65 * + 73
----
4586

skipif mysql # not compatible
query I rowsort label-4743
SELECT ALL - MAX ( DISTINCT + 70 ) - + COALESCE ( + 89, 92 / 24 + + MIN ( + 93 ) ) + + 65 * + 73
----
4586

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4744
SELECT DISTINCT 88 DIV + COUNT( * ) AS col0, + 66 * - 88 AS col2
----
88
-5808

skipif mysql # not compatible
query II rowsort label-4744
SELECT DISTINCT 88 / + COUNT ( * ) AS col0, + 66 * - 88 AS col2
----
88
-5808

onlyif mysql # DIV for integer division: 
query I rowsort label-4745
SELECT 4 DIV 33 DIV + - 73 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4745
SELECT 4 / 33 / + - 73 AS col1
----
0

query I rowsort
SELECT 13 * - 47 + + 22 AS col2
----
-589

onlyif mysql # DIV for integer division: 
query I rowsort label-4747
SELECT DISTINCT - NULLIF ( ( 32 ), - - 25 ) DIV + 81 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4747
SELECT DISTINCT - NULLIF ( ( 32 ), - - 25 ) / + 81 AS col0
----
0

query I rowsort
SELECT ALL 87 - + ( - 50 )
----
137

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4749
SELECT DISTINCT CAST( NULL AS SIGNED ) * 83
----
NULL

skipif mysql # not compatible
query I rowsort label-4749
SELECT DISTINCT CAST ( NULL AS INTEGER ) * 83
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4750
SELECT COUNT( * ) * - - 46
----
46

skipif mysql # not compatible
query I rowsort label-4750
SELECT COUNT ( * ) * - - 46
----
46

query I rowsort
SELECT COALESCE ( - 61, - - 74, + 52 ) + + 48 col2
----
-13

query I rowsort
SELECT DISTINCT + + 90 * + 90
----
8100

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4753
SELECT + 68 * - CAST( NULL AS SIGNED ), ( + + 84 ) + - 96 * + 10 * 47 AS col2
----
NULL
-45036

skipif mysql # not compatible
query II rowsort label-4753
SELECT + 68 * - CAST ( NULL AS INTEGER ), ( + + 84 ) + - 96 * + 10 * 47 AS col2
----
NULL
-45036

query I rowsort
SELECT ALL - 8 * 44
----
-352

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4755
SELECT + 34 * + - 32 / MIN( + CAST( NULL AS SIGNED ) ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4755
SELECT + 34 * + - 32 / MIN ( + CAST ( NULL AS INTEGER ) ) col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4756
SELECT - 4 + MAX( ALL - 54 ) AS col2
----
-58

skipif mysql # not compatible
query I rowsort label-4756
SELECT - 4 + MAX ( ALL - 54 ) AS col2
----
-58

onlyif mysql # DIV for integer division: 
query I rowsort label-4757
SELECT DISTINCT + ( + 43 ) DIV 82 + 61 AS col2
----
61

skipif mysql # not compatible
query I rowsort label-4757
SELECT DISTINCT + ( + 43 ) / 82 + 61 AS col2
----
61

query I rowsort
SELECT DISTINCT - 14 + 46
----
32

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4759
SELECT ALL 26 + + 73 AS col2, + CAST( 27 AS SIGNED ) DIV + - 3 + - 51 AS col1
----
99
-60

skipif mysql # not compatible
query II rowsort label-4759
SELECT ALL 26 + + 73 AS col2, + CAST ( 27 AS INTEGER ) / + - 3 + - 51 AS col1
----
99
-60

query I rowsort
SELECT ALL + 81 + + + 32 + - 38
----
75

query I rowsort
SELECT DISTINCT - ( 94 ) AS col0
----
-94

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4762
SELECT + NULLIF ( + 58, + 71 + 20 * 66 + - ( + SUM( ALL 26 ) ) ) DIV - - 78 + + 49, CAST( + 36 AS SIGNED ) + 50 AS col0
----
49
86

skipif mysql # not compatible
query II rowsort label-4762
SELECT + NULLIF ( + 58, + 71 + 20 * 66 + - ( + SUM ( ALL 26 ) ) ) / - - 78 + + 49, CAST ( + 36 AS INTEGER ) + 50 AS col0
----
49
86

query I rowsort
SELECT 3 * 12
----
36

query I rowsort
SELECT + 50 * + - ( 84 ) + 30 + - - 53 col2
----
-4117

query I rowsort
SELECT + 20 * 8 AS col0
----
160

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4766
SELECT - 39 AS col2, 55 - - + ( 22 ) * CAST( NULL AS SIGNED ) AS col0
----
-39
NULL

skipif mysql # not compatible
query II rowsort label-4766
SELECT - 39 AS col2, 55 - - + ( 22 ) * CAST ( NULL AS INTEGER ) AS col0
----
-39
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4767
SELECT 25 DIV + + 26 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4767
SELECT 25 / + + 26 AS col2
----
0

query I rowsort
SELECT DISTINCT 30 - - + 42 * + - 3 * - 51
----
6456

query I rowsort
SELECT DISTINCT - 72 - - 63 AS col1
----
-9

onlyif mysql # aggregate syntax: 
query II rowsort label-4770
SELECT 5 AS col2, - 90 + - COUNT( * )
----
5
-91

skipif mysql # not compatible
query II rowsort label-4770
SELECT 5 AS col2, - 90 + - COUNT ( * )
----
5
-91

query II rowsort
SELECT DISTINCT 55 AS col2, - 32 + + - 17 + + 16 AS col0
----
55
-33

query I rowsort
SELECT 30 * - 1 AS col2
----
-30

query II rowsort
SELECT ALL - 66 col0, + 73 + 38 AS col0
----
-66
111

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4774
SELECT - 87 DIV + ( 58 ) - NULLIF ( 54, ( 43 ) * + 59 DIV - 76 + + 23 ) - + NULLIF ( - 92, + COUNT( * ) * + 66 + - ( + 2 ) - 2 ) * 87
----
7949

skipif mysql # not compatible
query I rowsort label-4774
SELECT - 87 / + ( 58 ) - NULLIF ( 54, ( 43 ) * + 59 / - 76 + + 23 ) - + NULLIF ( - 92, + COUNT ( * ) * + 66 + - ( + 2 ) - 2 ) * 87
----
7949

query I rowsort
SELECT 27 * - - 21 + - 61 + + + 27 * ( + 34 )
----
1424

onlyif mysql # aggregate syntax: 
query I rowsort label-4776
SELECT 20 * + ( + MIN( - 80 ) ) AS col2
----
-1600

skipif mysql # not compatible
query I rowsort label-4776
SELECT 20 * + ( + MIN ( - 80 ) ) AS col2
----
-1600

query I rowsort
SELECT 56 * - ( + 20 ) * + 2 AS col2
----
-2240

onlyif mysql # aggregate syntax: 
query II rowsort label-4778
SELECT COUNT( * ) AS col0, - 49
----
1
-49

skipif mysql # not compatible
query II rowsort label-4778
SELECT COUNT ( * ) AS col0, - 49
----
1
-49

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4779
SELECT ALL - ( 82 ) * + + ( + COUNT( * ) ) DIV - 99
----
0

skipif mysql # not compatible
query I rowsort label-4779
SELECT ALL - ( 82 ) * + + ( + COUNT ( * ) ) / - 99
----
0

query I rowsort
SELECT 46 * + + COALESCE ( - 95, - + 26 )
----
-4370

query I rowsort
SELECT + ( - 66 ) AS col0
----
-66

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4782
SELECT + MIN( 17 ) DIV + 86
----
0

skipif mysql # not compatible
query I rowsort label-4782
SELECT + MIN ( 17 ) / + 86
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4783
SELECT DISTINCT + + 88 + + COUNT( * ) + + - 90
----
-1

skipif mysql # not compatible
query I rowsort label-4783
SELECT DISTINCT + + 88 + + COUNT ( * ) + + - 90
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4784
SELECT - 18 DIV - 86 * + + 8 * + COALESCE ( - COUNT( * ), + - COUNT( * ) + + 3, - 34 DIV - - CASE 71 WHEN + + 16 - CASE + 63 WHEN - 72 THEN 98 WHEN - - 58 THEN + + 27 ELSE NULL END THEN NULL ELSE 27 END DIV - 26 + 20 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4784
SELECT - 18 / - 86 * + + 8 * + COALESCE ( - COUNT ( * ), + - COUNT ( * ) + + 3, - 34 / - - CASE 71 WHEN + + 16 - CASE + 63 WHEN - 72 THEN 98 WHEN - - 58 THEN + + 27 ELSE NULL END THEN NULL ELSE 27 END / - 26 + 20 ) AS col2
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4785
SELECT + 88 DIV - MIN( ALL + 49 ) AS col1, 51 + - 72 + - - 26
----
-1
5

skipif mysql # not compatible
query II rowsort label-4785
SELECT + 88 / - MIN ( ALL + 49 ) AS col1, 51 + - 72 + - - 26
----
-1
5

onlyif mysql # aggregate syntax: 
query II rowsort label-4786
SELECT DISTINCT + SUM( DISTINCT + 84 ) * + 81 + 88, - 34 + - COALESCE ( - + 38, - 74 ) AS col1
----
6892
4

skipif mysql # not compatible
query II rowsort label-4786
SELECT DISTINCT + SUM ( DISTINCT + 84 ) * + 81 + 88, - 34 + - COALESCE ( - + 38, - 74 ) AS col1
----
6892
4

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4787
SELECT ALL COUNT( + 82 ) + - 65 * 45 + - SUM( DISTINCT 84 ) + 14 + - 1 * - 26 DIV + - 89 - + 7 * - ( - 13 ) AS col0, 11 DIV 14 AS col1
----
-3085
0

skipif mysql # not compatible
query II rowsort label-4787
SELECT ALL COUNT ( + 82 ) + - 65 * 45 + - SUM ( DISTINCT 84 ) + 14 + - 1 * - 26 / + - 89 - + 7 * - ( - 13 ) AS col0, 11 / 14 AS col1
----
-3085
0

query I rowsort
SELECT DISTINCT - - 96 + + 73 AS col0
----
169

query I rowsort
SELECT DISTINCT 89 + - 6 * 69
----
-325

onlyif mysql # aggregate syntax: 
query I rowsort label-4790
SELECT DISTINCT - COUNT( * ) + - 64 AS col0
----
-65

skipif mysql # not compatible
query I rowsort label-4790
SELECT DISTINCT - COUNT ( * ) + - 64 AS col0
----
-65

query I rowsort
SELECT ALL - - 21 + + + 78 AS col2
----
99

query I rowsort
SELECT ALL COALESCE ( - + 42, + + ( 91 ), 11 )
----
-42

query I rowsort
SELECT - 21 + ( 14 ) col0
----
-7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4794
SELECT - CAST( NULL AS SIGNED ) + + 29 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4794
SELECT - CAST ( NULL AS INTEGER ) + + 29 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4795
SELECT + 4 * - + 40 + + COUNT( * ) * 30
----
-130

skipif mysql # not compatible
query I rowsort label-4795
SELECT + 4 * - + 40 + + COUNT ( * ) * 30
----
-130

query II rowsort
SELECT ALL - 77 AS col2, 69
----
-77
69

query I rowsort
SELECT - 48 + - 7 AS col1
----
-55

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4798
SELECT COALESCE ( - + COALESCE ( + + 80, + - 34 DIV + - COUNT( * ), 53 ), + 31 - - 84 * 32 )
----
-80

skipif mysql # not compatible
query I rowsort label-4798
SELECT COALESCE ( - + COALESCE ( + + 80, + - 34 / + - COUNT ( * ), 53 ), + 31 - - 84 * 32 )
----
-80

query I rowsort
SELECT DISTINCT - + 79 - + 87
----
-166

query I rowsort
SELECT + ( 96 ) * 59 AS col1
----
5664

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4801
SELECT ALL 78 DIV - ( + COUNT( * ) ) AS col1
----
-78

skipif mysql # not compatible
query I rowsort label-4801
SELECT ALL 78 / - ( + COUNT ( * ) ) AS col1
----
-78

query I rowsort
SELECT ALL ( - 13 ) AS col1
----
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-4803
SELECT ALL ( + - MIN( - - 33 ) ) AS col2
----
-33

skipif mysql # not compatible
query I rowsort label-4803
SELECT ALL ( + - MIN ( - - 33 ) ) AS col2
----
-33

onlyif mysql # DIV for integer division: 
query I rowsort label-4804
SELECT + 60 + - ( 1 ) * - + 41 DIV + - COALESCE ( + 58, + 97 - - 77 )
----
60

skipif mysql # not compatible
query I rowsort label-4804
SELECT + 60 + - ( 1 ) * - + 41 / + - COALESCE ( + 58, + 97 - - 77 )
----
60

onlyif mysql # DIV for integer division: 
query I rowsort label-4805
SELECT DISTINCT 24 DIV - - 48 * - 83 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4805
SELECT DISTINCT 24 / - - 48 * - 83 AS col1
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4806
SELECT + 36 + + - COUNT( * ) DIV - - 74 AS col2
----
36

skipif mysql # not compatible
query I rowsort label-4806
SELECT + 36 + + - COUNT ( * ) / - - 74 AS col2
----
36

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4807
SELECT ALL COUNT( * ) DIV + 18 * 76 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4807
SELECT ALL COUNT ( * ) / + 18 * 76 AS col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4808
SELECT - NULLIF ( 83, CASE + 7 WHEN + - 31 * - COUNT( * ) THEN - CAST( NULL AS SIGNED ) + COALESCE ( + - 94, COUNT( * ) ) END * + + ( 86 ) * - + 18 - 6 ) DIV + - 11 + - - CASE 1 WHEN - + 47 THEN NULL WHEN COALESCE ( CAST( - NULLIF ( 31, - 69 ) AS SIGNED ), 77, 54 ) THEN NULL ELSE - ( 72 ) * 21 + 88 * - - ( COUNT( * ) ) END DIV + 56 + 28
----
10

skipif mysql # not compatible
query I rowsort label-4808
SELECT - NULLIF ( 83, CASE + 7 WHEN + - 31 * - COUNT ( * ) THEN - CAST ( NULL AS INTEGER ) + COALESCE ( + - 94, COUNT ( * ) ) END * + + ( 86 ) * - + 18 - 6 ) / + - 11 + - - CASE 1 WHEN - + 47 THEN NULL WHEN COALESCE ( CAST ( - NULLIF ( 31, - 69 ) AS INTEGER ), 77, 54 ) THEN NULL ELSE - ( 72 ) * 21 + 88 * - - ( COUNT ( * ) ) END / + 56 + 28
----
10

onlyif mysql # DIV for integer division: 
query I rowsort label-4809
SELECT + 54 DIV - 54 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-4809
SELECT + 54 / - 54 AS col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4810
SELECT ALL 36 * - 72 * - SUM( - 56 )
----
-145152

skipif mysql # not compatible
query I rowsort label-4810
SELECT ALL 36 * - 72 * - SUM ( - 56 )
----
-145152

onlyif mysql # aggregate syntax: 
query I rowsort label-4811
SELECT + 0 * - + COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-4811
SELECT + 0 * - + COUNT ( * )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4812
SELECT + COUNT( * ) + - - 67 + - 13
----
55

skipif mysql # not compatible
query I rowsort label-4812
SELECT + COUNT ( * ) + - - 67 + - 13
----
55

onlyif mysql # DIV for integer division: 
query I rowsort label-4813
SELECT + 18 DIV - 25 * - 58
----
0

skipif mysql # not compatible
query I rowsort label-4813
SELECT + 18 / - 25 * - 58
----
0

query I rowsort
SELECT - 82 + 38 AS col1
----
-44

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4815
SELECT DISTINCT COUNT( * ) * + 27 * + CAST( - + 86 AS SIGNED ) AS col2
----
-2322

skipif mysql # not compatible
query I rowsort label-4815
SELECT DISTINCT COUNT ( * ) * + 27 * + CAST ( - + 86 AS INTEGER ) AS col2
----
-2322

query II rowsort
SELECT ( - 74 ), + 86 col1
----
-74
86

onlyif mysql # aggregate syntax: 
query I rowsort label-4817
SELECT DISTINCT + COALESCE ( 38, 75, + 56 + - NULLIF ( COUNT( * ), - ( 31 ) ) ) AS col2
----
38

skipif mysql # not compatible
query I rowsort label-4817
SELECT DISTINCT + COALESCE ( 38, 75, + 56 + - NULLIF ( COUNT ( * ), - ( 31 ) ) ) AS col2
----
38

query I rowsort
SELECT + 64 * - - 59 AS col0
----
3776

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4819
SELECT ALL + 85 * + ( + CAST( 27 AS SIGNED ) ) * - - 36 - - - COUNT( ALL 59 ) - CAST( + 6 AS SIGNED ) + + + COUNT( - 55 ) AS col1
----
82614

skipif mysql # not compatible
query I rowsort label-4819
SELECT ALL + 85 * + ( + CAST ( 27 AS INTEGER ) ) * - - 36 - - - COUNT ( ALL 59 ) - CAST ( + 6 AS INTEGER ) + + + COUNT ( - 55 ) AS col1
----
82614

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4820
SELECT ALL - CAST( NULL AS SIGNED ) * + + 60 / + 89 * + 18 + + 70
----
NULL

skipif mysql # not compatible
query I rowsort label-4820
SELECT ALL - CAST ( NULL AS INTEGER ) * + + 60 / + 89 * + 18 + + 70
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4821
SELECT - 94 * 44 * + + 54 - + + 41 + + 31 * - - COUNT( * ) DIV 40
----
-223385

skipif mysql # not compatible
query I rowsort label-4821
SELECT - 94 * 44 * + + 54 - + + 41 + + 31 * - - COUNT ( * ) / 40
----
-223385

onlyif mysql # aggregate syntax: 
query I rowsort label-4822
SELECT + MIN( 48 ) + 11 + COUNT( * ) * - - 81
----
140

skipif mysql # not compatible
query I rowsort label-4822
SELECT + MIN ( 48 ) + 11 + COUNT ( * ) * - - 81
----
140

query I rowsort
SELECT - - 19 + 59 col1
----
78

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4824
SELECT DISTINCT COUNT( * ) * - + 63 DIV + + 78 - - 70 * MAX( DISTINCT + 37 ) AS col2
----
2590

skipif mysql # not compatible
query I rowsort label-4824
SELECT DISTINCT COUNT ( * ) * - + 63 / + + 78 - - 70 * MAX ( DISTINCT + 37 ) AS col2
----
2590

onlyif mysql # aggregate syntax: 
query I rowsort label-4825
SELECT - + 86 * - COUNT( * ) + 91
----
177

skipif mysql # not compatible
query I rowsort label-4825
SELECT - + 86 * - COUNT ( * ) + 91
----
177

onlyif mysql # aggregate syntax: 
query I rowsort label-4826
SELECT + - MIN( DISTINCT - - 85 )
----
-85

skipif mysql # not compatible
query I rowsort label-4826
SELECT + - MIN ( DISTINCT - - 85 )
----
-85

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4827
SELECT ALL 81 * 67 + - - 85 + - 11 * - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4827
SELECT ALL 81 * 67 + - - 85 + - 11 * - CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4828
SELECT + 91 DIV + 28 AS col2
----
3

skipif mysql # not compatible
query I rowsort label-4828
SELECT + 91 / + 28 AS col2
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4829
SELECT + 23 * - 4 + - - COUNT( * )
----
-91

skipif mysql # not compatible
query I rowsort label-4829
SELECT + 23 * - 4 + - - COUNT ( * )
----
-91

query I rowsort
SELECT - 79 * - 56 AS col1
----
4424

onlyif mysql # DIV for integer division: 
query I rowsort label-4831
SELECT ALL + 15 DIV ( + 86 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4831
SELECT ALL + 15 / ( + 86 ) AS col2
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4832
SELECT - ( + - COALESCE ( + COUNT( * ), + - 52 * - + 35 DIV - 20 ) ) + - COUNT( * ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4832
SELECT - ( + - COALESCE ( + COUNT ( * ), + - 52 * - + 35 / - 20 ) ) + - COUNT ( * ) AS col1
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-4833
SELECT ALL ( + 12 ), - 46 DIV - + 1 + - - 45 AS col1
----
12
91

skipif mysql # not compatible
query II rowsort label-4833
SELECT ALL ( + 12 ), - 46 / - + 1 + - - 45 AS col1
----
12
91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4834
SELECT - - 18 * + 24 col2, - CAST( + COUNT( * ) AS SIGNED ) AS col1
----
432
-1

skipif mysql # not compatible
query II rowsort label-4834
SELECT - - 18 * + 24 col2, - CAST ( + COUNT ( * ) AS INTEGER ) AS col1
----
432
-1

query I rowsort
SELECT - 46 * - 58
----
2668

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4836
SELECT ALL + - COUNT( * ) * + COUNT( * ) + - CASE + CAST( NULL AS SIGNED ) WHEN - - 86 * 58 - 37 THEN - - COUNT( * ) ELSE - + 33 * - ( + - COUNT( * ) ) * + 14 END AS col1
----
461

skipif mysql # not compatible
query I rowsort label-4836
SELECT ALL + - COUNT ( * ) * + COUNT ( * ) + - CASE + CAST ( NULL AS INTEGER ) WHEN - - 86 * 58 - 37 THEN - - COUNT ( * ) ELSE - + 33 * - ( + - COUNT ( * ) ) * + 14 END AS col1
----
461

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4837
SELECT CAST( + - 1 AS SIGNED )
----
-1

skipif mysql # not compatible
query I rowsort label-4837
SELECT CAST ( + - 1 AS INTEGER )
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4838
SELECT ALL 89 * 58 + 96 - + COUNT( * ) + CAST( NULL AS DECIMAL ) / + CAST( 72 AS DECIMAL ) + + 24 + - 4 + - + 78 * CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4838
SELECT ALL 89 * 58 + 96 - + COUNT ( * ) + CAST ( NULL AS REAL ) / + CAST ( 72 AS REAL ) + + 24 + - 4 + - + 78 * CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4839
SELECT ALL ( - 92 ) AS col2, - 68 + - NULLIF ( - COUNT( * ), + + 6 * COUNT( * ) + 21 * 40 )
----
-92
-67

skipif mysql # not compatible
query II rowsort label-4839
SELECT ALL ( - 92 ) AS col2, - 68 + - NULLIF ( - COUNT ( * ), + + 6 * COUNT ( * ) + 21 * 40 )
----
-92
-67

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4840
SELECT ALL CAST( + 95 AS SIGNED ) AS col1
----
95

skipif mysql # not compatible
query I rowsort label-4840
SELECT ALL CAST ( + 95 AS INTEGER ) AS col1
----
95

query I rowsort
SELECT + 13 * - COALESCE ( - 6, - 8 )
----
78

query I rowsort
SELECT ALL + 54 * + 88 AS col1
----
4752

onlyif mysql # aggregate syntax: 
query I rowsort label-4843
SELECT + SUM( DISTINCT - + 13 ) * - 34 * - COUNT( * ) AS col2
----
-442

skipif mysql # not compatible
query I rowsort label-4843
SELECT + SUM ( DISTINCT - + 13 ) * - 34 * - COUNT ( * ) AS col2
----
-442

query II rowsort
SELECT ALL 60 AS col2, + 98
----
60
98

onlyif mysql # DIV for integer division: 
query I rowsort label-4845
SELECT - 94 - - + 16 DIV - 46 AS col1
----
-94

skipif mysql # not compatible
query I rowsort label-4845
SELECT - 94 - - + 16 / - 46 AS col1
----
-94

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4846
SELECT ALL CAST( - 23 AS SIGNED ) AS col1
----
-23

skipif mysql # not compatible
query I rowsort label-4846
SELECT ALL CAST ( - 23 AS INTEGER ) AS col1
----
-23

onlyif mysql # aggregate syntax: 
query II rowsort label-4847
SELECT ALL 65 + 76 * 18 AS col0, COUNT( 96 )
----
1433
1

skipif mysql # not compatible
query II rowsort label-4847
SELECT ALL 65 + 76 * 18 AS col0, COUNT ( 96 )
----
1433
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4848
SELECT DISTINCT - CAST( - + COUNT( * ) AS SIGNED ) + - - CAST( - - ( 24 ) AS SIGNED ) * 59
----
1417

skipif mysql # not compatible
query I rowsort label-4848
SELECT DISTINCT - CAST ( - + COUNT ( * ) AS INTEGER ) + - - CAST ( - - ( 24 ) AS INTEGER ) * 59
----
1417

query I rowsort
SELECT ALL 58 * - 21
----
-1218

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4850
SELECT + MIN( + 38 ) DIV ( + MAX( ALL - 44 ) )
----
0

skipif mysql # not compatible
query I rowsort label-4850
SELECT + MIN ( + 38 ) / ( + MAX ( ALL - 44 ) )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4851
SELECT DISTINCT ( + + 55 ) + - CAST( - 95 AS SIGNED ) col0
----
150

skipif mysql # not compatible
query I rowsort label-4851
SELECT DISTINCT ( + + 55 ) + - CAST ( - 95 AS INTEGER ) col0
----
150

query I rowsort
SELECT 29 + 24
----
53

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4853
SELECT - 27 AS col1, + 21 DIV - COUNT( * )
----
-27
-21

skipif mysql # not compatible
query II rowsort label-4853
SELECT - 27 AS col1, + 21 / - COUNT ( * )
----
-27
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-4854
SELECT COUNT( * ) + - 90 AS col2
----
-89

skipif mysql # not compatible
query I rowsort label-4854
SELECT COUNT ( * ) + - 90 AS col2
----
-89

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4855
SELECT + 40 DIV - 92 - SUM( - 64 )
----
64

skipif mysql # not compatible
query I rowsort label-4855
SELECT + 40 / - 92 - SUM ( - 64 )
----
64

query I rowsort
SELECT ALL 22 * + 63 AS col1
----
1386

onlyif mysql # aggregate syntax: 
query I rowsort label-4857
SELECT DISTINCT 81 + + COUNT( * ) AS col2
----
82

skipif mysql # not compatible
query I rowsort label-4857
SELECT DISTINCT 81 + + COUNT ( * ) AS col2
----
82

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4858
SELECT COUNT( * ) * 44 * + - ( + - 28 ) + + + CASE 88 WHEN + + 61 THEN - 19 + + ( + 36 ) + + CASE - 15 WHEN + 13 * + 72 THEN + + COUNT( * ) ELSE + - 0 * - - 43 + + - 19 END + - CASE - 22 WHEN + - COUNT( * ) / - 82 - - COUNT( * ) THEN NULL WHEN - CAST( + - 86 AS SIGNED ) * 93 THEN - 30 ELSE - 1 END * - 0 WHEN + 43 + - + 43 - + 74 THEN + COUNT( * ) * - + COALESCE ( + 94, 77 + 75 ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-4858
SELECT COUNT ( * ) * 44 * + - ( + - 28 ) + + + CASE 88 WHEN + + 61 THEN - 19 + + ( + 36 ) + + CASE - 15 WHEN + 13 * + 72 THEN + + COUNT ( * ) ELSE + - 0 * - - 43 + + - 19 END + - CASE - 22 WHEN + - COUNT ( * ) / - 82 - - COUNT ( * ) THEN NULL WHEN - CAST ( + - 86 AS INTEGER ) * 93 THEN - 30 ELSE - 1 END * - 0 WHEN + 43 + - + 43 - + 74 THEN + COUNT ( * ) * - + COALESCE ( + 94, 77 + 75 ) ELSE NULL END
----
NULL

query I rowsort
SELECT DISTINCT - - 22 col0
----
22

query I rowsort
SELECT DISTINCT - 29 + + + 22 AS col0
----
-7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4861
SELECT ALL + MIN( DISTINCT CAST( NULL AS SIGNED ) ) * - 5 * + 69 + 15 / + COUNT( + 67 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4861
SELECT ALL + MIN ( DISTINCT CAST ( NULL AS INTEGER ) ) * - 5 * + 69 + 15 / + COUNT ( + 67 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4862
SELECT ALL + 96 + MAX( + + 31 ) * 60
----
1956

skipif mysql # not compatible
query I rowsort label-4862
SELECT ALL + 96 + MAX ( + + 31 ) * 60
----
1956

query I rowsort
SELECT + 14 + + 80 * - 42 AS col0
----
-3346

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4864
SELECT ALL - CAST( + 52 AS SIGNED ) * + - 48 col1, - ( - 45 ) col0
----
2496
45

skipif mysql # not compatible
query II rowsort label-4864
SELECT ALL - CAST ( + 52 AS INTEGER ) * + - 48 col1, - ( - 45 ) col0
----
2496
45

query II rowsort
SELECT DISTINCT - + 71, 55 + + ( + 50 ) AS col0
----
-71
105

onlyif mysql # aggregate syntax: 
query I rowsort label-4866
SELECT ALL 11 - + + COUNT( * ) AS col0
----
10

skipif mysql # not compatible
query I rowsort label-4866
SELECT ALL 11 - + + COUNT ( * ) AS col0
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-4867
SELECT - 80 * + MAX( DISTINCT - NULLIF ( - 82, 10 ) ) * + 88 * + 8 * - 31 - COUNT( ALL + + 66 ) * COUNT( 10 ) AS col1
----
143165439

skipif mysql # not compatible
query I rowsort label-4867
SELECT - 80 * + MAX ( DISTINCT - NULLIF ( - 82, 10 ) ) * + 88 * + 8 * - 31 - COUNT ( ALL + + 66 ) * COUNT ( 10 ) AS col1
----
143165439

query I rowsort
SELECT DISTINCT 38 * - - 13
----
494

query II rowsort
SELECT + + 4, + 64 col2
----
4
64

query I rowsort
SELECT 72 * - 96 - + ( - 41 ) AS col0
----
-6871

onlyif mysql # aggregate syntax: 
query I rowsort label-4871
SELECT ALL + 8 * - NULLIF ( - 83, - CASE SUM( 43 ) WHEN + 61 THEN NULL WHEN - - 85 THEN - + COUNT( * ) ELSE NULL END ) AS col1
----
664

skipif mysql # not compatible
query I rowsort label-4871
SELECT ALL + 8 * - NULLIF ( - 83, - CASE SUM ( 43 ) WHEN + 61 THEN NULL WHEN - - 85 THEN - + COUNT ( * ) ELSE NULL END ) AS col1
----
664

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4872
SELECT ALL 22 * + CAST( - + MAX( - 65 ) AS SIGNED ) * - - CAST( + + 9 AS SIGNED ) + - + 66 col1
----
12804

skipif mysql # not compatible
query I rowsort label-4872
SELECT ALL 22 * + CAST ( - + MAX ( - 65 ) AS INTEGER ) * - - CAST ( + + 9 AS INTEGER ) + - + 66 col1
----
12804

onlyif mysql # aggregate syntax: 
query I rowsort label-4873
SELECT MIN( DISTINCT 15 ) + + - 15
----
0

skipif mysql # not compatible
query I rowsort label-4873
SELECT MIN ( DISTINCT 15 ) + + - 15
----
0

query I rowsort
SELECT 40 - - 49 AS col1
----
89

query I rowsort
SELECT 43 * - - 16
----
688

query II rowsort
SELECT ALL 46 col1, 47 + 51
----
46
98

query I rowsort
SELECT 14 + + + 29 AS col2
----
43

query I rowsort
SELECT 50 - + 34
----
16

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4879
SELECT 24 DIV + - ( + COUNT( * ) ) AS col1
----
-24

skipif mysql # not compatible
query I rowsort label-4879
SELECT 24 / + - ( + COUNT ( * ) ) AS col1
----
-24

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4880
SELECT ALL - CAST( + - 68 AS SIGNED ) * + + 56 * - 98 * - 85 / + - COUNT( ALL + 4 ) * + + COUNT( - - 0 ) / + 79 * - CASE COUNT( * ) WHEN 68 * + + 24 / - 6 + 68 THEN + 74 + - 29 WHEN + ( 52 ) THEN NULL END + + - AVG ( + 1 ) * - + 83 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4880
SELECT ALL - CAST ( + - 68 AS INTEGER ) * + + 56 * - 98 * - 85 / + - COUNT ( ALL + 4 ) * + + COUNT ( - - 0 ) / + 79 * - CASE COUNT ( * ) WHEN 68 * + + 24 / - 6 + 68 THEN + 74 + - 29 WHEN + ( 52 ) THEN NULL END + + - AVG ( + 1 ) * - + 83 AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4881
SELECT ALL - 23 DIV + 9 col1
----
-2

skipif mysql # not compatible
query I rowsort label-4881
SELECT ALL - 23 / + 9 col1
----
-2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4882
SELECT 40 + - 30 + - - CAST( NULL AS SIGNED ) / + 42 - - 48 + - + COUNT( * ) / - 10 + 71
----
NULL

skipif mysql # not compatible
query I rowsort label-4882
SELECT 40 + - 30 + - - CAST ( NULL AS INTEGER ) / + 42 - - 48 + - + COUNT ( * ) / - 10 + 71
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4883
SELECT ALL + 23 * + COUNT( * )
----
23

skipif mysql # not compatible
query I rowsort label-4883
SELECT ALL + 23 * + COUNT ( * )
----
23

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4884
SELECT ALL - CASE 3 WHEN + ( - 52 ) + + 76 + - COUNT( * ) - - - MIN( ALL - + 11 ) * - 84 * - CAST( + - 35 AS SIGNED ) * COUNT( * ) + - - ( + 75 ) + + 69 / - 84 * 7 THEN NULL ELSE + MAX( - 69 ) END + + 34 AS col2
----
103

skipif mysql # not compatible
query I rowsort label-4884
SELECT ALL - CASE 3 WHEN + ( - 52 ) + + 76 + - COUNT ( * ) - - - MIN ( ALL - + 11 ) * - 84 * - CAST ( + - 35 AS INTEGER ) * COUNT ( * ) + - - ( + 75 ) + + 69 / - 84 * 7 THEN NULL ELSE + MAX ( - 69 ) END + + 34 AS col2
----
103

query I rowsort
SELECT 59 + CASE - + 94 WHEN + NULLIF ( + 5, + 14 ) * 48 THEN NULL ELSE - + 13 END
----
46

query I rowsort
SELECT ALL + 32 + + 11 AS col2
----
43

query I rowsort
SELECT ALL + 23 * - - 43 AS col0
----
989

query I rowsort
SELECT 49 * + - 10 AS col0
----
-490

onlyif mysql # DIV for integer division: 
query II rowsort label-4889
SELECT - 83 AS col0, - 76 DIV 64 AS col1
----
-83
-1

skipif mysql # not compatible
query II rowsort label-4889
SELECT - 83 AS col0, - 76 / 64 AS col1
----
-83
-1

query I rowsort
SELECT DISTINCT 16 + - - 25
----
41

query I rowsort
SELECT ALL 75 + - 1
----
74

onlyif mysql # DIV for integer division: 
query II rowsort label-4892
SELECT 39, 1 DIV + + 5 * 8 AS col0
----
39
0

skipif mysql # not compatible
query II rowsort label-4892
SELECT 39, 1 / + + 5 * 8 AS col0
----
39
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4893
SELECT 24 * - COUNT( * )
----
-24

skipif mysql # not compatible
query I rowsort label-4893
SELECT 24 * - COUNT ( * )
----
-24

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4894
SELECT ALL 37 * + 27 * - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4894
SELECT ALL 37 * + 27 * - CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4895
SELECT DISTINCT - + 77 AS col1, CAST( + 12 AS SIGNED ) DIV COUNT( DISTINCT + - 78 )
----
-77
12

skipif mysql # not compatible
query II rowsort label-4895
SELECT DISTINCT - + 77 AS col1, CAST ( + 12 AS INTEGER ) / COUNT ( DISTINCT + - 78 )
----
-77
12

query I rowsort
SELECT ALL - 39 - + 45
----
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-4897
SELECT DISTINCT SUM( ALL + 82 ) * - COUNT( * )
----
-82

skipif mysql # not compatible
query I rowsort label-4897
SELECT DISTINCT SUM ( ALL + 82 ) * - COUNT ( * )
----
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-4898
SELECT ALL - + ( + + MAX( ALL + - 0 ) ) - + 81
----
-81

skipif mysql # not compatible
query I rowsort label-4898
SELECT ALL - + ( + + MAX ( ALL + - 0 ) ) - + 81
----
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-4899
SELECT - COUNT( * ) * ( - - 20 ) + 44 * + - 96 - + 98 - + 92 col0
----
-4434

skipif mysql # not compatible
query I rowsort label-4899
SELECT - COUNT ( * ) * ( - - 20 ) + 44 * + - 96 - + 98 - + 92 col0
----
-4434

query I rowsort
SELECT ALL - 48 * - 30 AS col1
----
1440

query I rowsort
SELECT 34 + + 79 + 21
----
134

onlyif mysql # aggregate syntax: 
query I rowsort label-4902
SELECT + 78 * - COUNT( * ) AS col2
----
-78

skipif mysql # not compatible
query I rowsort label-4902
SELECT + 78 * - COUNT ( * ) AS col2
----
-78

query I rowsort
SELECT + CASE WHEN NOT - 39 IS NOT NULL THEN - 27 END AS col0
----
NULL

query I rowsort
SELECT 24 + NULLIF ( + + 14, 31 ) * + 29 * 95
----
38594

query II rowsort
SELECT ALL + 23 - - 42 AS col2, - ( - - 72 ) AS col0
----
65
-72

query I rowsort
SELECT 73 * - 34
----
-2482

query II rowsort
SELECT ALL + - 34 * - - 56 AS col1, 54 col2
----
-1904
54

query I rowsort
SELECT 43 * - ( + + 70 ) + 56 - 29 AS col1
----
-2983

query I rowsort
SELECT DISTINCT - 79 * + 97 + - + 29 col1
----
-7692

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4910
SELECT 59 AS col2, + 77 + - CAST( - 90 AS SIGNED ) * 68
----
59
6197

skipif mysql # not compatible
query II rowsort label-4910
SELECT 59 AS col2, + 77 + - CAST ( - 90 AS INTEGER ) * 68
----
59
6197

query II rowsort
SELECT ALL - + COALESCE ( + ( 27 ), - 34 ) AS col0, - ( + + 83 )
----
-27
-83

onlyif mysql # aggregate syntax: 
query II rowsort label-4912
SELECT ALL - COUNT( + + 66 ) AS col1, + 47 AS col1
----
-1
47

skipif mysql # not compatible
query II rowsort label-4912
SELECT ALL - COUNT ( + + 66 ) AS col1, + 47 AS col1
----
-1
47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4913
SELECT 50 + CAST( - + 14 AS SIGNED )
----
36

skipif mysql # not compatible
query I rowsort label-4913
SELECT 50 + CAST ( - + 14 AS INTEGER )
----
36

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4914
SELECT DISTINCT COUNT( * ) + CAST( NULL AS SIGNED ) / - COUNT( DISTINCT + 44 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4914
SELECT DISTINCT COUNT ( * ) + CAST ( NULL AS INTEGER ) / - COUNT ( DISTINCT + 44 ) AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4915
SELECT - 23 DIV COUNT( * ) DIV 77
----
0

skipif mysql # not compatible
query I rowsort label-4915
SELECT - 23 / COUNT ( * ) / 77
----
0

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-4916
SELECT + 35 - 62 + CAST( NULL AS SIGNED ) + + 94 * - CAST( NULL AS DECIMAL ), + 72 AS col0
----
NULL
72

skipif mysql # not compatible
query II rowsort label-4916
SELECT + 35 - 62 + CAST ( NULL AS INTEGER ) + + 94 * - CAST ( NULL AS REAL ), + 72 AS col0
----
NULL
72

onlyif mysql # DIV for integer division: 
query I rowsort label-4917
SELECT + 87 DIV 57 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-4917
SELECT + 87 / 57 AS col2
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4918
SELECT - 93 DIV COUNT( * ) AS col1
----
-93

skipif mysql # not compatible
query I rowsort label-4918
SELECT - 93 / COUNT ( * ) AS col1
----
-93

query II rowsort
SELECT - 5 * + 91, + 35 AS col1
----
-455
35

query I rowsort
SELECT ALL + 1 + 4 AS col1
----
5

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-4921
SELECT DISTINCT CASE - COUNT( * ) WHEN COUNT( * ) * + CAST( - 99 AS DECIMAL ) THEN - 66 WHEN - ( - 66 ) * + 73 THEN NULL WHEN 42 THEN 27 ELSE + 30 END AS col2, 1 col1
----
30
1

skipif mysql # not compatible
query II rowsort label-4921
SELECT DISTINCT CASE - COUNT ( * ) WHEN COUNT ( * ) * + CAST ( - 99 AS REAL ) THEN - 66 WHEN - ( - 66 ) * + 73 THEN NULL WHEN 42 THEN 27 ELSE + 30 END AS col2, 1 col1
----
30
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4922
SELECT DISTINCT 4 - + COUNT( * ) AS col2
----
3

skipif mysql # not compatible
query I rowsort label-4922
SELECT DISTINCT 4 - + COUNT ( * ) AS col2
----
3

onlyif mysql # DIV for integer division: 
query II rowsort label-4923
SELECT ALL + + 4 * - 89 AS col1, 99 DIV + 55
----
-356
1

skipif mysql # not compatible
query II rowsort label-4923
SELECT ALL + + 4 * - 89 AS col1, 99 / + 55
----
-356
1

onlyif mysql # aggregate syntax: 
query II rowsort label-4924
SELECT DISTINCT - - 41 - 51 + + + MAX( ALL 25 ) * COUNT( * ), - 59 AS col1
----
15
-59

skipif mysql # not compatible
query II rowsort label-4924
SELECT DISTINCT - - 41 - 51 + + + MAX ( ALL 25 ) * COUNT ( * ), - 59 AS col1
----
15
-59

query I rowsort
SELECT ALL + + 12 * 15
----
180

query I rowsort
SELECT - 3 * - - 49 + + ( - 55 )
----
-202

onlyif mysql # DIV for integer division: 
query I rowsort label-4927
SELECT + 95 DIV 73 - 2 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-4927
SELECT + 95 / 73 - 2 AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4928
SELECT - 71 * + MAX( ALL - 91 ) AS col2
----
6461

skipif mysql # not compatible
query I rowsort label-4928
SELECT - 71 * + MAX ( ALL - 91 ) AS col2
----
6461

query I rowsort
SELECT + 46 - + 77
----
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-4930
SELECT - 98 * + NULLIF ( MAX( - CASE + 37 WHEN + + 3 THEN 43 + + - 27 END ), + NULLIF ( - COALESCE ( - 30, - - COUNT( * ) ), - 25 ) + + 7 ) * COUNT( * ) * - + 69 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4930
SELECT - 98 * + NULLIF ( MAX ( - CASE + 37 WHEN + + 3 THEN 43 + + - 27 END ), + NULLIF ( - COALESCE ( - 30, - - COUNT ( * ) ), - 25 ) + + 7 ) * COUNT ( * ) * - + 69 col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4931
SELECT - ( + - COUNT( * ) ) + + + 95 AS col1
----
96

skipif mysql # not compatible
query I rowsort label-4931
SELECT - ( + - COUNT ( * ) ) + + + 95 AS col1
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-4932
SELECT DISTINCT + - NULLIF ( + COUNT( * ), - + 57 - - 82 * + 40 + + 46 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-4932
SELECT DISTINCT + - NULLIF ( + COUNT ( * ), - + 57 - - 82 * + 40 + + 46 ) AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4933
SELECT - SUM( ALL - + 46 )
----
46

skipif mysql # not compatible
query I rowsort label-4933
SELECT - SUM ( ALL - + 46 )
----
46

query I rowsort
SELECT + - CASE 99 WHEN - 3 THEN NULL ELSE - + 94 END
----
94

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4935
SELECT + CAST( + 75 AS SIGNED ) * 55 * 93 DIV + 51
----
7522

skipif mysql # not compatible
query I rowsort label-4935
SELECT + CAST ( + 75 AS INTEGER ) * 55 * 93 / + 51
----
7522

onlyif mysql # aggregate syntax: 
query I rowsort label-4936
SELECT + MAX( ALL + 40 ) AS col1
----
40

skipif mysql # not compatible
query I rowsort label-4936
SELECT + MAX ( ALL + 40 ) AS col1
----
40

query I rowsort
SELECT ALL + 41 * 88 + + 16
----
3624

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4938
SELECT ALL - COUNT( * ) * ( ( 55 ) ) * - - CAST( - 45 AS SIGNED ) * COUNT( * ) - 25 AS col0
----
2450

skipif mysql # not compatible
query I rowsort label-4938
SELECT ALL - COUNT ( * ) * ( ( 55 ) ) * - - CAST ( - 45 AS INTEGER ) * COUNT ( * ) - 25 AS col0
----
2450

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4939
SELECT ALL + CAST( NULL AS SIGNED ) * + 91 / - MAX( - 84 ) * + 81 + - 3 + - - 49 + - 9 + 64 - + + COUNT( * ) * - 11 - - AVG ( + - 77 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4939
SELECT ALL + CAST ( NULL AS INTEGER ) * + 91 / - MAX ( - 84 ) * + 81 + - 3 + - - 49 + - 9 + 64 - + + COUNT ( * ) * - 11 - - AVG ( + - 77 )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4940
SELECT + 47 * + - COUNT( * ) * + 72, 18 - + 54 AS col1
----
-3384
-36

skipif mysql # not compatible
query II rowsort label-4940
SELECT + 47 * + - COUNT ( * ) * + 72, 18 - + 54 AS col1
----
-3384
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-4941
SELECT ALL + 75 * - + ( - + ( + COUNT( * ) ) ) + + - 14 AS col0
----
61

skipif mysql # not compatible
query I rowsort label-4941
SELECT ALL + 75 * - + ( - + ( + COUNT ( * ) ) ) + + - 14 AS col0
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-4942
SELECT ALL ( - 46 ) * - + ( + - 19 ) + COUNT( * ) + - 69 + + COALESCE ( + 12, 11 )
----
-930

skipif mysql # not compatible
query I rowsort label-4942
SELECT ALL ( - 46 ) * - + ( + - 19 ) + COUNT ( * ) + - 69 + + COALESCE ( + 12, 11 )
----
-930

onlyif mysql # aggregate syntax: 
query I rowsort label-4943
SELECT - MAX( - 38 )
----
38

skipif mysql # not compatible
query I rowsort label-4943
SELECT - MAX ( - 38 )
----
38

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4944
SELECT - 35 + + COALESCE ( + NULLIF ( + COUNT( * ), 72 ), + + 80 * - 72 + - CAST( NULL AS SIGNED ) + + 5 DIV + MIN( ALL 94 ) - + 97 * - 7 * - 14 * + ( + - COUNT( * ) ) )
----
-34

skipif mysql # not compatible
query I rowsort label-4944
SELECT - 35 + + COALESCE ( + NULLIF ( + COUNT ( * ), 72 ), + + 80 * - 72 + - CAST ( NULL AS INTEGER ) + + 5 / + MIN ( ALL 94 ) - + 97 * - 7 * - 14 * + ( + - COUNT ( * ) ) )
----
-34

query I rowsort
SELECT + 17 - - - 35 AS col0
----
-18

query I rowsort
SELECT ALL 99 + - - 70 AS col2
----
169

query I rowsort
SELECT + 81 + - 7
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-4948
SELECT DISTINCT 93 * + 8 * + COUNT( * ) AS col1
----
744

skipif mysql # not compatible
query I rowsort label-4948
SELECT DISTINCT 93 * + 8 * + COUNT ( * ) AS col1
----
744

onlyif mysql # aggregate syntax: 
query I rowsort label-4949
SELECT ALL MAX( ALL - 6 )
----
-6

skipif mysql # not compatible
query I rowsort label-4949
SELECT ALL MAX ( ALL - 6 )
----
-6

query I rowsort
SELECT ALL 63 - - 60
----
123

query II rowsort
SELECT ALL NULLIF ( 93, + NULLIF ( + 12, - 5 + - - 83 ) * 28 * - 4 + - 3 ) AS col2, 4
----
93
4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4952
SELECT + 34 + + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4952
SELECT + 34 + + CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4953
SELECT ALL COALESCE ( 76, + 59 DIV + 8 + 50 ) AS col0
----
76

skipif mysql # not compatible
query I rowsort label-4953
SELECT ALL COALESCE ( 76, + 59 / + 8 + 50 ) AS col0
----
76

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4954
SELECT + COUNT( - - 28 ) * + 35 DIV 29 * + + 96 + - - 99 - 66 + + - 17 * + - 75
----
1404

skipif mysql # not compatible
query I rowsort label-4954
SELECT + COUNT ( - - 28 ) * + 35 / 29 * + + 96 + - - 99 - 66 + + - 17 * + - 75
----
1404

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4955
SELECT DISTINCT + COUNT( ALL - + CAST( + 30 AS DECIMAL ) )
----
1

skipif mysql # not compatible
query I rowsort label-4955
SELECT DISTINCT + COUNT ( ALL - + CAST ( + 30 AS REAL ) )
----
1

query I rowsort
SELECT + 56 * 30
----
1680

query II rowsort
SELECT ALL - 23, 95 AS col0
----
-23
95

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4958
SELECT ALL + 65 * CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4958
SELECT ALL + 65 * CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4959
SELECT DISTINCT 61 DIV - 55 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-4959
SELECT DISTINCT 61 / - 55 AS col2
----
-1

query I rowsort
SELECT ALL + + 66 col2
----
66

query I rowsort
SELECT + 51 * + - 45 + 75
----
-2220

onlyif mysql # aggregate syntax: 
query I rowsort label-4962
SELECT - + 26 * - COUNT( * )
----
26

skipif mysql # not compatible
query I rowsort label-4962
SELECT - + 26 * - COUNT ( * )
----
26

onlyif mysql # aggregate syntax: 
query II rowsort label-4963
SELECT - 84 * + 12 + + SUM( - CASE 68 WHEN + 82 THEN - 78 WHEN 74 THEN NULL ELSE NULL END ) - - + COALESCE ( + 78, 33 ), - 53 AS col1
----
NULL
-53

skipif mysql # not compatible
query II rowsort label-4963
SELECT - 84 * + 12 + + SUM ( - CASE 68 WHEN + 82 THEN - 78 WHEN 74 THEN NULL ELSE NULL END ) - - + COALESCE ( + 78, 33 ), - 53 AS col1
----
NULL
-53

onlyif mysql # aggregate syntax: 
query II rowsort label-4964
SELECT 14 AS col1, - COUNT( * ) AS col2
----
14
-1

skipif mysql # not compatible
query II rowsort label-4964
SELE