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
SELECT 14 AS col1, - COUNT ( * ) AS col2
----
14
-1

query I rowsort
SELECT ALL - - 67 * + 53
----
3551

onlyif mysql # DIV for integer division: 
query I rowsort label-4966
SELECT - + ( - - 68 ) DIV + 75 - - ( + - 45 ) AS col2
----
-45

skipif mysql # not compatible
query I rowsort label-4966
SELECT - + ( - - 68 ) / + 75 - - ( + - 45 ) AS col2
----
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-4967
SELECT - - COUNT( * ) + - 11 * 13 + 30 * COUNT( * )
----
-112

skipif mysql # not compatible
query I rowsort label-4967
SELECT - - COUNT ( * ) + - 11 * 13 + 30 * COUNT ( * )
----
-112

onlyif mysql # DIV for integer division: 
query I rowsort label-4968
SELECT DISTINCT - 13 DIV - 92 + - + 31
----
-31

skipif mysql # not compatible
query I rowsort label-4968
SELECT DISTINCT - 13 / - 92 + - + 31
----
-31

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4969
SELECT ALL + COUNT( * ), 3 DIV + 60 col2
----
1
0

skipif mysql # not compatible
query II rowsort label-4969
SELECT ALL + COUNT ( * ), 3 / + 60 col2
----
1
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4970
SELECT DISTINCT - - 74 DIV + + 48 + - COUNT( * ) + + + 48 + - + 49
----
-1

skipif mysql # not compatible
query I rowsort label-4970
SELECT DISTINCT - - 74 / + + 48 + - COUNT ( * ) + + + 48 + - + 49
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4971
SELECT ( - NULLIF ( + 4, 53 * + COALESCE ( - MAX( ALL + + 11 ), + 9 ) + + 57 + + 85 + 34 ) ) AS col1
----
-4

skipif mysql # not compatible
query I rowsort label-4971
SELECT ( - NULLIF ( + 4, 53 * + COALESCE ( - MAX ( ALL + + 11 ), + 9 ) + + 57 + + 85 + 34 ) ) AS col1
----
-4

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4972
SELECT ALL 82 / + 80 / CASE - + 8 WHEN - 49 THEN + - 51 WHEN - 42 THEN + - 6 END + + + 23 - + 16, CAST( NULL AS SIGNED ) AS col0
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-4972
SELECT ALL 82 / + 80 / CASE - + 8 WHEN - 49 THEN + - 51 WHEN - 42 THEN + - 6 END + + + 23 - + 16, CAST ( NULL AS INTEGER ) AS col0
----
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4973
SELECT DISTINCT + 80 DIV + + 29 + 4 AS col1
----
6

skipif mysql # not compatible
query I rowsort label-4973
SELECT DISTINCT + 80 / + + 29 + 4 AS col1
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-4974
SELECT ALL + MAX( - 21 ) col0
----
-21

skipif mysql # not compatible
query I rowsort label-4974
SELECT ALL + MAX ( - 21 ) col0
----
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-4975
SELECT 37 * - 21 + - 87 * - 4 * + ( 65 ) + COUNT( * ) * - 35 - - 57 + + 78 * + 45 * + 41 * - 59 * + ( - 31 ) + 79 AS col2
----
263233334

skipif mysql # not compatible
query I rowsort label-4975
SELECT 37 * - 21 + - 87 * - 4 * + ( 65 ) + COUNT ( * ) * - 35 - - 57 + + 78 * + 45 * + 41 * - 59 * + ( - 31 ) + 79 AS col2
----
263233334

query I rowsort
SELECT 64 * + 96 + - 22
----
6122

query I rowsort
SELECT ALL + 73 * 75
----
5475

onlyif mysql # DIV for integer division: 
query I rowsort label-4978
SELECT DISTINCT - 19 + - + 63 * - 63 + + + 49 DIV - + 75
----
3950

skipif mysql # not compatible
query I rowsort label-4978
SELECT DISTINCT - 19 + - + 63 * - 63 + + + 49 / - + 75
----
3950

onlyif mysql # aggregate syntax: 
query I rowsort label-4979
SELECT ALL + 64 + + 29 - - + COUNT( * ) * + 55 + + 99 + MAX( ALL + + 28 )
----
275

skipif mysql # not compatible
query I rowsort label-4979
SELECT ALL + 64 + + 29 - - + COUNT ( * ) * + 55 + + 99 + MAX ( ALL + + 28 )
----
275

query I rowsort
SELECT ALL 0 - + 41 + 98 AS col2
----
57

query I rowsort
SELECT ALL 58 * 15 AS col0
----
870

query I rowsort
SELECT 58 * - - 50
----
2900

query I rowsort
SELECT DISTINCT - 19 - 60
----
-79

query I rowsort
SELECT DISTINCT + 56 * + 32
----
1792

onlyif mysql # aggregate syntax: 
query II rowsort label-4985
SELECT DISTINCT COUNT( * ) - 62, + ( + 60 ) col2
----
-61
60

skipif mysql # not compatible
query II rowsort label-4985
SELECT DISTINCT COUNT ( * ) - 62, + ( + 60 ) col2
----
-61
60

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4986
SELECT ALL NULLIF ( + 65, + + 81 ) - + 45 AS col1, - CASE + - 79 WHEN 48 * + - 53 + - - SUM( + 86 ) THEN NULL WHEN + - 85 THEN - COALESCE ( SUM( + 98 ), ( 21 ), - NULLIF ( - ( 53 ), + 77 ) + + MAX( DISTINCT - CAST( 65 AS SIGNED ) ) ) / - + COUNT( + + 89 ) + - 2 + + 16 * + 83 END
----
20
NULL

skipif mysql # not compatible
query II rowsort label-4986
SELECT ALL NULLIF ( + 65, + + 81 ) - + 45 AS col1, - CASE + - 79 WHEN 48 * + - 53 + - - SUM ( + 86 ) THEN NULL WHEN + - 85 THEN - COALESCE ( SUM ( + 98 ), ( 21 ), - NULLIF ( - ( 53 ), + 77 ) + + MAX ( DISTINCT - CAST ( 65 AS INTEGER ) ) ) / - + COUNT ( + + 89 ) + - 2 + + 16 * + 83 END
----
20
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4987
SELECT 64 - CASE + 74 WHEN - 35 / + MIN( 12 ) + + 66 THEN + 61 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-4987
SELECT 64 - CASE + 74 WHEN - 35 / + MIN ( 12 ) + + 66 THEN + 61 ELSE NULL END
----
NULL

query I rowsort
SELECT 0 * - 42 AS col2
----
0

query I rowsort
SELECT - 31 + + 80
----
49

query I rowsort
SELECT - COALESCE ( 89, - 84 - 65 + 73 ) AS col2
----
-89

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-4992
SELECT SUM( 41 ) - + + ( - - 47 )
----
-6

skipif mysql # not compatible
query I rowsort label-4992
SELECT SUM ( 41 ) - + + ( - - 47 )
----
-6

query I rowsort
SELECT ALL + 36 + 98 AS col2
----
134

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-4995
SELECT COUNT( ALL - 85 ) - + 10 AS col1
----
-9

skipif mysql # not compatible
query I rowsort label-4995
SELECT COUNT ( ALL - 85 ) - + 10 AS col1
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-4996
SELECT ALL MAX( 90 ) + - 17 AS col0
----
73

skipif mysql # not compatible
query I rowsort label-4996
SELECT ALL MAX ( 90 ) + - 17 AS col0
----
73

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-4998
SELECT - 47 + - - 16 + - + COUNT( * )
----
-32

skipif mysql # not compatible
query I rowsort label-4998
SELECT - 47 + - - 16 + - + COUNT ( * )
----
-32

onlyif mysql # DIV for integer division: 
query I rowsort label-4999
SELECT + 56 DIV - + 92 * + 69 + + 3 AS col1
----
3

skipif mysql # not compatible
query I rowsort label-4999
SELECT + 56 / - + 92 * + 69 + + 3 AS col1
----
3

query I rowsort
SELECT + ( 80 ) * - + 31 + 26
----
-2454

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

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

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

skipif mysql # not compatible
query I rowsort label-5002
SELECT ALL - NULLIF ( COUNT ( * ), 0 * + 0 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5003
SELECT ALL + 9 + - + COUNT( * )
----
8

skipif mysql # not compatible
query I rowsort label-5003
SELECT ALL + 9 + - + COUNT ( * )
----
8

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

query I rowsort
SELECT - 6 * 62 col2
----
-372

query I rowsort
SELECT DISTINCT 75 + ( - - 17 )
----
92

query II rowsort
SELECT 69 * - - 54 + - 94 AS col1, 13 AS col2
----
3632
13

onlyif mysql # DIV for integer division: 
query I rowsort label-5008
SELECT - 65 DIV - 6 + + 52 - + - 65 + + ( + NULLIF ( - 65, 41 ) ) AS col0
----
62

skipif mysql # not compatible
query I rowsort label-5008
SELECT - 65 / - 6 + + 52 - + - 65 + + ( + NULLIF ( - 65, 41 ) ) AS col0
----
62

query I rowsort
SELECT DISTINCT - 33 - 7
----
-40

query I rowsort
SELECT ALL + 78 * - 97 AS col0
----
-7566

onlyif mysql # aggregate syntax: 
query I rowsort label-5011
SELECT DISTINCT ( + 21 ) * ( + 97 ) + + COUNT( * ) AS col0
----
2038

skipif mysql # not compatible
query I rowsort label-5011
SELECT DISTINCT ( + 21 ) * ( + 97 ) + + COUNT ( * ) AS col0
----
2038

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

query I rowsort
SELECT + 20 * + + 39 * - 69 + + 64 + - - 75 AS col1
----
-53681

query I rowsort
SELECT DISTINCT - ( + - 92 ) col1
----
92

query I rowsort
SELECT 55 + + NULLIF ( 29, + 59 ) AS col0
----
84

query I rowsort
SELECT 58 * + 28 * + ( - COALESCE ( + NULLIF ( + 15, + 44 / + - 68 + + 9 ), + - 98, - - 86 ) ) * + 6
----
-146160

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5017
SELECT CAST( NULL AS SIGNED ) * + 53 + - 91 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5017
SELECT CAST ( NULL AS INTEGER ) * + 53 + - 91 AS col2
----
NULL

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5019
SELECT 83 + - 13 * + ( 81 DIV + 77 ) AS col1
----
70

skipif mysql # not compatible
query I rowsort label-5019
SELECT 83 + - 13 * + ( 81 / + 77 ) AS col1
----
70

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5020
SELECT DISTINCT COALESCE ( - 39, - 43 + + 42, + CASE + 62 WHEN - 32 THEN NULL WHEN - CASE COUNT( * ) WHEN + MIN( + 71 ) * - 36 THEN NULL WHEN + COUNT( * ) + + 21 THEN 14 END + + 53 THEN NULL WHEN + 89 THEN - 68 + + 9 DIV 16 END ) * - 98
----
3822

skipif mysql # not compatible
query I rowsort label-5020
SELECT DISTINCT COALESCE ( - 39, - 43 + + 42, + CASE + 62 WHEN - 32 THEN NULL WHEN - CASE COUNT ( * ) WHEN + MIN ( + 71 ) * - 36 THEN NULL WHEN + COUNT ( * ) + + 21 THEN 14 END + + 53 THEN NULL WHEN + 89 THEN - 68 + + 9 / 16 END ) * - 98
----
3822

query I rowsort
SELECT ALL ( + 58 ) + + 17
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-5022
SELECT NULLIF ( + 94, AVG ( - 69 ) + - 4 ) + - 28 * + COUNT( * )
----
66

skipif mysql # not compatible
query I rowsort label-5022
SELECT NULLIF ( + 94, AVG ( - 69 ) + - 4 ) + - 28 * + COUNT ( * )
----
66

query I rowsort
SELECT ALL + 8 * 34 col1
----
272

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5025
SELECT DISTINCT - SUM( DISTINCT + 23 ) + 35 * MAX( ALL 34 * 54 ) AS col0
----
64237

skipif mysql # not compatible
query I rowsort label-5025
SELECT DISTINCT - SUM ( DISTINCT + 23 ) + 35 * MAX ( ALL 34 * 54 ) AS col0
----
64237

onlyif mysql # aggregate syntax: 
query I rowsort label-5026
SELECT ALL 3 + - 38 * + ( + SUM( DISTINCT 15 ) ) col1
----
-567

skipif mysql # not compatible
query I rowsort label-5026
SELECT ALL 3 + - 38 * + ( + SUM ( DISTINCT 15 ) ) col1
----
-567

query I rowsort
SELECT 5 + + 82 AS col1
----
87

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

skipif mysql # not compatible
query I rowsort label-5028
SELECT DISTINCT 38 + CAST ( - 10 AS INTEGER )
----
28

query I rowsort
SELECT 53 + 21 * 81 AS col0
----
1754

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5031
SELECT ALL CAST( NULL AS DECIMAL ) + 83 * - 11 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5031
SELECT ALL CAST ( NULL AS REAL ) + 83 * - 11 AS col1
----
NULL

query I rowsort
SELECT COALESCE ( - 51, 85 * 79 ) * - 96
----
4896

onlyif mysql # aggregate syntax: 
query I rowsort label-5033
SELECT COALESCE ( MIN( 95 ), + 10 + 41 * + COUNT( * ) ) + + 86 col0
----
181

skipif mysql # not compatible
query I rowsort label-5033
SELECT COALESCE ( MIN ( 95 ), + 10 + 41 * + COUNT ( * ) ) + + 86 col0
----
181

query I rowsort
SELECT DISTINCT CASE + 69 WHEN 74 + - 85 THEN + 51 END * + 57 + 71
----
NULL

query I rowsort
SELECT DISTINCT ( - 22 ) * 63
----
-1386

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5036
SELECT + NULLIF ( 58, - 49 + 61 ) DIV - MAX( + 62 * + 67 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-5036
SELECT + NULLIF ( 58, - 49 + 61 ) / - MAX ( + 62 * + 67 ) AS col2
----
0

query I rowsort
SELECT + CASE - 61 WHEN 65 THEN - 1 WHEN - 33 * + 69 THEN NULL END AS col1
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5039
SELECT CASE 11 WHEN COUNT( * ) THEN 30 + - 88 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5039
SELECT CASE 11 WHEN COUNT ( * ) THEN 30 + - 88 END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5040
SELECT + COUNT( * ) + - 4
----
-3

skipif mysql # not compatible
query I rowsort label-5040
SELECT + COUNT ( * ) + - 4
----
-3

query I rowsort
SELECT DISTINCT 17 * + 95 - 87 AS col0
----
1528

onlyif mysql # aggregate syntax: 
query I rowsort label-5042
SELECT + CASE - 62 WHEN 28 THEN 41 WHEN 87 * - 42 THEN 90 * 34 ELSE NULL END * + NULLIF ( + 17 * - 4, - COUNT( ALL + 90 ) * - 39 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5042
SELECT + CASE - 62 WHEN 28 THEN 41 WHEN 87 * - 42 THEN 90 * 34 ELSE NULL END * + NULLIF ( + 17 * - 4, - COUNT ( ALL + 90 ) * - 39 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5043
SELECT + ( 70 ) * 33 + 1 * + COUNT( * )
----
2311

skipif mysql # not compatible
query I rowsort label-5043
SELECT + ( 70 ) * 33 + 1 * + COUNT ( * )
----
2311

onlyif mysql # aggregate syntax: 
query I rowsort label-5044
SELECT CASE + COUNT( * ) WHEN + 59 THEN + 87 END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5044
SELECT CASE + COUNT ( * ) WHEN + 59 THEN + 87 END col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5045
SELECT + MAX( 93 ) + 50
----
143

skipif mysql # not compatible
query I rowsort label-5045
SELECT + MAX ( 93 ) + 50
----
143

query I rowsort
SELECT + 59 + 3 * 68 AS col0
----
263

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5047
SELECT DISTINCT 82 / CAST( NULL AS SIGNED ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5047
SELECT DISTINCT 82 / CAST ( NULL AS INTEGER ) col2
----
NULL

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

skipif mysql # not compatible
query I rowsort label-5048
SELECT + 5 / - 77
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5049
SELECT - 11 DIV 59
----
0

skipif mysql # not compatible
query I rowsort label-5049
SELECT - 11 / 59
----
0

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5051
SELECT 38 * + CASE + COUNT( * ) WHEN + 8 THEN - 39 * + 39 + + AVG ( + 47 ) WHEN - 61 THEN NULL END + + 97
----
NULL

skipif mysql # not compatible
query I rowsort label-5051
SELECT 38 * + CASE + COUNT ( * ) WHEN + 8 THEN - 39 * + 39 + + AVG ( + 47 ) WHEN - 61 THEN NULL END + + 97
----
NULL

query I rowsort
SELECT - 87 * + 60
----
-5220

query I rowsort
SELECT - 5 + 24
----
19

query I rowsort
SELECT ALL + 39 * 39
----
1521

query I rowsort
SELECT DISTINCT + 30 + 45 * - 52
----
-2310

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

skipif mysql # not compatible
query I rowsort label-5056
SELECT - CAST ( + 67 AS INTEGER ) * - 16 AS col1
----
1072

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5058
SELECT ALL + ( - 21 ) + CAST( 46 AS SIGNED ) * 33
----
1497

skipif mysql # not compatible
query I rowsort label-5058
SELECT ALL + ( - 21 ) + CAST ( 46 AS INTEGER ) * 33
----
1497

query I rowsort
SELECT - - 14 * + NULLIF ( + 67, 14 )
----
938

query I rowsort
SELECT ALL + + 61 + 58 AS col0
----
119

query I rowsort
SELECT + + 3 - 40
----
-37

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5062
SELECT - + CASE + 99 WHEN COALESCE ( - CAST( 25 AS SIGNED ), NULLIF ( 21, CASE + 12 WHEN - 72 + - COUNT( - 74 ) THEN NULL ELSE 32 * - 25 END / 28 + + 25 ) - 88 ) THEN + 69 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5062
SELECT - + CASE + 99 WHEN COALESCE ( - CAST ( 25 AS INTEGER ), NULLIF ( 21, CASE + 12 WHEN - 72 + - COUNT ( - 74 ) THEN NULL ELSE 32 * - 25 END / 28 + + 25 ) - 88 ) THEN + 69 END AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5063
SELECT ALL + COALESCE ( 28, CAST( NULL AS SIGNED ) * COUNT( * ) - 45 * ( - 78 ), 37 ) + + COALESCE ( + SUM( DISTINCT + 41 ), - 62 * + 20 ) * - COUNT( * ) AS col0
----
-13

skipif mysql # not compatible
query I rowsort label-5063
SELECT ALL + COALESCE ( 28, CAST ( NULL AS INTEGER ) * COUNT ( * ) - 45 * ( - 78 ), 37 ) + + COALESCE ( + SUM ( DISTINCT + 41 ), - 62 * + 20 ) * - COUNT ( * ) AS col0
----
-13

query I rowsort
SELECT - + 53 + - 68
----
-121

query I rowsort
SELECT - 99 * COALESCE ( + ( 21 ), + 2 - + 54, 91 * 2 ) AS col1
----
-2079

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

skipif mysql # not compatible
query I rowsort label-5066
SELECT ALL - + MAX ( + 95 ) * COUNT ( * ) AS col2
----
-95

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5068
SELECT DISTINCT - 15 + + COUNT( ALL + 56 ) AS col2
----
-14

skipif mysql # not compatible
query I rowsort label-5068
SELECT DISTINCT - 15 + + COUNT ( ALL + 56 ) AS col2
----
-14

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5069
SELECT DISTINCT + + NULLIF ( - NULLIF ( 67, COALESCE ( 46, + 95 ) * CAST( - 48 AS DECIMAL ) ), 18 ) * 50
----
-3350

skipif mysql # not compatible
query I rowsort label-5069
SELECT DISTINCT + + NULLIF ( - NULLIF ( 67, COALESCE ( 46, + 95 ) * CAST ( - 48 AS REAL ) ), 18 ) * 50
----
-3350

query I rowsort
SELECT ALL - 82 * + 47 AS col2
----
-3854

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5071
SELECT DISTINCT NULLIF ( + 17, + COUNT( * ) ) DIV 15 col0
----
1

skipif mysql # not compatible
query I rowsort label-5071
SELECT DISTINCT NULLIF ( + 17, + COUNT ( * ) ) / 15 col0
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5072
SELECT ALL - COUNT( * ) - 48 DIV MIN( ALL - 4 ) AS col1
----
11

skipif mysql # not compatible
query I rowsort label-5072
SELECT ALL - COUNT ( * ) - 48 / MIN ( ALL - 4 ) AS col1
----
11

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

skipif mysql # not compatible
query I rowsort label-5073
SELECT - - COUNT ( * ) / - 47 col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5074
SELECT ALL + CASE 26 WHEN SUM( DISTINCT COALESCE ( - 12, - NULLIF ( + CAST( - 18 AS SIGNED ), - 68 ) ) ) / - 34 THEN NULL WHEN + 48 THEN NULL ELSE + COUNT( * ) + 90 END
----
91

skipif mysql # not compatible
query I rowsort label-5074
SELECT ALL + CASE 26 WHEN SUM ( DISTINCT COALESCE ( - 12, - NULLIF ( + CAST ( - 18 AS INTEGER ), - 68 ) ) ) / - 34 THEN NULL WHEN + 48 THEN NULL ELSE + COUNT ( * ) + 90 END
----
91

query I rowsort
SELECT - + 52 + 10
----
-42

query I rowsort
SELECT + ( 7 ) * + 84 AS col1
----
588

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5079
SELECT ALL MIN( ALL - 24 ) * - SUM( - ( 65 ) )
----
-1560

skipif mysql # not compatible
query I rowsort label-5079
SELECT ALL MIN ( ALL - 24 ) * - SUM ( - ( 65 ) )
----
-1560

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5080
SELECT + CASE + NULLIF ( - 80, 79 - 49 ) WHEN - COALESCE ( - CAST( NULL AS SIGNED ), + 14 - CAST( - 57 AS SIGNED ) ) + - 86 THEN NULL ELSE - 54 * - 35 END AS col2
----
1890

skipif mysql # not compatible
query I rowsort label-5080
SELECT + CASE + NULLIF ( - 80, 79 - 49 ) WHEN - COALESCE ( - CAST ( NULL AS INTEGER ), + 14 - CAST ( - 57 AS INTEGER ) ) + - 86 THEN NULL ELSE - 54 * - 35 END AS col2
----
1890

query I rowsort
SELECT ALL + NULLIF ( 10, 23 + - 60 / - 98 )
----
10

query I rowsort
SELECT ALL 29 * 52
----
1508

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5083
SELECT + 35 * + - MAX( - CAST( NULL AS SIGNED ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5083
SELECT + 35 * + - MAX ( - CAST ( NULL AS INTEGER ) ) AS col1
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5084
SELECT ALL 41 * CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-5084
SELECT ALL 41 * CAST ( NULL AS REAL )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5085
SELECT + MIN( - - 33 )
----
33

skipif mysql # not compatible
query I rowsort label-5085
SELECT + MIN ( - - 33 )
----
33

query I rowsort
SELECT + 12 * 99 + 3
----
1191

query I rowsort
SELECT + 99 + + - ( 38 ) + - 86
----
-25

query I rowsort
SELECT + 5 * + 5
----
25

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5089
SELECT + ( + + 68 ) + CAST( 63 AS SIGNED ) * + 14
----
950

skipif mysql # not compatible
query I rowsort label-5089
SELECT + ( + + 68 ) + CAST ( 63 AS INTEGER ) * + 14
----
950

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5091
SELECT DISTINCT + CASE - CAST( 75 AS SIGNED ) WHEN COUNT( * ) + ( COUNT( * ) ) THEN NULL WHEN 72 * + COUNT( * ) THEN + COUNT( * ) * 56 + 79 * + 12 END * - 93 + + 18 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5091
SELECT DISTINCT + CASE - CAST ( 75 AS INTEGER ) WHEN COUNT ( * ) + ( COUNT ( * ) ) THEN NULL WHEN 72 * + COUNT ( * ) THEN + COUNT ( * ) * 56 + 79 * + 12 END * - 93 + + 18 AS col0
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5093
SELECT ALL - 54 * - - COUNT( * ) + 23 AS col1
----
-31

skipif mysql # not compatible
query I rowsort label-5093
SELECT ALL - 54 * - - COUNT ( * ) + 23 AS col1
----
-31

query I rowsort
SELECT + 86 + + - 61 - + 58
----
-33

query I rowsort
SELECT + 0 + + 18 + 95
----
113

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5096
SELECT - CASE - 85 WHEN COUNT( * ) * 77 THEN - 95 WHEN MAX( ALL - CAST( - ( 98 ) AS SIGNED ) ) THEN NULL ELSE NULL END - 80 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5096
SELECT - CASE - 85 WHEN COUNT ( * ) * 77 THEN - 95 WHEN MAX ( ALL - CAST ( - ( 98 ) AS INTEGER ) ) THEN NULL ELSE NULL END - 80 AS col2
----
NULL

query I rowsort
SELECT + 13 + + 5 + - ( 79 ) col1
----
-61

query I rowsort
SELECT - 83 + + 13 + 47 * 18 AS col2
----
776

query I rowsort
SELECT ALL - + 58 * 80
----
-4640

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

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

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

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

query I rowsort
SELECT + - 91 * 9 AS col0
----
-819

query I rowsort
SELECT ALL - 85 * 29 * - 87 AS col2
----
214455

onlyif mysql # aggregate syntax: 
query I rowsort label-5104
SELECT ALL + COUNT( * ) - - ( 60 ) + + ( + 90 )
----
151

skipif mysql # not compatible
query I rowsort label-5104
SELECT ALL + COUNT ( * ) - - ( 60 ) + + ( + 90 )
----
151

onlyif mysql # aggregate syntax: 
query I rowsort label-5105
SELECT - + COUNT( * ) + 86 + 69 * 88 * ( MIN( + 53 ) * + 1 + 79 * 17 ) col2
----
8476597

skipif mysql # not compatible
query I rowsort label-5105
SELECT - + COUNT ( * ) + 86 + 69 * 88 * ( MIN ( + 53 ) * + 1 + 79 * 17 ) col2
----
8476597

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

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

query I rowsort
SELECT ALL NULLIF ( 48, 78 )
----
48

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5109
SELECT ALL - + NULLIF ( + 57, 43 * 13 ) DIV 28 AS col1
----
-2

skipif mysql # not compatible
query I rowsort label-5109
SELECT ALL - + NULLIF ( + 57, 43 * 13 ) / 28 AS col1
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-5110
SELECT COUNT( * ) + - 32 - 61
----
-92

skipif mysql # not compatible
query I rowsort label-5110
SELECT COUNT ( * ) + - 32 - 61
----
-92

query I rowsort
SELECT 94 + + ( 99 )
----
193

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5112
SELECT - 84, + 44 DIV - 16 + COUNT( * ) DIV 59 AS col0
----
-84
-2

skipif mysql # not compatible
query II rowsort label-5112
SELECT - 84, + 44 / - 16 + COUNT ( * ) / 59 AS col0
----
-84
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-5113
SELECT 52 * - COUNT( * ) AS col1
----
-52

skipif mysql # not compatible
query I rowsort label-5113
SELECT 52 * - COUNT ( * ) AS col1
----
-52

query I rowsort
SELECT ALL - 19 * - 54
----
1026

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

skipif mysql # not compatible
query I rowsort label-5115
SELECT ALL - ( 8 ) / - COUNT ( * ) col0
----
8

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

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

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

query II rowsort
SELECT ALL - 48, - 12 AS col0
----
-48
-12

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5119
SELECT + 8 DIV + COUNT( * ) + - 37 + ( ( 80 ) ) * - 84 AS col2
----
-6749

skipif mysql # not compatible
query I rowsort label-5119
SELECT + 8 / + COUNT ( * ) + - 37 + ( ( 80 ) ) * - 84 AS col2
----
-6749

query I rowsort
SELECT DISTINCT - COALESCE ( - 88, - + 77 ) AS col0
----
88

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5121
SELECT + COALESCE ( - - NULLIF ( - ( + ( 4 ) ), - COUNT( 72 ) * 59 ), 32 * + 95 ) * + CAST( NULL AS SIGNED ) - COALESCE ( + 36 + + 41, - 4, + ( - 75 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-5121
SELECT + COALESCE ( - - NULLIF ( - ( + ( 4 ) ), - COUNT ( 72 ) * 59 ), 32 * + 95 ) * + CAST ( NULL AS INTEGER ) - COALESCE ( + 36 + + 41, - 4, + ( - 75 ) )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5122
SELECT ALL - COALESCE ( + 98, + 31 * MIN( - CAST( NULL AS SIGNED ) * + 1 - + 19 ) + 39 )
----
-98

skipif mysql # not compatible
query I rowsort label-5122
SELECT ALL - COALESCE ( + 98, + 31 * MIN ( - CAST ( NULL AS INTEGER ) * + 1 - + 19 ) + 39 )
----
-98

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5125
SELECT SUM( + - 41 ) + + - NULLIF ( 65, 48 )
----
-106

skipif mysql # not compatible
query I rowsort label-5125
SELECT SUM ( + - 41 ) + + - NULLIF ( 65, 48 )
----
-106

query I rowsort
SELECT ALL 40 * + - 91 col0
----
-3640

query I rowsort
SELECT ALL - 12 + + 37 + + NULLIF ( 15, 32 ) AS col1
----
40

query I rowsort
SELECT DISTINCT + 75 * - 97
----
-7275

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5130
SELECT ALL + COUNT( * ) - - CASE 93 WHEN 83 * + 14 THEN NULL ELSE 45 END
----
46

skipif mysql # not compatible
query I rowsort label-5130
SELECT ALL + COUNT ( * ) - - CASE 93 WHEN 83 * + 14 THEN NULL ELSE 45 END
----
46

query I rowsort
SELECT ( + ( - 68 ) ) * 96 AS col2
----
-6528

query II rowsort
SELECT ALL 93 col0, 46 * 10 * + 63
----
93
28980

query I rowsort
SELECT DISTINCT - 93 - - 41 AS col0
----
-52

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

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

query I rowsort
SELECT ALL COALESCE ( - 96, - 62 )
----
-96

onlyif mysql # DIV for integer division: 
query I rowsort label-5136
SELECT 85 * + 87 - 4 DIV - 66
----
7395

skipif mysql # not compatible
query I rowsort label-5136
SELECT 85 * + 87 - 4 / - 66
----
7395

onlyif mysql # DIV for integer division: 
query I rowsort label-5137
SELECT - 83 DIV 73
----
-1

skipif mysql # not compatible
query I rowsort label-5137
SELECT - 83 / 73
----
-1

query I rowsort
SELECT + 23 * + 61 AS col0
----
1403

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5139
SELECT 19 + CASE + 6 WHEN COUNT( - 30 ) THEN - 8 WHEN CAST( NULL AS SIGNED ) + ( ( 7 ) ) THEN 22 * - 5 END + 28 * + 77 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5139
SELECT 19 + CASE + 6 WHEN COUNT ( - 30 ) THEN - 8 WHEN CAST ( NULL AS INTEGER ) + ( ( 7 ) ) THEN 22 * - 5 END + 28 * + 77 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5140
SELECT ( - 73 ) * + CASE - MAX( 5 ) WHEN 93 THEN 23 / 18 END * + COALESCE ( + 9, MAX( + 71 ), - 16 * + 11 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5140
SELECT ( - 73 ) * + CASE - MAX ( 5 ) WHEN 93 THEN 23 / 18 END * + COALESCE ( + 9, MAX ( + 71 ), - 16 * + 11 ) AS col0
----
NULL

query I rowsort
SELECT - ( - 81 ) + - 4 - + 82
----
-5

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5143
SELECT MIN( DISTINCT - 83 ) - 18 DIV + - 50
----
-83

skipif mysql # not compatible
query I rowsort label-5143
SELECT MIN ( DISTINCT - 83 ) - 18 / + - 50
----
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-5144
SELECT 74 * + COUNT( * ) * + - 93 AS col0
----
-6882

skipif mysql # not compatible
query I rowsort label-5144
SELECT 74 * + COUNT ( * ) * + - 93 AS col0
----
-6882

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5145
SELECT DISTINCT 65 * CAST( - 32 AS SIGNED )
----
-2080

skipif mysql # not compatible
query I rowsort label-5145
SELECT DISTINCT 65 * CAST ( - 32 AS INTEGER )
----
-2080

query I rowsort
SELECT ALL + 15 + + 46 - - + 55 * 64 - 23
----
3558

query I rowsort
SELECT CASE - 2 WHEN - - 87 THEN 77 ELSE NULL END * 8
----
NULL

query I rowsort
SELECT 67 + + 75
----
142

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5149
SELECT DISTINCT COALESCE ( + CASE - COUNT( * ) WHEN 59 THEN 40 WHEN 4 THEN NULL END, CAST( NULL AS SIGNED ), + COUNT( * ) ) * 94 + - 14 col1
----
80

skipif mysql # not compatible
query I rowsort label-5149
SELECT DISTINCT COALESCE ( + CASE - COUNT ( * ) WHEN 59 THEN 40 WHEN 4 THEN NULL END, CAST ( NULL AS INTEGER ), + COUNT ( * ) ) * 94 + - 14 col1
----
80

query I rowsort
SELECT ALL + 52 * 89 + - - 44 AS col2
----
4672

query I rowsort
SELECT DISTINCT + 71 * - 1 col0
----
-71

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5152
SELECT 2 * + CASE CAST( NULL AS SIGNED ) WHEN + ( 66 ) + 94 * CAST( + 87 AS DECIMAL ) THEN NULL ELSE 53 * COUNT( * ) + 6 * - 11 END
----
-26

skipif mysql # not compatible
query I rowsort label-5152
SELECT 2 * + CASE CAST ( NULL AS INTEGER ) WHEN + ( 66 ) + 94 * CAST ( + 87 AS REAL ) THEN NULL ELSE 53 * COUNT ( * ) + 6 * - 11 END
----
-26

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5154
SELECT 9 DIV 8 * CASE + NULLIF ( + CAST( - 45 AS SIGNED ), 89 ) WHEN - COUNT( ALL 28 ) - + ( - COUNT( + 22 ) ) * + 92 THEN NULL WHEN 39 * - COUNT( * ) THEN NULL ELSE + MAX( ALL + ( ( + 24 ) ) ) END AS col1
----
24

skipif mysql # not compatible
query I rowsort label-5154
SELECT 9 / 8 * CASE + NULLIF ( + CAST ( - 45 AS INTEGER ), 89 ) WHEN - COUNT ( ALL 28 ) - + ( - COUNT ( + 22 ) ) * + 92 THEN NULL WHEN 39 * - COUNT ( * ) THEN NULL ELSE + MAX ( ALL + ( ( + 24 ) ) ) END AS col1
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-5155
SELECT ALL COUNT( * ) * - SUM( DISTINCT 60 ) + + 58 AS col0
----
-2

skipif mysql # not compatible
query I rowsort label-5155
SELECT ALL COUNT ( * ) * - SUM ( DISTINCT 60 ) + + 58 AS col0
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-5156
SELECT + MIN( DISTINCT - - 94 ) + 56 AS col1
----
150

skipif mysql # not compatible
query I rowsort label-5156
SELECT + MIN ( DISTINCT - - 94 ) + 56 AS col1
----
150

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5157
SELECT ALL + 60 * + - 70 * - 75 + - - 80 DIV + 35 - - MIN( DISTINCT ( 62 ) )
----
315064

skipif mysql # not compatible
query I rowsort label-5157
SELECT ALL + 60 * + - 70 * - 75 + - - 80 / + 35 - - MIN ( DISTINCT ( 62 ) )
----
315064

onlyif mysql # aggregate syntax: 
query I rowsort label-5158
SELECT + SUM( DISTINCT 35 ) + + + COUNT( * )
----
36

skipif mysql # not compatible
query I rowsort label-5158
SELECT + SUM ( DISTINCT 35 ) + + + COUNT ( * )
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-5159
SELECT - 4 + + COALESCE ( + 69, COUNT( * ) * + COUNT( * ) ) AS col2
----
65

skipif mysql # not compatible
query I rowsort label-5159
SELECT - 4 + + COALESCE ( + 69, COUNT ( * ) * + COUNT ( * ) ) AS col2
----
65

query I rowsort
SELECT DISTINCT + COALESCE ( + 67, + 6 ) AS col1
----
67

query I rowsort
SELECT DISTINCT 57 * - 67 + NULLIF ( - 27, 36 )
----
-3846

onlyif mysql # aggregate syntax: 
query I rowsort label-5162
SELECT - MAX( ALL + + 96 ) * - COUNT( * ) - + 42 + 45 AS col0
----
99

skipif mysql # not compatible
query I rowsort label-5162
SELECT - MAX ( ALL + + 96 ) * - COUNT ( * ) - + 42 + 45 AS col0
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-5163
SELECT + 45 + + 30 + - + COUNT( * ) * - + 4
----
79

skipif mysql # not compatible
query I rowsort label-5163
SELECT + 45 + + 30 + - + COUNT ( * ) * - + 4
----
79

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5164
SELECT - + CAST( NULL AS SIGNED ) + COUNT( DISTINCT + 54 ) + - - 0 AS col1
----
NULL

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

query I rowsort
SELECT + - 8 * - - 55 + + ( 98 )
----
-342

query I rowsort
SELECT DISTINCT + 3 * + 37 * + - ( + + 85 ) AS col2
----
-9435

onlyif mysql # aggregate syntax: 
query I rowsort label-5167
SELECT COUNT( * ) * + 59 + ( + 34 ) AS col0
----
93

skipif mysql # not compatible
query I rowsort label-5167
SELECT COUNT ( * ) * + 59 + ( + 34 ) AS col0
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-5168
SELECT - + 64 * - COUNT( * ) * + 14
----
896

skipif mysql # not compatible
query I rowsort label-5168
SELECT - + 64 * - COUNT ( * ) * + 14
----
896

onlyif mysql # DIV for integer division: 
query I rowsort label-5169
SELECT + - 59 + - 15 + 87 DIV + - 83 AS col0
----
-75

skipif mysql # not compatible
query I rowsort label-5169
SELECT + - 59 + - 15 + 87 / + - 83 AS col0
----
-75

onlyif mysql # DIV for integer division: 
query I rowsort label-5170
SELECT - 20 DIV - 45 * - 53 + 69 AS col1
----
69

skipif mysql # not compatible
query I rowsort label-5170
SELECT - 20 / - 45 * - 53 + 69 AS col1
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-5171
SELECT DISTINCT + COALESCE ( + + COUNT( * ), + 76, + 67 ) * + 67 AS col2
----
67

skipif mysql # not compatible
query I rowsort label-5171
SELECT DISTINCT + COALESCE ( + + COUNT ( * ), + 76, + 67 ) * + 67 AS col2
----
67

query I rowsort
SELECT ALL + 9 + + 21 - - - 23
----
7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5173
SELECT + 47 + 4 + MIN( DISTINCT CASE - 37 WHEN 39 THEN - 68 ELSE - 41 * - 90 END ) DIV - 75 AS col2
----
2

skipif mysql # not compatible
query I rowsort label-5173
SELECT + 47 + 4 + MIN ( DISTINCT CASE - 37 WHEN 39 THEN - 68 ELSE - 41 * - 90 END ) / - 75 AS col2
----
2

query I rowsort
SELECT ALL 13 + - + 57 AS col0
----
-44

query I rowsort
SELECT + 18 + + 31
----
49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5176
SELECT + CAST( CAST( 9 AS SIGNED ) AS SIGNED ) + + 56 + 30 AS col1
----
95

skipif mysql # not compatible
query I rowsort label-5176
SELECT + CAST ( CAST ( 9 AS INTEGER ) AS INTEGER ) + + 56 + 30 AS col1
----
95

query I rowsort
SELECT ALL 77 + + 63 + + 27 - 11
----
156

onlyif mysql # DIV for integer division: 
query I rowsort label-5178
SELECT + 59 DIV 51 * + + 3
----
3

skipif mysql # not compatible
query I rowsort label-5178
SELECT + 59 / 51 * + + 3
----
3

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5180
SELECT - COALESCE ( + COUNT( * ), + - 73, - 81 )
----
-1

skipif mysql # not compatible
query I rowsort label-5180
SELECT - COALESCE ( + COUNT ( * ), + - 73, - 81 )
----
-1

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5182
SELECT ALL SUM( DISTINCT - 93 )
----
-93

skipif mysql # not compatible
query I rowsort label-5182
SELECT ALL SUM ( DISTINCT - 93 )
----
-93

query I rowsort
SELECT DISTINCT 76 + - 46 AS col1
----
30

query I rowsort
SELECT + 46 + - - 94 + + 92 + 92 * 24 + - 11 * + NULLIF ( + 23 * 28, 48 * - 44 )
----
-4644

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5185
SELECT + 5 * CAST( + 52 AS SIGNED ) * + + 27
----
7020

skipif mysql # not compatible
query I rowsort label-5185
SELECT + 5 * CAST ( + 52 AS INTEGER ) * + + 27
----
7020

onlyif mysql # aggregate syntax: 
query I rowsort label-5186
SELECT ALL COUNT( * ) * - CASE + 46 WHEN + 10 THEN + - ( - COUNT( * ) ) / COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-5186
SELECT ALL COUNT ( * ) * - CASE + 46 WHEN + 10 THEN + - ( - COUNT ( * ) ) / COUNT ( * ) END
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5188
SELECT ( - ( + MAX( DISTINCT 4 ) ) )
----
-4

skipif mysql # not compatible
query I rowsort label-5188
SELECT ( - ( + MAX ( DISTINCT 4 ) ) )
----
-4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5189
SELECT DISTINCT + SUM( ALL - CAST( - 17 AS SIGNED ) ) AS col2, 80 AS col1
----
17
80

skipif mysql # not compatible
query II rowsort label-5189
SELECT DISTINCT + SUM ( ALL - CAST ( - 17 AS INTEGER ) ) AS col2, 80 AS col1
----
17
80

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5190
SELECT - 61 DIV - 69 * 52 * - + 79 - + CASE + 65 WHEN + 55 + 1 THEN 34 * + 3 WHEN - ( COUNT( * ) ) THEN NULL ELSE + 80 * 37 + - 12 * - 79 END AS col1
----
-3908

skipif mysql # not compatible
query I rowsort label-5190
SELECT - 61 / - 69 * 52 * - + 79 - + CASE + 65 WHEN + 55 + 1 THEN 34 * + 3 WHEN - ( COUNT ( * ) ) THEN NULL ELSE + 80 * 37 + - 12 * - 79 END AS col1
----
-3908

onlyif mysql # aggregate syntax: 
query I rowsort label-5191
SELECT - COUNT( DISTINCT + 33 ) * - - 95 * + - 69 + + - 32 col0
----
6523

skipif mysql # not compatible
query I rowsort label-5191
SELECT - COUNT ( DISTINCT + 33 ) * - - 95 * + - 69 + + - 32 col0
----
6523

query I rowsort
SELECT ALL + 6 * + 80 + 5 - 37
----
448

query I rowsort
SELECT ALL - 63 * + - 93 + 3 - + - 30
----
5892

query I rowsort
SELECT - CASE + - 7 WHEN + 75 THEN 20 WHEN - - 91 THEN NULL ELSE + 94 END * 22
----
-2068

onlyif mysql # aggregate syntax: 
query I rowsort label-5195
SELECT NULLIF ( NULLIF ( + + 86, + COUNT( * ) ), - 89 + - 2 * COUNT( * ) ) AS col0
----
86

skipif mysql # not compatible
query I rowsort label-5195
SELECT NULLIF ( NULLIF ( + + 86, + COUNT ( * ) ), - 89 + - 2 * COUNT ( * ) ) AS col0
----
86

onlyif mysql # DIV for integer division: 
query I rowsort label-5196
SELECT ALL + + 1 * 88 - ( - 31 ) DIV - 46
----
88

skipif mysql # not compatible
query I rowsort label-5196
SELECT ALL + + 1 * 88 - ( - 31 ) / - 46
----
88

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

query I rowsort
SELECT + 59 * + - 83
----
-4897

query I rowsort
SELECT - - 54 * - 12 AS col0
----
-648

onlyif mysql # aggregate syntax: 
query I rowsort label-5200
SELECT + CASE + 2 WHEN + - 86 * 66 THEN - + ( + 66 ) + - 23 WHEN 53 + + COUNT( * ) * AVG ( 88 ) THEN 92 END
----
NULL

skipif mysql # not compatible
query I rowsort label-5200
SELECT + CASE + 2 WHEN + - 86 * 66 THEN - + ( + 66 ) + - 23 WHEN 53 + + COUNT ( * ) * AVG ( 88 ) THEN 92 END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5201
SELECT + ( - MIN( - 46 ) ) AS col1, - ( - 94 ) col1
----
46
94

skipif mysql # not compatible
query II rowsort label-5201
SELECT + ( - MIN ( - 46 ) ) AS col1, - ( - 94 ) col1
----
46
94

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5204
SELECT - + CASE COUNT( * ) WHEN + 55 / 51 / + 91 THEN + 22 WHEN ( + 93 ) * + 66 + + 58 THEN - 80 END * CASE - 78 WHEN + 18 * ( - 36 ) THEN 74 - 3 * 68 WHEN + 75 * 12 THEN - 82 + - 40 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5204
SELECT - + CASE COUNT ( * ) WHEN + 55 / 51 / + 91 THEN + 22 WHEN ( + 93 ) * + 66 + + 58 THEN - 80 END * CASE - 78 WHEN + 18 * ( - 36 ) THEN 74 - 3 * 68 WHEN + 75 * 12 THEN - 82 + - 40 END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5205
SELECT + 38 * + SUM( ALL - - 0 ) + - 86 - - - COUNT( * ) * - 26 - COALESCE ( + 43, - COALESCE ( 36, 81 + 26 ) * + 63, 73 * - 39 )
----
-103

skipif mysql # not compatible
query I rowsort label-5205
SELECT + 38 * + SUM ( ALL - - 0 ) + - 86 - - - COUNT ( * ) * - 26 - COALESCE ( + 43, - COALESCE ( 36, 81 + 26 ) * + 63, 73 * - 39 )
----
-103

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5207
SELECT - 89 + - + 16 - CASE + - 76 WHEN + 12 * + 26 * 17 THEN NULL WHEN 11 * - 22 + + COUNT( * ) THEN 27 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5207
SELECT - 89 + - + 16 - CASE + - 76 WHEN + 12 * + 26 * 17 THEN NULL WHEN 11 * - 22 + + COUNT ( * ) THEN 27 END AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5208
SELECT - COALESCE ( + NULLIF ( + + CAST( NULL AS SIGNED ), - - 47 - 69 ), - CAST( - 72 AS SIGNED ) * 87, - 70, + COUNT( * ) )
----
-6264

skipif mysql # not compatible
query I rowsort label-5208
SELECT - COALESCE ( + NULLIF ( + + CAST ( NULL AS INTEGER ), - - 47 - 69 ), - CAST ( - 72 AS INTEGER ) * 87, - 70, + COUNT ( * ) )
----
-6264

onlyif mysql # aggregate syntax: 
query I rowsort label-5209
SELECT - COALESCE ( + COUNT( * ), + + 48 * - 49 + + - 58 * + 44 )
----
-1

skipif mysql # not compatible
query I rowsort label-5209
SELECT - COALESCE ( + COUNT ( * ), + + 48 * - 49 + + - 58 * + 44 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5210
SELECT ALL + 97 + + 35 * COUNT( * )
----
132

skipif mysql # not compatible
query I rowsort label-5210
SELECT ALL + 97 + + 35 * COUNT ( * )
----
132

query I rowsort
SELECT - ( 52 ) + + 36
----
-16

query I rowsort
SELECT + 89 * 86 * - 51
----
-390354

onlyif mysql # aggregate syntax: 
query II rowsort label-5213
SELECT 35 AS col1, 9 + - + 56 - ( - ( - COUNT( * ) ) )
----
35
-48

skipif mysql # not compatible
query II rowsort label-5213
SELECT 35 AS col1, 9 + - + 56 - ( - ( - COUNT ( * ) ) )
----
35
-48

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

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

query I rowsort
SELECT ALL ( - 94 ) AS col2
----
-94

query I rowsort
SELECT ALL + 98 + 45 AS col2
----
143

query I rowsort
SELECT + 53 * ( 21 ) AS col2
----
1113

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5219
SELECT + 29 - - ( + 35 ) + - ( + 75 ) + + COUNT( * ) + + 97 AS col1
----
87

skipif mysql # not compatible
query I rowsort label-5219
SELECT + 29 - - ( + 35 ) + - ( + 75 ) + + COUNT ( * ) + + 97 AS col1
----
87

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5222
SELECT ALL 28 DIV - - 7 AS col0
----
4

skipif mysql # not compatible
query I rowsort label-5222
SELECT ALL 28 / - - 7 AS col0
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-5223
SELECT - ( 30 ) + + 3 - + 45 * + 8 * + MAX( + 59 ) col1
----
-21267

skipif mysql # not compatible
query I rowsort label-5223
SELECT - ( 30 ) + + 3 - + 45 * + 8 * + MAX ( + 59 ) col1
----
-21267

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5224
SELECT + 69 + 4 DIV + COUNT( * )
----
73

skipif mysql # not compatible
query I rowsort label-5224
SELECT + 69 + 4 / + COUNT ( * )
----
73

onlyif mysql # aggregate syntax: 
query II rowsort label-5225
SELECT + 87 * - - 87 * - 59 * + COUNT( * ), - 72 - + 51 AS col1
----
-446571
-123

skipif mysql # not compatible
query II rowsort label-5225
SELECT + 87 * - - 87 * - 59 * + COUNT ( * ), - 72 - + 51 AS col1
----
-446571
-123

onlyif mysql # aggregate syntax: 
query I rowsort label-5226
SELECT + COUNT( + 60 ) - + 3 * + COUNT( * ) * - 90 - - 47
----
318

skipif mysql # not compatible
query I rowsort label-5226
SELECT + COUNT ( + 60 ) - + 3 * + COUNT ( * ) * - 90 - - 47
----
318

onlyif mysql # aggregate syntax: 
query I rowsort label-5227
SELECT ALL ( - - 59 ) * COUNT( * )
----
59

skipif mysql # not compatible
query I rowsort label-5227
SELECT ALL ( - - 59 ) * COUNT ( * )
----
59

query II rowsort
SELECT + ( + - 62 ) col0, CASE - ( - 97 ) WHEN + + 49 THEN 3 END
----
-62
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5229
SELECT ALL - + 17, - 16 * - - CASE - + MIN( DISTINCT + CAST( NULL AS SIGNED ) ) WHEN + NULLIF ( 72, - AVG ( 22 ) ) THEN NULL ELSE + 40 END AS col1
----
-17
-640

skipif mysql # not compatible
query II rowsort label-5229
SELECT ALL - + 17, - 16 * - - CASE - + MIN ( DISTINCT + CAST ( NULL AS INTEGER ) ) WHEN + NULLIF ( 72, - AVG ( 22 ) ) THEN NULL ELSE + 40 END AS col1
----
-17
-640

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5231
SELECT DISTINCT - - 35, CAST( ( + 89 ) AS SIGNED ) col2
----
35
89

skipif mysql # not compatible
query II rowsort label-5231
SELECT DISTINCT - - 35, CAST ( ( + 89 ) AS INTEGER ) col2
----
35
89

query II rowsort
SELECT DISTINCT - 87, 20 AS col0
----
-87
20

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

skipif mysql # not compatible
query I rowsort label-5233
SELECT ALL - - CAST ( + MIN ( ALL - 48 ) AS INTEGER ) AS col2
----
-48

query II rowsort
SELECT + ( + 23 ) * 74 + - 16 AS col2, 4 AS col1
----
1686
4

query II rowsort
SELECT - 67, 70 col0
----
-67
70

query I rowsort
SELECT 25 + - ( - + 31 ) AS col0
----
56

query I rowsort
SELECT ALL - 53 * 45 AS col1
----
-2385

onlyif mysql # aggregate syntax: 
query I rowsort label-5238
SELECT - MIN( 36 ) * - 11
----
396

skipif mysql # not compatible
query I rowsort label-5238
SELECT - MIN ( 36 ) * - 11
----
396

onlyif mysql # DIV for integer division: 
query I rowsort label-5239
SELECT DISTINCT 68 + - 67 + - + 12 DIV - 98 * ( + 66 )
----
1

skipif mysql # not compatible
query I rowsort label-5239
SELECT DISTINCT 68 + - 67 + - + 12 / - 98 * ( + 66 )
----
1

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

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

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

query I rowsort
SELECT ALL + 93 * 47 AS col1
----
4371

query I rowsort
SELECT + 23 * + ( - 92 ) - 9 + - - 50
----
-2075

onlyif mysql # aggregate syntax: 
query II rowsort label-5244
SELECT 5, NULLIF ( - + 36, + 88 * COUNT( * ) ) AS col1
----
5
-36

skipif mysql # not compatible
query II rowsort label-5244
SELECT 5, NULLIF ( - + 36, + 88 * COUNT ( * ) ) AS col1
----
5
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-5245
SELECT DISTINCT - 59 * - - COUNT( * )
----
-59

skipif mysql # not compatible
query I rowsort label-5245
SELECT DISTINCT - 59 * - - COUNT ( * )
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-5246
SELECT ALL + + 27 + + + CASE - - 5 WHEN - + 90 THEN CASE 56 WHEN - COUNT( * ) * + 0 THEN 93 WHEN COALESCE ( - 25, - 9 ) THEN NULL ELSE + 38 END WHEN 12 THEN 40 ELSE NULL END * ( COUNT( 91 ) + 52 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5246
SELECT ALL + + 27 + + + CASE - - 5 WHEN - + 90 THEN CASE 56 WHEN - COUNT ( * ) * + 0 THEN 93 WHEN COALESCE ( - 25, - 9 ) THEN NULL ELSE + 38 END WHEN 12 THEN 40 ELSE NULL END * ( COUNT ( 91 ) + 52 ) AS col2
----
NULL

query III rowsort
SELECT - 75 AS col0, 70 AS col1, - 48 AS col0
----
-75
70
-48

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5248
SELECT 3 + + MAX( 24 ) DIV - - 33 * + - 79 AS col2
----
3

skipif mysql # not compatible
query I rowsort label-5248
SELECT 3 + + MAX ( 24 ) / - - 33 * + - 79 AS col2
----
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5249
SELECT 77 * + 69, + COUNT( * ) + 83 DIV 28 + 68 + + 91 + COUNT( * ) AS col2
----
5313
163

skipif mysql # not compatible
query II rowsort label-5249
SELECT 77 * + 69, + COUNT ( * ) + 83 / 28 + 68 + + 91 + COUNT ( * ) AS col2
----
5313
163

query I rowsort
SELECT ALL - 66 + 47 + 59 + 20 * + - 83
----
-1620

query I rowsort
SELECT 3 + + 92
----
95

onlyif mysql # aggregate syntax: 
query I rowsort label-5252
SELECT 28 * + 53 * COUNT( * ) col1
----
1484

skipif mysql # not compatible
query I rowsort label-5252
SELECT 28 * + 53 * COUNT ( * ) col1
----
1484

query I rowsort
SELECT 99 + 86
----
185

query I rowsort
SELECT 18 * + + 94 AS col0
----
1692

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

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

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

skipif mysql # not compatible
query I rowsort label-5256
SELECT 91 + - - COUNT ( * ) AS col0
----
92

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

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

query II rowsort
SELECT + 34 + + 88 AS col2, 70 + + 85
----
122
155

query I rowsort
SELECT DISTINCT 12 + + - 24
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-5260
SELECT ALL - 66 + - 47 + - + 35 + + 30 * COUNT( * ) + 37 * - 78 + COUNT( * ) AS col2
----
-3003

skipif mysql # not compatible
query I rowsort label-5260
SELECT ALL - 66 + - 47 + - + 35 + + 30 * COUNT ( * ) + 37 * - 78 + COUNT ( * ) AS col2
----
-3003

query I rowsort
SELECT ALL + 91 + + ( + 93 ) * + - ( + 1 )
----
-2

query I rowsort
SELECT - 0 * + - 61
----
0

query I rowsort
SELECT ALL 97 + 51 col0
----
148

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5264
SELECT - 67 * COALESCE ( COUNT( * ), - CAST( NULL AS SIGNED ) ) * - + 51 + - - 24 + - + 31 AS col0
----
3410

skipif mysql # not compatible
query I rowsort label-5264
SELECT - 67 * COALESCE ( COUNT ( * ), - CAST ( NULL AS INTEGER ) ) * - + 51 + - - 24 + - + 31 AS col0
----
3410

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5266
SELECT 13 * + + CAST( - + COALESCE ( - ( - 82 ), - - 30 * COUNT( * ) / 67 * 83 ) AS SIGNED )
----
-1066

skipif mysql # not compatible
query I rowsort label-5266
SELECT 13 * + + CAST ( - + COALESCE ( - ( - 82 ), - - 30 * COUNT ( * ) / 67 * 83 ) AS INTEGER )
----
-1066

query I rowsort
SELECT 84 * - + NULLIF ( - 56, + NULLIF ( - - 46, NULLIF ( + 74, + 69 ) ) ) col2
----
4704

onlyif mysql # DIV for integer division: 
query II rowsort label-5268
SELECT 84 AS col2, - ( 13 ) * 38 * 29 * + 96 + 66 DIV 37 AS col2
----
84
-1375295

skipif mysql # not compatible
query II rowsort label-5268
SELECT 84 AS col2, - ( 13 ) * 38 * 29 * + 96 + 66 / 37 AS col2
----
84
-1375295

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5269
SELECT ALL + 98 - - + 80 DIV + 76 + + 69 - + + COUNT( * )
----
167

skipif mysql # not compatible
query I rowsort label-5269
SELECT ALL + 98 - - + 80 / + 76 + + 69 - + + COUNT ( * )
----
167

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5270
SELECT COUNT( * ) DIV 66 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-5270
SELECT COUNT ( * ) / 66 AS col0
----
0

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

skipif mysql # not compatible
query I rowsort label-5271
SELECT ALL - COUNT ( * ) * 6 / + 46
----
0

query I rowsort
SELECT DISTINCT 53 * + - 3
----
-159

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5273
SELECT ALL MAX( + - CAST( NULL AS SIGNED ) ) * NULLIF ( - 61, CAST( + MIN( + - 77 ) AS SIGNED ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5273
SELECT ALL MAX ( + - CAST ( NULL AS INTEGER ) ) * NULLIF ( - 61, CAST ( + MIN ( + - 77 ) AS INTEGER ) ) AS col2
----
NULL

query I rowsort
SELECT CASE WHEN NOT + 40 <> - 24 * - 48 THEN + 3 + 76 * + 60 ELSE ( + 45 ) END + 91 * + 55 AS col1
----
5050

onlyif mysql # DIV for integer division: 
query I rowsort label-5275
SELECT 28 DIV + 31
----
0

skipif mysql # not compatible
query I rowsort label-5275
SELECT 28 / + 31
----
0

query I rowsort
SELECT 2 + 66 AS col1
----
68

onlyif mysql # DIV for integer division: 
query I rowsort label-5277
SELECT 37 - + 93 DIV - 23
----
41

skipif mysql # not compatible
query I rowsort label-5277
SELECT 37 - + 93 / - 23
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-5278
SELECT 12 + - 84 + - + 36 + ( - 63 ) + 6 * - + 18 * + 23 * + COALESCE ( MAX( DISTINCT + 77 ) * - COUNT( ALL - 64 ), - 30, + SUM( DISTINCT 95 ), - 22 )
----
191097

skipif mysql # not compatible
query I rowsort label-5278
SELECT 12 + - 84 + - + 36 + ( - 63 ) + 6 * - + 18 * + 23 * + COALESCE ( MAX ( DISTINCT + 77 ) * - COUNT ( ALL - 64 ), - 30, + SUM ( DISTINCT 95 ), - 22 )
----
191097

onlyif mysql # DIV for integer division: 
query I rowsort label-5279
SELECT - 63 DIV + 72 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-5279
SELECT - 63 / + 72 AS col2
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5280
SELECT DISTINCT + ( + 76 ) DIV + CASE + 22 WHEN - - 58 THEN NULL ELSE - COALESCE ( - ( COALESCE ( CASE 22 WHEN ( 13 ) THEN NULL WHEN 77 * 23 THEN + COUNT( * ) ELSE NULL END, 89 ) ), 68 * - 36 + 2 * 23 ) END + - 75 * 17 AS col2
----
-1275

skipif mysql # not compatible
query I rowsort label-5280
SELECT DISTINCT + ( + 76 ) / + CASE + 22 WHEN - - 58 THEN NULL ELSE - COALESCE ( - ( COALESCE ( CASE 22 WHEN ( 13 ) THEN NULL WHEN 77 * 23 THEN + COUNT ( * ) ELSE NULL END, 89 ) ), 68 * - 36 + 2 * 23 ) END + - 75 * 17 AS col2
----
-1275

query II rowsort
SELECT DISTINCT 70 AS col1, - 12 AS col2
----
70
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-5282
SELECT - 16 + - 95 * - MAX( ALL + 56 ) AS col0
----
5304

skipif mysql # not compatible
query I rowsort label-5282
SELECT - 16 + - 95 * - MAX ( ALL + 56 ) AS col0
----
5304

onlyif mysql # aggregate syntax: 
query I rowsort label-5283
SELECT DISTINCT + MIN( DISTINCT + 57 ) + - + 98 * 9 AS col0
----
-825

skipif mysql # not compatible
query I rowsort label-5283
SELECT DISTINCT + MIN ( DISTINCT + 57 ) + - + 98 * 9 AS col0
----
-825

query I rowsort
SELECT ALL + 78 + 6 * 98 + - 4 * 99 * 18 AS col1
----
-6462

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5285
SELECT - - 29 AS col1, + 73 * - 84 + - ( + CAST( + 27 AS SIGNED ) ) + + 35 + - - COUNT( * ) + COUNT( * )
----
29
-6122

skipif mysql # not compatible
query II rowsort label-5285
SELECT - - 29 AS col1, + 73 * - 84 + - ( + CAST ( + 27 AS INTEGER ) ) + + 35 + - - COUNT ( * ) + COUNT ( * )
----
29
-6122

onlyif mysql # aggregate syntax: 
query I rowsort label-5286
SELECT - 39 + - 13 + - ( NULLIF ( MAX( DISTINCT 92 ), - 65 ) ) * + 42 * + 86 * - 29 AS col0
----
9636764

skipif mysql # not compatible
query I rowsort label-5286
SELECT - 39 + - 13 + - ( NULLIF ( MAX ( DISTINCT 92 ), - 65 ) ) * + 42 * + 86 * - 29 AS col0
----
9636764

query II rowsort
SELECT + 96 AS col1, - 29 + + + 76 AS col0
----
96
47

onlyif mysql # aggregate syntax: 
query I rowsort label-5288
SELECT ALL - 35 * + - MAX( ALL - 94 ) + + - 32
----
-3322

skipif mysql # not compatible
query I rowsort label-5288
SELECT ALL - 35 * + - MAX ( ALL - 94 ) + + - 32
----
-3322

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

query II rowsort
SELECT 89 * 80 - - - 43 * - 94 col2, 67 - ( + 8 ) * - 50
----
11162
467

onlyif mysql # aggregate syntax: 
query I rowsort label-5291
SELECT - CASE + 98 WHEN + 53 + - - 56 THEN - + 95 + - + COUNT( * ) / - 99 * 1 WHEN 4 + 93 THEN NULL END * AVG ( 59 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5291
SELECT - CASE + 98 WHEN + 53 + - - 56 THEN - + 95 + - + COUNT ( * ) / - 99 * 1 WHEN 4 + 93 THEN NULL END * AVG ( 59 )
----
NULL

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

query I rowsort
SELECT ALL + 77 * + 20 + + + ( + 92 ) AS col2
----
1632

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5294
SELECT - - 29 + - 96 + - COUNT( * ) * NULLIF ( - + 59, - 50 ) + + - SUM( - CAST( 55 AS SIGNED ) ) AS col1
----
47

skipif mysql # not compatible
query I rowsort label-5294
SELECT - - 29 + - 96 + - COUNT ( * ) * NULLIF ( - + 59, - 50 ) + + - SUM ( - CAST ( 55 AS INTEGER ) ) AS col1
----
47

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5295
SELECT 79 DIV - 52 + + 57 + 69 DIV - COUNT( * ) * COUNT( * )
----
-13

skipif mysql # not compatible
query I rowsort label-5295
SELECT 79 / - 52 + + 57 + 69 / - COUNT ( * ) * COUNT ( * )
----
-13

query I rowsort
SELECT 74 * 65 - + 62 * 79
----
-88

query I rowsort
SELECT + + 15 * - - ( 57 )
----
855

query I rowsort
SELECT ALL + 10 * + + 74
----
740

query I rowsort
SELECT ALL 48 * - + 58 AS col1
----
-2784

onlyif mysql # aggregate syntax: 
query II rowsort label-5300
SELECT + MAX( - 97 ) + 34 + - 64, + 11 AS col2
----
-127
11

skipif mysql # not compatible
query II rowsort label-5300
SELECT + MAX ( - 97 ) + 34 + - 64, + 11 AS col2
----
-127
11

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5302
SELECT ALL 12 * - + CASE - + CASE - - 1 WHEN - 96 - 83 - 2 + - - COALESCE ( + - 36, 84 ) + 36 THEN 34 END WHEN NULLIF ( + CAST( ( 67 ) AS SIGNED ), - NULLIF ( 54, COUNT( * ) ) * + 72 + - 62 / 20 ) THEN ( - 84 ) END * + 25 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5302
SELECT ALL 12 * - + CASE - + CASE - - 1 WHEN - 96 - 83 - 2 + - - COALESCE ( + - 36, 84 ) + 36 THEN 34 END WHEN NULLIF ( + CAST ( ( 67 ) AS INTEGER ), - NULLIF ( 54, COUNT ( * ) ) * + 72 + - 62 / 20 ) THEN ( - 84 ) END * + 25 AS col2
----
NULL

query I rowsort
SELECT + 23 * + - 48 AS col2
----
-1104

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5305
SELECT + 76 + + COUNT( * ) * - - 6 + + ( - 21 ) + - 72 * + + 28
----
-1955

skipif mysql # not compatible
query I rowsort label-5305
SELECT + 76 + + COUNT ( * ) * - - 6 + + ( - 21 ) + - 72 * + + 28
----
-1955

query II rowsort
SELECT + 88 * - - 79 col2, 44 col0
----
6952
44

query II rowsort
SELECT ALL NULLIF ( + - 71, - AVG ( - ( + 11 ) ) ), 97 * + 28 + 64 AS col1
----
-71
2780

query I rowsort
SELECT ALL + 77 + + + 88 col1
----
165

onlyif mysql # aggregate syntax: 
query I rowsort label-5309
SELECT + MIN( - 83 ) * 46 + + + 46
----
-3772

skipif mysql # not compatible
query I rowsort label-5309
SELECT + MIN ( - 83 ) * 46 + + + 46
----
-3772

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

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

query I rowsort
SELECT + + 1 - 36
----
-35

onlyif mysql # DIV for integer division: 
query I rowsort label-5312
SELECT + COALESCE ( + - COALESCE ( 19, - 70 + + 62 + + - 42 * + 38 ), COALESCE ( - 69, + 70 * - 50, - 74 + + 71 ) DIV 71 )
----
-19

skipif mysql # not compatible
query I rowsort label-5312
SELECT + COALESCE ( + - COALESCE ( 19, - 70 + + 62 + + - 42 * + 38 ), COALESCE ( - 69, + 70 * - 50, - 74 + + 71 ) / 71 )
----
-19

query I rowsort
SELECT + - 26 * - 9
----
234

onlyif mysql # aggregate syntax: 
query I rowsort label-5314
SELECT - + COUNT( * ) * 4 * - + 57
----
228

skipif mysql # not compatible
query I rowsort label-5314
SELECT - + COUNT ( * ) * 4 * - + 57
----
228

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

skipif mysql # not compatible
query I rowsort label-5315
SELECT DISTINCT - - COUNT ( * ) + + 7 AS col0
----
8

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5316
SELECT DISTINCT + - CAST( - + AVG ( DISTINCT + 93 ) AS SIGNED ) + + + NULLIF ( - 14, 63 + - - 67 + - 44 * - 83 + 74 ) * COUNT( ALL + 50 )
----
79

skipif mysql # not compatible
query I rowsort label-5316
SELECT DISTINCT + - CAST ( - + AVG ( DISTINCT + 93 ) AS INTEGER ) + + + NULLIF ( - 14, 63 + - - 67 + - 44 * - 83 + 74 ) * COUNT ( ALL + 50 )
----
79

query I rowsort
SELECT ALL + + ( - - 55 ) + 94
----
149

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5318
SELECT - 60 * - - 9 / - CAST( NULL AS SIGNED ) + 57 AS col2, 0
----
NULL
0

skipif mysql # not compatible
query II rowsort label-5318
SELECT - 60 * - - 9 / - CAST ( NULL AS INTEGER ) + 57 AS col2, 0
----
NULL
0

query I rowsort
SELECT DISTINCT 34 + - + 89 * - + NULLIF ( + + 1, 48 )
----
123

onlyif mysql # aggregate syntax: 
query II rowsort label-5320
SELECT ALL + 74 * ( - - SUM( ALL + - 12 ) ) AS col1, 10 AS col2
----
-888
10

skipif mysql # not compatible
query II rowsort label-5320
SELECT ALL + 74 * ( - - SUM ( ALL + - 12 ) ) AS col1, 10 AS col2
----
-888
10

query I rowsort
SELECT - + 69 + - + 44 + + ( + 82 ) * 66
----
5299

query I rowsort
SELECT - - 25 * - 57 AS col2
----
-1425

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-5323
SELECT ALL + - 21 * - 20 + - 28 * - 49 AS col2, + 89 + + NULLIF ( 9, + - 87 + + MIN( ALL ( - CAST( - 11 AS DECIMAL ) ) ) * 58 ) AS col1
----
1792
98

skipif mysql # not compatible
query II rowsort label-5323
SELECT ALL + - 21 * - 20 + - 28 * - 49 AS col2, + 89 + + NULLIF ( 9, + - 87 + + MIN ( ALL ( - CAST ( - 11 AS REAL ) ) ) * 58 ) AS col1
----
1792
98

onlyif mysql # aggregate syntax: 
query I rowsort label-5324
SELECT + COUNT( 28 ) col2
----
1

skipif mysql # not compatible
query I rowsort label-5324
SELECT + COUNT ( 28 ) col2
----
1

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

query I rowsort
SELECT DISTINCT + NULLIF ( 48, + + 11 / 87 + - 5 - + - 94 ) AS col1
----
48

onlyif mysql # DIV for integer division: 
query I rowsort label-5327
SELECT - 85 DIV + 97 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-5327
SELECT - 85 / + 97 AS col0
----
0

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

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

query I rowsort
SELECT DISTINCT + 52 * + 98 col2
----
5096

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5330
SELECT ALL ( 27 ) DIV - - 81 * - 16 * NULLIF ( 39, 97 DIV COALESCE ( 62, - 73 + - CAST( 78 AS SIGNED ) ) ) * 59
----
0

skipif mysql # not compatible
query I rowsort label-5330
SELECT ALL ( 27 ) / - - 81 * - 16 * NULLIF ( 39, 97 / COALESCE ( 62, - 73 + - CAST ( 78 AS INTEGER ) ) ) * 59
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5331
SELECT + CASE - + CASE - + 95 WHEN COUNT( * ) / + + ( + 90 ) THEN 80 / - 26 WHEN 37 THEN NULL WHEN 10 THEN NULLIF ( 4, - COALESCE ( + 81, 67 ) ) / + CAST( NULL AS DECIMAL ) END WHEN - CASE + 99 WHEN - 34 THEN + 58 / 46 + CAST( NULL AS SIGNED ) END THEN 29 + + COUNT( * ) * CAST( 84 * 79 + 62 AS SIGNED ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5331
SELECT + CASE - + CASE - + 95 WHEN COUNT ( * ) / + + ( + 90 ) THEN 80 / - 26 WHEN 37 THEN NULL WHEN 10 THEN NULLIF ( 4, - COALESCE ( + 81, 67 ) ) / + CAST ( NULL AS REAL ) END WHEN - CASE + 99 WHEN - 34 THEN + 58 / 46 + CAST ( NULL AS INTEGER ) END THEN 29 + + COUNT ( * ) * CAST ( 84 * 79 + 62 AS INTEGER ) END AS col0
----
NULL

query I rowsort
SELECT + 86 * 9 - NULLIF ( + - 26, + - 68 * - - 27 )
----
800

query I rowsort
SELECT + NULLIF ( - 49, - 49 )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-5334
SELECT - MAX( DISTINCT - + 4 ) - + + COUNT( * ), - CAST( NULL AS DECIMAL ) AS col1
----
3
NULL

skipif mysql # not compatible
query II rowsort label-5334
SELECT - MAX ( DISTINCT - + 4 ) - + + COUNT ( * ), - CAST ( NULL AS REAL ) AS col1
----
3
NULL

query I rowsort
SELECT + NULLIF ( - 22, + 94 )
----
-22

query I rowsort
SELECT - 70 * + 23 AS col1
----
-1610

onlyif mysql # aggregate syntax: 
query I rowsort label-5337
SELECT ( CASE 24 WHEN + 78 THEN + SUM( DISTINCT - 92 ) + - 88 * - ( + 82 ) * - ( - ( 3 ) ) ELSE NULL END ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5337
SELECT ( CASE 24 WHEN + 78 THEN + SUM ( DISTINCT - 92 ) + - 88 * - ( + 82 ) * - ( - ( 3 ) ) ELSE NULL END ) AS col1
----
NULL

query I rowsort
SELECT DISTINCT 99 * + 61
----
6039

query I rowsort
SELECT 36 * 33 - + - 12
----
1200

query II rowsort
SELECT ALL 10 AS col2, 99
----
10
99

onlyif mysql # aggregate syntax: 
query I rowsort label-5341
SELECT NULLIF ( - COUNT( * ), 40 ) * - 99 * - 40 AS col0
----
-3960

skipif mysql # not compatible
query I rowsort label-5341
SELECT NULLIF ( - COUNT ( * ), 40 ) * - 99 * - 40 AS col0
----
-3960

onlyif mysql # aggregate syntax: 
query I rowsort label-5342
SELECT ALL 98 + COUNT( * ) * + CASE - - 44 WHEN 88 THEN NULL WHEN - 97 THEN NULL ELSE 4 + 5 + + - 6 - 14 * - 33 END AS col1
----
563

skipif mysql # not compatible
query I rowsort label-5342
SELECT ALL 98 + COUNT ( * ) * + CASE - - 44 WHEN 88 THEN NULL WHEN - 97 THEN NULL ELSE 4 + 5 + + - 6 - 14 * - 33 END AS col1
----
563

query I rowsort
SELECT DISTINCT ( 93 ) * + 34 AS col0
----
3162

onlyif mysql # aggregate syntax: 
query I rowsort label-5344
SELECT CASE - 62 WHEN + 26 / + COUNT( * ) THEN NULL WHEN - 64 + - 7 THEN NULL ELSE - + 66 END * + - 42 * 55
----
152460

skipif mysql # not compatible
query I rowsort label-5344
SELECT CASE - 62 WHEN + 26 / + COUNT ( * ) THEN NULL WHEN - 64 + - 7 THEN NULL ELSE - + 66 END * + - 42 * 55
----
152460

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5346
SELECT 15 + + MIN( + + 11 ) + - CASE + - COUNT( * ) WHEN + 39 THEN NULL ELSE + 23 END col2
----
3

skipif mysql # not compatible
query I rowsort label-5346
SELECT 15 + + MIN ( + + 11 ) + - CASE + - COUNT ( * ) WHEN + 39 THEN NULL ELSE + 23 END col2
----
3

query II rowsort
SELECT DISTINCT 79 * - ( 10 ), - 54 AS col0
----
-790
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-5348
SELECT DISTINCT + 67 + + 63 - 87 - - + COUNT( * ) * ( 99 ) * - 36 - - 18 - - 84 + 71 + + 34 * + 72 + 29
----
-871

skipif mysql # not compatible
query I rowsort label-5348
SELECT DISTINCT + 67 + + 63 - 87 - - + COUNT ( * ) * ( 99 ) * - 36 - - 18 - - 84 + 71 + + 34 * + 72 + 29
----
-871

query I rowsort
SELECT 84 + + 9
----
93

query I rowsort
SELECT ALL - 34 - + 25
----
-59

query I rowsort
SELECT - 19 + + 64 AS col0
----
45

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5352
SELECT 17 * + COUNT( * ) + - 27 DIV - 15
----
18

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

query I rowsort
SELECT - 94 * 85 col1
----
-7990

query I rowsort
SELECT DISTINCT ( 99 ) AS col2
----
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5355
SELECT CASE + 86 WHEN 87 / CAST( NULL AS SIGNED ) THEN - - 72 + 12 ELSE + 20 END * + 30 AS col1
----
600

skipif mysql # not compatible
query I rowsort label-5355
SELECT CASE + 86 WHEN 87 / CAST ( NULL AS INTEGER ) THEN - - 72 + 12 ELSE + 20 END * + 30 AS col1
----
600

onlyif mysql # DIV for integer division: 
query II rowsort label-5356
SELECT + 88 AS col2, - 50 DIV + ( + 92 ) AS col2
----
88
0

skipif mysql # not compatible
query II rowsort label-5356
SELECT + 88 AS col2, - 50 / + ( + 92 ) AS col2
----
88
0

query II rowsort
SELECT ALL - 97 AS col1, 42 * - 21 AS col1
----
-97
-882

query I rowsort
SELECT - 60 * + + 72 + - 61
----
-4381

query III rowsort
SELECT ALL - 84, 37 * - 36 AS col1, + 92 AS col1
----
-84
-1332
92

onlyif mysql # aggregate syntax: 
query I rowsort label-5360
SELECT CASE - + 50 WHEN - COALESCE ( - - ( + SUM( + 36 ) ), + 15 ) * + COUNT( * ) THEN NULL ELSE 24 * AVG ( DISTINCT - 22 ) * + CASE 49 / + 71 WHEN + COUNT( * ) * ( - COALESCE ( 93, - 48 * 48 ) ) THEN NULL WHEN 7 THEN 42 + 34 ELSE NULL END + + 53 END
----
NULL

skipif mysql # not compatible
query I rowsort label-5360
SELECT CASE - + 50 WHEN - COALESCE ( - - ( + SUM ( + 36 ) ), + 15 ) * + COUNT ( * ) THEN NULL ELSE 24 * AVG ( DISTINCT - 22 ) * + CASE 49 / + 71 WHEN + COUNT ( * ) * ( - COALESCE ( 93, - 48 * 48 ) ) THEN NULL WHEN 7 THEN 42 + 34 ELSE NULL END + + 53 END
----
NULL

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

query II rowsort
SELECT 88 col0, - 27
----
88
-27

query I rowsort
SELECT 22 * + 32 AS col0
----
704

onlyif mysql # aggregate syntax: 
query I rowsort label-5364
SELECT + 19 * + 55 * - ( COUNT( * ) ) + 24
----
-1021

skipif mysql # not compatible
query I rowsort label-5364
SELECT + 19 * + 55 * - ( COUNT ( * ) ) + 24
----
-1021

query I rowsort
SELECT 28 - - ( 82 )
----
110

query II rowsort
SELECT ALL - 67 AS col2, + ( + 23 )
----
-67
23

onlyif mysql # aggregate syntax: 
query I rowsort label-5367
SELECT 2 + 72 + + ( + - ( MAX( - - 5 ) ) ) + 96 col1
----
165

skipif mysql # not compatible
query I rowsort label-5367
SELECT 2 + 72 + + ( + - ( MAX ( - - 5 ) ) ) + 96 col1
----
165

query I rowsort
SELECT 12 + + 98 * + 44
----
4324

query I rowsort
SELECT ALL + COALESCE ( 2, + - 18 + + 74 ) * 25 AS col1
----
50

onlyif mysql # aggregate syntax: 
query II rowsort label-5370
SELECT 13 AS col2, COUNT( * ) + - - 97 + + - COALESCE ( 39, 35 * + 59, 41 )
----
13
59

skipif mysql # not compatible
query II rowsort label-5370
SELECT 13 AS col2, COUNT ( * ) + - - 97 + + - COALESCE ( 39, 35 * + 59, 41 )
----
13
59

query I rowsort
SELECT ALL - 76 + + + 60 AS col1
----
-16

query I rowsort
SELECT - 75 * + 79 + 53
----
-5872

onlyif mysql # aggregate syntax: 
query I rowsort label-5373
SELECT ALL - 77 + - SUM( ALL 80 ) * + + 41 AS col1
----
-3357

skipif mysql # not compatible
query I rowsort label-5373
SELECT ALL - 77 + - SUM ( ALL 80 ) * + + 41 AS col1
----
-3357

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5374
SELECT 47 + - 4 DIV 58 * - - COALESCE ( CAST( NULL AS SIGNED ), - 26 ) + 14 * + + 35
----
537

skipif mysql # not compatible
query I rowsort label-5374
SELECT 47 + - 4 / 58 * - - COALESCE ( CAST ( NULL AS INTEGER ), - 26 ) + 14 * + + 35
----
537

query II rowsort
SELECT - 74, - 92 AS col2
----
-74
-92

query I rowsort
SELECT ALL 45 + 77
----
122

query II rowsort
SELECT DISTINCT 42 AS col2, - 86 + - + 47 AS col0
----
42
-133

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5379
SELECT ALL - COUNT( * ) * - 98 AS col1
----
98

skipif mysql # not compatible
query I rowsort label-5379
SELECT ALL - COUNT ( * ) * - 98 AS col1
----
98

query I rowsort
SELECT DISTINCT + 96 - - + 12
----
108

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5381
SELECT ALL 34 * 17 * CAST( NULL AS SIGNED ) * + + 95 AS col2, COUNT( * )
----
NULL
1

skipif mysql # not compatible
query II rowsort label-5381
SELECT ALL 34 * 17 * CAST ( NULL AS INTEGER ) * + + 95 AS col2, COUNT ( * )
----
NULL
1

query I rowsort
SELECT - + NULLIF ( + + 53, - 17 ) AS col1
----
-53

query I rowsort
SELECT DISTINCT - 56 - + - 78 + + 56
----
78

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5384
SELECT 63 * 22 + 99 + - + ( - NULLIF ( + COUNT( * ), - - NULLIF ( + 86, + 3 ) ) ) + - MAX( ALL + + 34 ) + - COUNT( + ( + 26 ) + - 76 / 66 ) * 64 * CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5384
SELECT 63 * 22 + 99 + - + ( - NULLIF ( + COUNT ( * ), - - NULLIF ( + 86, + 3 ) ) ) + - MAX ( ALL + + 34 ) + - COUNT ( + ( + 26 ) + - 76 / 66 ) * 64 * CAST ( NULL AS INTEGER ) AS col2
----
NULL

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

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

query II rowsort
SELECT ALL 5 AS col1, 63 AS col1
----
5
63

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5387
SELECT + 58 DIV - SUM( - 39 )
----
1

skipif mysql # not compatible
query I rowsort label-5387
SELECT + 58 / - SUM ( - 39 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5388
SELECT ALL + COUNT( * ) * - 26 + 48 + - - COUNT( * )
----
23

skipif mysql # not compatible
query I rowsort label-5388
SELECT ALL + COUNT ( * ) * - 26 + 48 + - - COUNT ( * )
----
23

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5389
SELECT ALL 36 DIV SUM( + + 49 ) + - - 21 + 8 + - - 34 + 36 col2
----
99

skipif mysql # not compatible
query I rowsort label-5389
SELECT ALL 36 / SUM ( + + 49 ) + - - 21 + 8 + - - 34 + 36 col2
----
99

onlyif mysql # aggregate syntax: 
query II rowsort label-5390
SELECT ALL + 45, + COUNT( DISTINCT + 6 ) * 25 + COUNT( * ) AS col1
----
45
26

skipif mysql # not compatible
query II rowsort label-5390
SELECT ALL + 45, + COUNT ( DISTINCT + 6 ) * 25 + COUNT ( * ) AS col1
----
45
26

onlyif mysql # aggregate syntax: 
query II rowsort label-5391
SELECT - 17 AS col1, COUNT( * ) + - 27 AS col1
----
-17
-26

skipif mysql # not compatible
query II rowsort label-5391
SELECT - 17 AS col1, COUNT ( * ) + - 27 AS col1
----
-17
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-5392
SELECT 32 + - 90 * + COUNT( * ) * + 90
----
-8068

skipif mysql # not compatible
query I rowsort label-5392
SELECT 32 + - 90 * + COUNT ( * ) * + 90
----
-8068

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5393
SELECT - 24 DIV + CAST( + + 95 AS SIGNED ) + + + 37
----
37

skipif mysql # not compatible
query I rowsort label-5393
SELECT - 24 / + CAST ( + + 95 AS INTEGER ) + + + 37
----
37

query I rowsort
SELECT 78 * + 64
----
4992

query I rowsort
SELECT ALL 64 * + - 53 + + 78
----
-3314

onlyif mysql # aggregate syntax: 
query II rowsort label-5396
SELECT 93 * + + 76 AS col0, ( - - MIN( ALL 91 ) ) * 90
----
7068
8190

skipif mysql # not compatible
query II rowsort label-5396
SELECT 93 * + + 76 AS col0, ( - - MIN ( ALL 91 ) ) * 90
----
7068
8190

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5397
SELECT 35 DIV - - 23 + - 89, 61 - + + COUNT( * ) AS col0
----
-88
60

skipif mysql # not compatible
query II rowsort label-5397
SELECT 35 / - - 23 + - 89, 61 - + + COUNT ( * ) AS col0
----
-88
60

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5398
SELECT CAST( NULL AS SIGNED ) * - 0 AS col2, - 36
----
NULL
-36

skipif mysql # not compatible
query II rowsort label-5398
SELECT CAST ( NULL AS INTEGER ) * - 0 AS col2, - 36
----
NULL
-36

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

skipif mysql # not compatible
query I rowsort label-5399
SELECT ALL + COUNT ( - 13 ) AS col1
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5400
SELECT + 47 DIV COUNT( * ) * - 11
----
-517

skipif mysql # not compatible
query I rowsort label-5400
SELECT + 47 / COUNT ( * ) * - 11
----
-517

onlyif mysql # aggregate syntax: 
query II rowsort label-5401
SELECT ALL 71 * 75 + - - ( COUNT( * ) ) + 63, + 79 - - ( - 3 ) AS col2
----
5389
76

skipif mysql # not compatible
query II rowsort label-5401
SELECT ALL 71 * 75 + - - ( COUNT ( * ) ) + 63, + 79 - - ( - 3 ) AS col2
----
5389
76

query I rowsort
SELECT + NULLIF ( + 6, + + 25 * + - 45 ) AS col1
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-5403
SELECT CASE - COUNT( - + 11 ) WHEN + 74 + 42 THEN NULLIF ( - 87, + 6 * - 81 ) + 98 + - - 50 + + - 39 * - 25 * + COUNT( * ) WHEN 28 THEN 51 * - 14 WHEN - ( - 20 ) THEN 21 + - 19 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-5403
SELECT CASE - COUNT ( - + 11 ) WHEN + 74 + 42 THEN NULLIF ( - 87, + 6 * - 81 ) + 98 + - - 50 + + - 39 * - 25 * + COUNT ( * ) WHEN 28 THEN 51 * - 14 WHEN - ( - 20 ) THEN 21 + - 19 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5404
SELECT ALL - MIN( + + 80 ) * - - 24 * COUNT( * ) + + 52 AS col2, 29 AS col0
----
-1868
29

skipif mysql # not compatible
query II rowsort label-5404
SELECT ALL - MIN ( + + 80 ) * - - 24 * COUNT ( * ) + + 52 AS col2, 29 AS col0
----
-1868
29

onlyif mysql # aggregate syntax: 
query I rowsort label-5405
SELECT MIN( + 53 ) AS col1
----
53

skipif mysql # not compatible
query I rowsort label-5405
SELECT MIN ( + 53 ) AS col1
----
53

onlyif mysql # DIV for integer division: 
query I rowsort label-5406
SELECT + 17 DIV 6 DIV 40 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-5406
SELECT + 17 / 6 / 40 AS col2
----
0

query I rowsort
SELECT - 93 * + 98 col2
----
-9114

onlyif mysql # DIV for integer division: 
query I rowsort label-5408
SELECT 72 * + 51 - 49 DIV - - 23
----
3670

skipif mysql # not compatible
query I rowsort label-5408
SELECT 72 * + 51 - 49 / - - 23
----
3670

query I rowsort
SELECT + 81 - + 95 + 65 col2
----
51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5410
SELECT + 57 * CAST( 54 AS SIGNED ) AS col0
----
3078

skipif mysql # not compatible
query I rowsort label-5410
SELECT + 57 * CAST ( 54 AS INTEGER ) AS col0
----
3078

query I rowsort
SELECT ALL - 73 * - + ( + 68 ) AS col1
----
4964

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5412
SELECT DISTINCT - 55 * + CAST( + 88 AS SIGNED )
----
-4840

skipif mysql # not compatible
query I rowsort label-5412
SELECT DISTINCT - 55 * + CAST ( + 88 AS INTEGER )
----
-4840

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5414
SELECT DISTINCT CAST( 85 AS SIGNED ) - - + ( 98 ) AS col2
----
183

skipif mysql # not compatible
query I rowsort label-5414
SELECT DISTINCT CAST ( 85 AS INTEGER ) - - + ( 98 ) AS col2
----
183

query I rowsort
SELECT - ( + 93 ) - + + 52 + - 90 * - 0 + + 87 col2
----
-58

query I rowsort
SELECT + 70 + + 71 + - 73 AS col2
----
68

query I rowsort
SELECT - 79 * - 33 AS col2
----
2607

query I rowsort
SELECT - + 82 * - 79 AS col0
----
6478

onlyif mysql # aggregate syntax: 
query I rowsort label-5419
SELECT - 92 + - COUNT( - 34 ) - - + 72
----
-21

skipif mysql # not compatible
query I rowsort label-5419
SELECT - 92 + - COUNT ( - 34 ) - - + 72
----
-21

query II rowsort
SELECT - + 37 + 45 AS col1, - 85 + - + 85
----
8
-170

onlyif mysql # aggregate syntax: 
query II rowsort label-5421
SELECT + + COUNT( * ) - - 20 AS col1, 0
----
21
0

skipif mysql # not compatible
query II rowsort label-5421
SELECT + + COUNT ( * ) - - 20 AS col1, 0
----
21
0

query II rowsort
SELECT - - 21 * 52 AS col2, 96 + + + 86
----
1092
182

query I rowsort
SELECT - + 46 * - 79 AS col2
----
3634

onlyif mysql # aggregate syntax: 
query I rowsort label-5424
SELECT ALL + 66 * - COALESCE ( - ( - 19 ), COUNT( * ) ) * COUNT( - ( + + 46 ) ) AS col0
----
-1254

skipif mysql # not compatible
query I rowsort label-5424
SELECT ALL + 66 * - COALESCE ( - ( - 19 ), COUNT ( * ) ) * COUNT ( - ( + + 46 ) ) AS col0
----
-1254

onlyif mysql # aggregate syntax: 
query I rowsort label-5425
SELECT - 51 * - COUNT( * ) - 89
----
-38

skipif mysql # not compatible
query I rowsort label-5425
SELECT - 51 * - COUNT ( * ) - 89
----
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-5426
SELECT - COUNT( + 26 ) * - 11 - MAX( ALL + - 26 )
----
37

skipif mysql # not compatible
query I rowsort label-5426
SELECT - COUNT ( + 26 ) * - 11 - MAX ( ALL + - 26 )
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-5427
SELECT ALL + NULLIF ( + MIN( DISTINCT 4 ), 1 ) + + - 6
----
-2

skipif mysql # not compatible
query I rowsort label-5427
SELECT ALL + NULLIF ( + MIN ( DISTINCT 4 ), 1 ) + + - 6
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-5428
SELECT + MIN( + + 3 ) AS col1
----
3

skipif mysql # not compatible
query I rowsort label-5428
SELECT + MIN ( + + 3 ) AS col1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5429
SELECT - - 19 + + COUNT( * ) + - 0 AS col1
----
20

skipif mysql # not compatible
query I rowsort label-5429
SELECT - - 19 + + COUNT ( * ) + - 0 AS col1
----
20

query I rowsort
SELECT + 77 * 46
----
3542

query I rowsort
SELECT DISTINCT 83 + - ( + 19 ) + - + 46
----
18

query II rowsort
SELECT ALL 80 AS col2, + 36 * + 5
----
80
180

query II rowsort
SELECT 46 AS col0, - 91
----
46
-91

query II rowsort
SELECT DISTINCT + 89 AS col0, 30 AS col2
----
89
30

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5435
SELECT ALL - 30 DIV + ( + + 3 ) + + + COUNT( * ) * - COUNT( + 84 ) AS col0
----
-11

skipif mysql # not compatible
query I rowsort label-5435
SELECT ALL - 30 / + ( + + 3 ) + + + COUNT ( * ) * - COUNT ( + 84 ) AS col0
----
-11

onlyif mysql # DIV for integer division: 
query I rowsort label-5436
SELECT - 35 DIV - ( ( - + 91 ) ) + - - 36
----
36

skipif mysql # not compatible
query I rowsort label-5436
SELECT - 35 / - ( ( - + 91 ) ) + - - 36
----
36

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5437
SELECT ALL COUNT( + - NULLIF ( ( + 80 ), 32 ) ) DIV + 95
----
0

skipif mysql # not compatible
query I rowsort label-5437
SELECT ALL COUNT ( + - NULLIF ( ( + 80 ), 32 ) ) / + 95
----
0

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

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

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

query I rowsort
SELECT + ( - NULLIF ( + 4, + - 95 - - 37 ) ) AS col2
----
-4

onlyif mysql # aggregate syntax: 
query II rowsort label-5441
SELECT ALL + 92 AS col0, 92 * CASE + 1 WHEN + COUNT( * ) THEN - + 31 * + 41 ELSE + 43 END AS col2
----
92
-116932

skipif mysql # not compatible
query II rowsort label-5441
SELECT ALL + 92 AS col0, 92 * CASE + 1 WHEN + COUNT ( * ) THEN - + 31 * + 41 ELSE + 43 END AS col2
----
92
-116932

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5442
SELECT 77 * - 27 + + 86 - - - 73 * - 44 + - 14 * 4 - + COUNT( * ) - CAST( NULL AS DECIMAL ) * - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-5442
SELECT 77 * - 27 + + 86 - - - 73 * - 44 + - 14 * 4 - + COUNT ( * ) - CAST ( NULL AS REAL ) * - COUNT ( * )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5443
SELECT + 87 - + SUM( - CAST( NULL AS SIGNED ) ) * + + 66 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5443
SELECT + 87 - + SUM ( - CAST ( NULL AS INTEGER ) ) * + + 66 AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-5444
SELECT + CAST( - + CAST( - 55 AS SIGNED ) AS SIGNED ) AS col1, 91 DIV + - 69
----
55
-1

skipif mysql # not compatible
query II rowsort label-5444
SELECT + CAST ( - + CAST ( - 55 AS INTEGER ) AS INTEGER ) AS col1, 91 / + - 69
----
55
-1

query I rowsort
SELECT + 58 + + 96
----
154

onlyif mysql # aggregate syntax: 
query II rowsort label-5446
SELECT ALL + 11, - 6 * + COUNT( * ) AS col2
----
11
-6

skipif mysql # not compatible
query II rowsort label-5446
SELECT ALL + 11, - 6 * + COUNT ( * ) AS col2
----
11
-6

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5448
SELECT + COUNT( * ) * + 1 / - CASE + 69 WHEN + 90 THEN + - MAX( + - 63 ) + COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-5448
SELECT + COUNT ( * ) * + 1 / - CASE + 69 WHEN + 90 THEN + - MAX ( + - 63 ) + COUNT ( * ) END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5449
SELECT ALL 22 DIV + 61
----
0

skipif mysql # not compatible
query I rowsort label-5449
SELECT ALL 22 / + 61
----
0

query I rowsort
SELECT + 28 * + - 34 + 68 + + + 90 AS col2
----
-794

onlyif mysql # aggregate syntax: 
query I rowsort label-5451
SELECT 14 * - 58 + - SUM( ALL + 22 ) AS col2
----
-834

skipif mysql # not compatible
query I rowsort label-5451
SELECT 14 * - 58 + - SUM ( ALL + 22 ) AS col2
----
-834

query I rowsort
SELECT + 15 * + 67
----
1005

onlyif mysql # aggregate syntax: 
query I rowsort label-5453
SELECT + MAX( DISTINCT + ( 99 ) ) * - - 27 + - 32 + + 91 * - - 71 + + 74
----
9176

skipif mysql # not compatible
query I rowsort label-5453
SELECT + MAX ( DISTINCT + ( 99 ) ) * - - 27 + - 32 + + 91 * - - 71 + + 74
----
9176

query II rowsort
SELECT + COALESCE ( - 22, - 67 ) col1, + 18 AS col0
----
-22
18

query II rowsort
SELECT - 37 + 77 * - 35, - 97 AS col0
----
-2732
-97

query I rowsort
SELECT ALL + + NULLIF ( - 74, 40 )
----
-74

query I rowsort
SELECT + - COALESCE ( + + 87, - 9 * - 50 + + - 93 ) AS col0
----
-87

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5460
SELECT - COUNT( * ) col2, CAST( COALESCE ( ( - 42 ), + - 23, - 63 * ( - 64 ) / ( 59 ) ) AS SIGNED )
----
-1
-42

skipif mysql # not compatible
query II rowsort label-5460
SELECT - COUNT ( * ) col2, CAST ( COALESCE ( ( - 42 ), + - 23, - 63 * ( - 64 ) / ( 59 ) ) AS INTEGER )
----
-1
-42

query I rowsort
SELECT ALL CASE + NULLIF ( - 11, 95 * - 67 ) WHEN 39 THEN + - 93 END AS col1
----
NULL

query I rowsort
SELECT ALL - 64 * - 28 AS col0
----
1792

query I rowsort
SELECT DISTINCT + 53 * + 99 * - - 83 - + 37 AS col1
----
435464

onlyif mysql # aggregate syntax: 
query I rowsort label-5464
SELECT ALL MAX( DISTINCT - 6 ) AS col1
----
-6

skipif mysql # not compatible
query I rowsort label-5464
SELECT ALL MAX ( DISTINCT - 6 ) AS col1
----
-6

query I rowsort
SELECT DISTINCT NULLIF ( - + 83, + 79 ) * + 59 AS col1
----
-4897

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5467
SELECT ALL + - 69 + - 1 DIV + - 4 + 86 * + 56
----
4747

skipif mysql # not compatible
query I rowsort label-5467
SELECT ALL + - 69 + - 1 / + - 4 + 86 * + 56
----
4747

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-5469
SELECT DISTINCT 35 AS col1, ( + CASE - - 2 WHEN + CAST( + 9 AS SIGNED ) * 93 * - AVG ( DISTINCT + + COALESCE ( - + 50, - 29 ) ) * - - 78 THEN + 53 + - COALESCE ( - 16, COUNT( * ) ) WHEN 73 THEN 39 WHEN 84 * CASE 79 WHEN + 46 + ( - AVG ( ALL - CAST( - 71 AS SIGNED ) ) ) THEN - 88 + 40 ELSE 7 * CAST( + CAST( NULL AS DECIMAL ) AS SIGNED ) - ( + 83 ) END + 66 THEN + 87 ELSE NULL END )
----
35
NULL

skipif mysql # not compatible
query II rowsort label-5469
SELECT DISTINCT 35 AS col1, ( + CASE - - 2 WHEN + CAST ( + 9 AS INTEGER ) * 93 * - AVG ( DISTINCT + + COALESCE ( - + 50, - 29 ) ) * - - 78 THEN + 53 + - COALESCE ( - 16, COUNT ( * ) ) WHEN 73 THEN 39 WHEN 84 * CASE 79 WHEN + 46 + ( - AVG ( ALL - CAST ( - 71 AS INTEGER ) ) ) THEN - 88 + 40 ELSE 7 * CAST ( + CAST ( NULL AS REAL ) AS INTEGER ) - ( + 83 ) END + 66 THEN + 87 ELSE NULL END )
----
35
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5470
SELECT 49 / - CAST( NULL AS DECIMAL ) + - 82 + 97 * 36 + - 85 * + 58 * + + COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5470
SELECT 49 / - CAST ( NULL AS REAL ) + - 82 + 97 * 36 + - 85 * + 58 * + + COUNT ( * ) AS col1
----
NULL

query II rowsort
SELECT ALL 2 AS col0, + 17 AS col2
----
2
17

query II rowsort
SELECT - 13 AS col2, + 95 * - - 58
----
-13
5510

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5474
SELECT ALL + COUNT( * ) + + + 12 + - 32 * + - SUM( DISTINCT + 4 ) * + 36 AS col1
----
4621

skipif mysql # not compatible
query I rowsort label-5474
SELECT ALL + COUNT ( * ) + + + 12 + - 32 * + - SUM ( DISTINCT + 4 ) * + 36 AS col1
----
4621

onlyif mysql # aggregate syntax: 
query I rowsort label-5475
SELECT 28 + + 46 + + + 58 + COUNT( * ) AS col0
----
133

skipif mysql # not compatible
query I rowsort label-5475
SELECT 28 + + 46 + + + 58 + COUNT ( * ) AS col0
----
133

onlyif mysql # aggregate syntax: 
query I rowsort label-5476
SELECT DISTINCT + SUM( 79 ) + - 68
----
11

skipif mysql # not compatible
query I rowsort label-5476
SELECT DISTINCT + SUM ( 79 ) + - 68
----
11

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5477
SELECT COUNT( * ) - + 17 + COALESCE ( + - 27, - - 28, + CAST( 16 AS SIGNED ) * + 6 ) / CAST( NULL AS SIGNED ) AS col0, + 18 + + 72 AS col1
----
NULL
90

skipif mysql # not compatible
query II rowsort label-5477
SELECT COUNT ( * ) - + 17 + COALESCE ( + - 27, - - 28, + CAST ( 16 AS INTEGER ) * + 6 ) / CAST ( NULL AS INTEGER ) AS col0, + 18 + + 72 AS col1
----
NULL
90

query I rowsort
SELECT ALL + 45 + 93 AS col2
----
138

query I rowsort
SELECT 27 * - 31 AS col2
----
-837

query I rowsort
SELECT 72 + 65
----
137

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5481
SELECT DISTINCT - CAST( NULL AS DECIMAL ) - - 90 + - 59 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5481
SELECT DISTINCT - CAST ( NULL AS REAL ) - - 90 + - 59 AS col0
----
NULL

query I rowsort
SELECT DISTINCT - CASE - - 17 WHEN 1 THEN - - 34 WHEN + + 63 THEN NULL ELSE NULL END
----
NULL

query I rowsort
SELECT DISTINCT 81 - - 56
----
137

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5485
SELECT DISTINCT 27 / + CASE - 12 WHEN - CAST( 2 AS SIGNED ) THEN NULL WHEN ( + 47 ) * - COALESCE ( + ( CAST( - COUNT( * ) AS SIGNED ) ), + - 21 ) * MIN( + + 53 ) THEN - 15 * - 31 ELSE NULL END * 98 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5485
SELECT DISTINCT 27 / + CASE - 12 WHEN - CAST ( 2 AS INTEGER ) THEN NULL WHEN ( + 47 ) * - COALESCE ( + ( CAST ( - COUNT ( * ) AS INTEGER ) ), + - 21 ) * MIN ( + + 53 ) THEN - 15 * - 31 ELSE NULL END * 98 AS col2
----
NULL

query I rowsort
SELECT + 22 * + - 55 AS col2
----
-1210

query I rowsort
SELECT + 61 - + 36 + - + 79 * - 5 col2
----
420

onlyif mysql # aggregate syntax: 
query I rowsort label-5488
SELECT ALL COUNT( * ) * - 3 * COUNT( * ) * - 68
----
204

skipif mysql # not compatible
query I rowsort label-5488
SELECT ALL COUNT ( * ) * - 3 * COUNT ( * ) * - 68
----
204

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5489
SELECT - CAST( 29 AS SIGNED ) * SUM( DISTINCT - 46 ) + + + 79 + + CASE - - 21 WHEN - 44 THEN - MIN( - 17 ) ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5489
SELECT - CAST ( 29 AS INTEGER ) * SUM ( DISTINCT - 46 ) + + + 79 + + CASE - - 21 WHEN - 44 THEN - MIN ( - 17 ) ELSE NULL END AS col2
----
NULL

query I rowsort
SELECT DISTINCT + 57 * - 97
----
-5529

onlyif mysql # aggregate syntax: 
query I rowsort label-5491
SELECT ALL + MAX( 74 ) * + 69 + + COUNT( * )
----
5107

skipif mysql # not compatible
query I rowsort label-5491
SELECT ALL + MAX ( 74 ) * + 69 + + COUNT ( * )
----
5107

query I rowsort
SELECT ALL 41 + - 51 AS col2
----
-10

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5494
SELECT DISTINCT 89 + - MIN( DISTINCT - + 83 )
----
172

skipif mysql # not compatible
query I rowsort label-5494
SELECT DISTINCT 89 + - MIN ( DISTINCT - + 83 )
----
172

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

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

query I rowsort
SELECT DISTINCT 3 + - 58 AS col2
----
-55

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

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

query I rowsort
SELECT - 4 + - 36 col0
----
-40

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5500
SELECT DISTINCT + + NULLIF ( - CASE - 13 WHEN + NULLIF ( 17, + 49 ) * - 91 + - + 98 THEN NULL ELSE - 35 + - CASE + CAST( - 13 AS SIGNED ) WHEN 16 THEN COUNT( - 18 ) ELSE NULL END END, 36 + CASE ( ( - CAST( NULL AS SIGNED ) ) ) WHEN 80 - COUNT( * ) * COUNT( * ) THEN + COUNT( * ) WHEN + 8 THEN NULL ELSE NULL END * - 63 ) + + 94
----
NULL

skipif mysql # not compatible
query I rowsort label-5500
SELECT DISTINCT + + NULLIF ( - CASE - 13 WHEN + NULLIF ( 17, + 49 ) * - 91 + - + 98 THEN NULL ELSE - 35 + - CASE + CAST ( - 13 AS INTEGER ) WHEN 16 THEN COUNT ( - 18 ) ELSE NULL END END, 36 + CASE ( ( - CAST ( NULL AS INTEGER ) ) ) WHEN 80 - COUNT ( * ) * COUNT ( * ) THEN + COUNT ( * ) WHEN + 8 THEN NULL ELSE NULL END * - 63 ) + + 94
----
NULL

query I rowsort
SELECT 31 + + 87
----
118

onlyif mysql # aggregate syntax: 
query I rowsort label-5502
SELECT DISTINCT ( - 24 ) + + MIN( ALL ( + 56 ) ) * + - 17 AS col2
----
-976

skipif mysql # not compatible
query I rowsort label-5502
SELECT DISTINCT ( - 24 ) + + MIN ( ALL ( + 56 ) ) * + - 17 AS col2
----
-976

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5503
SELECT CAST( NULL AS SIGNED ) * + - SUM( DISTINCT + - 7 ) / + - SUM( - 71 ) * - 90 + + CAST( NULL AS SIGNED ) * - + 85
----
NULL

skipif mysql # not compatible
query I rowsort label-5503
SELECT CAST ( NULL AS INTEGER ) * + - SUM ( DISTINCT + - 7 ) / + - SUM ( - 71 ) * - 90 + + CAST ( NULL AS INTEGER ) * - + 85
----
NULL

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

skipif mysql # not compatible
query I rowsort label-5504
SELECT CAST ( NULL AS INTEGER ) + - COUNT ( * ) + + - 24 * - 87 - 76 + 39 AS col2
----
NULL

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5506
SELECT ALL CAST( NULL AS SIGNED ) - 82
----
NULL

skipif mysql # not compatible
query I rowsort label-5506
SELECT ALL CAST ( NULL AS INTEGER ) - 82
----
NULL

query I rowsort
SELECT 46 * 13 col1
----
598

query I rowsort
SELECT ALL - 14 * - - 55
----
-770

onlyif mysql # aggregate syntax: 
query I rowsort label-5509
SELECT 53 - + + CASE - COALESCE ( + - 29, + 60 * + ( + 33 ) * 83 + + AVG ( - 71 ) ) WHEN - + COALESCE ( + 26, COUNT( DISTINCT - 65 ) * + 93 - 9 * 52, + 53 / - 92 ) THEN NULL WHEN 57 - - COUNT( * ) THEN NULL ELSE + 20 END * - 55 AS col2
----
1153

skipif mysql # not compatible
query I rowsort label-5509
SELECT 53 - + + CASE - COALESCE ( + - 29, + 60 * + ( + 33 ) * 83 + + AVG ( - 71 ) ) WHEN - + COALESCE ( + 26, COUNT ( DISTINCT - 65 ) * + 93 - 9 * 52, + 53 / - 92 ) THEN NULL WHEN 57 - - COUNT ( * ) THEN NULL ELSE + 20 END * - 55 AS col2
----
1153

onlyif mysql # aggregate syntax: 
query I rowsort label-5510
SELECT 65 / + + CASE SUM( ALL + - 48 ) WHEN + 7 * - ( - COUNT( * ) ) + - + ( - COUNT( 73 ) ) THEN NULL WHEN - + 78 + + 73 THEN NULL ELSE + + COUNT( * ) / + MAX( - CASE NULLIF ( ( 4 ), 39 ) WHEN 89 + + 68 THEN + 23 + 18 ELSE NULL END ) + + 22 END * ( + 23 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5510
SELECT 65 / + + CASE SUM ( ALL + - 48 ) WHEN + 7 * - ( - COUNT ( * ) ) + - + ( - COUNT ( 73 ) ) THEN NULL WHEN - + 78 + + 73 THEN NULL ELSE + + COUNT ( * ) / + MAX ( - CASE NULLIF ( ( 4 ), 39 ) WHEN 89 + + 68 THEN + 23 + 18 ELSE NULL END ) + + 22 END * ( + 23 )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5511
SELECT ALL - 23 DIV - 79 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-5511
SELECT ALL - 23 / - 79 AS col2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5512
SELECT 51 DIV + - 81 * - 74 + - 7 AS col0
----
-7

skipif mysql # not compatible
query I rowsort label-5512
SELECT 51 / + - 81 * - 74 + - 7 AS col0
----
-7

query I rowsort
SELECT ALL - 14 * + 69 AS col0
----
-966

onlyif mysql # DIV for integer division: 
query I rowsort label-5514
SELECT 43 DIV - 99 * + ( + + 85 )
----
0

skipif mysql # not compatible
query I rowsort label-5514
SELECT 43 / - 99 * + ( + + 85 )
----
0

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5516
SELECT + 20 * 33 * - 90 * + 69 * + CAST( 67 AS SIGNED ) + - COUNT( * )
----
-274606201

skipif mysql # not compatible
query I rowsort label-5516
SELECT + 20 * 33 * - 90 * + 69 * + CAST ( 67 AS INTEGER ) + - COUNT ( * )
----
-274606201

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5517
SELECT COUNT( ALL - 70 ) * CAST( NULL AS DECIMAL ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5517
SELECT COUNT ( ALL - 70 ) * CAST ( NULL AS REAL ) AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5518
SELECT MAX( DISTINCT 59 ) DIV - COUNT( * ) + 21 + - 84 * - 57 + - 27 col0
----
4723

skipif mysql # not compatible
query I rowsort label-5518
SELECT MAX ( DISTINCT 59 ) / - COUNT ( * ) + 21 + - 84 * - 57 + - 27 col0
----
4723

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5519
SELECT - 59 + - CAST( - CASE 40 WHEN + 84 THEN NULL ELSE AVG ( + 46 ) END AS SIGNED ) AS col0
----
-13

skipif mysql # not compatible
query I rowsort label-5519
SELECT - 59 + - CAST ( - CASE 40 WHEN + 84 THEN NULL ELSE AVG ( + 46 ) END AS INTEGER ) AS col0
----
-13

query I rowsort
SELECT ALL + 19 * 8
----
152

onlyif mysql # aggregate syntax: 
query I rowsort label-5521
SELECT + CASE - 40 WHEN - 60 * + - CASE 41 WHEN - SUM( DISTINCT + + 53 ) THEN + + 34 * 82 END * + - 36 THEN NULL WHEN - SUM( - + 82 ) THEN 16 * + 42 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5521
SELECT + CASE - 40 WHEN - 60 * + - CASE 41 WHEN - SUM ( DISTINCT + + 53 ) THEN + + 34 * 82 END * + - 36 THEN NULL WHEN - SUM ( - + 82 ) THEN 16 * + 42 END AS col0
----
NULL

query I rowsort
SELECT ALL + 70 + - + 31 AS col1
----
39

onlyif mysql # DIV for integer division: 
query II rowsort label-5523
SELECT ALL 34 * 91 - + - NULLIF ( - + 32, - 88 ) AS col1, + 11 DIV - 64 * - + 70 AS col0
----
3062
0

skipif mysql # not compatible
query II rowsort label-5523
SELECT ALL 34 * 91 - + - NULLIF ( - + 32, - 88 ) AS col1, + 11 / - 64 * - + 70 AS col0
----
3062
0

onlyif mysql # aggregate syntax: 
query II rowsort label-5524
SELECT DISTINCT + 37 + 81 * - 44, - COUNT( ALL + - 33 ) + - - 16 + 96 * - - 33 AS col1
----
-3527
3183

skipif mysql # not compatible
query II rowsort label-5524
SELECT DISTINCT + 37 + 81 * - 44, - COUNT ( ALL + - 33 ) + - - 16 + 96 * - - 33 AS col1
----
-3527
3183

query I rowsort
SELECT ALL - 78 + - 13
----
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-5526
SELECT + CASE 66 WHEN + 16 THEN NULL WHEN 80 THEN 73 / + 30 * 9 * - 10 + - - 33 + + 95 - + - 80 * - - ( 94 ) * + - 89 + 24 + + 52 * 93 ELSE NULL END / - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-5526
SELECT + CASE 66 WHEN + 16 THEN NULL WHEN 80 THEN 73 / + 30 * 9 * - 10 + - - 33 + + 95 - + - 80 * - - ( 94 ) * + - 89 + 24 + + 52 * 93 ELSE NULL END / - COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5527
SELECT ( + + 22 ) + - 41 DIV + CASE WHEN + COUNT( * ) IS NOT NULL THEN 64 ELSE + - 74 END
----
22

skipif mysql # not compatible
query I rowsort label-5527
SELECT ( + + 22 ) + - 41 / + CASE WHEN + COUNT ( * ) IS NOT NULL THEN 64 ELSE + - 74 END
----
22

query I rowsort
SELECT ALL + + 27 + - 30 col2
----
-3

query I rowsort
SELECT ALL 1 * - 48
----
-48

query II rowsort
SELECT + + 55 AS col2, + 60 AS col0
----
55
60

query I rowsort
SELECT - + 97 * 50 * - 11 + - 51
----
53299

onlyif mysql # DIV for integer division: 
query I rowsort label-5532
SELECT - 88 DIV ( - 68 ) * + 74
----
74

skipif mysql # not compatible
query I rowsort label-5532
SELECT - 88 / ( - 68 ) * + 74
----
74

onlyif mysql # aggregate syntax: 
query II rowsort label-5533
SELECT DISTINCT - 60 col2, + ( - SUM( ALL 29 ) )
----
-60
-29

skipif mysql # not compatible
query II rowsort label-5533
SELECT DISTINCT - 60 col2, + ( - SUM ( ALL 29 ) )
----
-60
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-5534
SELECT DISTINCT - 21 + SUM( DISTINCT - + 43 ) AS col0
----
-64

skipif mysql # not compatible
query I rowsort label-5534
SELECT DISTINCT - 21 + SUM ( DISTINCT - + 43 ) AS col0
----
-64

query I rowsort
SELECT ALL + 63 + + 10
----
73

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5537
SELECT DISTINCT - SUM( DISTINCT - 42 ) * - ( - COUNT( * ) )
----
42

skipif mysql # not compatible
query I rowsort label-5537
SELECT DISTINCT - SUM ( DISTINCT - 42 ) * - ( - COUNT ( * ) )
----
42

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

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

query I rowsort
SELECT DISTINCT ( + - 76 ) - 15
----
-91

query I rowsort
SELECT ALL 59 - 78 AS col2
----
-19

onlyif mysql # DIV for integer division: 
query I rowsort label-5541
SELECT + 65 DIV - - 8 AS col2
----
8

skipif mysql # not compatible
query I rowsort label-5541
SELECT + 65 / - - 8 AS col2
----
8

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5542
SELECT ALL 34 AS col1, - 97 DIV + COUNT( * )
----
34
-97

skipif mysql # not compatible
query II rowsort label-5542
SELECT ALL 34 AS col1, - 97 / + COUNT ( * )
----
34
-97

query I rowsort
SELECT - ( - 37 ) * + + 70 + 85 * - - 22
----
4460

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5545
SELECT ALL COUNT( * ) - - 97 + - COALESCE ( CAST( NULL AS SIGNED ), - + 62 ) * 58 * + 31 + 99 AS col2
----
111673

skipif mysql # not compatible
query I rowsort label-5545
SELECT ALL COUNT ( * ) - - 97 + - COALESCE ( CAST ( NULL AS INTEGER ), - + 62 ) * 58 * + 31 + 99 AS col2
----
111673

query II rowsort
SELECT DISTINCT 93 col0, 83
----
93
83

query I rowsort
SELECT + COALESCE ( + 9, + 14 ) * + - NULLIF ( 90, - - 43 * + + 13 * + 61 + - - 8 / ( + + 69 ) )
----
-810

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

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-5550
SELECT ALL MAX( DISTINCT - 48 ) AS col1, + 34 AS col2
----
-48
34

skipif mysql # not compatible
query II rowsort label-5550
SELECT ALL MAX ( DISTINCT - 48 ) AS col1, + 34 AS col2
----
-48
34

onlyif mysql # aggregate syntax: 
query I rowsort label-5551
SELECT - COUNT( * ) + - 64
----
-65

skipif mysql # not compatible
query I rowsort label-5551
SELECT - COUNT ( * ) + - 64
----
-65

query I rowsort
SELECT ALL 69 * ( - 49 )
----
-3381

query I rowsort
SELECT + 75 * - - 85
----
6375

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5555
SELECT ( + MAX( - - 42 ) ) AS col1
----
42

skipif mysql # not compatible
query I rowsort label-5555
SELECT ( + MAX ( - - 42 ) ) AS col1
----
42

query I rowsort
SELECT + 45 * + - 45
----
-2025

query I rowsort
SELECT ALL 72 * - ( + NULLIF ( - 54, + 14 ) ) + 51 * + 80
----
7968

onlyif mysql # aggregate syntax: 
query I rowsort label-5558
SELECT ALL SUM( 92 ) * - 78 + COUNT( * ) + - + 53
----
-7228

skipif mysql # not compatible
query I rowsort label-5558
SELECT ALL SUM ( 92 ) * - 78 + COUNT ( * ) + - + 53
----
-7228

onlyif mysql # aggregate syntax: 
query I rowsort label-5559
SELECT ALL + 0 * - 75 + - MIN( DISTINCT - - 38 ) * - COUNT( * ) + ( - 85 ) AS col1
----
-47

skipif mysql # not compatible
query I rowsort label-5559
SELECT ALL + 0 * - 75 + - MIN ( DISTINCT - - 38 ) * - COUNT ( * ) + ( - 85 ) AS col1
----
-47

query I rowsort
SELECT COALESCE ( 89, - 7 ) AS col1
----
89

query I rowsort
SELECT DISTINCT - 49 * 69
----
-3381

onlyif mysql # DIV for integer division: 
query I rowsort label-5562
SELECT - 6 DIV 85 + + + 66 - + + 55 DIV + + 82 * + 7 + + 6 AS col0
----
72

skipif mysql # not compatible
query I rowsort label-5562
SELECT - 6 / 85 + + + 66 - + + 55 / + + 82 * + 7 + + 6 AS col0
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-5563
SELECT - COUNT( * ) - 11 + + 60 AS col0
----
48

skipif mysql # not compatible
query I rowsort label-5563
SELECT - COUNT ( * ) - 11 + + 60 AS col0
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-5564
SELECT - + 22 * + MAX( DISTINCT + 41 ) AS col2
----
-902

skipif mysql # not compatible
query I rowsort label-5564
SELECT - + 22 * + MAX ( DISTINCT + 41 ) AS col2
----
-902

onlyif mysql # aggregate syntax: 
query I rowsort label-5565
SELECT ALL + CASE 98 WHEN - + COUNT( * ) THEN + 10 ELSE NULL END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5565
SELECT ALL + CASE 98 WHEN - + COUNT ( * ) THEN + 10 ELSE NULL END col1
----
NULL

query I rowsort
SELECT ALL - + 91 * 86 - + 84 + - 82 * - 21 + 21 + - 22 + - + 46 + - 83 * - 72 * + 28 * - ( 0 ) AS col1
----
-6235

query I rowsort
SELECT - + 52 + + 17 AS col1
----
-35

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5568
SELECT + - 67, - CASE COUNT( * ) WHEN - 72 * + 2 - 69 THEN NULL ELSE - + 92 - CASE + 80 WHEN - - 50 * - - 99 * + 43 * - 33 - - 80 THEN - NULLIF ( COUNT( * ), 64 ) DIV 47 ELSE + ( + MIN( COALESCE ( 17, 2, 57 ) ) ) * 25 END DIV 52 END DIV + 62 AS col2
----
-67
1

skipif mysql # not compatible
query II rowsort label-5568
SELECT + - 67, - CASE COUNT ( * ) WHEN - 72 * + 2 - 69 THEN NULL ELSE - + 92 - CASE + 80 WHEN - - 50 * - - 99 * + 43 * - 33 - - 80 THEN - NULLIF ( COUNT ( * ), 64 ) / 47 ELSE + ( + MIN ( COALESCE ( 17, 2, 57 ) ) ) * 25 END / 52 END / + 62 AS col2
----
-67
1

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

skipif mysql # not compatible
query I rowsort label-5569
SELECT MAX ( DISTINCT ( - 64 ) )
----
-64

query I rowsort
SELECT - + 7 * + 42 * 53 + + ( - 57 ) AS col2
----
-15639

query I rowsort
SELECT DISTINCT - - 33 * + 19
----
627

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5572
SELECT - 95 * + - COUNT( * ) DIV + - COUNT( * ) AS col0
----
-95

skipif mysql # not compatible
query I rowsort label-5572
SELECT - 95 * + - COUNT ( * ) / + - COUNT ( * ) AS col0
----
-95

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5574
SELECT DISTINCT - + ( - COUNT( * ) ) * + 5 - + + 63 + + 78 + + 32 * - + 61
----
-1932

skipif mysql # not compatible
query I rowsort label-5574
SELECT DISTINCT - + ( - COUNT ( * ) ) * + 5 - + + 63 + + 78 + + 32 * - + 61
----
-1932

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5576
SELECT - CASE COUNT( * ) WHEN - 48 THEN - + 99 + 1 ELSE - - 35 END AS col1
----
-35

skipif mysql # not compatible
query I rowsort label-5576
SELECT - CASE COUNT ( * ) WHEN - 48 THEN - + 99 + 1 ELSE - - 35 END AS col1
----
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-5577
SELECT ALL - COUNT( * ) * 63 AS col1
----
-63

skipif mysql # not compatible
query I rowsort label-5577
SELECT ALL - COUNT ( * ) * 63 AS col1
----
-63

query I rowsort
SELECT + 47 * + 6 * - 98
----
-27636

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5579
SELECT - 59 * + 7 * - CAST( MAX( 87 ) AS SIGNED )
----
35931

skipif mysql # not compatible
query I rowsort label-5579
SELECT - 59 * + 7 * - CAST ( MAX ( 87 ) AS INTEGER )
----
35931

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5582
SELECT + 11 DIV - 40
----
0

skipif mysql # not compatible
query I rowsort label-5582
SELECT + 11 / - 40
----
0

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5584
SELECT DISTINCT + CAST( - + 78 AS SIGNED ) * + 84
----
-6552

skipif mysql # not compatible
query I rowsort label-5584
SELECT DISTINCT + CAST ( - + 78 AS INTEGER ) * + 84
----
-6552

query I rowsort
SELECT + ( 81 ) + - - 89 AS col0
----
170

onlyif mysql # aggregate syntax: 
query I rowsort label-5586
SELECT + MAX( - + 37 ) + + ( - + 52 ) * - ( + 91 ) * 90 + - 3 * 39 + - 57 AS col1
----
425669

skipif mysql # not compatible
query I rowsort label-5586
SELECT + MAX ( - + 37 ) + + ( - + 52 ) * - ( + 91 ) * 90 + - 3 * 39 + - 57 AS col1
----
425669

onlyif mysql # DIV for integer division: 
query I rowsort label-5587
SELECT - 75 DIV - + 77 * 35
----
0

skipif mysql # not compatible
query I rowsort label-5587
SELECT - 75 / - + 77 * 35
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5588
SELECT + CASE COUNT( * ) WHEN + 52 THEN NULL WHEN - 52 THEN - COUNT( * ) WHEN - 96 THEN NULL ELSE NULL END / 31
----
NULL

skipif mysql # not compatible
query I rowsort label-5588
SELECT + CASE COUNT ( * ) WHEN + 52 THEN NULL WHEN - 52 THEN - COUNT ( * ) WHEN - 96 THEN NULL ELSE NULL END / 31
----
NULL

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-5590
SELECT DISTINCT 4 DIV + + 25, + 69 * + 31 AS col0
----
0
2139

skipif mysql # not compatible
query II rowsort label-5590
SELECT DISTINCT 4 / + + 25, + 69 * + 31 AS col0
----
0
2139

query II rowsort
SELECT ALL 63 + + - 74, 32 AS col1
----
-11
32

onlyif mysql # DIV for integer division: 
query I rowsort label-5592
SELECT + 69 + + 65 DIV + 93
----
69

skipif mysql # not compatible
query I rowsort label-5592
SELECT + 69 + + 65 / + 93
----
69

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5593
SELECT + 21 * + MAX( DISTINCT - + CAST( + + 69 AS SIGNED ) )
----
-1449

skipif mysql # not compatible
query I rowsort label-5593
SELECT + 21 * + MAX ( DISTINCT - + CAST ( + + 69 AS INTEGER ) )
----
-1449

query I rowsort
SELECT + 39 + 11 AS col2
----
50

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5595
SELECT ALL 11 DIV + 31 + - COUNT( * ) + - - 55
----
54

skipif mysql # not compatible
query I rowsort label-5595
SELECT ALL 11 / + 31 + - COUNT ( * ) + - - 55
----
54

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5596
SELECT ALL 23 DIV COUNT( * ) + - 33
----
-10

skipif mysql # not compatible
query I rowsort label-5596
SELECT ALL 23 / COUNT ( * ) + - 33
----
-10

query I rowsort
SELECT + 77 + - + 25 AS col0
----
52

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5598
SELECT + SUM( - 56 ) DIV 11 + - 87 + - COUNT( * ) * - 79 + + SUM( + - 82 ) AS col1
----
-95

skipif mysql # not compatible
query I rowsort label-5598
SELECT + SUM ( - 56 ) / 11 + - 87 + - COUNT ( * ) * - 79 + + SUM ( + - 82 ) AS col1
----
-95

query I rowsort
SELECT - 44 * - 86 * 11 - 63
----
41561

query I rowsort
SELECT ALL + 96 - + + 81 AS col0
----
15

query II rowsort
SELECT DISTINCT + 4 * - 21, + 80 AS col2
----
-84
80

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query I rowsort label-5602
SELECT DISTINCT - CASE 69 WHEN - 65 THEN + 93 WHEN + - COUNT( * ) + - 13 THEN + CASE + NULLIF ( - - 15, - CASE + 62 WHEN - - ( + ( + 89 ) ) DIV 82 THEN - 63 + + 24 * CAST( SUM( 47 ) * + 7 - - 37 AS DECIMAL ) END ) WHEN 24 * ( - SUM( 14 ) ) + ( 44 ) THEN + 25 + 87 END ELSE 78 END DIV + 24
----
-3

skipif mysql # not compatible
query I rowsort label-5602
SELECT DISTINCT - CASE 69 WHEN - 65 THEN + 93 WHEN + - COUNT ( * ) + - 13 THEN + CASE + NULLIF ( - - 15, - CASE + 62 WHEN - - ( + ( + 89 ) ) / 82 THEN - 63 + + 24 * CAST ( SUM ( 47 ) * + 7 - - 37 AS REAL ) END ) WHEN 24 * ( - SUM ( 14 ) ) + ( 44 ) THEN + 25 + 87 END ELSE 78 END / + 24
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-5603
SELECT + 46 DIV + 77 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-5603
SELECT + 46 / + 77 AS col2
----
0

query I rowsort
SELECT + 16 * - 0 + 58 AS col0
----
58

query I rowsort
SELECT DISTINCT + ( - + 45 ) * - 75 col0
----
3375

onlyif mysql # aggregate syntax: 
query I rowsort label-5606
SELECT COALESCE ( + + CASE + - 60 WHEN - SUM( 32 ) THEN NULL ELSE + + 85 END, + 63, - - 62 + + 98 + 87 * - - 5 ) * ( - 74 ) AS col0
----
-6290

skipif mysql # not compatible
query I rowsort label-5606
SELECT COALESCE ( + + CASE + - 60 WHEN - SUM ( 32 ) THEN NULL ELSE + + 85 END, + 63, - - 62 + + 98 + 87 * - - 5 ) * ( - 74 ) AS col0
----
-6290

query I rowsort
SELECT + ( - + 84 ) * - - ( 91 ) AS col1
----
-7644

onlyif mysql # aggregate syntax: 
query II rowsort label-5608
SELECT DISTINCT 80 AS col1, + SUM( DISTINCT + - 96 ) * + 69
----
80
-6624

skipif mysql # not compatible
query II rowsort label-5608
SELECT DISTINCT 80 AS col1, + SUM ( DISTINCT + - 96 ) * + 69
----
80
-6624

query II rowsort
SELECT DISTINCT 38 AS col0, 14 * 13
----
38
182

onlyif mysql # DIV for integer division: 
query II rowsort label-5610
SELECT DISTINCT 89 AS col2, 8 DIV 6
----
89
1

skipif mysql # not compatible
query II rowsort label-5610
SELECT DISTINCT 89 AS col2, 8 / 6
----
89
1

query I rowsort
SELECT 36 * + + 57 AS col0
----
2052

query I rowsort
SELECT 72 + - + 69
----
3

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

skipif mysql # not compatible
query II rowsort label-5613
SELECT ALL 95, - COUNT ( * ) AS col2
----
95
-1

query II rowsort
SELECT 11 AS col0, + 85 * + 13 - - 10 + - 47 + + 23 AS col0
----
11
1091

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5615
SELECT ALL + 55 + + 0 DIV - + 65 + 76 AS col2, 89 + COUNT( DISTINCT 35 )
----
131
90

skipif mysql # not compatible
query II rowsort label-5615
SELECT ALL + 55 + + 0 / - + 65 + 76 AS col2, 89 + COUNT ( DISTINCT 35 )
----
131
90

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5616
SELECT ALL + 92 + + + NULLIF ( - NULLIF ( ( - 41 ), + COUNT( * ) ), - + COALESCE ( - 28, - 56 + MAX( ALL - 37 ) * - 53 + - 86 ) ) - + COUNT( * ) + + 26 * - + 81 + - 35 + COUNT( * ) DIV 80 AS col0
----
-2009

skipif mysql # not compatible
query I rowsort label-5616
SELECT ALL + 92 + + + NULLIF ( - NULLIF ( ( - 41 ), + COUNT ( * ) ), - + COALESCE ( - 28, - 56 + MAX ( ALL - 37 ) * - 53 + - 86 ) ) - + COUNT ( * ) + + 26 * - + 81 + - 35 + COUNT ( * ) / 80 AS col0
----
-2009

onlyif mysql # aggregate syntax: 
query I rowsort label-5617
SELECT 62 * + COALESCE ( - 4, - MIN( - 14 ) * - 12 * + ( + - 3 ) ) * - + 36 + - ( COUNT( * ) ) + + + ( 91 ) + + 97 AS col0
----
9115

skipif mysql # not compatible
query I rowsort label-5617
SELECT 62 * + COALESCE ( - 4, - MIN ( - 14 ) * - 12 * + ( + - 3 ) ) * - + 36 + - ( COUNT ( * ) ) + + + ( 91 ) + + 97 AS col0
----
9115

onlyif mysql # aggregate syntax: 
query II rowsort label-5618
SELECT SUM( + - 58 ) + 59, - 44 AS col0
----
1
-44

skipif mysql # not compatible
query II rowsort label-5618
SELECT SUM ( + - 58 ) + 59, - 44 AS col0
----
1
-44

query I rowsort
SELECT DISTINCT + 83 * - 1 AS col1
----
-83

onlyif mysql # DIV for integer division: 
query I rowsort label-5620
SELECT DISTINCT + 10 + - - 94 * ( 91 ) DIV - 42 - + 74 + 50 * + 72
----
3333

skipif mysql # not compatible
query I rowsort label-5620
SELECT DISTINCT + 10 + - - 94 * ( 91 ) / - 42 - + 74 + 50 * + 72
----
3333

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

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

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

query I rowsort
SELECT DISTINCT - 38 + 53 - + - ( - 30 )
----
-15

query II rowsort
SELECT 49, 79 AS col0
----
49
79

onlyif mysql # aggregate syntax: 
query II rowsort label-5625
SELECT ALL 10 + + - 84 * + 54, 13 * ( COUNT( * ) ) col2
----
-4526
13

skipif mysql # not compatible
query II rowsort label-5625
SELECT ALL 10 + + - 84 * + 54, 13 * ( COUNT ( * ) ) col2
----
-4526
13

query I rowsort
SELECT ALL - 20 + - 61 - - 6 * + + 28 AS col2
----
87

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5628
SELECT + ( + + 39 ) DIV - 26
----
-1

skipif mysql # not compatible
query I rowsort label-5628
SELECT + ( + + 39 ) / - 26
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5629
SELECT 69 * - 45 + - COUNT( * )
----
-3106

skipif mysql # not compatible
query I rowsort label-5629
SELECT 69 * - 45 + - COUNT ( * )
----
-3106

onlyif mysql # aggregate syntax: 
query II rowsort label-5630
SELECT + COUNT( * ) AS col0, 23 + - 3 * - + 10 * 19 * + 72 AS col2
----
1
41063

skipif mysql # not compatible
query II rowsort label-5630
SELECT + COUNT ( * ) AS col0, 23 + - 3 * - + 10 * 19 * + 72 AS col2
----
1
41063

query II rowsort
SELECT - - 28 AS col0, 82 + - 63
----
28
19

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

skipif mysql # not compatible
query I rowsort label-5632
SELECT - 14 * - COUNT ( * )
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-5633
SELECT NULLIF ( 80, COUNT( * ) / + - 30 + + - COUNT( * ) * - - 50 ) * + COUNT( * ) AS col1
----
80

skipif mysql # not compatible
query I rowsort label-5633
SELECT NULLIF ( 80, COUNT ( * ) / + - 30 + + - COUNT ( * ) * - - 50 ) * + COUNT ( * ) AS col1
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-5634
SELECT + ( - 88 ) * + - COALESCE ( + COUNT( * ), - + NULLIF ( - 40, 54 ) ) * - + 98 AS col2
----
-8624

skipif mysql # not compatible
query I rowsort label-5634
SELECT + ( - 88 ) * + - COALESCE ( + COUNT ( * ), - + NULLIF ( - 40, 54 ) ) * - + 98 AS col2
----
-8624

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5635
SELECT ALL + 16 DIV + 29 * + - MIN( + 76 )
----
0

skipif mysql # not compatible
query I rowsort label-5635
SELECT ALL + 16 / + 29 * + - MIN ( + 76 )
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5636
SELECT - 28 DIV COALESCE ( 74, - - 19, - 4 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-5636
SELECT - 28 / COALESCE ( 74, - - 19, - 4 ) AS col0
----
0

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

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

skipif mysql # not compatible
query I rowsort label-5638
SELECT COALESCE ( - 90, 90 * + - 87 ) * + COUNT ( + 69 )
----
-90

onlyif mysql # aggregate syntax: 
query II rowsort label-5639
SELECT DISTINCT - + 20, 82 * + COUNT( * ) AS col0
----
-20
82

skipif mysql # not compatible
query II rowsort label-5639
SELECT DISTINCT - + 20, 82 * + COUNT ( * ) AS col0
----
-20
82

onlyif mysql # aggregate syntax: 
query I rowsort label-5640
SELECT 99 * + + 42 + - 59 + COUNT( * )
----
4100

skipif mysql # not compatible
query I rowsort label-5640
SELECT 99 * + + 42 + - 59 + COUNT ( * )
----
4100

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5641
SELECT 0 / ( + + 14 ) + COUNT( * ) + + 22 / - CASE - 61 WHEN + 29 * - 14 * + - 49 THEN NULL WHEN - 9 + + CASE + 16 WHEN - 19 THEN NULL ELSE - NULLIF ( + 80, 91 + - 83 ) END + + 29 / CAST( NULL AS DECIMAL ) * 28 THEN - 9 * 90 - - 19 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5641
SELECT 0 / ( + + 14 ) + COUNT ( * ) + + 22 / - CASE - 61 WHEN + 29 * - 14 * + - 49 THEN NULL WHEN - 9 + + CASE + 16 WHEN - 19 THEN NULL ELSE - NULLIF ( + 80, 91 + - 83 ) END + + 29 / CAST ( NULL AS REAL ) * 28 THEN - 9 * 90 - - 19 END AS col2
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5643
SELECT + 44 - + - 28 - COUNT( * )
----
71

skipif mysql # not compatible
query I rowsort label-5643
SELECT + 44 - + - 28 - COUNT ( * )
----
71

query I rowsort
SELECT - 13 * + 18 * + 49 AS col0
----
-11466

query I rowsort
SELECT 56 + + 9 + - - ( - 94 ) * + - 80 + + 62 + - - 66 AS col2
----
7713

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

skipif mysql # not compatible
query I rowsort label-5646
SELECT ALL - - MAX ( ( 43 ) )
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-5647
SELECT - SUM( DISTINCT + ( 98 ) ) * 64 + - COUNT( * ) + + 1
----
-6272

skipif mysql # not compatible
query I rowsort label-5647
SELECT - SUM ( DISTINCT + ( 98 ) ) * 64 + - COUNT ( * ) + + 1
----
-6272

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5648
SELECT ( MIN( + 17 ) ) DIV CAST( + - NULLIF ( - 65, - 48 * 65 * 98 - - - COALESCE ( - COUNT( * ), - + 7, - - 27 * - ( - NULLIF ( - 14, + + 85 + - + COUNT( * ) ) ) + + 78 ) ) AS SIGNED ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-5648
SELECT ( MIN ( + 17 ) ) / CAST ( + - NULLIF ( - 65, - 48 * 65 * 98 - - - COALESCE ( - COUNT ( * ), - + 7, - - 27 * - ( - NULLIF ( - 14, + + 85 + - + COUNT ( * ) ) ) + + 78 ) ) AS INTEGER ) AS col0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5649
SELECT 50 + + CAST( NULL AS SIGNED ), 46 AS col2
----
NULL
46

skipif mysql # not compatible
query II rowsort label-5649
SELECT 50 + + CAST ( NULL AS INTEGER ), 46 AS col2
----
NULL
46

query I rowsort
SELECT ALL + 69 + - - 34 + - 22
----
81

query I rowsort
SELECT 66 - + - 71
----
137

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5652
SELECT ( 72 ) DIV MIN( ALL - + 8 ) AS col1
----
-9

skipif mysql # not compatible
query I rowsort label-5652
SELECT ( 72 ) / MIN ( ALL - + 8 ) AS col1
----
-9

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5653
SELECT 72 DIV 3 * + COALESCE ( - COUNT( * ), 64 ) AS col0
----
-24

skipif mysql # not compatible
query I rowsort label-5653
SELECT 72 / 3 * + COALESCE ( - COUNT ( * ), 64 ) AS col0
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-5654
SELECT 75 + - 83 * + COUNT( * ) AS col0
----
-8

skipif mysql # not compatible
query I rowsort label-5654
SELECT 75 + - 83 * + COUNT ( * ) AS col0
----
-8

query I rowsort
SELECT DISTINCT 29 * - + 35 * 59
----
-59885

query I rowsort
SELECT ALL - 24 + 96 - + 0 AS col0
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-5657
SELECT ALL + 69 + 83 * + + COUNT( * ) + + + 67 AS col1
----
219

skipif mysql # not compatible
query I rowsort label-5657
SELECT ALL + 69 + 83 * + + COUNT ( * ) + + + 67 AS col1
----
219

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5658
SELECT CAST( - ( COUNT( * ) ) AS SIGNED ) + - - 77 + - 32 * - CAST( - + 61 AS SIGNED ) * + - ( - 95 ) + - 85
----
-185449

skipif mysql # not compatible
query I rowsort label-5658
SELECT CAST ( - ( COUNT ( * ) ) AS INTEGER ) + - - 77 + - 32 * - CAST ( - + 61 AS INTEGER ) * + - ( - 95 ) + - 85
----
-185449

query I rowsort
SELECT ALL + 97 * - 86
----
-8342

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5660
SELECT ALL 52 + - - 98 AS col2, CAST( + + 74 AS SIGNED ) col2
----
150
74

skipif mysql # not compatible
query II rowsort label-5660
SELECT ALL 52 + - - 98 AS col2, CAST ( + + 74 AS INTEGER ) col2
----
150
74

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5662
SELECT ALL SUM( + 15 ) AS col1
----
15

skipif mysql # not compatible
query I rowsort label-5662
SELECT ALL SUM ( + 15 ) AS col1
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-5663
SELECT 97 * SUM( DISTINCT 71 ) AS col1
----
6887

skipif mysql # not compatible
query I rowsort label-5663
SELECT 97 * SUM ( DISTINCT 71 ) AS col1
----
6887

query I rowsort
SELECT DISTINCT + 88 + - 30 AS col2
----
58

query I rowsort
SELECT - 98 + - 47
----
-145

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5668
SELECT DISTINCT - - 56 - - COUNT( * ) + - - COUNT( + 53 ) * + 2 AS col0
----
59

skipif mysql # not compatible
query I rowsort label-5668
SELECT DISTINCT - - 56 - - COUNT ( * ) + - - COUNT ( + 53 ) * + 2 AS col0
----
59

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-5670
SELECT ALL + 59 DIV + 7 AS col1, - 54
----
8
-54

skipif mysql # not compatible
query II rowsort label-5670
SELECT ALL + 59 / + 7 AS col1, - 54
----
8
-54

query I rowsort
SELECT DISTINCT ( - 59 ) * - 77 * + 90 AS col0
----
408870

query I rowsort
SELECT - + 74 + - - 53 * 9
----
403

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5674
SELECT ALL - CAST( NULL AS SIGNED ) * + 45 - - + 68 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5674
SELECT ALL - CAST ( NULL AS INTEGER ) * + 45 - - + 68 col0
----
NULL

query I rowsort
SELECT ALL + + NULLIF ( 33, 94 )
----
33

onlyif mysql # aggregate syntax: 
query II rowsort label-5676
SELECT DISTINCT + MIN( DISTINCT - 27 ) col2, NULLIF ( - - MAX( + 82 ), + 56 + - COUNT( * ) - - - 43 * 50 ) AS col0
----
-27
82

skipif mysql # not compatible
query II rowsort label-5676
SELECT DISTINCT + MIN ( DISTINCT - 27 ) col2, NULLIF ( - - MAX ( + 82 ), + 56 + - COUNT ( * ) - - - 43 * 50 ) AS col0
----
-27
82

onlyif mysql # aggregate syntax: 
query I rowsort label-5677
SELECT + 93 * COUNT( * ) * + 82 + - - 94
----
7720

skipif mysql # not compatible
query I rowsort label-5677
SELECT + 93 * COUNT ( * ) * + 82 + - - 94
----
7720

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5678
SELECT - 5 / - 50 + + 80 * + + 71 + - + CAST( NULL AS SIGNED ), 68 AS col0
----
NULL
68

skipif mysql # not compatible
query II rowsort label-5678
SELECT - 5 / - 50 + + 80 * + + 71 + - + CAST ( NULL AS INTEGER ), 68 AS col0
----
NULL
68

onlyif mysql # DIV for integer division: 
query I rowsort label-5679
SELECT - + 47 * + - 18 + + 76 - - 79 + - - 56 DIV + ( + 83 )
----
1001

skipif mysql # not compatible
query I rowsort label-5679
SELECT - + 47 * + - 18 + + 76 - - 79 + - - 56 / + ( + 83 )
----
1001

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

query I rowsort
SELECT ALL + NULLIF ( + 83, - + 82 )
----
83

query I rowsort
SELECT DISTINCT 99 * - 50 AS col1
----
-4950

onlyif mysql # aggregate syntax: 
query II rowsort label-5683
SELECT + 68 * 63 AS col1, - COALESCE ( 27, - NULLIF ( + 46, MAX( 25 ) ), + COUNT( * ) )
----
4284
-27

skipif mysql # not compatible
query II rowsort label-5683
SELECT + 68 * 63 AS col1, - COALESCE ( 27, - NULLIF ( + 46, MAX ( 25 ) ), + COUNT ( * ) )
----
4284
-27

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5684
SELECT ALL - 50 * - 47 / + CASE + CASE - COUNT( * ) WHEN + 2 - SUM( + - 65 ) / - + 49 THEN NULL ELSE - - 2 + - COUNT( * ) END WHEN - COALESCE ( + - 83, + 31 * ( + COUNT( * ) ), + 42 ) * + ( - - ( - AVG ( DISTINCT 95 ) ) ) + COUNT( * ) * + 45 THEN + 96 / 90 WHEN + 24 THEN NULL ELSE - 54 END / + CAST( NULL AS SIGNED ) + CAST( - 82 AS DECIMAL ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5684
SELECT ALL - 50 * - 47 / + CASE + CASE - COUNT ( * ) WHEN + 2 - SUM ( + - 65 ) / - + 49 THEN NULL ELSE - - 2 + - COUNT ( * ) END WHEN - COALESCE ( + - 83, + 31 * ( + COUNT ( * ) ), + 42 ) * + ( - - ( - AVG ( DISTINCT 95 ) ) ) + COUNT ( * ) * + 45 THEN + 96 / 90 WHEN + 24 THEN NULL ELSE - 54 END / + CAST ( NULL AS INTEGER ) + CAST ( - 82 AS REAL ) AS col2
----
NULL

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5687
SELECT ALL COUNT( ALL + + 99 ) * - + COUNT( * ) + - SUM( + 6 ) + 13 * 23 * 60 + - 94 + 3 * - 60 * - 52 + + CAST( NULL AS DECIMAL ) + + - 54 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5687
SELECT ALL COUNT ( ALL + + 99 ) * - + COUNT ( * ) + - SUM ( + 6 ) + 13 * 23 * 60 + - 94 + 3 * - 60 * - 52 + + CAST ( NULL AS REAL ) + + - 54 AS col0
----
NULL

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

skipif mysql # not compatible
query I rowsort label-5688
SELECT COUNT ( 69 )
----
1

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-5690
SELECT ALL CAST( NULL AS SIGNED ) * - 54 + + - 76, + 66 DIV + 41 AS col0
----
NULL
1

skipif mysql # not compatible
query II rowsort label-5690
SELECT ALL CAST ( NULL AS INTEGER ) * - 54 + + - 76, + 66 / + 41 AS col0
----
NULL
1

onlyif mysql # aggregate syntax: 
query II rowsort label-5691
SELECT DISTINCT + 23, + MAX( - 45 ) AS col1
----
23
-45

skipif mysql # not compatible
query II rowsort label-5691
SELECT DISTINCT + 23, + MAX ( - 45 ) AS col1
----
23
-45

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5692
SELECT + 70 + - 38 * + - 80 / CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5692
SELECT + 70 + - 38 * + - 80 / CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5693
SELECT ALL 50 * COUNT( * ) + - COALESCE ( + 70, CASE - - 1 WHEN + 57 THEN - - COUNT( * ) * + - 46 END * 94 ) * - 79, 88 AS col0
----
5580
88

skipif mysql # not compatible
query II rowsort label-5693
SELECT ALL 50 * COUNT ( * ) + - COALESCE ( + 70, CASE - - 1 WHEN + 57 THEN - - COUNT ( * ) * + - 46 END * 94 ) * - 79, 88 AS col0
----
5580
88

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5695
SELECT ALL + 93 + - + CAST( NULL AS DECIMAL ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5695
SELECT ALL + 93 + - + CAST ( NULL AS REAL ) AS col2
----
NULL

query I rowsort
SELECT + 99 * 22
----
2178

onlyif mysql # DIV for integer division: 
query I rowsort label-5697
SELECT DISTINCT 39 DIV 88 * - 44
----
0

skipif mysql # not compatible
query I rowsort label-5697
SELECT DISTINCT 39 / 88 * - 44
----
0

query I rowsort
SELECT + 63 * - 78
----
-4914

query I rowsort
SELECT ALL 74 * 81
----
5994

onlyif mysql # aggregate syntax: 
query II rowsort label-5700
SELECT - ( + ( + 42 ) ) AS col2, COUNT( * ) + + + 82
----
-42
83

skipif mysql # not compatible
query II rowsort label-5700
SELECT - ( + ( + 42 ) ) AS col2, COUNT ( * ) + + + 82
----
-42
83

query I rowsort
SELECT - - 63 + + - 65
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-5702
SELECT + + 94 * - MIN( ALL - - 53 ) + - - 89 AS col0
----
-4893

skipif mysql # not compatible
query I rowsort label-5702
SELECT + + 94 * - MIN ( ALL - - 53 ) + - - 89 AS col0
----
-4893

query II rowsort
SELECT DISTINCT - 49 AS col2, 67 + - 79 AS col2
----
-49
-12

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

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

query I rowsort
SELECT + 99 - - + 65
----
164

query I rowsort
SELECT - - 60 col2
----
60

query I rowsort
SELECT - + 92 * + 17 AS col1
----
-1564

onlyif mysql # DIV for integer division: 
query I rowsort label-5708
SELECT DISTINCT - + 7 DIV - + 76 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-5708
SELECT DISTINCT - + 7 / - + 76 AS col1
----
0

query I rowsort
SELECT ALL - 21 * - 95 AS col1
----
1995

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5710
SELECT ALL + ( + MIN( - + 74 ) ) DIV - + 47 + 41 * 52 + 30 * + 67 AS col0
----
4143

skipif mysql # not compatible
query I rowsort label-5710
SELECT ALL + ( + MIN ( - + 74 ) ) / - + 47 + 41 * 52 + 30 * + 67 AS col0
----
4143

query II rowsort
SELECT + 63 AS col2, ( + 4 ) AS col0
----
63
4

query I rowsort
SELECT DISTINCT - 78 * + - 28 col2
----
2184

query I rowsort
SELECT - 59 + 46
----
-13

query I rowsort
SELECT - 65 * + ( + 96 )
----
-6240

onlyif mysql # aggregate syntax: 
query I rowsort label-5715
SELECT - 77 * + MAX( - 26 ) AS col2
----
2002

skipif mysql # not compatible
query I rowsort label-5715
SELECT - 77 * + MAX ( - 26 ) AS col2
----
2002

onlyif mysql # aggregate syntax: 
query III rowsort label-5716
SELECT + ( + ( + ( - SUM( - 43 ) ) ) ) * 26 AS col2, + 28 * ( - COUNT( * ) ) AS col0, 74 + + 91 AS col2
----
1118
-28
165

skipif mysql # not compatible
query III rowsort label-5716
SELECT + ( + ( + ( - SUM ( - 43 ) ) ) ) * 26 AS col2, + 28 * ( - COUNT ( * ) ) AS col0, 74 + + 91 AS col2
----
1118
-28
165

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-5717
SELECT ALL + CAST( NULL AS DECIMAL ) AS col2, + 8
----
NULL
8

skipif mysql # not compatible
query II rowsort label-5717
SELECT ALL + CAST ( NULL AS REAL ) AS col2, + 8
----
NULL
8

query I rowsort
SELECT 6 * - 7 + - NULLIF ( - + 3, + 60 - - - 39 )
----
-39

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5720
SELECT DISTINCT COALESCE ( - + ( + COUNT( * ) ), 28 ) * + 33
----
-33

skipif mysql # not compatible
query I rowsort label-5720
SELECT DISTINCT COALESCE ( - + ( + COUNT ( * ) ), 28 ) * + 33
----
-33

query I rowsort
SELECT ALL + 59 * - 52 + - - 93
----
-2975

query I rowsort
SELECT CASE + - 40 WHEN + - 75 THEN - + 60 END AS col2
----
NULL

query I rowsort
SELECT ALL + NULLIF ( - 59, - 11 ) AS col0
----
-59

onlyif mysql # aggregate syntax: 
query II rowsort label-5724
SELECT DISTINCT + 29 col2, COUNT( DISTINCT - 59 ) * 83 + - + 26 * - + 14 AS col0
----
29
447

skipif mysql # not compatible
query II rowsort label-5724
SELECT DISTINCT + 29 col2, COUNT ( DISTINCT - 59 ) * 83 + - + 26 * - + 14 AS col0
----
29
447

query I rowsort
SELECT + 75 + 53 AS col0
----
128

query I rowsort
SELECT DISTINCT 98 * + ( - 75 ) * + 62
----
-455700

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

skipif mysql # not compatible
query II rowsort label-5727
SELECT - 59 AS col1, - COUNT ( * )
----
-59
-1

query I rowsort
SELECT ALL 33 * 37 AS col2
----
1221

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

query I rowsort
SELECT 25 * 28 * 67 AS col0
----
46900

onlyif mysql # aggregate syntax: 
query II rowsort label-5731
SELECT 57, - COUNT( + - NULLIF ( + 98, + 16 + + 45 ) ) * + - 42 + - 57 - + 13 + + 38 * - 87 * + - 43 - + 16 + + 74 AS col2
----
57
142188

skipif mysql # not compatible
query II rowsort label-5731
SELECT 57, - COUNT ( + - NULLIF ( + 98, + 16 + + 45 ) ) * + - 42 + - 57 - + 13 + + 38 * - 87 * + - 43 - + 16 + + 74 AS col2
----
57
142188

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5732
SELECT AVG ( - 74 ) + - AVG ( - + CAST( NULL AS SIGNED ) ) + - + MIN( 90 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5732
SELECT AVG ( - 74 ) + - AVG ( - + CAST ( NULL AS INTEGER ) ) + - + MIN ( 90 )
----
NULL

query II rowsort
SELECT 65 AS col1, - 61 * + 74 col2
----
65
-4514

onlyif mysql # aggregate syntax: 
query I rowsort label-5734
SELECT ALL - SUM( ALL - 82 ) AS col0
----
82

skipif mysql # not compatible
query I rowsort label-5734
SELECT ALL - SUM ( ALL - 82 ) AS col0
----
82

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

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

query I rowsort
SELECT - 16 - + + 72 AS col0
----
-88

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5737
SELECT DISTINCT - COALESCE ( - - MIN( DISTINCT + + 88 ), - 70 * - 77 + 41 * + 49 ) * ( - 46 ) DIV + + 98
----
41

skipif mysql # not compatible
query I rowsort label-5737
SELECT DISTINCT - COALESCE ( - - MIN ( DISTINCT + + 88 ), - 70 * - 77 + 41 * + 49 ) * ( - 46 ) / + + 98
----
41

query I rowsort
SELECT 51 + + 14 * - 19 AS col2
----
-215

onlyif mysql # aggregate syntax: 
query I rowsort label-5739
SELECT - 74 * - COUNT( * ) AS col1
----
74

skipif mysql # not compatible
query I rowsort label-5739
SELECT - 74 * - COUNT ( * ) AS col1
----
74

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query III rowsort label-5740
SELECT 82 * - 90 col2, - ( + CAST( NULL AS SIGNED ) ), + - NULLIF ( 5, ( - + 47 ) * 38 * - 42 ) DIV + 1 AS col2
----
-7380
NULL
-5

skipif mysql # not compatible
query III rowsort label-5740
SELECT 82 * - 90 col2, - ( + CAST ( NULL AS INTEGER ) ), + - NULLIF ( 5, ( - + 47 ) * 38 * - 42 ) / + 1 AS col2
----
-7380
NULL
-5

onlyif mysql # DIV for integer division: 
query I rowsort label-5741
SELECT ALL - 77 DIV 70 + + + 72 AS col1
----
71

skipif mysql # not compatible
query I rowsort label-5741
SELECT ALL - 77 / 70 + + + 72 AS col1
----
71

query I rowsort
SELECT + 83 + 48 col2
----
131

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5743
SELECT + 96 + CAST( NULL AS SIGNED ) AS col2, - 71 + 53 + 81 AS col0
----
NULL
63

skipif mysql # not compatible
query II rowsort label-5743
SELECT + 96 + CAST ( NULL AS INTEGER ) AS col2, - 71 + 53 + 81 AS col0
----
NULL
63

onlyif mysql # aggregate syntax: 
query I rowsort label-5744
SELECT + CASE - - 83 WHEN + + COUNT( * ) THEN NULL WHEN - + COUNT( * ) + - 59 THEN MAX( ALL 65 ) WHEN COUNT( - + 46 ) THEN - COUNT( * ) ELSE NULL END - 40 + + 74
----
NULL

skipif mysql # not compatible
query I rowsort label-5744
SELECT + CASE - - 83 WHEN + + COUNT ( * ) THEN NULL WHEN - + COUNT ( * ) + - 59 THEN MAX ( ALL 65 ) WHEN COUNT ( - + 46 ) THEN - COUNT ( * ) ELSE NULL END - 40 + + 74
----
NULL

query I rowsort
SELECT DISTINCT 36 * + - 86
----
-3096

onlyif mysql # aggregate syntax: 
query II rowsort label-5746
SELECT ALL - 27 * COUNT( * ) + - NULLIF ( - - 64, - - 55 ) + 21 AS col0, ( - - 13 ) AS col2
----
-70
13

skipif mysql # not compatible
query II rowsort label-5746
SELECT ALL - 27 * COUNT ( * ) + - NULLIF ( - - 64, - - 55 ) + 21 AS col0, ( - - 13 ) AS col2
----
-70
13

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5747
SELECT ALL 80 + - 55 + - MIN( + ( + - ( - 59 ) ) ) / - ( - COUNT( * ) ) * + 91 * - 64 * CASE + 22 WHEN - 72 / + ( + 58 ) * - 1 + + - 70 - - CAST( + 87 AS SIGNED ) THEN - 9 + - CASE - 65 WHEN ( 20 ) + 66 THEN NULL WHEN ( - CAST( - 4 AS SIGNED ) ) THEN - 0 ELSE NULL END WHEN - 41 * - 37 THEN - 86 END - + 51
----
NULL

skipif mysql # not compatible
query I rowsort label-5747
SELECT ALL 80 + - 55 + - MIN ( + ( + - ( - 59 ) ) ) / - ( - COUNT ( * ) ) * + 91 * - 64 * CASE + 22 WHEN - 72 / + ( + 58 ) * - 1 + + - 70 - - CAST ( + 87 AS INTEGER ) THEN - 9 + - CASE - 65 WHEN ( 20 ) + 66 THEN NULL WHEN ( - CAST ( - 4 AS INTEGER ) ) THEN - 0 ELSE NULL END WHEN - 41 * - 37 THEN - 86 END - + 51
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5748
SELECT ALL - + COUNT( * ) * + - 72 + - CAST( NULL AS SIGNED ) + - + 51 * - COALESCE ( 91, CASE - + 18 WHEN + 95 + - 2 * COUNT( * ) THEN NULL WHEN 38 THEN NULL WHEN - COUNT( * ) THEN SUM( + - ( + ( - 78 ) ) ) * + 24 * + + 7 ELSE 94 + 58 END ) - + 16
----
NULL

skipif mysql # not compatible
query I rowsort label-5748
SELECT ALL - + COUNT ( * ) * + - 72 + - CAST ( NULL AS INTEGER ) + - + 51 * - COALESCE ( 91, CASE - + 18 WHEN + 95 + - 2 * COUNT ( * ) THEN NULL WHEN 38 THEN NULL WHEN - COUNT ( * ) THEN SUM ( + - ( + ( - 78 ) ) ) * + 24 * + + 7 ELSE 94 + 58 END ) - + 16
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5749
SELECT + 23 + - NULLIF ( + - 41, 68 * + + ( - + 45 ) + - 87 * - 67 + + - COUNT( * ) ) AS col2
----
64

skipif mysql # not compatible
query I rowsort label-5749
SELECT + 23 + - NULLIF ( + - 41, 68 * + + ( - + 45 ) + - 87 * - 67 + + - COUNT ( * ) ) AS col2
----
64

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5750
SELECT ALL - ( + - 57 ) + + 39 + - CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-5750
SELECT ALL - ( + - 57 ) + + 39 + - CAST ( NULL AS REAL )
----
NULL

query I rowsort
SELECT DISTINCT 2 * 16
----
32

query I rowsort
SELECT 84 + 85 AS col1
----
169

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

skipif mysql # not compatible
query I rowsort label-5753
SELECT ALL MAX ( - 95 )
----
-95

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5754
SELECT DISTINCT - - 4 + - 33 DIV + 34 + + 2 + + COUNT( * ) AS col1
----
7

skipif mysql # not compatible
query I rowsort label-5754
SELECT DISTINCT - - 4 + - 33 / + 34 + + 2 + + COUNT ( * ) AS col1
----
7

query I rowsort
SELECT ALL + - 42 + - ( + + 52 )
----
-94

query II rowsort
SELECT 74 AS col2, + 35
----
74
35

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

skipif mysql # not compatible
query I rowsort label-5757
SELECT + NULLIF ( 79, - + 53 * COUNT ( * ) )
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-5758
SELECT COUNT( * ) * - 52 + + + 51 * - - 3 AS col2
----
101

skipif mysql # not compatible
query I rowsort label-5758
SELECT COUNT ( * ) * - 52 + + + 51 * - - 3 AS col2
----
101

onlyif mysql # aggregate syntax: 
query I rowsort label-5759
SELECT 56 * - SUM( - 58 ) AS col0
----
3248

skipif mysql # not compatible
query I rowsort label-5759
SELECT 56 * - SUM ( - 58 ) AS col0
----
3248

onlyif mysql # aggregate syntax: 
query I rowsort label-5760
SELECT 91 * - COUNT( * ) * - - COUNT( * ) * 43
----
-3913

skipif mysql # not compatible
query I rowsort label-5760
SELECT 91 * - COUNT ( * ) * - - COUNT ( * ) * 43
----
-3913

query I rowsort
SELECT ALL - 65 * ( - 71 )
----
4615

query I rowsort
SELECT ALL 35 + - 65 * + - 6
----
425

onlyif mysql # aggregate syntax: 
query I rowsort label-5763
SELECT ALL - 47 * - CASE + COUNT( + 69 ) WHEN - 61 / - 42 + + 14 + + COUNT( * ) * - 41 + - 59 * - COALESCE ( - 2, - AVG ( - 15 ) * 31 * 16 * - - ( + - 75 ) ) THEN + + 76 * + - 87 ELSE NULL END * 68 * + - 62 + 18 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5763
SELECT ALL - 47 * - CASE + COUNT ( + 69 ) WHEN - 61 / - 42 + + 14 + + COUNT ( * ) * - 41 + - 59 * - COALESCE ( - 2, - AVG ( - 15 ) * 31 * 16 * - - ( + - 75 ) ) THEN + + 76 * + - 87 ELSE NULL END * 68 * + - 62 + 18 AS col2
----
NULL

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

onlyif mysql # aggregate syntax: 
query II rowsort label-5765
SELECT ALL - 38 - + COUNT( * ), + 90 * - - 49 AS col0
----
-39
4410

skipif mysql # not compatible
query II rowsort label-5765
SELECT ALL - 38 - + COUNT ( * ), + 90 * - - 49 AS col0
----
-39
4410

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5766
SELECT 81 * + 67 col0, CAST( NULL AS SIGNED ) * + - 57 col2
----
5427
NULL

skipif mysql # not compatible
query II rowsort label-5766
SELECT 81 * + 67 col0, CAST ( NULL AS INTEGER ) * + - 57 col2
----
5427
NULL

query II rowsort
SELECT ALL - 65 * 56, + 77 AS col1
----
-3640
77

onlyif mysql # DIV for integer division: 
query I rowsort label-5768
SELECT 0 DIV + ( + 36 )
----
0

skipif mysql # not compatible
query I rowsort label-5768
SELECT 0 / + ( + 36 )
----
0

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

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

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

skipif mysql # not compatible
query I rowsort label-5770
SELECT ALL - 75 - + SUM ( DISTINCT + + 75 ) AS col0
----
-150

onlyif mysql # aggregate syntax: 
query I rowsort label-5771
SELECT DISTINCT - NULLIF ( - CASE - 61 WHEN - + 1 THEN ( + 58 ) ELSE - COUNT( * ) END, - + 75 * + 43 / + 96 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-5771
SELECT DISTINCT - NULLIF ( - CASE - 61 WHEN - + 1 THEN ( + 58 ) ELSE - COUNT ( * ) END, - + 75 * + 43 / + 96 ) AS col0
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-5772
SELECT 90 DIV - NULLIF ( + 72, - 4 )
----
-1

skipif mysql # not compatible
query I rowsort label-5772
SELECT 90 / - NULLIF ( + 72, - 4 )
----
-1

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

skipif mysql # not compatible
query I rowsort label-5773
SELECT COUNT ( * ) / 4
----
0

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5775
SELECT + COUNT( * ) * - 5 + + 90 AS col0
----
85

skipif mysql # not compatible
query I rowsort label-5775
SELECT + COUNT ( * ) * - 5 + + 90 AS col0
----
85

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

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

query I rowsort
SELECT + 14 + - 95 * + 16 * - 47 * - - 3 + + 19
----
214353

query I rowsort
SELECT ALL + + 70 + 77 AS col0
----
147

query I rowsort
SELECT ALL + 48 * - 3
----
-144

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5780
SELECT - MAX( DISTINCT - - CAST( NULL AS SIGNED ) ) * - 44
----
NULL

skipif mysql # not compatible
query I rowsort label-5780
SELECT - MAX ( DISTINCT - - CAST ( NULL AS INTEGER ) ) * - 44
----
NULL

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5783
SELECT ALL - ( + - 93 ) * + + MAX( DISTINCT CAST( NULL AS SIGNED ) ) - - 55 / - 79 + 22 + + - 11
----
NULL

skipif mysql # not compatible
query I rowsort label-5783
SELECT ALL - ( + - 93 ) * + + MAX ( DISTINCT CAST ( NULL AS INTEGER ) ) - - 55 / - 79 + 22 + + - 11
----
NULL

query I rowsort
SELECT 76 * - ( 48 ) - 96 AS col2
----
-3744

onlyif mysql # aggregate syntax: 
query I rowsort label-5785
SELECT DISTINCT ( + CASE WHEN NULL = NULL THEN SUM( ALL - 99 ) END )
----
NULL

skipif mysql # not compatible
query I rowsort label-5785
SELECT DISTINCT ( + CASE WHEN NULL = NULL THEN SUM ( ALL - 99 ) END )
----
NULL

query I rowsort
SELECT ALL 91 + + + 16 AS col2
----
107

onlyif mysql # aggregate syntax: 
query I rowsort label-5787
SELECT ALL + COUNT( * ) + - + 56 + 77
----
22

skipif mysql # not compatible
query I rowsort label-5787
SELECT ALL + COUNT ( * ) + - + 56 + 77
----
22

query I rowsort
SELECT ALL + 4 + - 93 col0
----
-89

query I rowsort
SELECT 45 * - - 81
----
3645

query I rowsort
SELECT ALL - 29 + 53 - - - 70 + 26 * - 4 AS col1
----
-150

query II rowsort
SELECT - 97 - + 12 AS col1, + 7 AS col2
----
-109
7

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

query I rowsort
SELECT - 80 * + 79 - - 8
----
-6312

query I rowsort
SELECT DISTINCT 70 * + + 92 * - 81 * - 31 - - 65 AS col0
----
16170905

query I rowsort
SELECT DISTINCT 94 * + 30
----
2820

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5796
SELECT ALL 44 * 33 - 76 AS col1, - 43 * - 30 * - CASE - 67 WHEN 36 / + 26 + - NULLIF ( - 83, + 23 + 41 ) THEN + 31 + COUNT( * ) - + COALESCE ( + CASE - - 86 WHEN - 62 * - 39 + - 55 / - - 82 * - CAST( NULL AS SIGNED ) THEN + 39 + - ( + 12 + 37 ) * + 78 END, CAST( NULL AS SIGNED ) ) + SUM( ALL + 12 ) ELSE NULL END * 52 + 56
----
1376
NULL

skipif mysql # not compatible
query II rowsort label-5796
SELECT ALL 44 * 33 - 76 AS col1, - 43 * - 30 * - CASE - 67 WHEN 36 / + 26 + - NULLIF ( - 83, + 23 + 41 ) THEN + 31 + COUNT ( * ) - + COALESCE ( + CASE - - 86 WHEN - 62 * - 39 + - 55 / - - 82 * - CAST ( NULL AS INTEGER ) THEN + 39 + - ( + 12 + 37 ) * + 78 END, CAST ( NULL AS INTEGER ) ) + SUM ( ALL + 12 ) ELSE NULL END * 52 + 56
----
1376
NULL

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

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

query I rowsort
SELECT ALL 88 * - 36 AS col1
----
-3168

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5800
SELECT - 69 * - + 73 * - + COUNT( * )
----
-5037

skipif mysql # not compatible
query I rowsort label-5800
SELECT - 69 * - + 73 * - + COUNT ( * )
----
-5037

query I rowsort
SELECT + 40 + + - 86
----
-46

onlyif mysql # aggregate syntax: 
query II rowsort label-5802
SELECT ALL + 61 AS col2, - COUNT( * ) + 48 + - 80
----
61
-33

skipif mysql # not compatible
query II rowsort label-5802
SELECT ALL + 61 AS col2, - COUNT ( * ) + 48 + - 80
----
61
-33

query I rowsort
SELECT - 33 * - 60 * - 56 AS col0
----
-110880

query I rowsort
SELECT ALL + ( CASE 87 WHEN - + 47 / 72 - ( 48 ) THEN - 56 ELSE NULL END ) col0
----
NULL

query I rowsort
SELECT - + 57 + - ( - + 67 ) + 73
----
83

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

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

query II rowsort
SELECT - - 65, - 60 AS col0
----
65
-60

onlyif mysql # DIV for integer division: 
query I rowsort label-5809
SELECT - 69 + - 74 DIV - 55
----
-68

skipif mysql # not compatible
query I rowsort label-5809
SELECT - 69 + - 74 / - 55
----
-68

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

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

query I rowsort
SELECT - 83 + - + 16 AS col2
----
-99

query I rowsort
SELECT ALL + + 75 + - 70 AS col0
----
5

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

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

query I rowsort
SELECT ALL + 94 + + 20 * 55 + - 55 col1
----
1139

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5816
SELECT ALL + NULLIF ( - COUNT( * ), + + 21 + - 76 + 32 )
----
-1

skipif mysql # not compatible
query I rowsort label-5816
SELECT ALL + NULLIF ( - COUNT ( * ), + + 21 + - 76 + 32 )
----
-1

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5819
SELECT DISTINCT + 42 * + 5 * COUNT( * )
----
210

skipif mysql # not compatible
query I rowsort label-5819
SELECT DISTINCT + 42 * + 5 * COUNT ( * )
----
210

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5820
SELECT - 95 + CAST( + + 85 AS SIGNED ) - - - ( - + 39 ) * COUNT( * ) * + - COUNT( * ) AS col1
----
-49

skipif mysql # not compatible
query I rowsort label-5820
SELECT - 95 + CAST ( + + 85 AS INTEGER ) - - - ( - + 39 ) * COUNT ( * ) * + - COUNT ( * ) AS col1
----
-49

query I rowsort
SELECT + ( 54 ) - - 83 - - 94 * 13 * + 76
----
93009

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5823
SELECT DISTINCT + 65 * - COALESCE ( + - COUNT( * ), + 89, 67 ) * - + 36 AS col1
----
-2340

skipif mysql # not compatible
query I rowsort label-5823
SELECT DISTINCT + 65 * - COALESCE ( + - COUNT ( * ), + 89, 67 ) * - + 36 AS col1
----
-2340

onlyif mysql # aggregate syntax: 
query II rowsort label-5824
SELECT + ( 21 ) * + - 86 + 94 + - 5 * - 37 + - NULLIF ( - COUNT( * ), MAX( ALL - 23 ) * + 6 * + 84 ), + CASE - 77 WHEN + + 61 THEN + + CASE + + 37 WHEN + COUNT( * ) * 2 + - + 68 THEN + 51 * + 69 ELSE + ( 73 ) END * 77 END / COUNT( * ) AS col2
----
-1526
NULL

skipif mysql # not compatible
query II rowsort label-5824
SELECT + ( 21 ) * + - 86 + 94 + - 5 * - 37 + - NULLIF ( - COUNT ( * ), MAX ( ALL - 23 ) * + 6 * + 84 ), + CASE - 77 WHEN + + 61 THEN + + CASE + + 37 WHEN + COUNT ( * ) * 2 + - + 68 THEN + 51 * + 69 ELSE + ( 73 ) END * 77 END / COUNT ( * ) AS col2
----
-1526
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5825
SELECT + CAST( NULL AS DECIMAL ) + - 49
----
NULL

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5826
SELECT DISTINCT NULLIF ( + ( 90 ), COUNT( * ) ) DIV + 22 AS col0
----
4

skipif mysql # not compatible
query I rowsort label-5826
SELECT DISTINCT NULLIF ( + ( 90 ), COUNT ( * ) ) / + 22 AS col0
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-5827
SELECT - ( + COALESCE ( COUNT( DISTINCT - + 57 ), - - 97 ) ) * - 27
----
27

skipif mysql # not compatible
query I rowsort label-5827
SELECT - ( + COALESCE ( COUNT ( DISTINCT - + 57 ), - - 97 ) ) * - 27
----
27

query I rowsort
SELECT + 52 + - 55 col0
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-5829
SELECT + 70 DIV + 60
----
1

skipif mysql # not compatible
query I rowsort label-5829
SELECT + 70 / + 60
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-5830
SELECT + COALESCE ( + 77, 96 DIV - 61 )
----
77

skipif mysql # not compatible
query I rowsort label-5830
SELECT + COALESCE ( + 77, 96 / - 61 )
----
77

query I rowsort
SELECT + 16 * 40 * - 50 AS col2
----
-32000

query I rowsort
SELECT ALL 28 * + - 0 AS col1
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5833
SELECT + 34 DIV ( - COUNT( * ) ) col0
----
-34

skipif mysql # not compatible
query I rowsort label-5833
SELECT + 34 / ( - COUNT ( * ) ) col0
----
-34

query I rowsort
SELECT DISTINCT 39 * 52 AS col2
----
2028

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5836
SELECT DISTINCT + MAX( + 73 )
----
73

skipif mysql # not compatible
query I rowsort label-5836
SELECT DISTINCT + MAX ( + 73 )
----
73

onlyif mysql # aggregate syntax: 
query I rowsort label-5837
SELECT DISTINCT COUNT( * ) * 21 AS col0
----
21

skipif mysql # not compatible
query I rowsort label-5837
SELECT DISTINCT COUNT ( * ) * 21 AS col0
----
21

onlyif mysql # aggregate syntax: 
query II rowsort label-5838
SELECT + ( 70 ) * + MIN( - 48 ), 16 AS col0
----
-3360
16

skipif mysql # not compatible
query II rowsort label-5838
SELECT + ( 70 ) * + MIN ( - 48 ), 16 AS col0
----
-3360
16

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5840
SELECT NULLIF ( - COALESCE ( - ( + - 30 ), - - 91 * 96 * + COALESCE ( MIN( DISTINCT 73 ), 14 + - + 77, + 23, 64 ) ), - - 4 * - 93 + 17 - + 23 / 2 ) AS col1
----
-30

skipif mysql # not compatible
query I rowsort label-5840
SELECT NULLIF ( - COALESCE ( - ( + - 30 ), - - 91 * 96 * + COALESCE ( MIN ( DISTINCT 73 ), 14 + - + 77, + 23, 64 ) ), - - 4 * - 93 + 17 - + 23 / 2 ) AS col1
----
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-5841
SELECT ALL - - COUNT( ALL + 67 ) * - 79 * + 80 + COUNT( * ) + 41 + + 11 * + 93 * - 55 * - - 64 + + 94
----
-3607144

skipif mysql # not compatible
query I rowsort label-5841
SELECT ALL - - COUNT ( ALL + 67 ) * - 79 * + 80 + COUNT ( * ) + 41 + + 11 * + 93 * - 55 * - - 64 + + 94
----
-3607144

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

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

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

query I rowsort
SELECT ALL 40 * - 91 + - ( + 38 ) + + 90 * 14
----
-2418

query I rowsort
SELECT ALL + 48 * 59
----
2832

onlyif mysql # aggregate syntax: 
query I rowsort label-5846
SELECT - MIN( - 45 ) + + COUNT( * )
----
46

skipif mysql # not compatible
query I rowsort label-5846
SELECT - MIN ( - 45 ) + + COUNT ( * )
----
46

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5848
SELECT ALL + 0 * - 67 - - + COUNT( * ) + + 91 * 54
----
4915

skipif mysql # not compatible
query I rowsort label-5848
SELECT ALL + 0 * - 67 - - + COUNT ( * ) + + 91 * 54
----
4915

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

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

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

query I rowsort
SELECT DISTINCT - 55 - CASE WHEN NOT NULL IS NOT NULL THEN + 95 ELSE + 6 + + 10 END + - 0 * - - 33
----
-150

query I rowsort
SELECT - 83 + + 92 AS col2
----
9

onlyif mysql # DIV for integer division: 
query I rowsort label-5853
SELECT - 53 * 53 DIV - 16
----
175

skipif mysql # not compatible
query I rowsort label-5853
SELECT - 53 * 53 / - 16
----
175

query I rowsort
SELECT ALL - - 23 - - - 33 AS col1
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-5855
SELECT ALL SUM( - ( + - 15 ) ) AS col0
----
15

skipif mysql # not compatible
query I rowsort label-5855
SELECT ALL SUM ( - ( + - 15 ) ) AS col0
----
15

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

query I rowsort
SELECT - 15 * 47 col0
----
-705

onlyif mysql # aggregate syntax: 
query II rowsort label-5858
SELECT - + 83 * - - 12 AS col1, + COUNT( * )
----
-996
1

skipif mysql # not compatible
query II rowsort label-5858
SELECT - + 83 * - - 12 AS col1, + COUNT ( * )
----
-996
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5859
SELECT ALL - CASE - 65 WHEN + - COUNT( * ) THEN + COALESCE ( 75, 93 * - 38 * + 59 * + ( - 28 ) ) * - - CAST( NULL AS SIGNED ) WHEN 16 * 69 * 3 * + COUNT( * ) * + + COUNT( * ) THEN + - 61 * + - 54 ELSE + 97 END * + COUNT( * )
----
-97

skipif mysql # not compatible
query I rowsort label-5859
SELECT ALL - CASE - 65 WHEN + - COUNT ( * ) THEN + COALESCE ( 75, 93 * - 38 * + 59 * + ( - 28 ) ) * - - CAST ( NULL AS INTEGER ) WHEN 16 * 69 * 3 * + COUNT ( * ) * + + COUNT ( * ) THEN + - 61 * + - 54 ELSE + 97 END * + COUNT ( * )
----
-97

query I rowsort
SELECT 71 * - - 67 AS col0
----
4757

query I rowsort
SELECT DISTINCT + 34 * + + 8 AS col1
----
272

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5862
SELECT 81 - - + 75 + + + CAST( + MAX( ALL - 83 ) AS SIGNED ) * - 1 AS col2
----
239

skipif mysql # not compatible
query I rowsort label-5862
SELECT 81 - - + 75 + + + CAST ( + MAX ( ALL - 83 ) AS INTEGER ) * - 1 AS col2
----
239

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5863
SELECT NULLIF ( - CAST( NULL AS SIGNED ), + SUM( ALL 60 ) ) * - NULLIF ( - COUNT( * ), + - 56 + - COUNT( - 37 ) + + COUNT( * ) ), 38 AS col1
----
NULL
38

skipif mysql # not compatible
query II rowsort label-5863
SELECT NULLIF ( - CAST ( NULL AS INTEGER ), + SUM ( ALL 60 ) ) * - NULLIF ( - COUNT ( * ), + - 56 + - COUNT ( - 37 ) + + COUNT ( * ) ), 38 AS col1
----
NULL
38

query I rowsort
SELECT ALL + 16 * + 15
----
240

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

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

query I rowsort
SELECT DISTINCT 22 + + 20 AS col1
----
42

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5867
SELECT 35 * - CAST( - COUNT( * ) AS SIGNED ) AS col0
----
35

skipif mysql # not compatible
query I rowsort label-5867
SELECT 35 * - CAST ( - COUNT ( * ) AS INTEGER ) AS col0
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-5868
SELECT ALL 68 + NULLIF ( + 84, - 62 * - COUNT( * ) )
----
152

skipif mysql # not compatible
query I rowsort label-5868
SELECT ALL 68 + NULLIF ( + 84, - 62 * - COUNT ( * ) )
----
152

query I rowsort
SELECT 9 + 28
----
37

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

skipif mysql # not compatible
query I rowsort label-5870
SELECT COUNT ( * ) + - 91 * + 35 AS col2
----
-3184

query I rowsort
SELECT ALL 21 + + 92 + 80 col2
----
193

query I rowsort
SELECT 25 + - + 30 AS col2
----
-5

query I rowsort
SELECT + 8 * 41 AS col1
----
328

query II rowsort
SELECT 97 AS col1, - 19 * 1 * + 89
----
97
-1691

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5875
SELECT - + 61 * - + 37 - COUNT( * ) * + 26 + 94 + + COUNT( * ) + + MAX( - 99 ) DIV + 84 + 36 * 65
----
4665

skipif mysql # not compatible
query I rowsort label-5875
SELECT - + 61 * - + 37 - COUNT ( * ) * + 26 + 94 + + COUNT ( * ) + + MAX ( - 99 ) / + 84 + 36 * 65
----
4665

onlyif mysql # aggregate syntax: 
query I rowsort label-5876
SELECT ALL + COUNT( 26 ) * 87 * + - 0 col2
----
0

skipif mysql # not compatible
query I rowsort label-5876
SELECT ALL + COUNT ( 26 ) * 87 * + - 0 col2
----
0

query II rowsort
SELECT DISTINCT - 54 AS col0, - 81 AS col1
----
-54
-81

query I rowsort
SELECT ALL - 0 + - NULLIF ( - 57, 7 )
----
57

query I rowsort
SELECT - 74 * + 54
----
-3996

query I rowsort
SELECT 74 + + 16
----
90

onlyif mysql # aggregate syntax: 
query II rowsort label-5881
SELECT ALL 57 * + MIN( ALL + + 90 ) col0, 77 * - - MIN( ALL - + 44 ) * - COUNT( * ) - 20 + 41
----
5130
3409

skipif mysql # not compatible
query II rowsort label-5881
SELECT ALL 57 * + MIN ( ALL + + 90 ) col0, 77 * - - MIN ( ALL - + 44 ) * - COUNT ( * ) - 20 + 41
----
5130
3409

query II rowsort
SELECT + 42, - 37 * + 36 AS col0
----
42
-1332

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

query I rowsort
SELECT DISTINCT - - ( - 70 ) AS col0
----
-70

query I rowsort
SELECT 54 * + + 38
----
2052

query I rowsort
SELECT - COALESCE ( - - 38, - COALESCE ( 7, - - ( + 93 ) ) ) AS col1
----
-38

query I rowsort
SELECT - NULLIF ( + ( COALESCE ( + 20, - 85, + 15 ) ), + 72 ) AS col1
----
-20

query I rowsort
SELECT ALL - - 20 * 54 AS col1
----
1080

onlyif mysql # aggregate syntax: 
query I rowsort label-5889
SELECT ALL 87 * + COUNT( * ) * 87
----
7569

skipif mysql # not compatible
query I rowsort label-5889
SELECT ALL 87 * + COUNT ( * ) * 87
----
7569

query I rowsort
SELECT DISTINCT - 2 * - 25
----
50

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

skipif mysql # not compatible
query II rowsort label-5891
SELECT ALL 76, COUNT ( * ) AS col2
----
76
1

query I rowsort
SELECT ( 62 ) + + 3 AS col2
----
65

onlyif mysql # DIV for integer division: 
query I rowsort label-5893
SELECT 84 DIV 50 * + 88
----
88

skipif mysql # not compatible
query I rowsort label-5893
SELECT 84 / 50 * + 88
----
88

onlyif mysql # DIV for integer division: 
query I rowsort label-5894
SELECT 19 DIV + 62
----
0

skipif mysql # not compatible
query I rowsort label-5894
SELECT 19 / + 62
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5895
SELECT MIN( CAST( - - CAST( + + 43 AS SIGNED ) AS SIGNED ) ) + - MIN( ( + 64 ) ) + - 6
----
-27

skipif mysql # not compatible
query I rowsort label-5895
SELECT MIN ( CAST ( - - CAST ( + + 43 AS INTEGER ) AS INTEGER ) ) + - MIN ( ( + 64 ) ) + - 6
----
-27

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5896
SELECT 26 - 20 AS col0, - CAST( - - 46 AS SIGNED ) + 52 AS col1
----
6
6

skipif mysql # not compatible
query II rowsort label-5896
SELECT 26 - 20 AS col0, - CAST ( - - 46 AS INTEGER ) + 52 AS col1
----
6
6

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

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

query I rowsort
SELECT DISTINCT 64 + + - 21 AS col1
----
43

onlyif mysql # DIV for integer division: 
query I rowsort label-5899
SELECT 9 DIV - 42 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-5899
SELECT 9 / - 42 AS col0
----
0

query I rowsort
SELECT ALL 99 + - 20 AS col1
----
79

query II rowsort
SELECT - 95, 91 AS col0
----
-95
91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5902
SELECT ALL + CAST( - 50 AS SIGNED ) + + ( - + 79 )
----
-129

skipif mysql # not compatible
query I rowsort label-5902
SELECT ALL + CAST ( - 50 AS INTEGER ) + + ( - + 79 )
----
-129

query I rowsort
SELECT 35 + + + 6 * + - 53 * ( - 82 ) AS col2
----
26111

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5905
SELECT DISTINCT + COUNT( * ) * - 2 + - - 15
----
13

skipif mysql # not compatible
query I rowsort label-5905
SELECT DISTINCT + COUNT ( * ) * - 2 + - - 15
----
13

query II rowsort
SELECT + 9, 12 AS col2
----
9
12

onlyif mysql # aggregate syntax: 
query I rowsort label-5907
SELECT + 62 * + COUNT( * ) + 46
----
108

skipif mysql # not compatible
query I rowsort label-5907
SELECT + 62 * + COUNT ( * ) + 46
----
108

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5908
SELECT ALL - 69 * - COUNT( * ) * + NULLIF ( + 27, + 62 * - + 35 + - CASE + + 31 WHEN + 70 * + 17 + + 60 / + - 54 THEN NULL ELSE 67 / + + ( + - 31 ) END + + COALESCE ( + - COUNT( * ), 3, + CAST( + 34 AS SIGNED ) ) ) + + - ( - - 43 ) AS col1
----
1820

skipif mysql # not compatible
query I rowsort label-5908
SELECT ALL - 69 * - COUNT ( * ) * + NULLIF ( + 27, + 62 * - + 35 + - CASE + + 31 WHEN + 70 * + 17 + + 60 / + - 54 THEN NULL ELSE 67 / + + ( + - 31 ) END + + COALESCE ( + - COUNT ( * ), 3, + CAST ( + 34 AS INTEGER ) ) ) + + - ( - - 43 ) AS col1
----
1820

query I rowsort
SELECT DISTINCT - ( ( + 40 ) ) * 67 + + - 18 + 3 AS col0
----
-2695

onlyif mysql # aggregate syntax: 
query I rowsort label-5910
SELECT DISTINCT - MIN( COALESCE ( 91, 48 ) ) AS col0
----
-91

skipif mysql # not compatible
query I rowsort label-5910
SELECT DISTINCT - MIN ( COALESCE ( 91, 48 ) ) AS col0
----
-91

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5912
SELECT ALL + - 69 + + 92 * 4 + - COUNT( * ) * 61 AS col1
----
238

skipif mysql # not compatible
query I rowsort label-5912
SELECT ALL + - 69 + + 92 * 4 + - COUNT ( * ) * 61 AS col1
----
238

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

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

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

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

query I rowsort
SELECT + 39 * 94 + - + 5 AS col1
----
3661

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5918
SELECT ALL - + MIN( + - COALESCE ( - + ( - 26 ), + 96 + 54 ) )
----
26

skipif mysql # not compatible
query I rowsort label-5918
SELECT ALL - + MIN ( + - COALESCE ( - + ( - 26 ), + 96 + 54 ) )
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-5919
SELECT + ( + COALESCE ( - + 61, + ( - 25 ) * - - 34 + 80 + 51 * - + 73 + - NULLIF ( - 8, 61 * - 15 ) + - + 36 * 23 ) ) * - 48 + + COALESCE ( 75, - 67 * - 50 + 1 ) * COUNT( * )
----
3003

skipif mysql # not compatible
query I rowsort label-5919
SELECT + ( + COALESCE ( - + 61, + ( - 25 ) * - - 34 + 80 + 51 * - + 73 + - NULLIF ( - 8, 61 * - 15 ) + - + 36 * 23 ) ) * - 48 + + COALESCE ( 75, - 67 * - 50 + 1 ) * COUNT ( * )
----
3003

query I rowsort
SELECT - 47 + + 35
----
-12

query I rowsort
SELECT + + 85 * 17 + 62 - - 61 - 67 + - + ( 99 ) * + 65
----
-4934

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

skipif mysql # not compatible
query I rowsort label-5922
SELECT ALL - - COUNT ( DISTINCT 14 ) AS col1
----
1

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5924
SELECT ALL 5 * + COUNT( * ) + + + 34 - + - 89
----
128

skipif mysql # not compatible
query I rowsort label-5924
SELECT ALL 5 * + COUNT ( * ) + + + 34 - + - 89
----
128

query I rowsort
SELECT - 74 * 89 AS col0
----
-6586

onlyif mysql # aggregate syntax: 
query I rowsort label-5926
SELECT DISTINCT + 94 * + COUNT( * ) + CASE + + ( - 2 ) WHEN - + 66 THEN - COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-5926
SELECT DISTINCT + 94 * + COUNT ( * ) + CASE + + ( - 2 ) WHEN - + 66 THEN - COUNT ( * ) END
----
NULL

query I rowsort
SELECT + - 25 + + 91
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-5928
SELECT + 1 - - 2 * - 21 * MIN( DISTINCT + 84 ) * + COALESCE ( + 11, 79 * 85 ) + - MAX( - COALESCE ( - + 79, - 92 ) )
----
-38886

skipif mysql # not compatible
query I rowsort label-5928
SELECT + 1 - - 2 * - 21 * MIN ( DISTINCT + 84 ) * + COALESCE ( + 11, 79 * 85 ) + - MAX ( - COALESCE ( - + 79, - 92 ) )
----
-38886

query I rowsort
SELECT + + 50 + + 97
----
147

onlyif mysql # aggregate syntax: 
query I rowsort label-5930
SELECT + + COUNT( DISTINCT + + 19 ) * 74 col0
----
74

skipif mysql # not compatible
query I rowsort label-5930
SELECT + + COUNT ( DISTINCT + + 19 ) * 74 col0
----
74

query I rowsort
SELECT + - 75 * - - 14 - - 58 * + 43 + - 81 AS col1
----
1363

query II rowsort
SELECT ALL 59 + - 66 + + + 40 AS col2, + 40 AS col1
----
33
40

onlyif mysql # aggregate syntax: 
query I rowsort label-5933
SELECT - COUNT( 77 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-5933
SELECT - COUNT ( 77 ) AS col1
----
-1

query I rowsort
SELECT DISTINCT 64 + + 48 * + + 20 + 62 AS col1
----
1086

query I rowsort
SELECT ALL 23 + 41 AS col0
----
64

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5937
SELECT - CASE - COUNT( * ) WHEN - COUNT( ALL + - 88 ) THEN 12 ELSE - 83 END AS col1
----
-12

skipif mysql # not compatible
query I rowsort label-5937
SELECT - CASE - COUNT ( * ) WHEN - COUNT ( ALL + - 88 ) THEN 12 ELSE - 83 END AS col1
----
-12

onlyif mysql # aggregate syntax: 
query II rowsort label-5938
SELECT - COUNT( DISTINCT 76 ), + 51 AS col0
----
-1
51

skipif mysql # not compatible
query II rowsort label-5938
SELECT - COUNT ( DISTINCT 76 ), + 51 AS col0
----
-1
51

onlyif mysql # aggregate syntax: 
query I rowsort label-5939
SELECT ALL COUNT( * ) + ( + 45 ) * 11
----
496

skipif mysql # not compatible
query I rowsort label-5939
SELECT ALL COUNT ( * ) + ( + 45 ) * 11
----
496

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5940
SELECT + 27 - - CAST( NULL AS SIGNED ) col1, 98
----
NULL
98

skipif mysql # not compatible
query II rowsort label-5940
SELECT + 27 - - CAST ( NULL AS INTEGER ) col1, 98
----
NULL
98

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

query I rowsort
SELECT ALL - 98 * 89 - + 24 AS col1
----
-8746

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5943
SELECT ALL CASE + 70 WHEN + 34 THEN + - ( - 59 ) * 14 END * - COUNT( ALL + + 34 ) - CAST( NULL AS SIGNED ) * - CASE 5 WHEN + 41 + 58 THEN + - 4 * COUNT( * ) + 12 + + COUNT( * ) ELSE NULL END / 54 - + 73
----
NULL

skipif mysql # not compatible
query I rowsort label-5943
SELECT ALL CASE + 70 WHEN + 34 THEN + - ( - 59 ) * 14 END * - COUNT ( ALL + + 34 ) - CAST ( NULL AS INTEGER ) * - CASE 5 WHEN + 41 + 58 THEN + - 4 * COUNT ( * ) + 12 + + COUNT ( * ) ELSE NULL END / 54 - + 73
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5944
SELECT - 45 DIV + ( 79 ) + - - 44 + COALESCE ( - - 55, - - ( 59 ) )
----
99

skipif mysql # not compatible
query I rowsort label-5944
SELECT - 45 / + ( 79 ) + - - 44 + COALESCE ( - - 55, - - ( 59 ) )
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-5945
SELECT + ( - COUNT( * ) ) * 57 - - + 59
----
2

skipif mysql # not compatible
query I rowsort label-5945
SELECT + ( - COUNT ( * ) ) * 57 - - + 59
----
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5946
SELECT + COUNT( * ) * - - 57 * + + CASE COUNT( * ) WHEN 73 THEN + - NULLIF ( 69, 89 ) + + COALESCE ( - 51, - 58 ) WHEN 41 THEN NULL END / ( 66 ) + + + CAST( - ( COUNT( * ) ) AS SIGNED ) * + COUNT( * ) + - CAST( - ( + 61 ) AS DECIMAL ) * COUNT( * ) * 22 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5946
SELECT + COUNT ( * ) * - - 57 * + + CASE COUNT ( * ) WHEN 73 THEN + - NULLIF ( 69, 89 ) + + COALESCE ( - 51, - 58 ) WHEN 41 THEN NULL END / ( 66 ) + + + CAST ( - ( COUNT ( * ) ) AS INTEGER ) * + COUNT ( * ) + - CAST ( - ( + 61 ) AS REAL ) * COUNT ( * ) * 22 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5947
SELECT DISTINCT - SUM( ALL 26 ) * + + COUNT( * ) * - - COUNT( * ) - 16
----
-42

skipif mysql # not compatible
query I rowsort label-5947
SELECT DISTINCT - SUM ( ALL 26 ) * + + COUNT ( * ) * - - COUNT ( * ) - 16
----
-42

query I rowsort
SELECT ALL - 26 * + 56 col1
----
-1456

onlyif mysql # aggregate syntax: 
query I rowsort label-5949
SELECT - - COUNT( * ) * - MIN( + 33 )
----
-33

skipif mysql # not compatible
query I rowsort label-5949
SELECT - - COUNT ( * ) * - MIN ( + 33 )
----
-33

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

query I rowsort
SELECT ALL + 65 * - 75
----
-4875

query I rowsort
SELECT - + 96 + 29 + 9 - + 30 * - + 40 + ( + + 0 ) AS col0
----
1142

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5953
SELECT ALL + 8 * - NULLIF ( 51, - + 19 ) * 28 + + CASE COALESCE ( + 51, + 32 / + + ( - + CAST( - 12 AS SIGNED ) ) * + 39 ) WHEN - 83 THEN NULL WHEN + 76 THEN 21 * COUNT( * ) END, + 50 + + 25 AS col1
----
NULL
75

skipif mysql # not compatible
query II rowsort label-5953
SELECT ALL + 8 * - NULLIF ( 51, - + 19 ) * 28 + + CASE COALESCE ( + 51, + 32 / + + ( - + CAST ( - 12 AS INTEGER ) ) * + 39 ) WHEN - 83 THEN NULL WHEN + 76 THEN 21 * COUNT ( * ) END, + 50 + + 25 AS col1
----
NULL
75

onlyif mysql # aggregate syntax: 
query I rowsort label-5954
SELECT + CASE + 96 WHEN - - 37 / 52 / ( MIN( 79 ) ) * ( + + 82 ) + - 94 - COUNT( * ) / 46 + + - 45 THEN + 16 ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5954
SELECT + CASE + 96 WHEN - - 37 / 52 / ( MIN ( 79 ) ) * ( + + 82 ) + - 94 - COUNT ( * ) / 46 + + - 45 THEN + 16 ELSE NULL END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5955
SELECT - ( + 57 ) + CASE - - 39 WHEN + 61 * - NULLIF ( 47, - ( - 72 ) + + + 50 ) + + 0 + - 65 * - - COUNT( * ) * COALESCE ( 13, + CASE - ( - COUNT( * ) ) WHEN + - 87 THEN 96 WHEN + - 65 * - 58 THEN + 35 + - 16 * - 95 ELSE + 28 + + 11 END * + 93, - 58 ) THEN NULL ELSE COUNT( * ) * + 21 END * 78
----
1581

skipif mysql # not compatible
query I rowsort label-5955
SELECT - ( + 57 ) + CASE - - 39 WHEN + 61 * - NULLIF ( 47, - ( - 72 ) + + + 50 ) + + 0 + - 65 * - - COUNT ( * ) * COALESCE ( 13, + CASE - ( - COUNT ( * ) ) WHEN + - 87 THEN 96 WHEN + - 65 * - 58 THEN + 35 + - 16 * - 95 ELSE + 28 + + 11 END * + 93, - 58 ) THEN NULL ELSE COUNT ( * ) * + 21 END * 78
----
1581

query I rowsort
SELECT - ( + ( 60 ) ) * + + 3 - + 91
----
-271

onlyif mysql # aggregate syntax: 
query II rowsort label-5957
SELECT ALL 61 * - + 40 + - COUNT( ALL - 19 ) + + + 72 * - 85 AS col0, ( ( + 16 ) )
----
-8561
16

skipif mysql # not compatible
query II rowsort label-5957
SELECT ALL 61 * - + 40 + - COUNT ( ALL - 19 ) + + + 72 * - 85 AS col0, ( ( + 16 ) )
----
-8561
16

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

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5959
SELECT - NULLIF ( + - 5, + 24 + 64 - ( - + COALESCE ( COUNT( * ), + ( - CAST( + 93 AS DECIMAL ) ) * - ( - 85 ), - ( - 59 ) ) ) )
----
5

skipif mysql # not compatible
query I rowsort label-5959
SELECT - NULLIF ( + - 5, + 24 + 64 - ( - + COALESCE ( COUNT ( * ), + ( - CAST ( + 93 AS REAL ) ) * - ( - 85 ), - ( - 59 ) ) ) )
----
5

onlyif mysql # DIV for integer division: 
query I rowsort label-5960
SELECT ALL 5 + - 77 DIV 98 AS col1
----
5

skipif mysql # not compatible
query I rowsort label-5960
SELECT ALL 5 + - 77 / 98 AS col1
----
5

onlyif mysql # aggregate syntax: 
query II rowsort label-5961
SELECT + 11 - + - 60 * - 59 * - + COUNT( * ), + 79 AS col2
----
3551
79

skipif mysql # not compatible
query II rowsort label-5961
SELECT + 11 - + - 60 * - 59 * - + COUNT ( * ), + 79 AS col2
----
3551
79

onlyif mysql # aggregate syntax: 
query I rowsort label-5962
SELECT ALL + SUM( DISTINCT - 13 ) * ( - 21 ) * + 34 + 79
----
9361

skipif mysql # not compatible
query I rowsort label-5962
SELECT ALL + SUM ( DISTINCT - 13 ) * ( - 21 ) * + 34 + 79
----
9361

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5963
SELECT + 87 + - 61 + - 21 * + 39 - NULLIF ( COUNT( ALL - - 94 ), + + COUNT( * ) ) + + - MAX( 58 ) + - MAX( + 7 ) * + 34 * + CAST( + 29 AS SIGNED ) * - 43 + ( + SUM( - 11 ) ) / ( + 18 ) * 50 * 5 * - 9 / + 78 - - MAX( DISTINCT - + 82 ) + ( + ( + COUNT( DISTINCT - 41 ) ) ) + 20 * - 60 * - 25 / 59
----
NULL

skipif mysql # not compatible
query I rowsort label-5963
SELECT + 87 + - 61 + - 21 * + 39 - NULLIF ( COUNT ( ALL - - 94 ), + + COUNT ( * ) ) + + - MAX ( 58 ) + - MAX ( + 7 ) * + 34 * + CAST ( + 29 AS INTEGER ) * - 43 + ( + SUM ( - 11 ) ) / ( + 18 ) * 50 * 5 * - 9 / + 78 - - MAX ( DISTINCT - + 82 ) + ( + ( + COUNT ( DISTINCT - 41 ) ) ) + 20 * - 60 * - 25 / 59
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-5964
SELECT 39, 97 DIV + 66 + - 66 AS col1
----
39
-65

skipif mysql # not compatible
query II rowsort label-5964
SELECT 39, 97 / + 66 + - 66 AS col1
----
39
-65

query I rowsort
SELECT + 63 + - - 86
----
149

query I rowsort
SELECT - 75 + - 70 + 86
----
-59

query I rowsort
SELECT + 51 + + ( + 67 ) + - 54 + - + 48 + + 71 + + - 29 - + 64 * - ( - 55 ) * + + COALESCE ( - 83, 4, 37 ) * - 79 AS col1
----
-23080582

query I rowsort
SELECT ALL 92 * - 45 * + ( - 48 ) * 34 AS col2
----
6756480

onlyif mysql # aggregate syntax: 
query II rowsort label-5969
SELECT ALL 15 col2, + MAX( - - ( - 33 ) )
----
15
-33

skipif mysql # not compatible
query II rowsort label-5969
SELECT ALL 15 col2, + MAX ( - - ( - 33 ) )
----
15
-33

query I rowsort
SELECT + 74 + + 98 AS col2
----
172

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5971
SELECT COALESCE ( - - CAST( NULL AS SIGNED ), + - 39 + + 90, + + CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) ), 3 - 53 AS col1
----
51
-50

skipif mysql # not compatible
query II rowsort label-5971
SELECT COALESCE ( - - CAST ( NULL AS INTEGER ), + - 39 + + 90, + + CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) ), 3 - 53 AS col1
----
51
-50

query I rowsort
SELECT + 54 + 70 col0
----
124

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5973
SELECT + COUNT( * ) * - + COUNT( 52 ) * - 51 DIV 16 - - ( - 29 ) DIV COALESCE ( + - COUNT( ALL + 83 ), - 74 + - ( - 38 ) ) + - - 74 AS col2
----
106

skipif mysql # not compatible
query I rowsort label-5973
SELECT + COUNT ( * ) * - + COUNT ( 52 ) * - 51 / 16 - - ( - 29 ) / COALESCE ( + - COUNT ( ALL + 83 ), - 74 + - ( - 38 ) ) + - - 74 AS col2
----
106

onlyif mysql # aggregate syntax: 
query II rowsort label-5974
SELECT + 0 AS col2, CASE + 42 WHEN - COUNT( * ) THEN NULL WHEN 24 * 26 * - - COUNT( * ) + + + CASE COUNT( * ) WHEN + 69 - + + COUNT( * ) THEN - 75 / 85 * + AVG ( 74 ) + - 40 END * - SUM( + 32 ) THEN 20 - - - 56 ELSE 99 END AS col1
----
0
99

skipif mysql # not compatible
query II rowsort label-5974
SELECT + 0 AS col2, CASE + 42 WHEN - COUNT ( * ) THEN NULL WHEN 24 * 26 * - - COUNT ( * ) + + + CASE COUNT ( * ) WHEN + 69 - + + COUNT ( * ) THEN - 75 / 85 * + AVG ( 74 ) + - 40 END * - SUM ( + 32 ) THEN 20 - - - 56 ELSE 99 END AS col1
----
0
99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5975
SELECT ALL + + 46, 38 * + COUNT( * ) * + NULLIF ( SUM( 78 ), CAST( - COALESCE ( - - 61, ( - MIN( + + 75 ) ) * + 32 * + ( + - 66 ) ) AS SIGNED ) ) col1
----
46
2964

skipif mysql # not compatible
query II rowsort label-5975
SELECT ALL + + 46, 38 * + COUNT ( * ) * + NULLIF ( SUM ( 78 ), CAST ( - COALESCE ( - - 61, ( - MIN ( + + 75 ) ) * + 32 * + ( + - 66 ) ) AS INTEGER ) ) col1
----
46
2964

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5977
SELECT + COALESCE ( + 56, COUNT( * ), CASE 21 WHEN - + ( - 7 ) THEN 80 * + COUNT( * ) ELSE 45 END + - - 83 DIV - 91 * + 87 ) AS col2
----
56

skipif mysql # not compatible
query I rowsort label-5977
SELECT + COALESCE ( + 56, COUNT ( * ), CASE 21 WHEN - + ( - 7 ) THEN 80 * + COUNT ( * ) ELSE 45 END + - - 83 / - 91 * + 87 ) AS col2
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-5978
SELECT + - COUNT( DISTINCT + NULLIF ( ( - 42 ), 60 * + 80 ) ) * - 23 + + + 49 * 15
----
758

skipif mysql # not compatible
query I rowsort label-5978
SELECT + - COUNT ( DISTINCT + NULLIF ( ( - 42 ), 60 * + 80 ) ) * - 23 + + + 49 * 15
----
758

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5979
SELECT ALL + + 14 DIV 31 + - 98 - + 99 * 19 * COUNT( * )
----
-1979

skipif mysql # not compatible
query I rowsort label-5979
SELECT ALL + + 14 / 31 + - 98 - + 99 * 19 * COUNT ( * )
----
-1979

query I rowsort
SELECT ALL - - ( + 76 )
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-5981
SELECT DISTINCT - 36 + + COUNT( * ) * CASE + 52 WHEN 19 * + + 6 + 11 THEN - COUNT( DISTINCT - 87 ) WHEN + - 38 THEN NULL ELSE NULL END + - SUM( ALL + 80 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5981
SELECT DISTINCT - 36 + + COUNT ( * ) * CASE + 52 WHEN 19 * + + 6 + 11 THEN - COUNT ( DISTINCT - 87 ) WHEN + - 38 THEN NULL ELSE NULL END + - SUM ( ALL + 80 ) AS col1
----
NULL

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5984
SELECT - 92 * + 91 + - NULLIF ( 74, - 97 - 34 ) + + 29 - - - CASE - COUNT( ALL - 75 ) WHEN + COUNT( * ) THEN + 22 / + 38 WHEN + 26 THEN NULL END - 6 * 27 * - 89
----
NULL

skipif mysql # not compatible
query I rowsort label-5984
SELECT - 92 * + 91 + - NULLIF ( 74, - 97 - 34 ) + + 29 - - - CASE - COUNT ( ALL - 75 ) WHEN + COUNT ( * ) THEN + 22 / + 38 WHEN + 26 THEN NULL END - 6 * 27 * - 89
----
NULL

query I rowsort
SELECT DISTINCT + - 84 + - 88 AS col1
----
-172

onlyif mysql # DIV for integer division: 
query I rowsort label-5986
SELECT ALL - + 22 DIV - 3 AS col0
----
7

skipif mysql # not compatible
query I rowsort label-5986
SELECT ALL - + 22 / - 3 AS col0
----
7

query I rowsort
SELECT + - 54 * - 21 - 97 * 13 * 43
----
-53089

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

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

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

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

query I rowsort
SELECT DISTINCT - 42 + + + 78 AS col1
----
36

query I rowsort
SELECT DISTINCT + 20 + - 93 + + 12 * + 39 * + 29 AS col0
----
13499

query I rowsort
SELECT ALL + 53 + - 40
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-5993
SELECT DISTINCT + 71 + + 64 * + COUNT( * ) AS col0
----
135

skipif mysql # not compatible
query I rowsort label-5993
SELECT DISTINCT + 71 + + 64 * + COUNT ( * ) AS col0
----
135

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5994
SELECT COUNT( * ) + - 49 * + 18 * 36 AS col2, - 12 * 99 DIV + COUNT( * )
----
-31751
-1188

skipif mysql # not compatible
query II rowsort label-5994
SELECT COUNT ( * ) + - 49 * + 18 * 36 AS col2, - 12 * 99 / + COUNT ( * )
----
-31751
-1188

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5995
SELECT CASE + + 77 WHEN - COALESCE ( - - ( - COUNT( * ) ), + + SUM( - - 45 ) * 74 * - COALESCE ( + 26, COUNT( * ) / + CAST( + - 88 AS SIGNED ) * + COUNT( * ), + + 57 ) - - 28 + - 91, - + 4 * + CASE - CASE - COUNT( * ) WHEN - - 16 * + 85 + 55 THEN - + COUNT( * ) ELSE NULL END WHEN - + 16 THEN CAST( NULL AS SIGNED ) ELSE NULL END + - CASE + CAST( NULL AS SIGNED ) WHEN - 41 * - 80 THEN NULL ELSE - 6 + - 7 END * + 54 + + 27, 23 ) - MIN( 47 ) * + 30 THEN + 5 WHEN - 3 THEN COALESCE ( 36, 65 ) + 71 / - 8 ELSE NULL END * - 24 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5995
SELECT CASE + + 77 WHEN - COALESCE ( - - ( - COUNT ( * ) ), + + SUM ( - - 45 ) * 74 * - COALESCE ( + 26, COUNT ( * ) / + CAST ( + - 88 AS INTEGER ) * + COUNT ( * ), + + 57 ) - - 28 + - 91, - + 4 * + CASE - CASE - COUNT ( * ) WHEN - - 16 * + 85 + 55 THEN - + COUNT ( * ) ELSE NULL END WHEN - + 16 THEN CAST ( NULL AS INTEGER ) ELSE NULL END + - CASE + CAST ( NULL AS INTEGER ) WHEN - 41 * - 80 THEN NULL ELSE - 6 + - 7 END * + 54 + + 27, 23 ) - MIN ( 47 ) * + 30 THEN + 5 WHEN - 3 THEN COALESCE ( 36, 65 ) + 71 / - 8 ELSE NULL END * - 24 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5996
SELECT ALL + 54 - - + 73 + 84 * ( - - 26 ) + MAX( DISTINCT - + 2 ) col0, + 99 * MIN( DISTINCT - 44 ) AS col1
----
2309
-4356

skipif mysql # not compatible
query II rowsort label-5996
SELECT ALL + 54 - - + 73 + 84 * ( - - 26 ) + MAX ( DISTINCT - + 2 ) col0, + 99 * MIN ( DISTINCT - 44 ) AS col1
----
2309
-4356

onlyif mysql # aggregate syntax: 
query I rowsort label-5997
SELECT ALL 16 - COUNT( * ) AS col2
----
15

skipif mysql # not compatible
query I rowsort label-5997
SELECT ALL 16 - COUNT ( * ) AS col2
----
15

query I rowsort
SELECT 44 * + 63 AS col2
----
2772

onlyif mysql # DIV for integer division: 
query I rowsort label-5999
SELECT 50 DIV + 30 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-5999
SELECT 50 / + 30 AS col1
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-6000
SELECT 40 DIV + 60 * - 12 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-6000
SELECT 40 / + 60 * - 12 AS col1
----
0

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6002
SELECT 74 - - - MAX( DISTINCT + 79 ) AS col1
----
-5

skipif mysql # not compatible
query I rowsort label-6002
SELECT 74 - - - MAX ( DISTINCT + 79 ) AS col1
----
-5

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6004
SELECT DISTINCT - CASE + + CASE + - CASE - + 74 WHEN 73 * - - CAST( NULL AS DECIMAL ) THEN MIN( 68 ) / + ( + 57 ) + - - 51 WHEN NULLIF ( 38, - 27 * - COUNT( * ) + 86 ) THEN NULL ELSE NULL END WHEN + + 70 THEN + 32 + - COUNT( * ) + CASE + 57 WHEN + MAX( + 19 ) + 78 THEN + 21 ELSE NULL END ELSE + COUNT( * ) END WHEN + 19 * - 26 + 97 THEN ( - 22 ) WHEN + COALESCE ( + SUM( DISTINCT 31 ), + 55 ) THEN 22 + ( COUNT( * ) ) * 90 END * 63 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6004
SELECT DISTINCT - CASE + + CASE + - CASE - + 74 WHEN 73 * - - CAST ( NULL AS REAL ) THEN MIN ( 68 ) / + ( + 57 ) + - - 51 WHEN NULLIF ( 38, - 27 * - COUNT ( * ) + 86 ) THEN NULL ELSE NULL END WHEN + + 70 THEN + 32 + - COUNT ( * ) + CASE + 57 WHEN + MAX ( + 19 ) + 78 THEN + 21 ELSE NULL END ELSE + COUNT ( * ) END WHEN + 19 * - 26 + 97 THEN ( - 22 ) WHEN + COALESCE ( + SUM ( DISTINCT 31 ), + 55 ) THEN 22 + ( COUNT ( * ) ) * 90 END * 63 AS col0
----
NULL

query I rowsort
SELECT ALL + 65 + - 37 * 17
----
-564

query I rowsort
SELECT 43 - - + 71
----
114

onlyif mysql # aggregate syntax: 
query II rowsort label-6007
SELECT 74 * - - COUNT( * ) AS col0, 44 AS col0
----
74
44

skipif mysql # not compatible
query II rowsort label-6007
SELECT 74 * - - COUNT ( * ) AS col0, 44 AS col0
----
74
44

query I rowsort
SELECT 23 + - 56 + - - 87
----
54

query I rowsort
SELECT ALL + 13 + - 19 AS col2
----
-6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6010
SELECT ALL - - NULLIF ( CAST( NULL AS SIGNED ), - 31 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6010
SELECT ALL - - NULLIF ( CAST ( NULL AS INTEGER ), - 31 ) AS col2
----
NULL

query I rowsort
SELECT 25 * - 2 AS col1
----
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-6012
SELECT - 28 * + 89 + COUNT( * )
----
-2491

skipif mysql # not compatible
query I rowsort label-6012
SELECT - 28 * + 89 + COUNT ( * )
----
-2491

onlyif mysql # aggregate syntax: 
query II rowsort label-6013
SELECT ALL + 67 - + COUNT( * ) + 25 AS col2, - 93 - - 35 + + + 90
----
91
32

skipif mysql # not compatible
query II rowsort label-6013
SELECT ALL + 67 - + COUNT ( * ) + 25 AS col2, - 93 - - 35 + + + 90
----
91
32

query I rowsort
SELECT - 90 * - - ( 39 ) + - 35
----
-3545

onlyif mysql # aggregate syntax: 
query II rowsort label-6015
SELECT - 36 AS col2, - COUNT( 77 )
----
-36
-1

skipif mysql # not compatible
query II rowsort label-6015
SELECT - 36 AS col2, - COUNT ( 77 )
----
-36
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-6016
SELECT COUNT( * ) + - + 44 AS col1
----
-43

skipif mysql # not compatible
query I rowsort label-6016
SELECT COUNT ( * ) + - + 44 AS col1
----
-43

query I rowsort
SELECT 28 * - - 95 * + 64
----
170240

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

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

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

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

query I rowsort
SELECT 50 - - 20 AS col0
----
70

onlyif mysql # DIV for integer division: 
query I rowsort label-6021
SELECT 53 * + - ( COALESCE ( + 37, + 31 DIV - ( + CASE - 44 WHEN 99 THEN NULL WHEN + 46 + + 45 THEN - - 63 END ) DIV + 29, 84 ) )
----
-1961

skipif mysql # not compatible
query I rowsort label-6021
SELECT 53 * + - ( COALESCE ( + 37, + 31 / - ( + CASE - 44 WHEN 99 THEN NULL WHEN + 46 + + 45 THEN - - 63 END ) / + 29, 84 ) )
----
-1961

query I rowsort
SELECT 24 + - + 34 * - 94
----
3220

query I rowsort
SELECT 60 + - 90 * + 0 + - 21
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-6024
SELECT 43 * MIN( - + 28 ) * + 5 * 20 AS col1
----
-120400

skipif mysql # not compatible
query I rowsort label-6024
SELECT 43 * MIN ( - + 28 ) * + 5 * 20 AS col1
----
-120400

query I rowsort
SELECT 79 * 90 AS col0
----
7110

onlyif mysql # DIV for integer division: 
query I rowsort label-6026
SELECT 50 + - - 27 - - 56 DIV - 95 AS col2
----
77

skipif mysql # not compatible
query I rowsort label-6026
SELECT 50 + - - 27 - - 56 / - 95 AS col2
----
77

query I rowsort
SELECT + 89 + - + 73
----
16

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

query I rowsort
SELECT 89 + 57 col0
----
146

query I rowsort
SELECT - ( + 21 ) + + + 31 * 97 AS col0
----
2986

query I rowsort
SELECT - 69 * - 58 AS col2
----
4002

query I rowsort
SELECT + - 83 + 6 AS col0
----
-77

query I rowsort
SELECT ALL - + 30 + + 16
----
-14

query II rowsort
SELECT + 68 col0, + 41
----
68
41

onlyif mysql # aggregate syntax: 
query I rowsort label-6035
SELECT - 82 * MIN( ALL 42 )
----
-3444

skipif mysql # not compatible
query I rowsort label-6035
SELECT - 82 * MIN ( ALL 42 )
----
-3444

onlyif mysql # aggregate syntax: 
query II rowsort label-6036
SELECT + + COUNT( * ) + + + 75 * - - 76 AS col1, - 4 * 1 AS col0
----
5701
-4

skipif mysql # not compatible
query II rowsort label-6036
SELECT + + COUNT ( * ) + + + 75 * - - 76 AS col1, - 4 * 1 AS col0
----
5701
-4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6037
SELECT - NULLIF ( - NULLIF ( + - 16, - COUNT( * ) ), + - MAX( ALL + 42 ) + - + 47 + + CAST( + - 75 AS SIGNED ) * - 47 * 79 * - + 96 + - ( + + 55 ) ) AS col0
----
-16

skipif mysql # not compatible
query I rowsort label-6037
SELECT - NULLIF ( - NULLIF ( + - 16, - COUNT ( * ) ), + - MAX ( ALL + 42 ) + - + 47 + + CAST ( + - 75 AS INTEGER ) * - 47 * 79 * - + 96 + - ( + + 55 ) ) AS col0
----
-16

query II rowsort
SELECT DISTINCT + - 31 AS col1, - 99 col2
----
-31
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-6039
SELECT ALL + COUNT( DISTINCT 65 ) * 48 + 17
----
65

skipif mysql # not compatible
query I rowsort label-6039
SELECT ALL + COUNT ( DISTINCT 65 ) * 48 + 17
----
65

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6040
SELECT - - 48 * - CAST( NULL AS SIGNED ) * + - 66 + - 57 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6040
SELECT - - 48 * - CAST ( NULL AS INTEGER ) * + - 66 + - 57 AS col2
----
NULL

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

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

query I rowsort
SELECT ALL - ( - + 35 ) * 77 + + 71 AS col0
----
2766

query I rowsort
SELECT - ( + 62 ) - + 34 AS col0
----
-96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6044
SELECT + CASE COUNT( * ) WHEN + 48 + 38 THEN + 88 + - + 7 * + + 82 END col0, + CAST( - ( MIN( ALL - + 8 ) ) AS SIGNED )
----
NULL
8

skipif mysql # not compatible
query II rowsort label-6044
SELECT + CASE COUNT ( * ) WHEN + 48 + 38 THEN + 88 + - + 7 * + + 82 END col0, + CAST ( - ( MIN ( ALL - + 8 ) ) AS INTEGER )
----
NULL
8

query I rowsort
SELECT COALESCE ( - + 70, + NULLIF ( - 58, 67 / 67 ) * 94 ) AS col1
----
-70

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6046
SELECT CASE - ( + + 15 ) WHEN - 48 THEN NULL WHEN + + 12 THEN + - 25 END AS col1, 63 * - 62 + 6 * 20 - COALESCE ( - 14, + 94, CASE - 12 WHEN 55 / ( + COUNT( DISTINCT 81 ) ) * ( ( - NULLIF ( - + CAST( + - 21 AS SIGNED ), + 9 * + 79 - - ( + 11 ) ) ) ) THEN - 16 ELSE NULL END ) + CAST( NULL AS SIGNED ) + - 93 AS col0
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-6046
SELECT CASE - ( + + 15 ) WHEN - 48 THEN NULL WHEN + + 12 THEN + - 25 END AS col1, 63 * - 62 + 6 * 20 - COALESCE ( - 14, + 94, CASE - 12 WHEN 55 / ( + COUNT ( DISTINCT 81 ) ) * ( ( - NULLIF ( - + CAST ( + - 21 AS INTEGER ), + 9 * + 79 - - ( + 11 ) ) ) ) THEN - 16 ELSE NULL END ) + CAST ( NULL AS INTEGER ) + - 93 AS col0
----
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6047
SELECT + 41 * + + 4 AS col0, - CAST( - + 92 AS SIGNED )
----
164
92

skipif mysql # not compatible
query II rowsort label-6047
SELECT + 41 * + + 4 AS col0, - CAST ( - + 92 AS INTEGER )
----
164
92

query I rowsort
SELECT ALL 46 * 16
----
736

onlyif mysql # aggregate syntax: 
query I rowsort label-6049
SELECT MAX( ( + - 4 ) ) AS col2
----
-4

skipif mysql # not compatible
query I rowsort label-6049
SELECT MAX ( ( + - 4 ) ) AS col2
----
-4

query I rowsort
SELECT - 86 * 65 * + COALESCE ( - 65, - ( - + 45 ), - 50 * + 5 * 19 - + + 56 * + - 7 ) - + - 56 AS col1
----
363406

onlyif mysql # aggregate syntax: 
query I rowsort label-6051
SELECT SUM( ALL - 83 ) AS col2
----
-83

skipif mysql # not compatible
query I rowsort label-6051
SELECT SUM ( ALL - 83 ) AS col2
----
-83

query I rowsort
SELECT + CASE 63 WHEN 49 - 64 THEN ( + ( COALESCE ( - - 71, - 99 ) ) ) WHEN + + 0 THEN NULL END AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6053
SELECT + 87 - - 28 + 29 DIV + - 44
----
115

skipif mysql # not compatible
query I rowsort label-6053
SELECT + 87 - - 28 + 29 / + - 44
----
115

query I rowsort
SELECT ALL 93 * + 74 AS col2
----
6882

query I rowsort
SELECT + 5 * - - 35
----
175

onlyif mysql # aggregate syntax: 
query I rowsort label-6056
SELECT ALL + COALESCE ( + - COUNT( + - 90 ), COUNT( - 11 ) )
----
-1

skipif mysql # not compatible
query I rowsort label-6056
SELECT ALL + COALESCE ( + - COUNT ( + - 90 ), COUNT ( - 11 ) )
----
-1

query I rowsort
SELECT + 48 * - 57 - 11
----
-2747

query II rowsort
SELECT ALL 0 AS col1, 86 + - 89 AS col1
----
0
-3

onlyif mysql # aggregate syntax: 
query II rowsort label-6059
SELECT - 2 AS col2, 81 * - - COUNT( * ) + COUNT( DISTINCT - 76 ) + - + 45 + - + MIN( + - 65 ) + - 82 * + 18 * - + 81 * + 99 * + COUNT( * )
----
-2
11836146

skipif mysql # not compatible
query II rowsort label-6059
SELECT - 2 AS col2, 81 * - - COUNT ( * ) + COUNT ( DISTINCT - 76 ) + - + 45 + - + MIN ( + - 65 ) + - 82 * + 18 * - + 81 * + 99 * + COUNT ( * )
----
-2
11836146

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6060
SELECT - NULLIF ( - COUNT( * ), + + 1 + + + 16 ) DIV 47 * + 66
----
0

skipif mysql # not compatible
query I rowsort label-6060
SELECT - NULLIF ( - COUNT ( * ), + + 1 + + + 16 ) / 47 * + 66
----
0

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6063
SELECT - COALESCE ( + - 41, - 14, - + 52 ) + + MIN( - 47 )
----
-6

skipif mysql # not compatible
query I rowsort label-6063
SELECT - COALESCE ( + - 41, - 14, - + 52 ) + + MIN ( - 47 )
----
-6

query I rowsort
SELECT - 3 * - 30 col2
----
90

query I rowsort
SELECT DISTINCT + 46 + - + 7
----
39

query I rowsort
SELECT ALL - 92 * - 71 AS col1
----
6532

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6067
SELECT DISTINCT + COALESCE ( CAST( NULL AS SIGNED ), - 85 - + + ( 38 ) ) + - 5 * - MIN( ALL - 24 )
----
-243

skipif mysql # not compatible
query I rowsort label-6067
SELECT DISTINCT + COALESCE ( CAST ( NULL AS INTEGER ), - 85 - + + ( 38 ) ) + - 5 * - MIN ( ALL - 24 )
----
-243

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6069
SELECT ALL 70 + CAST( - MIN( - 11 ) AS SIGNED ), - 48 * - - 49 AS col0
----
81
-2352

skipif mysql # not compatible
query II rowsort label-6069
SELECT ALL 70 + CAST ( - MIN ( - 11 ) AS INTEGER ), - 48 * - - 49 AS col0
----
81
-2352

onlyif mysql # aggregate syntax: 
query I rowsort label-6070
SELECT - MIN( - - 66 )
----
-66

skipif mysql # not compatible
query I rowsort label-6070
SELECT - MIN ( - - 66 )
----
-66

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

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

query II rowsort
SELECT - 41 AS col0, 13 AS col1
----
-41
13

query I rowsort
SELECT - + 37 * + 4 * 3 * 95 AS col1
----
-42180

query I rowsort
SELECT - 76 - - 94
----
18

query I rowsort
SELECT - 89 - - - 24
----
-113

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6076
SELECT - 3 + - CAST( + - 91 AS SIGNED )
----
88

skipif mysql # not compatible
query I rowsort label-6076
SELECT - 3 + - CAST ( + - 91 AS INTEGER )
----
88

query I rowsort
SELECT ALL - + 2 * + 28 * - + NULLIF ( 45, + - 53 / + 94 * + - 97 + - 41 ) * 3 col2
----
7560

onlyif mysql # aggregate syntax: 
query II rowsort label-6078
SELECT DISTINCT COUNT( * ) AS col2, - 8 - + COUNT( DISTINCT 80 ) AS col2
----
1
-9

skipif mysql # not compatible
query II rowsort label-6078
SELECT DISTINCT COUNT ( * ) AS col2, - 8 - + COUNT ( DISTINCT 80 ) AS col2
----
1
-9

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6080
SELECT - - 0 * - NULLIF ( + 33, + CAST( NULL AS SIGNED ) ) + COUNT( + 12 ) + - COUNT( 65 ) col0
----
0

skipif mysql # not compatible
query I rowsort label-6080
SELECT - - 0 * - NULLIF ( + 33, + CAST ( NULL AS INTEGER ) ) + COUNT ( + 12 ) + - COUNT ( 65 ) col0
----
0

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

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

query I rowsort
SELECT ALL - - 23 * 49
----
1127

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6084
SELECT - COUNT( * ) * + 45 + + - 8
----
-53

skipif mysql # not compatible
query I rowsort label-6084
SELECT - COUNT ( * ) * + 45 + + - 8
----
-53

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6085
SELECT + COUNT( * ) * 94 * - - CAST( 46 AS SIGNED )
----
4324

skipif mysql # not compatible
query I rowsort label-6085
SELECT + COUNT ( * ) * 94 * - - CAST ( 46 AS INTEGER )
----
4324

query I rowsort
SELECT ALL + ( - 76 )
----
-76

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6088
SELECT DISTINCT - COUNT( * ) * + CASE - COUNT( * ) WHEN 30 + COUNT( * ) THEN NULL WHEN + 16 + + 17 THEN 37 END
----
NULL

skipif mysql # not compatible
query I rowsort label-6088
SELECT DISTINCT - COUNT ( * ) * + CASE - COUNT ( * ) WHEN 30 + COUNT ( * ) THEN NULL WHEN + 16 + + 17 THEN 37 END
----
NULL

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6090
SELECT - 69 + - 9 AS col0, COUNT( * ) col1
----
-78
1

skipif mysql # not compatible
query II rowsort label-6090
SELECT - 69 + - 9 AS col0, COUNT ( * ) col1
----
-78
1

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6092
SELECT + 34 + + 60 + + MIN( - + 81 ) * + 65 AS col1
----
-5171

skipif mysql # not compatible
query I rowsort label-6092
SELECT + 34 + + 60 + + MIN ( - + 81 ) * + 65 AS col1
----
-5171

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6093
SELECT ALL NULLIF ( - + CAST( - - 37 AS SIGNED ), NULLIF ( + 8, - + 23 + AVG ( ALL - 15 ) * + 8 - 60 ) * + COUNT( * ) ) * + 60
----
-2220

skipif mysql # not compatible
query I rowsort label-6093
SELECT ALL NULLIF ( - + CAST ( - - 37 AS INTEGER ), NULLIF ( + 8, - + 23 + AVG ( ALL - 15 ) * + 8 - 60 ) * + COUNT ( * ) ) * + 60
----
-2220

query I rowsort
SELECT - 45 * - 34
----
1530

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6095
SELECT + MAX( - 38 ) * 20 + + - 25 + 59 * + MIN( - 83 ), CAST( 66 AS SIGNED ) AS col2
----
-5682
66

skipif mysql # not compatible
query II rowsort label-6095
SELECT + MAX ( - 38 ) * 20 + + - 25 + 59 * + MIN ( - 83 ), CAST ( 66 AS INTEGER ) AS col2
----
-5682
66

onlyif mysql # aggregate syntax: 
query I rowsort label-6096
SELECT 96 * NULLIF ( - ( - 23 ), + ( - - ( + + 12 ) ) * - COUNT( * ) - + + 32 ) + + + 73 + + 42 col0
----
2323

skipif mysql # not compatible
query I rowsort label-6096
SELECT 96 * NULLIF ( - ( - 23 ), + ( - - ( + + 12 ) ) * - COUNT ( * ) - + + 32 ) + + + 73 + + 42 col0
----
2323

onlyif mysql # aggregate syntax: 
query II rowsort label-6097
SELECT CASE 80 WHEN + 10 * - + 46 + + - 5 - + - 11 THEN ( + COALESCE ( - - 91, 21 ) ) END AS col1, - COUNT( * ) + + - 95 * + COUNT( * )
----
NULL
-96

skipif mysql # not compatible
query II rowsort label-6097
SELECT CASE 80 WHEN + 10 * - + 46 + + - 5 - + - 11 THEN ( + COALESCE ( - - 91, 21 ) ) END AS col1, - COUNT ( * ) + + - 95 * + COUNT ( * )
----
NULL
-96

query I rowsort
SELECT ALL + 5 * + 42 AS col0
----
210

onlyif mysql # DIV for integer division: 
query I rowsort label-6099
SELECT DISTINCT 38 + 7 DIV 27 AS col1
----
38

skipif mysql # not compatible
query I rowsort label-6099
SELECT DISTINCT 38 + 7 / 27 AS col1
----
38

query I rowsort
SELECT ALL 97 + + 21 AS col1
----
118

query I rowsort
SELECT ALL + 22 + + 69 AS col0
----
91

query I rowsort
SELECT + 93 + + 74 + + - 68 col0
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-6103
SELECT - 21 + - NULLIF ( + 76, + COUNT( * ) ) + - 38 * - 16
----
511

skipif mysql # not compatible
query I rowsort label-6103
SELECT - 21 + - NULLIF ( + 76, + COUNT ( * ) ) + - 38 * - 16
----
511

query I rowsort
SELECT - 60 + + 29 AS col2
----
-31

query I rowsort
SELECT - 30 * - - ( + 44 ) AS col0
----
-1320

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6106
SELECT 41 + + 45 + + CAST( - 42 AS SIGNED )
----
44

skipif mysql # not compatible
query I rowsort label-6106
SELECT 41 + + 45 + + CAST ( - 42 AS INTEGER )
----
44

query I rowsort
SELECT ALL ( 2 ) + + 1
----
3

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

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

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

query II rowsort
SELECT - 87 + 83 AS col0, 11
----
-4
11

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6111
SELECT ALL CAST( 64 AS SIGNED ) AS col2, - ( NULLIF ( + CAST( NULL AS SIGNED ), - 54 * + - 71 - 29 ) ) * - 51
----
64
NULL

skipif mysql # not compatible
query II rowsort label-6111
SELECT ALL CAST ( 64 AS INTEGER ) AS col2, - ( NULLIF ( + CAST ( NULL AS INTEGER ), - 54 * + - 71 - 29 ) ) * - 51
----
64
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6113
SELECT + 10 * - COUNT( * ) + 38 - + - 94
----
122

skipif mysql # not compatible
query I rowsort label-6113
SELECT + 10 * - COUNT ( * ) + 38 - + - 94
----
122

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6114
SELECT ALL + CASE + - 84 WHEN - - CAST( 28 AS SIGNED ) THEN NULLIF ( + 46, - 60 ) * + - 38 + + COUNT( * ) + - NULLIF ( - 31, + + 18 ) WHEN 59 * + 97 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-6114
SELECT ALL + CASE + - 84 WHEN - - CAST ( 28 AS INTEGER ) THEN NULLIF ( + 46, - 60 ) * + - 38 + + COUNT ( * ) + - NULLIF ( - 31, + + 18 ) WHEN 59 * + 97 THEN NULL END
----
NULL

query I rowsort
SELECT ( - 49 ) + - 97 + + + 36 AS col1
----
-110

query I rowsort
SELECT - 37 + 55 * - 63 + + 61 AS col1
----
-3441

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6117
SELECT 90 + - CAST( - 65 AS SIGNED ) * + 97
----
6395

skipif mysql # not compatible
query I rowsort label-6117
SELECT 90 + - CAST ( - 65 AS INTEGER ) * + 97
----
6395

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6118
SELECT DISTINCT - CASE - CAST( - 48 AS SIGNED ) WHEN + 7 + CAST( NULL AS SIGNED ) THEN + 9 + - + 24 + - - 24 + + ( + - 71 ) ELSE 2 END - 17
----
-19

skipif mysql # not compatible
query I rowsort label-6118
SELECT DISTINCT - CASE - CAST ( - 48 AS INTEGER ) WHEN + 7 + CAST ( NULL AS INTEGER ) THEN + 9 + - + 24 + - - 24 + + ( + - 71 ) ELSE 2 END - 17
----
-19

query II rowsort
SELECT DISTINCT - 57 AS col2, 72 AS col2
----
-57
72

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6120
SELECT 38 * - - CAST( + NULLIF ( - - 75, - - 47 + + COALESCE ( - + COALESCE ( - 78, ( - 47 ) ), + - 62, + 12 ) * 83 * 74 * - - 59 + + + 24 ) AS SIGNED )
----
2850

skipif mysql # not compatible
query I rowsort label-6120
SELECT 38 * - - CAST ( + NULLIF ( - - 75, - - 47 + + COALESCE ( - + COALESCE ( - 78, ( - 47 ) ), + - 62, + 12 ) * 83 * 74 * - - 59 + + + 24 ) AS INTEGER )
----
2850

onlyif mysql # aggregate syntax: 
query I rowsort label-6121
SELECT ALL - SUM( - 20 ) col0
----
20

skipif mysql # not compatible
query I rowsort label-6121
SELECT ALL - SUM ( - 20 ) col0
----
20

onlyif mysql # DIV for integer division: 
query I rowsort label-6122
SELECT 44 DIV - 54 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-6122
SELECT 44 / - 54 AS col0
----
0

query I rowsort
SELECT ALL + 63 * - 61 AS col2
----
-3843

query I rowsort
SELECT ALL - 9 * - + 10
----
90

onlyif mysql # DIV for integer division: 
query I rowsort label-6125
SELECT 34 DIV 92
----
0

skipif mysql # not compatible
query I rowsort label-6125
SELECT 34 / 92
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6126
SELECT ALL + 64 + CASE - + ( + 51 ) WHEN - 90 / + 38 + + 57 THEN - - CASE 83 WHEN + - MIN( ALL 1 ) THEN NULL ELSE + - COUNT( * ) * 57 + - - 16 END ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-6126
SELECT ALL + 64 + CASE - + ( + 51 ) WHEN - 90 / + 38 + + 57 THEN - - CASE 83 WHEN + - MIN ( ALL 1 ) THEN NULL ELSE + - COUNT ( * ) * 57 + - - 16 END ELSE NULL END
----
NULL

query I rowsort
SELECT 79 * + 24 AS col0
----
1896

query III rowsort
SELECT ALL + 46 + + + ( - 31 ) col1, 74 AS col0, 98 AS col1
----
15
74
98

query I rowsort
SELECT + 39 * - 69 - - 1 * 91 AS col2
----
-2600

query I rowsort
SELECT ALL + 73 * - 32 AS col0
----
-2336

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

skipif mysql # not compatible
query II rowsort label-6131
SELECT ALL - 33 col2, COUNT ( * ) AS col2
----
-33
1

query II rowsort
SELECT + 55 AS col2, - 50
----
55
-50

onlyif mysql # DIV for integer division: 
query I rowsort label-6133
SELECT ALL + 1 + 44 DIV + 79 * + 82 * + + 58
----
1

skipif mysql # not compatible
query I rowsort label-6133
SELECT ALL + 1 + 44 / + 79 * + 82 * + + 58
----
1

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

query I rowsort
SELECT DISTINCT - 28 + - ( 54 )
----
-82

query I rowsort
SELECT 18 * + 13 AS col2
----
234

onlyif mysql # aggregate syntax: 
query I rowsort label-6137
SELECT - MIN( + + 57 )
----
-57

skipif mysql # not compatible
query I rowsort label-6137
SELECT - MIN ( + + 57 )
----
-57

query II rowsort
SELECT - 3 AS col1, 53
----
-3
53

query I rowsort
SELECT 97 * - ( - 21 ) * + 12 + + 3 AS col2
----
24447

query I rowsort
SELECT + 27 * - 89
----
-2403

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-6141
SELECT DISTINCT + CAST( 60 AS SIGNED ) * - 72, + 53 DIV + 50 AS col0
----
-4320
1

skipif mysql # not compatible
query II rowsort label-6141
SELECT DISTINCT + CAST ( 60 AS INTEGER ) * - 72, + 53 / + 50 AS col0
----
-4320
1

query II rowsort
SELECT ALL - 46, 43 * - 89 * 16 AS col0
----
-46
-61232

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

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6145
SELECT 31 AS col2, COALESCE ( - 97, - 74 ) DIV COUNT( DISTINCT - 94 ) * - COUNT( * )
----
31
97

skipif mysql # not compatible
query II rowsort label-6145
SELECT 31 AS col2, COALESCE ( - 97, - 74 ) / COUNT ( DISTINCT - 94 ) * - COUNT ( * )
----
31
97

onlyif mysql # DIV for integer division: 
query I rowsort label-6146
SELECT + 60 DIV - 92 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-6146
SELECT + 60 / - 92 AS col2
----
0

query I rowsort
SELECT 15 + - - 30
----
45

query I rowsort
SELECT 46 - 75
----
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-6149
SELECT + NULLIF ( + SUM( + 16 ), + COUNT( * ) * - 81 ) * 41 AS col0
----
656

skipif mysql # not compatible
query I rowsort label-6149
SELECT + NULLIF ( + SUM ( + 16 ), + COUNT ( * ) * - 81 ) * 41 AS col0
----
656

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

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6152
SELECT ALL - 22 * - 2 * - 18 + - - COUNT( * ) AS col2, 39 * + 96 * + + 89 AS col2
----
-791
333216

skipif mysql # not compatible
query II rowsort label-6152
SELECT ALL - 22 * - 2 * - 18 + - - COUNT ( * ) AS col2, 39 * + 96 * + + 89 AS col2
----
-791
333216

onlyif mysql # DIV for integer division: 
query I rowsort label-6153
SELECT DISTINCT 66 DIV + 30
----
2

skipif mysql # not compatible
query I rowsort label-6153
SELECT DISTINCT 66 / + 30
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-6154
SELECT NULLIF ( 96, + 52 * COUNT( * ) + - 11 * + SUM( DISTINCT + + 31 ) ) * 38 * - + 87 + - 69
----
-317445

skipif mysql # not compatible
query I rowsort label-6154
SELECT NULLIF ( 96, + 52 * COUNT ( * ) + - 11 * + SUM ( DISTINCT + + 31 ) ) * 38 * - + 87 + - 69
----
-317445

query I rowsort
SELECT 38 + + 1 AS col0
----
39

query I rowsort
SELECT 54 - + 63 + + 2 AS col2
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-6157
SELECT + MIN( 84 ) AS col1
----
84

skipif mysql # not compatible
query I rowsort label-6157
SELECT + MIN ( 84 ) AS col1
----
84

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6158
SELECT CAST( + 58 AS SIGNED ) * - 12 col1
----
-696

skipif mysql # not compatible
query I rowsort label-6158
SELECT CAST ( + 58 AS INTEGER ) * - 12 col1
----
-696

onlyif mysql # aggregate syntax: 
query I rowsort label-6159
SELECT DISTINCT - SUM( ALL + ( + 35 ) ) col2
----
-35

skipif mysql # not compatible
query I rowsort label-6159
SELECT DISTINCT - SUM ( ALL + ( + 35 ) ) col2
----
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-6160
SELECT ALL - 97 * + - COUNT( * ) + + 80 AS col0
----
177

skipif mysql # not compatible
query I rowsort label-6160
SELECT ALL - 97 * + - COUNT ( * ) + + 80 AS col0
----
177

onlyif mysql # aggregate syntax: 
query I rowsort label-6161
SELECT ALL 35 * + 27 + 75 - + 35 * + COUNT( * ) AS col1
----
985

skipif mysql # not compatible
query I rowsort label-6161
SELECT ALL 35 * + 27 + 75 - + 35 * + COUNT ( * ) AS col1
----
985

onlyif mysql # DIV for integer division: 
query I rowsort label-6162
SELECT DISTINCT 15 DIV + 74 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-6162
SELECT DISTINCT 15 / + 74 AS col2
----
0

query I rowsort
SELECT + 38 * 41
----
1558

query I rowsort
SELECT - 44 * - 12
----
528

query I rowsort
SELECT ALL - 42 * + 68
----
-2856

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6166
SELECT - 62 DIV + + 28, + COUNT( * ) col2
----
-2
1

skipif mysql # not compatible
query II rowsort label-6166
SELECT - 62 / + + 28, + COUNT ( * ) col2
----
-2
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6167
SELECT - ( - CAST( + 65 AS SIGNED ) ) + ( 15 ) col0
----
80

skipif mysql # not compatible
query I rowsort label-6167
SELECT - ( - CAST ( + 65 AS INTEGER ) ) + ( 15 ) col0
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-6168
SELECT ALL + COALESCE ( - 12, 15 + + - 46 ) * + MAX( ALL 72 ) AS col1
----
-864

skipif mysql # not compatible
query I rowsort label-6168
SELECT ALL + COALESCE ( - 12, 15 + + - 46 ) * + MAX ( ALL 72 ) AS col1
----
-864

query I rowsort
SELECT - + 55 * - 56 * - - 13
----
40040

query I rowsort
SELECT - + 50 * + 13 + - + 0
----
-650

onlyif mysql # aggregate syntax: 
query II rowsort label-6171
SELECT + 87 * ( - - 97 ) + 63 - + + 36 + 99 - 41 + 84 - COUNT( * ), 96 * - ( - 27 ) AS col2
----
8607
2592

skipif mysql # not compatible
query II rowsort label-6171
SELECT + 87 * ( - - 97 ) + 63 - + + 36 + 99 - 41 + 84 - COUNT ( * ), 96 * - ( - 27 ) AS col2
----
8607
2592

query I rowsort
SELECT ALL + + 91 * + 50 col2
----
4550

query II rowsort
SELECT ALL - ( 77 ), 59 AS col0
----
-77
59

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6175
SELECT DISTINCT ( - - CASE - 83 WHEN + COUNT( * ) DIV - 42 THEN NULL WHEN + 53 DIV 63 * + 78 THEN NULL ELSE + 64 * 97 DIV + 64 + 2 + + COUNT( * ) + - 73 * + + COUNT( * ) END ) AS col1
----
27

skipif mysql # not compatible
query I rowsort label-6175
SELECT DISTINCT ( - - CASE - 83 WHEN + COUNT ( * ) / - 42 THEN NULL WHEN + 53 / 63 * + 78 THEN NULL ELSE + 64 * 97 / + 64 + 2 + + COUNT ( * ) + - 73 * + + COUNT ( * ) END ) AS col1
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-6176
SELECT - + COUNT( - - 54 ) + 66
----
65

skipif mysql # not compatible
query I rowsort label-6176
SELECT - + COUNT ( - - 54 ) + 66
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-6177
SELECT + - 23 + + 43 - - COUNT( * ) + + 65 * 68
----
4441

skipif mysql # not compatible
query I rowsort label-6177
SELECT + - 23 + + 43 - - COUNT ( * ) + + 65 * 68
----
4441

onlyif mysql # aggregate syntax: 
query I rowsort label-6178
SELECT - + MAX( DISTINCT - 95 ) * + 44 * + NULLIF ( 99, + 51 )
----
413820

skipif mysql # not compatible
query I rowsort label-6178
SELECT - + MAX ( DISTINCT - 95 ) * + 44 * + NULLIF ( 99, + 51 )
----
413820

query I rowsort
SELECT + + 48 + + + 63
----
111

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

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

query I rowsort
SELECT + 28 * 61 + + 69
----
1777

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6182
SELECT ALL + 93 * + 0 * CAST( - 48 AS SIGNED ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-6182
SELECT ALL + 93 * + 0 * CAST ( - 48 AS INTEGER ) AS col0
----
0

query I rowsort
SELECT ALL - 82 * 89
----
-7298

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

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

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

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

query I rowsort
SELECT ALL ( - + 13 )
----
-13

query I rowsort
SELECT + 58 + 67
----
125

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6188
SELECT DISTINCT ( + + ( CASE - + 8 WHEN - - CAST( - 96 AS DECIMAL ) * + 85 THEN NULL ELSE + 40 END ) ) + + 42 AS col0
----
82

skipif mysql # not compatible
query I rowsort label-6188
SELECT DISTINCT ( + + ( CASE - + 8 WHEN - - CAST ( - 96 AS REAL ) * + 85 THEN NULL ELSE + 40 END ) ) + + 42 AS col0
----
82

query I rowsort
SELECT DISTINCT 82 + - - 70 AS col1
----
152

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6190
SELECT ALL 75 DIV 67 + 57, + ( 43 ) + COUNT( * ) DIV 18 AS col1
----
58
43

skipif mysql # not compatible
query II rowsort label-6190
SELECT ALL 75 / 67 + 57, + ( 43 ) + COUNT ( * ) / 18 AS col1
----
58
43

query I rowsort
SELECT + 22 * - ( + 23 ) AS col0
----
-506

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6193
SELECT + 31 * - ( - - 58 ) + + + 97 + + - NULLIF ( + CAST( + 67 AS SIGNED ), - - 39 / + 30 ) * 82 + + 88 AS col1
----
-7107

skipif mysql # not compatible
query I rowsort label-6193
SELECT + 31 * - ( - - 58 ) + + + 97 + + - NULLIF ( + CAST ( + 67 AS INTEGER ), - - 39 / + 30 ) * 82 + + 88 AS col1
----
-7107

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6194
SELECT DISTINCT - 53 DIV 77 + + 47 + - + MIN( DISTINCT + + 66 ) * + + 51 + - 16
----
-3335

skipif mysql # not compatible
query I rowsort label-6194
SELECT DISTINCT - 53 / 77 + + 47 + - + MIN ( DISTINCT + + 66 ) * + + 51 + - 16
----
-3335

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6195
SELECT ALL + 69 DIV - 7 + 2 * COUNT( * ) + - - 65
----
58

skipif mysql # not compatible
query I rowsort label-6195
SELECT ALL + 69 / - 7 + 2 * COUNT ( * ) + - - 65
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-6196
SELECT DISTINCT 62 * - 30 + + 87 + + COUNT( * ) + - 25 * - + 98 col0
----
678

skipif mysql # not compatible
query I rowsort label-6196
SELECT DISTINCT 62 * - 30 + + 87 + + COUNT ( * ) + - 25 * - + 98 col0
----
678

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6197
SELECT ALL COUNT( * ) * 13 + + ( + 85 ) * - CAST( NULL AS DECIMAL ) * COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-6197
SELECT ALL COUNT ( * ) * 13 + + ( + 85 ) * - CAST ( NULL AS REAL ) * COUNT ( * )
----
NULL

query I rowsort
SELECT ALL 74 * + 54 col0
----
3996

query I rowsort
SELECT + 39 + + - 58 + 35 AS col0
----
16

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

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

query I rowsort
SELECT + 87 * 19 + 44
----
1697

query I rowsort
SELECT DISTINCT 99 * 49 - + 41 + 79 + - 91 * + 28 AS col0
----
2341

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

query II rowsort
SELECT 74 * + - 88 + 53 AS col1, 23 * + + 87
----
-6459
2001

onlyif mysql # DIV for integer division: 
query I rowsort label-6205
SELECT ALL 89 * - + 60 - 50 DIV - + 82
----
-5340

skipif mysql # not compatible
query I rowsort label-6205
SELECT ALL 89 * - + 60 - 50 / - + 82
----
-5340

query I rowsort
SELECT ALL + COALESCE ( - + 23, + + 75 )
----
-23

onlyif mysql # DIV for integer division: 
query I rowsort label-6207
SELECT ALL - 38 DIV + 47 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-6207
SELECT ALL - 38 / + 47 AS col0
----
0

query I rowsort
SELECT DISTINCT - + 26 * - 60 AS col1
----
1560

onlyif mysql # aggregate syntax: 
query I rowsort label-6209
SELECT - - 77 * + + COUNT( * ) * - CASE - 12 WHEN 1 THEN NULL WHEN 41 + ( - - 39 ) * - 10 THEN + + ( - - 46 ) ELSE NULL END + - 11 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6209
SELECT - - 77 * + + COUNT ( * ) * - CASE - 12 WHEN 1 THEN NULL WHEN 41 + ( - - 39 ) * - 10 THEN + + ( - - 46 ) ELSE NULL END + - 11 col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6210
SELECT - COALESCE ( + 30, + 56 DIV - - 81 - + + 0 ) - 84 + SUM( + 3 ) DIV + + 31 * - 27 * - 20 + + - 61 + 25 DIV + 41 * - 83 DIV - - 52
----
-175

skipif mysql # not compatible
query I rowsort label-6210
SELECT - COALESCE ( + 30, + 56 / - - 81 - + + 0 ) - 84 + SUM ( + 3 ) / + + 31 * - 27 * - 20 + + - 61 + 25 / + 41 * - 83 / - - 52
----
-175

query I rowsort
SELECT DISTINCT - 44 * 10
----
-440

query II rowsort
SELECT DISTINCT - - 22 * 84 + - 67, 48 AS col2
----
1781
48

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6213
SELECT - 83 * + SUM( - COALESCE ( + 82, CAST( NULL AS SIGNED ) ) )
----
6806

skipif mysql # not compatible
query I rowsort label-6213
SELECT - 83 * + SUM ( - COALESCE ( + 82, CAST ( NULL AS INTEGER ) ) )
----
6806

query I rowsort
SELECT ALL - 31 + 73
----
42

query I rowsort
SELECT - + 56 + 56
----
0

query I rowsort
SELECT - 29 + 4 * + 88
----
323

query I rowsort
SELECT - 35 * - 13
----
455

onlyif mysql # aggregate syntax: 
query I rowsort label-6218
SELECT ALL - COUNT( DISTINCT + 74 ) + - - 51
----
50

skipif mysql # not compatible
query I rowsort label-6218
SELECT ALL - COUNT ( DISTINCT + 74 ) + - - 51
----
50

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6219
SELECT ALL 29 AS col1, CAST( - 3 AS SIGNED ) AS col0
----
29
-3

skipif mysql # not compatible
query II rowsort label-6219
SELECT ALL 29 AS col1, CAST ( - 3 AS INTEGER ) AS col0
----
29
-3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6220
SELECT 72 + 83 * + CASE 92 WHEN - MAX( ALL COALESCE ( - 39, + - 5 + ( + CAST( NULL AS SIGNED ) ) ) ) THEN NULL WHEN ( + + ( + + 2 ) ) + + - SUM( DISTINCT ( + 74 ) ) THEN 16 END + 10 + + + 41 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6220
SELECT 72 + 83 * + CASE 92 WHEN - MAX ( ALL COALESCE ( - 39, + - 5 + ( + CAST ( NULL AS INTEGER ) ) ) ) THEN NULL WHEN ( + + ( + + 2 ) ) + + - SUM ( DISTINCT ( + 74 ) ) THEN 16 END + 10 + + + 41 AS col1
----
NULL

query I rowsort
SELECT ALL 63 - - + 6
----
69

query I rowsort
SELECT 79 * + 74 AS col2
----
5846

query I rowsort
SELECT ALL - 42 * - + 85
----
3570

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6224
SELECT + 64 * + 36 + - - 82 DIV - COUNT( * )
----
2222

skipif mysql # not compatible
query I rowsort label-6224
SELECT + 64 * + 36 + - - 82 / - COUNT ( * )
----
2222

query I rowsort
SELECT ( - - 13 ) - + - 86 + + 9
----
108

query II rowsort
SELECT + 48 AS col2, + 71
----
48
71

query I rowsort
SELECT ALL 27 - + 90 AS col2
----
-63

onlyif mysql # aggregate syntax: 
query II rowsort label-6228
SELECT 68 * + 54, COUNT( * ) AS col2
----
3672
1

skipif mysql # not compatible
query II rowsort label-6228
SELECT 68 * + 54, COUNT ( * ) AS col2
----
3672
1

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6230
SELECT 88 / - ( 83 ) + + CAST( NULL AS DECIMAL ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6230
SELECT 88 / - ( 83 ) + + CAST ( NULL AS REAL ) AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6231
SELECT DISTINCT 62 DIV + - 15 AS col0
----
-4

skipif mysql # not compatible
query I rowsort label-6231
SELECT DISTINCT 62 / + - 15 AS col0
----
-4

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6232
SELECT ALL - - 98 AS col1, 72 * 39 DIV - COUNT( * ) col1
----
98
-2808

skipif mysql # not compatible
query II rowsort label-6232
SELECT ALL - - 98 AS col1, 72 * 39 / - COUNT ( * ) col1
----
98
-2808

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6233
SELECT DISTINCT 3 DIV 64 - - 48 + + + 23 + - COUNT( * ) * - 72 * + NULLIF ( 7, + + 9 ) - + 32 AS col0
----
543

skipif mysql # not compatible
query I rowsort label-6233
SELECT DISTINCT 3 / 64 - - 48 + + + 23 + - COUNT ( * ) * - 72 * + NULLIF ( 7, + + 9 ) - + 32 AS col0
----
543

onlyif mysql # aggregate syntax: 
query I rowsort label-6234
SELECT DISTINCT 86 * + 43 * + COUNT( * )
----
3698

skipif mysql # not compatible
query I rowsort label-6234
SELECT DISTINCT 86 * + 43 * + COUNT ( * )
----
3698

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6235
SELECT CAST( NULL AS DECIMAL ) + + 59 + CASE + 94 WHEN - - 69 THEN 12 WHEN + 45 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-6235
SELECT CAST ( NULL AS REAL ) + + 59 + CASE + 94 WHEN - - 69 THEN 12 WHEN + 45 THEN NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6236
SELECT + - 72 AS col0, COUNT( * ) * - 47 * - 70
----
-72
3290

skipif mysql # not compatible
query II rowsort label-6236
SELECT + - 72 AS col0, COUNT ( * ) * - 47 * - 70
----
-72
3290

query I rowsort
SELECT - 4 + - 21 * 81 AS col0
----
-1705

onlyif mysql # aggregate syntax: 
query II rowsort label-6238
SELECT ALL COUNT( * ) * - + 49 + 8 - - 67, COUNT( * ) col1
----
26
1

skipif mysql # not compatible
query II rowsort label-6238
SELECT ALL COUNT ( * ) * - + 49 + 8 - - 67, COUNT ( * ) col1
----
26
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6239
SELECT ALL - + NULLIF ( + 65, + 40 / - ( + COUNT( * ) ) ) AS col0
----
-65

skipif mysql # not compatible
query I rowsort label-6239
SELECT ALL - + NULLIF ( + 65, + 40 / - ( + COUNT ( * ) ) ) AS col0
----
-65

query I rowsort
SELECT NULLIF ( + 48, 69 * 81 / - + 59 )
----
48

query I rowsort
SELECT 11 * 25 AS col0
----
275

query I rowsort
SELECT ALL 70 + - 88 AS col1
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-6243
SELECT + 41 * + CASE + + ( + - COUNT( * ) ) WHEN - + 97 THEN + ( 92 ) ELSE NULL END + + COUNT( * ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6243
SELECT + 41 * + CASE + + ( + - COUNT ( * ) ) WHEN - + 97 THEN + ( 92 ) ELSE NULL END + + COUNT ( * ) col0
----
NULL

query I rowsort
SELECT ALL - - COALESCE ( - 3, - 33 )
----
-3

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

skipif mysql # not compatible
query I rowsort label-6245
SELECT ALL + COUNT ( * ) + - - 23 AS col1
----
24

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6246
SELECT SUM( DISTINCT + + ( - 12 ) ) + + 32 DIV + 75
----
-12

skipif mysql # not compatible
query I rowsort label-6246
SELECT SUM ( DISTINCT + + ( - 12 ) ) + + 32 / + 75
----
-12

query I rowsort
SELECT ALL + 66 + - 89
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-6248
SELECT 21 + 18 + - COALESCE ( + ( - ( - COUNT( * ) ) ), + 70 ) * - - MIN( DISTINCT + 82 ) AS col0
----
-43

skipif mysql # not compatible
query I rowsort label-6248
SELECT 21 + 18 + - COALESCE ( + ( - ( - COUNT ( * ) ) ), + 70 ) * - - MIN ( DISTINCT + 82 ) AS col0
----
-43

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6249
SELECT ALL - SUM( - 76 ) + - - CAST( NULL AS SIGNED ) + - COUNT( * ) * + 83 * ( + ( + 53 ) ) + - 57 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6249
SELECT ALL - SUM ( - 76 ) + - - CAST ( NULL AS INTEGER ) + - COUNT ( * ) * + 83 * ( + ( + 53 ) ) + - 57 AS col1
----
NULL

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

skipif mysql # not compatible
query I rowsort label-6250
SELECT ALL + COUNT ( * ) + COUNT ( * ) + + - 55 AS col2
----
-53

query I rowsort
SELECT 0 * + ( - 30 ) + + - 26 + + 22 AS col0
----
-4

query I rowsort
SELECT 73 + + NULLIF ( - 54, 35 ) AS col2
----
19

query I rowsort
SELECT DISTINCT - 73 * + - 29
----
2117

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-6254
SELECT ALL ( CAST( + + 72 AS SIGNED ) ) + + + 53 * - + CAST( NULL AS SIGNED ) col1, 2 * + 73 DIV + + ( - - 18 ) AS col1
----
NULL
8

skipif mysql # not compatible
query II rowsort label-6254
SELECT ALL ( CAST ( + + 72 AS INTEGER ) ) + + + 53 * - + CAST ( NULL AS INTEGER ) col1, 2 * + 73 / + + ( - - 18 ) AS col1
----
NULL
8

query I rowsort
SELECT DISTINCT + 0 - + 4
----
-4

query I rowsort
SELECT DISTINCT - 73 * - 69
----
5037

query I rowsort
SELECT DISTINCT + 1 - - + 88 * + 20 AS col0
----
1761

onlyif mysql # DIV for integer division: 
query II rowsort label-6258
SELECT ALL + 83 - - 41 AS col1, + 84 DIV - + 10
----
124
-8

skipif mysql # not compatible
query II rowsort label-6258
SELECT ALL + 83 - - 41 AS col1, + 84 / - + 10
----
124
-8

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6259
SELECT 83 * + 77 * - 33 - + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-6259
SELECT 83 * + 77 * - 33 - + CAST ( NULL AS REAL )
----
NULL

query I rowsort
SELECT 13 * - ( + 61 ) AS col0
----
-793

onlyif mysql # DIV for integer division: 
query II rowsort label-6261
SELECT DISTINCT + 29 DIV 62 AS col0, 32
----
0
32

skipif mysql # not compatible
query II rowsort label-6261
SELECT DISTINCT + 29 / 62 AS col0, 32
----
0
32

query I rowsort
SELECT 3 * - + 0
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-6263
SELECT + 79 + + 33 AS col2, 25 + - 84 * - 84 / + - CASE + MIN( + - 72 ) WHEN 50 THEN NULL WHEN 86 * - 72 + - 95 + NULLIF ( - 11, - - 49 ) * - 92 * 6 THEN + COUNT( * ) * 92 WHEN - + ( 85 ) THEN - 24 WHEN 27 THEN - 17 * + - AVG ( ALL - 58 ) END * + CASE - 64 WHEN + 71 THEN - 2 END + + 6
----
112
NULL

skipif mysql # not compatible
query II rowsort label-6263
SELECT + 79 + + 33 AS col2, 25 + - 84 * - 84 / + - CASE + MIN ( + - 72 ) WHEN 50 THEN NULL WHEN 86 * - 72 + - 95 + NULLIF ( - 11, - - 49 ) * - 92 * 6 THEN + COUNT ( * ) * 92 WHEN - + ( 85 ) THEN - 24 WHEN 27 THEN - 17 * + - AVG ( ALL - 58 ) END * + CASE - 64 WHEN + 71 THEN - 2 END + + 6
----
112
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6264
SELECT 43 * - COALESCE ( - COUNT( * ), - ( - 75 ) ), ( + 26 ) AS col1
----
43
26

skipif mysql # not compatible
query II rowsort label-6264
SELECT 43 * - COALESCE ( - COUNT ( * ), - ( - 75 ) ), ( + 26 ) AS col1
----
43
26

onlyif mysql # aggregate syntax: 
query II rowsort label-6265
SELECT ALL - 55 + - MIN( - + 25 ) + - NULLIF ( - 28, - 32 * - 69 * 10 ) col0, + 99 AS col2
----
-2
99

skipif mysql # not compatible
query II rowsort label-6265
SELECT ALL - 55 + - MIN ( - + 25 ) + - NULLIF ( - 28, - 32 * - 69 * 10 ) col0, + 99 AS col2
----
-2
99

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6266
SELECT 66 * - CAST( + AVG ( + 95 ) AS SIGNED ) * ( - - 70 ) DIV 10
----
-43890

skipif mysql # not compatible
query I rowsort label-6266
SELECT 66 * - CAST ( + AVG ( + 95 ) AS INTEGER ) * ( - - 70 ) / 10
----
-43890

onlyif mysql # aggregate syntax: 
query I rowsort label-6267
SELECT DISTINCT + - 67 + - MAX( 3 ) AS col2
----
-70

skipif mysql # not compatible
query I rowsort label-6267
SELECT DISTINCT + - 67 + - MAX ( 3 ) AS col2
----
-70

query II rowsort
SELECT ALL - 6 * + 19 AS col2, - 18
----
-114
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-6269
SELECT ALL 21 + + CASE SUM( ALL + 15 ) WHEN - COUNT( * ) THEN 20 ELSE + 61 END
----
82

skipif mysql # not compatible
query I rowsort label-6269
SELECT ALL 21 + + CASE SUM ( ALL + 15 ) WHEN - COUNT ( * ) THEN 20 ELSE + 61 END
----
82

query I rowsort
SELECT 92 * - 22 AS col2
----
-2024

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

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

query I rowsort
SELECT ALL 44 + + - NULLIF ( - - 79, 46 ) AS col2
----
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-6273
SELECT - CASE + + 46 WHEN - + 88 THEN - + COUNT( * ) - + 55 * + - 52 WHEN - 94 THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-6273
SELECT - CASE + + 46 WHEN - + 88 THEN - + COUNT ( * ) - + 55 * + - 52 WHEN - 94 THEN NULL ELSE NULL END
----
NULL

query II rowsort
SELECT 15 - 84, + 68 * + + 63 AS col0
----
-69
4284

query I rowsort
SELECT + 10 * - 3 AS col0
----
-30

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6276
SELECT ALL 5 - - ( - 36 ) AS col2, + 76 + + CAST( - + 25 AS SIGNED ) col1
----
-31
51

skipif mysql # not compatible
query II rowsort label-6276
SELECT ALL 5 - - ( - 36 ) AS col2, + 76 + + CAST ( - + 25 AS INTEGER ) col1
----
-31
51

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

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

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

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

query I rowsort
SELECT DISTINCT 16 - + COALESCE ( - - ( - 29 ), + 70 + + 75 )
----
45

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

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

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6283
SELECT - 15 DIV - 36 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-6283
SELECT - 15 / - 36 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6284
SELECT + COUNT( ALL + 0 ) + + - 21 AS col1
----
-20

skipif mysql # not compatible
query I rowsort label-6284
SELECT + COUNT ( ALL + 0 ) + + - 21 AS col1
----
-20

query I rowsort
SELECT DISTINCT 50 * + + 41 AS col2
----
2050

onlyif mysql # aggregate syntax: 
query I rowsort label-6286
SELECT DISTINCT 9 * - COUNT( * )
----
-9

skipif mysql # not compatible
query I rowsort label-6286
SELECT DISTINCT 9 * - COUNT ( * )
----
-9

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6287
SELECT ALL COALESCE ( COUNT( * ), - - 5 DIV - 33 + COUNT( * ) )
----
1

skipif mysql # not compatible
query I rowsort label-6287
SELECT ALL COALESCE ( COUNT ( * ), - - 5 / - 33 + COUNT ( * ) )
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6288
SELECT ALL 44 * NULLIF ( + CAST( 89 AS SIGNED ), + COUNT( * ) ) DIV - + 19 AS col1
----
-206

skipif mysql # not compatible
query I rowsort label-6288
SELECT ALL 44 * NULLIF ( + CAST ( 89 AS INTEGER ), + COUNT ( * ) ) / - + 19 AS col1
----
-206

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6289
SELECT + 6 AS col2, 55 + + COALESCE ( + - MAX( - CAST( 28 AS SIGNED ) ), - - 76 ) AS col2
----
6
83

skipif mysql # not compatible
query II rowsort label-6289
SELECT + 6 AS col2, 55 + + COALESCE ( + - MAX ( - CAST ( 28 AS INTEGER ) ), - - 76 ) AS col2
----
6
83

query II rowsort
SELECT ALL + - 3 AS col1, 80
----
-3
80

query I rowsort
SELECT DISTINCT + 90 * + ( + 46 ) + + 94 AS col2
----
4234

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6292
SELECT - - CAST( - - 11 AS SIGNED ) * - - 41 * - COUNT( * ) + 65
----
-386

skipif mysql # not compatible
query I rowsort label-6292
SELECT - - CAST ( - - 11 AS INTEGER ) * - - 41 * - COUNT ( * ) + 65
----
-386

onlyif mysql # aggregate syntax: 
query I rowsort label-6293
SELECT + MIN( DISTINCT 59 )
----
59

skipif mysql # not compatible
query I rowsort label-6293
SELECT + MIN ( DISTINCT 59 )
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-6294
SELECT + CASE CASE + COUNT( * ) WHEN 89 + - COUNT( * ) THEN NULL ELSE + - 78 / + 49 + + 60 + - 62 + - 5 END WHEN 3 THEN + 39 * - 37 + - 38 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6294
SELECT + CASE CASE + COUNT ( * ) WHEN 89 + - COUNT ( * ) THEN NULL ELSE + - 78 / + 49 + + 60 + - 62 + - 5 END WHEN 3 THEN + 39 * - 37 + - 38 END AS col1
----
NULL

query II rowsort
SELECT 5 AS col2, ( + - 1 ) + + 5 - + 43
----
5
-39

query I rowsort
SELECT - - 47 * - NULLIF ( - + 65, 86 * + 55 ) + + 31 + + + 13 - 49
----
3050

onlyif mysql # aggregate syntax: 
query II rowsort label-6297
SELECT ALL + + 83, - COALESCE ( + SUM( - + 12 ), + 64 ) AS col0
----
83
12

skipif mysql # not compatible
query II rowsort label-6297
SELECT ALL + + 83, - COALESCE ( + SUM ( - + 12 ), + 64 ) AS col0
----
83
12

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6298
SELECT - 22 * 59 + + + COUNT( * ) AS col0, - 63 * + CAST( NULL AS SIGNED ) + - + 65
----
-1297
NULL

skipif mysql # not compatible
query II rowsort label-6298
SELECT - 22 * 59 + + + COUNT ( * ) AS col0, - 63 * + CAST ( NULL AS INTEGER ) + - + 65
----
-1297
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6299
SELECT ALL + + 11 * 51 + - NULLIF ( + 46, + 68 * + - 87 + + - 52 * + 35 ) * NULLIF ( - COUNT( * ), + - 9 ) * + 54 + - - 45 + + 77 + + 22 * + COUNT( * ) AS col0
----
3189

skipif mysql # not compatible
query I rowsort label-6299
SELECT ALL + + 11 * 51 + - NULLIF ( + 46, + 68 * + - 87 + + - 52 * + 35 ) * NULLIF ( - COUNT ( * ), + - 9 ) * + 54 + - - 45 + + 77 + + 22 * + COUNT ( * ) AS col0
----
3189

query I rowsort
SELECT ALL + - CASE - 76 WHEN - 76 THEN NULL WHEN + - 71 THEN 52 ELSE NULL END col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6301
SELECT ALL + 11 * + COUNT( * ) * - 28 + + 68 * - 50 * + 85 + - 86 AS col2
----
-289394

skipif mysql # not compatible
query I rowsort label-6301
SELECT ALL + 11 * + COUNT ( * ) * - 28 + + 68 * - 50 * + 85 + - 86 AS col2
----
-289394

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6302
SELECT DISTINCT - 75 * - 93 + + ( - 4 ) + + + ( - ( - + 49 ) ) * - CASE - COUNT( * ) WHEN - CAST( - CASE 11 WHEN - - CAST( NULL AS SIGNED ) THEN NULL ELSE - + 63 END AS SIGNED ) * - 88 + CASE WHEN NOT NULL IS NULL THEN NULLIF ( - - NULLIF ( + - 2, + COUNT( * ) ), + 17 * - 66 ) ELSE NULL END THEN 54 + 87 WHEN - MIN( - 58 ) THEN NULL ELSE NULL END + + 62
----
NULL

skipif mysql # not compatible
query I rowsort label-6302
SELECT DISTINCT - 75 * - 93 + + ( - 4 ) + + + ( - ( - + 49 ) ) * - CASE - COUNT ( * ) WHEN - CAST ( - CASE 11 WHEN - - CAST ( NULL AS INTEGER ) THEN NULL ELSE - + 63 END AS INTEGER ) * - 88 + CASE WHEN NOT NULL IS NULL THEN NULLIF ( - - NULLIF ( + - 2, + COUNT ( * ) ), + 17 * - 66 ) ELSE NULL END THEN 54 + 87 WHEN - MIN ( - 58 ) THEN NULL ELSE NULL END + + 62
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6303
SELECT - MIN( ALL + - 89 ) + + NULLIF ( - - 96, - + 51 / - 88 + 44 ) AS col2
----
185

skipif mysql # not compatible
query I rowsort label-6303
SELECT - MIN ( ALL + - 89 ) + + NULLIF ( - - 96, - + 51 / - 88 + 44 ) AS col2
----
185

query I rowsort
SELECT + 73 * + 47 - - 61 * + 74 AS col0
----
7945

query II rowsort
SELECT - 9 AS col2, - 62 + 97 * - 41 AS col2
----
-9
-4039

query I rowsort
SELECT - - 94 * 27 * ( 38 ) col1
----
96444

onlyif mysql # aggregate syntax: 
query I rowsort label-6307
SELECT ALL + ( - + COALESCE ( 69, + COUNT( * ) + + COALESCE ( + + 29, 80 ) ) ) col0
----
-69

skipif mysql # not compatible
query I rowsort label-6307
SELECT ALL + ( - + COALESCE ( 69, + COUNT ( * ) + + COALESCE ( + + 29, 80 ) ) ) col0
----
-69

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6308
SELECT + 81 * + 48 + + NULLIF ( - COUNT( * ), 39 ) DIV + 50 + - - 95 AS col0
----
3983

skipif mysql # not compatible
query I rowsort label-6308
SELECT + 81 * + 48 + + NULLIF ( - COUNT ( * ), 39 ) / + 50 + - - 95 AS col0
----
3983

onlyif mysql # aggregate syntax: 
query I rowsort label-6309
SELECT - 38 + + 35 + - + COUNT( * ) AS col1
----
-4

skipif mysql # not compatible
query I rowsort label-6309
SELECT - 38 + + 35 + - + COUNT ( * ) AS col1
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-6310
SELECT DISTINCT ( - SUM( 86 ) ) AS col1
----
-86

skipif mysql # not compatible
query I rowsort label-6310
SELECT DISTINCT ( - SUM ( 86 ) ) AS col1
----
-86

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6311
SELECT ALL - CAST( NULL AS SIGNED ) / - 98 / 1
----
NULL

skipif mysql # not compatible
query I rowsort label-6311
SELECT ALL - CAST ( NULL AS INTEGER ) / - 98 / 1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6312
SELECT + 93 DIV ( - - 11 ) col1
----
8

skipif mysql # not compatible
query I rowsort label-6312
SELECT + 93 / ( - - 11 ) col1
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-6313
SELECT - CASE - + MAX( + COALESCE ( - 59, + + 50 ) ) WHEN - + 69 THEN 94 * + ( 70 ) + 32 ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6313
SELECT - CASE - + MAX ( + COALESCE ( - 59, + + 50 ) ) WHEN - + 69 THEN 94 * + ( 70 ) + 32 ELSE NULL END AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6314
SELECT ALL CAST( - - COUNT( ALL 17 ) AS SIGNED )
----
1

skipif mysql # not compatible
query I rowsort label-6314
SELECT ALL CAST ( - - COUNT ( ALL 17 ) AS INTEGER )
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6315
SELECT DISTINCT - 1 DIV + - 64 * MAX( DISTINCT - - 94 ) col1
----
0

skipif mysql # not compatible
query I rowsort label-6315
SELECT DISTINCT - 1 / + - 64 * MAX ( DISTINCT - - 94 ) col1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6316
SELECT ALL CAST( - - 50 AS SIGNED ) AS col1
----
50

skipif mysql # not compatible
query I rowsort label-6316
SELECT ALL CAST ( - - 50 AS INTEGER ) AS col1
----
50

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

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

query I rowsort
SELECT ALL 52 - + NULLIF ( - - 51, + - 47 ) * 71 AS col1
----
-3569

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

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

query I rowsort
SELECT + 39 * + 11 AS col0
----
429

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

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

query I rowsort
SELECT - COALESCE ( - 55, - + 5 )
----
55

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6323
SELECT ALL MIN( DISTINCT 20 ) AS col0, - NULLIF ( - - 64, - + COUNT( * ) ) + - - ( 5 ) DIV - 39 AS col2
----
20
-64

skipif mysql # not compatible
query II rowsort label-6323
SELECT ALL MIN ( DISTINCT 20 ) AS col0, - NULLIF ( - - 64, - + COUNT ( * ) ) + - - ( 5 ) / - 39 AS col2
----
20
-64

onlyif mysql # DIV for integer division: 
query I rowsort label-6324
SELECT DISTINCT ( - 10 ) DIV 29 + 30 AS col0
----
30

skipif mysql # not compatible
query I rowsort label-6324
SELECT DISTINCT ( - 10 ) / 29 + 30 AS col0
----
30

query II rowsort
SELECT + 38 * + 58 AS col1, + 29 AS col2
----
2204
29

query I rowsort
SELECT ALL 44 + 88 + 40 * 94
----
3892

query I rowsort
SELECT + 68 * 73 AS col0
----
4964

query I rowsort
SELECT DISTINCT 97 + 37 + - 74 AS col1
----
60

query I rowsort
SELECT - 8 * + - ( 18 ) AS col0
----
144

query I rowsort
SELECT ALL 10 + + 11 AS col1
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-6331
SELECT ALL + 30 + - ( ( + + COUNT( * ) ) ) + + - 18 + + MIN( DISTINCT + 42 ) AS col1
----
53

skipif mysql # not compatible
query I rowsort label-6331
SELECT ALL + 30 + - ( ( + + COUNT ( * ) ) ) + + - 18 + + MIN ( DISTINCT + 42 ) AS col1
----
53

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6332
SELECT DISTINCT + + 99 DIV - 44 + + - COUNT( DISTINCT + - 50 ) AS col1
----
-3

skipif mysql # not compatible
query I rowsort label-6332
SELECT DISTINCT + + 99 / - 44 + + - COUNT ( DISTINCT + - 50 ) AS col1
----
-3

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6333
SELECT ALL + + 67 / + - CAST( NULL AS DECIMAL ) * + 13 + - 80 + + ( + ( - - 8 ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6333
SELECT ALL + + 67 / + - CAST ( NULL AS REAL ) * + 13 + - 80 + + ( + ( - - 8 ) ) AS col2
----
NULL

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

skipif mysql # not compatible
query I rowsort label-6334
SELECT DISTINCT - COUNT ( * ) / - CAST ( NULL AS INTEGER ) + - COUNT ( * ) * + 61 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6335
SELECT - - MAX( - 55 ) + - 15 - - + 24 + - - CASE WHEN NOT NULL > NULL THEN - 35 WHEN NOT NULL = COUNT( * ) THEN NULL ELSE NULL END * + 97 * - 58 + + 54
----
NULL

skipif mysql # not compatible
query I rowsort label-6335
SELECT - - MAX ( - 55 ) + - 15 - - + 24 + - - CASE WHEN NOT NULL > NULL THEN - 35 WHEN NOT NULL = COUNT ( * ) THEN NULL ELSE NULL END * + 97 * - 58 + + 54
----
NULL

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

skipif mysql # not compatible
query I rowsort label-6336
SELECT + COUNT ( * ) * - COUNT ( * ) * + COUNT ( * ) + 47 / + 58
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6337
SELECT ALL - - COALESCE ( - 0, - CASE 4 WHEN + NULLIF ( - 26, - + MIN( ALL + 34 ) * - 97 * - 20 ) THEN + CAST( + COUNT( * ) AS SIGNED ) + 58 END * + + 53 * + ( + 19 ) )
----
0

skipif mysql # not compatible
query I rowsort label-6337
SELECT ALL - - COALESCE ( - 0, - CASE 4 WHEN + NULLIF ( - 26, - + MIN ( ALL + 34 ) * - 97 * - 20 ) THEN + CAST ( + COUNT ( * ) AS INTEGER ) + 58 END * + + 53 * + ( + 19 ) )
----
0

query I rowsort
SELECT DISTINCT - - 95 - - 18 + + 14 + - 97 * + 59
----
-5596

onlyif mysql # aggregate syntax: 
query I rowsort label-6339
SELECT 72 * + + 94 * 40 * MAX( ALL - - 75 ) AS col1
----
20304000

skipif mysql # not compatible
query I rowsort label-6339
SELECT 72 * + + 94 * 40 * MAX ( ALL - - 75 ) AS col1
----
20304000

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6340
SELECT ALL - 43 col0, 52 * + NULLIF ( 82, + + CAST( NULL AS SIGNED ) ) + + MIN( - 65 )
----
-43
4199

skipif mysql # not compatible
query II rowsort label-6340
SELECT ALL - 43 col0, 52 * + NULLIF ( 82, + + CAST ( NULL AS INTEGER ) ) + + MIN ( - 65 )
----
-43
4199

query I rowsort
SELECT DISTINCT - 14 * - + 96 AS col2
----
1344

onlyif mysql # DIV for integer division: 
query II rowsort label-6342
SELECT 41 AS col2, 3 DIV 71 + - ( + - 31 )
----
41
31

skipif mysql # not compatible
query II rowsort label-6342
SELECT 41 AS col2, 3 / 71 + - ( + - 31 )
----
41
31

query II rowsort
SELECT ALL - 27, + 49 AS col0
----
-27
49

query I rowsort
SELECT 62 * 55 AS col0
----
3410

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6345
SELECT 98 * - CAST( 75 AS SIGNED )
----
-7350

skipif mysql # not compatible
query I rowsort label-6345
SELECT 98 * - CAST ( 75 AS INTEGER )
----
-7350

query I rowsort
SELECT 51 * + 26 - + - 43 + NULLIF ( CASE - + 32 WHEN - 46 THEN + + 12 / - NULLIF ( ( + - 47 ), - 8 / - - 34 ) END, + 33 )
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6348
SELECT 88 * - - COUNT( * ) * - 43 col2, 71 AS col2
----
-3784
71

skipif mysql # not compatible
query II rowsort label-6348
SELECT 88 * - - COUNT ( * ) * - 43 col2, 71 AS col2
----
-3784
71

query II rowsort
SELECT ALL 88 col0, - ( 58 ) * + + ( 63 ) AS col2
----
88
-3654

query I rowsort
SELECT ALL + 25 + - + 35 - + 10 col2
----
-20

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6351
SELECT 13 - - COALESCE ( - 15, + ( + 70 ) + NULLIF ( + 23, - 56 ) ) - - NULLIF ( - CAST( + 1 AS SIGNED ), + 63 ) + - 65 * + 22 + - - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6351
SELECT 13 - - COALESCE ( - 15, + ( + 70 ) + NULLIF ( + 23, - 56 ) ) - - NULLIF ( - CAST ( + 1 AS INTEGER ), + 63 ) + - 65 * + 22 + - - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6352
SELECT ALL + 98 + + COALESCE ( 94, + + NULLIF ( + + MIN( 7 ), COALESCE ( 79, - 82 ) ) + 94 + + 43 * COUNT( * ) * + 64 )
----
192

skipif mysql # not compatible
query I rowsort label-6352
SELECT ALL + 98 + + COALESCE ( 94, + + NULLIF ( + + MIN ( 7 ), COALESCE ( 79, - 82 ) ) + 94 + + 43 * COUNT ( * ) * + 64 )
----
192

query I rowsort
SELECT 87 + - 12 AS col2
----
75

query I rowsort
SELECT 23 - - - 66
----
-43

query I rowsort
SELECT 97 + + 98
----
195

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

skipif mysql # not compatible
query I rowsort label-6356
SELECT ALL COUNT ( * ) + + 19 AS col1
----
20

query I rowsort
SELECT 42 * + - 50
----
-2100

onlyif mysql # aggregate syntax: 
query I rowsort label-6358
SELECT 41 + + + 77 + + COUNT( * ) * 25 AS col2
----
143

skipif mysql # not compatible
query I rowsort label-6358
SELECT 41 + + + 77 + + COUNT ( * ) * 25 AS col2
----
143

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6359
SELECT ALL - + 98 * + 8 * + NULLIF ( + COUNT( * ), - 82 + CASE 51 WHEN + 95 / + 48 + - SUM( ALL 95 ) THEN NULL WHEN - + 55 THEN NULL WHEN + 76 THEN - - 35 ELSE - CAST( - - 61 AS SIGNED ) + 15 END + - 68 ) AS col2
----
-784

skipif mysql # not compatible
query I rowsort label-6359
SELECT ALL - + 98 * + 8 * + NULLIF ( + COUNT ( * ), - 82 + CASE 51 WHEN + 95 / + 48 + - SUM ( ALL 95 ) THEN NULL WHEN - + 55 THEN NULL WHEN + 76 THEN - - 35 ELSE - CAST ( - - 61 AS INTEGER ) + 15 END + - 68 ) AS col2
----
-784

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6360
SELECT DISTINCT - - 73 + + 27 + CAST( + - MIN( - 8 ) AS SIGNED ) + - - 20 + + COUNT( DISTINCT - 35 ) * + + MAX( 97 ) * + 55 * - + 98
----
-522702

skipif mysql # not compatible
query I rowsort label-6360
SELECT DISTINCT - - 73 + + 27 + CAST ( + - MIN ( - 8 ) AS INTEGER ) + - - 20 + + COUNT ( DISTINCT - 35 ) * + + MAX ( 97 ) * + 55 * - + 98
----
-522702

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6361
SELECT CASE - ( - - SUM( + CAST( 60 AS SIGNED ) ) ) WHEN + 23 + - 42 THEN - + ( - 4 ) WHEN - + 47 * - - 92 THEN + 37 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-6361
SELECT CASE - ( - - SUM ( + CAST ( 60 AS INTEGER ) ) ) WHEN + 23 + - 42 THEN - + ( - 4 ) WHEN - + 47 * - - 92 THEN + 37 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6362
SELECT DISTINCT - SUM( DISTINCT 84 ) AS col0
----
-84

skipif mysql # not compatible
query I rowsort label-6362
SELECT DISTINCT - SUM ( DISTINCT 84 ) AS col0
----
-84

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6363
SELECT ALL CASE + 75 WHEN + + ( - COALESCE ( + NULLIF ( + + 94, - 69 + - 78 * 54 ), + COUNT( * ) ) ) THEN - - CAST( NULL AS SIGNED ) WHEN AVG ( DISTINCT + - 96 ) THEN - 35 END + - + 61 AS col2, - 18 + - 21 * - CAST( NULL AS SIGNED )
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-6363
SELECT ALL CASE + 75 WHEN + + ( - COALESCE ( + NULLIF ( + + 94, - 69 + - 78 * 54 ), + COUNT ( * ) ) ) THEN - - CAST ( NULL AS INTEGER ) WHEN AVG ( DISTINCT + - 96 ) THEN - 35 END + - + 61 AS col2, - 18 + - 21 * - CAST ( NULL AS INTEGER )
----
NULL
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6365
SELECT ALL - COUNT( * ) - - COALESCE ( - - NULLIF ( + 13, + - 65 ), 20 )
----
12

skipif mysql # not compatible
query I rowsort label-6365
SELECT ALL - COUNT ( * ) - - COALESCE ( - - NULLIF ( + 13, + - 65 ), 20 )
----
12

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6367
SELECT + 62 DIV + MIN( ALL + + 96 )
----
0

skipif mysql # not compatible
query I rowsort label-6367
SELECT + 62 / + MIN ( ALL + + 96 )
----
0

query I rowsort
SELECT - 71 * + 40
----
-2840

onlyif mysql # aggregate syntax: 
query I rowsort label-6369
SELECT ALL 10 * COUNT( * ) col0
----
10

skipif mysql # not compatible
query I rowsort label-6369
SELECT ALL 10 * COUNT ( * ) col0
----
10

query I rowsort
SELECT ALL 14 - + - 45 AS col1
----
59

onlyif mysql # DIV for integer division: 
query I rowsort label-6371
SELECT - 98 DIV - + 2 AS col1
----
49

skipif mysql # not compatible
query I rowsort label-6371
SELECT - 98 / - + 2 AS col1
----
49

onlyif mysql # DIV for integer division: 
query I rowsort label-6372
SELECT ALL 67 DIV - - 31 AS col0
----
2

skipif mysql # not compatible
query I rowsort label-6372
SELECT ALL 67 / - - 31 AS col0
----
2

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6373
SELECT ALL - CASE 83 WHEN + - 41 DIV - 98 + + 6 THEN NULL WHEN - 8 THEN COUNT( * ) + + 12 WHEN 22 THEN - 64 DIV 66 + - 39 + - 53 ELSE 53 * + COUNT( * ) * + 97 END, 80 AS col1
----
-5141
80

skipif mysql # not compatible
query II rowsort label-6373
SELECT ALL - CASE 83 WHEN + - 41 / - 98 + + 6 THEN NULL WHEN - 8 THEN COUNT ( * ) + + 12 WHEN 22 THEN - 64 / 66 + - 39 + - 53 ELSE 53 * + COUNT ( * ) * + 97 END, 80 AS col1
----
-5141
80

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6374
SELECT ALL 94 * CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-6374
SELECT ALL 94 * CAST ( NULL AS REAL )
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-6375
SELECT ALL + - 22 DIV - 78 - - + 69, 22 AS col1
----
69
22

skipif mysql # not compatible
query II rowsort label-6375
SELECT ALL + - 22 / - 78 - - + 69, 22 AS col1
----
69
22

query I rowsort
SELECT + 47 * + 7
----
329

query I rowsort
SELECT 53 + + - 77 * + ( - 30 ) + + NULLIF ( + 77, - 49 + - 56 )
----
2440

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6378
SELECT 13 AS col0, + 5 * CAST( - MAX( - 26 ) AS SIGNED ) + + - 54 * - + COUNT( * ) AS col1
----
13
184

skipif mysql # not compatible
query II rowsort label-6378
SELECT 13 AS col0, + 5 * CAST ( - MAX ( - 26 ) AS INTEGER ) + + - 54 * - + COUNT ( * ) AS col1
----
13
184

query II rowsort
SELECT + 66 AS col0, 37
----
66
37

onlyif mysql # DIV for integer division: 
query I rowsort label-6380
SELECT ( - 57 ) + + + 88 - 68 DIV + 56 + 85 AS col0
----
115

skipif mysql # not compatible
query I rowsort label-6380
SELECT ( - 57 ) + + + 88 - 68 / + 56 + 85 AS col0
----
115

query I rowsort
SELECT 72 * + + 1
----
72

query I rowsort
SELECT 56 * + 2 + + + ( + - 90 )
----
22

query II rowsort
SELECT DISTINCT - 49, 59 AS col2
----
-49
59

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

query I rowsort
SELECT ALL 93 + - 54 * - 29
----
1659

query I rowsort
SELECT 97 + + 72 col0
----
169

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6387
SELECT ALL 69 + - 14 DIV CAST( 66 AS SIGNED ) AS col0
----
69

skipif mysql # not compatible
query I rowsort label-6387
SELECT ALL 69 + - 14 / CAST ( 66 AS INTEGER ) AS col0
----
69

query I rowsort
SELECT 13 + 18
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-6389
SELECT ALL - 66 + + + 88 * + COUNT( * )
----
22

skipif mysql # not compatible
query I rowsort label-6389
SELECT ALL - 66 + + + 88 * + COUNT ( * )
----
22

onlyif mysql # DIV for integer division: 
query I rowsort label-6390
SELECT 93 * 69 * - 12 + 74 DIV 88 AS col1
----
-77004

skipif mysql # not compatible
query I rowsort label-6390
SELECT 93 * 69 * - 12 + 74 / 88 AS col1
----
-77004

query II rowsort
SELECT 4, 56 AS col0
----
4
56

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

skipif mysql # not compatible
query I rowsort label-6392
SELECT DISTINCT - COUNT ( * ) + + COUNT ( - 24 ) AS col2
----
0

query I rowsort
SELECT ALL - 93 + 67 + - 13 AS col2
----
-39

query I rowsort
SELECT 42 + 74 * - 64
----
-4694

query I rowsort
SELECT 13 * + + 64 col1
----
832

query I rowsort
SELECT DISTINCT + 48 + - 34 + - - 55 * + 84 AS col2
----
4634

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6397
SELECT ALL - - 71 + + COALESCE ( + - 31, ( - CAST( NULL AS SIGNED ) ) + - + COUNT( * ) ) col2
----
40

skipif mysql # not compatible
query I rowsort label-6397
SELECT ALL - - 71 + + COALESCE ( + - 31, ( - CAST ( NULL AS INTEGER ) ) + - + COUNT ( * ) ) col2
----
40

query I rowsort
SELECT ALL + 28 - - 90
----
118

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6399
SELECT CAST( NULL AS SIGNED ) - - 5 * - - 84 / + - CASE COUNT( ALL + + 25 ) WHEN + + 39 THEN NULL ELSE CASE 46 WHEN - 85 * + + ( - 95 ) THEN NULL WHEN - 18 THEN 68 ELSE 99 * + CASE - + CAST( 30 AS SIGNED ) WHEN + 41 * - 33 + - 1 THEN NULL WHEN 39 * CASE 78 WHEN + + CAST( - CAST( + ( + 24 ) AS SIGNED ) AS SIGNED ) THEN NULL WHEN + + 40 * - 8 + 52 THEN - 81 * 11 + 32 ELSE NULL END + - + 4 * + + 63 THEN - - 0 END END END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6399
SELECT CAST ( NULL AS INTEGER ) - - 5 * - - 84 / + - CASE COUNT ( ALL + + 25 ) WHEN + + 39 THEN NULL ELSE CASE 46 WHEN - 85 * + + ( - 95 ) THEN NULL WHEN - 18 THEN 68 ELSE 99 * + CASE - + CAST ( 30 AS INTEGER ) WHEN + 41 * - 33 + - 1 THEN NULL WHEN 39 * CASE 78 WHEN + + CAST ( - CAST ( + ( + 24 ) AS INTEGER ) AS INTEGER ) THEN NULL WHEN + + 40 * - 8 + 52 THEN - 81 * 11 + 32 ELSE NULL END + - + 4 * + + 63 THEN - - 0 END END END col1
----
NULL

query II rowsort
SELECT 99, - 45 col2
----
99
-45

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6401
SELECT ALL 99 - - - CAST( NULL AS SIGNED ) / - SUM( + - 32 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6401
SELECT ALL 99 - - - CAST ( NULL AS INTEGER ) / - SUM ( + - 32 ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6402
SELECT - 68 * + + 37 + COUNT( * ) AS col2
----
-2515

skipif mysql # not compatible
query I rowsort label-6402
SELECT - 68 * + + 37 + COUNT ( * ) AS col2
----
-2515

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6403
SELECT - COUNT( * ), - 11 + + ( + 42 ) + + 64 + - - CAST( - 80 AS SIGNED ) AS col1
----
-1
15

skipif mysql # not compatible
query II rowsort label-6403
SELECT - COUNT ( * ), - 11 + + ( + 42 ) + + 64 + - - CAST ( - 80 AS INTEGER ) AS col1
----
-1
15

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6404
SELECT + CAST( 2 AS SIGNED ) * 81 - - + 54 + + + MIN( + 70 )
----
286

skipif mysql # not compatible
query I rowsort label-6404
SELECT + CAST ( 2 AS INTEGER ) * 81 - - + 54 + + + MIN ( + 70 )
----
286

query II rowsort
SELECT DISTINCT + + 61 AS col0, - 37 col0
----
61
-37

query I rowsort
SELECT ALL - ( 85 ) * + 90
----
-7650

query I rowsort
SELECT DISTINCT + - NULLIF ( 95, + 66 + + - 43 + + 62 * - 2 * - - 42 )
----
-95

onlyif mysql # aggregate syntax: 
query II rowsort label-6408
SELECT DISTINCT + COUNT( DISTINCT 9 ) AS col1, - 17 AS col2
----
1
-17

skipif mysql # not compatible
query II rowsort label-6408
SELECT DISTINCT + COUNT ( DISTINCT 9 ) AS col1, - 17 AS col2
----
1
-17

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

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

query I rowsort
SELECT + 87 * - + 4 + 1
----
-347

query I rowsort
SELECT DISTINCT + + NULLIF ( + - 15, + 34 ) AS col0
----
-15

onlyif mysql # DIV for integer division: 
query I rowsort label-6412
SELECT 60 * 7 * - + 57 + + 70 DIV + ( + - 81 ) AS col0
----
-23940

skipif mysql # not compatible
query I rowsort label-6412
SELECT 60 * 7 * - + 57 + + 70 / + ( + - 81 ) AS col0
----
-23940

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6413
SELECT ALL 59 * 60 * + CAST( 94 AS SIGNED ) + + ( + 58 ) AS col2
----
332818

skipif mysql # not compatible
query I rowsort label-6413
SELECT ALL 59 * 60 * + CAST ( 94 AS INTEGER ) + + ( + 58 ) AS col2
----
332818

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6415
SELECT + COALESCE ( + 88, COUNT( * ), + - 90, + 95 - - + ( + 57 ) ) col1, - 15 * - + ( + ( - - 54 ) )
----
88
810

skipif mysql # not compatible
query II rowsort label-6415
SELECT + COALESCE ( + 88, COUNT ( * ), + - 90, + 95 - - + ( + 57 ) ) col1, - 15 * - + ( + ( - - 54 ) )
----
88
810

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6417
SELECT DISTINCT MIN( - 14 ) * + CAST( + 87 AS SIGNED )
----
-1218

skipif mysql # not compatible
query I rowsort label-6417
SELECT DISTINCT MIN ( - 14 ) * + CAST ( + 87 AS INTEGER )
----
-1218

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

skipif mysql # not compatible
query I rowsort label-6418
SELECT + CAST ( NULL AS INTEGER ) / 93 AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6419
SELECT - 33 DIV - - 76 * + 26 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-6419
SELECT - 33 / - - 76 * + 26 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6420
SELECT MIN( ALL - ( 70 ) ) AS col0
----
-70

skipif mysql # not compatible
query I rowsort label-6420
SELECT MIN ( ALL - ( 70 ) ) AS col0
----
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-6421
SELECT ALL COUNT( * ) + + 25 * - COUNT( * ) * 75 + - - 59 * 35 * 69 - - COALESCE ( 9, + - 46 ) - + 26 + - + 55 * + - ( + 63 ) + - COUNT( * ) - + 4
----
144054

skipif mysql # not compatible
query I rowsort label-6421
SELECT ALL COUNT ( * ) + + 25 * - COUNT ( * ) * 75 + - - 59 * 35 * 69 - - COALESCE ( 9, + - 46 ) - + 26 + - + 55 * + - ( + 63 ) + - COUNT ( * ) - + 4
----
144054

onlyif mysql # aggregate syntax: 
query II rowsort label-6422
SELECT DISTINCT 44 + - 28, + COUNT( * ) - - + 97 AS col2
----
16
98

skipif mysql # not compatible
query II rowsort label-6422
SELECT DISTINCT 44 + - 28, + COUNT ( * ) - - + 97 AS col2
----
16
98

query I rowsort
SELECT ALL + ( 45 ) * 31 AS col0
----
1395

onlyif mysql # DIV for integer division: 
query I rowsort label-6424
SELECT + 73 - - 69 DIV - ( - 39 )
----
74

skipif mysql # not compatible
query I rowsort label-6424
SELECT + 73 - - 69 / - ( - 39 )
----
74

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6425
SELECT DISTINCT + 17 * - CAST( 47 AS SIGNED ) AS col1
----
-799

skipif mysql # not compatible
query I rowsort label-6425
SELECT DISTINCT + 17 * - CAST ( 47 AS INTEGER ) AS col1
----
-799

query II rowsort
SELECT ALL - 62 - - + 78 AS col2, ( - 29 ) * - 59 + + 81
----
16
1792

query I rowsort
SELECT ALL 47 * + 46
----
2162

onlyif mysql # DIV for integer division: 
query I rowsort label-6428
SELECT + 17 + + - 16 + 7 * 35 * 10 DIV - 14
----
-174

skipif mysql # not compatible
query I rowsort label-6428
SELECT + 17 + + - 16 + 7 * 35 * 10 / - 14
----
-174

query I rowsort
SELECT - 86 - + ( + 67 ) AS col0
----
-153

query I rowsort
SELECT + NULLIF ( + - 92, + AVG ( - - 96 ) - + 76 ) + - + 22
----
-114

onlyif mysql # DIV for integer division: 
query II rowsort label-6431
SELECT - + 11 DIV 84, + 9 AS col0
----
0
9

skipif mysql # not compatible
query II rowsort label-6431
SELECT - + 11 / 84, + 9 AS col0
----
0
9

onlyif mysql # DIV for integer division: 
query I rowsort label-6432
SELECT - + 5 * 37 * + 24 + + 29 DIV + 69 * + 49 col1
----
-4440

skipif mysql # not compatible
query I rowsort label-6432
SELECT - + 5 * 37 * + 24 + + 29 / + 69 * + 49 col1
----
-4440

onlyif mysql # aggregate syntax: 
query II rowsort label-6433
SELECT + COUNT( + + 25 ), 53 * - + MIN( ALL + 76 ) AS col0
----
1
-4028

skipif mysql # not compatible
query II rowsort label-6433
SELECT + COUNT ( + + 25 ), 53 * - + MIN ( ALL + 76 ) AS col0
----
1
-4028

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6434
SELECT DISTINCT 31 * - 8 + - 35 * - CAST( - 49 AS SIGNED ), + COUNT( DISTINCT + 64 ) AS col0
----
-1963
1

skipif mysql # not compatible
query II rowsort label-6434
SELECT DISTINCT 31 * - 8 + - 35 * - CAST ( - 49 AS INTEGER ), + COUNT ( DISTINCT + 64 ) AS col0
----
-1963
1

query I rowsort
SELECT - + 61 + - 84
----
-145

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6436
SELECT ALL - CAST( - - 64 AS SIGNED ) AS col0, 30 + 10 * 18 * + 51 * + + 55 * - - 32 AS col0
----
-64
16156830

skipif mysql # not compatible
query II rowsort label-6436
SELECT ALL - CAST ( - - 64 AS INTEGER ) AS col0, 30 + 10 * 18 * + 51 * + + 55 * - - 32 AS col0
----
-64
16156830

query I rowsort
SELECT - 89 * + 4 AS col0
----
-356

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6438
SELECT DISTINCT + - 14 DIV 68, 49 DIV - COALESCE ( COUNT( * ), - - ( MIN( + - 41 ) ), - - 3, - 76 ) AS col1
----
0
-49

skipif mysql # not compatible
query II rowsort label-6438
SELECT DISTINCT + - 14 / 68, 49 / - COALESCE ( COUNT ( * ), - - ( MIN ( + - 41 ) ), - - 3, - 76 ) AS col1
----
0
-49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6439
SELECT ALL + + 89 / + CAST( NULL AS SIGNED ) / + 98 / - 89 * 98 * - - 71 - - 89 * - ( - ( + + 17 ) ) - 77
----
NULL

skipif mysql # not compatible
query I rowsort label-6439
SELECT ALL + + 89 / + CAST ( NULL AS INTEGER ) / + 98 / - 89 * 98 * - - 71 - - 89 * - ( - ( + + 17 ) ) - 77
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6440
SELECT - - 84 DIV - 71
----
-1

skipif mysql # not compatible
query I rowsort label-6440
SELECT - - 84 / - 71
----
-1

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

query I rowsort
SELECT DISTINCT - - ( - - 6 ) * NULLIF ( - - 52, 95 * + + 98 ) AS col0
----
312

onlyif mysql # aggregate syntax: 
query I rowsort label-6443
SELECT - + COALESCE ( - 15, 73, - - ( - MIN( ALL + 99 ) ) * - 52 ) * 51 * - - 26
----
19890

skipif mysql # not compatible
query I rowsort label-6443
SELECT - + COALESCE ( - 15, 73, - - ( - MIN ( ALL + 99 ) ) * - 52 ) * 51 * - - 26
----
19890

query I rowsort
SELECT + + 3 * - + 91
----
-273

query I rowsort
SELECT 45 * - + 18 + 74 * - 78
----
-6582

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

skipif mysql # not compatible
query I rowsort label-6446
SELECT 92 / - 82 + COUNT ( * ) * - - COUNT ( * )
----
0

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-6447
SELECT DISTINCT 18 DIV + 64 + - 95 AS col1, 79 * + CAST( + 93 AS SIGNED ) DIV 3
----
-95
2449

skipif mysql # not compatible
query II rowsort label-6447
SELECT DISTINCT 18 / + 64 + - 95 AS col1, 79 * + CAST ( + 93 AS INTEGER ) / 3
----
-95
2449

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6448
SELECT ALL + ( - ( + 52 ) ) / 37 * + 46 + - 41 + + 19 * - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6448
SELECT ALL + ( - ( + 52 ) ) / 37 * + 46 + - 41 + + 19 * - CAST ( NULL AS INTEGER ) AS col2
----
NULL

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6450
SELECT ALL - CAST( NULL AS SIGNED ) * + - 57 + + + 65 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6450
SELECT ALL - CAST ( NULL AS INTEGER ) * + - 57 + + + 65 col0
----
NULL

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

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-6452
SELECT + CAST( NULL AS SIGNED ), + 89 DIV + 8 col2
----
NULL
11

skipif mysql # not compatible
query II rowsort label-6452
SELECT + CAST ( NULL AS INTEGER ), + 89 / + 8 col2
----
NULL
11

query I rowsort
SELECT + 74 + + - 85
----
-11

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6454
SELECT ALL + 82 * + 46 - - CAST( NULL AS SIGNED ) + + + CAST( + CAST( 93 AS SIGNED ) AS SIGNED ) AS col2, + MAX( - CAST( NULL AS SIGNED ) ) * - - 1 AS col1
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-6454
SELECT ALL + 82 * + 46 - - CAST ( NULL AS INTEGER ) + + + CAST ( + CAST ( 93 AS INTEGER ) AS INTEGER ) AS col2, + MAX ( - CAST ( NULL AS INTEGER ) ) * - - 1 AS col1
----
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6455
SELECT DISTINCT 97 * COUNT( * ) AS col0
----
97

skipif mysql # not compatible
query I rowsort label-6455
SELECT DISTINCT 97 * COUNT ( * ) AS col0
----
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6456
SELECT ALL 41 * + CAST( NULL AS SIGNED ) / 61 - + 85
----
NULL

skipif mysql # not compatible
query I rowsort label-6456
SELECT ALL 41 * + CAST ( NULL AS INTEGER ) / 61 - + 85
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6457
SELECT DISTINCT MIN( DISTINCT - 29 ) * + - 94 - + 79 AS col0
----
2647

skipif mysql # not compatible
query I rowsort label-6457
SELECT DISTINCT MIN ( DISTINCT - 29 ) * + - 94 - + 79 AS col0
----
2647

query I rowsort
SELECT ALL 32 * 59
----
1888

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

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

query I rowsort
SELECT + + 14 * + 99 * - ( + 25 )
----
-34650

onlyif mysql # aggregate syntax: 
query I rowsort label-6461
SELECT 9 + COUNT( * ) * - - 1 + - 64
----
-54

skipif mysql # not compatible
query I rowsort label-6461
SELECT 9 + COUNT ( * ) * - - 1 + - 64
----
-54

query II rowsort
SELECT DISTINCT 50 AS col2, + 65
----
50
65

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

skipif mysql # not compatible
query I rowsort label-6463
SELECT DISTINCT SUM ( 88 )
----
88

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

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

query I rowsort
SELECT ALL + 4 * 99 AS col0
----
396

query II rowsort
SELECT + 12 col0, 41
----
12
41

query I rowsort
SELECT ALL 61 + - 11 + + + 1 + - 51 - - - 52 col2
----
-52

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6469
SELECT + COUNT( * ) + + - COUNT( + 23 ) + - + ( + COUNT( 90 ) ) * - + 34 + - 12 + + 62 col0, MAX( - - 21 )
----
84
21

skipif mysql # not compatible
query II rowsort label-6469
SELECT + COUNT ( * ) + + - COUNT ( + 23 ) + - + ( + COUNT ( 90 ) ) * - + 34 + - 12 + + 62 col0, MAX ( - - 21 )
----
84
21

onlyif mysql # aggregate syntax: 
query I rowsort label-6470
SELECT - COUNT( * ) + + 26 AS col1
----
25

skipif mysql # not compatible
query I rowsort label-6470
SELECT - COUNT ( * ) + + 26 AS col1
----
25

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

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

query I rowsort
SELECT - 76 + - 79
----
-155

onlyif mysql # aggregate syntax: 
query I rowsort label-6473
SELECT 91 - - COUNT( DISTINCT 23 ) - + 93 * 79 AS col2
----
-7255

skipif mysql # not compatible
query I rowsort label-6473
SELECT 91 - - COUNT ( DISTINCT 23 ) - + 93 * 79 AS col2
----
-7255

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6475
SELECT 78 DIV + 19 AS col2
----
4

skipif mysql # not compatible
query I rowsort label-6475
SELECT 78 / + 19 AS col2
----
4

query II rowsort
SELECT 13 + - - 96 * - + 25 - 34 + + 95 AS col0, + 24 AS col1
----
-2326
24

query I rowsort
SELECT ALL + 61 + - 65 AS col1
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-6478
SELECT ALL - ( + MIN( DISTINCT 65 ) ) * COUNT( * )
----
-65

skipif mysql # not compatible
query I rowsort label-6478
SELECT ALL - ( + MIN ( DISTINCT 65 ) ) * COUNT ( * )
----
-65

query I rowsort
SELECT 97 * - 59 * - 26 AS col2
----
148798

onlyif mysql # aggregate syntax: 
query II rowsort label-6480
SELECT DISTINCT - MAX( DISTINCT 16 ) AS col1, - 87 AS col1
----
-16
-87

skipif mysql # not compatible
query II rowsort label-6480
SELECT DISTINCT - MAX ( DISTINCT 16 ) AS col1, - 87 AS col1
----
-16
-87

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6482
SELECT DISTINCT - COUNT( DISTINCT - 60 ) - 48 col2
----
-49

skipif mysql # not compatible
query I rowsort label-6482
SELECT DISTINCT - COUNT ( DISTINCT - 60 ) - 48 col2
----
-49

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6484
SELECT ALL + COUNT( * ) * + + 90 AS col0, 25 * - 1 DIV - + 81
----
90
0

skipif mysql # not compatible
query II rowsort label-6484
SELECT ALL + COUNT ( * ) * + + 90 AS col0, 25 * - 1 / - + 81
----
90
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6485
SELECT ALL - CASE + - 32 WHEN + 11 THEN - 94 ELSE CAST( + 43 AS SIGNED ) END AS col1
----
-43

skipif mysql # not compatible
query I rowsort label-6485
SELECT ALL - CASE + - 32 WHEN + 11 THEN - 94 ELSE CAST ( + 43 AS INTEGER ) END AS col1
----
-43

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6486
SELECT - 8 * CAST( - + 62 AS SIGNED )
----
496

skipif mysql # not compatible
query I rowsort label-6486
SELECT - 8 * CAST ( - + 62 AS INTEGER )
----
496

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6487
SELECT DISTINCT 47 DIV + COUNT( * ) AS col0
----
47

skipif mysql # not compatible
query I rowsort label-6487
SELECT DISTINCT 47 / + COUNT ( * ) AS col0
----
47

query I rowsort
SELECT 80 * 73 * + 92 AS col0
----
537280

query I rowsort
SELECT ALL 65 * + - 89 * + + 50 AS col0
----
-289250

query I rowsort
SELECT 11 - - 67
----
78

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6491
SELECT ALL - 88 DIV - - NULLIF ( + 66, 59 - 5 * - COALESCE ( 33, + + SUM( ALL 59 ), - - ( - - ( - 56 ) ) + - 82 ) * - + COUNT( * ) - 84 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-6491
SELECT ALL - 88 / - - NULLIF ( + 66, 59 - 5 * - COALESCE ( 33, + + SUM ( ALL 59 ), - - ( - - ( - 56 ) ) + - 82 ) * - + COUNT ( * ) - 84 ) AS col1
----
-1

query II rowsort
SELECT 3 * - - 93, - 84 * + 24 AS col0
----
279
-2016

query I rowsort
SELECT ALL - 39 + + 0 + - 53
----
-92

query I rowsort
SELECT - - COALESCE ( - 83, + ( + 61 ) ) AS col1
----
-83

query I rowsort
SELECT + 15 + - 38 AS col0
----
-23

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6496
SELECT ALL - 48 * - 93 * - + ( 74 ) * CASE 70 WHEN 86 + 55 THEN NULL WHEN + + 71 THEN + + 3 + - 71 ELSE 58 + - 91 + + + CAST( + - 26 AS SIGNED ) END AS col1
----
19489824

skipif mysql # not compatible
query I rowsort label-6496
SELECT ALL - 48 * - 93 * - + ( 74 ) * CASE 70 WHEN 86 + 55 THEN NULL WHEN + + 71 THEN + + 3 + - 71 ELSE 58 + - 91 + + + CAST ( + - 26 AS INTEGER ) END AS col1
----
19489824

query I rowsort
SELECT + 98 - - 6
----
104

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6499
SELECT DISTINCT 77 + + SUM( - + 64 ) * - 30 - + ( 88 ) AS col1
----
1909

skipif mysql # not compatible
query I rowsort label-6499
SELECT DISTINCT 77 + + SUM ( - + 64 ) * - 30 - + ( 88 ) AS col1
----
1909

onlyif mysql # aggregate syntax: 
query I rowsort label-6500
SELECT - 64 + + - MAX( - 81 ) AS col0
----
17

skipif mysql # not compatible
query I rowsort label-6500
SELECT - 64 + + - MAX ( - 81 ) AS col0
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-6501
SELECT + NULLIF ( + COUNT( DISTINCT + 8 ), - 82 * + COUNT( * ) ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-6501
SELECT + NULLIF ( + COUNT ( DISTINCT + 8 ), - 82 * + COUNT ( * ) ) AS col0
----
1

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6502
SELECT ALL - - 9 * + 5 DIV + 98 * COALESCE ( - + 19, + - 27 ) + + 61 * + CAST( 9 AS SIGNED ) - - 13 AS col1
----
562

skipif mysql # not compatible
query I rowsort label-6502
SELECT ALL - - 9 * + 5 / + 98 * COALESCE ( - + 19, + - 27 ) + + 61 * + CAST ( 9 AS INTEGER ) - - 13 AS col1
----
562

onlyif mysql # aggregate syntax: 
query I rowsort label-6503
SELECT - - CASE - 17 WHEN + 77 + - + 71 * - MAX( ALL + 65 ) + + 74 - - - 25 THEN NULL WHEN 90 + - NULLIF ( 55, - + 83 ) + - COUNT( * ) THEN + 7 * - 78 + COALESCE ( + AVG ( - 81 ), 61 + + 16 + 77, - 52 ) / - - 19 + + 57 + 46 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6503
SELECT - - CASE - 17 WHEN + 77 + - + 71 * - MAX ( ALL + 65 ) + + 74 - - - 25 THEN NULL WHEN 90 + - NULLIF ( 55, - + 83 ) + - COUNT ( * ) THEN + 7 * - 78 + COALESCE ( + AVG ( - 81 ), 61 + + 16 + 77, - 52 ) / - - 19 + + 57 + 46 END AS col2
----
NULL

query I rowsort
SELECT ALL 29 + + COALESCE ( + 20, + - 76 * + 25 + - 89, - 6 ) AS col1
----
49

query I rowsort
SELECT 81 * 33 AS col2
----
2673

onlyif mysql # aggregate syntax: 
query I rowsort label-6506
SELECT 16 * NULLIF ( COUNT( * ), + + AVG ( DISTINCT 22 ) ) * - 58 + MIN( - 39 ) + + 16 AS col0
----
-951

skipif mysql # not compatible
query I rowsort label-6506
SELECT 16 * NULLIF ( COUNT ( * ), + + AVG ( DISTINCT 22 ) ) * - 58 + MIN ( - 39 ) + + 16 AS col0
----
-951

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

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

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

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6510
SELECT ALL - AVG ( ALL CAST( NULL AS DECIMAL ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-6510
SELECT ALL - AVG ( ALL CAST ( NULL AS REAL ) )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6511
SELECT DISTINCT 71 * 55 - - + MAX( DISTINCT - 83 ) DIV + + 27
----
3902

skipif mysql # not compatible
query I rowsort label-6511
SELECT DISTINCT 71 * 55 - - + MAX ( DISTINCT - 83 ) / + + 27
----
3902

query I rowsort
SELECT 22 + + - 39
----
-17

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6513
SELECT DISTINCT + 5 * - COUNT( * ) - - - 71 DIV - 95 + NULLIF ( - ( ( + - 61 ) ), + 51 ) AS col0
----
56

skipif mysql # not compatible
query I rowsort label-6513
SELECT DISTINCT + 5 * - COUNT ( * ) - - - 71 / - 95 + NULLIF ( - ( ( + - 61 ) ), + 51 ) AS col0
----
56

query I rowsort
SELECT 32 * - - 85 col0
----
2720

query I rowsort
SELECT DISTINCT - ( - - 60 ) AS col0
----
-60

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6517
SELECT - COUNT( * ) + - + 57 + - + 73 AS col1
----
-131

skipif mysql # not compatible
query I rowsort label-6517
SELECT - COUNT ( * ) + - + 57 + - + 73 AS col1
----
-131

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6519
SELECT - 97 + + COUNT( ALL + 36 ) AS col1
----
-96

skipif mysql # not compatible
query I rowsort label-6519
SELECT - 97 + + COUNT ( ALL + 36 ) AS col1
----
-96

query I rowsort
SELECT ALL - 4 * 67 AS col2
----
-268

query I rowsort
SELECT 68 * - + 52 + + 90 + 51 AS col1
----
-3395

onlyif mysql # DIV for integer division: 
query II rowsort label-6522
SELECT - 10 DIV 71 * 14, - 31 AS col0
----
0
-31

skipif mysql # not compatible
query II rowsort label-6522
SELECT - 10 / 71 * 14, - 31 AS col0
----
0
-31

query I rowsort
SELECT ALL + - 49 + + 87
----
38

onlyif mysql # aggregate syntax: 
query II rowsort label-6524
SELECT - - 46 * - + 7 * + 13 + - - 39 + - 35 * + COUNT( * ), ( + + COUNT( * ) ) + + COUNT( * ) + SUM( - 31 ) AS col1
----
-4182
-29

skipif mysql # not compatible
query II rowsort label-6524
SELECT - - 46 * - + 7 * + 13 + - - 39 + - 35 * + COUNT ( * ), ( + + COUNT ( * ) ) + + COUNT ( * ) + SUM ( - 31 ) AS col1
----
-4182
-29

query I rowsort
SELECT ALL + COALESCE ( - 52, - 39 * + 11 + 84 * - 33 + - 50 )
----
-52

query I rowsort
SELECT + CASE - ( + + 1 ) WHEN + - 50 THEN + 89 ELSE + 87 END AS col2
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-6527
SELECT ALL + 68 + - COUNT( * ) * - ( - 57 )
----
11

skipif mysql # not compatible
query I rowsort label-6527
SELECT ALL + 68 + - COUNT ( * ) * - ( - 57 )
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-6528
SELECT DISTINCT - 10 + + 28 - - 24 * + - COUNT( * )
----
-6

skipif mysql # not compatible
query I rowsort label-6528
SELECT DISTINCT - 10 + + 28 - - 24 * + - COUNT ( * )
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-6529
SELECT + COUNT( DISTINCT + 12 ) + - 21
----
-20

skipif mysql # not compatible
query I rowsort label-6529
SELECT + COUNT ( DISTINCT + 12 ) + - 21
----
-20

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6531
SELECT ALL CAST( - 2 AS SIGNED ) + 15 * 2 * - 9 * - CASE + 47 WHEN + 65 THEN NULL ELSE - ( - + 91 ) * 60 END AS col1
----
1474198

skipif mysql # not compatible
query I rowsort label-6531
SELECT ALL CAST ( - 2 AS INTEGER ) + 15 * 2 * - 9 * - CASE + 47 WHEN + 65 THEN NULL ELSE - ( - + 91 ) * 60 END AS col1
----
1474198

query I rowsort
SELECT DISTINCT 83 + - 19 AS col0
----
64

query I rowsort
SELECT + + 30 + - 75 AS col2
----
-45

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

skipif mysql # not compatible
query I rowsort label-6534
SELECT ALL - 61 * + - 61 + - COUNT ( * ) AS col0
----
3720

query I rowsort
SELECT DISTINCT 10 + 12 col2
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-6536
SELECT DISTINCT + - 27 * + 3 * + SUM( ALL + 95 ) * + + NULLIF ( - - SUM( ALL + 85 ), - - 9 * + 22 + - - 5 ) * - 90 AS col1
----
58866750

skipif mysql # not compatible
query I rowsort label-6536
SELECT DISTINCT + - 27 * + 3 * + SUM ( ALL + 95 ) * + + NULLIF ( - - SUM ( ALL + 85 ), - - 9 * + 22 + - - 5 ) * - 90 AS col1
----
58866750

onlyif mysql # DIV for integer division: 
query I rowsort label-6537
SELECT + 17 DIV 95 * - - 17
----
0

skipif mysql # not compatible
query I rowsort label-6537
SELECT + 17 / 95 * - - 17
----
0

query II rowsort
SELECT ALL 61 AS col0, 44 + - 95 * - + 54
----
61
5174

onlyif mysql # aggregate syntax: 
query I rowsort label-6539
SELECT - COALESCE ( - - ( + COUNT( * ) ), + COUNT( + - 83 ) ) * + CASE - 83 WHEN + 5 * + + 92 THEN NULL WHEN CASE - + COALESCE ( - ( 97 ), + 46, 13 * + - COUNT( * ) * + + 42 * + + 56 + COUNT( * ) + + - 11 + + CASE + 21 WHEN 79 THEN 5 END + 35 ) WHEN - 35 * - COUNT( * ) THEN - COUNT( DISTINCT COALESCE ( + 83, - 9 + - 30 * - 42 * 99 + + - 33 - - 62 * 98 ) ) * - 30 * 97 WHEN 98 THEN NULL ELSE NULL END * 2 + + + 28 + - + 23 THEN + - 4 ELSE - ( 6 ) * + 54 END * - ( + 60 + 27 ) AS col1
----
-28188

skipif mysql # not compatible
query I rowsort label-6539
SELECT - COALESCE ( - - ( + COUNT ( * ) ), + COUNT ( + - 83 ) ) * + CASE - 83 WHEN + 5 * + + 92 THEN NULL WHEN CASE - + COALESCE ( - ( 97 ), + 46, 13 * + - COUNT ( * ) * + + 42 * + + 56 + COUNT ( * ) + + - 11 + + CASE + 21 WHEN 79 THEN 5 END + 35 ) WHEN - 35 * - COUNT ( * ) THEN - COUNT ( DISTINCT COALESCE ( + 83, - 9 + - 30 * - 42 * 99 + + - 33 - - 62 * 98 ) ) * - 30 * 97 WHEN 98 THEN NULL ELSE NULL END * 2 + + + 28 + - + 23 THEN + - 4 ELSE - ( 6 ) * + 54 END * - ( + 60 + 27 ) AS col1
----
-28188

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

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

query I rowsort
SELECT + 93 * - - 80
----
7440

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6542
SELECT + 10 + 6 * 42 * + 84 - CAST( 89 AS SIGNED ) * - 9 AS col0
----
21979

skipif mysql # not compatible
query I rowsort label-6542
SELECT + 10 + 6 * 42 * + 84 - CAST ( 89 AS INTEGER ) * - 9 AS col0
----
21979

query II rowsort
SELECT 67 AS col1, - 40
----
67
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-6544
SELECT + 57 - + COUNT( * ) * - 5 AS col2
----
62

skipif mysql # not compatible
query I rowsort label-6544
SELECT + 57 - + COUNT ( * ) * - 5 AS col2
----
62

query I rowsort
SELECT + 33 - - + ( + 13 ) - 89
----
-43

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6547
SELECT DISTINCT - 89 * + CAST( + - SUM( - + 94 ) AS SIGNED ) col1
----
-8366

skipif mysql # not compatible
query I rowsort label-6547
SELECT DISTINCT - 89 * + CAST ( + - SUM ( - + 94 ) AS INTEGER ) col1
----
-8366

query I rowsort
SELECT ALL + COALESCE ( + + 41, + 39, ( - - 5 ) ) AS col1
----
41

query I rowsort
SELECT + 27 * 38 AS col0
----
1026

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6551
SELECT + CASE 29 WHEN + - CAST( NULL AS SIGNED ) THEN NULL ELSE + COUNT( * ) * + - 48 END col0
----
-48

skipif mysql # not compatible
query I rowsort label-6551
SELECT + CASE 29 WHEN + - CAST ( NULL AS INTEGER ) THEN NULL ELSE + COUNT ( * ) * + - 48 END col0
----
-48

query I rowsort
SELECT + 91 * - 54 * + 32 AS col1
----
-157248

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6553
SELECT ALL 66 * + + 89 * MIN( DISTINCT - - 56 ) + 62 * - 10 * CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6553
SELECT ALL 66 * + + 89 * MIN ( DISTINCT - - 56 ) + 62 * - 10 * CAST ( NULL AS INTEGER ) AS col1
----
NULL

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

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

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

query I rowsort
SELECT + + 77 * + 21 - + 85 AS col2
----
1532

query I rowsort
SELECT ALL + + 77 * + 46 * + - 15 + - 21 + 49
----
-53102

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

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

query I rowsort
SELECT ALL - 20 * + 72 * + 51 + - 95 * - 56 AS col1
----
-68120

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

skipif mysql # not compatible
query I rowsort label-6561
SELECT - 53 * COUNT ( DISTINCT + 31 ) AS col2
----
-53

onlyif mysql # DIV for integer division: 
query I rowsort label-6562
SELECT ALL + 6 DIV - 62 * - 17
----
0

skipif mysql # not compatible
query I rowsort label-6562
SELECT ALL + 6 / - 62 * - 17
----
0

query II rowsort
SELECT + 80 AS col0, + 83 AS col1
----
80
83

query II rowsort
SELECT + 2 AS col0, 11 col1
----
2
11

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6566
SELECT - - 62 DIV + 18 + 7 - - 39 + 16 * 55
----
929

skipif mysql # not compatible
query I rowsort label-6566
SELECT - - 62 / + 18 + 7 - - 39 + 16 * 55
----
929

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6567
SELECT - + 51 - - COUNT( * ) + - + 59 + + CAST( + 25 AS SIGNED ) DIV + 49 + 60 + 43 DIV - + 79 * - 59 AS col1
----
-49

skipif mysql # not compatible
query I rowsort label-6567
SELECT - + 51 - - COUNT ( * ) + - + 59 + + CAST ( + 25 AS INTEGER ) / + 49 + 60 + 43 / - + 79 * - 59 AS col1
----
-49

query I rowsort
SELECT - - 76 + ( 13 ) AS col1
----
89

query I rowsort
SELECT ALL - 65 * 13
----
-845

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6570
SELECT ALL 38 * - + ( 73 ) - ( - 86 ) + + ( 98 ) * - 3 * - CAST( NULL AS SIGNED ) * COUNT( * ) * + 99 * + - 66 * + 76
----
NULL

skipif mysql # not compatible
query I rowsort label-6570
SELECT ALL 38 * - + ( 73 ) - ( - 86 ) + + ( 98 ) * - 3 * - CAST ( NULL AS INTEGER ) * COUNT ( * ) * + 99 * + - 66 * + 76
----
NULL

query I rowsort
SELECT - - 26 + 77 AS col0
----
103

query I rowsort
SELECT ALL - 21 * + 68 AS col0
----
-1428

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6574
SELECT ALL + 4 * 14 AS col2, - SUM( DISTINCT + 99 ) + 7 AS col0
----
56
-92

skipif mysql # not compatible
query II rowsort label-6574
SELECT ALL + 4 * 14 AS col2, - SUM ( DISTINCT + 99 ) + 7 AS col0
----
56
-92

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

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

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6577
SELECT - 26 + 78 * + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-6577
SELECT - 26 + 78 * + CAST ( NULL AS REAL )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6578
SELECT - ( 8 ) * + - 5 * NULLIF ( - 69, - 99 ) DIV + + 38 col1
----
-72

skipif mysql # not compatible
query I rowsort label-6578
SELECT - ( 8 ) * + - 5 * NULLIF ( - 69, - 99 ) / + + 38 col1
----
-72

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6580
SELECT + 70 + + COUNT( - 45 ) + - 9 * - 6 * + + 8 * 26 AS col1
----
11303

skipif mysql # not compatible
query I rowsort label-6580
SELECT + 70 + + COUNT ( - 45 ) + - 9 * - 6 * + + 8 * 26 AS col1
----
11303

onlyif mysql # DIV for integer division: 
query II rowsort label-6581
SELECT DISTINCT + 93 DIV 66 AS col2, + 35
----
1
35

skipif mysql # not compatible
query II rowsort label-6581
SELECT DISTINCT + 93 / 66 AS col2, + 35
----
1
35

query I rowsort
SELECT - 57 + + 85 * - - 96
----
8103

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6584
SELECT - NULLIF ( - + 99, - ( + + COUNT( * ) ) * - + 16 ) AS col0, CASE WHEN ( NULL ) IS NOT NULL THEN + ( - 52 ) END + + 7 - + ( + - ( - + 66 ) ) AS col2
----
99
NULL

skipif mysql # not compatible
query II rowsort label-6584
SELECT - NULLIF ( - + 99, - ( + + COUNT ( * ) ) * - + 16 ) AS col0, CASE WHEN ( NULL ) IS NOT NULL THEN + ( - 52 ) END + + 7 - + ( + - ( - + 66 ) ) AS col2
----
99
NULL

query I rowsort
SELECT ALL + 85 * + 1
----
85

onlyif mysql # aggregate syntax: 
query III rowsort label-6586
SELECT ALL + 76 * + 92 AS col0, + 40 * + SUM( 96 ), - 79 col2
----
6992
3840
-79

skipif mysql # not compatible
query III rowsort label-6586
SELECT ALL + 76 * + 92 AS col0, + 40 * + SUM ( 96 ), - 79 col2
----
6992
3840
-79

onlyif mysql # aggregate syntax: 
query I rowsort label-6587
SELECT - 39 + COUNT( * ) AS col0
----
-38

skipif mysql # not compatible
query I rowsort label-6587
SELECT - 39 + COUNT ( * ) AS col0
----
-38

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6589
SELECT 76 * + COUNT( * ) + - - NULLIF ( - MIN( DISTINCT + + 75 ), + 26 * + + 30 * 68 ) col1
----
1

skipif mysql # not compatible
query I rowsort label-6589
SELECT 76 * + COUNT ( * ) + - - NULLIF ( - MIN ( DISTINCT + + 75 ), + 26 * + + 30 * 68 ) col1
----
1

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6590
SELECT CAST( - 71 AS SIGNED ) DIV - - 65 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-6590
SELECT CAST ( - 71 AS INTEGER ) / - - 65 AS col2
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6591
SELECT ALL 3 + + 31 + SUM( - 68 ) - + 72 * - NULLIF ( - 1, 88 ) * - 20 * - CASE + 6 WHEN + 75 * 95 * + MIN( + + 78 ) THEN - 48 * + 9 WHEN + + NULLIF ( - 6, - 0 + 89 * - COUNT( * ) ) * - 3 + + 41 THEN 65 WHEN - CAST( + 14 AS SIGNED ) THEN + 14 + - 30 + + - 1 - - 11 * + COUNT( * ) ELSE NULL END * + 14 * + MIN( ALL + CAST( NULL AS DECIMAL ) ) * 6 * + + NULLIF ( - 90, SUM( ALL + - 20 ) ) - 59
----
NULL

skipif mysql # not compatible
query I rowsort label-6591
SELECT ALL 3 + + 31 + SUM ( - 68 ) - + 72 * - NULLIF ( - 1, 88 ) * - 20 * - CASE + 6 WHEN + 75 * 95 * + MIN ( + + 78 ) THEN - 48 * + 9 WHEN + + NULLIF ( - 6, - 0 + 89 * - COUNT ( * ) ) * - 3 + + 41 THEN 65 WHEN - CAST ( + 14 AS INTEGER ) THEN + 14 + - 30 + + - 1 - - 11 * + COUNT ( * ) ELSE NULL END * + 14 * + MIN ( ALL + CAST ( NULL AS REAL ) ) * 6 * + + NULLIF ( - 90, SUM ( ALL + - 20 ) ) - 59
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6592
SELECT - 6 * + CAST( COUNT( * ) AS SIGNED ) + 43 + - COUNT( * ) * + 84 * + MIN( DISTINCT - 67 ) col1
----
5665

skipif mysql # not compatible
query I rowsort label-6592
SELECT - 6 * + CAST ( COUNT ( * ) AS INTEGER ) + 43 + - COUNT ( * ) * + 84 * + MIN ( DISTINCT - 67 ) col1
----
5665

onlyif mysql # DIV for integer division: 
query II rowsort label-6593
SELECT DISTINCT 20 DIV 87, - 63 AS col1
----
0
-63

skipif mysql # not compatible
query II rowsort label-6593
SELECT DISTINCT 20 / 87, - 63 AS col1
----
0
-63

query I rowsort
SELECT DISTINCT + 59 + NULLIF ( - - 83, - - 58 ) * + - 54 + + - 39
----
-4462

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

skipif mysql # not compatible
query I rowsort label-6595
SELECT + 86 * + 91 + - COUNT ( * ) AS col1
----
7825

onlyif mysql # aggregate syntax: 
query I rowsort label-6596
SELECT ALL 54 + MAX( - 89 ) + - 88 * COUNT( * ) AS col2
----
-123

skipif mysql # not compatible
query I rowsort label-6596
SELECT ALL 54 + MAX ( - 89 ) + - 88 * COUNT ( * ) AS col2
----
-123

onlyif mysql # aggregate syntax: 
query I rowsort label-6597
SELECT + 61 * + - COUNT( * ) + + + 28 * 73 AS col2
----
1983

skipif mysql # not compatible
query I rowsort label-6597
SELECT + 61 * + - COUNT ( * ) + + + 28 * 73 AS col2
----
1983

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

skipif mysql # not compatible
query I rowsort label-6598
SELECT ALL 11 * - COUNT ( - + 12 ) AS col2
----
-11

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-6599
SELECT DISTINCT 16 + - CAST( 59 AS SIGNED ) AS col2, + CAST( NULL AS DECIMAL ) * + 75 * + COUNT( * ) AS col1
----
-43
NULL

skipif mysql # not compatible
query II rowsort label-6599
SELECT DISTINCT 16 + - CAST ( 59 AS INTEGER ) AS col2, + CAST ( NULL AS REAL ) * + 75 * + COUNT ( * ) AS col1
----
-43
NULL

query I rowsort
SELECT ALL - 60 + + 11 * + 2 AS col0
----
-38

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6601
SELECT ( - 60 ) * - 5 * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6601
SELECT ( - 60 ) * - 5 * CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6602
SELECT ( - - COALESCE ( 88, - 29 * + + 91 + + 12 + - 18 * + 96 + - COUNT( * ) + + CASE - - 7 WHEN + 75 DIV + COALESCE ( + + 50, - - 90 ) + 69 THEN 26 + - 46 DIV 89 ELSE - 63 * - - 79 + 14 END + + 20 - + CAST( COALESCE ( + 67, + 25 ) AS SIGNED ) ) ) + - COALESCE ( + 65, + 68 + - - ( 26 ) * + + CASE WHEN 27 IS NOT NULL THEN 75 ELSE NULL END )
----
23

skipif mysql # not compatible
query I rowsort label-6602
SELECT ( - - COALESCE ( 88, - 29 * + + 91 + + 12 + - 18 * + 96 + - COUNT ( * ) + + CASE - - 7 WHEN + 75 / + COALESCE ( + + 50, - - 90 ) + 69 THEN 26 + - 46 / 89 ELSE - 63 * - - 79 + 14 END + + 20 - + CAST ( COALESCE ( + 67, + 25 ) AS INTEGER ) ) ) + - COALESCE ( + 65, + 68 + - - ( 26 ) * + + CASE WHEN 27 IS NOT NULL THEN 75 ELSE NULL END )
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-6603
SELECT 80 * - ( - ( MAX( - + 2 ) ) ) * - - ( 38 ) + + SUM( + 9 ) + + 34 AS col0
----
-6037

skipif mysql # not compatible
query I rowsort label-6603
SELECT 80 * - ( - ( MAX ( - + 2 ) ) ) * - - ( 38 ) + + SUM ( + 9 ) + + 34 AS col0
----
-6037

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6605
SELECT ALL - MIN( DISTINCT - 89 ) AS col0
----
89

skipif mysql # not compatible
query I rowsort label-6605
SELECT ALL - MIN ( DISTINCT - 89 ) AS col0
----
89

onlyif mysql # aggregate syntax: 
query II rowsort label-6606
SELECT 57 + - 50, - 4 * + + 13 + + - SUM( 48 ) AS col2
----
7
-100

skipif mysql # not compatible
query II rowsort label-6606
SELECT 57 + - 50, - 4 * + + 13 + + - SUM ( 48 ) AS col2
----
7
-100

query I rowsort
SELECT ALL 0 - 79
----
-79

onlyif mysql # aggregate syntax: 
query I rowsort label-6608
SELECT DISTINCT - CASE - - COALESCE ( - 66, - - 10, + + 35 ) WHEN COUNT( * ) THEN - - 92 ELSE + 71 END AS col0
----
-71

skipif mysql # not compatible
query I rowsort label-6608
SELECT DISTINCT - CASE - - COALESCE ( - 66, - - 10, + + 35 ) WHEN COUNT ( * ) THEN - - 92 ELSE + 71 END AS col0
----
-71

onlyif mysql # DIV for integer division: 
query I rowsort label-6609
SELECT DISTINCT + - 35 DIV 20 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-6609
SELECT DISTINCT + - 35 / 20 AS col2
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-6610
SELECT + COUNT( 75 ) AS col2, + COUNT( + + 87 ) col1
----
1
1

skipif mysql # not compatible
query II rowsort label-6610
SELECT + COUNT ( 75 ) AS col2, + COUNT ( + + 87 ) col1
----
1
1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6611
SELECT 57 * + - 46 AS col0, + CAST( + - 82 AS SIGNED ) + - 73
----
-2622
-155

skipif mysql # not compatible
query II rowsort label-6611
SELECT 57 * + - 46 AS col0, + CAST ( + - 82 AS INTEGER ) + - 73
----
-2622
-155

query I rowsort
SELECT ALL - COALESCE ( + 16, - 2, - - 17 ) AS col0
----
-16

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6613
SELECT ALL + CAST( NULL AS SIGNED ) * + 47 / + - 39 * 75
----
NULL

skipif mysql # not compatible
query I rowsort label-6613
SELECT ALL + CAST ( NULL AS INTEGER ) * + 47 / + - 39 * 75
----
NULL

query II rowsort
SELECT ALL 14 AS col1, 56 * + 9
----
14
504

query I rowsort
SELECT 22 + 17 AS col0
----
39

query I rowsort
SELECT ALL + 17 * 86
----
1462

query II rowsort
SELECT 6 - + 92 + 25 AS col1, 60 * + 26
----
-61
1560

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6618
SELECT DISTINCT + CAST( + 68 AS SIGNED ) + - - 96 AS col2
----
164

skipif mysql # not compatible
query I rowsort label-6618
SELECT DISTINCT + CAST ( + 68 AS INTEGER ) + - - 96 AS col2
----
164

query I rowsort
SELECT 16 - + 67 * + - 6 * 15 - - 56 AS col2
----
6102

query I rowsort
SELECT 22 * 69 col0
----
1518

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6621
SELECT MAX( 50 ) + + - 10 AS col1, CAST( NULL AS SIGNED )
----
40
NULL

skipif mysql # not compatible
query II rowsort label-6621
SELECT MAX ( 50 ) + + - 10 AS col1, CAST ( NULL AS INTEGER )
----
40
NULL

query I rowsort
SELECT DISTINCT + 72 + - ( 86 ) + 89
----
75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6623
SELECT ALL 34 AS col2, + CASE NULLIF ( - + AVG ( DISTINCT - 61 ), + 23 / - + CAST( NULL AS SIGNED ) + + 72 + - + 38 ) WHEN COUNT( * ) * - - 80 THEN - - 52 + + 2 + + AVG ( DISTINCT NULLIF ( + 33, + 45 ) ) * - NULLIF ( + 95, - 83 ) ELSE + 10 * + ( + - 41 ) * - 49 * ( - + 48 ) END AS col2
----
34
-964320

skipif mysql # not compatible
query II rowsort label-6623
SELECT ALL 34 AS col2, + CASE NULLIF ( - + AVG ( DISTINCT - 61 ), + 23 / - + CAST ( NULL AS INTEGER ) + + 72 + - + 38 ) WHEN COUNT ( * ) * - - 80 THEN - - 52 + + 2 + + AVG ( DISTINCT NULLIF ( + 33, + 45 ) ) * - NULLIF ( + 95, - 83 ) ELSE + 10 * + ( + - 41 ) * - 49 * ( - + 48 ) END AS col2
----
34
-964320

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6624
SELECT 67 + - 85 * + CAST( + 30 AS SIGNED )
----
-2483

skipif mysql # not compatible
query I rowsort label-6624
SELECT 67 + - 85 * + CAST ( + 30 AS INTEGER )
----
-2483

query I rowsort
SELECT ALL + 54 + - 37
----
17

query I rowsort
SELECT ALL + 45 + 13
----
58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6627
SELECT DISTINCT + CAST( 70 AS SIGNED ) + - COUNT( * ) * + CAST( - 1 AS SIGNED ) AS col0
----
71

skipif mysql # not compatible
query I rowsort label-6627
SELECT DISTINCT + CAST ( 70 AS INTEGER ) + - COUNT ( * ) * + CAST ( - 1 AS INTEGER ) AS col0
----
71

query I rowsort
SELECT DISTINCT 14 + + 16 AS col2
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-6629
SELECT DISTINCT - COUNT( - 29 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-6629
SELECT DISTINCT - COUNT ( - 29 ) AS col1
----
-1

query I rowsort
SELECT ALL 49 + + 20 AS col1
----
69

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

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

query I rowsort
SELECT 11 * + + 35
----
385

onlyif mysql # aggregate syntax: 
query I rowsort label-6633
SELECT + COUNT( * ) * + CASE - 73 WHEN - COUNT( * ) THEN + + COUNT( * ) WHEN + 96 THEN NULL END + - 42 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6633
SELECT + COUNT ( * ) * + CASE - 73 WHEN - COUNT ( * ) THEN + + COUNT ( * ) WHEN + 96 THEN NULL END + - 42 col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6634
SELECT - CAST( 62 AS SIGNED ) AS col1
----
-62

skipif mysql # not compatible
query I rowsort label-6634
SELECT - CAST ( 62 AS INTEGER ) AS col1
----
-62

query II rowsort
SELECT + 92, + 47 AS col0
----
92
47

query I rowsort
SELECT ALL 5 + - - 47 * 75 - 10 AS col2
----
3520

onlyif mysql # aggregate syntax: 
query I rowsort label-6637
SELECT - MIN( ALL 62 ) * + - 98 AS col2
----
6076

skipif mysql # not compatible
query I rowsort label-6637
SELECT - MIN ( ALL 62 ) * + - 98 AS col2
----
6076

onlyif mysql # DIV for integer division: 
query I rowsort label-6638
SELECT ALL 32 DIV + 97 * - 62
----
0

skipif mysql # not compatible
query I rowsort label-6638
SELECT ALL 32 / + 97 * - 62
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-6639
SELECT ALL - 82, NULLIF ( 84, + ( + 82 ) + COUNT( * ) ) + - SUM( + 50 ) AS col1
----
-82
34

skipif mysql # not compatible
query II rowsort label-6639
SELECT ALL - 82, NULLIF ( 84, + ( + 82 ) + COUNT ( * ) ) + - SUM ( + 50 ) AS col1
----
-82
34

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

skipif mysql # not compatible
query I rowsort label-6640
SELECT + MAX ( 24 )
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-6641
SELECT ALL + 48 - + 14 + - - ( + COUNT( DISTINCT 79 ) )
----
35

skipif mysql # not compatible
query I rowsort label-6641
SELECT ALL + 48 - + 14 + - - ( + COUNT ( DISTINCT 79 ) )
----
35

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6642
SELECT + NULLIF ( + - 39, - COALESCE ( + ( + CAST( NULL AS DECIMAL ) ), 93 / - 2 + - 67 ) * + - 93 + - - 91 ) * 53
----
-2067

skipif mysql # not compatible
query I rowsort label-6642
SELECT + NULLIF ( + - 39, - COALESCE ( + ( + CAST ( NULL AS REAL ) ), 93 / - 2 + - 67 ) * + - 93 + - - 91 ) * 53
----
-2067

onlyif mysql # aggregate syntax: 
query I rowsort label-6643
SELECT SUM( DISTINCT 4 ) + - + 79 - + + 93 AS col0
----
-168

skipif mysql # not compatible
query I rowsort label-6643
SELECT SUM ( DISTINCT 4 ) + - + 79 - + + 93 AS col0
----
-168

query I rowsort
SELECT + 42 * + 30 * 56
----
70560

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6645
SELECT + CAST( - 7 AS SIGNED ) * 16 + + 37 + + COUNT( * )
----
-74

skipif mysql # not compatible
query I rowsort label-6645
SELECT + CAST ( - 7 AS INTEGER ) * 16 + + 37 + + COUNT ( * )
----
-74

query I rowsort
SELECT - 90 * + + 47 AS col0
----
-4230

onlyif mysql # aggregate syntax: 
query I rowsort label-6647
SELECT COUNT( - 17 ) + - 0 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-6647
SELECT COUNT ( - 17 ) + - 0 AS col1
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6648
SELECT DISTINCT + 55 * + CAST( - - COUNT( * ) AS SIGNED ) * 63 - + + 40 + 76 - + 35 * - - 83
----
596

skipif mysql # not compatible
query I rowsort label-6648
SELECT DISTINCT + 55 * + CAST ( - - COUNT ( * ) AS INTEGER ) * 63 - + + 40 + 76 - + 35 * - - 83
----
596

query I rowsort
SELECT 28 - - 8
----
36

query I rowsort
SELECT DISTINCT + 10 * + 24 AS col0
----
240

query I rowsort
SELECT 21 * ( - + 71 ) * - 3 + + 68 col1
----
4541

onlyif mysql # DIV for integer division: 
query II rowsort label-6652
SELECT 32 DIV - + 99 AS col1, - 28 AS col1
----
0
-28

skipif mysql # not compatible
query II rowsort label-6652
SELECT 32 / - + 99 AS col1, - 28 AS col1
----
0
-28

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

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

query I rowsort
SELECT NULLIF ( + + 8, + 3 + - 59 ) + - + 97 AS col2
----
-89

onlyif mysql # DIV for integer division: 
query I rowsort label-6655
SELECT - 22 DIV - + 18
----
1

skipif mysql # not compatible
query I rowsort label-6655
SELECT - 22 / - + 18
----
1

query I rowsort
SELECT + 68 * - 49 AS col0
----
-3332

onlyif mysql # aggregate syntax: 
query II rowsort label-6657
SELECT ALL - 13 * - - 70 * + + 44 * COUNT( * ), - 67 AS col0
----
-40040
-67

skipif mysql # not compatible
query II rowsort label-6657
SELECT ALL - 13 * - - 70 * + + 44 * COUNT ( * ), - 67 AS col0
----
-40040
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-6658
SELECT DISTINCT MIN( ALL 81 ) + + 26 AS col2
----
107

skipif mysql # not compatible
query I rowsort label-6658
SELECT DISTINCT MIN ( ALL 81 ) + + 26 AS col2
----
107

query I rowsort
SELECT DISTINCT - 95 + - + 17 AS col0
----
-112

query II rowsort
SELECT - 21 + - + 11, - 77 AS col2
----
-32
-77

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

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

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

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

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

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

query II rowsort
SELECT - 32 * - - 94 AS col2, 75 AS col2
----
-3008
75

query I rowsort
SELECT DISTINCT - 41 - + - 81 - + + 85 * + - 19 AS col2
----
1655

onlyif mysql # aggregate syntax: 
query I rowsort label-6666
SELECT ALL 98 * - CASE WHEN 89 NOT IN ( + ( - 73 ) + + - COALESCE ( 45, + + 6, - - 75 ) * + 52 / - 40, + 25, + 33 ) THEN + COUNT( * ) * 13 + COUNT( * ) + + 4 END - - COUNT( * ) * + - 74 AS col1
----
-1838

skipif mysql # not compatible
query I rowsort label-6666
SELECT ALL 98 * - CASE WHEN 89 NOT IN ( + ( - 73 ) + + - COALESCE ( 45, + + 6, - - 75 ) * + 52 / - 40, + 25, + 33 ) THEN + COUNT ( * ) * 13 + COUNT ( * ) + + 4 END - - COUNT ( * ) * + - 74 AS col1
----
-1838

onlyif mysql # DIV for integer division: 
query I rowsort label-6667
SELECT DISTINCT - 27 DIV + 49 + - 84 + 28 * - + 52 AS col1
----
-1540

skipif mysql # not compatible
query I rowsort label-6667
SELECT DISTINCT - 27 / + 49 + - 84 + 28 * - + 52 AS col1
----
-1540

query I rowsort
SELECT ALL + COALESCE ( - 82, 55 ) AS col2
----
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-6669
SELECT ALL + MIN( + 52 ) AS col2
----
52

skipif mysql # not compatible
query I rowsort label-6669
SELECT ALL + MIN ( + 52 ) AS col2
----
52

query I rowsort
SELECT - 39 * - - 54 + + 42 + - 9
----
-2073

onlyif mysql # aggregate syntax: 
query I rowsort label-6671
SELECT - 27 * + 49 * + 89 + + 62 + + - ( + - MIN( ALL + 0 ) ) * + CASE + 95 WHEN + 18 THEN + + 93 END
----
NULL

skipif mysql # not compatible
query I rowsort label-6671
SELECT - 27 * + 49 * + 89 + + 62 + + - ( + - MIN ( ALL + 0 ) ) * + CASE + 95 WHEN + 18 THEN + + 93 END
----
NULL

query I rowsort
SELECT + 49 + + + 38
----
87

query II rowsort
SELECT DISTINCT + - 89 * - 13 col2, 8
----
1157
8

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6674
SELECT ALL + COALESCE ( - ( + COUNT( * ) ), + CAST( + 10 AS SIGNED ), + COUNT( * ) * - 9 - - 55 * - 57 * - 14 ) * 8 * + ( 80 ) + + - 5 AS col2, 54 AS col0
----
-645
54

skipif mysql # not compatible
query II rowsort label-6674
SELECT ALL + COALESCE ( - ( + COUNT ( * ) ), + CAST ( + 10 AS INTEGER ), + COUNT ( * ) * - 9 - - 55 * - 57 * - 14 ) * 8 * + ( 80 ) + + - 5 AS col2, 54 AS col0
----
-645
54

onlyif mysql # aggregate syntax: 
query I rowsort label-6675
SELECT MAX( + - 44 ) AS col0
----
-44

skipif mysql # not compatible
query I rowsort label-6675
SELECT MAX ( + - 44 ) AS col0
----
-44

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

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

query I rowsort
SELECT + + 12 * + 71 + 89
----
941

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6679
SELECT - NULLIF ( - CASE - + 43 WHEN SUM( DISTINCT + 9 ) THEN 82 ELSE NULL END, 84 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6679
SELECT - NULLIF ( - CASE - + 43 WHEN SUM ( DISTINCT + 9 ) THEN 82 ELSE NULL END, 84 )
----
NULL

query I rowsort
SELECT - 75 * + 22 AS col1
----
-1650

onlyif mysql # aggregate syntax: 
query I rowsort label-6681
SELECT + 81 + + 71 + + - ( - MIN( 79 ) ) * + COUNT( * ) + 55 AS col1
----
286

skipif mysql # not compatible
query I rowsort label-6681
SELECT + 81 + + 71 + + - ( - MIN ( 79 ) ) * + COUNT ( * ) + 55 AS col1
----
286

query I rowsort
SELECT ALL 86 + - 64 col0
----
22

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-6683
SELECT DISTINCT 4 + - CASE - - 86 WHEN + 73 THEN + 50 * 54 DIV COUNT( * ) * - ( + + 0 ) + - ( - CASE ( 93 ) WHEN + - 83 * + CAST( NULL AS SIGNED ) * 60 - - 73 THEN NULL WHEN + + 64 THEN 26 ELSE COUNT( * ) END ) DIV + - 65 * 70 * 58 * - ( - - 62 ) DIV + 80 WHEN - COALESCE ( + 52, + SUM( ALL - 79 ), - ( + 3 ) ) THEN NULL WHEN - 47 - 51 + + - AVG ( ALL + 35 ) THEN - + ( + COUNT( * ) ) ELSE + 60 END * COUNT( * ), + MIN( DISTINCT 28 ) + - + COALESCE ( + + 26, - 3 DIV 66 * + - 83 * + - COALESCE ( + + 70, - 78 DIV COUNT( * ), 71 * + ( - 86 ) + COALESCE ( + 6, SUM( DISTINCT ( + 17 ) ) ) ) * NULLIF ( + SUM( ALL - 18 ), + COUNT( * ) + 78 ) + 6, - 0 + ( - COUNT( * ) - - 10 ) ) * 62 AS col0
----
-56
-1584

skipif mysql # not compatible
query II rowsort label-6683
SELECT DISTINCT 4 + - CASE - - 86 WHEN + 73 THEN + 50 * 54 / COUNT ( * ) * - ( + + 0 ) + - ( - CASE ( 93 ) WHEN + - 83 * + CAST ( NULL AS INTEGER ) * 60 - - 73 THEN NULL WHEN + + 64 THEN 26 ELSE COUNT ( * ) END ) / + - 65 * 70 * 58 * - ( - - 62 ) / + 80 WHEN - COALESCE ( + 52, + SUM ( ALL - 79 ), - ( + 3 ) ) THEN NULL WHEN - 47 - 51 + + - AVG ( ALL + 35 ) THEN - + ( + COUNT ( * ) ) ELSE + 60 END * COUNT ( * ), + MIN ( DISTINCT 28 ) + - + COALESCE ( + + 26, - 3 / 66 * + - 83 * + - COALESCE ( + + 70, - 78 / COUNT ( * ), 71 * + ( - 86 ) + COALESCE ( + 6, SUM ( DISTINCT ( + 17 ) ) ) ) * NULLIF ( + SUM ( ALL - 18 ), + COUNT ( * ) + 78 ) + 6, - 0 + ( - COUNT ( * ) - - 10 ) ) * 62 AS col0
----
-56
-1584

query I rowsort
SELECT DISTINCT - 72 + + 49 + - 85
----
-108

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6685
SELECT ALL 79, - 28 + - 28 / + + 68 * + CAST( NULL AS SIGNED ) col1
----
79
NULL

skipif mysql # not compatible
query II rowsort label-6685
SELECT ALL 79, - 28 + - 28 / + + 68 * + CAST ( NULL AS INTEGER ) col1
----
79
NULL

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

skipif mysql # not compatible
query I rowsort label-6686
SELECT + MIN ( DISTINCT - 52 ) + + 92 AS col0
----
40

query I rowsort
SELECT + 45 * + - 34 AS col1
----
-1530

query I rowsort
SELECT ALL 50 * + + 64 AS col1
----
3200

query I rowsort
SELECT ALL 3 + + 76
----
79

query II rowsort
SELECT + 9 - ( + 44 ) AS col0, + 62 * - - 67 col0
----
-35
4154

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6692
SELECT - NULLIF ( + CASE CASE 32 WHEN + 32 - - COUNT( * ) THEN - ( 2 ) * 23 END WHEN + - ( - 47 ) * + 19 * ( + MAX( - 15 ) ) + 65 / COALESCE ( + CAST( + COUNT( * ) AS SIGNED ), + 12, + - 99 * - 97 * + + 45 - + - 88 ) THEN NULL ELSE + 6 + - 41 + 49 END, 75 / + - COUNT( * ) )
----
-14

skipif mysql # not compatible
query I rowsort label-6692
SELECT - NULLIF ( + CASE CASE 32 WHEN + 32 - - COUNT ( * ) THEN - ( 2 ) * 23 END WHEN + - ( - 47 ) * + 19 * ( + MAX ( - 15 ) ) + 65 / COALESCE ( + CAST ( + COUNT ( * ) AS INTEGER ), + 12, + - 99 * - 97 * + + 45 - + - 88 ) THEN NULL ELSE + 6 + - 41 + 49 END, 75 / + - COUNT ( * ) )
----
-14

query I rowsort
SELECT DISTINCT 38 - - 79 AS col2
----
117

onlyif mysql # aggregate syntax: 
query I rowsort label-6694
SELECT - 8 + ( 99 ) + - 54 * - - 60 + + COUNT( * ) * 64 AS col2
----
-3085

skipif mysql # not compatible
query I rowsort label-6694
SELECT - 8 + ( 99 ) + - 54 * - - 60 + + COUNT ( * ) * 64 AS col2
----
-3085

onlyif mysql # aggregate syntax: 
query I rowsort label-6695
SELECT + MIN( 76 ) * + 65 - - CASE + - 65 WHEN - 76 * + 59 THEN NULL WHEN + MAX( NULLIF ( + - 69, 57 ) ) * - AVG ( DISTINCT - 68 ) THEN + 93 END
----
NULL

skipif mysql # not compatible
query I rowsort label-6695
SELECT + MIN ( 76 ) * + 65 - - CASE + - 65 WHEN - 76 * + 59 THEN NULL WHEN + MAX ( NULLIF ( + - 69, 57 ) ) * - AVG ( DISTINCT - 68 ) THEN + 93 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6696
SELECT - 84 * + MIN( DISTINCT + - 13 )
----
1092

skipif mysql # not compatible
query I rowsort label-6696
SELECT - 84 * + MIN ( DISTINCT + - 13 )
----
1092

query I rowsort
SELECT ALL 90 * + 87 AS col1
----
7830

query I rowsort
SELECT DISTINCT 2 - - 54 AS col1
----
56

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6701
SELECT + NULLIF ( 92, 56 + - COUNT( * ) ) - - 55 AS col0
----
147

skipif mysql # not compatible
query I rowsort label-6701
SELECT + NULLIF ( 92, 56 + - COUNT ( * ) ) - - 55 AS col0
----
147

query I rowsort
SELECT - 25 * - 97
----
2425

query I rowsort
SELECT ALL 30 * 53 AS col2
----
1590

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6704
SELECT + 99 DIV - COUNT( * ) + - 56 * 37 AS col1
----
-2171

skipif mysql # not compatible
query I rowsort label-6704
SELECT + 99 / - COUNT ( * ) + - 56 * 37 AS col1
----
-2171

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6705
SELECT + CAST( AVG ( - 67 ) AS SIGNED ) AS col2
----
-67

skipif mysql # not compatible
query I rowsort label-6705
SELECT + CAST ( AVG ( - 67 ) AS INTEGER ) AS col2
----
-67

query I rowsort
SELECT ALL + CASE + ( 84 ) WHEN + ( + 38 ) THEN 43 + + 60 WHEN 94 THEN NULL ELSE NULL END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6707
SELECT + MIN( 2 ) * 66
----
132

skipif mysql # not compatible
query I rowsort label-6707
SELECT + MIN ( 2 ) * 66
----
132

onlyif mysql # DIV for integer division: 
query I rowsort label-6708
SELECT ALL + 23 DIV 3 + 85 DIV - 24 AS col1
----
4

skipif mysql # not compatible
query I rowsort label-6708
SELECT ALL + 23 / 3 + 85 / - 24 AS col1
----
4

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

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

query I rowsort
SELECT ALL - ( 61 ) * - 64
----
3904

onlyif mysql # DIV for integer division: 
query I rowsort label-6711
SELECT ALL - 57 DIV 3 + 5 * 56
----
261

skipif mysql # not compatible
query I rowsort label-6711
SELECT ALL - 57 / 3 + 5 * 56
----
261

onlyif mysql # aggregate syntax: 
query I rowsort label-6712
SELECT ALL + 30 * + MIN( DISTINCT 54 )
----
1620

skipif mysql # not compatible
query I rowsort label-6712
SELECT ALL + 30 * + MIN ( DISTINCT 54 )
----
1620

onlyif mysql # DIV for integer division: 
query I rowsort label-6713
SELECT - 11 DIV - 27 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-6713
SELECT - 11 / - 27 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6714
SELECT ALL - 96 * ( - MAX( ALL 26 ) ) + - 84
----
2412

skipif mysql # not compatible
query I rowsort label-6714
SELECT ALL - 96 * ( - MAX ( ALL 26 ) ) + - 84
----
2412

query I rowsort
SELECT 6 + 66 AS col1
----
72

query I rowsort
SELECT 42 - 36 AS col1
----
6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6717
SELECT 58 * 79 + + CAST( NULL AS SIGNED ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6717
SELECT 58 * 79 + + CAST ( NULL AS INTEGER ) col0
----
NULL

query I rowsort
SELECT DISTINCT + ( 76 ) * 71 AS col2
----
5396

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6719
SELECT 25 + + 71 DIV - COUNT( * )
----
-46

skipif mysql # not compatible
query I rowsort label-6719
SELECT 25 + + 71 / - COUNT ( * )
----
-46

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

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

query I rowsort
SELECT ALL - 58 + 44 * 29
----
1218

query I rowsort
SELECT 41 + + 14
----
55

query I rowsort
SELECT ALL - ( 23 ) * + 62
----
-1426

onlyif mysql # DIV for integer division: 
query I rowsort label-6724
SELECT ALL 39 DIV + 59
----
0

skipif mysql # not compatible
query I rowsort label-6724
SELECT ALL 39 / + 59
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6725
SELECT MIN( DISTINCT - 73 ) + - 40 * 21
----
-913

skipif mysql # not compatible
query I rowsort label-6725
SELECT MIN ( DISTINCT - 73 ) + - 40 * 21
----
-913

onlyif mysql # DIV for integer division: 
query I rowsort label-6726
SELECT ALL 57 DIV - ( ( 65 ) )
----
0

skipif mysql # not compatible
query I rowsort label-6726
SELECT ALL 57 / - ( ( 65 ) )
----
0

query I rowsort
SELECT 95 * + 65 + 57 * + 3 AS col1
----
6346

onlyif mysql # aggregate syntax: 
query I rowsort label-6728
SELECT ALL 33 - MAX( ALL - 19 ) AS col0
----
52

skipif mysql # not compatible
query I rowsort label-6728
SELECT ALL 33 - MAX ( ALL - 19 ) AS col0
----
52

onlyif mysql # DIV for integer division: 
query I rowsort label-6729
SELECT 50 + 60 DIV 40
----
51

skipif mysql # not compatible
query I rowsort label-6729
SELECT 50 + 60 / 40
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-6730
SELECT COUNT( ALL - 32 ) + - 47 * 37
----
-1738

skipif mysql # not compatible
query I rowsort label-6730
SELECT COUNT ( ALL - 32 ) + - 47 * 37
----
-1738

query I rowsort
SELECT DISTINCT 32 * 80 col2
----
2560

query I rowsort
SELECT ALL 49 * + 75
----
3675

onlyif mysql # aggregate syntax: 
query I rowsort label-6733
SELECT MIN( DISTINCT + 38 ) + - 92 AS col0
----
-54

skipif mysql # not compatible
query I rowsort label-6733
SELECT MIN ( DISTINCT + 38 ) + - 92 AS col0
----
-54

query I rowsort
SELECT ALL + 24 * + 33 AS col1
----
792

query I rowsort
SELECT + 59 + + 78 * - 79 AS col1
----
-6103

query I rowsort
SELECT DISTINCT - 99 * 39
----
-3861

query I rowsort
SELECT 78 * + CASE - 43 / - 98 WHEN 64 + 87 * + 29 THEN 45 ELSE - 75 * 55 END
----
-321750

query I rowsort
SELECT + 21 + - 46 AS col1
----
-25

query I rowsort
SELECT + 34 + 70 * 6
----
454

onlyif mysql # DIV for integer division: 
query I rowsort label-6740
SELECT 57 DIV 47
----
1

skipif mysql # not compatible
query I rowsort label-6740
SELECT 57 / 47
----
1

query I rowsort
SELECT + 17 * COALESCE ( 89, 60, NULLIF ( 72, 30 * + 85 ) ) AS col1
----
1513

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6743
SELECT - 55 DIV - 5 + 27 AS col2
----
38

skipif mysql # not compatible
query I rowsort label-6743
SELECT - 55 / - 5 + 27 AS col2
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-6744
SELECT - MIN( DISTINCT - 33 ) + NULLIF ( + ( 13 ), 31 * - 21 ) AS col2
----
46

skipif mysql # not compatible
query I rowsort label-6744
SELECT - MIN ( DISTINCT - 33 ) + NULLIF ( + ( 13 ), 31 * - 21 ) AS col2
----
46

query I rowsort
SELECT ALL + + 51 * COALESCE ( 50, 86 * + 14 - - 97 ) AS col0
----
2550

query I rowsort
SELECT ALL - + 88 * 8
----
-704

onlyif mysql # aggregate syntax: 
query I rowsort label-6747
SELECT - ( 99 ) * SUM( ALL + 84 - + ( 1 ) ) + 29 AS col2
----
-8188

skipif mysql # not compatible
query I rowsort label-6747
SELECT - ( 99 ) * SUM ( ALL + 84 - + ( 1 ) ) + 29 AS col2
----
-8188

query I rowsort
SELECT - 67 * + 65 + 17 AS col1
----
-4338

query I rowsort
SELECT 6 * - 87 AS col0
----
-522

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6750
SELECT + 80 DIV + COUNT( * ) + 23 AS col1
----
103

skipif mysql # not compatible
query I rowsort label-6750
SELECT + 80 / + COUNT ( * ) + 23 AS col1
----
103

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

skipif mysql # not compatible
query I rowsort label-6751
SELECT DISTINCT - MAX ( 92 )
----
-92

query I rowsort
SELECT ALL + 26 + + 62 - - 7 * + 69 * - 23
----
-11021

onlyif mysql # aggregate syntax: 
query I rowsort label-6753
SELECT 41 * + COUNT( 94 ) AS col1
----
41

skipif mysql # not compatible
query I rowsort label-6753
SELECT 41 * + COUNT ( 94 ) AS col1
----
41

query I rowsort
SELECT DISTINCT + 9 - 26 AS col1
----
-17

query I rowsort
SELECT ALL + 0 * - 41 * + 6
----
0

query I rowsort
SELECT ALL + 27 - + - 39
----
66

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

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

query I rowsort
SELECT DISTINCT + 9 - + 29 AS col0
----
-20

query I rowsort
SELECT 57 * 23
----
1311

onlyif mysql # aggregate syntax: 
query I rowsort label-6760
SELECT ALL MIN( DISTINCT 88 )
----
88

skipif mysql # not compatible
query I rowsort label-6760
SELECT ALL MIN ( DISTINCT 88 )
----
88

query I rowsort
SELECT ALL + 92 * - 66 * 53
----
-321816

query I rowsort
SELECT DISTINCT - 37 * - 16 col1
----
592

onlyif mysql # DIV for integer division: 
query I rowsort label-6763
SELECT DISTINCT 84 DIV 54 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-6763
SELECT DISTINCT 84 / 54 AS col0
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6764
SELECT DISTINCT 2 DIV - 46 * + COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-6764
SELECT DISTINCT 2 / - 46 * + COUNT ( * )
----
0

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6765
SELECT 16 * - + 33 + - 47 DIV NULLIF ( ( - CAST( 38 AS SIGNED ) ), - ( 6 ) * + 29 ) AS col0
----
-527

skipif mysql # not compatible
query I rowsort label-6765
SELECT 16 * - + 33 + - 47 / NULLIF ( ( - CAST ( 38 AS INTEGER ) ), - ( 6 ) * + 29 ) AS col0
----
-527

onlyif mysql # DIV for integer division: 
query I rowsort label-6766
SELECT + 65 DIV 87 * + 22
----
0

skipif mysql # not compatible
query I rowsort label-6766
SELECT + 65 / 87 * + 22
----
0

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

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

query I rowsort
SELECT 23 + 63 AS col0
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-6769
SELECT DISTINCT + ( + COUNT( * ) ) + - 56 * 62 AS col1
----
-3471

skipif mysql # not compatible
query I rowsort label-6769
SELECT DISTINCT + ( + COUNT ( * ) ) + - 56 * 62 AS col1
----
-3471

query I rowsort
SELECT ALL 71 + - + ( 1 )
----
70

query I rowsort
SELECT ALL 85 + - 76
----
9

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

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

query I rowsort
SELECT DISTINCT + + 82 + CASE - COALESCE ( - ( 69 ), 17 ) WHEN + 72 THEN 31 END / - 26 AS col0
----
NULL

query I rowsort
SELECT DISTINCT - 63 + + 81
----
18

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6775
SELECT + CASE + 25 WHEN 53 * 66 THEN MAX( 98 ) ELSE 89 END DIV 15
----
5

skipif mysql # not compatible
query I rowsort label-6775
SELECT + CASE + 25 WHEN 53 * 66 THEN MAX ( 98 ) ELSE 89 END / 15
----
5

query I rowsort
SELECT ALL - + 18 * + - 7 + + 42
----
168

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6778
SELECT ALL + COALESCE ( MAX( DISTINCT 44 ), COUNT( * ), - 47 * ( - 4 DIV 24 ) )
----
44

skipif mysql # not compatible
query I rowsort label-6778
SELECT ALL + COALESCE ( MAX ( DISTINCT 44 ), COUNT ( * ), - 47 * ( - 4 / 24 ) )
----
44

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6779
SELECT + 18 DIV - COUNT( + 50 ) AS col2
----
-18

skipif mysql # not compatible
query I rowsort label-6779
SELECT + 18 / - COUNT ( + 50 ) AS col2
----
-18

query I rowsort
SELECT ALL + 49 * + 74 * + 15 + - COALESCE ( - 94 + 49 * 39, 41 )
----
52573

query I rowsort
SELECT + 70 - + + 78 col2
----
-8

query I rowsort
SELECT + 69 - - 53 - + + ( ( 76 ) )
----
46

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6784
SELECT ALL 57 * - COUNT( * ) AS col1
----
-57

skipif mysql # not compatible
query I rowsort label-6784
SELECT ALL 57 * - COUNT ( * ) AS col1
----
-57

query I rowsort
SELECT + COALESCE ( + 72, 10 * - 16 + + 66, 31 ) AS col2
----
72

query I rowsort
SELECT ALL 28 * + - 20
----
-560

onlyif mysql # DIV for integer division: 
query I rowsort label-6787
SELECT DISTINCT + 32 * 83 - + 65 + + 26 DIV - 29
----
2591

skipif mysql # not compatible
query I rowsort label-6787
SELECT DISTINCT + 32 * 83 - + 65 + + 26 / - 29
----
2591

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6789
SELECT - COALESCE ( + 30, + + COUNT( * ) + 76 ) - 71 * - 44 AS col2
----
3094

skipif mysql # not compatible
query I rowsort label-6789
SELECT - COALESCE ( + 30, + + COUNT ( * ) + 76 ) - 71 * - 44 AS col2
----
3094

query I rowsort
SELECT ALL 21 * 39
----
819

onlyif mysql # aggregate syntax: 
query II rowsort label-6791
SELECT COUNT( * ), + MAX( DISTINCT - 57 ) AS col1
----
1
-57

skipif mysql # not compatible
query II rowsort label-6791
SELECT COUNT ( * ), + MAX ( DISTINCT - 57 ) AS col1
----
1
-57

onlyif mysql # aggregate syntax: 
query II rowsort label-6792
SELECT + 83 AS col0, CASE 83 WHEN 96 + 35 THEN NULL WHEN 73 THEN + NULLIF ( MAX( 66 ), + 80 + 73 / 20 ) + ( 0 ) * - COUNT( * ) ELSE NULL END * - COUNT( * ) + 75 AS col1
----
83
NULL

skipif mysql # not compatible
query II rowsort label-6792
SELECT + 83 AS col0, CASE 83 WHEN 96 + 35 THEN NULL WHEN 73 THEN + NULLIF ( MAX ( 66 ), + 80 + 73 / 20 ) + ( 0 ) * - COUNT ( * ) ELSE NULL END * - COUNT ( * ) + 75 AS col1
----
83
NULL

query I rowsort
SELECT ALL + COALESCE ( + - 20, + 27 )
----
-20

query I rowsort
SELECT ALL 85 * 26 * + + 25 AS col0
----
55250

onlyif mysql # aggregate syntax: 
query I rowsort label-6795
SELECT + COUNT( - 3 ) + + + 27
----
28

skipif mysql # not compatible
query I rowsort label-6795
SELECT + COUNT ( - 3 ) + + + 27
----
28

query I rowsort
SELECT ALL + 60 * - 27 AS col1
----
-1620

query I rowsort
SELECT 69 * + 52 + - - 14 + + 57
----
3659

onlyif mysql # aggregate syntax: 
query II rowsort label-6798
SELECT 93, ( ( MAX( DISTINCT + 56 ) ) ) AS col1
----
93
56

skipif mysql # not compatible
query II rowsort label-6798
SELECT 93, ( ( MAX ( DISTINCT + 56 ) ) ) AS col1
----
93
56

query I rowsort
SELECT ALL - - 84 * 88 AS col0
----
7392

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6800
SELECT - CAST( AVG ( + 44 ) AS SIGNED ) * - 97
----
4268

skipif mysql # not compatible
query I rowsort label-6800
SELECT - CAST ( AVG ( + 44 ) AS INTEGER ) * - 97
----
4268

query I rowsort
SELECT - + 81 + 88
----
7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6802
SELECT ALL - + 9 + + 89 DIV + COUNT( * ) AS col1
----
80

skipif mysql # not compatible
query I rowsort label-6802
SELECT ALL - + 9 + + 89 / + COUNT ( * ) AS col1
----
80

query I rowsort
SELECT ALL ( - 29 ) * - 0 col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6804
SELECT - - 78 + + NULLIF ( NULLIF ( + 41, - COUNT( * ) ), 20 + 81 ) * + 85
----
3563

skipif mysql # not compatible
query I rowsort label-6804
SELECT - - 78 + + NULLIF ( NULLIF ( + 41, - COUNT ( * ) ), 20 + 81 ) * + 85
----
3563

onlyif mysql # DIV for integer division: 
query I rowsort label-6805
SELECT DISTINCT - 56 + - 92 + - - 41 DIV + ( + 8 ) AS col1
----
-143

skipif mysql # not compatible
query I rowsort label-6805
SELECT DISTINCT - 56 + - 92 + - - 41 / + ( + 8 ) AS col1
----
-143

query I rowsort
SELECT ALL + + 80 + + - 24 * - - 5 * + 46 AS col1
----
-5440

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

skipif mysql # not compatible
query I rowsort label-6807
SELECT ALL - - COUNT ( * ) / 97 AS col1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6808
SELECT - CAST( NULL AS SIGNED ) + 99 + + + 98 + 72 * 78 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6808
SELECT - CAST ( NULL AS INTEGER ) + 99 + + + 98 + 72 * 78 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6809
SELECT - MAX( DISTINCT + - 19 ) - 57 + - 23 * CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6809
SELECT - MAX ( DISTINCT + - 19 ) - 57 + - 23 * CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT - 32 + 45 AS col1
----
13

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

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

query I rowsort
SELECT + + 4 + - 42 + + + 64 + - 33 * - 96
----
3194

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6813
SELECT ALL + + 11 / + CASE - - 15 WHEN + 32 THEN - 38 * COUNT( * ) WHEN + 55 + 98 THEN NULL END * - 50 + 77 - + 34 / CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6813
SELECT ALL + + 11 / + CASE - - 15 WHEN + 32 THEN - 38 * COUNT ( * ) WHEN + 55 + 98 THEN NULL END * - 50 + 77 - + 34 / CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6814
SELECT - + 30 / CAST( NULL AS SIGNED ) + 54 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6814
SELECT - + 30 / CAST ( NULL AS INTEGER ) + 54 AS col2
----
NULL

query I rowsort
SELECT ALL 40 * + 78 col1
----
3120

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6816
SELECT - 46 + - + SUM( - 0 ) * - CAST( + 47 AS SIGNED ) col1
----
-46

skipif mysql # not compatible
query I rowsort label-6816
SELECT - 46 + - + SUM ( - 0 ) * - CAST ( + 47 AS INTEGER ) col1
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-6817
SELECT ALL - COALESCE ( + + 82, 23 - + COUNT( * ) + 52, 27 ) * + 23
----
-1886

skipif mysql # not compatible
query I rowsort label-6817
SELECT ALL - COALESCE ( + + 82, 23 - + COUNT ( * ) + 52, 27 ) * + 23
----
-1886

onlyif mysql # aggregate syntax: 
query I rowsort label-6818
SELECT + 78 * + COUNT( * ) + + CASE 38 WHEN + 7 THEN NULL WHEN 76 THEN COALESCE ( 84, 96, SUM( ALL 95 ) ) WHEN 25 THEN NULL END + 75
----
NULL

skipif mysql # not compatible
query I rowsort label-6818
SELECT + 78 * + COUNT ( * ) + + CASE 38 WHEN + 7 THEN NULL WHEN 76 THEN COALESCE ( 84, 96, SUM ( ALL 95 ) ) WHEN 25 THEN NULL END + 75
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6819
SELECT DISTINCT + 88 DIV 86 - - - COUNT( * ) + 77 + - 58 * COUNT( * ) * 0
----
77

skipif mysql # not compatible
query I rowsort label-6819
SELECT DISTINCT + 88 / 86 - - - COUNT ( * ) + 77 + - 58 * COUNT ( * ) * 0
----
77

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6821
SELECT ( CAST( - 30 AS SIGNED ) ) AS col1
----
-30

skipif mysql # not compatible
query I rowsort label-6821
SELECT ( CAST ( - 30 AS INTEGER ) ) AS col1
----
-30

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6822
SELECT 27 * 56 + - 83 * + CAST( - 99 AS SIGNED )
----
9729

skipif mysql # not compatible
query I rowsort label-6822
SELECT 27 * 56 + - 83 * + CAST ( - 99 AS INTEGER )
----
9729

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

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

query I rowsort
SELECT + ( - 23 ) + - 13
----
-36

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6825
SELECT + 68 + COALESCE ( ( 68 ), COUNT( * ) * CAST( NULL AS SIGNED ), COUNT( - 45 ) + + 9, + CASE 15 WHEN - 94 + COUNT( * ) THEN 98 ELSE 38 * 10 END + ( - 15 ) DIV 89 )
----
136

skipif mysql # not compatible
query I rowsort label-6825
SELECT + 68 + COALESCE ( ( 68 ), COUNT ( * ) * CAST ( NULL AS INTEGER ), COUNT ( - 45 ) + + 9, + CASE 15 WHEN - 94 + COUNT ( * ) THEN 98 ELSE 38 * 10 END + ( - 15 ) / 89 )
----
136

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

skipif mysql # not compatible
query I rowsort label-6826
SELECT ALL 74 / - COUNT ( * ) col0
----
-74

onlyif mysql # aggregate syntax: 
query II rowsort label-6827
SELECT ALL 26 * + COUNT( * ), 29 * ( 53 ) col2
----
26
1537

skipif mysql # not compatible
query II rowsort label-6827
SELECT ALL 26 * + COUNT ( * ), 29 * ( 53 ) col2
----
26
1537

onlyif mysql # aggregate syntax: 
query I rowsort label-6828
SELECT + COUNT( * ) * + COALESCE ( + 15, - ( 24 ) ) AS col2
----
15

skipif mysql # not compatible
query I rowsort label-6828
SELECT + COUNT ( * ) * + COALESCE ( + 15, - ( 24 ) ) AS col2
----
15

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

skipif mysql # not compatible
query I rowsort label-6829
SELECT + COUNT ( - 76 ) / 93 + - - COUNT ( * )
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6830
SELECT CASE WHEN NULL IS NULL THEN NULL WHEN NOT COALESCE ( 19, COUNT( * ) + + 60 * ( - 26 ), COUNT( * ), - 46 ) NOT BETWEEN 71 + + 89 AND COUNT( * ) * CAST( - 99 AS SIGNED ) THEN MAX( DISTINCT 59 ) WHEN + 5 = NULLIF ( SUM( + 12 ), + 64 * 1 + 45 ) THEN 39 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6830
SELECT CASE WHEN NULL IS NULL THEN NULL WHEN NOT COALESCE ( 19, COUNT ( * ) + + 60 * ( - 26 ), COUNT ( * ), - 46 ) NOT BETWEEN 71 + + 89 AND COUNT ( * ) * CAST ( - 99 AS INTEGER ) THEN MAX ( DISTINCT 59 ) WHEN + 5 = NULLIF ( SUM ( + 12 ), + 64 * 1 + 45 ) THEN 39 END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6831
SELECT + 2 * - 53 - - SUM( DISTINCT - 9 ) + + NULLIF ( 39, 97 * + 46 ) AS col1
----
-76

skipif mysql # not compatible
query I rowsort label-6831
SELECT + 2 * - 53 - - SUM ( DISTINCT - 9 ) + + NULLIF ( 39, 97 * + 46 ) AS col1
----
-76

query I rowsort
SELECT CASE 65 WHEN - - ( ( 87 ) ) THEN 31 + 56 END AS col2
----
NULL

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

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

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

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

query I rowsort
SELECT - - 76 AS col2
----
76

query I rowsort
SELECT - + 93 * + 18 AS col0
----
-1674

onlyif mysql # aggregate syntax: 
query I rowsort label-6837
SELECT ALL + 35 * + COUNT( * ) + + 87 * - + 7 AS col0
----
-574

skipif mysql # not compatible
query I rowsort label-6837
SELECT ALL + 35 * + COUNT ( * ) + + 87 * - + 7 AS col0
----
-574

onlyif mysql # aggregate syntax: 
query I rowsort label-6838
SELECT DISTINCT + CASE + ( - AVG ( 54 ) ) WHEN - 57 THEN NULL WHEN 58 + - ( + AVG ( ALL + 41 ) ) THEN 82 WHEN - COUNT( * ) * 22 + - ( 91 ) THEN 58 END * - 22 + - 97 * - 49 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6838
SELECT DISTINCT + CASE + ( - AVG ( 54 ) ) WHEN - 57 THEN NULL WHEN 58 + - ( + AVG ( ALL + 41 ) ) THEN 82 WHEN - COUNT ( * ) * 22 + - ( 91 ) THEN 58 END * - 22 + - 97 * - 49 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6839
SELECT + + 49 - - 81 + + 5 * + COUNT( * ) * + 57 AS col0
----
415

skipif mysql # not compatible
query I rowsort label-6839
SELECT + + 49 - - 81 + + 5 * + COUNT ( * ) * + 57 AS col0
----
415

query I rowsort
SELECT + 36 + + 14
----
50

query I rowsort
SELECT DISTINCT 6 + 66 col0
----
72

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

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

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

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

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

query I rowsort
SELECT 81 + - 49 AS col0
----
32

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6846
SELECT DISTINCT - + 15 * + COUNT( DISTINCT + CAST( + ( + COALESCE ( - 33, - 60 ) ) AS SIGNED ) ) * 56
----
-840

skipif mysql # not compatible
query I rowsort label-6846
SELECT DISTINCT - + 15 * + COUNT ( DISTINCT + CAST ( + ( + COALESCE ( - 33, - 60 ) ) AS INTEGER ) ) * 56
----
-840

query I rowsort
SELECT + 30 * - 15 + - 17
----
-467

query I rowsort
SELECT 1 + + - 31 + + - 74
----
-104

onlyif mysql # aggregate syntax: 
query II rowsort label-6849
SELECT ALL + + COUNT( * ) - + - 34 col1, 10
----
35
10

skipif mysql # not compatible
query II rowsort label-6849
SELECT ALL + + COUNT ( * ) - + - 34 col1, 10
----
35
10

query I rowsort
SELECT - - NULLIF ( + 26, - - 18 / - + 89 - 38 ) AS col2
----
26

query I rowsort
SELECT DISTINCT 18 * - 10 + + 47 * 69 * + 83 AS col1
----
268989

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6852
SELECT 50 DIV + + 40 col2, 22 * - 71 * - COUNT( * ) col2
----
1
1562

skipif mysql # not compatible
query II rowsort label-6852
SELECT 50 / + + 40 col2, 22 * - 71 * - COUNT ( * ) col2
----
1
1562

onlyif mysql # aggregate syntax: 
query I rowsort label-6853
SELECT ALL MIN( - NULLIF ( - 92, 49 + + 4 ) )
----
92

skipif mysql # not compatible
query I rowsort label-6853
SELECT ALL MIN ( - NULLIF ( - 92, 49 + + 4 ) )
----
92

onlyif mysql # DIV for integer division: 
query I rowsort label-6854
SELECT DISTINCT + 50 DIV - + 87
----
0

skipif mysql # not compatible
query I rowsort label-6854
SELECT DISTINCT + 50 / - + 87
----
0

query I rowsort
SELECT 31 - - 31
----
62

onlyif mysql # aggregate syntax: 
query II rowsort label-6856
SELECT 67 * + ( - 13 ), COUNT( * ) AS col0
----
-871
1

skipif mysql # not compatible
query II rowsort label-6856
SELECT 67 * + ( - 13 ), COUNT ( * ) AS col0
----
-871
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6857
SELECT 70 * - - 90 / - + CASE - + COUNT( * ) WHEN + AVG ( ALL - 2 ) * 61 THEN 92 WHEN 74 * 81 THEN + COALESCE ( + 62, 26 / MAX( - 88 ) ) WHEN 43 * 17 - - COUNT( * ) * 83 THEN + ( + MIN( 13 ) ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-6857
SELECT 70 * - - 90 / - + CASE - + COUNT ( * ) WHEN + AVG ( ALL - 2 ) * 61 THEN 92 WHEN 74 * 81 THEN + COALESCE ( + 62, 26 / MAX ( - 88 ) ) WHEN 43 * 17 - - COUNT ( * ) * 83 THEN + ( + MIN ( 13 ) ) END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6858
SELECT ALL + 68 DIV + 86 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-6858
SELECT ALL + 68 / + 86 AS col2
----
0

query I rowsort
SELECT 79 * - 29
----
-2291

query II rowsort
SELECT ALL - 21 col1, 16
----
-21
16

onlyif mysql # DIV for integer division: 
query I rowsort label-6861
SELECT 66 - + + 90 DIV + 95 AS col1
----
66

skipif mysql # not compatible
query I rowsort label-6861
SELECT 66 - + + 90 / + 95 AS col1
----
66

query I rowsort
SELECT 69 * 78 * - 67 AS col2
----
-360594

query I rowsort
SELECT DISTINCT + 51 + - 66 AS col0
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-6864
SELECT ALL COUNT( * ) + + 2
----
3

skipif mysql # not compatible
query I rowsort label-6864
SELECT ALL COUNT ( * ) + + 2
----
3

query I rowsort
SELECT DISTINCT 85 + - 53
----
32

query I rowsort
SELECT DISTINCT - 78 * + 73 AS col0
----
-5694

query I rowsort
SELECT 95 * 31 AS col1
----
2945

query I rowsort
SELECT 66 + 23 AS col0
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-6869
SELECT ALL + COUNT( * ) + + 81 col0
----
82

skipif mysql # not compatible
query I rowsort label-6869
SELECT ALL + COUNT ( * ) + + 81 col0
----
82

query I rowsort
SELECT ( - - 3 ) - + COALESCE ( + NULLIF ( + 22, + 75 ), + 64 )
----
-19

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

query I rowsort
SELECT ( + 65 ) * + NULLIF ( - ( 67 ), + 0 * 77 ) * + 83 + 18 AS col1
----
-361447

query I rowsort
SELECT ALL 84 + - 62
----
22

onlyif mysql # DIV for integer division: 
query I rowsort label-6874
SELECT DISTINCT NULLIF ( - - 38, 23 ) DIV - - 11 + 15 AS col2
----
18

skipif mysql # not compatible
query I rowsort label-6874
SELECT DISTINCT NULLIF ( - - 38, 23 ) / - - 11 + 15 AS col2
----
18

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6875
SELECT DISTINCT - COUNT( * ) + - - 24 DIV + 82 * - - 68 + - - 46
----
45

skipif mysql # not compatible
query I rowsort label-6875
SELECT DISTINCT - COUNT ( * ) + - - 24 / + 82 * - - 68 + - - 46
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-6876
SELECT ALL MAX( ALL - 74 ) col2
----
-74

skipif mysql # not compatible
query I rowsort label-6876
SELECT ALL MAX ( ALL - 74 ) col2
----
-74

query I rowsort
SELECT + 46 * ( - COALESCE ( + COALESCE ( - 10, 63, + 59 + + 49 ), 28 ) ) + ( 14 ) col2
----
474

onlyif mysql # aggregate syntax: 
query I rowsort label-6878
SELECT ALL 95 + + MIN( ALL + - 35 ) * + - 20 + + MAX( ALL + 85 ) - 95
----
785

skipif mysql # not compatible
query I rowsort label-6878
SELECT ALL 95 + + MIN ( ALL + - 35 ) * + - 20 + + MAX ( ALL + 85 ) - 95
----
785

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6879
SELECT DISTINCT - COUNT( * ) DIV - - 89 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-6879
SELECT DISTINCT - COUNT ( * ) / - - 89 AS col0
----
0

query I rowsort
SELECT 16 + - + 59
----
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-6881
SELECT - 78 * + 51 * + + 84 + + COUNT( * ) * + COUNT( * )
----
-334151

skipif mysql # not compatible
query I rowsort label-6881
SELECT - 78 * + 51 * + + 84 + + COUNT ( * ) * + COUNT ( * )
----
-334151

query I rowsort
SELECT 47 * + ( + NULLIF ( + 23, - 41 ) ) col2
----
1081

query I rowsort
SELECT ALL + 7 * 99 + + + 90
----
783

query II rowsort
SELECT 49 * - + 12 + - 24, 22 AS col2
----
-612
22

onlyif mysql # aggregate syntax: 
query I rowsort label-6885
SELECT - 61 * + ( - - COALESCE ( - 56, + + 82 + 47 ) ) * + COUNT( * )
----
3416

skipif mysql # not compatible
query I rowsort label-6885
SELECT - 61 * + ( - - COALESCE ( - 56, + + 82 + 47 ) ) * + COUNT ( * )
----
3416

query I rowsort
SELECT - NULLIF ( + + COALESCE ( 70, - 16 * + 45 * 17 ), - 48 )
----
-70

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6888
SELECT + 28 * + + COUNT( * ) - + - 92 AS col1, + 5
----
120
5

skipif mysql # not compatible
query II rowsort label-6888
SELECT + 28 * + + COUNT ( * ) - + - 92 AS col1, + 5
----
120
5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6889
SELECT ALL 25 - + CAST( NULL AS SIGNED ) + - COUNT( * ) + - - 51 - + 20 + 63 * + MAX( ALL 98 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6889
SELECT ALL 25 - + CAST ( NULL AS INTEGER ) + - COUNT ( * ) + - - 51 - + 20 + 63 * + MAX ( ALL 98 ) AS col2
----
NULL

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

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

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

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

query I rowsort
SELECT 41 + - - 94 AS col2
----
135

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6893
SELECT 76 - + COUNT( * ) + - + 4 * CASE - COUNT( * ) WHEN 21 THEN 26 * + 83 WHEN NULLIF ( + 75, - 51 + MAX( 59 ) * 24 ) * 98 - - COUNT( * ) THEN NULL END / + 94 + SUM( ALL CAST( CAST( 75 AS SIGNED ) AS SIGNED ) + - 22 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6893
SELECT 76 - + COUNT ( * ) + - + 4 * CASE - COUNT ( * ) WHEN 21 THEN 26 * + 83 WHEN NULLIF ( + 75, - 51 + MAX ( 59 ) * 24 ) * 98 - - COUNT ( * ) THEN NULL END / + 94 + SUM ( ALL CAST ( CAST ( 75 AS INTEGER ) AS INTEGER ) + - 22 ) AS col0
----
NULL

query II rowsort
SELECT 11 col0, 73 + COALESCE ( - 39, + 71 )
----
11
34

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6895
SELECT CASE + 56 WHEN - + 23 * + - 19 - - COUNT( * ) + - 53 + 1 * CAST( 18 AS SIGNED ) THEN COALESCE ( NULLIF ( COUNT( + CAST( + 69 AS SIGNED ) ), ( + ( 7 ) ) * + AVG ( ( - 48 ) + + 77 ) ), 30, 96 ) * + ( - 68 ) - 35 * 98 END + + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-6895
SELECT CASE + 56 WHEN - + 23 * + - 19 - - COUNT ( * ) + - 53 + 1 * CAST ( 18 AS INTEGER ) THEN COALESCE ( NULLIF ( COUNT ( + CAST ( + 69 AS INTEGER ) ), ( + ( 7 ) ) * + AVG ( ( - 48 ) + + 77 ) ), 30, 96 ) * + ( - 68 ) - 35 * 98 END + + COUNT ( * )
----
NULL

query I rowsort
SELECT 86 + - 22
----
64

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6897
SELECT ALL + 64 * - - COALESCE ( - 22, - + CAST( NULL AS SIGNED ) * + 1 DIV + + 59, SUM( DISTINCT 56 ) ) col2
----
-1408

skipif mysql # not compatible
query I rowsort label-6897
SELECT ALL + 64 * - - COALESCE ( - 22, - + CAST ( NULL AS INTEGER ) * + 1 / + + 59, SUM ( DISTINCT 56 ) ) col2
----
-1408

onlyif mysql # aggregate syntax: 
query I rowsort label-6898
SELECT CASE + 4 WHEN 12 THEN 19 * - - 11 / COALESCE ( + 84, 80 + 81 ) ELSE 44 * + 99 END * CASE - 13 / 83 WHEN 3 * + 18 THEN - COUNT( * ) END + 85
----
NULL

skipif mysql # not compatible
query I rowsort label-6898
SELECT CASE + 4 WHEN 12 THEN 19 * - - 11 / COALESCE ( + 84, 80 + 81 ) ELSE 44 * + 99 END * CASE - 13 / 83 WHEN 3 * + 18 THEN - COUNT ( * ) END + 85
----
NULL

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6900
SELECT ALL 7 * - CASE 77 WHEN + - COUNT( * ) + + 2 * + 34 THEN NULL WHEN 97 THEN NULL ELSE - 39 END * - ( 38 * COALESCE ( 25, + SUM( DISTINCT 84 ) DIV 23 + 9 ) ) + 15
----
-259335

skipif mysql # not compatible
query I rowsort label-6900
SELECT ALL 7 * - CASE 77 WHEN + - COUNT ( * ) + + 2 * + 34 THEN NULL WHEN 97 THEN NULL ELSE - 39 END * - ( 38 * COALESCE ( 25, + SUM ( DISTINCT 84 ) / 23 + 9 ) ) + 15
----
-259335

query I rowsort
SELECT ALL 62 * - - 83 AS col1
----
5146

onlyif mysql # aggregate syntax: 
query I rowsort label-6902
SELECT 85 + 5 + - ( - COUNT( * ) ) - - + 0
----
91

skipif mysql # not compatible
query I rowsort label-6902
SELECT 85 + 5 + - ( - COUNT ( * ) ) - - + 0
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-6903
SELECT ALL - COUNT( * ) * - 49 * - 57 + + COUNT( 66 ) AS col1
----
-2792

skipif mysql # not compatible
query I rowsort label-6903
SELECT ALL - COUNT ( * ) * - 49 * - 57 + + COUNT ( 66 ) AS col1
----
-2792

query I rowsort
SELECT 1 * 6 AS col1
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-6905
SELECT COUNT( + 4 ) * - 85
----
-85

skipif mysql # not compatible
query I rowsort label-6905
SELECT COUNT ( + 4 ) * - 85
----
-85

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6909
SELECT DISTINCT - NULLIF ( - + 41, 96 + + 96 / + ( 89 ) * 46 ) * + COUNT( * ) AS col0
----
41

skipif mysql # not compatible
query I rowsort label-6909
SELECT DISTINCT - NULLIF ( - + 41, 96 + + 96 / + ( 89 ) * 46 ) * + COUNT ( * ) AS col0
----
41

query I rowsort
SELECT ALL - 75 + + ( + - 37 ) AS col1
----
-112

query II rowsort
SELECT - 10 * 49 AS col1, 33 AS col1
----
-490
33

query II rowsort
SELECT DISTINCT + - ( - 44 ) AS col0, 38 AS col1
----
44
38

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

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6914
SELECT NULLIF ( + - NULLIF ( - CAST( NULL AS DECIMAL ), + 63 ), + COUNT( * ) ) * - CASE 33 WHEN - 69 * + NULLIF ( 80, COUNT( ALL + 19 ) ) THEN + 33 WHEN 52 THEN - ( - 92 ) END - CASE ( + CASE COUNT( + 10 ) WHEN + ( - 4 ) THEN NULL WHEN + 28 * 9 THEN 83 + - 54 / 94 END ) + ( + 9 + 27 ) * + 23 WHEN ( 16 ) * 97 + 6 THEN 46 - 93 END * + CASE 52 + NULLIF ( 20, COUNT( * ) ) WHEN - MIN( ALL ( 81 ) ) THEN 90 + 93 END
----
NULL

skipif mysql # not compatible
query I rowsort label-6914
SELECT NULLIF ( + - NULLIF ( - CAST ( NULL AS REAL ), + 63 ), + COUNT ( * ) ) * - CASE 33 WHEN - 69 * + NULLIF ( 80, COUNT ( ALL + 19 ) ) THEN + 33 WHEN 52 THEN - ( - 92 ) END - CASE ( + CASE COUNT ( + 10 ) WHEN + ( - 4 ) THEN NULL WHEN + 28 * 9 THEN 83 + - 54 / 94 END ) + ( + 9 + 27 ) * + 23 WHEN ( 16 ) * 97 + 6 THEN 46 - 93 END * + CASE 52 + NULLIF ( 20, COUNT ( * ) ) WHEN - MIN ( ALL ( 81 ) ) THEN 90 + 93 END
----
NULL

query I rowsort
SELECT ALL + 77 * + 10 + + 61 AS col1
----
831

query I rowsort
SELECT - + 72 - 47 col0
----
-119

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6917
SELECT + 55 + - CAST( - 27 AS SIGNED ) * + 96 * - 38
----
-98441

skipif mysql # not compatible
query I rowsort label-6917
SELECT + 55 + - CAST ( - 27 AS INTEGER ) * + 96 * - 38
----
-98441

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

skipif mysql # not compatible
query I rowsort label-6918
SELECT ALL - MAX ( ALL - - 23 )
----
-23

query II rowsort
SELECT 5, - 99 AS col1
----
5
-99

onlyif mysql # DIV for integer division: 
query I rowsort label-6920
SELECT ALL 51 DIV + 56
----
0

skipif mysql # not compatible
query I rowsort label-6920
SELECT ALL 51 / + 56
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-6921
SELECT - 21 + + - 74 DIV - 52 + 57 * - 71 + 31 AS col1
----
-4036

skipif mysql # not compatible
query I rowsort label-6921
SELECT - 21 + + - 74 / - 52 + 57 * - 71 + 31 AS col1
----
-4036

onlyif mysql # DIV for integer division: 
query II rowsort label-6922
SELECT DISTINCT + 15 col0, + 88 DIV 9
----
15
9

skipif mysql # not compatible
query II rowsort label-6922
SELECT DISTINCT + 15 col0, + 88 / 9
----
15
9

query I rowsort
SELECT ALL 78 * 79
----
6162

onlyif mysql # aggregate syntax: 
query I rowsort label-6924
SELECT + - COUNT( * ) * 88 + ( 57 ) col0
----
-31

skipif mysql # not compatible
query I rowsort label-6924
SELECT + - COUNT ( * ) * 88 + ( 57 ) col0
----
-31

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6925
SELECT ALL + 34 DIV + ( 43 ) * - COUNT( * ) + - 55 - - 97 * 38
----
3631

skipif mysql # not compatible
query I rowsort label-6925
SELECT ALL + 34 / + ( 43 ) * - COUNT ( * ) + - 55 - - 97 * 38
----
3631

query I rowsort
SELECT - + COALESCE ( ( - + 19 ), + 55 ) * - 31 col1
----
-589

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6927
SELECT + + 65 * COUNT( * ) DIV + COUNT( ALL + + 6 ) + 45 + COUNT( + 7 )
----
111

skipif mysql # not compatible
query I rowsort label-6927
SELECT + + 65 * COUNT ( * ) / + COUNT ( ALL + + 6 ) + 45 + COUNT ( + 7 )
----
111

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6928
SELECT DISTINCT 36 * COALESCE ( COUNT( * ), + SUM( - - 93 ) * - - 85 + + 91 + - COUNT( * ) ) * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6928
SELECT DISTINCT 36 * COALESCE ( COUNT ( * ), + SUM ( - - 93 ) * - - 85 + + 91 + - COUNT ( * ) ) * + CAST ( NULL AS INTEGER )
----
NULL

query II rowsort
SELECT - + 56 AS col1, - 24
----
-56
-24

onlyif mysql # DIV for integer division: 
query I rowsort label-6930
SELECT + 87 DIV - 27 AS col2
----
-3

skipif mysql # not compatible
query I rowsort label-6930
SELECT + 87 / - 27 AS col2
----
-3

query I rowsort
SELECT + 93 + + 96 + - 66 + CASE - 90 WHEN - + ( - - 55 ) THEN + 68 END * - 72
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6932
SELECT ALL 57 * + CASE CASE + 25 WHEN - - 93 THEN - 14 END WHEN + 82 THEN - 51 ELSE 0 DIV - 82 + 95 END AS col2
----
5415

skipif mysql # not compatible
query I rowsort label-6932
SELECT ALL 57 * + CASE CASE + 25 WHEN - - 93 THEN - 14 END WHEN + 82 THEN - 51 ELSE 0 / - 82 + 95 END AS col2
----
5415

onlyif mysql # aggregate syntax: 
query I rowsort label-6933
SELECT + MIN( - 6 ) * - COUNT( + 9 ) AS col1
----
6

skipif mysql # not compatible
query I rowsort label-6933
SELECT + MIN ( - 6 ) * - COUNT ( + 9 ) AS col1
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-6934
SELECT + CASE - - NULLIF ( 99, - + 83 + - 93 * - ( - + ( + 34 ) ) + SUM( 17 + - 70 ) ) WHEN 16 THEN NULL WHEN 23 / 64 THEN + COUNT( * ) END * - 15 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6934
SELECT + CASE - - NULLIF ( 99, - + 83 + - 93 * - ( - + ( + 34 ) ) + SUM ( 17 + - 70 ) ) WHEN 16 THEN NULL WHEN 23 / 64 THEN + COUNT ( * ) END * - 15 col0
----
NULL

query I rowsort
SELECT DISTINCT - 50 + - NULLIF ( - 24, - - 22 * + - 25 )
----
-26

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6936
SELECT ALL 51 + - 55 AS col2, + CAST( - + 6 AS SIGNED ) - - - 55 col1
----
-4
-61

skipif mysql # not compatible
query II rowsort label-6936
SELECT ALL 51 + - 55 AS col2, + CAST ( - + 6 AS INTEGER ) - - - 55 col1
----
-4
-61

query I rowsort
SELECT DISTINCT 10 + - 27 + - 99 * - + ( - 48 )
----
-4769

query I rowsort
SELECT + ( - 25 ) * + COALESCE ( - + 52, - - 65 - + 58 + 19, - 72 ) col0
----
1300

query I rowsort
SELECT ALL + 33 + - 80 * 21 + 8
----
-1639

onlyif mysql # DIV for integer division: 
query I rowsort label-6940
SELECT ALL 71 DIV - 61 + 61 - - 43
----
103

skipif mysql # not compatible
query I rowsort label-6940
SELECT ALL 71 / - 61 + 61 - - 43
----
103

onlyif mysql # aggregate syntax: 
query I rowsort label-6941
SELECT 69 * - 74 - + COALESCE ( - - 21, - + 5 + + 43 ) + COUNT( * ) * 56 * 15
----
-4287

skipif mysql # not compatible
query I rowsort label-6941
SELECT 69 * - 74 - + COALESCE ( - - 21, - + 5 + + 43 ) + COUNT ( * ) * 56 * 15
----
-4287

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6943
SELECT + 90 * + COALESCE ( 9, - 46 + - + 66, + COUNT( * ) DIV + 54 + + 4, COUNT( * ) ) + + 87 * 64
----
6378

skipif mysql # not compatible
query I rowsort label-6943
SELECT + 90 * + COALESCE ( 9, - 46 + - + 66, + COUNT ( * ) / + 54 + + 4, COUNT ( * ) ) + + 87 * 64
----
6378

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6946
SELECT ALL 55 DIV 95 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-6946
SELECT ALL 55 / 95 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6947
SELECT ALL MAX( ALL + + 34 ) * + + 28
----
952

skipif mysql # not compatible
query I rowsort label-6947
SELECT ALL MAX ( ALL + + 34 ) * + + 28
----
952

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6948
SELECT 7 * - CAST( NULL AS DECIMAL ) - 57 + + AVG ( + 15 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6948
SELECT 7 * - CAST ( NULL AS REAL ) - 57 + + AVG ( + 15 ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6949
SELECT DISTINCT NULLIF ( - COALESCE ( + 54, - 55 * + 10, 73, + 6 ), + 41 + COUNT( * ) ) * - MAX( 77 ) AS col0
----
4158

skipif mysql # not compatible
query I rowsort label-6949
SELECT DISTINCT NULLIF ( - COALESCE ( + 54, - 55 * + 10, 73, + 6 ), + 41 + COUNT ( * ) ) * - MAX ( 77 ) AS col0
----
4158

query II rowsort
SELECT - - 45 * 84 AS col0, - 40
----
3780
-40

onlyif mysql # aggregate syntax: 
query II rowsort label-6951
SELECT DISTINCT + - MIN( - 64 ) AS col1, 96 AS col2
----
64
96

skipif mysql # not compatible
query II rowsort label-6951
SELECT DISTINCT + - MIN ( - 64 ) AS col1, 96 AS col2
----
64
96

onlyif mysql # aggregate syntax: 
query I rowsort label-6952
SELECT ALL + SUM( DISTINCT + + 28 ) col0
----
28

skipif mysql # not compatible
query I rowsort label-6952
SELECT ALL + SUM ( DISTINCT + + 28 ) col0
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-6953
SELECT + + 76 + - 72 + + - COUNT( * ) * 82 + - 78 + + + COUNT( * ) - + COUNT( * ) AS col2
----
-156

skipif mysql # not compatible
query I rowsort label-6953
SELECT + + 76 + - 72 + + - COUNT ( * ) * 82 + - 78 + + + COUNT ( * ) - + COUNT ( * ) AS col2
----
-156

query II rowsort
SELECT + ( 72 ) AS col1, + 19 - 89 - + + 31 + - 92 col2
----
72
-193

onlyif mysql # aggregate syntax: 
query I rowsort label-6955
SELECT - 30 - COUNT( - - 72 ) * + COUNT( * ) AS col0
----
-31

skipif mysql # not compatible
query I rowsort label-6955
SELECT - 30 - COUNT ( - - 72 ) * + COUNT ( * ) AS col0
----
-31

onlyif mysql # DIV for integer division: 
query I rowsort label-6956
SELECT ALL - 90 DIV + 81 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-6956
SELECT ALL - 90 / + 81 AS col0
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-6957
SELECT ALL + + MAX( ALL + 45 ) AS col1, 60
----
45
60

skipif mysql # not compatible
query II rowsort label-6957
SELECT ALL + + MAX ( ALL + 45 ) AS col1, 60
----
45
60

query II rowsort
SELECT ALL + - 95 * 34 + - 76, 76 * + 40 col0
----
-3306
3040

query I rowsort
SELECT - 10 + + + ( + - ( 79 ) ) * + 24 AS col0
----
-1906

query I rowsort
SELECT - - 44 * - - 1 + - - 80 + - 56
----
68

query II rowsort
SELECT - ( + + 69 ) AS col1, 38 * - + 94 + + + ( + - 16 )
----
-69
-3588

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

skipif mysql # not compatible
query I rowsort label-6962
SELECT - - MIN ( DISTINCT - - 78 )
----
78

query II rowsort
SELECT - + ( - 24 ) col0, 2
----
24
2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6964
SELECT - 59 + + - CAST( - - ( - 53 ) AS SIGNED ) AS col2
----
-6

skipif mysql # not compatible
query I rowsort label-6964
SELECT - 59 + + - CAST ( - - ( - 53 ) AS INTEGER ) AS col2
----
-6

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

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

query I rowsort
SELECT DISTINCT - 64 + ( - + 37 ) AS col1
----
-101

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6967
SELECT - CASE - CAST( + - CAST( NULL AS SIGNED ) AS SIGNED ) WHEN + - 7 THEN NULL ELSE - 86 END + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6967
SELECT - CASE - CAST ( + - CAST ( NULL AS INTEGER ) AS INTEGER ) WHEN + - 7 THEN NULL ELSE - 86 END + + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT - 16 * - - 79 * 98
----
-123872

query I rowsort
SELECT - 80 * + 60 AS col2
----
-4800

query I rowsort
SELECT - 97 + 49
----
-48

query I rowsort
SELECT + 3 - - 18 col0
----
21

query I rowsort
SELECT ALL 9 + 10
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-6973
SELECT - COUNT( ALL - 67 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-6973
SELECT - COUNT ( ALL - 67 ) AS col2
----
-1

query I rowsort
SELECT + 79 + + 70 AS col2
----
149

query II rowsort
SELECT 49 col0, + 54 * 38 * - 17
----
49
-34884

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

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

query I rowsort
SELECT ALL + 47 * 41
----
1927

query I rowsort
SELECT + 44 + + + 78 * - 9 * - - 1
----
-658

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6980
SELECT + 98, CAST( - 53 AS SIGNED ) AS col0
----
98
-53

skipif mysql # not compatible
query II rowsort label-6980
SELECT + 98, CAST ( - 53 AS INTEGER ) AS col0
----
98
-53

query I rowsort
SELECT - - 60 * + - 25 + 58 * + 27 * - 80 AS col0
----
-126780

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6982
SELECT COUNT( * ) DIV - + 99 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-6982
SELECT COUNT ( * ) / - + 99 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6983
SELECT ALL - NULLIF ( COUNT( * ), 26 )
----
-1

skipif mysql # not compatible
query I rowsort label-6983
SELECT ALL - NULLIF ( COUNT ( * ), 26 )
----
-1

onlyif mysql # DIV for integer division: 
query II rowsort label-6984
SELECT ALL - 22 AS col2, 25 + 59 DIV + ( - - 2 ) + - 56 AS col0
----
-22
-2

skipif mysql # not compatible
query II rowsort label-6984
SELECT ALL - 22 AS col2, 25 + 59 / + ( - - 2 ) + - 56 AS col0
----
-22
-2

query I rowsort
SELECT ALL 55 * + 27 AS col2
----
1485

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query III rowsort label-6987
SELECT DISTINCT 73 + - - MAX( 36 ) AS col0, - 4 AS col1, + - CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) + - - 53 AS col2
----
109
-4
NULL

skipif mysql # not compatible
query III rowsort label-6987
SELECT DISTINCT 73 + - - MAX ( 36 ) AS col0, - 4 AS col1, + - CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) + - - 53 AS col2
----
109
-4
NULL

query II rowsort
SELECT 1 * 1 + - 56 col2, + 32
----
-55
32

onlyif mysql # aggregate syntax: 
query I rowsort label-6989
SELECT - 55 * - + 36 * + - COUNT( * ) - + 75 + - 11 + 69 + + 32 - - COUNT( * ) AS col0
----
-1964

skipif mysql # not compatible
query I rowsort label-6989
SELECT - 55 * - + 36 * + - COUNT ( * ) - + 75 + - 11 + 69 + + 32 - - COUNT ( * ) AS col0
----
-1964

query I rowsort
SELECT - 74 - + 80 * 80
----
-6474

query I rowsort
SELECT + 34 * + + 76 + + 59 + 98 * + 10 AS col0
----
3623

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6992
SELECT - SUM( ALL - + NULLIF ( - 98, 7 ) ) * MIN( ALL 92 ) * + AVG ( DISTINCT + - ( CAST( NULL AS SIGNED ) ) ) + - 38 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6992
SELECT - SUM ( ALL - + NULLIF ( - 98, 7 ) ) * MIN ( ALL 92 ) * + AVG ( DISTINCT + - ( CAST ( NULL AS INTEGER ) ) ) + - 38 AS col0
----
NULL

query I rowsort
SELECT ALL - 51 + - 32 * 89 * + + 11 AS col1
----
-31379

onlyif mysql # aggregate syntax: 
query I rowsort label-6994
SELECT ALL + - MIN( 25 ) + - 15 * + + 25 AS col2
----
-400

skipif mysql # not compatible
query I rowsort label-6994
SELECT ALL + - MIN ( 25 ) + - 15 * + + 25 AS col2
----
-400

onlyif mysql # aggregate syntax: 
query I rowsort label-6995
SELECT DISTINCT 5 + - COUNT( * )
----
4

skipif mysql # not compatible
query I rowsort label-6995
SELECT DISTINCT 5 + - COUNT ( * )
----
4

onlyif mysql # DIV for integer division: 
query II rowsort label-6996
SELECT 79 - - - 12, - 33 DIV 8 * + + 53 * + - 27 AS col2
----
67
5724

skipif mysql # not compatible
query II rowsort label-6996
SELECT 79 - - - 12, - 33 / 8 * + + 53 * + - 27 AS col2
----
67
5724

query I rowsort
SELECT ALL + 5 + - ( COALESCE ( - + 11, - 0 ) ) + - - 77 AS col0
----
93

query II rowsort
SELECT 66 * - 48, + 44 AS col2
----
-3168
44

query II rowsort
SELECT ( + 14 ) + + + 69 + 16 AS col0, 43 * - - 71 AS col0
----
99
3053

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7000
SELECT 11 + + 58 + - CAST( - + 29 AS SIGNED ) AS col1
----
98

skipif mysql # not compatible
query I rowsort label-7000
SELECT 11 + + 58 + - CAST ( - + 29 AS INTEGER ) AS col1
----
98

query I rowsort
SELECT 14 * + 65 * - 97 AS col1
----
-88270

query I rowsort
SELECT 4 * 71 col2
----
284

query II rowsort
SELECT 94 * + - 94, + 74 AS col1
----
-8836
74

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7004
SELECT 43 * + 16 + 26 + + - ( + 58 ) * CAST( + COUNT( * ) AS SIGNED ) AS col1, 71 * - - 91 * + MIN( ALL + 46 ) AS col0
----
656
297206

skipif mysql # not compatible
query II rowsort label-7004
SELECT 43 * + 16 + 26 + + - ( + 58 ) * CAST ( + COUNT ( * ) AS INTEGER ) AS col1, 71 * - - 91 * + MIN ( ALL + 46 ) AS col0
----
656
297206

onlyif mysql # DIV for integer division: 
query I rowsort label-7005
SELECT 36 DIV - 89 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-7005
SELECT 36 / - 89 AS col1
----
0

query I rowsort
SELECT DISTINCT - 71 * + + 87 AS col2
----
-6177

query I rowsort
SELECT ALL 73 * - + 57 AS col2
----
-4161

onlyif mysql # aggregate syntax: 
query I rowsort label-7008
SELECT MIN( ALL - 6 ) * - 50 + + 78 + - 62 AS col0
----
316

skipif mysql # not compatible
query I rowsort label-7008
SELECT MIN ( ALL - 6 ) * - 50 + + 78 + - 62 AS col0
----
316

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7010
SELECT ALL - + MAX( DISTINCT + 49 ) * 13 * 21 AS col2
----
-13377

skipif mysql # not compatible
query I rowsort label-7010
SELECT ALL - + MAX ( DISTINCT + 49 ) * 13 * 21 AS col2
----
-13377

onlyif mysql # aggregate syntax: 
query I rowsort label-7011
SELECT DISTINCT - 71 + - ( - 34 ) - + SUM( + 33 ) col1
----
-70

skipif mysql # not compatible
query I rowsort label-7011
SELECT DISTINCT - 71 + - ( - 34 ) - + SUM ( + 33 ) col1
----
-70

query I rowsort
SELECT ALL + 49 + + + 8
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-7013
SELECT - COUNT( * ) * + 38 + NULLIF ( - + 43, + 33 * + + COUNT( * ) + + + 21 * 5 * + 26 / - 97 ) AS col2
----
-81

skipif mysql # not compatible
query I rowsort label-7013
SELECT - COUNT ( * ) * + 38 + NULLIF ( - + 43, + 33 * + + COUNT ( * ) + + + 21 * 5 * + 26 / - 97 ) AS col2
----
-81

query I rowsort
SELECT ALL ( + 24 ) + + - 62
----
-38

query I rowsort
SELECT - 45 + 53 AS col2
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-7016
SELECT ALL - COUNT( - 37 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-7016
SELECT ALL - COUNT ( - 37 ) AS col1
----
-1

query I rowsort
SELECT - NULLIF ( + 59, 36 + 45 ) * - 83 * + + 91 + 7
----
445634

onlyif mysql # aggregate syntax: 
query I rowsort label-7018
SELECT + ( + COUNT( * ) ) - + 27 AS col2
----
-26

skipif mysql # not compatible
query I rowsort label-7018
SELECT + ( + COUNT ( * ) ) - + 27 AS col2
----
-26

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7020
SELECT ALL - 22 + NULLIF ( + 89, + COUNT( * ) - + COUNT( * ) * + 24 * + - CAST( - 21 AS DECIMAL ) + 4 )
----
67

skipif mysql # not compatible
query I rowsort label-7020
SELECT ALL - 22 + NULLIF ( + 89, + COUNT ( * ) - + COUNT ( * ) * + 24 * + - CAST ( - 21 AS REAL ) + 4 )
----
67

query I rowsort
SELECT + 94 + ( 61 )
----
155

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7023
SELECT - COUNT( * ) DIV 69 * + ( + - 13 ) AS col2, - 61 AS col0
----
0
-61

skipif mysql # not compatible
query II rowsort label-7023
SELECT - COUNT ( * ) / 69 * + ( + - 13 ) AS col2, - 61 AS col0
----
0
-61

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7024
SELECT DISTINCT 73 + + 38 / + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-7024
SELECT DISTINCT 73 + + 38 / + CAST ( NULL AS REAL )
----
NULL

query I rowsort
SELECT ALL 40 + - 23 * + 79
----
-1777

onlyif mysql # DIV for integer division: 
query II rowsort label-7026
SELECT ALL 99 + 42 - - - 30 + + 87 - - - 76 AS col1, 56 DIV + - 6 AS col2
----
122
-9

skipif mysql # not compatible
query II rowsort label-7026
SELECT ALL 99 + 42 - - - 30 + + 87 - - - 76 AS col1, 56 / + - 6 AS col2
----
122
-9

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

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

query I rowsort
SELECT 75 + - 61 - + 98 col2
----
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-7029
SELECT CASE - + AVG ( DISTINCT + 71 ) WHEN - COUNT( * ) - 32 THEN - 20 * - 94 * - + ( - ( + 15 ) ) ELSE NULL END / + ( + 79 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7029
SELECT CASE - + AVG ( DISTINCT + 71 ) WHEN - COUNT ( * ) - 32 THEN - 20 * - 94 * - + ( - ( + 15 ) ) ELSE NULL END / + ( + 79 ) AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7030
SELECT CASE - 49 WHEN + 17 THEN - 43 WHEN - CAST( NULL AS SIGNED ) THEN NULL ELSE NULL END + - 98 - - CAST( NULL AS SIGNED ) * - 11
----
NULL

skipif mysql # not compatible
query I rowsort label-7030
SELECT CASE - 49 WHEN + 17 THEN - 43 WHEN - CAST ( NULL AS INTEGER ) THEN NULL ELSE NULL END + - 98 - - CAST ( NULL AS INTEGER ) * - 11
----
NULL

query III rowsort
SELECT 17 AS col0, + 78 * 70, - - 71 + + 13 + 67 AS col0
----
17
5460
151

query I rowsort
SELECT - COALESCE ( 10, - 69 ) col2
----
-10

query I rowsort
SELECT 1 + 30 * + 92 * + 53 * + + 83 AS col1
----
12141241

query II rowsort
SELECT 98 AS col0, ( + 28 )
----
98
28

query I rowsort
SELECT - 44 + 76 AS col1
----
32

query I rowsort
SELECT - 3 * + - 71
----
213

query I rowsort
SELECT ALL - 84 * + 81 * - 70
----
476280

query I rowsort
SELECT - 20 + - 35
----
-55

query I rowsort
SELECT DISTINCT - 2 * - 82
----
164

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7041
SELECT + 84 + 23 + COALESCE ( 39, - 37 ) DIV + 80 * - - 57
----
107

skipif mysql # not compatible
query I rowsort label-7041
SELECT + 84 + 23 + COALESCE ( 39, - 37 ) / + 80 * - - 57
----
107

query II rowsort
SELECT - 96, 77 AS col0
----
-96
77

query I rowsort
SELECT DISTINCT + 94 * + 10 + + 22 + + 10 AS col1
----
972

query II rowsort
SELECT + 40 AS col1, - 54
----
40
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-7045
SELECT - CASE - COALESCE ( - 80, 31 + - 15 ) WHEN + 34 * - COUNT( * ) THEN - 36 WHEN 91 * - 4 + 31 / - 53 THEN NULL ELSE - ( - 8 ) END col1
----
-8

skipif mysql # not compatible
query I rowsort label-7045
SELECT - CASE - COALESCE ( - 80, 31 + - 15 ) WHEN + 34 * - COUNT ( * ) THEN - 36 WHEN 91 * - 4 + 31 / - 53 THEN NULL ELSE - ( - 8 ) END col1
----
-8

onlyif mysql # DIV for integer division: 
query I rowsort label-7046
SELECT DISTINCT + + 47 DIV + + 28 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-7046
SELECT DISTINCT + + 47 / + + 28 AS col0
----
1

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7048
SELECT CAST( COUNT( * ) AS SIGNED ) * ( COUNT( * ) ) * 95 * + 37 + 33 + 49 * 33 DIV + CAST( 67 AS SIGNED ) + + 78 AS col2
----
3650

skipif mysql # not compatible
query I rowsort label-7048
SELECT CAST ( COUNT ( * ) AS INTEGER ) * ( COUNT ( * ) ) * 95 * + 37 + 33 + 49 * 33 / + CAST ( 67 AS INTEGER ) + + 78 AS col2
----
3650

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7050
SELECT + 80 / CASE - + 83 WHEN + + 15 THEN - - 82 * - ( - 26 ) * + 18 - - - 9 - + 27 + + 45 * NULLIF ( - COUNT( * ) + + 32, COUNT( * ) * + 97 ) WHEN + 75 * + COUNT( * ) THEN NULL WHEN COUNT( * ) THEN NULL END * AVG ( ALL 5 ) + - 25 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7050
SELECT + 80 / CASE - + 83 WHEN + + 15 THEN - - 82 * - ( - 26 ) * + 18 - - - 9 - + 27 + + 45 * NULLIF ( - COUNT ( * ) + + 32, COUNT ( * ) * + 97 ) WHEN + 75 * + COUNT ( * ) THEN NULL WHEN COUNT ( * ) THEN NULL END * AVG ( ALL 5 ) + - 25 AS col1
----
NULL

query II rowsort
SELECT + 74, 12 col1
----
74
12

query I rowsort
SELECT + - 32 + - 91
----
-123

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7053
SELECT - 79 * - 29 - - - 23 + 16 + - 57 + + - CAST( NULL AS SIGNED ) / + - CAST( + 67 AS SIGNED ) + + 61 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7053
SELECT - 79 * - 29 - - - 23 + 16 + - 57 + + - CAST ( NULL AS INTEGER ) / + - CAST ( + 67 AS INTEGER ) + + 61 AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7054
SELECT + 75 * + 67 + - COUNT( * ) * + - 4 DIV + + 72
----
5025

skipif mysql # not compatible
query I rowsort label-7054
SELECT + 75 * + 67 + - COUNT ( * ) * + - 4 / + + 72
----
5025

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

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

query I rowsort
SELECT + 87 * + 63 AS col2
----
5481

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

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

query I rowsort
SELECT - 57 - + 77
----
-134

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

skipif mysql # not compatible
query I rowsort label-7059
SELECT + ( - SUM ( 45 ) )
----
-45

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

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7063
SELECT DISTINCT CAST( NULL AS SIGNED ) AS col0, COALESCE ( + - 25, + 25, - SUM( ( + 7 ) ) * + 59 ) AS col1
----
NULL
-25

skipif mysql # not compatible
query II rowsort label-7063
SELECT DISTINCT CAST ( NULL AS INTEGER ) AS col0, COALESCE ( + - 25, + 25, - SUM ( ( + 7 ) ) * + 59 ) AS col1
----
NULL
-25

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

skipif mysql # not compatible
query I rowsort label-7064
SELECT - NULLIF ( ( COUNT ( * ) ), + 27 * ( 53 ) )
----
-1

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7067
SELECT + 21 * - COALESCE ( - 88, - 81, + 4 DIV + - 36 * COALESCE ( 63, - + 81 ) + - 35 + - 56 + 24 )
----
1848

skipif mysql # not compatible
query I rowsort label-7067
SELECT + 21 * - COALESCE ( - 88, - 81, + 4 / + - 36 * COALESCE ( 63, - + 81 ) + - 35 + - 56 + 24 )
----
1848

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-7069
SELECT - COUNT( * ) col1, 21 * + - 76 * + 66 AS col0
----
-1
-105336

skipif mysql # not compatible
query II rowsort label-7069
SELECT - COUNT ( * ) col1, 21 * + - 76 * + 66 AS col0
----
-1
-105336

onlyif mysql # aggregate syntax: 
query II rowsort label-7070
SELECT ALL 30 AS col2, 79 * + + COUNT( * ) * - + 74
----
30
-5846

skipif mysql # not compatible
query II rowsort label-7070
SELECT ALL 30 AS col2, 79 * + + COUNT ( * ) * - + 74
----
30
-5846

query I rowsort
SELECT - NULLIF ( + + 72, - - 36 ) AS col1
----
-72

query I rowsort
SELECT + 61 * - 61 AS col1
----
-3721

onlyif mysql # aggregate syntax: 
query II rowsort label-7073
SELECT ALL COUNT( - 76 ) + - + 82 * + COUNT( * ) AS col0, 21
----
-81
21

skipif mysql # not compatible
query II rowsort label-7073
SELECT ALL COUNT ( - 76 ) + - + 82 * + COUNT ( * ) AS col0, 21
----
-81
21

onlyif mysql # DIV for integer division: 
query I rowsort label-7074
SELECT + 37 DIV - 65 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-7074
SELECT + 37 / - 65 AS col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7075
SELECT ALL ( + - COALESCE ( - CAST( - 88 AS SIGNED ), MAX( 22 ) DIV + 39 * + 63 * + 23 + + NULLIF ( + 47, 53 * 48 + ( CAST( NULL AS SIGNED ) - 57 ) ) - 70 * - 29 ) ) + ( + 65 )
----
-23

skipif mysql # not compatible
query I rowsort label-7075
SELECT ALL ( + - COALESCE ( - CAST ( - 88 AS INTEGER ), MAX ( 22 ) / + 39 * + 63 * + 23 + + NULLIF ( + 47, 53 * 48 + ( CAST ( NULL AS INTEGER ) - 57 ) ) - 70 * - 29 ) ) + ( + 65 )
----
-23

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7076
SELECT DISTINCT COUNT( * ) + - - NULLIF ( - 63, - 64 * + 15 + + - 82 ) + - COUNT( * ) DIV + + 56 * 68 * - 27
----
-62

skipif mysql # not compatible
query I rowsort label-7076
SELECT DISTINCT COUNT ( * ) + - - NULLIF ( - 63, - 64 * + 15 + + - 82 ) + - COUNT ( * ) / + + 56 * 68 * - 27
----
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-7077
SELECT DISTINCT + + MIN( ALL - - ( - + 80 ) ) * + 42
----
-3360

skipif mysql # not compatible
query I rowsort label-7077
SELECT DISTINCT + + MIN ( ALL - - ( - + 80 ) ) * + 42
----
-3360

query I rowsort
SELECT ALL - 71 + + 85 AS col2
----
14

onlyif mysql # aggregate syntax: 
query II rowsort label-7079
SELECT - SUM( ALL + 2 ) AS col1, - NULLIF ( 50, AVG ( DISTINCT - 73 ) + - + COUNT( * ) )
----
-2
-50

skipif mysql # not compatible
query II rowsort label-7079
SELECT - SUM ( ALL + 2 ) AS col1, - NULLIF ( 50, AVG ( DISTINCT - 73 ) + - + COUNT ( * ) )
----
-2
-50

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

skipif mysql # not compatible
query I rowsort label-7080
SELECT + + 91 - - - CAST ( NULL AS INTEGER ) + 34 col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7081
SELECT - NULLIF ( - + 82, SUM( ALL - 54 ) )
----
82

skipif mysql # not compatible
query I rowsort label-7081
SELECT - NULLIF ( - + 82, SUM ( ALL - 54 ) )
----
82

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7083
SELECT ALL - COUNT( * ) + CAST( + 16 AS SIGNED ) * COUNT( * ) AS col2, 49 col1
----
15
49

skipif mysql # not compatible
query II rowsort label-7083
SELECT ALL - COUNT ( * ) + CAST ( + 16 AS INTEGER ) * COUNT ( * ) AS col2, 49 col1
----
15
49

query I rowsort
SELECT - 36 * - 61 + + 8 * + - 31
----
1948

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

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

query II rowsort
SELECT ALL + + 57, - 28 * - 70 AS col0
----
57
1960

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query II rowsort label-7087
SELECT + 49 DIV COUNT( * ) + - - 88 + - + 42 AS col1, CASE SUM( DISTINCT - - ( - CAST( NULL AS DECIMAL ) ) ) WHEN + 92 + - 59 * + 28 THEN NULL ELSE + 57 END * 8
----
95
456

skipif mysql # not compatible
query II rowsort label-7087
SELECT + 49 / COUNT ( * ) + - - 88 + - + 42 AS col1, CASE SUM ( DISTINCT - - ( - CAST ( NULL AS REAL ) ) ) WHEN + 92 + - 59 * + 28 THEN NULL ELSE + 57 END * 8
----
95
456

onlyif mysql # aggregate syntax: 
query II rowsort label-7088
SELECT + 8 AS col1, 53 + - COUNT( * ) - + 32 * 76 * + 61
----
8
-148300

skipif mysql # not compatible
query II rowsort label-7088
SELECT + 8 AS col1, 53 + - COUNT ( * ) - + 32 * 76 * + 61
----
8
-148300

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7089
SELECT - 40 + 68 * + 5 - + ( + COUNT( DISTINCT ( 88 ) ) ) DIV - 84
----
300

skipif mysql # not compatible
query I rowsort label-7089
SELECT - 40 + 68 * + 5 - + ( + COUNT ( DISTINCT ( 88 ) ) ) / - 84
----
300

query I rowsort
SELECT - 10 * + - 25 + + - NULLIF ( + ( + 80 ), - - COALESCE ( 39, - 17 ) + + ( + - 7 ) ) * 6
----
-230

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7091
SELECT ALL + 3 DIV + + CAST( - 69 AS SIGNED ) + + 40 + 82 - - + COUNT( * ) * - + 29
----
93

skipif mysql # not compatible
query I rowsort label-7091
SELECT ALL + 3 / + + CAST ( - 69 AS INTEGER ) + + 40 + 82 - - + COUNT ( * ) * - + 29
----
93

query I rowsort
SELECT - 49 * - 78 AS col2
----
3822

query II rowsort
SELECT ALL + - 24 AS col2, 66
----
-24
66

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7094
SELECT ALL + + 69 DIV + ( 27 ) + - MIN( 24 )
----
-22

skipif mysql # not compatible
query I rowsort label-7094
SELECT ALL + + 69 / + ( 27 ) + - MIN ( 24 )
----
-22

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7095
SELECT + 61 * 45 + ( + 32 ) + 34 DIV + + 78 * - 58 * - COUNT( * )
----
2777

skipif mysql # not compatible
query I rowsort label-7095
SELECT + 61 * 45 + ( + 32 ) + 34 / + + 78 * - 58 * - COUNT ( * )
----
2777

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7096
SELECT ( + 47 ) DIV 34 + COUNT( * )
----
2

skipif mysql # not compatible
query I rowsort label-7096
SELECT ( + 47 ) / 34 + COUNT ( * )
----
2

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

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-7098
SELECT - 13 DIV - 63 AS col1, + CAST( - COALESCE ( CAST( NULL AS SIGNED ), + 93, + AVG ( DISTINCT - - 91 ) * + 4 + - + 19 ) AS SIGNED )
----
0
-93

skipif mysql # not compatible
query II rowsort label-7098
SELECT - 13 / - 63 AS col1, + CAST ( - COALESCE ( CAST ( NULL AS INTEGER ), + 93, + AVG ( DISTINCT - - 91 ) * + 4 + - + 19 ) AS INTEGER )
----
0
-93

query I rowsort
SELECT - 52 * 82 AS col1
----
-4264

query I rowsort
SELECT - 34 + + 29 - NULLIF ( + 80, - 27 ) AS col1
----
-85

onlyif mysql # aggregate syntax: 
query II rowsort label-7101
SELECT 92 * 33 * 11 + ( - - 62 ), COUNT( * ) * COUNT( * ) AS col0
----
33458
1

skipif mysql # not compatible
query II rowsort label-7101
SELECT 92 * 33 * 11 + ( - - 62 ), COUNT ( * ) * COUNT ( * ) AS col0
----
33458
1

onlyif mysql # DIV for integer division: 
query I rowsort label-7102
SELECT - 51 DIV + 84 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-7102
SELECT - 51 / + 84 AS col0
----
0

query II rowsort
SELECT DISTINCT - 74 * + + 36 AS col0, - 66 * 72
----
-2664
-4752

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7104
SELECT COUNT( * ) * - + 99 DIV - ( - 59 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-7104
SELECT COUNT ( * ) * - + 99 / - ( - 59 ) AS col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7105
SELECT ( - 75 ) * + 52 - - ( - - COUNT( * ) ) * 72
----
-3828

skipif mysql # not compatible
query I rowsort label-7105
SELECT ( - 75 ) * + 52 - - ( - - COUNT ( * ) ) * 72
----
-3828

query II rowsort
SELECT DISTINCT + 67 + + 41 col1, + 52
----
108
52

onlyif mysql # aggregate syntax: 
query I rowsort label-7107
SELECT DISTINCT - COALESCE ( - - COUNT( * ), - + 65 + + 80 ) + 67
----
66

skipif mysql # not compatible
query I rowsort label-7107
SELECT DISTINCT - COALESCE ( - - COUNT ( * ), - + 65 + + 80 ) + 67
----
66

query I rowsort
SELECT ALL 25 + + + 85 col2
----
110

query I rowsort
SELECT ( - - 17 ) + + 96 AS col2
----
113

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7110
SELECT ALL CAST( NULL AS SIGNED ) + + 37 * + ( ( ( 8 ) ) ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7110
SELECT ALL CAST ( NULL AS INTEGER ) + + 37 * + ( ( ( 8 ) ) ) col1
----
NULL

query I rowsort
SELECT DISTINCT 10 * + 1 - 78 * + 64 AS col2
----
-4982

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7113
SELECT - 98 / CAST( NULL AS DECIMAL ) - - + CAST( NULL AS DECIMAL ) / 87 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7113
SELECT - 98 / CAST ( NULL AS REAL ) - - + CAST ( NULL AS REAL ) / 87 AS col1
----
NULL

query I rowsort
SELECT 22 + - - 82
----
104

query I rowsort
SELECT 24 * - ( + ( + 82 ) )
----
-1968

onlyif mysql # aggregate syntax: 
query I rowsort label-7116
SELECT ALL 50 + 37 + 14 * - + 54 + + 94 + + 34 - - NULLIF ( 20, SUM( 52 ) * 14 - - - 39 ) * 13
----
-281

skipif mysql # not compatible
query I rowsort label-7116
SELECT ALL 50 + 37 + 14 * - + 54 + + 94 + + 34 - - NULLIF ( 20, SUM ( 52 ) * 14 - - - 39 ) * 13
----
-281

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

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

query I rowsort
SELECT ALL - NULLIF ( 20, + 97 ) * 66 * - - ( 77 ) col0
----
-101640

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

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

query I rowsort
SELECT DISTINCT - - NULLIF ( 88, - 24 + 75 ) AS col1
----
88

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7121
SELECT DISTINCT + 16 - + + 77 * COUNT( * ) / + 20 * + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-7121
SELECT DISTINCT + 16 - + + 77 * COUNT ( * ) / + 20 * + CAST ( NULL AS REAL )
----
NULL

query I rowsort
SELECT + 50 * - 55 * + 14 * - - 7
----
-269500

query II rowsort
SELECT + 50 AS col1, - 95
----
50
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-7124
SELECT ALL - SUM( 32 ) AS col2
----
-32

skipif mysql # not compatible
query I rowsort label-7124
SELECT ALL - SUM ( 32 ) AS col2
----
-32

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7126
SELECT 15 * 68 + ( - - 96 ) + + 95 * + SUM( 33 )
----
4251

skipif mysql # not compatible
query I rowsort label-7126
SELECT 15 * 68 + ( - - 96 ) + + 95 * + SUM ( 33 )
----
4251

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7129
SELECT 30 DIV + - 76
----
0

skipif mysql # not compatible
query I rowsort label-7129
SELECT 30 / + - 76
----
0

onlyif mysql # DIV for integer division: 
query III rowsort label-7130
SELECT ALL - 52 DIV 96 * - + 75, - 65 col1, 46 AS col0
----
0
-65
46

skipif mysql # not compatible
query III rowsort label-7130
SELECT ALL - 52 / 96 * - + 75, - 65 col1, 46 AS col0
----
0
-65
46

query I rowsort
SELECT 0 * + 91
----
0

query I rowsort
SELECT 4 - + 61 + 47 * - + 76 AS col2
----
-3629

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7133
SELECT DISTINCT + CAST( - COUNT( * ) AS SIGNED ) + - COUNT( * ) + - 24 - 87 * + COUNT( * ) + 17 col1
----
-96

skipif mysql # not compatible
query I rowsort label-7133
SELECT DISTINCT + CAST ( - COUNT ( * ) AS INTEGER ) + - COUNT ( * ) + - 24 - 87 * + COUNT ( * ) + 17 col1
----
-96

query I rowsort
SELECT ALL - NULLIF ( - + 56, - 3 ) * + 82 + - 33 AS col2
----
4559

query I rowsort
SELECT ALL + 98 + ( - ( 62 ) ) col0
----
36

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7137
SELECT ALL + 53 + + ( - + COUNT( * ) ) DIV - 92 AS col2
----
53

skipif mysql # not compatible
query I rowsort label-7137
SELECT ALL + 53 + + ( - + COUNT ( * ) ) / - 92 AS col2
----
53

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: DIV for integer division: 
query I rowsort label-7138
SELECT ALL - 26 * - + COALESCE ( 16, - + 87 DIV - CASE - - 69 WHEN - 42 THEN - + 90 WHEN - SUM( DISTINCT ( - 86 ) ) + - + 81 * + 16 THEN + COUNT( - CAST( NULL AS DECIMAL ) ) END * 77 - 55, - 11 + + CAST( 21 + 93 AS SIGNED ) ) AS col0
----
416

skipif mysql # not compatible
query I rowsort label-7138
SELECT ALL - 26 * - + COALESCE ( 16, - + 87 / - CASE - - 69 WHEN - 42 THEN - + 90 WHEN - SUM ( DISTINCT ( - 86 ) ) + - + 81 * + 16 THEN + COUNT ( - CAST ( NULL AS REAL ) ) END * 77 - 55, - 11 + + CAST ( 21 + 93 AS INTEGER ) ) AS col0
----
416

onlyif mysql # DIV for integer division: 
query I rowsort label-7139
SELECT 45 DIV 53 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-7139
SELECT 45 / 53 AS col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7140
SELECT COUNT( * ) - - - 93 - - - 17 + + 15 - - - 47 * + - CAST( NULL AS SIGNED ) / 52 + + 42 + - CAST( NULL AS SIGNED ) * - CAST( + 72 AS SIGNED ) / 74
----
NULL

skipif mysql # not compatible
query I rowsort label-7140
SELECT COUNT ( * ) - - - 93 - - - 17 + + 15 - - - 47 * + - CAST ( NULL AS INTEGER ) / 52 + + 42 + - CAST ( NULL AS INTEGER ) * - CAST ( + 72 AS INTEGER ) / 74
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7141
SELECT ALL + CAST( + + 9 AS SIGNED ) * - + 4 + + MIN( DISTINCT - 83 )
----
-119

skipif mysql # not compatible
query I rowsort label-7141
SELECT ALL + CAST ( + + 9 AS INTEGER ) * - + 4 + + MIN ( DISTINCT - 83 )
----
-119

query II rowsort
SELECT DISTINCT 43 AS col1, 72 AS col0
----
43
72

query I rowsort
SELECT 25 * - 42 AS col0
----
-1050

onlyif mysql # DIV for integer division: 
query II rowsort label-7144
SELECT - 47, + 70 DIV - 63 AS col0
----
-47
-1

skipif mysql # not compatible
query II rowsort label-7144
SELECT - 47, + 70 / - 63 AS col0
----
-47
-1

query II rowsort
SELECT ALL + 3, 47 AS col1
----
3
47

query II rowsort
SELECT DISTINCT - - 3 + - 61 * + ( - - 62 ) AS col2, 88 AS col1
----
-3779
88

query II rowsort
SELECT - + 93 col0, 89
----
-93
89

query I rowsort
SELECT + 65 * + - 28 AS col2
----
-1820

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7149
SELECT ALL COUNT( * ) AS col2, - CAST( 92 AS SIGNED ) AS col2
----
1
-92

skipif mysql # not compatible
query II rowsort label-7149
SELECT ALL COUNT ( * ) AS col2, - CAST ( 92 AS INTEGER ) AS col2
----
1
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-7150
SELECT DISTINCT - + NULLIF ( - COALESCE ( + - 99, COUNT( * ) ), + 23 ) - + - 2 AS col1
----
-97

skipif mysql # not compatible
query I rowsort label-7150
SELECT DISTINCT - + NULLIF ( - COALESCE ( + - 99, COUNT ( * ) ), + 23 ) - + - 2 AS col1
----
-97

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

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

query I rowsort
SELECT ALL - + 61 - - - ( + 9 ) + - 68
----
-138

query I rowsort
SELECT DISTINCT + 6 * + 92 col1
----
552

query II rowsort
SELECT + 43, - 84 * 71 AS col1
----
43
-5964

onlyif mysql # aggregate syntax: 
query II rowsort label-7155
SELECT ALL COUNT( * ) * + 85 * + - 47 AS col0, 1 + + 23 AS col2
----
-3995
24

skipif mysql # not compatible
query II rowsort label-7155
SELECT ALL COUNT ( * ) * + 85 * + - 47 AS col0, 1 + + 23 AS col2
----
-3995
24

query I rowsort
SELECT - ( NULLIF ( COALESCE ( 13, + 89, - 5, + - 24 ), AVG ( ALL + 17 ) ) ) + + 15
----
2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7157
SELECT COUNT( * ) * + MIN( ALL 28 ) DIV - 42 + + 90 * 8 AS col0
----
720

skipif mysql # not compatible
query I rowsort label-7157
SELECT COUNT ( * ) * + MIN ( ALL 28 ) / - 42 + + 90 * 8 AS col0
----
720

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7158
SELECT - 11 + 47 / + + 59 + - - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7158
SELECT - 11 + 47 / + + 59 + - - CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7159
SELECT ALL - 29 col2, COUNT( * ) + - - 38
----
-29
39

skipif mysql # not compatible
query II rowsort label-7159
SELECT ALL - 29 col2, COUNT ( * ) + - - 38
----
-29
39

onlyif mysql # aggregate syntax: 
query I rowsort label-7160
SELECT + + COALESCE ( - 23, 91 * + COUNT( * ) + - - 70 - + 54 ) AS col2
----
-23

skipif mysql # not compatible
query I rowsort label-7160
SELECT + + COALESCE ( - 23, 91 * + COUNT ( * ) + - - 70 - + 54 ) AS col2
----
-23

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-7161
SELECT ALL - + ( - - ( + + CAST( NULL AS DECIMAL ) ) ) col2, + 84 - ( - ( + COUNT( * ) ) ) + + - 58 AS col1
----
NULL
27

skipif mysql # not compatible
query II rowsort label-7161
SELECT ALL - + ( - - ( + + CAST ( NULL AS REAL ) ) ) col2, + 84 - ( - ( + COUNT ( * ) ) ) + + - 58 AS col1
----
NULL
27

onlyif mysql # DIV for integer division: 
query II rowsort label-7162
SELECT 18 DIV ( 82 ), + 5 AS col2
----
0
5

skipif mysql # not compatible
query II rowsort label-7162
SELECT 18 / ( 82 ), + 5 AS col2
----
0
5

query I rowsort
SELECT + 38 + + 18 col2
----
56

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7164
SELECT + CASE - - ( - NULLIF ( - + 52, + + 90 + - + 2 ) ) WHEN - - 5 THEN 96 - + - 64 ELSE COUNT( DISTINCT - COALESCE ( 89, + + 30 ) ) - 1 DIV SUM( ALL 25 * - 91 - 54 * + 32 ) END
----
1

skipif mysql # not compatible
query I rowsort label-7164
SELECT + CASE - - ( - NULLIF ( - + 52, + + 90 + - + 2 ) ) WHEN - - 5 THEN 96 - + - 64 ELSE COUNT ( DISTINCT - COALESCE ( 89, + + 30 ) ) - 1 / SUM ( ALL 25 * - 91 - 54 * + 32 ) END
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7165
SELECT DISTINCT + - MAX( DISTINCT + - 63 )
----
63

skipif mysql # not compatible
query I rowsort label-7165
SELECT DISTINCT + - MAX ( DISTINCT + - 63 )
----
63

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7166
SELECT + 28 + + AVG ( DISTINCT - 63 ) / + MAX( ALL CAST( NULL AS SIGNED ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7166
SELECT + 28 + + AVG ( DISTINCT - 63 ) / + MAX ( ALL CAST ( NULL AS INTEGER ) ) AS col2
----
NULL

query I rowsort
SELECT 29 * - 14 * + 78 + - - 1 * 78
----
-31590

onlyif mysql # aggregate syntax: 
query I rowsort label-7168
SELECT ALL - 57 * + MIN( + + 65 ) AS col2
----
-3705

skipif mysql # not compatible
query I rowsort label-7168
SELECT ALL - 57 * + MIN ( + + 65 ) AS col2
----
-3705

onlyif mysql # DIV for integer division: 
query I rowsort label-7169
SELECT + 22 * 23 DIV - ( - + 96 )
----
5

skipif mysql # not compatible
query I rowsort label-7169
SELECT + 22 * 23 / - ( - + 96 )
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-7170
SELECT 30 * SUM( DISTINCT - 96 ) + COUNT( * ) AS col0
----
-2879

skipif mysql # not compatible
query I rowsort label-7170
SELECT 30 * SUM ( DISTINCT - 96 ) + COUNT ( * ) AS col0
----
-2879

query I rowsort
SELECT ALL 80 * + 26
----
2080

query II rowsort
SELECT - 61 * 79 - + - 82 + - 40 AS col2, 10 AS col0
----
-4777
10

onlyif mysql # aggregate syntax: 
query II rowsort label-7173
SELECT ALL + MIN( DISTINCT - 26 ) AS col1, 29 - - - 7
----
-26
22

skipif mysql # not compatible
query II rowsort label-7173
SELECT ALL + MIN ( DISTINCT - 26 ) AS col1, 29 - - - 7
----
-26
22

onlyif mysql # aggregate syntax: 
query I rowsort label-7174
SELECT + CASE 39 WHEN + + CASE + 81 WHEN + 39 THEN NULL WHEN 23 THEN - 89 ELSE + 24 END THEN NULL WHEN + 78 THEN 42 + + MIN( + 29 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-7174
SELECT + CASE 39 WHEN + + CASE + 81 WHEN + 39 THEN NULL WHEN 23 THEN - 89 ELSE + 24 END THEN NULL WHEN + 78 THEN 42 + + MIN ( + 29 ) END
----
NULL

query I rowsort
SELECT ALL + 68 * - + 64 + - + 78 * + + 26 * 67 AS col0
----
-140228

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

skipif mysql # not compatible
query I rowsort label-7176
SELECT MAX ( + 99 )
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-7177
SELECT ALL 17 * + MAX( - - 36 ) + + 23 * - - ( 36 ) col2
----
1440

skipif mysql # not compatible
query I rowsort label-7177
SELECT ALL 17 * + MAX ( - - 36 ) + + 23 * - - ( 36 ) col2
----
1440

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

skipif mysql # not compatible
query I rowsort label-7178
SELECT - COUNT ( * ) + - 59 - + COUNT ( * ) AS col2
----
-61

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7179
SELECT CASE ( + - 50 ) WHEN + 0 + 31 + + 14 THEN NULL ELSE - 86 + + ( CAST( NULL AS DECIMAL ) ) / MAX( ALL + + 60 ) END * - + 13 / + - 33 + - 19 + + CAST( CAST( 78 AS SIGNED ) AS DECIMAL ) * 24
----
NULL

skipif mysql # not compatible
query I rowsort label-7179
SELECT CASE ( + - 50 ) WHEN + 0 + 31 + + 14 THEN NULL ELSE - 86 + + ( CAST ( NULL AS REAL ) ) / MAX ( ALL + + 60 ) END * - + 13 / + - 33 + - 19 + + CAST ( CAST ( 78 AS INTEGER ) AS REAL ) * 24
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7180
SELECT COUNT( - 28 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-7180
SELECT COUNT ( - 28 ) AS col2
----
1

query I rowsort
SELECT + 54 * - - 25 AS col2
----
1350

onlyif mysql # DIV for integer division: 
query I rowsort label-7182
SELECT ALL - 95 DIV + ( + - 28 )
----
3

skipif mysql # not compatible
query I rowsort label-7182
SELECT ALL - 95 / + ( + - 28 )
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7183
SELECT + + NULLIF ( - 58, + 89 + - 15 + - CAST( - - 8 AS SIGNED ) ) + - 81
----
-139

skipif mysql # not compatible
query I rowsort label-7183
SELECT + + NULLIF ( - 58, + 89 + - 15 + - CAST ( - - 8 AS INTEGER ) ) + - 81
----
-139

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

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

query I rowsort
SELECT DISTINCT + 1 * + 49 * + 34
----
1666

onlyif mysql # aggregate syntax: 
query I rowsort label-7186
SELECT ALL - COUNT( * ) * + 85 * 58
----
-4930

skipif mysql # not compatible
query I rowsort label-7186
SELECT ALL - COUNT ( * ) * + 85 * 58
----
-4930

onlyif mysql # aggregate syntax: 
query I rowsort label-7187
SELECT - + 79 * - 53 * - 21 + + - MAX( DISTINCT + - 32 )
----
-87895

skipif mysql # not compatible
query I rowsort label-7187
SELECT - + 79 * - 53 * - 21 + + - MAX ( DISTINCT + - 32 )
----
-87895

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7188
SELECT - CAST( NULL AS SIGNED ) + + 48 + + AVG ( ALL 17 ) * 96 * 55 + + + CAST( NULL AS SIGNED ) * - 47 * - - 84 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7188
SELECT - CAST ( NULL AS INTEGER ) + + 48 + + AVG ( ALL 17 ) * 96 * 55 + + + CAST ( NULL AS INTEGER ) * - 47 * - - 84 col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7189
SELECT ALL + 57 - + COUNT( * )
----
56

skipif mysql # not compatible
query I rowsort label-7189
SELECT ALL + 57 - + COUNT ( * )
----
56

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7190
SELECT ALL - - COALESCE ( + - 2, + - 67 DIV + COUNT( ALL + 92 ), - 60 DIV - 1 - COUNT( * ), + 8 ) - + + 70 AS col0, 67
----
-72
67

skipif mysql # not compatible
query II rowsort label-7190
SELECT ALL - - COALESCE ( + - 2, + - 67 / + COUNT ( ALL + 92 ), - 60 / - 1 - COUNT ( * ), + 8 ) - + + 70 AS col0, 67
----
-72
67

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-7191
SELECT DISTINCT - - 8 * MIN( DISTINCT 88 ) + NULLIF ( - 87, - COALESCE ( + MAX( DISTINCT 55 ), - 86 ) ) + + 22 - - + 87 DIV + 98, ( 40 ) * 30 + 47 * + NULLIF ( - CAST( NULL AS SIGNED ) + + 38, 65 ) AS col1
----
639
NULL

skipif mysql # not compatible
query II rowsort label-7191
SELECT DISTINCT - - 8 * MIN ( DISTINCT 88 ) + NULLIF ( - 87, - COALESCE ( + MAX ( DISTINCT 55 ), - 86 ) ) + + 22 - - + 87 / + 98, ( 40 ) * 30 + 47 * + NULLIF ( - CAST ( NULL AS INTEGER ) + + 38, 65 ) AS col1
----
639
NULL

query I rowsort
SELECT - ( - ( - + COALESCE ( - + 65, - 16 ) ) ) col2
----
65

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7193
SELECT + CASE - + 42 WHEN - - 58 THEN NULL WHEN - - 56 + 79 + ( + - 54 ) THEN NULL ELSE CAST( + AVG ( - - 10 ) AS SIGNED ) + + 74 END
----
84

skipif mysql # not compatible
query I rowsort label-7193
SELECT + CASE - + 42 WHEN - - 58 THEN NULL WHEN - - 56 + 79 + ( + - 54 ) THEN NULL ELSE CAST ( + AVG ( - - 10 ) AS INTEGER ) + + 74 END
----
84

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

skipif mysql # not compatible
query I rowsort label-7194
SELECT + + COUNT ( * ) + + 95 * - - 67 AS col1
----
6366

onlyif mysql # aggregate syntax: 
query I rowsort label-7195
SELECT + - 47 + 9 * - COUNT( * ) AS col2
----
-56

skipif mysql # not compatible
query I rowsort label-7195
SELECT + - 47 + 9 * - COUNT ( * ) AS col2
----
-56

query I rowsort
SELECT - + 77 * - 99 col0
----
7623

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7198
SELECT DISTINCT - 18 DIV - COUNT( * ) + 16 + + MAX( DISTINCT + 70 ) DIV - 44 col0
----
33

skipif mysql # not compatible
query I rowsort label-7198
SELECT DISTINCT - 18 / - COUNT ( * ) + 16 + + MAX ( DISTINCT + 70 ) / - 44 col0
----
33

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7201
SELECT ( + NULLIF ( - 46, 38 - + CASE + 4 WHEN - 96 * + MIN( + 67 ) + + 19 + COALESCE ( + - 32, 19 * - - 11, - - 71 + - 62 * 61 ) - - 1 THEN COUNT( * ) END ) )
----
-46

skipif mysql # not compatible
query I rowsort label-7201
SELECT ( + NULLIF ( - 46, 38 - + CASE + 4 WHEN - 96 * + MIN ( + 67 ) + + 19 + COALESCE ( + - 32, 19 * - - 11, - - 71 + - 62 * 61 ) - - 1 THEN COUNT ( * ) END ) )
----
-46

onlyif mysql # DIV for integer division: 
query I rowsort label-7202
SELECT + 21 DIV + ( - + NULLIF ( + + 14, 23 ) )
----
-1

skipif mysql # not compatible
query I rowsort label-7202
SELECT + 21 / + ( - + NULLIF ( + + 14, 23 ) )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7203
SELECT ALL - COUNT( * ) * + 6 * + 50 * - COUNT( * ) + - - 37
----
337

skipif mysql # not compatible
query I rowsort label-7203
SELECT ALL - COUNT ( * ) * + 6 * + 50 * - COUNT ( * ) + - - 37
----
337

query I rowsort
SELECT + 38 * - 60 * + - 62
----
141360

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7206
SELECT DISTINCT CASE AVG ( 66 ) WHEN COUNT( + - 33 ) + 78 * 58 THEN + + ( - + MAX( - COALESCE ( - 92, 30 ) ) ) WHEN - 42 * 24 THEN NULL END * + ( 70 ) / - 38 + - CAST( NULL AS SIGNED ) * 26 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7206
SELECT DISTINCT CASE AVG ( 66 ) WHEN COUNT ( + - 33 ) + 78 * 58 THEN + + ( - + MAX ( - COALESCE ( - 92, 30 ) ) ) WHEN - 42 * 24 THEN NULL END * + ( 70 ) / - 38 + - CAST ( NULL AS INTEGER ) * 26 AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7207
SELECT DISTINCT ( - 28 ) DIV - - 63
----
0

skipif mysql # not compatible
query I rowsort label-7207
SELECT DISTINCT ( - 28 ) / - - 63
----
0

query I rowsort
SELECT ALL 2 * + + 45 AS col1
----
90

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7209
SELECT ALL + 25 * 18 - + - 62 * - 53 * - CASE 72 WHEN + ( + 71 ) + 10 - + + COUNT( * ) - ( - + CASE + 76 WHEN - - 99 * 90 + - COUNT( * ) THEN NULL WHEN - CAST( NULL AS SIGNED ) * 75 THEN + NULLIF ( NULLIF ( - CASE COUNT( * ) WHEN - 56 * + 67 + 37 THEN - 17 + 90 ELSE - NULLIF ( + 33, + 14 ) END, - 48 ), + 79 ) / + 63 END ) * - CAST( 17 AS SIGNED ) THEN NULL WHEN + 83 * 39 THEN + COUNT( * ) WHEN - COUNT( * ) THEN NULL END * COUNT( * ) + - 52 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7209
SELECT ALL + 25 * 18 - + - 62 * - 53 * - CASE 72 WHEN + ( + 71 ) + 10 - + + COUNT ( * ) - ( - + CASE + 76 WHEN - - 99 * 90 + - COUNT ( * ) THEN NULL WHEN - CAST ( NULL AS INTEGER ) * 75 THEN + NULLIF ( NULLIF ( - CASE COUNT ( * ) WHEN - 56 * + 67 + 37 THEN - 17 + 90 ELSE - NULLIF ( + 33, + 14 ) END, - 48 ), + 79 ) / + 63 END ) * - CAST ( 17 AS INTEGER ) THEN NULL WHEN + 83 * 39 THEN + COUNT ( * ) WHEN - COUNT ( * ) THEN NULL END * COUNT ( * ) + - 52 AS col2
----
NULL

query I rowsort
SELECT 99 * - - 19 - 95 AS col2
----
1786

onlyif mysql # aggregate syntax: 
query I rowsort label-7211
SELECT CASE + 10 WHEN 82 + + 25 THEN - + 58 WHEN - 79 / COUNT( * ) THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-7211
SELECT CASE + 10 WHEN 82 + + 25 THEN - + 58 WHEN - 79 / COUNT ( * ) THEN NULL ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7212
SELECT + MAX( DISTINCT 30 ) + - + 4 col0
----
26

skipif mysql # not compatible
query I rowsort label-7212
SELECT + MAX ( DISTINCT 30 ) + - + 4 col0
----
26

onlyif mysql # aggregate syntax: 
query II rowsort label-7213
SELECT ALL + COUNT( * ) col0, - 42 * + + 80
----
1
-3360

skipif mysql # not compatible
query II rowsort label-7213
SELECT ALL + COUNT ( * ) col0, - 42 * + + 80
----
1
-3360

query I rowsort
SELECT DISTINCT 25 * 34 AS col0
----
850

onlyif mysql # aggregate syntax: 
query II rowsort label-7215
SELECT - COUNT( * ) * 31 * + 14 AS col2, 11 * - - COUNT( * ) + + 38
----
-434
49

skipif mysql # not compatible
query II rowsort label-7215
SELECT - COUNT ( * ) * 31 * + 14 AS col2, 11 * - - COUNT ( * ) + + 38
----
-434
49

query I rowsort
SELECT + - 87 * - 18 - + + 88
----
1478

query I rowsort
SELECT ALL 74 * - 30 AS col1
----
-2220

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7219
SELECT - - MAX( - - 95 ) * - 59 AS col0
----
-5605

skipif mysql # not compatible
query I rowsort label-7219
SELECT - - MAX ( - - 95 ) * - 59 AS col0
----
-5605

query I rowsort
SELECT + - ( - 39 ) * 39 + 52 AS col0
----
1573

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7221
SELECT DISTINCT + + 93 / - - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7221
SELECT DISTINCT + + 93 / - - CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7222
SELECT DISTINCT + + 68 * + NULLIF ( - - 23, 42 * + CAST( NULL AS SIGNED ) + 43 + - ( - + ( 78 ) ) * - 82 * - + 53 * - 20 ) AS col1
----
1564

skipif mysql # not compatible
query I rowsort label-7222
SELECT DISTINCT + + 68 * + NULLIF ( - - 23, 42 * + CAST ( NULL AS INTEGER ) + 43 + - ( - + ( 78 ) ) * - 82 * - + 53 * - 20 ) AS col1
----
1564

onlyif mysql # DIV for integer division: 
query I rowsort label-7223
SELECT 71 DIV + 60
----
1

skipif mysql # not compatible
query I rowsort label-7223
SELECT 71 / + 60
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7224
SELECT ALL + + COALESCE ( COUNT( - 57 ), - COUNT( * ) * + 99, + 96 ) + + - 10 + - + MIN( ALL + ( - - 79 ) ) * + 9 * - 67 * CASE - NULLIF ( + - 26, 60 * - COUNT( DISTINCT 76 ) ) WHEN COUNT( * ) + 50 THEN + 67 WHEN 15 THEN NULL END + 45 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7224
SELECT ALL + + COALESCE ( COUNT ( - 57 ), - COUNT ( * ) * + 99, + 96 ) + + - 10 + - + MIN ( ALL + ( - - 79 ) ) * + 9 * - 67 * CASE - NULLIF ( + - 26, 60 * - COUNT ( DISTINCT 76 ) ) WHEN COUNT ( * ) + 50 THEN + 67 WHEN 15 THEN NULL END + 45 AS col0
----
NULL

query II rowsort
SELECT DISTINCT + 62 + - + 41 + ( + 63 ) + + 53 col0, 30 AS col1
----
137
30

onlyif mysql # aggregate syntax: 
query I rowsort label-7226
SELECT DISTINCT NULLIF ( 20, + + 24 + + ( - COUNT( * ) ) )
----
20

skipif mysql # not compatible
query I rowsort label-7226
SELECT DISTINCT NULLIF ( 20, + + 24 + + ( - COUNT ( * ) ) )
----
20

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7227
SELECT DISTINCT - - 89 + - CASE - 50 WHEN + 90 THEN NULL WHEN + - 65 * + - CAST( + CAST( - - 61 AS SIGNED ) AS DECIMAL ) / - - 54 THEN + + ( MIN( ALL + 41 ) ) ELSE + 30 END * - COUNT( * ) * - 60 * 65 AS col0
----
-116911

skipif mysql # not compatible
query I rowsort label-7227
SELECT DISTINCT - - 89 + - CASE - 50 WHEN + 90 THEN NULL WHEN + - 65 * + - CAST ( + CAST ( - - 61 AS INTEGER ) AS REAL ) / - - 54 THEN + + ( MIN ( ALL + 41 ) ) ELSE + 30 END * - COUNT ( * ) * - 60 * 65 AS col0
----
-116911

query I rowsort
SELECT ALL + - 26 + - + 61
----
-87

query I rowsort
SELECT 40 * + 19 + 26 col2
----
786

query I rowsort
SELECT ALL - 60 + 76 AS col1
----
16

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7231
SELECT COUNT( * ) + - + 16 * NULLIF ( - + CAST( + 15 AS SIGNED ), 86 / - 39 ) col1
----
241

skipif mysql # not compatible
query I rowsort label-7231
SELECT COUNT ( * ) + - + 16 * NULLIF ( - + CAST ( + 15 AS INTEGER ), 86 / - 39 ) col1
----
241

query II rowsort
SELECT 38 AS col1, + 0 + + - 9
----
38
-9

query I rowsort
SELECT 4 + - - 58 + + 54 * ( + 15 )
----
872

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7234
SELECT 39 - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7234
SELECT 39 - CAST ( NULL AS INTEGER ) AS col2
----
NULL

query II rowsort
SELECT ALL - 75 AS col0, - ( + - 47 ) AS col0
----
-75
47

onlyif mysql # aggregate syntax: 
query I rowsort label-7236
SELECT COUNT( * ) * + + 10 * SUM( + - 53 )
----
-530

skipif mysql # not compatible
query I rowsort label-7236
SELECT COUNT ( * ) * + + 10 * SUM ( + - 53 )
----
-530

query II rowsort
SELECT + 58, + 11 col0
----
58
11

query I rowsort
SELECT 23 + + 61 + 64
----
148

onlyif mysql # aggregate syntax: 
query I rowsort label-7239
SELECT ALL - MAX( + + CASE WHEN ( NULL ) > + ( - + 68 ) THEN NULL ELSE - 65 END ) + - - 70
----
135

skipif mysql # not compatible
query I rowsort label-7239
SELECT ALL - MAX ( + + CASE WHEN ( NULL ) > + ( - + 68 ) THEN NULL ELSE - 65 END ) + - - 70
----
135

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7240
SELECT ALL - CASE + - 77 WHEN + COUNT( * ) * - 71 THEN - - CASE + COUNT( * ) WHEN - 63 THEN - + 80 END WHEN + SUM( ALL + ( - - CAST( NULL AS SIGNED ) ) ) THEN - - 3 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7240
SELECT ALL - CASE + - 77 WHEN + COUNT ( * ) * - 71 THEN - - CASE + COUNT ( * ) WHEN - 63 THEN - + 80 END WHEN + SUM ( ALL + ( - - CAST ( NULL AS INTEGER ) ) ) THEN - - 3 END AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7241
SELECT - 53 * - - 56 * - - CAST( - 93 AS SIGNED ) + - 72
----
275952

skipif mysql # not compatible
query I rowsort label-7241
SELECT - 53 * - - 56 * - - CAST ( - 93 AS INTEGER ) + - 72
----
275952

query I rowsort
SELECT ALL 26 * + 96 AS col0
----
2496

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

skipif mysql # not compatible
query I rowsort label-7243
SELECT DISTINCT + COUNT ( * ) / 31
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7244
SELECT ALL - CAST( + + COALESCE ( + - 73, + 61, COALESCE ( + ( + COUNT( * ) ), 87 + + 45 + 35 * - 78 ) / - + COUNT( * ) ) AS SIGNED ) - - + 96
----
169

skipif mysql # not compatible
query I rowsort label-7244
SELECT ALL - CAST ( + + COALESCE ( + - 73, + 61, COALESCE ( + ( + COUNT ( * ) ), 87 + + 45 + 35 * - 78 ) / - + COUNT ( * ) ) AS INTEGER ) - - + 96
----
169

onlyif mysql # aggregate syntax: 
query I rowsort label-7245
SELECT SUM( - + 12 ) + + + COUNT( * ) + - 26 * - - 24 AS col0
----
-635

skipif mysql # not compatible
query I rowsort label-7245
SELECT SUM ( - + 12 ) + + + COUNT ( * ) + - 26 * - - 24 AS col0
----
-635

query I rowsort
SELECT 29 * + + 4
----
116

onlyif mysql # aggregate syntax: 
query I rowsort label-7247
SELECT CASE + + 67 WHEN - ( + - 37 ) * - + ( - - 67 ) * + + 13 - - + SUM( ALL + - 6 ) THEN - + 70 END * + + 25 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7247
SELECT CASE + + 67 WHEN - ( + - 37 ) * - + ( - - 67 ) * + + 13 - - + SUM ( ALL + - 6 ) THEN - + 70 END * + + 25 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7248
SELECT ALL + 95 * COUNT( * ) * 92 * - - COUNT( * )
----
8740

skipif mysql # not compatible
query I rowsort label-7248
SELECT ALL + 95 * COUNT ( * ) * 92 * - - COUNT ( * )
----
8740

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7249
SELECT 4 * - 6 + + 54 + COUNT( * ) - - 31 * + CAST( + CASE + MIN( DISTINCT - ( + 55 ) ) WHEN 55 THEN NULL WHEN - + 32 THEN - - COUNT( 56 ) ELSE 29 END AS SIGNED ) AS col2
----
930

skipif mysql # not compatible
query I rowsort label-7249
SELECT 4 * - 6 + + 54 + COUNT ( * ) - - 31 * + CAST ( + CASE + MIN ( DISTINCT - ( + 55 ) ) WHEN 55 THEN NULL WHEN - + 32 THEN - - COUNT ( 56 ) ELSE 29 END AS INTEGER ) AS col2
----
930

query I rowsort
SELECT 74 + 75 * 44 col0
----
3374

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-7252
SELECT + 35, CAST( NULL AS DECIMAL ) + 13 - AVG ( ALL - 20 ) + + 62 AS col2
----
35
NULL

skipif mysql # not compatible
query II rowsort label-7252
SELECT + 35, CAST ( NULL AS REAL ) + 13 - AVG ( ALL - 20 ) + + 62 AS col2
----
35
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7253
SELECT DISTINCT - 15 AS col2, COALESCE ( - - 82, - COUNT( * ) ) * + 25 + - 18
----
-15
2032

skipif mysql # not compatible
query II rowsort label-7253
SELECT DISTINCT - 15 AS col2, COALESCE ( - - 82, - COUNT ( * ) ) * + 25 + - 18
----
-15
2032

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7255
SELECT DISTINCT MIN( + + 25 ) DIV 90
----
0

skipif mysql # not compatible
query I rowsort label-7255
SELECT DISTINCT MIN ( + + 25 ) / 90
----
0

query II rowsort
SELECT DISTINCT - - 49 AS col1, 68 * - 24
----
49
-1632

onlyif mysql # aggregate syntax: 
query I rowsort label-7257
SELECT 37 + - 52 * + COUNT( * )
----
-15

skipif mysql # not compatible
query I rowsort label-7257
SELECT 37 + - 52 * + COUNT ( * )
----
-15

query I rowsort
SELECT ALL + 51 * - + 68 + - 29 * - - 80 AS col1
----
-5788

onlyif mysql # aggregate syntax: 
query I rowsort label-7259
SELECT + MIN( DISTINCT + 7 ) * - 55
----
-385

skipif mysql # not compatible
query I rowsort label-7259
SELECT + MIN ( DISTINCT + 7 ) * - 55
----
-385

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

query I rowsort
SELECT + 42 * + + 73 * - 32 col0
----
-98112

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7262
SELECT 14 * - CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) + - + CASE - SUM( + 44 ) WHEN - 81 * - 80 * + 83 THEN - 75 WHEN + AVG ( - + 54 ) THEN NULL ELSE - - 35 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7262
SELECT 14 * - CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) + - + CASE - SUM ( + 44 ) WHEN - 81 * - 80 * + 83 THEN - 75 WHEN + AVG ( - + 54 ) THEN NULL ELSE - - 35 END AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7263
SELECT + MAX( DISTINCT + ( - + 11 ) ) * + NULLIF ( CAST( NULL AS DECIMAL ), + 83 ) + - - 65
----
NULL

skipif mysql # not compatible
query I rowsort label-7263
SELECT + MAX ( DISTINCT + ( - + 11 ) ) * + NULLIF ( CAST ( NULL AS REAL ), + 83 ) + - - 65
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7265
SELECT - COUNT( ALL + - 11 ) + 24
----
23

skipif mysql # not compatible
query I rowsort label-7265
SELECT - COUNT ( ALL + - 11 ) + 24
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-7266
SELECT + 62 * + - 67 * - SUM( ALL - - 86 ) * + - MAX( - 50 ) - 10 * - - 53
----
17861670

skipif mysql # not compatible
query I rowsort label-7266
SELECT + 62 * + - 67 * - SUM ( ALL - - 86 ) * + - MAX ( - 50 ) - 10 * - - 53
----
17861670

onlyif mysql # aggregate syntax: 
query I rowsort label-7267
SELECT ALL 8 * 72 - SUM( - 31 ) col0
----
607

skipif mysql # not compatible
query I rowsort label-7267
SELECT ALL 8 * 72 - SUM ( - 31 ) col0
----
607

query I rowsort
SELECT 93 + - - 54 + 21
----
168

onlyif mysql # DIV for integer division: 
query II rowsort label-7269
SELECT ALL + 99 * - 59, 63 * + 92 - 11 DIV + 20 AS col2
----
-5841
5796

skipif mysql # not compatible
query II rowsort label-7269
SELECT ALL + 99 * - 59, 63 * + 92 - 11 / + 20 AS col2
----
-5841
5796

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7271
SELECT ALL - 25 + - MIN( DISTINCT - 90 ) AS col0
----
65

skipif mysql # not compatible
query I rowsort label-7271
SELECT ALL - 25 + - MIN ( DISTINCT - 90 ) AS col0
----
65

onlyif mysql # aggregate syntax: 
query II rowsort label-7272
SELECT + 0 + + 78, COUNT( * ) + 37 AS col1
----
78
38

skipif mysql # not compatible
query II rowsort label-7272
SELECT + 0 + + 78, COUNT ( * ) + 37 AS col1
----
78
38

query I rowsort
SELECT ALL - 55 + - - 96 * 49 AS col1
----
4649

query I rowsort
SELECT DISTINCT 79 + + 98 * 4 * 29 * + + 63
----
716263

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

query I rowsort
SELECT 63 + - 30
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-7277
SELECT - CASE 28 WHEN - 23 THEN + 93 END + - + COUNT( * ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7277
SELECT - CASE 28 WHEN - 23 THEN + 93 END + - + COUNT ( * ) col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7278
SELECT ALL + COUNT( * ) DIV 62 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-7278
SELECT ALL + COUNT ( * ) / 62 AS col0
----
0

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

skipif mysql # not compatible
query I rowsort label-7279
SELECT DISTINCT - CAST ( - - CAST ( NULL AS INTEGER ) AS REAL ) + + + 49 AS col2
----
NULL

query I rowsort
SELECT 20 * + 84
----
1680

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

skipif mysql # not compatible
query I rowsort label-7281
SELECT - MAX ( + 5 ) col0
----
-5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7282
SELECT SUM( + CAST( NULL AS SIGNED ) ) * - 40
----
NULL

skipif mysql # not compatible
query I rowsort label-7282
SELECT SUM ( + CAST ( NULL AS INTEGER ) ) * - 40
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7283
SELECT DISTINCT - ( + COUNT( * ) ) AS col0, SUM( DISTINCT + 67 ) + - 35
----
-1
32

skipif mysql # not compatible
query II rowsort label-7283
SELECT DISTINCT - ( + COUNT ( * ) ) AS col0, SUM ( DISTINCT + 67 ) + - 35
----
-1
32

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7284
SELECT ALL 54 * + 31 - - - CAST( NULL AS DECIMAL ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7284
SELECT ALL 54 * + 31 - - - CAST ( NULL AS REAL ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query III rowsort label-7285
SELECT 64 * + COUNT( * ) AS col1, + SUM( DISTINCT + + 89 ) - + 75 AS col2, + MAX( ALL - 2 )
----
64
14
-2

skipif mysql # not compatible
query III rowsort label-7285
SELECT 64 * + COUNT ( * ) AS col1, + SUM ( DISTINCT + + 89 ) - + 75 AS col2, + MAX ( ALL - 2 )
----
64
14
-2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7286
SELECT ALL + 64 * + - 85 AS col2, + 86 * + MAX( - + CAST( NULL AS SIGNED ) ) + + + 64 + + COUNT( * )
----
-5440
NULL

skipif mysql # not compatible
query II rowsort label-7286
SELECT ALL + 64 * + - 85 AS col2, + 86 * + MAX ( - + CAST ( NULL AS INTEGER ) ) + + + 64 + + COUNT ( * )
----
-5440
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7287
SELECT DISTINCT - ( + ( - COALESCE ( + 96, + CASE COUNT( + + 36 ) WHEN 59 THEN NULL WHEN - 1 THEN NULL ELSE - 92 * + 65 END + - 71 ) ) ) AS col2
----
96

skipif mysql # not compatible
query I rowsort label-7287
SELECT DISTINCT - ( + ( - COALESCE ( + 96, + CASE COUNT ( + + 36 ) WHEN 59 THEN NULL WHEN - 1 THEN NULL ELSE - 92 * + 65 END + - 71 ) ) ) AS col2
----
96

query I rowsort
SELECT 64 * 38 * 48 * 4 + 83 * + 67 - + NULLIF ( + COALESCE ( - ( - 14 ), - 74 ), 33 + 75 ) * - 4 AS col0
----
472561

onlyif mysql # aggregate syntax: 
query I rowsort label-7289
SELECT + - 49 * + 13 + + + MIN( + 29 ) + - 31 AS col1
----
-639

skipif mysql # not compatible
query I rowsort label-7289
SELECT + - 49 * + 13 + + + MIN ( + 29 ) + - 31 AS col1
----
-639

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7290
SELECT DISTINCT - CAST( - - 69 AS SIGNED ) + - 88
----
-157

skipif mysql # not compatible
query I rowsort label-7290
SELECT DISTINCT - CAST ( - - 69 AS INTEGER ) + - 88
----
-157

onlyif mysql # aggregate syntax: 
query I rowsort label-7291
SELECT CASE + + COUNT( * ) WHEN - COUNT( * ) THEN 37 WHEN 99 THEN NULL END / 9 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7291
SELECT CASE + + COUNT ( * ) WHEN - COUNT ( * ) THEN 37 WHEN 99 THEN NULL END / 9 AS col2
----
NULL

query II rowsort
SELECT DISTINCT - 29 + + 5 AS col2, 66 AS col0
----
-24
66

query I rowsort
SELECT DISTINCT - 17 * - 9
----
153

query I rowsort
SELECT ALL + + 47 + 54 AS col1
----
101

query I rowsort
SELECT ALL + 95 + 46 - - 42
----
183

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7296
SELECT - CASE - 2 WHEN + 71 * 1 THEN 34 + 18 / - 32 / 89 + 41 + + 86 + + 89 * 44 ELSE NULL END, ( + SUM( DISTINCT - ( + 52 ) ) ) * 54 * - 44 + - CAST( NULL AS SIGNED ) AS col1
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-7296
SELECT - CASE - 2 WHEN + 71 * 1 THEN 34 + 18 / - 32 / 89 + 41 + + 86 + + 89 * 44 ELSE NULL END, ( + SUM ( DISTINCT - ( + 52 ) ) ) * 54 * - 44 + - CAST ( NULL AS INTEGER ) AS col1
----
NULL
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7297
SELECT ALL - 79 + + 18 col0, 26 * ( - COALESCE ( - NULLIF ( 63, 64 / - 84 * - 20 ), - + 22 + - - 99, + 86 ) ) * NULLIF ( + + 88, - MIN( - 57 ) )
----
-61
144144

skipif mysql # not compatible
query II rowsort label-7297
SELECT ALL - 79 + + 18 col0, 26 * ( - COALESCE ( - NULLIF ( 63, 64 / - 84 * - 20 ), - + 22 + - - 99, + 86 ) ) * NULLIF ( + + 88, - MIN ( - 57 ) )
----
-61
144144

onlyif mysql # aggregate syntax: 
query I rowsort label-7298
SELECT DISTINCT - 68 + MAX( DISTINCT + ( - 60 ) )
----
-128

skipif mysql # not compatible
query I rowsort label-7298
SELECT DISTINCT - 68 + MAX ( DISTINCT + ( - 60 ) )
----
-128

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7300
SELECT - 51 - + + 48 + - - COUNT( * ) / - + 73 * + COUNT( * ) / - CASE + + 99 WHEN + 32 THEN NULL ELSE + CAST( NULL AS SIGNED ) END * - 4 / COUNT( * ) * + 11 * + 19 + + + 27 + + 23 + - 81 - + COUNT( * ) + ( - MAX( 15 ) ) * 58
----
NULL

skipif mysql # not compatible
query I rowsort label-7300
SELECT - 51 - + + 48 + - - COUNT ( * ) / - + 73 * + COUNT ( * ) / - CASE + + 99 WHEN + 32 THEN NULL ELSE + CAST ( NULL AS INTEGER ) END * - 4 / COUNT ( * ) * + 11 * + 19 + + + 27 + + 23 + - 81 - + COUNT ( * ) + ( - MAX ( 15 ) ) * 58
----
NULL

query I rowsort
SELECT + + 7 * COALESCE ( - 64, - 11 * 76 ) * 50 col1
----
-22400

query I rowsort
SELECT DISTINCT + 2 * 70
----
140

query I rowsort
SELECT - + 38 * - 40
----
1520

query I rowsort
SELECT + - 32 * + ( - + 32 ) * + 1
----
1024

query I rowsort
SELECT DISTINCT 26 * 85 * CASE - 91 WHEN COALESCE ( - - 98, + + 32 ) THEN 54 + - 21 END
----
NULL

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

query I rowsort
SELECT + 39 - - 69 AS col2
----
108

query I rowsort
SELECT DISTINCT 63 * - 85
----
-5355

onlyif mysql # aggregate syntax: 
query I rowsort label-7309
SELECT - NULLIF ( COUNT( * ), 22 )
----
-1

skipif mysql # not compatible
query I rowsort label-7309
SELECT - NULLIF ( COUNT ( * ), 22 )
----
-1

query I rowsort
SELECT + 3 + - + 42 AS col2
----
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-7311
SELECT + 9 * CASE + 60 WHEN + + COUNT( * ) THEN COUNT( * ) ELSE + 53 END AS col2
----
477

skipif mysql # not compatible
query I rowsort label-7311
SELECT + 9 * CASE + 60 WHEN + + COUNT ( * ) THEN COUNT ( * ) ELSE + 53 END AS col2
----
477

query I rowsort
SELECT - 44 * - 30
----
1320

onlyif mysql # aggregate syntax: 
query I rowsort label-7313
SELECT - 62 - - NULLIF ( - 60, 33 * - - 7 - COUNT( * ) + + 10 + 37 * - 77 ) + ( + 64 ) + - 50
----
-108

skipif mysql # not compatible
query I rowsort label-7313
SELECT - 62 - - NULLIF ( - 60, 33 * - - 7 - COUNT ( * ) + + 10 + 37 * - 77 ) + ( + 64 ) + - 50
----
-108

onlyif mysql # aggregate syntax: 
query I rowsort label-7314
SELECT + 73 * SUM( DISTINCT 97 ) AS col1
----
7081

skipif mysql # not compatible
query I rowsort label-7314
SELECT + 73 * SUM ( DISTINCT 97 ) AS col1
----
7081

onlyif mysql # aggregate syntax: 
query III rowsort label-7315
SELECT + COUNT( * ) + + 78 * - - ( + 10 ), + 0 * + 26 AS col1, - 5 AS col2
----
781
0
-5

skipif mysql # not compatible
query III rowsort label-7315
SELECT + COUNT ( * ) + + 78 * - - ( + 10 ), + 0 * + 26 AS col1, - 5 AS col2
----
781
0
-5

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7316
SELECT ALL 14 DIV + COUNT( * ) AS col1
----
14

skipif mysql # not compatible
query I rowsort label-7316
SELECT ALL 14 / + COUNT ( * ) AS col1
----
14

query II rowsort
SELECT + 26 + - 11 + - - 57 AS col2, 14 col1
----
72
14

onlyif mysql # DIV for integer division: 
query I rowsort label-7318
SELECT ALL - 32 * 88 DIV 78
----
-36

skipif mysql # not compatible
query I rowsort label-7318
SELECT ALL - 32 * 88 / 78
----
-36

query I rowsort
SELECT ALL 84 * 51
----
4284

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7321
SELECT - SUM( ALL 76 ) / - - ( + + ( + CAST( NULL AS SIGNED ) ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-7321
SELECT - SUM ( ALL 76 ) / - - ( + + ( + CAST ( NULL AS INTEGER ) ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7322
SELECT ALL + + MIN( DISTINCT - + 70 )
----
-70

skipif mysql # not compatible
query I rowsort label-7322
SELECT ALL + + MIN ( DISTINCT - + 70 )
----
-70

query I rowsort
SELECT + + 43 * - - 28
----
1204

onlyif mysql # DIV for integer division: 
query II rowsort label-7324
SELECT 99 AS col1, + 54 DIV + + 50 AS col0
----
99
1

skipif mysql # not compatible
query II rowsort label-7324
SELECT 99 AS col1, + 54 / + + 50 AS col0
----
99
1

query I rowsort
SELECT - ( - 67 ) * NULLIF ( + 70, 25 * + 44 ) AS col2
----
4690

onlyif mysql # aggregate syntax: 
query II rowsort label-7326
SELECT DISTINCT + NULLIF ( + - 99, + MIN( - + COALESCE ( - 13, - 9 * - 84 ) ) ) * + + 30 + - 99 AS col0, ( + 47 )
----
-3069
47

skipif mysql # not compatible
query II rowsort label-7326
SELECT DISTINCT + NULLIF ( + - 99, + MIN ( - + COALESCE ( - 13, - 9 * - 84 ) ) ) * + + 30 + - 99 AS col0, ( + 47 )
----
-3069
47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7327
SELECT ALL + + 4 * - 63 + COALESCE ( MIN( + - 20 ), ( 27 ) ) + - 98 * - CAST( NULL AS SIGNED ) * + 36 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7327
SELECT ALL + + 4 * - 63 + COALESCE ( MIN ( + - 20 ), ( 27 ) ) + - 98 * - CAST ( NULL AS INTEGER ) * + 36 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7328
SELECT DISTINCT - + 82 * - 25 * - COALESCE ( + 79, - - 46 + - + COUNT( * ) + + + 78 - + 65 ) AS col1
----
-161950

skipif mysql # not compatible
query I rowsort label-7328
SELECT DISTINCT - + 82 * - 25 * - COALESCE ( + 79, - - 46 + - + COUNT ( * ) + + + 78 - + 65 ) AS col1
----
-161950

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

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

query I rowsort
SELECT + 11 * + 96 + 21 + + - 89 AS col0
----
988

onlyif mysql # aggregate syntax: 
query II rowsort label-7331
SELECT ALL - MAX( DISTINCT + 33 ) * - - 84, 6 AS col0
----
-2772
6

skipif mysql # not compatible
query II rowsort label-7331
SELECT ALL - MAX ( DISTINCT + 33 ) * - - 84, 6 AS col0
----
-2772
6

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7332
SELECT DISTINCT + 79 * CAST( NULL AS DECIMAL ) - - - ( - 20 ) + - + 70 * ( - + 60 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7332
SELECT DISTINCT + 79 * CAST ( NULL AS REAL ) - - - ( - 20 ) + - + 70 * ( - + 60 ) AS col1
----
NULL

query I rowsort
SELECT - - 92 + + 48 AS col2
----
140

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

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

query I rowsort
SELECT ALL - - 40 * 22
----
880

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

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

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

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

query I rowsort
SELECT + 92 + + 77 AS col1
----
169

onlyif mysql # DIV for integer division: 
query I rowsort label-7340
SELECT - 4 DIV - 78 * + 11
----
0

skipif mysql # not compatible
query I rowsort label-7340
SELECT - 4 / - 78 * + 11
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7341
SELECT DISTINCT + 62 / - + CASE - CAST( NULL AS SIGNED ) WHEN + COUNT( * ) THEN + - COUNT( * ) ELSE NULL END AS col1, - 44 * ( - - ( - - 4 ) ) * - COUNT( * ) + + - 21 + + COUNT( - 87 )
----
NULL
156

skipif mysql # not compatible
query II rowsort label-7341
SELECT DISTINCT + 62 / - + CASE - CAST ( NULL AS INTEGER ) WHEN + COUNT ( * ) THEN + - COUNT ( * ) ELSE NULL END AS col1, - 44 * ( - - ( - - 4 ) ) * - COUNT ( * ) + + - 21 + + COUNT ( - 87 )
----
NULL
156

query I rowsort
SELECT + 86 + + 31
----
117

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

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

query II rowsort
SELECT ALL 50 * + 76, ( COALESCE ( - COALESCE ( + 29, - 50 * + 10 * 87 ), 65 ) ) AS col0
----
3800
-29

query I rowsort
SELECT - NULLIF ( 30, 44 * - 1 )
----
-30

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7346
SELECT ALL 44 * - - CAST( NULL AS SIGNED ) col0, 74
----
NULL
74

skipif mysql # not compatible
query II rowsort label-7346
SELECT ALL 44 * - - CAST ( NULL AS INTEGER ) col0, 74
----
NULL
74

query I rowsort
SELECT - CASE 96 WHEN - 13 THEN NULL ELSE 13 END
----
-13

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

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

query I rowsort
SELECT ALL 96 + + - 17 + 68 + 86 + 39 * - + 30 AS col1
----
-937

onlyif mysql # DIV for integer division: 
query I rowsort label-7350
SELECT ALL 89 DIV + 97 + + - 91 DIV 22
----
-4

skipif mysql # not compatible
query I rowsort label-7350
SELECT ALL 89 / + 97 + + - 91 / 22
----
-4

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7352
SELECT - 55 * + 31 + CAST( - - 18 AS SIGNED )
----
-1687

skipif mysql # not compatible
query I rowsort label-7352
SELECT - 55 * + 31 + CAST ( - - 18 AS INTEGER )
----
-1687

query I rowsort
SELECT ALL 74 + 27
----
101

query I rowsort
SELECT ALL 83 + - 99 AS col0
----
-16

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

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

query I rowsort
SELECT DISTINCT - - 46 + 34 * 62
----
2154

query I rowsort
SELECT - 85 * - ( 49 )
----
4165

onlyif mysql # aggregate syntax: 
query I rowsort label-7358
SELECT ALL - COUNT( + - 91 ) * - ( - 23 ) * + COUNT( * ) + NULLIF ( - 82, + 46 ) + - + COUNT( * ) * 85 AS col0
----
-190

skipif mysql # not compatible
query I rowsort label-7358
SELECT ALL - COUNT ( + - 91 ) * - ( - 23 ) * + COUNT ( * ) + NULLIF ( - 82, + 46 ) + - + COUNT ( * ) * 85 AS col0
----
-190

query I rowsort
SELECT + 9 * + 29 + - 70 AS col2
----
191

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7360
SELECT 91 + + CAST( + 88 AS SIGNED ) AS col2
----
179

skipif mysql # not compatible
query I rowsort label-7360
SELECT 91 + + CAST ( + 88 AS INTEGER ) AS col2
----
179

onlyif mysql # aggregate syntax: 
query I rowsort label-7361
SELECT DISTINCT + SUM( 49 ) - - 90
----
139

skipif mysql # not compatible
query I rowsort label-7361
SELECT DISTINCT + SUM ( 49 ) - - 90
----
139

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7363
SELECT DISTINCT CASE + - 36 WHEN MIN( 74 ) THEN + 46 END
----
NULL

skipif mysql # not compatible
query I rowsort label-7363
SELECT DISTINCT CASE + - 36 WHEN MIN ( 74 ) THEN + 46 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7364
SELECT - 1 + 2 - + 94 - + COUNT( * ) * + COUNT( * ) * + + 27 * + + 4 col1
----
-201

skipif mysql # not compatible
query I rowsort label-7364
SELECT - 1 + 2 - + 94 - + COUNT ( * ) * + COUNT ( * ) * + + 27 * + + 4 col1
----
-201

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7365
SELECT - 96, COALESCE ( + + CAST( 1 AS SIGNED ), - + 4 * + + 34 * + 26 ) AS col2
----
-96
1

skipif mysql # not compatible
query II rowsort label-7365
SELECT - 96, COALESCE ( + + CAST ( 1 AS INTEGER ), - + 4 * + + 34 * + 26 ) AS col2
----
-96
1

query I rowsort
SELECT COALESCE ( - 26, 8, - NULLIF ( 73, 18 ) ) * 99 AS col1
----
-2574

query I rowsort
SELECT 58 * - 57 AS col0
----
-3306

query I rowsort
SELECT 29 - - 44 + + 20 * + 94
----
1953

onlyif mysql # aggregate syntax: 
query I rowsort label-7369
SELECT DISTINCT + 58 * + - 96 * - + COUNT( * ) AS col1
----
5568

skipif mysql # not compatible
query I rowsort label-7369
SELECT DISTINCT + 58 * + - 96 * - + COUNT ( * ) AS col1
----
5568

query I rowsort
SELECT ALL + 49 * - - 38
----
1862

query I rowsort
SELECT 48 * - 37
----
-1776

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7372
SELECT ALL - 77 + - + 70 * - AVG ( CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-7372
SELECT ALL - 77 + - + 70 * - AVG ( CAST ( NULL AS INTEGER ) )
----
NULL

query I rowsort
SELECT 64 - - 28 AS col2
----
92

onlyif mysql # aggregate syntax: 
query I rowsort label-7374
SELECT ALL 97 + + MIN( ALL - + 49 ) + COALESCE ( - 5, 27 ) - 33 AS col1
----
10

skipif mysql # not compatible
query I rowsort label-7374
SELECT ALL 97 + + MIN ( ALL - + 49 ) + COALESCE ( - 5, 27 ) - 33 AS col1
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-7375
SELECT DISTINCT + 32 + - ( MIN( - + 84 ) ) + - 43 * 10 AS col1
----
-314

skipif mysql # not compatible
query I rowsort label-7375
SELECT DISTINCT + 32 + - ( MIN ( - + 84 ) ) + - 43 * 10 AS col1
----
-314

onlyif mysql # aggregate syntax: 
query I rowsort label-7376
SELECT 54 + + 85 - + 41 + 34 - + COUNT( * ) * - 62 + + - 39 AS col0
----
155

skipif mysql # not compatible
query I rowsort label-7376
SELECT 54 + + 85 - + 41 + 34 - + COUNT ( * ) * - 62 + + - 39 AS col0
----
155

query I rowsort
SELECT DISTINCT - 69 + - 44
----
-113

query I rowsort
SELECT 73 + ( + - 44 )
----
29

query I rowsort
SELECT 8 - + 32 * 9
----
-280

query I rowsort
SELECT DISTINCT 63 * + 96
----
6048

onlyif mysql # aggregate syntax: 
query I rowsort label-7381
SELECT ALL 72 + + COUNT( * ) * + 41
----
113

skipif mysql # not compatible
query I rowsort label-7381
SELECT ALL 72 + + COUNT ( * ) * + 41
----
113

onlyif mysql # aggregate syntax: 
query I rowsort label-7382
SELECT + COUNT( * ) + + 33 * 17 * 66 * - - 45 * + MIN( ALL - 40 )
----
-66646799

skipif mysql # not compatible
query I rowsort label-7382
SELECT + COUNT ( * ) + + 33 * 17 * 66 * - - 45 * + MIN ( ALL - 40 )
----
-66646799

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7383
SELECT 3 * + 74 * - ( + COUNT( * ) ) + + COUNT( * ) DIV - 8 + + 3 * + - ( + - 52 ) * - - ( - NULLIF ( + - COUNT( * ), + 80 ) ) col2
----
-66

skipif mysql # not compatible
query I rowsort label-7383
SELECT 3 * + 74 * - ( + COUNT ( * ) ) + + COUNT ( * ) / - 8 + + 3 * + - ( + - 52 ) * - - ( - NULLIF ( + - COUNT ( * ), + 80 ) ) col2
----
-66

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7384
SELECT DISTINCT 30 * CAST( NULL AS SIGNED ) - + - 5 + + - 12 * - COUNT( * ) * - + CAST( 56 AS SIGNED ) - - + 98 + - MAX( 80 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7384
SELECT DISTINCT 30 * CAST ( NULL AS INTEGER ) - + - 5 + + - 12 * - COUNT ( * ) * - + CAST ( 56 AS INTEGER ) - - + 98 + - MAX ( 80 ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7385
SELECT + COUNT( * ) * + MAX( 33 ) + - 47 * 11 AS col0
----
-484

skipif mysql # not compatible
query I rowsort label-7385
SELECT + COUNT ( * ) * + MAX ( 33 ) + - 47 * 11 AS col0
----
-484

query II rowsort
SELECT DISTINCT - + 57 AS col2, - 63 + + 27 + 28 AS col1
----
-57
-8

query I rowsort
SELECT 16 + - 14
----
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7388
SELECT DISTINCT + 14 - + - 83 + + 82 - - - 48 + - 42 * CASE 15 WHEN 48 * AVG ( - 39 ) * - 38 THEN NULL WHEN + CAST( - 50 AS SIGNED ) THEN NULL WHEN 83 + + COUNT( * ) + - - COUNT( * ) - + - CAST( NULL AS DECIMAL ) * + - AVG ( ALL - + 88 ) * + 22 THEN NULL ELSE - 17 END + - 74
----
771

skipif mysql # not compatible
query I rowsort label-7388
SELECT DISTINCT + 14 - + - 83 + + 82 - - - 48 + - 42 * CASE 15 WHEN 48 * AVG ( - 39 ) * - 38 THEN NULL WHEN + CAST ( - 50 AS INTEGER ) THEN NULL WHEN 83 + + COUNT ( * ) + - - COUNT ( * ) - + - CAST ( NULL AS REAL ) * + - AVG ( ALL - + 88 ) * + 22 THEN NULL ELSE - 17 END + - 74
----
771

query I rowsort
SELECT 63 * 5 col0
----
315

query I rowsort
SELECT ALL - ( + 37 )
----
-37

query I rowsort
SELECT ALL 2 * 65
----
130

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

skipif mysql # not compatible
query I rowsort label-7392
SELECT 55 / - + MAX ( DISTINCT - CAST ( NULL AS INTEGER ) ) + + 42
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7393
SELECT ALL - SUM( 84 ) DIV - - 9
----
-9

skipif mysql # not compatible
query I rowsort label-7393
SELECT ALL - SUM ( 84 ) / - - 9
----
-9

onlyif mysql # DIV for integer division: 
query I rowsort label-7394
SELECT DISTINCT + + 39 - - 90 * 30 DIV + 42 AS col2
----
103

skipif mysql # not compatible
query I rowsort label-7394
SELECT DISTINCT + + 39 - - 90 * 30 / + 42 AS col2
----
103

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7395
SELECT COUNT( * ) DIV + 57 DIV + - 2 + 36 * - 51
----
-1836

skipif mysql # not compatible
query I rowsort label-7395
SELECT COUNT ( * ) / + 57 / + - 2 + 36 * - 51
----
-1836

onlyif mysql # DIV for integer division: 
query I rowsort label-7396
SELECT 58 DIV + ( + + 6 ) AS col2
----
9

skipif mysql # not compatible
query I rowsort label-7396
SELECT 58 / + ( + + 6 ) AS col2
----
9

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7398
SELECT 64 - 37 * + MIN( + CAST( NULL AS SIGNED ) ) * + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-7398
SELECT 64 - 37 * + MIN ( + CAST ( NULL AS INTEGER ) ) * + COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7399
SELECT COUNT( * ) + + 58 col2
----
59

skipif mysql # not compatible
query I rowsort label-7399
SELECT COUNT ( * ) + + 58 col2
----
59

query I rowsort
SELECT + 45 * - ( 23 ) - + + 99 AS col2
----
-1134

query II rowsort
SELECT ALL 52, 18 AS col0
----
52
18

query I rowsort
SELECT ( - 32 ) * - ( - - 39 ) AS col2
----
1248

query I rowsort
SELECT ALL + 45 + - + ( + 41 ) - - 13 + + - 41 AS col2
----
-24

query I rowsort
SELECT 64 + + 15 + + 67
----
146

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7405
SELECT ALL 63 AS col2, CAST( NULL AS SIGNED )
----
63
NULL

skipif mysql # not compatible
query II rowsort label-7405
SELECT ALL 63 AS col2, CAST ( NULL AS INTEGER )
----
63
NULL

query I rowsort
SELECT 73 + - - 48 AS col2
----
121

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7408
SELECT 83 + 1 * - NULLIF ( 44, - 43 * - 56 - + ( - 21 ) ) + MAX( - + 16 ) AS col1
----
23

skipif mysql # not compatible
query I rowsort label-7408
SELECT 83 + 1 * - NULLIF ( 44, - 43 * - 56 - + ( - 21 ) ) + MAX ( - + 16 ) AS col1
----
23

query I rowsort
SELECT ALL + 46 + + - 29 AS col2
----
17

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7411
SELECT 22 col2, COUNT( * ) DIV - COUNT( * ) AS col0
----
22
-1

skipif mysql # not compatible
query II rowsort label-7411
SELECT 22 col2, COUNT ( * ) / - COUNT ( * ) AS col0
----
22
-1

query II rowsort
SELECT ALL - 82 + 54 col1, + 5 + + COALESCE ( - - 80, + 68 ) col1
----
-28
85

query II rowsort
SELECT 95, 54 * - 79 * - ( - - 44 ) AS col1
----
95
187704

query I rowsort
SELECT 99 + + 65 AS col0
----
164

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

skipif mysql # not compatible
query II rowsort label-7415
SELECT ALL COUNT ( * ), CAST ( CAST ( + - 6 AS INTEGER ) AS INTEGER ) AS col2
----
1
-6

query I rowsort
SELECT ALL + 10 * - + 22 * - 0 * 81 AS col2
----
0

query I rowsort
SELECT DISTINCT 84 + - 11 AS col2
----
73

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7418
SELECT - 91 col1, - CAST( NULL AS SIGNED ) AS col2
----
-91
NULL

skipif mysql # not compatible
query II rowsort label-7418
SELECT - 91 col1, - CAST ( NULL AS INTEGER ) AS col2
----
-91
NULL

query I rowsort
SELECT ALL + ( ( 75 ) ) * - + ( + NULLIF ( + + 87, - 99 ) ) + + 21 AS col1
----
-6504

onlyif mysql # aggregate syntax: 
query I rowsort label-7420
SELECT DISTINCT SUM( DISTINCT + 37 ) - 34 * 88 * 32
----
-95707

skipif mysql # not compatible
query I rowsort label-7420
SELECT DISTINCT SUM ( DISTINCT + 37 ) - 34 * 88 * 32
----
-95707

query II rowsort
SELECT 24 AS col0, 86 + + 46
----
24
132

query II rowsort
SELECT ALL + 68 * - - 42 - + + ( + 11 ), + 81 AS col0
----
2845
81

onlyif mysql # DIV for integer division: 
query I rowsort label-7423
SELECT - 93 DIV 35
----
-2

skipif mysql # not compatible
query I rowsort label-7423
SELECT - 93 / 35
----
-2

query I rowsort
SELECT - 62 * + 2 * 74 AS col2
----
-9176

query II rowsort
SELECT ALL + 11, - 30 * - 25 AS col0
----
11
750

query I rowsort
SELECT - COALESCE ( - - 13, - 21 ) - - 4
----
-9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7427
SELECT ALL - + COALESCE ( ( - 51 ), CASE - COUNT( * ) WHEN - 67 THEN - - COUNT( * ) * - 57 WHEN + COUNT( + - 54 ) * + 43 THEN NULL WHEN 13 THEN NULL ELSE NULL END, + - CAST( + 23 AS SIGNED ) ) * + 56
----
2856

skipif mysql # not compatible
query I rowsort label-7427
SELECT ALL - + COALESCE ( ( - 51 ), CASE - COUNT ( * ) WHEN - 67 THEN - - COUNT ( * ) * - 57 WHEN + COUNT ( + - 54 ) * + 43 THEN NULL WHEN 13 THEN NULL ELSE NULL END, + - CAST ( + 23 AS INTEGER ) ) * + 56
----
2856

query I rowsort
SELECT - + 80 * 22 AS col1
----
-1760

query II rowsort
SELECT DISTINCT + - 7 col2, + 74 col0
----
-7
74

onlyif mysql # aggregate syntax: 
query I rowsort label-7430
SELECT ALL + COUNT( 96 )
----
1

skipif mysql # not compatible
query I rowsort label-7430
SELECT ALL + COUNT ( 96 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7431
SELECT - 41 * COUNT( * ) - - 54
----
13

skipif mysql # not compatible
query I rowsort label-7431
SELECT - 41 * COUNT ( * ) - - 54
----
13

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

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

query I rowsort
SELECT + 78 * ( - 24 ) AS col2
----
-1872

query I rowsort
SELECT ALL + - 20 * + 25 AS col0
----
-500

onlyif mysql # aggregate syntax: 
query I rowsort label-7435
SELECT - SUM( - 6 ) * - - SUM( ALL + 74 ) + - + 84 AS col2
----
360

skipif mysql # not compatible
query I rowsort label-7435
SELECT - SUM ( - 6 ) * - - SUM ( ALL + 74 ) + - + 84 AS col2
----
360

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7436
SELECT + ( CAST( NULL AS SIGNED ) ) + 36 * 65 * COUNT( * ) * + 31 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7436
SELECT + ( CAST ( NULL AS INTEGER ) ) + 36 * 65 * COUNT ( * ) * + 31 col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7437
SELECT 22 * - 73 - + 29 + + ( - NULLIF ( 10, 54 ) ) * NULLIF ( - 90, + COUNT( * ) * - 42 + ( - 89 ) )
----
-735

skipif mysql # not compatible
query I rowsort label-7437
SELECT 22 * - 73 - + 29 + + ( - NULLIF ( 10, 54 ) ) * NULLIF ( - 90, + COUNT ( * ) * - 42 + ( - 89 ) )
----
-735

onlyif mysql # aggregate syntax: 
query I rowsort label-7438
SELECT MIN( - 9 )
----
-9

skipif mysql # not compatible
query I rowsort label-7438
SELECT MIN ( - 9 )
----
-9

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7439
SELECT ALL MIN( 89 ) * 82 DIV - + 54 + + COUNT( * ) AS col2, - 87
----
-134
-87

skipif mysql # not compatible
query II rowsort label-7439
SELECT ALL MIN ( 89 ) * 82 / - + 54 + + COUNT ( * ) AS col2, - 87
----
-134
-87

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7440
SELECT DISTINCT + CASE 81 WHEN 73 THEN + CAST( NULL AS DECIMAL ) WHEN 18 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-7440
SELECT DISTINCT + CASE 81 WHEN 73 THEN + CAST ( NULL AS REAL ) WHEN 18 THEN NULL END
----
NULL

query II rowsort
SELECT ALL 97 * + 98 + + 77 col2, 87
----
9583
87

query I rowsort
SELECT + 91 - 49 * 57 AS col0
----
-2702

onlyif mysql # aggregate syntax: 
query I rowsort label-7443
SELECT + CASE - - 85 WHEN - - 50 THEN 18 * + 61 + + - ( 99 ) WHEN 92 THEN - - 45 ELSE 54 + + + COALESCE ( + 15, + 56 + - NULLIF ( MIN( + 89 ), + 50 - - 50 + 50 * 32 * + 65 ) ) END - + + MAX( DISTINCT 77 ) * + COALESCE ( COUNT( * ), - 6 ) AS col0
----
-8

skipif mysql # not compatible
query I rowsort label-7443
SELECT + CASE - - 85 WHEN - - 50 THEN 18 * + 61 + + - ( 99 ) WHEN 92 THEN - - 45 ELSE 54 + + + COALESCE ( + 15, + 56 + - NULLIF ( MIN ( + 89 ), + 50 - - 50 + 50 * 32 * + 65 ) ) END - + + MAX ( DISTINCT 77 ) * + COALESCE ( COUNT ( * ), - 6 ) AS col0
----
-8

query II rowsort
SELECT DISTINCT 79 * - 70 AS col0, 2
----
-5530
2

onlyif mysql # DIV for integer division: 
query I rowsort label-7445
SELECT - 49 DIV + 6
----
-8

skipif mysql # not compatible
query I rowsort label-7445
SELECT - 49 / + 6
----
-8

onlyif mysql # aggregate syntax: 
query II rowsort label-7446
SELECT ALL MIN( + 76 ), - COUNT( * ) AS col0
----
76
-1

skipif mysql # not compatible
query II rowsort label-7446
SELECT ALL MIN ( + 76 ), - COUNT ( * ) AS col0
----
76
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-7447
SELECT DISTINCT 72 DIV - ( 43 )
----
-1

skipif mysql # not compatible
query I rowsort label-7447
SELECT DISTINCT 72 / - ( 43 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7448
SELECT ALL + 15 - CASE - 62 WHEN - MIN( + + 60 ) THEN 20 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-7448
SELECT ALL + 15 - CASE - 62 WHEN - MIN ( + + 60 ) THEN 20 ELSE NULL END
----
NULL

query I rowsort
SELECT DISTINCT 43 * 16 * - 54
----
-37152

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7450
SELECT ALL COALESCE ( - 99, - ( 54 ) DIV 94 * + - COUNT( * ) ) AS col2
----
-99

skipif mysql # not compatible
query I rowsort label-7450
SELECT ALL COALESCE ( - 99, - ( 54 ) / 94 * + - COUNT ( * ) ) AS col2
----
-99

query I rowsort
SELECT ALL + 50 * + - ( + 15 ) - - ( + 91 ) col0
----
-659

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7452
SELECT + CAST( 76 AS SIGNED ) + + 82
----
158

skipif mysql # not compatible
query I rowsort label-7452
SELECT + CAST ( 76 AS INTEGER ) + + 82
----
158

query I rowsort
SELECT + - 0 + + + 72 + - 5 * 4 * + 46 + - ( - 12 )
----
-836

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7454
SELECT - + COUNT( DISTINCT 0 ) * - 76 AS col2, 41 * + 49 DIV + 7 AS col0
----
76
287

skipif mysql # not compatible
query II rowsort label-7454
SELECT - + COUNT ( DISTINCT 0 ) * - 76 AS col2, 41 * + 49 / + 7 AS col0
----
76
287

query I rowsort
SELECT ALL - - 73 * + 80 * 32
----
186880

onlyif mysql # DIV for integer division: 
query I rowsort label-7456
SELECT - - 20 - 59 DIV 11 + COALESCE ( 75, + NULLIF ( - 78, - + 45 DIV + 99 ), - 67 ) AS col0
----
90

skipif mysql # not compatible
query I rowsort label-7456
SELECT - - 20 - 59 / 11 + COALESCE ( 75, + NULLIF ( - 78, - + 45 / + 99 ), - 67 ) AS col0
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-7457
SELECT - - 51 + - 85 + - COUNT( * ) col0
----
-35

skipif mysql # not compatible
query I rowsort label-7457
SELECT - - 51 + - 85 + - COUNT ( * ) col0
----
-35

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

skipif mysql # not compatible
query I rowsort label-7458
SELECT DISTINCT + COUNT ( ALL + 65 ) col2
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-7459
SELECT - 40 + + 38 AS col2, COUNT( * )
----
-2
1

skipif mysql # not compatible
query II rowsort label-7459
SELECT - 40 + + 38 AS col2, COUNT ( * )
----
-2
1

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

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

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

skipif mysql # not compatible
query I rowsort label-7461
SELECT DISTINCT + AVG ( - CAST ( NULL AS INTEGER ) ) AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7462
SELECT + + 41 DIV - - 23 + 65 + + 8 * - SUM( ALL + 82 ) AS col0
----
-590

skipif mysql # not compatible
query I rowsort label-7462
SELECT + + 41 / - - 23 + 65 + + 8 * - SUM ( ALL + 82 ) AS col0
----
-590

query I rowsort
SELECT - + 93 * 37 AS col1
----
-3441

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7464
SELECT + NULLIF ( - 26, COALESCE ( + CAST( NULL AS SIGNED ), - CAST( NULL AS SIGNED ) ) - 34 ) col0
----
-26

skipif mysql # not compatible
query I rowsort label-7464
SELECT + NULLIF ( - 26, COALESCE ( + CAST ( NULL AS INTEGER ), - CAST ( NULL AS INTEGER ) ) - 34 ) col0
----
-26

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

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

query I rowsort
SELECT + 26 * - 24 + + - 2 AS col0
----
-626

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7467
SELECT ALL 18 * CAST( - 91 AS SIGNED ) + - 15 - + COUNT( * ) * - + 67 - 4 AS col1
----
-1590

skipif mysql # not compatible
query I rowsort label-7467
SELECT ALL 18 * CAST ( - 91 AS INTEGER ) + - 15 - + COUNT ( * ) * - + 67 - 4 AS col1
----
-1590

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7468
SELECT ALL 87 * - CAST( - 21 AS SIGNED ) + - - 26 * - COUNT( * ) col0
----
1801

skipif mysql # not compatible
query I rowsort label-7468
SELECT ALL 87 * - CAST ( - 21 AS INTEGER ) + - - 26 * - COUNT ( * ) col0
----
1801

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7469
SELECT DISTINCT + 35, - COUNT( * ) * 66 * CASE MIN( DISTINCT - 38 ) WHEN - 39 * + COUNT( * ) * + 16 * - 80 THEN + + CAST( 18 AS SIGNED ) ELSE 45 * - 39 / 34 + CAST( NULL AS SIGNED ) END * - + 16 AS col1
----
35
NULL

skipif mysql # not compatible
query II rowsort label-7469
SELECT DISTINCT + 35, - COUNT ( * ) * 66 * CASE MIN ( DISTINCT - 38 ) WHEN - 39 * + COUNT ( * ) * + 16 * - 80 THEN + + CAST ( 18 AS INTEGER ) ELSE 45 * - 39 / 34 + CAST ( NULL AS INTEGER ) END * - + 16 AS col1
----
35
NULL

query I rowsort
SELECT ALL 97 * - 3 AS col1
----
-291

onlyif mysql # aggregate syntax: 
query I rowsort label-7471
SELECT ALL 55 * + 54 + + COUNT( * ) * ( + 3 )
----
2973

skipif mysql # not compatible
query I rowsort label-7471
SELECT ALL 55 * + 54 + + COUNT ( * ) * ( + 3 )
----
2973

query I rowsort
SELECT NULLIF ( - 4, - 64 * + 85 ) AS col1
----
-4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7473
SELECT CAST( NULL AS SIGNED ) * MIN( DISTINCT - 75 ) - - 59
----
NULL

skipif mysql # not compatible
query I rowsort label-7473
SELECT CAST ( NULL AS INTEGER ) * MIN ( DISTINCT - 75 ) - - 59
----
NULL

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

query II rowsort
SELECT - 24 AS col2, + 25
----
-24
25

query I rowsort
SELECT ALL 31 - + 66 col2
----
-35

query I rowsort
SELECT 89 + 23 AS col0
----
112

query II rowsort
SELECT 58 col2, 7 + + 19 + - 94 AS col2
----
58
-68

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

skipif mysql # not compatible
query I rowsort label-7479
SELECT 1 * - + 70 / + 84 * 9 * - COUNT ( * ) AS col1
----
0

query II rowsort
SELECT ALL 84 * - 71 * + 93 AS col0, 70
----
-554652
70

query I rowsort
SELECT 8 + 31
----
39

query I rowsort
SELECT ALL 95 - + + 63 * + 20
----
-1165

onlyif mysql # DIV for integer division: 
query I rowsort label-7483
SELECT 79 * 66 DIV 65 DIV 38
----
2

skipif mysql # not compatible
query I rowsort label-7483
SELECT 79 * 66 / 65 / 38
----
2

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

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

query I rowsort
SELECT ALL - 60 * - - 68 AS col0
----
-4080

query I rowsort
SELECT ( - 6 ) + + - 69 * + 34 AS col1
----
-2352

query I rowsort
SELECT DISTINCT + ( + - 66 ) * - + 11 AS col0
----
726

query I rowsort
SELECT + 2 * + 35 * + - ( 89 ) AS col1
----
-6230

onlyif mysql # DIV for integer division: 
query II rowsort label-7489
SELECT ALL 41 DIV + - 69 + 12 AS col1, ( - 58 )
----
12
-58

skipif mysql # not compatible
query II rowsort label-7489
SELECT ALL 41 / + - 69 + 12 AS col1, ( - 58 )
----
12
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-7490
SELECT DISTINCT + MIN( 93 )
----
93

skipif mysql # not compatible
query I rowsort label-7490
SELECT DISTINCT + MIN ( 93 )
----
93

query I rowsort
SELECT ALL + COALESCE ( + - 72, - + 64 + 21 * + 16 ) + + 80 AS col0
----
8

query I rowsort
SELECT NULLIF ( + 39, - 25 ) AS col1
----
39

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

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

query I rowsort
SELECT ALL - 17 + + 73 AS col1
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-7495
SELECT + COALESCE ( + + 68, - 52, - + COUNT( * ) * - MAX( DISTINCT - + 59 ) ) - - - 69
----
-1

skipif mysql # not compatible
query I rowsort label-7495
SELECT + COALESCE ( + + 68, - 52, - + COUNT ( * ) * - MAX ( DISTINCT - + 59 ) ) - - - 69
----
-1

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

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

query I rowsort
SELECT + 87 * + 33
----
2871

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7499
SELECT + 91, CASE - + 35 WHEN 0 THEN NULL ELSE CAST( NULL AS SIGNED ) END col2
----
91
NULL

skipif mysql # not compatible
query II rowsort label-7499
SELECT + 91, CASE - + 35 WHEN 0 THEN NULL ELSE CAST ( NULL AS INTEGER ) END col2
----
91
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7500
SELECT CASE + 77 WHEN 70 * + COUNT( * ) THEN NULL ELSE + 20 END * 93
----
1860

skipif mysql # not compatible
query I rowsort label-7500
SELECT CASE + 77 WHEN 70 * + COUNT ( * ) THEN NULL ELSE + 20 END * 93
----
1860

query I rowsort
SELECT 67 + - 1
----
66

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7502
SELECT DISTINCT + SUM( DISTINCT - 94 ) DIV + 82 DIV + 1, 93 AS col2
----
-1
93

skipif mysql # not compatible
query II rowsort label-7502
SELECT DISTINCT + SUM ( DISTINCT - 94 ) / + 82 / + 1, 93 AS col2
----
-1
93

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7503
SELECT ALL - 14 - + NULLIF ( - COALESCE ( + COUNT( * ), 7, + 46 ), 24 ) + - - COALESCE ( MAX( + - ( + + 68 ) ), - - 23 ) - - - 95 DIV + - ( + SUM( + - 43 ) ) AS col0
----
-83

skipif mysql # not compatible
query I rowsort label-7503
SELECT ALL - 14 - + NULLIF ( - COALESCE ( + COUNT ( * ), 7, + 46 ), 24 ) + - - COALESCE ( MAX ( + - ( + + 68 ) ), - - 23 ) - - - 95 / + - ( + SUM ( + - 43 ) ) AS col0
----
-83

query I rowsort
SELECT ALL + 51 * - 22 / + 98 * + CASE - 13 WHEN - 64 THEN + 85 WHEN + + 34 * - 62 THEN NULL END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7505
SELECT 89 DIV + ( - - 60 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-7505
SELECT 89 / + ( - - 60 ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7506
SELECT DISTINCT - COALESCE ( + 84, + + ( - SUM( ALL 98 ) ) + - NULLIF ( - - 14, - 96 ) )
----
-84

skipif mysql # not compatible
query I rowsort label-7506
SELECT DISTINCT - COALESCE ( + 84, + + ( - SUM ( ALL 98 ) ) + - NULLIF ( - - 14, - 96 ) )
----
-84

query II rowsort
SELECT DISTINCT 25 * + + 12, - 63 * - 51 + - 25 + - + 42 AS col0
----
300
3146

query II rowsort
SELECT ALL - 97 * + + COALESCE ( + 93, - - 6 ), + 82 + + 92 + 45 col2
----
-9021
219

query I rowsort
SELECT 82 * + - 45 AS col1
----
-3690

onlyif mysql # aggregate syntax: 
query I rowsort label-7510
SELECT 88 - COUNT( * ) * - 11
----
99

skipif mysql # not compatible
query I rowsort label-7510
SELECT 88 - COUNT ( * ) * - 11
----
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7511
SELECT 24 * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7511
SELECT 24 * - CAST ( NULL AS INTEGER )
----
NULL

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

skipif mysql # not compatible
query I rowsort label-7512
SELECT ALL SUM ( - - 63 )
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-7513
SELECT 98 + + + 68 * + + MAX( ALL + 22 ) AS col2
----
1594

skipif mysql # not compatible
query I rowsort label-7513
SELECT 98 + + + 68 * + + MAX ( ALL + 22 ) AS col2
----
1594

onlyif mysql # aggregate syntax: 
query I rowsort label-7514
SELECT DISTINCT + MIN( DISTINCT 70 ) AS col1
----
70

skipif mysql # not compatible
query I rowsort label-7514
SELECT DISTINCT + MIN ( DISTINCT 70 ) AS col1
----
70

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7515
SELECT DISTINCT NULLIF ( - 20, 42 ) DIV 43 AS col0, + MAX( ALL + + 92 ) - 24
----
0
68

skipif mysql # not compatible
query II rowsort label-7515
SELECT DISTINCT NULLIF ( - 20, 42 ) / 43 AS col0, + MAX ( ALL + + 92 ) - 24
----
0
68

query I rowsort
SELECT - 99 * 48
----
-4752

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7517
SELECT ALL + COUNT( * ) + - 53 AS col2, COALESCE ( - 15, + + COALESCE ( + - COALESCE ( + 88, CASE - 34 WHEN - CAST( NULL AS SIGNED ) THEN - 54 WHEN ( 58 ) THEN - 74 ELSE - 90 END ), - CAST( - 36 AS SIGNED ) ) ) * + CAST( + - 43 AS SIGNED ) + 65 + 17 * 35 AS col1
----
-52
1305

skipif mysql # not compatible
query II rowsort label-7517
SELECT ALL + COUNT ( * ) + - 53 AS col2, COALESCE ( - 15, + + COALESCE ( + - COALESCE ( + 88, CASE - 34 WHEN - CAST ( NULL AS INTEGER ) THEN - 54 WHEN ( 58 ) THEN - 74 ELSE - 90 END ), - CAST ( - 36 AS INTEGER ) ) ) * + CAST ( + - 43 AS INTEGER ) + 65 + 17 * 35 AS col1
----
-52
1305

query I rowsort
SELECT + 8 - 21
----
-13

onlyif mysql # aggregate syntax: DIV for integer division: 
query III rowsort label-7519
SELECT ALL + 6 * 16 col0, + 40 - - COUNT( * ) DIV - - 30 AS col0, + 69
----
96
40
69

skipif mysql # not compatible
query III rowsort label-7519
SELECT ALL + 6 * 16 col0, + 40 - - COUNT ( * ) / - - 30 AS col0, + 69
----
96
40
69

onlyif mysql # aggregate syntax: 
query I rowsort label-7520
SELECT ALL + 48 + + 68 * - 57 * + MAX( ALL 5 ) * + + 71 * - 46
----
63295128

skipif mysql # not compatible
query I rowsort label-7520
SELECT ALL + 48 + + 68 * - 57 * + MAX ( ALL 5 ) * + + 71 * - 46
----
63295128

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7522
SELECT + 66 DIV + 26 AS col2
----
2

skipif mysql # not compatible
query I rowsort label-7522
SELECT + 66 / + 26 AS col2
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-7523
SELECT + 36 + - COUNT( ALL + - 2 ) AS col0
----
35

skipif mysql # not compatible
query I rowsort label-7523
SELECT + 36 + - COUNT ( ALL + - 2 ) AS col0
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-7524
SELECT + 75 + + COUNT( * ) AS col0
----
76

skipif mysql # not compatible
query I rowsort label-7524
SELECT + 75 + + COUNT ( * ) AS col0
----
76

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7526
SELECT 55 + - - 79 DIV + ( 26 )
----
58

skipif mysql # not compatible
query I rowsort label-7526
SELECT 55 + - - 79 / + ( 26 )
----
58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7527
SELECT ALL + 13 + + - 46 + - ( 18 ) * + + 65 - + CAST( NULL AS SIGNED ) - + - 86 - - COUNT( * ) * + + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-7527
SELECT ALL + 13 + + - 46 + - ( 18 ) * + + 65 - + CAST ( NULL AS INTEGER ) - + - 86 - - COUNT ( * ) * + + COUNT ( * )
----
NULL

query I rowsort
SELECT - 2 + 1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7529
SELECT ALL COUNT( + - 46 )
----
1

skipif mysql # not compatible
query I rowsort label-7529
SELECT ALL COUNT ( + - 46 )
----
1

query I rowsort
SELECT ALL - ( 99 ) * 45 + 16 AS col0
----
-4439

query I rowsort
SELECT ALL 51 * + 62 + - 33 + + ( + + 22 ) AS col2
----
3151

onlyif mysql # aggregate syntax: 
query I rowsort label-7532
SELECT CASE - 97 WHEN SUM( + + 70 ) THEN - 24 + + CASE 51 WHEN - - 98 THEN - - COUNT( 93 ) * 0 * MIN( 47 ) + - + 31 + NULLIF ( + 43, 1 ) - - 96 - + 89 / - 11 + - COUNT( * ) WHEN - + ( - + 72 ) THEN NULL END + + 27 * + 84 END * 19 + 26 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7532
SELECT CASE - 97 WHEN SUM ( + + 70 ) THEN - 24 + + CASE 51 WHEN - - 98 THEN - - COUNT ( 93 ) * 0 * MIN ( 47 ) + - + 31 + NULLIF ( + 43, 1 ) - - 96 - + 89 / - 11 + - COUNT ( * ) WHEN - + ( - + 72 ) THEN NULL END + + 27 * + 84 END * 19 + 26 AS col0
----
NULL

query I rowsort
SELECT + COALESCE ( + - 3, 66 + + 79 )
----
-3

query I rowsort
SELECT + 68 + - ( 75 ) col0
----
-7

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7536
SELECT + 41 * + 4 * - MIN( 74 ) * - 75 * - 20 + - COUNT( * ) + - COUNT( ALL - 13 ) * - 37 - - 32
----
-18203932

skipif mysql # not compatible
query I rowsort label-7536
SELECT + 41 * + 4 * - MIN ( 74 ) * - 75 * - 20 + - COUNT ( * ) + - COUNT ( ALL - 13 ) * - 37 - - 32
----
-18203932

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7537
SELECT DISTINCT 67 DIV - NULLIF ( COUNT( * ), + COUNT( * ) DIV + 27 * NULLIF ( + + 13, + - 23 * 48 ) + 59 + 74 + + 71 * + 84 )
----
-67

skipif mysql # not compatible
query I rowsort label-7537
SELECT DISTINCT 67 / - NULLIF ( COUNT ( * ), + COUNT ( * ) / + 27 * NULLIF ( + + 13, + - 23 * 48 ) + 59 + 74 + + 71 * + 84 )
----
-67

query I rowsort
SELECT ALL + 93 * 99 * + 95 - 77 AS col0
----
874588

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

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

query I rowsort
SELECT ALL + CASE + + 38 WHEN + + 5 THEN NULL WHEN + 58 THEN NULL ELSE 26 * - + 14 + + 49 END AS col1
----
-315

query I rowsort
SELECT + 90 * ( - + 0 ) + - 67 AS col1
----
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-7542
SELECT DISTINCT 3 * + COUNT( * ) - + ( 36 ) AS col1
----
-33

skipif mysql # not compatible
query I rowsort label-7542
SELECT DISTINCT 3 * + COUNT ( * ) - + ( 36 ) AS col1
----
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-7543
SELECT + ( 9 ) * + MIN( ALL + ( - 66 ) ) AS col1
----
-594

skipif mysql # not compatible
query I rowsort label-7543
SELECT + ( 9 ) * + MIN ( ALL + ( - 66 ) ) AS col1
----
-594

onlyif mysql # aggregate syntax: 
query II rowsort label-7544
SELECT - ( - - COUNT( 4 ) ) * + 56 + - 47, 72 AS col1
----
-103
72

skipif mysql # not compatible
query II rowsort label-7544
SELECT - ( - - COUNT ( 4 ) ) * + 56 + - 47, 72 AS col1
----
-103
72

onlyif mysql # aggregate syntax: 
query I rowsort label-7545
SELECT 20 * - COUNT( + 93 ) + + - 6
----
-26

skipif mysql # not compatible
query I rowsort label-7545
SELECT 20 * - COUNT ( + 93 ) + + - 6
----
-26

query I rowsort
SELECT - 31 * - + 43
----
1333

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7547
SELECT ALL + COUNT( * ) DIV + - 37 AS col0
----
0

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

onlyif mysql # DIV for integer division: 
query II rowsort label-7548
SELECT ALL - 32 + + ( - 89 ) AS col1, - 32 * 77 DIV - 84 AS col0
----
-121
29

skipif mysql # not compatible
query II rowsort label-7548
SELECT ALL - 32 + + ( - 89 ) AS col1, - 32 * 77 / - 84 AS col0
----
-121
29

onlyif mysql # aggregate syntax: 
query I rowsort label-7549
SELECT - - COUNT( * ) + 61 AS col0
----
62

skipif mysql # not compatible
query I rowsort label-7549
SELECT - - COUNT ( * ) + 61 AS col0
----
62

query I rowsort
SELECT ALL + + 91 + + + 41
----
132

onlyif mysql # aggregate syntax: 
query I rowsort label-7551
SELECT + CASE SUM( + 61 ) WHEN - 43 THEN - 13 WHEN 87 * + 70 - + COUNT( - ( + 90 ) ) + + 95 THEN 37 END * - + ( - 50 ) + 37
----
NULL

skipif mysql # not compatible
query I rowsort label-7551
SELECT + CASE SUM ( + 61 ) WHEN - 43 THEN - 13 WHEN 87 * + 70 - + COUNT ( - ( + 90 ) ) + + 95 THEN 37 END * - + ( - 50 ) + 37
----
NULL

query I rowsort
SELECT ALL + 77 + - 4 + + + 48 AS col0
----
121

onlyif mysql # DIV for integer division: 
query I rowsort label-7553
SELECT - - 72 + + 96 DIV + 58
----
73

skipif mysql # not compatible
query I rowsort label-7553
SELECT - - 72 + + 96 / + 58
----
73

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

query I rowsort
SELECT - 73 * 7 AS col1
----
-511

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7556
SELECT 38, + CASE - - 37 WHEN + 58 THEN + - CAST( NULL AS SIGNED ) END AS col2
----
38
NULL

skipif mysql # not compatible
query II rowsort label-7556
SELECT 38, + CASE - - 37 WHEN + 58 THEN + - CAST ( NULL AS INTEGER ) END AS col2
----
38
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-7557
SELECT 75 AS col0, - 45 + - - 36 DIV - 50
----
75
-45

skipif mysql # not compatible
query II rowsort label-7557
SELECT 75 AS col0, - 45 + - - 36 / - 50
----
75
-45

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7558
SELECT ALL CAST( + - ( NULLIF ( CASE + 20 WHEN - + SUM( - ( + 95 ) ) + - + MIN( DISTINCT + 58 ) THEN 93 * - CASE + - 95 WHEN - + NULLIF ( + MAX( - - 45 ), - 9 ) THEN MAX( DISTINCT - + 27 ) + + 56 WHEN + - 70 * - COUNT( * ) THEN COUNT( DISTINCT - ( - 18 ) ) END * 31 ELSE NULL END, + 10 ) ) AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7558
SELECT ALL CAST ( + - ( NULLIF ( CASE + 20 WHEN - + SUM ( - ( + 95 ) ) + - + MIN ( DISTINCT + 58 ) THEN 93 * - CASE + - 95 WHEN - + NULLIF ( + MAX ( - - 45 ), - 9 ) THEN MAX ( DISTINCT - + 27 ) + + 56 WHEN + - 70 * - COUNT ( * ) THEN COUNT ( DISTINCT - ( - 18 ) ) END * 31 ELSE NULL END, + 10 ) ) AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7559
SELECT ALL + + COUNT( * ) + 26 DIV + 18 + 15 col1
----
17

skipif mysql # not compatible
query I rowsort label-7559
SELECT ALL + + COUNT ( * ) + 26 / + 18 + 15 col1
----
17

query I rowsort
SELECT - - 45 * 82 + - 45
----
3645

query I rowsort
SELECT ALL 48 * - 52 + - - 29 AS col1
----
-2467

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7562
SELECT - + CASE - ( AVG ( - 38 ) ) WHEN - CAST( - 29 AS SIGNED ) THEN 46 ELSE + 52 END
----
-52

skipif mysql # not compatible
query I rowsort label-7562
SELECT - + CASE - ( AVG ( - 38 ) ) WHEN - CAST ( - 29 AS INTEGER ) THEN 46 ELSE + 52 END
----
-52

onlyif mysql # DIV for integer division: 
query I rowsort label-7563
SELECT + - 95 DIV 47 + ( 61 )
----
59

skipif mysql # not compatible
query I rowsort label-7563
SELECT + - 95 / 47 + ( 61 )
----
59

query I rowsort
SELECT - 75 * - 15 AS col2
----
1125

query I rowsort
SELECT ALL + 73 * - 37 AS col0
----
-2701

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7566
SELECT MAX( DISTINCT + 81 ) DIV + + 17 - - 36
----
40

skipif mysql # not compatible
query I rowsort label-7566
SELECT MAX ( DISTINCT + 81 ) / + + 17 - - 36
----
40

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

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

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

skipif mysql # not compatible
query I rowsort label-7568
SELECT + 33 / - COUNT ( * )
----
-33

query I rowsort
SELECT + 44 * 25 AS col1
----
1100

query I rowsort
SELECT 87 * + - 22 + + COALESCE ( - ( 6 ), + 40 )
----
-1920

query II rowsort
SELECT ALL + 47, 73 col2
----
47
73

onlyif mysql # DIV for integer division: 
query I rowsort label-7572
SELECT + 97 DIV + 60
----
1

skipif mysql # not compatible
query I rowsort label-7572
SELECT + 97 / + 60
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-7573
SELECT ALL 9 DIV - 95
----
0

skipif mysql # not compatible
query I rowsort label-7573
SELECT ALL 9 / - 95
----
0

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7575
SELECT + 49 - - 1 * - + CAST( - COUNT( * ) AS SIGNED ) + + 12 * + 14 / - 14 + CAST( NULL AS SIGNED ) + - 77 * + 21 * - - 41
----
NULL

skipif mysql # not compatible
query I rowsort label-7575
SELECT + 49 - - 1 * - + CAST ( - COUNT ( * ) AS INTEGER ) + + 12 * + 14 / - 14 + CAST ( NULL AS INTEGER ) + - 77 * + 21 * - - 41
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7576
SELECT + COALESCE ( 73, COUNT( * ) * - ( SUM( DISTINCT - 51 ) ) )
----
73

skipif mysql # not compatible
query I rowsort label-7576
SELECT + COALESCE ( 73, COUNT ( * ) * - ( SUM ( DISTINCT - 51 ) ) )
----
73

onlyif mysql # aggregate syntax: 
query I rowsort label-7577
SELECT ( CASE - ( - COUNT( DISTINCT + 50 ) ) WHEN 82 THEN 33 + 66 END ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7577
SELECT ( CASE - ( - COUNT ( DISTINCT + 50 ) ) WHEN 82 THEN 33 + 66 END ) AS col1
----
NULL

query I rowsort
SELECT + CASE + 84 WHEN - 49 THEN - 97 END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7579
SELECT CASE 5 WHEN - + 16 * - 90 * - 87 + + 40 * - + CASE + COUNT( * ) WHEN - + 48 THEN - ( 63 ) * + 25 WHEN + - 12 THEN 45 END * - CASE + 69 WHEN COALESCE ( - 51, + + CAST( + ( + CAST( NULL AS SIGNED ) ) AS DECIMAL ) - + MIN( 5 ) ) THEN + + 58 + + - COUNT( ALL + 87 ) ELSE NULL END * + 81 + 89 * + ( - ( - COUNT( * ) ) + CAST( NULL AS SIGNED ) ) THEN - 40 ELSE CASE 67 WHEN - 29 + - 46 THEN 73 END END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7579
SELECT CASE 5 WHEN - + 16 * - 90 * - 87 + + 40 * - + CASE + COUNT ( * ) WHEN - + 48 THEN - ( 63 ) * + 25 WHEN + - 12 THEN 45 END * - CASE + 69 WHEN COALESCE ( - 51, + + CAST ( + ( + CAST ( NULL AS INTEGER ) ) AS REAL ) - + MIN ( 5 ) ) THEN + + 58 + + - COUNT ( ALL + 87 ) ELSE NULL END * + 81 + 89 * + ( - ( - COUNT ( * ) ) + CAST ( NULL AS INTEGER ) ) THEN - 40 ELSE CASE 67 WHEN - 29 + - 46 THEN 73 END END AS col2
----
NULL

query I rowsort
SELECT ALL ( + + 85 ) * 16 AS col0
----
1360

query I rowsort
SELECT + 7 * + - 79 * 20 col2
----
-11060

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

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

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

query I rowsort
SELECT - 91 * + 23 AS col1
----
-2093

onlyif mysql # aggregate syntax: 
query I rowsort label-7585
SELECT ALL + - COUNT( * ) * + - 88 + 93 * - + 28 + - ( 30 ) AS col1
----
-2546

skipif mysql # not compatible
query I rowsort label-7585
SELECT ALL + - COUNT ( * ) * + - 88 + 93 * - + 28 + - ( 30 ) AS col1
----
-2546

query I rowsort
SELECT + + 15 + 14 AS col2
----
29

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7588
SELECT ALL - CAST( NULL AS SIGNED ) / COUNT( + + 63 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7588
SELECT ALL - CAST ( NULL AS INTEGER ) / COUNT ( + + 63 ) AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7589
SELECT ALL - 85 DIV - - 47
----
-1

skipif mysql # not compatible
query I rowsort label-7589
SELECT ALL - 85 / - - 47
----
-1

query I rowsort
SELECT DISTINCT + 27 - - ( + + 38 )
----
65

query I rowsort
SELECT DISTINCT - - 46 * 9 AS col0
----
414

query I rowsort
SELECT ALL + - 84 * - - 2
----
-168

query II rowsort
SELECT ALL - 5 col1, - 56
----
-5
-56

query I rowsort
SELECT - 20 + + 82 AS col0
----
62

query I rowsort
SELECT - + NULLIF ( - 49, - 69 )
----
49

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

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

query I rowsort
SELECT ALL + 44 * - - 69 * + 90 + - + 27
----
273213

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

query I rowsort
SELECT 84 * - 11
----
-924

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7600
SELECT 67 + + 34 - 2, + 10 - + + COUNT( ALL 42 ) * + 23 DIV - + 76 AS col0
----
99
10

skipif mysql # not compatible
query II rowsort label-7600
SELECT 67 + + 34 - 2, + 10 - + + COUNT ( ALL 42 ) * + 23 / - + 76 AS col0
----
99
10

query I rowsort
SELECT 2 - + ( - + 86 ) AS col0
----
88

query I rowsort
SELECT 76 + - + 75
----
1

query I rowsort
SELECT 83 * + 47 * + 34 * + 71 col2
----
9417014

onlyif mysql # aggregate syntax: 
query II rowsort label-7604
SELECT ALL 68 * 61 col2, COUNT( * ) AS col2
----
4148
1

skipif mysql # not compatible
query II rowsort label-7604
SELECT ALL 68 * 61 col2, COUNT ( * ) AS col2
----
4148
1

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

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

query I rowsort
SELECT DISTINCT - NULLIF ( - 59, - 51 )
----
59

onlyif mysql # DIV for integer division: 
query I rowsort label-7607
SELECT - 20 DIV + 34 + - 59
----
-59

skipif mysql # not compatible
query I rowsort label-7607
SELECT - 20 / + 34 + - 59
----
-59

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

query II rowsort
SELECT ALL - 38 * 17, + 72 * - - 57 * 11 + - 57 col2
----
-646
45087

onlyif mysql # DIV for integer division: 
query II rowsort label-7610
SELECT 27 DIV + 20 col2, + 24 + - 20
----
1
4

skipif mysql # not compatible
query II rowsort label-7610
SELECT 27 / + 20 col2, + 24 + - 20
----
1
4

onlyif mysql # aggregate syntax: 
query I rowsort label-7611
SELECT DISTINCT 67 * CASE + COALESCE ( 25, + COALESCE ( + 26, - - 90 / 97 + COUNT( * ) * + 33 ) + 16 ) WHEN + 16 THEN + COUNT( * ) ELSE + - 22 END
----
-1474

skipif mysql # not compatible
query I rowsort label-7611
SELECT DISTINCT 67 * CASE + COALESCE ( 25, + COALESCE ( + 26, - - 90 / 97 + COUNT ( * ) * + 33 ) + 16 ) WHEN + 16 THEN + COUNT ( * ) ELSE + - 22 END
----
-1474

query I rowsort
SELECT - 94 * - + 69 + 0 - + 25
----
6461

onlyif mysql # aggregate syntax: 
query I rowsort label-7613
SELECT ALL + 93 + + 70 + + CASE + 48 WHEN - - 33 THEN + CASE + 70 WHEN + 86 * + - 61 + + 94 * - - 11 * COUNT( * ) * 40 + - + COUNT( * ) + 3 THEN 53 + - 36 END * 36 ELSE - ( + 79 ) * - 25 + - 38 END * 11 * + 0 * + COUNT( * ) + - 22 + - 65
----
76

skipif mysql # not compatible
query I rowsort label-7613
SELECT ALL + 93 + + 70 + + CASE + 48 WHEN - - 33 THEN + CASE + 70 WHEN + 86 * + - 61 + + 94 * - - 11 * COUNT ( * ) * 40 + - + COUNT ( * ) + 3 THEN 53 + - 36 END * 36 ELSE - ( + 79 ) * - 25 + - 38 END * 11 * + 0 * + COUNT ( * ) + - 22 + - 65
----
76

query I rowsort
SELECT DISTINCT ( - - 44 ) + - 27 AS col0
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-7615
SELECT ALL COUNT( * ) + ( + 55 ) + - 72
----
-16

skipif mysql # not compatible
query I rowsort label-7615
SELECT ALL COUNT ( * ) + ( + 55 ) + - 72
----
-16

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7616
SELECT DISTINCT - 20 * + - CAST( + ( 68 ) AS SIGNED ) * - NULLIF ( - + 99, 26 * - - 82 ) AS col1
----
134640

skipif mysql # not compatible
query I rowsort label-7616
SELECT DISTINCT - 20 * + - CAST ( + ( 68 ) AS INTEGER ) * - NULLIF ( - + 99, 26 * - - 82 ) AS col1
----
134640

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7617
SELECT ALL CAST( - 54 AS SIGNED ) + - 6
----
-60

skipif mysql # not compatible
query I rowsort label-7617
SELECT ALL CAST ( - 54 AS INTEGER ) + - 6
----
-60

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7618
SELECT ( - COUNT( * ) ) + + + 29 DIV - 57 * 86, - 61 * - + 4 AS col2
----
-1
244

skipif mysql # not compatible
query II rowsort label-7618
SELECT ( - COUNT ( * ) ) + + + 29 / - 57 * 86, - 61 * - + 4 AS col2
----
-1
244

onlyif mysql # aggregate syntax: 
query I rowsort label-7619
SELECT + 28 * SUM( - + 96 )
----
-2688

skipif mysql # not compatible
query I rowsort label-7619
SELECT + 28 * SUM ( - + 96 )
----
-2688

onlyif mysql # aggregate syntax: 
query II rowsort label-7620
SELECT + 97 + - + 54 AS col1, + 99 + + COUNT( * )
----
43
100

skipif mysql # not compatible
query II rowsort label-7620
SELECT + 97 + - + 54 AS col1, + 99 + + COUNT ( * )
----
43
100

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7621
SELECT + 15 * - 17 + + 24 * CAST( NULL AS DECIMAL ) * + 98 + 6 - + + 61 + + 47
----
NULL

skipif mysql # not compatible
query I rowsort label-7621
SELECT + 15 * - 17 + + 24 * CAST ( NULL AS REAL ) * + 98 + 6 - + + 61 + + 47
----
NULL

query I rowsort
SELECT ALL 24 + - 99 AS col2
----
-75

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

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

query I rowsort
SELECT ALL 8 - COALESCE ( + + 99, 30 ) AS col2
----
-91

query I rowsort
SELECT 99 * - + 3
----
-297

query II rowsort
SELECT 30 + + NULLIF ( - 97, + + AVG ( DISTINCT - 15 ) ), - ( 90 ) AS col1
----
-67
-90

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-7627
SELECT DISTINCT - 6 * + 39 AS col0, - CAST( NULL AS DECIMAL ) + + + 0 * + - 27 AS col0
----
-234
NULL

skipif mysql # not compatible
query II rowsort label-7627
SELECT DISTINCT - 6 * + 39 AS col0, - CAST ( NULL AS REAL ) + + + 0 * + - 27 AS col0
----
-234
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7628
SELECT DISTINCT CAST( 88 AS SIGNED ) - 11 * - 95 AS col0
----
1133

skipif mysql # not compatible
query I rowsort label-7628
SELECT DISTINCT CAST ( 88 AS INTEGER ) - 11 * - 95 AS col0
----
1133

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7629
SELECT CASE 13 WHEN - 38 * - 61 THEN + CAST( NULL AS SIGNED ) END + ( + 11 ) * + 34 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7629
SELECT CASE 13 WHEN - 38 * - 61 THEN + CAST ( NULL AS INTEGER ) END + ( + 11 ) * + 34 AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-7630
SELECT ALL - + 77 DIV - 50 AS col2, - CAST( NULL AS SIGNED ) AS col1
----
1
NULL

skipif mysql # not compatible
query II rowsort label-7630
SELECT ALL - + 77 / - 50 AS col2, - CAST ( NULL AS INTEGER ) AS col1
----
1
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7631
SELECT CAST( NULL AS SIGNED ) * - 33 * COUNT( * ) / + 61 * 53 * NULLIF ( - 84, - 55 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7631
SELECT CAST ( NULL AS INTEGER ) * - 33 * COUNT ( * ) / + 61 * 53 * NULLIF ( - 84, - 55 )
----
NULL

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7633
SELECT ALL + NULLIF ( + 71, - CAST( + CASE - - 61 WHEN - - 26 THEN + + 33 * - COUNT( + - ( 94 ) ) / AVG ( 79 ) END AS SIGNED ) * + COUNT( * ) * + 32 + - 10 - 42 ) * 6
----
426

skipif mysql # not compatible
query I rowsort label-7633
SELECT ALL + NULLIF ( + 71, - CAST ( + CASE - - 61 WHEN - - 26 THEN + + 33 * - COUNT ( + - ( 94 ) ) / AVG ( 79 ) END AS INTEGER ) * + COUNT ( * ) * + 32 + - 10 - 42 ) * 6
----
426

query I rowsort
SELECT DISTINCT - 51 * - 73
----
3723

onlyif mysql # aggregate syntax: 
query I rowsort label-7635
SELECT DISTINCT + COUNT( * ) + 68 + - COUNT( * ) * 20 * - - 34
----
-611

skipif mysql # not compatible
query I rowsort label-7635
SELECT DISTINCT + COUNT ( * ) + 68 + - COUNT ( * ) * 20 * - - 34
----
-611

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

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

query I rowsort
SELECT 18 * + + 27 AS col2
----
486

query I rowsort
SELECT 7 * 17
----
119

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7639
SELECT ALL 34 * 93 * - 72 + - 95 * CAST( NULL AS DECIMAL ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7639
SELECT ALL 34 * 93 * - 72 + - 95 * CAST ( NULL AS REAL ) col0
----
NULL

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7642
SELECT + 28, + MIN( DISTINCT - 99 ) * COALESCE ( - 72, + + 58, - - NULLIF ( - + 0, - + ( - - COUNT( * ) ) + + 84 ) * - + 56 + + CASE 69 WHEN + 92 / + + AVG ( - + CAST( NULL AS SIGNED ) ) THEN + + COUNT( * ) WHEN ( 6 ) * - 75 - + 31 + ( 53 ) + + - 90 * + COUNT( * ) THEN - 1 - - 16 + 60 ELSE - 63 END ) * + COUNT( * ) AS col1
----
28
7128

skipif mysql # not compatible
query II rowsort label-7642
SELECT + 28, + MIN ( DISTINCT - 99 ) * COALESCE ( - 72, + + 58, - - NULLIF ( - + 0, - + ( - - COUNT ( * ) ) + + 84 ) * - + 56 + + CASE 69 WHEN + 92 / + + AVG ( - + CAST ( NULL AS INTEGER ) ) THEN + + COUNT ( * ) WHEN ( 6 ) * - 75 - + 31 + ( 53 ) + + - 90 * + COUNT ( * ) THEN - 1 - - 16 + 60 ELSE - 63 END ) * + COUNT ( * ) AS col1
----
28
7128

query I rowsort
SELECT 33 * 31 col1
----
1023

query I rowsort
SELECT DISTINCT 13 * + 14
----
182

query II rowsort
SELECT + 85, + 12 * + - 72 AS col0
----
85
-864

query I rowsort
SELECT ALL + ( + 3 ) + - + 13 - + + 40
----
-50

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7647
SELECT - CAST( NULL AS DECIMAL ) / 5 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7647
SELECT - CAST ( NULL AS REAL ) / 5 AS col1
----
NULL

query II rowsort
SELECT 20 AS col0, + ( 23 ) * + + 99 + + 51
----
20
2328

query I rowsort
SELECT - - COALESCE ( + 46, + - 28 )
----
46

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7650
SELECT ALL - CAST( - MAX( DISTINCT - 28 ) AS SIGNED )
----
-28

skipif mysql # not compatible
query I rowsort label-7650
SELECT ALL - CAST ( - MAX ( DISTINCT - 28 ) AS INTEGER )
----
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-7651
SELECT - COUNT( * ) + + - COUNT( * ) * - - 7 AS col0
----
-8

skipif mysql # not compatible
query I rowsort label-7651
SELECT - COUNT ( * ) + + - COUNT ( * ) * - - 7 AS col0
----
-8

query I rowsort
SELECT + + 33 * 18 + + 23
----
617

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7653
SELECT + 55 + - COALESCE ( + ( + 69 ), - 74 ) + COUNT( * ) DIV - 67 AS col0
----
-14

skipif mysql # not compatible
query I rowsort label-7653
SELECT + 55 + - COALESCE ( + ( + 69 ), - 74 ) + COUNT ( * ) / - 67 AS col0
----
-14

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7654
SELECT DISTINCT + 29, NULLIF ( + 79, + + COUNT( * ) * 16 + - COUNT( DISTINCT + + 40 ) * + 68 * + 13 ) + + 80 DIV - 93 AS col2
----
29
79

skipif mysql # not compatible
query II rowsort label-7654
SELECT DISTINCT + 29, NULLIF ( + 79, + + COUNT ( * ) * 16 + - COUNT ( DISTINCT + + 40 ) * + 68 * + 13 ) + + 80 / - 93 AS col2
----
29
79

query I rowsort
SELECT ALL 92 * - 28 AS col0
----
-2576

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7657
SELECT + 50 + COUNT( * ) * + + CASE - + 75 WHEN 64 + + + 47 THEN - ( + 28 ) ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7657
SELECT + 50 + COUNT ( * ) * + + CASE - + 75 WHEN 64 + + + 47 THEN - ( + 28 ) ELSE NULL END AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7658
SELECT ALL 56 + - 99 - + CAST( - + CAST( + 27 AS SIGNED ) AS SIGNED ) - 60 * + 51
----
-3076

skipif mysql # not compatible
query I rowsort label-7658
SELECT ALL 56 + - 99 - + CAST ( - + CAST ( + 27 AS INTEGER ) AS INTEGER ) - 60 * + 51
----
-3076

query I rowsort
SELECT + 26 + + - ( - 28 ) AS col0
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-7660
SELECT + 38 + 39 + - 66 * MAX( + 30 ) * + + 63
----
-124663

skipif mysql # not compatible
query I rowsort label-7660
SELECT + 38 + 39 + - 66 * MAX ( + 30 ) * + + 63
----
-124663

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7661
SELECT + 14 + - 43 + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7661
SELECT + 14 + - 43 + - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT - 20 - + - 74 col2
----
54

query I rowsort
SELECT + 90 + 88 + 87 - + 9 col0
----
256

query I rowsort
SELECT ALL 96 + + 99
----
195

query II rowsort
SELECT + 84 * - 55 AS col1, CASE - 62 WHEN - ( - - 22 ) THEN NULL ELSE - 66 * 0 END * + - 47
----
-4620
0

onlyif mysql # DIV for integer division: 
query I rowsort label-7666
SELECT - 2 DIV - 58 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-7666
SELECT - 2 / - 58 AS col0
----
0

query I rowsort
SELECT + NULLIF ( + 45, - 61 )
----
45

query I rowsort
SELECT ALL + 81 * - 64 + + + 41
----
-5143

onlyif mysql # DIV for integer division: 
query I rowsort label-7669
SELECT - 35 DIV 96 + - 60 * 70 AS col1
----
-4200

skipif mysql # not compatible
query I rowsort label-7669
SELECT - 35 / 96 + - 60 * 70 AS col1
----
-4200

onlyif mysql # aggregate syntax: 
query II rowsort label-7670
SELECT + 24 * - - 91, + MAX( DISTINCT + + 50 ) * - COUNT( * ) * - - 14 AS col0
----
2184
-700

skipif mysql # not compatible
query II rowsort label-7670
SELECT + 24 * - - 91, + MAX ( DISTINCT + + 50 ) * - COUNT ( * ) * - - 14 AS col0
----
2184
-700

query I rowsort
SELECT NULLIF ( 12, - 50 * - 49 - + + 22 + - ( - 90 ) )
----
12

onlyif mysql # aggregate syntax: 
query II rowsort label-7672
SELECT ALL - + 53 * - NULLIF ( COUNT( * ), - 25 ), + 83 AS col0
----
53
83

skipif mysql # not compatible
query II rowsort label-7672
SELECT ALL - + 53 * - NULLIF ( COUNT ( * ), - 25 ), + 83 AS col0
----
53
83

onlyif mysql # aggregate syntax: 
query I rowsort label-7673
SELECT ALL 40 * - 55 - + MAX( - ( + 90 ) )
----
-2110

skipif mysql # not compatible
query I rowsort label-7673
SELECT ALL 40 * - 55 - + MAX ( - ( + 90 ) )
----
-2110

onlyif mysql # aggregate syntax: 
query I rowsort label-7674
SELECT - + SUM( + - 54 ) * - COUNT( * ) * - 76 + ( - COUNT( * ) ) AS col2
----
4103

skipif mysql # not compatible
query I rowsort label-7674
SELECT - + SUM ( + - 54 ) * - COUNT ( * ) * - 76 + ( - COUNT ( * ) ) AS col2
----
4103

onlyif mysql # aggregate syntax: 
query I rowsort label-7675
SELECT ALL + MAX( DISTINCT - - 59 ) AS col0
----
59

skipif mysql # not compatible
query I rowsort label-7675
SELECT ALL + MAX ( DISTINCT - - 59 ) AS col0
----
59

onlyif mysql # DIV for integer division: 
query I rowsort label-7676
SELECT - + COALESCE ( + - 57, + 0 ) DIV + + 34 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-7676
SELECT - + COALESCE ( + - 57, + 0 ) / + + 34 AS col2
----
1

query I rowsort
SELECT - - 17 * + + 75 + - 84 * - 87 col0
----
8583

query I rowsort
SELECT - 73 + + 88 col1
----
15

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7680
SELECT + MAX( ALL + NULLIF ( 56, 72 ) ) * - + 11 + - + 66 AS col1
----
-682

skipif mysql # not compatible
query I rowsort label-7680
SELECT + MAX ( ALL + NULLIF ( 56, 72 ) ) * - + 11 + - + 66 AS col1
----
-682

query I rowsort
SELECT - 68 * - 8 + + + 36 + - - 42 * - - 94 * - 59 AS col0
----
-232352

query I rowsort
SELECT DISTINCT + 24 * 95 AS col0
----
2280

onlyif mysql # aggregate syntax: 
query I rowsort label-7683
SELECT ALL NULLIF ( COUNT( * ), - COALESCE ( + 0, + - 26 ) )
----
1

skipif mysql # not compatible
query I rowsort label-7683
SELECT ALL NULLIF ( COUNT ( * ), - COALESCE ( + 0, + - 26 ) )
----
1

onlyif mysql # DIV for integer division: 
query II rowsort label-7684
SELECT - + NULLIF ( - 38, + 49 ) DIV - 11, 6 + + + 29 AS col1
----
-3
35

skipif mysql # not compatible
query II rowsort label-7684
SELECT - + NULLIF ( - 38, + 49 ) / - 11, 6 + + + 29 AS col1
----
-3
35

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

skipif mysql # not compatible
query II rowsort label-7685
SELECT COUNT ( * ), - 49 AS col1
----
1
-49

onlyif mysql # DIV for integer division: 
query I rowsort label-7686
SELECT - ( 45 ) DIV 24 + - 74 * - 70
----
5179

skipif mysql # not compatible
query I rowsort label-7686
SELECT - ( 45 ) / 24 + - 74 * - 70
----
5179

onlyif mysql # DIV for integer division: 
query I rowsort label-7687
SELECT + 51 DIV 20 AS col0
----
2

skipif mysql # not compatible
query I rowsort label-7687
SELECT + 51 / 20 AS col0
----
2

query I rowsort
SELECT ALL + 6 + + 67 AS col2
----
73

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-7689
SELECT DISTINCT CAST( NULL AS SIGNED ) AS col2, 84 DIV 78 AS col2
----
NULL
1

skipif mysql # not compatible
query II rowsort label-7689
SELECT DISTINCT CAST ( NULL AS INTEGER ) AS col2, 84 / 78 AS col2
----
NULL
1

query I rowsort
SELECT + 27 * - 85 col2
----
-2295

onlyif mysql # aggregate syntax: 
query II rowsort label-7691
SELECT - ( + + CASE + + 67 WHEN + 28 * + MIN( DISTINCT 52 ) * + COUNT( * ) + - 45 + + 93 THEN + + 97 WHEN COUNT( * ) * - 92 * 57 THEN NULL END ) AS col1, 69
----
NULL
69

skipif mysql # not compatible
query II rowsort label-7691
SELECT - ( + + CASE + + 67 WHEN + 28 * + MIN ( DISTINCT 52 ) * + COUNT ( * ) + - 45 + + 93 THEN + + 97 WHEN COUNT ( * ) * - 92 * 57 THEN NULL END ) AS col1, 69
----
NULL
69

query I rowsort
SELECT ALL 9 + - - 71 - - - NULLIF ( + 78, + + ( + 38 ) ) + + 16 AS col2
----
18

query I rowsort
SELECT + 91 * - 28 AS col1
----
-2548

onlyif mysql # aggregate syntax: 
query I rowsort label-7694
SELECT ALL NULLIF ( 9, 46 + - COUNT( * ) * + 25 ) + 19 + + + 97 AS col1
----
125

skipif mysql # not compatible
query I rowsort label-7694
SELECT ALL NULLIF ( 9, 46 + - COUNT ( * ) * + 25 ) + 19 + + + 97 AS col1
----
125

onlyif mysql # aggregate syntax: 
query II rowsort label-7695
SELECT 59 AS col2, 27 - - + ( + 62 ) - - MAX( ALL + + 50 ) + + 11 + - 78
----
59
72

skipif mysql # not compatible
query II rowsort label-7695
SELECT 59 AS col2, 27 - - + ( + 62 ) - - MAX ( ALL + + 50 ) + + 11 + - 78
----
59
72

query I rowsort
SELECT + 84 - + 56
----
28

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7697
SELECT DISTINCT 8 + + + CASE + 34 WHEN - + 13 * COUNT( * ) + + CAST( + 73 AS SIGNED ) + - COUNT( ALL + 38 ) * - 95 THEN - ( + 49 ) WHEN + - 57 THEN 49 END - - 30 + + ( + 96 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7697
SELECT DISTINCT 8 + + + CASE + 34 WHEN - + 13 * COUNT ( * ) + + CAST ( + 73 AS INTEGER ) + - COUNT ( ALL + 38 ) * - 95 THEN - ( + 49 ) WHEN + - 57 THEN 49 END - - 30 + + ( + 96 )
----
NULL

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7699
SELECT - 31 DIV + ( - 31 ) - + + 65
----
-64

skipif mysql # not compatible
query I rowsort label-7699
SELECT - 31 / + ( - 31 ) - + + 65
----
-64

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

query I rowsort
SELECT + 1 + + + 76 - + - NULLIF ( - + 20, + 56 ) * - 14
----
357

onlyif mysql # DIV for integer division: 
query I rowsort label-7702
SELECT ALL - 13 DIV 95
----
0

skipif mysql # not compatible
query I rowsort label-7702
SELECT ALL - 13 / 95
----
0

query I rowsort
SELECT + - 7 * 2 * ( 28 ) * 24
----
-9408

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7705
SELECT DISTINCT - 69 DIV + COUNT( * ) AS col1
----
-69

skipif mysql # not compatible
query I rowsort label-7705
SELECT DISTINCT - 69 / + COUNT ( * ) AS col1
----
-69

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7706
SELECT 38 DIV - - NULLIF ( + - 6, CAST( 77 AS SIGNED ) + - 30 + COALESCE ( 8, - + 73 * 39 ) * + - 93 )
----
-6

skipif mysql # not compatible
query I rowsort label-7706
SELECT 38 / - - NULLIF ( + - 6, CAST ( 77 AS INTEGER ) + - 30 + COALESCE ( 8, - + 73 * 39 ) * + - 93 )
----
-6

query I rowsort
SELECT - ( 3 ) * 26 * - 27
----
2106

onlyif mysql # aggregate syntax: 
query II rowsort label-7708
SELECT 69 - + COUNT( * ) + - + 86 col2, + ( - 51 ) * + + 53
----
-18
-2703

skipif mysql # not compatible
query II rowsort label-7708
SELECT 69 - + COUNT ( * ) + - + 86 col2, + ( - 51 ) * + + 53
----
-18
-2703

onlyif mysql # aggregate syntax: 
query I rowsort label-7709
SELECT 28 * + + ( + + MAX( - + 77 ) ) AS col2
----
-2156

skipif mysql # not compatible
query I rowsort label-7709
SELECT 28 * + + ( + + MAX ( - + 77 ) ) AS col2
----
-2156

query II rowsort
SELECT + 83 col1, 84
----
83
84

onlyif mysql # aggregate syntax: 
query I rowsort label-7711
SELECT ALL - COALESCE ( + ( - SUM( - 70 ) ), 36 * - + 61 )
----
-70

skipif mysql # not compatible
query I rowsort label-7711
SELECT ALL - COALESCE ( + ( - SUM ( - 70 ) ), 36 * - + 61 )
----
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-7712
SELECT + COALESCE ( NULLIF ( - 16, 70 - - MAX( ALL 93 ) * - + COUNT( ALL 0 ) * + - COUNT( * ) + - 24 ), - 20 * + - 74 * - - 86 * COUNT( * ) * 64 + + ( ( + 59 ) ) + + 70 )
----
-16

skipif mysql # not compatible
query I rowsort label-7712
SELECT + COALESCE ( NULLIF ( - 16, 70 - - MAX ( ALL 93 ) * - + COUNT ( ALL 0 ) * + - COUNT ( * ) + - 24 ), - 20 * + - 74 * - - 86 * COUNT ( * ) * 64 + + ( ( + 59 ) ) + + 70 )
----
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-7713
SELECT ALL 98 * - 71 * + 92 * - SUM( + 47 ) * 32 + + 30
----
962764574

skipif mysql # not compatible
query I rowsort label-7713
SELECT ALL 98 * - 71 * + 92 * - SUM ( + 47 ) * 32 + + 30
----
962764574

onlyif mysql # aggregate syntax: 
query II rowsort label-7714
SELECT ALL - + 81, ( + + 59 ) * + 7 + - 21 * - 64 * - NULLIF ( + - 78, + - 29 + - 82 * 48 * + 5 - - 22 ) * + + 73 + + - 9 + - COUNT( + 20 ) AS col2
----
-81
7653139

skipif mysql # not compatible
query II rowsort label-7714
SELECT ALL - + 81, ( + + 59 ) * + 7 + - 21 * - 64 * - NULLIF ( + - 78, + - 29 + - 82 * 48 * + 5 - - 22 ) * + + 73 + + - 9 + - COUNT ( + 20 ) AS col2
----
-81
7653139

query I rowsort
SELECT 84 - 54
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-7716
SELECT + + CASE - 50 WHEN + COUNT( * ) THEN + 88 END
----
NULL

skipif mysql # not compatible
query I rowsort label-7716
SELECT + + CASE - 50 WHEN + COUNT ( * ) THEN + 88 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7717
SELECT ALL + + 57 + - + COALESCE ( + COUNT( * ), 56, + 19 * + 69 * - NULLIF ( - 87, + 82 / COUNT( * ) ) )
----
56

skipif mysql # not compatible
query I rowsort label-7717
SELECT ALL + + 57 + - + COALESCE ( + COUNT ( * ), 56, + 19 * + 69 * - NULLIF ( - 87, + 82 / COUNT ( * ) ) )
----
56

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-7719
SELECT - 90 AS col0, - COALESCE ( + + 91, - 28 DIV + 95, - 37 + - COALESCE ( + 31, - ( - - 71 ), 36 + 59, + 6 ) ) * - 2 * - 51 + - + 27 AS col1
----
-90
-9309

skipif mysql # not compatible
query II rowsort label-7719
SELECT - 90 AS col0, - COALESCE ( + + 91, - 28 / + 95, - 37 + - COALESCE ( + 31, - ( - - 71 ), 36 + 59, + 6 ) ) * - 2 * - 51 + - + 27 AS col1
----
-90
-9309

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

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

query I rowsort
SELECT 92 + - 10 col1
----
82

query I rowsort
SELECT 1 + + 95 AS col0
----
96

query II rowsort
SELECT DISTINCT 51, + 54 col1
----
51
54

onlyif mysql # aggregate syntax: 
query I rowsort label-7724
SELECT ALL - 75 + 67 * + 27 * - + COUNT( * ) * + - 70 AS col1
----
126555

skipif mysql # not compatible
query I rowsort label-7724
SELECT ALL - 75 + 67 * + 27 * - + COUNT ( * ) * + - 70 AS col1
----
126555

query I rowsort
SELECT 17 * - 91
----
-1547

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7726
SELECT ALL - 2 * CAST( + 92 AS SIGNED ) AS col2
----
-184

skipif mysql # not compatible
query I rowsort label-7726
SELECT ALL - 2 * CAST ( + 92 AS INTEGER ) AS col2
----
-184

onlyif mysql # aggregate syntax: 
query II rowsort label-7727
SELECT ALL 57 AS col2, 22 * - 86 * + 63 * - 97 + 91 + + - 49 + - COUNT( * ) col1
----
57
11562053

skipif mysql # not compatible
query II rowsort label-7727
SELECT ALL 57 AS col2, 22 * - 86 * + 63 * - 97 + 91 + + - 49 + - COUNT ( * ) col1
----
57
11562053

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7728
SELECT 27 + + MIN( + 92 ) * + 95 / + SUM( ALL + CAST( NULL AS SIGNED ) ) * + + SUM( + + 84 ) * 16 * + ( 73 ) AS col0, 90 + 55 AS col1
----
NULL
145

skipif mysql # not compatible
query II rowsort label-7728
SELECT 27 + + MIN ( + 92 ) * + 95 / + SUM ( ALL + CAST ( NULL AS INTEGER ) ) * + + SUM ( + + 84 ) * 16 * + ( 73 ) AS col0, 90 + 55 AS col1
----
NULL
145

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7729
SELECT ALL 12, 86 * - 57 * - + CAST( NULL AS SIGNED ) * - - 42 AS col1
----
12
NULL

skipif mysql # not compatible
query II rowsort label-7729
SELECT ALL 12, 86 * - 57 * - + CAST ( NULL AS INTEGER ) * - - 42 AS col1
----
12
NULL

query I rowsort
SELECT 36 + - 41
----
-5

query I rowsort
SELECT 7 * - + 51
----
-357

onlyif mysql # aggregate syntax: 
query I rowsort label-7732
SELECT COUNT( * ) + - 22 - 48
----
-69

skipif mysql # not compatible
query I rowsort label-7732
SELECT COUNT ( * ) + - 22 - 48
----
-69

query I rowsort
SELECT 17 * + 73 col1
----
1241

query I rowsort
SELECT 55 + 24
----
79

query I rowsort
SELECT ALL + 12 - + ( 66 ) AS col1
----
-54

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7736
SELECT COUNT( * ) * - 47 * + COALESCE ( + 21, ( 54 ) DIV 29 * 41 + 91 + - + CASE 57 WHEN + 72 THEN NULL WHEN - 94 * + 41 THEN + 27 * - + 45 * NULLIF ( + - 45, - + 22 ) ELSE NULL END DIV + 81 * 57 * - 37 )
----
-987

skipif mysql # not compatible
query I rowsort label-7736
SELECT COUNT ( * ) * - 47 * + COALESCE ( + 21, ( 54 ) / 29 * 41 + 91 + - + CASE 57 WHEN + 72 THEN NULL WHEN - 94 * + 41 THEN + 27 * - + 45 * NULLIF ( + - 45, - + 22 ) ELSE NULL END / + 81 * 57 * - 37 )
----
-987

query I rowsort
SELECT ALL 89 - + - 89
----
178

onlyif mysql # aggregate syntax: 
query I rowsort label-7738
SELECT DISTINCT - + SUM( 9 ) AS col0
----
-9

skipif mysql # not compatible
query I rowsort label-7738
SELECT DISTINCT - + SUM ( 9 ) AS col0
----
-9

query I rowsort
SELECT 73 * - 33
----
-2409

onlyif mysql # aggregate syntax: 
query I rowsort label-7740
SELECT ALL CASE - ( - + 90 ) WHEN + + COUNT( * ) * - 65 + COUNT( * ) THEN + - 39 + 44 + + 25 END * 0 * 61 / + 65 + + - 49 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7740
SELECT ALL CASE - ( - + 90 ) WHEN + + COUNT ( * ) * - 65 + COUNT ( * ) THEN + - 39 + 44 + + 25 END * 0 * 61 / + 65 + + - 49 col1
----
NULL

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7742
SELECT 84 + - - 40 DIV 13
----
87

skipif mysql # not compatible
query I rowsort label-7742
SELECT 84 + - - 40 / 13
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-7743
SELECT 73 - - - 35 - - + MAX( DISTINCT + - 50 ) * 22 AS col0
----
-1062

skipif mysql # not compatible
query I rowsort label-7743
SELECT 73 - - - 35 - - + MAX ( DISTINCT + - 50 ) * 22 AS col0
----
-1062

query II rowsort
SELECT DISTINCT - - 87 AS col1, + 2
----
87
2

query II rowsort
SELECT ALL 91 + + 22 - ( 46 ) AS col1, + 95
----
67
95

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7746
SELECT DISTINCT + ( + COUNT( DISTINCT + + 74 ) ) + COALESCE ( 9, + - 62, - COUNT( * ) DIV + - COALESCE ( - CASE 79 WHEN CASE - + COALESCE ( - 73, - 71 ) WHEN 48 DIV + 46 + 60 THEN + 89 - - COUNT( * ) * - 55 - - - 31 + - + 55 WHEN - + 41 * + 6 THEN NULL ELSE NULL END THEN + + COALESCE ( - 33, - 34 * COUNT( * ) + + NULLIF ( - ( + 24 ), 43 ) ) WHEN - ( COUNT( * ) ) THEN COUNT( ALL + COALESCE ( - 65, - 97 * + 89, + 29 + 95 ) ) END, ( - ( 53 ) ) ) + 74, 29 - 6 )
----
10

skipif mysql # not compatible
query I rowsort label-7746
SELECT DISTINCT + ( + COUNT ( DISTINCT + + 74 ) ) + COALESCE ( 9, + - 62, - COUNT ( * ) / + - COALESCE ( - CASE 79 WHEN CASE - + COALESCE ( - 73, - 71 ) WHEN 48 / + 46 + 60 THEN + 89 - - COUNT ( * ) * - 55 - - - 31 + - + 55 WHEN - + 41 * + 6 THEN NULL ELSE NULL END THEN + + COALESCE ( - 33, - 34 * COUNT ( * ) + + NULLIF ( - ( + 24 ), 43 ) ) WHEN - ( COUNT ( * ) ) THEN COUNT ( ALL + COALESCE ( - 65, - 97 * + 89, + 29 + 95 ) ) END, ( - ( 53 ) ) ) + 74, 29 - 6 )
----
10

onlyif mysql # aggregate syntax: 
query II rowsort label-7747
SELECT + 13 AS col1, + 96 - - + COUNT( * ) + - - ( 82 ) - - 93 * 20 col1
----
13
2039

skipif mysql # not compatible
query II rowsort label-7747
SELECT + 13 AS col1, + 96 - - + COUNT ( * ) + - - ( 82 ) - - 93 * 20 col1
----
13
2039

query I rowsort
SELECT 99 + - + 73 - 7 * 51 * - 32 * 16 * - 3 AS col1
----
-548326

query I rowsort
SELECT ALL + 63 + - - 21
----
84

query I rowsort
SELECT DISTINCT 50 * + + 13
----
650

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7751
SELECT ALL + 13 + - - 95 col2, CAST( NULL AS SIGNED )
----
108
NULL

skipif mysql # not compatible
query II rowsort label-7751
SELECT ALL + 13 + - - 95 col2, CAST ( NULL AS INTEGER )
----
108
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7752
SELECT CAST( NULL AS SIGNED ) * - - ( 57 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7752
SELECT CAST ( NULL AS INTEGER ) * - - ( 57 )
----
NULL

query I rowsort
SELECT ALL + 6 * 16
----
96

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

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

query I rowsort
SELECT ALL 97 + - 8
----
89

query I rowsort
SELECT DISTINCT 99 col2
----
99

query I rowsort
SELECT ALL 73 * - 56 AS col1
----
-4088

onlyif mysql # aggregate syntax: 
query I rowsort label-7758
SELECT DISTINCT COUNT( * ) - + 47 * - COUNT( * ) - + - 71
----
119

skipif mysql # not compatible
query I rowsort label-7758
SELECT DISTINCT COUNT ( * ) - + 47 * - COUNT ( * ) - + - 71
----
119

onlyif mysql # aggregate syntax: 
query I rowsort label-7759
SELECT ALL MIN( ALL + 34 ) - - 53 + - 18 * + + 62 AS col2
----
-1029

skipif mysql # not compatible
query I rowsort label-7759
SELECT ALL MIN ( ALL + 34 ) - - 53 + - 18 * + + 62 AS col2
----
-1029

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7760
SELECT 17 - + + 68, + COUNT( * ) * + ( - COALESCE ( 45, - 46 DIV + 4 ) ) - + 82 * + + COUNT( * ) AS col0
----
-51
-127

skipif mysql # not compatible
query II rowsort label-7760
SELECT 17 - + + 68, + COUNT ( * ) * + ( - COALESCE ( 45, - 46 / + 4 ) ) - + 82 * + + COUNT ( * ) AS col0
----
-51
-127

query I rowsort
SELECT 52 * - 85
----
-4420

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7763
SELECT ALL - 44 * 76, CAST( + SUM( DISTINCT - + 91 ) AS SIGNED ) AS col2
----
-3344
-91

skipif mysql # not compatible
query II rowsort label-7763
SELECT ALL - 44 * 76, CAST ( + SUM ( DISTINCT - + 91 ) AS INTEGER ) AS col2
----
-3344
-91

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7764
SELECT 42 * - 65, 26 DIV - SUM( + 55 ) * - 47 + + 23 AS col2
----
-2730
23

skipif mysql # not compatible
query II rowsort label-7764
SELECT 42 * - 65, 26 / - SUM ( + 55 ) * - 47 + + 23 AS col2
----
-2730
23

onlyif mysql # DIV for integer division: 
query I rowsort label-7765
SELECT ALL 25 DIV - 11 AS col2
----
-2

skipif mysql # not compatible
query I rowsort label-7765
SELECT ALL 25 / - 11 AS col2
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-7766
SELECT DISTINCT COUNT( 29 )
----
1

skipif mysql # not compatible
query I rowsort label-7766
SELECT DISTINCT COUNT ( 29 )
----
1

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7768
SELECT - - 74 + - COALESCE ( 58, + COUNT( * ) ) + + COUNT( * )
----
17

skipif mysql # not compatible
query I rowsort label-7768
SELECT - - 74 + - COALESCE ( 58, + COUNT ( * ) ) + + COUNT ( * )
----
17

query I rowsort
SELECT ALL + - 66 * + + 57
----
-3762

query I rowsort
SELECT - + 99 * + 60 AS col2
----
-5940

query I rowsort
SELECT - - 41 * - 7 + - 25 AS col1
----
-312

query II rowsort
SELECT - ( + 91 ), + 93 AS col1
----
-91
93

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-7773
SELECT ALL - - 54 + - 83 - - 78 AS col0, CAST( NULL AS DECIMAL ) - + - 29 + + 93
----
49
NULL

skipif mysql # not compatible
query II rowsort label-7773
SELECT ALL - - 54 + - 83 - - 78 AS col0, CAST ( NULL AS REAL ) - + - 29 + + 93
----
49
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7774
SELECT - + CASE 9 WHEN + 96 THEN + 35 * - COALESCE ( + 40, 49 * 69 + ( + + 67 ) + - COUNT( * ) / + 61 - - 88 ) END + + - ( - 71 ) + - - 3
----
NULL

skipif mysql # not compatible
query I rowsort label-7774
SELECT - + CASE 9 WHEN + 96 THEN + 35 * - COALESCE ( + 40, 49 * 69 + ( + + 67 ) + - COUNT ( * ) / + 61 - - 88 ) END + + - ( - 71 ) + - - 3
----
NULL

query I rowsort
SELECT - 92 * 93 AS col2
----
-8556

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7776
SELECT ALL 99 * 82 + 30 AS col1, - 95 + - CAST( NULL AS SIGNED ) * - 46 + 16 AS col2
----
8148
NULL

skipif mysql # not compatible
query II rowsort label-7776
SELECT ALL 99 * 82 + 30 AS col1, - 95 + - CAST ( NULL AS INTEGER ) * - 46 + 16 AS col2
----
8148
NULL

query I rowsort
SELECT + + 73 * + 82 * - - 10
----
59860

onlyif mysql # aggregate syntax: 
query I rowsort label-7778
SELECT DISTINCT + COUNT( * ) * + 39 + 13 + + 8 * + 46 AS col0
----
420

skipif mysql # not compatible
query I rowsort label-7778
SELECT DISTINCT + COUNT ( * ) * + 39 + 13 + + 8 * + 46 AS col0
----
420

query II rowsort
SELECT + 46 + 2 AS col1, 28
----
48
28

query I rowsort
SELECT ALL - 34 * + 81 * - 77
----
212058

onlyif mysql # aggregate syntax: 
query I rowsort label-7781
SELECT - ( CASE COALESCE ( - - CASE 4 WHEN - - 82 + + + CASE - 21 WHEN - + 11 / 38 THEN - + 99 * 23 * 97 * + + 43 - + ( - + 84 ) * + 70 + - 84 / + 44 ELSE NULL END * + CASE 93 WHEN 14 * 50 THEN 44 + - + 25 * + 48 END THEN + - 12 ELSE NULL END, - COUNT( * ) + + 25 ) WHEN 92 THEN 91 WHEN + 19 THEN + 38 END ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7781
SELECT - ( CASE COALESCE ( - - CASE 4 WHEN - - 82 + + + CASE - 21 WHEN - + 11 / 38 THEN - + 99 * 23 * 97 * + + 43 - + ( - + 84 ) * + 70 + - 84 / + 44 ELSE NULL END * + CASE 93 WHEN 14 * 50 THEN 44 + - + 25 * + 48 END THEN + - 12 ELSE NULL END, - COUNT ( * ) + + 25 ) WHEN 92 THEN 91 WHEN + 19 THEN + 38 END ) AS col2
----
NULL

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

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

query I rowsort
SELECT + 78 * 15 + + 30 - + 96 AS col0
----
1104

onlyif mysql # DIV for integer division: 
query I rowsort label-7784
SELECT - - 79 * 94 * + - 84 DIV - 12
----
51982

skipif mysql # not compatible
query I rowsort label-7784
SELECT - - 79 * 94 * + - 84 / - 12
----
51982

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7785
SELECT ALL + 75 AS col0, 47 + COUNT( * ) + + 25 DIV + 53 AS col1
----
75
48

skipif mysql # not compatible
query II rowsort label-7785
SELECT ALL + 75 AS col0, 47 + COUNT ( * ) + + 25 / + 53 AS col1
----
75
48

onlyif mysql # aggregate syntax: 
query I rowsort label-7786
SELECT COUNT( + 34 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-7786
SELECT COUNT ( + 34 ) AS col0
----
1

query I rowsort
SELECT + 68 * COALESCE ( 18, 7 ) * + 98 - - + 43 AS col1
----
119995

query I rowsort
SELECT + 85 - 37 AS col0
----
48

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

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

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

query I rowsort
SELECT + 49 + 67 AS col0
----
116

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7792
SELECT + SUM( 4 ) DIV + 69 col1
----
0

skipif mysql # not compatible
query I rowsort label-7792
SELECT + SUM ( 4 ) / + 69 col1
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-7793
SELECT ALL 20 * - 22 * + - COUNT( * ) AS col0, 63
----
440
63

skipif mysql # not compatible
query II rowsort label-7793
SELECT ALL 20 * - 22 * + - COUNT ( * ) AS col0, 63
----
440
63

query I rowsort
SELECT - 31 - + ( + + 42 )
----
-73

query I rowsort
SELECT + 78 + - 28 AS col0
----
50

query I rowsort
SELECT ALL 84 * - 91 AS col1
----
-7644

onlyif mysql # DIV for integer division: 
query II rowsort label-7797
SELECT 91, - 78 DIV - 70 col1
----
91
1

skipif mysql # not compatible
query II rowsort label-7797
SELECT 91, - 78 / - 70 col1
----
91
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7798
SELECT ALL 79 AS col2, 13 DIV + COALESCE ( + + CASE 81 WHEN - 3 - 13 - + 63 THEN - + 11 END, COUNT( * ), - 94 + 59 )
----
79
13

skipif mysql # not compatible
query II rowsort label-7798
SELECT ALL 79 AS col2, 13 / + COALESCE ( + + CASE 81 WHEN - 3 - 13 - + 63 THEN - + 11 END, COUNT ( * ), - 94 + 59 )
----
79
13

query I rowsort
SELECT + 42 * - 66 AS col2
----
-2772

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

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

query II rowsort
SELECT - 90 AS col0, 68 AS col0
----
-90
68

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7802
SELECT + CASE + - 13 WHEN + 95 THEN - COUNT( * ) * - CASE WHEN NULL IS NOT NULL THEN 54 ELSE - 44 END + ( - 78 ) + + + 32 ELSE + COUNT( * ) END DIV ( 60 ) * + - ( COUNT( * ) ) * 33 * 28 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-7802
SELECT + CASE + - 13 WHEN + 95 THEN - COUNT ( * ) * - CASE WHEN NULL IS NOT NULL THEN 54 ELSE - 44 END + ( - 78 ) + + + 32 ELSE + COUNT ( * ) END / ( 60 ) * + - ( COUNT ( * ) ) * 33 * 28 AS col0
----
0

query I rowsort
SELECT DISTINCT + 62 + - 89 AS col1
----
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-7804
SELECT ALL - MAX( + 66 ) + 27 AS col2
----
-39

skipif mysql # not compatible
query I rowsort label-7804
SELECT ALL - MAX ( + 66 ) + 27 AS col2
----
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-7805
SELECT ALL + COUNT( * ) / - + 32 + 92 + CASE - + ( - + ( ( 26 ) ) ) WHEN + 94 THEN + - 27 WHEN 43 THEN MIN( - 85 ) + - + COUNT( * ) + - 90 ELSE NULL END * + 42
----
NULL

skipif mysql # not compatible
query I rowsort label-7805
SELECT ALL + COUNT ( * ) / - + 32 + 92 + CASE - + ( - + ( ( 26 ) ) ) WHEN + 94 THEN + - 27 WHEN 43 THEN MIN ( - 85 ) + - + COUNT ( * ) + - 90 ELSE NULL END * + 42
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7806
SELECT DISTINCT + + CAST( - 87 AS SIGNED ) * - 74, + ( + 60 ) AS col0
----
6438
60

skipif mysql # not compatible
query II rowsort label-7806
SELECT DISTINCT + + CAST ( - 87 AS INTEGER ) * - 74, + ( + 60 ) AS col0
----
6438
60

onlyif mysql # DIV for integer division: 
query I rowsort label-7807
SELECT - + 69 * + + 64 DIV - + 32 + + 47 * 52
----
2582

skipif mysql # not compatible
query I rowsort label-7807
SELECT - + 69 * + + 64 / - + 32 + + 47 * 52
----
2582

onlyif mysql # DIV for integer division: 
query I rowsort label-7808
SELECT ALL 34 DIV 86 * + - 29 + + 99 AS col0
----
99

skipif mysql # not compatible
query I rowsort label-7808
SELECT ALL 34 / 86 * + - 29 + + 99 AS col0
----
99

query I rowsort
SELECT - 92 + + - 49 AS col1
----
-141

onlyif mysql # aggregate syntax: 
query I rowsort label-7810
SELECT + COUNT( * ) * COALESCE ( + 32, + COUNT( * ) * - 68 ) - 55
----
-23

skipif mysql # not compatible
query I rowsort label-7810
SELECT + COUNT ( * ) * COALESCE ( + 32, + COUNT ( * ) * - 68 ) - 55
----
-23

query II rowsort
SELECT 23, - ( NULLIF ( 83, - + 24 ) ) col2
----
23
-83

query I rowsort
SELECT ALL + - CASE 83 WHEN + + 64 THEN - 78 END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7813
SELECT - ( + - 5 ) DIV 55 + - 20 + - 38
----
-58

skipif mysql # not compatible
query I rowsort label-7813
SELECT - ( + - 5 ) / 55 + - 20 + - 38
----
-58

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7814
SELECT ALL + 76 * - COUNT( * ) - + COUNT( * ) + COUNT( * ), 52 DIV + ( + + 99 ) + - 84 * - NULLIF ( - NULLIF ( - - 97, 64 ), - 65 * 97 ) AS col1
----
-76
-8148

skipif mysql # not compatible
query II rowsort label-7814
SELECT ALL + 76 * - COUNT ( * ) - + COUNT ( * ) + COUNT ( * ), 52 / + ( + + 99 ) + - 84 * - NULLIF ( - NULLIF ( - - 97, 64 ), - 65 * 97 ) AS col1
----
-76
-8148

query I rowsort
SELECT + 62 + + 20
----
82

onlyif mysql # aggregate syntax: 
query II rowsort label-7816
SELECT DISTINCT - ( 83 ) * - - SUM( ALL 67 ), - 50 col1
----
-5561
-50

skipif mysql # not compatible
query II rowsort label-7816
SELECT DISTINCT - ( 83 ) * - - SUM ( ALL 67 ), - 50 col1
----
-5561
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-7817
SELECT CASE + + 53 WHEN - 84 + SUM( + 70 ) THEN 73 END
----
NULL

skipif mysql # not compatible
query I rowsort label-7817
SELECT CASE + + 53 WHEN - 84 + SUM ( + 70 ) THEN 73 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7818
SELECT + COUNT( * ) * - + MAX( ALL + + 33 )
----
-33

skipif mysql # not compatible
query I rowsort label-7818
SELECT + COUNT ( * ) * - + MAX ( ALL + + 33 )
----
-33

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7820
SELECT DISTINCT + COUNT( DISTINCT + + 24 ) * 52 + NULLIF ( - + 86, - - CASE 55 WHEN + 56 THEN NULL WHEN - 3 THEN - COUNT( * ) * 96 + COUNT( * ) WHEN + 25 / + ( + 64 ) - 19 - - ( + - SUM( DISTINCT - 76 ) ) THEN NULL END * 74 * + + 10 + - 77 + - CAST( NULL AS SIGNED ) + + 13 + COUNT( - 55 ) + + COUNT( * ) * - - 90 * 94 ) AS col0
----
-34

skipif mysql # not compatible
query I rowsort label-7820
SELECT DISTINCT + COUNT ( DISTINCT + + 24 ) * 52 + NULLIF ( - + 86, - - CASE 55 WHEN + 56 THEN NULL WHEN - 3 THEN - COUNT ( * ) * 96 + COUNT ( * ) WHEN + 25 / + ( + 64 ) - 19 - - ( + - SUM ( DISTINCT - 76 ) ) THEN NULL END * 74 * + + 10 + - 77 + - CAST ( NULL AS INTEGER ) + + 13 + COUNT ( - 55 ) + + COUNT ( * ) * - - 90 * 94 ) AS col0
----
-34

query I rowsort
SELECT CASE 67 WHEN - - 14 THEN NULL WHEN - 21 THEN + 57 END AS col2
----
NULL

query I rowsort
SELECT ALL 66 + + 46 + - + 25 * 20 * - COALESCE ( 65, + - 34 * - + 22 - + 0, - 39 + 97 * NULLIF ( + + 55, + 94 ) ) * - 1 + + + 85 AS col0
----
-32303

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7824
SELECT ALL 37 DIV - 77
----
0

skipif mysql # not compatible
query I rowsort label-7824
SELECT ALL 37 / - 77
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7825
SELECT COUNT( * ) * 44 * CAST( NULL AS SIGNED ) * 21 * + + ( 45 ) / - + 98 / + 27
----
NULL

skipif mysql # not compatible
query I rowsort label-7825
SELECT COUNT ( * ) * 44 * CAST ( NULL AS INTEGER ) * 21 * + + ( 45 ) / - + 98 / + 27
----
NULL

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7827
SELECT ( + 73 ) DIV NULLIF ( - 51, + 96 )
----
-1

skipif mysql # not compatible
query I rowsort label-7827
SELECT ( + 73 ) / NULLIF ( - 51, + 96 )
----
-1

query I rowsort
SELECT DISTINCT 71 + ( - 35 ) AS col0
----
36

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7829
SELECT ALL 30 + - CAST( 36 AS SIGNED ) AS col0
----
-6

skipif mysql # not compatible
query I rowsort label-7829
SELECT ALL 30 + - CAST ( 36 AS INTEGER ) AS col0
----
-6

query I rowsort
SELECT 51 - - COALESCE ( + 31, + 71 + + ( 98 ) + - 24 ) AS col0
----
82

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7831
SELECT ALL - CAST( NULL AS DECIMAL ) * + 82 / 53
----
NULL

skipif mysql # not compatible
query I rowsort label-7831
SELECT ALL - CAST ( NULL AS REAL ) * + 82 / 53
----
NULL

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

skipif mysql # not compatible
query I rowsort label-7832
SELECT ALL + COUNT ( * ) + - 59 AS col1
----
-58

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

query I rowsort
SELECT ALL - 58 + - + ( + 5 ) col2
----
-63

query I rowsort
SELECT DISTINCT 53 * 66
----
3498

onlyif mysql # aggregate syntax: 
query II rowsort label-7836
SELECT + ( + SUM( DISTINCT 92 ) ) - + 74 AS col1, - COUNT( * ) - 12 + 91 AS col2
----
18
78

skipif mysql # not compatible
query II rowsort label-7836
SELECT + ( + SUM ( DISTINCT 92 ) ) - + 74 AS col1, - COUNT ( * ) - 12 + 91 AS col2
----
18
78

query I rowsort
SELECT DISTINCT 80 + - 0 * - 80
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-7838
SELECT COALESCE ( SUM( ALL + ( 8 ) ), + 83 + + + 48 - + - 87, 96 ) AS col2
----
8

skipif mysql # not compatible
query I rowsort label-7838
SELECT COALESCE ( SUM ( ALL + ( 8 ) ), + 83 + + + 48 - + - 87, 96 ) AS col2
----
8

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query III rowsort label-7839
SELECT ALL - COUNT( DISTINCT - + 68 ) col2, 20 + + - ( - - 93 ) * + 79 * - 56, CAST( - 67 AS SIGNED ) * 6 * 2 AS col0
----
-1
411452
-804

skipif mysql # not compatible
query III rowsort label-7839
SELECT ALL - COUNT ( DISTINCT - + 68 ) col2, 20 + + - ( - - 93 ) * + 79 * - 56, CAST ( - 67 AS INTEGER ) * 6 * 2 AS col0
----
-1
411452
-804

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7840
SELECT ALL 98 - - CAST( + 49 AS SIGNED ) AS col0
----
147

skipif mysql # not compatible
query I rowsort label-7840
SELECT ALL 98 - - CAST ( + 49 AS INTEGER ) AS col0
----
147

query I rowsort
SELECT - 68 * - 7
----
476

onlyif mysql # aggregate syntax: 
query I rowsort label-7842
SELECT + MIN( ALL + + 47 ) AS col0
----
47

skipif mysql # not compatible
query I rowsort label-7842
SELECT + MIN ( ALL + + 47 ) AS col0
----
47

onlyif mysql # aggregate syntax: 
query II rowsort label-7843
SELECT ALL - CASE - 13 WHEN - 86 THEN 0 ELSE + - 61 END, COUNT( * ) col2
----
61
1

skipif mysql # not compatible
query II rowsort label-7843
SELECT ALL - CASE - 13 WHEN - 86 THEN 0 ELSE + - 61 END, COUNT ( * ) col2
----
61
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7844
SELECT ALL - ( - MIN( - ( - - 26 ) ) ) - + - CASE + + 25 WHEN - + COUNT( * ) THEN + COUNT( * ) * + 88 * - + COUNT( * ) WHEN - 38 * - 37 + + - NULLIF ( + NULLIF ( COUNT( * ), 22 - 82 ), + - 88 ) THEN - + 1 WHEN - 97 THEN NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7844
SELECT ALL - ( - MIN ( - ( - - 26 ) ) ) - + - CASE + + 25 WHEN - + COUNT ( * ) THEN + COUNT ( * ) * + 88 * - + COUNT ( * ) WHEN - 38 * - 37 + + - NULLIF ( + NULLIF ( COUNT ( * ), 22 - 82 ), + - 88 ) THEN - + 1 WHEN - 97 THEN NULL END AS col2
----
NULL

query I rowsort
SELECT ALL + + 6 * + + 10 AS col1
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-7846
SELECT DISTINCT MAX( DISTINCT - 86 ) * + 32 AS col1
----
-2752

skipif mysql # not compatible
query I rowsort label-7846
SELECT DISTINCT MAX ( DISTINCT - 86 ) * + 32 AS col1
----
-2752

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

skipif mysql # not compatible
query I rowsort label-7847
SELECT + 31 / - 92
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7848
SELECT CAST( NULL AS SIGNED ) * + 41 * 8 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7848
SELECT CAST ( NULL AS INTEGER ) * + 41 * 8 AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7849
SELECT ALL + NULLIF ( + + 37, - 37 + + 76 ) * COUNT( * ) - 56 + ( - 61 ) + + NULLIF ( + 93, 67 + + MAX( DISTINCT - + 69 ) ) * - MIN( 78 ) - - - 69 + COUNT( * ) DIV + MIN( ALL - 95 ) AS col0
----
-7403

skipif mysql # not compatible
query I rowsort label-7849
SELECT ALL + NULLIF ( + + 37, - 37 + + 76 ) * COUNT ( * ) - 56 + ( - 61 ) + + NULLIF ( + 93, 67 + + MAX ( DISTINCT - + 69 ) ) * - MIN ( 78 ) - - - 69 + COUNT ( * ) / + MIN ( ALL - 95 ) AS col0
----
-7403

onlyif mysql # aggregate syntax: 
query I rowsort label-7850
SELECT ALL - MIN( DISTINCT + 90 )
----
-90

skipif mysql # not compatible
query I rowsort label-7850
SELECT ALL - MIN ( DISTINCT + 90 )
----
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-7851
SELECT 17 - - + COUNT( DISTINCT - ( + COALESCE ( + CASE + 85 WHEN + 58 * - 87 THEN NULL ELSE + 58 + + ( + - ( + 1 ) ) - - - 26 * + + 26 END, + + 81 * - 90 * + 32 ) ) )
----
18

skipif mysql # not compatible
query I rowsort label-7851
SELECT 17 - - + COUNT ( DISTINCT - ( + COALESCE ( + CASE + 85 WHEN + 58 * - 87 THEN NULL ELSE + 58 + + ( + - ( + 1 ) ) - - - 26 * + + 26 END, + + 81 * - 90 * + 32 ) ) )
----
18

query II rowsort
SELECT - 68 * + + 73 - - 83 AS col0, 95 AS col0
----
-4881
95

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

skipif mysql # not compatible
query I rowsort label-7853
SELECT DISTINCT - COUNT ( * ) / - - 30 col2
----
0

query I rowsort
SELECT ALL - COALESCE ( + + 89, 8, - + 85 ) AS col1
----
-89

query II rowsort
SELECT DISTINCT - 74 AS col2, + 6 - + 76 AS col1
----
-74
-70

query I rowsort
SELECT DISTINCT + 40 + 84 AS col1
----
124

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7858
SELECT 52 - CAST( NULL AS SIGNED ) * + + 26 - + 31 + NULLIF ( + + 47, + CAST( - ( - - 86 ) AS SIGNED ) + + 41 ) * - MAX( ALL - 81 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7858
SELECT 52 - CAST ( NULL AS INTEGER ) * + + 26 - + 31 + NULLIF ( + + 47, + CAST ( - ( - - 86 ) AS INTEGER ) + + 41 ) * - MAX ( ALL - 81 ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7859
SELECT ALL + CASE WHEN 62 IS NOT NULL THEN NULL ELSE - MIN( DISTINCT ( - - 39 ) ) END + 24 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7859
SELECT ALL + CASE WHEN 62 IS NOT NULL THEN NULL ELSE - MIN ( DISTINCT ( - - 39 ) ) END + 24 AS col2
----
NULL

query I rowsort
SELECT 35 + - 35
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7861
SELECT COUNT( * ) * + MIN( ALL - 26 ) - + 82 + 69 + - 70 AS col1
----
-109

skipif mysql # not compatible
query I rowsort label-7861
SELECT COUNT ( * ) * + MIN ( ALL - 26 ) - + 82 + 69 + - 70 AS col1
----
-109

query I rowsort
SELECT ALL - 86 + - 51 + - 15 AS col1
----
-152

onlyif mysql # aggregate syntax: 
query I rowsort label-7863
SELECT MAX( ALL - - 10 ) * + 78 - 33 AS col2
----
747

skipif mysql # not compatible
query I rowsort label-7863
SELECT MAX ( ALL - - 10 ) * + 78 - 33 AS col2
----
747

query I rowsort
SELECT 51 + - - 94 AS col2
----
145

onlyif mysql # aggregate syntax: 
query I rowsort label-7865
SELECT 61 + + - COUNT( * )
----
60

skipif mysql # not compatible
query I rowsort label-7865
SELECT 61 + + - COUNT ( * )
----
60

query I rowsort
SELECT 96 - + 25
----
71

onlyif mysql # aggregate syntax: 
query II rowsort label-7867
SELECT ALL 84, + COUNT( * ) + + 32 AS col0
----
84
33

skipif mysql # not compatible
query II rowsort label-7867
SELECT ALL 84, + COUNT ( * ) + + 32 AS col0
----
84
33

query II rowsort
SELECT - 36 AS col1, 19 AS col0
----
-36
19

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7869
SELECT 43 + + CAST( NULL AS SIGNED ) + SUM( 53 ) * - 15
----
NULL

skipif mysql # not compatible
query I rowsort label-7869
SELECT 43 + + CAST ( NULL AS INTEGER ) + SUM ( 53 ) * - 15
----
NULL

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

skipif mysql # not compatible
query I rowsort label-7870
SELECT DISTINCT + 80 / COUNT ( * )
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-7871
SELECT ALL MAX( DISTINCT + 26 ) - COUNT( * )
----
25

skipif mysql # not compatible
query I rowsort label-7871
SELECT ALL MAX ( DISTINCT + 26 ) - COUNT ( * )
----
25

query I rowsort
SELECT - COALESCE ( + 97, + + 84 * - 95 + - 82 + - 10 * + 94 ) AS col1
----
-97

onlyif mysql # aggregate syntax: 
query II rowsort label-7873
SELECT - 13 + 33 + - + 98 AS col0, 79 * + 60 * + COALESCE ( + - 45, + COALESCE ( + 30, - 56 * + 14 * + 83 + + + 62, - 24 + + MAX( ALL 65 ) ) * 63 ) AS col0
----
-78
-213300

skipif mysql # not compatible
query II rowsort label-7873
SELECT - 13 + 33 + - + 98 AS col0, 79 * + 60 * + COALESCE ( + - 45, + COALESCE ( + 30, - 56 * + 14 * + 83 + + + 62, - 24 + + MAX ( ALL 65 ) ) * 63 ) AS col0
----
-78
-213300

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

skipif mysql # not compatible
query I rowsort label-7874
SELECT COUNT ( * ) / - 14 * + 13
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-7875
SELECT + NULLIF ( 3, - 42 * + 37 ) * + 77, - SUM( DISTINCT + 32 ) AS col2
----
231
-32

skipif mysql # not compatible
query II rowsort label-7875
SELECT + NULLIF ( 3, - 42 * + 37 ) * + 77, - SUM ( DISTINCT + 32 ) AS col2
----
231
-32

query I rowsort
SELECT + 65 * + - 53 * + + 72
----
-248040

query I rowsort
SELECT 12 * - 10 * + + 87 + ( 99 )
----
-10341

onlyif mysql # aggregate syntax: 
query I rowsort label-7878
SELECT - + COALESCE ( + COUNT( * ), 84 * - MAX( 49 ) * - NULLIF ( - - ( - 8 ), + ( - COUNT( * ) ) ) ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-7878
SELECT - + COALESCE ( + COUNT ( * ), 84 * - MAX ( 49 ) * - NULLIF ( - - ( - 8 ), + ( - COUNT ( * ) ) ) ) AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7879
SELECT ALL - + COUNT( * ) - - 42 * 82 + COUNT( * ) AS col2
----
3444

skipif mysql # not compatible
query I rowsort label-7879
SELECT ALL - + COUNT ( * ) - - 42 * 82 + COUNT ( * ) AS col2
----
3444

query I rowsort
SELECT - + 45 col1
----
-45

query I rowsort
SELECT ALL 32 - + 35 col0
----
-3

query I rowsort
SELECT 91 * 9 AS col0
----
819

onlyif mysql # aggregate syntax: 
query I rowsort label-7883
SELECT ALL 71 * + + 94 * + + NULLIF ( + 60, 19 ) * CASE 79 WHEN - - COUNT( * ) + - COUNT( + 43 ) + - ( - COUNT( DISTINCT 65 ) ) + - 95 THEN NULL ELSE + 79 + - ( - ( - 88 ) ) * ( + - 0 ) END AS col1
----
31634760

skipif mysql # not compatible
query I rowsort label-7883
SELECT ALL 71 * + + 94 * + + NULLIF ( + 60, 19 ) * CASE 79 WHEN - - COUNT ( * ) + - COUNT ( + 43 ) + - ( - COUNT ( DISTINCT 65 ) ) + - 95 THEN NULL ELSE + 79 + - ( - ( - 88 ) ) * ( + - 0 ) END AS col1
----
31634760

onlyif mysql # aggregate syntax: 
query I rowsort label-7884
SELECT DISTINCT MIN( ALL 58 ) AS col1
----
58

skipif mysql # not compatible
query I rowsort label-7884
SELECT DISTINCT MIN ( ALL 58 ) AS col1
----
58

query I rowsort
SELECT + 24 + - 58
----
-34

onlyif mysql # aggregate syntax: 
query II rowsort label-7886
SELECT ALL - 12 AS col0, - 78 * + MAX( DISTINCT - + 85 )
----
-12
6630

skipif mysql # not compatible
query II rowsort label-7886
SELECT ALL - 12 AS col0, - 78 * + MAX ( DISTINCT - + 85 )
----
-12
6630

query I rowsort
SELECT NULLIF ( ( + 21 ), - + 76 ) * 34 AS col2
----
714

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

skipif mysql # not compatible
query I rowsort label-7888
SELECT - 89 / COUNT ( * ) + - COUNT ( * ) * - + ( CAST ( NULL AS INTEGER ) ) AS col1
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7890
SELECT COUNT( * ) + + - 69 + - - 87 col1
----
19

skipif mysql # not compatible
query I rowsort label-7890
SELECT COUNT ( * ) + + - 69 + - - 87 col1
----
19

onlyif mysql # aggregate syntax: 
query II rowsort label-7891
SELECT COUNT( * ) col1, COUNT( - NULLIF ( - - 81, - 4 ) ) col2
----
1
1

skipif mysql # not compatible
query II rowsort label-7891
SELECT COUNT ( * ) col1, COUNT ( - NULLIF ( - - 81, - 4 ) ) col2
----
1
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7892
SELECT ALL + 26 * + - ( + - CAST( + 91 AS SIGNED ) ) AS col0
----
2366

skipif mysql # not compatible
query I rowsort label-7892
SELECT ALL + 26 * + - ( + - CAST ( + 91 AS INTEGER ) ) AS col0
----
2366

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7893
SELECT - 1 * COALESCE ( + CAST( + 7 AS SIGNED ), 18, + 21 ) + - + 69, 13 * 18 AS col2
----
-76
234

skipif mysql # not compatible
query II rowsort label-7893
SELECT - 1 * COALESCE ( + CAST ( + 7 AS INTEGER ), 18, + 21 ) + - + 69, 13 * 18 AS col2
----
-76
234

query II rowsort
SELECT ALL - 75 col0, 7
----
-75
7

query I rowsort
SELECT ALL + 12 * - 21 + 39
----
-213

query I rowsort
SELECT + 43 * 70
----
3010

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7897
SELECT - COALESCE ( 63, + 12 ) + + 20 + - 65 + 41 * - ( - - 64 ) * - 97 / - CAST( NULL AS SIGNED ) * - 19 + AVG ( DISTINCT 80 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7897
SELECT - COALESCE ( 63, + 12 ) + + 20 + - 65 + 41 * - ( - - 64 ) * - 97 / - CAST ( NULL AS INTEGER ) * - 19 + AVG ( DISTINCT 80 )
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7898
SELECT 27 * - COALESCE ( - CASE - - 47 WHEN - - 28 THEN + 99 END, - NULLIF ( + + 28, CAST( NULL AS DECIMAL ) ), - 51 ) + 30 AS col2
----
786

skipif mysql # not compatible
query I rowsort label-7898
SELECT 27 * - COALESCE ( - CASE - - 47 WHEN - - 28 THEN + 99 END, - NULLIF ( + + 28, CAST ( NULL AS REAL ) ), - 51 ) + 30 AS col2
----
786

query I rowsort
SELECT + 37 * + 7
----
259

query I rowsort
SELECT - 42 * 28 AS col2
----
-1176

query II rowsort
SELECT + 72 AS col2, - 44 * - + 70
----
72
3080

onlyif mysql # DIV for integer division: 
query I rowsort label-7902
SELECT ALL + 27 + - 47 DIV 48
----
27

skipif mysql # not compatible
query I rowsort label-7902
SELECT ALL + 27 + - 47 / 48
----
27

query I rowsort
SELECT + 7 * 16 + + + 40 - + - 89 + 38 - - 60
----
339

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7904
SELECT ALL - COUNT( - 14 ) DIV - ( ( - 25 ) )
----
0

skipif mysql # not compatible
query I rowsort label-7904
SELECT ALL - COUNT ( - 14 ) / - ( ( - 25 ) )
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7905
SELECT - 89 DIV - COUNT( * ) AS col0
----
89

skipif mysql # not compatible
query I rowsort label-7905
SELECT - 89 / - COUNT ( * ) AS col0
----
89

query I rowsort
SELECT ALL 95 + - 3
----
92

query I rowsort
SELECT ALL + 11 - COALESCE ( 70, 34 * + 79 ) AS col1
----
-59

query I rowsort
SELECT - 56 * 44 AS col1
----
-2464

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7909
SELECT DISTINCT + - COUNT( DISTINCT - CAST( - 85 AS DECIMAL ) ) - + 24 + + 38 AS col2
----
13

skipif mysql # not compatible
query I rowsort label-7909
SELECT DISTINCT + - COUNT ( DISTINCT - CAST ( - 85 AS REAL ) ) - + 24 + + 38 AS col2
----
13

query II rowsort
SELECT + 14 AS col0, ( + ( + 93 ) )
----
14
93

onlyif mysql # aggregate syntax: 
query I rowsort label-7911
SELECT DISTINCT - MIN( + 15 ) AS col1
----
-15

skipif mysql # not compatible
query I rowsort label-7911
SELECT DISTINCT - MIN ( + 15 ) AS col1
----
-15

query I rowsort
SELECT ALL + - 40 - - + 92
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-7913
SELECT - NULLIF ( - 18, + COUNT( * ) * - - 66 / + - 23 * + 1 * + 4 )
----
18

skipif mysql # not compatible
query I rowsort label-7913
SELECT - NULLIF ( - 18, + COUNT ( * ) * - - 66 / + - 23 * + 1 * + 4 )
----
18

query II rowsort
SELECT ALL 37 AS col0, - 31
----
37
-31

query I rowsort
SELECT ALL - + 65 * - 50
----
3250

query I rowsort
SELECT + ( - 5 ) * - 56 AS col1
----
280

query I rowsort
SELECT - ( - + 87 ) * + + 9 * 86 AS col2
----
67338

onlyif mysql # aggregate syntax: 
query II rowsort label-7918
SELECT ALL - MIN( ALL + 55 ) AS col0, - CASE - 8 WHEN + COALESCE ( + - 31, + COUNT( ALL + 24 ) ) + - - 83 + - - 3 + - 79 + - 34 THEN + 68 WHEN - 33 + + 77 * - 8 * - + COUNT( * ) / + 42 THEN NULL WHEN - 90 THEN NULL END
----
-55
NULL

skipif mysql # not compatible
query II rowsort label-7918
SELECT ALL - MIN ( ALL + 55 ) AS col0, - CASE - 8 WHEN + COALESCE ( + - 31, + COUNT ( ALL + 24 ) ) + - - 83 + - - 3 + - 79 + - 34 THEN + 68 WHEN - 33 + + 77 * - 8 * - + COUNT ( * ) / + 42 THEN NULL WHEN - 90 THEN NULL END
----
-55
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7919
SELECT ALL + 3 AS col0, 31 * - 10 * + 11 * COALESCE ( - ( - + ( - COUNT( + + 48 ) ) ), - 47, ( + NULLIF ( 74, + - 78 ) ) )
----
3
3410

skipif mysql # not compatible
query II rowsort label-7919
SELECT ALL + 3 AS col0, 31 * - 10 * + 11 * COALESCE ( - ( - + ( - COUNT ( + + 48 ) ) ), - 47, ( + NULLIF ( 74, + - 78 ) ) )
----
3
3410

onlyif mysql # aggregate syntax: 
query II rowsort label-7920
SELECT DISTINCT 27, SUM( ALL + - 38 ) + + 78 + 32 AS col2
----
27
72

skipif mysql # not compatible
query II rowsort label-7920
SELECT DISTINCT 27, SUM ( ALL + - 38 ) + + 78 + 32 AS col2
----
27
72

onlyif mysql # aggregate syntax: 
query I rowsort label-7921
SELECT + - 80 - + ( - + 61 ) * - + COUNT( DISTINCT - + 65 ) AS col2
----
-141

skipif mysql # not compatible
query I rowsort label-7921
SELECT + - 80 - + ( - + 61 ) * - + COUNT ( DISTINCT - + 65 ) AS col2
----
-141

onlyif mysql # DIV for integer division: 
query I rowsort label-7922
SELECT - - 69 DIV + ( 87 )
----
0

skipif mysql # not compatible
query I rowsort label-7922
SELECT - - 69 / + ( 87 )
----
0

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

skipif mysql # not compatible
query I rowsort label-7923
SELECT - MAX ( + 10 )
----
-10

query I rowsort
SELECT + 35 * 44 + - + 1
----
1539

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7925
SELECT ALL COUNT( * ) DIV - ( + + 87 ) * + 66 + + 17 col1
----
17

skipif mysql # not compatible
query I rowsort label-7925
SELECT ALL COUNT ( * ) / - ( + + 87 ) * + 66 + + 17 col1
----
17

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7926
SELECT + COALESCE ( ( + + 96 ), - 30 - + + 3 DIV + + 35 - 75 * + COUNT( * ) * + 42 * + + ( + 66 ) )
----
96

skipif mysql # not compatible
query I rowsort label-7926
SELECT + COALESCE ( ( + + 96 ), - 30 - + + 3 / + + 35 - 75 * + COUNT ( * ) * + 42 * + + ( + 66 ) )
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-7927
SELECT DISTINCT - 85 * 43 + 45 - + 73 * - SUM( ALL 83 ) + + - 54
----
2395

skipif mysql # not compatible
query I rowsort label-7927
SELECT DISTINCT - 85 * 43 + 45 - + 73 * - SUM ( ALL 83 ) + + - 54
----
2395

onlyif mysql # aggregate syntax: 
query I rowsort label-7928
SELECT ALL 97 * + - COUNT( * ) + + 15 AS col2
----
-82

skipif mysql # not compatible
query I rowsort label-7928
SELECT ALL 97 * + - COUNT ( * ) + + 15 AS col2
----
-82

query I rowsort
SELECT + 61 - - 88 + + 18 - + + 57 * - + 17 + 52 * + 18
----
2072

query II rowsort
SELECT ( + + 99 ) col0, - 82
----
99
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-7931
SELECT + COUNT( * ) - + 48 + + + MIN( 49 ) AS col0
----
2

skipif mysql # not compatible
query I rowsort label-7931
SELECT + COUNT ( * ) - + 48 + + + MIN ( 49 ) AS col0
----
2

query I rowsort
SELECT - 19 * + 53 * + NULLIF ( - 21, 12 ) AS col1
----
21147

onlyif mysql # aggregate syntax: 
query I rowsort label-7933
SELECT + ( - NULLIF ( - 71, - 57 * 83 / + ( + - 45 ) * + - SUM( ALL - 14 ) ) )
----
71

skipif mysql # not compatible
query I rowsort label-7933
SELECT + ( - NULLIF ( - 71, - 57 * 83 / + ( + - 45 ) * + - SUM ( ALL - 14 ) ) )
----
71

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7934
SELECT ALL 71 DIV - SUM( DISTINCT - 61 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-7934
SELECT ALL 71 / - SUM ( DISTINCT - 61 ) AS col0
----
1

query II rowsort
SELECT + 83 - - 59 AS col2, 16 + 67
----
142
83

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7936
SELECT DISTINCT - CASE + 96 WHEN - - COUNT( * ) / + - 89 / CAST( NULL AS SIGNED ) THEN - + 91 + + 99 - + + 93 ELSE 11 * 44 + - ( - 8 ) + + CAST( NULL AS DECIMAL ) END * - 73 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7936
SELECT DISTINCT - CASE + 96 WHEN - - COUNT ( * ) / + - 89 / CAST ( NULL AS INTEGER ) THEN - + 91 + + 99 - + + 93 ELSE 11 * 44 + - ( - 8 ) + + CAST ( NULL AS REAL ) END * - 73 AS col2
----
NULL

query I rowsort
SELECT DISTINCT 6 * - - ( 91 ) AS col0
----
546

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7938
SELECT ALL + NULLIF ( - 65, 36 * + + CASE + - 19 WHEN - 96 THEN 89 WHEN ( + SUM( + CAST( + + 54 AS SIGNED ) ) ) + 42 / - 21 THEN NULL WHEN + 12 + - 68 THEN + 94 ELSE NULL END - + 82 + - 54 * + 34 )
----
-65

skipif mysql # not compatible
query I rowsort label-7938
SELECT ALL + NULLIF ( - 65, 36 * + + CASE + - 19 WHEN - 96 THEN 89 WHEN ( + SUM ( + CAST ( + + 54 AS INTEGER ) ) ) + 42 / - 21 THEN NULL WHEN + 12 + - 68 THEN + 94 ELSE NULL END - + 82 + - 54 * + 34 )
----
-65

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7939
SELECT + + CAST( + 94 AS SIGNED ) + + - CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-7939
SELECT + + CAST ( + 94 AS INTEGER ) + + - CAST ( NULL AS REAL )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7940
SELECT + 7 DIV + + 16
----
0

skipif mysql # not compatible
query I rowsort label-7940
SELECT + 7 / + + 16
----
0

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

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

query I rowsort
SELECT - + 36 * + 19
----
-684

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7943
SELECT + 34 + CAST( - 94 AS SIGNED )
----
-60

skipif mysql # not compatible
query I rowsort label-7943
SELECT + 34 + CAST ( - 94 AS INTEGER )
----
-60

query II rowsort
SELECT ALL 4 * + 0, - 25 AS col2
----
0
-25

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

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

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

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

query I rowsort
SELECT ALL + COALESCE ( - 95, - 0 )
----
-95

onlyif mysql # aggregate syntax: 
query II rowsort label-7948
SELECT - - NULLIF ( - COUNT( DISTINCT 99 ), 6 ) * 22 AS col1, + 66 AS col1
----
-22
66

skipif mysql # not compatible
query II rowsort label-7948
SELECT - - NULLIF ( - COUNT ( DISTINCT 99 ), 6 ) * 22 AS col1, + 66 AS col1
----
-22
66

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7949
SELECT CASE + 22 WHEN + 52 THEN + - NULLIF ( COUNT( * ), - 46 ) - + + COALESCE ( + - CAST( NULL AS SIGNED ), - + NULLIF ( 99, - - 99 ) + CAST( 49 AS SIGNED ) + - 27 + - 51 ) WHEN - + 55 THEN - + CAST( 88 AS SIGNED ) + 71 * - 44 END AS col0, ( 62 ) * 61 + 33
----
NULL
3815

skipif mysql # not compatible
query II rowsort label-7949
SELECT CASE + 22 WHEN + 52 THEN + - NULLIF ( COUNT ( * ), - 46 ) - + + COALESCE ( + - CAST ( NULL AS INTEGER ), - + NULLIF ( 99, - - 99 ) + CAST ( 49 AS INTEGER ) + - 27 + - 51 ) WHEN - + 55 THEN - + CAST ( 88 AS INTEGER ) + 71 * - 44 END AS col0, ( 62 ) * 61 + 33
----
NULL
3815

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

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

query I rowsort
SELECT - - ( - - 52 ) + - + 10
----
42

query I rowsort
SELECT + 23 * - - 26 * - 38
----
-22724

onlyif mysql # aggregate syntax: 
query I rowsort label-7953
SELECT - 93 * - COUNT( * ) * - 54
----
-5022

skipif mysql # not compatible
query I rowsort label-7953
SELECT - 93 * - COUNT ( * ) * - 54
----
-5022

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7954
SELECT - + 9 + + - CAST( NULL AS DECIMAL ) + + - AVG ( - 32 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7954
SELECT - + 9 + + - CAST ( NULL AS REAL ) + + - AVG ( - 32 )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: DIV for integer division: 
query II rowsort label-7955
SELECT ALL + CAST( - 58 AS SIGNED ) + 1 + - 45 * - - 42 * + ( + NULLIF ( - 68, ( + - 26 ) - 19 * COUNT( * ) * + 85 ) ) + + CAST( NULL AS DECIMAL ) * - 20 AS col0, COALESCE ( + 77, - ( + + 44 ) DIV + - 8 - 54 + + 70, - 11 * + 5 + - 84 DIV + - 69 ) AS col0
----
NULL
77

skipif mysql # not compatible
query II rowsort label-7955
SELECT ALL + CAST ( - 58 AS INTEGER ) + 1 + - 45 * - - 42 * + ( + NULLIF ( - 68, ( + - 26 ) - 19 * COUNT ( * ) * + 85 ) ) + + CAST ( NULL AS REAL ) * - 20 AS col0, COALESCE ( + 77, - ( + + 44 ) / + - 8 - 54 + + 70, - 11 * + 5 + - 84 / + - 69 ) AS col0
----
NULL
77

query I rowsort
SELECT ALL - - 20 + + 15 * 6
----
110

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

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

query I rowsort
SELECT DISTINCT + 53 + 91 col1
----
144

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

query I rowsort
SELECT ALL 67 + - 96
----
-29

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

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

query I rowsort
SELECT + 12 * - 49 + 41 * 31
----
683

onlyif mysql # DIV for integer division: 
query I rowsort label-7963
SELECT 90 DIV 64 + 72 AS col0
----
73

skipif mysql # not compatible
query I rowsort label-7963
SELECT 90 / 64 + 72 AS col0
----
73

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7964
SELECT AVG ( - - CAST( NULL AS SIGNED ) ) * - ( + 74 ) - + ( 13 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7964
SELECT AVG ( - - CAST ( NULL AS INTEGER ) ) * - ( + 74 ) - + ( 13 )
----
NULL

query I rowsort
SELECT ALL 8 * - + 36 AS col0
----
-288

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7966
SELECT DISTINCT 25 * + NULLIF ( - - ( + ( + NULLIF ( COUNT( * ), + + ( + - 25 ) + + 45 ) ) ), - CAST( - COUNT( * ) AS SIGNED ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7966
SELECT DISTINCT 25 * + NULLIF ( - - ( + ( + NULLIF ( COUNT ( * ), + + ( + - 25 ) + + 45 ) ) ), - CAST ( - COUNT ( * ) AS INTEGER ) ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7967
SELECT SUM( + + 50 ) * 64 + + - 59 - SUM( ALL + 26 ) AS col2
----
3115

skipif mysql # not compatible
query I rowsort label-7967
SELECT SUM ( + + 50 ) * 64 + + - 59 - SUM ( ALL + 26 ) AS col2
----
3115

query I rowsort
SELECT DISTINCT - 9 - 12
----
-21

query I rowsort
SELECT ALL 65 - 42
----
23

query I rowsort
SELECT 97 * - 1 + 17 * 86 AS col2
----
1365

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

onlyif mysql # aggregate syntax: 
query II rowsort label-7972
SELECT COUNT( * ) col1, 0 + + MAX( ALL + - 72 ) AS col2
----
1
-72

skipif mysql # not compatible
query II rowsort label-7972
SELECT COUNT ( * ) col1, 0 + + MAX ( ALL + - 72 ) AS col2
----
1
-72

query I rowsort
SELECT ALL + 68 * - + 58 AS col0
----
-3944

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7975
SELECT - - CASE - - 79 WHEN COALESCE ( COUNT( * ), - - 92 * - 48 * - - ( + 72 ), + CAST( NULL AS SIGNED ) / + COUNT( * ) + 48 ) THEN - 87 + + 22 ELSE CAST( NULL AS SIGNED ) END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7975
SELECT - - CASE - - 79 WHEN COALESCE ( COUNT ( * ), - - 92 * - 48 * - - ( + 72 ), + CAST ( NULL AS INTEGER ) / + COUNT ( * ) + 48 ) THEN - 87 + + 22 ELSE CAST ( NULL AS INTEGER ) END col1
----
NULL

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

skipif mysql # not compatible
query I rowsort label-7976
SELECT DISTINCT 20 / 78
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-7977
SELECT ALL + 84 AS col1, + 20 * + - COALESCE ( 78, - CASE + + 20 WHEN ( + + CASE 45 WHEN 82 * - - ( - + 78 ) THEN NULL WHEN + - COUNT( * ) THEN NULL WHEN + 30 THEN + COUNT( * ) ELSE NULL END ) + + - 15 + + 9 - 68 + - + ( - - COALESCE ( + 43, + CAST( + 38 AS SIGNED ) DIV + + CASE - 92 WHEN ( + ( - CASE 2 WHEN + 45 THEN ( - 35 ) + 28 * - CASE - 48 WHEN + 37 * CAST( NULL AS SIGNED ) * 85 + - NULLIF ( 89, 37 * 73 ) THEN CAST( NULL AS SIGNED ) WHEN 69 * + COUNT( * ) + COUNT( DISTINCT 61 - ( + 93 ) ) THEN 10 DIV + CAST( 17 AS SIGNED ) ELSE NULL END END ) ) + - CASE - 44 WHEN + 18 * - 38 - 16 THEN 90 WHEN - ( 64 ) THEN NULL ELSE 27 + - 2 END THEN 58 * 63 ELSE NULL END, 84 * - CASE 27 WHEN 22 THEN 3 * - ( - CASE - 84 WHEN + MIN( ALL + ( ( 22 ) ) ) THEN 48 * 90 END * 34 ) - 44 WHEN 18 THEN NULL END + + 5 ) ) + CASE 27 WHEN - 10 THEN NULL WHEN ( 89 ) THEN COUNT( * ) + 38 WHEN 75 THEN 2 * + COUNT( * ) + 31 END * + 4 * 94 * 29 THEN + 80 ELSE NULL END - - COUNT( * ) DIV CASE 75 WHEN 17 - - 79 THEN - COUNT( * ) END, 67 - - ( - 61 ) ) DIV COUNT( * ) AS col2
----
84
-1560

skipif mysql # not compatible
query II rowsort label-7977
SELECT ALL + 84 AS col1, + 20 * + - COALESCE ( 78, - CASE + + 20 WHEN ( + + CASE 45 WHEN 82 * - - ( - + 78 ) THEN NULL WHEN + - COUNT ( * ) THEN NULL WHEN + 30 THEN + COUNT ( * ) ELSE NULL END ) + + - 15 + + 9 - 68 + - + ( - - COALESCE ( + 43, + CAST ( + 38 AS INTEGER ) / + + CASE - 92 WHEN ( + ( - CASE 2 WHEN + 45 THEN ( - 35 ) + 28 * - CASE - 48 WHEN + 37 * CAST ( NULL AS INTEGER ) * 85 + - NULLIF ( 89, 37 * 73 ) THEN CAST ( NULL AS INTEGER ) WHEN 69 * + COUNT ( * ) + COUNT ( DISTINCT 61 - ( + 93 ) ) THEN 10 / + CAST ( 17 AS INTEGER ) ELSE NULL END END ) ) + - CASE - 44 WHEN + 18 * - 38 - 16 THEN 90 WHEN - ( 64 ) THEN NULL ELSE 27 + - 2 END THEN 58 * 63 ELSE NULL END, 84 * - CASE 27 WHEN 22 THEN 3 * - ( - CASE - 84 WHEN + MIN ( ALL + ( ( 22 ) ) ) THEN 48 * 90 END * 34 ) - 44 WHEN 18 THEN NULL END + + 5 ) ) + CASE 27 WHEN - 10 THEN NULL WHEN ( 89 ) THEN COUNT ( * ) + 38 WHEN 75 THEN 2 * + COUNT ( * ) + 31 END * + 4 * 94 * 29 THEN + 80 ELSE NULL END - - COUNT ( * ) / CASE 75 WHEN 17 - - 79 THEN - COUNT ( * ) END, 67 - - ( - 61 ) ) / COUNT ( * ) AS col2
----
84
-1560

query I rowsort
SELECT ALL + + 97 + - - 58
----
155

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7979
SELECT - 7 / - SUM( ALL - 58 ) + 1 + + 63 * - MIN( ALL 10 ) * + CAST( NULL AS SIGNED ) + + 6 + + 23 * - 91 * 39 * - - 61 * + + 63 * - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-7979
SELECT - 7 / - SUM ( ALL - 58 ) + 1 + + 63 * - MIN ( ALL 10 ) * + CAST ( NULL AS INTEGER ) + + 6 + + 23 * - 91 * 39 * - - 61 * + + 63 * - COUNT ( * )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7980
SELECT - 34 AS col2, - 48 + + 18 * + 54 + + COUNT( * ) * + + ( - + ( - COALESCE ( + 23, + COALESCE ( + 22, - + CAST( NULL AS SIGNED ) + + 86, + CASE - 1 WHEN 26 * - 29 - - - 75 THEN - - 9 + + 89 * CASE + 79 WHEN - 42 + SUM( DISTINCT - 4 ) - - 96 THEN + + ( + 62 ) - - - 0 WHEN + - ( - + 90 ) THEN NULL ELSE NULL END WHEN + + 80 + + 32 + COUNT( * ) * - 91 THEN + ( + COUNT( * ) ) * 31 - 40 WHEN 35 * - 98 + + 96 THEN NULL END ) * COUNT( * ) ) ) ) AS col1
----
-34
947

skipif mysql # not compatible
query II rowsort label-7980
SELECT - 34 AS col2, - 48 + + 18 * + 54 + + COUNT ( * ) * + + ( - + ( - COALESCE ( + 23, + COALESCE ( + 22, - + CAST ( NULL AS INTEGER ) + + 86, + CASE - 1 WHEN 26 * - 29 - - - 75 THEN - - 9 + + 89 * CASE + 79 WHEN - 42 + SUM ( DISTINCT - 4 ) - - 96 THEN + + ( + 62 ) - - - 0 WHEN + - ( - + 90 ) THEN NULL ELSE NULL END WHEN + + 80 + + 32 + COUNT ( * ) * - 91 THEN + ( + COUNT ( * ) ) * 31 - 40 WHEN 35 * - 98 + + 96 THEN NULL END ) * COUNT ( * ) ) ) ) AS col1
----
-34
947

query I rowsort
SELECT ALL ( + 18 ) + 92 * + 93 * + NULLIF ( 61, - 65 ) AS col2
----
521934

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7982
SELECT - 34 - - COUNT( * ) * + 75 DIV + 43
----
-33

skipif mysql # not compatible
query I rowsort label-7982
SELECT - 34 - - COUNT ( * ) * + 75 / + 43
----
-33

query II rowsort
SELECT - 96 AS col2, 34 AS col0
----
-96
34

query I rowsort
SELECT ALL - 72 + + 37
----
-35

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

skipif mysql # not compatible
query I rowsort label-7985
SELECT ALL - COUNT ( DISTINCT - 67 ) AS col2
----
-1

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-7986
SELECT 83 col1, 50 * - CAST( + 1 AS SIGNED ) * + CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) - + CAST( NULL AS DECIMAL ) + 64 * - - 25 AS col0
----
83
NULL

skipif mysql # not compatible
query II rowsort label-7986
SELECT 83 col1, 50 * - CAST ( + 1 AS INTEGER ) * + CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) - + CAST ( NULL AS REAL ) + 64 * - - 25 AS col0
----
83
NULL

query I rowsort
SELECT ALL + 55 + 66
----
121

onlyif mysql # DIV for integer division: 
query I rowsort label-7988
SELECT ALL + 91 DIV 18
----
5

skipif mysql # not compatible
query I rowsort label-7988
SELECT ALL + 91 / 18
----
5

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

skipif mysql # not compatible
query I rowsort label-7989
SELECT ALL COUNT ( * ) + + ( - 18 ) AS col0
----
-17

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7990
SELECT DISTINCT CAST( NULL AS SIGNED ) + 10 + + - ( - 80 ) AS col1, + CAST( + ( - + 23 ) AS SIGNED ), - 23 AS col0
----
NULL
-23
-23

skipif mysql # not compatible
query III rowsort label-7990
SELECT DISTINCT CAST ( NULL AS INTEGER ) + 10 + + - ( - 80 ) AS col1, + CAST ( + ( - + 23 ) AS INTEGER ), - 23 AS col0
----
NULL
-23
-23

query II rowsort
SELECT 61 * + + 0, 42 AS col1
----
0
42

onlyif mysql # aggregate syntax: 
query II rowsort label-7992
SELECT 74 - - 1 + + + COUNT( * ) + + + 48 * + 33 * - 46 - + 95 AS col2, - ( + 62 ) AS col2
----
-72883
-62

skipif mysql # not compatible
query II rowsort label-7992
SELECT 74 - - 1 + + + COUNT ( * ) + + + 48 * + 33 * - 46 - + 95 AS col2, - ( + 62 ) AS col2
----
-72883
-62

query I rowsort
SELECT ALL + 95 * - 42
----
-3990

onlyif mysql # aggregate syntax: 
query I rowsort label-7994
SELECT DISTINCT + 77 * + NULLIF ( + 65, - COUNT( DISTINCT 45 ) ) AS col2
----
5005

skipif mysql # not compatible
query I rowsort label-7994
SELECT DISTINCT + 77 * + NULLIF ( + 65, - COUNT ( DISTINCT 45 ) ) AS col2
----
5005

query I rowsort
SELECT 64 + 9 + - 5
----
68

query I rowsort
SELECT ALL 78 * - 15 AS col1
----
-1170

onlyif mysql # aggregate syntax: 
query I rowsort label-7997
SELECT ALL + SUM( - 17 ) * + + 71 AS col0
----
-1207

skipif mysql # not compatible
query I rowsort label-7997
SELECT ALL + SUM ( - 17 ) * + + 71 AS col0
----
-1207

query I rowsort
SELECT ALL + 95 * - + 11
----
-1045

query I rowsort
SELECT 89 * 19
----
1691

query II rowsort
SELECT ALL - COALESCE ( 1, + 14, + + 33 ) AS col1, 68 AS col0
----
-1
68

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

query I rowsort
SELECT 76 - - - ( + 7 ) + 66 + 53 AS col0
----
188

query I rowsort
SELECT 79 * + CASE + ( ( - + 58 ) ) WHEN - ( + 44 ) THEN - 57 ELSE NULL END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8004
SELECT ALL + 33 DIV + + 23 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-8004
SELECT ALL + 33 / + + 23 AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8005
SELECT 83 * - 60 + NULLIF ( - - 83, - - 57 * 84 ) * + + COUNT( * ) AS col2
----
-4897

skipif mysql # not compatible
query I rowsort label-8005
SELECT 83 * - 60 + NULLIF ( - - 83, - - 57 * 84 ) * + + COUNT ( * ) AS col2
----
-4897

onlyif mysql # DIV for integer division: 
query I rowsort label-8006
SELECT DISTINCT + - 66 DIV + COALESCE ( 17, 99 ) + - 37
----
-40

skipif mysql # not compatible
query I rowsort label-8006
SELECT DISTINCT + - 66 / + COALESCE ( 17, 99 ) + - 37
----
-40

query I rowsort
SELECT ALL + 13 * + 11
----
143

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-8009
SELECT COUNT( * ) * + 21 * - 74
----
-1554

skipif mysql # not compatible
query I rowsort label-8009
SELECT COUNT ( * ) * + 21 * - 74
----
-1554

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8010
SELECT ALL - CAST( NULL AS SIGNED ) + + 54 * + COUNT( * ) * + 22 * MIN( DISTINCT + ( 38 ) ) * - 33 + - COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8010
SELECT ALL - CAST ( NULL AS INTEGER ) + + 54 * + COUNT ( * ) * + 22 * MIN ( DISTINCT + ( 38 ) ) * - 33 + - COUNT ( * ) AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8011
SELECT DISTINCT + + 91 * - 21 - + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8011
SELECT DISTINCT + + 91 * - 21 - + + CAST ( NULL AS INTEGER )
----
NULL

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

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

query II rowsort
SELECT ALL 82 + - 58, + 50 AS col1
----
24
50

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8014
SELECT DISTINCT COUNT( * ) * + + 73 DIV 21
----
3

skipif mysql # not compatible
query I rowsort label-8014
SELECT DISTINCT COUNT ( * ) * + + 73 / 21
----
3

query I rowsort
SELECT 14 * + + 41 + + 49 AS col0
----
623

query I rowsort
SELECT DISTINCT - 45 + + - 30 + - - 17
----
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-8017
SELECT ALL - 87 + + 5 + COUNT( * ) AS col2
----
-81

skipif mysql # not compatible
query I rowsort label-8017
SELECT ALL - 87 + + 5 + COUNT ( * ) AS col2
----
-81

query I rowsort
SELECT 91 + + 7 AS col2
----
98

query I rowsort
SELECT - 70 * - + 61 + - 81 + - - 79 + + 76 AS col1
----
4344

query II rowsort
SELECT DISTINCT + 84 + - 42 AS col0, 32
----
42
32

onlyif mysql # aggregate syntax: 
query II rowsort label-8021
SELECT ALL + 26 + - 16 + - 39 * - + 20 + 43 + - 36 + - 58 AS col2, COUNT( * )
----
739
1

skipif mysql # not compatible
query II rowsort label-8021
SELECT ALL + 26 + - 16 + - 39 * - + 20 + 43 + - 36 + - 58 AS col2, COUNT ( * )
----
739
1

query I rowsort
SELECT ALL - 51 + - 80 + + 82
----
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-8023
SELECT ALL 99 + 41 * + NULLIF ( - 70, - + 27 ) + - COUNT( * ) * + + COALESCE ( 4, 13 * + NULLIF ( + 64, - - CASE - - COUNT( * ) WHEN AVG ( - 75 ) THEN - + 42 - - ( - + 2 ) + - + 99 * + + 66 ELSE NULL END + - 69 * + 13 ) * + 54 + - 10 - + 35 ) * + 51 + + ( 26 ) AS col1
----
-2949

skipif mysql # not compatible
query I rowsort label-8023
SELECT ALL 99 + 41 * + NULLIF ( - 70, - + 27 ) + - COUNT ( * ) * + + COALESCE ( 4, 13 * + NULLIF ( + 64, - - CASE - - COUNT ( * ) WHEN AVG ( - 75 ) THEN - + 42 - - ( - + 2 ) + - + 99 * + + 66 ELSE NULL END + - 69 * + 13 ) * + 54 + - 10 - + 35 ) * + 51 + + ( 26 ) AS col1
----
-2949

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8024
SELECT + 68 * COUNT( * ) + + - 60 DIV + 97 * + + 91
----
68

skipif mysql # not compatible
query I rowsort label-8024
SELECT + 68 * COUNT ( * ) + + - 60 / + 97 * + + 91
----
68

onlyif mysql # DIV for integer division: 
query II rowsort label-8025
SELECT ALL 38 DIV - 68 AS col1, 78 col2
----
0
78

skipif mysql # not compatible
query II rowsort label-8025
SELECT ALL 38 / - 68 AS col1, 78 col2
----
0
78

query I rowsort
SELECT DISTINCT 97 * - 49 AS col1
----
-4753

query I rowsort
SELECT + ( + 99 ) + 77
----
176

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8028
SELECT - CAST( NULL AS DECIMAL ) * + + 47 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8028
SELECT - CAST ( NULL AS REAL ) * + + 47 col0
----
NULL

query I rowsort
SELECT ALL 32 * + 8 * 31 AS col1
----
7936

query I rowsort
SELECT ALL 91 - - + 0 AS col0
----
91

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8031
SELECT 73, + 34 * + 44 - - 99 DIV COALESCE ( - - 75, + 93 * + + 63 * + COUNT( * ) - + ( 46 ) + - 48, - 95 + + COUNT( * ) + + 72 * - 82 ) AS col0
----
73
1497

skipif mysql # not compatible
query II rowsort label-8031
SELECT 73, + 34 * + 44 - - 99 / COALESCE ( - - 75, + 93 * + + 63 * + COUNT ( * ) - + ( 46 ) + - 48, - 95 + + COUNT ( * ) + + 72 * - 82 ) AS col0
----
73
1497

onlyif mysql # DIV for integer division: 
query I rowsort label-8032
SELECT + 73 DIV 65
----
1

skipif mysql # not compatible
query I rowsort label-8032
SELECT + 73 / 65
----
1

query I rowsort
SELECT DISTINCT 37 * - CASE 16 WHEN 17 / + 35 * - 7 + - 56 THEN - - 60 ELSE - 99 * 56 END
----
205128

onlyif mysql # aggregate syntax: 
query I rowsort label-8034
SELECT DISTINCT MAX( - - 68 ) col2
----
68

skipif mysql # not compatible
query I rowsort label-8034
SELECT DISTINCT MAX ( - - 68 ) col2
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-8035
SELECT ALL 55 - + CASE + COALESCE ( 79, - 55 * + 65 - - 33 / + COUNT( * ), - 20 * - - 37 ) WHEN - 94 * + + COUNT( DISTINCT 41 ) * - 84 + + 43 THEN NULL WHEN - 49 THEN + - ( - + 73 ) + + - 17 + - 85 + + NULLIF ( + 87, - + 71 ) * ( 79 ) - - 68 END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8035
SELECT ALL 55 - + CASE + COALESCE ( 79, - 55 * + 65 - - 33 / + COUNT ( * ), - 20 * - - 37 ) WHEN - 94 * + + COUNT ( DISTINCT 41 ) * - 84 + + 43 THEN NULL WHEN - 49 THEN + - ( - + 73 ) + + - 17 + - 85 + + NULLIF ( + 87, - + 71 ) * ( 79 ) - - 68 END col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8036
SELECT ALL MIN( DISTINCT + COALESCE ( - ( 93 ), - - 19 ) ) AS col1, - 69 + 34
----
-93
-35

skipif mysql # not compatible
query II rowsort label-8036
SELECT ALL MIN ( DISTINCT + COALESCE ( - ( 93 ), - - 19 ) ) AS col1, - 69 + 34
----
-93
-35

query I rowsort
SELECT + NULLIF ( - + 55, - CASE + 85 WHEN ( - + 96 ) THEN - 56 + - 52 ELSE - - 41 + + 87 + - 63 END ) * + 12 AS col2
----
-660

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8038
SELECT - 65 * - + 73 / + 23 + CASE + 48 WHEN 43 * - ( 24 ) THEN 91 * + 26 * - 56 * - - AVG ( - 3 ) WHEN MIN( - 40 ) + + ( + 87 ) + + 22 THEN NULL END + - CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-8038
SELECT - 65 * - + 73 / + 23 + CASE + 48 WHEN 43 * - ( 24 ) THEN 91 * + 26 * - 56 * - - AVG ( - 3 ) WHEN MIN ( - 40 ) + + ( + 87 ) + + 22 THEN NULL END + - CAST ( NULL AS REAL )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8039
SELECT 37 / - - COUNT( * ) + - 38 * + 11 + + 56 + - CAST( NULL AS SIGNED ) - + - 89 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8039
SELECT 37 / - - COUNT ( * ) + - 38 * + 11 + + 56 + - CAST ( NULL AS INTEGER ) - + - 89 AS col2
----
NULL

query I rowsort
SELECT - 89 * + 50
----
-4450

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8041
SELECT - CAST( NULL AS SIGNED ) + - + MAX( - + 4 ) + + + 85 - 1 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8041
SELECT - CAST ( NULL AS INTEGER ) + - + MAX ( - + 4 ) + + + 85 - 1 AS col0
----
NULL

query I rowsort
SELECT ALL + 1 * - 39 * 48 * 10 * 59 AS col2
----
-1104480

query I rowsort
SELECT DISTINCT + 73 * - 54 AS col2
----
-3942

query I rowsort
SELECT - 14 * - 77 * - 53 + + 91 AS col2
----
-57043

onlyif mysql # aggregate syntax: 
query I rowsort label-8045
SELECT - 97 * + 52 * + ( 4 ) - 22 + + - MAX( - 57 ) * - + 24 * - + ( + + 11 )
----
-5150

skipif mysql # not compatible
query I rowsort label-8045
SELECT - 97 * + 52 * + ( 4 ) - 22 + + - MAX ( - 57 ) * - + 24 * - + ( + + 11 )
----
-5150

query I rowsort
SELECT ALL - + 75 * + 72 + ( + + 69 ) AS col0
----
-5331

onlyif mysql # aggregate syntax: 
query I rowsort label-8047
SELECT - - 96 + - - ( - + 10 ) + + COUNT( DISTINCT + + 99 )
----
87

skipif mysql # not compatible
query I rowsort label-8047
SELECT - - 96 + - - ( - + 10 ) + + COUNT ( DISTINCT + + 99 )
----
87

query I rowsort
SELECT - - 85 * + 18
----
1530

query II rowsort
SELECT 1 AS col2, 92
----
1
92

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8050
SELECT ALL - 91 * + 22 * + CAST( NULL AS SIGNED ) * + AVG ( - 21 ) + COUNT( ALL + 91 ) / - ( + 18 ) + 38 * + + CAST( NULL AS DECIMAL ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8050
SELECT ALL - 91 * + 22 * + CAST ( NULL AS INTEGER ) * + AVG ( - 21 ) + COUNT ( ALL + 91 ) / - ( + 18 ) + 38 * + + CAST ( NULL AS REAL ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8051
SELECT DISTINCT - + 91 * - COUNT( * ) + 64
----
155

skipif mysql # not compatible
query I rowsort label-8051
SELECT DISTINCT - + 91 * - COUNT ( * ) + 64
----
155

onlyif mysql # aggregate syntax: 
query I rowsort label-8052
SELECT ALL - + 13 * + SUM( DISTINCT - 23 ) col2
----
299

skipif mysql # not compatible
query I rowsort label-8052
SELECT ALL - + 13 * + SUM ( DISTINCT - 23 ) col2
----
299

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8053
SELECT DISTINCT - 97 DIV - - CAST( 60 AS SIGNED ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-8053
SELECT DISTINCT - 97 / - - CAST ( 60 AS INTEGER ) AS col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8054
SELECT DISTINCT + NULLIF ( 23, + 51 + - COALESCE ( + - 16, + 8, + + 17 + + 6 - COUNT( * ), + 44 ) + - 49 * + 16 * - 82 ) * - - 56 + + - 31 * 60
----
-572

skipif mysql # not compatible
query I rowsort label-8054
SELECT DISTINCT + NULLIF ( 23, + 51 + - COALESCE ( + - 16, + 8, + + 17 + + 6 - COUNT ( * ), + 44 ) + - 49 * + 16 * - 82 ) * - - 56 + + - 31 * 60
----
-572

query I rowsort
SELECT ALL - + 21 * + + 89 col2
----
-1869

query I rowsort
SELECT ALL + 6 * - 50
----
-300

query I rowsort
SELECT + + 78 + + COALESCE ( 27, + - 31 ) AS col1
----
105

query II rowsort
SELECT DISTINCT + 94 * 29, + 36 * + 71 AS col2
----
2726
2556

onlyif mysql # DIV for integer division: 
query I rowsort label-8059
SELECT ALL - 40 - 82 DIV - - 94 col0
----
-40

skipif mysql # not compatible
query I rowsort label-8059
SELECT ALL - 40 - 82 / - - 94 col0
----
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-8060
SELECT MAX( ALL - 0 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-8060
SELECT MAX ( ALL - 0 ) AS col1
----
0

query II rowsort
SELECT ALL 88, + 62 AS col2
----
88
62

onlyif mysql # aggregate syntax: 
query I rowsort label-8062
SELECT - CASE NULLIF ( + - 37, + + MAX( DISTINCT - 50 ) * 2 + + 13 - - 84 ) WHEN - 29 + COUNT( DISTINCT + 78 ) + 61 * COUNT( * ) THEN + + 73 END - + COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8062
SELECT - CASE NULLIF ( + - 37, + + MAX ( DISTINCT - 50 ) * 2 + + 13 - - 84 ) WHEN - 29 + COUNT ( DISTINCT + 78 ) + 61 * COUNT ( * ) THEN + + 73 END - + COUNT ( * ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8063
SELECT - SUM( 39 )
----
-39

skipif mysql # not compatible
query I rowsort label-8063
SELECT - SUM ( 39 )
----
-39

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8064
SELECT ALL CAST( - - 10 AS SIGNED ) AS col2
----
10

skipif mysql # not compatible
query I rowsort label-8064
SELECT ALL CAST ( - - 10 AS INTEGER ) AS col2
----
10

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

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

query I rowsort
SELECT ALL 78 * - 46 col0
----
-3588

query I rowsort
SELECT DISTINCT 96 * 1
----
96

onlyif mysql # aggregate syntax: 
query II rowsort label-8068
SELECT 42 AS col2, COUNT( * ) + - + 95 AS col1
----
42
-94

skipif mysql # not compatible
query II rowsort label-8068
SELECT 42 AS col2, COUNT ( * ) + - + 95 AS col1
----
42
-94

query I rowsort
SELECT + 19 - - + 49 * 28 AS col2
----
1391

query I rowsort
SELECT + 37 * + - 69 AS col0
----
-2553

query I rowsort
SELECT ALL 42 * - 89 AS col2
----
-3738

query II rowsort
SELECT 94 AS col0, 63
----
94
63

query II rowsort
SELECT 67, 80 * - + 4 * + - 27 * - 5 * - + 47 AS col1
----
67
2030400

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

skipif mysql # not compatible
query II rowsort label-8074
SELECT - 22, COUNT ( * ) * + 96 col2
----
-22
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8075
SELECT DISTINCT 48 + 29 * + + 11 / 73 * - 63 + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8075
SELECT DISTINCT 48 + 29 * + + 11 / 73 * - 63 + + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL 7 + - - 20
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-8077
SELECT ALL + SUM( + + ( + 15 ) ) col0
----
15

skipif mysql # not compatible
query I rowsort label-8077
SELECT ALL + SUM ( + + ( + 15 ) ) col0
----
15

query I rowsort
SELECT + 77 * + 67 AS col2
----
5159

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8079
SELECT ALL + 18 DIV 29 * COUNT( * ) + + 50 AS col2
----
50

skipif mysql # not compatible
query I rowsort label-8079
SELECT ALL + 18 / 29 * COUNT ( * ) + + 50 AS col2
----
50

query I rowsort
SELECT + - 6 + 6 * + 30 - 81 AS col0
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-8081
SELECT + + COUNT( * ) + + 71 - - 64 * MAX( ALL + - 2 )
----
-56

skipif mysql # not compatible
query I rowsort label-8081
SELECT + + COUNT ( * ) + + 71 - - 64 * MAX ( ALL + - 2 )
----
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-8082
SELECT ALL - 45 / - - 64 + 39 + + + 29 * 16 + - + 32 + CASE - - 54 WHEN 87 THEN + 39 WHEN - + 89 THEN + COUNT( * ) END * + 61 * - 3 - - 52 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8082
SELECT ALL - 45 / - - 64 + 39 + + + 29 * 16 + - + 32 + CASE - - 54 WHEN 87 THEN + 39 WHEN - + 89 THEN + COUNT ( * ) END * + 61 * - 3 - - 52 AS col0
----
NULL

query I rowsort
SELECT + 74 + + - 70
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-8084
SELECT - COUNT( ALL - - 19 ) * - 10 + 12 + - COUNT( * ) AS col0
----
21

skipif mysql # not compatible
query I rowsort label-8084
SELECT - COUNT ( ALL - - 19 ) * - 10 + 12 + - COUNT ( * ) AS col0
----
21

query I rowsort
SELECT DISTINCT - - 61 * - - 90
----
5490

query II rowsort
SELECT ALL + 31, 84 * 4 AS col1
----
31
336

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8087
SELECT 21 + + 89 + - + 59 DIV 77 * + 63 * + + COALESCE ( - CAST( NULL AS SIGNED ), + + 29 + - 27 )
----
110

skipif mysql # not compatible
query I rowsort label-8087
SELECT 21 + + 89 + - + 59 / 77 * + 63 * + + COALESCE ( - CAST ( NULL AS INTEGER ), + + 29 + - 27 )
----
110

onlyif mysql # aggregate syntax: 
query I rowsort label-8088
SELECT ALL COUNT( ALL + + 65 ) + - 85 * + - 16 * - + NULLIF ( - COUNT( * ), - 63 + + + 92 * - + 79 ) col1
----
1361

skipif mysql # not compatible
query I rowsort label-8088
SELECT ALL COUNT ( ALL + + 65 ) + - 85 * + - 16 * - + NULLIF ( - COUNT ( * ), - 63 + + + 92 * - + 79 ) col1
----
1361

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8089
SELECT ALL + COUNT( * ) - - - 54 + - 67 * 64 * - ( + - COUNT( * ) ) * - - CASE 24 WHEN - 70 THEN + + 72 WHEN - 17 * - 83 THEN NULL ELSE NULL END - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8089
SELECT ALL + COUNT ( * ) - - - 54 + - 67 * 64 * - ( + - COUNT ( * ) ) * - - CASE 24 WHEN - 70 THEN + + 72 WHEN - 17 * - 83 THEN NULL ELSE NULL END - CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8090
SELECT + COUNT( * ) - 66 DIV - - ( + 64 ), - 10 AS col1
----
0
-10

skipif mysql # not compatible
query II rowsort label-8090
SELECT + COUNT ( * ) - 66 / - - ( + 64 ), - 10 AS col1
----
0
-10

query I rowsort
SELECT ALL - NULLIF ( - 28, + 16 * + 37 )
----
28

query I rowsort
SELECT - 59 * 86 * - - 12 AS col2
----
-60888

query II rowsort
SELECT DISTINCT - - 29, - 10 AS col0
----
29
-10

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8094
SELECT 15 AS col1, COUNT( + CAST( + 88 AS SIGNED ) ) AS col1
----
15
1

skipif mysql # not compatible
query II rowsort label-8094
SELECT 15 AS col1, COUNT ( + CAST ( + 88 AS INTEGER ) ) AS col1
----
15
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8095
SELECT + SUM( + - 59 ) + 3 * - 81 AS col0
----
-302

skipif mysql # not compatible
query I rowsort label-8095
SELECT + SUM ( + - 59 ) + 3 * - 81 AS col0
----
-302

query I rowsort
SELECT DISTINCT - 18 * 20 col0
----
-360

query I rowsort
SELECT 74 + 70 * 47
----
3364

query I rowsort
SELECT ALL - 9 * - 69 col2
----
621

onlyif mysql # aggregate syntax: 
query II rowsort label-8099
SELECT ALL - 36 * + COUNT( * ) AS col1, - 98 * - 73 * - 27 AS col2
----
-36
-193158

skipif mysql # not compatible
query II rowsort label-8099
SELECT ALL - 36 * + COUNT ( * ) AS col1, - 98 * - 73 * - 27 AS col2
----
-36
-193158

onlyif mysql # aggregate syntax: 
query I rowsort label-8100
SELECT ALL NULLIF ( 79, 94 * - + 12 ) * 66 + - - COUNT( * )
----
5215

skipif mysql # not compatible
query I rowsort label-8100
SELECT ALL NULLIF ( 79, 94 * - + 12 ) * 66 + - - COUNT ( * )
----
5215

query I rowsort
SELECT 61 + 28
----
89

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

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

query I rowsort
SELECT ALL - 46 * + 5 * ( + 96 )
----
-22080

query I rowsort
SELECT 15 * 70
----
1050

query I rowsort
SELECT 86 + + - 32
----
54

query I rowsort
SELECT 95 + - 90 AS col1
----
5

query II rowsort
SELECT ALL + 1 + - 84, 4 * + + 24 AS col2
----
-83
96

query I rowsort
SELECT 5 + + 97 * 68
----
6601

onlyif mysql # aggregate syntax: 
query II rowsort label-8109
SELECT ALL 89 + + COUNT( * ), + 22 * MAX( ALL - 9 ) * 5 AS col1
----
90
-990

skipif mysql # not compatible
query II rowsort label-8109
SELECT ALL 89 + + COUNT ( * ), + 22 * MAX ( ALL - 9 ) * 5 AS col1
----
90
-990

onlyif mysql # aggregate syntax: 
query I rowsort label-8110
SELECT ALL + COUNT( 96 ) + + 6 AS col1
----
7

skipif mysql # not compatible
query I rowsort label-8110
SELECT ALL + COUNT ( 96 ) + + 6 AS col1
----
7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8111
SELECT - NULLIF ( - 68, - NULLIF ( COUNT( * ), + 69 - - 8 ) ) DIV + 98 * + - 79
----
0

skipif mysql # not compatible
query I rowsort label-8111
SELECT - NULLIF ( - 68, - NULLIF ( COUNT ( * ), + 69 - - 8 ) ) / + 98 * + - 79
----
0

query I rowsort
SELECT 17 + 49 + + + 33 * - 76 AS col1
----
-2442

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

skipif mysql # not compatible
query I rowsort label-8113
SELECT ALL ( + 49 ) + - + CAST ( NULL AS INTEGER ) / - + 93 * - COUNT ( * ) AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8114
SELECT - 55 DIV + 14 + + 89 AS col2
----
86

skipif mysql # not compatible
query I rowsort label-8114
SELECT - 55 / + 14 + + 89 AS col2
----
86

query I rowsort
SELECT DISTINCT 20 - 95 * + 97 AS col1
----
-9195

query I rowsort
SELECT DISTINCT 59 * + 68 AS col2
----
4012

onlyif mysql # aggregate syntax: 
query I rowsort label-8117
SELECT ALL - COUNT( * ) - + 7 + COUNT( * ) * - COALESCE ( + 23, + + 19 * + 2 - 98 ) - + - 5 AS col1
----
-26

skipif mysql # not compatible
query I rowsort label-8117
SELECT ALL - COUNT ( * ) - + 7 + COUNT ( * ) * - COALESCE ( + 23, + + 19 * + 2 - 98 ) - + - 5 AS col1
----
-26

onlyif mysql # aggregate syntax: 
query II rowsort label-8118
SELECT COUNT( * ) * 32 AS col0, 48 - + 70 - - + 11 * + 7 col2
----
32
55

skipif mysql # not compatible
query II rowsort label-8118
SELECT COUNT ( * ) * 32 AS col0, 48 - + 70 - - + 11 * + 7 col2
----
32
55

onlyif mysql # aggregate syntax: 
query I rowsort label-8119
SELECT DISTINCT - - COUNT( - 74 )
----
1

skipif mysql # not compatible
query I rowsort label-8119
SELECT DISTINCT - - COUNT ( - 74 )
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8120
SELECT - 35 + - 82 + + 98 * + COALESCE ( - + CASE CAST( + COALESCE ( 8, + 6 - - 2 * COUNT( + - 96 ) + + 59 ) AS SIGNED ) WHEN + 22 THEN NULL ELSE + - 47 + + + 63 - 25 END, - 62 * - + 43 - 74 + 67 ) - + 48 AS col1, 42
----
717
42

skipif mysql # not compatible
query II rowsort label-8120
SELECT - 35 + - 82 + + 98 * + COALESCE ( - + CASE CAST ( + COALESCE ( 8, + 6 - - 2 * COUNT ( + - 96 ) + + 59 ) AS INTEGER ) WHEN + 22 THEN NULL ELSE + - 47 + + + 63 - 25 END, - 62 * - + 43 - 74 + 67 ) - + 48 AS col1, 42
----
717
42

onlyif mysql # aggregate syntax: 
query I rowsort label-8121
SELECT ALL COUNT( * ) - - 55 AS col2
----
56

skipif mysql # not compatible
query I rowsort label-8121
SELECT ALL COUNT ( * ) - - 55 AS col2
----
56

query I rowsort
SELECT 45 * + 22
----
990

query II rowsort
SELECT 89 * + - 62 AS col0, + 92
----
-5518
92

onlyif mysql # aggregate syntax: 
query II rowsort label-8124
SELECT ALL - 0 col0, ( + COUNT( * ) )
----
0
1

skipif mysql # not compatible
query II rowsort label-8124
SELECT ALL - 0 col0, ( + COUNT ( * ) )
----
0
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8125
SELECT COUNT( - 77 ) * + ( - MIN( ALL 47 ) )
----
-47

skipif mysql # not compatible
query I rowsort label-8125
SELECT COUNT ( - 77 ) * + ( - MIN ( ALL 47 ) )
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-8126
SELECT + SUM( DISTINCT + 71 ) AS col2
----
71

skipif mysql # not compatible
query I rowsort label-8126
SELECT + SUM ( DISTINCT + 71 ) AS col2
----
71

query I rowsort
SELECT ALL 32 * + 37
----
1184

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8128
SELECT CAST( + ( + 68 ) AS SIGNED ) + + SUM( ALL + ( + 87 ) ) + + 3 + - CAST( NULL AS SIGNED ) + 56 + 40 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8128
SELECT CAST ( + ( + 68 ) AS INTEGER ) + + SUM ( ALL + ( + 87 ) ) + + 3 + - CAST ( NULL AS INTEGER ) + 56 + 40 AS col0
----
NULL

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

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

query II rowsort
SELECT 32 AS col1, 48 - + 90
----
32
-42

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8131
SELECT ALL + 5 + + + 65 + - CAST( NULL AS SIGNED ) * AVG ( - + 11 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8131
SELECT ALL + 5 + + + 65 + - CAST ( NULL AS INTEGER ) * AVG ( - + 11 )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8132
SELECT 89 - COALESCE ( 47, - 9 + + 54 * - 36 - - 98 - - COUNT( * ) ), - 34 AS col2
----
42
-34

skipif mysql # not compatible
query II rowsort label-8132
SELECT 89 - COALESCE ( 47, - 9 + + 54 * - 36 - - 98 - - COUNT ( * ) ), - 34 AS col2
----
42
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-8133
SELECT DISTINCT + MIN( DISTINCT - - 60 ) + 41
----
101

skipif mysql # not compatible
query I rowsort label-8133
SELECT DISTINCT + MIN ( DISTINCT - - 60 ) + 41
----
101

query I rowsort
SELECT 99 + + + 38 AS col0
----
137

query I rowsort
SELECT ALL 66 + + + 39
----
105

onlyif mysql # aggregate syntax: 
query I rowsort label-8136
SELECT DISTINCT + ( COUNT( * ) ) + - + 73 * 51 AS col2
----
-3722

skipif mysql # not compatible
query I rowsort label-8136
SELECT DISTINCT + ( COUNT ( * ) ) + - + 73 * 51 AS col2
----
-3722

onlyif mysql # aggregate syntax: 
query I rowsort label-8137
SELECT ALL - COUNT( * ) + - + 57 * + - 45 + - 95 + 57 AS col2
----
2526

skipif mysql # not compatible
query I rowsort label-8137
SELECT ALL - COUNT ( * ) + - + 57 * + - 45 + - 95 + 57 AS col2
----
2526

query II rowsort
SELECT ALL 21 AS col0, + 31 * + + 67 AS col1
----
21
2077

query I rowsort
SELECT 24 * + 54
----
1296

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8140
SELECT DISTINCT - ( + 60 ) * - CAST( 16 AS SIGNED )
----
960

skipif mysql # not compatible
query I rowsort label-8140
SELECT DISTINCT - ( + 60 ) * - CAST ( 16 AS INTEGER )
----
960

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8141
SELECT ALL + MIN( ALL + CASE - 2 WHEN + - 53 * 37 THEN NULL WHEN - ( + + NULLIF ( - 64, ( + CAST( NULL AS SIGNED ) ) ) ) + 71 * - - 34 THEN NULL ELSE - 14 END ) + - 32 AS col0
----
-46

skipif mysql # not compatible
query I rowsort label-8141
SELECT ALL + MIN ( ALL + CASE - 2 WHEN + - 53 * 37 THEN NULL WHEN - ( + + NULLIF ( - 64, ( + CAST ( NULL AS INTEGER ) ) ) ) + 71 * - - 34 THEN NULL ELSE - 14 END ) + - 32 AS col0
----
-46

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8142
SELECT ALL - 15 * 98 * ( - + CAST( NULL AS SIGNED ) ) / + CASE + COUNT( * ) WHEN - ( - 49 ) / - 89 - + - 94 THEN + CASE - 0 WHEN - 56 THEN NULL ELSE + 70 END WHEN 85 THEN NULL ELSE - 19 * + COALESCE ( - + COUNT( * ), + 23 * + 21 * + + AVG ( - - 98 ) * - 75 ) END - + COUNT( * ) / - 27 + + 10 + + COUNT( * ) + - ( + - 76 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8142
SELECT ALL - 15 * 98 * ( - + CAST ( NULL AS INTEGER ) ) / + CASE + COUNT ( * ) WHEN - ( - 49 ) / - 89 - + - 94 THEN + CASE - 0 WHEN - 56 THEN NULL ELSE + 70 END WHEN 85 THEN NULL ELSE - 19 * + COALESCE ( - + COUNT ( * ), + 23 * + 21 * + + AVG ( - - 98 ) * - 75 ) END - + COUNT ( * ) / - 27 + + 10 + + COUNT ( * ) + - ( + - 76 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8143
SELECT + 42 - + - 78 * - COUNT( * )
----
-36

skipif mysql # not compatible
query I rowsort label-8143
SELECT + 42 - + - 78 * - COUNT ( * )
----
-36

onlyif mysql # aggregate syntax: 
query II rowsort label-8144
SELECT - ( + - 30 ) + MIN( ALL 15 ) col0, - 44 AS col1
----
45
-44

skipif mysql # not compatible
query II rowsort label-8144
SELECT - ( + - 30 ) + MIN ( ALL 15 ) col0, - 44 AS col1
----
45
-44

query II rowsort
SELECT DISTINCT 20 AS col1, 67 + - 75 + 31 * 51 AS col1
----
20
1573

onlyif mysql # aggregate syntax: 
query I rowsort label-8146
SELECT ALL COUNT( * ) - + + 65 col0
----
-64

skipif mysql # not compatible
query I rowsort label-8146
SELECT ALL COUNT ( * ) - + + 65 col0
----
-64

query I rowsort
SELECT DISTINCT + - NULLIF ( ( - + 46 ), 10 * 29 / + + 17 - + 14 ) AS col0
----
46

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-8149
SELECT DISTINCT + SUM( - + 15 ) AS col0
----
-15

skipif mysql # not compatible
query I rowsort label-8149
SELECT DISTINCT + SUM ( - + 15 ) AS col0
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-8150
SELECT - COUNT( * ) + - 20 AS col1
----
-21

skipif mysql # not compatible
query I rowsort label-8150
SELECT - COUNT ( * ) + - 20 AS col1
----
-21

query II rowsort
SELECT + 99 AS col0, 68 * 65 AS col0
----
99
4420

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

query II rowsort
SELECT - + 21 * - 91 + + 25 AS col0, - 72 + - 76 - - - 4
----
1936
-152

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8155
SELECT + + 91 DIV NULLIF ( - MIN( + 55 ), 65 ) + + 96 + 95 AS col1
----
190

skipif mysql # not compatible
query I rowsort label-8155
SELECT + + 91 / NULLIF ( - MIN ( + 55 ), 65 ) + + 96 + 95 AS col1
----
190

query II rowsort
SELECT DISTINCT + 85 * 28 * + - 37 AS col1, + 72
----
-88060
72

query I rowsort
SELECT NULLIF ( - 51, 51 ) * - 53 + + 98 + - + 2 * 14
----
2773

query I rowsort
SELECT + - 16 - + 25
----
-41

onlyif mysql # DIV for integer division: 
query I rowsort label-8159
SELECT + NULLIF ( - 23, + 7 ) DIV 22 + ( + + 4 ) - + 67
----
-64

skipif mysql # not compatible
query I rowsort label-8159
SELECT + NULLIF ( - 23, + 7 ) / 22 + ( + + 4 ) - + 67
----
-64

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8160
SELECT DISTINCT + ( + 14 ) * - COUNT( + - CAST( NULL AS SIGNED ) ) * - COUNT( * ) + - CASE - 65 WHEN - COUNT( * ) / 38 + + 39 THEN + 71 * 74 + 67 + 29 ELSE NULL END + + 41 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8160
SELECT DISTINCT + ( + 14 ) * - COUNT ( + - CAST ( NULL AS INTEGER ) ) * - COUNT ( * ) + - CASE - 65 WHEN - COUNT ( * ) / 38 + + 39 THEN + 71 * 74 + 67 + 29 ELSE NULL END + + 41 AS col2
----
NULL

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8162
SELECT 82 * - 50 + - COUNT( * ) DIV - 46 * - 56 * 71 AS col2
----
-4100

skipif mysql # not compatible
query I rowsort label-8162
SELECT 82 * - 50 + - COUNT ( * ) / - 46 * - 56 * 71 AS col2
----
-4100

onlyif mysql # aggregate syntax: 
query II rowsort label-8163
SELECT MIN( ALL - - 68 ) AS col2, 10 * + COUNT( DISTINCT + - 10 ) * - + 55 + - 95 * + 81
----
68
-8245

skipif mysql # not compatible
query II rowsort label-8163
SELECT MIN ( ALL - - 68 ) AS col2, 10 * + COUNT ( DISTINCT + - 10 ) * - + 55 + - 95 * + 81
----
68
-8245

query I rowsort
SELECT + 96 + 35
----
131

onlyif mysql # aggregate syntax: 
query I rowsort label-8165
SELECT COUNT( ALL - ( + 31 ) )
----
1

skipif mysql # not compatible
query I rowsort label-8165
SELECT COUNT ( ALL - ( + 31 ) )
----
1

query I rowsort
SELECT ALL - ( 7 ) * 97 * + 4 + + - 3 * - + 13 * - CASE - 71 WHEN ( - 95 ) + - + ( + 81 ) THEN NULL WHEN - 96 THEN - 41 ELSE NULL END - + - 64 * + - 11 * - 2 AS col0
----
NULL

query I rowsort
SELECT ALL 78 + - 88
----
-10

query II rowsort
SELECT - ( - - 25 ) col2, 12 AS col2
----
-25
12

query II rowsort
SELECT DISTINCT COALESCE ( - 76, - ( + 61 ) ) AS col1, 54
----
-76
54

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

skipif mysql # not compatible
query I rowsort label-8170
SELECT ALL SUM ( 58 )
----
58

query II rowsort
SELECT + 40 + 64 col2, - 97 AS col0
----
104
-97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8172
SELECT - ( - MIN( NULLIF ( - + ( + 4 ), - CAST( NULL AS SIGNED ) / - + 91 ) ) ) + - COUNT( * )
----
-5

skipif mysql # not compatible
query I rowsort label-8172
SELECT - ( - MIN ( NULLIF ( - + ( + 4 ), - CAST ( NULL AS INTEGER ) / - + 91 ) ) ) + - COUNT ( * )
----
-5

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8173
SELECT DISTINCT + + COUNT( 25 ) - - 18 DIV - + COUNT( DISTINCT + 20 ) col2
----
-17

skipif mysql # not compatible
query I rowsort label-8173
SELECT DISTINCT + + COUNT ( 25 ) - - 18 / - + COUNT ( DISTINCT + 20 ) col2
----
-17

onlyif mysql # DIV for integer division: 
query I rowsort label-8174
SELECT DISTINCT - 30 DIV + NULLIF ( + + 81, - 13 * + - 76 + 96 ) - + + 58 * 99 * + 95 + + + 71 + + - 46
----
-545465

skipif mysql # not compatible
query I rowsort label-8174
SELECT DISTINCT - 30 / + NULLIF ( + + 81, - 13 * + - 76 + 96 ) - + + 58 * 99 * + 95 + + + 71 + + - 46
----
-545465

onlyif mysql # aggregate syntax: 
query I rowsort label-8175
SELECT ALL + - 4 * - - 77 - - - SUM( - + 14 ) AS col0
----
-294

skipif mysql # not compatible
query I rowsort label-8175
SELECT ALL + - 4 * - - 77 - - - SUM ( - + 14 ) AS col0
----
-294

query I rowsort
SELECT - - 86 + + CASE 24 WHEN + - 75 * - 98 + 70 THEN - 88 WHEN + 18 THEN NULL ELSE NULL END col0
----
NULL

query I rowsort
SELECT DISTINCT + 80 - 78 * 5 AS col2
----
-310

onlyif mysql # aggregate syntax: 
query I rowsort label-8178
SELECT ALL + + 75 * + 65 * COUNT( * ) AS col0
----
4875

skipif mysql # not compatible
query I rowsort label-8178
SELECT ALL + + 75 * + 65 * COUNT ( * ) AS col0
----
4875

onlyif mysql # aggregate syntax: 
query I rowsort label-8179
SELECT ALL - - COUNT( * ) * - SUM( - 88 )
----
88

skipif mysql # not compatible
query I rowsort label-8179
SELECT ALL - - COUNT ( * ) * - SUM ( - 88 )
----
88

onlyif mysql # DIV for integer division: 
query I rowsort label-8180
SELECT - + 42 DIV 51
----
0

skipif mysql # not compatible
query I rowsort label-8180
SELECT - + 42 / 51
----
0

query I rowsort
SELECT - - ( 22 ) * + 32 + 62 AS col1
----
766

onlyif mysql # aggregate syntax: 
query I rowsort label-8182
SELECT DISTINCT + COALESCE ( + 50, - COUNT( * ) ) AS col1
----
50

skipif mysql # not compatible
query I rowsort label-8182
SELECT DISTINCT + COALESCE ( + 50, - COUNT ( * ) ) AS col1
----
50

onlyif mysql # DIV for integer division: 
query I rowsort label-8183
SELECT ALL + 16 DIV + 38 * - ( 87 ) + 87 + + 38 * - 46
----
-1661

skipif mysql # not compatible
query I rowsort label-8183
SELECT ALL + 16 / + 38 * - ( 87 ) + 87 + + 38 * - 46
----
-1661

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

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

query I rowsort
SELECT DISTINCT 14 * - + 46 * 75 + 85 AS col2
----
-48215

query I rowsort
SELECT 14 * + - ( 13 ) - - 12
----
-170

onlyif mysql # aggregate syntax: 
query I rowsort label-8187
SELECT ALL + 14 * 92 * - ( CASE - ( 49 ) WHEN + 41 * - + 41 * + 65 THEN + - 58 WHEN COALESCE ( + + 67, 66 ) THEN 78 END ) / 7 + - SUM( - - 25 ) / ( - 77 ) + - COUNT( * ) + - COALESCE ( + 51, + COUNT( * ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-8187
SELECT ALL + 14 * 92 * - ( CASE - ( 49 ) WHEN + 41 * - + 41 * + 65 THEN + - 58 WHEN COALESCE ( + + 67, 66 ) THEN 78 END ) / 7 + - SUM ( - - 25 ) / ( - 77 ) + - COUNT ( * ) + - COALESCE ( + 51, + COUNT ( * ) )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8188
SELECT CASE - COUNT( * ) WHEN - ( - 8 ) THEN + 92 END, + 85 AS col1
----
NULL
85

skipif mysql # not compatible
query II rowsort label-8188
SELECT CASE - COUNT ( * ) WHEN - ( - 8 ) THEN + 92 END, + 85 AS col1
----
NULL
85

onlyif mysql # aggregate syntax: 
query I rowsort label-8189
SELECT ALL COUNT( * ) * - MIN( - - ( 9 ) ) + - 35 + - 16
----
-60

skipif mysql # not compatible
query I rowsort label-8189
SELECT ALL COUNT ( * ) * - MIN ( - - ( 9 ) ) + - 35 + - 16
----
-60

query I rowsort
SELECT + 54 * 99 AS col1
----
5346

onlyif mysql # DIV for integer division: 
query I rowsort label-8191
SELECT ALL 66 DIV - COALESCE ( - 79, + - 4 ) col0
----
0

skipif mysql # not compatible
query I rowsort label-8191
SELECT ALL 66 / - COALESCE ( - 79, + - 4 ) col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8192
SELECT ALL - COUNT( * ) * 50 + - - 12
----
-38

skipif mysql # not compatible
query I rowsort label-8192
SELECT ALL - COUNT ( * ) * 50 + - - 12
----
-38

query I rowsort
SELECT - 94 * - + 21 + - NULLIF ( + 70, + + AVG ( DISTINCT - + 65 ) + - ( - 76 ) + - 77 * - - 33 ) + - 8
----
1896

query I rowsort
SELECT + 18 * 79
----
1422

query II rowsort
SELECT + 24 * - ( + 83 ) AS col1, + 29 AS col0
----
-1992
29

onlyif mysql # DIV for integer division: 
query I rowsort label-8196
SELECT ALL 30 DIV 58 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-8196
SELECT ALL 30 / 58 AS col1
----
0

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

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

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

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

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

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

query II rowsort
SELECT ALL 26 AS col2, 20 + - 93 AS col0
----
26
-73

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

skipif mysql # not compatible
query I rowsort label-8201
SELECT 24 + - 83 * + - 40 * - COUNT ( * ) AS col2
----
-3296

query I rowsort
SELECT 64 + - - 0 AS col1
----
64

query I rowsort
SELECT ALL + 51 * + - 5 AS col0
----
-255

onlyif mysql # DIV for integer division: 
query I rowsort label-8204
SELECT 33 - + 45 DIV - 64
----
33

skipif mysql # not compatible
query I rowsort label-8204
SELECT 33 - + 45 / - 64
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-8205
SELECT ALL + SUM( DISTINCT 70 )
----
70

skipif mysql # not compatible
query I rowsort label-8205
SELECT ALL + SUM ( DISTINCT 70 )
----
70

query I rowsort
SELECT - 14 * + - 25
----
350

query I rowsort
SELECT COALESCE ( - 43, - 2 + 52 ) + 64
----
21

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-8211
SELECT DISTINCT SUM( 21 ) + 59
----
80

skipif mysql # not compatible
query I rowsort label-8211
SELECT DISTINCT SUM ( 21 ) + 59
----
80

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8212
SELECT ALL + 44 + - COUNT( * ) DIV - - NULLIF ( + COUNT( * ), + - NULLIF ( - + 46, 2 DIV + 48 + CASE + 36 WHEN + NULLIF ( - 19, 30 * + 7 ) THEN CASE 79 WHEN + COUNT( * ) THEN - COALESCE ( - COUNT( * ), + + COALESCE ( - COUNT( * ), CASE 8 WHEN + 77 * - 18 THEN ( + 93 ) * + + AVG ( ALL + 54 ) * ( + + 3 ) + - COUNT( * ) ELSE 51 END ) * + COUNT( * ) * 84 * - 36 + + COUNT( * ) * - + 83 ) DIV + 65 + 48 + + + 43 * - 5 ELSE NULL END END * 31 ) * + - 96 ) DIV + COUNT( * )
----
43

skipif mysql # not compatible
query I rowsort label-8212
SELECT ALL + 44 + - COUNT ( * ) / - - NULLIF ( + COUNT ( * ), + - NULLIF ( - + 46, 2 / + 48 + CASE + 36 WHEN + NULLIF ( - 19, 30 * + 7 ) THEN CASE 79 WHEN + COUNT ( * ) THEN - COALESCE ( - COUNT ( * ), + + COALESCE ( - COUNT ( * ), CASE 8 WHEN + 77 * - 18 THEN ( + 93 ) * + + AVG ( ALL + 54 ) * ( + + 3 ) + - COUNT ( * ) ELSE 51 END ) * + COUNT ( * ) * 84 * - 36 + + COUNT ( * ) * - + 83 ) / + 65 + 48 + + + 43 * - 5 ELSE NULL END END * 31 ) * + - 96 ) / + COUNT ( * )
----
43

query II rowsort
SELECT + - 40 * - 27 - - 28 AS col1, 16
----
1108
16

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8214
SELECT ALL - 75 * - - 30 - - CAST( NULL AS DECIMAL ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8214
SELECT ALL - 75 * - - 30 - - CAST ( NULL AS REAL ) AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8215
SELECT MAX( - 51 ) * - + 52 + CAST( NULL AS SIGNED ) / 21
----
NULL

skipif mysql # not compatible
query I rowsort label-8215
SELECT MAX ( - 51 ) * - + 52 + CAST ( NULL AS INTEGER ) / 21
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8216
SELECT DISTINCT - 41, + CASE + - 14 WHEN 90 THEN + 56 END + + 21 * + 34 + - ( 52 ) + + COUNT( * ) AS col1
----
-41
NULL

skipif mysql # not compatible
query II rowsort label-8216
SELECT DISTINCT - 41, + CASE + - 14 WHEN 90 THEN + 56 END + + 21 * + 34 + - ( 52 ) + + COUNT ( * ) AS col1
----
-41
NULL

query I rowsort
SELECT ALL + 19 + + 60 AS col1
----
79

query I rowsort
SELECT 80 + - 76
----
4

query I rowsort
SELECT 8 + - - 56 * + - 22 * + 53 - 84
----
-65372

query I rowsort
SELECT ALL - 56 + - 88 + - 9 AS col0
----
-153

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

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

query I rowsort
SELECT 89 * + 34
----
3026

query I rowsort
SELECT 24 + + 7 AS col0
----
31

query II rowsort
SELECT + 7 AS col0, 64 * 15 * 20 - + 42 AS col2
----
7
19158

query I rowsort
SELECT - 90 * 92 + 59 AS col2
----
-8221

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8226
SELECT DISTINCT - CASE - 49 WHEN - 52 * + NULLIF ( - + 65, - 64 ) * + 9 + - - CAST( - 33 AS DECIMAL ) * CAST( NULL AS SIGNED ) * 95 - + 53 THEN NULL WHEN - 92 THEN NULL WHEN + SUM( 45 ) THEN - NULLIF ( 89, + 96 ) ELSE NULL END * 8 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8226
SELECT DISTINCT - CASE - 49 WHEN - 52 * + NULLIF ( - + 65, - 64 ) * + 9 + - - CAST ( - 33 AS REAL ) * CAST ( NULL AS INTEGER ) * 95 - + 53 THEN NULL WHEN - 92 THEN NULL WHEN + SUM ( 45 ) THEN - NULLIF ( 89, + 96 ) ELSE NULL END * 8 AS col0
----
NULL

query I rowsort
SELECT ALL - ( 33 ) * - 27 AS col0
----
891

onlyif mysql # aggregate syntax: 
query II rowsort label-8228
SELECT 14 * - - 60 * + 82 * - 74 AS col2, + COUNT( * )
----
-5097120
1

skipif mysql # not compatible
query II rowsort label-8228
SELECT 14 * - - 60 * + 82 * - 74 AS col2, + COUNT ( * )
----
-5097120
1

query I rowsort
SELECT 50 * + 92 AS col1
----
4600

query II rowsort
SELECT ALL 73 col1, + 23 * - 63
----
73
-1449

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8231
SELECT DISTINCT 75 AS col2, - AVG ( CAST( NULL AS SIGNED ) ) + - + 13 AS col1
----
75
NULL

skipif mysql # not compatible
query II rowsort label-8231
SELECT DISTINCT 75 AS col2, - AVG ( CAST ( NULL AS INTEGER ) ) + - + 13 AS col1
----
75
NULL

query II rowsort
SELECT ALL - 97 AS col2, 25 AS col0
----
-97
25

query I rowsort
SELECT 87 * + + 48 AS col0
----
4176

onlyif mysql # aggregate syntax: 
query I rowsort label-8234
SELECT + 76 + + COUNT( * ) AS col1
----
77

skipif mysql # not compatible
query I rowsort label-8234
SELECT + 76 + + COUNT ( * ) AS col1
----
77

query I rowsort
SELECT 89 * - 79
----
-7031

query I rowsort
SELECT - 85 * - 31
----
2635

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

skipif mysql # not compatible
query I rowsort label-8237
SELECT ALL 55 + - AVG ( + CAST ( NULL AS INTEGER ) )
----
NULL

query I rowsort
SELECT 20 + 67 AS col0
----
87

query I rowsort
SELECT COALESCE ( + + 75, 93 )
----
75

query II rowsort
SELECT + 67 AS col0, + 58 - - 27 + - + 88
----
67
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8241
SELECT CASE - - ( CAST( NULL AS SIGNED ) ) WHEN - ( + 24 ) THEN NULL ELSE 53 END + - CAST( - COALESCE ( + - 68, 6 ) AS SIGNED ) - - 37 - - 91 col2
----
113

skipif mysql # not compatible
query I rowsort label-8241
SELECT CASE - - ( CAST ( NULL AS INTEGER ) ) WHEN - ( + 24 ) THEN NULL ELSE 53 END + - CAST ( - COALESCE ( + - 68, 6 ) AS INTEGER ) - - 37 - - 91 col2
----
113

onlyif mysql # aggregate syntax: 
query I rowsort label-8242
SELECT + 52 + - - ( - COUNT( * ) ) + - ( + 57 )
----
-6

skipif mysql # not compatible
query I rowsort label-8242
SELECT + 52 + - - ( - COUNT ( * ) ) + - ( + 57 )
----
-6

query I rowsort
SELECT ALL + 28 + + 34 AS col2
----
62

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8244
SELECT ALL - 48 + + CAST( COALESCE ( 36, - 72 ) AS SIGNED ) AS col1
----
-12

skipif mysql # not compatible
query I rowsort label-8244
SELECT ALL - 48 + + CAST ( COALESCE ( 36, - 72 ) AS INTEGER ) AS col1
----
-12

query I rowsort
SELECT - 88 + + + 61 AS col0
----
-27

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-8247
SELECT ALL COALESCE ( + MAX( - - 68 ), + 23 + + 12, 5 + - + 72 * - 84 )
----
68

skipif mysql # not compatible
query I rowsort label-8247
SELECT ALL COALESCE ( + MAX ( - - 68 ), + 23 + + 12, 5 + - + 72 * - 84 )
----
68

query I rowsort
SELECT - 1 + - + 78 - - 88 * - 8 * NULLIF ( + - 18, - 13 ) * + + 17 AS col0
----
215345

query II rowsort
SELECT - 46 AS col0, + 45 * + 20 AS col1
----
-46
900

onlyif mysql # aggregate syntax: 
query II rowsort label-8250
SELECT 15 * 0 col1, COUNT( * ) * MAX( ALL - + 37 ) * + 32 * COUNT( * ) * 37 + 15
----
0
-43793

skipif mysql # not compatible
query II rowsort label-8250
SELECT 15 * 0 col1, COUNT ( * ) * MAX ( ALL - + 37 ) * + 32 * COUNT ( * ) * 37 + 15
----
0
-43793

onlyif mysql # aggregate syntax: 
query I rowsort label-8251
SELECT ALL ( + COUNT( * ) ) * 89 * 96 + - 52 * COUNT( ALL - + ( - 81 ) ) - ( + 14 ) col0
----
8478

skipif mysql # not compatible
query I rowsort label-8251
SELECT ALL ( + COUNT ( * ) ) * 89 * 96 + - 52 * COUNT ( ALL - + ( - 81 ) ) - ( + 14 ) col0
----
8478

query II rowsort
SELECT + CASE + 1 WHEN + - 5 * - 15 THEN + 46 END, + ( + 80 ) AS col0
----
NULL
80

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8253
SELECT ALL - CAST( + 21 AS SIGNED ) * 34 * - MIN( + 72 ) - - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8253
SELECT ALL - CAST ( + 21 AS INTEGER ) * 34 * - MIN ( + 72 ) - - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8254
SELECT ALL - SUM( 74 ) AS col2
----
-74

skipif mysql # not compatible
query I rowsort label-8254
SELECT ALL - SUM ( 74 ) AS col2
----
-74

onlyif mysql # aggregate syntax: 
query II rowsort label-8255
SELECT MIN( ALL + - 3 ) AS col0, 39 + 80 + - - 25 + + 25 - ( 27 ) col0
----
-3
142

skipif mysql # not compatible
query II rowsort label-8255
SELECT MIN ( ALL + - 3 ) AS col0, 39 + 80 + - - 25 + + 25 - ( 27 ) col0
----
-3
142

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

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

query II rowsort
SELECT 5 * - 25 AS col1, 17
----
-125
17

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

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8260
SELECT - COUNT( * ) DIV + + 58 AS col1, 47 AS col1
----
0
47

skipif mysql # not compatible
query II rowsort label-8260
SELECT - COUNT ( * ) / + + 58 AS col1, 47 AS col1
----
0
47

onlyif mysql # aggregate syntax: 
query II rowsort label-8261
SELECT - 89 * 94 AS col2, CASE 21 WHEN - COUNT( 53 ) * - - 37 + - - 66 * - + 53 * 53 THEN AVG ( + + 14 ) WHEN + 36 THEN NULL WHEN - 17 THEN NULL ELSE NULL END + 25 - - + 50 * 71
----
-8366
NULL

skipif mysql # not compatible
query II rowsort label-8261
SELECT - 89 * 94 AS col2, CASE 21 WHEN - COUNT ( 53 ) * - - 37 + - - 66 * - + 53 * 53 THEN AVG ( + + 14 ) WHEN + 36 THEN NULL WHEN - 17 THEN NULL ELSE NULL END + 25 - - + 50 * 71
----
-8366
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8262
SELECT DISTINCT 95 * - CAST( 57 AS SIGNED ) AS col1, 96 + - SUM( - 2 ) + + - COUNT( * ) + + 67 AS col0
----
-5415
164

skipif mysql # not compatible
query II rowsort label-8262
SELECT DISTINCT 95 * - CAST ( 57 AS INTEGER ) AS col1, 96 + - SUM ( - 2 ) + + - COUNT ( * ) + + 67 AS col0
----
-5415
164

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-8264
SELECT DISTINCT + ( - MIN( DISTINCT + 79 ) )
----
-79

skipif mysql # not compatible
query I rowsort label-8264
SELECT DISTINCT + ( - MIN ( DISTINCT + 79 ) )
----
-79

onlyif mysql # aggregate syntax: 
query I rowsort label-8265
SELECT - + ( 3 ) + - NULLIF ( 92, + - 28 ) - - - MAX( + 81 ) AS col1
----
-176

skipif mysql # not compatible
query I rowsort label-8265
SELECT - + ( 3 ) + - NULLIF ( 92, + - 28 ) - - - MAX ( + 81 ) AS col1
----
-176

query II rowsort
SELECT - 47 - 60 AS col1, 85 - + 96 + + 75 - + 50 + - - 42 + + 16 AS col2
----
-107
72

onlyif mysql # aggregate syntax: 
query I rowsort label-8267
SELECT DISTINCT + 93 + + 8 * + COUNT( * ) - + 35
----
66

skipif mysql # not compatible
query I rowsort label-8267
SELECT DISTINCT + 93 + + 8 * + COUNT ( * ) - + 35
----
66

query III rowsort
SELECT - + 24 * - + 28 AS col2, 52 * - 9 + + 83 AS col0, 94 AS col0
----
672
-385
94

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8269
SELECT ALL + 60 + + CAST( + 19 AS SIGNED ) + - - 58 AS col1
----
137

skipif mysql # not compatible
query I rowsort label-8269
SELECT ALL + 60 + + CAST ( + 19 AS INTEGER ) + - - 58 AS col1
----
137

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8270
SELECT DISTINCT - COUNT( * ) * - COUNT( * ) * - COUNT( * ) DIV 78 * MIN( - 27 ) * + 61 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-8270
SELECT DISTINCT - COUNT ( * ) * - COUNT ( * ) * - COUNT ( * ) / 78 * MIN ( - 27 ) * + 61 AS col2
----
0

query I rowsort
SELECT - + 80 + + 41 AS col1
----
-39

query I rowsort
SELECT ALL + 69 * + 55 + - - 17
----
3812

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8273
SELECT ALL + 58 + - 83 * + COALESCE ( CAST( - 12 AS SIGNED ), + + 48 )
----
1054

skipif mysql # not compatible
query I rowsort label-8273
SELECT ALL + 58 + - 83 * + COALESCE ( CAST ( - 12 AS INTEGER ), + + 48 )
----
1054

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

skipif mysql # not compatible
query I rowsort label-8274
SELECT ALL - 99 + - - ( - CAST ( NULL AS INTEGER ) ) - + - CAST ( NULL AS INTEGER ) col1
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-8276
SELECT ALL 89 + - 86 + - 59 + - + 9 * - SUM( COALESCE ( - - 82, - ( + + 29 ), + 94 ) ) * - 44
----
-32528

skipif mysql # not compatible
query I rowsort label-8276
SELECT ALL 89 + - 86 + - 59 + - + 9 * - SUM ( COALESCE ( - - 82, - ( + + 29 ), + 94 ) ) * - 44
----
-32528

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8277
SELECT + 72 DIV + 83 col0, - COUNT( DISTINCT - 74 ) AS col2
----
0
-1

skipif mysql # not compatible
query II rowsort label-8277
SELECT + 72 / + 83 col0, - COUNT ( DISTINCT - 74 ) AS col2
----
0
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8278
SELECT - + COUNT( * ) - - - 2
----
-3

skipif mysql # not compatible
query I rowsort label-8278
SELECT - + COUNT ( * ) - - - 2
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-8279
SELECT - + MIN( ALL + 37 ) AS col0
----
-37

skipif mysql # not compatible
query I rowsort label-8279
SELECT - + MIN ( ALL + 37 ) AS col0
----
-37

query I rowsort
SELECT - - NULLIF ( + 85, - 93 * - 53 ) col0
----
85

query I rowsort
SELECT + - 61 * + 29 - + 38 * + 50 AS col1
----
-3669

onlyif mysql # aggregate syntax: 
query I rowsort label-8282
SELECT ALL ( - + MAX( ALL NULLIF ( 72, 30 ) ) ) AS col0
----
-72

skipif mysql # not compatible
query I rowsort label-8282
SELECT ALL ( - + MAX ( ALL NULLIF ( 72, 30 ) ) ) AS col0
----
-72

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-8284
SELECT + NULLIF ( 33, + 13 ) + NULLIF ( + - 44, + 82 ) / - - CASE - 89 WHEN - MAX( + 85 ) THEN - 16 END col0, 28 * + 18 AS col0
----
NULL
504

skipif mysql # not compatible
query II rowsort label-8284
SELECT + NULLIF ( 33, + 13 ) + NULLIF ( + - 44, + 82 ) / - - CASE - 89 WHEN - MAX ( + 85 ) THEN - 16 END col0, 28 * + 18 AS col0
----
NULL
504

query I rowsort
SELECT + 19 * 47 AS col0
----
893

query I rowsort
SELECT + 25 * + 31 AS col1
----
775

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

query I rowsort
SELECT 56 * - - 66 + - + 16 AS col2
----
3680

query I rowsort
SELECT ( - 49 ) col2
----
-49

query I rowsort
SELECT - ( 53 ) * + 94 + - 23
----
-5005

query I rowsort
SELECT + 89 * - ( - 49 ) * - - ( + + COALESCE ( + 25, 93 ) )
----
109025

onlyif mysql # aggregate syntax: 
query I rowsort label-8292
SELECT + 48 + + MAX( - 79 ) - - ( - 54 ) + + COUNT( * ) * - + COUNT( * )
----
-86

skipif mysql # not compatible
query I rowsort label-8292
SELECT + 48 + + MAX ( - 79 ) - - ( - 54 ) + + COUNT ( * ) * - + COUNT ( * )
----
-86

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-8294
SELECT + COUNT( * ) + + 53 * 48 - + MIN( 35 ) * 2 + 39 * + 48
----
4347

skipif mysql # not compatible
query I rowsort label-8294
SELECT + COUNT ( * ) + + 53 * 48 - + MIN ( 35 ) * 2 + 39 * + 48
----
4347

query I rowsort
SELECT ALL + 94 * 13
----
1222

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8296
SELECT CASE + 26 WHEN + ( - 70 ) THEN - COUNT( * ) ELSE + 22 * - ( COUNT( * ) ) * - 18 * + 33 + - + 17 * + COUNT( * ) * - COUNT( - ( 23 ) ) DIV - - CASE - 53 WHEN + 51 THEN NULL ELSE - 58 END + 6 END
----
13074

skipif mysql # not compatible
query I rowsort label-8296
SELECT CASE + 26 WHEN + ( - 70 ) THEN - COUNT ( * ) ELSE + 22 * - ( COUNT ( * ) ) * - 18 * + 33 + - + 17 * + COUNT ( * ) * - COUNT ( - ( 23 ) ) / - - CASE - 53 WHEN + 51 THEN NULL ELSE - 58 END + 6 END
----
13074

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8297
SELECT + NULLIF ( + 62, - CAST( - + MIN( + - 67 ) AS SIGNED ) ) AS col2
----
62

skipif mysql # not compatible
query I rowsort label-8297
SELECT + NULLIF ( + 62, - CAST ( - + MIN ( + - 67 ) AS INTEGER ) ) AS col2
----
62

query I rowsort
SELECT 94 * + 50 + - 10 * - 60
----
5300

onlyif mysql # aggregate syntax: 
query I rowsort label-8299
SELECT NULLIF ( + MIN( + + 48 ), - 36 / 66 ) AS col2
----
48

skipif mysql # not compatible
query I rowsort label-8299
SELECT NULLIF ( + MIN ( + + 48 ), - 36 / 66 ) AS col2
----
48

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8300
SELECT - - MAX( DISTINCT - + 72 ) DIV 36 AS col1, 48 * + COUNT( * ) + + ( 96 ) AS col1
----
-2
144

skipif mysql # not compatible
query II rowsort label-8300
SELECT - - MAX ( DISTINCT - + 72 ) / 36 AS col1, 48 * + COUNT ( * ) + + ( 96 ) AS col1
----
-2
144

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8301
SELECT ALL - + 41 * - 44 + + 7 + - - 81 / 44 - - - 99 * + + CAST( NULL AS SIGNED ) + - 43 * + 42 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8301
SELECT ALL - + 41 * - 44 + + 7 + - - 81 / 44 - - - 99 * + + CAST ( NULL AS INTEGER ) + - 43 * + 42 col1
----
NULL

query I rowsort
SELECT + 6 + + 16
----
22

query II rowsort
SELECT ALL + 6 col0, 35 AS col0
----
6
35

query I rowsort
SELECT - + 34 * - 82 * - 79
----
-220252

query I rowsort
SELECT ALL 74 * + - 7 * 19 + - 90
----
-9932

onlyif mysql # aggregate syntax: 
query I rowsort label-8306
SELECT ALL + COUNT( * ) * + - 91 + - 58 + + 27 + - 95
----
-217

skipif mysql # not compatible
query I rowsort label-8306
SELECT ALL + COUNT ( * ) * + - 91 + - 58 + + 27 + - 95
----
-217

onlyif mysql # aggregate syntax: 
query I rowsort label-8307
SELECT - MIN( + 54 )
----
-54

skipif mysql # not compatible
query I rowsort label-8307
SELECT - MIN ( + 54 )
----
-54

query II rowsort
SELECT ALL 63 AS col1, 22
----
63
22

query I rowsort
SELECT - 61 * + - 80
----
4880

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8310
SELECT ALL + 46 + - CAST( 70 AS SIGNED ) AS col2
----
-24

skipif mysql # not compatible
query I rowsort label-8310
SELECT ALL + 46 + - CAST ( 70 AS INTEGER ) AS col2
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-8311
SELECT ALL - MIN( DISTINCT + + 59 )
----
-59

skipif mysql # not compatible
query I rowsort label-8311
SELECT ALL - MIN ( DISTINCT + + 59 )
----
-59

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8312
SELECT + ( COALESCE ( + 13, + NULLIF ( + COUNT( * ), 82 / - 28 + - COALESCE ( - CASE + + 97 WHEN + CASE + NULLIF ( + 84, 23 ) WHEN 19 THEN NULL WHEN + 61 THEN NULL WHEN ( - COUNT( * ) ) + - 36 THEN 38 - + + COALESCE ( + 92, + + ( - ( - - 70 ) ), - 22 + + 96 ) / - + COUNT( * ) ELSE + CAST( NULL AS SIGNED ) END THEN - 55 * - - 54 END, 78, + MAX( - - COALESCE ( + 44, 47, - - 44 + + ( 88 ) + - 11 ) ) * - 89 + + + ( 91 ) - + + 9 + + ( + - 35 ) * + 11 * - 35 + 95 ) ) * 15, 83 ) ) AS col2
----
13

skipif mysql # not compatible
query I rowsort label-8312
SELECT + ( COALESCE ( + 13, + NULLIF ( + COUNT ( * ), 82 / - 28 + - COALESCE ( - CASE + + 97 WHEN + CASE + NULLIF ( + 84, 23 ) WHEN 19 THEN NULL WHEN + 61 THEN NULL WHEN ( - COUNT ( * ) ) + - 36 THEN 38 - + + COALESCE ( + 92, + + ( - ( - - 70 ) ), - 22 + + 96 ) / - + COUNT ( * ) ELSE + CAST ( NULL AS INTEGER ) END THEN - 55 * - - 54 END, 78, + MAX ( - - COALESCE ( + 44, 47, - - 44 + + ( 88 ) + - 11 ) ) * - 89 + + + ( 91 ) - + + 9 + + ( + - 35 ) * + 11 * - 35 + 95 ) ) * 15, 83 ) ) AS col2
----
13

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

skipif mysql # not compatible
query I rowsort label-8313
SELECT - + ( MIN ( 51 ) )
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-8314
SELECT - 23 + - COUNT( * ) * COUNT( * ) AS col2
----
-24

skipif mysql # not compatible
query I rowsort label-8314
SELECT - 23 + - COUNT ( * ) * COUNT ( * ) AS col2
----
-24

query I rowsort
SELECT + - 2 * + + 67
----
-134

query I rowsort
SELECT ALL + - 57 - + 24 AS col0
----
-81

query I rowsort
SELECT ALL - 5 - 90 AS col0
----
-95

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8319
SELECT ALL 66 DIV + ( + CASE - AVG ( ALL - - 63 ) WHEN + SUM( ALL + 2 ) DIV + - 29 THEN NULL WHEN - + COUNT( ALL + + 28 ) THEN 81 ELSE - + CASE ( - 48 ) WHEN 5 THEN + ( + 12 ) ELSE + + MIN( + + 39 ) + 74 END END ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-8319
SELECT ALL 66 / + ( + CASE - AVG ( ALL - - 63 ) WHEN + SUM ( ALL + 2 ) / + - 29 THEN NULL WHEN - + COUNT ( ALL + + 28 ) THEN 81 ELSE - + CASE ( - 48 ) WHEN 5 THEN + ( + 12 ) ELSE + + MIN ( + + 39 ) + 74 END END ) AS col1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8320
SELECT ALL 60 * CAST( - ( 88 ) AS SIGNED ), - 30 AS col1
----
-5280
-30

skipif mysql # not compatible
query II rowsort label-8320
SELECT ALL 60 * CAST ( - ( 88 ) AS INTEGER ), - 30 AS col1
----
-5280
-30

query I rowsort
SELECT 23 * 75 AS col2
----
1725

query I rowsort
SELECT ALL 0 + + - 87 * - - 79
----
-6873

query II rowsort
SELECT DISTINCT 59 * 67, 45 * - + 3 * + + ( + 46 ) * - + 34 AS col1
----
3953
211140

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8324
SELECT 54 * - CAST( - 8 AS SIGNED )
----
432

skipif mysql # not compatible
query I rowsort label-8324
SELECT 54 * - CAST ( - 8 AS INTEGER )
----
432

query I rowsort
SELECT ALL + 43 + 94 AS col0
----
137

onlyif mysql # aggregate syntax: 
query II rowsort label-8326
SELECT - ( - 41 ) - + 48 * + 22 * NULLIF ( + 16, SUM( ALL 90 ) + + - COUNT( ALL 64 ) ) AS col2, 37
----
-16855
37

skipif mysql # not compatible
query II rowsort label-8326
SELECT - ( - 41 ) - + 48 * + 22 * NULLIF ( + 16, SUM ( ALL 90 ) + + - COUNT ( ALL 64 ) ) AS col2, 37
----
-16855
37

query I rowsort
SELECT ALL 65 + + ( ( - 99 ) ) AS col0
----
-34

onlyif mysql # DIV for integer division: 
query I rowsort label-8328
SELECT DISTINCT 39 DIV + - 94 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-8328
SELECT DISTINCT 39 / + - 94 AS col1
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8329
SELECT 33 DIV MAX( ALL - + 58 )
----
0

skipif mysql # not compatible
query I rowsort label-8329
SELECT 33 / MAX ( ALL - + 58 )
----
0

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8330
SELECT ALL 48 DIV - + CAST( + 77 AS SIGNED ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-8330
SELECT ALL 48 / - + CAST ( + 77 AS INTEGER ) AS col2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8331
SELECT ALL - + COALESCE ( CAST( NULL AS SIGNED ), + 40 * + ( - 82 ) - - 45 ) + + 75 + 78 AS col1
----
3388

skipif mysql # not compatible
query I rowsort label-8331
SELECT ALL - + COALESCE ( CAST ( NULL AS INTEGER ), + 40 * + ( - 82 ) - - 45 ) + + 75 + 78 AS col1
----
3388

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8332
SELECT DISTINCT 6 DIV CAST( - 23 AS SIGNED )
----
0

skipif mysql # not compatible
query I rowsort label-8332
SELECT DISTINCT 6 / CAST ( - 23 AS INTEGER )
----
0

query I rowsort
SELECT 13 + - 42 AS col1
----
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-8334
SELECT MIN( ALL - 1 ) - - - 95 AS col0
----
-96

skipif mysql # not compatible
query I rowsort label-8334
SELECT MIN ( ALL - 1 ) - - - 95 AS col0
----
-96

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-8337
SELECT 36 DIV ( + - 83 ) * + 62 * - + 51 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-8337
SELECT 36 / ( + - 83 ) * + 62 * - + 51 AS col1
----
0

query I rowsort
SELECT DISTINCT ( - 15 ) AS col0
----
-15

query I rowsort
SELECT 82 + + + 4 + + 86 - - 87 * + 74 AS col2
----
6610

query I rowsort
SELECT DISTINCT - 23 * + 74 AS col2
----
-1702

onlyif mysql # aggregate syntax: 
query I rowsort label-8341
SELECT MIN( DISTINCT - + 72 ) AS col1
----
-72

skipif mysql # not compatible
query I rowsort label-8341
SELECT MIN ( DISTINCT - + 72 ) AS col1
----
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-8342
SELECT 18 * + COUNT( * ) col2
----
18

skipif mysql # not compatible
query I rowsort label-8342
SELECT 18 * + COUNT ( * ) col2
----
18

query II rowsort
SELECT 85 AS col0, + 77 + 65
----
85
142

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8344
SELECT 28 + + + 7 * + 25 DIV + COUNT( * ) col2
----
203

skipif mysql # not compatible
query I rowsort label-8344
SELECT 28 + + + 7 * + 25 / + COUNT ( * ) col2
----
203

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8345
SELECT COUNT( * ) - - 53 + CAST( - - 22 AS SIGNED ) AS col2
----
76

skipif mysql # not compatible
query I rowsort label-8345
SELECT COUNT ( * ) - - 53 + CAST ( - - 22 AS INTEGER ) AS col2
----
76

query I rowsort
SELECT 8 * - 27
----
-216

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8347
SELECT 14 - - CAST( NULL AS SIGNED ) / + 60
----
NULL

skipif mysql # not compatible
query I rowsort label-8347
SELECT 14 - - CAST ( NULL AS INTEGER ) / + 60
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8348
SELECT ALL + 39 DIV + 10 AS col1
----
3

skipif mysql # not compatible
query I rowsort label-8348
SELECT ALL + 39 / + 10 AS col1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8349
SELECT 33 * + MAX( DISTINCT - 62 )
----
-2046

skipif mysql # not compatible
query I rowsort label-8349
SELECT 33 * + MAX ( DISTINCT - 62 )
----
-2046

query I rowsort
SELECT 23 + - ( 11 ) col1
----
12

query I rowsort
SELECT 30 * + + 83 - 93 AS col2
----
2397

query I rowsort
SELECT DISTINCT - 7 col1
----
-7

query I rowsort
SELECT DISTINCT - ( + 27 ) AS col0
----
-27

query I rowsort
SELECT ALL 53 + + 41 AS col0
----
94

query I rowsort
SELECT ALL + ( + 55 ) + 62 AS col0
----
117

onlyif mysql # DIV for integer division: 
query I rowsort label-8356
SELECT DISTINCT - 76 DIV 54
----
-1

skipif mysql # not compatible
query I rowsort label-8356
SELECT DISTINCT - 76 / 54
----
-1

query I rowsort
SELECT 68 + 93 AS col1
----
161

onlyif mysql # aggregate syntax: 
query I rowsort label-8358
SELECT ALL 47 + COUNT( 67 ) col0
----
48

skipif mysql # not compatible
query I rowsort label-8358
SELECT ALL 47 + COUNT ( 67 ) col0
----
48

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8359
SELECT CASE 95 WHEN - NULLIF ( 14, + COUNT( * ) ) / 87 THEN - ( - 51 ) / + 80 ELSE + 43 - 63 END + + CAST( NULL AS SIGNED ) / 97
----
NULL

skipif mysql # not compatible
query I rowsort label-8359
SELECT CASE 95 WHEN - NULLIF ( 14, + COUNT ( * ) ) / 87 THEN - ( - 51 ) / + 80 ELSE + 43 - 63 END + + CAST ( NULL AS INTEGER ) / 97
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8360
SELECT - 97 * + 15 + COUNT( * )
----
-1454

skipif mysql # not compatible
query I rowsort label-8360
SELECT - 97 * + 15 + COUNT ( * )
----
-1454

query I rowsort
SELECT 74 * - 58 AS col0
----
-4292

onlyif mysql # aggregate syntax: 
query I rowsort label-8362
SELECT 9 * + COUNT( * ) AS col1
----
9

skipif mysql # not compatible
query I rowsort label-8362
SELECT 9 * + COUNT ( * ) AS col1
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-8363
SELECT DISTINCT COUNT( DISTINCT ( - NULLIF ( + 62, - 82 + 44 ) ) ) - + 72
----
-71

skipif mysql # not compatible
query I rowsort label-8363
SELECT DISTINCT COUNT ( DISTINCT ( - NULLIF ( + 62, - 82 + 44 ) ) ) - + 72
----
-71

query I rowsort
SELECT 99 * + 81
----
8019

query I rowsort
SELECT DISTINCT 92 * 99 AS col1
----
9108

query I rowsort
SELECT 24 + 54
----
78

onlyif mysql # DIV for integer division: 
query I rowsort label-8367
SELECT DISTINCT 38 DIV 48
----
0

skipif mysql # not compatible
query I rowsort label-8367
SELECT DISTINCT 38 / 48
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8368
SELECT - COUNT( 48 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-8368
SELECT - COUNT ( 48 ) AS col1
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8369
SELECT CAST( NULL AS SIGNED ) + + 32
----
NULL

skipif mysql # not compatible
query I rowsort label-8369
SELECT CAST ( NULL AS INTEGER ) + + 32
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8370
SELECT + 79 DIV - 12 AS col1
----
-6

skipif mysql # not compatible
query I rowsort label-8370
SELECT + 79 / - 12 AS col1
----
-6

onlyif mysql # DIV for integer division: 
query I rowsort label-8371
SELECT - 85 DIV 96 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-8371
SELECT - 85 / 96 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8372
SELECT ALL 91 + + 28 * NULLIF ( - CASE 9 WHEN + 10 THEN ( - COUNT( + 33 ) ) - - 79 END + + 86, + 23 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8372
SELECT ALL 91 + + 28 * NULLIF ( - CASE 9 WHEN + 10 THEN ( - COUNT ( + 33 ) ) - - 79 END + + 86, + 23 ) AS col1
----
NULL

query I rowsort
SELECT + 96 + 11 * 74 AS col0
----
910

query I rowsort
SELECT + 73 + 3 * 27 AS col2
----
154

query I rowsort
SELECT DISTINCT - 52 + + ( 22 )
----
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-8376
SELECT ALL COALESCE ( MIN( ALL 94 ), + ( + 85 ) + 12 * - 17 ) + 67 * + 76 AS col1
----
5186

skipif mysql # not compatible
query I rowsort label-8376
SELECT ALL COALESCE ( MIN ( ALL 94 ), + ( + 85 ) + 12 * - 17 ) + 67 * + 76 AS col1
----
5186

query I rowsort
SELECT - 95 + - NULLIF ( 14, - 29 * - 77 ) AS col2
----
-109

query I rowsort
SELECT + 7 * + 37
----
259

query I rowsort
SELECT ALL 44 * 76 + + 82
----
3426

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8380
SELECT - 59 * COALESCE ( 25 * CAST( CASE + 72 WHEN + 7 * 48 THEN 99 WHEN - CAST( 94 AS SIGNED ) + + COUNT( * ) / + ( AVG ( 15 ) ) THEN 78 * + 47 END AS SIGNED ), + 83 + 21, - ( 55 ) ) AS col0
----
-6136

skipif mysql # not compatible
query I rowsort label-8380
SELECT - 59 * COALESCE ( 25 * CAST ( CASE + 72 WHEN + 7 * 48 THEN 99 WHEN - CAST ( 94 AS INTEGER ) + + COUNT ( * ) / + ( AVG ( 15 ) ) THEN 78 * + 47 END AS INTEGER ), + 83 + 21, - ( 55 ) ) AS col0
----
-6136

query I rowsort
SELECT ALL - 63 * - 85
----
5355

query I rowsort
SELECT NULLIF ( + 2, + 49 )
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-8383
SELECT DISTINCT 82 * - COUNT( * ) AS col0
----
-82

skipif mysql # not compatible
query I rowsort label-8383
SELECT DISTINCT 82 * - COUNT ( * ) AS col0
----
-82

query I rowsort
SELECT DISTINCT + CASE 78 WHEN 13 * + 35 + 96 THEN NULL WHEN 89 THEN 6 * - 19 ELSE 26 END col2
----
26

query I rowsort
SELECT ALL - + 67 * 37 AS col0
----
-2479

query I rowsort
SELECT DISTINCT + 66 * - 19 - 39 AS col2
----
-1293

query I rowsort
SELECT + 39 * 18
----
702

query I rowsort
SELECT DISTINCT + 53 col2
----
53

onlyif mysql # DIV for integer division: 
query I rowsort label-8389
SELECT - 66 DIV + 18
----
-3

skipif mysql # not compatible
query I rowsort label-8389
SELECT - 66 / + 18
----
-3

query I rowsort
SELECT + + 64 * - 58 col2
----
-3712

onlyif mysql # aggregate syntax: 
query I rowsort label-8391
SELECT ALL + NULLIF ( + MIN( ALL 43 ), - 80 + + 20 )
----
43

skipif mysql # not compatible
query I rowsort label-8391
SELECT ALL + NULLIF ( + MIN ( ALL 43 ), - 80 + + 20 )
----
43

query I rowsort
SELECT - + ( 9 ) - + 55
----
-64

query I rowsort
SELECT ALL + 9 * - 59 AS col1
----
-531

query I rowsort
SELECT - + 3 * + 89 AS col2
----
-267

onlyif mysql # DIV for integer division: 
query I rowsort label-8395
SELECT ALL + + ( - ( - 14 ) ) DIV + 93 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-8395
SELECT ALL + + ( - ( - 14 ) ) / + 93 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8396
SELECT - 16 * CASE NULLIF ( 52, 91 / 4 + 26 * - 18 ) WHEN + 11 THEN COUNT( DISTINCT + 84 ) * ( 34 ) ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8396
SELECT - 16 * CASE NULLIF ( 52, 91 / 4 + 26 * - 18 ) WHEN + 11 THEN COUNT ( DISTINCT + 84 ) * ( 34 ) ELSE NULL END AS col0
----
NULL

query I rowsort
SELECT - + ( 38 ) + 12 col2
----
-26

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8398
SELECT - - 85 * - MAX( DISTINCT 60 + CAST( NULL AS SIGNED ) ) + ( CAST( 73 AS DECIMAL ) ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8398
SELECT - - 85 * - MAX ( DISTINCT 60 + CAST ( NULL AS INTEGER ) ) + ( CAST ( 73 AS REAL ) ) col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8399
SELECT + 43 - 75 DIV 73 AS col0
----
42

skipif mysql # not compatible
query I rowsort label-8399
SELECT + 43 - 75 / 73 AS col0
----
42

query I rowsort
SELECT ALL - 73 * + 75
----
-5475

onlyif mysql # aggregate syntax: 
query I rowsort label-8401
SELECT - SUM( ALL + 5 ) * + 79
----
-395

skipif mysql # not compatible
query I rowsort label-8401
SELECT - SUM ( ALL + 5 ) * + 79
----
-395

query I rowsort
SELECT + + 62 * + 35
----
2170

onlyif mysql # aggregate syntax: 
query I rowsort label-8403
SELECT + 57 - COUNT( * ) AS col0
----
56

skipif mysql # not compatible
query I rowsort label-8403
SELECT + 57 - COUNT ( * ) AS col0
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-8404
SELECT SUM( + 55 ) AS col2
----
55

skipif mysql # not compatible
query I rowsort label-8404
SELECT SUM ( + 55 ) AS col2
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-8405
SELECT ALL ( COUNT( DISTINCT + 36 ) ) + + MIN( ALL + 52 ) AS col0
----
53

skipif mysql # not compatible
query I rowsort label-8405
SELECT ALL ( COUNT ( DISTINCT + 36 ) ) + + MIN ( ALL + 52 ) AS col0
----
53

query I rowsort
SELECT - 55 + + 91 * 18
----
1583

onlyif mysql # aggregate syntax: 
query I rowsort label-8407
SELECT ALL - COUNT( * ) * + + 29
----
-29

skipif mysql # not compatible
query I rowsort label-8407
SELECT ALL - COUNT ( * ) * + + 29
----
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-8408
SELECT + 73 * + - MAX( + 14 ) AS col1
----
-1022

skipif mysql # not compatible
query I rowsort label-8408
SELECT + 73 * + - MAX ( + 14 ) AS col1
----
-1022

query I rowsort
SELECT + 32 + ( + 42 )
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-8410
SELECT ALL 37 + COUNT( * ) - 48 AS col0
----
-10

skipif mysql # not compatible
query I rowsort label-8410
SELECT ALL 37 + COUNT ( * ) - 48 AS col0
----
-10

query I rowsort
SELECT - 13 + - + ( 48 ) + 65
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-8412
SELECT ALL CASE - 79 WHEN + 68 THEN + 68 + - CASE + COUNT( * ) WHEN + 21 THEN 24 END * 42 WHEN 35 * + 18 - - 84 THEN ( - 29 ) END / ( 39 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8412
SELECT ALL CASE - 79 WHEN + 68 THEN + 68 + - CASE + COUNT ( * ) WHEN + 21 THEN 24 END * 42 WHEN 35 * + 18 - - 84 THEN ( - 29 ) END / ( 39 ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8413
SELECT + 7 - MIN( ( + 69 ) ) col0
----
-62

skipif mysql # not compatible
query I rowsort label-8413
SELECT + 7 - MIN ( ( + 69 ) ) col0
----
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-8414
SELECT - NULLIF ( NULLIF ( - ( SUM( DISTINCT + ( + 41 ) ) ), COUNT( * ) + - 60 ), - COUNT( * ) * + 63 ) AS col1
----
41

skipif mysql # not compatible
query I rowsort label-8414
SELECT - NULLIF ( NULLIF ( - ( SUM ( DISTINCT + ( + 41 ) ) ), COUNT ( * ) + - 60 ), - COUNT ( * ) * + 63 ) AS col1
----
41

query I rowsort
SELECT ALL 77 * 2 AS col1
----
154

onlyif mysql # aggregate syntax: 
query I rowsort label-8416
SELECT + 83 - COUNT( * ) * + 6
----
77

skipif mysql # not compatible
query I rowsort label-8416
SELECT + 83 - COUNT ( * ) * + 6
----
77

query I rowsort
SELECT ALL 89 + + 96 AS col1
----
185

query I rowsort
SELECT ALL COALESCE ( ( 53 ), + 76 ) * + 40
----
2120

query I rowsort
SELECT ALL 41 * 83
----
3403

onlyif mysql # aggregate syntax: 
query I rowsort label-8420
SELECT + 53 * COUNT( * ) * COUNT( * ) AS col0
----
53

skipif mysql # not compatible
query I rowsort label-8420
SELECT + 53 * COUNT ( * ) * COUNT ( * ) AS col0
----
53

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8421
SELECT - CAST( + + 65 AS SIGNED ) AS col0
----
-65

skipif mysql # not compatible
query I rowsort label-8421
SELECT - CAST ( + + 65 AS INTEGER ) AS col0
----
-65

onlyif mysql # DIV for integer division: 
query I rowsort label-8422
SELECT DISTINCT 65 DIV + 62 - 30 AS col2
----
-29

skipif mysql # not compatible
query I rowsort label-8422
SELECT DISTINCT 65 / + 62 - 30 AS col2
----
-29

query I rowsort
SELECT + 28 + + 98 + - 31 * 97 AS col0
----
-2881

onlyif mysql # DIV for integer division: 
query I rowsort label-8424
SELECT ( - - 3 ) DIV + 17 - - 4 AS col2
----
4

skipif mysql # not compatible
query I rowsort label-8424
SELECT ( - - 3 ) / + 17 - - 4 AS col2
----
4

query I rowsort
SELECT + - 73 * 1
----
-73

query I rowsort
SELECT CASE - 80 WHEN - ( + 71 ) * - AVG ( DISTINCT - 27 ) THEN NULL WHEN - 78 * - 94 THEN NULL ELSE 62 END AS col0
----
62

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8427
SELECT 24 * + 29 + - CASE 21 WHEN 12 THEN NULL ELSE CAST( NULL AS SIGNED ) END / - 45 + + 20
----
NULL

skipif mysql # not compatible
query I rowsort label-8427
SELECT 24 * + 29 + - CASE 21 WHEN 12 THEN NULL ELSE CAST ( NULL AS INTEGER ) END / - 45 + + 20
----
NULL

query I rowsort
SELECT ALL + + NULLIF ( 65, + 39 )
----
65

query I rowsort
SELECT DISTINCT + NULLIF ( - 53, 66 * 76 ) AS col1
----
-53

onlyif mysql # DIV for integer division: 
query I rowsort label-8430
SELECT + + 89 DIV 5 + ( - 18 + + ( 82 ) * + 15 ) AS col0
----
1229

skipif mysql # not compatible
query I rowsort label-8430
SELECT + + 89 / 5 + ( - 18 + + ( 82 ) * + 15 ) AS col0
----
1229

query I rowsort
SELECT DISTINCT - 80 * - 96
----
7680

onlyif mysql # aggregate syntax: 
query I rowsort label-8432
SELECT - + MIN( ALL 29 ) + - 62 AS col1
----
-91

skipif mysql # not compatible
query I rowsort label-8432
SELECT - + MIN ( ALL 29 ) + - 62 AS col1
----
-91

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8433
SELECT - COALESCE ( 76, - 69 ) DIV COUNT( * ) AS col2
----
-76

skipif mysql # not compatible
query I rowsort label-8433
SELECT - COALESCE ( 76, - 69 ) / COUNT ( * ) AS col2
----
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-8434
SELECT DISTINCT + COUNT( * ) * + - COUNT( * ) + 98
----
97

skipif mysql # not compatible
query I rowsort label-8434
SELECT DISTINCT + COUNT ( * ) * + - COUNT ( * ) + 98
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-8435
SELECT + COUNT( * ) * + + COUNT( * ) * - ( 26 ) + COALESCE ( + 67, + COUNT( * ) ) AS col0
----
41

skipif mysql # not compatible
query I rowsort label-8435
SELECT + COUNT ( * ) * + + COUNT ( * ) * - ( 26 ) + COALESCE ( + 67, + COUNT ( * ) ) AS col0
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-8436
SELECT + 58 * + 23 + - COUNT( * ) * + 79
----
1255

skipif mysql # not compatible
query I rowsort label-8436
SELECT + 58 * + 23 + - COUNT ( * ) * + 79
----
1255

onlyif mysql # aggregate syntax: 
query I rowsort label-8437
SELECT - - 96 * + 26 + COUNT( * ) AS col1
----
2497

skipif mysql # not compatible
query I rowsort label-8437
SELECT - - 96 * + 26 + COUNT ( * ) AS col1
----
2497

onlyif mysql # aggregate syntax: 
query I rowsort label-8438
SELECT + NULLIF ( + COUNT( ( 24 ) ), + 63 - 11 )
----
1

skipif mysql # not compatible
query I rowsort label-8438
SELECT + NULLIF ( + COUNT ( ( 24 ) ), + 63 - 11 )
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-8439
SELECT 88 DIV 22 AS col1
----
4

skipif mysql # not compatible
query I rowsort label-8439
SELECT 88 / 22 AS col1
----
4

query I rowsort
SELECT DISTINCT + 86 + + CASE 1 WHEN + 37 THEN ( - 66 ) * + 15 END
----
NULL

query I rowsort
SELECT + + ( - - 81 )
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-8442
SELECT ALL + + 72 + - + NULLIF ( + 76, + 47 * COUNT( * ) ) AS col0
----
-4

skipif mysql # not compatible
query I rowsort label-8442
SELECT ALL + + 72 + - + NULLIF ( + 76, + 47 * COUNT ( * ) ) AS col0
----
-4

query I rowsort
SELECT 36 * - 92 + - 72
----
-3384

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8444
SELECT DISTINCT - 52 + + + ( + ( - SUM( 86 ) ) ) - + 51 / + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-8444
SELECT DISTINCT - 52 + + + ( + ( - SUM ( 86 ) ) ) - + 51 / + CAST ( NULL AS REAL )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8445
SELECT ALL 30 AS col0, COUNT( * ) DIV + + 7 col0
----
30
0

skipif mysql # not compatible
query II rowsort label-8445
SELECT ALL 30 AS col0, COUNT ( * ) / + + 7 col0
----
30
0

query II rowsort
SELECT - 31, + 85 col1
----
-31
85

onlyif mysql # aggregate syntax: 
query I rowsort label-8447
SELECT ALL - COUNT( * ) + + ( + + 20 ) AS col2
----
19

skipif mysql # not compatible
query I rowsort label-8447
SELECT ALL - COUNT ( * ) + + ( + + 20 ) AS col2
----
19

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8448
SELECT ALL + 80 + + 36 - + 56 DIV + CAST( - 2 + ( AVG ( DISTINCT 28 ) ) AS SIGNED )
----
114

skipif mysql # not compatible
query I rowsort label-8448
SELECT ALL + 80 + + 36 - + 56 / + CAST ( - 2 + ( AVG ( DISTINCT 28 ) ) AS INTEGER )
----
114

query I rowsort
SELECT ALL 37 + - - ( 37 ) + 35
----
109

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8450
SELECT DISTINCT + COUNT( ALL 64 ) + + 11 + 54 * - NULLIF ( + 84, 37 ) DIV - COUNT( * ) AS col1
----
4548

skipif mysql # not compatible
query I rowsort label-8450
SELECT DISTINCT + COUNT ( ALL 64 ) + + 11 + 54 * - NULLIF ( + 84, 37 ) / - COUNT ( * ) AS col1
----
4548

query I rowsort
SELECT 59 + - 2 AS col0
----
57

query I rowsort
SELECT DISTINCT - 89 * ( - 6 ) AS col1
----
534

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8453
SELECT ALL + 35 + 59 / + CAST( NULL AS SIGNED ) * + 84 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8453
SELECT ALL + 35 + 59 / + CAST ( NULL AS INTEGER ) * + 84 AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8454
SELECT COUNT( * ) + 45 - - - MIN( ALL + 52 ) DIV 77 AS col2
----
46

skipif mysql # not compatible
query I rowsort label-8454
SELECT COUNT ( * ) + 45 - - - MIN ( ALL + 52 ) / 77 AS col2
----
46

query I rowsort
SELECT 49 + + 32 AS col0
----
81

query I rowsort
SELECT DISTINCT + 90 * + ( - 42 )
----
-3780

query II rowsort
SELECT DISTINCT 13, + 52 * 41 * 9 + 10 col0
----
13
19198

onlyif mysql # aggregate syntax: 
query I rowsort label-8458
SELECT DISTINCT - 17 - - - MAX( - - 14 )
----
-31

skipif mysql # not compatible
query I rowsort label-8458
SELECT DISTINCT - 17 - - - MAX ( - - 14 )
----
-31

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8459
SELECT 18 DIV 32 * + COUNT( * ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-8459
SELECT 18 / 32 * + COUNT ( * ) AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8460
SELECT DISTINCT 61 * + CASE + MAX( DISTINCT + 88 ) WHEN + ( - 31 ) THEN - 17 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8460
SELECT DISTINCT 61 * + CASE + MAX ( DISTINCT + 88 ) WHEN + ( - 31 ) THEN - 17 END AS col0
----
NULL

query II rowsort
SELECT 17 AS col0, 14
----
17
14

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8462
SELECT ( - + NULLIF ( + 19, CAST( 84 AS SIGNED ) + 32 * 40 ) ) * - 93
----
1767

skipif mysql # not compatible
query I rowsort label-8462
SELECT ( - + NULLIF ( + 19, CAST ( 84 AS INTEGER ) + 32 * 40 ) ) * - 93
----
1767

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8463
SELECT DISTINCT - ( + COUNT( * ) ) * + 15 DIV + CAST( 52 DIV 12 AS SIGNED ) AS col0
----
-3

skipif mysql # not compatible
query I rowsort label-8463
SELECT DISTINCT - ( + COUNT ( * ) ) * + 15 / + CAST ( 52 / 12 AS INTEGER ) AS col0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-8464
SELECT ALL 88 * - COUNT( * )
----
-88

skipif mysql # not compatible
query I rowsort label-8464
SELECT ALL 88 * - COUNT ( * )
----
-88

query I rowsort
SELECT DISTINCT + 31 * - - CASE WHEN NOT ( + 28 ) IS NULL THEN + 10 + 40 ELSE NULL END
----
1550

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8466
SELECT CASE + 21 WHEN 96 + 68 * - 3 THEN NULL WHEN 69 + - 99 / + COUNT( * ) THEN - CAST( - 84 AS SIGNED ) ELSE NULL END * - 15 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8466
SELECT CASE + 21 WHEN 96 + 68 * - 3 THEN NULL WHEN 69 + - 99 / + COUNT ( * ) THEN - CAST ( - 84 AS INTEGER ) ELSE NULL END * - 15 AS col2
----
NULL

query I rowsort
SELECT 2 * - - 23 * + + 6
----
276

onlyif mysql # aggregate syntax: 
query I rowsort label-8468
SELECT ALL 45 * - + 33 + - + MIN( DISTINCT + 30 ) col2
----
-1515

skipif mysql # not compatible
query I rowsort label-8468
SELECT ALL 45 * - + 33 + - + MIN ( DISTINCT + 30 ) col2
----
-1515

onlyif mysql # aggregate syntax: 
query I rowsort label-8469
SELECT DISTINCT 50 * 39 * COUNT( * )
----
1950

skipif mysql # not compatible
query I rowsort label-8469
SELECT DISTINCT 50 * 39 * COUNT ( * )
----
1950

query I rowsort
SELECT 66 * 51
----
3366

query I rowsort
SELECT 56 + + - 99
----
-43

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8472
SELECT DISTINCT 90 + + CAST( NULL AS SIGNED ) + - 71 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8472
SELECT DISTINCT 90 + + CAST ( NULL AS INTEGER ) + - 71 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8473
SELECT 5 - ( - + COUNT( * ) ) * - 90 AS col0
----
-85

skipif mysql # not compatible
query I rowsort label-8473
SELECT 5 - ( - + COUNT ( * ) ) * - 90 AS col0
----
-85

query II rowsort
SELECT 46 AS col1, 27 * - 53
----
46
-1431

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8475
SELECT DISTINCT + 66 + + + COALESCE ( - - MAX( ALL - 5 ), - COALESCE ( - 34, ( 63 ) * - CASE + MIN( DISTINCT 60 ) + - CAST( 66 AS SIGNED ) WHEN + 23 - 97 DIV + MAX( ALL - 24 * 17 + ( 52 ) ) THEN - 22 + AVG ( + 43 ) DIV + 76 WHEN 49 - + ( 21 ) THEN NULL END, COUNT( * ) ), CASE + 33 WHEN - 25 * 17 THEN - 23 + COUNT( + 42 ) ELSE NULL END * + 38 ) * - 25 col0
----
191

skipif mysql # not compatible
query I rowsort label-8475
SELECT DISTINCT + 66 + + + COALESCE ( - - MAX ( ALL - 5 ), - COALESCE ( - 34, ( 63 ) * - CASE + MIN ( DISTINCT 60 ) + - CAST ( 66 AS INTEGER ) WHEN + 23 - 97 / + MAX ( ALL - 24 * 17 + ( 52 ) ) THEN - 22 + AVG ( + 43 ) / + 76 WHEN 49 - + ( 21 ) THEN NULL END, COUNT ( * ) ), CASE + 33 WHEN - 25 * 17 THEN - 23 + COUNT ( + 42 ) ELSE NULL END * + 38 ) * - 25 col0
----
191

query I rowsort
SELECT DISTINCT ( + + 94 ) * + + 27 * - - 40
----
101520

onlyif mysql # aggregate syntax: 
query I rowsort label-8477
SELECT ( ( - COALESCE ( 63, - COUNT( * ) ) ) ) + - 26 AS col2
----
-89

skipif mysql # not compatible
query I rowsort label-8477
SELECT ( ( - COALESCE ( 63, - COUNT ( * ) ) ) ) + - 26 AS col2
----
-89

query I rowsort
SELECT ALL + 75 * + + 94
----
7050

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8479
SELECT ALL + 48 - + 32 + + 57 + - - COUNT( 23 ) + + 17 * + CAST( NULL AS SIGNED ) * + 7 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8479
SELECT ALL + 48 - + 32 + + 57 + - - COUNT ( 23 ) + + 17 * + CAST ( NULL AS INTEGER ) * + 7 col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8480
SELECT 43 * - + MIN( ( 99 ) ) * COUNT( * )
----
-4257

skipif mysql # not compatible
query I rowsort label-8480
SELECT 43 * - + MIN ( ( 99 ) ) * COUNT ( * )
----
-4257

onlyif mysql # aggregate syntax: 
query I rowsort label-8481
SELECT SUM( ALL 60 ) * + 18 + + + 17 * 36
----
1692

skipif mysql # not compatible
query I rowsort label-8481
SELECT SUM ( ALL 60 ) * + 18 + + + 17 * 36
----
1692

query I rowsort
SELECT 52 + + ( 81 ) AS col2
----
133

onlyif mysql # aggregate syntax: 
query II rowsort label-8483
SELECT ALL MAX( DISTINCT - 70 ) AS col2, - NULLIF ( COALESCE ( 36, 23 * 17 ), + 86 ) AS col0
----
-70
-36

skipif mysql # not compatible
query II rowsort label-8483
SELECT ALL MAX ( DISTINCT - 70 ) AS col2, - NULLIF ( COALESCE ( 36, 23 * 17 ), + 86 ) AS col0
----
-70
-36

query I rowsort
SELECT 68 * 4
----
272

query I rowsort
SELECT ALL - 4 * - - 7
----
-28

query I rowsort
SELECT 48 + + - 60 AS col0
----
-12

query I rowsort
SELECT 58 + - 54 + + - 47
----
-43

query I rowsort
SELECT 67 * - + 51
----
-3417

onlyif mysql # aggregate syntax: 
query I rowsort label-8489
SELECT 33 - COUNT( * ) - - - 32 * - 91 AS col1
----
2944

skipif mysql # not compatible
query I rowsort label-8489
SELECT 33 - COUNT ( * ) - - - 32 * - 91 AS col1
----
2944

onlyif mysql # aggregate syntax: 
query I rowsort label-8490
SELECT DISTINCT + - COUNT( * ) * - + 50 * COUNT( * )
----
50

skipif mysql # not compatible
query I rowsort label-8490
SELECT DISTINCT + - COUNT ( * ) * - + 50 * COUNT ( * )
----
50

query I rowsort
SELECT - 46 + + 36 + + 82
----
72

query I rowsort
SELECT ALL + 2 * - 56 AS col0
----
-112

onlyif mysql # aggregate syntax: 
query II rowsort label-8493
SELECT - + MIN( ALL + 1 ) col1, - ( + MAX( ALL 53 ) ) * + 97
----
-1
-5141

skipif mysql # not compatible
query II rowsort label-8493
SELECT - + MIN ( ALL + 1 ) col1, - ( + MAX ( ALL 53 ) ) * + 97
----
-1
-5141

onlyif mysql # aggregate syntax: 
query I rowsort label-8494
SELECT SUM( - 25 ) + + + 74 col2
----
49

skipif mysql # not compatible
query I rowsort label-8494
SELECT SUM ( - 25 ) + + + 74 col2
----
49

onlyif mysql # aggregate syntax: 
query I rowsort label-8495
SELECT ALL MIN( ALL 57 ) col2
----
57

skipif mysql # not compatible
query I rowsort label-8495
SELECT ALL MIN ( ALL 57 ) col2
----
57

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8496
SELECT + 73 DIV + + COUNT( * ) + - 59
----
14

skipif mysql # not compatible
query I rowsort label-8496
SELECT + 73 / + + COUNT ( * ) + - 59
----
14

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8497
SELECT + 72 / + 11 + CASE - 91 WHEN - 46 THEN + CAST( + 44 AS SIGNED ) + 6 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-8497
SELECT + 72 / + 11 + CASE - 91 WHEN - 46 THEN + CAST ( + 44 AS INTEGER ) + 6 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8498
SELECT - COUNT( DISTINCT + - 92 ) * + + 47 + + 16 - 14 AS col1
----
-45

skipif mysql # not compatible
query I rowsort label-8498
SELECT - COUNT ( DISTINCT + - 92 ) * + + 47 + + 16 - 14 AS col1
----
-45

query I rowsort
SELECT ALL + + 83 * + 5 + 76 * + 59 AS col1
----
4899

query I rowsort
SELECT - + 72 + - - 63 * 28 AS col2
----
1692

onlyif mysql # DIV for integer division: 
query I rowsort label-8501
SELECT + 9 + - 32 + + + 47 DIV + + 93
----
-23

skipif mysql # not compatible
query I rowsort label-8501
SELECT + 9 + - 32 + + + 47 / + + 93
----
-23

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8502
SELECT ALL + + 51 * AVG ( - CAST( CAST( NULL AS DECIMAL ) AS SIGNED ) ) + + 41 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8502
SELECT ALL + + 51 * AVG ( - CAST ( CAST ( NULL AS REAL ) AS INTEGER ) ) + + 41 AS col1
----
NULL

query I rowsort
SELECT ALL - 73 * + - 96 + + - 5
----
7003

onlyif mysql # aggregate syntax: 
query I rowsort label-8504
SELECT DISTINCT - 37 * + - NULLIF ( + - COUNT( * ), 28 * COUNT( 6 ) ) - COUNT( * ) + SUM( ALL + 72 + + 38 )
----
72

skipif mysql # not compatible
query I rowsort label-8504
SELECT DISTINCT - 37 * + - NULLIF ( + - COUNT ( * ), 28 * COUNT ( 6 ) ) - COUNT ( * ) + SUM ( ALL + 72 + + 38 )
----
72

query I rowsort
SELECT ALL - 94 * - - 84
----
-7896

query I rowsort
SELECT ALL - 94 * + 43 + + 34 + + 65 AS col1
----
-3943

onlyif mysql # aggregate syntax: 
query I rowsort label-8507
SELECT + 89 + + MAX( ALL 82 ) AS col1
----
171

skipif mysql # not compatible
query I rowsort label-8507
SELECT + 89 + + MAX ( ALL 82 ) AS col1
----
171

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8508
SELECT ALL - COUNT( * ) * - 98 + + SUM( NULLIF ( 81, - NULLIF ( 26, + 7 + ( CAST( NULL AS DECIMAL ) + COALESCE ( 7, 21 + + 29 ) ) ) - - COALESCE ( 39, + 88 - - 20, - 71 + 38 * - 68 ) ) ) * 14 + 55 * 77 AS col1
----
5467

skipif mysql # not compatible
query I rowsort label-8508
SELECT ALL - COUNT ( * ) * - 98 + + SUM ( NULLIF ( 81, - NULLIF ( 26, + 7 + ( CAST ( NULL AS REAL ) + COALESCE ( 7, 21 + + 29 ) ) ) - - COALESCE ( 39, + 88 - - 20, - 71 + 38 * - 68 ) ) ) * 14 + 55 * 77 AS col1
----
5467

onlyif mysql # aggregate syntax: 
query I rowsort label-8509
SELECT ALL + 34 * - CASE 62 WHEN + + 65 + MIN( DISTINCT - 93 ) THEN + 65 WHEN + 47 / 29 THEN - ( COUNT( * ) ) ELSE SUM( + 87 ) * 40 END
----
-118320

skipif mysql # not compatible
query I rowsort label-8509
SELECT ALL + 34 * - CASE 62 WHEN + + 65 + MIN ( DISTINCT - 93 ) THEN + 65 WHEN + 47 / 29 THEN - ( COUNT ( * ) ) ELSE SUM ( + 87 ) * 40 END
----
-118320

onlyif mysql # aggregate syntax: 
query I rowsort label-8510
SELECT MAX( ALL + 71 ) col0
----
71

skipif mysql # not compatible
query I rowsort label-8510
SELECT MAX ( ALL + 71 ) col0
----
71

onlyif mysql # aggregate syntax: 
query II rowsort label-8511
SELECT DISTINCT - 48 * - 88 - + 57, + 73 + + COALESCE ( COUNT( * ), + 43 ) AS col1
----
4167
74

skipif mysql # not compatible
query II rowsort label-8511
SELECT DISTINCT - 48 * - 88 - + 57, + 73 + + COALESCE ( COUNT ( * ), + 43 ) AS col1
----
4167
74

query I rowsort
SELECT - 55 + - 1 AS col1
----
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-8513
SELECT MAX( - 86 )
----
-86

skipif mysql # not compatible
query I rowsort label-8513
SELECT MAX ( - 86 )
----
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-8514
SELECT + 84 + + + 7 + 98 - - COALESCE ( COUNT( 60 ), - NULLIF ( 71, 16 ) ) * 97
----
286

skipif mysql # not compatible
query I rowsort label-8514
SELECT + 84 + + + 7 + 98 - - COALESCE ( COUNT ( 60 ), - NULLIF ( 71, 16 ) ) * 97
----
286

query I rowsort
SELECT ALL + 44 * + 68 AS col1
----
2992

onlyif mysql # aggregate syntax: 
query I rowsort label-8516
SELECT ALL NULLIF ( 1, + 63 * - MAX( DISTINCT - 85 ) ) - - 95
----
96

skipif mysql # not compatible
query I rowsort label-8516
SELECT ALL NULLIF ( 1, + 63 * - MAX ( DISTINCT - 85 ) ) - - 95
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-8517
SELECT ALL MAX( 27 ) AS col1
----
27

skipif mysql # not compatible
query I rowsort label-8517
SELECT ALL MAX ( 27 ) AS col1
----
27

query I rowsort
SELECT ALL - 17 * + + 61 AS col0
----
-1037

query I rowsort
SELECT - 13 * + 88 AS col1
----
-1144

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8520
SELECT - 30 + - CASE 3 WHEN + CAST( - + 25 AS SIGNED ) THEN NULL WHEN - 72 THEN 73 ELSE 35 END
----
-65

skipif mysql # not compatible
query I rowsort label-8520
SELECT - 30 + - CASE 3 WHEN + CAST ( - + 25 AS INTEGER ) THEN NULL WHEN - 72 THEN 73 ELSE 35 END
----
-65

query II rowsort
SELECT 9 col0, + 98
----
9
98

onlyif mysql # aggregate syntax: 
query I rowsort label-8522
SELECT - CASE - 39 WHEN + 99 + - + COUNT( * ) / + - AVG ( 38 ) * 82 THEN NULL WHEN + 43 THEN + 40 * 27 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8522
SELECT - CASE - 39 WHEN + 99 + - + COUNT ( * ) / + - AVG ( 38 ) * 82 THEN NULL WHEN + 43 THEN + 40 * 27 END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8523
SELECT - ( + 72 ) + - 45 + - - ( + - COUNT( * ) ) * - ( ( - 89 ) ) col0
----
-206

skipif mysql # not compatible
query I rowsort label-8523
SELECT - ( + 72 ) + - 45 + - - ( + - COUNT ( * ) ) * - ( ( - 89 ) ) col0
----
-206

onlyif mysql # aggregate syntax: 
query I rowsort label-8524
SELECT - 82 + - MIN( + 85 )
----
-167

skipif mysql # not compatible
query I rowsort label-8524
SELECT - 82 + - MIN ( + 85 )
----
-167

query I rowsort
SELECT + CASE + 73 WHEN - 39 THEN - 97 + + 87 * 50 END * 55
----
NULL

query I rowsort
SELECT ALL 59 * - 1
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-8527
SELECT - + COUNT( * ) * - 18
----
18

skipif mysql # not compatible
query I rowsort label-8527
SELECT - + COUNT ( * ) * - 18
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-8528
SELECT ALL + 31 + COUNT( ALL - 9 ) AS col0
----
32

skipif mysql # not compatible
query I rowsort label-8528
SELECT ALL + 31 + COUNT ( ALL - 9 ) AS col0
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-8529
SELECT DISTINCT MIN( - 25 ) AS col1
----
-25

skipif mysql # not compatible
query I rowsort label-8529
SELECT DISTINCT MIN ( - 25 ) AS col1
----
-25

query I rowsort
SELECT - - 61 * ( + 68 )
----
4148

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8531
SELECT ALL + 50 + + + COUNT( - + 91 ), 81 - + CASE + CASE 11 WHEN 59 THEN NULL WHEN + 20 - COUNT( * ) THEN CAST( NULL AS SIGNED ) * + NULLIF ( COALESCE ( 69, 94 * 18, 68 + + 29 * - COALESCE ( 86 + - 60, - COUNT( * ) + + 37 ) ) * - CASE 64 * + CAST( 46 AS SIGNED ) WHEN - 76 * - COUNT( * ) THEN NULL ELSE 77 + COALESCE ( + 2, + 94 / 81 ) END, ( 18 ) + - 16 ) ELSE NULL END WHEN - COUNT( * ) THEN ( + 90 ) - 99 * - ( ( - 12 ) ) WHEN 60 THEN NULL END * 66 col2
----
51
NULL

skipif mysql # not compatible
query II rowsort label-8531
SELECT ALL + 50 + + + COUNT ( - + 91 ), 81 - + CASE + CASE 11 WHEN 59 THEN NULL WHEN + 20 - COUNT ( * ) THEN CAST ( NULL AS INTEGER ) * + NULLIF ( COALESCE ( 69, 94 * 18, 68 + + 29 * - COALESCE ( 86 + - 60, - COUNT ( * ) + + 37 ) ) * - CASE 64 * + CAST ( 46 AS INTEGER ) WHEN - 76 * - COUNT ( * ) THEN NULL ELSE 77 + COALESCE ( + 2, + 94 / 81 ) END, ( 18 ) + - 16 ) ELSE NULL END WHEN - COUNT ( * ) THEN ( + 90 ) - 99 * - ( ( - 12 ) ) WHEN 60 THEN NULL END * 66 col2
----
51
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8532
SELECT - 67 + + 61 + CAST( NULL AS SIGNED ) + + ( - - 20 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8532
SELECT - 67 + + 61 + CAST ( NULL AS INTEGER ) + + ( - - 20 )
----
NULL

query I rowsort
SELECT - 10 * - 29 + 0
----
290

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8534
SELECT ALL + - COALESCE ( + 15, + - CAST( - - 55 AS SIGNED ) ) + 58 * 73
----
4219

skipif mysql # not compatible
query I rowsort label-8534
SELECT ALL + - COALESCE ( + 15, + - CAST ( - - 55 AS INTEGER ) ) + 58 * 73
----
4219

onlyif mysql # aggregate syntax: 
query I rowsort label-8535
SELECT - MIN( - - ( 21 ) )
----
-21

skipif mysql # not compatible
query I rowsort label-8535
SELECT - MIN ( - - ( 21 ) )
----
-21

onlyif mysql # DIV for integer division: 
query I rowsort label-8536
SELECT ALL + 47 DIV + + 47 + + 81 AS col0
----
82

skipif mysql # not compatible
query I rowsort label-8536
SELECT ALL + 47 / + + 47 + + 81 AS col0
----
82

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8537
SELECT DISTINCT + - 10 DIV - ( - 54 ) + + + 71 + + + COUNT( DISTINCT 1 )
----
72

skipif mysql # not compatible
query I rowsort label-8537
SELECT DISTINCT + - 10 / - ( - 54 ) + + + 71 + + + COUNT ( DISTINCT 1 )
----
72

query II rowsort
SELECT + 75, - 14 AS col0
----
75
-14

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8539
SELECT ALL 53 DIV - + 34 * + COUNT( * ) - + 15 col0
----
-16

skipif mysql # not compatible
query I rowsort label-8539
SELECT ALL 53 / - + 34 * + COUNT ( * ) - + 15 col0
----
-16

query I rowsort
SELECT - 83 * - 65
----
5395

onlyif mysql # aggregate syntax: 
query I rowsort label-8541
SELECT 21 * + 38 + COUNT( * ) AS col0
----
799

skipif mysql # not compatible
query I rowsort label-8541
SELECT 21 * + 38 + COUNT ( * ) AS col0
----
799

onlyif mysql # DIV for integer division: 
query I rowsort label-8542
SELECT + 79 DIV - - 68 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-8542
SELECT + 79 / - - 68 AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8543
SELECT - 91 * NULLIF ( + MAX( DISTINCT 3 ), + - 99 ) AS col2
----
-273

skipif mysql # not compatible
query I rowsort label-8543
SELECT - 91 * NULLIF ( + MAX ( DISTINCT 3 ), + - 99 ) AS col2
----
-273

query II rowsort
SELECT + 96 * + 16 AS col0, + 2
----
1536
2

query I rowsort
SELECT + ( - 4 ) AS col1
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-8546
SELECT + MIN( ALL + - 87 ) AS col1
----
-87

skipif mysql # not compatible
query I rowsort label-8546
SELECT + MIN ( ALL + - 87 ) AS col1
----
-87

onlyif mysql # DIV for integer division: 
query I rowsort label-8547
SELECT DISTINCT - 58 DIV + 39 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-8547
SELECT DISTINCT - 58 / + 39 AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8548
SELECT - 43 - + - SUM( - 69 ) + + 93 - + + COUNT( * ) + + 1 * + 5 * 62 * 3 AS col0
----
910

skipif mysql # not compatible
query I rowsort label-8548
SELECT - 43 - + - SUM ( - 69 ) + + 93 - + + COUNT ( * ) + + 1 * + 5 * 62 * 3 AS col0
----
910

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8549
SELECT ALL - COALESCE ( 23, COUNT( * ) ) / + CAST( NULL AS SIGNED ) * + + 49 * COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-8549
SELECT ALL - COALESCE ( 23, COUNT ( * ) ) / + CAST ( NULL AS INTEGER ) * + + 49 * COUNT ( * )
----
NULL

query I rowsort
SELECT + 60 * - + COALESCE ( 70, + ( 69 ) ) * + - 31
----
130200

onlyif mysql # aggregate syntax: 
query I rowsort label-8551
SELECT + 68 * + - 14 * + - COUNT( * ) + + 82 AS col0
----
1034

skipif mysql # not compatible
query I rowsort label-8551
SELECT + 68 * + - 14 * + - COUNT ( * ) + + 82 AS col0
----
1034

onlyif mysql # DIV for integer division: 
query II rowsort label-8552
SELECT ALL + 42, 13 DIV 64 + + - 46 col0
----
42
-46

skipif mysql # not compatible
query II rowsort label-8552
SELECT ALL + 42, 13 / 64 + + - 46 col0
----
42
-46

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8553
SELECT + COUNT( * ) DIV + CAST( - 59 AS SIGNED ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-8553
SELECT + COUNT ( * ) / + CAST ( - 59 AS INTEGER ) AS col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8554
SELECT - 25 * - - 7 * + NULLIF ( - - SUM( CAST( + ( + 88 ) AS SIGNED ) ), + 0 ) * 44
----
-677600

skipif mysql # not compatible
query I rowsort label-8554
SELECT - 25 * - - 7 * + NULLIF ( - - SUM ( CAST ( + ( + 88 ) AS INTEGER ) ), + 0 ) * 44
----
-677600

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8555
SELECT CASE - 56 WHEN + - 93 * + CAST( - 85 AS SIGNED ) + + 41 + ( CAST( NULL AS DECIMAL ) ) * - 79 THEN NULL WHEN + 16 THEN NULL WHEN 42 THEN NULL ELSE + 25 + 38 END AS col2
----
63

skipif mysql # not compatible
query I rowsort label-8555
SELECT CASE - 56 WHEN + - 93 * + CAST ( - 85 AS INTEGER ) + + 41 + ( CAST ( NULL AS REAL ) ) * - 79 THEN NULL WHEN + 16 THEN NULL WHEN 42 THEN NULL ELSE + 25 + 38 END AS col2
----
63

query II rowsort
SELECT - 1 * + 18 * - 13 * + 17, 34 col0
----
3978
34

onlyif mysql # aggregate syntax: 
query II rowsort label-8557
SELECT ALL 58, MIN( - - 29 ) * MIN( ALL + 12 ) AS col0
----
58
348

skipif mysql # not compatible
query II rowsort label-8557
SELECT ALL 58, MIN ( - - 29 ) * MIN ( ALL + 12 ) AS col0
----
58
348

query I rowsort
SELECT CASE - 89 WHEN - 70 + 76 + - 90 THEN + + COALESCE ( 16, ( 91 ) * 60 + - NULLIF ( 14, 24 ) ) * 79 END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8559
SELECT CASE - + 7 WHEN COUNT( * ) THEN NULL ELSE + - COUNT( * ) * + 1 END
----
-1

skipif mysql # not compatible
query I rowsort label-8559
SELECT CASE - + 7 WHEN COUNT ( * ) THEN NULL ELSE + - COUNT ( * ) * + 1 END
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8560
SELECT DISTINCT MIN( CASE + 36 WHEN 48 + 63 THEN + + 45 ELSE NULL END ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8560
SELECT DISTINCT MIN ( CASE + 36 WHEN 48 + 63 THEN + + 45 ELSE NULL END ) AS col1
----
NULL

query I rowsort
SELECT ALL 80 * + 24 + - 17 * 55 - - 53 AS col1
----
1038

query I rowsort
SELECT + 71 * + + 65
----
4615

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8563
SELECT ALL COUNT( * ) * + CAST( NULL AS SIGNED ) + 61
----
NULL

skipif mysql # not compatible
query I rowsort label-8563
SELECT ALL COUNT ( * ) * + CAST ( NULL AS INTEGER ) + 61
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8564
SELECT ALL 68, + 52 * + 78 + 0 * COUNT( * ) DIV + - COUNT( * ) AS col0
----
68
4056

skipif mysql # not compatible
query II rowsort label-8564
SELECT ALL 68, + 52 * + 78 + 0 * COUNT ( * ) / + - COUNT ( * ) AS col0
----
68
4056

onlyif mysql # aggregate syntax: 
query I rowsort label-8565
SELECT ALL + 45 * 7 * + 33 + + + 94 + + COUNT( * ) AS col2
----
10490

skipif mysql # not compatible
query I rowsort label-8565
SELECT ALL + 45 * 7 * + 33 + + + 94 + + COUNT ( * ) AS col2
----
10490

onlyif mysql # aggregate syntax: 
query IIII rowsort label-8566
SELECT DISTINCT + COUNT( * ) AS col1, - 90 AS col0, - - 60 * - COUNT( * ) AS col0, - + 34 AS col1
----
1
-90
-60
-34

skipif mysql # not compatible
query IIII rowsort label-8566
SELECT DISTINCT + COUNT ( * ) AS col1, - 90 AS col0, - - 60 * - COUNT ( * ) AS col0, - + 34 AS col1
----
1
-90
-60
-34

query II rowsort
SELECT ALL - 11 AS col0, - 91 + 92
----
-11
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8568
SELECT ALL COUNT( * ) + - 96
----
-95

skipif mysql # not compatible
query I rowsort label-8568
SELECT ALL COUNT ( * ) + - 96
----
-95

onlyif mysql # aggregate syntax: 
query II rowsort label-8569
SELECT 42 + - - 81, COUNT( * ) AS col0
----
123
1

skipif mysql # not compatible
query II rowsort label-8569
SELECT 42 + - - 81, COUNT ( * ) AS col0
----
123
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8570
SELECT - COUNT( DISTINCT - + CAST( NULL AS SIGNED ) ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-8570
SELECT - COUNT ( DISTINCT - + CAST ( NULL AS INTEGER ) ) AS col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8571
SELECT - CAST( - - COUNT( * ) AS SIGNED ) + - 67 * - 9
----
602

skipif mysql # not compatible
query I rowsort label-8571
SELECT - CAST ( - - COUNT ( * ) AS INTEGER ) + - 67 * - 9
----
602

onlyif mysql # aggregate syntax: 
query I rowsort label-8572
SELECT 31 * - - MIN( - 18 ) * - 13 - + - 20 AS col0
----
7274

skipif mysql # not compatible
query I rowsort label-8572
SELECT 31 * - - MIN ( - 18 ) * - 13 - + - 20 AS col0
----
7274

query I rowsort
SELECT 18 * 11 * - + 97 AS col2
----
-19206

query I rowsort
SELECT + NULLIF ( + + 53, + 0 ) + + 43 + + 51 AS col2
----
147

onlyif mysql # aggregate syntax: 
query I rowsort label-8575
SELECT COUNT( 40 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-8575
SELECT COUNT ( 40 ) AS col1
----
1

query I rowsort
SELECT DISTINCT 96 + 93
----
189

query I rowsort
SELECT + COALESCE ( - + 5, - - 85, + 10, 59 ) + - 91 + - 65 * ( - 90 )
----
5754

query II rowsort
SELECT - - 88 col2, CASE - 93 WHEN + 74 THEN ( + + ( 96 ) ) ELSE NULL END AS col1
----
88
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8579
SELECT - - 49 AS col0, 56 + + COUNT( * )
----
49
57

skipif mysql # not compatible
query II rowsort label-8579
SELECT - - 49 AS col0, 56 + + COUNT ( * )
----
49
57

onlyif mysql # DIV for integer division: 
query I rowsort label-8580
SELECT 28 DIV 60 + + 29 col0
----
29

skipif mysql # not compatible
query I rowsort label-8580
SELECT 28 / 60 + + 29 col0
----
29

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8581
SELECT ( - + 92 ) * + COUNT( * ) + ( - + 49 ) + + 58 DIV + 87
----
-141

skipif mysql # not compatible
query I rowsort label-8581
SELECT ( - + 92 ) * + COUNT ( * ) + ( - + 49 ) + + 58 / + 87
----
-141

onlyif mysql # aggregate syntax: 
query I rowsort label-8582
SELECT ALL + + 21 - - SUM( DISTINCT - + 14 ) * + - 32 * - + 40 AS col1
----
-17899

skipif mysql # not compatible
query I rowsort label-8582
SELECT ALL + + 21 - - SUM ( DISTINCT - + 14 ) * + - 32 * - + 40 AS col1
----
-17899

onlyif mysql # aggregate syntax: 
query I rowsort label-8583
SELECT 72 + - - 52 * - COUNT( * ) AS col0
----
20

skipif mysql # not compatible
query I rowsort label-8583
SELECT 72 + - - 52 * - COUNT ( * ) AS col0
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-8584
SELECT COUNT( * ) * - 4 + 25
----
21

skipif mysql # not compatible
query I rowsort label-8584
SELECT COUNT ( * ) * - 4 + 25
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-8585
SELECT ALL - 44 * COUNT( * ) * + - CASE - 70 WHEN + 20 THEN + - 22 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8585
SELECT ALL - 44 * COUNT ( * ) * + - CASE - 70 WHEN + 20 THEN + - 22 END AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8586
SELECT DISTINCT - CAST( + + 63 AS SIGNED ) * 27 * + 6 * + 63 + - - 94
----
-642884

skipif mysql # not compatible
query I rowsort label-8586
SELECT DISTINCT - CAST ( + + 63 AS INTEGER ) * 27 * + 6 * + 63 + - - 94
----
-642884

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8587
SELECT DISTINCT - COALESCE ( + 90, 49 + - + 51 + + ( + - CAST( NULL AS SIGNED ) ) * + 91 ) AS col1
----
-90

skipif mysql # not compatible
query I rowsort label-8587
SELECT DISTINCT - COALESCE ( + 90, 49 + - + 51 + + ( + - CAST ( NULL AS INTEGER ) ) * + 91 ) AS col1
----
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-8588
SELECT ALL - 44 * - 35 * COUNT( * ) col0
----
1540

skipif mysql # not compatible
query I rowsort label-8588
SELECT ALL - 44 * - 35 * COUNT ( * ) col0
----
1540

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8589
SELECT CAST( - 14 AS SIGNED ) * COUNT( + + CAST( - NULLIF ( + 38, 70 - 28 ) AS SIGNED ) ) + - 11 + - 39
----
-64

skipif mysql # not compatible
query I rowsort label-8589
SELECT CAST ( - 14 AS INTEGER ) * COUNT ( + + CAST ( - NULLIF ( + 38, 70 - 28 ) AS INTEGER ) ) + - 11 + - 39
----
-64

query I rowsort
SELECT 58 * 83 * - - 19
----
91466

query I rowsort
SELECT 94 * 55 AS col0
----
5170

onlyif mysql # aggregate syntax: 
query I rowsort label-8592
SELECT ( + + COUNT( - 16 ) ) * - CASE - 46 WHEN - 42 THEN NULL WHEN + SUM( DISTINCT 48 ) THEN MIN( 41 ) ELSE NULL END + 39
----
NULL

skipif mysql # not compatible
query I rowsort label-8592
SELECT ( + + COUNT ( - 16 ) ) * - CASE - 46 WHEN - 42 THEN NULL WHEN + SUM ( DISTINCT 48 ) THEN MIN ( 41 ) ELSE NULL END + 39
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8593
SELECT ALL COUNT( + 14 ) + + + 42 + + 0 * + - 51 * - SUM( - 22 ) AS col1
----
43

skipif mysql # not compatible
query I rowsort label-8593
SELECT ALL COUNT ( + 14 ) + + + 42 + + 0 * + - 51 * - SUM ( - 22 ) AS col1
----
43

query I rowsort
SELECT 83 + 93 AS col1
----
176

onlyif mysql # aggregate syntax: 
query I rowsort label-8595
SELECT DISTINCT + 9 + - COUNT( * ) + + 86 * + 68 + - 94
----
5762

skipif mysql # not compatible
query I rowsort label-8595
SELECT DISTINCT + 9 + - COUNT ( * ) + + 86 * + 68 + - 94
----
5762

query I rowsort
SELECT DISTINCT + 0 + NULLIF ( - 28, + 38 ) - - - 33 * - 50 * - 90
----
-148528

query II rowsort
SELECT DISTINCT 59 + 1 AS col1, - 92 * + + 47 * + + ( - 23 ) * + 39
----
60
3878628

onlyif mysql # aggregate syntax: 
query II rowsort label-8598
SELECT ALL + 82 + COUNT( * ) AS col0, 52 - - + ( - 63 ) * + - ( - 89 ) * - COUNT( * ) AS col2
----
83
5659

skipif mysql # not compatible
query II rowsort label-8598
SELECT ALL + 82 + COUNT ( * ) AS col0, 52 - - + ( - 63 ) * + - ( - 89 ) * - COUNT ( * ) AS col2
----
83
5659

onlyif mysql # aggregate syntax: 
query II rowsort label-8599
SELECT DISTINCT - COUNT( * ) + + ( - - 6 ) + - 11 * + 12 AS col1, + ( + - 80 ) * 60
----
-127
-4800

skipif mysql # not compatible
query II rowsort label-8599
SELECT DISTINCT - COUNT ( * ) + + ( - - 6 ) + - 11 * + 12 AS col1, + ( + - 80 ) * 60
----
-127
-4800

query I rowsort
SELECT + 65 * 34 * 12 + + 49 + - - 60
----
26629

query I rowsort
SELECT 54 + + 49
----
103

onlyif mysql # aggregate syntax: 
query I rowsort label-8602
SELECT DISTINCT - 23 + MIN( + - 91 )
----
-114

skipif mysql # not compatible
query I rowsort label-8602
SELECT DISTINCT - 23 + MIN ( + - 91 )
----
-114

onlyif mysql # aggregate syntax: 
query II rowsort label-8603
SELECT - - SUM( DISTINCT - + 42 ) AS col2, 25 AS col0
----
-42
25

skipif mysql # not compatible
query II rowsort label-8603
SELECT - - SUM ( DISTINCT - + 42 ) AS col2, 25 AS col0
----
-42
25

query I rowsort
SELECT + 49 + + 84 AS col1
----
133

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8605
SELECT 46 + 67 * 46 DIV - COUNT( * ) + - + 37
----
-3073

skipif mysql # not compatible
query I rowsort label-8605
SELECT 46 + 67 * 46 / - COUNT ( * ) + - + 37
----
-3073

query I rowsort
SELECT 33 * + 68 + - 28
----
2216

onlyif mysql # aggregate syntax: 
query I rowsort label-8607
SELECT DISTINCT 16 - - - COUNT( * )
----
15

skipif mysql # not compatible
query I rowsort label-8607
SELECT DISTINCT 16 - - - COUNT ( * )
----
15

onlyif mysql # aggregate syntax: 
query II rowsort label-8608
SELECT ALL + COUNT( * ) * - - 8 AS col2, 91 * + + 78
----
8
7098

skipif mysql # not compatible
query II rowsort label-8608
SELECT ALL + COUNT ( * ) * - - 8 AS col2, 91 * + + 78
----
8
7098

onlyif mysql # aggregate syntax: 
query I rowsort label-8609
SELECT DISTINCT - 13 * COUNT( * ) AS col1
----
-13

skipif mysql # not compatible
query I rowsort label-8609
SELECT DISTINCT - 13 * COUNT ( * ) AS col1
----
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-8610
SELECT + ( - 43 ) * + 80 + + COUNT( * )
----
-3439

skipif mysql # not compatible
query I rowsort label-8610
SELECT + ( - 43 ) * + 80 + + COUNT ( * )
----
-3439

query II rowsort
SELECT - + ( + - 51 ) AS col2, 89 * - 91
----
51
-8099

query I rowsort
SELECT ALL 1 * + NULLIF ( - 52, + 30 / + 59 ) col0
----
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-8613
SELECT MAX( ALL + 93 ) AS col1
----
93

skipif mysql # not compatible
query I rowsort label-8613
SELECT MAX ( ALL + 93 ) AS col1
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-8614
SELECT MAX( DISTINCT + ( 28 ) ) AS col0
----
28

skipif mysql # not compatible
query I rowsort label-8614
SELECT MAX ( DISTINCT + ( 28 ) ) AS col0
----
28

onlyif mysql # DIV for integer division: 
query I rowsort label-8615
SELECT ALL + 85 DIV - 25
----
-3

skipif mysql # not compatible
query I rowsort label-8615
SELECT ALL + 85 / - 25
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8616
SELECT 68 / - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8616
SELECT 68 / - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8617
SELECT DISTINCT 61 DIV COUNT( ALL + 47 ) AS col0
----
61

skipif mysql # not compatible
query I rowsort label-8617
SELECT DISTINCT 61 / COUNT ( ALL + 47 ) AS col0
----
61

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-8618
SELECT COUNT( * ) * AVG ( ALL + CAST( NULL AS DECIMAL ) ), + 7 * - 50 AS col2
----
NULL
-350

skipif mysql # not compatible
query II rowsort label-8618
SELECT COUNT ( * ) * AVG ( ALL + CAST ( NULL AS REAL ) ), + 7 * - 50 AS col2
----
NULL
-350

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8619
SELECT CAST( + 20 AS SIGNED ) DIV 70
----
0

skipif mysql # not compatible
query I rowsort label-8619
SELECT CAST ( + 20 AS INTEGER ) / 70
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8620
SELECT + 10 DIV + 24 + + 82 AS col2
----
82

skipif mysql # not compatible
query I rowsort label-8620
SELECT + 10 / + 24 + + 82 AS col2
----
82

onlyif mysql # aggregate syntax: 
query II rowsort label-8621
SELECT COUNT( * ), 75 - + 64 AS col2
----
1
11

skipif mysql # not compatible
query II rowsort label-8621
SELECT COUNT ( * ), 75 - + 64 AS col2
----
1
11

query I rowsort
SELECT 3 * + + 33
----
99

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8623
SELECT DISTINCT 53 * CAST( NULL AS DECIMAL ) * - 27 + + + 85 * - 57 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8623
SELECT DISTINCT 53 * CAST ( NULL AS REAL ) * - 27 + + + 85 * - 57 AS col2
----
NULL

query II rowsort
SELECT + 3 AS col1, 12 - + 18
----
3
-6

query I rowsort
SELECT 87 - 73
----
14

query I rowsort
SELECT ALL 36 * 3
----
108

query II rowsort
SELECT ALL - 38, - 51 AS col2
----
-38
-51

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8628
SELECT ALL + MIN( ( - + 60 ) ) + 89 + 29 - + COUNT( * ) DIV + - 13
----
58

skipif mysql # not compatible
query I rowsort label-8628
SELECT ALL + MIN ( ( - + 60 ) ) + 89 + 29 - + COUNT ( * ) / + - 13
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-8629
SELECT + CASE COALESCE ( + - 17, + 76, 52 + + + COALESCE ( - - 2, + + 53 ) ) WHEN 44 * - ( 4 ) - 80 THEN ( - COUNT( * ) ) + ( - 45 + COUNT( * ) * - COALESCE ( + 26 * + 68, 68 ) ) ELSE NULL END + 45 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8629
SELECT + CASE COALESCE ( + - 17, + 76, 52 + + + COALESCE ( - - 2, + + 53 ) ) WHEN 44 * - ( 4 ) - 80 THEN ( - COUNT ( * ) ) + ( - 45 + COUNT ( * ) * - COALESCE ( + 26 * + 68, 68 ) ) ELSE NULL END + 45 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8630
SELECT - 17 * - COUNT( ALL - 71 )
----
17

skipif mysql # not compatible
query I rowsort label-8630
SELECT - 17 * - COUNT ( ALL - 71 )
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-8631
SELECT DISTINCT + 78 + + - ( - 41 ) + COUNT( * ) col1
----
120

skipif mysql # not compatible
query I rowsort label-8631
SELECT DISTINCT + 78 + + - ( - 41 ) + COUNT ( * ) col1
----
120

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8632
SELECT ALL + CAST( - - 36 AS SIGNED ) AS col0
----
36

skipif mysql # not compatible
query I rowsort label-8632
SELECT ALL + CAST ( - - 36 AS INTEGER ) AS col0
----
36

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8633
SELECT - - COUNT( * ) - + ( + + 73 ) - - ( CAST( NULL AS SIGNED ) ) * + + 19
----
NULL

skipif mysql # not compatible
query I rowsort label-8633
SELECT - - COUNT ( * ) - + ( + + 73 ) - - ( CAST ( NULL AS INTEGER ) ) * + + 19
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8634
SELECT ALL + + 22 DIV 95 DIV - 66 * NULLIF ( + 2, + COUNT( * ) DIV 88 + + 65 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-8634
SELECT ALL + + 22 / 95 / - 66 * NULLIF ( + 2, + COUNT ( * ) / 88 + + 65 ) AS col1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8635
SELECT - 86 DIV - - 59 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-8635
SELECT - 86 / - - 59 AS col2
----
-1

query I rowsort
SELECT DISTINCT + 91 - + 60 + + 32 + 97 - - COALESCE ( - - 52, 77 )
----
212

query I rowsort
SELECT DISTINCT 34 * + - 37 + + ( + + ( + 69 ) ) AS col1
----
-1189

query I rowsort
SELECT DISTINCT + NULLIF ( - 15, 40 * 44 + - 42 + 67 ) AS col0
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-8639
SELECT COUNT( ALL - 95 )
----
1

skipif mysql # not compatible
query I rowsort label-8639
SELECT COUNT ( ALL - 95 )
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8640
SELECT ALL + COUNT( * ) DIV 39
----
0

skipif mysql # not compatible
query I rowsort label-8640
SELECT ALL + COUNT ( * ) / 39
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8641
SELECT ALL 32 AS col1, CASE CAST( + 6 AS SIGNED ) WHEN - 74 + 82 THEN NULL WHEN - - 30 THEN MAX( DISTINCT 29 ) ELSE 23 + + 5 END + 65
----
32
93

skipif mysql # not compatible
query II rowsort label-8641
SELECT ALL 32 AS col1, CASE CAST ( + 6 AS INTEGER ) WHEN - 74 + 82 THEN NULL WHEN - - 30 THEN MAX ( DISTINCT 29 ) ELSE 23 + + 5 END + 65
----
32
93

query I rowsort
SELECT DISTINCT + + 80 * - 33 AS col0
----
-2640

query I rowsort
SELECT DISTINCT - - 17 * + ( + + 5 ) * 2 AS col0
----
170

query I rowsort
SELECT - - ( ( 19 ) ) + + 86 AS col2
----
105

query I rowsort
SELECT ALL - 76 - - + 11 col0
----
-65

query I rowsort
SELECT - COALESCE ( + - 32, 17 * 6 ) * + 13
----
416

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8647
SELECT DISTINCT 22, + ( - COALESCE ( NULLIF ( + + CAST( NULL AS SIGNED ), + 5 ), - - 79 ) ) * + 63 * - 69 AS col0
----
22
343413

skipif mysql # not compatible
query II rowsort label-8647
SELECT DISTINCT 22, + ( - COALESCE ( NULLIF ( + + CAST ( NULL AS INTEGER ), + 5 ), - - 79 ) ) * + 63 * - 69 AS col0
----
22
343413

onlyif mysql # aggregate syntax: 
query I rowsort label-8648
SELECT - NULLIF ( + 2, + ( - 55 ) + + COUNT( * ) + - + 54 + - ( - + 79 ) * - COUNT( * ) ) + 2 col1
----
0

skipif mysql # not compatible
query I rowsort label-8648
SELECT - NULLIF ( + 2, + ( - 55 ) + + COUNT ( * ) + - + 54 + - ( - + 79 ) * - COUNT ( * ) ) + 2 col1
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-8649
SELECT ALL - COUNT( * ) AS col1, - 14 AS col0
----
-1
-14

skipif mysql # not compatible
query II rowsort label-8649
SELECT ALL - COUNT ( * ) AS col1, - 14 AS col0
----
-1
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-8650
SELECT + + SUM( - 38 ) + - 15 * - 40 AS col2
----
562

skipif mysql # not compatible
query I rowsort label-8650
SELECT + + SUM ( - 38 ) + - 15 * - 40 AS col2
----
562

onlyif mysql # aggregate syntax: 
query I rowsort label-8651
SELECT DISTINCT 91 * - + COUNT( * ) AS col2
----
-91

skipif mysql # not compatible
query I rowsort label-8651
SELECT DISTINCT 91 * - + COUNT ( * ) AS col2
----
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-8652
SELECT ALL 2 + CASE + 39 WHEN - ( + 77 ) THEN NULL WHEN ( - COALESCE ( + COALESCE ( - 90, - 93 * - 2, COALESCE ( 80, + CASE - 56 WHEN + 69 - - 88 THEN + AVG ( 95 ) ELSE NULL END ), - 30 ), + 98 * COUNT( * ) ) ) THEN ( - 41 ) + NULLIF ( + 54, - 49 / - 82 ) END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8652
SELECT ALL 2 + CASE + 39 WHEN - ( + 77 ) THEN NULL WHEN ( - COALESCE ( + COALESCE ( - 90, - 93 * - 2, COALESCE ( 80, + CASE - 56 WHEN + 69 - - 88 THEN + AVG ( 95 ) ELSE NULL END ), - 30 ), + 98 * COUNT ( * ) ) ) THEN ( - 41 ) + NULLIF ( + 54, - 49 / - 82 ) END col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8653
SELECT - MIN( + - 87 )
----
87

skipif mysql # not compatible
query I rowsort label-8653
SELECT - MIN ( + - 87 )
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-8654
SELECT ALL 20 * + SUM( ALL + 67 ) AS col0
----
1340

skipif mysql # not compatible
query I rowsort label-8654
SELECT ALL 20 * + SUM ( ALL + 67 ) AS col0
----
1340

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8655
SELECT CAST( - - 79 AS SIGNED ) * COUNT( * ) + + 41 + - MAX( ALL 48 ) - - 90 * + SUM( ALL 29 )
----
2682

skipif mysql # not compatible
query I rowsort label-8655
SELECT CAST ( - - 79 AS INTEGER ) * COUNT ( * ) + + 41 + - MAX ( ALL 48 ) - - 90 * + SUM ( ALL 29 )
----
2682

query I rowsort
SELECT DISTINCT 55 * + - ( + 89 )
----
-4895

onlyif mysql # aggregate syntax: 
query I rowsort label-8657
SELECT ALL 24 * - 74 * + CASE + - 98 WHEN - + COUNT( * ) / - - 29 * + 55 THEN + 48 WHEN 26 * 35 THEN NULLIF ( COUNT( * ), 19 ) * - 5 + + 57 * ( + COUNT( * ) ) END + - 51 * COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-8657
SELECT ALL 24 * - 74 * + CASE + - 98 WHEN - + COUNT ( * ) / - - 29 * + 55 THEN + 48 WHEN 26 * 35 THEN NULLIF ( COUNT ( * ), 19 ) * - 5 + + 57 * ( + COUNT ( * ) ) END + - 51 * COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8658
SELECT MAX( - 99 ) * + 69 + - + 97
----
-6928

skipif mysql # not compatible
query I rowsort label-8658
SELECT MAX ( - 99 ) * + 69 + - + 97
----
-6928

query II rowsort
SELECT + ( + 86 ) AS col2, - 30 * - - 31
----
86
-930

query I rowsort
SELECT DISTINCT CASE - 76 WHEN - + 33 THEN - - 40 WHEN - + 82 THEN 23 END * + 88 + + - 77 * + 61
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8661
SELECT ALL 61 * 32 DIV 80 * - - COUNT( * ) + + + 65 + - 99 AS col0
----
-10

skipif mysql # not compatible
query I rowsort label-8661
SELECT ALL 61 * 32 / 80 * - - COUNT ( * ) + + + 65 + - 99 AS col0
----
-10

query II rowsort
SELECT ( - 7 ), + 85 col1
----
-7
85

onlyif mysql # aggregate syntax: 
query I rowsort label-8663
SELECT DISTINCT - 63 * - MAX( - + 52 ) * 81 * + + SUM( - + 0 ) + + 56 + 17 + AVG ( - 15 ) + + CASE + 26 + - ( + 54 ) WHEN - MIN( - 98 ) * + 56 THEN 52 - + 47 END
----
NULL

skipif mysql # not compatible
query I rowsort label-8663
SELECT DISTINCT - 63 * - MAX ( - + 52 ) * 81 * + + SUM ( - + 0 ) + + 56 + 17 + AVG ( - 15 ) + + CASE + 26 + - ( + 54 ) WHEN - MIN ( - 98 ) * + 56 THEN 52 - + 47 END
----
NULL

query I rowsort
SELECT + 94 * COALESCE ( + 67, 56 ) AS col0
----
6298

query I rowsort
SELECT - 0 * + + 92 AS col0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8666
SELECT ALL 6 DIV - - 89 * - 70 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-8666
SELECT ALL 6 / - - 89 * - 70 AS col2
----
0

query I rowsort
SELECT - 98 * - NULLIF ( - 64, - 83 ) + - - 40 * 11 col2
----
-5832

onlyif mysql # aggregate syntax: 
query I rowsort label-8668
SELECT ALL + COUNT( ALL - 85 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-8668
SELECT ALL + COUNT ( ALL - 85 ) AS col2
----
1

query I rowsort
SELECT + ( + - 25 ) AS col2
----
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-8670
SELECT COALESCE ( + COUNT( ALL + - 7 ), 90 * + 17 + - 12 ) col1
----
1

skipif mysql # not compatible
query I rowsort label-8670
SELECT COALESCE ( + COUNT ( ALL + - 7 ), 90 * + 17 + - 12 ) col1
----
1

query I rowsort
SELECT ( + - 52 )
----
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-8672
SELECT ALL + COALESCE ( COUNT( * ), - 55 * - NULLIF ( + ( 37 ), - ( MAX( 48 ) ) ) * 8, + 41 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-8672
SELECT ALL + COALESCE ( COUNT ( * ), - 55 * - NULLIF ( + ( 37 ), - ( MAX ( 48 ) ) ) * 8, + 41 ) AS col2
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8673
SELECT - + 2 * - NULLIF ( + 72, 95 ) + CAST( NULL AS SIGNED ) - - - 64 - - - COALESCE ( - ( 13 ), - 47, 78, 63 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8673
SELECT - + 2 * - NULLIF ( + 72, 95 ) + CAST ( NULL AS INTEGER ) - - - 64 - - - COALESCE ( - ( 13 ), - 47, 78, 63 ) AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8674
SELECT - CAST( NULL AS SIGNED ) + + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8674
SELECT - CAST ( NULL AS INTEGER ) + + CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT - 77 * NULLIF ( + - 79, - 3 ) AS col0
----
6083

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8676
SELECT DISTINCT - 97 DIV + - COUNT( ALL 90 )
----
97

skipif mysql # not compatible
query I rowsort label-8676
SELECT DISTINCT - 97 / + - COUNT ( ALL 90 )
----
97

query I rowsort
SELECT DISTINCT + - 73 + ( 85 )
----
12

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8678
SELECT ALL - + COUNT( * ) * CAST( NULL AS SIGNED ), 30 AS col1
----
NULL
30

skipif mysql # not compatible
query II rowsort label-8678
SELECT ALL - + COUNT ( * ) * CAST ( NULL AS INTEGER ), 30 AS col1
----
NULL
30

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8679
SELECT DISTINCT - CAST( + AVG ( ALL + - 11 ) AS SIGNED ) + - + 83 col2, 33 AS col1
----
-72
33

skipif mysql # not compatible
query II rowsort label-8679
SELECT DISTINCT - CAST ( + AVG ( ALL + - 11 ) AS INTEGER ) + - + 83 col2, 33 AS col1
----
-72
33

query I rowsort
SELECT ALL + 94 + - + ( 80 )
----
14

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8681
SELECT DISTINCT - 36 * + + 65 * - - ( COALESCE ( COALESCE ( - + 86, + 21 + + COALESCE ( ( 65 ), - 71, 24 + CAST( NULL AS SIGNED ), 40 ) ), - COUNT( * ) * + 34, + 96 * 91 ) ) AS col2
----
201240

skipif mysql # not compatible
query I rowsort label-8681
SELECT DISTINCT - 36 * + + 65 * - - ( COALESCE ( COALESCE ( - + 86, + 21 + + COALESCE ( ( 65 ), - 71, 24 + CAST ( NULL AS INTEGER ), 40 ) ), - COUNT ( * ) * + 34, + 96 * 91 ) ) AS col2
----
201240

onlyif mysql # DIV for integer division: 
query I rowsort label-8682
SELECT - + 25 DIV + 21 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-8682
SELECT - + 25 / + 21 AS col1
----
-1

query I rowsort
SELECT - 8 * - 13 col0
----
104

onlyif mysql # aggregate syntax: 
query I rowsort label-8684
SELECT - COALESCE ( - COUNT( * ), + + 51, + + 4 )
----
1

skipif mysql # not compatible
query I rowsort label-8684
SELECT - COALESCE ( - COUNT ( * ), + + 51, + + 4 )
----
1

query I rowsort
SELECT ALL - 85 * 48 AS col1
----
-4080

query I rowsort
SELECT ALL + 31 + - 93
----
-62

onlyif mysql # DIV for integer division: 
query I rowsort label-8687
SELECT - 61 DIV + 20 AS col0
----
-3

skipif mysql # not compatible
query I rowsort label-8687
SELECT - 61 / + 20 AS col0
----
-3

query I rowsort
SELECT - 78 * 57
----
-4446

query I rowsort
SELECT DISTINCT 7 + - 85
----
-78

onlyif mysql # DIV for integer division: 
query I rowsort label-8690
SELECT DISTINCT 14 DIV 57 + - - 56
----
56

skipif mysql # not compatible
query I rowsort label-8690
SELECT DISTINCT 14 / 57 + - - 56
----
56

query I rowsort
SELECT DISTINCT 36 * - 71 AS col2
----
-2556

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8692
SELECT 77 + - + MIN( + 63 ) DIV + 71 + + - 4
----
73

skipif mysql # not compatible
query I rowsort label-8692
SELECT 77 + - + MIN ( + 63 ) / + 71 + + - 4
----
73

query II rowsort
SELECT DISTINCT 65 * - - 44 * 57 col1, 33
----
163020
33

query I rowsort
SELECT ( + 25 ) * + 34 * 51 + - - 32 + - 7 AS col0
----
43375

onlyif mysql # DIV for integer division: 
query I rowsort label-8695
SELECT 22 * + 68 DIV 17 AS col2
----
88

skipif mysql # not compatible
query I rowsort label-8695
SELECT 22 * + 68 / 17 AS col2
----
88

query I rowsort
SELECT DISTINCT 0 * + 14 AS col2
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-8697
SELECT 93 AS col0, 81 + - 11 * + CASE - 30 WHEN - - ( - + COUNT( * ) ) + + 0 THEN + 25 + 40 + + 37 * - 93 END * + 49
----
93
NULL

skipif mysql # not compatible
query II rowsort label-8697
SELECT 93 AS col0, 81 + - 11 * + CASE - 30 WHEN - - ( - + COUNT ( * ) ) + + 0 THEN + 25 + 40 + + 37 * - 93 END * + 49
----
93
NULL

query I rowsort
SELECT 12 + + - 35 - - 59 * + - 9 * + 76 * + 79 AS col0
----
-3188147

query I rowsort
SELECT ALL 47 * + - 29 col1
----
-1363

query II rowsort
SELECT + + 85 AS col1, 4
----
85
4

onlyif mysql # aggregate syntax: 
query I rowsort label-8701
SELECT ALL - MIN( - 16 ) AS col1
----
16

skipif mysql # not compatible
query I rowsort label-8701
SELECT ALL - MIN ( - 16 ) AS col1
----
16

query II rowsort
SELECT DISTINCT - + 60 AS col1, 47 * - 11 + + ( 41 ) AS col2
----
-60
-476

query I rowsort
SELECT 80 + + + 88 AS col2
----
168

onlyif mysql # aggregate syntax: 
query I rowsort label-8704
SELECT - 8 * + COUNT( * ) AS col0
----
-8

skipif mysql # not compatible
query I rowsort label-8704
SELECT - 8 * + COUNT ( * ) AS col0
----
-8

onlyif mysql # aggregate syntax: 
query II rowsort label-8705
SELECT ALL - - 78 AS col2, - 63 * + COUNT( * ) col0
----
78
-63

skipif mysql # not compatible
query II rowsort label-8705
SELECT ALL - - 78 AS col2, - 63 * + COUNT ( * ) col0
----
78
-63

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8706
SELECT DISTINCT 83 DIV - CAST( 98 AS SIGNED ) * - 67 * + + 14 * 50 + + 50
----
50

skipif mysql # not compatible
query I rowsort label-8706
SELECT DISTINCT 83 / - CAST ( 98 AS INTEGER ) * - 67 * + + 14 * 50 + + 50
----
50

query I rowsort
SELECT 70 - - 45 AS col1
----
115

query I rowsort
SELECT - CASE WHEN NULL NOT BETWEEN ( NULL ) AND 53 THEN - - 50 WHEN NULL IS NULL THEN NULL END / + 15
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8709
SELECT + 75 * + - 73 + + NULLIF ( 22, + 67 * 56 ) + - 91 - + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8709
SELECT + 75 * + - 73 + + NULLIF ( 22, + 67 * 56 ) + - 91 - + + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8710
SELECT + 44 * + ( - COUNT( DISTINCT - 93 ) ) AS col1
----
-44

skipif mysql # not compatible
query I rowsort label-8710
SELECT + 44 * + ( - COUNT ( DISTINCT - 93 ) ) AS col1
----
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-8711
SELECT + 84 - NULLIF ( - 39, COUNT( * ) ) * - - 80 AS col1
----
3204

skipif mysql # not compatible
query I rowsort label-8711
SELECT + 84 - NULLIF ( - 39, COUNT ( * ) ) * - - 80 AS col1
----
3204

query I rowsort
SELECT DISTINCT - - 50 * - - 58 col1
----
2900

query I rowsort
SELECT DISTINCT 63 + + ( - 75 )
----
-12

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8714
SELECT ALL 67 + 37 + COUNT( * ) DIV 86 DIV + 43 - + - 72 * 82
----
6008

skipif mysql # not compatible
query I rowsort label-8714
SELECT ALL 67 + 37 + COUNT ( * ) / 86 / + 43 - + - 72 * 82
----
6008

query I rowsort
SELECT ALL - + 0 * - 44
----
0

query I rowsort
SELECT DISTINCT - 7 * + - 69 AS col1
----
483

query I rowsort
SELECT - 33 - 99 AS col1
----
-132

onlyif mysql # DIV for integer division: 
query I rowsort label-8718
SELECT - 77 + + + 20 DIV 61 * - - 85 AS col1
----
-77

skipif mysql # not compatible
query I rowsort label-8718
SELECT - 77 + + + 20 / 61 * - - 85 AS col1
----
-77

query II rowsort
SELECT 87 * - + 62 AS col1, - 5 AS col2
----
-5394
-5

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8720
SELECT CAST( + + CAST( - + 41 AS SIGNED ) AS SIGNED ) + - 80 * + - 99 / - CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-8720
SELECT CAST ( + + CAST ( - + 41 AS INTEGER ) AS INTEGER ) + - 80 * + - 99 / - CAST ( NULL AS REAL )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8721
SELECT 33 col1, + COALESCE ( - - 59, + - 83 + + 36 * - + 3, + - MIN( - - 48 ) + - SUM( - + 42 ) )
----
33
59

skipif mysql # not compatible
query II rowsort label-8721
SELECT 33 col1, + COALESCE ( - - 59, + - 83 + + 36 * - + 3, + - MIN ( - - 48 ) + - SUM ( - + 42 ) )
----
33
59

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8722
SELECT ALL + 27 + + CAST( NULL AS SIGNED ) + 20 * - 87 + + + 49 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8722
SELECT ALL + 27 + + CAST ( NULL AS INTEGER ) + 20 * - 87 + + + 49 AS col1
----
NULL

query II rowsort
SELECT 3 col2, + 18 - - 85 AS col2
----
3
103

query I rowsort
SELECT 77 + - + 37
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-8725
SELECT DISTINCT - 82 + COUNT( * ) - + COALESCE ( 36, + SUM( - 6 ) + + + 76, - 53 ) + - + ( - 44 ) * + 62 + - 24 * + 43 AS col1
----
1579

skipif mysql # not compatible
query I rowsort label-8725
SELECT DISTINCT - 82 + COUNT ( * ) - + COALESCE ( 36, + SUM ( - 6 ) + + + 76, - 53 ) + - + ( - 44 ) * + 62 + - 24 * + 43 AS col1
----
1579

onlyif mysql # aggregate syntax: 
query I rowsort label-8726
SELECT ALL + 27 + + COUNT( ALL 51 ) AS col0
----
28

skipif mysql # not compatible
query I rowsort label-8726
SELECT ALL + 27 + + COUNT ( ALL 51 ) AS col0
----
28

query I rowsort
SELECT 96 + COALESCE ( 44, + - 5, + 74 + ( - - 39 ) + - 73 ) AS col0
----
140

query I rowsort
SELECT ALL - 64 - - - 58 AS col1
----
-122

onlyif mysql # aggregate syntax: 
query I rowsort label-8729
SELECT ALL - 55 * + COUNT( * )
----
-55

skipif mysql # not compatible
query I rowsort label-8729
SELECT ALL - 55 * + COUNT ( * )
----
-55

query I rowsort
SELECT 93 * + - 57
----
-5301

onlyif mysql # aggregate syntax: 
query I rowsort label-8731
SELECT COUNT( * ) * + 49 * - 76 AS col2
----
-3724

skipif mysql # not compatible
query I rowsort label-8731
SELECT COUNT ( * ) * + 49 * - 76 AS col2
----
-3724

onlyif mysql # aggregate syntax: 
query I rowsort label-8732
SELECT DISTINCT - CASE + - 10 WHEN - + 0 + + - SUM( ALL - - 20 ) + - 86 THEN + - 85 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8732
SELECT DISTINCT - CASE + - 10 WHEN - + 0 + + - SUM ( ALL - - 20 ) + - 86 THEN + - 85 END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8733
SELECT ALL - SUM( 37 ) - + 51
----
-88

skipif mysql # not compatible
query I rowsort label-8733
SELECT ALL - SUM ( 37 ) - + 51
----
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-8734
SELECT DISTINCT - CASE + + 65 WHEN 51 * + 0 + 56 * - COUNT( * ) * - 56 THEN NULL ELSE + 70 * 84 END AS col2
----
-5880

skipif mysql # not compatible
query I rowsort label-8734
SELECT DISTINCT - CASE + + 65 WHEN 51 * + 0 + 56 * - COUNT ( * ) * - 56 THEN NULL ELSE + 70 * 84 END AS col2
----
-5880

query II rowsort
SELECT + 63, - ( 27 ) AS col2
----
63
-27

query I rowsort
SELECT DISTINCT - 74 * - 54 * 43
----
171828

query I rowsort
SELECT - 66 * - 13 AS col2
----
858

query II rowsort
SELECT ALL - + 49 AS col2, NULLIF ( 16, - - 47 )
----
-49
16

query I rowsort
SELECT + 18 + + 96 AS col1
----
114

onlyif mysql # aggregate syntax: 
query II rowsort label-8740
SELECT ALL - COUNT( * ) AS col0, + COUNT( * ) * + - COUNT( * ) * - + ( - + 12 ) + + - ( + 51 ) AS col1
----
-1
-63

skipif mysql # not compatible
query II rowsort label-8740
SELECT ALL - COUNT ( * ) AS col0, + COUNT ( * ) * + - COUNT ( * ) * - + ( - + 12 ) + + - ( + 51 ) AS col1
----
-1
-63

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8741
SELECT + 27 * 13 + - ( - + 49 ) + + + 75 DIV - + NULLIF ( + 6, - COUNT( * ) ) * + COUNT( + 48 )
----
388

skipif mysql # not compatible
query I rowsort label-8741
SELECT + 27 * 13 + - ( - + 49 ) + + + 75 / - + NULLIF ( + 6, - COUNT ( * ) ) * + COUNT ( + 48 )
----
388

query I rowsort
SELECT + 2 + + 63 AS col0
----
65

query II rowsort
SELECT + - 25, + ( 59 ) AS col0
----
-25
59

query I rowsort
SELECT ALL 85 + 52
----
137

onlyif mysql # aggregate syntax: 
query I rowsort label-8745
SELECT COUNT( DISTINCT - 42 )
----
1

skipif mysql # not compatible
query I rowsort label-8745
SELECT COUNT ( DISTINCT - 42 )
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-8746
SELECT + 34, + 35 * ( - CASE - 74 WHEN - 40 * + 13 + - - COUNT( * ) THEN + 9 + - + CASE WHEN NOT - 34 = - 55 * + 54 + + 19 THEN COUNT( * ) * + 45 ELSE NULL END + - 99 * 91 END ) * 77 col2
----
34
NULL

skipif mysql # not compatible
query II rowsort label-8746
SELECT + 34, + 35 * ( - CASE - 74 WHEN - 40 * + 13 + - - COUNT ( * ) THEN + 9 + - + CASE WHEN NOT - 34 = - 55 * + 54 + + 19 THEN COUNT ( * ) * + 45 ELSE NULL END + - 99 * 91 END ) * 77 col2
----
34
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8747
SELECT ALL 12 + - 52 + - + 39 + MIN( - 70 ) AS col2
----
-149

skipif mysql # not compatible
query I rowsort label-8747
SELECT ALL 12 + - 52 + - + 39 + MIN ( - 70 ) AS col2
----
-149

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8748
SELECT ALL CAST( + - NULLIF ( - 49, - ( + CAST( 39 AS SIGNED ) ) - - COUNT( * ) ) AS SIGNED ) + - 31 - - 7 - + + 99 + - 43 * COUNT( * ) AS col0
----
-117

skipif mysql # not compatible
query I rowsort label-8748
SELECT ALL CAST ( + - NULLIF ( - 49, - ( + CAST ( 39 AS INTEGER ) ) - - COUNT ( * ) ) AS INTEGER ) + - 31 - - 7 - + + 99 + - 43 * COUNT ( * ) AS col0
----
-117

onlyif mysql # aggregate syntax: 
query I rowsort label-8749
SELECT + + COUNT( * ) * - - ( - 57 ) + + 58 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-8749
SELECT + + COUNT ( * ) * - - ( - 57 ) + + 58 AS col2
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8750
SELECT ALL - COUNT( * ) + - 29 + COUNT( * ) DIV - 25
----
-30

skipif mysql # not compatible
query I rowsort label-8750
SELECT ALL - COUNT ( * ) + - 29 + COUNT ( * ) / - 25
----
-30

query I rowsort
SELECT DISTINCT - + CASE - - 73 WHEN - - COALESCE ( - + 84, 31 ) * + 16 THEN 81 + NULLIF ( 56, - - ( - 43 ) * 34 ) END
----
NULL

query II rowsort
SELECT ALL + ( 42 ) + - 51 - + + 6 col2, + 51 * + 84 + 71 col1
----
-15
4355

query I rowsort
SELECT 67 * + 90 + + 9 + - 83 * 79 AS col0
----
-518

query I rowsort
SELECT ALL + 87 + 54 * + 21 col2
----
1221

query I rowsort
SELECT - + ( 82 )
----
-82

query I rowsort
SELECT 64 + - 51 AS col0
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-8757
SELECT ALL 14 + - - COUNT( * )
----
15

skipif mysql # not compatible
query I rowsort label-8757
SELECT ALL 14 + - - COUNT ( * )
----
15

onlyif mysql # aggregate syntax: 
query II rowsort label-8758
SELECT DISTINCT 32 * + 13 AS col2, - COUNT( * )
----
416
-1

skipif mysql # not compatible
query II rowsort label-8758
SELECT DISTINCT 32 * + 13 AS col2, - COUNT ( * )
----
416
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-8759
SELECT ALL 43 DIV + - 57
----
0

skipif mysql # not compatible
query I rowsort label-8759
SELECT ALL 43 / + - 57
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8760
SELECT DISTINCT 2 + - + 11 + CASE + ( + CASE - 79 WHEN - CAST( 58 AS SIGNED ) THEN NULL WHEN + 37 + - 72 THEN 49 * + 72 * 70 + - COUNT( * ) + - 56 / - COUNT( * ) ELSE NULL END ) WHEN - ( 84 ) / 13 + - ( 5 - + 94 ) * 0 THEN - ( 92 ) ELSE NULL END + - 50
----
NULL

skipif mysql # not compatible
query I rowsort label-8760
SELECT DISTINCT 2 + - + 11 + CASE + ( + CASE - 79 WHEN - CAST ( 58 AS INTEGER ) THEN NULL WHEN + 37 + - 72 THEN 49 * + 72 * 70 + - COUNT ( * ) + - 56 / - COUNT ( * ) ELSE NULL END ) WHEN - ( 84 ) / 13 + - ( 5 - + 94 ) * 0 THEN - ( 92 ) ELSE NULL END + - 50
----
NULL

query I rowsort
SELECT ALL - 68 * + 73 AS col2
----
-4964

onlyif mysql # aggregate syntax: 
query II rowsort label-8762
SELECT ALL 37 - + 99 + - 69 * + 21 * 62, - 58 + + ( + COUNT( * ) ) AS col2
----
-89900
-57

skipif mysql # not compatible
query II rowsort label-8762
SELECT ALL 37 - + 99 + - 69 * + 21 * 62, - 58 + + ( + COUNT ( * ) ) AS col2
----
-89900
-57

query I rowsort
SELECT ALL + 96 - + 55 - + 37 * 62 + 26 AS col2
----
-2227

query I rowsort
SELECT ALL 89 * - - ( + - 7 ) AS col2
----
-623

query I rowsort
SELECT - 1 * + + ( - - 60 ) * - - 96 + + - 61
----
-5821

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8766
SELECT - COALESCE ( 7, + - 51 * 69 DIV 93 DIV + 0, + 25 * + - MAX( - - 27 ) ) AS col0
----
-7

skipif mysql # not compatible
query I rowsort label-8766
SELECT - COALESCE ( 7, + - 51 * 69 / 93 / + 0, + 25 * + - MAX ( - - 27 ) ) AS col0
----
-7

query I rowsort
SELECT - 71 * - - 24
----
-1704

onlyif mysql # aggregate syntax: 
query I rowsort label-8768
SELECT DISTINCT SUM( ALL + 96 )
----
96

skipif mysql # not compatible
query I rowsort label-8768
SELECT DISTINCT SUM ( ALL + 96 )
----
96

query I rowsort
SELECT ALL + 6 * + 78 * + 31 * + - 3 AS col1
----
-43524

query I rowsort
SELECT - 35 * + - 55
----
1925

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8771
SELECT DISTINCT + CASE COUNT( * ) WHEN - 82 THEN + ( + 26 ) DIV + - 34 + - 26 WHEN - - COUNT( * ) THEN 90 * + 98 END * + 34
----
299880

skipif mysql # not compatible
query I rowsort label-8771
SELECT DISTINCT + CASE COUNT ( * ) WHEN - 82 THEN + ( + 26 ) / + - 34 + - 26 WHEN - - COUNT ( * ) THEN 90 * + 98 END * + 34
----
299880

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8772
SELECT DISTINCT + COUNT( * ) / CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8772
SELECT DISTINCT + COUNT ( * ) / CAST ( NULL AS INTEGER ) AS col0
----
NULL

query II rowsort
SELECT ALL + + COALESCE ( + - 11, 96 ) AS col1, ( 32 ) AS col2
----
-11
32

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8774
SELECT ALL + + 21 * SUM( CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-8774
SELECT ALL + + 21 * SUM ( CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8775
SELECT + - 20 + SUM( ALL - 56 ) - 91 AS col1
----
-167

skipif mysql # not compatible
query I rowsort label-8775
SELECT + - 20 + SUM ( ALL - 56 ) - 91 AS col1
----
-167

onlyif mysql # DIV for integer division: 
query I rowsort label-8776
SELECT - - 3 DIV + + 13
----
0

skipif mysql # not compatible
query I rowsort label-8776
SELECT - - 3 / + + 13
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8777
SELECT + 25 * - - COUNT( * ) - - - 10 + + ( 28 ) + + 51
----
94

skipif mysql # not compatible
query I rowsort label-8777
SELECT + 25 * - - COUNT ( * ) - - - 10 + + ( 28 ) + + 51
----
94

query I rowsort
SELECT + CASE 71 WHEN + 36 + 5 * - 39 - - 35 THEN + 15 WHEN - 74 THEN + + 89 * + 15 + - - 64 ELSE NULL END AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8779
SELECT - CAST( NULL AS SIGNED ) * - + COUNT( * ) - + COUNT( - + 78 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8779
SELECT - CAST ( NULL AS INTEGER ) * - + COUNT ( * ) - + COUNT ( - + 78 )
----
NULL

query I rowsort
SELECT - 99 * 14 * + - 61 AS col2
----
84546

onlyif mysql # DIV for integer division: 
query I rowsort label-8781
SELECT ALL + + 4 * ( + 3 ) + - - 27 DIV + - 76 col2
----
12

skipif mysql # not compatible
query I rowsort label-8781
SELECT ALL + + 4 * ( + 3 ) + - - 27 / + - 76 col2
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-8782
SELECT ALL SUM( ALL 38 ) * - 24 + + COUNT( * ) * + 93 + + 1 AS col1
----
-818

skipif mysql # not compatible
query I rowsort label-8782
SELECT ALL SUM ( ALL 38 ) * - 24 + + COUNT ( * ) * + 93 + + 1 AS col1
----
-818

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8783
SELECT - CASE COALESCE ( + + 52, - + COUNT( ALL - 26 ) * - 38 ) WHEN + ( - - MAX( 97 ) ) * + + 9 THEN + 76 END * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8783
SELECT - CASE COALESCE ( + + 52, - + COUNT ( ALL - 26 ) * - 38 ) WHEN + ( - - MAX ( 97 ) ) * + + 9 THEN + 76 END * + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8784
SELECT DISTINCT + 46 * + 45 * + - 72 * COUNT( * ) + - 51 AS col2, 21 AS col0
----
-149091
21

skipif mysql # not compatible
query II rowsort label-8784
SELECT DISTINCT + 46 * + 45 * + - 72 * COUNT ( * ) + - 51 AS col2, 21 AS col0
----
-149091
21

query I rowsort
SELECT - - 62 * + 33
----
2046

query I rowsort
SELECT - ( + - 25 ) AS col0
----
25

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8787
SELECT ALL - 18 * + AVG ( 79 ) / - 27 * + CAST( NULL AS SIGNED ) + 53 + + - ( + COUNT( * ) ) + - 27 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8787
SELECT ALL - 18 * + AVG ( 79 ) / - 27 * + CAST ( NULL AS INTEGER ) + 53 + + - ( + COUNT ( * ) ) + - 27 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8788
SELECT - - 67 * - - 39 + + 54 * - 21 + + 52 + + + 15 + + + ( + 7 ) + + MAX( - 41 ) * - - 15 * + - 75 AS col2
----
47678

skipif mysql # not compatible
query I rowsort label-8788
SELECT - - 67 * - - 39 + + 54 * - 21 + + 52 + + + 15 + + + ( + 7 ) + + MAX ( - 41 ) * - - 15 * + - 75 AS col2
----
47678

query I rowsort
SELECT + 2 * + - 81
----
-162

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8790
SELECT + + CASE - 70 WHEN - 67 THEN + COUNT( * ) ELSE + 32 * CAST( NULL AS DECIMAL ) * - - 62 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8790
SELECT + + CASE - 70 WHEN - 67 THEN + COUNT ( * ) ELSE + 32 * CAST ( NULL AS REAL ) * - - 62 END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8791
SELECT ALL - MIN( + - 87 ) * + 12
----
1044

skipif mysql # not compatible
query I rowsort label-8791
SELECT ALL - MIN ( + - 87 ) * + 12
----
1044

query I rowsort
SELECT - 68 - - + 30 AS col2
----
-38

query I rowsort
SELECT ALL 59 * 38 - + + 11
----
2231

query II rowsort
SELECT ALL 72 AS col1, + 52 * - 55 AS col0
----
72
-2860

onlyif mysql # aggregate syntax: 
query I rowsort label-8795
SELECT - CASE - + MAX( + 52 ) WHEN - 6 THEN NULL ELSE + + 44 END AS col0
----
-44

skipif mysql # not compatible
query I rowsort label-8795
SELECT - CASE - + MAX ( + 52 ) WHEN - 6 THEN NULL ELSE + + 44 END AS col0
----
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-8796
SELECT ALL + 64 - - - 91 * - COUNT( * ) + - 19 * 13 * - + 7 * 5 AS col1
----
8800

skipif mysql # not compatible
query I rowsort label-8796
SELECT ALL + 64 - - - 91 * - COUNT ( * ) + - 19 * 13 * - + 7 * 5 AS col1
----
8800

query I rowsort
SELECT DISTINCT + 55 * - 95 * - + 54 * - + ( + 37 )
----
-10439550

query I rowsort
SELECT ALL 19 - 48 * + + COALESCE ( + + 80, 81 ) * - ( - 33 ) AS col2
----
-126701

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8799
SELECT ALL ( - 84 ) / + CAST( NULL AS SIGNED ), - 29 + + + 12 + - COALESCE ( ( + 66 ), - COALESCE ( + 45, + 72 ) ) AS col2
----
NULL
-83

skipif mysql # not compatible
query II rowsort label-8799
SELECT ALL ( - 84 ) / + CAST ( NULL AS INTEGER ), - 29 + + + 12 + - COALESCE ( ( + 66 ), - COALESCE ( + 45, + 72 ) ) AS col2
----
NULL
-83

query I rowsort
SELECT + 84 * + + 64
----
5376

onlyif mysql # aggregate syntax: 
query II rowsort label-8801
SELECT ALL 83, 61 + + + SUM( ALL + 35 ) AS col2
----
83
96

skipif mysql # not compatible
query II rowsort label-8801
SELECT ALL 83, 61 + + + SUM ( ALL + 35 ) AS col2
----
83
96

onlyif mysql # aggregate syntax: 
query I rowsort label-8802
SELECT - ( - 57 ) + + - SUM( - NULLIF ( - 18, + 86 ) )
----
39

skipif mysql # not compatible
query I rowsort label-8802
SELECT - ( - 57 ) + + - SUM ( - NULLIF ( - 18, + 86 ) )
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-8803
SELECT + 1 - + COUNT( * ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-8803
SELECT + 1 - + COUNT ( * ) AS col0
----
0

query I rowsort
SELECT - ( 49 ) col2
----
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-8805
SELECT + MAX( DISTINCT 55 ) + COUNT( * )
----
56

skipif mysql # not compatible
query I rowsort label-8805
SELECT + MAX ( DISTINCT 55 ) + COUNT ( * )
----
56

query I rowsort
SELECT + 78 - + + 58
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-8807
SELECT ALL 83 - - - COUNT( * ) AS col0
----
82

skipif mysql # not compatible
query I rowsort label-8807
SELECT ALL 83 - - - COUNT ( * ) AS col0
----
82

onlyif mysql # aggregate syntax: 
query II rowsort label-8808
SELECT + MAX( + + 46 ) * - 33 col1, SUM( + - ( - 16 ) ) * + ( - - 95 )
----
-1518
1520

skipif mysql # not compatible
query II rowsort label-8808
SELECT + MAX ( + + 46 ) * - 33 col1, SUM ( + - ( - 16 ) ) * + ( - - 95 )
----
-1518
1520

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8809
SELECT + MAX( + 23 ) * 23 * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8809
SELECT + MAX ( + 23 ) * 23 * - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT + 65 + + 8 AS col0
----
73

query I rowsort
SELECT + 24 * 11
----
264

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8812
SELECT DISTINCT 89 DIV COUNT( * ) DIV ( - COUNT( * ) )
----
-89

skipif mysql # not compatible
query I rowsort label-8812
SELECT DISTINCT 89 / COUNT ( * ) / ( - COUNT ( * ) )
----
-89

query I rowsort
SELECT + 18 + 55
----
73

query I rowsort
SELECT ALL COALESCE ( + 19, - NULLIF ( 9, + - 43 ) ) AS col0
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-8815
SELECT ALL 76 + 3 + 81 * - + SUM( + 47 ) AS col2
----
-3728

skipif mysql # not compatible
query I rowsort label-8815
SELECT ALL 76 + 3 + 81 * - + SUM ( + 47 ) AS col2
----
-3728

query I rowsort
SELECT - ( + + 74 )
----
-74

query I rowsort
SELECT - 88 + - 20
----
-108

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8818
SELECT - ( - COALESCE ( CAST( NULL AS SIGNED ), - + 83 ) ) AS col2
----
-83

skipif mysql # not compatible
query I rowsort label-8818
SELECT - ( - COALESCE ( CAST ( NULL AS INTEGER ), - + 83 ) ) AS col2
----
-83

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8819
SELECT + - 74 * + + ( + 45 ) * - 40 * + COUNT( * ) + - 71 + + + CAST( NULL AS SIGNED ) - - MIN( + 57 ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8819
SELECT + - 74 * + + ( + 45 ) * - 40 * + COUNT ( * ) + - 71 + + + CAST ( NULL AS INTEGER ) - - MIN ( + 57 ) col1
----
NULL

query I rowsort
SELECT NULLIF ( + 70, + - 60 ) AS col2
----
70

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8821
SELECT - 88 + CASE - 47 WHEN + 86 THEN 44 * + + 13 * CAST( 80 AS SIGNED ) + - + AVG ( 55 ) + - 24 WHEN - COUNT( * ) THEN - - COUNT( * ) * - 57 ELSE 47 * 80 END DIV + 15 col2
----
162

skipif mysql # not compatible
query I rowsort label-8821
SELECT - 88 + CASE - 47 WHEN + 86 THEN 44 * + + 13 * CAST ( 80 AS INTEGER ) + - + AVG ( 55 ) + - 24 WHEN - COUNT ( * ) THEN - - COUNT ( * ) * - 57 ELSE 47 * 80 END / + 15 col2
----
162

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8822
SELECT ALL + COUNT( * ) DIV + 90 + - 64 + - COALESCE ( - + COALESCE ( - 98, + COUNT( * ) + - - 34 ), + AVG ( + 15 ) DIV + - 6 ) AS col1
----
-162

skipif mysql # not compatible
query I rowsort label-8822
SELECT ALL + COUNT ( * ) / + 90 + - 64 + - COALESCE ( - + COALESCE ( - 98, + COUNT ( * ) + - - 34 ), + AVG ( + 15 ) / + - 6 ) AS col1
----
-162

query I rowsort
SELECT + 41 * ( + 48 )
----
1968

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8824
SELECT DISTINCT + COUNT( * ) DIV - 37 - + - CAST( - 15 AS SIGNED ) + 8 - - COUNT( * ) - + MAX( DISTINCT - 67 ) + MAX( + 82 ) * 36
----
3013

skipif mysql # not compatible
query I rowsort label-8824
SELECT DISTINCT + COUNT ( * ) / - 37 - + - CAST ( - 15 AS INTEGER ) + 8 - - COUNT ( * ) - + MAX ( DISTINCT - 67 ) + MAX ( + 82 ) * 36
----
3013

onlyif mysql # aggregate syntax: 
query I rowsort label-8825
SELECT ALL + - 93 * - - 89 * - COALESCE ( 45, COUNT( + 89 ) + 23, - 71 ) col0
----
372465

skipif mysql # not compatible
query I rowsort label-8825
SELECT ALL + - 93 * - - 89 * - COALESCE ( 45, COUNT ( + 89 ) + 23, - 71 ) col0
----
372465

onlyif mysql # aggregate syntax: 
query I rowsort label-8826
SELECT ALL + - 76 * + 95 * - COUNT( * ) * - COUNT( * ) * - 77 AS col0
----
555940

skipif mysql # not compatible
query I rowsort label-8826
SELECT ALL + - 76 * + 95 * - COUNT ( * ) * - COUNT ( * ) * - 77 AS col0
----
555940

query I rowsort
SELECT + 17 + 44 AS col1
----
61

query II rowsort
SELECT + + 11, + 87 AS col1
----
11
87

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8829
SELECT - COUNT( * ) + + + COALESCE ( - CAST( CASE 16 WHEN - COUNT( * ) * - - 70 * + 9 + - + ( - 4 ) THEN NULL WHEN 95 * - 71 THEN - COUNT( * ) DIV 52 ELSE NULL END AS SIGNED ), - 16 DIV - ( COALESCE ( + 44, 91, + 13 ) ) ) * 90
----
-1

skipif mysql # not compatible
query I rowsort label-8829
SELECT - COUNT ( * ) + + + COALESCE ( - CAST ( CASE 16 WHEN - COUNT ( * ) * - - 70 * + 9 + - + ( - 4 ) THEN NULL WHEN 95 * - 71 THEN - COUNT ( * ) / 52 ELSE NULL END AS INTEGER ), - 16 / - ( COALESCE ( + 44, 91, + 13 ) ) ) * 90
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8830
SELECT DISTINCT + CASE + - 26 WHEN - - 58 THEN + + 86 + + - ( - ( + COUNT( * ) ) ) WHEN + - 59 + + COALESCE ( + 50, ( 95 ) - + CASE - CASE + 75 WHEN SUM( + 84 ) / CAST( COUNT( - CAST( NULL AS SIGNED ) ) AS SIGNED ) THEN NULL ELSE 62 - - MAX( ALL 13 ) * 42 END WHEN - ( - 45 ) + 86 THEN NULL WHEN + 21 + 98 THEN NULL ELSE COALESCE ( 90, 3 + 6, - 33 / + 86 ) END, + AVG ( DISTINCT - 20 ) - COUNT( * ) / - 35 ) * 79 THEN NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8830
SELECT DISTINCT + CASE + - 26 WHEN - - 58 THEN + + 86 + + - ( - ( + COUNT ( * ) ) ) WHEN + - 59 + + COALESCE ( + 50, ( 95 ) - + CASE - CASE + 75 WHEN SUM ( + 84 ) / CAST ( COUNT ( - CAST ( NULL AS INTEGER ) ) AS INTEGER ) THEN NULL ELSE 62 - - MAX ( ALL 13 ) * 42 END WHEN - ( - 45 ) + 86 THEN NULL WHEN + 21 + 98 THEN NULL ELSE COALESCE ( 90, 3 + 6, - 33 / + 86 ) END, + AVG ( DISTINCT - 20 ) - COUNT ( * ) / - 35 ) * 79 THEN NULL END AS col1
----
NULL

query I rowsort
SELECT DISTINCT - + 34 * - 47 AS col0
----
1598

onlyif mysql # aggregate syntax: 
query I rowsort label-8832
SELECT COUNT( * ) * - 6 - + ( - - 89 ) - - 23 AS col0
----
-72

skipif mysql # not compatible
query I rowsort label-8832
SELECT COUNT ( * ) * - 6 - + ( - - 89 ) - - 23 AS col0
----
-72

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8833
SELECT - - ( + + CAST( - - 19 AS SIGNED ) ) + - - 95
----
114

skipif mysql # not compatible
query I rowsort label-8833
SELECT - - ( + + CAST ( - - 19 AS INTEGER ) ) + - - 95
----
114

query I rowsort
SELECT DISTINCT - 95 - - - 95
----
-190

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8835
SELECT ALL - NULLIF ( + 65, - + 70 * + + COUNT( + CAST( NULL AS SIGNED ) ) ) AS col1
----
-65

skipif mysql # not compatible
query I rowsort label-8835
SELECT ALL - NULLIF ( + 65, - + 70 * + + COUNT ( + CAST ( NULL AS INTEGER ) ) ) AS col1
----
-65

query I rowsort
SELECT 12 + - 44
----
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-8837
SELECT COALESCE ( - - 82, COUNT( 9 ) + - 66 + - COUNT( * ) + COUNT( * ) * 75 * + + 3 * - - 7 ) + - CASE + 64 WHEN + + 75 THEN - + 55 WHEN + 60 * 65 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-8837
SELECT COALESCE ( - - 82, COUNT ( 9 ) + - 66 + - COUNT ( * ) + COUNT ( * ) * 75 * + + 3 * - - 7 ) + - CASE + 64 WHEN + + 75 THEN - + 55 WHEN + 60 * 65 THEN NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8838
SELECT ALL + NULLIF ( - 60, 85 + 26 ) * - + SUM( 23 )
----
1380

skipif mysql # not compatible
query I rowsort label-8838
SELECT ALL + NULLIF ( - 60, 85 + 26 ) * - + SUM ( 23 )
----
1380

onlyif mysql # aggregate syntax: 
query I rowsort label-8839
SELECT COUNT( * ) * - 34 AS col0
----
-34

skipif mysql # not compatible
query I rowsort label-8839
SELECT COUNT ( * ) * - 34 AS col0
----
-34

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8840
SELECT ALL CAST( NULL AS SIGNED ) * 30 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8840
SELECT ALL CAST ( NULL AS INTEGER ) * 30 AS col1
----
NULL

query I rowsort
SELECT ALL + 33 * + ( 81 ) AS col2
----
2673

query I rowsort
SELECT 31 * - - 8
----
248

query I rowsort
SELECT 11 - COALESCE ( 14, - + 38 * - 65 ) AS col1
----
-3

query I rowsort
SELECT 21 * - 84 AS col0
----
-1764

onlyif mysql # aggregate syntax: 
query I rowsort label-8845
SELECT 56 * - - ( - + CASE - + 73 WHEN 74 * - 94 * + COUNT( * ) + COUNT( * ) + + 49 THEN 12 WHEN - 14 THEN - 17 ELSE NULL END ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8845
SELECT 56 * - - ( - + CASE - + 73 WHEN 74 * - 94 * + COUNT ( * ) + COUNT ( * ) + + 49 THEN 12 WHEN - 14 THEN - 17 ELSE NULL END ) AS col2
----
NULL

query I rowsort
SELECT ALL 70 + + + 34
----
104

query I rowsort
SELECT DISTINCT - 76 + - 18 AS col2
----
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-8848
SELECT ALL + COALESCE ( - 96, + COUNT( * ) + 42 ) + 5 AS col0
----
-91

skipif mysql # not compatible
query I rowsort label-8848
SELECT ALL + COALESCE ( - 96, + COUNT ( * ) + 42 ) + 5 AS col0
----
-91

query I rowsort
SELECT 24 - - 29
----
53

onlyif mysql # DIV for integer division: 
query I rowsort label-8850
SELECT ALL - ( + 6 ) DIV - 22
----
0

skipif mysql # not compatible
query I rowsort label-8850
SELECT ALL - ( + 6 ) / - 22
----
0

query II rowsort
SELECT ALL CASE 16 WHEN 30 THEN NULL WHEN 96 * 87 * + 35 THEN 43 END * - + 83 + + 95 AS col1, 95 AS col0
----
NULL
95

query II rowsort
SELECT ALL NULLIF ( + 42, + 76 ) * - - 14 AS col1, - 69 AS col0
----
588
-69

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8853
SELECT + CASE 29 WHEN CASE + 81 WHEN - + 13 / 94 - + 63 THEN - MAX( DISTINCT 30 ) END * 31 + CAST( + - 90 AS SIGNED ) + - 86 THEN + - 26 ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8853
SELECT + CASE 29 WHEN CASE + 81 WHEN - + 13 / 94 - + 63 THEN - MAX ( DISTINCT 30 ) END * 31 + CAST ( + - 90 AS INTEGER ) + - 86 THEN + - 26 ELSE NULL END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8854
SELECT ALL COUNT( * ) * - ( NULLIF ( + - 54, + COUNT( ALL 57 ) ) ) * + - 65 * + + 2 AS col0
----
-7020

skipif mysql # not compatible
query I rowsort label-8854
SELECT ALL COUNT ( * ) * - ( NULLIF ( + - 54, + COUNT ( ALL 57 ) ) ) * + - 65 * + + 2 AS col0
----
-7020

onlyif mysql # DIV for integer division: 
query I rowsort label-8855
SELECT + ( + 80 ) DIV - 38 + + 64 AS col2
----
62

skipif mysql # not compatible
query I rowsort label-8855
SELECT + ( + 80 ) / - 38 + + 64 AS col2
----
62

query I rowsort
SELECT 39 - + 38
----
1

query I rowsort
SELECT DISTINCT - - ( + 57 )
----
57

query III rowsort
SELECT 72 * COALESCE ( + - 47, - - 43 ) AS col1, 19 * 9 * + 38 AS col0, 65 + - 61 + 85 AS col1
----
-3384
6498
89

onlyif mysql # aggregate syntax: 
query I rowsort label-8859
SELECT ALL - + SUM( DISTINCT + 42 ) AS col2
----
-42

skipif mysql # not compatible
query I rowsort label-8859
SELECT ALL - + SUM ( DISTINCT + 42 ) AS col2
----
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-8860
SELECT COUNT( * ) + 52 * + 61 * 86 + + 32
----
272825

skipif mysql # not compatible
query I rowsort label-8860
SELECT COUNT ( * ) + 52 * + 61 * 86 + + 32
----
272825

onlyif mysql # aggregate syntax: 
query I rowsort label-8861
SELECT ALL - ( + + MIN( - 13 ) )
----
13

skipif mysql # not compatible
query I rowsort label-8861
SELECT ALL - ( + + MIN ( - 13 ) )
----
13

query I rowsort
SELECT DISTINCT - + ( - + 35 ) AS col2
----
35

onlyif mysql # aggregate syntax: 
query II rowsort label-8863
SELECT - SUM( DISTINCT + - ( - 78 ) ) * 18 AS col1, + 35 * + - MIN( - - 62 )
----
-1404
-2170

skipif mysql # not compatible
query II rowsort label-8863
SELECT - SUM ( DISTINCT + - ( - 78 ) ) * 18 AS col1, + 35 * + - MIN ( - - 62 )
----
-1404
-2170

onlyif mysql # aggregate syntax: 
query I rowsort label-8864
SELECT + COUNT( * ) * - 73 * + - 58 * + 45 + + - 97
----
190433

skipif mysql # not compatible
query I rowsort label-8864
SELECT + COUNT ( * ) * - 73 * + - 58 * + 45 + + - 97
----
190433

onlyif mysql # aggregate syntax: 
query I rowsort label-8865
SELECT ALL - COUNT( * ) * + 60 AS col1
----
-60

skipif mysql # not compatible
query I rowsort label-8865
SELECT ALL - COUNT ( * ) * + 60 AS col1
----
-60

query I rowsort
SELECT 86 * + 55 col0
----
4730

onlyif mysql # aggregate syntax: 
query I rowsort label-8867
SELECT 22 * - COUNT( * )
----
-22

skipif mysql # not compatible
query I rowsort label-8867
SELECT 22 * - COUNT ( * )
----
-22

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8868
SELECT ALL + 46 * - 38 * - + COUNT( * ) * + MAX( + CAST( NULL AS DECIMAL ) ) * + - 97 / + 48
----
NULL

skipif mysql # not compatible
query I rowsort label-8868
SELECT ALL + 46 * - 38 * - + COUNT ( * ) * + MAX ( + CAST ( NULL AS REAL ) ) * + - 97 / + 48
----
NULL

query I rowsort
SELECT 2 - + + 66 + - NULLIF ( - 43, - 27 + COALESCE ( - 9, + 5 + + 56 * + 15, - COALESCE ( - 89, + 8 * + - 97 ) * ( + 11 ) ) / - 25 ) + - 21 col1
----
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-8870
SELECT 6 / - CASE - 47 WHEN - 92 THEN NULL WHEN 69 - + 3 + - 21 / + + COUNT( * ) THEN - CASE 82 WHEN - 12 / + 99 * 31 THEN + 32 ELSE NULL END * + - 1 - 10 * 1 END * + 15 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8870
SELECT 6 / - CASE - 47 WHEN - 92 THEN NULL WHEN 69 - + 3 + - 21 / + + COUNT ( * ) THEN - CASE 82 WHEN - 12 / + 99 * 31 THEN + 32 ELSE NULL END * + - 1 - 10 * 1 END * + 15 AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8871
SELECT ALL 48 * NULLIF ( AVG ( CAST( NULL AS SIGNED ) ), + ( - 15 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-8871
SELECT ALL 48 * NULLIF ( AVG ( CAST ( NULL AS INTEGER ) ), + ( - 15 ) )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8872
SELECT DISTINCT - CASE - 42 WHEN 74 + - - 79 THEN NULL ELSE - - 87 END DIV 92
----
0

skipif mysql # not compatible
query I rowsort label-8872
SELECT DISTINCT - CASE - 42 WHEN 74 + - - 79 THEN NULL ELSE - - 87 END / 92
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8873
SELECT ALL COUNT( + 18 )
----
1

skipif mysql # not compatible
query I rowsort label-8873
SELECT ALL COUNT ( + 18 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8874
SELECT DISTINCT + COUNT( * ) + 23 AS col2
----
24

skipif mysql # not compatible
query I rowsort label-8874
SELECT DISTINCT + COUNT ( * ) + 23 AS col2
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-8875
SELECT 11 + 25 * + COUNT( * ) * + 2 * - 36 * - 20 + 6
----
36017

skipif mysql # not compatible
query I rowsort label-8875
SELECT 11 + 25 * + COUNT ( * ) * + 2 * - 36 * - 20 + 6
----
36017

query I rowsort
SELECT 47 - - + 79 * - ( - 19 ) AS col1
----
1548

query I rowsort
SELECT 21 + 29 col0
----
50

query I rowsort
SELECT DISTINCT - 84 * 65
----
-5460

query I rowsort
SELECT 37 + - 33 + - CASE 7 WHEN + ( + 50 ) THEN + 24 END + + - 97
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8880
SELECT ALL - 72 + + + 8 - + CAST( NULL AS SIGNED ) / - 97 + + CAST( NULL AS SIGNED ) + - - 65 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8880
SELECT ALL - 72 + + + 8 - + CAST ( NULL AS INTEGER ) / - 97 + + CAST ( NULL AS INTEGER ) + - - 65 col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8881
SELECT ALL 80 AS col2, - COUNT( * )
----
80
-1

skipif mysql # not compatible
query II rowsort label-8881
SELECT ALL 80 AS col2, - COUNT ( * )
----
80
-1

query I rowsort
SELECT 38 + + 58 - - - 59 AS col0
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-8883
SELECT 84 + COUNT( * ) - - - ( 83 )
----
2

skipif mysql # not compatible
query I rowsort label-8883
SELECT 84 + COUNT ( * ) - - - ( 83 )
----
2

query I rowsort
SELECT ALL + - 22 - - 23 AS col2
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-8885
SELECT 18 DIV - - 85 * - 69 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-8885
SELECT 18 / - - 85 * - 69 AS col1
----
0

query I rowsort
SELECT + 59 + COALESCE ( - 57, - + 7 )
----
2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8887
SELECT COALESCE ( 43, - CASE + ( + CASE + 60 WHEN CAST( NULL AS SIGNED ) THEN 1 + - CAST( NULL AS SIGNED ) / 21 WHEN 94 / + 58 / + 2 THEN + 19 WHEN - 83 THEN 9 ELSE NULL END ) WHEN 46 THEN 61 ELSE + 30 - ( - 42 ) END ) * + 70 col1
----
3010

skipif mysql # not compatible
query I rowsort label-8887
SELECT COALESCE ( 43, - CASE + ( + CASE + 60 WHEN CAST ( NULL AS INTEGER ) THEN 1 + - CAST ( NULL AS INTEGER ) / 21 WHEN 94 / + 58 / + 2 THEN + 19 WHEN - 83 THEN 9 ELSE NULL END ) WHEN 46 THEN 61 ELSE + 30 - ( - 42 ) END ) * + 70 col1
----
3010

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8888
SELECT COALESCE ( 13, + 8 * - 40 ) + - 29 + + COUNT( * ) * - 65 + + COUNT( * ) + + + COUNT( * ) + 18 * + 1 DIV - + 29 AS col2
----
-79

skipif mysql # not compatible
query I rowsort label-8888
SELECT COALESCE ( 13, + 8 * - 40 ) + - 29 + + COUNT ( * ) * - 65 + + COUNT ( * ) + + + COUNT ( * ) + 18 * + 1 / - + 29 AS col2
----
-79

onlyif mysql # DIV for integer division: 
query I rowsort label-8889
SELECT DISTINCT 47 DIV + 16 AS col2
----
2

skipif mysql # not compatible
query I rowsort label-8889
SELECT DISTINCT 47 / + 16 AS col2
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-8890
SELECT DISTINCT - - MAX( DISTINCT 58 )
----
58

skipif mysql # not compatible
query I rowsort label-8890
SELECT DISTINCT - - MAX ( DISTINCT 58 )
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-8891
SELECT - ( + + 3 ) + + COUNT( * ) - - - SUM( DISTINCT + ( - 48 ) ) + 29 - 39 col1
----
36

skipif mysql # not compatible
query I rowsort label-8891
SELECT - ( + + 3 ) + + COUNT ( * ) - - - SUM ( DISTINCT + ( - 48 ) ) + 29 - 39 col1
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-8892
SELECT ALL 79 * - COUNT( * )
----
-79

skipif mysql # not compatible
query I rowsort label-8892
SELECT ALL 79 * - COUNT ( * )
----
-79

onlyif mysql # aggregate syntax: 
query I rowsort label-8893
SELECT 73 * 26 + - COUNT( * ) AS col0
----
1897

skipif mysql # not compatible
query I rowsort label-8893
SELECT 73 * 26 + - COUNT ( * ) AS col0
----
1897

query II rowsort
SELECT + 99 col0, 15
----
99
15

query I rowsort
SELECT ALL + + 1 AS col2
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-8896
SELECT 29 * 73 - 67 col1, CASE 86 WHEN - ( 69 ) THEN ( + NULLIF ( + + ( 3 ), + 14 * COALESCE ( NULLIF ( - + 86, 4 / 40 + ( 20 + - COUNT( * ) * - 38 ) ), + 83 * 45 ) - + NULLIF ( + 3, ( 58 ) ) ) ) / CASE + 34 * + 50 WHEN 91 * 54 THEN - 58 + 80 WHEN 34 THEN NULL END WHEN - 45 / 78 THEN + 23 / + 14 + - 19 * 53 END AS col2
----
2050
NULL

skipif mysql # not compatible
query II rowsort label-8896
SELECT 29 * 73 - 67 col1, CASE 86 WHEN - ( 69 ) THEN ( + NULLIF ( + + ( 3 ), + 14 * COALESCE ( NULLIF ( - + 86, 4 / 40 + ( 20 + - COUNT ( * ) * - 38 ) ), + 83 * 45 ) - + NULLIF ( + 3, ( 58 ) ) ) ) / CASE + 34 * + 50 WHEN 91 * 54 THEN - 58 + 80 WHEN 34 THEN NULL END WHEN - 45 / 78 THEN + 23 / + 14 + - 19 * 53 END AS col2
----
2050
NULL

query I rowsort
SELECT + 21 * + + 78 + 1 + + - 34
----
1605

onlyif mysql # aggregate syntax: 
query I rowsort label-8898
SELECT + + COUNT( * ) + - NULLIF ( - 10, + + 47 )
----
11

skipif mysql # not compatible
query I rowsort label-8898
SELECT + + COUNT ( * ) + - NULLIF ( - 10, + + 47 )
----
11

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8899
SELECT DISTINCT + NULLIF ( - 79, - AVG ( ALL - 46 ) / - 58 * + 3 + CASE WHEN + COUNT( * ) < + CAST( - ( - 40 ) AS SIGNED ) THEN CASE - 39 WHEN - 42 * + AVG ( ( 2 ) ) THEN 30 + + 52 * + 40 ELSE + 68 END + 7 END ) * + 63
----
-4977

skipif mysql # not compatible
query I rowsort label-8899
SELECT DISTINCT + NULLIF ( - 79, - AVG ( ALL - 46 ) / - 58 * + 3 + CASE WHEN + COUNT ( * ) < + CAST ( - ( - 40 ) AS INTEGER ) THEN CASE - 39 WHEN - 42 * + AVG ( ( 2 ) ) THEN 30 + + 52 * + 40 ELSE + 68 END + 7 END ) * + 63
----
-4977

query II rowsort
SELECT ALL + 51 col0, + 21 * + 66
----
51
1386

onlyif mysql # aggregate syntax: 
query I rowsort label-8901
SELECT + COUNT( ALL + 35 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-8901
SELECT + COUNT ( ALL + 35 ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8902
SELECT + 78 + 49 - - + COUNT( * ) AS col0
----
128

skipif mysql # not compatible
query I rowsort label-8902
SELECT + 78 + 49 - - + COUNT ( * ) AS col0
----
128

onlyif mysql # aggregate syntax: 
query II rowsort label-8903
SELECT + NULLIF ( 40, + - COUNT( * ) * 45 * + 11 * + 78 + - 82 ), 24 col2
----
40
24

skipif mysql # not compatible
query II rowsort label-8903
SELECT + NULLIF ( 40, + - COUNT ( * ) * 45 * + 11 * + 78 + - 82 ), 24 col2
----
40
24

query I rowsort
SELECT - 55 * - 18 AS col2
----
990

query I rowsort
SELECT ALL + 95 * + - 99 + 63
----
-9342

onlyif mysql # aggregate syntax: 
query I rowsort label-8906
SELECT 69 * MIN( - + 12 ) + COALESCE ( - 34, + - COUNT( * ) * - 31, 43 + 61 ) AS col2
----
-862

skipif mysql # not compatible
query I rowsort label-8906
SELECT 69 * MIN ( - + 12 ) + COALESCE ( - 34, + - COUNT ( * ) * - 31, 43 + 61 ) AS col2
----
-862

query I rowsort
SELECT DISTINCT 72 * 35
----
2520

onlyif mysql # aggregate syntax: 
query I rowsort label-8908
SELECT + 43 + + 84 + + - MIN( + 73 ) AS col0
----
54

skipif mysql # not compatible
query I rowsort label-8908
SELECT + 43 + + 84 + + - MIN ( + 73 ) AS col0
----
54

query I rowsort
SELECT 51 * + NULLIF ( + 87, + - 42 ) - 40
----
4397

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8910
SELECT 42 * 22 / - + CAST( NULL AS SIGNED ) * - + 13 + + COUNT( * ) + COUNT( * ) * + 15 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8910
SELECT 42 * 22 / - + CAST ( NULL AS INTEGER ) * - + 13 + + COUNT ( * ) + COUNT ( * ) * + 15 AS col2
----
NULL

query I rowsort
SELECT ALL - 18 * - 55 + - 8 AS col1
----
982

onlyif mysql # aggregate syntax: 
query I rowsort label-8912
SELECT ALL + CASE - ( 49 ) WHEN + + ( + 64 ) * - - ( - + 78 ) * - NULLIF ( + 48, 43 / 14 + - NULLIF ( - - NULLIF ( 16, 19 + + - ( - COALESCE ( - 97, 92 + COUNT( * ) ) ) ), + 21 + + 73 ) - - 25 ) - 41 * + 90 + 97 THEN NULL ELSE 80 END
----
80

skipif mysql # not compatible
query I rowsort label-8912
SELECT ALL + CASE - ( 49 ) WHEN + + ( + 64 ) * - - ( - + 78 ) * - NULLIF ( + 48, 43 / 14 + - NULLIF ( - - NULLIF ( 16, 19 + + - ( - COALESCE ( - 97, 92 + COUNT ( * ) ) ) ), + 21 + + 73 ) - - 25 ) - 41 * + 90 + 97 THEN NULL ELSE 80 END
----
80

query I rowsort
SELECT + ( + 75 ) AS col1
----
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8914
SELECT - 76 * + 76 + + 22 * + CAST( + + COALESCE ( + - 39, - 7 * - 31 + 32, - 92 + + 93 ) AS SIGNED ) AS col0
----
-6634

skipif mysql # not compatible
query I rowsort label-8914
SELECT - 76 * + 76 + + 22 * + CAST ( + + COALESCE ( + - 39, - 7 * - 31 + 32, - 92 + + 93 ) AS INTEGER ) AS col0
----
-6634

query I rowsort
SELECT + 83 * 57 * + 99 col1
----
468369

query I rowsort
SELECT - 89 + - ( + 87 ) AS col1
----
-176

onlyif mysql # aggregate syntax: 
query II rowsort label-8917
SELECT ALL COUNT( * ) AS col1, - 97 - - - 73 - - 53 * - - 37
----
1
1791

skipif mysql # not compatible
query II rowsort label-8917
SELECT ALL COUNT ( * ) AS col1, - 97 - - - 73 - - 53 * - - 37
----
1
1791

onlyif mysql # aggregate syntax: 
query I rowsort label-8918
SELECT - 65 + + 96 * - COUNT( * ) * + 64 * - 82 + NULLIF ( + COUNT( * ), - 97 )
----
503744

skipif mysql # not compatible
query I rowsort label-8918
SELECT - 65 + + 96 * - COUNT ( * ) * + 64 * - 82 + NULLIF ( + COUNT ( * ), - 97 )
----
503744

query II rowsort
SELECT 92 AS col0, 79 - 14
----
92
65

onlyif mysql # aggregate syntax: 
query I rowsort label-8920
SELECT ALL + 43 + - COUNT( * ) + 21 col2
----
63

skipif mysql # not compatible
query I rowsort label-8920
SELECT ALL + 43 + - COUNT ( * ) + 21 col2
----
63

query I rowsort
SELECT + 53 * + ( COALESCE ( + + 12, - 18 ) )
----
636

onlyif mysql # aggregate syntax: 
query II rowsort label-8922
SELECT ALL 11 AS col0, + 51 * + 79 + 43 + - + SUM( ALL - + 77 ) + 96 AS col0
----
11
4245

skipif mysql # not compatible
query II rowsort label-8922
SELECT ALL 11 AS col0, + 51 * + 79 + 43 + - + SUM ( ALL - + 77 ) + 96 AS col0
----
11
4245

query I rowsort
SELECT - 29 * + 87 * + + 57
----
-143811

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8924
SELECT ALL NULLIF ( + CAST( NULL AS SIGNED ), 31 - - 37 - - - 5 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8924
SELECT ALL NULLIF ( + CAST ( NULL AS INTEGER ), 31 - - 37 - - - 5 )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8925
SELECT ALL + 16 DIV - 58
----
0

skipif mysql # not compatible
query I rowsort label-8925
SELECT ALL + 16 / - 58
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8926
SELECT - CASE - NULLIF ( ( + 67 ), 68 + - 19 + + 6 ) WHEN + 86 THEN - + ( ( + 4 ) ) + - CAST( + 72 AS SIGNED ) + NULLIF ( - + 53, - 72 ) / 81 END
----
NULL

skipif mysql # not compatible
query I rowsort label-8926
SELECT - CASE - NULLIF ( ( + 67 ), 68 + - 19 + + 6 ) WHEN + 86 THEN - + ( ( + 4 ) ) + - CAST ( + 72 AS INTEGER ) + NULLIF ( - + 53, - 72 ) / 81 END
----
NULL

query II rowsort
SELECT ALL + 97 AS col2, + 32 AS col0
----
97
32

query I rowsort
SELECT + - 35 - + 12 AS col2
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-8929
SELECT + MAX( 53 ) AS col0
----
53

skipif mysql # not compatible
query I rowsort label-8929
SELECT + MAX ( 53 ) AS col0
----
53

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8930
SELECT ALL - 73, + 44 - + 64 + + CAST( + 30 AS SIGNED ) * + 29 AS col2
----
-73
850

skipif mysql # not compatible
query II rowsort label-8930
SELECT ALL - 73, + 44 - + 64 + + CAST ( + 30 AS INTEGER ) * + 29 AS col2
----
-73
850

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8931
SELECT DISTINCT - + 57 * + 28, - 88 + + COUNT( DISTINCT - 84 ) DIV 39 AS col2
----
-1596
-88

skipif mysql # not compatible
query II rowsort label-8931
SELECT DISTINCT - + 57 * + 28, - 88 + + COUNT ( DISTINCT - 84 ) / 39 AS col2
----
-1596
-88

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8932
SELECT ALL 10 AS col2, 39 + - COUNT( * ) + CAST( NULL AS SIGNED ) + - ( - 77 ) / 67 * 63
----
10
NULL

skipif mysql # not compatible
query II rowsort label-8932
SELECT ALL 10 AS col2, 39 + - COUNT ( * ) + CAST ( NULL AS INTEGER ) + - ( - 77 ) / 67 * 63
----
10
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8933
SELECT - 10 - + - 64 DIV + + ( 59 )
----
-9

skipif mysql # not compatible
query I rowsort label-8933
SELECT - 10 - + - 64 / + + ( 59 )
----
-9

onlyif mysql # aggregate syntax: 
query II rowsort label-8934
SELECT ALL 32 col2, - SUM( + + 93 ) AS col0
----
32
-93

skipif mysql # not compatible
query II rowsort label-8934
SELECT ALL 32 col2, - SUM ( + + 93 ) AS col0
----
32
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-8935
SELECT - COUNT( * ) - 9 + + 45
----
35

skipif mysql # not compatible
query I rowsort label-8935
SELECT - COUNT ( * ) - 9 + + 45
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-8936
SELECT - - COUNT( * ) * - 27 AS col0
----
-27

skipif mysql # not compatible
query I rowsort label-8936
SELECT - - COUNT ( * ) * - 27 AS col0
----
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-8937
SELECT DISTINCT - 97 * + - MAX( DISTINCT ( - - 51 ) )
----
4947

skipif mysql # not compatible
query I rowsort label-8937
SELECT DISTINCT - 97 * + - MAX ( DISTINCT ( - - 51 ) )
----
4947

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8938
SELECT ALL + + 15 * CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-8938
SELECT ALL + + 15 * CAST ( NULL AS REAL )
----
NULL

query I rowsort
SELECT - - ( - 14 ) * - 85 AS col2
----
1190

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8940
SELECT 83 * + ( + ( - - 6 ) ) + + CASE - + 72 WHEN - AVG ( ALL + 41 ) * - ( + ( 36 ) ) * + + COUNT( * ) - - - MIN( ALL 23 ) + ( 73 ) + + COUNT( * ) * 47 THEN - ( - CASE 10 WHEN + 21 THEN NULL WHEN 38 THEN - CASE WHEN NOT + 9 IS NULL THEN 70 WHEN CAST( NULL AS DECIMAL ) * 3 IS NULL THEN NULL WHEN ( + 33 ) IS NOT NULL THEN NULL ELSE + 87 END + + 20 END ) WHEN 14 THEN 95 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8940
SELECT 83 * + ( + ( - - 6 ) ) + + CASE - + 72 WHEN - AVG ( ALL + 41 ) * - ( + ( 36 ) ) * + + COUNT ( * ) - - - MIN ( ALL 23 ) + ( 73 ) + + COUNT ( * ) * 47 THEN - ( - CASE 10 WHEN + 21 THEN NULL WHEN 38 THEN - CASE WHEN NOT + 9 IS NULL THEN 70 WHEN CAST ( NULL AS REAL ) * 3 IS NULL THEN NULL WHEN ( + 33 ) IS NOT NULL THEN NULL ELSE + 87 END + + 20 END ) WHEN 14 THEN 95 END AS col2
----
NULL

query I rowsort
SELECT + + 78 - - 99
----
177

query I rowsort
SELECT ALL + ( 11 ) AS col0
----
11

onlyif mysql # DIV for integer division: 
query I rowsort label-8943
SELECT DISTINCT - 34 DIV COALESCE ( + 69, 95 ) + + 14
----
14

skipif mysql # not compatible
query I rowsort label-8943
SELECT DISTINCT - 34 / COALESCE ( + 69, 95 ) + + 14
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-8944
SELECT + COUNT( - 23 )
----
1

skipif mysql # not compatible
query I rowsort label-8944
SELECT + COUNT ( - 23 )
----
1

query I rowsort
SELECT ALL - 67 * + - 44 + - - 38 * - 97 AS col0
----
-738

query I rowsort
SELECT + 2 + - 23 AS col2
----
-21

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8947
SELECT ALL ( - - CAST( NULL AS SIGNED ) ) * 10
----
NULL

skipif mysql # not compatible
query I rowsort label-8947
SELECT ALL ( - - CAST ( NULL AS INTEGER ) ) * 10
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8948
SELECT + 19 DIV 17 * - 47 AS col1
----
-47

skipif mysql # not compatible
query I rowsort label-8948
SELECT + 19 / 17 * - 47 AS col1
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-8949
SELECT ALL + 90 * - COUNT( * ) + - 79 - + 5 AS col0
----
-174

skipif mysql # not compatible
query I rowsort label-8949
SELECT ALL + 90 * - COUNT ( * ) + - 79 - + 5 AS col0
----
-174

onlyif mysql # aggregate syntax: 
query II rowsort label-8950
SELECT ( - COUNT( * ) ) AS col0, 16
----
-1
16

skipif mysql # not compatible
query II rowsort label-8950
SELECT ( - COUNT ( * ) ) AS col0, 16
----
-1
16

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8951
SELECT - 97 * + + 29 + - - CAST( + 16 AS SIGNED ) col1
----
-2797

skipif mysql # not compatible
query I rowsort label-8951
SELECT - 97 * + + 29 + - - CAST ( + 16 AS INTEGER ) col1
----
-2797

onlyif mysql # aggregate syntax: 
query I rowsort label-8952
SELECT + ( - COUNT( * ) ) col0
----
-1

skipif mysql # not compatible
query I rowsort label-8952
SELECT + ( - COUNT ( * ) ) col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8953
SELECT CASE + ( - - 68 ) WHEN - 36 + - COUNT( * ) THEN + + 50 END
----
NULL

skipif mysql # not compatible
query I rowsort label-8953
SELECT CASE + ( - - 68 ) WHEN - 36 + - COUNT ( * ) THEN + + 50 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8954
SELECT ALL COUNT( ALL - 79 ) * - - 83
----
83

skipif mysql # not compatible
query I rowsort label-8954
SELECT ALL COUNT ( ALL - 79 ) * - - 83
----
83

query II rowsort
SELECT + 65 * - 53 col1, - 43
----
-3445
-43

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8956
SELECT ALL + 58 * + CAST( NULL AS DECIMAL ) + - - 4
----
NULL

skipif mysql # not compatible
query I rowsort label-8956
SELECT ALL + 58 * + CAST ( NULL AS REAL ) + - - 4
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8957
SELECT ALL 34 * - 37 + - 87 + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8957
SELECT ALL 34 * - 37 + - 87 + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8958
SELECT + ( + 89 ) AS col0, NULLIF ( + 38, + CAST( - - 28 AS SIGNED ) + 56 ) AS col1
----
89
38

skipif mysql # not compatible
query II rowsort label-8958
SELECT + ( + 89 ) AS col0, NULLIF ( + 38, + CAST ( - - 28 AS INTEGER ) + 56 ) AS col1
----
89
38

onlyif mysql # aggregate syntax: 
query I rowsort label-8959
SELECT ALL COUNT( * ) * - 61
----
-61

skipif mysql # not compatible
query I rowsort label-8959
SELECT ALL COUNT ( * ) * - 61
----
-61

query I rowsort
SELECT ALL NULLIF ( 49, + - 81 )
----
49

query I rowsort
SELECT + 5 + + 83 - 72
----
16

query I rowsort
SELECT ALL - 31 * 43 - + 11 AS col2
----
-1344

onlyif mysql # aggregate syntax: 
query I rowsort label-8963
SELECT SUM( DISTINCT + + 64 )
----
64

skipif mysql # not compatible
query I rowsort label-8963
SELECT SUM ( DISTINCT + + 64 )
----
64

query I rowsort
SELECT + + 64 + - 46 AS col2
----
18

query I rowsort
SELECT + 14 * - + 51 AS col0
----
-714

onlyif mysql # DIV for integer division: 
query I rowsort label-8966
SELECT ALL 84 DIV - ( + 90 ) + - 86 - + 71 * + 90 * + + 16 * ( - 0 ) AS col2
----
-86

skipif mysql # not compatible
query I rowsort label-8966
SELECT ALL 84 / - ( + 90 ) + - 86 - + 71 * + 90 * + + 16 * ( - 0 ) AS col2
----
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-8967
SELECT MIN( ALL + 62 ) * - 7 + + 69 * 50 AS col1
----
3016

skipif mysql # not compatible
query I rowsort label-8967
SELECT MIN ( ALL + 62 ) * - 7 + + 69 * 50 AS col1
----
3016

query I rowsort
SELECT - COALESCE ( - ( + - 45 ), + + 70 + - NULLIF ( + - COALESCE ( - 62, + 62 ), + 77 ) ) - - + 52 * + 36 + 78 * - 26 AS col0
----
-201

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8969
SELECT + 72 + - - MIN( + 80 ) + - CAST( NULL AS SIGNED ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8969
SELECT + 72 + - - MIN ( + 80 ) + - CAST ( NULL AS INTEGER ) col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8970
SELECT + 81 DIV - + ( 69 ) + 15
----
14

skipif mysql # not compatible
query I rowsort label-8970
SELECT + 81 / - + ( 69 ) + 15
----
14

query I rowsort
SELECT + ( + + 0 ) + - + 5 + - + 23
----
-28

query I rowsort
SELECT ALL - ( + - 86 ) AS col0
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-8973
SELECT DISTINCT - COUNT( * ) * + 67
----
-67

skipif mysql # not compatible
query I rowsort label-8973
SELECT DISTINCT - COUNT ( * ) * + 67
----
-67

query I rowsort
SELECT ALL + 68 * - 6 * - - 29 * + - 42
----
496944

query I rowsort
SELECT + 30 * - ( - - 78 ) + ( + 92 ) AS col1
----
-2248

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8976
SELECT 16 + + + 30 * - + CAST( + - ( 67 ) AS SIGNED ) + - 39 DIV + 64
----
2026

skipif mysql # not compatible
query I rowsort label-8976
SELECT 16 + + + 30 * - + CAST ( + - ( 67 ) AS INTEGER ) + - 39 / + 64
----
2026

onlyif mysql # aggregate syntax: 
query I rowsort label-8977
SELECT - + COALESCE ( - + COUNT( * ), - 1, - 11 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-8977
SELECT - + COALESCE ( - + COUNT ( * ), - 1, - 11 ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8978
SELECT 34 + COUNT( * ) * COUNT( * ) * + 83 + 69 AS col1
----
186

skipif mysql # not compatible
query I rowsort label-8978
SELECT 34 + COUNT ( * ) * COUNT ( * ) * + 83 + 69 AS col1
----
186

onlyif mysql # aggregate syntax: 
query I rowsort label-8979
SELECT - 57 + - - COUNT( * )
----
-56

skipif mysql # not compatible
query I rowsort label-8979
SELECT - 57 + - - COUNT ( * )
----
-56

query I rowsort
SELECT 24 * + + 90
----
2160

onlyif mysql # aggregate syntax: 
query I rowsort label-8981
SELECT DISTINCT + + COUNT( * ) + 61 col1
----
62

skipif mysql # not compatible
query I rowsort label-8981
SELECT DISTINCT + + COUNT ( * ) + 61 col1
----
62

query II rowsort
SELECT ALL - - ( 97 ), + 7 AS col1
----
97
7

query I rowsort
SELECT ALL + 52 + 11
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-8984
SELECT ALL + SUM( DISTINCT - NULLIF ( - 23, ( + 44 ) ) ) + - 16 * + MAX( DISTINCT 14 ) * - 81 * + - 2
----
-36265

skipif mysql # not compatible
query I rowsort label-8984
SELECT ALL + SUM ( DISTINCT - NULLIF ( - 23, ( + 44 ) ) ) + - 16 * + MAX ( DISTINCT 14 ) * - 81 * + - 2
----
-36265

query I rowsort
SELECT 12 + + + 75
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-8986
SELECT 78 * - 22 * + - COUNT( * ) + + 21 * - - 86
----
3522

skipif mysql # not compatible
query I rowsort label-8986
SELECT 78 * - 22 * + - COUNT ( * ) + + 21 * - - 86
----
3522

onlyif mysql # aggregate syntax: 
query I rowsort label-8987
SELECT ALL + CASE - COUNT( * ) WHEN 45 THEN + + NULLIF ( + 33, - 95 ) * + 88 END + + 4 - + ( - COUNT( * ) ) * + CASE + 69 WHEN + 16 * + CASE - 15 WHEN - 82 THEN - - 27 / 46 + + 21 * 49 WHEN + 1 THEN 33 ELSE 69 + + 7 END THEN NULL WHEN AVG ( ALL - 47 ) THEN SUM( 57 ) END * 19
----
NULL

skipif mysql # not compatible
query I rowsort label-8987
SELECT ALL + CASE - COUNT ( * ) WHEN 45 THEN + + NULLIF ( + 33, - 95 ) * + 88 END + + 4 - + ( - COUNT ( * ) ) * + CASE + 69 WHEN + 16 * + CASE - 15 WHEN - 82 THEN - - 27 / 46 + + 21 * 49 WHEN + 1 THEN 33 ELSE 69 + + 7 END THEN NULL WHEN AVG ( ALL - 47 ) THEN SUM ( 57 ) END * 19
----
NULL

query I rowsort
SELECT 88 * - 47 - - 95
----
-4041

onlyif mysql # aggregate syntax: 
query II rowsort label-8989
SELECT ALL - 76 AS col0, 84 - + COUNT( * ) + - - 52 - + + 30 AS col0
----
-76
105

skipif mysql # not compatible
query II rowsort label-8989
SELECT ALL - 76 AS col0, 84 - + COUNT ( * ) + - - 52 - + + 30 AS col0
----
-76
105

onlyif mysql # aggregate syntax: 
query I rowsort label-8990
SELECT ALL - MAX( ALL + 50 )
----
-50

skipif mysql # not compatible
query I rowsort label-8990
SELECT ALL - MAX ( ALL + 50 )
----
-50

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8991
SELECT COUNT( * ) * 72 * + CAST( + 4 AS SIGNED )
----
288

skipif mysql # not compatible
query I rowsort label-8991
SELECT COUNT ( * ) * 72 * + CAST ( + 4 AS INTEGER )
----
288

onlyif mysql # aggregate syntax: 
query I rowsort label-8992
SELECT ALL 24 * 54 * - + 60 * - MAX( - 34 )
----
-2643840

skipif mysql # not compatible
query I rowsort label-8992
SELECT ALL 24 * 54 * - + 60 * - MAX ( - 34 )
----
-2643840

onlyif mysql # aggregate syntax: 
query II rowsort label-8993
SELECT ALL - COUNT( * ) - - 57 - + 62 * + + 48 AS col0, + 59 * + 72 AS col1
----
-2920
4248

skipif mysql # not compatible
query II rowsort label-8993
SELECT ALL - COUNT ( * ) - - 57 - + 62 * + + 48 AS col0, + 59 * + 72 AS col1
----
-2920
4248

query I rowsort
SELECT ALL 17 - - 47 col0
----
64

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8995
SELECT DISTINCT - CASE - 91 WHEN - + 51 * - CAST( - 10 AS SIGNED ) - + 96 THEN NULL ELSE 52 END
----
-52

skipif mysql # not compatible
query I rowsort label-8995
SELECT DISTINCT - CASE - 91 WHEN - + 51 * - CAST ( - 10 AS INTEGER ) - + 96 THEN NULL ELSE 52 END
----
-52

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8996
SELECT CAST( NULL AS SIGNED ) * 74 * - MIN( DISTINCT - 22 ) + + SUM( 79 ) * + + 7
----
NULL

skipif mysql # not compatible
query I rowsort label-8996
SELECT CAST ( NULL AS INTEGER ) * 74 * - MIN ( DISTINCT - 22 ) + + SUM ( 79 ) * + + 7
----
NULL

query I rowsort
SELECT ALL 64 * - 53 AS col2
----
-3392

onlyif mysql # aggregate syntax: 
query I rowsort label-8998
SELECT ALL + COUNT( 80 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-8998
SELECT ALL + COUNT ( 80 ) AS col0
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-8999
SELECT - - COALESCE ( - 72, + - 11 DIV + - 93 ) col0
----
-72

skipif mysql # not compatible
query I rowsort label-8999
SELECT - - COALESCE ( - 72, + - 11 / + - 93 ) col0
----
-72

query I rowsort
SELECT - 69 * - + 55 AS col1
----
3795

query I rowsort
SELECT ALL + 63 * + 84
----
5292

query II rowsort
SELECT DISTINCT + 18, + 49 AS col2
----
18
49

onlyif mysql # aggregate syntax: 
query I rowsort label-9003
SELECT ALL MIN( - 7 ) AS col0
----
-7

skipif mysql # not compatible
query I rowsort label-9003
SELECT ALL MIN ( - 7 ) AS col0
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-9004
SELECT + 6 * 3 * + - COUNT( * )
----
-18

skipif mysql # not compatible
query I rowsort label-9004
SELECT + 6 * 3 * + - COUNT ( * )
----
-18

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9005
SELECT ALL 45 * - + 98 - + 24 * 21 + + 44 + - ( + ( COUNT( * ) ) ) * - - CAST( + COALESCE ( - 62, + 17 ) AS SIGNED ) * 43 + 55
----
-2149

skipif mysql # not compatible
query I rowsort label-9005
SELECT ALL 45 * - + 98 - + 24 * 21 + + 44 + - ( + ( COUNT ( * ) ) ) * - - CAST ( + COALESCE ( - 62, + 17 ) AS INTEGER ) * 43 + 55
----
-2149

query I rowsort
SELECT 72 - 28 + + 93
----
137

onlyif mysql # aggregate syntax: 
query I rowsort label-9007
SELECT ALL COUNT( * ) + 93
----
94

skipif mysql # not compatible
query I rowsort label-9007
SELECT ALL COUNT ( * ) + 93
----
94

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9008
SELECT - 72 + + 60 + CAST( NULL AS SIGNED ) * - 48 + + 53
----
NULL

skipif mysql # not compatible
query I rowsort label-9008
SELECT - 72 + + 60 + CAST ( NULL AS INTEGER ) * - 48 + + 53
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9009
SELECT - 86 + - 47 * 37 DIV + COUNT( * )
----
-1825

skipif mysql # not compatible
query I rowsort label-9009
SELECT - 86 + - 47 * 37 / + COUNT ( * )
----
-1825

query I rowsort
SELECT ALL - 56 + - + 64
----
-120

onlyif mysql # DIV for integer division: 
query II rowsort label-9011
SELECT - + 95 AS col2, - 77 DIV - 23 AS col2
----
-95
3

skipif mysql # not compatible
query II rowsort label-9011
SELECT - + 95 AS col2, - 77 / - 23 AS col2
----
-95
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9012
SELECT ( + 94 ) - + 25 * + + CASE - 21 WHEN 65 THEN - - COUNT( * ) + + - COUNT( * ) * 26 / 18 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-9012
SELECT ( + 94 ) - + 25 * + + CASE - 21 WHEN 65 THEN - - COUNT ( * ) + + - COUNT ( * ) * 26 / 18 ELSE NULL END
----
NULL

query I rowsort
SELECT ALL NULLIF ( 8, - 58 * + ( - 72 ) / + - 65 ) AS col0
----
8

query I rowsort
SELECT ALL + 6 + - 44
----
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-9015
SELECT + COUNT( * ) - - 14
----
15

skipif mysql # not compatible
query I rowsort label-9015
SELECT + COUNT ( * ) - - 14
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-9016
SELECT ALL + MIN( + ( - 35 ) ) * - - 84 * + 1
----
-2940

skipif mysql # not compatible
query I rowsort label-9016
SELECT ALL + MIN ( + ( - 35 ) ) * - - 84 * + 1
----
-2940

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9017
SELECT 25 + + CAST( + 47 AS SIGNED ) DIV - - 66
----
25

skipif mysql # not compatible
query I rowsort label-9017
SELECT 25 + + CAST ( + 47 AS INTEGER ) / - - 66
----
25

onlyif mysql # DIV for integer division: 
query II rowsort label-9018
SELECT 2 DIV + 95, + 94 AS col0
----
0
94

skipif mysql # not compatible
query II rowsort label-9018
SELECT 2 / + 95, + 94 AS col0
----
0
94

query I rowsort
SELECT ( + 74 ) + - 37 AS col2
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-9020
SELECT ALL - SUM( ALL + 19 )
----
-19

skipif mysql # not compatible
query I rowsort label-9020
SELECT ALL - SUM ( ALL + 19 )
----
-19

query I rowsort
SELECT 47 * - 86
----
-4042

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9022
SELECT DISTINCT + ( + 75 ) * - 53 - 32 - + CASE - CAST( NULL AS SIGNED ) WHEN - + MIN( 72 ) THEN NULL WHEN 2 + - 92 + 49 THEN + 8 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-9022
SELECT DISTINCT + ( + 75 ) * - 53 - 32 - + CASE - CAST ( NULL AS INTEGER ) WHEN - + MIN ( 72 ) THEN NULL WHEN 2 + - 92 + 49 THEN + 8 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9023
SELECT MAX( 31 ), - 36 + COUNT( * ) + + 45 + - COALESCE ( - - 85, - COUNT( * ) ) AS col2
----
31
-75

skipif mysql # not compatible
query II rowsort label-9023
SELECT MAX ( 31 ), - 36 + COUNT ( * ) + + 45 + - COALESCE ( - - 85, - COUNT ( * ) ) AS col2
----
31
-75

query I rowsort
SELECT 37 * - - ( 55 ) AS col1
----
2035

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9025
SELECT DISTINCT + 39 * COUNT( * ) * 11 * + + CAST( 41 AS SIGNED ) col0
----
17589

skipif mysql # not compatible
query I rowsort label-9025
SELECT DISTINCT + 39 * COUNT ( * ) * 11 * + + CAST ( 41 AS INTEGER ) col0
----
17589

query I rowsort
SELECT DISTINCT + 30 * + 39
----
1170

onlyif mysql # DIV for integer division: 
query I rowsort label-9027
SELECT 50 + + + 25 DIV + 4
----
56

skipif mysql # not compatible
query I rowsort label-9027
SELECT 50 + + + 25 / + 4
----
56

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9028
SELECT ALL + CAST( + 8 AS SIGNED ) * 4 - - - 92 * + 83 * - - 59
----
-450492

skipif mysql # not compatible
query I rowsort label-9028
SELECT ALL + CAST ( + 8 AS INTEGER ) * 4 - - - 92 * + 83 * - - 59
----
-450492

query I rowsort
SELECT DISTINCT - COALESCE ( - + 30, - 38 )
----
30

query I rowsort
SELECT ALL - COALESCE ( 34, - 80 )
----
-34

onlyif mysql # DIV for integer division: 
query I rowsort label-9031
SELECT 40 DIV + + 96
----
0

skipif mysql # not compatible
query I rowsort label-9031
SELECT 40 / + + 96
----
0

query I rowsort
SELECT ALL - 21 * - 60 AS col2
----
1260

query I rowsort
SELECT 46 + - + 67 * + - 60 AS col2
----
4066

query I rowsort
SELECT 55 + - 75
----
-20

query I rowsort
SELECT ALL - NULLIF ( + + 83, - 18 ) AS col0
----
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-9036
SELECT 15 + - 5 * COUNT( * )
----
10

skipif mysql # not compatible
query I rowsort label-9036
SELECT 15 + - 5 * COUNT ( * )
----
10

query I rowsort
SELECT + + 58 * 28 + + 97 AS col1
----
1721

query I rowsort
SELECT - 90 + - + 18 AS col2
----
-108

onlyif mysql # aggregate syntax: 
query II rowsort label-9039
SELECT ALL 29 * 52 * - - MIN( + 30 ) AS col0, + 7 - + + 24 + + 49 * - ( - + 46 )
----
45240
2237

skipif mysql # not compatible
query II rowsort label-9039
SELECT ALL 29 * 52 * - - MIN ( + 30 ) AS col0, + 7 - + + 24 + + 49 * - ( - + 46 )
----
45240
2237

onlyif mysql # DIV for integer division: 
query I rowsort label-9040
SELECT DISTINCT - COALESCE ( 72, - 38 DIV 97 ) * - 71
----
5112

skipif mysql # not compatible
query I rowsort label-9040
SELECT DISTINCT - COALESCE ( 72, - 38 / 97 ) * - 71
----
5112

onlyif mysql # aggregate syntax: 
query I rowsort label-9041
SELECT ALL + + COUNT( - - 26 ) + ( + - 96 )
----
-95

skipif mysql # not compatible
query I rowsort label-9041
SELECT ALL + + COUNT ( - - 26 ) + ( + - 96 )
----
-95

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9042
SELECT - 43 + + 0 * NULLIF ( - 50, 94 + - 24 + - 98 - + COUNT( * ) * CAST( - 69 AS SIGNED ) * + 17 - - 26 * - ( CASE + - 6 WHEN ( - 46 ) THEN + - 82 ELSE NULL END ) ) DIV 9 - 79
----
-122

skipif mysql # not compatible
query I rowsort label-9042
SELECT - 43 + + 0 * NULLIF ( - 50, 94 + - 24 + - 98 - + COUNT ( * ) * CAST ( - 69 AS INTEGER ) * + 17 - - 26 * - ( CASE + - 6 WHEN ( - 46 ) THEN + - 82 ELSE NULL END ) ) / 9 - 79
----
-122

onlyif mysql # aggregate syntax: 
query I rowsort label-9043
SELECT + + 40 - - 38 * MAX( - 82 )
----
-3076

skipif mysql # not compatible
query I rowsort label-9043
SELECT + + 40 - - 38 * MAX ( - 82 )
----
-3076

query I rowsort
SELECT - 56 + - 46
----
-102

query I rowsort
SELECT + - 65 - + 2 * + + 27 + - ( - 70 ) * 14 AS col2
----
861

query I rowsort
SELECT - + 96 * 61 AS col2
----
-5856

query I rowsort
SELECT ALL + 85 + + + ( + - 46 ) AS col0
----
39

query I rowsort
SELECT ALL + 16 + - - 85 + - 63
----
38

query I rowsort
SELECT DISTINCT - 57 + + 50
----
-7

query I rowsort
SELECT + NULLIF ( 77, + 68 + - 32 ) + - - 71
----
148

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9051
SELECT ALL - CAST( NULL AS SIGNED ) + - CAST( 62 AS DECIMAL ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9051
SELECT ALL - CAST ( NULL AS INTEGER ) + - CAST ( 62 AS REAL ) col0
----
NULL

query I rowsort
SELECT COALESCE ( 87, + NULLIF ( + 26, 99 ) * 69 * + - 50 * + ( - + 93 ) ) AS col1
----
87

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9053
SELECT ALL 61 + + COALESCE ( + - 28, + - COALESCE ( + 83, - 78 DIV 83 ) * 58 * CAST( NULL AS SIGNED ), ( 10 ) * - + 84 - COUNT( * ) + + 17 * + - 25 + + - 31 ) AS col1
----
33

skipif mysql # not compatible
query I rowsort label-9053
SELECT ALL 61 + + COALESCE ( + - 28, + - COALESCE ( + 83, - 78 / 83 ) * 58 * CAST ( NULL AS INTEGER ), ( 10 ) * - + 84 - COUNT ( * ) + + 17 * + - 25 + + - 31 ) AS col1
----
33

query I rowsort
SELECT + 72 * + 82 AS col2
----
5904

query I rowsort
SELECT + 84 + + 43 + 44 AS col2
----
171

onlyif mysql # aggregate syntax: 
query I rowsort label-9056
SELECT DISTINCT 96 - + + COUNT( * ) AS col0
----
95

skipif mysql # not compatible
query I rowsort label-9056
SELECT DISTINCT 96 - + + COUNT ( * ) AS col0
----
95

query II rowsort
SELECT ALL 74 AS col2, + 2
----
74
2

onlyif mysql # aggregate syntax: 
query I rowsort label-9058
SELECT - MAX( DISTINCT + 29 )
----
-29

skipif mysql # not compatible
query I rowsort label-9058
SELECT - MAX ( DISTINCT + 29 )
----
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-9059
SELECT - ( - MIN( 66 ) )
----
66

skipif mysql # not compatible
query I rowsort label-9059
SELECT - ( - MIN ( 66 ) )
----
66

query I rowsort
SELECT + 25 + - 14 * + 5
----
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-9061
SELECT ALL 31 - - COUNT( * )
----
32

skipif mysql # not compatible
query I rowsort label-9061
SELECT ALL 31 - - COUNT ( * )
----
32

query I rowsort
SELECT + 36 * + 25 AS col1
----
900

query I rowsort
SELECT ALL 48 * - 60
----
-2880

onlyif mysql # aggregate syntax: 
query I rowsort label-9064
SELECT - 35 * COUNT( - + 85 ) + + 15 AS col1
----
-20

skipif mysql # not compatible
query I rowsort label-9064
SELECT - 35 * COUNT ( - + 85 ) + + 15 AS col1
----
-20

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9065
SELECT DISTINCT 60 * - + 49 - - MIN( + 86 ) * 69 DIV - 89, - COUNT( * ) AS col1
----
-3006
-1

skipif mysql # not compatible
query II rowsort label-9065
SELECT DISTINCT 60 * - + 49 - - MIN ( + 86 ) * 69 / - 89, - COUNT ( * ) AS col1
----
-3006
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9066
SELECT + MAX( - + 79 ) * + 47 * + COUNT( * ) DIV - COUNT( * )
----
3713

skipif mysql # not compatible
query I rowsort label-9066
SELECT + MAX ( - + 79 ) * + 47 * + COUNT ( * ) / - COUNT ( * )
----
3713

query I rowsort
SELECT + CASE - + 76 WHEN + 88 THEN + 34 WHEN 33 THEN NULL ELSE + 61 * - 67 END AS col0
----
-4087

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-9068
SELECT + 47 * + ( - CAST( NULL AS SIGNED ) ) AS col2, 5 DIV + COUNT( * ) + 44 col0
----
NULL
49

skipif mysql # not compatible
query II rowsort label-9068
SELECT + 47 * + ( - CAST ( NULL AS INTEGER ) ) AS col2, 5 / + COUNT ( * ) + 44 col0
----
NULL
49

query I rowsort
SELECT ALL 15 * + 64 + + + 17 * + 59 AS col0
----
1963

query I rowsort
SELECT + + ( + - 11 ) AS col0
----
-11

onlyif mysql # DIV for integer division: 
query I rowsort label-9071
SELECT ALL + 61 * - ( - - 44 ) + + 13 + + - 70 DIV - 7
----
-2661

skipif mysql # not compatible
query I rowsort label-9071
SELECT ALL + 61 * - ( - - 44 ) + + 13 + + - 70 / - 7
----
-2661

query I rowsort
SELECT DISTINCT - 24 * 62 AS col1
----
-1488

query II rowsort
SELECT DISTINCT 6 * + + 74 + + 27 col2, NULLIF ( + 83, + 68 ) AS col1
----
471
83

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9074
SELECT ALL - 83 * 39 * 84 * + CAST( NULL AS DECIMAL ) + + - 16 * + - 94 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9074
SELECT ALL - 83 * 39 * 84 * + CAST ( NULL AS REAL ) + + - 16 * + - 94 AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9075
SELECT - 88 DIV + + 59 + - 74 + - + CAST( - - CAST( + 75 AS SIGNED ) AS SIGNED ) + - 84 AS col0
----
-234

skipif mysql # not compatible
query I rowsort label-9075
SELECT - 88 / + + 59 + - 74 + - + CAST ( - - CAST ( + 75 AS INTEGER ) AS INTEGER ) + - 84 AS col0
----
-234

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9076
SELECT ALL + NULLIF ( + COUNT( * ), - CAST( + 0 AS SIGNED ) ) * + 56 + - 74
----
-18

skipif mysql # not compatible
query I rowsort label-9076
SELECT ALL + NULLIF ( + COUNT ( * ), - CAST ( + 0 AS INTEGER ) ) * + 56 + - 74
----
-18

query I rowsort
SELECT + - 75 * 27
----
-2025

onlyif mysql # aggregate syntax: 
query I rowsort label-9078
SELECT MIN( ALL + ( 74 ) ) col0
----
74

skipif mysql # not compatible
query I rowsort label-9078
SELECT MIN ( ALL + ( 74 ) ) col0
----
74

query I rowsort
SELECT - + 94 + 66
----
-28

query I rowsort
SELECT - - 20 + - 42
----
-22

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9081
SELECT - 63 * - COUNT( * ) + - COALESCE ( - - 33, - COUNT( * ) + 4, - 2, ( + 62 ) * + 22 * + COALESCE ( - 13, + COUNT( ALL 51 ), 13, - 19, 4 * 97 * + + 51 + + COUNT( * ) * 88 ) - - 82 DIV - COALESCE ( 7, + 90, + 82 + - 38 ) - + 97 )
----
30

skipif mysql # not compatible
query I rowsort label-9081
SELECT - 63 * - COUNT ( * ) + - COALESCE ( - - 33, - COUNT ( * ) + 4, - 2, ( + 62 ) * + 22 * + COALESCE ( - 13, + COUNT ( ALL 51 ), 13, - 19, 4 * 97 * + + 51 + + COUNT ( * ) * 88 ) - - 82 / - COALESCE ( 7, + 90, + 82 + - 38 ) - + 97 )
----
30

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9082
SELECT - ( - COALESCE ( - 62, - COUNT( * ) * 72 + - 33 DIV + 34 - - 0 - + 67 - COALESCE ( + 4, + - 37 - - 64 ) + - 75 ) ) AS col0
----
-62

skipif mysql # not compatible
query I rowsort label-9082
SELECT - ( - COALESCE ( - 62, - COUNT ( * ) * 72 + - 33 / + 34 - - 0 - + 67 - COALESCE ( + 4, + - 37 - - 64 ) + - 75 ) ) AS col0
----
-62

onlyif mysql # DIV for integer division: 
query I rowsort label-9083
SELECT ALL + 65 DIV - - 99
----
0

skipif mysql # not compatible
query I rowsort label-9083
SELECT ALL + 65 / - - 99
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9084
SELECT - 90 DIV + - COUNT( - - 89 ) - - 68
----
158

skipif mysql # not compatible
query I rowsort label-9084
SELECT - 90 / + - COUNT ( - - 89 ) - - 68
----
158

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9085
SELECT ALL + 48 * + CASE + 20 WHEN - 52 THEN + + COUNT( * ) - + CAST( NULL AS SIGNED ) ELSE NULL END + - - 79 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9085
SELECT ALL + 48 * + CASE + 20 WHEN - 52 THEN + + COUNT ( * ) - + CAST ( NULL AS INTEGER ) ELSE NULL END + - - 79 col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9086
SELECT DISTINCT + + 38 DIV + COUNT( * ) AS col0
----
38

skipif mysql # not compatible
query I rowsort label-9086
SELECT DISTINCT + + 38 / + COUNT ( * ) AS col0
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-9087
SELECT ALL - 73 - - 60 * SUM( DISTINCT 83 )
----
4907

skipif mysql # not compatible
query I rowsort label-9087
SELECT ALL - 73 - - 60 * SUM ( DISTINCT 83 )
----
4907

onlyif mysql # aggregate syntax: 
query II rowsort label-9088
SELECT COUNT( * ) AS col0, + MAX( DISTINCT + 74 ) * - MIN( DISTINCT + 69 ) + - SUM( 65 )
----
1
-5171

skipif mysql # not compatible
query II rowsort label-9088
SELECT COUNT ( * ) AS col0, + MAX ( DISTINCT + 74 ) * - MIN ( DISTINCT + 69 ) + - SUM ( 65 )
----
1
-5171

query I rowsort
SELECT ALL + + 88 * - 81 * - 97
----
691416

onlyif mysql # aggregate syntax: 
query I rowsort label-9090
SELECT - 84 * - 43 * - 26 * - ( NULLIF ( + 45, - COUNT( * ) ) ) AS col0
----
4226040

skipif mysql # not compatible
query I rowsort label-9090
SELECT - 84 * - 43 * - 26 * - ( NULLIF ( + 45, - COUNT ( * ) ) ) AS col0
----
4226040

onlyif mysql # aggregate syntax: 
query II rowsort label-9091
SELECT + 49 * + + COUNT( * ) AS col0, 67 * - 43 + + ( + 73 ) AS col0
----
49
-2808

skipif mysql # not compatible
query II rowsort label-9091
SELECT + 49 * + + COUNT ( * ) AS col0, 67 * - 43 + + ( + 73 ) AS col0
----
49
-2808

query I rowsort
SELECT - ( - + 11 ) AS col2
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-9093
SELECT - MAX( - 33 )
----
33

skipif mysql # not compatible
query I rowsort label-9093
SELECT - MAX ( - 33 )
----
33

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9094
SELECT DISTINCT CAST( 50 AS SIGNED )
----
50

skipif mysql # not compatible
query I rowsort label-9094
SELECT DISTINCT CAST ( 50 AS INTEGER )
----
50

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-9095
SELECT ALL - 57 * CAST( NULL AS SIGNED ) * - 15 * - 83 AS col0, + COUNT( * ) DIV COUNT( * )
----
NULL
1

skipif mysql # not compatible
query II rowsort label-9095
SELECT ALL - 57 * CAST ( NULL AS INTEGER ) * - 15 * - 83 AS col0, + COUNT ( * ) / COUNT ( * )
----
NULL
1

query I rowsort
SELECT - NULLIF ( 90, - - 57 * 74 + + + 5 )
----
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-9097
SELECT - MAX( ALL 41 ) + + 92
----
51

skipif mysql # not compatible
query I rowsort label-9097
SELECT - MAX ( ALL 41 ) + + 92
----
51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9098
SELECT + CAST( 59 AS SIGNED )
----
59

skipif mysql # not compatible
query I rowsort label-9098
SELECT + CAST ( 59 AS INTEGER )
----
59

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9099
SELECT + CAST( + 97 AS SIGNED ) AS col2
----
97

skipif mysql # not compatible
query I rowsort label-9099
SELECT + CAST ( + 97 AS INTEGER ) AS col2
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-9100
SELECT + COUNT( * ) - + 12 AS col2
----
-11

skipif mysql # not compatible
query I rowsort label-9100
SELECT + COUNT ( * ) - + 12 AS col2
----
-11

query I rowsort
SELECT ALL 41 * + 92
----
3772

query I rowsort
SELECT ALL 35 + - + 7 AS col0
----
28

query I rowsort
SELECT DISTINCT 93 + - 18 AS col2
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-9104
SELECT ALL 5 * - COALESCE ( 30, - COUNT( * ) ) AS col1
----
-150

skipif mysql # not compatible
query I rowsort label-9104
SELECT ALL 5 * - COALESCE ( 30, - COUNT ( * ) ) AS col1
----
-150

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9105
SELECT DISTINCT + CAST( + CAST( - 96 AS SIGNED ) AS SIGNED ) + - COUNT( * ) col1
----
-97

skipif mysql # not compatible
query I rowsort label-9105
SELECT DISTINCT + CAST ( + CAST ( - 96 AS INTEGER ) AS INTEGER ) + - COUNT ( * ) col1
----
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-9106
SELECT DISTINCT ( 8 ) + - - CASE ( - + 77 ) WHEN + 97 * - - COALESCE ( - COUNT( * ), - 58 * 46 + - - COUNT( * ) / + 38, + 59 + + 57 ) + - 75 + + - ( + 49 ) / - 54 + + - 40 - - 13 * - 61 * 56 - - 67 THEN NULL WHEN + 63 * - COUNT( * ) THEN ( + 45 ) END / + 53 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9106
SELECT DISTINCT ( 8 ) + - - CASE ( - + 77 ) WHEN + 97 * - - COALESCE ( - COUNT ( * ), - 58 * 46 + - - COUNT ( * ) / + 38, + 59 + + 57 ) + - 75 + + - ( + 49 ) / - 54 + + - 40 - - 13 * - 61 * 56 - - 67 THEN NULL WHEN + 63 * - COUNT ( * ) THEN ( + 45 ) END / + 53 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9107
SELECT ALL - 84 + - - SUM( + 59 ) AS col0
----
-25

skipif mysql # not compatible
query I rowsort label-9107
SELECT ALL - 84 + - - SUM ( + 59 ) AS col0
----
-25

query I rowsort
SELECT + - 21 * 34 + + 0 col2
----
-714

query I rowsort
SELECT DISTINCT - - ( + 69 )
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-9110
SELECT 68 * - + CASE - 6 WHEN + - 50 THEN NULL WHEN + 44 + - - COUNT( * ) * 42 THEN NULL WHEN COUNT( ALL + + 70 ) - + MIN( - 1 ) THEN + 27 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9110
SELECT 68 * - + CASE - 6 WHEN + - 50 THEN NULL WHEN + 44 + - - COUNT ( * ) * 42 THEN NULL WHEN COUNT ( ALL + + 70 ) - + MIN ( - 1 ) THEN + 27 END AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9111
SELECT - COALESCE ( - 87, 88 ) + + 89 + + CASE 2 WHEN 25 * + 80 + MAX( ALL + ( + 5 ) ) THEN ( 24 ) * + NULLIF ( 66, - - 14 ) ELSE - CAST( NULL AS SIGNED ) / 38 - + NULLIF ( ( - 39 ), NULLIF ( - 78, - 18 + - 78 ) ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9111
SELECT - COALESCE ( - 87, 88 ) + + 89 + + CASE 2 WHEN 25 * + 80 + MAX ( ALL + ( + 5 ) ) THEN ( 24 ) * + NULLIF ( 66, - - 14 ) ELSE - CAST ( NULL AS INTEGER ) / 38 - + NULLIF ( ( - 39 ), NULLIF ( - 78, - 18 + - 78 ) ) END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9112
SELECT DISTINCT - 90 + + 26 + - NULLIF ( - MAX( + - 42 ), + ( + 71 ) )
----
-106

skipif mysql # not compatible
query I rowsort label-9112
SELECT DISTINCT - 90 + + 26 + - NULLIF ( - MAX ( + - 42 ), + ( + 71 ) )
----
-106

query II rowsort
SELECT + 25, 57 AS col0
----
25
57

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9114
SELECT - COUNT( * ) * - COUNT( * ) DIV + - 61 + - 6 AS col0
----
-6

skipif mysql # not compatible
query I rowsort label-9114
SELECT - COUNT ( * ) * - COUNT ( * ) / + - 61 + - 6 AS col0
----
-6

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9115
SELECT ALL - + ( - - 77 ) AS col2, - COUNT( + - 85 ) DIV 89 AS col0
----
-77
0

skipif mysql # not compatible
query II rowsort label-9115
SELECT ALL - + ( - - 77 ) AS col2, - COUNT ( + - 85 ) / 89 AS col0
----
-77
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9116
SELECT - + COUNT( * ) * 25 * - 16 + - - 76
----
476

skipif mysql # not compatible
query I rowsort label-9116
SELECT - + COUNT ( * ) * 25 * - 16 + - - 76
----
476

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9117
SELECT ALL CAST( NULL AS SIGNED ) AS col2, 7 + - COUNT( * ) * - COUNT( * )
----
NULL
8

skipif mysql # not compatible
query II rowsort label-9117
SELECT ALL CAST ( NULL AS INTEGER ) AS col2, 7 + - COUNT ( * ) * - COUNT ( * )
----
NULL
8

query I rowsort
SELECT ALL - 19 * + 76
----
-1444

query I rowsort
SELECT + 88 + + 2
----
90

query I rowsort
SELECT ALL + NULLIF ( - 20, - 65 ) - 19 AS col1
----
-39

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9121
SELECT CAST( NULL AS SIGNED ) + + + 28 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9121
SELECT CAST ( NULL AS INTEGER ) + + + 28 AS col1
----
NULL

query I rowsort
SELECT 85 + - 86 AS col2
----
-1

query I rowsort
SELECT + 41 + + - 30
----
11

query I rowsort
SELECT 16 - 63 AS col0
----
-47

query I rowsort
SELECT - 54 + + 2 - + 38 col0
----
-90

query I rowsort
SELECT - ( 94 ) + 13
----
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-9127
SELECT 60 + - COUNT( * )
----
59

skipif mysql # not compatible
query I rowsort label-9127
SELECT 60 + - COUNT ( * )
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-9128
SELECT DISTINCT MIN( DISTINCT 33 ) - - - 37 col1
----
-4

skipif mysql # not compatible
query I rowsort label-9128
SELECT DISTINCT MIN ( DISTINCT 33 ) - - - 37 col1
----
-4

onlyif mysql # DIV for integer division: 
query I rowsort label-9129
SELECT 50 + - - 98 DIV - 24 AS col2
----
46

skipif mysql # not compatible
query I rowsort label-9129
SELECT 50 + - - 98 / - 24 AS col2
----
46

query I rowsort
SELECT DISTINCT + 71 * - 59 * + 44
----
-184316

query I rowsort
SELECT 59 + - + 8
----
51

onlyif mysql # DIV for integer division: 
query I rowsort label-9132
SELECT ALL + ( - ( - 29 ) ) DIV - - 84
----
0

skipif mysql # not compatible
query I rowsort label-9132
SELECT ALL + ( - ( - 29 ) ) / - - 84
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9133
SELECT COUNT( - 20 ) DIV - - 61, - CASE - 85 WHEN - 75 * 42 + 24 + + 3 THEN - 88 * + + COALESCE ( + AVG ( + + 66 ), 31 ) WHEN - - 62 THEN NULL ELSE NULL END AS col1
----
0
NULL

skipif mysql # not compatible
query II rowsort label-9133
SELECT COUNT ( - 20 ) / - - 61, - CASE - 85 WHEN - 75 * 42 + 24 + + 3 THEN - 88 * + + COALESCE ( + AVG ( + + 66 ), 31 ) WHEN - - 62 THEN NULL ELSE NULL END AS col1
----
0
NULL

query I rowsort
SELECT 37 + + 25 * - 48 + + + 60
----
-1103

query I rowsort
SELECT DISTINCT + 80 * + + 12
----
960

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9136
SELECT 46 + + COUNT( * ) * 96 + - ( 90 ) AS col0, 55 - 30 + + + COUNT( * ) + COUNT( ( - 62 ) ) DIV - + COUNT( * ) AS col1
----
52
25

skipif mysql # not compatible
query II rowsort label-9136
SELECT 46 + + COUNT ( * ) * 96 + - ( 90 ) AS col0, 55 - 30 + + + COUNT ( * ) + COUNT ( ( - 62 ) ) / - + COUNT ( * ) AS col1
----
52
25

onlyif mysql # aggregate syntax: 
query I rowsort label-9137
SELECT CASE + + 43 WHEN 53 THEN NULL WHEN + COALESCE ( + 13, - + COUNT( * ) * - 64 * - - 15 ) * + 39 THEN NULL ELSE - ( - 84 ) + + 16 END + - 0 AS col2
----
100

skipif mysql # not compatible
query I rowsort label-9137
SELECT CASE + + 43 WHEN 53 THEN NULL WHEN + COALESCE ( + 13, - + COUNT ( * ) * - 64 * - - 15 ) * + 39 THEN NULL ELSE - ( - 84 ) + + 16 END + - 0 AS col2
----
100

query I rowsort
SELECT DISTINCT - 8 * + COALESCE ( + 79, + 65 * - 73 ) col0
----
-632

query I rowsort
SELECT ALL + 53 + 49 * 92 - + 13 AS col2
----
4548

onlyif mysql # aggregate syntax: 
query I rowsort label-9140
SELECT 71 + + COUNT( * ) AS col0
----
72

skipif mysql # not compatible
query I rowsort label-9140
SELECT 71 + + COUNT ( * ) AS col0
----
72

query I rowsort
SELECT 84 * - ( - 40 ) AS col0
----
3360

query II rowsort
SELECT ALL + 91 + - 41 col0, - 16 AS col0
----
50
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-9143
SELECT 61 * - COUNT( DISTINCT + 20 ) AS col2
----
-61

skipif mysql # not compatible
query I rowsort label-9143
SELECT 61 * - COUNT ( DISTINCT + 20 ) AS col2
----
-61

query I rowsort
SELECT NULLIF ( + - 62, - COALESCE ( + 74, + 64 ) )
----
-62

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9145
SELECT ( - + COUNT( + + 25 ) ) DIV + - 71 + + 63
----
63

skipif mysql # not compatible
query I rowsort label-9145
SELECT ( - + COUNT ( + + 25 ) ) / + - 71 + + 63
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-9146
SELECT - MIN( ALL - 59 ) + - 76
----
-17

skipif mysql # not compatible
query I rowsort label-9146
SELECT - MIN ( ALL - 59 ) + - 76
----
-17

query II rowsort
SELECT DISTINCT - 31 * + 32 AS col2, 94 * - ( 42 ) * + - 7 + + - 55 * - 91 * + 79
----
-992
423031

query I rowsort
SELECT ALL + 72 + 4 AS col2
----
76

query I rowsort
SELECT DISTINCT - ( - ( - - 48 ) ) AS col1
----
48

onlyif mysql # DIV for integer division: 
query II rowsort label-9150
SELECT + 45 DIV + + 35 AS col0, + 89 AS col2
----
1
89

skipif mysql # not compatible
query II rowsort label-9150
SELECT + 45 / + + 35 AS col0, + 89 AS col2
----
1
89

query II rowsort
SELECT DISTINCT 84 * + - 93, 97 AS col1
----
-7812
97

onlyif mysql # aggregate syntax: 
query II rowsort label-9152
SELECT DISTINCT COALESCE ( - + 10, 48 * 20 + + 76 ) * + 41 * + - 37 col2, + ( - COUNT( * ) )
----
15170
-1

skipif mysql # not compatible
query II rowsort label-9152
SELECT DISTINCT COALESCE ( - + 10, 48 * 20 + + 76 ) * + 41 * + - 37 col2, + ( - COUNT ( * ) )
----
15170
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9153
SELECT ALL - - CASE - + 49 WHEN - - 3 THEN + 93 + - - 13 + + 29 * - 44 + - SUM( + - 53 ) ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9153
SELECT ALL - - CASE - + 49 WHEN - - 3 THEN + 93 + - - 13 + + 29 * - 44 + - SUM ( + - 53 ) ELSE NULL END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9154
SELECT ALL 42 * + CASE 49 WHEN MIN( - - 17 ) THEN + 94 WHEN - 68 * - - 61 + 97 THEN NULL ELSE 88 END
----
3696

skipif mysql # not compatible
query I rowsort label-9154
SELECT ALL 42 * + CASE 49 WHEN MIN ( - - 17 ) THEN + 94 WHEN - 68 * - - 61 + 97 THEN NULL ELSE 88 END
----
3696

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9155
SELECT - COUNT( * ) DIV + COALESCE ( 67, + - NULLIF ( - 5, - 95 - + + COUNT( * ) ) + - 9 * - + 23 ) + - 7
----
-7

skipif mysql # not compatible
query I rowsort label-9155
SELECT - COUNT ( * ) / + COALESCE ( 67, + - NULLIF ( - 5, - 95 - + + COUNT ( * ) ) + - 9 * - + 23 ) + - 7
----
-7

query I rowsort
SELECT - + NULLIF ( - 36, - ( 71 ) / + 72 )
----
36

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9157
SELECT + 61 * - CAST( NULL AS SIGNED ) + - - 11 AS col0, COALESCE ( + - 33, 49 ) AS col1
----
NULL
-33

skipif mysql # not compatible
query II rowsort label-9157
SELECT + 61 * - CAST ( NULL AS INTEGER ) + - - 11 AS col0, COALESCE ( + - 33, 49 ) AS col1
----
NULL
-33

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9158
SELECT ALL NULLIF ( 5, + + CAST( NULL AS SIGNED ) * + - 33 * + - 64 )
----
5

skipif mysql # not compatible
query I rowsort label-9158
SELECT ALL NULLIF ( 5, + + CAST ( NULL AS INTEGER ) * + - 33 * + - 64 )
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-9159
SELECT DISTINCT + 11 * + COUNT( * ) AS col2
----
11

skipif mysql # not compatible
query I rowsort label-9159
SELECT DISTINCT + 11 * + COUNT ( * ) AS col2
----
11

query I rowsort
SELECT ALL + 93 * 3 AS col0
----
279

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9161
SELECT CAST( - NULLIF ( + + 77, + 79 - 28 ) AS SIGNED ) * - NULLIF ( + 20, + ( + 90 ) ) * - 45
----
-69300

skipif mysql # not compatible
query I rowsort label-9161
SELECT CAST ( - NULLIF ( + + 77, + 79 - 28 ) AS INTEGER ) * - NULLIF ( + 20, + ( + 90 ) ) * - 45
----
-69300

query I rowsort
SELECT DISTINCT + 84 * + 81 AS col1
----
6804

query I rowsort
SELECT 30 + - 6 - - + 47 * + 12 AS col1
----
588

onlyif mysql # aggregate syntax: 
query I rowsort label-9164
SELECT ( - MAX( DISTINCT 63 ) ) + - 14 - 22 AS col2
----
-99

skipif mysql # not compatible
query I rowsort label-9164
SELECT ( - MAX ( DISTINCT 63 ) ) + - 14 - 22 AS col2
----
-99

onlyif mysql # aggregate syntax: 
query II rowsort label-9165
SELECT - 81 AS col1, COUNT( + - 39 ) * + - 77
----
-81
-77

skipif mysql # not compatible
query II rowsort label-9165
SELECT - 81 AS col1, COUNT ( + - 39 ) * + - 77
----
-81
-77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9166
SELECT ALL + 94 * - 2 * + 50, + 98 + + CAST( + MIN( DISTINCT - 92 ) AS SIGNED ) AS col0
----
-9400
6

skipif mysql # not compatible
query II rowsort label-9166
SELECT ALL + 94 * - 2 * + 50, + 98 + + CAST ( + MIN ( DISTINCT - 92 ) AS INTEGER ) AS col0
----
-9400
6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9167
SELECT CAST( NULL AS SIGNED ) * + 51 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9167
SELECT CAST ( NULL AS INTEGER ) * + 51 col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9168
SELECT COUNT( * ) + - 55 - + - 30 * COUNT( * ) AS col0
----
-24

skipif mysql # not compatible
query I rowsort label-9168
SELECT COUNT ( * ) + - 55 - + - 30 * COUNT ( * ) AS col0
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-9169
SELECT - COALESCE ( + 58, - NULLIF ( - + COUNT( * ), - + 73 ) * + - COALESCE ( + 9, - - 26 ), + 88 * + - 19 ) col2
----
-58

skipif mysql # not compatible
query I rowsort label-9169
SELECT - COALESCE ( + 58, - NULLIF ( - + COUNT ( * ), - + 73 ) * + - COALESCE ( + 9, - - 26 ), + 88 * + - 19 ) col2
----
-58

query I rowsort
SELECT 91 + - - COALESCE ( 76, + 28 * + + 11 ) col1
----
167

query II rowsort
SELECT - 92 AS col2, 18 AS col2
----
-92
18

query I rowsort
SELECT ALL 29 * + 88 col1
----
2552

onlyif mysql # aggregate syntax: 
query I rowsort label-9173
SELECT ALL - COUNT( * ) + - + 53
----
-54

skipif mysql # not compatible
query I rowsort label-9173
SELECT ALL - COUNT ( * ) + - + 53
----
-54

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9174
SELECT - COUNT( * ) - 87 * + 78 DIV - + ( - 2 )
----
-3394

skipif mysql # not compatible
query I rowsort label-9174
SELECT - COUNT ( * ) - 87 * + 78 / - + ( - 2 )
----
-3394

query I rowsort
SELECT DISTINCT + 22 + + - 75
----
-53

query I rowsort
SELECT ALL - NULLIF ( - + 98, - 86 ) * + + 18 AS col0
----
1764

query II rowsort
SELECT 23, 30 AS col0
----
23
30

query I rowsort
SELECT ALL + 4 + 29 AS col2
----
33

onlyif mysql # DIV for integer division: 
query I rowsort label-9179
SELECT DISTINCT - 50 DIV + 3 AS col2
----
-16

skipif mysql # not compatible
query I rowsort label-9179
SELECT DISTINCT - 50 / + 3 AS col2
----
-16

query I rowsort
SELECT - 40 + - 83
----
-123

query I rowsort
SELECT - 54 * + + 20
----
-1080

onlyif mysql # aggregate syntax: 
query II rowsort label-9182
SELECT ALL - 93 * + NULLIF ( - 98, + 25 - + - AVG ( - 56 ) + + 94 + + COUNT( * ) ), + 11 * + 18 * + 34 col2
----
9114
6732

skipif mysql # not compatible
query II rowsort label-9182
SELECT ALL - 93 * + NULLIF ( - 98, + 25 - + - AVG ( - 56 ) + + 94 + + COUNT ( * ) ), + 11 * + 18 * + 34 col2
----
9114
6732

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9183
SELECT + COALESCE ( - + CAST( + - 21 AS SIGNED ), + + 88 + + 27 )
----
21

skipif mysql # not compatible
query I rowsort label-9183
SELECT + COALESCE ( - + CAST ( + - 21 AS INTEGER ), + + 88 + + 27 )
----
21

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9184
SELECT - - 82 / COUNT( * ) * + 71 + - - 52 * + + 75 * + COUNT( * ) * + 45 + + 72 / CASE + + 36 WHEN + CAST( NULL AS SIGNED ) + - + CAST( + SUM( ALL + 62 ) AS SIGNED ) + 80 THEN NULL WHEN 45 THEN - - 77 + 94 ELSE NULL END * + 80 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9184
SELECT - - 82 / COUNT ( * ) * + 71 + - - 52 * + + 75 * + COUNT ( * ) * + 45 + + 72 / CASE + + 36 WHEN + CAST ( NULL AS INTEGER ) + - + CAST ( + SUM ( ALL + 62 ) AS INTEGER ) + 80 THEN NULL WHEN 45 THEN - - 77 + 94 ELSE NULL END * + 80 AS col2
----
NULL

query I rowsort
SELECT - 67 - + 0 AS col1
----
-67

query I rowsort
SELECT ALL + NULLIF ( 84, 13 ) * + + 92
----
7728

onlyif mysql # aggregate syntax: 
query I rowsort label-9187
SELECT ALL - - COUNT( * ) * - NULLIF ( + 37, 44 ) + - ( - 85 ) - - 36 - + 41 + COUNT( * )
----
44

skipif mysql # not compatible
query I rowsort label-9187
SELECT ALL - - COUNT ( * ) * - NULLIF ( + 37, 44 ) + - ( - 85 ) - - 36 - + 41 + COUNT ( * )
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-9188
SELECT ALL + COUNT( - + 0 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-9188
SELECT ALL + COUNT ( - + 0 ) AS col2
----
1

query I rowsort
SELECT ALL + 41 * - 29 * - + 69 AS col0
----
82041

query I rowsort
SELECT DISTINCT + ( + 57 )
----
57

query I rowsort
SELECT - 0 * 39 + ( + CASE 99 WHEN + - 42 THEN - 64 END )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9192
SELECT - + COUNT( * ) * 10 - 92 * + + 57 + COUNT( DISTINCT + 79 )
----
-5253

skipif mysql # not compatible
query I rowsort label-9192
SELECT - + COUNT ( * ) * 10 - 92 * + + 57 + COUNT ( DISTINCT + 79 )
----
-5253

onlyif mysql # aggregate syntax: 
query II rowsort label-9193
SELECT + 71 AS col2, COUNT( * )
----
71
1

skipif mysql # not compatible
query II rowsort label-9193
SELECT + 71 AS col2, COUNT ( * )
----
71
1

query I rowsort
SELECT - + 11 + - + 67 + + - 77 * + 64 AS col2
----
-5006

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9195
SELECT - - 36 + + - 60 * - COUNT( * ) - - COUNT( * ) * 66 * + MIN( + CASE WHEN NOT NULL IS NULL THEN ( - 68 ) ELSE - + 90 * + NULLIF ( - CASE - 86 WHEN + - CAST( NULL AS SIGNED ) / 9 THEN + 27 WHEN - + 9 THEN - - 84 ELSE NULL END, - 55 ) END )
----
NULL

skipif mysql # not compatible
query I rowsort label-9195
SELECT - - 36 + + - 60 * - COUNT ( * ) - - COUNT ( * ) * 66 * + MIN ( + CASE WHEN NOT NULL IS NULL THEN ( - 68 ) ELSE - + 90 * + NULLIF ( - CASE - 86 WHEN + - CAST ( NULL AS INTEGER ) / 9 THEN + 27 WHEN - + 9 THEN - - 84 ELSE NULL END, - 55 ) END )
----
NULL

query II rowsort
SELECT ALL + 66 AS col2, - ( + 33 )
----
66
-33

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query I rowsort label-9197
SELECT ALL + - COALESCE ( - 98, + - 86 * 44, - 95 DIV + COUNT( * ) + CASE + + 81 WHEN 18 + - COUNT( * ) + - ( + - ( + + CAST( NULL AS DECIMAL ) ) ) * 20 * - ( - 63 ) THEN + 91 + + + 5 END * 87 ) AS col2
----
98

skipif mysql # not compatible
query I rowsort label-9197
SELECT ALL + - COALESCE ( - 98, + - 86 * 44, - 95 / + COUNT ( * ) + CASE + + 81 WHEN 18 + - COUNT ( * ) + - ( + - ( + + CAST ( NULL AS REAL ) ) ) * 20 * - ( - 63 ) THEN + 91 + + + 5 END * 87 ) AS col2
----
98

onlyif mysql # aggregate syntax: 
query I rowsort label-9198
SELECT + 90 + - COALESCE ( + 49, - - SUM( DISTINCT - 66 ) ) + - 23
----
18

skipif mysql # not compatible
query I rowsort label-9198
SELECT + 90 + - COALESCE ( + 49, - - SUM ( DISTINCT - 66 ) ) + - 23
----
18

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9199
SELECT + 7 DIV COUNT( * ) * + + 66
----
462

skipif mysql # not compatible
query I rowsort label-9199
SELECT + 7 / COUNT ( * ) * + + 66
----
462

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9200
SELECT + SUM( - + 2 ) + + - CAST( + 13 AS DECIMAL ) + - CAST( NULL AS SIGNED ) + - COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9200
SELECT + SUM ( - + 2 ) + + - CAST ( + 13 AS REAL ) + - CAST ( NULL AS INTEGER ) + - COUNT ( * ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9201
SELECT - MAX( DISTINCT + - 64 )
----
64

skipif mysql # not compatible
query I rowsort label-9201
SELECT - MAX ( DISTINCT + - 64 )
----
64

onlyif mysql # aggregate syntax: 
query II rowsort label-9202
SELECT SUM( DISTINCT + 28 ), 2 AS col1
----
28
2

skipif mysql # not compatible
query II rowsort label-9202
SELECT SUM ( DISTINCT + 28 ), 2 AS col1
----
28
2

query I rowsort
SELECT + 42 + - CASE - 70 WHEN - 37 THEN NULL WHEN - + 62 THEN - 88 WHEN 69 * 73 + + 58 - - 4 THEN NULL ELSE - + 47 END
----
89

query I rowsort
SELECT + 60 + + 7 * + 99 AS col1
----
753

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9205
SELECT - CAST( + 63 AS SIGNED ) AS col1
----
-63

skipif mysql # not compatible
query I rowsort label-9205
SELECT - CAST ( + 63 AS INTEGER ) AS col1
----
-63

query II rowsort
SELECT ALL 18 + 82 AS col2, - 11 - - - ( - 46 ) AS col1
----
100
35

onlyif mysql # aggregate syntax: 
query I rowsort label-9207
SELECT DISTINCT MAX( DISTINCT 21 ) AS col2
----
21

skipif mysql # not compatible
query I rowsort label-9207
SELECT DISTINCT MAX ( DISTINCT 21 ) AS col2
----
21

query I rowsort
SELECT ALL 89 + + 86 + + 11 AS col2
----
186

onlyif mysql # aggregate syntax: 
query I rowsort label-9209
SELECT ALL - COUNT( * ) + - SUM( ALL + 67 )
----
-68

skipif mysql # not compatible
query I rowsort label-9209
SELECT ALL - COUNT ( * ) + - SUM ( ALL + 67 )
----
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-9210
SELECT + SUM( + + 19 ) + - 40 AS col0
----
-21

skipif mysql # not compatible
query I rowsort label-9210
SELECT + SUM ( + + 19 ) + - 40 AS col0
----
-21

query I rowsort
SELECT DISTINCT + 45 * 43
----
1935

query I rowsort
SELECT + 64 * 46
----
2944

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9213
SELECT ALL 76 * + CAST( NULL AS SIGNED ) / 60 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9213
SELECT ALL 76 * + CAST ( NULL AS INTEGER ) / 60 AS col1
----
NULL

query I rowsort
SELECT + 82 + 4 + - 81 * - 39
----
3245

query I rowsort
SELECT - ( + 85 ) col2
----
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-9216
SELECT + - ( - 54 ) * + COUNT( * )
----
54

skipif mysql # not compatible
query I rowsort label-9216
SELECT + - ( - 54 ) * + COUNT ( * )
----
54

query I rowsort
SELECT ALL + + 34 - - + 25 + + - 12
----
47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9218
SELECT DISTINCT - CASE 14 WHEN - ( 54 ) + + NULLIF ( 0, + 87 * + + 19 + - 18 + 34 + - - CAST( 75 AS SIGNED ) ) THEN + 37 + + 34 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9218
SELECT DISTINCT - CASE 14 WHEN - ( 54 ) + + NULLIF ( 0, + 87 * + + 19 + - 18 + 34 + - - CAST ( 75 AS INTEGER ) ) THEN + 37 + + 34 END AS col1
----
NULL

query I rowsort
SELECT DISTINCT - ( - 98 ) * 48 AS col2
----
4704

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9220
SELECT - COUNT( * ) DIV - 70 * 52 * + COALESCE ( - CAST( + 32 AS SIGNED ), - 93 )
----
0

skipif mysql # not compatible
query I rowsort label-9220
SELECT - COUNT ( * ) / - 70 * 52 * + COALESCE ( - CAST ( + 32 AS INTEGER ), - 93 )
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9221
SELECT ALL - + NULLIF ( - + 26, - 1 ) DIV - + 61 * - 81 * - COUNT( * ) * SUM( - 99 ) * - COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-9221
SELECT ALL - + NULLIF ( - + 26, - 1 ) / - + 61 * - 81 * - COUNT ( * ) * SUM ( - 99 ) * - COUNT ( * )
----
0

query I rowsort
SELECT + 13 * + - 57 * - + 30 + - 45
----
22185

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9223
SELECT + MAX( + + 98 ) DIV 43 * COUNT( * ) + - 37 * ( - 35 ) - + - COUNT( * )
----
1298

skipif mysql # not compatible
query I rowsort label-9223
SELECT + MAX ( + + 98 ) / 43 * COUNT ( * ) + - 37 * ( - 35 ) - + - COUNT ( * )
----
1298

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9224
SELECT + + CAST( NULL AS SIGNED ) * - - ( + 44 ) + + + 12 + + 66 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9224
SELECT + + CAST ( NULL AS INTEGER ) * - - ( + 44 ) + + + 12 + + 66 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9225
SELECT - - 9 + + - COUNT( * ) AS col0
----
8

skipif mysql # not compatible
query I rowsort label-9225
SELECT - - 9 + + - COUNT ( * ) AS col0
----
8

onlyif mysql # aggregate syntax: 
query II rowsort label-9226
SELECT ALL + - 17 * + COUNT( * ) AS col0, - 25 AS col1
----
-17
-25

skipif mysql # not compatible
query II rowsort label-9226
SELECT ALL + - 17 * + COUNT ( * ) AS col0, - 25 AS col1
----
-17
-25

onlyif mysql # DIV for integer division: 
query I rowsort label-9227
SELECT - - 65 DIV - 79
----
0

skipif mysql # not compatible
query I rowsort label-9227
SELECT - - 65 / - 79
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9228
SELECT DISTINCT + CASE ( COUNT( * ) ) WHEN 32 * - 94 / - 30 + + CASE ( + 4 ) WHEN + 24 THEN 54 * - ( + + 3 ) / - 69 ELSE NULL END THEN + COUNT( * ) ELSE + + 16 END * + - 48
----
-768

skipif mysql # not compatible
query I rowsort label-9228
SELECT DISTINCT + CASE ( COUNT ( * ) ) WHEN 32 * - 94 / - 30 + + CASE ( + 4 ) WHEN + 24 THEN 54 * - ( + + 3 ) / - 69 ELSE NULL END THEN + COUNT ( * ) ELSE + + 16 END * + - 48
----
-768

query I rowsort
SELECT ALL + 85 * + COALESCE ( - 96, + 23 ) + + ( 47 ) + + 62
----
-8051

onlyif mysql # aggregate syntax: 
query I rowsort label-9230
SELECT - 78 - + 80 * 6 * - 41 + - COUNT( * ) AS col1
----
19601

skipif mysql # not compatible
query I rowsort label-9230
SELECT - 78 - + 80 * 6 * - 41 + - COUNT ( * ) AS col1
----
19601

query I rowsort
SELECT + COALESCE ( - - 59, + - 91, 70 ) AS col1
----
59

query I rowsort
SELECT COALESCE ( + ( 73 ), + + 34 + - 7 * - 27 + 14 ) AS col1
----
73

query II rowsort
SELECT ALL 65 * - 70 + 49 AS col2, + 11 AS col0
----
-4501
11

onlyif mysql # aggregate syntax: 
query I rowsort label-9234
SELECT COALESCE ( - - 40, - ( - + MAX( ALL 22 ) ) ) AS col0
----
40

skipif mysql # not compatible
query I rowsort label-9234
SELECT COALESCE ( - - 40, - ( - + MAX ( ALL 22 ) ) ) AS col0
----
40

query I rowsort
SELECT - 31 * + 71
----
-2201

query I rowsort
SELECT + 36 * + 39 AS col0
----
1404

onlyif mysql # aggregate syntax: 
query I rowsort label-9237
SELECT ALL - 67 + - 42 + + COUNT( * )
----
-108

skipif mysql # not compatible
query I rowsort label-9237
SELECT ALL - 67 + - 42 + + COUNT ( * )
----
-108

query II rowsort
SELECT 35 AS col2, + NULLIF ( 60, + + 40 + + ( - + 0 ) ) - 45
----
35
15

query I rowsort
SELECT + 27 * + + 40 - - 44
----
1124

onlyif mysql # DIV for integer division: 
query I rowsort label-9240
SELECT ALL - 76 DIV - 28
----
2

skipif mysql # not compatible
query I rowsort label-9240
SELECT ALL - 76 / - 28
----
2

query I rowsort
SELECT DISTINCT + 22 + - 84
----
-62

query I rowsort
SELECT ALL + 4 + + 50 AS col1
----
54

query I rowsort
SELECT 65 + + + 36 AS col2
----
101

query II rowsort
SELECT DISTINCT 4 AS col1, 65 * - 58 + + CASE 75 WHEN + 95 + ( 61 ) / 2 THEN 71 END
----
4
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9245
SELECT ALL COUNT( * ) DIV + 66
----
0

skipif mysql # not compatible
query I rowsort label-9245
SELECT ALL COUNT ( * ) / + 66
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9246
SELECT MAX( ALL - - 57 ) * 39
----
2223

skipif mysql # not compatible
query I rowsort label-9246
SELECT MAX ( ALL - - 57 ) * 39
----
2223

query I rowsort
SELECT 0 * + 65 * + - CASE + 64 WHEN + + 67 THEN NULL ELSE - 65 END
----
0

query I rowsort
SELECT DISTINCT 46 * - 76 AS col2
----
-3496

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9249
SELECT - COUNT( * ) + - CAST( + - NULLIF ( - 3, + - 21 + + 26 - COALESCE ( ( + 81 ), - + AVG ( 32 ) * + + CAST( NULL AS SIGNED ) * + NULLIF ( - 94, - - ( - - CASE + ( + 15 ) WHEN + 77 THEN NULL ELSE - - 43 * 2 + + + 86 END ) * - - COUNT( * ) ) ) ) AS SIGNED ) AS col0
----
-4

skipif mysql # not compatible
query I rowsort label-9249
SELECT - COUNT ( * ) + - CAST ( + - NULLIF ( - 3, + - 21 + + 26 - COALESCE ( ( + 81 ), - + AVG ( 32 ) * + + CAST ( NULL AS INTEGER ) * + NULLIF ( - 94, - - ( - - CASE + ( + 15 ) WHEN + 77 THEN NULL ELSE - - 43 * 2 + + + 86 END ) * - - COUNT ( * ) ) ) ) AS INTEGER ) AS col0
----
-4

query I rowsort
SELECT ALL + 41 - - 33
----
74

query II rowsort
SELECT DISTINCT 77, - 0 AS col0
----
77
0

query I rowsort
SELECT - 64 - + 34 - + - 77 AS col1
----
-21

query II rowsort
SELECT - - 60, - 21 * + 19 AS col2
----
60
-399

query II rowsort
SELECT + - 47 AS col2, + 19
----
-47
19

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9255
SELECT + CAST( NULL AS SIGNED ) * + 83 + + - 54 * - 62 + MIN( DISTINCT 96 ) + 72 * 63 * + + 19
----
NULL

skipif mysql # not compatible
query I rowsort label-9255
SELECT + CAST ( NULL AS INTEGER ) * + 83 + + - 54 * - 62 + MIN ( DISTINCT 96 ) + 72 * 63 * + + 19
----
NULL

query I rowsort
SELECT - 91 * + + ( ( - 26 ) ) + + + 34
----
2400

query II rowsort
SELECT 37 * + - 63 * + 78, - 46 AS col1
----
-181818
-46

query I rowsort
SELECT - - ( - 46 ) * + 20 - + 82 AS col0
----
-1002

onlyif mysql # aggregate syntax: 
query I rowsort label-9259
SELECT ALL - COUNT( * ) + - - 98 AS col1
----
97

skipif mysql # not compatible
query I rowsort label-9259
SELECT ALL - COUNT ( * ) + - - 98 AS col1
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-9260
SELECT ALL - + COUNT( ALL + - 58 )
----
-1

skipif mysql # not compatible
query I rowsort label-9260
SELECT ALL - + COUNT ( ALL + - 58 )
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9261
SELECT COUNT( * ) DIV + - ( - + COUNT( * ) ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-9261
SELECT COUNT ( * ) / + - ( - + COUNT ( * ) ) AS col1
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9262
SELECT - + 52 * COUNT( * ) + + 8 DIV - COUNT( + - 88 ) AS col1
----
-60

skipif mysql # not compatible
query I rowsort label-9262
SELECT - + 52 * COUNT ( * ) + + 8 / - COUNT ( + - 88 ) AS col1
----
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-9263
SELECT - MAX( DISTINCT + + 64 ) * - 73 AS col1
----
4672

skipif mysql # not compatible
query I rowsort label-9263
SELECT - MAX ( DISTINCT + + 64 ) * - 73 AS col1
----
4672

onlyif mysql # DIV for integer division: 
query I rowsort label-9264
SELECT 71 DIV 46 + + - 18 AS col2
----
-17

skipif mysql # not compatible
query I rowsort label-9264
SELECT 71 / 46 + + - 18 AS col2
----
-17

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9265
SELECT 26 AS col2, 0 * - CAST( NULL AS SIGNED )
----
26
NULL

skipif mysql # not compatible
query II rowsort label-9265
SELECT 26 AS col2, 0 * - CAST ( NULL AS INTEGER )
----
26
NULL

query I rowsort
SELECT ( - - 58 ) + + 11 AS col2
----
69

onlyif mysql # DIV for integer division: 
query I rowsort label-9267
SELECT 85 DIV + 31
----
2

skipif mysql # not compatible
query I rowsort label-9267
SELECT 85 / + 31
----
2

query II rowsort
SELECT ALL + 35 + + + 7 col0, 84
----
42
84

query I rowsort
SELECT 56 * 66
----
3696

onlyif mysql # DIV for integer division: 
query I rowsort label-9270
SELECT DISTINCT ( 90 ) DIV - - 25 AS col2
----
3

skipif mysql # not compatible
query I rowsort label-9270
SELECT DISTINCT ( 90 ) / - - 25 AS col2
----
3

query I rowsort
SELECT ALL 13 + - 79 AS col0
----
-66

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-9272
SELECT + 75 col0, - CAST( NULL AS DECIMAL )
----
75
NULL

skipif mysql # not compatible
query II rowsort label-9272
SELECT + 75 col0, - CAST ( NULL AS REAL )
----
75
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9273
SELECT ALL + COUNT( * ) + 26 * 51
----
1327

skipif mysql # not compatible
query I rowsort label-9273
SELECT ALL + COUNT ( * ) + 26 * 51
----
1327

query I rowsort
SELECT ALL + 35 + - 39 col0
----
-4

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9275
SELECT ALL COUNT( * ) AS col2, + 72 DIV - 14 col0
----
1
-5

skipif mysql # not compatible
query II rowsort label-9275
SELECT ALL COUNT ( * ) AS col2, + 72 / - 14 col0
----
1
-5

query I rowsort
SELECT DISTINCT - 63 * 33 col0
----
-2079

query II rowsort
SELECT - 43 AS col0, + 40 AS col1
----
-43
40

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9278
SELECT 10 + - + 94 + + + 33 * 86 DIV - - 59 + 35 + - ( + 96 ) + + - 5 * + COUNT( * ) + + SUM( ALL - + 94 ) - 82 + + + 38 * + ( - 54 ) + - NULLIF ( + 11, 84 * - + 82 ) DIV + 65
----
-2330

skipif mysql # not compatible
query I rowsort label-9278
SELECT 10 + - + 94 + + + 33 * 86 / - - 59 + 35 + - ( + 96 ) + + - 5 * + COUNT ( * ) + + SUM ( ALL - + 94 ) - 82 + + + 38 * + ( - 54 ) + - NULLIF ( + 11, 84 * - + 82 ) / + 65
----
-2330

query I rowsort
SELECT ALL - 73 - + 20 AS col2
----
-93

query II rowsort
SELECT 25, 12 AS col0
----
25
12

onlyif mysql # aggregate syntax: 
query I rowsort label-9281
SELECT ALL COUNT( * ) * 40 AS col2
----
40

skipif mysql # not compatible
query I rowsort label-9281
SELECT ALL COUNT ( * ) * 40 AS col2
----
40

onlyif mysql # aggregate syntax: 
query II rowsort label-9282
SELECT ALL 8 AS col1, - 55 + - 38 + 66 * + ( + + MIN( 27 ) ) AS col2
----
8
1689

skipif mysql # not compatible
query II rowsort label-9282
SELECT ALL 8 AS col1, - 55 + - 38 + 66 * + ( + + MIN ( 27 ) ) AS col2
----
8
1689

onlyif mysql # aggregate syntax: 
query II rowsort label-9283
SELECT ALL COUNT( * ), + ( 76 ) AS col0
----
1
76

skipif mysql # not compatible
query II rowsort label-9283
SELECT ALL COUNT ( * ), + ( 76 ) AS col0
----
1
76

query II rowsort
SELECT - 88, 81 AS col0
----
-88
81

query II rowsort
SELECT ALL + 39, 36 + + 97 + - 92 AS col0
----
39
41

query I rowsort
SELECT 82 * 87 AS col2
----
7134

query I rowsort
SELECT ALL + 53 * + ( + 23 ) * - 61 col1
----
-74359

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9288
SELECT CAST( + 23 AS SIGNED ) - - + 44 + - + 35 DIV 11 * + + 31 + - 74 + - MIN( + + 36 ) + + - COALESCE ( - 56, + 93 * + + 17 * - - 74, 23 + + + ( + + 90 ) * + + COUNT( * ), - COUNT( * ) DIV + 13 - - CASE + - ( 41 ) WHEN + 9 * 36 THEN NULL ELSE 50 END + - 5 DIV 34 ) * + COUNT( * ) AS col2
----
-80

skipif mysql # not compatible
query I rowsort label-9288
SELECT CAST ( + 23 AS INTEGER ) - - + 44 + - + 35 / 11 * + + 31 + - 74 + - MIN ( + + 36 ) + + - COALESCE ( - 56, + 93 * + + 17 * - - 74, 23 + + + ( + + 90 ) * + + COUNT ( * ), - COUNT ( * ) / + 13 - - CASE + - ( 41 ) WHEN + 9 * 36 THEN NULL ELSE 50 END + - 5 / 34 ) * + COUNT ( * ) AS col2
----
-80

query II rowsort
SELECT - 23 * + + 42 AS col1, - 91 AS col2
----
-966
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-9290
SELECT 16 + 47 + + 6 * ( COUNT( * ) )
----
69

skipif mysql # not compatible
query I rowsort label-9290
SELECT 16 + 47 + + 6 * ( COUNT ( * ) )
----
69

onlyif mysql # DIV for integer division: 
query I rowsort label-9291
SELECT 62 DIV + 34 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-9291
SELECT 62 / + 34 AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9292
SELECT COUNT( * ) * 99 + - + NULLIF ( 14, + 13 ) - 76 * - 8 + + 72 AS col0
----
765

skipif mysql # not compatible
query I rowsort label-9292
SELECT COUNT ( * ) * 99 + - + NULLIF ( 14, + 13 ) - 76 * - 8 + + 72 AS col0
----
765

query I rowsort
SELECT - 89 * 94 col0
----
-8366

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9294
SELECT ALL - COUNT( * ) + CAST( CASE + 23 WHEN + + 19 THEN 27 * 18 * CAST( 91 AS SIGNED ) + AVG ( DISTINCT - 24 ) + - 95 WHEN + + COUNT( * ) * + ( - + ( + 71 ) ) THEN 13 - + 56 ELSE NULL END AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9294
SELECT ALL - COUNT ( * ) + CAST ( CASE + 23 WHEN + + 19 THEN 27 * 18 * CAST ( 91 AS INTEGER ) + AVG ( DISTINCT - 24 ) + - 95 WHEN + + COUNT ( * ) * + ( - + ( + 71 ) ) THEN 13 - + 56 ELSE NULL END AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9295
SELECT 52 AS col1, COUNT( * )
----
52
1

skipif mysql # not compatible
query II rowsort label-9295
SELECT 52 AS col1, COUNT ( * )
----
52
1

query I rowsort
SELECT ALL 62 * + 49 + 52
----
3090

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9297
SELECT CAST( - COUNT( * ) AS SIGNED ) + 81
----
80

skipif mysql # not compatible
query I rowsort label-9297
SELECT CAST ( - COUNT ( * ) AS INTEGER ) + 81
----
80

query I rowsort
SELECT 57 * - 71 * + + 82 - - - 37 * + - 33 + 40 + 16 * + 65
----
-329553

query II rowsort
SELECT 89 AS col2, 48 AS col2
----
89
48

onlyif mysql # DIV for integer division: 
query II rowsort label-9300
SELECT + + 77, + 34 - - + NULLIF ( + 74, + 64 + - 42 ) + + 99 DIV 35 AS col0
----
77
110

skipif mysql # not compatible
query II rowsort label-9300
SELECT + + 77, + 34 - - + NULLIF ( + 74, + 64 + - 42 ) + + 99 / 35 AS col0
----
77
110

onlyif mysql # aggregate syntax: 
query II rowsort label-9301
SELECT 26, - COUNT( * ) + - + ( + - ( + + 6 ) ) AS col0
----
26
5

skipif mysql # not compatible
query II rowsort label-9301
SELECT 26, - COUNT ( * ) + - + ( + - ( + + 6 ) ) AS col0
----
26
5

onlyif mysql # aggregate syntax: 
query I rowsort label-9302
SELECT SUM( DISTINCT + 91 ) + 8
----
99

skipif mysql # not compatible
query I rowsort label-9302
SELECT SUM ( DISTINCT + 91 ) + 8
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-9303
SELECT DISTINCT + MIN( ALL - 74 ) * 34
----
-2516

skipif mysql # not compatible
query I rowsort label-9303
SELECT DISTINCT + MIN ( ALL - 74 ) * 34
----
-2516

onlyif mysql # aggregate syntax: 
query II rowsort label-9304
SELECT + COUNT( * ) AS col2, 97
----
1
97

skipif mysql # not compatible
query II rowsort label-9304
SELECT + COUNT ( * ) AS col2, 97
----
1
97

query I rowsort
SELECT ALL 2 * - 64 AS col1
----
-128

onlyif mysql # aggregate syntax: 
query I rowsort label-9306
SELECT SUM( ALL + ( 89 ) )
----
89

skipif mysql # not compatible
query I rowsort label-9306
SELECT SUM ( ALL + ( 89 ) )
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-9307
SELECT ALL ( - COUNT( * ) ) * - 14 AS col1
----
14

skipif mysql # not compatible
query I rowsort label-9307
SELECT ALL ( - COUNT ( * ) ) * - 14 AS col1
----
14

query I rowsort
SELECT ALL 31 * + - 14 AS col0
----
-434

onlyif mysql # aggregate syntax: 
query I rowsort label-9309
SELECT MAX( ALL + 87 ) AS col2
----
87

skipif mysql # not compatible
query I rowsort label-9309
SELECT MAX ( ALL + 87 ) AS col2
----
87

query I rowsort
SELECT ALL 0 * - 36 - - 21 + + NULLIF ( - 42, + 81 / 3 * + - 45 ) - 89 * - + 23 AS col1
----
2026

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9311
SELECT - 47 DIV 15 * - 81 * + COUNT( * )
----
243

skipif mysql # not compatible
query I rowsort label-9311
SELECT - 47 / 15 * - 81 * + COUNT ( * )
----
243

onlyif mysql # DIV for integer division: 
query I rowsort label-9312
SELECT ALL + 4 DIV - 45 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9312
SELECT ALL + 4 / - 45 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9313
SELECT + COALESCE ( + MIN( + - 54 ), + 10 ) AS col2
----
-54

skipif mysql # not compatible
query I rowsort label-9313
SELECT + COALESCE ( + MIN ( + - 54 ), + 10 ) AS col2
----
-54

onlyif mysql # DIV for integer division: 
query II rowsort label-9314
SELECT ALL 0 DIV - 59 AS col2, 53 AS col1
----
0
53

skipif mysql # not compatible
query II rowsort label-9314
SELECT ALL 0 / - 59 AS col2, 53 AS col1
----
0
53

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9315
SELECT - 80 * - + 19 - + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9315
SELECT - 80 * - + 19 - + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL 17 * 74 AS col2
----
1258

onlyif mysql # aggregate syntax: 
query I rowsort label-9317
SELECT ALL + ( - - COUNT( DISTINCT 76 ) ) * + COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-9317
SELECT ALL + ( - - COUNT ( DISTINCT 76 ) ) * + COUNT ( * )
----
1

query I rowsort
SELECT ALL 93 * - 66 AS col0
----
-6138

query I rowsort
SELECT - 5 * - - 77 * - + 1 AS col0
----
385

onlyif mysql # aggregate syntax: 
query I rowsort label-9320
SELECT - - ( 33 ) * + COUNT( * )
----
33

skipif mysql # not compatible
query I rowsort label-9320
SELECT - - ( 33 ) * + COUNT ( * )
----
33

query I rowsort
SELECT + 37 + + 11 AS col1
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-9322
SELECT - + COUNT( * ) * - 91 AS col2
----
91

skipif mysql # not compatible
query I rowsort label-9322
SELECT - + COUNT ( * ) * - 91 AS col2
----
91

query I rowsort
SELECT - 51 + 85 AS col1
----
34

query I rowsort
SELECT - - 22 + 34
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-9325
SELECT - SUM( DISTINCT + 3 ) AS col2
----
-3

skipif mysql # not compatible
query I rowsort label-9325
SELECT - SUM ( DISTINCT + 3 ) AS col2
----
-3

query I rowsort
SELECT ALL + + 10 + + 64 AS col0
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-9327
SELECT ALL + 9 + + 46 + - 83 * + ( 14 ) * + 33 * COUNT( * ) * + 95 - 57 + - 67 * + COUNT( * ) AS col1
----
-3642939

skipif mysql # not compatible
query I rowsort label-9327
SELECT ALL + 9 + + 46 + - 83 * + ( 14 ) * + 33 * COUNT ( * ) * + 95 - 57 + - 67 * + COUNT ( * ) AS col1
----
-3642939

query I rowsort
SELECT - + 3 + ( - 40 ) + - 15
----
-58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9329
SELECT ALL + - ( - 29 ) / CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9329
SELECT ALL + - ( - 29 ) / CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9330
SELECT - 10 DIV - 52 * 49 * - 68 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-9330
SELECT - 10 / - 52 * 49 * - 68 AS col1
----
0

query I rowsort
SELECT ALL - + 31 + 96
----
65

query I rowsort
SELECT - + 1 - + 53 AS col0
----
-54

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9333
SELECT - CASE - 48 WHEN - CAST( 75 AS SIGNED ) - + 64 + + - 81 THEN - 82 * + 23 + - - 95 + - + 97 * + AVG ( ALL + 17 ) * 68 WHEN COUNT( * ) * - 29 THEN + 73 + + 73 / 21 * - AVG ( - 38 ) END * + 46 * - - 91 / 48
----
NULL

skipif mysql # not compatible
query I rowsort label-9333
SELECT - CASE - 48 WHEN - CAST ( 75 AS INTEGER ) - + 64 + + - 81 THEN - 82 * + 23 + - - 95 + - + 97 * + AVG ( ALL + 17 ) * 68 WHEN COUNT ( * ) * - 29 THEN + 73 + + 73 / 21 * - AVG ( - 38 ) END * + 46 * - - 91 / 48
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9334
SELECT - MAX( DISTINCT + 48 ) AS col1
----
-48

skipif mysql # not compatible
query I rowsort label-9334
SELECT - MAX ( DISTINCT + 48 ) AS col1
----
-48

onlyif mysql # DIV for integer division: 
query I rowsort label-9335
SELECT ALL - 65 DIV + 39
----
-1

skipif mysql # not compatible
query I rowsort label-9335
SELECT ALL - 65 / + 39
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-9336
SELECT 71 * 13 - 35 * + 61 DIV + 60 AS col2
----
888

skipif mysql # not compatible
query I rowsort label-9336
SELECT 71 * 13 - 35 * + 61 / + 60 AS col2
----
888

onlyif mysql # aggregate syntax: 
query I rowsort label-9337
SELECT + SUM( ALL - ( - 39 ) )
----
39

skipif mysql # not compatible
query I rowsort label-9337
SELECT + SUM ( ALL - ( - 39 ) )
----
39

query I rowsort
SELECT ALL + COALESCE ( + 81, - 0, + 91 + + 80 * + + 37 * + 37 ) AS col0
----
81

query I rowsort
SELECT DISTINCT + ( ( 66 ) ) AS col1
----
66

onlyif mysql # aggregate syntax: 
query II rowsort label-9340
SELECT + 52 * 90 + - + 21 * + + 92 AS col2, + 88 * - 80 * + - COALESCE ( + 44, + 52 * 2 + 41 * + - 39 * 59 - 62 + - 97, + 16 ) * - 51 + + - COUNT( * ) * 11 * - - 4
----
2748
-15797804

skipif mysql # not compatible
query II rowsort label-9340
SELECT + 52 * 90 + - + 21 * + + 92 AS col2, + 88 * - 80 * + - COALESCE ( + 44, + 52 * 2 + 41 * + - 39 * 59 - 62 + - 97, + 16 ) * - 51 + + - COUNT ( * ) * 11 * - - 4
----
2748
-15797804

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9341
SELECT + 71 - - 59 * - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9341
SELECT + 71 - - 59 * - CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT + ( + - 29 )
----
-29

query I rowsort
SELECT + 42 + + CASE + + 41 WHEN - 74 * 60 + + + 62 THEN + + ( - - 43 ) END
----
NULL

query I rowsort
SELECT 9 * + 5 - 54
----
-9

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9345
SELECT + CAST( NULL AS DECIMAL ) + 84 + + + 57 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9345
SELECT + CAST ( NULL AS REAL ) + 84 + + + 57 AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query III rowsort label-9346
SELECT + CAST( + CASE - - 39 WHEN - 18 THEN - CAST( NULL AS DECIMAL ) / 16 END AS DECIMAL ) AS col2, - CAST( NULL AS SIGNED ) * + + CASE - NULLIF ( 25, 0 + + 99 + 33 + 22 * - COUNT( * ) * - 8 / SUM( 66 ) * 32 ) WHEN + 10 / - - ( - - 94 ) THEN - - 41 + - 66 * - 60 END * + 42, - COUNT( * ) + + 94 AS col2
----
NULL
NULL
93

skipif mysql # not compatible
query III rowsort label-9346
SELECT + CAST ( + CASE - - 39 WHEN - 18 THEN - CAST ( NULL AS REAL ) / 16 END AS REAL ) AS col2, - CAST ( NULL AS INTEGER ) * + + CASE - NULLIF ( 25, 0 + + 99 + 33 + 22 * - COUNT ( * ) * - 8 / SUM ( 66 ) * 32 ) WHEN + 10 / - - ( - - 94 ) THEN - - 41 + - 66 * - 60 END * + 42, - COUNT ( * ) + + 94 AS col2
----
NULL
NULL
93

onlyif mysql # aggregate syntax: 
query I rowsort label-9347
SELECT DISTINCT + MIN( - ( - 18 ) )
----
18

skipif mysql # not compatible
query I rowsort label-9347
SELECT DISTINCT + MIN ( - ( - 18 ) )
----
18

query II rowsort
SELECT ALL + 64, 63 + - 23 AS col2
----
64
40

query I rowsort
SELECT + 12 + - 88 + - 27 + + 37
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-9350
SELECT - COUNT( * ) * - 56 + 55
----
111

skipif mysql # not compatible
query I rowsort label-9350
SELECT - COUNT ( * ) * - 56 + 55
----
111

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9351
SELECT DISTINCT - 11 * 45 * + + COUNT( * ) + - NULLIF ( - - COALESCE ( - 20, 34 + - 32 * - 61 * - + AVG ( + + 22 ) * - 31 DIV - COUNT( ALL + 20 ), - 90 ), + + COUNT( * ) - - - ( - + NULLIF ( SUM( DISTINCT + 57 ), - CAST( ( + 80 ) AS SIGNED ) ) ) + + - 63 + + 33 )
----
-475

skipif mysql # not compatible
query I rowsort label-9351
SELECT DISTINCT - 11 * 45 * + + COUNT ( * ) + - NULLIF ( - - COALESCE ( - 20, 34 + - 32 * - 61 * - + AVG ( + + 22 ) * - 31 / - COUNT ( ALL + 20 ), - 90 ), + + COUNT ( * ) - - - ( - + NULLIF ( SUM ( DISTINCT + 57 ), - CAST ( ( + 80 ) AS INTEGER ) ) ) + + - 63 + + 33 )
----
-475

query II rowsort
SELECT + 40 + - + 69 + + 43 col2, 2
----
14
2

onlyif mysql # aggregate syntax: 
query I rowsort label-9353
SELECT DISTINCT SUM( - COALESCE ( - 41, 4 ) ) AS col2
----
41

skipif mysql # not compatible
query I rowsort label-9353
SELECT DISTINCT SUM ( - COALESCE ( - 41, 4 ) ) AS col2
----
41

query I rowsort
SELECT - + 68 + + 63 AS col0
----
-5

query II rowsort
SELECT ALL 62 AS col2, 79 AS col1
----
62
79

onlyif mysql # aggregate syntax: 
query I rowsort label-9356
SELECT DISTINCT + - 2 * + 41 + ( + COUNT( * ) ) - + 32 * + 20 AS col1
----
-721

skipif mysql # not compatible
query I rowsort label-9356
SELECT DISTINCT + - 2 * + 41 + ( + COUNT ( * ) ) - + 32 * + 20 AS col1
----
-721

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9357
SELECT ALL - SUM( ALL - 20 ) + 15 DIV + 63 + - - 11 AS col0
----
31

skipif mysql # not compatible
query I rowsort label-9357
SELECT ALL - SUM ( ALL - 20 ) + 15 / + 63 + - - 11 AS col0
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-9358
SELECT ALL + - 8 + - 96 + - 2 + + ( 45 ) * + 86 + - COUNT( * ) AS col0
----
3763

skipif mysql # not compatible
query I rowsort label-9358
SELECT ALL + - 8 + - 96 + - 2 + + ( 45 ) * + 86 + - COUNT ( * ) AS col0
----
3763

query I rowsort
SELECT - 85 * + 90
----
-7650

onlyif mysql # aggregate syntax: 
query I rowsort label-9360
SELECT DISTINCT + ( COUNT( * ) ) * + 22 AS col2
----
22

skipif mysql # not compatible
query I rowsort label-9360
SELECT DISTINCT + ( COUNT ( * ) ) * + 22 AS col2
----
22

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9361
SELECT ALL + 10 + MIN( ALL - CAST( + 86 AS SIGNED ) ) + 2 * - 85
----
-246

skipif mysql # not compatible
query I rowsort label-9361
SELECT ALL + 10 + MIN ( ALL - CAST ( + 86 AS INTEGER ) ) + 2 * - 85
----
-246

query I rowsort
SELECT + 51 - - + 23
----
74

query I rowsort
SELECT + 34 * - 92
----
-3128

onlyif mysql # DIV for integer division: 
query I rowsort label-9364
SELECT - 43 + - + 49 + + 11 + 8 + + 23 - - 99 DIV 80 DIV 81 DIV - + 74 - - - 83 AS col2
----
-133

skipif mysql # not compatible
query I rowsort label-9364
SELECT - 43 + - + 49 + + 11 + 8 + + 23 - - 99 / 80 / 81 / - + 74 - - - 83 AS col2
----
-133

query I rowsort
SELECT ALL + 16 - 17 AS col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9366
SELECT DISTINCT + 83 - + - COUNT( * ) + + 5 * - - 34 + - 87 AS col0
----
167

skipif mysql # not compatible
query I rowsort label-9366
SELECT DISTINCT + 83 - + - COUNT ( * ) + + 5 * - - 34 + - 87 AS col0
----
167

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9367
SELECT ALL - COALESCE ( + 50, - SUM( - 89 ) * - - CAST( NULL AS SIGNED ) + + COUNT( * ) * - 98 DIV + + COUNT( * ), + + COUNT( * ) + + - 50 )
----
-50

skipif mysql # not compatible
query I rowsort label-9367
SELECT ALL - COALESCE ( + 50, - SUM ( - 89 ) * - - CAST ( NULL AS INTEGER ) + + COUNT ( * ) * - 98 / + + COUNT ( * ), + + COUNT ( * ) + + - 50 )
----
-50

query I rowsort
SELECT 94 * - - ( 54 ) col0
----
5076

query I rowsort
SELECT DISTINCT - NULLIF ( ( - - ( - 99 ) ), 60 + 90 )
----
99

onlyif mysql # DIV for integer division: 
query I rowsort label-9370
SELECT 84 * 45 DIV + 59
----
64

skipif mysql # not compatible
query I rowsort label-9370
SELECT 84 * 45 / + 59
----
64

query I rowsort
SELECT DISTINCT + 59 * - + 4
----
-236

onlyif mysql # DIV for integer division: 
query I rowsort label-9372
SELECT DISTINCT - 5 * 55 DIV - 71 AS col0
----
3

skipif mysql # not compatible
query I rowsort label-9372
SELECT DISTINCT - 5 * 55 / - 71 AS col0
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-9373
SELECT 3 DIV - + 53
----
0

skipif mysql # not compatible
query I rowsort label-9373
SELECT 3 / - + 53
----
0

query I rowsort
SELECT DISTINCT + 32 + - 91
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-9375
SELECT DISTINCT - 69 + COUNT( * ) * - 71 - + - 69 - + 33 AS col0
----
-104

skipif mysql # not compatible
query I rowsort label-9375
SELECT DISTINCT - 69 + COUNT ( * ) * - 71 - + - 69 - + 33 AS col0
----
-104

onlyif mysql # aggregate syntax: 
query I rowsort label-9376
SELECT ALL + COUNT( * ) + - COALESCE ( + + 61, - 83, 98 ) * + - 31 col0
----
1892

skipif mysql # not compatible
query I rowsort label-9376
SELECT ALL + COUNT ( * ) + - COALESCE ( + + 61, - 83, 98 ) * + - 31 col0
----
1892

query I rowsort
SELECT + ( 54 ) * + 13 - + 70
----
632

query II rowsort
SELECT 99 - - 42 col1, + ( - 40 )
----
141
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-9379
SELECT 9 * - 27 * - MAX( 90 ) col0
----
21870

skipif mysql # not compatible
query I rowsort label-9379
SELECT 9 * - 27 * - MAX ( 90 ) col0
----
21870

query I rowsort
SELECT ALL 86 + + 99 AS col0
----
185

query II rowsort
SELECT DISTINCT + 14 + 24 AS col2, + 30
----
38
30

onlyif mysql # DIV for integer division: 
query I rowsort label-9382
SELECT - 83 DIV + 4 AS col1
----
-20

skipif mysql # not compatible
query I rowsort label-9382
SELECT - 83 / + 4 AS col1
----
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-9383
SELECT ALL - CASE - + COUNT( * ) WHEN - - AVG ( ALL 40 ) / + COUNT( * ) - + - 33 + - 29 + + 21 * COUNT( * ) / + 85 + 4 * 63 / COUNT( * ) THEN NULL ELSE - 32 END + + + MAX( - 8 ) + - ( - 30 )
----
54

skipif mysql # not compatible
query I rowsort label-9383
SELECT ALL - CASE - + COUNT ( * ) WHEN - - AVG ( ALL 40 ) / + COUNT ( * ) - + - 33 + - 29 + + 21 * COUNT ( * ) / + 85 + 4 * 63 / COUNT ( * ) THEN NULL ELSE - 32 END + + + MAX ( - 8 ) + - ( - 30 )
----
54

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9384
SELECT COUNT( * ) * ( + ( + - NULLIF ( - - 94, - MAX( + - 61 ) * - NULLIF ( ( 66 ), + 56 + - + 6 ) + CAST( - - 46 AS SIGNED ) + CASE - - 73 WHEN + 61 - + COUNT( * ) THEN - 55 + + COUNT( * ) + 8 END ) ) ) + + 14 AS col2
----
-80

skipif mysql # not compatible
query I rowsort label-9384
SELECT COUNT ( * ) * ( + ( + - NULLIF ( - - 94, - MAX ( + - 61 ) * - NULLIF ( ( 66 ), + 56 + - + 6 ) + CAST ( - - 46 AS INTEGER ) + CASE - - 73 WHEN + 61 - + COUNT ( * ) THEN - 55 + + COUNT ( * ) + 8 END ) ) ) + + 14 AS col2
----
-80

query I rowsort
SELECT + 35 + 57 + 69 AS col2
----
161

onlyif mysql # aggregate syntax: 
query I rowsort label-9386
SELECT + 49 + + + COUNT( + ( 36 ) ) + + CASE - - 30 WHEN + + 35 THEN CASE - - ( COUNT( * ) ) WHEN + SUM( ALL - - 52 ) * + COUNT( DISTINCT - 84 ) THEN 19 * + 54 END WHEN - 86 THEN - + 58 END * - 34
----
NULL

skipif mysql # not compatible
query I rowsort label-9386
SELECT + 49 + + + COUNT ( + ( 36 ) ) + + CASE - - 30 WHEN + + 35 THEN CASE - - ( COUNT ( * ) ) WHEN + SUM ( ALL - - 52 ) * + COUNT ( DISTINCT - 84 ) THEN 19 * + 54 END WHEN - 86 THEN - + 58 END * - 34
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9387
SELECT DISTINCT 97 * + COUNT( * ) * - ( - 2 ) AS col2, 19 - - 84
----
194
103

skipif mysql # not compatible
query II rowsort label-9387
SELECT DISTINCT 97 * + COUNT ( * ) * - ( - 2 ) AS col2, 19 - - 84
----
194
103

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9388
SELECT DISTINCT - 87 DIV - CAST( + - 98 AS SIGNED ) - + - 94 AS col1
----
94

skipif mysql # not compatible
query I rowsort label-9388
SELECT DISTINCT - 87 / - CAST ( + - 98 AS INTEGER ) - + - 94 AS col1
----
94

query I rowsort
SELECT ALL - - 1 - 90
----
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-9390
SELECT DISTINCT - 38 * + + MIN( ALL - 62 ) + + 65 + 36
----
2457

skipif mysql # not compatible
query I rowsort label-9390
SELECT DISTINCT - 38 * + + MIN ( ALL - 62 ) + + 65 + 36
----
2457

onlyif mysql # aggregate syntax: 
query I rowsort label-9391
SELECT ALL - MAX( DISTINCT + 50 )
----
-50

skipif mysql # not compatible
query I rowsort label-9391
SELECT ALL - MAX ( DISTINCT + 50 )
----
-50

query I rowsort
SELECT ALL + ( + ( 32 ) ) * - + 93 AS col0
----
-2976

onlyif mysql # aggregate syntax: 
query II rowsort label-9393
SELECT DISTINCT - COUNT( * ), + ( + + 50 ) * + 7 AS col0
----
-1
350

skipif mysql # not compatible
query II rowsort label-9393
SELECT DISTINCT - COUNT ( * ), + ( + + 50 ) * + 7 AS col0
----
-1
350

query I rowsort
SELECT DISTINCT - 73 * + - NULLIF ( - + 5, 23 * - 66 )
----
-365

query I rowsort
SELECT DISTINCT - 0 + 12 AS col2
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-9396
SELECT 19 * - - COALESCE ( - - COUNT( * ), 78 ) AS col2
----
19

skipif mysql # not compatible
query I rowsort label-9396
SELECT 19 * - - COALESCE ( - - COUNT ( * ), 78 ) AS col2
----
19

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9397
SELECT + NULLIF ( COALESCE ( - 64, + 67 + + 18 * + + 71 + + COUNT( * ), + CASE 87 WHEN + - ( + - 3 ) THEN + + 18 DIV - 47 + + ( - 39 ) END - - 13 + - + 70 + - MAX( ALL + 64 ) * + CASE - 42 WHEN + 84 * + 59 THEN + 22 END * - CAST( NULL AS SIGNED ) * + + 69 ), + - 74 ) * - 19 + + + 80 * 30 AS col1
----
3616

skipif mysql # not compatible
query I rowsort label-9397
SELECT + NULLIF ( COALESCE ( - 64, + 67 + + 18 * + + 71 + + COUNT ( * ), + CASE 87 WHEN + - ( + - 3 ) THEN + + 18 / - 47 + + ( - 39 ) END - - 13 + - + 70 + - MAX ( ALL + 64 ) * + CASE - 42 WHEN + 84 * + 59 THEN + 22 END * - CAST ( NULL AS INTEGER ) * + + 69 ), + - 74 ) * - 19 + + + 80 * 30 AS col1
----
3616

onlyif mysql # aggregate syntax: 
query I rowsort label-9398
SELECT COUNT( * ) - 44 AS col1
----
-43

skipif mysql # not compatible
query I rowsort label-9398
SELECT COUNT ( * ) - 44 AS col1
----
-43

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9399
SELECT ALL - CAST( ( - - ( + ( + - 84 ) ) ) AS SIGNED ) AS col0, - 75 + 29 AS col1
----
84
-46

skipif mysql # not compatible
query II rowsort label-9399
SELECT ALL - CAST ( ( - - ( + ( + - 84 ) ) ) AS INTEGER ) AS col0, - 75 + 29 AS col1
----
84
-46

query I rowsort
SELECT 9 + 80
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-9401
SELECT - COUNT( * ) * - 21 - + - ( - + 88 )
----
-67

skipif mysql # not compatible
query I rowsort label-9401
SELECT - COUNT ( * ) * - 21 - + - ( - + 88 )
----
-67

query I rowsort
SELECT ALL - 83 + 74
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-9403
SELECT ALL - 11 * - - COUNT( * ) * 8 AS col0
----
-88

skipif mysql # not compatible
query I rowsort label-9403
SELECT ALL - 11 * - - COUNT ( * ) * 8 AS col0
----
-88

query I rowsort
SELECT - 20 * - - 27 * 46 * - - 33 * - - 76 - 33 + - ( 8 ) + 38 col1
----
-62298723

onlyif mysql # DIV for integer division: 
query I rowsort label-9405
SELECT ALL - 54 DIV 89 + - + 37 + - 98 DIV 73 AS col2
----
-38

skipif mysql # not compatible
query I rowsort label-9405
SELECT ALL - 54 / 89 + - + 37 + - 98 / 73 AS col2
----
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-9406
SELECT DISTINCT + 43 + - + 67 * - MIN( ALL + 30 ) * 4
----
8083

skipif mysql # not compatible
query I rowsort label-9406
SELECT DISTINCT + 43 + - + 67 * - MIN ( ALL + 30 ) * 4
----
8083

query II rowsort
SELECT + - 5 AS col0, - 11 AS col2
----
-5
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-9408
SELECT + 67 + - + ( + - COUNT( * ) ) + - 18 * + ( 1 ) col2
----
50

skipif mysql # not compatible
query I rowsort label-9408
SELECT + 67 + - + ( + - COUNT ( * ) ) + - 18 * + ( 1 ) col2
----
50

query I rowsort
SELECT ALL + + 36 - + + 95
----
-59

onlyif mysql # DIV for integer division: 
query II rowsort label-9410
SELECT + 20 col0, 67 DIV - 21
----
20
-3

skipif mysql # not compatible
query II rowsort label-9410
SELECT + 20 col0, 67 / - 21
----
20
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-9411
SELECT + 80 + - - SUM( DISTINCT - 30 )
----
50

skipif mysql # not compatible
query I rowsort label-9411
SELECT + 80 + - - SUM ( DISTINCT - 30 )
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-9412
SELECT - COUNT( * ) * + 53
----
-53

skipif mysql # not compatible
query I rowsort label-9412
SELECT - COUNT ( * ) * + 53
----
-53

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9413
SELECT - CAST( NULL AS SIGNED ) + + - 71 * 37 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9413
SELECT - CAST ( NULL AS INTEGER ) + + - 71 * 37 AS col1
----
NULL

query I rowsort
SELECT + 3 + + + 55 AS col2
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-9415
SELECT DISTINCT CASE COUNT( * ) WHEN - 6 THEN + 77 END col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9415
SELECT DISTINCT CASE COUNT ( * ) WHEN - 6 THEN + 77 END col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9416
SELECT ALL 86 - - NULLIF ( - 37, 86 + + - COALESCE ( 92, - NULLIF ( - - 61, 19 ), - - 88 ) ) - 56 * + + NULLIF ( + 13, + 24 + + + 38 ) * - MIN( - 33 ) AS col2
----
-23975

skipif mysql # not compatible
query I rowsort label-9416
SELECT ALL 86 - - NULLIF ( - 37, 86 + + - COALESCE ( 92, - NULLIF ( - - 61, 19 ), - - 88 ) ) - 56 * + + NULLIF ( + 13, + 24 + + + 38 ) * - MIN ( - 33 ) AS col2
----
-23975

onlyif mysql # aggregate syntax: 
query I rowsort label-9417
SELECT ALL - 58 * - MIN( 52 )
----
3016

skipif mysql # not compatible
query I rowsort label-9417
SELECT ALL - 58 * - MIN ( 52 )
----
3016

query I rowsort
SELECT - + ( + 88 ) col2
----
-88

query I rowsort
SELECT - ( + 5 ) AS col0
----
-5

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9420
SELECT + COUNT( * ) + - 92 + + 29 AS col1, 94 DIV - 42 AS col2
----
-62
-2

skipif mysql # not compatible
query II rowsort label-9420
SELECT + COUNT ( * ) + - 92 + + 29 AS col1, 94 / - 42 AS col2
----
-62
-2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9421
SELECT + 31 DIV COUNT( * ) AS col0
----
31

skipif mysql # not compatible
query I rowsort label-9421
SELECT + 31 / COUNT ( * ) AS col0
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-9422
SELECT + COALESCE ( MAX( + 10 ), 73 ) * - - 51 - + 82 AS col0
----
428

skipif mysql # not compatible
query I rowsort label-9422
SELECT + COALESCE ( MAX ( + 10 ), 73 ) * - - 51 - + 82 AS col0
----
428

query I rowsort
SELECT + 48 + - + 3 AS col2
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-9424
SELECT ALL 30 + MIN( - 47 )
----
-17

skipif mysql # not compatible
query I rowsort label-9424
SELECT ALL 30 + MIN ( - 47 )
----
-17

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9425
SELECT 75 col0, CAST( + - 71 AS SIGNED ) + + + 14 * + 19 * 87 + 98 - - COALESCE ( + 66, + 46, + + 85 - - - COUNT( * ) )
----
75
23235

skipif mysql # not compatible
query II rowsort label-9425
SELECT 75 col0, CAST ( + - 71 AS INTEGER ) + + + 14 * + 19 * 87 + 98 - - COALESCE ( + 66, + 46, + + 85 - - - COUNT ( * ) )
----
75
23235

query I rowsort
SELECT ALL 1 + + - 64 + + 88 * + 41 * 18 AS col1
----
64881

onlyif mysql # aggregate syntax: 
query I rowsort label-9427
SELECT DISTINCT 60 + - MIN( ALL - 76 )
----
136

skipif mysql # not compatible
query I rowsort label-9427
SELECT DISTINCT 60 + - MIN ( ALL - 76 )
----
136

onlyif mysql # aggregate syntax: 
query II rowsort label-9428
SELECT - NULLIF ( - COUNT( * ), + - MAX( 34 ) + COUNT( * ) * - COUNT( * ) + - 27 * - - 15 * 38 ) AS col1, + 36
----
1
36

skipif mysql # not compatible
query II rowsort label-9428
SELECT - NULLIF ( - COUNT ( * ), + - MAX ( 34 ) + COUNT ( * ) * - COUNT ( * ) + - 27 * - - 15 * 38 ) AS col1, + 36
----
1
36

query I rowsort
SELECT ALL 8 * - 45 * 7 + + + 89 + - 13 * + 12 AS col0
----
-2587

onlyif mysql # DIV for integer division: 
query I rowsort label-9430
SELECT + 65 DIV - - 77
----
0

skipif mysql # not compatible
query I rowsort label-9430
SELECT + 65 / - - 77
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9431
SELECT DISTINCT - CAST( NULL AS DECIMAL ) * - + 54 + 67 + + - 37 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9431
SELECT DISTINCT - CAST ( NULL AS REAL ) * - + 54 + 67 + + - 37 AS col0
----
NULL

query I rowsort
SELECT ( - + 69 )
----
-69

onlyif mysql # aggregate syntax: 
query II rowsort label-9433
SELECT ALL - 46 * - + COALESCE ( - 25, 93 ) * 3 - 52 + 41 col0, - ( + + MIN( - 70 ) ) * 39 + + - 83 + - 19 * 58 AS col1
----
-3461
1545

skipif mysql # not compatible
query II rowsort label-9433
SELECT ALL - 46 * - + COALESCE ( - 25, 93 ) * 3 - 52 + 41 col0, - ( + + MIN ( - 70 ) ) * 39 + + - 83 + - 19 * 58 AS col1
----
-3461
1545

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-9434
SELECT ALL + CASE + 21 WHEN - + 24 THEN NULL WHEN - + ( + 30 ) * + 93 + - CAST( - 64 AS DECIMAL ) THEN + COUNT( DISTINCT + - ( + 2 ) ) END AS col1, 84
----
NULL
84

skipif mysql # not compatible
query II rowsort label-9434
SELECT ALL + CASE + 21 WHEN - + 24 THEN NULL WHEN - + ( + 30 ) * + 93 + - CAST ( - 64 AS REAL ) THEN + COUNT ( DISTINCT + - ( + 2 ) ) END AS col1, 84
----
NULL
84

onlyif mysql # aggregate syntax: 
query I rowsort label-9435
SELECT - COUNT( * ) + - 24 col2
----
-25

skipif mysql # not compatible
query I rowsort label-9435
SELECT - COUNT ( * ) + - 24 col2
----
-25

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9436
SELECT + ( - + CAST( + 26 AS SIGNED ) ) AS col2
----
-26

skipif mysql # not compatible
query I rowsort label-9436
SELECT + ( - + CAST ( + 26 AS INTEGER ) ) AS col2
----
-26

query I rowsort
SELECT + 23 * + 65 AS col2
----
1495

onlyif mysql # DIV for integer division: 
query II rowsort label-9438
SELECT DISTINCT - 36 * - 95 + 81 DIV 34 + - - 11 + - - 96, 8 AS col0
----
3529
8

skipif mysql # not compatible
query II rowsort label-9438
SELECT DISTINCT - 36 * - 95 + 81 / 34 + - - 11 + - - 96, 8 AS col0
----
3529
8

query I rowsort
SELECT ALL + - 1 * - + 42
----
42

query II rowsort
SELECT DISTINCT + + 12 AS col1, + NULLIF ( - ( 27 ), + 40 )
----
12
-27

onlyif mysql # aggregate syntax: 
query II rowsort label-9441
SELECT + - COUNT( * ) AS col1, + 53
----
-1
53

skipif mysql # not compatible
query II rowsort label-9441
SELECT + - COUNT ( * ) AS col1, + 53
----
-1
53

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9442
SELECT DISTINCT + + NULLIF ( - 66, 14 * ( + COALESCE ( - COUNT( * ), + - 9 / AVG ( DISTINCT - CAST( - ( - 38 ) AS SIGNED ) ) ) ) ) AS col0
----
-66

skipif mysql # not compatible
query I rowsort label-9442
SELECT DISTINCT + + NULLIF ( - 66, 14 * ( + COALESCE ( - COUNT ( * ), + - 9 / AVG ( DISTINCT - CAST ( - ( - 38 ) AS INTEGER ) ) ) ) ) AS col0
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-9443
SELECT ALL + 64 * - COUNT( ALL - + 51 )
----
-64

skipif mysql # not compatible
query I rowsort label-9443
SELECT ALL + 64 * - COUNT ( ALL - + 51 )
----
-64

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9444
SELECT + 4 - - + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9444
SELECT + 4 - - + CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9445
SELECT - 74 * + - 83 + COUNT( * )
----
6143

skipif mysql # not compatible
query I rowsort label-9445
SELECT - 74 * + - 83 + COUNT ( * )
----
6143

onlyif mysql # DIV for integer division: 
query II rowsort label-9446
SELECT DISTINCT + + 96 AS col2, 18 DIV + 99
----
96
0

skipif mysql # not compatible
query II rowsort label-9446
SELECT DISTINCT + + 96 AS col2, 18 / + 99
----
96
0

onlyif mysql # DIV for integer division: 
query I rowsort label-9447
SELECT - - 93 DIV - 46 AS col2
----
-2

skipif mysql # not compatible
query I rowsort label-9447
SELECT - - 93 / - 46 AS col2
----
-2

query I rowsort
SELECT ALL - - 30 * + 87 * + 75
----
195750

query II rowsort
SELECT ALL - 79 AS col2, 37
----
-79
37

query I rowsort
SELECT - - 43 - - - 90
----
-47

onlyif mysql # DIV for integer division: 
query I rowsort label-9451
SELECT - ( 93 ) DIV 68 - + - 81 + + 4
----
84

skipif mysql # not compatible
query I rowsort label-9451
SELECT - ( 93 ) / 68 - + - 81 + + 4
----
84

query I rowsort
SELECT - ( + NULLIF ( 70, - 57 ) ) AS col1
----
-70

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9453
SELECT + 90 * - 96 * CAST( NULL AS SIGNED ) * - + 16 / - + 50 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9453
SELECT + 90 * - 96 * CAST ( NULL AS INTEGER ) * - + 16 / - + 50 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9454
SELECT - + COUNT( * ), 18 + - - 56 col1
----
-1
74

skipif mysql # not compatible
query II rowsort label-9454
SELECT - + COUNT ( * ), 18 + - - 56 col1
----
-1
74

onlyif mysql # aggregate syntax: 
query I rowsort label-9455
SELECT - SUM( - - 11 ) AS col0
----
-11

skipif mysql # not compatible
query I rowsort label-9455
SELECT - SUM ( - - 11 ) AS col0
----
-11

query I rowsort
SELECT + - 61 + - 77
----
-138

query II rowsort
SELECT + 17 - + 61, - 44 AS col1
----
-44
-44

query I rowsort
SELECT - COALESCE ( + 94, + 80 + + 98 + 78 ) * - 12
----
1128

onlyif mysql # aggregate syntax: 
query I rowsort label-9459
SELECT ALL + 18 + - - 23 * - COUNT( * )
----
-5

skipif mysql # not compatible
query I rowsort label-9459
SELECT ALL + 18 + - - 23 * - COUNT ( * )
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-9460
SELECT DISTINCT COUNT( * ) * - + 72 AS col2
----
-72

skipif mysql # not compatible
query I rowsort label-9460
SELECT DISTINCT COUNT ( * ) * - + 72 AS col2
----
-72

query I rowsort
SELECT ALL CASE - - 53 WHEN - 83 THEN + + 34 WHEN + 58 THEN NULL ELSE - 54 * + 25 - 67 * 66 END + + - 21 + - 69 * - - 51 AS col1
----
-9312

query I rowsort
SELECT + 89 * 0 col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9463
SELECT ALL + CASE + 67 WHEN - - 93 + - 3 * 90 * - 92 THEN + 83 END + COUNT( + - 54 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9463
SELECT ALL + CASE + 67 WHEN - - 93 + - 3 * 90 * - 92 THEN + 83 END + COUNT ( + - 54 )
----
NULL

query I rowsort
SELECT - 77 + 9 * - 1
----
-86

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9465
SELECT - CAST( - + 61 AS SIGNED ) + CAST( NULL AS DECIMAL ) + + 99 + 84 + + 2 * - 86 - + + 95 / - ( COUNT( * ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9465
SELECT - CAST ( - + 61 AS INTEGER ) + CAST ( NULL AS REAL ) + + 99 + 84 + + 2 * - 86 - + + 95 / - ( COUNT ( * ) ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9466
SELECT + COUNT( ALL - ( - 43 ) ) * + 95 AS col2
----
95

skipif mysql # not compatible
query I rowsort label-9466
SELECT + COUNT ( ALL - ( - 43 ) ) * + 95 AS col2
----
95

query I rowsort
SELECT + 29 + + - 12 * 23
----
-247

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9468
SELECT DISTINCT - 92 DIV + CAST( + 37 AS SIGNED ) - COUNT( * )
----
-3

skipif mysql # not compatible
query I rowsort label-9468
SELECT DISTINCT - 92 / + CAST ( + 37 AS INTEGER ) - COUNT ( * )
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-9469
SELECT + 58 * + - COUNT( DISTINCT + ( ( - + 6 ) ) )
----
-58

skipif mysql # not compatible
query I rowsort label-9469
SELECT + 58 * + - COUNT ( DISTINCT + ( ( - + 6 ) ) )
----
-58

query I rowsort
SELECT ALL 69 * - - COALESCE ( - + 40, 80 )
----
-2760

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9471
SELECT ALL + 59 DIV + ( + - MAX( - 96 ) ) - - 80 AS col2
----
80

skipif mysql # not compatible
query I rowsort label-9471
SELECT ALL + 59 / + ( + - MAX ( - 96 ) ) - - 80 AS col2
----
80

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9472
SELECT + CASE + CAST( + + 29 AS SIGNED ) WHEN + 99 THEN NULL ELSE - + COALESCE ( - 26, + 15 + + 93 ) END AS col0
----
26

skipif mysql # not compatible
query I rowsort label-9472
SELECT + CASE + CAST ( + + 29 AS INTEGER ) WHEN + 99 THEN NULL ELSE - + COALESCE ( - 26, + 15 + + 93 ) END AS col0
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-9473
SELECT - NULLIF ( - - 90, + 55 ) * + COALESCE ( + COUNT( * ), - - 58, + 44 + + 14 - + + 44 ) + + 75 * - + ( + 40 ) AS col0
----
-3090

skipif mysql # not compatible
query I rowsort label-9473
SELECT - NULLIF ( - - 90, + 55 ) * + COALESCE ( + COUNT ( * ), - - 58, + 44 + + 14 - + + 44 ) + + 75 * - + ( + 40 ) AS col0
----
-3090

onlyif mysql # aggregate syntax: 
query I rowsort label-9474
SELECT + - MIN( ALL - 45 ) * 13 * 21
----
12285

skipif mysql # not compatible
query I rowsort label-9474
SELECT + - MIN ( ALL - 45 ) * 13 * 21
----
12285

query I rowsort
SELECT DISTINCT - 52 * 69 col2
----
-3588

onlyif mysql # aggregate syntax: 
query II rowsort label-9476
SELECT + + 73 * + 78 + - - 97 + + 3 - 37 AS col1, + CASE - COUNT( * ) WHEN 56 THEN COALESCE ( + + ( + SUM( - 89 ) ), - 73 ) ELSE NULL END AS col2
----
5757
NULL

skipif mysql # not compatible
query II rowsort label-9476
SELECT + + 73 * + 78 + - - 97 + + 3 - 37 AS col1, + CASE - COUNT ( * ) WHEN 56 THEN COALESCE ( + + ( + SUM ( - 89 ) ), - 73 ) ELSE NULL END AS col2
----
5757
NULL

query I rowsort
SELECT ALL - 2 - 60 AS col1
----
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-9478
SELECT - COUNT( * ) * - + 38 * + + 39
----
1482

skipif mysql # not compatible
query I rowsort label-9478
SELECT - COUNT ( * ) * - + 38 * + + 39
----
1482

onlyif mysql # aggregate syntax: 
query I rowsort label-9479
SELECT ALL - COUNT( DISTINCT 65 )
----
-1

skipif mysql # not compatible
query I rowsort label-9479
SELECT ALL - COUNT ( DISTINCT 65 )
----
-1

query I rowsort
SELECT ALL - - 21 col2
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-9481
SELECT DISTINCT - MAX( DISTINCT - 91 )
----
91

skipif mysql # not compatible
query I rowsort label-9481
SELECT DISTINCT - MAX ( DISTINCT - 91 )
----
91

query I rowsort
SELECT ALL - 17 + + + 99 col2
----
82

query I rowsort
SELECT - COALESCE ( - 7, ( - 53 ) ) AS col2
----
7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9484
SELECT NULLIF ( - CAST( NULL AS SIGNED ), + CAST( NULL AS SIGNED ) ) * 27 + - - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-9484
SELECT NULLIF ( - CAST ( NULL AS INTEGER ), + CAST ( NULL AS INTEGER ) ) * 27 + - - COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9485
SELECT ALL - 57 + - - COUNT( 89 )
----
-56

skipif mysql # not compatible
query I rowsort label-9485
SELECT ALL - 57 + - - COUNT ( 89 )
----
-56

onlyif mysql # DIV for integer division: 
query II rowsort label-9486
SELECT DISTINCT 8 AS col1, 30 DIV - + 80
----
8
0

skipif mysql # not compatible
query II rowsort label-9486
SELECT DISTINCT 8 AS col1, 30 / - + 80
----
8
0

query I rowsort
SELECT ALL + 86 + + + 52 AS col2
----
138

query I rowsort
SELECT DISTINCT + 14 + - 63
----
-49

query I rowsort
SELECT DISTINCT - 14 + ( - 16 ) * 37
----
-606

query II rowsort
SELECT 0 col1, 90 AS col2
----
0
90

query I rowsort
SELECT 19 + + 58
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-9492
SELECT ALL + SUM( 54 ) + + - 91 AS col0
----
-37

skipif mysql # not compatible
query I rowsort label-9492
SELECT ALL + SUM ( 54 ) + + - 91 AS col0
----
-37

query I rowsort
SELECT 93 * 85
----
7905

onlyif mysql # aggregate syntax: 
query I rowsort label-9494
SELECT DISTINCT + 69 + COUNT( * ) AS col0
----
70

skipif mysql # not compatible
query I rowsort label-9494
SELECT DISTINCT + 69 + COUNT ( * ) AS col0
----
70

query II rowsort
SELECT 51 AS col2, - 16
----
51
-16

query II rowsort
SELECT NULLIF ( 89, - 79 + ( + 58 ) ) + - 28, + 23 * 5 AS col1
----
61
115

onlyif mysql # aggregate syntax: 
query II rowsort label-9497
SELECT DISTINCT 84 AS col1, + 45 + COUNT( * )
----
84
46

skipif mysql # not compatible
query II rowsort label-9497
SELECT DISTINCT 84 AS col1, + 45 + COUNT ( * )
----
84
46

onlyif mysql # aggregate syntax: 
query I rowsort label-9498
SELECT DISTINCT + COUNT( ALL + 52 ) - + + COUNT( * ) col2
----
0

skipif mysql # not compatible
query I rowsort label-9498
SELECT DISTINCT + COUNT ( ALL + 52 ) - + + COUNT ( * ) col2
----
0

query I rowsort
SELECT DISTINCT + 52 - ( + - CASE 48 WHEN - 2 THEN NULL ELSE + - ( + 7 ) END ) + - 28 * + 33 * - 24
----
22221

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9500
SELECT ALL 45 col0, 3 DIV MAX( ALL - + 30 )
----
45
0

skipif mysql # not compatible
query II rowsort label-9500
SELECT ALL 45 col0, 3 / MAX ( ALL - + 30 )
----
45
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9501
SELECT COUNT( * ) * 29 + + 76 AS col0
----
105

skipif mysql # not compatible
query I rowsort label-9501
SELECT COUNT ( * ) * 29 + + 76 AS col0
----
105

onlyif mysql # aggregate syntax: 
query I rowsort label-9502
SELECT ALL + COUNT( * ) * 98 AS col0
----
98

skipif mysql # not compatible
query I rowsort label-9502
SELECT ALL + COUNT ( * ) * 98 AS col0
----
98

onlyif mysql # aggregate syntax: 
query I rowsort label-9503
SELECT ALL - COALESCE ( - MAX( ALL - 29 ), + 81 ) * - 7 AS col2
----
203

skipif mysql # not compatible
query I rowsort label-9503
SELECT ALL - COALESCE ( - MAX ( ALL - 29 ), + 81 ) * - 7 AS col2
----
203

query I rowsort
SELECT 60 * + - 35
----
-2100

onlyif mysql # aggregate syntax: 
query II rowsort label-9505
SELECT ALL - 98, - COUNT( * ) AS col1
----
-98
-1

skipif mysql # not compatible
query II rowsort label-9505
SELECT ALL - 98, - COUNT ( * ) AS col1
----
-98
-1

query I rowsort
SELECT + 42 + - 28 AS col2
----
14

onlyif mysql # aggregate syntax: 
query II rowsort label-9507
SELECT + 86 * - 25 * + COUNT( * ) AS col1, MIN( DISTINCT 21 ) AS col0
----
-2150
21

skipif mysql # not compatible
query II rowsort label-9507
SELECT + 86 * - 25 * + COUNT ( * ) AS col1, MIN ( DISTINCT 21 ) AS col0
----
-2150
21

query I rowsort
SELECT 49 + 47 AS col1
----
96

onlyif mysql # DIV for integer division: 
query I rowsort label-9509
SELECT - 95 DIV 20 AS col2
----
-4

skipif mysql # not compatible
query I rowsort label-9509
SELECT - 95 / 20 AS col2
----
-4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9510
SELECT ALL - - SUM( + CAST( NULL AS SIGNED ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9510
SELECT ALL - - SUM ( + CAST ( NULL AS INTEGER ) ) AS col2
----
NULL

query I rowsort
SELECT DISTINCT - COALESCE ( + 66, - ( + 75 ) + - 2 )
----
-66

query I rowsort
SELECT ALL 52 * - - 80 AS col1
----
4160

onlyif mysql # DIV for integer division: 
query I rowsort label-9513
SELECT ALL - ( 64 ) DIV + 66 + - 91 col0
----
-91

skipif mysql # not compatible
query I rowsort label-9513
SELECT ALL - ( 64 ) / + 66 + - 91 col0
----
-91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9514
SELECT ALL + CASE + 5 WHEN + COUNT( * ) + - AVG ( - + 1 ) + + 14 THEN NULL WHEN - 42 * + COALESCE ( - 17, - 33, 16 ) + + ( - - ( - 79 ) ) + - 72 THEN - + ( 16 ) ELSE - - 53 - CAST( NULL AS SIGNED ) END * - 56 * COALESCE ( - + 68, - - 23 - - - 72 + - + 9 + + - 34 / - - 84 + + - 67 ) * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9514
SELECT ALL + CASE + 5 WHEN + COUNT ( * ) + - AVG ( - + 1 ) + + 14 THEN NULL WHEN - 42 * + COALESCE ( - 17, - 33, 16 ) + + ( - - ( - 79 ) ) + - 72 THEN - + ( 16 ) ELSE - - 53 - CAST ( NULL AS INTEGER ) END * - 56 * COALESCE ( - + 68, - - 23 - - - 72 + - + 9 + + - 34 / - - 84 + + - 67 ) * - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9515
SELECT + 45 * - + ( - 91 ) / NULLIF ( - - 11, 57 * - 18 ) * + MIN( DISTINCT - 86 ) + + 58 + 90 * - + 3 * - - 53 * - - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9515
SELECT + 45 * - + ( - 91 ) / NULLIF ( - - 11, 57 * - 18 ) * + MIN ( DISTINCT - 86 ) + + 58 + 90 * - + 3 * - - 53 * - - CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT DISTINCT - 79 + + 19 AS col2
----
-60

query I rowsort
SELECT 8 - + 28 AS col1
----
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-9518
SELECT + + MIN( - + 74 ) AS col0
----
-74

skipif mysql # not compatible
query I rowsort label-9518
SELECT + + MIN ( - + 74 ) AS col0
----
-74

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9519
SELECT ALL + 46 + + 8 + + CAST( + 61 AS SIGNED ) * - 12 + - 31 + 68 * COUNT( * ) * - - 26 - 54
----
1005

skipif mysql # not compatible
query I rowsort label-9519
SELECT ALL + 46 + + 8 + + CAST ( + 61 AS INTEGER ) * - 12 + - 31 + 68 * COUNT ( * ) * - - 26 - 54
----
1005

onlyif mysql # aggregate syntax: 
query II rowsort label-9520
SELECT 97 col1, - COUNT( * ) AS col2
----
97
-1

skipif mysql # not compatible
query II rowsort label-9520
SELECT 97 col1, - COUNT ( * ) AS col2
----
97
-1

query I rowsort
SELECT - 11 * 41 AS col2
----
-451

query I rowsort
SELECT 66 * - 89 + - 4
----
-5878

query II rowsort
SELECT ALL - 88 AS col0, 9 + 34 AS col0
----
-88
43

onlyif mysql # aggregate syntax: 
query I rowsort label-9524
SELECT DISTINCT - 27 + - COUNT( * ) AS col0
----
-28

skipif mysql # not compatible
query I rowsort label-9524
SELECT DISTINCT - 27 + - COUNT ( * ) AS col0
----
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-9525
SELECT 13 - + MAX( - 58 )
----
71

skipif mysql # not compatible
query I rowsort label-9525
SELECT 13 - + MAX ( - 58 )
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-9526
SELECT 22 + + COUNT( * ) AS col2
----
23

skipif mysql # not compatible
query I rowsort label-9526
SELECT 22 + + COUNT ( * ) AS col2
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-9527
SELECT ALL COUNT( * ) + + - ( - - 75 ) col1
----
-74

skipif mysql # not compatible
query I rowsort label-9527
SELECT ALL COUNT ( * ) + + - ( - - 75 ) col1
----
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-9528
SELECT 3 + - CASE - + COUNT( * ) WHEN - 38 THEN - 75 + + COUNT( * ) WHEN - + MIN( 56 ) THEN ( + - 65 ) + - - 19 * - 37 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9528
SELECT 3 + - CASE - + COUNT ( * ) WHEN - 38 THEN - 75 + + COUNT ( * ) WHEN - + MIN ( 56 ) THEN ( + - 65 ) + - - 19 * - 37 END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9529
SELECT 38 * + COUNT( * ) * + 84
----
3192

skipif mysql # not compatible
query I rowsort label-9529
SELECT 38 * + COUNT ( * ) * + 84
----
3192

onlyif mysql # aggregate syntax: 
query I rowsort label-9530
SELECT 48 - + COUNT( * ) AS col0
----
47

skipif mysql # not compatible
query I rowsort label-9530
SELECT 48 - + COUNT ( * ) AS col0
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-9531
SELECT ALL COUNT( + + 76 )
----
1

skipif mysql # not compatible
query I rowsort label-9531
SELECT ALL COUNT ( + + 76 )
----
1

query I rowsort
SELECT 28 * + 50 * 45
----
63000

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9533
SELECT DISTINCT + 20 - - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9533
SELECT DISTINCT + 20 - - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT - 22 * 66 * + + 35
----
-50820

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9535
SELECT - CAST( NULL AS SIGNED ) * - 71 + + NULLIF ( + + 63, - 62 * 49 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9535
SELECT - CAST ( NULL AS INTEGER ) * - 71 + + NULLIF ( + + 63, - 62 * 49 ) AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9536
SELECT ALL + MIN( DISTINCT + - 83 ), 50 * + + 32 / 2 * + COUNT( * ) + - + 94 + - 59 * - - 23 + 11 + CASE + + 18 WHEN - + 31 THEN + - COALESCE ( 65, + 12, + CASE + 17 WHEN 89 - - - 45 / + + 10 + - CAST( - 96 AS SIGNED ) + + 43 THEN - 74 WHEN - 91 THEN NULL ELSE - + 16 END + MIN( - 40 ) + AVG ( ALL - 13 ) ) WHEN - 28 THEN - 3 / + 2 + 48 * - COUNT( * ) END AS col1
----
-83
NULL

skipif mysql # not compatible
query II rowsort label-9536
SELECT ALL + MIN ( DISTINCT + - 83 ), 50 * + + 32 / 2 * + COUNT ( * ) + - + 94 + - 59 * - - 23 + 11 + CASE + + 18 WHEN - + 31 THEN + - COALESCE ( 65, + 12, + CASE + 17 WHEN 89 - - - 45 / + + 10 + - CAST ( - 96 AS INTEGER ) + + 43 THEN - 74 WHEN - 91 THEN NULL ELSE - + 16 END + MIN ( - 40 ) + AVG ( ALL - 13 ) ) WHEN - 28 THEN - 3 / + 2 + 48 * - COUNT ( * ) END AS col1
----
-83
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9537
SELECT ALL - 86 * - + 87 + MAX( DISTINCT - 72 ), - COALESCE ( 34, - ( 50 ) ) * - - MAX( DISTINCT 51 ) AS col1
----
7410
-1734

skipif mysql # not compatible
query II rowsort label-9537
SELECT ALL - 86 * - + 87 + MAX ( DISTINCT - 72 ), - COALESCE ( 34, - ( 50 ) ) * - - MAX ( DISTINCT 51 ) AS col1
----
7410
-1734

onlyif mysql # aggregate syntax: 
query I rowsort label-9538
SELECT ALL - 93 * + + COUNT( * ) * + 56 + - - COUNT( * ) + 45 + 83 * + 14 * - + 17 - + + COUNT( * ) * - 21 * COUNT( DISTINCT + 2 ) AS col0
----
-24895

skipif mysql # not compatible
query I rowsort label-9538
SELECT ALL - 93 * + + COUNT ( * ) * + 56 + - - COUNT ( * ) + 45 + 83 * + 14 * - + 17 - + + COUNT ( * ) * - 21 * COUNT ( DISTINCT + 2 ) AS col0
----
-24895

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9539
SELECT + - 36 DIV 82 * + 12 + + + ( 21 ) + - 13 * 95 + + MAX( - 26 ), + 52 AS col1
----
-1240
52

skipif mysql # not compatible
query II rowsort label-9539
SELECT + - 36 / 82 * + 12 + + + ( 21 ) + - 13 * 95 + + MAX ( - 26 ), + 52 AS col1
----
-1240
52

onlyif mysql # aggregate syntax: 
query II rowsort label-9540
SELECT ALL - + COUNT( * ) * 23 AS col1, - 43 + - + COUNT( * )
----
-23
-44

skipif mysql # not compatible
query II rowsort label-9540
SELECT ALL - + COUNT ( * ) * 23 AS col1, - 43 + - + COUNT ( * )
----
-23
-44

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9541
SELECT DISTINCT + NULLIF ( - CAST( - 72 AS SIGNED ), - 18 - 8 ) * + - 14 + - + 72 AS col0, - COUNT( * ) * + ( + 48 ) * 99 col2
----
-1080
-4752

skipif mysql # not compatible
query II rowsort label-9541
SELECT DISTINCT + NULLIF ( - CAST ( - 72 AS INTEGER ), - 18 - 8 ) * + - 14 + - + 72 AS col0, - COUNT ( * ) * + ( + 48 ) * 99 col2
----
-1080
-4752

onlyif mysql # aggregate syntax: 
query I rowsort label-9542
SELECT NULLIF ( COUNT( * ), + 37 )
----
1

skipif mysql # not compatible
query I rowsort label-9542
SELECT NULLIF ( COUNT ( * ), + 37 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9543
SELECT DISTINCT 73 * + COUNT( * ) + + 90
----
163

skipif mysql # not compatible
query I rowsort label-9543
SELECT DISTINCT 73 * + COUNT ( * ) + + 90
----
163

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9544
SELECT 70 DIV 63 + + COUNT( * )
----
2

skipif mysql # not compatible
query I rowsort label-9544
SELECT 70 / 63 + + COUNT ( * )
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-9545
SELECT + COUNT( * ) * + 84 - - 10 AS col1
----
94

skipif mysql # not compatible
query I rowsort label-9545
SELECT + COUNT ( * ) * + 84 - - 10 AS col1
----
94

onlyif mysql # aggregate syntax: 
query II rowsort label-9546
SELECT - ( ( - 9 ) ) + + 82, SUM( 68 ) + + + 59 + - 1 * - - 85 col0
----
91
42

skipif mysql # not compatible
query II rowsort label-9546
SELECT - ( ( - 9 ) ) + + 82, SUM ( 68 ) + + + 59 + - 1 * - - 85 col0
----
91
42

onlyif mysql # DIV for integer division: 
query I rowsort label-9547
SELECT DISTINCT 44 DIV - 10
----
-4

skipif mysql # not compatible
query I rowsort label-9547
SELECT DISTINCT 44 / - 10
----
-4

query I rowsort
SELECT + + 4 * 83
----
332

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9549
SELECT ALL + + CAST( - ( - CAST( NULL AS DECIMAL ) ) AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9549
SELECT ALL + + CAST ( - ( - CAST ( NULL AS REAL ) ) AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9550
SELECT ALL + - 11 * - - 52 + - - CASE 30 WHEN + 77 THEN + 39 ELSE + 14 / + 16 + - - 39 + 76 + MIN( DISTINCT - 32 ) + COUNT( * ) / + 75 + 28 * 84 END + + + ( + CAST( NULL AS SIGNED ) ) - 10 * + 27
----
NULL

skipif mysql # not compatible
query I rowsort label-9550
SELECT ALL + - 11 * - - 52 + - - CASE 30 WHEN + 77 THEN + 39 ELSE + 14 / + 16 + - - 39 + 76 + MIN ( DISTINCT - 32 ) + COUNT ( * ) / + 75 + 28 * 84 END + + + ( + CAST ( NULL AS INTEGER ) ) - 10 * + 27
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9551
SELECT DISTINCT + + 55 DIV + 14
----
3

skipif mysql # not compatible
query I rowsort label-9551
SELECT DISTINCT + + 55 / + 14
----
3

onlyif mysql # aggregate syntax: 
query II rowsort label-9552
SELECT - + 43 * + MIN( ALL + ( 10 ) ) - + 0 AS col2, 26 AS col0
----
-430
26

skipif mysql # not compatible
query II rowsort label-9552
SELECT - + 43 * + MIN ( ALL + ( 10 ) ) - + 0 AS col2, 26 AS col0
----
-430
26

onlyif mysql # aggregate syntax: 
query I rowsort label-9553
SELECT + CASE 12 WHEN + + 24 THEN - + COUNT( * ) + + 10 * + COUNT( * ) WHEN 2 / + 4 THEN - - 87 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-9553
SELECT + CASE 12 WHEN + + 24 THEN - + COUNT ( * ) + + 10 * + COUNT ( * ) WHEN 2 / + 4 THEN - - 87 ELSE NULL END
----
NULL

query I rowsort
SELECT ALL - ( 19 ) * - 55 * 63 * - 53 - + 62
----
-3489317

query II rowsort
SELECT + 54 + - ( - + 96 ) AS col1, 56 + 20 AS col2
----
150
76

onlyif mysql # DIV for integer division: 
query I rowsort label-9556
SELECT + 13 DIV - ( + 77 )
----
0

skipif mysql # not compatible
query I rowsort label-9556
SELECT + 13 / - ( + 77 )
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9557
SELECT - 48 * - NULLIF ( ( + 39 ), - + 75 ) + + ( + 30 ) + - 72 * COUNT( * ) * + - ( CAST( NULL AS SIGNED ) ) / 35 - + 20 + + + 71 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9557
SELECT - 48 * - NULLIF ( ( + 39 ), - + 75 ) + + ( + 30 ) + - 72 * COUNT ( * ) * + - ( CAST ( NULL AS INTEGER ) ) / 35 - + 20 + + + 71 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9558
SELECT SUM( + 5 )
----
5

skipif mysql # not compatible
query I rowsort label-9558
SELECT SUM ( + 5 )
----
5

query II rowsort
SELECT DISTINCT 72 AS col0, 2 AS col0
----
72
2

query I rowsort
SELECT + 0 + + 42 AS col1
----
42

query I rowsort
SELECT + 59 * + + 72 * + 54 AS col1
----
229392

query I rowsort
SELECT + 76 + 16 AS col0
----
92

onlyif mysql # aggregate syntax: 
query I rowsort label-9563
SELECT + CASE - + 43 WHEN 27 THEN - - 48 WHEN + - ( - 85 ) THEN - 65 * - + 67 * MIN( ALL + 23 ) ELSE - 54 + 72 END + 66 + + - COUNT( * ) * - NULLIF ( - 28, - 90 ) * - 76 + + - 16
----
2196

skipif mysql # not compatible
query I rowsort label-9563
SELECT + CASE - + 43 WHEN 27 THEN - - 48 WHEN + - ( - 85 ) THEN - 65 * - + 67 * MIN ( ALL + 23 ) ELSE - 54 + 72 END + 66 + + - COUNT ( * ) * - NULLIF ( - 28, - 90 ) * - 76 + + - 16
----
2196

onlyif mysql # DIV for integer division: 
query I rowsort label-9564
SELECT + 23 DIV - - 56 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-9564
SELECT + 23 / - - 56 AS col1
----
0

query I rowsort
SELECT - 29 * + 94 AS col1
----
-2726

query I rowsort
SELECT + 40 * - 29
----
-1160

onlyif mysql # aggregate syntax: 
query I rowsort label-9567
SELECT DISTINCT 52 * + + 48 * - COUNT( * ) AS col1
----
-2496

skipif mysql # not compatible
query I rowsort label-9567
SELECT DISTINCT 52 * + + 48 * - COUNT ( * ) AS col1
----
-2496

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9568
SELECT + MAX( ALL 78 ) DIV + - 73
----
-1

skipif mysql # not compatible
query I rowsort label-9568
SELECT + MAX ( ALL 78 ) / + - 73
----
-1

query I rowsort
SELECT ALL + 62 + - ( 25 ) * 20
----
-438

onlyif mysql # aggregate syntax: 
query I rowsort label-9570
SELECT + MAX( DISTINCT + + 4 )
----
4

skipif mysql # not compatible
query I rowsort label-9570
SELECT + MAX ( DISTINCT + + 4 )
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-9571
SELECT - - ( + 98 ) + - 95 + + NULLIF ( + 91, ( + COUNT( * ) ) ) + - - COUNT( * )
----
95

skipif mysql # not compatible
query I rowsort label-9571
SELECT - - ( + 98 ) + - 95 + + NULLIF ( + 91, ( + COUNT ( * ) ) ) + - - COUNT ( * )
----
95

query I rowsort
SELECT DISTINCT 69 + - + 81
----
-12

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9573
SELECT ALL + COUNT( * ) DIV - 17 + - 45
----
-45

skipif mysql # not compatible
query I rowsort label-9573
SELECT ALL + COUNT ( * ) / - 17 + - 45
----
-45

onlyif mysql # DIV for integer division: 
query I rowsort label-9574
SELECT - - 60 DIV + 74 - 44 - - 5
----
-39

skipif mysql # not compatible
query I rowsort label-9574
SELECT - - 60 / + 74 - 44 - - 5
----
-39

onlyif mysql # DIV for integer division: 
query I rowsort label-9575
SELECT ALL ( - 72 ) DIV + 6 + + + 48 col2
----
36

skipif mysql # not compatible
query I rowsort label-9575
SELECT ALL ( - 72 ) / + 6 + + + 48 col2
----
36

onlyif mysql # aggregate syntax: 
query II rowsort label-9576
SELECT + 79 * - + 50 + - COUNT( * ), - 7 AS col0
----
-3951
-7

skipif mysql # not compatible
query II rowsort label-9576
SELECT + 79 * - + 50 + - COUNT ( * ), - 7 AS col0
----
-3951
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-9577
SELECT + COUNT( ALL + 54 )
----
1

skipif mysql # not compatible
query I rowsort label-9577
SELECT + COUNT ( ALL + 54 )
----
1

query I rowsort
SELECT ALL + + CASE + + 44 WHEN + 17 THEN NULL ELSE - 87 END
----
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-9579
SELECT DISTINCT - COUNT( * ) * - - 4 + - + 54 + - 11
----
-69

skipif mysql # not compatible
query I rowsort label-9579
SELECT DISTINCT - COUNT ( * ) * - - 4 + - + 54 + - 11
----
-69

query II rowsort
SELECT 38 AS col2, ( 34 )
----
38
34

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9581
SELECT - 87 - - MIN( 54 ) - - 1 DIV 40 + + - 23 col0
----
-56

skipif mysql # not compatible
query I rowsort label-9581
SELECT - 87 - - MIN ( 54 ) - - 1 / 40 + + - 23 col0
----
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-9582
SELECT ALL + CASE - + COUNT( * ) WHEN 85 THEN - COUNT( * ) * 61 * 54 WHEN - 44 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-9582
SELECT ALL + CASE - + COUNT ( * ) WHEN 85 THEN - COUNT ( * ) * 61 * 54 WHEN - 44 THEN NULL END
----
NULL

query I rowsort
SELECT ( + + 37 ) col1
----
37

query I rowsort
SELECT NULLIF ( + 13, + 79 ) AS col1
----
13

query II rowsort
SELECT DISTINCT + 51 AS col0, 8
----
51
8

onlyif mysql # DIV for integer division: 
query I rowsort label-9586
SELECT DISTINCT ( - 47 ) DIV - - 86 col1
----
0

skipif mysql # not compatible
query I rowsort label-9586
SELECT DISTINCT ( - 47 ) / - - 86 col1
----
0

query I rowsort
SELECT + NULLIF ( - 58, 98 + 56 * + - 2 * + + 60 * - + 51 )
----
-58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9588
SELECT ALL 71 * - + CAST( + 57 AS SIGNED ) * 16 AS col1
----
-64752

skipif mysql # not compatible
query I rowsort label-9588
SELECT ALL 71 * - + CAST ( + 57 AS INTEGER ) * 16 AS col1
----
-64752

onlyif mysql # aggregate syntax: 
query I rowsort label-9589
SELECT + MAX( - - 71 ) * + - ( - 48 ) + 87 AS col1
----
3495

skipif mysql # not compatible
query I rowsort label-9589
SELECT + MAX ( - - 71 ) * + - ( - 48 ) + 87 AS col1
----
3495

onlyif mysql # DIV for integer division: 
query I rowsort label-9590
SELECT DISTINCT + ( + + 64 ) DIV - 33
----
-1

skipif mysql # not compatible
query I rowsort label-9590
SELECT DISTINCT + ( + + 64 ) / - 33
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-9591
SELECT ALL 30 AS col0, COUNT( * ) AS col1
----
30
1

skipif mysql # not compatible
query II rowsort label-9591
SELECT ALL 30 AS col0, COUNT ( * ) AS col1
----
30
1

query I rowsort
SELECT 18 * 0 AS col1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9593
SELECT ALL CAST( NULL AS SIGNED ) * + - 46 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9593
SELECT ALL CAST ( NULL AS INTEGER ) * + - 46 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9594
SELECT COUNT( * ) * 7 * - CASE + 8 WHEN + 94 THEN 51 WHEN - 22 * + - 83 * 6 + - - 70 THEN NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9594
SELECT COUNT ( * ) * 7 * - CASE + 8 WHEN + 94 THEN 51 WHEN - 22 * + - 83 * 6 + - - 70 THEN NULL END AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9595
SELECT 37 + - 82 DIV 93
----
37

skipif mysql # not compatible
query I rowsort label-9595
SELECT 37 + - 82 / 93
----
37

query I rowsort
SELECT 44 * 14
----
616

query II rowsort
SELECT - 44 AS col2, + 40 AS col1
----
-44
40

onlyif mysql # DIV for integer division: 
query I rowsort label-9598
SELECT DISTINCT 28 + - + ( 62 ) DIV 17
----
25

skipif mysql # not compatible
query I rowsort label-9598
SELECT DISTINCT 28 + - + ( 62 ) / 17
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-9599
SELECT DISTINCT - COUNT( * ) * + ( + - 45 ) AS col2
----
45

skipif mysql # not compatible
query I rowsort label-9599
SELECT DISTINCT - COUNT ( * ) * + ( + - 45 ) AS col2
----
45

query I rowsort
SELECT ALL 5 + + 28 + - + 98
----
-65

query I rowsort
SELECT DISTINCT 34 + + 12 AS col0
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-9602
SELECT + CASE + - MIN( ALL - - 82 ) WHEN + MAX( - 31 ) * - - 22 THEN + COUNT( * ) WHEN + 68 / + 82 THEN + 88 END + - 26 + + 3 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9602
SELECT + CASE + - MIN ( ALL - - 82 ) WHEN + MAX ( - 31 ) * - - 22 THEN + COUNT ( * ) WHEN + 68 / + 82 THEN + 88 END + - 26 + + 3 col1
----
NULL

query I rowsort
SELECT ALL 58 + + - 89 - - 71 + + ( - - 10 ) * - + 42
----
-380

query I rowsort
SELECT 14 + - 14 - + 1 + - 73
----
-74

query I rowsort
SELECT + 11 - 31 AS col1
----
-20

query I rowsort
SELECT DISTINCT - 92 * + 29 * - 33 + - 62
----
87982

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9607
SELECT ALL + ( + + CAST( + 37 AS SIGNED ) ) * - 20 * + 76 * + + 49 + 61 + 48 + + CASE 12 WHEN - 51 / + - ( CAST( - 43 AS SIGNED ) ) THEN NULL WHEN COALESCE ( + 31, 78, - - ( + 27 ) ) THEN - - 4 ELSE NULL END + + COALESCE ( COUNT( * ), + 41 * + 59 ) / + - ( - 64 ), 23 AS col0
----
NULL
23

skipif mysql # not compatible
query II rowsort label-9607
SELECT ALL + ( + + CAST ( + 37 AS INTEGER ) ) * - 20 * + 76 * + + 49 + 61 + 48 + + CASE 12 WHEN - 51 / + - ( CAST ( - 43 AS INTEGER ) ) THEN NULL WHEN COALESCE ( + 31, 78, - - ( + 27 ) ) THEN - - 4 ELSE NULL END + + COALESCE ( COUNT ( * ), + 41 * + 59 ) / + - ( - 64 ), 23 AS col0
----
NULL
23

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9608
SELECT 6 + + - CAST( - + 49 AS SIGNED ) + - CAST( NULL AS SIGNED ) * NULLIF ( + 3, + 46 * + - 42 * - + 17 ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9608
SELECT 6 + + - CAST ( - + 49 AS INTEGER ) + - CAST ( NULL AS INTEGER ) * NULLIF ( + 3, + 46 * + - 42 * - + 17 ) col2
----
NULL

query I rowsort
SELECT ALL - 42 + - 56 + + 44 + + + 16 + + 7 AS col0
----
-31

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9610
SELECT - 77 * + CAST( 96 AS SIGNED ) AS col1
----
-7392

skipif mysql # not compatible
query I rowsort label-9610
SELECT - 77 * + CAST ( 96 AS INTEGER ) AS col1
----
-7392

onlyif mysql # aggregate syntax: 
query I rowsort label-9611
SELECT ALL - - 43 + 20 * + COUNT( * ) col1
----
63

skipif mysql # not compatible
query I rowsort label-9611
SELECT ALL - - 43 + 20 * + COUNT ( * ) col1
----
63

query II rowsort
SELECT + ( - 78 ) * 25 + 86 AS col1, 30 AS col0
----
-1864
30

query II rowsort
SELECT ALL - - 61 AS col1, 44 + 34 + + 78 AS col0
----
61
156

onlyif mysql # DIV for integer division: 
query I rowsort label-9614
SELECT ALL - 98 * - + 82 DIV - + 82 AS col1
----
-98

skipif mysql # not compatible
query I rowsort label-9614
SELECT ALL - 98 * - + 82 / - + 82 AS col1
----
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-9615
SELECT DISTINCT - COUNT( * ) - 44 + - 80 AS col2
----
-125

skipif mysql # not compatible
query I rowsort label-9615
SELECT DISTINCT - COUNT ( * ) - 44 + - 80 AS col2
----
-125

query I rowsort
SELECT 76 + + COALESCE ( + 41, - + 7 + 65 ) + 57 + 2
----
176

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-9617
SELECT ALL 88 - + 40 AS col0, NULLIF ( - 77, - + 53 + ( 21 ) ) * + CAST( NULL AS DECIMAL ) + + 4 AS col0
----
48
NULL

skipif mysql # not compatible
query II rowsort label-9617
SELECT ALL 88 - + 40 AS col0, NULLIF ( - 77, - + 53 + ( 21 ) ) * + CAST ( NULL AS REAL ) + + 4 AS col0
----
48
NULL

query II rowsort
SELECT DISTINCT - 34 AS col2, - 37 + + 13 + - 0
----
-34
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-9619
SELECT - 62 * + MIN( DISTINCT + 79 )
----
-4898

skipif mysql # not compatible
query I rowsort label-9619
SELECT - 62 * + MIN ( DISTINCT + 79 )
----
-4898

onlyif mysql # DIV for integer division: 
query I rowsort label-9620
SELECT ALL + + 38 DIV - + 70 * - - 22
----
0

skipif mysql # not compatible
query I rowsort label-9620
SELECT ALL + + 38 / - + 70 * - - 22
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9621
SELECT ALL - NULLIF ( - ( + COUNT( * ) ), 60 )
----
1

skipif mysql # not compatible
query I rowsort label-9621
SELECT ALL - NULLIF ( - ( + COUNT ( * ) ), 60 )
----
1

query I rowsort
SELECT - + 4 * 84 - - 84 + - - 42
----
-210

onlyif mysql # DIV for integer division: 
query I rowsort label-9623
SELECT ALL - 69 - + + 49 DIV 23 + + + 92
----
21

skipif mysql # not compatible
query I rowsort label-9623
SELECT ALL - 69 - + + 49 / 23 + + + 92
----
21

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9624
SELECT ALL + CAST( NULL AS SIGNED ) * ( CAST( NULL AS SIGNED ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9624
SELECT ALL + CAST ( NULL AS INTEGER ) * ( CAST ( NULL AS INTEGER ) ) AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9625
SELECT 28 * + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9625
SELECT 28 * + + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT DISTINCT + 24 * + 41
----
984

onlyif mysql # aggregate syntax: 
query I rowsort label-9627
SELECT 47 + + CASE 98 WHEN - + 72 + + COUNT( * ) THEN NULL WHEN + 14 * - 19 THEN NULL ELSE - 27 END AS col2
----
20

skipif mysql # not compatible
query I rowsort label-9627
SELECT 47 + + CASE 98 WHEN - + 72 + + COUNT ( * ) THEN NULL WHEN + 14 * - 19 THEN NULL ELSE - 27 END AS col2
----
20

query I rowsort
SELECT 54 * - ( + 45 )
----
-2430

query I rowsort
SELECT 57 + 48 AS col2
----
105

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9630
SELECT DISTINCT + CAST( - 23 AS SIGNED ) * 30 AS col2, - 95 AS col2
----
-690
-95

skipif mysql # not compatible
query II rowsort label-9630
SELECT DISTINCT + CAST ( - 23 AS INTEGER ) * 30 AS col2, - 95 AS col2
----
-690
-95

query I rowsort
SELECT 34 + 6 * - - 27 AS col2
----
196

onlyif mysql # aggregate syntax: 
query II rowsort label-9632
SELECT ALL 64 + - - COUNT( * ) col1, 60
----
65
60

skipif mysql # not compatible
query II rowsort label-9632
SELECT ALL 64 + - - COUNT ( * ) col1, 60
----
65
60

onlyif mysql # aggregate syntax: 
query I rowsort label-9633
SELECT ALL MAX( - 1 ) + + 89 * + ( 68 )
----
6051

skipif mysql # not compatible
query I rowsort label-9633
SELECT ALL MAX ( - 1 ) + + 89 * + ( 68 )
----
6051

query II rowsort
SELECT DISTINCT + 62 + 66, 9 + - 23 AS col0
----
128
-14

query I rowsort
SELECT 79 + + 35 + + 96
----
210

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9636
SELECT + NULLIF ( - MIN( DISTINCT - ( 34 ) ), + + 61 * 69 * 72 + - 99 * + 18 * - + ( - MAX( DISTINCT - 78 ) ) * + 88 ) DIV 31
----
1

skipif mysql # not compatible
query I rowsort label-9636
SELECT + NULLIF ( - MIN ( DISTINCT - ( 34 ) ), + + 61 * 69 * 72 + - 99 * + 18 * - + ( - MAX ( DISTINCT - 78 ) ) * + 88 ) / 31
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9637
SELECT DISTINCT CASE + + 51 WHEN - 87 THEN NULL WHEN NULLIF ( 4, + + 57 * - - CAST( 54 AS SIGNED ) ) * 26 + + CAST( + 81 AS SIGNED ) + - CAST( NULL AS SIGNED ) THEN + - CAST( NULL AS SIGNED ) WHEN - - 71 + + COUNT( DISTINCT 60 ) THEN + 38 WHEN 42 THEN NULL END * 8 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9637
SELECT DISTINCT CASE + + 51 WHEN - 87 THEN NULL WHEN NULLIF ( 4, + + 57 * - - CAST ( 54 AS INTEGER ) ) * 26 + + CAST ( + 81 AS INTEGER ) + - CAST ( NULL AS INTEGER ) THEN + - CAST ( NULL AS INTEGER ) WHEN - - 71 + + COUNT ( DISTINCT 60 ) THEN + 38 WHEN 42 THEN NULL END * 8 AS col1
----
NULL

query I rowsort
SELECT - 9 + - 47 * 11 * 11
----
-5696

onlyif mysql # aggregate syntax: 
query I rowsort label-9639
SELECT DISTINCT + COUNT( * ) * + 40 + - + 73
----
-33

skipif mysql # not compatible
query I rowsort label-9639
SELECT DISTINCT + COUNT ( * ) * + 40 + - + 73
----
-33

query I rowsort
SELECT ALL + 2 * 55 + - + 36 AS col1
----
74

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9641
SELECT 52 * + ( - CAST( NULL AS SIGNED ) ) + - 48
----
NULL

skipif mysql # not compatible
query I rowsort label-9641
SELECT 52 * + ( - CAST ( NULL AS INTEGER ) ) + - 48
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9642
SELECT ALL - 11 - + 92 + - + 84 / - 66 + + CAST( NULL AS DECIMAL ) - - - 52
----
NULL

skipif mysql # not compatible
query I rowsort label-9642
SELECT ALL - 11 - + 92 + - + 84 / - 66 + + CAST ( NULL AS REAL ) - - - 52
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9643
SELECT ALL - SUM( - 89 ) AS col0
----
89

skipif mysql # not compatible
query I rowsort label-9643
SELECT ALL - SUM ( - 89 ) AS col0
----
89

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9644
SELECT + 3 DIV - COUNT( * ) + + SUM( 7 ) - + - CASE - + 30 WHEN - + 96 THEN - 95 ELSE + + 38 * - + COALESCE ( - 52, + + 61 ) * + 64 + - ( NULLIF ( + COUNT( * ), - 80 * - 17 ) ) + + 76 END
----
126543

skipif mysql # not compatible
query I rowsort label-9644
SELECT + 3 / - COUNT ( * ) + + SUM ( 7 ) - + - CASE - + 30 WHEN - + 96 THEN - 95 ELSE + + 38 * - + COALESCE ( - 52, + + 61 ) * + 64 + - ( NULLIF ( + COUNT ( * ), - 80 * - 17 ) ) + + 76 END
----
126543

onlyif mysql # aggregate syntax: 
query I rowsort label-9645
SELECT COUNT( * ) * 55 * + + 58 + + 51 * - 52
----
538

skipif mysql # not compatible
query I rowsort label-9645
SELECT COUNT ( * ) * 55 * + + 58 + + 51 * - 52
----
538

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9646
SELECT ALL + CAST( 94 AS SIGNED ) * - 26 * - 93 + + 44 * 50
----
229492

skipif mysql # not compatible
query I rowsort label-9646
SELECT ALL + CAST ( 94 AS INTEGER ) * - 26 * - 93 + + 44 * 50
----
229492

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9647
SELECT DISTINCT - - ( + COUNT( - 10 ) ) AS col1, + 24 - - 20 DIV + NULLIF ( + 22, 3 * + 54 + + 47 + + 27 + + + 97 - + + 37 * - - 69 + 80 ) * - - 27 AS col0
----
1
24

skipif mysql # not compatible
query II rowsort label-9647
SELECT DISTINCT - - ( + COUNT ( - 10 ) ) AS col1, + 24 - - 20 / + NULLIF ( + 22, 3 * + 54 + + 47 + + 27 + + + 97 - + + 37 * - - 69 + 80 ) * - - 27 AS col0
----
1
24

onlyif mysql # aggregate syntax: 
query I rowsort label-9648
SELECT DISTINCT + 37 * + - 67 * COUNT( * )
----
-2479

skipif mysql # not compatible
query I rowsort label-9648
SELECT DISTINCT + 37 * + - 67 * COUNT ( * )
----
-2479

onlyif mysql # aggregate syntax: 
query I rowsort label-9649
SELECT ALL CASE - + 25 WHEN + 5 * - SUM( ALL ( 58 ) ) * - 54 THEN - - 0 END * - 77
----
NULL

skipif mysql # not compatible
query I rowsort label-9649
SELECT ALL CASE - + 25 WHEN + 5 * - SUM ( ALL ( 58 ) ) * - 54 THEN - - 0 END * - 77
----
NULL

query I rowsort
SELECT + 30 + + + COALESCE ( + NULLIF ( - 69, + ( - 78 ) ), + ( 49 ) ) + + ( 56 )
----
17

query II rowsort
SELECT ALL + 83, 54 AS col1
----
83
54

onlyif mysql # DIV for integer division: 
query I rowsort label-9652
SELECT - 53 DIV 89
----
0

skipif mysql # not compatible
query I rowsort label-9652
SELECT - 53 / 89
----
0

query II rowsort
SELECT DISTINCT + 45 * + 82 + 75 AS col0, 27
----
3765
27

query I rowsort
SELECT + 0 + - 60
----
-60

query I rowsort
SELECT ALL + 75 + + 6 AS col2
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-9656
SELECT ALL + COUNT( 84 )
----
1

skipif mysql # not compatible
query I rowsort label-9656
SELECT ALL + COUNT ( 84 )
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9657
SELECT ALL MIN( 21 ) + + 18 / - 53 * + + CAST( NULL AS SIGNED ) + - 10
----
NULL

skipif mysql # not compatible
query I rowsort label-9657
SELECT ALL MIN ( 21 ) + + 18 / - 53 * + + CAST ( NULL AS INTEGER ) + - 10
----
NULL

query I rowsort
SELECT ALL NULLIF ( - COALESCE ( - - 79, - ( - 65 ) * + - 46 ), + 86 )
----
-79

query II rowsort
SELECT - 42 col2, + 3 AS col2
----
-42
3

query I rowsort
SELECT ALL + 76 * - 76 * + 99
----
-571824

query II rowsort
SELECT 21 col0, - 88 AS col1
----
21
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-9662
SELECT - COUNT( * ) + - ( 91 ) + - 81
----
-173

skipif mysql # not compatible
query I rowsort label-9662
SELECT - COUNT ( * ) + - ( 91 ) + - 81
----
-173

onlyif mysql # aggregate syntax: 
query II rowsort label-9663
SELECT - 51 AS col2, - 87 * + COUNT( * ) * + 34 / + CASE + COUNT( ALL 7 ) WHEN - 0 THEN + 74 + - COALESCE ( + 21, 9 * + - SUM( + 29 ) + + - 56 ) END
----
-51
NULL

skipif mysql # not compatible
query II rowsort label-9663
SELECT - 51 AS col2, - 87 * + COUNT ( * ) * + 34 / + CASE + COUNT ( ALL 7 ) WHEN - 0 THEN + 74 + - COALESCE ( + 21, 9 * + - SUM ( + 29 ) + + - 56 ) END
----
-51
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9664
SELECT ALL MAX( + - ( 39 ) ) AS col1
----
-39

skipif mysql # not compatible
query I rowsort label-9664
SELECT ALL MAX ( + - ( 39 ) ) AS col1
----
-39

query II rowsort
SELECT - + 28 + + - 17 * 51 * + 84, 97 AS col1
----
-72856
97

query I rowsort
SELECT ALL + 1 - - 10 AS col1
----
11

query I rowsort
SELECT - ( - 39 ) * 42
----
1638

onlyif mysql # aggregate syntax: 
query I rowsort label-9668
SELECT - - SUM( + + 99 )
----
99

skipif mysql # not compatible
query I rowsort label-9668
SELECT - - SUM ( + + 99 )
----
99

query I rowsort
SELECT ALL + - 59 - 39 + - - ( + - 52 )
----
-150

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9670
SELECT ALL - - COUNT( 93 ) DIV + - 2 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-9670
SELECT ALL - - COUNT ( 93 ) / + - 2 AS col1
----
0

query I rowsort
SELECT - 26 + + 54 * + - 91 AS col1
----
-4940

query II rowsort
SELECT DISTINCT - ( + 79 ) * - 96, - 19 AS col2
----
7584
-19

query II rowsort
SELECT ALL 60, + ( + 47 ) AS col0
----
60
47

onlyif mysql # aggregate syntax: 
query I rowsort label-9674
SELECT - COUNT( * ) + + 44 + - 12 + 28 * ( - 35 ) AS col2
----
-949

skipif mysql # not compatible
query I rowsort label-9674
SELECT - COUNT ( * ) + + 44 + - 12 + 28 * ( - 35 ) AS col2
----
-949

onlyif mysql # aggregate syntax: 
query I rowsort label-9675
SELECT ALL - COUNT( * ) * - - MIN( 48 ) AS col1
----
-48

skipif mysql # not compatible
query I rowsort label-9675
SELECT ALL - COUNT ( * ) * - - MIN ( 48 ) AS col1
----
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-9676
SELECT - 53 + + + 22 + - - CASE + 74 WHEN - + COUNT( * ) THEN NULL WHEN + COALESCE ( SUM( + 96 ), - 39, + 76 ) * COUNT( * ) + + 99 + + COUNT( * ) THEN - COUNT( DISTINCT 24 ) ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9676
SELECT - 53 + + + 22 + - - CASE + 74 WHEN - + COUNT ( * ) THEN NULL WHEN + COALESCE ( SUM ( + 96 ), - 39, + 76 ) * COUNT ( * ) + + 99 + + COUNT ( * ) THEN - COUNT ( DISTINCT 24 ) ELSE NULL END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9677
SELECT + 27 * - 73 * MAX( ALL + 47 )
----
-92637

skipif mysql # not compatible
query I rowsort label-9677
SELECT + 27 * - 73 * MAX ( ALL + 47 )
----
-92637

query I rowsort
SELECT DISTINCT - + 55 * - 1
----
55

query II rowsort
SELECT 64, + 61 AS col1
----
64
61

onlyif mysql # aggregate syntax: 
query II rowsort label-9680
SELECT + - 84 AS col1, 45 + - COUNT( * ) + 54 AS col1
----
-84
98

skipif mysql # not compatible
query II rowsort label-9680
SELECT + - 84 AS col1, 45 + - COUNT ( * ) + 54 AS col1
----
-84
98

onlyif mysql # aggregate syntax: 
query I rowsort label-9681
SELECT + COUNT( * ) + COUNT( * ) * + + 61 col2
----
62

skipif mysql # not compatible
query I rowsort label-9681
SELECT + COUNT ( * ) + COUNT ( * ) * + + 61 col2
----
62

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9682
SELECT DISTINCT + 1 * + + 49 + - + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9682
SELECT DISTINCT + 1 * + + 49 + - + CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9683
SELECT ALL - 17 * + + 35 + + COUNT( * ) - ( + 76 ) AS col1
----
-670

skipif mysql # not compatible
query I rowsort label-9683
SELECT ALL - 17 * + + 35 + + COUNT ( * ) - ( + 76 ) AS col1
----
-670

onlyif mysql # aggregate syntax: 
query II rowsort label-9684
SELECT ( 44 ), - MAX( - 83 ) AS col1
----
44
83

skipif mysql # not compatible
query II rowsort label-9684
SELECT ( 44 ), - MAX ( - 83 ) AS col1
----
44
83

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9685
SELECT + 31 * - 63 + + - 1 + - 61 * + 19 * + ( - 31 ) * + NULLIF ( - 86, + - CAST( NULL AS SIGNED ) ) AS col0
----
-3091848

skipif mysql # not compatible
query I rowsort label-9685
SELECT + 31 * - 63 + + - 1 + - 61 * + 19 * + ( - 31 ) * + NULLIF ( - 86, + - CAST ( NULL AS INTEGER ) ) AS col0
----
-3091848

query I rowsort
SELECT DISTINCT 87 * + + 52 + 90 AS col1
----
4614

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9687
SELECT DISTINCT - 7 * - 74 + - 99 * + CAST( NULL AS SIGNED ) * - MIN( - NULLIF ( 30, - 54 ) ) * + 51 * - - 24 + - SUM( + 32 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9687
SELECT DISTINCT - 7 * - 74 + - 99 * + CAST ( NULL AS INTEGER ) * - MIN ( - NULLIF ( 30, - 54 ) ) * + 51 * - - 24 + - SUM ( + 32 ) AS col2
----
NULL

query I rowsort
SELECT ALL 52 * - ( + 31 )
----
-1612

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9689
SELECT ALL 99 * + - 89 - - 83 + - 0 + 55 + 39 - 76 + - 13 * + 68 DIV 17 + + COALESCE ( - 14, - - 85 + + CASE 37 WHEN + ( - 72 ) + 99 THEN NULL WHEN - 70 THEN 69 * - 22 + 88 END * - COUNT( * ), - + ( - + CAST( - + 10 AS SIGNED ) ) ) AS col2
----
-8776

skipif mysql # not compatible
query I rowsort label-9689
SELECT ALL 99 * + - 89 - - 83 + - 0 + 55 + 39 - 76 + - 13 * + 68 / 17 + + COALESCE ( - 14, - - 85 + + CASE 37 WHEN + ( - 72 ) + 99 THEN NULL WHEN - 70 THEN 69 * - 22 + 88 END * - COUNT ( * ), - + ( - + CAST ( - + 10 AS INTEGER ) ) ) AS col2
----
-8776

query I rowsort
SELECT - NULLIF ( 81, - 38 ) * - ( - 29 )
----
-2349

onlyif mysql # aggregate syntax: 
query I rowsort label-9691
SELECT + COUNT( * ) + 33 * - 4
----
-131

skipif mysql # not compatible
query I rowsort label-9691
SELECT + COUNT ( * ) + 33 * - 4
----
-131

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9692
SELECT + 87 * + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-9692
SELECT + 87 * + CAST ( NULL AS REAL )
----
NULL

query I rowsort
SELECT DISTINCT - ( ( 55 ) )
----
-55

onlyif mysql # aggregate syntax: 
query II rowsort label-9694
SELECT ALL + 72 * ( - COUNT( * ) ) + 66 AS col1, 66 AS col2
----
-6
66

skipif mysql # not compatible
query II rowsort label-9694
SELECT ALL + 72 * ( - COUNT ( * ) ) + 66 AS col1, 66 AS col2
----
-6
66

query I rowsort
SELECT DISTINCT 7 * - CASE 61 WHEN - ( 11 ) - 98 / 49 * - 70 THEN - 98 * - 25 + 28 - - + 84 * + 21 ELSE NULL END + - 85 - + 48 AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9696
SELECT ALL - + ( + + CAST( NULL AS SIGNED ) ) * - 62 + SUM( ALL + 81 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9696
SELECT ALL - + ( + + CAST ( NULL AS INTEGER ) ) * - 62 + SUM ( ALL + 81 ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9697
SELECT - 57 + 85 AS col2, - COUNT( * ) * - + 70
----
28
70

skipif mysql # not compatible
query II rowsort label-9697
SELECT - 57 + 85 AS col2, - COUNT ( * ) * - + 70
----
28
70

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9698
SELECT + CAST( NULL AS SIGNED ) * - + 70
----
NULL

skipif mysql # not compatible
query I rowsort label-9698
SELECT + CAST ( NULL AS INTEGER ) * - + 70
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9699
SELECT - 84 * + CAST( SUM( 96 ) AS SIGNED )
----
-8064

skipif mysql # not compatible
query I rowsort label-9699
SELECT - 84 * + CAST ( SUM ( 96 ) AS INTEGER )
----
-8064

query I rowsort
SELECT - + 34 + - 4 AS col2
----
-38

query I rowsort
SELECT DISTINCT ( + + 75 ) AS col0
----
75

query I rowsort
SELECT ALL - 59 * - 94 AS col0
----
5546

onlyif mysql # aggregate syntax: 
query II rowsort label-9703
SELECT - MAX( ALL 98 ) AS col0, 5 AS col2
----
-98
5

skipif mysql # not compatible
query II rowsort label-9703
SELECT - MAX ( ALL 98 ) AS col0, 5 AS col2
----
-98
5

onlyif mysql # aggregate syntax: 
query I rowsort label-9704
SELECT ALL + 79 + + 3 + - 26 * 49 * + SUM( 21 ) AS col2
----
-26672

skipif mysql # not compatible
query I rowsort label-9704
SELECT ALL + 79 + + 3 + - 26 * 49 * + SUM ( 21 ) AS col2
----
-26672

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9705
SELECT ALL - + 69 + 33 * + 84 * - + 80 DIV - COUNT( * ) AS col1
----
221691

skipif mysql # not compatible
query I rowsort label-9705
SELECT ALL - + 69 + 33 * + 84 * - + 80 / - COUNT ( * ) AS col1
----
221691

onlyif mysql # aggregate syntax: 
query I rowsort label-9706
SELECT 30 * + - 99 * ( + 0 ) * - + COUNT( * ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9706
SELECT 30 * + - 99 * ( + 0 ) * - + COUNT ( * ) AS col0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9707
SELECT 74 DIV + 23 - + COUNT( * ) * + + 78 * - 38 * ( + - 23 ) * 40 - + 72 - 98 * + 78 * + - 91 + 57
----
-2031288

skipif mysql # not compatible
query I rowsort label-9707
SELECT 74 / + 23 - + COUNT ( * ) * + + 78 * - 38 * ( + - 23 ) * 40 - + 72 - 98 * + 78 * + - 91 + 57
----
-2031288

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9708
SELECT 57 DIV SUM( ALL + 16 )
----
3

skipif mysql # not compatible
query I rowsort label-9708
SELECT 57 / SUM ( ALL + 16 )
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9709
SELECT ALL + 47 + + 89 + ( MAX( 41 ) ) AS col2
----
177

skipif mysql # not compatible
query I rowsort label-9709
SELECT ALL + 47 + + 89 + ( MAX ( 41 ) ) AS col2
----
177

onlyif mysql # aggregate syntax: 
query I rowsort label-9710
SELECT 28 * - NULLIF ( COALESCE ( + 41, COUNT( * ) + - + 39 ), 59 * - - CASE - 91 WHEN MAX( DISTINCT 77 ) THEN - 89 ELSE NULL END )
----
-1148

skipif mysql # not compatible
query I rowsort label-9710
SELECT 28 * - NULLIF ( COALESCE ( + 41, COUNT ( * ) + - + 39 ), 59 * - - CASE - 91 WHEN MAX ( DISTINCT 77 ) THEN - 89 ELSE NULL END )
----
-1148

onlyif mysql # aggregate syntax: 
query I rowsort label-9711
SELECT MAX( DISTINCT 62 ) * + ( + 49 ) AS col1
----
3038

skipif mysql # not compatible
query I rowsort label-9711
SELECT MAX ( DISTINCT 62 ) * + ( + 49 ) AS col1
----
3038

query I rowsort
SELECT DISTINCT + 29 + + 67
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-9713
SELECT ALL - 75 * + + COUNT( * ) * - 84
----
6300

skipif mysql # not compatible
query I rowsort label-9713
SELECT ALL - 75 * + + COUNT ( * ) * - 84
----
6300

query I rowsort
SELECT ALL - ( - - 13 ) AS col0
----
-13

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9715
SELECT 47 DIV + + COUNT( * ) AS col1
----
47

skipif mysql # not compatible
query I rowsort label-9715
SELECT 47 / + + COUNT ( * ) AS col1
----
47

query I rowsort
SELECT 53 * + + 29 AS col0
----
1537

query I rowsort
SELECT ALL 65 + - 46 * - 25 + + 28
----
1243

query I rowsort
SELECT 63 - + - 72 AS col1
----
135

query II rowsort
SELECT ALL - 37, 24 AS col0
----
-37
24

query I rowsort
SELECT 46 + + 94 AS col1
----
140

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9721
SELECT 53 * + CAST( + 65 AS SIGNED ) * + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9721
SELECT 53 * + CAST ( + 65 AS INTEGER ) * + CAST ( NULL AS INTEGER ) AS col1
----
NULL

query II rowsort
SELECT 46 AS col1, - 58 * - 16 + + 0
----
46
928

onlyif mysql # aggregate syntax: 
query I rowsort label-9723
SELECT COUNT( * ) - + + COUNT( ALL 98 ) * 60 * 6 AS col2
----
-359

skipif mysql # not compatible
query I rowsort label-9723
SELECT COUNT ( * ) - + + COUNT ( ALL 98 ) * 60 * 6 AS col2
----
-359

query I rowsort
SELECT ALL 98 * + 17
----
1666

query I rowsort
SELECT 78 * ( - 80 ) AS col0
----
-6240

query I rowsort
SELECT ALL - NULLIF ( + - 57, + 51 ) col2
----
57

query I rowsort
SELECT + - ( + 71 ) col1
----
-71

query I rowsort
SELECT ALL - 26 * + 60 AS col1
----
-1560

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9729
SELECT + 33 DIV CASE - COUNT( DISTINCT + 79 ) WHEN 12 + - - 36 * + NULLIF ( - 75, 47 ) THEN + 63 + - 30 ELSE + SUM( ALL - 64 ) END * - 88 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9729
SELECT + 33 / CASE - COUNT ( DISTINCT + 79 ) WHEN 12 + - - 36 * + NULLIF ( - 75, 47 ) THEN + 63 + - 30 ELSE + SUM ( ALL - 64 ) END * - 88 AS col0
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-9730
SELECT ALL 88 AS col0, CAST( NULL AS DECIMAL ) * - CASE - 87 WHEN + 35 THEN NULL ELSE + ( 7 ) END
----
88
NULL

skipif mysql # not compatible
query II rowsort label-9730
SELECT ALL 88 AS col0, CAST ( NULL AS REAL ) * - CASE - 87 WHEN + 35 THEN NULL ELSE + ( 7 ) END
----
88
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9731
SELECT - 99 DIV - + 9 AS col1
----
11

skipif mysql # not compatible
query I rowsort label-9731
SELECT - 99 / - + 9 AS col1
----
11

query I rowsort
SELECT 96 * + + 16
----
1536

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9733
SELECT - 12 + + CAST( + COUNT( * ) AS SIGNED )
----
-11

skipif mysql # not compatible
query I rowsort label-9733
SELECT - 12 + + CAST ( + COUNT ( * ) AS INTEGER )
----
-11

query I rowsort
SELECT + 82 * - - 18 AS col0
----
1476

query I rowsort
SELECT ( 80 ) AS col1
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-9736
SELECT ALL + 88 + MIN( DISTINCT 86 ) AS col0
----
174

skipif mysql # not compatible
query I rowsort label-9736
SELECT ALL + 88 + MIN ( DISTINCT 86 ) AS col0
----
174

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9737
SELECT + 49 * + CAST( - 77 AS SIGNED ) AS col2
----
-3773

skipif mysql # not compatible
query I rowsort label-9737
SELECT + 49 * + CAST ( - 77 AS INTEGER ) AS col2
----
-3773

query I rowsort
SELECT ALL - - 17 + + + 5
----
22

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9739
SELECT DISTINCT - MAX( ALL CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-9739
SELECT DISTINCT - MAX ( ALL CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9740
SELECT DISTINCT + COUNT( * ) + 74 AS col0
----
75

skipif mysql # not compatible
query I rowsort label-9740
SELECT DISTINCT + COUNT ( * ) + 74 AS col0
----
75

query I rowsort
SELECT ALL ( 35 ) + 21
----
56

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9742
SELECT ALL - 72 + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9742
SELECT ALL - 72 + - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT 28 + - ( 32 )
----
-4

query I rowsort
SELECT 63 - + + 17 AS col1
----
46

query II rowsort
SELECT DISTINCT 5 AS col2, - 75 AS col2
----
5
-75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9746
SELECT NULLIF ( - - 4, + MAX( ALL - 29 ) ) + - CAST( 64 AS SIGNED ) + COUNT( * ) AS col0
----
-59

skipif mysql # not compatible
query I rowsort label-9746
SELECT NULLIF ( - - 4, + MAX ( ALL - 29 ) ) + - CAST ( 64 AS INTEGER ) + COUNT ( * ) AS col0
----
-59

query I rowsort
SELECT 73 - - + 69 AS col1
----
142

onlyif mysql # aggregate syntax: 
query I rowsort label-9748
SELECT ALL + 43 + 84 - - + COUNT( * ) * - 56 AS col0
----
71

skipif mysql # not compatible
query I rowsort label-9748
SELECT ALL + 43 + 84 - - + COUNT ( * ) * - 56 AS col0
----
71

query I rowsort
SELECT 47 + + 75 * - - 28 AS col0
----
2147

query I rowsort
SELECT ALL 83 + - + 36
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-9751
SELECT DISTINCT COALESCE ( - 7, + 39 + - 21 ) + + - COUNT( ALL + + 1 ) + + 89 AS col1
----
81

skipif mysql # not compatible
query I rowsort label-9751
SELECT DISTINCT COALESCE ( - 7, + 39 + - 21 ) + + - COUNT ( ALL + + 1 ) + + 89 AS col1
----
81

query II rowsort
SELECT DISTINCT - 24, 24 AS col0
----
-24
24

query I rowsort
SELECT ALL + 16 + - 71
----
-55

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9754
SELECT + ( - 52 ) * + - 85 + + 46 - ( + ( - SUM( + 69 ) ) ) + + - 35 * 95 + COUNT( * ) * + CAST( NULL AS SIGNED ) * - 46 + + NULLIF ( - + 78, 48 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9754
SELECT + ( - 52 ) * + - 85 + + 46 - ( + ( - SUM ( + 69 ) ) ) + + - 35 * 95 + COUNT ( * ) * + CAST ( NULL AS INTEGER ) * - 46 + + NULLIF ( - + 78, 48 ) AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9755
SELECT COUNT( * ) DIV - 30 + - 94 col2
----
-94

skipif mysql # not compatible
query I rowsort label-9755
SELECT COUNT ( * ) / - 30 + - 94 col2
----
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-9756
SELECT MAX( + 37 ) AS col0
----
37

skipif mysql # not compatible
query I rowsort label-9756
SELECT MAX ( + 37 ) AS col0
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-9757
SELECT + MIN( + - 85 ) AS col2
----
-85

skipif mysql # not compatible
query I rowsort label-9757
SELECT + MIN ( + - 85 ) AS col2
----
-85

query I rowsort
SELECT 82 + - 15 AS col0
----
67

query I rowsort
SELECT ALL + 17 - + - 43 + + 50
----
110

query I rowsort
SELECT 53 * + 21 col0
----
1113

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9761
SELECT MIN( + 1 ) * + - 31 * + COUNT( DISTINCT CAST( NULL AS SIGNED ) ) * - 27 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-9761
SELECT MIN ( + 1 ) * + - 31 * + COUNT ( DISTINCT CAST ( NULL AS INTEGER ) ) * - 27 AS col1
----
0

query II rowsort
SELECT ALL - 27, 32 - + 93 AS col2
----
-27
-61

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-9763
SELECT COUNT( * ) col1, - NULLIF ( - - 70, - CAST( CAST( NULL AS DECIMAL ) AS SIGNED ) * - 58 )
----
1
-70

skipif mysql # not compatible
query II rowsort label-9763
SELECT COUNT ( * ) col1, - NULLIF ( - - 70, - CAST ( CAST ( NULL AS REAL ) AS INTEGER ) * - 58 )
----
1
-70

onlyif mysql # aggregate syntax: 
query II rowsort label-9764
SELECT 78 * 63 * - 71 * COUNT( * ), + COUNT( * ) AS col1
----
-348894
1

skipif mysql # not compatible
query II rowsort label-9764
SELECT 78 * 63 * - 71 * COUNT ( * ), + COUNT ( * ) AS col1
----
-348894
1

query I rowsort
SELECT DISTINCT + 99 * - - 90 AS col1
----
8910

query II rowsort
SELECT ALL - 62 AS col2, - 52
----
-62
-52

query II rowsort
SELECT + 2 AS col0, - 93 - - 31 AS col0
----
2
-62

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9768
SELECT ALL - - CAST( COALESCE ( 36, 8 ) AS SIGNED ) AS col1
----
36

skipif mysql # not compatible
query I rowsort label-9768
SELECT ALL - - CAST ( COALESCE ( 36, 8 ) AS INTEGER ) AS col1
----
36

query I rowsort
SELECT DISTINCT + 86 * 72
----
6192

query II rowsort
SELECT + 33 AS col2, + 44 col1
----
33
44

onlyif mysql # aggregate syntax: 
query I rowsort label-9771
SELECT + SUM( DISTINCT 65 ) * 0
----
0

skipif mysql # not compatible
query I rowsort label-9771
SELECT + SUM ( DISTINCT 65 ) * 0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9772
SELECT NULLIF ( - 19, + 86 + 69 * + COUNT( * ) * - COUNT( * ) - + 83 ) * + ( + ( 6 ) ) + 33 * - COUNT( * ) - + + 37 * + + 64 + 0
----
-2515

skipif mysql # not compatible
query I rowsort label-9772
SELECT NULLIF ( - 19, + 86 + 69 * + COUNT ( * ) * - COUNT ( * ) - + 83 ) * + ( + ( 6 ) ) + 33 * - COUNT ( * ) - + + 37 * + + 64 + 0
----
-2515

query I rowsort
SELECT ALL - ( - + 25 )
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-9774
SELECT - - ( 57 ) * + COUNT( * ) + - 12
----
45

skipif mysql # not compatible
query I rowsort label-9774
SELECT - - ( 57 ) * + COUNT ( * ) + - 12
----
45

query II rowsort
SELECT ALL - 1 AS col1, + 1 AS col1
----
-1
1

query I rowsort
SELECT ALL 59 + - 11 + 76 + 15 + + 62
----
201

query I rowsort
SELECT ALL 72 + - + 42 AS col2
----
30

query I rowsort
SELECT 21 + - 15 AS col1
----
6

query I rowsort
SELECT DISTINCT ( + 39 ) + 14
----
53

query II rowsort
SELECT 51, - 48 AS col2
----
51
-48

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9781
SELECT + - 82 + NULLIF ( - 67, SUM( ALL + 48 ) - + 31 * + + 40 ) + 1 + + 32 DIV + COUNT( * )
----
-116

skipif mysql # not compatible
query I rowsort label-9781
SELECT + - 82 + NULLIF ( - 67, SUM ( ALL + 48 ) - + 31 * + + 40 ) + 1 + + 32 / + COUNT ( * )
----
-116

query I rowsort
SELECT ALL - 76 + 37 AS col1
----
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-9783
SELECT - - 71 * + - 96 + - 51 + COUNT( * )
----
-6866

skipif mysql # not compatible
query I rowsort label-9783
SELECT - - 71 * + - 96 + - 51 + COUNT ( * )
----
-6866

query II rowsort
SELECT 95 AS col2, - 83
----
95
-83

query II rowsort
SELECT DISTINCT 19, 73 AS col2
----
19
73

query I rowsort
SELECT + 7 + - - 25
----
32

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9787
SELECT DISTINCT 30 DIV + COUNT( * ), 14 AS col1
----
30
14

skipif mysql # not compatible
query II rowsort label-9787
SELECT DISTINCT 30 / + COUNT ( * ), 14 AS col1
----
30
14

query I rowsort
SELECT ALL 89 - 19
----
70

query I rowsort
SELECT + 93 * - 37 - - 2 AS col1
----
-3439

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9790
SELECT - CAST( NULL AS SIGNED ) * + 37, SUM( ALL - - 15 ) AS col2
----
NULL
15

skipif mysql # not compatible
query II rowsort label-9790
SELECT - CAST ( NULL AS INTEGER ) * + 37, SUM ( ALL - - 15 ) AS col2
----
NULL
15

query I rowsort
SELECT + COALESCE ( - 74, + 59 ) AS col0
----
-74

query I rowsort
SELECT DISTINCT + COALESCE ( + 2, - 64, - 78 ) AS col2
----
2

onlyif mysql # DIV for integer division: 
query II rowsort label-9793
SELECT + ( - 42 ) AS col0, 13 DIV 31
----
-42
0

skipif mysql # not compatible
query II rowsort label-9793
SELECT + ( - 42 ) AS col0, 13 / 31
----
-42
0

query I rowsort
SELECT ALL + ( ( + - 74 ) ) AS col2
----
-74

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-9795
SELECT - CAST( - 75 AS SIGNED ) DIV + 93 AS col2, - COUNT( * ) * + 46 + COUNT( * ) + - COUNT( * )
----
0
-46

skipif mysql # not compatible
query II rowsort label-9795
SELECT - CAST ( - 75 AS INTEGER ) / + 93 AS col2, - COUNT ( * ) * + 46 + COUNT ( * ) + - COUNT ( * )
----
0
-46

query I rowsort
SELECT ALL 87 * 3
----
261

onlyif mysql # aggregate syntax: 
query I rowsort label-9797
SELECT ALL + MIN( + 43 )
----
43

skipif mysql # not compatible
query I rowsort label-9797
SELECT ALL + MIN ( + 43 )
----
43

onlyif mysql # aggregate syntax: DIV for integer division: 
query III rowsort label-9798
SELECT ALL + SUM( + 30 ) AS col0, ( - 50 ) + 46 AS col0, - - 39 * - 23 * + NULLIF ( 73, + 57 * - 47 + - 30 + - 11 - - + 49 * - - 75 ) - - 83 + + 42 + 68 - + ( - 46 ) DIV 61
----
30
-4
-65288

skipif mysql # not compatible
query III rowsort label-9798
SELECT ALL + SUM ( + 30 ) AS col0, ( - 50 ) + 46 AS col0, - - 39 * - 23 * + NULLIF ( 73, + 57 * - 47 + - 30 + - 11 - - + 49 * - - 75 ) - - 83 + + 42 + 68 - + ( - 46 ) / 61
----
30
-4
-65288

query I rowsort
SELECT NULLIF ( - + 27, + 18 )
----
-27

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9800
SELECT - CAST( + + NULLIF ( + 24, 35 ) AS SIGNED )
----
-24

skipif mysql # not compatible
query I rowsort label-9800
SELECT - CAST ( + + NULLIF ( + 24, 35 ) AS INTEGER )
----
-24

query I rowsort
SELECT - + 12 * + 30 + - 18 AS col2
----
-378

query I rowsort
SELECT ALL - 32 * 16 - - 87 - - ( 25 )
----
-400

onlyif mysql # aggregate syntax: 
query I rowsort label-9803
SELECT ALL MIN( DISTINCT - + COALESCE ( - + 31, + + 27 ) ) * + 47 * - + ( + 83 ) + ( - COUNT( * ) ) - + 35 - + 72 AS col1
----
-121039

skipif mysql # not compatible
query I rowsort label-9803
SELECT ALL MIN ( DISTINCT - + COALESCE ( - + 31, + + 27 ) ) * + 47 * - + ( + 83 ) + ( - COUNT ( * ) ) - + 35 - + 72 AS col1
----
-121039

query I rowsort
SELECT ALL - - ( + 68 ) * - + 79
----
-5372

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-9805
SELECT ALL - - CASE - - 65 WHEN + + 21 * - + ( + - 68 ) * - - 78 / + 94 + - 66 THEN + 64 WHEN - 78 / + 16 THEN + 6 - + 69 * + - ( - ( 22 ) ) - AVG ( CASE - - 42 WHEN ( - 55 ) THEN + 37 + 56 + - + 33 / + 38 END ) ELSE NULL END * - ( + CAST( NULL AS DECIMAL ) ) + - 31 / 21 + - 3 AS col0, - 44 AS col1
----
NULL
-44

skipif mysql # not compatible
query II rowsort label-9805
SELECT ALL - - CASE - - 65 WHEN + + 21 * - + ( + - 68 ) * - - 78 / + 94 + - 66 THEN + 64 WHEN - 78 / + 16 THEN + 6 - + 69 * + - ( - ( 22 ) ) - AVG ( CASE - - 42 WHEN ( - 55 ) THEN + 37 + 56 + - + 33 / + 38 END ) ELSE NULL END * - ( + CAST ( NULL AS REAL ) ) + - 31 / 21 + - 3 AS col0, - 44 AS col1
----
NULL
-44

onlyif mysql # DIV for integer division: 
query II rowsort label-9806
SELECT DISTINCT 65 DIV 11 col1, + 55
----
5
55

skipif mysql # not compatible
query II rowsort label-9806
SELECT DISTINCT 65 / 11 col1, + 55
----
5
55

query II rowsort
SELECT - ( - + 89 ) AS col0, + 31
----
89
31

onlyif mysql # aggregate syntax: 
query I rowsort label-9808
SELECT CASE + 72 WHEN - 28 THEN NULL WHEN + 37 THEN NULL WHEN + 80 THEN - 17 WHEN - - 72 * + 93 - + - 79 * + 73 + - 81 + + 39 * + COUNT( * ) / 41 / - 77 THEN + 50 / + AVG ( ALL - 30 ) / + 26 ELSE + COUNT( - COALESCE ( - 52, + ( - - 11 ) * - - 3 ) ) + + + 90 END AS col1
----
91

skipif mysql # not compatible
query I rowsort label-9808
SELECT CASE + 72 WHEN - 28 THEN NULL WHEN + 37 THEN NULL WHEN + 80 THEN - 17 WHEN - - 72 * + 93 - + - 79 * + 73 + - 81 + + 39 * + COUNT ( * ) / 41 / - 77 THEN + 50 / + AVG ( ALL - 30 ) / + 26 ELSE + COUNT ( - COALESCE ( - 52, + ( - - 11 ) * - - 3 ) ) + + + 90 END AS col1
----
91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9809
SELECT DISTINCT ( NULLIF ( + + 42, + COUNT( * ) + - 70 - CAST( 95 AS SIGNED ) * - COUNT( * ) * - - 82 - - 49 ) ) AS col0
----
42

skipif mysql # not compatible
query I rowsort label-9809
SELECT DISTINCT ( NULLIF ( + + 42, + COUNT ( * ) + - 70 - CAST ( 95 AS INTEGER ) * - COUNT ( * ) * - - 82 - - 49 ) ) AS col0
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-9810
SELECT - MIN( ALL + + 87 ) AS col1
----
-87

skipif mysql # not compatible
query I rowsort label-9810
SELECT - MIN ( ALL + + 87 ) AS col1
----
-87

query I rowsort
SELECT ALL ( 65 ) AS col1
----
65

query I rowsort
SELECT + 30 * - + 20
----
-600

query II rowsort
SELECT ALL 11, + 33 col2
----
11
33

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9814
SELECT + 47 + - 3 * - - COUNT( * ) * - COUNT( - 25 ) / + - CAST( NULL AS SIGNED ) + 84 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9814
SELECT + 47 + - 3 * - - COUNT ( * ) * - COUNT ( - 25 ) / + - CAST ( NULL AS INTEGER ) + 84 AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9815
SELECT ALL - 16 - - 10 + + + 77 DIV - - 80 col2
----
-6

skipif mysql # not compatible
query I rowsort label-9815
SELECT ALL - 16 - - 10 + + + 77 / - - 80 col2
----
-6

query I rowsort
SELECT - 59 * - + 70
----
4130

onlyif mysql # aggregate syntax: 
query I rowsort label-9817
SELECT - MIN( + 49 ) AS col1
----
-49

skipif mysql # not compatible
query I rowsort label-9817
SELECT - MIN ( + 49 ) AS col1
----
-49

query II rowsort
SELECT 71 AS col2, + 63 AS col2
----
71
63

query I rowsort
SELECT - 94 * + 12 AS col2
----
-1128

query I rowsort
SELECT - 12 + + 40
----
28

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9821
SELECT + CASE + 43 WHEN + MIN( DISTINCT + 86 ) THEN NULL WHEN 96 THEN NULL WHEN + - 3 THEN - - 17 END + - 36 + + - CAST( NULL AS DECIMAL ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9821
SELECT + CASE + 43 WHEN + MIN ( DISTINCT + 86 ) THEN NULL WHEN 96 THEN NULL WHEN + - 3 THEN - - 17 END + - 36 + + - CAST ( NULL AS REAL ) AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9822
SELECT ALL CAST( + COALESCE ( + 4, - COUNT( * ) ) AS SIGNED )
----
4

skipif mysql # not compatible
query I rowsort label-9822
SELECT ALL CAST ( + COALESCE ( + 4, - COUNT ( * ) ) AS INTEGER )
----
4

query I rowsort
SELECT + ( + ( - 96 ) ) * + 60 AS col0
----
-5760

query I rowsort
SELECT + 64 + + 45 AS col2
----
109

onlyif mysql # DIV for integer division: 
query I rowsort label-9825
SELECT ALL 76 DIV + + 72
----
1

skipif mysql # not compatible
query I rowsort label-9825
SELECT ALL 76 / + + 72
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9826
SELECT + 34 + - + CAST( + - NULLIF ( MIN( DISTINCT ( + - 68 ) ), + 44 ) AS SIGNED ) DIV - 68
----
35

skipif mysql # not compatible
query I rowsort label-9826
SELECT + 34 + - + CAST ( + - NULLIF ( MIN ( DISTINCT ( + - 68 ) ), + 44 ) AS INTEGER ) / - 68
----
35

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9827
SELECT + CAST( NULL AS SIGNED ) * - + 0
----
NULL

skipif mysql # not compatible
query I rowsort label-9827
SELECT + CAST ( NULL AS INTEGER ) * - + 0
----
NULL

query I rowsort
SELECT + 10 + + 4 AS col0
----
14

query I rowsort
SELECT ALL 91 * 40 + - COALESCE ( - 80, - 33, + + 63 ) + + 78 AS col0
----
3798

onlyif mysql # aggregate syntax: 
query I rowsort label-9830
SELECT DISTINCT - ( COUNT( * ) ) / - - ( + ( + 23 ) ) * CASE - - 40 WHEN - 92 THEN + - 5 * - - 87 * + COUNT( * ) END * - 57 * - - 22 - + 86 + + 25 + - 4 + + 16 + + + COALESCE ( + 42, + 99 ) + - COUNT( ALL - 45 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9830
SELECT DISTINCT - ( COUNT ( * ) ) / - - ( + ( + 23 ) ) * CASE - - 40 WHEN - 92 THEN + - 5 * - - 87 * + COUNT ( * ) END * - 57 * - - 22 - + 86 + + 25 + - 4 + + 16 + + + COALESCE ( + 42, + 99 ) + - COUNT ( ALL - 45 )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9831
SELECT ALL + 25 DIV ( + 37 ) + + - 14
----
-14

skipif mysql # not compatible
query I rowsort label-9831
SELECT ALL + 25 / ( + 37 ) + + - 14
----
-14

onlyif mysql # aggregate syntax: 
query II rowsort label-9832
SELECT ALL - 71 AS col0, + COUNT( + - 18 ) * - - 59 + + + ( 81 ) * - COUNT( * ) * 39
----
-71
-3100

skipif mysql # not compatible
query II rowsort label-9832
SELECT ALL - 71 AS col0, + COUNT ( + - 18 ) * - - 59 + + + ( 81 ) * - COUNT ( * ) * 39
----
-71
-3100

query I rowsort
SELECT ALL - ( - 10 ) + + 68
----
78

onlyif mysql # DIV for integer division: 
query I rowsort label-9834
SELECT ALL - + 10 DIV + 54
----
0

skipif mysql # not compatible
query I rowsort label-9834
SELECT ALL - + 10 / + 54
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9835
SELECT DISTINCT CASE COUNT( * ) WHEN + 47 THEN - 61 END + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-9835
SELECT DISTINCT CASE COUNT ( * ) WHEN + 47 THEN - 61 END + COUNT ( * )
----
NULL

query II rowsort
SELECT + 35 AS col0, - 33 AS col2
----
35
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-9837
SELECT - SUM( 36 ) * - 89 - + - 61 * + 1 AS col2
----
3265

skipif mysql # not compatible
query I rowsort label-9837
SELECT - SUM ( 36 ) * - 89 - + - 61 * + 1 AS col2
----
3265

query II rowsort
SELECT - 86 AS col0, 20 AS col2
----
-86
20

onlyif mysql # DIV for integer division: 
query I rowsort label-9839
SELECT ALL - - 18 DIV - 90
----
0

skipif mysql # not compatible
query I rowsort label-9839
SELECT ALL - - 18 / - 90
----
0

query I rowsort
SELECT DISTINCT - - 68 * + - 86 AS col1
----
-5848

onlyif mysql # aggregate syntax: 
query I rowsort label-9841
SELECT DISTINCT + - COUNT( * ) - - 39
----
38

skipif mysql # not compatible
query I rowsort label-9841
SELECT DISTINCT + - COUNT ( * ) - - 39
----
38

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9842
SELECT DISTINCT 65 col2, + COUNT( * ) DIV COALESCE ( - 50, + 35, - - 23 )
----
65
0

skipif mysql # not compatible
query II rowsort label-9842
SELECT DISTINCT 65 col2, + COUNT ( * ) / COALESCE ( - 50, + 35, - - 23 )
----
65
0

query I rowsort
SELECT DISTINCT + + 76 * - 35
----
-2660

onlyif mysql # DIV for integer division: 
query I rowsort label-9844
SELECT ALL + 57 DIV - 71
----
0

skipif mysql # not compatible
query I rowsort label-9844
SELECT ALL + 57 / - 71
----
0

query I rowsort
SELECT 1 * - 57 * - 7
----
399

query I rowsort
SELECT DISTINCT 35 * + 0 * + 61 AS col2
----
0

query I rowsort
SELECT DISTINCT 70 * - 41
----
-2870

query I rowsort
SELECT ALL ( 89 ) + - 20 + - + 17
----
52

query I rowsort
SELECT 16 * + 63
----
1008

query I rowsort
SELECT 87 - - 8
----
95

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9851
SELECT + ( - 54 ) * - 36 * + 43 - + COUNT( * ) + + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9851
SELECT + ( - 54 ) * - 36 * + 43 - + COUNT ( * ) + + CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9852
SELECT ALL CASE - 82 WHEN + NULLIF ( - - 40, + CAST( NULL AS SIGNED ) ) THEN 8 * - - 9 + 4 END + - + 66 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9852
SELECT ALL CASE - 82 WHEN + NULLIF ( - - 40, + CAST ( NULL AS INTEGER ) ) THEN 8 * - - 9 + 4 END + - + 66 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9853
SELECT + 63 DIV + MIN( - 7 ) - - + 20 + + 31 DIV 28 * + CAST( COUNT( * ) AS SIGNED ) * ( - COUNT( * ) ) DIV CAST( - 15 AS SIGNED ) AS col2
----
11

skipif mysql # not compatible
query I rowsort label-9853
SELECT + 63 / + MIN ( - 7 ) - - + 20 + + 31 / 28 * + CAST ( COUNT ( * ) AS INTEGER ) * ( - COUNT ( * ) ) / CAST ( - 15 AS INTEGER ) AS col2
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-9854
SELECT ALL - - ( - - MIN( ALL 93 ) ) AS col2
----
93

skipif mysql # not compatible
query I rowsort label-9854
SELECT ALL - - ( - - MIN ( ALL 93 ) ) AS col2
----
93

query I rowsort
SELECT DISTINCT 64 + + 77 AS col2
----
141

onlyif mysql # DIV for integer division: 
query I rowsort label-9856
SELECT 91 DIV - 34 + - 55
----
-57

skipif mysql # not compatible
query I rowsort label-9856
SELECT 91 / - 34 + - 55
----
-57

onlyif mysql # aggregate syntax: 
query II rowsort label-9857
SELECT + MIN( DISTINCT 16 ) AS col1, 26 * - 2
----
16
-52

skipif mysql # not compatible
query II rowsort label-9857
SELECT + MIN ( DISTINCT 16 ) AS col1, 26 * - 2
----
16
-52

query II rowsort
SELECT ALL - - ( + + 36 ) AS col0, - 85 * 45 + + - 75 AS col0
----
36
-3900

query I rowsort
SELECT ALL - 64 - + + 16 - - 70
----
-10

query I rowsort
SELECT + 15 * - - 55 + + ( + 28 ) AS col1
----
853

query I rowsort
SELECT - 29 + + 40 AS col2
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-9862
SELECT - SUM( - - 23 ) AS col2
----
-23

skipif mysql # not compatible
query I rowsort label-9862
SELECT - SUM ( - - 23 ) AS col2
----
-23

query I rowsort
SELECT 83 + ( + 78 ) + + - 12 AS col0
----
149

query I rowsort
SELECT 82 * + 33
----
2706

query II rowsort
SELECT - 8 AS col1, - 11 AS col0
----
-8
-11

query I rowsort
SELECT 90 * - - 45 + + 22
----
4072

onlyif mysql # DIV for integer division: 
query I rowsort label-9867
SELECT 1 DIV + 35
----
0

skipif mysql # not compatible
query I rowsort label-9867
SELECT 1 / + 35
----
0

query I rowsort
SELECT ( - - 47 ) * 92 AS col0
----
4324

query I rowsort
SELECT ALL + 54 * + 67 AS col2
----
3618

query I rowsort
SELECT ALL - 99 * - 62 AS col2
----
6138

query I rowsort
SELECT ALL 70 + 22 AS col0
----
92

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-9872
SELECT - 73 AS col2, - MIN( DISTINCT + CAST( NULL AS DECIMAL ) )
----
-73
NULL

skipif mysql # not compatible
query II rowsort label-9872
SELECT - 73 AS col2, - MIN ( DISTINCT + CAST ( NULL AS REAL ) )
----
-73
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9873
SELECT ALL + COUNT( * ) + + 78
----
79

skipif mysql # not compatible
query I rowsort label-9873
SELECT ALL + COUNT ( * ) + + 78
----
79

query I rowsort
SELECT 97 - - 50 + 68 * - 93 AS col2
----
-6177

query I rowsort
SELECT ALL + 54 * 52 AS col1
----
2808

query I rowsort
SELECT 72 * + 95
----
6840

onlyif mysql # aggregate syntax: 
query II rowsort label-9877
SELECT 7 + + COUNT( * ) + MAX( NULLIF ( - - 16, - 32 ) ), CASE 23 WHEN + 46 + - 82 THEN NULL ELSE - 62 + - COUNT( * ) * + 21 + - COUNT( 11 ) - 46 * + - 85 * NULLIF ( + + 74, + - 22 + 12 ) END + 98 + - COUNT( * ) AS col0
----
24
289353

skipif mysql # not compatible
query II rowsort label-9877
SELECT 7 + + COUNT ( * ) + MAX ( NULLIF ( - - 16, - 32 ) ), CASE 23 WHEN + 46 + - 82 THEN NULL ELSE - 62 + - COUNT ( * ) * + 21 + - COUNT ( 11 ) - 46 * + - 85 * NULLIF ( + + 74, + - 22 + 12 ) END + 98 + - COUNT ( * ) AS col0
----
24
289353

query I rowsort
SELECT - CASE 36 WHEN - + 72 * - 13 * + + 56 THEN NULL WHEN 28 THEN NULL WHEN - 9 * - ( 13 ) THEN + 49 END AS col1
----
NULL

query I rowsort
SELECT 87 + - + 11
----
76

query I rowsort
SELECT ALL - ( + 16 ) + 66
----
50

query I rowsort
SELECT 97 + + 84 col1
----
181

query I rowsort
SELECT 32 - + + 64
----
-32

query I rowsort
SELECT 6 + - 59 * + 86
----
-5068

query I rowsort
SELECT ALL + ( 78 ) + - 9 * - 51 + + 93 * - 12 AS col0
----
-579

query I rowsort
SELECT - - ( - - 62 )
----
62

query I rowsort
SELECT ALL + + 51 + + + 16 * - ( - 27 ) AS col0
----
483

onlyif mysql # aggregate syntax: 
query I rowsort label-9887
SELECT - 70 * - - SUM( DISTINCT - 58 )
----
4060

skipif mysql # not compatible
query I rowsort label-9887
SELECT - 70 * - - SUM ( DISTINCT - 58 )
----
4060

query I rowsort
SELECT DISTINCT 9 * - - 52
----
468

query I rowsort
SELECT ALL - NULLIF ( + ( - 68 ), - + 76 ) * - + 34 + + 60
----
-2252

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9890
SELECT - CAST( NULL AS SIGNED ) / SUM( DISTINCT + 49 ) + + 84 * + - 52 * + 95 + 62 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9890
SELECT - CAST ( NULL AS INTEGER ) / SUM ( DISTINCT + 49 ) + + 84 * + - 52 * + 95 + 62 AS col1
----
NULL

query I rowsort
SELECT - 97 + + 37 AS col0
----
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-9892
SELECT - - 4 * 7 * + + MAX( ALL - 46 )
----
-1288

skipif mysql # not compatible
query I rowsort label-9892
SELECT - - 4 * 7 * + + MAX ( ALL - 46 )
----
-1288

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9893
SELECT - CAST( 75 AS SIGNED ) AS col1
----
-75

skipif mysql # not compatible
query I rowsort label-9893
SELECT - CAST ( 75 AS INTEGER ) AS col1
----
-75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9894
SELECT DISTINCT - - 61 * 84 - + 4 + + + 31 * - CAST( - 28 AS SIGNED ) * - - 95 AS col1
----
87580

skipif mysql # not compatible
query I rowsort label-9894
SELECT DISTINCT - - 61 * 84 - + 4 + + + 31 * - CAST ( - 28 AS INTEGER ) * - - 95 AS col1
----
87580

onlyif mysql # DIV for integer division: 
query I rowsort label-9895
SELECT - + 44 DIV + + 76 + + 46
----
46

skipif mysql # not compatible
query I rowsort label-9895
SELECT - + 44 / + + 76 + + 46
----
46

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9896
SELECT + COUNT( ALL - 90 ) DIV 67 * 53 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-9896
SELECT + COUNT ( ALL - 90 ) / 67 * 53 AS col2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-9897
SELECT DISTINCT + 66 DIV - 38
----
-1

skipif mysql # not compatible
query I rowsort label-9897
SELECT DISTINCT + 66 / - 38
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9898
SELECT MIN( DISTINCT - 91 ) col2
----
-91

skipif mysql # not compatible
query I rowsort label-9898
SELECT MIN ( DISTINCT - 91 ) col2
----
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-9899
SELECT + MIN( DISTINCT + 22 )
----
22

skipif mysql # not compatible
query I rowsort label-9899
SELECT + MIN ( DISTINCT + 22 )
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-9900
SELECT + NULLIF ( - + 96, - 5 ) * + COUNT( * ) AS col0
----
-96

skipif mysql # not compatible
query I rowsort label-9900
SELECT + NULLIF ( - + 96, - 5 ) * + COUNT ( * ) AS col0
----
-96

onlyif mysql # aggregate syntax: 
query II rowsort label-9901
SELECT + COUNT( * ) + - 48 AS col0, - 79 AS col1
----
-47
-79

skipif mysql # not compatible
query II rowsort label-9901
SELECT + COUNT ( * ) + - 48 AS col0, - 79 AS col1
----
-47
-79

query I rowsort
SELECT DISTINCT + NULLIF ( 43, + ( + - 26 ) ) AS col2
----
43

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9903
SELECT ALL 61, + NULLIF ( + ( COUNT( * ) ), - + ( - 30 ) ) DIV - COUNT( * ) AS col0
----
61
-1

skipif mysql # not compatible
query II rowsort label-9903
SELECT ALL 61, + NULLIF ( + ( COUNT ( * ) ), - + ( - 30 ) ) / - COUNT ( * ) AS col0
----
61
-1

query I rowsort
SELECT ALL 71 + + 90 - + 23 * + 65 AS col0
----
-1334

onlyif mysql # aggregate syntax: 
query I rowsort label-9905
SELECT ALL - MIN( ALL - 29 ) + - - 50 + 11 + + 67 + MIN( + 67 ) + 92 * COUNT( + 43 ) AS col2
----
316

skipif mysql # not compatible
query I rowsort label-9905
SELECT ALL - MIN ( ALL - 29 ) + - - 50 + 11 + + 67 + MIN ( + 67 ) + 92 * COUNT ( + 43 ) AS col2
----
316

onlyif mysql # DIV for integer division: 
query II rowsort label-9906
SELECT + NULLIF ( + 89, + + 63 ) DIV + 66 AS col0, + 50
----
1
50

skipif mysql # not compatible
query II rowsort label-9906
SELECT + NULLIF ( + 89, + + 63 ) / + 66 AS col0, + 50
----
1
50

query I rowsort
SELECT - CASE ( - 10 ) WHEN - + 77 * + 64 THEN NULL ELSE - 14 - - + COALESCE ( 17, - ( + + 76 ) ) END
----
-3

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9908
SELECT + CAST( + - 37 AS SIGNED ) DIV + 94 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-9908
SELECT + CAST ( + - 37 AS INTEGER ) / + 94 AS col1
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-9909
SELECT - 5 + - 51 + COUNT( * ) * + + 68 AS col2, COUNT( * )
----
12
1

skipif mysql # not compatible
query II rowsort label-9909
SELECT - 5 + - 51 + COUNT ( * ) * + + 68 AS col2, COUNT ( * )
----
12
1

onlyif mysql # aggregate syntax: 
query II rowsort label-9910
SELECT ALL + 23 * + COUNT( * ) col0, MIN( DISTINCT - - 66 ) AS col2
----
23
66

skipif mysql # not compatible
query II rowsort label-9910
SELECT ALL + 23 * + COUNT ( * ) col0, MIN ( DISTINCT - - 66 ) AS col2
----
23
66

onlyif mysql # aggregate syntax: 
query I rowsort label-9911
SELECT ALL + COUNT( * ) * 49
----
49

skipif mysql # not compatible
query I rowsort label-9911
SELECT ALL + COUNT ( * ) * 49
----
49

query I rowsort
SELECT DISTINCT - 51 * - - 9 * + NULLIF ( + 72, - 82 * - 40 )
----
-33048

onlyif mysql # DIV for integer division: 
query I rowsort label-9913
SELECT DISTINCT 16 - + 58 DIV - - 30
----
15

skipif mysql # not compatible
query I rowsort label-9913
SELECT DISTINCT 16 - + 58 / - - 30
----
15

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-9914
SELECT ALL - 13 * - + COALESCE ( 34, CAST( NULL AS SIGNED ) ) + - - 21 * + + 22 + 63 + - 62 DIV - + 75 + - 44 - 17 AS col1, + 61 * CAST( - 7 AS SIGNED ) * + - 40 + + CAST( NULL AS SIGNED ) + - COUNT( * ) + + - 38
----
906
NULL

skipif mysql # not compatible
query II rowsort label-9914
SELECT ALL - 13 * - + COALESCE ( 34, CAST ( NULL AS INTEGER ) ) + - - 21 * + + 22 + 63 + - 62 / - + 75 + - 44 - 17 AS col1, + 61 * CAST ( - 7 AS INTEGER ) * + - 40 + + CAST ( NULL AS INTEGER ) + - COUNT ( * ) + + - 38
----
906
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9915
SELECT ALL 42 * - - 99 * + - COUNT( * )
----
-4158

skipif mysql # not compatible
query I rowsort label-9915
SELECT ALL 42 * - - 99 * + - COUNT ( * )
----
-4158

query II rowsort
SELECT - 70, 46 AS col1
----
-70
46

query I rowsort
SELECT - 90 * + 5
----
-450

onlyif mysql # aggregate syntax: 
query II rowsort label-9918
SELECT + - 58 - - COUNT( * ) + 63 + + + 41 * + 79 * - - 59 * + 60 * COALESCE ( + COUNT( * ), 10, - 60 ), COUNT( * ) AS col0
----
11466066
1

skipif mysql # not compatible
query II rowsort label-9918
SELECT + - 58 - - COUNT ( * ) + 63 + + + 41 * + 79 * - - 59 * + 60 * COALESCE ( + COUNT ( * ), 10, - 60 ), COUNT ( * ) AS col0
----
11466066
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9919
SELECT - COUNT( * ) * - COUNT( * ) - + 82 + 56 + 21 + 55 * - 54 * ( - COALESCE ( 80, - - CAST( + - 55 AS SIGNED ) ) ) + + 69
----
237665

skipif mysql # not compatible
query I rowsort label-9919
SELECT - COUNT ( * ) * - COUNT ( * ) - + 82 + 56 + 21 + 55 * - 54 * ( - COALESCE ( 80, - - CAST ( + - 55 AS INTEGER ) ) ) + + 69
----
237665

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9920
SELECT - + 54 DIV - COUNT( * ) + 58
----
112

skipif mysql # not compatible
query I rowsort label-9920
SELECT - + 54 / - COUNT ( * ) + 58
----
112

query I rowsort
SELECT DISTINCT + + 98 * + - 31
----
-3038

query I rowsort
SELECT ALL + - 48 * 65
----
-3120

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9923
SELECT - + CAST( NULL AS SIGNED ) - - 43 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9923
SELECT - + CAST ( NULL AS INTEGER ) - - 43 AS col1
----
NULL

query I rowsort
SELECT ALL + - 32 * + 69 * + 95 + 82 + - 32
----
-209710

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9925
SELECT - + 31 * CASE 65 WHEN + - CASE - 19 WHEN + - 57 - 99 THEN NULL ELSE - 80 * - ( + - 75 ) * 6 + - - 27 + - ( - 15 ) / 54 END + 65 * + 56 + + 44 * 12 THEN + CAST( NULL AS SIGNED ) + 5 + + 16 / 63 WHEN - + 81 THEN - + 58 + + - 80 * - 54 + - 33 END + 33
----
NULL

skipif mysql # not compatible
query I rowsort label-9925
SELECT - + 31 * CASE 65 WHEN + - CASE - 19 WHEN + - 57 - 99 THEN NULL ELSE - 80 * - ( + - 75 ) * 6 + - - 27 + - ( - 15 ) / 54 END + 65 * + 56 + + 44 * 12 THEN + CAST ( NULL AS INTEGER ) + 5 + + 16 / 63 WHEN - + 81 THEN - + 58 + + - 80 * - 54 + - 33 END + 33
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9926
SELECT + ( + + COUNT( * ) ) AS col1, - 32 + - 57
----
1
-89

skipif mysql # not compatible
query II rowsort label-9926
SELECT + ( + + COUNT ( * ) ) AS col1, - 32 + - 57
----
1
-89

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9927
SELECT ALL + - CAST( - CASE + - 33 WHEN - + 55 THEN - 75 ELSE NULL END AS SIGNED ) * + CAST( NULL AS SIGNED ) + 90 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9927
SELECT ALL + - CAST ( - CASE + - 33 WHEN - + 55 THEN - 75 ELSE NULL END AS INTEGER ) * + CAST ( NULL AS INTEGER ) + 90 col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9928
SELECT + 11 AS col1, COUNT( * ) * ( + 3 ) DIV + COUNT( * ) AS col1
----
11
3

skipif mysql # not compatible
query II rowsort label-9928
SELECT + 11 AS col1, COUNT ( * ) * ( + 3 ) / + COUNT ( * ) AS col1
----
11
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9929
SELECT - 60 * + COUNT( * ) + + 21
----
-39

skipif mysql # not compatible
query I rowsort label-9929
SELECT - 60 * + COUNT ( * ) + + 21
----
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-9930
SELECT ALL + COALESCE ( - MIN( DISTINCT - 21 ), + 58 ) AS col2
----
21

skipif mysql # not compatible
query I rowsort label-9930
SELECT ALL + COALESCE ( - MIN ( DISTINCT - 21 ), + 58 ) AS col2
----
21

onlyif mysql # aggregate syntax: 
query II rowsort label-9931
SELECT ( COUNT( * ) ) AS col1, + 8 * - 43 + SUM( DISTINCT - 90 ) AS col0
----
1
-434

skipif mysql # not compatible
query II rowsort label-9931
SELECT ( COUNT ( * ) ) AS col1, + 8 * - 43 + SUM ( DISTINCT - 90 ) AS col0
----
1
-434

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9932
SELECT ALL 49 * + 4 + + 60 + + 94 - - - ( 0 ) * - CASE MAX( + 76 ) WHEN - 97 * - 57 + + COUNT( * ) * - CASE COUNT( * ) WHEN - + MAX( CAST( NULL AS SIGNED ) ) THEN - 8 * - 0 WHEN - 39 + - - 43 THEN - COUNT( * ) WHEN + 57 THEN 84 END THEN + + CASE 52 WHEN NULLIF ( - 61, + 21 ) THEN - - 36 ELSE NULL END WHEN - CAST( NULL AS SIGNED ) THEN 76 END / 17 + + - 44 / 5 * + 57 * + 83 + - 69 + + COUNT( * ) * - 86 / - 47 * - ( SUM( DISTINCT + - 42 ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9932
SELECT ALL 49 * + 4 + + 60 + + 94 - - - ( 0 ) * - CASE MAX ( + 76 ) WHEN - 97 * - 57 + + COUNT ( * ) * - CASE COUNT ( * ) WHEN - + MAX ( CAST ( NULL AS INTEGER ) ) THEN - 8 * - 0 WHEN - 39 + - - 43 THEN - COUNT ( * ) WHEN + 57 THEN 84 END THEN + + CASE 52 WHEN NULLIF ( - 61, + 21 ) THEN - - 36 ELSE NULL END WHEN - CAST ( NULL AS INTEGER ) THEN 76 END / 17 + + - 44 / 5 * + 57 * + 83 + - 69 + + COUNT ( * ) * - 86 / - 47 * - ( SUM ( DISTINCT + - 42 ) ) AS col1
----
NULL

query I rowsort
SELECT ALL + 56 * - - 72 + 14 + - 30
----
4016

query II rowsort
SELECT + 18 + + 22 + - 26 + - NULLIF ( + - 93, 87 ) * 53 * + CASE + + 92 WHEN - 15 THEN 97 * - 65 ELSE NULL END, 14 AS col2
----
NULL
14

query II rowsort
SELECT DISTINCT + ( - 11 ) AS col1, 94 * + 91 AS col1
----
-11
8554

onlyif mysql # aggregate syntax: 
query I rowsort label-9936
SELECT - COUNT( + 59 ) col0
----
-1

skipif mysql # not compatible
query I rowsort label-9936
SELECT - COUNT ( + 59 ) col0
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9937
SELECT CASE 16 WHEN - + CAST( 60 AS SIGNED ) THEN NULL WHEN + 47 THEN + - 78 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9937
SELECT CASE 16 WHEN - + CAST ( 60 AS INTEGER ) THEN NULL WHEN + 47 THEN + - 78 END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9938
SELECT ALL - 30 * - 77 + + 7 + 59 * - - 85, + COUNT( 11 ) * - 53 col2
----
7332
-53

skipif mysql # not compatible
query II rowsort label-9938
SELECT ALL - 30 * - 77 + + 7 + 59 * - - 85, + COUNT ( 11 ) * - 53 col2
----
7332
-53

query I rowsort
SELECT - ( + - 14 ) + 37
----
51

query I rowsort
SELECT + 99 + + ( - 2 )
----
97

onlyif mysql # aggregate syntax: 
query II rowsort label-9941
SELECT + 75 + 50, - SUM( ALL + 45 ) AS col2
----
125
-45

skipif mysql # not compatible
query II rowsort label-9941
SELECT + 75 + 50, - SUM ( ALL + 45 ) AS col2
----
125
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-9942
SELECT ALL SUM( ALL - - COALESCE ( + 94, - 84 + ( + - 46 ) - - - 1 ) ) - - - 57
----
37

skipif mysql # not compatible
query I rowsort label-9942
SELECT ALL SUM ( ALL - - COALESCE ( + 94, - 84 + ( + - 46 ) - - - 1 ) ) - - - 57
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-9943
SELECT COUNT( * ) - - + 76
----
77

skipif mysql # not compatible
query I rowsort label-9943
SELECT COUNT ( * ) - - + 76
----
77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9944
SELECT CAST( NULL AS SIGNED ) + 37 * + 7
----
NULL

skipif mysql # not compatible
query I rowsort label-9944
SELECT CAST ( NULL AS INTEGER ) + 37 * + 7
----
NULL

query I rowsort
SELECT + ( 97 ) * + - 47 AS col0
----
-4559

onlyif mysql # aggregate syntax: 
query II rowsort label-9946
SELECT + MIN( DISTINCT + 54 ) AS col2, + ( + + 41 ) * 11 + + 80 + 65 AS col1
----
54
596

skipif mysql # not compatible
query II rowsort label-9946
SELECT + MIN ( DISTINCT + 54 ) AS col2, + ( + + 41 ) * 11 + + 80 + 65 AS col1
----
54
596

onlyif mysql # aggregate syntax: 
query I rowsort label-9947
SELECT - 18 + CASE - 98 WHEN - + 51 THEN + COUNT( * ) WHEN + 19 + + - COUNT( * ) THEN NULL ELSE NULL END / - 79
----
NULL

skipif mysql # not compatible
query I rowsort label-9947
SELECT - 18 + CASE - 98 WHEN - + 51 THEN + COUNT ( * ) WHEN + 19 + + - COUNT ( * ) THEN NULL ELSE NULL END / - 79
----
NULL

query I rowsort
SELECT 71 * + - 45 + - 9 + - - ( - 34 ) + + 62
----
-3176

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9949
SELECT 74 + - + COALESCE ( - + COALESCE ( CAST( COUNT( + 80 ) AS SIGNED ), + 12 ), 43 )
----
75

skipif mysql # not compatible
query I rowsort label-9949
SELECT 74 + - + COALESCE ( - + COALESCE ( CAST ( COUNT ( + 80 ) AS INTEGER ), + 12 ), 43 )
----
75

query I rowsort
SELECT - 2 - + - 31
----
29

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9951
SELECT ALL - SUM( + - ( + 31 ) ) AS col1, + CAST( NULL AS SIGNED ) + 63 * - - MIN( ALL + 87 ) AS col2
----
31
NULL

skipif mysql # not compatible
query II rowsort label-9951
SELECT ALL - SUM ( + - ( + 31 ) ) AS col1, + CAST ( NULL AS INTEGER ) + 63 * - - MIN ( ALL + 87 ) AS col2
----
31
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9952
SELECT ALL 15 DIV + NULLIF ( - ( + - 13 ), + - 29 * - MIN( + 49 ) ) + COALESCE ( COUNT( * ), - 25 ) - ( - 79 ) - + + 58 + + 34 * + 63 * + - 29 AS col2
----
-62095

skipif mysql # not compatible
query I rowsort label-9952
SELECT ALL 15 / + NULLIF ( - ( + - 13 ), + - 29 * - MIN ( + 49 ) ) + COALESCE ( COUNT ( * ), - 25 ) - ( - 79 ) - + + 58 + + 34 * + 63 * + - 29 AS col2
----
-62095

onlyif mysql # DIV for integer division: 
query I rowsort label-9953
SELECT 50 DIV - 99
----
0

skipif mysql # not compatible
query I rowsort label-9953
SELECT 50 / - 99
----
0

query I rowsort
SELECT DISTINCT - - 59 * 82 AS col1
----
4838

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9955
SELECT + CAST( + + 86 AS SIGNED ) + - + 24 AS col0
----
62

skipif mysql # not compatible
query I rowsort label-9955
SELECT + CAST ( + + 86 AS INTEGER ) + - + 24 AS col0
----
62

query I rowsort
SELECT DISTINCT 60 + + 93 + - - 73 * + 81
----
6066

query I rowsort
SELECT 20 * 22 - ( + - 66 ) * - 95 * - 75 AS col1
----
470690

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9958
SELECT 22 * 11 + + COUNT( * ) * 34 + 54 + - 8 + + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-9958
SELECT 22 * 11 + + COUNT ( * ) * 34 + 54 + - 8 + + CAST ( NULL AS REAL )
----
NULL

query I rowsort
SELECT DISTINCT - + ( + 34 ) col0
----
-34

onlyif mysql # DIV for integer division: 
query I rowsort label-9960
SELECT + + 6 DIV - 68 + + + 97 col0
----
97

skipif mysql # not compatible
query I rowsort label-9960
SELECT + + 6 / - 68 + + + 97 col0
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-9961
SELECT ALL + 14 + 0 * - COUNT( * ) + + - 91 * 48 + + - 65 + 30
----
-4389

skipif mysql # not compatible
query I rowsort label-9961
SELECT ALL + 14 + 0 * - COUNT ( * ) + + - 91 * 48 + + - 65 + 30
----
-4389

onlyif mysql # aggregate syntax: 
query I rowsort label-9962
SELECT ALL COUNT( * ) + - ( + - 26 ) AS col1
----
27

skipif mysql # not compatible
query I rowsort label-9962
SELECT ALL COUNT ( * ) + - ( + - 26 ) AS col1
----
27

onlyif mysql # aggregate syntax: 
query II rowsort label-9963
SELECT 12, - COUNT( + 18 ) + + 53 AS col1
----
12
52

skipif mysql # not compatible
query II rowsort label-9963
SELECT 12, - COUNT ( + 18 ) + + 53 AS col1
----
12
52

onlyif mysql # aggregate syntax: 
query I rowsort label-9964
SELECT ALL + COUNT( - 88 ) + - CASE + + 90 WHEN 9 * - 99 THEN 18 END + + 48 * + 34 + - - ( 82 ) / + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-9964
SELECT ALL + COUNT ( - 88 ) + - CASE + + 90 WHEN 9 * - 99 THEN 18 END + + 48 * + 34 + - - ( 82 ) / + COUNT ( * )
----
NULL

query I rowsort
SELECT ALL - 40 + + 86
----
46

query II rowsort
SELECT + 4 AS col2, 41 AS col2
----
4
41

query I rowsort
SELECT 98 + - 30 * - 51 AS col0
----
1628

onlyif mysql # aggregate syntax: 
query I rowsort label-9968
SELECT DISTINCT - SUM( 79 ) * - + ( - 39 ) * 81 AS col2
----
-249561

skipif mysql # not compatible
query I rowsort label-9968
SELECT DISTINCT - SUM ( 79 ) * - + ( - 39 ) * 81 AS col2
----
-249561

query I rowsort
SELECT ALL + 95 + + ( + 48 ) + + - 57
----
86

query I rowsort
SELECT 17 + 28
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-9971
SELECT 88 + + - NULLIF ( - - 80, + COUNT( * ) ) AS col1
----
8

skipif mysql # not compatible
query I rowsort label-9971
SELECT 88 + + - NULLIF ( - - 80, + COUNT ( * ) ) AS col1
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-9972
SELECT COUNT( * ) + + ( 72 ) + - 76
----
-3

skipif mysql # not compatible
query I rowsort label-9972
SELECT COUNT ( * ) + + ( 72 ) + - 76
----
-3

onlyif mysql # aggregate syntax: 
query II rowsort label-9973
SELECT + 27, - COUNT( * ) AS col0
----
27
-1

skipif mysql # not compatible
query II rowsort label-9973
SELECT + 27, - COUNT ( * ) AS col0
----
27
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9974
SELECT ALL - COUNT( * ) * - 70
----
70

skipif mysql # not compatible
query I rowsort label-9974
SELECT ALL - COUNT ( * ) * - 70
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-9975
SELECT ALL + 78 - + - 23 + - 3 * MIN( - 2 )
----
107

skipif mysql # not compatible
query I rowsort label-9975
SELECT ALL + 78 - + - 23 + - 3 * MIN ( - 2 )
----
107

query I rowsort
SELECT 32 + 80
----
112

query I rowsort
SELECT 12 * + 83
----
996

onlyif mysql # aggregate syntax: 
query I rowsort label-9978
SELECT COUNT( + 9 ) * + 4 AS col0
----
4

skipif mysql # not compatible
query I rowsort label-9978
SELECT COUNT ( + 9 ) * + 4 AS col0
----
4

onlyif mysql # aggregate syntax: 
query II rowsort label-9979
SELECT - 7 * + - MAX( 14 ), + 2 + 39 AS col1
----
98
41

skipif mysql # not compatible
query II rowsort label-9979
SELECT - 7 * + - MAX ( 14 ), + 2 + 39 AS col1
----
98
41

onlyif mysql # aggregate syntax: 
query I rowsort label-9980
SELECT 55 * + + 14 * + COUNT( * ) * - + 83 + 42
----
-63868

skipif mysql # not compatible
query I rowsort label-9980
SELECT 55 * + + 14 * + COUNT ( * ) * - + 83 + 42
----
-63868

query I rowsort
SELECT 86 + 63 - + 93 AS col0
----
56

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9982
SELECT ALL - 45 col0, 18 DIV + 50 * + COUNT( * ) AS col0
----
-45
0

skipif mysql # not compatible
query II rowsort label-9982
SELECT ALL - 45 col0, 18 / + 50 * + COUNT ( * ) AS col0
----
-45
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9983
SELECT - - MAX( DISTINCT 78 )
----
78

skipif mysql # not compatible
query I rowsort label-9983
SELECT - - MAX ( DISTINCT 78 )
----
78

query I rowsort
SELECT ALL + COALESCE ( - 4, - 44, + 15, - 57 ) AS col0
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-9985
SELECT 34 * + COUNT( * ) - - 67
----
101

skipif mysql # not compatible
query I rowsort label-9985
SELECT 34 * + COUNT ( * ) - - 67
----
101

onlyif mysql # aggregate syntax: 
query II rowsort label-9986
SELECT ALL + 22 AS col0, COUNT( * ) - ( 65 ) * 2 AS col1
----
22
-129

skipif mysql # not compatible
query II rowsort label-9986
SELECT ALL + 22 AS col0, COUNT ( * ) - ( 65 ) * 2 AS col1
----
22
-129

query I rowsort
SELECT ALL 22 * - - 25 AS col1
----
550

onlyif mysql # aggregate syntax: 
query I rowsort label-9988
SELECT ALL MAX( 99 )
----
99

skipif mysql # not compatible
query I rowsort label-9988
SELECT ALL MAX ( 99 )
----
99

query I rowsort
SELECT 14 * - 12 AS col1
----
-168

onlyif mysql # aggregate syntax: 
query I rowsort label-9990
SELECT - CASE WHEN NOT COUNT( * ) IS NULL THEN - 12 + - COUNT( * ) END AS col0
----
13

skipif mysql # not compatible
query I rowsort label-9990
SELECT - CASE WHEN NOT COUNT ( * ) IS NULL THEN - 12 + - COUNT ( * ) END AS col0
----
13

query I rowsort
SELECT - 32 - 95
----
-127

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9992
SELECT - MAX( + CAST( NULL AS SIGNED ) ) * 25 + + - COUNT( * ) * + + 2 + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-9992
SELECT - MAX ( + CAST ( NULL AS INTEGER ) ) * 25 + + - COUNT ( * ) * + + 2 + COUNT ( * )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9993
SELECT + + CAST( NULL AS SIGNED ) / + + ( + - 7 ) + + + 53 + COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9993
SELECT + + CAST ( NULL AS INTEGER ) / + + ( + - 7 ) + + + 53 + COUNT ( * ) AS col2
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9994
SELECT ALL 85 * - + CAST( NULL AS DECIMAL ) + + 33 + 63 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9994
SELECT ALL 85 * - + CAST ( NULL AS REAL ) + + 33 + 63 col1
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-9995
SELECT DISTINCT 33 DIV 79 * - - 42, 22 AS col0
----
0
22

skipif mysql # not compatible
query II rowsort label-9995
SELECT DISTINCT 33 / 79 * - - 42, 22 AS col0
----
0
22

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9996
SELECT ALL - 95 * - COUNT( 91 ) + - 9 + + COALESCE ( + 66, + 45, - 45 DIV COALESCE ( + 88, - 87 ) + + 31 ) AS col0
----
152

skipif mysql # not compatible
query I rowsort label-9996
SELECT ALL - 95 * - COUNT ( 91 ) + - 9 + + COALESCE ( + 66, + 45, - 45 / COALESCE ( + 88, - 87 ) + + 31 ) AS col0
----
152

onlyif mysql # aggregate syntax: 
query I rowsort label-9997
SELECT - ( - 92 ) * + COUNT( * ) * COUNT( - 59 ) AS col0
----
92

skipif mysql # not compatible
query I rowsort label-9997
SELECT - ( - 92 ) * + COUNT ( * ) * COUNT ( - 59 ) AS col0
----
92

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9998
SELECT ALL 48 * + CAST( - - 27 AS SIGNED ) AS col1
----
1296

skipif mysql # not compatible
query I rowsort label-9998
SELECT ALL 48 * + CAST ( - - 27 AS INTEGER ) AS col1
----
1296

query I rowsort
SELECT 1 - - 24 col0
----
25

