sqllogictest
Artifact Content
Not logged in

Artifact 99991576722077c7430331b491aa261fdb597b66:


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 + + 38 * - 35 * + MIN( + + ( + - 56 ) ) + 52
----
74532

skipif mysql # not compatible
query I rowsort label-0
SELECT + + 38 * - 35 * + MIN ( + + ( + - 56 ) ) + 52
----
74532

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

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

query I rowsort
SELECT ALL - 69 + 49 * 39 + + 3
----
1845

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3
SELECT + + CAST( - + 27 AS SIGNED ) + + - 0
----
-27

skipif mysql # not compatible
query I rowsort label-3
SELECT + + CAST ( - + 27 AS INTEGER ) + + - 0
----
-27

onlyif mysql # DIV for integer division: 
query I rowsort label-4
SELECT - 90 + + ( + 55 ) DIV + 13
----
-86

skipif mysql # not compatible
query I rowsort label-4
SELECT - 90 + + ( + 55 ) / + 13
----
-86

query I rowsort
SELECT + 30 * + 27
----
810

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

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

query I rowsort
SELECT ALL + 38 * + ( - 16 )
----
-608

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

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

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

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

query II rowsort
SELECT ALL 50 AS col0, 97
----
50
97

query II rowsort
SELECT ALL 54 * - 29 AS col0, 65 AS col2
----
-1566
65

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-12
SELECT 13 AS col0, ( + 52 ) * 43 * - CAST( + - 12 AS SIGNED ) * + COUNT( - 85 ) AS col2
----
13
26832

skipif mysql # not compatible
query II rowsort label-12
SELECT 13 AS col0, ( + 52 ) * 43 * - CAST ( + - 12 AS INTEGER ) * + COUNT ( - 85 ) AS col2
----
13
26832

query I rowsort
SELECT ALL 30 * + - 52 * + 26 AS col1
----
-40560

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

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

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-16
SELECT ALL 11 DIV + 61 - - CAST( NULL AS SIGNED ) + + 6 AS col0, - 58 DIV - 12
----
NULL
4

skipif mysql # not compatible
query II rowsort label-16
SELECT ALL 11 / + 61 - - CAST ( NULL AS INTEGER ) + + 6 AS col0, - 58 / - 12
----
NULL
4

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

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

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

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

query I rowsort
SELECT ALL ( - 58 ) * + 78 AS col2
----
-4524

query II rowsort
SELECT DISTINCT + 94 AS col0, ( + - 84 ) + - 42 AS col1
----
94
-126

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

onlyif mysql # DIV for integer division: 
query I rowsort label-22
SELECT DISTINCT 29 * + + 89 * + 51 * + + COALESCE ( - ( - + 85 ), 13 DIV 87 ) DIV + 1
----
11188635

skipif mysql # not compatible
query I rowsort label-22
SELECT DISTINCT 29 * + + 89 * + 51 * + + COALESCE ( - ( - + 85 ), 13 / 87 ) / + 1
----
11188635

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-23
SELECT ALL + 7 AS col0, + 97 * MAX( + 34 ) * + CASE + + CASE - 80 WHEN 32 + + COUNT( * ) THEN + ( - 32 ) / + 47 END WHEN 28 THEN NULL ELSE + ( + 17 ) END + + CAST( NULL AS SIGNED ) * + 99 AS col0
----
7
NULL

skipif mysql # not compatible
query II rowsort label-23
SELECT ALL + 7 AS col0, + 97 * MAX ( + 34 ) * + CASE + + CASE - 80 WHEN 32 + + COUNT ( * ) THEN + ( - 32 ) / + 47 END WHEN 28 THEN NULL ELSE + ( + 17 ) END + + CAST ( NULL AS INTEGER ) * + 99 AS col0
----
7
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-24
SELECT - 0 + 2 + NULLIF ( - + 64, + COUNT( * ) * COUNT( * ) * ( 50 ) + - 95 / - COUNT( * ) ) AS col1
----
-62

skipif mysql # not compatible
query I rowsort label-24
SELECT - 0 + 2 + NULLIF ( - + 64, + COUNT ( * ) * COUNT ( * ) * ( 50 ) + - 95 / - COUNT ( * ) ) AS col1
----
-62

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-25
SELECT + CASE + + CASE 39 WHEN 87 + 30 THEN 0 DIV + CAST( NULL AS SIGNED ) - 58 WHEN 69 THEN ( 35 ) END WHEN - 61 + 79 THEN NULL ELSE - ( ( - 85 ) ) END DIV ( COUNT( * ) )
----
85

skipif mysql # not compatible
query I rowsort label-25
SELECT + CASE + + CASE 39 WHEN 87 + 30 THEN 0 / + CAST ( NULL AS INTEGER ) - 58 WHEN 69 THEN ( 35 ) END WHEN - 61 + 79 THEN NULL ELSE - ( ( - 85 ) ) END / ( COUNT ( * ) )
----
85

onlyif mysql # aggregate syntax: 
query II rowsort label-26
SELECT ALL + 26, 11 - - + ( + NULLIF ( 30, + NULLIF ( COUNT( * ), + 74 * - 99 ) ) ) AS col2
----
26
41

skipif mysql # not compatible
query II rowsort label-26
SELECT ALL + 26, 11 - - + ( + NULLIF ( 30, + NULLIF ( COUNT ( * ), + 74 * - 99 ) ) ) AS col2
----
26
41

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-27
SELECT + 46 - + ( - + CAST( NULL AS SIGNED ) ) + + 14 + + COALESCE ( 48, - COUNT( * ), - COUNT( DISTINCT 94 ) ) / 69 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-27
SELECT + 46 - + ( - + CAST ( NULL AS INTEGER ) ) + + 14 + + COALESCE ( 48, - COUNT ( * ), - COUNT ( DISTINCT 94 ) ) / 69 AS col0
----
NULL

query II rowsort
SELECT + 45, 38 + + 69 AS col2
----
45
107

query II rowsort
SELECT 92 AS col0, - 91 AS col2
----
92
-91

onlyif mysql # DIV for integer division: 
query I rowsort label-30
SELECT - ( + 8 ) DIV - - 32
----
0

skipif mysql # not compatible
query I rowsort label-30
SELECT - ( + 8 ) / - - 32
----
0

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

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

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

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

query I rowsort
SELECT - - 28 * COALESCE ( ( + + 59 ), - 76, 89 + 64 * 0 ) AS col1
----
1652

onlyif mysql # aggregate syntax: 
query I rowsort label-34
SELECT ALL + + NULLIF ( + 37, + ( 67 ) + COUNT( * ) * + + COUNT( * ) ) * - 94
----
-3478

skipif mysql # not compatible
query I rowsort label-34
SELECT ALL + + NULLIF ( + 37, + ( 67 ) + COUNT ( * ) * + + COUNT ( * ) ) * - 94
----
-3478

onlyif mysql # aggregate syntax: 
query I rowsort label-35
SELECT DISTINCT + 64 * - MAX( 96 ) + 20 AS col2
----
-6124

skipif mysql # not compatible
query I rowsort label-35
SELECT DISTINCT + 64 * - MAX ( 96 ) + 20 AS col2
----
-6124

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-36
SELECT ALL + 21 * CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) * + + COUNT( * ) + + - 82 - + 61
----
NULL

skipif mysql # not compatible
query I rowsort label-36
SELECT ALL + 21 * CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) * + + COUNT ( * ) + + - 82 - + 61
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-37
SELECT - SUM( - + 75 ) DIV + 18 AS col2
----
4

skipif mysql # not compatible
query I rowsort label-37
SELECT - SUM ( - + 75 ) / + 18 AS col2
----
4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-38
SELECT - CASE WHEN ( NULL ) IS NOT NULL THEN NULL ELSE - CAST( + + NULLIF ( + + COUNT( * ), - 78 * 48 + 99 ) AS SIGNED ) END AS col1
----
1

skipif mysql # not compatible
query I rowsort label-38
SELECT - CASE WHEN ( NULL ) IS NOT NULL THEN NULL ELSE - CAST ( + + NULLIF ( + + COUNT ( * ), - 78 * 48 + 99 ) AS INTEGER ) END AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-39
SELECT + 61 * - COUNT( * ) * 96 AS col1
----
-5856

skipif mysql # not compatible
query I rowsort label-39
SELECT + 61 * - COUNT ( * ) * 96 AS col1
----
-5856

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-40
SELECT DISTINCT - 85 AS col1, ( CAST( NULL AS SIGNED ) ) / - 57 - - 90 / + - 86 AS col1
----
-85
NULL

skipif mysql # not compatible
query II rowsort label-40
SELECT DISTINCT - 85 AS col1, ( CAST ( NULL AS INTEGER ) ) / - 57 - - 90 / + - 86 AS col1
----
-85
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-41
SELECT DISTINCT - ( 28 ) - - COUNT( * ) AS col0
----
-27

skipif mysql # not compatible
query I rowsort label-41
SELECT DISTINCT - ( 28 ) - - COUNT ( * ) AS col0
----
-27

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

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

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

query I rowsort
SELECT ALL - - 40 - 8 col2
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-45
SELECT COUNT( * ) + + NULLIF ( + ( - 12 ), + 30 + 12 * 99 * + 74 ) AS col1
----
-11

skipif mysql # not compatible
query I rowsort label-45
SELECT COUNT ( * ) + + NULLIF ( + ( - 12 ), + 30 + 12 * 99 * + 74 ) AS col1
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-46
SELECT 27 + - - 98 + COUNT( * ) * - 13 + + + 58 * - + ( + 69 ) AS col1
----
-3890

skipif mysql # not compatible
query I rowsort label-46
SELECT 27 + - - 98 + COUNT ( * ) * - 13 + + + 58 * - + ( + 69 ) AS col1
----
-3890

onlyif mysql # aggregate syntax: 
query I rowsort label-47
SELECT 66 * - MIN( + 93 )
----
-6138

skipif mysql # not compatible
query I rowsort label-47
SELECT 66 * - MIN ( + 93 )
----
-6138

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-48
SELECT 56 + + 25 DIV + NULLIF ( + - 22, - + 34 * - 60 + + COUNT( * ) * + 80 ) AS col1
----
55

skipif mysql # not compatible
query I rowsort label-48
SELECT 56 + + 25 / + NULLIF ( + - 22, - + 34 * - 60 + + COUNT ( * ) * + 80 ) AS col1
----
55

onlyif mysql # DIV for integer division: 
query I rowsort label-49
SELECT DISTINCT 47 DIV 59 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-49
SELECT DISTINCT 47 / 59 AS col1
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-50
SELECT DISTINCT 82 + + COUNT( * ), 20 DIV - - 40 * + - ( - ( 90 ) ) AS col1
----
83
0

skipif mysql # not compatible
query II rowsort label-50
SELECT DISTINCT 82 + + COUNT ( * ), 20 / - - 40 * + - ( - ( 90 ) ) AS col1
----
83
0

onlyif mysql # aggregate syntax: 
query I rowsort label-51
SELECT + 0 * + 76 + COUNT( * ) * + COUNT( * ) + - + 21
----
-20

skipif mysql # not compatible
query I rowsort label-51
SELECT + 0 * + 76 + COUNT ( * ) * + COUNT ( * ) + - + 21
----
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-52
SELECT MAX( 93 ) + + 52
----
145

skipif mysql # not compatible
query I rowsort label-52
SELECT MAX ( 93 ) + + 52
----
145

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

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

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

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

query I rowsort
SELECT ALL 34 + - 51 AS col1
----
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-56
SELECT ALL + 37 + + + 1 - - 3 * COUNT( * ) + - 55 AS col0
----
-14

skipif mysql # not compatible
query I rowsort label-56
SELECT ALL + 37 + + + 1 - - 3 * COUNT ( * ) + - 55 AS col0
----
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-57
SELECT DISTINCT MAX( DISTINCT - 11 ) + + - 80 + + 40
----
-51

skipif mysql # not compatible
query I rowsort label-57
SELECT DISTINCT MAX ( DISTINCT - 11 ) + + - 80 + + 40
----
-51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-58
SELECT ALL - - 22 + + CAST( 59 AS SIGNED ) + + 29 AS col2
----
110

skipif mysql # not compatible
query I rowsort label-58
SELECT ALL - - 22 + + CAST ( 59 AS INTEGER ) + + 29 AS col2
----
110

onlyif mysql # DIV for integer division: 
query I rowsort label-59
SELECT 99 * - 35 + + + 65 DIV ( 66 ) col2
----
-3465

skipif mysql # not compatible
query I rowsort label-59
SELECT 99 * - 35 + + + 65 / ( 66 ) col2
----
-3465

query I rowsort
SELECT DISTINCT - - 74
----
74

query I rowsort
SELECT COALESCE ( + 75, - CASE - ( + 8 ) WHEN - 34 THEN + - 8 WHEN 4 THEN NULL ELSE - 61 END + 64 ) AS col2
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-62
SELECT 43 + + 8 + - 46 * - COUNT( * )
----
97

skipif mysql # not compatible
query I rowsort label-62
SELECT 43 + + 8 + - 46 * - COUNT ( * )
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-63
SELECT + 97 * + 65 * 77 + COUNT( * ) - + COUNT( * ) + - - 67
----
485552

skipif mysql # not compatible
query I rowsort label-63
SELECT + 97 * + 65 * 77 + COUNT ( * ) - + COUNT ( * ) + - - 67
----
485552

onlyif mysql # aggregate syntax: 
query I rowsort label-64
SELECT - COUNT( * ) * - 59 + 78 AS col1
----
137

skipif mysql # not compatible
query I rowsort label-64
SELECT - COUNT ( * ) * - 59 + 78 AS col1
----
137

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-65
SELECT ALL COUNT( + 10 ) - ( + 60 ) + - 76 DIV COUNT( * )
----
-135

skipif mysql # not compatible
query I rowsort label-65
SELECT ALL COUNT ( + 10 ) - ( + 60 ) + - 76 / COUNT ( * )
----
-135

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-68
SELECT DISTINCT - CASE WHEN 48 IN ( - 60, 50, + COALESCE ( 46, - 91 + + 11 ) * - ( + 48 ) ) THEN NULL WHEN NOT COUNT( 74 ) * 99 BETWEEN ( + 2 ) AND ( - 16 * + 47 ) THEN COUNT( * ) END * 26 AS col2
----
-26

skipif mysql # not compatible
query I rowsort label-68
SELECT DISTINCT - CASE WHEN 48 IN ( - 60, 50, + COALESCE ( 46, - 91 + + 11 ) * - ( + 48 ) ) THEN NULL WHEN NOT COUNT ( 74 ) * 99 BETWEEN ( + 2 ) AND ( - 16 * + 47 ) THEN COUNT ( * ) END * 26 AS col2
----
-26

onlyif mysql # aggregate syntax: 
query II rowsort label-69
SELECT MAX( ALL - - 3 ) + - - 52 * - + 1 * + COUNT( * ) AS col0, - 7
----
-49
-7

skipif mysql # not compatible
query II rowsort label-69
SELECT MAX ( ALL - - 3 ) + - - 52 * - + 1 * + COUNT ( * ) AS col0, - 7
----
-49
-7

onlyif mysql # DIV for integer division: 
query I rowsort label-70
SELECT + NULLIF ( 26, 78 ) DIV + 94
----
0

skipif mysql # not compatible
query I rowsort label-70
SELECT + NULLIF ( 26, 78 ) / + 94
----
0

query I rowsort
SELECT ALL - - 38 * 93 col0
----
3534

query I rowsort
SELECT DISTINCT + - 75 * + - 5 - + ( 54 ) col0
----
321

onlyif mysql # aggregate syntax: 
query I rowsort label-73
SELECT MIN( - 31 ) + + - NULLIF ( + 48, - - 29 + + 26 ) + + 24 * - 2 * COUNT( * ) * 27 AS col1
----
-1375

skipif mysql # not compatible
query I rowsort label-73
SELECT MIN ( - 31 ) + + - NULLIF ( + 48, - - 29 + + 26 ) + + 24 * - 2 * COUNT ( * ) * 27 AS col1
----
-1375

onlyif mysql # aggregate syntax: 
query I rowsort label-74
SELECT CASE - ( 17 ) WHEN 76 THEN - 27 WHEN + 88 THEN - 36 + - ( COUNT( + 42 ) ) * - 13 ELSE NULL END + 69 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-74
SELECT CASE - ( 17 ) WHEN 76 THEN - 27 WHEN + 88 THEN - 36 + - ( COUNT ( + 42 ) ) * - 13 ELSE NULL END + 69 AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-75
SELECT 66 DIV 22 DIV 56
----
0

skipif mysql # not compatible
query I rowsort label-75
SELECT 66 / 22 / 56
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-76
SELECT 75 * + NULLIF ( - 63, + ( + 96 ) + + 71 / CAST( NULL AS SIGNED ) ) col2
----
-4725

skipif mysql # not compatible
query I rowsort label-76
SELECT 75 * + NULLIF ( - 63, + ( + 96 ) + + 71 / CAST ( NULL AS INTEGER ) ) col2
----
-4725

query II rowsort
SELECT 43 AS col1, 58 * 1
----
43
58

onlyif mysql # aggregate syntax: 
query I rowsort label-78
SELECT 65 * + SUM( 7 ) col2
----
455

skipif mysql # not compatible
query I rowsort label-78
SELECT 65 * + SUM ( 7 ) col2
----
455

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-79
SELECT ALL 95 * - 74 * - + MIN( DISTINCT + CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-79
SELECT ALL 95 * - 74 * - + MIN ( DISTINCT + CAST ( NULL AS INTEGER ) )
----
NULL

query I rowsort
SELECT DISTINCT - 30 + 75 AS col0
----
45

onlyif mysql # aggregate syntax: 
query II rowsort label-81
SELECT ALL 41 + 57 + + 41, + COUNT( NULLIF ( + - 76, - + 59 ) ) * + - 41 + + COUNT( * ) AS col1
----
139
-40

skipif mysql # not compatible
query II rowsort label-81
SELECT ALL 41 + 57 + + 41, + COUNT ( NULLIF ( + - 76, - + 59 ) ) * + - 41 + + COUNT ( * ) AS col1
----
139
-40

query I rowsort
SELECT ALL 59 * 18
----
1062

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

skipif mysql # not compatible
query II rowsort label-83
SELECT - 82 AS col1, COUNT ( * )
----
-82
1

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

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

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

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

query I rowsort
SELECT 81 * - + 21
----
-1701

query I rowsort
SELECT ALL 52 * + 95 * 84 + + ( NULLIF ( + + 71, + 90 ) ) AS col2
----
415031

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-89
SELECT ALL + 13 * COUNT( * ) + - ( - + ( 98 ) ) + - ( - 16 ) col1
----
127

skipif mysql # not compatible
query I rowsort label-89
SELECT ALL + 13 * COUNT ( * ) + - ( - + ( 98 ) ) + - ( - 16 ) col1
----
127

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

query I rowsort
SELECT COALESCE ( + 20, + 88 * - 76 ) * 8 * + 40 AS col0
----
6400

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

skipif mysql # not compatible
query I rowsort label-92
SELECT ALL COUNT ( * ) * 85 * - 85 AS col1
----
-7225

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-93
SELECT 79 + 76 + - - 78 - + 24 + + 76 - + - 88 + + - MIN( DISTINCT + 37 ) DIV 10 * + 54 AS col2
----
211

skipif mysql # not compatible
query I rowsort label-93
SELECT 79 + 76 + - - 78 - + 24 + + 76 - + - 88 + + - MIN ( DISTINCT + 37 ) / 10 * + 54 AS col2
----
211

onlyif mysql # aggregate syntax: 
query II rowsort label-94
SELECT DISTINCT 40 * ( - MAX( 56 ) ) + + 22 + - - 63, + 48 + + - COUNT( * ) * 3 AS col2
----
-2155
45

skipif mysql # not compatible
query II rowsort label-94
SELECT DISTINCT 40 * ( - MAX ( 56 ) ) + + 22 + - - 63, + 48 + + - COUNT ( * ) * 3 AS col2
----
-2155
45

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-95
SELECT ALL - + ( 83 ) * + MAX( DISTINCT + 45 ) - 94 * + - 93 * + 74 / 57 + CASE + 9 + 15 WHEN - 91 THEN - 74 WHEN + 25 + + CAST( + 83 AS SIGNED ) THEN - COUNT( * ) * - 24 + 15 ELSE AVG ( ALL - CASE 38 WHEN 9 THEN - COALESCE ( 57, 36 ) WHEN 90 THEN NULL END ) + CAST( - 35 AS SIGNED ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-95
SELECT ALL - + ( 83 ) * + MAX ( DISTINCT + 45 ) - 94 * + - 93 * + 74 / 57 + CASE + 9 + 15 WHEN - 91 THEN - 74 WHEN + 25 + + CAST ( + 83 AS INTEGER ) THEN - COUNT ( * ) * - 24 + 15 ELSE AVG ( ALL - CASE 38 WHEN 9 THEN - COALESCE ( 57, 36 ) WHEN 90 THEN NULL END ) + CAST ( - 35 AS INTEGER ) END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-96
SELECT - ( COUNT( * ) ) * + 63 col2, + 94 - - COUNT( + ( - 81 ) )
----
-63
95

skipif mysql # not compatible
query II rowsort label-96
SELECT - ( COUNT ( * ) ) * + 63 col2, + 94 - - COUNT ( + ( - 81 ) )
----
-63
95

query I rowsort
SELECT 17 * - 55 - + 52 - + - 52 AS col1
----
-935

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-98
SELECT ALL + 81 * + 79 * - CAST( - 6 AS SIGNED )
----
38394

skipif mysql # not compatible
query I rowsort label-98
SELECT ALL + 81 * + 79 * - CAST ( - 6 AS INTEGER )
----
38394

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

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

query I rowsort
SELECT DISTINCT + 65 - 64 AS col0
----
1

query I rowsort
SELECT DISTINCT 52 * - + 29
----
-1508

onlyif mysql # aggregate syntax: 
query I rowsort label-102
SELECT ALL - + 2 - - + 61 * - 38 - + 84 - + + COUNT( * )
----
-2405

skipif mysql # not compatible
query I rowsort label-102
SELECT ALL - + 2 - - + 61 * - 38 - + 84 - + + COUNT ( * )
----
-2405

onlyif mysql # aggregate syntax: 
query I rowsort label-103
SELECT ALL + COUNT( * ) * + 6 * + 17 col1
----
102

skipif mysql # not compatible
query I rowsort label-103
SELECT ALL + COUNT ( * ) * + 6 * + 17 col1
----
102

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

skipif mysql # not compatible
query I rowsort label-104
SELECT DISTINCT + ( + + SUM ( DISTINCT - CAST ( NULL AS REAL ) ) )
----
NULL

query I rowsort
SELECT + - 52 - + 55 AS col0
----
-107

query I rowsort
SELECT ALL + - 53
----
-53

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

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

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

skipif mysql # not compatible
query I rowsort label-108
SELECT - COUNT ( * ) / - 4 AS col2
----
0

query I rowsort
SELECT ALL - 16 * - - 68
----
-1088

query I rowsort
SELECT + 13 * + 39 col1
----
507

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-111
SELECT DISTINCT NULLIF ( + 58, + 45 * + ( - MIN( - 34 ) ) ) DIV 32 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-111
SELECT DISTINCT NULLIF ( + 58, + 45 * + ( - MIN ( - 34 ) ) ) / 32 AS col1
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-112
SELECT ALL - 43 + + 75 col2, - COALESCE ( + - MAX( 9 ), + COUNT( * ) * - COUNT( * ), 73 ) AS col1
----
32
9

skipif mysql # not compatible
query II rowsort label-112
SELECT ALL - 43 + + 75 col2, - COALESCE ( + - MAX ( 9 ), + COUNT ( * ) * - COUNT ( * ), 73 ) AS col1
----
32
9

onlyif mysql # aggregate syntax: 
query I rowsort label-113
SELECT - 7 - COUNT( * )
----
-8

skipif mysql # not compatible
query I rowsort label-113
SELECT - 7 - COUNT ( * )
----
-8

query I rowsort
SELECT ALL + 16 * - 60 col1
----
-960

query I rowsort
SELECT DISTINCT - 62 + - ( 62 ) + + 70
----
-54

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-116
SELECT ALL CASE + COUNT( * ) WHEN + 94 THEN NULL WHEN + 79 DIV 44 THEN - 98 ELSE - 9 + + 46 END AS col2
----
-98

skipif mysql # not compatible
query I rowsort label-116
SELECT ALL CASE + COUNT ( * ) WHEN + 94 THEN NULL WHEN + 79 / 44 THEN - 98 ELSE - 9 + + 46 END AS col2
----
-98

query I rowsort
SELECT ALL - 17 + - 35 + + 1 AS col1
----
-51

onlyif mysql # aggregate syntax: 
query II rowsort label-118
SELECT ALL - 44 + - 46, 48 * + - 73 * + ( NULLIF ( COUNT( * ), COUNT( * ) + - AVG ( ALL 15 ) + + 72 * + 49 ) ) + ( + COUNT( * ) ) AS col2
----
-90
-3503

skipif mysql # not compatible
query II rowsort label-118
SELECT ALL - 44 + - 46, 48 * + - 73 * + ( NULLIF ( COUNT ( * ), COUNT ( * ) + - AVG ( ALL 15 ) + + 72 * + 49 ) ) + ( + COUNT ( * ) ) AS col2
----
-90
-3503

query I rowsort
SELECT + 71 + + 49 + + - COALESCE ( + 39, + ( 34 ) + - + 85 ) + + 91 col2
----
172

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-120
SELECT - ( + + 91 ) * COALESCE ( + - 28, + + 46, COALESCE ( - COALESCE ( 0, 27 + 8 ), + 39, - 29 DIV + NULLIF ( - ( 74 ), MAX( 19 ) ) ) ) AS col2
----
2548

skipif mysql # not compatible
query I rowsort label-120
SELECT - ( + + 91 ) * COALESCE ( + - 28, + + 46, COALESCE ( - COALESCE ( 0, 27 + 8 ), + 39, - 29 / + NULLIF ( - ( 74 ), MAX ( 19 ) ) ) ) AS col2
----
2548

query I rowsort
SELECT ALL CASE + - 67 WHEN - 95 THEN - 76 * 64 END AS col2
----
NULL

query I rowsort
SELECT ALL - 17 + - 95
----
-112

onlyif mysql # aggregate syntax: 
query I rowsort label-123
SELECT - 24 + - 69 * + - 28 + - 51 * - - 35 * + SUM( DISTINCT - 4 ) AS col2
----
9048

skipif mysql # not compatible
query I rowsort label-123
SELECT - 24 + - 69 * + - 28 + - 51 * - - 35 * + SUM ( DISTINCT - 4 ) AS col2
----
9048

query I rowsort
SELECT - ( - 29 ) + - 19 + + - 3 * 1
----
7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-125
SELECT ALL + 81 + + CASE - 80 WHEN MAX( ALL + 13 ) * - + 88 * COUNT( DISTINCT 67 ) THEN + 47 * + COUNT( * ) WHEN + COUNT( * ) * - 52 THEN NULL END / - CASE 85 WHEN - SUM( + 5 ) * + 22 THEN COUNT( ALL + CAST( - 61 AS SIGNED ) ) + 85 ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-125
SELECT ALL + 81 + + CASE - 80 WHEN MAX ( ALL + 13 ) * - + 88 * COUNT ( DISTINCT 67 ) THEN + 47 * + COUNT ( * ) WHEN + COUNT ( * ) * - 52 THEN NULL END / - CASE 85 WHEN - SUM ( + 5 ) * + 22 THEN COUNT ( ALL + CAST ( - 61 AS INTEGER ) ) + 85 ELSE NULL END AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-126
SELECT ALL + 45 + + CAST( - 71 AS SIGNED ) AS col0
----
-26

skipif mysql # not compatible
query I rowsort label-126
SELECT ALL + 45 + + CAST ( - 71 AS INTEGER ) AS col0
----
-26

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-128
SELECT ALL 88 + - - 56 DIV + 79 AS col1
----
88

skipif mysql # not compatible
query I rowsort label-128
SELECT ALL 88 + - - 56 / + 79 AS col1
----
88

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-129
SELECT - MIN( + 74 ) + - COUNT( * ) + - 41 - 54 + + + ( + COUNT( * ) ) + - 21 + - - CAST( NULL AS SIGNED ) * ( - COUNT( * ) ) * + 46
----
NULL

skipif mysql # not compatible
query I rowsort label-129
SELECT - MIN ( + 74 ) + - COUNT ( * ) + - 41 - 54 + + + ( + COUNT ( * ) ) + - 21 + - - CAST ( NULL AS INTEGER ) * ( - COUNT ( * ) ) * + 46
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-130
SELECT ALL NULLIF ( - 86, + 82 + + COUNT( * ) ) AS col0
----
-86

skipif mysql # not compatible
query I rowsort label-130
SELECT ALL NULLIF ( - 86, + 82 + + COUNT ( * ) ) AS col0
----
-86

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

onlyif mysql # aggregate syntax: 
query I rowsort label-132
SELECT DISTINCT + MIN( - + 73 )
----
-73

skipif mysql # not compatible
query I rowsort label-132
SELECT DISTINCT + MIN ( - + 73 )
----
-73

query I rowsort
SELECT - COALESCE ( NULLIF ( - 32, 98 ), + 33 * 54, 50 ) * + 21 + 24 AS col2
----
696

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-135
SELECT - + 22 + 25 + + 49 + 74 - - + 48 * - SUM( CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-135
SELECT - + 22 + 25 + + 49 + 74 - - + 48 * - SUM ( CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-136
SELECT - - COUNT( * ) * 50 * + SUM( DISTINCT + 73 ) - + + 77 + COUNT( * ) + 20 DIV - - 24
----
3574

skipif mysql # not compatible
query I rowsort label-136
SELECT - - COUNT ( * ) * 50 * + SUM ( DISTINCT + 73 ) - + + 77 + COUNT ( * ) + 20 / - - 24
----
3574

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-137
SELECT CASE + + 95 WHEN + - NULLIF ( - 62, 70 + ( 18 ) ) THEN - COALESCE ( + - 20, CASE NULLIF ( + NULLIF ( - 78, 2 + - MIN( + 85 ) / + 66 ), + 66 ) WHEN 61 / - CASE - 62 * 14 WHEN + CASE - CAST( + 87 AS DECIMAL ) WHEN 43 * COUNT( 24 ) THEN 80 END / CAST( MAX( ALL 37 ) AS SIGNED ) THEN NULL WHEN - 57 * 97 THEN NULL WHEN - CASE + 47 WHEN - 25 * - NULLIF ( 53 * + AVG ( + 52 ), + 78 * - 31 ) - SUM( ALL 21 ) THEN CAST( NULL AS SIGNED ) * 45 WHEN 26 THEN NULL ELSE NULL END + COALESCE ( 44, ( - 45 ) ) * + 19 THEN 26 ELSE NULL END THEN + 52 ELSE NULL END + - 63 ) / + COALESCE ( 20 / - 40 + 11, + 59 ) WHEN COUNT( * ) * - 48 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-137
SELECT CASE + + 95 WHEN + - NULLIF ( - 62, 70 + ( 18 ) ) THEN - COALESCE ( + - 20, CASE NULLIF ( + NULLIF ( - 78, 2 + - MIN ( + 85 ) / + 66 ), + 66 ) WHEN 61 / - CASE - 62 * 14 WHEN + CASE - CAST ( + 87 AS REAL ) WHEN 43 * COUNT ( 24 ) THEN 80 END / CAST ( MAX ( ALL 37 ) AS INTEGER ) THEN NULL WHEN - 57 * 97 THEN NULL WHEN - CASE + 47 WHEN - 25 * - NULLIF ( 53 * + AVG ( + 52 ), + 78 * - 31 ) - SUM ( ALL 21 ) THEN CAST ( NULL AS INTEGER ) * 45 WHEN 26 THEN NULL ELSE NULL END + COALESCE ( 44, ( - 45 ) ) * + 19 THEN 26 ELSE NULL END THEN + 52 ELSE NULL END + - 63 ) / + COALESCE ( 20 / - 40 + 11, + 59 ) WHEN COUNT ( * ) * - 48 THEN NULL END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-138
SELECT ALL - 61 DIV - 26 - + 25 + 24 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-138
SELECT ALL - 61 / - 26 - + 25 + 24 AS col1
----
1

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

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-140
SELECT - CAST( - ( 38 ) AS SIGNED ) * + 83 + - CAST( NULL AS DECIMAL ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-140
SELECT - CAST ( - ( 38 ) AS INTEGER ) * + 83 + - CAST ( NULL AS REAL ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-141
SELECT ALL + MAX( DISTINCT 87 ) col2, + 52 * - 91 + 88 * 49
----
87
-420

skipif mysql # not compatible
query II rowsort label-141
SELECT ALL + MAX ( DISTINCT 87 ) col2, + 52 * - 91 + 88 * 49
----
87
-420

query I rowsort
SELECT + 12 + + - 96 AS col2
----
-84

onlyif mysql # DIV for integer division: 
query I rowsort label-143
SELECT - 51 DIV + - 85
----
0

skipif mysql # not compatible
query I rowsort label-143
SELECT - 51 / + - 85
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-144
SELECT + + 89 DIV + - 22 + 68 + - 48 * + 32
----
-1472

skipif mysql # not compatible
query I rowsort label-144
SELECT + + 89 / + - 22 + 68 + - 48 * + 32
----
-1472

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-145
SELECT + + CASE - 92 WHEN + COUNT( * ) THEN CAST( - ( + - 18 ) AS DECIMAL ) WHEN 35 * 17 + + + 74 THEN - 36 + 74 END + 75 * 10 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-145
SELECT + + CASE - 92 WHEN + COUNT ( * ) THEN CAST ( - ( + - 18 ) AS REAL ) WHEN 35 * 17 + + + 74 THEN - 36 + 74 END + 75 * 10 AS col2
----
NULL

query I rowsort
SELECT DISTINCT 0 * - - 30 col0
----
0

query I rowsort
SELECT 3 * + - 68 + - - 3 AS col1
----
-201

query I rowsort
SELECT + 43 - + + 77 * + 6 AS col2
----
-419

onlyif mysql # aggregate syntax: 
query I rowsort label-149
SELECT - 96 * + COUNT( * ) * - + 96 + - AVG ( - 49 ) + - 95 * + 67 * - - COUNT( * ) * + + CASE + 60 WHEN 23 * + ( + 8 * 73 ) THEN 71 WHEN 57 THEN NULL END * 52 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-149
SELECT - 96 * + COUNT ( * ) * - + 96 + - AVG ( - 49 ) + - 95 * + 67 * - - COUNT ( * ) * + + CASE + 60 WHEN 23 * + ( + 8 * 73 ) THEN 71 WHEN 57 THEN NULL END * 52 AS col1
----
NULL

query I rowsort
SELECT ALL 84 * + 54
----
4536

query I rowsort
SELECT + 90 * - + 35
----
-3150

query I rowsort
SELECT ALL + 40 * + + 89 + 0 * - 27 AS col1
----
3560

onlyif mysql # aggregate syntax: 
query I rowsort label-153
SELECT + COUNT( * ) + - 26
----
-25

skipif mysql # not compatible
query I rowsort label-153
SELECT + COUNT ( * ) + - 26
----
-25

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

onlyif mysql # aggregate syntax: 
query II rowsort label-155
SELECT ALL 2, + COUNT( * ) * - 98 * - 52 col1
----
2
5096

skipif mysql # not compatible
query II rowsort label-155
SELECT ALL 2, + COUNT ( * ) * - 98 * - 52 col1
----
2
5096

query I rowsort
SELECT ALL ( - 10 ) * - 8 + - - 93 AS col0
----
173

query I rowsort
SELECT ALL 66 + + + 10 AS col1
----
76

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

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

query I rowsort
SELECT - 36 + - 42 + + - ( + 45 ) * 62 AS col0
----
-2868

onlyif mysql # DIV for integer division: 
query I rowsort label-160
SELECT - 53 + + 29 + + + 77 * + - 73 + + 88 * 98 DIV - - 49 AS col1
----
-5469

skipif mysql # not compatible
query I rowsort label-160
SELECT - 53 + + 29 + + + 77 * + - 73 + + 88 * 98 / - - 49 AS col1
----
-5469

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-161
SELECT + NULLIF ( - 81, - - MAX( DISTINCT - - ( 36 ) ) ) * + + COUNT( * ) * - + 6 + + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-161
SELECT + NULLIF ( - 81, - - MAX ( DISTINCT - - ( 36 ) ) ) * + + COUNT ( * ) * - + 6 + + - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT - 30 + + - 81 AS col2
----
-111

query I rowsort
SELECT DISTINCT + 67 + 40
----
107

query I rowsort
SELECT ALL - 13 + - ( + 39 ) col1
----
-52

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-167
SELECT - CAST( + 6 AS SIGNED ) * + + 68
----
-408

skipif mysql # not compatible
query I rowsort label-167
SELECT - CAST ( + 6 AS INTEGER ) * + + 68
----
-408

query I rowsort
SELECT DISTINCT + 41 * - 47
----
-1927

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-169
SELECT DISTINCT COUNT( * ) - - COALESCE ( - ( 5 ), - + 15 DIV 98 + 23 ) * - 86 AS col1
----
431

skipif mysql # not compatible
query I rowsort label-169
SELECT DISTINCT COUNT ( * ) - - COALESCE ( - ( 5 ), - + 15 / 98 + 23 ) * - 86 AS col1
----
431

query I rowsort
SELECT ALL 76 - - 97 AS col1
----
173

onlyif mysql # DIV for integer division: 
query I rowsort label-171
SELECT ALL + 6 - - - 27 + - 74 DIV + 33
----
-23

skipif mysql # not compatible
query I rowsort label-171
SELECT ALL + 6 - - - 27 + - 74 / + 33
----
-23

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

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

query III rowsort
SELECT DISTINCT - 6, 94 + + 86 col0, + + 86 AS col1
----
-6
180
86

query I rowsort
SELECT - - 20 * + + 12 col2
----
240

onlyif mysql # aggregate syntax: 
query II rowsort label-175
SELECT DISTINCT + 82 col0, MAX( 60 ) * 13 AS col2
----
82
780

skipif mysql # not compatible
query II rowsort label-175
SELECT DISTINCT + 82 col0, MAX ( 60 ) * 13 AS col2
----
82
780

query I rowsort
SELECT - 56 * - 9 AS col1
----
504

query I rowsort
SELECT ALL + - 25 col2
----
-25

query I rowsort
SELECT - 69 - 57
----
-126

query I rowsort
SELECT + 92 * - 29
----
-2668

onlyif mysql # DIV for integer division: 
query II rowsort label-180
SELECT ALL - + ( - ( + 50 ) ) col2, ( + + 14 ) DIV 7 + + + 63 * + 66 AS col0
----
50
4160

skipif mysql # not compatible
query II rowsort label-180
SELECT ALL - + ( - ( + 50 ) ) col2, ( + + 14 ) / 7 + + + 63 * + 66 AS col0
----
50
4160

query I rowsort
SELECT DISTINCT + ( 94 ) * - - 43 + + - 47 * - + 96 AS col2
----
8554

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-184
SELECT - CAST( - 21 AS SIGNED ) * + 43
----
903

skipif mysql # not compatible
query I rowsort label-184
SELECT - CAST ( - 21 AS INTEGER ) * + 43
----
903

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-185
SELECT + 2 * - + NULLIF ( COALESCE ( 80, 25 ), 99 ) + - COUNT( * ) - - - 42 / - 23 + 81 * CAST( NULL AS DECIMAL ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-185
SELECT + 2 * - + NULLIF ( COALESCE ( 80, 25 ), 99 ) + - COUNT ( * ) - - - 42 / - 23 + 81 * CAST ( NULL AS REAL ) AS col1
----
NULL

query I rowsort
SELECT DISTINCT 97 * + 73 - 56 AS col1
----
7025

query I rowsort
SELECT DISTINCT + 11 * + - 43 col2
----
-473

onlyif mysql # aggregate syntax: 
query I rowsort label-188
SELECT ALL 11 + - MIN( DISTINCT - 14 )
----
25

skipif mysql # not compatible
query I rowsort label-188
SELECT ALL 11 + - MIN ( DISTINCT - 14 )
----
25

query II rowsort
SELECT DISTINCT - + 50, + 97 * 29 + 64 AS col2
----
-50
2877

query II rowsort
SELECT 59, 81 + - 69 AS col1
----
59
12

query II rowsort
SELECT ALL - 10, + 90 col0
----
-10
90

query II rowsort
SELECT + 1, - 33 col0
----
1
-33

onlyif mysql # DIV for integer division: 
query I rowsort label-193
SELECT 81 DIV - 29
----
-2

skipif mysql # not compatible
query I rowsort label-193
SELECT 81 / - 29
----
-2

query I rowsort
SELECT 52 - 35 + - 27
----
-10

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

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

query II rowsort
SELECT + 56 AS col2, + ( 42 ) AS col0
----
56
42

query I rowsort
SELECT ALL 42 + + 87
----
129

onlyif mysql # aggregate syntax: 
query I rowsort label-198
SELECT + COUNT( * ) * - 87 - - 8 + - ( - 22 )
----
-57

skipif mysql # not compatible
query I rowsort label-198
SELECT + COUNT ( * ) * - 87 - - 8 + - ( - 22 )
----
-57

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

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

query I rowsort
SELECT ALL 18 * - - 86
----
1548

onlyif mysql # DIV for integer division: 
query I rowsort label-201
SELECT 71 DIV 52 * - 62
----
-62

skipif mysql # not compatible
query I rowsort label-201
SELECT 71 / 52 * - 62
----
-62

onlyif mysql # DIV for integer division: 
query I rowsort label-202
SELECT 7 DIV + 98
----
0

skipif mysql # not compatible
query I rowsort label-202
SELECT 7 / + 98
----
0

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-204
SELECT ALL COUNT( * ) + + CAST( 29 AS SIGNED ) * 49 + - CASE - 98 WHEN - 1 + 5 * + + 38 / - 87 * - 31 / COUNT( * ) + 98 THEN 8 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-204
SELECT ALL COUNT ( * ) + + CAST ( 29 AS INTEGER ) * 49 + - CASE - 98 WHEN - 1 + 5 * + + 38 / - 87 * - 31 / COUNT ( * ) + 98 THEN 8 END AS col1
----
NULL

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

skipif mysql # not compatible
query I rowsort label-205
SELECT DISTINCT 41 - - CAST ( NULL AS INTEGER ) + + 9
----
NULL

query II rowsort
SELECT 78 AS col0, + 64 AS col1
----
78
64

query I rowsort
SELECT DISTINCT - 0 - 99 + - NULLIF ( 18, - 87 - + 89 ) AS col0
----
-117

query I rowsort
SELECT 80 + + - ( - + 87 ) + - 54 * - + 23 + + 3 AS col2
----
1412

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-209
SELECT CASE - - 7 WHEN - + 83 THEN - 63 * - - 37 ELSE NULL END * - + 19 * 99 * 40 + + COUNT( * ), + 34 + - - NULLIF ( - COALESCE ( CAST( NULL AS SIGNED ), + 85 * 87, - COALESCE ( 71, + COUNT( * ) ) ), - 56 ) + - 14 * COUNT( * ) AS col2
----
NULL
-7375

skipif mysql # not compatible
query II rowsort label-209
SELECT CASE - - 7 WHEN - + 83 THEN - 63 * - - 37 ELSE NULL END * - + 19 * 99 * 40 + + COUNT ( * ), + 34 + - - NULLIF ( - COALESCE ( CAST ( NULL AS INTEGER ), + 85 * 87, - COALESCE ( 71, + COUNT ( * ) ) ), - 56 ) + - 14 * COUNT ( * ) AS col2
----
NULL
-7375

query II rowsort
SELECT ALL 89 AS col2, - 2 AS col2
----
89
-2

query I rowsort
SELECT 33 + + - 62 AS col2
----
-29

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-212
SELECT - CAST( NULL AS DECIMAL ) + NULLIF ( CAST( NULL AS SIGNED ), 9 ) + + CAST( + 26 AS DECIMAL ) - + - 48 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-212
SELECT - CAST ( NULL AS REAL ) + NULLIF ( CAST ( NULL AS INTEGER ), 9 ) + + CAST ( + 26 AS REAL ) - + - 48 AS col0
----
NULL

query II rowsort
SELECT DISTINCT + 38 AS col1, - 4 * 78 * + 99 - + + 69
----
38
-30957

query I rowsort
SELECT - 31 + 81
----
50

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-215
SELECT + COALESCE ( - COUNT( * ), - 39 * + 73 * + + 0 + + 10 ) DIV + 34 + + ( + COUNT( * ) )
----
1

skipif mysql # not compatible
query I rowsort label-215
SELECT + COALESCE ( - COUNT ( * ), - 39 * + 73 * + + 0 + + 10 ) / + 34 + + ( + COUNT ( * ) )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-216
SELECT DISTINCT - MIN( ALL - 10 ) * + + 84 - + - 12 + 41 + 66 + + - NULLIF ( + 70, - + 70 + - 15 ) * - 47 - 37 * + ( + MIN( + 49 ) )
----
2436

skipif mysql # not compatible
query I rowsort label-216
SELECT DISTINCT - MIN ( ALL - 10 ) * + + 84 - + - 12 + 41 + 66 + + - NULLIF ( + 70, - + 70 + - 15 ) * - 47 - 37 * + ( + MIN ( + 49 ) )
----
2436

onlyif mysql # DIV for integer division: 
query I rowsort label-217
SELECT DISTINCT 19 DIV - - 73 + + 84
----
84

skipif mysql # not compatible
query I rowsort label-217
SELECT DISTINCT 19 / - - 73 + + 84
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-218
SELECT ALL - CASE + + 84 WHEN 50 THEN - CASE - COUNT( * ) WHEN 51 THEN + 22 * + + MAX( + 78 ) + - + 24 - - - 33 ELSE NULL END WHEN - 37 THEN NULL WHEN 86 / - 66 THEN NULL ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-218
SELECT ALL - CASE + + 84 WHEN 50 THEN - CASE - COUNT ( * ) WHEN 51 THEN + 22 * + + MAX ( + 78 ) + - + 24 - - - 33 ELSE NULL END WHEN - 37 THEN NULL WHEN 86 / - 66 THEN NULL ELSE NULL END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-219
SELECT ALL + COUNT( * ) AS col0, + 81 - - + 39
----
1
120

skipif mysql # not compatible
query II rowsort label-219
SELECT ALL + COUNT ( * ) AS col0, + 81 - - + 39
----
1
120

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-221
SELECT 79 * - NULLIF ( + 17, - 30 ) + 85 + + 27, + COUNT( * ) AS col0
----
-1231
1

skipif mysql # not compatible
query II rowsort label-221
SELECT 79 * - NULLIF ( + 17, - 30 ) + 85 + + 27, + COUNT ( * ) AS col0
----
-1231
1

query I rowsort
SELECT ALL + + 66 * + 70 AS col1
----
4620

onlyif mysql # aggregate syntax: 
query I rowsort label-223
SELECT ALL - + COALESCE ( + + 46, - 5, 4 - 54 + + 17 * COALESCE ( - + 76, 6 ) * 82 + - 34 ) + + CASE - ( + ( - 20 ) ) WHEN - NULLIF ( MAX( - 9 ), - 11 ) + + 28 THEN 61 + 52 END
----
NULL

skipif mysql # not compatible
query I rowsort label-223
SELECT ALL - + COALESCE ( + + 46, - 5, 4 - 54 + + 17 * COALESCE ( - + 76, 6 ) * 82 + - 34 ) + + CASE - ( + ( - 20 ) ) WHEN - NULLIF ( MAX ( - 9 ), - 11 ) + + 28 THEN 61 + 52 END
----
NULL

query II rowsort
SELECT + 6, 48 AS col2
----
6
48

onlyif mysql # aggregate syntax: 
query II rowsort label-225
SELECT ALL - COUNT( DISTINCT 53 ) col1, 45 * - + 83 * 34 col2
----
-1
-126990

skipif mysql # not compatible
query II rowsort label-225
SELECT ALL - COUNT ( DISTINCT 53 ) col1, 45 * - + 83 * 34 col2
----
-1
-126990

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-226
SELECT + 56 * + 65 * ( 17 ) + + - 62 * - CAST( - + COUNT( * ) AS SIGNED ) AS col1
----
61818

skipif mysql # not compatible
query I rowsort label-226
SELECT + 56 * + 65 * ( 17 ) + + - 62 * - CAST ( - + COUNT ( * ) AS INTEGER ) AS col1
----
61818

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-227
SELECT ALL - 81 + + 12 DIV - 61 + + COUNT( * )
----
-80

skipif mysql # not compatible
query I rowsort label-227
SELECT ALL - 81 + + 12 / - 61 + + COUNT ( * )
----
-80

query I rowsort
SELECT ALL - 18 + - 12
----
-30

onlyif mysql # aggregate syntax: 
query II rowsort label-229
SELECT + 40 AS col2, - MAX( - 17 )
----
40
17

skipif mysql # not compatible
query II rowsort label-229
SELECT + 40 AS col2, - MAX ( - 17 )
----
40
17

query I rowsort
SELECT ALL - - 78 + + ( - - 94 )
----
172

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-231
SELECT DISTINCT - - CASE + COUNT( ALL + - 90 ) WHEN 49 THEN + + 21 END + + 64 + CAST( + + CASE - 65 WHEN + 13 + + 34 * - 28 THEN - 99 * 62 WHEN 19 * COUNT( * ) THEN 29 + ( + CAST( NULL AS SIGNED ) ) * + 60 END AS SIGNED ) * 74 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-231
SELECT DISTINCT - - CASE + COUNT ( ALL + - 90 ) WHEN 49 THEN + + 21 END + + 64 + CAST ( + + CASE - 65 WHEN + 13 + + 34 * - 28 THEN - 99 * 62 WHEN 19 * COUNT ( * ) THEN 29 + ( + CAST ( NULL AS INTEGER ) ) * + 60 END AS INTEGER ) * 74 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-232
SELECT ALL + COUNT( - 89 ) * - - CASE 32 WHEN + MAX( + 9 ) THEN + 45 WHEN + 10 THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-232
SELECT ALL + COUNT ( - 89 ) * - - CASE 32 WHEN + MAX ( + 9 ) THEN + 45 WHEN + 10 THEN NULL ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-233
SELECT + COUNT( * ) * + CAST( + MAX( ALL + 72 ) AS SIGNED ) + - 44 AS col0
----
28

skipif mysql # not compatible
query I rowsort label-233
SELECT + COUNT ( * ) * + CAST ( + MAX ( ALL + 72 ) AS INTEGER ) + - 44 AS col0
----
28

query I rowsort
SELECT DISTINCT + 12 + + - COALESCE ( 9, 29 * - - ( + 24 ) + - 21 + - 89 * + 1 + 72, 58 )
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-235
SELECT DISTINCT + MAX( - 60 ) + COUNT( * )
----
-59

skipif mysql # not compatible
query I rowsort label-235
SELECT DISTINCT + MAX ( - 60 ) + COUNT ( * )
----
-59

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-237
SELECT 62 + - 21 col1, - CASE 38 WHEN - 10 THEN + - 19 * - 27 WHEN 3 DIV 73 + + 16 * - + 9 THEN + COALESCE ( 19, NULLIF ( MIN( DISTINCT CAST( NULL AS SIGNED ) ), COUNT( * ) - ( + NULLIF ( - AVG ( 88 ), 51 * - 64 ) ) ), + NULLIF ( 86, CAST( NULL AS SIGNED ) ) * + SUM( DISTINCT + CAST( NULL AS SIGNED ) DIV + CAST( NULL AS SIGNED ) ) ) ELSE + COUNT( 13 ) + 25 END * + COUNT( * ) AS col0
----
41
-26

skipif mysql # not compatible
query II rowsort label-237
SELECT 62 + - 21 col1, - CASE 38 WHEN - 10 THEN + - 19 * - 27 WHEN 3 / 73 + + 16 * - + 9 THEN + COALESCE ( 19, NULLIF ( MIN ( DISTINCT CAST ( NULL AS INTEGER ) ), COUNT ( * ) - ( + NULLIF ( - AVG ( 88 ), 51 * - 64 ) ) ), + NULLIF ( 86, CAST ( NULL AS INTEGER ) ) * + SUM ( DISTINCT + CAST ( NULL AS INTEGER ) / + CAST ( NULL AS INTEGER ) ) ) ELSE + COUNT ( 13 ) + 25 END * + COUNT ( * ) AS col0
----
41
-26

query I rowsort
SELECT + 6 * - - 64 - 29 * 10 AS col2
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-239
SELECT COUNT( * ) - - - 67 + + 91 * - 66 col0
----
-6072

skipif mysql # not compatible
query I rowsort label-239
SELECT COUNT ( * ) - - - 67 + + 91 * - 66 col0
----
-6072

onlyif mysql # aggregate syntax: 
query I rowsort label-240
SELECT DISTINCT + 13 + COALESCE ( + - 7, 26, 32 + + + 51 + - + COUNT( * ) + 43 )
----
6

skipif mysql # not compatible
query I rowsort label-240
SELECT DISTINCT + 13 + COALESCE ( + - 7, 26, 32 + + + 51 + - + COUNT ( * ) + 43 )
----
6

query I rowsort
SELECT ALL - 85 * + - 96 AS col2
----
8160

query I rowsort
SELECT ALL - COALESCE ( 86, + - NULLIF ( 98, + 55 ) ) AS col2
----
-86

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

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

query II rowsort
SELECT 6 + 2 * + 39 + - 88 + 87 AS col2, 90
----
83
90

query II rowsort
SELECT 77 * - 81 AS col2, 42 + - 97
----
-6237
-55

query I rowsort
SELECT - 5 * 38 + - ( 8 ) AS col1
----
-198

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

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

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

skipif mysql # not compatible
query I rowsort label-248
SELECT 25 * COUNT ( * )
----
25

onlyif mysql # DIV for integer division: 
query I rowsort label-249
SELECT ALL 29 DIV - ( - 90 ) col0
----
0

skipif mysql # not compatible
query I rowsort label-249
SELECT ALL 29 / - ( - 90 ) col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-250
SELECT ALL + 98 * + 16 + + 20 + 4 + COUNT( 78 ) * + - ( - NULLIF ( 39, 54 * + + 53 + - - 37 ) )
----
1631

skipif mysql # not compatible
query I rowsort label-250
SELECT ALL + 98 * + 16 + + 20 + 4 + COUNT ( 78 ) * + - ( - NULLIF ( 39, 54 * + + 53 + - - 37 ) )
----
1631

query I rowsort
SELECT ( + + 29 ) * + 44 * - + 48 AS col1
----
-61248

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-252
SELECT ALL - COUNT( * ) DIV 47 * + - 63 col0
----
0

skipif mysql # not compatible
query I rowsort label-252
SELECT ALL - COUNT ( * ) / 47 * + - 63 col0
----
0

query I rowsort
SELECT - NULLIF ( - - 79, 28 ) AS col2
----
-79

query I rowsort
SELECT + + 59 * + + 78 - - 58 - + 93 AS col2
----
4567

query II rowsort
SELECT ALL - ( - 29 ) AS col0, - 41 AS col1
----
29
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-256
SELECT ALL 7 * + SUM( ALL + 63 ) AS col2
----
441

skipif mysql # not compatible
query I rowsort label-256
SELECT ALL 7 * + SUM ( ALL + 63 ) AS col2
----
441

query I rowsort
SELECT ALL - ( - - 7 ) + 92 AS col0
----
85

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-258
SELECT + 4 - 54 + - 20 * - COALESCE ( - 31, + 88, 64 * + 75 * + - 42 + - + 45 DIV - - 92 * + NULLIF ( - 20, - SUM( ALL 15 ) ), 95 * COALESCE ( + 24 DIV - 97, + COUNT( * ) ) ) + 92
----
-578

skipif mysql # not compatible
query I rowsort label-258
SELECT + 4 - 54 + - 20 * - COALESCE ( - 31, + 88, 64 * + 75 * + - 42 + - + 45 / - - 92 * + NULLIF ( - 20, - SUM ( ALL 15 ) ), 95 * COALESCE ( + 24 / - 97, + COUNT ( * ) ) ) + 92
----
-578

query I rowsort
SELECT ALL 48 + 62 + + 44 AS col1
----
154

query I rowsort
SELECT + ( 19 ) - - 47 col2
----
66

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

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

query I rowsort
SELECT + 31 * - 1 + - - 35 + - 32
----
-28

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

onlyif mysql # aggregate syntax: 
query I rowsort label-264
SELECT ALL + COUNT( * ) * - 89 + - ( + 11 ) AS col0
----
-100

skipif mysql # not compatible
query I rowsort label-264
SELECT ALL + COUNT ( * ) * - 89 + - ( + 11 ) AS col0
----
-100

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-265
SELECT DISTINCT - CAST( - - 47 AS SIGNED ) * + 61 + - 22 AS col2
----
-2889

skipif mysql # not compatible
query I rowsort label-265
SELECT DISTINCT - CAST ( - - 47 AS INTEGER ) * + 61 + - 22 AS col2
----
-2889

onlyif mysql # DIV for integer division: 
query II rowsort label-266
SELECT ALL 37 DIV + - 97, - 47 AS col2
----
0
-47

skipif mysql # not compatible
query II rowsort label-266
SELECT ALL 37 / + - 97, - 47 AS col2
----
0
-47

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

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

query I rowsort
SELECT ALL 46 * 97 + + ( 26 ) AS col0
----
4488

onlyif mysql # aggregate syntax: 
query II rowsort label-269
SELECT + 43 AS col1, - COUNT( - - COALESCE ( + 42, - + 51 ) ) * + 44 + 0 - + - 66 AS col0
----
43
22

skipif mysql # not compatible
query II rowsort label-269
SELECT + 43 AS col1, - COUNT ( - - COALESCE ( + 42, - + 51 ) ) * + 44 + 0 - + - 66 AS col0
----
43
22

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-270
SELECT + 49 DIV + NULLIF ( - COUNT( * ), - NULLIF ( CAST( - 77 AS SIGNED ), + 63 ) ) AS col0
----
-49

skipif mysql # not compatible
query I rowsort label-270
SELECT + 49 / + NULLIF ( - COUNT ( * ), - NULLIF ( CAST ( - 77 AS INTEGER ), + 63 ) ) AS col0
----
-49

query I rowsort
SELECT + ( 28 ) + - + 96
----
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-272
SELECT COALESCE ( + 89, + 41, + - 56 * CASE + 12 WHEN + 54 THEN + COUNT( * ) WHEN 8 + - - 84 THEN NULL WHEN 0 * + 47 THEN NULL ELSE NULL END * MAX( + ( + 63 ) ), 50 ) AS col2
----
89

skipif mysql # not compatible
query I rowsort label-272
SELECT COALESCE ( + 89, + 41, + - 56 * CASE + 12 WHEN + 54 THEN + COUNT ( * ) WHEN 8 + - - 84 THEN NULL WHEN 0 * + 47 THEN NULL ELSE NULL END * MAX ( + ( + 63 ) ), 50 ) AS col2
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-273
SELECT 17 * + COUNT( * ) + + - 70 + COUNT( + 13 ) * 15
----
-38

skipif mysql # not compatible
query I rowsort label-273
SELECT 17 * + COUNT ( * ) + + - 70 + COUNT ( + 13 ) * 15
----
-38

onlyif mysql # DIV for integer division: 
query I rowsort label-274
SELECT ALL + COALESCE ( 6, 79, - COALESCE ( 45, 44 - + 18 ) + 48 ) DIV 84 + + 68
----
68

skipif mysql # not compatible
query I rowsort label-274
SELECT ALL + COALESCE ( 6, 79, - COALESCE ( 45, 44 - + 18 ) + 48 ) / 84 + + 68
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-275
SELECT - COALESCE ( + + 77, - - CASE 59 WHEN + 35 THEN + ( 50 ) * - + 36 WHEN 60 THEN NULL WHEN 84 * + 50 THEN NULL END * - - MIN( 66 ) + 91 * - 50, + 9, - 54 ) * 67 AS col1
----
-5159

skipif mysql # not compatible
query I rowsort label-275
SELECT - COALESCE ( + + 77, - - CASE 59 WHEN + 35 THEN + ( 50 ) * - + 36 WHEN 60 THEN NULL WHEN 84 * + 50 THEN NULL END * - - MIN ( 66 ) + 91 * - 50, + 9, - 54 ) * 67 AS col1
----
-5159

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-276
SELECT DISTINCT 33 * + CAST( + + 81 AS SIGNED ) - + COUNT( * ) - + + 26
----
2646

skipif mysql # not compatible
query I rowsort label-276
SELECT DISTINCT 33 * + CAST ( + + 81 AS INTEGER ) - + COUNT ( * ) - + + 26
----
2646

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-278
SELECT ALL + 51 AS col2, CAST( - - 85 AS SIGNED ) * + COUNT( * ) + ( - 21 ) + + NULLIF ( - 11, + 14 ) * - 88 * - 72 col1
----
51
-69632

skipif mysql # not compatible
query II rowsort label-278
SELECT ALL + 51 AS col2, CAST ( - - 85 AS INTEGER ) * + COUNT ( * ) + ( - 21 ) + + NULLIF ( - 11, + 14 ) * - 88 * - 72 col1
----
51
-69632

onlyif mysql # aggregate syntax: 
query I rowsort label-279
SELECT + 63 * + - 82 * 52 - + 84 * - COUNT( * )
----
-268548

skipif mysql # not compatible
query I rowsort label-279
SELECT + 63 * + - 82 * 52 - + 84 * - COUNT ( * )
----
-268548

onlyif mysql # aggregate syntax: 
query I rowsort label-280
SELECT - MAX( 46 )
----
-46

skipif mysql # not compatible
query I rowsort label-280
SELECT - MAX ( 46 )
----
-46

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

query I rowsort
SELECT ALL - 19 * - 19 AS col0
----
361

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

query I rowsort
SELECT DISTINCT - 37 * + 69 AS col2
----
-2553

query I rowsort
SELECT - - 88 * - 44 AS col0
----
-3872

query II rowsort
SELECT ALL 73 AS col0, - 58 AS col2
----
73
-58

query I rowsort
SELECT - + 11 + - - 87 + - 50 AS col2
----
26

query I rowsort
SELECT ALL - 42 + + - ( - + 63 ) AS col0
----
21

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

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

query I rowsort
SELECT + - 31 - - 45 + + 39 * + + 4 + + 25 AS col1
----
195

query I rowsort
SELECT - + 62 + - - 93
----
31

query I rowsort
SELECT - - 87 + - 66 AS col1
----
21

query I rowsort
SELECT ALL - 81 + 3
----
-78

query I rowsort
SELECT DISTINCT + 23 + - - 51 AS col0
----
74

onlyif mysql # aggregate syntax: 
query II rowsort label-295
SELECT + 51 + MIN( + 99 ) AS col2, + 88 AS col1
----
150
88

skipif mysql # not compatible
query II rowsort label-295
SELECT + 51 + MIN ( + 99 ) AS col2, + 88 AS col1
----
150
88

query I rowsort
SELECT DISTINCT - 32 * - + 69
----
2208

query I rowsort
SELECT + CASE + 47 WHEN + 41 THEN - + 52 END + - 85 + - + 87 * - + 23
----
NULL

query I rowsort
SELECT ALL + 99 * 79 - + 19 - 3
----
7799

onlyif mysql # DIV for integer division: 
query I rowsort label-299
SELECT ALL - 54 DIV 74 * + 37 - + 72 * + 58
----
-4176

skipif mysql # not compatible
query I rowsort label-299
SELECT ALL - 54 / 74 * + 37 - + 72 * + 58
----
-4176

query I rowsort
SELECT + 8 * - 85 AS col2
----
-680

onlyif mysql # aggregate syntax: 
query I rowsort label-301
SELECT + 13 * + MAX( 65 )
----
845

skipif mysql # not compatible
query I rowsort label-301
SELECT + 13 * + MAX ( 65 )
----
845

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-304
SELECT ALL MAX( + 65 ) * + 76
----
4940

skipif mysql # not compatible
query I rowsort label-304
SELECT ALL MAX ( + 65 ) * + 76
----
4940

query I rowsort
SELECT + CASE 94 WHEN + 48 THEN - 67 * - 94 + + 15 WHEN - 57 * - - 60 * - + 83 THEN NULL END + - 74 AS col0
----
NULL

query I rowsort
SELECT DISTINCT + 13 * + 8 AS col1
----
104

query II rowsort
SELECT ( + 29 ) col1, 8
----
29
8

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

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-310
SELECT + 35 + - COUNT( * ) AS col2, 62 col1
----
34
62

skipif mysql # not compatible
query II rowsort label-310
SELECT + 35 + - COUNT ( * ) AS col2, 62 col1
----
34
62

query I rowsort
SELECT - 41 - 94
----
-135

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

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

query I rowsort
SELECT - 97 * + 39 * + + 81 + + + 14 * + 77
----
-305345

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

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

query I rowsort
SELECT 15 * + + 52
----
780

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

skipif mysql # not compatible
query I rowsort label-316
SELECT 25 / - - 71 / + COUNT ( * )
----
0

query I rowsort
SELECT 31 + - ( 67 )
----
-36

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

query I rowsort
SELECT ALL + 46 + - - 38
----
84

query I rowsort
SELECT DISTINCT - 88 + - 60
----
-148

onlyif mysql # aggregate syntax: 
query I rowsort label-321
SELECT DISTINCT - + COUNT( * ) + + 48 + + 41
----
88

skipif mysql # not compatible
query I rowsort label-321
SELECT DISTINCT - + COUNT ( * ) + + 48 + + 41
----
88

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

onlyif mysql # aggregate syntax: 
query I rowsort label-323
SELECT ALL + 94 * - + MAX( + - 37 )
----
3478

skipif mysql # not compatible
query I rowsort label-323
SELECT ALL + 94 * - + MAX ( + - 37 )
----
3478

query I rowsort
SELECT DISTINCT + + COALESCE ( - - 58, + 70, 33 ) + - 94
----
-36

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-325
SELECT ALL + CASE - - 30 WHEN - COALESCE ( + 36, - 94 ) DIV + 31 THEN NULL WHEN + 96 THEN - CAST( + - 87 AS SIGNED ) * + - 50 * - - NULLIF ( + - 81, + + 83 * - COUNT( * ) ) ELSE 14 DIV 35 END
----
0

skipif mysql # not compatible
query I rowsort label-325
SELECT ALL + CASE - - 30 WHEN - COALESCE ( + 36, - 94 ) / + 31 THEN NULL WHEN + 96 THEN - CAST ( + - 87 AS INTEGER ) * + - 50 * - - NULLIF ( + - 81, + + 83 * - COUNT ( * ) ) ELSE 14 / 35 END
----
0

query I rowsort
SELECT 36 * - 89 + - 47 * + + 67 + 40 AS col1
----
-6313

query I rowsort
SELECT ALL - - 5 - + 1 col2
----
4

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

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

query I rowsort
SELECT + 16 - - NULLIF ( + - 27, - CASE WHEN + 74 IS NULL THEN NULL ELSE - 39 END ) col0
----
-11

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-331
SELECT - COUNT( * ) * + 64 * - + 52 col2
----
3328

skipif mysql # not compatible
query I rowsort label-331
SELECT - COUNT ( * ) * + 64 * - + 52 col2
----
3328

query II rowsort
SELECT - 38 AS col2, - 68
----
-38
-68

query I rowsort
SELECT ALL - 99 - 3 AS col1
----
-102

onlyif mysql # aggregate syntax: 
query I rowsort label-334
SELECT ALL + 26 * + + MIN( ALL - 10 ) AS col0
----
-260

skipif mysql # not compatible
query I rowsort label-334
SELECT ALL + 26 * + + MIN ( ALL - 10 ) AS col0
----
-260

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-336
SELECT DISTINCT + COUNT( DISTINCT + 14 ) * + CAST( - - 43 AS SIGNED ) col2
----
43

skipif mysql # not compatible
query I rowsort label-336
SELECT DISTINCT + COUNT ( DISTINCT + 14 ) * + CAST ( - - 43 AS INTEGER ) col2
----
43

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-337
SELECT NULLIF ( - CAST( NULL AS SIGNED ), - 44 ) * + + 35 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-337
SELECT NULLIF ( - CAST ( NULL AS INTEGER ), - 44 ) * + + 35 col1
----
NULL

query I rowsort
SELECT 36 * + 50 + 47 + 15 AS col2
----
1862

onlyif mysql # aggregate syntax: 
query I rowsort label-339
SELECT DISTINCT CASE + - 84 WHEN + 97 THEN NULL WHEN - + 63 THEN + + COALESCE ( SUM( 50 ), MAX( - 57 ) / 55 ) / + - COUNT( * ) * 60 / - 59 * + 56 * - - 3 WHEN - 39 THEN NULL END + 80 * + 57 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-339
SELECT DISTINCT CASE + - 84 WHEN + 97 THEN NULL WHEN - + 63 THEN + + COALESCE ( SUM ( 50 ), MAX ( - 57 ) / 55 ) / + - COUNT ( * ) * 60 / - 59 * + 56 * - - 3 WHEN - 39 THEN NULL END + 80 * + 57 AS col0
----
NULL

query I rowsort
SELECT ALL - ( + 43 )
----
-43

onlyif mysql # aggregate syntax: 
query II rowsort label-341
SELECT COALESCE ( 57, - COUNT( * ), 98 * + - 5 + + + 8 + 17 ) * - + NULLIF ( - 51, - COUNT( * ) + - - 34 ) col1, 17 AS col1
----
2907
17

skipif mysql # not compatible
query II rowsort label-341
SELECT COALESCE ( 57, - COUNT ( * ), 98 * + - 5 + + + 8 + 17 ) * - + NULLIF ( - 51, - COUNT ( * ) + - - 34 ) col1, 17 AS col1
----
2907
17

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

skipif mysql # not compatible
query I rowsort label-342
SELECT ALL ( + 6 ) + ( + COUNT ( * ) ) AS col1
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-343
SELECT ALL 70 + COUNT( * ) + - + COUNT( * ) + - CASE + 6 WHEN - - COALESCE ( - + 82, + 29 ) + + + ( - ( COUNT( * ) ) ) THEN + 31 * + 89 / 62 - + 16 + 28 / 83 END + 62 / - 53 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-343
SELECT ALL 70 + COUNT ( * ) + - + COUNT ( * ) + - CASE + 6 WHEN - - COALESCE ( - + 82, + 29 ) + + + ( - ( COUNT ( * ) ) ) THEN + 31 * + 89 / 62 - + 16 + 28 / 83 END + 62 / - 53 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-344
SELECT ALL 52 + + 25 * COALESCE ( - + COUNT( * ), + - 18 )
----
27

skipif mysql # not compatible
query I rowsort label-344
SELECT ALL 52 + + 25 * COALESCE ( - + COUNT ( * ), + - 18 )
----
27

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

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

query I rowsort
SELECT ALL + 75 + 56 AS col1
----
131

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query III rowsort label-348
SELECT 2 + 24 / - CASE + + COUNT( * ) WHEN - 97 * - - 16 + - + 12 THEN NULL WHEN + 21 THEN + 83 * + 95 END, - 35 AS col1, 10 * + 72 / - + CAST( NULL AS SIGNED ) + 6
----
NULL
-35
NULL

skipif mysql # not compatible
query III rowsort label-348
SELECT 2 + 24 / - CASE + + COUNT ( * ) WHEN - 97 * - - 16 + - + 12 THEN NULL WHEN + 21 THEN + 83 * + 95 END, - 35 AS col1, 10 * + 72 / - + CAST ( NULL AS INTEGER ) + 6
----
NULL
-35
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-349
SELECT ALL 52 AS col0, 40 * - 19 * 26 DIV COUNT( ALL + 43 ) AS col1
----
52
-19760

skipif mysql # not compatible
query II rowsort label-349
SELECT ALL 52 AS col0, 40 * - 19 * 26 / COUNT ( ALL + 43 ) AS col1
----
52
-19760

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-350
SELECT ALL CAST( CAST( + 95 AS SIGNED ) AS SIGNED ) + 96 AS col2
----
191

skipif mysql # not compatible
query I rowsort label-350
SELECT ALL CAST ( CAST ( + 95 AS INTEGER ) AS INTEGER ) + 96 AS col2
----
191

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-351
SELECT DISTINCT 58 * + CAST( 33 AS SIGNED ) AS col0
----
1914

skipif mysql # not compatible
query I rowsort label-351
SELECT DISTINCT 58 * + CAST ( 33 AS INTEGER ) AS col0
----
1914

query I rowsort
SELECT + 6 - + 58 - - - 74 col0
----
-126

query I rowsort
SELECT ALL + ( + + 66 )
----
66

query I rowsort
SELECT 71 - + 42
----
29

query I rowsort
SELECT + 34 + 19 * - 88 * 2 + + + 70 + 57
----
-3183

query II rowsort
SELECT ALL + 74 - + + 91 + + 43 AS col2, 44 col1
----
26
44

query I rowsort
SELECT COALESCE ( - + 48, 66 ) col1
----
-48

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-359
SELECT 51 + - COUNT( * ) / 91 * + ( ( + CASE - - 16 WHEN + ( + + CAST( NULL AS SIGNED ) ) THEN 62 END ) ), - 20 * - CASE + 30 WHEN 95 * - - 59 THEN NULL WHEN COUNT( * ) * + CASE 87 WHEN 3 THEN - SUM( DISTINCT + 11 ) ELSE NULL END + - 92 THEN - COUNT( * ) * COALESCE ( 4 * + 14, 60 ) END * + ( 60 ) + - COUNT( * ) AS col0
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-359
SELECT 51 + - COUNT ( * ) / 91 * + ( ( + CASE - - 16 WHEN + ( + + CAST ( NULL AS INTEGER ) ) THEN 62 END ) ), - 20 * - CASE + 30 WHEN 95 * - - 59 THEN NULL WHEN COUNT ( * ) * + CASE 87 WHEN 3 THEN - SUM ( DISTINCT + 11 ) ELSE NULL END + - 92 THEN - COUNT ( * ) * COALESCE ( 4 * + 14, 60 ) END * + ( 60 ) + - COUNT ( * ) AS col0
----
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-360
SELECT - CASE - ( MIN( ALL - 89 ) ) WHEN + + CAST( - 64 AS SIGNED ) * + 56 + - 69 THEN + 89 ELSE NULL END * + 52 * + 60 * - 50
----
NULL

skipif mysql # not compatible
query I rowsort label-360
SELECT - CASE - ( MIN ( ALL - 89 ) ) WHEN + + CAST ( - 64 AS INTEGER ) * + 56 + - 69 THEN + 89 ELSE NULL END * + 52 * + 60 * - 50
----
NULL

query I rowsort
SELECT 40 - - - 29
----
11

query I rowsort
SELECT 43 + + + 27 AS col2
----
70

query I rowsort
SELECT 89 + + - 10 col0
----
79

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

skipif mysql # not compatible
query I rowsort label-364
SELECT DISTINCT MIN ( 55 )
----
55

query I rowsort
SELECT ALL + 40 * - 64
----
-2560

query I rowsort
SELECT COALESCE ( - + 61, - + 32 ) col0
----
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-367
SELECT COALESCE ( + ( 75 ), + 76, + + 82 + - 59 + - 73 * 49, + 65 * + + 14 - + 52 + 11 * + COUNT( * ) + 88 * + 92 )
----
75

skipif mysql # not compatible
query I rowsort label-367
SELECT COALESCE ( + ( 75 ), + 76, + + 82 + - 59 + - 73 * 49, + 65 * + + 14 - + 52 + 11 * + COUNT ( * ) + 88 * + 92 )
----
75

onlyif mysql # DIV for integer division: 
query I rowsort label-368
SELECT 41 * + - ( + ( + 39 ) ) + + + 76 DIV 31 + 37
----
-1560

skipif mysql # not compatible
query I rowsort label-368
SELECT 41 * + - ( + ( + 39 ) ) + + + 76 / 31 + 37
----
-1560

onlyif mysql # aggregate syntax: 
query II rowsort label-369
SELECT + 5 AS col0, - 83 + ( - - 73 ) * - COUNT( * ) AS col2
----
5
-156

skipif mysql # not compatible
query II rowsort label-369
SELECT + 5 AS col0, - 83 + ( - - 73 ) * - COUNT ( * ) AS col2
----
5
-156

onlyif mysql # DIV for integer division: 
query I rowsort label-370
SELECT 26 DIV - 96 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-370
SELECT 26 / - 96 AS col1
----
0

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-372
SELECT MIN( - + 23 ) * - 69 - + 93 - + 55 * - 1 + 50 + + 72
----
1671

skipif mysql # not compatible
query I rowsort label-372
SELECT MIN ( - + 23 ) * - 69 - + 93 - + 55 * - 1 + 50 + + 72
----
1671

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-373
SELECT ALL - CASE - - 35 WHEN + 41 + 59 THEN NULL ELSE 17 * - 44 + + NULLIF ( + - 64, - COUNT( ALL + CASE - 14 WHEN 25 - - 15 THEN + 5 ELSE NULL END ) ) - + + 34 * + 94 + COUNT( * ) DIV + 36 END AS col0
----
4008

skipif mysql # not compatible
query I rowsort label-373
SELECT ALL - CASE - - 35 WHEN + 41 + 59 THEN NULL ELSE 17 * - 44 + + NULLIF ( + - 64, - COUNT ( ALL + CASE - 14 WHEN 25 - - 15 THEN + 5 ELSE NULL END ) ) - + + 34 * + 94 + COUNT ( * ) / + 36 END AS col0
----
4008

query I rowsort
SELECT - 71 * - 6
----
426

onlyif mysql # aggregate syntax: 
query I rowsort label-375
SELECT ALL 32 * + COUNT( * ) + + 57
----
89

skipif mysql # not compatible
query I rowsort label-375
SELECT ALL 32 * + COUNT ( * ) + + 57
----
89

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-376
SELECT ALL + CASE - + 71 WHEN - CAST( NULL AS SIGNED ) THEN NULL ELSE 64 END AS col1
----
64

skipif mysql # not compatible
query I rowsort label-376
SELECT ALL + CASE - + 71 WHEN - CAST ( NULL AS INTEGER ) THEN NULL ELSE 64 END AS col1
----
64

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-377
SELECT 96 * 31 DIV - + COUNT( * ) + 40 AS col1
----
-2936

skipif mysql # not compatible
query I rowsort label-377
SELECT 96 * 31 / - + COUNT ( * ) + 40 AS col1
----
-2936

onlyif mysql # aggregate syntax: 
query I rowsort label-378
SELECT ALL + 74 * 32 + - - COUNT( * )
----
2369

skipif mysql # not compatible
query I rowsort label-378
SELECT ALL + 74 * 32 + - - COUNT ( * )
----
2369

query I rowsort
SELECT ALL + 6 * + + 83
----
498

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

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

query I rowsort
SELECT - 46 + - 85 AS col0
----
-131

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-382
SELECT ALL + 27 AS col0, + CAST( - - AVG ( + 57 ) AS SIGNED ) + - 28 * + 7 AS col1
----
27
-139

skipif mysql # not compatible
query II rowsort label-382
SELECT ALL + 27 AS col0, + CAST ( - - AVG ( + 57 ) AS INTEGER ) + - 28 * + 7 AS col1
----
27
-139

query II rowsort
SELECT ALL + - 98 AS col1, 44 AS col2
----
-98
44

onlyif mysql # aggregate syntax: 
query I rowsort label-384
SELECT ALL 92 * - 89 * - COUNT( * ) + + - CASE COUNT( * ) WHEN + COUNT( * ) THEN 81 + - + 30 ELSE - 14 END * - + 42 col0
----
10330

skipif mysql # not compatible
query I rowsort label-384
SELECT ALL 92 * - 89 * - COUNT ( * ) + + - CASE COUNT ( * ) WHEN + COUNT ( * ) THEN 81 + - + 30 ELSE - 14 END * - + 42 col0
----
10330

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-385
SELECT DISTINCT + - CAST( NULL AS SIGNED ), + 7 AS col1
----
NULL
7

skipif mysql # not compatible
query II rowsort label-385
SELECT DISTINCT + - CAST ( NULL AS INTEGER ), + 7 AS col1
----
NULL
7

query I rowsort
SELECT ALL - 63 - 94 col1
----
-157

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

skipif mysql # not compatible
query I rowsort label-387
SELECT + - 0 * - 76 * - COUNT ( * ) / + 63 * + COUNT ( * )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-388
SELECT ALL + + 65 AS col0, ( + + 60 ) / - 75 + - CAST( NULL AS SIGNED )
----
65
NULL

skipif mysql # not compatible
query II rowsort label-388
SELECT ALL + + 65 AS col0, ( + + 60 ) / - 75 + - CAST ( NULL AS INTEGER )
----
65
NULL

query II rowsort
SELECT + + 83 + + - 7 + + 90 * + 93 AS col1, COALESCE ( + 47, 24 ) AS col2
----
8446
47

query I rowsort
SELECT + 18 + + - 53 col0
----
-35

onlyif mysql # DIV for integer division: 
query I rowsort label-391
SELECT + 71 DIV - 65 col1
----
-1

skipif mysql # not compatible
query I rowsort label-391
SELECT + 71 / - 65 col1
----
-1

query II rowsort
SELECT DISTINCT - 11 * 1, 92 AS col2
----
-11
92

query II rowsort
SELECT + 98 * - 30, 24 col2
----
-2940
24

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-394
SELECT ALL - COALESCE ( + 14, + 28 DIV ( - 54 ), 38 + COALESCE ( + CAST( NULL AS SIGNED ), + 27 ) )
----
-14

skipif mysql # not compatible
query I rowsort label-394
SELECT ALL - COALESCE ( + 14, + 28 / ( - 54 ), 38 + COALESCE ( + CAST ( NULL AS INTEGER ), + 27 ) )
----
-14

query II rowsort
SELECT ALL COALESCE ( + - 86, - 78 ), 13 * - + 3 * + 39 + 21 AS col0
----
-86
-1500

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-396
SELECT - CASE + 68 WHEN - 32 * 56 THEN + CASE - + 70 WHEN + + CAST( - - 28 AS SIGNED ) / + - 0 THEN + + 44 * + 59 END ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-396
SELECT - CASE + 68 WHEN - 32 * 56 THEN + CASE - + 70 WHEN + + CAST ( - - 28 AS INTEGER ) / + - 0 THEN + + 44 * + 59 END ELSE NULL END AS col0
----
NULL

query II rowsort
SELECT - 48 * - 41 AS col1, - 29
----
1968
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-398
SELECT + NULLIF ( - + COUNT( * ), - 93 ) - - 40 + - - 54 * 29
----
1605

skipif mysql # not compatible
query I rowsort label-398
SELECT + NULLIF ( - + COUNT ( * ), - 93 ) - - 40 + - - 54 * 29
----
1605

onlyif mysql # aggregate syntax: 
query II rowsort label-399
SELECT ALL SUM( 28 ) AS col0, 42
----
28
42

skipif mysql # not compatible
query II rowsort label-399
SELECT ALL SUM ( 28 ) AS col0, 42
----
28
42

onlyif mysql # aggregate syntax: 
query I rowsort label-400
SELECT ALL - ( + + 32 ) + + 96 + + - ( - - COUNT( * ) ) * COUNT( * ) AS col2
----
63

skipif mysql # not compatible
query I rowsort label-400
SELECT ALL - ( + + 32 ) + + 96 + + - ( - - COUNT ( * ) ) * COUNT ( * ) AS col2
----
63

query I rowsort
SELECT + 95 - - 73
----
168

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

query I rowsort
SELECT + 71 + - 26
----
45

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

skipif mysql # not compatible
query I rowsort label-404
SELECT ALL + ( + + 37 ) / 41 + - - COUNT ( * ) AS col0
----
1

query I rowsort
SELECT - 82 * - 93 AS col0
----
7626

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-406
SELECT DISTINCT + MIN( 43 ) DIV - 98 + + - 4
----
-4

skipif mysql # not compatible
query I rowsort label-406
SELECT DISTINCT + MIN ( 43 ) / - 98 + + - 4
----
-4

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

onlyif mysql # aggregate syntax: 
query II rowsort label-408
SELECT ( 97 ) AS col1, - COALESCE ( - COUNT( * ), 78 ) AS col2
----
97
1

skipif mysql # not compatible
query II rowsort label-408
SELECT ( 97 ) AS col1, - COALESCE ( - COUNT ( * ), 78 ) AS col2
----
97
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-409
SELECT 10 * ( - - 78 ) * - COUNT( * ) + + ( + - 67 ) - - 80 - + 95 DIV - 39
----
-765

skipif mysql # not compatible
query I rowsort label-409
SELECT 10 * ( - - 78 ) * - COUNT ( * ) + + ( + - 67 ) - - 80 - + 95 / - 39
----
-765

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-410
SELECT ALL - 47 / + CAST( + - CAST( - + 36 AS SIGNED ) AS SIGNED ) + + ( + + 27 ) - - COUNT( * ) + 57 * + + COALESCE ( 78, + COUNT( ALL + 46 ) * 49 ) * + 67 + - SUM( DISTINCT - 82 ) / - + 90 - - CASE + 32 + NULLIF ( + NULLIF ( - 89, 77 ), + 56 ) WHEN ( - ( 18 ) ) THEN NULL WHEN + 54 THEN + COUNT( * ) / 73 + COUNT( * ) ELSE NULL END * 9
----
NULL

skipif mysql # not compatible
query I rowsort label-410
SELECT ALL - 47 / + CAST ( + - CAST ( - + 36 AS INTEGER ) AS INTEGER ) + + ( + + 27 ) - - COUNT ( * ) + 57 * + + COALESCE ( 78, + COUNT ( ALL + 46 ) * 49 ) * + 67 + - SUM ( DISTINCT - 82 ) / - + 90 - - CASE + 32 + NULLIF ( + NULLIF ( - 89, 77 ), + 56 ) WHEN ( - ( 18 ) ) THEN NULL WHEN + 54 THEN + COUNT ( * ) / 73 + COUNT ( * ) ELSE NULL END * 9
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-411
SELECT - 46 DIV 48
----
0

skipif mysql # not compatible
query I rowsort label-411
SELECT - 46 / 48
----
0

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

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

query I rowsort
SELECT - 87 * + - 22 AS col1
----
1914

query I rowsort
SELECT ALL + + 96
----
96

query I rowsort
SELECT - + ( + 89 ) * + 66 + + 4
----
-5870

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

query I rowsort
SELECT DISTINCT - 15 * 20 + - 41
----
-341

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

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

query I rowsort
SELECT - + 77 + + 39 * - + 3
----
-194

query I rowsort
SELECT - - 27 * + 85 AS col2
----
2295

query I rowsort
SELECT + 5 - + ( + 18 )
----
-13

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-423
SELECT DISTINCT 44 * 12 * - 65 * - + 93 + 66 + - CAST( 4 AS SIGNED ) + - + 53 + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-423
SELECT DISTINCT 44 * 12 * - 65 * - + 93 + 66 + - CAST ( 4 AS INTEGER ) + - + 53 + + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL - 37 * - 14 * - - 80 + + COALESCE ( + 31, + 65 * - 56 ) AS col1
----
41471

query I rowsort
SELECT + 18 - + + 4 AS col0
----
14

query I rowsort
SELECT - 62 * - + 4
----
248

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-428
SELECT ALL SUM( ALL + 81 ) + - 13 col1
----
68

skipif mysql # not compatible
query I rowsort label-428
SELECT ALL SUM ( ALL + 81 ) + - 13 col1
----
68

query I rowsort
SELECT + 95 + - + 98 AS col1
----
-3

query I rowsort
SELECT NULLIF ( - + 81, - 29 / 92 * + - 4 + 7 + 28 + - - 27 ) - - 63 + - ( - 50 ) + - + 90
----
-58

onlyif mysql # aggregate syntax: 
query II rowsort label-431
SELECT ALL SUM( DISTINCT 86 ) + SUM( + 2 ) AS col0, - 8
----
88
-8

skipif mysql # not compatible
query II rowsort label-431
SELECT ALL SUM ( DISTINCT 86 ) + SUM ( + 2 ) AS col0, - 8
----
88
-8

query I rowsort
SELECT COALESCE ( + 84, - NULLIF ( + 42, + AVG ( ALL - 77 ) ) ) * + - 92
----
-7728

query III rowsort
SELECT 25 * 16 * - + 34 AS col1, - 11, + 77 * - ( 20 ) AS col0
----
-13600
-11
-1540

onlyif mysql # aggregate syntax: 
query I rowsort label-434
SELECT DISTINCT 34 - - COUNT( * ) + - + 83 AS col1
----
-48

skipif mysql # not compatible
query I rowsort label-434
SELECT DISTINCT 34 - - COUNT ( * ) + - + 83 AS col1
----
-48

query I rowsort
SELECT ALL - 43 * + + 48
----
-2064

query I rowsort
SELECT 0 * - - 88
----
0

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-437
SELECT + + 55 * 32 + CASE + 89 WHEN COUNT( * ) - + COUNT( * ) THEN - + 9 * - CAST( NULL AS DECIMAL ) / 87 WHEN + 6 + + - 61 * - - 24 THEN + 84 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-437
SELECT + + 55 * 32 + CASE + 89 WHEN COUNT ( * ) - + COUNT ( * ) THEN - + 9 * - CAST ( NULL AS REAL ) / 87 WHEN + 6 + + - 61 * - - 24 THEN + 84 ELSE NULL END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-438
SELECT ALL 47 * + + 8 + - 84 DIV - 8 AS col2
----
386

skipif mysql # not compatible
query I rowsort label-438
SELECT ALL 47 * + + 8 + - 84 / - 8 AS col2
----
386

query I rowsort
SELECT 80 * + 65 * - 29 + - 56 AS col0
----
-150856

query I rowsort
SELECT 66 * - 96 + 43
----
-6293

query II rowsort
SELECT 54 AS col2, - 90
----
54
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-442
SELECT CASE - 92 WHEN + SUM( DISTINCT 67 ) THEN - + 59 * + 19 * - 28 * - 57 * COUNT( * ) + + 86 + + CASE 86 WHEN + + 28 THEN - COUNT( * ) WHEN - NULLIF ( MIN( ( + 77 ) ), 54 ) THEN NULL WHEN 40 * + 1 THEN NULL END END + + 48 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-442
SELECT CASE - 92 WHEN + SUM ( DISTINCT 67 ) THEN - + 59 * + 19 * - 28 * - 57 * COUNT ( * ) + + 86 + + CASE 86 WHEN + + 28 THEN - COUNT ( * ) WHEN - NULLIF ( MIN ( ( + 77 ) ), 54 ) THEN NULL WHEN 40 * + 1 THEN NULL END END + + 48 AS col1
----
NULL

query I rowsort
SELECT 57 + 26
----
83

onlyif mysql # aggregate syntax: 
query II rowsort label-444
SELECT + 50 * 15 + + 43 + + 54 + 15 + - 93 AS col0, 80 * + ( + 47 ) * + SUM( + 68 ) * - 92 + + 5 AS col1
----
769
-23522555

skipif mysql # not compatible
query II rowsort label-444
SELECT + 50 * 15 + + 43 + + 54 + 15 + - 93 AS col0, 80 * + ( + 47 ) * + SUM ( + 68 ) * - 92 + + 5 AS col1
----
769
-23522555

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

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

query I rowsort
SELECT ALL + - 66 + + 83 col2
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-447
SELECT DISTINCT - + CASE - 82 WHEN - + 92 + - MAX( ALL - - 68 ) THEN + ( + + 29 ) - MAX( ALL 91 ) + 89 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-447
SELECT DISTINCT - + CASE - 82 WHEN - + 92 + - MAX ( ALL - - 68 ) THEN + ( + + 29 ) - MAX ( ALL 91 ) + 89 END AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-448
SELECT MIN( DISTINCT + 91 ) DIV - + 42 + + + MAX( DISTINCT - 86 ) * - 95 + + COUNT( * ) + + ( - ( - + 87 ) ) AS col2
----
8256

skipif mysql # not compatible
query I rowsort label-448
SELECT MIN ( DISTINCT + 91 ) / - + 42 + + + MAX ( DISTINCT - 86 ) * - 95 + + COUNT ( * ) + + ( - ( - + 87 ) ) AS col2
----
8256

query I rowsort
SELECT 64 * + 46 AS col1
----
2944

query II rowsort
SELECT ALL - - 78 + 61 * 63 AS col0, + 89 + 97 AS col1
----
3921
186

onlyif mysql # aggregate syntax: 
query I rowsort label-451
SELECT DISTINCT - MIN( 13 ) + COUNT( * ) col2
----
-12

skipif mysql # not compatible
query I rowsort label-451
SELECT DISTINCT - MIN ( 13 ) + COUNT ( * ) col2
----
-12

query I rowsort
SELECT DISTINCT - 18 * - + 30
----
540

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

onlyif mysql # aggregate syntax: 
query I rowsort label-454
SELECT ALL - COUNT( * ) + ( 45 ) + - 86 col1
----
-42

skipif mysql # not compatible
query I rowsort label-454
SELECT ALL - COUNT ( * ) + ( 45 ) + - 86 col1
----
-42

query I rowsort
SELECT DISTINCT + 91 + 85 * 14
----
1281

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

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

query I rowsort
SELECT ALL ( 78 ) - 40 * + + 80 AS col1
----
-3122

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-458
SELECT COUNT( * ) - - + 76 + + MIN( DISTINCT 3 ) DIV - COALESCE ( + 66, - + 53, + 75 )
----
77

skipif mysql # not compatible
query I rowsort label-458
SELECT COUNT ( * ) - - + 76 + + MIN ( DISTINCT 3 ) / - COALESCE ( + 66, - + 53, + 75 )
----
77

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-459
SELECT CASE - 20 WHEN + 71 * - 94 / 97 * - - 31 THEN NULL WHEN + CAST( 27 AS DECIMAL ) + + 7 THEN - 18 * - - 72 END * + + COUNT( * ) * + COUNT( - - 93 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-459
SELECT CASE - 20 WHEN + 71 * - 94 / 97 * - - 31 THEN NULL WHEN + CAST ( 27 AS REAL ) + + 7 THEN - 18 * - - 72 END * + + COUNT ( * ) * + COUNT ( - - 93 ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-460
SELECT 34 - - + 36 * + 3 * - + COUNT( * ) - + 19 col0
----
-93

skipif mysql # not compatible
query I rowsort label-460
SELECT 34 - - + 36 * + 3 * - + COUNT ( * ) - + 19 col0
----
-93

onlyif mysql # DIV for integer division: 
query I rowsort label-461
SELECT DISTINCT + 99 * + 92 * + 85 - CASE 44 WHEN - ( COALESCE ( + 3, + - ( 28 ) ) ) DIV COALESCE ( + 91, + + 33 DIV + NULLIF ( + 20, + 25 ) DIV + ( - 9 ) + + 4 ) THEN NULL ELSE + ( 3 ) END DIV - 6
----
774180

skipif mysql # not compatible
query I rowsort label-461
SELECT DISTINCT + 99 * + 92 * + 85 - CASE 44 WHEN - ( COALESCE ( + 3, + - ( 28 ) ) ) / COALESCE ( + 91, + + 33 / + NULLIF ( + 20, + 25 ) / + ( - 9 ) + + 4 ) THEN NULL ELSE + ( 3 ) END / - 6
----
774180

query I rowsort
SELECT ALL - 2 col1
----
-2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-463
SELECT DISTINCT 92 DIV + SUM( + 73 )
----
1

skipif mysql # not compatible
query I rowsort label-463
SELECT DISTINCT 92 / + SUM ( + 73 )
----
1

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-465
SELECT + COUNT( * ) * 58 * + 21
----
1218

skipif mysql # not compatible
query I rowsort label-465
SELECT + COUNT ( * ) * 58 * + 21
----
1218

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-466
SELECT CAST( CASE - 87 WHEN + - AVG ( 83 ) + - 21 THEN NULL WHEN 4 THEN NULL ELSE - COUNT( * ) / 99 END AS SIGNED ) * - 18 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-466
SELECT CAST ( CASE - 87 WHEN + - AVG ( 83 ) + - 21 THEN NULL WHEN 4 THEN NULL ELSE - COUNT ( * ) / 99 END AS INTEGER ) * - 18 AS col0
----
0

query I rowsort
SELECT 94 * 2 * + 26 AS col0
----
4888

onlyif mysql # aggregate syntax: 
query II rowsort label-468
SELECT + 84 * - 21 AS col0, MIN( ALL + + ( + 95 ) ) AS col0
----
-1764
95

skipif mysql # not compatible
query II rowsort label-468
SELECT + 84 * - 21 AS col0, MIN ( ALL + + ( + 95 ) ) AS col0
----
-1764
95

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-469
SELECT + MIN( + 36 ), - 78 + CAST( NULL AS SIGNED ) * - 84 col0
----
36
NULL

skipif mysql # not compatible
query II rowsort label-469
SELECT + MIN ( + 36 ), - 78 + CAST ( NULL AS INTEGER ) * - 84 col0
----
36
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-470
SELECT ALL SUM( + 5 ) * + 31
----
155

skipif mysql # not compatible
query I rowsort label-470
SELECT ALL SUM ( + 5 ) * + 31
----
155

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

query I rowsort
SELECT ALL - 74 + 18 - 92 col0
----
-148

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-474
SELECT ALL + + 31 + 16, + COUNT( * ) AS col2
----
47
1

skipif mysql # not compatible
query II rowsort label-474
SELECT ALL + + 31 + 16, + COUNT ( * ) AS col2
----
47
1

query I rowsort
SELECT 25 * + 87 + + - 85
----
2090

onlyif mysql # aggregate syntax: 
query I rowsort label-476
SELECT ALL + ( - COUNT( ( - 55 ) ) ) + 91 col1
----
90

skipif mysql # not compatible
query I rowsort label-476
SELECT ALL + ( - COUNT ( ( - 55 ) ) ) + 91 col1
----
90

query I rowsort
SELECT + 30 * + 23 + - 48 AS col2
----
642

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-478
SELECT 63 * 62 DIV - - COUNT( * ) col2
----
3906

skipif mysql # not compatible
query I rowsort label-478
SELECT 63 * 62 / - - COUNT ( * ) col2
----
3906

query I rowsort
SELECT - 72 + 87
----
15

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-480
SELECT - 89 * + 36 * - - MIN( ALL - 95 ) * - 14 * + CAST( NULL AS SIGNED ) * - 53 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-480
SELECT - 89 * + 36 * - - MIN ( ALL - 95 ) * - 14 * + CAST ( NULL AS INTEGER ) * - 53 AS col2
----
NULL

query I rowsort
SELECT DISTINCT + 32 * + 37
----
1184

query I rowsort
SELECT - 66 - 62 AS col1
----
-128

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-484
SELECT 78 * + 47 + - COUNT( - - 75 ) AS col0
----
3665

skipif mysql # not compatible
query I rowsort label-484
SELECT 78 * + 47 + - COUNT ( - - 75 ) AS col0
----
3665

query I rowsort
SELECT + 54 * 47 AS col1
----
2538

onlyif mysql # aggregate syntax: 
query I rowsort label-486
SELECT - CASE COALESCE ( 65, 7 + SUM( 43 ), 67 ) WHEN + 18 * + 74 THEN NULL WHEN - - COUNT( * ) + 95 + + - 6 + + 81 THEN NULL WHEN - + 38 THEN NULL WHEN - + 94 + - 82 + - + 62 / - 50 * - 55 - 86 + 15 THEN COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-486
SELECT - CASE COALESCE ( 65, 7 + SUM ( 43 ), 67 ) WHEN + 18 * + 74 THEN NULL WHEN - - COUNT ( * ) + 95 + + - 6 + + 81 THEN NULL WHEN - + 38 THEN NULL WHEN - + 94 + - 82 + - + 62 / - 50 * - 55 - 86 + 15 THEN COUNT ( * ) END
----
NULL

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-488
SELECT ALL COALESCE ( 42, - ( - 60 ) DIV ( - 0 ) + 5 DIV ( + 4 ) * 94 + 6 * COUNT( * ) - - 66 * - 19 )
----
42

skipif mysql # not compatible
query I rowsort label-488
SELECT ALL COALESCE ( 42, - ( - 60 ) / ( - 0 ) + 5 / ( + 4 ) * 94 + 6 * COUNT ( * ) - - 66 * - 19 )
----
42

query I rowsort
SELECT - 6 + - - 30 + - 28 * - 11 AS col2
----
332

query I rowsort
SELECT - 0 * + 79 AS col2
----
0

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-492
SELECT DISTINCT COALESCE ( + + 23, + - 30 ), 50 DIV COUNT( * ) * - 20 + - - 8 + + COUNT( ALL + 57 ) col1
----
23
-991

skipif mysql # not compatible
query II rowsort label-492
SELECT DISTINCT COALESCE ( + + 23, + - 30 ), 50 / COUNT ( * ) * - 20 + - - 8 + + COUNT ( ALL + 57 ) col1
----
23
-991

query I rowsort
SELECT - 28 + 9 AS col0
----
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-494
SELECT + + CASE 10 WHEN - 72 * + 35 THEN - 41 WHEN + 57 * - 35 - - 45 - + ( + MIN( DISTINCT + + 29 ) ) + 41 * + 48 + 28 THEN + MAX( - 65 ) WHEN COUNT( * ) * SUM( 84 ) THEN NULL END + + MIN( 59 ) + - 11 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-494
SELECT + + CASE 10 WHEN - 72 * + 35 THEN - 41 WHEN + 57 * - 35 - - 45 - + ( + MIN ( DISTINCT + + 29 ) ) + 41 * + 48 + 28 THEN + MAX ( - 65 ) WHEN COUNT ( * ) * SUM ( 84 ) THEN NULL END + + MIN ( 59 ) + - 11 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-495
SELECT - CASE + 77 WHEN + ( 70 ) + 91 * - 26 + 92 THEN NULL WHEN 4 / - 58 + 59 + - 9 THEN NULL WHEN - + 79 * ( CAST( NULL AS SIGNED ) ) THEN + 17 / - NULLIF ( + - 86, - 79 ) WHEN - - 85 THEN - ( + COUNT( * ) ) + COUNT( * ) END / - 79
----
NULL

skipif mysql # not compatible
query I rowsort label-495
SELECT - CASE + 77 WHEN + ( 70 ) + 91 * - 26 + 92 THEN NULL WHEN 4 / - 58 + 59 + - 9 THEN NULL WHEN - + 79 * ( CAST ( NULL AS INTEGER ) ) THEN + 17 / - NULLIF ( + - 86, - 79 ) WHEN - - 85 THEN - ( + COUNT ( * ) ) + COUNT ( * ) END / - 79
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-496
SELECT + 68 * + + MIN( - - 0 ) / + CAST( NULL AS SIGNED ) * + + 66 / + + COALESCE ( + 9, + COUNT( * ) * - 88 * - CAST( NULL AS SIGNED ) * - 49 + - AVG ( - 87 ) + - 62, + COUNT( * ) ) + 91 + 57 * COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-496
SELECT + 68 * + + MIN ( - - 0 ) / + CAST ( NULL AS INTEGER ) * + + 66 / + + COALESCE ( + 9, + COUNT ( * ) * - 88 * - CAST ( NULL AS INTEGER ) * - 49 + - AVG ( - 87 ) + - 62, + COUNT ( * ) ) + 91 + 57 * COUNT ( * )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query I rowsort label-497
SELECT - 70 DIV ( 54 ) + - CASE COUNT( * ) WHEN - - 90 * - 53 THEN - 54 ELSE + 43 + NULLIF ( - - 87, - + NULLIF ( + 60, - ( + MIN( + 10 ) ) ) ) * 68 END * - NULLIF ( + 60, CAST( 6 AS DECIMAL ) ) col0
----
357539

skipif mysql # not compatible
query I rowsort label-497
SELECT - 70 / ( 54 ) + - CASE COUNT ( * ) WHEN - - 90 * - 53 THEN - 54 ELSE + 43 + NULLIF ( - - 87, - + NULLIF ( + 60, - ( + MIN ( + 10 ) ) ) ) * 68 END * - NULLIF ( + 60, CAST ( 6 AS REAL ) ) col0
----
357539

query I rowsort
SELECT ALL 65 * + 18 + + 35 - + 92
----
1113

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-499
SELECT - - COUNT( 79 ) + + + COALESCE ( 59, COALESCE ( - 71, COUNT( * ) + + 38 DIV - 96 - + + 86 + + + 50 * + 87 + + - 28 ) )
----
60

skipif mysql # not compatible
query I rowsort label-499
SELECT - - COUNT ( 79 ) + + + COALESCE ( 59, COALESCE ( - 71, COUNT ( * ) + + 38 / - 96 - + + 86 + + + 50 * + 87 + + - 28 ) )
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-500
SELECT ALL 75 * + 88 + - MIN( 19 ) * - COUNT( * )
----
6619

skipif mysql # not compatible
query I rowsort label-500
SELECT ALL 75 * + 88 + - MIN ( 19 ) * - COUNT ( * )
----
6619

query I rowsort
SELECT + CASE + 75 WHEN 89 * 18 THEN - 79 WHEN + - 77 THEN NULL END AS col1
----
NULL

query I rowsort
SELECT ALL + - ( + + 30 ) * + + 27 + 64 col0
----
-746

query I rowsort
SELECT DISTINCT + 92 * + 75
----
6900

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-506
SELECT DISTINCT + - 65 * 21 + - - CASE + + 29 WHEN - 58 + COUNT( * ) THEN - + 55 * - + 19 + 25 / CASE WHEN ( NOT 14 IS NULL ) THEN - 24 END END * - 96 * + 75 + + COUNT( * ) + - 76 + - + 27 / 40
----
NULL

skipif mysql # not compatible
query I rowsort label-506
SELECT DISTINCT + - 65 * 21 + - - CASE + + 29 WHEN - 58 + COUNT ( * ) THEN - + 55 * - + 19 + 25 / CASE WHEN ( NOT 14 IS NULL ) THEN - 24 END END * - 96 * + 75 + + COUNT ( * ) + - 76 + - + 27 / 40
----
NULL

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

query I rowsort
SELECT DISTINCT CASE + - 15 WHEN 99 THEN NULL WHEN - - 22 THEN - + NULLIF ( + + 64, + 6 ) ELSE NULL END * 51 * + + 49 / - - ( - 96 )
----
NULL

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

skipif mysql # not compatible
query I rowsort label-509
SELECT CASE - + COUNT ( * ) WHEN ( - 6 ) THEN NULL ELSE - 23 END
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-510
SELECT ALL CASE + 47 WHEN + - 46 THEN NULL ELSE - 36 * + 39 + + MAX( ALL + + 88 ) + COUNT( * ) END * ( + COUNT( * ) ) + 50 - 84 AS col0
----
-1349

skipif mysql # not compatible
query I rowsort label-510
SELECT ALL CASE + 47 WHEN + - 46 THEN NULL ELSE - 36 * + 39 + + MAX ( ALL + + 88 ) + COUNT ( * ) END * ( + COUNT ( * ) ) + 50 - 84 AS col0
----
-1349

query I rowsort
SELECT + 42 + + 44 AS col1
----
86

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-513
SELECT + 30 * - COALESCE ( + 12, - 69 * + + 26 + NULLIF ( - - NULLIF ( 41, - 34 * - 37 ), - 95 / + 74 ) * - CAST( - ( + MIN( - 46 ) ) AS SIGNED ), + 83 * - 31 ) AS col0
----
-360

skipif mysql # not compatible
query I rowsort label-513
SELECT + 30 * - COALESCE ( + 12, - 69 * + + 26 + NULLIF ( - - NULLIF ( 41, - 34 * - 37 ), - 95 / + 74 ) * - CAST ( - ( + MIN ( - 46 ) ) AS INTEGER ), + 83 * - 31 ) AS col0
----
-360

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

skipif mysql # not compatible
query I rowsort label-514
SELECT MIN ( + + ( + + 97 ) )
----
97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-515
SELECT ALL CASE - + COUNT( * ) WHEN + + 70 * + - 9 + - 81 THEN + - 55 + - 72 WHEN + - CAST( - ( - 22 ) AS SIGNED ) + COUNT( * ) THEN NULL WHEN - + 5 * + 67 / - + 44 THEN + 93 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-515
SELECT ALL CASE - + COUNT ( * ) WHEN + + 70 * + - 9 + - 81 THEN + - 55 + - 72 WHEN + - CAST ( - ( - 22 ) AS INTEGER ) + COUNT ( * ) THEN NULL WHEN - + 5 * + 67 / - + 44 THEN + 93 END AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-516
SELECT + 0 * + 4 DIV 85 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-516
SELECT + 0 * + 4 / 85 AS col2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-517
SELECT DISTINCT - 2 DIV + 4
----
0

skipif mysql # not compatible
query I rowsort label-517
SELECT DISTINCT - 2 / + 4
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-518
SELECT ALL 58 DIV 44 DIV - 11
----
0

skipif mysql # not compatible
query I rowsort label-518
SELECT ALL 58 / 44 / - 11
----
0

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-520
SELECT + COUNT( * ) * 60 * + + ( + 44 ) AS col1
----
2640

skipif mysql # not compatible
query I rowsort label-520
SELECT + COUNT ( * ) * 60 * + + ( + 44 ) AS col1
----
2640

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

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

query I rowsort
SELECT - - 93 * 55 + - - ( - + 45 ) * - 88 * - 33
----
-125565

query I rowsort
SELECT DISTINCT - - 26 + + 84
----
110

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-525
SELECT ALL - + ( CAST( NULL AS SIGNED ) ) / + 81 * 59 + 60 * + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-525
SELECT ALL - + ( CAST ( NULL AS INTEGER ) ) / + 81 * 59 + 60 * + COUNT ( * )
----
NULL

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-527
SELECT DISTINCT 97 / - COALESCE ( - 71, 20, + + 41 / - - 21 ) + + + CAST( NULL AS SIGNED ) + - 12 * - + 31 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-527
SELECT DISTINCT 97 / - COALESCE ( - 71, 20, + + 41 / - - 21 ) + + + CAST ( NULL AS INTEGER ) + - 12 * - + 31 AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-528
SELECT ALL - 63 DIV - 40 + - 81 + 1 + - 15 AS col0
----
-94

skipif mysql # not compatible
query I rowsort label-528
SELECT ALL - 63 / - 40 + - 81 + 1 + - 15 AS col0
----
-94

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

onlyif mysql # aggregate syntax: 
query I rowsort label-530
SELECT ALL - - 55 - COUNT( * ) AS col1
----
54

skipif mysql # not compatible
query I rowsort label-530
SELECT ALL - - 55 - COUNT ( * ) AS col1
----
54

query I rowsort
SELECT ALL 88 - - 29 AS col0
----
117

query I rowsort
SELECT 80 - - 85
----
165

onlyif mysql # DIV for integer division: 
query I rowsort label-533
SELECT - 71 DIV + 97 * - 84 * - 4 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-533
SELECT - 71 / + 97 * - 84 * - 4 AS col1
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-534
SELECT DISTINCT - COUNT( - 81 ), 20 DIV - + 3 AS col1
----
-1
-6

skipif mysql # not compatible
query II rowsort label-534
SELECT DISTINCT - COUNT ( - 81 ), 20 / - + 3 AS col1
----
-1
-6

query I rowsort
SELECT 78 * - 56 * - 59 + + + 24
----
257736

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-536
SELECT MAX( + 14 ) DIV + 81 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-536
SELECT MAX ( + 14 ) / + 81 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-537
SELECT - 71 * + - COUNT( * ) + - 40 * + + ( SUM( - + ( - 72 ) ) )
----
-2809

skipif mysql # not compatible
query I rowsort label-537
SELECT - 71 * + - COUNT ( * ) + - 40 * + + ( SUM ( - + ( - 72 ) ) )
----
-2809

query I rowsort
SELECT ALL - 99 col0
----
-99

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

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

query I rowsort
SELECT 50 * + 20 * + - 65
----
-65000

query I rowsort
SELECT ALL 17 * 30 * + + 50
----
25500

query I rowsort
SELECT 34 * 60 AS col1
----
2040

query II rowsort
SELECT 69 + 47 AS col1, + 37 col0
----
116
37

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-544
SELECT CAST( + 22 AS SIGNED ) + + COUNT( * ) DIV + 83 + - - 22 * 47 AS col2
----
1056

skipif mysql # not compatible
query I rowsort label-544
SELECT CAST ( + 22 AS INTEGER ) + + COUNT ( * ) / + 83 + - - 22 * 47 AS col2
----
1056

query II rowsort
SELECT ALL 11 + + - 47, + 14 - - ( + 1 ) col2
----
-36
15

query I rowsort
SELECT 88 + ( + 62 ) AS col2
----
150

query I rowsort
SELECT DISTINCT 59 + 9 AS col0
----
68

query II rowsort
SELECT ALL - 59 + 3 col1, + 73 * - 34
----
-56
-2482

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-549
SELECT COUNT( * ) DIV - 28 DIV + 13 + + ( 82 ) + 99 + + 78 + + + ( - + 75 ) + 3 * - + CASE + + 16 WHEN COUNT( * ) THEN + + 89 * + 44 ELSE CASE + 29 WHEN + 22 * - 19 * - 75 * 44 + - 8 THEN + 38 ELSE 23 END END + 71 AS col1
----
186

skipif mysql # not compatible
query I rowsort label-549
SELECT COUNT ( * ) / - 28 / + 13 + + ( 82 ) + 99 + + 78 + + + ( - + 75 ) + 3 * - + CASE + + 16 WHEN COUNT ( * ) THEN + + 89 * + 44 ELSE CASE + 29 WHEN + 22 * - 19 * - 75 * 44 + - 8 THEN + 38 ELSE 23 END END + 71 AS col1
----
186

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

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

query I rowsort
SELECT DISTINCT - ( + 6 ) * + - 2
----
12

onlyif mysql # aggregate syntax: 
query II rowsort label-552
SELECT ALL + - ( 94 ) * 33 * + 27 * + 56 - SUM( DISTINCT - + 65 ) AS col2, MIN( ALL + 86 ) AS col2
----
-4690159
86

skipif mysql # not compatible
query II rowsort label-552
SELECT ALL + - ( 94 ) * 33 * + 27 * + 56 - SUM ( DISTINCT - + 65 ) AS col2, MIN ( ALL + 86 ) AS col2
----
-4690159
86

onlyif mysql # aggregate syntax: 
query II rowsort label-553
SELECT COUNT( * ) * 72 AS col2, - 10
----
72
-10

skipif mysql # not compatible
query II rowsort label-553
SELECT COUNT ( * ) * 72 AS col2, - 10
----
72
-10

query I rowsort
SELECT DISTINCT + 76 + - - 36 * 41 * + + 12
----
17788

onlyif mysql # aggregate syntax: 
query I rowsort label-555
SELECT - COALESCE ( ( + 41 ), - - MIN( - + 74 ) )
----
-41

skipif mysql # not compatible
query I rowsort label-555
SELECT - COALESCE ( ( + 41 ), - - MIN ( - + 74 ) )
----
-41

query I rowsort
SELECT ALL - 43 + ( - ( 11 ) ) + 79
----
25

onlyif mysql # DIV for integer division: 
query I rowsort label-557
SELECT - 11 * + 83 + - 47 * - ( + 53 ) + - 33 DIV + 1
----
1545

skipif mysql # not compatible
query I rowsort label-557
SELECT - 11 * + 83 + - 47 * - ( + 53 ) + - 33 / + 1
----
1545

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-558
SELECT - - 73 DIV + 61 + - 79 + - COUNT( * ) * 60 + - COUNT( * )
----
-139

skipif mysql # not compatible
query I rowsort label-558
SELECT - - 73 / + 61 + - 79 + - COUNT ( * ) * 60 + - COUNT ( * )
----
-139

onlyif mysql # aggregate syntax: 
query II rowsort label-559
SELECT ALL 89 - - 97 AS col0, 3 * + CASE + - CASE - + 46 WHEN + COALESCE ( + - 74, + - 63 / + + MAX( - - 21 ) ) + 39 THEN - 76 END WHEN + 27 THEN NULL WHEN - 74 * + 98 * + 4 / + COUNT( * ) + + 31 / - 91 THEN 74 WHEN - 44 THEN - 63 + COALESCE ( - ( 86 ) + - 27 * 72, + 10 * - 80 ) END / 84
----
186
NULL

skipif mysql # not compatible
query II rowsort label-559
SELECT ALL 89 - - 97 AS col0, 3 * + CASE + - CASE - + 46 WHEN + COALESCE ( + - 74, + - 63 / + + MAX ( - - 21 ) ) + 39 THEN - 76 END WHEN + 27 THEN NULL WHEN - 74 * + 98 * + 4 / + COUNT ( * ) + + 31 / - 91 THEN 74 WHEN - 44 THEN - 63 + COALESCE ( - ( 86 ) + - 27 * 72, + 10 * - 80 ) END / 84
----
186
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-560
SELECT ALL + MIN( DISTINCT - 38 ) * - 30 + - 67 + - 64 * CASE 11 WHEN - 95 * 53 * + 40 + 88 THEN - 21 ELSE NULL END - - 18 / - + 93 * - 51 * + - 78 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-560
SELECT ALL + MIN ( DISTINCT - 38 ) * - 30 + - 67 + - 64 * CASE 11 WHEN - 95 * 53 * + 40 + 88 THEN - 21 ELSE NULL END - - 18 / - + 93 * - 51 * + - 78 col1
----
NULL

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-562
SELECT COUNT( * ) * - 37 + - 42 AS col0, - 10 / + - CAST( NULL AS SIGNED ) AS col0
----
-79
NULL

skipif mysql # not compatible
query II rowsort label-562
SELECT COUNT ( * ) * - 37 + - 42 AS col0, - 10 / + - CAST ( NULL AS INTEGER ) AS col0
----
-79
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-563
SELECT - 67 DIV + 98 * + 58 + + 67 - 54 + + 11
----
24

skipif mysql # not compatible
query I rowsort label-563
SELECT - 67 / + 98 * + 58 + + 67 - 54 + + 11
----
24

query II rowsort
SELECT 12 AS col1, 20
----
12
20

query I rowsort
SELECT 18 * + + 6 AS col1
----
108

onlyif mysql # aggregate syntax: 
query I rowsort label-566
SELECT 54 + + COUNT( ALL 28 ) + + - 50 - + 41 * - 11
----
456

skipif mysql # not compatible
query I rowsort label-566
SELECT 54 + + COUNT ( ALL 28 ) + + - 50 - + 41 * - 11
----
456

onlyif mysql # aggregate syntax: 
query I rowsort label-567
SELECT 60 + ( COUNT( * ) ) + + 56
----
117

skipif mysql # not compatible
query I rowsort label-567
SELECT 60 + ( COUNT ( * ) ) + + 56
----
117

query I rowsort
SELECT DISTINCT - 1 * - + 59 AS col0
----
59

query I rowsort
SELECT 44 * + + 16
----
704

query II rowsort
SELECT + 54 AS col1, 0
----
54
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-571
SELECT DISTINCT + CAST( NULL AS DECIMAL ) * - - COALESCE ( + 69, - 16 )
----
NULL

skipif mysql # not compatible
query I rowsort label-571
SELECT DISTINCT + CAST ( NULL AS REAL ) * - - COALESCE ( + 69, - 16 )
----
NULL

query I rowsort
SELECT 34 * - 50 * - - 24 AS col2
----
-40800

onlyif mysql # aggregate syntax: 
query I rowsort label-573
SELECT MAX( - - 35 ) * MAX( DISTINCT - 20 )
----
-700

skipif mysql # not compatible
query I rowsort label-573
SELECT MAX ( - - 35 ) * MAX ( DISTINCT - 20 )
----
-700

query I rowsort
SELECT 43 * + + 62
----
2666

query I rowsort
SELECT 50 - + - 29 + - - 48 col0
----
127

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-577
SELECT ( - COUNT( * ) ) * NULLIF ( 37, + NULLIF ( 67, ( 47 ) - 14 + 64 * MAX( + 32 ) + - 35 * NULLIF ( + ( - 80 ), 69 ) ) * + 76 ) AS col0
----
-37

skipif mysql # not compatible
query I rowsort label-577
SELECT ( - COUNT ( * ) ) * NULLIF ( 37, + NULLIF ( 67, ( 47 ) - 14 + 64 * MAX ( + 32 ) + - 35 * NULLIF ( + ( - 80 ), 69 ) ) * + 76 ) AS col0
----
-37

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-578
SELECT ALL 64 + 72 - + + 74 DIV 14 * + 82 * - 63 + - - COUNT( * ) + + CAST( - NULLIF ( - - COUNT( * ), 88 DIV 54 ) AS SIGNED ) + 12 * + MAX( ALL 14 )
----
NULL

skipif mysql # not compatible
query I rowsort label-578
SELECT ALL 64 + 72 - + + 74 / 14 * + 82 * - 63 + - - COUNT ( * ) + + CAST ( - NULLIF ( - - COUNT ( * ), 88 / 54 ) AS INTEGER ) + 12 * + MAX ( ALL 14 )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-579
SELECT 69 * + CASE - + 34 WHEN - COUNT( * ) - COUNT( * ) + - 59 THEN + + COUNT( * ) / + COUNT( - + 20 ) + 35 END * ( CAST( 16 AS SIGNED ) ) AS col2, + 84 * - - 33 AS col0
----
NULL
2772

skipif mysql # not compatible
query II rowsort label-579
SELECT 69 * + CASE - + 34 WHEN - COUNT ( * ) - COUNT ( * ) + - 59 THEN + + COUNT ( * ) / + COUNT ( - + 20 ) + 35 END * ( CAST ( 16 AS INTEGER ) ) AS col2, + 84 * - - 33 AS col0
----
NULL
2772

query I rowsort
SELECT ALL 31 + + - 76 AS col1
----
-45

query I rowsort
SELECT DISTINCT 36 * 44
----
1584

query I rowsort
SELECT ALL ( + 78 ) + 13
----
91

query I rowsort
SELECT 15 + + 0
----
15

query II rowsort
SELECT 96 AS col1, 17
----
96
17

query II rowsort
SELECT ALL 31 AS col2, + 42
----
31
42

query I rowsort
SELECT + + 92 + + 73 AS col2
----
165

onlyif mysql # aggregate syntax: 
query II rowsort label-587
SELECT COALESCE ( - 43, - - 4 + 89, - COUNT( * ), 13 ) col0, 8 * + + COUNT( - - 16 ) AS col2
----
-43
8

skipif mysql # not compatible
query II rowsort label-587
SELECT COALESCE ( - 43, - - 4 + 89, - COUNT ( * ), 13 ) col0, 8 * + + COUNT ( - - 16 ) AS col2
----
-43
8

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-588
SELECT + 8 + - CAST( - MAX( + 93 ) AS SIGNED ) AS col0
----
101

skipif mysql # not compatible
query I rowsort label-588
SELECT + 8 + - CAST ( - MAX ( + 93 ) AS INTEGER ) AS col0
----
101

onlyif mysql # aggregate syntax: 
query I rowsort label-589
SELECT ALL 78 - COALESCE ( - COALESCE ( 82, 33 ), 72 * + NULLIF ( 31, 78 * 31 ) + + 99 - - + NULLIF ( - COUNT( * ), - CASE 75 WHEN - NULLIF ( - 44, - COUNT( * ) ) THEN NULL ELSE + - COUNT( * ) * - + 3 END + CASE WHEN NOT 29 NOT BETWEEN ( 62 ) AND ( - COALESCE ( + 92, 52, - 38 ) + 61 * + CASE + COUNT( ALL 80 ) * 37 WHEN NULLIF ( - ( 98 ), + 15 * 18 ) * - 71 THEN + 16 END ) THEN 6 WHEN MIN( ALL + 52 ) + + 59 / 62 IS NULL THEN NULL ELSE 97 END ) ) AS col0
----
160

skipif mysql # not compatible
query I rowsort label-589
SELECT ALL 78 - COALESCE ( - COALESCE ( 82, 33 ), 72 * + NULLIF ( 31, 78 * 31 ) + + 99 - - + NULLIF ( - COUNT ( * ), - CASE 75 WHEN - NULLIF ( - 44, - COUNT ( * ) ) THEN NULL ELSE + - COUNT ( * ) * - + 3 END + CASE WHEN NOT 29 NOT BETWEEN ( 62 ) AND ( - COALESCE ( + 92, 52, - 38 ) + 61 * + CASE + COUNT ( ALL 80 ) * 37 WHEN NULLIF ( - ( 98 ), + 15 * 18 ) * - 71 THEN + 16 END ) THEN 6 WHEN MIN ( ALL + 52 ) + + 59 / 62 IS NULL THEN NULL ELSE 97 END ) ) AS col0
----
160

query I rowsort
SELECT ALL - + 17 - - + 17 - + 55 + - 84
----
-139

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-591
SELECT DISTINCT + - CASE 64 WHEN 11 - - 74 - - + ( 29 ) - - + 22 * + - 39 THEN NULL WHEN ( + AVG ( DISTINCT + 56 ) ) THEN 88 END * + NULLIF ( + - COUNT( * ), + 51 ) / - + 74 + - 84 + - - NULLIF ( - - COALESCE ( - CASE - - 11 WHEN 99 THEN 57 END, 84 * CAST( NULL AS DECIMAL ) + 57, - COUNT( ALL - 62 ), - 70 ), 72 * + 57 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-591
SELECT DISTINCT + - CASE 64 WHEN 11 - - 74 - - + ( 29 ) - - + 22 * + - 39 THEN NULL WHEN ( + AVG ( DISTINCT + 56 ) ) THEN 88 END * + NULLIF ( + - COUNT ( * ), + 51 ) / - + 74 + - 84 + - - NULLIF ( - - COALESCE ( - CASE - - 11 WHEN 99 THEN 57 END, 84 * CAST ( NULL AS REAL ) + 57, - COUNT ( ALL - 62 ), - 70 ), 72 * + 57 ) AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-592
SELECT + + NULLIF ( + ( - - 95 ), 63 * 79 - - 54 ) * 67 + + - 54 + CAST( NULL AS SIGNED ) * - 95
----
NULL

skipif mysql # not compatible
query I rowsort label-592
SELECT + + NULLIF ( + ( - - 95 ), 63 * 79 - - 54 ) * 67 + + - 54 + CAST ( NULL AS INTEGER ) * - 95
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-593
SELECT - 92 * - COALESCE ( + - MIN( ALL + 80 ), + - 99 * - 87 * - COUNT( * ) ) - + 41 AS col2
----
-7401

skipif mysql # not compatible
query I rowsort label-593
SELECT - 92 * - COALESCE ( + - MIN ( ALL + 80 ), + - 99 * - 87 * - COUNT ( * ) ) - + 41 AS col2
----
-7401

onlyif mysql # aggregate syntax: 
query I rowsort label-594
SELECT + 90 / + CASE - + COUNT( * ) WHEN - - 72 THEN NULL WHEN 17 * 61 / - + 55 * - + 77 THEN 84 END
----
NULL

skipif mysql # not compatible
query I rowsort label-594
SELECT + 90 / + CASE - + COUNT ( * ) WHEN - - 72 THEN NULL WHEN 17 * 61 / - + 55 * - + 77 THEN 84 END
----
NULL

query I rowsort
SELECT ALL + 87 * - 97 * + 39 col2
----
-329121

onlyif mysql # aggregate syntax: 
query I rowsort label-596
SELECT + 7 * - MIN( DISTINCT + + 4 )
----
-28

skipif mysql # not compatible
query I rowsort label-596
SELECT + 7 * - MIN ( DISTINCT + + 4 )
----
-28

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-598
SELECT CASE - 25 WHEN + 77 + - COALESCE ( - 27, 89 + + 24 + - + 20 * + 88 ) + - COUNT( * ) + ( 73 ) * - 31 THEN - COALESCE ( 82, - 4 / - + 10 ) * + AVG ( + 11 ) END col0
----
NULL

skipif mysql # not compatible
query I rowsort label-598
SELECT CASE - 25 WHEN + 77 + - COALESCE ( - 27, 89 + + 24 + - + 20 * + 88 ) + - COUNT ( * ) + ( 73 ) * - 31 THEN - COALESCE ( 82, - 4 / - + 10 ) * + AVG ( + 11 ) END col0
----
NULL

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-600
SELECT + 75 * 0 - - 13 * 17 DIV - + 12
----
-18

skipif mysql # not compatible
query I rowsort label-600
SELECT + 75 * 0 - - 13 * 17 / - + 12
----
-18

query I rowsort
SELECT ALL - 62 * - - 69 + + 75 AS col1
----
-4203

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-602
SELECT NULLIF ( + CASE - - 27 WHEN - - 56 THEN - 96 WHEN 9 + + - 22 + + - ( COALESCE ( + 72, + NULLIF ( - - COUNT( * ), + 22 ) * - COUNT( * ) * 22, 60 ) ) + ( - 25 ) * - + 79 / + + 23 THEN NULL ELSE - + CASE + 0 WHEN + CAST( NULL AS SIGNED ) THEN - COUNT( * ) END + - 70 END, AVG ( ( - 92 ) ) * 37 )
----
NULL

skipif mysql # not compatible
query I rowsort label-602
SELECT NULLIF ( + CASE - - 27 WHEN - - 56 THEN - 96 WHEN 9 + + - 22 + + - ( COALESCE ( + 72, + NULLIF ( - - COUNT ( * ), + 22 ) * - COUNT ( * ) * 22, 60 ) ) + ( - 25 ) * - + 79 / + + 23 THEN NULL ELSE - + CASE + 0 WHEN + CAST ( NULL AS INTEGER ) THEN - COUNT ( * ) END + - 70 END, AVG ( ( - 92 ) ) * 37 )
----
NULL

query I rowsort
SELECT ALL 99 * 1 + ( 25 ) + 71
----
195

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

query I rowsort
SELECT + 18 * + 24 + + - 35
----
397

query I rowsort
SELECT - 93 + + 46 + COALESCE ( - - 44, ( + 95 ) )
----
-3

onlyif mysql # aggregate syntax: 
query II rowsort label-607
SELECT DISTINCT + MIN( ALL - + 76 ), + 18 AS col2
----
-76
18

skipif mysql # not compatible
query II rowsort label-607
SELECT DISTINCT + MIN ( ALL - + 76 ), + 18 AS col2
----
-76
18

query I rowsort
SELECT - CASE + 89 WHEN - - 28 THEN 31 END + - 30
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-609
SELECT ALL + MIN( + - 38 ) * - - 47 * + - 41 * - 77 AS col1
----
-5638402

skipif mysql # not compatible
query I rowsort label-609
SELECT ALL + MIN ( + - 38 ) * - - 47 * + - 41 * - 77 AS col1
----
-5638402

query I rowsort
SELECT DISTINCT + 80 * + 7
----
560

query I rowsort
SELECT DISTINCT 31 col2
----
31

query I rowsort
SELECT DISTINCT - NULLIF ( - + 8, + 75 ) + + + 43
----
51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-613
SELECT + + 81 + - 71 - + CAST( - - 16 AS SIGNED ) * + 5
----
-70

skipif mysql # not compatible
query I rowsort label-613
SELECT + + 81 + - 71 - + CAST ( - - 16 AS INTEGER ) * + 5
----
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-614
SELECT ALL - MIN( - 76 ) - - 42 AS col1
----
118

skipif mysql # not compatible
query I rowsort label-614
SELECT ALL - MIN ( - 76 ) - - 42 AS col1
----
118

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-616
SELECT - 65 DIV + ( + COUNT( * ) ) AS col0
----
-65

skipif mysql # not compatible
query I rowsort label-616
SELECT - 65 / + ( + COUNT ( * ) ) AS col0
----
-65

query I rowsort
SELECT + ( - - 86 ) * + ( - 70 ) + 44
----
-5976

onlyif mysql # DIV for integer division: 
query I rowsort label-618
SELECT ALL + - 40 DIV 82
----
0

skipif mysql # not compatible
query I rowsort label-618
SELECT ALL + - 40 / 82
----
0

query I rowsort
SELECT - 79 * + 25
----
-1975

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-620
SELECT + 49 * 64 / - CAST( NULL AS SIGNED ) * + 93 * + + 37 + + 95 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-620
SELECT + 49 * 64 / - CAST ( NULL AS INTEGER ) * + 93 * + + 37 + + 95 AS col1
----
NULL

query I rowsort
SELECT ALL + NULLIF ( 1, + 98 )
----
1

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

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

query II rowsort
SELECT + - 55 * + - 47 col0, + 55
----
2585
55

onlyif mysql # DIV for integer division: 
query I rowsort label-624
SELECT ALL + COALESCE ( 27, 2 DIV + - 28 ) * 80 AS col2
----
2160

skipif mysql # not compatible
query I rowsort label-624
SELECT ALL + COALESCE ( 27, 2 / + - 28 ) * 80 AS col2
----
2160

onlyif mysql # aggregate syntax: 
query I rowsort label-625
SELECT DISTINCT + + COUNT( * ) * ( 36 ) + + 59 - + 56 - + NULLIF ( - - 85, 75 ) + 73 + + + 12
----
39

skipif mysql # not compatible
query I rowsort label-625
SELECT DISTINCT + + COUNT ( * ) * ( 36 ) + + 59 - + 56 - + NULLIF ( - - 85, 75 ) + 73 + + + 12
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-626
SELECT + + COUNT( * ) + - 88 * - 90
----
7921

skipif mysql # not compatible
query I rowsort label-626
SELECT + + COUNT ( * ) + - 88 * - 90
----
7921

query I rowsort
SELECT ALL + 99 * + 42 AS col2
----
4158

query I rowsort
SELECT - ( + + 72 ) * + 96 AS col2
----
-6912

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-629
SELECT + 51 * + 68 + - 79 DIV - - 21, COUNT( * ) AS col0
----
3465
1

skipif mysql # not compatible
query II rowsort label-629
SELECT + 51 * + 68 + - 79 / - - 21, COUNT ( * ) AS col0
----
3465
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-630
SELECT + 64 * - 99 + 67 + - 65 * + NULLIF ( - COALESCE ( + 33, + - 86 - - - 6 + + CASE 25 WHEN - 91 * 68 THEN NULL WHEN - 15 THEN 87 DIV + - 29 * 87 + - - 95 * + + 16 + - ( + - 45 ) + + 39 WHEN - CASE - 15 WHEN - ( - 84 ) THEN 48 + CAST( NULL AS SIGNED ) * 20 WHEN 68 THEN - ( 80 ) + 12 END * - 83 THEN NULL ELSE NULL END * + CAST( NULL AS SIGNED ), + COUNT( * ) DIV - COUNT( * ), + CASE 26 WHEN 31 * - 88 THEN 92 WHEN 3 THEN - NULLIF ( - 5, NULLIF ( - CASE ( 82 ) WHEN + 51 * 46 THEN MAX( - 8 ) * + 48 END, + 11 ) ) END ), + 75 DIV 3 - + ( 13 + - COUNT( + 9 + 71 ) ) DIV + ( 72 + 82 ) )
----
-4124

skipif mysql # not compatible
query I rowsort label-630
SELECT + 64 * - 99 + 67 + - 65 * + NULLIF ( - COALESCE ( + 33, + - 86 - - - 6 + + CASE 25 WHEN - 91 * 68 THEN NULL WHEN - 15 THEN 87 / + - 29 * 87 + - - 95 * + + 16 + - ( + - 45 ) + + 39 WHEN - CASE - 15 WHEN - ( - 84 ) THEN 48 + CAST ( NULL AS INTEGER ) * 20 WHEN 68 THEN - ( 80 ) + 12 END * - 83 THEN NULL ELSE NULL END * + CAST ( NULL AS INTEGER ), + COUNT ( * ) / - COUNT ( * ), + CASE 26 WHEN 31 * - 88 THEN 92 WHEN 3 THEN - NULLIF ( - 5, NULLIF ( - CASE ( 82 ) WHEN + 51 * 46 THEN MAX ( - 8 ) * + 48 END, + 11 ) ) END ), + 75 / 3 - + ( 13 + - COUNT ( + 9 + 71 ) ) / + ( 72 + 82 ) )
----
-4124

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

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

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

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

query I rowsort
SELECT + ( + - 86 ) + + 16 AS col2
----
-70

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

query I rowsort
SELECT + 18 * 14
----
252

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-637
SELECT + MIN( ALL NULLIF ( - + ( + 43 ), - - CAST( + 0 AS SIGNED ) ) ) * + 28
----
-1204

skipif mysql # not compatible
query I rowsort label-637
SELECT + MIN ( ALL NULLIF ( - + ( + 43 ), - - CAST ( + 0 AS INTEGER ) ) ) * + 28
----
-1204

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-638
SELECT - ( - 28 ) + - COUNT( 30 ) + 97 * + + 56 * - 77 + 66 / 85 * - COUNT( * ) * + MAX( - + CAST( NULL AS SIGNED ) ) + - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-638
SELECT - ( - 28 ) + - COUNT ( 30 ) + 97 * + + 56 * - 77 + 66 / 85 * - COUNT ( * ) * + MAX ( - + CAST ( NULL AS INTEGER ) ) + - COUNT ( * )
----
NULL

query I rowsort
SELECT ALL 58 * - 94
----
-5452

onlyif mysql # DIV for integer division: 
query I rowsort label-640
SELECT + 70 DIV + 29 AS col1
----
2

skipif mysql # not compatible
query I rowsort label-640
SELECT + 70 / + 29 AS col1
----
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-641
SELECT ALL 82 * + 13 / - CASE + - COALESCE ( - + 3, - 24 * - 3, - ( - COALESCE ( 14, + + 96, + + 74 + - 98 ) ) ) WHEN 58 - CAST( NULL AS SIGNED ) THEN 77 + + + 49 + + 40 + + + SUM( 83 ) / - - COALESCE ( 16, + ( 69 ), 88 + 48 * + 53 ) END + COUNT( ALL - 95 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-641
SELECT ALL 82 * + 13 / - CASE + - COALESCE ( - + 3, - 24 * - 3, - ( - COALESCE ( 14, + + 96, + + 74 + - 98 ) ) ) WHEN 58 - CAST ( NULL AS INTEGER ) THEN 77 + + + 49 + + 40 + + + SUM ( 83 ) / - - COALESCE ( 16, + ( 69 ), 88 + 48 * + 53 ) END + COUNT ( ALL - 95 ) AS col1
----
NULL

query I rowsort
SELECT ALL + NULLIF ( - + 99, - + 36 ) AS col0
----
-99

query I rowsort
SELECT ( - - 85 )
----
85

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-644
SELECT ALL CASE + CAST( NULL AS SIGNED ) WHEN + AVG ( DISTINCT + 83 ) - 4 * 85 THEN - + 73 + - 38 + 6 + + 47 + - COUNT( * ) / 14 END * + COUNT( * ) + - - 38 + + - 31 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-644
SELECT ALL CASE + CAST ( NULL AS INTEGER ) WHEN + AVG ( DISTINCT + 83 ) - 4 * 85 THEN - + 73 + - 38 + 6 + + 47 + - COUNT ( * ) / 14 END * + COUNT ( * ) + - - 38 + + - 31 col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-645
SELECT NULLIF ( + 97, ( - 37 ) * + 47 + + 39 * + 4 + - COUNT( * ) + - 84 ) col2
----
97

skipif mysql # not compatible
query I rowsort label-645
SELECT NULLIF ( + 97, ( - 37 ) * + 47 + + 39 * + 4 + - COUNT ( * ) + - 84 ) col2
----
97

query II rowsort
SELECT - 50 - + 37 + 85 AS col0, + 6 AS col1
----
-2
6

onlyif mysql # aggregate syntax: 
query I rowsort label-647
SELECT NULLIF ( + COUNT( * ), 94 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-647
SELECT NULLIF ( + COUNT ( * ), 94 ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-648
SELECT ALL + - NULLIF ( - 69, + COUNT( * ) + + 79 ) * - COUNT( * ) + - ( + 12 ) AS col1
----
-81

skipif mysql # not compatible
query I rowsort label-648
SELECT ALL + - NULLIF ( - 69, + COUNT ( * ) + + 79 ) * - COUNT ( * ) + - ( + 12 ) AS col1
----
-81

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-650
SELECT + CAST( NULL AS SIGNED ) * - COALESCE ( - - NULLIF ( - 48, + 69 ), 1 ) / - 16 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-650
SELECT + CAST ( NULL AS INTEGER ) * - COALESCE ( - - NULLIF ( - 48, + 69 ), 1 ) / - 16 AS col1
----
NULL

query I rowsort
SELECT + 72 * 59
----
4248

query II rowsort
SELECT - - 93 AS col2, 57 AS col0
----
93
57

query I rowsort
SELECT - - COALESCE ( - 33, + + 40 ) AS col2
----
-33

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-654
SELECT + 90 * - 27 + + NULLIF ( - 15, + - CAST( + - 75 AS SIGNED ) * 14 + + 13 ) * - 2
----
-2400

skipif mysql # not compatible
query I rowsort label-654
SELECT + 90 * - 27 + + NULLIF ( - 15, + - CAST ( + - 75 AS INTEGER ) * 14 + + 13 ) * - 2
----
-2400

query I rowsort
SELECT ALL - + ( 13 ) * - CASE 52 WHEN - 45 THEN 69 WHEN + 18 THEN NULL ELSE + - 31 END
----
-403

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-656
SELECT + 99 DIV - + COUNT( * ) + + 82 AS col2
----
-17

skipif mysql # not compatible
query I rowsort label-656
SELECT + 99 / - + COUNT ( * ) + + 82 AS col2
----
-17

query I rowsort
SELECT DISTINCT - - CASE WHEN + 29 IS NULL THEN 59 * + + 86 + 2 END * + - 2 col1
----
NULL

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

skipif mysql # not compatible
query I rowsort label-658
SELECT ALL + + 33 * + COUNT ( + - 85 ) AS col2
----
33

query III rowsort
SELECT - 78, + 26 * + 62 AS col1, 41 AS col0
----
-78
1612
41

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-661
SELECT - 66 DIV 47 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-661
SELECT - 66 / 47 AS col1
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-662
SELECT 93 DIV 89 col0
----
1

skipif mysql # not compatible
query I rowsort label-662
SELECT 93 / 89 col0
----
1

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

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

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

skipif mysql # not compatible
query I rowsort label-664
SELECT DISTINCT - 79 + + 43 - + MAX ( DISTINCT 93 ) AS col0
----
-129

onlyif mysql # DIV for integer division: 
query I rowsort label-665
SELECT 42 + - 64 DIV - 29
----
44

skipif mysql # not compatible
query I rowsort label-665
SELECT 42 + - 64 / - 29
----
44

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

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

query II rowsort
SELECT ALL + 75, + 95 * + - 68 + ( 62 ) - + 2 AS col0
----
75
-6400

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

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

query II rowsort
SELECT ALL + NULLIF ( - 6, + 24 ) + 11 AS col0, - ( - 27 ) col0
----
5
27

query I rowsort
SELECT DISTINCT - 70 + + 87
----
17

query II rowsort
SELECT DISTINCT 86 AS col1, ( + 2 )
----
86
2

query I rowsort
SELECT ALL 48 + + 9 + + + 85 AS col1
----
142

query II rowsort
SELECT + 39 AS col1, - 58 + 68
----
39
10

onlyif mysql # aggregate syntax: 
query I rowsort label-674
SELECT DISTINCT - ( - COUNT( * ) ) + 84 + + COALESCE ( - 82, + 83 ) * - 52 - - 26 * COUNT( * ) + - 78 * + 4 * + - 58 AS col2
----
22471

skipif mysql # not compatible
query I rowsort label-674
SELECT DISTINCT - ( - COUNT ( * ) ) + 84 + + COALESCE ( - 82, + 83 ) * - 52 - - 26 * COUNT ( * ) + - 78 * + 4 * + - 58 AS col2
----
22471

query II rowsort
SELECT ALL + 97 * - 91 AS col1, + 38 + - 0 AS col2
----
-8827
38

onlyif mysql # aggregate syntax: 
query I rowsort label-676
SELECT ( + COUNT( + - 60 ) ) * - 94
----
-94

skipif mysql # not compatible
query I rowsort label-676
SELECT ( + COUNT ( + - 60 ) ) * - 94
----
-94

query I rowsort
SELECT DISTINCT 53 * + 31 AS col2
----
1643

query I rowsort
SELECT ALL 12 + 67
----
79

onlyif mysql # DIV for integer division: 
query I rowsort label-679
SELECT + 73 DIV - 30 - 78 - 20
----
-100

skipif mysql # not compatible
query I rowsort label-679
SELECT + 73 / - 30 - 78 - 20
----
-100

query II rowsort
SELECT 46, - 92 AS col1
----
46
-92

query I rowsort
SELECT 59 * - + 4 AS col1
----
-236

query I rowsort
SELECT 95 * 71 * + 80
----
539600

onlyif mysql # aggregate syntax: 
query I rowsort label-683
SELECT ALL - CASE + + MIN( DISTINCT - 79 ) WHEN - + 50 * 49 * + 85 - 84 - - 61 THEN NULL WHEN + + 56 + + 30 + - 27 + - CASE + + 70 WHEN - 67 THEN COUNT( * ) END * - - 6 THEN - - 8 ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-683
SELECT ALL - CASE + + MIN ( DISTINCT - 79 ) WHEN - + 50 * 49 * + 85 - 84 - - 61 THEN NULL WHEN + + 56 + + 30 + - 27 + - CASE + + 70 WHEN - 67 THEN COUNT ( * ) END * - - 6 THEN - - 8 ELSE NULL END AS col1
----
NULL

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

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

query II rowsort
SELECT ALL - 43, - 25 AS col1
----
-43
-25

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

skipif mysql # not compatible
query I rowsort label-686
SELECT DISTINCT 11 - + + COUNT ( * ) AS col1
----
10

query I rowsort
SELECT + 34 * + 15 * - 8 - 10 AS col1
----
-4090

onlyif mysql # DIV for integer division: 
query I rowsort label-688
SELECT ALL 5 DIV + 86 col0
----
0

skipif mysql # not compatible
query I rowsort label-688
SELECT ALL 5 / + 86 col0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-689
SELECT 75 DIV 42 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-689
SELECT 75 / 42 AS col2
----
1

query I rowsort
SELECT DISTINCT 40 * 66 AS col1
----
2640

onlyif mysql # aggregate syntax: 
query I rowsort label-691
SELECT + - COUNT( * ) * + 69 + 49 * + 47
----
2234

skipif mysql # not compatible
query I rowsort label-691
SELECT + - COUNT ( * ) * + 69 + 49 * + 47
----
2234

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-692
SELECT 28 * CAST( - 25 AS SIGNED ) col1
----
-700

skipif mysql # not compatible
query I rowsort label-692
SELECT 28 * CAST ( - 25 AS INTEGER ) col1
----
-700

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-694
SELECT DISTINCT ( - 84 ) * + + 40 * + 29 * + CAST( NULL AS SIGNED ) * - COUNT( * ) AS col2, + 94 AS col2
----
NULL
94

skipif mysql # not compatible
query II rowsort label-694
SELECT DISTINCT ( - 84 ) * + + 40 * + 29 * + CAST ( NULL AS INTEGER ) * - COUNT ( * ) AS col2, + 94 AS col2
----
NULL
94

query I rowsort
SELECT - 70 * + - 54
----
3780

onlyif mysql # aggregate syntax: 
query II rowsort label-696
SELECT ALL 39 AS col0, 48 * - COALESCE ( + 53, - NULLIF ( + - 36, - - 22 * + CASE MAX( ALL - + 38 ) WHEN - 38 + 52 THEN 84 ELSE NULL END ) ) AS col2
----
39
-2544

skipif mysql # not compatible
query II rowsort label-696
SELECT ALL 39 AS col0, 48 * - COALESCE ( + 53, - NULLIF ( + - 36, - - 22 * + CASE MAX ( ALL - + 38 ) WHEN - 38 + 52 THEN 84 ELSE NULL END ) ) AS col2
----
39
-2544

onlyif mysql # aggregate syntax: 
query I rowsort label-697
SELECT DISTINCT + MIN( + 59 ) * - 86
----
-5074

skipif mysql # not compatible
query I rowsort label-697
SELECT DISTINCT + MIN ( + 59 ) * - 86
----
-5074

onlyif mysql # aggregate syntax: 
query I rowsort label-698
SELECT ALL + MIN( 25 ) AS col2
----
25

skipif mysql # not compatible
query I rowsort label-698
SELECT ALL + MIN ( 25 ) AS col2
----
25

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

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

query I rowsort
SELECT + 36 * + 26 col1
----
936

onlyif mysql # aggregate syntax: 
query I rowsort label-701
SELECT + 6 * 37 * + - COUNT( * ) + 10 * + 93 + - ( - 75 )
----
783

skipif mysql # not compatible
query I rowsort label-701
SELECT + 6 * 37 * + - COUNT ( * ) + 10 * + 93 + - ( - 75 )
----
783

onlyif mysql # aggregate syntax: 
query I rowsort label-702
SELECT 31 + COUNT( DISTINCT 12 ) AS col0
----
32

skipif mysql # not compatible
query I rowsort label-702
SELECT 31 + COUNT ( DISTINCT 12 ) AS col0
----
32

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

skipif mysql # not compatible
query II rowsort label-703
SELECT 76 AS col1, COUNT ( * )
----
76
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-704
SELECT ALL - 83 + + - 55 + - - 77 + - - 17 - - - COUNT( * ) + - 99 DIV + ( 20 )
----
-49

skipif mysql # not compatible
query I rowsort label-704
SELECT ALL - 83 + + - 55 + - - 77 + - - 17 - - - COUNT ( * ) + - 99 / + ( 20 )
----
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-705
SELECT - ( 63 ) + - 55 * - CASE 34 WHEN + ( + 43 ) THEN 71 WHEN COUNT( + + 23 ) * + + ( - ( + MIN( DISTINCT NULLIF ( + + 54, + 68 * - 55 ) ) ) ) * - - 55 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-705
SELECT - ( 63 ) + - 55 * - CASE 34 WHEN + ( + 43 ) THEN 71 WHEN COUNT ( + + 23 ) * + + ( - ( + MIN ( DISTINCT NULLIF ( + + 54, + 68 * - 55 ) ) ) ) * - - 55 THEN NULL END
----
NULL

query I rowsort
SELECT DISTINCT - + 68 + + + 85 + 36
----
53

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

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

query I rowsort
SELECT ALL - + 93 + - 42 AS col2
----
-135

onlyif mysql # aggregate syntax: 
query I rowsort label-710
SELECT 60 + + MAX( DISTINCT - + 99 ) col0
----
-39

skipif mysql # not compatible
query I rowsort label-710
SELECT 60 + + MAX ( DISTINCT - + 99 ) col0
----
-39

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-711
SELECT 63 * 37 * + - 93 * + CAST( - 33 AS SIGNED ) AS col0
----
7153839

skipif mysql # not compatible
query I rowsort label-711
SELECT 63 * 37 * + - 93 * + CAST ( - 33 AS INTEGER ) AS col0
----
7153839

query I rowsort
SELECT ALL - 65 * 78 * 44
----
-223080

onlyif mysql # DIV for integer division: 
query I rowsort label-713
SELECT 69 DIV 33 AS col2
----
2

skipif mysql # not compatible
query I rowsort label-713
SELECT 69 / 33 AS col2
----
2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-714
SELECT ALL + 93 + - 44 + - 60 * + 94 + + COUNT( * ) + - 52 DIV 52
----
-5591

skipif mysql # not compatible
query I rowsort label-714
SELECT ALL + 93 + - 44 + - 60 * + 94 + + COUNT ( * ) + - 52 / 52
----
-5591

query II rowsort
SELECT 50 + 78 AS col1, + 0 AS col2
----
128
0

onlyif mysql # aggregate syntax: 
query I rowsort label-716
SELECT 53 * - + ( - MAX( ALL - 67 ) ) * + + 81 * + 23
----
-6615513

skipif mysql # not compatible
query I rowsort label-716
SELECT 53 * - + ( - MAX ( ALL - 67 ) ) * + + 81 * + 23
----
-6615513

query II rowsort
SELECT NULLIF ( + 93, - - 65 ), - 59 col2
----
93
-59

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-718
SELECT NULLIF ( + - AVG ( DISTINCT + + 99 ), - 77 * - CAST( + 56 AS SIGNED ) * COUNT( * ) + - 83 - 39 ) / + AVG ( + NULLIF ( - 68, + 81 ) ) * + + CAST( + - COALESCE ( 45, + NULLIF ( 89, - AVG ( DISTINCT + 1 ) ) + 10, + COUNT( ALL - 31 ) * + + ( - 38 ) ) AS SIGNED ) + 63 - + 5 / - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-718
SELECT NULLIF ( + - AVG ( DISTINCT + + 99 ), - 77 * - CAST ( + 56 AS INTEGER ) * COUNT ( * ) + - 83 - 39 ) / + AVG ( + NULLIF ( - 68, + 81 ) ) * + + CAST ( + - COALESCE ( 45, + NULLIF ( 89, - AVG ( DISTINCT + 1 ) ) + 10, + COUNT ( ALL - 31 ) * + + ( - 38 ) ) AS INTEGER ) + 63 - + 5 / - CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-719
SELECT DISTINCT - COALESCE ( + MAX( 79 ), + 55 ) AS col2
----
-79

skipif mysql # not compatible
query I rowsort label-719
SELECT DISTINCT - COALESCE ( + MAX ( 79 ), + 55 ) AS col2
----
-79

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-720
SELECT SUM( - 77 ) * CAST( 10 AS SIGNED ) + - ( + 84 ) * - 61 AS col1
----
4354

skipif mysql # not compatible
query I rowsort label-720
SELECT SUM ( - 77 ) * CAST ( 10 AS INTEGER ) + - ( + 84 ) * - 61 AS col1
----
4354

query II rowsort
SELECT DISTINCT - 49 * + ( + 73 ), - 50 AS col2
----
-3577
-50

query I rowsort
SELECT - 87 * + 36 AS col2
----
-3132

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-723
SELECT + 93 + + + COUNT( ALL 61 ) + + 64 * - 33 DIV + 3 AS col1
----
-610

skipif mysql # not compatible
query I rowsort label-723
SELECT + 93 + + + COUNT ( ALL 61 ) + + 64 * - 33 / + 3 AS col1
----
-610

query I rowsort
SELECT ALL 99 * 19 * - 25 * - 65 AS col1
----
3056625

onlyif mysql # aggregate syntax: 
query I rowsort label-725
SELECT DISTINCT + COUNT( * ) * + 9 - + 15 + - + 22 + + 72
----
44

skipif mysql # not compatible
query I rowsort label-725
SELECT DISTINCT + COUNT ( * ) * + 9 - + 15 + - + 22 + + 72
----
44

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-727
SELECT + 45 * 59 + - + CAST( + 10 AS SIGNED ) AS col0
----
2645

skipif mysql # not compatible
query I rowsort label-727
SELECT + 45 * 59 + - + CAST ( + 10 AS INTEGER ) AS col0
----
2645

query I rowsort
SELECT ALL - 28 * - + 0 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-729
SELECT CASE + CASE 53 WHEN + 60 THEN - + 46 ELSE ( 95 ) END WHEN - - NULLIF ( + COALESCE ( ( + 23 ), + 70 / - 18 * 99, 13 ), + AVG ( ALL + + 76 ) * MAX( - 45 ) * - COUNT( * ) - + 29 ) + + - 25 THEN - + ( - 96 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-729
SELECT CASE + CASE 53 WHEN + 60 THEN - + 46 ELSE ( 95 ) END WHEN - - NULLIF ( + COALESCE ( ( + 23 ), + 70 / - 18 * 99, 13 ), + AVG ( ALL + + 76 ) * MAX ( - 45 ) * - COUNT ( * ) - + 29 ) + + - 25 THEN - + ( - 96 ) END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-730
SELECT DISTINCT 60 + - + 28 AS col2, + COUNT( DISTINCT 78 ) AS col2
----
32
1

skipif mysql # not compatible
query II rowsort label-730
SELECT DISTINCT 60 + - + 28 AS col2, + COUNT ( DISTINCT 78 ) AS col2
----
32
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-731
SELECT + + 18 * + + 37 + + CASE + COUNT( * ) WHEN - 52 THEN NULL WHEN - 38 * - AVG ( ALL - 76 ) THEN + 53 * - - AVG ( - 76 ) * + 64 DIV - COUNT( * ) DIV + - COUNT( * ) + + - 90 ELSE + 21 END + + 47 * 66 AS col2
----
3789

skipif mysql # not compatible
query I rowsort label-731
SELECT + + 18 * + + 37 + + CASE + COUNT ( * ) WHEN - 52 THEN NULL WHEN - 38 * - AVG ( ALL - 76 ) THEN + 53 * - - AVG ( - 76 ) * + 64 / - COUNT ( * ) / + - COUNT ( * ) + + - 90 ELSE + 21 END + + 47 * 66 AS col2
----
3789

query I rowsort
SELECT ALL + ( + + 41 ) + 30
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-733
SELECT + + 7 - 53 * 11 * COUNT( * )
----
-576

skipif mysql # not compatible
query I rowsort label-733
SELECT + + 7 - 53 * 11 * COUNT ( * )
----
-576

onlyif mysql # aggregate syntax: 
query II rowsort label-734
SELECT ALL COUNT( * ) * - 41 AS col1, ( 82 )
----
-41
82

skipif mysql # not compatible
query II rowsort label-734
SELECT ALL COUNT ( * ) * - 41 AS col1, ( 82 )
----
-41
82

query I rowsort
SELECT COALESCE ( + 4, + 75 + + + 62 )
----
4

query I rowsort
SELECT ALL 44 + - 35 * + - 39 col0
----
1409

onlyif mysql # aggregate syntax: 
query II rowsort label-737
SELECT DISTINCT - MAX( - + 17 ) * - COUNT( * ), + 91 * - ( - 6 ) AS col1
----
-17
546

skipif mysql # not compatible
query II rowsort label-737
SELECT DISTINCT - MAX ( - + 17 ) * - COUNT ( * ), + 91 * - ( - 6 ) AS col1
----
-17
546

query I rowsort
SELECT DISTINCT + 29 + + 24 AS col0
----
53

query I rowsort
SELECT ALL - + 91 + 60
----
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-740
SELECT DISTINCT 71 + + + 90 - + 14 + + 85 + - 59 * + COUNT( * ) + + 44
----
217

skipif mysql # not compatible
query I rowsort label-740
SELECT DISTINCT 71 + + + 90 - + 14 + + 85 + - 59 * + COUNT ( * ) + + 44
----
217

query I rowsort
SELECT + 41 + - 71 AS col0
----
-30

query I rowsort
SELECT + - 91 - 26 * - 51 col2
----
1235

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-743
SELECT DISTINCT 30, + ( - CASE - SUM( + 88 ) WHEN 16 + + + 48 THEN - CAST( NULL AS DECIMAL ) * - 93 + - 95 * + 94 * 92 * - - 2 END ) col1
----
30
NULL

skipif mysql # not compatible
query II rowsort label-743
SELECT DISTINCT 30, + ( - CASE - SUM ( + 88 ) WHEN 16 + + + 48 THEN - CAST ( NULL AS REAL ) * - 93 + - 95 * + 94 * 92 * - - 2 END ) col1
----
30
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-744
SELECT - NULLIF ( - - 25, + COUNT( * ) )
----
-25

skipif mysql # not compatible
query I rowsort label-744
SELECT - NULLIF ( - - 25, + COUNT ( * ) )
----
-25

query I rowsort
SELECT ALL + 7 - - - 80 AS col2
----
-73

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-746
SELECT 85 AS col2, + CAST( NULL AS SIGNED ) AS col2
----
85
NULL

skipif mysql # not compatible
query II rowsort label-746
SELECT 85 AS col2, + CAST ( NULL AS INTEGER ) AS col2
----
85
NULL

query I rowsort
SELECT 90 col1
----
90

onlyif mysql # DIV for integer division: 
query I rowsort label-748
SELECT DISTINCT 94 DIV + - 69
----
-1

skipif mysql # not compatible
query I rowsort label-748
SELECT DISTINCT 94 / + - 69
----
-1

query I rowsort
SELECT ALL NULLIF ( + + 64, 33 + + + 25 ) AS col2
----
64

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

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

query I rowsort
SELECT ALL + 35 * - + 46
----
-1610

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

onlyif mysql # DIV for integer division: 
query I rowsort label-753
SELECT 26 * 1 DIV - ( 91 ) - + 42 * + - 64
----
2688

skipif mysql # not compatible
query I rowsort label-753
SELECT 26 * 1 / - ( 91 ) - + 42 * + - 64
----
2688

query I rowsort
SELECT - 93 * 56 AS col0
----
-5208

query I rowsort
SELECT - 64 * - ( + - 52 )
----
-3328

onlyif mysql # aggregate syntax: 
query II rowsort label-756
SELECT + COUNT( * ), + 10 + - + 41 AS col2
----
1
-31

skipif mysql # not compatible
query II rowsort label-756
SELECT + COUNT ( * ), + 10 + - + 41 AS col2
----
1
-31

query I rowsort
SELECT - 81 + 25
----
-56

query II rowsort
SELECT ALL + 29 AS col1, + NULLIF ( 10, + 75 - + 73 ) * + 11
----
29
110

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-759
SELECT ALL + MAX( DISTINCT + ( - + 56 ) ) DIV + 61, - 72 AS col0
----
0
-72

skipif mysql # not compatible
query II rowsort label-759
SELECT ALL + MAX ( DISTINCT + ( - + 56 ) ) / + 61, - 72 AS col0
----
0
-72

query I rowsort
SELECT - 57 * - 24
----
1368

query I rowsort
SELECT ALL + COALESCE ( - + 79, 32 + - - 51 - NULLIF ( 33, + 51 ) ) AS col0
----
-79

query II rowsort
SELECT DISTINCT + 58, + 45 + - 18 AS col0
----
58
27

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-763
SELECT DISTINCT + 40 / + ( - COALESCE ( - 6, + + 30 + 68 ) ) - + 11 + + 20 * + + CAST( + CAST( NULL AS SIGNED ) AS DECIMAL ) - 39 * + 64
----
NULL

skipif mysql # not compatible
query I rowsort label-763
SELECT DISTINCT + 40 / + ( - COALESCE ( - 6, + + 30 + 68 ) ) - + 11 + + 20 * + + CAST ( + CAST ( NULL AS INTEGER ) AS REAL ) - 39 * + 64
----
NULL

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-765
SELECT ALL - 40 * - 20 + + 72 + + 38 * - 2 + - 34 DIV 35 AS col1
----
796

skipif mysql # not compatible
query I rowsort label-765
SELECT ALL - 40 * - 20 + + 72 + + 38 * - 2 + - 34 / 35 AS col1
----
796

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-768
SELECT + + NULLIF ( + - 7, + + COUNT( + 31 ) ) * - + 89 AS col0
----
623

skipif mysql # not compatible
query I rowsort label-768
SELECT + + NULLIF ( + - 7, + + COUNT ( + 31 ) ) * - + 89 AS col0
----
623

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-769
SELECT ALL - 61 * - CAST( NULL AS DECIMAL ) * COALESCE ( + + 67, - + COUNT( * ) ) + 83
----
NULL

skipif mysql # not compatible
query I rowsort label-769
SELECT ALL - 61 * - CAST ( NULL AS REAL ) * COALESCE ( + + 67, - + COUNT ( * ) ) + 83
----
NULL

query I rowsort
SELECT DISTINCT - 68 * - 89 + + - 72
----
5980

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-772
SELECT ALL 51 * + 24 + - 77 * - - COUNT( * ) - SUM( DISTINCT 9 ) + + 42 + 57
----
1237

skipif mysql # not compatible
query I rowsort label-772
SELECT ALL 51 * + 24 + - 77 * - - COUNT ( * ) - SUM ( DISTINCT 9 ) + + 42 + 57
----
1237

onlyif mysql # aggregate syntax: 
query I rowsort label-773
SELECT + - ( 65 ) * 25 * - - COUNT( * ) AS col2
----
-1625

skipif mysql # not compatible
query I rowsort label-773
SELECT + - ( 65 ) * 25 * - - COUNT ( * ) AS col2
----
-1625

query II rowsort
SELECT 74 AS col0, 1
----
74
1

onlyif mysql # aggregate syntax: 
query I rowsort label-775
SELECT + - 45 + COALESCE ( - CASE COUNT( * ) WHEN + + COUNT( * ) * + + 0 - 51 THEN 32 WHEN - 42 THEN NULL END, - ( - 92 ) ) * + + 80
----
7315

skipif mysql # not compatible
query I rowsort label-775
SELECT + - 45 + COALESCE ( - CASE COUNT ( * ) WHEN + + COUNT ( * ) * + + 0 - 51 THEN 32 WHEN - 42 THEN NULL END, - ( - 92 ) ) * + + 80
----
7315

onlyif mysql # aggregate syntax: 
query I rowsort label-776
SELECT - 48 * - COUNT( * ) + 56 * + 44 AS col1
----
2512

skipif mysql # not compatible
query I rowsort label-776
SELECT - 48 * - COUNT ( * ) + 56 * + 44 AS col1
----
2512

query I rowsort
SELECT + 66 + - - 24
----
90

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-778
SELECT - COALESCE ( + + COUNT( * ), + - 92, + 24 DIV COUNT( * ) * + 50 + + MIN( DISTINCT - 98 ) * - 29 + - + MIN( - + 21 ) ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-778
SELECT - COALESCE ( + + COUNT ( * ), + - 92, + 24 / COUNT ( * ) * + 50 + + MIN ( DISTINCT - 98 ) * - 29 + - + MIN ( - + 21 ) ) AS col2
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-779
SELECT MAX( DISTINCT + - CASE 77 WHEN + 79 THEN + 38 WHEN - - CAST( 25 AS SIGNED ) THEN NULL END ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-779
SELECT MAX ( DISTINCT + - CASE 77 WHEN + 79 THEN + 38 WHEN - - CAST ( 25 AS INTEGER ) THEN NULL END ) AS col1
----
NULL

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-782
SELECT DISTINCT MIN( DISTINCT 13 ) AS col2
----
13

skipif mysql # not compatible
query I rowsort label-782
SELECT DISTINCT MIN ( DISTINCT 13 ) AS col2
----
13

query I rowsort
SELECT DISTINCT 94 * 64
----
6016

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-784
SELECT ALL CASE - CAST( NULL AS SIGNED ) WHEN - - 78 THEN - + 23 + - + COUNT( * ) + - ( + CAST( NULL AS SIGNED ) ) WHEN - ( - ( COUNT( * ) ) ) + + + 38 * - CAST( NULL AS SIGNED ) * + 17 THEN NULL WHEN 66 * + 56 - - 23 THEN + + 83 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-784
SELECT ALL CASE - CAST ( NULL AS INTEGER ) WHEN - - 78 THEN - + 23 + - + COUNT ( * ) + - ( + CAST ( NULL AS INTEGER ) ) WHEN - ( - ( COUNT ( * ) ) ) + + + 38 * - CAST ( NULL AS INTEGER ) * + 17 THEN NULL WHEN 66 * + 56 - - 23 THEN + + 83 END AS col0
----
NULL

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

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

query I rowsort
SELECT DISTINCT 88 * - 19
----
-1672

query I rowsort
SELECT NULLIF ( - 78, + 92 + + 34 ) + - 72 AS col0
----
-150

query I rowsort
SELECT 23 * - + ( + 71 ) AS col1
----
-1633

query I rowsort
SELECT DISTINCT + 86 + 12 AS col0
----
98

query I rowsort
SELECT 13 * 51 AS col0
----
663

onlyif mysql # aggregate syntax: 
query I rowsort label-791
SELECT ALL COUNT( * ) + - 61 + - 56 AS col1
----
-116

skipif mysql # not compatible
query I rowsort label-791
SELECT ALL COUNT ( * ) + - 61 + - 56 AS col1
----
-116

query I rowsort
SELECT 19 + + 76
----
95

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-794
SELECT ALL + 36 + + 55 AS col1, + MAX( + ( - - 77 ) ) col2
----
91
77

skipif mysql # not compatible
query II rowsort label-794
SELECT ALL + 36 + + 55 AS col1, + MAX ( + ( - - 77 ) ) col2
----
91
77

query I rowsort
SELECT DISTINCT + 78 + + - ( + + 96 ) AS col1
----
-18

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

skipif mysql # not compatible
query I rowsort label-796
SELECT ALL COUNT ( * ) + 18 AS col2
----
19

onlyif mysql # DIV for integer division: 
query I rowsort label-797
SELECT 93 DIV + 5
----
18

skipif mysql # not compatible
query I rowsort label-797
SELECT 93 / + 5
----
18

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-798
SELECT ALL + 45 + + 60 + + 47 - 77 * + + 0 - 1 * 44 DIV + 89 + - CASE 92 WHEN CAST( 16 AS SIGNED ) THEN NULL WHEN 86 THEN + 63 ELSE + + NULLIF ( + + 37, - 40 ) END + - 42 * - 77 * - ( 61 ) AS col2
----
-197159

skipif mysql # not compatible
query I rowsort label-798
SELECT ALL + 45 + + 60 + + 47 - 77 * + + 0 - 1 * 44 / + 89 + - CASE 92 WHEN CAST ( 16 AS INTEGER ) THEN NULL WHEN 86 THEN + 63 ELSE + + NULLIF ( + + 37, - 40 ) END + - 42 * - 77 * - ( 61 ) AS col2
----
-197159

query I rowsort
SELECT 24 * - 78
----
-1872

query II rowsort
SELECT ( + 21 ) AS col1, 22
----
21
22

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-803
SELECT ALL + CASE - + 90 WHEN - - 95 + 78 THEN COALESCE ( 53, - 47 * - + 94 ) END + - COUNT( * ) * + - 14
----
NULL

skipif mysql # not compatible
query I rowsort label-803
SELECT ALL + CASE - + 90 WHEN - - 95 + 78 THEN COALESCE ( 53, - 47 * - + 94 ) END + - COUNT ( * ) * + - 14
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-804
SELECT COUNT( * ) DIV + 98 AS col0, - 70 AS col0
----
0
-70

skipif mysql # not compatible
query II rowsort label-804
SELECT COUNT ( * ) / + 98 AS col0, - 70 AS col0
----
0
-70

onlyif mysql # DIV for integer division: 
query I rowsort label-805
SELECT ALL + ( 1 ) + 8 DIV - ( - 16 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-805
SELECT ALL + ( 1 ) + 8 / - ( - 16 ) AS col2
----
1

query I rowsort
SELECT 62 * + 58
----
3596

query I rowsort
SELECT + - 93 col1
----
-93

query I rowsort
SELECT DISTINCT - - 22 col2
----
22

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-809
SELECT ALL - + 20 DIV - SUM( DISTINCT + 4 )
----
5

skipif mysql # not compatible
query I rowsort label-809
SELECT ALL - + 20 / - SUM ( DISTINCT + 4 )
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-810
SELECT - MAX( + + 91 ) * - COUNT( * ) * - 72 * - 13 AS col2
----
85176

skipif mysql # not compatible
query I rowsort label-810
SELECT - MAX ( + + 91 ) * - COUNT ( * ) * - 72 * - 13 AS col2
----
85176

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-812
SELECT DISTINCT - 2 - + NULLIF ( + COALESCE ( + - 53, + - 17 + 1 ), + CAST( NULL AS SIGNED ) * 12 * + 27 - - 99 / - 60 ) AS col2
----
51

skipif mysql # not compatible
query I rowsort label-812
SELECT DISTINCT - 2 - + NULLIF ( + COALESCE ( + - 53, + - 17 + 1 ), + CAST ( NULL AS INTEGER ) * 12 * + 27 - - 99 / - 60 ) AS col2
----
51

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

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

query II rowsort
SELECT 29 col2, + 24 - - 45 + - + 29
----
29
40

query I rowsort
SELECT DISTINCT + 61 * + 74 AS col1
----
4514

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-816
SELECT DISTINCT + 53 * - CAST( - 95 AS SIGNED ) col0
----
5035

skipif mysql # not compatible
query I rowsort label-816
SELECT DISTINCT + 53 * - CAST ( - 95 AS INTEGER ) col0
----
5035

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-817
SELECT DISTINCT 36, + NULLIF ( + 14, + 49 * - 78 * - COUNT( * ) ) DIV + COUNT( * ) AS col2
----
36
14

skipif mysql # not compatible
query II rowsort label-817
SELECT DISTINCT 36, + NULLIF ( + 14, + 49 * - 78 * - COUNT ( * ) ) / + COUNT ( * ) AS col2
----
36
14

onlyif mysql # aggregate syntax: 
query II rowsort label-818
SELECT DISTINCT 38, - 50 * - + CASE + MAX( ALL + 33 ) WHEN + 47 THEN - 35 END AS col1
----
38
NULL

skipif mysql # not compatible
query II rowsort label-818
SELECT DISTINCT 38, - 50 * - + CASE + MAX ( ALL + 33 ) WHEN + 47 THEN - 35 END AS col1
----
38
NULL

query I rowsort
SELECT ALL + 35 * 93
----
3255

query I rowsort
SELECT ( - 90 ) - + 51
----
-141

query I rowsort
SELECT 4 * 40
----
160

onlyif mysql # aggregate syntax: 
query I rowsort label-822
SELECT COUNT( * ) - 57 * + 43
----
-2450

skipif mysql # not compatible
query I rowsort label-822
SELECT COUNT ( * ) - 57 * + 43
----
-2450

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-823
SELECT DISTINCT 41 DIV + - 17 * - COUNT( * )
----
2

skipif mysql # not compatible
query I rowsort label-823
SELECT DISTINCT 41 / + - 17 * - COUNT ( * )
----
2

onlyif mysql # DIV for integer division: 
query I rowsort label-824
SELECT 23 DIV - 3
----
-7

skipif mysql # not compatible
query I rowsort label-824
SELECT 23 / - 3
----
-7

query I rowsort
SELECT ALL 76 * + ( - + 85 ) AS col1
----
-6460

query I rowsort
SELECT ALL - 99 + - - 70 + + 82 * - - 5 * - 20
----
-8229

onlyif mysql # DIV for integer division: 
query I rowsort label-827
SELECT DISTINCT - 90 DIV 14 * + - 14
----
84

skipif mysql # not compatible
query I rowsort label-827
SELECT DISTINCT - 90 / 14 * + - 14
----
84

onlyif mysql # aggregate syntax: 
query II rowsort label-828
SELECT ALL 40 + - 18 + 30 - - 89 * 63 * - 64 * + COALESCE ( + 94, + ( - - 89 ) + + COUNT( * ) + - 29, + 9 ), + 85 - + 27 AS col2
----
-33731660
58

skipif mysql # not compatible
query II rowsort label-828
SELECT ALL 40 + - 18 + 30 - - 89 * 63 * - 64 * + COALESCE ( + 94, + ( - - 89 ) + + COUNT ( * ) + - 29, + 9 ), + 85 - + 27 AS col2
----
-33731660
58

onlyif mysql # DIV for integer division: 
query I rowsort label-829
SELECT DISTINCT 63 DIV 29
----
2

skipif mysql # not compatible
query I rowsort label-829
SELECT DISTINCT 63 / 29
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-830
SELECT ALL - 46 * CASE + 93 WHEN + - 42 * + ( + + 84 ) - + + 97 + + 59 + + COUNT( * ) THEN - MIN( ALL + 5 ) WHEN - 98 THEN + 45 END + COUNT( * ) - 4 * + 84 * - - 95 * 0 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-830
SELECT ALL - 46 * CASE + 93 WHEN + - 42 * + ( + + 84 ) - + + 97 + + 59 + + COUNT ( * ) THEN - MIN ( ALL + 5 ) WHEN - 98 THEN + 45 END + COUNT ( * ) - 4 * + 84 * - - 95 * 0 AS col0
----
NULL

query II rowsort
SELECT ALL - 18, NULLIF ( - 23, 46 ) + + + ( + + 72 ) * 7 AS col2
----
-18
481

query I rowsort
SELECT + - 62 col2
----
-62

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

skipif mysql # not compatible
query I rowsort label-833
SELECT DISTINCT - MAX ( ALL + + 1 ) AS col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-834
SELECT ALL - SUM( + + 48 ) + - + COUNT( - 2 )
----
-49

skipif mysql # not compatible
query I rowsort label-834
SELECT ALL - SUM ( + + 48 ) + - + COUNT ( - 2 )
----
-49

onlyif mysql # DIV for integer division: 
query I rowsort label-835
SELECT - 51 DIV - - 30 - ( + 80 )
----
-81

skipif mysql # not compatible
query I rowsort label-835
SELECT - 51 / - - 30 - ( + 80 )
----
-81

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

query I rowsort
SELECT ALL - 14 + - 93
----
-107

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

onlyif mysql # aggregate syntax: 
query I rowsort label-839
SELECT ALL + - 59 - - - SUM( + + 18 ) - + 73
----
-150

skipif mysql # not compatible
query I rowsort label-839
SELECT ALL + - 59 - - - SUM ( + + 18 ) - + 73
----
-150

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

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

query I rowsort
SELECT DISTINCT - - 6
----
6

query I rowsort
SELECT DISTINCT - 6 - - 22 + 22 + - 4 AS col1
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-843
SELECT ALL - SUM( ( + - 49 ) ) - - 90 + + COUNT( * ) - 42 col1
----
98

skipif mysql # not compatible
query I rowsort label-843
SELECT ALL - SUM ( ( + - 49 ) ) - - 90 + + COUNT ( * ) - 42 col1
----
98

query I rowsort
SELECT 41 * - 40 * - 30 + - - 19
----
49219

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

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

query II rowsort
SELECT + 65 AS col2, 56 + ( - 88 )
----
65
-32

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

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

query II rowsort
SELECT ALL - + 13, 16 AS col1
----
-13
16

query I rowsort
SELECT DISTINCT - ( 92 ) AS col0
----
-92

query I rowsort
SELECT 72 + - 15
----
57

onlyif mysql # DIV for integer division: 
query I rowsort label-851
SELECT 79 DIV + ( - + 28 )
----
-2

skipif mysql # not compatible
query I rowsort label-851
SELECT 79 / + ( - + 28 )
----
-2

onlyif mysql # DIV for integer division: 
query I rowsort label-852
SELECT DISTINCT - 94 DIV + 25
----
-3

skipif mysql # not compatible
query I rowsort label-852
SELECT DISTINCT - 94 / + 25
----
-3

onlyif mysql # aggregate syntax: 
query II rowsort label-853
SELECT + 58 * 2 * - ( + COUNT( * ) ) * 73 + 33 AS col2, 3 AS col0
----
-8435
3

skipif mysql # not compatible
query II rowsort label-853
SELECT + 58 * 2 * - ( + COUNT ( * ) ) * 73 + 33 AS col2, 3 AS col0
----
-8435
3

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-855
SELECT DISTINCT MAX( ALL - 60 ) AS col0
----
-60

skipif mysql # not compatible
query I rowsort label-855
SELECT DISTINCT MAX ( ALL - 60 ) AS col0
----
-60

query I rowsort
SELECT - 77 + + 60
----
-17

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

skipif mysql # not compatible
query I rowsort label-857
SELECT - 94 * CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-858
SELECT ALL + 4 + + COUNT( * ) * + 38 * - + 36 col0, 91
----
-1364
91

skipif mysql # not compatible
query II rowsort label-858
SELECT ALL + 4 + + COUNT ( * ) * + 38 * - + 36 col0, 91
----
-1364
91

onlyif mysql # aggregate syntax: 
query I rowsort label-859
SELECT ALL + COUNT( * ) + - 68 * MAX( + 39 )
----
-2651

skipif mysql # not compatible
query I rowsort label-859
SELECT ALL + COUNT ( * ) + - 68 * MAX ( + 39 )
----
-2651

query II rowsort
SELECT - 52, - 14 AS col2
----
-52
-14

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-861
SELECT - CASE - 73 WHEN 80 * - ( + 50 ) THEN NULL WHEN - - COUNT( * ) THEN COALESCE ( + 75, - 18 * - 34 + 75 * + 43 - + 51, + - 1 + CASE + 71 WHEN + - 4 THEN NULL WHEN - 21 / - SUM( DISTINCT 84 ) - - 86 + 98 THEN CAST( NULL AS SIGNED ) * + 10 + - 47 * 92 * + 99 + + 67 END * 7 + - 96 ) ELSE NULL END + 46
----
NULL

skipif mysql # not compatible
query I rowsort label-861
SELECT - CASE - 73 WHEN 80 * - ( + 50 ) THEN NULL WHEN - - COUNT ( * ) THEN COALESCE ( + 75, - 18 * - 34 + 75 * + 43 - + 51, + - 1 + CASE + 71 WHEN + - 4 THEN NULL WHEN - 21 / - SUM ( DISTINCT 84 ) - - 86 + 98 THEN CAST ( NULL AS INTEGER ) * + 10 + - 47 * 92 * + 99 + + 67 END * 7 + - 96 ) ELSE NULL END + 46
----
NULL

query I rowsort
SELECT ALL - 13 * - - 66 AS col1
----
-858

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

skipif mysql # not compatible
query I rowsort label-863
SELECT DISTINCT MAX ( 30 )
----
30

query I rowsort
SELECT ALL - 4 + - 44
----
-48

query I rowsort
SELECT ALL + 41 + + 18 AS col0
----
59

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-866
SELECT DISTINCT + COUNT( * ) + + 80 * 99 - 64 - 7 * COALESCE ( + COUNT( * ), - - 91, CAST( NULL AS SIGNED ) * + COUNT( * ) )
----
7850

skipif mysql # not compatible
query I rowsort label-866
SELECT DISTINCT + COUNT ( * ) + + 80 * 99 - 64 - 7 * COALESCE ( + COUNT ( * ), - - 91, CAST ( NULL AS INTEGER ) * + COUNT ( * ) )
----
7850

onlyif mysql # DIV for integer division: 
query I rowsort label-867
SELECT - 22 DIV 12 * + - 49 * 14 col2
----
686

skipif mysql # not compatible
query I rowsort label-867
SELECT - 22 / 12 * + - 49 * 14 col2
----
686

onlyif mysql # aggregate syntax: 
query I rowsort label-868
SELECT + 28 + - + COUNT( * ) AS col2
----
27

skipif mysql # not compatible
query I rowsort label-868
SELECT + 28 + - + COUNT ( * ) AS col2
----
27

query I rowsort
SELECT DISTINCT COALESCE ( + + COALESCE ( 61, + - 40 ), + - 27 )
----
61

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-870
SELECT ALL - 29 DIV 26 + + + COUNT( * ) + + + 12 + 13
----
25

skipif mysql # not compatible
query I rowsort label-870
SELECT ALL - 29 / 26 + + + COUNT ( * ) + + + 12 + 13
----
25

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-873
SELECT - MIN( - 99 ) + MAX( ALL + 1 )
----
100

skipif mysql # not compatible
query I rowsort label-873
SELECT - MIN ( - 99 ) + MAX ( ALL + 1 )
----
100

query I rowsort
SELECT ALL + 13 * + 84 + + + ( - 95 ) + - - ( - + ( - 62 ) ) + + 30 + - - NULLIF ( 23, + 78 ) * 37
----
1940

onlyif mysql # aggregate syntax: 
query I rowsort label-875
SELECT ALL - MAX( ALL 91 ) * - COUNT( DISTINCT + 88 ) AS col0
----
91

skipif mysql # not compatible
query I rowsort label-875
SELECT ALL - MAX ( ALL 91 ) * - COUNT ( DISTINCT + 88 ) AS col0
----
91

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-877
SELECT + 36 * + 97 + + 45 + CAST( + - 73 AS SIGNED ) AS col0
----
3464

skipif mysql # not compatible
query I rowsort label-877
SELECT + 36 * + 97 + + 45 + CAST ( + - 73 AS INTEGER ) AS col0
----
3464

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

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

query II rowsort
SELECT 62 AS col1, + 10 AS col2
----
62
10

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-880
SELECT + 48 DIV ( - 58 ) * COUNT( * ) * + - 27 DIV + - 7 + + 36 AS col2
----
36

skipif mysql # not compatible
query I rowsort label-880
SELECT + 48 / ( - 58 ) * COUNT ( * ) * + - 27 / + - 7 + + 36 AS col2
----
36

query I rowsort
SELECT + - 21 * - 81 * 83 AS col1
----
141183

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

query I rowsort
SELECT + 55 * + 82 * 18 - - + 11 + + + 82 + + NULLIF ( - ( - 81 ), 54 )
----
81354

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-884
SELECT CASE - + COUNT( * ) WHEN + + 48 THEN + + CAST( 3 AS SIGNED ) ELSE + COUNT( * ) * - 54 END
----
-54

skipif mysql # not compatible
query I rowsort label-884
SELECT CASE - + COUNT ( * ) WHEN + + 48 THEN + + CAST ( 3 AS INTEGER ) ELSE + COUNT ( * ) * - 54 END
----
-54

query I rowsort
SELECT ALL 30 * 67 AS col0
----
2010

query I rowsort
SELECT + 36 * + NULLIF ( 7, + - 34 )
----
252

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-887
SELECT + 54 * + 23 * + + CAST( NULL AS SIGNED ) * 19 / 66 / + 77 + + 13
----
NULL

skipif mysql # not compatible
query I rowsort label-887
SELECT + 54 * + 23 * + + CAST ( NULL AS INTEGER ) * 19 / 66 / + 77 + + 13
----
NULL

query I rowsort
SELECT + CASE 97 WHEN 45 * + 96 THEN + 3 END AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-889
SELECT - 18 + + 21 + + + ( CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-889
SELECT - 18 + + 21 + + + ( CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-890
SELECT + CAST( + 18 AS SIGNED ) - + 73 AS col0
----
-55

skipif mysql # not compatible
query I rowsort label-890
SELECT + CAST ( + 18 AS INTEGER ) - + 73 AS col0
----
-55

query I rowsort
SELECT DISTINCT 85 * + - 41 + + + 71
----
-3414

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

skipif mysql # not compatible
query I rowsort label-892
SELECT DISTINCT + CAST ( NULL AS INTEGER ) / - - MIN ( ALL - 74 ) AS col1
----
NULL

query I rowsort
SELECT DISTINCT 58 + 65 + 18 col1
----
141

onlyif mysql # DIV for integer division: 
query I rowsort label-894
SELECT ALL + 45 DIV - 72 col1
----
0

skipif mysql # not compatible
query I rowsort label-894
SELECT ALL + 45 / - 72 col1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-895
SELECT - 28 DIV + - COALESCE ( + 42, - - 68 + - - 21 - + 77 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-895
SELECT - 28 / + - COALESCE ( + 42, - - 68 + - - 21 - + 77 ) AS col1
----
0

query I rowsort
SELECT - 87 - - 28 AS col1
----
-59

onlyif mysql # aggregate syntax: 
query II rowsort label-897
SELECT - MIN( ALL + 24 ) col1, 64 * + 80 + + 73 + + 44
----
-24
5237

skipif mysql # not compatible
query II rowsort label-897
SELECT - MIN ( ALL + 24 ) col1, 64 * + 80 + + 73 + + 44
----
-24
5237

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

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

query I rowsort
SELECT DISTINCT - 66 - 88 * + 75 * + + 16
----
-105666

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-900
SELECT DISTINCT - + MIN( + 85 ) * - 51 * - 36 * + - NULLIF ( - - ( + CAST( + 42 AS SIGNED ) ), - 66 )
----
6554520

skipif mysql # not compatible
query I rowsort label-900
SELECT DISTINCT - + MIN ( + 85 ) * - 51 * - 36 * + - NULLIF ( - - ( + CAST ( + 42 AS INTEGER ) ), - 66 )
----
6554520

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

skipif mysql # not compatible
query I rowsort label-901
SELECT ALL - COALESCE ( + + COUNT ( * ), 69 )
----
-1

query I rowsort
SELECT - - 28 * - 17 + - 87
----
-563

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

query I rowsort
SELECT ALL ( + - 81 )
----
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-905
SELECT - + COUNT( * ) + - 62 + + 47 AS col0
----
-16

skipif mysql # not compatible
query I rowsort label-905
SELECT - + COUNT ( * ) + - 62 + + 47 AS col0
----
-16

query I rowsort
SELECT + + 14 col2
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-907
SELECT DISTINCT + + MIN( ALL - 59 )
----
-59

skipif mysql # not compatible
query I rowsort label-907
SELECT DISTINCT + + MIN ( ALL - 59 )
----
-59

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

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

query I rowsort
SELECT 26 * 33 * - 97 * 36 + + ( - - 42 ) + + 9 AS col1
----
-2996085

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-911
SELECT ALL - CAST( NULL AS SIGNED ) + NULLIF ( - COUNT( * ), - - 57 + - + 36 ), 98 AS col2
----
NULL
98

skipif mysql # not compatible
query II rowsort label-911
SELECT ALL - CAST ( NULL AS INTEGER ) + NULLIF ( - COUNT ( * ), - - 57 + - + 36 ), 98 AS col2
----
NULL
98

onlyif mysql # aggregate syntax: 
query I rowsort label-912
SELECT + 16 * - 34 + - - NULLIF ( + 79, + COUNT( * ) ) + + - 53 - - 40 + + + COUNT( * ) AS col2
----
-477

skipif mysql # not compatible
query I rowsort label-912
SELECT + 16 * - 34 + - - NULLIF ( + 79, + COUNT ( * ) ) + + - 53 - - 40 + + + COUNT ( * ) AS col2
----
-477

query I rowsort
SELECT ALL + 29 * + ( + 89 )
----
2581

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

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

query I rowsort
SELECT 98 + + + 5 + - 42 col1
----
61

query I rowsort
SELECT DISTINCT 24 + 76
----
100

onlyif mysql # aggregate syntax: 
query I rowsort label-917
SELECT ALL MIN( + - 81 ) + - 48 - + 2 AS col1
----
-131

skipif mysql # not compatible
query I rowsort label-917
SELECT ALL MIN ( + - 81 ) + - 48 - + 2 AS col1
----
-131

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-918
SELECT COUNT( * ) * - 27 DIV COUNT( * ) col0, COUNT( * ) * COALESCE ( - + ( - COUNT( * ) ), COUNT( - - 50 ) - + 74 ) DIV 83 col0
----
-27
0

skipif mysql # not compatible
query II rowsort label-918
SELECT COUNT ( * ) * - 27 / COUNT ( * ) col0, COUNT ( * ) * COALESCE ( - + ( - COUNT ( * ) ), COUNT ( - - 50 ) - + 74 ) / 83 col0
----
-27
0

query I rowsort
SELECT ALL 59 + - - 92 AS col0
----
151

onlyif mysql # aggregate syntax: 
query I rowsort label-920
SELECT ( - COUNT( * ) ) * + 42 * - + 6 + + 36 + 38 AS col1
----
326

skipif mysql # not compatible
query I rowsort label-920
SELECT ( - COUNT ( * ) ) * + 42 * - + 6 + + 36 + 38 AS col1
----
326

query II rowsort
SELECT ALL - 59 AS col0, 85 AS col0
----
-59
85

query I rowsort
SELECT 94 * - 77 * 82
----
-593516

query I rowsort
SELECT DISTINCT - 4 + 21 AS col1
----
17

onlyif mysql # aggregate syntax: 
query II rowsort label-924
SELECT 69 AS col2, NULLIF ( 73, - 81 / COUNT( * ) )
----
69
73

skipif mysql # not compatible
query II rowsort label-924
SELECT 69 AS col2, NULLIF ( 73, - 81 / COUNT ( * ) )
----
69
73

query II rowsort
SELECT ALL 23 + + 18 * 21 AS col1, 1 AS col0
----
401
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-926
SELECT 50 * + 33 + + + ( - 75 ) + 9 * - 99 * + - 4 - 75 DIV + ( + COUNT( * ) ) col1
----
5064

skipif mysql # not compatible
query I rowsort label-926
SELECT 50 * + 33 + + + ( - 75 ) + 9 * - 99 * + - 4 - 75 / + ( + COUNT ( * ) ) col1
----
5064

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-927
SELECT ALL 6 AS col2, SUM( ALL + 62 ) * + 23 + - + 60 - + CAST( NULL AS SIGNED ) + COUNT( * ) * - 91
----
6
NULL

skipif mysql # not compatible
query II rowsort label-927
SELECT ALL 6 AS col2, SUM ( ALL + 62 ) * + 23 + - + 60 - + CAST ( NULL AS INTEGER ) + COUNT ( * ) * - 91
----
6
NULL

query I rowsort
SELECT 94 + 59 col2
----
153

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-929
SELECT COUNT( + + 89 ) DIV + 40
----
0

skipif mysql # not compatible
query I rowsort label-929
SELECT COUNT ( + + 89 ) / + 40
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-930
SELECT ALL NULLIF ( ( 2 ), + 34 / COUNT( * ) * + + 35 ) * + 19 + + 41 col0
----
79

skipif mysql # not compatible
query I rowsort label-930
SELECT ALL NULLIF ( ( 2 ), + 34 / COUNT ( * ) * + + 35 ) * + 19 + + 41 col0
----
79

query II rowsort
SELECT 7, 34 col0
----
7
34

onlyif mysql # aggregate syntax: 
query I rowsort label-932
SELECT ( + - COUNT( * ) ) + - + 68 * - - CASE + - COUNT( * ) WHEN + 54 THEN CASE + 50 WHEN - 3 THEN - - 50 + + COUNT( * ) + - + COUNT( * ) * - + ( + - 44 ) * + 2 END + 3 END * - - 97
----
NULL

skipif mysql # not compatible
query I rowsort label-932
SELECT ( + - COUNT ( * ) ) + - + 68 * - - CASE + - COUNT ( * ) WHEN + 54 THEN CASE + 50 WHEN - 3 THEN - - 50 + + COUNT ( * ) + - + COUNT ( * ) * - + ( + - 44 ) * + 2 END + 3 END * - - 97
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-933
SELECT ALL CASE + - AVG ( - 59 ) WHEN + + 38 * - 66 THEN + + NULLIF ( COUNT( * ), + COALESCE ( - 63, + 81 + + - ( - 31 ) ) ) + + + 0 * 76 + + 74 + + - 4 END * + 61
----
NULL

skipif mysql # not compatible
query I rowsort label-933
SELECT ALL CASE + - AVG ( - 59 ) WHEN + + 38 * - 66 THEN + + NULLIF ( COUNT ( * ), + COALESCE ( - 63, + 81 + + - ( - 31 ) ) ) + + + 0 * 76 + + 74 + + - 4 END * + 61
----
NULL

query I rowsort
SELECT 37 + - + 47
----
-10

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

skipif mysql # not compatible
query I rowsort label-935
SELECT ALL + MIN ( - CAST ( - 20 AS INTEGER ) ) AS col1
----
20

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-936
SELECT ALL - NULLIF ( + 71, - CASE + 45 WHEN + + 51 THEN + CASE - - 55 WHEN - 68 THEN + + CAST( NULL AS SIGNED ) + 24 WHEN + COALESCE ( + 48, + CASE + + 74 WHEN - + CAST( NULL AS SIGNED ) THEN 66 * + 85 END * - 36 * ( - 3 ) ) * ( + 98 ) * + + 40 * + ( + 43 ) THEN NULL ELSE NULL END ELSE 21 END )
----
-71

skipif mysql # not compatible
query I rowsort label-936
SELECT ALL - NULLIF ( + 71, - CASE + 45 WHEN + + 51 THEN + CASE - - 55 WHEN - 68 THEN + + CAST ( NULL AS INTEGER ) + 24 WHEN + COALESCE ( + 48, + CASE + + 74 WHEN - + CAST ( NULL AS INTEGER ) THEN 66 * + 85 END * - 36 * ( - 3 ) ) * ( + 98 ) * + + 40 * + ( + 43 ) THEN NULL ELSE NULL END ELSE 21 END )
----
-71

query I rowsort
SELECT + ( - 72 ) * - NULLIF ( + 98, + 76 )
----
7056

query I rowsort
SELECT ALL + + 53 * + + 66 AS col0
----
3498

query I rowsort
SELECT 13 + 9
----
22

query I rowsort
SELECT DISTINCT 73 - + 70 AS col2
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-941
SELECT DISTINCT + CAST( NULL AS SIGNED ) / 25 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-941
SELECT DISTINCT + CAST ( NULL AS INTEGER ) / 25 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-942
SELECT 6 + - + 71 - ( - - COUNT( * ) ) + + 27 + 91 * - 27 * + 70
----
-172029

skipif mysql # not compatible
query I rowsort label-942
SELECT 6 + - + 71 - ( - - COUNT ( * ) ) + + 27 + 91 * - 27 * + 70
----
-172029

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-943
SELECT - 74 * + 47 + - CAST( - CASE 80 WHEN - 14 THEN 10 END AS SIGNED ) * + - 76 + + 36 / + MIN( + 64 ) + CAST( NULL AS SIGNED ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-943
SELECT - 74 * + 47 + - CAST ( - CASE 80 WHEN - 14 THEN 10 END AS INTEGER ) * + - 76 + + 36 / + MIN ( + 64 ) + CAST ( NULL AS INTEGER ) col0
----
NULL

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

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

query I rowsort
SELECT ALL - + ( + 40 )
----
-40

query I rowsort
SELECT + 10 * + + CASE - + 87 WHEN 82 THEN + 91 ELSE + 64 END + 34 * + - 3 + + 71
----
609

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

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

query I rowsort
SELECT DISTINCT + 33 * + + 8 col0
----
264

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

onlyif mysql # aggregate syntax: 
query II rowsort label-950
SELECT - 76 * + COUNT( - CASE - 90 WHEN + - 40 THEN 47 END ) AS col1, + 94 + + 4 AS col1
----
0
98

skipif mysql # not compatible
query II rowsort label-950
SELECT - 76 * + COUNT ( - CASE - 90 WHEN + - 40 THEN 47 END ) AS col1, + 94 + + 4 AS col1
----
0
98

query II rowsort
SELECT + 40, - 58 AS col1
----
40
-58

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

skipif mysql # not compatible
query I rowsort label-952
SELECT ALL - COUNT ( * ) + 69 AS col0
----
68

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

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

skipif mysql # not compatible
query I rowsort label-954
SELECT 88 * - ( COUNT ( DISTINCT + 4 ) ) AS col0
----
-88

query I rowsort
SELECT DISTINCT ( + 27 ) * + 90
----
2430

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

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

query I rowsort
SELECT ALL + 82 * 70 col0
----
5740

onlyif mysql # DIV for integer division: 
query I rowsort label-958
SELECT 97 + - 36 DIV 20
----
96

skipif mysql # not compatible
query I rowsort label-958
SELECT 97 + - 36 / 20
----
96

onlyif mysql # DIV for integer division: 
query I rowsort label-959
SELECT 32 DIV + + 34 * - 3 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-959
SELECT 32 / + + 34 * - 3 AS col0
----
0

query I rowsort
SELECT 3 * + 55
----
165

onlyif mysql # aggregate syntax: 
query I rowsort label-961
SELECT + MIN( DISTINCT + 7 )
----
7

skipif mysql # not compatible
query I rowsort label-961
SELECT + MIN ( DISTINCT + 7 )
----
7

query I rowsort
SELECT 22 - + 39
----
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-963
SELECT DISTINCT SUM( + - 81 ) col1
----
-81

skipif mysql # not compatible
query I rowsort label-963
SELECT DISTINCT SUM ( + - 81 ) col1
----
-81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-964
SELECT - 63 * COUNT( * ) + 61 * - MIN( - + CAST( NULL AS SIGNED ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-964
SELECT - 63 * COUNT ( * ) + 61 * - MIN ( - + CAST ( NULL AS INTEGER ) ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-965
SELECT NULLIF ( - - 26, + MAX( - 92 ) ) * + 45
----
1170

skipif mysql # not compatible
query I rowsort label-965
SELECT NULLIF ( - - 26, + MAX ( - 92 ) ) * + 45
----
1170

query II rowsort
SELECT DISTINCT 57 * - 90 AS col2, 34
----
-5130
34

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-967
SELECT ALL 16 - SUM( ALL - 79 ) + - - 8 * 40 + + COUNT( DISTINCT - - 80 ) + + 33 * + 1 DIV - 71 * 53
----
416

skipif mysql # not compatible
query I rowsort label-967
SELECT ALL 16 - SUM ( ALL - 79 ) + - - 8 * 40 + + COUNT ( DISTINCT - - 80 ) + + 33 * + 1 / - 71 * 53
----
416

query I rowsort
SELECT - 31 * 15
----
-465

onlyif mysql # aggregate syntax: 
query I rowsort label-969
SELECT DISTINCT - CASE - 50 WHEN - + 98 * - + 28 * - 88 THEN COALESCE ( - 88, + 10 + 45 ) + - 79 END * 75 * - COUNT( + + 87 ) / - ( 36 ) * + 35 * - 40 + + + 93 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-969
SELECT DISTINCT - CASE - 50 WHEN - + 98 * - + 28 * - 88 THEN COALESCE ( - 88, + 10 + 45 ) + - 79 END * 75 * - COUNT ( + + 87 ) / - ( 36 ) * + 35 * - 40 + + + 93 col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-970
SELECT ALL MIN( DISTINCT + 18 ) * + 55 + 42 col2, CAST( NULL AS DECIMAL ) AS col0
----
1032
NULL

skipif mysql # not compatible
query II rowsort label-970
SELECT ALL MIN ( DISTINCT + 18 ) * + 55 + 42 col2, CAST ( NULL AS REAL ) AS col0
----
1032
NULL

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

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

query II rowsort
SELECT ALL 50 + + - 54 AS col0, 36 AS col0
----
-4
36

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-973
SELECT COUNT( * ) DIV + - 89 AS col2, 72 AS col2
----
0
72

skipif mysql # not compatible
query II rowsort label-973
SELECT COUNT ( * ) / + - 89 AS col2, 72 AS col2
----
0
72

query II rowsort
SELECT ALL - + 33 + - 91, + 28 AS col2
----
-124
28

onlyif mysql # aggregate syntax: 
query II rowsort label-975
SELECT + 3 - - 58 AS col0, 5 * - 12 * - COUNT( * )
----
61
60

skipif mysql # not compatible
query II rowsort label-975
SELECT + 3 - - 58 AS col0, 5 * - 12 * - COUNT ( * )
----
61
60

onlyif mysql # aggregate syntax: 
query I rowsort label-976
SELECT ALL 77 + + + NULLIF ( + ( - NULLIF ( + + 2, + 18 / + 45 ) ), + 7 ) - 35 + - - COALESCE ( - + 4, + MAX( + 94 ) ) * - - 97 * - - 35 AS col1
----
-13540

skipif mysql # not compatible
query I rowsort label-976
SELECT ALL 77 + + + NULLIF ( + ( - NULLIF ( + + 2, + 18 / + 45 ) ), + 7 ) - 35 + - - COALESCE ( - + 4, + MAX ( + 94 ) ) * - - 97 * - - 35 AS col1
----
-13540

onlyif mysql # DIV for integer division: 
query I rowsort label-977
SELECT - 30 DIV 21
----
-1

skipif mysql # not compatible
query I rowsort label-977
SELECT - 30 / 21
----
-1

query I rowsort
SELECT ALL - 84 * 82 + 87 + - 20
----
-6821

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-980
SELECT + COUNT( DISTINCT - 41 ) / COUNT( * ) - + - ( + + CAST( + + 36 AS SIGNED ) ) * + 49 - + + 89 + - 67 - 7 * + - CAST( NULL AS SIGNED ) / + ( + - 54 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-980
SELECT + COUNT ( DISTINCT - 41 ) / COUNT ( * ) - + - ( + + CAST ( + + 36 AS INTEGER ) ) * + 49 - + + 89 + - 67 - 7 * + - CAST ( NULL AS INTEGER ) / + ( + - 54 ) AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-981
SELECT + + 20 DIV 77 + + COUNT( * ) + - + 64 AS col0, + MAX( ALL 46 )
----
-63
46

skipif mysql # not compatible
query II rowsort label-981
SELECT + + 20 / 77 + + COUNT ( * ) + - + 64 AS col0, + MAX ( ALL 46 )
----
-63
46

query I rowsort
SELECT DISTINCT 12 * + - 83 * + 64 + + 68 AS col1
----
-63676

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-983
SELECT - CAST( NULL AS SIGNED ) + + NULLIF ( CAST( + - COALESCE ( - 50, + + NULLIF ( + - 14, - COUNT( * ) ) * 18 * - 74 * + COUNT( * ), 10 + 38 * - 76 * - ( - - 75 ) ) AS DECIMAL ), - 1 ) + - - 43 + - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-983
SELECT - CAST ( NULL AS INTEGER ) + + NULLIF ( CAST ( + - COALESCE ( - 50, + + NULLIF ( + - 14, - COUNT ( * ) ) * 18 * - 74 * + COUNT ( * ), 10 + 38 * - 76 * - ( - - 75 ) ) AS REAL ), - 1 ) + - - 43 + - COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-984
SELECT COALESCE ( - - COUNT( * ), + - 20 - - 94 )
----
1

skipif mysql # not compatible
query I rowsort label-984
SELECT COALESCE ( - - COUNT ( * ), + - 20 - - 94 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-985
SELECT 58 * + - COUNT( * ) + + + MIN( 1 )
----
-57

skipif mysql # not compatible
query I rowsort label-985
SELECT 58 * + - COUNT ( * ) + + + MIN ( 1 )
----
-57

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

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

query I rowsort
SELECT ALL + 59 * - 53 col2
----
-3127

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-988
SELECT + CAST( NULL AS SIGNED ) + - 21 + - 9 * + 19 * 91 * + - 12 * - 3 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-988
SELECT + CAST ( NULL AS INTEGER ) + - 21 + - 9 * + 19 * 91 * + - 12 * - 3 AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-989
SELECT - 42 * + + 87 - + NULLIF ( + 36, + 92 - - NULLIF ( CAST( NULL AS SIGNED ), ( + 94 ) ) ) AS col0
----
-3690

skipif mysql # not compatible
query I rowsort label-989
SELECT - 42 * + + 87 - + NULLIF ( + 36, + 92 - - NULLIF ( CAST ( NULL AS INTEGER ), ( + 94 ) ) ) AS col0
----
-3690

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-991
SELECT ALL + COALESCE ( - - COUNT( * ), + - 64 + 23, + CASE 87 WHEN COUNT( * ) * - 30 * - - COUNT( * ) + - 89 THEN NULL WHEN + MAX( + 67 ) - + 49 THEN NULL ELSE - - 45 END + + - 72 ) * - - 22 - - 66
----
88

skipif mysql # not compatible
query I rowsort label-991
SELECT ALL + COALESCE ( - - COUNT ( * ), + - 64 + 23, + CASE 87 WHEN COUNT ( * ) * - 30 * - - COUNT ( * ) + - 89 THEN NULL WHEN + MAX ( + 67 ) - + 49 THEN NULL ELSE - - 45 END + + - 72 ) * - - 22 - - 66
----
88

query I rowsort
SELECT NULLIF ( - 83, + + 26 ) col2
----
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-993
SELECT - 82 * + + ( - MAX( ALL - 21 ) ) * - - 61 + - 37 * + 60 * - 36
----
-25122

skipif mysql # not compatible
query I rowsort label-993
SELECT - 82 * + + ( - MAX ( ALL - 21 ) ) * - - 61 + - 37 * + 60 * - 36
----
-25122

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-994
SELECT ALL - CAST( NULL AS SIGNED ) / CAST( + 74 AS SIGNED ) * - 49
----
NULL

skipif mysql # not compatible
query I rowsort label-994
SELECT ALL - CAST ( NULL AS INTEGER ) / CAST ( + 74 AS INTEGER ) * - 49
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-996
SELECT ALL + CASE + - 50 WHEN - + 31 - + + ( - NULLIF ( - 39, + 41 * - 89 + - 39 + 8 + - COALESCE ( 27, - ( + COUNT( * ) ) ) + 3 / 39 / + 90 * ( 91 ) / - 83 + COUNT( * ) + - 49 + - 70 * - 13 ) ) THEN NULL ELSE + - 48 + - 6 END AS col2
----
-54

skipif mysql # not compatible
query I rowsort label-996
SELECT ALL + CASE + - 50 WHEN - + 31 - + + ( - NULLIF ( - 39, + 41 * - 89 + - 39 + 8 + - COALESCE ( 27, - ( + COUNT ( * ) ) ) + 3 / 39 / + 90 * ( 91 ) / - 83 + COUNT ( * ) + - 49 + - 70 * - 13 ) ) THEN NULL ELSE + - 48 + - 6 END AS col2
----
-54

query I rowsort
SELECT ALL - 96 * + ( 12 )
----
-1152

query I rowsort
SELECT - 28 + 6 * 89
----
506

onlyif mysql # DIV for integer division: 
query I rowsort label-999
SELECT ALL - 23 DIV - ( - + 87 )
----
0

skipif mysql # not compatible
query I rowsort label-999
SELECT ALL - 23 / - ( - + 87 )
----
0

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1001
SELECT - 97 * + - 81 + - COALESCE ( - 63, 55 * + + 11 DIV - NULLIF ( - 36, - ( + CAST( 54 AS SIGNED ) ) ) ) * - COUNT( * ) AS col0
----
7794

skipif mysql # not compatible
query I rowsort label-1001
SELECT - 97 * + - 81 + - COALESCE ( - 63, 55 * + + 11 / - NULLIF ( - 36, - ( + CAST ( 54 AS INTEGER ) ) ) ) * - COUNT ( * ) AS col0
----
7794

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1004
SELECT ALL - CAST( 62 AS SIGNED ) * 17
----
-1054

skipif mysql # not compatible
query I rowsort label-1004
SELECT ALL - CAST ( 62 AS INTEGER ) * 17
----
-1054

onlyif mysql # DIV for integer division: 
query I rowsort label-1005
SELECT - + 29 DIV + + 53
----
0

skipif mysql # not compatible
query I rowsort label-1005
SELECT - + 29 / + + 53
----
0

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1008
SELECT - - NULLIF ( - 98, + + CAST( 48 AS SIGNED ) ) AS col2
----
-98

skipif mysql # not compatible
query I rowsort label-1008
SELECT - - NULLIF ( - 98, + + CAST ( 48 AS INTEGER ) ) AS col2
----
-98

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

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

query I rowsort
SELECT ALL 82 + CASE - - 64 WHEN - 28 THEN 12 END * + 54
----
NULL

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1012
SELECT DISTINCT - 58 + + - COALESCE ( - COUNT( * ), - CAST( NULL AS SIGNED ) + ( - 43 ), - MIN( DISTINCT + 90 ) + + 94 - - SUM( ALL + ( - 41 ) ) + - 98 DIV COUNT( * ) * - 11 * - MIN( ALL 37 ) * + 93 * - - 17 ) AS col0
----
-57

skipif mysql # not compatible
query I rowsort label-1012
SELECT DISTINCT - 58 + + - COALESCE ( - COUNT ( * ), - CAST ( NULL AS INTEGER ) + ( - 43 ), - MIN ( DISTINCT + 90 ) + + 94 - - SUM ( ALL + ( - 41 ) ) + - 98 / COUNT ( * ) * - 11 * - MIN ( ALL 37 ) * + 93 * - - 17 ) AS col0
----
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-1013
SELECT ALL + + MAX( DISTINCT - 59 ) + + 61
----
2

skipif mysql # not compatible
query I rowsort label-1013
SELECT ALL + + MAX ( DISTINCT - 59 ) + + 61
----
2

query I rowsort
SELECT DISTINCT 4 + - 31 * - 17
----
531

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-1016
SELECT ALL - 3 + 18 * + 97 + + 8 + + 91 * + + CAST( NULL AS DECIMAL ) + + ( + - 98 ), COUNT( * ) * + CAST( NULL AS SIGNED ) / - ( + MIN( DISTINCT + 92 ) ) * 43 * 41 / + 97 + + COALESCE ( - - COUNT( DISTINCT + - 15 ), - + 6 / 42, + 4 * + - COUNT( * ) + 68 ) * + 34 AS col0
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-1016
SELECT ALL - 3 + 18 * + 97 + + 8 + + 91 * + + CAST ( NULL AS REAL ) + + ( + - 98 ), COUNT ( * ) * + CAST ( NULL AS INTEGER ) / - ( + MIN ( DISTINCT + 92 ) ) * 43 * 41 / + 97 + + COALESCE ( - - COUNT ( DISTINCT + - 15 ), - + 6 / 42, + 4 * + - COUNT ( * ) + 68 ) * + 34 AS col0
----
NULL
NULL

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

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

query I rowsort
SELECT DISTINCT - CASE - 17 WHEN - 67 * 28 THEN NULL WHEN + 39 THEN + ( + 89 ) END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1019
SELECT - + 28 * - CAST( - 20 AS SIGNED ) + - CAST( NULL AS DECIMAL ) + COUNT( * ) + + - 41
----
NULL

skipif mysql # not compatible
query I rowsort label-1019
SELECT - + 28 * - CAST ( - 20 AS INTEGER ) + - CAST ( NULL AS REAL ) + COUNT ( * ) + + - 41
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1020
SELECT + + 22 + 48 - - CAST( NULL AS SIGNED ) / - 49 * - + CAST( - - 84 AS SIGNED ) / - 70 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1020
SELECT + + 22 + 48 - - CAST ( NULL AS INTEGER ) / - 49 * - + CAST ( - - 84 AS INTEGER ) / - 70 AS col1
----
NULL

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1023
SELECT ALL + CASE + - 94 WHEN - 84 - 61 + - AVG ( ALL + 99 ) * - + 14 / + COUNT( * ) * - + 99 * + CASE - - 71 WHEN + + CAST( NULL AS SIGNED ) + - 53 + - + 18 + - - MAX( DISTINCT 63 ) * 0 * 40 * 2 * - 87 THEN - ( + COUNT( * ) ) + + 94 ELSE + 16 END - - 42 + - 80 THEN NULL WHEN + 67 THEN - 51 END * 72 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1023
SELECT ALL + CASE + - 94 WHEN - 84 - 61 + - AVG ( ALL + 99 ) * - + 14 / + COUNT ( * ) * - + 99 * + CASE - - 71 WHEN + + CAST ( NULL AS INTEGER ) + - 53 + - + 18 + - - MAX ( DISTINCT 63 ) * 0 * 40 * 2 * - 87 THEN - ( + COUNT ( * ) ) + + 94 ELSE + 16 END - - 42 + - 80 THEN NULL WHEN + 67 THEN - 51 END * 72 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1024
SELECT + + 73 + - COUNT( * ) AS col2
----
72

skipif mysql # not compatible
query I rowsort label-1024
SELECT + + 73 + - COUNT ( * ) AS col2
----
72

query I rowsort
SELECT + 67 * - + NULLIF ( - ( - - 31 ), 13 + + + 1 * - 75 ) AS col1
----
2077

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1027
SELECT ALL + 25 DIV 81 - + COUNT( * ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-1027
SELECT ALL + 25 / 81 - + COUNT ( * ) AS col1
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-1028
SELECT DISTINCT 65 * 63 DIV + - 42
----
-97

skipif mysql # not compatible
query I rowsort label-1028
SELECT DISTINCT 65 * 63 / + - 42
----
-97

onlyif mysql # DIV for integer division: 
query I rowsort label-1029
SELECT ALL - 75 DIV - + 16 - + 76 + - 81 AS col1
----
-153

skipif mysql # not compatible
query I rowsort label-1029
SELECT ALL - 75 / - + 16 - + 76 + - 81 AS col1
----
-153

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

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

query I rowsort
SELECT + COALESCE ( + + ( - - 27 ), 37 * - + 20 )
----
27

query I rowsort
SELECT 54 * - - 87 + 41 + - - 89
----
4828

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1034
SELECT + 0 * 49 * - 8 * + 42 * - MIN( - 96 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-1034
SELECT + 0 * 49 * - 8 * + 42 * - MIN ( - 96 ) AS col0
----
0

query II rowsort
SELECT + 59 * + - 44 AS col2, 68 * - 88 AS col1
----
-2596
-5984

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1036
SELECT + 76 / - 93 / + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1036
SELECT + 76 / - 93 / + CAST ( NULL AS INTEGER ) AS col0
----
NULL

query II rowsort
SELECT ( + 60 ), 16 col0
----
60
16

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

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

query I rowsort
SELECT ALL + 21 / + 57 - - + CASE - ( 85 ) WHEN - - 44 THEN NULL WHEN + 26 THEN - ( 6 ) + - 56 ELSE NULL END
----
NULL

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

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

query I rowsort
SELECT DISTINCT - 10 * + 70
----
-700

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

query I rowsort
SELECT + 34 * + 51
----
1734

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1044
SELECT DISTINCT - 39 * CAST( NULL AS SIGNED ) + + - 88 + - SUM( DISTINCT - 78 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1044
SELECT DISTINCT - 39 * CAST ( NULL AS INTEGER ) + + - 88 + - SUM ( DISTINCT - 78 )
----
NULL

query I rowsort
SELECT - 92 * + 26
----
-2392

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1047
SELECT ALL ( 18 ) * 72 + - 95 * 36 + + MAX( - - 28 ) - COUNT( * )
----
-2097

skipif mysql # not compatible
query I rowsort label-1047
SELECT ALL ( 18 ) * 72 + - 95 * 36 + + MAX ( - - 28 ) - COUNT ( * )
----
-2097

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1048
SELECT - 49 DIV + 68 col1, 57 + + SUM( DISTINCT + + ( + 92 ) )
----
0
149

skipif mysql # not compatible
query II rowsort label-1048
SELECT - 49 / + 68 col1, 57 + + SUM ( DISTINCT + + ( + 92 ) )
----
0
149

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

skipif mysql # not compatible
query II rowsort label-1049
SELECT ALL COUNT ( * ) AS col2, 19
----
1
19

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

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

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

query I rowsort
SELECT ALL - - 91 + ( + - 66 )
----
25

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1053
SELECT ALL - 62 * + - 23 * - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1053
SELECT ALL - 62 * + - 23 * - CAST ( NULL AS INTEGER ) AS col1
----
NULL

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1056
SELECT 60 * + 85 DIV + + 5 AS col1
----
1020

skipif mysql # not compatible
query I rowsort label-1056
SELECT 60 * + 85 / + + 5 AS col1
----
1020

query I rowsort
SELECT DISTINCT - 55 * 44
----
-2420

query I rowsort
SELECT 39 * - 5 AS col2
----
-195

onlyif mysql # aggregate syntax: 
query I rowsort label-1059
SELECT ALL - COUNT( * ) - + - 25
----
24

skipif mysql # not compatible
query I rowsort label-1059
SELECT ALL - COUNT ( * ) - + - 25
----
24

query II rowsort
SELECT - 59 AS col2, - 99 - 95
----
-59
-194

query I rowsort
SELECT ALL + 30 - + - 10 * + 79
----
820

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1062
SELECT ALL 98 AS col0, CAST( NULL AS SIGNED ) + + 37
----
98
NULL

skipif mysql # not compatible
query II rowsort label-1062
SELECT ALL 98 AS col0, CAST ( NULL AS INTEGER ) + + 37
----
98
NULL

query II rowsort
SELECT 13 - - 9, - 86 AS col2
----
22
-86

query I rowsort
SELECT DISTINCT 48 * 21 AS col1
----
1008

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1065
SELECT 87 + + + CASE - 1 WHEN + 64 + - - 89 THEN 45 WHEN COUNT( * ) * CAST( + 88 AS SIGNED ) THEN + 53 END
----
NULL

skipif mysql # not compatible
query I rowsort label-1065
SELECT 87 + + + CASE - 1 WHEN + 64 + - - 89 THEN 45 WHEN COUNT ( * ) * CAST ( + 88 AS INTEGER ) THEN + 53 END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1066
SELECT ALL + 86 - + + CAST( + 75 AS SIGNED ) + - 75
----
-64

skipif mysql # not compatible
query I rowsort label-1066
SELECT ALL + 86 - + + CAST ( + 75 AS INTEGER ) + - 75
----
-64

onlyif mysql # DIV for integer division: 
query I rowsort label-1067
SELECT 97 + + 28 DIV - + ( - 4 ) AS col1
----
104

skipif mysql # not compatible
query I rowsort label-1067
SELECT 97 + + 28 / - + ( - 4 ) AS col1
----
104

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

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1070
SELECT - 33 DIV - 96 + + + 33 - + + 67 + - - COUNT( * )
----
-33

skipif mysql # not compatible
query I rowsort label-1070
SELECT - 33 / - 96 + + + 33 - + + 67 + - - COUNT ( * )
----
-33

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

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

query II rowsort
SELECT 22 + 85, - 33 AS col1
----
107
-33

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1074
SELECT - 45 * - CAST( NULL AS SIGNED ) + - NULLIF ( COUNT( * ), - 21 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1074
SELECT - 45 * - CAST ( NULL AS INTEGER ) + - NULLIF ( COUNT ( * ), - 21 )
----
NULL

query I rowsort
SELECT ALL 87 + - ( + 50 ) AS col0
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-1076
SELECT 28 * NULLIF ( 91, + 33 * - CASE - + 71 WHEN + 86 * - + COUNT( * ) THEN - 15 * ( + 67 ) END + - 3 ) * CASE 10 WHEN 71 * + + 16 * - + 49 - - - 35 THEN NULL WHEN + + 2 THEN + 40 END - - 37
----
NULL

skipif mysql # not compatible
query I rowsort label-1076
SELECT 28 * NULLIF ( 91, + 33 * - CASE - + 71 WHEN + 86 * - + COUNT ( * ) THEN - 15 * ( + 67 ) END + - 3 ) * CASE 10 WHEN 71 * + + 16 * - + 49 - - - 35 THEN NULL WHEN + + 2 THEN + 40 END - - 37
----
NULL

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

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

query I rowsort
SELECT ( - 40 ) + + 16 * 25
----
360

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1079
SELECT ALL 81 DIV - 69 AS col0, COUNT( * )
----
-1
1

skipif mysql # not compatible
query II rowsort label-1079
SELECT ALL 81 / - 69 AS col0, COUNT ( * )
----
-1
1

query I rowsort
SELECT ALL 55 + - - 84 + ( + 46 ) * - - 55
----
2669

query I rowsort
SELECT DISTINCT - 88 col1
----
-88

query I rowsort
SELECT ALL - + ( 81 ) * - 7 * 88
----
49896

query I rowsort
SELECT ALL - 8 + + 53 * - COALESCE ( - + 9, + - 0 ) + + 1 + + 62 AS col1
----
532

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1084
SELECT + CASE 41 WHEN + + ( + - 23 ) * + 34 * - 23 THEN + - 41 * + 60 * - + 49 WHEN - 52 * 35 THEN NULL WHEN CAST( NULL AS SIGNED ) + + + ( - 50 ) THEN NULL ELSE + 47 END AS col2
----
47

skipif mysql # not compatible
query I rowsort label-1084
SELECT + CASE 41 WHEN + + ( + - 23 ) * + 34 * - 23 THEN + - 41 * + 60 * - + 49 WHEN - 52 * 35 THEN NULL WHEN CAST ( NULL AS INTEGER ) + + + ( - 50 ) THEN NULL ELSE + 47 END AS col2
----
47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1085
SELECT CAST( + + 8 AS SIGNED ) * + 22 AS col1
----
176

skipif mysql # not compatible
query I rowsort label-1085
SELECT CAST ( + + 8 AS INTEGER ) * + 22 AS col1
----
176

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1086
SELECT CAST( NULL AS SIGNED ) * AVG ( 85 ) + + 7
----
NULL

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

query I rowsort
SELECT ALL 44 * - 59 + + + 31
----
-2565

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1090
SELECT + 49 + + - ( + MIN( + - 19 ) )
----
68

skipif mysql # not compatible
query I rowsort label-1090
SELECT + 49 + + - ( + MIN ( + - 19 ) )
----
68

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1091
SELECT DISTINCT + + COUNT( * ) DIV 30 * + - 18 col0
----
0

skipif mysql # not compatible
query I rowsort label-1091
SELECT DISTINCT + + COUNT ( * ) / 30 * + - 18 col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1092
SELECT ALL + + 71 * - COUNT( * ) + + 95
----
24

skipif mysql # not compatible
query I rowsort label-1092
SELECT ALL + + 71 * - COUNT ( * ) + + 95
----
24

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1093
SELECT ALL + - SUM( DISTINCT - 18 ) DIV 72 + + - COUNT( * )
----
-1

skipif mysql # not compatible
query I rowsort label-1093
SELECT ALL + - SUM ( DISTINCT - 18 ) / 72 + + - COUNT ( * )
----
-1

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

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

query I rowsort
SELECT DISTINCT + 57 * 96 AS col2
----
5472

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1097
SELECT 97 * + COUNT( * ) * 84 * 75 * + 35
----
21388500

skipif mysql # not compatible
query I rowsort label-1097
SELECT 97 * + COUNT ( * ) * 84 * 75 * + 35
----
21388500

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1099
SELECT 3 DIV - 46 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-1099
SELECT 3 / - 46 AS col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1100
SELECT DISTINCT SUM( - CAST( + ( - 47 ) AS SIGNED ) )
----
47

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1101
SELECT ALL COUNT( + + 95 )
----
1

skipif mysql # not compatible
query I rowsort label-1101
SELECT ALL COUNT ( + + 95 )
----
1

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

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

query II rowsort
SELECT DISTINCT 93 col0, - 25 + + 28 AS col2
----
93
3

query II rowsort
SELECT ALL 45, 20 * - + 97 AS col0
----
45
-1940

onlyif mysql # aggregate syntax: 
query I rowsort label-1105
SELECT DISTINCT NULLIF ( - - COUNT( * ), - + NULLIF ( - 34, + - 20 * 41 ) ) * + - 53 * + COUNT( * ) + - 95
----
-148

skipif mysql # not compatible
query I rowsort label-1105
SELECT DISTINCT NULLIF ( - - COUNT ( * ), - + NULLIF ( - 34, + - 20 * 41 ) ) * + - 53 * + COUNT ( * ) + - 95
----
-148

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

skipif mysql # not compatible
query I rowsort label-1106
SELECT DISTINCT - SUM ( 0 )
----
0

query I rowsort
SELECT 51 * - 51 AS col1
----
-2601

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1109
SELECT MIN( DISTINCT 97 ) AS col0
----
97

skipif mysql # not compatible
query I rowsort label-1109
SELECT MIN ( DISTINCT 97 ) AS col0
----
97

onlyif mysql # aggregate syntax: 
query II rowsort label-1110
SELECT + COUNT( * ) col1, - 26 + + COUNT( * )
----
1
-25

skipif mysql # not compatible
query II rowsort label-1110
SELECT + COUNT ( * ) col1, - 26 + + COUNT ( * )
----
1
-25

query I rowsort
SELECT DISTINCT 78 * + 65 + 40
----
5110

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1112
SELECT ALL COUNT( * ) * - 41 DIV - CAST( + - 27 AS SIGNED ) + 68 * + 97 AS col1
----
6595

skipif mysql # not compatible
query I rowsort label-1112
SELECT ALL COUNT ( * ) * - 41 / - CAST ( + - 27 AS INTEGER ) + 68 * + 97 AS col1
----
6595

onlyif mysql # aggregate syntax: 
query I rowsort label-1113
SELECT 47 - - 1 + + + 19 * COUNT( * ) * 89 AS col0
----
1739

skipif mysql # not compatible
query I rowsort label-1113
SELECT 47 - - 1 + + + 19 * COUNT ( * ) * 89 AS col0
----
1739

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

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

query I rowsort
SELECT ALL 53 * + 69 + - 47
----
3610

query II rowsort
SELECT + 20 AS col1, + 75 AS col2
----
20
75

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1117
SELECT ALL - 28 col0, ( + 80 ) DIV + 9 + COUNT( * ) AS col0
----
-28
9

skipif mysql # not compatible
query II rowsort label-1117
SELECT ALL - 28 col0, ( + 80 ) / + 9 + COUNT ( * ) AS col0
----
-28
9

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1119
SELECT DISTINCT + + MIN( - 26 ) AS col1
----
-26

skipif mysql # not compatible
query I rowsort label-1119
SELECT DISTINCT + + MIN ( - 26 ) AS col1
----
-26

query I rowsort
SELECT DISTINCT 57 * - - COALESCE ( - + 14, - + 67 + + + 46 ) * + - 73 * + - NULLIF ( 70, + 32 * + 18 ) + + + 53 + + COALESCE ( + 79, + 33 ) - - 7 * - 39 * + 62
----
-4094574

onlyif mysql # aggregate syntax: 
query I rowsort label-1121
SELECT + COALESCE ( + 69, - + 11, + - 89 ) * + 53 - + 19 + + MIN( DISTINCT - 1 ) + + 91 + 21 AS col0
----
3749

skipif mysql # not compatible
query I rowsort label-1121
SELECT + COALESCE ( + 69, - + 11, + - 89 ) * + 53 - + 19 + + MIN ( DISTINCT - 1 ) + + 91 + 21 AS col0
----
3749

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1123
SELECT + + ( - - 61 ) + - 59 + - 48 DIV - + 26
----
3

skipif mysql # not compatible
query I rowsort label-1123
SELECT + + ( - - 61 ) + - 59 + - 48 / - + 26
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1124
SELECT ALL 55 - - CASE + COUNT( * ) WHEN + 94 * 29 THEN - ( + 2 ) ELSE CAST( - 68 AS SIGNED ) END AS col2, 43 DIV 52 * COUNT( * ) AS col0
----
-13
0

skipif mysql # not compatible
query II rowsort label-1124
SELECT ALL 55 - - CASE + COUNT ( * ) WHEN + 94 * 29 THEN - ( + 2 ) ELSE CAST ( - 68 AS INTEGER ) END AS col2, 43 / 52 * COUNT ( * ) AS col0
----
-13
0

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1125
SELECT ALL + CAST( 39 AS SIGNED ) DIV - 83 * - NULLIF ( - 93, + + 63 - + 38 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-1125
SELECT ALL + CAST ( 39 AS INTEGER ) / - 83 * - NULLIF ( - 93, + + 63 - + 38 ) AS col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1126
SELECT + COALESCE ( - + COUNT( * ), + - CAST( 79 AS SIGNED ) * - 2 + + - 44 - - 75 * 88 * + 28 DIV - 6 + 4, 61 ) col0
----
-1

skipif mysql # not compatible
query I rowsort label-1126
SELECT + COALESCE ( - + COUNT ( * ), + - CAST ( 79 AS INTEGER ) * - 2 + + - 44 - - 75 * 88 * + 28 / - 6 + 4, 61 ) col0
----
-1

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1128
SELECT ALL + ( + - COALESCE ( 27, - NULLIF ( - + 65, 90 * - + 47 * - + 16 - - 87 - - + 47 / - COUNT( * ) - + - 67 * 28 - - - 41 ) ) ) * + - 0
----
0

skipif mysql # not compatible
query I rowsort label-1128
SELECT ALL + ( + - COALESCE ( 27, - NULLIF ( - + 65, 90 * - + 47 * - + 16 - - 87 - - + 47 / - COUNT ( * ) - + - 67 * 28 - - - 41 ) ) ) * + - 0
----
0

query II rowsort
SELECT - 71, 67 AS col2
----
-71
67

onlyif mysql # aggregate syntax: 
query II rowsort label-1130
SELECT DISTINCT + SUM( - 54 ) * + 75 AS col0, 75 col0
----
-4050
75

skipif mysql # not compatible
query II rowsort label-1130
SELECT DISTINCT + SUM ( - 54 ) * + 75 AS col0, 75 col0
----
-4050
75

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1132
SELECT DISTINCT CASE - ( 17 ) WHEN + 89 / - 23 + + 18 THEN + + 16 WHEN - CAST( NULL AS DECIMAL ) THEN - 91 ELSE 92 END AS col1
----
92

skipif mysql # not compatible
query I rowsort label-1132
SELECT DISTINCT CASE - ( 17 ) WHEN + 89 / - 23 + + 18 THEN + + 16 WHEN - CAST ( NULL AS REAL ) THEN - 91 ELSE 92 END AS col1
----
92

query I rowsort
SELECT + 60 * + 0 * 73 * - ( - 94 ) AS col2
----
0

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

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

query I rowsort
SELECT + 77 - + 42 * 57 AS col0
----
-2317

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

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

query I rowsort
SELECT DISTINCT COALESCE ( + 51, - + 43 + + 1 * - + 14 ) AS col1
----
51

onlyif mysql # DIV for integer division: 
query I rowsort label-1138
SELECT ALL + 69 DIV - ( - + 46 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-1138
SELECT ALL + 69 / - ( - + 46 ) AS col1
----
1

query I rowsort
SELECT - 29 * 72
----
-2088

query I rowsort
SELECT ALL ( 22 ) + 53 + - ( + 52 ) AS col0
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-1141
SELECT ALL NULLIF ( - CASE 99 WHEN - - COUNT( * ) THEN + - 68 ELSE NULL END, - 17 + + 11 - - COUNT( * ) + - + 59 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1141
SELECT ALL NULLIF ( - CASE 99 WHEN - - COUNT ( * ) THEN + - 68 ELSE NULL END, - 17 + + 11 - - COUNT ( * ) + - + 59 ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1142
SELECT ALL - 96 + - - MAX( + 11 )
----
-85

skipif mysql # not compatible
query I rowsort label-1142
SELECT ALL - 96 + - - MAX ( + 11 )
----
-85

query I rowsort
SELECT - 23 - + 95 - - 25
----
-93

query I rowsort
SELECT + 93 + + + 32
----
125

query I rowsort
SELECT - ( - 55 ) * 44 AS col0
----
2420

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1146
SELECT + 70 + CASE - COUNT( * ) WHEN 38 THEN NULL WHEN + ( 6 ) THEN NULL ELSE + 38 END col0, NULLIF ( + 35, + - 64 * - - 48 * + ( - ( + NULLIF ( + - CAST( NULL AS SIGNED ), CAST( NULL AS SIGNED ) ) ) ) ) AS col1
----
108
35

skipif mysql # not compatible
query II rowsort label-1146
SELECT + 70 + CASE - COUNT ( * ) WHEN 38 THEN NULL WHEN + ( 6 ) THEN NULL ELSE + 38 END col0, NULLIF ( + 35, + - 64 * - - 48 * + ( - ( + NULLIF ( + - CAST ( NULL AS INTEGER ), CAST ( NULL AS INTEGER ) ) ) ) ) AS col1
----
108
35

onlyif mysql # DIV for integer division: 
query I rowsort label-1147
SELECT - 52 DIV + + 7
----
-7

skipif mysql # not compatible
query I rowsort label-1147
SELECT - 52 / + + 7
----
-7

onlyif mysql # DIV for integer division: 
query I rowsort label-1148
SELECT ALL 74 DIV + 19 + - 6 AS col0
----
-3

skipif mysql # not compatible
query I rowsort label-1148
SELECT ALL 74 / + 19 + - 6 AS col0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1149
SELECT ALL 69 * + ( + 30 ) * 48, - 37 / + + CAST( NULL AS SIGNED ) / + 21 AS col1
----
99360
NULL

skipif mysql # not compatible
query II rowsort label-1149
SELECT ALL 69 * + ( + 30 ) * 48, - 37 / + + CAST ( NULL AS INTEGER ) / + 21 AS col1
----
99360
NULL

query I rowsort
SELECT ALL NULLIF ( + 85, + + 0 + - 89 ) * + ( 35 ) * + - 26 AS col1
----
-77350

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

query I rowsort
SELECT DISTINCT + ( - + ( + - ( + 51 ) ) ) * - 41 AS col0
----
-2091

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query I rowsort label-1153
SELECT + 5 DIV 88 * - 28 + NULLIF ( - + 70, - + CASE + 20 WHEN - 81 THEN + COALESCE ( + - 62, + 68 + + - 3 ) + - COUNT( * ) WHEN - - 24 * - 41 THEN NULL WHEN + COUNT( * ) * + 53 DIV + - COUNT( * ) THEN - 83 ELSE NULL END * CAST( NULL AS DECIMAL ) ) col0
----
-70

skipif mysql # not compatible
query I rowsort label-1153
SELECT + 5 / 88 * - 28 + NULLIF ( - + 70, - + CASE + 20 WHEN - 81 THEN + COALESCE ( + - 62, + 68 + + - 3 ) + - COUNT ( * ) WHEN - - 24 * - 41 THEN NULL WHEN + COUNT ( * ) * + 53 / + - COUNT ( * ) THEN - 83 ELSE NULL END * CAST ( NULL AS REAL ) ) col0
----
-70

query I rowsort
SELECT ALL + + 99 col2
----
99

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1155
SELECT 81 DIV - 72 + - 63 * + + 73 * ( - ( + 71 ) ) AS col0, COALESCE ( + 76, - + ( - 8 ), - 48 ) - + 11 + - + SUM( + 90 )
----
326528
-25

skipif mysql # not compatible
query II rowsort label-1155
SELECT 81 / - 72 + - 63 * + + 73 * ( - ( + 71 ) ) AS col0, COALESCE ( + 76, - + ( - 8 ), - 48 ) - + 11 + - + SUM ( + 90 )
----
326528
-25

query I rowsort
SELECT ALL + + 12 col2
----
12

query I rowsort
SELECT + NULLIF ( + 97, - 24 ) col1
----
97

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1159
SELECT ALL + 84 * - - 16 * - COUNT( * ) + 89 col1
----
-1255

skipif mysql # not compatible
query I rowsort label-1159
SELECT ALL + 84 * - - 16 * - COUNT ( * ) + 89 col1
----
-1255

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

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

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

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

query I rowsort
SELECT ALL + + 28 col1
----
28

query I rowsort
SELECT + + 62 + + ( 83 ) * + 64 col2
----
5374

query I rowsort
SELECT - + 61 col1
----
-61

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1167
SELECT + + 18 DIV 13
----
1

skipif mysql # not compatible
query I rowsort label-1167
SELECT + + 18 / 13
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-1168
SELECT + + 13 DIV - + 3 AS col0
----
-4

skipif mysql # not compatible
query I rowsort label-1168
SELECT + + 13 / - + 3 AS col0
----
-4

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

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

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

query II rowsort
SELECT DISTINCT - 82 + - 42 + 99 AS col1, - 71 AS col1
----
-25
-71

query I rowsort
SELECT + 12 * - 21 AS col1
----
-252

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1175
SELECT ALL ( + COALESCE ( + 13, 45 ) ) + - 56 + - 55 + - ( 31 ) DIV + ( + 15 ) AS col1
----
-100

skipif mysql # not compatible
query I rowsort label-1175
SELECT ALL ( + COALESCE ( + 13, 45 ) ) + - 56 + - 55 + - ( 31 ) / + ( + 15 ) AS col1
----
-100

query I rowsort
SELECT DISTINCT 59 + 17
----
76

query I rowsort
SELECT ALL + 64 + - 91 + + 72 * + 58
----
4149

query I rowsort
SELECT - NULLIF ( + 88, + + ( - - 25 ) ) col2
----
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-1179
SELECT + 0 + + 13 * - + COUNT( * ) * + - 35 * + COUNT( * ) * - 33 * 12 + - ( + 82 ) col1
----
-180262

skipif mysql # not compatible
query I rowsort label-1179
SELECT + 0 + + 13 * - + COUNT ( * ) * + - 35 * + COUNT ( * ) * - 33 * 12 + - ( + 82 ) col1
----
-180262

query I rowsort
SELECT ALL 82 + - ( - 59 ) * - 90 + 21
----
-5207

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1182
SELECT DISTINCT 17 + + COALESCE ( 27, MAX( - 33 ) ) * 60 - + 94
----
1543

skipif mysql # not compatible
query I rowsort label-1182
SELECT DISTINCT 17 + + COALESCE ( 27, MAX ( - 33 ) ) * 60 - + 94
----
1543

onlyif mysql # aggregate syntax: 
query I rowsort label-1183
SELECT DISTINCT CASE 30 WHEN - 61 * COUNT( * ) - + 64 THEN NULL WHEN + - 27 THEN - + 1 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1183
SELECT DISTINCT CASE 30 WHEN - 61 * COUNT ( * ) - + 64 THEN NULL WHEN + - 27 THEN - + 1 END AS col0
----
NULL

query I rowsort
SELECT DISTINCT CASE - - 53 WHEN - 85 / + ( 15 ) THEN + ( 48 ) END + + 41
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1185
SELECT ALL - 29 DIV 15
----
-1

skipif mysql # not compatible
query I rowsort label-1185
SELECT ALL - 29 / 15
----
-1

query I rowsort
SELECT DISTINCT - 20 * - + 78
----
1560

query I rowsort
SELECT 82 * 96
----
7872

onlyif mysql # DIV for integer division: 
query I rowsort label-1188
SELECT ALL 16 DIV - 57
----
0

skipif mysql # not compatible
query I rowsort label-1188
SELECT ALL 16 / - 57
----
0

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

skipif mysql # not compatible
query I rowsort label-1189
SELECT + - MIN ( + 83 )
----
-83

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1190
SELECT DISTINCT - 46 * + - CAST( + 31 AS SIGNED )
----
1426

skipif mysql # not compatible
query I rowsort label-1190
SELECT DISTINCT - 46 * + - CAST ( + 31 AS INTEGER )
----
1426

onlyif mysql # aggregate syntax: 
query I rowsort label-1191
SELECT + NULLIF ( 71, - COUNT( * ) )
----
71

skipif mysql # not compatible
query I rowsort label-1191
SELECT + NULLIF ( 71, - COUNT ( * ) )
----
71

onlyif mysql # DIV for integer division: 
query I rowsort label-1192
SELECT - 80 DIV 3 AS col1
----
-26

skipif mysql # not compatible
query I rowsort label-1192
SELECT - 80 / 3 AS col1
----
-26

query I rowsort
SELECT 81 * ( - 42 )
----
-3402

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

skipif mysql # not compatible
query I rowsort label-1194
SELECT SUM ( DISTINCT - 36 )
----
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-1195
SELECT ALL + - 53 * 91 * - - 50 * - - COUNT( * ) * + + MAX( + - 92 ) * + 18
----
399344400

skipif mysql # not compatible
query I rowsort label-1195
SELECT ALL + - 53 * 91 * - - 50 * - - COUNT ( * ) * + + MAX ( + - 92 ) * + 18
----
399344400

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1197
SELECT ALL - - COUNT( * ) DIV + 15 * + CAST( + + 36 AS SIGNED ) + + + CAST( + 60 AS SIGNED ) + - + 2 * + COALESCE ( + 15, - 72 )
----
30

skipif mysql # not compatible
query I rowsort label-1197
SELECT ALL - - COUNT ( * ) / + 15 * + CAST ( + + 36 AS INTEGER ) + + + CAST ( + 60 AS INTEGER ) + - + 2 * + COALESCE ( + 15, - 72 )
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-1198
SELECT CASE - 27 WHEN - ( - COUNT( * ) ) * + + 95 / + 65 THEN + AVG ( DISTINCT + 41 ) - - - 17 WHEN + + COUNT( * ) - + 14 * + - 43 THEN NULL WHEN + COUNT( * ) THEN NULL ELSE NULL END * - 64
----
NULL

skipif mysql # not compatible
query I rowsort label-1198
SELECT CASE - 27 WHEN - ( - COUNT ( * ) ) * + + 95 / + 65 THEN + AVG ( DISTINCT + 41 ) - - - 17 WHEN + + COUNT ( * ) - + 14 * + - 43 THEN NULL WHEN + COUNT ( * ) THEN NULL ELSE NULL END * - 64
----
NULL

query I rowsort
SELECT ALL + 94 * + - 65
----
-6110

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1200
SELECT DISTINCT - + CASE 9 WHEN 98 + 93 * - COALESCE ( - 97, 66, 82 * 0 + - + 73 * 51 ) + 33 THEN + - CASE + AVG ( ALL + 26 ) WHEN COUNT( * ) THEN NULL WHEN + - 76 + + - COUNT( * ) THEN NULL ELSE - 2 + - 62 * COUNT( * ) END WHEN CASE - 50 WHEN - - 86 + 84 THEN 5 WHEN - SUM( ALL + 27 ) * + - 28 + - MIN( ALL + 68 ) + + + 41 THEN - 42 * + 15 ELSE + - CAST( 44 AS DECIMAL ) END * 58 * + 15 * - - COUNT( ALL + - 44 ) THEN NULL ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1200
SELECT DISTINCT - + CASE 9 WHEN 98 + 93 * - COALESCE ( - 97, 66, 82 * 0 + - + 73 * 51 ) + 33 THEN + - CASE + AVG ( ALL + 26 ) WHEN COUNT ( * ) THEN NULL WHEN + - 76 + + - COUNT ( * ) THEN NULL ELSE - 2 + - 62 * COUNT ( * ) END WHEN CASE - 50 WHEN - - 86 + 84 THEN 5 WHEN - SUM ( ALL + 27 ) * + - 28 + - MIN ( ALL + 68 ) + + + 41 THEN - 42 * + 15 ELSE + - CAST ( 44 AS REAL ) END * 58 * + 15 * - - COUNT ( ALL + - 44 ) THEN NULL ELSE NULL END AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1201
SELECT + 65 * 82 + 3 + + 75 + 17 DIV + 88 + - + 41 AS col2
----
5367

skipif mysql # not compatible
query I rowsort label-1201
SELECT + 65 * 82 + 3 + + 75 + 17 / + 88 + - + 41 AS col2
----
5367

onlyif mysql # aggregate syntax: 
query I rowsort label-1202
SELECT COALESCE ( + NULLIF ( + + COUNT( * ), 85 * - + 90 + 75 ), - 77 ) * - 54 + - MIN( - 44 ) + - - 85 AS col1
----
75

skipif mysql # not compatible
query I rowsort label-1202
SELECT COALESCE ( + NULLIF ( + + COUNT ( * ), 85 * - + 90 + 75 ), - 77 ) * - 54 + - MIN ( - 44 ) + - - 85 AS col1
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-1203
SELECT 98 - + 45 + + + 97 * + 38 + - + COUNT( * ) + - COUNT( * )
----
3737

skipif mysql # not compatible
query I rowsort label-1203
SELECT 98 - + 45 + + + 97 * + 38 + - + COUNT ( * ) + - COUNT ( * )
----
3737

onlyif mysql # DIV for integer division: 
query I rowsort label-1204
SELECT + CASE - - 29 WHEN 82 DIV - + 54 THEN 55 ELSE - 91 END * 72 DIV 28 * - 95 AS col0
----
22230

skipif mysql # not compatible
query I rowsort label-1204
SELECT + CASE - - 29 WHEN 82 / - + 54 THEN 55 ELSE - 91 END * 72 / 28 * - 95 AS col0
----
22230

query I rowsort
SELECT DISTINCT - + 35 + 18 + - 47
----
-64

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1207
SELECT ALL - 78 + + - COUNT( * ) DIV + 22 AS col1
----
-78

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1208
SELECT 78 + - 72 + + 47 * + - 80 * 32 AS col0, CAST( - 81 AS SIGNED ) * + COUNT( * ) + - 66 + + + 26 col2
----
-120314
-121

skipif mysql # not compatible
query II rowsort label-1208
SELECT 78 + - 72 + + 47 * + - 80 * 32 AS col0, CAST ( - 81 AS INTEGER ) * + COUNT ( * ) + - 66 + + + 26 col2
----
-120314
-121

query I rowsort
SELECT DISTINCT - 51 + 76
----
25

query I rowsort
SELECT DISTINCT 83 + + 63
----
146

onlyif mysql # DIV for integer division: 
query I rowsort label-1211
SELECT ALL 18 + 85 - + - NULLIF ( 73, - 47 DIV + 40 ) DIV - 56 - - + 71
----
173

skipif mysql # not compatible
query I rowsort label-1211
SELECT ALL 18 + 85 - + - NULLIF ( 73, - 47 / + 40 ) / - 56 - - + 71
----
173

query II rowsort
SELECT 58 AS col1, 38 AS col1
----
58
38

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

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

query II rowsort
SELECT 28 AS col2, 60
----
28
60

onlyif mysql # aggregate syntax: 
query I rowsort label-1215
SELECT ALL 82 + - COUNT( + 87 ) + + 65 AS col2
----
146

skipif mysql # not compatible
query I rowsort label-1215
SELECT ALL 82 + - COUNT ( + 87 ) + + 65 AS col2
----
146

onlyif mysql # aggregate syntax: 
query II rowsort label-1216
SELECT - 95 AS col0, + CASE AVG ( ALL - + ( + 16 ) ) WHEN - 63 THEN + 10 END + ( - COUNT( * ) )
----
-95
NULL

skipif mysql # not compatible
query II rowsort label-1216
SELECT - 95 AS col0, + CASE AVG ( ALL - + ( + 16 ) ) WHEN - 63 THEN + 10 END + ( - COUNT ( * ) )
----
-95
NULL

query I rowsort
SELECT 51 * + 1 AS col2
----
51

query I rowsort
SELECT ALL 11 * 80 AS col2
----
880

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1219
SELECT - 6 AS col1, COUNT( * ) * + + CAST( - + 95 AS SIGNED )
----
-6
-95

skipif mysql # not compatible
query II rowsort label-1219
SELECT - 6 AS col1, COUNT ( * ) * + + CAST ( - + 95 AS INTEGER )
----
-6
-95

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

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

query I rowsort
SELECT 47 + + - 84
----
-37

query I rowsort
SELECT 85 * + - 70 AS col2
----
-5950

query I rowsort
SELECT ALL 75 * 19 * 61 AS col0
----
86925

query I rowsort
SELECT 56 + - + 36
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-1225
SELECT 92 - - MIN( + ( - 30 ) ) + - - NULLIF ( + COUNT( * ), - CASE + 20 WHEN + 13 + - + 39 * + + 84 - + SUM( DISTINCT + 21 ) THEN + - 58 ELSE NULL END ) * 46 AS col1
----
108

skipif mysql # not compatible
query I rowsort label-1225
SELECT 92 - - MIN ( + ( - 30 ) ) + - - NULLIF ( + COUNT ( * ), - CASE + 20 WHEN + 13 + - + 39 * + + 84 - + SUM ( DISTINCT + 21 ) THEN + - 58 ELSE NULL END ) * 46 AS col1
----
108

query I rowsort
SELECT 63 * + 17
----
1071

onlyif mysql # aggregate syntax: 
query I rowsort label-1227
SELECT CASE + COUNT( * ) WHEN + 25 THEN + 16 WHEN ( - 14 ) THEN - + 99 END + + 28 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1227
SELECT CASE + COUNT ( * ) WHEN + 25 THEN + 16 WHEN ( - 14 ) THEN - + 99 END + + 28 AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1228
SELECT CAST( NULL AS SIGNED ), 45 + ( - + 92 ) * + + CAST( NULL AS SIGNED ) AS col0
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-1228
SELECT CAST ( NULL AS INTEGER ), 45 + ( - + 92 ) * + + CAST ( NULL AS INTEGER ) AS col0
----
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1229
SELECT + ( + 19 ) DIV 21 * - + 32 + + 55
----
55

skipif mysql # not compatible
query I rowsort label-1229
SELECT + ( + 19 ) / 21 * - + 32 + + 55
----
55

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

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1233
SELECT ALL - 34 DIV 18
----
-1

skipif mysql # not compatible
query I rowsort label-1233
SELECT ALL - 34 / 18
----
-1

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

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

query I rowsort
SELECT - 17 * + 53 + + 17
----
-884

query I rowsort
SELECT ( 50 ) * - 15 * + - 1 - 93 AS col2
----
657

onlyif mysql # aggregate syntax: 
query II rowsort label-1237
SELECT 67 + - 83, - COUNT( * ) * - 17 col1
----
-16
17

skipif mysql # not compatible
query II rowsort label-1237
SELECT 67 + - 83, - COUNT ( * ) * - 17 col1
----
-16
17

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1238
SELECT 54 / + CAST( NULL AS SIGNED ) * 65 * + 50
----
NULL

skipif mysql # not compatible
query I rowsort label-1238
SELECT 54 / + CAST ( NULL AS INTEGER ) * 65 * + 50
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-1239
SELECT 98 DIV - 7, - 11 col2
----
-14
-11

skipif mysql # not compatible
query II rowsort label-1239
SELECT 98 / - 7, - 11 col2
----
-14
-11

query I rowsort
SELECT 13 + - 86 * + 25 AS col2
----
-2137

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1242
SELECT - + 89 * - ( MAX( ALL - 96 ) ) * + 56 * - 23 + - + 86 AS col0
----
11004586

skipif mysql # not compatible
query I rowsort label-1242
SELECT - + 89 * - ( MAX ( ALL - 96 ) ) * + 56 * - 23 + - + 86 AS col0
----
11004586

query I rowsort
SELECT 46 * + 2 * - 74
----
-6808

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1244
SELECT DISTINCT + 80 + 20 + 59 - + CAST( NULL AS SIGNED ) * + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-1244
SELECT DISTINCT + 80 + 20 + 59 - + CAST ( NULL AS INTEGER ) * + COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1245
SELECT ALL + COUNT( * ) + - - 82 col2
----
83

skipif mysql # not compatible
query I rowsort label-1245
SELECT ALL + COUNT ( * ) + - - 82 col2
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-1246
SELECT DISTINCT + ( MAX( - 21 ) ) + + + COUNT( * ) col1
----
-20

skipif mysql # not compatible
query I rowsort label-1246
SELECT DISTINCT + ( MAX ( - 21 ) ) + + + COUNT ( * ) col1
----
-20

query I rowsort
SELECT DISTINCT - 99 + - 97
----
-196

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1249
SELECT 16 - + 42 + CAST( - 38 AS SIGNED ) + ( - - MIN( DISTINCT 20 ) ) + + 12 * + + 3
----
-8

skipif mysql # not compatible
query I rowsort label-1249
SELECT 16 - + 42 + CAST ( - 38 AS INTEGER ) + ( - - MIN ( DISTINCT 20 ) ) + + 12 * + + 3
----
-8

query I rowsort
SELECT + NULLIF ( + - 97, 60 * 38 ) col1
----
-97

query I rowsort
SELECT 57 + 91
----
148

query I rowsort
SELECT DISTINCT - 65 + - - 53
----
-12

query I rowsort
SELECT ALL - 47 + + - 99
----
-146

query II rowsort
SELECT 47 + + + 28 AS col1, - 75 * + - 67
----
75
5025

query I rowsort
SELECT DISTINCT - 29 * + + ( 44 )
----
-1276

onlyif mysql # aggregate syntax: 
query I rowsort label-1256
SELECT - NULLIF ( - NULLIF ( - 52, + - 16 ), - 45 ) + - COUNT( * ) AS col0
----
-53

skipif mysql # not compatible
query I rowsort label-1256
SELECT - NULLIF ( - NULLIF ( - 52, + - 16 ), - 45 ) + - COUNT ( * ) AS col0
----
-53

query I rowsort
SELECT ALL 28 - - + 26 AS col2
----
54

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1258
SELECT - 10 + CAST( - - CAST( NULL AS SIGNED ) AS SIGNED ) - - 6 * - + 99, - ( - - 99 ) col2
----
NULL
-99

skipif mysql # not compatible
query II rowsort label-1258
SELECT - 10 + CAST ( - - CAST ( NULL AS INTEGER ) AS INTEGER ) - - 6 * - + 99, - ( - - 99 ) col2
----
NULL
-99

query I rowsort
SELECT - 60 col0
----
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-1260
SELECT ALL + 3 - - COUNT( * ) * - - 7 * 37 AS col1
----
262

skipif mysql # not compatible
query I rowsort label-1260
SELECT ALL + 3 - - COUNT ( * ) * - - 7 * 37 AS col1
----
262

onlyif mysql # aggregate syntax: 
query I rowsort label-1261
SELECT - NULLIF ( - 78, + 93 ) * - - COUNT( * )
----
78

skipif mysql # not compatible
query I rowsort label-1261
SELECT - NULLIF ( - 78, + 93 ) * - - COUNT ( * )
----
78

query I rowsort
SELECT + 39 + - + 85
----
-46

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1263
SELECT DISTINCT NULLIF ( - CAST( NULL AS SIGNED ), + - NULLIF ( + - 65, - 98 * + 58 * + - 15 + NULLIF ( + 20, - + 65 ) ) * + + COUNT( * ) - - - 79 + - + SUM( + COALESCE ( - 60, 96 + - 19 ) ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1263
SELECT DISTINCT NULLIF ( - CAST ( NULL AS INTEGER ), + - NULLIF ( + - 65, - 98 * + 58 * + - 15 + NULLIF ( + 20, - + 65 ) ) * + + COUNT ( * ) - - - 79 + - + SUM ( + COALESCE ( - 60, 96 + - 19 ) ) ) AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1264
SELECT DISTINCT - 96 DIV 39
----
-2

skipif mysql # not compatible
query I rowsort label-1264
SELECT DISTINCT - 96 / 39
----
-2

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

skipif mysql # not compatible
query I rowsort label-1265
SELECT DISTINCT + - COUNT ( * ) / + 80
----
0

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

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

query I rowsort
SELECT DISTINCT + 88 * 48 + + 26
----
4250

query I rowsort
SELECT + + 83 * 50
----
4150

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1269
SELECT ALL CASE - - COUNT( * ) WHEN COALESCE ( 59, + + 1 / + + 58 + ( - - CAST( 37 AS SIGNED ) ) ) THEN - - NULLIF ( - NULLIF ( + + 42, CAST( NULL AS SIGNED ) - ( + 10 ) ), CASE - 78 WHEN COUNT( * ) * + 82 + 91 THEN 55 ELSE NULL END - 77 ) WHEN - - 90 / - 97 * 63 THEN NULL END * + 22 * + 60 + 26 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1269
SELECT ALL CASE - - COUNT ( * ) WHEN COALESCE ( 59, + + 1 / + + 58 + ( - - CAST ( 37 AS INTEGER ) ) ) THEN - - NULLIF ( - NULLIF ( + + 42, CAST ( NULL AS INTEGER ) - ( + 10 ) ), CASE - 78 WHEN COUNT ( * ) * + 82 + 91 THEN 55 ELSE NULL END - 77 ) WHEN - - 90 / - 97 * 63 THEN NULL END * + 22 * + 60 + 26 col1
----
NULL

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

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

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

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

query I rowsort
SELECT ALL - 71 * + 90 + + + ( + 67 ) AS col2
----
-6323

query II rowsort
SELECT + - 56 * 71 AS col0, 0
----
-3976
0

query I rowsort
SELECT ALL - + 84 * - 75 * - 17 + - 33 AS col2
----
-107133

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1276
SELECT DISTINCT + 12 * 69 / ( - MIN( ALL CAST( NULL AS SIGNED ) ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1276
SELECT DISTINCT + 12 * 69 / ( - MIN ( ALL CAST ( NULL AS INTEGER ) ) ) AS col2
----
NULL

query I rowsort
SELECT ALL + 42 * - + 82 + + 78 AS col0
----
-3366

onlyif mysql # aggregate syntax: 
query I rowsort label-1278
SELECT - COUNT( * ) + + COUNT( * ) + + 43 + + + 69 - + 40 * 27 * - 72 * - 23 AS col2
----
-1788368

skipif mysql # not compatible
query I rowsort label-1278
SELECT - COUNT ( * ) + + COUNT ( * ) + + 43 + + + 69 - + 40 * 27 * - 72 * - 23 AS col2
----
-1788368

onlyif mysql # aggregate syntax: 
query II rowsort label-1279
SELECT DISTINCT - 97 * - 9 + - 26 AS col0, - COUNT( * ) * 80 * + + 90 + + - 14
----
847
-7214

skipif mysql # not compatible
query II rowsort label-1279
SELECT DISTINCT - 97 * - 9 + - 26 AS col0, - COUNT ( * ) * 80 * + + 90 + + - 14
----
847
-7214

onlyif mysql # aggregate syntax: 
query I rowsort label-1280
SELECT + COUNT( * ) * + NULLIF ( - 83, - 19 )
----
-83

skipif mysql # not compatible
query I rowsort label-1280
SELECT + COUNT ( * ) * + NULLIF ( - 83, - 19 )
----
-83

query II rowsort
SELECT - ( - - 11 ) * - + ( - 10 ) AS col2, - 27 AS col1
----
-110
-27

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: DIV for integer division: 
query I rowsort label-1282
SELECT ALL + 6 * + - COALESCE ( CAST( NULL AS SIGNED ), - 18 + 12 + + ( - CASE - 53 WHEN - 58 * - COALESCE ( + 90, + - 30 ) * + - MIN( - 65 ) + 19 THEN NULL WHEN + CAST( NULL AS DECIMAL ) THEN - 98 END ) + CAST( - SUM( - NULLIF ( 64, 87 + 87 ) ) AS SIGNED ) * - 38 * 53 * 56 + - 62 + NULLIF ( - 1, - + 31 + - MIN( - - 66 ) ) * NULLIF ( COUNT( DISTINCT + 7 ), 23 + - 28 + 10 + + 13 DIV 72 * + COUNT( * ) + + 16 + ( 68 ) + + 96 ) DIV 89, 40 + 20 DIV 74 ) AS col2
----
-240

skipif mysql # not compatible
query I rowsort label-1282
SELECT ALL + 6 * + - COALESCE ( CAST ( NULL AS INTEGER ), - 18 + 12 + + ( - CASE - 53 WHEN - 58 * - COALESCE ( + 90, + - 30 ) * + - MIN ( - 65 ) + 19 THEN NULL WHEN + CAST ( NULL AS REAL ) THEN - 98 END ) + CAST ( - SUM ( - NULLIF ( 64, 87 + 87 ) ) AS INTEGER ) * - 38 * 53 * 56 + - 62 + NULLIF ( - 1, - + 31 + - MIN ( - - 66 ) ) * NULLIF ( COUNT ( DISTINCT + 7 ), 23 + - 28 + 10 + + 13 / 72 * + COUNT ( * ) + + 16 + ( 68 ) + + 96 ) / 89, 40 + 20 / 74 ) AS col2
----
-240

onlyif mysql # aggregate syntax: 
query I rowsort label-1283
SELECT COUNT( 19 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-1283
SELECT COUNT ( 19 ) AS col2
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1284
SELECT DISTINCT + 20 * - ( - + CAST( + - 79 AS SIGNED ) ) * - 89 - + + 45 + + 3
----
140578

skipif mysql # not compatible
query I rowsort label-1284
SELECT DISTINCT + 20 * - ( - + CAST ( + - 79 AS INTEGER ) ) * - 89 - + + 45 + + 3
----
140578

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1286
SELECT + 71 * + COUNT( * ) * - - 45 + + 32 + - ( + 48 )
----
3179

skipif mysql # not compatible
query I rowsort label-1286
SELECT + 71 * + COUNT ( * ) * - - 45 + + 32 + - ( + 48 )
----
3179

onlyif mysql # aggregate syntax: 
query II rowsort label-1287
SELECT DISTINCT SUM( ALL + 62 ) * - 60 AS col2, + COUNT( * ) * + - 33
----
-3720
-33

skipif mysql # not compatible
query II rowsort label-1287
SELECT DISTINCT SUM ( ALL + 62 ) * - 60 AS col2, + COUNT ( * ) * + - 33
----
-3720
-33

onlyif mysql # DIV for integer division: 
query I rowsort label-1288
SELECT ALL + 70 DIV + 90 * 56
----
0

skipif mysql # not compatible
query I rowsort label-1288
SELECT ALL + 70 / + 90 * 56
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1289
SELECT ALL ( - COUNT( - - 59 ) ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-1289
SELECT ALL ( - COUNT ( - - 59 ) ) AS col1
----
-1

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

query I rowsort
SELECT + 5 + - ( + + CASE + + 2 WHEN 20 - 82 THEN - + 57 + 80 END ) - - - 74 + + - 39
----
NULL

query II rowsort
SELECT - 50 AS col1, + 49 AS col2
----
-50
49

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

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

query I rowsort
SELECT ALL NULLIF ( + 92, - - 56 + + + 14 * - AVG ( ALL + 78 ) )
----
92

query I rowsort
SELECT ALL + 80 * - 46
----
-3680

onlyif mysql # aggregate syntax: 
query I rowsort label-1296
SELECT - ( + - NULLIF ( - + 85, + + 22 + - + MIN( DISTINCT - 11 ) ) ) + 68
----
-17

skipif mysql # not compatible
query I rowsort label-1296
SELECT - ( + - NULLIF ( - + 85, + + 22 + - + MIN ( DISTINCT - 11 ) ) ) + 68
----
-17

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1297
SELECT - 87 DIV - CAST( + MAX( DISTINCT + 14 ) AS SIGNED ) + - SUM( DISTINCT - - 52 ) + + 37 col2
----
-9

skipif mysql # not compatible
query I rowsort label-1297
SELECT - 87 / - CAST ( + MAX ( DISTINCT + 14 ) AS INTEGER ) + - SUM ( DISTINCT - - 52 ) + + 37 col2
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-1298
SELECT ALL + COUNT( * ) + + - 46
----
-45

skipif mysql # not compatible
query I rowsort label-1298
SELECT ALL + COUNT ( * ) + + - 46
----
-45

query I rowsort
SELECT - 26 + - - 85 AS col0
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-1300
SELECT - + CASE - + ( + - ( + 66 ) ) WHEN + 91 - - 84 THEN + + 4 END - 10 - - MAX( ALL ( 1 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-1300
SELECT - + CASE - + ( + - ( + 66 ) ) WHEN + 91 - - 84 THEN + + 4 END - 10 - - MAX ( ALL ( 1 ) )
----
NULL

query I rowsort
SELECT + - 21 - - 58 * + - 12
----
-717

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1303
SELECT - - 51 DIV - + 3 AS col2
----
-17

skipif mysql # not compatible
query I rowsort label-1303
SELECT - - 51 / - + 3 AS col2
----
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-1304
SELECT + + 46 * + MAX( + 67 ) + 51 col0
----
3133

skipif mysql # not compatible
query I rowsort label-1304
SELECT + + 46 * + MAX ( + 67 ) + 51 col0
----
3133

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1305
SELECT - + 35 + - + 36 * 0 + - 15 + 60 + - COUNT( * ) * - CAST( 33 AS SIGNED ) AS col0, + 6
----
43
6

skipif mysql # not compatible
query II rowsort label-1305
SELECT - + 35 + - + 36 * 0 + - 15 + 60 + - COUNT ( * ) * - CAST ( 33 AS INTEGER ) AS col0, + 6
----
43
6

query I rowsort
SELECT COALESCE ( + 25, 62 ) col2
----
25

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1307
SELECT DISTINCT + - 29 DIV + COALESCE ( + + 99, MIN( DISTINCT 4 ) + + - 36 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-1307
SELECT DISTINCT + - 29 / + COALESCE ( + + 99, MIN ( DISTINCT 4 ) + + - 36 ) AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1308
SELECT - - ( + COUNT( ALL ( 64 ) ) ) + + - 95 * + + 90 - - 91 AS col0
----
-8458

skipif mysql # not compatible
query I rowsort label-1308
SELECT - - ( + COUNT ( ALL ( 64 ) ) ) + + - 95 * + + 90 - - 91 AS col0
----
-8458

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1309
SELECT ALL - CAST( NULL AS SIGNED ) / 36 * - 71 + - 59
----
NULL

skipif mysql # not compatible
query I rowsort label-1309
SELECT ALL - CAST ( NULL AS INTEGER ) / 36 * - 71 + - 59
----
NULL

query I rowsort
SELECT - + 85 + - 33 * + 18 AS col1
----
-679

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1311
SELECT 37, + MIN( - - CAST( + 63 AS SIGNED ) ) - - - 24 * + 79 AS col0
----
37
-1833

skipif mysql # not compatible
query II rowsort label-1311
SELECT 37, + MIN ( - - CAST ( + 63 AS INTEGER ) ) - - - 24 * + 79 AS col0
----
37
-1833

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1312
SELECT DISTINCT - 63 DIV COUNT( ALL - 31 )
----
-63

skipif mysql # not compatible
query I rowsort label-1312
SELECT DISTINCT - 63 / COUNT ( ALL - 31 )
----
-63

query I rowsort
SELECT ( - - 59 )
----
59

onlyif mysql # DIV for integer division: 
query II rowsort label-1314
SELECT 19 DIV + 65 + + - 4 + - 59 AS col0, + 14
----
-63
14

skipif mysql # not compatible
query II rowsort label-1314
SELECT 19 / + 65 + + - 4 + - 59 AS col0, + 14
----
-63
14

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1315
SELECT + + COUNT( * ) + + 0 * - + 74 * - + CAST( NULL AS SIGNED ) * + ( - 68 ) * 26 + - 72 + - COUNT( * ) * 37
----
NULL

skipif mysql # not compatible
query I rowsort label-1315
SELECT + + COUNT ( * ) + + 0 * - + 74 * - + CAST ( NULL AS INTEGER ) * + ( - 68 ) * 26 + - 72 + - COUNT ( * ) * 37
----
NULL

query I rowsort
SELECT ALL + 39 * - + 12
----
-468

query II rowsort
SELECT 80 col1, + 81 + - 61
----
80
20

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1319
SELECT + 36 + + COUNT( * ) col2
----
37

skipif mysql # not compatible
query I rowsort label-1319
SELECT + 36 + + COUNT ( * ) col2
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-1320
SELECT + NULLIF ( + 39, CASE - + 47 WHEN COUNT( * ) THEN - - 13 + - + 65 + - + COUNT( * ) * CASE + 61 WHEN + 0 / 90 THEN 81 + - 53 WHEN - 16 THEN NULL END + + - 13 END )
----
39

skipif mysql # not compatible
query I rowsort label-1320
SELECT + NULLIF ( + 39, CASE - + 47 WHEN COUNT ( * ) THEN - - 13 + - + 65 + - + COUNT ( * ) * CASE + 61 WHEN + 0 / 90 THEN 81 + - 53 WHEN - 16 THEN NULL END + + - 13 END )
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-1321
SELECT ALL + 47 * + COUNT( * ) * 38
----
1786

skipif mysql # not compatible
query I rowsort label-1321
SELECT ALL + 47 * + COUNT ( * ) * 38
----
1786

onlyif mysql # aggregate syntax: 
query I rowsort label-1322
SELECT + COUNT( * ) * - CASE 54 WHEN 39 THEN 79 * ( - 28 ) WHEN + 92 THEN + COUNT( * ) END * + 81 + - - 1 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1322
SELECT + COUNT ( * ) * - CASE 54 WHEN 39 THEN 79 * ( - 28 ) WHEN + 92 THEN + COUNT ( * ) END * + 81 + - - 1 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1323
SELECT ALL COUNT( 32 ) * - 51 AS col2
----
-51

skipif mysql # not compatible
query I rowsort label-1323
SELECT ALL COUNT ( 32 ) * - 51 AS col2
----
-51

query I rowsort
SELECT 50 - 38
----
12

query I rowsort
SELECT ALL 52 * + 76 AS col1
----
3952

query I rowsort
SELECT ALL 45 * + 83 AS col2
----
3735

query I rowsort
SELECT 85 - - 76
----
161

query I rowsort
SELECT ALL 16 * - 19
----
-304

onlyif mysql # aggregate syntax: 
query I rowsort label-1329
SELECT 91 + - CASE - 67 WHEN + - 71 THEN 4 * + ( + SUM( - 97 ) ) * + 58 / + 79 * - - MIN( + 48 ) + + - COUNT( * ) WHEN - 60 THEN 70 END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1329
SELECT 91 + - CASE - 67 WHEN + - 71 THEN 4 * + ( + SUM ( - 97 ) ) * + 58 / + 79 * - - MIN ( + 48 ) + + - COUNT ( * ) WHEN - 60 THEN 70 END col1
----
NULL

query I rowsort
SELECT DISTINCT 51 * + - 87
----
-4437

query I rowsort
SELECT ALL 9 + + 57
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-1332
SELECT SUM( DISTINCT + 3 ) + - 7
----
-4

skipif mysql # not compatible
query I rowsort label-1332
SELECT SUM ( DISTINCT + 3 ) + - 7
----
-4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1333
SELECT DISTINCT 45 + COUNT( * ) + - - 64 * + - CAST( - - ( + 10 ) AS SIGNED ) AS col2
----
-594

skipif mysql # not compatible
query I rowsort label-1333
SELECT DISTINCT 45 + COUNT ( * ) + - - 64 * + - CAST ( - - ( + 10 ) AS INTEGER ) AS col2
----
-594

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

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1337
SELECT + 7 + 89 + + - CAST( - - 46 AS SIGNED ) * + 79
----
-3538

skipif mysql # not compatible
query I rowsort label-1337
SELECT + 7 + 89 + + - CAST ( - - 46 AS INTEGER ) * + 79
----
-3538

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1339
SELECT ALL COUNT( - 53 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-1339
SELECT ALL COUNT ( - 53 ) AS col2
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1340
SELECT ALL + - 51 * + - COUNT( * ) DIV + COUNT( * ) + - + 55 + 55 * + 63 * 73 + - - 67 * 82 * - 81 AS col2
----
-192073

skipif mysql # not compatible
query I rowsort label-1340
SELECT ALL + - 51 * + - COUNT ( * ) / + COUNT ( * ) + - + 55 + 55 * + 63 * 73 + - - 67 * 82 * - 81 AS col2
----
-192073

query I rowsort
SELECT ALL - + 34 + - - 8 - 45
----
-71

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1343
SELECT - - 76 DIV + 80 + + - COUNT( * ) * - - 57 - - + 25 - ( 88 ) AS col1
----
-120

skipif mysql # not compatible
query I rowsort label-1343
SELECT - - 76 / + 80 + + - COUNT ( * ) * - - 57 - - + 25 - ( 88 ) AS col1
----
-120

onlyif mysql # aggregate syntax: 
query I rowsort label-1344
SELECT ALL - + CASE + + COUNT( * ) WHEN + 3 - - 40 * 36 * - - 18 THEN NULL ELSE - COUNT( * ) END col1
----
1

skipif mysql # not compatible
query I rowsort label-1344
SELECT ALL - + CASE + + COUNT ( * ) WHEN + 3 - - 40 * 36 * - - 18 THEN NULL ELSE - COUNT ( * ) END col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1345
SELECT CASE - + 44 WHEN - 64 THEN NULL WHEN + - ( - 80 ) THEN NULL WHEN - 52 + - + 89 * SUM( - + 22 ) - + - 97 / + - COUNT( * ) THEN NULL ELSE 85 END AS col0
----
85

skipif mysql # not compatible
query I rowsort label-1345
SELECT CASE - + 44 WHEN - 64 THEN NULL WHEN + - ( - 80 ) THEN NULL WHEN - 52 + - + 89 * SUM ( - + 22 ) - + - 97 / + - COUNT ( * ) THEN NULL ELSE 85 END AS col0
----
85

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1346
SELECT + 23 DIV - + SUM( + COALESCE ( - + 63, - CAST( NULL AS SIGNED ) + + 69 ) )
----
0

skipif mysql # not compatible
query I rowsort label-1346
SELECT + 23 / - + SUM ( + COALESCE ( - + 63, - CAST ( NULL AS INTEGER ) + + 69 ) )
----
0

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1348
SELECT ALL - 88 DIV - 75 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-1348
SELECT ALL - 88 / - 75 AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1349
SELECT 51 * + ( - COUNT( * ) ) - + COUNT( * ) * 21 * + 1 * + - 61 col2
----
1230

skipif mysql # not compatible
query I rowsort label-1349
SELECT 51 * + ( - COUNT ( * ) ) - + COUNT ( * ) * 21 * + 1 * + - 61 col2
----
1230

query I rowsort
SELECT DISTINCT 71 * - - 45 AS col2
----
3195

onlyif mysql # aggregate syntax: 
query I rowsort label-1351
SELECT + ( - + 15 ) * - 64 + + - 73 * + 15 * - MIN( DISTINCT - - 19 ) AS col2
----
21765

skipif mysql # not compatible
query I rowsort label-1351
SELECT + ( - + 15 ) * - 64 + + - 73 * + 15 * - MIN ( DISTINCT - - 19 ) AS col2
----
21765

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1352
SELECT ALL + 16 * - + 34 * + - 23 AS col0, AVG ( DISTINCT - CAST( NULL AS SIGNED ) ) AS col2
----
12512
NULL

skipif mysql # not compatible
query II rowsort label-1352
SELECT ALL + 16 * - + 34 * + - 23 AS col0, AVG ( DISTINCT - CAST ( NULL AS INTEGER ) ) AS col2
----
12512
NULL

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

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

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

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

query I rowsort
SELECT 82 * - - 29 col1
----
2378

query I rowsort
SELECT DISTINCT - 99 + + 68 - 8 + + 86
----
47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: DIV for integer division: 
query III rowsort label-1357
SELECT ALL 11 col1, NULLIF ( + - 59, 5 * 9 + 24 + - CASE 4 WHEN 36 * + COUNT( * ) THEN NULL WHEN + 43 THEN + + MIN( 85 ) + 35 WHEN - + 9 * NULLIF ( 39, + + CAST( NULL AS DECIMAL ) - + 32 ) + + 71 THEN NULL ELSE NULL END DIV + 46 ) AS col0, + NULLIF ( + - COUNT( ALL - 43 ), - 94 + - 67 ) * - CAST( + ( 54 ) AS SIGNED ) * - 22 DIV + + COUNT( * ) + - MAX( DISTINCT 76 ) AS col0
----
11
-59
-1264

skipif mysql # not compatible
query III rowsort label-1357
SELECT ALL 11 col1, NULLIF ( + - 59, 5 * 9 + 24 + - CASE 4 WHEN 36 * + COUNT ( * ) THEN NULL WHEN + 43 THEN + + MIN ( 85 ) + 35 WHEN - + 9 * NULLIF ( 39, + + CAST ( NULL AS REAL ) - + 32 ) + + 71 THEN NULL ELSE NULL END / + 46 ) AS col0, + NULLIF ( + - COUNT ( ALL - 43 ), - 94 + - 67 ) * - CAST ( + ( 54 ) AS INTEGER ) * - 22 / + + COUNT ( * ) + - MAX ( DISTINCT 76 ) AS col0
----
11
-59
-1264

onlyif mysql # aggregate syntax: 
query I rowsort label-1358
SELECT ALL 10 + COALESCE ( 64, + - SUM( ALL + - ( - 59 ) ) ) * - 76
----
-4854

skipif mysql # not compatible
query I rowsort label-1358
SELECT ALL 10 + COALESCE ( 64, + - SUM ( ALL + - ( - 59 ) ) ) * - 76
----
-4854

query I rowsort
SELECT DISTINCT 69 + - 11
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-1360
SELECT COUNT( DISTINCT + + 53 ) + + ( - 57 )
----
-56

skipif mysql # not compatible
query I rowsort label-1360
SELECT COUNT ( DISTINCT + + 53 ) + + ( - 57 )
----
-56

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

skipif mysql # not compatible
query I rowsort label-1361
SELECT DISTINCT COUNT ( * ) + - 78 AS col2
----
-77

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1363
SELECT ALL 61 + + COUNT( ALL 6 ) DIV 50 AS col2
----
61

skipif mysql # not compatible
query I rowsort label-1363
SELECT ALL 61 + + COUNT ( ALL 6 ) / 50 AS col2
----
61

query I rowsort
SELECT - 44 + + NULLIF ( + COALESCE ( + 76, - - 0, + 16 ), + 11 ) AS col0
----
32

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1365
SELECT DISTINCT - COALESCE ( + + 89, 19 + 38 - - MIN( + + 61 ) DIV + 66 )
----
-89

skipif mysql # not compatible
query I rowsort label-1365
SELECT DISTINCT - COALESCE ( + + 89, 19 + 38 - - MIN ( + + 61 ) / + 66 )
----
-89

query I rowsort
SELECT DISTINCT + 96 * + 83 AS col0
----
7968

onlyif mysql # DIV for integer division: 
query II rowsort label-1367
SELECT - + 13 AS col1, - 49 * - - 50 + + 91 + + 51 - + 86 + + 66 DIV 50
----
-13
-2393

skipif mysql # not compatible
query II rowsort label-1367
SELECT - + 13 AS col1, - 49 * - - 50 + + 91 + + 51 - + 86 + + 66 / 50
----
-13
-2393

onlyif mysql # aggregate syntax: 
query I rowsort label-1368
SELECT DISTINCT NULLIF ( - 8, - + 63 ) - - 44 + + + 47 * - + ( - - 44 ) + - COUNT( * ) AS col2
----
-2033

skipif mysql # not compatible
query I rowsort label-1368
SELECT DISTINCT NULLIF ( - 8, - + 63 ) - - 44 + + + 47 * - + ( - - 44 ) + - COUNT ( * ) AS col2
----
-2033

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1369
SELECT - 94 - + 78 DIV SUM( DISTINCT - 86 ) AS col2
----
-94

skipif mysql # not compatible
query I rowsort label-1369
SELECT - 94 - + 78 / SUM ( DISTINCT - 86 ) AS col2
----
-94

query I rowsort
SELECT + NULLIF ( + + 34, + 21 ) + 55 AS col1
----
89

query I rowsort
SELECT + 74 + 95
----
169

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1372
SELECT + CAST( - 98 AS SIGNED ) * - 82 / + CASE - + 4 WHEN + 37 THEN - + 66 + + - 74 WHEN COUNT( * ) THEN + 46 END - 29 + + 0 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1372
SELECT + CAST ( - 98 AS INTEGER ) * - 82 / + CASE - + 4 WHEN + 37 THEN - + 66 + + - 74 WHEN COUNT ( * ) THEN + 46 END - 29 + + 0 AS col1
----
NULL

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

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

query I rowsort
SELECT DISTINCT - 2 * - 91
----
182

onlyif mysql # DIV for integer division: 
query I rowsort label-1375
SELECT - 21 DIV - + 56 + 61 AS col0
----
61

skipif mysql # not compatible
query I rowsort label-1375
SELECT - 21 / - + 56 + 61 AS col0
----
61

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1376
SELECT ( 67 ) DIV - - COUNT( * ) + + ( - ( - + 40 ) ) * - 24 * - - ( 30 )
----
-28733

skipif mysql # not compatible
query I rowsort label-1376
SELECT ( 67 ) / - - COUNT ( * ) + + ( - ( - + 40 ) ) * - 24 * - - ( 30 )
----
-28733

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1378
SELECT COALESCE ( - 5, 72 - + - 78 + - 92 - + - COUNT( * ) * - 76 ) AS col2
----
-5

skipif mysql # not compatible
query I rowsort label-1378
SELECT COALESCE ( - 5, 72 - + - 78 + - 92 - + - COUNT ( * ) * - 76 ) AS col2
----
-5

query I rowsort
SELECT ALL 58 * - 5 + + 67
----
-223

query I rowsort
SELECT ALL 27 * - - 18 + - 99 AS col0
----
387

query II rowsort
SELECT ALL + 11, + 40 col1
----
11
40

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1382
SELECT COALESCE ( - 26, - + 13 DIV - 82 * - ( + + COUNT( * ) ) + + COUNT( * ) - - - 92 + - 94 + 71 * + - 0, 51 * - + 50 * - 45 ) * - 9 * - + CASE + 37 WHEN MAX( DISTINCT + 48 ) THEN NULL ELSE COUNT( * ) * 27 - + + 80 END + + COUNT( * )
----
12403

skipif mysql # not compatible
query I rowsort label-1382
SELECT COALESCE ( - 26, - + 13 / - 82 * - ( + + COUNT ( * ) ) + + COUNT ( * ) - - - 92 + - 94 + 71 * + - 0, 51 * - + 50 * - 45 ) * - 9 * - + CASE + 37 WHEN MAX ( DISTINCT + 48 ) THEN NULL ELSE COUNT ( * ) * 27 - + + 80 END + + COUNT ( * )
----
12403

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1383
SELECT DISTINCT - COUNT( * ) DIV - 22 AS col1, 95 * SUM( DISTINCT + 87 ) AS col1
----
0
8265

skipif mysql # not compatible
query II rowsort label-1383
SELECT DISTINCT - COUNT ( * ) / - 22 AS col1, 95 * SUM ( DISTINCT + 87 ) AS col1
----
0
8265

query II rowsort
SELECT ALL + 56, 10 AS col2
----
56
10

query I rowsort
SELECT 49 * + 47 + - 59
----
2244

query I rowsort
SELECT ALL - 57 * + + 78 + + 36
----
-4410

onlyif mysql # aggregate syntax: 
query I rowsort label-1387
SELECT CASE WHEN ( NULL ) BETWEEN - 63 AND - - COALESCE ( 10, + 32 * + 86 + - AVG ( ALL - - 24 ), + 27 ) THEN 19 + 4 WHEN NOT NULL IS NULL THEN NULL ELSE + MIN( DISTINCT 72 ) END * + 34 - + 19 AS col0
----
2429

skipif mysql # not compatible
query I rowsort label-1387
SELECT CASE WHEN ( NULL ) BETWEEN - 63 AND - - COALESCE ( 10, + 32 * + 86 + - AVG ( ALL - - 24 ), + 27 ) THEN 19 + 4 WHEN NOT NULL IS NULL THEN NULL ELSE + MIN ( DISTINCT 72 ) END * + 34 - + 19 AS col0
----
2429

query I rowsort
SELECT - 92 * - 53 AS col1
----
4876

query I rowsort
SELECT + 98 + 8
----
106

query I rowsort
SELECT + 57 * - - 3 AS col1
----
171

query I rowsort
SELECT DISTINCT - 68 * + - 60 * - 18 * 25 AS col2
----
-1836000

query I rowsort
SELECT + 33 * - 20 * + 62 AS col0
----
-40920

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1393
SELECT + 75 + CAST( NULL AS DECIMAL )
----
NULL

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

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

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

query I rowsort
SELECT DISTINCT - + 18 * + - 28
----
504

onlyif mysql # aggregate syntax: 
query II rowsort label-1396
SELECT ALL 69, - COALESCE ( COUNT( * ), + + COUNT( * ) * + ( - MAX( DISTINCT + - 52 ) ) * + 81 * 65 ) * 24 col2
----
69
-24

skipif mysql # not compatible
query II rowsort label-1396
SELECT ALL 69, - COALESCE ( COUNT ( * ), + + COUNT ( * ) * + ( - MAX ( DISTINCT + - 52 ) ) * + 81 * 65 ) * 24 col2
----
69
-24

query I rowsort
SELECT - + 47 + + 78
----
31

onlyif mysql # DIV for integer division: 
query I rowsort label-1398
SELECT - 33 - - + 66 DIV + - 5 AS col1
----
-46

skipif mysql # not compatible
query I rowsort label-1398
SELECT - 33 - - + 66 / + - 5 AS col1
----
-46

query II rowsort
SELECT ALL 31 col1, 97
----
31
97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1400
SELECT 73 * + 41 * + COUNT( * ) / 14 * - MAX( 35 ) + - COUNT( * ) + + - MAX( - + CAST( NULL AS SIGNED ) ) + - - CASE + COUNT( * ) WHEN + 42 THEN + CAST( NULL AS SIGNED ) END col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1400
SELECT 73 * + 41 * + COUNT ( * ) / 14 * - MAX ( 35 ) + - COUNT ( * ) + + - MAX ( - + CAST ( NULL AS INTEGER ) ) + - - CASE + COUNT ( * ) WHEN + 42 THEN + CAST ( NULL AS INTEGER ) END col2
----
NULL

query I rowsort
SELECT ALL - + 43 - 41
----
-84

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1402
SELECT 88 AS col2, CAST( NULL AS SIGNED ) - - COALESCE ( - 9, - SUM( + + 49 ) * + + 70 * + 65 + - 62 + + - 0 ) AS col2
----
88
NULL

skipif mysql # not compatible
query II rowsort label-1402
SELECT 88 AS col2, CAST ( NULL AS INTEGER ) - - COALESCE ( - 9, - SUM ( + + 49 ) * + + 70 * + 65 + - 62 + + - 0 ) AS col2
----
88
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1403
SELECT ALL 95 - - 87 + MAX( + + 74 ) * + - 30
----
-2038

skipif mysql # not compatible
query I rowsort label-1403
SELECT ALL 95 - - 87 + MAX ( + + 74 ) * + - 30
----
-2038

query I rowsort
SELECT + 64 + 61 + 92 + + - CASE - - 44 WHEN - 57 / + + 64 THEN - + ( + 48 ) + - 94 + + 37 WHEN 42 THEN + + 27 END AS col2
----
NULL

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1406
SELECT DISTINCT - 84 DIV 90 * - - 71
----
0

skipif mysql # not compatible
query I rowsort label-1406
SELECT DISTINCT - 84 / 90 * - - 71
----
0

query I rowsort
SELECT + 35 * + 30 + + 63
----
1113

onlyif mysql # aggregate syntax: 
query II rowsort label-1408
SELECT + COUNT( * ) + - 78 * + + 25 + + 74 + - ( + 89 ), + 0 AS col2
----
-1964
0

skipif mysql # not compatible
query II rowsort label-1408
SELECT + COUNT ( * ) + - 78 * + + 25 + + 74 + - ( + 89 ), + 0 AS col2
----
-1964
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1409
SELECT ALL + CAST( COUNT( DISTINCT - - 59 ) AS SIGNED ) * - 16 + + ( + 29 ) + + 55 AS col2
----
68

skipif mysql # not compatible
query I rowsort label-1409
SELECT ALL + CAST ( COUNT ( DISTINCT - - 59 ) AS INTEGER ) * - 16 + + ( + 29 ) + + 55 AS col2
----
68

query II rowsort
SELECT 68 AS col1, 95 col1
----
68
95

onlyif mysql # DIV for integer division: 
query I rowsort label-1411
SELECT ALL + 40 DIV - - 70 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-1411
SELECT ALL + 40 / - - 70 AS col0
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-1412
SELECT ALL COUNT( * ) AS col2, + 60 + 22 - + 41 * + + COUNT( * ) AS col1
----
1
41

skipif mysql # not compatible
query II rowsort label-1412
SELECT ALL COUNT ( * ) AS col2, + 60 + 22 - + 41 * + + COUNT ( * ) AS col1
----
1
41

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

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

query I rowsort
SELECT + - 96 * + 67 AS col2
----
-6432

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1416
SELECT ALL - SUM( + - ( + - 67 ) ) * + + CAST( NULL AS SIGNED ) - - + 82
----
NULL

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1417
SELECT + 81 DIV + 36 AS col2
----
2

skipif mysql # not compatible
query I rowsort label-1417
SELECT + 81 / + 36 AS col2
----
2

query II rowsort
SELECT + CASE WHEN 29 IS NOT NULL THEN NULL ELSE 47 END AS col1, + 44 col0
----
NULL
44

query I rowsort
SELECT + 89 - + 0
----
89

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1421
SELECT + 17 DIV 1 + 51 - - COUNT( * ) AS col1
----
69

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

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

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

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

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

query I rowsort
SELECT - 64 * 76
----
-4864

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1425
SELECT ALL 54 DIV 32 + - COUNT( * ) * - + 75 + 25 AS col2
----
101

skipif mysql # not compatible
query I rowsort label-1425
SELECT ALL 54 / 32 + - COUNT ( * ) * - + 75 + 25 AS col2
----
101

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1427
SELECT DISTINCT 23 DIV + COUNT( * ) + - 80 AS col2
----
-57

skipif mysql # not compatible
query I rowsort label-1427
SELECT DISTINCT 23 / + COUNT ( * ) + - 80 AS col2
----
-57

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1428
SELECT ALL 91 DIV + + MAX( ALL + - 41 ) + + + 12 AS col2
----
10

skipif mysql # not compatible
query I rowsort label-1428
SELECT ALL 91 / + + MAX ( ALL + - 41 ) + + + 12 AS col2
----
10

onlyif mysql # aggregate syntax: 
query II rowsort label-1429
SELECT DISTINCT - COUNT( * ) * + MIN( ALL - + 23 ) * COUNT( * ) + 28, + 10 * COUNT( * ) AS col0
----
51
10

skipif mysql # not compatible
query II rowsort label-1429
SELECT DISTINCT - COUNT ( * ) * + MIN ( ALL - + 23 ) * COUNT ( * ) + 28, + 10 * COUNT ( * ) AS col0
----
51
10

query I rowsort
SELECT + 10 * 78 + ( - - 20 )
----
800

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1433
SELECT DISTINCT + ( - COUNT( * ) ) * 97 DIV + 15 + - 5 + - 13 + - - COALESCE ( - 41, + - 30 ) * ( + 90 ) AS col1
----
-3714

skipif mysql # not compatible
query I rowsort label-1433
SELECT DISTINCT + ( - COUNT ( * ) ) * 97 / + 15 + - 5 + - 13 + - - COALESCE ( - 41, + - 30 ) * ( + 90 ) AS col1
----
-3714

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

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

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1437
SELECT ALL + + 20 DIV + 79 AS col2, + 79 + - COUNT( * ) AS col1
----
0
78

skipif mysql # not compatible
query II rowsort label-1437
SELECT ALL + + 20 / + 79 AS col2, + 79 + - COUNT ( * ) AS col1
----
0
78

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

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

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

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

query I rowsort
SELECT - 93 + 45 - - ( 40 )
----
-8

query I rowsort
SELECT - 67 * - + 38 * + 61 col2
----
155306

query I rowsort
SELECT - - 50 * + 17
----
850

query II rowsort
SELECT - ( 39 ) AS col0, 28 AS col1
----
-39
28

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1444
SELECT + 33 * + SUM( DISTINCT + 54 ) / CAST( NULL AS SIGNED ) + - 79 * + 93
----
NULL

skipif mysql # not compatible
query I rowsort label-1444
SELECT + 33 * + SUM ( DISTINCT + 54 ) / CAST ( NULL AS INTEGER ) + - 79 * + 93
----
NULL

query I rowsort
SELECT - 42 + 78
----
36

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1446
SELECT ALL - CASE CAST( NULL AS SIGNED ) WHEN + 46 / 52 / - 27 THEN NULL WHEN - + ( - 10 ) THEN 28 END
----
NULL

skipif mysql # not compatible
query I rowsort label-1446
SELECT ALL - CASE CAST ( NULL AS INTEGER ) WHEN + 46 / 52 / - 27 THEN NULL WHEN - + ( - 10 ) THEN 28 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1447
SELECT - CASE 93 WHEN 87 THEN - + 83 WHEN - COUNT( * ) THEN NULL ELSE 73 + + ( ( - + ( - COALESCE ( NULLIF ( - 4, + + COUNT( * ) ), 1, + 69 ) ) ) ) END + + + 15
----
-54

skipif mysql # not compatible
query I rowsort label-1447
SELECT - CASE 93 WHEN 87 THEN - + 83 WHEN - COUNT ( * ) THEN NULL ELSE 73 + + ( ( - + ( - COALESCE ( NULLIF ( - 4, + + COUNT ( * ) ), 1, + 69 ) ) ) ) END + + + 15
----
-54

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1448
SELECT DISTINCT + + 73 * + COUNT( + + CAST( + 48 AS SIGNED ) ) + + CASE - - NULLIF ( - 28, - - 16 ) WHEN 0 THEN - + 59 ELSE - COUNT( + + 77 ) + + + 45 END - + CAST( NULL AS SIGNED ) + - 51 / COALESCE ( - + 51, - 9 * - 27 + 37 - ( + 20 ) + - 2 + + 71 * - MIN( DISTINCT + 97 ), - NULLIF ( + COUNT( * ), + + 35 * + NULLIF ( - - 86, - - 72 ) / + 47 ), ( + 16 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-1448
SELECT DISTINCT + + 73 * + COUNT ( + + CAST ( + 48 AS INTEGER ) ) + + CASE - - NULLIF ( - 28, - - 16 ) WHEN 0 THEN - + 59 ELSE - COUNT ( + + 77 ) + + + 45 END - + CAST ( NULL AS INTEGER ) + - 51 / COALESCE ( - + 51, - 9 * - 27 + 37 - ( + 20 ) + - 2 + + 71 * - MIN ( DISTINCT + 97 ), - NULLIF ( + COUNT ( * ), + + 35 * + NULLIF ( - - 86, - - 72 ) / + 47 ), ( + 16 ) )
----
NULL

query II rowsort
SELECT 45 * + 50 AS col1, 41
----
2250
41

onlyif mysql # aggregate syntax: 
query I rowsort label-1450
SELECT ALL - - MIN( DISTINCT 2 ) + 3
----
5

skipif mysql # not compatible
query I rowsort label-1450
SELECT ALL - - MIN ( DISTINCT 2 ) + 3
----
5

query I rowsort
SELECT 50 + - + 78 + - + 78 * 86 AS col0
----
-6736

query II rowsort
SELECT 86 - 83 + - 85 * + 47 * - - 44 - 22 col0, 36 AS col2
----
-175799
36

query II rowsort
SELECT 38, 54 AS col0
----
38
54

onlyif mysql # aggregate syntax: 
query I rowsort label-1454
SELECT MIN( + 58 ) + + COUNT( - 65 ) - + COUNT( * )
----
58

skipif mysql # not compatible
query I rowsort label-1454
SELECT MIN ( + 58 ) + + COUNT ( - 65 ) - + COUNT ( * )
----
58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1455
SELECT CASE - 87 WHEN - 14 * NULLIF ( 44, + 29 + + 35 ) * - ( - - CASE + - COUNT( * ) WHEN - ( - 2 ) THEN NULL WHEN + 6 THEN + COUNT( ALL + - 30 ) END ) THEN NULL ELSE - 68 * COUNT( DISTINCT 13 ) + + CAST( NULL AS SIGNED ) END + 13 * + CAST( - 42 AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1455
SELECT CASE - 87 WHEN - 14 * NULLIF ( 44, + 29 + + 35 ) * - ( - - CASE + - COUNT ( * ) WHEN - ( - 2 ) THEN NULL WHEN + 6 THEN + COUNT ( ALL + - 30 ) END ) THEN NULL ELSE - 68 * COUNT ( DISTINCT 13 ) + + CAST ( NULL AS INTEGER ) END + 13 * + CAST ( - 42 AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1456
SELECT - 76 AS col2, - MIN( ALL + + 92 )
----
-76
-92

skipif mysql # not compatible
query II rowsort label-1456
SELECT - 76 AS col2, - MIN ( ALL + + 92 )
----
-76
-92

query I rowsort
SELECT 5 + + 92 AS col2
----
97

onlyif mysql # DIV for integer division: 
query II rowsort label-1458
SELECT ALL 33, - 84 DIV + 29 - + - 74 * + 30 AS col2
----
33
2218

skipif mysql # not compatible
query II rowsort label-1458
SELECT ALL 33, - 84 / + 29 - + - 74 * + 30 AS col2
----
33
2218

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1459
SELECT DISTINCT - 12 + - CASE 18 WHEN + COUNT( * ) + SUM( - CAST( NULL AS SIGNED ) ) THEN NULL WHEN - 5 * - - 22 THEN + + 85 END col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1459
SELECT DISTINCT - 12 + - CASE 18 WHEN + COUNT ( * ) + SUM ( - CAST ( NULL AS INTEGER ) ) THEN NULL WHEN - 5 * - - 22 THEN + + 85 END col2
----
NULL

query II rowsort
SELECT 67 AS col2, - 85 col0
----
67
-85

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1462
SELECT NULLIF ( NULLIF ( + - 4, 45 ), + 77 ) * COUNT( * ) * + - 82
----
328

skipif mysql # not compatible
query I rowsort label-1462
SELECT NULLIF ( NULLIF ( + - 4, 45 ), + 77 ) * COUNT ( * ) * + - 82
----
328

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1464
SELECT - COUNT( * ) * - 81 + - 47 AS col2, 87
----
34
87

skipif mysql # not compatible
query II rowsort label-1464
SELECT - COUNT ( * ) * - 81 + - 47 AS col2, 87
----
34
87

onlyif mysql # aggregate syntax: 
query I rowsort label-1465
SELECT 73 + + COUNT( * )
----
74

skipif mysql # not compatible
query I rowsort label-1465
SELECT 73 + + COUNT ( * )
----
74

query I rowsort
SELECT DISTINCT - + CASE + 80 WHEN - 71 THEN NULL ELSE - - 16 * 58 END
----
-928

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1467
SELECT + + 65, - CASE - CAST( NULL AS SIGNED ) WHEN + COUNT( * ) * + + 12 * - 73 * + - 65 THEN NULL ELSE - - ( 14 ) END AS col1
----
65
-14

skipif mysql # not compatible
query II rowsort label-1467
SELECT + + 65, - CASE - CAST ( NULL AS INTEGER ) WHEN + COUNT ( * ) * + + 12 * - 73 * + - 65 THEN NULL ELSE - - ( 14 ) END AS col1
----
65
-14

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

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

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

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

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

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

query I rowsort
SELECT + CASE + + 53 WHEN + AVG ( - 53 ) THEN + - 33 / + 9 + - 38 END * - 43 + + - 33 AS col0
----
NULL

query I rowsort
SELECT ALL + 84 * - + 52 * + 14
----
-61152

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

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

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

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

query I rowsort
SELECT DISTINCT - 62 col1
----
-62

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

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

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

skipif mysql # not compatible
query I rowsort label-1477
SELECT ALL SUM ( ALL 83 )
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-1478
SELECT COALESCE ( - + 60, COUNT( * ) + - 34, - + 46 ) * ( + 97 ) AS col1
----
-5820

skipif mysql # not compatible
query I rowsort label-1478
SELECT COALESCE ( - + 60, COUNT ( * ) + - 34, - + 46 ) * ( + 97 ) AS col1
----
-5820

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1479
SELECT - - 60 AS col1, + CAST( - 13 AS SIGNED )
----
60
-13

skipif mysql # not compatible
query II rowsort label-1479
SELECT - - 60 AS col1, + CAST ( - 13 AS INTEGER )
----
60
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-1480
SELECT ALL + 99 + + COUNT( * )
----
100

skipif mysql # not compatible
query I rowsort label-1480
SELECT ALL + 99 + + COUNT ( * )
----
100

onlyif mysql # aggregate syntax: 
query II rowsort label-1481
SELECT DISTINCT - 41 + + SUM( ALL 2 ) AS col2, 74 - 97 AS col0
----
-39
-23

skipif mysql # not compatible
query II rowsort label-1481
SELECT DISTINCT - 41 + + SUM ( ALL 2 ) AS col2, 74 - 97 AS col0
----
-39
-23

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1482
SELECT + CAST( NULL AS SIGNED ) / 49
----
NULL

skipif mysql # not compatible
query I rowsort label-1482
SELECT + CAST ( NULL AS INTEGER ) / 49
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1483
SELECT 95 + + 74 + - + ( COUNT( * ) ) col1, CASE - + 45 WHEN - 57 THEN 71 + + 97 END - + 49 * 78 * + - 58
----
168
NULL

skipif mysql # not compatible
query II rowsort label-1483
SELECT 95 + + 74 + - + ( COUNT ( * ) ) col1, CASE - + 45 WHEN - 57 THEN 71 + + 97 END - + 49 * 78 * + - 58
----
168
NULL

query I rowsort
SELECT ALL - 25 + + - 25 AS col0
----
-50

query I rowsort
SELECT DISTINCT + 71 * - + 62
----
-4402

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1487
SELECT DISTINCT - 44 + + 55 * - + 55 * - COUNT( * ) AS col2, 66 col2
----
2981
66

skipif mysql # not compatible
query II rowsort label-1487
SELECT DISTINCT - 44 + + 55 * - + 55 * - COUNT ( * ) AS col2, 66 col2
----
2981
66

onlyif mysql # aggregate syntax: 
query II rowsort label-1488
SELECT DISTINCT + 53 * - 3 col0, + 67 + - - MAX( ALL 67 ) * COUNT( ALL - 92 )
----
-159
134

skipif mysql # not compatible
query II rowsort label-1488
SELECT DISTINCT + 53 * - 3 col0, + 67 + - - MAX ( ALL 67 ) * COUNT ( ALL - 92 )
----
-159
134

onlyif mysql # DIV for integer division: 
query II rowsort label-1489
SELECT ALL - 98 + + + 45, - 21 DIV + 52 AS col2
----
-53
0

skipif mysql # not compatible
query II rowsort label-1489
SELECT ALL - 98 + + + 45, - 21 / + 52 AS col2
----
-53
0

query I rowsort
SELECT ALL - 26 + - 6 AS col1
----
-32

query I rowsort
SELECT DISTINCT + 71 * - 53 col2
----
-3763

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

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

query I rowsort
SELECT 75 - - + 38 * 6 col1
----
303

onlyif mysql # aggregate syntax: 
query I rowsort label-1494
SELECT + CASE - + 7 WHEN COUNT( * ) THEN - 0 / + COUNT( * ) WHEN 68 THEN NULL END / + 70 * + MIN( ALL 48 ) + COUNT( DISTINCT - 4 ) + + 88
----
NULL

skipif mysql # not compatible
query I rowsort label-1494
SELECT + CASE - + 7 WHEN COUNT ( * ) THEN - 0 / + COUNT ( * ) WHEN 68 THEN NULL END / + 70 * + MIN ( ALL 48 ) + COUNT ( DISTINCT - 4 ) + + 88
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1495
SELECT + MAX( - 31 ), 30 col1
----
-31
30

skipif mysql # not compatible
query II rowsort label-1495
SELECT + MAX ( - 31 ), 30 col1
----
-31
30

onlyif mysql # DIV for integer division: 
query I rowsort label-1496
SELECT DISTINCT 98 * 85 DIV + - 44 AS col2
----
-189

skipif mysql # not compatible
query I rowsort label-1496
SELECT DISTINCT 98 * 85 / + - 44 AS col2
----
-189

query I rowsort
SELECT ALL 33 * - ( - - 86 )
----
-2838

onlyif mysql # DIV for integer division: 
query I rowsort label-1498
SELECT DISTINCT - 18 DIV + - 85 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-1498
SELECT DISTINCT - 18 / + - 85 AS col1
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-1499
SELECT DISTINCT - COUNT( * ) * - 15 AS col2, COALESCE ( + MAX( DISTINCT + 30 ), - 47 ) * + ( ( MAX( DISTINCT - 41 ) ) ) * + + 5 - 85 AS col0
----
15
-6235

skipif mysql # not compatible
query II rowsort label-1499
SELECT DISTINCT - COUNT ( * ) * - 15 AS col2, COALESCE ( + MAX ( DISTINCT + 30 ), - 47 ) * + ( ( MAX ( DISTINCT - 41 ) ) ) * + + 5 - 85 AS col0
----
15
-6235

query I rowsort
SELECT 29 + + 75 AS col0
----
104

onlyif mysql # DIV for integer division: 
query I rowsort label-1501
SELECT ALL + 80 * 2 DIV + 94
----
1

skipif mysql # not compatible
query I rowsort label-1501
SELECT ALL + 80 * 2 / + 94
----
1

query II rowsort
SELECT + 22 * - 52 AS col1, - NULLIF ( + 32, 3 + + 89 )
----
-1144
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-1503
SELECT DISTINCT - + MIN( ALL + - ( - 93 ) )
----
-93

skipif mysql # not compatible
query I rowsort label-1503
SELECT DISTINCT - + MIN ( ALL + - ( - 93 ) )
----
-93

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1504
SELECT + 69 * NULLIF ( + - 56, - + 46 ) * + 67 - + CAST( NULL AS DECIMAL ) + + + SUM( + ( 51 ) ) / - 72 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1504
SELECT + 69 * NULLIF ( + - 56, - + 46 ) * + 67 - + CAST ( NULL AS REAL ) + + + SUM ( + ( 51 ) ) / - 72 col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1505
SELECT + 44 * CAST( + 68 AS SIGNED ) AS col2
----
2992

skipif mysql # not compatible
query I rowsort label-1505
SELECT + 44 * CAST ( + 68 AS INTEGER ) AS col2
----
2992

onlyif mysql # aggregate syntax: 
query I rowsort label-1506
SELECT + 88 * + NULLIF ( + ( + - COUNT( + 67 ) ), 86 ) + + 65 + 22 - 51 * + 52 AS col2
----
-2653

skipif mysql # not compatible
query I rowsort label-1506
SELECT + 88 * + NULLIF ( + ( + - COUNT ( + 67 ) ), 86 ) + + 65 + 22 - 51 * + 52 AS col2
----
-2653

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1507
SELECT DISTINCT + CASE - + COUNT( * ) WHEN + - CASE SUM( - + CAST( NULL AS SIGNED ) ) WHEN 7 * - 69 THEN + 33 + - 23 WHEN - 74 / 76 THEN + - 11 * - NULLIF ( COUNT( * ), 20 ) + + 72 ELSE NULL END THEN + - COUNT( * ) ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1507
SELECT DISTINCT + CASE - + COUNT ( * ) WHEN + - CASE SUM ( - + CAST ( NULL AS INTEGER ) ) WHEN 7 * - 69 THEN + 33 + - 23 WHEN - 74 / 76 THEN + - 11 * - NULLIF ( COUNT ( * ), 20 ) + + 72 ELSE NULL END THEN + - COUNT ( * ) ELSE NULL END AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1508
SELECT ALL 41 + - MAX( ALL 54 ) * CASE 39 WHEN + + COUNT( DISTINCT + COALESCE ( + 65, + ( + ( + - 80 ) ) * - 59 * + 52 ) ) THEN NULL WHEN - + NULLIF ( - + COUNT( * ), + 37 ) THEN + 79 * + 95 / - 83 WHEN 95 / + NULLIF ( + + 17, + - 97 + - 17 * + - NULLIF ( + 25, - - 63 * - 43 ) ) + + CAST( NULL AS SIGNED ) THEN MIN( ALL 64 ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1508
SELECT ALL 41 + - MAX ( ALL 54 ) * CASE 39 WHEN + + COUNT ( DISTINCT + COALESCE ( + 65, + ( + ( + - 80 ) ) * - 59 * + 52 ) ) THEN NULL WHEN - + NULLIF ( - + COUNT ( * ), + 37 ) THEN + 79 * + 95 / - 83 WHEN 95 / + NULLIF ( + + 17, + - 97 + - 17 * + - NULLIF ( + 25, - - 63 * - 43 ) ) + + CAST ( NULL AS INTEGER ) THEN MIN ( ALL 64 ) END AS col1
----
NULL

query I rowsort
SELECT - COALESCE ( + + 27, - + 73 ) AS col1
----
-27

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

query I rowsort
SELECT ALL + - COALESCE ( - + 75, - 11 * + + 42 + - 71 - + - 94 * + - 79 * 27 + + 51 * 60, - 25 ) + 94 AS col1
----
169

query I rowsort
SELECT ALL - 3 + - + 43
----
-46

query I rowsort
SELECT ALL 30 + + 61 AS col0
----
91

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

skipif mysql # not compatible
query I rowsort label-1514
SELECT + 4 + - COUNT ( * ) * + + 8 AS col0
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-1515
SELECT ALL MIN( + 59 ) AS col0
----
59

skipif mysql # not compatible
query I rowsort label-1515
SELECT ALL MIN ( + 59 ) AS col0
----
59

onlyif mysql # aggregate syntax: 
query II rowsort label-1516
SELECT - ( 9 ) + + - NULLIF ( + COUNT( * ), - + 40 ) AS col2, - COUNT( * ) AS col1
----
-10
-1

skipif mysql # not compatible
query II rowsort label-1516
SELECT - ( 9 ) + + - NULLIF ( + COUNT ( * ), - + 40 ) AS col2, - COUNT ( * ) AS col1
----
-10
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-1517
SELECT ALL - 94 - + - COUNT( * ) * 25 AS col1
----
-69

skipif mysql # not compatible
query I rowsort label-1517
SELECT ALL - 94 - + - COUNT ( * ) * 25 AS col1
----
-69

query I rowsort
SELECT - 5 * + 74 * + 99
----
-36630

query I rowsort
SELECT - 64 + + - 58
----
-122

onlyif mysql # aggregate syntax: 
query I rowsort label-1520
SELECT ALL MIN( DISTINCT 60 ) AS col0
----
60

skipif mysql # not compatible
query I rowsort label-1520
SELECT ALL MIN ( DISTINCT 60 ) AS col0
----
60

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1521
SELECT + ( - 95 ) + - 57, 58 DIV - 9 + + COALESCE ( - 57, + - 61 + + CASE CAST( NULL AS SIGNED ) WHEN - SUM( + 58 ) + NULLIF ( + 59, + 91 ) THEN + MAX( ALL 61 ) - + - 5 WHEN - COUNT( * ) THEN NULL END * 23 + + 72 ) + - 60 AS col1
----
-152
-123

skipif mysql # not compatible
query II rowsort label-1521
SELECT + ( - 95 ) + - 57, 58 / - 9 + + COALESCE ( - 57, + - 61 + + CASE CAST ( NULL AS INTEGER ) WHEN - SUM ( + 58 ) + NULLIF ( + 59, + 91 ) THEN + MAX ( ALL 61 ) - + - 5 WHEN - COUNT ( * ) THEN NULL END * 23 + + 72 ) + - 60 AS col1
----
-152
-123

query I rowsort
SELECT - 82 - - 27
----
-55

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1523
SELECT - 58 + + + 79 + ( + + CAST( - + 32 AS SIGNED ) )
----
-11

skipif mysql # not compatible
query I rowsort label-1523
SELECT - 58 + + + 79 + ( + + CAST ( - + 32 AS INTEGER ) )
----
-11

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

skipif mysql # not compatible
query I rowsort label-1524
SELECT ALL - MAX ( DISTINCT - ( 37 ) ) * + - COUNT ( * ) / - 97
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1525
SELECT - MIN( - 67 ) * + 65
----
4355

skipif mysql # not compatible
query I rowsort label-1525
SELECT - MIN ( - 67 ) * + 65
----
4355

query II rowsort
SELECT - 92 AS col0, 15
----
-92
15

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

query I rowsort
SELECT - 46 * - + 10
----
460

onlyif mysql # aggregate syntax: 
query I rowsort label-1529
SELECT DISTINCT + COUNT( * ) * + 34 * 60
----
2040

skipif mysql # not compatible
query I rowsort label-1529
SELECT DISTINCT + COUNT ( * ) * + 34 * 60
----
2040

query I rowsort
SELECT - 98 + - - 63 * 43 AS col1
----
2611

onlyif mysql # DIV for integer division: 
query I rowsort label-1531
SELECT ALL - 43 DIV + 22 - 98 AS col0
----
-99

skipif mysql # not compatible
query I rowsort label-1531
SELECT ALL - 43 / + 22 - 98 AS col0
----
-99

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1533
SELECT DISTINCT - 23 * + 5 * + MIN( ALL - ( - 66 ) ) * 14 AS col2
----
-106260

skipif mysql # not compatible
query I rowsort label-1533
SELECT DISTINCT - 23 * + 5 * + MIN ( ALL - ( - 66 ) ) * 14 AS col2
----
-106260

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1534
SELECT 60 / CAST( NULL AS SIGNED ) + 15 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1534
SELECT 60 / CAST ( NULL AS INTEGER ) + 15 AS col0
----
NULL

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1539
SELECT + 20 + + COUNT( * ) AS col0
----
21

skipif mysql # not compatible
query I rowsort label-1539
SELECT + 20 + + COUNT ( * ) AS col0
----
21

query I rowsort
SELECT ALL 65 * 68 + 52 AS col1
----
4472

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1543
SELECT + 83 * + CAST( NULL AS SIGNED ) + 22 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1543
SELECT + 83 * + CAST ( NULL AS INTEGER ) + 22 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1544
SELECT ALL - CAST( COUNT( * ) AS SIGNED ) DIV - NULLIF ( - 52, 8 * 63 ) col2
----
0

skipif mysql # not compatible
query I rowsort label-1544
SELECT ALL - CAST ( COUNT ( * ) AS INTEGER ) / - NULLIF ( - 52, 8 * 63 ) col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1545
SELECT ALL - 35 * 16 + COUNT( + 13 )
----
-559

skipif mysql # not compatible
query I rowsort label-1545
SELECT ALL - 35 * 16 + COUNT ( + 13 )
----
-559

query I rowsort
SELECT ALL + 35 col1
----
35

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1547
SELECT ALL CAST( NULL AS DECIMAL ) * - 19 + 5
----
NULL

skipif mysql # not compatible
query I rowsort label-1547
SELECT ALL CAST ( NULL AS REAL ) * - 19 + 5
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1548
SELECT DISTINCT 77 * 74 + 34 * COUNT( * )
----
5732

skipif mysql # not compatible
query I rowsort label-1548
SELECT DISTINCT 77 * 74 + 34 * COUNT ( * )
----
5732

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1549
SELECT - 66 / - MIN( 71 * - CAST( NULL AS SIGNED ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1549
SELECT - 66 / - MIN ( 71 * - CAST ( NULL AS INTEGER ) ) AS col2
----
NULL

query I rowsort
SELECT ALL 51 * + 16 + 88 AS col2
----
904

onlyif mysql # aggregate syntax: 
query I rowsort label-1551
SELECT NULLIF ( ( MAX( 46 ) ), + 13 ) AS col2
----
46

skipif mysql # not compatible
query I rowsort label-1551
SELECT NULLIF ( ( MAX ( 46 ) ), + 13 ) AS col2
----
46

query I rowsort
SELECT CASE NULLIF ( + 73, - 19 * 17 ) WHEN - 56 / + 56 THEN NULL WHEN 28 * 23 THEN 25 WHEN 42 THEN NULL END * + 10 + + ( + 20 - 75 ) AS col2
----
NULL

query I rowsort
SELECT ALL 89 * + ( 31 * 51 ) + 80 * - 4
----
140389

query I rowsort
SELECT + 12 * + 25
----
300

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

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

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

skipif mysql # not compatible
query I rowsort label-1556
SELECT MAX ( + 82 )
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-1557
SELECT + 82 * - CASE 28 WHEN 30 THEN NULL WHEN + 44 THEN NULL WHEN + 75 THEN + 90 - ( + MAX( ALL - CASE 60 WHEN + 27 * - 14 THEN + ( 17 ) WHEN + 29 THEN NULL WHEN + ( 96 ) THEN - 81 * 51 + - ( + 73 + + 82 * 15 ) ELSE NULL END ) ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-1557
SELECT + 82 * - CASE 28 WHEN 30 THEN NULL WHEN + 44 THEN NULL WHEN + 75 THEN + 90 - ( + MAX ( ALL - CASE 60 WHEN + 27 * - 14 THEN + ( 17 ) WHEN + 29 THEN NULL WHEN + ( 96 ) THEN - 81 * 51 + - ( + 73 + + 82 * 15 ) ELSE NULL END ) ) END
----
NULL

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1560
SELECT ALL CASE - ( 63 ) WHEN + 97 + + CAST( - 97 + 89 AS SIGNED ) * - 87 THEN - AVG ( DISTINCT 66 ) ELSE NULL END - SUM( + 26 - + 23 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1560
SELECT ALL CASE - ( 63 ) WHEN + 97 + + CAST ( - 97 + 89 AS INTEGER ) * - 87 THEN - AVG ( DISTINCT 66 ) ELSE NULL END - SUM ( + 26 - + 23 ) AS col2
----
NULL

query I rowsort
SELECT - ( 59 )
----
-59

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1562
SELECT + 46 * + COALESCE ( COUNT( * ), + 28 DIV COALESCE ( COALESCE ( ( - 45 ), + 15 * - CASE - 87 WHEN - 19 * COUNT( * ) + + 28 * COUNT( * ) THEN 75 + 47 WHEN + AVG ( ALL + 12 ) * - 48 THEN NULL ELSE NULL END ), 22, - 67 ), + COUNT( * ) ) AS col2
----
46

skipif mysql # not compatible
query I rowsort label-1562
SELECT + 46 * + COALESCE ( COUNT ( * ), + 28 / COALESCE ( COALESCE ( ( - 45 ), + 15 * - CASE - 87 WHEN - 19 * COUNT ( * ) + + 28 * COUNT ( * ) THEN 75 + 47 WHEN + AVG ( ALL + 12 ) * - 48 THEN NULL ELSE NULL END ), 22, - 67 ), + COUNT ( * ) ) AS col2
----
46

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1563
SELECT - 52 * CAST( 36 AS SIGNED ) AS col1
----
-1872

skipif mysql # not compatible
query I rowsort label-1563
SELECT - 52 * CAST ( 36 AS INTEGER ) AS col1
----
-1872

onlyif mysql # aggregate syntax: 
query I rowsort label-1564
SELECT DISTINCT COALESCE ( + COUNT( * ), MIN( DISTINCT - 89 ) * + 1 - ( 65 + + 35 ) )
----
1

skipif mysql # not compatible
query I rowsort label-1564
SELECT DISTINCT COALESCE ( + COUNT ( * ), MIN ( DISTINCT - 89 ) * + 1 - ( 65 + + 35 ) )
----
1

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

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

query I rowsort
SELECT + 16 * 79 AS col0
----
1264

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

skipif mysql # not compatible
query I rowsort label-1567
SELECT - 51 * CAST ( NULL AS REAL )
----
NULL

query I rowsort
SELECT ALL CASE + 36 WHEN + 71 THEN 72 / 72 ELSE - 86 END AS col0
----
-86

query I rowsort
SELECT + 62 + 74 AS col0
----
136

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

skipif mysql # not compatible
query I rowsort label-1570
SELECT + 80 / 58
----
1

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1571
SELECT 73 DIV COALESCE ( + CAST( NULL AS SIGNED ), - 44 ) + ( 34 )
----
33

skipif mysql # not compatible
query I rowsort label-1571
SELECT 73 / COALESCE ( + CAST ( NULL AS INTEGER ), - 44 ) + ( 34 )
----
33

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

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

query I rowsort
SELECT 77 * - NULLIF ( - 24 + - 2, + 47 ) + + 19
----
2021

query I rowsort
SELECT - 17 * 4 AS col0
----
-68

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

query I rowsort
SELECT + 98 * + 6 - + 89
----
499

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

skipif mysql # not compatible
query I rowsort label-1577
SELECT DISTINCT - 69 + ( - COUNT ( * ) + + 35 ) AS col0
----
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-1578
SELECT DISTINCT - - COALESCE ( - NULLIF ( COUNT( * ), + 51 * COUNT( * ) - 89 / + 52 ), - 66 + SUM( 29 ) ) * COUNT( * ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-1578
SELECT DISTINCT - - COALESCE ( - NULLIF ( COUNT ( * ), + 51 * COUNT ( * ) - 89 / + 52 ), - 66 + SUM ( 29 ) ) * COUNT ( * ) AS col2
----
-1

query I rowsort
SELECT ALL + - 77 + + 45 AS col1
----
-32

query I rowsort
SELECT ALL - 78 + + 12
----
-66

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1581
SELECT 7 * CASE + 11 WHEN AVG ( DISTINCT - 73 ) DIV - MIN( ( + CASE + NULLIF ( - 25, + COALESCE ( ( 0 ), CAST( NULL AS SIGNED ) ) * - 77 ) WHEN + 48 THEN NULL ELSE 73 * 71 END ) ) THEN NULL ELSE ( + 24 ) DIV 72 END
----
0

skipif mysql # not compatible
query I rowsort label-1581
SELECT 7 * CASE + 11 WHEN AVG ( DISTINCT - 73 ) / - MIN ( ( + CASE + NULLIF ( - 25, + COALESCE ( ( 0 ), CAST ( NULL AS INTEGER ) ) * - 77 ) WHEN + 48 THEN NULL ELSE 73 * 71 END ) ) THEN NULL ELSE ( + 24 ) / 72 END
----
0

query I rowsort
SELECT + + 53 col2
----
53

query I rowsort
SELECT DISTINCT + 62 - 23 AS col1
----
39

query I rowsort
SELECT ALL - COALESCE ( 94, 22 * - 29 + - 26 * 44 )
----
-94

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

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

query I rowsort
SELECT DISTINCT 48 - + 27 col0
----
21

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

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

query I rowsort
SELECT 69 * + 40 * 85
----
234600

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1590
SELECT - 59 * + COALESCE ( - 57, - 69 ) - + COUNT( * ) * 70 AS col2
----
3293

skipif mysql # not compatible
query I rowsort label-1590
SELECT - 59 * + COALESCE ( - 57, - 69 ) - + COUNT ( * ) * 70 AS col2
----
3293

onlyif mysql # aggregate syntax: 
query I rowsort label-1591
SELECT DISTINCT + SUM( + - 83 ) * 85
----
-7055

skipif mysql # not compatible
query I rowsort label-1591
SELECT DISTINCT + SUM ( + - 83 ) * 85
----
-7055

query I rowsort
SELECT 85 + + 82 + + 16 AS col1
----
183

onlyif mysql # aggregate syntax: 
query I rowsort label-1593
SELECT MAX( 5 ) + - 95 * 91 AS col2
----
-8640

skipif mysql # not compatible
query I rowsort label-1593
SELECT MAX ( 5 ) + - 95 * 91 AS col2
----
-8640

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

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

query I rowsort
SELECT 4 * 23 AS col2
----
92

query I rowsort
SELECT 10 + - ( 26 ) - - 5 * - 64 AS col2
----
-336

query I rowsort
SELECT ( - 88 ) + 39 AS col0
----
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-1598
SELECT 39 + - 37 * CASE + 5 / - 58 - - COUNT( * ) WHEN 38 / + 4 THEN - COUNT( + 6 ) WHEN 8 + - 94 THEN 41 WHEN ( 97 ) / ( - 30 + + 72 * 99 ) + - NULLIF ( - 45, - 45 ) THEN NULL ELSE NULL END col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1598
SELECT 39 + - 37 * CASE + 5 / - 58 - - COUNT ( * ) WHEN 38 / + 4 THEN - COUNT ( + 6 ) WHEN 8 + - 94 THEN 41 WHEN ( 97 ) / ( - 30 + + 72 * 99 ) + - NULLIF ( - 45, - 45 ) THEN NULL ELSE NULL END col0
----
NULL

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1600
SELECT ALL COALESCE ( + - ( 65 ), - COUNT( * ) ) + - COUNT( * ) DIV 57
----
-65

skipif mysql # not compatible
query I rowsort label-1600
SELECT ALL COALESCE ( + - ( 65 ), - COUNT ( * ) ) + - COUNT ( * ) / 57
----
-65

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

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

query I rowsort
SELECT ( + 78 ) * + 80 AS col1
----
6240

query I rowsort
SELECT DISTINCT ( - 74 ) + 16
----
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-1604
SELECT ALL - 68 + COUNT( * ) * - 16
----
-84

skipif mysql # not compatible
query I rowsort label-1604
SELECT ALL - 68 + COUNT ( * ) * - 16
----
-84

query I rowsort
SELECT 65 + 15 + ( - 1 ) * - 35 AS col2
----
115

query I rowsort
SELECT ALL 24 * + - 93 + 26 AS col2
----
-2206

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

query I rowsort
SELECT ALL - - 7 AS col2
----
7

onlyif mysql # DIV for integer division: 
query I rowsort label-1609
SELECT DISTINCT + 18 DIV + - ( - 29 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-1609
SELECT DISTINCT + 18 / + - ( - 29 ) AS col0
----
0

query I rowsort
SELECT ALL 51 + + - 6 AS col1
----
45

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1612
SELECT - - COUNT( * ) * - + 30 + + 49 AS col1
----
19

skipif mysql # not compatible
query I rowsort label-1612
SELECT - - COUNT ( * ) * - + 30 + + 49 AS col1
----
19

query I rowsort
SELECT DISTINCT 69 + 11 AS col0
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-1614
SELECT NULLIF ( COUNT( * ), + 65 + 39 ) + 30 AS col0
----
31

skipif mysql # not compatible
query I rowsort label-1614
SELECT NULLIF ( COUNT ( * ), + 65 + 39 ) + 30 AS col0
----
31

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1615
SELECT + NULLIF ( + - 52, - 60 ) * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-1615
SELECT + NULLIF ( + - 52, - 60 ) * CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1616
SELECT CASE COUNT( DISTINCT 45 ) WHEN 14 THEN NULL WHEN - 33 - - 42 THEN NULL WHEN - 85 * + 4 THEN + COUNT( 46 ) + + 88 ELSE NULL END + + 64 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1616
SELECT CASE COUNT ( DISTINCT 45 ) WHEN 14 THEN NULL WHEN - 33 - - 42 THEN NULL WHEN - 85 * + 4 THEN + COUNT ( 46 ) + + 88 ELSE NULL END + + 64 AS col2
----
NULL

query I rowsort
SELECT + 57 * 7 AS col1
----
399

query I rowsort
SELECT ALL + NULLIF ( + 11, + CASE - 95 WHEN - 5 THEN + 74 END * 3 + + 32 ) * 13 AS col1
----
143

onlyif mysql # DIV for integer division: 
query I rowsort label-1619
SELECT DISTINCT 36 DIV 5
----
7

skipif mysql # not compatible
query I rowsort label-1619
SELECT DISTINCT 36 / 5
----
7

onlyif mysql # DIV for integer division: 
query I rowsort label-1620
SELECT 60 DIV + 76 - - 79
----
79

skipif mysql # not compatible
query I rowsort label-1620
SELECT 60 / + 76 - - 79
----
79

query I rowsort
SELECT ALL - 3 col1
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1622
SELECT CAST( - 66 AS SIGNED ) * 79 + + 22 col1
----
-5192

skipif mysql # not compatible
query I rowsort label-1622
SELECT CAST ( - 66 AS INTEGER ) * 79 + + 22 col1
----
-5192

onlyif mysql # DIV for integer division: 
query I rowsort label-1623
SELECT - 98 * + COALESCE ( - 65, 66, + 64 + - 53 DIV 8 ) * 11
----
70070

skipif mysql # not compatible
query I rowsort label-1623
SELECT - 98 * + COALESCE ( - 65, 66, + 64 + - 53 / 8 ) * 11
----
70070

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1624
SELECT - COUNT( * ) + + COUNT( * ) + 64 DIV - 3
----
-21

skipif mysql # not compatible
query I rowsort label-1624
SELECT - COUNT ( * ) + + COUNT ( * ) + 64 / - 3
----
-21

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

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

query I rowsort
SELECT DISTINCT + 73 * - 64 - + 79 AS col2
----
-4751

query I rowsort
SELECT + 29 + - 1 + ( 71 ) AS col2
----
99

onlyif mysql # DIV for integer division: 
query II rowsort label-1628
SELECT DISTINCT - 46 col2, 10 * - - 31 + 72 DIV - 67 AS col2
----
-46
309

skipif mysql # not compatible
query II rowsort label-1628
SELECT DISTINCT - 46 col2, 10 * - - 31 + 72 / - 67 AS col2
----
-46
309

query I rowsort
SELECT - 92 * ( - 39 ) + 56 AS col2
----
3644

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1630
SELECT DISTINCT 27, NULLIF ( - 33, CAST( 60 AS SIGNED ) + COUNT( * ) ) AS col2
----
27
-33

skipif mysql # not compatible
query II rowsort label-1630
SELECT DISTINCT 27, NULLIF ( - 33, CAST ( 60 AS INTEGER ) + COUNT ( * ) ) AS col2
----
27
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-1631
SELECT DISTINCT + MIN( ALL 61 ) * - + COUNT( * )
----
-61

skipif mysql # not compatible
query I rowsort label-1631
SELECT DISTINCT + MIN ( ALL 61 ) * - + COUNT ( * )
----
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-1632
SELECT DISTINCT MIN( + 47 )
----
47

skipif mysql # not compatible
query I rowsort label-1632
SELECT DISTINCT MIN ( + 47 )
----
47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1633
SELECT ALL CAST( ( - NULLIF ( + 63, 1 ) ) AS SIGNED ) * - 62
----
3906

skipif mysql # not compatible
query I rowsort label-1633
SELECT ALL CAST ( ( - NULLIF ( + 63, 1 ) ) AS INTEGER ) * - 62
----
3906

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

skipif mysql # not compatible
query I rowsort label-1634
SELECT COUNT ( * ) * - 79
----
-79

query I rowsort
SELECT ALL + CASE + - 61 WHEN - + CASE - 84 WHEN + 27 THEN + 74 END THEN NULL ELSE - ( 37 ) END + - 20 AS col0
----
-57

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

skipif mysql # not compatible
query II rowsort label-1636
SELECT DISTINCT COUNT ( * ) AS col0, + CAST ( NULL AS INTEGER ) + 76 * + 44
----
1
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1637
SELECT DISTINCT + ( + 12 ) * - 45 - + COUNT( * )
----
-541

skipif mysql # not compatible
query I rowsort label-1637
SELECT DISTINCT + ( + 12 ) * - 45 - + COUNT ( * )
----
-541

query I rowsort
SELECT ALL - ( 99 ) * + 79 AS col2
----
-7821

onlyif mysql # aggregate syntax: 
query I rowsort label-1639
SELECT - 39 * - SUM( - 78 ) col0
----
-3042

skipif mysql # not compatible
query I rowsort label-1639
SELECT - 39 * - SUM ( - 78 ) col0
----
-3042

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

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

query I rowsort
SELECT - 16 * - 68 AS col2
----
1088

query I rowsort
SELECT ALL 27 + 13 AS col1
----
40

query I rowsort
SELECT ALL + 1 * 60 * 28 * - 5 AS col1
----
-8400

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

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

query I rowsort
SELECT - 9 * - 12 * - 14
----
-1512

onlyif mysql # DIV for integer division: 
query I rowsort label-1646
SELECT ALL 21 DIV - 9 AS col1
----
-2

skipif mysql # not compatible
query I rowsort label-1646
SELECT ALL 21 / - 9 AS col1
----
-2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1647
SELECT DISTINCT - - 85 + + CASE - ( 44 ) WHEN - 15 THEN 53 * 88 + + 41 WHEN 66 * 72 + 55 THEN 86 WHEN COUNT( * ) + CAST( NULL AS SIGNED ) THEN NULL ELSE 34 * 41 END * 55
----
76755

skipif mysql # not compatible
query I rowsort label-1647
SELECT DISTINCT - - 85 + + CASE - ( 44 ) WHEN - 15 THEN 53 * 88 + + 41 WHEN 66 * 72 + 55 THEN 86 WHEN COUNT ( * ) + CAST ( NULL AS INTEGER ) THEN NULL ELSE 34 * 41 END * 55
----
76755

query I rowsort
SELECT ALL + - 22 + - 37 col2
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-1649
SELECT - - 31 + + CASE COUNT( * ) WHEN - 59 * - 19 THEN 66 / + 49 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1649
SELECT - - 31 + + CASE COUNT ( * ) WHEN - 59 * - 19 THEN 66 / + 49 END AS col2
----
NULL

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

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

query I rowsort
SELECT ALL - NULLIF ( 48, + 75 / CASE 86 + + 68 * - 38 WHEN + 52 + 80 * 72 THEN - 63 + 38 ELSE NULL END ) AS col2
----
-48

query I rowsort
SELECT ALL - 45 * + ( - 12 )
----
540

query I rowsort
SELECT + - 81 + - 10
----
-91

onlyif mysql # DIV for integer division: 
query II rowsort label-1654
SELECT + 75 AS col0, 14 DIV + 53
----
75
0

skipif mysql # not compatible
query II rowsort label-1654
SELECT + 75 AS col0, 14 / + 53
----
75
0

query II rowsort
SELECT DISTINCT + - 81 AS col1, - 55 * + 46 * CASE WHEN NULL IS NOT NULL THEN 88 ELSE NULL END
----
-81
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1656
SELECT ALL + 84 * COUNT( * ) * + 34 * + 9 + - 67 * - SUM( DISTINCT + 37 ) AS col2
----
28183

skipif mysql # not compatible
query I rowsort label-1656
SELECT ALL + 84 * COUNT ( * ) * + 34 * + 9 + - 67 * - SUM ( DISTINCT + 37 ) AS col2
----
28183

query II rowsort
SELECT DISTINCT + - 29, 80 AS col0
----
-29
80

onlyif mysql # aggregate syntax: 
query I rowsort label-1658
SELECT - 51 * + COUNT( + + 98 ) + 40 * 8 AS col1
----
269

skipif mysql # not compatible
query I rowsort label-1658
SELECT - 51 * + COUNT ( + + 98 ) + 40 * 8 AS col1
----
269

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

skipif mysql # not compatible
query I rowsort label-1659
SELECT ALL + NULLIF ( - - 40, - 31 + - COUNT ( * ) )
----
40

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

query I rowsort
SELECT + - 24 * - 34
----
816

onlyif mysql # DIV for integer division: 
query I rowsort label-1662
SELECT ALL - + 21 DIV + 87 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-1662
SELECT ALL - + 21 / + 87 AS col1
----
0

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1664
SELECT 80 * - ( + CAST( 67 AS SIGNED ) ) + + 71 + - 14 * - 92
----
-4001

skipif mysql # not compatible
query I rowsort label-1664
SELECT 80 * - ( + CAST ( 67 AS INTEGER ) ) + + 71 + - 14 * - 92
----
-4001

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1665
SELECT ALL + MIN( ALL - 5 ) DIV + 38
----
0

skipif mysql # not compatible
query I rowsort label-1665
SELECT ALL + MIN ( ALL - 5 ) / + 38
----
0

query I rowsort
SELECT + ( + + 88 ) * 27 * 22 col2
----
52272

query I rowsort
SELECT - 27 * - + 83
----
2241

onlyif mysql # DIV for integer division: 
query I rowsort label-1668
SELECT ALL ( 12 ) DIV - 50 * + 26 + + 98
----
98

skipif mysql # not compatible
query I rowsort label-1668
SELECT ALL ( 12 ) / - 50 * + 26 + + 98
----
98

onlyif mysql # aggregate syntax: 
query I rowsort label-1669
SELECT + CASE + MAX( - + 5 ) WHEN - ( 55 ) + 40 THEN 26 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1669
SELECT + CASE + MAX ( - + 5 ) WHEN - ( 55 ) + 40 THEN 26 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1670
SELECT ALL + MIN( 4 ) AS col0
----
4

skipif mysql # not compatible
query I rowsort label-1670
SELECT ALL + MIN ( 4 ) AS col0
----
4

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1671
SELECT + 6 DIV COUNT( ALL 91 ) * + 30 * 9
----
1620

skipif mysql # not compatible
query I rowsort label-1671
SELECT + 6 / COUNT ( ALL 91 ) * + 30 * 9
----
1620

onlyif mysql # DIV for integer division: 
query I rowsort label-1672
SELECT ALL 11 DIV - + 97 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-1672
SELECT ALL 11 / - + 97 AS col2
----
0

query I rowsort
SELECT + 23 - 57 AS col0
----
-34

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1675
SELECT ALL + CAST( + - MAX( DISTINCT + 17 ) AS SIGNED ) * + 9 + 95
----
-58

skipif mysql # not compatible
query I rowsort label-1675
SELECT ALL + CAST ( + - MAX ( DISTINCT + 17 ) AS INTEGER ) * + 9 + 95
----
-58

query I rowsort
SELECT DISTINCT - 12 * + COALESCE ( - 45, + + 51 ) + 83
----
623

onlyif mysql # aggregate syntax: 
query I rowsort label-1677
SELECT ALL + ( + + 57 ) * + - 1 + + ( - COUNT( * ) ) - + 11 * + 13 + 19
----
-182

skipif mysql # not compatible
query I rowsort label-1677
SELECT ALL + ( + + 57 ) * + - 1 + + ( - COUNT ( * ) ) - + 11 * + 13 + 19
----
-182

query I rowsort
SELECT + 63 + - + 88 + 97 + + 66 AS col0
----
138

query I rowsort
SELECT - 12 * + - 48 - 33 + - 19
----
524

query I rowsort
SELECT ALL COALESCE ( - 43, - + 46 + + 93, + 97 ) AS col2
----
-43

query I rowsort
SELECT + 40 + 61 - 95 * - - 97 * - 25 + 60 * 36 AS col1
----
232636

query I rowsort
SELECT ALL - 42 + + 58 AS col0
----
16

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

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

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

query I rowsort
SELECT ALL - 15 * + COALESCE ( ( - 36 ), - 92 * 1 - 57 ) * + 72
----
38880

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1686
SELECT ALL - CAST( NULL AS SIGNED ) + COUNT( * ) + + + ( ( - 43 ) ) * 5 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1686
SELECT ALL - CAST ( NULL AS INTEGER ) + COUNT ( * ) + + + ( ( - 43 ) ) * 5 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1687
SELECT - + CASE + - 80 WHEN - - 44 * - + MIN( + 13 ) THEN NULL WHEN - 40 * 1 + + 55 THEN + 68 * + 9 END + - 31 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1687
SELECT - + CASE + - 80 WHEN - - 44 * - + MIN ( + 13 ) THEN NULL WHEN - 40 * 1 + + 55 THEN + 68 * + 9 END + - 31 AS col1
----
NULL

query I rowsort
SELECT - - 96 + + 23 + + 23 AS col1
----
142

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

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

query I rowsort
SELECT DISTINCT + COALESCE ( + 66, + 72 * - 20 ) AS col2
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-1691
SELECT + COUNT( * ) + 20 AS col0
----
21

skipif mysql # not compatible
query I rowsort label-1691
SELECT + COUNT ( * ) + 20 AS col0
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-1692
SELECT ALL - + 90 * 78 - + 81 + + ( - 79 ) + CASE ( SUM( ALL 19 ) ) WHEN 39 THEN 12 WHEN 68 * COALESCE ( 99 * + 10, + 18 ) THEN NULL END * 3 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1692
SELECT ALL - + 90 * 78 - + 81 + + ( - 79 ) + CASE ( SUM ( ALL 19 ) ) WHEN 39 THEN 12 WHEN 68 * COALESCE ( 99 * + 10, + 18 ) THEN NULL END * 3 AS col2
----
NULL

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1694
SELECT + 89 * - 35 - + + 67 - - CAST( NULL AS SIGNED ) * - ( COUNT( * ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-1694
SELECT + 89 * - 35 - + + 67 - - CAST ( NULL AS INTEGER ) * - ( COUNT ( * ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1695
SELECT - 94 / + - 60 * - - 37 + CASE AVG ( ALL + 99 ) WHEN - CASE 51 WHEN + 49 THEN NULL WHEN - 49 * - 74 THEN NULL ELSE 18 END / COUNT( * ) THEN - 9 - - AVG ( DISTINCT - 97 + 53 ) ELSE NULL END + + 21 * - MIN( ALL 73 ) / 51 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1695
SELECT - 94 / + - 60 * - - 37 + CASE AVG ( ALL + 99 ) WHEN - CASE 51 WHEN + 49 THEN NULL WHEN - 49 * - 74 THEN NULL ELSE 18 END / COUNT ( * ) THEN - 9 - - AVG ( DISTINCT - 97 + 53 ) ELSE NULL END + + 21 * - MIN ( ALL 73 ) / 51 AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1696
SELECT DISTINCT - 40 * + 10 - CAST( NULL AS SIGNED ) + + + 57
----
NULL

skipif mysql # not compatible
query I rowsort label-1696
SELECT DISTINCT - 40 * + 10 - CAST ( NULL AS INTEGER ) + + + 57
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1697
SELECT ALL MAX( + CAST( NULL AS SIGNED ) ) * - COUNT( * ) * + + COALESCE ( 23, + MAX( DISTINCT + 59 ) + 63 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1697
SELECT ALL MAX ( + CAST ( NULL AS INTEGER ) ) * - COUNT ( * ) * + + COALESCE ( 23, + MAX ( DISTINCT + 59 ) + 63 )
----
NULL

query I rowsort
SELECT + + 12 * 16 col0
----
192

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1699
SELECT + CASE + 80 WHEN MAX( + 78 ) * CAST( NULL AS DECIMAL ) THEN 35 + ( + 58 ) WHEN - ( - 30 ) - CAST( NULL AS SIGNED ) THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1699
SELECT + CASE + 80 WHEN MAX ( + 78 ) * CAST ( NULL AS REAL ) THEN 35 + ( + 58 ) WHEN - ( - 30 ) - CAST ( NULL AS INTEGER ) THEN NULL END
----
NULL

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1701
SELECT 9 * - - 52 + - 60 DIV - COUNT( + 72 )
----
528

skipif mysql # not compatible
query I rowsort label-1701
SELECT 9 * - - 52 + - 60 / - COUNT ( + 72 )
----
528

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1702
SELECT ALL - 23 DIV + COUNT( * ) + - ( 91 ) + CASE NULLIF ( 54, + MIN( ALL 46 ) * - 46 ) WHEN 41 + NULLIF ( 9, + 99 + + 60 ) DIV 17 THEN SUM( DISTINCT + 50 ) + 32 WHEN + 97 * CAST( - 82 * - 81 AS SIGNED ) + - 42 * - 54 THEN - ( 63 ) WHEN + 37 THEN NULL ELSE 10 END + COUNT( * ) AS col1
----
-103

skipif mysql # not compatible
query I rowsort label-1702
SELECT ALL - 23 / + COUNT ( * ) + - ( 91 ) + CASE NULLIF ( 54, + MIN ( ALL 46 ) * - 46 ) WHEN 41 + NULLIF ( 9, + 99 + + 60 ) / 17 THEN SUM ( DISTINCT + 50 ) + 32 WHEN + 97 * CAST ( - 82 * - 81 AS INTEGER ) + - 42 * - 54 THEN - ( 63 ) WHEN + 37 THEN NULL ELSE 10 END + COUNT ( * ) AS col1
----
-103

query II rowsort
SELECT ALL + 59 AS col1, ( 77 ) + - - 41
----
59
118

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1706
SELECT + NULLIF ( COUNT( ALL + 55 ), + 31 * 98 + 26 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-1706
SELECT + NULLIF ( COUNT ( ALL + 55 ), + 31 * 98 + 26 ) AS col0
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1707
SELECT ALL + 24 * + - NULLIF ( - - CASE + ( 5 ) WHEN - 61 + 42 THEN NULL WHEN 13 - 53 THEN NULL ELSE 55 END, NULLIF ( 2, 9 / + CAST( NULL AS SIGNED ) ) ) + 44 AS col0
----
-1276

skipif mysql # not compatible
query I rowsort label-1707
SELECT ALL + 24 * + - NULLIF ( - - CASE + ( 5 ) WHEN - 61 + 42 THEN NULL WHEN 13 - 53 THEN NULL ELSE 55 END, NULLIF ( 2, 9 / + CAST ( NULL AS INTEGER ) ) ) + 44 AS col0
----
-1276

query I rowsort
SELECT 10 * - - 17 AS col1
----
170

query I rowsort
SELECT ( 11 ) * + 95 AS col1
----
1045

query II rowsort
SELECT + 46 * + + 86 + 85, 39 AS col2
----
4041
39

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1711
SELECT ALL CAST( 74 AS SIGNED ) + + + 25 * + 66 * + - 36 + 43
----
-59283

skipif mysql # not compatible
query I rowsort label-1711
SELECT ALL CAST ( 74 AS INTEGER ) + + + 25 * + 66 * + - 36 + 43
----
-59283

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

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

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

skipif mysql # not compatible
query I rowsort label-1713
SELECT COUNT ( * ) * - 73
----
-73

query I rowsort
SELECT DISTINCT 45 * 52 col0
----
2340

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1715
SELECT ALL 16 + - 43 DIV + COUNT( * ) AS col0
----
-27

skipif mysql # not compatible
query I rowsort label-1715
SELECT ALL 16 + - 43 / + COUNT ( * ) AS col0
----
-27

query I rowsort
SELECT DISTINCT 51 * + + 19
----
969

query I rowsort
SELECT 35 - 74
----
-39

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1718
SELECT 70 * + - COUNT( * ) * - + COUNT( * ) AS col0, - CASE - NULLIF ( CAST( NULL AS SIGNED ), CASE WHEN + 61 = NULL THEN NULL ELSE 46 * + 86 END ) WHEN - 18 THEN NULL WHEN + 41 THEN NULL ELSE 74 END
----
70
-74

skipif mysql # not compatible
query II rowsort label-1718
SELECT 70 * + - COUNT ( * ) * - + COUNT ( * ) AS col0, - CASE - NULLIF ( CAST ( NULL AS INTEGER ), CASE WHEN + 61 = NULL THEN NULL ELSE 46 * + 86 END ) WHEN - 18 THEN NULL WHEN + 41 THEN NULL ELSE 74 END
----
70
-74

query I rowsort
SELECT ALL 85 * - 9
----
-765

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

query I rowsort
SELECT DISTINCT + NULLIF ( + + 42, + 64 ) AS col1
----
42

query I rowsort
SELECT ALL - - 55 - 92 col1
----
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-1723
SELECT + NULLIF ( - ( - - 37 ), + 85 + + + 87 / COUNT( DISTINCT + 12 / + 99 ) ) * 25 AS col0
----
-925

skipif mysql # not compatible
query I rowsort label-1723
SELECT + NULLIF ( - ( - - 37 ), + 85 + + + 87 / COUNT ( DISTINCT + 12 / + 99 ) ) * 25 AS col0
----
-925

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1724
SELECT CAST( NULL AS SIGNED ) * 61
----
NULL

skipif mysql # not compatible
query I rowsort label-1724
SELECT CAST ( NULL AS INTEGER ) * 61
----
NULL

query I rowsort
SELECT 19 - - 69 AS col1
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-1726
SELECT ALL - COUNT( DISTINCT + 2 )
----
-1

skipif mysql # not compatible
query I rowsort label-1726
SELECT ALL - COUNT ( DISTINCT + 2 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-1727
SELECT ( 50 ) - - + MIN( DISTINCT 98 ) * + + 56
----
5538

skipif mysql # not compatible
query I rowsort label-1727
SELECT ( 50 ) - - + MIN ( DISTINCT 98 ) * + + 56
----
5538

query I rowsort
SELECT - + 12 col0
----
-12

onlyif mysql # aggregate syntax: 
query II rowsort label-1729
SELECT ALL - 55, - 65 + + + 70 + - + 81 * - 99 * + 61 - + CASE 57 WHEN 55 THEN + 58 - COUNT( * ) * - 29 WHEN - 61 / - 34 THEN NULL WHEN - 15 THEN NULL ELSE 70 END AS col0
----
-55
489094

skipif mysql # not compatible
query II rowsort label-1729
SELECT ALL - 55, - 65 + + + 70 + - + 81 * - 99 * + 61 - + CASE 57 WHEN 55 THEN + 58 - COUNT ( * ) * - 29 WHEN - 61 / - 34 THEN NULL WHEN - 15 THEN NULL ELSE 70 END AS col0
----
-55
489094

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1731
SELECT CAST( - 31 AS SIGNED ) * - 37 AS col1
----
1147

skipif mysql # not compatible
query I rowsort label-1731
SELECT CAST ( - 31 AS INTEGER ) * - 37 AS col1
----
1147

query I rowsort
SELECT 45 + - + 85 AS col0
----
-40

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

skipif mysql # not compatible
query I rowsort label-1733
SELECT 89 / - 93
----
0

query I rowsort
SELECT ALL - 2 * + 3 + ( + 76 ) + + + 9 * + 90 AS col0
----
880

query I rowsort
SELECT - NULLIF ( + - ( - ( + ( + + 35 ) ) ), 62 + 46 ) + 90
----
55

query I rowsort
SELECT 35 - - 78 AS col2
----
113

query I rowsort
SELECT ( - + 68 ) + - 25 AS col0
----
-93

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1739
SELECT 68 / 29 + - CAST( NULL AS SIGNED ), CAST( + COUNT( * ) AS SIGNED ) * + 94 - 0 AS col0
----
NULL
94

skipif mysql # not compatible
query II rowsort label-1739
SELECT 68 / 29 + - CAST ( NULL AS INTEGER ), CAST ( + COUNT ( * ) AS INTEGER ) * + 94 - 0 AS col0
----
NULL
94

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1740
SELECT + 9 DIV COUNT( * ) * - COUNT( * ) * 21 * 32 + - 96 * - 67 AS col2
----
384

skipif mysql # not compatible
query I rowsort label-1740
SELECT + 9 / COUNT ( * ) * - COUNT ( * ) * 21 * 32 + - 96 * - 67 AS col2
----
384

query I rowsort
SELECT ALL - - 8 + - 17
----
-9

query I rowsort
SELECT ALL - 2 + + - 12 AS col2
----
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-1743
SELECT - + 99 * + + 88 * + 48 + + - AVG ( ALL 1 ) - - CASE - COUNT( * ) + + COUNT( * ) * 10 WHEN + 83 THEN 14 + + COUNT( * ) * - 16 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1743
SELECT - + 99 * + + 88 * + 48 + + - AVG ( ALL 1 ) - - CASE - COUNT ( * ) + + COUNT ( * ) * 10 WHEN + 83 THEN 14 + + COUNT ( * ) * - 16 ELSE NULL END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1744
SELECT 20 DIV - 23 * - - 91 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-1744
SELECT 20 / - 23 * - - 91 AS col0
----
0

query II rowsort
SELECT DISTINCT - ( + 87 ) AS col1, 69
----
-87
69

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

query II rowsort
SELECT 27 AS col2, + 23 col2
----
27
23

query II rowsort
SELECT + 78, 83 AS col2
----
78
83

onlyif mysql # aggregate syntax: 
query I rowsort label-1749
SELECT DISTINCT + ( 72 ) + - - 34 - - + 70 * + COUNT( * )
----
176

skipif mysql # not compatible
query I rowsort label-1749
SELECT DISTINCT + ( 72 ) + - - 34 - - + 70 * + COUNT ( * )
----
176

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1750
SELECT ALL MIN( DISTINCT 14 ) + - 15 + - - 44 + + - COALESCE ( + - MAX( 44 ), 16 DIV 5 ) * + 85 AS col0
----
3783

skipif mysql # not compatible
query I rowsort label-1750
SELECT ALL MIN ( DISTINCT 14 ) + - 15 + - - 44 + + - COALESCE ( + - MAX ( 44 ), 16 / 5 ) * + 85 AS col0
----
3783

onlyif mysql # aggregate syntax: 
query I rowsort label-1751
SELECT DISTINCT MAX( - 69 ) * + 66 + + 28
----
-4526

skipif mysql # not compatible
query I rowsort label-1751
SELECT DISTINCT MAX ( - 69 ) * + 66 + + 28
----
-4526

query I rowsort
SELECT ALL 4 * - 42 AS col1
----
-168

query I rowsort
SELECT 45 - - 99
----
144

query I rowsort
SELECT ALL - 42 - + 71 - + ( + ( - 97 ) ) AS col2
----
-16

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

query I rowsort
SELECT 35 + + 91 * 6 AS col0
----
581

query II rowsort
SELECT 80, 21 AS col1
----
80
21

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1758
SELECT 44 + - - NULLIF ( + + MIN( ALL - + 85 ), + COUNT( * ) * + NULLIF ( - ( 84 ), 0 DIV + 85 + - ( - 24 ) ) ) + 4 DIV 50 col0
----
-41

skipif mysql # not compatible
query I rowsort label-1758
SELECT 44 + - - NULLIF ( + + MIN ( ALL - + 85 ), + COUNT ( * ) * + NULLIF ( - ( 84 ), 0 / + 85 + - ( - 24 ) ) ) + 4 / 50 col0
----
-41

query II rowsort
SELECT ALL 11, + ( - ( - 13 ) ) AS col1
----
11
13

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1760
SELECT MAX( DISTINCT + - ( 51 ) ) + CASE COUNT( ALL - + 79 ) WHEN 4 + MAX( DISTINCT COALESCE ( NULLIF ( 29, - 27 ), - 95, + 78 ) + ( 29 + - 27 ) * 39 ) / 44 THEN ( NULLIF ( - 80, 45 + + 47 ) ) * MAX( - 5 ) + CAST( - SUM( - 23 ) + NULLIF ( 17, 17 ) AS SIGNED ) END + + 73
----
NULL

skipif mysql # not compatible
query I rowsort label-1760
SELECT MAX ( DISTINCT + - ( 51 ) ) + CASE COUNT ( ALL - + 79 ) WHEN 4 + MAX ( DISTINCT COALESCE ( NULLIF ( 29, - 27 ), - 95, + 78 ) + ( 29 + - 27 ) * 39 ) / 44 THEN ( NULLIF ( - 80, 45 + + 47 ) ) * MAX ( - 5 ) + CAST ( - SUM ( - 23 ) + NULLIF ( 17, 17 ) AS INTEGER ) END + + 73
----
NULL

query I rowsort
SELECT 55 - - 70 * - - 87
----
6145

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

skipif mysql # not compatible
query I rowsort label-1762
SELECT COUNT ( * ) / + - 73 AS col0
----
0

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1764
SELECT - CAST( NULL AS SIGNED ) + + - 13 + + 74 * + - 62 + + 16 / ( 67 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1764
SELECT - CAST ( NULL AS INTEGER ) + + - 13 + + 74 * + - 62 + + 16 / ( 67 )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1765
SELECT 34 + - COUNT( + + 26 ) + 9, 14 AS col1
----
42
14

skipif mysql # not compatible
query II rowsort label-1765
SELECT 34 + - COUNT ( + + 26 ) + 9, 14 AS col1
----
42
14

query I rowsort
SELECT - ( - 71 ) + + 46
----
117

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1767
SELECT ALL - NULLIF ( + + 25, + + NULLIF ( - + CAST( + - 4 AS SIGNED ), - 64 * 47 ) + 87 * - 62 ) * - 61 AS col0
----
1525

skipif mysql # not compatible
query I rowsort label-1767
SELECT ALL - NULLIF ( + + 25, + + NULLIF ( - + CAST ( + - 4 AS INTEGER ), - 64 * 47 ) + 87 * - 62 ) * - 61 AS col0
----
1525

onlyif mysql # aggregate syntax: 
query II rowsort label-1768
SELECT 11 * - 91 AS col2, 16 + + COUNT( * ) + + + COUNT( * ) * + 42 * + 22 - 45 col1
----
-1001
896

skipif mysql # not compatible
query II rowsort label-1768
SELECT 11 * - 91 AS col2, 16 + + COUNT ( * ) + + + COUNT ( * ) * + 42 * + 22 - 45 col1
----
-1001
896

query I rowsort
SELECT DISTINCT - 6 * + 37
----
-222

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1770
SELECT ALL 31 + COUNT( * ) + + 78 * + + ( - - 62 ) * + + 53 + + 3 DIV ( - COUNT( 35 ) * - COUNT( * ) ) AS col2
----
256343

skipif mysql # not compatible
query I rowsort label-1770
SELECT ALL 31 + COUNT ( * ) + + 78 * + + ( - - 62 ) * + + 53 + + 3 / ( - COUNT ( 35 ) * - COUNT ( * ) ) AS col2
----
256343

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1772
SELECT AVG ( ALL CAST( NULL AS SIGNED ) ) * - 26 * - COUNT( ALL - CASE - + 9 WHEN - 37 / 90 THEN + ( 21 ) WHEN 7 - + 34 THEN + 72 END )
----
NULL

skipif mysql # not compatible
query I rowsort label-1772
SELECT AVG ( ALL CAST ( NULL AS INTEGER ) ) * - 26 * - COUNT ( ALL - CASE - + 9 WHEN - 37 / 90 THEN + ( 21 ) WHEN 7 - + 34 THEN + 72 END )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1773
SELECT - CASE + - COUNT( * ) WHEN - - 16 THEN - ( COALESCE ( - - COALESCE ( 21, COUNT( * ) + + MAX( ALL - 31 ) * - 38 ), 93 * 37 + SUM( 35 ) / - 6 ) ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-1773
SELECT - CASE + - COUNT ( * ) WHEN - - 16 THEN - ( COALESCE ( - - COALESCE ( 21, COUNT ( * ) + + MAX ( ALL - 31 ) * - 38 ), 93 * 37 + SUM ( 35 ) / - 6 ) ) END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1774
SELECT + COUNT( DISTINCT - - 18 ) + - 0 col2
----
1

skipif mysql # not compatible
query I rowsort label-1774
SELECT + COUNT ( DISTINCT - - 18 ) + - 0 col2
----
1

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

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

query I rowsort
SELECT DISTINCT - 65 + + + 89
----
24

query I rowsort
SELECT DISTINCT 2 + 35 + + NULLIF ( + ( - - 0 ), - 70 + 53 )
----
37

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

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

query I rowsort
SELECT COALESCE ( 6, + 89 )
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-1780
SELECT DISTINCT COALESCE ( - - 67, - COUNT( * ) ) AS col1
----
67

skipif mysql # not compatible
query I rowsort label-1780
SELECT DISTINCT COALESCE ( - - 67, - COUNT ( * ) ) AS col1
----
67

onlyif mysql # aggregate syntax: 
query I rowsort label-1781
SELECT - MIN( ALL - - 72 ) * 82
----
-5904

skipif mysql # not compatible
query I rowsort label-1781
SELECT - MIN ( ALL - - 72 ) * 82
----
-5904

onlyif mysql # aggregate syntax: 
query I rowsort label-1782
SELECT COALESCE ( - 81, MAX( + 2 ) * + 71 + NULLIF ( COUNT( * ), - CASE MIN( + 0 ) WHEN NULLIF ( + ( ( + AVG ( 58 ) ) ), 30 / 14 ) + 16 THEN - 17 ELSE NULL END ) + 83, + COUNT( * ) )
----
-81

skipif mysql # not compatible
query I rowsort label-1782
SELECT COALESCE ( - 81, MAX ( + 2 ) * + 71 + NULLIF ( COUNT ( * ), - CASE MIN ( + 0 ) WHEN NULLIF ( + ( ( + AVG ( 58 ) ) ), 30 / 14 ) + 16 THEN - 17 ELSE NULL END ) + 83, + COUNT ( * ) )
----
-81

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1784
SELECT COUNT( * ) * + - MAX( + 58 ) + - ( + 52 ) col0, 75 AS col2
----
-110
75

skipif mysql # not compatible
query II rowsort label-1784
SELECT COUNT ( * ) * + - MAX ( + 58 ) + - ( + 52 ) col0, 75 AS col2
----
-110
75

query I rowsort
SELECT DISTINCT + 69 * 65 + + ( + - 73 ) AS col0
----
4412

onlyif mysql # aggregate syntax: 
query I rowsort label-1786
SELECT ALL + COUNT( * ) * + 91 * + 74 * - 17 AS col0
----
-114478

skipif mysql # not compatible
query I rowsort label-1786
SELECT ALL + COUNT ( * ) * + 91 * + 74 * - 17 AS col0
----
-114478

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1787
SELECT + 0 DIV 13 * + + ( - + 36 ) * SUM( ALL - + 40 ) + - - NULLIF ( COALESCE ( 44, + COUNT( * ) * - 64 + COUNT( 78 ) * + 4 ), - 34 ) - + 63
----
-19

skipif mysql # not compatible
query I rowsort label-1787
SELECT + 0 / 13 * + + ( - + 36 ) * SUM ( ALL - + 40 ) + - - NULLIF ( COALESCE ( 44, + COUNT ( * ) * - 64 + COUNT ( 78 ) * + 4 ), - 34 ) - + 63
----
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-1788
SELECT NULLIF ( - COUNT( * ), + MIN( - + 47 ) ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-1788
SELECT NULLIF ( - COUNT ( * ), + MIN ( - + 47 ) ) AS col2
----
-1

query I rowsort
SELECT NULLIF ( + 27, - 18 ) AS col0
----
27

query I rowsort
SELECT DISTINCT + 75 * - - 12 - 66 - 42 * - 94 * COALESCE ( - - 34, 73, - 9 ) * 67 AS col1
----
8994378

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1791
SELECT - 37 * - CAST( NULL AS SIGNED ) + - - 57 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1791
SELECT - 37 * - CAST ( NULL AS INTEGER ) + - - 57 AS col2
----
NULL

query I rowsort
SELECT ALL - 42 * - - 59 - + 38 AS col2
----
-2516

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1793
SELECT DISTINCT + 74 DIV + 6 * - COUNT( * )
----
-12

skipif mysql # not compatible
query I rowsort label-1793
SELECT DISTINCT + 74 / + 6 * - COUNT ( * )
----
-12

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1795
SELECT ALL 68 * 35 - 62 * - + COUNT( * ) + + 78
----
2520

skipif mysql # not compatible
query I rowsort label-1795
SELECT ALL 68 * 35 - 62 * - + COUNT ( * ) + + 78
----
2520

onlyif mysql # DIV for integer division: 
query I rowsort label-1796
SELECT ALL 57 DIV - + 30
----
-1

skipif mysql # not compatible
query I rowsort label-1796
SELECT ALL 57 / - + 30
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1797
SELECT - ( + 54 ) * COUNT( * ) * + - 49 DIV + COUNT( * ) + - COUNT( * ) DIV - 2 * + 93 + COUNT( - 49 ) * 94
----
2740

skipif mysql # not compatible
query I rowsort label-1797
SELECT - ( + 54 ) * COUNT ( * ) * + - 49 / + COUNT ( * ) + - COUNT ( * ) / - 2 * + 93 + COUNT ( - 49 ) * 94
----
2740

query I rowsort
SELECT - 33 * - 80 * - 23
----
-60720

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1800
SELECT + CASE + + 98 WHEN - COUNT( * ) THEN - 59 / + 86 + + 23 * + ( + 80 ) END + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-1800
SELECT + CASE + + 98 WHEN - COUNT ( * ) THEN - 59 / + 86 + + 23 * + ( + 80 ) END + COUNT ( * )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1801
SELECT ALL + COALESCE ( + + 61, + 52 - 95 * 65 DIV 11 )
----
61

skipif mysql # not compatible
query I rowsort label-1801
SELECT ALL + COALESCE ( + + 61, + 52 - 95 * 65 / 11 )
----
61

query I rowsort
SELECT ALL 97 * + 74
----
7178

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1804
SELECT ALL + CASE - 94 WHEN - 81 THEN NULL WHEN - 55 THEN + + 86 - NULLIF ( - AVG ( ALL 53 ), - 76 ) + - CASE 5 WHEN + 19 THEN NULL WHEN - 38 * + CAST( NULL AS SIGNED ) THEN NULL ELSE - 30 * + 28 + - MIN( ALL 3 ) END END
----
NULL

skipif mysql # not compatible
query I rowsort label-1804
SELECT ALL + CASE - 94 WHEN - 81 THEN NULL WHEN - 55 THEN + + 86 - NULLIF ( - AVG ( ALL 53 ), - 76 ) + - CASE 5 WHEN + 19 THEN NULL WHEN - 38 * + CAST ( NULL AS INTEGER ) THEN NULL ELSE - 30 * + 28 + - MIN ( ALL 3 ) END END
----
NULL

query I rowsort
SELECT ALL 22 * 23 - + - 57 * - + 36
----
-1546

onlyif mysql # DIV for integer division: 
query I rowsort label-1806
SELECT + + 40 DIV - - 58
----
0

skipif mysql # not compatible
query I rowsort label-1806
SELECT + + 40 / - - 58
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1807
SELECT MAX( - - 85 )
----
85

skipif mysql # not compatible
query I rowsort label-1807
SELECT MAX ( - - 85 )
----
85

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1809
SELECT SUM( DISTINCT - 48 ) AS col2, + 55 AS col0
----
-48
55

skipif mysql # not compatible
query II rowsort label-1809
SELECT SUM ( DISTINCT - 48 ) AS col2, + 55 AS col0
----
-48
55

query I rowsort
SELECT - - 59 col0
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-1811
SELECT - COALESCE ( + 74, 25, - COUNT( * ) ) AS col2
----
-74

skipif mysql # not compatible
query I rowsort label-1811
SELECT - COALESCE ( + 74, 25, - COUNT ( * ) ) AS col2
----
-74

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1812
SELECT DISTINCT + MIN( + 41 ) DIV - + 36
----
-1

skipif mysql # not compatible
query I rowsort label-1812
SELECT DISTINCT + MIN ( + 41 ) / - + 36
----
-1

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1814
SELECT ALL 52 + - + CAST( + 36 AS SIGNED ) + - 98 AS col0
----
-82

skipif mysql # not compatible
query I rowsort label-1814
SELECT ALL 52 + - + CAST ( + 36 AS INTEGER ) + - 98 AS col0
----
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-1815
SELECT + NULLIF ( - NULLIF ( + 24, MIN( ALL 75 ) * - - 97 ), + + 14 ) - + COUNT( * ) * - ( 66 ) AS col1
----
42

skipif mysql # not compatible
query I rowsort label-1815
SELECT + NULLIF ( - NULLIF ( + 24, MIN ( ALL 75 ) * - - 97 ), + + 14 ) - + COUNT ( * ) * - ( 66 ) AS col1
----
42

query I rowsort
SELECT ALL 65 + 31 col0
----
96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1817
SELECT DISTINCT + 33 + + 91 * + CAST( NULL AS SIGNED ) + - + 59 - 32 + - COUNT( * ) + 3 * - 53
----
NULL

skipif mysql # not compatible
query I rowsort label-1817
SELECT DISTINCT + 33 + + 91 * + CAST ( NULL AS INTEGER ) + - + 59 - 32 + - COUNT ( * ) + 3 * - 53
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1819
SELECT ALL - 58 * - COUNT( DISTINCT 67 ) + + - 43 AS col1
----
15

skipif mysql # not compatible
query I rowsort label-1819
SELECT ALL - 58 * - COUNT ( DISTINCT 67 ) + + - 43 AS col1
----
15

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

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

query I rowsort
SELECT CASE - 72 WHEN + + 76 THEN - 70 END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1823
SELECT + 23 + - 26 * - COUNT( * ) * + CAST( 98 AS SIGNED ) * - 8 + - + MIN( ALL 22 ) AS col1
----
-20383

skipif mysql # not compatible
query I rowsort label-1823
SELECT + 23 + - 26 * - COUNT ( * ) * + CAST ( 98 AS INTEGER ) * - 8 + - + MIN ( ALL 22 ) AS col1
----
-20383

query I rowsort
SELECT - 29 - 94 + - 0 AS col0
----
-123

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

onlyif mysql # DIV for integer division: 
query II rowsort label-1826
SELECT - 47 + + - 13 - - - 69 DIV - + 95 - - 33 * - + 81, + 3 AS col0
----
-2733
3

skipif mysql # not compatible
query II rowsort label-1826
SELECT - 47 + + - 13 - - - 69 / - + 95 - - 33 * - + 81, + 3 AS col0
----
-2733
3

onlyif mysql # aggregate syntax: 
query I rowsort label-1827
SELECT + 96 / - NULLIF ( COUNT( * ), 26 ) * + - 95 * 21 - - 75 + - CASE 22 WHEN + 68 THEN COUNT( * ) + - 40 * + 68 WHEN NULLIF ( + 67, 41 + + 59 ) * + 84 THEN NULL WHEN 15 + + 55 THEN 57 * 62 END - - MIN( ALL + 24 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1827
SELECT + 96 / - NULLIF ( COUNT ( * ), 26 ) * + - 95 * 21 - - 75 + - CASE 22 WHEN + 68 THEN COUNT ( * ) + - 40 * + 68 WHEN NULLIF ( + 67, 41 + + 59 ) * + 84 THEN NULL WHEN 15 + + 55 THEN 57 * 62 END - - MIN ( ALL + 24 )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1828
SELECT ALL NULLIF ( + CAST( NULL AS SIGNED ), + - ( + COUNT( DISTINCT 11 ) ) * ( 42 ) * ( - 13 ) ) / 84 - 0 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1828
SELECT ALL NULLIF ( + CAST ( NULL AS INTEGER ), + - ( + COUNT ( DISTINCT 11 ) ) * ( 42 ) * ( - 13 ) ) / 84 - 0 AS col2
----
NULL

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1830
SELECT CAST( + NULLIF ( + 67, 9 * - 4 ) AS SIGNED ) AS col1
----
67

skipif mysql # not compatible
query I rowsort label-1830
SELECT CAST ( + NULLIF ( + 67, 9 * - 4 ) AS INTEGER ) AS col1
----
67

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

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

query I rowsort
SELECT ALL + 87 * - 35 AS col2
----
-3045

onlyif mysql # aggregate syntax: 
query I rowsort label-1833
SELECT ALL + COUNT( + 5 )
----
1

skipif mysql # not compatible
query I rowsort label-1833
SELECT ALL + COUNT ( + 5 )
----
1

query I rowsort
SELECT + 75 + - 32
----
43

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

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

query I rowsort
SELECT - ( - ( + 93 ) ) * + - 18 * - 52
----
87048

onlyif mysql # DIV for integer division: 
query II rowsort label-1837
SELECT DISTINCT + 79 * 86 DIV + 31, + 51 AS col0
----
219
51

skipif mysql # not compatible
query II rowsort label-1837
SELECT DISTINCT + 79 * 86 / + 31, + 51 AS col0
----
219
51

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1839
SELECT - 3 DIV 67 * - - COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-1839
SELECT - 3 / 67 * - - COUNT ( * )
----
0

query I rowsort
SELECT 16 * + + 92 - + 26 AS col1
----
1446

query I rowsort
SELECT DISTINCT 27 * + 90 col1
----
2430

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1842
SELECT - CASE + - 65 WHEN + ( 5 ) * + 31 THEN NULL ELSE + 15 END + - + 74 + + + CAST( - ( + 87 ) AS SIGNED )
----
-176

skipif mysql # not compatible
query I rowsort label-1842
SELECT - CASE + - 65 WHEN + ( 5 ) * + 31 THEN NULL ELSE + 15 END + - + 74 + + + CAST ( - ( + 87 ) AS INTEGER )
----
-176

onlyif mysql # DIV for integer division: 
query II rowsort label-1843
SELECT ALL + - 64 col0, + COALESCE ( - - 55, - ( NULLIF ( NULLIF ( - 53, ( + 93 ) + NULLIF ( - 39 + - 65, + 65 * - 99 ) ), - 79 ) ) DIV - 46 ) + + 90
----
-64
145

skipif mysql # not compatible
query II rowsort label-1843
SELECT ALL + - 64 col0, + COALESCE ( - - 55, - ( NULLIF ( NULLIF ( - 53, ( + 93 ) + NULLIF ( - 39 + - 65, + 65 * - 99 ) ), - 79 ) ) / - 46 ) + + 90
----
-64
145

query I rowsort
SELECT - + 86 * + - 38 AS col0
----
3268

onlyif mysql # aggregate syntax: 
query I rowsort label-1845
SELECT ALL 69 * + 6 + 19 + + + COUNT( * ) + 25 AS col2
----
459

skipif mysql # not compatible
query I rowsort label-1845
SELECT ALL 69 * + 6 + 19 + + + COUNT ( * ) + 25 AS col2
----
459

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

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

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

skipif mysql # not compatible
query I rowsort label-1847
SELECT - 70 + - CAST ( NULL AS INTEGER ) + + 81 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1848
SELECT + MAX( ALL 68 ) AS col2
----
68

skipif mysql # not compatible
query I rowsort label-1848
SELECT + MAX ( ALL 68 ) AS col2
----
68

query II rowsort
SELECT + ( - 9 ) - - - 95 AS col2, 82 col2
----
-104
82

onlyif mysql # aggregate syntax: 
query I rowsort label-1850
SELECT ALL - COALESCE ( - + 33, + 17 ) * 93 + 57 * + 81 + ( MAX( ALL 42 ) ) * - ( ( 59 ) ) AS col0
----
5208

skipif mysql # not compatible
query I rowsort label-1850
SELECT ALL - COALESCE ( - + 33, + 17 ) * 93 + 57 * + 81 + ( MAX ( ALL 42 ) ) * - ( ( 59 ) ) AS col0
----
5208

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1851
SELECT - 72 * + 88 / + 37 + CASE - CASE + CASE - + 45 WHEN 71 * 4 THEN + 62 WHEN COALESCE ( NULLIF ( 35, + 43 ), 98 ) + ( 31 ) * + 19 THEN + 59 END WHEN AVG ( - 47 ) THEN NULL WHEN 82 THEN - 15 ELSE CAST( NULL AS SIGNED ) END WHEN + 88 THEN - 94 WHEN - 5 THEN NULL END + 44 * - CAST( + COUNT( * ) / - 62 AS SIGNED ) + 98
----
NULL

skipif mysql # not compatible
query I rowsort label-1851
SELECT - 72 * + 88 / + 37 + CASE - CASE + CASE - + 45 WHEN 71 * 4 THEN + 62 WHEN COALESCE ( NULLIF ( 35, + 43 ), 98 ) + ( 31 ) * + 19 THEN + 59 END WHEN AVG ( - 47 ) THEN NULL WHEN 82 THEN - 15 ELSE CAST ( NULL AS INTEGER ) END WHEN + 88 THEN - 94 WHEN - 5 THEN NULL END + 44 * - CAST ( + COUNT ( * ) / - 62 AS INTEGER ) + 98
----
NULL

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

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

query I rowsort
SELECT ALL - 53 col0
----
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-1854
SELECT DISTINCT + MIN( + COALESCE ( + 72, 37 * - - 69, - 58 + - 89 * + 50 ) ) * 10
----
720

skipif mysql # not compatible
query I rowsort label-1854
SELECT DISTINCT + MIN ( + COALESCE ( + 72, 37 * - - 69, - 58 + - 89 * + 50 ) ) * 10
----
720

onlyif mysql # aggregate syntax: 
query I rowsort label-1855
SELECT ALL - + 89 + - - NULLIF ( - + ( + - 78 ), - - COUNT( * ) )
----
-11

skipif mysql # not compatible
query I rowsort label-1855
SELECT ALL - + 89 + - - NULLIF ( - + ( + - 78 ), - - COUNT ( * ) )
----
-11

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

query I rowsort
SELECT + 46 + - 73 + 38 * + 44
----
1645

query I rowsort
SELECT ALL - 29 + + 58 col1
----
29

query I rowsort
SELECT + 86 * 23 AS col0
----
1978

query I rowsort
SELECT 58 + 4
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-1861
SELECT 29 * - SUM( ALL - + 47 ) * + 63 / + + CASE SUM( DISTINCT 97 ) WHEN + COUNT( * ) THEN NULL WHEN + 26 + - 13 / 97 THEN COUNT( DISTINCT - 1 ) END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1861
SELECT 29 * - SUM ( ALL - + 47 ) * + 63 / + + CASE SUM ( DISTINCT 97 ) WHEN + COUNT ( * ) THEN NULL WHEN + 26 + - 13 / 97 THEN COUNT ( DISTINCT - 1 ) END col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1862
SELECT DISTINCT - COUNT( * ) - - 98
----
97

skipif mysql # not compatible
query I rowsort label-1862
SELECT DISTINCT - COUNT ( * ) - - 98
----
97

onlyif mysql # aggregate syntax: 
query II rowsort label-1863
SELECT DISTINCT 46 * - - COUNT( * ) AS col2, + 56 AS col0
----
46
56

skipif mysql # not compatible
query II rowsort label-1863
SELECT DISTINCT 46 * - - COUNT ( * ) AS col2, + 56 AS col0
----
46
56

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1864
SELECT DISTINCT - NULLIF ( + 27, + COUNT( * ) ) DIV ( 85 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-1864
SELECT DISTINCT - NULLIF ( + 27, + COUNT ( * ) ) / ( 85 ) AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1865
SELECT DISTINCT 23 - - 98 + + 24 + + 21 / + COUNT( * ) + + COUNT( * ) + + 83 + + CASE - 5 WHEN - 84 THEN MAX( DISTINCT - 67 ) WHEN + 9 * + 5 THEN 75 END / AVG ( 64 ) * 53
----
NULL

skipif mysql # not compatible
query I rowsort label-1865
SELECT DISTINCT 23 - - 98 + + 24 + + 21 / + COUNT ( * ) + + COUNT ( * ) + + 83 + + CASE - 5 WHEN - 84 THEN MAX ( DISTINCT - 67 ) WHEN + 9 * + 5 THEN 75 END / AVG ( 64 ) * 53
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1866
SELECT ALL 81 * + + 25 DIV - + COUNT( * )
----
-2025

skipif mysql # not compatible
query I rowsort label-1866
SELECT ALL 81 * + + 25 / - + COUNT ( * )
----
-2025

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1867
SELECT 55 + + CASE - CAST( + - AVG ( DISTINCT - ( - - 35 ) ) AS SIGNED ) WHEN 7 - + - 90 THEN + 95 END + - 9 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1867
SELECT 55 + + CASE - CAST ( + - AVG ( DISTINCT - ( - - 35 ) ) AS INTEGER ) WHEN 7 - + - 90 THEN + 95 END + - 9 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1868
SELECT - ( - - 5 ) * - COUNT( * ) * 52 + 63 * 66
----
4418

skipif mysql # not compatible
query I rowsort label-1868
SELECT - ( - - 5 ) * - COUNT ( * ) * 52 + 63 * 66
----
4418

onlyif mysql # aggregate syntax: 
query I rowsort label-1869
SELECT ALL 22 * - - 71 * - 55 * COUNT( * ) * + 10 AS col0
----
-859100

skipif mysql # not compatible
query I rowsort label-1869
SELECT ALL 22 * - - 71 * - 55 * COUNT ( * ) * + 10 AS col0
----
-859100

query I rowsort
SELECT ( ( - 35 ) ) * + 10 + + - 64 - - ( - - 31 )
----
-383

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1871
SELECT + 54 DIV + 41 + + + 30 * NULLIF ( - COUNT( * ), - 52 + + 1 ) - - + 10 AS col1
----
-19

skipif mysql # not compatible
query I rowsort label-1871
SELECT + 54 / + 41 + + + 30 * NULLIF ( - COUNT ( * ), - 52 + + 1 ) - - + 10 AS col1
----
-19

query I rowsort
SELECT ALL 15 + 28 + + 17
----
60

query I rowsort
SELECT + 85 * + 95 + 53 - 91 * 41 AS col0
----
4397

query I rowsort
SELECT DISTINCT 44 + + + ( + 28 )
----
72

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1876
SELECT DISTINCT - + MIN( ALL 18 ) AS col2
----
-18

skipif mysql # not compatible
query I rowsort label-1876
SELECT DISTINCT - + MIN ( ALL 18 ) AS col2
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-1877
SELECT - 10 + - COUNT( * ) AS col2
----
-11

skipif mysql # not compatible
query I rowsort label-1877
SELECT - 10 + - COUNT ( * ) AS col2
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-1878
SELECT DISTINCT - 18 * ( + 67 ) + SUM( - 65 ) * + 68
----
-5626

skipif mysql # not compatible
query I rowsort label-1878
SELECT DISTINCT - 18 * ( + 67 ) + SUM ( - 65 ) * + 68
----
-5626

onlyif mysql # aggregate syntax: 
query I rowsort label-1879
SELECT ALL 84 + MAX( ALL 80 )
----
164

skipif mysql # not compatible
query I rowsort label-1879
SELECT ALL 84 + MAX ( ALL 80 )
----
164

onlyif mysql # DIV for integer division: 
query I rowsort label-1880
SELECT - 67 DIV - + 95 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-1880
SELECT - 67 / - + 95 AS col2
----
0

query I rowsort
SELECT ALL + - 41 + 40 * - 34
----
-1401

onlyif mysql # aggregate syntax: 
query I rowsort label-1882
SELECT DISTINCT - 36 + ( + COUNT( DISTINCT 31 ) ) - CASE 18 WHEN COUNT( * ) THEN + + 30 + - ( COUNT( * ) ) + 73 END + - 86 * COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-1882
SELECT DISTINCT - 36 + ( + COUNT ( DISTINCT 31 ) ) - CASE 18 WHEN COUNT ( * ) THEN + + 30 + - ( COUNT ( * ) ) + 73 END + - 86 * COUNT ( * )
----
NULL

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1884
SELECT ALL - - 28 DIV - + 37, 40 DIV COALESCE ( - + 72, CASE 61 WHEN + - 40 + + 14 THEN 85 ELSE NULL END * COUNT( * ) ) AS col2
----
0
0

skipif mysql # not compatible
query II rowsort label-1884
SELECT ALL - - 28 / - + 37, 40 / COALESCE ( - + 72, CASE 61 WHEN + - 40 + + 14 THEN 85 ELSE NULL END * COUNT ( * ) ) AS col2
----
0
0

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

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

skipif mysql # not compatible
query I rowsort label-1886
SELECT ALL + 33 - - MAX ( DISTINCT 9 ) AS col0
----
42

query I rowsort
SELECT 68 - 36 AS col0
----
32

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1889
SELECT MIN( - 81 ) DIV - 22
----
3

skipif mysql # not compatible
query I rowsort label-1889
SELECT MIN ( - 81 ) / - 22
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-1890
SELECT ALL + 42 DIV 17 * - + 96
----
-192

skipif mysql # not compatible
query I rowsort label-1890
SELECT ALL + 42 / 17 * - + 96
----
-192

query I rowsort
SELECT - 53 * + - 13 + + 96
----
785

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1893
SELECT DISTINCT - CAST( + 44 AS SIGNED )
----
-44

skipif mysql # not compatible
query I rowsort label-1893
SELECT DISTINCT - CAST ( + 44 AS INTEGER )
----
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-1894
SELECT ALL + SUM( - 76 ) - + - 65 + - SUM( DISTINCT + 31 ) AS col1
----
-42

skipif mysql # not compatible
query I rowsort label-1894
SELECT ALL + SUM ( - 76 ) - + - 65 + - SUM ( DISTINCT + 31 ) AS col1
----
-42

query I rowsort
SELECT ALL - 96 * + 41
----
-3936

query I rowsort
SELECT 58 - + 42 + + - 81 * + 69 AS col1
----
-5573

onlyif mysql # aggregate syntax: 
query I rowsort label-1897
SELECT ALL - CASE - 9 WHEN + - 34 THEN 13 WHEN + 67 - + 37 + + - 48 THEN NULL ELSE - - COUNT( ALL - 96 ) END * - - 64
----
-64

skipif mysql # not compatible
query I rowsort label-1897
SELECT ALL - CASE - 9 WHEN + - 34 THEN 13 WHEN + 67 - + 37 + + - 48 THEN NULL ELSE - - COUNT ( ALL - 96 ) END * - - 64
----
-64

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: DIV for integer division: 
query I rowsort label-1900
SELECT 48 + NULLIF ( - + 3, CASE - 1 WHEN + + NULLIF ( + - NULLIF ( 92, + - 23 ), - NULLIF ( ( 77 ), + 7 * - 36 + 47 ) * CAST( + NULLIF ( 83, 52 * 62 + - COALESCE ( - ( - 25 ), CAST( NULL AS SIGNED ) * + MIN( ALL 95 ) + 64 * + 69, ( 80 ) ) * + 68 ) AS DECIMAL ) ) + 27 THEN 43 END DIV 89 ) + - 5 DIV 24
----
45

skipif mysql # not compatible
query I rowsort label-1900
SELECT 48 + NULLIF ( - + 3, CASE - 1 WHEN + + NULLIF ( + - NULLIF ( 92, + - 23 ), - NULLIF ( ( 77 ), + 7 * - 36 + 47 ) * CAST ( + NULLIF ( 83, 52 * 62 + - COALESCE ( - ( - 25 ), CAST ( NULL AS INTEGER ) * + MIN ( ALL 95 ) + 64 * + 69, ( 80 ) ) * + 68 ) AS REAL ) ) + 27 THEN 43 END / 89 ) + - 5 / 24
----
45

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

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

query I rowsort
SELECT 54 * ( + + 72 )
----
3888

query I rowsort
SELECT 90 * + ( + 0 ) AS col0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1904
SELECT ALL 39 + + 45 * - - COUNT( 93 ) DIV 50 + + 70 + - 94 col2
----
15

skipif mysql # not compatible
query I rowsort label-1904
SELECT ALL 39 + + 45 * - - COUNT ( 93 ) / 50 + + 70 + - 94 col2
----
15

onlyif mysql # DIV for integer division: 
query II rowsort label-1905
SELECT ALL - 28 col1, 3 - - 72 DIV 49
----
-28
4

skipif mysql # not compatible
query II rowsort label-1905
SELECT ALL - 28 col1, 3 - - 72 / 49
----
-28
4

onlyif mysql # aggregate syntax: 
query II rowsort label-1906
SELECT COUNT( * ) AS col1, - ( + CASE 20 WHEN 72 * + + 53 THEN + 81 END ) col2
----
1
NULL

skipif mysql # not compatible
query II rowsort label-1906
SELECT COUNT ( * ) AS col1, - ( + CASE 20 WHEN 72 * + + 53 THEN + 81 END ) col2
----
1
NULL

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

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

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

skipif mysql # not compatible
query I rowsort label-1908
SELECT MIN ( DISTINCT 16 )
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-1909
SELECT ALL 6 * 93 + - 7 + COUNT( * ) * + 36
----
587

skipif mysql # not compatible
query I rowsort label-1909
SELECT ALL 6 * 93 + - 7 + COUNT ( * ) * + 36
----
587

onlyif mysql # aggregate syntax: 
query I rowsort label-1910
SELECT COUNT( ALL - + 34 ) * + 56
----
56

skipif mysql # not compatible
query I rowsort label-1910
SELECT COUNT ( ALL - + 34 ) * + 56
----
56

query I rowsort
SELECT ALL 31 * + 51 + - 42
----
1539

query I rowsort
SELECT ALL 68 * - - 78
----
5304

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1913
SELECT ALL CAST( NULL AS SIGNED ) * - 73 + + - 61 + + COUNT( * )
----
NULL

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1914
SELECT ALL + 29 * 4 + - - 49 + + - 63 * - - CASE - - 85 WHEN CAST( NULL AS SIGNED ) * - CAST( 99 AS SIGNED ) THEN - 0 * 10 WHEN + 57 * 23 THEN NULL ELSE NULL END * 60 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1914
SELECT ALL + 29 * 4 + - - 49 + + - 63 * - - CASE - - 85 WHEN CAST ( NULL AS INTEGER ) * - CAST ( 99 AS INTEGER ) THEN - 0 * 10 WHEN + 57 * 23 THEN NULL ELSE NULL END * 60 AS col2
----
NULL

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

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

query I rowsort
SELECT ALL 68 * - 27 AS col1
----
-1836

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

skipif mysql # not compatible
query I rowsort label-1917
SELECT + COUNT ( * ) * + 29 / + 38
----
0

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

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

query II rowsort
SELECT 80 AS col0, 20 + - 46 * 70 * + 39 + - + 16
----
80
-125576

onlyif mysql # aggregate syntax: 
query I rowsort label-1920
SELECT ALL - ( + + 91 ) + + - MIN( 54 )
----
-145

skipif mysql # not compatible
query I rowsort label-1920
SELECT ALL - ( + + 91 ) + + - MIN ( 54 )
----
-145

query II rowsort
SELECT DISTINCT - 55, 87 * - ( + - 65 ) AS col1
----
-55
5655

onlyif mysql # aggregate syntax: 
query I rowsort label-1922
SELECT + 93 * + SUM( ALL 70 ) + + 82 * + 68 * - 0 - 34
----
6476

skipif mysql # not compatible
query I rowsort label-1922
SELECT + 93 * + SUM ( ALL 70 ) + + 82 * + 68 * - 0 - 34
----
6476

query I rowsort
SELECT DISTINCT - 32 col0
----
-32

query I rowsort
SELECT ALL 57 - + 60 * 63
----
-3723

query I rowsort
SELECT ALL - - 26 * - 44
----
-1144

onlyif mysql # aggregate syntax: 
query II rowsort label-1926
SELECT - 18 * 63 + 77 * + COUNT( * ) + - + ( - 63 ) AS col0, - MAX( DISTINCT - 79 ) + 24 * - + 17 + - 71
----
-994
-400

skipif mysql # not compatible
query II rowsort label-1926
SELECT - 18 * 63 + 77 * + COUNT ( * ) + - + ( - 63 ) AS col0, - MAX ( DISTINCT - 79 ) + 24 * - + 17 + - 71
----
-994
-400

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1927
SELECT ALL ( 20 ) - + CAST( NULL AS SIGNED ) * - 42 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1927
SELECT ALL ( 20 ) - + CAST ( NULL AS INTEGER ) * - 42 col0
----
NULL

query I rowsort
SELECT + + 51 * + 2 AS col2
----
102

onlyif mysql # aggregate syntax: 
query I rowsort label-1929
SELECT + - CASE 15 WHEN - 89 * - 34 + - 56 THEN NULL WHEN COUNT( * ) THEN + 6 ELSE 10 END + + COUNT( * ) AS col0
----
-9

skipif mysql # not compatible
query I rowsort label-1929
SELECT + - CASE 15 WHEN - 89 * - 34 + - 56 THEN NULL WHEN COUNT ( * ) THEN + 6 ELSE 10 END + + COUNT ( * ) AS col0
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-1930
SELECT ALL + + SUM( DISTINCT + ( - + ( + 94 ) ) )
----
-94

skipif mysql # not compatible
query I rowsort label-1930
SELECT ALL + + SUM ( DISTINCT + ( - + ( + 94 ) ) )
----
-94

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

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

query I rowsort
SELECT + + 7 + + 90
----
97

query I rowsort
SELECT - + 2 - + + 38 AS col1
----
-40

query I rowsort
SELECT ( + 70 ) * + 73 + - COALESCE ( + 60, - + 61 * 77 * 44, 71 ) * + - 28 * - 16
----
-21770

query I rowsort
SELECT - - 27 + + 54
----
81

query I rowsort
SELECT + + 58 * + + 4 - - 35
----
267

onlyif mysql # aggregate syntax: 
query I rowsort label-1937
SELECT ALL + MIN( 26 ) * 53 AS col0
----
1378

skipif mysql # not compatible
query I rowsort label-1937
SELECT ALL + MIN ( 26 ) * 53 AS col0
----
1378

query I rowsort
SELECT - - 6 * + ( + - 83 ) + 60
----
-438

onlyif mysql # aggregate syntax: 
query I rowsort label-1939
SELECT DISTINCT COALESCE ( + 98, + + 1, 58 * + 86 ) * CASE + 93 WHEN - COUNT( * ) THEN - COUNT( * ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1939
SELECT DISTINCT COALESCE ( + 98, + + 1, 58 * + 86 ) * CASE + 93 WHEN - COUNT ( * ) THEN - COUNT ( * ) END AS col1
----
NULL

query I rowsort
SELECT ALL 76 * 76 * + - 69 * + - 52 AS col2
----
20724288

onlyif mysql # aggregate syntax: 
query I rowsort label-1941
SELECT - COUNT( * ) + - 38
----
-39

skipif mysql # not compatible
query I rowsort label-1941
SELECT - COUNT ( * ) + - 38
----
-39

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

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

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

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

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

query I rowsort
SELECT DISTINCT + 20 + + 81
----
101

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1946
SELECT ALL NULLIF ( - CAST( + COALESCE ( - 51, 98 ) AS SIGNED ), - - 40 ), 63 AS col0
----
51
63

skipif mysql # not compatible
query II rowsort label-1946
SELECT ALL NULLIF ( - CAST ( + COALESCE ( - 51, 98 ) AS INTEGER ), - - 40 ), 63 AS col0
----
51
63

onlyif mysql # aggregate syntax: 
query II rowsort label-1947
SELECT DISTINCT + 38 + + + 52 * COALESCE ( - + 75, - - 78 ) + - COUNT( * ), + ( + COUNT( * ) ) AS col2
----
-3863
1

skipif mysql # not compatible
query II rowsort label-1947
SELECT DISTINCT + 38 + + + 52 * COALESCE ( - + 75, - - 78 ) + - COUNT ( * ), + ( + COUNT ( * ) ) AS col2
----
-3863
1

onlyif mysql # aggregate syntax: 
query II rowsort label-1948
SELECT - 90 col0, 10 + + - 61 + + - 26 + + - COUNT( * )
----
-90
-78

skipif mysql # not compatible
query II rowsort label-1948
SELECT - 90 col0, 10 + + - 61 + + - 26 + + - COUNT ( * )
----
-90
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-1949
SELECT ALL + MAX( + + 8 ) + + MIN( ALL ( 59 ) ) AS col2
----
67

skipif mysql # not compatible
query I rowsort label-1949
SELECT ALL + MAX ( + + 8 ) + + MIN ( ALL ( 59 ) ) AS col2
----
67

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1950
SELECT - CAST( COALESCE ( 98, - 67 - + 91 * + CASE 62 WHEN - 89 * + + 1 THEN - - 93 ELSE + - 38 END, + SUM( DISTINCT 39 ), - AVG ( 85 ) ) AS SIGNED ) + + 83
----
-15

skipif mysql # not compatible
query I rowsort label-1950
SELECT - CAST ( COALESCE ( 98, - 67 - + 91 * + CASE 62 WHEN - 89 * + + 1 THEN - - 93 ELSE + - 38 END, + SUM ( DISTINCT 39 ), - AVG ( 85 ) ) AS INTEGER ) + + 83
----
-15

query I rowsort
SELECT DISTINCT + 20 + - 52 AS col1
----
-32

query I rowsort
SELECT ALL - 66 * - 38
----
2508

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1953
SELECT - CASE + ( + - 61 ) WHEN ( + + SUM( ALL + 9 ) ) * + MAX( - ( - - 3 ) ) THEN - - 83 / - + MIN( DISTINCT CAST( 55 AS SIGNED ) ) / - 76 + 13 WHEN + 87 THEN + 20 / 23 END + 41 / 56 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1953
SELECT - CASE + ( + - 61 ) WHEN ( + + SUM ( ALL + 9 ) ) * + MAX ( - ( - - 3 ) ) THEN - - 83 / - + MIN ( DISTINCT CAST ( 55 AS INTEGER ) ) / - 76 + 13 WHEN + 87 THEN + 20 / 23 END + 41 / 56 AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1954
SELECT ALL 33 / + - 18 + CAST( NULL AS SIGNED ) + - 62, - 58 * 79 * - 68 AS col0
----
NULL
311576

skipif mysql # not compatible
query II rowsort label-1954
SELECT ALL 33 / + - 18 + CAST ( NULL AS INTEGER ) + - 62, - 58 * 79 * - 68 AS col0
----
NULL
311576

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1957
SELECT ALL + NULLIF ( - SUM( ALL + 29 ), + 78 + NULLIF ( + 62, - 48 ) ) AS col1
----
-29

skipif mysql # not compatible
query I rowsort label-1957
SELECT ALL + NULLIF ( - SUM ( ALL + 29 ), + 78 + NULLIF ( + 62, - 48 ) ) AS col1
----
-29

query I rowsort
SELECT DISTINCT + 8 * + 58 + - - 16
----
480

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1960
SELECT - CAST( NULL AS DECIMAL ) * - - 14 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1960
SELECT - CAST ( NULL AS REAL ) * - - 14 AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1961
SELECT ALL + 39, COALESCE ( - + 84, COUNT( * ), CASE - - 64 WHEN + - CAST( 81 AS SIGNED ) THEN - 8 END - ( COUNT( * ) ) - 96 ) AS col1
----
39
-84

skipif mysql # not compatible
query II rowsort label-1961
SELECT ALL + 39, COALESCE ( - + 84, COUNT ( * ), CASE - - 64 WHEN + - CAST ( 81 AS INTEGER ) THEN - 8 END - ( COUNT ( * ) ) - 96 ) AS col1
----
39
-84

query I rowsort
SELECT DISTINCT - 61 * + + 38 - - COALESCE ( ( + - 41 ), - 75, + + 74 ) - + - 25 AS col2
----
-2334

onlyif mysql # aggregate syntax: 
query I rowsort label-1963
SELECT DISTINCT - 36 * 69 + + + MAX( - 17 ) + + - 62 AS col0
----
-2563

skipif mysql # not compatible
query I rowsort label-1963
SELECT DISTINCT - 36 * 69 + + + MAX ( - 17 ) + + - 62 AS col0
----
-2563

onlyif mysql # DIV for integer division: 
query I rowsort label-1964
SELECT ALL + - 95 DIV - 94 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-1964
SELECT ALL + - 95 / - 94 AS col1
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-1965
SELECT - - 86 DIV + + 82 + 3
----
4

skipif mysql # not compatible
query I rowsort label-1965
SELECT - - 86 / + + 82 + 3
----
4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1966
SELECT DISTINCT + + NULLIF ( - - CAST( NULL AS SIGNED ), + 81 ) * - 8 * - + 83
----
NULL

skipif mysql # not compatible
query I rowsort label-1966
SELECT DISTINCT + + NULLIF ( - - CAST ( NULL AS INTEGER ), + 81 ) * - 8 * - + 83
----
NULL

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

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

query I rowsort
SELECT + - 47 * 26 AS col1
----
-1222

query II rowsort
SELECT 87, + 24 + + 28 AS col0
----
87
52

query I rowsort
SELECT - 78 * + + CASE + 82 WHEN - 81 THEN - - NULLIF ( ( - 71 ), + 79 ) END + + - 87 * + 87 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1971
SELECT ALL - - 75 * + 72 - + MAX( + + 9 )
----
5391

skipif mysql # not compatible
query I rowsort label-1971
SELECT ALL - - 75 * + 72 - + MAX ( + + 9 )
----
5391

query II rowsort
SELECT 93 AS col1, - 53 + + + 92 - 83 * + 83
----
93
-6850

onlyif mysql # aggregate syntax: 
query I rowsort label-1973
SELECT COUNT( DISTINCT - - 64 ) * - + 55 + COUNT( * ) + 96 + 72
----
114

skipif mysql # not compatible
query I rowsort label-1973
SELECT COUNT ( DISTINCT - - 64 ) * - + 55 + COUNT ( * ) + 96 + 72
----
114

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1975
SELECT + 75 * COUNT( * ) * + + 23 + + 62
----
1787

skipif mysql # not compatible
query I rowsort label-1975
SELECT + 75 * COUNT ( * ) * + + 23 + + 62
----
1787

query II rowsort
SELECT ALL + - 49 AS col2, - 17 AS col1
----
-49
-17

onlyif mysql # DIV for integer division: 
query I rowsort label-1977
SELECT DISTINCT + - 40 * - 0 DIV 11 * + + 74 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-1977
SELECT DISTINCT + - 40 * - 0 / 11 * + + 74 AS col0
----
0

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

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

query I rowsort
SELECT + + 79 * + + 58 col1
----
4582

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1980
SELECT + NULLIF ( - 15, + COALESCE ( ( 51 ), - MAX( ALL + ( - 86 ) ), + 86 ) ) * - 96 * CAST( 69 AS SIGNED ) + 78 DIV - 60 col2
----
99359

skipif mysql # not compatible
query I rowsort label-1980
SELECT + NULLIF ( - 15, + COALESCE ( ( 51 ), - MAX ( ALL + ( - 86 ) ), + 86 ) ) * - 96 * CAST ( 69 AS INTEGER ) + 78 / - 60 col2
----
99359

query I rowsort
SELECT ALL 67 * + 94 + 17 AS col0
----
6315

query I rowsort
SELECT + 35 - - 95 col2
----
130

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1984
SELECT - 34 + + COUNT( * ) + + + 94 AS col0
----
61

skipif mysql # not compatible
query I rowsort label-1984
SELECT - 34 + + COUNT ( * ) + + + 94 AS col0
----
61

query I rowsort
SELECT DISTINCT NULLIF ( + 33, + ( + 66 ) )
----
33

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1986
SELECT ALL + 25 + - 23 + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-1986
SELECT ALL + 25 + - 23 + CAST ( NULL AS REAL )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1987
SELECT DISTINCT 28 + - 69 * - - 35 + COUNT( * ) col1
----
-2386

skipif mysql # not compatible
query I rowsort label-1987
SELECT DISTINCT 28 + - 69 * - - 35 + COUNT ( * ) col1
----
-2386

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1988
SELECT ALL NULLIF ( + + CAST( NULL AS SIGNED ), - + CASE - ( - 7 ) WHEN - NULLIF ( COUNT( * ), + COUNT( * ) ) * - 64 / - + 13 + + 41 + - - COUNT( * ) * COUNT( DISTINCT + 66 * - 29 ) - + COUNT( * ) * 42 THEN NULL WHEN 84 + 3 THEN NULL ELSE 50 * COUNT( * ) END )
----
NULL

skipif mysql # not compatible
query I rowsort label-1988
SELECT ALL NULLIF ( + + CAST ( NULL AS INTEGER ), - + CASE - ( - 7 ) WHEN - NULLIF ( COUNT ( * ), + COUNT ( * ) ) * - 64 / - + 13 + + 41 + - - COUNT ( * ) * COUNT ( DISTINCT + 66 * - 29 ) - + COUNT ( * ) * 42 THEN NULL WHEN 84 + 3 THEN NULL ELSE 50 * COUNT ( * ) END )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1989
SELECT + CAST( - COUNT( 31 ) AS SIGNED ) - + 69 DIV 42 + 59 + + - 18, 72 AS col0
----
39
72

skipif mysql # not compatible
query II rowsort label-1989
SELECT + CAST ( - COUNT ( 31 ) AS INTEGER ) - + 69 / 42 + 59 + + - 18, 72 AS col0
----
39
72

query I rowsort
SELECT ALL 63 + - 7
----
56

query I rowsort
SELECT DISTINCT 22 * - - 24 AS col2
----
528

onlyif mysql # aggregate syntax: 
query I rowsort label-1992
SELECT - COUNT( * ) + 84 AS col1
----
83

skipif mysql # not compatible
query I rowsort label-1992
SELECT - COUNT ( * ) + 84 AS col1
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-1993
SELECT DISTINCT MAX( ALL - + ( + 56 ) ) col1
----
-56

skipif mysql # not compatible
query I rowsort label-1993
SELECT DISTINCT MAX ( ALL - + ( + 56 ) ) col1
----
-56

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1994
SELECT ALL NULLIF ( 65, ( - + ( - 25 ) ) * MIN( + CAST( NULL AS SIGNED ) ) ) AS col0
----
65

skipif mysql # not compatible
query I rowsort label-1994
SELECT ALL NULLIF ( 65, ( - + ( - 25 ) ) * MIN ( + CAST ( NULL AS INTEGER ) ) ) AS col0
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-1995
SELECT + MAX( 8 ) * 98
----
784

skipif mysql # not compatible
query I rowsort label-1995
SELECT + MAX ( 8 ) * 98
----
784

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1997
SELECT - 27 * CASE ( - 95 ) WHEN + COALESCE ( - 63, + CASE + 13 WHEN + ( 75 ) THEN - + 83 ELSE NULL END ) THEN COUNT( ALL 50 ) * 88 WHEN 96 THEN COUNT( * ) * 59 WHEN 74 / + 78 THEN 1 + 21 END * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-1997
SELECT - 27 * CASE ( - 95 ) WHEN + COALESCE ( - 63, + CASE + 13 WHEN + ( 75 ) THEN - + 83 ELSE NULL END ) THEN COUNT ( ALL 50 ) * 88 WHEN 96 THEN COUNT ( * ) * 59 WHEN 74 / + 78 THEN 1 + 21 END * - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1998
SELECT DISTINCT CASE + - 53 WHEN + 43 THEN - + COUNT( * ) + 79 * - 34 END
----
NULL

skipif mysql # not compatible
query I rowsort label-1998
SELECT DISTINCT CASE + - 53 WHEN + 43 THEN - + COUNT ( * ) + 79 * - 34 END
----
NULL

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2000
SELECT ALL + 31 DIV - 88 - COUNT( * ) - + + 66 col1
----
-67

skipif mysql # not compatible
query I rowsort label-2000
SELECT ALL + 31 / - 88 - COUNT ( * ) - + + 66 col1
----
-67

query I rowsort
SELECT DISTINCT + 39 * - - 48 * - + 32 AS col1
----
-59904

onlyif mysql # aggregate syntax: 
query I rowsort label-2002
SELECT ALL + + COUNT( - 19 )
----
1

skipif mysql # not compatible
query I rowsort label-2002
SELECT ALL + + COUNT ( - 19 )
----
1

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2004
SELECT COUNT( * ) DIV + + 44 + 6 * + 55 AS col2
----
330

skipif mysql # not compatible
query I rowsort label-2004
SELECT COUNT ( * ) / + + 44 + 6 * + 55 AS col2
----
330

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

skipif mysql # not compatible
query I rowsort label-2005
SELECT + 22 / - - COUNT ( * ) + - COUNT ( * ) AS col2
----
21

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2006
SELECT + 14 * + + COALESCE ( + 94, - COUNT( * ), + 33 * + + 70 * - 8 + + + NULLIF ( - 86, - AVG ( + 47 ) * + ( CAST( NULL AS SIGNED ) ) ) * + 0 + CASE - COUNT( * ) WHEN - 44 THEN NULL ELSE 33 + 61 END ) AS col2
----
1316

skipif mysql # not compatible
query I rowsort label-2006
SELECT + 14 * + + COALESCE ( + 94, - COUNT ( * ), + 33 * + + 70 * - 8 + + + NULLIF ( - 86, - AVG ( + 47 ) * + ( CAST ( NULL AS INTEGER ) ) ) * + 0 + CASE - COUNT ( * ) WHEN - 44 THEN NULL ELSE 33 + 61 END ) AS col2
----
1316

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2007
SELECT 33 * + COALESCE ( 82, + CAST( NULL AS SIGNED ) * CASE + 93 WHEN - ( + - 13 ) THEN NULL WHEN - 32 / - 65 THEN NULL ELSE - 23 END + + 95 + - 57 )
----
2706

skipif mysql # not compatible
query I rowsort label-2007
SELECT 33 * + COALESCE ( 82, + CAST ( NULL AS INTEGER ) * CASE + 93 WHEN - ( + - 13 ) THEN NULL WHEN - 32 / - 65 THEN NULL ELSE - 23 END + + 95 + - 57 )
----
2706

query I rowsort
SELECT - 23 + - 95 + + - ( + 6 ) AS col2
----
-124

query I rowsort
SELECT + 46 * - 82 + 23 * 47 + + + ( + 29 ) col2
----
-2662

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

query I rowsort
SELECT - CASE + 66 WHEN + 48 THEN NULL WHEN + + 77 THEN 45 ELSE NULL END * - 50 * 91 / + 1 + + AVG ( DISTINCT + 82 ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query III rowsort label-2012
SELECT ( + 78 ), 65 AS col1, - + 56 + + 34 + - - 59 + - COUNT( * ) AS col0
----
78
65
36

skipif mysql # not compatible
query III rowsort label-2012
SELECT ( + 78 ), 65 AS col1, - + 56 + + 34 + - - 59 + - COUNT ( * ) AS col0
----
78
65
36

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

query I rowsort
SELECT ( + - 68 ) + 66 * + ( + + 8 )
----
460

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2015
SELECT ALL - 13 * 84 DIV COALESCE ( - NULLIF ( + 27, 41 * - + 59 DIV + 99 + + CAST( - - 47 AS SIGNED ) ), + + AVG ( DISTINCT 33 ) * 46 ) + - 44 AS col1
----
-4

skipif mysql # not compatible
query I rowsort label-2015
SELECT ALL - 13 * 84 / COALESCE ( - NULLIF ( + 27, 41 * - + 59 / + 99 + + CAST ( - - 47 AS INTEGER ) ), + + AVG ( DISTINCT 33 ) * 46 ) + - 44 AS col1
----
-4

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2016
SELECT ALL - 37 + + + 35 DIV - + 2, MAX( DISTINCT + 98 ) + + - 62 AS col1
----
-54
36

skipif mysql # not compatible
query II rowsort label-2016
SELECT ALL - 37 + + + 35 / - + 2, MAX ( DISTINCT + 98 ) + + - 62 AS col1
----
-54
36

query I rowsort
SELECT 38 + + 58 AS col2
----
96

onlyif mysql # DIV for integer division: 
query I rowsort label-2018
SELECT 48 + - 4 + - + 54 DIV 77 col1
----
44

skipif mysql # not compatible
query I rowsort label-2018
SELECT 48 + - 4 + - + 54 / 77 col1
----
44

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2019
SELECT CASE + - CAST( NULL AS SIGNED ) WHEN - 91 * - + NULLIF ( ( - COUNT( * ) ), - - 93 * + 93 * - NULLIF ( 84, - 6 + + 91 ) ) THEN NULL WHEN - 19 THEN NULL WHEN 73 THEN - 36 / + 10 + - ( CAST( NULL AS SIGNED ) - 7 ) END + - 1
----
NULL

skipif mysql # not compatible
query I rowsort label-2019
SELECT CASE + - CAST ( NULL AS INTEGER ) WHEN - 91 * - + NULLIF ( ( - COUNT ( * ) ), - - 93 * + 93 * - NULLIF ( 84, - 6 + + 91 ) ) THEN NULL WHEN - 19 THEN NULL WHEN 73 THEN - 36 / + 10 + - ( CAST ( NULL AS INTEGER ) - 7 ) END + - 1
----
NULL

query I rowsort
SELECT ALL 23 * - - 3 AS col0
----
69

query II rowsort
SELECT 44 AS col0, + 32 + + 82 AS col0
----
44
114

query I rowsort
SELECT ALL + 66 * - 34 AS col0
----
-2244

query II rowsort
SELECT ALL 51 + 64 + 92 * - 15, + 58 AS col1
----
-1265
58

query I rowsort
SELECT 83 + - - 9
----
92

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2025
SELECT 73, - 37 * - + COUNT( * ) + - COUNT( * ) + + CAST( NULL AS SIGNED ) AS col0
----
73
NULL

skipif mysql # not compatible
query II rowsort label-2025
SELECT 73, - 37 * - + COUNT ( * ) + - COUNT ( * ) + + CAST ( NULL AS INTEGER ) AS col0
----
73
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2026
SELECT MIN( - 12 ) * + 68
----
-816

skipif mysql # not compatible
query I rowsort label-2026
SELECT MIN ( - 12 ) * + 68
----
-816

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2027
SELECT ALL 16 + + 93 DIV + COUNT( * )
----
109

skipif mysql # not compatible
query I rowsort label-2027
SELECT ALL 16 + + 93 / + COUNT ( * )
----
109

onlyif mysql # aggregate syntax: 
query I rowsort label-2028
SELECT 79 + + 64 + - ( - MAX( + - NULLIF ( - + 73, - 43 - + 27 * + 59 * - - 85 * - + 99 ) ) ) + 47 * 79 AS col1
----
3929

skipif mysql # not compatible
query I rowsort label-2028
SELECT 79 + + 64 + - ( - MAX ( + - NULLIF ( - + 73, - 43 - + 27 * + 59 * - - 85 * - + 99 ) ) ) + 47 * 79 AS col1
----
3929

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2029
SELECT ( + - SUM( DISTINCT + 82 ) ) DIV - 67 AS col1, 46
----
1
46

skipif mysql # not compatible
query II rowsort label-2029
SELECT ( + - SUM ( DISTINCT + 82 ) ) / - 67 AS col1, 46
----
1
46

query II rowsort
SELECT ALL NULLIF ( - - 47, + 97 ) * + CASE + 58 WHEN 98 THEN + 74 + - + 34 ELSE NULL END col0, + 23 AS col0
----
NULL
23

query I rowsort
SELECT 89 * + ( - + 8 ) * - + 31 AS col2
----
22072

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2032
SELECT DISTINCT 44 * - 73 * + CAST( - + 73 AS SIGNED ) AS col1
----
234476

skipif mysql # not compatible
query I rowsort label-2032
SELECT DISTINCT 44 * - 73 * + CAST ( - + 73 AS INTEGER ) AS col1
----
234476

query I rowsort
SELECT DISTINCT 15 - 1
----
14

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2034
SELECT CAST( NULL AS SIGNED ) + + + 73 * - + COUNT( * ) * 98 AS col1
----
NULL

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2035
SELECT COUNT( + CAST( 76 AS SIGNED ) ) AS col2, + 94 AS col2
----
1
94

skipif mysql # not compatible
query II rowsort label-2035
SELECT COUNT ( + CAST ( 76 AS INTEGER ) ) AS col2, + 94 AS col2
----
1
94

query I rowsort
SELECT DISTINCT 19 * + 14
----
266

onlyif mysql # aggregate syntax: 
query II rowsort label-2037
SELECT ALL - 99, 27 + + SUM( + + 9 ) * + SUM( ALL - 64 ) * - + CASE - 87 WHEN - 57 * COUNT( * ) + + 56 - + 26 * + + 17 THEN 15 * 53 END col0
----
-99
NULL

skipif mysql # not compatible
query II rowsort label-2037
SELECT ALL - 99, 27 + + SUM ( + + 9 ) * + SUM ( ALL - 64 ) * - + CASE - 87 WHEN - 57 * COUNT ( * ) + + 56 - + 26 * + + 17 THEN 15 * 53 END col0
----
-99
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2038
SELECT + MIN( ALL 87 ) AS col0
----
87

skipif mysql # not compatible
query I rowsort label-2038
SELECT + MIN ( ALL 87 ) AS col0
----
87

onlyif mysql # DIV for integer division: 
query II rowsort label-2039
SELECT ( - - 97 ) DIV + - 92, 28 AS col0
----
-1
28

skipif mysql # not compatible
query II rowsort label-2039
SELECT ( - - 97 ) / + - 92, 28 AS col0
----
-1
28

onlyif mysql # aggregate syntax: 
query I rowsort label-2040
SELECT 64 * + 56 + NULLIF ( + COUNT( * ), - 2 )
----
3585

skipif mysql # not compatible
query I rowsort label-2040
SELECT 64 * + 56 + NULLIF ( + COUNT ( * ), - 2 )
----
3585

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

query I rowsort
SELECT ALL - + 4
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-2043
SELECT COUNT( * ) * 65 col1
----
65

skipif mysql # not compatible
query I rowsort label-2043
SELECT COUNT ( * ) * 65 col1
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-2044
SELECT ALL + - COUNT( * ) + - 6 + + - MAX( - 74 ) * - 15
----
-1117

skipif mysql # not compatible
query I rowsort label-2044
SELECT ALL + - COUNT ( * ) + - 6 + + - MAX ( - 74 ) * - 15
----
-1117

onlyif mysql # aggregate syntax: 
query I rowsort label-2045
SELECT - + 44 * - CASE - 55 WHEN + MIN( DISTINCT + 59 ) THEN - 96 + - 0 WHEN COUNT( * ) THEN NULL END + 34 + + 19 + + - CASE 44 WHEN - 33 * - ( - 48 + + COUNT( * ) * 89 ) THEN ( - 22 ) END / 54 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2045
SELECT - + 44 * - CASE - 55 WHEN + MIN ( DISTINCT + 59 ) THEN - 96 + - 0 WHEN COUNT ( * ) THEN NULL END + 34 + + 19 + + - CASE 44 WHEN - 33 * - ( - 48 + + COUNT ( * ) * 89 ) THEN ( - 22 ) END / 54 col2
----
NULL

query I rowsort
SELECT DISTINCT + 1 + - ( + 27 ) + + - 9 * + 88 AS col1
----
-818

query I rowsort
SELECT ALL - - NULLIF ( - - 9, + 54 ) AS col1
----
9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2048
SELECT + COUNT( * ) col0, - 68 + CAST( - + 96 AS SIGNED )
----
1
-164

skipif mysql # not compatible
query II rowsort label-2048
SELECT + COUNT ( * ) col0, - 68 + CAST ( - + 96 AS INTEGER )
----
1
-164

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2050
SELECT ALL - COALESCE ( - CAST( ( - 42 ) AS SIGNED ), + + 93 - + ( + 18 ) + + + COUNT( * ) ) AS col0
----
-42

skipif mysql # not compatible
query I rowsort label-2050
SELECT ALL - COALESCE ( - CAST ( ( - 42 ) AS INTEGER ), + + 93 - + ( + 18 ) + + + COUNT ( * ) ) AS col0
----
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-2051
SELECT DISTINCT - 24 + + COALESCE ( + COUNT( * ), - 84 * + 18 ) - 52 col2
----
-75

skipif mysql # not compatible
query I rowsort label-2051
SELECT DISTINCT - 24 + + COALESCE ( + COUNT ( * ), - 84 * + 18 ) - 52 col2
----
-75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2052
SELECT DISTINCT - CASE 86 WHEN + 91 * + 56 THEN 48 WHEN - 64 THEN NULL WHEN + ( ( - CAST( - CAST( - - 50 AS DECIMAL ) AS DECIMAL ) ) ) THEN NULL ELSE + + ( - 43 ) END + + 19 + + CAST( NULL AS SIGNED ) * CASE + COUNT( * ) / ( + ( - COALESCE ( COALESCE ( - 75, - COALESCE ( + MIN( CAST( 53 AS SIGNED ) ), + COUNT( * ) ) * + COALESCE ( 36, + CASE - 94 WHEN + NULLIF ( + 3, 90 * - 74 ) / - 73 THEN NULL WHEN - 13 THEN COUNT( + 13 ) ELSE NULL END * 35 ) ), 71 * COALESCE ( + ( 16 ), - CASE - 11 WHEN 40 THEN NULL WHEN 67 * + 9 THEN 78 ELSE NULL END, - 40 ) + 40 * + ( - 85 + - 54 * 45 ), - 62 * 77, MAX( ALL 41 ) / - CASE NULLIF ( MIN( - 80 ), NULLIF ( ( ( 92 ) ), 42 + 6 ) ) + + 69 WHEN 15 THEN NULL WHEN 47 * ( 37 ) THEN + CAST( COUNT( * ) AS SIGNED ) END ) ) ) + 55 WHEN + 89 THEN NULL ELSE + ( - 85 ) + COUNT( 74 + + 79 * - 79 ) * - 93 END
----
NULL

skipif mysql # not compatible
query I rowsort label-2052
SELECT DISTINCT - CASE 86 WHEN + 91 * + 56 THEN 48 WHEN - 64 THEN NULL WHEN + ( ( - CAST ( - CAST ( - - 50 AS REAL ) AS REAL ) ) ) THEN NULL ELSE + + ( - 43 ) END + + 19 + + CAST ( NULL AS INTEGER ) * CASE + COUNT ( * ) / ( + ( - COALESCE ( COALESCE ( - 75, - COALESCE ( + MIN ( CAST ( 53 AS INTEGER ) ), + COUNT ( * ) ) * + COALESCE ( 36, + CASE - 94 WHEN + NULLIF ( + 3, 90 * - 74 ) / - 73 THEN NULL WHEN - 13 THEN COUNT ( + 13 ) ELSE NULL END * 35 ) ), 71 * COALESCE ( + ( 16 ), - CASE - 11 WHEN 40 THEN NULL WHEN 67 * + 9 THEN 78 ELSE NULL END, - 40 ) + 40 * + ( - 85 + - 54 * 45 ), - 62 * 77, MAX ( ALL 41 ) / - CASE NULLIF ( MIN ( - 80 ), NULLIF ( ( ( 92 ) ), 42 + 6 ) ) + + 69 WHEN 15 THEN NULL WHEN 47 * ( 37 ) THEN + CAST ( COUNT ( * ) AS INTEGER ) END ) ) ) + 55 WHEN + 89 THEN NULL ELSE + ( - 85 ) + COUNT ( 74 + + 79 * - 79 ) * - 93 END
----
NULL

query II rowsort
SELECT DISTINCT - ( - 47 ), 39 AS col0
----
47
39

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2055
SELECT ALL - 7 - + - 74 + 8 + - + CAST( NULL AS SIGNED ) * CAST( NULL AS SIGNED ) - - 84 * + - 23 AS col1, 88 AS col0
----
NULL
88

skipif mysql # not compatible
query II rowsort label-2055
SELECT ALL - 7 - + - 74 + 8 + - + CAST ( NULL AS INTEGER ) * CAST ( NULL AS INTEGER ) - - 84 * + - 23 AS col1, 88 AS col0
----
NULL
88

query I rowsort
SELECT 99 * - - 5 AS col1
----
495

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

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

query I rowsort
SELECT DISTINCT - 90 - - 46
----
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-2059
SELECT COUNT( * ) - - - MIN( - 40 ) AS col0
----
41

skipif mysql # not compatible
query I rowsort label-2059
SELECT COUNT ( * ) - - - MIN ( - 40 ) AS col0
----
41

query I rowsort
SELECT ALL CASE + - 41 WHEN - - 58 THEN + + ( - 41 ) END
----
NULL

query I rowsort
SELECT DISTINCT - 17 * - - 29
----
-493

query I rowsort
SELECT + 44 - - 88 * + + 28 AS col1
----
2508

query I rowsort
SELECT + 38 * + 54 AS col1
----
2052

onlyif mysql # aggregate syntax: 
query I rowsort label-2064
SELECT ALL + CASE + 28 WHEN + 46 THEN - MAX( - 14 ) / 14 * - ( 42 ) * + 60 + 78 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2064
SELECT ALL + CASE + 28 WHEN + 46 THEN - MAX ( - 14 ) / 14 * - ( 42 ) * + 60 + 78 END AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2065
SELECT - CASE + 4 WHEN + 89 THEN NULL WHEN 18 * 9 THEN + ( ( 79 ) ) ELSE + COUNT( * ) END + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-2065
SELECT - CASE + 4 WHEN + 89 THEN NULL WHEN 18 * 9 THEN + ( ( 79 ) ) ELSE + COUNT ( * ) END + + CAST ( NULL AS INTEGER )
----
NULL

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

skipif mysql # not compatible
query I rowsort label-2066
SELECT ALL - 29 / - 70
----
0

query I rowsort
SELECT + - 24 * + - NULLIF ( + 67, - + 53 - - 33 ) AS col1
----
1608

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2069
SELECT - CASE + 14 WHEN - COUNT( DISTINCT - + 62 ) * 35 + - NULLIF ( - 30, + ( + 75 ) ) + + 4 + + 76 + 96 - COUNT( * ) * - 89 THEN 80 END
----
NULL

skipif mysql # not compatible
query I rowsort label-2069
SELECT - CASE + 14 WHEN - COUNT ( DISTINCT - + 62 ) * 35 + - NULLIF ( - 30, + ( + 75 ) ) + + 4 + + 76 + 96 - COUNT ( * ) * - 89 THEN 80 END
----
NULL

query I rowsort
SELECT ALL + NULLIF ( - + 1, + 36 ) * + 58 + + 68
----
10

query I rowsort
SELECT + 41 * + 75
----
3075

onlyif mysql # aggregate syntax: 
query I rowsort label-2072
SELECT + - NULLIF ( 96, 54 * + MAX( + 61 ) * 79 )
----
-96

skipif mysql # not compatible
query I rowsort label-2072
SELECT + - NULLIF ( 96, 54 * + MAX ( + 61 ) * 79 )
----
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-2073
SELECT DISTINCT - 61 * + COUNT( * ) + + + 19
----
-42

skipif mysql # not compatible
query I rowsort label-2073
SELECT DISTINCT - 61 * + COUNT ( * ) + + + 19
----
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-2074
SELECT - 75 / - + 65 * 44 * - ( - CASE + + 99 WHEN - - 10 + - + 14 + 55 THEN + COALESCE ( + MAX( - - 73 ), + COUNT( * ) * 95 ) END ) * - 12 + 96 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2074
SELECT - 75 / - + 65 * 44 * - ( - CASE + + 99 WHEN - - 10 + - + 14 + 55 THEN + COALESCE ( + MAX ( - - 73 ), + COUNT ( * ) * 95 ) END ) * - 12 + 96 AS col1
----
NULL

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2076
SELECT 73 DIV 24 + + ( - 85 ) AS col1
----
-82

skipif mysql # not compatible
query I rowsort label-2076
SELECT 73 / 24 + + ( - 85 ) AS col1
----
-82

query I rowsort
SELECT 2 * + ( + - 99 ) + ( 33 ) AS col0
----
-165

onlyif mysql # aggregate syntax: 
query I rowsort label-2078
SELECT ALL ( - COUNT( * ) ) * + NULLIF ( - COUNT( * ), 55 * 28 + + 44 ) * - 46 + - 53 * + 85 * - 9 + 76
----
40575

skipif mysql # not compatible
query I rowsort label-2078
SELECT ALL ( - COUNT ( * ) ) * + NULLIF ( - COUNT ( * ), 55 * 28 + + 44 ) * - 46 + - 53 * + 85 * - 9 + 76
----
40575

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2079
SELECT + CASE + NULLIF ( - 19, 66 / NULLIF ( + 12, 5 ) * 28 + - ( 90 ) * - + COUNT( * ) + + CAST( + COUNT( * ) AS SIGNED ) + - NULLIF ( + CASE + 15 WHEN - 62 * COUNT( * ) THEN 41 WHEN + CAST( NULL AS DECIMAL ) THEN NULL WHEN 12 - MAX( 89 ) THEN NULL ELSE 18 / + COUNT( * ) END, - 6 ) ) WHEN 86 THEN - 12 WHEN + MAX( - CAST( NULL AS SIGNED ) ) THEN NULL END + 48 * 84 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2079
SELECT + CASE + NULLIF ( - 19, 66 / NULLIF ( + 12, 5 ) * 28 + - ( 90 ) * - + COUNT ( * ) + + CAST ( + COUNT ( * ) AS INTEGER ) + - NULLIF ( + CASE + 15 WHEN - 62 * COUNT ( * ) THEN 41 WHEN + CAST ( NULL AS REAL ) THEN NULL WHEN 12 - MAX ( 89 ) THEN NULL ELSE 18 / + COUNT ( * ) END, - 6 ) ) WHEN 86 THEN - 12 WHEN + MAX ( - CAST ( NULL AS INTEGER ) ) THEN NULL END + 48 * 84 col0
----
NULL

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2081
SELECT + 30 * CAST( + CASE + 67 WHEN 45 THEN NULL ELSE + ( + 69 ) END AS SIGNED ) + 67 col2, 18
----
2137
18

skipif mysql # not compatible
query II rowsort label-2081
SELECT + 30 * CAST ( + CASE + 67 WHEN 45 THEN NULL ELSE + ( + 69 ) END AS INTEGER ) + 67 col2, 18
----
2137
18

query I rowsort
SELECT + 55 * 15 + + 79 - + 52 AS col2
----
852

query I rowsort
SELECT - 10 + + + 87 AS col2
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-2084
SELECT + 22 + - 33 * 56 + + NULLIF ( + + 51, + NULLIF ( + 77, 64 ) * + 83 + + COUNT( * ) + + 66 ) AS col2
----
-1775

skipif mysql # not compatible
query I rowsort label-2084
SELECT + 22 + - 33 * 56 + + NULLIF ( + + 51, + NULLIF ( + 77, 64 ) * + 83 + + COUNT ( * ) + + 66 ) AS col2
----
-1775

query I rowsort
SELECT 39 * + + 22 + ( - 3 ) * 15 + - + 79
----
734

query I rowsort
SELECT ALL - 3 * + 61
----
-183

query I rowsort
SELECT + 39 * + + 91
----
3549

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2088
SELECT - 4 + - COUNT( * ) * ( - CAST( - 65 AS SIGNED ) ) AS col2
----
-69

skipif mysql # not compatible
query I rowsort label-2088
SELECT - 4 + - COUNT ( * ) * ( - CAST ( - 65 AS INTEGER ) ) AS col2
----
-69

query I rowsort
SELECT DISTINCT COALESCE ( - 28, + 40, 1 + + + CASE ( - 98 ) WHEN + - 11 - + ( - 31 ) + + 33 THEN 7 * - 17 ELSE NULL END + + 39 ) AS col1
----
-28

query I rowsort
SELECT DISTINCT CASE ( 82 ) WHEN - 20 + - 61 * + - 71 THEN NULL WHEN 65 THEN + 78 END
----
NULL

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2092
SELECT - MIN( 23 ) * + 33 DIV 11 + ( + COUNT( * ) ), - COUNT( 89 ) AS col1
----
-68
-1

skipif mysql # not compatible
query II rowsort label-2092
SELECT - MIN ( 23 ) * + 33 / 11 + ( + COUNT ( * ) ), - COUNT ( 89 ) AS col1
----
-68
-1

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

query I rowsort
SELECT - 68 + - 81
----
-149

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2097
SELECT DISTINCT COALESCE ( + + NULLIF ( + 63, - + 72 + - COALESCE ( - - 74, - ( - - 41 ) * 53 ) + 86 / COUNT( * ) ), 70 * - MIN( ALL 66 ) + + - 94 ) AS col2
----
63

skipif mysql # not compatible
query I rowsort label-2097
SELECT DISTINCT COALESCE ( + + NULLIF ( + 63, - + 72 + - COALESCE ( - - 74, - ( - - 41 ) * 53 ) + 86 / COUNT ( * ) ), 70 * - MIN ( ALL 66 ) + + - 94 ) AS col2
----
63

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2098
SELECT ALL CASE ( - 64 ) WHEN 6 THEN 73 WHEN + - 16 THEN NULL WHEN + + COUNT( * ) THEN CASE + - ( - 15 ) WHEN - COUNT( * ) * COALESCE ( COALESCE ( COALESCE ( MIN( ( 82 ) ), + CAST( NULL AS SIGNED ) ), + ( + CASE + SUM( DISTINCT 13 ) WHEN + 6 THEN 73 * 47 WHEN 75 * 57 THEN NULL END ), + 77 - + 93 * 69 ), - COUNT( * ) * 10, 1, - COUNT( * ) + - COUNT( * ) * + ( 99 ) ) DIV COUNT( * ) + 92 DIV CAST( NULL AS SIGNED ) THEN + COALESCE ( + 87, + 8 ) WHEN COUNT( * ) * + CAST( NULL AS SIGNED ) + + 77 THEN - 7 DIV 28 + - 99 END * SUM( ALL 10 ) ELSE COUNT( * ) END * - 39
----
-39

skipif mysql # not compatible
query I rowsort label-2098
SELECT ALL CASE ( - 64 ) WHEN 6 THEN 73 WHEN + - 16 THEN NULL WHEN + + COUNT ( * ) THEN CASE + - ( - 15 ) WHEN - COUNT ( * ) * COALESCE ( COALESCE ( COALESCE ( MIN ( ( 82 ) ), + CAST ( NULL AS INTEGER ) ), + ( + CASE + SUM ( DISTINCT 13 ) WHEN + 6 THEN 73 * 47 WHEN 75 * 57 THEN NULL END ), + 77 - + 93 * 69 ), - COUNT ( * ) * 10, 1, - COUNT ( * ) + - COUNT ( * ) * + ( 99 ) ) / COUNT ( * ) + 92 / CAST ( NULL AS INTEGER ) THEN + COALESCE ( + 87, + 8 ) WHEN COUNT ( * ) * + CAST ( NULL AS INTEGER ) + + 77 THEN - 7 / 28 + - 99 END * SUM ( ALL 10 ) ELSE COUNT ( * ) END * - 39
----
-39

query I rowsort
SELECT - 62 * 7
----
-434

query I rowsort
SELECT - 20 + - 86 AS col1
----
-106

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2102
SELECT - 7 AS col1, + NULLIF ( ( + + NULLIF ( - COUNT( * ), + - 55 + - 45 * - MAX( DISTINCT + 12 ) ) ), CASE + + 33 WHEN + 30 THEN + 4 - - 17 END ) col0
----
-7
-1

skipif mysql # not compatible
query II rowsort label-2102
SELECT - 7 AS col1, + NULLIF ( ( + + NULLIF ( - COUNT ( * ), + - 55 + - 45 * - MAX ( DISTINCT + 12 ) ) ), CASE + + 33 WHEN + 30 THEN + 4 - - 17 END ) col0
----
-7
-1

query I rowsort
SELECT - 38 * 8
----
-304

onlyif mysql # aggregate syntax: 
query I rowsort label-2104
SELECT - - 28 + + + 83 + - COUNT( * ) AS col0
----
110

skipif mysql # not compatible
query I rowsort label-2104
SELECT - - 28 + + + 83 + - COUNT ( * ) AS col0
----
110

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2105
SELECT - COALESCE ( - COUNT( * ), 17 DIV + 98, - 90 ) AS col1, + 66 - 96 AS col0
----
1
-30

skipif mysql # not compatible
query II rowsort label-2105
SELECT - COALESCE ( - COUNT ( * ), 17 / + 98, - 90 ) AS col1, + 66 - 96 AS col0
----
1
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-2106
SELECT + + 89 + COUNT( * ) + + + 31 * + - 45
----
-1305

skipif mysql # not compatible
query I rowsort label-2106
SELECT + + 89 + COUNT ( * ) + + + 31 * + - 45
----
-1305

query I rowsort
SELECT ALL 42 + 29 col1
----
71

query I rowsort
SELECT ALL - NULLIF ( - 22, + 87 ) AS col2
----
22

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

skipif mysql # not compatible
query I rowsort label-2109
SELECT - 25 + 45 + + 19 * COUNT ( * ) AS col2
----
39

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

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

query I rowsort
SELECT DISTINCT + 65 + + 73 AS col2
----
138

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

skipif mysql # not compatible
query I rowsort label-2112
SELECT ALL - + 31 + 45 * - + 0 / - - COUNT ( * )
----
-31

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2114
SELECT + - COALESCE ( - 99, + + COUNT( * ) ) + 73
----
172

skipif mysql # not compatible
query I rowsort label-2114
SELECT + - COALESCE ( - 99, + + COUNT ( * ) ) + 73
----
172

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

query II rowsort
SELECT - 41 col2, - 89
----
-41
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-2117
SELECT + COUNT( * ) * - 64 + + 15
----
-49

skipif mysql # not compatible
query I rowsort label-2117
SELECT + COUNT ( * ) * - 64 + + 15
----
-49

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

onlyif mysql # DIV for integer division: 
query II rowsort label-2119
SELECT ALL + + 49 AS col1, 7 DIV ( - 92 )
----
49
0

skipif mysql # not compatible
query II rowsort label-2119
SELECT ALL + + 49 AS col1, 7 / ( - 92 )
----
49
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2120
SELECT DISTINCT 6 DIV + 79 + - COUNT( * ) + - 51 DIV - 35
----
0

skipif mysql # not compatible
query I rowsort label-2120
SELECT DISTINCT 6 / + 79 + - COUNT ( * ) + - 51 / - 35
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2121
SELECT + 41 * - 99 * - COALESCE ( - 24, - 65 + + 67, + - 41 + - + 84, - 41, - - ( + COUNT( * ) ) * CAST( NULL AS SIGNED ) * - 59 + + - 58 ) AS col1
----
-97416

skipif mysql # not compatible
query I rowsort label-2121
SELECT + 41 * - 99 * - COALESCE ( - 24, - 65 + + 67, + - 41 + - + 84, - 41, - - ( + COUNT ( * ) ) * CAST ( NULL AS INTEGER ) * - 59 + + - 58 ) AS col1
----
-97416

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

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

query II rowsort
SELECT DISTINCT + 44 AS col2, 52 - 55
----
44
-3

query I rowsort
SELECT + COALESCE ( - 57, 6 * + 19 ) AS col0
----
-57

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2126
SELECT DISTINCT + 34 AS col0, - COUNT( * ) + - CAST( + - ( + 63 ) AS SIGNED ) col0
----
34
62

skipif mysql # not compatible
query II rowsort label-2126
SELECT DISTINCT + 34 AS col0, - COUNT ( * ) + - CAST ( + - ( + 63 ) AS INTEGER ) col0
----
34
62

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

skipif mysql # not compatible
query I rowsort label-2127
SELECT + 28 / + 66
----
0

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2130
SELECT ALL CASE CASE COUNT( ALL - 56 ) WHEN CAST( + + CAST( + - COUNT( ALL - 78 ) AS SIGNED ) AS SIGNED ) * 90 THEN 11 END WHEN + - 43 THEN - 23 + COALESCE ( - - CASE - 57 WHEN + COUNT( * ) THEN + COUNT( * ) * 78 WHEN COUNT( * ) / 37 THEN NULL END, 49 ) END / - 98 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2130
SELECT ALL CASE CASE COUNT ( ALL - 56 ) WHEN CAST ( + + CAST ( + - COUNT ( ALL - 78 ) AS INTEGER ) AS INTEGER ) * 90 THEN 11 END WHEN + - 43 THEN - 23 + COALESCE ( - - CASE - 57 WHEN + COUNT ( * ) THEN + COUNT ( * ) * 78 WHEN COUNT ( * ) / 37 THEN NULL END, 49 ) END / - 98 AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2131
SELECT ALL SUM( DISTINCT 5 ) DIV - 36 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2131
SELECT ALL SUM ( DISTINCT 5 ) / - 36 AS col0
----
0

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query III rowsort label-2134
SELECT - 94, + 36 AS col2, + + 81 + - + 66 * - CAST( CASE - 42 WHEN - COUNT( * ) THEN NULL WHEN + AVG ( 10 ) THEN - 83 ELSE + 43 * COUNT( - - 70 ) END AS SIGNED ) AS col0
----
-94
36
2919

skipif mysql # not compatible
query III rowsort label-2134
SELECT - 94, + 36 AS col2, + + 81 + - + 66 * - CAST ( CASE - 42 WHEN - COUNT ( * ) THEN NULL WHEN + AVG ( 10 ) THEN - 83 ELSE + 43 * COUNT ( - - 70 ) END AS INTEGER ) AS col0
----
-94
36
2919

query II rowsort
SELECT ALL 95 AS col1, 5 * + 6
----
95
30

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2136
SELECT 70 col0, + 12 * - 82 * + 62 + - 28 DIV - COUNT( * ) col2
----
70
-60980

skipif mysql # not compatible
query II rowsort label-2136
SELECT 70 col0, + 12 * - 82 * + 62 + - 28 / - COUNT ( * ) col2
----
70
-60980

query I rowsort
SELECT 27 * 61 AS col2
----
1647

onlyif mysql # aggregate syntax: 
query I rowsort label-2138
SELECT MAX( + 14 ) + + 70
----
84

skipif mysql # not compatible
query I rowsort label-2138
SELECT MAX ( + 14 ) + + 70
----
84

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2139
SELECT ALL COUNT( * ) * - 91 * + + NULLIF ( - COUNT( * ), - AVG ( + + CAST( NULL AS SIGNED ) ) * - 74 + + 2 * - - 75 )
----
91

skipif mysql # not compatible
query I rowsort label-2139
SELECT ALL COUNT ( * ) * - 91 * + + NULLIF ( - COUNT ( * ), - AVG ( + + CAST ( NULL AS INTEGER ) ) * - 74 + + 2 * - - 75 )
----
91

query I rowsort
SELECT 7 + + 53
----
60

query II rowsort
SELECT - 23, 82 col0
----
-23
82

onlyif mysql # aggregate syntax: 
query I rowsort label-2142
SELECT SUM( + 44 ) + + 6
----
50

skipif mysql # not compatible
query I rowsort label-2142
SELECT SUM ( + 44 ) + + 6
----
50

query I rowsort
SELECT DISTINCT + + 83 + - ( 0 ) * + + 54
----
83

query I rowsort
SELECT ALL - 38 + 56 AS col0
----
18

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2145
SELECT DISTINCT 29, - CAST( NULL AS SIGNED ) / ( + 66 ) AS col1
----
29
NULL

skipif mysql # not compatible
query II rowsort label-2145
SELECT DISTINCT 29, - CAST ( NULL AS INTEGER ) / ( + 66 ) AS col1
----
29
NULL

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

onlyif mysql # DIV for integer division: 
query II rowsort label-2147
SELECT ALL + + 8 DIV + 93, 10 AS col1
----
0
10

skipif mysql # not compatible
query II rowsort label-2147
SELECT ALL + + 8 / + 93, 10 AS col1
----
0
10

onlyif mysql # DIV for integer division: 
query I rowsort label-2148
SELECT + 23 DIV 10 * + 55 AS col0
----
110

skipif mysql # not compatible
query I rowsort label-2148
SELECT + 23 / 10 * + 55 AS col0
----
110

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

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

query II rowsort
SELECT 11 AS col1, 7 AS col1
----
11
7

query I rowsort
SELECT + CASE 32 WHEN - - 90 + 54 * - + 9 THEN - 15 / + 78 END * - 42 + + + 78
----
NULL

query I rowsort
SELECT - NULLIF ( + - NULLIF ( - 91, - 26 ), 91 * + 44 * - 60 / + 6 )
----
-91

onlyif mysql # aggregate syntax: 
query II rowsort label-2153
SELECT ALL + 86 * 29 * + ( + COUNT( * ) ) AS col1, 48
----
2494
48

skipif mysql # not compatible
query II rowsort label-2153
SELECT ALL + 86 * 29 * + ( + COUNT ( * ) ) AS col1, 48
----
2494
48

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2154
SELECT - 89 DIV - NULLIF ( - COUNT( * ), + - 73 - + - 41 )
----
-89

skipif mysql # not compatible
query I rowsort label-2154
SELECT - 89 / - NULLIF ( - COUNT ( * ), + - 73 - + - 41 )
----
-89

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2155
SELECT 33 DIV + COUNT( DISTINCT + 30 ) - 83 * - 85 AS col2
----
7088

skipif mysql # not compatible
query I rowsort label-2155
SELECT 33 / + COUNT ( DISTINCT + 30 ) - 83 * - 85 AS col2
----
7088

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2157
SELECT DISTINCT + - 66 * - - 60 + - CASE - + 40 WHEN - 15 THEN NULL WHEN + COUNT( * ) * + 77 * 55 * - 22 THEN NULL ELSE 96 * - + 57 END
----
1512

skipif mysql # not compatible
query I rowsort label-2157
SELECT DISTINCT + - 66 * - - 60 + - CASE - + 40 WHEN - 15 THEN NULL WHEN + COUNT ( * ) * + 77 * 55 * - 22 THEN NULL ELSE 96 * - + 57 END
----
1512

onlyif mysql # aggregate syntax: 
query I rowsort label-2158
SELECT ALL - 95 + + 48 + - ( - 39 ) + + 89 * 26 + - SUM( ALL 26 ) AS col1
----
2280

skipif mysql # not compatible
query I rowsort label-2158
SELECT ALL - 95 + + 48 + - ( - 39 ) + + 89 * 26 + - SUM ( ALL 26 ) AS col1
----
2280

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

skipif mysql # not compatible
query I rowsort label-2159
SELECT ALL SUM ( ALL 11 )
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-2160
SELECT + MAX( + - 39 ) AS col2
----
-39

skipif mysql # not compatible
query I rowsort label-2160
SELECT + MAX ( + - 39 ) AS col2
----
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-2161
SELECT ALL + + 37 * + COUNT( * ) * + 63 * CASE 36 WHEN 24 + - 84 THEN + 3 / - 4 END
----
NULL

skipif mysql # not compatible
query I rowsort label-2161
SELECT ALL + + 37 * + COUNT ( * ) * + 63 * CASE 36 WHEN 24 + - 84 THEN + 3 / - 4 END
----
NULL

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

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

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

query I rowsort
SELECT + - COALESCE ( - - 33, - - 62 + - + 43 ) AS col1
----
-33

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2165
SELECT COUNT( * ) DIV 22 * - - MAX( 49 ) + + 92
----
92

skipif mysql # not compatible
query I rowsort label-2165
SELECT COUNT ( * ) / 22 * - - MAX ( 49 ) + + 92
----
92

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2166
SELECT 57 * + COALESCE ( + - 23, - CAST( - CAST( - - 99 AS SIGNED ) AS SIGNED ), - - 18 * 41 ), SUM( + + 83 ) AS col1
----
-1311
83

skipif mysql # not compatible
query II rowsort label-2166
SELECT 57 * + COALESCE ( + - 23, - CAST ( - CAST ( - - 99 AS INTEGER ) AS INTEGER ), - - 18 * 41 ), SUM ( + + 83 ) AS col1
----
-1311
83

query I rowsort
SELECT + 22 * - 75 - - 30
----
-1620

onlyif mysql # aggregate syntax: 
query I rowsort label-2168
SELECT DISTINCT - ( - CASE 62 WHEN + 72 * 77 - 6 THEN NULL WHEN 47 THEN + - CASE + - ( - COUNT( DISTINCT + - ( - 44 ) ) ) WHEN 31 THEN NULL WHEN - 99 * + - 98 * 76 THEN - - 26 END END ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2168
SELECT DISTINCT - ( - CASE 62 WHEN + 72 * 77 - 6 THEN NULL WHEN 47 THEN + - CASE + - ( - COUNT ( DISTINCT + - ( - 44 ) ) ) WHEN 31 THEN NULL WHEN - 99 * + - 98 * 76 THEN - - 26 END END ) AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2169
SELECT 73 + ( 99 ) - - 10 DIV - + 17 col0
----
172

skipif mysql # not compatible
query I rowsort label-2169
SELECT 73 + ( 99 ) - - 10 / - + 17 col0
----
172

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

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

query I rowsort
SELECT COALESCE ( + + 99, - 28 ) * - 77
----
-7623

onlyif mysql # DIV for integer division: 
query I rowsort label-2172
SELECT ALL + 85 DIV - 67 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-2172
SELECT ALL + 85 / - 67 AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-2173
SELECT COALESCE ( + - 86, 81 ) + + + COUNT( * ) AS col0
----
-85

skipif mysql # not compatible
query I rowsort label-2173
SELECT COALESCE ( + - 86, 81 ) + + + COUNT ( * ) AS col0
----
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-2174
SELECT 17 + - - 61 - + + COUNT( ALL + - 78 ) * + 37 + + - 22 AS col1
----
19

skipif mysql # not compatible
query I rowsort label-2174
SELECT 17 + - - 61 - + + COUNT ( ALL + - 78 ) * + 37 + + - 22 AS col1
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-2175
SELECT ALL COUNT( * ) + NULLIF ( 2, + 38 )
----
3

skipif mysql # not compatible
query I rowsort label-2175
SELECT ALL COUNT ( * ) + NULLIF ( 2, + 38 )
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2176
SELECT - 26 * - - COUNT( * ) + + 32
----
6

skipif mysql # not compatible
query I rowsort label-2176
SELECT - 26 * - - COUNT ( * ) + + 32
----
6

onlyif mysql # DIV for integer division: 
query I rowsort label-2177
SELECT 17 DIV + + NULLIF ( + 71, - 17 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2177
SELECT 17 / + + NULLIF ( + 71, - 17 ) AS col0
----
0

query I rowsort
SELECT 52 + - - 96 + - ( + ( + 92 ) ) * - 80
----
7508

query III rowsort
SELECT ALL 97 + - ( 4 ) AS col2, ( - 71 ) AS col1, + 64
----
93
-71
64

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2180
SELECT DISTINCT 63 + + COALESCE ( + - ( 98 ), + 87 * 63 * - 25 DIV COUNT( * ) * - 93, - 1 )
----
-35

skipif mysql # not compatible
query I rowsort label-2180
SELECT DISTINCT 63 + + COALESCE ( + - ( 98 ), + 87 * 63 * - 25 / COUNT ( * ) * - 93, - 1 )
----
-35

onlyif mysql # aggregate syntax: 
query II rowsort label-2181
SELECT ALL + NULLIF ( - ( 97 ), 37 * + 73 + + - ( + - 33 ) ) AS col0, - COUNT( * ) + - 58
----
-97
-59

skipif mysql # not compatible
query II rowsort label-2181
SELECT ALL + NULLIF ( - ( 97 ), 37 * + 73 + + - ( + - 33 ) ) AS col0, - COUNT ( * ) + - 58
----
-97
-59

query I rowsort
SELECT DISTINCT + + 6 + - + NULLIF ( - + 94, 97 ) AS col2
----
100

onlyif mysql # aggregate syntax: 
query II rowsort label-2183
SELECT ALL + COUNT( * ) + + 13 AS col0, 45 + + + 59 AS col2
----
14
104

skipif mysql # not compatible
query II rowsort label-2183
SELECT ALL + COUNT ( * ) + + 13 AS col0, 45 + + + 59 AS col2
----
14
104

query II rowsort
SELECT - 78 * - - 14 AS col0, 97
----
-1092
97

onlyif mysql # aggregate syntax: 
query I rowsort label-2185
SELECT - 48 * COUNT( * ) - - - 26
----
-74

skipif mysql # not compatible
query I rowsort label-2185
SELECT - 48 * COUNT ( * ) - - - 26
----
-74

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2186
SELECT DISTINCT ( - ( 98 ) ) * + - 38 * CAST( - 35 AS SIGNED ) AS col0
----
-130340

skipif mysql # not compatible
query I rowsort label-2186
SELECT DISTINCT ( - ( 98 ) ) * + - 38 * CAST ( - 35 AS INTEGER ) AS col0
----
-130340

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

query I rowsort
SELECT 27 + + + 52
----
79

onlyif mysql # DIV for integer division: 
query I rowsort label-2189
SELECT - 37 + 44 DIV + - 54
----
-37

skipif mysql # not compatible
query I rowsort label-2189
SELECT - 37 + 44 / + - 54
----
-37

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2190
SELECT ALL - 30 - + 46 + + COALESCE ( CAST( 91 AS SIGNED ), + 34 ) * ( 54 ) AS col1
----
4838

skipif mysql # not compatible
query I rowsort label-2190
SELECT ALL - 30 - + 46 + + COALESCE ( CAST ( 91 AS INTEGER ), + 34 ) * ( 54 ) AS col1
----
4838

onlyif mysql # aggregate syntax: 
query I rowsort label-2191
SELECT + CASE - 70 WHEN 33 * + NULLIF ( - + 49, + - 91 + - + 88 ) THEN - COUNT( * ) WHEN + 5 / + - 63 * - - 47 + 52 THEN NULL ELSE NULL END * - 49 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2191
SELECT + CASE - 70 WHEN 33 * + NULLIF ( - + 49, + - 91 + - + 88 ) THEN - COUNT ( * ) WHEN + 5 / + - 63 * - - 47 + 52 THEN NULL ELSE NULL END * - 49 AS col2
----
NULL

query I rowsort
SELECT 19 * - 97
----
-1843

onlyif mysql # aggregate syntax: 
query I rowsort label-2193
SELECT DISTINCT - COUNT( + 49 ) * ( - - 6 ) + ( - COALESCE ( 20, - MIN( DISTINCT 56 ) * - COUNT( * ) ) )
----
-26

skipif mysql # not compatible
query I rowsort label-2193
SELECT DISTINCT - COUNT ( + 49 ) * ( - - 6 ) + ( - COALESCE ( 20, - MIN ( DISTINCT 56 ) * - COUNT ( * ) ) )
----
-26

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2194
SELECT 12 DIV + - COUNT( * ) AS col0
----
-12

skipif mysql # not compatible
query I rowsort label-2194
SELECT 12 / + - COUNT ( * ) AS col0
----
-12

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2196
SELECT ALL - 44 * - - CAST( NULL AS DECIMAL ) * ( MAX( 91 ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2196
SELECT ALL - 44 * - - CAST ( NULL AS REAL ) * ( MAX ( 91 ) ) AS col1
----
NULL

query I rowsort
SELECT 92 * + - 63
----
-5796

query I rowsort
SELECT COALESCE ( - - 99, - + ( - 42 ) )
----
99

onlyif mysql # DIV for integer division: 
query I rowsort label-2199
SELECT - 51 DIV + 67
----
0

skipif mysql # not compatible
query I rowsort label-2199
SELECT - 51 / + 67
----
0

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

skipif mysql # not compatible
query I rowsort label-2200
SELECT MAX ( - + 60 )
----
-60

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2201
SELECT ALL - 90 * CASE + + 14 WHEN - - 94 * 5 * - - 5 / SUM( ALL + + 95 ) + + 40 + - COUNT( * ) * + - CAST( + CAST( - 89 AS SIGNED ) AS SIGNED ) + - - 93 THEN NULL ELSE - - CASE WHEN NOT 36 IS NULL THEN NULL ELSE 91 END - 70 * ( + ( 63 ) * + COUNT( * ) ) END * - COUNT( * ) + + 53 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2201
SELECT ALL - 90 * CASE + + 14 WHEN - - 94 * 5 * - - 5 / SUM ( ALL + + 95 ) + + 40 + - COUNT ( * ) * + - CAST ( + CAST ( - 89 AS INTEGER ) AS INTEGER ) + - - 93 THEN NULL ELSE - - CASE WHEN NOT 36 IS NULL THEN NULL ELSE 91 END - 70 * ( + ( 63 ) * + COUNT ( * ) ) END * - COUNT ( * ) + + 53 AS col1
----
NULL

query I rowsort
SELECT - 9 * - 15
----
135

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

skipif mysql # not compatible
query II rowsort label-2203
SELECT COUNT ( * ) AS col1, 9
----
1
9

onlyif mysql # aggregate syntax: 
query I rowsort label-2204
SELECT ALL + COUNT( * ) * - + 67 * 8 + + 85 + - 7
----
-458

skipif mysql # not compatible
query I rowsort label-2204
SELECT ALL + COUNT ( * ) * - + 67 * 8 + + 85 + - 7
----
-458

query I rowsort
SELECT ALL 91 * - 60 AS col0
----
-5460

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2207
SELECT + 96 DIV + 9 col2
----
10

skipif mysql # not compatible
query I rowsort label-2207
SELECT + 96 / + 9 col2
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-2208
SELECT DISTINCT + COALESCE ( - + 54, + 46, - + SUM( DISTINCT 10 ) )
----
-54

skipif mysql # not compatible
query I rowsort label-2208
SELECT DISTINCT + COALESCE ( - + 54, + 46, - + SUM ( DISTINCT 10 ) )
----
-54

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

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

query I rowsort
SELECT - 49 + 25
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-2211
SELECT + + 75 - - COUNT( DISTINCT + + 68 ) col0
----
76

skipif mysql # not compatible
query I rowsort label-2211
SELECT + + 75 - - COUNT ( DISTINCT + + 68 ) col0
----
76

query I rowsort
SELECT + - 58 + - - 12
----
-46

query I rowsort
SELECT ALL - 95 - 82 * + 26 + 0
----
-2227

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2214
SELECT DISTINCT NULLIF ( + - ( - 37 ), + 55 - - 0 - COUNT( * ) ) DIV 99 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2214
SELECT DISTINCT NULLIF ( + - ( - 37 ), + 55 - - 0 - COUNT ( * ) ) / 99 AS col0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2215
SELECT + + ( + 63 ) DIV 60 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-2215
SELECT + + ( + 63 ) / 60 AS col1
----
1

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

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

query II rowsort
SELECT + 26 AS col1, ( - + 2 )
----
26
-2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2218
SELECT - 16, COALESCE ( + 4, 29 + + CAST( NULL AS SIGNED ) ) DIV MAX( ALL 39 ) col1
----
-16
0

skipif mysql # not compatible
query II rowsort label-2218
SELECT - 16, COALESCE ( + 4, 29 + + CAST ( NULL AS INTEGER ) ) / MAX ( ALL 39 ) col1
----
-16
0

query I rowsort
SELECT - 48 * + 32 AS col1
----
-1536

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

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

query II rowsort
SELECT 82, 87 col2
----
82
87

onlyif mysql # aggregate syntax: 
query I rowsort label-2222
SELECT DISTINCT 35 * + MAX( - 91 ) AS col2
----
-3185

skipif mysql # not compatible
query I rowsort label-2222
SELECT DISTINCT 35 * + MAX ( - 91 ) AS col2
----
-3185

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2223
SELECT + 76 * CAST( 78 AS SIGNED ) AS col0
----
5928

skipif mysql # not compatible
query I rowsort label-2223
SELECT + 76 * CAST ( 78 AS INTEGER ) AS col0
----
5928

query I rowsort
SELECT ALL 81 * + - 63
----
-5103

query II rowsort
SELECT + 93 - 23, + ( 38 ) col1
----
70
38

query II rowsort
SELECT ( 88 ), 11 AS col0
----
88
11

onlyif mysql # aggregate syntax: 
query II rowsort label-2227
SELECT ALL - CASE + COUNT( * ) WHEN - 87 * + - 4 - + - 68 + + - 96 * + 65 THEN - 99 WHEN + + 65 / - 39 + 73 THEN NULL END / + 13 / - 49 * + 28 * 28 + - + 45 / + + 62, 58 col1
----
NULL
58

skipif mysql # not compatible
query II rowsort label-2227
SELECT ALL - CASE + COUNT ( * ) WHEN - 87 * + - 4 - + - 68 + + - 96 * + 65 THEN - 99 WHEN + + 65 / - 39 + 73 THEN NULL END / + 13 / - 49 * + 28 * 28 + - + 45 / + + 62, 58 col1
----
NULL
58

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2228
SELECT + CAST( NULL AS SIGNED ) + - ( + - NULLIF ( + - 61, 28 / 14 + + 12 * 62 * + 95 + + ( + 39 ) + + 16 ) ) + + + 23 - - - 20 AS col1, + 5 AS col2
----
NULL
5

skipif mysql # not compatible
query II rowsort label-2228
SELECT + CAST ( NULL AS INTEGER ) + - ( + - NULLIF ( + - 61, 28 / 14 + + 12 * 62 * + 95 + + ( + 39 ) + + 16 ) ) + + + 23 - - - 20 AS col1, + 5 AS col2
----
NULL
5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2229
SELECT - 75 * + 10 * - 77 * + CAST( + COUNT( * ) AS SIGNED ) * - NULLIF ( + 63, 56 + - 26 ) + + CASE + 45 WHEN + 81 THEN - - 28 + - 93 / - + 92 WHEN + 5 + - + 25 * + 25 - - + COALESCE ( 60, - 10 * - 42, 83 + 83 ) + 70 * NULLIF ( 45 - + 95, - 59 ) THEN NULL END + 46 - 48 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2229
SELECT - 75 * + 10 * - 77 * + CAST ( + COUNT ( * ) AS INTEGER ) * - NULLIF ( + 63, 56 + - 26 ) + + CASE + 45 WHEN + 81 THEN - - 28 + - 93 / - + 92 WHEN + 5 + - + 25 * + 25 - - + COALESCE ( 60, - 10 * - 42, 83 + 83 ) + 70 * NULLIF ( 45 - + 95, - 59 ) THEN NULL END + 46 - 48 AS col1
----
NULL

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2231
SELECT 86 * + - 45 / + 99 + - 88 + + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-2231
SELECT 86 * + - 45 / + 99 + - 88 + + + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2232
SELECT - 15 - + + CASE NULLIF ( + 67, - - 74 ) WHEN - CASE - 57 WHEN - ( 57 ) THEN - COUNT( * ) + + 41 WHEN - 0 THEN NULL END THEN 76 END * + CAST( NULL AS SIGNED ) * + 77 * - 91
----
NULL

skipif mysql # not compatible
query I rowsort label-2232
SELECT - 15 - + + CASE NULLIF ( + 67, - - 74 ) WHEN - CASE - 57 WHEN - ( 57 ) THEN - COUNT ( * ) + + 41 WHEN - 0 THEN NULL END THEN 76 END * + CAST ( NULL AS INTEGER ) * + 77 * - 91
----
NULL

query I rowsort
SELECT - 75 * - 3 + 47
----
272

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2234
SELECT DISTINCT - CASE 6 WHEN + 47 THEN - - 71 WHEN - - CASE - AVG ( DISTINCT - - 39 ) WHEN + 74 + + 92 THEN NULL ELSE - - 20 - + 88 END * - CAST( NULL AS SIGNED ) + - + 38 * CASE + 3 WHEN + 90 THEN - + 9 + 14 END + + COUNT( * ) * 59 THEN NULL END * COUNT( DISTINCT ( + 77 ) + 12 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2234
SELECT DISTINCT - CASE 6 WHEN + 47 THEN - - 71 WHEN - - CASE - AVG ( DISTINCT - - 39 ) WHEN + 74 + + 92 THEN NULL ELSE - - 20 - + 88 END * - CAST ( NULL AS INTEGER ) + - + 38 * CASE + 3 WHEN + 90 THEN - + 9 + 14 END + + COUNT ( * ) * 59 THEN NULL END * COUNT ( DISTINCT ( + 77 ) + 12 )
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-2235
SELECT ( + - 56 ) AS col0, 86 DIV + 89 AS col2
----
-56
0

skipif mysql # not compatible
query II rowsort label-2235
SELECT ( + - 56 ) AS col0, 86 / + 89 AS col2
----
-56
0

query I rowsort
SELECT ALL + 69 * - - 89 + + 72
----
6213

query I rowsort
SELECT ALL + 52 * + 83 + - 92
----
4224

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

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

query I rowsort
SELECT + COALESCE ( - - 56, - 11 * + + 75 + 60 + - 33, - 99 ) * ( + 94 ) + - - 70 * + 91 * + 54 AS col1
----
349244

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2240
SELECT CAST( - 64 AS SIGNED ) * - 13 + + COUNT( * ) - 74 / CAST( NULL AS SIGNED ) - COUNT( * ) + + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-2240
SELECT CAST ( - 64 AS INTEGER ) * - 13 + + COUNT ( * ) - 74 / CAST ( NULL AS INTEGER ) - COUNT ( * ) + + COUNT ( * )
----
NULL

query I rowsort
SELECT - + 84 * + 45 + + - 19
----
-3799

query I rowsort
SELECT - + 79 * + 2 + + 91
----
-67

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

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

query I rowsort
SELECT DISTINCT 9 * 22 + + 2
----
200

onlyif mysql # aggregate syntax: 
query I rowsort label-2245
SELECT ALL COUNT( * ) * - 25 col2
----
-25

skipif mysql # not compatible
query I rowsort label-2245
SELECT ALL COUNT ( * ) * - 25 col2
----
-25

query II rowsort
SELECT ALL - 63 * 62 AS col2, - 64 * + 4
----
-3906
-256

query I rowsort
SELECT - CASE + ( 52 ) WHEN - 75 THEN - + 97 END AS col1
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2249
SELECT - - COUNT( * ) - 85 col2
----
-84

skipif mysql # not compatible
query I rowsort label-2249
SELECT - - COUNT ( * ) - 85 col2
----
-84

query I rowsort
SELECT + 41 + + - 42 + + + 24 AS col0
----
23

query II rowsort
SELECT ALL - NULLIF ( - 38, - 79 ) + 88, - 27 + + - 22 AS col2
----
126
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-2252
SELECT COUNT( ALL + 61 ) + + 37
----
38

skipif mysql # not compatible
query I rowsort label-2252
SELECT COUNT ( ALL + 61 ) + + 37
----
38

query I rowsort
SELECT 8 + - + 95
----
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-2254
SELECT ALL COUNT( * ) / + CASE + COUNT( * ) WHEN + + ( + - 48 ) / - - 32 * - COUNT( * ) - + 99 + + - 92 THEN + + 76 WHEN - 32 * + 59 THEN NULL WHEN 4 THEN NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2254
SELECT ALL COUNT ( * ) / + CASE + COUNT ( * ) WHEN + + ( + - 48 ) / - - 32 * - COUNT ( * ) - + 99 + + - 92 THEN + + 76 WHEN - 32 * + 59 THEN NULL WHEN 4 THEN NULL END AS col0
----
NULL

query I rowsort
SELECT DISTINCT 93 + - 97 col2
----
-4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2256
SELECT ALL 28 + 85 + 12 + ( - - CAST( NULL AS SIGNED ) ) * + 6 * 64 * + 41 * + - 40
----
NULL

skipif mysql # not compatible
query I rowsort label-2256
SELECT ALL 28 + 85 + 12 + ( - - CAST ( NULL AS INTEGER ) ) * + 6 * 64 * + 41 * + - 40
----
NULL

query I rowsort
SELECT 98 * + 33 AS col0
----
3234

onlyif mysql # aggregate syntax: 
query I rowsort label-2258
SELECT ALL 80 * - 6 * - COALESCE ( COUNT( * ), + MAX( ALL 50 ), + 89 )
----
480

skipif mysql # not compatible
query I rowsort label-2258
SELECT ALL 80 * - 6 * - COALESCE ( COUNT ( * ), + MAX ( ALL 50 ), + 89 )
----
480

query I rowsort
SELECT ALL 92 + + 7
----
99

onlyif mysql # aggregate syntax: 
query II rowsort label-2260
SELECT COUNT( * ) * 79 * - - 24 AS col1, + 73
----
1896
73

skipif mysql # not compatible
query II rowsort label-2260
SELECT COUNT ( * ) * 79 * - - 24 AS col1, + 73
----
1896
73

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2261
SELECT ALL + CAST( + + ( + - 7 ) AS SIGNED ) + + 57 + + 33
----
83

skipif mysql # not compatible
query I rowsort label-2261
SELECT ALL + CAST ( + + ( + - 7 ) AS INTEGER ) + + 57 + + 33
----
83

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

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

query I rowsort
SELECT 23 - + 6 col0
----
17

query II rowsort
SELECT 9 AS col0, - 76 AS col1
----
9
-76

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2265
SELECT 76 * - 37 DIV - + COUNT( - - 10 ) AS col1
----
2812

skipif mysql # not compatible
query I rowsort label-2265
SELECT 76 * - 37 / - + COUNT ( - - 10 ) AS col1
----
2812

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

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

query II rowsort
SELECT + + ( - + ( - + 71 ) ) col1, NULLIF ( + 0, + - 82 ) AS col1
----
71
0

query I rowsort
SELECT - 1 * ( 71 )
----
-71

query I rowsort
SELECT DISTINCT - 0 - - ( + 7 ) AS col0
----
7

query II rowsort
SELECT + 71 col0, - 74 + - - 43 AS col1
----
71
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-2271
SELECT - 67 - - 30 * + CASE + CASE 44 WHEN 51 + + 15 THEN NULL ELSE 3 + - COUNT( * ) END WHEN + 91 + + COALESCE ( - 62, - 5 ) THEN NULL WHEN - CASE - + 66 WHEN - 43 THEN + 22 END + 68 * + + 65 THEN - + 12 * 79 WHEN - 88 - 3 / + 4 THEN 48 * 83 + 45 ELSE 36 END
----
1013

skipif mysql # not compatible
query I rowsort label-2271
SELECT - 67 - - 30 * + CASE + CASE 44 WHEN 51 + + 15 THEN NULL ELSE 3 + - COUNT ( * ) END WHEN + 91 + + COALESCE ( - 62, - 5 ) THEN NULL WHEN - CASE - + 66 WHEN - 43 THEN + 22 END + 68 * + + 65 THEN - + 12 * 79 WHEN - 88 - 3 / + 4 THEN 48 * 83 + 45 ELSE 36 END
----
1013

onlyif mysql # aggregate syntax: 
query I rowsort label-2272
SELECT ALL - ( - MAX( DISTINCT - 94 ) ) AS col2
----
-94

skipif mysql # not compatible
query I rowsort label-2272
SELECT ALL - ( - MAX ( DISTINCT - 94 ) ) AS col2
----
-94

onlyif mysql # DIV for integer division: 
query I rowsort label-2273
SELECT + ( 47 ) DIV 61 + - 44 AS col1
----
-44

skipif mysql # not compatible
query I rowsort label-2273
SELECT + ( 47 ) / 61 + - 44 AS col1
----
-44

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

skipif mysql # not compatible
query I rowsort label-2274
SELECT COUNT ( * ) * + CAST ( 83 AS INTEGER )
----
83

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2275
SELECT + 47 + - 8 + - CAST( + 49 AS SIGNED )
----
-10

skipif mysql # not compatible
query I rowsort label-2275
SELECT + 47 + - 8 + - CAST ( + 49 AS INTEGER )
----
-10

query II rowsort
SELECT 4 * - - 58 - + 44 AS col2, - 10 + + 31
----
188
21

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

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

query I rowsort
SELECT ALL - 60 + - 97 * + 36
----
-3552

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

query I rowsort
SELECT 11 + 6 AS col0
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-2282
SELECT DISTINCT + NULLIF ( - 18, + 97 * COUNT( * ) ) * + - 29 + + COUNT( * )
----
523

skipif mysql # not compatible
query I rowsort label-2282
SELECT DISTINCT + NULLIF ( - 18, + 97 * COUNT ( * ) ) * + - 29 + + COUNT ( * )
----
523

query I rowsort
SELECT ALL - 85 + + - 61 * 74
----
-4599

onlyif mysql # aggregate syntax: 
query I rowsort label-2284
SELECT 98 + NULLIF ( + COUNT( * ), - + ( ( + - ( 6 ) ) ) + + 18 ) AS col1
----
99

skipif mysql # not compatible
query I rowsort label-2284
SELECT 98 + NULLIF ( + COUNT ( * ), - + ( ( + - ( 6 ) ) ) + + 18 ) AS col1
----
99

query II rowsort
SELECT 63, ( + + 34 ) col2
----
63
34

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2286
SELECT COALESCE ( - ( 97 ), - + 8, - 83 * - 10 DIV - 45 ) * - ( MAX( + + 91 ) ) * + + 31
----
273637

skipif mysql # not compatible
query I rowsort label-2286
SELECT COALESCE ( - ( 97 ), - + 8, - 83 * - 10 / - 45 ) * - ( MAX ( + + 91 ) ) * + + 31
----
273637

query II rowsort
SELECT DISTINCT 82 AS col2, 18 AS col0
----
82
18

query II rowsort
SELECT ALL 34 AS col1, 70 * - 8
----
34
-560

onlyif mysql # aggregate syntax: 
query I rowsort label-2289
SELECT NULLIF ( - 64, + - COALESCE ( + COUNT( * ), + ( - + CASE - + 85 WHEN - + 53 * + - 68 / - ( - 22 ) THEN - 68 + + + 0 + + 48 * + CASE - + 7 WHEN + 9 THEN + 58 WHEN - 27 THEN ( 24 ) / 90 ELSE 72 + + 34 END - ( 82 ) ELSE NULL END ) ) ) * - 12
----
768

skipif mysql # not compatible
query I rowsort label-2289
SELECT NULLIF ( - 64, + - COALESCE ( + COUNT ( * ), + ( - + CASE - + 85 WHEN - + 53 * + - 68 / - ( - 22 ) THEN - 68 + + + 0 + + 48 * + CASE - + 7 WHEN + 9 THEN + 58 WHEN - 27 THEN ( 24 ) / 90 ELSE 72 + + 34 END - ( 82 ) ELSE NULL END ) ) ) * - 12
----
768

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2291
SELECT DISTINCT 68 * - 17 DIV + + COUNT( * )
----
-1156

skipif mysql # not compatible
query I rowsort label-2291
SELECT DISTINCT 68 * - 17 / + + COUNT ( * )
----
-1156

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2292
SELECT DISTINCT CAST( + 92 AS SIGNED ) DIV 65 * - 5 AS col1
----
-5

skipif mysql # not compatible
query I rowsort label-2292
SELECT DISTINCT CAST ( + 92 AS INTEGER ) / 65 * - 5 AS col1
----
-5

onlyif mysql # aggregate syntax: 
query II rowsort label-2293
SELECT COUNT( * ) AS col0, 66 + + 98 AS col1
----
1
164

skipif mysql # not compatible
query II rowsort label-2293
SELECT COUNT ( * ) AS col0, 66 + + 98 AS col1
----
1
164

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2295
SELECT + 59 * - NULLIF ( SUM( + CAST( - 31 AS SIGNED ) ), + ( - COUNT( 80 ) ) * + NULLIF ( - 16, 52 + 26 + - 8 * + 97 + + + 61 / CASE + 2 WHEN + - 68 THEN NULL WHEN - + 25 THEN - 76 ELSE NULL END * + + 5 + - 3 * + ( 75 ) ) * + COUNT( * ) + + 9 + ( 54 ) * ( 22 * COUNT( * ) ) ) + - MIN( ALL 25 )
----
1804

skipif mysql # not compatible
query I rowsort label-2295
SELECT + 59 * - NULLIF ( SUM ( + CAST ( - 31 AS INTEGER ) ), + ( - COUNT ( 80 ) ) * + NULLIF ( - 16, 52 + 26 + - 8 * + 97 + + + 61 / CASE + 2 WHEN + - 68 THEN NULL WHEN - + 25 THEN - 76 ELSE NULL END * + + 5 + - 3 * + ( 75 ) ) * + COUNT ( * ) + + 9 + ( 54 ) * ( 22 * COUNT ( * ) ) ) + - MIN ( ALL 25 )
----
1804

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2297
SELECT DISTINCT 3 * 19 * CASE + + 2 WHEN + NULLIF ( - 91, NULLIF ( - SUM( ALL 24 ), 38 ) ) THEN - COUNT( ALL - 22 ) + - + 75 END / + 14 + - 19
----
NULL

skipif mysql # not compatible
query I rowsort label-2297
SELECT DISTINCT 3 * 19 * CASE + + 2 WHEN + NULLIF ( - 91, NULLIF ( - SUM ( ALL 24 ), 38 ) ) THEN - COUNT ( ALL - 22 ) + - + 75 END / + 14 + - 19
----
NULL

query II rowsort
SELECT ALL - + 7 AS col2, + 24
----
-7
24

query I rowsort
SELECT + 65 + 8
----
73

onlyif mysql # aggregate syntax: 
query I rowsort label-2300
SELECT COUNT( * ) * COUNT( * ) * - 88 * + 41 + + 3 + + 76
----
-3529

skipif mysql # not compatible
query I rowsort label-2300
SELECT COUNT ( * ) * COUNT ( * ) * - 88 * + 41 + + 3 + + 76
----
-3529

query II rowsort
SELECT + 95 AS col1, - 97 * - 96 + 14 AS col1
----
95
9326

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

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2303
SELECT - CAST( NULL AS DECIMAL ) + 2 + + ( + + 62 ) - MIN( - ( - 21 ) ) + + 55
----
NULL

skipif mysql # not compatible
query I rowsort label-2303
SELECT - CAST ( NULL AS REAL ) + 2 + + ( + + 62 ) - MIN ( - ( - 21 ) ) + + 55
----
NULL

query I rowsort
SELECT - COALESCE ( - + 86, - 68, - 17 )
----
86

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2305
SELECT + - 88 AS col0, CASE + 3 WHEN CAST( NULL AS SIGNED ) THEN + + ( + 94 ) - - + ( + 39 ) END * - + 81 AS col1
----
-88
NULL

skipif mysql # not compatible
query II rowsort label-2305
SELECT + - 88 AS col0, CASE + 3 WHEN CAST ( NULL AS INTEGER ) THEN + + ( + 94 ) - - + ( + 39 ) END * - + 81 AS col1
----
-88
NULL

query I rowsort
SELECT ALL 28 + - 6
----
22

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

skipif mysql # not compatible
query I rowsort label-2307
SELECT DISTINCT COUNT ( * ) / - + 11
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2308
SELECT - - COALESCE ( - 88, - 26 * ( 9 ) - - 71, 37 * + + 65 ) * SUM( - + 67 ) AS col1
----
5896

skipif mysql # not compatible
query I rowsort label-2308
SELECT - - COALESCE ( - 88, - 26 * ( 9 ) - - 71, 37 * + + 65 ) * SUM ( - + 67 ) AS col1
----
5896

query I rowsort
SELECT ALL - 20 * + 85
----
-1700

query I rowsort
SELECT DISTINCT - 61 + - + 90 AS col2
----
-151

onlyif mysql # aggregate syntax: 
query I rowsort label-2311
SELECT SUM( + 7 ) AS col1
----
7

skipif mysql # not compatible
query I rowsort label-2311
SELECT SUM ( + 7 ) AS col1
----
7

query I rowsort
SELECT + 34 + + - 32 AS col1
----
2

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

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

query I rowsort
SELECT - 10 + + + 48 * 19
----
902

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2315
SELECT - COUNT( * ) + + AVG ( ALL 12 ) + - ( + 26 ) * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-2315
SELECT - COUNT ( * ) + + AVG ( ALL 12 ) + - ( + 26 ) * - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2316
SELECT ALL SUM( ALL - 33 ) AS col2
----
-33

skipif mysql # not compatible
query I rowsort label-2316
SELECT ALL SUM ( ALL - 33 ) AS col2
----
-33

query I rowsort
SELECT - 80 + - 66
----
-146

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2319
SELECT - NULLIF ( - - 17, + MAX( ALL - - 0 ) - + 75 * - COUNT( * ) + - + 8 ) + + 47
----
30

skipif mysql # not compatible
query I rowsort label-2319
SELECT - NULLIF ( - - 17, + MAX ( ALL - - 0 ) - + 75 * - COUNT ( * ) + - + 8 ) + + 47
----
30

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2320
SELECT ALL + MAX( DISTINCT + 2 ) * + - ( - 84 ) + - - SUM( - + CAST( NULL AS SIGNED ) ) + - + 89 * + + 79 + COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2320
SELECT ALL + MAX ( DISTINCT + 2 ) * + - ( - 84 ) + - - SUM ( - + CAST ( NULL AS INTEGER ) ) + - + 89 * + + 79 + COUNT ( * ) AS col0
----
NULL

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-2322
SELECT - + 47 DIV - 32, 59 DIV 58 + + 29 AS col2
----
1
30

skipif mysql # not compatible
query II rowsort label-2322
SELECT - + 47 / - 32, 59 / 58 + + 29 AS col2
----
1
30

onlyif mysql # aggregate syntax: 
query I rowsort label-2323
SELECT ALL + + CASE - - 18 WHEN - COUNT( * ) THEN + 38 * + 55 + - 29 WHEN - 81 + + + 93 THEN - 49 ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2323
SELECT ALL + + CASE - - 18 WHEN - COUNT ( * ) THEN + 38 * + 55 + - 29 WHEN - 81 + + + 93 THEN - 49 ELSE NULL END AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2324
SELECT DISTINCT 73 * + - 66 + CASE - 78 WHEN + COUNT( * ) THEN + + MIN( ALL 8 ) + - CASE MIN( ALL - 53 ) WHEN + 50 THEN NULL WHEN + 92 * + 74 THEN + ( + CAST( NULL AS SIGNED ) ) * - - NULLIF ( + - CASE - NULLIF ( - 65, + - 2 ) WHEN + + 86 + + - COUNT( * ) THEN NULL WHEN 16 THEN NULL WHEN - 93 * 45 + 51 THEN NULLIF ( + 0, ( SUM( + 84 ) ) * - 28 ) + 53 END, - 35 * - 42 ) + 72 * - 78 WHEN 37 * + ( 38 ) - + ( - ( 78 ) ) THEN NULL END END + ( - COUNT( * ) ) * + 29 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2324
SELECT DISTINCT 73 * + - 66 + CASE - 78 WHEN + COUNT ( * ) THEN + + MIN ( ALL 8 ) + - CASE MIN ( ALL - 53 ) WHEN + 50 THEN NULL WHEN + 92 * + 74 THEN + ( + CAST ( NULL AS INTEGER ) ) * - - NULLIF ( + - CASE - NULLIF ( - 65, + - 2 ) WHEN + + 86 + + - COUNT ( * ) THEN NULL WHEN 16 THEN NULL WHEN - 93 * 45 + 51 THEN NULLIF ( + 0, ( SUM ( + 84 ) ) * - 28 ) + 53 END, - 35 * - 42 ) + 72 * - 78 WHEN 37 * + ( 38 ) - + ( - ( 78 ) ) THEN NULL END END + ( - COUNT ( * ) ) * + 29 AS col0
----
NULL

query II rowsort
SELECT + 63 * - - 80, 72 AS col2
----
5040
72

onlyif mysql # aggregate syntax: 
query II rowsort label-2326
SELECT - 2 - + + 65 AS col0, COUNT( * ) + - 9
----
-67
-8

skipif mysql # not compatible
query II rowsort label-2326
SELECT - 2 - + + 65 AS col0, COUNT ( * ) + - 9
----
-67
-8

query I rowsort
SELECT + + 46 * - + 61 * + + 1 + 59 AS col0
----
-2747

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

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

query I rowsort
SELECT ALL 56 * + 24 + - - 22
----
1366

onlyif mysql # aggregate syntax: 
query I rowsort label-2330
SELECT DISTINCT - SUM( DISTINCT + + 48 ) * - + 63 AS col2
----
3024

skipif mysql # not compatible
query I rowsort label-2330
SELECT DISTINCT - SUM ( DISTINCT + + 48 ) * - + 63 AS col2
----
3024

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

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

query I rowsort
SELECT + 93 + 95 AS col0
----
188

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2334
SELECT ALL 5 DIV + 40 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-2334
SELECT ALL 5 / + 40 AS col1
----
0

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

query I rowsort
SELECT - 17 + - + 31
----
-48

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2338
SELECT ALL COUNT( ALL ( 60 ) ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-2338
SELECT ALL COUNT ( ALL ( 60 ) ) AS col1
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2339
SELECT ALL - CASE WHEN NOT 31 IS NOT NULL THEN - MAX( - - 52 ) WHEN 75 + + NULLIF ( - + 95, + 16 * + + COALESCE ( - + COUNT( * ), - 14, + - 30 ) / - SUM( DISTINCT - 47 ) * COUNT( + - 11 ) ) IN ( - 30, CAST( NULL AS SIGNED ) ) THEN - COUNT( * ) END - - - COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2339
SELECT ALL - CASE WHEN NOT 31 IS NOT NULL THEN - MAX ( - - 52 ) WHEN 75 + + NULLIF ( - + 95, + 16 * + + COALESCE ( - + COUNT ( * ), - 14, + - 30 ) / - SUM ( DISTINCT - 47 ) * COUNT ( + - 11 ) ) IN ( - 30, CAST ( NULL AS INTEGER ) ) THEN - COUNT ( * ) END - - - COUNT ( * ) AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2340
SELECT + 63 * 56 DIV - - 76
----
46

skipif mysql # not compatible
query I rowsort label-2340
SELECT + 63 * 56 / - - 76
----
46

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2341
SELECT ALL 69 DIV - + CAST( + 38 AS SIGNED ) AS col1, - ( + 62 ) - - + ( + 49 ) AS col2
----
-1
-13

skipif mysql # not compatible
query II rowsort label-2341
SELECT ALL 69 / - + CAST ( + 38 AS INTEGER ) AS col1, - ( + 62 ) - - + ( + 49 ) AS col2
----
-1
-13

query I rowsort
SELECT ALL ( - + 16 )
----
-16

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

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

query I rowsort
SELECT + 27 * + 58 col1
----
1566

query I rowsort
SELECT - 33 * - + 17 AS col1
----
561

onlyif mysql # aggregate syntax: 
query I rowsort label-2346
SELECT - NULLIF ( + 23, + COUNT( * ) ) * 2 col1
----
-46

skipif mysql # not compatible
query I rowsort label-2346
SELECT - NULLIF ( + 23, + COUNT ( * ) ) * 2 col1
----
-46

onlyif mysql # aggregate syntax: 
query II rowsort label-2347
SELECT + COUNT( * ) + - - CASE - CASE 12 WHEN + 36 * - 51 THEN NULL ELSE 38 / AVG ( DISTINCT 7 ) END WHEN 12 * 68 + - 76 THEN + 92 ELSE NULL END * - 74 AS col1, MIN( + - 96 ) AS col2
----
NULL
-96

skipif mysql # not compatible
query II rowsort label-2347
SELECT + COUNT ( * ) + - - CASE - CASE 12 WHEN + 36 * - 51 THEN NULL ELSE 38 / AVG ( DISTINCT 7 ) END WHEN 12 * 68 + - 76 THEN + 92 ELSE NULL END * - 74 AS col1, MIN ( + - 96 ) AS col2
----
NULL
-96

query II rowsort
SELECT 25, - 87 AS col0
----
25
-87

query I rowsort
SELECT ALL NULLIF ( 61, 97 )
----
61

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: DIV for integer division: 
query II rowsort label-2350
SELECT + 97 + - 58 DIV + 97 DIV COUNT( * ) - + 39 * + 8, COALESCE ( - 74, CASE WHEN 49 IS NULL THEN + 63 DIV + 33 * + + 35 + + - COUNT( ALL - - COALESCE ( - ( + 58 ), - 7 ) ) ELSE - 20 + - CAST( 60 AS SIGNED ) * COUNT( * ) + - COUNT( * ) END + 50 ) * + 16 + COUNT( * ) * CAST( NULL AS DECIMAL ) AS col0
----
-215
NULL

skipif mysql # not compatible
query II rowsort label-2350
SELECT + 97 + - 58 / + 97 / COUNT ( * ) - + 39 * + 8, COALESCE ( - 74, CASE WHEN 49 IS NULL THEN + 63 / + 33 * + + 35 + + - COUNT ( ALL - - COALESCE ( - ( + 58 ), - 7 ) ) ELSE - 20 + - CAST ( 60 AS INTEGER ) * COUNT ( * ) + - COUNT ( * ) END + 50 ) * + 16 + COUNT ( * ) * CAST ( NULL AS REAL ) AS col0
----
-215
NULL

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

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

query I rowsort
SELECT - 91 - - 34 AS col0
----
-57

query II rowsort
SELECT 12 AS col2, + 23 - + - ( - 63 )
----
12
-40

onlyif mysql # aggregate syntax: 
query II rowsort label-2354
SELECT DISTINCT CASE ( 75 ) WHEN - 21 THEN NULL ELSE + 20 * + 26 + 0 - + COUNT( * ) END AS col2, - 33 AS col0
----
519
-33

skipif mysql # not compatible
query II rowsort label-2354
SELECT DISTINCT CASE ( 75 ) WHEN - 21 THEN NULL ELSE + 20 * + 26 + 0 - + COUNT ( * ) END AS col2, - 33 AS col0
----
519
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-2355
SELECT DISTINCT + CASE + - 65 WHEN - NULLIF ( + NULLIF ( COUNT( * ), + 83 ), 18 ) + - SUM( - 31 ) * - 9 + - - 79 - - 83 THEN + + 83 WHEN - 23 THEN + 46 WHEN 57 THEN + COALESCE ( - + 20, + + ( 38 ) * - 93 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-2355
SELECT DISTINCT + CASE + - 65 WHEN - NULLIF ( + NULLIF ( COUNT ( * ), + 83 ), 18 ) + - SUM ( - 31 ) * - 9 + - - 79 - - 83 THEN + + 83 WHEN - 23 THEN + 46 WHEN 57 THEN + COALESCE ( - + 20, + + ( 38 ) * - 93 ) END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2356
SELECT ALL ( 16 ) DIV + 15 + + 79 + - 50 + + - MIN( DISTINCT - 64 ) * + 24
----
1566

skipif mysql # not compatible
query I rowsort label-2356
SELECT ALL ( 16 ) / + 15 + + 79 + - 50 + + - MIN ( DISTINCT - 64 ) * + 24
----
1566

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2358
SELECT + + CAST( NULL AS SIGNED ) / COALESCE ( + CASE 92 WHEN CAST( NULL AS DECIMAL ) * + + ( 1 ) THEN - 68 WHEN - 36 * - + CAST( NULL AS SIGNED ) THEN NULL ELSE NULL END, - 65 * - + 38 - + - 90, CASE - - 81 WHEN MIN( - 11 ) + - - 45 + 85 * - 84 THEN + 61 + - 68 ELSE NULL END * + 93 + NULLIF ( 47 + - 78, - 96 ) ) + + 76 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2358
SELECT + + CAST ( NULL AS INTEGER ) / COALESCE ( + CASE 92 WHEN CAST ( NULL AS REAL ) * + + ( 1 ) THEN - 68 WHEN - 36 * - + CAST ( NULL AS INTEGER ) THEN NULL ELSE NULL END, - 65 * - + 38 - + - 90, CASE - - 81 WHEN MIN ( - 11 ) + - - 45 + 85 * - 84 THEN + 61 + - 68 ELSE NULL END * + 93 + NULLIF ( 47 + - 78, - 96 ) ) + + 76 AS col1
----
NULL

query II rowsort
SELECT DISTINCT + + 26 AS col2, 2 col2
----
26
2

query I rowsort
SELECT - - 24 + + 6 AS col2
----
30

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2361
SELECT + 79 DIV + 95 + + + 51 + + 61 * + 66 * - 39 + - 93 + - 5 - - + ( + 0 ) + + SUM( 4 ) DIV 12 AS col0, + 27 * - 68 * + 15 - + COUNT( * ) + + + 79 DIV 74 * 16
----
-157061
-27525

skipif mysql # not compatible
query II rowsort label-2361
SELECT + 79 / + 95 + + + 51 + + 61 * + 66 * - 39 + - 93 + - 5 - - + ( + 0 ) + + SUM ( 4 ) / 12 AS col0, + 27 * - 68 * + 15 - + COUNT ( * ) + + + 79 / 74 * 16
----
-157061
-27525

onlyif mysql # DIV for integer division: 
query I rowsort label-2362
SELECT + - 1 * - 82 DIV + 12 + - 98
----
-92

skipif mysql # not compatible
query I rowsort label-2362
SELECT + - 1 * - 82 / + 12 + - 98
----
-92

query I rowsort
SELECT + - 44 - + 52 + 12 * + - 4 col2
----
-144

query I rowsort
SELECT ALL - - 10 AS col2
----
10

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2365
SELECT ALL 93 DIV 90 * 15 * COUNT( * )
----
15

skipif mysql # not compatible
query I rowsort label-2365
SELECT ALL 93 / 90 * 15 * COUNT ( * )
----
15

query I rowsort
SELECT 48 + + NULLIF ( - 90, + - 51 ) AS col1
----
-42

onlyif mysql # aggregate syntax: 
query II rowsort label-2367
SELECT ALL - + 4 + - + 30 * - 47 AS col0, + 29 * + COUNT( * ) * + - COUNT( DISTINCT - 57 ) + - 95
----
1406
-124

skipif mysql # not compatible
query II rowsort label-2367
SELECT ALL - + 4 + - + 30 * - 47 AS col0, + 29 * + COUNT ( * ) * + - COUNT ( DISTINCT - 57 ) + - 95
----
1406
-124

query I rowsort
SELECT + 2 * + ( - 61 ) + + 46
----
-76

query II rowsort
SELECT 68, + 6 col0
----
68
6

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

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2373
SELECT DISTINCT - NULLIF ( + 83, + MIN( + ( - 84 ) ) ), 29 AS col0
----
-83
29

skipif mysql # not compatible
query II rowsort label-2373
SELECT DISTINCT - NULLIF ( + 83, + MIN ( + ( - 84 ) ) ), 29 AS col0
----
-83
29

onlyif mysql # aggregate syntax: 
query I rowsort label-2374
SELECT ALL ( + 29 ) - + + CASE + - 29 WHEN - - 97 * + 91 + + 83 THEN + MIN( - 65 ) + 78 ELSE - 79 + - 25 END AS col1
----
133

skipif mysql # not compatible
query I rowsort label-2374
SELECT ALL ( + 29 ) - + + CASE + - 29 WHEN - - 97 * + 91 + + 83 THEN + MIN ( - 65 ) + 78 ELSE - 79 + - 25 END AS col1
----
133

query I rowsort
SELECT DISTINCT 16 * + - 11
----
-176

onlyif mysql # aggregate syntax: 
query I rowsort label-2376
SELECT DISTINCT - 9 * + + NULLIF ( - 19, - + 89 * + + COUNT( * ) ) AS col1
----
171

skipif mysql # not compatible
query I rowsort label-2376
SELECT DISTINCT - 9 * + + NULLIF ( - 19, - + 89 * + + COUNT ( * ) ) AS col1
----
171

onlyif mysql # DIV for integer division: 
query I rowsort label-2377
SELECT 36 * 98 DIV + 27
----
130

skipif mysql # not compatible
query I rowsort label-2377
SELECT 36 * 98 / + 27
----
130

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

skipif mysql # not compatible
query I rowsort label-2378
SELECT 26 / 55
----
0

query I rowsort
SELECT 62 * 98 AS col0
----
6076

query I rowsort
SELECT 33 + - + 31
----
2

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2382
SELECT SUM( CASE 29 WHEN - + 96 - 69 THEN + 78 ELSE NULL END ) / - 27 AS col0, COUNT( * ) + + ( - + 59 ) AS col0
----
NULL
-58

skipif mysql # not compatible
query II rowsort label-2382
SELECT SUM ( CASE 29 WHEN - + 96 - 69 THEN + 78 ELSE NULL END ) / - 27 AS col0, COUNT ( * ) + + ( - + 59 ) AS col0
----
NULL
-58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2383
SELECT DISTINCT 3 * + 87 AS col2, + CAST( 74 AS SIGNED ) DIV - COALESCE ( + NULLIF ( + 66, + 44 ), + COUNT( + CASE + 88 WHEN 41 * + + 91 THEN - 8 END ), 41 )
----
261
-1

skipif mysql # not compatible
query II rowsort label-2383
SELECT DISTINCT 3 * + 87 AS col2, + CAST ( 74 AS INTEGER ) / - COALESCE ( + NULLIF ( + 66, + 44 ), + COUNT ( + CASE + 88 WHEN 41 * + + 91 THEN - 8 END ), 41 )
----
261
-1

query I rowsort
SELECT ALL + 2 + - + 44 AS col1
----
-42

query I rowsort
SELECT ALL + ( 31 ) + - 81 * - + 91
----
7402

query I rowsort
SELECT DISTINCT 96 + - + ( - - 59 ) AS col1
----
37

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

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2390
SELECT + 84 DIV - 99
----
0

skipif mysql # not compatible
query I rowsort label-2390
SELECT + 84 / - 99
----
0

query II rowsort
SELECT 45 + 18, - 73 AS col2
----
63
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-2392
SELECT 48 * + - COUNT( 20 ) AS col2
----
-48

skipif mysql # not compatible
query I rowsort label-2392
SELECT 48 * + - COUNT ( 20 ) AS col2
----
-48

query I rowsort
SELECT ALL - - 43 + 60
----
103

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

skipif mysql # not compatible
query I rowsort label-2394
SELECT + SUM ( - - 14 )
----
14

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2395
SELECT ALL 81 + - CAST( NULL AS SIGNED ) + - - 29 * + - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-2395
SELECT ALL 81 + - CAST ( NULL AS INTEGER ) + - - 29 * + - COUNT ( * )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2396
SELECT DISTINCT - + 1 DIV - 56 + + CASE - 89 WHEN 0 * - 7 * - 6 THEN NULL WHEN 47 THEN - + 84 ELSE ( + 75 ) + - - NULLIF ( NULLIF ( - + 73, + ( + - 31 ) + COALESCE ( + 81, 42 ) + - 59 ), + 71 + + + 49 ) * - - 73 - - 20 END AS col0
----
-5234

skipif mysql # not compatible
query I rowsort label-2396
SELECT DISTINCT - + 1 / - 56 + + CASE - 89 WHEN 0 * - 7 * - 6 THEN NULL WHEN 47 THEN - + 84 ELSE ( + 75 ) + - - NULLIF ( NULLIF ( - + 73, + ( + - 31 ) + COALESCE ( + 81, 42 ) + - 59 ), + 71 + + + 49 ) * - - 73 - - 20 END AS col0
----
-5234

onlyif mysql # aggregate syntax: 
query I rowsort label-2397
SELECT 94 * - 78 + - - MAX( + 12 ) + + + 82 + - + 0 col2
----
-7238

skipif mysql # not compatible
query I rowsort label-2397
SELECT 94 * - 78 + - - MAX ( + 12 ) + + + 82 + - + 0 col2
----
-7238

query I rowsort
SELECT ALL - 41 * - 71 + - - 67 col0
----
2978

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2400
SELECT - - ( + 56 ) * + 22 - COUNT( * ) - + 68 * - - 97
----
-5365

skipif mysql # not compatible
query I rowsort label-2400
SELECT - - ( + 56 ) * + 22 - COUNT ( * ) - + 68 * - - 97
----
-5365

onlyif mysql # aggregate syntax: 
query I rowsort label-2401
SELECT + MAX( + 72 ) AS col1
----
72

skipif mysql # not compatible
query I rowsort label-2401
SELECT + MAX ( + 72 ) AS col1
----
72

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2402
SELECT ALL + CASE - 97 WHEN - 44 * - - MAX( + 57 ) THEN + 49 + CAST( ( - 28 ) AS SIGNED ) WHEN + 42 * - 92 THEN - - CAST( NULL AS SIGNED ) END * - 12
----
NULL

skipif mysql # not compatible
query I rowsort label-2402
SELECT ALL + CASE - 97 WHEN - 44 * - - MAX ( + 57 ) THEN + 49 + CAST ( ( - 28 ) AS INTEGER ) WHEN + 42 * - 92 THEN - - CAST ( NULL AS INTEGER ) END * - 12
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2404
SELECT - 51 * - 71 * + COUNT( * ) * + 16 - + 83 * - 17 AS col0
----
59347

skipif mysql # not compatible
query I rowsort label-2404
SELECT - 51 * - 71 * + COUNT ( * ) * + 16 - + 83 * - 17 AS col0
----
59347

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2405
SELECT 43 * + - 27 DIV COUNT( + 51 )
----
-1161

skipif mysql # not compatible
query I rowsort label-2405
SELECT 43 * + - 27 / COUNT ( + 51 )
----
-1161

query I rowsort
SELECT 17 * NULLIF ( 27, - 62 ) AS col2
----
459

query II rowsort
SELECT 21 AS col0, 92
----
21
92

onlyif mysql # CAST syntax: DECIMAL type: DIV for integer division: 
query I rowsort label-2408
SELECT ALL + 32 DIV 33 * + NULLIF ( 57, + 41 DIV - CAST( + 58 AS DECIMAL ) ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-2408
SELECT ALL + 32 / 33 * + NULLIF ( 57, + 41 / - CAST ( + 58 AS REAL ) ) AS col1
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2409
SELECT 33 * COALESCE ( - 54, - ( + ( + 3 ) ) * 49 DIV COUNT( * ) * + 85 * + 2 ) AS col0
----
-1782

skipif mysql # not compatible
query I rowsort label-2409
SELECT 33 * COALESCE ( - 54, - ( + ( + 3 ) ) * 49 / COUNT ( * ) * + 85 * + 2 ) AS col0
----
-1782

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

skipif mysql # not compatible
query I rowsort label-2410
SELECT COUNT ( * ) * - - 84 + + 36 AS col0
----
120

query II rowsort
SELECT 64, 90 AS col0
----
64
90

query I rowsort
SELECT 42 * - + 25
----
-1050

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

skipif mysql # not compatible
query II rowsort label-2413
SELECT COUNT ( * ) + 37 * - 3, ( - - CAST ( NULL AS INTEGER ) ) AS col2
----
-110
NULL

onlyif mysql # aggregate syntax: 
query III rowsort label-2414
SELECT DISTINCT COUNT( * ) AS col2, ( - 52 ) * 88 + - - ( 20 ) AS col0, 52 AS col2
----
1
-4556
52

skipif mysql # not compatible
query III rowsort label-2414
SELECT DISTINCT COUNT ( * ) AS col2, ( - 52 ) * 88 + - - ( 20 ) AS col0, 52 AS col2
----
1
-4556
52

query I rowsort
SELECT ALL 26 + + + 29 + - 8
----
47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2416
SELECT - 55 + - + 99 + 0 * - 66 + + + CAST( + 90 AS SIGNED ) + - 2 AS col1
----
-66

skipif mysql # not compatible
query I rowsort label-2416
SELECT - 55 + - + 99 + 0 * - 66 + + + CAST ( + 90 AS INTEGER ) + - 2 AS col1
----
-66

query I rowsort
SELECT + 82 + + + 54 - + 70 + + 29
----
95

query I rowsort
SELECT ALL - 97 + 49 AS col2
----
-48

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2419
SELECT DISTINCT 70 + - + ( + 34 ) * + 55 + + ( - + ( - CAST( NULL AS SIGNED ) ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-2419
SELECT DISTINCT 70 + - + ( + 34 ) * + 55 + + ( - + ( - CAST ( NULL AS INTEGER ) ) )
----
NULL

query I rowsort
SELECT + 9 * - + 93 + - + ( - + ( + + 17 ) )
----
-820

query I rowsort
SELECT + - 42 + ( 39 ) + - 38
----
-41

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2422
SELECT ALL + CAST( NULL AS SIGNED ) - - 36 - + COUNT( * ) + ( - - 6 ) - - 30 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2422
SELECT ALL + CAST ( NULL AS INTEGER ) - - 36 - + COUNT ( * ) + ( - - 6 ) - - 30 AS col0
----
NULL

query I rowsort
SELECT ALL 70 col1
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-2424
SELECT + 32 * - ( - 17 ) + + 41 + COUNT( * )
----
586

skipif mysql # not compatible
query I rowsort label-2424
SELECT + 32 * - ( - 17 ) + + 41 + COUNT ( * )
----
586

query I rowsort
SELECT DISTINCT - 3 * - - 94 AS col0
----
-282

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2427
SELECT ALL COUNT( * ) * - - 34 * 75 * 17
----
43350

skipif mysql # not compatible
query I rowsort label-2427
SELECT ALL COUNT ( * ) * - - 34 * 75 * 17
----
43350

query I rowsort
SELECT + 84 + - 34 AS col1
----
50

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

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

query I rowsort
SELECT ALL 28 * 52 AS col1
----
1456

query I rowsort
SELECT + 98 + - - 97
----
195

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2432
SELECT 1 DIV - 50 - COUNT( * ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-2432
SELECT 1 / - 50 - COUNT ( * ) AS col0
----
-1

query I rowsort
SELECT - 53 * - 0 + + - 37 col2
----
-37

onlyif mysql # DIV for integer division: 
query I rowsort label-2434
SELECT ALL + - 82 * - + 80 - 26 DIV + 97 AS col1
----
6560

skipif mysql # not compatible
query I rowsort label-2434
SELECT ALL + - 82 * - + 80 - 26 / + 97 AS col1
----
6560

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2437
SELECT DISTINCT + SUM( DISTINCT + 7 ) AS col2
----
7

skipif mysql # not compatible
query I rowsort label-2437
SELECT DISTINCT + SUM ( DISTINCT + 7 ) AS col2
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-2438
SELECT - 40 + 19 + + + COUNT( * ) * 16 - - 97
----
92

skipif mysql # not compatible
query I rowsort label-2438
SELECT - 40 + 19 + + + COUNT ( * ) * 16 - - 97
----
92

query II rowsort
SELECT ALL + 72, - 46 AS col0
----
72
-46

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2441
SELECT DISTINCT + MAX( DISTINCT - 8 ) * ( - + 42 ) col0, COUNT( * )
----
336
1

skipif mysql # not compatible
query II rowsort label-2441
SELECT DISTINCT + MAX ( DISTINCT - 8 ) * ( - + 42 ) col0, COUNT ( * )
----
336
1

query II rowsort
SELECT ALL + 91 AS col0, ( 88 ) AS col1
----
91
88

onlyif mysql # aggregate syntax: 
query I rowsort label-2443
SELECT SUM( 30 ) AS col1
----
30

skipif mysql # not compatible
query I rowsort label-2443
SELECT SUM ( 30 ) AS col1
----
30

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2444
SELECT DISTINCT - NULLIF ( - + COALESCE ( - 91, + 24 + - + 10, + 50 + + - 16 ), COUNT( * ) ) * + 28 + - 24 DIV + 54 * + COUNT( * ) * + 80 + - 47 + + CAST( - 42 AS SIGNED ) * + COUNT( DISTINCT 66 ) * 21 * - 96 AS col2
----
82077

skipif mysql # not compatible
query I rowsort label-2444
SELECT DISTINCT - NULLIF ( - + COALESCE ( - 91, + 24 + - + 10, + 50 + + - 16 ), COUNT ( * ) ) * + 28 + - 24 / + 54 * + COUNT ( * ) * + 80 + - 47 + + CAST ( - 42 AS INTEGER ) * + COUNT ( DISTINCT 66 ) * 21 * - 96 AS col2
----
82077

query II rowsort
SELECT ALL + 16 AS col1, 21 AS col2
----
16
21

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2447
SELECT ALL - 84 * - - COUNT( * ) + - 66 * ( + - 54 ) + 66 AS col1
----
3546

skipif mysql # not compatible
query I rowsort label-2447
SELECT ALL - 84 * - - COUNT ( * ) + - 66 * ( + - 54 ) + 66 AS col1
----
3546

onlyif mysql # aggregate syntax: 
query I rowsort label-2448
SELECT DISTINCT + 1 * + 32 + + COUNT( * ) AS col0
----
33

skipif mysql # not compatible
query I rowsort label-2448
SELECT DISTINCT + 1 * + 32 + + COUNT ( * ) AS col0
----
33

onlyif mysql # DIV for integer division: 
query I rowsort label-2449
SELECT ALL 96 * 49 + - - 48 DIV + ( - 7 )
----
4698

skipif mysql # not compatible
query I rowsort label-2449
SELECT ALL 96 * 49 + - - 48 / + ( - 7 )
----
4698

query I rowsort
SELECT DISTINCT + 29 + - - 48 AS col0
----
77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2451
SELECT DISTINCT CASE + 50 WHEN + - 41 THEN - + CASE - CAST( - COUNT( * ) AS SIGNED ) WHEN - 20 / 19 THEN NULL ELSE 26 END * - 75 END
----
NULL

skipif mysql # not compatible
query I rowsort label-2451
SELECT DISTINCT CASE + 50 WHEN + - 41 THEN - + CASE - CAST ( - COUNT ( * ) AS INTEGER ) WHEN - 20 / 19 THEN NULL ELSE 26 END * - 75 END
----
NULL

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2453
SELECT DISTINCT NULLIF ( + + COALESCE ( + + CAST( + 47 AS SIGNED ), - ( - - 21 ) * + 10 * - CAST( - 84 AS SIGNED ) + + 83 * + - 18 * 84 * + 88 ), - 87 ) AS col0
----
47

skipif mysql # not compatible
query I rowsort label-2453
SELECT DISTINCT NULLIF ( + + COALESCE ( + + CAST ( + 47 AS INTEGER ), - ( - - 21 ) * + 10 * - CAST ( - 84 AS INTEGER ) + + 83 * + - 18 * 84 * + 88 ), - 87 ) AS col0
----
47

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2455
SELECT - COUNT( * ) * MIN( DISTINCT - 0 )
----
0

skipif mysql # not compatible
query I rowsort label-2455
SELECT - COUNT ( * ) * MIN ( DISTINCT - 0 )
----
0

query I rowsort
SELECT + 14 + 52 * + 26 * - - 96
----
129806

query I rowsort
SELECT DISTINCT + 1 + + - 83
----
-82

query II rowsort
SELECT + 64 AS col2, - 91
----
64
-91

query I rowsort
SELECT ALL - 68 * 32 * + 62 * - 15 - - 35 * + 53 * + 45
----
2107155

query II rowsort
SELECT - + 31 col0, - 4
----
-31
-4

onlyif mysql # DIV for integer division: 
query II rowsort label-2461
SELECT ALL - 75, - 1 * + + 69 DIV + 47 + + + 51 AS col0
----
-75
50

skipif mysql # not compatible
query II rowsort label-2461
SELECT ALL - 75, - 1 * + + 69 / + 47 + + + 51 AS col0
----
-75
50

onlyif mysql # aggregate syntax: 
query I rowsort label-2462
SELECT DISTINCT - CASE + 93 WHEN + NULLIF ( 20, 71 ) THEN 70 * - COUNT( * ) - - 94 ELSE + - 49 END - - 18 AS col0
----
67

skipif mysql # not compatible
query I rowsort label-2462
SELECT DISTINCT - CASE + 93 WHEN + NULLIF ( 20, 71 ) THEN 70 * - COUNT ( * ) - - 94 ELSE + - 49 END - - 18 AS col0
----
67

query I rowsort
SELECT - 64 col0
----
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-2464
SELECT ALL SUM( - 2 ) AS col2
----
-2

skipif mysql # not compatible
query I rowsort label-2464
SELECT ALL SUM ( - 2 ) AS col2
----
-2

query I rowsort
SELECT ALL + NULLIF ( - 52, + + 40 ) * + - 29 + - 77
----
1431

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2466
SELECT + 16 + - 55 + - + 61 DIV + COUNT( + 49 ) AS col0
----
-100

skipif mysql # not compatible
query I rowsort label-2466
SELECT + 16 + - 55 + - + 61 / + COUNT ( + 49 ) AS col0
----
-100

query II rowsort
SELECT - 87 AS col0, 17
----
-87
17

query I rowsort
SELECT DISTINCT 3 - + 96 + 0 + + 78 AS col1
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-2469
SELECT - 73 * - ( MIN( ALL - ( 3 ) ) ) * + + COUNT( ALL - 42 ) + 7
----
-212

skipif mysql # not compatible
query I rowsort label-2469
SELECT - 73 * - ( MIN ( ALL - ( 3 ) ) ) * + + COUNT ( ALL - 42 ) + 7
----
-212

onlyif mysql # aggregate syntax: 
query I rowsort label-2470
SELECT + 43 * 54 * - + 46 * + + MAX( + - 34 ) AS col2
----
3631608

skipif mysql # not compatible
query I rowsort label-2470
SELECT + 43 * 54 * - + 46 * + + MAX ( + - 34 ) AS col2
----
3631608

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

query I rowsort
SELECT + + 86 * + 73
----
6278

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

query II rowsort
SELECT ALL + - 88 col2, + 3 + - + 17 col0
----
-88
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-2475
SELECT - 11 + - SUM( - ( 81 ) )
----
70

skipif mysql # not compatible
query I rowsort label-2475
SELECT - 11 + - SUM ( - ( 81 ) )
----
70

query I rowsort
SELECT + 17 * - 37 AS col1
----
-629

onlyif mysql # DIV for integer division: 
query I rowsort label-2477
SELECT + 34 DIV - 39 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2477
SELECT + 34 / - 39 AS col0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2478
SELECT DISTINCT - 50 DIV ( - MIN( ALL + 69 ) ) DIV + 90 * - + 13 + - - 68, 96 DIV ( + 37 ) + - - 16 + + 31 AS col0
----
68
49

skipif mysql # not compatible
query II rowsort label-2478
SELECT DISTINCT - 50 / ( - MIN ( ALL + 69 ) ) / + 90 * - + 13 + - - 68, 96 / ( + 37 ) + - - 16 + + 31 AS col0
----
68
49

onlyif mysql # DIV for integer division: 
query I rowsort label-2479
SELECT ALL + 67 DIV - 59 + 47
----
46

skipif mysql # not compatible
query I rowsort label-2479
SELECT ALL + 67 / - 59 + 47
----
46

query I rowsort
SELECT - 43 * + + 20 - + 30
----
-890

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2482
SELECT - 87 * COUNT( * ) * + 88 * + 94
----
-719664

skipif mysql # not compatible
query I rowsort label-2482
SELECT - 87 * COUNT ( * ) * + 88 * + 94
----
-719664

onlyif mysql # DIV for integer division: 
query II rowsort label-2483
SELECT + 98 DIV + 82, - 15 col0
----
1
-15

skipif mysql # not compatible
query II rowsort label-2483
SELECT + 98 / + 82, - 15 col0
----
1
-15

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2484
SELECT DISTINCT COUNT( * ) * - 45 + - COALESCE ( + ( + 16 ), COUNT( * ) + - 91 - 61 + + + 24 + - 84 ) DIV + 1 + - - COUNT( * ) * - 27 AS col2
----
-88

skipif mysql # not compatible
query I rowsort label-2484
SELECT DISTINCT COUNT ( * ) * - 45 + - COALESCE ( + ( + 16 ), COUNT ( * ) + - 91 - 61 + + + 24 + - 84 ) / + 1 + - - COUNT ( * ) * - 27 AS col2
----
-88

query I rowsort
SELECT ALL 92 * 34 + + 93
----
3221

query I rowsort
SELECT + 4 * - ( - 73 ) - + - 56
----
348

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2487
SELECT CASE 97 WHEN - 48 THEN + 29 + + CAST( - 94 AS SIGNED ) + + - 48 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2487
SELECT CASE 97 WHEN - 48 THEN + 29 + + CAST ( - 94 AS INTEGER ) + + - 48 END AS col0
----
NULL

query I rowsort
SELECT ALL 29 * + 12 * - 10 + - 34 AS col0
----
-3514

query I rowsort
SELECT COALESCE ( 56, + 35 ) AS col2
----
56

query II rowsort
SELECT ALL 49 - - 61 AS col2, 34 AS col0
----
110
34

onlyif mysql # aggregate syntax: 
query II rowsort label-2491
SELECT ( - - 66 ) * + + 45 AS col0, COUNT( * ) AS col0
----
2970
1

skipif mysql # not compatible
query II rowsort label-2491
SELECT ( - - 66 ) * + + 45 AS col0, COUNT ( * ) AS col0
----
2970
1

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

skipif mysql # not compatible
query I rowsort label-2492
SELECT DISTINCT MIN ( - 70 )
----
-70

query I rowsort
SELECT DISTINCT 43 * - - 52 col1
----
2236

onlyif mysql # aggregate syntax: 
query I rowsort label-2494
SELECT 79 + - + CASE - SUM( DISTINCT + 4 ) WHEN - + 41 * + 98 + + + 43 + - - COUNT( * ) + - + CASE - 5 WHEN + + 13 THEN - COALESCE ( 70, + 0, + 31, - ( 88 ) ) WHEN + - 35 THEN - - NULLIF ( - - 9, + COUNT( ALL - 35 ) ) * 10 WHEN 65 THEN - + 50 END THEN + - 99 WHEN - 57 THEN NULL WHEN 47 * + COUNT( * ) THEN + 36 ELSE + 9 END - COUNT( * ) * + 12
----
58

skipif mysql # not compatible
query I rowsort label-2494
SELECT 79 + - + CASE - SUM ( DISTINCT + 4 ) WHEN - + 41 * + 98 + + + 43 + - - COUNT ( * ) + - + CASE - 5 WHEN + + 13 THEN - COALESCE ( 70, + 0, + 31, - ( 88 ) ) WHEN + - 35 THEN - - NULLIF ( - - 9, + COUNT ( ALL - 35 ) ) * 10 WHEN 65 THEN - + 50 END THEN + - 99 WHEN - 57 THEN NULL WHEN 47 * + COUNT ( * ) THEN + 36 ELSE + 9 END - COUNT ( * ) * + 12
----
58

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2495
SELECT MIN( DISTINCT - 78 ) DIV 28 col2, + ( - 15 ) + + - 12 AS col0
----
-2
-27

skipif mysql # not compatible
query II rowsort label-2495
SELECT MIN ( DISTINCT - 78 ) / 28 col2, + ( - 15 ) + + - 12 AS col0
----
-2
-27

query I rowsort
SELECT DISTINCT - 54 * - 61 col2
----
3294

query I rowsort
SELECT ALL + NULLIF ( + 76, - + 82 * + 23 )
----
76

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2498
SELECT MAX( DISTINCT + 32 ) AS col2, - CASE NULLIF ( + 84, - 59 * 74 ) WHEN COUNT( * ) THEN NULL WHEN - - 97 THEN NULL ELSE - 8 DIV + 36 + - 1 + + 65 - - 74 * - 60 END
----
32
4376

skipif mysql # not compatible
query II rowsort label-2498
SELECT MAX ( DISTINCT + 32 ) AS col2, - CASE NULLIF ( + 84, - 59 * 74 ) WHEN COUNT ( * ) THEN NULL WHEN - - 97 THEN NULL ELSE - 8 / + 36 + - 1 + + 65 - - 74 * - 60 END
----
32
4376

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2500
SELECT ALL - SUM( DISTINCT - + 70 )
----
70

skipif mysql # not compatible
query I rowsort label-2500
SELECT ALL - SUM ( DISTINCT - + 70 )
----
70

query II rowsort
SELECT ALL + + 90 * - - 42, 41 col2
----
3780
41

onlyif mysql # aggregate syntax: 
query I rowsort label-2502
SELECT 71 + + COUNT( * ) AS col2
----
72

skipif mysql # not compatible
query I rowsort label-2502
SELECT 71 + + COUNT ( * ) AS col2
----
72

query I rowsort
SELECT DISTINCT + - 40 + - 74
----
-114

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2504
SELECT ALL - + CASE - + 79 WHEN 48 + CASE + 24 WHEN + 87 THEN NULL WHEN SUM( ALL 34 ) THEN + 58 END * + + 46 - + COUNT( * ) * + + 33 + + + COALESCE ( - + 82, + 77 - + - 52 ) + 50 + COUNT( * ) * - 93 THEN NULL WHEN + 68 THEN - - 92 + - - 9 ELSE NULL END + 80 / - CAST( NULL AS DECIMAL ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2504
SELECT ALL - + CASE - + 79 WHEN 48 + CASE + 24 WHEN + 87 THEN NULL WHEN SUM ( ALL 34 ) THEN + 58 END * + + 46 - + COUNT ( * ) * + + 33 + + + COALESCE ( - + 82, + 77 - + - 52 ) + 50 + COUNT ( * ) * - 93 THEN NULL WHEN + 68 THEN - - 92 + - - 9 ELSE NULL END + 80 / - CAST ( NULL AS REAL ) AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2505
SELECT CASE - CASE + + 74 WHEN 18 * + - 79 THEN + 7 WHEN - + 9 + 12 * - - COUNT( * ) THEN - 51 * - 95 END WHEN + MIN( ALL + 68 ) * + MIN( - 52 ) - - MIN( + CASE - 78 WHEN - 9 THEN 6 * - + 70 / - + 13 * + - 21 + - 35 WHEN - + 27 THEN NULL WHEN + 17 + 47 + + 16 / + 97 THEN NULL END ) THEN ( + CAST( NULL AS SIGNED ) ) / NULLIF ( - AVG ( ALL - 90 ) * 92, + 1 ) + ( 42 ) WHEN - NULLIF ( 8, 45 ) THEN NULL WHEN - 43 THEN NULL END / COALESCE ( - ( + 23 ), - 58 + 54 ) + CAST( 96 AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-2505
SELECT CASE - CASE + + 74 WHEN 18 * + - 79 THEN + 7 WHEN - + 9 + 12 * - - COUNT ( * ) THEN - 51 * - 95 END WHEN + MIN ( ALL + 68 ) * + MIN ( - 52 ) - - MIN ( + CASE - 78 WHEN - 9 THEN 6 * - + 70 / - + 13 * + - 21 + - 35 WHEN - + 27 THEN NULL WHEN + 17 + 47 + + 16 / + 97 THEN NULL END ) THEN ( + CAST ( NULL AS INTEGER ) ) / NULLIF ( - AVG ( ALL - 90 ) * 92, + 1 ) + ( 42 ) WHEN - NULLIF ( 8, 45 ) THEN NULL WHEN - 43 THEN NULL END / COALESCE ( - ( + 23 ), - 58 + 54 ) + CAST ( 96 AS INTEGER )
----
NULL

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

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

query II rowsort
SELECT + 4 AS col2, 80 + - 99
----
4
-19

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2509
SELECT COUNT( + CAST( - 71 AS SIGNED ) ) - + - 24
----
25

skipif mysql # not compatible
query I rowsort label-2509
SELECT COUNT ( + CAST ( - 71 AS INTEGER ) ) - + - 24
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-2510
SELECT DISTINCT + 1 + + - 48 + - COUNT( - 26 )
----
-48

skipif mysql # not compatible
query I rowsort label-2510
SELECT DISTINCT + 1 + + - 48 + - COUNT ( - 26 )
----
-48

query II rowsort
SELECT 53 AS col0, + 93
----
53
93

onlyif mysql # aggregate syntax: 
query I rowsort label-2512
SELECT ALL 45 + COUNT( * ) + - 73 AS col2
----
-27

skipif mysql # not compatible
query I rowsort label-2512
SELECT ALL 45 + COUNT ( * ) + - 73 AS col2
----
-27

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2514
SELECT ALL - 19 DIV COALESCE ( 55, - + 98 - - MAX( + + 30 ) ) col2
----
0

skipif mysql # not compatible
query I rowsort label-2514
SELECT ALL - 19 / COALESCE ( 55, - + 98 - - MAX ( + + 30 ) ) col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2515
SELECT 71 + + MAX( DISTINCT + 48 ) + - 24 col2
----
95

skipif mysql # not compatible
query I rowsort label-2515
SELECT 71 + + MAX ( DISTINCT + 48 ) + - 24 col2
----
95

query I rowsort
SELECT ALL 39 * + - 15 col0
----
-585

onlyif mysql # aggregate syntax: 
query II rowsort label-2517
SELECT 72, + COUNT( * ) AS col0
----
72
1

skipif mysql # not compatible
query II rowsort label-2517
SELECT 72, + COUNT ( * ) AS col0
----
72
1

query I rowsort
SELECT DISTINCT 50 + 75 AS col1
----
125

onlyif mysql # aggregate syntax: 
query I rowsort label-2519
SELECT ALL 9 + + COUNT( * )
----
10

skipif mysql # not compatible
query I rowsort label-2519
SELECT ALL 9 + + COUNT ( * )
----
10

query II rowsort
SELECT + 80 AS col1, 35 col0
----
80
35

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2521
SELECT CAST( NULL AS SIGNED ) * + - 46 + + 69 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2521
SELECT CAST ( NULL AS INTEGER ) * + - 46 + + 69 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2522
SELECT ALL 85 - SUM( DISTINCT ( 62 ) ) * + + COALESCE ( ( - - ( COUNT( * ) ) ), - COUNT( * ) * + - ( - - 13 ) + COUNT( * ) ) - - - COUNT( * ) AS col0
----
22

skipif mysql # not compatible
query I rowsort label-2522
SELECT ALL 85 - SUM ( DISTINCT ( 62 ) ) * + + COALESCE ( ( - - ( COUNT ( * ) ) ), - COUNT ( * ) * + - ( - - 13 ) + COUNT ( * ) ) - - - COUNT ( * ) AS col0
----
22

query I rowsort
SELECT 61 * - - 14 AS col2
----
854

onlyif mysql # aggregate syntax: 
query I rowsort label-2524
SELECT COUNT( + 8 ) * + 80
----
80

skipif mysql # not compatible
query I rowsort label-2524
SELECT COUNT ( + 8 ) * + 80
----
80

onlyif mysql # aggregate syntax: 
query II rowsort label-2525
SELECT ALL - 32, COUNT( * ) + - ( - 36 ) AS col0
----
-32
37

skipif mysql # not compatible
query II rowsort label-2525
SELECT ALL - 32, COUNT ( * ) + - ( - 36 ) AS col0
----
-32
37

query I rowsort
SELECT 38 * - 76 + - + 37 col2
----
-2925

onlyif mysql # aggregate syntax: 
query II rowsort label-2527
SELECT ALL - COUNT( * ) AS col1, 87
----
-1
87

skipif mysql # not compatible
query II rowsort label-2527
SELECT ALL - COUNT ( * ) AS col1, 87
----
-1
87

query II rowsort
SELECT DISTINCT - 44, + 23 AS col0
----
-44
23

query II rowsort
SELECT + 44 AS col2, 19 * + 37 + 0 + 25
----
44
728

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2530
SELECT ALL 49 - + COUNT( * ) DIV + 10 - - 38 col1
----
87

skipif mysql # not compatible
query I rowsort label-2530
SELECT ALL 49 - + COUNT ( * ) / + 10 - - 38 col1
----
87

query I rowsort
SELECT DISTINCT 8 * + 90 AS col0
----
720

query II rowsort
SELECT ALL - 57 AS col1, + 85
----
-57
85

onlyif mysql # aggregate syntax: 
query I rowsort label-2533
SELECT ALL 32 - + 23 + + 31 * - MIN( - - 90 )
----
-2781

skipif mysql # not compatible
query I rowsort label-2533
SELECT ALL 32 - + 23 + + 31 * - MIN ( - - 90 )
----
-2781

query I rowsort
SELECT 15 * - 48 AS col2
----
-720

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2535
SELECT COUNT( * ) * 5 + + + 33 + + 7 + - CASE - 18 WHEN + 50 * - ( - COALESCE ( 5, COUNT( * ) * 48 - - 88 * + - 84 ) ) * + ( - 92 ) * - 28 - - + 3 + - ( + SUM( + - 54 ) ) THEN + NULLIF ( + 79, - 39 * + CAST( - ( - 15 ) AS SIGNED ) * 63 + - 78 ) + COUNT( * ) WHEN - 8 + - 96 THEN NULL END * + 34 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2535
SELECT COUNT ( * ) * 5 + + + 33 + + 7 + - CASE - 18 WHEN + 50 * - ( - COALESCE ( 5, COUNT ( * ) * 48 - - 88 * + - 84 ) ) * + ( - 92 ) * - 28 - - + 3 + - ( + SUM ( + - 54 ) ) THEN + NULLIF ( + 79, - 39 * + CAST ( - ( - 15 ) AS INTEGER ) * 63 + - 78 ) + COUNT ( * ) WHEN - 8 + - 96 THEN NULL END * + 34 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2536
SELECT ALL MAX( ALL + 38 ) AS col1
----
38

skipif mysql # not compatible
query I rowsort label-2536
SELECT ALL MAX ( ALL + 38 ) AS col1
----
38

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2537
SELECT ( 85 ) * - 52 * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-2537
SELECT ( 85 ) * - 52 * - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT + ( - + 29 ) AS col2
----
-29

query I rowsort
SELECT ALL - ( - + 74 )
----
74

query II rowsort
SELECT - + 71 AS col0, - 48 + + 45
----
-71
-3

query I rowsort
SELECT 15 + - 24
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-2542
SELECT 17 * - 75 * + CASE 98 WHEN - AVG ( + - 7 ) * - 34 THEN + - MAX( + 22 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-2542
SELECT 17 * - 75 * + CASE 98 WHEN - AVG ( + - 7 ) * - 34 THEN + - MAX ( + 22 ) END
----
NULL

query I rowsort
SELECT ALL 34 * - 10
----
-340

query I rowsort
SELECT ALL - - 17 * + - 21 AS col1
----
-357

onlyif mysql # DIV for integer division: 
query II rowsort label-2545
SELECT 54, 43 DIV + + 24 col0
----
54
1

skipif mysql # not compatible
query II rowsort label-2545
SELECT 54, 43 / + + 24 col0
----
54
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2546
SELECT ALL 61 * + SUM( DISTINCT - 9 )
----
-549

skipif mysql # not compatible
query I rowsort label-2546
SELECT ALL 61 * + SUM ( DISTINCT - 9 )
----
-549

query I rowsort
SELECT DISTINCT - 31 + + - 0 AS col0
----
-31

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2548
SELECT ALL + 72 + CASE + - CASE - 38 WHEN 85 THEN + - 79 ELSE + NULLIF ( + + 56, - ( - - 34 ) ) END WHEN - CAST( - 86 AS SIGNED ) THEN + - ( CASE + + 2 WHEN + 68 THEN - 90 * ( - CASE CASE 26 WHEN + COUNT( * ) + - NULLIF ( + 79, + 43 ) THEN 49 WHEN - 28 THEN NULL END WHEN 76 THEN + 69 WHEN 98 * 68 THEN NULL END ) END ) WHEN - 61 * + 97 THEN NULL END + COUNT( * ) * - 55
----
NULL

skipif mysql # not compatible
query I rowsort label-2548
SELECT ALL + 72 + CASE + - CASE - 38 WHEN 85 THEN + - 79 ELSE + NULLIF ( + + 56, - ( - - 34 ) ) END WHEN - CAST ( - 86 AS INTEGER ) THEN + - ( CASE + + 2 WHEN + 68 THEN - 90 * ( - CASE CASE 26 WHEN + COUNT ( * ) + - NULLIF ( + 79, + 43 ) THEN 49 WHEN - 28 THEN NULL END WHEN 76 THEN + 69 WHEN 98 * 68 THEN NULL END ) END ) WHEN - 61 * + 97 THEN NULL END + COUNT ( * ) * - 55
----
NULL

query II rowsort
SELECT 91, + 62 AS col1
----
91
62

onlyif mysql # aggregate syntax: 
query I rowsort label-2550
SELECT - + MIN( 42 ) AS col1
----
-42

skipif mysql # not compatible
query I rowsort label-2550
SELECT - + MIN ( 42 ) AS col1
----
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-2551
SELECT + 67 * - COUNT( * )
----
-67

skipif mysql # not compatible
query I rowsort label-2551
SELECT + 67 * - COUNT ( * )
----
-67

query I rowsort
SELECT 63 * 8 AS col1
----
504

onlyif mysql # DIV for integer division: 
query I rowsort label-2553
SELECT DISTINCT - 81 DIV 31 * - 40 AS col2
----
80

skipif mysql # not compatible
query I rowsort label-2553
SELECT DISTINCT - 81 / 31 * - 40 AS col2
----
80

query I rowsort
SELECT ALL - 23 + + 90 + + 8 AS col0
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-2555
SELECT ALL + 2 * + 57 + CASE - - 15 WHEN 23 THEN COUNT( * ) WHEN + ( + + 45 ) * + COALESCE ( + 33, - - 40, + 51 ) THEN NULL WHEN - 20 + - 42 THEN - 0 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2555
SELECT ALL + 2 * + 57 + CASE - - 15 WHEN 23 THEN COUNT ( * ) WHEN + ( + + 45 ) * + COALESCE ( + 33, - - 40, + 51 ) THEN NULL WHEN - 20 + - 42 THEN - 0 END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2556
SELECT 52 * - MIN( DISTINCT + 29 )
----
-1508

skipif mysql # not compatible
query I rowsort label-2556
SELECT 52 * - MIN ( DISTINCT + 29 )
----
-1508

onlyif mysql # aggregate syntax: 
query I rowsort label-2557
SELECT NULLIF ( - 54, COUNT( * ) ) AS col1
----
-54

skipif mysql # not compatible
query I rowsort label-2557
SELECT NULLIF ( - 54, COUNT ( * ) ) AS col1
----
-54

query I rowsort
SELECT ALL - NULLIF ( + - 93, - 2 ) AS col0
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-2559
SELECT DISTINCT 3 * - 5 + + - MIN( DISTINCT - ( + 40 ) ) AS col0
----
25

skipif mysql # not compatible
query I rowsort label-2559
SELECT DISTINCT 3 * - 5 + + - MIN ( DISTINCT - ( + 40 ) ) AS col0
----
25

onlyif mysql # DIV for integer division: 
query I rowsort label-2560
SELECT ALL 77 * - - 64 - - - 15 DIV + 20 AS col2
----
4928

skipif mysql # not compatible
query I rowsort label-2560
SELECT ALL 77 * - - 64 - - - 15 / + 20 AS col2
----
4928

query I rowsort
SELECT + 96 * + ( - 43 ) - - + 45
----
-4083

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2562
SELECT - ( COUNT( * ) ) + + + COALESCE ( - 72, MAX( DISTINCT + - 20 ) ) * - 23, CAST( + - 46 AS SIGNED ) + + 24 + 93 * - + ( - 53 ) col2
----
1655
4907

skipif mysql # not compatible
query II rowsort label-2562
SELECT - ( COUNT ( * ) ) + + + COALESCE ( - 72, MAX ( DISTINCT + - 20 ) ) * - 23, CAST ( + - 46 AS INTEGER ) + + 24 + 93 * - + ( - 53 ) col2
----
1655
4907

query I rowsort
SELECT ALL + ( + + 97 ) AS col0
----
97

query I rowsort
SELECT ALL + 70 * + 70 - - 55 AS col0
----
4955

onlyif mysql # DIV for integer division: 
query II rowsort label-2565
SELECT + NULLIF ( + 99, + + 81 ) DIV + 18 AS col0, 43 * - 80 + 32
----
5
-3408

skipif mysql # not compatible
query II rowsort label-2565
SELECT + NULLIF ( + 99, + + 81 ) / + 18 AS col0, 43 * - 80 + 32
----
5
-3408

onlyif mysql # aggregate syntax: 
query I rowsort label-2566
SELECT MIN( + 79 ) AS col0
----
79

skipif mysql # not compatible
query I rowsort label-2566
SELECT MIN ( + 79 ) AS col0
----
79

onlyif mysql # DIV for integer division: 
query I rowsort label-2567
SELECT DISTINCT - 71 DIV - 42
----
1

skipif mysql # not compatible
query I rowsort label-2567
SELECT DISTINCT - 71 / - 42
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2568
SELECT + - NULLIF ( - + 24, + 59 * - 21 + - 56 + - CASE - 12 WHEN - 31 / - MAX( 39 ) + - NULLIF ( COUNT( * ), - NULLIF ( 56, + + NULLIF ( + - 53, + 47 ) ) + 16 ) - - 69 * - 81 THEN 4 * - - CAST( NULL AS SIGNED ) + 65 * + 68 / - 15 - + NULLIF ( - - 70, - 1 * + COUNT( * ) / - AVG ( ALL + 6 ) + 66 * + 11 ) * - 62 ELSE 63 END ) + - 90
----
-66

skipif mysql # not compatible
query I rowsort label-2568
SELECT + - NULLIF ( - + 24, + 59 * - 21 + - 56 + - CASE - 12 WHEN - 31 / - MAX ( 39 ) + - NULLIF ( COUNT ( * ), - NULLIF ( 56, + + NULLIF ( + - 53, + 47 ) ) + 16 ) - - 69 * - 81 THEN 4 * - - CAST ( NULL AS INTEGER ) + 65 * + 68 / - 15 - + NULLIF ( - - 70, - 1 * + COUNT ( * ) / - AVG ( ALL + 6 ) + 66 * + 11 ) * - 62 ELSE 63 END ) + - 90
----
-66

query I rowsort
SELECT ALL - 20 * 84 AS col2
----
-1680

onlyif mysql # DIV for integer division: 
query II rowsort label-2570
SELECT - + 14 DIV - + 20 AS col1, - 97 AS col2
----
0
-97

skipif mysql # not compatible
query II rowsort label-2570
SELECT - + 14 / - + 20 AS col1, - 97 AS col2
----
0
-97

query I rowsort
SELECT + 82 * 47 + ( + 92 )
----
3946

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2572
SELECT - CAST( NULL AS DECIMAL ) * + 75
----
NULL

skipif mysql # not compatible
query I rowsort label-2572
SELECT - CAST ( NULL AS REAL ) * + 75
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2573
SELECT - - 39 + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-2573
SELECT - - 39 + CAST ( NULL AS REAL )
----
NULL

query I rowsort
SELECT ALL 65 * + ( - + 42 )
----
-2730

query I rowsort
SELECT NULLIF ( + NULLIF ( 4, - 84 * - ( + 92 ) / + - 25 + + 34 ), - 52 ) AS col0
----
4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2576
SELECT - - 18 * + ( CASE + + COALESCE ( - - 91, + - COUNT( DISTINCT + - 54 ), + + CAST( - 50 AS SIGNED ) * 44 + - + ( 55 ) + - - CAST( NULL AS DECIMAL ) / 53 + + 44 / 73 * + SUM( - + 29 ) + 30 ) WHEN + 68 THEN - 77 END ) + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-2576
SELECT - - 18 * + ( CASE + + COALESCE ( - - 91, + - COUNT ( DISTINCT + - 54 ), + + CAST ( - 50 AS INTEGER ) * 44 + - + ( 55 ) + - - CAST ( NULL AS REAL ) / 53 + + 44 / 73 * + SUM ( - + 29 ) + 30 ) WHEN + 68 THEN - 77 END ) + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2577
SELECT + CAST( NULL AS SIGNED ) / 41 + 41 * + COUNT( * ) + 51 - + 2
----
NULL

skipif mysql # not compatible
query I rowsort label-2577
SELECT + CAST ( NULL AS INTEGER ) / 41 + 41 * + COUNT ( * ) + 51 - + 2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2578
SELECT DISTINCT - MAX( + 56 )
----
-56

skipif mysql # not compatible
query I rowsort label-2578
SELECT DISTINCT - MAX ( + 56 )
----
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-2579
SELECT ALL 54 + - COUNT( * ) * 44 + COALESCE ( 88, 72 + + - 82, - + 69 ) + CASE - + 16 WHEN 71 + - 40 THEN + 46 - 55 * 69 * - 66 + + 25 END + - 13 * + 53 * - 70 / + + 32 - + COUNT( + - 88 ) * ( + 95 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2579
SELECT ALL 54 + - COUNT ( * ) * 44 + COALESCE ( 88, 72 + + - 82, - + 69 ) + CASE - + 16 WHEN 71 + - 40 THEN + 46 - 55 * 69 * - 66 + + 25 END + - 13 * + 53 * - 70 / + + 32 - + COUNT ( + - 88 ) * ( + 95 )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2580
SELECT + COUNT( * ) + + 97 DIV - 29
----
-2

skipif mysql # not compatible
query I rowsort label-2580
SELECT + COUNT ( * ) + + 97 / - 29
----
-2

onlyif mysql # aggregate syntax: 
query II rowsort label-2581
SELECT - 21 - - + COALESCE ( - + 97, - - 11 + + 6, - - 1, 61 ) AS col2, + COALESCE ( + COUNT( * ), - 77 ) AS col2
----
-118
1

skipif mysql # not compatible
query II rowsort label-2581
SELECT - 21 - - + COALESCE ( - + 97, - - 11 + + 6, - - 1, 61 ) AS col2, + COALESCE ( + COUNT ( * ), - 77 ) AS col2
----
-118
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2582
SELECT DISTINCT SUM( ALL + 20 ) AS col2
----
20

skipif mysql # not compatible
query I rowsort label-2582
SELECT DISTINCT SUM ( ALL + 20 ) AS col2
----
20

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2583
SELECT ALL CAST( + - 39 AS SIGNED ) * 0 + - 90 + + 69 * COUNT( * ) + - - 72 AS col2, + 40 + 52
----
51
92

skipif mysql # not compatible
query II rowsort label-2583
SELECT ALL CAST ( + - 39 AS INTEGER ) * 0 + - 90 + + 69 * COUNT ( * ) + - - 72 AS col2, + 40 + 52
----
51
92

onlyif mysql # aggregate syntax: 
query II rowsort label-2584
SELECT - 34 * NULLIF ( + + MAX( DISTINCT 10 ), + 43 * + 31 + - CASE - + 12 WHEN - 89 THEN + COUNT( * ) END ) AS col0, - 1 * 96 AS col2
----
-340
-96

skipif mysql # not compatible
query II rowsort label-2584
SELECT - 34 * NULLIF ( + + MAX ( DISTINCT 10 ), + 43 * + 31 + - CASE - + 12 WHEN - 89 THEN + COUNT ( * ) END ) AS col0, - 1 * 96 AS col2
----
-340
-96

query I rowsort
SELECT - ( - 53 )
----
53

query II rowsort
SELECT DISTINCT 3 col2, - 91 * 69 - + 76 AS col2
----
3
-6355

onlyif mysql # aggregate syntax: 
query II rowsort label-2587
SELECT ALL NULLIF ( COUNT( * ), - + 12 ) * 65 * - - 60 AS col2, + COUNT( * ) * 41
----
3900
41

skipif mysql # not compatible
query II rowsort label-2587
SELECT ALL NULLIF ( COUNT ( * ), - + 12 ) * 65 * - - 60 AS col2, + COUNT ( * ) * 41
----
3900
41

query I rowsort
SELECT DISTINCT CASE + 82 WHEN - + ( + 91 ) THEN 16 + 14 * - - 77 ELSE - 45 END
----
-45

query I rowsort
SELECT DISTINCT 75 * + 95 AS col2
----
7125

onlyif mysql # aggregate syntax: 
query I rowsort label-2590
SELECT ALL 34 - - + COUNT( * ) * + ( + - 83 ) * + 0 AS col1
----
34

skipif mysql # not compatible
query I rowsort label-2590
SELECT ALL 34 - - + COUNT ( * ) * + ( + - 83 ) * + 0 AS col1
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-2591
SELECT + COUNT( * ) * 96 AS col2
----
96

skipif mysql # not compatible
query I rowsort label-2591
SELECT + COUNT ( * ) * 96 AS col2
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-2592
SELECT + 92 + + COUNT( * ) - - 12 + + 17
----
122

skipif mysql # not compatible
query I rowsort label-2592
SELECT + 92 + + COUNT ( * ) - - 12 + + 17
----
122

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2593
SELECT - CAST( + 75 AS SIGNED ) * - 42
----
3150

skipif mysql # not compatible
query I rowsort label-2593
SELECT - CAST ( + 75 AS INTEGER ) * - 42
----
3150

onlyif mysql # DIV for integer division: 
query I rowsort label-2594
SELECT ALL + 56 DIV + 22
----
2

skipif mysql # not compatible
query I rowsort label-2594
SELECT ALL + 56 / + 22
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-2595
SELECT + 29 * - - 12 * + 10 + - COUNT( * ) * - SUM( ALL - 63 )
----
3417

skipif mysql # not compatible
query I rowsort label-2595
SELECT + 29 * - - 12 * + 10 + - COUNT ( * ) * - SUM ( ALL - 63 )
----
3417

query I rowsort
SELECT - ( - 43 ) * - - ( 52 )
----
2236

onlyif mysql # aggregate syntax: 
query I rowsort label-2597
SELECT - MIN( ALL + 59 ) * 39 * + 75 + + + 71
----
-172504

skipif mysql # not compatible
query I rowsort label-2597
SELECT - MIN ( ALL + 59 ) * 39 * + 75 + + + 71
----
-172504

query I rowsort
SELECT ALL + 57 / + CASE + 14 WHEN 89 THEN 22 - 38 + 85 / - 40 END AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2599
SELECT + COUNT( ALL - 62 ) / - 84 * + - CAST( NULL AS SIGNED ) + - ( + - 45 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2599
SELECT + COUNT ( ALL - 62 ) / - 84 * + - CAST ( NULL AS INTEGER ) + - ( + - 45 )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2600
SELECT ALL + CAST( + - 69 AS SIGNED ) AS col0
----
-69

skipif mysql # not compatible
query I rowsort label-2600
SELECT ALL + CAST ( + - 69 AS INTEGER ) AS col0
----
-69

query I rowsort
SELECT DISTINCT + ( 26 )
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-2602
SELECT ALL - 85 * - COUNT( * ) AS col0
----
85

skipif mysql # not compatible
query I rowsort label-2602
SELECT ALL - 85 * - COUNT ( * ) AS col0
----
85

query I rowsort
SELECT - 32 * 36 col0
----
-1152

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2604
SELECT ALL + CAST( - 7 AS SIGNED ) AS col2
----
-7

skipif mysql # not compatible
query I rowsort label-2604
SELECT ALL + CAST ( - 7 AS INTEGER ) AS col2
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-2605
SELECT ALL + MIN( DISTINCT 23 )
----
23

skipif mysql # not compatible
query I rowsort label-2605
SELECT ALL + MIN ( DISTINCT 23 )
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-2606
SELECT - + 52 + - 2 - - 3 + + 1 + 90 + - 38 * + COUNT( * ) AS col0
----
2

skipif mysql # not compatible
query I rowsort label-2606
SELECT - + 52 + - 2 - - 3 + + 1 + 90 + - 38 * + COUNT ( * ) AS col0
----
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2607
SELECT DISTINCT + CAST( NULL AS SIGNED ) * - + COUNT( * ) * 71 + + 80 * - - 58 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2607
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * - + COUNT ( * ) * 71 + + 80 * - - 58 AS col1
----
NULL

query I rowsort
SELECT ALL + CASE + 36 WHEN + - 93 THEN NULL ELSE + - 98 END col0
----
-98

query I rowsort
SELECT + ( - - 82 )
----
82

query I rowsort
SELECT ALL + ( 61 ) * 91 + - 44
----
5507

query I rowsort
SELECT ALL 62 * + + 2 + 27 + - - 27 AS col1
----
178

onlyif mysql # aggregate syntax: 
query I rowsort label-2612
SELECT + 54 * - ( + COUNT( * ) ) + 14 + - 96 + + + COUNT( * )
----
-135

skipif mysql # not compatible
query I rowsort label-2612
SELECT + 54 * - ( + COUNT ( * ) ) + 14 + - 96 + + + COUNT ( * )
----
-135

query I rowsort
SELECT DISTINCT - 49 * - - 55 + + + 59 + + 65 AS col0
----
-2571

query II rowsort
SELECT - 18 AS col2, + 51 col0
----
-18
51

query I rowsort
SELECT + 82 + + + ( + 43 ) AS col2
----
125

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2616
SELECT ALL + + 11 * + 30 + - + CAST( + - 92 AS SIGNED ) * MAX( - - 66 ) - - + 36 + ( + MIN( + ( - CAST( NULL AS SIGNED ) ) ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-2616
SELECT ALL + + 11 * + 30 + - + CAST ( + - 92 AS INTEGER ) * MAX ( - - 66 ) - - + 36 + ( + MIN ( + ( - CAST ( NULL AS INTEGER ) ) ) )
----
NULL

query II rowsort
SELECT - - 26, 86 * 32 col1
----
26
2752

query II rowsort
SELECT + 79 col2, + ( - 61 )
----
79
-61

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2619
SELECT - 2 AS col1, - CAST( - 48 AS SIGNED ) + + 28 - 57 * 6 * + + 22 * - - 75
----
-2
-564224

skipif mysql # not compatible
query II rowsort label-2619
SELECT - 2 AS col1, - CAST ( - 48 AS INTEGER ) + + 28 - 57 * 6 * + + 22 * - - 75
----
-2
-564224

query II rowsort
SELECT - - 16, - 78 AS col0
----
16
-78

query I rowsort
SELECT ALL 79 * + 39 AS col2
----
3081

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2622
SELECT - + 76 DIV + - 98 + - - CASE + 36 WHEN - 82 + + - 25 THEN NULL WHEN - + 94 + - + 72 THEN - - 56 WHEN + + COUNT( * ) * + + 61 * + COUNT( * ) DIV - MIN( ALL - 10 ) THEN NULL ELSE 89 END - - - 65 AS col0
----
24

skipif mysql # not compatible
query I rowsort label-2622
SELECT - + 76 / + - 98 + - - CASE + 36 WHEN - 82 + + - 25 THEN NULL WHEN - + 94 + - + 72 THEN - - 56 WHEN + + COUNT ( * ) * + + 61 * + COUNT ( * ) / - MIN ( ALL - 10 ) THEN NULL ELSE 89 END - - - 65 AS col0
----
24

query I rowsort
SELECT + + 70 + + - NULLIF ( 94, - 3 ) AS col2
----
-24

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2624
SELECT DISTINCT + CAST( - 62 AS SIGNED ) + + NULLIF ( ( - COUNT( * ) ), - + 6 * + 5 ) + 82 DIV 84 AS col2
----
-63

skipif mysql # not compatible
query I rowsort label-2624
SELECT DISTINCT + CAST ( - 62 AS INTEGER ) + + NULLIF ( ( - COUNT ( * ) ), - + 6 * + 5 ) + 82 / 84 AS col2
----
-63

query I rowsort
SELECT DISTINCT + + 41 * - 54
----
-2214

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2626
SELECT ALL - 90 + 1 * - CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2626
SELECT ALL - 90 + 1 * - CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT DISTINCT - 79 * - 27 * 11 * NULLIF ( - 48, + - 85 / + - 78 + + - 6 + - 95 ) AS col2
----
-1126224

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2628
SELECT ALL CAST( + ( + 43 ) AS SIGNED )
----
43

skipif mysql # not compatible
query I rowsort label-2628
SELECT ALL CAST ( + ( + 43 ) AS INTEGER )
----
43

query I rowsort
SELECT ALL 34 - 56 AS col2
----
-22

query II rowsort
SELECT - 40 * - + 86 AS col2, - 7 AS col0
----
3440
-7

query I rowsort
SELECT - NULLIF ( 69, + - 34 )
----
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-2632
SELECT + 16 - - COUNT( * ) AS col2
----
17

skipif mysql # not compatible
query I rowsort label-2632
SELECT + 16 - - COUNT ( * ) AS col2
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-2633
SELECT SUM( ALL 66 ) * - 66
----
-4356

skipif mysql # not compatible
query I rowsort label-2633
SELECT SUM ( ALL 66 ) * - 66
----
-4356

query II rowsort
SELECT ALL 65, 27 AS col1
----
65
27

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2635
SELECT ( - ( + COUNT( * ) ) ) * - - COUNT( - CAST( NULL AS SIGNED ) )
----
0

skipif mysql # not compatible
query I rowsort label-2635
SELECT ( - ( + COUNT ( * ) ) ) * - - COUNT ( - CAST ( NULL AS INTEGER ) )
----
0

query II rowsort
SELECT - 18, - 18 AS col2
----
-18
-18

query II rowsort
SELECT DISTINCT 73, 67 AS col2
----
73
67

onlyif mysql # aggregate syntax: 
query I rowsort label-2638
SELECT ALL MIN( DISTINCT CASE - 60 WHEN - 41 THEN - 24 ELSE NULL END ) * - 73 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2638
SELECT ALL MIN ( DISTINCT CASE - 60 WHEN - 41 THEN - 24 ELSE NULL END ) * - 73 AS col2
----
NULL

query I rowsort
SELECT ALL 68 * - - 47 AS col2
----
3196

onlyif mysql # aggregate syntax: 
query II rowsort label-2640
SELECT DISTINCT + COUNT( * ) * + ( + 48 ) * - + 19 AS col1, - 76
----
-912
-76

skipif mysql # not compatible
query II rowsort label-2640
SELECT DISTINCT + COUNT ( * ) * + ( + 48 ) * - + 19 AS col1, - 76
----
-912
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-2641
SELECT ALL COUNT( * ) * - - 68 * + 8
----
544

skipif mysql # not compatible
query I rowsort label-2641
SELECT ALL COUNT ( * ) * - - 68 * + 8
----
544

onlyif mysql # aggregate syntax: 
query I rowsort label-2642
SELECT 12 * MIN( DISTINCT + - 37 )
----
-444

skipif mysql # not compatible
query I rowsort label-2642
SELECT 12 * MIN ( DISTINCT + - 37 )
----
-444

query I rowsort
SELECT + ( + 81 ) * - + 77 * + 76 + 21 AS col2
----
-473991

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2644
SELECT + COUNT( * ) DIV - + 68
----
0

skipif mysql # not compatible
query I rowsort label-2644
SELECT + COUNT ( * ) / - + 68
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2645
SELECT ALL + 17 + + MAX( + + 61 ) AS col2
----
78

skipif mysql # not compatible
query I rowsort label-2645
SELECT ALL + 17 + + MAX ( + + 61 ) AS col2
----
78

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2646
SELECT ALL - + CAST( NULL AS SIGNED ) AS col1, CASE - 99 WHEN 4 THEN + 91 + + COUNT( * ) + - ( - + 95 ) * + 61 END AS col2
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-2646
SELECT ALL - + CAST ( NULL AS INTEGER ) AS col1, CASE - 99 WHEN 4 THEN + 91 + + COUNT ( * ) + - ( - + 95 ) * + 61 END AS col2
----
NULL
NULL

query I rowsort
SELECT ALL 87 + - 96 AS col2
----
-9

query I rowsort
SELECT ALL - 37 + + 84 + + 3 AS col0
----
50

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2649
SELECT DISTINCT - COUNT( * ) col1, + COUNT( * ) DIV 88 col2
----
-1
0

skipif mysql # not compatible
query II rowsort label-2649
SELECT DISTINCT - COUNT ( * ) col1, + COUNT ( * ) / 88 col2
----
-1
0

query I rowsort
SELECT ALL - + 10 + - + 60 AS col0
----
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-2651
SELECT DISTINCT COUNT( * ) + 44 - + - 73 col2
----
118

skipif mysql # not compatible
query I rowsort label-2651
SELECT DISTINCT COUNT ( * ) + 44 - + - 73 col2
----
118

query I rowsort
SELECT ALL + 46 * 86 AS col1
----
3956

query I rowsort
SELECT - 53 * - COALESCE ( - 35, + - ( - 57 ) ) AS col1
----
-1855

onlyif mysql # aggregate syntax: 
query I rowsort label-2654
SELECT DISTINCT + 35 + + 7 + + COUNT( * ) AS col2
----
43

skipif mysql # not compatible
query I rowsort label-2654
SELECT DISTINCT + 35 + + 7 + + COUNT ( * ) AS col2
----
43

onlyif mysql # aggregate syntax: 
query II rowsort label-2655
SELECT ALL - - 27 AS col0, + 67 + - COUNT( * ) * - 35 + - 94 AS col0
----
27
8

skipif mysql # not compatible
query II rowsort label-2655
SELECT ALL - - 27 AS col0, + 67 + - COUNT ( * ) * - 35 + - 94 AS col0
----
27
8

onlyif mysql # aggregate syntax: 
query I rowsort label-2656
SELECT DISTINCT + - 81 * - 79 + + 40 * + + 59 * - COALESCE ( - 77, + ( - MAX( ALL - 98 ) ) )
----
188119

skipif mysql # not compatible
query I rowsort label-2656
SELECT DISTINCT + - 81 * - 79 + + 40 * + + 59 * - COALESCE ( - 77, + ( - MAX ( ALL - 98 ) ) )
----
188119

query I rowsort
SELECT - 71 + 71
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2658
SELECT CAST( NULL AS SIGNED ), 29 * 99 + + COUNT( * ) * + 62 + MIN( DISTINCT + 28 ) + 17 + - 42 * + 94 AS col0
----
NULL
-970

skipif mysql # not compatible
query II rowsort label-2658
SELECT CAST ( NULL AS INTEGER ), 29 * 99 + + COUNT ( * ) * + 62 + MIN ( DISTINCT + 28 ) + 17 + - 42 * + 94 AS col0
----
NULL
-970

onlyif mysql # aggregate syntax: 
query I rowsort label-2659
SELECT ALL + MAX( ALL + - 43 ) * ( + + COUNT( * ) )
----
-43

skipif mysql # not compatible
query I rowsort label-2659
SELECT ALL + MAX ( ALL + - 43 ) * ( + + COUNT ( * ) )
----
-43

query I rowsort
SELECT + 19 * - 66 * 39 * - + 66 col0
----
3227796

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2661
SELECT + 38 + + + CASE + - 23 WHEN + 16 / - - ( - 90 ) + + + ( COUNT( * ) ) THEN - ( 10 ) / + CAST( + CASE + COUNT( * ) WHEN 47 THEN - 70 + 72 + + + 75 ELSE 40 END AS DECIMAL ) - CASE - CASE + - 37 WHEN + 25 + COUNT( * ) * + - 45 + 67 THEN + 81 * + 59 ELSE NULL END WHEN + 14 + + 62 + 49 THEN - 73 WHEN 52 * - 83 THEN + 98 END + 67 ELSE NULL END * 98
----
NULL

skipif mysql # not compatible
query I rowsort label-2661
SELECT + 38 + + + CASE + - 23 WHEN + 16 / - - ( - 90 ) + + + ( COUNT ( * ) ) THEN - ( 10 ) / + CAST ( + CASE + COUNT ( * ) WHEN 47 THEN - 70 + 72 + + + 75 ELSE 40 END AS REAL ) - CASE - CASE + - 37 WHEN + 25 + COUNT ( * ) * + - 45 + 67 THEN + 81 * + 59 ELSE NULL END WHEN + 14 + + 62 + 49 THEN - 73 WHEN 52 * - 83 THEN + 98 END + 67 ELSE NULL END * 98
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2662
SELECT - + NULLIF ( + 54, + COUNT( * ) + 53 + - + 97 / COUNT( * ) ) AS col0
----
-54

skipif mysql # not compatible
query I rowsort label-2662
SELECT - + NULLIF ( + 54, + COUNT ( * ) + 53 + - + 97 / COUNT ( * ) ) AS col0
----
-54

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query II rowsort label-2663
SELECT ALL + + 39 * + - COUNT( * ) DIV 85 * + NULLIF ( + - 14, - MAX( 81 ) ) * - 61 * + 46 - + 65 * + - 29 + - 9 col2, - CAST( NULL AS DECIMAL )
----
1876
NULL

skipif mysql # not compatible
query II rowsort label-2663
SELECT ALL + + 39 * + - COUNT ( * ) / 85 * + NULLIF ( + - 14, - MAX ( 81 ) ) * - 61 * + 46 - + 65 * + - 29 + - 9 col2, - CAST ( NULL AS REAL )
----
1876
NULL

query II rowsort
SELECT ALL 31 AS col1, - 84 * + - 79 AS col1
----
31
6636

onlyif mysql # aggregate syntax: 
query I rowsort label-2665
SELECT - MAX( 73 ) - - 5
----
-68

skipif mysql # not compatible
query I rowsort label-2665
SELECT - MAX ( 73 ) - - 5
----
-68

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2666
SELECT ALL CAST( NULL AS SIGNED ) * + + 65 * 85 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2666
SELECT ALL CAST ( NULL AS INTEGER ) * + + 65 * 85 col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2667
SELECT DISTINCT - 74 DIV - - 66 AS col1, 78 + - ( + SUM( DISTINCT + 73 ) ) * + - 81 AS col0
----
-1
5991

skipif mysql # not compatible
query II rowsort label-2667
SELECT DISTINCT - 74 / - - 66 AS col1, 78 + - ( + SUM ( DISTINCT + 73 ) ) * + - 81 AS col0
----
-1
5991

query I rowsort
SELECT 51 + + 62
----
113

query I rowsort
SELECT 55 * - + 68 * + 11 AS col0
----
-41140

query II rowsort
SELECT 90 * + 64 col2, + 18 * - 43 AS col2
----
5760
-774

query I rowsort
SELECT ALL - 56 * - + 69
----
3864

query II rowsort
SELECT 61 + - - 70 AS col1, + ( + 13 ) + - - 25 col0
----
131
38

onlyif mysql # aggregate syntax: 
query I rowsort label-2673
SELECT 70 + + 65 * + 53 * COUNT( * ) * - 3 * 26 AS col0
----
-268640

skipif mysql # not compatible
query I rowsort label-2673
SELECT 70 + + 65 * + 53 * COUNT ( * ) * - 3 * 26 AS col0
----
-268640

query I rowsort
SELECT ALL - 57 * - 48 AS col2
----
2736

onlyif mysql # aggregate syntax: 
query I rowsort label-2675
SELECT ALL + 93 * 28 * - + COUNT( * ) AS col1
----
-2604

skipif mysql # not compatible
query I rowsort label-2675
SELECT ALL + 93 * 28 * - + COUNT ( * ) AS col1
----
-2604

onlyif mysql # aggregate syntax: 
query I rowsort label-2676
SELECT CASE + + ( - ( - + 98 ) ) WHEN + 31 THEN + - 47 * COUNT( * ) + - 78 + - 6 - - 6 / - 35 * - - 72 + + 46 WHEN - - 39 THEN - 7 END + - 89 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2676
SELECT CASE + + ( - ( - + 98 ) ) WHEN + 31 THEN + - 47 * COUNT ( * ) + - 78 + - 6 - - 6 / - 35 * - - 72 + + 46 WHEN - - 39 THEN - 7 END + - 89 AS col2
----
NULL

query II rowsort
SELECT ALL 9 + - 14 + + - 49 AS col1, - 43
----
-54
-43

query II rowsort
SELECT 5 + + 78 AS col2, + 66 AS col1
----
83
66

onlyif mysql # aggregate syntax: 
query I rowsort label-2679
SELECT COUNT( ( + - 18 ) ) * - MIN( ALL - 33 )
----
33

skipif mysql # not compatible
query I rowsort label-2679
SELECT COUNT ( ( + - 18 ) ) * - MIN ( ALL - 33 )
----
33

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2680
SELECT 30 DIV + - 87 + MIN( 20 )
----
20

skipif mysql # not compatible
query I rowsort label-2680
SELECT 30 / + - 87 + MIN ( 20 )
----
20

query I rowsort
SELECT ALL 73 + ( 46 ) * - - 43
----
2051

onlyif mysql # aggregate syntax: 
query I rowsort label-2682
SELECT ( + + 67 ) * + - 61 - + - SUM( DISTINCT - 3 ) AS col1
----
-4090

skipif mysql # not compatible
query I rowsort label-2682
SELECT ( + + 67 ) * + - 61 - + - SUM ( DISTINCT - 3 ) AS col1
----
-4090

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2683
SELECT ALL CAST( - 97 AS SIGNED ) * + 99 col2
----
-9603

skipif mysql # not compatible
query I rowsort label-2683
SELECT ALL CAST ( - 97 AS INTEGER ) * + 99 col2
----
-9603

query I rowsort
SELECT DISTINCT - 8 * 7 AS col0
----
-56

query I rowsort
SELECT DISTINCT - 50 + + NULLIF ( - + 95, + - 83 ) - 18 * 25 * 11 * + - CASE - 4 WHEN 70 THEN - + 71 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2686
SELECT ALL 98 * + + COUNT( * ) * + 31 col2
----
3038

skipif mysql # not compatible
query I rowsort label-2686
SELECT ALL 98 * + + COUNT ( * ) * + 31 col2
----
3038

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2687
SELECT 76 / - CASE - 32 WHEN - - COUNT( * ) THEN NULL WHEN SUM( ALL 41 ) THEN - - COUNT( * ) WHEN - SUM( DISTINCT 32 ) * + + 35 + - 41 + + 52 + - - CAST( NULL AS SIGNED ) / 52 THEN NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2687
SELECT 76 / - CASE - 32 WHEN - - COUNT ( * ) THEN NULL WHEN SUM ( ALL 41 ) THEN - - COUNT ( * ) WHEN - SUM ( DISTINCT 32 ) * + + 35 + - 41 + + 52 + - - CAST ( NULL AS INTEGER ) / 52 THEN NULL END AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2688
SELECT ( CAST( - - 48 AS SIGNED ) ) AS col1
----
48

skipif mysql # not compatible
query I rowsort label-2688
SELECT ( CAST ( - - 48 AS INTEGER ) ) AS col1
----
48

onlyif mysql # aggregate syntax: 
query II rowsort label-2689
SELECT + + SUM( 42 ) AS col2, + 90 + - 7 * 14 * - + 40
----
42
4010

skipif mysql # not compatible
query II rowsort label-2689
SELECT + + SUM ( 42 ) AS col2, + 90 + - 7 * 14 * - + 40
----
42
4010

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2690
SELECT - 17 + - - CAST( - - 92 AS SIGNED )
----
75

skipif mysql # not compatible
query I rowsort label-2690
SELECT - 17 + - - CAST ( - - 92 AS INTEGER )
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-2691
SELECT ( COUNT( * ) ) / - NULLIF ( + ( + - COUNT( * ) ), 28 ) * + 27 + CASE 82 WHEN + NULLIF ( + 43, + 61 ) / - COUNT( * ) + NULLIF ( 76, SUM( ALL + - 41 ) ) + COUNT( * ) + - 76 THEN - + 10 / - 11 / 74 * - 73 + - 5 + - 89 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2691
SELECT ( COUNT ( * ) ) / - NULLIF ( + ( + - COUNT ( * ) ), 28 ) * + 27 + CASE 82 WHEN + NULLIF ( + 43, + 61 ) / - COUNT ( * ) + NULLIF ( 76, SUM ( ALL + - 41 ) ) + COUNT ( * ) + - 76 THEN - + 10 / - 11 / 74 * - 73 + - 5 + - 89 END AS col1
----
NULL

query I rowsort
SELECT ALL - - 0 col0
----
0

query I rowsort
SELECT DISTINCT - - 66 * + + 50 * - + 14 - + 38
----
-46238

query I rowsort
SELECT + ( - 49 ) + - 30 + - + 64 + + + 22 * - + 52
----
-1287

query I rowsort
SELECT ALL + + 36 * - 0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2696
SELECT ALL + NULLIF ( 84, - - CAST( - AVG ( 86 ) AS SIGNED ) ) * - COUNT( - - 63 ) AS col0
----
-84

skipif mysql # not compatible
query I rowsort label-2696
SELECT ALL + NULLIF ( 84, - - CAST ( - AVG ( 86 ) AS INTEGER ) ) * - COUNT ( - - 63 ) AS col0
----
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-2697
SELECT ALL MAX( ALL + 7 )
----
7

skipif mysql # not compatible
query I rowsort label-2697
SELECT ALL MAX ( ALL + 7 )
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-2698
SELECT - CASE WHEN NOT NULL <> - COUNT( * ) THEN - 2 - 64 + + 63 END
----
NULL

skipif mysql # not compatible
query I rowsort label-2698
SELECT - CASE WHEN NOT NULL <> - COUNT ( * ) THEN - 2 - 64 + + 63 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2699
SELECT DISTINCT MAX( + 59 ) col1
----
59

skipif mysql # not compatible
query I rowsort label-2699
SELECT DISTINCT MAX ( + 59 ) col1
----
59

query I rowsort
SELECT DISTINCT NULLIF ( - - 96, - 93 ) col2
----
96

query I rowsort
SELECT - 21 * - - 93
----
-1953

onlyif mysql # aggregate syntax: 
query I rowsort label-2702
SELECT ALL - 25 + COUNT( * ) AS col1
----
-24

skipif mysql # not compatible
query I rowsort label-2702
SELECT ALL - 25 + COUNT ( * ) AS col1
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-2703
SELECT ALL MAX( 47 ) AS col1
----
47

skipif mysql # not compatible
query I rowsort label-2703
SELECT ALL MAX ( 47 ) AS col1
----
47

query II rowsort
SELECT 2 AS col1, + ( - 72 ) * + 58 col2
----
2
-4176

onlyif mysql # aggregate syntax: 
query I rowsort label-2705
SELECT ALL - COUNT( * ) / + AVG ( DISTINCT 32 ) * + CASE - 8 WHEN 29 * - + COUNT( + 78 ) + + 66 - - + 62 THEN 68 WHEN + 95 * - 30 + ( 21 ) / 16 THEN NULL WHEN - - 72 THEN COALESCE ( + ( + 80 ), + + COUNT( * ) * + - 20 ) * + 99 * - 48 END * + + ( + 34 ) + + COUNT( ALL + 34 ) + + - COUNT( ( + - 87 ) ) + 44 * - 3
----
NULL

skipif mysql # not compatible
query I rowsort label-2705
SELECT ALL - COUNT ( * ) / + AVG ( DISTINCT 32 ) * + CASE - 8 WHEN 29 * - + COUNT ( + 78 ) + + 66 - - + 62 THEN 68 WHEN + 95 * - 30 + ( 21 ) / 16 THEN NULL WHEN - - 72 THEN COALESCE ( + ( + 80 ), + + COUNT ( * ) * + - 20 ) * + 99 * - 48 END * + + ( + 34 ) + + COUNT ( ALL + 34 ) + + - COUNT ( ( + - 87 ) ) + 44 * - 3
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2706
SELECT - 85 DIV + + COUNT( * )
----
-85

skipif mysql # not compatible
query I rowsort label-2706
SELECT - 85 / + + COUNT ( * )
----
-85

query I rowsort
SELECT - 91 * + - 54
----
4914

onlyif mysql # aggregate syntax: 
query I rowsort label-2708
SELECT ALL - COALESCE ( - - COUNT( * ), + COALESCE ( 59, + + 22 + - COUNT( * ), - + 13 ) * - + 81 ) + - + 40
----
-41

skipif mysql # not compatible
query I rowsort label-2708
SELECT ALL - COALESCE ( - - COUNT ( * ), + COALESCE ( 59, + + 22 + - COUNT ( * ), - + 13 ) * - + 81 ) + - + 40
----
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-2709
SELECT - MAX( DISTINCT - - 73 ) AS col0
----
-73

skipif mysql # not compatible
query I rowsort label-2709
SELECT - MAX ( DISTINCT - - 73 ) AS col0
----
-73

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2710
SELECT ALL + CASE MIN( DISTINCT 51 ) WHEN + 28 THEN NULL WHEN + + COUNT( * ) * - COUNT( * ) THEN NULL ELSE + 22 * + 22 END + - - ( - - 62 ) + 91 + + CAST( NULL AS DECIMAL ) / 4 * + 54 + + 77 - - ( - CAST( NULL AS SIGNED ) ) * - + 71 / + ( - - 72 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2710
SELECT ALL + CASE MIN ( DISTINCT 51 ) WHEN + 28 THEN NULL WHEN + + COUNT ( * ) * - COUNT ( * ) THEN NULL ELSE + 22 * + 22 END + - - ( - - 62 ) + 91 + + CAST ( NULL AS REAL ) / 4 * + 54 + + 77 - - ( - CAST ( NULL AS INTEGER ) ) * - + 71 / + ( - - 72 )
----
NULL

query I rowsort
SELECT ALL ( + - NULLIF ( 32, + 28 / 11 ) )
----
-32

query I rowsort
SELECT - 32 * - + 70 AS col2
----
2240

query I rowsort
SELECT ALL + 63 + 96
----
159

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2714
SELECT DISTINCT + 57 * COUNT( * ) + + CAST( NULL AS SIGNED ) AS col2, COALESCE ( + - 4, 0, - 73, 76 * - NULLIF ( MIN( ALL + 1 ), - 11 * 22 - COALESCE ( + 19, + - CAST( NULL AS SIGNED ) ) ) ) * + CASE - 65 WHEN + 75 + 14 * MIN( DISTINCT 15 ) + + ( + 62 ) / + ( + - 98 ) THEN NULL WHEN 21 / - CASE - - 73 WHEN - - COUNT( * ) THEN - ( 85 ) END * + + ( - 19 ) * 53 THEN NULL WHEN 0 * ( + COUNT( * ) ) THEN 31 END * COUNT( * ) AS col2
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-2714
SELECT DISTINCT + 57 * COUNT ( * ) + + CAST ( NULL AS INTEGER ) AS col2, COALESCE ( + - 4, 0, - 73, 76 * - NULLIF ( MIN ( ALL + 1 ), - 11 * 22 - COALESCE ( + 19, + - CAST ( NULL AS INTEGER ) ) ) ) * + CASE - 65 WHEN + 75 + 14 * MIN ( DISTINCT 15 ) + + ( + 62 ) / + ( + - 98 ) THEN NULL WHEN 21 / - CASE - - 73 WHEN - - COUNT ( * ) THEN - ( 85 ) END * + + ( - 19 ) * 53 THEN NULL WHEN 0 * ( + COUNT ( * ) ) THEN 31 END * COUNT ( * ) AS col2
----
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2715
SELECT - + COUNT( * ) + 53 * - - 63
----
3338

skipif mysql # not compatible
query I rowsort label-2715
SELECT - + COUNT ( * ) + 53 * - - 63
----
3338

onlyif mysql # aggregate syntax: 
query II rowsort label-2716
SELECT 91 col0, COUNT( * ) AS col1
----
91
1

skipif mysql # not compatible
query II rowsort label-2716
SELECT 91 col0, COUNT ( * ) AS col1
----
91
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2717
SELECT ALL + COALESCE ( + - 2, - CAST( NULL AS SIGNED ) * - 10 + COUNT( * ) ) * COUNT( * ) * + - 32 * + + CAST( NULL AS DECIMAL ) + + 81 - - - 82 * + 0 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2717
SELECT ALL + COALESCE ( + - 2, - CAST ( NULL AS INTEGER ) * - 10 + COUNT ( * ) ) * COUNT ( * ) * + - 32 * + + CAST ( NULL AS REAL ) + + 81 - - - 82 * + 0 AS col2
----
NULL

query I rowsort
SELECT ALL + ( + + COALESCE ( 59, + + 45 ) ) AS col1
----
59

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2719
SELECT + CAST( - + CASE 7 WHEN + 71 THEN - COUNT( * ) - - + COUNT( * ) END AS SIGNED ) * + 87 + - 62 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2719
SELECT + CAST ( - + CASE 7 WHEN + 71 THEN - COUNT ( * ) - - + COUNT ( * ) END AS INTEGER ) * + 87 + - 62 AS col2
----
NULL

query I rowsort
SELECT ALL + - 32 AS col1
----
-32

onlyif mysql # aggregate syntax: 
query II rowsort label-2721
SELECT + + 9, COUNT( * ) AS col2
----
9
1

skipif mysql # not compatible
query II rowsort label-2721
SELECT + + 9, COUNT ( * ) AS col2
----
9
1

query I rowsort
SELECT DISTINCT + ( 72 )
----
72

query I rowsort
SELECT + - 13 * + - 85
----
1105

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2724
SELECT ALL + 3 AS col1, COUNT( DISTINCT - 98 ) DIV - 48
----
3
0

skipif mysql # not compatible
query II rowsort label-2724
SELECT ALL + 3 AS col1, COUNT ( DISTINCT - 98 ) / - 48
----
3
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2725
SELECT + 93 * - 38 * + + MIN( DISTINCT + 80 ) * ( + 36 ) + 42 AS col1
----
-10177878

skipif mysql # not compatible
query I rowsort label-2725
SELECT + 93 * - 38 * + + MIN ( DISTINCT + 80 ) * ( + 36 ) + 42 AS col1
----
-10177878

query I rowsort
SELECT ALL + ( 52 ) AS col2
----
52

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2727
SELECT + - CAST( 1 AS SIGNED ) * - 65 + - - 58 + - + 42
----
81

skipif mysql # not compatible
query I rowsort label-2727
SELECT + - CAST ( 1 AS INTEGER ) * - 65 + - - 58 + - + 42
----
81

query I rowsort
SELECT + 65 * - 34 AS col1
----
-2210

query I rowsort
SELECT + ( - + 41 )
----
-41

query II rowsort
SELECT + 27 AS col2, 53
----
27
53

onlyif mysql # aggregate syntax: 
query I rowsort label-2731
SELECT COUNT( * ) * 86 + 58 col0
----
144

skipif mysql # not compatible
query I rowsort label-2731
SELECT COUNT ( * ) * 86 + 58 col0
----
144

onlyif mysql # aggregate syntax: 
query I rowsort label-2732
SELECT ALL MAX( ALL - 79 ) AS col0
----
-79

skipif mysql # not compatible
query I rowsort label-2732
SELECT ALL MAX ( ALL - 79 ) AS col0
----
-79

onlyif mysql # aggregate syntax: 
query I rowsort label-2733
SELECT + COUNT( + 40 ) * ( - - COUNT( * ) )
----
1

skipif mysql # not compatible
query I rowsort label-2733
SELECT + COUNT ( + 40 ) * ( - - COUNT ( * ) )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2734
SELECT SUM( ALL - 1 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-2734
SELECT SUM ( ALL - 1 ) AS col0
----
-1

query I rowsort
SELECT ALL + 93 + + 63 AS col2
----
156

query I rowsort
SELECT + ( - - 55 ) - CASE - 23 WHEN 55 THEN - + 72 END * - + 34
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2737
SELECT DISTINCT 45 DIV 48 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-2737
SELECT DISTINCT 45 / 48 AS col2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2738
SELECT DISTINCT + AVG ( 31 ) * CAST( NULL AS SIGNED ) + - 48 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2738
SELECT DISTINCT + AVG ( 31 ) * CAST ( NULL AS INTEGER ) + - 48 AS col1
----
NULL

query I rowsort
SELECT + 10 + - - 38
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-2740
SELECT ALL COUNT( 46 ) + + 42 AS col2
----
43

skipif mysql # not compatible
query I rowsort label-2740
SELECT ALL COUNT ( 46 ) + + 42 AS col2
----
43

query I rowsort
SELECT + 79 + + + 39 + - + COALESCE ( - ( 51 ), - 49 * + + 27 ) * - 57 + 93 AS col2
----
-2696

query I rowsort
SELECT - 85 - + 94
----
-179

onlyif mysql # aggregate syntax: 
query I rowsort label-2743
SELECT ALL CASE AVG ( 84 ) WHEN + + 96 THEN + 41 WHEN + 11 + + COUNT( * ) + - 11 THEN NULL ELSE NULL END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2743
SELECT ALL CASE AVG ( 84 ) WHEN + + 96 THEN + 41 WHEN + 11 + + COUNT ( * ) + - 11 THEN NULL ELSE NULL END col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2744
SELECT - 56 + COUNT( * ) + + 35
----
-20

skipif mysql # not compatible
query I rowsort label-2744
SELECT - 56 + COUNT ( * ) + + 35
----
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-2745
SELECT ALL - SUM( - 62 ) + - + 52
----
10

skipif mysql # not compatible
query I rowsort label-2745
SELECT ALL - SUM ( - 62 ) + - + 52
----
10

query I rowsort
SELECT - 49 * + 55 AS col0
----
-2695

query I rowsort
SELECT ALL + 31 + - - 55 * + + 67 + - - NULLIF ( - 27, + 31 )
----
3689

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2748
SELECT - COUNT( * ) + - MIN( DISTINCT + - 30 ) DIV - + 3
----
-11

skipif mysql # not compatible
query I rowsort label-2748
SELECT - COUNT ( * ) + - MIN ( DISTINCT + - 30 ) / - + 3
----
-11

query I rowsort
SELECT ALL CASE + 60 WHEN + + 41 * + 49 THEN + 63 / - AVG ( 83 ) END
----
NULL

query I rowsort
SELECT - - 69 + 64
----
133

query I rowsort
SELECT - 50 * - + 46 + + 89 col2
----
2389

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2752
SELECT ALL - + CAST( NULL AS SIGNED ) - + + COALESCE ( - ( COALESCE ( - ( + 75 ), + - 23 ) ), - 21 * 33 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2752
SELECT ALL - + CAST ( NULL AS INTEGER ) - + + COALESCE ( - ( COALESCE ( - ( + 75 ), + - 23 ) ), - 21 * 33 ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2753
SELECT DISTINCT + + MIN( + + 16 ) * + + ( 56 ) col1
----
896

skipif mysql # not compatible
query I rowsort label-2753
SELECT DISTINCT + + MIN ( + + 16 ) * + + ( 56 ) col1
----
896

query I rowsort
SELECT - 37 + + 29
----
-8

onlyif mysql # DIV for integer division: 
query I rowsort label-2755
SELECT - 77 DIV - 25 col2
----
3

skipif mysql # not compatible
query I rowsort label-2755
SELECT - 77 / - 25 col2
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-2756
SELECT + - 67 DIV + 16 + + + 46 AS col1
----
42

skipif mysql # not compatible
query I rowsort label-2756
SELECT + - 67 / + 16 + + + 46 AS col1
----
42

onlyif mysql # aggregate syntax: 
query II rowsort label-2757
SELECT ALL + - 24 * COUNT( * ) col0, - COUNT( * ) - - 74 + + 59
----
-24
132

skipif mysql # not compatible
query II rowsort label-2757
SELECT ALL + - 24 * COUNT ( * ) col0, - COUNT ( * ) - - 74 + + 59
----
-24
132

onlyif mysql # aggregate syntax: 
query I rowsort label-2758
SELECT MAX( + 90 ) AS col0
----
90

skipif mysql # not compatible
query I rowsort label-2758
SELECT MAX ( + 90 ) AS col0
----
90

query I rowsort
SELECT ALL + NULLIF ( - ( 74 ), 0 ) AS col2
----
-74

onlyif mysql # DIV for integer division: 
query I rowsort label-2760
SELECT - + 43 DIV NULLIF ( - 42, - 61 ) col0
----
1

skipif mysql # not compatible
query I rowsort label-2760
SELECT - + 43 / NULLIF ( - 42, - 61 ) col0
----
1

query I rowsort
SELECT ALL + + 57 col2
----
57

query I rowsort
SELECT + ( 93 ) AS col1
----
93

query I rowsort
SELECT - 36 * + 93 + 51 * + + 42
----
-1206

query I rowsort
SELECT DISTINCT - + 41 AS col2
----
-41

query I rowsort
SELECT + 15 + + ( COALESCE ( 89, 10 + 27, - 8 ) )
----
104

query I rowsort
SELECT ALL + 10 + + 10 AS col2
----
20

query I rowsort
SELECT 80 * 16
----
1280

query I rowsort
SELECT ALL 57 + 49 AS col2
----
106

query II rowsort
SELECT DISTINCT + 52 * ( + 34 ) col2, 42 * - + ( - + 90 )
----
1768
3780

query I rowsort
SELECT ALL - 98 + + 50 * - 68
----
-3498

onlyif mysql # aggregate syntax: 
query I rowsort label-2771
SELECT COUNT( * ) * SUM( 47 ) + - - 49
----
96

skipif mysql # not compatible
query I rowsort label-2771
SELECT COUNT ( * ) * SUM ( 47 ) + - - 49
----
96

query II rowsort
SELECT 70 col2, 23 * - 75 - - 46 - + 34 AS col1
----
70
-1713

query I rowsort
SELECT ALL 4 * + 46 AS col1
----
184

onlyif mysql # DIV for integer division: 
query I rowsort label-2774
SELECT 70 DIV + ( + 17 )
----
4

skipif mysql # not compatible
query I rowsort label-2774
SELECT 70 / + ( + 17 )
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-2775
SELECT - 22 * - ( - 3 ) * - + COUNT( * ) + 75 * - - COALESCE ( + COUNT( + 14 ), - 47 ) * - 34 + - - 71
----
-2413

skipif mysql # not compatible
query I rowsort label-2775
SELECT - 22 * - ( - 3 ) * - + COUNT ( * ) + 75 * - - COALESCE ( + COUNT ( + 14 ), - 47 ) * - 34 + - - 71
----
-2413

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2776
SELECT 15 + + - 72 DIV - NULLIF ( 10, CASE - 17 WHEN + NULLIF ( + - 46, AVG ( DISTINCT 13 ) DIV - + SUM( - 41 ) + - COUNT( * ) - + CAST( 5 AS SIGNED ) * 61 + 2 + 61 ) - + 44 THEN - ( - 62 ) + + 93 ELSE NULL END )
----
22

skipif mysql # not compatible
query I rowsort label-2776
SELECT 15 + + - 72 / - NULLIF ( 10, CASE - 17 WHEN + NULLIF ( + - 46, AVG ( DISTINCT 13 ) / - + SUM ( - 41 ) + - COUNT ( * ) - + CAST ( 5 AS INTEGER ) * 61 + 2 + 61 ) - + 44 THEN - ( - 62 ) + + 93 ELSE NULL END )
----
22

query II rowsort
SELECT - 17 AS col1, - 88 AS col1
----
-17
-88

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2778
SELECT ALL CAST( NULL AS DECIMAL ) + + MIN( ALL - 40 ) + COUNT( DISTINCT 39 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2778
SELECT ALL CAST ( NULL AS REAL ) + + MIN ( ALL - 40 ) + COUNT ( DISTINCT 39 ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2779
SELECT ( 3 ) * + - COUNT( * ) - + - 28 + + 31 * - 2 * - + 54 AS col1
----
3373

skipif mysql # not compatible
query I rowsort label-2779
SELECT ( 3 ) * + - COUNT ( * ) - + - 28 + + 31 * - 2 * - + 54 AS col1
----
3373

onlyif mysql # aggregate syntax: 
query I rowsort label-2780
SELECT COUNT( * ) * + 33
----
33

skipif mysql # not compatible
query I rowsort label-2780
SELECT COUNT ( * ) * + 33
----
33

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2781
SELECT ALL CAST( NULL AS SIGNED ) - - - ( - 39 ) / - 54 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2781
SELECT ALL CAST ( NULL AS INTEGER ) - - - ( - 39 ) / - 54 AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-2782
SELECT ( NULLIF ( 75, + 0 ) ) DIV 20 * - 30 AS col0, - 27 AS col1
----
-90
-27

skipif mysql # not compatible
query II rowsort label-2782
SELECT ( NULLIF ( 75, + 0 ) ) / 20 * - 30 AS col0, - 27 AS col1
----
-90
-27

onlyif mysql # aggregate syntax: 
query II rowsort label-2783
SELECT - 46, SUM( - + 71 ) col1
----
-46
-71

skipif mysql # not compatible
query II rowsort label-2783
SELECT - 46, SUM ( - + 71 ) col1
----
-46
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-2784
SELECT + COUNT( * ) - - + 95 + - 13 + + 31 * - + COUNT( * )
----
52

skipif mysql # not compatible
query I rowsort label-2784
SELECT + COUNT ( * ) - - + 95 + - 13 + + 31 * - + COUNT ( * )
----
52

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2785
SELECT COUNT( * ) * CASE + - 55 WHEN + + 79 * AVG ( ALL + 87 ) + 35 + CAST( NULL AS SIGNED ) + + + ( - + 28 ) THEN 0 + CASE 75 WHEN + COUNT( * ) THEN + AVG ( + 83 ) - + 39 WHEN - 0 * 17 / - - 79 THEN NULL ELSE NULL END + ( + 29 ) ELSE 95 / - CASE + 55 WHEN + 56 * - - 13 + 44 THEN 89 WHEN + - 71 * + 57 + - 74 - - 57 * - - COUNT( * ) / - ( + COUNT( * ) ) * - ( + ( 12 ) ) + + 83 THEN - COUNT( * ) WHEN - 61 * - 61 THEN NULL ELSE NULL END END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2785
SELECT COUNT ( * ) * CASE + - 55 WHEN + + 79 * AVG ( ALL + 87 ) + 35 + CAST ( NULL AS INTEGER ) + + + ( - + 28 ) THEN 0 + CASE 75 WHEN + COUNT ( * ) THEN + AVG ( + 83 ) - + 39 WHEN - 0 * 17 / - - 79 THEN NULL ELSE NULL END + ( + 29 ) ELSE 95 / - CASE + 55 WHEN + 56 * - - 13 + 44 THEN 89 WHEN + - 71 * + 57 + - 74 - - 57 * - - COUNT ( * ) / - ( + COUNT ( * ) ) * - ( + ( 12 ) ) + + 83 THEN - COUNT ( * ) WHEN - 61 * - 61 THEN NULL ELSE NULL END END AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2786
SELECT DISTINCT + COALESCE ( 96, + 60 DIV - - COUNT( * ) ) * 60 AS col0
----
5760

skipif mysql # not compatible
query I rowsort label-2786
SELECT DISTINCT + COALESCE ( 96, + 60 / - - COUNT ( * ) ) * 60 AS col0
----
5760

query I rowsort
SELECT ALL + 57 * - 84
----
-4788

onlyif mysql # aggregate syntax: 
query II rowsort label-2788
SELECT - 32, - COUNT( * ) - 86 + + 6 * 9 * + 40 + + + 21 * + COUNT( * ) AS col1
----
-32
2094

skipif mysql # not compatible
query II rowsort label-2788
SELECT - 32, - COUNT ( * ) - 86 + + 6 * 9 * + 40 + + + 21 * + COUNT ( * ) AS col1
----
-32
2094

query I rowsort
SELECT ALL - + ( - CASE 47 WHEN 48 THEN NULL WHEN + 95 / - 17 + - 38 THEN + 70 ELSE + + ( + - 95 ) END ) AS col0
----
-95

query I rowsort
SELECT 71 * + + 7 * + 48 * - + 31 + + 32 AS col1
----
-739504

query I rowsort
SELECT - 55 + 55
----
0

query II rowsort
SELECT + 66 AS col0, - 83 * + 89
----
66
-7387

query I rowsort
SELECT - ( 96 ) * + + 67 col0
----
-6432

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2794
SELECT ALL + - 30 DIV CAST( + COUNT( ALL + + 52 ) AS SIGNED ) + + ( - + MIN( + 68 ) ) + + - 99 * + COUNT( * ) * + 69 * - 2 + + COUNT( ALL - 7 ) col0
----
13565

skipif mysql # not compatible
query I rowsort label-2794
SELECT ALL + - 30 / CAST ( + COUNT ( ALL + + 52 ) AS INTEGER ) + + ( - + MIN ( + 68 ) ) + + - 99 * + COUNT ( * ) * + 69 * - 2 + + COUNT ( ALL - 7 ) col0
----
13565

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2795
SELECT ALL + 25 * CAST( NULL AS SIGNED ) * 66 * - CAST( NULL AS SIGNED ) / + 89 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2795
SELECT ALL + 25 * CAST ( NULL AS INTEGER ) * 66 * - CAST ( NULL AS INTEGER ) / + 89 AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2796
SELECT - NULLIF ( - 41, - 15 + - 17 ) DIV COUNT( * ) * + 51 + - 56 AS col2
----
2035

skipif mysql # not compatible
query I rowsort label-2796
SELECT - NULLIF ( - 41, - 15 + - 17 ) / COUNT ( * ) * + 51 + - 56 AS col2
----
2035

onlyif mysql # aggregate syntax: 
query I rowsort label-2797
SELECT DISTINCT + - COUNT( DISTINCT + 37 ) + - COUNT( * ) + + 87
----
85

skipif mysql # not compatible
query I rowsort label-2797
SELECT DISTINCT + - COUNT ( DISTINCT + 37 ) + - COUNT ( * ) + + 87
----
85

query I rowsort
SELECT ALL + 81 + - 80 col0
----
1

query I rowsort
SELECT - ( - + ( - + 95 ) ) col0
----
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-2800
SELECT ALL + + COUNT( * ) + - 96
----
-95

skipif mysql # not compatible
query I rowsort label-2800
SELECT ALL + + COUNT ( * ) + - 96
----
-95

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2801
SELECT ALL - 66 * 40 DIV + 23 * - CAST( NULL AS SIGNED ), COALESCE ( + 94, - - COUNT( * ) DIV + COUNT( * ), - 53 ) AS col1
----
NULL
94

skipif mysql # not compatible
query II rowsort label-2801
SELECT ALL - 66 * 40 / + 23 * - CAST ( NULL AS INTEGER ), COALESCE ( + 94, - - COUNT ( * ) / + COUNT ( * ), - 53 ) AS col1
----
NULL
94

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2802
SELECT DISTINCT - 11 + - CAST( NULL AS SIGNED ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2802
SELECT DISTINCT - 11 + - CAST ( NULL AS INTEGER ) col1
----
NULL

query II rowsort
SELECT + 4 AS col1, ( + + 42 )
----
4
42

onlyif mysql # DIV for integer division: 
query I rowsort label-2804
SELECT 6 DIV 75
----
0

skipif mysql # not compatible
query I rowsort label-2804
SELECT 6 / 75
----
0

query II rowsort
SELECT ALL - 93 + - + 48 * - + 72 * 79 col1, + 80 + 47
----
272931
127

onlyif mysql # aggregate syntax: 
query I rowsort label-2806
SELECT ALL - COALESCE ( - ( 72 ), + - 96 * + - 8 * - 16 + + + MAX( ( - 1 ) ) * - 74 + 85, + 32 ) AS col0
----
72

skipif mysql # not compatible
query I rowsort label-2806
SELECT ALL - COALESCE ( - ( 72 ), + - 96 * + - 8 * - 16 + + + MAX ( ( - 1 ) ) * - 74 + 85, + 32 ) AS col0
----
72

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2807
SELECT 86 - - + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-2807
SELECT 86 - - + CAST ( NULL AS INTEGER )
----
NULL

query II rowsort
SELECT + 13 AS col1, + 46 AS col1
----
13
46

query I rowsort
SELECT 96 + + 71 AS col0
----
167

onlyif mysql # aggregate syntax: 
query II rowsort label-2810
SELECT ALL - 70 AS col1, + MIN( + - 7 ) - + 71 + - 65 * + - 5
----
-70
247

skipif mysql # not compatible
query II rowsort label-2810
SELECT ALL - 70 AS col1, + MIN ( + - 7 ) - + 71 + - 65 * + - 5
----
-70
247

query II rowsort
SELECT - 70, 56 col2
----
-70
56

query I rowsort
SELECT ALL 44 - 68 + + 45 AS col2
----
21

onlyif mysql # DIV for integer division: 
query I rowsort label-2813
SELECT 94 * - 29 * - 40 * + - 64 * + 88 - - 11 DIV + 91 * + 37
----
-614113280

skipif mysql # not compatible
query I rowsort label-2813
SELECT 94 * - 29 * - 40 * + - 64 * + 88 - - 11 / + 91 * + 37
----
-614113280

onlyif mysql # aggregate syntax: 
query II rowsort label-2814
SELECT DISTINCT COUNT( * ) AS col2, - 94
----
1
-94

skipif mysql # not compatible
query II rowsort label-2814
SELECT DISTINCT COUNT ( * ) AS col2, - 94
----
1
-94

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-2815
SELECT - 33, 95 + + CAST( NULL AS DECIMAL ) AS col1
----
-33
NULL

skipif mysql # not compatible
query II rowsort label-2815
SELECT - 33, 95 + + CAST ( NULL AS REAL ) AS col1
----
-33
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2816
SELECT COUNT( * ) * - + ( + COUNT( * ) ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-2816
SELECT COUNT ( * ) * - + ( + COUNT ( * ) ) AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-2817
SELECT - MIN( ALL - - 17 )
----
-17

skipif mysql # not compatible
query I rowsort label-2817
SELECT - MIN ( ALL - - 17 )
----
-17

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2818
SELECT CAST( COALESCE ( + COALESCE ( ( + 30 ), - 85 - - - 46 ), + 26 ) AS SIGNED ) * - 32
----
-960

skipif mysql # not compatible
query I rowsort label-2818
SELECT CAST ( COALESCE ( + COALESCE ( ( + 30 ), - 85 - - - 46 ), + 26 ) AS INTEGER ) * - 32
----
-960

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2819
SELECT + COALESCE ( - COUNT( * ), + 14, + 47, - + 81 * - CASE - 85 WHEN + + CAST( NULL AS DECIMAL ) / + 81 + - 57 THEN 54 + 86 + + 88 + - + 52 * + + 0 + MIN( + + 56 ) * - 45 WHEN - 44 THEN - - 20 WHEN + 6 THEN - + 76 + 50 ELSE NULL END ) + + - 98
----
-99

skipif mysql # not compatible
query I rowsort label-2819
SELECT + COALESCE ( - COUNT ( * ), + 14, + 47, - + 81 * - CASE - 85 WHEN + + CAST ( NULL AS REAL ) / + 81 + - 57 THEN 54 + 86 + + 88 + - + 52 * + + 0 + MIN ( + + 56 ) * - 45 WHEN - 44 THEN - - 20 WHEN + 6 THEN - + 76 + 50 ELSE NULL END ) + + - 98
----
-99

query I rowsort
SELECT ( 55 ) - - 25 * + NULLIF ( + 21, AVG ( 16 ) * - 1 - + 4 + - 57 )
----
580

onlyif mysql # DIV for integer division: 
query I rowsort label-2821
SELECT 30 + + 34 * - 12 + + + 9 DIV - - 89 AS col1
----
-378

skipif mysql # not compatible
query I rowsort label-2821
SELECT 30 + + 34 * - 12 + + + 9 / - - 89 AS col1
----
-378

onlyif mysql # DIV for integer division: 
query I rowsort label-2822
SELECT - 68 DIV - - 34
----
-2

skipif mysql # not compatible
query I rowsort label-2822
SELECT - 68 / - - 34
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-2823
SELECT COUNT( * ) + - - 90
----
91

skipif mysql # not compatible
query I rowsort label-2823
SELECT COUNT ( * ) + - - 90
----
91

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2824
SELECT - 86 DIV 46 DIV + + 49 * - 57 - MIN( DISTINCT NULLIF ( - + 64, 52 ) ) + - 96 * + - 76 * ( 40 ) AS col0
----
291904

skipif mysql # not compatible
query I rowsort label-2824
SELECT - 86 / 46 / + + 49 * - 57 - MIN ( DISTINCT NULLIF ( - + 64, 52 ) ) + - 96 * + - 76 * ( 40 ) AS col0
----
291904

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2825
SELECT ALL 56 / 37 + 70 - - CAST( NULL AS SIGNED ) AS col1, 47
----
NULL
47

skipif mysql # not compatible
query II rowsort label-2825
SELECT ALL 56 / 37 + 70 - - CAST ( NULL AS INTEGER ) AS col1, 47
----
NULL
47

query II rowsort
SELECT DISTINCT + 81 AS col0, 66
----
81
66

onlyif mysql # DIV for integer division: 
query I rowsort label-2827
SELECT + + 15 DIV - - 43
----
0

skipif mysql # not compatible
query I rowsort label-2827
SELECT + + 15 / - - 43
----
0

query II rowsort
SELECT - - 55, 70 AS col1
----
55
70

query II rowsort
SELECT ALL + 43 AS col1, 7 + - 64 + - 61 + + + ( + + 76 ) AS col1
----
43
-42

query I rowsort
SELECT DISTINCT 83 * - 68 * 51 AS col2
----
-287844

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2831
SELECT - - 76 + - 89 + + COUNT( ( + 0 ) ) * 22 - - 86 - - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-2831
SELECT - - 76 + - 89 + + COUNT ( ( + 0 ) ) * 22 - - 86 - - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL + + 45 AS col2
----
45

query I rowsort
SELECT + 84 * + ( - 28 )
----
-2352

onlyif mysql # aggregate syntax: 
query I rowsort label-2834
SELECT + MAX( ALL + + 18 )
----
18

skipif mysql # not compatible
query I rowsort label-2834
SELECT + MAX ( ALL + + 18 )
----
18

onlyif mysql # aggregate syntax: 
query II rowsort label-2835
SELECT ALL + - 28, ( 94 ) + + MIN( - - 49 ) AS col1
----
-28
143

skipif mysql # not compatible
query II rowsort label-2835
SELECT ALL + - 28, ( 94 ) + + MIN ( - - 49 ) AS col1
----
-28
143

onlyif mysql # aggregate syntax: 
query I rowsort label-2836
SELECT ALL + + ( - COUNT( * ) )
----
-1

skipif mysql # not compatible
query I rowsort label-2836
SELECT ALL + + ( - COUNT ( * ) )
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2837
SELECT - 16 + MAX( + 45 ) DIV COALESCE ( + - COUNT( * ), - 52 * + 92 DIV - 77, + - 38 ) AS col2
----
-61

skipif mysql # not compatible
query I rowsort label-2837
SELECT - 16 + MAX ( + 45 ) / COALESCE ( + - COUNT ( * ), - 52 * + 92 / - 77, + - 38 ) AS col2
----
-61

query I rowsort
SELECT ALL 57 * - - 42 + + 65
----
2459

onlyif mysql # aggregate syntax: 
query I rowsort label-2839
SELECT + COALESCE ( + - 95, - + 11 + - 18 + - + COALESCE ( - + 44, - - 90 + COUNT( * ) ) ) AS col1
----
-95

skipif mysql # not compatible
query I rowsort label-2839
SELECT + COALESCE ( + - 95, - + 11 + - 18 + - + COALESCE ( - + 44, - - 90 + COUNT ( * ) ) ) AS col1
----
-95

query I rowsort
SELECT NULLIF ( 49, - 93 )
----
49

onlyif mysql # aggregate syntax: 
query I rowsort label-2841
SELECT ALL + SUM( - 0 ) col2
----
0

skipif mysql # not compatible
query I rowsort label-2841
SELECT ALL + SUM ( - 0 ) col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2842
SELECT + CAST( NULL AS SIGNED ) * + 96 + - 97 - - MIN( ALL 16 ) / 51 * + - 80
----
NULL

skipif mysql # not compatible
query I rowsort label-2842
SELECT + CAST ( NULL AS INTEGER ) * + 96 + - 97 - - MIN ( ALL 16 ) / 51 * + - 80
----
NULL

query I rowsort
SELECT - 39 - + 82 * - + 44 * - 79 * - 45
----
12826401

onlyif mysql # DIV for integer division: 
query II rowsort label-2844
SELECT ALL 45 DIV 31, 40 * + 2 + + + COALESCE ( 15, - 16 ) AS col2
----
1
95

skipif mysql # not compatible
query II rowsort label-2844
SELECT ALL 45 / 31, 40 * + 2 + + + COALESCE ( 15, - 16 ) AS col2
----
1
95

onlyif mysql # aggregate syntax: 
query I rowsort label-2845
SELECT DISTINCT + 25 * + + 68 * 89 - - - COUNT( * )
----
151299

skipif mysql # not compatible
query I rowsort label-2845
SELECT DISTINCT + 25 * + + 68 * 89 - - - COUNT ( * )
----
151299

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2846
SELECT ALL - 92 * + COALESCE ( + + 62, + 10 - + + 56 + - 94 * 26 + - - 16 DIV + COALESCE ( + + 95, - + COUNT( * ) + 47 ) * - + COUNT( * ) DIV - 24 - + CASE + CASE ( + + 77 ) WHEN + - 78 THEN NULL WHEN 33 THEN - 27 END WHEN - 2 THEN - 59 * - 92 + CASE - 86 WHEN + 65 THEN + 75 ELSE 95 END - + 32 WHEN 97 * NULLIF ( - + 38, - - 67 ) + - - 10 + MIN( + 61 ) THEN NULL ELSE NULL END - + 76 * + 5 ) - - SUM( ALL - 11 ) * MAX( DISTINCT + 83 ) AS col0
----
-6617

skipif mysql # not compatible
query I rowsort label-2846
SELECT ALL - 92 * + COALESCE ( + + 62, + 10 - + + 56 + - 94 * 26 + - - 16 / + COALESCE ( + + 95, - + COUNT ( * ) + 47 ) * - + COUNT ( * ) / - 24 - + CASE + CASE ( + + 77 ) WHEN + - 78 THEN NULL WHEN 33 THEN - 27 END WHEN - 2 THEN - 59 * - 92 + CASE - 86 WHEN + 65 THEN + 75 ELSE 95 END - + 32 WHEN 97 * NULLIF ( - + 38, - - 67 ) + - - 10 + MIN ( + 61 ) THEN NULL ELSE NULL END - + 76 * + 5 ) - - SUM ( ALL - 11 ) * MAX ( DISTINCT + 83 ) AS col0
----
-6617

query I rowsort
SELECT - 9 * - 60 * + + 11
----
5940

onlyif mysql # aggregate syntax: 
query I rowsort label-2848
SELECT DISTINCT + NULLIF ( - - MAX( DISTINCT 81 ), 49 * 90 ) * - 98 AS col2
----
-7938

skipif mysql # not compatible
query I rowsort label-2848
SELECT DISTINCT + NULLIF ( - - MAX ( DISTINCT 81 ), 49 * 90 ) * - 98 AS col2
----
-7938

onlyif mysql # aggregate syntax: 
query I rowsort label-2849
SELECT - COUNT( * ) + + - 17 + 52
----
34

skipif mysql # not compatible
query I rowsort label-2849
SELECT - COUNT ( * ) + + - 17 + 52
----
34

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2850
SELECT - 73 * - COUNT( * ), 98 + - + 19 + + + 35 * SUM( DISTINCT - + COALESCE ( - CASE + 3 WHEN - 78 THEN - CAST( 50 AS SIGNED ) END, 2 DIV ( - 65 ) + + 96 ) ) * COUNT( * ) AS col1
----
73
-3281

skipif mysql # not compatible
query II rowsort label-2850
SELECT - 73 * - COUNT ( * ), 98 + - + 19 + + + 35 * SUM ( DISTINCT - + COALESCE ( - CASE + 3 WHEN - 78 THEN - CAST ( 50 AS INTEGER ) END, 2 / ( - 65 ) + + 96 ) ) * COUNT ( * ) AS col1
----
73
-3281

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2851
SELECT - 79 * + - COALESCE ( - COUNT( * ), + 5 ) * + 56 * 12 * CAST( NULL AS SIGNED ) * - - 3 col0, - 56 AS col1
----
NULL
-56

skipif mysql # not compatible
query II rowsort label-2851
SELECT - 79 * + - COALESCE ( - COUNT ( * ), + 5 ) * + 56 * 12 * CAST ( NULL AS INTEGER ) * - - 3 col0, - 56 AS col1
----
NULL
-56

query I rowsort
SELECT - 49 * 93
----
-4557

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2853
SELECT + CASE + CAST( NULL AS SIGNED ) WHEN - + 19 * + - 47 + - - 72 + + - SUM( 13 ) * + 1 * - + 46 + + 82 * 78 + + - 76 THEN + 78 * + 84 END * - - 36 * - 19 * + - 3 + - - AVG ( ALL + 13 ) + + - 41 AS col2, - MAX( 41 )
----
NULL
-41

skipif mysql # not compatible
query II rowsort label-2853
SELECT + CASE + CAST ( NULL AS INTEGER ) WHEN - + 19 * + - 47 + - - 72 + + - SUM ( 13 ) * + 1 * - + 46 + + 82 * 78 + + - 76 THEN + 78 * + 84 END * - - 36 * - 19 * + - 3 + - - AVG ( ALL + 13 ) + + - 41 AS col2, - MAX ( 41 )
----
NULL
-41

query I rowsort
SELECT ALL ( - + 52 ) AS col0
----
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-2855
SELECT COUNT( - 69 ) col1
----
1

skipif mysql # not compatible
query I rowsort label-2855
SELECT COUNT ( - 69 ) col1
----
1

query I rowsort
SELECT - 57 * - ( - 7 ) AS col2
----
-399

query I rowsort
SELECT + - ( - + 63 ) * 27 AS col1
----
1701

query I rowsort
SELECT - - ( 88 )
----
88

onlyif mysql # DIV for integer division: 
query II rowsort label-2859
SELECT + - 31 DIV - 28 AS col2, 38
----
1
38

skipif mysql # not compatible
query II rowsort label-2859
SELECT + - 31 / - 28 AS col2, 38
----
1
38

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2860
SELECT ALL + 25 + - 80 * + SUM( + 25 ) + 19 * + + 61 * - ( + CASE + 91 WHEN - 80 - SUM( 23 ) THEN 26 * + 55 END ) * ( + 52 ) + - 10, + CAST( 43 AS SIGNED ) AS col1
----
NULL
43

skipif mysql # not compatible
query II rowsort label-2860
SELECT ALL + 25 + - 80 * + SUM ( + 25 ) + 19 * + + 61 * - ( + CASE + 91 WHEN - 80 - SUM ( 23 ) THEN 26 * + 55 END ) * ( + 52 ) + - 10, + CAST ( 43 AS INTEGER ) AS col1
----
NULL
43

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2861
SELECT - MAX( ALL - - 20 ) - + 11 + + - ( ( - 64 ) ) DIV 94 + + COUNT( * )
----
-30

skipif mysql # not compatible
query I rowsort label-2861
SELECT - MAX ( ALL - - 20 ) - + 11 + + - ( ( - 64 ) ) / 94 + + COUNT ( * )
----
-30

query II rowsort
SELECT ALL - + 46 + - 29 AS col1, 37 * + 66 AS col2
----
-75
2442

onlyif mysql # aggregate syntax: 
query I rowsort label-2863
SELECT ALL COUNT( * ) + 5 + + + 85
----
91

skipif mysql # not compatible
query I rowsort label-2863
SELECT ALL COUNT ( * ) + 5 + + + 85
----
91

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2864
SELECT DISTINCT COALESCE ( COUNT( * ), 70 * - + COUNT( * ) + + 13 * - + 12 ) DIV 11, COUNT( * ) AS col1
----
0
1

skipif mysql # not compatible
query II rowsort label-2864
SELECT DISTINCT COALESCE ( COUNT ( * ), 70 * - + COUNT ( * ) + + 13 * - + 12 ) / 11, COUNT ( * ) AS col1
----
0
1

query I rowsort
SELECT ALL ( + + 91 ) + - 55 + + 95 + 31 AS col2
----
162

onlyif mysql # aggregate syntax: 
query I rowsort label-2866
SELECT + - ( COUNT( * ) ) * + COUNT( * ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-2866
SELECT + - ( COUNT ( * ) ) * + COUNT ( * ) AS col0
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-2867
SELECT ALL - 43 * 61 AS col1, - COUNT( * ) * + - 75
----
-2623
75

skipif mysql # not compatible
query II rowsort label-2867
SELECT ALL - 43 * 61 AS col1, - COUNT ( * ) * + - 75
----
-2623
75

onlyif mysql # aggregate syntax: 
query I rowsort label-2868
SELECT ALL + ( CASE 41 WHEN - 5 THEN NULL WHEN - ( + 87 ) / 80 THEN + 1 * 1 END ) / 17 + - 12 + - ( - 63 ) - - COUNT( * ) + + - COUNT( * ) + - - NULLIF ( 58, - 4 ) / - - 39 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2868
SELECT ALL + ( CASE 41 WHEN - 5 THEN NULL WHEN - ( + 87 ) / 80 THEN + 1 * 1 END ) / 17 + - 12 + - ( - 63 ) - - COUNT ( * ) + + - COUNT ( * ) + - - NULLIF ( 58, - 4 ) / - - 39 AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2869
SELECT + 66 DIV - 29 - 13 AS col2
----
-15

skipif mysql # not compatible
query I rowsort label-2869
SELECT + 66 / - 29 - 13 AS col2
----
-15

query II rowsort
SELECT - 87 * + 52 * - 22 * + 59 + ( - 62 ) + - + 24 AS col2, 25 + + 97
----
5872066
122

query II rowsort
SELECT + - 4 - - + 93, 70 + 57 AS col1
----
89
127

query I rowsort
SELECT ALL 99 * - 88
----
-8712

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2873
SELECT CAST( - - 3 AS SIGNED ) AS col0
----
3

skipif mysql # not compatible
query I rowsort label-2873
SELECT CAST ( - - 3 AS INTEGER ) AS col0
----
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2874
SELECT ALL 75 * COALESCE ( - - 45, 27 - NULLIF ( - 98, 29 + + COUNT( * ) + + - 34 ) * + - 30 * + 6 * - ( + - 78 ) DIV + 72 * - 84 * - + 31, - 22 * - 8 - + COUNT( DISTINCT + + 13 ) + + + 68 + + 83 * + 66 ) AS col1, 80
----
3375
80

skipif mysql # not compatible
query II rowsort label-2874
SELECT ALL 75 * COALESCE ( - - 45, 27 - NULLIF ( - 98, 29 + + COUNT ( * ) + + - 34 ) * + - 30 * + 6 * - ( + - 78 ) / + 72 * - 84 * - + 31, - 22 * - 8 - + COUNT ( DISTINCT + + 13 ) + + + 68 + + 83 * + 66 ) AS col1, 80
----
3375
80

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2875
SELECT CAST( 51 AS SIGNED ) AS col0
----
51

skipif mysql # not compatible
query I rowsort label-2875
SELECT CAST ( 51 AS INTEGER ) AS col0
----
51

onlyif mysql # DIV for integer division: 
query I rowsort label-2876
SELECT + 9 DIV - 40 * - 83 + - 98 AS col1
----
-98

skipif mysql # not compatible
query I rowsort label-2876
SELECT + 9 / - 40 * - 83 + - 98 AS col1
----
-98

query I rowsort
SELECT DISTINCT 4 * - 29 AS col1
----
-116

query I rowsort
SELECT + 16 + + + 91
----
107

onlyif mysql # aggregate syntax: 
query I rowsort label-2879
SELECT DISTINCT + COUNT( - 46 )
----
1

skipif mysql # not compatible
query I rowsort label-2879
SELECT DISTINCT + COUNT ( - 46 )
----
1

query II rowsort
SELECT ALL + 53 AS col1, - ( 83 ) AS col2
----
53
-83

query I rowsort
SELECT ( + 7 ) AS col0
----
7

query I rowsort
SELECT ( + - 15 ) col0
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-2883
SELECT COUNT( * ) * - 92 + + - ( - 77 )
----
-15

skipif mysql # not compatible
query I rowsort label-2883
SELECT COUNT ( * ) * - 92 + + - ( - 77 )
----
-15

query I rowsort
SELECT ALL + 69 col0
----
69

query I rowsort
SELECT CASE - 2 WHEN - 52 THEN 70 END AS col2
----
NULL

query II rowsort
SELECT + 78 AS col0, + 30
----
78
30

onlyif mysql # aggregate syntax: 
query I rowsort label-2887
SELECT ALL + COUNT( + 39 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-2887
SELECT ALL + COUNT ( + 39 ) AS col0
----
1

query I rowsort
SELECT + 91 + 28 AS col2
----
119

onlyif mysql # DIV for integer division: 
query I rowsort label-2889
SELECT + 49 DIV 16
----
3

skipif mysql # not compatible
query I rowsort label-2889
SELECT + 49 / 16
----
3

query I rowsort
SELECT - 55 * - - 53
----
-2915

query I rowsort
SELECT ALL - ( - 31 ) * 52 * - + 86 * - 76
----
10536032

query I rowsort
SELECT + 67 + - - 76
----
143

onlyif mysql # aggregate syntax: 
query I rowsort label-2893
SELECT DISTINCT - 32 * + + COUNT( * ) col0
----
-32

skipif mysql # not compatible
query I rowsort label-2893
SELECT DISTINCT - 32 * + + COUNT ( * ) col0
----
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-2894
SELECT ALL ( + SUM( 1 ) ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-2894
SELECT ALL ( + SUM ( 1 ) ) AS col2
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2895
SELECT - 19 / + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-2895
SELECT - 19 / + CAST ( NULL AS INTEGER )
----
NULL

query II rowsort
SELECT + 17 AS col0, + 58 AS col0
----
17
58

onlyif mysql # aggregate syntax: 
query II rowsort label-2897
SELECT ALL - - 86 * - 78 * + 54 AS col2, + 99 * + 61 * - ( 13 ) - - - SUM( + - 1 )
----
-362232
-78506

skipif mysql # not compatible
query II rowsort label-2897
SELECT ALL - - 86 * - 78 * + 54 AS col2, + 99 * + 61 * - ( 13 ) - - - SUM ( + - 1 )
----
-362232
-78506

query I rowsort
SELECT ALL - ( - - NULLIF ( 4, - ( 98 ) + 24 ) ) col1
----
-4

query I rowsort
SELECT 36 + 34 AS col1
----
70

onlyif mysql # DIV for integer division: 
query II rowsort label-2900
SELECT - 16 + - 73 DIV + 86 AS col2, 22 * 3 AS col0
----
-16
66

skipif mysql # not compatible
query II rowsort label-2900
SELECT - 16 + - 73 / + 86 AS col2, 22 * 3 AS col0
----
-16
66

query I rowsort
SELECT 16 + 35 AS col1
----
51

query II rowsort
SELECT DISTINCT 51 AS col1, 18 - - 38
----
51
56

query I rowsort
SELECT DISTINCT + ( - 47 ) AS col1
----
-47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2904
SELECT - ( - + CASE + 86 WHEN - - 13 THEN + + 11 + - + 44 + 90 * - COUNT( DISTINCT 17 ) * + - COUNT( * ) ELSE + ( 65 ) DIV - CAST( + 86 AS SIGNED ) * + 88 END ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-2904
SELECT - ( - + CASE + 86 WHEN - - 13 THEN + + 11 + - + 44 + 90 * - COUNT ( DISTINCT 17 ) * + - COUNT ( * ) ELSE + ( 65 ) / - CAST ( + 86 AS INTEGER ) * + 88 END ) AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2905
SELECT ALL + 94 + - 28 + 85 + - 69 + + COUNT( * ) * - 91 + 22
----
13

skipif mysql # not compatible
query I rowsort label-2905
SELECT ALL + 94 + - 28 + 85 + - 69 + + COUNT ( * ) * - 91 + 22
----
13

query I rowsort
SELECT DISTINCT - + 68 + - 31 * + + 79 + + ( + + 47 ) AS col2
----
-2470

query I rowsort
SELECT ALL + 13 + 79 AS col2
----
92

query I rowsort
SELECT 85 + 37
----
122

query II rowsort
SELECT - 30 AS col0, - 59
----
-30
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-2910
SELECT - - MAX( - - 94 )
----
94

skipif mysql # not compatible
query I rowsort label-2910
SELECT - - MAX ( - - 94 )
----
94

query I rowsort
SELECT - 7 + - 47
----
-54

query II rowsort
SELECT DISTINCT - 5 AS col1, - 0
----
-5
0

query I rowsort
SELECT ALL - 53 * 21 AS col0
----
-1113

query I rowsort
SELECT 64 * - - 39
----
2496

onlyif mysql # aggregate syntax: 
query I rowsort label-2915
SELECT DISTINCT SUM( DISTINCT - 21 ) - - 17
----
-4

skipif mysql # not compatible
query I rowsort label-2915
SELECT DISTINCT SUM ( DISTINCT - 21 ) - - 17
----
-4

query I rowsort
SELECT DISTINCT + 89 * + 62
----
5518

onlyif mysql # aggregate syntax: 
query I rowsort label-2917
SELECT COUNT( * ) * COUNT( * ) * - 89 AS col0
----
-89

skipif mysql # not compatible
query I rowsort label-2917
SELECT COUNT ( * ) * COUNT ( * ) * - 89 AS col0
----
-89

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2918
SELECT 35 DIV 51 + - - 4 + 56 + COUNT( * ) + - 25 * + 47 * + 72 * + SUM( DISTINCT + COALESCE ( + 84, + 18 DIV - 82 ) )
----
-7106339

skipif mysql # not compatible
query I rowsort label-2918
SELECT 35 / 51 + - - 4 + 56 + COUNT ( * ) + - 25 * + 47 * + 72 * + SUM ( DISTINCT + COALESCE ( + 84, + 18 / - 82 ) )
----
-7106339

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2919
SELECT NULLIF ( - 78, + 71 ) + + COUNT( - CAST( NULL AS SIGNED ) ) - + 10
----
-88

skipif mysql # not compatible
query I rowsort label-2919
SELECT NULLIF ( - 78, + 71 ) + + COUNT ( - CAST ( NULL AS INTEGER ) ) - + 10
----
-88

query I rowsort
SELECT 36 * + - 73 + + ( - 97 ) AS col2
----
-2725

onlyif mysql # aggregate syntax: 
query I rowsort label-2921
SELECT COALESCE ( + 25, + 58, - 50 * 44 + COUNT( + + 94 ) ) - - + 58
----
83

skipif mysql # not compatible
query I rowsort label-2921
SELECT COALESCE ( + 25, + 58, - 50 * 44 + COUNT ( + + 94 ) ) - - + 58
----
83

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2922
SELECT CAST( + 44 AS SIGNED ) DIV + 15 AS col2
----
2

skipif mysql # not compatible
query I rowsort label-2922
SELECT CAST ( + 44 AS INTEGER ) / + 15 AS col2
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-2923
SELECT 33 - - SUM( + + 82 ) AS col2
----
115

skipif mysql # not compatible
query I rowsort label-2923
SELECT 33 - - SUM ( + + 82 ) AS col2
----
115

onlyif mysql # aggregate syntax: 
query II rowsort label-2924
SELECT ALL 49 + + + COUNT( * ) + - - 68 * - 11 AS col0, + 11 * 74
----
-698
814

skipif mysql # not compatible
query II rowsort label-2924
SELECT ALL 49 + + + COUNT ( * ) + - - 68 * - 11 AS col0, + 11 * 74
----
-698
814

query I rowsort
SELECT ALL - 10 + - 86
----
-96

query I rowsort
SELECT 74 - - 62
----
136

query I rowsort
SELECT ALL - - 22 col2
----
22

query I rowsort
SELECT DISTINCT + 91 + - 38 + - - 96
----
149

onlyif mysql # aggregate syntax: 
query I rowsort label-2929
SELECT ALL 44 + + + 56 + + - SUM( + 15 ) * COUNT( * )
----
85

skipif mysql # not compatible
query I rowsort label-2929
SELECT ALL 44 + + + 56 + + - SUM ( + 15 ) * COUNT ( * )
----
85

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2930
SELECT + 14 * + CAST( NULL AS SIGNED ) * - + 2 * + COALESCE ( 34, + 32 / + COUNT( * ) + - ( 79 ) ) * COALESCE ( - - 94, - 92, - + COUNT( * ) / + 98 ) / - ( - - 60 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2930
SELECT + 14 * + CAST ( NULL AS INTEGER ) * - + 2 * + COALESCE ( 34, + 32 / + COUNT ( * ) + - ( 79 ) ) * COALESCE ( - - 94, - 92, - + COUNT ( * ) / + 98 ) / - ( - - 60 ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2931
SELECT - - CASE + AVG ( + 86 ) WHEN - + MAX( 63 ) THEN NULL WHEN 25 THEN + + 3 + + COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-2931
SELECT - - CASE + AVG ( + 86 ) WHEN - + MAX ( 63 ) THEN NULL WHEN 25 THEN + + 3 + + COUNT ( * ) END
----
NULL

query I rowsort
SELECT ALL + ( 52 ) * ( + 16 ) AS col1
----
832

query I rowsort
SELECT ALL - 98 + + - 41 * + 47 AS col0
----
-2025

onlyif mysql # aggregate syntax: 
query II rowsort label-2934
SELECT ALL - ( + CASE + 95 WHEN 48 * + 63 / + - 13 + + + 97 * + 64 - - - 95 THEN + 48 ELSE - COUNT( * ) END ) + 96 AS col1, + 13 * 59
----
97
767

skipif mysql # not compatible
query II rowsort label-2934
SELECT ALL - ( + CASE + 95 WHEN 48 * + 63 / + - 13 + + + 97 * + 64 - - - 95 THEN + 48 ELSE - COUNT ( * ) END ) + 96 AS col1, + 13 * 59
----
97
767

onlyif mysql # aggregate syntax: 
query I rowsort label-2935
SELECT 23 * + 10 * ( + - COUNT( * ) )
----
-230

skipif mysql # not compatible
query I rowsort label-2935
SELECT 23 * + 10 * ( + - COUNT ( * ) )
----
-230

onlyif mysql # DIV for integer division: 
query I rowsort label-2936
SELECT 53 DIV - 27 col1
----
-1

skipif mysql # not compatible
query I rowsort label-2936
SELECT 53 / - 27 col1
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-2937
SELECT COUNT( * ) * 20 AS col2, 18 AS col2
----
20
18

skipif mysql # not compatible
query II rowsort label-2937
SELECT COUNT ( * ) * 20 AS col2, 18 AS col2
----
20
18

query I rowsort
SELECT DISTINCT NULLIF ( 72, - 34 )
----
72

onlyif mysql # aggregate syntax: 
query II rowsort label-2939
SELECT ALL - SUM( ALL 5 ), ( - ( - - 54 ) ) col1
----
-5
-54

skipif mysql # not compatible
query II rowsort label-2939
SELECT ALL - SUM ( ALL 5 ), ( - ( - - 54 ) ) col1
----
-5
-54

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2940
SELECT NULLIF ( 49, 8 * CAST( NULL AS SIGNED ) ) - + + 14
----
35

skipif mysql # not compatible
query I rowsort label-2940
SELECT NULLIF ( 49, 8 * CAST ( NULL AS INTEGER ) ) - + + 14
----
35

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2941
SELECT + CAST( NULL AS DECIMAL ) / - 57 - - + 89
----
NULL

skipif mysql # not compatible
query I rowsort label-2941
SELECT + CAST ( NULL AS REAL ) / - 57 - - + 89
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2942
SELECT 79 - - AVG ( ALL - CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-2942
SELECT 79 - - AVG ( ALL - CAST ( NULL AS INTEGER ) )
----
NULL

query II rowsort
SELECT 19 AS col2, 18
----
19
18

query I rowsort
SELECT ALL + 49 * ( - 3 )
----
-147

query I rowsort
SELECT 24 * - 80
----
-1920

onlyif mysql # aggregate syntax: 
query I rowsort label-2946
SELECT 50 * - + 27 + - - COUNT( * ) + 78
----
-1271

skipif mysql # not compatible
query I rowsort label-2946
SELECT 50 * - + 27 + - - COUNT ( * ) + 78
----
-1271

onlyif mysql # aggregate syntax: 
query I rowsort label-2947
SELECT MAX( DISTINCT - 74 ) AS col0
----
-74

skipif mysql # not compatible
query I rowsort label-2947
SELECT MAX ( DISTINCT - 74 ) AS col0
----
-74

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2948
SELECT - 63 DIV + + CAST( - 79 AS SIGNED ) + 3 AS col2
----
3

skipif mysql # not compatible
query I rowsort label-2948
SELECT - 63 / + + CAST ( - 79 AS INTEGER ) + 3 AS col2
----
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2949
SELECT COUNT( * ) DIV - 30 col2
----
0

skipif mysql # not compatible
query I rowsort label-2949
SELECT COUNT ( * ) / - 30 col2
----
0

query I rowsort
SELECT ALL + 39 * 82 + - 80 col2
----
3118

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2951
SELECT ALL - ( 34 ) * + 97 + + 50 * 66 + + - ( 79 ) + 40 * - + 62 * + + CAST( + 20 AS SIGNED ) + - 9
----
-49686

skipif mysql # not compatible
query I rowsort label-2951
SELECT ALL - ( 34 ) * + 97 + + 50 * 66 + + - ( 79 ) + 40 * - + 62 * + + CAST ( + 20 AS INTEGER ) + - 9
----
-49686

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2952
SELECT DISTINCT 73 DIV + - 83 * + 17, - MAX( + 48 ) - + - 65 + 67 + - 84 AS col1
----
0
0

skipif mysql # not compatible
query II rowsort label-2952
SELECT DISTINCT 73 / + - 83 * + 17, - MAX ( + 48 ) - + - 65 + 67 + - 84 AS col1
----
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2953
SELECT ALL 31 * - 35 + + SUM( - 94 )
----
-1179

skipif mysql # not compatible
query I rowsort label-2953
SELECT ALL 31 * - 35 + + SUM ( - 94 )
----
-1179

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2954
SELECT ALL CAST( NULL AS SIGNED ) * + ( - + 17 ) + + 61
----
NULL

skipif mysql # not compatible
query I rowsort label-2954
SELECT ALL CAST ( NULL AS INTEGER ) * + ( - + 17 ) + + 61
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2955
SELECT COUNT( DISTINCT - - 73 ) col0
----
1

skipif mysql # not compatible
query I rowsort label-2955
SELECT COUNT ( DISTINCT - - 73 ) col0
----
1

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2956
SELECT ALL + CAST( + + CASE + 62 WHEN - - 37 THEN NULL WHEN + - 22 THEN + 64 ELSE + CAST( NULL AS SIGNED ) END AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-2956
SELECT ALL + CAST ( + + CASE + 62 WHEN - - 37 THEN NULL WHEN + - 22 THEN + 64 ELSE + CAST ( NULL AS INTEGER ) END AS REAL )
----
NULL

query I rowsort
SELECT - 37 * + 87 + 47 * + COALESCE ( - + 76, + - 15, 6 ) col2
----
-6791

query I rowsort
SELECT + ( - 3 ) * 13 AS col2
----
-39

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2959
SELECT DISTINCT 37 DIV + + COUNT( ALL - 37 )
----
37

skipif mysql # not compatible
query I rowsort label-2959
SELECT DISTINCT 37 / + + COUNT ( ALL - 37 )
----
37

query I rowsort
SELECT - + 82 + - 17 - 4 - ( + 30 ) AS col2
----
-133

query II rowsort
SELECT + NULLIF ( COALESCE ( + + 7, + 70 + - - 31 ), + - 52 ) AS col2, 86 * - - 20 AS col0
----
7
1720

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2962
SELECT DISTINCT - ( + - SUM( + 31 ) ) DIV 10
----
3

skipif mysql # not compatible
query I rowsort label-2962
SELECT DISTINCT - ( + - SUM ( + 31 ) ) / 10
----
3

query I rowsort
SELECT + 47 * + + 94 + + + 40 * - 76 col1
----
1378

onlyif mysql # aggregate syntax: 
query I rowsort label-2964
SELECT ALL MAX( - - 0 ) + + + COUNT( * ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-2964
SELECT ALL MAX ( - - 0 ) + + + COUNT ( * ) AS col1
----
1

query I rowsort
SELECT + NULLIF ( + + 9, + AVG ( DISTINCT - + 79 ) ) - 54 AS col0
----
-45

query I rowsort
SELECT ALL + 35 * - 37
----
-1295

query II rowsort
SELECT ALL + 35, 64 AS col1
----
35
64

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2968
SELECT + 92 + + - 55 * - 66 * CAST( 57 AS SIGNED ) - 10 AS col0
----
206992

skipif mysql # not compatible
query I rowsort label-2968
SELECT + 92 + + - 55 * - 66 * CAST ( 57 AS INTEGER ) - 10 AS col0
----
206992

onlyif mysql # aggregate syntax: 
query I rowsort label-2969
SELECT + 62 + + + COUNT( 4 )
----
63

skipif mysql # not compatible
query I rowsort label-2969
SELECT + 62 + + + COUNT ( 4 )
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-2970
SELECT DISTINCT COUNT( 18 )
----
1

skipif mysql # not compatible
query I rowsort label-2970
SELECT DISTINCT COUNT ( 18 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2971
SELECT ALL + NULLIF ( - COUNT( * ), - COUNT( * ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2971
SELECT ALL + NULLIF ( - COUNT ( * ), - COUNT ( * ) ) AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2972
SELECT + - CAST( - + NULLIF ( 69, 7 * - - 32 - + - COUNT( * ) + - 23 + - COUNT( * ) ) AS SIGNED ) * COALESCE ( - - 36, 7 + + COUNT( * ), 74 ) + + 23
----
2507

skipif mysql # not compatible
query I rowsort label-2972
SELECT + - CAST ( - + NULLIF ( 69, 7 * - - 32 - + - COUNT ( * ) + - 23 + - COUNT ( * ) ) AS INTEGER ) * COALESCE ( - - 36, 7 + + COUNT ( * ), 74 ) + + 23
----
2507

query I rowsort
SELECT + - 5 + - 5 AS col0
----
-10

onlyif mysql # DIV for integer division: 
query I rowsort label-2974
SELECT DISTINCT + 92 DIV - 91
----
-1

skipif mysql # not compatible
query I rowsort label-2974
SELECT DISTINCT + 92 / - 91
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-2975
SELECT + 93 * - 70 * - COUNT( * ) col0
----
6510

skipif mysql # not compatible
query I rowsort label-2975
SELECT + 93 * - 70 * - COUNT ( * ) col0
----
6510

query I rowsort
SELECT ALL + 17 * - 48 col2
----
-816

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2977
SELECT - 10 + + 36 + 25 + - 51 / + CAST( NULL AS SIGNED ) * CAST( 13 AS SIGNED ), 38 AS col1
----
NULL
38

skipif mysql # not compatible
query II rowsort label-2977
SELECT - 10 + + 36 + 25 + - 51 / + CAST ( NULL AS INTEGER ) * CAST ( 13 AS INTEGER ), 38 AS col1
----
NULL
38

query I rowsort
SELECT ALL ( - 31 ) * - 46 + 82 AS col1
----
1508

onlyif mysql # aggregate syntax: 
query I rowsort label-2979
SELECT - 86 + - - 85 - 81 + - COUNT( * ) * + ( + 2 ) + 29 * + SUM( ALL + + 9 ) + - 7 + + + COUNT( ALL - 47 ) col0
----
171

skipif mysql # not compatible
query I rowsort label-2979
SELECT - 86 + - - 85 - 81 + - COUNT ( * ) * + ( + 2 ) + 29 * + SUM ( ALL + + 9 ) + - 7 + + + COUNT ( ALL - 47 ) col0
----
171

query I rowsort
SELECT + 98 * + 44
----
4312

query I rowsort
SELECT + 57 * - 46
----
-2622

query I rowsort
SELECT - 63 + 49 AS col2
----
-14

query I rowsort
SELECT - ( + - 10 ) AS col0
----
10

onlyif mysql # DIV for integer division: 
query II rowsort label-2984
SELECT - 80 DIV + NULLIF ( + 83, - - 18 ) AS col2, 47 AS col1
----
0
47

skipif mysql # not compatible
query II rowsort label-2984
SELECT - 80 / + NULLIF ( + 83, - - 18 ) AS col2, 47 AS col1
----
0
47

onlyif mysql # aggregate syntax: 
query I rowsort label-2985
SELECT - COUNT( * ) + 63 * + 53
----
3338

skipif mysql # not compatible
query I rowsort label-2985
SELECT - COUNT ( * ) + 63 * + 53
----
3338

onlyif mysql # aggregate syntax: 
query I rowsort label-2986
SELECT DISTINCT COALESCE ( + + 96, + COUNT( ALL 97 ) - - - SUM( ALL + 13 ) )
----
96

skipif mysql # not compatible
query I rowsort label-2986
SELECT DISTINCT COALESCE ( + + 96, + COUNT ( ALL 97 ) - - - SUM ( ALL + 13 ) )
----
96

query I rowsort
SELECT - 68 + 84
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-2988
SELECT ( - COUNT( - 87 ) ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-2988
SELECT ( - COUNT ( - 87 ) ) AS col2
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2989
SELECT - COUNT( * ) * + + 34 DIV + 61
----
0

skipif mysql # not compatible
query I rowsort label-2989
SELECT - COUNT ( * ) * + + 34 / + 61
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-2990
SELECT DISTINCT + 81 AS col0, + ( COUNT( * ) )
----
81
1

skipif mysql # not compatible
query II rowsort label-2990
SELECT DISTINCT + 81 AS col0, + ( COUNT ( * ) )
----
81
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2991
SELECT ALL + 94, + 7 + - 15 + + 52 * + + 14 * - ( + - 60 ) * - - 89 - + + COUNT( * ) DIV 92 AS col0
----
94
3887512

skipif mysql # not compatible
query II rowsort label-2991
SELECT ALL + 94, + 7 + - 15 + + 52 * + + 14 * - ( + - 60 ) * - - 89 - + + COUNT ( * ) / 92 AS col0
----
94
3887512

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2992
SELECT - ( 53 ) * - 95 + + 79 - - + CAST( NULL AS SIGNED ) / - 17, - COUNT( * ) * + 75 AS col2
----
NULL
-75

skipif mysql # not compatible
query II rowsort label-2992
SELECT - ( 53 ) * - 95 + + 79 - - + CAST ( NULL AS INTEGER ) / - 17, - COUNT ( * ) * + 75 AS col2
----
NULL
-75

query I rowsort
SELECT - ( - 21 ) + 70 + - + 22 AS col1
----
69

query II rowsort
SELECT + 43 AS col0, + 45 AS col1
----
43
45

query I rowsort
SELECT ALL + - ( 65 )
----
-65

query II rowsort
SELECT + 91, 51 AS col0
----
91
51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2997
SELECT ALL + 59 * + 81 * 23 * + 72 + + - 43 * - CAST( NULL AS SIGNED ) + + 39 - - 99
----
NULL

skipif mysql # not compatible
query I rowsort label-2997
SELECT ALL + 59 * + 81 * 23 * + 72 + + - 43 * - CAST ( NULL AS INTEGER ) + + 39 - - 99
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2998
SELECT DISTINCT + ( + - NULLIF ( + 0, - + COUNT( * ) * - - NULLIF ( 22, + 57 + - 0 ) + - 41 - 33 ) ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-2998
SELECT DISTINCT + ( + - NULLIF ( + 0, - + COUNT ( * ) * - - NULLIF ( 22, + 57 + - 0 ) + - 41 - 33 ) ) AS col1
----
0

query I rowsort
SELECT - - 22 * - NULLIF ( 79, 86 ) + - + 91
----
-1829

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3000
SELECT ALL - 15 / - 39 * NULLIF ( + CAST( NULL AS SIGNED ), - 96 ) * + ( 45 ) + COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3000
SELECT ALL - 15 / - 39 * NULLIF ( + CAST ( NULL AS INTEGER ), - 96 ) * + ( 45 ) + COUNT ( * ) AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3001
SELECT - 99 DIV 18 * 69
----
-345

skipif mysql # not compatible
query I rowsort label-3001
SELECT - 99 / 18 * 69
----
-345

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3002
SELECT - CASE AVG ( ALL - 88 ) WHEN + + NULLIF ( - 30, - 4 * CAST( NULL AS SIGNED ) DIV - CAST( NULL AS SIGNED ) ) * - 12 - + - 94 + - 97 - + 4 + - 21 * + 10 * + MAX( ALL - 35 ) * AVG ( + - 35 ) THEN + NULLIF ( - + 97, + + 83 * + 68 + CASE - 31 WHEN - - MAX( ALL - - 41 ) THEN MAX( + 10 ) ELSE NULL END DIV - + NULLIF ( 85, - 10 ) * + 34 ) DIV 33 ELSE + CAST( - + 79 AS SIGNED ) * - 10 + - COUNT( * ) + + 4 DIV + + 77 END
----
-789

skipif mysql # not compatible
query I rowsort label-3002
SELECT - CASE AVG ( ALL - 88 ) WHEN + + NULLIF ( - 30, - 4 * CAST ( NULL AS INTEGER ) / - CAST ( NULL AS INTEGER ) ) * - 12 - + - 94 + - 97 - + 4 + - 21 * + 10 * + MAX ( ALL - 35 ) * AVG ( + - 35 ) THEN + NULLIF ( - + 97, + + 83 * + 68 + CASE - 31 WHEN - - MAX ( ALL - - 41 ) THEN MAX ( + 10 ) ELSE NULL END / - + NULLIF ( 85, - 10 ) * + 34 ) / 33 ELSE + CAST ( - + 79 AS INTEGER ) * - 10 + - COUNT ( * ) + + 4 / + + 77 END
----
-789

query I rowsort
SELECT - - ( - - 86 )
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-3004
SELECT + 26 * - + MIN( DISTINCT + 54 ) * + 1 + + + 93 AS col2
----
-1311

skipif mysql # not compatible
query I rowsort label-3004
SELECT + 26 * - + MIN ( DISTINCT + 54 ) * + 1 + + + 93 AS col2
----
-1311

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3005
SELECT ALL - + NULLIF ( - + 65, - COUNT( * ) ) DIV 43 DIV + 32 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3005
SELECT ALL - + NULLIF ( - + 65, - COUNT ( * ) ) / 43 / + 32 AS col0
----
0

query II rowsort
SELECT ALL 22, + 40 AS col0
----
22
40

query I rowsort
SELECT DISTINCT + 63 * 70 AS col0
----
4410

query I rowsort
SELECT ALL ( + 75 ) * + ( - + 46 )
----
-3450

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3009
SELECT - NULLIF ( 91, 58 * 87 + - COALESCE ( - COALESCE ( + 89, 41 ), 50 ) + - NULLIF ( + + MIN( DISTINCT 99 ), 25 ) * - ( + 5 ) + - CAST( 7 AS SIGNED ) / - + 34 * ( 18 ) - + + 50 ) col1
----
-91

skipif mysql # not compatible
query I rowsort label-3009
SELECT - NULLIF ( 91, 58 * 87 + - COALESCE ( - COALESCE ( + 89, 41 ), 50 ) + - NULLIF ( + + MIN ( DISTINCT 99 ), 25 ) * - ( + 5 ) + - CAST ( 7 AS INTEGER ) / - + 34 * ( 18 ) - + + 50 ) col1
----
-91

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3010
SELECT ALL COUNT( DISTINCT 58 ) + COUNT( ALL 2 ) DIV 3 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-3010
SELECT ALL COUNT ( DISTINCT 58 ) + COUNT ( ALL 2 ) / 3 AS col1
----
1

query I rowsort
SELECT + 39 * + + 24
----
936

query I rowsort
SELECT + 51 - + 33
----
18

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3013
SELECT ALL ( + COALESCE ( + COALESCE ( + COUNT( * ), + + 26 DIV ( - + 92 ), - 6 ), - COUNT( + 63 ) ) ) + - COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-3013
SELECT ALL ( + COALESCE ( + COALESCE ( + COUNT ( * ), + + 26 / ( - + 92 ), - 6 ), - COUNT ( + 63 ) ) ) + - COUNT ( * )
----
0

query I rowsort
SELECT + 27 + - 85
----
-58

query I rowsort
SELECT ALL COALESCE ( + + 93, + + 79 ) + - + 82
----
11

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3016
SELECT - CAST( - NULLIF ( + - 18, + 69 * 25 + + MIN( DISTINCT 95 ) + + COUNT( * ) ) AS SIGNED ) AS col1
----
-18

skipif mysql # not compatible
query I rowsort label-3016
SELECT - CAST ( - NULLIF ( + - 18, + 69 * 25 + + MIN ( DISTINCT 95 ) + + COUNT ( * ) ) AS INTEGER ) AS col1
----
-18

onlyif mysql # aggregate syntax: 
query II rowsort label-3017
SELECT ALL - 86 + + 19 * - 12 + + - 25 - - - 95 AS col0, - COUNT( * ) col0
----
-434
-1

skipif mysql # not compatible
query II rowsort label-3017
SELECT ALL - 86 + + 19 * - 12 + + - 25 - - - 95 AS col0, - COUNT ( * ) col0
----
-434
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-3018
SELECT ALL 26 DIV - 8 AS col0
----
-3

skipif mysql # not compatible
query I rowsort label-3018
SELECT ALL 26 / - 8 AS col0
----
-3

query I rowsort
SELECT DISTINCT 61 * - 43 * 29 col2
----
-76067

onlyif mysql # aggregate syntax: 
query I rowsort label-3020
SELECT 33 + + COUNT( ALL - 49 ) * 90
----
123

skipif mysql # not compatible
query I rowsort label-3020
SELECT 33 + + COUNT ( ALL - 49 ) * 90
----
123

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3021
SELECT COALESCE ( + 11, + + 74 ) DIV - 9 - - COALESCE ( + + CAST( NULL AS SIGNED ), + + COUNT( * ), 41 ) - + COALESCE ( - 71, + + CAST( NULL AS SIGNED ) ) AS col2
----
71

skipif mysql # not compatible
query I rowsort label-3021
SELECT COALESCE ( + 11, + + 74 ) / - 9 - - COALESCE ( + + CAST ( NULL AS INTEGER ), + + COUNT ( * ), 41 ) - + COALESCE ( - 71, + + CAST ( NULL AS INTEGER ) ) AS col2
----
71

query II rowsort
SELECT 78 + - + 97, + 47 AS col2
----
-19
47

onlyif mysql # aggregate syntax: 
query I rowsort label-3023
SELECT ALL 55 + + ( + 9 ) + + - COUNT( * ) + + + SUM( + - 55 ) + + 73
----
81

skipif mysql # not compatible
query I rowsort label-3023
SELECT ALL 55 + + ( + 9 ) + + - COUNT ( * ) + + + SUM ( + - 55 ) + + 73
----
81

onlyif mysql # aggregate syntax: 
query II rowsort label-3024
SELECT 24 * + 0 * - + 88 + - MAX( - - ( - ( - 81 ) ) ) AS col1, 13 + - 12
----
-81
1

skipif mysql # not compatible
query II rowsort label-3024
SELECT 24 * + 0 * - + 88 + - MAX ( - - ( - ( - 81 ) ) ) AS col1, 13 + - 12
----
-81
1

onlyif mysql # DIV for integer division: 
query I rowsort label-3025
SELECT ALL - 51 DIV - 6 AS col1
----
8

skipif mysql # not compatible
query I rowsort label-3025
SELECT ALL - 51 / - 6 AS col1
----
8

onlyif mysql # aggregate syntax: 
query II rowsort label-3026
SELECT - COALESCE ( 69, - + 69 ), - 64 * - - SUM( ALL - 33 ) * - 19 * + 51 AS col0
----
-69
-2046528

skipif mysql # not compatible
query II rowsort label-3026
SELECT - COALESCE ( 69, - + 69 ), - 64 * - - SUM ( ALL - 33 ) * - 19 * + 51 AS col0
----
-69
-2046528

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3027
SELECT - CAST( - + 51 AS SIGNED ) AS col1, 90
----
51
90

skipif mysql # not compatible
query II rowsort label-3027
SELECT - CAST ( - + 51 AS INTEGER ) AS col1, 90
----
51
90

onlyif mysql # aggregate syntax: 
query I rowsort label-3028
SELECT ( 50 ) * - + 41 * - 12 + + COUNT( * ) AS col0
----
24601

skipif mysql # not compatible
query I rowsort label-3028
SELECT ( 50 ) * - + 41 * - 12 + + COUNT ( * ) AS col0
----
24601

onlyif mysql # aggregate syntax: 
query I rowsort label-3029
SELECT 30 * - COUNT( * ) + 60
----
30

skipif mysql # not compatible
query I rowsort label-3029
SELECT 30 * - COUNT ( * ) + 60
----
30

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3030
SELECT - - 32 * - 7 * + 97 + + + 77 * - 56 * + + ( - SUM( ALL NULLIF ( - 4, - - 87 * 63 + 54 ) ) ) * - + COUNT( CAST( NULL AS SIGNED ) )
----
-21728

skipif mysql # not compatible
query I rowsort label-3030
SELECT - - 32 * - 7 * + 97 + + + 77 * - 56 * + + ( - SUM ( ALL NULLIF ( - 4, - - 87 * 63 + 54 ) ) ) * - + COUNT ( CAST ( NULL AS INTEGER ) )
----
-21728

onlyif mysql # aggregate syntax: 
query I rowsort label-3031
SELECT + + 46 * - - COUNT( * ) + 11
----
57

skipif mysql # not compatible
query I rowsort label-3031
SELECT + + 46 * - - COUNT ( * ) + 11
----
57

query I rowsort
SELECT 8 * + 96
----
768

onlyif mysql # aggregate syntax: 
query I rowsort label-3033
SELECT 39 + - + COUNT( * ) * + 91 * - 81 + + 91 AS col2
----
7501

skipif mysql # not compatible
query I rowsort label-3033
SELECT 39 + - + COUNT ( * ) * + 91 * - 81 + + 91 AS col2
----
7501

onlyif mysql # aggregate syntax: 
query I rowsort label-3034
SELECT + + SUM( DISTINCT 87 ) AS col1
----
87

skipif mysql # not compatible
query I rowsort label-3034
SELECT + + SUM ( DISTINCT 87 ) AS col1
----
87

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3035
SELECT + - CAST( NULL AS SIGNED ) * + 94 + + MIN( ALL - 28 ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3035
SELECT + - CAST ( NULL AS INTEGER ) * + 94 + + MIN ( ALL - 28 ) col1
----
NULL

query I rowsort
SELECT ALL - 28 col2
----
-28

query I rowsort
SELECT ALL + 34 + - + 56 - + - NULLIF ( - 4, - - 78 * - 57 ) + - 16 AS col2
----
-42

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3038
SELECT COUNT( * ) + - - 43 AS col2, + 93 - NULLIF ( - - 91, - MIN( - 62 ) ) * - COALESCE ( + - 46, CAST( SUM( DISTINCT - + 52 ) AS SIGNED ) ) AS col1
----
44
-4093

skipif mysql # not compatible
query II rowsort label-3038
SELECT COUNT ( * ) + - - 43 AS col2, + 93 - NULLIF ( - - 91, - MIN ( - 62 ) ) * - COALESCE ( + - 46, CAST ( SUM ( DISTINCT - + 52 ) AS INTEGER ) ) AS col1
----
44
-4093

onlyif mysql # aggregate syntax: 
query I rowsort label-3039
SELECT + 90 * - - COUNT( * ) + + - ( - - COUNT( ALL + 93 ) ) * - + 29
----
119

skipif mysql # not compatible
query I rowsort label-3039
SELECT + 90 * - - COUNT ( * ) + + - ( - - COUNT ( ALL + 93 ) ) * - + 29
----
119

query I rowsort
SELECT 8 * - - COALESCE ( 43, - 75 - + 82, 13 )
----
344

query I rowsort
SELECT COALESCE ( - - 80, - + 68 ) + + + 72
----
152

query I rowsort
SELECT - 33 * + 83 + + + 7 * - 39 AS col1
----
-3012

query II rowsort
SELECT DISTINCT 97 AS col1, + 3 AS col0
----
97
3

query I rowsort
SELECT 24 + 9 AS col1
----
33

query I rowsort
SELECT ALL 21 + - 88
----
-67

query I rowsort
SELECT ALL - 54 + + 49 * 35 AS col2
----
1661

query I rowsort
SELECT DISTINCT + ( - 77 ) * - 25 + - + 92
----
1833

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3048
SELECT COUNT( * ) DIV - COUNT( * )
----
-1

skipif mysql # not compatible
query I rowsort label-3048
SELECT COUNT ( * ) / - COUNT ( * )
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3049
SELECT ALL 15 + - COUNT( * ) * - - 0 DIV 9 col0
----
15

skipif mysql # not compatible
query I rowsort label-3049
SELECT ALL 15 + - COUNT ( * ) * - - 0 / 9 col0
----
15

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3050
SELECT ALL - CAST( NULL AS DECIMAL ) + - + 89 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3050
SELECT ALL - CAST ( NULL AS REAL ) + - + 89 AS col1
----
NULL

query I rowsort
SELECT 59 + 3 + + - 4 * 50 AS col1
----
-138

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3052
SELECT DISTINCT 20 + - ( - CAST( NULL AS DECIMAL ) ) + - COUNT( * ) + + + CAST( - 37 AS SIGNED ) * + 26 + - 69
----
NULL

skipif mysql # not compatible
query I rowsort label-3052
SELECT DISTINCT 20 + - ( - CAST ( NULL AS REAL ) ) + - COUNT ( * ) + + + CAST ( - 37 AS INTEGER ) * + 26 + - 69
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3053
SELECT ALL 79 + + 88 + NULLIF ( - ( + CAST( NULL AS DECIMAL ) ), + 83 ) + ( + COUNT( * ) ) + + 16
----
NULL

skipif mysql # not compatible
query I rowsort label-3053
SELECT ALL 79 + + 88 + NULLIF ( - ( + CAST ( NULL AS REAL ) ), + 83 ) + ( + COUNT ( * ) ) + + 16
----
NULL

query II rowsort
SELECT 78 + 0 - + 37 AS col0, 52 * - 79 + 67 + + + 5 + - + 4 + + + 17 * 71 + 84
----
41
-2749

onlyif mysql # aggregate syntax: 
query I rowsort label-3055
SELECT 49 * + + COUNT( * ) * + + 60
----
2940

skipif mysql # not compatible
query I rowsort label-3055
SELECT 49 * + + COUNT ( * ) * + + 60
----
2940

onlyif mysql # aggregate syntax: 
query II rowsort label-3056
SELECT ALL 29, 89 * 57 + - 56 + + MIN( - + 73 ) + + 83 col1
----
29
5027

skipif mysql # not compatible
query II rowsort label-3056
SELECT ALL 29, 89 * 57 + - 56 + + MIN ( - + 73 ) + + 83 col1
----
29
5027

onlyif mysql # aggregate syntax: 
query I rowsort label-3057
SELECT ALL COUNT( + 53 ) col1
----
1

skipif mysql # not compatible
query I rowsort label-3057
SELECT ALL COUNT ( + 53 ) col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3058
SELECT MAX( 72 ) * - 39 * + 13
----
-36504

skipif mysql # not compatible
query I rowsort label-3058
SELECT MAX ( 72 ) * - 39 * + 13
----
-36504

query I rowsort
SELECT ALL + 50 - - 24 + - + 55 AS col1
----
19

query II rowsort
SELECT + COALESCE ( + - 16, + + 65 + + - 83 + - + 14, 1 ) col2, 98 + - - NULLIF ( + 30, - - 90 ) * + 15
----
-16
548

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3061
SELECT DISTINCT - 81 * - 96 + - - 97 - + + COUNT( * ) + - COUNT( * ) + COUNT( * ) DIV - + COALESCE ( 24, + + 47, - + 54 + - 77, 13 + 86 + + - CASE - 27 WHEN 24 + - + 63 THEN NULL WHEN + - 60 THEN + CAST( NULL AS SIGNED ) + + 8 WHEN + 79 THEN - 71 END )
----
7871

skipif mysql # not compatible
query I rowsort label-3061
SELECT DISTINCT - 81 * - 96 + - - 97 - + + COUNT ( * ) + - COUNT ( * ) + COUNT ( * ) / - + COALESCE ( 24, + + 47, - + 54 + - 77, 13 + 86 + + - CASE - 27 WHEN 24 + - + 63 THEN NULL WHEN + - 60 THEN + CAST ( NULL AS INTEGER ) + + 8 WHEN + 79 THEN - 71 END )
----
7871

query I rowsort
SELECT 84 * 92
----
7728

onlyif mysql # DIV for integer division: 
query I rowsort label-3063
SELECT - 28 DIV + ( - + 16 ) + 23
----
24

skipif mysql # not compatible
query I rowsort label-3063
SELECT - 28 / + ( - + 16 ) + 23
----
24

onlyif mysql # aggregate syntax: 
query II rowsort label-3064
SELECT ALL - - 89 AS col1, COUNT( * ) * - 43
----
89
-43

skipif mysql # not compatible
query II rowsort label-3064
SELECT ALL - - 89 AS col1, COUNT ( * ) * - 43
----
89
-43

query I rowsort
SELECT 74 + - 43
----
31

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3066
SELECT - ( 37 ) DIV 18 col1, + COUNT( * )
----
-2
1

skipif mysql # not compatible
query II rowsort label-3066
SELECT - ( 37 ) / 18 col1, + COUNT ( * )
----
-2
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3067
SELECT - 41 DIV NULLIF ( + COALESCE ( + + 36, 59, - + 87 ), 86 - - - 84 + + COUNT( * ) ) + + 3 AS col2
----
2

skipif mysql # not compatible
query I rowsort label-3067
SELECT - 41 / NULLIF ( + COALESCE ( + + 36, 59, - + 87 ), 86 - - - 84 + + COUNT ( * ) ) + + 3 AS col2
----
2

query I rowsort
SELECT + 81 * - 93 AS col1
----
-7533

query I rowsort
SELECT 23 - - 75
----
98

query I rowsort
SELECT ALL 55 * - 88 + 48 - 99 * - - 67 AS col2
----
-11425

query I rowsort
SELECT DISTINCT - - 73 AS col1
----
73

query I rowsort
SELECT + 21 * + - 23
----
-483

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3073
SELECT ALL + CAST( - - 87 AS SIGNED ) + - 0 AS col0, 11 DIV - + 57
----
87
0

skipif mysql # not compatible
query II rowsort label-3073
SELECT ALL + CAST ( - - 87 AS INTEGER ) + - 0 AS col0, 11 / - + 57
----
87
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3074
SELECT DISTINCT + 5 + COUNT( * )
----
6

skipif mysql # not compatible
query I rowsort label-3074
SELECT DISTINCT + 5 + COUNT ( * )
----
6

query II rowsort
SELECT + 34 col2, + 5
----
34
5

query I rowsort
SELECT ALL + + 52 + - 36 AS col1
----
16

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3077
SELECT CASE + 44 WHEN + - 21 + + - 1 * + ( + 68 ) THEN + ( - - CASE + CASE - 45 WHEN - - 67 * + COALESCE ( - COUNT( * ), - - 71 - - + 5, - NULLIF ( + 84, - 36 / + 31 * 84 ) * 72 ) * - 64 + - 43 + - - 80 * + 60 * - 16 THEN NULL ELSE 69 END WHEN CAST( NULL AS DECIMAL ) * + 1 * + 19 THEN - + COUNT( * ) WHEN + 91 * - COUNT( * ) THEN NULL WHEN - + ( 80 ) * + 6 + 54 THEN NULL ELSE NULL END ) WHEN + 80 THEN - 2 - + 40 ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3077
SELECT CASE + 44 WHEN + - 21 + + - 1 * + ( + 68 ) THEN + ( - - CASE + CASE - 45 WHEN - - 67 * + COALESCE ( - COUNT ( * ), - - 71 - - + 5, - NULLIF ( + 84, - 36 / + 31 * 84 ) * 72 ) * - 64 + - 43 + - - 80 * + 60 * - 16 THEN NULL ELSE 69 END WHEN CAST ( NULL AS REAL ) * + 1 * + 19 THEN - + COUNT ( * ) WHEN + 91 * - COUNT ( * ) THEN NULL WHEN - + ( 80 ) * + 6 + 54 THEN NULL ELSE NULL END ) WHEN + 80 THEN - 2 - + 40 ELSE NULL END AS col2
----
NULL

query II rowsort
SELECT + + 25 AS col1, + 68
----
25
68

query I rowsort
SELECT - ( + 14 ) * + + 3 * - 0 * 20 AS col0
----
0

query II rowsort
SELECT - + 56 col1, 44
----
-56
44

onlyif mysql # aggregate syntax: 
query II rowsort label-3081
SELECT DISTINCT - 80 * - COUNT( 32 ), + NULLIF ( - + 90, - + 44 * + - 2 ) AS col1
----
80
-90

skipif mysql # not compatible
query II rowsort label-3081
SELECT DISTINCT - 80 * - COUNT ( 32 ), + NULLIF ( - + 90, - + 44 * + - 2 ) AS col1
----
80
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-3082
SELECT ALL + MIN( DISTINCT + 10 ) + - + COUNT( * )
----
9

skipif mysql # not compatible
query I rowsort label-3082
SELECT ALL + MIN ( DISTINCT + 10 ) + - + COUNT ( * )
----
9

onlyif mysql # aggregate syntax: 
query II rowsort label-3083
SELECT 33 * COUNT( * ) AS col2, 86
----
33
86

skipif mysql # not compatible
query II rowsort label-3083
SELECT 33 * COUNT ( * ) AS col2, 86
----
33
86

query I rowsort
SELECT ALL + 86 + ( + 48 ) * + + 41 + - 4
----
2050

onlyif mysql # aggregate syntax: 
query I rowsort label-3085
SELECT DISTINCT + COUNT( * ) * 61 col1
----
61

skipif mysql # not compatible
query I rowsort label-3085
SELECT DISTINCT + COUNT ( * ) * 61 col1
----
61

query I rowsort
SELECT DISTINCT CASE - - 22 WHEN + 15 / - AVG ( 28 ) THEN + + 15 * - - ( + - 63 ) * + - 44 WHEN 28 * - - 93 THEN NULL ELSE NULL END
----
NULL

query I rowsort
SELECT DISTINCT NULLIF ( - - 36, - 21 )
----
36

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3088
SELECT - 68 + + 50 AS col2, + 29 * + 12 * 25 DIV + COUNT( * )
----
-18
8700

skipif mysql # not compatible
query II rowsort label-3088
SELECT - 68 + + 50 AS col2, + 29 * + 12 * 25 / + COUNT ( * )
----
-18
8700

onlyif mysql # aggregate syntax: 
query I rowsort label-3089
SELECT DISTINCT CASE 32 WHEN 98 THEN + - 97 WHEN - - 92 + + 7 THEN NULL ELSE + COUNT( - - 92 ) END AS col0
----
1

skipif mysql # not compatible
query I rowsort label-3089
SELECT DISTINCT CASE 32 WHEN 98 THEN + - 97 WHEN - - 92 + + 7 THEN NULL ELSE + COUNT ( - - 92 ) END AS col0
----
1

query I rowsort
SELECT + ( - - 1 ) * - 83 AS col2
----
-83

onlyif mysql # DIV for integer division: 
query I rowsort label-3091
SELECT ALL + 51 DIV + ( 64 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3091
SELECT ALL + 51 / + ( 64 ) AS col2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3092
SELECT - 38 + 28 * + 65 * + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3092
SELECT - 38 + 28 * + 65 * + CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3093
SELECT DISTINCT + 69 DIV 16 AS col0
----
4

skipif mysql # not compatible
query I rowsort label-3093
SELECT DISTINCT + 69 / 16 AS col0
----
4

onlyif mysql # aggregate syntax: 
query II rowsort label-3094
SELECT ALL COUNT( * ) * + 86 AS col2, 79 - + 22
----
86
57

skipif mysql # not compatible
query II rowsort label-3094
SELECT ALL COUNT ( * ) * + 86 AS col2, 79 - + 22
----
86
57

query I rowsort
SELECT - ( - 23 ) * + 15
----
345

query I rowsort
SELECT ALL + 51 * + 33
----
1683

onlyif mysql # aggregate syntax: 
query I rowsort label-3097
SELECT + COUNT( * ) * - COUNT( DISTINCT + 97 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-3097
SELECT + COUNT ( * ) * - COUNT ( DISTINCT + 97 ) AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3098
SELECT DISTINCT - 79 * - 4 * + COUNT( ALL 93 )
----
316

skipif mysql # not compatible
query I rowsort label-3098
SELECT DISTINCT - 79 * - 4 * + COUNT ( ALL 93 )
----
316

onlyif mysql # aggregate syntax: 
query I rowsort label-3099
SELECT - COUNT( * ) + + - 94
----
-95

skipif mysql # not compatible
query I rowsort label-3099
SELECT - COUNT ( * ) + + - 94
----
-95

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3100
SELECT - 26 / - 53 + - 42 + + COUNT( * ) * + 84 - + + CAST( NULL AS SIGNED ) - - COUNT( * ) AS col2, 9 * - 10 + - - 92
----
NULL
2

skipif mysql # not compatible
query II rowsort label-3100
SELECT - 26 / - 53 + - 42 + + COUNT ( * ) * + 84 - + + CAST ( NULL AS INTEGER ) - - COUNT ( * ) AS col2, 9 * - 10 + - - 92
----
NULL
2

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3101
SELECT - + COUNT( * ) * - COALESCE ( + 19, - 31, + - 80 + - + ( - 0 ) ) col0, + ( COUNT( ( - - 4 ) ) ) DIV - 41 + - - ( + + 13 ) * - ( + 85 )
----
19
-1105

skipif mysql # not compatible
query II rowsort label-3101
SELECT - + COUNT ( * ) * - COALESCE ( + 19, - 31, + - 80 + - + ( - 0 ) ) col0, + ( COUNT ( ( - - 4 ) ) ) / - 41 + - - ( + + 13 ) * - ( + 85 )
----
19
-1105

query I rowsort
SELECT + + 8 * + 34 AS col1
----
272

query I rowsort
SELECT + 17 + 57 + + - 99 AS col1
----
-25

query I rowsort
SELECT + 79 * + 7 AS col2
----
553

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3105
SELECT DISTINCT 18 * ( + + CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-3105
SELECT DISTINCT 18 * ( + + CAST ( NULL AS INTEGER ) )
----
NULL

query I rowsort
SELECT ALL + + 22 AS col1
----
22

query I rowsort
SELECT + 67 col0
----
67

query I rowsort
SELECT ALL - 94 * 28 + - + 34 * - - 78 + + 95
----
-5189

onlyif mysql # aggregate syntax: 
query I rowsort label-3109
SELECT DISTINCT - + 83 * + + COUNT( * ) + 49 + - 63 + - 62 AS col1
----
-159

skipif mysql # not compatible
query I rowsort label-3109
SELECT DISTINCT - + 83 * + + COUNT ( * ) + 49 + - 63 + - 62 AS col1
----
-159

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3110
SELECT CAST( + 96 AS SIGNED )
----
96

skipif mysql # not compatible
query I rowsort label-3110
SELECT CAST ( + 96 AS INTEGER )
----
96

query I rowsort
SELECT ALL 2 * + 55
----
110

onlyif mysql # aggregate syntax: 
query I rowsort label-3112
SELECT MIN( DISTINCT + + 53 )
----
53

skipif mysql # not compatible
query I rowsort label-3112
SELECT MIN ( DISTINCT + + 53 )
----
53

query I rowsort
SELECT + + 31 / - CASE + 58 WHEN - 16 * ( 43 ) * 38 THEN + - 11 + + 27 END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3114
SELECT COUNT( + CAST( NULL AS SIGNED ) ) col1
----
0

skipif mysql # not compatible
query I rowsort label-3114
SELECT COUNT ( + CAST ( NULL AS INTEGER ) ) col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3115
SELECT - COALESCE ( - COUNT( * ), - 18, - + COUNT( - 1 ) * + - 89 + CAST( + ( - - 51 ) AS SIGNED ) - 82 * COALESCE ( - CASE 30 WHEN - 27 * + 47 * + + 59 - - ( COALESCE ( + + 51, 32, + 36 ) ) THEN + COUNT( * ) WHEN 34 * 72 THEN NULL ELSE NULL END, + - 28 ) ) AS col0, 49 AS col1
----
1
49

skipif mysql # not compatible
query II rowsort label-3115
SELECT - COALESCE ( - COUNT ( * ), - 18, - + COUNT ( - 1 ) * + - 89 + CAST ( + ( - - 51 ) AS INTEGER ) - 82 * COALESCE ( - CASE 30 WHEN - 27 * + 47 * + + 59 - - ( COALESCE ( + + 51, 32, + 36 ) ) THEN + COUNT ( * ) WHEN 34 * 72 THEN NULL ELSE NULL END, + - 28 ) ) AS col0, 49 AS col1
----
1
49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3116
SELECT + - ( - COUNT( * ) ) + - + CASE 80 WHEN - - 44 / CAST( NULL AS SIGNED ) THEN NULL ELSE 43 END AS col2
----
-42

skipif mysql # not compatible
query I rowsort label-3116
SELECT + - ( - COUNT ( * ) ) + - + CASE 80 WHEN - - 44 / CAST ( NULL AS INTEGER ) THEN NULL ELSE 43 END AS col2
----
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-3117
SELECT ALL + - 64 * 36 + 79 + - 31 - COUNT( ALL + - 91 )
----
-2257

skipif mysql # not compatible
query I rowsort label-3117
SELECT ALL + - 64 * 36 + 79 + - 31 - COUNT ( ALL + - 91 )
----
-2257

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3118
SELECT DISTINCT MAX( DISTINCT + CAST( - 67 AS SIGNED ) ) * 79 + + 29
----
-5264

skipif mysql # not compatible
query I rowsort label-3118
SELECT DISTINCT MAX ( DISTINCT + CAST ( - 67 AS INTEGER ) ) * 79 + + 29
----
-5264

query II rowsort
SELECT DISTINCT + 75 AS col0, + 97 AS col2
----
75
97

onlyif mysql # aggregate syntax: 
query I rowsort label-3120
SELECT 55 * 76 + + NULLIF ( - + 53, - COUNT( * ) ) AS col2
----
4127

skipif mysql # not compatible
query I rowsort label-3120
SELECT 55 * 76 + + NULLIF ( - + 53, - COUNT ( * ) ) AS col2
----
4127

query II rowsort
SELECT - 98 + - 19 * 35 AS col2, 42 * - - 61
----
-763
2562

query I rowsort
SELECT - ( + 53 ) AS col2
----
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-3123
SELECT - MAX( DISTINCT + 62 ) + COALESCE ( - 37, - - 79 + + ( + + 94 ), - COUNT( * ) ) + 82 col2
----
-17

skipif mysql # not compatible
query I rowsort label-3123
SELECT - MAX ( DISTINCT + 62 ) + COALESCE ( - 37, - - 79 + + ( + + 94 ), - COUNT ( * ) ) + 82 col2
----
-17

query I rowsort
SELECT + 86 * + 18
----
1548

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3125
SELECT - 50 + + - ( + - 36 ) + - - 7 - + CASE - 1 WHEN + 77 THEN + - COUNT( * ) ELSE - + 22 + 21 END * - - 12 DIV - 71
----
-7

skipif mysql # not compatible
query I rowsort label-3125
SELECT - 50 + + - ( + - 36 ) + - - 7 - + CASE - 1 WHEN + 77 THEN + - COUNT ( * ) ELSE - + 22 + 21 END * - - 12 / - 71
----
-7

onlyif mysql # DIV for integer division: 
query I rowsort label-3126
SELECT - ( + + ( - 30 ) ) + COALESCE ( - + 8, + 63 ) + + 36 DIV 17 + + 6 * - + 46 AS col1
----
-252

skipif mysql # not compatible
query I rowsort label-3126
SELECT - ( + + ( - 30 ) ) + COALESCE ( - + 8, + 63 ) + + 36 / 17 + + 6 * - + 46 AS col1
----
-252

onlyif mysql # aggregate syntax: 
query I rowsort label-3127
SELECT + COUNT( * ) + + 59 AS col0
----
60

skipif mysql # not compatible
query I rowsort label-3127
SELECT + COUNT ( * ) + + 59 AS col0
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-3128
SELECT DISTINCT 61 * - MAX( ALL 49 ) AS col0
----
-2989

skipif mysql # not compatible
query I rowsort label-3128
SELECT DISTINCT 61 * - MAX ( ALL 49 ) AS col0
----
-2989

onlyif mysql # aggregate syntax: 
query I rowsort label-3129
SELECT DISTINCT ( - SUM( 72 ) ) AS col1
----
-72

skipif mysql # not compatible
query I rowsort label-3129
SELECT DISTINCT ( - SUM ( 72 ) ) AS col1
----
-72

query I rowsort
SELECT ALL 96 * - + 18 AS col2
----
-1728

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3131
SELECT DISTINCT CAST( - - MIN( + 83 ) AS SIGNED )
----
83

skipif mysql # not compatible
query I rowsort label-3131
SELECT DISTINCT CAST ( - - MIN ( + 83 ) AS INTEGER )
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-3132
SELECT DISTINCT CASE - + AVG ( - 35 ) WHEN + NULLIF ( COUNT( * ), - + ( + 45 ) + - 51 / - 33 ) / 49 * + 71 + 83 * + SUM( - 46 ) * + - 98 THEN + 26 WHEN - - 15 THEN + NULLIF ( COALESCE ( + 94, + 65 ), + + 37 ) ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3132
SELECT DISTINCT CASE - + AVG ( - 35 ) WHEN + NULLIF ( COUNT ( * ), - + ( + 45 ) + - 51 / - 33 ) / 49 * + 71 + 83 * + SUM ( - 46 ) * + - 98 THEN + 26 WHEN - - 15 THEN + NULLIF ( COALESCE ( + 94, + 65 ), + + 37 ) ELSE NULL END AS col2
----
NULL

query I rowsort
SELECT ALL NULLIF ( 59, + 94 ) AS col0
----
59

query I rowsort
SELECT - ( - 36 ) * - 10 AS col2
----
-360

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3135
SELECT - 60 + + + COUNT( * ) + + 66 + 24 DIV 65 * - 90 AS col2
----
7

skipif mysql # not compatible
query I rowsort label-3135
SELECT - 60 + + + COUNT ( * ) + + 66 + 24 / 65 * - 90 AS col2
----
7

query I rowsort
SELECT - + 37 * + - 93 AS col1
----
3441

onlyif mysql # aggregate syntax: 
query II rowsort label-3137
SELECT - 49 + - - 39 - + 51 AS col0, 84 * COUNT( * ) * - 62
----
-61
-5208

skipif mysql # not compatible
query II rowsort label-3137
SELECT - 49 + - - 39 - + 51 AS col0, 84 * COUNT ( * ) * - 62
----
-61
-5208

query I rowsort
SELECT - ( 57 ) AS col0
----
-57

query I rowsort
SELECT - ( + 95 ) + 89 AS col0
----
-6

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3140
SELECT ALL 61 DIV - COUNT( * ) + - COALESCE ( + - 36, - + ( - COUNT( * ) ), + 62 ) AS col1
----
-25

skipif mysql # not compatible
query I rowsort label-3140
SELECT ALL 61 / - COUNT ( * ) + - COALESCE ( + - 36, - + ( - COUNT ( * ) ), + 62 ) AS col1
----
-25

query I rowsort
SELECT ALL 7 * 38
----
266

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3142
SELECT DISTINCT + 83 / - CASE - + 23 WHEN + 50 THEN NULL WHEN + CAST( + 16 AS SIGNED ) THEN NULL WHEN - 37 THEN + + 12 END + 76
----
NULL

skipif mysql # not compatible
query I rowsort label-3142
SELECT DISTINCT + 83 / - CASE - + 23 WHEN + 50 THEN NULL WHEN + CAST ( + 16 AS INTEGER ) THEN NULL WHEN - 37 THEN + + 12 END + 76
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3143
SELECT ALL + 69 DIV + COALESCE ( + ( + 7 ), AVG ( ALL + + 91 ) * ( - + 1 ) ) - + - 7 + + ( + 82 ) * 41 AS col1
----
3378

skipif mysql # not compatible
query I rowsort label-3143
SELECT ALL + 69 / + COALESCE ( + ( + 7 ), AVG ( ALL + + 91 ) * ( - + 1 ) ) - + - 7 + + ( + 82 ) * 41 AS col1
----
3378

onlyif mysql # aggregate syntax: 
query I rowsort label-3144
SELECT + - COUNT( + + 86 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-3144
SELECT + - COUNT ( + + 86 ) AS col1
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3145
SELECT ALL - 40 DIV + 14 DIV - COUNT( * ) + - 14 AS col1
----
-12

skipif mysql # not compatible
query I rowsort label-3145
SELECT ALL - 40 / + 14 / - COUNT ( * ) + - 14 AS col1
----
-12

query I rowsort
SELECT + ( - 46 )
----
-46

query I rowsort
SELECT + + 35 + - ( + 2 ) * + 82 AS col2
----
-129

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3148
SELECT + - CAST( 22 AS SIGNED )
----
-22

skipif mysql # not compatible
query I rowsort label-3148
SELECT + - CAST ( 22 AS INTEGER )
----
-22

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3149
SELECT ALL + + 7 / - CASE + + 46 WHEN + 4 THEN NULL WHEN CASE + 33 WHEN + - 63 * - 50 THEN + COUNT( * ) END * + 5 * - + 94 + + 93 + - COUNT( 70 ) * - 6 THEN - 33 ELSE ( + - CAST( NULL AS SIGNED ) ) END / + 95 * 18 + 7 + + 59 * - 34, 68 + + MIN( DISTINCT - 19 ) AS col2
----
NULL
49

skipif mysql # not compatible
query II rowsort label-3149
SELECT ALL + + 7 / - CASE + + 46 WHEN + 4 THEN NULL WHEN CASE + 33 WHEN + - 63 * - 50 THEN + COUNT ( * ) END * + 5 * - + 94 + + 93 + - COUNT ( 70 ) * - 6 THEN - 33 ELSE ( + - CAST ( NULL AS INTEGER ) ) END / + 95 * 18 + 7 + + 59 * - 34, 68 + + MIN ( DISTINCT - 19 ) AS col2
----
NULL
49

onlyif mysql # aggregate syntax: 
query I rowsort label-3150
SELECT - SUM( ALL + 14 ) * + - 82 + - 32 AS col1
----
1116

skipif mysql # not compatible
query I rowsort label-3150
SELECT - SUM ( ALL + 14 ) * + - 82 + - 32 AS col1
----
1116

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-3151
SELECT ALL NULLIF ( + - MIN( ALL + - 94 ), - 22 * ( + 37 ) + - + 21 * + + CAST( NULL AS SIGNED ) ) - + NULLIF ( - 84, + 67 ), + CAST( NULL AS DECIMAL ) AS col1
----
178
NULL

skipif mysql # not compatible
query II rowsort label-3151
SELECT ALL NULLIF ( + - MIN ( ALL + - 94 ), - 22 * ( + 37 ) + - + 21 * + + CAST ( NULL AS INTEGER ) ) - + NULLIF ( - 84, + 67 ), + CAST ( NULL AS REAL ) AS col1
----
178
NULL

query II rowsort
SELECT 89 AS col0, + 96
----
89
96

onlyif mysql # aggregate syntax: 
query I rowsort label-3153
SELECT COUNT( * ) - + 81 * COALESCE ( 90, + + 37, + 58 + - - ( - - ( + - 61 ) ) )
----
-7289

skipif mysql # not compatible
query I rowsort label-3153
SELECT COUNT ( * ) - + 81 * COALESCE ( 90, + + 37, + 58 + - - ( - - ( + - 61 ) ) )
----
-7289

query II rowsort
SELECT 94 col0, + 70 col2
----
94
70

query II rowsort
SELECT 88 * - 72 AS col1, 19 AS col2
----
-6336
19

onlyif mysql # aggregate syntax: 
query I rowsort label-3156
SELECT ALL ( - 16 ) * - - MIN( + ( - 25 ) )
----
400

skipif mysql # not compatible
query I rowsort label-3156
SELECT ALL ( - 16 ) * - - MIN ( + ( - 25 ) )
----
400

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3157
SELECT DISTINCT 62 * + 65 DIV - + COUNT( * )
----
-4030

skipif mysql # not compatible
query I rowsort label-3157
SELECT DISTINCT 62 * + 65 / - + COUNT ( * )
----
-4030

query I rowsort
SELECT ALL 20 * - 76
----
-1520

onlyif mysql # aggregate syntax: 
query II rowsort label-3159
SELECT ALL 22, COUNT( * ) AS col0
----
22
1

skipif mysql # not compatible
query II rowsort label-3159
SELECT ALL 22, COUNT ( * ) AS col0
----
22
1

query I rowsort
SELECT CASE 11 WHEN 0 THEN + 64 * + ( + 47 ) * - - 3 + - - 76 + 57 * - 15 + + 92 - + 74 + 85 / 20 WHEN + 43 THEN - 72 * 2 ELSE NULL END + + 67
----
NULL

query I rowsort
SELECT 67 + 73 * + + 7 * - - 11 * - 66 AS col1
----
-370919

query I rowsort
SELECT DISTINCT 84 + + CASE + 5 WHEN + + 8 * + + 70 / 94 + + 81 * + - 12 * + AVG ( ALL + 5 ) - - 15 THEN - + 47 * - 54 WHEN + 9 THEN NULL END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3163
SELECT ALL NULLIF ( + - 41, + COUNT( * ) ) + - 77 * + ( + COUNT( * ) ) * - 50 * - 1 + - 72
----
-3963

skipif mysql # not compatible
query I rowsort label-3163
SELECT ALL NULLIF ( + - 41, + COUNT ( * ) ) + - 77 * + ( + COUNT ( * ) ) * - 50 * - 1 + - 72
----
-3963

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3164
SELECT CAST( + 27 AS SIGNED ) + 92 - - + 4 AS col0
----
123

skipif mysql # not compatible
query I rowsort label-3164
SELECT CAST ( + 27 AS INTEGER ) + 92 - - + 4 AS col0
----
123

query I rowsort
SELECT 28 + + 49
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-3166
SELECT DISTINCT - 58 * + + COUNT( * )
----
-58

skipif mysql # not compatible
query I rowsort label-3166
SELECT DISTINCT - 58 * + + COUNT ( * )
----
-58

query I rowsort
SELECT DISTINCT - 0 + - 31 - + 69 AS col1
----
-100

query I rowsort
SELECT DISTINCT - 77 col0
----
-77

query I rowsort
SELECT DISTINCT - 20 + + 37
----
17

query I rowsort
SELECT DISTINCT 39 * - 24
----
-936

onlyif mysql # aggregate syntax: 
query I rowsort label-3171
SELECT + COUNT( * ) + ( + - 12 ) + ( 44 ) * + 33 - COUNT( * )
----
1440

skipif mysql # not compatible
query I rowsort label-3171
SELECT + COUNT ( * ) + ( + - 12 ) + ( 44 ) * + 33 - COUNT ( * )
----
1440

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3172
SELECT 28 DIV + COUNT( * ) AS col0
----
28

skipif mysql # not compatible
query I rowsort label-3172
SELECT 28 / + COUNT ( * ) AS col0
----
28

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3173
SELECT + 1 + + + COALESCE ( + 27, + + 32 * 16 * - CASE + + 22 WHEN - + 50 THEN - ( + ( - - ( NULLIF ( + - 49, 97 ) ) ) ) WHEN - - CAST( NULL AS SIGNED ) * - - 15 * + 3 * + 8 - - CAST( NULL AS SIGNED ) THEN NULL END ) AS col1
----
28

skipif mysql # not compatible
query I rowsort label-3173
SELECT + 1 + + + COALESCE ( + 27, + + 32 * 16 * - CASE + + 22 WHEN - + 50 THEN - ( + ( - - ( NULLIF ( + - 49, 97 ) ) ) ) WHEN - - CAST ( NULL AS INTEGER ) * - - 15 * + 3 * + 8 - - CAST ( NULL AS INTEGER ) THEN NULL END ) AS col1
----
28

query I rowsort
SELECT ( + 16 ) AS col2
----
16

query I rowsort
SELECT ALL - - 83 + - + 49 AS col1
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-3176
SELECT 77 * - - 47 + + + 13 * 76 * MIN( 42 ) AS col2
----
45115

skipif mysql # not compatible
query I rowsort label-3176
SELECT 77 * - - 47 + + + 13 * 76 * MIN ( 42 ) AS col2
----
45115

query I rowsort
SELECT - 24 * 25 * - 37
----
22200

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3178
SELECT DISTINCT - + COUNT( * ) / + - ( MAX( - 85 ) ) * - 26 + + + CAST( NULL AS SIGNED ) + + - 87 + + - 46 / 18, 30 * 59 AS col1
----
NULL
1770

skipif mysql # not compatible
query II rowsort label-3178
SELECT DISTINCT - + COUNT ( * ) / + - ( MAX ( - 85 ) ) * - 26 + + + CAST ( NULL AS INTEGER ) + + - 87 + + - 46 / 18, 30 * 59 AS col1
----
NULL
1770

query I rowsort
SELECT ALL - ( + ( 39 ) ) AS col1
----
-39

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3180
SELECT ALL - 65 - COUNT( * ) + + 18 + + + 67 DIV - - 82 * - - CASE + 41 WHEN - ( - + 36 ) + - - 96 THEN NULL WHEN + - 20 + - 99 * - 28 * 23 THEN NULL ELSE + COUNT( * ) END DIV + COUNT( * ) + - 11 AS col2
----
-59

skipif mysql # not compatible
query I rowsort label-3180
SELECT ALL - 65 - COUNT ( * ) + + 18 + + + 67 / - - 82 * - - CASE + 41 WHEN - ( - + 36 ) + - - 96 THEN NULL WHEN + - 20 + - 99 * - 28 * 23 THEN NULL ELSE + COUNT ( * ) END / + COUNT ( * ) + - 11 AS col2
----
-59

query I rowsort
SELECT 0 * + 44 + - 75 AS col2
----
-75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3182
SELECT ALL - CASE - + 40 WHEN + 4 + CAST( - ( - COALESCE ( + - ( - - ( + NULLIF ( - ( 7 ), - 60 * + + 30 * + 10 ) ) ), + 2 ) ) AS SIGNED ) THEN - CAST( NULL AS SIGNED ) WHEN + ( - + 11 ) * + COUNT( * ) + + 76 THEN + 9 * + CAST( + CAST( NULL AS DECIMAL ) AS SIGNED ) * - + 20 - - 30 * + 44 ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3182
SELECT ALL - CASE - + 40 WHEN + 4 + CAST ( - ( - COALESCE ( + - ( - - ( + NULLIF ( - ( 7 ), - 60 * + + 30 * + 10 ) ) ), + 2 ) ) AS INTEGER ) THEN - CAST ( NULL AS INTEGER ) WHEN + ( - + 11 ) * + COUNT ( * ) + + 76 THEN + 9 * + CAST ( + CAST ( NULL AS REAL ) AS INTEGER ) * - + 20 - - 30 * + 44 ELSE NULL END AS col1
----
NULL

query I rowsort
SELECT DISTINCT - + 41 * + 7 AS col2
----
-287

onlyif mysql # aggregate syntax: 
query I rowsort label-3184
SELECT - MIN( + 12 ) * 84 + 88 * 11 * - 55 * - - 65 AS col0
----
-3461608

skipif mysql # not compatible
query I rowsort label-3184
SELECT - MIN ( + 12 ) * 84 + 88 * 11 * - 55 * - - 65 AS col0
----
-3461608

onlyif mysql # aggregate syntax: 
query I rowsort label-3185
SELECT ALL - SUM( - 35 )
----
35

skipif mysql # not compatible
query I rowsort label-3185
SELECT ALL - SUM ( - 35 )
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-3186
SELECT 43 * - COUNT( * ) AS col1
----
-43

skipif mysql # not compatible
query I rowsort label-3186
SELECT 43 * - COUNT ( * ) AS col1
----
-43

query I rowsort
SELECT 49 + + ( - 53 ) col2
----
-4

query I rowsort
SELECT 84 * + + 47
----
3948

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3189
SELECT DISTINCT - CAST( 49 AS SIGNED ) * - - MIN( ALL 4 )
----
-196

skipif mysql # not compatible
query I rowsort label-3189
SELECT DISTINCT - CAST ( 49 AS INTEGER ) * - - MIN ( ALL 4 )
----
-196

onlyif mysql # aggregate syntax: 
query I rowsort label-3190
SELECT DISTINCT - COALESCE ( - - COUNT( * ), + 17 * + 50 * - 46 - - 46 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-3190
SELECT DISTINCT - COALESCE ( - - COUNT ( * ), + 17 * + 50 * - 46 - - 46 ) AS col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3191
SELECT COUNT( + 73 ) + - 50 * - 35
----
1751

skipif mysql # not compatible
query I rowsort label-3191
SELECT COUNT ( + 73 ) + - 50 * - 35
----
1751

onlyif mysql # DIV for integer division: 
query I rowsort label-3192
SELECT ALL - 38 DIV + + NULLIF ( 24, - 80 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-3192
SELECT ALL - 38 / + + NULLIF ( 24, - 80 ) AS col2
----
-1

query I rowsort
SELECT 93 + - 60 - 56 * + 46 AS col2
----
-2543

query I rowsort
SELECT ( 77 ) + + 78
----
155

onlyif mysql # DIV for integer division: 
query I rowsort label-3195
SELECT 77 DIV 12 AS col0
----
6

skipif mysql # not compatible
query I rowsort label-3195
SELECT 77 / 12 AS col0
----
6

query I rowsort
SELECT 12 + 29 + - 26
----
15

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-3197
SELECT ALL 43 + - COUNT( * ), CAST( - CAST( + + MIN( ALL - 93 ) AS DECIMAL ) AS SIGNED ) AS col0
----
42
93

skipif mysql # not compatible
query II rowsort label-3197
SELECT ALL 43 + - COUNT ( * ), CAST ( - CAST ( + + MIN ( ALL - 93 ) AS REAL ) AS INTEGER ) AS col0
----
42
93

query II rowsort
SELECT 83 * 40, ( 27 ) + + 27 AS col2
----
3320
54

onlyif mysql # aggregate syntax: 
query I rowsort label-3199
SELECT DISTINCT - 21 + - COUNT( * ) * - 71
----
50

skipif mysql # not compatible
query I rowsort label-3199
SELECT DISTINCT - 21 + - COUNT ( * ) * - 71
----
50

query I rowsort
SELECT ALL - 71 + 11
----
-60

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3201
SELECT + NULLIF ( - + 17, AVG ( ALL 98 ) ) * - + CAST( + 52 AS SIGNED ) AS col1
----
884

skipif mysql # not compatible
query I rowsort label-3201
SELECT + NULLIF ( - + 17, AVG ( ALL 98 ) ) * - + CAST ( + 52 AS INTEGER ) AS col1
----
884

onlyif mysql # aggregate syntax: 
query II rowsort label-3202
SELECT ALL + ( + - 60 ) + + + COUNT( * ) + - + 65 * 81 * 29 * + NULLIF ( + + 33, 82 ) * - NULLIF ( - 71, + SUM( - 99 ) ) + - 4 + + - 87 AS col0, + 99 col1
----
-357741105
99

skipif mysql # not compatible
query II rowsort label-3202
SELECT ALL + ( + - 60 ) + + + COUNT ( * ) + - + 65 * 81 * 29 * + NULLIF ( + + 33, 82 ) * - NULLIF ( - 71, + SUM ( - 99 ) ) + - 4 + + - 87 AS col0, + 99 col1
----
-357741105
99

onlyif mysql # DIV for integer division: 
query I rowsort label-3203
SELECT 23 DIV + 73
----
0

skipif mysql # not compatible
query I rowsort label-3203
SELECT 23 / + 73
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3204
SELECT 66 * - + COUNT( * ) * - + COUNT( * ) AS col2
----
66

skipif mysql # not compatible
query I rowsort label-3204
SELECT 66 * - + COUNT ( * ) * - + COUNT ( * ) AS col2
----
66

onlyif mysql # aggregate syntax: 
query II rowsort label-3205
SELECT 46 - COUNT( * ) col2, 76
----
45
76

skipif mysql # not compatible
query II rowsort label-3205
SELECT 46 - COUNT ( * ) col2, 76
----
45
76

onlyif mysql # aggregate syntax: 
query I rowsort label-3206
SELECT - COUNT( - + 79 )
----
-1

skipif mysql # not compatible
query I rowsort label-3206
SELECT - COUNT ( - + 79 )
----
-1

query I rowsort
SELECT + ( 68 ) + 87 AS col1
----
155

query II rowsort
SELECT DISTINCT - 28 - 32 + - 48, 3 AS col2
----
-108
3

query I rowsort
SELECT ALL + 53 * 4 AS col0
----
212

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3210
SELECT DISTINCT CAST( NULL AS SIGNED ) * + AVG ( + + 17 ) AS col0, 90 AS col2
----
NULL
90

skipif mysql # not compatible
query II rowsort label-3210
SELECT DISTINCT CAST ( NULL AS INTEGER ) * + AVG ( + + 17 ) AS col0, 90 AS col2
----
NULL
90

query I rowsort
SELECT ALL + - 14 AS col0
----
-14

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3212
SELECT NULLIF ( COUNT( * ), 74 * 80 + COUNT( * ) * COUNT( * ) * COUNT( * ) * - ( - - 38 ) * + - 9 - - 64 * + CAST( COALESCE ( - - ( + 10 ), SUM( DISTINCT + 39 ) ) AS DECIMAL ) )
----
1

skipif mysql # not compatible
query I rowsort label-3212
SELECT NULLIF ( COUNT ( * ), 74 * 80 + COUNT ( * ) * COUNT ( * ) * COUNT ( * ) * - ( - - 38 ) * + - 9 - - 64 * + CAST ( COALESCE ( - - ( + 10 ), SUM ( DISTINCT + 39 ) ) AS REAL ) )
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-3213
SELECT - 11 + CASE 88 WHEN - + 14 * COUNT( * ) * + COALESCE ( - 96, + - 9 ) THEN - 96 * - 59 END AS col2, + 1 + + COUNT( * )
----
NULL
2

skipif mysql # not compatible
query II rowsort label-3213
SELECT - 11 + CASE 88 WHEN - + 14 * COUNT ( * ) * + COALESCE ( - 96, + - 9 ) THEN - 96 * - 59 END AS col2, + 1 + + COUNT ( * )
----
NULL
2

query I rowsort
SELECT ALL + COALESCE ( + NULLIF ( - 23, + 44 ), + 89 ) AS col2
----
-23

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3215
SELECT + 45 * - 14 * COUNT( * ) AS col2, - CAST( NULL AS SIGNED ) + + ( ( + - 61 ) ) + - ( + + ( + 31 ) ) + SUM( DISTINCT - 27 ) - 41 * - 17
----
-630
NULL

skipif mysql # not compatible
query II rowsort label-3215
SELECT + 45 * - 14 * COUNT ( * ) AS col2, - CAST ( NULL AS INTEGER ) + + ( ( + - 61 ) ) + - ( + + ( + 31 ) ) + SUM ( DISTINCT - 27 ) - 41 * - 17
----
-630
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3216
SELECT + NULLIF ( - 61, + COUNT( * ) / - COUNT( * ) + + + 90 ) col2
----
-61

skipif mysql # not compatible
query I rowsort label-3216
SELECT + NULLIF ( - 61, + COUNT ( * ) / - COUNT ( * ) + + + 90 ) col2
----
-61

query I rowsort
SELECT ALL + 6 * + - 56 * + - 3 * + CASE + 23 WHEN - + 77 THEN 99 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3218
SELECT - COUNT( * ) * + + 57 / + - 82 / + ( - + CASE + - 9 WHEN - - 37 THEN + 97 * - 66 ELSE NULL END )
----
NULL

skipif mysql # not compatible
query I rowsort label-3218
SELECT - COUNT ( * ) * + + 57 / + - 82 / + ( - + CASE + - 9 WHEN - - 37 THEN + 97 * - 66 ELSE NULL END )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3219
SELECT ALL 21 DIV 4 * COALESCE ( 88, - 9 ) AS col2
----
440

skipif mysql # not compatible
query I rowsort label-3219
SELECT ALL 21 / 4 * COALESCE ( 88, - 9 ) AS col2
----
440

onlyif mysql # aggregate syntax: 
query II rowsort label-3220
SELECT DISTINCT + 7 AS col0, - 90 * 72 * - COUNT( * )
----
7
6480

skipif mysql # not compatible
query II rowsort label-3220
SELECT DISTINCT + 7 AS col0, - 90 * 72 * - COUNT ( * )
----
7
6480

query I rowsort
SELECT DISTINCT + ( - 45 ) AS col0
----
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-3222
SELECT ALL 5 * MAX( ALL + 35 ) + + 43 AS col1
----
218

skipif mysql # not compatible
query I rowsort label-3222
SELECT ALL 5 * MAX ( ALL + 35 ) + + 43 AS col1
----
218

onlyif mysql # aggregate syntax: 
query II rowsort label-3223
SELECT - 61 * - - COALESCE ( + - COUNT( + - 44 ), - - MIN( DISTINCT + 98 ) ) col2, + 96 + COUNT( * ) + + + 51 * + 72
----
61
3769

skipif mysql # not compatible
query II rowsort label-3223
SELECT - 61 * - - COALESCE ( + - COUNT ( + - 44 ), - - MIN ( DISTINCT + 98 ) ) col2, + 96 + COUNT ( * ) + + + 51 * + 72
----
61
3769

onlyif mysql # aggregate syntax: 
query II rowsort label-3224
SELECT COUNT( * ), + 80 col0
----
1
80

skipif mysql # not compatible
query II rowsort label-3224
SELECT COUNT ( * ), + 80 col0
----
1
80

onlyif mysql # aggregate syntax: 
query I rowsort label-3225
SELECT SUM( + 93 ) AS col2
----
93

skipif mysql # not compatible
query I rowsort label-3225
SELECT SUM ( + 93 ) AS col2
----
93

query I rowsort
SELECT - ( + - 93 ) - + - ( - 3 ) + - NULLIF ( - - 98, - 24 ) * + - 77 AS col0
----
7636

onlyif mysql # aggregate syntax: 
query I rowsort label-3227
SELECT SUM( + - 11 ) col2
----
-11

skipif mysql # not compatible
query I rowsort label-3227
SELECT SUM ( + - 11 ) col2
----
-11

query I rowsort
SELECT DISTINCT ( - 35 ) AS col0
----
-35

query I rowsort
SELECT DISTINCT + 89 + + + 40 AS col1
----
129

onlyif mysql # aggregate syntax: 
query I rowsort label-3230
SELECT ALL - 34 + + 94 + - 63 * + COUNT( * )
----
-3

skipif mysql # not compatible
query I rowsort label-3230
SELECT ALL - 34 + + 94 + - 63 * + COUNT ( * )
----
-3

query II rowsort
SELECT 38 AS col0, 58 * 89 * + 58 * - ( - 42 )
----
38
12574632

query I rowsort
SELECT DISTINCT NULLIF ( - + NULLIF ( + 99, + - 55 * + 89 * + - 5 ), - 33 ) AS col2
----
-99

query I rowsort
SELECT - - 58
----
58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3234
SELECT + COUNT( * ) * + CAST( 89 AS SIGNED ) - - 90 AS col0
----
179

skipif mysql # not compatible
query I rowsort label-3234
SELECT + COUNT ( * ) * + CAST ( 89 AS INTEGER ) - - 90 AS col0
----
179

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3235
SELECT - CAST( - - 2 AS SIGNED ) + - 82 AS col0
----
-84

skipif mysql # not compatible
query I rowsort label-3235
SELECT - CAST ( - - 2 AS INTEGER ) + - 82 AS col0
----
-84

query II rowsort
SELECT + NULLIF ( + 51, - 19 ), 60 AS col2
----
51
60

query I rowsort
SELECT - 0 + + 79 AS col1
----
79

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3238
SELECT + SUM( 71 ) DIV + 78 + + + 16 + + + 67 * - + COUNT( * ) DIV 85 AS col1
----
16

skipif mysql # not compatible
query I rowsort label-3238
SELECT + SUM ( 71 ) / + 78 + + + 16 + + + 67 * - + COUNT ( * ) / 85 AS col1
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-3239
SELECT - + 53 * + + 38 - + + 38 * + CASE - + ( 96 ) WHEN - MIN( 56 ) * - - 23 THEN COALESCE ( 86, + + 6 ) + + 42 END
----
NULL

skipif mysql # not compatible
query I rowsort label-3239
SELECT - + 53 * + + 38 - + + 38 * + CASE - + ( 96 ) WHEN - MIN ( 56 ) * - - 23 THEN COALESCE ( 86, + + 6 ) + + 42 END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3240
SELECT + + 48 * - COUNT( * ) / NULLIF ( 87, - 26 ) + + - CASE + CAST( NULL AS SIGNED ) WHEN - - COUNT( ALL 16 ) / + - 97 * COUNT( * ) THEN MAX( ALL - - 90 ) ELSE NULL END * - 15 + - 94 + + + AVG ( + 51 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3240
SELECT + + 48 * - COUNT ( * ) / NULLIF ( 87, - 26 ) + + - CASE + CAST ( NULL AS INTEGER ) WHEN - - COUNT ( ALL 16 ) / + - 97 * COUNT ( * ) THEN MAX ( ALL - - 90 ) ELSE NULL END * - 15 + - 94 + + + AVG ( + 51 ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3241
SELECT - - 79 + - 13 * + COUNT( * ) * + + MAX( DISTINCT + - ( ( 38 ) ) ) * 21
----
10453

skipif mysql # not compatible
query I rowsort label-3241
SELECT - - 79 + - 13 * + COUNT ( * ) * + + MAX ( DISTINCT + - ( ( 38 ) ) ) * 21
----
10453

query II rowsort
SELECT - 25 col2, - 37 + + 58 * + + 71
----
-25
4081

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3243
SELECT DISTINCT + CAST( NULL AS SIGNED ) * 29
----
NULL

skipif mysql # not compatible
query I rowsort label-3243
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * 29
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3244
SELECT ALL + - 99 - + 22 DIV - 64
----
-99

skipif mysql # not compatible
query I rowsort label-3244
SELECT ALL + - 99 - + 22 / - 64
----
-99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3245
SELECT + - 29 + MIN( ALL CAST( 70 AS SIGNED ) ) - - 10 * + - 59
----
-549

skipif mysql # not compatible
query I rowsort label-3245
SELECT + - 29 + MIN ( ALL CAST ( 70 AS INTEGER ) ) - - 10 * + - 59
----
-549

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3246
SELECT ALL - 24 * + NULLIF ( - COALESCE ( - COUNT( * ), - 18 * + 44 - + 54 + 57 * + MAX( + 38 ) * - COUNT( * ) + + CAST( NULL AS SIGNED ), - 29 ), + 71 * + 90 + 37 + + COUNT( * ) + + 16 * + 27 ) - - - CASE + 23 WHEN - 61 * 12 + - - COUNT( * ) - 24 THEN 67 * - 57 END + 30 - + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-3246
SELECT ALL - 24 * + NULLIF ( - COALESCE ( - COUNT ( * ), - 18 * + 44 - + 54 + 57 * + MAX ( + 38 ) * - COUNT ( * ) + + CAST ( NULL AS INTEGER ), - 29 ), + 71 * + 90 + 37 + + COUNT ( * ) + + 16 * + 27 ) - - - CASE + 23 WHEN - 61 * 12 + - - COUNT ( * ) - 24 THEN 67 * - 57 END + 30 - + COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3247
SELECT ALL COUNT( * ) DIV 52 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3247
SELECT ALL COUNT ( * ) / 52 AS col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3248
SELECT + CAST( - 79 AS SIGNED ) / + COALESCE ( - 63, CAST( NULL AS SIGNED ) * - - 60 - - 81 * ( - - 78 ) / COALESCE ( + - COUNT( * ), - - 10 ) * - MAX( + ( 95 ) ) + 22, + 22 + 3 ) * CASE + + 45 WHEN 91 THEN 87 WHEN - 0 * + 52 THEN 56 END * + + 55 + 20 - - - 93 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3248
SELECT + CAST ( - 79 AS INTEGER ) / + COALESCE ( - 63, CAST ( NULL AS INTEGER ) * - - 60 - - 81 * ( - - 78 ) / COALESCE ( + - COUNT ( * ), - - 10 ) * - MAX ( + ( 95 ) ) + 22, + 22 + 3 ) * CASE + + 45 WHEN 91 THEN 87 WHEN - 0 * + 52 THEN 56 END * + + 55 + 20 - - - 93 AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3249
SELECT - 12 * 66 + - 63 + + 82 + 50 * - 31 * 65 - - 89 + + 50 DIV - 4
----
-101446

skipif mysql # not compatible
query I rowsort label-3249
SELECT - 12 * 66 + - 63 + + 82 + 50 * - 31 * 65 - - 89 + + 50 / - 4
----
-101446

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3250
SELECT DISTINCT - COUNT( * ) DIV - + 60 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3250
SELECT DISTINCT - COUNT ( * ) / - + 60 AS col0
----
0

query I rowsort
SELECT + + 52 * - 46 AS col0
----
-2392

query I rowsort
SELECT + - CASE + - 57 WHEN 81 THEN - 86 END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-3253
SELECT ALL + 19 AS col2, + CASE + 1 WHEN 41 THEN - 6 + + + CAST( NULL AS DECIMAL ) WHEN 11 THEN CAST( + COUNT( * ) AS SIGNED ) END * + 36
----
19
NULL

skipif mysql # not compatible
query II rowsort label-3253
SELECT ALL + 19 AS col2, + CASE + 1 WHEN 41 THEN - 6 + + + CAST ( NULL AS REAL ) WHEN 11 THEN CAST ( + COUNT ( * ) AS INTEGER ) END * + 36
----
19
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3254
SELECT MAX( ALL 1 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-3254
SELECT MAX ( ALL 1 ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-3255
SELECT + CASE 61 WHEN 86 THEN + 62 * - + ( + 95 ) * 46 END / - + MIN( 31 ) + + 8 * + + 36 + - COUNT( * ) + 59 + - ( + + COUNT( * ) ) AS col0, 92
----
NULL
92

skipif mysql # not compatible
query II rowsort label-3255
SELECT + CASE 61 WHEN 86 THEN + 62 * - + ( + 95 ) * 46 END / - + MIN ( 31 ) + + 8 * + + 36 + - COUNT ( * ) + 59 + - ( + + COUNT ( * ) ) AS col0, 92
----
NULL
92

onlyif mysql # DIV for integer division: 
query II rowsort label-3256
SELECT ALL 80 * 42, 7 * - - 91 + + 20 DIV 5 AS col2
----
3360
641

skipif mysql # not compatible
query II rowsort label-3256
SELECT ALL 80 * 42, 7 * - - 91 + + 20 / 5 AS col2
----
3360
641

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3257
SELECT + COALESCE ( + COUNT( * ), 33 * ( + COUNT( * ) ) * - 6 * + 26, - NULLIF ( + + 83, + 66 ) + - 73 ) - - 99 AS col1, + CAST( NULL AS SIGNED ) + - 85 col1
----
100
NULL

skipif mysql # not compatible
query II rowsort label-3257
SELECT + COALESCE ( + COUNT ( * ), 33 * ( + COUNT ( * ) ) * - 6 * + 26, - NULLIF ( + + 83, + 66 ) + - 73 ) - - 99 AS col1, + CAST ( NULL AS INTEGER ) + - 85 col1
----
100
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3258
SELECT ALL COALESCE ( + 2, + - 37 ) * + NULLIF ( - COUNT( * ), + + 22 + - 38 ) + + - 98
----
-100

skipif mysql # not compatible
query I rowsort label-3258
SELECT ALL COALESCE ( + 2, + - 37 ) * + NULLIF ( - COUNT ( * ), + + 22 + - 38 ) + + - 98
----
-100

query I rowsort
SELECT - 85 - - + 53
----
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-3260
SELECT ALL ( 41 ) * + 85 + - COUNT( * ) * + + 32
----
3453

skipif mysql # not compatible
query I rowsort label-3260
SELECT ALL ( 41 ) * + 85 + - COUNT ( * ) * + + 32
----
3453

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3261
SELECT + 49 + + 0 - - 70 + + + MIN( - CAST( NULL AS DECIMAL ) ) / + NULLIF ( - - 24, ( 48 ) ) * - 59 + + 43 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3261
SELECT + 49 + + 0 - - 70 + + + MIN ( - CAST ( NULL AS REAL ) ) / + NULLIF ( - - 24, ( 48 ) ) * - 59 + + 43 AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3262
SELECT ALL + 75 DIV + + 88
----
0

skipif mysql # not compatible
query I rowsort label-3262
SELECT ALL + 75 / + + 88
----
0

query I rowsort
SELECT ALL 13 * + + ( + 49 ) + + 7
----
644

query I rowsort
SELECT 75 * 4 + - - 52
----
352

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3265
SELECT ALL + MAX( DISTINCT - 58 ) DIV - 67 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3265
SELECT ALL + MAX ( DISTINCT - 58 ) / - 67 AS col0
----
0

query I rowsort
SELECT - 95 + + 96
----
1

query I rowsort
SELECT ALL - - 39 * - 2 AS col0
----
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-3268
SELECT - + 94 + + COUNT( * )
----
-93

skipif mysql # not compatible
query I rowsort label-3268
SELECT - + 94 + + COUNT ( * )
----
-93

query I rowsort
SELECT - + 16 * 82 + - 50 AS col2
----
-1362

query II rowsort
SELECT - + 8 * - + 52 AS col1, + 76
----
416
76

query I rowsort
SELECT ALL - ( - 4 ) - 54
----
-50

query I rowsort
SELECT 6 * + 74
----
444

query I rowsort
SELECT - - 52 AS col0
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-3274
SELECT ( + MAX( DISTINCT - + 52 ) ) AS col0
----
-52

skipif mysql # not compatible
query I rowsort label-3274
SELECT ( + MAX ( DISTINCT - + 52 ) ) AS col0
----
-52

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3275
SELECT - - AVG ( DISTINCT + CAST( NULL AS SIGNED ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3275
SELECT - - AVG ( DISTINCT + CAST ( NULL AS INTEGER ) ) AS col0
----
NULL

query I rowsort
SELECT 85 * + 37 + + 48
----
3193

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3277
SELECT ALL ( + CAST( NULL AS SIGNED ) ), 38 AS col2
----
NULL
38

skipif mysql # not compatible
query II rowsort label-3277
SELECT ALL ( + CAST ( NULL AS INTEGER ) ), 38 AS col2
----
NULL
38

onlyif mysql # aggregate syntax: 
query I rowsort label-3278
SELECT - MAX( - + 83 )
----
83

skipif mysql # not compatible
query I rowsort label-3278
SELECT - MAX ( - + 83 )
----
83

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3279
SELECT + 36 - + + CAST( - - MAX( ( - - 26 ) ) AS SIGNED )
----
10

skipif mysql # not compatible
query I rowsort label-3279
SELECT + 36 - + + CAST ( - - MAX ( ( - - 26 ) ) AS INTEGER )
----
10

query I rowsort
SELECT - 45 + 86
----
41

query I rowsort
SELECT DISTINCT + + 55 + - 90 + + + COALESCE ( - ( + - 98 ), - + 31 ) AS col2
----
63

query II rowsort
SELECT ALL 39 AS col0, - 41 * - + 50 AS col2
----
39
2050

query II rowsort
SELECT DISTINCT 27 + - 45 + + + 36 AS col2, ( - 77 )
----
18
-77

query I rowsort
SELECT DISTINCT - 60 * + + ( + 29 ) AS col1
----
-1740

onlyif mysql # aggregate syntax: 
query I rowsort label-3285
SELECT ALL + 6 + + - 76 * - + COUNT( * )
----
82

skipif mysql # not compatible
query I rowsort label-3285
SELECT ALL + 6 + + - 76 * - + COUNT ( * )
----
82

query I rowsort
SELECT DISTINCT - 51 + - + 67 AS col1
----
-118

query I rowsort
SELECT 58 * - + 65 AS col1
----
-3770

onlyif mysql # DIV for integer division: 
query I rowsort label-3288
SELECT + ( - NULLIF ( 77, + 43 ) ) DIV + 66 + 9 AS col0
----
8

skipif mysql # not compatible
query I rowsort label-3288
SELECT + ( - NULLIF ( 77, + 43 ) ) / + 66 + 9 AS col0
----
8

onlyif mysql # aggregate syntax: 
query II rowsort label-3289
SELECT DISTINCT 91 + - 13 + 7 AS col0, - COUNT( * ) * + 92
----
85
-92

skipif mysql # not compatible
query II rowsort label-3289
SELECT DISTINCT 91 + - 13 + 7 AS col0, - COUNT ( * ) * + 92
----
85
-92

onlyif mysql # DIV for integer division: 
query I rowsort label-3290
SELECT ALL 50 DIV + 1
----
50

skipif mysql # not compatible
query I rowsort label-3290
SELECT ALL 50 / + 1
----
50

onlyif mysql # aggregate syntax: 
query II rowsort label-3291
SELECT + 7 AS col2, 0 * 91 + COUNT( * )
----
7
1

skipif mysql # not compatible
query II rowsort label-3291
SELECT + 7 AS col2, 0 * 91 + COUNT ( * )
----
7
1

query I rowsort
SELECT 3 + + 1 AS col1
----
4

query II rowsort
SELECT DISTINCT - 45 AS col1, 54 + + + 53 * - 84
----
-45
-4398

onlyif mysql # aggregate syntax: 
query I rowsort label-3294
SELECT MIN( ALL + + 77 ) * + COUNT( * ) AS col2
----
77

skipif mysql # not compatible
query I rowsort label-3294
SELECT MIN ( ALL + + 77 ) * + COUNT ( * ) AS col2
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-3295
SELECT ALL + 34 + - COUNT( * ) AS col1
----
33

skipif mysql # not compatible
query I rowsort label-3295
SELECT ALL + 34 + - COUNT ( * ) AS col1
----
33

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3296
SELECT DISTINCT COUNT( ALL - CAST( 82 AS SIGNED ) ) + 74 AS col1
----
75

skipif mysql # not compatible
query I rowsort label-3296
SELECT DISTINCT COUNT ( ALL - CAST ( 82 AS INTEGER ) ) + 74 AS col1
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-3297
SELECT ( + - 51 ) * + - COUNT( * ) * + 25 + 63 AS col0
----
1338

skipif mysql # not compatible
query I rowsort label-3297
SELECT ( + - 51 ) * + - COUNT ( * ) * + 25 + 63 AS col0
----
1338

onlyif mysql # aggregate syntax: 
query I rowsort label-3298
SELECT DISTINCT COUNT( * ) * + - 37
----
-37

skipif mysql # not compatible
query I rowsort label-3298
SELECT DISTINCT COUNT ( * ) * + - 37
----
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-3299
SELECT DISTINCT COUNT( * ) - - COUNT( * ) + COUNT( * ) * - - 88
----
90

skipif mysql # not compatible
query I rowsort label-3299
SELECT DISTINCT COUNT ( * ) - - COUNT ( * ) + COUNT ( * ) * - - 88
----
90

query II rowsort
SELECT 63 col1, 7
----
63
7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3301
SELECT CAST( NULL AS SIGNED ) / - + CAST( + COUNT( * ) AS SIGNED ) AS col1, 52 + - 19
----
NULL
33

skipif mysql # not compatible
query II rowsort label-3301
SELECT CAST ( NULL AS INTEGER ) / - + CAST ( + COUNT ( * ) AS INTEGER ) AS col1, 52 + - 19
----
NULL
33

query II rowsort
SELECT ( + 90 ) * 84 AS col2, - 33
----
7560
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-3303
SELECT COUNT( * ) - 3 * - 5 AS col2
----
16

skipif mysql # not compatible
query I rowsort label-3303
SELECT COUNT ( * ) - 3 * - 5 AS col2
----
16

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3304
SELECT CAST( NULL AS SIGNED ) * + 53
----
NULL

skipif mysql # not compatible
query I rowsort label-3304
SELECT CAST ( NULL AS INTEGER ) * + 53
----
NULL

query I rowsort
SELECT ALL - CASE 67 WHEN ( - 93 ) THEN NULL ELSE 79 END
----
-79

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3306
SELECT DISTINCT - ( CASE 45 WHEN 79 + - COUNT( * ) THEN + 6 * + AVG ( ALL 8 ) WHEN 32 * - CAST( NULL AS SIGNED ) THEN NULL ELSE - 7 + + 39 * 21 END ) DIV + ( + ( + 32 ) + - MAX( 0 ) * - 79 )
----
-25

skipif mysql # not compatible
query I rowsort label-3306
SELECT DISTINCT - ( CASE 45 WHEN 79 + - COUNT ( * ) THEN + 6 * + AVG ( ALL 8 ) WHEN 32 * - CAST ( NULL AS INTEGER ) THEN NULL ELSE - 7 + + 39 * 21 END ) / + ( + ( + 32 ) + - MAX ( 0 ) * - 79 )
----
-25

query I rowsort
SELECT 37 * + 44
----
1628

query I rowsort
SELECT ALL - 9 * - 76
----
684

onlyif mysql # DIV for integer division: 
query I rowsort label-3309
SELECT ALL 12 DIV ( 64 )
----
0

skipif mysql # not compatible
query I rowsort label-3309
SELECT ALL 12 / ( 64 )
----
0

query I rowsort
SELECT DISTINCT 29 * 49
----
1421

query I rowsort
SELECT 27 + 49 * 9 AS col0
----
468

onlyif mysql # aggregate syntax: 
query I rowsort label-3312
SELECT 62 - + COUNT( * )
----
61

skipif mysql # not compatible
query I rowsort label-3312
SELECT 62 - + COUNT ( * )
----
61

onlyif mysql # DIV for integer division: 
query I rowsort label-3313
SELECT 33 DIV + 54 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3313
SELECT 33 / + 54 AS col0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3314
SELECT 69 DIV - 97 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3314
SELECT 69 / - 97 AS col2
----
0

query I rowsort
SELECT 78 * + 44 AS col2
----
3432

query I rowsort
SELECT ALL + 37 + - 11 AS col0
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-3317
SELECT ALL - 82 + SUM( 67 )
----
-15

skipif mysql # not compatible
query I rowsort label-3317
SELECT ALL - 82 + SUM ( 67 )
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-3318
SELECT 52 + COUNT( * ) AS col2
----
53

skipif mysql # not compatible
query I rowsort label-3318
SELECT 52 + COUNT ( * ) AS col2
----
53

query I rowsort
SELECT ALL + 19 + ( 91 )
----
110

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3320
SELECT 62 + - COALESCE ( ( - 29 ), - 25, - COUNT( * ) * - 65 ) DIV + 12
----
64

skipif mysql # not compatible
query I rowsort label-3320
SELECT 62 + - COALESCE ( ( - 29 ), - 25, - COUNT ( * ) * - 65 ) / + 12
----
64

query I rowsort
SELECT ALL + 46 * 4 AS col2
----
184

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3322
SELECT 68 * CASE 54 WHEN COUNT( DISTINCT 94 ) THEN NULL WHEN 83 * ( - 99 ) + 99 / + CAST( NULL AS SIGNED ) THEN 72 * 6 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-3322
SELECT 68 * CASE 54 WHEN COUNT ( DISTINCT 94 ) THEN NULL WHEN 83 * ( - 99 ) + 99 / + CAST ( NULL AS INTEGER ) THEN 72 * 6 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3323
SELECT ALL + 37 + - CASE - 51 + COUNT( * ) / + 18 WHEN - COALESCE ( 94, + 42 * - NULLIF ( - 74, 24 ) + 70 ) * + 99 THEN - 2 * + 46 + ( - SUM( - 29 ) ) WHEN - 91 THEN 92 + 70 * 84 ELSE NULL END * - 60 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3323
SELECT ALL + 37 + - CASE - 51 + COUNT ( * ) / + 18 WHEN - COALESCE ( 94, + 42 * - NULLIF ( - 74, 24 ) + 70 ) * + 99 THEN - 2 * + 46 + ( - SUM ( - 29 ) ) WHEN - 91 THEN 92 + 70 * 84 ELSE NULL END * - 60 AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3324
SELECT DISTINCT MIN( NULLIF ( ( + CAST( 16 AS SIGNED ) ), - 35 ) )
----
16

skipif mysql # not compatible
query I rowsort label-3324
SELECT DISTINCT MIN ( NULLIF ( ( + CAST ( 16 AS INTEGER ) ), - 35 ) )
----
16

query I rowsort
SELECT ALL + 19 + 77
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-3326
SELECT COUNT( 11 ) * COUNT( * ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-3326
SELECT COUNT ( 11 ) * COUNT ( * ) AS col2
----
1

query I rowsort
SELECT DISTINCT + 2 + - 96
----
-94

query I rowsort
SELECT DISTINCT - 93 * - 81
----
7533

query I rowsort
SELECT DISTINCT - COALESCE ( 92, - 77 )
----
-92

query I rowsort
SELECT ALL - 75 * 76
----
-5700

query I rowsort
SELECT 84 + 46
----
130

query I rowsort
SELECT DISTINCT 61 * 37 + 43
----
2300

onlyif mysql # DIV for integer division: 
query I rowsort label-3333
SELECT DISTINCT - 97 * + 2 - 63 DIV - 90 AS col1
----
-194

skipif mysql # not compatible
query I rowsort label-3333
SELECT DISTINCT - 97 * + 2 - 63 / - 90 AS col1
----
-194

query I rowsort
SELECT DISTINCT - NULLIF ( 72, 11 + 37 ) AS col2
----
-72

query I rowsort
SELECT ALL - 75 * - 87 AS col0
----
6525

onlyif mysql # aggregate syntax: 
query I rowsort label-3336
SELECT SUM( - 18 ) AS col2
----
-18

skipif mysql # not compatible
query I rowsort label-3336
SELECT SUM ( - 18 ) AS col2
----
-18

query I rowsort
SELECT ALL - ( 72 )
----
-72

query I rowsort
SELECT COALESCE ( 85, 32 + + 35 ) - - 51 AS col1
----
136

query I rowsort
SELECT DISTINCT - ( ( 6 ) ) col1
----
-6

query I rowsort
SELECT ( ( 2 ) ) * - 24 + - 38 AS col1
----
-86

query I rowsort
SELECT 28 - 68 * ( 14 )
----
-924

onlyif mysql # DIV for integer division: 
query I rowsort label-3342
SELECT DISTINCT 95 DIV 15 AS col2
----
6

skipif mysql # not compatible
query I rowsort label-3342
SELECT DISTINCT 95 / 15 AS col2
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-3343
SELECT - 41 * COALESCE ( MIN( - 18 ), + 66 ) + - 2
----
736

skipif mysql # not compatible
query I rowsort label-3343
SELECT - 41 * COALESCE ( MIN ( - 18 ), + 66 ) + - 2
----
736

query I rowsort
SELECT + 75 + ( 77 - - 14 ) * 12 AS col2
----
1167

onlyif mysql # aggregate syntax: 
query I rowsort label-3345
SELECT ALL - + 68 - - COUNT( * ) AS col2
----
-67

skipif mysql # not compatible
query I rowsort label-3345
SELECT ALL - + 68 - - COUNT ( * ) AS col2
----
-67

query I rowsort
SELECT ALL + 80 * + 44
----
3520

onlyif mysql # aggregate syntax: 
query I rowsort label-3347
SELECT DISTINCT + - SUM( DISTINCT - 69 )
----
69

skipif mysql # not compatible
query I rowsort label-3347
SELECT DISTINCT + - SUM ( DISTINCT - 69 )
----
69

query I rowsort
SELECT DISTINCT - 47 * 57
----
-2679

query I rowsort
SELECT ALL - 36 * 92 AS col0
----
-3312

query I rowsort
SELECT DISTINCT + - 90 AS col2
----
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-3351
SELECT ALL 95 * COUNT( * ) AS col2
----
95

skipif mysql # not compatible
query I rowsort label-3351
SELECT ALL 95 * COUNT ( * ) AS col2
----
95

query I rowsort
SELECT + 39 + - 72 AS col1
----
-33

query I rowsort
SELECT + 82 * - 67 AS col1
----
-5494

onlyif mysql # aggregate syntax: 
query I rowsort label-3354
SELECT - SUM( DISTINCT 75 )
----
-75

skipif mysql # not compatible
query I rowsort label-3354
SELECT - SUM ( DISTINCT 75 )
----
-75

query I rowsort
SELECT - - 12 col0
----
12

query I rowsort
SELECT DISTINCT - 53 + 67 * 65 col2
----
4302

query I rowsort
SELECT ALL 35 + 30 col1
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-3358
SELECT DISTINCT COUNT( * ) + + 28 AS col1
----
29

skipif mysql # not compatible
query I rowsort label-3358
SELECT DISTINCT COUNT ( * ) + + 28 AS col1
----
29

query I rowsort
SELECT + + 15 * 77
----
1155

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3360
SELECT ALL - 4 DIV COUNT( * )
----
-4

skipif mysql # not compatible
query I rowsort label-3360
SELECT ALL - 4 / COUNT ( * )
----
-4

onlyif mysql # DIV for integer division: 
query I rowsort label-3361
SELECT ALL 97 + 73 DIV 66 col0
----
98

skipif mysql # not compatible
query I rowsort label-3361
SELECT ALL 97 + 73 / 66 col0
----
98

onlyif mysql # aggregate syntax: 
query I rowsort label-3362
SELECT ALL + 35 + SUM( 3 - - 31 ) col2
----
69

skipif mysql # not compatible
query I rowsort label-3362
SELECT ALL + 35 + SUM ( 3 - - 31 ) col2
----
69

query I rowsort
SELECT - + ( + 87 ) AS col1
----
-87

query I rowsort
SELECT ALL 75 * - 54
----
-4050

onlyif mysql # aggregate syntax: 
query I rowsort label-3365
SELECT ALL MAX( ALL + 19 )
----
19

skipif mysql # not compatible
query I rowsort label-3365
SELECT ALL MAX ( ALL + 19 )
----
19

query I rowsort
SELECT ALL + 6 + 92 AS col0
----
98

onlyif mysql # aggregate syntax: 
query I rowsort label-3367
SELECT ALL MIN( - 98 ) AS col1
----
-98

skipif mysql # not compatible
query I rowsort label-3367
SELECT ALL MIN ( - 98 ) AS col1
----
-98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3368
SELECT DISTINCT 56 - CAST( NULL AS SIGNED ) + 52 * 28 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3368
SELECT DISTINCT 56 - CAST ( NULL AS INTEGER ) + 52 * 28 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3369
SELECT DISTINCT CASE + 53 WHEN + COUNT( * ) THEN + CAST( NULL AS SIGNED ) * + 4 + - 7 * + CASE - MAX( ALL + 96 ) WHEN 86 THEN + 18 - 2 WHEN 64 * 18 THEN NULLIF ( 74, - 62 ) END ELSE CASE 59 WHEN 16 + 91 THEN 98 * 86 + 24 WHEN 33 - + NULLIF ( + 52 + + 41, 25 ) / COUNT( ALL COALESCE ( + 28, + 17 ) - + 46 ) THEN - ( - 4 ) WHEN + 68 THEN + 83 / CASE 70 * 60 WHEN - 66 THEN AVG ( 79 ) END END END
----
NULL

skipif mysql # not compatible
query I rowsort label-3369
SELECT DISTINCT CASE + 53 WHEN + COUNT ( * ) THEN + CAST ( NULL AS INTEGER ) * + 4 + - 7 * + CASE - MAX ( ALL + 96 ) WHEN 86 THEN + 18 - 2 WHEN 64 * 18 THEN NULLIF ( 74, - 62 ) END ELSE CASE 59 WHEN 16 + 91 THEN 98 * 86 + 24 WHEN 33 - + NULLIF ( + 52 + + 41, 25 ) / COUNT ( ALL COALESCE ( + 28, + 17 ) - + 46 ) THEN - ( - 4 ) WHEN + 68 THEN + 83 / CASE 70 * 60 WHEN - 66 THEN AVG ( 79 ) END END END
----
NULL

query I rowsort
SELECT - CASE - 47 WHEN - 97 THEN 7 * + 85 ELSE NULL END - - 51 col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3371
SELECT ALL ( + 0 ) DIV 23 - 14
----
-14

skipif mysql # not compatible
query I rowsort label-3371
SELECT ALL ( + 0 ) / 23 - 14
----
-14

query I rowsort
SELECT - 79 * 41
----
-3239

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3373
SELECT ALL - CAST( NULL AS SIGNED ) * COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3373
SELECT ALL - CAST ( NULL AS INTEGER ) * COUNT ( * ) AS col0
----
NULL

query I rowsort
SELECT 7 * 45 + 45
----
360

query I rowsort
SELECT ( - 68 ) AS col1
----
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-3376
SELECT ALL + CASE + 67 WHEN 69 THEN COUNT( * ) - + 4 WHEN + 72 THEN NULL ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3376
SELECT ALL + CASE + 67 WHEN 69 THEN COUNT ( * ) - + 4 WHEN + 72 THEN NULL ELSE NULL END AS col0
----
NULL

query I rowsort
SELECT ( 82 )
----
82

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3378
SELECT - COUNT( * ) DIV - COUNT( ALL + 93 ) + 28
----
29

skipif mysql # not compatible
query I rowsort label-3378
SELECT - COUNT ( * ) / - COUNT ( ALL + 93 ) + 28
----
29

query I rowsort
SELECT - 31 - 53
----
-84

query I rowsort
SELECT - 43 * - 85
----
3655

onlyif mysql # aggregate syntax: 
query I rowsort label-3381
SELECT ALL - COUNT( * ) * + 73
----
-73

skipif mysql # not compatible
query I rowsort label-3381
SELECT ALL - COUNT ( * ) * + 73
----
-73

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3382
SELECT ( + CAST( NULL AS SIGNED ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3382
SELECT ( + CAST ( NULL AS INTEGER ) ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3383
SELECT + MIN( 6 ) col1
----
6

skipif mysql # not compatible
query I rowsort label-3383
SELECT + MIN ( 6 ) col1
----
6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3384
SELECT ALL + CAST( - + 84 AS SIGNED )
----
-84

skipif mysql # not compatible
query I rowsort label-3384
SELECT ALL + CAST ( - + 84 AS INTEGER )
----
-84

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3385
SELECT DISTINCT + CAST( + ( 84 ) AS SIGNED )
----
84

skipif mysql # not compatible
query I rowsort label-3385
SELECT DISTINCT + CAST ( + ( 84 ) AS INTEGER )
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-3386
SELECT DISTINCT - 98 * 80 * NULLIF ( + 18, - COUNT( * ) ) AS col1
----
-141120

skipif mysql # not compatible
query I rowsort label-3386
SELECT DISTINCT - 98 * 80 * NULLIF ( + 18, - COUNT ( * ) ) AS col1
----
-141120

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3387
SELECT - + 71 DIV - - COALESCE ( + 64, + 97, - SUM( 90 ) )
----
-1

skipif mysql # not compatible
query I rowsort label-3387
SELECT - + 71 / - - COALESCE ( + 64, + 97, - SUM ( 90 ) )
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3388
SELECT 60 * - CAST( NULL AS SIGNED ) + - CASE + 21 WHEN NULLIF ( - 65, 28 ) * - CAST( + CAST( COUNT( * ) AS SIGNED ) AS SIGNED ) THEN ( - 77 ) + 40 WHEN 45 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-3388
SELECT 60 * - CAST ( NULL AS INTEGER ) + - CASE + 21 WHEN NULLIF ( - 65, 28 ) * - CAST ( + CAST ( COUNT ( * ) AS INTEGER ) AS INTEGER ) THEN ( - 77 ) + 40 WHEN 45 THEN NULL END
----
NULL

query I rowsort
SELECT ALL + - 83 AS col2
----
-83

onlyif mysql # DIV for integer division: 
query I rowsort label-3390
SELECT - 67 DIV - 41 - - 83
----
84

skipif mysql # not compatible
query I rowsort label-3390
SELECT - 67 / - 41 - - 83
----
84

onlyif mysql # DIV for integer division: 
query I rowsort label-3391
SELECT + 36 DIV 27 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-3391
SELECT + 36 / 27 AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3392
SELECT ALL - ( + - 59 ) * - 52 + - COUNT( * )
----
-3069

skipif mysql # not compatible
query I rowsort label-3392
SELECT ALL - ( + - 59 ) * - 52 + - COUNT ( * )
----
-3069

onlyif mysql # aggregate syntax: 
query I rowsort label-3393
SELECT - - MIN( - 87 ) - COUNT( * ) * 41
----
-128

skipif mysql # not compatible
query I rowsort label-3393
SELECT - - MIN ( - 87 ) - COUNT ( * ) * 41
----
-128

query I rowsort
SELECT + ( - 77 ) * 57 AS col2
----
-4389

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3395
SELECT + 69 * + CAST( - 68 AS SIGNED ) * - 64 - 85
----
300203

skipif mysql # not compatible
query I rowsort label-3395
SELECT + 69 * + CAST ( - 68 AS INTEGER ) * - 64 - 85
----
300203

query I rowsort
SELECT DISTINCT + 42 col0
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-3397
SELECT DISTINCT - + MAX( DISTINCT 53 ) * + 69 + 19 * - 79
----
-5158

skipif mysql # not compatible
query I rowsort label-3397
SELECT DISTINCT - + MAX ( DISTINCT 53 ) * + 69 + 19 * - 79
----
-5158

onlyif mysql # DIV for integer division: 
query I rowsort label-3398
SELECT DISTINCT + 75 * 59 DIV 97 AS col1
----
45

skipif mysql # not compatible
query I rowsort label-3398
SELECT DISTINCT + 75 * 59 / 97 AS col1
----
45

query I rowsort
SELECT + + 69 * + + 44
----
3036

query I rowsort
SELECT DISTINCT NULLIF ( + NULLIF ( 90, - 20 ), 17 * - ( ( 61 ) ) + - NULLIF ( ( 74 ), - 89 / 46 - - 18 ) ) AS col0
----
90

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3401
SELECT DISTINCT CASE + ( - COALESCE ( + 4, 90 ) ) WHEN CAST( NULL AS SIGNED ) THEN NULL WHEN + 78 THEN NULL ELSE + COUNT( + ( - CAST( + 38 AS SIGNED ) ) ) * - 1 - 92 * - 59 END * 17 AS col1
----
92259

skipif mysql # not compatible
query I rowsort label-3401
SELECT DISTINCT CASE + ( - COALESCE ( + 4, 90 ) ) WHEN CAST ( NULL AS INTEGER ) THEN NULL WHEN + 78 THEN NULL ELSE + COUNT ( + ( - CAST ( + 38 AS INTEGER ) ) ) * - 1 - 92 * - 59 END * 17 AS col1
----
92259

onlyif mysql # aggregate syntax: 
query I rowsort label-3402
SELECT + ( - CASE - SUM( - ( 15 ) ) WHEN - 32 - 27 THEN NULL WHEN + 13 / + 60 + ( 56 + AVG ( - 47 ) ) THEN 84 + + 42 * 75 END ) * 75 + COUNT( * ) * 10 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3402
SELECT + ( - CASE - SUM ( - ( 15 ) ) WHEN - 32 - 27 THEN NULL WHEN + 13 / + 60 + ( 56 + AVG ( - 47 ) ) THEN 84 + + 42 * 75 END ) * 75 + COUNT ( * ) * 10 col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3403
SELECT + COUNT( * ) - + ( COUNT( * ) ) * 92
----
-91

skipif mysql # not compatible
query I rowsort label-3403
SELECT + COUNT ( * ) - + ( COUNT ( * ) ) * 92
----
-91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3404
SELECT DISTINCT 13 * CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3404
SELECT DISTINCT 13 * CAST ( NULL AS INTEGER ) AS col1
----
NULL

query II rowsort
SELECT DISTINCT 39, 43 * + 11 AS col2
----
39
473

onlyif mysql # aggregate syntax: 
query I rowsort label-3406
SELECT + COUNT( * ) + + - 70
----
-69

skipif mysql # not compatible
query I rowsort label-3406
SELECT + COUNT ( * ) + + - 70
----
-69

onlyif mysql # aggregate syntax: 
query II rowsort label-3407
SELECT ALL COUNT( * ) AS col2, + 69 + SUM( - 85 ) AS col2
----
1
-16

skipif mysql # not compatible
query II rowsort label-3407
SELECT ALL COUNT ( * ) AS col2, + 69 + SUM ( - 85 ) AS col2
----
1
-16

query I rowsort
SELECT + 85 + COALESCE ( - 66, 3 ) * 82 AS col0
----
-5327

onlyif mysql # aggregate syntax: 
query I rowsort label-3409
SELECT ALL COALESCE ( + + 94, - + COUNT( * ) + - 88 )
----
94

skipif mysql # not compatible
query I rowsort label-3409
SELECT ALL COALESCE ( + + 94, - + COUNT ( * ) + - 88 )
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-3410
SELECT DISTINCT + COUNT( * ) * - + 13 * + 0 col0
----
0

skipif mysql # not compatible
query I rowsort label-3410
SELECT DISTINCT + COUNT ( * ) * - + 13 * + 0 col0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3411
SELECT ALL 56, CAST( NULL AS SIGNED ) col1
----
56
NULL

skipif mysql # not compatible
query II rowsort label-3411
SELECT ALL 56, CAST ( NULL AS INTEGER ) col1
----
56
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3412
SELECT + 79 * - - 2 * - COUNT( * )
----
-158

skipif mysql # not compatible
query I rowsort label-3412
SELECT + 79 * - - 2 * - COUNT ( * )
----
-158

onlyif mysql # aggregate syntax: 
query I rowsort label-3413
SELECT + CASE - - 13 WHEN + - CASE COUNT( * ) WHEN - 42 * 70 THEN - 34 + 7 END THEN COUNT( * ) + 50 WHEN - 32 - 63 THEN + 15 + + 37 / + 48 END + + 16 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3413
SELECT + CASE - - 13 WHEN + - CASE COUNT ( * ) WHEN - 42 * 70 THEN - 34 + 7 END THEN COUNT ( * ) + 50 WHEN - 32 - 63 THEN + 15 + + 37 / + 48 END + + 16 AS col1
----
NULL

query I rowsort
SELECT - ( COALESCE ( 49, - COALESCE ( 64, 54 + 29 * 58 ) ) )
----
-49

query I rowsort
SELECT - 55 * 64
----
-3520

query I rowsort
SELECT - ( - 59 ) AS col2
----
59

query I rowsort
SELECT - 32 + + - 51
----
-83

query I rowsort
SELECT - 49 * 33
----
-1617

query I rowsort
SELECT ALL CASE - 25 WHEN - 91 THEN + ( 77 ) WHEN ( + CASE 42 WHEN 10 THEN - 91 - + 73 END ) * 69 THEN + 76 END * + 35
----
NULL

query I rowsort
SELECT ALL - 58 * - 59 AS col1
----
3422

query I rowsort
SELECT 12 * 57
----
684

query I rowsort
SELECT 47 * 35 * - 42 * 92 AS col1
----
-6356280

query II rowsort
SELECT + 78, + 99 + 51 AS col0
----
78
150

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3424
SELECT 37 * + - COUNT( 1 ) * + COUNT( DISTINCT + 72 * + CAST( - 30 AS SIGNED ) )
----
-37

skipif mysql # not compatible
query I rowsort label-3424
SELECT 37 * + - COUNT ( 1 ) * + COUNT ( DISTINCT + 72 * + CAST ( - 30 AS INTEGER ) )
----
-37

query I rowsort
SELECT ALL 41 + 26
----
67

onlyif mysql # aggregate syntax: 
query I rowsort label-3426
SELECT COALESCE ( + COUNT( ALL - - 27 ), - 86 ) - 11 * - 57 AS col2
----
628

skipif mysql # not compatible
query I rowsort label-3426
SELECT COALESCE ( + COUNT ( ALL - - 27 ), - 86 ) - 11 * - 57 AS col2
----
628

query I rowsort
SELECT ALL - + ( + + 52 )
----
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-3428
SELECT 9 * 78 - + 72 + SUM( ALL - 46 + - 30 )
----
554

skipif mysql # not compatible
query I rowsort label-3428
SELECT 9 * 78 - + 72 + SUM ( ALL - 46 + - 30 )
----
554

onlyif mysql # aggregate syntax: 
query I rowsort label-3429
SELECT + + CASE - 70 WHEN COUNT( * ) THEN - COALESCE ( COUNT( * ), 26 * 41 ) ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3429
SELECT + + CASE - 70 WHEN COUNT ( * ) THEN - COALESCE ( COUNT ( * ), 26 * 41 ) ELSE NULL END AS col1
----
NULL

query I rowsort
SELECT ALL - + 25 + - - 79
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-3431
SELECT 6 + COUNT( * ) + - 19 AS col2
----
-12

skipif mysql # not compatible
query I rowsort label-3431
SELECT 6 + COUNT ( * ) + - 19 AS col2
----
-12

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3432
SELECT - 29 AS col1, 58 + - - COUNT( - ( CAST( NULL AS SIGNED ) ) ) - CASE + 41 WHEN ( - COALESCE ( + 39, 34, 44 ) ) * - COUNT( DISTINCT - 54 ) THEN 91 * 64 ELSE 65 * + 71 - + 60 END
----
-29
-4497

skipif mysql # not compatible
query II rowsort label-3432
SELECT - 29 AS col1, 58 + - - COUNT ( - ( CAST ( NULL AS INTEGER ) ) ) - CASE + 41 WHEN ( - COALESCE ( + 39, 34, 44 ) ) * - COUNT ( DISTINCT - 54 ) THEN 91 * 64 ELSE 65 * + 71 - + 60 END
----
-29
-4497

query I rowsort
SELECT - 74 + + - 26
----
-100

query I rowsort
SELECT ALL + - 13 * 22 AS col0
----
-286

query I rowsort
SELECT ALL - 68 + - ( + 80 ) AS col2
----
-148

onlyif mysql # aggregate syntax: 
query II rowsort label-3436
SELECT + COUNT( * ), 31 AS col2
----
1
31

skipif mysql # not compatible
query II rowsort label-3436
SELECT + COUNT ( * ), 31 AS col2
----
1
31

query I rowsort
SELECT + 54 * 25 + + - 72 AS col2
----
1278

query I rowsort
SELECT ALL + + ( + - 16 ) + 62 + 31
----
77

query I rowsort
SELECT DISTINCT - - 83 + - 27 * - 11 * 62 AS col2
----
18497

query I rowsort
SELECT ALL + - ( + - 66 ) * 19
----
1254

onlyif mysql # aggregate syntax: 
query II rowsort label-3441
SELECT + + 77 AS col0, ( COUNT( * ) ) col1
----
77
1

skipif mysql # not compatible
query II rowsort label-3441
SELECT + + 77 AS col0, ( COUNT ( * ) ) col1
----
77
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3442
SELECT ALL - COUNT( 93 )
----
-1

skipif mysql # not compatible
query I rowsort label-3442
SELECT ALL - COUNT ( 93 )
----
-1

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3443
SELECT + ( CAST( NULL AS DECIMAL ) ) + + 49 + 87 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3443
SELECT + ( CAST ( NULL AS REAL ) ) + + 49 + 87 col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3444
SELECT 54 * - CAST( + AVG ( DISTINCT 45 ) AS SIGNED ) AS col1
----
-2430

skipif mysql # not compatible
query I rowsort label-3444
SELECT 54 * - CAST ( + AVG ( DISTINCT 45 ) AS INTEGER ) AS col1
----
-2430

onlyif mysql # aggregate syntax: 
query I rowsort label-3445
SELECT - 46 * + SUM( DISTINCT - 88 ) col0
----
4048

skipif mysql # not compatible
query I rowsort label-3445
SELECT - 46 * + SUM ( DISTINCT - 88 ) col0
----
4048

onlyif mysql # DIV for integer division: 
query I rowsort label-3446
SELECT DISTINCT + 10 DIV - 89
----
0

skipif mysql # not compatible
query I rowsort label-3446
SELECT DISTINCT + 10 / - 89
----
0

query I rowsort
SELECT ALL - 52 - - - 94 - + - 27 + 96 * 76 * 55 * + 54
----
21669001

onlyif mysql # aggregate syntax: 
query I rowsort label-3448
SELECT + 90 * COUNT( * )
----
90

skipif mysql # not compatible
query I rowsort label-3448
SELECT + 90 * COUNT ( * )
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-3449
SELECT 3 * COUNT( * ) col1
----
3

skipif mysql # not compatible
query I rowsort label-3449
SELECT 3 * COUNT ( * ) col1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3450
SELECT DISTINCT COUNT( * ) * - 31
----
-31

skipif mysql # not compatible
query I rowsort label-3450
SELECT DISTINCT COUNT ( * ) * - 31
----
-31

query I rowsort
SELECT ALL 74 - + 8
----
66

query I rowsort
SELECT 86 - - 80 + + 7 + - 54 AS col1
----
119

onlyif mysql # aggregate syntax: 
query I rowsort label-3453
SELECT ALL MIN( ALL + 97 ) * - 9
----
-873

skipif mysql # not compatible
query I rowsort label-3453
SELECT ALL MIN ( ALL + 97 ) * - 9
----
-873

query I rowsort
SELECT 93 * - 65
----
-6045

query I rowsort
SELECT COALESCE ( 1, + + 10, + 31 + + 45 ) + - 1 AS col0
----
0

query I rowsort
SELECT 38 + + 98 - + - 93 AS col2
----
229

query I rowsort
SELECT DISTINCT 18 col1
----
18

onlyif mysql # aggregate syntax: 
query II rowsort label-3458
SELECT 21 - + + COUNT( * ) col0, - 98
----
20
-98

skipif mysql # not compatible
query II rowsort label-3458
SELECT 21 - + + COUNT ( * ) col0, - 98
----
20
-98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3459
SELECT DISTINCT CAST( CAST( - + 80 AS SIGNED ) AS SIGNED ) + 53 AS col2
----
-27

skipif mysql # not compatible
query I rowsort label-3459
SELECT DISTINCT CAST ( CAST ( - + 80 AS INTEGER ) AS INTEGER ) + 53 AS col2
----
-27

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3460
SELECT ALL 1 + + COALESCE ( COUNT( + CAST( - 93 AS SIGNED ) ), 15 * ( - 70 ) ) * 9
----
10

skipif mysql # not compatible
query I rowsort label-3460
SELECT ALL 1 + + COALESCE ( COUNT ( + CAST ( - 93 AS INTEGER ) ), 15 * ( - 70 ) ) * 9
----
10

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3461
SELECT CAST( NULL AS SIGNED ) * COUNT( * ) + + - ( - + ( MIN( DISTINCT 60 ) ) ) + 46
----
NULL

skipif mysql # not compatible
query I rowsort label-3461
SELECT CAST ( NULL AS INTEGER ) * COUNT ( * ) + + - ( - + ( MIN ( DISTINCT 60 ) ) ) + 46
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3462
SELECT ALL + COUNT( * ) * - - 43
----
43

skipif mysql # not compatible
query I rowsort label-3462
SELECT ALL + COUNT ( * ) * - - 43
----
43

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3463
SELECT + CAST( NULL AS SIGNED ) / - 48 - + CASE - 31 WHEN NULLIF ( + 38, - CASE - NULLIF ( - 22, 90 + - 35 ) WHEN ( - 93 ) * + NULLIF ( + 25 * - ( 58 ), ( 98 ) ) + + NULLIF ( + MIN( + 17 ), 35 ) / 53 THEN - AVG ( + 80 ) ELSE + 57 END / 48 ) * ( - 89 ) - - 76 * 3 THEN + 5 - + ( - 15 ) WHEN 5 THEN 58 * + 37 END + 70 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3463
SELECT + CAST ( NULL AS INTEGER ) / - 48 - + CASE - 31 WHEN NULLIF ( + 38, - CASE - NULLIF ( - 22, 90 + - 35 ) WHEN ( - 93 ) * + NULLIF ( + 25 * - ( 58 ), ( 98 ) ) + + NULLIF ( + MIN ( + 17 ), 35 ) / 53 THEN - AVG ( + 80 ) ELSE + 57 END / 48 ) * ( - 89 ) - - 76 * 3 THEN + 5 - + ( - 15 ) WHEN 5 THEN 58 * + 37 END + 70 AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3464
SELECT CAST( NULL AS SIGNED ) + - 34 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3464
SELECT CAST ( NULL AS INTEGER ) + - 34 AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3465
SELECT ALL CAST( + ( - + 10 ) AS SIGNED ) + - + CASE CASE + 93 WHEN AVG ( - 74 ) + + 18 THEN NULL ELSE + COUNT( * ) END WHEN 71 * 27 - - 48 THEN NULL WHEN CAST( NULL AS DECIMAL ) THEN + 64 END * COUNT( + 28 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3465
SELECT ALL CAST ( + ( - + 10 ) AS INTEGER ) + - + CASE CASE + 93 WHEN AVG ( - 74 ) + + 18 THEN NULL ELSE + COUNT ( * ) END WHEN 71 * 27 - - 48 THEN NULL WHEN CAST ( NULL AS REAL ) THEN + 64 END * COUNT ( + 28 ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3466
SELECT + COUNT( * ) * + 96 * 1 AS col2
----
96

skipif mysql # not compatible
query I rowsort label-3466
SELECT + COUNT ( * ) * + 96 * 1 AS col2
----
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3467
SELECT ALL 75 + - CAST( + NULLIF ( + CAST( + 12 AS SIGNED ), + 7 ) AS SIGNED ) * + 86 AS col0
----
-957

skipif mysql # not compatible
query I rowsort label-3467
SELECT ALL 75 + - CAST ( + NULLIF ( + CAST ( + 12 AS INTEGER ), + 7 ) AS INTEGER ) * + 86 AS col0
----
-957

onlyif mysql # aggregate syntax: 
query I rowsort label-3468
SELECT DISTINCT CASE - + 25 WHEN + COUNT( * ) THEN NULL ELSE + - 87 + - 12 END * - 29 AS col0
----
2871

skipif mysql # not compatible
query I rowsort label-3468
SELECT DISTINCT CASE - + 25 WHEN + COUNT ( * ) THEN NULL ELSE + - 87 + - 12 END * - 29 AS col0
----
2871

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3469
SELECT DISTINCT - 30 + - CAST( - 49 AS SIGNED ) * - + 54 * + 12
----
-31782

skipif mysql # not compatible
query I rowsort label-3469
SELECT DISTINCT - 30 + - CAST ( - 49 AS INTEGER ) * - + 54 * + 12
----
-31782

query I rowsort
SELECT DISTINCT - + COALESCE ( + + 6, + 84 + + - ( 83 ) + ( - 1 ) ) AS col1
----
-6

query I rowsort
SELECT DISTINCT - - 45
----
45

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3472
SELECT ALL - 16 - + + COUNT( * ) DIV - + ( - + 59 ) AS col2
----
-16

skipif mysql # not compatible
query I rowsort label-3472
SELECT ALL - 16 - + + COUNT ( * ) / - + ( - + 59 ) AS col2
----
-16

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3473
SELECT DISTINCT - CASE - COUNT( * ) WHEN - 72 THEN - COUNT( * ) * - 64 + + 72 / CAST( NULL AS SIGNED ) WHEN 6 * 22 THEN NULL WHEN + 4 * - 13 THEN 71 / - 53 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3473
SELECT DISTINCT - CASE - COUNT ( * ) WHEN - 72 THEN - COUNT ( * ) * - 64 + + 72 / CAST ( NULL AS INTEGER ) WHEN 6 * 22 THEN NULL WHEN + 4 * - 13 THEN 71 / - 53 END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3474
SELECT + COUNT( * ) + + - MAX( + - 68 )
----
69

skipif mysql # not compatible
query I rowsort label-3474
SELECT + COUNT ( * ) + + - MAX ( + - 68 )
----
69

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3475
SELECT CAST( + 32 AS SIGNED ) * + - COUNT( * ) AS col1
----
-32

skipif mysql # not compatible
query I rowsort label-3475
SELECT CAST ( + 32 AS INTEGER ) * + - COUNT ( * ) AS col1
----
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-3476
SELECT + SUM( - 42 ) + 8
----
-34

skipif mysql # not compatible
query I rowsort label-3476
SELECT + SUM ( - 42 ) + 8
----
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-3477
SELECT + NULLIF ( 57, - COUNT( * ) ) AS col0
----
57

skipif mysql # not compatible
query I rowsort label-3477
SELECT + NULLIF ( 57, - COUNT ( * ) ) AS col0
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-3478
SELECT ALL - + NULLIF ( + - 21, 92 * + 34 ) - MIN( + 57 ) * + 92
----
-5223

skipif mysql # not compatible
query I rowsort label-3478
SELECT ALL - + NULLIF ( + - 21, 92 * + 34 ) - MIN ( + 57 ) * + 92
----
-5223

onlyif mysql # DIV for integer division: 
query I rowsort label-3479
SELECT ALL + 81 * 2 DIV ( + + 89 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-3479
SELECT ALL + 81 * 2 / ( + + 89 ) AS col1
----
1

query I rowsort
SELECT 69 - + 78 * 69 * + 76
----
-408963

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3481
SELECT - 43 * - + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3481
SELECT - 43 * - + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT DISTINCT + 64 * + + NULLIF ( 38, + 29 ) * 48
----
116736

onlyif mysql # aggregate syntax: 
query I rowsort label-3483
SELECT - 22 * - + 12 + + 83 + - COUNT( * ) + 17 - 76
----
287

skipif mysql # not compatible
query I rowsort label-3483
SELECT - 22 * - + 12 + + 83 + - COUNT ( * ) + 17 - 76
----
287

onlyif mysql # aggregate syntax: 
query I rowsort label-3484
SELECT ALL + NULLIF ( 35, - 11 ) * + + 0 + + COUNT( * ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-3484
SELECT ALL + NULLIF ( 35, - 11 ) * + + 0 + + COUNT ( * ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3485
SELECT 3 * 75 * + COUNT( ALL - NULLIF ( + 4, + 11 * + 8 ) ) * - 54 col0
----
-12150

skipif mysql # not compatible
query I rowsort label-3485
SELECT 3 * 75 * + COUNT ( ALL - NULLIF ( + 4, + 11 * + 8 ) ) * - 54 col0
----
-12150

onlyif mysql # aggregate syntax: 
query I rowsort label-3486
SELECT ALL COALESCE ( - 2, + + COUNT( * ) )
----
-2

skipif mysql # not compatible
query I rowsort label-3486
SELECT ALL COALESCE ( - 2, + + COUNT ( * ) )
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-3487
SELECT ALL + 30 * - CASE + + 8 WHEN + + 12 THEN - 1 + + COUNT( - 31 ) * - 6 END * - 82
----
NULL

skipif mysql # not compatible
query I rowsort label-3487
SELECT ALL + 30 * - CASE + + 8 WHEN + + 12 THEN - 1 + + COUNT ( - 31 ) * - 6 END * - 82
----
NULL

query I rowsort
SELECT 28 * - 77 AS col2
----
-2156

onlyif mysql # aggregate syntax: 
query II rowsort label-3489
SELECT DISTINCT COUNT( * ) AS col0, 28 * + 98 AS col1
----
1
2744

skipif mysql # not compatible
query II rowsort label-3489
SELECT DISTINCT COUNT ( * ) AS col0, 28 * + 98 AS col1
----
1
2744

onlyif mysql # aggregate syntax: 
query I rowsort label-3490
SELECT ALL SUM( - 40 )
----
-40

skipif mysql # not compatible
query I rowsort label-3490
SELECT ALL SUM ( - 40 )
----
-40

query I rowsort
SELECT 2 * + 89
----
178

query I rowsort
SELECT + 8 + + 69 AS col2
----
77

onlyif mysql # DIV for integer division: 
query I rowsort label-3493
SELECT ALL - 94 DIV - 40 AS col0
----
2

skipif mysql # not compatible
query I rowsort label-3493
SELECT ALL - 94 / - 40 AS col0
----
2

query II rowsort
SELECT ALL - 85 + - + 89 * - 28 AS col2, + 25 AS col2
----
2407
25

query I rowsort
SELECT - 37 * - COALESCE ( + 32, + NULLIF ( 66, 84 ) - - 61 )
----
1184

onlyif mysql # aggregate syntax: 
query I rowsort label-3496
SELECT DISTINCT - 13 + + 14 + - MIN( + 41 )
----
-40

skipif mysql # not compatible
query I rowsort label-3496
SELECT DISTINCT - 13 + + 14 + - MIN ( + 41 )
----
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-3497
SELECT - 14 * + COUNT( * )
----
-14

skipif mysql # not compatible
query I rowsort label-3497
SELECT - 14 * + COUNT ( * )
----
-14

query I rowsort
SELECT DISTINCT ( + 37 ) + 69
----
106

query I rowsort
SELECT ALL 60 + + - 24 * - 15 * 29
----
10500

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3500
SELECT ALL + ( - 61 ) * + - 78 + + CAST( - 14 AS SIGNED ) * 14
----
4562

skipif mysql # not compatible
query I rowsort label-3500
SELECT ALL + ( - 61 ) * + - 78 + + CAST ( - 14 AS INTEGER ) * 14
----
4562

query I rowsort
SELECT - 78 + - - 79 + 53 + 55 * + - 21 AS col2
----
-1101

query I rowsort
SELECT DISTINCT + + 68 AS col2
----
68

query I rowsort
SELECT DISTINCT + 26 * + 11 * - 43 * - 17 + - 27 + + 50
----
209089

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3504
SELECT ALL + - 86, CAST( NULL AS SIGNED ) AS col0
----
-86
NULL

skipif mysql # not compatible
query II rowsort label-3504
SELECT ALL + - 86, CAST ( NULL AS INTEGER ) AS col0
----
-86
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3505
SELECT 31 * - + 67 + - MAX( + 41 )
----
-2118

skipif mysql # not compatible
query I rowsort label-3505
SELECT 31 * - + 67 + - MAX ( + 41 )
----
-2118

onlyif mysql # aggregate syntax: 
query I rowsort label-3506
SELECT ALL - 83 * + SUM( ALL - 60 ) - + + COALESCE ( COALESCE ( 68, 76 * + COUNT( * ), 34 - 57 ), 23 - + 25, - ( - 69 ) + + ( 77 ) )
----
4912

skipif mysql # not compatible
query I rowsort label-3506
SELECT ALL - 83 * + SUM ( ALL - 60 ) - + + COALESCE ( COALESCE ( 68, 76 * + COUNT ( * ), 34 - 57 ), 23 - + 25, - ( - 69 ) + + ( 77 ) )
----
4912

query II rowsort
SELECT ALL 45 * 85 - + 1, - 9 + + 80 AS col0
----
3824
71

onlyif mysql # aggregate syntax: 
query I rowsort label-3508
SELECT + COUNT( DISTINCT + 67 )
----
1

skipif mysql # not compatible
query I rowsort label-3508
SELECT + COUNT ( DISTINCT + 67 )
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3509
SELECT ALL - 18 * - - CAST( NULL AS SIGNED ) * + 41 + - 26 - + 36 + 18 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3509
SELECT ALL - 18 * - - CAST ( NULL AS INTEGER ) * + 41 + - 26 - + 36 + 18 AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3510
SELECT + SUM( DISTINCT - + ( + NULLIF ( + + 32, + 68 ) ) ) DIV - 46 - - SUM( - 41 )
----
-41

skipif mysql # not compatible
query I rowsort label-3510
SELECT + SUM ( DISTINCT - + ( + NULLIF ( + + 32, + 68 ) ) ) / - 46 - - SUM ( - 41 )
----
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-3511
SELECT + - 82 * - COUNT( * ) * + 33
----
2706

skipif mysql # not compatible
query I rowsort label-3511
SELECT + - 82 * - COUNT ( * ) * + 33
----
2706

query I rowsort
SELECT ALL ( - 30 ) * 37 - - ( + 34 ) + - 52 AS col2
----
-1128

onlyif mysql # aggregate syntax: 
query I rowsort label-3513
SELECT + 49 * 7 - - COUNT( ALL - + 36 )
----
344

skipif mysql # not compatible
query I rowsort label-3513
SELECT + 49 * 7 - - COUNT ( ALL - + 36 )
----
344

query I rowsort
SELECT 16 * - + 52 + - 22 - 24
----
-878

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3515
SELECT + 58 + - CAST( NULL AS SIGNED ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3515
SELECT + 58 + - CAST ( NULL AS INTEGER ) col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3516
SELECT - + 99 DIV + 23
----
-4

skipif mysql # not compatible
query I rowsort label-3516
SELECT - + 99 / + 23
----
-4

onlyif mysql # DIV for integer division: 
query I rowsort label-3517
SELECT DISTINCT + ( - COALESCE ( + + 64, 30 * 95 + 65 DIV 7 ) )
----
-64

skipif mysql # not compatible
query I rowsort label-3517
SELECT DISTINCT + ( - COALESCE ( + + 64, 30 * 95 + 65 / 7 ) )
----
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-3518
SELECT ALL 2 * COUNT( * ) - SUM( - 45 )
----
47

skipif mysql # not compatible
query I rowsort label-3518
SELECT ALL 2 * COUNT ( * ) - SUM ( - 45 )
----
47

query I rowsort
SELECT + - ( - 48 ) + - 1 + 73 AS col2
----
120

query I rowsort
SELECT ALL 74 * + 90 - 68 * + - 66
----
11148

query I rowsort
SELECT ALL + - COALESCE ( + - 27, 20, - 39 + - 12 ) AS col0
----
27

query I rowsort
SELECT ALL + ( - + ( + 41 ) ) AS col0
----
-41

onlyif mysql # aggregate syntax: 
query II rowsort label-3523
SELECT ALL + + 25, - COUNT( * ) * - 55 col1
----
25
55

skipif mysql # not compatible
query II rowsort label-3523
SELECT ALL + + 25, - COUNT ( * ) * - 55 col1
----
25
55

query I rowsort
SELECT + ( 59 ) AS col0
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-3525
SELECT COUNT( + - 32 )
----
1

skipif mysql # not compatible
query I rowsort label-3525
SELECT COUNT ( + - 32 )
----
1

query I rowsort
SELECT ALL + ( - - 59 ) AS col1
----
59

onlyif mysql # aggregate syntax: 
query II rowsort label-3527
SELECT ALL + COUNT( * ) AS col1, 6 AS col1
----
1
6

skipif mysql # not compatible
query II rowsort label-3527
SELECT ALL + COUNT ( * ) AS col1, 6 AS col1
----
1
6

query I rowsort
SELECT + COALESCE ( + + 51, - 88 )
----
51

query I rowsort
SELECT - 56 + 29 AS col2
----
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-3530
SELECT - COUNT( * ) + + 19
----
18

skipif mysql # not compatible
query I rowsort label-3530
SELECT - COUNT ( * ) + + 19
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-3531
SELECT ALL SUM( 28 ) AS col2
----
28

skipif mysql # not compatible
query I rowsort label-3531
SELECT ALL SUM ( 28 ) AS col2
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-3532
SELECT DISTINCT SUM( DISTINCT + 6 )
----
6

skipif mysql # not compatible
query I rowsort label-3532
SELECT DISTINCT SUM ( DISTINCT + 6 )
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-3533
SELECT - 22 * 0 + - - SUM( DISTINCT - 55 ) + + + COUNT( * ) AS col0
----
-54

skipif mysql # not compatible
query I rowsort label-3533
SELECT - 22 * 0 + - - SUM ( DISTINCT - 55 ) + + + COUNT ( * ) AS col0
----
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-3534
SELECT MIN( - + 71 )
----
-71

skipif mysql # not compatible
query I rowsort label-3534
SELECT MIN ( - + 71 )
----
-71

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3535
SELECT ALL + 53 + + 13 - CASE + + 79 WHEN 72 + + - COUNT( * ) THEN CASE - ( + 72 ) WHEN AVG ( ALL 11 ) THEN 96 + + 15 * - NULLIF ( + 13 + CASE - 29 WHEN CASE WHEN NOT + COALESCE ( 79, + 31 ) NOT BETWEEN CAST( NULL AS SIGNED ) / + 25 + CAST( NULL AS SIGNED ) AND ( 19 + + 69 ) THEN 96 WHEN NOT + 51 * CASE 72 WHEN 87 THEN - 76 WHEN + 33 THEN COUNT( * ) * + 34 ELSE NULL END BETWEEN + 32 - - MIN( + 59 - + 95 * - 3 ) * 74 AND NULL THEN + ( - 67 ) + 78 WHEN NOT 79 = ( - 94 ) THEN - 93 END / - 97 THEN + 51 END, + COUNT( * ) + COUNT( - 12 ) ) WHEN - MIN( ALL - 1 ) THEN NULL END + - 42 ELSE NULL END * COALESCE ( + 59, + 42 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3535
SELECT ALL + 53 + + 13 - CASE + + 79 WHEN 72 + + - COUNT ( * ) THEN CASE - ( + 72 ) WHEN AVG ( ALL 11 ) THEN 96 + + 15 * - NULLIF ( + 13 + CASE - 29 WHEN CASE WHEN NOT + COALESCE ( 79, + 31 ) NOT BETWEEN CAST ( NULL AS INTEGER ) / + 25 + CAST ( NULL AS INTEGER ) AND ( 19 + + 69 ) THEN 96 WHEN NOT + 51 * CASE 72 WHEN 87 THEN - 76 WHEN + 33 THEN COUNT ( * ) * + 34 ELSE NULL END BETWEEN + 32 - - MIN ( + 59 - + 95 * - 3 ) * 74 AND NULL THEN + ( - 67 ) + 78 WHEN NOT 79 = ( - 94 ) THEN - 93 END / - 97 THEN + 51 END, + COUNT ( * ) + COUNT ( - 12 ) ) WHEN - MIN ( ALL - 1 ) THEN NULL END + - 42 ELSE NULL END * COALESCE ( + 59, + 42 )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3536
SELECT ALL - CAST( 35 AS SIGNED ) + CASE - - 83 WHEN - - ( 46 ) * 57 - COUNT( * ) THEN NULL WHEN 82 + COUNT( * ) THEN 56 ELSE NULL END - 34 DIV + 18 AS col2
----
20

skipif mysql # not compatible
query I rowsort label-3536
SELECT ALL - CAST ( 35 AS INTEGER ) + CASE - - 83 WHEN - - ( 46 ) * 57 - COUNT ( * ) THEN NULL WHEN 82 + COUNT ( * ) THEN 56 ELSE NULL END - 34 / + 18 AS col2
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-3537
SELECT - 14 + COALESCE ( - + COUNT( * ), - 16 ) + + - CASE - 88 WHEN 12 * + 97 + + 20 THEN - 15 END * + 59 * - 4
----
NULL

skipif mysql # not compatible
query I rowsort label-3537
SELECT - 14 + COALESCE ( - + COUNT ( * ), - 16 ) + + - CASE - 88 WHEN 12 * + 97 + + 20 THEN - 15 END * + 59 * - 4
----
NULL

query II rowsort
SELECT - 63, - 78 AS col2
----
-63
-78

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3539
SELECT ALL ( - - CAST( NULL AS DECIMAL ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-3539
SELECT ALL ( - - CAST ( NULL AS REAL ) )
----
NULL

query II rowsort
SELECT - 66, 21 AS col2
----
-66
21

query I rowsort
SELECT ALL - 63 + + 84
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-3542
SELECT ALL - ( - 92 ) * - + MIN( ALL + - 81 )
----
7452

skipif mysql # not compatible
query I rowsort label-3542
SELECT ALL - ( - 92 ) * - + MIN ( ALL + - 81 )
----
7452

query I rowsort
SELECT DISTINCT + ( + + 48 ) + + 64 * - + 33
----
-2064

query I rowsort
SELECT ALL ( ( 54 ) )
----
54

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3545
SELECT DISTINCT ( - 88 ), CAST( NULL AS SIGNED ) * - - 74 col2
----
-88
NULL

skipif mysql # not compatible
query II rowsort label-3545
SELECT DISTINCT ( - 88 ), CAST ( NULL AS INTEGER ) * - - 74 col2
----
-88
NULL

query I rowsort
SELECT ALL ( - 34 ) AS col0
----
-34

query I rowsort
SELECT - COALESCE ( - 99, + 4 ) AS col0
----
99

query I rowsort
SELECT DISTINCT + 30 - - 86
----
116

onlyif mysql # aggregate syntax: 
query II rowsort label-3549
SELECT ALL + COUNT( * ), + 22 AS col1
----
1
22

skipif mysql # not compatible
query II rowsort label-3549
SELECT ALL + COUNT ( * ), + 22 AS col1
----
1
22

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3550
SELECT - CAST( 2 AS SIGNED )
----
-2

skipif mysql # not compatible
query I rowsort label-3550
SELECT - CAST ( 2 AS INTEGER )
----
-2

onlyif mysql # DIV for integer division: 
query II rowsort label-3551
SELECT - - 50 AS col2, + 29 DIV - 69 AS col0
----
50
0

skipif mysql # not compatible
query II rowsort label-3551
SELECT - - 50 AS col2, + 29 / - 69 AS col0
----
50
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3552
SELECT DISTINCT - + 76 * + COUNT( * ) + - COUNT( * ) AS col0
----
-77

skipif mysql # not compatible
query I rowsort label-3552
SELECT DISTINCT - + 76 * + COUNT ( * ) + - COUNT ( * ) AS col0
----
-77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3553
SELECT ALL - 42 / - CAST( NULL AS SIGNED ) + - 16 * - 57 - + 55
----
NULL

skipif mysql # not compatible
query I rowsort label-3553
SELECT ALL - 42 / - CAST ( NULL AS INTEGER ) + - 16 * - 57 - + 55
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3554
SELECT + MAX( + + 64 ) + + NULLIF ( - 4, 41 ) * + 83 col2
----
-268

skipif mysql # not compatible
query I rowsort label-3554
SELECT + MAX ( + + 64 ) + + NULLIF ( - 4, 41 ) * + 83 col2
----
-268

query I rowsort
SELECT ALL - - 26 * ( - + 9 ) + - 19 AS col1
----
-253

onlyif mysql # aggregate syntax: 
query I rowsort label-3556
SELECT - 47 * + COUNT( * ) col1
----
-47

skipif mysql # not compatible
query I rowsort label-3556
SELECT - 47 * + COUNT ( * ) col1
----
-47

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3557
SELECT + CAST( - + 62 AS SIGNED ), 19 col0
----
-62
19

skipif mysql # not compatible
query II rowsort label-3557
SELECT + CAST ( - + 62 AS INTEGER ), 19 col0
----
-62
19

onlyif mysql # aggregate syntax: 
query I rowsort label-3558
SELECT ALL - + 34 * 76 * - + COUNT( * ) - - 61 * + 41
----
5085

skipif mysql # not compatible
query I rowsort label-3558
SELECT ALL - + 34 * 76 * - + COUNT ( * ) - - 61 * + 41
----
5085

query II rowsort
SELECT + 27 col1, 49
----
27
49

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3560
SELECT 25 AS col2, - 36 DIV + + COUNT( * )
----
25
-36

skipif mysql # not compatible
query II rowsort label-3560
SELECT 25 AS col2, - 36 / + + COUNT ( * )
----
25
-36

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3561
SELECT DISTINCT + - COALESCE ( - + 36, - 63 * - COUNT( * ) + - + 93 + + 31 + + 70, CAST( NULL AS SIGNED ) * 59 ) col2
----
36

skipif mysql # not compatible
query I rowsort label-3561
SELECT DISTINCT + - COALESCE ( - + 36, - 63 * - COUNT ( * ) + - + 93 + + 31 + + 70, CAST ( NULL AS INTEGER ) * 59 ) col2
----
36

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3562
SELECT + CAST( - 32 AS SIGNED ) AS col1, - 48 col2
----
-32
-48

skipif mysql # not compatible
query II rowsort label-3562
SELECT + CAST ( - 32 AS INTEGER ) AS col1, - 48 col2
----
-32
-48

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3563
SELECT - CAST( + 37 AS SIGNED ) * + 52 * + - 95 * - 78 AS col1
----
-14256840

skipif mysql # not compatible
query I rowsort label-3563
SELECT - CAST ( + 37 AS INTEGER ) * + 52 * + - 95 * - 78 AS col1
----
-14256840

onlyif mysql # aggregate syntax: 
query I rowsort label-3564
SELECT + COUNT( * ) + CASE + NULLIF ( - - 25, 31 ) WHEN + + 25 * - ( - COUNT( * ) ) THEN + 7 WHEN + 97 * 20 THEN - ( + ( 88 ) ) + 5 ELSE COUNT( * ) END AS col0
----
8

skipif mysql # not compatible
query I rowsort label-3564
SELECT + COUNT ( * ) + CASE + NULLIF ( - - 25, 31 ) WHEN + + 25 * - ( - COUNT ( * ) ) THEN + 7 WHEN + 97 * 20 THEN - ( + ( 88 ) ) + 5 ELSE COUNT ( * ) END AS col0
----
8

onlyif mysql # aggregate syntax: 
query II rowsort label-3565
SELECT ALL COUNT( * ) * + 23 * + 63 col2, - 53
----
1449
-53

skipif mysql # not compatible
query II rowsort label-3565
SELECT ALL COUNT ( * ) * + 23 * + 63 col2, - 53
----
1449
-53

query I rowsort
SELECT ALL 32 * 14
----
448

onlyif mysql # aggregate syntax: 
query I rowsort label-3567
SELECT ALL 96 * + 83 * + COUNT( * )
----
7968

skipif mysql # not compatible
query I rowsort label-3567
SELECT ALL 96 * + 83 * + COUNT ( * )
----
7968

onlyif mysql # aggregate syntax: 
query I rowsort label-3568
SELECT ALL 31 + - COALESCE ( SUM( DISTINCT - 41 ), COUNT( * ), - 22 ) + + 34 + + 41 * - NULLIF ( - 52 * - COUNT( ALL 71 ) + NULLIF ( 17, - 19 * + 78 - + 16 / + 64 ), + 51 ) AS col2
----
-2723

skipif mysql # not compatible
query I rowsort label-3568
SELECT ALL 31 + - COALESCE ( SUM ( DISTINCT - 41 ), COUNT ( * ), - 22 ) + + 34 + + 41 * - NULLIF ( - 52 * - COUNT ( ALL 71 ) + NULLIF ( 17, - 19 * + 78 - + 16 / + 64 ), + 51 ) AS col2
----
-2723

query I rowsort
SELECT 56 - - 82 col2
----
138

onlyif mysql # aggregate syntax: 
query I rowsort label-3570
SELECT 66 - 40 + - - MIN( + 90 ) + + ( 8 ) * 23
----
300

skipif mysql # not compatible
query I rowsort label-3570
SELECT 66 - 40 + - - MIN ( + 90 ) + + ( 8 ) * 23
----
300

onlyif mysql # aggregate syntax: 
query I rowsort label-3571
SELECT ALL 25 + - + COUNT( * ) AS col0
----
24

skipif mysql # not compatible
query I rowsort label-3571
SELECT ALL 25 + - + COUNT ( * ) AS col0
----
24

query II rowsort
SELECT 75 + 7 AS col0, + 65 AS col1
----
82
65

query I rowsort
SELECT DISTINCT ( - 89 ) - 93 * - 70 + + 74
----
6495

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3574
SELECT ALL - 59 * + + CAST( NULL AS SIGNED ) * - + ( 16 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3574
SELECT ALL - 59 * + + CAST ( NULL AS INTEGER ) * - + ( 16 ) AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3575
SELECT + COUNT( * ) + - CAST( - + 72 AS SIGNED ) + - COUNT( * ) AS col1
----
72

skipif mysql # not compatible
query I rowsort label-3575
SELECT + COUNT ( * ) + - CAST ( - + 72 AS INTEGER ) + - COUNT ( * ) AS col1
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-3576
SELECT DISTINCT + SUM( 88 ) - - - 66 + + 40 + + ( + 53 ) + - 75 - 84 * - COUNT( * ) * + 55 AS col1
----
4660

skipif mysql # not compatible
query I rowsort label-3576
SELECT DISTINCT + SUM ( 88 ) - - - 66 + + 40 + + ( + 53 ) + - 75 - 84 * - COUNT ( * ) * + 55 AS col1
----
4660

onlyif mysql # aggregate syntax: 
query I rowsort label-3577
SELECT - 38 * - COUNT( * ) AS col2
----
38

skipif mysql # not compatible
query I rowsort label-3577
SELECT - 38 * - COUNT ( * ) AS col2
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-3578
SELECT ALL NULLIF ( 98, 82 - + NULLIF ( - ( - 65 ), - 58 * + 44 ) ) * - CASE - 41 + 41 / + 40 WHEN COUNT( * ) + - COUNT( * ) THEN NULL WHEN COALESCE ( + 48, + 29 + 20 * 12, + CASE 98 WHEN - 27 * - 40 THEN NULL WHEN 94 + 15 THEN 63 ELSE 99 END ) / 83 THEN NULL ELSE - COALESCE ( 43, + 21 * + COUNT( * ) + - 11 ) * 3 END AS col2
----
12642

skipif mysql # not compatible
query I rowsort label-3578
SELECT ALL NULLIF ( 98, 82 - + NULLIF ( - ( - 65 ), - 58 * + 44 ) ) * - CASE - 41 + 41 / + 40 WHEN COUNT ( * ) + - COUNT ( * ) THEN NULL WHEN COALESCE ( + 48, + 29 + 20 * 12, + CASE 98 WHEN - 27 * - 40 THEN NULL WHEN 94 + 15 THEN 63 ELSE 99 END ) / 83 THEN NULL ELSE - COALESCE ( 43, + 21 * + COUNT ( * ) + - 11 ) * 3 END AS col2
----
12642

onlyif mysql # aggregate syntax: 
query I rowsort label-3579
SELECT + 91 + 97 + + COUNT( * )
----
189

skipif mysql # not compatible
query I rowsort label-3579
SELECT + 91 + 97 + + COUNT ( * )
----
189

query I rowsort
SELECT DISTINCT + NULLIF ( + 38, - 35 / - 73 ) AS col0
----
38

query II rowsort
SELECT 75 + - 77 AS col1, 17 * 38 * + 92 AS col0
----
-2
59432

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3582
SELECT + COUNT( * ) * - 75 + + 18 DIV 85 + + - 59
----
-134

skipif mysql # not compatible
query I rowsort label-3582
SELECT + COUNT ( * ) * - 75 + + 18 / 85 + + - 59
----
-134

onlyif mysql # DIV for integer division: 
query I rowsort label-3583
SELECT DISTINCT + - ( 4 ) DIV + 6 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3583
SELECT DISTINCT + - ( 4 ) / + 6 AS col0
----
0

query I rowsort
SELECT 13 + 94
----
107

query III rowsort
SELECT ALL + 33 + + 57 AS col1, + 1, + 12 AS col0
----
90
1
12

onlyif mysql # DIV for integer division: 
query I rowsort label-3586
SELECT - 3 DIV COALESCE ( 32, + 81 ) + - 33 AS col1
----
-33

skipif mysql # not compatible
query I rowsort label-3586
SELECT - 3 / COALESCE ( 32, + 81 ) + - 33 AS col1
----
-33

query I rowsort
SELECT + 20 * - 93 + - + ( + 58 )
----
-1918

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-3588
SELECT + 90 + + 78 col1, + 68 + - - CAST( NULL AS DECIMAL ) * + COUNT( * )
----
168
NULL

skipif mysql # not compatible
query II rowsort label-3588
SELECT + 90 + + 78 col1, + 68 + - - CAST ( NULL AS REAL ) * + COUNT ( * )
----
168
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3589
SELECT ALL - 42 * 82 * - + 0 + + COUNT( + 47 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-3589
SELECT ALL - 42 * 82 * - + 0 + + COUNT ( + 47 ) AS col0
----
1

query I rowsort
SELECT ALL - - 64 AS col0
----
64

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3591
SELECT DISTINCT + MAX( CAST( NULL AS SIGNED ) ) + ( ( - ( 37 ) ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3591
SELECT DISTINCT + MAX ( CAST ( NULL AS INTEGER ) ) + ( ( - ( 37 ) ) ) AS col0
----
NULL

query I rowsort
SELECT ALL - 99 + 3 - 87
----
-183

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3593
SELECT 12 + CASE - 85 WHEN - 4 THEN NULL ELSE - COUNT( * ) DIV - + ( - ( 39 ) ) + 81 END
----
93

skipif mysql # not compatible
query I rowsort label-3593
SELECT 12 + CASE - 85 WHEN - 4 THEN NULL ELSE - COUNT ( * ) / - + ( - ( 39 ) ) + 81 END
----
93

query I rowsort
SELECT ALL - 26 * 28 AS col1
----
-728

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3595
SELECT COUNT( * ) + + 41 / - - SUM( + 11 ) - + 54 + - ( - 25 ) * + + AVG ( - 26 ) / 92 - CAST( + 87 + CASE 31 WHEN MAX( ALL + CAST( NULL AS SIGNED ) ) * COUNT( * ) + 52 * 94 THEN ( - CAST( NULL AS DECIMAL ) ) * - CAST( 73 AS SIGNED ) WHEN - 2 THEN NULL END AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3595
SELECT COUNT ( * ) + + 41 / - - SUM ( + 11 ) - + 54 + - ( - 25 ) * + + AVG ( - 26 ) / 92 - CAST ( + 87 + CASE 31 WHEN MAX ( ALL + CAST ( NULL AS INTEGER ) ) * COUNT ( * ) + 52 * 94 THEN ( - CAST ( NULL AS REAL ) ) * - CAST ( 73 AS INTEGER ) WHEN - 2 THEN NULL END AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3596
SELECT DISTINCT - COUNT( * ) * - + 82 col0
----
82

skipif mysql # not compatible
query I rowsort label-3596
SELECT DISTINCT - COUNT ( * ) * - + 82 col0
----
82

query I rowsort
SELECT DISTINCT - 54 + - 85 AS col1
----
-139

query I rowsort
SELECT ALL 85 + - 85
----
0

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3599
SELECT DISTINCT + 81 + + - 69 - + - CAST( - + 95 AS SIGNED ) + - - 61 DIV 9 + - 70 + + 52 + + 90
----
-5

skipif mysql # not compatible
query I rowsort label-3599
SELECT DISTINCT + 81 + + - 69 - + - CAST ( - + 95 AS INTEGER ) + - - 61 / 9 + - 70 + + 52 + + 90
----
-5

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3600
SELECT 18 + 39 DIV - ( - COUNT( * ) ) + - 4 AS col1
----
53

skipif mysql # not compatible
query I rowsort label-3600
SELECT 18 + 39 / - ( - COUNT ( * ) ) + - 4 AS col1
----
53

onlyif mysql # DIV for integer division: 
query I rowsort label-3601
SELECT 21 DIV + 41
----
0

skipif mysql # not compatible
query I rowsort label-3601
SELECT 21 / + 41
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3602
SELECT ALL ( + 65 ) DIV + 95 + + 33
----
33

skipif mysql # not compatible
query I rowsort label-3602
SELECT ALL ( + 65 ) / + 95 + + 33
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-3603
SELECT 66 + - - NULLIF ( MAX( DISTINCT - 99 ), + 60 )
----
-33

skipif mysql # not compatible
query I rowsort label-3603
SELECT 66 + - - NULLIF ( MAX ( DISTINCT - 99 ), + 60 )
----
-33

onlyif mysql # aggregate syntax: 
query II rowsort label-3604
SELECT ALL 21, + COUNT( * ) col0
----
21
1

skipif mysql # not compatible
query II rowsort label-3604
SELECT ALL 21, + COUNT ( * ) col0
----
21
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3605
SELECT ALL 1 - - MIN( ALL - - 64 ) col0
----
65

skipif mysql # not compatible
query I rowsort label-3605
SELECT ALL 1 - - MIN ( ALL - - 64 ) col0
----
65

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3606
SELECT COUNT( * ) DIV + 3 * - 74 col0, 41
----
0
41

skipif mysql # not compatible
query II rowsort label-3606
SELECT COUNT ( * ) / + 3 * - 74 col0, 41
----
0
41

onlyif mysql # DIV for integer division: 
query I rowsort label-3607
SELECT ALL + 64 DIV 88
----
0

skipif mysql # not compatible
query I rowsort label-3607
SELECT ALL + 64 / 88
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3608
SELECT 56 * - COUNT( * )
----
-56

skipif mysql # not compatible
query I rowsort label-3608
SELECT 56 * - COUNT ( * )
----
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-3609
SELECT 62 + - MIN( ALL 90 ) + + COUNT( * ) AS col0
----
-27

skipif mysql # not compatible
query I rowsort label-3609
SELECT 62 + - MIN ( ALL 90 ) + + COUNT ( * ) AS col0
----
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-3610
SELECT ALL COUNT( * ) * + 94
----
94

skipif mysql # not compatible
query I rowsort label-3610
SELECT ALL COUNT ( * ) * + 94
----
94

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3611
SELECT ALL - 44 AS col0, 76 * + - COALESCE ( - 77, + 2, CAST( NULL AS SIGNED ) - 1 ) - - 26 AS col1
----
-44
5878

skipif mysql # not compatible
query II rowsort label-3611
SELECT ALL - 44 AS col0, 76 * + - COALESCE ( - 77, + 2, CAST ( NULL AS INTEGER ) - 1 ) - - 26 AS col1
----
-44
5878

query II rowsort
SELECT NULLIF ( - 6, + 19 ) * 70 * + 93 + 66, - 33 + - NULLIF ( 95, 70 * 56 + 42 * 90 ) AS col2
----
-38994
-128

onlyif mysql # aggregate syntax: 
query III rowsort label-3613
SELECT + 44 + - COUNT( 65 ), COUNT( * ) AS col2, 99 * - ( + 54 ) + - + 13 * + COUNT( * ) AS col1
----
43
1
-5359

skipif mysql # not compatible
query III rowsort label-3613
SELECT + 44 + - COUNT ( 65 ), COUNT ( * ) AS col2, 99 * - ( + 54 ) + - + 13 * + COUNT ( * ) AS col1
----
43
1
-5359

query II rowsort
SELECT - 32 AS col2, 0 AS col1
----
-32
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3615
SELECT ( - - CAST( NULL AS SIGNED ) ) + 39 * + SUM( + 96 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3615
SELECT ( - - CAST ( NULL AS INTEGER ) ) + 39 * + SUM ( + 96 ) AS col1
----
NULL

query I rowsort
SELECT - 72 + + - 1
----
-73

query II rowsort
SELECT ALL 27, NULLIF ( - 97, + 50 * 30 + - 54 + 99 ) AS col1
----
27
-97

onlyif mysql # aggregate syntax: 
query II rowsort label-3618
SELECT ALL + COUNT( * ), + 93 col2
----
1
93

skipif mysql # not compatible
query II rowsort label-3618
SELECT ALL + COUNT ( * ), + 93 col2
----
1
93

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3619
SELECT + MIN( - + CAST( - 62 AS SIGNED ) ) AS col0, 55
----
62
55

skipif mysql # not compatible
query II rowsort label-3619
SELECT + MIN ( - + CAST ( - 62 AS INTEGER ) ) AS col0, 55
----
62
55

onlyif mysql # aggregate syntax: 
query II rowsort label-3620
SELECT DISTINCT + + COUNT( * ) * + 69 * - + 69, - 88 AS col1
----
-4761
-88

skipif mysql # not compatible
query II rowsort label-3620
SELECT DISTINCT + + COUNT ( * ) * + 69 * - + 69, - 88 AS col1
----
-4761
-88

query I rowsort
SELECT ALL + ( 94 ) * 77 * - 83 AS col1
----
-600754

query II rowsort
SELECT - 38 * 29 + 38, + 15 - + + 46 col2
----
-1064
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-3623
SELECT ALL + 37 + + 67 + - 12 * + 96 + 35 * - + COUNT( * ) * - ( - 25 ) * 36 AS col1
----
-32548

skipif mysql # not compatible
query I rowsort label-3623
SELECT ALL + 37 + + 67 + - 12 * + 96 + 35 * - + COUNT ( * ) * - ( - 25 ) * 36 AS col1
----
-32548

query I rowsort
SELECT ALL - 38 col2
----
-38

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3625
SELECT - - CASE - CAST( NULL AS SIGNED ) WHEN + - 7 * + 91 + + 86 THEN + + COUNT( * ) * - + 34 * CAST( NULL AS SIGNED ) + + 91 WHEN 35 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-3625
SELECT - - CASE - CAST ( NULL AS INTEGER ) WHEN + - 7 * + 91 + + 86 THEN + + COUNT ( * ) * - + 34 * CAST ( NULL AS INTEGER ) + + 91 WHEN 35 THEN NULL END
----
NULL

query I rowsort
SELECT - - 69 AS col0
----
69

query I rowsort
SELECT + + 13 AS col2
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-3628
SELECT + 4 * + + COUNT( * )
----
4

skipif mysql # not compatible
query I rowsort label-3628
SELECT + 4 * + + COUNT ( * )
----
4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3629
SELECT ALL + COALESCE ( - MIN( DISTINCT + NULLIF ( + CAST( NULL AS SIGNED ), 97 ) ), - 37 ) * - 51 * COUNT( * ) + - COALESCE ( 47, + 67 )
----
1840

skipif mysql # not compatible
query I rowsort label-3629
SELECT ALL + COALESCE ( - MIN ( DISTINCT + NULLIF ( + CAST ( NULL AS INTEGER ), 97 ) ), - 37 ) * - 51 * COUNT ( * ) + - COALESCE ( 47, + 67 )
----
1840

query I rowsort
SELECT DISTINCT + + 57 * - + 91 + 74 AS col2
----
-5113

query I rowsort
SELECT 90 * - - 66 - - 8 AS col0
----
5948

query I rowsort
SELECT - 21 * 81
----
-1701

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3633
SELECT NULLIF ( - 22, - CAST( NULL AS SIGNED ) - ( - 42 ) * COUNT( * ) / 44 + - - SUM( ALL + + 91 ) )
----
-22

skipif mysql # not compatible
query I rowsort label-3633
SELECT NULLIF ( - 22, - CAST ( NULL AS INTEGER ) - ( - 42 ) * COUNT ( * ) / 44 + - - SUM ( ALL + + 91 ) )
----
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-3634
SELECT - 97 * - - COUNT( * )
----
-97

skipif mysql # not compatible
query I rowsort label-3634
SELECT - 97 * - - COUNT ( * )
----
-97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3635
SELECT ALL + AVG ( DISTINCT CAST( NULL AS SIGNED ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3635
SELECT ALL + AVG ( DISTINCT CAST ( NULL AS INTEGER ) ) AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3636
SELECT ALL + ( - - 28 ) DIV 46 * - 75 + - 22 AS col1
----
-22

skipif mysql # not compatible
query I rowsort label-3636
SELECT ALL + ( - - 28 ) / 46 * - 75 + - 22 AS col1
----
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-3637
SELECT ALL + COUNT( * ) * - - 86 * - - 76 * + 22 + + 36 AS col0
----
143828

skipif mysql # not compatible
query I rowsort label-3637
SELECT ALL + COUNT ( * ) * - - 86 * - - 76 * + 22 + + 36 AS col0
----
143828

onlyif mysql # aggregate syntax: 
query I rowsort label-3638
SELECT - COUNT( ALL - - 89 ) * 79 * + COUNT( DISTINCT ( + 4 ) ) * 40
----
-3160

skipif mysql # not compatible
query I rowsort label-3638
SELECT - COUNT ( ALL - - 89 ) * 79 * + COUNT ( DISTINCT ( + 4 ) ) * 40
----
-3160

query I rowsort
SELECT - 67 * + 52 AS col1
----
-3484

onlyif mysql # aggregate syntax: 
query I rowsort label-3640
SELECT ALL + SUM( DISTINCT - + 85 ) col1
----
-85

skipif mysql # not compatible
query I rowsort label-3640
SELECT ALL + SUM ( DISTINCT - + 85 ) col1
----
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-3641
SELECT - 38 + + MIN( ALL + 2 ) AS col2
----
-36

skipif mysql # not compatible
query I rowsort label-3641
SELECT - 38 + + MIN ( ALL + 2 ) AS col2
----
-36

query I rowsort
SELECT DISTINCT + 77 * + 88
----
6776

query I rowsort
SELECT - 14 + - 34 * - NULLIF ( - 79, - 49 ) * + 5 AS col2
----
-13444

onlyif mysql # aggregate syntax: 
query I rowsort label-3644
SELECT - 31 * COUNT( * ) * + 3
----
-93

skipif mysql # not compatible
query I rowsort label-3644
SELECT - 31 * COUNT ( * ) * + 3
----
-93

query I rowsort
SELECT DISTINCT + 59 * + 68
----
4012

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3646
SELECT 68 * 99 - - SUM( ALL + CAST( NULL AS SIGNED ) ) + - 44 / + CAST( 80 AS SIGNED ) - + - 58 * + 75 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3646
SELECT 68 * 99 - - SUM ( ALL + CAST ( NULL AS INTEGER ) ) + - 44 / + CAST ( 80 AS INTEGER ) - + - 58 * + 75 AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3647
SELECT DISTINCT + ( - - CAST( NULL AS SIGNED ) ) * - CAST( - COUNT( * ) AS SIGNED ) + 92 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3647
SELECT DISTINCT + ( - - CAST ( NULL AS INTEGER ) ) * - CAST ( - COUNT ( * ) AS INTEGER ) + 92 col0
----
NULL

query I rowsort
SELECT - COALESCE ( - 92, - 75, - + 81 ) * 49 * + - 24
----
-108192

onlyif mysql # aggregate syntax: 
query I rowsort label-3649
SELECT - 71 * - 58 + + COUNT( * ) col2
----
4119

skipif mysql # not compatible
query I rowsort label-3649
SELECT - 71 * - 58 + + COUNT ( * ) col2
----
4119

onlyif mysql # DIV for integer division: 
query II rowsort label-3650
SELECT + - 98 DIV + 53 AS col1, + 54 * + 72
----
-1
3888

skipif mysql # not compatible
query II rowsort label-3650
SELECT + - 98 / + 53 AS col1, + 54 * + 72
----
-1
3888

query I rowsort
SELECT ALL - COALESCE ( + - 79, + 68 ) AS col1
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-3652
SELECT - CASE + 21 WHEN + 47 THEN NULL WHEN + - 29 * + CASE - - 5 WHEN 79 THEN NULL WHEN - 42 * + 51 * CASE MIN( + NULLIF ( COALESCE ( - 39, 1 ), 7 ) ) WHEN 55 THEN 62 ELSE NULL END THEN AVG ( - 55 ) ELSE NULL END * - COUNT( * ) + + 5 THEN COUNT( * ) - + 65 ELSE + 91 END * + 93 AS col0
----
-8463

skipif mysql # not compatible
query I rowsort label-3652
SELECT - CASE + 21 WHEN + 47 THEN NULL WHEN + - 29 * + CASE - - 5 WHEN 79 THEN NULL WHEN - 42 * + 51 * CASE MIN ( + NULLIF ( COALESCE ( - 39, 1 ), 7 ) ) WHEN 55 THEN 62 ELSE NULL END THEN AVG ( - 55 ) ELSE NULL END * - COUNT ( * ) + + 5 THEN COUNT ( * ) - + 65 ELSE + 91 END * + 93 AS col0
----
-8463

query I rowsort
SELECT + + 24 - - 58
----
82

onlyif mysql # DIV for integer division: 
query I rowsort label-3654
SELECT + 56 DIV 13 AS col1
----
4

skipif mysql # not compatible
query I rowsort label-3654
SELECT + 56 / 13 AS col1
----
4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3655
SELECT ALL ( - CAST( NULL AS SIGNED ) ) + - 76 + 17 + ( + ( MAX( DISTINCT - - ( 79 ) ) ) ) * COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3655
SELECT ALL ( - CAST ( NULL AS INTEGER ) ) + - 76 + 17 + ( + ( MAX ( DISTINCT - - ( 79 ) ) ) ) * COUNT ( * ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3656
SELECT DISTINCT - COUNT( * ) * + - 33 AS col2
----
33

skipif mysql # not compatible
query I rowsort label-3656
SELECT DISTINCT - COUNT ( * ) * + - 33 AS col2
----
33

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3657
SELECT DISTINCT - ( + ( + + 23 ) ) + - - CASE MIN( - + CAST( - 31 AS SIGNED ) ) WHEN - 91 + + 13 THEN NULL WHEN - ( NULLIF ( NULLIF ( + 81, 59 * 6 ), + MAX( DISTINCT - 47 ) - NULLIF ( - 47, 49 ) ) ) THEN 39 END + 7 * + 39 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3657
SELECT DISTINCT - ( + ( + + 23 ) ) + - - CASE MIN ( - + CAST ( - 31 AS INTEGER ) ) WHEN - 91 + + 13 THEN NULL WHEN - ( NULLIF ( NULLIF ( + 81, 59 * 6 ), + MAX ( DISTINCT - 47 ) - NULLIF ( - 47, 49 ) ) ) THEN 39 END + 7 * + 39 AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3658
SELECT + COALESCE ( - - 24, 66 + - - ( - + 69 ) + + - 21 DIV - 70 * + 81 ) + 35 AS col0
----
59

skipif mysql # not compatible
query I rowsort label-3658
SELECT + COALESCE ( - - 24, 66 + - - ( - + 69 ) + + - 21 / - 70 * + 81 ) + 35 AS col0
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-3659
SELECT ALL - CASE MIN( + 62 ) WHEN + 79 * - + 58 THEN - 49 ELSE 5 + + + 21 END + 62 + - COUNT( * )
----
35

skipif mysql # not compatible
query I rowsort label-3659
SELECT ALL - CASE MIN ( + 62 ) WHEN + 79 * - + 58 THEN - 49 ELSE 5 + + + 21 END + 62 + - COUNT ( * )
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-3660
SELECT ALL - ( - COALESCE ( + 40, - + COUNT( * ) ) ) + - + 27
----
13

skipif mysql # not compatible
query I rowsort label-3660
SELECT ALL - ( - COALESCE ( + 40, - + COUNT ( * ) ) ) + - + 27
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-3661
SELECT - 75 + - + CASE - COUNT( 87 ) WHEN 79 + + 61 - + 32 THEN - + 62 + - 26 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3661
SELECT - 75 + - + CASE - COUNT ( 87 ) WHEN 79 + + 61 - + 32 THEN - + 62 + - 26 END AS col0
----
NULL

query I rowsort
SELECT ALL ( 10 ) AS col2
----
10

onlyif mysql # aggregate syntax: 
query II rowsort label-3663
SELECT + 89 + - + 89, 1 + 15 + + COUNT( * ) + + 54 AS col0
----
0
71

skipif mysql # not compatible
query II rowsort label-3663
SELECT + 89 + - + 89, 1 + 15 + + COUNT ( * ) + + 54 AS col0
----
0
71

onlyif mysql # aggregate syntax: 
query I rowsort label-3664
SELECT NULLIF ( + COUNT( * ), + 82 * - COUNT( * ) * - 2 * 70 * - - ( + COUNT( * ) ) * + COUNT( * ) ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-3664
SELECT NULLIF ( + COUNT ( * ), + 82 * - COUNT ( * ) * - 2 * 70 * - - ( + COUNT ( * ) ) * + COUNT ( * ) ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-3665
SELECT + 2 + - 46 AS col1, + COUNT( * ) AS col2
----
-44
1

skipif mysql # not compatible
query II rowsort label-3665
SELECT + 2 + - 46 AS col1, + COUNT ( * ) AS col2
----
-44
1

query I rowsort
SELECT + ( + 14 ) * ( + - 80 ) * + 92 + + + 80
----
-102960

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3667
SELECT ALL 42 + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3667
SELECT ALL 42 + + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT + - 20 + - 66
----
-86

query I rowsort
SELECT ALL 55 + 59 AS col2
----
114

onlyif mysql # aggregate syntax: 
query I rowsort label-3670
SELECT ALL + 62 * - + COUNT( * ) AS col0
----
-62

skipif mysql # not compatible
query I rowsort label-3670
SELECT ALL + 62 * - + COUNT ( * ) AS col0
----
-62

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3671
SELECT 72 / + CAST( NULL AS SIGNED ) * 84 / 93 * + CAST( NULL AS SIGNED ) + - - 88
----
NULL

skipif mysql # not compatible
query I rowsort label-3671
SELECT 72 / + CAST ( NULL AS INTEGER ) * 84 / 93 * + CAST ( NULL AS INTEGER ) + - - 88
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3672
SELECT + 62 DIV 85 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3672
SELECT + 62 / 85 AS col1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3673
SELECT ALL CAST( - 15 AS SIGNED ) * ( 80 ) * + - 91
----
109200

skipif mysql # not compatible
query I rowsort label-3673
SELECT ALL CAST ( - 15 AS INTEGER ) * ( 80 ) * + - 91
----
109200

query I rowsort
SELECT + ( + + 14 )
----
14

query I rowsort
SELECT + ( + 97 ) AS col1
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-3676
SELECT ( - ( - COUNT( * ) ) ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-3676
SELECT ( - ( - COUNT ( * ) ) ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3677
SELECT 72 * + COUNT( * ) + - 97 + - 1 * + 80 AS col2
----
-105

skipif mysql # not compatible
query I rowsort label-3677
SELECT 72 * + COUNT ( * ) + - 97 + - 1 * + 80 AS col2
----
-105

query I rowsort
SELECT - 37 * + + 28 AS col0
----
-1036

onlyif mysql # aggregate syntax: 
query II rowsort label-3679
SELECT ALL + COUNT( * ), 74 + - + 5 - - 15 * + 62 * - + COUNT( * ) - + - COALESCE ( - 59, 48 ) * - + COUNT( * ) + + 20 col0
----
1
-782

skipif mysql # not compatible
query II rowsort label-3679
SELECT ALL + COUNT ( * ), 74 + - + 5 - - 15 * + 62 * - + COUNT ( * ) - + - COALESCE ( - 59, 48 ) * - + COUNT ( * ) + + 20 col0
----
1
-782

onlyif mysql # DIV for integer division: 
query I rowsort label-3680
SELECT ALL - 0 DIV + 42 * + 39
----
0

skipif mysql # not compatible
query I rowsort label-3680
SELECT ALL - 0 / + 42 * + 39
----
0

query I rowsort
SELECT - 2 * + CASE - 38 WHEN + - 50 THEN 81 ELSE - ( + ( 65 ) ) END * + COALESCE ( - + 4, + 98 * - 73 ) + + 85 AS col0
----
-435

query I rowsort
SELECT DISTINCT - 91 * 18
----
-1638

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3683
SELECT DISTINCT - 19 DIV SUM( ALL 84 ), + 8 col0
----
0
8

skipif mysql # not compatible
query II rowsort label-3683
SELECT DISTINCT - 19 / SUM ( ALL 84 ), + 8 col0
----
0
8

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3684
SELECT - 36 * COALESCE ( 56, + AVG ( ALL 18 ) * - 81 * - 96 + + ( + ( 41 ) ), 9 ) * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3684
SELECT - 36 * COALESCE ( 56, + AVG ( ALL 18 ) * - 81 * - 96 + + ( + ( 41 ) ), 9 ) * - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3685
SELECT CASE ( - CASE - 19 WHEN - COALESCE ( - 92, - 2 * 41 + - 22 + + + 56, 60 + - CASE - 0 WHEN + 81 THEN COUNT( * ) / + NULLIF ( + COALESCE ( - 45, - COUNT( * ) * + COUNT( + 93 * 6 ) - + 24 ), + 63 ) + - 63 WHEN + ( 99 ) THEN - 83 ELSE NULL END ) THEN 20 END ) WHEN 20 - COUNT( * ) THEN + 72 ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3685
SELECT CASE ( - CASE - 19 WHEN - COALESCE ( - 92, - 2 * 41 + - 22 + + + 56, 60 + - CASE - 0 WHEN + 81 THEN COUNT ( * ) / + NULLIF ( + COALESCE ( - 45, - COUNT ( * ) * + COUNT ( + 93 * 6 ) - + 24 ), + 63 ) + - 63 WHEN + ( 99 ) THEN - 83 ELSE NULL END ) THEN 20 END ) WHEN 20 - COUNT ( * ) THEN + 72 ELSE NULL END AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3686
SELECT - CAST( NULL AS SIGNED ) + - 38 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3686
SELECT - CAST ( NULL AS INTEGER ) + - 38 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3687
SELECT - 57 * - COUNT( * ) AS col2
----
57

skipif mysql # not compatible
query I rowsort label-3687
SELECT - 57 * - COUNT ( * ) AS col2
----
57

query II rowsort
SELECT - + 36 * + 63 - 36, + 99 AS col2
----
-2304
99

query II rowsort
SELECT - 28 AS col2, + 48 + + 95
----
-28
143

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-3690
SELECT ALL - 76 * - 62 + + 41, CASE - 42 WHEN + 7 THEN NULL WHEN 26 THEN + - 7 * - + 84 + + - CAST( NULL AS DECIMAL ) END AS col1
----
4753
NULL

skipif mysql # not compatible
query II rowsort label-3690
SELECT ALL - 76 * - 62 + + 41, CASE - 42 WHEN + 7 THEN NULL WHEN 26 THEN + - 7 * - + 84 + + - CAST ( NULL AS REAL ) END AS col1
----
4753
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3691
SELECT + COUNT( DISTINCT 53 )
----
1

skipif mysql # not compatible
query I rowsort label-3691
SELECT + COUNT ( DISTINCT 53 )
----
1

query I rowsort
SELECT DISTINCT - 61 * - 88 - + - 59 + 30 + - 21 - 89 + + 57
----
5404

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3693
SELECT DISTINCT COALESCE ( + CASE - 92 WHEN - CAST( 51 AS SIGNED ) THEN NULL WHEN + 59 * 43 + + 84 * - 79 + - 30 THEN - 94 WHEN - 72 * + 49 + - COUNT( * ) * 38 THEN NULL END, + 94 ) + + 48
----
142

skipif mysql # not compatible
query I rowsort label-3693
SELECT DISTINCT COALESCE ( + CASE - 92 WHEN - CAST ( 51 AS INTEGER ) THEN NULL WHEN + 59 * 43 + + 84 * - 79 + - 30 THEN - 94 WHEN - 72 * + 49 + - COUNT ( * ) * 38 THEN NULL END, + 94 ) + + 48
----
142

query I rowsort
SELECT - - 57 - + 28 + - 33
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-3695
SELECT DISTINCT - - 50 + COUNT( * ) col0
----
51

skipif mysql # not compatible
query I rowsort label-3695
SELECT DISTINCT - - 50 + COUNT ( * ) col0
----
51

query I rowsort
SELECT 11 * + 19 AS col0
----
209

query I rowsort
SELECT ALL - 54 + 51
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-3698
SELECT - MIN( + 31 ) AS col1
----
-31

skipif mysql # not compatible
query I rowsort label-3698
SELECT - MIN ( + 31 ) AS col1
----
-31

query I rowsort
SELECT - COALESCE ( - - 6, 5 ) AS col1
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-3700
SELECT ALL - COUNT( * ) * 90
----
-90

skipif mysql # not compatible
query I rowsort label-3700
SELECT ALL - COUNT ( * ) * 90
----
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-3701
SELECT ALL 86 - COUNT( * ) + + 92 AS col0
----
177

skipif mysql # not compatible
query I rowsort label-3701
SELECT ALL 86 - COUNT ( * ) + + 92 AS col0
----
177

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3702
SELECT DISTINCT + CAST( + - COUNT( * ) AS SIGNED ) * - 80 * - + 50 - + 92 col2
----
-4092

skipif mysql # not compatible
query I rowsort label-3702
SELECT DISTINCT + CAST ( + - COUNT ( * ) AS INTEGER ) * - 80 * - + 50 - + 92 col2
----
-4092

onlyif mysql # DIV for integer division: 
query I rowsort label-3703
SELECT 47 DIV + 97
----
0

skipif mysql # not compatible
query I rowsort label-3703
SELECT 47 / + 97
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3704
SELECT ALL CAST( NULL AS SIGNED ) * 83 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3704
SELECT ALL CAST ( NULL AS INTEGER ) * 83 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3705
SELECT + 93 AS col1, COUNT( * )
----
93
1

skipif mysql # not compatible
query II rowsort label-3705
SELECT + 93 AS col1, COUNT ( * )
----
93
1

query II rowsort
SELECT DISTINCT - 98 col2, 45 + 22
----
-98
67

onlyif mysql # aggregate syntax: 
query I rowsort label-3707
SELECT - 76 * MIN( 69 ) - + 80 + 29 + - + 24 + - + 59 * - 88 + - + 38 + + - 10
----
-175

skipif mysql # not compatible
query I rowsort label-3707
SELECT - 76 * MIN ( 69 ) - + 80 + 29 + - + 24 + - + 59 * - 88 + - + 38 + + - 10
----
-175

onlyif mysql # aggregate syntax: 
query II rowsort label-3708
SELECT ALL - 76 AS col1, MIN( ALL + - 12 )
----
-76
-12

skipif mysql # not compatible
query II rowsort label-3708
SELECT ALL - 76 AS col1, MIN ( ALL + - 12 )
----
-76
-12

query II rowsort
SELECT DISTINCT - 14 AS col2, 82 * 79 AS col0
----
-14
6478

query I rowsort
SELECT 66 * + + 10 * - + 50 AS col0
----
-33000

query I rowsort
SELECT DISTINCT 84 * 38
----
3192

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3712
SELECT - 25 DIV ( + 48 ) * 94 + - ( - COUNT( * ) ) AS col2, + 68 - + 62
----
1
6

skipif mysql # not compatible
query II rowsort label-3712
SELECT - 25 / ( + 48 ) * 94 + - ( - COUNT ( * ) ) AS col2, + 68 - + 62
----
1
6

query I rowsort
SELECT + 38 * - 64 - 60 AS col2
----
-2492

onlyif mysql # aggregate syntax: 
query II rowsort label-3714
SELECT ALL 19 * 45 * + COUNT( * ) * 6 AS col1, + 62 + 92
----
5130
154

skipif mysql # not compatible
query II rowsort label-3714
SELECT ALL 19 * 45 * + COUNT ( * ) * 6 AS col1, + 62 + 92
----
5130
154

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3715
SELECT 55 + - 29 + + - COUNT( * ) - + 70 * + CAST( NULL AS SIGNED ) * - + COUNT( * ) AS col1, - 34 - + + 83 AS col1
----
NULL
-117

skipif mysql # not compatible
query II rowsort label-3715
SELECT 55 + - 29 + + - COUNT ( * ) - + 70 * + CAST ( NULL AS INTEGER ) * - + COUNT ( * ) AS col1, - 34 - + + 83 AS col1
----
NULL
-117

query II rowsort
SELECT 73, 8 AS col1
----
73
8

onlyif mysql # aggregate syntax: 
query II rowsort label-3717
SELECT - 73, COALESCE ( - CASE + 68 WHEN + - COUNT( * ) + - 80 - - COUNT( * ) THEN NULL WHEN - 35 THEN NULL ELSE + SUM( DISTINCT 38 ) END, + SUM( - 32 ) + 69, 62 + - NULLIF ( 4, - 46 - - SUM( 96 + 79 ) ) * COUNT( * ) ) * 79 AS col1
----
-73
-3002

skipif mysql # not compatible
query II rowsort label-3717
SELECT - 73, COALESCE ( - CASE + 68 WHEN + - COUNT ( * ) + - 80 - - COUNT ( * ) THEN NULL WHEN - 35 THEN NULL ELSE + SUM ( DISTINCT 38 ) END, + SUM ( - 32 ) + 69, 62 + - NULLIF ( 4, - 46 - - SUM ( 96 + 79 ) ) * COUNT ( * ) ) * 79 AS col1
----
-73
-3002

query I rowsort
SELECT COALESCE ( + + 93, + 58 + ( - 57 ) * - 32 ) * - 87 + 38 + + 70 + - 33 + ( 45 ) * + 78
----
-4506

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3719
SELECT 95 / - 22 + + 70 + - 57 + + 86 + - - 48 * 53 * + CASE - 46 WHEN - - 6 THEN + 21 + + 91 / - CAST( + MAX( DISTINCT + 20 ) AS SIGNED ) WHEN 26 * 52 + 55 THEN 27 * MIN( + 64 ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3719
SELECT 95 / - 22 + + 70 + - 57 + + 86 + - - 48 * 53 * + CASE - 46 WHEN - - 6 THEN + 21 + + 91 / - CAST ( + MAX ( DISTINCT + 20 ) AS INTEGER ) WHEN 26 * 52 + 55 THEN 27 * MIN ( + 64 ) END AS col2
----
NULL

query I rowsort
SELECT ALL + 41 + 65 + - 10 + + 12 AS col0
----
108

onlyif mysql # aggregate syntax: 
query I rowsort label-3721
SELECT DISTINCT - 77 + - 24 + + 98 - - - CASE - 94 WHEN + NULLIF ( 10, + 31 ) * - COUNT( * ) THEN + 76 ELSE + + COUNT( * ) END + 27 AS col0
----
23

skipif mysql # not compatible
query I rowsort label-3721
SELECT DISTINCT - 77 + - 24 + + 98 - - - CASE - 94 WHEN + NULLIF ( 10, + 31 ) * - COUNT ( * ) THEN + 76 ELSE + + COUNT ( * ) END + 27 AS col0
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-3722
SELECT ALL - 61 * - COUNT( DISTINCT + 11 )
----
61

skipif mysql # not compatible
query I rowsort label-3722
SELECT ALL - 61 * - COUNT ( DISTINCT + 11 )
----
61

query II rowsort
SELECT 30 AS col1, - ( + 32 ) * + 62 + + COALESCE ( 9, - + ( + - 51 ), - 47 ) * + 56
----
30
-1480

onlyif mysql # aggregate syntax: 
query II rowsort label-3724
SELECT + MAX( - 7 ) * - 31 + 14, COUNT( * ) * - + 10 AS col0
----
231
-10

skipif mysql # not compatible
query II rowsort label-3724
SELECT + MAX ( - 7 ) * - 31 + 14, COUNT ( * ) * - + 10 AS col0
----
231
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-3725
SELECT MAX( DISTINCT + - NULLIF ( + 51, - 49 * 60 ) ) * + 47 + + - 28
----
-2425

skipif mysql # not compatible
query I rowsort label-3725
SELECT MAX ( DISTINCT + - NULLIF ( + 51, - 49 * 60 ) ) * + 47 + + - 28
----
-2425

onlyif mysql # aggregate syntax: 
query I rowsort label-3726
SELECT DISTINCT - - NULLIF ( - COUNT( - 80 ), - 82 ) + - 45 AS col2
----
-46

skipif mysql # not compatible
query I rowsort label-3726
SELECT DISTINCT - - NULLIF ( - COUNT ( - 80 ), - 82 ) + - 45 AS col2
----
-46

query II rowsort
SELECT - 80 col2, 58
----
-80
58

query I rowsort
SELECT - ( + - 21 ) AS col1
----
21

query I rowsort
SELECT 26 + - 25
----
1

query II rowsort
SELECT ALL 41 AS col2, 54 AS col2
----
41
54

onlyif mysql # aggregate syntax: 
query I rowsort label-3731
SELECT DISTINCT + MIN( ALL + 36 )
----
36

skipif mysql # not compatible
query I rowsort label-3731
SELECT DISTINCT + MIN ( ALL + 36 )
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-3732
SELECT + CASE - 3 WHEN + + 65 THEN - - 2 * + 79 + - 73 - + COALESCE ( COUNT( * ), - - 10 + - ( + + 65 ) ) WHEN 90 THEN NULL WHEN CASE - 24 WHEN 87 THEN NULL ELSE - 59 * - 29 END THEN NULL END + 95 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3732
SELECT + CASE - 3 WHEN + + 65 THEN - - 2 * + 79 + - 73 - + COALESCE ( COUNT ( * ), - - 10 + - ( + + 65 ) ) WHEN 90 THEN NULL WHEN CASE - 24 WHEN 87 THEN NULL ELSE - 59 * - 29 END THEN NULL END + 95 AS col0
----
NULL

query II rowsort
SELECT ALL + 23 - NULLIF ( + 59, 68 ) AS col2, - 35 AS col0
----
-36
-35

query I rowsort
SELECT ALL - - 72 - + ( - 53 )
----
125

query I rowsort
SELECT 50 * 41 AS col0
----
2050

query I rowsort
SELECT 21 + + 4
----
25

query I rowsort
SELECT 40 * + 34
----
1360

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3738
SELECT SUM( + 92 ) * + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3738
SELECT SUM ( + 92 ) * + CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT NULLIF ( 79, 81 * - 35 + - - 61 ) * 5 + + 53 col2
----
448

query I rowsort
SELECT ALL + COALESCE ( 1, + 86 ) * - 84 AS col2
----
-84

onlyif mysql # DIV for integer division: 
query I rowsort label-3741
SELECT + 22 DIV 35 + - 91 AS col0
----
-91

skipif mysql # not compatible
query I rowsort label-3741
SELECT + 22 / 35 + - 91 AS col0
----
-91

query I rowsort
SELECT DISTINCT + 1 * + 66 * + + 13
----
858

query I rowsort
SELECT DISTINCT 15 * + 69 + NULLIF ( - 65, - - 74 ) AS col1
----
970

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3744
SELECT 65 * CAST( + - COUNT( * ) AS SIGNED ) * - 2 AS col0
----
130

skipif mysql # not compatible
query I rowsort label-3744
SELECT 65 * CAST ( + - COUNT ( * ) AS INTEGER ) * - 2 AS col0
----
130

onlyif mysql # aggregate syntax: 
query I rowsort label-3745
SELECT 47 * - SUM( + - 47 ) + - 41
----
2168

skipif mysql # not compatible
query I rowsort label-3745
SELECT 47 * - SUM ( + - 47 ) + - 41
----
2168

onlyif mysql # aggregate syntax: 
query I rowsort label-3746
SELECT DISTINCT 27 * + 74 + - - 1 - - COUNT( * )
----
2000

skipif mysql # not compatible
query I rowsort label-3746
SELECT DISTINCT 27 * + 74 + - - 1 - - COUNT ( * )
----
2000

query I rowsort
SELECT DISTINCT - 29 + + 54 - 26 * 87
----
-2237

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3748
SELECT ALL 96 + - CAST( + COUNT( DISTINCT - - 96 ) AS SIGNED ) + + COUNT( * ) * + 96 DIV - 51, + COUNT( * ) + + + 34 + - 32 AS col2
----
94
3

skipif mysql # not compatible
query II rowsort label-3748
SELECT ALL 96 + - CAST ( + COUNT ( DISTINCT - - 96 ) AS INTEGER ) + + COUNT ( * ) * + 96 / - 51, + COUNT ( * ) + + + 34 + - 32 AS col2
----
94
3

query I rowsort
SELECT DISTINCT + 48 + 4 AS col1
----
52

query I rowsort
SELECT ALL 19 + 14 * - - 59
----
845

query I rowsort
SELECT + + 15 * + 21 * - - 77 AS col2
----
24255

query I rowsort
SELECT + + 9 * - 55 col2
----
-495

onlyif mysql # aggregate syntax: 
query I rowsort label-3753
SELECT + COUNT( ( + - 62 ) ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-3753
SELECT + COUNT ( ( + - 62 ) ) AS col1
----
1

query I rowsort
SELECT + ( - - 3 ) * - + 4
----
-12

query I rowsort
SELECT - + 74 col2
----
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-3756
SELECT ALL 65 - CASE + + CASE 76 WHEN - COUNT( * ) * + 66 * + - 86 THEN - 44 ELSE NULL END WHEN + 40 + + 70 + - - 71 * - ( 32 ) THEN - ( - 86 ) END * 37
----
NULL

skipif mysql # not compatible
query I rowsort label-3756
SELECT ALL 65 - CASE + + CASE 76 WHEN - COUNT ( * ) * + 66 * + - 86 THEN - 44 ELSE NULL END WHEN + 40 + + 70 + - - 71 * - ( 32 ) THEN - ( - 86 ) END * 37
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3757
SELECT DISTINCT + MAX( DISTINCT + CAST( NULL AS SIGNED ) ) / 93 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3757
SELECT DISTINCT + MAX ( DISTINCT + CAST ( NULL AS INTEGER ) ) / 93 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3758
SELECT + - COUNT( * ) + - 41 * + MAX( ALL + 92 ) + 32, - 35 AS col0
----
-3741
-35

skipif mysql # not compatible
query II rowsort label-3758
SELECT + - COUNT ( * ) + - 41 * + MAX ( ALL + 92 ) + 32, - 35 AS col0
----
-3741
-35

query I rowsort
SELECT + - ( - - 52 ) * 72
----
-3744

onlyif mysql # aggregate syntax: 
query I rowsort label-3760
SELECT - NULLIF ( 72, + 98 + - - 9 ) + 2 * COUNT( * )
----
-70

skipif mysql # not compatible
query I rowsort label-3760
SELECT - NULLIF ( 72, + 98 + - - 9 ) + 2 * COUNT ( * )
----
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-3761
SELECT DISTINCT COUNT( ALL 90 )
----
1

skipif mysql # not compatible
query I rowsort label-3761
SELECT DISTINCT COUNT ( ALL 90 )
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-3762
SELECT ALL COUNT( * ) AS col2, 40
----
1
40

skipif mysql # not compatible
query II rowsort label-3762
SELECT ALL COUNT ( * ) AS col2, 40
----
1
40

query I rowsort
SELECT - 21 + - 89 + + + 35 + - + 14
----
-89

query I rowsort
SELECT - ( - 58 ) AS col0
----
58

query I rowsort
SELECT - ( + 9 ) AS col0
----
-9

query II rowsort
SELECT ALL 93 AS col1, - 92
----
93
-92

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3767
SELECT ALL NULLIF ( + COUNT( * ), - CAST( + MIN( DISTINCT + - 61 ) AS SIGNED ) )
----
1

skipif mysql # not compatible
query I rowsort label-3767
SELECT ALL NULLIF ( + COUNT ( * ), - CAST ( + MIN ( DISTINCT + - 61 ) AS INTEGER ) )
----
1

query I rowsort
SELECT - 85 * - + 40 AS col1
----
3400

query I rowsort
SELECT ALL NULLIF ( + 7, + 30 ) AS col1
----
7

query I rowsort
SELECT ALL ( - NULLIF ( - + 48, - + 93 ) ) AS col0
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-3771
SELECT - COUNT( * ) * + + 10 AS col0
----
-10

skipif mysql # not compatible
query I rowsort label-3771
SELECT - COUNT ( * ) * + + 10 AS col0
----
-10

query I rowsort
SELECT ALL + 14 + - - 2
----
16

query I rowsort
SELECT + 49 * + + 71 AS col1
----
3479

onlyif mysql # aggregate syntax: 
query II rowsort label-3774
SELECT - 58 AS col2, COUNT( * ) + COUNT( * ) AS col0
----
-58
2

skipif mysql # not compatible
query II rowsort label-3774
SELECT - 58 AS col2, COUNT ( * ) + COUNT ( * ) AS col0
----
-58
2

query I rowsort
SELECT ( + - 21 )
----
-21

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3776
SELECT ALL 11 * CAST( NULL AS SIGNED ) + - 47 + - + 51, - 59 AS col2
----
NULL
-59

skipif mysql # not compatible
query II rowsort label-3776
SELECT ALL 11 * CAST ( NULL AS INTEGER ) + - 47 + - + 51, - 59 AS col2
----
NULL
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-3777
SELECT ( + NULLIF ( 38, - COALESCE ( - 91, - 35 + - 53 * - - MAX( + 3 ) + + + 45 - + 98 / + - 40 * 21 ) ) ) AS col1
----
38

skipif mysql # not compatible
query I rowsort label-3777
SELECT ( + NULLIF ( 38, - COALESCE ( - 91, - 35 + - 53 * - - MAX ( + 3 ) + + + 45 - + 98 / + - 40 * 21 ) ) ) AS col1
----
38

query I rowsort
SELECT - 7 * + 75 * + 70 AS col2
----
-36750

onlyif mysql # aggregate syntax: 
query I rowsort label-3779
SELECT + 29 * + 20 * - 3 * - - COUNT( * ) - + 22 * 33 * 31 + - CASE + CASE 37 WHEN - 94 THEN - - 80 END WHEN - 17 + - MIN( ALL - 77 ) THEN 17 + + 61 WHEN 29 THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-3779
SELECT + 29 * + 20 * - 3 * - - COUNT ( * ) - + 22 * 33 * 31 + - CASE + CASE 37 WHEN - 94 THEN - - 80 END WHEN - 17 + - MIN ( ALL - 77 ) THEN 17 + + 61 WHEN 29 THEN NULL ELSE NULL END
----
NULL

query I rowsort
SELECT DISTINCT + 70 * - 91 AS col0
----
-6370

onlyif mysql # aggregate syntax: 
query I rowsort label-3781
SELECT ALL CASE 70 WHEN - + 14 THEN + ( + 60 ) + - 87 + - COUNT( * ) END * 49 * 92
----
NULL

skipif mysql # not compatible
query I rowsort label-3781
SELECT ALL CASE 70 WHEN - + 14 THEN + ( + 60 ) + - 87 + - COUNT ( * ) END * 49 * 92
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3782
SELECT - ( - NULLIF ( + ( - 62 ), + 87 ) ) DIV + 60 + - 25 AS col1
----
-26

skipif mysql # not compatible
query I rowsort label-3782
SELECT - ( - NULLIF ( + ( - 62 ), + 87 ) ) / + 60 + - 25 AS col1
----
-26

onlyif mysql # aggregate syntax: 
query II rowsort label-3783
SELECT + 18 col2, COUNT( 51 ) * + 15 + 87
----
18
102

skipif mysql # not compatible
query II rowsort label-3783
SELECT + 18 col2, COUNT ( 51 ) * + 15 + 87
----
18
102

query I rowsort
SELECT DISTINCT + 83 * - 15 AS col2
----
-1245

onlyif mysql # aggregate syntax: 
query I rowsort label-3785
SELECT ALL + 27 * - - COUNT( * ) + 85 + + 11 + + 15
----
138

skipif mysql # not compatible
query I rowsort label-3785
SELECT ALL + 27 * - - COUNT ( * ) + 85 + + 11 + + 15
----
138

query II rowsort
SELECT 85 AS col0, + 21 AS col0
----
85
21

query I rowsort
SELECT - - 44 + - 55 AS col0
----
-11

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3788
SELECT - + 69 + - COUNT( - CAST( - + ( + 79 ) AS SIGNED ) ) AS col1
----
-70

skipif mysql # not compatible
query I rowsort label-3788
SELECT - + 69 + - COUNT ( - CAST ( - + ( + 79 ) AS INTEGER ) ) AS col1
----
-70

query I rowsort
SELECT + + 64 * - 19 * + - 79 AS col0
----
96064

onlyif mysql # DIV for integer division: 
query I rowsort label-3790
SELECT ALL - + 37 * + - 83 - - - 95 * - - 73 + 95 + + 23 DIV + 50
----
-3769

skipif mysql # not compatible
query I rowsort label-3790
SELECT ALL - + 37 * + - 83 - - - 95 * - - 73 + 95 + + 23 / + 50
----
-3769

onlyif mysql # aggregate syntax: 
query I rowsort label-3791
SELECT + COUNT( * ) * - 14 + + 40 * + + 1 AS col2
----
26

skipif mysql # not compatible
query I rowsort label-3791
SELECT + COUNT ( * ) * - 14 + + 40 * + + 1 AS col2
----
26

query II rowsort
SELECT ALL + - CASE - - 42 WHEN - - 36 THEN NULL WHEN 97 THEN - 18 * + 96 * 93 + + 39 ELSE NULL END, 74 * + ( - 13 ) AS col2
----
NULL
-962

query I rowsort
SELECT - + 26 * - 45 + - ( - + 18 ) + - + 98
----
1090

query II rowsort
SELECT + - 27 col1, 78
----
-27
78

query I rowsort
SELECT + 80 + 27
----
107

query I rowsort
SELECT DISTINCT + - 54 AS col1
----
-54

query I rowsort
SELECT - - 42 * - 65 col0
----
-2730

query I rowsort
SELECT DISTINCT ( 17 ) AS col2
----
17

onlyif mysql # DIV for integer division: 
query II rowsort label-3799
SELECT 77 AS col2, + COALESCE ( - + 69, - 80, + ( - + 30 ) * - 87 + + + 21 + - 63 - + 28 * + - 69 * 58 ) DIV + - 71
----
77
0

skipif mysql # not compatible
query II rowsort label-3799
SELECT 77 AS col2, + COALESCE ( - + 69, - 80, + ( - + 30 ) * - 87 + + + 21 + - 63 - + 28 * + - 69 * 58 ) / + - 71
----
77
0

query II rowsort
SELECT - 10 AS col0, - 45 AS col0
----
-10
-45

query II rowsort
SELECT + 47 * 55 + - - 59, 47 col1
----
2644
47

onlyif mysql # aggregate syntax: 
query II rowsort label-3802
SELECT - ( - + 18 ) AS col2, COUNT( * )
----
18
1

skipif mysql # not compatible
query II rowsort label-3802
SELECT - ( - + 18 ) AS col2, COUNT ( * )
----
18
1

query I rowsort
SELECT + 9 - - 56 - 50
----
15

query I rowsort
SELECT - ( + + 92 )
----
-92

onlyif mysql # DIV for integer division: 
query I rowsort label-3805
SELECT DISTINCT + 73 DIV - 90 col0
----
0

skipif mysql # not compatible
query I rowsort label-3805
SELECT DISTINCT + 73 / - 90 col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3806
SELECT ALL NULLIF ( 89, + SUM( - 21 ) ) AS col0
----
89

skipif mysql # not compatible
query I rowsort label-3806
SELECT ALL NULLIF ( 89, + SUM ( - 21 ) ) AS col0
----
89

query I rowsort
SELECT ALL 67 + - 0 * + 61 * 26 * + 46
----
67

query I rowsort
SELECT - 55 - 91 AS col0
----
-146

onlyif mysql # aggregate syntax: 
query I rowsort label-3809
SELECT ALL NULLIF ( - 80, + + COUNT( * ) )
----
-80

skipif mysql # not compatible
query I rowsort label-3809
SELECT ALL NULLIF ( - 80, + + COUNT ( * ) )
----
-80

query I rowsort
SELECT + 19 + COALESCE ( + 39, - 15, - + 95 + + 9 )
----
58

query I rowsort
SELECT ALL 1 + 37
----
38

onlyif mysql # DIV for integer division: 
query I rowsort label-3812
SELECT ( + 73 ) DIV - - 99 + + 20
----
20

skipif mysql # not compatible
query I rowsort label-3812
SELECT ( + 73 ) / - - 99 + + 20
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-3813
SELECT ALL + ( NULLIF ( MAX( ALL + 7 ), 37 ) )
----
7

skipif mysql # not compatible
query I rowsort label-3813
SELECT ALL + ( NULLIF ( MAX ( ALL + 7 ), 37 ) )
----
7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3814
SELECT - 48 + + NULLIF ( - ( 41 ), - CAST( COUNT( * ) AS SIGNED ) + - 21 ) AS col0, 20 AS col2
----
-89
20

skipif mysql # not compatible
query II rowsort label-3814
SELECT - 48 + + NULLIF ( - ( 41 ), - CAST ( COUNT ( * ) AS INTEGER ) + - 21 ) AS col0, 20 AS col2
----
-89
20

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3815
SELECT ALL CASE + 31 WHEN 18 THEN + - 75 + - 98 WHEN - + 36 / 19 - + 49 * - - 67 / + ( + COALESCE ( - 25, - CASE - 81 WHEN - 11 THEN NULL WHEN 62 + 56 / 65 THEN NULL ELSE + COALESCE ( 4, + 3, - COUNT( * ) + COUNT( * ), - MAX( ALL 37 ) * 92 ) END + 1 ) ) * 18 + CAST( - CAST( + 11 AS DECIMAL ) AS DECIMAL ) THEN ( - NULLIF ( 77, SUM( DISTINCT 53 ) ) ) * - 38 - + 0 END / 40 + + 62 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3815
SELECT ALL CASE + 31 WHEN 18 THEN + - 75 + - 98 WHEN - + 36 / 19 - + 49 * - - 67 / + ( + COALESCE ( - 25, - CASE - 81 WHEN - 11 THEN NULL WHEN 62 + 56 / 65 THEN NULL ELSE + COALESCE ( 4, + 3, - COUNT ( * ) + COUNT ( * ), - MAX ( ALL 37 ) * 92 ) END + 1 ) ) * 18 + CAST ( - CAST ( + 11 AS REAL ) AS REAL ) THEN ( - NULLIF ( 77, SUM ( DISTINCT 53 ) ) ) * - 38 - + 0 END / 40 + + 62 AS col0
----
NULL

query I rowsort
SELECT 73 * COALESCE ( + ( 12 ), 89 ) + + - 23 * + 89 AS col2
----
-1171

onlyif mysql # aggregate syntax: 
query I rowsort label-3817
SELECT COALESCE ( - COUNT( * ), + + 9 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-3817
SELECT COALESCE ( - COUNT ( * ), + + 9 ) AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3818
SELECT - 87 * + ( COUNT( * ) ) + + 96 AS col0
----
9

skipif mysql # not compatible
query I rowsort label-3818
SELECT - 87 * + ( COUNT ( * ) ) + + 96 AS col0
----
9

query I rowsort
SELECT DISTINCT + 60 - + ( + ( 71 ) )
----
-11

query I rowsort
SELECT ALL + 38 * - NULLIF ( + - 1, 14 )
----
38

query II rowsort
SELECT ( + 38 ) AS col1, 89
----
38
89

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3822
SELECT ALL - NULLIF ( + - 4, - 69 + 98 * + + CAST( + COUNT( * ) AS SIGNED ) - + 99 + - + 71 * 11 ) AS col0
----
4

skipif mysql # not compatible
query I rowsort label-3822
SELECT ALL - NULLIF ( + - 4, - 69 + 98 * + + CAST ( + COUNT ( * ) AS INTEGER ) - + 99 + - + 71 * 11 ) AS col0
----
4

query I rowsort
SELECT DISTINCT - - 25 AS col2
----
25

query I rowsort
SELECT ALL + 46 * + 76
----
3496

query I rowsort
SELECT DISTINCT - + 8 AS col1
----
-8

query I rowsort
SELECT + 78 * - + 99 col1
----
-7722

onlyif mysql # aggregate syntax: 
query I rowsort label-3827
SELECT + COUNT( * ) - + 29 + - 27 + 94 + - 17 * 56
----
-913

skipif mysql # not compatible
query I rowsort label-3827
SELECT + COUNT ( * ) - + 29 + - 27 + 94 + - 17 * 56
----
-913

onlyif mysql # aggregate syntax: 
query I rowsort label-3828
SELECT 88 / + 86 - + CASE - - 72 WHEN + 17 + + 63 + - 40 THEN CASE + - 7 WHEN - SUM( DISTINCT - 31 ) * - 84 * 45 * - 34 THEN 68 + + COUNT( * ) / 20 WHEN 74 * - ( - 95 * COUNT( * ) ) THEN NULL WHEN 17 THEN NULL END * NULLIF ( SUM( ALL 88 ), 51 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-3828
SELECT 88 / + 86 - + CASE - - 72 WHEN + 17 + + 63 + - 40 THEN CASE + - 7 WHEN - SUM ( DISTINCT - 31 ) * - 84 * 45 * - 34 THEN 68 + + COUNT ( * ) / 20 WHEN 74 * - ( - 95 * COUNT ( * ) ) THEN NULL WHEN 17 THEN NULL END * NULLIF ( SUM ( ALL 88 ), 51 ) END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3829
SELECT - 26 + + - 45 + + CAST( - 72 AS SIGNED ) * + 62 AS col1, 13 + + 55
----
-4535
68

skipif mysql # not compatible
query II rowsort label-3829
SELECT - 26 + + - 45 + + CAST ( - 72 AS INTEGER ) * + 62 AS col1, 13 + + 55
----
-4535
68

query I rowsort
SELECT ALL + CASE + - 1 WHEN - 49 THEN + 56 ELSE NULL END * - + 97
----
NULL

query I rowsort
SELECT - 78 * + 81 + + - 41
----
-6359

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3832
SELECT 50 - - - COUNT( * ) + + CAST( - - COALESCE ( + - 50, + - MIN( DISTINCT 74 ), 44 + + + 75 * + - COUNT( * ) - + 70 * + 31 + MIN( DISTINCT - 68 ) + + 26 + COUNT( * ) * 96 ) AS SIGNED ) + 56 * 83 * - COUNT( * )
----
-4649

skipif mysql # not compatible
query I rowsort label-3832
SELECT 50 - - - COUNT ( * ) + + CAST ( - - COALESCE ( + - 50, + - MIN ( DISTINCT 74 ), 44 + + + 75 * + - COUNT ( * ) - + 70 * + 31 + MIN ( DISTINCT - 68 ) + + 26 + COUNT ( * ) * 96 ) AS INTEGER ) + 56 * 83 * - COUNT ( * )
----
-4649

query I rowsort
SELECT ALL 31 col2
----
31

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3834
SELECT DISTINCT + COUNT( * ) + - 9 + - 82 AS col2, AVG ( - CAST( NULL AS SIGNED ) ) AS col1
----
-90
NULL

skipif mysql # not compatible
query II rowsort label-3834
SELECT DISTINCT + COUNT ( * ) + - 9 + - 82 AS col2, AVG ( - CAST ( NULL AS INTEGER ) ) AS col1
----
-90
NULL

query I rowsort
SELECT DISTINCT 97 + + 70 AS col0
----
167

query I rowsort
SELECT ALL 56 * + 10 AS col0
----
560

query I rowsort
SELECT ALL - 59 + + 66
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-3838
SELECT MIN( ALL - - 58 ) + 5 * + - 34
----
-112

skipif mysql # not compatible
query I rowsort label-3838
SELECT MIN ( ALL - - 58 ) + 5 * + - 34
----
-112

query I rowsort
SELECT DISTINCT 61 + + 91 + - + 37
----
115

query I rowsort
SELECT ALL 20 * - ( - 64 ) AS col0
----
1280

onlyif mysql # aggregate syntax: 
query I rowsort label-3841
SELECT 91 + - - ( + + COUNT( * ) ) AS col2
----
92

skipif mysql # not compatible
query I rowsort label-3841
SELECT 91 + - - ( + + COUNT ( * ) ) AS col2
----
92

query II rowsort
SELECT - 56 AS col2, 20 + + 60 AS col0
----
-56
80

onlyif mysql # DIV for integer division: 
query I rowsort label-3843
SELECT 81 DIV - 22
----
-3

skipif mysql # not compatible
query I rowsort label-3843
SELECT 81 / - 22
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3844
SELECT DISTINCT 19 * - - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3844
SELECT DISTINCT 19 * - - CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT 71 - 72
----
-1

query I rowsort
SELECT 6 * + - ( 93 )
----
-558

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3847
SELECT ALL COUNT( * ) DIV - CASE - + 12 WHEN - 69 THEN CAST( + COUNT( * ) AS SIGNED ) WHEN - 99 + + 68 * + COALESCE ( + + 61, 28 ) THEN - 43 ELSE - 24 - + - COUNT( * ) END
----
0

skipif mysql # not compatible
query I rowsort label-3847
SELECT ALL COUNT ( * ) / - CASE - + 12 WHEN - 69 THEN CAST ( + COUNT ( * ) AS INTEGER ) WHEN - 99 + + 68 * + COALESCE ( + + 61, 28 ) THEN - 43 ELSE - 24 - + - COUNT ( * ) END
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3848
SELECT CAST( + CAST( + 21 AS SIGNED ) AS SIGNED ) AS col0, 33
----
21
33

skipif mysql # not compatible
query II rowsort label-3848
SELECT CAST ( + CAST ( + 21 AS INTEGER ) AS INTEGER ) AS col0, 33
----
21
33

query I rowsort
SELECT ALL - 42 * - 51 - 49 AS col1
----
2093

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3850
SELECT - 57 * - CASE + 9 WHEN + CAST( - SUM( ALL - 41 ) AS SIGNED ) THEN - - 90 * + - COUNT( * ) - + 20 WHEN - + 16 THEN - 67 * + + 24 ELSE NULL END * - 69 + + COUNT( * ) * 45 * 69 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3850
SELECT - 57 * - CASE + 9 WHEN + CAST ( - SUM ( ALL - 41 ) AS INTEGER ) THEN - - 90 * + - COUNT ( * ) - + 20 WHEN - + 16 THEN - 67 * + + 24 ELSE NULL END * - 69 + + COUNT ( * ) * 45 * 69 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3851
SELECT - 51 * + 58 + - - 21 + - - 41 + + COUNT( * ) * - - COUNT( * ) AS col2
----
-2895

skipif mysql # not compatible
query I rowsort label-3851
SELECT - 51 * + 58 + - - 21 + - - 41 + + COUNT ( * ) * - - COUNT ( * ) AS col2
----
-2895

query I rowsort
SELECT - NULLIF ( 49, 47 + + - 54 ) + + - 69 + + - 74
----
-192

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3853
SELECT - 55 * - 25 - ( - - COUNT( * ) ) + - 20 + - 27 + ( + 10 ) DIV + 52 * - 73
----
1327

skipif mysql # not compatible
query I rowsort label-3853
SELECT - 55 * - 25 - ( - - COUNT ( * ) ) + - 20 + - 27 + ( + 10 ) / + 52 * - 73
----
1327

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3854
SELECT + 24 * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3854
SELECT + 24 * - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT 6 + + + 23 AS col0
----
29

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3856
SELECT + 98 - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3856
SELECT + 98 - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3857
SELECT + CAST( - 81 AS SIGNED ) AS col1
----
-81

skipif mysql # not compatible
query I rowsort label-3857
SELECT + CAST ( - 81 AS INTEGER ) AS col1
----
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-3858
SELECT DISTINCT + - 34 + - MIN( ALL - 17 ) + + - 97 AS col0
----
-114

skipif mysql # not compatible
query I rowsort label-3858
SELECT DISTINCT + - 34 + - MIN ( ALL - 17 ) + + - 97 AS col0
----
-114

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3859
SELECT ALL - SUM( ALL - CAST( NULL AS SIGNED ) ) + 98 AS col2, 75 - CAST( - + 36 AS SIGNED )
----
NULL
111

skipif mysql # not compatible
query II rowsort label-3859
SELECT ALL - SUM ( ALL - CAST ( NULL AS INTEGER ) ) + 98 AS col2, 75 - CAST ( - + 36 AS INTEGER )
----
NULL
111

query I rowsort
SELECT DISTINCT - + 5 + + 16 + + - 42 * - 45 AS col1
----
1901

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3861
SELECT DISTINCT + 63 + - + COALESCE ( + MAX( DISTINCT + - 98 ), + 41 DIV AVG ( - + 29 ) + ( + 23 ), - 92 ), - ( + 55 ) + - 34 + - 18 AS col2
----
161
-107

skipif mysql # not compatible
query II rowsort label-3861
SELECT DISTINCT + 63 + - + COALESCE ( + MAX ( DISTINCT + - 98 ), + 41 / AVG ( - + 29 ) + ( + 23 ), - 92 ), - ( + 55 ) + - 34 + - 18 AS col2
----
161
-107

query I rowsort
SELECT ALL + 28 + + 30
----
58

query II rowsort
SELECT - 42 AS col2, 44 + 72 AS col1
----
-42
116

onlyif mysql # DIV for integer division: 
query I rowsort label-3864
SELECT 91 DIV 23 AS col0
----
3

skipif mysql # not compatible
query I rowsort label-3864
SELECT 91 / 23 AS col0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3865
SELECT ALL + 83 + SUM( ALL + + 92 ) + + 4 * 78
----
487

skipif mysql # not compatible
query I rowsort label-3865
SELECT ALL + 83 + SUM ( ALL + + 92 ) + + 4 * 78
----
487

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3866
SELECT 84 * - 78, 22 * - COALESCE ( - ( + COALESCE ( 55, - COUNT( * ) ) ), + 44, + + 52 ) - + - 28 + + 11 - - - 11 + - 50 * - CAST( NULL AS SIGNED ) + + + ( CAST( ( - 64 ) AS SIGNED ) ) AS col2
----
-6552
NULL

skipif mysql # not compatible
query II rowsort label-3866
SELECT 84 * - 78, 22 * - COALESCE ( - ( + COALESCE ( 55, - COUNT ( * ) ) ), + 44, + + 52 ) - + - 28 + + 11 - - - 11 + - 50 * - CAST ( NULL AS INTEGER ) + + + ( CAST ( ( - 64 ) AS INTEGER ) ) AS col2
----
-6552
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3867
SELECT DISTINCT MAX( 50 )
----
50

skipif mysql # not compatible
query I rowsort label-3867
SELECT DISTINCT MAX ( 50 )
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-3868
SELECT - CASE - 72 WHEN - + 97 THEN NULL WHEN - 13 THEN NULL ELSE - - MAX( COALESCE ( - + 77, - + 55 * + - 99 - - 21 + - - 5 ) ) + + COUNT( * ) + - 17 END + COUNT( - 83 ) AS col1
----
94

skipif mysql # not compatible
query I rowsort label-3868
SELECT - CASE - 72 WHEN - + 97 THEN NULL WHEN - 13 THEN NULL ELSE - - MAX ( COALESCE ( - + 77, - + 55 * + - 99 - - 21 + - - 5 ) ) + + COUNT ( * ) + - 17 END + COUNT ( - 83 ) AS col1
----
94

query I rowsort
SELECT + 66 - 48
----
18

query I rowsort
SELECT - 36 + - 96
----
-132

query I rowsort
SELECT - ( + - 19 ) + + - 0 AS col0
----
19

query I rowsort
SELECT + 18 + - 49 AS col0
----
-31

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3873
SELECT - + CAST( 28 AS SIGNED ) AS col2
----
-28

skipif mysql # not compatible
query I rowsort label-3873
SELECT - + CAST ( 28 AS INTEGER ) AS col2
----
-28

query I rowsort
SELECT ALL + 71 * - + 90 AS col2
----
-6390

onlyif mysql # aggregate syntax: 
query I rowsort label-3875
SELECT + 6 + + MIN( 2 ) * + COALESCE ( + - 57, + 13 * + 84 )
----
-108

skipif mysql # not compatible
query I rowsort label-3875
SELECT + 6 + + MIN ( 2 ) * + COALESCE ( + - 57, + 13 * + 84 )
----
-108

onlyif mysql # aggregate syntax: 
query II rowsort label-3876
SELECT ALL + MIN( DISTINCT + + 49 ) AS col1, - 70
----
49
-70

skipif mysql # not compatible
query II rowsort label-3876
SELECT ALL + MIN ( DISTINCT + + 49 ) AS col1, - 70
----
49
-70

query II rowsort
SELECT DISTINCT + + 98 AS col1, - 70 * - 45
----
98
3150

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3878
SELECT + - COUNT( DISTINCT + + 32 ) DIV - 14
----
0

skipif mysql # not compatible
query I rowsort label-3878
SELECT + - COUNT ( DISTINCT + + 32 ) / - 14
----
0

query I rowsort
SELECT + ( - - 38 ) + + 10
----
48

onlyif mysql # DIV for integer division: 
query I rowsort label-3880
SELECT + 60 DIV - 86 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3880
SELECT + 60 / - 86 AS col0
----
0

query II rowsort
SELECT + - 55 * NULLIF ( - - 82, + 71 ) AS col2, 35
----
-4510
35

onlyif mysql # aggregate syntax: 
query II rowsort label-3882
SELECT + - NULLIF ( MAX( DISTINCT - 33 ), + 26 ) + - 14 * 91 AS col2, - 64
----
-1241
-64

skipif mysql # not compatible
query II rowsort label-3882
SELECT + - NULLIF ( MAX ( DISTINCT - 33 ), + 26 ) + - 14 * 91 AS col2, - 64
----
-1241
-64

onlyif mysql # DIV for integer division: 
query I rowsort label-3883
SELECT + + 38 DIV + - 31 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-3883
SELECT + + 38 / + - 31 AS col2
----
-1

query I rowsort
SELECT - ( - 26 ) * 0 + 83 - - 27 AS col1
----
110

query I rowsort
SELECT - 91 * - 61 * - 73 * - - 34 + - 28 AS col0
----
-13777610

query I rowsort
SELECT DISTINCT + 36 * + - 94 + + 44 AS col1
----
-3340

onlyif mysql # aggregate syntax: 
query I rowsort label-3887
SELECT DISTINCT + 5 * ( + MIN( 78 ) ) + - MAX( DISTINCT - ( + - 39 ) ) + COUNT( * ) * + 37 col0
----
388

skipif mysql # not compatible
query I rowsort label-3887
SELECT DISTINCT + 5 * ( + MIN ( 78 ) ) + - MAX ( DISTINCT - ( + - 39 ) ) + COUNT ( * ) * + 37 col0
----
388

query I rowsort
SELECT ALL + 69 * 46 + + 64 AS col0
----
3238

query I rowsort
SELECT + + 74 AS col1
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-3890
SELECT - 76 * + - COUNT( * )
----
76

skipif mysql # not compatible
query I rowsort label-3890
SELECT - 76 * + - COUNT ( * )
----
76

query I rowsort
SELECT + 33 - 42 AS col0
----
-9

query I rowsort
SELECT - 58 * - 44 * 20 - - 88 AS col0
----
51128

query I rowsort
SELECT DISTINCT 20 * 77 + - - 42
----
1582

query I rowsort
SELECT + ( - + 86 ) AS col1
----
-86

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3895
SELECT - COUNT( 77 ) - - 55 + - + NULLIF ( - - 15, - CAST( - CAST( 30 AS SIGNED ) AS SIGNED ) + + + COUNT( * ) ) DIV - + 14 AS col1
----
55

skipif mysql # not compatible
query I rowsort label-3895
SELECT - COUNT ( 77 ) - - 55 + - + NULLIF ( - - 15, - CAST ( - CAST ( 30 AS INTEGER ) AS INTEGER ) + + + COUNT ( * ) ) / - + 14 AS col1
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-3896
SELECT ALL + COUNT( * ) * + 33 AS col1
----
33

skipif mysql # not compatible
query I rowsort label-3896
SELECT ALL + COUNT ( * ) * + 33 AS col1
----
33

query I rowsort
SELECT DISTINCT ( - 43 )
----
-43

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3898
SELECT ALL - 97 - + ( 92 ) + - 30 + + MIN( + ( - - 2 ) ) * - 83 + + 22 + CAST( NULL AS SIGNED ) * 96
----
NULL

skipif mysql # not compatible
query I rowsort label-3898
SELECT ALL - 97 - + ( 92 ) + - 30 + + MIN ( + ( - - 2 ) ) * - 83 + + 22 + CAST ( NULL AS INTEGER ) * 96
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3899
SELECT + COALESCE ( + 96, + + COUNT( * ), - 20 + - - COALESCE ( - 87, - NULLIF ( - - CAST( - 85 AS SIGNED ), + 14 * - ( - 42 ) + + COUNT( * ) ) + + - 12 + + COALESCE ( 91, + + 79 ) ) ) DIV + 15
----
6

skipif mysql # not compatible
query I rowsort label-3899
SELECT + COALESCE ( + 96, + + COUNT ( * ), - 20 + - - COALESCE ( - 87, - NULLIF ( - - CAST ( - 85 AS INTEGER ), + 14 * - ( - 42 ) + + COUNT ( * ) ) + + - 12 + + COALESCE ( 91, + + 79 ) ) ) / + 15
----
6

query II rowsort
SELECT - 25 * + - ( 37 ) AS col2, - 41 + - 8
----
925
-49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3901
SELECT ALL + 25 * - + 15 * - CAST( NULL AS SIGNED ) * - 24 / + 85 * - 5 * + ( + 78 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3901
SELECT ALL + 25 * - + 15 * - CAST ( NULL AS INTEGER ) * - 24 / + 85 * - 5 * + ( + 78 )
----
NULL

query I rowsort
SELECT - 42 + 24 AS col2
----
-18

query I rowsort
SELECT - 1 * + - 19 AS col0
----
19

query II rowsort
SELECT DISTINCT ( - + 94 ) AS col0, + 75
----
-94
75

onlyif mysql # DIV for integer division: 
query I rowsort label-3905
SELECT - 89 DIV - + 64
----
1

skipif mysql # not compatible
query I rowsort label-3905
SELECT - 89 / - + 64
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3906
SELECT - 65 * - - COUNT( * ) * + 50 AS col1
----
-3250

skipif mysql # not compatible
query I rowsort label-3906
SELECT - 65 * - - COUNT ( * ) * + 50 AS col1
----
-3250

query I rowsort
SELECT DISTINCT 10 col0
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-3908
SELECT ALL + CASE - 17 WHEN - 10 THEN NULL WHEN 63 THEN - ( + 89 ) + + 19 + + 30 + + ( - COUNT( + 18 ) ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3908
SELECT ALL + CASE - 17 WHEN - 10 THEN NULL WHEN 63 THEN - ( + 89 ) + + 19 + + 30 + + ( - COUNT ( + 18 ) ) END AS col1
----
NULL

query I rowsort
SELECT DISTINCT 94 col0
----
94

query I rowsort
SELECT - - 70 * + 73 col2
----
5110

onlyif mysql # aggregate syntax: 
query I rowsort label-3911
SELECT MIN( ALL - ( - 65 ) )
----
65

skipif mysql # not compatible
query I rowsort label-3911
SELECT MIN ( ALL - ( - 65 ) )
----
65

query I rowsort
SELECT - ( - - 2 ) AS col2
----
-2

query I rowsort
SELECT ALL + + 92 + 59 AS col1
----
151

onlyif mysql # aggregate syntax: 
query I rowsort label-3914
SELECT ALL + + COALESCE ( 55, ( 49 ) * 91 ) * + COUNT( * ) - 90 - + 31 * - 88 * + 93 + + - 35 * + 52
----
251849

skipif mysql # not compatible
query I rowsort label-3914
SELECT ALL + + COALESCE ( 55, ( 49 ) * 91 ) * + COUNT ( * ) - 90 - + 31 * - 88 * + 93 + + - 35 * + 52
----
251849

query I rowsort
SELECT + 46 + + 96
----
142

onlyif mysql # aggregate syntax: 
query I rowsort label-3916
SELECT + CASE - + 44 WHEN - 45 * NULLIF ( + 9, + - 21 ) + + - COUNT( * ) THEN NULL ELSE 85 END AS col1
----
85

skipif mysql # not compatible
query I rowsort label-3916
SELECT + CASE - + 44 WHEN - 45 * NULLIF ( + 9, + - 21 ) + + - COUNT ( * ) THEN NULL ELSE 85 END AS col1
----
85

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-3917
SELECT - CAST( NULL AS SIGNED ) * + 44 + 35 + - 63 / 18 AS col0, + COUNT( * ) + CAST( + 88 AS DECIMAL ) / + 96 - + CASE - 64 WHEN - 77 + ( - COUNT( * ) ) THEN NULL WHEN + 43 THEN - 47 END col2
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-3917
SELECT - CAST ( NULL AS INTEGER ) * + 44 + 35 + - 63 / 18 AS col0, + COUNT ( * ) + CAST ( + 88 AS REAL ) / + 96 - + CASE - 64 WHEN - 77 + ( - COUNT ( * ) ) THEN NULL WHEN + 43 THEN - 47 END col2
----
NULL
NULL

query I rowsort
SELECT ALL + - 39 AS col0
----
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-3919
SELECT - 8 * - COUNT( * ) - + + 72 * + 97
----
-6976

skipif mysql # not compatible
query I rowsort label-3919
SELECT - 8 * - COUNT ( * ) - + + 72 * + 97
----
-6976

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3920
SELECT + CAST( 86 AS SIGNED ) - - 17
----
103

skipif mysql # not compatible
query I rowsort label-3920
SELECT + CAST ( 86 AS INTEGER ) - - 17
----
103

onlyif mysql # aggregate syntax: 
query II rowsort label-3921
SELECT ALL 16 * COUNT( ALL 93 ) - + 52, 15 * - 90 col1
----
-36
-1350

skipif mysql # not compatible
query II rowsort label-3921
SELECT ALL 16 * COUNT ( ALL 93 ) - + 52, 15 * - 90 col1
----
-36
-1350

onlyif mysql # aggregate syntax: 
query I rowsort label-3922
SELECT + COALESCE ( + 7, - 42, + + 88 ) * NULLIF ( + 29, AVG ( + 1 ) / 30 * + - 65 / - - 91 * + ( + + COALESCE ( 72, - + 93 ) ) ) + - 73 + - - COUNT( * ) + + 44 - + 36 AS col2
----
139

skipif mysql # not compatible
query I rowsort label-3922
SELECT + COALESCE ( + 7, - 42, + + 88 ) * NULLIF ( + 29, AVG ( + 1 ) / 30 * + - 65 / - - 91 * + ( + + COALESCE ( 72, - + 93 ) ) ) + - 73 + - - COUNT ( * ) + + 44 - + 36 AS col2
----
139

onlyif mysql # DIV for integer division: 
query I rowsort label-3923
SELECT ALL + 55 DIV - 23 AS col2
----
-2

skipif mysql # not compatible
query I rowsort label-3923
SELECT ALL + 55 / - 23 AS col2
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-3924
SELECT + MAX( - + NULLIF ( + - 36, + 96 / 79 ) ) * + SUM( ALL 8 ) AS col0
----
288

skipif mysql # not compatible
query I rowsort label-3924
SELECT + MAX ( - + NULLIF ( + - 36, + 96 / 79 ) ) * + SUM ( ALL 8 ) AS col0
----
288

query I rowsort
SELECT ALL 91 * + 98
----
8918

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3926
SELECT + CAST( + + CAST( NULL AS DECIMAL ) AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3926
SELECT + CAST ( + + CAST ( NULL AS REAL ) AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3927
SELECT + NULLIF ( 24, CAST( + 80 AS SIGNED ) ) + + - 45 AS col0
----
-21

skipif mysql # not compatible
query I rowsort label-3927
SELECT + NULLIF ( 24, CAST ( + 80 AS INTEGER ) ) + + - 45 AS col0
----
-21

query II rowsort
SELECT DISTINCT - 33 AS col0, - 71
----
-33
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-3929
SELECT SUM( + - 42 ) + + + 2 - + + 20 AS col1
----
-60

skipif mysql # not compatible
query I rowsort label-3929
SELECT SUM ( + - 42 ) + + + 2 - + + 20 AS col1
----
-60

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3930
SELECT 81 + - 53 + COALESCE ( 80, - + COALESCE ( COUNT( * ), - ( - - 58 ) ) * + - COUNT( * ) + 32, 36 ) DIV 19
----
32

skipif mysql # not compatible
query I rowsort label-3930
SELECT 81 + - 53 + COALESCE ( 80, - + COALESCE ( COUNT ( * ), - ( - - 58 ) ) * + - COUNT ( * ) + 32, 36 ) / 19
----
32

query I rowsort
SELECT 29 + + 80 + - 61
----
48

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3932
SELECT ALL 17, + CAST( NULL AS SIGNED ) AS col2
----
17
NULL

skipif mysql # not compatible
query II rowsort label-3932
SELECT ALL 17, + CAST ( NULL AS INTEGER ) AS col2
----
17
NULL

query II rowsort
SELECT - 70, 40 col1
----
-70
40

onlyif mysql # DIV for integer division: 
query I rowsort label-3934
SELECT ALL + ( - + 74 ) DIV - 4 col2
----
18

skipif mysql # not compatible
query I rowsort label-3934
SELECT ALL + ( - + 74 ) / - 4 col2
----
18

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3935
SELECT CAST( NULL AS SIGNED ) + AVG ( + ( + 64 ) ) * + - 20
----
NULL

skipif mysql # not compatible
query I rowsort label-3935
SELECT CAST ( NULL AS INTEGER ) + AVG ( + ( + 64 ) ) * + - 20
----
NULL

query II rowsort
SELECT ALL 74 AS col2, + 19
----
74
19

query I rowsort
SELECT + 1 + 83
----
84

onlyif mysql # DIV for integer division: 
query I rowsort label-3938
SELECT ( + ( - 17 ) ) DIV + 31 + + + 31
----
31

skipif mysql # not compatible
query I rowsort label-3938
SELECT ( + ( - 17 ) ) / + 31 + + + 31
----
31

query I rowsort
SELECT - 54 + 22 AS col2
----
-32

query I rowsort
SELECT 63 - + 51
----
12

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3941
SELECT ALL - 19 + + CAST( - 49 AS SIGNED ) * + - 64 + + + CASE + - ( 94 ) WHEN - ( COUNT( * ) ) * CAST( NULL AS SIGNED ) / 26 THEN 93 END * - 93 + - 11 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3941
SELECT ALL - 19 + + CAST ( - 49 AS INTEGER ) * + - 64 + + + CASE + - ( 94 ) WHEN - ( COUNT ( * ) ) * CAST ( NULL AS INTEGER ) / 26 THEN 93 END * - 93 + - 11 col1
----
NULL

query I rowsort
SELECT - 37 - - 31
----
-6

query I rowsort
SELECT - - ( - 43 ) AS col1
----
-43

query I rowsort
SELECT - 51 + - + 13 AS col2
----
-64

query I rowsort
SELECT NULLIF ( - 63, - 43 + + 45 ) AS col0
----
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-3946
SELECT ALL 64 + + 77 * + 79 + - COUNT( * ) + + + COUNT( * )
----
6147

skipif mysql # not compatible
query I rowsort label-3946
SELECT ALL 64 + + 77 * + 79 + - COUNT ( * ) + + + COUNT ( * )
----
6147

query I rowsort
SELECT DISTINCT 69 + 86
----
155

query I rowsort
SELECT + 17 + + 80 * - 70 AS col1
----
-5583

query I rowsort
SELECT ALL 70 + 61 * + 34 * + 35 AS col0
----
72660

query II rowsort
SELECT DISTINCT - - 9 AS col1, - 94 + 93
----
9
-1

query II rowsort
SELECT ALL - - 27, - 17 * - 54 AS col1
----
27
918

query I rowsort
SELECT DISTINCT + 42 * + 44 * - 26
----
-48048

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3953
SELECT DISTINCT - 15 - 94 col0, + SUM( DISTINCT - - 58 ) + - CAST( NULL AS SIGNED ) * - ( - + 52 ) AS col2
----
-109
NULL

skipif mysql # not compatible
query II rowsort label-3953
SELECT DISTINCT - 15 - 94 col0, + SUM ( DISTINCT - - 58 ) + - CAST ( NULL AS INTEGER ) * - ( - + 52 ) AS col2
----
-109
NULL

query I rowsort
SELECT DISTINCT + 42 * 14 AS col0
----
588

query I rowsort
SELECT 74 - + 85
----
-11

query I rowsort
SELECT ALL - COALESCE ( + 12, - - 88 * + 1 )
----
-12

query I rowsort
SELECT DISTINCT - 7 + - + 85
----
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-3958
SELECT DISTINCT MIN( - 67 )
----
-67

skipif mysql # not compatible
query I rowsort label-3958
SELECT DISTINCT MIN ( - 67 )
----
-67

query I rowsort
SELECT 16 * - + 3
----
-48

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3960
SELECT ALL ( 20 ) + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3960
SELECT ALL ( 20 ) + CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3961
SELECT ALL 42 + COALESCE ( - 58, - COUNT( * ) * + - 17 + 6 - - - 80, 77 ) AS col2
----
-16

skipif mysql # not compatible
query I rowsort label-3961
SELECT ALL 42 + COALESCE ( - 58, - COUNT ( * ) * + - 17 + 6 - - - 80, 77 ) AS col2
----
-16

query I rowsort
SELECT - 8 + - 83
----
-91

query I rowsort
SELECT 77 + - 23 AS col2
----
54

query I rowsort
SELECT + 35 + 3
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-3965
SELECT DISTINCT 53 + + - CASE + SUM( ALL - 64 ) WHEN - 64 THEN 1 * - + 81 * - + 46 * + 23 WHEN + 85 + - 54 THEN NULL ELSE - 3 + 24 + + + NULLIF ( - 89, + 22 ) + 30 END AS col1
----
-85645

skipif mysql # not compatible
query I rowsort label-3965
SELECT DISTINCT 53 + + - CASE + SUM ( ALL - 64 ) WHEN - 64 THEN 1 * - + 81 * - + 46 * + 23 WHEN + 85 + - 54 THEN NULL ELSE - 3 + 24 + + + NULLIF ( - 89, + 22 ) + 30 END AS col1
----
-85645

onlyif mysql # aggregate syntax: 
query II rowsort label-3966
SELECT MIN( DISTINCT + 85 ) AS col2, - 72 - 98 * 18 - + COUNT( * ) AS col2
----
85
-1837

skipif mysql # not compatible
query II rowsort label-3966
SELECT MIN ( DISTINCT + 85 ) AS col2, - 72 - 98 * 18 - + COUNT ( * ) AS col2
----
85
-1837

query I rowsort
SELECT + ( - - 75 )
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-3968
SELECT ALL ( - SUM( ALL 0 ) ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3968
SELECT ALL ( - SUM ( ALL 0 ) ) AS col0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3969
SELECT ALL - - 12 - 46 - + 95 + - COUNT( + - 94 ) DIV - 88 * - COUNT( * ) - - 33 + + ( 92 ) AS col1
----
-4

skipif mysql # not compatible
query I rowsort label-3969
SELECT ALL - - 12 - 46 - + 95 + - COUNT ( + - 94 ) / - 88 * - COUNT ( * ) - - 33 + + ( 92 ) AS col1
----
-4

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3970
SELECT - NULLIF ( 0, - - 28 ) * 50 AS col1, 31 DIV 10 * 99 * + + MIN( + 68 )
----
0
20196

skipif mysql # not compatible
query II rowsort label-3970
SELECT - NULLIF ( 0, - - 28 ) * 50 AS col1, 31 / 10 * 99 * + + MIN ( + 68 )
----
0
20196

onlyif mysql # DIV for integer division: 
query I rowsort label-3971
SELECT DISTINCT + 5 DIV - - 7
----
0

skipif mysql # not compatible
query I rowsort label-3971
SELECT DISTINCT + 5 / - - 7
----
0

query I rowsort
SELECT - 68 + 41
----
-27

query I rowsort
SELECT - 42 * + ( + - 72 )
----
3024

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3974
SELECT + CASE - - 72 WHEN + + 70 THEN + CASE - 87 WHEN - + 85 THEN 91 + 15 ELSE - AVG ( + 79 ) END WHEN - COUNT( * ) THEN CAST( NULL AS SIGNED ) * CAST( NULL AS SIGNED ) * + COUNT( * ) + AVG ( ALL + 28 ) * - 0 ELSE NULL END / - CAST( + 53 AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3974
SELECT + CASE - - 72 WHEN + + 70 THEN + CASE - 87 WHEN - + 85 THEN 91 + 15 ELSE - AVG ( + 79 ) END WHEN - COUNT ( * ) THEN CAST ( NULL AS INTEGER ) * CAST ( NULL AS INTEGER ) * + COUNT ( * ) + AVG ( ALL + 28 ) * - 0 ELSE NULL END / - CAST ( + 53 AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT + CASE - 49 WHEN - 26 * - + 10 - - 3 THEN - 77 * - 12 WHEN ( - 87 ) THEN NULL ELSE NULL END * + + 12
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3976
SELECT COUNT( * ) * + 89 * 56 AS col2
----
4984

skipif mysql # not compatible
query I rowsort label-3976
SELECT COUNT ( * ) * + 89 * 56 AS col2
----
4984

query I rowsort
SELECT + 8 * - 66 AS col1
----
-528

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3978
SELECT ALL 86 * + CAST( NULL AS SIGNED ) / - 26 * + 3 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3978
SELECT ALL 86 * + CAST ( NULL AS INTEGER ) / - 26 * + 3 AS col2
----
NULL

query I rowsort
SELECT 84 - - 44
----
128

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3980
SELECT - CAST( 44 AS SIGNED ) * + 82 * 63 - + 22
----
-227326

skipif mysql # not compatible
query I rowsort label-3980
SELECT - CAST ( 44 AS INTEGER ) * + 82 * 63 - + 22
----
-227326

onlyif mysql # aggregate syntax: 
query I rowsort label-3981
SELECT ALL + MIN( ALL 89 ) AS col1
----
89

skipif mysql # not compatible
query I rowsort label-3981
SELECT ALL + MIN ( ALL 89 ) AS col1
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-3982
SELECT + 78 - - COUNT( * )
----
79

skipif mysql # not compatible
query I rowsort label-3982
SELECT + 78 - - COUNT ( * )
----
79

query II rowsort
SELECT DISTINCT + CASE + AVG ( ALL - - 68 ) WHEN + 45 THEN NULL ELSE 61 END, 98 * + - 96 AS col0
----
61
-9408

onlyif mysql # aggregate syntax: 
query I rowsort label-3984
SELECT ALL - 22 * + 51 + ( - 6 ) * + - NULLIF ( 0, - SUM( + 84 ) + 15 * ( - 7 ) ) * + + 25 + + 2 * - + 49 AS col1
----
-1220

skipif mysql # not compatible
query I rowsort label-3984
SELECT ALL - 22 * + 51 + ( - 6 ) * + - NULLIF ( 0, - SUM ( + 84 ) + 15 * ( - 7 ) ) * + + 25 + + 2 * - + 49 AS col1
----
-1220

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3985
SELECT DISTINCT - 21 * CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3985
SELECT DISTINCT - 21 * CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3986
SELECT - 42 + - 52 * + CASE + + 1 WHEN - AVG ( DISTINCT 98 ) THEN - ( MIN( DISTINCT 74 ) ) WHEN - 62 THEN + 25 + - - 23 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-3986
SELECT - 42 + - 52 * + CASE + + 1 WHEN - AVG ( DISTINCT 98 ) THEN - ( MIN ( DISTINCT 74 ) ) WHEN - 62 THEN + 25 + - - 23 ELSE NULL END
----
NULL

query I rowsort
SELECT ALL - 3 * + 36
----
-108

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3988
SELECT DISTINCT + CASE - 1 WHEN - 71 * + - ( 39 ) * + 6 THEN + + COUNT( * ) * + COUNT( * ) - + NULLIF ( - 94, - + 20 ) ELSE - 31 * + - CAST( NULL AS SIGNED ) / 1 + - - ( - 47 ) - - ( - + 91 ) - 53 * + 27 + - COUNT( * ) / - 92 END
----
NULL

skipif mysql # not compatible
query I rowsort label-3988
SELECT DISTINCT + CASE - 1 WHEN - 71 * + - ( 39 ) * + 6 THEN + + COUNT ( * ) * + COUNT ( * ) - + NULLIF ( - 94, - + 20 ) ELSE - 31 * + - CAST ( NULL AS INTEGER ) / 1 + - - ( - 47 ) - - ( - + 91 ) - 53 * + 27 + - COUNT ( * ) / - 92 END
----
NULL

query I rowsort
SELECT - 6 * + 26
----
-156

query I rowsort
SELECT 31 * + 32 * - 90 + + 29 AS col0
----
-89251

onlyif mysql # DIV for integer division: 
query I rowsort label-3991
SELECT + + 66 DIV + - 55 + + 97 AS col1
----
96

skipif mysql # not compatible
query I rowsort label-3991
SELECT + + 66 / + - 55 + + 97 AS col1
----
96

query I rowsort
SELECT DISTINCT + ( - - 25 ) + + 61 + + + 17 + 50 * - ( - - 85 )
----
-4147

query I rowsort
SELECT - - 97 + - ( 60 ) AS col0
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-3994
SELECT + - 91 * - + SUM( - 43 ) * - MAX( DISTINCT + + 47 ) + - ( + 24 ) AS col2
----
183887

skipif mysql # not compatible
query I rowsort label-3994
SELECT + - 91 * - + SUM ( - 43 ) * - MAX ( DISTINCT + + 47 ) + - ( + 24 ) AS col2
----
183887

onlyif mysql # aggregate syntax: 
query II rowsort label-3995
SELECT 81 col0, COUNT( * )
----
81
1

skipif mysql # not compatible
query II rowsort label-3995
SELECT 81 col0, COUNT ( * )
----
81
1

query I rowsort
SELECT ALL ( + 38 ) * - 76 * + 75 AS col2
----
-216600

query I rowsort
SELECT + 72 + + 37
----
109

onlyif mysql # aggregate syntax: 
query I rowsort label-3998
SELECT + MAX( ALL 95 ) + - 94 + + - 67 + + 53
----
-13

skipif mysql # not compatible
query I rowsort label-3998
SELECT + MAX ( ALL 95 ) + - 94 + + - 67 + + 53
----
-13

query I rowsort
SELECT DISTINCT + ( - 37 ) AS col0
----
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-4000
SELECT ALL 82 * + - COUNT( * ) AS col0
----
-82

skipif mysql # not compatible
query I rowsort label-4000
SELECT ALL 82 * + - COUNT ( * ) AS col0
----
-82

onlyif mysql # DIV for integer division: 
query I rowsort label-4001
SELECT - + 70 + 23 DIV ( ( - + 18 ) ) AS col1
----
-71

skipif mysql # not compatible
query I rowsort label-4001
SELECT - + 70 + 23 / ( ( - + 18 ) ) AS col1
----
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-4002
SELECT + + 64 - COUNT( * ) AS col1
----
63

skipif mysql # not compatible
query I rowsort label-4002
SELECT + + 64 - COUNT ( * ) AS col1
----
63

query I rowsort
SELECT + - ( - 71 ) + + + 69
----
140

query I rowsort
SELECT + - 90 + 22 AS col0
----
-68

query I rowsort
SELECT ALL - 84 - - 55 * + 0 AS col2
----
-84

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4006
SELECT + + NULLIF ( 70, - NULLIF ( + 52, + CAST( - COUNT( * ) AS SIGNED ) + + + MIN( - 33 ) - - SUM( DISTINCT + 59 ) + 26 ) + + + 86 / + 40 + - 4 ) + + CASE + 45 WHEN + 0 + + 37 THEN - ( + 55 ) * 24 WHEN - ( - AVG ( DISTINCT CAST( + 17 AS SIGNED ) ) ) THEN 19 * + 84 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4006
SELECT + + NULLIF ( 70, - NULLIF ( + 52, + CAST ( - COUNT ( * ) AS INTEGER ) + + + MIN ( - 33 ) - - SUM ( DISTINCT + 59 ) + 26 ) + + + 86 / + 40 + - 4 ) + + CASE + 45 WHEN + 0 + + 37 THEN - ( + 55 ) * 24 WHEN - ( - AVG ( DISTINCT CAST ( + 17 AS INTEGER ) ) ) THEN 19 * + 84 END AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4007
SELECT DISTINCT + 57 - 68 + + 53 + + - 51 DIV + + COUNT( * )
----
-9

skipif mysql # not compatible
query I rowsort label-4007
SELECT DISTINCT + 57 - 68 + + 53 + + - 51 / + + COUNT ( * )
----
-9

query II rowsort
SELECT ALL + 64 AS col1, + 50 * - - 88 - - 78 AS col1
----
64
4478

onlyif mysql # aggregate syntax: 
query I rowsort label-4009
SELECT ALL - COUNT( * ) * + NULLIF ( 83, - 95 ) AS col0
----
-83

skipif mysql # not compatible
query I rowsort label-4009
SELECT ALL - COUNT ( * ) * + NULLIF ( 83, - 95 ) AS col0
----
-83

query II rowsort
SELECT DISTINCT + 26 AS col1, 80 * - 43 AS col0
----
26
-3440

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4011
SELECT ALL + 29, 51 * 72 DIV COUNT( * ) * + - 66 * - COUNT( * ) - - 89 + - 50 AS col0
----
29
242391

skipif mysql # not compatible
query II rowsort label-4011
SELECT ALL + 29, 51 * 72 / COUNT ( * ) * + - 66 * - COUNT ( * ) - - 89 + - 50 AS col0
----
29
242391

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4012
SELECT CAST( - - CASE - + 63 WHEN 72 * + - 27 * 94 + + 89 THEN NULL WHEN 7 THEN 79 END AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4012
SELECT CAST ( - - CASE - + 63 WHEN 72 * + - 27 * 94 + + 89 THEN NULL WHEN 7 THEN 79 END AS INTEGER )
----
NULL

query I rowsort
SELECT - 9 * 94
----
-846

onlyif mysql # DIV for integer division: 
query I rowsort label-4014
SELECT ALL 14 DIV - 77
----
0

skipif mysql # not compatible
query I rowsort label-4014
SELECT ALL 14 / - 77
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4015
SELECT + ( + - COUNT( * ) ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-4015
SELECT + ( + - COUNT ( * ) ) AS col1
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4016
SELECT + CAST( NULL AS SIGNED ) * - 63
----
NULL

skipif mysql # not compatible
query I rowsort label-4016
SELECT + CAST ( NULL AS INTEGER ) * - 63
----
NULL

query I rowsort
SELECT 7 * - + 14 + + 59
----
-39

query I rowsort
SELECT ( 58 )
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-4019
SELECT DISTINCT 97 * 20 * + + ( 79 ) + - 78 + CASE - 73 WHEN + + 96 THEN - COUNT( * ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4019
SELECT DISTINCT 97 * 20 * + + ( 79 ) + - 78 + CASE - 73 WHEN + + 96 THEN - COUNT ( * ) END AS col1
----
NULL

query I rowsort
SELECT - 43 * - 62 AS col0
----
2666

query I rowsort
SELECT - 60 + + - 75 * - - 72
----
-5460

query I rowsort
SELECT ALL + NULLIF ( + 91, NULLIF ( 93, + 61 ) * 48 - 88 + + + 72 * + + 14 ) * - 55 + + 53 + - + 45 AS col0
----
-4997

onlyif mysql # aggregate syntax: 
query I rowsort label-4023
SELECT ALL - 18 * - 78 + - + COUNT( * ) AS col1
----
1403

skipif mysql # not compatible
query I rowsort label-4023
SELECT ALL - 18 * - 78 + - + COUNT ( * ) AS col1
----
1403

query I rowsort
SELECT + 48 * + ( + 89 )
----
4272

query I rowsort
SELECT + 7 - - 27
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-4026
SELECT COALESCE ( + + 3, 84 * + COUNT( + 7 ) )
----
3

skipif mysql # not compatible
query I rowsort label-4026
SELECT COALESCE ( + + 3, 84 * + COUNT ( + 7 ) )
----
3

query I rowsort
SELECT COALESCE ( - 96, + 98 * - 10 + 75, - 96 * + 65 ) AS col0
----
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-4028
SELECT - 89 * COUNT( * ) AS col1
----
-89

skipif mysql # not compatible
query I rowsort label-4028
SELECT - 89 * COUNT ( * ) AS col1
----
-89

onlyif mysql # aggregate syntax: 
query II rowsort label-4029
SELECT ALL + 89 col1, - COUNT( * )
----
89
-1

skipif mysql # not compatible
query II rowsort label-4029
SELECT ALL + 89 col1, - COUNT ( * )
----
89
-1

query I rowsort
SELECT DISTINCT + ( + 1 ) AS col2
----
1

query I rowsort
SELECT + + 94 AS col2
----
94

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4032
SELECT DISTINCT - 13 * + + COALESCE ( + 87, + 44, + ( - 94 ) ) * + - CAST( - COUNT( * ) AS SIGNED ) * - 91 - + 18 - + + 51
----
102852

skipif mysql # not compatible
query I rowsort label-4032
SELECT DISTINCT - 13 * + + COALESCE ( + 87, + 44, + ( - 94 ) ) * + - CAST ( - COUNT ( * ) AS INTEGER ) * - 91 - + 18 - + + 51
----
102852

query I rowsort
SELECT - 74 - + 82 AS col0
----
-156

onlyif mysql # DIV for integer division: 
query I rowsort label-4034
SELECT DISTINCT - 38 * 94 DIV + + 42
----
-85

skipif mysql # not compatible
query I rowsort label-4034
SELECT DISTINCT - 38 * 94 / + + 42
----
-85

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4035
SELECT ALL - COUNT( * ) AS col2, + 46 + - 28 + - COUNT( * ) * - 20 * CAST( NULL AS SIGNED )
----
-1
NULL

skipif mysql # not compatible
query II rowsort label-4035
SELECT ALL - COUNT ( * ) AS col2, + 46 + - 28 + - COUNT ( * ) * - 20 * CAST ( NULL AS INTEGER )
----
-1
NULL

query I rowsort
SELECT - + ( COALESCE ( ( - 56 ), + 30 + - ( 96 ) ) ) AS col0
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-4037
SELECT - + COUNT( * ) * - - COUNT( * ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-4037
SELECT - + COUNT ( * ) * - - COUNT ( * ) AS col0
----
-1

onlyif mysql # DIV for integer division: 
query II rowsort label-4038
SELECT DISTINCT + 91 AS col1, 46 DIV 70 col0
----
91
0

skipif mysql # not compatible
query II rowsort label-4038
SELECT DISTINCT + 91 AS col1, 46 / 70 col0
----
91
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4039
SELECT - - 41 + - 30 + - 44 - 39 - 16 DIV CAST( - 51 AS SIGNED ) * + ( + + 51 ) * - 92 DIV + 79 AS col1, + 89 * + COALESCE ( - ( - + COUNT( * ) ), + COUNT( * ) + - 75 + + 55, - 63 DIV ( - 94 ) + COUNT( * ) * - 38 ) AS col1
----
-72
89

skipif mysql # not compatible
query II rowsort label-4039
SELECT - - 41 + - 30 + - 44 - 39 - 16 / CAST ( - 51 AS INTEGER ) * + ( + + 51 ) * - 92 / + 79 AS col1, + 89 * + COALESCE ( - ( - + COUNT ( * ) ), + COUNT ( * ) + - 75 + + 55, - 63 / ( - 94 ) + COUNT ( * ) * - 38 ) AS col1
----
-72
89

query II rowsort
SELECT + 48 AS col2, 20
----
48
20

onlyif mysql # aggregate syntax: 
query I rowsort label-4041
SELECT - SUM( ALL + 87 ) AS col1
----
-87

skipif mysql # not compatible
query I rowsort label-4041
SELECT - SUM ( ALL + 87 ) AS col1
----
-87

query I rowsort
SELECT + 20 + - + 33
----
-13

onlyif mysql # DIV for integer division: 
query I rowsort label-4043
SELECT + + 60 DIV - 27 AS col2
----
-2

skipif mysql # not compatible
query I rowsort label-4043
SELECT + + 60 / - 27 AS col2
----
-2

query I rowsort
SELECT - 63 * + 45 AS col0
----
-2835

onlyif mysql # aggregate syntax: 
query I rowsort label-4045
SELECT DISTINCT + MAX( DISTINCT - + COALESCE ( 83, + 53, - 98 + COALESCE ( - 13, COALESCE ( - - 94, + + 19 / - 94 * + - 78 + - + 76 + - 12, - - 7 + - ( 31 ) ) * 28 ) ) ) AS col1
----
-83

skipif mysql # not compatible
query I rowsort label-4045
SELECT DISTINCT + MAX ( DISTINCT - + COALESCE ( 83, + 53, - 98 + COALESCE ( - 13, COALESCE ( - - 94, + + 19 / - 94 * + - 78 + - + 76 + - 12, - - 7 + - ( 31 ) ) * 28 ) ) ) AS col1
----
-83

onlyif mysql # aggregate syntax: 
query II rowsort label-4046
SELECT - - 58 col0, 96 * - COUNT( * ) * - 36 + + 73 AS col2
----
58
3529

skipif mysql # not compatible
query II rowsort label-4046
SELECT - - 58 col0, 96 * - COUNT ( * ) * - 36 + + 73 AS col2
----
58
3529

query I rowsort
SELECT - - 89 AS col1
----
89

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4048
SELECT ALL + COUNT( ( - 56 ) ) DIV + + 62
----
0

skipif mysql # not compatible
query I rowsort label-4048
SELECT ALL + COUNT ( ( - 56 ) ) / + + 62
----
0

query I rowsort
SELECT ALL + 72 * - - 45 AS col0
----
3240

onlyif mysql # aggregate syntax: 
query II rowsort label-4050
SELECT MAX( - 34 ), - 88 * - - COUNT( * ) AS col1
----
-34
-88

skipif mysql # not compatible
query II rowsort label-4050
SELECT MAX ( - 34 ), - 88 * - - COUNT ( * ) AS col1
----
-34
-88

query I rowsort
SELECT + 99 * - - 74 + 11 AS col2
----
7337

query II rowsort
SELECT DISTINCT - 20 + + + 85 AS col2, + 39 AS col0
----
65
39

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4053
SELECT ALL SUM( + + 26 ) + - 87 * ( COUNT( ( - + 91 ) ) ) + - - CASE + COUNT( DISTINCT + 63 ) WHEN 65 + - 67 + + - 83 + 42 THEN - COALESCE ( + - 37, + - 58 + + CAST( COUNT( + 37 ) AS SIGNED ), + 52 + + 90 ) WHEN 15 / 88 THEN NULL END + + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-4053
SELECT ALL SUM ( + + 26 ) + - 87 * ( COUNT ( ( - + 91 ) ) ) + - - CASE + COUNT ( DISTINCT + 63 ) WHEN 65 + - 67 + + - 83 + 42 THEN - COALESCE ( + - 37, + - 58 + + CAST ( COUNT ( + 37 ) AS INTEGER ), + 52 + + 90 ) WHEN 15 / 88 THEN NULL END + + COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4054
SELECT DISTINCT + 48 * MIN( ALL + + 41 ) AS col1
----
1968

skipif mysql # not compatible
query I rowsort label-4054
SELECT DISTINCT + 48 * MIN ( ALL + + 41 ) AS col1
----
1968

query I rowsort
SELECT NULLIF ( + - ( 66 ), + + 61 ) * 30
----
-1980

query I rowsort
SELECT DISTINCT ( - + 27 ) * - 88
----
2376

onlyif mysql # aggregate syntax: 
query I rowsort label-4057
SELECT ALL - 0 * 19 * + COUNT( * ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4057
SELECT ALL - 0 * 19 * + COUNT ( * ) AS col0
----
0

query I rowsort
SELECT DISTINCT - ( + 34 ) col1
----
-34

query I rowsort
SELECT ALL - ( - - 64 )
----
-64

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4060
SELECT DISTINCT + 61 DIV - + 15 AS col1, - MIN( - 54 )
----
-4
54

skipif mysql # not compatible
query II rowsort label-4060
SELECT DISTINCT + 61 / - + 15 AS col1, - MIN ( - 54 )
----
-4
54

onlyif mysql # aggregate syntax: 
query I rowsort label-4061
SELECT - ( 4 ) + + COUNT( * ) + MIN( DISTINCT ( - 38 ) ) * - 38 col1
----
1441

skipif mysql # not compatible
query I rowsort label-4061
SELECT - ( 4 ) + + COUNT ( * ) + MIN ( DISTINCT ( - 38 ) ) * - 38 col1
----
1441

onlyif mysql # aggregate syntax: 
query II rowsort label-4062
SELECT DISTINCT SUM( ALL + ( + 25 ) ), - 51 AS col0
----
25
-51

skipif mysql # not compatible
query II rowsort label-4062
SELECT DISTINCT SUM ( ALL + ( + 25 ) ), - 51 AS col0
----
25
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-4063
SELECT 53 * + 11 + + 30 + + NULLIF ( - MAX( - 4 ), 56 * 56 + MIN( - 98 ) * 30 ) + - + 7 + + 51
----
661

skipif mysql # not compatible
query I rowsort label-4063
SELECT 53 * + 11 + + 30 + + NULLIF ( - MAX ( - 4 ), 56 * 56 + MIN ( - 98 ) * 30 ) + - + 7 + + 51
----
661

onlyif mysql # aggregate syntax: 
query I rowsort label-4064
SELECT DISTINCT + + 76 * - COUNT( * ) AS col1
----
-76

skipif mysql # not compatible
query I rowsort label-4064
SELECT DISTINCT + + 76 * - COUNT ( * ) AS col1
----
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-4065
SELECT - 61 * - MAX( + 85 ) * - - 78
----
404430

skipif mysql # not compatible
query I rowsort label-4065
SELECT - 61 * - MAX ( + 85 ) * - - 78
----
404430

onlyif mysql # aggregate syntax: 
query I rowsort label-4066
SELECT + COUNT( + 73 ) + - 98
----
-97

skipif mysql # not compatible
query I rowsort label-4066
SELECT + COUNT ( + 73 ) + - 98
----
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-4067
SELECT DISTINCT + - 1 * - 78 - ( 79 ) + + 31 * 21 + + ( + - COUNT( * ) )
----
649

skipif mysql # not compatible
query I rowsort label-4067
SELECT DISTINCT + - 1 * - 78 - ( 79 ) + + 31 * 21 + + ( + - COUNT ( * ) )
----
649

query I rowsort
SELECT ALL CASE + 82 WHEN 82 THEN - 26 END
----
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-4069
SELECT CASE + 36 WHEN ( ( + 27 ) ) THEN 38 * 92 END + - 20 + 16 * ( COUNT( * ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4069
SELECT CASE + 36 WHEN ( ( + 27 ) ) THEN 38 * 92 END + - 20 + 16 * ( COUNT ( * ) ) AS col0
----
NULL

query I rowsort
SELECT DISTINCT + 16 * 33 + 1 + - 16 * 19 * 74
----
-21967

query I rowsort
SELECT 83 + 97
----
180

query I rowsort
SELECT 84 * - + 5
----
-420

query I rowsort
SELECT 94 * + 17 * 48
----
76704

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4074
SELECT ALL - COALESCE ( + ( - NULLIF ( - - 46, - 12 ) ), + 9 * 93 DIV + + 34, - SUM( ALL CAST( - 2 AS SIGNED ) ) * COALESCE ( - 74, COUNT( * ) - 68 + - 2 + 64 ) * ( - + 85 ) + - ( - - 11 ) ) + ( + NULLIF ( + 68, 9 + + 31 ) ) AS col2
----
114

skipif mysql # not compatible
query I rowsort label-4074
SELECT ALL - COALESCE ( + ( - NULLIF ( - - 46, - 12 ) ), + 9 * 93 / + + 34, - SUM ( ALL CAST ( - 2 AS INTEGER ) ) * COALESCE ( - 74, COUNT ( * ) - 68 + - 2 + 64 ) * ( - + 85 ) + - ( - - 11 ) ) + ( + NULLIF ( + 68, 9 + + 31 ) ) AS col2
----
114

onlyif mysql # aggregate syntax: 
query II rowsort label-4075
SELECT ALL 35, ( + SUM( DISTINCT + 89 ) ) col2
----
35
89

skipif mysql # not compatible
query II rowsort label-4075
SELECT ALL 35, ( + SUM ( DISTINCT + 89 ) ) col2
----
35
89

onlyif mysql # aggregate syntax: 
query I rowsort label-4076
SELECT ALL + 80 + - 79 + 86 * - - COUNT( * )
----
87

skipif mysql # not compatible
query I rowsort label-4076
SELECT ALL + 80 + - 79 + 86 * - - COUNT ( * )
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-4077
SELECT COUNT( * ) + - + 74 AS col2
----
-73

skipif mysql # not compatible
query I rowsort label-4077
SELECT COUNT ( * ) + - + 74 AS col2
----
-73

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4078
SELECT ALL CAST( + 36 AS SIGNED ) * - 1 AS col1
----
-36

skipif mysql # not compatible
query I rowsort label-4078
SELECT ALL CAST ( + 36 AS INTEGER ) * - 1 AS col1
----
-36

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4079
SELECT ALL - 7 + 82 + + 20 + + SUM( DISTINCT - 74 ) DIV + 79
----
95

skipif mysql # not compatible
query I rowsort label-4079
SELECT ALL - 7 + 82 + + 20 + + SUM ( DISTINCT - 74 ) / + 79
----
95

onlyif mysql # aggregate syntax: 
query I rowsort label-4080
SELECT MIN( 19 )
----
19

skipif mysql # not compatible
query I rowsort label-4080
SELECT MIN ( 19 )
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-4081
SELECT COUNT( * ) + + 38
----
39

skipif mysql # not compatible
query I rowsort label-4081
SELECT COUNT ( * ) + + 38
----
39

onlyif mysql # aggregate syntax: 
query II rowsort label-4082
SELECT + 8, CASE - COUNT( 15 ) WHEN 88 + - 56 + - 87 THEN + - ( 70 ) END col1
----
8
NULL

skipif mysql # not compatible
query II rowsort label-4082
SELECT + 8, CASE - COUNT ( 15 ) WHEN 88 + - 56 + - 87 THEN + - ( 70 ) END col1
----
8
NULL

query I rowsort
SELECT NULLIF ( + + 14, - 7 / + + 39 ) * + 29 + - + 67
----
339

onlyif mysql # aggregate syntax: 
query I rowsort label-4084
SELECT ALL + 14 * - 85 * - - CASE 82 WHEN - - 60 * + 94 * 81 THEN - COALESCE ( - 27, - COUNT( * ), - 34 ) END * + - 8 - 3
----
NULL

skipif mysql # not compatible
query I rowsort label-4084
SELECT ALL + 14 * - 85 * - - CASE 82 WHEN - - 60 * + 94 * 81 THEN - COALESCE ( - 27, - COUNT ( * ), - 34 ) END * + - 8 - 3
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4085
SELECT COUNT( * ) * - 40 AS col2
----
-40

skipif mysql # not compatible
query I rowsort label-4085
SELECT COUNT ( * ) * - 40 AS col2
----
-40

query II rowsort
SELECT ALL + ( - 22 ) * - ( + - 16 ) - - COALESCE ( + 54, - 25 + + + 16 ), - 97 AS col1
----
-298
-97

query I rowsort
SELECT 50 + + 44 AS col1
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-4088
SELECT + MIN( + 68 ) AS col2
----
68

skipif mysql # not compatible
query I rowsort label-4088
SELECT + MIN ( + 68 ) AS col2
----
68

query I rowsort
SELECT - 52 * 68 + + 39
----
-3497

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-4090
SELECT ALL - + CAST( NULL AS DECIMAL ) AS col1, 70
----
NULL
70

skipif mysql # not compatible
query II rowsort label-4090
SELECT ALL - + CAST ( NULL AS REAL ) AS col1, 70
----
NULL
70

query I rowsort
SELECT ALL - - 35 col2
----
35

onlyif mysql # DIV for integer division: 
query I rowsort label-4092
SELECT 16 DIV + 99 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4092
SELECT 16 / + 99 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4093
SELECT ALL COUNT( * ) * + - 58 col2
----
-58

skipif mysql # not compatible
query I rowsort label-4093
SELECT ALL COUNT ( * ) * + - 58 col2
----
-58

query I rowsort
SELECT - 18 * + + 87
----
-1566

onlyif mysql # aggregate syntax: 
query II rowsort label-4095
SELECT ALL MAX( - - 32 ) * - - ( NULLIF ( - 52, - + COUNT( * ) ) ) * - 76 + 47 + - - 16 * + MIN( 38 ) AS col0, + COUNT( * ) AS col2
----
127119
1

skipif mysql # not compatible
query II rowsort label-4095
SELECT ALL MAX ( - - 32 ) * - - ( NULLIF ( - 52, - + COUNT ( * ) ) ) * - 76 + 47 + - - 16 * + MIN ( 38 ) AS col0, + COUNT ( * ) AS col2
----
127119
1

query I rowsort
SELECT DISTINCT 20 + + 20 AS col0
----
40

query II rowsort
SELECT - NULLIF ( - ( - 47 ), + - 42 ), + 13 AS col1
----
-47
13

onlyif mysql # aggregate syntax: 
query I rowsort label-4098
SELECT ALL - COALESCE ( - + MIN( - 90 ), + NULLIF ( COUNT( * ), 78 * + COUNT( * ) + + 80 ) )
----
-90

skipif mysql # not compatible
query I rowsort label-4098
SELECT ALL - COALESCE ( - + MIN ( - 90 ), + NULLIF ( COUNT ( * ), 78 * + COUNT ( * ) + + 80 ) )
----
-90

query I rowsort
SELECT ALL 38 + - 31 AS col2
----
7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4100
SELECT ALL CAST( - - 45 AS SIGNED )
----
45

skipif mysql # not compatible
query I rowsort label-4100
SELECT ALL CAST ( - - 45 AS INTEGER )
----
45

query I rowsort
SELECT + 21 * + 98 * + 43 * 71
----
6283074

query I rowsort
SELECT ALL 65 + + 96
----
161

onlyif mysql # aggregate syntax: 
query I rowsort label-4103
SELECT + COALESCE ( + COUNT( * ), 69 * - 83 + - 99 * - COUNT( * ) * + 66 * + 42 * - NULLIF ( 39, + 32 ) ) * + + COUNT( * ) + - - ( + 24 ) * 57 AS col0
----
1369

skipif mysql # not compatible
query I rowsort label-4103
SELECT + COALESCE ( + COUNT ( * ), 69 * - 83 + - 99 * - COUNT ( * ) * + 66 * + 42 * - NULLIF ( 39, + 32 ) ) * + + COUNT ( * ) + - - ( + 24 ) * 57 AS col0
----
1369

onlyif mysql # aggregate syntax: 
query I rowsort label-4104
SELECT DISTINCT COUNT( * ) + 21 + - COUNT( * ) * - ( + + 84 ) * + ( - 27 ) AS col2
----
-2246

skipif mysql # not compatible
query I rowsort label-4104
SELECT DISTINCT COUNT ( * ) + 21 + - COUNT ( * ) * - ( + + 84 ) * + ( - 27 ) AS col2
----
-2246

onlyif mysql # aggregate syntax: 
query I rowsort label-4105
SELECT DISTINCT COALESCE ( SUM( ALL + ( + + 23 ) ), - 24, 57 )
----
23

skipif mysql # not compatible
query I rowsort label-4105
SELECT DISTINCT COALESCE ( SUM ( ALL + ( + + 23 ) ), - 24, 57 )
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-4106
SELECT ALL + COUNT( * ) * - - 29 col0
----
29

skipif mysql # not compatible
query I rowsort label-4106
SELECT ALL + COUNT ( * ) * - - 29 col0
----
29

query I rowsort
SELECT - 44 * - ( + + 37 ) * + 98 AS col0
----
159544

onlyif mysql # aggregate syntax: 
query I rowsort label-4108
SELECT ALL + 75 + - 31 + + COUNT( * ) - - 4 * + 14 * 75 AS col1
----
4245

skipif mysql # not compatible
query I rowsort label-4108
SELECT ALL + 75 + - 31 + + COUNT ( * ) - - 4 * + 14 * 75 AS col1
----
4245

onlyif mysql # aggregate syntax: 
query II rowsort label-4109
SELECT ALL + 49 * 72 AS col0, + 26 * + - COUNT( * ) col2
----
3528
-26

skipif mysql # not compatible
query II rowsort label-4109
SELECT ALL + 49 * 72 AS col0, + 26 * + - COUNT ( * ) col2
----
3528
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-4110
SELECT - 8 + + COUNT( * )
----
-7

skipif mysql # not compatible
query I rowsort label-4110
SELECT - 8 + + COUNT ( * )
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-4111
SELECT - 25 * + COUNT( * ) * - + MIN( ALL 53 ) AS col0
----
1325

skipif mysql # not compatible
query I rowsort label-4111
SELECT - 25 * + COUNT ( * ) * - + MIN ( ALL 53 ) AS col0
----
1325

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4112
SELECT - 84 + + - CAST( COUNT( * ) AS SIGNED )
----
-85

skipif mysql # not compatible
query I rowsort label-4112
SELECT - 84 + + - CAST ( COUNT ( * ) AS INTEGER )
----
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-4113
SELECT + SUM( 9 ) AS col0
----
9

skipif mysql # not compatible
query I rowsort label-4113
SELECT + SUM ( 9 ) AS col0
----
9

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4114
SELECT ALL - CAST( NULL AS DECIMAL ) / + 75
----
NULL

skipif mysql # not compatible
query I rowsort label-4114
SELECT ALL - CAST ( NULL AS REAL ) / + 75
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query I rowsort label-4115
SELECT - 77 DIV + CASE - - 6 WHEN CAST( NULL AS DECIMAL ) THEN NULL ELSE + COUNT( * ) END
----
-77

skipif mysql # not compatible
query I rowsort label-4115
SELECT - 77 / + CASE - - 6 WHEN CAST ( NULL AS REAL ) THEN NULL ELSE + COUNT ( * ) END
----
-77

onlyif mysql # aggregate syntax: 
query II rowsort label-4116
SELECT ALL + MIN( DISTINCT + + 61 ) col1, CASE - 42 WHEN 93 THEN NULL WHEN + 60 + - + 45 - - 57 THEN NULL ELSE - 6 END AS col2
----
61
-6

skipif mysql # not compatible
query II rowsort label-4116
SELECT ALL + MIN ( DISTINCT + + 61 ) col1, CASE - 42 WHEN 93 THEN NULL WHEN + 60 + - + 45 - - 57 THEN NULL ELSE - 6 END AS col2
----
61
-6

onlyif mysql # DIV for integer division: 
query I rowsort label-4117
SELECT - 96 DIV + 95 + - 0 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-4117
SELECT - 96 / + 95 + - 0 AS col1
----
-1

query I rowsort
SELECT - 30 + + + 85 col2
----
55

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4119
SELECT ALL - COUNT( * ) / - COUNT( * ) / - CASE + COUNT( + - 53 ) WHEN + 49 * - 1 - + CAST( + - CAST( + + NULLIF ( + 15, + COALESCE ( - - ( + + 94 ), NULLIF ( + 92, 83 * 47 * + 67 * 95 ) ) + - 62 ) AS DECIMAL ) AS SIGNED ) + + COUNT( * ) * SUM( ALL + 62 ) * 65 THEN + 57 END
----
NULL

skipif mysql # not compatible
query I rowsort label-4119
SELECT ALL - COUNT ( * ) / - COUNT ( * ) / - CASE + COUNT ( + - 53 ) WHEN + 49 * - 1 - + CAST ( + - CAST ( + + NULLIF ( + 15, + COALESCE ( - - ( + + 94 ), NULLIF ( + 92, 83 * 47 * + 67 * 95 ) ) + - 62 ) AS REAL ) AS INTEGER ) + + COUNT ( * ) * SUM ( ALL + 62 ) * 65 THEN + 57 END
----
NULL

query I rowsort
SELECT DISTINCT + CASE WHEN ( NULL ) IS NOT NULL THEN - 97 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4121
SELECT + 8 * + 0 + + + 27 + - + 91 + + - 99 * - COUNT( * ) AS col1
----
35

skipif mysql # not compatible
query I rowsort label-4121
SELECT + 8 * + 0 + + + 27 + - + 91 + + - 99 * - COUNT ( * ) AS col1
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-4122
SELECT + 50 * - COUNT( * )
----
-50

skipif mysql # not compatible
query I rowsort label-4122
SELECT + 50 * - COUNT ( * )
----
-50

query I rowsort
SELECT DISTINCT 38 * + + 58 + + 16
----
2220

onlyif mysql # aggregate syntax: 
query I rowsort label-4124
SELECT - COALESCE ( 4, - - 49 ) + COUNT( * ) * + COUNT( * ) * 84 * - 7 AS col1
----
-592

skipif mysql # not compatible
query I rowsort label-4124
SELECT - COALESCE ( 4, - - 49 ) + COUNT ( * ) * + COUNT ( * ) * 84 * - 7 AS col1
----
-592

query I rowsort
SELECT - + 37 * + 59 AS col2
----
-2183

query I rowsort
SELECT ALL + NULLIF ( + 13, - 5 ) * + COALESCE ( - + 19, + 46 )
----
-247

query I rowsort
SELECT ALL + + 60 AS col0
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-4128
SELECT + - MAX( DISTINCT - - 1 )
----
-1

skipif mysql # not compatible
query I rowsort label-4128
SELECT + - MAX ( DISTINCT - - 1 )
----
-1

query I rowsort
SELECT ALL + - 99 col0
----
-99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4130
SELECT DISTINCT 92 * - + COALESCE ( - 43, + COALESCE ( 11, SUM( - COALESCE ( + + 38, - - 5 ) ) - 68 * + 44 ) ) + - - NULLIF ( - 18, - - 35 ) DIV + COUNT( * ) + - - 87 * CAST( - 3 AS SIGNED )
----
3677

skipif mysql # not compatible
query I rowsort label-4130
SELECT DISTINCT 92 * - + COALESCE ( - 43, + COALESCE ( 11, SUM ( - COALESCE ( + + 38, - - 5 ) ) - 68 * + 44 ) ) + - - NULLIF ( - 18, - - 35 ) / + COUNT ( * ) + - - 87 * CAST ( - 3 AS INTEGER )
----
3677

query I rowsort
SELECT DISTINCT 30 * + 22 + - 43 + + - 44
----
573

query I rowsort
SELECT + 52 * + + 69 + - 62
----
3526

query I rowsort
SELECT ALL + - 27
----
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-4134
SELECT - + 85 + + - COUNT( * )
----
-86

skipif mysql # not compatible
query I rowsort label-4134
SELECT - + 85 + + - COUNT ( * )
----
-86

query I rowsort
SELECT - - 10 + + - 92 AS col0
----
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-4136
SELECT - + COUNT( + + 59 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-4136
SELECT - + COUNT ( + + 59 ) AS col0
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4137
SELECT ALL - - 43 * + + 41 + - CASE + - 92 WHEN - 18 * - COUNT( DISTINCT + 90 ) + - 37 + 53 / - 32 THEN + 9 + - NULLIF ( + 15, 21 ) + + 0 * 60 WHEN ( + COUNT( * ) ) / - 58 THEN NULL ELSE NULL END * CAST( - 87 AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4137
SELECT ALL - - 43 * + + 41 + - CASE + - 92 WHEN - 18 * - COUNT ( DISTINCT + 90 ) + - 37 + 53 / - 32 THEN + 9 + - NULLIF ( + 15, 21 ) + + 0 * 60 WHEN ( + COUNT ( * ) ) / - 58 THEN NULL ELSE NULL END * CAST ( - 87 AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4138
SELECT ALL + 55 DIV + COUNT( * ) AS col0
----
55

skipif mysql # not compatible
query I rowsort label-4138
SELECT ALL + 55 / + COUNT ( * ) AS col0
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-4139
SELECT + MIN( DISTINCT + 53 ) + + + 43
----
96

skipif mysql # not compatible
query I rowsort label-4139
SELECT + MIN ( DISTINCT + 53 ) + + + 43
----
96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4140
SELECT - + CAST( + + 84 AS SIGNED ) col1, COUNT( ALL - CASE ( + + ( + 96 ) ) WHEN - + NULLIF ( + 78, ( - 35 ) + - 72 ) - + ( + 83 ) + 32 * - 56 THEN - 32 ELSE + 52 END ) + ( 77 ) DIV + - 46 + + 51 + + 14 DIV + - 99 + + 91 col1
----
-84
142

skipif mysql # not compatible
query II rowsort label-4140
SELECT - + CAST ( + + 84 AS INTEGER ) col1, COUNT ( ALL - CASE ( + + ( + 96 ) ) WHEN - + NULLIF ( + 78, ( - 35 ) + - 72 ) - + ( + 83 ) + 32 * - 56 THEN - 32 ELSE + 52 END ) + ( 77 ) / + - 46 + + 51 + + 14 / + - 99 + + 91 col1
----
-84
142

query I rowsort
SELECT DISTINCT 15 + 92 * + 82 + + 78 + 1 AS col1
----
7638

query I rowsort
SELECT ALL COALESCE ( 36, 30, - - 87 * - ( 42 ), - 52 * 63 ) col2
----
36

onlyif mysql # aggregate syntax: 
query II rowsort label-4143
SELECT + 44 + - - COUNT( * ) - + + 38, 87 + + COUNT( * ) AS col1
----
7
88

skipif mysql # not compatible
query II rowsort label-4143
SELECT + 44 + - - COUNT ( * ) - + + 38, 87 + + COUNT ( * ) AS col1
----
7
88

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4144
SELECT ALL 50 - + - SUM( DISTINCT + ( - CASE + 37 WHEN - - 32 + - CAST( NULL AS SIGNED ) THEN - + 10 END ) ) + - 60 * + 42
----
NULL

skipif mysql # not compatible
query I rowsort label-4144
SELECT ALL 50 - + - SUM ( DISTINCT + ( - CASE + 37 WHEN - - 32 + - CAST ( NULL AS INTEGER ) THEN - + 10 END ) ) + - 60 * + 42
----
NULL

query I rowsort
SELECT + 20 + - ( + 80 ) - + 70 + + 36 col1
----
-94

query I rowsort
SELECT + 32 * 14
----
448

onlyif mysql # aggregate syntax: 
query I rowsort label-4147
SELECT - COUNT( * ) * COALESCE ( 5, + 62 ) AS col1
----
-5

skipif mysql # not compatible
query I rowsort label-4147
SELECT - COUNT ( * ) * COALESCE ( 5, + 62 ) AS col1
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-4148
SELECT DISTINCT SUM( + - 32 )
----
-32

skipif mysql # not compatible
query I rowsort label-4148
SELECT DISTINCT SUM ( + - 32 )
----
-32

onlyif mysql # aggregate syntax: 
query II rowsort label-4149
SELECT ALL COUNT( * ) AS col1, - 27
----
1
-27

skipif mysql # not compatible
query II rowsort label-4149
SELECT ALL COUNT ( * ) AS col1, - 27
----
1
-27

query I rowsort
SELECT DISTINCT ( + + ( - 68 ) ) - - 74 AS col0
----
6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4151
SELECT - CAST( + ( COUNT( * ) ) AS SIGNED )
----
-1

skipif mysql # not compatible
query I rowsort label-4151
SELECT - CAST ( + ( COUNT ( * ) ) AS INTEGER )
----
-1

query I rowsort
SELECT + 2 * 64 * - + ( - 47 ) AS col2
----
6016

query I rowsort
SELECT DISTINCT - 26 * - 14 AS col2
----
364

query I rowsort
SELECT DISTINCT ( - + 22 ) AS col0
----
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-4155
SELECT DISTINCT SUM( - 38 )
----
-38

skipif mysql # not compatible
query I rowsort label-4155
SELECT DISTINCT SUM ( - 38 )
----
-38

query I rowsort
SELECT ALL ( + ( + 32 ) )
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-4157
SELECT DISTINCT + MIN( DISTINCT - 63 )
----
-63

skipif mysql # not compatible
query I rowsort label-4157
SELECT DISTINCT + MIN ( DISTINCT - 63 )
----
-63

onlyif mysql # DIV for integer division: 
query I rowsort label-4158
SELECT - 24 DIV 56
----
0

skipif mysql # not compatible
query I rowsort label-4158
SELECT - 24 / 56
----
0

query I rowsort
SELECT ALL - 9 * - - 5 col1
----
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-4160
SELECT ALL + COALESCE ( - + 54, - COUNT( ALL - COALESCE ( 0, + - 68 / + - 40 + - 68 ) ) - + 63 ) AS col1
----
-54

skipif mysql # not compatible
query I rowsort label-4160
SELECT ALL + COALESCE ( - + 54, - COUNT ( ALL - COALESCE ( 0, + - 68 / + - 40 + - 68 ) ) - + 63 ) AS col1
----
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-4161
SELECT DISTINCT + MAX( - + 62 )
----
-62

skipif mysql # not compatible
query I rowsort label-4161
SELECT DISTINCT + MAX ( - + 62 )
----
-62

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4162
SELECT ALL + - 59 DIV + - 95 + - 41 AS col2, MIN( DISTINCT + 11 )
----
-41
11

skipif mysql # not compatible
query II rowsort label-4162
SELECT ALL + - 59 / + - 95 + - 41 AS col2, MIN ( DISTINCT + 11 )
----
-41
11

onlyif mysql # DIV for integer division: 
query I rowsort label-4163
SELECT DISTINCT - 38 DIV - - ( + 70 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4163
SELECT DISTINCT - 38 / - - ( + 70 ) AS col1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4164
SELECT ALL + 80 + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4164
SELECT ALL + 80 + CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4165
SELECT DISTINCT + 69 + - COALESCE ( - 4, - COUNT( * ) DIV - 75 ) + + SUM( 85 ) * + 4 col1
----
413

skipif mysql # not compatible
query I rowsort label-4165
SELECT DISTINCT + 69 + - COALESCE ( - 4, - COUNT ( * ) / - 75 ) + + SUM ( 85 ) * + 4 col1
----
413

onlyif mysql # aggregate syntax: 
query I rowsort label-4166
SELECT NULLIF ( - 18, - + 75 ) + - - 65 + - + COUNT( * )
----
46

skipif mysql # not compatible
query I rowsort label-4166
SELECT NULLIF ( - 18, - + 75 ) + - - 65 + - + COUNT ( * )
----
46

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4167
SELECT DISTINCT - CAST( - 62 AS SIGNED ) + - - 53 AS col0
----
115

skipif mysql # not compatible
query I rowsort label-4167
SELECT DISTINCT - CAST ( - 62 AS INTEGER ) + - - 53 AS col0
----
115

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4168
SELECT DISTINCT - 78 DIV + - 60 + - + 23 DIV 34 DIV - COUNT( * ) * + + SUM( DISTINCT + 86 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-4168
SELECT DISTINCT - 78 / + - 60 + - + 23 / 34 / - COUNT ( * ) * + + SUM ( DISTINCT + 86 ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4169
SELECT ALL + 20 + + - COALESCE ( - + 15, - + 12, 63 * - CASE + 56 WHEN - 79 THEN + - 62 WHEN + 74 THEN - COUNT( * ) + 40 + - 15 * - 7 + 31 WHEN 17 THEN + COUNT( * ) END * + + COUNT( ALL - 81 ) )
----
35

skipif mysql # not compatible
query I rowsort label-4169
SELECT ALL + 20 + + - COALESCE ( - + 15, - + 12, 63 * - CASE + 56 WHEN - 79 THEN + - 62 WHEN + 74 THEN - COUNT ( * ) + 40 + - 15 * - 7 + 31 WHEN 17 THEN + COUNT ( * ) END * + + COUNT ( ALL - 81 ) )
----
35

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4170
SELECT 89 / ( - 99 ) / - CAST( NULL AS SIGNED ) * 41 * 64
----
NULL

skipif mysql # not compatible
query I rowsort label-4170
SELECT 89 / ( - 99 ) / - CAST ( NULL AS INTEGER ) * 41 * 64
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4171
SELECT 81 * + + 79 + - COALESCE ( + - 83, 83 + - + 61 + + 81 * + - 12 * + 48 + + CAST( - - 91 AS SIGNED ) * 44, 11 * 6 * - 95 + - ( - + 80 ) * - 16 ) * 72 AS col2
----
12375

skipif mysql # not compatible
query I rowsort label-4171
SELECT 81 * + + 79 + - COALESCE ( + - 83, 83 + - + 61 + + 81 * + - 12 * + 48 + + CAST ( - - 91 AS INTEGER ) * 44, 11 * 6 * - 95 + - ( - + 80 ) * - 16 ) * 72 AS col2
----
12375

query I rowsort
SELECT 78 + - - 13 * - - 76 AS col1
----
1066

onlyif mysql # aggregate syntax: 
query I rowsort label-4173
SELECT DISTINCT - COUNT( * ) * + - 46 * + COUNT( DISTINCT + 80 )
----
46

skipif mysql # not compatible
query I rowsort label-4173
SELECT DISTINCT - COUNT ( * ) * + - 46 * + COUNT ( DISTINCT + 80 )
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-4174
SELECT DISTINCT - SUM( ALL 51 )
----
-51

skipif mysql # not compatible
query I rowsort label-4174
SELECT DISTINCT - SUM ( ALL 51 )
----
-51

onlyif mysql # aggregate syntax: 
query II rowsort label-4175
SELECT ALL - COUNT( * ) AS col1, + 69
----
-1
69

skipif mysql # not compatible
query II rowsort label-4175
SELECT ALL - COUNT ( * ) AS col1, + 69
----
-1
69

onlyif mysql # aggregate syntax: 
query II rowsort label-4176
SELECT ALL - - 23 - 88 - - 14 AS col2, NULLIF ( + + 70, 18 ) * - SUM( - 34 )
----
-51
2380

skipif mysql # not compatible
query II rowsort label-4176
SELECT ALL - - 23 - 88 - - 14 AS col2, NULLIF ( + + 70, 18 ) * - SUM ( - 34 )
----
-51
2380

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4177
SELECT DISTINCT 24 AS col0, CAST( - 72 AS SIGNED )
----
24
-72

skipif mysql # not compatible
query II rowsort label-4177
SELECT DISTINCT 24 AS col0, CAST ( - 72 AS INTEGER )
----
24
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-4178
SELECT ALL ( - COUNT( * ) ) - - 1 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4178
SELECT ALL ( - COUNT ( * ) ) - - 1 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4179
SELECT 93 * COUNT( * ) AS col2
----
93

skipif mysql # not compatible
query I rowsort label-4179
SELECT 93 * COUNT ( * ) AS col2
----
93

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4180
SELECT ALL 29 AS col2, + CAST( - 35 AS SIGNED )
----
29
-35

skipif mysql # not compatible
query II rowsort label-4180
SELECT ALL 29 AS col2, + CAST ( - 35 AS INTEGER )
----
29
-35

query I rowsort
SELECT 35 * - 26 AS col0
----
-910

query II rowsort
SELECT 42 AS col1, + 67 AS col1
----
42
67

query II rowsort
SELECT ALL 86 AS col0, 16
----
86
16

query II rowsort
SELECT 85, + 94 AS col2
----
85
94

onlyif mysql # aggregate syntax: 
query I rowsort label-4185
SELECT DISTINCT COUNT( * ) * + 96 * + 28 * - - 62 * + - SUM( DISTINCT 58 ) AS col1
----
-9666048

skipif mysql # not compatible
query I rowsort label-4185
SELECT DISTINCT COUNT ( * ) * + 96 * + 28 * - - 62 * + - SUM ( DISTINCT 58 ) AS col1
----
-9666048

query II rowsort
SELECT DISTINCT 98, + 49 AS col1
----
98
49

query I rowsort
SELECT DISTINCT 58 col1
----
58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4188
SELECT COUNT( * ) / CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4188
SELECT COUNT ( * ) / CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4189
SELECT ALL 61 AS col2, MAX( + 44 ) - - 63 + + 82 + + 45 AS col0
----
61
234

skipif mysql # not compatible
query II rowsort label-4189
SELECT ALL 61 AS col2, MAX ( + 44 ) - - 63 + + 82 + + 45 AS col0
----
61
234

query I rowsort
SELECT 73 * + - 22 AS col2
----
-1606

query I rowsort
SELECT ALL 89 + - 58
----
31

query I rowsort
SELECT 79 - + 71 AS col2
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-4193
SELECT 50 * + MIN( 46 )
----
2300

skipif mysql # not compatible
query I rowsort label-4193
SELECT 50 * + MIN ( 46 )
----
2300

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4194
SELECT CASE - - 76 WHEN - 24 THEN NULL ELSE - 53 END + + NULLIF ( - 26, CAST( - 7 AS SIGNED ) - + ( SUM( DISTINCT ( + + 13 ) ) ) + + - 53 ) + + CAST( - + 2 AS SIGNED )
----
-81

skipif mysql # not compatible
query I rowsort label-4194
SELECT CASE - - 76 WHEN - 24 THEN NULL ELSE - 53 END + + NULLIF ( - 26, CAST ( - 7 AS INTEGER ) - + ( SUM ( DISTINCT ( + + 13 ) ) ) + + - 53 ) + + CAST ( - + 2 AS INTEGER )
----
-81

query II rowsort
SELECT + 0 col2, 55 AS col1
----
0
55

query I rowsort
SELECT ALL 59 + + - 47
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-4197
SELECT DISTINCT - 73 + + COUNT( 88 ) AS col2
----
-72

skipif mysql # not compatible
query I rowsort label-4197
SELECT DISTINCT - 73 + + COUNT ( 88 ) AS col2
----
-72

query I rowsort
SELECT ALL - + 67 + + ( + - 19 ) + + 31 + - 58 + - 42 + 41 + 0 col0
----
-114

onlyif mysql # DIV for integer division: 
query I rowsort label-4199
SELECT + 96 DIV - ( + - 77 ) + - 40 + + 36 * - 95 * - + 1 + - 29
----
3352

skipif mysql # not compatible
query I rowsort label-4199
SELECT + 96 / - ( + - 77 ) + - 40 + + 36 * - 95 * - + 1 + - 29
----
3352

query II rowsort
SELECT ALL - + 81, - 38 AS col1
----
-81
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-4201
SELECT MAX( ALL + 39 ) + - ( - 60 ) AS col0
----
99

skipif mysql # not compatible
query I rowsort label-4201
SELECT MAX ( ALL + 39 ) + - ( - 60 ) AS col0
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-4202
SELECT + COUNT( DISTINCT + - 6 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-4202
SELECT + COUNT ( DISTINCT + - 6 ) AS col0
----
1

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4203
SELECT ALL ( 1 ) * CAST( NULL AS DECIMAL ) * + 51
----
NULL

skipif mysql # not compatible
query I rowsort label-4203
SELECT ALL ( 1 ) * CAST ( NULL AS REAL ) * + 51
----
NULL

query I rowsort
SELECT ALL - 90 + - NULLIF ( 82, + 85 ) col2
----
-172

query I rowsort
SELECT ( 14 ) + + 41 AS col2
----
55

onlyif mysql # aggregate syntax: 
query II rowsort label-4206
SELECT + COUNT( * ), 28 - 80 + - 70 AS col1
----
1
-122

skipif mysql # not compatible
query II rowsort label-4206
SELECT + COUNT ( * ), 28 - 80 + - 70 AS col1
----
1
-122

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4207
SELECT DISTINCT - 97 - - - COUNT( * ) * 96 * - 16 + - + COUNT( * ) DIV 88
----
1439

skipif mysql # not compatible
query I rowsort label-4207
SELECT DISTINCT - 97 - - - COUNT ( * ) * 96 * - 16 + - + COUNT ( * ) / 88
----
1439

query I rowsort
SELECT DISTINCT + + 83 - - 80 * + 95 * 5
----
38083

onlyif mysql # aggregate syntax: 
query I rowsort label-4209
SELECT DISTINCT + - 75 * + COUNT( * ) + - COUNT( * ) AS col2
----
-76

skipif mysql # not compatible
query I rowsort label-4209
SELECT DISTINCT + - 75 * + COUNT ( * ) + - COUNT ( * ) AS col2
----
-76

onlyif mysql # aggregate syntax: 
query II rowsort label-4210
SELECT + 94 * - + 68 * + + COUNT( * ) - - + 19 AS col0, - 12 - + + 31 AS col0
----
-6373
-43

skipif mysql # not compatible
query II rowsort label-4210
SELECT + 94 * - + 68 * + + COUNT ( * ) - - + 19 AS col0, - 12 - + + 31 AS col0
----
-6373
-43

query II rowsort
SELECT + 64 * - + 98 AS col1, 75
----
-6272
75

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4212
SELECT ALL + 16 DIV COALESCE ( 73, ( + + ( + COUNT( * ) ) ) )
----
0

skipif mysql # not compatible
query I rowsort label-4212
SELECT ALL + 16 / COALESCE ( 73, ( + + ( + COUNT ( * ) ) ) )
----
0

query II rowsort
SELECT 3 * - 94 AS col0, - 87 AS col0
----
-282
-87

query I rowsort
SELECT 17 * 75 + - 4 AS col2
----
1271

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4215
SELECT 45 - 43, - 8 DIV - + NULLIF ( 88, - - SUM( ALL - + 52 ) ) + + - 77 AS col1
----
2
-77

skipif mysql # not compatible
query II rowsort label-4215
SELECT 45 - 43, - 8 / - + NULLIF ( 88, - - SUM ( ALL - + 52 ) ) + + - 77 AS col1
----
2
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-4216
SELECT 28 * + COUNT( - 28 ) AS col1
----
28

skipif mysql # not compatible
query I rowsort label-4216
SELECT 28 * + COUNT ( - 28 ) AS col1
----
28

query I rowsort
SELECT 35 + + - 18 * 30 AS col1
----
-505

onlyif mysql # aggregate syntax: 
query I rowsort label-4218
SELECT DISTINCT - ( + COUNT( * ) ) * COALESCE ( + + 40, + + 4 ) AS col0
----
-40

skipif mysql # not compatible
query I rowsort label-4218
SELECT DISTINCT - ( + COUNT ( * ) ) * COALESCE ( + + 40, + + 4 ) AS col0
----
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-4219
SELECT DISTINCT COUNT( ALL - 62 )
----
1

skipif mysql # not compatible
query I rowsort label-4219
SELECT DISTINCT COUNT ( ALL - 62 )
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4220
SELECT ALL - 54 + + 93 + + 97 * 20 * - MAX( DISTINCT + 44 ) * - - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4220
SELECT ALL - 54 + + 93 + + 97 * 20 * - MAX ( DISTINCT + 44 ) * - - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4221
SELECT DISTINCT CASE 8 WHEN MIN( + 87 ) THEN - 96 * 10 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-4221
SELECT DISTINCT CASE 8 WHEN MIN ( + 87 ) THEN - 96 * 10 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4222
SELECT 44 * + COUNT( * )
----
44

skipif mysql # not compatible
query I rowsort label-4222
SELECT 44 * + COUNT ( * )
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-4223
SELECT CASE - 94 WHEN 33 THEN + + MAX( 87 ) ELSE + ( + + 87 ) + + 85 END + - ( COUNT( * ) ) AS col0
----
171

skipif mysql # not compatible
query I rowsort label-4223
SELECT CASE - 94 WHEN 33 THEN + + MAX ( 87 ) ELSE + ( + + 87 ) + + 85 END + - ( COUNT ( * ) ) AS col0
----
171

query I rowsort
SELECT 89 + 15 * + 77 - + 78 * 12
----
308

query I rowsort
SELECT - 17 col1
----
-17

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4226
SELECT MIN( + - 94 ) DIV COUNT( * ) + + 74 + - + 68 AS col1
----
-88

skipif mysql # not compatible
query I rowsort label-4226
SELECT MIN ( + - 94 ) / COUNT ( * ) + + 74 + - + 68 AS col1
----
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-4227
SELECT ALL + CASE + CASE 99 WHEN - 6 THEN - - 66 END WHEN - 60 THEN NULL WHEN ( - CASE - + 50 WHEN - COUNT( * ) THEN - 94 - MIN( + - 8 ) ELSE NULL END ) * - - 67 THEN 16 END + - + 76 * - + 40 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4227
SELECT ALL + CASE + CASE 99 WHEN - 6 THEN - - 66 END WHEN - 60 THEN NULL WHEN ( - CASE - + 50 WHEN - COUNT ( * ) THEN - 94 - MIN ( + - 8 ) ELSE NULL END ) * - - 67 THEN 16 END + - + 76 * - + 40 col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4228
SELECT ALL 59 + - + COUNT( * ) col1
----
58

skipif mysql # not compatible
query I rowsort label-4228
SELECT ALL 59 + - + COUNT ( * ) col1
----
58

query I rowsort
SELECT DISTINCT 75 + - + 29 AS col2
----
46

query II rowsort
SELECT - 49 * + 59 * + - 74 + - 67 * + + 8 AS col1, + 42 * 63 AS col1
----
213398
2646

onlyif mysql # aggregate syntax: 
query I rowsort label-4231
SELECT ALL + 8 * - + ( - 7 ) + - + 12 + + COUNT( * ) + 67 col1
----
112

skipif mysql # not compatible
query I rowsort label-4231
SELECT ALL + 8 * - + ( - 7 ) + - + 12 + + COUNT ( * ) + 67 col1
----
112

query I rowsort
SELECT + 65 * + 67 - 52 AS col1
----
4303

query I rowsort
SELECT + - 97 + 71 - + 71
----
-97

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4234
SELECT + COUNT( * ) DIV - 34 + 3 * 96 * - 58
----
-16704

skipif mysql # not compatible
query I rowsort label-4234
SELECT + COUNT ( * ) / - 34 + 3 * 96 * - 58
----
-16704

onlyif mysql # DIV for integer division: 
query II rowsort label-4235
SELECT ALL 15 DIV + 16 AS col1, 34
----
0
34

skipif mysql # not compatible
query II rowsort label-4235
SELECT ALL 15 / + 16 AS col1, 34
----
0
34

onlyif mysql # aggregate syntax: 
query I rowsort label-4236
SELECT DISTINCT + - COUNT( * ) col2
----
-1

skipif mysql # not compatible
query I rowsort label-4236
SELECT DISTINCT + - COUNT ( * ) col2
----
-1

query I rowsort
SELECT + - 87 col1
----
-87

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4238
SELECT - MIN( DISTINCT + 37 ) * - CAST( NULL AS SIGNED ) - + 38 * 21 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4238
SELECT - MIN ( DISTINCT + 37 ) * - CAST ( NULL AS INTEGER ) - + 38 * 21 AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4239
SELECT ALL - ( + 67 ) * - - MIN( - CAST( + + 44 AS SIGNED ) ) - - 35
----
2983

skipif mysql # not compatible
query I rowsort label-4239
SELECT ALL - ( + 67 ) * - - MIN ( - CAST ( + + 44 AS INTEGER ) ) - - 35
----
2983

query I rowsort
SELECT ALL + ( 55 ) AS col0
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-4241
SELECT + - 98 * + COUNT( * ) AS col1
----
-98

skipif mysql # not compatible
query I rowsort label-4241
SELECT + - 98 * + COUNT ( * ) AS col1
----
-98

query I rowsort
SELECT ALL + + 95 col0
----
95

query I rowsort
SELECT ALL + ( - 40 ) * + + 29 AS col2
----
-1160

query I rowsort
SELECT + 35 + 96 * 88 AS col1
----
8483

onlyif mysql # DIV for integer division: 
query I rowsort label-4245
SELECT ALL COALESCE ( + 22, - + 90, - 89 DIV + NULLIF ( - 53, + - 52 ) ) * - + 10
----
-220

skipif mysql # not compatible
query I rowsort label-4245
SELECT ALL COALESCE ( + 22, - + 90, - 89 / + NULLIF ( - 53, + - 52 ) ) * - + 10
----
-220

query I rowsort
SELECT ALL 22 * 85 AS col2
----
1870

onlyif mysql # aggregate syntax: 
query I rowsort label-4247
SELECT + MAX( ALL 45 ) + + - 20 + - COUNT( * ) col1
----
24

skipif mysql # not compatible
query I rowsort label-4247
SELECT + MAX ( ALL 45 ) + + - 20 + - COUNT ( * ) col1
----
24

onlyif mysql # aggregate syntax: 
query II rowsort label-4248
SELECT - 62 * + - 56 * - + CASE + 33 WHEN + 27 THEN NULL WHEN + + 77 THEN + + ( - 48 ) ELSE NULL END + + MAX( DISTINCT - 68 ) - 67 * 78 * + + ( + SUM( DISTINCT 91 ) ) * 76 AS col2, - ( 90 ) * + 47 * + 40 + - ( - - 69 )
----
NULL
-169269

skipif mysql # not compatible
query II rowsort label-4248
SELECT - 62 * + - 56 * - + CASE + 33 WHEN + 27 THEN NULL WHEN + + 77 THEN + + ( - 48 ) ELSE NULL END + + MAX ( DISTINCT - 68 ) - 67 * 78 * + + ( + SUM ( DISTINCT 91 ) ) * 76 AS col2, - ( 90 ) * + 47 * + 40 + - ( - - 69 )
----
NULL
-169269

query I rowsort
SELECT + ( COALESCE ( + 82, - ( + - 86 ) ) )
----
82

query I rowsort
SELECT - 91 + - + 10 + - 42 + + - 89 * - + 75 AS col1
----
6532

query I rowsort
SELECT + 61 * + - COALESCE ( - 67, + ( + 98 ) * + 42 ) col0
----
4087

onlyif mysql # aggregate syntax: 
query I rowsort label-4252
SELECT DISTINCT + COUNT( - - 48 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-4252
SELECT DISTINCT + COUNT ( - - 48 ) AS col0
----
1

query II rowsort
SELECT ALL + 73, - 44 AS col2
----
73
-44

onlyif mysql # DIV for integer division: 
query I rowsort label-4254
SELECT DISTINCT + 67 DIV + + 56 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-4254
SELECT DISTINCT + 67 / + + 56 AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4255
SELECT ALL COUNT( 46 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-4255
SELECT ALL COUNT ( 46 ) AS col0
----
1

query I rowsort
SELECT ALL + 58 * + 61 col0
----
3538

onlyif mysql # aggregate syntax: 
query II rowsort label-4257
SELECT ALL + MAX( 13 ) + - 48 AS col0, 28 * + - 41 AS col0
----
-35
-1148

skipif mysql # not compatible
query II rowsort label-4257
SELECT ALL + MAX ( 13 ) + - 48 AS col0, 28 * + - 41 AS col0
----
-35
-1148

query I rowsort
SELECT + 43 - 51 AS col1
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-4259
SELECT - COUNT( * ) * - 75 AS col1
----
75

skipif mysql # not compatible
query I rowsort label-4259
SELECT - COUNT ( * ) * - 75 AS col1
----
75

query I rowsort
SELECT ALL - 22 + 12 AS col1
----
-10

query I rowsort
SELECT 86 * - 36 - 91
----
-3187

onlyif mysql # aggregate syntax: 
query I rowsort label-4262
SELECT DISTINCT CASE - MAX( DISTINCT COALESCE ( - 8, 38 ) ) WHEN + 40 - + ( - - 22 ) - 5 + 23 * + 53 * + - CASE COUNT( * ) WHEN 86 THEN - - 33 END / + + 69 THEN + 75 END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4262
SELECT DISTINCT CASE - MAX ( DISTINCT COALESCE ( - 8, 38 ) ) WHEN + 40 - + ( - - 22 ) - 5 + 23 * + 53 * + - CASE COUNT ( * ) WHEN 86 THEN - - 33 END / + + 69 THEN + 75 END col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4263
SELECT - 95 DIV 36
----
-2

skipif mysql # not compatible
query I rowsort label-4263
SELECT - 95 / 36
----
-2

query I rowsort
SELECT - 1 * + + 52 col1
----
-52

query I rowsort
SELECT ALL - 50 * + 82 AS col1
----
-4100

onlyif mysql # aggregate syntax: 
query I rowsort label-4266
SELECT ALL + 96 * COUNT( * ) * + CASE + 82 WHEN 39 / 59 * + - 71 THEN COALESCE ( CASE - - 93 WHEN 19 THEN NULL ELSE + ( - 3 ) * + 63 * - COUNT( * ) + - 79 * + - 29 * - + ( + 93 ) END, + 64 * - CASE 86 WHEN - COUNT( - 0 ) * 39 THEN NULL WHEN CASE + COUNT( * ) WHEN - + 95 + MIN( 51 + 19 * 91 ) / 92 THEN NULL WHEN + 36 * - COUNT( * ) THEN 2 ELSE - AVG ( ALL + 81 ) END THEN 79 - - 63 * 40 ELSE 7 + + 98 * + COUNT( * ) END * COUNT( * ) - ( + 29 ) * - COALESCE ( - 90 + 78, ( 94 ) * - 93 ), 40 ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4266
SELECT ALL + 96 * COUNT ( * ) * + CASE + 82 WHEN 39 / 59 * + - 71 THEN COALESCE ( CASE - - 93 WHEN 19 THEN NULL ELSE + ( - 3 ) * + 63 * - COUNT ( * ) + - 79 * + - 29 * - + ( + 93 ) END, + 64 * - CASE 86 WHEN - COUNT ( - 0 ) * 39 THEN NULL WHEN CASE + COUNT ( * ) WHEN - + 95 + MIN ( 51 + 19 * 91 ) / 92 THEN NULL WHEN + 36 * - COUNT ( * ) THEN 2 ELSE - AVG ( ALL + 81 ) END THEN 79 - - 63 * 40 ELSE 7 + + 98 * + COUNT ( * ) END * COUNT ( * ) - ( + 29 ) * - COALESCE ( - 90 + 78, ( 94 ) * - 93 ), 40 ) END AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4267
SELECT - MIN( DISTINCT 46 ) * + COUNT( + CAST( 58 AS DECIMAL ) ) AS col0
----
-46

skipif mysql # not compatible
query I rowsort label-4267
SELECT - MIN ( DISTINCT 46 ) * + COUNT ( + CAST ( 58 AS REAL ) ) AS col0
----
-46

query II rowsort
SELECT DISTINCT + 78 * + 91 * 60 AS col1, + 33 * + - 38 * - ( 29 ) AS col2
----
425880
36366

onlyif mysql # aggregate syntax: 
query I rowsort label-4269
SELECT ALL - 23 + - + 76 * + 78 - + - 93 * - + 99 * + MAX( ALL 27 ) AS col1
----
-254540

skipif mysql # not compatible
query I rowsort label-4269
SELECT ALL - 23 + - + 76 * + 78 - + - 93 * - + 99 * + MAX ( ALL 27 ) AS col1
----
-254540

query I rowsort
SELECT ALL NULLIF ( - 81, - 94 ) AS col0
----
-81

query I rowsort
SELECT ALL + 96 * + 8
----
768

onlyif mysql # aggregate syntax: 
query I rowsort label-4272
SELECT - NULLIF ( 26, + - 70 * + 97 + - - 56 - + ( + 73 ) + CASE + + COUNT( * ) WHEN - + 82 - - + 86 THEN - ( + + COUNT( * ) ) ELSE NULL END + - - 85 * 97 ) * - - 65
----
-1690

skipif mysql # not compatible
query I rowsort label-4272
SELECT - NULLIF ( 26, + - 70 * + 97 + - - 56 - + ( + 73 ) + CASE + + COUNT ( * ) WHEN - + 82 - - + 86 THEN - ( + + COUNT ( * ) ) ELSE NULL END + - - 85 * 97 ) * - - 65
----
-1690

query I rowsort
SELECT ALL - + 21 + + + 4 * - 71 - + 37
----
-342

query I rowsort
SELECT ALL + 49 + - 5 col2
----
44

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4275
SELECT - 47 + + 73 - + - COUNT( * ) * - MIN( 84 ) + - ( + + ( - - 34 ) ) DIV 31 * - - 67 * + 30, 5 AS col2
----
-2068
5

skipif mysql # not compatible
query II rowsort label-4275
SELECT - 47 + + 73 - + - COUNT ( * ) * - MIN ( 84 ) + - ( + + ( - - 34 ) ) / 31 * - - 67 * + 30, 5 AS col2
----
-2068
5

query I rowsort
SELECT + - 38 * 46
----
-1748

onlyif mysql # aggregate syntax: 
query II rowsort label-4277
SELECT - 60 + + + COUNT( * ) + + 9, + 63 * 88 AS col0
----
-50
5544

skipif mysql # not compatible
query II rowsort label-4277
SELECT - 60 + + + COUNT ( * ) + + 9, + 63 * 88 AS col0
----
-50
5544

query I rowsort
SELECT + + 63 - - 26 AS col0
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-4279
SELECT + NULLIF ( + - COUNT( * ), + - 63 )
----
-1

skipif mysql # not compatible
query I rowsort label-4279
SELECT + NULLIF ( + - COUNT ( * ), + - 63 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4280
SELECT - - MIN( DISTINCT + 92 ) + - - 5 - - - 13
----
84

skipif mysql # not compatible
query I rowsort label-4280
SELECT - - MIN ( DISTINCT + 92 ) + - - 5 - - - 13
----
84

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4281
SELECT ALL + COUNT( * ), + 81 + - CAST( NULL AS SIGNED ) AS col1
----
1
NULL

skipif mysql # not compatible
query II rowsort label-4281
SELECT ALL + COUNT ( * ), + 81 + - CAST ( NULL AS INTEGER ) AS col1
----
1
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4282
SELECT - + CAST( MIN( ALL + 77 ) AS SIGNED ) * - + 29 AS col1
----
2233

skipif mysql # not compatible
query I rowsort label-4282
SELECT - + CAST ( MIN ( ALL + 77 ) AS INTEGER ) * - + 29 AS col1
----
2233

query I rowsort
SELECT DISTINCT - 49 * - 97
----
4753

onlyif mysql # aggregate syntax: 
query I rowsort label-4284
SELECT DISTINCT - ( - 8 ) * + COUNT( * )
----
8

skipif mysql # not compatible
query I rowsort label-4284
SELECT DISTINCT - ( - 8 ) * + COUNT ( * )
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-4285
SELECT ALL + - ( SUM( DISTINCT + + 57 ) ) AS col0
----
-57

skipif mysql # not compatible
query I rowsort label-4285
SELECT ALL + - ( SUM ( DISTINCT + + 57 ) ) AS col0
----
-57

query I rowsort
SELECT + 19 * 71 AS col0
----
1349

query I rowsort
SELECT ALL + - 7 AS col1
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-4288
SELECT + + SUM( DISTINCT - 36 ) AS col0
----
-36

skipif mysql # not compatible
query I rowsort label-4288
SELECT + + SUM ( DISTINCT - 36 ) AS col0
----
-36

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4289
SELECT + - CAST( - + 86 AS SIGNED ) * - + 50 - 90 + + + 42
----
-4348

skipif mysql # not compatible
query I rowsort label-4289
SELECT + - CAST ( - + 86 AS INTEGER ) * - + 50 - 90 + + + 42
----
-4348

onlyif mysql # aggregate syntax: 
query I rowsort label-4290
SELECT + + MIN( ALL - + 65 ) * + COUNT( * )
----
-65

skipif mysql # not compatible
query I rowsort label-4290
SELECT + + MIN ( ALL - + 65 ) * + COUNT ( * )
----
-65

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4291
SELECT + + CAST( - 55 AS SIGNED )
----
-55

skipif mysql # not compatible
query I rowsort label-4291
SELECT + + CAST ( - 55 AS INTEGER )
----
-55

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4292
SELECT DISTINCT + CAST( + - COUNT( * ) AS SIGNED ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-4292
SELECT DISTINCT + CAST ( + - COUNT ( * ) AS INTEGER ) AS col1
----
-1

query I rowsort
SELECT ALL + 50 * + + 39 * 92 * + 18 + - 98
----
3229102

query I rowsort
SELECT DISTINCT - COALESCE ( + 92, - + ( + 87 ) ) * 91 * + - 54 + - + ( + 39 )
----
452049

query I rowsort
SELECT DISTINCT ( 63 ) * - + 52 + + - 44 AS col0
----
-3320

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4296
SELECT + ( CAST( NULL AS SIGNED ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4296
SELECT + ( CAST ( NULL AS INTEGER ) ) AS col1
----
NULL

query I rowsort
SELECT + ( + - 36 ) * - 59 AS col0
----
2124

onlyif mysql # aggregate syntax: 
query I rowsort label-4298
SELECT + COUNT( * ) + - 62 * + + 49 AS col1
----
-3037

skipif mysql # not compatible
query I rowsort label-4298
SELECT + COUNT ( * ) + - 62 * + + 49 AS col1
----
-3037

query I rowsort
SELECT DISTINCT 31 * + 23 AS col0
----
713

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4300
SELECT SUM( DISTINCT - CAST( NULL AS SIGNED ) ) * + 12 * - + COUNT( * ) + 33 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4300
SELECT SUM ( DISTINCT - CAST ( NULL AS INTEGER ) ) * + 12 * - + COUNT ( * ) + 33 col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4301
SELECT - COUNT( * ) - + 46 * + COUNT( * )
----
-47

skipif mysql # not compatible
query I rowsort label-4301
SELECT - COUNT ( * ) - + 46 * + COUNT ( * )
----
-47

query I rowsort
SELECT ALL - 55 + - 74 + - 15 * 3 AS col2
----
-174

query I rowsort
SELECT 59 * - + 98 AS col1
----
-5782

query I rowsort
SELECT DISTINCT 95 * - 66
----
-6270

onlyif mysql # aggregate syntax: 
query I rowsort label-4305
SELECT ALL + 91 + + COUNT( * ) AS col1
----
92

skipif mysql # not compatible
query I rowsort label-4305
SELECT ALL + 91 + + COUNT ( * ) AS col1
----
92

query I rowsort
SELECT 72 * - 62
----
-4464

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4307
SELECT DISTINCT 89 + + + CAST( + CAST( NULL AS SIGNED ) AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-4307
SELECT DISTINCT 89 + + + CAST ( + CAST ( NULL AS INTEGER ) AS REAL )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4308
SELECT ALL - 19 DIV + - 28
----
0

skipif mysql # not compatible
query I rowsort label-4308
SELECT ALL - 19 / + - 28
----
0

query II rowsort
SELECT 88 + + 43 AS col1, 83 + + 1
----
131
84

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4310
SELECT DISTINCT 82 DIV - SUM( + - 6 ) AS col0
----
13

skipif mysql # not compatible
query I rowsort label-4310
SELECT DISTINCT 82 / - SUM ( + - 6 ) AS col0
----
13

onlyif mysql # aggregate syntax: 
query II rowsort label-4311
SELECT 2 * SUM( + ( + 72 ) ) col1, MIN( DISTINCT ( - 32 ) )
----
144
-32

skipif mysql # not compatible
query II rowsort label-4311
SELECT 2 * SUM ( + ( + 72 ) ) col1, MIN ( DISTINCT ( - 32 ) )
----
144
-32

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4312
SELECT - COUNT( + 88 ) + + 50 DIV + 97 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-4312
SELECT - COUNT ( + 88 ) + + 50 / + 97 AS col0
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4313
SELECT + COUNT( * ) DIV + COALESCE ( ( + - COALESCE ( + + 53, + 83 + - 1 ) ), 32 ) * - 50 AS col0, 85 AS col0
----
0
85

skipif mysql # not compatible
query II rowsort label-4313
SELECT + COUNT ( * ) / + COALESCE ( ( + - COALESCE ( + + 53, + 83 + - 1 ) ), 32 ) * - 50 AS col0, 85 AS col0
----
0
85

query I rowsort
SELECT + 1 + - 7 * + - 12 * - 39
----
-3275

onlyif mysql # DIV for integer division: 
query I rowsort label-4315
SELECT + 14 + - 94 DIV - 63
----
15

skipif mysql # not compatible
query I rowsort label-4315
SELECT + 14 + - 94 / - 63
----
15

query I rowsort
SELECT - - 9 col1
----
9

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-4317
SELECT + CASE - 25 WHEN - 60 * - 86 + - COUNT( * ) + + - 73 THEN 99 * - + ( + 8 ) + + 82 WHEN + + ( - 89 ) + CAST( 65 AS DECIMAL ) THEN NULL END AS col2, + 71 * + 16
----
NULL
1136

skipif mysql # not compatible
query II rowsort label-4317
SELECT + CASE - 25 WHEN - 60 * - 86 + - COUNT ( * ) + + - 73 THEN 99 * - + ( + 8 ) + + 82 WHEN + + ( - 89 ) + CAST ( 65 AS REAL ) THEN NULL END AS col2, + 71 * + 16
----
NULL
1136

query I rowsort
SELECT ALL - 12 - + - 89
----
77

onlyif mysql # DIV for integer division: 
query I rowsort label-4319
SELECT - 81 * + 40 + 69 DIV + 82 AS col2
----
-3240

skipif mysql # not compatible
query I rowsort label-4319
SELECT - 81 * + 40 + 69 / + 82 AS col2
----
-3240

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4320
SELECT ALL + - 89 * + NULLIF ( + - CASE + CAST( 90 AS SIGNED ) WHEN + + 68 + + + 32 - + 78 + - CASE - COUNT( * ) WHEN + + 43 THEN NULL WHEN COUNT( * ) + - COUNT( * ) THEN - 37 * + - 91 * + 19 + + + 87 END THEN NULL ELSE - 27 END, + - 45 ) AS col0, + 39 AS col2
----
-2403
39

skipif mysql # not compatible
query II rowsort label-4320
SELECT ALL + - 89 * + NULLIF ( + - CASE + CAST ( 90 AS INTEGER ) WHEN + + 68 + + + 32 - + 78 + - CASE - COUNT ( * ) WHEN + + 43 THEN NULL WHEN COUNT ( * ) + - COUNT ( * ) THEN - 37 * + - 91 * + 19 + + + 87 END THEN NULL ELSE - 27 END, + - 45 ) AS col0, + 39 AS col2
----
-2403
39

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query III rowsort label-4321
SELECT DISTINCT + COALESCE ( 37, + - 17 DIV COUNT( * ) + + 59 - + + 25 ) * - - CAST( COUNT( * ) AS SIGNED ) * + 77 AS col2, - MIN( ALL - 74 ) DIV COUNT( * ), + 73 + - + COUNT( * ) AS col0
----
2849
74
72

skipif mysql # not compatible
query III rowsort label-4321
SELECT DISTINCT + COALESCE ( 37, + - 17 / COUNT ( * ) + + 59 - + + 25 ) * - - CAST ( COUNT ( * ) AS INTEGER ) * + 77 AS col2, - MIN ( ALL - 74 ) / COUNT ( * ), + 73 + - + COUNT ( * ) AS col0
----
2849
74
72

query I rowsort
SELECT - ( - 82 ) * 63 - + 23 * + 65 AS col1
----
3671

onlyif mysql # aggregate syntax: 
query I rowsort label-4323
SELECT DISTINCT - NULLIF ( + COUNT( * ), NULLIF ( + - COUNT( * ), - 22 * + 0 * - + 23 * 88 ) ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-4323
SELECT DISTINCT - NULLIF ( + COUNT ( * ), NULLIF ( + - COUNT ( * ), - 22 * + 0 * - + 23 * 88 ) ) AS col1
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4324
SELECT + + CAST( 26 AS SIGNED )
----
26

skipif mysql # not compatible
query I rowsort label-4324
SELECT + + CAST ( 26 AS INTEGER )
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-4325
SELECT ALL 32 + - COUNT( * )
----
31

skipif mysql # not compatible
query I rowsort label-4325
SELECT ALL 32 + - COUNT ( * )
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-4326
SELECT ALL 50 + + COUNT( * )
----
51

skipif mysql # not compatible
query I rowsort label-4326
SELECT ALL 50 + + COUNT ( * )
----
51

query I rowsort
SELECT 44 + + 87
----
131

onlyif mysql # aggregate syntax: 
query II rowsort label-4328
SELECT ALL - 18, 86 + + + 81 + + COUNT( * ) * + 55 + + + ( + 13 ) + + 92 col2
----
-18
327

skipif mysql # not compatible
query II rowsort label-4328
SELECT ALL - 18, 86 + + + 81 + + COUNT ( * ) * + 55 + + + ( + 13 ) + + 92 col2
----
-18
327

onlyif mysql # aggregate syntax: 
query I rowsort label-4329
SELECT ALL + COUNT( * ) + + 29
----
30

skipif mysql # not compatible
query I rowsort label-4329
SELECT ALL + COUNT ( * ) + + 29
----
30

onlyif mysql # DIV for integer division: 
query I rowsort label-4330
SELECT 34 DIV + 80 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4330
SELECT 34 / + 80 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4331
SELECT COUNT( * ) + 69 * - + 63 * - COUNT( * )
----
4348

skipif mysql # not compatible
query I rowsort label-4331
SELECT COUNT ( * ) + 69 * - + 63 * - COUNT ( * )
----
4348

query I rowsort
SELECT + 16 * + - 0 + - 97 + 62 * + 78 AS col2
----
4739

onlyif mysql # aggregate syntax: 
query I rowsort label-4333
SELECT SUM( DISTINCT + 46 ) * - 25 AS col1
----
-1150

skipif mysql # not compatible
query I rowsort label-4333
SELECT SUM ( DISTINCT + 46 ) * - 25 AS col1
----
-1150

query II rowsort
SELECT + 45 col0, 20 * 25 AS col1
----
45
500

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4335
SELECT ALL 84 + 35 + + + 76, MIN( DISTINCT + 64 ) * CASE - CASE + - 12 WHEN - 72 * + + 59 * - COUNT( * ) THEN + 82 * - 90 / - CASE - + 60 WHEN - + 3 THEN 96 * + 83 END + - 59 + - 1 * - - 8 END WHEN AVG ( ALL + + 5 ) THEN - 17 * 24 - MIN( - 81 ) * + 80 END + - + 94 + + CAST( 68 AS SIGNED ) AS col0
----
195
NULL

skipif mysql # not compatible
query II rowsort label-4335
SELECT ALL 84 + 35 + + + 76, MIN ( DISTINCT + 64 ) * CASE - CASE + - 12 WHEN - 72 * + + 59 * - COUNT ( * ) THEN + 82 * - 90 / - CASE - + 60 WHEN - + 3 THEN 96 * + 83 END + - 59 + - 1 * - - 8 END WHEN AVG ( ALL + + 5 ) THEN - 17 * 24 - MIN ( - 81 ) * + 80 END + - + 94 + + CAST ( 68 AS INTEGER ) AS col0
----
195
NULL

query II rowsort
SELECT ALL - 98 AS col1, - 29 AS col2
----
-98
-29

query I rowsort
SELECT 69 * - 51 AS col2
----
-3519

onlyif mysql # aggregate syntax: 
query I rowsort label-4338
SELECT ALL 48 - - COUNT( * )
----
49

skipif mysql # not compatible
query I rowsort label-4338
SELECT ALL 48 - - COUNT ( * )
----
49

query I rowsort
SELECT 59 - + - 83
----
142

query I rowsort
SELECT DISTINCT 41 * - 58 col2
----
-2378

query II rowsort
SELECT + 96 * - 36 - + - 8, 58 + + + 24 col0
----
-3448
82

query I rowsort
SELECT ALL + 32 * - 38 AS col0
----
-1216

query II rowsort
SELECT DISTINCT NULLIF ( - 66, + - 4 ) AS col2, 36 AS col2
----
-66
36

query I rowsort
SELECT ALL 26 * + - 58
----
-1508

onlyif mysql # DIV for integer division: 
query I rowsort label-4345
SELECT ALL - 16 DIV - 48 col1
----
0

skipif mysql # not compatible
query I rowsort label-4345
SELECT ALL - 16 / - 48 col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4346
SELECT 62 * - + NULLIF ( 16, 66 * COUNT( * ) + - 5 + - + CAST( NULL AS SIGNED ) ) - - 60 AS col0
----
-932

skipif mysql # not compatible
query I rowsort label-4346
SELECT 62 * - + NULLIF ( 16, 66 * COUNT ( * ) + - 5 + - + CAST ( NULL AS INTEGER ) ) - - 60 AS col0
----
-932

onlyif mysql # aggregate syntax: 
query I rowsort label-4347
SELECT + 31 + + 1 + COALESCE ( 91, + COUNT( * ), 99 ) AS col0
----
123

skipif mysql # not compatible
query I rowsort label-4347
SELECT + 31 + + 1 + COALESCE ( 91, + COUNT ( * ), 99 ) AS col0
----
123

query I rowsort
SELECT - ( + 83 ) - - 57
----
-26

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4349
SELECT SUM( 15 ) DIV - - 77 * - 73 - - COUNT( * ), + CAST( + - 46 AS SIGNED ) AS col2
----
1
-46

skipif mysql # not compatible
query II rowsort label-4349
SELECT SUM ( 15 ) / - - 77 * - 73 - - COUNT ( * ), + CAST ( + - 46 AS INTEGER ) AS col2
----
1
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-4350
SELECT - 72 + CASE + 41 WHEN + - 13 * 98 THEN NULL ELSE COUNT( * ) END - 0
----
-71

skipif mysql # not compatible
query I rowsort label-4350
SELECT - 72 + CASE + 41 WHEN + - 13 * 98 THEN NULL ELSE COUNT ( * ) END - 0
----
-71

query II rowsort
SELECT DISTINCT 45 AS col0, 41 AS col0
----
45
41

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4352
SELECT - + CAST( - CAST( NULL AS DECIMAL ) AS SIGNED ) / + - 16 + + 34 + + 36 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4352
SELECT - + CAST ( - CAST ( NULL AS REAL ) AS INTEGER ) / + - 16 + + 34 + + 36 AS col2
----
NULL

query II rowsort
SELECT ALL - 52, - 58 AS col1
----
-52
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-4354
SELECT ALL - 15 * - + 18 * - COUNT( * ) + 17 AS col1
----
-253

skipif mysql # not compatible
query I rowsort label-4354
SELECT ALL - 15 * - + 18 * - COUNT ( * ) + 17 AS col1
----
-253

onlyif mysql # aggregate syntax: 
query I rowsort label-4355
SELECT ALL - 99 * + COUNT( * ) AS col2
----
-99

skipif mysql # not compatible
query I rowsort label-4355
SELECT ALL - 99 * + COUNT ( * ) AS col2
----
-99

query I rowsort
SELECT - 25 * - 21 + - COALESCE ( + - 10, 11 + + 68 ) + 22 * ( + - 57 ) col0
----
-719

query II rowsort
SELECT + 32 AS col0, ( - + 76 ) AS col0
----
32
-76

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4358
SELECT COUNT( * ) DIV + 93 + + 53
----
53

skipif mysql # not compatible
query I rowsort label-4358
SELECT COUNT ( * ) / + 93 + + 53
----
53

query I rowsort
SELECT 79 * - 93
----
-7347

onlyif mysql # aggregate syntax: 
query II rowsort label-4360
SELECT DISTINCT 56 * ( - 59 ) + 72 col2, - SUM( ALL - 87 ) AS col0
----
-3232
87

skipif mysql # not compatible
query II rowsort label-4360
SELECT DISTINCT 56 * ( - 59 ) + 72 col2, - SUM ( ALL - 87 ) AS col0
----
-3232
87

onlyif mysql # aggregate syntax: 
query I rowsort label-4361
SELECT ALL - 37 * COUNT( 87 ) * COUNT( * ) * + 72
----
-2664

skipif mysql # not compatible
query I rowsort label-4361
SELECT ALL - 37 * COUNT ( 87 ) * COUNT ( * ) * + 72
----
-2664

query II rowsort
SELECT - 48 * - 57 AS col1, 1
----
2736
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4363
SELECT ALL + MIN( DISTINCT + - 18 ) AS col2
----
-18

skipif mysql # not compatible
query I rowsort label-4363
SELECT ALL + MIN ( DISTINCT + - 18 ) AS col2
----
-18

query I rowsort
SELECT DISTINCT + ( + 4 ) AS col1
----
4

query II rowsort
SELECT + 98 AS col1, 17 AS col2
----
98
17

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4366
SELECT COUNT( * ) * + - 90 / - 10 + CAST( NULL AS SIGNED ) + - 89 * + + MIN( - + 99 ) / 56 * 87 / 85
----
NULL

skipif mysql # not compatible
query I rowsort label-4366
SELECT COUNT ( * ) * + - 90 / - 10 + CAST ( NULL AS INTEGER ) + - 89 * + + MIN ( - + 99 ) / 56 * 87 / 85
----
NULL

query I rowsort
SELECT ALL + 37 * - + 84 AS col2
----
-3108

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4368
SELECT - COUNT( * ) + - - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4368
SELECT - COUNT ( * ) + - - CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4369
SELECT + 9 AS col2, - CAST( 24 AS SIGNED ) AS col1
----
9
-24

skipif mysql # not compatible
query II rowsort label-4369
SELECT + 9 AS col2, - CAST ( 24 AS INTEGER ) AS col1
----
9
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-4370
SELECT ALL - 65 * ( - CASE 48 WHEN COUNT( * ) THEN NULL WHEN - AVG ( ALL + 76 ) * + 1 THEN NULL WHEN + 46 THEN 14 ELSE NULL END ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4370
SELECT ALL - 65 * ( - CASE 48 WHEN COUNT ( * ) THEN NULL WHEN - AVG ( ALL + 76 ) * + 1 THEN NULL WHEN + 46 THEN 14 ELSE NULL END ) AS col1
----
NULL

query I rowsort
SELECT - 6 + 69
----
63

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4372
SELECT + 12 - - COUNT( * ) - + 45 * - CAST( - 89 AS SIGNED ) AS col1
----
-3992

skipif mysql # not compatible
query I rowsort label-4372
SELECT + 12 - - COUNT ( * ) - + 45 * - CAST ( - 89 AS INTEGER ) AS col1
----
-3992

onlyif mysql # aggregate syntax: 
query I rowsort label-4373
SELECT + 71 * - COUNT( ALL - 59 ) AS col0
----
-71

skipif mysql # not compatible
query I rowsort label-4373
SELECT + 71 * - COUNT ( ALL - 59 ) AS col0
----
-71

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4374
SELECT ALL + 43 AS col1, 30 DIV COUNT( * ) + + 14 + CAST( - 9 AS SIGNED ) * - 84 * + ( - + 55 ) + - - ( - - 97 ) * + - ( - + 82 ) - - + SUM( DISTINCT 7 ) DIV 87 AS col1
----
43
-33582

skipif mysql # not compatible
query II rowsort label-4374
SELECT ALL + 43 AS col1, 30 / COUNT ( * ) + + 14 + CAST ( - 9 AS INTEGER ) * - 84 * + ( - + 55 ) + - - ( - - 97 ) * + - ( - + 82 ) - - + SUM ( DISTINCT 7 ) / 87 AS col1
----
43
-33582

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4375
SELECT + 88 - + + 21 + CAST( + CASE + 72 WHEN 88 - 64 THEN NULL ELSE + COALESCE ( - 57, - 53, + 10 ) + + 97 END AS SIGNED ) * 22
----
947

skipif mysql # not compatible
query I rowsort label-4375
SELECT + 88 - + + 21 + CAST ( + CASE + 72 WHEN 88 - 64 THEN NULL ELSE + COALESCE ( - 57, - 53, + 10 ) + + 97 END AS INTEGER ) * 22
----
947

onlyif mysql # aggregate syntax: 
query I rowsort label-4376
SELECT ALL COUNT( DISTINCT - 86 ) - - 76 AS col2
----
77

skipif mysql # not compatible
query I rowsort label-4376
SELECT ALL COUNT ( DISTINCT - 86 ) - - 76 AS col2
----
77

onlyif mysql # DIV for integer division: 
query I rowsort label-4377
SELECT + 40 DIV 38 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-4377
SELECT + 40 / 38 AS col2
----
1

query I rowsort
SELECT DISTINCT + NULLIF ( 95, 62 + - 86 + 65 * + 28 ) AS col0
----
95

onlyif mysql # aggregate syntax: 
query I rowsort label-4379
SELECT + COUNT( - - 59 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-4379
SELECT + COUNT ( - - 59 ) AS col0
----
1

query I rowsort
SELECT + + 40 + ( - 33 )
----
7

query I rowsort
SELECT + - ( + + 28 ) * 77 + + 24 AS col1
----
-2132

onlyif mysql # aggregate syntax: 
query I rowsort label-4382
SELECT ALL 59 + - ( - COUNT( * ) )
----
60

skipif mysql # not compatible
query I rowsort label-4382
SELECT ALL 59 + - ( - COUNT ( * ) )
----
60

query I rowsort
SELECT + 99 + + 13
----
112

query I rowsort
SELECT ALL 73 + + 93 * + + 91 * + 39 AS col1
----
330130

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4385
SELECT - - 10, CAST( NULL AS SIGNED ) AS col1
----
10
NULL

skipif mysql # not compatible
query II rowsort label-4385
SELECT - - 10, CAST ( NULL AS INTEGER ) AS col1
----
10
NULL

query I rowsort
SELECT + 12 + 52 + NULLIF ( - - 92, 69 + - 39 * - 76 ) + - 63
----
93

onlyif mysql # aggregate syntax: 
query II rowsort label-4387
SELECT - + COUNT( * ) AS col0, 92 * + 24 + - 79
----
-1
2129

skipif mysql # not compatible
query II rowsort label-4387
SELECT - + COUNT ( * ) AS col0, 92 * + 24 + - 79
----
-1
2129

query I rowsort
SELECT DISTINCT + 57 + - - 34
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-4389
SELECT ALL + MIN( DISTINCT 23 ) + + 94
----
117

skipif mysql # not compatible
query I rowsort label-4389
SELECT ALL + MIN ( DISTINCT 23 ) + + 94
----
117

query I rowsort
SELECT DISTINCT 44 + - 89
----
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-4391
SELECT ALL + - 71 + + COUNT( * ) * + - COUNT( * ) + - COUNT( * )
----
-73

skipif mysql # not compatible
query I rowsort label-4391
SELECT ALL + - 71 + + COUNT ( * ) * + - COUNT ( * ) + - COUNT ( * )
----
-73

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4392
SELECT + + CAST( NULL AS SIGNED ) * + CAST( NULL AS SIGNED ) + + CAST( NULL AS SIGNED ) - - 26
----
NULL

skipif mysql # not compatible
query I rowsort label-4392
SELECT + + CAST ( NULL AS INTEGER ) * + CAST ( NULL AS INTEGER ) + + CAST ( NULL AS INTEGER ) - - 26
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4393
SELECT ALL - 33 + + - COUNT( * ) + + - 21 AS col0
----
-55

skipif mysql # not compatible
query I rowsort label-4393
SELECT ALL - 33 + + - COUNT ( * ) + + - 21 AS col0
----
-55

onlyif mysql # aggregate syntax: 
query II rowsort label-4394
SELECT - - COUNT( * ), + ( 87 ) + - + 60 AS col0
----
1
27

skipif mysql # not compatible
query II rowsort label-4394
SELECT - - COUNT ( * ), + ( 87 ) + - + 60 AS col0
----
1
27

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4395
SELECT ( - NULLIF ( + CAST( NULL AS SIGNED ), + + 27 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-4395
SELECT ( - NULLIF ( + CAST ( NULL AS INTEGER ), + + 27 ) )
----
NULL

query I rowsort
SELECT + ( - 29 )
----
-29

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4397
SELECT ALL 58 DIV 24 - + 51 * - + 9 * + SUM( DISTINCT ( ( + 73 ) ) ) * + 85 + + 7 AS col1
----
2848104

skipif mysql # not compatible
query I rowsort label-4397
SELECT ALL 58 / 24 - + 51 * - + 9 * + SUM ( DISTINCT ( ( + 73 ) ) ) * + 85 + + 7 AS col1
----
2848104

onlyif mysql # aggregate syntax: 
query I rowsort label-4398
SELECT ALL + ( - - MIN( - - 21 ) ) AS col1
----
21

skipif mysql # not compatible
query I rowsort label-4398
SELECT ALL + ( - - MIN ( - - 21 ) ) AS col1
----
21

query I rowsort
SELECT DISTINCT 20 * + - ( - 99 ) - 79 AS col1
----
1901

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4400
SELECT - COUNT( * ) + COUNT( * ), - 66 DIV + 54 col1
----
0
-1

skipif mysql # not compatible
query II rowsort label-4400
SELECT - COUNT ( * ) + COUNT ( * ), - 66 / + 54 col1
----
0
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-4401
SELECT ALL + NULLIF ( + - CASE + - ( 58 ) WHEN + 32 * CASE - ( + 79 ) WHEN + + SUM( 36 ) + + 5 THEN - + 84 WHEN COUNT( * ) THEN NULL END + 91 + + - 66 + + 51 THEN NULL WHEN - 39 THEN + - 99 ELSE NULL END, - MAX( - 13 ) ) AS col0, ( + 67 )
----
NULL
67

skipif mysql # not compatible
query II rowsort label-4401
SELECT ALL + NULLIF ( + - CASE + - ( 58 ) WHEN + 32 * CASE - ( + 79 ) WHEN + + SUM ( 36 ) + + 5 THEN - + 84 WHEN COUNT ( * ) THEN NULL END + 91 + + - 66 + + 51 THEN NULL WHEN - 39 THEN + - 99 ELSE NULL END, - MAX ( - 13 ) ) AS col0, ( + 67 )
----
NULL
67

query I rowsort
SELECT + ( + ( 90 ) )
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-4403
SELECT - CASE - - 86 WHEN - - 4 THEN + + 22 ELSE + COUNT( * ) END * + + 10
----
-10

skipif mysql # not compatible
query I rowsort label-4403
SELECT - CASE - - 86 WHEN - - 4 THEN + + 22 ELSE + COUNT ( * ) END * + + 10
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-4404
SELECT ( + + NULLIF ( - + COUNT( * ), + 53 + 36 ) )
----
-1

skipif mysql # not compatible
query I rowsort label-4404
SELECT ( + + NULLIF ( - + COUNT ( * ), + 53 + 36 ) )
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4405
SELECT - 63 * + + COUNT( * ) + - - CAST( NULL AS SIGNED ) + - + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4405
SELECT - 63 * + + COUNT ( * ) + - - CAST ( NULL AS INTEGER ) + - + CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4406
SELECT ( + 85 ) AS col2, 25 + SUM( + + 94 )
----
85
119

skipif mysql # not compatible
query II rowsort label-4406
SELECT ( + 85 ) AS col2, 25 + SUM ( + + 94 )
----
85
119

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4407
SELECT 97 * - + CAST( NULL AS SIGNED ) * - 48 + + 94 * - + COALESCE ( CASE + 98 WHEN 25 + ( + 12 ) THEN + ( - - 5 ) ELSE 21 END, + + CASE + COUNT( * ) WHEN AVG ( - 77 ) THEN - + 65 / - 47 + 92 ELSE + - 49 END + - + 83 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4407
SELECT 97 * - + CAST ( NULL AS INTEGER ) * - 48 + + 94 * - + COALESCE ( CASE + 98 WHEN 25 + ( + 12 ) THEN + ( - - 5 ) ELSE 21 END, + + CASE + COUNT ( * ) WHEN AVG ( - 77 ) THEN - + 65 / - 47 + 92 ELSE + - 49 END + - + 83 )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4408
SELECT - 47 - - COUNT( * ) col2, 80
----
-46
80

skipif mysql # not compatible
query II rowsort label-4408
SELECT - 47 - - COUNT ( * ) col2, 80
----
-46
80

query I rowsort
SELECT DISTINCT + ( - ( - 48 ) ) * - 34 AS col0
----
-1632

onlyif mysql # aggregate syntax: 
query II rowsort label-4410
SELECT ALL + SUM( - NULLIF ( 16, - - 3 * - 72 ) ) AS col0, 86
----
-16
86

skipif mysql # not compatible
query II rowsort label-4410
SELECT ALL + SUM ( - NULLIF ( 16, - - 3 * - 72 ) ) AS col0, 86
----
-16
86

query I rowsort
SELECT - NULLIF ( - + 81, - - 9 + - + 83 * + + 93 * - 41 / + 15 ) * - 12 AS col2
----
-972

query I rowsort
SELECT - - 56 AS col0
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-4413
SELECT + 86 * - 81 - + COUNT( * ) AS col0
----
-6967

skipif mysql # not compatible
query I rowsort label-4413
SELECT + 86 * - 81 - + COUNT ( * ) AS col0
----
-6967

query I rowsort
SELECT ALL + 8 * + 56 - 21 + - 78 + + 57 AS col2
----
406

onlyif mysql # DIV for integer division: 
query I rowsort label-4415
SELECT - 13 - ( + 95 ) DIV - + 87
----
-12

skipif mysql # not compatible
query I rowsort label-4415
SELECT - 13 - ( + 95 ) / - + 87
----
-12

query I rowsort
SELECT - + 76 col2
----
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-4417
SELECT - + 8 + - COUNT( * )
----
-9

skipif mysql # not compatible
query I rowsort label-4417
SELECT - + 8 + - COUNT ( * )
----
-9

query I rowsort
SELECT - - COALESCE ( 36, + ( 56 ) * - - 32 ) AS col1
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-4419
SELECT CASE + - 87 WHEN 45 * + + COUNT( DISTINCT + + 86 ) + + MAX( + 76 ) + - + MAX( DISTINCT - 61 ) + NULLIF ( - + 96, NULLIF ( + COUNT( * ), - 72 ) ) + - 41 * + 79 THEN NULL WHEN + COUNT( * ) THEN + 52 / - COUNT( * ) + - - 73 + + + 69 END
----
NULL

skipif mysql # not compatible
query I rowsort label-4419
SELECT CASE + - 87 WHEN 45 * + + COUNT ( DISTINCT + + 86 ) + + MAX ( + 76 ) + - + MAX ( DISTINCT - 61 ) + NULLIF ( - + 96, NULLIF ( + COUNT ( * ), - 72 ) ) + - 41 * + 79 THEN NULL WHEN + COUNT ( * ) THEN + 52 / - COUNT ( * ) + - - 73 + + + 69 END
----
NULL

query I rowsort
SELECT ALL + 28 + 14 AS col1
----
42

query I rowsort
SELECT - + 17 * + - 40 * + 98
----
66640

onlyif mysql # aggregate syntax: 
query I rowsort label-4422
SELECT - SUM( DISTINCT 39 )
----
-39

skipif mysql # not compatible
query I rowsort label-4422
SELECT - SUM ( DISTINCT 39 )
----
-39

query II rowsort
SELECT + 63 - - 27 + - 34, 67 + - 93 AS col2
----
56
-26

onlyif mysql # aggregate syntax: 
query II rowsort label-4424
SELECT ALL - 73 + - CASE + 14 WHEN 26 * + 28 / - 63 * - + 83 THEN - COUNT( * ) + 29 * - 8 END AS col2, 92
----
NULL
92

skipif mysql # not compatible
query II rowsort label-4424
SELECT ALL - 73 + - CASE + 14 WHEN 26 * + 28 / - 63 * - + 83 THEN - COUNT ( * ) + 29 * - 8 END AS col2, 92
----
NULL
92

query I rowsort
SELECT + 77 - - 49
----
126

onlyif mysql # aggregate syntax: 
query I rowsort label-4426
SELECT ALL MAX( - 62 )
----
-62

skipif mysql # not compatible
query I rowsort label-4426
SELECT ALL MAX ( - 62 )
----
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-4427
SELECT - SUM( DISTINCT + - 4 )
----
4

skipif mysql # not compatible
query I rowsort label-4427
SELECT - SUM ( DISTINCT + - 4 )
----
4

query I rowsort
SELECT - 29 + - 2
----
-31

onlyif mysql # aggregate syntax: 
query II rowsort label-4429
SELECT - NULLIF ( - + 17, - 49 + - 9 / + 3 ) AS col2, - MIN( ALL 61 ) + + 54 col2
----
17
-7

skipif mysql # not compatible
query II rowsort label-4429
SELECT - NULLIF ( - + 17, - 49 + - 9 / + 3 ) AS col2, - MIN ( ALL 61 ) + + 54 col2
----
17
-7

query I rowsort
SELECT ALL - CASE + 81 WHEN + - 66 THEN NULL ELSE 28 END * + - 83 AS col1
----
2324

query II rowsort
SELECT - 43 + 26 AS col2, - 32
----
-17
-32

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-4432
SELECT - CAST( NULL AS DECIMAL ), - 55 * - - 4 AS col0
----
NULL
-220

skipif mysql # not compatible
query II rowsort label-4432
SELECT - CAST ( NULL AS REAL ), - 55 * - - 4 AS col0
----
NULL
-220

query II rowsort
SELECT - NULLIF ( + + 79, - 14 ) AS col0, + 74 col0
----
-79
74

onlyif mysql # aggregate syntax: 
query I rowsort label-4434
SELECT COUNT( * ) + - 21 + + 70 + + 87 AS col0
----
137

skipif mysql # not compatible
query I rowsort label-4434
SELECT COUNT ( * ) + - 21 + + 70 + + 87 AS col0
----
137

query I rowsort
SELECT ALL 67 * + 31 * - 15
----
-31155

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-4436
SELECT ALL + ( - 79 ) * CAST( NULL AS DECIMAL ), CAST( NULL AS SIGNED ) * + 79 * + MIN( DISTINCT - CAST( NULL AS SIGNED ) )
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-4436
SELECT ALL + ( - 79 ) * CAST ( NULL AS REAL ), CAST ( NULL AS INTEGER ) * + 79 * + MIN ( DISTINCT - CAST ( NULL AS INTEGER ) )
----
NULL
NULL

query II rowsort
SELECT ALL 29 AS col2, - 34 * 27 AS col1
----
29
-918

query II rowsort
SELECT ALL 32, 4 AS col2
----
32
4

onlyif mysql # aggregate syntax: 
query I rowsort label-4439
SELECT DISTINCT 72 - - + 17 * - COUNT( * )
----
55

skipif mysql # not compatible
query I rowsort label-4439
SELECT DISTINCT 72 - - + 17 * - COUNT ( * )
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-4440
SELECT ALL 31 * - MIN( + 16 )
----
-496

skipif mysql # not compatible
query I rowsort label-4440
SELECT ALL 31 * - MIN ( + 16 )
----
-496

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4441
SELECT DISTINCT - 46 AS col2, CAST( + AVG ( DISTINCT + + 95 ) AS SIGNED ) * + 5 + + 23 - + 67 * + ( - 90 )
----
-46
6528

skipif mysql # not compatible
query II rowsort label-4441
SELECT DISTINCT - 46 AS col2, CAST ( + AVG ( DISTINCT + + 95 ) AS INTEGER ) * + 5 + + 23 - + 67 * + ( - 90 )
----
-46
6528

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4442
SELECT ( + + 1 ) DIV - ( 76 ) * + MIN( + + 5 ) AS col2, 62 AS col0
----
0
62

skipif mysql # not compatible
query II rowsort label-4442
SELECT ( + + 1 ) / - ( 76 ) * + MIN ( + + 5 ) AS col2, 62 AS col0
----
0
62

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4443
SELECT ALL COUNT( * ) DIV - 44 * + 35 col1
----
0

skipif mysql # not compatible
query I rowsort label-4443
SELECT ALL COUNT ( * ) / - 44 * + 35 col1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4444
SELECT DISTINCT 18 DIV - 97
----
0

skipif mysql # not compatible
query I rowsort label-4444
SELECT DISTINCT 18 / - 97
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-4445
SELECT + 84 DIV + 97 + - + 51, - 77 AS col2
----
-51
-77

skipif mysql # not compatible
query II rowsort label-4445
SELECT + 84 / + 97 + - + 51, - 77 AS col2
----
-51
-77

query I rowsort
SELECT ALL 53 * + + 91
----
4823

onlyif mysql # DIV for integer division: 
query I rowsort label-4447
SELECT ALL 65 DIV 92
----
0

skipif mysql # not compatible
query I rowsort label-4447
SELECT ALL 65 / 92
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4448
SELECT ( 2 ) * + COUNT( * ) AS col1
----
2

skipif mysql # not compatible
query I rowsort label-4448
SELECT ( 2 ) * + COUNT ( * ) AS col1
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-4449
SELECT ALL + COUNT( * ) + - 53
----
-52

skipif mysql # not compatible
query I rowsort label-4449
SELECT ALL + COUNT ( * ) + - 53
----
-52

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4450
SELECT ( - + 27 ) + - + ( + + 22 ) DIV - - COUNT( * ) AS col1
----
-49

skipif mysql # not compatible
query I rowsort label-4450
SELECT ( - + 27 ) + - + ( + + 22 ) / - - COUNT ( * ) AS col1
----
-49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4451
SELECT DISTINCT - COALESCE ( 93, + CAST( NULL AS SIGNED ) DIV + CAST( + - COUNT( * ) AS SIGNED ) + - 21 )
----
-93

skipif mysql # not compatible
query I rowsort label-4451
SELECT DISTINCT - COALESCE ( 93, + CAST ( NULL AS INTEGER ) / + CAST ( + - COUNT ( * ) AS INTEGER ) + - 21 )
----
-93

query I rowsort
SELECT DISTINCT + 51 + - 59
----
-8

query I rowsort
SELECT ALL - 93 + - ( - 69 ) * + + COALESCE ( - 60, + + 81 ) * 82 col2
----
-339573

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4454
SELECT + 84 + - 80 * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4454
SELECT + 84 + - 80 * CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ( - 31 )
----
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-4456
SELECT ALL - + 67 + + NULLIF ( + + 29, 77 + 54 ) * MIN( ALL - 77 )
----
-2300

skipif mysql # not compatible
query I rowsort label-4456
SELECT ALL - + 67 + + NULLIF ( + + 29, 77 + 54 ) * MIN ( ALL - 77 )
----
-2300

query II rowsort
SELECT + - 60 AS col0, 64 AS col0
----
-60
64

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4458
SELECT - 71 * + SUM( ALL COALESCE ( - 75, + 94 DIV - 58 ) ) + - COUNT( + - 3 ) + 28 AS col1
----
5352

skipif mysql # not compatible
query I rowsort label-4458
SELECT - 71 * + SUM ( ALL COALESCE ( - 75, + 94 / - 58 ) ) + - COUNT ( + - 3 ) + 28 AS col1
----
5352

onlyif mysql # aggregate syntax: 
query I rowsort label-4459
SELECT COUNT( - 94 ) + + - 84 AS col2
----
-83

skipif mysql # not compatible
query I rowsort label-4459
SELECT COUNT ( - 94 ) + + - 84 AS col2
----
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-4460
SELECT SUM( ALL + + 38 )
----
38

skipif mysql # not compatible
query I rowsort label-4460
SELECT SUM ( ALL + + 38 )
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-4461
SELECT ALL MIN( ALL - 77 ) + + + 17
----
-60

skipif mysql # not compatible
query I rowsort label-4461
SELECT ALL MIN ( ALL - 77 ) + + + 17
----
-60

query I rowsort
SELECT DISTINCT - CASE + + 26 WHEN + - ( + 23 ) THEN + - 77 WHEN 41 * + - 54 THEN NULL END + 47 * + 25
----
NULL

query II rowsort
SELECT - 24, - 46 AS col2
----
-24
-46

query II rowsort
SELECT 71 + 1 * - 79, 10 AS col0
----
-8
10

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4465
SELECT 17 + + CAST( 99 AS SIGNED ) * + - 46 * - 66 / + CASE - - ( - MAX( ALL + + 76 ) ) WHEN - 11 THEN 22 * + 90 WHEN 61 + - COUNT( - 10 ) THEN + 59 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-4465
SELECT 17 + + CAST ( 99 AS INTEGER ) * + - 46 * - 66 / + CASE - - ( - MAX ( ALL + + 76 ) ) WHEN - 11 THEN 22 * + 90 WHEN 61 + - COUNT ( - 10 ) THEN + 59 ELSE NULL END
----
NULL

query I rowsort
SELECT ALL - - 87 - - 35 AS col1
----
122

query II rowsort
SELECT + 8, + 49 AS col0
----
8
49

query I rowsort
SELECT 96 * 19 * - + ( + 62 ) * - - 85 + - 1 * + + 99
----
-9612579

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-4469
SELECT COUNT( * ) + - - 39 + + 18 col2, ( 6 ) * CAST( NULL AS DECIMAL ) + 48 AS col1
----
58
NULL

skipif mysql # not compatible
query II rowsort label-4469
SELECT COUNT ( * ) + - - 39 + + 18 col2, ( 6 ) * CAST ( NULL AS REAL ) + 48 AS col1
----
58
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4470
SELECT COUNT( * ) AS col0, + 64 + 99
----
1
163

skipif mysql # not compatible
query II rowsort label-4470
SELECT COUNT ( * ) AS col0, + 64 + 99
----
1
163

query I rowsort
SELECT - + ( - 87 )
----
87

onlyif mysql # DIV for integer division: 
query I rowsort label-4472
SELECT ALL 20 DIV - 28 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4472
SELECT ALL 20 / - 28 AS col1
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4473
SELECT 72 DIV + 76 AS col0, SUM( ALL - 80 )
----
0
-80

skipif mysql # not compatible
query II rowsort label-4473
SELECT 72 / + 76 AS col0, SUM ( ALL - 80 )
----
0
-80

query I rowsort
SELECT 79 + - - 63 - - 75
----
217

onlyif mysql # aggregate syntax: 
query I rowsort label-4475
SELECT ALL MAX( + - 43 )
----
-43

skipif mysql # not compatible
query I rowsort label-4475
SELECT ALL MAX ( + - 43 )
----
-43

onlyif mysql # DIV for integer division: 
query I rowsort label-4476
SELECT 62 - - 88 * + + 2 + - - 27 DIV + + NULLIF ( 79, + + 86 )
----
238

skipif mysql # not compatible
query I rowsort label-4476
SELECT 62 - - 88 * + + 2 + - - 27 / + + NULLIF ( 79, + + 86 )
----
238

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4477
SELECT COUNT( ( - + ( - 61 ) ) ), ( + 98 ) DIV - - 71
----
1
1

skipif mysql # not compatible
query II rowsort label-4477
SELECT COUNT ( ( - + ( - 61 ) ) ), ( + 98 ) / - - 71
----
1
1

query I rowsort
SELECT DISTINCT 12 * + + ( - 47 ) AS col2
----
-564

onlyif mysql # aggregate syntax: 
query I rowsort label-4479
SELECT ALL MAX( 71 ) + 41 * - 95
----
-3824

skipif mysql # not compatible
query I rowsort label-4479
SELECT ALL MAX ( 71 ) + 41 * - 95
----
-3824

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4480
SELECT DISTINCT - COALESCE ( COUNT( * ), - + 27 * 32, ( - 42 ) DIV COUNT( * ) + 26 * + ( + + COUNT( * ) ) - - 22, - ( + + 38 ) + - - ( + - 93 ) + - 86 )
----
-1

skipif mysql # not compatible
query I rowsort label-4480
SELECT DISTINCT - COALESCE ( COUNT ( * ), - + 27 * 32, ( - 42 ) / COUNT ( * ) + 26 * + ( + + COUNT ( * ) ) - - 22, - ( + + 38 ) + - - ( + - 93 ) + - 86 )
----
-1

query I rowsort
SELECT ALL 47 + + 60 * + 90
----
5447

query I rowsort
SELECT 16 * 60 - ( 36 ) AS col1
----
924

onlyif mysql # DIV for integer division: 
query I rowsort label-4483
SELECT 23 DIV 64 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4483
SELECT 23 / 64 AS col0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4484
SELECT ALL + CAST( NULL AS SIGNED ) + - - ( + - CAST( - 37 AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-4484
SELECT ALL + CAST ( NULL AS INTEGER ) + - - ( + - CAST ( - 37 AS INTEGER ) )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4485
SELECT CAST( NULL AS SIGNED ) * - 85 + - + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-4485
SELECT CAST ( NULL AS INTEGER ) * - 85 + - + COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4486
SELECT ( - 80 ), COUNT( * ) * 86 AS col0
----
-80
86

skipif mysql # not compatible
query II rowsort label-4486
SELECT ( - 80 ), COUNT ( * ) * 86 AS col0
----
-80
86

onlyif mysql # aggregate syntax: 
query I rowsort label-4487
SELECT - 11 * + 2 * - COUNT( * ) * + - 97 * - 26 + 95 AS col2
----
55579

skipif mysql # not compatible
query I rowsort label-4487
SELECT - 11 * + 2 * - COUNT ( * ) * + - 97 * - 26 + 95 AS col2
----
55579

onlyif mysql # DIV for integer division: 
query I rowsort label-4488
SELECT ALL + 72 DIV 31 - + - 10 AS col0
----
12

skipif mysql # not compatible
query I rowsort label-4488
SELECT ALL + 72 / 31 - + - 10 AS col0
----
12

query I rowsort
SELECT ALL - - 39 AS col2
----
39

query I rowsort
SELECT DISTINCT - 39 * - ( 49 )
----
1911

query I rowsort
SELECT ALL 48 + + 69
----
117

onlyif mysql # DIV for integer division: 
query I rowsort label-4492
SELECT + 32 DIV 66
----
0

skipif mysql # not compatible
query I rowsort label-4492
SELECT + 32 / 66
----
0

query I rowsort
SELECT DISTINCT - + 71 AS col0
----
-71

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4494
SELECT CAST( + 83 AS SIGNED ) * 13 / + CAST( NULL AS SIGNED ) + - MAX( + 48 ) + - 67 * - 83
----
NULL

skipif mysql # not compatible
query I rowsort label-4494
SELECT CAST ( + 83 AS INTEGER ) * 13 / + CAST ( NULL AS INTEGER ) + - MAX ( + 48 ) + - 67 * - 83
----
NULL

query I rowsort
SELECT - + 88 AS col2
----
-88

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4496
SELECT - COUNT( * ) * 28 - + - 10 + CASE 18 WHEN + 46 THEN + 85 - + ( - - COUNT( * ) ) * - 83 * - + 50 * - - CAST( + COUNT( * ) AS SIGNED ) WHEN - 30 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-4496
SELECT - COUNT ( * ) * 28 - + - 10 + CASE 18 WHEN + 46 THEN + 85 - + ( - - COUNT ( * ) ) * - 83 * - + 50 * - - CAST ( + COUNT ( * ) AS INTEGER ) WHEN - 30 THEN NULL END
----
NULL

query I rowsort
SELECT + 25 + + - 25 * - - ( + 65 ) * + 50 AS col1
----
-81225

query I rowsort
SELECT DISTINCT + ( - - 85 ) AS col2
----
85

query I rowsort
SELECT - 50 * + + 6 * - + 67 * + - 91
----
-1829100

onlyif mysql # aggregate syntax: 
query I rowsort label-4500
SELECT ALL MAX( - 69 )
----
-69

skipif mysql # not compatible
query I rowsort label-4500
SELECT ALL MAX ( - 69 )
----
-69

onlyif mysql # DIV for integer division: 
query I rowsort label-4501
SELECT + 14 DIV + + 56 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4501
SELECT + 14 / + + 56 AS col0
----
0

query I rowsort
SELECT - 20 * 67 col1
----
-1340

onlyif mysql # aggregate syntax: 
query I rowsort label-4503
SELECT ALL MAX( ALL - + 8 ) AS col1
----
-8

skipif mysql # not compatible
query I rowsort label-4503
SELECT ALL MAX ( ALL - + 8 ) AS col1
----
-8

query I rowsort
SELECT - 66 + + 1
----
-65

query I rowsort
SELECT - 72 - - + 87
----
15

query II rowsort
SELECT ALL NULLIF ( + - 8, 48 ), + 5 AS col0
----
-8
5

query I rowsort
SELECT DISTINCT COALESCE ( - - 18, + 18 ) AS col0
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-4508
SELECT DISTINCT + COUNT( * ) + + - 63 * - - 46
----
-2897

skipif mysql # not compatible
query I rowsort label-4508
SELECT DISTINCT + COUNT ( * ) + + - 63 * - - 46
----
-2897

query I rowsort
SELECT ALL - 47 + + 97
----
50

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4510
SELECT - 49 AS col1, + CAST( + + COUNT( * ) AS SIGNED ) - - 80 / - + CAST( NULL AS SIGNED ) * 63 AS col0
----
-49
NULL

skipif mysql # not compatible
query II rowsort label-4510
SELECT - 49 AS col1, + CAST ( + + COUNT ( * ) AS INTEGER ) - - 80 / - + CAST ( NULL AS INTEGER ) * 63 AS col0
----
-49
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4511
SELECT ALL MAX( 94 )
----
94

skipif mysql # not compatible
query I rowsort label-4511
SELECT ALL MAX ( 94 )
----
94

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4512
SELECT ALL 6 + - COALESCE ( NULLIF ( - + 92, + CASE + 91 WHEN + - 56 THEN + CAST( NULL AS SIGNED ) END ), + 97 ) * - CASE - 14 WHEN + 60 THEN - 53 WHEN + 36 * 94 * 66 * - + SUM( DISTINCT 11 ) THEN + 16 ELSE NULL END + 49 * - - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4512
SELECT ALL 6 + - COALESCE ( NULLIF ( - + 92, + CASE + 91 WHEN + - 56 THEN + CAST ( NULL AS INTEGER ) END ), + 97 ) * - CASE - 14 WHEN + 60 THEN - 53 WHEN + 36 * 94 * 66 * - + SUM ( DISTINCT 11 ) THEN + 16 ELSE NULL END + 49 * - - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT - 30 * 18
----
-540

query I rowsort
SELECT DISTINCT 7 * - + 47 * - 5 + + - 80 AS col1
----
1565

query I rowsort
SELECT ( - - 14 )
----
14

query I rowsort
SELECT ( - 47 )
----
-47

query I rowsort
SELECT DISTINCT + ( + 34 ) AS col1
----
34

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4518
SELECT + CAST( NULL AS SIGNED ) * + 9 * - - ( 59 ) * - + COALESCE ( 56, 38 * - 77 + + ( - + COUNT( * ) ) + - COUNT( * ), - 58 * - COUNT( * ) + + MIN( ALL + + 99 ) ) / 1 + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-4518
SELECT + CAST ( NULL AS INTEGER ) * + 9 * - - ( 59 ) * - + COALESCE ( 56, 38 * - 77 + + ( - + COUNT ( * ) ) + - COUNT ( * ), - 58 * - COUNT ( * ) + + MIN ( ALL + + 99 ) ) / 1 + COUNT ( * )
----
NULL

query I rowsort
SELECT DISTINCT + - 28 AS col1
----
-28

query I rowsort
SELECT ALL + 59 * - 53 + + 33 - + 30 * - COALESCE ( + 19, - - 60 ) AS col0
----
-2524

query I rowsort
SELECT + - 5 + + - 47 + + 82
----
30

onlyif mysql # aggregate syntax: 
query II rowsort label-4522
SELECT ALL + COUNT( * ) AS col0, - ( + 78 ) + + + COUNT( * )
----
1
-77

skipif mysql # not compatible
query II rowsort label-4522
SELECT ALL + COUNT ( * ) AS col0, - ( + 78 ) + + + COUNT ( * )
----
1
-77

query I rowsort
SELECT - 92 * + 6 + - - 48 + 25 AS col0
----
-479

query I rowsort
SELECT + + 71 * + 94 AS col0
----
6674

onlyif mysql # aggregate syntax: 
query I rowsort label-4525
SELECT 55 * + 86 * - 27 + 15 + - + MIN( DISTINCT - 50 ) + - 44
----
-127689

skipif mysql # not compatible
query I rowsort label-4525
SELECT 55 * + 86 * - 27 + 15 + - + MIN ( DISTINCT - 50 ) + - 44
----
-127689

onlyif mysql # aggregate syntax: 
query I rowsort label-4526
SELECT ALL - - SUM( DISTINCT - 59 ) * + - 40 - - - 40 + 61 AS col1
----
2381

skipif mysql # not compatible
query I rowsort label-4526
SELECT ALL - - SUM ( DISTINCT - 59 ) * + - 40 - - - 40 + 61 AS col1
----
2381

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4527
SELECT - 69 + 70 - 47 + - 68 + - 4 DIV - - 45 - COUNT( * ) * + + 25 AS col2
----
-139

skipif mysql # not compatible
query I rowsort label-4527
SELECT - 69 + 70 - 47 + - 68 + - 4 / - - 45 - COUNT ( * ) * + + 25 AS col2
----
-139

query I rowsort
SELECT + + 80 + - + 80 AS col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4529
SELECT - CAST( - COUNT( * ) AS SIGNED ) + + MAX( DISTINCT + 18 ) AS col2
----
19

skipif mysql # not compatible
query I rowsort label-4529
SELECT - CAST ( - COUNT ( * ) AS INTEGER ) + + MAX ( DISTINCT + 18 ) AS col2
----
19

query I rowsort
SELECT - - 11 * + NULLIF ( - + 27, 86 * + - 5 ) AS col1
----
-297

query I rowsort
SELECT + 56 * + 80
----
4480

onlyif mysql # aggregate syntax: 
query I rowsort label-4532
SELECT + COUNT( + + 2 ) + + - 39 AS col0
----
-38

skipif mysql # not compatible
query I rowsort label-4532
SELECT + COUNT ( + + 2 ) + + - 39 AS col0
----
-38

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4533
SELECT + 23 * CAST( 31 AS SIGNED )
----
713

skipif mysql # not compatible
query I rowsort label-4533
SELECT + 23 * CAST ( 31 AS INTEGER )
----
713

query I rowsort
SELECT + + 28 + 10
----
38

query I rowsort
SELECT + - 53 + 93
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-4536
SELECT ALL - 5 * + MIN( DISTINCT + - 92 ) * + MIN( ALL + + 62 )
----
28520

skipif mysql # not compatible
query I rowsort label-4536
SELECT ALL - 5 * + MIN ( DISTINCT + - 92 ) * + MIN ( ALL + + 62 )
----
28520

onlyif mysql # aggregate syntax: 
query II rowsort label-4537
SELECT ALL CASE - + COUNT( ALL + 26 ) WHEN - 46 THEN 84 * - MIN( DISTINCT + + ( + + 28 ) ) ELSE + - 63 END AS col0, - 57 + 43 col1
----
-63
-14

skipif mysql # not compatible
query II rowsort label-4537
SELECT ALL CASE - + COUNT ( ALL + 26 ) WHEN - 46 THEN 84 * - MIN ( DISTINCT + + ( + + 28 ) ) ELSE + - 63 END AS col0, - 57 + 43 col1
----
-63
-14

query I rowsort
SELECT + ( + + 1 ) + - NULLIF ( - - 68, - 49 + - - 47 * + 17 / + ( 94 ) )
----
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-4539
SELECT SUM( ALL - - 67 )
----
67

skipif mysql # not compatible
query I rowsort label-4539
SELECT SUM ( ALL - - 67 )
----
67

query I rowsort
SELECT - 72 + - 58 - - + 73 AS col2
----
-57

query I rowsort
SELECT ALL - 88 + + 67 + - 20
----
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-4542
SELECT + COUNT( * ) * - - 2 col2
----
2

skipif mysql # not compatible
query I rowsort label-4542
SELECT + COUNT ( * ) * - - 2 col2
----
2

query I rowsort
SELECT ALL 48 + - + 26
----
22

onlyif mysql # CAST syntax: DECIMAL type: DIV for integer division: 
query II rowsort label-4544
SELECT - CAST( NULL AS DECIMAL ), - 96 * ( + - 23 ) DIV + 39 AS col0
----
NULL
56

skipif mysql # not compatible
query II rowsort label-4544
SELECT - CAST ( NULL AS REAL ), - 96 * ( + - 23 ) / + 39 AS col0
----
NULL
56

query I rowsort
SELECT ALL + 15 + 3 + 62 + - - 38
----
118

query II rowsort
SELECT 99 AS col2, 22
----
99
22

onlyif mysql # DIV for integer division: 
query I rowsort label-4547
SELECT - 13 * 62 DIV + - 95
----
8

skipif mysql # not compatible
query I rowsort label-4547
SELECT - 13 * 62 / + - 95
----
8

query I rowsort
SELECT ALL + 43 * 48
----
2064

query I rowsort
SELECT - 30 + - 65 AS col1
----
-95

query I rowsort
SELECT DISTINCT 36 + + 85 + + 36 * ( 7 )
----
373

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4551
SELECT ALL - NULLIF ( + - NULLIF ( 20, + COUNT( * ) * + + 94 - - - CAST( + 95 AS SIGNED ) ), - NULLIF ( + ( SUM( + - ( 34 ) ) ), - CAST( + - 48 AS SIGNED ) ) * + - CAST( + 15 AS SIGNED ) * + 61 * - 91 - + - 67 + 28 / - + NULLIF ( + 22, - 42 + 5 ) * + 68 + 41 - ( + 54 ) + 39 * 95 * - MAX( DISTINCT + 4 ) * + COUNT( * ) ) + 28 + - 78
----
-30

skipif mysql # not compatible
query I rowsort label-4551
SELECT ALL - NULLIF ( + - NULLIF ( 20, + COUNT ( * ) * + + 94 - - - CAST ( + 95 AS INTEGER ) ), - NULLIF ( + ( SUM ( + - ( 34 ) ) ), - CAST ( + - 48 AS INTEGER ) ) * + - CAST ( + 15 AS INTEGER ) * + 61 * - 91 - + - 67 + 28 / - + NULLIF ( + 22, - 42 + 5 ) * + 68 + 41 - ( + 54 ) + 39 * 95 * - MAX ( DISTINCT + 4 ) * + COUNT ( * ) ) + 28 + - 78
----
-30

query II rowsort
SELECT - 59, 23 AS col0
----
-59
23

onlyif mysql # aggregate syntax: 
query I rowsort label-4553
SELECT ALL + ( + 43 ) * + CASE - 67 WHEN ( + 78 ) / + 98 + - ( + 50 ) + + COUNT( * ) THEN - 36 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-4553
SELECT ALL + ( + 43 ) * + CASE - 67 WHEN ( + 78 ) / + 98 + - ( + 50 ) + + COUNT ( * ) THEN - 36 ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4554
SELECT 53 * + MAX( + 9 ) - CAST( 99 AS SIGNED ) - - CAST( NULL AS SIGNED ) * + CASE - ( COUNT( * ) ) WHEN + MIN( DISTINCT + ( + 84 ) ) + 89 THEN + 51 ELSE + 8 * + - CAST( - 97 AS SIGNED ) + + 55 * - 72 END
----
NULL

skipif mysql # not compatible
query I rowsort label-4554
SELECT 53 * + MAX ( + 9 ) - CAST ( 99 AS INTEGER ) - - CAST ( NULL AS INTEGER ) * + CASE - ( COUNT ( * ) ) WHEN + MIN ( DISTINCT + ( + 84 ) ) + 89 THEN + 51 ELSE + 8 * + - CAST ( - 97 AS INTEGER ) + + 55 * - 72 END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4555
SELECT DISTINCT + 13 DIV 57 - + 14 * - COALESCE ( + 25, - + 30 - 82 ) + - 27 - + 72 + 17 * - + 44 * + COUNT( * ) + - + 78
----
-575

skipif mysql # not compatible
query I rowsort label-4555
SELECT DISTINCT + 13 / 57 - + 14 * - COALESCE ( + 25, - + 30 - 82 ) + - 27 - + 72 + 17 * - + 44 * + COUNT ( * ) + - + 78
----
-575

query I rowsort
SELECT - - 50 * - 73 * 1 AS col1
----
-3650

onlyif mysql # DIV for integer division: 
query I rowsort label-4557
SELECT DISTINCT + - 23 DIV 69 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4557
SELECT DISTINCT + - 23 / 69 AS col2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4558
SELECT - - 5 * - CAST( NULL AS SIGNED ) * + 37 - + + 35 * + - 90 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4558
SELECT - - 5 * - CAST ( NULL AS INTEGER ) * + 37 - + + 35 * + - 90 AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-4559
SELECT ALL COALESCE ( + 33, - + 87 ) DIV + - 75 AS col2, 30 AS col2
----
0
30

skipif mysql # not compatible
query II rowsort label-4559
SELECT ALL COALESCE ( + 33, - + 87 ) / + - 75 AS col2, 30 AS col2
----
0
30

onlyif mysql # DIV for integer division: 
query I rowsort label-4560
SELECT ALL + + ( + 58 ) DIV 48 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-4560
SELECT ALL + + ( + 58 ) / 48 AS col0
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4561
SELECT COUNT( * ) col1, - COALESCE ( - - 66, - 39, + 43 + + SUM( 20 ), - 52 * - + 63 + + 50 ) + - 92 DIV 18
----
1
-71

skipif mysql # not compatible
query II rowsort label-4561
SELECT COUNT ( * ) col1, - COALESCE ( - - 66, - 39, + 43 + + SUM ( 20 ), - 52 * - + 63 + + 50 ) + - 92 / 18
----
1
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-4562
SELECT ALL - - NULLIF ( - 71, - COUNT( * ) ) AS col0
----
-71

skipif mysql # not compatible
query I rowsort label-4562
SELECT ALL - - NULLIF ( - 71, - COUNT ( * ) ) AS col0
----
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-4563
SELECT COUNT( 84 )
----
1

skipif mysql # not compatible
query I rowsort label-4563
SELECT COUNT ( 84 )
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4564
SELECT + 64 * - 18 + - CAST( ( - MIN( + 70 ) ) AS SIGNED ) + 68
----
-1014

skipif mysql # not compatible
query I rowsort label-4564
SELECT + 64 * - 18 + - CAST ( ( - MIN ( + 70 ) ) AS INTEGER ) + 68
----
-1014

query I rowsort
SELECT - 54 * - 37 * + 63 * 12
----
1510488

query I rowsort
SELECT ALL + 38 * + - 13 * + 23
----
-11362

query II rowsort
SELECT DISTINCT - 22 AS col2, 65 AS col1
----
-22
65

query II rowsort
SELECT + - 25, 45 AS col1
----
-25
45

query I rowsort
SELECT + 21 * - + 3 + + + 11
----
-52

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4570
SELECT ALL + + CAST( NULL AS SIGNED ) * - COUNT( * ) * - - MIN( ALL - + 66 ) + - - 56 * + 81 * - 25, + 2 DIV NULLIF ( - + 37, + + 22 ) * - 13 col1
----
NULL
0

skipif mysql # not compatible
query II rowsort label-4570
SELECT ALL + + CAST ( NULL AS INTEGER ) * - COUNT ( * ) * - - MIN ( ALL - + 66 ) + - - 56 * + 81 * - 25, + 2 / NULLIF ( - + 37, + + 22 ) * - 13 col1
----
NULL
0

onlyif mysql # DIV for integer division: 
query II rowsort label-4571
SELECT DISTINCT - - 69 col0, - 95 DIV - ( + + 60 )
----
69
1

skipif mysql # not compatible
query II rowsort label-4571
SELECT DISTINCT - - 69 col0, - 95 / - ( + + 60 )
----
69
1

query II rowsort
SELECT ALL - 74 AS col1, 72
----
-74
72

query I rowsort
SELECT 72 + - - 92 * + 39 AS col1
----
3660

query I rowsort
SELECT 91 + + - ( + 97 )
----
-6

onlyif mysql # DIV for integer division: 
query I rowsort label-4575
SELECT ALL 31 + + 60 DIV - 45 AS col2
----
30

skipif mysql # not compatible
query I rowsort label-4575
SELECT ALL 31 + + 60 / - 45 AS col2
----
30

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4576
SELECT 97 - CAST( + 92 AS SIGNED ) AS col1
----
5

skipif mysql # not compatible
query I rowsort label-4576
SELECT 97 - CAST ( + 92 AS INTEGER ) AS col1
----
5

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4577
SELECT ALL 48 * - - 8 * + NULLIF ( - 47, + CAST( + + AVG ( DISTINCT 7 ) AS SIGNED ) ) AS col2, - ( + - 9 ) * - - 12 col0
----
-18048
108

skipif mysql # not compatible
query II rowsort label-4577
SELECT ALL 48 * - - 8 * + NULLIF ( - 47, + CAST ( + + AVG ( DISTINCT 7 ) AS INTEGER ) ) AS col2, - ( + - 9 ) * - - 12 col0
----
-18048
108

query I rowsort
SELECT DISTINCT 60 + + NULLIF ( 45, - + 25 ) AS col1
----
105

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4579
SELECT COUNT( * ) + CAST( ( - + 61 ) AS SIGNED )
----
-60

skipif mysql # not compatible
query I rowsort label-4579
SELECT COUNT ( * ) + CAST ( ( - + 61 ) AS INTEGER )
----
-60

query I rowsort
SELECT 26 + + - 64 * - 43
----
2778

query I rowsort
SELECT 97 + - ( + 62 ) * ( - 51 )
----
3259

onlyif mysql # aggregate syntax: 
query I rowsort label-4582
SELECT COUNT( * ) + - 6 + + 91 AS col1
----
86

skipif mysql # not compatible
query I rowsort label-4582
SELECT COUNT ( * ) + - 6 + + 91 AS col1
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-4583
SELECT DISTINCT SUM( 51 ) * - + 41 + + + 96 AS col2
----
-1995

skipif mysql # not compatible
query I rowsort label-4583
SELECT DISTINCT SUM ( 51 ) * - + 41 + + + 96 AS col2
----
-1995

query I rowsort
SELECT ALL + 10 - + 57
----
-47

onlyif mysql # aggregate syntax: 
query II rowsort label-4585
SELECT - 75 * 66, 16 * - COUNT( * ) * - + COUNT( * ) col2
----
-4950
16

skipif mysql # not compatible
query II rowsort label-4585
SELECT - 75 * 66, 16 * - COUNT ( * ) * - + COUNT ( * ) col2
----
-4950
16

onlyif mysql # aggregate syntax: 
query II rowsort label-4586
SELECT ALL + - 21 * - MAX( ALL + 96 ) AS col2, - 85 AS col0
----
2016
-85

skipif mysql # not compatible
query II rowsort label-4586
SELECT ALL + - 21 * - MAX ( ALL + 96 ) AS col2, - 85 AS col0
----
2016
-85

onlyif mysql # DIV for integer division: 
query II rowsort label-4587
SELECT + 50 DIV - 70 + + 9 + - 83 * - + 79 AS col1, COALESCE ( 3, + 71 ) AS col2
----
6566
3

skipif mysql # not compatible
query II rowsort label-4587
SELECT + 50 / - 70 + + 9 + - 83 * - + 79 AS col1, COALESCE ( 3, + 71 ) AS col2
----
6566
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4588
SELECT ALL MIN( DISTINCT 18 ) - - - 11 + - - 62 AS col1
----
69

skipif mysql # not compatible
query I rowsort label-4588
SELECT ALL MIN ( DISTINCT 18 ) - - - 11 + - - 62 AS col1
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-4589
SELECT - ( + 24 ) * + MAX( 94 )
----
-2256

skipif mysql # not compatible
query I rowsort label-4589
SELECT - ( + 24 ) * + MAX ( 94 )
----
-2256

onlyif mysql # aggregate syntax: 
query I rowsort label-4590
SELECT NULLIF ( - COUNT( * ), 90 + + - 97 + + ( - 66 ) * + - COUNT( * ) * + + 97 * + 14 * + 38 * - - COUNT( - 73 ) ) * + 81 AS col2
----
-81

skipif mysql # not compatible
query I rowsort label-4590
SELECT NULLIF ( - COUNT ( * ), 90 + + - 97 + + ( - 66 ) * + - COUNT ( * ) * + + 97 * + 14 * + 38 * - - COUNT ( - 73 ) ) * + 81 AS col2
----
-81

onlyif mysql # DIV for integer division: 
query I rowsort label-4591
SELECT - 20 * + 49 + - - 83 + 27 - + - 28 DIV + - 93 AS col1
----
-870

skipif mysql # not compatible
query I rowsort label-4591
SELECT - 20 * + 49 + - - 83 + 27 - + - 28 / + - 93 AS col1
----
-870

query I rowsort
SELECT + - 40 AS col0
----
-40

query I rowsort
SELECT + COALESCE ( + 19, + 41 )
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-4594
SELECT + COUNT( * ) * + 69 * 94 + - - 77 + MAX( DISTINCT + + 36 ) - + 11 + 67 AS col2
----
6655

skipif mysql # not compatible
query I rowsort label-4594
SELECT + COUNT ( * ) * + 69 * 94 + - - 77 + MAX ( DISTINCT + + 36 ) - + 11 + 67 AS col2
----
6655

query I rowsort
SELECT + 78 + + 23 * 47 AS col2
----
1159

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4596
SELECT - CAST( NULL AS SIGNED ) + + - 43 + - NULLIF ( - SUM( DISTINCT - + 6 ), + 55 + + 16 ) * - + 51 * 61 / - COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4596
SELECT - CAST ( NULL AS INTEGER ) + + - 43 + - NULLIF ( - SUM ( DISTINCT - + 6 ), + 55 + + 16 ) * - + 51 * 61 / - COUNT ( * ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4597
SELECT - MIN( ALL - 16 ) * - - ( - 62 )
----
-992

skipif mysql # not compatible
query I rowsort label-4597
SELECT - MIN ( ALL - 16 ) * - - ( - 62 )
----
-992

query I rowsort
SELECT - COALESCE ( + 25, + + 30 ) AS col0
----
-25

query I rowsort
SELECT + - 88 col2
----
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-4600
SELECT + 41 + 21 * + COUNT( * ) + - + COUNT( * ) + + 16 * 70
----
1181

skipif mysql # not compatible
query I rowsort label-4600
SELECT + 41 + 21 * + COUNT ( * ) + - + COUNT ( * ) + + 16 * 70
----
1181

query II rowsort
SELECT 46 AS col0, 28 - - 92 col2
----
46
120

query I rowsort
SELECT ALL + 87 + + 57
----
144

query I rowsort
SELECT 72 * + 97 * - 71
----
-495864

onlyif mysql # aggregate syntax: 
query I rowsort label-4604
SELECT COUNT( * ) + - - 10 col1
----
11

skipif mysql # not compatible
query I rowsort label-4604
SELECT COUNT ( * ) + - - 10 col1
----
11

query II rowsort
SELECT + 26 AS col0, + ( + 87 ) col1
----
26
87

query II rowsort
SELECT DISTINCT - 23 AS col0, - 7
----
-23
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-4607
SELECT ALL + 88 + COUNT( * )
----
89

skipif mysql # not compatible
query I rowsort label-4607
SELECT ALL + 88 + COUNT ( * )
----
89

query II rowsort
SELECT DISTINCT 82 AS col1, 91
----
82
91

query I rowsort
SELECT ALL 7 + + 68 AS col0
----
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4610
SELECT - CAST( NULL AS SIGNED ) * + 62 + - 3
----
NULL

skipif mysql # not compatible
query I rowsort label-4610
SELECT - CAST ( NULL AS INTEGER ) * + 62 + - 3
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4611
SELECT DISTINCT MIN( 60 )
----
60

skipif mysql # not compatible
query I rowsort label-4611
SELECT DISTINCT MIN ( 60 )
----
60

query II rowsort
SELECT 32, + 74 col2
----
32
74

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4613
SELECT 42 + + CAST( - + 54 AS SIGNED ) AS col1
----
-12

skipif mysql # not compatible
query I rowsort label-4613
SELECT 42 + + CAST ( - + 54 AS INTEGER ) AS col1
----
-12

query I rowsort
SELECT 13 * + + 19
----
247

query I rowsort
SELECT DISTINCT 0 * + 32 * - ( + 47 )
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4616
SELECT ALL - 26 DIV 91 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4616
SELECT ALL - 26 / 91 AS col2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4617
SELECT 32 DIV - 70
----
0

skipif mysql # not compatible
query I rowsort label-4617
SELECT 32 / - 70
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4618
SELECT ALL 35 * + + MAX( - 31 )
----
-1085

skipif mysql # not compatible
query I rowsort label-4618
SELECT ALL 35 * + + MAX ( - 31 )
----
-1085

onlyif mysql # aggregate syntax: 
query I rowsort label-4619
SELECT + CASE + + 90 WHEN - 71 * COUNT( * ) + 3 * - 1 * COUNT( * ) * + - 83 THEN 90 * + 66 * - COUNT( * ) END + + 19 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4619
SELECT + CASE + + 90 WHEN - 71 * COUNT ( * ) + 3 * - 1 * COUNT ( * ) * + - 83 THEN 90 * + 66 * - COUNT ( * ) END + + 19 AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4620
SELECT COUNT( * ) DIV + - 90
----
0

skipif mysql # not compatible
query I rowsort label-4620
SELECT COUNT ( * ) / + - 90
----
0

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-4621
SELECT ALL - COUNT( ALL + 86 ) * - + 41 * + - MIN( - + 94 ) * + + CAST( NULL AS DECIMAL ) AS col2, + 83
----
NULL
83

skipif mysql # not compatible
query II rowsort label-4621
SELECT ALL - COUNT ( ALL + 86 ) * - + 41 * + - MIN ( - + 94 ) * + + CAST ( NULL AS REAL ) AS col2, + 83
----
NULL
83

onlyif mysql # aggregate syntax: 
query I rowsort label-4622
SELECT + + 98 - + COUNT( * ) + + 72
----
169

skipif mysql # not compatible
query I rowsort label-4622
SELECT + + 98 - + COUNT ( * ) + + 72
----
169

onlyif mysql # aggregate syntax: 
query I rowsort label-4623
SELECT + - COUNT( * ) - + 88
----
-89

skipif mysql # not compatible
query I rowsort label-4623
SELECT + - COUNT ( * ) - + 88
----
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-4624
SELECT + 76 * - MAX( DISTINCT - 16 ) AS col1
----
1216

skipif mysql # not compatible
query I rowsort label-4624
SELECT + 76 * - MAX ( DISTINCT - 16 ) AS col1
----
1216

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4625
SELECT DISTINCT + + COUNT( * ) * - + 13 + + 9 DIV + + 32 + COUNT( * ) AS col2
----
-12

skipif mysql # not compatible
query I rowsort label-4625
SELECT DISTINCT + + COUNT ( * ) * - + 13 + + 9 / + + 32 + COUNT ( * ) AS col2
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-4626
SELECT ALL + COUNT( * ) * + 99 + + 44 * - - 2 AS col1
----
187

skipif mysql # not compatible
query I rowsort label-4626
SELECT ALL + COUNT ( * ) * + 99 + + 44 * - - 2 AS col1
----
187

query II rowsort
SELECT ALL + - 72 AS col0, + 36 + + 59 * 15 AS col2
----
-72
921

query I rowsort
SELECT + - 71 * 75 col0
----
-5325

query II rowsort
SELECT - 1 * + - 63 - - 76 AS col2, 40 AS col1
----
139
40

onlyif mysql # aggregate syntax: 
query I rowsort label-4630
SELECT + ( COALESCE ( - 45, + 33, 26 * ( - - COUNT( + 21 ) ) + + COUNT( * ) ) )
----
-45

skipif mysql # not compatible
query I rowsort label-4630
SELECT + ( COALESCE ( - 45, + 33, 26 * ( - - COUNT ( + 21 ) ) + + COUNT ( * ) ) )
----
-45

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4631
SELECT + + CAST( NULL AS SIGNED ), COUNT( * ) * - 98 + - 68 AS col0
----
NULL
-166

skipif mysql # not compatible
query II rowsort label-4631
SELECT + + CAST ( NULL AS INTEGER ), COUNT ( * ) * - 98 + - 68 AS col0
----
NULL
-166

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4632
SELECT ALL CAST( NULL AS SIGNED ) * + - 92 + + 59, + 3 AS col0
----
NULL
3

skipif mysql # not compatible
query II rowsort label-4632
SELECT ALL CAST ( NULL AS INTEGER ) * + - 92 + + 59, + 3 AS col0
----
NULL
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4633
SELECT CASE - COUNT( * ) WHEN + + 57 THEN + - 35 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-4633
SELECT CASE - COUNT ( * ) WHEN + + 57 THEN + - 35 ELSE NULL END
----
NULL

query I rowsort
SELECT + 78 * - 95
----
-7410

query I rowsort
SELECT - ( 32 ) * 37 AS col1
----
-1184

query I rowsort
SELECT DISTINCT 91 * + 15 * 6
----
8190

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4637
SELECT SUM( DISTINCT + 33 ) AS col1, CASE + - 16 WHEN 65 THEN 75 WHEN + 92 / - CAST( + COUNT( * ) AS SIGNED ) + 46 THEN + - 49 ELSE NULL END * - 20 + + + 77 + COUNT( * ) AS col1
----
33
NULL

skipif mysql # not compatible
query II rowsort label-4637
SELECT SUM ( DISTINCT + 33 ) AS col1, CASE + - 16 WHEN 65 THEN 75 WHEN + 92 / - CAST ( + COUNT ( * ) AS INTEGER ) + 46 THEN + - 49 ELSE NULL END * - 20 + + + 77 + COUNT ( * ) AS col1
----
33
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4638
SELECT DISTINCT 4 * + + COUNT( * ) * + - MAX( ALL - - 92 ) + + ( COALESCE ( + 65, - 96 ) ) + - + 96 - - 37 * + - 14 + + + 86 AS col0
----
-831

skipif mysql # not compatible
query I rowsort label-4638
SELECT DISTINCT 4 * + + COUNT ( * ) * + - MAX ( ALL - - 92 ) + + ( COALESCE ( + 65, - 96 ) ) + - + 96 - - 37 * + - 14 + + + 86 AS col0
----
-831

query I rowsort
SELECT ALL + ( + - 36 ) AS col0
----
-36

query I rowsort
SELECT ALL 79 * - 72 + + 8 * - 73 AS col2
----
-6272

query II rowsort
SELECT 84 * - - ( + 77 ) + ( + 9 ) * 12 * - 23 AS col2, ( - 93 ) AS col2
----
3984
-93

query I rowsort
SELECT - 7 * - 26 * + ( + - 62 ) * 52
----
-586768

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4643
SELECT DISTINCT - 11 DIV COUNT( * )
----
-11

skipif mysql # not compatible
query I rowsort label-4643
SELECT DISTINCT - 11 / COUNT ( * )
----
-11

query I rowsort
SELECT + 3 * + ( + + 38 ) + 18 AS col2
----
132

query I rowsort
SELECT - 54 + 49
----
-5

query I rowsort
SELECT ALL COALESCE ( 55, - + 29 )
----
55

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4647
SELECT - 47 * + NULLIF ( + - CAST( 61 AS SIGNED ), - 79 )
----
2867

skipif mysql # not compatible
query I rowsort label-4647
SELECT - 47 * + NULLIF ( + - CAST ( 61 AS INTEGER ), - 79 )
----
2867

query I rowsort
SELECT - 6 + 20
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-4649
SELECT ALL CASE + 64 WHEN - + 29 / - ( - 27 ) * + 25 + - + 86 * + 81 * 18 THEN + - ( + + 6 ) WHEN 44 / + - 38 + + 17 * 11 + COUNT( * ) THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-4649
SELECT ALL CASE + 64 WHEN - + 29 / - ( - 27 ) * + 25 + - + 86 * + 81 * 18 THEN + - ( + + 6 ) WHEN 44 / + - 38 + + 17 * 11 + COUNT ( * ) THEN NULL ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4650
SELECT - 0 + + + 84 * - 35 + + COUNT( * )
----
-2939

skipif mysql # not compatible
query I rowsort label-4650
SELECT - 0 + + + 84 * - 35 + + COUNT ( * )
----
-2939

query I rowsort
SELECT ALL - 21 * - - 66 * ( - 85 ) * 67
----
7893270

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4652
SELECT - 17 * - COALESCE ( + COUNT( * ), + 99 + - CAST( NULL AS SIGNED ), 63 + - 8 )
----
17

skipif mysql # not compatible
query I rowsort label-4652
SELECT - 17 * - COALESCE ( + COUNT ( * ), + 99 + - CAST ( NULL AS INTEGER ), 63 + - 8 )
----
17

onlyif mysql # aggregate syntax: 
query II rowsort label-4653
SELECT - COUNT( DISTINCT - - 61 ) + + 6 + - + 39, - CASE - 42 WHEN 83 THEN 21 WHEN - 8 THEN + + 68 END AS col0
----
-34
NULL

skipif mysql # not compatible
query II rowsort label-4653
SELECT - COUNT ( DISTINCT - - 61 ) + + 6 + - + 39, - CASE - 42 WHEN 83 THEN 21 WHEN - 8 THEN + + 68 END AS col0
----
-34
NULL

query I rowsort
SELECT - 24 + + 64 + + 85 AS col1
----
125

onlyif mysql # aggregate syntax: 
query I rowsort label-4655
SELECT + ( + MAX( ALL + - ( CASE 53 WHEN - + 92 * + 74 - - 87 THEN - - 25 + 47 / - ( + - 70 ) END ) ) ) - + 18 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4655
SELECT + ( + MAX ( ALL + - ( CASE 53 WHEN - + 92 * + 74 - - 87 THEN - - 25 + 47 / - ( + - 70 ) END ) ) ) - + 18 AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4656
SELECT DISTINCT - COUNT( * ) DIV 78
----
0

skipif mysql # not compatible
query I rowsort label-4656
SELECT DISTINCT - COUNT ( * ) / 78
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4657
SELECT + + CAST( NULL AS SIGNED ) + - - AVG ( + 45 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4657
SELECT + + CAST ( NULL AS INTEGER ) + - - AVG ( + 45 ) AS col0
----
NULL

query II rowsort
SELECT ALL - - 94 * - 46 AS col2, + 60
----
-4324
60

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4659
SELECT ALL 82 DIV - - ( + 62 ) + - COALESCE ( + 79, ( - CASE - ( CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) ) WHEN - 5 * 12 * - 54 THEN - - 58 WHEN - 4 * - COUNT( * ) THEN NULL ELSE NULL END ) * + - SUM( - + 26 ), - 99 ) * + - 53 AS col1
----
4188

skipif mysql # not compatible
query I rowsort label-4659
SELECT ALL 82 / - - ( + 62 ) + - COALESCE ( + 79, ( - CASE - ( CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) ) WHEN - 5 * 12 * - 54 THEN - - 58 WHEN - 4 * - COUNT ( * ) THEN NULL ELSE NULL END ) * + - SUM ( - + 26 ), - 99 ) * + - 53 AS col1
----
4188

onlyif mysql # aggregate syntax: 
query I rowsort label-4660
SELECT MAX( - 60 ) AS col1
----
-60

skipif mysql # not compatible
query I rowsort label-4660
SELECT MAX ( - 60 ) AS col1
----
-60

query I rowsort
SELECT ALL + - 6 AS col0
----
-6

query I rowsort
SELECT + ( + 58 ) + + - 43 + + 87
----
102

query I rowsort
SELECT + ( - - 69 )
----
69

query I rowsort
SELECT ( - + COALESCE ( - 14, 19 ) )
----
14

query I rowsort
SELECT - 0 * - - 26 + 15
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-4666
SELECT ( + MAX( 41 ) )
----
41

skipif mysql # not compatible
query I rowsort label-4666
SELECT ( + MAX ( 41 ) )
----
41

query I rowsort
SELECT - 66 + 94 AS col2
----
28

query I rowsort
SELECT ALL 72 * 55
----
3960

onlyif mysql # aggregate syntax: 
query I rowsort label-4669
SELECT ( MIN( ALL + 84 ) )
----
84

skipif mysql # not compatible
query I rowsort label-4669
SELECT ( MIN ( ALL + 84 ) )
----
84

query I rowsort
SELECT - 84 + ( - 45 ) + - 33 AS col1
----
-162

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4671
SELECT + CAST( + - COUNT( * ) AS SIGNED ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-4671
SELECT + CAST ( + - COUNT ( * ) AS INTEGER ) AS col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4672
SELECT - COUNT( + 57 ) + + 59
----
58

skipif mysql # not compatible
query I rowsort label-4672
SELECT - COUNT ( + 57 ) + + 59
----
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4673
SELECT + CAST( 35 AS SIGNED ) AS col0
----
35

skipif mysql # not compatible
query I rowsort label-4673
SELECT + CAST ( 35 AS INTEGER ) AS col0
----
35

query II rowsort
SELECT DISTINCT + 48 col0, 85
----
48
85

query I rowsort
SELECT ALL 36 * 55 * - - 13 AS col1
----
25740

onlyif mysql # DIV for integer division: 
query I rowsort label-4676
SELECT + 48 DIV + 79
----
0

skipif mysql # not compatible
query I rowsort label-4676
SELECT + 48 / + 79
----
0

query I rowsort
SELECT ALL ( - 40 ) AS col1
----
-40

onlyif mysql # DIV for integer division: 
query I rowsort label-4678
SELECT + 12 DIV - ( - + 62 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4678
SELECT + 12 / - ( - + 62 ) AS col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4679
SELECT - 18 / CAST( + CASE 31 WHEN - ( + - 14 ) THEN MAX( ALL + + 0 ) * - 99 END AS SIGNED ) * + 36 * - 95
----
NULL

skipif mysql # not compatible
query I rowsort label-4679
SELECT - 18 / CAST ( + CASE 31 WHEN - ( + - 14 ) THEN MAX ( ALL + + 0 ) * - 99 END AS INTEGER ) * + 36 * - 95
----
NULL

query I rowsort
SELECT 57 * + 85 AS col1
----
4845

onlyif mysql # aggregate syntax: 
query I rowsort label-4681
SELECT ALL + CASE COUNT( * ) WHEN 68 + - - 10 + - 35 THEN - 0 END / - - 16 * - 59 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4681
SELECT ALL + CASE COUNT ( * ) WHEN 68 + - - 10 + - 35 THEN - 0 END / - - 16 * - 59 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4682
SELECT 76 + MAX( 29 ) + - 90 col2
----
15

skipif mysql # not compatible
query I rowsort label-4682
SELECT 76 + MAX ( 29 ) + - 90 col2
----
15

query II rowsort
SELECT - 50, 79 AS col1
----
-50
79

onlyif mysql # aggregate syntax: 
query I rowsort label-4684
SELECT ALL + 60 + - + COUNT( * )
----
59

skipif mysql # not compatible
query I rowsort label-4684
SELECT ALL + 60 + - + COUNT ( * )
----
59

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4685
SELECT ALL - + 42 * 97 * + 45, 8 + CAST( 65 AS SIGNED ) AS col0
----
-183330
73

skipif mysql # not compatible
query II rowsort label-4685
SELECT ALL - + 42 * 97 * + 45, 8 + CAST ( 65 AS INTEGER ) AS col0
----
-183330
73

query I rowsort
SELECT DISTINCT 6 + - 39
----
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-4687
SELECT DISTINCT - - SUM( ALL - 97 ) * - 47 AS col2
----
4559

skipif mysql # not compatible
query I rowsort label-4687
SELECT DISTINCT - - SUM ( ALL - 97 ) * - 47 AS col2
----
4559

query I rowsort
SELECT ALL + - 30 + + 96
----
66

query I rowsort
SELECT 25 * + 63 AS col1
----
1575

onlyif mysql # aggregate syntax: 
query I rowsort label-4690
SELECT - 38 - + - COUNT( * ) * - COUNT( * )
----
-39

skipif mysql # not compatible
query I rowsort label-4690
SELECT - 38 - + - COUNT ( * ) * - COUNT ( * )
----
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-4691
SELECT + SUM( - - 28 ) AS col1
----
28

skipif mysql # not compatible
query I rowsort label-4691
SELECT + SUM ( - - 28 ) AS col1
----
28

query I rowsort
SELECT ( 72 ) + 50
----
122

query I rowsort
SELECT ALL - 74 col0
----
-74

onlyif mysql # aggregate syntax: 
query II rowsort label-4694
SELECT ALL - + 30 AS col0, + 68 * + 72 * - 21 * - COUNT( * )
----
-30
102816

skipif mysql # not compatible
query II rowsort label-4694
SELECT ALL - + 30 AS col0, + 68 * + 72 * - 21 * - COUNT ( * )
----
-30
102816

query I rowsort
SELECT ALL - + 88 - + + 63
----
-151

query II rowsort
SELECT + 13 col1, 77
----
13
77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4697
SELECT DISTINCT - 92 - + + CAST( + 60 AS SIGNED )
----
-152

skipif mysql # not compatible
query I rowsort label-4697
SELECT DISTINCT - 92 - + + CAST ( + 60 AS INTEGER )
----
-152

onlyif mysql # aggregate syntax: 
query I rowsort label-4698
SELECT DISTINCT + 11 * - COUNT( * ) AS col0
----
-11

skipif mysql # not compatible
query I rowsort label-4698
SELECT DISTINCT + 11 * - COUNT ( * ) AS col0
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-4699
SELECT 20 * - MAX( - 21 ) - + 65 - 74 AS col2
----
281

skipif mysql # not compatible
query I rowsort label-4699
SELECT 20 * - MAX ( - 21 ) - + 65 - 74 AS col2
----
281

query I rowsort
SELECT 91 * + 55 * - - 19 AS col1
----
95095

query II rowsort
SELECT 40 col1, + 32 + + ( 29 ) + + - 58 AS col2
----
40
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4702
SELECT ( - ( - CAST( NULL AS SIGNED ) ) ) / - COUNT( * ) AS col2, - 22 AS col2
----
NULL
-22

skipif mysql # not compatible
query II rowsort label-4702
SELECT ( - ( - CAST ( NULL AS INTEGER ) ) ) / - COUNT ( * ) AS col2, - 22 AS col2
----
NULL
-22

query II rowsort
SELECT + 32, 22 * 28 col1
----
32
616

query I rowsort
SELECT 26 * 13 AS col1
----
338

query I rowsort
SELECT 57 * - 91 - - 16 * - 94 * - 73 * - 89
----
-9776675

query II rowsort
SELECT ALL - 71 col2, - 84
----
-71
-84

query I rowsort
SELECT - COALESCE ( - 7, 32, - 56, - 59 ) * + 2 * + 63 + - 22
----
860

query II rowsort
SELECT - 9 AS col2, + ( ( - 87 ) ) + - 91 AS col1
----
-9
-178

query II rowsort
SELECT NULLIF ( + 29, 93 ) + - 42 + + 93 * - 27 AS col1, 99 * 79 AS col0
----
-2524
7821

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4710
SELECT ALL COALESCE ( + 70, - + 33 + - - CAST( NULL AS SIGNED ), - 2 - CASE - - ( + ( - - 26 ) ) WHEN - + 15 THEN - - 65 WHEN + 87 * - 47 + 14 THEN NULL ELSE NULL END ) + NULLIF ( - - 38, + 52 ) + - 90 * - 61 / + - 24 * - 98 / - 49 * CAST( NULL AS SIGNED ) * ( - COUNT( * ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4710
SELECT ALL COALESCE ( + 70, - + 33 + - - CAST ( NULL AS INTEGER ), - 2 - CASE - - ( + ( - - 26 ) ) WHEN - + 15 THEN - - 65 WHEN + 87 * - 47 + 14 THEN NULL ELSE NULL END ) + NULLIF ( - - 38, + 52 ) + - 90 * - 61 / + - 24 * - 98 / - 49 * CAST ( NULL AS INTEGER ) * ( - COUNT ( * ) ) AS col0
----
NULL

query II rowsort
SELECT + 19 + - 11 col2, - 5 AS col1
----
8
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-4712
SELECT ALL + NULLIF ( + 76, - + 59 - - 58 * + 34 ) + COUNT( * )
----
77

skipif mysql # not compatible
query I rowsort label-4712
SELECT ALL + NULLIF ( + 76, - + 59 - - 58 * + 34 ) + COUNT ( * )
----
77

query I rowsort
SELECT DISTINCT + ( 61 ) * ( + 2 ) * + COALESCE ( 1, 73 ) AS col1
----
122

query II rowsort
SELECT ALL 90 AS col2, 37 * + ( - 40 )
----
90
-1480

onlyif mysql # aggregate syntax: 
query I rowsort label-4715
SELECT - 42 + MIN( ALL + - 17 )
----
-59

skipif mysql # not compatible
query I rowsort label-4715
SELECT - 42 + MIN ( ALL + - 17 )
----
-59

onlyif mysql # CAST syntax: DECIMAL type: DIV for integer division: 
query II rowsort label-4716
SELECT ALL 12 * 18 DIV CASE 42 WHEN + CAST( NULL AS DECIMAL ) * + 35 * 65 THEN NULL ELSE + 34 END DIV + 11 AS col1, 8 AS col0
----
0
8

skipif mysql # not compatible
query II rowsort label-4716
SELECT ALL 12 * 18 / CASE 42 WHEN + CAST ( NULL AS REAL ) * + 35 * 65 THEN NULL ELSE + 34 END / + 11 AS col1, 8 AS col0
----
0
8

onlyif mysql # aggregate syntax: 
query I rowsort label-4717
SELECT DISTINCT - NULLIF ( - + ( CASE WHEN NULL <= NULL THEN COUNT( * ) WHEN 2 + 60 <> - 66 THEN NULL END ), + 57 * - 27 + 71 + + + 4 + - 5 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4717
SELECT DISTINCT - NULLIF ( - + ( CASE WHEN NULL <= NULL THEN COUNT ( * ) WHEN 2 + 60 <> - 66 THEN NULL END ), + 57 * - 27 + 71 + + + 4 + - 5 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4718
SELECT ( MAX( - 97 ) ) AS col1
----
-97

skipif mysql # not compatible
query I rowsort label-4718
SELECT ( MAX ( - 97 ) ) AS col1
----
-97

onlyif mysql # DIV for integer division: 
query I rowsort label-4719
SELECT DISTINCT - 48 + - - 88 DIV + 11
----
-40

skipif mysql # not compatible
query I rowsort label-4719
SELECT DISTINCT - 48 + - - 88 / + 11
----
-40

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4720
SELECT ALL 39 + CAST( NULL AS SIGNED ) - - AVG ( + + CAST( - 13 AS DECIMAL ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-4720
SELECT ALL 39 + CAST ( NULL AS INTEGER ) - - AVG ( + + CAST ( - 13 AS REAL ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4721
SELECT - COUNT( * ) * - 84 + - COUNT( * ) AS col1
----
83

skipif mysql # not compatible
query I rowsort label-4721
SELECT - COUNT ( * ) * - 84 + - COUNT ( * ) AS col1
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-4722
SELECT - CASE + 43 WHEN + - 75 THEN NULL WHEN + ( + COUNT( * ) ) + ( 86 ) THEN + 56 END
----
NULL

skipif mysql # not compatible
query I rowsort label-4722
SELECT - CASE + 43 WHEN + - 75 THEN NULL WHEN + ( + COUNT ( * ) ) + ( 86 ) THEN + 56 END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4723
SELECT ALL + 29 - - NULLIF ( 14, 55 - + 12 + - + CAST( - 36 AS SIGNED ) - COUNT( * ) ) + - 37 * + 26
----
-919

skipif mysql # not compatible
query I rowsort label-4723
SELECT ALL + 29 - - NULLIF ( 14, 55 - + 12 + - + CAST ( - 36 AS INTEGER ) - COUNT ( * ) ) + - 37 * + 26
----
-919

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4724
SELECT ALL + ( CAST( NULL AS SIGNED ) ) - 55
----
NULL

skipif mysql # not compatible
query I rowsort label-4724
SELECT ALL + ( CAST ( NULL AS INTEGER ) ) - 55
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4725
SELECT DISTINCT - 60, - 87 / - CAST( NULL AS SIGNED ) AS col0
----
-60
NULL

skipif mysql # not compatible
query II rowsort label-4725
SELECT DISTINCT - 60, - 87 / - CAST ( NULL AS INTEGER ) AS col0
----
-60
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4726
SELECT - CASE - MIN( - + 32 ) WHEN - + 94 THEN + 81 * + - 36 + - - COUNT( 64 ) + 32 * + ( 12 ) - 9 + - 99 END - - ( + ( - CASE 28 WHEN 83 THEN - + 10 * + ( - 87 ) + - 65 + + 45 WHEN 39 THEN 93 ELSE + - 32 / COUNT( * ) END ) ) - 81 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4726
SELECT - CASE - MIN ( - + 32 ) WHEN - + 94 THEN + 81 * + - 36 + - - COUNT ( 64 ) + 32 * + ( 12 ) - 9 + - 99 END - - ( + ( - CASE 28 WHEN 83 THEN - + 10 * + ( - 87 ) + - 65 + + 45 WHEN 39 THEN 93 ELSE + - 32 / COUNT ( * ) END ) ) - 81 AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4727
SELECT - - 78 AS col2, + 92 DIV - + 71 + + + 28 * + - 37 + 59 + - - COUNT( * ) + + 26 AS col1
----
78
-951

skipif mysql # not compatible
query II rowsort label-4727
SELECT - - 78 AS col2, + 92 / - + 71 + + + 28 * + - 37 + 59 + - - COUNT ( * ) + + 26 AS col1
----
78
-951

onlyif mysql # aggregate syntax: 
query I rowsort label-4728
SELECT DISTINCT + 4 * + ( + COUNT( * ) ) AS col2
----
4

skipif mysql # not compatible
query I rowsort label-4728
SELECT DISTINCT + 4 * + ( + COUNT ( * ) ) AS col2
----
4

query I rowsort
SELECT - 85 + - + 10 * 12 * 77 AS col0
----
-9325

query I rowsort
SELECT - 24 * - ( + + 11 )
----
264

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4731
SELECT ALL + COALESCE ( 14, - COUNT( * ) * + - 23 - CAST( NULL AS SIGNED ) ) * + 68 col0
----
952

skipif mysql # not compatible
query I rowsort label-4731
SELECT ALL + COALESCE ( 14, - COUNT ( * ) * + - 23 - CAST ( NULL AS INTEGER ) ) * + 68 col0
----
952

query II rowsort
SELECT 88 + + + 34 AS col1, 0
----
122
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4733
SELECT CAST( NULL AS SIGNED ) * - + 24 / + 42 * + - 86 * 75 * 47 * + 34 + + 73 + - 9 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4733
SELECT CAST ( NULL AS INTEGER ) * - + 24 / + 42 * + - 86 * 75 * 47 * + 34 + + 73 + - 9 AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4734
SELECT 33 - + ( + 21 ) DIV - 14 - + 15 * - - 24 DIV - COUNT( * )
----
394

skipif mysql # not compatible
query I rowsort label-4734
SELECT 33 - + ( + 21 ) / - 14 - + 15 * - - 24 / - COUNT ( * )
----
394

onlyif mysql # aggregate syntax: 
query I rowsort label-4735
SELECT COUNT( * ) * + 61 * + 90 AS col0
----
5490

skipif mysql # not compatible
query I rowsort label-4735
SELECT COUNT ( * ) * + 61 * + 90 AS col0
----
5490

query I rowsort
SELECT ALL - ( + + 37 ) AS col1
----
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-4737
SELECT 16 + - 99 + - SUM( ALL 56 )
----
-139

skipif mysql # not compatible
query I rowsort label-4737
SELECT 16 + - 99 + - SUM ( ALL 56 )
----
-139

onlyif mysql # aggregate syntax: 
query I rowsort label-4738
SELECT ALL - MIN( - ( + 13 ) ) AS col2
----
13

skipif mysql # not compatible
query I rowsort label-4738
SELECT ALL - MIN ( - ( + 13 ) ) AS col2
----
13

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4739
SELECT 26 DIV + MAX( ALL - 57 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4739
SELECT 26 / + MAX ( ALL - 57 ) AS col0
----
0

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4740
SELECT DISTINCT - CAST( + 13 AS DECIMAL ) * - 99 * - 69 / - 92 + + CAST( NULL AS SIGNED ) - - - 43 / + 23 + - - 99
----
NULL

skipif mysql # not compatible
query I rowsort label-4740
SELECT DISTINCT - CAST ( + 13 AS REAL ) * - 99 * - 69 / - 92 + + CAST ( NULL AS INTEGER ) - - - 43 / + 23 + - - 99
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4741
SELECT - 71 DIV 74 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4741
SELECT - 71 / 74 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4742
SELECT DISTINCT + CASE + + 41 WHEN - + COUNT( * ) THEN NULL ELSE + 75 + + 96 * - 97 END
----
-9237

skipif mysql # not compatible
query I rowsort label-4742
SELECT DISTINCT + CASE + + 41 WHEN - + COUNT ( * ) THEN NULL ELSE + 75 + + 96 * - 97 END
----
-9237

onlyif mysql # aggregate syntax: 
query I rowsort label-4743
SELECT + MAX( DISTINCT + 5 ) + 15 AS col1
----
20

skipif mysql # not compatible
query I rowsort label-4743
SELECT + MAX ( DISTINCT + 5 ) + 15 AS col1
----
20

query I rowsort
SELECT ALL 76 * - 21 AS col0
----
-1596

query I rowsort
SELECT ALL 35 + 52 AS col1
----
87

query I rowsort
SELECT DISTINCT + 9 * + + 9
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-4747
SELECT - COUNT( * ) * + 94 AS col0
----
-94

skipif mysql # not compatible
query I rowsort label-4747
SELECT - COUNT ( * ) * + 94 AS col0
----
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-4748
SELECT ALL + COUNT( * ) * - - 86 AS col0
----
86

skipif mysql # not compatible
query I rowsort label-4748
SELECT ALL + COUNT ( * ) * - - 86 AS col0
----
86

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4749
SELECT ALL - + CAST( + 43 AS SIGNED ) + - 94 * 39 + - - ( 37 ) DIV + COUNT( * ) AS col0
----
-3672

skipif mysql # not compatible
query I rowsort label-4749
SELECT ALL - + CAST ( + 43 AS INTEGER ) + - 94 * 39 + - - ( 37 ) / + COUNT ( * ) AS col0
----
-3672

onlyif mysql # aggregate syntax: 
query II rowsort label-4750
SELECT ALL ( 39 ) AS col0, 78 * + COUNT( * ) + 34 * + 72
----
39
2526

skipif mysql # not compatible
query II rowsort label-4750
SELECT ALL ( 39 ) AS col0, 78 * + COUNT ( * ) + 34 * + 72
----
39
2526

onlyif mysql # aggregate syntax: 
query I rowsort label-4751
SELECT DISTINCT - 52 + + 9 + + COALESCE ( 56, + 1 ) + COUNT( * )
----
14

skipif mysql # not compatible
query I rowsort label-4751
SELECT DISTINCT - 52 + + 9 + + COALESCE ( 56, + 1 ) + COUNT ( * )
----
14

query I rowsort
SELECT - - COALESCE ( 3, + 86 + + 55 )
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4753
SELECT - - COUNT( * ) - - 52 + - 58 AS col2
----
-5

skipif mysql # not compatible
query I rowsort label-4753
SELECT - - COUNT ( * ) - - 52 + - 58 AS col2
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-4754
SELECT + + 38 * - 16 * - 15 * - 17 + - - 38 + + + COUNT( - + 59 ) * + 24
----
-154978

skipif mysql # not compatible
query I rowsort label-4754
SELECT + + 38 * - 16 * - 15 * - 17 + - - 38 + + + COUNT ( - + 59 ) * + 24
----
-154978

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4755
SELECT + + 33 * + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-4755
SELECT + + 33 * + CAST ( NULL AS REAL )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4756
SELECT ALL 89 - - 30 + - 32 * - 35 * - + 20 + 44 DIV + + 60 AS col0
----
-22281

skipif mysql # not compatible
query I rowsort label-4756
SELECT ALL 89 - - 30 + - 32 * - 35 * - + 20 + 44 / + + 60 AS col0
----
-22281

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4757
SELECT + 42 * + CASE 41 WHEN - 90 THEN - + 58 * + CAST( - 44 AS SIGNED ) WHEN COUNT( * ) * + 67 - 21 + + + COUNT( * ) * 25 THEN NULL ELSE + 42 END AS col2
----
1764

skipif mysql # not compatible
query I rowsort label-4757
SELECT + 42 * + CASE 41 WHEN - 90 THEN - + 58 * + CAST ( - 44 AS INTEGER ) WHEN COUNT ( * ) * + 67 - 21 + + + COUNT ( * ) * 25 THEN NULL ELSE + 42 END AS col2
----
1764

onlyif mysql # aggregate syntax: 
query II rowsort label-4758
SELECT ALL 12 * + - 83 + + 0 AS col2, NULLIF ( + 78, + COUNT( * ) )
----
-996
78

skipif mysql # not compatible
query II rowsort label-4758
SELECT ALL 12 * + - 83 + + 0 AS col2, NULLIF ( + 78, + COUNT ( * ) )
----
-996
78

onlyif mysql # aggregate syntax: 
query II rowsort label-4759
SELECT + 56 - - 92 + 59 * 43 + SUM( ALL 93 ) * - ( + NULLIF ( - + 26, + - COUNT( * ) ) ) - - + 51 - + - 94 * - ( - NULLIF ( - + 36, + + 48 ) ) + + + COUNT( * ) AS col1, - 77 * + 56 AS col2
----
1771
-4312

skipif mysql # not compatible
query II rowsort label-4759
SELECT + 56 - - 92 + 59 * 43 + SUM ( ALL 93 ) * - ( + NULLIF ( - + 26, + - COUNT ( * ) ) ) - - + 51 - + - 94 * - ( - NULLIF ( - + 36, + + 48 ) ) + + + COUNT ( * ) AS col1, - 77 * + 56 AS col2
----
1771
-4312

query I rowsort
SELECT DISTINCT 30 * 29
----
870

query II rowsort
SELECT DISTINCT CASE 25 WHEN + - 96 / - 84 THEN NULL ELSE + 15 END, 3 col1
----
15
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4762
SELECT + - 12 * MIN( ALL 60 ) * + + 76 AS col1
----
-54720

skipif mysql # not compatible
query I rowsort label-4762
SELECT + - 12 * MIN ( ALL 60 ) * + + 76 AS col1
----
-54720

query I rowsort
SELECT - - 6 * - 76
----
-456

onlyif mysql # aggregate syntax: 
query I rowsort label-4764
SELECT ALL - MIN( + 94 )
----
-94

skipif mysql # not compatible
query I rowsort label-4764
SELECT ALL - MIN ( + 94 )
----
-94

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4765
SELECT + + 37 * + 59 + + 87 DIV COUNT( * ) + + + 80 + - 39
----
2311

skipif mysql # not compatible
query I rowsort label-4765
SELECT + + 37 * + 59 + + 87 / COUNT ( * ) + + + 80 + - 39
----
2311

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4766
SELECT - + ( NULLIF ( + - 18, + - CAST( 14 AS SIGNED ) / 15 + 26 / - 80 * + ( + 68 ) ) ) col1
----
18

skipif mysql # not compatible
query I rowsort label-4766
SELECT - + ( NULLIF ( + - 18, + - CAST ( 14 AS INTEGER ) / 15 + 26 / - 80 * + ( + 68 ) ) ) col1
----
18

query I rowsort
SELECT + 37 + - 40
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-4768
SELECT - 43 DIV - 74 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4768
SELECT - 43 / - 74 AS col2
----
0

query I rowsort
SELECT + 55 * 14
----
770

query II rowsort
SELECT ALL 19, - 44 * 79 AS col2
----
19
-3476

query I rowsort
SELECT + 31 * - 95 * + + 77 AS col1
----
-226765

query I rowsort
SELECT ( 20 ) AS col2
----
20

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4773
SELECT ALL ( 89 ) * + - NULLIF ( + - 31, + CAST( NULL AS SIGNED ) ) + COUNT( * ) + + COUNT( DISTINCT - - 66 ) + 58
----
2819

skipif mysql # not compatible
query I rowsort label-4773
SELECT ALL ( 89 ) * + - NULLIF ( + - 31, + CAST ( NULL AS INTEGER ) ) + COUNT ( * ) + + COUNT ( DISTINCT - - 66 ) + 58
----
2819

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4774
SELECT - COUNT( * ) * 57 / - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4774
SELECT - COUNT ( * ) * 57 / - CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4775
SELECT ALL - CAST( NULL AS SIGNED ) * - - COUNT( ALL 89 ) / + 12 + - - 10 * + - 64 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4775
SELECT ALL - CAST ( NULL AS INTEGER ) * - - COUNT ( ALL 89 ) / + 12 + - - 10 * + - 64 col2
----
NULL

query I rowsort
SELECT + ( + + 8 )
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-4777
SELECT - MAX( + 16 ) - + 44 * - + 96
----
4208

skipif mysql # not compatible
query I rowsort label-4777
SELECT - MAX ( + 16 ) - + 44 * - + 96
----
4208

onlyif mysql # aggregate syntax: 
query I rowsort label-4778
SELECT + SUM( DISTINCT 27 ) AS col2
----
27

skipif mysql # not compatible
query I rowsort label-4778
SELECT + SUM ( DISTINCT 27 ) AS col2
----
27

query II rowsort
SELECT ( ( - COALESCE ( 61, - 76 * 76 ) ) ) AS col1, + 96 col2
----
-61
96

onlyif mysql # aggregate syntax: 
query II rowsort label-4780
SELECT ALL 48 * - 14 + COUNT( * ) AS col0, 89 AS col0
----
-671
89

skipif mysql # not compatible
query II rowsort label-4780
SELECT ALL 48 * - 14 + COUNT ( * ) AS col0, 89 AS col0
----
-671
89

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4781
SELECT - 35 * + COUNT( * ) DIV - - 55
----
0

skipif mysql # not compatible
query I rowsort label-4781
SELECT - 35 * + COUNT ( * ) / - - 55
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4782
SELECT DISTINCT + 35 * - 2 DIV COUNT( * ) + + 90
----
20

skipif mysql # not compatible
query I rowsort label-4782
SELECT DISTINCT + 35 * - 2 / COUNT ( * ) + + 90
----
20

query I rowsort
SELECT ALL + 34 * + - 17 AS col2
----
-578

onlyif mysql # aggregate syntax: 
query I rowsort label-4784
SELECT - - COUNT( * ) * 30
----
30

skipif mysql # not compatible
query I rowsort label-4784
SELECT - - COUNT ( * ) * 30
----
30

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4785
SELECT + COUNT( * ) * - - CASE - + CAST( - 43 AS DECIMAL ) WHEN MIN( ALL - 88 ) - + 15 * 63 THEN COALESCE ( - AVG ( DISTINCT - 55 ), + 91 * - 85 + NULLIF ( 29, + 21 ) * + 74 ) + - 2 WHEN ( - 11 ) THEN + ( + MIN( - CAST( + 42 AS SIGNED ) ) ) WHEN + + 64 THEN NULL END + 0
----
NULL

skipif mysql # not compatible
query I rowsort label-4785
SELECT + COUNT ( * ) * - - CASE - + CAST ( - 43 AS REAL ) WHEN MIN ( ALL - 88 ) - + 15 * 63 THEN COALESCE ( - AVG ( DISTINCT - 55 ), + 91 * - 85 + NULLIF ( 29, + 21 ) * + 74 ) + - 2 WHEN ( - 11 ) THEN + ( + MIN ( - CAST ( + 42 AS INTEGER ) ) ) WHEN + + 64 THEN NULL END + 0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4786
SELECT - 90 + + COUNT( * ) * - 94 AS col1
----
-184

skipif mysql # not compatible
query I rowsort label-4786
SELECT - 90 + + COUNT ( * ) * - 94 AS col1
----
-184

onlyif mysql # aggregate syntax: 
query I rowsort label-4787
SELECT CASE 79 WHEN - COUNT( * ) THEN NULL ELSE - + COUNT( DISTINCT - - 54 ) END * - + 51 - + + 37 AS col0
----
14

skipif mysql # not compatible
query I rowsort label-4787
SELECT CASE 79 WHEN - COUNT ( * ) THEN NULL ELSE - + COUNT ( DISTINCT - - 54 ) END * - + 51 - + + 37 AS col0
----
14

onlyif mysql # aggregate syntax: 
query II rowsort label-4788
SELECT - MIN( 85 ) * ( - 15 ) - 7 * - 17, 62 AS col0
----
1394
62

skipif mysql # not compatible
query II rowsort label-4788
SELECT - MIN ( 85 ) * ( - 15 ) - 7 * - 17, 62 AS col0
----
1394
62

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4789
SELECT - ( + 19 ) + - CAST( NULL AS SIGNED ) + - 48 * 27 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4789
SELECT - ( + 19 ) + - CAST ( NULL AS INTEGER ) + - 48 * 27 AS col1
----
NULL

query I rowsort
SELECT DISTINCT - + 94 * - - ( - 74 ) + + ( + + 38 ) AS col1
----
6994

onlyif mysql # aggregate syntax: 
query II rowsort label-4791
SELECT - 48 AS col1, COUNT( * ) col1
----
-48
1

skipif mysql # not compatible
query II rowsort label-4791
SELECT - 48 AS col1, COUNT ( * ) col1
----
-48
1

query I rowsort
SELECT ALL ( 49 )
----
49

query I rowsort
SELECT ALL + - 81 * - 70 AS col0
----
5670

onlyif mysql # aggregate syntax: 
query I rowsort label-4794
SELECT + - SUM( DISTINCT + 77 ) + + 92
----
15

skipif mysql # not compatible
query I rowsort label-4794
SELECT + - SUM ( DISTINCT + 77 ) + + 92
----
15

query I rowsort
SELECT ALL - - 68 - - 13 AS col0
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-4796
SELECT + MIN( ALL + 36 )
----
36

skipif mysql # not compatible
query I rowsort label-4796
SELECT + MIN ( ALL + 36 )
----
36

onlyif mysql # DIV for integer division: 
query II rowsort label-4797
SELECT - + 95, ( - 32 ) DIV + 68 AS col1
----
-95
0

skipif mysql # not compatible
query II rowsort label-4797
SELECT - + 95, ( - 32 ) / + 68 AS col1
----
-95
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4798
SELECT + 76 * + COUNT( * ) * + 72 + - 72
----
5400

skipif mysql # not compatible
query I rowsort label-4798
SELECT + 76 * + COUNT ( * ) * + 72 + - 72
----
5400

query I rowsort
SELECT - 15 + - 30 AS col0
----
-45

query II rowsort
SELECT - 82 col2, 4 AS col1
----
-82
4

onlyif mysql # aggregate syntax: 
query I rowsort label-4801
SELECT + 31 * COUNT( * ) col0
----
31

skipif mysql # not compatible
query I rowsort label-4801
SELECT + 31 * COUNT ( * ) col0
----
31

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4802
SELECT ALL - 98 + + + 96 * - 60 * - - 7 * + 30 * - - 70 * - - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4802
SELECT ALL - 98 + + + 96 * - 60 * - - 7 * + 30 * - - 70 * - - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4803
SELECT ALL COUNT( 73 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-4803
SELECT ALL COUNT ( 73 ) AS col0
----
1

query I rowsort
SELECT DISTINCT 72 + + ( + ( 96 ) ) AS col2
----
168

onlyif mysql # DIV for integer division: 
query I rowsort label-4805
SELECT ALL - 35 + 6 DIV 25
----
-35

skipif mysql # not compatible
query I rowsort label-4805
SELECT ALL - 35 + 6 / 25
----
-35

query I rowsort
SELECT 42 * + 47 * 36 col1
----
71064

query I rowsort
SELECT ALL 7 + + 55 + + 48 AS col2
----
110

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4808
SELECT CAST( + 90 AS SIGNED ) * + 38 - COUNT( * ), NULLIF ( + 94, NULLIF ( + SUM( 17 ), + COUNT( * ) + 2 ) + ( 8 ) ) AS col1
----
3419
94

skipif mysql # not compatible
query II rowsort label-4808
SELECT CAST ( + 90 AS INTEGER ) * + 38 - COUNT ( * ), NULLIF ( + 94, NULLIF ( + SUM ( 17 ), + COUNT ( * ) + 2 ) + ( 8 ) ) AS col1
----
3419
94

onlyif mysql # aggregate syntax: 
query I rowsort label-4809
SELECT ALL MAX( + 66 ) + - + COUNT( * )
----
65

skipif mysql # not compatible
query I rowsort label-4809
SELECT ALL MAX ( + 66 ) + - + COUNT ( * )
----
65

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4810
SELECT 67 - - 58 + - CAST( NULL AS SIGNED ) * 86 * 54
----
NULL

skipif mysql # not compatible
query I rowsort label-4810
SELECT 67 - - 58 + - CAST ( NULL AS INTEGER ) * 86 * 54
----
NULL

query I rowsort
SELECT ALL + 63 + + - 73 * - 53
----
3932

query I rowsort
SELECT DISTINCT - 83 col0
----
-83

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4813
SELECT ALL NULLIF ( + 25, 64 + - SUM( + ( - 90 ) ) ) + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4813
SELECT ALL NULLIF ( + 25, 64 + - SUM ( + ( - 90 ) ) ) + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4814
SELECT DISTINCT CASE AVG ( ALL - 24 ) WHEN - 0 + + ( - SUM( DISTINCT + + ( - 74 ) ) ) THEN NULL ELSE 1 * + 27 * COUNT( * ) DIV - - 73 END + 87 * - + ( - 89 ) AS col1
----
7743

skipif mysql # not compatible
query I rowsort label-4814
SELECT DISTINCT CASE AVG ( ALL - 24 ) WHEN - 0 + + ( - SUM ( DISTINCT + + ( - 74 ) ) ) THEN NULL ELSE 1 * + 27 * COUNT ( * ) / - - 73 END + 87 * - + ( - 89 ) AS col1
----
7743

onlyif mysql # aggregate syntax: 
query I rowsort label-4815
SELECT + COUNT( * ) * COUNT( * ) + + ( - 5 ) AS col1
----
-4

skipif mysql # not compatible
query I rowsort label-4815
SELECT + COUNT ( * ) * COUNT ( * ) + + ( - 5 ) AS col1
----
-4

query I rowsort
SELECT ALL 93 - + 36 + + ( 87 )
----
144

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4817
SELECT DISTINCT + CAST( + - 77 AS SIGNED ) * - - 87 AS col1
----
-6699

skipif mysql # not compatible
query I rowsort label-4817
SELECT DISTINCT + CAST ( + - 77 AS INTEGER ) * - - 87 AS col1
----
-6699

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4818
SELECT - CAST( NULL AS SIGNED ) + + + 44 + + - 65 * + - AVG ( 16 ) + - CAST( NULL AS SIGNED ) + - - MAX( + + 51 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4818
SELECT - CAST ( NULL AS INTEGER ) + + + 44 + + - 65 * + - AVG ( 16 ) + - CAST ( NULL AS INTEGER ) + - - MAX ( + + 51 ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4819
SELECT 69 * + 82 * - NULLIF ( COUNT( * ), + + 58 )
----
-5658

skipif mysql # not compatible
query I rowsort label-4819
SELECT 69 * + 82 * - NULLIF ( COUNT ( * ), + + 58 )
----
-5658

query I rowsort
SELECT DISTINCT - - 23 AS col2
----
23

query I rowsort
SELECT ALL - 11 - 62 + 67
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-4822
SELECT MIN( ALL + - 40 ) AS col1
----
-40

skipif mysql # not compatible
query I rowsort label-4822
SELECT MIN ( ALL + - 40 ) AS col1
----
-40

query I rowsort
SELECT 17 * + - 28 * + 24
----
-11424

query II rowsort
SELECT 76 * - + 93 AS col0, 62 AS col0
----
-7068
62

onlyif mysql # DIV for integer division: 
query I rowsort label-4825
SELECT 63 - + 27 DIV 26 + + + 7
----
69

skipif mysql # not compatible
query I rowsort label-4825
SELECT 63 - + 27 / 26 + + + 7
----
69

query I rowsort
SELECT ALL + + 16 * + 3 * + 33 - - 84 + 52 + + 63 AS col1
----
1783

query I rowsort
SELECT ALL - 26 * - - ( - 60 ) col0
----
1560

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4828
SELECT - 4 - + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4828
SELECT - 4 - + - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT + 13 * 78 * 64
----
64896

onlyif mysql # aggregate syntax: 
query I rowsort label-4830
SELECT DISTINCT - 82 * + - MAX( DISTINCT 0 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4830
SELECT DISTINCT - 82 * + - MAX ( DISTINCT 0 ) AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4831
SELECT ALL + COUNT( * ) + - + 42 AS col2
----
-41

skipif mysql # not compatible
query I rowsort label-4831
SELECT ALL + COUNT ( * ) + - + 42 AS col2
----
-41

query I rowsort
SELECT 45 * - ( + + 46 ) col2
----
-2070

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4833
SELECT ALL 24 col0, + CAST( NULL AS SIGNED ) AS col0
----
24
NULL

skipif mysql # not compatible
query II rowsort label-4833
SELECT ALL 24 col0, + CAST ( NULL AS INTEGER ) AS col0
----
24
NULL

onlyif mysql # aggregate syntax: 
query III rowsort label-4834
SELECT DISTINCT 76 AS col2, + 91 - - COUNT( * ), - COUNT( * ) * + 43 + + 76 AS col2
----
76
92
33

skipif mysql # not compatible
query III rowsort label-4834
SELECT DISTINCT 76 AS col2, + 91 - - COUNT ( * ), - COUNT ( * ) * + 43 + + 76 AS col2
----
76
92
33

query I rowsort
SELECT 22 * - - 18 AS col2
----
396

onlyif mysql # aggregate syntax: 
query I rowsort label-4836
SELECT DISTINCT COUNT( * ) + + + 23
----
24

skipif mysql # not compatible
query I rowsort label-4836
SELECT DISTINCT COUNT ( * ) + + + 23
----
24

query I rowsort
SELECT 35 + + 63 AS col2
----
98

query I rowsort
SELECT ALL 53 + + 67 col1
----
120

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4839
SELECT DISTINCT - CAST( + + 64 AS SIGNED ) - - 25 * - 22 * 6 * - MIN( ALL - - 67 ) col2
----
221036

skipif mysql # not compatible
query I rowsort label-4839
SELECT DISTINCT - CAST ( + + 64 AS INTEGER ) - - 25 * - 22 * 6 * - MIN ( ALL - - 67 ) col2
----
221036

onlyif mysql # aggregate syntax: 
query I rowsort label-4840
SELECT ALL 18 - - - MAX( DISTINCT + 36 ) AS col1
----
-18

skipif mysql # not compatible
query I rowsort label-4840
SELECT ALL 18 - - - MAX ( DISTINCT + 36 ) AS col1
----
-18

query I rowsort
SELECT 32 * - + 18 * + 37 - ( + COALESCE ( - 9, - - 95 + + 22 + 15 ) ) + - + 72 + - 12 AS col0
----
-21387

onlyif mysql # aggregate syntax: 
query I rowsort label-4842
SELECT + COUNT( ALL + 16 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-4842
SELECT + COUNT ( ALL + 16 ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-4843
SELECT ALL - 21 AS col1, - COUNT( * )
----
-21
-1

skipif mysql # not compatible
query II rowsort label-4843
SELECT ALL - 21 AS col1, - COUNT ( * )
----
-21
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4844
SELECT + CASE - - SUM( 36 ) WHEN + CAST( NULL AS SIGNED ) THEN NULL ELSE - + 94 END DIV 64 * + 2 - 31 * + + 6 col2
----
-188

skipif mysql # not compatible
query I rowsort label-4844
SELECT + CASE - - SUM ( 36 ) WHEN + CAST ( NULL AS INTEGER ) THEN NULL ELSE - + 94 END / 64 * + 2 - 31 * + + 6 col2
----
-188

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4845
SELECT CASE - 3 WHEN - CASE - 63 WHEN + - COUNT( * ) THEN - 40 END + 47 THEN NULL ELSE - 24 - 43 * + 0 END / - + CAST( NULL AS SIGNED ) - - 53 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4845
SELECT CASE - 3 WHEN - CASE - 63 WHEN + - COUNT ( * ) THEN - 40 END + 47 THEN NULL ELSE - 24 - 43 * + 0 END / - + CAST ( NULL AS INTEGER ) - - 53 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4846
SELECT + COUNT( * ) AS col2, - 40 AS col0
----
1
-40

skipif mysql # not compatible
query II rowsort label-4846
SELECT + COUNT ( * ) AS col2, - 40 AS col0
----
1
-40

query I rowsort
SELECT 83 - + + 85 + + 95
----
93

query I rowsort
SELECT + 29 * - 75 AS col2
----
-2175

onlyif mysql # aggregate syntax: 
query I rowsort label-4849
SELECT 42 * + 77 * + COUNT( * )
----
3234

skipif mysql # not compatible
query I rowsort label-4849
SELECT 42 * + 77 * + COUNT ( * )
----
3234

query I rowsort
SELECT ALL + 40 - ( - ( + 7 ) ) AS col1
----
47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4851
SELECT - ( 27 ) * + 50 - COUNT( DISTINCT - - 2 ) + AVG ( ALL - + 89 ) + - CASE - + 89 WHEN COUNT( * ) THEN + CAST( NULL AS SIGNED ) * - 99 - 84 END col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4851
SELECT - ( 27 ) * + 50 - COUNT ( DISTINCT - - 2 ) + AVG ( ALL - + 89 ) + - CASE - + 89 WHEN COUNT ( * ) THEN + CAST ( NULL AS INTEGER ) * - 99 - 84 END col0
----
NULL

query I rowsort
SELECT DISTINCT - + 56 * - + 11 * - 56
----
-34496

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4853
SELECT - - CAST( + - COUNT( * ) AS SIGNED ) * + - 74 * MAX( DISTINCT - 54 ) * + 99 - - - SUM( DISTINCT - 86 ) + 46 + - CAST( - 21 AS SIGNED ) + 97 AS col2
----
-395354

skipif mysql # not compatible
query I rowsort label-4853
SELECT - - CAST ( + - COUNT ( * ) AS INTEGER ) * + - 74 * MAX ( DISTINCT - 54 ) * + 99 - - - SUM ( DISTINCT - 86 ) + 46 + - CAST ( - 21 AS INTEGER ) + 97 AS col2
----
-395354

query I rowsort
SELECT ALL - - 78 AS col0
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-4855
SELECT COUNT( * ) * 23 + + COUNT( * ) + + 82 * - 85
----
-6946

skipif mysql # not compatible
query I rowsort label-4855
SELECT COUNT ( * ) * 23 + + COUNT ( * ) + + 82 * - 85
----
-6946

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4856
SELECT 99 - + ( + COALESCE ( + CAST( NULL AS SIGNED ), - + 80 * - + SUM( - 3 ) ) ) + - 83 AS col2
----
256

skipif mysql # not compatible
query I rowsort label-4856
SELECT 99 - + ( + COALESCE ( + CAST ( NULL AS INTEGER ), - + 80 * - + SUM ( - 3 ) ) ) + - 83 AS col2
----
256

onlyif mysql # aggregate syntax: 
query I rowsort label-4857
SELECT + 93 * COUNT( * ) + - - COUNT( ALL - 4 ) + - ( + ( - COUNT( * ) ) ) col0
----
95

skipif mysql # not compatible
query I rowsort label-4857
SELECT + 93 * COUNT ( * ) + - - COUNT ( ALL - 4 ) + - ( + ( - COUNT ( * ) ) ) col0
----
95

query I rowsort
SELECT ALL - - 14 + + - 73
----
-59

query I rowsort
SELECT - 97 * - 13 - - - 10 AS col2
----
1251

query I rowsort
SELECT DISTINCT 67 + 98 col1
----
165

query I rowsort
SELECT DISTINCT + NULLIF ( 14, + 56 )
----
14

query I rowsort
SELECT ALL + 94 + - ( - - 11 )
----
83

query I rowsort
SELECT DISTINCT - 36 + + 73 AS col0
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-4864
SELECT ALL + ( - COUNT( ( + 61 ) ) ) + - + 26 - ( COUNT( * ) ) * + + COUNT( ALL + 15 )
----
-28

skipif mysql # not compatible
query I rowsort label-4864
SELECT ALL + ( - COUNT ( ( + 61 ) ) ) + - + 26 - ( COUNT ( * ) ) * + + COUNT ( ALL + 15 )
----
-28

query I rowsort
SELECT ALL - 80 + + 42
----
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-4866
SELECT COUNT( * ) * MAX( - 94 ) + + 72 + + - COUNT( * ) AS col1
----
-23

skipif mysql # not compatible
query I rowsort label-4866
SELECT COUNT ( * ) * MAX ( - 94 ) + + 72 + + - COUNT ( * ) AS col1
----
-23

query II rowsort
SELECT ALL 14 AS col0, - ( 2 )
----
14
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-4868
SELECT - COUNT( - 14 ) + + COALESCE ( + COUNT( * ), + 65 - + - NULLIF ( 38, + 88 - 71 ), COALESCE ( + 81, - - COUNT( * ) ), - 19 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4868
SELECT - COUNT ( - 14 ) + + COALESCE ( + COUNT ( * ), + 65 - + - NULLIF ( 38, + 88 - 71 ), COALESCE ( + 81, - - COUNT ( * ) ), - 19 ) AS col2
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4869
SELECT - CASE + CAST( 58 AS DECIMAL ) WHEN - 53 + 71 THEN 5 END
----
NULL

skipif mysql # not compatible
query I rowsort label-4869
SELECT - CASE + CAST ( 58 AS REAL ) WHEN - 53 + 71 THEN 5 END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4870
SELECT 32 AS col2, - COUNT( * ) col1
----
32
-1

skipif mysql # not compatible
query II rowsort label-4870
SELECT 32 AS col2, - COUNT ( * ) col1
----
32
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4871
SELECT ALL + CAST( NULL AS SIGNED ) + 8 - + 84 + + - 87 * - 19 * - SUM( DISTINCT 11 ) + - 58 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4871
SELECT ALL + CAST ( NULL AS INTEGER ) + 8 - + 84 + + - 87 * - 19 * - SUM ( DISTINCT 11 ) + - 58 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4872
SELECT ALL - MIN( DISTINCT 28 ) + + + 41 AS col1
----
13

skipif mysql # not compatible
query I rowsort label-4872
SELECT ALL - MIN ( DISTINCT 28 ) + + + 41 AS col1
----
13

query II rowsort
SELECT 40, 65 AS col1
----
40
65

query I rowsort
SELECT - 66 + 57 * 97
----
5463

query I rowsort
SELECT - 25 * + ( 85 ) AS col2
----
-2125

query I rowsort
SELECT - NULLIF ( - 40, 41 * + 75 ) * 8 AS col1
----
320

query I rowsort
SELECT DISTINCT 30 col1
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-4878
SELECT ALL - 45 * - - COUNT( * )
----
-45

skipif mysql # not compatible
query I rowsort label-4878
SELECT ALL - 45 * - - COUNT ( * )
----
-45

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4879
SELECT DISTINCT + CAST( NULL AS SIGNED ) - + 12, - NULLIF ( - CAST( - + 93 AS SIGNED ), - COUNT( * ) ) AS col1
----
NULL
-93

skipif mysql # not compatible
query II rowsort label-4879
SELECT DISTINCT + CAST ( NULL AS INTEGER ) - + 12, - NULLIF ( - CAST ( - + 93 AS INTEGER ), - COUNT ( * ) ) AS col1
----
NULL
-93

onlyif mysql # aggregate syntax: 
query II rowsort label-4880
SELECT DISTINCT - MIN( ALL + - COALESCE ( 9, - 43 ) ) * - + 35 - + 87 + - 41 * + MIN( - + 1 ), + 59 + 77 * COALESCE ( - ( + 74 ), - - 22, - 33 ) AS col1
----
-361
-5639

skipif mysql # not compatible
query II rowsort label-4880
SELECT DISTINCT - MIN ( ALL + - COALESCE ( 9, - 43 ) ) * - + 35 - + 87 + - 41 * + MIN ( - + 1 ), + 59 + 77 * COALESCE ( - ( + 74 ), - - 22, - 33 ) AS col1
----
-361
-5639

onlyif mysql # aggregate syntax: 
query II rowsort label-4881
SELECT - ( + CASE - 8 WHEN - ( - - ( + 35 ) ) + COUNT( * ) THEN - 60 END ) + 4 + + MAX( DISTINCT - 63 ) + + COUNT( * ) AS col2, - 9 AS col1
----
NULL
-9

skipif mysql # not compatible
query II rowsort label-4881
SELECT - ( + CASE - 8 WHEN - ( - - ( + 35 ) ) + COUNT ( * ) THEN - 60 END ) + 4 + + MAX ( DISTINCT - 63 ) + + COUNT ( * ) AS col2, - 9 AS col1
----
NULL
-9

query I rowsort
SELECT DISTINCT + 0 - - - 92
----
-92

query I rowsort
SELECT ALL NULLIF ( - 78, - - 97 ) col2
----
-78

query II rowsort
SELECT 13, 50 AS col0
----
13
50

onlyif mysql # aggregate syntax: 
query I rowsort label-4885
SELECT - SUM( DISTINCT 7 ) + + 88 + - 81 - 12 * + 0 * MIN( - 18 )
----
0

skipif mysql # not compatible
query I rowsort label-4885
SELECT - SUM ( DISTINCT 7 ) + + 88 + - 81 - 12 * + 0 * MIN ( - 18 )
----
0

query II rowsort
SELECT + 1 AS col1, + 0 * 51 + + + 25
----
1
25

query I rowsort
SELECT ( - 75 ) AS col2
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-4888
SELECT - COUNT( * ) * + + 30
----
-30

skipif mysql # not compatible
query I rowsort label-4888
SELECT - COUNT ( * ) * + + 30
----
-30

query I rowsort
SELECT + 58 - + - 69
----
127

query I rowsort
SELECT DISTINCT 64 * 64 AS col0
----
4096

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4891
SELECT ALL + + 49 DIV COUNT( * ) AS col2
----
49

skipif mysql # not compatible
query I rowsort label-4891
SELECT ALL + + 49 / COUNT ( * ) AS col2
----
49

query II rowsort
SELECT DISTINCT + + 44, - 56 AS col1
----
44
-56

query I rowsort
SELECT DISTINCT + 83 * 25
----
2075

query I rowsort
SELECT ALL + CASE + 24 WHEN - - 75 * - 20 THEN NULL ELSE - 84 / CASE 40 WHEN 32 THEN + - 94 + + 95 END + + 91 + + 12 - 3 END AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4895
SELECT ALL CAST( - + 43 AS SIGNED ) * + 65 * + 8
----
-22360

skipif mysql # not compatible
query I rowsort label-4895
SELECT ALL CAST ( - + 43 AS INTEGER ) * + 65 * + 8
----
-22360

query I rowsort
SELECT DISTINCT + - 85
----
-85

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4897
SELECT + - SUM( ALL + 3 ) * + ( - CAST( NULL AS SIGNED ) ) * - 79 / AVG ( ALL - - 61 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4897
SELECT + - SUM ( ALL + 3 ) * + ( - CAST ( NULL AS INTEGER ) ) * - 79 / AVG ( ALL - - 61 )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4898
SELECT ALL 12 DIV - + 32
----
0

skipif mysql # not compatible
query I rowsort label-4898
SELECT ALL 12 / - + 32
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4899
SELECT DISTINCT COUNT( * ) * 30 - + 36 + - COALESCE ( + + COUNT( * ), + + 8 DIV COUNT( * ), 88 ) AS col0
----
-7

skipif mysql # not compatible
query I rowsort label-4899
SELECT DISTINCT COUNT ( * ) * 30 - + 36 + - COALESCE ( + + COUNT ( * ), + + 8 / COUNT ( * ), 88 ) AS col0
----
-7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4900
SELECT + 0 DIV COUNT( * ) + + 36
----
36

skipif mysql # not compatible
query I rowsort label-4900
SELECT + 0 / COUNT ( * ) + + 36
----
36

query I rowsort
SELECT ALL + - 29 * + + 76 + + 49 + + 63
----
-2092

query I rowsort
SELECT DISTINCT + + 62 * + - 9 + - 15
----
-573

onlyif mysql # aggregate syntax: 
query I rowsort label-4903
SELECT ALL + COUNT( * ) * + 76 + + - 30 + + - 91 AS col2
----
-45

skipif mysql # not compatible
query I rowsort label-4903
SELECT ALL + COUNT ( * ) * + 76 + + - 30 + + - 91 AS col2
----
-45

query II rowsort
SELECT - - 16, 66 AS col0
----
16
66

onlyif mysql # aggregate syntax: 
query II rowsort label-4905
SELECT - - COUNT( * ) AS col2, + COUNT( * ) - - 10
----
1
11

skipif mysql # not compatible
query II rowsort label-4905
SELECT - - COUNT ( * ) AS col2, + COUNT ( * ) - - 10
----
1
11

query II rowsort
SELECT + + 21 + - 63 AS col2, 58
----
-42
58

onlyif mysql # aggregate syntax: 
query I rowsort label-4907
SELECT DISTINCT - 53 * - 20 + 24 * 59 + CASE + - MAX( ALL - + 51 ) WHEN + - ( - - 18 ) / + 7 * NULLIF ( 66, + 42 * 77 ) + + ( - + ( + COUNT( * ) ) ) THEN 6 WHEN + 58 THEN + CASE COUNT( * ) WHEN - 25 / - 99 THEN 1 ELSE 29 END END
----
NULL

skipif mysql # not compatible
query I rowsort label-4907
SELECT DISTINCT - 53 * - 20 + 24 * 59 + CASE + - MAX ( ALL - + 51 ) WHEN + - ( - - 18 ) / + 7 * NULLIF ( 66, + 42 * 77 ) + + ( - + ( + COUNT ( * ) ) ) THEN 6 WHEN + 58 THEN + CASE COUNT ( * ) WHEN - 25 / - 99 THEN 1 ELSE 29 END END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4908
SELECT - COUNT( * ) * + COUNT( * ) * COUNT( * ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-4908
SELECT - COUNT ( * ) * + COUNT ( * ) * COUNT ( * ) AS col2
----
-1

query I rowsort
SELECT + 49 - + 99 - 83 AS col1
----
-133

onlyif mysql # aggregate syntax: 
query I rowsort label-4910
SELECT SUM( + 72 )
----
72

skipif mysql # not compatible
query I rowsort label-4910
SELECT SUM ( + 72 )
----
72

query I rowsort
SELECT + 25 - - 59 * - 66 AS col2
----
-3869

query I rowsort
SELECT ALL ( - - 60 ) - - 95 - 25
----
130

onlyif mysql # aggregate syntax: 
query II rowsort label-4913
SELECT ALL CASE - COUNT( * ) WHEN - 83 / - COUNT( * ) + - ( + MIN( + 75 ) ) + 1 * - 60 THEN + 13 - - 22 * + + 51 * - 44 + ( - + COUNT( * ) ) END, 60 AS col1
----
NULL
60

skipif mysql # not compatible
query II rowsort label-4913
SELECT ALL CASE - COUNT ( * ) WHEN - 83 / - COUNT ( * ) + - ( + MIN ( + 75 ) ) + 1 * - 60 THEN + 13 - - 22 * + + 51 * - 44 + ( - + COUNT ( * ) ) END, 60 AS col1
----
NULL
60

onlyif mysql # aggregate syntax: 
query II rowsort label-4914
SELECT DISTINCT COUNT( + 70 ) AS col2, + COUNT( * ) AS col1
----
1
1

skipif mysql # not compatible
query II rowsort label-4914
SELECT DISTINCT COUNT ( + 70 ) AS col2, + COUNT ( * ) AS col1
----
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4915
SELECT - ( + - 62 ) - + MAX( ALL + 30 ) AS col2
----
32

skipif mysql # not compatible
query I rowsort label-4915
SELECT - ( + - 62 ) - + MAX ( ALL + 30 ) AS col2
----
32

onlyif mysql # aggregate syntax: 
query II rowsort label-4916
SELECT + SUM( ALL + NULLIF ( - - 9, 10 ) ) * 35 * - MIN( DISTINCT 86 ) AS col1, 4 col2
----
-27090
4

skipif mysql # not compatible
query II rowsort label-4916
SELECT + SUM ( ALL + NULLIF ( - - 9, 10 ) ) * 35 * - MIN ( DISTINCT 86 ) AS col1, 4 col2
----
-27090
4

query I rowsort
SELECT ALL + 87 * + + ( 26 ) col0
----
2262

onlyif mysql # DIV for integer division: 
query I rowsort label-4918
SELECT + ( 89 ) DIV + 94 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4918
SELECT + ( 89 ) / + 94 AS col2
----
0

query II rowsort
SELECT - 41 * - 4 AS col0, 48 * 95
----
164
4560

query II rowsort
SELECT - 58 + 33 + + 1 col2, + 32
----
-24
32

query I rowsort
SELECT DISTINCT - 69 * + 94 * + 34 col2
----
-220524

onlyif mysql # aggregate syntax: 
query II rowsort label-4922
SELECT ALL + 14 * 75 col2, - COALESCE ( - 12, + + 89 * - 61 * + 69 - + + 70 + - 69 + + COUNT( * ), - ( - + 46 ) * + - ( + 16 ) * + - 31 * + MAX( + ( - 70 ) ) + 37 - + 33 ) col2
----
1050
12

skipif mysql # not compatible
query II rowsort label-4922
SELECT ALL + 14 * 75 col2, - COALESCE ( - 12, + + 89 * - 61 * + 69 - + + 70 + - 69 + + COUNT ( * ), - ( - + 46 ) * + - ( + 16 ) * + - 31 * + MAX ( + ( - 70 ) ) + 37 - + 33 ) col2
----
1050
12

onlyif mysql # DIV for integer division: 
query I rowsort label-4923
SELECT - 55 DIV - 83 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4923
SELECT - 55 / - 83 AS col0
----
0

query I rowsort
SELECT DISTINCT + + 47 * + 55
----
2585

query I rowsort
SELECT DISTINCT - + 85 * + 83 AS col1
----
-7055

query II rowsort
SELECT ALL + - 22 * - 7 * + - 42, 4 AS col0
----
-6468
4

onlyif mysql # aggregate syntax: 
query I rowsort label-4927
SELECT MAX( DISTINCT + - 97 )
----
-97

skipif mysql # not compatible
query I rowsort label-4927
SELECT MAX ( DISTINCT + - 97 )
----
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-4928
SELECT + - MAX( ALL - 30 )
----
30

skipif mysql # not compatible
query I rowsort label-4928
SELECT + - MAX ( ALL - 30 )
----
30

query I rowsort
SELECT - 1 * 24 + + - 86 - - + 19
----
-91

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4930
SELECT + - 93 * 46 + - 31 - - SUM( DISTINCT - 88 ) DIV - 49 AS col0
----
-4308

skipif mysql # not compatible
query I rowsort label-4930
SELECT + - 93 * 46 + - 31 - - SUM ( DISTINCT - 88 ) / - 49 AS col0
----
-4308

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4931
SELECT + - 28 DIV + 74 * - NULLIF ( - 94, + 39 * + + CAST( - 53 AS SIGNED ) ) * - 95 - - 6 AS col1
----
6

skipif mysql # not compatible
query I rowsort label-4931
SELECT + - 28 / + 74 * - NULLIF ( - 94, + 39 * + + CAST ( - 53 AS INTEGER ) ) * - 95 - - 6 AS col1
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-4932
SELECT - 57 + ( - - COUNT( - 41 ) ) + - ( 96 ) AS col0
----
-152

skipif mysql # not compatible
query I rowsort label-4932
SELECT - 57 + ( - - COUNT ( - 41 ) ) + - ( 96 ) AS col0
----
-152

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4933
SELECT ALL 1 * COALESCE ( - - 40, 17 * - 54 ) + 33 + + 92 + - + CAST( + ( + CAST( NULL AS SIGNED ) ) AS SIGNED ) + - - NULLIF ( + CASE + - COUNT( * ) WHEN - - 90 THEN - 44 / COUNT( * ) * 6 END, ( + - 82 ) ) + + 27 - + + 42 + 53 + 3 + - - 91 * + 11 / + 54 + + - 44 * + - 98 + + COUNT( - 17 ) + 9 / 99 * 18 * + + ( - 11 ) * + - CASE + 38 WHEN - - 70 * + 12 / + 45 / - ( - ( 15 ) ) + + 37 + - - 18 + - - 13 - - ( CAST( NULL AS DECIMAL ) ) + 78 * 34 THEN ( + 78 ) END - - 88 + - AVG ( 3 ) * 30
----
NULL

skipif mysql # not compatible
query I rowsort label-4933
SELECT ALL 1 * COALESCE ( - - 40, 17 * - 54 ) + 33 + + 92 + - + CAST ( + ( + CAST ( NULL AS INTEGER ) ) AS INTEGER ) + - - NULLIF ( + CASE + - COUNT ( * ) WHEN - - 90 THEN - 44 / COUNT ( * ) * 6 END, ( + - 82 ) ) + + 27 - + + 42 + 53 + 3 + - - 91 * + 11 / + 54 + + - 44 * + - 98 + + COUNT ( - 17 ) + 9 / 99 * 18 * + + ( - 11 ) * + - CASE + 38 WHEN - - 70 * + 12 / + 45 / - ( - ( 15 ) ) + + 37 + - - 18 + - - 13 - - ( CAST ( NULL AS REAL ) ) + 78 * 34 THEN ( + 78 ) END - - 88 + - AVG ( 3 ) * 30
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4934
SELECT ALL 30 DIV + + 93 + + 55 + + + 55 * - 3 * + COUNT( * ) + - 19 * CAST( 80 AS SIGNED ) + + + 97 AS col1
----
-1533

skipif mysql # not compatible
query I rowsort label-4934
SELECT ALL 30 / + + 93 + + 55 + + + 55 * - 3 * + COUNT ( * ) + - 19 * CAST ( 80 AS INTEGER ) + + + 97 AS col1
----
-1533

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4935
SELECT DISTINCT - 28 / CAST( NULL AS SIGNED ) + 19
----
NULL

skipif mysql # not compatible
query I rowsort label-4935
SELECT DISTINCT - 28 / CAST ( NULL AS INTEGER ) + 19
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4936
SELECT ALL - 92 / - ( - CAST( NULL AS SIGNED ) ) * - + 86 + - + 5 + - NULLIF ( + + ( 30 ), - ( - 26 ) ) + - COUNT( * ) + 33
----
NULL

skipif mysql # not compatible
query I rowsort label-4936
SELECT ALL - 92 / - ( - CAST ( NULL AS INTEGER ) ) * - + 86 + - + 5 + - NULLIF ( + + ( 30 ), - ( - 26 ) ) + - COUNT ( * ) + 33
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4937
SELECT COUNT( * ) * + 13 - + COUNT( * )
----
12

skipif mysql # not compatible
query I rowsort label-4937
SELECT COUNT ( * ) * + 13 - + COUNT ( * )
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-4938
SELECT ALL - SUM( - - 18 )
----
-18

skipif mysql # not compatible
query I rowsort label-4938
SELECT ALL - SUM ( - - 18 )
----
-18

query I rowsort
SELECT DISTINCT - + 81
----
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-4940
SELECT - + ( + COUNT( * ) ) * + 5 + - 46 AS col0
----
-51

skipif mysql # not compatible
query I rowsort label-4940
SELECT - + ( + COUNT ( * ) ) * + 5 + - 46 AS col0
----
-51

query I rowsort
SELECT ALL - ( ( - 75 ) ) + + + 47 AS col1
----
122

query I rowsort
SELECT + - 18 AS col0
----
-18

onlyif mysql # aggregate syntax: 
query II rowsort label-4943
SELECT + CASE - - 12 WHEN + COUNT( * ) THEN - - ( - 96 ) END AS col0, - 14 AS col2
----
NULL
-14

skipif mysql # not compatible
query II rowsort label-4943
SELECT + CASE - - 12 WHEN + COUNT ( * ) THEN - - ( - 96 ) END AS col0, - 14 AS col2
----
NULL
-14

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4944
SELECT ALL + 12 - CAST( ( - 94 ) AS SIGNED )
----
106

skipif mysql # not compatible
query I rowsort label-4944
SELECT ALL + 12 - CAST ( ( - 94 ) AS INTEGER )
----
106

query I rowsort
SELECT 81 * 55 + + 28
----
4483

query I rowsort
SELECT 61 * - 0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4947
SELECT COUNT( * ) + + 35 AS col2
----
36

skipif mysql # not compatible
query I rowsort label-4947
SELECT COUNT ( * ) + + 35 AS col2
----
36

query II rowsort
SELECT DISTINCT 69 AS col2, + 64
----
69
64

onlyif mysql # aggregate syntax: 
query II rowsort label-4949
SELECT ALL - 17 - - 91 + SUM( DISTINCT 63 ) AS col0, 24
----
137
24

skipif mysql # not compatible
query II rowsort label-4949
SELECT ALL - 17 - - 91 + SUM ( DISTINCT 63 ) AS col0, 24
----
137
24

query I rowsort
SELECT 51 * 12 AS col0
----
612

onlyif mysql # aggregate syntax: 
query I rowsort label-4951
SELECT DISTINCT 31 * + ( - MAX( ALL 63 ) ) AS col2
----
-1953

skipif mysql # not compatible
query I rowsort label-4951
SELECT DISTINCT 31 * + ( - MAX ( ALL 63 ) ) AS col2
----
-1953

query II rowsort
SELECT ALL 78 AS col2, NULLIF ( + 69, 89 * - 27 )
----
78
69

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4953
SELECT 70 + - + ( - CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-4953
SELECT 70 + - + ( - CAST ( NULL AS INTEGER ) )
----
NULL

query I rowsort
SELECT ALL 53 * 73
----
3869

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4955
SELECT CAST( + + 30 AS DECIMAL ) * CAST( NULL AS SIGNED ) * - + COUNT( * ) + 38 + + 10
----
NULL

skipif mysql # not compatible
query I rowsort label-4955
SELECT CAST ( + + 30 AS REAL ) * CAST ( NULL AS INTEGER ) * - + COUNT ( * ) + 38 + + 10
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4956
SELECT ( 87 ) + - ( + COUNT( * ) )
----
86

skipif mysql # not compatible
query I rowsort label-4956
SELECT ( 87 ) + - ( + COUNT ( * ) )
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-4957
SELECT MIN( + 28 ) + - SUM( + - 96 ) + - 51 AS col0
----
73

skipif mysql # not compatible
query I rowsort label-4957
SELECT MIN ( + 28 ) + - SUM ( + - 96 ) + - 51 AS col0
----
73

query I rowsort
SELECT 76 + - - 92
----
168

query I rowsort
SELECT DISTINCT 52 * 88 AS col1
----
4576

query I rowsort
SELECT ALL + 10 + + - 80 AS col2
----
-70

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4961
SELECT ALL 10, + 15 DIV COUNT( * ) AS col0
----
10
15

skipif mysql # not compatible
query II rowsort label-4961
SELECT ALL 10, + 15 / COUNT ( * ) AS col0
----
10
15

onlyif mysql # aggregate syntax: 
query I rowsort label-4962
SELECT COUNT( DISTINCT - 87 )
----
1

skipif mysql # not compatible
query I rowsort label-4962
SELECT COUNT ( DISTINCT - 87 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4963
SELECT ALL 45 + + 45 * + MAX( DISTINCT + - 96 ) AS col2
----
-4275

skipif mysql # not compatible
query I rowsort label-4963
SELECT ALL 45 + + 45 * + MAX ( DISTINCT + - 96 ) AS col2
----
-4275

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-4964
SELECT - MAX( DISTINCT - CAST( NULL AS DECIMAL ) ) / - - 69 AS col2, + 91 AS col1
----
NULL
91

skipif mysql # not compatible
query II rowsort label-4964
SELECT - MAX ( DISTINCT - CAST ( NULL AS REAL ) ) / - - 69 AS col2, + 91 AS col1
----
NULL
91

onlyif mysql # aggregate syntax: 
query II rowsort label-4965
SELECT 12 * + + COUNT( * ) + COALESCE ( - - 37, 43 ) + + NULLIF ( - + ( 19 ), MAX( DISTINCT + + 66 ) + + + 25 ) * - + 15 + + COUNT( * ) AS col1, + ( COUNT( * ) ) col1
----
335
1

skipif mysql # not compatible
query II rowsort label-4965
SELECT 12 * + + COUNT ( * ) + COALESCE ( - - 37, 43 ) + + NULLIF ( - + ( 19 ), MAX ( DISTINCT + + 66 ) + + + 25 ) * - + 15 + + COUNT ( * ) AS col1, + ( COUNT ( * ) ) col1
----
335
1

query I rowsort
SELECT + 97 - + 36
----
61

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4967
SELECT DISTINCT - 1 * + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4967
SELECT DISTINCT - 1 * + CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4968
SELECT ALL + COUNT( * ) + - 14
----
-13

skipif mysql # not compatible
query I rowsort label-4968
SELECT ALL + COUNT ( * ) + - 14
----
-13

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4969
SELECT - - COUNT( DISTINCT 66 ) DIV - - 99 + MIN( 25 ) + + 22
----
47

skipif mysql # not compatible
query I rowsort label-4969
SELECT - - COUNT ( DISTINCT 66 ) / - - 99 + MIN ( 25 ) + + 22
----
47

query I rowsort
SELECT ALL + 31 + - 66 + + 46 + - 91 + 38 * + 90
----
3340

query II rowsort
SELECT ALL - + ( 45 ) * 23, 52 AS col2
----
-1035
52

onlyif mysql # DIV for integer division: 
query I rowsort label-4972
SELECT + 55 DIV + - 77 + - 22 + + 33 AS col1
----
11

skipif mysql # not compatible
query I rowsort label-4972
SELECT + 55 / + - 77 + - 22 + + 33 AS col1
----
11

query I rowsort
SELECT ALL - 56 + - 34
----
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-4974
SELECT ALL - 51 + + COUNT( * ) * + - 44 - 94 - + 52 - 83 + 46 * - 60 + - + 40 * - + COUNT( * )
----
-3044

skipif mysql # not compatible
query I rowsort label-4974
SELECT ALL - 51 + + COUNT ( * ) * + - 44 - 94 - + 52 - 83 + 46 * - 60 + - + 40 * - + COUNT ( * )
----
-3044

onlyif mysql # aggregate syntax: 
query II rowsort label-4975
SELECT + 64 * 24 + - + 71 * + COUNT( * ), + 24 + - 42 col2
----
1465
-18

skipif mysql # not compatible
query II rowsort label-4975
SELECT + 64 * 24 + - + 71 * + COUNT ( * ), + 24 + - 42 col2
----
1465
-18

query I rowsort
SELECT DISTINCT 34 * - 91 AS col1
----
-3094

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query III rowsort label-4977
SELECT CAST( NULL AS DECIMAL ) + COUNT( * ) / - 1 AS col1, + 22, + COALESCE ( + 83, - 49 * + 2 ) AS col2
----
NULL
22
83

skipif mysql # not compatible
query III rowsort label-4977
SELECT CAST ( NULL AS REAL ) + COUNT ( * ) / - 1 AS col1, + 22, + COALESCE ( + 83, - 49 * + 2 ) AS col2
----
NULL
22
83

onlyif mysql # aggregate syntax: 
query II rowsort label-4978
SELECT ALL + + MAX( - 32 ) * + 99 col1, + NULLIF ( - + SUM( - 83 ), + 70 )
----
-3168
83

skipif mysql # not compatible
query II rowsort label-4978
SELECT ALL + + MAX ( - 32 ) * + 99 col1, + NULLIF ( - + SUM ( - 83 ), + 70 )
----
-3168
83

query I rowsort
SELECT ALL + - 2 - - - 96 AS col0
----
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-4980
SELECT 86 * MIN( ALL + 48 ) AS col2
----
4128

skipif mysql # not compatible
query I rowsort label-4980
SELECT 86 * MIN ( ALL + 48 ) AS col2
----
4128

onlyif mysql # aggregate syntax: 
query I rowsort label-4981
SELECT 45 + COUNT( * )
----
46

skipif mysql # not compatible
query I rowsort label-4981
SELECT 45 + COUNT ( * )
----
46

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4982
SELECT DISTINCT - - CAST( + - 96 AS SIGNED ) - ( + 5 ) * - - 62
----
-406

skipif mysql # not compatible
query I rowsort label-4982
SELECT DISTINCT - - CAST ( + - 96 AS INTEGER ) - ( + 5 ) * - - 62
----
-406

query I rowsort
SELECT 41 * - ( 46 ) AS col2
----
-1886

query I rowsort
SELECT DISTINCT - 4 * + ( 54 ) AS col0
----
-216

query I rowsort
SELECT ALL 90 * + 80 AS col1
----
7200

query I rowsort
SELECT 60 * - - 47 col2
----
2820

onlyif mysql # aggregate syntax: 
query II rowsort label-4987
SELECT DISTINCT - ( + 24 ) AS col2, - COUNT( * ) AS col0
----
-24
-1

skipif mysql # not compatible
query II rowsort label-4987
SELECT DISTINCT - ( + 24 ) AS col2, - COUNT ( * ) AS col0
----
-24
-1

query I rowsort
SELECT DISTINCT - 4 * - 15 * - + 61
----
-3660

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4989
SELECT ALL - 86 * CAST( NULL AS DECIMAL ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4989
SELECT ALL - 86 * CAST ( NULL AS REAL ) AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4990
SELECT 50 / + CAST( NULL AS SIGNED ) * - 51
----
NULL

skipif mysql # not compatible
query I rowsort label-4990
SELECT 50 / + CAST ( NULL AS INTEGER ) * - 51
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4991
SELECT MAX( ALL 32 ) - + - 64 AS col0
----
96

skipif mysql # not compatible
query I rowsort label-4991
SELECT MAX ( ALL 32 ) - + - 64 AS col0
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-4992
SELECT ( + - COUNT( * ) ) * - COUNT( * ) + + - 27 AS col1
----
-26

skipif mysql # not compatible
query I rowsort label-4992
SELECT ( + - COUNT ( * ) ) * - COUNT ( * ) + + - 27 AS col1
----
-26

query I rowsort
SELECT DISTINCT + 41 * + - 43 col1
----
-1763

onlyif mysql # aggregate syntax: 
query I rowsort label-4994
SELECT ALL - 87 * + - CASE - COUNT( 92 ) WHEN 51 THEN 80 + 31 WHEN 73 / 57 THEN - ( - 2 ) ELSE NULL END * + ( 56 ) - + + 73
----
NULL

skipif mysql # not compatible
query I rowsort label-4994
SELECT ALL - 87 * + - CASE - COUNT ( 92 ) WHEN 51 THEN 80 + 31 WHEN 73 / 57 THEN - ( - 2 ) ELSE NULL END * + ( 56 ) - + + 73
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4995
SELECT 76 DIV 35 AS col2
----
2

skipif mysql # not compatible
query I rowsort label-4995
SELECT 76 / 35 AS col2
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-4996
SELECT ALL MAX( DISTINCT - 44 ) + 47 AS col2
----
3

skipif mysql # not compatible
query I rowsort label-4996
SELECT ALL MAX ( DISTINCT - 44 ) + 47 AS col2
----
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4997
SELECT ALL 88 DIV - SUM( + + 60 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-4997
SELECT ALL 88 / - SUM ( + + 60 ) AS col2
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4998
SELECT DISTINCT 5 + - COALESCE ( - - COALESCE ( 14, - 49 ), - 77 + - MAX( - 33 ) - - + CAST( + 65 AS SIGNED ) * - + 45 * + + 66 * + 36 )
----
-9

skipif mysql # not compatible
query I rowsort label-4998
SELECT DISTINCT 5 + - COALESCE ( - - COALESCE ( 14, - 49 ), - 77 + - MAX ( - 33 ) - - + CAST ( + 65 AS INTEGER ) * - + 45 * + + 66 * + 36 )
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-4999
SELECT MIN( + + 96 ) * - 39 AS col0
----
-3744

skipif mysql # not compatible
query I rowsort label-4999
SELECT MIN ( + + 96 ) * - 39 AS col0
----
-3744

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5000
SELECT ALL 29 + - - 91 + + CAST( NULL AS DECIMAL ) + 32 * - 18 / CAST( NULL AS DECIMAL ) - + 50 * + - 36 * 77 / + COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5000
SELECT ALL 29 + - - 91 + + CAST ( NULL AS REAL ) + 32 * - 18 / CAST ( NULL AS REAL ) - + 50 * + - 36 * 77 / + COUNT ( * ) AS col1
----
NULL

query I rowsort
SELECT ALL 33 + - - 78 * - - 74 AS col1
----
5805

onlyif mysql # aggregate syntax: 
query I rowsort label-5002
SELECT DISTINCT - 4 * - COUNT( * ) * + 58 AS col2
----
232

skipif mysql # not compatible
query I rowsort label-5002
SELECT DISTINCT - 4 * - COUNT ( * ) * + 58 AS col2
----
232

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5003
SELECT DISTINCT - CAST( - 83 AS SIGNED ), 10 - - 56 AS col0
----
83
66

skipif mysql # not compatible
query II rowsort label-5003
SELECT DISTINCT - CAST ( - 83 AS INTEGER ), 10 - - 56 AS col0
----
83
66

query I rowsort
SELECT ALL + 71 * + - 84
----
-5964

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5005
SELECT 53 * + SUM( CAST( - + ( - - COALESCE ( - 86, + + 87, + + 28 / - + 44 ) ) AS SIGNED ) ) AS col1
----
4558

skipif mysql # not compatible
query I rowsort label-5005
SELECT 53 * + SUM ( CAST ( - + ( - - COALESCE ( - 86, + + 87, + + 28 / - + 44 ) ) AS INTEGER ) ) AS col1
----
4558

onlyif mysql # aggregate syntax: 
query II rowsort label-5006
SELECT - COUNT( 41 ) AS col2, 83
----
-1
83

skipif mysql # not compatible
query II rowsort label-5006
SELECT - COUNT ( 41 ) AS col2, 83
----
-1
83

query II rowsort
SELECT ALL ( + - 57 ) + 68 + + 86 col2, - 92 + + + 27 AS col0
----
97
-65

query II rowsort
SELECT ALL - ( 49 ) AS col1, 66 + - + 4 AS col0
----
-49
62

query I rowsort
SELECT ALL - 11 * - 75 * - 49
----
-40425

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5010
SELECT DISTINCT + COUNT( * ) DIV + 73 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-5010
SELECT DISTINCT + COUNT ( * ) / + 73 AS col0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5011
SELECT - 66 DIV + + 22 + + COUNT( * )
----
-2

skipif mysql # not compatible
query I rowsort label-5011
SELECT - 66 / + + 22 + + COUNT ( * )
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-5012
SELECT ALL + COUNT( DISTINCT - 77 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-5012
SELECT ALL + COUNT ( DISTINCT - 77 ) AS col2
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5013
SELECT ALL + - CAST( - COUNT( * ) AS SIGNED ) * + 96 AS col2
----
96

skipif mysql # not compatible
query I rowsort label-5013
SELECT ALL + - CAST ( - COUNT ( * ) AS INTEGER ) * + 96 AS col2
----
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5014
SELECT + CAST( - 27 AS SIGNED ) * + NULLIF ( - 12, + ( + - 63 ) ) * + - 34 col0
----
-11016

skipif mysql # not compatible
query I rowsort label-5014
SELECT + CAST ( - 27 AS INTEGER ) * + NULLIF ( - 12, + ( + - 63 ) ) * + - 34 col0
----
-11016

onlyif mysql # aggregate syntax: 
query I rowsort label-5015
SELECT ALL - 4 * + COUNT( * )
----
-4

skipif mysql # not compatible
query I rowsort label-5015
SELECT ALL - 4 * + COUNT ( * )
----
-4

onlyif mysql # aggregate syntax: 
query II rowsort label-5016
SELECT - MAX( DISTINCT - 41 ) * + + 5 AS col0, COUNT( * ) AS col2
----
205
1

skipif mysql # not compatible
query II rowsort label-5016
SELECT - MAX ( DISTINCT - 41 ) * + + 5 AS col0, COUNT ( * ) AS col2
----
205
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5017
SELECT + 21 * + + 72 / CAST( NULL AS SIGNED ) - - 8 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5017
SELECT + 21 * + + 72 / CAST ( NULL AS INTEGER ) - - 8 AS col1
----
NULL

query I rowsort
SELECT + 66 + 31
----
97

query I rowsort
SELECT - 72 - - 38
----
-34

query I rowsort
SELECT ALL - 18 * - 91
----
1638

query I rowsort
SELECT + 84 * + + 21
----
1764

query I rowsort
SELECT - 89 * 96
----
-8544

onlyif mysql # aggregate syntax: 
query I rowsort label-5023
SELECT - ( MIN( 85 ) ) + - - 7
----
-78

skipif mysql # not compatible
query I rowsort label-5023
SELECT - ( MIN ( 85 ) ) + - - 7
----
-78

query I rowsort
SELECT + ( - 91 )
----
-91

query II rowsort
SELECT ALL + 31, - 93 * + + 84 AS col0
----
31
-7812

query I rowsort
SELECT - 53 * + ( 1 ) col0
----
-53

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5027
SELECT DISTINCT 59 + 25 + 91 + - COUNT( * ) + - ( - NULLIF ( - CAST( NULL AS SIGNED ), + 32 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-5027
SELECT DISTINCT 59 + 25 + 91 + - COUNT ( * ) + - ( - NULLIF ( - CAST ( NULL AS INTEGER ), + 32 ) )
----
NULL

query I rowsort
SELECT ALL - 55 * 14
----
-770

query I rowsort
SELECT ALL + 28 + + + 58
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-5030
SELECT DISTINCT COUNT( * ) * + 19
----
19

skipif mysql # not compatible
query I rowsort label-5030
SELECT DISTINCT COUNT ( * ) * + 19
----
19

query I rowsort
SELECT ALL ( - - 95 ) + + - 98 + + - 59 AS col2
----
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-5032
SELECT DISTINCT - 10 + COUNT( * )
----
-9

skipif mysql # not compatible
query I rowsort label-5032
SELECT DISTINCT - 10 + COUNT ( * )
----
-9

query I rowsort
SELECT ALL + 56 * 57 AS col2
----
3192

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5034
SELECT - 76 DIV + + COALESCE ( - COUNT( * ), + 56, + + CAST( 68 AS SIGNED ) ) AS col2
----
76

skipif mysql # not compatible
query I rowsort label-5034
SELECT - 76 / + + COALESCE ( - COUNT ( * ), + 56, + + CAST ( 68 AS INTEGER ) ) AS col2
----
76

query I rowsort
SELECT + 35 + + 26 + - 13
----
48

query I rowsort
SELECT ALL - 92 + + 97 AS col2
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-5037
SELECT DISTINCT + NULLIF ( - 9, SUM( DISTINCT + 18 ) ) * - + 77 AS col1
----
693

skipif mysql # not compatible
query I rowsort label-5037
SELECT DISTINCT + NULLIF ( - 9, SUM ( DISTINCT + 18 ) ) * - + 77 AS col1
----
693

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5038
SELECT - 64 + + ( 21 ) * CAST( 14 + 13 AS SIGNED )
----
503

skipif mysql # not compatible
query I rowsort label-5038
SELECT - 64 + + ( 21 ) * CAST ( 14 + 13 AS INTEGER )
----
503

onlyif mysql # aggregate syntax: 
query I rowsort label-5039
SELECT - ( 30 ) * - COUNT( * )
----
30

skipif mysql # not compatible
query I rowsort label-5039
SELECT - ( 30 ) * - COUNT ( * )
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-5040
SELECT - CASE 50 WHEN + 40 + + 89 THEN 25 WHEN COUNT( * ) * + 4 THEN - 28 ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5040
SELECT - CASE 50 WHEN + 40 + + 89 THEN 25 WHEN COUNT ( * ) * + 4 THEN - 28 ELSE NULL END AS col1
----
NULL

query I rowsort
SELECT - 40 + - 7 AS col1
----
-47

query I rowsort
SELECT DISTINCT CASE + 4 WHEN - 39 THEN NULL WHEN + 92 - + 64 THEN 80 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5043
SELECT ALL 28 - COUNT( * )
----
27

skipif mysql # not compatible
query I rowsort label-5043
SELECT ALL 28 - COUNT ( * )
----
27

onlyif mysql # DIV for integer division: 
query I rowsort label-5044
SELECT ALL ( + 41 ) DIV + 4
----
10

skipif mysql # not compatible
query I rowsort label-5044
SELECT ALL ( + 41 ) / + 4
----
10

query I rowsort
SELECT + 92 * - 37
----
-3404

query I rowsort
SELECT ALL ( + 23 ) AS col1
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-5047
SELECT DISTINCT - COUNT( DISTINCT 17 ) - COUNT( * ) col0
----
-2

skipif mysql # not compatible
query I rowsort label-5047
SELECT DISTINCT - COUNT ( DISTINCT 17 ) - COUNT ( * ) col0
----
-2

query I rowsort
SELECT - NULLIF ( + 32, + 18 * COALESCE ( 74 * 41, 61 ) )
----
-32

onlyif mysql # DIV for integer division: 
query I rowsort label-5049
SELECT DISTINCT + 3 DIV 25
----
0

skipif mysql # not compatible
query I rowsort label-5049
SELECT DISTINCT + 3 / 25
----
0

query I rowsort
SELECT ALL 92 - 8 * - 83 AS col2
----
756

query I rowsort
SELECT - 74 + 43 * + 18 AS col1
----
700

query I rowsort
SELECT - 33 * + 17
----
-561

query I rowsort
SELECT + 38 + - 1 * + 81 AS col1
----
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-5054
SELECT ALL COUNT( * ) * COALESCE ( - 82, ( + 24 ), 14 * - 9 ) AS col2
----
-82

skipif mysql # not compatible
query I rowsort label-5054
SELECT ALL COUNT ( * ) * COALESCE ( - 82, ( + 24 ), 14 * - 9 ) AS col2
----
-82

query I rowsort
SELECT 85 * + 93 + + 93
----
7998

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5056
SELECT + 56 - - CAST( NULL AS DECIMAL ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5056
SELECT + 56 - - CAST ( NULL AS REAL ) AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5057
SELECT + CAST( 56 AS SIGNED ) AS col1
----
56

skipif mysql # not compatible
query I rowsort label-5057
SELECT + CAST ( 56 AS INTEGER ) AS col1
----
56

onlyif mysql # DIV for integer division: 
query I rowsort label-5058
SELECT - 99 DIV 19 + + 67 col0
----
62

skipif mysql # not compatible
query I rowsort label-5058
SELECT - 99 / 19 + + 67 col0
----
62

query I rowsort
SELECT DISTINCT - ( + 63 ) * 1
----
-63

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5060
SELECT CAST( + 52 AS SIGNED ) AS col1
----
52

skipif mysql # not compatible
query I rowsort label-5060
SELECT CAST ( + 52 AS INTEGER ) AS col1
----
52

query I rowsort
SELECT + 20 * 93 AS col1
----
1860

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5062
SELECT DISTINCT NULLIF ( - 1, + COUNT( * ) * CAST( NULL AS SIGNED ) ) * + COUNT( * ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-5062
SELECT DISTINCT NULLIF ( - 1, + COUNT ( * ) * CAST ( NULL AS INTEGER ) ) * + COUNT ( * ) AS col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5063
SELECT + 66 * - COUNT( * ) col1
----
-66

skipif mysql # not compatible
query I rowsort label-5063
SELECT + 66 * - COUNT ( * ) col1
----
-66

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5064
SELECT + 54 * CAST( COUNT( - 39 ) AS SIGNED ) + 29 DIV 71
----
54

skipif mysql # not compatible
query I rowsort label-5064
SELECT + 54 * CAST ( COUNT ( - 39 ) AS INTEGER ) + 29 / 71
----
54

query I rowsort
SELECT ALL + 5 col0
----
5

onlyif mysql # DIV for integer division: 
query I rowsort label-5066
SELECT + 84 DIV + 28 AS col0
----
3

skipif mysql # not compatible
query I rowsort label-5066
SELECT + 84 / + 28 AS col0
----
3

query I rowsort
SELECT - ( 20 ) * - 22 AS col2
----
440

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5068
SELECT ALL 79 * 23 + - CAST( + 13 AS SIGNED ) * 62
----
1011

skipif mysql # not compatible
query I rowsort label-5068
SELECT ALL 79 * 23 + - CAST ( + 13 AS INTEGER ) * 62
----
1011

query I rowsort
SELECT DISTINCT 54 * + 18 + - 33 col1
----
939

onlyif mysql # DIV for integer division: 
query I rowsort label-5070
SELECT DISTINCT 77 DIV + 43 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-5070
SELECT DISTINCT 77 / + 43 AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5071
SELECT DISTINCT 47 * COUNT( * ) + - 63 AS col2
----
-16

skipif mysql # no