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 # not compatible
query I rowsort label-5071
SELECT DISTINCT 47 * COUNT ( * ) + - 63 AS col2
----
-16

query I rowsort
SELECT ALL - 50 * 67 + - 80 AS col0
----
-3430

query I rowsort
SELECT ALL 12 * + 61
----
732

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5074
SELECT DISTINCT - 84 * - 5 + + 54 DIV - COUNT( * ) AS col2
----
366

skipif mysql # not compatible
query I rowsort label-5074
SELECT DISTINCT - 84 * - 5 + + 54 / - COUNT ( * ) AS col2
----
366

query I rowsort
SELECT DISTINCT 91 * NULLIF ( + 50 * 6, AVG ( + 97 ) ) + 94
----
27394

query I rowsort
SELECT + ( 62 ) + + 53 AS col2
----
115

query I rowsort
SELECT - 59 * + NULLIF ( - 24, - 84 - + 30 )
----
1416

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

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

query I rowsort
SELECT - 76 + COALESCE ( 47, 62 ) * 58 AS col2
----
2650

query I rowsort
SELECT - 35 * + 32
----
-1120

onlyif mysql # aggregate syntax: 
query I rowsort label-5081
SELECT MIN( ALL ( ( - 86 ) ) ) col1
----
-86

skipif mysql # not compatible
query I rowsort label-5081
SELECT MIN ( ALL ( ( - 86 ) ) ) col1
----
-86

query I rowsort
SELECT ALL ( - 63 ) AS col0
----
-63

query I rowsort
SELECT - - 66 - - 71 AS col2
----
137

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5084
SELECT DISTINCT - CASE - 46 WHEN + COALESCE ( 67, 78 ) + + CAST( NULL AS SIGNED ) * 45 THEN 99 WHEN 65 / AVG ( + 93 ) THEN + ( 25 ) * - 82 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5084
SELECT DISTINCT - CASE - 46 WHEN + COALESCE ( 67, 78 ) + + CAST ( NULL AS INTEGER ) * 45 THEN 99 WHEN 65 / AVG ( + 93 ) THEN + ( 25 ) * - 82 END AS col1
----
NULL

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5087
SELECT CASE 85 WHEN - COUNT( * ) * 1 THEN NULL WHEN + CAST( NULL AS DECIMAL ) * 5 THEN + 28 END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5087
SELECT CASE 85 WHEN - COUNT ( * ) * 1 THEN NULL WHEN + CAST ( NULL AS REAL ) * 5 THEN + 28 END col1
----
NULL

query I rowsort
SELECT ALL + 78 * + 10
----
780

onlyif mysql # aggregate syntax: 
query I rowsort label-5089
SELECT - - COUNT( + NULLIF ( - 88, 39 ) )
----
1

skipif mysql # not compatible
query I rowsort label-5089
SELECT - - COUNT ( + NULLIF ( - 88, 39 ) )
----
1

query I rowsort
SELECT - - 92 col2
----
92

query I rowsort
SELECT + 1 * 35 AS col2
----
35

query I rowsort
SELECT 51 * - 24
----
-1224

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

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

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

query I rowsort
SELECT 31 * 67
----
2077

query I rowsort
SELECT + 77 col0
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-5097
SELECT ALL - NULLIF ( + MIN( 1 ), + 2 ) col1
----
-1

skipif mysql # not compatible
query I rowsort label-5097
SELECT ALL - NULLIF ( + MIN ( 1 ), + 2 ) col1
----
-1

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

query I rowsort
SELECT + + 7 col2
----
7

query I rowsort
SELECT + NULLIF ( + 27, 9 )
----
27

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5101
SELECT ALL - + 3 DIV MIN( ALL + 63 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-5101
SELECT ALL - + 3 / MIN ( ALL + 63 ) AS col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5102
SELECT ALL - ( + ( - CASE - MAX( CAST( NULL AS DECIMAL ) ) WHEN + 95 THEN NULL ELSE + 47 END ) ) AS col0
----
47

skipif mysql # not compatible
query I rowsort label-5102
SELECT ALL - ( + ( - CASE - MAX ( CAST ( NULL AS REAL ) ) WHEN + 95 THEN NULL ELSE + 47 END ) ) AS col0
----
47

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5103
SELECT - 75 DIV 97 + 34 * + COUNT( * ) AS col2
----
34

skipif mysql # not compatible
query I rowsort label-5103
SELECT - 75 / 97 + 34 * + COUNT ( * ) AS col2
----
34

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

skipif mysql # not compatible
query I rowsort label-5104
SELECT + COUNT ( * ) / + 97 + 8 AS col2
----
8

onlyif mysql # DIV for integer division: 
query I rowsort label-5105
SELECT ALL 31 + + 45 + 81 DIV + 16 AS col1
----
81

skipif mysql # not compatible
query I rowsort label-5105
SELECT ALL 31 + + 45 + 81 / + 16 AS col1
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-5106
SELECT 60 + - COUNT( * ) * - 14
----
74

skipif mysql # not compatible
query I rowsort label-5106
SELECT 60 + - COUNT ( * ) * - 14
----
74

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

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

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

query I rowsort
SELECT DISTINCT + 82 + - 73 * 65
----
-4663

query I rowsort
SELECT ALL - 28 + - 49 + 79 * + 28
----
2135

query I rowsort
SELECT ALL 71 + - 8 col2
----
63

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5112
SELECT + CAST( - 1 AS SIGNED ) * + 23 - 27 AS col0
----
-50

skipif mysql # not compatible
query I rowsort label-5112
SELECT + CAST ( - 1 AS INTEGER ) * + 23 - 27 AS col0
----
-50

query I rowsort
SELECT ALL 89 * + 10
----
890

onlyif mysql # aggregate syntax: 
query I rowsort label-5114
SELECT COUNT( * ) + - - 61 AS col0
----
62

skipif mysql # not compatible
query I rowsort label-5114
SELECT COUNT ( * ) + - - 61 AS col0
----
62

onlyif mysql # DIV for integer division: 
query I rowsort label-5115
SELECT ALL 65 + - - 69 + 15 DIV 51
----
134

skipif mysql # not compatible
query I rowsort label-5115
SELECT ALL 65 + - - 69 + 15 / 51
----
134

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

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

query I rowsort
SELECT ( + - 91 ) * 31
----
-2821

onlyif mysql # aggregate syntax: 
query I rowsort label-5118
SELECT ALL COUNT( * ) - - 67 AS col0
----
68

skipif mysql # not compatible
query I rowsort label-5118
SELECT ALL COUNT ( * ) - - 67 AS col0
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-5119
SELECT MAX( - + 19 ) + SUM( ALL + 97 + 29 ) AS col1
----
107

skipif mysql # not compatible
query I rowsort label-5119
SELECT MAX ( - + 19 ) + SUM ( ALL + 97 + 29 ) AS col1
----
107

query I rowsort
SELECT 4 + + 86 + 39 * 45 AS col2
----
1845

query I rowsort
SELECT ALL 11 * - 27 AS col1
----
-297

query I rowsort
SELECT 10 * + 75 AS col0
----
750

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5124
SELECT ALL + 49 * + ( CASE + 82 WHEN AVG ( - 77 ) * + 73 THEN 31 WHEN 19 * 82 THEN COUNT( * ) END ) + + ( - 43 + - 42 * 11 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5124
SELECT ALL + 49 * + ( CASE + 82 WHEN AVG ( - 77 ) * + 73 THEN 31 WHEN 19 * 82 THEN COUNT ( * ) END ) + + ( - 43 + - 42 * 11 )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5125
SELECT COALESCE ( - 48, + CASE + COUNT( * ) WHEN COUNT( * ) * - MIN( ALL ( + 17 ) ) + - 80 * 66 THEN 73 END, + 35 DIV - 69 )
----
-48

skipif mysql # not compatible
query I rowsort label-5125
SELECT COALESCE ( - 48, + CASE + COUNT ( * ) WHEN COUNT ( * ) * - MIN ( ALL ( + 17 ) ) + - 80 * 66 THEN 73 END, + 35 / - 69 )
----
-48

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5126
SELECT COUNT( * ) + NULLIF ( - 16, 65 + CAST( - 84 AS SIGNED ) ) * COUNT( * )
----
-15

skipif mysql # not compatible
query I rowsort label-5126
SELECT COUNT ( * ) + NULLIF ( - 16, 65 + CAST ( - 84 AS INTEGER ) ) * COUNT ( * )
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-5127
SELECT ALL - MIN( + 66 ) col2
----
-66

skipif mysql # not compatible
query I rowsort label-5127
SELECT ALL - MIN ( + 66 ) col2
----
-66

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5129
SELECT ALL MIN( DISTINCT + 91 )
----
91

skipif mysql # not compatible
query I rowsort label-5129
SELECT ALL MIN ( DISTINCT + 91 )
----
91

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5131
SELECT ALL + - 68 + - + COUNT( + 3 ) + + MAX( - 8 + COALESCE ( 1, - 15 + 89 ) ) DIV COUNT( * )
----
-76

skipif mysql # not compatible
query I rowsort label-5131
SELECT ALL + - 68 + - + COUNT ( + 3 ) + + MAX ( - 8 + COALESCE ( 1, - 15 + 89 ) ) / COUNT ( * )
----
-76

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5132
SELECT 76 + - + 94 + - 70 * + CAST( 6 AS SIGNED ) AS col1
----
-438

skipif mysql # not compatible
query I rowsort label-5132
SELECT 76 + - + 94 + - 70 * + CAST ( 6 AS INTEGER ) AS col1
----
-438

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

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

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

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

query I rowsort
SELECT ALL - 72 * + ( - 94 ) AS col1
----
6768

onlyif mysql # DIV for integer division: 
query I rowsort label-5136
SELECT 25 DIV - 30 + - 89 DIV ( + 19 * 23 )
----
0

skipif mysql # not compatible
query I rowsort label-5136
SELECT 25 / - 30 + - 89 / ( + 19 * 23 )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5137
SELECT ALL - - 76 + - + CAST( 61 AS SIGNED ) * 26 AS col2
----
-1510

skipif mysql # not compatible
query I rowsort label-5137
SELECT ALL - - 76 + - + CAST ( 61 AS INTEGER ) * 26 AS col2
----
-1510

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

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

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

skipif mysql # not compatible
query I rowsort label-5139
SELECT ALL COUNT ( * ) * 11 / + 56 * - 45 + COUNT ( * ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5140
SELECT DISTINCT COUNT( * ) * 28 + + + 28 + - 93
----
-37

skipif mysql # not compatible
query I rowsort label-5140
SELECT DISTINCT COUNT ( * ) * 28 + + + 28 + - 93
----
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-5141
SELECT ALL - NULLIF ( + + ( - + COUNT( DISTINCT - 51 ) ), + COUNT( * ) * 98 + + 64 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-5141
SELECT ALL - NULLIF ( + + ( - + COUNT ( DISTINCT - 51 ) ), + COUNT ( * ) * 98 + + 64 ) AS col0
----
1

query I rowsort
SELECT DISTINCT 96 * + ( + - 99 ) + - 27
----
-9531

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5143
SELECT ALL 77 * 68 DIV 79 * 41 + + COUNT( * )
----
2707

skipif mysql # not compatible
query I rowsort label-5143
SELECT ALL 77 * 68 / 79 * 41 + + COUNT ( * )
----
2707

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5145
SELECT DISTINCT 14 * 51 * NULLIF ( 23, + 48 * COUNT( + 69 ) + - ( 2 ) ) + 29 AS col2
----
16451

skipif mysql # not compatible
query I rowsort label-5145
SELECT DISTINCT 14 * 51 * NULLIF ( 23, + 48 * COUNT ( + 69 ) + - ( 2 ) ) + 29 AS col2
----
16451

query II rowsort
SELECT + 24 AS col1, 6 AS col2
----
24
6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5147
SELECT CAST( - + 37 AS SIGNED ) * + 38 + 8
----
-1398

skipif mysql # not compatible
query I rowsort label-5147
SELECT CAST ( - + 37 AS INTEGER ) * + 38 + 8
----
-1398

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

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

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

query I rowsort
SELECT - ( + 7 ) * 45 + 35 col0
----
-280

onlyif mysql # DIV for integer division: 
query I rowsort label-5151
SELECT DISTINCT - 6 DIV - ( - 32 )
----
0

skipif mysql # not compatible
query I rowsort label-5151
SELECT DISTINCT - 6 / - ( - 32 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5152
SELECT MAX( 27 ) AS col0
----
27

skipif mysql # not compatible
query I rowsort label-5152
SELECT MAX ( 27 ) AS col0
----
27

query I rowsort
SELECT ALL - 36 * 17 - ( + 95 ) AS col0
----
-707

onlyif mysql # DIV for integer division: 
query I rowsort label-5154
SELECT 85 DIV 75
----
1

skipif mysql # not compatible
query I rowsort label-5154
SELECT 85 / 75
----
1

query I rowsort
SELECT ( 71 ) * - ( 42 )
----
-2982

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5156
SELECT DISTINCT - CAST( NULL AS SIGNED ) AS col0, 68 * + 81 AS col2
----
NULL
5508

skipif mysql # not compatible
query II rowsort label-5156
SELECT DISTINCT - CAST ( NULL AS INTEGER ) AS col0, 68 * + 81 AS col2
----
NULL
5508

query I rowsort
SELECT DISTINCT 70 * - 7 AS col0
----
-490

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5159
SELECT DISTINCT + CASE + 9 WHEN - - COUNT( * ) * AVG ( - 46 + 97 ) THEN - 96 + + 19 WHEN 24 + 59 THEN - 6 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-5159
SELECT DISTINCT + CASE + 9 WHEN - - COUNT ( * ) * AVG ( - 46 + 97 ) THEN - 96 + + 19 WHEN 24 + 59 THEN - 6 ELSE NULL END
----
NULL

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

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

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

query I rowsort
SELECT + 12 + - 45 + + 29 + 47 AS col1
----
43

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5165
SELECT ALL + 12 DIV + 12
----
1

skipif mysql # not compatible
query I rowsort label-5165
SELECT ALL + 12 / + 12
----
1

query I rowsort
SELECT + + 6 * + NULLIF ( 57, 69 ) AS col0
----
342

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5167
SELECT ALL CAST( + 23 AS SIGNED )
----
23

skipif mysql # not compatible
query I rowsort label-5167
SELECT ALL CAST ( + 23 AS INTEGER )
----
23

query I rowsort
SELECT - COALESCE ( - 9, - 42 * 68 ) AS col1
----
9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5169
SELECT ALL COUNT( * ) + + CAST( + - ( + 99 ) AS SIGNED ) AS col1
----
-98

skipif mysql # not compatible
query I rowsort label-5169
SELECT ALL COUNT ( * ) + + CAST ( + - ( + 99 ) AS INTEGER ) AS col1
----
-98

query II rowsort
SELECT ALL + 4, - 42 col1
----
4
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-5171
SELECT + SUM( - 45 ) * 35 AS col0
----
-1575

skipif mysql # not compatible
query I rowsort label-5171
SELECT + SUM ( - 45 ) * 35 AS col0
----
-1575

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5172
SELECT DISTINCT - 43 + + COUNT( * ) * + ( - 72 ) DIV 89 + - 75
----
-118

skipif mysql # not compatible
query I rowsort label-5172
SELECT DISTINCT - 43 + + COUNT ( * ) * + ( - 72 ) / 89 + - 75
----
-118

query I rowsort
SELECT ALL - 85 + ( - 51 ) AS col1
----
-136

query I rowsort
SELECT + - 79 - + - ( + 87 ) AS col0
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-5175
SELECT + + 4 * + ( - MIN( ALL - 9 ) ) * + COUNT( * ) AS col2
----
36

skipif mysql # not compatible
query I rowsort label-5175
SELECT + + 4 * + ( - MIN ( ALL - 9 ) ) * + COUNT ( * ) AS col2
----
36

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5176
SELECT - CAST( NULL AS SIGNED ) AS col2, 65
----
NULL
65

skipif mysql # not compatible
query II rowsort label-5176
SELECT - CAST ( NULL AS INTEGER ) AS col2, 65
----
NULL
65

query II rowsort
SELECT ALL 19 + + + 71 col1, 42
----
90
42

query I rowsort
SELECT ALL NULLIF ( + + 26, - - 92 )
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-5179
SELECT DISTINCT CASE - 54 WHEN 19 THEN NULL ELSE NULLIF ( ( COUNT( * ) ), + 17 ) * - 16 END AS col0
----
-16

skipif mysql # not compatible
query I rowsort label-5179
SELECT DISTINCT CASE - 54 WHEN 19 THEN NULL ELSE NULLIF ( ( COUNT ( * ) ), + 17 ) * - 16 END AS col0
----
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-5180
SELECT ALL - 28 + + COALESCE ( + - CASE COUNT( * ) WHEN 53 THEN NULL WHEN 23 * - COUNT( * ) + 66 * 50 THEN + 64 + - 1 ELSE NULL END, - 98 ) AS col1
----
-126

skipif mysql # not compatible
query I rowsort label-5180
SELECT ALL - 28 + + COALESCE ( + - CASE COUNT ( * ) WHEN 53 THEN NULL WHEN 23 * - COUNT ( * ) + 66 * 50 THEN + 64 + - 1 ELSE NULL END, - 98 ) AS col1
----
-126

onlyif mysql # DIV for integer division: 
query I rowsort label-5181
SELECT ALL + 69 DIV + 81 + + 94
----
94

skipif mysql # not compatible
query I rowsort label-5181
SELECT ALL + 69 / + 81 + + 94
----
94

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5182
SELECT - 60 DIV - - ( + + 22 ) * - NULLIF ( + COUNT( * ), 37 - 60 ) col2
----
2

skipif mysql # not compatible
query I rowsort label-5182
SELECT - 60 / - - ( + + 22 ) * - NULLIF ( + COUNT ( * ), 37 - 60 ) col2
----
2

query I rowsort
SELECT + 71 * + 38
----
2698

onlyif mysql # aggregate syntax: 
query I rowsort label-5184
SELECT - COUNT( * ) + 87 * + 76 AS col0
----
6611

skipif mysql # not compatible
query I rowsort label-5184
SELECT - COUNT ( * ) + 87 * + 76 AS col0
----
6611

onlyif mysql # aggregate syntax: 
query I rowsort label-5185
SELECT - 78 * 62 * 95 + - COUNT( * )
----
-459421

skipif mysql # not compatible
query I rowsort label-5185
SELECT - 78 * 62 * 95 + - COUNT ( * )
----
-459421

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

skipif mysql # not compatible
query I rowsort label-5186
SELECT ALL + NULLIF ( 50, - - 27 * + COUNT ( * ) )
----
50

query II rowsort
SELECT ( - 91 ), - 58 * 60 AS col1
----
-91
-3480

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5188
SELECT ALL + CASE WHEN ( - CAST( 64 AS SIGNED ) ) IN ( - 95 ) THEN + 16 + + NULLIF ( + 80 + 88 * 57, + 2 * + 54 ) WHEN NOT ( 4 * 21 ) IS NULL THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-5188
SELECT ALL + CASE WHEN ( - CAST ( 64 AS INTEGER ) ) IN ( - 95 ) THEN + 16 + + NULLIF ( + 80 + 88 * 57, + 2 * + 54 ) WHEN NOT ( 4 * 21 ) IS NULL THEN NULL END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5189
SELECT - 93 DIV 76 * - + 21
----
21

skipif mysql # not compatible
query I rowsort label-5189
SELECT - 93 / 76 * - + 21
----
21

query I rowsort
SELECT NULLIF ( 34, - 66 ) AS col1
----
34

query I rowsort
SELECT - 40 * 34 AS col0
----
-1360

query I rowsort
SELECT - ( - 34 ) + + - 13
----
21

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5193
SELECT - - 1 / + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5193
SELECT - - 1 / + - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5194
SELECT + - 96 DIV - 73 + - + 50 AS col1
----
-49

skipif mysql # not compatible
query I rowsort label-5194
SELECT + - 96 / - 73 + - + 50 AS col1
----
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-5195
SELECT + CASE - 92 WHEN - 25 * - 96 + + ( + COALESCE ( COUNT( * ), ( + 7 ), + 0 * - 82 ) ) * + 76 THEN - 65 * 28 WHEN - 47 THEN - 71 WHEN + CASE 90 WHEN 34 * 12 THEN SUM( DISTINCT - 55 ) END THEN NULL ELSE NULL END col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5195
SELECT + CASE - 92 WHEN - 25 * - 96 + + ( + COALESCE ( COUNT ( * ), ( + 7 ), + 0 * - 82 ) ) * + 76 THEN - 65 * 28 WHEN - 47 THEN - 71 WHEN + CASE 90 WHEN 34 * 12 THEN SUM ( DISTINCT - 55 ) END THEN NULL ELSE NULL END col2
----
NULL

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

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

query I rowsort
SELECT DISTINCT - 34 * - 79 + + + 56
----
2742

query I rowsort
SELECT - + 77 + 93
----
16

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5200
SELECT - SUM( ALL + + 67 ) * 77
----
-5159

skipif mysql # not compatible
query I rowsort label-5200
SELECT - SUM ( ALL + + 67 ) * 77
----
-5159

query I rowsort
SELECT ALL 76 * + 18 + + 63
----
1431

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5202
SELECT - + NULLIF ( + COUNT( * ), ( + CAST( 70 AS SIGNED ) ) + - 35 )
----
-1

skipif mysql # not compatible
query I rowsort label-5202
SELECT - + NULLIF ( + COUNT ( * ), ( + CAST ( 70 AS INTEGER ) ) + - 35 )
----
-1

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5205
SELECT ALL - 89 + COUNT( * ) + - + 35 * + CASE + ( - 52 ) WHEN 95 THEN - 56 END + - 46 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5205
SELECT ALL - 89 + COUNT ( * ) + - + 35 * + CASE + ( - 52 ) WHEN 95 THEN - 56 END + - 46 AS col0
----
NULL

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

skipif mysql # not compatible
query I rowsort label-5206
SELECT - SUM ( ALL - 44 )
----
44

query I rowsort
SELECT ALL + 14 + - 54 * + + 40 AS col2
----
-2146

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5208
SELECT - - CAST( NULL AS DECIMAL ) + - 46 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5208
SELECT - - CAST ( NULL AS REAL ) + - 46 col2
----
NULL

query I rowsort
SELECT - COALESCE ( - 8, + 90 )
----
8

query I rowsort
SELECT + 93 + - 4
----
89

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

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

query II rowsort
SELECT ALL - 53 + 72 AS col0, 73 AS col0
----
19
73

onlyif mysql # aggregate syntax: 
query I rowsort label-5213
SELECT ALL + MIN( ALL - 20 ) + + COUNT( ALL + 69 ) AS col0
----
-19

skipif mysql # not compatible
query I rowsort label-5213
SELECT ALL + MIN ( ALL - 20 ) + + COUNT ( ALL + 69 ) AS col0
----
-19

query I rowsort
SELECT 69 col2
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-5215
SELECT ALL COUNT( * ) + + + 12 * - - 46
----
553

skipif mysql # not compatible
query I rowsort label-5215
SELECT ALL COUNT ( * ) + + + 12 * - - 46
----
553

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5216
SELECT DISTINCT 13 DIV + COUNT( * )
----
13

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

query I rowsort
SELECT + 84 + + 95 * - 43
----
-4001

query I rowsort
SELECT ALL 48 * 16
----
768

query I rowsort
SELECT DISTINCT 7 * - + 10
----
-70

query II rowsort
SELECT + 36 + - - 78 * + - 45 AS col0, - 32 + - COALESCE ( + 47, 8 + 97 )
----
-3474
-79

query I rowsort
SELECT ALL 42 * 84 AS col0
----
3528

query I rowsort
SELECT - 54 * - 88 AS col2
----
4752

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

skipif mysql # not compatible
query II rowsort label-5223
SELECT DISTINCT COUNT ( * ) AS col0, - 51 AS col0
----
1
-51

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

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

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

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

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

skipif mysql # not compatible
query I rowsort label-5226
SELECT COUNT ( * ) * 81
----
81

query II rowsort
SELECT DISTINCT - 81, 6 + 84 AS col1
----
-81
90

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

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

query II rowsort
SELECT ALL - 74 AS col1, + 47 col2
----
-74
47

query I rowsort
SELECT ALL + 61 * + - 78
----
-4758

query I rowsort
SELECT 82 - - 56 AS col0
----
138

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5232
SELECT ALL + NULLIF ( + - 42, ( CAST( NULL AS SIGNED ) ) + - 64 ) * MIN( + 86 )
----
-3612

skipif mysql # not compatible
query I rowsort label-5232
SELECT ALL + NULLIF ( + - 42, ( CAST ( NULL AS INTEGER ) ) + - 64 ) * MIN ( + 86 )
----
-3612

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5233
SELECT ALL 35 + - 46 + - COALESCE ( + - CAST( 94 AS SIGNED ), + COALESCE ( + 6, AVG ( + 53 ), + ( 21 ) + 57 ) DIV COUNT( * ) + + 15 ) + - CAST( 0 AS SIGNED ) * 89 col1
----
83

skipif mysql # not compatible
query I rowsort label-5233
SELECT ALL 35 + - 46 + - COALESCE ( + - CAST ( 94 AS INTEGER ), + COALESCE ( + 6, AVG ( + 53 ), + ( 21 ) + 57 ) / COUNT ( * ) + + 15 ) + - CAST ( 0 AS INTEGER ) * 89 col1
----
83

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5235
SELECT DISTINCT + 62 DIV + 49
----
1

skipif mysql # not compatible
query I rowsort label-5235
SELECT DISTINCT + 62 / + 49
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5236
SELECT DISTINCT + 51 + + - 23 * - - ( + NULLIF ( - 0, + CASE CASE COALESCE ( + 72, + CAST( 59 AS SIGNED ) ) WHEN 2 THEN NULL WHEN + 69 - - ( CAST( NULL AS DECIMAL ) + 6 ) * 53 THEN NULL ELSE - 31 + + 0 * 60 END WHEN - 75 * - CAST( COUNT( * ) AS SIGNED ) + 59 THEN 71 * 20 + + 21 WHEN - 56 * - 35 THEN NULL ELSE 13 END * + 3 + 61 ) ) + 75
----
126

skipif mysql # not compatible
query I rowsort label-5236
SELECT DISTINCT + 51 + + - 23 * - - ( + NULLIF ( - 0, + CASE CASE COALESCE ( + 72, + CAST ( 59 AS INTEGER ) ) WHEN 2 THEN NULL WHEN + 69 - - ( CAST ( NULL AS REAL ) + 6 ) * 53 THEN NULL ELSE - 31 + + 0 * 60 END WHEN - 75 * - CAST ( COUNT ( * ) AS INTEGER ) + 59 THEN 71 * 20 + + 21 WHEN - 56 * - 35 THEN NULL ELSE 13 END * + 3 + 61 ) ) + 75
----
126

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

query I rowsort
SELECT + 10 + + 4
----
14

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5239
SELECT DISTINCT + + 44 + - + COALESCE ( - 61, - - CASE + + 52 WHEN 42 * + 85 + - COUNT( * ) THEN + NULLIF ( - 67, 46 ) + 16 * - 79 ELSE - COUNT( * ) DIV + 58 END + - 25 * + 62 ) AS col2
----
105

skipif mysql # not compatible
query I rowsort label-5239
SELECT DISTINCT + + 44 + - + COALESCE ( - 61, - - CASE + + 52 WHEN 42 * + 85 + - COUNT ( * ) THEN + NULLIF ( - 67, 46 ) + 16 * - 79 ELSE - COUNT ( * ) / + 58 END + - 25 * + 62 ) AS col2
----
105

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5240
SELECT ALL - CAST( 14 AS SIGNED ) + + - 78
----
-92

skipif mysql # not compatible
query I rowsort label-5240
SELECT ALL - CAST ( 14 AS INTEGER ) + + - 78
----
-92

query I rowsort
SELECT + ( + ( - + 17 ) ) * + - 85 AS col0
----
1445

query I rowsort
SELECT ALL + + 69 * + - 94
----
-6486

onlyif mysql # DIV for integer division: 
query I rowsort label-5243
SELECT - 77 DIV + + 71
----
-1

skipif mysql # not compatible
query I rowsort label-5243
SELECT - 77 / + + 71
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5244
SELECT DISTINCT + 57 + + 37 * - COUNT( * )
----
20

skipif mysql # not compatible
query I rowsort label-5244
SELECT DISTINCT + 57 + + 37 * - COUNT ( * )
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-5245
SELECT ALL - 93 * + 1 + - + COUNT( + - 79 )
----
-94

skipif mysql # not compatible
query I rowsort label-5245
SELECT ALL - 93 * + 1 + - + COUNT ( + - 79 )
----
-94

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

query I rowsort
SELECT DISTINCT + 77 - ( + - 26 ) + - 42
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-5248
SELECT ALL 48 - + - 44 + + - CASE - 61 WHEN + 6 * 52 + - 79 THEN COUNT( * ) END * 14
----
NULL

skipif mysql # not compatible
query I rowsort label-5248
SELECT ALL 48 - + - 44 + + - CASE - 61 WHEN + 6 * 52 + - 79 THEN COUNT ( * ) END * 14
----
NULL

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

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

query I rowsort
SELECT ALL + 37 * + - 19
----
-703

query II rowsort
SELECT DISTINCT 7, 15 AS col1
----
7
15

query III rowsort
SELECT 54, 58 AS col1, - 19 AS col1
----
54
58
-19

query I rowsort
SELECT DISTINCT + 19 * 27
----
513

query I rowsort
SELECT 79 * + 29 AS col1
----
2291

query I rowsort
SELECT DISTINCT 71 col1
----
71

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

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

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

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

query I rowsort
SELECT ALL ( - 90 ) * 40 AS col0
----
-3600

query II rowsort
SELECT - 32, - 84 AS col1
----
-32
-84

query II rowsort
SELECT ALL 34 AS col1, + 95 * - 0 AS col2
----
34
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5261
SELECT 20 - - COALESCE ( + 8, 49 + 71 DIV ( 7 ), COALESCE ( - 54, 98, 5 * 31 ) + 49 ) * COALESCE ( 20 + CAST( COUNT( * ) AS SIGNED ) * 20, 21 + 0 ) AS col0
----
340

skipif mysql # not compatible
query I rowsort label-5261
SELECT 20 - - COALESCE ( + 8, 49 + 71 / ( 7 ), COALESCE ( - 54, 98, 5 * 31 ) + 49 ) * COALESCE ( 20 + CAST ( COUNT ( * ) AS INTEGER ) * 20, 21 + 0 ) AS col0
----
340

onlyif mysql # DIV for integer division: 
query I rowsort label-5262
SELECT ( 37 ) DIV 86 DIV - + 99 * - + 2 + 74 - + 94 * - 44 AS col0
----
4210

skipif mysql # not compatible
query I rowsort label-5262
SELECT ( 37 ) / 86 / - + 99 * - + 2 + 74 - + 94 * - 44 AS col0
----
4210

query I rowsort
SELECT ( + 21 ) - 88 + 98 - 85 AS col0
----
-54

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

skipif mysql # not compatible
query I rowsort label-5264
SELECT COUNT ( * ) / - - 39 * - 46 AS col2
----
0

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5266
SELECT 3 DIV SUM( + 12 ) + - 22 - - 36 AS col2
----
14

skipif mysql # not compatible
query I rowsort label-5266
SELECT 3 / SUM ( + 12 ) + - 22 - - 36 AS col2
----
14

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5269
SELECT COUNT( * ) * - COALESCE ( - + NULLIF ( COUNT( * ), - ( + - 17 ) * - 28 - 66 ), + 36 * - 64 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-5269
SELECT COUNT ( * ) * - COALESCE ( - + NULLIF ( COUNT ( * ), - ( + - 17 ) * - 28 - 66 ), + 36 * - 64 ) AS col0
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5270
SELECT - 38 * + 64 + + - 6 + - AVG ( + CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-5270
SELECT - 38 * + 64 + + - 6 + - AVG ( + CAST ( NULL AS INTEGER ) )
----
NULL

query I rowsort
SELECT ALL - COALESCE ( - 76, 97 )
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-5272
SELECT - + MIN( ALL 47 ) * 87 + - 26 * - 66 * + 80 * 98
----
13449351

skipif mysql # not compatible
query I rowsort label-5272
SELECT - + MIN ( ALL 47 ) * 87 + - 26 * - 66 * + 80 * 98
----
13449351

query I rowsort
SELECT ALL + 49 + 16
----
65

query I rowsort
SELECT ALL + - 9 * + 71 AS col0
----
-639

query I rowsort
SELECT 66 + 84 * + - 0
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-5276
SELECT NULLIF ( - - 79, 30 * - + SUM( ALL + - 51 ) + + 52 )
----
79

skipif mysql # not compatible
query I rowsort label-5276
SELECT NULLIF ( - - 79, 30 * - + SUM ( ALL + - 51 ) + + 52 )
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-5277
SELECT ALL COUNT( + 10 ) + NULLIF ( 53, + COUNT( * ) + + 66 / - MAX( - 61 ) ) * + 58
----
3075

skipif mysql # not compatible
query I rowsort label-5277
SELECT ALL COUNT ( + 10 ) + NULLIF ( 53, + COUNT ( * ) + + 66 / - MAX ( - 61 ) ) * + 58
----
3075

onlyif mysql # aggregate syntax: 
query III rowsort label-5278
SELECT + 79 AS col1, - 42, + + 50 * + + NULLIF ( 67, - 68 + COUNT( * ) ) AS col2
----
79
-42
3350

skipif mysql # not compatible
query III rowsort label-5278
SELECT + 79 AS col1, - 42, + + 50 * + + NULLIF ( 67, - 68 + COUNT ( * ) ) AS col2
----
79
-42
3350

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5279
SELECT 19 * + - 36 * + 29 * 89 DIV + - COUNT( * ) + + 75 * 74
----
1770954

skipif mysql # not compatible
query I rowsort label-5279
SELECT 19 * + - 36 * + 29 * 89 / + - COUNT ( * ) + + 75 * 74
----
1770954

query I rowsort
SELECT DISTINCT + 56 * + - 62 AS col2
----
-3472

query II rowsort
SELECT ALL - - 91 AS col2, ( 11 )
----
91
11

query II rowsort
SELECT + 63 col0, + 20 * - 93
----
63
-1860

query I rowsort
SELECT DISTINCT + 86 - + - ( 86 ) + + - 82 + - + 62 - + 88 * 78 AS col2
----
-6836

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5284
SELECT ALL COUNT( * ) * + 87 + NULLIF ( 16, + + 71 ) + - 4 * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5284
SELECT ALL COUNT ( * ) * + 87 + NULLIF ( 16, + + 71 ) + - 4 * CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5285
SELECT DISTINCT - - 9 col0, 45 + + CAST( 15 AS SIGNED ) + 23 * + 85
----
9
2015

skipif mysql # not compatible
query II rowsort label-5285
SELECT DISTINCT - - 9 col0, 45 + + CAST ( 15 AS INTEGER ) + 23 * + 85
----
9
2015

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

query II rowsort
SELECT + 64 AS col1, + 72 + + - ( 63 )
----
64
9

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

query I rowsort
SELECT 14 * 19 + + 30 AS col1
----
296

onlyif mysql # DIV for integer division: 
query I rowsort label-5290
SELECT ALL - 56 DIV ( - 99 )
----
0

skipif mysql # not compatible
query I rowsort label-5290
SELECT ALL - 56 / ( - 99 )
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-5291
SELECT 45 - ( + 13 ) + CAST( NULL AS DECIMAL ) AS col2, 28
----
NULL
28

skipif mysql # not compatible
query II rowsort label-5291
SELECT 45 - ( + 13 ) + CAST ( NULL AS REAL ) AS col2, 28
----
NULL
28

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-5293
SELECT ALL - 78 DIV - + 27 AS col2, 49
----
2
49

skipif mysql # not compatible
query II rowsort label-5293
SELECT ALL - 78 / - + 27 AS col2, 49
----
2
49

onlyif mysql # aggregate syntax: 
query I rowsort label-5294
SELECT 79 * - COUNT( * ) * - 17 col0
----
1343

skipif mysql # not compatible
query I rowsort label-5294
SELECT 79 * - COUNT ( * ) * - 17 col0
----
1343

query I rowsort
SELECT 14 * 73
----
1022

query I rowsort
SELECT 85 + 78
----
163

onlyif mysql # aggregate syntax: 
query II rowsort label-5297
SELECT ALL MIN( + 40 ) AS col0, NULLIF ( + + CASE + 70 WHEN - 38 + + 85 THEN 56 * + 12 WHEN + 93 THEN 60 * - 17 WHEN 66 * 56 + COALESCE ( 87, 98 * ( COALESCE ( - 64, 98 + ( + 59 + 69 * - 13 ), - 8 + + MAX( - 63 + + 22 / 3 ) ) * - 42 ) ) * + 79 THEN NULL ELSE NULL END, COUNT( * ) ) + - 14 * - 66 AS col2
----
40
NULL

skipif mysql # not compatible
query II rowsort label-5297
SELECT ALL MIN ( + 40 ) AS col0, NULLIF ( + + CASE + 70 WHEN - 38 + + 85 THEN 56 * + 12 WHEN + 93 THEN 60 * - 17 WHEN 66 * 56 + COALESCE ( 87, 98 * ( COALESCE ( - 64, 98 + ( + 59 + 69 * - 13 ), - 8 + + MAX ( - 63 + + 22 / 3 ) ) * - 42 ) ) * + 79 THEN NULL ELSE NULL END, COUNT ( * ) ) + - 14 * - 66 AS col2
----
40
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5298
SELECT ALL - MAX( - 1 ) DIV 27 col1, 55
----
0
55

skipif mysql # not compatible
query II rowsort label-5298
SELECT ALL - MAX ( - 1 ) / 27 col1, 55
----
0
55

onlyif mysql # aggregate syntax: 
query II rowsort label-5299
SELECT - 1 + - ( - COUNT( * ) ) AS col2, 8 * - + 62
----
0
-496

skipif mysql # not compatible
query II rowsort label-5299
SELECT - 1 + - ( - COUNT ( * ) ) AS col2, 8 * - + 62
----
0
-496

onlyif mysql # aggregate syntax: 
query I rowsort label-5300
SELECT ALL + CASE 75 WHEN 76 THEN + - 77 WHEN - 78 + - 53 THEN - NULLIF ( + COUNT( * ), 78 * - 57 + - COUNT( * ) ) * + 99 END * COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-5300
SELECT ALL + CASE 75 WHEN 76 THEN + - 77 WHEN - 78 + - 53 THEN - NULLIF ( + COUNT ( * ), 78 * - 57 + - COUNT ( * ) ) * + 99 END * COUNT ( * )
----
NULL

query I rowsort
SELECT - 77 * + 89 AS col1
----
-6853

onlyif mysql # aggregate syntax: 
query II rowsort label-5302
SELECT - 94 + + + COUNT( * ), 6 * - + 8 AS col0
----
-93
-48

skipif mysql # not compatible
query II rowsort label-5302
SELECT - 94 + + + COUNT ( * ), 6 * - + 8 AS col0
----
-93
-48

query I rowsort
SELECT ALL COALESCE ( + 17, + 3 ) AS col2
----
17

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

skipif mysql # not compatible
query I rowsort label-5304
SELECT + COUNT ( * ) + + + 59 AS col2
----
60

query I rowsort
SELECT DISTINCT + ( - - 16 ) + - 94 AS col1
----
-78

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

skipif mysql # not compatible
query I rowsort label-5306
SELECT - COUNT ( * ) * 72
----
-72

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5307
SELECT ALL - CASE - 56 WHEN 41 THEN NULL WHEN + NULLIF ( - CAST( - 85 AS SIGNED ), - CASE 44 WHEN - COUNT( * ) THEN NULL WHEN 9 * - 4 + + 49 THEN NULL ELSE + 64 END + 64 ) * 46 THEN - COUNT( * ) * - 42 END * 89 + - ( 6 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5307
SELECT ALL - CASE - 56 WHEN 41 THEN NULL WHEN + NULLIF ( - CAST ( - 85 AS INTEGER ), - CASE 44 WHEN - COUNT ( * ) THEN NULL WHEN 9 * - 4 + + 49 THEN NULL ELSE + 64 END + 64 ) * 46 THEN - COUNT ( * ) * - 42 END * 89 + - ( 6 )
----
NULL

query I rowsort
SELECT ALL + COALESCE ( + - 81, 1, - 50 ) * + 32 + 96 * 70 + 36 AS col0
----
4164

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

skipif mysql # not compatible
query I rowsort label-5309
SELECT + MIN ( + 4 )
----
4

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5311
SELECT ALL + 50 * - 2 + - 42 + 27 DIV - - 37 + 21 AS col2
----
-121

skipif mysql # not compatible
query I rowsort label-5311
SELECT ALL + 50 * - 2 + - 42 + 27 / - - 37 + 21 AS col2
----
-121

query II rowsort
SELECT + 56 * + 64 AS col0, 77
----
3584
77

query I rowsort
SELECT DISTINCT 96 * + - 30 * 50 AS col0
----
-144000

query I rowsort
SELECT + - 34 col0
----
-34

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5316
SELECT + 83 DIV - 29
----
-2

skipif mysql # not compatible
query I rowsort label-5316
SELECT + 83 / - 29
----
-2

onlyif mysql # aggregate syntax: 
query II rowsort label-5317
SELECT - 23 * 82 col1, CASE + 68 WHEN + COUNT( * ) * - - 98 THEN NULL WHEN 35 THEN AVG ( ALL + 52 ) WHEN 41 + - 42 THEN NULL ELSE NULL END * + 30 AS col0
----
-1886
NULL

skipif mysql # not compatible
query II rowsort label-5317
SELECT - 23 * 82 col1, CASE + 68 WHEN + COUNT ( * ) * - - 98 THEN NULL WHEN 35 THEN AVG ( ALL + 52 ) WHEN 41 + - 42 THEN NULL ELSE NULL END * + 30 AS col0
----
-1886
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5318
SELECT DISTINCT + COUNT( * ) * + - 42 AS col0, - COALESCE ( + 67, - - 96 DIV - 2 + + 38 * - CASE WHEN 72 IS NULL THEN - 32 * 90 WHEN NOT 5 + + 94 IN ( NULLIF ( 67, - 99 ) + + 7 * 90 ) THEN NULL ELSE NULL END )
----
-42
-67

skipif mysql # not compatible
query II rowsort label-5318
SELECT DISTINCT + COUNT ( * ) * + - 42 AS col0, - COALESCE ( + 67, - - 96 / - 2 + + 38 * - CASE WHEN 72 IS NULL THEN - 32 * 90 WHEN NOT 5 + + 94 IN ( NULLIF ( 67, - 99 ) + + 7 * 90 ) THEN NULL ELSE NULL END )
----
-42
-67

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-5321
SELECT ALL - 34 * COUNT( * ) - - - 93 AS col0, + 83 AS col0
----
-127
83

skipif mysql # not compatible
query II rowsort label-5321
SELECT ALL - 34 * COUNT ( * ) - - - 93 AS col0, + 83 AS col0
----
-127
83

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

query I rowsort
SELECT ALL + + NULLIF ( - 40, - 12 + - 19 ) col1
----
-40

query I rowsort
SELECT + 70 col0
----
70

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5325
SELECT + 95 + 10 DIV + - CAST( - 2 AS SIGNED ) AS col2
----
100

skipif mysql # not compatible
query I rowsort label-5325
SELECT + 95 + 10 / + - CAST ( - 2 AS INTEGER ) AS col2
----
100

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5327
SELECT + COUNT( * ) + - CASE + + 74 WHEN SUM( ALL - 11 ) THEN NULL WHEN 74 THEN + 6 * + ( 1 ) END
----
-5

skipif mysql # not compatible
query I rowsort label-5327
SELECT + COUNT ( * ) + - CASE + + 74 WHEN SUM ( ALL - 11 ) THEN NULL WHEN 74 THEN + 6 * + ( 1 ) END
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-5328
SELECT DISTINCT + SUM( ALL + NULLIF ( - 49, - 25 ) ) * + 63 * 6 + + 54
----
-18468

skipif mysql # not compatible
query I rowsort label-5328
SELECT DISTINCT + SUM ( ALL + NULLIF ( - 49, - 25 ) ) * + 63 * 6 + + 54
----
-18468

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

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

query I rowsort
SELECT - ( 92 )
----
-92

query I rowsort
SELECT - 13 * - 25
----
325

query I rowsort
SELECT + 25 * 43 col1
----
1075

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5333
SELECT + ( + - COUNT( * ) ) + + CAST( NULL AS SIGNED ) * 84 * - 50 + - 33
----
NULL

skipif mysql # not compatible
query I rowsort label-5333
SELECT + ( + - COUNT ( * ) ) + + CAST ( NULL AS INTEGER ) * 84 * - 50 + - 33
----
NULL

query II rowsort
SELECT ALL 63, 95 + 55 AS col1
----
63
150

query I rowsort
SELECT ALL COALESCE ( 30, + ( + + 9 ), + + 18 * + - 83 - - - 75 - + + 94, - 20 ) AS col0
----
30

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5336
SELECT - 77 DIV - MIN( DISTINCT 38 ) AS col1
----
2

skipif mysql # not compatible
query I rowsort label-5336
SELECT - 77 / - MIN ( DISTINCT 38 ) AS col1
----
2

query I rowsort
SELECT ALL 83 + + + 72 + - + 55 * + + 42 * 38
----
-87625

query I rowsort
SELECT DISTINCT ( + 93 ) AS col2
----
93

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

skipif mysql # not compatible
query I rowsort label-5339
SELECT ALL SUM ( ALL 10 )
----
10

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5341
SELECT + 41 DIV 25
----
1

skipif mysql # not compatible
query I rowsort label-5341
SELECT + 41 / 25
----
1

query I rowsort
SELECT - 47 * - 77
----
3619

query I rowsort
SELECT + 59 - + 98
----
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-5344
SELECT ALL + 75 + SUM( + - 41 ) * + CASE - 29 WHEN + + 59 * - COALESCE ( 1, COUNT( * ) / - 72 - + 2 * 89, 18 + + 34 ) * COUNT( * ) - 18 THEN - 96 + 78 END / 71 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5344
SELECT ALL + 75 + SUM ( + - 41 ) * + CASE - 29 WHEN + + 59 * - COALESCE ( 1, COUNT ( * ) / - 72 - + 2 * 89, 18 + + 34 ) * COUNT ( * ) - 18 THEN - 96 + 78 END / 71 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5345
SELECT - 35 - + + 93 + - SUM( + + 43 )
----
-171

skipif mysql # not compatible
query I rowsort label-5345
SELECT - 35 - + + 93 + - SUM ( + + 43 )
----
-171

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5346
SELECT ALL - 12 + - 57 + - 34 + - MIN( - + 66 ) * CASE 14 WHEN + + 9 THEN NULL WHEN ( CAST( NULL AS SIGNED ) ) * - 70 THEN - 70 * - 16 ELSE - 38 * 15 END
----
-37723

skipif mysql # not compatible
query I rowsort label-5346
SELECT ALL - 12 + - 57 + - 34 + - MIN ( - + 66 ) * CASE 14 WHEN + + 9 THEN NULL WHEN ( CAST ( NULL AS INTEGER ) ) * - 70 THEN - 70 * - 16 ELSE - 38 * 15 END
----
-37723

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-5348
SELECT ALL - 3 * COUNT( - - 57 ) AS col2, 17 AS col1
----
-3
17

skipif mysql # not compatible
query II rowsort label-5348
SELECT ALL - 3 * COUNT ( - - 57 ) AS col2, 17 AS col1
----
-3
17

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

skipif mysql # not compatible
query I rowsort label-5349
SELECT DISTINCT COUNT ( * ) / 52 AS col1
----
0

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

skipif mysql # not compatible
query I rowsort label-5350
SELECT ALL + 40 + + + CAST ( NULL AS INTEGER ) + + + CAST ( - 99 AS INTEGER ) AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5351
SELECT ALL CAST( + + 74 AS SIGNED )
----
74

skipif mysql # not compatible
query I rowsort label-5351
SELECT ALL CAST ( + + 74 AS INTEGER )
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-5352
SELECT - 54 - + MIN( - 56 ) AS col0
----
2

skipif mysql # not compatible
query I rowsort label-5352
SELECT - 54 - + MIN ( - 56 ) AS col0
----
2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5353
SELECT - ( - COUNT( * ) ) DIV 99 - - 86 + - 75 * - + 31 col1
----
2411

skipif mysql # not compatible
query I rowsort label-5353
SELECT - ( - COUNT ( * ) ) / 99 - - 86 + - 75 * - + 31 col1
----
2411

query II rowsort
SELECT - 69, + 37 AS col1
----
-69
37

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5355
SELECT 67 / - + CAST( NULL AS SIGNED ) + + ( 63 ) + - 16 + + ( + 43 ) + 18 - 13 / + NULLIF ( - MIN( ( - 36 ) ), 52 + 87 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5355
SELECT 67 / - + CAST ( NULL AS INTEGER ) + + ( 63 ) + - 16 + + ( + 43 ) + 18 - 13 / + NULLIF ( - MIN ( ( - 36 ) ), 52 + 87 )
----
NULL

query I rowsort
SELECT + + 61 * + 87 AS col2
----
5307

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5359
SELECT ALL - - 83 * - + COUNT( * ) + - 86 AS col0
----
-169

skipif mysql # not compatible
query I rowsort label-5359
SELECT ALL - - 83 * - + COUNT ( * ) + - 86 AS col0
----
-169

query I rowsort
SELECT - + 40 * - + 45 col0
----
1800

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

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

query I rowsort
SELECT - - 65 * - 6
----
-390

query II rowsort
SELECT 78 AS col1, 57 AS col0
----
78
57

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5365
SELECT + 9 * ( + 56 ) * - - 24 + - + MIN( ALL + 57 ) + 31 + CAST( NULL AS SIGNED ) * + 57 * + 41
----
NULL

skipif mysql # not compatible
query I rowsort label-5365
SELECT + 9 * ( + 56 ) * - - 24 + - + MIN ( ALL + 57 ) + 31 + CAST ( NULL AS INTEGER ) * + 57 * + 41
----
NULL

query I rowsort
SELECT ALL - 6 + - 21 - + CASE ( - + 70 ) WHEN + 58 THEN NULL WHEN - 85 * - 65 * + 13 THEN NULL ELSE - 35 END + - NULLIF ( - 68, 27 ) AS col2
----
76

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

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

query I rowsort
SELECT 30 + - - 47
----
77

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

query I rowsort
SELECT ALL 29 + 22 * - - 84 AS col1
----
1877

query I rowsort
SELECT 20 + - 44 col0
----
-24

query II rowsort
SELECT ALL - 17 * 34 AS col2, + 27 AS col0
----
-578
27

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-5373
SELECT COUNT( * ) + 58 DIV 2 - - 4 AS col1, - 71 + + - 59 * - CAST( NULL AS SIGNED ) AS col2
----
34
NULL

skipif mysql # not compatible
query II rowsort label-5373
SELECT COUNT ( * ) + 58 / 2 - - 4 AS col1, - 71 + + - 59 * - CAST ( NULL AS INTEGER ) AS col2
----
34
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5374
SELECT ALL MIN( - 54 ) + - 40 * - + 59 * + 58 AS col0
----
136826

skipif mysql # not compatible
query I rowsort label-5374
SELECT ALL MIN ( - 54 ) + - 40 * - + 59 * + 58 AS col0
----
136826

query I rowsort
SELECT ALL + 44 + + 29
----
73

query I rowsort
SELECT 55 + - 90
----
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-5377
SELECT 58 * MAX( + 89 ) AS col2
----
5162

skipif mysql # not compatible
query I rowsort label-5377
SELECT 58 * MAX ( + 89 ) AS col2
----
5162

query I rowsort
SELECT 64 + + 75 col0
----
139

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5379
SELECT + ( COALESCE ( - - NULLIF ( 41, + 37 ), + 52 ) ) * + CAST( + 34 AS SIGNED ) col1
----
1394

skipif mysql # not compatible
query I rowsort label-5379
SELECT + ( COALESCE ( - - NULLIF ( 41, + 37 ), + 52 ) ) * + CAST ( + 34 AS INTEGER ) col1
----
1394

query I rowsort
SELECT ( - + 15 ) + + 98
----
83

onlyif mysql # DIV for integer division: 
query I rowsort label-5381
SELECT ALL + - 35 DIV - 24 - - + 74 AS col1
----
75

skipif mysql # not compatible
query I rowsort label-5381
SELECT ALL + - 35 / - 24 - - + 74 AS col1
----
75

onlyif mysql # DIV for integer division: 
query I rowsort label-5382
SELECT 95 DIV + ( - 49 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-5382
SELECT 95 / + ( - 49 ) AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5383
SELECT + MAX( - + 23 ) AS col2
----
-23

skipif mysql # not compatible
query I rowsort label-5383
SELECT + MAX ( - + 23 ) AS col2
----
-23

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5384
SELECT ALL 2 DIV COUNT( * ) AS col2
----
2

skipif mysql # not compatible
query I rowsort label-5384
SELECT ALL 2 / COUNT ( * ) AS col2
----
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5385
SELECT DISTINCT - SUM( - CAST( CAST( 26 AS DECIMAL ) AS SIGNED ) ) * - COUNT( * ) AS col2
----
-26

skipif mysql # not compatible
query I rowsort label-5385
SELECT DISTINCT - SUM ( - CAST ( CAST ( 26 AS REAL ) AS INTEGER ) ) * - COUNT ( * ) AS col2
----
-26

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

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

query I rowsort
SELECT ALL - + 31 * 7
----
-217

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5388
SELECT + - CASE - 18 WHEN - CAST( NULL AS SIGNED ) THEN + 66 WHEN + 10 - - 49 THEN + + 12 * + 82 + MAX( DISTINCT 61 ) + 14 ELSE CASE 14 WHEN COUNT( * ) * 59 + 43 THEN NULL WHEN - SUM( 4 ) / + 71 THEN - COUNT( * ) ELSE 69 END END col1
----
-69

skipif mysql # not compatible
query I rowsort label-5388
SELECT + - CASE - 18 WHEN - CAST ( NULL AS INTEGER ) THEN + 66 WHEN + 10 - - 49 THEN + + 12 * + 82 + MAX ( DISTINCT 61 ) + 14 ELSE CASE 14 WHEN COUNT ( * ) * 59 + 43 THEN NULL WHEN - SUM ( 4 ) / + 71 THEN - COUNT ( * ) ELSE 69 END END col1
----
-69

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

query I rowsort
SELECT - NULLIF ( ( - 3 ), 10 ) AS col2
----
3

query I rowsort
SELECT 43 * + 4
----
172

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5392
SELECT DISTINCT - - 89 * - 65 - COALESCE ( CAST( NULL AS SIGNED ), - - 21 ) AS col2
----
-5806

skipif mysql # not compatible
query I rowsort label-5392
SELECT DISTINCT - - 89 * - 65 - COALESCE ( CAST ( NULL AS INTEGER ), - - 21 ) AS col2
----
-5806

query I rowsort
SELECT 23 * - 45 + - 74
----
-1109

query I rowsort
SELECT ALL + 74 + - + 97 col2
----
-23

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5395
SELECT ALL - COUNT( * ) + - + ( + + 85 ) + - 65 + + + 23 - 35 + - 63 / - - 26 * - - CAST( 58 AS SIGNED ) - CASE - 38 WHEN + NULLIF ( 72, + 77 ) * 90 THEN NULL WHEN + CAST( 31 AS SIGNED ) THEN - 31 * + 69 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5395
SELECT ALL - COUNT ( * ) + - + ( + + 85 ) + - 65 + + + 23 - 35 + - 63 / - - 26 * - - CAST ( 58 AS INTEGER ) - CASE - 38 WHEN + NULLIF ( 72, + 77 ) * 90 THEN NULL WHEN + CAST ( 31 AS INTEGER ) THEN - 31 * + 69 END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5396
SELECT DISTINCT NULLIF ( COALESCE ( + + 75, - - 77 + NULLIF ( - + 25, - + 4 ) * + 71 * - 56 * - COUNT( - 10 ), + NULLIF ( + COUNT( * ), 88 * 91 ) ), - 58 * 35 ) * + CASE AVG ( + 57 ) / - 62 WHEN 75 / - 17 + 73 THEN NULL WHEN + NULLIF ( - 71, 88 + - ( + COUNT( * ) + 80 * - 77 ) ) THEN + 45 WHEN - 96 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-5396
SELECT DISTINCT NULLIF ( COALESCE ( + + 75, - - 77 + NULLIF ( - + 25, - + 4 ) * + 71 * - 56 * - COUNT ( - 10 ), + NULLIF ( + COUNT ( * ), 88 * 91 ) ), - 58 * 35 ) * + CASE AVG ( + 57 ) / - 62 WHEN 75 / - 17 + 73 THEN NULL WHEN + NULLIF ( - 71, 88 + - ( + COUNT ( * ) + 80 * - 77 ) ) THEN + 45 WHEN - 96 THEN NULL END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5397
SELECT 20 * + + COUNT( * ) - - 9 * - 43 * - 54 * CAST( NULL AS SIGNED ) * 65 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5397
SELECT 20 * + + COUNT ( * ) - - 9 * - 43 * - 54 * CAST ( NULL AS INTEGER ) * 65 AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5398
SELECT DISTINCT + ( 63 ) * - CAST( - 54 AS SIGNED )
----
3402

skipif mysql # not compatible
query I rowsort label-5398
SELECT DISTINCT + ( 63 ) * - CAST ( - 54 AS INTEGER )
----
3402

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

skipif mysql # not compatible
query I rowsort label-5399
SELECT COUNT ( * ) / - COUNT ( * ) AS col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5400
SELECT DISTINCT + COUNT( * ) * - MIN( ALL + 27 )
----
-27

skipif mysql # not compatible
query I rowsort label-5400
SELECT DISTINCT + COUNT ( * ) * - MIN ( ALL + 27 )
----
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-5401
SELECT ALL SUM( ALL + + 89 ) AS col1
----
89

skipif mysql # not compatible
query I rowsort label-5401
SELECT ALL SUM ( ALL + + 89 ) AS col1
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-5402
SELECT DISTINCT - MAX( - + 40 ) - + ( - 51 ) AS col2
----
91

skipif mysql # not compatible
query I rowsort label-5402
SELECT DISTINCT - MAX ( - + 40 ) - + ( - 51 ) AS col2
----
91

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-5404
SELECT DISTINCT 0, SUM( ALL + 43 ) AS col1
----
0
43

skipif mysql # not compatible
query II rowsort label-5404
SELECT DISTINCT 0, SUM ( ALL + 43 ) AS col1
----
0
43

query I rowsort
SELECT 20 - - - 60 AS col0
----
-40

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5407
SELECT DISTINCT ( - 3 ) * + COALESCE ( - COUNT( * ), COUNT( * ) - - - 54 - - 30 * - - COUNT( ALL 23 ) * + + 8 * 37 * + 51 ) * + 91
----
273

skipif mysql # not compatible
query I rowsort label-5407
SELECT DISTINCT ( - 3 ) * + COALESCE ( - COUNT ( * ), COUNT ( * ) - - - 54 - - 30 * - - COUNT ( ALL 23 ) * + + 8 * 37 * + 51 ) * + 91
----
273

query I rowsort
SELECT 58 * 22 col0
----
1276

query II rowsort
SELECT ALL + 45 AS col0, + 9
----
45
9

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5411
SELECT + COUNT( * ) DIV + - 80 * + + 40 - + 35 + + 73 + 80 + + MIN( - + 82 ) * - 65 AS col1
----
5448

skipif mysql # not compatible
query I rowsort label-5411
SELECT + COUNT ( * ) / + - 80 * + + 40 - + 35 + + 73 + 80 + + MIN ( - + 82 ) * - 65 AS col1
----
5448

onlyif mysql # aggregate syntax: 
query I rowsort label-5412
SELECT + MAX( + 63 ) * - + 43 * 37
----
-100233

skipif mysql # not compatible
query I rowsort label-5412
SELECT + MAX ( + 63 ) * - + 43 * 37
----
-100233

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5413
SELECT - 75 DIV COUNT( * ) + + 17
----
-58

skipif mysql # not compatible
query I rowsort label-5413
SELECT - 75 / COUNT ( * ) + + 17
----
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-5414
SELECT ALL - COUNT( * ) * - 11 + - + 48 + - 38 + - - ( + 61 ) * - + 15
----
-990

skipif mysql # not compatible
query I rowsort label-5414
SELECT ALL - COUNT ( * ) * - 11 + - + 48 + - 38 + - - ( + 61 ) * - + 15
----
-990

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5415
SELECT DISTINCT 20 DIV - 59 - - + 21 * COUNT( * )
----
21

skipif mysql # not compatible
query I rowsort label-5415
SELECT DISTINCT 20 / - 59 - - + 21 * COUNT ( * )
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-5416
SELECT DISTINCT + + 91 * + COALESCE ( - + COUNT( * ), - + CASE 50 WHEN + + ( COUNT( * ) ) THEN NULLIF ( ( 19 ), 88 ) WHEN + 0 / + 52 + - 83 THEN 25 + + 72 WHEN + 5 THEN NULL ELSE NULL END - - 20 ) + MAX( - ( - 76 ) )
----
-15

skipif mysql # not compatible
query I rowsort label-5416
SELECT DISTINCT + + 91 * + COALESCE ( - + COUNT ( * ), - + CASE 50 WHEN + + ( COUNT ( * ) ) THEN NULLIF ( ( 19 ), 88 ) WHEN + 0 / + 52 + - 83 THEN 25 + + 72 WHEN + 5 THEN NULL ELSE NULL END - - 20 ) + MAX ( - ( - 76 ) )
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-5417
SELECT ALL - ( - 99 ) * - COUNT( * ) + - + 55 * + 32 + - + MIN( 26 )
----
-1885

skipif mysql # not compatible
query I rowsort label-5417
SELECT ALL - ( - 99 ) * - COUNT ( * ) + - + 55 * + 32 + - + MIN ( 26 )
----
-1885

query II rowsort
SELECT + 8, 94 AS col2
----
8
94

onlyif mysql # aggregate syntax: 
query I rowsort label-5419
SELECT SUM( 54 ) AS col1
----
54

skipif mysql # not compatible
query I rowsort label-5419
SELECT SUM ( 54 ) AS col1
----
54

query I rowsort
SELECT ALL + 90 * + 76 + - + 89
----
6751

query I rowsort
SELECT ALL - 7 * 57 + 43 * + ( + 15 ) * - 91 - - 62 AS col1
----
-59032

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5422
SELECT 43 * + COUNT( * ) + + COALESCE ( - CASE - 28 WHEN CAST( + 79 AS DECIMAL ) / + COUNT( * ) THEN 28 WHEN + + 54 THEN NULL WHEN - - 44 THEN NULL ELSE + 0 END, - 77, - 3 * 56 + 26 * - 55 )
----
43

skipif mysql # not compatible
query I rowsort label-5422
SELECT 43 * + COUNT ( * ) + + COALESCE ( - CASE - 28 WHEN CAST ( + 79 AS REAL ) / + COUNT ( * ) THEN 28 WHEN + + 54 THEN NULL WHEN - - 44 THEN NULL ELSE + 0 END, - 77, - 3 * 56 + 26 * - 55 )
----
43

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5424
SELECT - 62 * COUNT( * ) + + 0 + + 39 + - 15 AS col0
----
-38

skipif mysql # not compatible
query I rowsort label-5424
SELECT - 62 * COUNT ( * ) + + 0 + + 39 + - 15 AS col0
----
-38

onlyif mysql # DIV for integer division: 
query I rowsort label-5425
SELECT ALL - 44 - - + 90 + + 38 DIV 66 col0
----
46

skipif mysql # not compatible
query I rowsort label-5425
SELECT ALL - 44 - - + 90 + + 38 / 66 col0
----
46

onlyif mysql # aggregate syntax: 
query II rowsort label-5426
SELECT - MIN( ALL + 82 ) * - 95 + + 39 * - - NULLIF ( 8, + - COUNT( * ) ) col2, + COUNT( * ) - + 83 AS col2
----
8102
-82

skipif mysql # not compatible
query II rowsort label-5426
SELECT - MIN ( ALL + 82 ) * - 95 + + 39 * - - NULLIF ( 8, + - COUNT ( * ) ) col2, + COUNT ( * ) - + 83 AS col2
----
8102
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-5427
SELECT ALL 76 * + MIN( + 45 ) AS col0
----
3420

skipif mysql # not compatible
query I rowsort label-5427
SELECT ALL 76 * + MIN ( + 45 ) AS col0
----
3420

onlyif mysql # aggregate syntax: 
query II rowsort label-5428
SELECT - CASE COUNT( * ) WHEN - 17 THEN 73 ELSE SUM( - 8 ) * - - COUNT( * ) END - + 24 - - - 11 AS col0, - ( - + 69 ) AS col0
----
-27
69

skipif mysql # not compatible
query II rowsort label-5428
SELECT - CASE COUNT ( * ) WHEN - 17 THEN 73 ELSE SUM ( - 8 ) * - - COUNT ( * ) END - + 24 - - - 11 AS col0, - ( - + 69 ) AS col0
----
-27
69

query II rowsort
SELECT - 36 AS col2, 89 * + 68 + - ( 50 )
----
-36
6002

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5430
SELECT - ( + 91 ) DIV - + 78 - - COUNT( * ) + 46 DIV + 64
----
2

skipif mysql # not compatible
query I rowsort label-5430
SELECT - ( + 91 ) / - + 78 - - COUNT ( * ) + 46 / + 64
----
2

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5432
SELECT + ( - 64 ) + - + 69 * + 57 * + 75 + + + 71 + + - 79 * - CASE + AVG ( DISTINCT - 28 ) WHEN - CASE + 83 WHEN 3 + 87 THEN 92 + 4 * + CAST( 46 AS SIGNED ) WHEN 79 THEN + ( CAST( NULL AS SIGNED ) ) END * ( + 20 ) + ( - 52 ) / - 92 THEN - ( 3 ) WHEN 56 * MAX( ALL ( + 36 ) ) + + 12 / 52 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-5432
SELECT + ( - 64 ) + - + 69 * + 57 * + 75 + + + 71 + + - 79 * - CASE + AVG ( DISTINCT - 28 ) WHEN - CASE + 83 WHEN 3 + 87 THEN 92 + 4 * + CAST ( 46 AS INTEGER ) WHEN 79 THEN + ( CAST ( NULL AS INTEGER ) ) END * ( + 20 ) + ( - 52 ) / - 92 THEN - ( 3 ) WHEN 56 * MAX ( ALL ( + 36 ) ) + + 12 / 52 THEN NULL END
----
NULL

query I rowsort
SELECT ALL + 81 * 40 AS col2
----
3240

query I rowsort
SELECT - NULLIF ( 89, ( 49 ) ) + AVG ( ALL CASE - 68 WHEN + + COALESCE ( 29, + 61 * + 51 ) THEN - 29 * 70 WHEN + 7 THEN NULL END ) * + 26 AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5435
SELECT - 81 DIV + 13 AS col1
----
-6

skipif mysql # not compatible
query I rowsort label-5435
SELECT - 81 / + 13 AS col1
----
-6

onlyif mysql # aggregate syntax: 
query II rowsort label-5436
SELECT ALL + 91, MAX( DISTINCT - 72 ) AS col0
----
91
-72

skipif mysql # not compatible
query II rowsort label-5436
SELECT ALL + 91, MAX ( DISTINCT - 72 ) AS col0
----
91
-72

query II rowsort
SELECT DISTINCT 15 AS col0, - 10
----
15
-10

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5439
SELECT DISTINCT + + ( + CAST( - 56 AS SIGNED ) ) * - 90 * ( - - CASE WHEN NOT ( 31 ) IS NOT NULL THEN - NULLIF ( + 16, 31 ) END ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5439
SELECT DISTINCT + + ( + CAST ( - 56 AS INTEGER ) ) * - 90 * ( - - CASE WHEN NOT ( 31 ) IS NOT NULL THEN - NULLIF ( + 16, 31 ) END ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5440
SELECT + NULLIF ( + COUNT( * ), + 63 * + 91 * - - 57 + + 11 ) + 66, + ( - ( - + 54 ) ) AS col2
----
67
54

skipif mysql # not compatible
query II rowsort label-5440
SELECT + NULLIF ( + COUNT ( * ), + 63 * + 91 * - - 57 + + 11 ) + 66, + ( - ( - + 54 ) ) AS col2
----
67
54

query I rowsort
SELECT + - 55 * + - 26
----
1430

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5443
SELECT - 67 * + 96 * - 17 * + + ( + CASE + 53 WHEN - 80 THEN 41 * 99 + - ( + 99 ) * + CASE + SUM( - 54 ) * - 27 WHEN 96 THEN NULL WHEN 39 THEN - NULLIF ( COUNT( * ), 32 ) * + 69 ELSE 78 END ELSE NULL END ) * + 83 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5443
SELECT - 67 * + 96 * - 17 * + + ( + CASE + 53 WHEN - 80 THEN 41 * 99 + - ( + 99 ) * + CASE + SUM ( - 54 ) * - 27 WHEN 96 THEN NULL WHEN 39 THEN - NULLIF ( COUNT ( * ), 32 ) * + 69 ELSE 78 END ELSE NULL END ) * + 83 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5444
SELECT + 36 + + + MIN( - 86 ) col1
----
-50

skipif mysql # not compatible
query I rowsort label-5444
SELECT + 36 + + + MIN ( - 86 ) col1
----
-50

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

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

query I rowsort
SELECT ALL 20 + + 52 * - 65
----
-3360

onlyif mysql # aggregate syntax: 
query II rowsort label-5447
SELECT - COUNT( * ), 64 * 80 + + COUNT( * ) AS col0
----
-1
5121

skipif mysql # not compatible
query II rowsort label-5447
SELECT - COUNT ( * ), 64 * 80 + + COUNT ( * ) AS col0
----
-1
5121

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

query II rowsort
SELECT - 67 AS col2, - 28
----
-67
-28

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5450
SELECT ALL + SUM( - 77 ) * + - NULLIF ( + ( + CAST( NULL AS SIGNED ) ), - - 83 / - 43 + + 44 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5450
SELECT ALL + SUM ( - 77 ) * + - NULLIF ( + ( + CAST ( NULL AS INTEGER ) ), - - 83 / - 43 + + 44 )
----
NULL

query I rowsort
SELECT ALL 47 + 12
----
59

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5452
SELECT ALL + CAST( ( + CAST( 35 AS SIGNED ) ) AS SIGNED ) DIV - - COUNT( * ) + - 85 + - + COUNT( * ) AS col0
----
-51

skipif mysql # not compatible
query I rowsort label-5452
SELECT ALL + CAST ( ( + CAST ( 35 AS INTEGER ) ) AS INTEGER ) / - - COUNT ( * ) + - 85 + - + COUNT ( * ) AS col0
----
-51

query I rowsort
SELECT + + 28 * NULLIF ( 14, - 25 + - 30 )
----
392

onlyif mysql # DIV for integer division: 
query I rowsort label-5454
SELECT ALL + - 47 DIV + 38 + + 82 AS col2
----
81

skipif mysql # not compatible
query I rowsort label-5454
SELECT ALL + - 47 / + 38 + + 82 AS col2
----
81

query I rowsort
SELECT ALL 9 * 72 AS col1
----
648

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5456
SELECT + 31 * - CAST( NULL AS DECIMAL ) * + 35 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5456
SELECT + 31 * - CAST ( NULL AS REAL ) * + 35 AS col1
----
NULL

query I rowsort
SELECT + NULLIF ( 17, AVG ( 15 ) )
----
17

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5459
SELECT ALL + SUM( - 24 ) * - - 56 - + 17 + - + 40 + 49 + + ( 96 ) * + ( - NULLIF ( 39, 64 * COUNT( * ) ) ) * + 18
----
-68744

skipif mysql # not compatible
query I rowsort label-5459
SELECT ALL + SUM ( - 24 ) * - - 56 - + 17 + - + 40 + 49 + + ( 96 ) * + ( - NULLIF ( 39, 64 * COUNT ( * ) ) ) * + 18
----
-68744

onlyif mysql # aggregate syntax: 
query I rowsort label-5460
SELECT DISTINCT + NULLIF ( + - 14, + COUNT( * ) )
----
-14

skipif mysql # not compatible
query I rowsort label-5460
SELECT DISTINCT + NULLIF ( + - 14, + COUNT ( * ) )
----
-14

query I rowsort
SELECT - 65 * 88
----
-5720

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

skipif mysql # not compatible
query I rowsort label-5462
SELECT - COUNT ( - + ( + 77 ) ) * - + ( - 71 ) + 87 AS col1
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-5463
SELECT - COALESCE ( + COUNT( * ), + 93 * - 95 * 59 + 16 ) * + 84 AS col2
----
-84

skipif mysql # not compatible
query I rowsort label-5463
SELECT - COALESCE ( + COUNT ( * ), + 93 * - 95 * 59 + 16 ) * + 84 AS col2
----
-84

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5464
SELECT + CAST( + 95 AS SIGNED ) AS col0
----
95

skipif mysql # not compatible
query I rowsort label-5464
SELECT + CAST ( + 95 AS INTEGER ) AS col0
----
95

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5465
SELECT ALL + 95 * COALESCE ( + - 70, MAX( DISTINCT + ( - 76 ) ) DIV + 76 + + 7 - - COALESCE ( NULLIF ( - 50, + 29 ), + 52 * - 0 ) * COUNT( ALL + 2 * - 82 ) ) AS col1
----
-6650

skipif mysql # not compatible
query I rowsort label-5465
SELECT ALL + 95 * COALESCE ( + - 70, MAX ( DISTINCT + ( - 76 ) ) / + 76 + + 7 - - COALESCE ( NULLIF ( - 50, + 29 ), + 52 * - 0 ) * COUNT ( ALL + 2 * - 82 ) ) AS col1
----
-6650

query I rowsort
SELECT + COALESCE ( - 36, 30 * - 28 ) * + - ( + 13 ) + - 81
----
387

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5467
SELECT - CAST( NULL AS SIGNED ) * COUNT( * ) AS col1, 7 AS col2
----
NULL
7

skipif mysql # not compatible
query II rowsort label-5467
SELECT - CAST ( NULL AS INTEGER ) * COUNT ( * ) AS col1, 7 AS col2
----
NULL
7

query I rowsort
SELECT COALESCE ( + + 31, 15 ) AS col2
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-5469
SELECT - 81 + - 17 + - + 59 * - 8 * ( - - NULLIF ( - COUNT( * ), - 21 + - 38 + - - 42 ) )
----
-570

skipif mysql # not compatible
query I rowsort label-5469
SELECT - 81 + - 17 + - + 59 * - 8 * ( - - NULLIF ( - COUNT ( * ), - 21 + - 38 + - - 42 ) )
----
-570

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5470
SELECT ALL ( - 32 ), ( 57 ) + CAST( + 7 AS SIGNED ) * 38 + - COUNT( * ) + + 40 AS col2
----
-32
362

skipif mysql # not compatible
query II rowsort label-5470
SELECT ALL ( - 32 ), ( 57 ) + CAST ( + 7 AS INTEGER ) * 38 + - COUNT ( * ) + + 40 AS col2
----
-32
362

query I rowsort
SELECT ALL 63 * + 62 AS col0
----
3906

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5473
SELECT ALL COUNT( * ) * 94 + - 6 * + 39
----
-140

skipif mysql # not compatible
query I rowsort label-5473
SELECT ALL COUNT ( * ) * 94 + - 6 * + 39
----
-140

query I rowsort
SELECT - 51 + - 31 AS col1
----
-82

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

skipif mysql # not compatible
query I rowsort label-5475
SELECT - 21 * - - COUNT ( * )
----
-21

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5476
SELECT + 74 - COALESCE ( 68, CAST( + CAST( - 41 AS SIGNED ) AS SIGNED ), - 38 DIV CAST( + ( - 15 ) AS SIGNED ) + + + 22 + + 44 + - 30 * + 64 + + 0 ) + CAST( - 43 + 45 * + 86 AS SIGNED ) * - 87
----
-332943

skipif mysql # not compatible
query I rowsort label-5476
SELECT + 74 - COALESCE ( 68, CAST ( + CAST ( - 41 AS INTEGER ) AS INTEGER ), - 38 / CAST ( + ( - 15 ) AS INTEGER ) + + + 22 + + 44 + - 30 * + 64 + + 0 ) + CAST ( - 43 + 45 * + 86 AS INTEGER ) * - 87
----
-332943

onlyif mysql # aggregate syntax: 
query I rowsort label-5477
SELECT + MAX( ALL + - COALESCE ( ( + 17 ), 41, - + ( 94 ) ) )
----
-17

skipif mysql # not compatible
query I rowsort label-5477
SELECT + MAX ( ALL + - COALESCE ( ( + 17 ), 41, - + ( 94 ) ) )
----
-17

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5478
SELECT + 48 DIV + COUNT( ALL - 83 ) AS col1
----
48

skipif mysql # not compatible
query I rowsort label-5478
SELECT + 48 / + COUNT ( ALL - 83 ) AS col1
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-5479
SELECT DISTINCT + COUNT( ALL + - 23 ) + + 63 * - 62 AS col0
----
-3905

skipif mysql # not compatible
query I rowsort label-5479
SELECT DISTINCT + COUNT ( ALL + - 23 ) + + 63 * - 62 AS col0
----
-3905

onlyif mysql # aggregate syntax: 
query I rowsort label-5480
SELECT ALL + + 61 + + + 80 + + 99 * + COUNT( * ) + - - MIN( DISTINCT + - 76 ) * + 16 * - CASE 62 WHEN - COALESCE ( COUNT( * ), + - 31 * 3 ) / - 70 + 41 THEN 53 WHEN + COUNT( * ) THEN 12 WHEN 81 THEN - 63 + - 19 END
----
NULL

skipif mysql # not compatible
query I rowsort label-5480
SELECT ALL + + 61 + + + 80 + + 99 * + COUNT ( * ) + - - MIN ( DISTINCT + - 76 ) * + 16 * - CASE 62 WHEN - COALESCE ( COUNT ( * ), + - 31 * 3 ) / - 70 + 41 THEN 53 WHEN + COUNT ( * ) THEN 12 WHEN 81 THEN - 63 + - 19 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5481
SELECT ( + - 61 ) + + + COUNT( * )
----
-60

skipif mysql # not compatible
query I rowsort label-5481
SELECT ( + - 61 ) + + + COUNT ( * )
----
-60

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5482
SELECT DISTINCT - CASE WHEN NOT NULL NOT IN ( 19, - CAST( + 9 AS SIGNED ), 75 - AVG ( + + 55 ) / - 78 - 99 ) THEN + 53 END * - + 1 * - 37 + - 20 * 10 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5482
SELECT DISTINCT - CASE WHEN NOT NULL NOT IN ( 19, - CAST ( + 9 AS INTEGER ), 75 - AVG ( + + 55 ) / - 78 - 99 ) THEN + 53 END * - + 1 * - 37 + - 20 * 10 AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-5483
SELECT + 14 DIV + 16 - - - 31, 96 col2
----
-31
96

skipif mysql # not compatible
query II rowsort label-5483
SELECT + 14 / + 16 - - - 31, 96 col2
----
-31
96

onlyif mysql # aggregate syntax: 
query I rowsort label-5484
SELECT ALL 54 + + + CASE - - 80 WHEN - COUNT( * ) THEN + + COALESCE ( - - 12, + 17 + 56 + - COUNT( * ) * 75 * + 22 / 97 ) - 17 WHEN + 94 * 77 - 92 THEN - COUNT( * ) ELSE NULL END + + 79 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5484
SELECT ALL 54 + + + CASE - - 80 WHEN - COUNT ( * ) THEN + + COALESCE ( - - 12, + 17 + 56 + - COUNT ( * ) * 75 * + 22 / 97 ) - 17 WHEN + 94 * 77 - 92 THEN - COUNT ( * ) ELSE NULL END + + 79 AS col1
----
NULL

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

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

query I rowsort
SELECT - 37 - + 95 + - 18 * ( + ( 79 ) ) AS col1
----
-1554

query I rowsort
SELECT 67 - + + 47 * + 82 AS col2
----
-3787

query I rowsort
SELECT ALL - - 57 + + 55 AS col2
----
112

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5489
SELECT 16 * + - 34 + 28 - + + 72 + MIN( - 97 ) + 53 * NULLIF ( - 9, 85 ) + + CAST( NULL AS SIGNED ) - - 60 * - 96 + COALESCE ( COUNT( * ), 90 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5489
SELECT 16 * + - 34 + 28 - + + 72 + MIN ( - 97 ) + 53 * NULLIF ( - 9, 85 ) + + CAST ( NULL AS INTEGER ) - - 60 * - 96 + COALESCE ( COUNT ( * ), 90 )
----
NULL

query I rowsort
SELECT 13 * 76
----
988

query II rowsort
SELECT + 55 col1, 22 - 18
----
55
4

query I rowsort
SELECT DISTINCT - 43 - + - 32 AS col2
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-5493
SELECT ALL 66 * + - COUNT( * ) * 53 AS col0
----
-3498

skipif mysql # not compatible
query I rowsort label-5493
SELECT ALL 66 * + - COUNT ( * ) * 53 AS col0
----
-3498

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5494
SELECT 62 * - ( - - 14 ) * + ( - 9 ) * 53 + + 85 + 92 + - - ( + CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-5494
SELECT 62 * - ( - - 14 ) * + ( - 9 ) * 53 + + 85 + 92 + - - ( + CAST ( NULL AS INTEGER ) )
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5496
SELECT - CASE 80 WHEN - 8 THEN + 9 WHEN - 98 * - 47 THEN NULL ELSE NULL END * + + 37 + - COUNT( * ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5496
SELECT - CASE 80 WHEN - 8 THEN + 9 WHEN - 98 * - 47 THEN NULL ELSE NULL END * + + 37 + - COUNT ( * ) col0
----
NULL

query I rowsort
SELECT ALL 59 - 31
----
28

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5498
SELECT 26 DIV 75 * - ( - - 20 ) + + COUNT( * ) * - - 85 + - 0 * 65
----
85

skipif mysql # not compatible
query I rowsort label-5498
SELECT 26 / 75 * - ( - - 20 ) + + COUNT ( * ) * - - 85 + - 0 * 65
----
85

query I rowsort
SELECT 29 + + + 76 AS col2
----
105

query II rowsort
SELECT + 27 AS col2, 20
----
27
20

onlyif mysql # aggregate syntax: 
query II rowsort label-5501
SELECT DISTINCT - 0 col0, 15 * + + COUNT( * )
----
0
15

skipif mysql # not compatible
query II rowsort label-5501
SELECT DISTINCT - 0 col0, 15 * + + COUNT ( * )
----
0
15

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5502
SELECT 93 AS col1, CAST( NULL AS SIGNED ) - 64 + - 60 * - 95 * - 76 * 91 * CASE - + 71 WHEN - 14 * - CAST( NULL AS SIGNED ) - + 79 THEN + - 15 END AS col1
----
93
NULL

skipif mysql # not compatible
query II rowsort label-5502
SELECT 93 AS col1, CAST ( NULL AS INTEGER ) - 64 + - 60 * - 95 * - 76 * 91 * CASE - + 71 WHEN - 14 * - CAST ( NULL AS INTEGER ) - + 79 THEN + - 15 END AS col1
----
93
NULL

query I rowsort
SELECT 83 * + 7 * + - 18 * 70 AS col0
----
-732060

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

skipif mysql # not compatible
query II rowsort label-5504
SELECT ALL - 19, - COUNT ( * ) AS col2
----
-19
-1

query I rowsort
SELECT ALL - 64 * 12 AS col1
----
-768

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

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

query I rowsort
SELECT + 89 * 88 * - 67 + - - 8 - - - 10 * + 99
----
-525726

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5508
SELECT 95 + 68 * 43 DIV - + 51 AS col1, + COUNT( * ) * + + MAX( 12 ) - - 58 AS col2
----
38
70

skipif mysql # not compatible
query II rowsort label-5508
SELECT 95 + 68 * 43 / - + 51 AS col1, + COUNT ( * ) * + + MAX ( 12 ) - - 58 AS col2
----
38
70

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5509
SELECT + 93 * - 10 - + + MIN( 84 ) - - 0 + + COUNT( * ) + + SUM( DISTINCT 16 ) DIV - NULLIF ( + - 37, - - 70 + AVG ( 19 ) ) AS col0
----
-1013

skipif mysql # not compatible
query I rowsort label-5509
SELECT + 93 * - 10 - + + MIN ( 84 ) - - 0 + + COUNT ( * ) + + SUM ( DISTINCT 16 ) / - NULLIF ( + - 37, - - 70 + AVG ( 19 ) ) AS col0
----
-1013

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5510
SELECT ALL + 33 * MIN( DISTINCT CAST( + 83 AS SIGNED ) ) + + 0 AS col0
----
2739

skipif mysql # not compatible
query I rowsort label-5510
SELECT ALL + 33 * MIN ( DISTINCT CAST ( + 83 AS INTEGER ) ) + + 0 AS col0
----
2739

query I rowsort
SELECT + 19 + - 97 - + 40 * - 46
----
1762

query I rowsort
SELECT 74 + + - 4 AS col0
----
70

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

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

query I rowsort
SELECT ALL + + 9 + + 92
----
101

query I rowsort
SELECT - 71 + 43 AS col0
----
-28

query I rowsort
SELECT ALL ( + + 92 ) + 86 * 96 AS col0
----
8348

query I rowsort
SELECT - 85 + 24 col1
----
-61

query I rowsort
SELECT ALL - + 96 + + - 47 AS col1
----
-143

onlyif mysql # aggregate syntax: 
query I rowsort label-5519
SELECT DISTINCT MIN( ALL + 80 ) AS col2
----
80

skipif mysql # not compatible
query I rowsort label-5519
SELECT DISTINCT MIN ( ALL + 80 ) AS col2
----
80

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query III rowsort label-5520
SELECT DISTINCT - COUNT( * ), ( + - 98 ) + + 4 * + CAST( - - COUNT( * ) AS SIGNED ) AS col2, - 30 AS col2
----
-1
-94
-30

skipif mysql # not compatible
query III rowsort label-5520
SELECT DISTINCT - COUNT ( * ), ( + - 98 ) + + 4 * + CAST ( - - COUNT ( * ) AS INTEGER ) AS col2, - 30 AS col2
----
-1
-94
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-5521
SELECT ALL + 15 - - COALESCE ( + 0, COUNT( * ) + + 65 + - 40 - - 48 * COUNT( * ) ) AS col2
----
15

skipif mysql # not compatible
query I rowsort label-5521
SELECT ALL + 15 - - COALESCE ( + 0, COUNT ( * ) + + 65 + - 40 - - 48 * COUNT ( * ) ) AS col2
----
15

query II rowsort
SELECT 63 AS col1, - 52
----
63
-52

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5523
SELECT - ( - - CAST( - 66 AS SIGNED ) ) * - 25 col1
----
-1650

skipif mysql # not compatible
query I rowsort label-5523
SELECT - ( - - CAST ( - 66 AS INTEGER ) ) * - 25 col1
----
-1650

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5524
SELECT 12 * - NULLIF ( + 54, 62 / + - COALESCE ( + 7, 85 ) * - 78 + - 61 * + 84 * + - CASE + + 51 WHEN - + 75 * - 1 + + 5 * ( 45 * 42 ) THEN + 78 * ( - ( 24 ) ) WHEN + 47 THEN NULL ELSE - CAST( 0 AS SIGNED ) * - 87 END ) AS col1
----
-648

skipif mysql # not compatible
query I rowsort label-5524
SELECT 12 * - NULLIF ( + 54, 62 / + - COALESCE ( + 7, 85 ) * - 78 + - 61 * + 84 * + - CASE + + 51 WHEN - + 75 * - 1 + + 5 * ( 45 * 42 ) THEN + 78 * ( - ( 24 ) ) WHEN + 47 THEN NULL ELSE - CAST ( 0 AS INTEGER ) * - 87 END ) AS col1
----
-648

query I rowsort
SELECT DISTINCT - 23 * - 49 AS col1
----
1127

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

skipif mysql # not compatible
query I rowsort label-5526
SELECT DISTINCT + COUNT ( * ) / + + 65
----
0

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

skipif mysql # not compatible
query I rowsort label-5527
SELECT DISTINCT + COUNT ( * ) * + - MIN ( ALL + ( 93 ) ) * - 84 - - 93
----
7905

query I rowsort
SELECT 39 * - - 94 AS col2
----
3666

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5529
SELECT DISTINCT + CAST( - 68 AS SIGNED ) * + + CAST( + 23 AS SIGNED ) * MIN( DISTINCT + 59 ) + - + CAST( NULL AS SIGNED ) - 51 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5529
SELECT DISTINCT + CAST ( - 68 AS INTEGER ) * + + CAST ( + 23 AS INTEGER ) * MIN ( DISTINCT + 59 ) + - + CAST ( NULL AS INTEGER ) - 51 AS col2
----
NULL

query I rowsort
SELECT 48 * + - 98 AS col1
----
-4704

onlyif mysql # DIV for integer division: 
query I rowsort label-5531
SELECT - 50 DIV - 77 - + - 2
----
2

skipif mysql # not compatible
query I rowsort label-5531
SELECT - 50 / - 77 - + - 2
----
2

onlyif mysql # DIV for integer division: 
query I rowsort label-5532
SELECT 29 DIV - 97 * - - 74 * - + 82 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-5532
SELECT 29 / - 97 * - - 74 * - + 82 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5533
SELECT 22 * 8 + - - CASE + MAX( DISTINCT + 96 ) WHEN - 4 THEN 63 + + + 62 END
----
NULL

skipif mysql # not compatible
query I rowsort label-5533
SELECT 22 * 8 + - - CASE + MAX ( DISTINCT + 96 ) WHEN - 4 THEN 63 + + + 62 END
----
NULL

query I rowsort
SELECT ALL - 22 col2
----
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-5535
SELECT NULLIF ( - 28, - - 36 ) * + COUNT( 98 ) - 87 col2
----
-115

skipif mysql # not compatible
query I rowsort label-5535
SELECT NULLIF ( - 28, - - 36 ) * + COUNT ( 98 ) - 87 col2
----
-115

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

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

skipif mysql # not compatible
query I rowsort label-5537
SELECT + COUNT ( * ) / - 89 - + 66 AS col0
----
-66

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5538
SELECT ALL + 23 + - - CASE - 88 WHEN - 14 THEN + + CAST( NULL AS SIGNED ) + - 44 ELSE + - COUNT( * ) END + COUNT( DISTINCT 49 ) * ( 31 )
----
53

skipif mysql # not compatible
query I rowsort label-5538
SELECT ALL + 23 + - - CASE - 88 WHEN - 14 THEN + + CAST ( NULL AS INTEGER ) + - 44 ELSE + - COUNT ( * ) END + COUNT ( DISTINCT 49 ) * ( 31 )
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-5539
SELECT + COALESCE ( + - 33, - COUNT( * ), - 88 ) AS col2
----
-33

skipif mysql # not compatible
query I rowsort label-5539
SELECT + COALESCE ( + - 33, - COUNT ( * ), - 88 ) AS col2
----
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-5540
SELECT - ( 13 ) * + MIN( - 78 ) * - - COUNT( * ) + MAX( ALL - 11 ) + - - ( - 68 ) * + 83 - 4 AS col2
----
-4645

skipif mysql # not compatible
query I rowsort label-5540
SELECT - ( 13 ) * + MIN ( - 78 ) * - - COUNT ( * ) + MAX ( ALL - 11 ) + - - ( - 68 ) * + 83 - 4 AS col2
----
-4645

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5542
SELECT DISTINCT - NULLIF ( + 12, 1 ) + + - 76 + - COUNT( * ) * - 22 + + ( - + 23 )
----
-89

skipif mysql # not compatible
query I rowsort label-5542
SELECT DISTINCT - NULLIF ( + 12, 1 ) + + - 76 + - COUNT ( * ) * - 22 + + ( - + 23 )
----
-89

query I rowsort
SELECT + 60 + + 49
----
109

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

query I rowsort
SELECT ALL - 79 + + - 41 * + 71
----
-2990

query II rowsort
SELECT - + ( ( + ( + 86 ) ) ) AS col2, 16 AS col0
----
-86
16

query I rowsort
SELECT + + 41 * + + 88 * + 58
----
209264

onlyif mysql # aggregate syntax: 
query I rowsort label-5548
SELECT + - 30 + 4 * - 41 * COUNT( * ) + - 31
----
-225

skipif mysql # not compatible
query I rowsort label-5548
SELECT + - 30 + 4 * - 41 * COUNT ( * ) + - 31
----
-225

onlyif mysql # aggregate syntax: 
query I rowsort label-5549
SELECT + + COUNT( + 3 ) + 42 col1
----
43

skipif mysql # not compatible
query I rowsort label-5549
SELECT + + COUNT ( + 3 ) + 42 col1
----
43

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5550
SELECT + CAST( 16 AS SIGNED ) * + 66 AS col0
----
1056

skipif mysql # not compatible
query I rowsort label-5550
SELECT + CAST ( 16 AS INTEGER ) * + 66 AS col0
----
1056

query I rowsort
SELECT + 72 - + 4 + + 55 * - + 50 AS col2
----
-2682

onlyif mysql # DIV for integer division: 
query I rowsort label-5552
SELECT ALL 55 - + 98 DIV + + 34
----
53

skipif mysql # not compatible
query I rowsort label-5552
SELECT ALL 55 - + 98 / + + 34
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-5553
SELECT DISTINCT - SUM( 76 ) * + - 31 - CASE + 1 WHEN 12 * - COUNT( - 33 ) / + 26 THEN NULL WHEN - 32 THEN + 14 END
----
NULL

skipif mysql # not compatible
query I rowsort label-5553
SELECT DISTINCT - SUM ( 76 ) * + - 31 - CASE + 1 WHEN 12 * - COUNT ( - 33 ) / + 26 THEN NULL WHEN - 32 THEN + 14 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5554
SELECT DISTINCT CASE 5 WHEN MAX( DISTINCT + 57 ) + - 8 THEN + + 2 WHEN ( - 12 ) THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-5554
SELECT DISTINCT CASE 5 WHEN MAX ( DISTINCT + 57 ) + - 8 THEN + + 2 WHEN ( - 12 ) THEN NULL END
----
NULL

query I rowsort
SELECT - 48 + + + 6
----
-42

query I rowsort
SELECT - 66 * ( + 74 )
----
-4884

onlyif mysql # DIV for integer division: 
query I rowsort label-5557
SELECT + 36 + + + 21 DIV + 25 + + 69
----
105

skipif mysql # not compatible
query I rowsort label-5557
SELECT + 36 + + + 21 / + 25 + + 69
----
105

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

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

query I rowsort
SELECT + 12 + 77 + 63
----
152

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5560
SELECT 63 DIV 23 + - 76 * - CAST( COUNT( * ) AS SIGNED )
----
78

skipif mysql # not compatible
query I rowsort label-5560
SELECT 63 / 23 + - 76 * - CAST ( COUNT ( * ) AS INTEGER )
----
78

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

query I rowsort
SELECT ALL 20 * + 39 + 45 + + + 98 AS col1
----
923

onlyif mysql # aggregate syntax: 
query I rowsort label-5563
SELECT - CASE 91 WHEN - AVG ( ALL - - 86 ) THEN 7 * + COALESCE ( + - 23, + COUNT( * ) ) WHEN - + 84 + - 14 THEN - COUNT( * ) ELSE COUNT( - + 67 ) END + COUNT( * ) - - + 16 AS col2
----
16

skipif mysql # not compatible
query I rowsort label-5563
SELECT - CASE 91 WHEN - AVG ( ALL - - 86 ) THEN 7 * + COALESCE ( + - 23, + COUNT ( * ) ) WHEN - + 84 + - 14 THEN - COUNT ( * ) ELSE COUNT ( - + 67 ) END + COUNT ( * ) - - + 16 AS col2
----
16

onlyif mysql # DIV for integer division: 
query I rowsort label-5564
SELECT - COALESCE ( ( - + 30 ), + + 70 ) DIV NULLIF ( - 93, 2 )
----
0

skipif mysql # not compatible
query I rowsort label-5564
SELECT - COALESCE ( ( - + 30 ), + + 70 ) / NULLIF ( - 93, 2 )
----
0

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5565
SELECT DISTINCT - CASE - CAST( - + 76 AS DECIMAL ) WHEN - 87 THEN 89 ELSE - - 51 + - - CASE WHEN NOT - ( + ( - + 9 ) ) IS NOT NULL THEN + COUNT( * ) END END * - CASE + 5 WHEN - 89 THEN - 56 + - 43 END + + 77 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5565
SELECT DISTINCT - CASE - CAST ( - + 76 AS REAL ) WHEN - 87 THEN 89 ELSE - - 51 + - - CASE WHEN NOT - ( + ( - + 9 ) ) IS NOT NULL THEN + COUNT ( * ) END END * - CASE + 5 WHEN - 89 THEN - 56 + - 43 END + + 77 AS col1
----
NULL

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5567
SELECT + ( 79 ) DIV + + 26 + + 82 * + + 40 + + 8
----
3291

skipif mysql # not compatible
query I rowsort label-5567
SELECT + ( 79 ) / + + 26 + + 82 * + + 40 + + 8
----
3291

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5568
SELECT 0 / - 89 + ( - CAST( NULL AS SIGNED ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5568
SELECT 0 / - 89 + ( - CAST ( NULL AS INTEGER ) ) AS col0
----
NULL

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

skipif mysql # not compatible
query I rowsort label-5569
SELECT - COUNT ( * ) + - + 38 AS col1
----
-39

query I rowsort
SELECT + 4 + + + 7 * 81
----
571

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5571
SELECT DISTINCT + COALESCE ( 15, 41 DIV + ( 60 ) + + 51 + + - 91 + 35 + 2 * + 57 * + CASE ( - + 28 ) WHEN - 20 THEN - + MAX( DISTINCT 19 ) WHEN 75 + + 86 DIV + 12 THEN COUNT( * ) * + 74 WHEN + 49 * 94 THEN NULL END * - ( + COUNT( * ) ) + - 67 * COUNT( * ) + + 13 ) AS col2
----
15

skipif mysql # not compatible
query I rowsort label-5571
SELECT DISTINCT + COALESCE ( 15, 41 / + ( 60 ) + + 51 + + - 91 + 35 + 2 * + 57 * + CASE ( - + 28 ) WHEN - 20 THEN - + MAX ( DISTINCT 19 ) WHEN 75 + + 86 / + 12 THEN COUNT ( * ) * + 74 WHEN + 49 * 94 THEN NULL END * - ( + COUNT ( * ) ) + - 67 * COUNT ( * ) + + 13 ) AS col2
----
15

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

query II rowsort
SELECT ALL 25 * - + 10 + 6, - 59 AS col2
----
-244
-59

query I rowsort
SELECT ALL + 50 * + + 37
----
1850

onlyif mysql # aggregate syntax: 
query I rowsort label-5575
SELECT + + COUNT( * ) + + 60
----
61

skipif mysql # not compatible
query I rowsort label-5575
SELECT + + COUNT ( * ) + + 60
----
61

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5577
SELECT ALL 64 * + - NULLIF ( - + 7, - COUNT( ALL - 34 ) ) * 57
----
25536

skipif mysql # not compatible
query I rowsort label-5577
SELECT ALL 64 * + - NULLIF ( - + 7, - COUNT ( ALL - 34 ) ) * 57
----
25536

onlyif mysql # aggregate syntax: 
query I rowsort label-5578
SELECT - - COUNT( * ) * + 43 + 89
----
132

skipif mysql # not compatible
query I rowsort label-5578
SELECT - - COUNT ( * ) * + 43 + 89
----
132

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5579
SELECT DISTINCT + COALESCE ( - + MIN( DISTINCT - 57 ), + - NULLIF ( - 43, - CASE + + 67 WHEN - 62 * 70 + - ( + - 24 ) THEN - + 23 + + + 39 END ) + + - AVG ( 67 ) DIV 92 )
----
57

skipif mysql # not compatible
query I rowsort label-5579
SELECT DISTINCT + COALESCE ( - + MIN ( DISTINCT - 57 ), + - NULLIF ( - 43, - CASE + + 67 WHEN - 62 * 70 + - ( + - 24 ) THEN - + 23 + + + 39 END ) + + - AVG ( 67 ) / 92 )
----
57

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5580
SELECT + + 93 + + 50 + - MAX( DISTINCT 1 ) * - MAX( - ( + + NULLIF ( + + 22, + - 75 ) ) ) + - 64 + + CAST( NULL AS SIGNED ) - - - COUNT( * ) + 31
----
NULL

skipif mysql # not compatible
query I rowsort label-5580
SELECT + + 93 + + 50 + - MAX ( DISTINCT 1 ) * - MAX ( - ( + + NULLIF ( + + 22, + - 75 ) ) ) + - 64 + + CAST ( NULL AS INTEGER ) - - - COUNT ( * ) + 31
----
NULL

query I rowsort
SELECT + 61 * 67 + - 82
----
4005

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5583
SELECT ALL + 7 / 48 - + + CASE - - ( + COUNT( * ) ) WHEN 88 THEN - 72 WHEN ( + 52 ) THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-5583
SELECT ALL + 7 / 48 - + + CASE - - ( + COUNT ( * ) ) WHEN 88 THEN - 72 WHEN ( + 52 ) THEN NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5584
SELECT + 92 * - 15 * + 62 AS col1, + COUNT( * ) + - + COALESCE ( - 25, - + COUNT( * ) * + 43 * 71 + - 99 + - + COALESCE ( + 71, + 73 ) * + ( - 19 ) * 39 ) AS col1
----
-85560
26

skipif mysql # not compatible
query II rowsort label-5584
SELECT + 92 * - 15 * + 62 AS col1, + COUNT ( * ) + - + COALESCE ( - 25, - + COUNT ( * ) * + 43 * 71 + - 99 + - + COALESCE ( + 71, + 73 ) * + ( - 19 ) * 39 ) AS col1
----
-85560
26

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5585
SELECT 79, + 53 + - NULLIF ( - - 26, + CASE - 72 WHEN + - 8 THEN 41 - + COUNT( * ) WHEN - 34 - + ( - 98 ) THEN - - CAST( NULL AS SIGNED ) END / - + ( + 31 ) * - 75 * 21 ) * - 4 AS col1
----
79
157

skipif mysql # not compatible
query II rowsort label-5585
SELECT 79, + 53 + - NULLIF ( - - 26, + CASE - 72 WHEN + - 8 THEN 41 - + COUNT ( * ) WHEN - 34 - + ( - 98 ) THEN - - CAST ( NULL AS INTEGER ) END / - + ( + 31 ) * - 75 * 21 ) * - 4 AS col1
----
79
157

query I rowsort
SELECT + 25 * + 56
----
1400

onlyif mysql # aggregate syntax: 
query I rowsort label-5587
SELECT - CASE + + CASE AVG ( NULLIF ( 4, 54 ) ) WHEN + 40 THEN + 18 END WHEN + 37 * 10 * - + 29 / + 63 * + 78 + + 52 THEN NULL WHEN - ( - 12 ) - + NULLIF ( 16 - ( 15 + - 62 ) / 62, COUNT( * ) ) THEN - ( 78 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-5587
SELECT - CASE + + CASE AVG ( NULLIF ( 4, 54 ) ) WHEN + 40 THEN + 18 END WHEN + 37 * 10 * - + 29 / + 63 * + 78 + + 52 THEN NULL WHEN - ( - 12 ) - + NULLIF ( 16 - ( 15 + - 62 ) / 62, COUNT ( * ) ) THEN - ( 78 ) END
----
NULL

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

skipif mysql # not compatible
query I rowsort label-5588
SELECT + COUNT ( * ) + COALESCE ( - - 64, + 52 )
----
65

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5589
SELECT ALL 55 AS col0, CAST( NULL AS SIGNED ) AS col2
----
55
NULL

skipif mysql # not compatible
query II rowsort label-5589
SELECT ALL 55 AS col0, CAST ( NULL AS INTEGER ) AS col2
----
55
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5590
SELECT + 54 * - + ( - - COUNT( * ) ) * + 35 * - - MAX( - ( - + 53 ) )
----
-100170

skipif mysql # not compatible
query I rowsort label-5590
SELECT + 54 * - + ( - - COUNT ( * ) ) * + 35 * - - MAX ( - ( - + 53 ) )
----
-100170

query II rowsort
SELECT + 18 + + + 2 AS col1, 92 + 70 AS col2
----
20
162

query I rowsort
SELECT ALL 0 + 18 AS col1
----
18

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

skipif mysql # not compatible
query I rowsort label-5593
SELECT ALL 71 + + + AVG ( CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5594
SELECT ALL NULLIF ( COUNT( ALL - + 54 ), + - 46 * - COALESCE ( - 14, - + NULLIF ( 8, 14 + - 64 ) ) * 16 * + NULLIF ( - COALESCE ( + 63, + CAST( NULL AS SIGNED ) * + 43 * - MIN( DISTINCT 74 / 58 ) - - COUNT( * ) * COUNT( * ), + 95 - + ( COUNT( * ) ) ), 74 / + COUNT( ALL - 28 ) ) * 31 + 46 * CASE + 67 * + 43 WHEN 5 THEN + CAST( NULL AS SIGNED ) END ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-5594
SELECT ALL NULLIF ( COUNT ( ALL - + 54 ), + - 46 * - COALESCE ( - 14, - + NULLIF ( 8, 14 + - 64 ) ) * 16 * + NULLIF ( - COALESCE ( + 63, + CAST ( NULL AS INTEGER ) * + 43 * - MIN ( DISTINCT 74 / 58 ) - - COUNT ( * ) * COUNT ( * ), + 95 - + ( COUNT ( * ) ) ), 74 / + COUNT ( ALL - 28 ) ) * 31 + 46 * CASE + 67 * + 43 WHEN 5 THEN + CAST ( NULL AS INTEGER ) END ) AS col0
----
1

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5596
SELECT DISTINCT 29 DIV - MIN( + 28 ) + + 81 AS col1
----
80

skipif mysql # not compatible
query I rowsort label-5596
SELECT DISTINCT 29 / - MIN ( + 28 ) + + 81 AS col1
----
80

onlyif mysql # DIV for integer division: 
query I rowsort label-5597
SELECT + 3 DIV + 1 + 7 AS col0
----
10

skipif mysql # not compatible
query I rowsort label-5597
SELECT + 3 / + 1 + 7 AS col0
----
10

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5598
SELECT - CAST( NULL AS SIGNED ) * - - 56 / + 78 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5598
SELECT - CAST ( NULL AS INTEGER ) * - - 56 / + 78 AS col0
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5600
SELECT + 53 * 62 * - 63 * + - 94 + COUNT( * ) + - 37
----
19459656

skipif mysql # not compatible
query I rowsort label-5600
SELECT + 53 * 62 * - 63 * + - 94 + COUNT ( * ) + - 37
----
19459656

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5603
SELECT 88 + - 60 + - COUNT( * ) * + - 69 AS col1
----
97

skipif mysql # not compatible
query I rowsort label-5603
SELECT 88 + - 60 + - COUNT ( * ) * + - 69 AS col1
----
97

query I rowsort
SELECT ALL - 85 - 87 AS col0
----
-172

query I rowsort
SELECT 18 * + + ( - 95 ) * + + 61
----
-104310

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

skipif mysql # not compatible
query I rowsort label-5606
SELECT DISTINCT - + 73 * COUNT ( 27 ) AS col1
----
-73

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query III rowsort label-5607
SELECT + COUNT( * ) AS col0, NULLIF ( + 41, - + CAST( NULL AS SIGNED ) - - 86 ) + NULLIF ( CAST( NULL AS SIGNED ), + SUM( ALL - - 27 ) + + ( + 39 ) * 57 * - - 20 + + 42 ) AS col1, - + COUNT( * ) + - + 11
----
1
NULL
-12

skipif mysql # not compatible
query III rowsort label-5607
SELECT + COUNT ( * ) AS col0, NULLIF ( + 41, - + CAST ( NULL AS INTEGER ) - - 86 ) + NULLIF ( CAST ( NULL AS INTEGER ), + SUM ( ALL - - 27 ) + + ( + 39 ) * 57 * - - 20 + + 42 ) AS col1, - + COUNT ( * ) + - + 11
----
1
NULL
-12

query II rowsort
SELECT 98 * 53, - 81 AS col2
----
5194
-81

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

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

query I rowsort
SELECT - 31 * + 61 AS col0
----
-1891

onlyif mysql # aggregate syntax: 
query II rowsort label-5611
SELECT + 31 AS col0, - 82 + - - 85 - + SUM( ALL - + 46 )
----
31
49

skipif mysql # not compatible
query II rowsort label-5611
SELECT + 31 AS col0, - 82 + - - 85 - + SUM ( ALL - + 46 )
----
31
49

query II rowsort
SELECT DISTINCT 26, 3 AS col1
----
26
3

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

skipif mysql # not compatible
query I rowsort label-5613
SELECT DISTINCT MAX ( - 93 )
----
-93

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5616
SELECT 46 + - NULLIF ( - CASE + 14 WHEN - 61 * 80 + COUNT( * ) + + 10 THEN NULL WHEN + 26 THEN - COUNT( * ) WHEN MIN( 20 ) THEN NULL ELSE NULL END, - + 51 + + + 24 ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5616
SELECT 46 + - NULLIF ( - CASE + 14 WHEN - 61 * 80 + COUNT ( * ) + + 10 THEN NULL WHEN + 26 THEN - COUNT ( * ) WHEN MIN ( 20 ) THEN NULL ELSE NULL END, - + 51 + + + 24 ) col1
----
NULL

query I rowsort
SELECT 32 + 74 AS col0
----
106

query I rowsort
SELECT 77 * + + 45 AS col2
----
3465

query I rowsort
SELECT ALL 1 + + 92
----
93

onlyif mysql # DIV for integer division: 
query I rowsort label-5620
SELECT 48 + - - ( - 78 ) + - 52 DIV - ( - + ( 84 ) )
----
-30

skipif mysql # not compatible
query I rowsort label-5620
SELECT 48 + - - ( - 78 ) + - 52 / - ( - + ( 84 ) )
----
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-5621
SELECT ALL - 63 * - + MAX( ALL - 97 )
----
-6111

skipif mysql # not compatible
query I rowsort label-5621
SELECT ALL - 63 * - + MAX ( ALL - 97 )
----
-6111

query I rowsort
SELECT ALL + ( + 48 ) + - 75 AS col1
----
-27

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5623
SELECT 67 + + - CASE + 78 WHEN + + 12 * - COALESCE ( 90, - - 25 ) THEN + 98 * CAST( NULL AS SIGNED ) / - COUNT( * ) END + + + CAST( NULL AS SIGNED ) + - - 83 + - + 80 * 78 * 84 + + 25 * 83 + + CASE 63 WHEN + AVG ( - 47 ) THEN + 45 ELSE MIN( DISTINCT 4 ) * 35 END * - 25 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5623
SELECT 67 + + - CASE + 78 WHEN + + 12 * - COALESCE ( 90, - - 25 ) THEN + 98 * CAST ( NULL AS INTEGER ) / - COUNT ( * ) END + + + CAST ( NULL AS INTEGER ) + - - 83 + - + 80 * 78 * 84 + + 25 * 83 + + CASE 63 WHEN + AVG ( - 47 ) THEN + 45 ELSE MIN ( DISTINCT 4 ) * 35 END * - 25 AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5624
SELECT ALL - 36 + CAST( + 37 AS SIGNED ) + + + 86
----
87

skipif mysql # not compatible
query I rowsort label-5624
SELECT ALL - 36 + CAST ( + 37 AS INTEGER ) + + + 86
----
87

onlyif mysql # aggregate syntax: 
query II rowsort label-5625
SELECT ALL COUNT( * ) + + - 8 col2, - SUM( DISTINCT - 59 )
----
-7
59

skipif mysql # not compatible
query II rowsort label-5625
SELECT ALL COUNT ( * ) + + - 8 col2, - SUM ( DISTINCT - 59 )
----
-7
59

onlyif mysql # DIV for integer division: 
query I rowsort label-5626
SELECT ALL 17 DIV NULLIF ( 17, - 91 ) DIV + ( + + 76 )
----
0

skipif mysql # not compatible
query I rowsort label-5626
SELECT ALL 17 / NULLIF ( 17, - 91 ) / + ( + + 76 )
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5627
SELECT ALL 87 - 70 + + - 82 DIV + 37 + + - 19 * - - 70
----
-1315

skipif mysql # not compatible
query I rowsort label-5627
SELECT ALL 87 - 70 + + - 82 / + 37 + + - 19 * - - 70
----
-1315

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5628
SELECT CAST( NULL AS DECIMAL ) / + 88 * + 34 * - ( - 3 ) + - 19
----
NULL

skipif mysql # not compatible
query I rowsort label-5628
SELECT CAST ( NULL AS REAL ) / + 88 * + 34 * - ( - 3 ) + - 19
----
NULL

query I rowsort
SELECT DISTINCT 57 * 58
----
3306

query I rowsort
SELECT ALL 96 - NULLIF ( - 87, 79 * - + 54 * + 36 )
----
183

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5631
SELECT ALL - CAST( NULL AS DECIMAL ) - + AVG ( - 69 ) + - AVG ( + 80 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5631
SELECT ALL - CAST ( NULL AS REAL ) - + AVG ( - 69 ) + - AVG ( + 80 )
----
NULL

query I rowsort
SELECT 33 * - 81 AS col1
----
-2673

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5635
SELECT NULLIF ( + COUNT( * ), - CAST( NULL AS SIGNED ) + - + 18 ) * 64
----
64

skipif mysql # not compatible
query I rowsort label-5635
SELECT NULLIF ( + COUNT ( * ), - CAST ( NULL AS INTEGER ) + - + 18 ) * 64
----
64

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5636
SELECT 51 * - COUNT( * ) + - 21 + NULLIF ( - CAST( - 25 AS SIGNED ), - - 3 ), 47 + - - 88 * 92 AS col2
----
-47
8143

skipif mysql # not compatible
query II rowsort label-5636
SELECT 51 * - COUNT ( * ) + - 21 + NULLIF ( - CAST ( - 25 AS INTEGER ), - - 3 ), 47 + - - 88 * 92 AS col2
----
-47
8143

query I rowsort
SELECT DISTINCT - 40 * + ( - 27 ) col0
----
1080

onlyif mysql # DIV for integer division: 
query I rowsort label-5638
SELECT DISTINCT + 29 DIV 5 * - 35 * 9 AS col2
----
-1575

skipif mysql # not compatible
query I rowsort label-5638
SELECT DISTINCT + 29 / 5 * - 35 * 9 AS col2
----
-1575

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5639
SELECT ALL - + 95 * - CAST( NULL AS SIGNED ) AS col1, 81 col1
----
NULL
81

skipif mysql # not compatible
query II rowsort label-5639
SELECT ALL - + 95 * - CAST ( NULL AS INTEGER ) AS col1, 81 col1
----
NULL
81

query I rowsort
SELECT ALL 21 * + - 2 * - 86
----
3612

query I rowsort
SELECT ( - ( - - 11 ) ) + - - 0
----
-11

query I rowsort
SELECT DISTINCT + 4 * + 14 col2
----
56

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5643
SELECT 15 * 66 * - CAST( + 44 AS SIGNED ) + 29 + + 82 col1
----
-43449

skipif mysql # not compatible
query I rowsort label-5643
SELECT 15 * 66 * - CAST ( + 44 AS INTEGER ) + 29 + + 82 col1
----
-43449

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5644
SELECT CASE 24 WHEN - 95 DIV - 81 DIV - 54 - 70 - + 40 + + 81 + + 31 + + + COALESCE ( - 62, + 73, AVG ( + NULLIF ( - 61, + 81 ) ), + - CAST( 69 AS SIGNED ) ) + 99 * + 63 * + COUNT( * ) THEN 77 * 79 WHEN 25 THEN 21 WHEN - 64 THEN - 32 ELSE + COALESCE ( - CASE - CAST( + 18 AS SIGNED ) WHEN - 59 THEN 86 DIV - 15 WHEN + 89 THEN NULL ELSE NULLIF ( 7, + 21 ) * 55 END, + 11, + 8 + + 99 ) + - COUNT( * ) * COALESCE ( + CAST( + 18 AS SIGNED ), - 75 ) END * + 37 AS col1
----
-14911

skipif mysql # not compatible
query I rowsort label-5644
SELECT CASE 24 WHEN - 95 / - 81 / - 54 - 70 - + 40 + + 81 + + 31 + + + COALESCE ( - 62, + 73, AVG ( + NULLIF ( - 61, + 81 ) ), + - CAST ( 69 AS INTEGER ) ) + 99 * + 63 * + COUNT ( * ) THEN 77 * 79 WHEN 25 THEN 21 WHEN - 64 THEN - 32 ELSE + COALESCE ( - CASE - CAST ( + 18 AS INTEGER ) WHEN - 59 THEN 86 / - 15 WHEN + 89 THEN NULL ELSE NULLIF ( 7, + 21 ) * 55 END, + 11, + 8 + + 99 ) + - COUNT ( * ) * COALESCE ( + CAST ( + 18 AS INTEGER ), - 75 ) END * + 37 AS col1
----
-14911

query I rowsort
SELECT + 99 * - - 35 + + + 71
----
3536

query II rowsort
SELECT - 50, 39 AS col2
----
-50
39

query I rowsort
SELECT 77 + - ( + 78 ) * - 74 * + - 27 AS col0
----
-155767

query II rowsort
SELECT - 4 AS col2, 91 AS col2
----
-4
91

query II rowsort
SELECT ALL 5 col2, - 79
----
5
-79

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5650
SELECT ALL - CAST( - + AVG ( + 95 ) AS SIGNED ) + - + 10
----
85

skipif mysql # not compatible
query I rowsort label-5650
SELECT ALL - CAST ( - + AVG ( + 95 ) AS INTEGER ) + - + 10
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-5651
SELECT ALL CASE - 80 WHEN - COUNT( * ) * - + COUNT( * ) THEN NULL ELSE - 90 * - 92 * 77 END AS col0
----
637560

skipif mysql # not compatible
query I rowsort label-5651
SELECT ALL CASE - 80 WHEN - COUNT ( * ) * - + COUNT ( * ) THEN NULL ELSE - 90 * - 92 * 77 END AS col0
----
637560

query II rowsort
SELECT DISTINCT - 22 + + - 47 + - COALESCE ( + 59, + + 55 * 5 + 20 * 60 + + - 84 * + 0 * + 45 * - 60 ) * - 52 * - - 53 + - 96 * - 60 col0, 98
----
168295
98

query I rowsort
SELECT ALL 47 + 45 AS col0
----
92

query I rowsort
SELECT 83 * + 77 AS col0
----
6391

query I rowsort
SELECT ALL - 32 * + 5 col1
----
-160

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

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

query I rowsort
SELECT ALL - 5 - - - 3 * + 71 * - 13
----
2764

query I rowsort
SELECT - 17 * - - 3 * 8 AS col1
----
-408

query I rowsort
SELECT DISTINCT - 14 * + + 65
----
-910

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

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

query I rowsort
SELECT ALL - 5 - 66
----
-71

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5662
SELECT DISTINCT SUM( ALL + 70 ) DIV 29 DIV - - 4
----
0

skipif mysql # not compatible
query I rowsort label-5662
SELECT DISTINCT SUM ( ALL + 70 ) / 29 / - - 4
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5663
SELECT + + COUNT( * ) * 25 + + - COUNT( * ) + + COALESCE ( - 78, - + 59 + - 51, + - 85 ) * + 73 * + + 2 AS col0
----
-11364

skipif mysql # not compatible
query I rowsort label-5663
SELECT + + COUNT ( * ) * 25 + + - COUNT ( * ) + + COALESCE ( - 78, - + 59 + - 51, + - 85 ) * + 73 * + + 2 AS col0
----
-11364

onlyif mysql # DIV for integer division: 
query I rowsort label-5664
SELECT + - 57 DIV + 41
----
-1

skipif mysql # not compatible
query I rowsort label-5664
SELECT + - 57 / + 41
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-5665
SELECT ALL - 52 DIV - 70 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-5665
SELECT ALL - 52 / - 70 AS col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5666
SELECT 88 / - + CAST( NULL AS SIGNED ) + + - 1 + COUNT( * ) - + 73 * + - 78 * + 63
----
NULL

skipif mysql # not compatible
query I rowsort label-5666
SELECT 88 / - + CAST ( NULL AS INTEGER ) + + - 1 + COUNT ( * ) - + 73 * + - 78 * + 63
----
NULL

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

skipif mysql # not compatible
query I rowsort label-5667
SELECT + MIN ( ( + 55 ) )
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-5668
SELECT + ( - COUNT( ALL - 21 ) )
----
-1

skipif mysql # not compatible
query I rowsort label-5668
SELECT + ( - COUNT ( ALL - 21 ) )
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5669
SELECT + COUNT( * ) * + + 46 + + + CAST( NULL AS SIGNED ) - - 49 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5669
SELECT + COUNT ( * ) * + + 46 + + + CAST ( NULL AS INTEGER ) - - 49 AS col1
----
NULL

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

query I rowsort
SELECT ALL - 2 * + + 60
----
-120

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5672
SELECT + 69 / - COUNT( * ) + - - 48 * CAST( NULL AS SIGNED ) / - + 77 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5672
SELECT + 69 / - COUNT ( * ) + - - 48 * CAST ( NULL AS INTEGER ) / - + 77 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5673
SELECT DISTINCT + CASE + - MAX( ALL CAST( NULL AS SIGNED ) ) WHEN 62 THEN NULL WHEN - NULLIF ( + 75, + - COUNT( * ) / - 76 * - 28 / 27 ) THEN NULL ELSE - 28 END
----
-28

skipif mysql # not compatible
query I rowsort label-5673
SELECT DISTINCT + CASE + - MAX ( ALL CAST ( NULL AS INTEGER ) ) WHEN 62 THEN NULL WHEN - NULLIF ( + 75, + - COUNT ( * ) / - 76 * - 28 / 27 ) THEN NULL ELSE - 28 END
----
-28

query I rowsort
SELECT ALL 53 * 16
----
848

onlyif mysql # aggregate syntax: 
query I rowsort label-5675
SELECT DISTINCT - 0 * + COUNT( * ) + 77
----
77

skipif mysql # not compatible
query I rowsort label-5675
SELECT DISTINCT - 0 * + COUNT ( * ) + 77
----
77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5676
SELECT DISTINCT + CAST( + + 63 AS SIGNED ) * - + COUNT( * ) + + COUNT( * )
----
-62

skipif mysql # not compatible
query I rowsort label-5676
SELECT DISTINCT + CAST ( + + 63 AS INTEGER ) * - + COUNT ( * ) + + COUNT ( * )
----
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-5677
SELECT + - 56 * - ( 57 ) * COUNT( * ) - + 0 AS col1
----
3192

skipif mysql # not compatible
query I rowsort label-5677
SELECT + - 56 * - ( 57 ) * COUNT ( * ) - + 0 AS col1
----
3192

onlyif mysql # aggregate syntax: 
query I rowsort label-5678
SELECT - + ( + 51 ) * + + 99 + + + SUM( DISTINCT - 10 )
----
-5059

skipif mysql # not compatible
query I rowsort label-5678
SELECT - + ( + 51 ) * + + 99 + + + SUM ( DISTINCT - 10 )
----
-5059

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-5681
SELECT - COUNT( * ), + CASE - 25 WHEN COUNT( * ) THEN NULL ELSE + 26 END + 80 AS col2
----
-1
106

skipif mysql # not compatible
query II rowsort label-5681
SELECT - COUNT ( * ), + CASE - 25 WHEN COUNT ( * ) THEN NULL ELSE + 26 END + 80 AS col2
----
-1
106

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-5682
SELECT DISTINCT - 93 * + 80 DIV - ( COUNT( * ) ) + - CAST( 88 AS SIGNED ) AS col2, - 89 AS col1
----
7352
-89

skipif mysql # not compatible
query II rowsort label-5682
SELECT DISTINCT - 93 * + 80 / - ( COUNT ( * ) ) + - CAST ( 88 AS INTEGER ) AS col2, - 89 AS col1
----
7352
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-5683
SELECT ALL CASE + - 77 WHEN 67 / - 43 + - + AVG ( 98 ) + - 37 * - 44 THEN - 33 WHEN + NULLIF ( MIN( ALL + + 66 ), - + 41 ) THEN NULL END * - 47 + 4 + + - AVG ( DISTINCT 84 ) * - - 5 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5683
SELECT ALL CASE + - 77 WHEN 67 / - 43 + - + AVG ( 98 ) + - 37 * - 44 THEN - 33 WHEN + NULLIF ( MIN ( ALL + + 66 ), - + 41 ) THEN NULL END * - 47 + 4 + + - AVG ( DISTINCT 84 ) * - - 5 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5684
SELECT ALL + + 60, SUM( DISTINCT - 65 ) * 26 - 85 AS col1
----
60
-1775

skipif mysql # not compatible
query II rowsort label-5684
SELECT ALL + + 60, SUM ( DISTINCT - 65 ) * 26 - 85 AS col1
----
60
-1775

onlyif mysql # aggregate syntax: 
query I rowsort label-5685
SELECT COUNT( ALL + 24 )
----
1

skipif mysql # not compatible
query I rowsort label-5685
SELECT COUNT ( ALL + 24 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5686
SELECT DISTINCT + NULLIF ( - - 34, - 44 * AVG ( + 3 ) + 16 / COALESCE ( COUNT( * ), + + ( - + 92 ) + - 60, 17 * - - 26 ) ) AS col1
----
34

skipif mysql # not compatible
query I rowsort label-5686
SELECT DISTINCT + NULLIF ( - - 34, - 44 * AVG ( + 3 ) + 16 / COALESCE ( COUNT ( * ), + + ( - + 92 ) + - 60, 17 * - - 26 ) ) AS col1
----
34

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5688
SELECT ALL - 36 + - ( ( - COALESCE ( + 31, - NULLIF ( - 34, + CAST( NULL AS SIGNED ) + ( - - 7 ) + - 88 ) * 8, + 27 * + COUNT( * ) - + + 93 + - + 58 ) ) ) + - 53 + + 5 + + CAST( ( - 60 ) AS SIGNED ) * - 98 * 55 col0
----
323347

skipif mysql # not compatible
query I rowsort label-5688
SELECT ALL - 36 + - ( ( - COALESCE ( + 31, - NULLIF ( - 34, + CAST ( NULL AS INTEGER ) + ( - - 7 ) + - 88 ) * 8, + 27 * + COUNT ( * ) - + + 93 + - + 58 ) ) ) + - 53 + + 5 + + CAST ( ( - 60 ) AS INTEGER ) * - 98 * 55 col0
----
323347

query I rowsort
SELECT ALL 42 * 5 * + - 14 AS col2
----
-2940

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5690
SELECT + COUNT( * ) + - CASE + COALESCE ( CAST( NULL AS DECIMAL ), + 70 * + CAST( - 3 AS SIGNED ) ) WHEN 17 THEN + 30 + + CAST( - - 68 AS SIGNED ) * - + ( CAST( NULL AS SIGNED ) ) WHEN + COUNT( * ) * + + 47 THEN NULL ELSE - + SUM( ( - 62 ) ) * - - ( 44 ) END + + 35 * - 54
----
-4617

skipif mysql # not compatible
query I rowsort label-5690
SELECT + COUNT ( * ) + - CASE + COALESCE ( CAST ( NULL AS REAL ), + 70 * + CAST ( - 3 AS INTEGER ) ) WHEN 17 THEN + 30 + + CAST ( - - 68 AS INTEGER ) * - + ( CAST ( NULL AS INTEGER ) ) WHEN + COUNT ( * ) * + + 47 THEN NULL ELSE - + SUM ( ( - 62 ) ) * - - ( 44 ) END + + 35 * - 54
----
-4617

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5691
SELECT - CASE - 24 WHEN 81 * - 53 * - 40 + COALESCE ( 73, - 90 ) THEN + + CAST( NULL AS SIGNED ) END - + 99 * 11 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5691
SELECT - CASE - 24 WHEN 81 * - 53 * - 40 + COALESCE ( 73, - 90 ) THEN + + CAST ( NULL AS INTEGER ) END - + 99 * 11 AS col0
----
NULL

query I rowsort
SELECT ALL 18 * + 19 AS col0
----
342

query I rowsort
SELECT + 24 + - 9
----
15

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5694
SELECT + NULLIF ( + 36, + 15 ) + 87 + CASE + NULLIF ( + NULLIF ( + - 30, + 12 * 76 ), CAST( NULL AS SIGNED ) * 45 ) WHEN - + 38 THEN - 57 END / 62 + - COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5694
SELECT + NULLIF ( + 36, + 15 ) + 87 + CASE + NULLIF ( + NULLIF ( + - 30, + 12 * 76 ), CAST ( NULL AS INTEGER ) * 45 ) WHEN - + 38 THEN - 57 END / 62 + - COUNT ( * ) AS col0
----
NULL

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

skipif mysql # not compatible
query I rowsort label-5695
SELECT ALL + 73 - - COUNT ( * ) AS col2
----
74

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5696
SELECT + NULLIF ( + + 60, + COUNT( * ) + - + 19 - + 76 * + 83 ) DIV + CAST( + 55 AS SIGNED )
----
1

skipif mysql # not compatible
query I rowsort label-5696
SELECT + NULLIF ( + + 60, + COUNT ( * ) + - + 19 - + 76 * + 83 ) / + CAST ( + 55 AS INTEGER )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5697
SELECT - 23 * + MAX( ALL + 2 )
----
-46

skipif mysql # not compatible
query I rowsort label-5697
SELECT - 23 * + MAX ( ALL + 2 )
----
-46

query I rowsort
SELECT ALL 76 - - + 51 * 69 AS col2
----
3595

query I rowsort
SELECT - 63 * + 7
----
-441

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

skipif mysql # not compatible
query I rowsort label-5700
SELECT ALL NULLIF ( + - 88, COUNT ( * ) ) col2
----
-88

query I rowsort
SELECT ALL - 83 * + ( + + 57 ) AS col2
----
-4731

query I rowsort
SELECT - - 11 + - 10
----
1

query I rowsort
SELECT ALL + 6 * + 67 * + 39
----
15678

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5704
SELECT - 40 * + 90, + CAST( + 95 AS SIGNED ) * - 68 + - 9 AS col1
----
-3600
-6469

skipif mysql # not compatible
query II rowsort label-5704
SELECT - 40 * + 90, + CAST ( + 95 AS INTEGER ) * - 68 + - 9 AS col1
----
-3600
-6469

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

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

query I rowsort
SELECT DISTINCT + - 54 * + 23
----
-1242

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5707
SELECT - COUNT( * ) DIV + - ( 86 ) + - + 94
----
-94

skipif mysql # not compatible
query I rowsort label-5707
SELECT - COUNT ( * ) / + - ( 86 ) + - + 94
----
-94

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

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

query I rowsort
SELECT - + 34 * + + 18
----
-612

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5710
SELECT DISTINCT - - MAX( ALL - 91 ) / + CAST( NULL AS DECIMAL ) / - 96 + - + 34 + + 9
----
NULL

skipif mysql # not compatible
query I rowsort label-5710
SELECT DISTINCT - - MAX ( ALL - 91 ) / + CAST ( NULL AS REAL ) / - 96 + - + 34 + + 9
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5711
SELECT MAX( ALL 9 ), 39 * 62 - + - ( - 92 ) + - SUM( ALL - 46 ) AS col2
----
9
2372

skipif mysql # not compatible
query II rowsort label-5711
SELECT MAX ( ALL 9 ), 39 * 62 - + - ( - 92 ) + - SUM ( ALL - 46 ) AS col2
----
9
2372

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5712
SELECT ALL + 18 DIV - + 15 * + COUNT( + 90 ) + + - 15 AS col2
----
-16

skipif mysql # not compatible
query I rowsort label-5712
SELECT ALL + 18 / - + 15 * + COUNT ( + 90 ) + + - 15 AS col2
----
-16

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5713
SELECT ALL - 82 DIV 66 DIV - + 2 + 43 + + CASE 79 WHEN - 37 THEN NULL ELSE + 0 + - - COUNT( * ) * + - COUNT( * ) * + 13 DIV - 16 END * - NULLIF ( 68, + ( - 76 ) * CAST( + 49 AS SIGNED ) + 63 * - 1 ) col0
----
43

skipif mysql # not compatible
query I rowsort label-5713
SELECT ALL - 82 / 66 / - + 2 + 43 + + CASE 79 WHEN - 37 THEN NULL ELSE + 0 + - - COUNT ( * ) * + - COUNT ( * ) * + 13 / - 16 END * - NULLIF ( 68, + ( - 76 ) * CAST ( + 49 AS INTEGER ) + 63 * - 1 ) col0
----
43

query I rowsort
SELECT - 87 + + 36
----
-51

query I rowsort
SELECT + 56 col0
----
56

onlyif mysql # DIV for integer division: 
query I rowsort label-5716
SELECT ALL 49 DIV + - ( - + 38 ) + + 18 + + 55
----
74

skipif mysql # not compatible
query I rowsort label-5716
SELECT ALL 49 / + - ( - + 38 ) + + 18 + + 55
----
74

query I rowsort
SELECT DISTINCT + 96 * + 32 * - 90 * 69 AS col0
----
-19077120

onlyif mysql # aggregate syntax: 
query I rowsort label-5718
SELECT DISTINCT + + COUNT( * ) * - 28 * + - CASE + - SUM( + + 77 ) WHEN + 27 THEN - - 76 WHEN + 34 THEN NULL ELSE NULL END + - SUM( ALL 18 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5718
SELECT DISTINCT + + COUNT ( * ) * - 28 * + - CASE + - SUM ( + + 77 ) WHEN + 27 THEN - - 76 WHEN + 34 THEN NULL ELSE NULL END + - SUM ( ALL 18 )
----
NULL

query I rowsort
SELECT DISTINCT - - 41 * - - 27 + + + 85 * - 26 col1
----
-1103

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5721
SELECT ALL + 2 * - CAST( - 77 AS SIGNED ) * + - ( 95 ) * + 85 + - - 32 + + COUNT( * )
----
-1243517

skipif mysql # not compatible
query I rowsort label-5721
SELECT ALL + 2 * - CAST ( - 77 AS INTEGER ) * + - ( 95 ) * + 85 + - - 32 + + COUNT ( * )
----
-1243517

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5723
SELECT + SUM( DISTINCT - - 72 ) + - 28
----
44

skipif mysql # not compatible
query I rowsort label-5723
SELECT + SUM ( DISTINCT - - 72 ) + - 28
----
44

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5724
SELECT ALL 1 * 41 - + 16 - + + 74 + + CAST( + + 27 AS SIGNED ) col0, - ( SUM( DISTINCT + + 46 ) ) AS col1
----
-22
-46

skipif mysql # not compatible
query II rowsort label-5724
SELECT ALL 1 * 41 - + 16 - + + 74 + + CAST ( + + 27 AS INTEGER ) col0, - ( SUM ( DISTINCT + + 46 ) ) AS col1
----
-22
-46

query I rowsort
SELECT DISTINCT 83 * - 93
----
-7719

query II rowsort
SELECT ALL + 12, + 60 * 8 AS col0
----
12
480

query I rowsort
SELECT + 25 * - 13 + + - 65
----
-390

query I rowsort
SELECT ALL 36 - 71
----
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-5729
SELECT 78 * 65 * 54 + 87 + - COUNT( * ) AS col0
----
273866

skipif mysql # not compatible
query I rowsort label-5729
SELECT 78 * 65 * 54 + 87 + - COUNT ( * ) AS col0
----
273866

query I rowsort
SELECT CASE - 8 WHEN 54 THEN + 68 + 94 WHEN - + 86 THEN NULL WHEN + 93 THEN - - 74 END * + + 87 + - + 14 * - 17
----
NULL

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

query I rowsort
SELECT DISTINCT + 60 * 13
----
780

onlyif mysql # DIV for integer division: 
query I rowsort label-5733
SELECT DISTINCT 35 DIV - - 82
----
0

skipif mysql # not compatible
query I rowsort label-5733
SELECT DISTINCT 35 / - - 82
----
0

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5736
SELECT CAST( 25 AS SIGNED ) * + NULLIF ( + 27, - 0 + - AVG ( - 96 ) )
----
675

skipif mysql # not compatible
query I rowsort label-5736
SELECT CAST ( 25 AS INTEGER ) * + NULLIF ( + 27, - 0 + - AVG ( - 96 ) )
----
675

onlyif mysql # aggregate syntax: 
query I rowsort label-5737
SELECT MAX( - 94 ) * 68
----
-6392

skipif mysql # not compatible
query I rowsort label-5737
SELECT MAX ( - 94 ) * 68
----
-6392

query I rowsort
SELECT DISTINCT + - 51 + - ( + + 46 )
----
-97

query I rowsort
SELECT ALL - 8 col1
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-5740
SELECT ALL + 11 + + - 81 - + COUNT( * ) AS col2
----
-71

skipif mysql # not compatible
query I rowsort label-5740
SELECT ALL + 11 + + - 81 - + COUNT ( * ) AS col2
----
-71

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5741
SELECT ALL CAST( 43 AS SIGNED ) + 41 AS col0
----
84

skipif mysql # not compatible
query I rowsort label-5741
SELECT ALL CAST ( 43 AS INTEGER ) + 41 AS col0
----
84

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5742
SELECT DISTINCT + MAX( - CAST( - 96 AS SIGNED ) ) * + COALESCE ( + ( + 29 ), + ( + + 42 ), - 58 ) + 10 AS col2, 81
----
2794
81

skipif mysql # not compatible
query II rowsort label-5742
SELECT DISTINCT + MAX ( - CAST ( - 96 AS INTEGER ) ) * + COALESCE ( + ( + 29 ), + ( + + 42 ), - 58 ) + 10 AS col2, 81
----
2794
81

query I rowsort
SELECT COALESCE ( 89, - + 6, - 55 )
----
89

onlyif mysql # DIV for integer division: 
query I rowsort label-5744
SELECT - + 71 DIV 1 + + 88 + + 25 AS col0
----
42

skipif mysql # not compatible
query I rowsort label-5744
SELECT - + 71 / 1 + + 88 + + 25 AS col0
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-5745
SELECT DISTINCT + 17 + - COUNT( DISTINCT 98 ) * + 59 AS col0
----
-42

skipif mysql # not compatible
query I rowsort label-5745
SELECT DISTINCT + 17 + - COUNT ( DISTINCT 98 ) * + 59 AS col0
----
-42

query I rowsort
SELECT - 59 * - 34
----
2006

query II rowsort
SELECT + - 57 col0, 88 AS col0
----
-57
88

query I rowsort
SELECT ALL + 67 * + + 7
----
469

query I rowsort
SELECT + 7 * + 26 col0
----
182

onlyif mysql # aggregate syntax: 
query I rowsort label-5750
SELECT DISTINCT + ( + 64 ) + + + MAX( + 77 )
----
141

skipif mysql # not compatible
query I rowsort label-5750
SELECT DISTINCT + ( + 64 ) + + + MAX ( + 77 )
----
141

onlyif mysql # aggregate syntax: 
query I rowsort label-5751
SELECT ALL + NULLIF ( + 70, NULLIF ( COUNT( * ), ( + 38 ) ) ) * - + 60 * + - MIN( ALL - 11 ) AS col1
----
-46200

skipif mysql # not compatible
query I rowsort label-5751
SELECT ALL + NULLIF ( + 70, NULLIF ( COUNT ( * ), ( + 38 ) ) ) * - + 60 * + - MIN ( ALL - 11 ) AS col1
----
-46200

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5752
SELECT DISTINCT - CAST( NULL AS SIGNED ) AS col0, MIN( - + 33 ) + + 26 + - 93 * - CAST( NULL AS SIGNED ) + + + 50 AS col0
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-5752
SELECT DISTINCT - CAST ( NULL AS INTEGER ) AS col0, MIN ( - + 33 ) + + 26 + - 93 * - CAST ( NULL AS INTEGER ) + + + 50 AS col0
----
NULL
NULL

query I rowsort
SELECT 54 * - 54 * - 29 + - + 94 AS col0
----
84470

query I rowsort
SELECT 86 * + 79
----
6794

onlyif mysql # DIV for integer division: 
query I rowsort label-5755
SELECT ALL - 73 - - 62 + + + ( - 82 ) * 83 DIV 70
----
-108

skipif mysql # not compatible
query I rowsort label-5755
SELECT ALL - 73 - - 62 + + + ( - 82 ) * 83 / 70
----
-108

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

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

query I rowsort
SELECT DISTINCT - 64 * + 52
----
-3328

onlyif mysql # DIV for integer division: 
query I rowsort label-5758
SELECT 76 DIV - 59 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-5758
SELECT 76 / - 59 AS col2
----
-1

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5760
SELECT ALL - 73 DIV 21 AS col2
----
-3

skipif mysql # not compatible
query I rowsort label-5760
SELECT ALL - 73 / 21 AS col2
----
-3

onlyif mysql # aggregate syntax: 
query II rowsort label-5761
SELECT 53 col1, - COUNT( * ) col2
----
53
-1

skipif mysql # not compatible
query II rowsort label-5761
SELECT 53 col1, - COUNT ( * ) col2
----
53
-1

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5764
SELECT MAX( - CAST( + 6 AS SIGNED ) ) + + 94
----
88

skipif mysql # not compatible
query I rowsort label-5764
SELECT MAX ( - CAST ( + 6 AS INTEGER ) ) + + 94
----
88

query I rowsort
SELECT - 45 * - + 76 - 88
----
3332

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

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

query II rowsort
SELECT 92 + 4 AS col1, 94 AS col0
----
96
94

onlyif mysql # aggregate syntax: 
query II rowsort label-5768
SELECT 52, COALESCE ( + - 20, + + 79 * + COUNT( * ), + 17 * - + 60 ) AS col1
----
52
-20

skipif mysql # not compatible
query II rowsort label-5768
SELECT 52, COALESCE ( + - 20, + + 79 * + COUNT ( * ), + 17 * - + 60 ) AS col1
----
52
-20

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5769
SELECT CAST( NULL AS DECIMAL ) * + + 32 * + CASE + + 72 WHEN - 97 * + + 40 THEN - - COUNT( * ) + + + 8 ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5769
SELECT CAST ( NULL AS REAL ) * + + 32 * + CASE + + 72 WHEN - 97 * + + 40 THEN - - COUNT ( * ) + + + 8 ELSE NULL END AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5770
SELECT DISTINCT CAST( NULL AS SIGNED ) + + + 52 AS col2, - NULLIF ( - + ( + COUNT( - 9 ) ), + 0 * + 11 )
----
NULL
1

skipif mysql # not compatible
query II rowsort label-5770
SELECT DISTINCT CAST ( NULL AS INTEGER ) + + + 52 AS col2, - NULLIF ( - + ( + COUNT ( - 9 ) ), + 0 * + 11 )
----
NULL
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5771
SELECT ALL COUNT( ALL - + 42 ) + + 83
----
84

skipif mysql # not compatible
query I rowsort label-5771
SELECT ALL COUNT ( ALL - + 42 ) + + 83
----
84

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

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

query I rowsort
SELECT ALL 19 * + 17 AS col1
----
323

query I rowsort
SELECT DISTINCT 58 + COALESCE ( - 44, - 30 + + 81 )
----
14

query I rowsort
SELECT ALL 76 + - + 37 * + 87 * 64
----
-205940

query I rowsort
SELECT 2 + + 43
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-5777
SELECT ALL - MIN( 91 ) * - 59
----
5369

skipif mysql # not compatible
query I rowsort label-5777
SELECT ALL - MIN ( 91 ) * - 59
----
5369

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

skipif mysql # not compatible
query I rowsort label-5778
SELECT MIN ( DISTINCT 52 )
----
52

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5779
SELECT ALL COUNT( DISTINCT + - CAST( - 41 AS SIGNED ) )
----
1

skipif mysql # not compatible
query I rowsort label-5779
SELECT ALL COUNT ( DISTINCT + - CAST ( - 41 AS INTEGER ) )
----
1

query II rowsort
SELECT DISTINCT + 7, - 94 AS col2
----
7
-94

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

skipif mysql # not compatible
query I rowsort label-5781
SELECT DISTINCT 8 + COUNT ( * ) AS col1
----
9

query I rowsort
SELECT CASE - 68 WHEN + 62 THEN - + 45 END * 64
----
NULL

query I rowsort
SELECT ALL - - COALESCE ( 16, - + 81 * 68 ) col0
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-5784
SELECT ALL - MIN( 50 ) * 28 - + 22 + 29
----
-1393

skipif mysql # not compatible
query I rowsort label-5784
SELECT ALL - MIN ( 50 ) * 28 - + 22 + 29
----
-1393

query I rowsort
SELECT + 96 * + 84
----
8064

onlyif mysql # DIV for integer division: 
query II rowsort label-5786
SELECT ALL - - 88, + 31 DIV - 25 AS col1
----
88
-1

skipif mysql # not compatible
query II rowsort label-5786
SELECT ALL - - 88, + 31 / - 25 AS col1
----
88
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-5787
SELECT ALL + ( + - 17 ) * + - 66 * + + 38 + + 26 - - + 55 * + 0 + - - 98 * 92 DIV - 53 + + 98
----
42590

skipif mysql # not compatible
query I rowsort label-5787
SELECT ALL + ( + - 17 ) * + - 66 * + + 38 + + 26 - - + 55 * + 0 + - - 98 * 92 / - 53 + + 98
----
42590

onlyif mysql # aggregate syntax: 
query I rowsort label-5788
SELECT - 32 * + 75 * + COUNT( * )
----
-2400

skipif mysql # not compatible
query I rowsort label-5788
SELECT - 32 * + 75 * + COUNT ( * )
----
-2400

query I rowsort
SELECT DISTINCT 40 * - 44 * - + 82 - - 27 + 15
----
144362

query II rowsort
SELECT ALL + + 15 col2, - 63
----
15
-63

query I rowsort
SELECT + 25 + 1 - - 13 AS col0
----
39

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5792
SELECT ALL - SUM( DISTINCT - - CAST( NULL AS SIGNED ) ) * - ( MIN( ALL - - 0 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-5792
SELECT ALL - SUM ( DISTINCT - - CAST ( NULL AS INTEGER ) ) * - ( MIN ( ALL - - 0 ) )
----
NULL

query I rowsort
SELECT - 1 * + - 77 col0
----
77

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5794
SELECT ALL - 77 * + - ( + 87 ) * - CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-5794
SELECT ALL - 77 * + - ( + 87 ) * - CAST ( NULL AS REAL )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5795
SELECT ALL + COALESCE ( 92, + 77 * - 29 * + 26 * - ( + COUNT( * ) ), - 35 ) AS col2
----
92

skipif mysql # not compatible
query I rowsort label-5795
SELECT ALL + COALESCE ( 92, + 77 * - 29 * + 26 * - ( + COUNT ( * ) ), - 35 ) AS col2
----
92

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

skipif mysql # not compatible
query I rowsort label-5796
SELECT + CAST ( NULL AS INTEGER ) * 33 + - CAST ( ( + COUNT ( * ) ) AS REAL ) AS col2
----
NULL

query I rowsort
SELECT ( 76 ) * 15 + + + 70
----
1210

query II rowsort
SELECT ALL + ( + + 12 ) AS col2, 95 AS col0
----
12
95

query I rowsort
SELECT - 47 + 82 + 82
----
117

onlyif mysql # DIV for integer division: 
query I rowsort label-5800
SELECT - 23 DIV - - 56 * + ( 73 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-5800
SELECT - 23 / - - 56 * + ( 73 ) AS col0
----
0

query I rowsort
SELECT - 40 + + + 45 * 95 col1
----
4235

query II rowsort
SELECT ALL + ( 35 ) col0, + 98
----
35
98

onlyif mysql # aggregate syntax: 
query I rowsort label-5803
SELECT - 79 * - COUNT( * ) + + 43
----
122

skipif mysql # not compatible
query I rowsort label-5803
SELECT - 79 * - COUNT ( * ) + + 43
----
122

onlyif mysql # DIV for integer division: 
query I rowsort label-5804
SELECT - 87 DIV + 86
----
-1

skipif mysql # not compatible
query I rowsort label-5804
SELECT - 87 / + 86
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5805
SELECT + 93 + - + CAST( NULL AS SIGNED ) * 29 AS col2, 14 * - 40 AS col1
----
NULL
-560

skipif mysql # not compatible
query II rowsort label-5805
SELECT + 93 + - + CAST ( NULL AS INTEGER ) * 29 AS col2, 14 * - 40 AS col1
----
NULL
-560

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5806
SELECT ALL - CAST( NULL AS SIGNED ) + 96 + - 18 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5806
SELECT ALL - CAST ( NULL AS INTEGER ) + 96 + - 18 col1
----
NULL

query I rowsort
SELECT - 5 * - - 29 AS col1
----
-145

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5808
SELECT ALL CAST( - 65 AS SIGNED ) * + 23 * - - 76 AS col1
----
-113620

skipif mysql # not compatible
query I rowsort label-5808
SELECT ALL CAST ( - 65 AS INTEGER ) * + 23 * - - 76 AS col1
----
-113620

onlyif mysql # aggregate syntax: 
query I rowsort label-5809
SELECT DISTINCT + 70 + 22 + 53 + + - 29 * - COUNT( * ) * 36 + - + 74
----
1115

skipif mysql # not compatible
query I rowsort label-5809
SELECT DISTINCT + 70 + 22 + 53 + + - 29 * - COUNT ( * ) * 36 + - + 74
----
1115

query I rowsort
SELECT + 77 * - 94 AS col1
----
-7238

query I rowsort
SELECT ALL - 83 + + 9 AS col1
----
-74

query I rowsort
SELECT + - 22 * 49 * + 8 - + 42 AS col2
----
-8666

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

skipif mysql # not compatible
query I rowsort label-5813
SELECT DISTINCT + COUNT ( DISTINCT 4 ) AS col2
----
1

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

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

query I rowsort
SELECT + ( + NULLIF ( + 44, - 58 + - - 75 * - - 75 - 13 * + 3 ) ) - + - 46
----
90

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

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

query I rowsort
SELECT + + 96 * + 82
----
7872

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

skipif mysql # not compatible
query I rowsort label-5818
SELECT ALL + COALESCE ( - - COUNT ( * ), + - 69 )
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5819
SELECT + CAST( + 67 AS SIGNED ), + 83 AS col2
----
67
83

skipif mysql # not compatible
query II rowsort label-5819
SELECT + CAST ( + 67 AS INTEGER ), + 83 AS col2
----
67
83

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5821
SELECT + CAST( + 19 AS SIGNED ) * - - 82 * + - 95 AS col2
----
-148010

skipif mysql # not compatible
query I rowsort label-5821
SELECT + CAST ( + 19 AS INTEGER ) * - - 82 * + - 95 AS col2
----
-148010

query I rowsort
SELECT ALL 83 * + ( + ( - - 73 ) ) * 53 AS col2
----
321127

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5824
SELECT + NULLIF ( - 86, 43 * + 65 * + 77 ) * + + 70 + - CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-5824
SELECT + NULLIF ( - 86, 43 * + 65 * + 77 ) * + + 70 + - CAST ( NULL AS REAL )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5825
SELECT ALL + COUNT( * ) / - CAST( NULL AS SIGNED ) * 85 AS col1, 87 * - + 17
----
NULL
-1479

skipif mysql # not compatible
query II rowsort label-5825
SELECT ALL + COUNT ( * ) / - CAST ( NULL AS INTEGER ) * 85 AS col1, 87 * - + 17
----
NULL
-1479

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5826
SELECT + 47 * + NULLIF ( + 90, + CAST( NULL AS SIGNED ) )
----
4230

skipif mysql # not compatible
query I rowsort label-5826
SELECT + 47 * + NULLIF ( + 90, + CAST ( NULL AS INTEGER ) )
----
4230

query I rowsort
SELECT - 17 * - + 74
----
1258

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5829
SELECT - 37 * - 93 - 35 DIV - 58 + - 57 col0
----
3384

skipif mysql # not compatible
query I rowsort label-5829
SELECT - 37 * - 93 - 35 / - 58 + - 57 col0
----
3384

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5831
SELECT ALL 69 * - 44 DIV + COUNT( * ) AS col1
----
-3036

skipif mysql # not compatible
query I rowsort label-5831
SELECT ALL 69 * - 44 / + COUNT ( * ) AS col1
----
-3036

query II rowsort
SELECT DISTINCT + 88 AS col2, 96 col0
----
88
96

onlyif mysql # aggregate syntax: 
query II rowsort label-5833
SELECT DISTINCT COUNT( * ) * - - 28 + 79 AS col1, 82 + 77 + 30 * 94
----
107
2979

skipif mysql # not compatible
query II rowsort label-5833
SELECT DISTINCT COUNT ( * ) * - - 28 + 79 AS col1, 82 + 77 + 30 * 94
----
107
2979

onlyif mysql # aggregate syntax: 
query I rowsort label-5834
SELECT DISTINCT + 37 * + ( + NULLIF ( - 90, - COALESCE ( COUNT( * ), - + 29 ) ) ) + - COUNT( * )
----
-3331

skipif mysql # not compatible
query I rowsort label-5834
SELECT DISTINCT + 37 * + ( + NULLIF ( - 90, - COALESCE ( COUNT ( * ), - + 29 ) ) ) + - COUNT ( * )
----
-3331

query I rowsort
SELECT - - 32 + - 7 AS col0
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-5836
SELECT COUNT( * ) * + - 88 - + + ( + + 76 ) - 6
----
-170

skipif mysql # not compatible
query I rowsort label-5836
SELECT COUNT ( * ) * + - 88 - + + ( + + 76 ) - 6
----
-170

query II rowsort
SELECT ALL 57 AS col1, + 85
----
57
85

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

query I rowsort
SELECT - + 57 + 4
----
-53

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

skipif mysql # not compatible
query I rowsort label-5840
SELECT - CAST ( ( - COUNT ( * ) ) AS INTEGER ) - - COUNT ( * )
----
2

query I rowsort
SELECT - 37 * + 81 col2
----
-2997

query II rowsort
SELECT - + 32, 72 AS col0
----
-32
72

onlyif mysql # aggregate syntax: 
query II rowsort label-5843
SELECT ALL - 80 * - + 82 + + + ( + ( MIN( DISTINCT - 81 ) ) ) AS col2, 54 + 49 + 22 AS col1
----
6479
125

skipif mysql # not compatible
query II rowsort label-5843
SELECT ALL - 80 * - + 82 + + + ( + ( MIN ( DISTINCT - 81 ) ) ) AS col2, 54 + 49 + 22 AS col1
----
6479
125

onlyif mysql # aggregate syntax: 
query I rowsort label-5844
SELECT ALL COUNT( * ) * 77 * - 36
----
-2772

skipif mysql # not compatible
query I rowsort label-5844
SELECT ALL COUNT ( * ) * 77 * - 36
----
-2772

query I rowsort
SELECT - 78 + + 7
----
-71

query I rowsort
SELECT ALL - + 98 - + 65 * + 51
----
-3413

onlyif mysql # aggregate syntax: 
query I rowsort label-5847
SELECT - - NULLIF ( COUNT( * ), AVG ( 50 ) ) + - 9 + 30
----
22

skipif mysql # not compatible
query I rowsort label-5847
SELECT - - NULLIF ( COUNT ( * ), AVG ( 50 ) ) + - 9 + 30
----
22

query I rowsort
SELECT DISTINCT - 78 * 56
----
-4368

query I rowsort
SELECT 75 + - + 15 AS col2
----
60

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

query I rowsort
SELECT - 53 * - 85
----
4505

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

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

query I rowsort
SELECT - 41 + - 93
----
-134

query I rowsort
SELECT - - 13 AS col2
----
13

query I rowsort
SELECT DISTINCT + 32 + + + 70 col0
----
102

query I rowsort
SELECT DISTINCT 7 * + 24 AS col2
----
168

onlyif mysql # aggregate syntax: 
query II rowsort label-5857
SELECT DISTINCT COUNT( * ) + 84, 75 AS col1
----
85
75

skipif mysql # not compatible
query II rowsort label-5857
SELECT DISTINCT COUNT ( * ) + 84, 75 AS col1
----
85
75

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

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

query I rowsort
SELECT DISTINCT 71 * ( - 35 )
----
-2485

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

skipif mysql # not compatible
query I rowsort label-5860
SELECT ALL 29 + ( - CAST ( NULL AS INTEGER ) ) AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5861
SELECT 15 * 3 - + 8 / CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5861
SELECT 15 * 3 - + 8 / CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5862
SELECT - 33 * + - 41 + - + CASE - CAST( NULL AS SIGNED ) WHEN + ( + CAST( NULL AS SIGNED ) ) THEN - 60 END * - - COUNT( * ) * + CAST( - 78 AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5862
SELECT - 33 * + - 41 + - + CASE - CAST ( NULL AS INTEGER ) WHEN + ( + CAST ( NULL AS INTEGER ) ) THEN - 60 END * - - COUNT ( * ) * + CAST ( - 78 AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5863
SELECT 37 * + - 11 AS col0, + 84 * + 88 * COUNT( * ) AS col2
----
-407
7392

skipif mysql # not compatible
query II rowsort label-5863
SELECT 37 * + - 11 AS col0, + 84 * + 88 * COUNT ( * ) AS col2
----
-407
7392

query I rowsort
SELECT 8 + + - 96
----
-88

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5865
SELECT ALL MAX( + 69 ) * - 1 + - CAST( 75 AS SIGNED ) - - 30
----
-114

skipif mysql # not compatible
query I rowsort label-5865
SELECT ALL MAX ( + 69 ) * - 1 + - CAST ( 75 AS INTEGER ) - - 30
----
-114

onlyif mysql # DIV for integer division: 
query I rowsort label-5866
SELECT DISTINCT ( + + 27 ) DIV 72
----
0

skipif mysql # not compatible
query I rowsort label-5866
SELECT DISTINCT ( + + 27 ) / 72
----
0

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

skipif mysql # not compatible
query I rowsort label-5867
SELECT 27 + - + 73 * + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5868
SELECT ALL 63 + 48 * + COUNT( * ) AS col1
----
111

skipif mysql # not compatible
query I rowsort label-5868
SELECT ALL 63 + 48 * + COUNT ( * ) AS col1
----
111

query I rowsort
SELECT ALL + 52 - 55 col0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-5870
SELECT DISTINCT - MIN( ALL 66 )
----
-66

skipif mysql # not compatible
query I rowsort label-5870
SELECT DISTINCT - MIN ( ALL 66 )
----
-66

query I rowsort
SELECT 52 + 63
----
115

onlyif mysql # aggregate syntax: 
query I rowsort label-5872
SELECT ALL ( - 10 ) - - + 93 * SUM( - 53 )
----
-4939

skipif mysql # not compatible
query I rowsort label-5872
SELECT ALL ( - 10 ) - - + 93 * SUM ( - 53 )
----
-4939

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5874
SELECT DISTINCT + CASE - COUNT( DISTINCT - ( + 6 ) ) WHEN - + NULLIF ( COUNT( + 59 ), + 10 + 27 ) THEN + + 81 * + COUNT( * ) END * 13 * + 56 + 36 * + COUNT( * )
----
59004

skipif mysql # not compatible
query I rowsort label-5874
SELECT DISTINCT + CASE - COUNT ( DISTINCT - ( + 6 ) ) WHEN - + NULLIF ( COUNT ( + 59 ), + 10 + 27 ) THEN + + 81 * + COUNT ( * ) END * 13 * + 56 + 36 * + COUNT ( * )
----
59004

onlyif mysql # aggregate syntax: 
query I rowsort label-5875
SELECT 10 * - 84 + 74 + COUNT( * ) * + + ( + 15 ) * + 54 * 69 AS col2
----
55124

skipif mysql # not compatible
query I rowsort label-5875
SELECT 10 * - 84 + 74 + COUNT ( * ) * + + ( + 15 ) * + 54 * 69 AS col2
----
55124

onlyif mysql # aggregate syntax: 
query I rowsort label-5876
SELECT - CASE - COUNT( * ) WHEN - 75 THEN 74 * + COUNT( * ) ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5876
SELECT - CASE - COUNT ( * ) WHEN - 75 THEN 74 * + COUNT ( * ) ELSE NULL END AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5877
SELECT MAX( ALL + + 77 ) * - 57 * - - CASE + CAST( 45 AS DECIMAL ) WHEN - + 3 + - 56 - + 32 THEN COUNT( * ) * - 34 WHEN ( - 50 ) THEN NULL ELSE NULL END + 46 / + 29
----
NULL

skipif mysql # not compatible
query I rowsort label-5877
SELECT MAX ( ALL + + 77 ) * - 57 * - - CASE + CAST ( 45 AS REAL ) WHEN - + 3 + - 56 - + 32 THEN COUNT ( * ) * - 34 WHEN ( - 50 ) THEN NULL ELSE NULL END + 46 / + 29
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5878
SELECT + 51 * + + CASE + + 39 WHEN - COALESCE ( + ( 79 ), - CAST( NULL AS SIGNED ) ) THEN + + 72 WHEN + 85 * 93 * 37 + - 4 - COUNT( * ) + + 54 THEN + 89 ELSE NULL END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5878
SELECT + 51 * + + CASE + + 39 WHEN - COALESCE ( + ( 79 ), - CAST ( NULL AS INTEGER ) ) THEN + + 72 WHEN + 85 * 93 * 37 + - 4 - COUNT ( * ) + + 54 THEN + 89 ELSE NULL END col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5879
SELECT - ( 34 ) * + MIN( - 12 ) AS col1, CASE 71 WHEN 73 + - ( - ( + - 20 ) ) THEN - 98 * - 65 + + - 79 * - - CASE + 82 WHEN 12 * - 91 + + COUNT( * ) * + CAST( NULLIF ( - 96, - 15 + - 8 ) AS SIGNED ) THEN + 18 END ELSE NULL END + CASE COUNT( * ) WHEN + 8 THEN NULL WHEN - 8 * - 74 THEN - 91 WHEN 88 * + 99 THEN NULL ELSE COUNT( * ) END
----
408
NULL

skipif mysql # not compatible
query II rowsort label-5879
SELECT - ( 34 ) * + MIN ( - 12 ) AS col1, CASE 71 WHEN 73 + - ( - ( + - 20 ) ) THEN - 98 * - 65 + + - 79 * - - CASE + 82 WHEN 12 * - 91 + + COUNT ( * ) * + CAST ( NULLIF ( - 96, - 15 + - 8 ) AS INTEGER ) THEN + 18 END ELSE NULL END + CASE COUNT ( * ) WHEN + 8 THEN NULL WHEN - 8 * - 74 THEN - 91 WHEN 88 * + 99 THEN NULL ELSE COUNT ( * ) END
----
408
NULL

query I rowsort
SELECT ALL + - 83 * + + 91 AS col2
----
-7553

query I rowsort
SELECT ALL + 7 * - + 68 col1
----
-476

onlyif mysql # aggregate syntax: 
query I rowsort label-5882
SELECT DISTINCT + 96 + COALESCE ( - 3, + MAX( + 81 ) ) AS col2
----
93

skipif mysql # not compatible
query I rowsort label-5882
SELECT DISTINCT + 96 + COALESCE ( - 3, + MAX ( + 81 ) ) AS col2
----
93

query I rowsort
SELECT 59 * - + 36 + + 37 col1
----
-2087

query I rowsort
SELECT DISTINCT - 82 + 86 AS col1
----
4

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

skipif mysql # not compatible
query II rowsort label-5885
SELECT DISTINCT 48, COUNT ( * ) AS col2
----
48
1

query I rowsort
SELECT 76 + - 49 AS col1
----
27

query I rowsort
SELECT ALL + 56 * 91 * + 32
----
163072

query I rowsort
SELECT 82 * - 40 * + 46 * - 33
----
4979040

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5889
SELECT DISTINCT + 45 * - + CAST( NULL AS SIGNED ) + 78 * ( + 29 ) * - COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5889
SELECT DISTINCT + 45 * - + CAST ( NULL AS INTEGER ) + 78 * ( + 29 ) * - COUNT ( * ) AS col2
----
NULL

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

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

query I rowsort
SELECT ALL - ( - + COALESCE ( + - 8, + 65 * 39 ) )
----
-8

query I rowsort
SELECT DISTINCT - CASE + 99 WHEN - 59 THEN NULL WHEN - 43 THEN - 44 END + 40 + + 91 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5893
SELECT ALL ( - 7 ) * - 61 - - ( COUNT( * ) )
----
428

skipif mysql # not compatible
query I rowsort label-5893
SELECT ALL ( - 7 ) * - 61 - - ( COUNT ( * ) )
----
428

onlyif mysql # aggregate syntax: 
query I rowsort label-5894
SELECT ALL + COUNT( * ) - + 22 + - - MIN( ALL + 16 ) * 52 AS col2
----
811

skipif mysql # not compatible
query I rowsort label-5894
SELECT ALL + COUNT ( * ) - + 22 + - - MIN ( ALL + 16 ) * 52 AS col2
----
811

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5895
SELECT DISTINCT CAST( 80 AS SIGNED ) - - CASE - - 52 WHEN - + 39 THEN COUNT( * ) DIV + 89 + + 99 * - NULLIF ( - 96, + CAST( ( 0 ) AS SIGNED ) + - MIN( 54 ) ) - COUNT( * ) ELSE + - 24 END
----
56

skipif mysql # not compatible
query I rowsort label-5895
SELECT DISTINCT CAST ( 80 AS INTEGER ) - - CASE - - 52 WHEN - + 39 THEN COUNT ( * ) / + 89 + + 99 * - NULLIF ( - 96, + CAST ( ( 0 ) AS INTEGER ) + - MIN ( 54 ) ) - COUNT ( * ) ELSE + - 24 END
----
56

query I rowsort
SELECT ALL 46 - + 40 + 0
----
6

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

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

query I rowsort
SELECT ( - 99 ) * + - 13 col2
----
1287

query I rowsort
SELECT ALL ( 60 ) * + - 68 AS col2
----
-4080

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

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

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

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

query I rowsort
SELECT 25 * 70 * - 32
----
-56000

onlyif mysql # aggregate syntax: 
query I rowsort label-5903
SELECT + + COUNT( 93 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-5903
SELECT + + COUNT ( 93 ) AS col2
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5904
SELECT ALL + 80 DIV SUM( ALL + 95 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-5904
SELECT ALL + 80 / SUM ( ALL + 95 ) AS col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5905
SELECT - COUNT( * ) + - CAST( ( + 16 ) AS SIGNED ) AS col0
----
-17

skipif mysql # not compatible
query I rowsort label-5905
SELECT - COUNT ( * ) + - CAST ( ( + 16 ) AS INTEGER ) AS col0
----
-17

onlyif mysql # DIV for integer division: 
query I rowsort label-5906
SELECT ALL 86 DIV - 27
----
-3

skipif mysql # not compatible
query I rowsort label-5906
SELECT ALL 86 / - 27
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5907
SELECT + 55 / - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5907
SELECT + 55 / - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5908
SELECT + CASE - 84 WHEN + CAST( NULL AS SIGNED ) THEN - 2 * - ( + + 31 ) * - + 17 + + 90 * 9 - - 40 END + - ( + - 84 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5908
SELECT + CASE - 84 WHEN + CAST ( NULL AS INTEGER ) THEN - 2 * - ( + + 31 ) * - + 17 + + 90 * 9 - - 40 END + - ( + - 84 ) AS col2
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5909
SELECT ALL CASE - 35 WHEN - 60 * + CAST( + 42 AS DECIMAL ) THEN - 71 END
----
NULL

skipif mysql # not compatible
query I rowsort label-5909
SELECT ALL CASE - 35 WHEN - 60 * + CAST ( + 42 AS REAL ) THEN - 71 END
----
NULL

query I rowsort
SELECT + 13 + - + 99 AS col1
----
-86

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5913
SELECT + COUNT( * ) + - ( 63 ) AS col1
----
-62

skipif mysql # not compatible
query I rowsort label-5913
SELECT + COUNT ( * ) + - ( 63 ) AS col1
----
-62

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5914
SELECT - + 33 - - + ( - 46 ) + - 14 + + 34 - - CAST( NULL AS SIGNED ) + + COUNT( * ) * 36 / COUNT( + 15 ) / - + 51 - - - 49 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5914
SELECT - + 33 - - + ( - 46 ) + - 14 + + 34 - - CAST ( NULL AS INTEGER ) + + COUNT ( * ) * 36 / COUNT ( + 15 ) / - + 51 - - - 49 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5915
SELECT ALL + COUNT( * ) * 99 * - - 59 * - COUNT( * ) + - + COALESCE ( 54, - NULLIF ( MIN( + 92 ), - 85 * + 70 ) )
----
-5895

skipif mysql # not compatible
query I rowsort label-5915
SELECT ALL + COUNT ( * ) * 99 * - - 59 * - COUNT ( * ) + - + COALESCE ( 54, - NULLIF ( MIN ( + 92 ), - 85 * + 70 ) )
----
-5895

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

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

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

query I rowsort
SELECT ALL 32 * - - 65
----
2080

onlyif mysql # aggregate syntax: 
query I rowsort label-5919
SELECT ALL COALESCE ( + COUNT( * ), + + 9, + + 76 + + ( + 56 ) ) + + + 71
----
72

skipif mysql # not compatible
query I rowsort label-5919
SELECT ALL COALESCE ( + COUNT ( * ), + + 9, + + 76 + + ( + 56 ) ) + + + 71
----
72

query I rowsort
SELECT DISTINCT + 34 * + 39
----
1326

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5922
SELECT + CAST( NULL AS SIGNED ) * COALESCE ( 51, COUNT( * ) * 15 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5922
SELECT + CAST ( NULL AS INTEGER ) * COALESCE ( 51, COUNT ( * ) * 15 )
----
NULL

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5924
SELECT + CAST( NULL AS DECIMAL ) + - MIN( CAST( NULL AS SIGNED ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5924
SELECT + CAST ( NULL AS REAL ) + - MIN ( CAST ( NULL AS INTEGER ) ) AS col2
----
NULL

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

skipif mysql # not compatible
query I rowsort label-5925
SELECT DISTINCT - 15 + - + 1 * - + COUNT ( * ) * + COUNT ( * )
----
-14

query II rowsort
SELECT 93 AS col0, - 36
----
93
-36

onlyif mysql # DIV for integer division: 
query I rowsort label-5927
SELECT + 71 DIV - + 99 * 8 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-5927
SELECT + 71 / - + 99 * 8 AS col2
----
0

query I rowsort
SELECT - 77 + - 99 AS col1
----
-176

query II rowsort
SELECT - 8, 82 + + 15 col0
----
-8
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5930
SELECT - CAST( NULL AS SIGNED ) / + + 52 + + + 53 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5930
SELECT - CAST ( NULL AS INTEGER ) / + + 52 + + + 53 AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5931
SELECT ALL - 97 / 6 * - - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5931
SELECT ALL - 97 / 6 * - - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL + 98 * - 16 AS col2
----
-1568

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5934
SELECT ALL + CASE - + 60 WHEN - 76 THEN - + SUM( ALL - 41 ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-5934
SELECT ALL + CASE - + 60 WHEN - 76 THEN - + SUM ( ALL - 41 ) ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5935
SELECT - MIN( DISTINCT - 46 ) * - 14 * + 89 + + + 61 + - + 20 DIV + ( + 8 ) - - - 9 + + 32 * - ( - 50 ) * - COUNT( * ) + - + 25 DIV - - 81 * CAST( - 12 AS SIGNED )
----
-58866

skipif mysql # not compatible
query I rowsort label-5935
SELECT - MIN ( DISTINCT - 46 ) * - 14 * + 89 + + + 61 + - + 20 / + ( + 8 ) - - - 9 + + 32 * - ( - 50 ) * - COUNT ( * ) + - + 25 / - - 81 * CAST ( - 12 AS INTEGER )
----
-58866

query I rowsort
SELECT - 11 * - + 32
----
352

onlyif mysql # aggregate syntax: 
query I rowsort label-5937
SELECT 89 * - + 13 + + COUNT( * ) + COUNT( * ) * - + ( - 96 ) * COUNT( * ) AS col0
----
-1060

skipif mysql # not compatible
query I rowsort label-5937
SELECT 89 * - + 13 + + COUNT ( * ) + COUNT ( * ) * - + ( - 96 ) * COUNT ( * ) AS col0
----
-1060

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5938
SELECT + 87 / + 42 * 71 * + CAST( NULL AS SIGNED ) / 90 * COALESCE ( - COALESCE ( 30, - + ( 25 ) * + 19 - + 68 * - COUNT( * ) - - 79 ), 10 / + - ( - COUNT( * ) ) + - 59, + - 66 * CAST( - - 11 AS DECIMAL ) ) + + COUNT( - CASE 17 WHEN 36 THEN + 92 ELSE NULL END ) - - 38 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5938
SELECT + 87 / + 42 * 71 * + CAST ( NULL AS INTEGER ) / 90 * COALESCE ( - COALESCE ( 30, - + ( 25 ) * + 19 - + 68 * - COUNT ( * ) - - 79 ), 10 / + - ( - COUNT ( * ) ) + - 59, + - 66 * CAST ( - - 11 AS REAL ) ) + + COUNT ( - CASE 17 WHEN 36 THEN + 92 ELSE NULL END ) - - 38 AS col2
----
NULL

query II rowsort
SELECT + 39, + 77 - - 98 AS col1
----
39
175

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

skipif mysql # not compatible
query I rowsort label-5940
SELECT DISTINCT + COUNT ( * ) * - SUM ( DISTINCT 4 ) AS col0
----
-4

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

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

query I rowsort
SELECT ALL + - 87 col1
----
-87

query I rowsort
SELECT - 30 + + 13
----
-17

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

query I rowsort
SELECT ALL 74 * + 85
----
6290

query I rowsort
SELECT + - COALESCE ( - 59, - 77 ) + - 12 AS col1
----
47

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5947
SELECT + - 9 AS col0, 84 * CASE + 35 WHEN + - ( + + CAST( NULL AS SIGNED ) ) THEN - + 93 * + 9 * 57 / - 9 + + CAST( NULL AS SIGNED ) + + 89 ELSE NULL END * - 18 - + 32 AS col0
----
-9
NULL

skipif mysql # not compatible
query II rowsort label-5947
SELECT + - 9 AS col0, 84 * CASE + 35 WHEN + - ( + + CAST ( NULL AS INTEGER ) ) THEN - + 93 * + 9 * 57 / - 9 + + CAST ( NULL AS INTEGER ) + + 89 ELSE NULL END * - 18 - + 32 AS col0
----
-9
NULL

query I rowsort
SELECT ALL - 73 * 63 + - - 15 AS col0
----
-4584

onlyif mysql # aggregate syntax: 
query I rowsort label-5949
SELECT + COUNT( ALL 51 )
----
1

skipif mysql # not compatible
query I rowsort label-5949
SELECT + COUNT ( ALL 51 )
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5950
SELECT + + 37 + - 35 + CASE 81 WHEN - COUNT( * ) * - 91 + - COUNT( * ) THEN 9 * COUNT( DISTINCT + - 84 ) + - + 0 - - 54 * + NULLIF ( 3, NULLIF ( - + ( COUNT( DISTINCT - + 78 ) ), SUM( ALL - 90 ) * - + 63 + 55 ) ) * - 4 * 55 + - 32 / + - CAST( - ( - MIN( ALL CAST( NULL AS SIGNED ) ) ) AS SIGNED ) END + - 4 * - 59
----
NULL

skipif mysql # not compatible
query I rowsort label-5950
SELECT + + 37 + - 35 + CASE 81 WHEN - COUNT ( * ) * - 91 + - COUNT ( * ) THEN 9 * COUNT ( DISTINCT + - 84 ) + - + 0 - - 54 * + NULLIF ( 3, NULLIF ( - + ( COUNT ( DISTINCT - + 78 ) ), SUM ( ALL - 90 ) * - + 63 + 55 ) ) * - 4 * 55 + - 32 / + - CAST ( - ( - MIN ( ALL CAST ( NULL AS INTEGER ) ) ) AS INTEGER ) END + - 4 * - 59
----
NULL

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

query I rowsort
SELECT - - 68 * - 80
----
-5440

query III rowsort
SELECT DISTINCT + 6 col0, 20 - - 53 * 69, 94 * + 18 + 85 AS col1
----
6
3677
1777

onlyif mysql # aggregate syntax: 
query I rowsort label-5954
SELECT + COUNT( * ) * MAX( 15 ) AS col0
----
15

skipif mysql # not compatible
query I rowsort label-5954
SELECT + COUNT ( * ) * MAX ( 15 ) AS col0
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-5955
SELECT ALL - - 99 + - - 13 * + COUNT( - 40 ) + 40 - + 1 + - ( + 49 ) * ( - 55 ) AS col0
----
2846

skipif mysql # not compatible
query I rowsort label-5955
SELECT ALL - - 99 + - - 13 * + COUNT ( - 40 ) + 40 - + 1 + - ( + 49 ) * ( - 55 ) AS col0
----
2846

onlyif mysql # aggregate syntax: 
query II rowsort label-5956
SELECT DISTINCT 21 * COUNT( * ) AS col0, - 38 AS col1
----
21
-38

skipif mysql # not compatible
query II rowsort label-5956
SELECT DISTINCT 21 * COUNT ( * ) AS col0, - 38 AS col1
----
21
-38

query I rowsort
SELECT + 60 * - 7
----
-420

onlyif mysql # DIV for integer division: 
query I rowsort label-5958
SELECT DISTINCT 4 DIV - - ( + - 37 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-5958
SELECT DISTINCT 4 / - - ( + - 37 ) AS col1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5959
SELECT + 74 DIV - + 89
----
0

skipif mysql # not compatible
query I rowsort label-5959
SELECT + 74 / - + 89
----
0

query I rowsort
SELECT ALL 43 + + 1 AS col2
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-5961
SELECT - + 41 - + COUNT( + 87 )
----
-42

skipif mysql # not compatible
query I rowsort label-5961
SELECT - + 41 - + COUNT ( + 87 )
----
-42

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5962
SELECT + + CAST( NULL AS SIGNED ) * - 31 * + 20 + + 40 + ( - 16 ) + + - 27 - + - 47 * 46 * - + 64 * - 45 + + + 20 + + 0 + - 28 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5962
SELECT + + CAST ( NULL AS INTEGER ) * - 31 * + 20 + + 40 + ( - 16 ) + + - 27 - + - 47 * 46 * - + 64 * - 45 + + + 20 + + 0 + - 28 AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5963
SELECT + CAST( - 9 AS SIGNED ) - 20 + + + 56 * - 87 + - - 1 * - MAX( ALL 70 ) * - SUM( DISTINCT - + 17 )
----
-6091

skipif mysql # not compatible
query I rowsort label-5963
SELECT + CAST ( - 9 AS INTEGER ) - 20 + + + 56 * - 87 + - - 1 * - MAX ( ALL 70 ) * - SUM ( DISTINCT - + 17 )
----
-6091

query I rowsort
SELECT - CASE - + ( + - 25 ) WHEN + ( 11 ) THEN NULL WHEN - 66 THEN + 84 + + + 74 END
----
NULL

query I rowsort
SELECT + 18 + + 51
----
69

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5966
SELECT ALL SUM( DISTINCT - 77 ) + - + CAST( + COUNT( * ) AS SIGNED ) * + 38 AS col2
----
-115

skipif mysql # not compatible
query I rowsort label-5966
SELECT ALL SUM ( DISTINCT - 77 ) + - + CAST ( + COUNT ( * ) AS INTEGER ) * + 38 AS col2
----
-115

query I rowsort
SELECT DISTINCT 41 * 56 * + 50 col1
----
114800

query I rowsort
SELECT DISTINCT 12 - NULLIF ( + - ( - 23 ), - 47 ) + + 11 * + 68 * + 34 col2
----
25421

query I rowsort
SELECT ALL 76 * - 17
----
-1292

onlyif mysql # aggregate syntax: 
query I rowsort label-5970
SELECT ALL CASE 49 WHEN - 27 + - COUNT( * ) * - 38 THEN + - 12 ELSE - 90 + - 19 * 9 * 25 * + 1 * - 19 END
----
81135

skipif mysql # not compatible
query I rowsort label-5970
SELECT ALL CASE 49 WHEN - 27 + - COUNT ( * ) * - 38 THEN + - 12 ELSE - 90 + - 19 * 9 * 25 * + 1 * - 19 END
----
81135

query I rowsort
SELECT + 41 - + 73 + - + 11 + + ( + 23 ) AS col0
----
-20

query II rowsort
SELECT DISTINCT 6 * + 55 AS col2, 46 AS col1
----
330
46

onlyif mysql # aggregate syntax: 
query I rowsort label-5973
SELECT + 17 - - COUNT( * ) + - + 29 * - CASE WHEN NULL NOT BETWEEN NULL AND ( - 34 ) THEN + + 53 ELSE 50 END
----
1468

skipif mysql # not compatible
query I rowsort label-5973
SELECT + 17 - - COUNT ( * ) + - + 29 * - CASE WHEN NULL NOT BETWEEN NULL AND ( - 34 ) THEN + + 53 ELSE 50 END
----
1468

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5975
SELECT - 35 * 37 * + CAST( - 2 AS SIGNED ) AS col2
----
2590

skipif mysql # not compatible
query I rowsort label-5975
SELECT - 35 * 37 * + CAST ( - 2 AS INTEGER ) AS col2
----
2590

onlyif mysql # DIV for integer division: 
query II rowsort label-5976
SELECT ALL 40 * + 60 AS col0, 92 - 86 DIV ( + 54 ) col0
----
2400
91

skipif mysql # not compatible
query II rowsort label-5976
SELECT ALL 40 * + 60 AS col0, 92 - 86 / ( + 54 ) col0
----
2400
91

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

skipif mysql # not compatible
query I rowsort label-5977
SELECT ALL SUM ( ALL - 46 )
----
-46

query I rowsort
SELECT + 5 + - 14 AS col2
----
-9

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5980
SELECT + 83 DIV - 20 - - + 26 + - - 5 * 1 * - 2 AS col1
----
12

skipif mysql # not compatible
query I rowsort label-5980
SELECT + 83 / - 20 - - + 26 + - - 5 * 1 * - 2 AS col1
----
12

query I rowsort
SELECT ALL + COALESCE ( 11, - 59 ) AS col2
----
11

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5983
SELECT DISTINCT 80 DIV - + COUNT( * )
----
-80

skipif mysql # not compatible
query I rowsort label-5983
SELECT DISTINCT 80 / - + COUNT ( * )
----
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-5984
SELECT ALL + COUNT( * ) * + 55 + - - 22 * 55 AS col2
----
1265

skipif mysql # not compatible
query I rowsort label-5984
SELECT ALL + COUNT ( * ) * + 55 + - - 22 * 55 AS col2
----
1265

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5985
SELECT + 28 DIV + - 47 + - - MAX( 36 )
----
36

skipif mysql # not compatible
query I rowsort label-5985
SELECT + 28 / + - 47 + - - MAX ( 36 )
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-5986
SELECT + 68 + - 61 + + - COUNT( * ) + - ( - 72 ) + + - 68
----
10

skipif mysql # not compatible
query I rowsort label-5986
SELECT + 68 + - 61 + + - COUNT ( * ) + - ( - 72 ) + + - 68
----
10

query I rowsort
SELECT + - COALESCE ( - 11, - 81, 36 ) AS col2
----
11

query I rowsort
SELECT + + 11 col1
----
11

query I rowsort
SELECT DISTINCT + 70 + - + 53 - - 57 AS col1
----
74

query II rowsort
SELECT ALL - 11 + + 94, + ( + ( - 96 ) ) AS col2
----
83
-96

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

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

query I rowsort
SELECT ALL + + 76 + 62 + + + 9 + + - 29 AS col1
----
118

query I rowsort
SELECT 34 + + 19 AS col1
----
53

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5995
SELECT + COUNT( * ) + + 97 + + + 53 * COALESCE ( 51, - - 8 + - 34 ) * + + CAST( 39 AS SIGNED ) + - 61 - + 60 + - 85
----
105309

skipif mysql # not compatible
query I rowsort label-5995
SELECT + COUNT ( * ) + + 97 + + + 53 * COALESCE ( 51, - - 8 + - 34 ) * + + CAST ( 39 AS INTEGER ) + - 61 - + 60 + - 85
----
105309

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5996
SELECT ALL + COALESCE ( - 63, 72 * + + COALESCE ( - NULLIF ( - COALESCE ( 21, - COUNT( * ), + + COUNT( * ) - + 55 ), - - SUM( DISTINCT CAST( NULL AS SIGNED ) ) * + + ( - - 88 ) + - 50 + ( + - 50 ) * CAST( - - 30 AS SIGNED ) + + 32 + - 87 * + 23 ), - COUNT( * ) * - MIN( ALL + 41 ), - 88 ) ) + + MAX( 75 ) + + 31 * ( - 77 ) * CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5996
SELECT ALL + COALESCE ( - 63, 72 * + + COALESCE ( - NULLIF ( - COALESCE ( 21, - COUNT ( * ), + + COUNT ( * ) - + 55 ), - - SUM ( DISTINCT CAST ( NULL AS INTEGER ) ) * + + ( - - 88 ) + - 50 + ( + - 50 ) * CAST ( - - 30 AS INTEGER ) + + 32 + - 87 * + 23 ), - COUNT ( * ) * - MIN ( ALL + 41 ), - 88 ) ) + + MAX ( 75 ) + + 31 * ( - 77 ) * CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5997
SELECT ALL + 76 + + 73 DIV + + 2 + - 70 col0
----
42

skipif mysql # not compatible
query I rowsort label-5997
SELECT ALL + 76 + + 73 / + + 2 + - 70 col0
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-5998
SELECT 13 + 22 / - - 63 + 10 - - 92 + + CASE - 55 WHEN + - 44 THEN - ( 5 ) * - - 94 + + 42 + + 24 + + 58 WHEN NULLIF ( - AVG ( DISTINCT - 83 ), 3 * CASE 19 WHEN 92 / - 18 - + NULLIF ( + 95, - 24 ) * + 1 + - 6 - - 83 THEN NULL WHEN - MIN( 30 ) THEN 84 ELSE NULL END ) * ( - 22 + + 11 ) THEN 85 + SUM( + 76 + - 85 * - 34 ) ELSE NULLIF ( - COUNT( * ), - COUNT( * ) ) END * - MAX( - ( + 72 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-5998
SELECT 13 + 22 / - - 63 + 10 - - 92 + + CASE - 55 WHEN + - 44 THEN - ( 5 ) * - - 94 + + 42 + + 24 + + 58 WHEN NULLIF ( - AVG ( DISTINCT - 83 ), 3 * CASE 19 WHEN 92 / - 18 - + NULLIF ( + 95, - 24 ) * + 1 + - 6 - - 83 THEN NULL WHEN - MIN ( 30 ) THEN 84 ELSE NULL END ) * ( - 22 + + 11 ) THEN 85 + SUM ( + 76 + - 85 * - 34 ) ELSE NULLIF ( - COUNT ( * ), - COUNT ( * ) ) END * - MAX ( - ( + 72 ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5999
SELECT + COALESCE ( + - 14, 38 * + COUNT( * ) * + 2 ) + 69
----
55

skipif mysql # not compatible
query I rowsort label-5999
SELECT + COALESCE ( + - 14, 38 * + COUNT ( * ) * + 2 ) + 69
----
55

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6000
SELECT 3 - - - NULLIF ( - - 34, - CAST( 42 AS SIGNED ) ) DIV ( - + 80 ) * + ( + 79 ) * - 46 AS col0
----
3

skipif mysql # not compatible
query I rowsort label-6000
SELECT 3 - - - NULLIF ( - - 34, - CAST ( 42 AS INTEGER ) ) / ( - + 80 ) * + ( + 79 ) * - 46 AS col0
----
3

query III rowsort
SELECT 6 + 22 col2, 41 col0, 15 * 39 - - 86 + + 55
----
28
41
726

query I rowsort
SELECT ( - 88 ) + + 26 + + ( + 26 ) + - 14
----
-50

query II rowsort
SELECT 75 AS col1, 95 - 27 AS col0
----
75
68

onlyif mysql # aggregate syntax: 
query II rowsort label-6004
SELECT ALL SUM( 38 ) - - 7, - 70 AS col1
----
45
-70

skipif mysql # not compatible
query II rowsort label-6004
SELECT ALL SUM ( 38 ) - - 7, - 70 AS col1
----
45
-70

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6005
SELECT 11 + - CASE COUNT( * ) WHEN CAST( NULL AS SIGNED ) THEN - 55 ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6005
SELECT 11 + - CASE COUNT ( * ) WHEN CAST ( NULL AS INTEGER ) THEN - 55 ELSE NULL END AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-6006
SELECT ALL 3 AS col1, - 22 DIV 51
----
3
0

skipif mysql # not compatible
query II rowsort label-6006
SELECT ALL 3 AS col1, - 22 / 51
----
3
0

query I rowsort
SELECT 21 + 65 AS col0
----
86

query II rowsort
SELECT DISTINCT 56 AS col0, + 87 AS col2
----
56
87

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6009
SELECT COUNT( * ) + - - 91 + + - 98 + CASE + CAST( + 46 AS SIGNED ) WHEN + 84 THEN NULL ELSE + COUNT( * ) END AS col2
----
-5

skipif mysql # not compatible
query I rowsort label-6009
SELECT COUNT ( * ) + - - 91 + + - 98 + CASE + CAST ( + 46 AS INTEGER ) WHEN + 84 THEN NULL ELSE + COUNT ( * ) END AS col2
----
-5

onlyif mysql # DIV for integer division: 
query I rowsort label-6010
SELECT ALL 29 DIV + 3 AS col1
----
9

skipif mysql # not compatible
query I rowsort label-6010
SELECT ALL 29 / + 3 AS col1
----
9

query II rowsort
SELECT ALL 14 AS col2, - NULLIF ( 51, - 56 )
----
14
-51

query I rowsort
SELECT 17 + - 73
----
-56

query II rowsort
SELECT DISTINCT 23 AS col2, 95 AS col1
----
23
95

query I rowsort
SELECT 65 + ( + - 32 ) + - 29
----
4

query I rowsort
SELECT 36 * - 21
----
-756

query I rowsort
SELECT 71 * + 10 AS col0
----
710

query I rowsort
SELECT ALL 87 * + - 3
----
-261

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6018
SELECT ALL SUM( DISTINCT + ( + 25 ) ) + + + 5 + COUNT( * ) + - 32 DIV - ( - 41 ) + 86
----
117

skipif mysql # not compatible
query I rowsort label-6018
SELECT ALL SUM ( DISTINCT + ( + 25 ) ) + + + 5 + COUNT ( * ) + - 32 / - ( - 41 ) + 86
----
117

onlyif mysql # aggregate syntax: 
query II rowsort label-6019
SELECT ALL - NULLIF ( - - 14, + 44 ) AS col0, - 41 * 72 * - SUM( DISTINCT - 96 ) AS col0
----
-14
-283392

skipif mysql # not compatible
query II rowsort label-6019
SELECT ALL - NULLIF ( - - 14, + 44 ) AS col0, - 41 * 72 * - SUM ( DISTINCT - 96 ) AS col0
----
-14
-283392

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6020
SELECT - + 15 * + CAST( - 57 AS SIGNED ) + + - COUNT( * ) + - - 59
----
913

skipif mysql # not compatible
query I rowsort label-6020
SELECT - + 15 * + CAST ( - 57 AS INTEGER ) + + - COUNT ( * ) + - - 59
----
913

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6021
SELECT COUNT( * ) - ( + NULLIF ( 84, - 9 * - - CAST( NULL AS SIGNED ) - 91 + + + 60 * - - 65 ) ) AS col0
----
-83

skipif mysql # not compatible
query I rowsort label-6021
SELECT COUNT ( * ) - ( + NULLIF ( 84, - 9 * - - CAST ( NULL AS INTEGER ) - 91 + + + 60 * - - 65 ) ) AS col0
----
-83

query I rowsort
SELECT + + NULLIF ( - COALESCE ( + 95, - - 15 ), + 46 )
----
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-6023
SELECT - 65 * + ( 53 ) * + - ( + + 53 ) + COALESCE ( + 98, + COUNT( * ), CASE WHEN NOT - 82 IS NOT NULL THEN NULL ELSE + + COUNT( * ) * 51 END * - 82 * - 75 ) AS col0
----
182683

skipif mysql # not compatible
query I rowsort label-6023
SELECT - 65 * + ( 53 ) * + - ( + + 53 ) + COALESCE ( + 98, + COUNT ( * ), CASE WHEN NOT - 82 IS NOT NULL THEN NULL ELSE + + COUNT ( * ) * 51 END * - 82 * - 75 ) AS col0
----
182683

query I rowsort
SELECT + - 51 * - 59 + 86 col0
----
3095

query I rowsort
SELECT DISTINCT - 74 + + 87
----
13

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

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

query II rowsort
SELECT + + 26 AS col2, - 32 AS col1
----
26
-32

query I rowsort
SELECT ALL + - 24 + - 57 * + - ( - 19 ) AS col2
----
-1107

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6029
SELECT + - 22 * MAX( ALL - 4 ) - - 8 + + COUNT( * ) + 19 + + 31 + - 27 * - 10 * + + 61 * + + CAST( - - 63 AS SIGNED )
----
1037757

skipif mysql # not compatible
query I rowsort label-6029
SELECT + - 22 * MAX ( ALL - 4 ) - - 8 + + COUNT ( * ) + 19 + + 31 + - 27 * - 10 * + + 61 * + + CAST ( - - 63 AS INTEGER )
----
1037757

query II rowsort
SELECT + 23 AS col1, 89 - - 86
----
23
175

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

query I rowsort
SELECT 80 * + 41
----
3280

query I rowsort
SELECT 82 * - 76 AS col0
----
-6232

query I rowsort
SELECT - 51 + 58
----
7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6035
SELECT ALL - 89 * 27 * SUM( ALL - - 62 ) DIV 72
----
-2069

skipif mysql # not compatible
query I rowsort label-6035
SELECT ALL - 89 * 27 * SUM ( ALL - - 62 ) / 72
----
-2069

query I rowsort
SELECT ALL - - 69 * 61
----
4209

onlyif mysql # DIV for integer division: 
query I rowsort label-6037
SELECT ALL - 11 * + 0 DIV 16 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-6037
SELECT ALL - 11 * + 0 / 16 AS col0
----
0

query I rowsort
SELECT 27 * - - 46
----
1242

query I rowsort
SELECT DISTINCT 51 col0
----
51

query I rowsort
SELECT 40 * - + 19 * - + 65 AS col2
----
49400

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6042
SELECT ALL + 66 DIV - 33
----
-2

skipif mysql # not compatible
query I rowsort label-6042
SELECT ALL + 66 / - 33
----
-2

query II rowsort
SELECT 17 * 84, 3 AS col1
----
1428
3

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

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

query I rowsort
SELECT 45 - - - 79
----
-34

query I rowsort
SELECT DISTINCT + 49 + + 52
----
101

onlyif mysql # aggregate syntax: 
query I rowsort label-6047
SELECT + COALESCE ( + + MAX( DISTINCT 67 ), - ( - - 67 ) ) - 71 + 69 + - 87 AS col0
----
-22

skipif mysql # not compatible
query I rowsort label-6047
SELECT + COALESCE ( + + MAX ( DISTINCT 67 ), - ( - - 67 ) ) - 71 + 69 + - 87 AS col0
----
-22

onlyif mysql # DIV for integer division: 
query I rowsort label-6048
SELECT + COALESCE ( + - 18, - + 81, - 6 * + - 31 * + + 75 * - + 58 ) DIV - - 27 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-6048
SELECT + COALESCE ( + - 18, - + 81, - 6 * + - 31 * + + 75 * - + 58 ) / - - 27 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6049
SELECT ALL + NULLIF ( 83, - MAX( 72 ) ) + - 16 AS col0
----
67

skipif mysql # not compatible
query I rowsort label-6049
SELECT ALL + NULLIF ( 83, - MAX ( 72 ) ) + - 16 AS col0
----
67

query I rowsort
SELECT ALL - 76 + + - 55 AS col0
----
-131

onlyif mysql # aggregate syntax: 
query I rowsort label-6051
SELECT - SUM( 86 ) + + ( + - 30 ) * + 76 + + 79 AS col2
----
-2287

skipif mysql # not compatible
query I rowsort label-6051
SELECT - SUM ( 86 ) + + ( + - 30 ) * + 76 + + 79 AS col2
----
-2287

onlyif mysql # DIV for integer division: 
query I rowsort label-6052
SELECT ALL 80 DIV - ( + + 68 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-6052
SELECT ALL 80 / - ( + + 68 ) AS col1
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-6053
SELECT - 50 DIV 73 + 93 AS col2
----
93

skipif mysql # not compatible
query I rowsort label-6053
SELECT - 50 / 73 + 93 AS col2
----
93

onlyif mysql # DIV for integer division: 
query I rowsort label-6054
SELECT + - 25 DIV + - 39 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-6054
SELECT + - 25 / + - 39 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6055
SELECT + - COALESCE ( - COUNT( * ), - 36 + - 85 )
----
1

skipif mysql # not compatible
query I rowsort label-6055
SELECT + - COALESCE ( - COUNT ( * ), - 36 + - 85 )
----
1

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6057
SELECT + CASE + SUM( DISTINCT + - 97 ) WHEN + + COUNT( * ) THEN + + 5 / + - 90 * - 84 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-6057
SELECT + CASE + SUM ( DISTINCT + - 97 ) WHEN + + COUNT ( * ) THEN + + 5 / + - 90 * - 84 ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6058
SELECT ALL + CAST( - 70 AS SIGNED )
----
-70

skipif mysql # not compatible
query I rowsort label-6058
SELECT ALL + CAST ( - 70 AS INTEGER )
----
-70

query I rowsort
SELECT + 99 * + 87 * 52 + - 14 + - - 14
----
447876

query I rowsort
SELECT DISTINCT 39 * + 54 AS col0
----
2106

query II rowsort
SELECT DISTINCT + + ( - 28 ) AS col0, - 70 * + - 39
----
-28
2730

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6064
SELECT DISTINCT + 18 * - CASE 87 WHEN + 95 THEN ( - COUNT( * ) ) * - + COALESCE ( - + 30, 81, 55 * 78 * + - 13 ) * + 87 + MAX( 16 ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6064
SELECT DISTINCT + 18 * - CASE 87 WHEN + 95 THEN ( - COUNT ( * ) ) * - + COALESCE ( - + 30, 81, 55 * 78 * + - 13 ) * + 87 + MAX ( 16 ) END AS col0
----
NULL

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

query I rowsort
SELECT + + 63 * - 69
----
-4347

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6068
SELECT + - 88 + - COALESCE ( - - COUNT( 97 ), + 67, + - 40 )
----
-89

skipif mysql # not compatible
query I rowsort label-6068
SELECT + - 88 + - COALESCE ( - - COUNT ( 97 ), + 67, + - 40 )
----
-89

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6071
SELECT ALL + NULLIF ( MIN( DISTINCT + ( - 40 ) ), - 67 + + - 19 * + + 93 / - 7 ) * + + 7
----
-280

skipif mysql # not compatible
query I rowsort label-6071
SELECT ALL + NULLIF ( MIN ( DISTINCT + ( - 40 ) ), - 67 + + - 19 * + + 93 / - 7 ) * + + 7
----
-280

query I rowsort
SELECT 43 * 25 + - 50 AS col1
----
1025

onlyif mysql # DIV for integer division: 
query I rowsort label-6073
SELECT DISTINCT ( - 18 ) DIV 50 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-6073
SELECT DISTINCT ( - 18 ) / 50 AS col1
----
0

query I rowsort
SELECT + 6 + - - 5 + - 83 + - 93 AS col2
----
-165

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6075
SELECT 70 * - 93 - CASE + NULLIF ( - CAST( + 37 AS SIGNED ), - 23 * + 49 ) WHEN + - CASE COUNT( + ( 7 ) ) WHEN 93 * COUNT( * ) * + COUNT( * ) / - ( - ( + 62 ) ) + 20 THEN NULL WHEN + 56 THEN - + CAST( NULL AS SIGNED ) + - + COUNT( * ) ELSE NULL END THEN 61 - 83 - + 53 + - COUNT( - 34 ) * + 98 * CAST( - 29 AS DECIMAL ) WHEN + 36 + - COALESCE ( 34 + + COUNT( * ) * 67, - 5 ) * 46 THEN - ( + 95 ) * - 34 + 26 WHEN + 7 / COUNT( * ) THEN NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6075
SELECT 70 * - 93 - CASE + NULLIF ( - CAST ( + 37 AS INTEGER ), - 23 * + 49 ) WHEN + - CASE COUNT ( + ( 7 ) ) WHEN 93 * COUNT ( * ) * + COUNT ( * ) / - ( - ( + 62 ) ) + 20 THEN NULL WHEN + 56 THEN - + CAST ( NULL AS INTEGER ) + - + COUNT ( * ) ELSE NULL END THEN 61 - 83 - + 53 + - COUNT ( - 34 ) * + 98 * CAST ( - 29 AS REAL ) WHEN + 36 + - COALESCE ( 34 + + COUNT ( * ) * 67, - 5 ) * 46 THEN - ( + 95 ) * - 34 + 26 WHEN + 7 / COUNT ( * ) THEN NULL END AS col1
----
NULL

query I rowsort
SELECT ALL - 34 * - + 24 AS col0
----
816

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

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

query I rowsort
SELECT - 64 + 67 - 57 * + ( - - COALESCE ( - 58, + ( + 25 ) ) ) AS col0
----
3309

query I rowsort
SELECT ALL NULLIF ( + - 6, - 20 )
----
-6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6081
SELECT ALL + 44 + + 89 * CAST( NULL AS SIGNED ), + 20 * + CAST( NULL AS SIGNED ) * - 95 + + NULLIF ( - + 93, + COALESCE ( - - 90, - 60 * - 89 + - 19 + 76 * MAX( DISTINCT 18 ) / - - 52 + 55 ) ) + + ( - 86 ) * COUNT( * )
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-6081
SELECT ALL + 44 + + 89 * CAST ( NULL AS INTEGER ), + 20 * + CAST ( NULL AS INTEGER ) * - 95 + + NULLIF ( - + 93, + COALESCE ( - - 90, - 60 * - 89 + - 19 + 76 * MAX ( DISTINCT 18 ) / - - 52 + 55 ) ) + + ( - 86 ) * COUNT ( * )
----
NULL
NULL

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

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

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

query I rowsort
SELECT ALL ( - 36 ) AS col0
----
-36

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6085
SELECT - COALESCE ( + ( - 11 ), ( + - CASE 39 WHEN 20 THEN NULL WHEN - COUNT( * ) * - COUNT( * ) THEN - 15 - COUNT( * ) END ) ) + CAST( NULL AS SIGNED ) * + 63 + 68 / + + 70 AS col1, - 96
----
NULL
-96

skipif mysql # not compatible
query II rowsort label-6085
SELECT - COALESCE ( + ( - 11 ), ( + - CASE 39 WHEN 20 THEN NULL WHEN - COUNT ( * ) * - COUNT ( * ) THEN - 15 - COUNT ( * ) END ) ) + CAST ( NULL AS INTEGER ) * + 63 + 68 / + + 70 AS col1, - 96
----
NULL
-96

query I rowsort
SELECT ALL + 44 + - - ( + 32 )
----
76

query I rowsort
SELECT DISTINCT NULLIF ( - 99, 68 + 77 )
----
-99

onlyif mysql # aggregate syntax: 
query II rowsort label-6088
SELECT - COUNT( * ) AS col1, - 19 * - 79 * - + 81 AS col1
----
-1
-121581

skipif mysql # not compatible
query II rowsort label-6088
SELECT - COUNT ( * ) AS col1, - 19 * - 79 * - + 81 AS col1
----
-1
-121581

query I rowsort
SELECT ALL ( - NULLIF ( - 2, - 59 + + 76 ) )
----
2

query I rowsort
SELECT - 10 + + 42 AS col1
----
32

query I rowsort
SELECT - CASE + + 6 WHEN + 11 + 68 + - + 88 - 46 + + 85 THEN - - 8 END * + - ( 29 ) / 48 * + + 28
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6092
SELECT - CAST( + - CAST( ( - + 50 ) AS DECIMAL ) AS SIGNED ) + ( 47 ) AS col2
----
-3

skipif mysql # not compatible
query I rowsort label-6092
SELECT - CAST ( + - CAST ( ( - + 50 ) AS REAL ) AS INTEGER ) + ( 47 ) AS col2
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-6093
SELECT ALL + - ( + - MAX( DISTINCT + 44 ) ) + + - MIN( ALL + 53 ) AS col0
----
-9

skipif mysql # not compatible
query I rowsort label-6093
SELECT ALL + - ( + - MAX ( DISTINCT + 44 ) ) + + - MIN ( ALL + 53 ) AS col0
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-6094
SELECT ALL - - 69 + + COUNT( DISTINCT + 33 ) + - + 72
----
-2

skipif mysql # not compatible
query I rowsort label-6094
SELECT ALL - - 69 + + COUNT ( DISTINCT + 33 ) + - + 72
----
-2

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6096
SELECT ALL + 49 DIV - - 21 - - 70
----
72

skipif mysql # not compatible
query I rowsort label-6096
SELECT ALL + 49 / - - 21 - - 70
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-6097
SELECT - 97 + + - CASE 7 WHEN - COUNT( * ) THEN + 44 * + 75 - - 50 + + - MAX( ALL + 65 ) / + 17 WHEN 88 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-6097
SELECT - 97 + + - CASE 7 WHEN - COUNT ( * ) THEN + 44 * + 75 - - 50 + + - MAX ( ALL + 65 ) / + 17 WHEN 88 THEN NULL END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6098
SELECT ALL - 84 DIV + - COUNT( * ) - + 34 - + - 0 AS col0
----
50

skipif mysql # not compatible
query I rowsort label-6098
SELECT ALL - 84 / + - COUNT ( * ) - + 34 - + - 0 AS col0
----
50

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6100
SELECT + + 19 DIV + NULLIF ( + ( + + 61 ), 84 ) * + 51 * + 85 DIV 2 + - 94 AS col2
----
-94

skipif mysql # not compatible
query I rowsort label-6100
SELECT + + 19 / + NULLIF ( + ( + + 61 ), 84 ) * + 51 * + 85 / 2 + - 94 AS col2
----
-94

onlyif mysql # DIV for integer division: 
query II rowsort label-6101
SELECT - + 8 * + ( - 90 ) + 16 + 80 + - 11 DIV 36 + - 81 AS col2, 9 + 68
----
735
77

skipif mysql # not compatible
query II rowsort label-6101
SELECT - + 8 * + ( - 90 ) + 16 + 80 + - 11 / 36 + - 81 AS col2, 9 + 68
----
735
77

query I rowsort
SELECT + - 3 + + 57 col1
----
54

query II rowsort
SELECT ALL + 99, + 14 col0
----
99
14

onlyif mysql # aggregate syntax: 
query I rowsort label-6104
SELECT ALL + COALESCE ( + + COUNT( * ), - 6 * + 47 + 73 + - - 48 - + 26 * - 9 * + + 70 + 37 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-6104
SELECT ALL + COALESCE ( + + COUNT ( * ), - 6 * + 47 + 73 + - - 48 - + 26 * - 9 * + + 70 + 37 ) AS col0
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6105
SELECT - - 83 * 89 + + 44 + - 68 - + MIN( ALL 32 ) * + 82 + - + 72 DIV 47 DIV - - 93
----
4739

skipif mysql # not compatible
query I rowsort label-6105
SELECT - - 83 * 89 + + 44 + - 68 - + MIN ( ALL 32 ) * + 82 + - + 72 / 47 / - - 93
----
4739

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

query I rowsort
SELECT + ( 90 ) * + - 5
----
-450

query I rowsort
SELECT ( - - 74 )
----
74

query I rowsort
SELECT + NULLIF ( + - 36, - NULLIF ( - 27, 97 ) )
----
-36

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

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

query II rowsort
SELECT ALL 58 AS col0, 90 AS col1
----
58
90

onlyif mysql # aggregate syntax: 
query I rowsort label-6112
SELECT + 52 * - CASE - COUNT( * ) WHEN + 45 THEN + - MAX( - 68 ) + + 15 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6112
SELECT + 52 * - CASE - COUNT ( * ) WHEN + 45 THEN + - MAX ( - 68 ) + + 15 END AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6113
SELECT ALL - 3 DIV - ( - 29 )
----
0

skipif mysql # not compatible
query I rowsort label-6113
SELECT ALL - 3 / - ( - 29 )
----
0

query I rowsort
SELECT ALL + 49 + + + 61
----
110

query I rowsort
SELECT ALL ( 63 ) + - 11 AS col2
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-6116
SELECT DISTINCT - MAX( 31 ) * - 70 AS col1
----
2170

skipif mysql # not compatible
query I rowsort label-6116
SELECT DISTINCT - MAX ( 31 ) * - 70 AS col1
----
2170

onlyif mysql # DIV for integer division: 
query I rowsort label-6117
SELECT 65 DIV + 93 col2
----
0

skipif mysql # not compatible
query I rowsort label-6117
SELECT 65 / + 93 col2
----
0

query I rowsort
SELECT ALL 28 * + 34 AS col1
----
952

query I rowsort
SELECT DISTINCT 63 * + COALESCE ( + + 78, - 1 )
----
4914

query I rowsort
SELECT 55 + - 47 * 32
----
-1449

query II rowsort
SELECT - 35 AS col0, + 59
----
-35
59

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

query I rowsort
SELECT ALL 68 * 31 AS col1
----
2108

query I rowsort
SELECT 78 - 72 * + 24 AS col2
----
-1650

query II rowsort
SELECT + 24, + ( - 42 ) AS col1
----
24
-42

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

query II rowsort
SELECT DISTINCT + 29 AS col0, - 90 AS col0
----
29
-90

query I rowsort
SELECT DISTINCT - 1 * - 42
----
42

query II rowsort
SELECT + + 80 AS col0, 55 + + ( + + 38 )
----
80
93

query I rowsort
SELECT ALL - + 62 * - 83 * 96 AS col2
----
494016

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6131
SELECT 26 * + - 10 DIV COUNT( * )
----
-260

skipif mysql # not compatible
query I rowsort label-6131
SELECT 26 * + - 10 / COUNT ( * )
----
-260

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6132
SELECT ALL - MIN( - - 40 ) DIV 56
----
0

skipif mysql # not compatible
query I rowsort label-6132
SELECT ALL - MIN ( - - 40 ) / 56
----
0

query II rowsort
SELECT DISTINCT - 85, NULLIF ( + 46, + + 98 * - 1 ) col1
----
-85
46

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6135
SELECT COALESCE ( + 87, - 75 + + 25 ) + - COUNT( 70 ) AS col1, - 7
----
86
-7

skipif mysql # not compatible
query II rowsort label-6135
SELECT COALESCE ( + 87, - 75 + + 25 ) + - COUNT ( 70 ) AS col1, - 7
----
86
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-6136
SELECT 83 + 83 + - - 9 * - COUNT( * ) + - - 79 col2
----
236

skipif mysql # not compatible
query I rowsort label-6136
SELECT 83 + 83 + - - 9 * - COUNT ( * ) + - - 79 col2
----
236

onlyif mysql # aggregate syntax: 
query I rowsort label-6137
SELECT 80 * + 29 + + 79 + + COUNT( * ) * - SUM( DISTINCT - 94 )
----
2493

skipif mysql # not compatible
query I rowsort label-6137
SELECT 80 * + 29 + + 79 + + COUNT ( * ) * - SUM ( DISTINCT - 94 )
----
2493

onlyif mysql # aggregate syntax: 
query I rowsort label-6138
SELECT COUNT( - 41 ) * - - 98 AS col0
----
98

skipif mysql # not compatible
query I rowsort label-6138
SELECT COUNT ( - 41 ) * - - 98 AS col0
----
98

query I rowsort
SELECT - 7 * 34 * - 98 * + - 1 * 65 * + 91 + 40
----
-137961420

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6140
SELECT ALL 71 + - COALESCE ( + + 87, - ( - 73 ) * + 19 DIV COUNT( * ) DIV + + 50 )
----
-16

skipif mysql # not compatible
query I rowsort label-6140
SELECT ALL 71 + - COALESCE ( + + 87, - ( - 73 ) * + 19 / COUNT ( * ) / + + 50 )
----
-16

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6141
SELECT ALL + COUNT( * ) + + + 2 + - + CASE - - 77 WHEN + + 43 * + 67 * + ( - 77 ) + COALESCE ( + 40, - + COUNT( * ) * + - 56, - - COUNT( * ) + - COALESCE ( + - 97, + COUNT( * ) ) ) THEN 90 ELSE NULL END AS col0, CAST( + 63 AS SIGNED ) - + 15
----
NULL
48

skipif mysql # not compatible
query II rowsort label-6141
SELECT ALL + COUNT ( * ) + + + 2 + - + CASE - - 77 WHEN + + 43 * + 67 * + ( - 77 ) + COALESCE ( + 40, - + COUNT ( * ) * + - 56, - - COUNT ( * ) + - COALESCE ( + - 97, + COUNT ( * ) ) ) THEN 90 ELSE NULL END AS col0, CAST ( + 63 AS INTEGER ) - + 15
----
NULL
48

onlyif mysql # DIV for integer division: 
query I rowsort label-6142
SELECT DISTINCT - 62 + 21 DIV + 85 AS col2
----
-62

skipif mysql # not compatible
query I rowsort label-6142
SELECT DISTINCT - 62 + 21 / + 85 AS col2
----
-62

query I rowsort
SELECT ALL 23 + 45
----
68

onlyif mysql # aggregate syntax: 
query III rowsort label-6144
SELECT 55 + - - COUNT( * ) AS col1, 73, + 1 * - - CASE + - 79 WHEN 97 THEN + - 75 * COUNT( * ) ELSE NULL END AS col2
----
56
73
NULL

skipif mysql # not compatible
query III rowsort label-6144
SELECT 55 + - - COUNT ( * ) AS col1, 73, + 1 * - - CASE + - 79 WHEN 97 THEN + - 75 * COUNT ( * ) ELSE NULL END AS col2
----
56
73
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6145
SELECT ALL - COUNT( * ) + + 70 * + 10 - - - 95 AS col1
----
604

skipif mysql # not compatible
query I rowsort label-6145
SELECT ALL - COUNT ( * ) + + 70 * + 10 - - - 95 AS col1
----
604

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

query I rowsort
SELECT 36 + - + 94 AS col2
----
-58

query I rowsort
SELECT ALL 87 + - 46 AS col0
----
41

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6150
SELECT SUM( + 40 ) + - + 64 * + 31
----
-1944

skipif mysql # not compatible
query I rowsort label-6150
SELECT SUM ( + 40 ) + - + 64 * + 31
----
-1944

onlyif mysql # aggregate syntax: 
query I rowsort label-6151
SELECT COUNT( * ) + + COALESCE ( 98, 5 ) col0
----
99

skipif mysql # not compatible
query I rowsort label-6151
SELECT COUNT ( * ) + + COALESCE ( 98, 5 ) col0
----
99

query I rowsort
SELECT DISTINCT 86 - 87 AS col1
----
-1

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6154
SELECT - 93 DIV - - 17
----
-5

skipif mysql # not compatible
query I rowsort label-6154
SELECT - 93 / - - 17
----
-5

onlyif mysql # aggregate syntax: 
query II rowsort label-6155
SELECT - MIN( + - 76 ) AS col0, - 35 * 72 AS col1
----
76
-2520

skipif mysql # not compatible
query II rowsort label-6155
SELECT - MIN ( + - 76 ) AS col0, - 35 * 72 AS col1
----
76
-2520

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

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

query I rowsort
SELECT ALL 76 * - 58
----
-4408

onlyif mysql # DIV for integer division: 
query I rowsort label-6158
SELECT + 68 + - 42 DIV 79
----
68

skipif mysql # not compatible
query I rowsort label-6158
SELECT + 68 + - 42 / 79
----
68

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6159
SELECT ALL - COALESCE ( CASE 66 WHEN + 98 * - COALESCE ( - 26, - 69 * COUNT( * ) * ( - 6 ) ) + 45 * 56 THEN 36 END, 48 * - COUNT( * ) + + 6 - - ( 0 ) + - CASE COUNT( * ) WHEN - - 87 + - + COALESCE ( + 46, AVG ( + 22 ) ) + - 44 / + 51 + - + COALESCE ( - + 78, - 63 + + ( - 39 ) ) THEN COUNT( DISTINCT - CAST( NULL AS SIGNED ) ) WHEN 88 THEN NULL ELSE - 42 END * 72, 5 )
----
-2982

skipif mysql # not compatible
query I rowsort label-6159
SELECT ALL - COALESCE ( CASE 66 WHEN + 98 * - COALESCE ( - 26, - 69 * COUNT ( * ) * ( - 6 ) ) + 45 * 56 THEN 36 END, 48 * - COUNT ( * ) + + 6 - - ( 0 ) + - CASE COUNT ( * ) WHEN - - 87 + - + COALESCE ( + 46, AVG ( + 22 ) ) + - 44 / + 51 + - + COALESCE ( - + 78, - 63 + + ( - 39 ) ) THEN COUNT ( DISTINCT - CAST ( NULL AS INTEGER ) ) WHEN 88 THEN NULL ELSE - 42 END * 72, 5 )
----
-2982

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6161
SELECT + 9 * - COUNT( * ) + 36 - + + 57 * - 35 * CAST( NULL AS SIGNED ) + + 78 + 86
----
NULL

skipif mysql # not compatible
query I rowsort label-6161
SELECT + 9 * - COUNT ( * ) + 36 - + + 57 * - 35 * CAST ( NULL AS INTEGER ) + + 78 + 86
----
NULL

query I rowsort
SELECT 51 * 48 AS col0
----
2448

query I rowsort
SELECT ALL + 17 * + 34 * - 10 + ( + - 67 ) AS col2
----
-5847

query I rowsort
SELECT ALL + ( - - 26 ) * + 86 + - 60 AS col0
----
2176

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

skipif mysql # not compatible
query I rowsort label-6165
SELECT - COUNT ( * ) / 37
----
0

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6167
SELECT ALL + COALESCE ( + 65, NULLIF ( + 74, ( + 20 ) ) * COUNT( * ) - - 67 * - CASE + 36 WHEN - 40 THEN - 56 WHEN + CAST( + 67 AS SIGNED ) THEN NULL WHEN CAST( NULL AS SIGNED ) / 6 / - 65 - + AVG ( 47 ) + + 65 THEN NULL END ) AS col2
----
65

skipif mysql # not compatible
query I rowsort label-6167
SELECT ALL + COALESCE ( + 65, NULLIF ( + 74, ( + 20 ) ) * COUNT ( * ) - - 67 * - CASE + 36 WHEN - 40 THEN - 56 WHEN + CAST ( + 67 AS INTEGER ) THEN NULL WHEN CAST ( NULL AS INTEGER ) / 6 / - 65 - + AVG ( 47 ) + + 65 THEN NULL END ) AS col2
----
65

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6168
SELECT - MIN( ( CAST( - - 23 AS SIGNED ) ) ) DIV 16
----
-1

skipif mysql # not compatible
query I rowsort label-6168
SELECT - MIN ( ( CAST ( - - 23 AS INTEGER ) ) ) / 16
----
-1

query I rowsort
SELECT + 75 * - 31
----
-2325

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-6170
SELECT ALL - 13 - - - CAST( NULL AS DECIMAL ) - - - 7 / - 34 * - 76 / + 14 AS col1, CAST( NULL AS SIGNED )
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-6170
SELECT ALL - 13 - - - CAST ( NULL AS REAL ) - - - 7 / - 34 * - 76 / + 14 AS col1, CAST ( NULL AS INTEGER )
----
NULL
NULL

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

skipif mysql # not compatible
query II rowsort label-6171
SELECT COUNT ( * ), 66 AS col0
----
1
66

onlyif mysql # aggregate syntax: 
query I rowsort label-6172
SELECT ALL + COALESCE ( + 67, - COUNT( * ), MIN( - 2 ) ) AS col0
----
67

skipif mysql # not compatible
query I rowsort label-6172
SELECT ALL + COALESCE ( + 67, - COUNT ( * ), MIN ( - 2 ) ) AS col0
----
67

onlyif mysql # aggregate syntax: 
query I rowsort label-6173
SELECT ALL NULLIF ( - - COUNT( * ), - - COUNT( * ) * - + 85 * - 35 / + 47 + + 62 )
----
1

skipif mysql # not compatible
query I rowsort label-6173
SELECT ALL NULLIF ( - - COUNT ( * ), - - COUNT ( * ) * - + 85 * - 35 / + 47 + + 62 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6174
SELECT - MIN( + 97 ) + - - 57 * - 71 * - + COUNT( * ) col0
----
3950

skipif mysql # not compatible
query I rowsort label-6174
SELECT - MIN ( + 97 ) + - - 57 * - 71 * - + COUNT ( * ) col0
----
3950

query I rowsort
SELECT ALL CASE 80 WHEN + 20 THEN + 15 END AS col2
----
NULL

query I rowsort
SELECT - 94 - + 58 * 60 * - 70
----
243506

query I rowsort
SELECT + 63 * + 6
----
378

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6178
SELECT COALESCE ( + - SUM( 5 ), - 5, + 5 + + + CAST( + ( + 40 ) AS SIGNED ) ) AS col1, 66 + - COUNT( DISTINCT - + 75 ) + 59 - - 79 + + 33 AS col0
----
-5
236

skipif mysql # not compatible
query II rowsort label-6178
SELECT COALESCE ( + - SUM ( 5 ), - 5, + 5 + + + CAST ( + ( + 40 ) AS INTEGER ) ) AS col1, 66 + - COUNT ( DISTINCT - + 75 ) + 59 - - 79 + + 33 AS col0
----
-5
236

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

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

skipif mysql # not compatible
query I rowsort label-6180
SELECT + - 65 + - COUNT ( * ) - + 0 AS col1
----
-66

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-6181
SELECT - + 30 AS col0, 70 * CAST( NULL AS DECIMAL )
----
-30
NULL

skipif mysql # not compatible
query II rowsort label-6181
SELECT - + 30 AS col0, 70 * CAST ( NULL AS REAL )
----
-30
NULL

query I rowsort
SELECT + + 96 * - 47 AS col0
----
-4512

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6183
SELECT ALL CASE COUNT( * ) WHEN + 98 THEN CAST( 15 AS SIGNED ) WHEN COUNT( * ) THEN - - 20 + - COUNT( * ) END AS col2
----
19

skipif mysql # not compatible
query I rowsort label-6183
SELECT ALL CASE COUNT ( * ) WHEN + 98 THEN CAST ( 15 AS INTEGER ) WHEN COUNT ( * ) THEN - - 20 + - COUNT ( * ) END AS col2
----
19

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

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

query I rowsort
SELECT ALL 49 + + 86 AS col0
----
135

query II rowsort
SELECT 43 AS col1, 7 AS col2
----
43
7

onlyif mysql # aggregate syntax: 
query I rowsort label-6187
SELECT + + COUNT( DISTINCT + 65 ) * + 80 * 1 + - 51 AS col2
----
29

skipif mysql # not compatible
query I rowsort label-6187
SELECT + + COUNT ( DISTINCT + 65 ) * + 80 * 1 + - 51 AS col2
----
29

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6188
SELECT + 11 DIV - 49 - + 65 AS col2, COUNT( * ) + - MIN( DISTINCT + + 11 ) AS col2
----
-65
-10

skipif mysql # not compatible
query II rowsort label-6188
SELECT + 11 / - 49 - + 65 AS col2, COUNT ( * ) + - MIN ( DISTINCT + + 11 ) AS col2
----
-65
-10

query I rowsort
SELECT ALL 90 * - 75
----
-6750

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6190
SELECT - - 14 DIV - 83 + ( - COUNT( ALL + 88 ) )
----
-1

skipif mysql # not compatible
query I rowsort label-6190
SELECT - - 14 / - 83 + ( - COUNT ( ALL + 88 ) )
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6191
SELECT DISTINCT - 77 DIV - COUNT( * ) + + 42 AS col1, 39 AS col0
----
119
39

skipif mysql # not compatible
query II rowsort label-6191
SELECT DISTINCT - 77 / - COUNT ( * ) + + 42 AS col1, 39 AS col0
----
119
39

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6193
SELECT ALL 93 / - CASE + 68 WHEN + CASE + + 63 WHEN 15 - + - ( + + 61 ) + - 95 + + 29 - + + 25 / COALESCE ( + - CASE - + 59 WHEN - 57 + + ( + 76 ) THEN NULL WHEN - - COUNT( * ) THEN 1 END, + + 20 + - 51 - 56 ) + - ( CAST( NULL AS SIGNED ) ) * + 98 THEN NULL ELSE - 90 END THEN + COUNT( * ) END * - 90 + 80 + 25 - - + 26
----
NULL

skipif mysql # not compatible
query I rowsort label-6193
SELECT ALL 93 / - CASE + 68 WHEN + CASE + + 63 WHEN 15 - + - ( + + 61 ) + - 95 + + 29 - + + 25 / COALESCE ( + - CASE - + 59 WHEN - 57 + + ( + 76 ) THEN NULL WHEN - - COUNT ( * ) THEN 1 END, + + 20 + - 51 - 56 ) + - ( CAST ( NULL AS INTEGER ) ) * + 98 THEN NULL ELSE - 90 END THEN + COUNT ( * ) END * - 90 + 80 + 25 - - + 26
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6194
SELECT ALL + 12 DIV 94 + - 81 AS col1
----
-81

skipif mysql # not compatible
query I rowsort label-6194
SELECT ALL + 12 / 94 + - 81 AS col1
----
-81

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

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

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

query I rowsort
SELECT ( NULLIF ( + 90, AVG ( ALL + + 69 ) ) ) AS col2
----
90

query I rowsort
SELECT + 94 + - + 15 + 97 AS col1
----
176

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6199
SELECT - 99 - - 71 - MIN( ALL 82 ) * - + 9 * + - 89 * CAST( NULL AS SIGNED ) - - NULLIF ( + COALESCE ( - + 53, 39 ), 14 ) / + - CAST( - 93 AS SIGNED ) * + 60 * 72 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6199
SELECT - 99 - - 71 - MIN ( ALL 82 ) * - + 9 * + - 89 * CAST ( NULL AS INTEGER ) - - NULLIF ( + COALESCE ( - + 53, 39 ), 14 ) / + - CAST ( - 93 AS INTEGER ) * + 60 * 72 AS col2
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6201
SELECT + MIN( DISTINCT + 14 ) * + 36
----
504

skipif mysql # not compatible
query I rowsort label-6201
SELECT + MIN ( DISTINCT + 14 ) * + 36
----
504

onlyif mysql # aggregate syntax: 
query I rowsort label-6202
SELECT DISTINCT 41 * 65 * - - COUNT( * ) - - + 81 * - + 65 col0
----
-2600

skipif mysql # not compatible
query I rowsort label-6202
SELECT DISTINCT 41 * 65 * - - COUNT ( * ) - - + 81 * - + 65 col0
----
-2600

query I rowsort
SELECT ALL + 54 * - 2
----
-108

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

query I rowsort
SELECT ALL 45 * - 12 * - 91
----
49140

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6206
SELECT - 16 + - 64, 73 * + - CAST( - 64 AS SIGNED ) AS col1
----
-80
4672

skipif mysql # not compatible
query II rowsort label-6206
SELECT - 16 + - 64, 73 * + - CAST ( - 64 AS INTEGER ) AS col1
----
-80
4672

query I rowsort
SELECT NULLIF ( - - 14, + - 18 ) AS col2
----
14

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

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

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

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

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

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

query I rowsort
SELECT - + 41 * ( + + 3 )
----
-123

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6212
SELECT + + CAST( NULL AS SIGNED ) + + + MIN( 91 ) * 9 + - 36 * - 47
----
NULL

skipif mysql # not compatible
query I rowsort label-6212
SELECT + + CAST ( NULL AS INTEGER ) + + + MIN ( 91 ) * 9 + - 36 * - 47
----
NULL

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-6214
SELECT DISTINCT + - 39 * 28 DIV + 17 + + + 89 + - 34 AS col1, + 37
----
-9
37

skipif mysql # not compatible
query II rowsort label-6214
SELECT DISTINCT + - 39 * 28 / + 17 + + + 89 + - 34 AS col1, + 37
----
-9
37

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

query I rowsort
SELECT DISTINCT + 11 + + 43
----
54

query I rowsort
SELECT - 55 + - ( - - 75 )
----
-130

query I rowsort
SELECT ALL 94 * - - 38 AS col0
----
3572

onlyif mysql # aggregate syntax: 
query I rowsort label-6219
SELECT ALL + MAX( ALL + 21 ) + + 3 AS col2
----
24

skipif mysql # not compatible
query I rowsort label-6219
SELECT ALL + MAX ( ALL + 21 ) + + 3 AS col2
----
24

query I rowsort
SELECT ALL - 20 + - 91 * 69 AS col1
----
-6299

query I rowsort
SELECT - - 23 + - ( + 76 )
----
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-6222
SELECT + - 18 * - COALESCE ( 79, 22 * + + 48 * + - 9 + - 33 * + 69 + 27, - MAX( ALL 94 ) )
----
1422

skipif mysql # not compatible
query I rowsort label-6222
SELECT + - 18 * - COALESCE ( 79, 22 * + + 48 * + - 9 + - 33 * + 69 + 27, - MAX ( ALL 94 ) )
----
1422

query I rowsort
SELECT + + 59 + + 47
----
106

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

query I rowsort
SELECT ALL ( - 62 ) + + + 48
----
-14

query I rowsort
SELECT - NULLIF ( + 33, - 99 + - 8 - + 76 )
----
-33

query I rowsort
SELECT 57 + + - 87 + CASE 89 WHEN 75 THEN + + 66 ELSE NULL END * - 19 AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6228
SELECT DISTINCT + 46 DIV - 92 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-6228
SELECT DISTINCT + 46 / - 92 AS col0
----
0

query I rowsort
SELECT 55 + - ( 81 )
----
-26

query I rowsort
SELECT ALL 41 - 6 col2
----
35

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

query I rowsort
SELECT + 44 * + + 31 + + + 92
----
1456

onlyif mysql # DIV for integer division: 
query I rowsort label-6233
SELECT NULLIF ( + 63, + 5 ) DIV + - 99 * + 55 * + 51
----
0

skipif mysql # not compatible
query I rowsort label-6233
SELECT NULLIF ( + 63, + 5 ) / + - 99 * + 55 * + 51
----
0

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6234
SELECT CAST( - 50 AS DECIMAL ) + - - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6234
SELECT CAST ( - 50 AS REAL ) + - - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT + 88 * COALESCE ( - 82, + - 60, 11 + 86 + + 59 ) + + + COALESCE ( - 44, + 60 )
----
-7260

query I rowsort
SELECT 84 * + + 85
----
7140

query I rowsort
SELECT ALL 64 * + + 41 * 13 AS col0
----
34112

query I rowsort
SELECT DISTINCT 99 * 10 AS col0
----
990

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6240
SELECT CASE - + COALESCE ( - 91, 34 ) WHEN MAX( NULLIF ( 7, + NULLIF ( 75, - 19 ) + 34 + + + 38 ) ) THEN + 20 * - - MIN( + CAST( NULL AS DECIMAL ) ) + NULLIF ( + + 61, + + SUM( ALL - 29 ) + COUNT( * ) ) WHEN 13 THEN NULL END * AVG ( - - 33 ) * - 10
----
NULL

skipif mysql # not compatible
query I rowsort label-6240
SELECT CASE - + COALESCE ( - 91, 34 ) WHEN MAX ( NULLIF ( 7, + NULLIF ( 75, - 19 ) + 34 + + + 38 ) ) THEN + 20 * - - MIN ( + CAST ( NULL AS REAL ) ) + NULLIF ( + + 61, + + SUM ( ALL - 29 ) + COUNT ( * ) ) WHEN 13 THEN NULL END * AVG ( - - 33 ) * - 10
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6241
SELECT ALL - CASE + COUNT( * ) WHEN - MIN( DISTINCT 5 ) THEN NULL ELSE 58 END
----
-58

skipif mysql # not compatible
query I rowsort label-6241
SELECT ALL - CASE + COUNT ( * ) WHEN - MIN ( DISTINCT 5 ) THEN NULL ELSE 58 END
----
-58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6242
SELECT CAST( ( 44 ) AS SIGNED ) * - - 40
----
1760

skipif mysql # not compatible
query I rowsort label-6242
SELECT CAST ( ( 44 ) AS INTEGER ) * - - 40
----
1760

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

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

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6246
SELECT ( + 62 ) * 15 + 48 + CAST( - 96 AS SIGNED ) - 85 * 12 - + 89 AS col1
----
-227

skipif mysql # not compatible
query I rowsort label-6246
SELECT ( + 62 ) * 15 + 48 + CAST ( - 96 AS INTEGER ) - 85 * 12 - + 89 AS col1
----
-227

query II rowsort
SELECT 84, 25 * - - 82 AS col1
----
84
2050

onlyif mysql # aggregate syntax: 
query II rowsort label-6248
SELECT + 72 col2, COALESCE ( - 85, + COALESCE ( COUNT( * ), + - 80 * - 55, - - 58 + - 29 * 61 ) )
----
72
-85

skipif mysql # not compatible
query II rowsort label-6248
SELECT + 72 col2, COALESCE ( - 85, + COALESCE ( COUNT ( * ), + - 80 * - 55, - - 58 + - 29 * 61 ) )
----
72
-85

query I rowsort
SELECT + ( - 72 ) * + 25 col1
----
-1800

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6250
SELECT ALL + 85 + - - NULLIF ( 38, - - 95 * - NULLIF ( COUNT( * ), + CAST( NULL AS SIGNED ) + - + 63 + - 61 ) ) + - - 94 - - + 35 * 63 * - 82 * - CASE + 32 WHEN 16 THEN + ( - 52 ) ELSE + 24 END AS col2
----
4339657

skipif mysql # not compatible
query I rowsort label-6250
SELECT ALL + 85 + - - NULLIF ( 38, - - 95 * - NULLIF ( COUNT ( * ), + CAST ( NULL AS INTEGER ) + - + 63 + - 61 ) ) + - - 94 - - + 35 * 63 * - 82 * - CASE + 32 WHEN 16 THEN + ( - 52 ) ELSE + 24 END AS col2
----
4339657

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6251
SELECT DISTINCT - - COUNT( 31 ) + - 31 DIV + 55 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-6251
SELECT DISTINCT - - COUNT ( 31 ) + - 31 / + 55 AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6252
SELECT ALL MAX( DISTINCT 92 )
----
92

skipif mysql # not compatible
query I rowsort label-6252
SELECT ALL MAX ( DISTINCT 92 )
----
92

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6253
SELECT CAST( NULL AS SIGNED ) AS col1, - 69 * + + 11 col2
----
NULL
-759

skipif mysql # not compatible
query II rowsort label-6253
SELECT CAST ( NULL AS INTEGER ) AS col1, - 69 * + + 11 col2
----
NULL
-759

query I rowsort
SELECT ( - 11 ) + ( + 41 )
----
30

query I rowsort
SELECT 57 * 40 col0
----
2280

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

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-6258
SELECT DISTINCT 85 AS col1, - 57 DIV + 8 AS col2
----
85
-7

skipif mysql # not compatible
query II rowsort label-6258
SELECT DISTINCT 85 AS col1, - 57 / + 8 AS col2
----
85
-7

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6260
SELECT ALL MAX( + + COALESCE ( + + 63, - 95 ) ) AS col2
----
63

skipif mysql # not compatible
query I rowsort label-6260
SELECT ALL MAX ( + + COALESCE ( + + 63, - 95 ) ) AS col2
----
63

query I rowsort
SELECT - 55 + 19 AS col1
----
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-6262
SELECT ALL + 17 * + MAX( + 87 ) AS col2
----
1479

skipif mysql # not compatible
query I rowsort label-6262
SELECT ALL + 17 * + MAX ( + 87 ) AS col2
----
1479

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

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

query I rowsort
SELECT 39 * + - 93 AS col2
----
-3627

onlyif mysql # DIV for integer division: 
query II rowsort label-6265
SELECT - 50 col0, - 27 DIV 95
----
-50
0

skipif mysql # not compatible
query II rowsort label-6265
SELECT - 50 col0, - 27 / 95
----
-50
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6266
SELECT 64 * COUNT( * ) * - 63 AS col2
----
-4032

skipif mysql # not compatible
query I rowsort label-6266
SELECT 64 * COUNT ( * ) * - 63 AS col2
----
-4032

onlyif mysql # aggregate syntax: 
query II rowsort label-6267
SELECT ALL - 35 AS col0, MAX( ALL + + 67 ) * - 98
----
-35
-6566

skipif mysql # not compatible
query II rowsort label-6267
SELECT ALL - 35 AS col0, MAX ( ALL + + 67 ) * - 98
----
-35
-6566

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6268
SELECT DISTINCT - 81 * - SUM( DISTINCT CAST( NULL AS SIGNED ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6268
SELECT DISTINCT - 81 * - SUM ( DISTINCT CAST ( NULL AS INTEGER ) ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6269
SELECT SUM( ALL 96 ) AS col2
----
96

skipif mysql # not compatible
query I rowsort label-6269
SELECT SUM ( ALL 96 ) AS col2
----
96

onlyif mysql # DIV for integer division: 
query I rowsort label-6270
SELECT ALL 11 DIV 68
----
0

skipif mysql # not compatible
query I rowsort label-6270
SELECT ALL 11 / 68
----
0

query II rowsort
SELECT 90 * - 58, 65 AS col0
----
-5220
65

query II rowsort
SELECT ALL - 25, 80 * + 6 AS col2
----
-25
480

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

skipif mysql # not compatible
query II rowsort label-6273
SELECT COUNT ( * ) col1, CAST ( NULL AS INTEGER ) + CAST ( NULL AS INTEGER ) + + 84 / 99 - - + 19
----
1
NULL

query I rowsort
SELECT 70 + + 44
----
114

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

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

query I rowsort
SELECT + 7 * + 28 + 23
----
219

query I rowsort
SELECT ALL 27 + - - 88 + - 10
----
105

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6278
SELECT ALL + 64 + + 54 + + 29 + ( - MIN( + - CAST( NULL AS SIGNED ) ) ) * + SUM( 88 ) * NULLIF ( + 2, - 90 * 48 ) * + 62 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6278
SELECT ALL + 64 + + 54 + + 29 + ( - MIN ( + - CAST ( NULL AS INTEGER ) ) ) * + SUM ( 88 ) * NULLIF ( + 2, - 90 * 48 ) * + 62 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6279
SELECT + 80 * COUNT( * ) * - 51 + + - COUNT( * ) AS col2
----
-4081

skipif mysql # not compatible
query I rowsort label-6279
SELECT + 80 * COUNT ( * ) * - 51 + + - COUNT ( * ) AS col2
----
-4081

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6280
SELECT 0, 6 + + - 53 + 18 + + 4 - - CASE - 13 WHEN 37 * 32 * 94 - AVG ( ALL - 56 ) + 13 + - 59 THEN NULL WHEN 34 + + - 73 + + - CAST( NULL AS SIGNED ) THEN + 90 * + - ( - 43 ) WHEN - 49 THEN + 63 WHEN 31 THEN - 32 ELSE NULL END + - 24 * + + 12 col2
----
0
NULL

skipif mysql # not compatible
query II rowsort label-6280
SELECT 0, 6 + + - 53 + 18 + + 4 - - CASE - 13 WHEN 37 * 32 * 94 - AVG ( ALL - 56 ) + 13 + - 59 THEN NULL WHEN 34 + + - 73 + + - CAST ( NULL AS INTEGER ) THEN + 90 * + - ( - 43 ) WHEN - 49 THEN + 63 WHEN 31 THEN - 32 ELSE NULL END + - 24 * + + 12 col2
----
0
NULL

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

query I rowsort
SELECT DISTINCT + 70 + 12
----
82

query I rowsort
SELECT ALL + 37 - 78 * + 5 AS col1
----
-353

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6284
SELECT - COALESCE ( - 86, - COUNT( * ) DIV 42 )
----
86

skipif mysql # not compatible
query I rowsort label-6284
SELECT - COALESCE ( - 86, - COUNT ( * ) / 42 )
----
86

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

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

query I rowsort
SELECT ALL - 77 - - - 68
----
-145

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6290
SELECT ALL MAX( DISTINCT + - 33 ) AS col1
----
-33

skipif mysql # not compatible
query I rowsort label-6290
SELECT ALL MAX ( DISTINCT + - 33 ) AS col1
----
-33

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

skipif mysql # not compatible
query I rowsort label-6291
SELECT - COUNT ( * ) / - 81
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-6292
SELECT - COUNT( DISTINCT + 24 ) + + 41 * 4 + + 12 - + - 0 * + + 50 * 21 * - + 67 - 40 AS col2, 85 * + MIN( DISTINCT - + 26 )
----
135
-2210

skipif mysql # not compatible
query II rowsort label-6292
SELECT - COUNT ( DISTINCT + 24 ) + + 41 * 4 + + 12 - + - 0 * + + 50 * 21 * - + 67 - 40 AS col2, 85 * + MIN ( DISTINCT - + 26 )
----
135
-2210

query I rowsort
SELECT - 23 * - 85
----
1955

query II rowsort
SELECT ALL + 95 * + 59 col2, ( - - 61 )
----
5605
61

onlyif mysql # aggregate syntax: 
query I rowsort label-6295
SELECT ALL MAX( + + 55 ) col2
----
55

skipif mysql # not compatible
query I rowsort label-6295
SELECT ALL MAX ( + + 55 ) col2
----
55

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

skipif mysql # not compatible
query I rowsort label-6296
SELECT - 87 * - COUNT ( * )
----
87

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

skipif mysql # not compatible
query I rowsort label-6297
SELECT - 10 + - ( - COUNT ( * ) ) AS col1
----
-9

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6298
SELECT ALL CAST( NULL AS DECIMAL ) * - NULLIF ( - CAST( NULL AS SIGNED ), + 12 ) * 72 + + 38 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6298
SELECT ALL CAST ( NULL AS REAL ) * - NULLIF ( - CAST ( NULL AS INTEGER ), + 12 ) * 72 + + 38 col1
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-6299
SELECT - 41 * 50 + + + 7 * - - 6 * - + 68 + 37 + - 63 AS col0, ( 36 ) DIV - - 94 * + - 98 AS col1
----
-4932
0

skipif mysql # not compatible
query II rowsort label-6299
SELECT - 41 * 50 + + + 7 * - - 6 * - + 68 + 37 + - 63 AS col0, ( 36 ) / - - 94 * + - 98 AS col1
----
-4932
0

onlyif mysql # aggregate syntax: 
query II rowsort label-6300
SELECT ( ( + 1 ) ), - MIN( + 31 ) AS col1
----
1
-31

skipif mysql # not compatible
query II rowsort label-6300
SELECT ( ( + 1 ) ), - MIN ( + 31 ) AS col1
----
1
-31

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6301
SELECT 60 DIV NULLIF ( - + 49, 73 * - ( COALESCE ( + + COUNT( * ), - + 81, + 93 * - - ( - 90 ) * - 39, - - 47 + ( 13 ) ) ) * ( 87 ) + - 19 ) + - 71
----
-72

skipif mysql # not compatible
query I rowsort label-6301
SELECT 60 / NULLIF ( - + 49, 73 * - ( COALESCE ( + + COUNT ( * ), - + 81, + 93 * - - ( - 90 ) * - 39, - - 47 + ( 13 ) ) ) * ( 87 ) + - 19 ) + - 71
----
-72

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6302
SELECT ALL + 72 * NULLIF ( + + 76, CASE 86 WHEN + CAST( 26 AS SIGNED ) THEN + 77 * + 87 * 60 WHEN - 97 THEN NULL ELSE NULL END ) + - ( + 42 ) AS col0
----
5430

skipif mysql # not compatible
query I rowsort label-6302
SELECT ALL + 72 * NULLIF ( + + 76, CASE 86 WHEN + CAST ( 26 AS INTEGER ) THEN + 77 * + 87 * 60 WHEN - 97 THEN NULL ELSE NULL END ) + - ( + 42 ) AS col0
----
5430

query I rowsort
SELECT DISTINCT - 51 * + 25
----
-1275

onlyif mysql # aggregate syntax: 
query I rowsort label-6304
SELECT ALL - 33 * + 91 * + - MIN( 2 )
----
6006

skipif mysql # not compatible
query I rowsort label-6304
SELECT ALL - 33 * + 91 * + - MIN ( 2 )
----
6006

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6305
SELECT DISTINCT ( - + 61 ) * + - COUNT( * ) + + + 45 DIV - COALESCE ( + - COUNT( * ), 10 + + 81 DIV + COALESCE ( - 23, - 13 + - 20 * - + NULLIF ( - - 54, + 54 ) + + 88 + 56 ) ) + - ( + 13 )
----
93

skipif mysql # not compatible
query I rowsort label-6305
SELECT DISTINCT ( - + 61 ) * + - COUNT ( * ) + + + 45 / - COALESCE ( + - COUNT ( * ), 10 + + 81 / + COALESCE ( - 23, - 13 + - 20 * - + NULLIF ( - - 54, + 54 ) + + 88 + 56 ) ) + - ( + 13 )
----
93

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6306
SELECT DISTINCT + SUM( ALL - 26 ) * + + CAST( NULL AS SIGNED ) + + + 1
----
NULL

skipif mysql # not compatible
query I rowsort label-6306
SELECT DISTINCT + SUM ( ALL - 26 ) * + + CAST ( NULL AS INTEGER ) + + + 1
----
NULL

query I rowsort
SELECT + 30 * - 15
----
-450

onlyif mysql # DIV for integer division: 
query I rowsort label-6308
SELECT ALL 0 DIV - 34 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-6308
SELECT ALL 0 / - 34 AS col1
----
0

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6310
SELECT ALL + 11 * - - 38 * - + 38 * + 66 - - - 65 * - + CAST( 60 AS SIGNED ) + + ( - 15 )
----
-1044459

skipif mysql # not compatible
query I rowsort label-6310
SELECT ALL + 11 * - - 38 * - + 38 * + 66 - - - 65 * - + CAST ( 60 AS INTEGER ) + + ( - 15 )
----
-1044459

onlyif mysql # DIV for integer division: 
query I rowsort label-6311
SELECT ALL + - 27 DIV + - 86 + - 14 * + 40 AS col1
----
-560

skipif mysql # not compatible
query I rowsort label-6311
SELECT ALL + - 27 / + - 86 + - 14 * + 40 AS col1
----
-560

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6313
SELECT DISTINCT + CAST( - + 58 AS SIGNED ) * - 27 * - 22
----
-34452

skipif mysql # not compatible
query I rowsort label-6313
SELECT DISTINCT + CAST ( - + 58 AS INTEGER ) * - 27 * - 22
----
-34452

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

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

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

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

query II rowsort
SELECT + 46 * - 19 AS col0, + 86
----
-874
86

onlyif mysql # aggregate syntax: 
query I rowsort label-6317
SELECT + MAX( ALL + 1 ) + + COUNT( * ) + 25
----
27

skipif mysql # not compatible
query I rowsort label-6317
SELECT + MAX ( ALL + 1 ) + + COUNT ( * ) + 25
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-6318
SELECT - + CASE - - 94 WHEN + 49 THEN 61 * - + MIN( ALL 50 ) ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6318
SELECT - + CASE - - 94 WHEN + 49 THEN 61 * - + MIN ( ALL 50 ) ELSE NULL END AS col1
----
NULL

query I rowsort
SELECT + 4 + - 76 * + CASE - ( + 85 ) WHEN - ( + + 24 ) + - ( - + 85 ) THEN + - 59 END AS col1
----
NULL

query I rowsort
SELECT + 71 * 32 AS col2
----
2272

onlyif mysql # aggregate syntax: 
query I rowsort label-6321
SELECT - COUNT( DISTINCT 83 ) + - 49 AS col1
----
-50

skipif mysql # not compatible
query I rowsort label-6321
SELECT - COUNT ( DISTINCT 83 ) + - 49 AS col1
----
-50

query I rowsort
SELECT ALL - 27 * ( - 65 ) * 66 AS col1
----
115830

onlyif mysql # aggregate syntax: 
query III rowsort label-6323
SELECT + COUNT( * ) * - ( - 68 ) * 75 AS col0, - 63 - - 22, 24 AS col1
----
5100
-41
24

skipif mysql # not compatible
query III rowsort label-6323
SELECT + COUNT ( * ) * - ( - 68 ) * 75 AS col0, - 63 - - 22, 24 AS col1
----
5100
-41
24

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

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

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

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

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

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

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

skipif mysql # not compatible
query II rowsort label-6327
SELECT DISTINCT COUNT ( * ), 0 AS col2
----
1
0

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

query I rowsort
SELECT DISTINCT + 10 + + 1
----
11

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

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

query I rowsort
SELECT + ( - - 62 ) * + 75 + 49 * - 43 AS col1
----
2543

onlyif mysql # DIV for integer division: 
query I rowsort label-6332
SELECT ALL - ( + - 31 ) DIV - + 80 + - 97 + 61 AS col0
----
-36

skipif mysql # not compatible
query I rowsort label-6332
SELECT ALL - ( + - 31 ) / - + 80 + - 97 + 61 AS col0
----
-36

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

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

query I rowsort
SELECT DISTINCT + 73 col2
----
73

query I rowsort
SELECT - - 51 - 42 AS col1
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-6336
SELECT CASE + - ( + 74 ) WHEN - 78 / - + NULLIF ( + ( - 43 ), + - 67 * + 77 ) - SUM( - 75 ) THEN 11 WHEN - 66 THEN - + 85 END
----
NULL

skipif mysql # not compatible
query I rowsort label-6336
SELECT CASE + - ( + 74 ) WHEN - 78 / - + NULLIF ( + ( - 43 ), + - 67 * + 77 ) - SUM ( - 75 ) THEN 11 WHEN - 66 THEN - + 85 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6337
SELECT - ( + 98 ) * + COUNT( ALL - 84 ) - - 83 * 21 + + 18
----
1663

skipif mysql # not compatible
query I rowsort label-6337
SELECT - ( + 98 ) * + COUNT ( ALL - 84 ) - - 83 * 21 + + 18
----
1663

onlyif mysql # aggregate syntax: 
query I rowsort label-6338
SELECT - CASE + COUNT( * ) WHEN - 51 THEN - COUNT( * ) WHEN - 51 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-6338
SELECT - CASE + COUNT ( * ) WHEN - 51 THEN - COUNT ( * ) WHEN - 51 THEN NULL END
----
NULL

query I rowsort
SELECT ALL - - 4 - 41
----
-37

query I rowsort
SELECT ALL + 1 * + 90 * 28 * 3 * 83
----
627480

onlyif mysql # DIV for integer division: 
query II rowsort label-6341
SELECT DISTINCT - 43 - + 98 * + ( + 22 ) + 98 DIV - 2 + 25 + 6 * - 0 col1, - ( - + 53 ) AS col1
----
-2223
53

skipif mysql # not compatible
query II rowsort label-6341
SELECT DISTINCT - 43 - + 98 * + ( + 22 ) + 98 / - 2 + 25 + 6 * - 0 col1, - ( - + 53 ) AS col1
----
-2223
53

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

query I rowsort
SELECT DISTINCT + + CASE - 15 WHEN - 92 THEN 33 END * + 40
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6344
SELECT SUM( 5 ) DIV + 66 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-6344
SELECT SUM ( 5 ) / + 66 AS col0
----
0

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6346
SELECT + MAX( - 85 ) + 75 AS col1
----
-10

skipif mysql # not compatible
query I rowsort label-6346
SELECT + MAX ( - 85 ) + 75 AS col1
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-6347
SELECT - - COUNT( ALL - 10 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-6347
SELECT - - COUNT ( ALL - 10 ) AS col2
----
1

onlyif mysql # DIV for integer division: 
query II rowsort label-6348
SELECT + 97 DIV - + 15 + + 0 AS col2, 86 * + 79
----
-6
6794

skipif mysql # not compatible
query II rowsort label-6348
SELECT + 97 / - + 15 + + 0 AS col2, 86 * + 79
----
-6
6794

query I rowsort
SELECT - 66 * - 70
----
4620

query I rowsort
SELECT CASE ( - 84 ) WHEN + 17 THEN ( - 30 ) END + 14 + - 33
----
NULL

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

query I rowsort
SELECT DISTINCT 41 * + + 90 AS col0
----
3690

query I rowsort
SELECT ALL 99 + 99 * 98 col2
----
9801

query I rowsort
SELECT 70 + + - 32 AS col1
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-6355
SELECT 73 - - COUNT( * ) AS col0
----
74

skipif mysql # not compatible
query I rowsort label-6355
SELECT 73 - - COUNT ( * ) AS col0
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-6356
SELECT COUNT( DISTINCT - + 32 ) + 66
----
67

skipif mysql # not compatible
query I rowsort label-6356
SELECT COUNT ( DISTINCT - + 32 ) + 66
----
67

query I rowsort
SELECT COALESCE ( - + 56, - 39 ) + - + 99 * + - 57
----
5587

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6358
SELECT DISTINCT MAX( - CAST( NULL AS SIGNED ) ) + + 65 * 40 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6358
SELECT DISTINCT MAX ( - CAST ( NULL AS INTEGER ) ) + + 65 * 40 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6359
SELECT 15 + NULLIF ( - + COUNT( * ), - - 84 )
----
14

skipif mysql # not compatible
query I rowsort label-6359
SELECT 15 + NULLIF ( - + COUNT ( * ), - - 84 )
----
14

query I rowsort
SELECT ALL 33 + CASE - - 79 WHEN - 81 THEN NULL WHEN + - COALESCE ( + - 45, + ( + 61 ) ) THEN 27 * + 17 + + 15 ELSE NULL END col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6361
SELECT CASE + COUNT( * ) WHEN 42 + + 71 THEN + - 27 + + 61 WHEN + - 49 * + 6 THEN + COUNT( * ) WHEN + 83 * - CASE - - ( 31 ) WHEN + 28 + - 75 THEN - - 64 WHEN - AVG ( - - 82 ) + + 92 * - + 80 THEN NULL WHEN - 92 * - ( + 66 ) + - 27 THEN - - CASE - - 16 WHEN + 0 THEN NULL ELSE 2 * 90 END ELSE NULL END + - 89 + - ( + 24 ) + - 43 THEN + AVG ( ALL NULLIF ( - 85, + ( 90 ) + 55 ) ) - MAX( + 40 ) * COUNT( CAST( 89 AS SIGNED ) * + 74 ) END * + 73 + + 35
----
NULL

skipif mysql # not compatible
query I rowsort label-6361
SELECT CASE + COUNT ( * ) WHEN 42 + + 71 THEN + - 27 + + 61 WHEN + - 49 * + 6 THEN + COUNT ( * ) WHEN + 83 * - CASE - - ( 31 ) WHEN + 28 + - 75 THEN - - 64 WHEN - AVG ( - - 82 ) + + 92 * - + 80 THEN NULL WHEN - 92 * - ( + 66 ) + - 27 THEN - - CASE - - 16 WHEN + 0 THEN NULL ELSE 2 * 90 END ELSE NULL END + - 89 + - ( + 24 ) + - 43 THEN + AVG ( ALL NULLIF ( - 85, + ( 90 ) + 55 ) ) - MAX ( + 40 ) * COUNT ( CAST ( 89 AS INTEGER ) * + 74 ) END * + 73 + + 35
----
NULL

query I rowsort
SELECT 60 * 5 - - 88 AS col0
----
388

query II rowsort
SELECT 37 + + 65 AS col2, + 45
----
102
45

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6366
SELECT DISTINCT ( - 22 ) DIV + ( + - 30 )
----
0

skipif mysql # not compatible
query I rowsort label-6366
SELECT DISTINCT ( - 22 ) / + ( + - 30 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6367
SELECT + 45 - - MIN( + - 85 ) * - 65 + + SUM( ( - 64 ) ) AS col2
----
5506

skipif mysql # not compatible
query I rowsort label-6367
SELECT + 45 - - MIN ( + - 85 ) * - 65 + + SUM ( ( - 64 ) ) AS col2
----
5506

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6369
SELECT MAX( 78 )
----
78

skipif mysql # not compatible
query I rowsort label-6369
SELECT MAX ( 78 )
----
78

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

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

query I rowsort
SELECT ALL - - 11 col2
----
11

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

query I rowsort
SELECT ALL + 29 + 81
----
110

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6375
SELECT ALL + 7 + + MIN( DISTINCT - 27 ) + + - 25 + - - 30 AS col1
----
-15

skipif mysql # not compatible
query I rowsort label-6375
SELECT ALL + 7 + + MIN ( DISTINCT - 27 ) + + - 25 + - - 30 AS col1
----
-15

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6376
SELECT ALL + NULLIF ( + - 11, - 99 * - COUNT( * ) * + 42 ) + CAST( NULL AS SIGNED ) * + 60
----
NULL

skipif mysql # not compatible
query I rowsort label-6376
SELECT ALL + NULLIF ( + - 11, - 99 * - COUNT ( * ) * + 42 ) + CAST ( NULL AS INTEGER ) * + 60
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6377
SELECT ALL + 36 * + 5 * 62 AS col1, + 76 DIV + - COUNT( DISTINCT + - 51 ) AS col0
----
11160
-76

skipif mysql # not compatible
query II rowsort label-6377
SELECT ALL + 36 * + 5 * 62 AS col1, + 76 / + - COUNT ( DISTINCT + - 51 ) AS col0
----
11160
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-6378
SELECT ALL + 27 + - 56 + 17 * - 32 * - NULLIF ( + ( - - 66 ), + 41 / + COUNT( ALL - 8 ) + + + 76 ) * - + 25
----
-897629

skipif mysql # not compatible
query I rowsort label-6378
SELECT ALL + 27 + - 56 + 17 * - 32 * - NULLIF ( + ( - - 66 ), + 41 / + COUNT ( ALL - 8 ) + + + 76 ) * - + 25
----
-897629

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

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

query I rowsort
SELECT ALL + 9 + + ( + 33 ) AS col0
----
42

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6381
SELECT 73 + + - 82 * CAST( - 42 AS SIGNED ) AS col1
----
3517

skipif mysql # not compatible
query I rowsort label-6381
SELECT 73 + + - 82 * CAST ( - 42 AS INTEGER ) AS col1
----
3517

onlyif mysql # DIV for integer division: 
query I rowsort label-6382
SELECT 80 DIV + + 69 col1
----
1

skipif mysql # not compatible
query I rowsort label-6382
SELECT 80 / + + 69 col1
----
1

query I rowsort
SELECT 15 + 88 + - - 27 * 12 * + + 84
----
27319

onlyif mysql # aggregate syntax: 
query I rowsort label-6384
SELECT DISTINCT - CASE 76 WHEN - 64 THEN 54 WHEN MAX( + 1 ) + - 37 + - - MAX( DISTINCT + 51 ) * - - 78 THEN NULL WHEN ( - 88 ) / 31 THEN + - COUNT( * ) * - - 27 + - 49 ELSE NULL END + + 91 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6384
SELECT DISTINCT - CASE 76 WHEN - 64 THEN 54 WHEN MAX ( + 1 ) + - 37 + - - MAX ( DISTINCT + 51 ) * - - 78 THEN NULL WHEN ( - 88 ) / 31 THEN + - COUNT ( * ) * - - 27 + - 49 ELSE NULL END + + 91 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6385
SELECT ALL MIN( ALL 50 ) AS col0
----
50

skipif mysql # not compatible
query I rowsort label-6385
SELECT ALL MIN ( ALL 50 ) AS col0
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-6386
SELECT COUNT( * ) + 40 * + 86 + - 41 * 24 AS col0
----
2457

skipif mysql # not compatible
query I rowsort label-6386
SELECT COUNT ( * ) + 40 * + 86 + - 41 * 24 AS col0
----
2457

onlyif mysql # aggregate syntax: 
query I rowsort label-6387
SELECT ALL - 10 + - - 22 * + 4 + + - COUNT( * ) AS col0
----
77

skipif mysql # not compatible
query I rowsort label-6387
SELECT ALL - 10 + - - 22 * + 4 + + - COUNT ( * ) AS col0
----
77

query I rowsort
SELECT 99 * 86
----
8514

query I rowsort
SELECT ALL 46 * - 11
----
-506

onlyif mysql # DIV for integer division: 
query I rowsort label-6390
SELECT 5 DIV - 98 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-6390
SELECT 5 / - 98 AS col0
----
0

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

skipif mysql # not compatible
query I rowsort label-6391
SELECT DISTINCT - 92 + - CAST ( - 60 AS INTEGER )
----
-32

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6392
SELECT DISTINCT 81 - + COUNT( - + CAST( - 91 AS SIGNED ) ) - + 25 col1
----
55

skipif mysql # not compatible
query I rowsort label-6392
SELECT DISTINCT 81 - + COUNT ( - + CAST ( - 91 AS INTEGER ) ) - + 25 col1
----
55

query I rowsort
SELECT 18 + 84
----
102

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6394
SELECT ALL - CASE 22 WHEN + COUNT( * ) THEN NULL WHEN CASE - + 73 WHEN - ( 9 ) THEN NULL ELSE + NULLIF ( - - COUNT( * ), - + 42 + + ( + COUNT( * ) ) ) END * 39 THEN NULL ELSE + 90 DIV - - COUNT( * ) + - + 92 END * 23 * - 95 * + 65 - 21 + ( - 66 )
----
-284137

skipif mysql # not compatible
query I rowsort label-6394
SELECT ALL - CASE 22 WHEN + COUNT ( * ) THEN NULL WHEN CASE - + 73 WHEN - ( 9 ) THEN NULL ELSE + NULLIF ( - - COUNT ( * ), - + 42 + + ( + COUNT ( * ) ) ) END * 39 THEN NULL ELSE + 90 / - - COUNT ( * ) + - + 92 END * 23 * - 95 * + 65 - 21 + ( - 66 )
----
-284137

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6396
SELECT ALL CASE COUNT( * ) WHEN + 81 THEN NULL WHEN SUM( DISTINCT + 92 ) THEN - 44 + + 63 + - - COUNT( * ) END * 23
----
NULL

skipif mysql # not compatible
query I rowsort label-6396
SELECT ALL CASE COUNT ( * ) WHEN + 81 THEN NULL WHEN SUM ( DISTINCT + 92 ) THEN - 44 + + 63 + - - COUNT ( * ) END * 23
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6397
SELECT COUNT( * ) + - SUM( DISTINCT ( + 19 ) ) * ( - - 71 ) AS col0
----
-1348

skipif mysql # not compatible
query I rowsort label-6397
SELECT COUNT ( * ) + - SUM ( DISTINCT ( + 19 ) ) * ( - - 71 ) AS col0
----
-1348

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6400
SELECT DISTINCT NULLIF ( 88, COUNT( * ) ) AS col1, 13
----
88
13

skipif mysql # not compatible
query II rowsort label-6400
SELECT DISTINCT NULLIF ( 88, COUNT ( * ) ) AS col1, 13
----
88
13

query I rowsort
SELECT DISTINCT + + 89
----
89

query I rowsort
SELECT ALL - 63 * 0 * + 44 * - 39 col1
----
0

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6404
SELECT + - 24 * + MIN( ALL - - 53 ) * + 20 AS col2
----
-25440

skipif mysql # not compatible
query I rowsort label-6404
SELECT + - 24 * + MIN ( ALL - - 53 ) * + 20 AS col2
----
-25440

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

skipif mysql # not compatible
query I rowsort label-6405
SELECT 7 / + CAST ( NULL AS INTEGER ) - - + ( - CAST ( NULL AS INTEGER ) )
----
NULL

query I rowsort
SELECT - 62 * 75 + - - 97
----
-4553

query I rowsort
SELECT DISTINCT + 0 * 87 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6408
SELECT ALL - NULLIF ( + - 14, COUNT( * ) * - NULLIF ( + 51, + 54 ) + - 10 + + + 92 ) * + - 31 + + COUNT( * ) + + 54
----
-379

skipif mysql # not compatible
query I rowsort label-6408
SELECT ALL - NULLIF ( + - 14, COUNT ( * ) * - NULLIF ( + 51, + 54 ) + - 10 + + + 92 ) * + - 31 + + COUNT ( * ) + + 54
----
-379

onlyif mysql # aggregate syntax: 
query I rowsort label-6409
SELECT + - SUM( ALL - + ( - + 50 ) ) + - 82
----
-132

skipif mysql # not compatible
query I rowsort label-6409
SELECT + - SUM ( ALL - + ( - + 50 ) ) + - 82
----
-132

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6411
SELECT DISTINCT + 61 * CAST( NULL AS DECIMAL ) / - 77 + - MIN( + 54 ) * + 41 + 93
----
NULL

skipif mysql # not compatible
query I rowsort label-6411
SELECT DISTINCT + 61 * CAST ( NULL AS REAL ) / - 77 + - MIN ( + 54 ) * + 41 + 93
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6412
SELECT - + 97 + + - COUNT( * ) * - + 97 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-6412
SELECT - + 97 + + - COUNT ( * ) * - + 97 AS col0
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-6413
SELECT ALL - + MAX( ALL - 76 ) * 54 col2, - 43
----
4104
-43

skipif mysql # not compatible
query II rowsort label-6413
SELECT ALL - + MAX ( ALL - 76 ) * 54 col2, - 43
----
4104
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-6414
SELECT ALL MAX( DISTINCT - 27 ) * - 12 * - - COUNT( * ) + 97
----
421

skipif mysql # not compatible
query I rowsort label-6414
SELECT ALL MAX ( DISTINCT - 27 ) * - 12 * - - COUNT ( * ) + 97
----
421

onlyif mysql # aggregate syntax: 
query III rowsort label-6415
SELECT + 89 col0, - ( - + NULLIF ( + 34, + - COUNT( * ) ) ) + + ( - - 58 ), - 41 AS col0
----
89
92
-41

skipif mysql # not compatible
query III rowsort label-6415
SELECT + 89 col0, - ( - + NULLIF ( + 34, + - COUNT ( * ) ) ) + + ( - - 58 ), - 41 AS col0
----
89
92
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-6416
SELECT ALL CASE + - 90 WHEN + 59 THEN NULL WHEN - 99 THEN 57 END * 51 + - COALESCE ( - + 74, 90 ) + - 62 - + 94 / + + COUNT( * ) + + + 70 * + + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-6416
SELECT ALL CASE + - 90 WHEN + 59 THEN NULL WHEN - 99 THEN 57 END * 51 + - COALESCE ( - + 74, 90 ) + - 62 - + 94 / + + COUNT ( * ) + + + 70 * + + COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6417
SELECT + MAX( - 42 ) + + + 63 col0
----
21

skipif mysql # not compatible
query I rowsort label-6417
SELECT + MAX ( - 42 ) + + + 63 col0
----
21

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6418
SELECT + CAST( NULL AS SIGNED ) * AVG ( 77 ) * 98 - ( 93 ) / 17
----
NULL

skipif mysql # not compatible
query I rowsort label-6418
SELECT + CAST ( NULL AS INTEGER ) * AVG ( 77 ) * 98 - ( 93 ) / 17
----
NULL

query I rowsort
SELECT - 47 + - - 15
----
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-6420
SELECT ALL + COUNT( * ) * + NULLIF ( - + 17, + 53 ) AS col1
----
-17

skipif mysql # not compatible
query I rowsort label-6420
SELECT ALL + COUNT ( * ) * + NULLIF ( - + 17, + 53 ) AS col1
----
-17

query I rowsort
SELECT DISTINCT 81 * 9
----
729

query I rowsort
SELECT ALL - 78 - + - 69
----
-9

query I rowsort
SELECT - 11 * + 59
----
-649

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

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

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

skipif mysql # not compatible
query I rowsort label-6425
SELECT DISTINCT MIN ( DISTINCT - 74 )
----
-74

query I rowsort
SELECT - 4 + - 2
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-6427
SELECT ALL CASE + 20 WHEN COUNT( * ) * 77 / + - 17 THEN COALESCE ( + 49, - + 57 * + 52 - 39 ) + + + ( + 78 ) * 42 ELSE + 21 END AS col2
----
21

skipif mysql # not compatible
query I rowsort label-6427
SELECT ALL CASE + 20 WHEN COUNT ( * ) * 77 / + - 17 THEN COALESCE ( + 49, - + 57 * + 52 - 39 ) + + + ( + 78 ) * 42 ELSE + 21 END AS col2
----
21

query I rowsort
SELECT - 75 * 35
----
-2625

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-6429
SELECT - 80 * COUNT( * ) col0, - CAST( NULL AS DECIMAL )
----
-80
NULL

skipif mysql # not compatible
query II rowsort label-6429
SELECT - 80 * COUNT ( * ) col0, - CAST ( NULL AS REAL )
----
-80
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6430
SELECT - 92 + COUNT( * ) + + 76
----
-15

skipif mysql # not compatible
query I rowsort label-6430
SELECT - 92 + COUNT ( * ) + + 76
----
-15

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6431
SELECT - 51 - 31 DIV - COUNT( * ) AS col1
----
-20

skipif mysql # not compatible
query I rowsort label-6431
SELECT - 51 - 31 / - COUNT ( * ) AS col1
----
-20

onlyif mysql # aggregate syntax: 
query II rowsort label-6432
SELECT 16 AS col2, 3 + + COUNT( * ) AS col1
----
16
4

skipif mysql # not compatible
query II rowsort label-6432
SELECT 16 AS col2, 3 + + COUNT ( * ) AS col1
----
16
4

onlyif mysql # aggregate syntax: 
query I rowsort label-6433
SELECT + MAX( + 48 ) + - - 57 AS col1
----
105

skipif mysql # not compatible
query I rowsort label-6433
SELECT + MAX ( + 48 ) + - - 57 AS col1
----
105

onlyif mysql # aggregate syntax: 
query I rowsort label-6434
SELECT ALL - COUNT( * ) / CASE - AVG ( ALL - + 24 ) WHEN + 80 THEN + 1 + - + 61 WHEN + - 3 THEN NULL END * + 33 - - 0 * - COUNT( * ) * - + 27 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6434
SELECT ALL - COUNT ( * ) / CASE - AVG ( ALL - + 24 ) WHEN + 80 THEN + 1 + - + 61 WHEN + - 3 THEN NULL END * + 33 - - 0 * - COUNT ( * ) * - + 27 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6435
SELECT ALL COALESCE ( + + COUNT( * ), 94 * + + COALESCE ( + 15, 30 ) ), - 91 AS col2
----
1
-91

skipif mysql # not compatible
query II rowsort label-6435
SELECT ALL COALESCE ( + + COUNT ( * ), 94 * + + COALESCE ( + 15, 30 ) ), - 91 AS col2
----
1
-91

query I rowsort
SELECT DISTINCT CASE - 31 WHEN + 79 / + 59 THEN - 10 END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6437
SELECT DISTINCT - - 69 DIV + NULLIF ( + ( - COUNT( * ) ), 61 ) + COUNT( * ) * - - 31
----
-38

skipif mysql # not compatible
query I rowsort label-6437
SELECT DISTINCT - - 69 / + NULLIF ( + ( - COUNT ( * ) ), 61 ) + COUNT ( * ) * - - 31
----
-38

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6439
SELECT ALL - 14 * 88 * + + CASE 73 WHEN - + COUNT( 15 ) THEN + COALESCE ( - 83, + + 75, + - 59 + + ( - - NULLIF ( - - ( - 32 ), - - NULLIF ( 57, 40 + 43 + - + 65 ) ) ) + + 62 ) WHEN - + COUNT( * ) * + - 44 / 65 + - COUNT( * ) THEN - ( - - 68 ) END * + NULLIF ( + 31, - + ( 27 ) ) + CAST( NULL AS SIGNED ) * + + 21 * + 35 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6439
SELECT ALL - 14 * 88 * + + CASE 73 WHEN - + COUNT ( 15 ) THEN + COALESCE ( - 83, + + 75, + - 59 + + ( - - NULLIF ( - - ( - 32 ), - - NULLIF ( 57, 40 + 43 + - + 65 ) ) ) + + 62 ) WHEN - + COUNT ( * ) * + - 44 / 65 + - COUNT ( * ) THEN - ( - - 68 ) END * + NULLIF ( + 31, - + ( 27 ) ) + CAST ( NULL AS INTEGER ) * + + 21 * + 35 AS col2
----
NULL

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

query I rowsort
SELECT DISTINCT - 81 * + - ( - 2 ) AS col0
----
-162

query I rowsort
SELECT ALL + 22 * 33 + 16 + - 66 - - + 26
----
702

onlyif mysql # aggregate syntax: 
query I rowsort label-6443
SELECT DISTINCT - MIN( ALL 94 ) AS col1
----
-94

skipif mysql # not compatible
query I rowsort label-6443
SELECT DISTINCT - MIN ( ALL 94 ) AS col1
----
-94

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6444
SELECT + MIN( + + 10 ) DIV - + 28 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-6444
SELECT + MIN ( + + 10 ) / - + 28 AS col1
----
0

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6446
SELECT + + 36 * CAST( NULL AS SIGNED ) * + COALESCE ( 61, 94 ) + COALESCE ( + - ( + COUNT( * ) ), COUNT( * ) - + + 37 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6446
SELECT + + 36 * CAST ( NULL AS INTEGER ) * + COALESCE ( 61, 94 ) + COALESCE ( + - ( + COUNT ( * ) ), COUNT ( * ) - + + 37 )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6447
SELECT - COUNT( * ) * - + COALESCE ( + 23, + - COUNT( ALL 88 ) ) + CAST( NULL AS SIGNED ) * - MAX( - 85 ) * 8 + - 93
----
NULL

skipif mysql # not compatible
query I rowsort label-6447
SELECT - COUNT ( * ) * - + COALESCE ( + 23, + - COUNT ( ALL 88 ) ) + CAST ( NULL AS INTEGER ) * - MAX ( - 85 ) * 8 + - 93
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6448
SELECT - 14 DIV 95 + - + 81
----
-81

skipif mysql # not compatible
query I rowsort label-6448
SELECT - 14 / 95 + - + 81
----
-81

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6450
SELECT ALL - 22 / + COUNT( * ) + 6 / - NULLIF ( + ( CAST( 88 AS SIGNED ) ), 64 ) + + 97 + - - 23 + - CAST( NULL AS SIGNED ) + - + ( 60 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6450
SELECT ALL - 22 / + COUNT ( * ) + 6 / - NULLIF ( + ( CAST ( 88 AS INTEGER ) ), 64 ) + + 97 + - - 23 + - CAST ( NULL AS INTEGER ) + - + ( 60 )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6451
SELECT + COUNT( * ) AS col1, + 35 * - CASE 93 WHEN - + 26 THEN - COUNT( * ) ELSE - COALESCE ( + - 95, 50, + 19 + + 62 ) * + + 50 END AS col1
----
1
-166250

skipif mysql # not compatible
query II rowsort label-6451
SELECT + COUNT ( * ) AS col1, + 35 * - CASE 93 WHEN - + 26 THEN - COUNT ( * ) ELSE - COALESCE ( + - 95, 50, + 19 + + 62 ) * + + 50 END AS col1
----
1
-166250

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6452
SELECT ALL - 57 / CAST( NULL AS DECIMAL ) + 76
----
NULL

skipif mysql # not compatible
query I rowsort label-6452
SELECT ALL - 57 / CAST ( NULL AS REAL ) + 76
----
NULL

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6454
SELECT DISTINCT + ( - 19 ) DIV 93 + - 10 * 29 * CAST( + MIN( ALL + 94 ) AS SIGNED ) AS col0
----
-27260

skipif mysql # not compatible
query I rowsort label-6454
SELECT DISTINCT + ( - 19 ) / 93 + - 10 * 29 * CAST ( + MIN ( ALL + 94 ) AS INTEGER ) AS col0
----
-27260

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6455
SELECT + + CASE + MIN( ALL + 39 ) WHEN + ( - CASE - + 8 WHEN - 76 * - 61 - - - 95 * ( + COALESCE ( - 56, NULLIF ( 61, - + ( - - 64 ) ) * - 96 + + 88 ) ) THEN 66 END ) * + + 93 / 24 * 62 THEN - 86 WHEN - + CAST( NULL AS SIGNED ) + 54 + 27 * - 14 + COUNT( * ) / + 97 THEN - 54 END
----
NULL

skipif mysql # not compatible
query I rowsort label-6455
SELECT + + CASE + MIN ( ALL + 39 ) WHEN + ( - CASE - + 8 WHEN - 76 * - 61 - - - 95 * ( + COALESCE ( - 56, NULLIF ( 61, - + ( - - 64 ) ) * - 96 + + 88 ) ) THEN 66 END ) * + + 93 / 24 * 62 THEN - 86 WHEN - + CAST ( NULL AS INTEGER ) + 54 + 27 * - 14 + COUNT ( * ) / + 97 THEN - 54 END
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6457
SELECT + COUNT( * ) + + - 75 + - - 45
----
-29

skipif mysql # not compatible
query I rowsort label-6457
SELECT + COUNT ( * ) + + - 75 + - - 45
----
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-6458
SELECT ALL 53 * + + 76 * - COUNT( * ) - + + ( 47 )
----
-4075

skipif mysql # not compatible
query I rowsort label-6458
SELECT ALL 53 * + + 76 * - COUNT ( * ) - + + ( 47 )
----
-4075

query I rowsort
SELECT DISTINCT 82 * - + 77
----
-6314

query I rowsort
SELECT - 84 * + 51 - - + 68
----
-4216

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6461
SELECT ALL MIN( + + 24 ) DIV - 16 col1
----
-1

skipif mysql # not compatible
query I rowsort label-6461
SELECT ALL MIN ( + + 24 ) / - 16 col1
----
-1

query II rowsort
SELECT - 81 * - + 88 AS col0, + 3 * + COALESCE ( 41, 20 * + - 7 ) * - + 45
----
7128
-5535

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6463
SELECT SUM( - 93 ) AS col1, 73 DIV - 78 col2
----
-93
0

skipif mysql # not compatible
query II rowsort label-6463
SELECT SUM ( - 93 ) AS col1, 73 / - 78 col2
----
-93
0

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

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

query I rowsort
SELECT 53 - + 58 AS col2
----
-5

query I rowsort
SELECT 33 * 47
----
1551

onlyif mysql # aggregate syntax: 
query I rowsort label-6467
SELECT DISTINCT - SUM( ALL + 71 )
----
-71

skipif mysql # not compatible
query I rowsort label-6467
SELECT DISTINCT - SUM ( ALL + 71 )
----
-71

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

query I rowsort
SELECT 24 * + 41
----
984

query I rowsort
SELECT ALL - - 66 + + + 58 AS col2
----
124

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6472
SELECT ALL + - 91 + 85 DIV + - 79
----
-92

skipif mysql # not compatible
query I rowsort label-6472
SELECT ALL + - 91 + 85 / + - 79
----
-92

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6473
SELECT 91 * + + COUNT( * ) + + + 17 + - MAX( DISTINCT + 83 ) DIV 55 * - + 58
----
166

skipif mysql # not compatible
query I rowsort label-6473
SELECT 91 * + + COUNT ( * ) + + + 17 + - MAX ( DISTINCT + 83 ) / 55 * - + 58
----
166

query I rowsort
SELECT ALL - + 78 + - + 24 AS col2
----
-102

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6476
SELECT 70 - - - 39 AS col1, - MAX( 86 )
----
31
-86

skipif mysql # not compatible
query II rowsort label-6476
SELECT 70 - - - 39 AS col1, - MAX ( 86 )
----
31
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-6477
SELECT DISTINCT COUNT( * ) * SUM( ALL - 61 )
----
-61

skipif mysql # not compatible
query I rowsort label-6477
SELECT DISTINCT COUNT ( * ) * SUM ( ALL - 61 )
----
-61

query II rowsort
SELECT DISTINCT + - 49 + 93, 83 AS col1
----
44
83

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6480
SELECT + + 31 DIV + 78 + - + 72 AS col0
----
-72

skipif mysql # not compatible
query I rowsort label-6480
SELECT + + 31 / + 78 + - + 72 AS col0
----
-72

onlyif mysql # DIV for integer division: 
query I rowsort label-6481
SELECT ALL + 75 + - + 47 + - 15 DIV ( - 10 ) AS col0
----
29

skipif mysql # not compatible
query I rowsort label-6481
SELECT ALL + 75 + - + 47 + - 15 / ( - 10 ) AS col0
----
29

onlyif mysql # aggregate syntax: 
query II rowsort label-6482
SELECT 50 + - COUNT( * ) col2, - 65
----
49
-65

skipif mysql # not compatible
query II rowsort label-6482
SELECT 50 + - COUNT ( * ) col2, - 65
----
49
-65

query I rowsort
SELECT + 41 + 5 col1
----
46

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6484
SELECT 89 / + + 42 - - - CASE + 64 WHEN - 67 THEN - 27 + + + CAST( 91 AS SIGNED ) END + - + 87 * SUM( + 17 ) * 94 * COUNT( * ) * 85 + 18 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6484
SELECT 89 / + + 42 - - - CASE + 64 WHEN - 67 THEN - 27 + + + CAST ( 91 AS INTEGER ) END + - + 87 * SUM ( + 17 ) * 94 * COUNT ( * ) * 85 + 18 AS col1
----
NULL

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

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

query I rowsort
SELECT + 62 * - 47 + 51 + 19 AS col2
----
-2844

onlyif mysql # aggregate syntax: 
query II rowsort label-6487
SELECT + 87 AS col2, SUM( DISTINCT + 61 ) AS col2
----
87
61

skipif mysql # not compatible
query II rowsort label-6487
SELECT + 87 AS col2, SUM ( DISTINCT + 61 ) AS col2
----
87
61

onlyif mysql # DIV for integer division: 
query I rowsort label-6488
SELECT 51 DIV - - 99 + 28 * + 16 + 44 AS col1
----
492

skipif mysql # not compatible
query I rowsort label-6488
SELECT 51 / - - 99 + 28 * + 16 + 44 AS col1
----
492

onlyif mysql # DIV for integer division: 
query I rowsort label-6489
SELECT ALL 29 - 78 DIV + ( 50 ) AS col1
----
28

skipif mysql # not compatible
query I rowsort label-6489
SELECT ALL 29 - 78 / + ( 50 ) AS col1
----
28

query I rowsort
SELECT 99 * - 99
----
-9801

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

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

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

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

query I rowsort
SELECT 51 * 23 + + - 44 * NULLIF ( + 17, 95 ) AS col1
----
425

query II rowsort
SELECT + 8, 78 AS col1
----
8
78

query II rowsort
SELECT DISTINCT ( + 59 ) * + 76 AS col2, 60 * - 3 col2
----
4484
-180

query II rowsort
SELECT ALL 21 AS col0, + 84 AS col2
----
21
84

query II rowsort
SELECT ALL 72 AS col2, - 11 AS col1
----
72
-11

onlyif mysql # aggregate syntax: 
query II rowsort label-6498
SELECT 79, CASE WHEN NOT 21 BETWEEN + - 16 AND 12 * - 60 * 56 THEN NULL WHEN 98 < NULLIF ( 15, - - 16 - 42 * - - 96 * + 86 ) * 53 THEN + 75 * 50 WHEN - 65 * - COALESCE ( 89, - COUNT( * ) ) + + NULLIF ( + + 28, + 99 + COUNT( * ) + + 64 + - - 70 ) * - 64 < ( - + ( + - COUNT( * ) ) + + + 70 - - 93 / + COALESCE ( + 45, 29 ) * + ( + 30 ) * + + 70 / + 75 - AVG ( - 72 ) - + 8 / + AVG ( 98 * 52 ) ) OR NOT 78 >= ( - 85 * - 39 ) THEN NULL END col0
----
79
NULL

skipif mysql # not compatible
query II rowsort label-6498
SELECT 79, CASE WHEN NOT 21 BETWEEN + - 16 AND 12 * - 60 * 56 THEN NULL WHEN 98 < NULLIF ( 15, - - 16 - 42 * - - 96 * + 86 ) * 53 THEN + 75 * 50 WHEN - 65 * - COALESCE ( 89, - COUNT ( * ) ) + + NULLIF ( + + 28, + 99 + COUNT ( * ) + + 64 + - - 70 ) * - 64 < ( - + ( + - COUNT ( * ) ) + + + 70 - - 93 / + COALESCE ( + 45, 29 ) * + ( + 30 ) * + + 70 / + 75 - AVG ( - 72 ) - + 8 / + AVG ( 98 * 52 ) ) OR NOT 78 >= ( - 85 * - 39 ) THEN NULL END col0
----
79
NULL

query I rowsort
SELECT DISTINCT ( - 1 ) + 80 * + 76 * 33 col2
----
200639

query I rowsort
SELECT ALL 21 + + 88 * + + 8
----
725

query I rowsort
SELECT 37 + 44 + - 90 * ( + 1 ) + - 50 * + - 65 AS col1
----
3241

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6502
SELECT + 82 + + + CAST( NULL AS DECIMAL ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6502
SELECT + 82 + + + CAST ( NULL AS REAL ) AS col1
----
NULL

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6505
SELECT NULLIF ( - - 72, + + 32 ) DIV 18
----
4

skipif mysql # not compatible
query I rowsort label-6505
SELECT NULLIF ( - - 72, + + 32 ) / 18
----
4

query I rowsort
SELECT 60 + 69 AS col1
----
129

query I rowsort
SELECT ALL 48 + + 24
----
72

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6510
SELECT DISTINCT + 12 + + 20 DIV 92 * + 90
----
12

skipif mysql # not compatible
query I rowsort label-6510
SELECT DISTINCT + 12 + + 20 / 92 * + 90
----
12

query II rowsort
SELECT ALL + 41 col1, - 66 AS col1
----
41
-66

query I rowsort
SELECT 85 + - + 20 * + 2 AS col2
----
45

query I rowsort
SELECT ALL - 79 + - 71 + + 64 AS col1
----
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-6514
SELECT + CASE - 43 WHEN 94 / - 95 + NULLIF ( - COUNT( + 30 ), - 30 * + 13 + + - 49 ) THEN NULL WHEN - - 39 + - + ( - 36 ) + + 80 THEN NULL WHEN - + 35 THEN - - 54 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6514
SELECT + CASE - 43 WHEN 94 / - 95 + NULLIF ( - COUNT ( + 30 ), - 30 * + 13 + + - 49 ) THEN NULL WHEN - - 39 + - + ( - 36 ) + + 80 THEN NULL WHEN - + 35 THEN - - 54 END AS col0
----
NULL

query II rowsort
SELECT + - 77 AS col2, 7 col1
----
-77
7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-6516
SELECT - CAST( NULL AS SIGNED ), - CASE + 87 WHEN - COUNT( * ) THEN + CAST( NULL AS SIGNED ) DIV + + 16 + 7 + - 13 ELSE 93 END * + 84 AS col1
----
NULL
-7812

skipif mysql # not compatible
query II rowsort label-6516
SELECT - CAST ( NULL AS INTEGER ), - CASE + 87 WHEN - COUNT ( * ) THEN + CAST ( NULL AS INTEGER ) / + + 16 + 7 + - 13 ELSE 93 END * + 84 AS col1
----
NULL
-7812

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-6517
SELECT 44 DIV + - ( + AVG ( DISTINCT + CAST( NULL AS SIGNED ) ) ) * - 99 + + ( + 38 ) + 82 + 1 AS col0, MAX( DISTINCT ( - - 50 ) ) * 17 * 84 DIV + 63
----
NULL
1133

skipif mysql # not compatible
query II rowsort label-6517
SELECT 44 / + - ( + AVG ( DISTINCT + CAST ( NULL AS INTEGER ) ) ) * - 99 + + ( + 38 ) + 82 + 1 AS col0, MAX ( DISTINCT ( - - 50 ) ) * 17 * 84 / + 63
----
NULL
1133

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6518
SELECT ALL + - 32 * - 14 - CAST( NULL AS SIGNED ) * + + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-6518
SELECT ALL + - 32 * - 14 - CAST ( NULL AS INTEGER ) * + + COUNT ( * )
----
NULL

query I rowsort
SELECT ALL + 46 * 3 * - 80
----
-11040

onlyif mysql # aggregate syntax: 
query I rowsort label-6520
SELECT ALL - NULLIF ( + 93, 98 * + 41 * + - COUNT( * ) - + + 44 - + ( - COUNT( * ) ) + - - 96 * 46 )
----
-93

skipif mysql # not compatible
query I rowsort label-6520
SELECT ALL - NULLIF ( + 93, 98 * + 41 * + - COUNT ( * ) - + + 44 - + ( - COUNT ( * ) ) + - - 96 * 46 )
----
-93

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6521
SELECT 89 DIV - + 33 AS col2, - COUNT( * )
----
-2
-1

skipif mysql # not compatible
query II rowsort label-6521
SELECT 89 / - + 33 AS col2, - COUNT ( * )
----
-2
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-6522
SELECT COUNT( * ) * + CASE - COALESCE ( + - 45, + + COUNT( * ) ) WHEN + COUNT( DISTINCT - 92 ) * + 89 THEN NULL ELSE - 68 - - 61 + - + 49 * - SUM( DISTINCT + 6 ) END AS col1
----
287

skipif mysql # not compatible
query I rowsort label-6522
SELECT COUNT ( * ) * + CASE - COALESCE ( + - 45, + + COUNT ( * ) ) WHEN + COUNT ( DISTINCT - 92 ) * + 89 THEN NULL ELSE - 68 - - 61 + - + 49 * - SUM ( DISTINCT + 6 ) END AS col1
----
287

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6523
SELECT + SUM( - 87 ) * + - 8 * - CAST( NULL AS DECIMAL ) * - 48 / - - 35 * - 7 - + - 7 * + 16
----
NULL

skipif mysql # not compatible
query I rowsort label-6523
SELECT + SUM ( - 87 ) * + - 8 * - CAST ( NULL AS REAL ) * - 48 / - - 35 * - 7 - + - 7 * + 16
----
NULL

query I rowsort
SELECT 34 * - ( + + 15 ) AS col0
----
-510

onlyif mysql # aggregate syntax: 
query II rowsort label-6525
SELECT ALL + ( + ( + 60 ) ) * - 38 AS col2, + COUNT( * ) + 62 + 2
----
-2280
65

skipif mysql # not compatible
query II rowsort label-6525
SELECT ALL + ( + ( + 60 ) ) * - 38 AS col2, + COUNT ( * ) + 62 + 2
----
-2280
65

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6526
SELECT 83 * - 22 * - 33 * - + 18 * + MIN( ALL + 47 ) / - - 32 - - + SUM( + + 43 ) + - 78 - CASE NULLIF ( + 76, 96 ) WHEN 61 THEN CAST( COUNT( * ) AS SIGNED ) + + 49 + - MAX( 58 ) - + ( 90 ) * 81 / 48 WHEN - 13 THEN NULL END * 11 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6526
SELECT 83 * - 22 * - 33 * - + 18 * + MIN ( ALL + 47 ) / - - 32 - - + SUM ( + + 43 ) + - 78 - CASE NULLIF ( + 76, 96 ) WHEN 61 THEN CAST ( COUNT ( * ) AS INTEGER ) + + 49 + - MAX ( 58 ) - + ( 90 ) * 81 / 48 WHEN - 13 THEN NULL END * 11 col0
----
NULL

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6528
SELECT - 28 + - ( + COUNT( * ) ) + + - 67 * - - AVG ( + + 5 ) - - CAST( NULL AS SIGNED ), 49 col2
----
NULL
49

skipif mysql # not compatible
query II rowsort label-6528
SELECT - 28 + - ( + COUNT ( * ) ) + + - 67 * - - AVG ( + + 5 ) - - CAST ( NULL AS INTEGER ), 49 col2
----
NULL
49

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6529
SELECT ALL + ( - + 3 ) AS col2, CAST( + NULLIF ( + CAST( - - 23 AS SIGNED ), - + 21 ) AS SIGNED ) AS col1
----
-3
23

skipif mysql # not compatible
query II rowsort label-6529
SELECT ALL + ( - + 3 ) AS col2, CAST ( + NULLIF ( + CAST ( - - 23 AS INTEGER ), - + 21 ) AS INTEGER ) AS col1
----
-3
23

query I rowsort
SELECT DISTINCT + ( 99 ) + 60 col0
----
159

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6531
SELECT DISTINCT - COUNT( * ) + + CAST( NULL AS DECIMAL ) / - 88 * 98
----
NULL

skipif mysql # not compatible
query I rowsort label-6531
SELECT DISTINCT - COUNT ( * ) + + CAST ( NULL AS REAL ) / - 88 * 98
----
NULL

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

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

query I rowsort
SELECT ALL - 35 * + - 66 * + 40
----
92400

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6534
SELECT - 80 * + CAST( 55 AS SIGNED )
----
-4400

skipif mysql # not compatible
query I rowsort label-6534
SELECT - 80 * + CAST ( 55 AS INTEGER )
----
-4400

query I rowsort
SELECT ALL + + ( + 27 ) * + 75 AS col2
----
2025

query I rowsort
SELECT + + 63 * - 27 * + 21
----
-35721

onlyif mysql # DIV for integer division: 
query I rowsort label-6537
SELECT ALL + 19 DIV + 83 * + COALESCE ( + 1, - 85, - 55 - + 64 )
----
0

skipif mysql # not compatible
query I rowsort label-6537
SELECT ALL + 19 / + 83 * + COALESCE ( + 1, - 85, - 55 - + 64 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6538
SELECT - - COUNT( * ) + + + ( - 2 ) - COUNT( * ) + - - 65 * - 82 AS col2
----
-5332

skipif mysql # not compatible
query I rowsort label-6538
SELECT - - COUNT ( * ) + + + ( - 2 ) - COUNT ( * ) + - - 65 * - 82 AS col2
----
-5332

query I rowsort
SELECT + + 70 * - 96 * - 12 AS col2
----
80640

query I rowsort
SELECT + 9 + + 37 + + 68
----
114

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6541
SELECT + COALESCE ( - - NULLIF ( + + ( ( + + COUNT( * ) ) ), ( - + 7 ) * + COUNT( * ) DIV + - COUNT( DISTINCT - 42 ) ), + + 86 * 26, 85 DIV 77 + - COUNT( * ) + + COUNT( * ) ) + - 92
----
-91

skipif mysql # not compatible
query I rowsort label-6541
SELECT + COALESCE ( - - NULLIF ( + + ( ( + + COUNT ( * ) ) ), ( - + 7 ) * + COUNT ( * ) / + - COUNT ( DISTINCT - 42 ) ), + + 86 * 26, 85 / 77 + - COUNT ( * ) + + COUNT ( * ) ) + - 92
----
-91

query I rowsort
SELECT ALL ( + ( + 2 ) ) - - 18 * - 28 AS col2
----
-502

query II rowsort
SELECT + + 62 * + 56 AS col1, + 28 AS col1
----
3472
28

query I rowsort
SELECT + - 87 - - 50
----
-37

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6545
SELECT + CASE + - ( + ( + 51 ) ) WHEN + 94 + 59 - - 26 + + - COUNT( * ) * + 73 * - 70 / + + 54 THEN + 23 WHEN + 46 * + CASE + 26 WHEN - - 74 THEN NULL WHEN - 96 THEN - + CAST( NULL AS SIGNED ) + + - 63 END * + 44 + - COUNT( * ) THEN NULL WHEN ( + - 63 ) THEN NULL END * + - 84 * 83
----
NULL

skipif mysql # not compatible
query I rowsort label-6545
SELECT + CASE + - ( + ( + 51 ) ) WHEN + 94 + 59 - - 26 + + - COUNT ( * ) * + 73 * - 70 / + + 54 THEN + 23 WHEN + 46 * + CASE + 26 WHEN - - 74 THEN NULL WHEN - 96 THEN - + CAST ( NULL AS INTEGER ) + + - 63 END * + 44 + - COUNT ( * ) THEN NULL WHEN ( + - 63 ) THEN NULL END * + - 84 * 83
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6546
SELECT + 12 + - CAST( - - 94 AS SIGNED ) col1, - 43 + 20 * - 87 col2
----
-82
-1783

skipif mysql # not compatible
query II rowsort label-6546
SELECT + 12 + - CAST ( - - 94 AS INTEGER ) col1, - 43 + 20 * - 87 col2
----
-82
-1783

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6548
SELECT + COALESCE ( 37, + NULLIF ( - ( + ( 73 ) ), 27 + + - ( + + 50 ) ) DIV + 29 * 38 + - + ( + 20 ) ) AS col2
----
37

skipif mysql # not compatible
query I rowsort label-6548
SELECT + COALESCE ( 37, + NULLIF ( - ( + ( 73 ) ), 27 + + - ( + + 50 ) ) / + 29 * 38 + - + ( + 20 ) ) AS col2
----
37

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

query II rowsort
SELECT + 95, 59 AS col0
----
95
59

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6551
SELECT ALL + CASE - 94 WHEN - 80 * 53 + + CAST( NULL AS SIGNED ) + - + 45 * - 61 * + - 90 * - 23 THEN 17 * - 21 * + 38 * - - 4 END
----
NULL

skipif mysql # not compatible
query I rowsort label-6551
SELECT ALL + CASE - 94 WHEN - 80 * 53 + + CAST ( NULL AS INTEGER ) + - + 45 * - 61 * + - 90 * - 23 THEN 17 * - 21 * + 38 * - - 4 END
----
NULL

query I rowsort
SELECT 52 * + 14 + + - 14 AS col2
----
714

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6554
SELECT 88 * + 0 + - - CAST( NULL AS SIGNED ) - + - 84 + + COUNT( * ) * - - 69 * ( - 7 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6554
SELECT 88 * + 0 + - - CAST ( NULL AS INTEGER ) - + - 84 + + COUNT ( * ) * - - 69 * ( - 7 )
----
NULL

query I rowsort
SELECT - 34 + 30 AS col2
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-6556
SELECT DISTINCT + COUNT( ALL - 28 )
----
1

skipif mysql # not compatible
query I rowsort label-6556
SELECT DISTINCT + COUNT ( ALL - 28 )
----
1

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

query I rowsort
SELECT DISTINCT - 98 * 63
----
-6174

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6559
SELECT ALL 83 * + 26 + + CAST( + + CASE - - COUNT( * ) WHEN - 81 THEN - + 13 + + 50 WHEN + 95 THEN NULL END AS SIGNED ) * + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-6559
SELECT ALL 83 * + 26 + + CAST ( + + CASE - - COUNT ( * ) WHEN - 81 THEN - + 13 + + 50 WHEN + 95 THEN NULL END AS INTEGER ) * + COUNT ( * )
----
NULL

query I rowsort
SELECT DISTINCT - 50 * + 62 + - - ( 37 )
----
-3063

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6562
SELECT - 16 DIV 65
----
0

skipif mysql # not compatible
query I rowsort label-6562
SELECT - 16 / 65
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6563
SELECT + ( + + 34 ) * + - 70 * + CASE + 44 WHEN COUNT( * ) + + + 41 THEN NULL WHEN 80 * - + 76 + + - 38 THEN NULLIF ( - 37, - NULLIF ( + - COUNT( * ), + 93 ) ) ELSE NULL END - - 50 * + 14 - MIN( 82 ) + - - 34 * - - 51 + - + 2 * + 61 + - + 71 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6563
SELECT + ( + + 34 ) * + - 70 * + CASE + 44 WHEN COUNT ( * ) + + + 41 THEN NULL WHEN 80 * - + 76 + + - 38 THEN NULLIF ( - 37, - NULLIF ( + - COUNT ( * ), + 93 ) ) ELSE NULL END - - 50 * + 14 - MIN ( 82 ) + - - 34 * - - 51 + - + 2 * + 61 + - + 71 AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6564
SELECT ALL + COALESCE ( + 81, 92 ) * 27 * - 73 DIV COUNT( * ) + + 80 * + ( - + 65 ) + + 31 AS col1
----
-164820

skipif mysql # not compatible
query I rowsort label-6564
SELECT ALL + COALESCE ( + 81, 92 ) * 27 * - 73 / COUNT ( * ) + + 80 * + ( - + 65 ) + + 31 AS col1
----
-164820

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6566
SELECT COALESCE ( - 50, + ( - 57 ) + + 93 - - + NULLIF ( 83, - 95 * + 29 * + 29 * + - MAX( DISTINCT - 31 ) * 18 + + AVG ( ALL + - CASE + 12 WHEN + 81 * 58 * + + 88 THEN NULL WHEN 53 THEN + 28 / + 84 / - NULLIF ( - - 69, - 45 * 27 + - - 90 ) ELSE - + 85 * 77 END ) * + 69 * - ( - 74 ) ) )
----
-50

skipif mysql # not compatible
query I rowsort label-6566
SELECT COALESCE ( - 50, + ( - 57 ) + + 93 - - + NULLIF ( 83, - 95 * + 29 * + 29 * + - MAX ( DISTINCT - 31 ) * 18 + + AVG ( ALL + - CASE + 12 WHEN + 81 * 58 * + + 88 THEN NULL WHEN 53 THEN + 28 / + 84 / - NULLIF ( - - 69, - 45 * 27 + - - 90 ) ELSE - + 85 * 77 END ) * + 69 * - ( - 74 ) ) )
----
-50

query I rowsort
SELECT ALL + 51 * - 11 + 92
----
-469

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6568
SELECT ALL - 80 * - CASE + - 68 WHEN - 20 * + ( + + 95 ) / CAST( + - ( + 55 ) AS SIGNED ) THEN 94 ELSE 69 / CAST( NULL AS SIGNED ) / ( + + COUNT( * ) ) END * ( CAST( NULL AS SIGNED ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6568
SELECT ALL - 80 * - CASE + - 68 WHEN - 20 * + ( + + 95 ) / CAST ( + - ( + 55 ) AS INTEGER ) THEN 94 ELSE 69 / CAST ( NULL AS INTEGER ) / ( + + COUNT ( * ) ) END * ( CAST ( NULL AS INTEGER ) ) AS col1
----
NULL

query II rowsort
SELECT COALESCE ( + 38, 97 ) AS col2, 55
----
38
55

query I rowsort
SELECT COALESCE ( - 99, - 56 + - COALESCE ( 12, + 66, + - 37 ), - - 84 )
----
-99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6571
SELECT ALL NULLIF ( + CASE - 59 WHEN CAST( 22 AS SIGNED ) + CASE 24 WHEN + CAST( NULL AS SIGNED ) THEN - + 23 * 3 END THEN NULL ELSE + MIN( ALL + - ( - + 61 ) ) END, 50 )
----
61

skipif mysql # not compatible
query I rowsort label-6571
SELECT ALL NULLIF ( + CASE - 59 WHEN CAST ( 22 AS INTEGER ) + CASE 24 WHEN + CAST ( NULL AS INTEGER ) THEN - + 23 * 3 END THEN NULL ELSE + MIN ( ALL + - ( - + 61 ) ) END, 50 )
----
61

query I rowsort
SELECT DISTINCT + - 71 * + 45 + + 91 AS col2
----
-3104

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

skipif mysql # not compatible
query I rowsort label-6573
SELECT - MIN ( + ( 72 ) )
----
-72

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6576
SELECT ALL + ( + MIN( 12 ) ) AS col2
----
12

skipif mysql # not compatible
query I rowsort label-6576
SELECT ALL + ( + MIN ( 12 ) ) AS col2
----
12

query I rowsort
SELECT - + 74 * - - 52 * - 42 AS col1
----
161616

query I rowsort
SELECT - + 2 col1
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-6579
SELECT + + SUM( DISTINCT - 13 ) + + 12 col1
----
-1

skipif mysql # not compatible
query I rowsort label-6579
SELECT + + SUM ( DISTINCT - 13 ) + + 12 col1
----
-1

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6581
SELECT + - ( + COUNT( * ) ) + + 57
----
56

skipif mysql # not compatible
query I rowsort label-6581
SELECT + - ( + COUNT ( * ) ) + + 57
----
56

query I rowsort
SELECT ALL - 96 * - 10 * + 11 + 36
----
10596

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

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

query I rowsort
SELECT + - 58 * 10 * + 58 * + 43 AS col2
----
-1446520

query I rowsort
SELECT ALL - - 87 * + 57 * - 18
----
-89262

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6587
SELECT DISTINCT - CAST( NULL AS SIGNED ) / + ( - 45 ) + - CASE - - SUM( ALL - 17 ) WHEN - ( - - 38 ) THEN + + 75 + + + MAX( - - 28 ) * + 88 ELSE 44 - + 80 + - 29 END / + 27
----
NULL

skipif mysql # not compatible
query I rowsort label-6587
SELECT DISTINCT - CAST ( NULL AS INTEGER ) / + ( - 45 ) + - CASE - - SUM ( ALL - 17 ) WHEN - ( - - 38 ) THEN + + 75 + + + MAX ( - - 28 ) * + 88 ELSE 44 - + 80 + - 29 END / + 27
----
NULL

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

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

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

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

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6592
SELECT ALL ( - - CAST( - + 12 AS SIGNED ) ) + - CAST( + - COUNT( DISTINCT - 65 ) AS SIGNED )
----
-11

skipif mysql # not compatible
query I rowsort label-6592
SELECT ALL ( - - CAST ( - + 12 AS INTEGER ) ) + - CAST ( + - COUNT ( DISTINCT - 65 ) AS INTEGER )
----
-11

onlyif mysql # aggregate syntax: 
query II rowsort label-6593
SELECT ALL - 79 AS col1, COALESCE ( + 66, COUNT( * ) * - COUNT( * ), COUNT( * ) )
----
-79
66

skipif mysql # not compatible
query II rowsort label-6593
SELECT ALL - 79 AS col1, COALESCE ( + 66, COUNT ( * ) * - COUNT ( * ), COUNT ( * ) )
----
-79
66

query I rowsort
SELECT ALL COALESCE ( - 46, + 56 * + 59 + + + ( + 26 ) ) * - 15
----
690

onlyif mysql # aggregate syntax: 
query I rowsort label-6595
SELECT DISTINCT 99 * + 25 * + MIN( ALL - 50 ) AS col2
----
-123750

skipif mysql # not compatible
query I rowsort label-6595
SELECT DISTINCT 99 * + 25 * + MIN ( ALL - 50 ) AS col2
----
-123750

query I rowsort
SELECT 27 * + 52
----
1404

query I rowsort
SELECT ALL 34 * 98
----
3332

query I rowsort
SELECT ALL + 57 + 80 AS col0
----
137

query I rowsort
SELECT DISTINCT 63 * 44 AS col0
----
2772

query I rowsort
SELECT 53 * + - 15
----
-795

onlyif mysql # aggregate syntax: 
query I rowsort label-6601
SELECT ALL ( - + 88 ) + + - MAX( ALL 16 ) AS col1
----
-104

skipif mysql # not compatible
query I rowsort label-6601
SELECT ALL ( - + 88 ) + + - MAX ( ALL 16 ) AS col1
----
-104

onlyif mysql # aggregate syntax: 
query I rowsort label-6602
SELECT ALL 33 + - COUNT( * )
----
32

skipif mysql # not compatible
query I rowsort label-6602
SELECT ALL 33 + - COUNT ( * )
----
32

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6603
SELECT 58 * 57 + CAST( NULL AS SIGNED ) - + 29 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6603
SELECT 58 * 57 + CAST ( NULL AS INTEGER ) - + 29 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6604
SELECT 78 * 25 * - - COUNT( * ) AS col0
----
1950

skipif mysql # not compatible
query I rowsort label-6604
SELECT 78 * 25 * - - COUNT ( * ) AS col0
----
1950

query II rowsort
SELECT ALL - 13 col0, 74 + 33 AS col0
----
-13
107

query II rowsort
SELECT 94 AS col2, - NULLIF ( - 95, + 38 )
----
94
95

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6607
SELECT ALL - CAST( NULL AS SIGNED ), 9 col1
----
NULL
9

skipif mysql # not compatible
query II rowsort label-6607
SELECT ALL - CAST ( NULL AS INTEGER ), 9 col1
----
NULL
9

query I rowsort
SELECT DISTINCT 54 - - 82 AS col1
----
136

onlyif mysql # aggregate syntax: 
query I rowsort label-6609
SELECT DISTINCT CASE + 24 WHEN - 25 * - - 63 + + COUNT( * ) / - MIN( 97 ) / + 42 + 24 THEN + 49 * + 35 END - ( - 6 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6609
SELECT DISTINCT CASE + 24 WHEN - 25 * - - 63 + + COUNT ( * ) / - MIN ( 97 ) / + 42 + 24 THEN + 49 * + 35 END - ( - 6 ) AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6610
SELECT + 16 + + SUM( ALL + - 54 ) - + + 10 * - 44 * - - CAST( + 28 AS SIGNED ) * + 59 + 17
----
726859

skipif mysql # not compatible
query I rowsort label-6610
SELECT + 16 + + SUM ( ALL + - 54 ) - + + 10 * - 44 * - - CAST ( + 28 AS INTEGER ) * + 59 + 17
----
726859

query II rowsort
SELECT + 75, - ( - + ( - - 70 ) ) AS col2
----
75
70

query I rowsort
SELECT 63 * 12 + 88
----
844

query I rowsort
SELECT ALL - 56 * - - 48
----
-2688

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

skipif mysql # not compatible
query II rowsort label-6614
SELECT DISTINCT - COUNT ( * ) col2, - 18 col0
----
-1
-18

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

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

query I rowsort
SELECT - COALESCE ( - 38, - 7 * 11 ) * - 79 * + 62
----
-186124

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6617
SELECT CASE WHEN 19 IN ( - + 51 * - + 66 * + 61, CAST( - - 78 AS SIGNED ), + - 23 * - COALESCE ( - CAST( NULL AS SIGNED ), - - 67, + AVG ( DISTINCT + + 31 ) ) * COUNT( * ) ) THEN - + 38 END + - ( - + 30 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6617
SELECT CASE WHEN 19 IN ( - + 51 * - + 66 * + 61, CAST ( - - 78 AS INTEGER ), + - 23 * - COALESCE ( - CAST ( NULL AS INTEGER ), - - 67, + AVG ( DISTINCT + + 31 ) ) * COUNT ( * ) ) THEN - + 38 END + - ( - + 30 ) AS col1
----
NULL

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

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

query I rowsort
SELECT ALL + 15 + - + NULLIF ( + 20, + + 36 + + + 23 ) + - - 23 col0
----
18

query I rowsort
SELECT + 94 + + 36 col0
----
130

onlyif mysql # aggregate syntax: 
query II rowsort label-6621
SELECT COALESCE ( 33, MIN( ALL 16 ) ) - - 57 col0, + COALESCE ( + 75, + COUNT( * ) * - 3 + + + 11, COUNT( DISTINCT ( - 33 ) ) * 30 + + 1 )
----
90
75

skipif mysql # not compatible
query II rowsort label-6621
SELECT COALESCE ( 33, MIN ( ALL 16 ) ) - - 57 col0, + COALESCE ( + 75, + COUNT ( * ) * - 3 + + + 11, COUNT ( DISTINCT ( - 33 ) ) * 30 + + 1 )
----
90
75

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6623
SELECT DISTINCT COUNT( DISTINCT - - 19 ) * + CASE 83 WHEN - MAX( + 0 ) THEN - 37 ELSE NULL END + + - 19 * - COUNT( * ) * + - 68
----
NULL

skipif mysql # not compatible
query I rowsort label-6623
SELECT DISTINCT COUNT ( DISTINCT - - 19 ) * + CASE 83 WHEN - MAX ( + 0 ) THEN - 37 ELSE NULL END + + - 19 * - COUNT ( * ) * + - 68
----
NULL

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6625
SELECT ALL - 25 + + 69 + - + 79 DIV - 62 AS col2
----
45

skipif mysql # not compatible
query I rowsort label-6625
SELECT ALL - 25 + + 69 + - + 79 / - 62 AS col2
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-6626
SELECT 34 + + MAX( - 41 )
----
-7

skipif mysql # not compatible
query I rowsort label-6626
SELECT 34 + + MAX ( - 41 )
----
-7

query I rowsort
SELECT ALL - 16 * - 86
----
1376

query II rowsort
SELECT ALL 93 + + - 59 AS col1, + 45 AS col1
----
34
45

onlyif mysql # aggregate syntax: 
query I rowsort label-6629
SELECT ALL - 52 + - + 57 - - MAX( DISTINCT - 33 ) - + 69 * 67 AS col0
----
-4765

skipif mysql # not compatible
query I rowsort label-6629
SELECT ALL - 52 + - + 57 - - MAX ( DISTINCT - 33 ) - + 69 * 67 AS col0
----
-4765

onlyif mysql # aggregate syntax: 
query I rowsort label-6630
SELECT DISTINCT - 43 + SUM( - + 59 ) AS col1
----
-102

skipif mysql # not compatible
query I rowsort label-6630
SELECT DISTINCT - 43 + SUM ( - + 59 ) AS col1
----
-102

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6631
SELECT MAX( ALL - + 34 ) DIV - + ( + COUNT( * ) ) + - 5 * - 93 AS col2
----
499

skipif mysql # not compatible
query I rowsort label-6631
SELECT MAX ( ALL - + 34 ) / - + ( + COUNT ( * ) ) + - 5 * - 93 AS col2
----
499

query I rowsort
SELECT ALL 57 + + 89
----
146

query I rowsort
SELECT 33 + 89 * + 43 * - 98 AS col1
----
-375013

query I rowsort
SELECT - 62 * 57 + ( + 20 ) col0
----
-3514

onlyif mysql # aggregate syntax: 
query I rowsort label-6635
SELECT COUNT( * ) * - + 43 * - 30
----
1290

skipif mysql # not compatible
query I rowsort label-6635
SELECT COUNT ( * ) * - + 43 * - 30
----
1290

query I rowsort
SELECT ALL - 26 - 95
----
-121

onlyif mysql # aggregate syntax: 
query II rowsort label-6637
SELECT DISTINCT 86 * COUNT( * ) AS col1, 96 AS col1
----
86
96

skipif mysql # not compatible
query II rowsort label-6637
SELECT DISTINCT 86 * COUNT ( * ) AS col1, 96 AS col1
----
86
96

query I rowsort
SELECT ALL 3 - - ( - + 86 ) AS col2
----
-83

query I rowsort
SELECT ALL 17 * - 4
----
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-6640
SELECT 29 + 42 + - 87 + 39 * 35 * SUM( DISTINCT ( 52 ) ) AS col0
----
70964

skipif mysql # not compatible
query I rowsort label-6640
SELECT 29 + 42 + - 87 + 39 * 35 * SUM ( DISTINCT ( 52 ) ) AS col0
----
70964

query I rowsort
SELECT ALL 56 * 27
----
1512

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6642
SELECT DISTINCT - CASE - + 66 WHEN - 88 THEN - - CAST( NULL AS SIGNED ) * CASE - + 26 WHEN - 11 * + COUNT( * ) / + 59 THEN SUM( DISTINCT - ( - - 83 ) ) * 78 * 12 ELSE NULL END ELSE + + COUNT( * ) END
----
-1

skipif mysql # not compatible
query I rowsort label-6642
SELECT DISTINCT - CASE - + 66 WHEN - 88 THEN - - CAST ( NULL AS INTEGER ) * CASE - + 26 WHEN - 11 * + COUNT ( * ) / + 59 THEN SUM ( DISTINCT - ( - - 83 ) ) * 78 * 12 ELSE NULL END ELSE + + COUNT ( * ) END
----
-1

query I rowsort
SELECT ALL 83 * - 93 + + + COALESCE ( - - 49, 13 * - 47 ) * + 97
----
-2966

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6644
SELECT 8 * + 75 DIV + 15 AS col2, - COUNT( * ) AS col2
----
40
-1

skipif mysql # not compatible
query II rowsort label-6644
SELECT 8 * + 75 / + 15 AS col2, - COUNT ( * ) AS col2
----
40
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-6645
SELECT + COUNT( * ) * - - 56 + 13 AS col0
----
69

skipif mysql # not compatible
query I rowsort label-6645
SELECT + COUNT ( * ) * - - 56 + 13 AS col0
----
69

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6646
SELECT CAST( NULL AS SIGNED ) + COALESCE ( + - 19, 49 / - + 12 * + - CASE + + 96 WHEN - - COALESCE ( COUNT( * ), + 26 ) + + + 54 THEN + + 1 * - 10 ELSE CAST( - COUNT( * ) AS SIGNED ) * + 53 END + ( COALESCE ( + 13, + + 85 * - COALESCE ( + 56, - + 75 + 56 ), COUNT( * ) ) ) + - - 56, - MAX( DISTINCT + 78 ) + 63 * - ( + - 93 ) * - 35 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6646
SELECT CAST ( NULL AS INTEGER ) + COALESCE ( + - 19, 49 / - + 12 * + - CASE + + 96 WHEN - - COALESCE ( COUNT ( * ), + 26 ) + + + 54 THEN + + 1 * - 10 ELSE CAST ( - COUNT ( * ) AS INTEGER ) * + 53 END + ( COALESCE ( + 13, + + 85 * - COALESCE ( + 56, - + 75 + 56 ), COUNT ( * ) ) ) + - - 56, - MAX ( DISTINCT + 78 ) + 63 * - ( + - 93 ) * - 35 ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6647
SELECT - MIN( DISTINCT - 79 ) AS col2, MIN( 10 )
----
79
10

skipif mysql # not compatible
query II rowsort label-6647
SELECT - MIN ( DISTINCT - 79 ) AS col2, MIN ( 10 )
----
79
10

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6648
SELECT - 16 * + 2 * - COUNT( * ) * - MAX( - 6 ) + COALESCE ( 84, - - 16 + - COALESCE ( MIN( + 42 ), - SUM( - 12 ) - - 1 ) DIV - COUNT( * ) ) col2
----
276

skipif mysql # not compatible
query I rowsort label-6648
SELECT - 16 * + 2 * - COUNT ( * ) * - MAX ( - 6 ) + COALESCE ( 84, - - 16 + - COALESCE ( MIN ( + 42 ), - SUM ( - 12 ) - - 1 ) / - COUNT ( * ) ) col2
----
276

onlyif mysql # DIV for integer division: 
query II rowsort label-6649
SELECT ALL ( + 72 ) DIV + - 31 AS col1, + 50 - + 17
----
-2
33

skipif mysql # not compatible
query II rowsort label-6649
SELECT ALL ( + 72 ) / + - 31 AS col1, + 50 - + 17
----
-2
33

query I rowsort
SELECT ALL + 30 * 45
----
1350

query I rowsort
SELECT - + 50 + 1 AS col2
----
-49

query II rowsort
SELECT ALL - - 33 + + + 21 AS col0, ( 72 )
----
54
72

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6653
SELECT - - CAST( - ( - 26 ) AS SIGNED ) AS col1
----
26

skipif mysql # not compatible
query I rowsort label-6653
SELECT - - CAST ( - ( - 26 ) AS INTEGER ) AS col1
----
26

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6655
SELECT ALL + CASE + 7 WHEN - 80 * - 94 + 48 THEN NULL WHEN ( + - 86 ) THEN NULL ELSE 1 END + - + CASE - ( + - MAX( DISTINCT - 47 ) ) WHEN - + ( + - 74 ) + 67 * + 45 * 74 * - 45 THEN + 56 END
----
NULL

skipif mysql # not compatible
query I rowsort label-6655
SELECT ALL + CASE + 7 WHEN - 80 * - 94 + 48 THEN NULL WHEN ( + - 86 ) THEN NULL ELSE 1 END + - + CASE - ( + - MAX ( DISTINCT - 47 ) ) WHEN - + ( + - 74 ) + 67 * + 45 * 74 * - 45 THEN + 56 END
----
NULL

query I rowsort
SELECT - 29 * + 58 AS col2
----
-1682

query I rowsort
SELECT ALL 35 + 1 AS col1
----
36

query I rowsort
SELECT DISTINCT COALESCE ( + NULLIF ( + 45, 77 ), ( + 44 ) )
----
45

query I rowsort
SELECT ALL + 57 + + 48 AS col2
----
105

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

skipif mysql # not compatible
query I rowsort label-6660
SELECT - COUNT ( * ) * - 64
----
64

query I rowsort
SELECT - 99 * - 68
----
6732

query I rowsort
SELECT ALL NULLIF ( - + 3, - 71 )
----
-3

query I rowsort
SELECT - 87 - - - ( + CASE 22 WHEN - 43 THEN + 14 WHEN - + 96 THEN NULL END ) + + 92
----
NULL

query I rowsort
SELECT - 63 * + + 62 AS col2
----
-3906

query I rowsort
SELECT ALL + 85 * 46
----
3910

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

query I rowsort
SELECT ( - - 97 )
----
97

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6669
SELECT DISTINCT CASE - 87 WHEN - - MIN( ALL - ( - 8 ) ) THEN NULL ELSE + 34 END * + CASE 85 WHEN 75 THEN NULLIF ( 96, - - ( 53 ) * 19 / - - 72 * + + 68 + + - 41 - - MAX( ALL 65 ) ) END - 70 * - - 95 + - AVG ( 48 ) + + + 97 * 71 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6669
SELECT DISTINCT CASE - 87 WHEN - - MIN ( ALL - ( - 8 ) ) THEN NULL ELSE + 34 END * + CASE 85 WHEN 75 THEN NULLIF ( 96, - - ( 53 ) * 19 / - - 72 * + + 68 + + - 41 - - MAX ( ALL 65 ) ) END - 70 * - - 95 + - AVG ( 48 ) + + + 97 * 71 col2
----
NULL

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6671
SELECT + ( - - 8 ) * MIN( ALL - + CAST( NULL AS SIGNED ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6671
SELECT + ( - - 8 ) * MIN ( ALL - + CAST ( NULL AS INTEGER ) ) AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6672
SELECT DISTINCT + 72 AS col1, + 68 + + - CAST( NULL AS SIGNED ) + - 74
----
72
NULL

skipif mysql # not compatible
query II rowsort label-6672
SELECT DISTINCT + 72 AS col1, + 68 + + - CAST ( NULL AS INTEGER ) + - 74
----
72
NULL

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

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

query I rowsort
SELECT + CASE - 32 WHEN + 4 THEN + 42 ELSE NULL END
----
NULL

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6676
SELECT + - CAST( 67 AS SIGNED ) * 64 * - 61 - - 42 * + + 19 + + + 97 + + SUM( DISTINCT + 45 )
----
262508

skipif mysql # not compatible
query I rowsort label-6676
SELECT + - CAST ( 67 AS INTEGER ) * 64 * - 61 - - 42 * + + 19 + + + 97 + + SUM ( DISTINCT + 45 )
----
262508

onlyif mysql # DIV for integer division: 
query I rowsort label-6677
SELECT ALL 77 DIV + 91
----
0

skipif mysql # not compatible
query I rowsort label-6677
SELECT ALL 77 / + 91
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-6678
SELECT - 46 * + 68 + - - 95, - ( 17 ) * COUNT( * ) AS col0
----
-3033
-17

skipif mysql # not compatible
query II rowsort label-6678
SELECT - 46 * + 68 + - - 95, - ( 17 ) * COUNT ( * ) AS col0
----
-3033
-17

query II rowsort
SELECT + 65 AS col2, + 51 AS col0
----
65
51

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6680
SELECT + 88 col2, 2 + - 18 / CAST( NULL AS SIGNED ) * - 84 AS col1
----
88
NULL

skipif mysql # not compatible
query II rowsort label-6680
SELECT + 88 col2, 2 + - 18 / CAST ( NULL AS INTEGER ) * - 84 AS col1
----
88
NULL

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6682
SELECT + 74 DIV 14 + 47 + - 42
----
10

skipif mysql # not compatible
query I rowsort label-6682
SELECT + 74 / 14 + 47 + - 42
----
10

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6683
SELECT ALL - 56 * - 31 + - - 69 + - - COALESCE ( - + COUNT( * ), - - 24 DIV - 23 * - 76 + - - CAST( NULL AS SIGNED ) ) + - - 29
----
1833

skipif mysql # not compatible
query I rowsort label-6683
SELECT ALL - 56 * - 31 + - - 69 + - - COALESCE ( - + COUNT ( * ), - - 24 / - 23 * - 76 + - - CAST ( NULL AS INTEGER ) ) + - - 29
----
1833

query I rowsort
SELECT ALL 17 * - + 66
----
-1122

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6685
SELECT 70 * MAX( ALL + + 84 ) + 39 + - + 76 - + + 9 DIV + 18 - + 29 - 69 DIV + - 18
----
5817

skipif mysql # not compatible
query I rowsort label-6685
SELECT 70 * MAX ( ALL + + 84 ) + 39 + - + 76 - + + 9 / + 18 - + 29 - 69 / + - 18
----
5817

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

query I rowsort
SELECT ALL + - 27 * + - 93 + + 68 + + 49
----
2628

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6688
SELECT ALL + + 61 * + + CAST( CASE + 26 WHEN - 21 + 13 THEN NULL ELSE + 52 + + 48 * - - 19 + - 77 END AS SIGNED ) + - + 21 AS col1
----
54086

skipif mysql # not compatible
query I rowsort label-6688
SELECT ALL + + 61 * + + CAST ( CASE + 26 WHEN - 21 + 13 THEN NULL ELSE + 52 + + 48 * - - 19 + - 77 END AS INTEGER ) + - + 21 AS col1
----
54086

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

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

query I rowsort
SELECT + 63 * + + 1
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-6691
SELECT SUM( - 89 )
----
-89

skipif mysql # not compatible
query I rowsort label-6691
SELECT SUM ( - 89 )
----
-89

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6693
SELECT NULLIF ( 74, - 83 * + ( + 10 ) * + MIN( - 83 ) - - 29 ) AS col2
----
74

skipif mysql # not compatible
query I rowsort label-6693
SELECT NULLIF ( 74, - 83 * + ( + 10 ) * + MIN ( - 83 ) - - 29 ) AS col2
----
74

query I rowsort
SELECT ALL - 25 + - - 52 AS col1
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-6695
SELECT + MAX( + 37 ) * ( + 84 )
----
3108

skipif mysql # not compatible
query I rowsort label-6695
SELECT + MAX ( + 37 ) * ( + 84 )
----
3108

query I rowsort
SELECT DISTINCT + 52 * - + ( - 93 ) * - 12
----
-58032

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

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

query I rowsort
SELECT + 87 + - - 17 + - 84
----
20

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6700
SELECT + 63 + + 5 + - 77 + + ( COUNT( * ) ) AS col0
----
-8

skipif mysql # not compatible
query I rowsort label-6700
SELECT + 63 + + 5 + - 77 + + ( COUNT ( * ) ) AS col0
----
-8

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6701
SELECT - 69 - + CAST( NULL AS SIGNED ) + + - CASE + COUNT( * ) WHEN - 16 + + 99 THEN 52 * - 81 / - - 56 / - - 10 WHEN - 20 THEN NULL ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6701
SELECT - 69 - + CAST ( NULL AS INTEGER ) + + - CASE + COUNT ( * ) WHEN - 16 + + 99 THEN 52 * - 81 / - - 56 / - - 10 WHEN - 20 THEN NULL ELSE NULL END AS col2
----
NULL

query II rowsort
SELECT DISTINCT - 53 * 24, + ( 40 ) - + 98 + - 35 col0
----
-1272
-93

query I rowsort
SELECT ALL + 98 * ( + 49 ) AS col1
----
4802

query II rowsort
SELECT + 40 + + + 93 AS col0, 73 AS col1
----
133
73

query II rowsort
SELECT ALL - 26 - - 89 AS col1, + 45 col1
----
63
45

onlyif mysql # DIV for integer division: 
query I rowsort label-6706
SELECT - 33 DIV + 99
----
0

skipif mysql # not compatible
query I rowsort label-6706
SELECT - 33 / + 99
----
0

query I rowsort
SELECT DISTINCT 39 * + 67
----
2613

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6709
SELECT - NULLIF ( - 58, - CAST( - ( 53 ) AS SIGNED ) * 20 * + - 78 ) + - 15
----
43

skipif mysql # not compatible
query I rowsort label-6709
SELECT - NULLIF ( - 58, - CAST ( - ( 53 ) AS INTEGER ) * 20 * + - 78 ) + - 15
----
43

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-6710
SELECT ALL 15 * + 70, 14 DIV NULLIF ( 64, - CAST( NULL AS SIGNED ) ) AS col0
----
1050
0

skipif mysql # not compatible
query II rowsort label-6710
SELECT ALL 15 * + 70, 14 / NULLIF ( 64, - CAST ( NULL AS INTEGER ) ) AS col0
----
1050
0

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

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

query I rowsort
SELECT ( - 84 ) * - 96 + + 35 + 6
----
8105

onlyif mysql # aggregate syntax: 
query I rowsort label-6713
SELECT + ( - + 95 ) * + 89 + 76 + + - 1 * - COUNT( * ) + - 29 * 34 + + 33 - 42
----
-9373

skipif mysql # not compatible
query I rowsort label-6713
SELECT + ( - + 95 ) * + 89 + 76 + + - 1 * - COUNT ( * ) + - 29 * 34 + + 33 - 42
----
-9373

query I rowsort
SELECT ALL + COALESCE ( - - 48, + - 53 * - 51 - + 19 )
----
48

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6715
SELECT - CAST( - + 6 AS SIGNED ) * + + 34
----
204

skipif mysql # not compatible
query I rowsort label-6715
SELECT - CAST ( - + 6 AS INTEGER ) * + + 34
----
204

onlyif mysql # aggregate syntax: 
query I rowsort label-6716
SELECT - COUNT( * ) + 48 + + - 41
----
6

skipif mysql # not compatible
query I rowsort label-6716
SELECT - COUNT ( * ) + 48 + + - 41
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-6717
SELECT ALL + - MIN( 3 ) * 84 AS col1
----
-252

skipif mysql # not compatible
query I rowsort label-6717
SELECT ALL + - MIN ( 3 ) * 84 AS col1
----
-252

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6719
SELECT ALL + + MIN( ALL 83 ) * + + 47
----
3901

skipif mysql # not compatible
query I rowsort label-6719
SELECT ALL + + MIN ( ALL 83 ) * + + 47
----
3901

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6720
SELECT ALL - SUM( ALL 47 ) / - CASE + 21 WHEN 18 THEN + COALESCE ( COUNT( * ), - + 36, CAST( - 72 AS SIGNED ) / + COUNT( * ) * + 52 * - - MAX( + 52 ) - 84 ) END + + 52 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6720
SELECT ALL - SUM ( ALL 47 ) / - CASE + 21 WHEN 18 THEN + COALESCE ( COUNT ( * ), - + 36, CAST ( - 72 AS INTEGER ) / + COUNT ( * ) * + 52 * - - MAX ( + 52 ) - 84 ) END + + 52 AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6721
SELECT DISTINCT + 80 DIV 91 + + + 56 * MIN( 47 ) * - - CASE + - COUNT( * ) WHEN - COUNT( * ) THEN - 18 + - 42 ELSE COALESCE ( + - 76, - 61 * + 68, 30 ) END + + 27 * - - 63 AS col1
----
-156219

skipif mysql # not compatible
query I rowsort label-6721
SELECT DISTINCT + 80 / 91 + + + 56 * MIN ( 47 ) * - - CASE + - COUNT ( * ) WHEN - COUNT ( * ) THEN - 18 + - 42 ELSE COALESCE ( + - 76, - 61 * + 68, 30 ) END + + 27 * - - 63 AS col1
----
-156219

query I rowsort
SELECT ALL + 77 + - ( 10 )
----
67

query I rowsort
SELECT ALL - + 78 + 17 + 37 col0
----
-24

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6724
SELECT 97 * - MIN( ALL - 44 ) + NULLIF ( CAST( NULL AS SIGNED ), + 31 ) * 3
----
NULL

skipif mysql # not compatible
query I rowsort label-6724
SELECT 97 * - MIN ( ALL - 44 ) + NULLIF ( CAST ( NULL AS INTEGER ), + 31 ) * 3
----
NULL

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

query I rowsort
SELECT - 49 * + 9 - + 77
----
-518

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6727
SELECT DISTINCT - NULLIF ( + MAX( - 88 ), + NULLIF ( - + 95, - + CAST( NULL AS SIGNED ) ) DIV - + 23 + - 58 + + 17 + + + 78 DIV COUNT( * ) DIV - CASE - + 28 WHEN 18 + + + 17 THEN NULL WHEN + 73 + 17 THEN - 62 ELSE NULL END + + 33 ) DIV - + 92 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-6727
SELECT DISTINCT - NULLIF ( + MAX ( - 88 ), + NULLIF ( - + 95, - + CAST ( NULL AS INTEGER ) ) / - + 23 + - 58 + + 17 + + + 78 / COUNT ( * ) / - CASE - + 28 WHEN 18 + + + 17 THEN NULL WHEN + 73 + 17 THEN - 62 ELSE NULL END + + 33 ) / - + 92 AS col0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6728
SELECT + CAST( 31 AS SIGNED ) + 71 AS col2
----
102

skipif mysql # not compatible
query I rowsort label-6728
SELECT + CAST ( 31 AS INTEGER ) + 71 AS col2
----
102

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

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

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

skipif mysql # not compatible
query I rowsort label-6730
SELECT ALL - ( + + COUNT ( * ) ) / - - ( - 38 ) AS col0
----
0

query I rowsort
SELECT 93 * - 12 + - 44 col1
----
-1160

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6733
SELECT - 44, + COUNT( ALL + + 80 ) AS col2
----
-44
1

skipif mysql # not compatible
query II rowsort label-6733
SELECT - 44, + COUNT ( ALL + + 80 ) AS col2
----
-44
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6734
SELECT CAST( + - 76 AS SIGNED ) * + 4
----
-304

skipif mysql # not compatible
query I rowsort label-6734
SELECT CAST ( + - 76 AS INTEGER ) * + 4
----
-304

query I rowsort
SELECT DISTINCT - 22 * 58 * - 22 AS col0
----
28072

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6736
SELECT ALL 64, 2 + 75 + 52 * 91 * - - CAST( NULL AS SIGNED ) * - 40 col1
----
64
NULL

skipif mysql # not compatible
query II rowsort label-6736
SELECT ALL 64, 2 + 75 + 52 * 91 * - - CAST ( NULL AS INTEGER ) * - 40 col1
----
64
NULL

query I rowsort
SELECT 52 * - 76
----
-3952

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-6738
SELECT 87 * + + CASE - MIN( + 77 ) WHEN - ( MIN( DISTINCT - + 71 ) ) * - 91 * + + SUM( DISTINCT + CAST( NULL AS DECIMAL ) ) + - + 88 + + + CAST( NULL AS SIGNED ) - - - 49 * - - 93 + 12 * + 75 * + - 15 - MIN( ALL - 42 ) + 56 + + 30 + + 9 / - + 7 * + - 53 + - 11 * 58 THEN NULL WHEN + - 34 THEN 73 END * MIN( + 30 ) col1, 63
----
NULL
63

skipif mysql # not compatible
query II rowsort label-6738
SELECT 87 * + + CASE - MIN ( + 77 ) WHEN - ( MIN ( DISTINCT - + 71 ) ) * - 91 * + + SUM ( DISTINCT + CAST ( NULL AS REAL ) ) + - + 88 + + + CAST ( NULL AS INTEGER ) - - - 49 * - - 93 + 12 * + 75 * + - 15 - MIN ( ALL - 42 ) + 56 + + 30 + + 9 / - + 7 * + - 53 + - 11 * 58 THEN NULL WHEN + - 34 THEN 73 END * MIN ( + 30 ) col1, 63
----
NULL
63

onlyif mysql # DIV for integer division: 
query I rowsort label-6739
SELECT ALL 68 DIV 54 col2
----
1

skipif mysql # not compatible
query I rowsort label-6739
SELECT ALL 68 / 54 col2
----
1

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6741
SELECT 77 * SUM( + 98 )
----
7546

skipif mysql # not compatible
query I rowsort label-6741
SELECT 77 * SUM ( + 98 )
----
7546

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

query I rowsort
SELECT ALL 84 + + 39 AS col2
----
123

query I rowsort
SELECT 32 * - NULLIF ( ( 19 ) * - 48, ( 77 ) ) - 99 AS col0
----
29085

onlyif mysql # DIV for integer division: 
query I rowsort label-6745
SELECT ALL - 60 DIV 95 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-6745
SELECT ALL - 60 / 95 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6746
SELECT ALL + COALESCE ( 6, 27 * + 6 ) + COUNT( 93 )
----
7

skipif mysql # not compatible
query I rowsort label-6746
SELECT ALL + COALESCE ( 6, 27 * + 6 ) + COUNT ( 93 )
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-6747
SELECT ALL - SUM( DISTINCT 41 ) AS col1
----
-41

skipif mysql # not compatible
query I rowsort label-6747
SELECT ALL - SUM ( DISTINCT 41 ) AS col1
----
-41

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6748
SELECT 69 * 36 + CAST( 9 AS SIGNED )
----
2493

skipif mysql # not compatible
query I rowsort label-6748
SELECT 69 * 36 + CAST ( 9 AS INTEGER )
----
2493

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6749
SELECT DISTINCT - CASE + 22 WHEN 13 THEN NULL WHEN 98 * - CAST( + 40 AS SIGNED ) THEN - 39 + + 93 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6749
SELECT DISTINCT - CASE + 22 WHEN 13 THEN NULL WHEN 98 * - CAST ( + 40 AS INTEGER ) THEN - 39 + + 93 END AS col1
----
NULL

query I rowsort
SELECT 12 + 49 AS col2
----
61

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: DIV for integer division: 
query I rowsort label-6753
SELECT ALL - 70 + CASE 39 + + 22 * ( 63 DIV COALESCE ( 51, 81 * - 50 ) ) WHEN - COALESCE ( + 72, + 96, + CAST( 63 AS DECIMAL ), - 96 * 18 + + 74 ) + - CAST( NULL AS SIGNED ) * 84 THEN NULL ELSE + 23 DIV 22 END DIV 65 col2
----
-70

skipif mysql # not compatible
query I rowsort label-6753
SELECT ALL - 70 + CASE 39 + + 22 * ( 63 / COALESCE ( 51, 81 * - 50 ) ) WHEN - COALESCE ( + 72, + 96, + CAST ( 63 AS REAL ), - 96 * 18 + + 74 ) + - CAST ( NULL AS INTEGER ) * 84 THEN NULL ELSE + 23 / 22 END / 65 col2
----
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-6754
SELECT ALL - 97 * - MAX( DISTINCT 4 * 5 )
----
1940

skipif mysql # not compatible
query I rowsort label-6754
SELECT ALL - 97 * - MAX ( DISTINCT 4 * 5 )
----
1940

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

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

query I rowsort
SELECT DISTINCT + 25 - + 96
----
-71

query I rowsort
SELECT 17 * - 11
----
-187

query I rowsort
SELECT 24 - + 25
----
-1

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

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

query I rowsort
SELECT 33 - + 24 * 1
----
9

onlyif mysql # DIV for integer division: 
query I rowsort label-6761
SELECT 7 * 65 + 37 DIV 25
----
456

skipif mysql # not compatible
query I rowsort label-6761
SELECT 7 * 65 + 37 / 25
----
456

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

skipif mysql # not compatible
query I rowsort label-6762
SELECT 72 * COUNT ( * )
----
72

onlyif mysql # DIV for integer division: 
query I rowsort label-6763
SELECT ALL - 26 DIV + 64
----
0

skipif mysql # not compatible
query I rowsort label-6763
SELECT ALL - 26 / + 64
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6764
SELECT 62 DIV + NULLIF ( + 8, - COALESCE ( COALESCE ( CAST( 73 AS SIGNED ), - 63, + 61, 17 * - MIN( + 19 ) ), + 43, AVG ( 46 ) * + 77, 52 + - 55 ) * 51 ) AS col2
----
7

skipif mysql # not compatible
query I rowsort label-6764
SELECT 62 / + NULLIF ( + 8, - COALESCE ( COALESCE ( CAST ( 73 AS INTEGER ), - 63, + 61, 17 * - MIN ( + 19 ) ), + 43, AVG ( 46 ) * + 77, 52 + - 55 ) * 51 ) AS col2
----
7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6765
SELECT 68 - NULLIF ( + NULLIF ( + CASE WHEN NOT - 72 NOT IN ( 54 * 4 ) THEN - MIN( DISTINCT 84 ) ELSE 69 DIV - CASE + 13 WHEN - ( 34 ) THEN NULL WHEN 46 * CAST( 68 AS SIGNED ) + 2 THEN 3 DIV 98 ELSE 61 END END, 5 + ( + 38 ) ), + ( - 19 ) + - COUNT( * ) ) AS col0
----
69

skipif mysql # not compatible
query I rowsort label-6765
SELECT 68 - NULLIF ( + NULLIF ( + CASE WHEN NOT - 72 NOT IN ( 54 * 4 ) THEN - MIN ( DISTINCT 84 ) ELSE 69 / - CASE + 13 WHEN - ( 34 ) THEN NULL WHEN 46 * CAST ( 68 AS INTEGER ) + 2 THEN 3 / 98 ELSE 61 END END, 5 + ( + 38 ) ), + ( - 19 ) + - COUNT ( * ) ) AS col0
----
69

query I rowsort
SELECT 71 * - 72
----
-5112

query I rowsort
SELECT ALL 80 * 60 AS col2
----
4800

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

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

query I rowsort
SELECT ALL 45 + - 79 AS col1
----
-34

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6770
SELECT 68 + + CAST( 18 + 83 * + NULLIF ( 52 + - 29, 16 * - 86 ) AS SIGNED )
----
1995

skipif mysql # not compatible
query I rowsort label-6770
SELECT 68 + + CAST ( 18 + 83 * + NULLIF ( 52 + - 29, 16 * - 86 ) AS INTEGER )
----
1995

onlyif mysql # aggregate syntax: 
query I rowsort label-6771
SELECT 3 - MAX( DISTINCT - 95 ) * - 78 AS col2
----
-7407

skipif mysql # not compatible
query I rowsort label-6771
SELECT 3 - MAX ( DISTINCT - 95 ) * - 78 AS col2
----
-7407

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6773
SELECT MAX( + 80 ) + 84 * - 80 AS col0
----
-6640

skipif mysql # not compatible
query I rowsort label-6773
SELECT MAX ( + 80 ) + 84 * - 80 AS col0
----
-6640

onlyif mysql # aggregate syntax: 
query I rowsort label-6774
SELECT ( + ( COUNT( DISTINCT - NULLIF ( 78, + 12 ) ) ) ) - 77
----
-76

skipif mysql # not compatible
query I rowsort label-6774
SELECT ( + ( COUNT ( DISTINCT - NULLIF ( 78, + 12 ) ) ) ) - 77
----
-76

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6775
SELECT DISTINCT - 45 * + ( NULLIF ( - 82, + 38 + - SUM( ALL - 4 ) ) DIV + 51 )
----
45

skipif mysql # not compatible
query I rowsort label-6775
SELECT DISTINCT - 45 * + ( NULLIF ( - 82, + 38 + - SUM ( ALL - 4 ) ) / + 51 )
----
45

query I rowsort
SELECT DISTINCT + 91 + ( - 37 )
----
54

query I rowsort
SELECT ALL ( 68 ) + + 58 * - 58
----
-3296

query I rowsort
SELECT DISTINCT 66 + - 44 * 34
----
-1430

query I rowsort
SELECT DISTINCT + 85 + + 73 AS col2
----
158

query I rowsort
SELECT ALL + + 50 * + 90 + NULLIF ( ( - 93 ), - 64 * 59 ) col0
----
4407

onlyif mysql # aggregate syntax: 
query I rowsort label-6781
SELECT ALL 86 * 56 + COUNT( ALL + 2 )
----
4817

skipif mysql # not compatible
query I rowsort label-6781
SELECT ALL 86 * 56 + COUNT ( ALL + 2 )
----
4817

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6782
SELECT - COALESCE ( - 39, 7, 51 - 76 * + NULLIF ( - 24, 48 ), COUNT( * ) ) DIV - 8 + - 2
----
-6

skipif mysql # not compatible
query I rowsort label-6782
SELECT - COALESCE ( - 39, 7, 51 - 76 * + NULLIF ( - 24, 48 ), COUNT ( * ) ) / - 8 + - 2
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-6783
SELECT DISTINCT 41 * COUNT( - 16 ) col1
----
41

skipif mysql # not compatible
query I rowsort label-6783
SELECT DISTINCT 41 * COUNT ( - 16 ) col1
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-6784
SELECT + 80 + - COUNT( * )
----
79

skipif mysql # not compatible
query I rowsort label-6784
SELECT + 80 + - COUNT ( * )
----
79

query I rowsort
SELECT + - 97 * 66 AS col2
----
-6402

query I rowsort
SELECT - - 92 * - 87
----
-8004

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

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

query I rowsort
SELECT + + 22 * 70
----
1540

query I rowsort
SELECT - + 17 + 90 AS col2
----
73

query I rowsort
SELECT ALL - 11 * - 2 AS col1
----
22

query I rowsort
SELECT + 56 * 89 AS col2
----
4984

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

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

query I rowsort
SELECT DISTINCT - 49 * 45 - 71 AS col1
----
-2276

onlyif mysql # DIV for integer division: 
query I rowsort label-6794
SELECT DISTINCT + - 36 DIV 58
----
0

skipif mysql # not compatible
query I rowsort label-6794
SELECT DISTINCT + - 36 / 58
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-6795
SELECT - ( + 96 ) DIV 56
----
-1

skipif mysql # not compatible
query I rowsort label-6795
SELECT - ( + 96 ) / 56
----
-1

query I rowsort
SELECT + - CASE 54 WHEN 65 THEN 73 ELSE NULL END AS col1
----
NULL

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6798
SELECT - 53 * - CASE 24 WHEN 12 * 46 THEN NULL WHEN 12 THEN + CAST( + 49 AS SIGNED ) * - 61 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6798
SELECT - 53 * - CASE 24 WHEN 12 * 46 THEN NULL WHEN 12 THEN + CAST ( + 49 AS INTEGER ) * - 61 END AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6799
SELECT + COUNT( * ) + - COALESCE ( 24, 69 + 66, - 9 DIV MIN( DISTINCT + CAST( + 22 AS SIGNED ) ), + 77 ) * 98 AS col1
----
-2351

skipif mysql # not compatible
query I rowsort label-6799
SELECT + COUNT ( * ) + - COALESCE ( 24, 69 + 66, - 9 / MIN ( DISTINCT + CAST ( + 22 AS INTEGER ) ), + 77 ) * 98 AS col1
----
-2351

query I rowsort
SELECT + 11 * 39 + + 11 AS col0
----
440

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

query I rowsort
SELECT ALL CASE - + 16 WHEN - 64 THEN NULL WHEN + 18 THEN NULL WHEN - 17 + - 72 THEN 64 - 11 * 72 END
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6804
SELECT - ( - + 94 ) + MAX( DISTINCT + 61 )
----
155

skipif mysql # not compatible
query I rowsort label-6804
SELECT - ( - + 94 ) + MAX ( DISTINCT + 61 )
----
155

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6806
SELECT - SUM( ALL + 44 ) + 33 AS col0
----
-11

skipif mysql # not compatible
query I rowsort label-6806
SELECT - SUM ( ALL + 44 ) + 33 AS col0
----
-11

query I rowsort
SELECT ALL NULLIF ( - + 22, 70 )
----
-22

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

query I rowsort
SELECT - 63 + - 68 AS col2
----
-131

onlyif mysql # aggregate syntax: 
query I rowsort label-6810
SELECT DISTINCT NULLIF ( NULLIF ( - 1, + SUM( + 45 ) - 95 ), - 51 )
----
-1

skipif mysql # not compatible
query I rowsort label-6810
SELECT DISTINCT NULLIF ( NULLIF ( - 1, + SUM ( + 45 ) - 95 ), - 51 )
----
-1

query I rowsort
SELECT ALL + 4 + 21
----
25

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6812
SELECT - CASE WHEN ( 5 ) BETWEEN 88 * CAST( NULL AS SIGNED ) AND - COALESCE ( - 69, 94 * - 48 ) THEN COUNT( * ) * + 61 ELSE NULL END * 91
----
NULL

skipif mysql # not compatible
query I rowsort label-6812
SELECT - CASE WHEN ( 5 ) BETWEEN 88 * CAST ( NULL AS INTEGER ) AND - COALESCE ( - 69, 94 * - 48 ) THEN COUNT ( * ) * + 61 ELSE NULL END * 91
----
NULL

query I rowsort
SELECT - 56 + - 84 + 14 * + 57
----
658

query I rowsort
SELECT ALL - 32 + - 58 col0
----
-90

onlyif mysql # DIV for integer division: 
query I rowsort label-6815
SELECT - ( + 80 ) DIV 83 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-6815
SELECT - ( + 80 ) / 83 AS col2
----
0

query I rowsort
SELECT ALL + 5 + + + 4 AS col1
----
9

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

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

query I rowsort
SELECT ALL 91 + 7 + 45 * ( - NULLIF ( ( + 40 ), - 70 - ( - 50 ) ) )
----
-1702

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

query I rowsort
SELECT ALL 68 * + 54 - - 41
----
3713

onlyif mysql # aggregate syntax: 
query I rowsort label-6821
SELECT - + MAX( 52 ) * - 73 AS col1
----
3796

skipif mysql # not compatible
query I rowsort label-6821
SELECT - + MAX ( 52 ) * - 73 AS col1
----
3796

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6822
SELECT - - 1 - + CAST( + NULLIF ( 72, + 80 ) AS SIGNED )
----
-71

skipif mysql # not compatible
query I rowsort label-6822
SELECT - - 1 - + CAST ( + NULLIF ( 72, + 80 ) AS INTEGER )
----
-71

query I rowsort
SELECT ALL - + 34 * - 62
----
2108

onlyif mysql # aggregate syntax: 
query I rowsort label-6824
SELECT - + 26 - COUNT( DISTINCT - 48 )
----
-27

skipif mysql # not compatible
query I rowsort label-6824
SELECT - + 26 - COUNT ( DISTINCT - 48 )
----
-27

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6825
SELECT DISTINCT + ( + COALESCE ( CAST( 67 AS SIGNED ), - 84 + + 78 * 25 ) ) AS col0
----
67

skipif mysql # not compatible
query I rowsort label-6825
SELECT DISTINCT + ( + COALESCE ( CAST ( 67 AS INTEGER ), - 84 + + 78 * 25 ) ) AS col0
----
67

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

query I rowsort
SELECT DISTINCT + ( - - 18 ) AS col2
----
18

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6829
SELECT + + 25 DIV + + 13
----
1

skipif mysql # not compatible
query I rowsort label-6829
SELECT + + 25 / + + 13
----
1

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

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

query I rowsort
SELECT ALL 59 * 65 + - 47
----
3788

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

query I rowsort
SELECT + ( + - ( + NULLIF ( 26, 91 ) ) ) AS col2
----
-26

query I rowsort
SELECT - 47 + - 20 * 61 * - 49
----
59733

query I rowsort
SELECT DISTINCT 52 * + + 59 AS col1
----
3068

query I rowsort
SELECT ALL 11 * + 11 * - + 98
----
-11858

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6837
SELECT ALL CAST( NULL AS SIGNED ) * - 80 * + 40 * NULLIF ( + ( + 60 ) * - 49, - 86 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6837
SELECT ALL CAST ( NULL AS INTEGER ) * - 80 * + 40 * NULLIF ( + ( + 60 ) * - 49, - 86 )
----
NULL

query I rowsort
SELECT + 93 * + 64 * - 77 AS col0
----
-458304

query I rowsort
SELECT ALL 63 * + 65 * 8 + 15 AS col1
----
32775

query I rowsort
SELECT DISTINCT 17 * + + 90 AS col1
----
1530

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6841
SELECT MIN( DISTINCT CAST( NULL AS SIGNED ) ) * 20 + 65 * 18 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6841
SELECT MIN ( DISTINCT CAST ( NULL AS INTEGER ) ) * 20 + 65 * 18 col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6842
SELECT + COUNT( - - 98 ) - - - 57 + 8 DIV 48
----
-56

skipif mysql # not compatible
query I rowsort label-6842
SELECT + COUNT ( - - 98 ) - - - 57 + 8 / 48
----
-56

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

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

query I rowsort
SELECT + 51 + - NULLIF ( + 25, 47 )
----
26

query I rowsort
SELECT NULLIF ( - 86, 28 * - 52 ) AS col1
----
-86

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6846
SELECT DISTINCT NULLIF ( - 66, - + 90 * - CAST( 98 * + 91 AS SIGNED ) + COUNT( * ) )
----
-66

skipif mysql # not compatible
query I rowsort label-6846
SELECT DISTINCT NULLIF ( - 66, - + 90 * - CAST ( 98 * + 91 AS INTEGER ) + COUNT ( * ) )
----
-66

query I rowsort
SELECT + COALESCE ( + ( + 37 ), + 82 ) * 3 AS col0
----
111

query I rowsort
SELECT ALL 50 * + 26 * 51 + - 43
----
66257

query I rowsort
SELECT - 97 - + + 31 AS col2
----
-128

query I rowsort
SELECT 12 + + 6 * 76 AS col2
----
468

query II rowsort
SELECT - 68 AS col0, 56 - + 62 * - 4
----
-68
304

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6852
SELECT ALL + - 19 - - - NULLIF ( - - 1, - 29 ) + - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6852
SELECT ALL + - 19 - - - NULLIF ( - - 1, - 29 ) + - CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT 68 + 27 + + - 2
----
93

query I rowsort
SELECT - 88 + + + 28
----
-60

onlyif mysql # DIV for integer division: 
query I rowsort label-6855
SELECT 58 - 95 + - 12 + + 59 DIV - 6 AS col2
----
-58

skipif mysql # not compatible
query I rowsort label-6855
SELECT 58 - 95 + - 12 + + 59 / - 6 AS col2
----
-58

query I rowsort
SELECT 61 + + COALESCE ( + 84, - 55 + COALESCE ( - 58, - 66 ) ) AS col1
----
145

query I rowsort
SELECT ALL + 70 - + 65 + 10 AS col2
----
15

query I rowsort
SELECT 91 * 34
----
3094

query I rowsort
SELECT 7 + 60
----
67

query I rowsort
SELECT + 38 + - + 18 AS col2
----
20

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6862
SELECT DISTINCT CASE 69 WHEN + 92 / - COALESCE ( ( 62 ), - COALESCE ( - 22, + 15, 33 ), 19 * - 32, COUNT( * ) ) + - COUNT( 41 - + 5 * + 64 ) * MAX( NULLIF ( - 12, 28 ) ) THEN 6 * + 20 - COUNT( * ) ELSE + 57 END
----
57

skipif mysql # not compatible
query I rowsort label-6862
SELECT DISTINCT CASE 69 WHEN + 92 / - COALESCE ( ( 62 ), - COALESCE ( - 22, + 15, 33 ), 19 * - 32, COUNT ( * ) ) + - COUNT ( 41 - + 5 * + 64 ) * MAX ( NULLIF ( - 12, 28 ) ) THEN 6 * + 20 - COUNT ( * ) ELSE + 57 END
----
57

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6864
SELECT ALL + + COUNT( + 16 ) * - CAST( - 14 AS SIGNED ) AS col2
----
14

skipif mysql # not compatible
query I rowsort label-6864
SELECT ALL + + COUNT ( + 16 ) * - CAST ( - 14 AS INTEGER ) AS col2
----
14

query I rowsort
SELECT ALL 57 * - + 37
----
-2109

onlyif mysql # aggregate syntax: 
query I rowsort label-6866
SELECT 40 * - 66 * - COUNT( * ) AS col1
----
2640

skipif mysql # not compatible
query I rowsort label-6866
SELECT 40 * - 66 * - COUNT ( * ) AS col1
----
2640

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

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

query II rowsort
SELECT + 82 AS col1, 88 AS col2
----
82
88

query I rowsort
SELECT DISTINCT 29 + + 62 * - + 55
----
-3381

query I rowsort
SELECT ALL 5 + - - 82
----
87

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

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

query I rowsort
SELECT ( - 9 ) * + - 29 AS col2
----
261

onlyif mysql # aggregate syntax: 
query I rowsort label-6873
SELECT ALL 69 + + MIN( ALL + NULLIF ( 56, - CASE 20 WHEN - 97 THEN 48 END ) )
----
125

skipif mysql # not compatible
query I rowsort label-6873
SELECT ALL 69 + + MIN ( ALL + NULLIF ( 56, - CASE 20 WHEN - 97 THEN 48 END ) )
----
125

query I rowsort
SELECT + 46 * 66 + - 10 AS col0
----
3026

onlyif mysql # aggregate syntax: 
query I rowsort label-6875
SELECT - MIN( - 85 ) * + 76 * - 68 * - 82 + CASE - 66 + COUNT( * ) * COUNT( * ) WHEN - 53 - - 54 THEN NULLIF ( - 2, 33 ) - 88 * + 0 WHEN - 54 THEN NULL ELSE NULL END / - 24 - + 40
----
NULL

skipif mysql # not compatible
query I rowsort label-6875
SELECT - MIN ( - 85 ) * + 76 * - 68 * - 82 + CASE - 66 + COUNT ( * ) * COUNT ( * ) WHEN - 53 - - 54 THEN NULLIF ( - 2, 33 ) - 88 * + 0 WHEN - 54 THEN NULL ELSE NULL END / - 24 - + 40
----
NULL

query I rowsort
SELECT ALL - 4 + - - 23 + + 58 - - 78
----
155

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6878
SELECT CASE - MIN( - 64 ) WHEN 13 * - 92 + - NULLIF ( ( 66 ), + 87 * - 13 ) THEN NULL WHEN CAST( NULL AS SIGNED ) + COUNT( * ) THEN ( 84 ) END + + 0 * + 88
----
NULL

skipif mysql # not compatible
query I rowsort label-6878
SELECT CASE - MIN ( - 64 ) WHEN 13 * - 92 + - NULLIF ( ( 66 ), + 87 * - 13 ) THEN NULL WHEN CAST ( NULL AS INTEGER ) + COUNT ( * ) THEN ( 84 ) END + + 0 * + 88
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6879
SELECT 96 * - 38 AS col0, CAST( + - 32 AS SIGNED )
----
-3648
-32

skipif mysql # not compatible
query II rowsort label-6879
SELECT 96 * - 38 AS col0, CAST ( + - 32 AS INTEGER )
----
-3648
-32

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6880
SELECT 5 * - 12 + ( + 88 ) DIV - COUNT( * ) AS col2
----
-148

skipif mysql # not compatible
query I rowsort label-6880
SELECT 5 * - 12 + ( + 88 ) / - COUNT ( * ) AS col2
----
-148

query I rowsort
SELECT ( ( + 50 ) ) + + 16
----
66

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6882
SELECT 86 * + CAST( NULL AS DECIMAL ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6882
SELECT 86 * + CAST ( NULL AS REAL ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6883
SELECT 27 + + 19 * + COUNT( * ) AS col2
----
46

skipif mysql # not compatible
query I rowsort label-6883
SELECT 27 + + 19 * + COUNT ( * ) AS col2
----
46

onlyif mysql # DIV for integer division: 
query I rowsort label-6884
SELECT ALL COALESCE ( - 56, + 44 DIV + - COALESCE ( - AVG ( 1 ), 96 + 97 * + 37 ), 13 ) AS col0
----
-56

skipif mysql # not compatible
query I rowsort label-6884
SELECT ALL COALESCE ( - 56, + 44 / + - COALESCE ( - AVG ( 1 ), 96 + 97 * + 37 ), 13 ) AS col0
----
-56

query I rowsort
SELECT ALL + 24 * + 61 AS col1
----
1464

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

query I rowsort
SELECT DISTINCT + - NULLIF ( - 80, + 7 ) * + - 73
----
-5840

onlyif mysql # DIV for integer division: 
query I rowsort label-6888
SELECT ALL - 80 * ( - - 16 ) DIV + 69 * - 1 + + 17
----
35

skipif mysql # not compatible
query I rowsort label-6888
SELECT ALL - 80 * ( - - 16 ) / + 69 * - 1 + + 17
----
35

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6889
SELECT NULLIF ( - 59, 49 * + NULLIF ( 22, - COALESCE ( 66, 0, 80 + 69 ) ) - 64 / + COALESCE ( 51 * ( + CAST( 51 AS SIGNED ) / + ( - COUNT( * ) ) ), + 24 - - 47 ) )
----
-59

skipif mysql # not compatible
query I rowsort label-6889
SELECT NULLIF ( - 59, 49 * + NULLIF ( 22, - COALESCE ( 66, 0, 80 + 69 ) ) - 64 / + COALESCE ( 51 * ( + CAST ( 51 AS INTEGER ) / + ( - COUNT ( * ) ) ), + 24 - - 47 ) )
----
-59

query I rowsort
SELECT - 45 * + - 38 AS col1
----
1710

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6891
SELECT 32 - - CAST( 2 AS SIGNED ) DIV - 46 AS col2
----
32

skipif mysql # not compatible
query I rowsort label-6891
SELECT 32 - - CAST ( 2 AS INTEGER ) / - 46 AS col2
----
32

onlyif mysql # DIV for integer division: 
query I rowsort label-6892
SELECT - NULLIF ( + - 57, - 66 ) - - - 22 DIV + 96
----
57

skipif mysql # not compatible
query I rowsort label-6892
SELECT - NULLIF ( + - 57, - 66 ) - - - 22 / + 96
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-6893
SELECT DISTINCT - + MAX( - 8 ) * - 88 + - - 95 AS col2
----
-609

skipif mysql # not compatible
query I rowsort label-6893
SELECT DISTINCT - + MAX ( - 8 ) * - 88 + - - 95 AS col2
----
-609

onlyif mysql # DIV for integer division: 
query I rowsort label-6894
SELECT DISTINCT - 64 DIV - - 46
----
-1

skipif mysql # not compatible
query I rowsort label-6894
SELECT DISTINCT - 64 / - - 46
----
-1

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

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

query I rowsort
SELECT ALL 87 * 6 + + - 96 + - ( + + 43 ) AS col1
----
383

query I rowsort
SELECT ALL 24 * + 28 + + + 90
----
762

onlyif mysql # aggregate syntax: 
query II rowsort label-6898
SELECT DISTINCT - COUNT( * ) col2, - 83
----
-1
-83

skipif mysql # not compatible
query II rowsort label-6898
SELECT DISTINCT - COUNT ( * ) col2, - 83
----
-1
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-6899
SELECT 68 * + - COALESCE ( + + COUNT( * ), + + 31 * + 82 ) AS col2
----
-68

skipif mysql # not compatible
query I rowsort label-6899
SELECT 68 * + - COALESCE ( + + COUNT ( * ), + + 31 * + 82 ) AS col2
----
-68

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6900
SELECT 18 DIV COUNT( * ) + + 41 * - ( 88 )
----
-3590

skipif mysql # not compatible
query I rowsort label-6900
SELECT 18 / COUNT ( * ) + + 41 * - ( 88 )
----
-3590

onlyif mysql # aggregate syntax: 
query I rowsort label-6901
SELECT ALL - NULLIF ( CASE - AVG ( - + 83 ) WHEN 44 + 49 * + 6 THEN + ( 64 ) END, COUNT( * ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6901
SELECT ALL - NULLIF ( CASE - AVG ( - + 83 ) WHEN 44 + 49 * + 6 THEN + ( 64 ) END, COUNT ( * ) ) AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6902
SELECT DISTINCT + MAX( DISTINCT - + 8 ) * - + 91 AS col2, + COALESCE ( COUNT( ALL - 36 ), 49 + + 14 * NULLIF ( 14 + + 13 DIV + 5, - 88 + 25 ), COUNT( * ) * ( + COUNT( * ) ) ) * 61
----
728
61

skipif mysql # not compatible
query II rowsort label-6902
SELECT DISTINCT + MAX ( DISTINCT - + 8 ) * - + 91 AS col2, + COALESCE ( COUNT ( ALL - 36 ), 49 + + 14 * NULLIF ( 14 + + 13 / + 5, - 88 + 25 ), COUNT ( * ) * ( + COUNT ( * ) ) ) * 61
----
728
61

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6903
SELECT ALL 61 * + - 99 * 70 * 8 + - 27 + + COUNT( * ) DIV 74 AS col0
----
-3381867

skipif mysql # not compatible
query I rowsort label-6903
SELECT ALL 61 * + - 99 * 70 * 8 + - 27 + + COUNT ( * ) / 74 AS col0
----
-3381867

query I rowsort
SELECT ALL 16 + + 2 + - 18 + - + 89 + - 23
----
-112

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6905
SELECT SUM( - CASE - 96 WHEN 54 THEN NULL WHEN + - 75 - CAST( NULL AS SIGNED ) THEN - 80 END )
----
NULL

skipif mysql # not compatible
query I rowsort label-6905
SELECT SUM ( - CASE - 96 WHEN 54 THEN NULL WHEN + - 75 - CAST ( NULL AS INTEGER ) THEN - 80 END )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6906
SELECT 18 * + SUM( 21 ) * - 8 + + + 54 + CAST( NULL AS SIGNED ) * 43
----
NULL

skipif mysql # not compatible
query I rowsort label-6906
SELECT 18 * + SUM ( 21 ) * - 8 + + + 54 + CAST ( NULL AS INTEGER ) * 43
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6908
SELECT ALL - MIN( + 27 ) - + + ( - 95 ) * 30 + + 28 * + 67 AS col1
----
4699

skipif mysql # not compatible
query I rowsort label-6908
SELECT ALL - MIN ( + 27 ) - + + ( - 95 ) * 30 + + 28 * + 67 AS col1
----
4699

onlyif mysql # aggregate syntax: 
query I rowsort label-6909
SELECT + MAX( ALL - 95 )
----
-95

skipif mysql # not compatible
query I rowsort label-6909
SELECT + MAX ( ALL - 95 )
----
-95

query I rowsort
SELECT - 20 * 43 AS col0
----
-860

query I rowsort
SELECT + 26 * - + 58
----
-1508

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6913
SELECT DISTINCT - 75 - CAST( NULL AS SIGNED ) * - 99
----
NULL

skipif mysql # not compatible
query I rowsort label-6913
SELECT DISTINCT - 75 - CAST ( NULL AS INTEGER ) * - 99
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6914
SELECT + + SUM( 28 ) * - 98 + + 44
----
-2700

skipif mysql # not compatible
query I rowsort label-6914
SELECT + + SUM ( 28 ) * - 98 + + 44
----
-2700

query I rowsort
SELECT DISTINCT 63 * - 85 * NULLIF ( - + 84, 37 ) * - 46
----
-20691720

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6916
SELECT + 6 - + + CASE - MIN( DISTINCT 59 ) WHEN + COUNT( * ) * 59 THEN 27 + 78 * NULLIF ( 36, CAST( 43 AS DECIMAL ) * + 43 ) END * - NULLIF ( + COUNT( * ) * + 66, + 70 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6916
SELECT + 6 - + + CASE - MIN ( DISTINCT 59 ) WHEN + COUNT ( * ) * 59 THEN 27 + 78 * NULLIF ( 36, CAST ( 43 AS REAL ) * + 43 ) END * - NULLIF ( + COUNT ( * ) * + 66, + 70 )
----
NULL

query I rowsort
SELECT - 50 * 3
----
-150

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

query I rowsort
SELECT ALL - COALESCE ( + + 85, + 98 ) AS col0
----
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-6920
SELECT + 64 * + 63 - - + COUNT( * )
----
4033

skipif mysql # not compatible
query I rowsort label-6920
SELECT + 64 * + 63 - - + COUNT ( * )
----
4033

query I rowsort
SELECT + + 12 + - + 42 AS col0
----
-30

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6922
SELECT DISTINCT - CAST( + 58 AS SIGNED )
----
-58

skipif mysql # not compatible
query I rowsort label-6922
SELECT DISTINCT - CAST ( + 58 AS INTEGER )
----
-58

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

skipif mysql # not compatible
query II rowsort label-6923
SELECT 8, - ( + COUNT ( 82 ) ) AS col1
----
8
-1

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6925
SELECT DISTINCT + CASE WHEN NULL IS NOT NULL THEN NULLIF ( 57, - + 52 ) ELSE COUNT( * ) END
----
1

skipif mysql # not compatible
query I rowsort label-6925
SELECT DISTINCT + CASE WHEN NULL IS NOT NULL THEN NULLIF ( 57, - + 52 ) ELSE COUNT ( * ) END
----
1

query I rowsort
SELECT + - 88 + - - 24 + - + 20 - - 66
----
-18

onlyif mysql # DIV for integer division: 
query I rowsort label-6927
SELECT ALL + 77 + - 42 DIV + 92 DIV - 35 DIV - 15
----
77

skipif mysql # not compatible
query I rowsort label-6927
SELECT ALL + 77 + - 42 / + 92 / - 35 / - 15
----
77

query I rowsort
SELECT ALL 97 + 32
----
129

onlyif mysql # aggregate syntax: 
query I rowsort label-6929
SELECT ALL - 85 * - + MAX( + - 65 )
----
-5525

skipif mysql # not compatible
query I rowsort label-6929
SELECT ALL - 85 * - + MAX ( + - 65 )
----
-5525

onlyif mysql # aggregate syntax: 
query II rowsort label-6930
SELECT 4, 27 * + ( + - MAX( + 3 ) ) * + 23 + COUNT( * ) col0
----
4
-1862

skipif mysql # not compatible
query II rowsort label-6930
SELECT 4, 27 * + ( + - MAX ( + 3 ) ) * + 23 + COUNT ( * ) col0
----
4
-1862

onlyif mysql # aggregate syntax: 
query I rowsort label-6931
SELECT DISTINCT 76 / 6 * CASE - + COUNT( * ) WHEN + + 45 / - 42 + + 35 THEN CASE COUNT( * ) WHEN 89 THEN + 61 END * - 7 END + 88
----
NULL

skipif mysql # not compatible
query I rowsort label-6931
SELECT DISTINCT 76 / 6 * CASE - + COUNT ( * ) WHEN + + 45 / - 42 + + 35 THEN CASE COUNT ( * ) WHEN 89 THEN + 61 END * - 7 END + 88
----
NULL

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6933
SELECT 22 DIV 61 + 31 AS col0
----
31

skipif mysql # not compatible
query I rowsort label-6933
SELECT 22 / 61 + 31 AS col0
----
31

query I rowsort
SELECT + 52 + - + 16 AS col2
----
36

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6937
SELECT - MAX( ALL 4 ) DIV + 10 * + 38 * MIN( - 5 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-6937
SELECT - MAX ( ALL 4 ) / + 10 * + 38 * MIN ( - 5 ) AS col0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6938
SELECT ALL CAST( 0 AS SIGNED ) * - 47 + - + 7 - + ( - 39 ) - 43 AS col1
----
-11

skipif mysql # not compatible
query I rowsort label-6938
SELECT ALL CAST ( 0 AS INTEGER ) * - 47 + - + 7 - + ( - 39 ) - 43 AS col1
----
-11

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6940
SELECT DISTINCT + 32 DIV - 68
----
0

skipif mysql # not compatible
query I rowsort label-6940
SELECT DISTINCT + 32 / - 68
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6941
SELECT - 57 / - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6941
SELECT - 57 / - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT - 74 + - - 86 * - 85 col1
----
-7384

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6944
SELECT ALL - COUNT( * ) * + 50 - NULLIF ( - + 45, + 86 ) - + 0 AS col0
----
-5

skipif mysql # not compatible
query I rowsort label-6944
SELECT ALL - COUNT ( * ) * + 50 - NULLIF ( - + 45, + 86 ) - + 0 AS col0
----
-5

onlyif mysql # DIV for integer division: 
query I rowsort label-6945
SELECT - 27 DIV + 24
----
-1

skipif mysql # not compatible
query I rowsort label-6945
SELECT - 27 / + 24
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6946
SELECT ALL + 15 * + - CAST( + - 17 AS SIGNED )
----
255

skipif mysql # not compatible
query I rowsort label-6946
SELECT ALL + 15 * + - CAST ( + - 17 AS INTEGER )
----
255

query I rowsort
SELECT - 38 + - 51 col0
----
-89

query I rowsort
SELECT - 12 * 29 * - 15 + + 87
----
5307

query I rowsort
SELECT + 3 * + 27
----
81

query I rowsort
SELECT NULLIF ( + + 32, + + 81 )
----
32

query I rowsort
SELECT DISTINCT - 46 * + - 38 AS col0
----
1748

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

query I rowsort
SELECT - 77 + 73
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-6954
SELECT ALL - - 33 * + NULLIF ( - 67, + COUNT( * ) + + - 37 ) AS col1
----
-2211

skipif mysql # not compatible
query I rowsort label-6954
SELECT ALL - - 33 * + NULLIF ( - 67, + COUNT ( * ) + + - 37 ) AS col1
----
-2211

query II rowsort
SELECT + - 27 + + 27 AS col0, + 11 - + 69 * + + 28 * + 17 * + 52 + 8 AS col0
----
0
-1707869

onlyif mysql # aggregate syntax: 
query I rowsort label-6956
SELECT - + 58 * - - SUM( 28 ) AS col1
----
-1624

skipif mysql # not compatible
query I rowsort label-6956
SELECT - + 58 * - - SUM ( 28 ) AS col1
----
-1624

query I rowsort
SELECT + + 52 * 55
----
2860

onlyif mysql # DIV for integer division: 
query I rowsort label-6958
SELECT DISTINCT 97 DIV 43
----
2

skipif mysql # not compatible
query I rowsort label-6958
SELECT DISTINCT 97 / 43
----
2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6959
SELECT ALL + 72 + + - COALESCE ( 47, 19 * - CAST( NULL AS SIGNED ) * - + ( 53 ), + 18 ) AS col2
----
25

skipif mysql # not compatible
query I rowsort label-6959
SELECT ALL + 72 + + - COALESCE ( 47, 19 * - CAST ( NULL AS INTEGER ) * - + ( 53 ), + 18 ) AS col2
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-6960
SELECT + COALESCE ( + COUNT( * ), - + 50, + 16, - - 99 * - 87 + - COUNT( * ) ) + 61 AS col1
----
62

skipif mysql # not compatible
query I rowsort label-6960
SELECT + COALESCE ( + COUNT ( * ), - + 50, + 16, - - 99 * - 87 + - COUNT ( * ) ) + 61 AS col1
----
62

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6961
SELECT - 84 * - 19 + CAST( - 66 AS SIGNED ) AS col2
----
1530

skipif mysql # not compatible
query I rowsort label-6961
SELECT - 84 * - 19 + CAST ( - 66 AS INTEGER ) AS col2
----
1530

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6963
SELECT DISTINCT + - NULLIF ( + 19, + COUNT( * ) * + + 24 + 82 ) DIV - ( - 32 ) + + 26
----
26

skipif mysql # not compatible
query I rowsort label-6963
SELECT DISTINCT + - NULLIF ( + 19, + COUNT ( * ) * + + 24 + 82 ) / - ( - 32 ) + + 26
----
26

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6964
SELECT ALL CAST( NULL AS SIGNED ) + - - 58 - + 83 / - 2 + + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-6964
SELECT ALL CAST ( NULL AS INTEGER ) + - - 58 - + 83 / - 2 + + COUNT ( * )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-6965
SELECT DISTINCT 23, 52 / + + CASE 43 WHEN + + 95 * + + COALESCE ( ( 18 ), 54 * + ( + 60 ) + 71 ) + CASE + 69 WHEN - 76 THEN 17 END * - MAX( + CAST( - 10 AS DECIMAL ) / 6 ) THEN NULL WHEN - AVG ( - 55 ) THEN - 21 END * 54 AS col0
----
23
NULL

skipif mysql # not compatible
query II rowsort label-6965
SELECT DISTINCT 23, 52 / + + CASE 43 WHEN + + 95 * + + COALESCE ( ( 18 ), 54 * + ( + 60 ) + 71 ) + CASE + 69 WHEN - 76 THEN 17 END * - MAX ( + CAST ( - 10 AS REAL ) / 6 ) THEN NULL WHEN - AVG ( - 55 ) THEN - 21 END * 54 AS col0
----
23
NULL

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6966
SELECT DISTINCT - 78 + ( + - CAST( CAST( NULL AS DECIMAL ) AS SIGNED ) ) + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6966
SELECT DISTINCT - 78 + ( + - CAST ( CAST ( NULL AS REAL ) AS INTEGER ) ) + CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6967
SELECT + - 51 * + MAX( ALL + 77 ) col1
----
-3927

skipif mysql # not compatible
query I rowsort label-6967
SELECT + - 51 * + MAX ( ALL + 77 ) col1
----
-3927

query II rowsort
SELECT ALL - 45 + + 8, - 24 AS col1
----
-37
-24

onlyif mysql # aggregate syntax: 
query II rowsort label-6969
SELECT + ( 20 ) AS col2, SUM( DISTINCT - + 94 )
----
20
-94

skipif mysql # not compatible
query II rowsort label-6969
SELECT + ( 20 ) AS col2, SUM ( DISTINCT - + 94 )
----
20
-94

query I rowsort
SELECT + NULLIF ( - + 74, - 39 ) - - 19 * + ( - 77 ) col1
----
-1537

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6971
SELECT + CAST( NULL AS SIGNED ) * - - 96 * - COALESCE ( + 35, - + 30 + 71 + + 84 + + 24 * + 1, 38 / 95, + COUNT( * ) + 64 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6971
SELECT + CAST ( NULL AS INTEGER ) * - - 96 * - COALESCE ( + 35, - + 30 + 71 + + 84 + + 24 * + 1, 38 / 95, + COUNT ( * ) + 64 )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6972
SELECT ALL 46 DIV - 10
----
-4

skipif mysql # not compatible
query I rowsort label-6972
SELECT ALL 46 / - 10
----
-4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6973
SELECT + 11 - + 81 + - + 13 + - 22 / + 13 * - 4 + + + 81 + - ( CAST( NULL AS SIGNED ) ) * + 44 * - COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6973
SELECT + 11 - + 81 + - + 13 + - 22 / + 13 * - 4 + + + 81 + - ( CAST ( NULL AS INTEGER ) ) * + 44 * - COUNT ( * ) AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6974
SELECT + 17 * - MAX( DISTINCT 77 ) * - NULLIF ( + 29, - 62 * ( - 34 ) * CAST( + COUNT( 42 ) AS SIGNED ) ) AS col1
----
37961

skipif mysql # not compatible
query I rowsort label-6974
SELECT + 17 * - MAX ( DISTINCT 77 ) * - NULLIF ( + 29, - 62 * ( - 34 ) * CAST ( + COUNT ( 42 ) AS INTEGER ) ) AS col1
----
37961

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

query I rowsort
SELECT + ( - 95 ) + - 0 col1
----
-95

onlyif mysql # aggregate syntax: 
query II rowsort label-6977
SELECT ALL + COUNT( - - 10 ) AS col2, - 88 col0
----
1
-88

skipif mysql # not compatible
query II rowsort label-6977
SELECT ALL + COUNT ( - - 10 ) AS col2, - 88 col0
----
1
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-6978
SELECT ALL 75 - ( + COUNT( * ) ) + - 35
----
39

skipif mysql # not compatible
query I rowsort label-6978
SELECT ALL 75 - ( + COUNT ( * ) ) + - 35
----
39

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6981
SELECT COALESCE ( - 46, + 1 + + NULLIF ( + + 20, + 34 ) - COUNT( * ), - 17 * CAST( NULL AS SIGNED ) ) + 10 AS col0
----
-36

skipif mysql # not compatible
query I rowsort label-6981
SELECT COALESCE ( - 46, + 1 + + NULLIF ( + + 20, + 34 ) - COUNT ( * ), - 17 * CAST ( NULL AS INTEGER ) ) + 10 AS col0
----
-36

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6982
SELECT 41 DIV - 24 * + COUNT( * ) col1
----
-1

skipif mysql # not compatible
query I rowsort label-6982
SELECT 41 / - 24 * + COUNT ( * ) col1
----
-1

query I rowsort
SELECT ( - 6 ) * - 54 AS col2
----
324

onlyif mysql # aggregate syntax: 
query I rowsort label-6984
SELECT ALL - CASE - 55 WHEN - 82 THEN - MAX( ALL + 2 ) * + ( + 0 ) + + 1 WHEN + 76 * + 7 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-6984
SELECT ALL - CASE - 55 WHEN - 82 THEN - MAX ( ALL + 2 ) * + ( + 0 ) + + 1 WHEN + 76 * + 7 THEN NULL END
----
NULL

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

skipif mysql # not compatible
query I rowsort label-6985
SELECT ALL + ( - CAST ( NULL AS INTEGER ) ) / + 7 + - + 28
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6986
SELECT ALL + 36 + - 98 AS col1, 63 + 59 + 50 - - 80 * + COUNT( * ) * - COALESCE ( + 49 + - 2, 3 ) AS col1
----
-62
-3588

skipif mysql # not compatible
query II rowsort label-6986
SELECT ALL + 36 + - 98 AS col1, 63 + 59 + 50 - - 80 * + COUNT ( * ) * - COALESCE ( + 49 + - 2, 3 ) AS col1
----
-62
-3588

onlyif mysql # aggregate syntax: 
query I rowsort label-6987
SELECT SUM( + 88 ) * - COUNT( * ) + - 63 + 92 + + COUNT( * ) AS col2
----
-58

skipif mysql # not compatible
query I rowsort label-6987
SELECT SUM ( + 88 ) * - COUNT ( * ) + - 63 + 92 + + COUNT ( * ) AS col2
----
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-6988
SELECT + ( - + 62 ) * SUM( 20 ) + + 25 AS col1
----
-1215

skipif mysql # not compatible
query I rowsort label-6988
SELECT + ( - + 62 ) * SUM ( 20 ) + + 25 AS col1
----
-1215

onlyif mysql # DIV for integer division: 
query I rowsort label-6989
SELECT 45 * - 76 * - 0 * + 13 - + - 6 DIV + - 45 * + - 31
----
0

skipif mysql # not compatible
query I rowsort label-6989
SELECT 45 * - 76 * - 0 * + 13 - + - 6 / + - 45 * + - 31
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6990
SELECT CASE CASE - 28 WHEN 55 THEN + - COUNT( * ) ELSE NULL END WHEN - 50 * + CAST( - 34 AS SIGNED ) * - 66 THEN - 69 * - 67 WHEN 57 THEN NULL WHEN 9 THEN - AVG ( + ( - 67 ) ) END / 77 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6990
SELECT CASE CASE - 28 WHEN 55 THEN + - COUNT ( * ) ELSE NULL END WHEN - 50 * + CAST ( - 34 AS INTEGER ) * - 66 THEN - 69 * - 67 WHEN 57 THEN NULL WHEN 9 THEN - AVG ( + ( - 67 ) ) END / 77 AS col0
----
NULL

query I rowsort
SELECT 37 + - 64 col1
----
-27

query I rowsort
SELECT 81 * COALESCE ( 66, + 16 ) + - - 88 AS col0
----
5434

onlyif mysql # aggregate syntax: 
query II rowsort label-6993
SELECT ALL - COUNT( * ) + + 32 AS col1, 65
----
31
65

skipif mysql # not compatible
query II rowsort label-6993
SELECT ALL - COUNT ( * ) + + 32 AS col1, 65
----
31
65

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-6994
SELECT DISTINCT ( + + COUNT( * ) ), CASE + - 25 WHEN COUNT( * ) * + 47 THEN NULL WHEN CASE CASE 49 WHEN 82 THEN NULL ELSE COALESCE ( - 63, + 81 * ( - 56 * CAST( 67 AS DECIMAL ) ) ) END WHEN 54 + 22 THEN SUM( DISTINCT 47 ) WHEN 92 THEN NULL END - + COUNT( * ) * 5 THEN NULL WHEN + 23 / - ( + 40 * 74 ) + - COUNT( * ) THEN NULL WHEN 43 * + ( 46 ) THEN 77 + + COUNT( * ) ELSE NULL END * 77 AS col2
----
1
NULL

skipif mysql # not compatible
query II rowsort label-6994
SELECT DISTINCT ( + + COUNT ( * ) ), CASE + - 25 WHEN COUNT ( * ) * + 47 THEN NULL WHEN CASE CASE 49 WHEN 82 THEN NULL ELSE COALESCE ( - 63, + 81 * ( - 56 * CAST ( 67 AS REAL ) ) ) END WHEN 54 + 22 THEN SUM ( DISTINCT 47 ) WHEN 92 THEN NULL END - + COUNT ( * ) * 5 THEN NULL WHEN + 23 / - ( + 40 * 74 ) + - COUNT ( * ) THEN NULL WHEN 43 * + ( 46 ) THEN 77 + + COUNT ( * ) ELSE NULL END * 77 AS col2
----
1
NULL

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

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

query I rowsort
SELECT COALESCE ( + ( - 56 ), - + 52 + 87 ) - + 10
----
-66

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

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

query I rowsort
SELECT ALL + 60 + - - 59 AS col1
----
119

query I rowsort
SELECT + 5 + + 74 AS col2
----
79

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7001
SELECT CASE + + 84 WHEN - 21 + + + COUNT( * ) THEN - 5 * 77 WHEN - 4 * 45 THEN NULL END + + ( COALESCE ( 72, - 13, AVG ( + 42 ) + COUNT( * ) ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-7001
SELECT CASE + + 84 WHEN - 21 + + + COUNT ( * ) THEN - 5 * 77 WHEN - 4 * 45 THEN NULL END + + ( COALESCE ( 72, - 13, AVG ( + 42 ) + COUNT ( * ) ) )
----
NULL

query I rowsort
SELECT 86 * + + ( + 96 ) AS col0
----
8256

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7005
SELECT ALL + - 38 DIV 52 * - + 79 + - SUM( - 73 ) + - CAST( - 11 AS SIGNED )
----
84

skipif mysql # not compatible
query I rowsort label-7005
SELECT ALL + - 38 / 52 * - + 79 + - SUM ( - 73 ) + - CAST ( - 11 AS INTEGER )
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-7006
SELECT 81 + 53 + 79 * - + ( - COUNT( * ) ) + - + 53 * + - NULLIF ( - 45, CASE + 22 WHEN 29 / 70 + AVG ( ALL - 7 - + 1 * 38 ) * - COUNT( * ) THEN NULL ELSE - 81 * CASE - COALESCE ( ( 52 ), 24 ) WHEN 79 THEN - 55 + ( 96 ) WHEN + 93 - + ( 54 ) * 49 THEN NULL END END / - 10 ) * 18
----
-42717

skipif mysql # not compatible
query I rowsort label-7006
SELECT 81 + 53 + 79 * - + ( - COUNT ( * ) ) + - + 53 * + - NULLIF ( - 45, CASE + 22 WHEN 29 / 70 + AVG ( ALL - 7 - + 1 * 38 ) * - COUNT ( * ) THEN NULL ELSE - 81 * CASE - COALESCE ( ( 52 ), 24 ) WHEN 79 THEN - 55 + ( 96 ) WHEN + 93 - + ( 54 ) * 49 THEN NULL END END / - 10 ) * 18
----
-42717

onlyif mysql # aggregate syntax: 
query I rowsort label-7007
SELECT ALL 99 - + 2 * + COALESCE ( - 64, - COUNT( * ) ) AS col0
----
227

skipif mysql # not compatible
query I rowsort label-7007
SELECT ALL 99 - + 2 * + COALESCE ( - 64, - COUNT ( * ) ) AS col0
----
227

query II rowsort
SELECT - 33 AS col2, - 28
----
-33
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-7009
SELECT ALL + 59 * - 45 * COUNT( * ) * - + 62 * 68 * - + 39 AS col0
----
-436545720

skipif mysql # not compatible
query I rowsort label-7009
SELECT ALL + 59 * - 45 * COUNT ( * ) * - + 62 * 68 * - + 39 AS col0
----
-436545720

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

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

query I rowsort
SELECT ALL - 87 * + 99
----
-8613

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-7012
SELECT - 86 DIV - COUNT( * ) + + 18, 60 + + NULLIF ( CAST( NULL AS SIGNED ), - + COALESCE ( - 69, - 81 ) DIV + CAST( NULL AS SIGNED ) + - 82 ) + 47 DIV - 45 AS col2
----
104
NULL

skipif mysql # not compatible
query II rowsort label-7012
SELECT - 86 / - COUNT ( * ) + + 18, 60 + + NULLIF ( CAST ( NULL AS INTEGER ), - + COALESCE ( - 69, - 81 ) / + CAST ( NULL AS INTEGER ) + - 82 ) + 47 / - 45 AS col2
----
104
NULL

query I rowsort
SELECT 22 * + - 77
----
-1694

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

skipif mysql # not compatible
query I rowsort label-7014
SELECT NULLIF ( COUNT ( * ), - COUNT ( * ) ) * 90 AS col2
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-7015
SELECT COUNT( * ) + - + 57 AS col0
----
-56

skipif mysql # not compatible
query I rowsort label-7015
SELECT COUNT ( * ) + - + 57 AS col0
----
-56

query II rowsort
SELECT + 8, - 7 col0
----
8
-7

query I rowsort
SELECT COALESCE ( + - 68, + 22 ) * 83 AS col0
----
-5644

onlyif mysql # aggregate syntax: 
query I rowsort label-7018
SELECT DISTINCT 56 + 60 - COUNT( * ) * - 26 * + - 10 * + - 65 + - + 89
----
16927

skipif mysql # not compatible
query I rowsort label-7018
SELECT DISTINCT 56 + 60 - COUNT ( * ) * - 26 * + - 10 * + - 65 + - + 89
----
16927

query I rowsort
SELECT ALL 79 + + 16 * + 96 AS col0
----
1615

onlyif mysql # aggregate syntax: 
query II rowsort label-7020
SELECT ALL - SUM( DISTINCT + 88 ) * - - 25, + 22 AS col2
----
-2200
22

skipif mysql # not compatible
query II rowsort label-7020
SELECT ALL - SUM ( DISTINCT + 88 ) * - - 25, + 22 AS col2
----
-2200
22

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7022
SELECT - COUNT( - 3 ) + - 89 * 0 + + - 67 * - CAST( NULL AS SIGNED ) + - CAST( - 14 AS DECIMAL ) + + 24
----
NULL

skipif mysql # not compatible
query I rowsort label-7022
SELECT - COUNT ( - 3 ) + - 89 * 0 + + - 67 * - CAST ( NULL AS INTEGER ) + - CAST ( - 14 AS REAL ) + + 24
----
NULL

query I rowsort
SELECT DISTINCT - 63 * - 33
----
2079

onlyif mysql # aggregate syntax: 
query I rowsort label-7024
SELECT ALL 56 + COUNT( * )
----
57

skipif mysql # not compatible
query I rowsort label-7024
SELECT ALL 56 + COUNT ( * )
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-7025
SELECT 99 * COUNT( * ) * 95 + 77 * 1 * - 11
----
8558

skipif mysql # not compatible
query I rowsort label-7025
SELECT 99 * COUNT ( * ) * 95 + 77 * 1 * - 11
----
8558

query II rowsort
SELECT + 56 AS col2, - 55
----
56
-55

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7028
SELECT + - 98 * - 5 * + 58 * + - CAST( NULL AS SIGNED ) + 53 + ( + - 59 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7028
SELECT + - 98 * - 5 * + 58 * + - CAST ( NULL AS INTEGER ) + 53 + ( + - 59 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7029
SELECT DISTINCT - COUNT( * ) + ( - 50 ) col1
----
-51

skipif mysql # not compatible
query I rowsort label-7029
SELECT DISTINCT - COUNT ( * ) + ( - 50 ) col1
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-7030
SELECT DISTINCT 18 * + 46 * - + ( - COALESCE ( 81, - + 76 ) ) * - COUNT( * )
----
-67068

skipif mysql # not compatible
query I rowsort label-7030
SELECT DISTINCT 18 * + 46 * - + ( - COALESCE ( 81, - + 76 ) ) * - COUNT ( * )
----
-67068

query I rowsort
SELECT ALL - + 97 col1
----
-97

query I rowsort
SELECT DISTINCT 40 + 19 AS col1
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-7033
SELECT + COALESCE ( - + COUNT( * ), 26, + - 7 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-7033
SELECT + COALESCE ( - + COUNT ( * ), 26, + - 7 ) AS col1
----
-1

query I rowsort
SELECT 55 * + 3 + + - 65
----
100

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7035
SELECT DISTINCT - - ( + 82 ) * - CASE + - 65 WHEN + 43 + + - AVG ( 53 ) + CAST( + COUNT( * ) AS SIGNED ) - + 43 THEN - ( + 25 ) + - ( 67 ) WHEN + COUNT( * ) THEN NULL END * + 43 + - SUM( - 16 - - 0 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7035
SELECT DISTINCT - - ( + 82 ) * - CASE + - 65 WHEN + 43 + + - AVG ( 53 ) + CAST ( + COUNT ( * ) AS INTEGER ) - + 43 THEN - ( + 25 ) + - ( 67 ) WHEN + COUNT ( * ) THEN NULL END * + 43 + - SUM ( - 16 - - 0 ) AS col2
----
NULL

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

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

query I rowsort
SELECT - 55 * 91
----
-5005

query I rowsort
SELECT - 29 * - + 6 AS col2
----
174

query I rowsort
SELECT - NULLIF ( 46, - 74 * + 57 + 66 )
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-7040
SELECT ALL - - 73 * - ( - 14 ) + - SUM( DISTINCT ( + 84 ) ) AS col2
----
938

skipif mysql # not compatible
query I rowsort label-7040
SELECT ALL - - 73 * - ( - 14 ) + - SUM ( DISTINCT ( + 84 ) ) AS col2
----
938

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7041
SELECT DISTINCT CASE COUNT( * ) WHEN - 61 + 64 + + 60 + + 89 * - 47 / - 32 * CAST( MIN( - 5 ) AS SIGNED ) THEN + 68 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-7041
SELECT DISTINCT CASE COUNT ( * ) WHEN - 61 + 64 + + 60 + + 89 * - 47 / - 32 * CAST ( MIN ( - 5 ) AS INTEGER ) THEN + 68 ELSE NULL END
----
NULL

query I rowsort
SELECT DISTINCT + 73 * 12
----
876

onlyif mysql # aggregate syntax: 
query I rowsort label-7043
SELECT ALL CASE 79 WHEN + - 61 / COUNT( * ) + + 0 + + - 82 THEN 10 - - + 32 - - + 79 WHEN + 6 THEN - NULLIF ( + ( + 50 ), 4 ) - 54 ELSE - SUM( + 98 ) END AS col2
----
-98

skipif mysql # not compatible
query I rowsort label-7043
SELECT ALL CASE 79 WHEN + - 61 / COUNT ( * ) + + 0 + + - 82 THEN 10 - - + 32 - - + 79 WHEN + 6 THEN - NULLIF ( + ( + 50 ), 4 ) - 54 ELSE - SUM ( + 98 ) END AS col2
----
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-7044
SELECT ALL + 55 - + CASE + 34 WHEN - 50 THEN NULL WHEN - MIN( 9 ) THEN NULL WHEN - 64 + - 34 THEN NULL ELSE - + ( CASE 33 WHEN + 25 THEN + COUNT( * ) + - 73 ELSE NULL END ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7044
SELECT ALL + 55 - + CASE + 34 WHEN - 50 THEN NULL WHEN - MIN ( 9 ) THEN NULL WHEN - 64 + - 34 THEN NULL ELSE - + ( CASE 33 WHEN + 25 THEN + COUNT ( * ) + - 73 ELSE NULL END ) END AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7045
SELECT ALL COALESCE ( 24, 17 DIV + + 63 * - + 28 + + CAST( NULL AS SIGNED ) + 28 ) AS col0
----
24

skipif mysql # not compatible
query I rowsort label-7045
SELECT ALL COALESCE ( 24, 17 / + + 63 * - + 28 + + CAST ( NULL AS INTEGER ) + 28 ) AS col0
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-7046
SELECT ALL CASE - - 83 WHEN COUNT( * ) THEN NULL WHEN + 32 + - CASE 20 WHEN + 47 THEN + COUNT( * ) * - ( 97 ) ELSE 7 END THEN 98 - 81 END
----
NULL

skipif mysql # not compatible
query I rowsort label-7046
SELECT ALL CASE - - 83 WHEN COUNT ( * ) THEN NULL WHEN + 32 + - CASE 20 WHEN + 47 THEN + COUNT ( * ) * - ( 97 ) ELSE 7 END THEN 98 - 81 END
----
NULL

query I rowsort
SELECT - 39 * + - 80 AS col2
----
3120

query I rowsort
SELECT ALL CASE - ( + 10 ) WHEN 73 * - 66 THEN - 66 + 23 + - 5 END
----
NULL

query I rowsort
SELECT ALL - 99 * - 30 + 56 + 86 - + 27 + + 97 * 97 * 83 AS col2
----
784032

onlyif mysql # DIV for integer division: 
query I rowsort label-7050
SELECT 29 DIV 9 - + ( + - 8 )
----
11

skipif mysql # not compatible
query I rowsort label-7050
SELECT 29 / 9 - + ( + - 8 )
----
11

onlyif mysql # DIV for integer division: 
query I rowsort label-7051
SELECT + 61 DIV 73
----
0

skipif mysql # not compatible
query I rowsort label-7051
SELECT + 61 / 73
----
0

query I rowsort
SELECT COALESCE ( - 54, + 90, ( - 80 ) )
----
-54

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7053
SELECT ALL - 66 * + - ( + 55 ) + - 22 + CAST( NULL AS SIGNED ) / - MIN( ALL 76 ) + - 92 + COUNT( * ) * + 15 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7053
SELECT ALL - 66 * + - ( + 55 ) + - 22 + CAST ( NULL AS INTEGER ) / - MIN ( ALL 76 ) + - 92 + COUNT ( * ) * + 15 AS col1
----
NULL

query I rowsort
SELECT - NULLIF ( NULLIF ( + ( + 23 ), + + 95 ), - 72 ) AS col2
----
-23

onlyif mysql # DIV for integer division: 
query I rowsort label-7055
SELECT - - 54 DIV - 27
----
-2

skipif mysql # not compatible
query I rowsort label-7055
SELECT - - 54 / - 27
----
-2

onlyif mysql # DIV for integer division: 
query I rowsort label-7056
SELECT + - ( + 67 ) DIV + - 22
----
3

skipif mysql # not compatible
query I rowsort label-7056
SELECT + - ( + 67 ) / + - 22
----
3

query I rowsort
SELECT DISTINCT 1 * - - 71 + + 67
----
138

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

query I rowsort
SELECT ALL - 37 * 9 + ( 3 ) AS col0
----
-330

onlyif mysql # aggregate syntax: 
query I rowsort label-7060
SELECT DISTINCT + - MIN( ALL + 70 )
----
-70

skipif mysql # not compatible
query I rowsort label-7060
SELECT DISTINCT + - MIN ( ALL + 70 )
----
-70

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7061
SELECT ALL CAST( NULL AS SIGNED ) * + + 17 * + NULLIF ( + + 80, + 51 * + 94 ) * ( - - 64 ) - + + 84 + 51 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7061
SELECT ALL CAST ( NULL AS INTEGER ) * + + 17 * + NULLIF ( + + 80, + 51 * + 94 ) * ( - - 64 ) - + + 84 + 51 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7062
SELECT DISTINCT + MAX( ALL - 98 ) AS col2
----
-98

skipif mysql # not compatible
query I rowsort label-7062
SELECT DISTINCT + MAX ( ALL - 98 ) AS col2
----
-98

query I rowsort
SELECT 55 * + - ( - 20 ) + + - ( + 88 ) + + 54 * 56 + - 46 AS col1
----
3990

onlyif mysql # aggregate syntax: 
query I rowsort label-7064
SELECT - NULLIF ( - + 83, - 17 * - ( + COUNT( * ) ) * 11 * - 59 ) + 31
----
114

skipif mysql # not compatible
query I rowsort label-7064
SELECT - NULLIF ( - + 83, - 17 * - ( + COUNT ( * ) ) * 11 * - 59 ) + 31
----
114

query II rowsort
SELECT + 31 * + 15 AS col2, 42 AS col1
----
465
42

query I rowsort
SELECT ALL - 58 * 95 * ( + 72 )
----
-396720

query I rowsort
SELECT + + 47 * + 31 * + 27 AS col0
----
39339

onlyif mysql # aggregate syntax: 
query I rowsort label-7068
SELECT + + 77 + + 85 + + - 98 + + - CASE - COUNT( * ) WHEN - 42 THEN - 13 END / - 11 * + 85
----
NULL

skipif mysql # not compatible
query I rowsort label-7068
SELECT + + 77 + + 85 + + - 98 + + - CASE - COUNT ( * ) WHEN - 42 THEN - 13 END / - 11 * + 85
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7069
SELECT COUNT( * ) * + 87 * + COALESCE ( + ( - 39 ), + - 9 * + + 21, + CAST( NULL AS SIGNED ) * + 12 ) + + 30 DIV 45
----
-3393

skipif mysql # not compatible
query I rowsort label-7069
SELECT COUNT ( * ) * + 87 * + COALESCE ( + ( - 39 ), + - 9 * + + 21, + CAST ( NULL AS INTEGER ) * + 12 ) + + 30 / 45
----
-3393

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7071
SELECT + CAST( - 72 AS SIGNED ) + - COUNT( - ( + 66 ) ) * - 89 * - 73 AS col2
----
-6569

skipif mysql # not compatible
query I rowsort label-7071
SELECT + CAST ( - 72 AS INTEGER ) + - COUNT ( - ( + 66 ) ) * - 89 * - 73 AS col2
----
-6569

query II rowsort
SELECT ALL 76, + 26 + - + 16 col0
----
76
10

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7074
SELECT + CAST( NULL AS SIGNED ) + + - CASE 88 WHEN - COUNT( * ) / - + 7 + - - 81 * - CAST( + - 44 AS SIGNED ) / - COALESCE ( 57, COUNT( * ) ) + + COUNT( * ) * 53 THEN + 23 * SUM( 43 ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7074
SELECT + CAST ( NULL AS INTEGER ) + + - CASE 88 WHEN - COUNT ( * ) / - + 7 + - - 81 * - CAST ( + - 44 AS INTEGER ) / - COALESCE ( 57, COUNT ( * ) ) + + COUNT ( * ) * 53 THEN + 23 * SUM ( 43 ) END AS col1
----
NULL

query I rowsort
SELECT - 52 * + + 25
----
-1300

query I rowsort
SELECT - 10 + + - 18 AS col0
----
-28

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7077
SELECT + COUNT( * ) + + 3 + + ( - - 25 ) * CAST( NULL AS SIGNED ) * + 66 + + MAX( - 60 ) + + MIN( + 18 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7077
SELECT + COUNT ( * ) + + 3 + + ( - - 25 ) * CAST ( NULL AS INTEGER ) * + 66 + + MAX ( - 60 ) + + MIN ( + 18 )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7078
SELECT + 98 + - COUNT( 35 ) + + 4 DIV 93 DIV + - SUM( + 28 ) + - COALESCE ( + 40, + 33, CAST( NULL AS SIGNED ) )
----
57

skipif mysql # not compatible
query I rowsort label-7078
SELECT + 98 + - COUNT ( 35 ) + + 4 / 93 / + - SUM ( + 28 ) + - COALESCE ( + 40, + 33, CAST ( NULL AS INTEGER ) )
----
57

query I rowsort
SELECT ALL + 24 * - 26
----
-624

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7080
SELECT DISTINCT COALESCE ( - + 23, + 6 ) + + NULLIF ( + - 7, - COUNT( CAST( NULL AS DECIMAL ) ) + + 98 )
----
-30

skipif mysql # not compatible
query I rowsort label-7080
SELECT DISTINCT COALESCE ( - + 23, + 6 ) + + NULLIF ( + - 7, - COUNT ( CAST ( NULL AS REAL ) ) + + 98 )
----
-30

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7081
SELECT ALL 80 + - + SUM( ALL 13 ) - + + NULLIF ( - 11, + + NULLIF ( 49, 47 * - 79 ) * - SUM( DISTINCT 46 ) ) DIV COUNT( * )
----
78

skipif mysql # not compatible
query I rowsort label-7081
SELECT ALL 80 + - + SUM ( ALL 13 ) - + + NULLIF ( - 11, + + NULLIF ( 49, 47 * - 79 ) * - SUM ( DISTINCT 46 ) ) / COUNT ( * )
----
78

onlyif mysql # DIV for integer division: 
query I rowsort label-7082
SELECT DISTINCT + 51 + - + 9 + + 79 + 45 + - 43 DIV - 72 AS col0
----
166

skipif mysql # not compatible
query I rowsort label-7082
SELECT DISTINCT + 51 + - + 9 + + 79 + 45 + - 43 / - 72 AS col0
----
166

query I rowsort
SELECT - 68 + - 20
----
-88

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7084
SELECT ALL - NULLIF ( - CASE + NULLIF ( - COALESCE ( + 3, 19 ), + COALESCE ( - + 41, + + MIN( DISTINCT CAST( + 88 AS DECIMAL ) ) / + 98 ) ) WHEN NULLIF ( 62, - 19 ) / 49 THEN + NULLIF ( 69, COALESCE ( - MAX( DISTINCT + 70 ), 42, 77 ) * 78 ) * + 7 END, + ( 30 ) + 31 / - 36 ) * + 78 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7084
SELECT ALL - NULLIF ( - CASE + NULLIF ( - COALESCE ( + 3, 19 ), + COALESCE ( - + 41, + + MIN ( DISTINCT CAST ( + 88 AS REAL ) ) / + 98 ) ) WHEN NULLIF ( 62, - 19 ) / 49 THEN + NULLIF ( 69, COALESCE ( - MAX ( DISTINCT + 70 ), 42, 77 ) * 78 ) * + 7 END, + ( 30 ) + 31 / - 36 ) * + 78 col1
----
NULL

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

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

query I rowsort
SELECT - 44 + 11 AS col1
----
-33

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7087
SELECT - CAST( + COALESCE ( 29, + 63 + - 83 + + 5 ) AS SIGNED )
----
-29

skipif mysql # not compatible
query I rowsort label-7087
SELECT - CAST ( + COALESCE ( 29, + 63 + - 83 + + 5 ) AS INTEGER )
----
-29

onlyif mysql # DIV for integer division: 
query I rowsort label-7088
SELECT ALL - 45 DIV 78 + ( - ( 2 ) )
----
-2

skipif mysql # not compatible
query I rowsort label-7088
SELECT ALL - 45 / 78 + ( - ( 2 ) )
----
-2

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7090
SELECT + SUM( + + 60 )
----
60

skipif mysql # not compatible
query I rowsort label-7090
SELECT + SUM ( + + 60 )
----
60

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7091
SELECT - CAST( NULL AS DECIMAL ) + + 45 - + + 41 * + 59 + + - 81
----
NULL

skipif mysql # not compatible
query I rowsort label-7091
SELECT - CAST ( NULL AS REAL ) + + 45 - + + 41 * + 59 + + - 81
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7092
SELECT ALL - COALESCE ( - ( - COUNT( * ) ), + - 87 ) * - 31 + + 17
----
48

skipif mysql # not compatible
query I rowsort label-7092
SELECT ALL - COALESCE ( - ( - COUNT ( * ) ), + - 87 ) * - 31 + + 17
----
48

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

skipif mysql # not compatible
query I rowsort label-7093
SELECT ALL + - AVG ( DISTINCT + - ( - CAST ( NULL AS INTEGER ) ) )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7094
SELECT DISTINCT - 4 DIV + 6 * 53 - 70 AS col2
----
-70

skipif mysql # not compatible
query I rowsort label-7094
SELECT DISTINCT - 4 / + 6 * 53 - 70 AS col2
----
-70

query I rowsort
SELECT ALL - + 7 * + + 68
----
-476

query I rowsort
SELECT - 91 col0
----
-91

onlyif mysql # aggregate syntax: 
query II rowsort label-7097
SELECT DISTINCT - 20 * - + 79 * - COUNT( * ) AS col1, + MAX( ALL 67 ) AS col2
----
-1580
67

skipif mysql # not compatible
query II rowsort label-7097
SELECT DISTINCT - 20 * - + 79 * - COUNT ( * ) AS col1, + MAX ( ALL 67 ) AS col2
----
-1580
67

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7099
SELECT - + 98 * MAX( - COALESCE ( 88, - - 78, - 72 ) ) + - 75 - + 42 * 52 + + COUNT( * )
----
6366

skipif mysql # not compatible
query I rowsort label-7099
SELECT - + 98 * MAX ( - COALESCE ( 88, - - 78, - 72 ) ) + - 75 - + 42 * 52 + + COUNT ( * )
----
6366

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7100
SELECT + 93 + - - COUNT( ALL - 42 ) DIV + + 89 * - + 63
----
93

skipif mysql # not compatible
query I rowsort label-7100
SELECT + 93 + - - COUNT ( ALL - 42 ) / + + 89 * - + 63
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-7101
SELECT - MAX( 98 ) * + 47 col0
----
-4606

skipif mysql # not compatible
query I rowsort label-7101
SELECT - MAX ( 98 ) * + 47 col0
----
-4606

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

query I rowsort
SELECT 76 * + - ( + 73 ) AS col1
----
-5548

onlyif mysql # aggregate syntax: 
query I rowsort label-7104
SELECT ALL - + NULLIF ( 47, + COUNT( * ) ) AS col1
----
-47

skipif mysql # not compatible
query I rowsort label-7104
SELECT ALL - + NULLIF ( 47, + COUNT ( * ) ) AS col1
----
-47

query I rowsort
SELECT - - 53 AS col0
----
53

query II rowsort
SELECT 39 col1, 55 AS col2
----
39
55

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7107
SELECT 80 * 42 * - + CAST( - 82 AS SIGNED ) AS col2
----
275520

skipif mysql # not compatible
query I rowsort label-7107
SELECT 80 * 42 * - + CAST ( - 82 AS INTEGER ) AS col2
----
275520

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7108
SELECT 16 * 10 / CAST( NULL AS SIGNED ) * 58 * + 83
----
NULL

skipif mysql # not compatible
query I rowsort label-7108
SELECT 16 * 10 / CAST ( NULL AS INTEGER ) * 58 * + 83
----
NULL

query I rowsort
SELECT ALL 40 * - CASE - + COALESCE ( + 70, - 21 ) WHEN + AVG ( 93 ) THEN 28 END AS col1
----
NULL

query I rowsort
SELECT DISTINCT 75 * + 82
----
6150

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

skipif mysql # not compatible
query I rowsort label-7111
SELECT COUNT ( * ) / - 2
----
0

onlyif mysql # aggregate syntax: 
query III rowsort label-7112
SELECT DISTINCT + 83 + 66, 53 * + COUNT( * ) AS col1, MAX( DISTINCT - - 5 ) + - + COALESCE ( - 9, - - 96, - 0 + 37, - 93 ) AS col2
----
149
53
14

skipif mysql # not compatible
query III rowsort label-7112
SELECT DISTINCT + 83 + 66, 53 * + COUNT ( * ) AS col1, MAX ( DISTINCT - - 5 ) + - + COALESCE ( - 9, - - 96, - 0 + 37, - 93 ) AS col2
----
149
53
14

query II rowsort
SELECT ALL - 28 + - 39 AS col0, ( 91 )
----
-67
91

onlyif mysql # DIV for integer division: 
query II rowsort label-7114
SELECT ALL 92 AS col2, + 16 DIV + 29 AS col0
----
92
0

skipif mysql # not compatible
query II rowsort label-7114
SELECT ALL 92 AS col2, + 16 / + 29 AS col0
----
92
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7115
SELECT DISTINCT COUNT( * ) + - 70 * - NULLIF ( 6, + 38 ) AS col0
----
421

skipif mysql # not compatible
query I rowsort label-7115
SELECT DISTINCT COUNT ( * ) + - 70 * - NULLIF ( 6, + 38 ) AS col0
----
421

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7117
SELECT ALL + ( + 71 ) + - CAST( NULL AS SIGNED ) + - 3 * - 48
----
NULL

skipif mysql # not compatible
query I rowsort label-7117
SELECT ALL + ( + 71 ) + - CAST ( NULL AS INTEGER ) + - 3 * - 48
----
NULL

query I rowsort
SELECT 5 + + ( - ( - + 61 ) ) AS col2
----
66

query II rowsort
SELECT - 5, - ( + 56 ) * 21 AS col2
----
-5
-1176

query I rowsort
SELECT DISTINCT 68 + - 78
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-7121
SELECT ALL COALESCE ( - ( + COUNT( * ) ), + - 47 ) + + 70 AS col2
----
69

skipif mysql # not compatible
query I rowsort label-7121
SELECT ALL COALESCE ( - ( + COUNT ( * ) ), + - 47 ) + + 70 AS col2
----
69

query I rowsort
SELECT NULLIF ( 9, + + 54 * - 35 ) * - 4 + + 44 AS col0
----
8

query I rowsort
SELECT 31 - - - 82 col0
----
-51

query I rowsort
SELECT ( + 30 ) + 7 AS col1
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-7125
SELECT - 6 * 90 + - 59 + + - SUM( ALL + ( + - 68 ) ) + + 41 AS col0
----
-490

skipif mysql # not compatible
query I rowsort label-7125
SELECT - 6 * 90 + - 59 + + - SUM ( ALL + ( + - 68 ) ) + + 41 AS col0
----
-490

onlyif mysql # aggregate syntax: 
query I rowsort label-7126
SELECT DISTINCT - COUNT( 79 )
----
-1

skipif mysql # not compatible
query I rowsort label-7126
SELECT DISTINCT - COUNT ( 79 )
----
-1

query I rowsort
SELECT ALL + + ( + 82 ) - + 75 AS col0
----
7

query I rowsort
SELECT ( + + 51 ) * + 27 AS col0
----
1377

query II rowsort
SELECT ALL - - 25 AS col1, - 37 * - - COALESCE ( + 62, + 31 * + - 35, - 92 * 45 * - 69 + - 82 ) * - 30
----
25
68820

onlyif mysql # DIV for integer division: 
query I rowsort label-7130
SELECT ALL + 33 - - 57 + + 12 DIV 31 + + 51
----
141

skipif mysql # not compatible
query I rowsort label-7130
SELECT ALL + 33 - - 57 + + 12 / 31 + + 51
----
141

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7132
SELECT - 96 DIV + ( + 57 ) + 28 + 0 AS col1
----
27

skipif mysql # not compatible
query I rowsort label-7132
SELECT - 96 / + ( + 57 ) + 28 + 0 AS col1
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-7133
SELECT - CASE + 0 WHEN + COUNT( * ) / 23 THEN NULL WHEN + 9 THEN 37 * - + 72 * 45 * + + COALESCE ( - 25, - 66 * CASE 68 WHEN + 76 THEN + 84 * 10 WHEN - ( + 71 ) + 45 THEN - NULLIF ( COUNT( * ), + COUNT( * ) ) WHEN 6 THEN 71 * 68 ELSE NULL END ) END * - 92 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7133
SELECT - CASE + 0 WHEN + COUNT ( * ) / 23 THEN NULL WHEN + 9 THEN 37 * - + 72 * 45 * + + COALESCE ( - 25, - 66 * CASE 68 WHEN + 76 THEN + 84 * 10 WHEN - ( + 71 ) + 45 THEN - NULLIF ( COUNT ( * ), + COUNT ( * ) ) WHEN 6 THEN 71 * 68 ELSE NULL END ) END * - 92 AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7134
SELECT DISTINCT - CAST( ( + - AVG ( DISTINCT - 86 ) ) AS SIGNED ) AS col2
----
-86

skipif mysql # not compatible
query I rowsort label-7134
SELECT DISTINCT - CAST ( ( + - AVG ( DISTINCT - 86 ) ) AS INTEGER ) AS col2
----
-86

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7135
SELECT + 54 AS col2, - NULLIF ( 4, + 44 ) + CAST( NULL AS SIGNED ) AS col0
----
54
NULL

skipif mysql # not compatible
query II rowsort label-7135
SELECT + 54 AS col2, - NULLIF ( 4, + 44 ) + CAST ( NULL AS INTEGER ) AS col0
----
54
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7137
SELECT + COALESCE ( - + 92, + COUNT( * ), + 41 + 60 * NULLIF ( - + 11, - 25 * + COUNT( * ) + + NULLIF ( - COUNT( * ), - 72 ) ) ) col2
----
-92

skipif mysql # not compatible
query I rowsort label-7137
SELECT + COALESCE ( - + 92, + COUNT ( * ), + 41 + 60 * NULLIF ( - + 11, - 25 * + COUNT ( * ) + + NULLIF ( - COUNT ( * ), - 72 ) ) ) col2
----
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-7138
SELECT DISTINCT MIN( DISTINCT + - 59 ) * 3
----
-177

skipif mysql # not compatible
query I rowsort label-7138
SELECT DISTINCT MIN ( DISTINCT + - 59 ) * 3
----
-177

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7139
SELECT + + CAST( NULL AS DECIMAL ) AS col2
----
NULL

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7140
SELECT + 15 DIV - 80
----
0

skipif mysql # not compatible
query I rowsort label-7140
SELECT + 15 / - 80
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7141
SELECT COUNT( 19 ) * - 46
----
-46

skipif mysql # not compatible
query I rowsort label-7141
SELECT COUNT ( 19 ) * - 46
----
-46

query I rowsort
SELECT ALL + 14 + - 3
----
11

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7143
SELECT 87 + 14 + + COALESCE ( + NULLIF ( - 7, - + 91 DIV + + 93 + - MIN( DISTINCT 61 ) * + + 30 DIV + CAST( NULL AS SIGNED ) * + - COUNT( * ) ), 40, + AVG ( ALL 40 ) ) DIV 33
----
101

skipif mysql # not compatible
query I rowsort label-7143
SELECT 87 + 14 + + COALESCE ( + NULLIF ( - 7, - + 91 / + + 93 + - MIN ( DISTINCT 61 ) * + + 30 / + CAST ( NULL AS INTEGER ) * + - COUNT ( * ) ), 40, + AVG ( ALL 40 ) ) / 33
----
101

onlyif mysql # aggregate syntax: 
query II rowsort label-7144
SELECT 25 * - 24 AS col1, + 88 * 2 * + - MIN( - - 14 ) AS col1
----
-600
-2464

skipif mysql # not compatible
query II rowsort label-7144
SELECT 25 * - 24 AS col1, + 88 * 2 * + - MIN ( - - 14 ) AS col1
----
-600
-2464

onlyif mysql # aggregate syntax: 
query I rowsort label-7145
SELECT DISTINCT - MAX( - + 41 ) AS col2
----
41

skipif mysql # not compatible
query I rowsort label-7145
SELECT DISTINCT - MAX ( - + 41 ) AS col2
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-7146
SELECT ALL + ( - ( + 73 ) ) + - + COUNT( * )
----
-74

skipif mysql # not compatible
query I rowsort label-7146
SELECT ALL + ( - ( + 73 ) ) + - + COUNT ( * )
----
-74

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

skipif mysql # not compatible
query II rowsort label-7147
SELECT DISTINCT - COUNT ( * ) * 0 col0, COUNT ( * ) col1
----
0
1

query I rowsort
SELECT 15 + + 17 * + + 99
----
1698

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7149
SELECT ALL COUNT( ALL + 93 ) + - 14 + 45 + - + 15 DIV + 61 AS col2
----
32

skipif mysql # not compatible
query I rowsort label-7149
SELECT ALL COUNT ( ALL + 93 ) + - 14 + 45 + - + 15 / + 61 AS col2
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-7150
SELECT ALL + MIN( DISTINCT + 95 ) + + 7
----
102

skipif mysql # not compatible
query I rowsort label-7150
SELECT ALL + MIN ( DISTINCT + 95 ) + + 7
----
102

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7151
SELECT COALESCE ( - CAST( NULL AS SIGNED ), - 44 ) + 86
----
42

skipif mysql # not compatible
query I rowsort label-7151
SELECT COALESCE ( - CAST ( NULL AS INTEGER ), - 44 ) + 86
----
42

query II rowsort
SELECT 5 * 97 AS col2, 5 AS col1
----
485
5

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

skipif mysql # not compatible
query I rowsort label-7153
SELECT COUNT ( * ) + - SUM ( + + 85 ) AS col1
----
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-7154
SELECT 50 + + MAX( + 77 )
----
127

skipif mysql # not compatible
query I rowsort label-7154
SELECT 50 + + MAX ( + 77 )
----
127

query I rowsort
SELECT ALL 27 + + 31 AS col0
----
58

onlyif mysql # aggregate syntax: 
query II rowsort label-7156
SELECT ALL 21 * + COUNT( * ) AS col2, 23
----
21
23

skipif mysql # not compatible
query II rowsort label-7156
SELECT ALL 21 * + COUNT ( * ) AS col2, 23
----
21
23

query I rowsort
SELECT DISTINCT + 89 * - - 87 AS col0
----
7743

query I rowsort
SELECT ALL - ( - 5 ) - + + ( + 72 ) AS col2
----
-67

query I rowsort
SELECT ALL 73 - + 91 AS col1
----
-18

query I rowsort
SELECT ALL ( + 44 ) * 47 - - + 76 AS col2
----
2144

onlyif mysql # aggregate syntax: 
query II rowsort label-7161
SELECT + 30 + COUNT( * ) col1, - ( 93 ) * + 6 AS col0
----
31
-558

skipif mysql # not compatible
query II rowsort label-7161
SELECT + 30 + COUNT ( * ) col1, - ( 93 ) * + 6 AS col0
----
31
-558

query III rowsort
SELECT - 70 * 88, - 70 * + 46 * + 40 AS col2, + 87 AS col0
----
-6160
-128800
87

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7163
SELECT 44 * + 6 * + + NULLIF ( 74, CAST( NULL AS SIGNED ) ) + ( + - 92 ) * - - ( - 30 ) + - MIN( + - 38 ) * - 46
----
20548

skipif mysql # not compatible
query I rowsort label-7163
SELECT 44 * + 6 * + + NULLIF ( 74, CAST ( NULL AS INTEGER ) ) + ( + - 92 ) * - - ( - 30 ) + - MIN ( + - 38 ) * - 46
----
20548

onlyif mysql # aggregate syntax: 
query I rowsort label-7164
SELECT ALL COUNT( * ) * - - 26 + + 58 - + 64 + + - 2
----
18

skipif mysql # not compatible
query I rowsort label-7164
SELECT ALL COUNT ( * ) * - - 26 + + 58 - + 64 + + - 2
----
18

query I rowsort
SELECT + 6 + 83 + 76
----
165

onlyif mysql # aggregate syntax: 
query I rowsort label-7166
SELECT ALL + - ( + ( + CASE COUNT( * ) WHEN - 34 THEN - 79 + - + 65 * + + 52 * - + ( 94 ) + - 86 ELSE NULL END ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-7166
SELECT ALL + - ( + ( + CASE COUNT ( * ) WHEN - 34 THEN - 79 + - + 65 * + + 52 * - + ( 94 ) + - 86 ELSE NULL END ) )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7167
SELECT DISTINCT 85 DIV + 8 - + 36
----
-26

skipif mysql # not compatible
query I rowsort label-7167
SELECT DISTINCT 85 / + 8 - + 36
----
-26

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7168
SELECT ALL + MAX( DISTINCT + - 3 ) * + CAST( - 66 AS SIGNED )
----
198

skipif mysql # not compatible
query I rowsort label-7168
SELECT ALL + MAX ( DISTINCT + - 3 ) * + CAST ( - 66 AS INTEGER )
----
198

query I rowsort
SELECT ALL + 10 * 28
----
280

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7170
SELECT DISTINCT - COALESCE ( - - 78, - 30 - - 17, + + 64 * + 91 + - 0 + - 24 + + 39 * 80 DIV + 29, - 41 ) * 58 + + COUNT( * ) AS col1
----
-4523

skipif mysql # not compatible
query I rowsort label-7170
SELECT DISTINCT - COALESCE ( - - 78, - 30 - - 17, + + 64 * + 91 + - 0 + - 24 + + 39 * 80 / + 29, - 41 ) * 58 + + COUNT ( * ) AS col1
----
-4523

query II rowsort
SELECT + 86 * 17 * + - 59 + NULLIF ( - + 57, + 68 / + + 20 ) AS col1, - 57 * - 73
----
-86315
4161

onlyif mysql # aggregate syntax: 
query I rowsort label-7172
SELECT - MAX( - + 83 ) + ( - 90 ) + - - 70 * 66 AS col1
----
4613

skipif mysql # not compatible
query I rowsort label-7172
SELECT - MAX ( - + 83 ) + ( - 90 ) + - - 70 * 66 AS col1
----
4613

onlyif mysql # aggregate syntax: 
query I rowsort label-7173
SELECT ALL 35 * - + COALESCE ( 69, - COUNT( * ), - 98 ) + + + COALESCE ( - NULLIF ( 65, - COUNT( * ) * - COALESCE ( + 67, - CASE - 70 WHEN + 16 + 80 THEN 72 * 75 END ) + 87 ), + 58 * 93 ) AS col0
----
-2480

skipif mysql # not compatible
query I rowsort label-7173
SELECT ALL 35 * - + COALESCE ( 69, - COUNT ( * ), - 98 ) + + + COALESCE ( - NULLIF ( 65, - COUNT ( * ) * - COALESCE ( + 67, - CASE - 70 WHEN + 16 + 80 THEN 72 * 75 END ) + 87 ), + 58 * 93 ) AS col0
----
-2480

onlyif mysql # aggregate syntax: 
query I rowsort label-7174
SELECT - MIN( ALL - + 51 ) + 83
----
134

skipif mysql # not compatible
query I rowsort label-7174
SELECT - MIN ( ALL - + 51 ) + 83
----
134

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7175
SELECT ALL - CAST( NULL AS SIGNED ) * 79 * - COUNT( * ) + - 66 + - + 23 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7175
SELECT ALL - CAST ( NULL AS INTEGER ) * 79 * - COUNT ( * ) + - 66 + - + 23 AS col2
----
NULL

query I rowsort
SELECT + + 63 * + 0 * - + 39
----
0

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

query I rowsort
SELECT DISTINCT + 23 * + 36 + 85 AS col2
----
913

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7179
SELECT ALL + ( - + COUNT( * ) ) * COUNT( * ) DIV - + MAX( + NULLIF ( + - 11, - ( 60 ) ) ) + - 4
----
-4

skipif mysql # not compatible
query I rowsort label-7179
SELECT ALL + ( - + COUNT ( * ) ) * COUNT ( * ) / - + MAX ( + NULLIF ( + - 11, - ( 60 ) ) ) + - 4
----
-4

query I rowsort
SELECT DISTINCT + 83 + - - 94
----
177

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7181
SELECT - 57 * MIN( - ( CAST( NULL AS DECIMAL ) ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-7181
SELECT - 57 * MIN ( - ( CAST ( NULL AS REAL ) ) )
----
NULL

query I rowsort
SELECT - 33 - - + 9
----
-24

onlyif mysql # DIV for integer division: 
query I rowsort label-7183
SELECT + 15 DIV + + 43 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-7183
SELECT + 15 / + + 43 AS col1
----
0

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

query II rowsort
SELECT 26 AS col1, 17 * - 12
----
26
-204

query I rowsort
SELECT ALL + ( 69 ) - + 51 AS col2
----
18

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7187
SELECT DISTINCT COALESCE ( 10, + 18 * + 24 * + 5, + 44 DIV - 2 DIV - CAST( + + 32 AS SIGNED ) ) AS col0
----
10

skipif mysql # not compatible
query I rowsort label-7187
SELECT DISTINCT COALESCE ( 10, + 18 * + 24 * + 5, + 44 / - 2 / - CAST ( + + 32 AS INTEGER ) ) AS col0
----
10

query I rowsort
SELECT DISTINCT CASE + 91 WHEN + ( + + 59 ) THEN + - 81 ELSE NULL END col0
----
NULL

query I rowsort
SELECT ALL 73 - 44 AS col1
----
29

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7190
SELECT - 79 DIV - + COUNT( 86 ) AS col0
----
79

skipif mysql # not compatible
query I rowsort label-7190
SELECT - 79 / - + COUNT ( 86 ) AS col0
----
79

onlyif mysql # aggregate syntax: 
query II rowsort label-7191
SELECT DISTINCT COALESCE ( + + COALESCE ( - + ( - 80 ), + COUNT( * ) ), - 33 * - 60, 44 ) AS col1, - 12
----
80
-12

skipif mysql # not compatible
query II rowsort label-7191
SELECT DISTINCT COALESCE ( + + COALESCE ( - + ( - 80 ), + COUNT ( * ) ), - 33 * - 60, 44 ) AS col1, - 12
----
80
-12

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

skipif mysql # not compatible
query I rowsort label-7192
SELECT - 67 * COUNT ( * )
----
-67

query I rowsort
SELECT - 45 + 85
----
40

query II rowsort
SELECT ALL 70, 43 col1
----
70
43

onlyif mysql # aggregate syntax: 
query II rowsort label-7195
SELECT COUNT( * ) AS col1, - 48 * + ( + 37 )
----
1
-1776

skipif mysql # not compatible
query II rowsort label-7195
SELECT COUNT ( * ) AS col1, - 48 * + ( + 37 )
----
1
-1776

query I rowsort
SELECT + - 80 * + 82 col0
----
-6560

query I rowsort
SELECT ALL + 74 * - + 35 AS col0
----
-2590

query I rowsort
SELECT - + NULLIF ( ( + 93 ), + + 74 ) + + 24 + 2
----
-67

query II rowsort
SELECT - 15 col2, 3 AS col1
----
-15
3

query I rowsort
SELECT + - 36 + 31 AS col0
----
-5

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7201
SELECT ALL + COUNT( * ) * - 10 DIV - MAX( DISTINCT + ( + 63 ) ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-7201
SELECT ALL + COUNT ( * ) * - 10 / - MAX ( DISTINCT + ( + 63 ) ) AS col0
----
0

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

skipif mysql # not compatible
query I rowsort label-7202
SELECT DISTINCT SUM ( DISTINCT 28 )
----
28

query II rowsort
SELECT + 16 AS col0, + 88
----
16
88

onlyif mysql # DIV for integer division: 
query I rowsort label-7204
SELECT DISTINCT + 12 DIV - 58 + - + 68 AS col1
----
-68

skipif mysql # not compatible
query I rowsort label-7204
SELECT DISTINCT + 12 / - 58 + - + 68 AS col1
----
-68

query I rowsort
SELECT + 40 * - + 8 + 43
----
-277

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7206
SELECT ALL 95 DIV - CAST( + - 93 AS SIGNED ) + ( - - 97 ) AS col2
----
98

skipif mysql # not compatible
query I rowsort label-7206
SELECT ALL 95 / - CAST ( + - 93 AS INTEGER ) + ( - - 97 ) AS col2
----
98

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7207
SELECT + - ( + CAST( NULL AS SIGNED ) ) * + COUNT( * ) * NULLIF ( - 97, - 49 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7207
SELECT + - ( + CAST ( NULL AS INTEGER ) ) * + COUNT ( * ) * NULLIF ( - 97, - 49 )
----
NULL

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

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

query I rowsort
SELECT + + 18 * 62
----
1116

onlyif mysql # DIV for integer division: 
query I rowsort label-7210
SELECT ALL 81 DIV - 59
----
-1

skipif mysql # not compatible
query I rowsort label-7210
SELECT ALL 81 / - 59
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7211
SELECT ALL + 68 * - - COUNT( - - 49 ) - - MIN( ( - - 75 ) )
----
143

skipif mysql # not compatible
query I rowsort label-7211
SELECT ALL + 68 * - - COUNT ( - - 49 ) - - MIN ( ( - - 75 ) )
----
143

query I rowsort
SELECT CASE 90 WHEN + 69 THEN + ( + ( - - 98 ) ) + 53 * + 87 * - + 6 * - - 27 * - 81 - - + 67 + + 25 * - - 12 END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7213
SELECT - COALESCE ( 2, + COUNT( * ) ) * ( 3 ) AS col2
----
-6

skipif mysql # not compatible
query I rowsort label-7213
SELECT - COALESCE ( 2, + COUNT ( * ) ) * ( 3 ) AS col2
----
-6

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7215
SELECT COUNT( * ) * - - NULLIF ( 32, + 43 * + ( - 84 ) ) + - - AVG ( 22 ) / + 18 - + + CASE - - 17 WHEN - + AVG ( CAST( - 33 AS SIGNED ) ) THEN ( 77 ) / CAST( + CASE + 60 WHEN + ( - ( 34 ) ) THEN - AVG ( DISTINCT + 5 ) ELSE - 19 / + 87 END AS DECIMAL ) WHEN - 73 THEN + CASE - ( + CASE + 70 WHEN - 63 THEN NULL ELSE 21 END ) WHEN NULLIF ( COUNT( * ), + COALESCE ( + ( 64 ), + 89, 17 ) ) THEN NULL WHEN 79 THEN NULLIF ( 57, - ( CASE + 48 WHEN + COUNT( * ) * - COUNT( * ) THEN + ( + 87 ) WHEN + ( + 59 ) THEN NULL END ) - 7 ) * 28 ELSE NULL END WHEN 28 THEN COUNT( * ) ELSE NULL END + - 39 * COALESCE ( - CASE 97 WHEN ( + COUNT( * ) ) + 61 THEN CASE 0 WHEN 56 * + AVG ( 31 ) THEN NULL ELSE 54 END + 1 * + 96 END, 41 / ( 79 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-7215
SELECT COUNT ( * ) * - - NULLIF ( 32, + 43 * + ( - 84 ) ) + - - AVG ( 22 ) / + 18 - + + CASE - - 17 WHEN - + AVG ( CAST ( - 33 AS INTEGER ) ) THEN ( 77 ) / CAST ( + CASE + 60 WHEN + ( - ( 34 ) ) THEN - AVG ( DISTINCT + 5 ) ELSE - 19 / + 87 END AS REAL ) WHEN - 73 THEN + CASE - ( + CASE + 70 WHEN - 63 THEN NULL ELSE 21 END ) WHEN NULLIF ( COUNT ( * ), + COALESCE ( + ( 64 ), + 89, 17 ) ) THEN NULL WHEN 79 THEN NULLIF ( 57, - ( CASE + 48 WHEN + COUNT ( * ) * - COUNT ( * ) THEN + ( + 87 ) WHEN + ( + 59 ) THEN NULL END ) - 7 ) * 28 ELSE NULL END WHEN 28 THEN COUNT ( * ) ELSE NULL END + - 39 * COALESCE ( - CASE 97 WHEN ( + COUNT ( * ) ) + 61 THEN CASE 0 WHEN 56 * + AVG ( 31 ) THEN NULL ELSE 54 END + 1 * + 96 END, 41 / ( 79 ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7216
SELECT ALL COUNT( * ) * + + 43 - - 70 * 43 AS col2
----
3053

skipif mysql # not compatible
query I rowsort label-7216
SELECT ALL COUNT ( * ) * + + 43 - - 70 * 43 AS col2
----
3053

query I rowsort
SELECT - 3 * - 50 AS col2
----
150

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

skipif mysql # not compatible
query I rowsort label-7218
SELECT - 38 * + COUNT ( * ) / - 45
----
0

query I rowsort
SELECT ALL COALESCE ( NULLIF ( - 57, + 15 ), 4 ) AS col0
----
-57

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7220
SELECT - NULLIF ( - 6, - 75 ) + AVG ( ALL + - CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-7220
SELECT - NULLIF ( - 6, - 75 ) + AVG ( ALL + - CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7221
SELECT + 2 * - + CAST( - 81 AS SIGNED )
----
162

skipif mysql # not compatible
query I rowsort label-7221
SELECT + 2 * - + CAST ( - 81 AS INTEGER )
----
162

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7222
SELECT - CASE + 58 WHEN + CAST( NULL AS SIGNED ) * - 18 / + ( + + 3 ) THEN NULL WHEN - - 38 THEN - COUNT( * ) + 15 * + - 73 WHEN + 10 / 97 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-7222
SELECT - CASE + 58 WHEN + CAST ( NULL AS INTEGER ) * - 18 / + ( + + 3 ) THEN NULL WHEN - - 38 THEN - COUNT ( * ) + 15 * + - 73 WHEN + 10 / 97 THEN NULL END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7223
SELECT - + 9 DIV - + ( - + 50 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-7223
SELECT - + 9 / - + ( - + 50 ) AS col0
----
0

query I rowsort
SELECT ALL - 43 + 24 + 5
----
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-7225
SELECT ALL + + CASE 0 WHEN - + AVG ( 3 ) THEN NULL ELSE - - CASE + 68 WHEN 60 THEN + MIN( 10 ) END END + COUNT( DISTINCT 10 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7225
SELECT ALL + + CASE 0 WHEN - + AVG ( 3 ) THEN NULL ELSE - - CASE + 68 WHEN 60 THEN + MIN ( 10 ) END END + COUNT ( DISTINCT 10 )
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7227
SELECT ALL - + 93 + - + COUNT( * )
----
-94

skipif mysql # not compatible
query I rowsort label-7227
SELECT ALL - + 93 + - + COUNT ( * )
----
-94

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7230
SELECT 7 + + CASE CAST( NULL AS SIGNED ) WHEN - - 60 THEN 52 WHEN - 55 THEN + 64 WHEN - 18 + 88 * + - 33 * COALESCE ( - 59, 12 / - 47 * - 66, - 85 * + CAST( NULL AS SIGNED ) ) * 17 + + 41 THEN ( 31 ) * + ( CAST( NULL AS SIGNED ) ) END + ( 14 ) * SUM( DISTINCT - 94 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7230
SELECT 7 + + CASE CAST ( NULL AS INTEGER ) WHEN - - 60 THEN 52 WHEN - 55 THEN + 64 WHEN - 18 + 88 * + - 33 * COALESCE ( - 59, 12 / - 47 * - 66, - 85 * + CAST ( NULL AS INTEGER ) ) * 17 + + 41 THEN ( 31 ) * + ( CAST ( NULL AS INTEGER ) ) END + ( 14 ) * SUM ( DISTINCT - 94 ) AS col0
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7231
SELECT CAST( NULL AS DECIMAL ) * 38 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7231
SELECT CAST ( NULL AS REAL ) * 38 AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7232
SELECT DISTINCT - NULLIF ( - + CAST( 66 AS SIGNED ), 97 ) - + ( + 63 ) - - + 99
----
102

skipif mysql # not compatible
query I rowsort label-7232
SELECT DISTINCT - NULLIF ( - + CAST ( 66 AS INTEGER ), 97 ) - + ( + 63 ) - - + 99
----
102

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

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

query I rowsort
SELECT 15 * - 54
----
-810

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7235
SELECT 21 DIV + 9 * ( - COUNT( * ) ) AS col0
----
-2

skipif mysql # not compatible
query I rowsort label-7235
SELECT 21 / + 9 * ( - COUNT ( * ) ) AS col0
----
-2

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

skipif mysql # not compatible
query I rowsort label-7236
SELECT ALL - SUM ( 42 )
----
-42

query I rowsort
SELECT ALL 98 * - 61
----
-5978

onlyif mysql # aggregate syntax: 
query I rowsort label-7238
SELECT DISTINCT NULLIF ( - 71, + + SUM( 30 ) ) * - - 71 * + + 65
----
-327665

skipif mysql # not compatible
query I rowsort label-7238
SELECT DISTINCT NULLIF ( - 71, + + SUM ( 30 ) ) * - - 71 * + + 65
----
-327665

query I rowsort
SELECT DISTINCT 3 * - - 75
----
225

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

skipif mysql # not compatible
query I rowsort label-7240
SELECT ALL 62 * - CAST ( NULL AS INTEGER ) AS col1
----
NULL

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

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

query II rowsort
SELECT DISTINCT 55 * 45 * 14, 73 AS col0
----
34650
73

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-7244
SELECT - + 96 AS col0, 81 + MIN( DISTINCT 60 )
----
-96
141

skipif mysql # not compatible
query II rowsort label-7244
SELECT - + 96 AS col0, 81 + MIN ( DISTINCT 60 )
----
-96
141

onlyif mysql # DIV for integer division: 
query II rowsort label-7245
SELECT ALL 19 * - 3 + 15 AS col0, + 85 DIV - ( - 13 )
----
-42
6

skipif mysql # not compatible
query II rowsort label-7245
SELECT ALL 19 * - 3 + 15 AS col0, + 85 / - ( - 13 )
----
-42
6

onlyif mysql # aggregate syntax: 
query I rowsort label-7246
SELECT - 59 * - - 86 * - COUNT( ALL + - 27 )
----
5074

skipif mysql # not compatible
query I rowsort label-7246
SELECT - 59 * - - 86 * - COUNT ( ALL + - 27 )
----
5074

query I rowsort
SELECT DISTINCT - 47 + 64 + + 61 + - 98 - + + 85
----
-105

query I rowsort
SELECT ALL 46 + - ( + 18 ) + + 24 + + 53 * 49
----
2649

query I rowsort
SELECT ALL - - 20 + 13
----
33

query I rowsort
SELECT ALL + - 58 + - 26 * + 38
----
-1046

query I rowsort
SELECT DISTINCT 73 * + 31 AS col2
----
2263

query I rowsort
SELECT + 43 + 55 * + 5 + + - 13
----
305

query I rowsort
SELECT 12 * 43 AS col0
----
516

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

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

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

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

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

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

skipif mysql # not compatible
query I rowsort label-7257
SELECT 91 + + 39 / + - COUNT ( * )
----
52

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

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

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

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

query I rowsort
SELECT DISTINCT + - 53 * 69 + - 54 - + 38 - 67 AS col2
----
-3816

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

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7263
SELECT 60 * + COALESCE ( + 85, - SUM( ALL - ( 15 ) ) DIV + 47 ) * + 74 col1
----
377400

skipif mysql # not compatible
query I rowsort label-7263
SELECT 60 * + COALESCE ( + 85, - SUM ( ALL - ( 15 ) ) / + 47 ) * + 74 col1
----
377400

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

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

query II rowsort
SELECT DISTINCT - 73, 55 + + 95 col2
----
-73
150

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

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

skipif mysql # not compatible
query I rowsort label-7267
SELECT ALL 57 * MIN ( - 9 ) AS col2
----
-513

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

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

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

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

query II rowsort
SELECT ALL - 30 AS col1, - 79 AS col0
----
-30
-79

query I rowsort
SELECT 66 - + 30 AS col0
----
36

query I rowsort
SELECT ALL - NULLIF ( - 76, 18 * + 71 * - + 76 * - - 87 ) col2
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-7273
SELECT 40 + - + 46 + + 32 + - - 61 + - - 55 * + 36 * - - COUNT( * )
----
2067

skipif mysql # not compatible
query I rowsort label-7273
SELECT 40 + - + 46 + + 32 + - - 61 + - - 55 * + 36 * - - COUNT ( * )
----
2067

onlyif mysql # aggregate syntax: 
query I rowsort label-7274
SELECT MAX( + + 18 ) * COUNT( * ) * - ( - 5 ) * + 31 - 25 + - - 60 * + + 85 + - 88
----
7777

skipif mysql # not compatible
query I rowsort label-7274
SELECT MAX ( + + 18 ) * COUNT ( * ) * - ( - 5 ) * + 31 - 25 + - - 60 * + + 85 + - 88
----
7777

query II rowsort
SELECT + 57, + 19 * - 60 AS col1
----
57
-1140

query II rowsort
SELECT DISTINCT - 17 AS col2, + 51 + + 46
----
-17
97

onlyif mysql # DIV for integer division: 
query I rowsort label-7277
SELECT + ( - - 77 ) DIV - 48 col2
----
-1

skipif mysql # not compatible
query I rowsort label-7277
SELECT + ( - - 77 ) / - 48 col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7278
SELECT ALL 8 * + + 48 * + COUNT( * ) * + 4 * + - 59
----
-90624

skipif mysql # not compatible
query I rowsort label-7278
SELECT ALL 8 * + + 48 * + COUNT ( * ) * + 4 * + - 59
----
-90624

query I rowsort
SELECT ALL - 18 + - 49 + + 72 AS col2
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-7280
SELECT + MIN( + 23 ) + - 99 AS col2
----
-76

skipif mysql # not compatible
query I rowsort label-7280
SELECT + MIN ( + 23 ) + - 99 AS col2
----
-76

query I rowsort
SELECT ALL + 43 + - + 39
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-7282
SELECT ALL + 26 * - MIN( DISTINCT - - 19 ) AS col1
----
-494

skipif mysql # not compatible
query I rowsort label-7282
SELECT ALL + 26 * - MIN ( DISTINCT - - 19 ) AS col1
----
-494

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7283
SELECT ALL - 62 + - + 12 + 95 + + 30 + - 27 * NULLIF ( - 71, + CASE ( - 15 ) WHEN + + ( - - COUNT( * ) ) * + ( - 67 ) THEN - 70 + 34 WHEN 42 * ( + ( + COUNT( * ) ) ) THEN NULL WHEN 80 THEN 75 + 87 END ) DIV 3
----
690

skipif mysql # not compatible
query I rowsort label-7283
SELECT ALL - 62 + - + 12 + 95 + + 30 + - 27 * NULLIF ( - 71, + CASE ( - 15 ) WHEN + + ( - - COUNT ( * ) ) * + ( - 67 ) THEN - 70 + 34 WHEN 42 * ( + ( + COUNT ( * ) ) ) THEN NULL WHEN 80 THEN 75 + 87 END ) / 3
----
690

query I rowsort
SELECT + 11 + + - 87 + - 15 col1
----
-91

query I rowsort
SELECT + 50 * - - 55 AS col2
----
2750

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

query I rowsort
SELECT DISTINCT 38 * + - 58 col0
----
-2204

onlyif mysql # aggregate syntax: 
query I rowsort label-7288
SELECT DISTINCT MAX( - 2 ) AS col1
----
-2

skipif mysql # not compatible
query I rowsort label-7288
SELECT DISTINCT MAX ( - 2 ) AS col1
----
-2

query I rowsort
SELECT ALL + 41 - 42
----
-1

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

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

query I rowsort
SELECT DISTINCT 65 - 78 - - - 29
----
-42

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

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

query I rowsort
SELECT - + 81 * + 64 AS col0
----
-5184

onlyif mysql # DIV for integer division: 
query I rowsort label-7294
SELECT ALL 83 DIV - - 93 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-7294
SELECT ALL 83 / - - 93 AS col2
----
0

query I rowsort
SELECT + 52 * - - 22
----
1144

onlyif mysql # aggregate syntax: 
query II rowsort label-7296
SELECT + 34 + + - COUNT( DISTINCT - ( + NULLIF ( - 53, - 17 ) ) ) + + 29 col0, - 6 AS col0
----
62
-6

skipif mysql # not compatible
query II rowsort label-7296
SELECT + 34 + + - COUNT ( DISTINCT - ( + NULLIF ( - 53, - 17 ) ) ) + + 29 col0, - 6 AS col0
----
62
-6

onlyif mysql # DIV for integer division: 
query I rowsort label-7297
SELECT + 93 DIV - - 85 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-7297
SELECT + 93 / - - 85 AS col0
----
1

query I rowsort
SELECT - CASE + - 47 WHEN 94 THEN NULL WHEN + 21 * 85 THEN - 86 + + - 40 - 87 + - + 16 END * - ( + 0 ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7299
SELECT + 10 + - + 58 * + - 49, - COUNT( * ) col1
----
2852
-1

skipif mysql # not compatible
query II rowsort label-7299
SELECT + 10 + - + 58 * + - 49, - COUNT ( * ) col1
----
2852
-1

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7301
SELECT DISTINCT ( + - 32 ) * - 86 + + MIN( ALL + CAST( NULL AS SIGNED ) ) * - + 81
----
NULL

skipif mysql # not compatible
query I rowsort label-7301
SELECT DISTINCT ( + - 32 ) * - 86 + + MIN ( ALL + CAST ( NULL AS INTEGER ) ) * - + 81
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7302
SELECT ALL + 75 DIV + 5
----
15

skipif mysql # not compatible
query I rowsort label-7302
SELECT ALL + 75 / + 5
----
15

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7303
SELECT + COUNT( * ) * + COUNT( * ) + - + COALESCE ( 73, + + CASE - 57 WHEN + CAST( AVG ( DISTINCT - + NULLIF ( + + 25, + 85 ) ) AS SIGNED ) THEN 41 WHEN + COALESCE ( + + COUNT( * ), + - 17 ) * + COALESCE ( + - ( 8 ), 73 ) * 11 THEN NULL END * - 86 ) + COALESCE ( - COUNT( * ), + 79 + 20 )
----
-73

skipif mysql # not compatible
query I rowsort label-7303
SELECT + COUNT ( * ) * + COUNT ( * ) + - + COALESCE ( 73, + + CASE - 57 WHEN + CAST ( AVG ( DISTINCT - + NULLIF ( + + 25, + 85 ) ) AS INTEGER ) THEN 41 WHEN + COALESCE ( + + COUNT ( * ), + - 17 ) * + COALESCE ( + - ( 8 ), 73 ) * 11 THEN NULL END * - 86 ) + COALESCE ( - COUNT ( * ), + 79 + 20 )
----
-73

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7304
SELECT + COUNT( * ) DIV + COALESCE ( - 16, - + 97 DIV - 49 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-7304
SELECT + COUNT ( * ) / + COALESCE ( - 16, - + 97 / - 49 ) AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7305
SELECT ALL COUNT( * ) * + 53 * - - 10 + 31 AS col0
----
561

skipif mysql # not compatible
query I rowsort label-7305
SELECT ALL COUNT ( * ) * + 53 * - - 10 + 31 AS col0
----
561

query I rowsort
SELECT NULLIF ( 12, 14 + - + 48 )
----
12

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7307
SELECT + 29 * 91 + - CAST( + - CAST( NULL AS DECIMAL ) AS SIGNED ) + 68 + 41 * + + 59 * - 40 * + 88 * + 39 + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-7307
SELECT + 29 * 91 + - CAST ( + - CAST ( NULL AS REAL ) AS INTEGER ) + 68 + 41 * + + 59 * - 40 * + 88 * + 39 + COUNT ( * )
----
NULL

query I rowsort
SELECT ALL 42 * - 64 + - 59 AS col2
----
-2747

onlyif mysql # aggregate syntax: 
query I rowsort label-7309
SELECT NULLIF ( - 7, + - COUNT( * ) ) col0
----
-7

skipif mysql # not compatible
query I rowsort label-7309
SELECT NULLIF ( - 7, + - COUNT ( * ) ) col0
----
-7

query II rowsort
SELECT ALL + 85 * - + 32 * 41 AS col2, - 99 AS col1
----
-111520
-99

query I rowsort
SELECT - CASE + 71 WHEN 73 THEN + + NULLIF ( - ( + 50 ), + 40 ) + 86 * + - 98 END * 52
----
NULL

query I rowsort
SELECT ALL 79 * - 70 + + 65
----
-5465

query II rowsort
SELECT ALL + - 87 * - 22 AS col2, - 68 + 29
----
1914
-39

query I rowsort
SELECT - 68 * + - 74 * + + 74 AS col2
----
372368

onlyif mysql # aggregate syntax: 
query I rowsort label-7315
SELECT ALL + 52 * - 38 + + 18 * - - ( - 89 ) + COUNT( * ) * 55 + 74
----
-3449

skipif mysql # not compatible
query I rowsort label-7315
SELECT ALL + 52 * - 38 + + 18 * - - ( - 89 ) + COUNT ( * ) * 55 + 74
----
-3449

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7316
SELECT ALL - - MAX( DISTINCT - 18 ) * 39 - + CAST( 19 AS SIGNED )
----
-721

skipif mysql # not compatible
query I rowsort label-7316
SELECT ALL - - MAX ( DISTINCT - 18 ) * 39 - + CAST ( 19 AS INTEGER )
----
-721

query I rowsort
SELECT + - 20 * - + 68 + - NULLIF ( - - 69, + + 78 ) * - - 62
----
-2918

onlyif mysql # DIV for integer division: 
query I rowsort label-7318
SELECT ALL - COALESCE ( + + 68, - + 1 ) DIV - 1 AS col0
----
68

skipif mysql # not compatible
query I rowsort label-7318
SELECT ALL - COALESCE ( + + 68, - + 1 ) / - 1 AS col0
----
68

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7319
SELECT - + 51 - - 35 + + MAX( DISTINCT 94 ) DIV - 41
----
-18

skipif mysql # not compatible
query I rowsort label-7319
SELECT - + 51 - - 35 + + MAX ( DISTINCT 94 ) / - 41
----
-18

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7320
SELECT ALL + 70 DIV - + 74 * + COUNT( * ) + 73 AS col1
----
73

skipif mysql # not compatible
query I rowsort label-7320
SELECT ALL + 70 / - + 74 * + COUNT ( * ) + 73 AS col1
----
73

query I rowsort
SELECT DISTINCT NULLIF ( - 4, + 50 ) AS col0
----
-4

query I rowsort
SELECT DISTINCT ( 99 ) * + 50 AS col1
----
4950

query I rowsort
SELECT ALL + 90 * + 46
----
4140

query I rowsort
SELECT - 28 + - 28
----
-56

onlyif mysql # DIV for integer division: 
query I rowsort label-7325
SELECT - ( - 49 ) * COALESCE ( + CASE + 25 WHEN + 83 THEN + - 98 + + + 26 * 68 DIV - 12 WHEN 56 THEN NULL END, - 91 )
----
-4459

skipif mysql # not compatible
query I rowsort label-7325
SELECT - ( - 49 ) * COALESCE ( + CASE + 25 WHEN + 83 THEN + - 98 + + + 26 * 68 / - 12 WHEN 56 THEN NULL END, - 91 )
----
-4459

onlyif mysql # aggregate syntax: 
query II rowsort label-7326
SELECT ALL 81 * - 34 AS col0, COUNT( * )
----
-2754
1

skipif mysql # not compatible
query II rowsort label-7326
SELECT ALL 81 * - 34 AS col0, COUNT ( * )
----
-2754
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7327
SELECT + 50 * + 36 * + - 5 DIV - COUNT( * ) + 77 + + COALESCE ( + 44, - + 4 ) + + - 17 * + 75 AS col2
----
7846

skipif mysql # not compatible
query I rowsort label-7327
SELECT + 50 * + 36 * + - 5 / - COUNT ( * ) + 77 + + COALESCE ( + 44, - + 4 ) + + - 17 * + 75 AS col2
----
7846

onlyif mysql # aggregate syntax: 
query I rowsort label-7328
SELECT + - 18 * - COALESCE ( - 62, - - 12, + COUNT( * ) )
----
-1116

skipif mysql # not compatible
query I rowsort label-7328
SELECT + - 18 * - COALESCE ( - 62, - - 12, + COUNT ( * ) )
----
-1116

onlyif mysql # aggregate syntax: 
query I rowsort label-7329
SELECT + + NULLIF ( 50, - AVG ( + 3 ) ) + + 89 + - - 77 * - + COUNT( + 74 )
----
62

skipif mysql # not compatible
query I rowsort label-7329
SELECT + + NULLIF ( 50, - AVG ( + 3 ) ) + + 89 + - - 77 * - + COUNT ( + 74 )
----
62

onlyif mysql # aggregate syntax: 
query II rowsort label-7330
SELECT ALL 20 AS col2, COUNT( * ) + - 70 AS col2
----
20
-69

skipif mysql # not compatible
query II rowsort label-7330
SELECT ALL 20 AS col2, COUNT ( * ) + - 70 AS col2
----
20
-69

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7331
SELECT + SUM( DISTINCT + - 34 ) * - + CAST( - 84 AS SIGNED ) AS col0
----
-2856

skipif mysql # not compatible
query I rowsort label-7331
SELECT + SUM ( DISTINCT + - 34 ) * - + CAST ( - 84 AS INTEGER ) AS col0
----
-2856

query I rowsort
SELECT ALL ( + + 90 ) * + 3 * + + 76 * + + 33
----
677160

query I rowsort
SELECT ALL + 89 * - 91 AS col0
----
-8099

onlyif mysql # aggregate syntax: 
query I rowsort label-7334
SELECT + 51 * - - NULLIF ( + 48, + 52 ) * - MIN( + - 33 ) - - - COUNT( * ) col2
----
80783

skipif mysql # not compatible
query I rowsort label-7334
SELECT + 51 * - - NULLIF ( + 48, + 52 ) * - MIN ( + - 33 ) - - - COUNT ( * ) col2
----
80783

query I rowsort
SELECT + ( - 26 ) * + + 59
----
-1534

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7336
SELECT DISTINCT CAST( - 46 AS SIGNED ) DIV - 25 + + 69 + - + 91 AS col0
----
-21

skipif mysql # not compatible
query I rowsort label-7336
SELECT DISTINCT CAST ( - 46 AS INTEGER ) / - 25 + + 69 + - + 91 AS col0
----
-21

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7337
SELECT ALL 63 DIV + - 44 + 89 + + COUNT( - + CAST( NULL AS SIGNED ) ) + COALESCE ( + MAX( - 11 ), + - 66 DIV 56 + + + 67 ) AS col0
----
77

skipif mysql # not compatible
query I rowsort label-7337
SELECT ALL 63 / + - 44 + 89 + + COUNT ( - + CAST ( NULL AS INTEGER ) ) + COALESCE ( + MAX ( - 11 ), + - 66 / 56 + + + 67 ) AS col0
----
77

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

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

query I rowsort
SELECT DISTINCT - 71 * - 2 AS col0
----
142

onlyif mysql # aggregate syntax: 
query I rowsort label-7340
SELECT ALL + 17 + - SUM( - 6 ) * + COUNT( * ) + + 80 * + 19
----
1543

skipif mysql # not compatible
query I rowsort label-7340
SELECT ALL + 17 + - SUM ( - 6 ) * + COUNT ( * ) + + 80 * + 19
----
1543

query I rowsort
SELECT ALL 3 + - - 94 + - 23 AS col1
----
74

query I rowsort
SELECT DISTINCT + 99 + + 59 AS col1
----
158

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7344
SELECT DISTINCT 97 * - SUM( + 23 ) * + 83 * - 66 AS col2
----
12221418

skipif mysql # not compatible
query I rowsort label-7344
SELECT DISTINCT 97 * - SUM ( + 23 ) * + 83 * - 66 AS col2
----
12221418

onlyif mysql # aggregate syntax: 
query II rowsort label-7345
SELECT ALL + MAX( DISTINCT + 0 ) + + 27 AS col2, MIN( DISTINCT 48 )
----
27
48

skipif mysql # not compatible
query II rowsort label-7345
SELECT ALL + MAX ( DISTINCT + 0 ) + + 27 AS col2, MIN ( DISTINCT 48 )
----
27
48

query I rowsort
SELECT 91 - 28 AS col1
----
63

query I rowsort
SELECT 94 * 34
----
3196

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

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

skipif mysql # not compatible
query I rowsort label-7349
SELECT MAX ( DISTINCT - 34 )
----
-34

onlyif mysql # aggregate syntax: 
query II rowsort label-7350
SELECT ALL 42 AS col1, + 45 + COUNT( * ) + + 45 * - 98 - - 88 + 80 * 2 AS col1
----
42
-4116

skipif mysql # not compatible
query II rowsort label-7350
SELECT ALL 42 AS col1, + 45 + COUNT ( * ) + + 45 * - 98 - - 88 + 80 * 2 AS col1
----
42
-4116

query I rowsort
SELECT ALL + + 42 * + + ( + 95 ) + - - 14
----
4004

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7352
SELECT ALL 81 AS col2, + COUNT( * ) DIV + 1 - + - 70
----
81
71

skipif mysql # not compatible
query II rowsort label-7352
SELECT ALL 81 AS col2, + COUNT ( * ) / + 1 - + - 70
----
81
71

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7353
SELECT DISTINCT - + NULLIF ( CAST( - 40 AS SIGNED ), - - 6 ) * + 2 + + + SUM( ALL - 9 )
----
71

skipif mysql # not compatible
query I rowsort label-7353
SELECT DISTINCT - + NULLIF ( CAST ( - 40 AS INTEGER ), - - 6 ) * + 2 + + + SUM ( ALL - 9 )
----
71

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7354
SELECT DISTINCT + COALESCE ( + + COUNT( * ), + 59 * SUM( DISTINCT CAST( NULL AS SIGNED ) ), + 98 )
----
1

skipif mysql # not compatible
query I rowsort label-7354
SELECT DISTINCT + COALESCE ( + + COUNT ( * ), + 59 * SUM ( DISTINCT CAST ( NULL AS INTEGER ) ), + 98 )
----
1

query II rowsort
SELECT ALL 65 AS col2, + 63 * - + NULLIF ( + 81, - + NULLIF ( + 45, + + 70 ) ) AS col0
----
65
-5103

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7356
SELECT + CAST( NULL AS SIGNED ) / + 62 * 55 AS col0, - CAST( - CASE 65 WHEN + SUM( 32 ) THEN 65 WHEN CASE - + 46 WHEN - 95 THEN - 47 + + 54 ELSE NULL END / ( 47 ) THEN NULL END AS SIGNED ) AS col2
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-7356
SELECT + CAST ( NULL AS INTEGER ) / + 62 * 55 AS col0, - CAST ( - CASE 65 WHEN + SUM ( 32 ) THEN 65 WHEN CASE - + 46 WHEN - 95 THEN - 47 + + 54 ELSE NULL END / ( 47 ) THEN NULL END AS INTEGER ) AS col2
----
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7357
SELECT + 9 + - 32 DIV - 58 * + + 66 AS col2
----
9

skipif mysql # not compatible
query I rowsort label-7357
SELECT + 9 + - 32 / - 58 * + + 66 AS col2
----
9

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

query I rowsort
SELECT 76 + 38 * + 34 + 33 AS col1
----
1401

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7361
SELECT 40 DIV - + 40
----
-1

skipif mysql # not compatible
query I rowsort label-7361
SELECT 40 / - + 40
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7362
SELECT DISTINCT 99 + - COUNT( * ) * 32 - COUNT( * ) - - 80 * + - 87
----
-6894

skipif mysql # not compatible
query I rowsort label-7362
SELECT DISTINCT 99 + - COUNT ( * ) * 32 - COUNT ( * ) - - 80 * + - 87
----
-6894

onlyif mysql # DIV for integer division: 
query II rowsort label-7363
SELECT DISTINCT - 2 DIV + + 59 col1, 2 - + 77 col2
----
0
-75

skipif mysql # not compatible
query II rowsort label-7363
SELECT DISTINCT - 2 / + + 59 col1, 2 - + 77 col2
----
0
-75

query I rowsort
SELECT ALL + ( - ( + ( + 88 ) ) ) + - + 21
----
-109

query I rowsort
SELECT ALL 34 + - ( 1 ) AS col2
----
33

onlyif mysql # aggregate syntax: 
query II rowsort label-7366
SELECT 66 + - COUNT( * ) col0, + 25 * + 55
----
65
1375

skipif mysql # not compatible
query II rowsort label-7366
SELECT 66 + - COUNT ( * ) col0, + 25 * + 55
----
65
1375

query II rowsort
SELECT DISTINCT - 75 + 11 + - + 47 * 32 AS col0, - 13
----
-1568
-13

query I rowsort
SELECT ( - + 44 ) + 58 AS col1
----
14

query I rowsort
SELECT ALL 39 + + 17
----
56

query I rowsort
SELECT 56 + - ( 28 )
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-7371
SELECT DISTINCT - MIN( DISTINCT - + 74 ) AS col0
----
74

skipif mysql # not compatible
query I rowsort label-7371
SELECT DISTINCT - MIN ( DISTINCT - + 74 ) AS col0
----
74

query I rowsort
SELECT DISTINCT 50 + 82 AS col0
----
132

onlyif mysql # aggregate syntax: 
query I rowsort label-7373
SELECT ALL 85 + - + 25 + - COUNT( * ) col1
----
59

skipif mysql # not compatible
query I rowsort label-7373
SELECT ALL 85 + - + 25 + - COUNT ( * ) col1
----
59

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7374
SELECT ( - 26 ) * COUNT( * ) + - 46 + 6 + + CAST( - ( - + 44 ) AS SIGNED ) + 15 + + 33 * + - COUNT( + ( + 56 ) ) * + 91 + - 7 AS col2, 75 * + 15 + + 20 AS col2
----
-3017
1145

skipif mysql # not compatible
query II rowsort label-7374
SELECT ( - 26 ) * COUNT ( * ) + - 46 + 6 + + CAST ( - ( - + 44 ) AS INTEGER ) + 15 + + 33 * + - COUNT ( + ( + 56 ) ) * + 91 + - 7 AS col2, 75 * + 15 + + 20 AS col2
----
-3017
1145

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7375
SELECT DISTINCT 79 * 38 * + 17 * MAX( + CAST( - 45 AS SIGNED ) )
----
-2296530

skipif mysql # not compatible
query I rowsort label-7375
SELECT DISTINCT 79 * 38 * + 17 * MAX ( + CAST ( - 45 AS INTEGER ) )
----
-2296530

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7376
SELECT - 71 DIV COALESCE ( + - 15, - - 4 ) * - + ( MIN( ( + 98 ) ) ) + + 69 AS col2
----
-323

skipif mysql # not compatible
query I rowsort label-7376
SELECT - 71 / COALESCE ( + - 15, - - 4 ) * - + ( MIN ( ( + 98 ) ) ) + + 69 AS col2
----
-323

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7377
SELECT ALL 49 - - CAST( 97 AS SIGNED )
----
146

skipif mysql # not compatible
query I rowsort label-7377
SELECT ALL 49 - - CAST ( 97 AS INTEGER )
----
146

query I rowsort
SELECT ALL + 64 * - + 30
----
-1920

query I rowsort
SELECT 73 * + 48 - ( + 85 )
----
3419

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

query I rowsort
SELECT DISTINCT - - 42 col2
----
42

onlyif mysql # aggregate syntax: 
query II rowsort label-7382
SELECT ALL 47 * 70 col0, - COUNT( DISTINCT + 42 ) - 48 + 7 - - + 5 + - - 92 * - + 14 * - + CASE - + 25 WHEN NULLIF ( - - ( 18 ), - COUNT( * ) ) + + 74 THEN ( + - 94 ) ELSE NULL END AS col1
----
3290
NULL

skipif mysql # not compatible
query II rowsort label-7382
SELECT ALL 47 * 70 col0, - COUNT ( DISTINCT + 42 ) - 48 + 7 - - + 5 + - - 92 * - + 14 * - + CASE - + 25 WHEN NULLIF ( - - ( 18 ), - COUNT ( * ) ) + + 74 THEN ( + - 94 ) ELSE NULL END AS col1
----
3290
NULL

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7384
SELECT - COALESCE ( ( - - 86 ), - 98 - + - COUNT( * ) * - - 25, - + 41 ) * - 84 + + CAST( NULL AS SIGNED ) + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7384
SELECT - COALESCE ( ( - - 86 ), - 98 - + - COUNT ( * ) * - - 25, - + 41 ) * - 84 + + CAST ( NULL AS INTEGER ) + - CAST ( NULL AS INTEGER )
----
NULL

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

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

query I rowsort
SELECT - 48 col0
----
-48

query I rowsort
SELECT ALL - + COALESCE ( - 96, 83, + 43 * 89 * + - ( - 35 ), - 22 )
----
96

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7389
SELECT ALL + 88 DIV - COUNT( * ) AS col1
----
-88

skipif mysql # not compatible
query I rowsort label-7389
SELECT ALL + 88 / - COUNT ( * ) AS col1
----
-88

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query II rowsort label-7390
SELECT 12 DIV + 6 * - COUNT( * ) * + CAST( NULL AS DECIMAL ) AS col0, + MAX( DISTINCT - 35 ) + - ( COUNT( * ) ) DIV + + 43
----
NULL
-35

skipif mysql # not compatible
query II rowsort label-7390
SELECT 12 / + 6 * - COUNT ( * ) * + CAST ( NULL AS REAL ) AS col0, + MAX ( DISTINCT - 35 ) + - ( COUNT ( * ) ) / + + 43
----
NULL
-35

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

skipif mysql # not compatible
query I rowsort label-7391
SELECT DISTINCT + + COUNT ( * ) / - 6
----
0

query I rowsort
SELECT - 31 * 57 - - 76 AS col2
----
-1691

query I rowsort
SELECT 60 - - ( + 0 ) AS col0
----
60

query I rowsort
SELECT ALL - ( 33 ) + + 81 AS col2
----
48

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7395
SELECT ALL + 61 + - - 28 + CAST( NULL AS SIGNED ) * + 62
----
NULL

skipif mysql # not compatible
query I rowsort label-7395
SELECT ALL + 61 + - - 28 + CAST ( NULL AS INTEGER ) * + 62
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7396
SELECT - 72 AS col1, COUNT( ALL + - 44 ) AS col2
----
-72
1

skipif mysql # not compatible
query II rowsort label-7396
SELECT - 72 AS col1, COUNT ( ALL + - 44 ) AS col2
----
-72
1

query I rowsort
SELECT 69 - - 87
----
156

query I rowsort
SELECT ALL - 89 * - - 53 * + + 90
----
-424530

onlyif mysql # aggregate syntax: 
query II rowsort label-7399
SELECT COUNT( DISTINCT COALESCE ( NULLIF ( 19, + 48 ), + 60 + - 64 ) ) - + 88 + - - 20 + + - COUNT( * ), COALESCE ( - - 13, - - 51 + 60 ) AS col0
----
-68
13

skipif mysql # not compatible
query II rowsort label-7399
SELECT COUNT ( DISTINCT COALESCE ( NULLIF ( 19, + 48 ), + 60 + - 64 ) ) - + 88 + - - 20 + + - COUNT ( * ), COALESCE ( - - 13, - - 51 + 60 ) AS col0
----
-68
13

query II rowsort
SELECT 13 AS col2, - 37
----
13
-37

query I rowsort
SELECT - 80 + 18
----
-62

onlyif mysql # DIV for integer division: 
query I rowsort label-7402
SELECT DISTINCT + 99 + + - 37 DIV + 7 AS col2
----
94

skipif mysql # not compatible
query I rowsort label-7402
SELECT DISTINCT + 99 + + - 37 / + 7 AS col2
----
94

query I rowsort
SELECT ALL 44 * + 15
----
660

onlyif mysql # aggregate syntax: 
query I rowsort label-7404
SELECT - COUNT( DISTINCT + 0 ) * 71 * - - 66 + + 34 * + 39
----
-3360

skipif mysql # not compatible
query I rowsort label-7404
SELECT - COUNT ( DISTINCT + 0 ) * 71 * - - 66 + + 34 * + 39
----
-3360

onlyif mysql # DIV for integer division: 
query I rowsort label-7405
SELECT ALL + 54 DIV + + 31 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-7405
SELECT ALL + 54 / + + 31 AS col1
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7406
SELECT ALL COUNT( * ) * + + 58 * - 11 * + + 96 * ( - - CAST( NULL AS SIGNED ) ) / + - 53 * - - 13 + - + 81 + 16 * - 53 + - + COUNT( * ) - 93 / + 93 * 93 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7406
SELECT ALL COUNT ( * ) * + + 58 * - 11 * + + 96 * ( - - CAST ( NULL AS INTEGER ) ) / + - 53 * - - 13 + - + 81 + 16 * - 53 + - + COUNT ( * ) - 93 / + 93 * 93 AS col2
----
NULL

query I rowsort
SELECT - COALESCE ( - 53, - + 87 ) * + - 71
----
-3763

onlyif mysql # aggregate syntax: 
query I rowsort label-7408
SELECT - COALESCE ( 59, - 85 ) - - COUNT( * ) AS col2
----
-58

skipif mysql # not compatible
query I rowsort label-7408
SELECT - COALESCE ( 59, - 85 ) - - COUNT ( * ) AS col2
----
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-7409
SELECT CASE - COUNT( * ) WHEN + - COUNT( * ) THEN + 71 END AS col2
----
71

skipif mysql # not compatible
query I rowsort label-7409
SELECT CASE - COUNT ( * ) WHEN + - COUNT ( * ) THEN + 71 END AS col2
----
71

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7411
SELECT ALL + 3 * MAX( + 15 ) - - 71 AS col1
----
116

skipif mysql # not compatible
query I rowsort label-7411
SELECT ALL + 3 * MAX ( + 15 ) - - 71 AS col1
----
116

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

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

query II rowsort
SELECT DISTINCT + 98 AS col0, 2 AS col2
----
98
2

query I rowsort
SELECT + + 72 - 35 AS col0
----
37

onlyif mysql # aggregate syntax: 
query II rowsort label-7416
SELECT + + COUNT( * ) * MAX( DISTINCT - - 90 ) + - 73 * + 28 col0, - 48 AS col0
----
-1954
-48

skipif mysql # not compatible
query II rowsort label-7416
SELECT + + COUNT ( * ) * MAX ( DISTINCT - - 90 ) + - 73 * + 28 col0, - 48 AS col0
----
-1954
-48

query I rowsort
SELECT + - 97 + 18
----
-79

query II rowsort
SELECT ALL + 47, 3 AS col2
----
47
3

query I rowsort
SELECT ALL + + 24
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-7420
SELECT + COUNT( * ) + NULLIF ( + 8, - 6 ) - + + 90 - 47 * - 99 AS col0
----
4572

skipif mysql # not compatible
query I rowsort label-7420
SELECT + COUNT ( * ) + NULLIF ( + 8, - 6 ) - + + 90 - 47 * - 99 AS col0
----
4572

query I rowsort
SELECT + 77 * - 90 AS col2
----
-6930

query I rowsort
SELECT ALL + 52 * 68 + + 56 * 41 + + COALESCE ( 95, + 16, ( - 33 ) ) AS col2
----
5927

onlyif mysql # aggregate syntax: 
query I rowsort label-7423
SELECT + COUNT( * ) + - 2 * - 27 col2
----
55

skipif mysql # not compatible
query I rowsort label-7423
SELECT + COUNT ( * ) + - 2 * - 27 col2
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-7424
SELECT ALL + + 3 * - MAX( DISTINCT 2 ) + + 41 AS col1
----
35

skipif mysql # not compatible
query I rowsort label-7424
SELECT ALL + + 3 * - MAX ( DISTINCT 2 ) + + 41 AS col1
----
35

query I rowsort
SELECT - 4 * + 89 * ( - - 48 ) + 90 + + 15
----
-16983

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7426
SELECT DISTINCT 4 * - COUNT( * ) * - COUNT( * ) DIV + + 58
----
0

skipif mysql # not compatible
query I rowsort label-7426
SELECT DISTINCT 4 * - COUNT ( * ) * - COUNT ( * ) / + + 58
----
0

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

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

query I rowsort
SELECT DISTINCT 31 + - - 39
----
70

onlyif mysql # DIV for integer division: 
query I rowsort label-7429
SELECT + 11 DIV 74
----
0

skipif mysql # not compatible
query I rowsort label-7429
SELECT + 11 / 74
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7430
SELECT - COALESCE ( CAST( NULL AS SIGNED ), - 14 + 98 - + CAST( NULL AS SIGNED ) / + 86 + + 26 ) + - CAST( - 41 AS SIGNED ) + - COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7430
SELECT - COALESCE ( CAST ( NULL AS INTEGER ), - 14 + 98 - + CAST ( NULL AS INTEGER ) / + 86 + + 26 ) + - CAST ( - 41 AS INTEGER ) + - COUNT ( * ) AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7431
SELECT - CASE 35 WHEN - CAST( + NULLIF ( - 63, CASE - 82 WHEN + 13 * 34 * + - 36 THEN - ( - 44 ) + + 7 END ) AS SIGNED ) + + COUNT( * ) * - 88 + - COUNT( * ) THEN + 1 / 57 * + + 69 END, 13 AS col0
----
NULL
13

skipif mysql # not compatible
query II rowsort label-7431
SELECT - CASE 35 WHEN - CAST ( + NULLIF ( - 63, CASE - 82 WHEN + 13 * 34 * + - 36 THEN - ( - 44 ) + + 7 END ) AS INTEGER ) + + COUNT ( * ) * - 88 + - COUNT ( * ) THEN + 1 / 57 * + + 69 END, 13 AS col0
----
NULL
13

onlyif mysql # DIV for integer division: 
query I rowsort label-7432
SELECT DISTINCT + 39 DIV + + 57 * 12
----
0

skipif mysql # not compatible
query I rowsort label-7432
SELECT DISTINCT + 39 / + + 57 * 12
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7433
SELECT + 57 * - 55 AS col0, CAST( NULL AS SIGNED ) * 23 AS col2
----
-3135
NULL

skipif mysql # not compatible
query II rowsort label-7433
SELECT + 57 * - 55 AS col0, CAST ( NULL AS INTEGER ) * 23 AS col2
----
-3135
NULL

query I rowsort
SELECT ALL 63 - 98 * + 78
----
-7581

query I rowsort
SELECT ALL - 58 * + 53 AS col0
----
-3074

onlyif mysql # aggregate syntax: 
query I rowsort label-7436
SELECT - MAX( DISTINCT + 28 ) + + COUNT( * ) AS col2
----
-27

skipif mysql # not compatible
query I rowsort label-7436
SELECT - MAX ( DISTINCT + 28 ) + + COUNT ( * ) AS col2
----
-27

query I rowsort
SELECT ALL + 95 - - - 23
----
72

query I rowsort
SELECT DISTINCT - 40 * - COALESCE ( - 48, 0 )
----
-1920

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7440
SELECT DISTINCT + 13 - + 6 + + NULLIF ( 9, + COUNT( * ) * 78 * - + CAST( NULL AS SIGNED ) * + 9 )
----
16

skipif mysql # not compatible
query I rowsort label-7440
SELECT DISTINCT + 13 - + 6 + + NULLIF ( 9, + COUNT ( * ) * 78 * - + CAST ( NULL AS INTEGER ) * + 9 )
----
16

onlyif mysql # aggregate syntax: 
query II rowsort label-7441
SELECT 91, NULLIF ( 67, + - 57 * + COUNT( * ) + + + 95 + + + 33 ) AS col1
----
91
67

skipif mysql # not compatible
query II rowsort label-7441
SELECT 91, NULLIF ( 67, + - 57 * + COUNT ( * ) + + + 95 + + + 33 ) AS col1
----
91
67

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7442
SELECT - 44 + COALESCE ( + 80, + + MIN( - ( + 83 ) ), + - 91, + - COUNT( * ) * + + 43 + - - 40 + + - 97 DIV + - COUNT( * ) ) AS col1
----
36

skipif mysql # not compatible
query I rowsort label-7442
SELECT - 44 + COALESCE ( + 80, + + MIN ( - ( + 83 ) ), + - 91, + - COUNT ( * ) * + + 43 + - - 40 + + - 97 / + - COUNT ( * ) ) AS col1
----
36

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7443
SELECT DISTINCT + 50 * - ( + + COUNT( * ) ) DIV + + 98 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-7443
SELECT DISTINCT + 50 * - ( + + COUNT ( * ) ) / + + 98 AS col0
----
0

query I rowsort
SELECT ALL NULLIF ( - - 16, - 8 )
----
16

onlyif mysql # aggregate syntax: 
query II rowsort label-7445
SELECT DISTINCT + COUNT( * ) * + ( - 56 ) * - NULLIF ( - + 87, - COUNT( * ) * - + 26 + - 42 * + 52 ) + 59 * COUNT( * ) * - + 22 AS col0, 25
----
-6170
25

skipif mysql # not compatible
query II rowsort label-7445
SELECT DISTINCT + COUNT ( * ) * + ( - 56 ) * - NULLIF ( - + 87, - COUNT ( * ) * - + 26 + - 42 * + 52 ) + 59 * COUNT ( * ) * - + 22 AS col0, 25
----
-6170
25

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7446
SELECT - 96 * - CAST( + - 57 AS SIGNED ) AS col0
----
-5472

skipif mysql # not compatible
query I rowsort label-7446
SELECT - 96 * - CAST ( + - 57 AS INTEGER ) AS col0
----
-5472

onlyif mysql # aggregate syntax: 
query II rowsort label-7447
SELECT ALL ( COUNT( * ) ) AS col1, + 79 + + 12 * + COALESCE ( 59, + 94 * - - ( - 10 ) * COUNT( * ) ) col1
----
1
787

skipif mysql # not compatible
query II rowsort label-7447
SELECT ALL ( COUNT ( * ) ) AS col1, + 79 + + 12 * + COALESCE ( 59, + 94 * - - ( - 10 ) * COUNT ( * ) ) col1
----
1
787

onlyif mysql # aggregate syntax: 
query I rowsort label-7448
SELECT - COALESCE ( - COUNT( * ), + 80 + - 70 * 85 ) + + 61 + - - COUNT( * )
----
63

skipif mysql # not compatible
query I rowsort label-7448
SELECT - COALESCE ( - COUNT ( * ), + 80 + - 70 * 85 ) + + 61 + - - COUNT ( * )
----
63

query I rowsort
SELECT - 67 - + - 99 + - + 17 AS col0
----
15

query I rowsort
SELECT DISTINCT + ( - 27 ) AS col2
----
-27

query II rowsort
SELECT ALL + 62 AS col2, - 79
----
62
-79

onlyif mysql # DIV for integer division: 
query I rowsort label-7452
SELECT ALL + 98 DIV - 94 + + 4
----
3

skipif mysql # not compatible
query I rowsort label-7452
SELECT ALL + 98 / - 94 + + 4
----
3

query I rowsort
SELECT - - CASE - - 0 WHEN + 53 + + 64 + ( - 81 ) THEN NULL ELSE - + ( - + 65 ) END * + 27 + 83 + 98
----
1936

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-7455
SELECT DISTINCT + - 91 AS col0, 66 * - - COUNT( * ) AS col0
----
-91
66

skipif mysql # not compatible
query II rowsort label-7455
SELECT DISTINCT + - 91 AS col0, 66 * - - COUNT ( * ) AS col0
----
-91
66

query I rowsort
SELECT - 65 * - 38 col0
----
2470

onlyif mysql # aggregate syntax: 
query II rowsort label-7457
SELECT ALL + - 35 * + COUNT( * ) AS col2, MAX( DISTINCT 4 ) * - 37 AS col1
----
-35
-148

skipif mysql # not compatible
query II rowsort label-7457
SELECT ALL + - 35 * + COUNT ( * ) AS col2, MAX ( DISTINCT 4 ) * - 37 AS col1
----
-35
-148

query I rowsort
SELECT + 48 + - 36
----
12

query I rowsort
SELECT + NULLIF ( + - 29, - 87 ) AS col0
----
-29

query II rowsort
SELECT DISTINCT - + 23 * 17 AS col0, 33 AS col1
----
-391
33

onlyif mysql # DIV for integer division: 
query I rowsort label-7461
SELECT ALL + CASE - 50 WHEN - 2 + + 43 THEN + 56 WHEN + 76 DIV 45 THEN 74 ELSE 62 END DIV + 72 + 74 + - - 91 * + 57 col2
----
5261

skipif mysql # not compatible
query I rowsort label-7461
SELECT ALL + CASE - 50 WHEN - 2 + + 43 THEN + 56 WHEN + 76 / 45 THEN 74 ELSE 62 END / + 72 + 74 + - - 91 * + 57 col2
----
5261

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

skipif mysql # not compatible
query I rowsort label-7462
SELECT ALL - + COUNT ( * ) / + 36 + + 81
----
81

query I rowsort
SELECT ALL - 2 * - 54 * + 24 AS col0
----
2592

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

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

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

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

query I rowsort
SELECT DISTINCT + + ( + - 6 ) * + 62 AS col0
----
-372

onlyif mysql # aggregate syntax: 
query I rowsort label-7467
SELECT ALL + - NULLIF ( 18, - 2 * - + 95 ) * + - 25 + - COUNT( * ) col0
----
449

skipif mysql # not compatible
query I rowsort label-7467
SELECT ALL + - NULLIF ( 18, - 2 * - + 95 ) * + - 25 + - COUNT ( * ) col0
----
449

query II rowsort
SELECT + 28 AS col1, - 96
----
28
-96

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

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

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

query I rowsort
SELECT - 94 + 1 * - 54 AS col0
----
-148

onlyif mysql # aggregate syntax: 
query II rowsort label-7473
SELECT - 29 AS col2, NULLIF ( COALESCE ( + - 75, 46 * + + COUNT( * ) * MIN( DISTINCT - 18 ) + + - 12 ), - 45 * + 75 * + + 70 )
----
-29
-75

skipif mysql # not compatible
query II rowsort label-7473
SELECT - 29 AS col2, NULLIF ( COALESCE ( + - 75, 46 * + + COUNT ( * ) * MIN ( DISTINCT - 18 ) + + - 12 ), - 45 * + 75 * + + 70 )
----
-29
-75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7474
SELECT CASE WHEN NOT 72 IS NULL THEN + + 12 ELSE - COUNT( * ) END DIV ( - NULLIF ( + CAST( - 62 AS SIGNED ), - - SUM( DISTINCT - 91 ) + 18 ) ) - + - 20
----
20

skipif mysql # not compatible
query I rowsort label-7474
SELECT CASE WHEN NOT 72 IS NULL THEN + + 12 ELSE - COUNT ( * ) END / ( - NULLIF ( + CAST ( - 62 AS INTEGER ), - - SUM ( DISTINCT - 91 ) + 18 ) ) - + - 20
----
20

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7475
SELECT ALL 16 * + - 73 AS col2, + 62 DIV 73 + + + COUNT( * )
----
-1168
1

skipif mysql # not compatible
query II rowsort label-7475
SELECT ALL 16 * + - 73 AS col2, + 62 / 73 + + + COUNT ( * )
----
-1168
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7476
SELECT ALL 75 - + + 24 + + COUNT( * ) - 91 + + 12 * + - 6 col2
----
-111

skipif mysql # not compatible
query I rowsort label-7476
SELECT ALL 75 - + + 24 + + COUNT ( * ) - 91 + + 12 * + - 6 col2
----
-111

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7477
SELECT ALL MAX( ALL 62 ) * 31 * + SUM( 97 ) - - - 77 DIV + 96 * - 63 col1
----
186434

skipif mysql # not compatible
query I rowsort label-7477
SELECT ALL MAX ( ALL 62 ) * 31 * + SUM ( 97 ) - - - 77 / + 96 * - 63 col1
----
186434

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7478
SELECT ( 84 ) * - ( CAST( + - COUNT( * ) AS SIGNED ) ) AS col1
----
84

skipif mysql # not compatible
query I rowsort label-7478
SELECT ( 84 ) * - ( CAST ( + - COUNT ( * ) AS INTEGER ) ) AS col1
----
84

query I rowsort
SELECT ALL 80 * - + 4 AS col0
----
-320

query I rowsort
SELECT ALL 15 * - 8 AS col0
----
-120

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7481
SELECT DISTINCT 74 - COUNT( * ) * - 2 DIV 58
----
74

skipif mysql # not compatible
query I rowsort label-7481
SELECT DISTINCT 74 - COUNT ( * ) * - 2 / 58
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-7482
SELECT 68 + 41 * COUNT( * )
----
109

skipif mysql # not compatible
query I rowsort label-7482
SELECT 68 + 41 * COUNT ( * )
----
109

query I rowsort
SELECT 90 * + 85 col2
----
7650

onlyif mysql # aggregate syntax: 
query I rowsort label-7484
SELECT 3 + + - 54 + MIN( ALL + 25 ) AS col0
----
-26

skipif mysql # not compatible
query I rowsort label-7484
SELECT 3 + + - 54 + MIN ( ALL + 25 ) AS col0
----
-26

query I rowsort
SELECT DISTINCT + 10 * + 66 * + 83
----
54780

onlyif mysql # DIV for integer division: 
query I rowsort label-7486
SELECT - 96 * COALESCE ( + 21, + 40 * + 68 ) DIV - 60 AS col1
----
33

skipif mysql # not compatible
query I rowsort label-7486
SELECT - 96 * COALESCE ( + 21, + 40 * + 68 ) / - 60 AS col1
----
33

onlyif mysql # aggregate syntax: 
query II rowsort label-7487
SELECT DISTINCT + COUNT( * ) * + + 91, 99 AS col2
----
91
99

skipif mysql # not compatible
query II rowsort label-7487
SELECT DISTINCT + COUNT ( * ) * + + 91, 99 AS col2
----
91
99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7488
SELECT - COUNT( + CAST( - CAST( + + 90 AS SIGNED ) AS SIGNED ) ) * CASE 36 WHEN - 72 THEN NULLIF ( 4, + 42 ) WHEN - - 33 THEN - 12 END * 93 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7488
SELECT - COUNT ( + CAST ( - CAST ( + + 90 AS INTEGER ) AS INTEGER ) ) * CASE 36 WHEN - 72 THEN NULLIF ( 4, + 42 ) WHEN - - 33 THEN - 12 END * 93 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7489
SELECT CASE - + CAST( NULL AS SIGNED ) WHEN + 86 THEN NULL ELSE + + 66 END * + 60 * COALESCE ( - 76, + + COUNT( * ), 15 ) * + 75 + - 72 AS col2
----
-22572072

skipif mysql # not compatible
query I rowsort label-7489
SELECT CASE - + CAST ( NULL AS INTEGER ) WHEN + 86 THEN NULL ELSE + + 66 END * + 60 * COALESCE ( - 76, + + COUNT ( * ), 15 ) * + 75 + - 72 AS col2
----
-22572072

query II rowsort
SELECT ALL + - 8 + - 59 AS col1, - 68
----
-67
-68

query I rowsort
SELECT + 72 + - 41 AS col0
----
31

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7492
SELECT - CAST( NULL AS SIGNED ) * COALESCE ( - 9, + 15, COALESCE ( 9, - + 0 / - - 40 / + 97 + - 24 + - 54 ) * MIN( DISTINCT - 0 ) * + 47 ) * - 40 + + ( - 23 ) + + + 85
----
NULL

skipif mysql # not compatible
query I rowsort label-7492
SELECT - CAST ( NULL AS INTEGER ) * COALESCE ( - 9, + 15, COALESCE ( 9, - + 0 / - - 40 / + 97 + - 24 + - 54 ) * MIN ( DISTINCT - 0 ) * + 47 ) * - 40 + + ( - 23 ) + + + 85
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7493
SELECT ALL + 9 + + 76 + - MIN( ALL + 23 )
----
62

skipif mysql # not compatible
query I rowsort label-7493
SELECT ALL + 9 + + 76 + - MIN ( ALL + 23 )
----
62

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7494
SELECT - 12 + - + 56 + + 12 + 3 * + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7494
SELECT - 12 + - + 56 + + 12 + 3 * + CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7495
SELECT ALL - + COUNT( * ) + - NULLIF ( + + 2, + ( + 22 ) ) AS col2
----
-3

skipif mysql # not compatible
query I rowsort label-7495
SELECT ALL - + COUNT ( * ) + - NULLIF ( + + 2, + ( + 22 ) ) AS col2
----
-3

query I rowsort
SELECT ALL 65 + - 32 + - - 65 AS col1
----
98

onlyif mysql # DIV for integer division: 
query I rowsort label-7497
SELECT ALL - 48 DIV - 43 + ( + 27 ) * + + NULLIF ( + NULLIF ( + 28, - 55 + + 20 ), - 75 ) + - + 93 col2
----
664

skipif mysql # not compatible
query I rowsort label-7497
SELECT ALL - 48 / - 43 + ( + 27 ) * + + NULLIF ( + NULLIF ( + 28, - 55 + + 20 ), - 75 ) + - + 93 col2
----
664

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

skipif mysql # not compatible
query I rowsort label-7498
SELECT + COUNT ( * ) * - 27 + - COUNT ( * ) + - COUNT ( * ) / - COUNT ( * ) + MIN ( - - CAST ( NULL AS INTEGER ) ) col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7499
SELECT + NULLIF ( CAST( NULL AS SIGNED ), + 30 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7499
SELECT + NULLIF ( CAST ( NULL AS INTEGER ), + 30 ) AS col1
----
NULL

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

onlyif mysql # aggregate syntax: 
query II rowsort label-7501
SELECT ALL - 99 - - + 11 + 94 AS col0, + 38 * - - COUNT( * ) AS col0
----
6
38

skipif mysql # not compatible
query II rowsort label-7501
SELECT ALL - 99 - - + 11 + 94 AS col0, + 38 * - - COUNT ( * ) AS col0
----
6
38

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7502
SELECT + COUNT( * ) + + CAST( + 51 AS SIGNED )
----
52

skipif mysql # not compatible
query I rowsort label-7502
SELECT + COUNT ( * ) + + CAST ( + 51 AS INTEGER )
----
52

onlyif mysql # aggregate syntax: 
query II rowsort label-7503
SELECT + 71 * - + 8, - COUNT( * ) AS col2
----
-568
-1

skipif mysql # not compatible
query II rowsort label-7503
SELECT + 71 * - + 8, - COUNT ( * ) AS col2
----
-568
-1

query I rowsort
SELECT ALL + 67 * + 59
----
3953

query I rowsort
SELECT 59 + - + 32 col1
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-7506
SELECT DISTINCT - COALESCE ( - - COALESCE ( - + 88, CASE - CASE + + ( + COALESCE ( 4, 33 + - 11 + + 17, + 73 ) ) WHEN + + 51 THEN NULL WHEN - COUNT( * ) * + - 21 * 97 * - 98 THEN COUNT( * ) * - ( 0 ) - - 86 END WHEN + 31 THEN + 42 * + 37 END * 36 ), 17 ) * - 23
----
-2024

skipif mysql # not compatible
query I rowsort label-7506
SELECT DISTINCT - COALESCE ( - - COALESCE ( - + 88, CASE - CASE + + ( + COALESCE ( 4, 33 + - 11 + + 17, + 73 ) ) WHEN + + 51 THEN NULL WHEN - COUNT ( * ) * + - 21 * 97 * - 98 THEN COUNT ( * ) * - ( 0 ) - - 86 END WHEN + 31 THEN + 42 * + 37 END * 36 ), 17 ) * - 23
----
-2024

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7507
SELECT DISTINCT + 85 * 35 DIV COUNT( * ) * + + COUNT( * ) AS col2
----
2975

skipif mysql # not compatible
query I rowsort label-7507
SELECT DISTINCT + 85 * 35 / COUNT ( * ) * + + COUNT ( * ) AS col2
----
2975

query II rowsort
SELECT + 26 AS col0, + 12
----
26
12

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7510
SELECT DISTINCT MAX( ALL + 11 ) AS col0
----
11

skipif mysql # not compatible
query I rowsort label-7510
SELECT DISTINCT MAX ( ALL + 11 ) AS col0
----
11

query I rowsort
SELECT ( - 70 ) + + 84 * 40 AS col2
----
3290

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7512
SELECT ( + 53 ) * - + 68 * - 19 + ( CAST( + COUNT( - 73 ) AS SIGNED ) ) + + + 46
----
68523

skipif mysql # not compatible
query I rowsort label-7512
SELECT ( + 53 ) * - + 68 * - 19 + ( CAST ( + COUNT ( - 73 ) AS INTEGER ) ) + + + 46
----
68523

onlyif mysql # aggregate syntax: 
query I rowsort label-7513
SELECT COUNT( * ) + + 45 - 42 col2
----
4

skipif mysql # not compatible
query I rowsort label-7513
SELECT COUNT ( * ) + + 45 - 42 col2
----
4

query II rowsort
SELECT 45, - 65 col2
----
45
-65

query II rowsort
SELECT 53, - 51 AS col1
----
53
-51

query I rowsort
SELECT ALL 79 * - - 11 AS col2
----
869

onlyif mysql # aggregate syntax: 
query II rowsort label-7517
SELECT - 57, - 85 + + COUNT( * ) + - - 20 * + + COUNT( * ) - 12 AS col1
----
-57
-76

skipif mysql # not compatible
query II rowsort label-7517
SELECT - 57, - 85 + + COUNT ( * ) + - - 20 * + + COUNT ( * ) - 12 AS col1
----
-57
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-7518
SELECT ALL CASE 13 WHEN AVG ( DISTINCT - 98 ) THEN - 33 ELSE ( - 20 ) * - 60 END + + - ( - + COUNT( - 26 ) ) + 58
----
1259

skipif mysql # not compatible
query I rowsort label-7518
SELECT ALL CASE 13 WHEN AVG ( DISTINCT - 98 ) THEN - 33 ELSE ( - 20 ) * - 60 END + + - ( - + COUNT ( - 26 ) ) + 58
----
1259

query II rowsort
SELECT DISTINCT 61 AS col2, 82 AS col1
----
61
82

query I rowsort
SELECT ALL 49 + + 94 + + + 37 * 4
----
291

onlyif mysql # aggregate syntax: 
query II rowsort label-7521
SELECT 25 + - - COUNT( * ) + - 2 AS col0, + 73
----
24
73

skipif mysql # not compatible
query II rowsort label-7521
SELECT 25 + - - COUNT ( * ) + - 2 AS col0, + 73
----
24
73

query I rowsort
SELECT DISTINCT 61 * + 48
----
2928

query II rowsort
SELECT ALL 61, 45 col2
----
61
45

query I rowsort
SELECT 24 * + 64
----
1536

query II rowsort
SELECT + 16 + + - 18 + - - 41 AS col1, - 82 + - 52
----
39
-134

query I rowsort
SELECT 42 * + 87
----
3654

query I rowsort
SELECT - 69 * 46
----
-3174

query I rowsort
SELECT 4 - - 66 * 69 * + 30 + - - 39 AS col1
----
136663

onlyif mysql # DIV for integer division: 
query I rowsort label-7529
SELECT - 83 DIV NULLIF ( + 70, + 53 )
----
-1

skipif mysql # not compatible
query I rowsort label-7529
SELECT - 83 / NULLIF ( + 70, + 53 )
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7530
SELECT ALL + - CASE 60 WHEN - 43 + + AVG ( - 97 ) * + 15 * + - 31 - 74 THEN + 37 + + - 22 END * 0 + SUM( CAST( NULL AS SIGNED ) ) - - 58 + - + 79 + 60 * + 90 + - - 82 + - 34
----
NULL

skipif mysql # not compatible
query I rowsort label-7530
SELECT ALL + - CASE 60 WHEN - 43 + + AVG ( - 97 ) * + 15 * + - 31 - 74 THEN + 37 + + - 22 END * 0 + SUM ( CAST ( NULL AS INTEGER ) ) - - 58 + - + 79 + 60 * + 90 + - - 82 + - 34
----
NULL

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7532
SELECT + 72 * 71 + + NULLIF ( + + 4, - - 5 + ( - + CAST( SUM( + + CAST( + + 1 AS SIGNED ) ) AS SIGNED ) ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7532
SELECT + 72 * 71 + + NULLIF ( + + 4, - - 5 + ( - + CAST ( SUM ( + + CAST ( + + 1 AS INTEGER ) ) AS INTEGER ) ) ) AS col2
----
NULL

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7534
SELECT + 84 DIV COUNT( * ) * - 46 + 26
----
-3838

skipif mysql # not compatible
query I rowsort label-7534
SELECT + 84 / COUNT ( * ) * - 46 + 26
----
-3838

query I rowsort
SELECT ALL - 19 * 68 AS col1
----
-1292

query II rowsort
SELECT 65, 59 + + 35 AS col2
----
65
94

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7540
SELECT + - CASE + SUM( - + 25 ) WHEN + 48 + 46 THEN NULL ELSE 98 + + 57 END * - + COUNT( * )
----
155

skipif mysql # not compatible
query I rowsort label-7540
SELECT + - CASE + SUM ( - + 25 ) WHEN + 48 + 46 THEN NULL ELSE 98 + + 57 END * - + COUNT ( * )
----
155

onlyif mysql # aggregate syntax: 
query I rowsort label-7541
SELECT + + SUM( ALL 41 ) AS col1
----
41

skipif mysql # not compatible
query I rowsort label-7541
SELECT + + SUM ( ALL 41 ) AS col1
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-7542
SELECT DISTINCT 5 * + + MAX( ALL - 75 )
----
-375

skipif mysql # not compatible
query I rowsort label-7542
SELECT DISTINCT 5 * + + MAX ( ALL - 75 )
----
-375

onlyif mysql # DIV for integer division: 
query I rowsort label-7543
SELECT ALL - 8 DIV 27
----
0

skipif mysql # not compatible
query I rowsort label-7543
SELECT ALL - 8 / 27
----
0

query I rowsort
SELECT - 34 * - 94 AS col1
----
3196

query I rowsort
SELECT ALL - 99 * + + 41
----
-4059

query I rowsort
SELECT ALL + NULLIF ( + 26, - 97 )
----
26

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

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

query I rowsort
SELECT - 98 + - - 72 * 78 - 83 + + 35 + + + 42 * + 20 AS col1
----
6310

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7549
SELECT - 15 DIV - COALESCE ( + 88, + COUNT( * ) )
----
0

skipif mysql # not compatible
query I rowsort label-7549
SELECT - 15 / - COALESCE ( + 88, + COUNT ( * ) )
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-7550
SELECT - 21 DIV 51
----
0

skipif mysql # not compatible
query I rowsort label-7550
SELECT - 21 / 51
----
0

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7552
SELECT ALL CASE - 91 WHEN + - 47 * - COUNT( * ) THEN + + 93 END
----
NULL

skipif mysql # not compatible
query I rowsort label-7552
SELECT ALL CASE - 91 WHEN + - 47 * - COUNT ( * ) THEN + + 93 END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7553
SELECT - CAST( - 10 AS SIGNED ) - - + 26
----
36

skipif mysql # not compatible
query I rowsort label-7553
SELECT - CAST ( - 10 AS INTEGER ) - - + 26
----
36

query I rowsort
SELECT + 97 * - - 92 * - - 14 AS col2
----
124936

query I rowsort
SELECT ( - - 79 ) * 64 - + 64 - 28 - - 82 * + 2 * - + 44
----
-2252

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7558
SELECT DISTINCT 73 + + - CAST( - + ( MAX( ALL + 34 ) ) AS SIGNED ) DIV + ( 86 ) AS col0
----
73

skipif mysql # not compatible
query I rowsort label-7558
SELECT DISTINCT 73 + + - CAST ( - + ( MAX ( ALL + 34 ) ) AS INTEGER ) / + ( 86 ) AS col0
----
73

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7559
SELECT ALL NULLIF ( + CAST( + 84 AS SIGNED ), - - ( + - COUNT( * ) ) * - 30 + 41 + - + COUNT( * ) ) + + - MAX( ALL + 69 ), CAST( NULL AS SIGNED ) * - NULLIF ( + COUNT( * ), - COUNT( * ) - - 60 + + - 92 ) AS col2
----
15
NULL

skipif mysql # not compatible
query II rowsort label-7559
SELECT ALL NULLIF ( + CAST ( + 84 AS INTEGER ), - - ( + - COUNT ( * ) ) * - 30 + 41 + - + COUNT ( * ) ) + + - MAX ( ALL + 69 ), CAST ( NULL AS INTEGER ) * - NULLIF ( + COUNT ( * ), - COUNT ( * ) - - 60 + + - 92 ) AS col2
----
15
NULL

query I rowsort
SELECT ALL CASE - + 56 WHEN - 77 THEN + 12 END
----
NULL

query I rowsort
SELECT + 14 - + 62 + 92 + + 26 col1
----
70

query I rowsort
SELECT DISTINCT + COALESCE ( + - 59, + 80 * + + 80 ) + - 50 AS col1
----
-109

query I rowsort
SELECT DISTINCT - 92 + - 55 AS col1
----
-147

query I rowsort
SELECT ALL 70 + 4
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-7565
SELECT DISTINCT + + 87 + - CASE - 84 WHEN - - COUNT( * ) - - ( - 75 ) THEN 21 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-7565
SELECT DISTINCT + + 87 + - CASE - 84 WHEN - - COUNT ( * ) - - ( - 75 ) THEN 21 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7566
SELECT - ( - 70 ) + - + NULLIF ( - - COUNT( * ), 79 ) * - - 53 - - 48, + ( - + 37 ) AS col2
----
65
-37

skipif mysql # not compatible
query II rowsort label-7566
SELECT - ( - 70 ) + - + NULLIF ( - - COUNT ( * ), 79 ) * - - 53 - - 48, + ( - + 37 ) AS col2
----
65
-37

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7568
SELECT ALL + 73 + + - 2 AS col1, CASE - 87 WHEN - 50 THEN 21 + COUNT( DISTINCT 74 ) WHEN 4 + + 58 + 50 + + 79 THEN + 83 * - + CAST( + 25 AS SIGNED ) + - + 37 + - - ( 92 ) * + + 32 ELSE NULL END
----
71
NULL

skipif mysql # not compatible
query II rowsort label-7568
SELECT ALL + 73 + + - 2 AS col1, CASE - 87 WHEN - 50 THEN 21 + COUNT ( DISTINCT 74 ) WHEN 4 + + 58 + 50 + + 79 THEN + 83 * - + CAST ( + 25 AS INTEGER ) + - + 37 + - - ( 92 ) * + + 32 ELSE NULL END
----
71
NULL

query I rowsort
SELECT - - 18 + + 98 AS col1
----
116

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7571
SELECT ALL 49 DIV + 88 + - COUNT( * ) - 19 + - 57
----
-77

skipif mysql # not compatible
query I rowsort label-7571
SELECT ALL 49 / + 88 + - COUNT ( * ) - 19 + - 57
----
-77

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7573
SELECT + ( MIN( ALL 65 ) ) * - CAST( NULL AS SIGNED ) + COUNT( + 24 ) + - 79 * 82 * 85 * + 96 + + COUNT( + - ( + - 76 ) ) - 32 * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7573
SELECT + ( MIN ( ALL 65 ) ) * - CAST ( NULL AS INTEGER ) + COUNT ( + 24 ) + - 79 * 82 * 85 * + 96 + + COUNT ( + - ( + - 76 ) ) - 32 * CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7574
SELECT + + NULLIF ( 89, 4 + - 49 + - 29 ) * - 46 + - ( + ( - CASE + COUNT( * ) WHEN + - 48 THEN + - CAST( NULL AS SIGNED ) + - - COUNT( * ) * + 63 * - 37 * + CASE - 23 WHEN + COALESCE ( + + 40, - + ( - 99 ) * + - 28 - 49 + + 99, + 21 ) THEN + COUNT( * ) WHEN + COUNT( * ) + 17 THEN 4 ELSE NULL END * + 62 + - 68 * + 24 ELSE NULL END ) ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7574
SELECT + + NULLIF ( 89, 4 + - 49 + - 29 ) * - 46 + - ( + ( - CASE + COUNT ( * ) WHEN + - 48 THEN + - CAST ( NULL AS INTEGER ) + - - COUNT ( * ) * + 63 * - 37 * + CASE - 23 WHEN + COALESCE ( + + 40, - + ( - 99 ) * + - 28 - 49 + + 99, + 21 ) THEN + COUNT ( * ) WHEN + COUNT ( * ) + 17 THEN 4 ELSE NULL END * + 62 + - 68 * + 24 ELSE NULL END ) ) col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7575
SELECT DISTINCT - 66 DIV 73
----
0

skipif mysql # not compatible
query I rowsort label-7575
SELECT DISTINCT - 66 / 73
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-7576
SELECT + 77 DIV 94 * - 45 + + - ( - 13 ) AS col2
----
13

skipif mysql # not compatible
query I rowsort label-7576
SELECT + 77 / 94 * - 45 + + - ( - 13 ) AS col2
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-7577
SELECT ALL + + COUNT( DISTINCT - - 53 )
----
1

skipif mysql # not compatible
query I rowsort label-7577
SELECT ALL + + COUNT ( DISTINCT - - 53 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7578
SELECT DISTINCT CASE - COUNT( * ) WHEN + 18 THEN - + 70 * - 85 - - + COALESCE ( 45, COUNT( * ) ) - + 82 - 23 + + + ( - 8 ) WHEN + + 60 + CASE + 91 WHEN - CASE - COUNT( * ) WHEN MAX( ALL + 45 ) * + + COUNT( * ) THEN - ( - 81 ) / + COUNT( * ) + + 41 END THEN NULL WHEN - COUNT( * ) / 53 THEN NULL WHEN + 80 THEN - NULLIF ( + 37, + COUNT( * ) ) END THEN 74 * NULLIF ( 76, 64 ) ELSE NULL END / 65 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7578
SELECT DISTINCT CASE - COUNT ( * ) WHEN + 18 THEN - + 70 * - 85 - - + COALESCE ( 45, COUNT ( * ) ) - + 82 - 23 + + + ( - 8 ) WHEN + + 60 + CASE + 91 WHEN - CASE - COUNT ( * ) WHEN MAX ( ALL + 45 ) * + + COUNT ( * ) THEN - ( - 81 ) / + COUNT ( * ) + + 41 END THEN NULL WHEN - COUNT ( * ) / 53 THEN NULL WHEN + 80 THEN - NULLIF ( + 37, + COUNT ( * ) ) END THEN 74 * NULLIF ( 76, 64 ) ELSE NULL END / 65 AS col2
----
NULL

query I rowsort
SELECT + - 27 + 80
----
53

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

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

query I rowsort
SELECT + ( - 79 ) - - - 64 * - 86
----
5425

onlyif mysql # aggregate syntax: 
query I rowsort label-7582
SELECT + 28 + - 39 * COUNT( DISTINCT + - 29 ) * - 70 + - 70
----
2688

skipif mysql # not compatible
query I rowsort label-7582
SELECT + 28 + - 39 * COUNT ( DISTINCT + - 29 ) * - 70 + - 70
----
2688

query I rowsort
SELECT + 39 * - - 76 AS col2
----
2964

query I rowsort
SELECT ( - 71 )
----
-71

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7585
SELECT COALESCE ( + + SUM( 83 ), MAX( + - 46 ) * 20, - 85 * - + 82 DIV AVG ( DISTINCT - CAST( NULL AS SIGNED ) ) )
----
83

skipif mysql # not compatible
query I rowsort label-7585
SELECT COALESCE ( + + SUM ( 83 ), MAX ( + - 46 ) * 20, - 85 * - + 82 / AVG ( DISTINCT - CAST ( NULL AS INTEGER ) ) )
----
83

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7586
SELECT 41 * CAST( NULL AS SIGNED ) * COALESCE ( + 27, + 52, + + 25, 49 ) + + + 28 / - - 8 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7586
SELECT 41 * CAST ( NULL AS INTEGER ) * COALESCE ( + 27, + 52, + + 25, 49 ) + + + 28 / - - 8 AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7587
SELECT ALL 86 * + CAST( + - 16 AS SIGNED )
----
-1376

skipif mysql # not compatible
query I rowsort label-7587
SELECT ALL 86 * + CAST ( + - 16 AS INTEGER )
----
-1376

query I rowsort
SELECT + 92 + 46
----
138

query II rowsort
SELECT ALL + 55, + 16 AS col0
----
55
16

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7590
SELECT CASE 52 WHEN + 30 * - 41 - + + 84 * - - 26 THEN + - 93 WHEN - 76 * + - 56 THEN NULL ELSE CAST( NULL AS SIGNED ) END AS col0, 1
----
NULL
1

skipif mysql # not compatible
query II rowsort label-7590
SELECT CASE 52 WHEN + 30 * - 41 - + + 84 * - - 26 THEN + - 93 WHEN - 76 * + - 56 THEN NULL ELSE CAST ( NULL AS INTEGER ) END AS col0, 1
----
NULL
1

query I rowsort
SELECT 41 * 29 + 10 AS col1
----
1199

onlyif mysql # aggregate syntax: 
query I rowsort label-7592
SELECT ALL 59 * + NULLIF ( MIN( DISTINCT + NULLIF ( + 94, - 81 ) ), + ( - - 24 ) ) + - 99 * + 1 * 24
----
3170

skipif mysql # not compatible
query I rowsort label-7592
SELECT ALL 59 * + NULLIF ( MIN ( DISTINCT + NULLIF ( + 94, - 81 ) ), + ( - - 24 ) ) + - 99 * + 1 * 24
----
3170

query I rowsort
SELECT COALESCE ( - 18, + 32 ) AS col2
----
-18

query I rowsort
SELECT + 50 + + 9 + - 98 * - 12 col2
----
1235

onlyif mysql # aggregate syntax: 
query I rowsort label-7595
SELECT + NULLIF ( 7, + 0 ) * - MAX( + 67 )
----
-469

skipif mysql # not compatible
query I rowsort label-7595
SELECT + NULLIF ( 7, + 0 ) * - MAX ( + 67 )
----
-469

onlyif mysql # DIV for integer division: 
query I rowsort label-7596
SELECT - 32 DIV - + 68
----
0

skipif mysql # not compatible
query I rowsort label-7596
SELECT - 32 / - + 68
----
0

query I rowsort
SELECT DISTINCT - 6 * - 19 + 43 AS col2
----
157

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

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

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

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

query I rowsort
SELECT DISTINCT - 77 + 42 * 27 AS col1
----
1057

query I rowsort
SELECT ALL - - 14 * - - 48
----
672

onlyif mysql # aggregate syntax: 
query I rowsort label-7602
SELECT - + COUNT( * ) + - 1 - 78 * 27
----
-2108

skipif mysql # not compatible
query I rowsort label-7602
SELECT - + COUNT ( * ) + - 1 - 78 * 27
----
-2108

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-7603
SELECT - CAST( - AVG ( ALL + + 85 ) AS SIGNED ) DIV - 63 + 74 AS col1, 80 AS col1
----
73
80

skipif mysql # not compatible
query II rowsort label-7603
SELECT - CAST ( - AVG ( ALL + + 85 ) AS INTEGER ) / - 63 + 74 AS col1, 80 AS col1
----
73
80

query I rowsort
SELECT ALL + - 34 - - 91 AS col0
----
57

query I rowsort
SELECT ALL + 63 - 92 AS col2
----
-29

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

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

skipif mysql # not compatible
query I rowsort label-7607
SELECT - - 88 - + CAST ( 61 AS INTEGER ) col1
----
27

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

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

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

skipif mysql # not compatible
query II rowsort label-7609
SELECT - 41 AS col0, - COUNT ( + - 1 )
----
-41
-1

query I rowsort
SELECT 41 + 66
----
107

query I rowsort
SELECT 44 * - 66 + - 12 AS col2
----
-2916

onlyif mysql # aggregate syntax: 
query I rowsort label-7612
SELECT - 15 + - CASE + 31 WHEN + + ( - COALESCE ( - 5, + MIN( DISTINCT - 32 ), 98 * + + 54 - + + COUNT( * ) ) ) * + 57 THEN - 39 / - 55 * - + 60 WHEN - 15 THEN COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-7612
SELECT - 15 + - CASE + 31 WHEN + + ( - COALESCE ( - 5, + MIN ( DISTINCT - 32 ), 98 * + + 54 - + + COUNT ( * ) ) ) * + 57 THEN - 39 / - 55 * - + 60 WHEN - 15 THEN COUNT ( * ) END
----
NULL

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7614
SELECT + 42 AS col1, 46 * + 70 + + + 89 + - 20 + - 65 + - NULLIF ( 58, CAST( + - 78 AS SIGNED ) * - + ( - + CASE + CASE 31 WHEN + 90 THEN - 56 END WHEN + - 17 * MIN( - 96 ) + 82 THEN - CASE 62 WHEN + - 93 + + MIN( - 96 ) THEN ( 82 ) + ( + 17 ) * COUNT( * ) END - + COUNT( * ) ELSE - COUNT( * ) END ) ) + - 97 * - CAST( + 48 * + CASE 38 * - 55 WHEN - 77 + - COUNT( * ) THEN - COUNT( * ) ELSE NULL END AS SIGNED ) AS col0
----
42
NULL

skipif mysql # not compatible
query II rowsort label-7614
SELECT + 42 AS col1, 46 * + 70 + + + 89 + - 20 + - 65 + - NULLIF ( 58, CAST ( + - 78 AS INTEGER ) * - + ( - + CASE + CASE 31 WHEN + 90 THEN - 56 END WHEN + - 17 * MIN ( - 96 ) + 82 THEN - CASE 62 WHEN + - 93 + + MIN ( - 96 ) THEN ( 82 ) + ( + 17 ) * COUNT ( * ) END - + COUNT ( * ) ELSE - COUNT ( * ) END ) ) + - 97 * - CAST ( + 48 * + CASE 38 * - 55 WHEN - 77 + - COUNT ( * ) THEN - COUNT ( * ) ELSE NULL END AS INTEGER ) AS col0
----
42
NULL

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

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

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

query I rowsort
SELECT ALL - 36 * + 85
----
-3060

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

skipif mysql # not compatible
query I rowsort label-7618
SELECT DISTINCT + - 4 * - COUNT ( * ) / 28
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7619
SELECT 59 DIV - 75 + 6 * COUNT( * ) * MIN( DISTINCT - + 87 ) AS col2, + 37 + + + 75 AS col2
----
-522
112

skipif mysql # not compatible
query II rowsort label-7619
SELECT 59 / - 75 + 6 * COUNT ( * ) * MIN ( DISTINCT - + 87 ) AS col2, + 37 + + + 75 AS col2
----
-522
112

query I rowsort
SELECT ALL + 76 * - 98 * + - 21
----
156408

query II rowsort
SELECT + 65 AS col0, 96 AS col0
----
65
96

query II rowsort
SELECT + 19 AS col0, 13 * + + 29
----
19
377

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7623
SELECT SUM( - + 33 ) DIV - - MAX( - - 13 ) + + - 76 + NULLIF ( 51, + 32 + - - CAST( - - 69 AS SIGNED ) * 14 + - 92 ) + + 54 * - + COUNT( * ) + - 3 + 21 + 98 * + 76 * 95 + COUNT( DISTINCT 78 )
----
707498

skipif mysql # not compatible
query I rowsort label-7623
SELECT SUM ( - + 33 ) / - - MAX ( - - 13 ) + + - 76 + NULLIF ( 51, + 32 + - - CAST ( - - 69 AS INTEGER ) * 14 + - 92 ) + + 54 * - + COUNT ( * ) + - 3 + 21 + 98 * + 76 * 95 + COUNT ( DISTINCT 78 )
----
707498

query I rowsort
SELECT ( - + 16 ) * + 62
----
-992

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

skipif mysql # not compatible
query II rowsort label-7625
SELECT 88 AS col0, + 96 * - CAST ( NULL AS INTEGER ) + - COUNT ( * )
----
88
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7626
SELECT DISTINCT COALESCE ( 8, ( + + AVG ( - + 41 ) ) * + 46 + - 33 + - NULLIF ( + + COUNT( DISTINCT 83 ), - 99 - + + 49 ) ) DIV 41 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-7626
SELECT DISTINCT COALESCE ( 8, ( + + AVG ( - + 41 ) ) * + 46 + - 33 + - NULLIF ( + + COUNT ( DISTINCT 83 ), - 99 - + + 49 ) ) / 41 AS col0
----
0

query I rowsort
SELECT ALL 63 + 92 AS col1
----
155

query II rowsort
SELECT 61, + 22 AS col1
----
61
22

query I rowsort
SELECT ALL ( 46 ) + 13 + 65 col0
----
124

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7630
SELECT ( - 7 ) DIV - + COUNT( - 97 )
----
7

skipif mysql # not compatible
query I rowsort label-7630
SELECT ( - 7 ) / - + COUNT ( - 97 )
----
7

query I rowsort
SELECT ALL ( - - 73 ) + + + 7 col0
----
80

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7632
SELECT DISTINCT SUM( + 94 ) DIV + + 59
----
1

skipif mysql # not compatible
query I rowsort label-7632
SELECT DISTINCT SUM ( + 94 ) / + + 59
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7633
SELECT DISTINCT - CASE CAST( - + 90 AS SIGNED ) WHEN - 82 + + - COUNT( * ) THEN - COUNT( * ) * + 95 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7633
SELECT DISTINCT - CASE CAST ( - + 90 AS INTEGER ) WHEN - 82 + + - COUNT ( * ) THEN - COUNT ( * ) * + 95 END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7634
SELECT ALL NULLIF ( + 32, 15 ) + + ( - COUNT( * ) ) AS col2
----
31

skipif mysql # not compatible
query I rowsort label-7634
SELECT ALL NULLIF ( + 32, 15 ) + + ( - COUNT ( * ) ) AS col2
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-7635
SELECT CASE - + 89 WHEN COUNT( * ) + - 41 + 68 - - 88 + 49 * 94 / 65 THEN - + 88 END + ( + 25 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7635
SELECT CASE - + 89 WHEN COUNT ( * ) + - 41 + 68 - - 88 + 49 * 94 / 65 THEN - + 88 END + ( + 25 )
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7637
SELECT COALESCE ( + 38, COUNT( * ) ) * - MIN( 40 ) AS col1
----
-1520

skipif mysql # not compatible
query I rowsort label-7637
SELECT COALESCE ( + 38, COUNT ( * ) ) * - MIN ( 40 ) AS col1
----
-1520

query II rowsort
SELECT 69 AS col1, - 87 AS col1
----
69
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-7639
SELECT COALESCE ( + + 90, - COUNT( * ) ) + - 88 AS col2
----
2

skipif mysql # not compatible
query I rowsort label-7639
SELECT COALESCE ( + + 90, - COUNT ( * ) ) + - 88 AS col2
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-7640
SELECT ALL SUM( ALL - - 31 ) * + + 17 AS col2
----
527

skipif mysql # not compatible
query I rowsort label-7640
SELECT ALL SUM ( ALL - - 31 ) * + + 17 AS col2
----
527

onlyif mysql # aggregate syntax: 
query I rowsort label-7641
SELECT DISTINCT NULLIF ( COUNT( * ), - - NULLIF ( + 94, + 52 ) )
----
1

skipif mysql # not compatible
query I rowsort label-7641
SELECT DISTINCT NULLIF ( COUNT ( * ), - - NULLIF ( + 94, + 52 ) )
----
1

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

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

query II rowsort
SELECT 10 AS col1, + 34
----
10
34

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7644
SELECT ALL - 30, COUNT( * ) * + + CAST( - COUNT( * ) AS SIGNED ) + + 42 + 11 * + CAST( NULL AS SIGNED ) AS col1
----
-30
NULL

skipif mysql # not compatible
query II rowsort label-7644
SELECT ALL - 30, COUNT ( * ) * + + CAST ( - COUNT ( * ) AS INTEGER ) + + 42 + 11 * + CAST ( NULL AS INTEGER ) AS col1
----
-30
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7645
SELECT ALL + CAST( + - ( + 14 ) AS SIGNED ) - - + MAX( DISTINCT - - 1 ) + 84 * 33 * COUNT( * )
----
2759

skipif mysql # not compatible
query I rowsort label-7645
SELECT ALL + CAST ( + - ( + 14 ) AS INTEGER ) - - + MAX ( DISTINCT - - 1 ) + 84 * 33 * COUNT ( * )
----
2759

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7646
SELECT - 63 * + - ( + + CASE + - 25 WHEN + 15 THEN - 74 * - - 69 * - 38 + + - CAST( + + 43 AS SIGNED ) + 36 WHEN + 19 / 36 + + 39 THEN + ( - - ( + NULLIF ( + + 26, - 31 ) ) ) END )
----
NULL

skipif mysql # not compatible
query I rowsort label-7646
SELECT - 63 * + - ( + + CASE + - 25 WHEN + 15 THEN - 74 * - - 69 * - 38 + + - CAST ( + + 43 AS INTEGER ) + 36 WHEN + 19 / 36 + + 39 THEN + ( - - ( + NULLIF ( + + 26, - 31 ) ) ) END )
----
NULL

query I rowsort
SELECT 35 + 10 + + 97
----
142

query I rowsort
SELECT 79 - NULLIF ( + - 21, - 38 * 77 ) col0
----
100

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query III rowsort label-7650
SELECT COUNT( - 41 ) * + + CASE + + 9 WHEN - 66 THEN - AVG ( - 11 ) * + + CAST( NULL AS SIGNED ) * - + 2 * + - 36 * + - COUNT( * ) WHEN 93 THEN NULL END AS col1, CAST( NULL AS DECIMAL ) * - 23 AS col2, 87 + + 18 col0
----
NULL
NULL
105

skipif mysql # not compatible
query III rowsort label-7650
SELECT COUNT ( - 41 ) * + + CASE + + 9 WHEN - 66 THEN - AVG ( - 11 ) * + + CAST ( NULL AS INTEGER ) * - + 2 * + - 36 * + - COUNT ( * ) WHEN 93 THEN NULL END AS col1, CAST ( NULL AS REAL ) * - 23 AS col2, 87 + + 18 col0
----
NULL
NULL
105

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

query I rowsort
SELECT ( 30 ) * + 77 + + + 90
----
2400

onlyif mysql # aggregate syntax: 
query I rowsort label-7653
SELECT ALL - COUNT( * ) * + 23 * 7 + - - 21
----
-140

skipif mysql # not compatible
query I rowsort label-7653
SELECT ALL - COUNT ( * ) * + 23 * 7 + - - 21
----
-140

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

skipif mysql # not compatible
query I rowsort label-7654
SELECT - - MIN ( + 23 )
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-7655
SELECT COUNT( * ) + - 92 * - + CASE + ( - 7 ) WHEN - - 22 * COUNT( * ) + - COUNT( * ) * - + 0 THEN + 13 * - - 78 - + 48 * - 87 * + 49 + + 38 + - ( + + 52 ) WHEN 11 THEN NULL ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7655
SELECT COUNT ( * ) + - 92 * - + CASE + ( - 7 ) WHEN - - 22 * COUNT ( * ) + - COUNT ( * ) * - + 0 THEN + 13 * - - 78 - + 48 * - 87 * + 49 + + 38 + - ( + + 52 ) WHEN 11 THEN NULL ELSE NULL END AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7656
SELECT ALL + 71 * 98 DIV 69 AS col0
----
100

skipif mysql # not compatible
query I rowsort label-7656
SELECT ALL + 71 * 98 / 69 AS col0
----
100

query I rowsort
SELECT 35 * + 61 AS col1
----
2135

query I rowsort
SELECT ALL + 80 * 36 + 21 col2
----
2901

query I rowsort
SELECT - 88 - 40 * 66 AS col2
----
-2728

query I rowsort
SELECT 15 + 82
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-7661
SELECT ALL NULLIF ( ( - COALESCE ( - 8, - + ( + 6 ) - + CASE 26 WHEN - 88 + - 29 THEN 63 END, + - 45 ) ), + 22 * + COUNT( * ) )
----
8

skipif mysql # not compatible
query I rowsort label-7661
SELECT ALL NULLIF ( ( - COALESCE ( - 8, - + ( + 6 ) - + CASE 26 WHEN - 88 + - 29 THEN 63 END, + - 45 ) ), + 22 * + COUNT ( * ) )
----
8

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7662
SELECT - COUNT( * ) + + CAST( + ( + - 5 ) AS SIGNED ) + - 64 AS col1
----
-70

skipif mysql # not compatible
query I rowsort label-7662
SELECT - COUNT ( * ) + + CAST ( + ( + - 5 ) AS INTEGER ) + - 64 AS col1
----
-70

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7664
SELECT + 83 DIV + MIN( ALL + 16 ) + + 70 * + + 19
----
1335

skipif mysql # not compatible
query I rowsort label-7664
SELECT + 83 / + MIN ( ALL + 16 ) + + 70 * + + 19
----
1335

onlyif mysql # DIV for integer division: 
query I rowsort label-7665
SELECT DISTINCT 8 * 69 DIV 11 + + 88 AS col1
----
138

skipif mysql # not compatible
query I rowsort label-7665
SELECT DISTINCT 8 * 69 / 11 + + 88 AS col1
----
138

query I rowsort
SELECT 84 + - 27
----
57

query I rowsort
SELECT ALL + ( - + 23 ) * + 16 + - + 48 * + 71 * - 98 AS col0
----
333616

onlyif mysql # DIV for integer division: 
query I rowsort label-7668
SELECT + 95 * + 62 + 44 - + ( - 83 ) DIV + - 18
----
5930

skipif mysql # not compatible
query I rowsort label-7668
SELECT + 95 * + 62 + 44 - + ( - 83 ) / + - 18
----
5930

query II rowsort
SELECT ALL 7 * - 62 + + 21 - - ( + - 3 ) + + - 62 * + 40 * + + 28 - - CASE 97 WHEN + 6 THEN NULL WHEN 62 THEN + 95 + - 33 + + - 64 ELSE NULL END, 48 + - 96 AS col0
----
NULL
-48

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7670
SELECT 77 / CAST( NULL AS SIGNED ) / - + ( 4 ) + + NULLIF ( - 95, + 38 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7670
SELECT 77 / CAST ( NULL AS INTEGER ) / - + ( 4 ) + + NULLIF ( - 95, + 38 )
----
NULL

query I rowsort
SELECT ALL 57 + - 15 AS col2
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-7672
SELECT ALL ( SUM( 23 ) ) * + + 26
----
598

skipif mysql # not compatible
query I rowsort label-7672
SELECT ALL ( SUM ( 23 ) ) * + + 26
----
598

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7673
SELECT COUNT( * ) + CAST( + COUNT( * ) AS SIGNED ) - - 86 + - - MIN( 40 )
----
128

skipif mysql # not compatible
query I rowsort label-7673
SELECT COUNT ( * ) + CAST ( + COUNT ( * ) AS INTEGER ) - - 86 + - - MIN ( 40 )
----
128

query I rowsort
SELECT ALL + 78 + 67
----
145

onlyif mysql # aggregate syntax: 
query I rowsort label-7675
SELECT NULLIF ( - - 1, + + 6 + + 76 ) + + COUNT( * ) AS col1
----
2

skipif mysql # not compatible
query I rowsort label-7675
SELECT NULLIF ( - - 1, + + 6 + + 76 ) + + COUNT ( * ) AS col1
----
2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7676
SELECT ALL 49 DIV + MIN( DISTINCT 31 )
----
1

skipif mysql # not compatible
query I rowsort label-7676
SELECT ALL 49 / + MIN ( DISTINCT 31 )
----
1

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

skipif mysql # not compatible
query I rowsort label-7677
SELECT 79 * - ( + 49 ) * COUNT ( * ) + - 18 AS col0
----
-3889

onlyif mysql # aggregate syntax: 
query I rowsort label-7678
SELECT DISTINCT - CASE + 4 WHEN + 27 + - COUNT( * ) + 49 / + 84 THEN NULL WHEN - + ( + ( + + 84 ) ) THEN + 53 WHEN + COALESCE ( + COUNT( - 68 ), 50 * + NULLIF ( + + 41, - - COUNT( - - 66 ) ) + + 67, 28 ) THEN NULL ELSE - + 27 END
----
27

skipif mysql # not compatible
query I rowsort label-7678
SELECT DISTINCT - CASE + 4 WHEN + 27 + - COUNT ( * ) + 49 / + 84 THEN NULL WHEN - + ( + ( + + 84 ) ) THEN + 53 WHEN + COALESCE ( + COUNT ( - 68 ), 50 * + NULLIF ( + + 41, - - COUNT ( - - 66 ) ) + + 67, 28 ) THEN NULL ELSE - + 27 END
----
27

onlyif mysql # aggregate syntax: 
query II rowsort label-7679
SELECT + MAX( - 53 ) AS col1, - 38
----
-53
-38

skipif mysql # not compatible
query II rowsort label-7679
SELECT + MAX ( - 53 ) AS col1, - 38
----
-53
-38

onlyif mysql # DIV for integer division: 
query I rowsort label-7680
SELECT ALL 8 DIV + 54 col0
----
0

skipif mysql # not compatible
query I rowsort label-7680
SELECT ALL 8 / + 54 col0
----
0

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7682
SELECT + + 30 * - 7 DIV - - COUNT( * )
----
-210

skipif mysql # not compatible
query I rowsort label-7682
SELECT + + 30 * - 7 / - - COUNT ( * )
----
-210

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

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

query I rowsort
SELECT DISTINCT - 42 * - 19 + - 79
----
719

query I rowsort
SELECT + CASE + 66 WHEN - + 95 THEN NULL WHEN 26 THEN NULL ELSE - - ( - - 89 ) END * + 69 + ( + 7 ) AS col2
----
6148

onlyif mysql # aggregate syntax: 
query I rowsort label-7686
SELECT - + 23 + - COUNT( * ) * + CASE + COUNT( * ) WHEN 62 / + ( + 81 ) THEN 84 ELSE + - 16 END - + + 37
----
-44

skipif mysql # not compatible
query I rowsort label-7686
SELECT - + 23 + - COUNT ( * ) * + CASE + COUNT ( * ) WHEN 62 / + ( + 81 ) THEN 84 ELSE + - 16 END - + + 37
----
-44

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7688
SELECT + - 54 DIV - + 14 + - 21 * - 95 * - COUNT( * ) * + 44 + - 15 AS col2, COUNT( * ) AS col0
----
-87792
1

skipif mysql # not compatible
query II rowsort label-7688
SELECT + - 54 / - + 14 + - 21 * - 95 * - COUNT ( * ) * + 44 + - 15 AS col2, COUNT ( * ) AS col0
----
-87792
1

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7689
SELECT - - CAST( NULL AS DECIMAL ) + + ( 85 ) + + SUM( DISTINCT + - ( - + 27 ) ) * 20 + - 51
----
NULL

skipif mysql # not compatible
query I rowsort label-7689
SELECT - - CAST ( NULL AS REAL ) + + ( 85 ) + + SUM ( DISTINCT + - ( - + 27 ) ) * 20 + - 51
----
NULL

query I rowsort
SELECT - + CASE 53 WHEN - 10 THEN - 40 END col2
----
NULL

query I rowsort
SELECT - + 73 + - + 29 * 90
----
-2683

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

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

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

query I rowsort
SELECT DISTINCT 92 * + 31
----
2852

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

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

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

query I rowsort
SELECT DISTINCT + 73 * - 62 + - 92 AS col2
----
-4618

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

query I rowsort
SELECT - 15 * ( - - COALESCE ( + 87, + 0 * - + 1 ) )
----
-1305

query I rowsort
SELECT ( - 9 )
----
-9

query II rowsort
SELECT + 38, 4 AS col2
----
38
4

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

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

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

query I rowsort
SELECT - 79 * + 17 AS col1
----
-1343

query I rowsort
SELECT COALESCE ( 83, - 18 + 81 * - 13, + 39 + + 79 ) AS col1
----
83

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

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

query I rowsort
SELECT - 49 * + - 40
----
1960

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

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

query I rowsort
SELECT DISTINCT - ( + 12 ) * - 30 AS col2
----
360

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7711
SELECT - + CASE + 34 WHEN + + 92 THEN COUNT( * ) * + 38 DIV - COUNT( * ) * - - CAST( + 23 AS SIGNED ) + + NULLIF ( + 42, 3 + - ( 19 ) + 72 + 23 * - 12 + - + 2 * - 67 ) ELSE ( + 14 ) * + + 15 + - 87 + + 95 + 88 END + + COUNT( * )
----
-305

skipif mysql # not compatible
query I rowsort label-7711
SELECT - + CASE + 34 WHEN + + 92 THEN COUNT ( * ) * + 38 / - COUNT ( * ) * - - CAST ( + 23 AS INTEGER ) + + NULLIF ( + 42, 3 + - ( 19 ) + 72 + 23 * - 12 + - + 2 * - 67 ) ELSE ( + 14 ) * + + 15 + - 87 + + 95 + 88 END + + COUNT ( * )
----
-305

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7712
SELECT ALL - + 15 * + CASE - + 2 WHEN + CAST( 43 AS SIGNED ) + + 33 + + SUM( 32 ) THEN NULL WHEN MIN( DISTINCT 83 ) + + ( COUNT( * ) ) + - + 25 + 17 - + 67 + + 61 - + 20 * - 85 / + + 8 * ( + + 2 ) THEN NULL ELSE + - 2 END * - 46 - + - COUNT( - 38 ) * - - 83 / CAST( NULL AS SIGNED ) * + - ( 19 ) + ( - 69 ) * - 82
----
NULL

skipif mysql # not compatible
query I rowsort label-7712
SELECT ALL - + 15 * + CASE - + 2 WHEN + CAST ( 43 AS INTEGER ) + + 33 + + SUM ( 32 ) THEN NULL WHEN MIN ( DISTINCT 83 ) + + ( COUNT ( * ) ) + - + 25 + 17 - + 67 + + 61 - + 20 * - 85 / + + 8 * ( + + 2 ) THEN NULL ELSE + - 2 END * - 46 - + - COUNT ( - 38 ) * - - 83 / CAST ( NULL AS INTEGER ) * + - ( 19 ) + ( - 69 ) * - 82
----
NULL

query I rowsort
SELECT - 84 * - 35 * 3 AS col1
----
8820

query I rowsort
SELECT + 54 * + 59 AS col2
----
3186

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-7717
SELECT 10 * COUNT( * ) + + 58 AS col0, 86 AS col0
----
68
86

skipif mysql # not compatible
query II rowsort label-7717
SELECT 10 * COUNT ( * ) + + 58 AS col0, 86 AS col0
----
68
86

query I rowsort
SELECT - - 93 * + 7 AS col2
----
651

query I rowsort
SELECT - 25 + + 83 AS col0
----
58

query I rowsort
SELECT ALL + 32 + + 52 AS col0
----
84

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7722
SELECT - SUM( DISTINCT 78 ) AS col0
----
-78

skipif mysql # not compatible
query I rowsort label-7722
SELECT - SUM ( DISTINCT 78 ) AS col0
----
-78

query I rowsort
SELECT - - 58 * 44
----
2552

query II rowsort
SELECT + 70 * - + 15 + + 53 + + + 64 * - 75 + 21, - ( 99 ) col1
----
-5776
-99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7725
SELECT + + COALESCE ( - 84, + 69, + - CAST( NULL AS SIGNED ) ) + + 68 AS col1
----
-16

skipif mysql # not compatible
query I rowsort label-7725
SELECT + + COALESCE ( - 84, + 69, + - CAST ( NULL AS INTEGER ) ) + + 68 AS col1
----
-16

query II rowsort
SELECT 19, 27 AS col1
----
19
27

query II rowsort
SELECT ALL 67 + + 43 * - - 11, 23 AS col2
----
540
23

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

skipif mysql # not compatible
query I rowsort label-7728
SELECT + COUNT ( * ) - 55 AS col1
----
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-7729
SELECT DISTINCT - - 18 + + COUNT( 65 ) * - 17
----
1

skipif mysql # not compatible
query I rowsort label-7729
SELECT DISTINCT - - 18 + + COUNT ( 65 ) * - 17
----
1

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

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

query I rowsort
SELECT ALL 51 + 59 * - + 43
----
-2486

onlyif mysql # aggregate syntax: 
query I rowsort label-7733
SELECT DISTINCT COALESCE ( - 80, - - 1, COUNT( * ) * 66, 56 ) AS col2
----
-80

skipif mysql # not compatible
query I rowsort label-7733
SELECT DISTINCT COALESCE ( - 80, - - 1, COUNT ( * ) * 66, 56 ) AS col2
----
-80

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

query I rowsort
SELECT + 10 + - + 69
----
-59

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7736
SELECT ALL SUM( DISTINCT - + CAST( + 44 AS SIGNED ) )
----
-44

skipif mysql # not compatible
query I rowsort label-7736
SELECT ALL SUM ( DISTINCT - + CAST ( + 44 AS INTEGER ) )
----
-44

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

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

query I rowsort
SELECT ALL - ( 95 ) * 88
----
-8360

onlyif mysql # aggregate syntax: 
query II rowsort label-7739
SELECT + 79 + - 83 + - COUNT( * ) * - 14 AS col0, 46 AS col2
----
10
46

skipif mysql # not compatible
query II rowsort label-7739
SELECT + 79 + - 83 + - COUNT ( * ) * - 14 AS col0, 46 AS col2
----
10
46

onlyif mysql # DIV for integer division: 
query I rowsort label-7740
SELECT ALL 85 DIV 18 AS col1
----
4

skipif mysql # not compatible
query I rowsort label-7740
SELECT ALL 85 / 18 AS col1
----
4

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

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query III rowsort label-7743
SELECT - 49 DIV CASE + 33 WHEN + 44 THEN - + 71 ELSE - 22 * - ( - CASE - - ( - - COUNT( * ) ) WHEN 6 DIV - 70 THEN - - 77 ELSE - COUNT( * ) END ) END AS col0, 37 col2, 18 AS col0
----
-2
37
18

skipif mysql # not compatible
query III rowsort label-7743
SELECT - 49 / CASE + 33 WHEN + 44 THEN - + 71 ELSE - 22 * - ( - CASE - - ( - - COUNT ( * ) ) WHEN 6 / - 70 THEN - - 77 ELSE - COUNT ( * ) END ) END AS col0, 37 col2, 18 AS col0
----
-2
37
18

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

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

query I rowsort
SELECT - 96 * - + COALESCE ( - 62, + + 35 + ( - 38 ) * - + 44 ) * - - 37 + + 43 + - ( + 31 ) AS col1
----
-220212

onlyif mysql # aggregate syntax: 
query II rowsort label-7746
SELECT 62 * - + 72 AS col2, COUNT( * ) AS col1
----
-4464
1

skipif mysql # not compatible
query II rowsort label-7746
SELECT 62 * - + 72 AS col2, COUNT ( * ) AS col1
----
-4464
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7747
SELECT - MIN( + 79 ) + + - 12
----
-91

skipif mysql # not compatible
query I rowsort label-7747
SELECT - MIN ( + 79 ) + + - 12
----
-91

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7749
SELECT ALL - CASE + 92 WHEN + + 19 + ( - 68 ) - - 1 - - 59 * + 2 * 72 + + + 97 / - CAST( COALESCE ( + 99, 82 ) AS DECIMAL ) + + COUNT( * ) + + 96 THEN COUNT( * ) WHEN - 92 THEN NULL END * + 9 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7749
SELECT ALL - CASE + 92 WHEN + + 19 + ( - 68 ) - - 1 - - 59 * + 2 * 72 + + + 97 / - CAST ( COALESCE ( + 99, 82 ) AS REAL ) + + COUNT ( * ) + + 96 THEN COUNT ( * ) WHEN - 92 THEN NULL END * + 9 col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7750
SELECT COUNT( * ) * 74 + - + 66 * 37 AS col2
----
-2368

skipif mysql # not compatible
query I rowsort label-7750
SELECT COUNT ( * ) * 74 + - + 66 * 37 AS col2
----
-2368

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7751
SELECT ALL + - CAST( NULL AS DECIMAL ) + + + CASE WHEN + 41 IS NULL THEN - ( MIN( 97 ) ) ELSE SUM( DISTINCT - COALESCE ( - + 36, + 47 * 72 / 67 + - 88, 10 ) ) * COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-7751
SELECT ALL + - CAST ( NULL AS REAL ) + + + CASE WHEN + 41 IS NULL THEN - ( MIN ( 97 ) ) ELSE SUM ( DISTINCT - COALESCE ( - + 36, + 47 * 72 / 67 + - 88, 10 ) ) * COUNT ( * ) END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7752
SELECT DISTINCT - COUNT( * ) * + 51 - + - 23 AS col2
----
-28

skipif mysql # not compatible
query I rowsort label-7752
SELECT DISTINCT - COUNT ( * ) * + 51 - + - 23 AS col2
----
-28

query I rowsort
SELECT DISTINCT 71 + - 93 * 34 AS col1
----
-3091

onlyif mysql # DIV for integer division: 
query II rowsort label-7754
SELECT ALL - + 95 * - + 36 AS col0, + 80 DIV 66 AS col1
----
3420
1

skipif mysql # not compatible
query II rowsort label-7754
SELECT ALL - + 95 * - + 36 AS col0, + 80 / 66 AS col1
----
3420
1

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7755
SELECT 20 / + - CAST( NULL AS DECIMAL ) + COUNT( * ) / 41
----
NULL

skipif mysql # not compatible
query I rowsort label-7755
SELECT 20 / + - CAST ( NULL AS REAL ) + COUNT ( * ) / 41
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7756
SELECT ALL + 1 + 83 + MIN( ALL + + 77 )
----
161

skipif mysql # not compatible
query I rowsort label-7756
SELECT ALL + 1 + 83 + MIN ( ALL + + 77 )
----
161

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

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

query I rowsort
SELECT - 25 - 40 AS col2
----
-65

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

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

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

query I rowsort
SELECT ALL - 7 - 23 - + - 61 AS col1
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-7762
SELECT DISTINCT CASE - 20 WHEN + - 39 * + 8 THEN - 28 ELSE COUNT( * ) END * + + 26
----
26

skipif mysql # not compatible
query I rowsort label-7762
SELECT DISTINCT CASE - 20 WHEN + - 39 * + 8 THEN - 28 ELSE COUNT ( * ) END * + + 26
----
26

onlyif mysql # aggregate syntax: 
query III rowsort label-7763
SELECT ALL 16 AS col0, - COUNT( * ) * + 16 AS col0, 4
----
16
-16
4

skipif mysql # not compatible
query III rowsort label-7763
SELECT ALL 16 AS col0, - COUNT ( * ) * + 16 AS col0, 4
----
16
-16
4

query I rowsort
SELECT 19 + + 44 AS col2
----
63

onlyif mysql # aggregate syntax: 
query II rowsort label-7765
SELECT ALL + 19 / ( CASE + + 59 WHEN + 34 THEN + - 76 WHEN + + NULLIF ( + - COUNT( * ), - 60 ) THEN - ( + 86 ) END ), 4 + - 5 AS col1
----
NULL
-1

skipif mysql # not compatible
query II rowsort label-7765
SELECT ALL + 19 / ( CASE + + 59 WHEN + 34 THEN + - 76 WHEN + + NULLIF ( + - COUNT ( * ), - 60 ) THEN - ( + 86 ) END ), 4 + - 5 AS col1
----
NULL
-1

query II rowsort
SELECT 32 * + 24 * + 8 AS col0, 29 * + + 45 AS col1
----
6144
1305

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7767
SELECT 38 + - 69 / + CAST( NULL AS SIGNED ) * - - 7 * 82 * + 14 + + ( - 70 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7767
SELECT 38 + - 69 / + CAST ( NULL AS INTEGER ) * - - 7 * 82 * + 14 + + ( - 70 )
----
NULL

query I rowsort
SELECT ALL 98 * 61
----
5978

query I rowsort
SELECT 9 * 33 col2
----
297

onlyif mysql # aggregate syntax: 
query I rowsort label-7770
SELECT DISTINCT COUNT( * ) * + NULLIF ( + + 38, + COUNT( * ) )
----
38

skipif mysql # not compatible
query I rowsort label-7770
SELECT DISTINCT COUNT ( * ) * + NULLIF ( + + 38, + COUNT ( * ) )
----
38

query II rowsort
SELECT 71 AS col0, 46 + 89 AS col1
----
71
135

query II rowsort
SELECT ALL - 73, - 64 + - 17 AS col2
----
-73
-81

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7774
SELECT + 3 AS col0, - COUNT( CAST( + + CAST( - + 62 AS SIGNED ) AS SIGNED ) )
----
3
-1

skipif mysql # not compatible
query II rowsort label-7774
SELECT + 3 AS col0, - COUNT ( CAST ( + + CAST ( - + 62 AS INTEGER ) AS INTEGER ) )
----
3
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7775
SELECT COUNT( * ) * + + 27
----
27

skipif mysql # not compatible
query I rowsort label-7775
SELECT COUNT ( * ) * + + 27
----
27

query I rowsort
SELECT 73 * - + 95 AS col1
----
-6935

query I rowsort
SELECT + + NULLIF ( + 0, 43 * + 78 * 90 - + 51 ) AS col1
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7778
SELECT 68 DIV + COUNT( * ) - ( + - 9 ) AS col1
----
77

skipif mysql # not compatible
query I rowsort label-7778
SELECT 68 / + COUNT ( * ) - ( + - 9 ) AS col1
----
77

query I rowsort
SELECT DISTINCT 58 + + - 51
----
7

onlyif mysql # aggregate syntax: 
query II rowsort label-7780
SELECT - NULLIF ( 36, - COUNT( * ) ), - 41 + - 62 AS col2
----
-36
-103

skipif mysql # not compatible
query II rowsort label-7780
SELECT - NULLIF ( 36, - COUNT ( * ) ), - 41 + - 62 AS col2
----
-36
-103

onlyif mysql # DIV for integer division: 
query I rowsort label-7781
SELECT ALL - COALESCE ( + 72, + 61, + 10, 99 DIV + - 51 * + 91 ) + ( 85 )
----
13

skipif mysql # not compatible
query I rowsort label-7781
SELECT ALL - COALESCE ( + 72, + 61, + 10, 99 / + - 51 * + 91 ) + ( 85 )
----
13

query I rowsort
SELECT DISTINCT + ( - 90 ) * + + 44 + + - 69
----
-4029

query I rowsort
SELECT DISTINCT - - COALESCE ( 6, - 55 ) + + - 25
----
-19

query I rowsort
SELECT DISTINCT 4 * + + 54 AS col0
----
216

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7785
SELECT - 73 + - + COALESCE ( 53, + 47 + + ( 15 ) ) * 19 * + - CAST( - - ( CAST( NULL AS SIGNED ) ) AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7785
SELECT - 73 + - + COALESCE ( 53, + 47 + + ( 15 ) ) * 19 * + - CAST ( - - ( CAST ( NULL AS INTEGER ) ) AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT DISTINCT - 30 + - 47
----
-77

query I rowsort
SELECT ALL + 72 + - - 72 AS col2
----
144

query I rowsort
SELECT + + 81 AS col2
----
81

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7789
SELECT - 84 * + CASE - 33 WHEN 25 THEN + 35 * + ( - 60 ) + - 44 ELSE COUNT( * ) * + 0 DIV - 23 END - + 26 + 83
----
57

skipif mysql # not compatible
query I rowsort label-7789
SELECT - 84 * + CASE - 33 WHEN 25 THEN + 35 * + ( - 60 ) + - 44 ELSE COUNT ( * ) * + 0 / - 23 END - + 26 + 83
----
57

query II rowsort
SELECT ALL + 15, + COALESCE ( - + 89, - 66, + 26 ) * + 14 AS col1
----
15
-1246

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7791
SELECT DISTINCT 88 - - 0 * + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7791
SELECT DISTINCT 88 - - 0 * + - CAST ( NULL AS INTEGER )
----
NULL

query II rowsort
SELECT 10 AS col0, + 78 AS col1
----
10
78

onlyif mysql # aggregate syntax: 
query I rowsort label-7793
SELECT DISTINCT - + ( COUNT( * ) ) - 31
----
-32

skipif mysql # not compatible
query I rowsort label-7793
SELECT DISTINCT - + ( COUNT ( * ) ) - 31
----
-32

query I rowsort
SELECT - 45 * + 65 * + 76 * - 1 - + 83 + - 58 + 96 * - ( 13 )
----
220911

query I rowsort
SELECT 38 + + 37 AS col0
----
75

onlyif mysql # aggregate syntax: 
query II rowsort label-7796
SELECT ALL COUNT( * ) AS col1, - 74 col1
----
1
-74

skipif mysql # not compatible
query II rowsort label-7796
SELECT ALL COUNT ( * ) AS col1, - 74 col1
----
1
-74

query II rowsort
SELECT - 14 AS col1, - 65 + + + 51 * + + 20 AS col0
----
-14
955

onlyif mysql # aggregate syntax: 
query I rowsort label-7798
SELECT 32 + MAX( - + 94 ) + - 73 * + - 17 AS col1
----
1179

skipif mysql # not compatible
query I rowsort label-7798
SELECT 32 + MAX ( - + 94 ) + - 73 * + - 17 AS col1
----
1179

query II rowsort
SELECT 3 * + + 46 col0, + 74
----
138
74

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7800
SELECT ALL + CAST( NULL AS SIGNED ) * + MIN( - 74 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7800
SELECT ALL + CAST ( NULL AS INTEGER ) * + MIN ( - 74 )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7801
SELECT 54, - COUNT( * ) DIV + + COUNT( + 38 ) AS col0
----
54
-1

skipif mysql # not compatible
query II rowsort label-7801
SELECT 54, - COUNT ( * ) / + + COUNT ( + 38 ) AS col0
----
54
-1

query I rowsort
SELECT 19 - - + 39
----
58

onlyif mysql # DIV for integer division: 
query I rowsort label-7803
SELECT 22 DIV 36
----
0

skipif mysql # not compatible
query I rowsort label-7803
SELECT 22 / 36
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7804
SELECT ALL SUM( ALL - - 53 ) AS col2
----
53

skipif mysql # not compatible
query I rowsort label-7804
SELECT ALL SUM ( ALL - - 53 ) AS col2
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-7805
SELECT DISTINCT SUM( DISTINCT - 49 ) AS col2
----
-49

skipif mysql # not compatible
query I rowsort label-7805
SELECT DISTINCT SUM ( DISTINCT - 49 ) AS col2
----
-49

onlyif mysql # aggregate syntax: 
query II rowsort label-7806
SELECT DISTINCT COUNT( * ) AS col1, 53 AS col2
----
1
53

skipif mysql # not compatible
query II rowsort label-7806
SELECT DISTINCT COUNT ( * ) AS col1, 53 AS col2
----
1
53

query I rowsort
SELECT - 20 + - + ( - 9 ) AS col2
----
-11

query I rowsort
SELECT + NULLIF ( + 94, 36 ) - + 47
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-7809
SELECT + COUNT( * ) - - + 97 + + 58 * + - 17
----
-888

skipif mysql # not compatible
query I rowsort label-7809
SELECT + COUNT ( * ) - - + 97 + + 58 * + - 17
----
-888

query II rowsort
SELECT 34, - 23 * + - 18 AS col1
----
34
414

query I rowsort
SELECT - 90 + 27
----
-63

onlyif mysql # aggregate syntax: 
query II rowsort label-7812
SELECT + COUNT( * ) col0, + 9 - MAX( ALL + ( 61 ) )
----
1
-52

skipif mysql # not compatible
query II rowsort label-7812
SELECT + COUNT ( * ) col0, + 9 - MAX ( ALL + ( 61 ) )
----
1
-52

onlyif mysql # aggregate syntax: 
query II rowsort label-7813
SELECT + SUM( + 30 ) * 29 + + 98 col2, - 60 * + COUNT( * ) + ( 60 )
----
968
0

skipif mysql # not compatible
query II rowsort label-7813
SELECT + SUM ( + 30 ) * 29 + + 98 col2, - 60 * + COUNT ( * ) + ( 60 )
----
968
0

query I rowsort
SELECT ALL 78 * - - 72 AS col1
----
5616

onlyif mysql # aggregate syntax: 
query I rowsort label-7815
SELECT ALL 89 * - COUNT( * ) + 97 * + 51 * - + 65
----
-321644

skipif mysql # not compatible
query I rowsort label-7815
SELECT ALL 89 * - COUNT ( * ) + 97 * + 51 * - + 65
----
-321644

onlyif mysql # aggregate syntax: 
query I rowsort label-7816
SELECT ALL - NULLIF ( - 14, - 72 * - + 13 * - SUM( ALL - 21 ) * - 47 / - 6 - - - 63 + - + 73 * - MAX( ALL 30 ) * - - 26 + + 15 + + NULLIF ( + 60, 56 - 11 ) ) * + 15
----
210

skipif mysql # not compatible
query I rowsort label-7816
SELECT ALL - NULLIF ( - 14, - 72 * - + 13 * - SUM ( ALL - 21 ) * - 47 / - 6 - - - 63 + - + 73 * - MAX ( ALL 30 ) * - - 26 + + 15 + + NULLIF ( + 60, 56 - 11 ) ) * + 15
----
210

onlyif mysql # aggregate syntax: 
query I rowsort label-7817
SELECT + MAX( - 94 )
----
-94

skipif mysql # not compatible
query I rowsort label-7817
SELECT + MAX ( - 94 )
----
-94

query I rowsort
SELECT + + 56 + - 47
----
9

query I rowsort
SELECT - ( 81 ) AS col2
----
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-7820
SELECT + 37 * - 92 + + SUM( ALL - 54 ) + - - 91
----
-3367

skipif mysql # not compatible
query I rowsort label-7820
SELECT + 37 * - 92 + + SUM ( ALL - 54 ) + - - 91
----
-3367

onlyif mysql # aggregate syntax: 
query II rowsort label-7821
SELECT + 34, + 3 * + ( - 97 ) + + 35 * COUNT( * ) * - COUNT( * ) AS col1
----
34
-326

skipif mysql # not compatible
query II rowsort label-7821
SELECT + 34, + 3 * + ( - 97 ) + + 35 * COUNT ( * ) * - COUNT ( * ) AS col1
----
34
-326

query I rowsort
SELECT ALL 41 * + 59 + + 71 AS col1
----
2490

query I rowsort
SELECT + CASE - 97 WHEN + - 1 + - 35 THEN - 63 WHEN - 34 THEN NULL END AS col0
----
NULL

query I rowsort
SELECT ALL NULLIF ( + - 67, 96 ) * 39
----
-2613

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7825
SELECT ALL + 47 * - - 84 * - - NULLIF ( - 18, + + COUNT( * ) ) - + ( - 69 ) DIV 69 + - - 80
----
-70983

skipif mysql # not compatible
query I rowsort label-7825
SELECT ALL + 47 * - - 84 * - - NULLIF ( - 18, + + COUNT ( * ) ) - + ( - 69 ) / 69 + - - 80
----
-70983

onlyif mysql # aggregate syntax: 
query II rowsort label-7826
SELECT + + 43 + 17 AS col2, - 67 - - + NULLIF ( 84, + 98 + COUNT( * ) * + + 37 ) * + 11 AS col1
----
60
857

skipif mysql # not compatible
query II rowsort label-7826
SELECT + + 43 + 17 AS col2, - 67 - - + NULLIF ( 84, + 98 + COUNT ( * ) * + + 37 ) * + 11 AS col1
----
60
857

query I rowsort
SELECT + - 22 col2
----
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-7828
SELECT - - MIN( + 48 ) * 40
----
1920

skipif mysql # not compatible
query I rowsort label-7828
SELECT - - MIN ( + 48 ) * 40
----
1920

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7829
SELECT - + CASE 29 WHEN 78 + + + 94 * ( + - 92 ) THEN NULL WHEN + + 8 * - 81 THEN - CAST( - COUNT( * ) AS SIGNED ) / 67 + NULLIF ( - 26, + COUNT( * ) + - + COUNT( * ) ) * - - ( + - 29 ) + 91 + - + 50 END + + COUNT( + 47 ) + + 45, - 33 * + - 9 * + 38 AS col1
----
NULL
11286

skipif mysql # not compatible
query II rowsort label-7829
SELECT - + CASE 29 WHEN 78 + + + 94 * ( + - 92 ) THEN NULL WHEN + + 8 * - 81 THEN - CAST ( - COUNT ( * ) AS INTEGER ) / 67 + NULLIF ( - 26, + COUNT ( * ) + - + COUNT ( * ) ) * - - ( + - 29 ) + 91 + - + 50 END + + COUNT ( + 47 ) + + 45, - 33 * + - 9 * + 38 AS col1
----
NULL
11286

onlyif mysql # aggregate syntax: 
query I rowsort label-7830
SELECT DISTINCT 22 * - SUM( DISTINCT - 42 ) AS col1
----
924

skipif mysql # not compatible
query I rowsort label-7830
SELECT DISTINCT 22 * - SUM ( DISTINCT - 42 ) AS col1
----
924

query I rowsort
SELECT + 63 * + + 51
----
3213

query I rowsort
SELECT + 39 - + 92 col1
----
-53

query I rowsort
SELECT ALL COALESCE ( - + 7, + - 18 + 47 + 98 - - ( + NULLIF ( + 14, 5 ) ), - COALESCE ( + 5, - ( + + 2 ) + - 47 ) )
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-7834
SELECT - 57 + COUNT( * ) AS col0
----
-56

skipif mysql # not compatible
query I rowsort label-7834
SELECT - 57 + COUNT ( * ) AS col0
----
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-7835
SELECT - COUNT( * ) * - - COUNT( * )
----
-1

skipif mysql # not compatible
query I rowsort label-7835
SELECT - COUNT ( * ) * - - COUNT ( * )
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7836
SELECT ALL + 83 * + + COALESCE ( - 13, + 8 * - ( + CAST( NULL AS SIGNED ) ) + - - 11, 38 )
----
-1079

skipif mysql # not compatible
query I rowsort label-7836
SELECT ALL + 83 * + + COALESCE ( - 13, + 8 * - ( + CAST ( NULL AS INTEGER ) ) + - - 11, 38 )
----
-1079

query I rowsort
SELECT + 97 * + + ( 77 ) AS col2
----
7469

query I rowsort
SELECT - ( + + 27 ) + + ( 15 ) AS col2
----
-12

query I rowsort
SELECT DISTINCT + 66 * + 82 AS col1
----
5412

query II rowsort
SELECT DISTINCT ( - 8 ) col1, 18
----
-8
18

query I rowsort
SELECT DISTINCT + 39 + - - 12
----
51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7842
SELECT ALL CAST( + 58 AS SIGNED )
----
58

skipif mysql # not compatible
query I rowsort label-7842
SELECT ALL CAST ( + 58 AS INTEGER )
----
58

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7843
SELECT DISTINCT - COUNT( * ) + - - 30 DIV + - 4 AS col1
----
-8

skipif mysql # not compatible
query I rowsort label-7843
SELECT DISTINCT - COUNT ( * ) + - - 30 / + - 4 AS col1
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-7844
SELECT DISTINCT NULLIF ( - COALESCE ( - COUNT( ALL 94 ), - - 41, + + 2 + - COUNT( * ) ), 51 )
----
1

skipif mysql # not compatible
query I rowsort label-7844
SELECT DISTINCT NULLIF ( - COALESCE ( - COUNT ( ALL 94 ), - - 41, + + 2 + - COUNT ( * ) ), 51 )
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-7845
SELECT ALL 81 DIV - 77 + - 57 col0
----
-58

skipif mysql # not compatible
query I rowsort label-7845
SELECT ALL 81 / - 77 + - 57 col0
----
-58

onlyif mysql # aggregate syntax: 
query II rowsort label-7846
SELECT DISTINCT + ( + COUNT( * ) ) AS col0, - 90 + - - 99 AS col2
----
1
9

skipif mysql # not compatible
query II rowsort label-7846
SELECT DISTINCT + ( + COUNT ( * ) ) AS col0, - 90 + - - 99 AS col2
----
1
9

onlyif mysql # aggregate syntax: 
query I rowsort label-7847
SELECT ALL + + CASE - COUNT( * ) WHEN + - 96 - - - 17 - - + COUNT( * ) * COALESCE ( - SUM( DISTINCT 57 ), - + 70 ) * 60 / 46 THEN 61 * + 2 END
----
NULL

skipif mysql # not compatible
query I rowsort label-7847
SELECT ALL + + CASE - COUNT ( * ) WHEN + - 96 - - - 17 - - + COUNT ( * ) * COALESCE ( - SUM ( DISTINCT 57 ), - + 70 ) * 60 / 46 THEN 61 * + 2 END
----
NULL

query I rowsort
SELECT - - 91 - + 30 * - - 98 + - 94 AS col1
----
-2943

query II rowsort
SELECT + ( + ( + 26 ) ), + 18 * + - ( - 85 ) AS col2
----
26
1530

onlyif mysql # DIV for integer division: 
query I rowsort label-7850
SELECT ALL 89 DIV 45 * - 79 + - 58
----
-137

skipif mysql # not compatible
query I rowsort label-7850
SELECT ALL 89 / 45 * - 79 + - 58
----
-137

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7851
SELECT - ( + 46 ) * + - 12 AS col0, 80 + + CASE ( + CAST( NULL AS SIGNED ) ) WHEN + - 92 THEN - ( 45 ) END + + MAX( ALL - 40 )
----
552
NULL

skipif mysql # not compatible
query II rowsort label-7851
SELECT - ( + 46 ) * + - 12 AS col0, 80 + + CASE ( + CAST ( NULL AS INTEGER ) ) WHEN + - 92 THEN - ( 45 ) END + + MAX ( ALL - 40 )
----
552
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7852
SELECT ALL + 93 DIV - 78 - + 4
----
-5

skipif mysql # not compatible
query I rowsort label-7852
SELECT ALL + 93 / - 78 - + 4
----
-5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7853
SELECT + + 58 * + COUNT( * ) * - - 75 + + - CAST( 84 AS SIGNED ) AS col2
----
4266

skipif mysql # not compatible
query I rowsort label-7853
SELECT + + 58 * + COUNT ( * ) * - - 75 + + - CAST ( 84 AS INTEGER ) AS col2
----
4266

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7854
SELECT ALL - 28 * + - 39 - 28 - 49 * 62 + + 79 * + 78 + + + 42 + - 87 * + + 42 + + CAST( + 3 AS SIGNED )
----
579

skipif mysql # not compatible
query I rowsort label-7854
SELECT ALL - 28 * + - 39 - 28 - 49 * 62 + + 79 * + 78 + + + 42 + - 87 * + + 42 + + CAST ( + 3 AS INTEGER )
----
579

query I rowsort
SELECT - 17 * + 65 - - + 43 + - 56
----
-1118

onlyif mysql # aggregate syntax: 
query I rowsort label-7856
SELECT + - COUNT( * ) - + 27 - - 40 + - - 63
----
75

skipif mysql # not compatible
query I rowsort label-7856
SELECT + - COUNT ( * ) - + 27 - - 40 + - - 63
----
75

query I rowsort
SELECT + + 11 AS col2
----
11

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7858
SELECT + 69 * - NULLIF ( - 4, - 47 * ( CAST( + COUNT( * ) AS SIGNED ) ) - + 48 + - 2 ) * - 66 * + 9 * - 70 AS col0
----
11476080

skipif mysql # not compatible
query I rowsort label-7858
SELECT + 69 * - NULLIF ( - 4, - 47 * ( CAST ( + COUNT ( * ) AS INTEGER ) ) - + 48 + - 2 ) * - 66 * + 9 * - 70 AS col0
----
11476080

onlyif mysql # DIV for integer division: 
query I rowsort label-7859
SELECT ALL 75 DIV - 42
----
-1

skipif mysql # not compatible
query I rowsort label-7859
SELECT ALL 75 / - 42
----
-1

query I rowsort
SELECT + 81 * + 9
----
729

query I rowsort
SELECT - ( + 97 )
----
-97

query I rowsort
SELECT + 16 + - - 22 AS col1
----
38

onlyif mysql # DIV for integer division: 
query I rowsort label-7863
SELECT 38 DIV 49
----
0

skipif mysql # not compatible
query I rowsort label-7863
SELECT 38 / 49
----
0

query II rowsort
SELECT 87 AS col1, 80
----
87
80

onlyif mysql # aggregate syntax: 
query I rowsort label-7865
SELECT NULLIF ( - 58, - - CASE COUNT( * ) WHEN - + 13 - COALESCE ( - 72, + 79 + 89, - 77 ) THEN + 89 * 1 / - 92 ELSE NULL END ) + - + 84
----
-142

skipif mysql # not compatible
query I rowsort label-7865
SELECT NULLIF ( - 58, - - CASE COUNT ( * ) WHEN - + 13 - COALESCE ( - 72, + 79 + 89, - 77 ) THEN + 89 * 1 / - 92 ELSE NULL END ) + - + 84
----
-142

onlyif mysql # DIV for integer division: 
query I rowsort label-7866
SELECT 28 DIV - 2 AS col2
----
-14

skipif mysql # not compatible
query I rowsort label-7866
SELECT 28 / - 2 AS col2
----
-14

query I rowsort
SELECT 73 * - 92
----
-6716

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7868
SELECT CAST( NULL AS SIGNED ) - - - 72 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7868
SELECT CAST ( NULL AS INTEGER ) - - - 72 col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7869
SELECT ALL - 25 + + COUNT( * )
----
-24

skipif mysql # not compatible
query I rowsort label-7869
SELECT ALL - 25 + + COUNT ( * )
----
-24

query I rowsort
SELECT 63 + - + 92 + - 29 + + 27
----
-31

query II rowsort
SELECT DISTINCT 3, - NULLIF ( 58, + 82 ) AS col1
----
3
-58

query I rowsort
SELECT 79 - 79 AS col0
----
0

query II rowsort
SELECT - 82 - - 69 + + + 30 * + - 82, 31 AS col2
----
-2473
31

query I rowsort
SELECT - - ( + + 31 )
----
31

query I rowsort
SELECT + 26 + + 77 AS col1
----
103

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7876
SELECT - CAST( NULL AS SIGNED ) + - 59 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7876
SELECT - CAST ( NULL AS INTEGER ) + - 59 AS col1
----
NULL

query I rowsort
SELECT + 18 * 78 AS col0
----
1404

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7878
SELECT ALL - - COUNT( DISTINCT - CAST( NULL AS SIGNED ) ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-7878
SELECT ALL - - COUNT ( DISTINCT - CAST ( NULL AS INTEGER ) ) AS col0
----
0

query I rowsort
SELECT ALL + 73 - 54 - + - 3 + 9 * - 1 + - 54
----
-41

onlyif mysql # DIV for integer division: 
query I rowsort label-7880
SELECT + 78 DIV - - ( + - 72 ) + - ( + 32 ) * + 57 * + 14
----
-25537

skipif mysql # not compatible
query I rowsort label-7880
SELECT + 78 / - - ( + - 72 ) + - ( + 32 ) * + 57 * + 14
----
-25537

query I rowsort
SELECT ALL - + 15 col0
----
-15

query I rowsort
SELECT + 85 * + 83 AS col1
----
7055

onlyif mysql # aggregate syntax: 
query I rowsort label-7883
SELECT COUNT( * ) + + 66 AS col1
----
67

skipif mysql # not compatible
query I rowsort label-7883
SELECT COUNT ( * ) + + 66 AS col1
----
67

onlyif mysql # aggregate syntax: 
query I rowsort label-7884
SELECT + CASE - 84 WHEN - - 19 THEN - COALESCE ( COUNT( * ), 85, - - NULLIF ( - 53, - + 72 + + 13 / COUNT( * ) ) - - + 19 ) ELSE + - 18 END * - 67 col2
----
1206

skipif mysql # not compatible
query I rowsort label-7884
SELECT + CASE - 84 WHEN - - 19 THEN - COALESCE ( COUNT ( * ), 85, - - NULLIF ( - 53, - + 72 + + 13 / COUNT ( * ) ) - - + 19 ) ELSE + - 18 END * - 67 col2
----
1206

query II rowsort
SELECT + + 59, 23 + - - 89 AS col0
----
59
112

query I rowsort
SELECT + - ( 98 ) AS col1
----
-98

query I rowsort
SELECT - 34 * + 86
----
-2924

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7888
SELECT - - 95 * + ( - + COALESCE ( 62, MIN( - + 10 ) DIV + - 44 DIV 39 + + 38, + 31 ) ) + + COALESCE ( + + 2, - 91 + + 1 ) * - 32 - 85 AS col2
----
-6039

skipif mysql # not compatible
query I rowsort label-7888
SELECT - - 95 * + ( - + COALESCE ( 62, MIN ( - + 10 ) / + - 44 / 39 + + 38, + 31 ) ) + + COALESCE ( + + 2, - 91 + + 1 ) * - 32 - 85 AS col2
----
-6039

query II rowsort
SELECT 42 col2, + 22
----
42
22

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7890
SELECT ALL - + COALESCE ( MIN( - ( + 11 ) ), 75 DIV - 58, 23 ) AS col0
----
11

skipif mysql # not compatible
query I rowsort label-7890
SELECT ALL - + COALESCE ( MIN ( - ( + 11 ) ), 75 / - 58, 23 ) AS col0
----
11

query II rowsort
SELECT ALL - 71 col0, 66
----
-71
66

query I rowsort
SELECT DISTINCT 69 + - 1
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-7893
SELECT 18 * - ( COUNT( * ) ) AS col0
----
-18

skipif mysql # not compatible
query I rowsort label-7893
SELECT 18 * - ( COUNT ( * ) ) AS col0
----
-18

query I rowsort
SELECT - 91 * + - 57 - - 55 AS col0
----
5242

onlyif mysql # aggregate syntax: 
query I rowsort label-7895
SELECT 67 * - - COUNT( * )
----
67

skipif mysql # not compatible
query I rowsort label-7895
SELECT 67 * - - COUNT ( * )
----
67

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7896
SELECT CASE + + ( + 48 ) WHEN - 12 / COALESCE ( - 8, + 9 * + + CASE - 11 WHEN - + 87 THEN NULL ELSE + COALESCE ( - 80, + + 9, 95, + - COUNT( * ) * - AVG ( ALL + COALESCE ( + + 5, 9 ) ) + - - CAST( COUNT( * ) AS SIGNED ) ) - + 4 END, - - 99 * + + 62 + + MAX( ALL - NULLIF ( - 46, - 83 ) ) ) THEN 50 + 1 END + + ( + - CASE 9 WHEN + + COUNT( * ) THEN NULL WHEN 79 THEN NULL WHEN + 59 + - 80 * + 41 THEN + 70 * - 92 END )
----
NULL

skipif mysql # not compatible
query I rowsort label-7896
SELECT CASE + + ( + 48 ) WHEN - 12 / COALESCE ( - 8, + 9 * + + CASE - 11 WHEN - + 87 THEN NULL ELSE + COALESCE ( - 80, + + 9, 95, + - COUNT ( * ) * - AVG ( ALL + COALESCE ( + + 5, 9 ) ) + - - CAST ( COUNT ( * ) AS INTEGER ) ) - + 4 END, - - 99 * + + 62 + + MAX ( ALL - NULLIF ( - 46, - 83 ) ) ) THEN 50 + 1 END + + ( + - CASE 9 WHEN + + COUNT ( * ) THEN NULL WHEN 79 THEN NULL WHEN + 59 + - 80 * + 41 THEN + 70 * - 92 END )
----
NULL

query I rowsort
SELECT DISTINCT + ( + - 97 ) + 4
----
-93

query II rowsort
SELECT DISTINCT 55 + + 19 AS col0, 60 AS col1
----
74
60

onlyif mysql # DIV for integer division: 
query I rowsort label-7899
SELECT DISTINCT 67 DIV + 21 AS col1
----
3

skipif mysql # not compatible
query I rowsort label-7899
SELECT DISTINCT 67 / + 21 AS col1
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7900
SELECT COUNT( DISTINCT + - 79 ) * - CAST( + NULLIF ( + SUM( ALL 40 ), - + CAST( - 75 AS SIGNED ) ) AS SIGNED ) / + CAST( NULL AS SIGNED ) / + AVG ( ALL - - 32 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7900
SELECT COUNT ( DISTINCT + - 79 ) * - CAST ( + NULLIF ( + SUM ( ALL 40 ), - + CAST ( - 75 AS INTEGER ) ) AS INTEGER ) / + CAST ( NULL AS INTEGER ) / + AVG ( ALL - - 32 ) AS col2
----
NULL

query I rowsort
SELECT DISTINCT 19 - 59
----
-40

query I rowsort
SELECT - 24 * - 39
----
936

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7903
SELECT + COUNT( * ) DIV - 94, NULLIF ( - 73, + 79 * - - 56 ) * 92 col0
----
0
-6716

skipif mysql # not compatible
query II rowsort label-7903
SELECT + COUNT ( * ) / - 94, NULLIF ( - 73, + 79 * - - 56 ) * 92 col0
----
0
-6716

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7904
SELECT ALL - 3 - 81 + - - COUNT( * ) * NULLIF ( + + COUNT( * ), CAST( 0 AS SIGNED ) ) + 34 col0
----
-49

skipif mysql # not compatible
query I rowsort label-7904
SELECT ALL - 3 - 81 + - - COUNT ( * ) * NULLIF ( + + COUNT ( * ), CAST ( 0 AS INTEGER ) ) + 34 col0
----
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-7905
SELECT ALL + - 21 - - 54 + + COUNT( * ) AS col2
----
34

skipif mysql # not compatible
query I rowsort label-7905
SELECT ALL + - 21 - - 54 + + COUNT ( * ) AS col2
----
34

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7906
SELECT + - COALESCE ( 33, + - 80 + - 19 + + CAST( NULL AS SIGNED ) )
----
-33

skipif mysql # not compatible
query I rowsort label-7906
SELECT + - COALESCE ( 33, + - 80 + - 19 + + CAST ( NULL AS INTEGER ) )
----
-33

query I rowsort
SELECT 27 + 61 AS col1
----
88

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7908
SELECT + SUM( DISTINCT COALESCE ( 9, 69 DIV - 5 ) )
----
9

skipif mysql # not compatible
query I rowsort label-7908
SELECT + SUM ( DISTINCT COALESCE ( 9, 69 / - 5 ) )
----
9

query I rowsort
SELECT ALL - - 66 AS col0
----
66

query I rowsort
SELECT - 40 * + - 76
----
3040

onlyif mysql # aggregate syntax: 
query II rowsort label-7911
SELECT CASE - + ( 31 ) WHEN COUNT( ALL 93 ) THEN NULL ELSE + MIN( DISTINCT + 92 ) END AS col2, + 67 AS col0
----
92
67

skipif mysql # not compatible
query II rowsort label-7911
SELECT CASE - + ( 31 ) WHEN COUNT ( ALL 93 ) THEN NULL ELSE + MIN ( DISTINCT + 92 ) END AS col2, + 67 AS col0
----
92
67

query I rowsort
SELECT - + 27 * + - 48 - + + 78 AS col2
----
1218

onlyif mysql # aggregate syntax: 
query I rowsort label-7913
SELECT ALL - 77 * CASE - + 95 WHEN + 9 THEN COUNT( * ) END + + 75 * + - 74
----
NULL

skipif mysql # not compatible
query I rowsort label-7913
SELECT ALL - 77 * CASE - + 95 WHEN + 9 THEN COUNT ( * ) END + + 75 * + - 74
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7914
SELECT CASE - 74 WHEN + 14 THEN - + NULLIF ( 90, + + ( - - 47 ) ) ELSE NULL END - - + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-7914
SELECT CASE - 74 WHEN + 14 THEN - + NULLIF ( 90, + + ( - - 47 ) ) ELSE NULL END - - + COUNT ( * )
----
NULL

query I rowsort
SELECT ALL + 26 * + ( - 66 )
----
-1716

query I rowsort
SELECT DISTINCT - CASE - - 54 WHEN - 22 THEN 44 END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7917
SELECT - 92 DIV + 75 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-7917
SELECT - 92 / + 75 AS col2
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-7918
SELECT + 22 DIV - 13
----
-1

skipif mysql # not compatible
query I rowsort label-7918
SELECT + 22 / - 13
----
-1

query I rowsort
SELECT + 80 + + 60
----
140

onlyif mysql # aggregate syntax: 
query I rowsort label-7920
SELECT - 4 * - SUM( ALL + 69 ) * 71
----
19596

skipif mysql # not compatible
query I rowsort label-7920
SELECT - 4 * - SUM ( ALL + 69 ) * 71
----
19596

onlyif mysql # aggregate syntax: 
query I rowsort label-7921
SELECT - CASE + 39 WHEN - 3 + + - SUM( 85 ) * - + 7 + + + AVG ( + 64 ) THEN NULL ELSE + - 91 + - 63 - + 63 * 14 END - - 18 - - 86 * + ( 8 ) * - NULLIF ( 53, 54 + + - 51 ) col1
----
-35410

skipif mysql # not compatible
query I rowsort label-7921
SELECT - CASE + 39 WHEN - 3 + + - SUM ( 85 ) * - + 7 + + + AVG ( + 64 ) THEN NULL ELSE + - 91 + - 63 - + 63 * 14 END - - 18 - - 86 * + ( 8 ) * - NULLIF ( 53, 54 + + - 51 ) col1
----
-35410

query I rowsort
SELECT ALL + 25 + - 21 * + 29
----
-584

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-7923
SELECT ALL + 83 col2, - CAST( NULL AS DECIMAL )
----
83
NULL

skipif mysql # not compatible
query II rowsort label-7923
SELECT ALL + 83 col2, - CAST ( NULL AS REAL )
----
83
NULL

query I rowsort
SELECT - 68 * 17
----
-1156

onlyif mysql # aggregate syntax: 
query I rowsort label-7925
SELECT + 74 * 27 * + 99 + + - COUNT( * ) + + 0 * 55
----
197801

skipif mysql # not compatible
query I rowsort label-7925
SELECT + 74 * 27 * + 99 + + - COUNT ( * ) + + 0 * 55
----
197801

query I rowsort
SELECT ALL + 7 - 25
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-7927
SELECT - COALESCE ( + + 65, - - 71 + COUNT( * ), - - COUNT( * ) - + 63 ) + - 48 AS col0
----
-113

skipif mysql # not compatible
query I rowsort label-7927
SELECT - COALESCE ( + + 65, - - 71 + COUNT ( * ), - - COUNT ( * ) - + 63 ) + - 48 AS col0
----
-113

query I rowsort
SELECT ALL ( 45 ) AS col2
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-7929
SELECT - COUNT( DISTINCT - 68 )
----
-1

skipif mysql # not compatible
query I rowsort label-7929
SELECT - COUNT ( DISTINCT - 68 )
----
-1

query I rowsort
SELECT - NULLIF ( - - 89, + 38 * - 8 )
----
-89

query I rowsort
SELECT - - 12 - + 11
----
1

query I rowsort
SELECT - - 54 * + 47 * - 82 * - - 33 col0
----
-6867828

onlyif mysql # aggregate syntax: 
query I rowsort label-7933
SELECT - COUNT( * ) + + 68
----
67

skipif mysql # not compatible
query I rowsort label-7933
SELECT - COUNT ( * ) + + 68
----
67

onlyif mysql # aggregate syntax: 
query I rowsort label-7934
SELECT DISTINCT CASE 83 WHEN + 93 THEN 42 WHEN + 3 THEN + COUNT( * ) END * + + 84
----
NULL

skipif mysql # not compatible
query I rowsort label-7934
SELECT DISTINCT CASE 83 WHEN + 93 THEN 42 WHEN + 3 THEN + COUNT ( * ) END * + + 84
----
NULL

query I rowsort
SELECT + 44 + - + 69 * + 53 AS col0
----
-3613

query I rowsort
SELECT ALL 88 * - + 20
----
-1760

onlyif mysql # aggregate syntax: 
query I rowsort label-7937
SELECT + COUNT( 71 ) * 24 * - + COUNT( * )
----
-24

skipif mysql # not compatible
query I rowsort label-7937
SELECT + COUNT ( 71 ) * 24 * - + COUNT ( * )
----
-24

onlyif mysql # DIV for integer division: 
query II rowsort label-7938
SELECT ALL 27 DIV - + ( - - 89 ) AS col1, + 93 * - + 86 AS col2
----
0
-7998

skipif mysql # not compatible
query II rowsort label-7938
SELECT ALL 27 / - + ( - - 89 ) AS col1, + 93 * - + 86 AS col2
----
0
-7998

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7939
SELECT DISTINCT - CAST( NULL AS SIGNED ), 3 + + - CAST( NULL AS SIGNED ) - - 91
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-7939
SELECT DISTINCT - CAST ( NULL AS INTEGER ), 3 + + - CAST ( NULL AS INTEGER ) - - 91
----
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7940
SELECT - COUNT( * ) + + + CAST( + + 36 AS SIGNED ) AS col1
----
35

skipif mysql # not compatible
query I rowsort label-7940
SELECT - COUNT ( * ) + + + CAST ( + + 36 AS INTEGER ) AS col1
----
35

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7941
SELECT + - COUNT( - + 30 ) - - ( + + ( + - 17 ) ) - CAST( NULL AS SIGNED ) * - - 81 / - 63 + + MAX( ALL + 76 ) AS col0, 62
----
NULL
62

skipif mysql # not compatible
query II rowsort label-7941
SELECT + - COUNT ( - + 30 ) - - ( + + ( + - 17 ) ) - CAST ( NULL AS INTEGER ) * - - 81 / - 63 + + MAX ( ALL + 76 ) AS col0, 62
----
NULL
62

onlyif mysql # aggregate syntax: 
query II rowsort label-7942
SELECT ALL + COUNT( + 40 ) * + - 12 AS col0, + MIN( - 95 ) AS col2
----
-12
-95

skipif mysql # not compatible
query II rowsort label-7942
SELECT ALL + COUNT ( + 40 ) * + - 12 AS col0, + MIN ( - 95 ) AS col2
----
-12
-95

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7943
SELECT + + CAST( NULL AS SIGNED ) + + - 22
----
NULL

skipif mysql # not compatible
query I rowsort label-7943
SELECT + + CAST ( NULL AS INTEGER ) + + - 22
----
NULL

query II rowsort
SELECT + - 47 + ( + 66 ) AS col0, - 15
----
19
-15

query I rowsort
SELECT + + 36 + - 34 AS col1
----
2

query I rowsort
SELECT ALL NULLIF ( - + 44, + 72 - - 59 ) * + 70 AS col0
----
-3080

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7947
SELECT ALL - 80 DIV + 27 + - COUNT( * ) + 57
----
54

skipif mysql # not compatible
query I rowsort label-7947
SELECT ALL - 80 / + 27 + - COUNT ( * ) + 57
----
54

onlyif mysql # aggregate syntax: 
query II rowsort label-7948
SELECT - + 65 * MIN( ALL - 5 ) + + - 7 + 32 AS col2, 61 * MAX( - 37 )
----
350
-2257

skipif mysql # not compatible
query II rowsort label-7948
SELECT - + 65 * MIN ( ALL - 5 ) + + - 7 + 32 AS col2, 61 * MAX ( - 37 )
----
350
-2257

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7949
SELECT DISTINCT + COUNT( * ) DIV - - 95 + + 54 col2
----
54

skipif mysql # not compatible
query I rowsort label-7949
SELECT DISTINCT + COUNT ( * ) / - - 95 + + 54 col2
----
54

query I rowsort
SELECT + 87 + - + 74 + 27 * 52
----
1417

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7951
SELECT DISTINCT + - COUNT( * ) * - 4 + + COUNT( + 57 ) * + 4 DIV - 48 + + ( ( + 13 ) ) AS col1
----
17

skipif mysql # not compatible
query I rowsort label-7951
SELECT DISTINCT + - COUNT ( * ) * - 4 + + COUNT ( + 57 ) * + 4 / - 48 + + ( ( + 13 ) ) AS col1
----
17

query I rowsort
SELECT + 81 * 13 * + - 31 AS col0
----
-32643

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7953
SELECT DISTINCT + 96 AS col0, CAST( NULL AS SIGNED )
----
96
NULL

skipif mysql # not compatible
query II rowsort label-7953
SELECT DISTINCT + 96 AS col0, CAST ( NULL AS INTEGER )
----
96
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7954
SELECT ( - 99 ), ( + COUNT( * ) ) - 65 AS col1
----
-99
-64

skipif mysql # not compatible
query II rowsort label-7954
SELECT ( - 99 ), ( + COUNT ( * ) ) - 65 AS col1
----
-99
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-7955
SELECT COUNT( * ) * + + 16 + - COUNT( * ) col0
----
15

skipif mysql # not compatible
query I rowsort label-7955
SELECT COUNT ( * ) * + + 16 + - COUNT ( * ) col0
----
15

query I rowsort
SELECT + ( + + 42 ) AS col1
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-7957
SELECT ALL 83 * COUNT( * ) + - COUNT( * ) * + - 29
----
112

skipif mysql # not compatible
query I rowsort label-7957
SELECT ALL 83 * COUNT ( * ) + - COUNT ( * ) * + - 29
----
112

onlyif mysql # aggregate syntax: 
query I rowsort label-7958
SELECT ALL ( - CASE 12 WHEN - 23 THEN - 99 + - 26 END ) * + + COUNT( * ) + - ( - - ( + 12 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-7958
SELECT ALL ( - CASE 12 WHEN - 23 THEN - 99 + - 26 END ) * + + COUNT ( * ) + - ( - - ( + 12 ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7959
SELECT + COUNT( - 82 ) + - 27 + - + 31 * + + 14 * + 61 + - ( + + 63 )
----
-26563

skipif mysql # not compatible
query I rowsort label-7959
SELECT + COUNT ( - 82 ) + - 27 + - + 31 * + + 14 * + 61 + - ( + + 63 )
----
-26563

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7960
SELECT DISTINCT CAST( + 26 AS SIGNED ) * + - 29 + + 51 AS col1
----
-703

skipif mysql # not compatible
query I rowsort label-7960
SELECT DISTINCT CAST ( + 26 AS INTEGER ) * + - 29 + + 51 AS col1
----
-703

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7961
SELECT ALL 20 * + ( - + CAST( COUNT( * ) AS SIGNED ) ) - + COUNT( * ) + + MIN( DISTINCT - 55 ) DIV - 92 AS col1
----
-21

skipif mysql # not compatible
query I rowsort label-7961
SELECT ALL 20 * + ( - + CAST ( COUNT ( * ) AS INTEGER ) ) - + COUNT ( * ) + + MIN ( DISTINCT - 55 ) / - 92 AS col1
----
-21

query I rowsort
SELECT - ( 48 ) * 35
----
-1680

onlyif mysql # DIV for integer division: 
query I rowsort label-7963
SELECT ALL + 94 DIV + 95 col1
----
0

skipif mysql # not compatible
query I rowsort label-7963
SELECT ALL + 94 / + 95 col1
----
0

query I rowsort
SELECT + 91 - - - 62 col1
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-7965
SELECT NULLIF ( - 23, COUNT( * ) ) AS col2
----
-23

skipif mysql # not compatible
query I rowsort label-7965
SELECT NULLIF ( - 23, COUNT ( * ) ) AS col2
----
-23

onlyif mysql # aggregate syntax: 
query II rowsort label-7966
SELECT 94 * - - 30 + + + COALESCE ( - 29, - COUNT( * ) * - 0 ) AS col0, + 66 col0
----
2791
66

skipif mysql # not compatible
query II rowsort label-7966
SELECT 94 * - - 30 + + + COALESCE ( - 29, - COUNT ( * ) * - 0 ) AS col0, + 66 col0
----
2791
66

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7967
SELECT + ( - + 19 ) * 44 * + + 52 * + ( 63 ) + - COUNT( * ) DIV - 31 + - + 29 + + - 6
----
-2738771

skipif mysql # not compatible
query I rowsort label-7967
SELECT + ( - + 19 ) * 44 * + + 52 * + ( 63 ) + - COUNT ( * ) / - 31 + - + 29 + + - 6
----
-2738771

query I rowsort
SELECT - 66 + - 35 AS col1
----
-101

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7969
SELECT + CAST( NULL AS DECIMAL ) * 56 * - + 14 / + 33 + + CAST( 24 AS SIGNED ) + + 51 + + 35 * - COUNT( * ) * - 31 * 40 * + - 80
----
NULL

skipif mysql # not compatible
query I rowsort label-7969
SELECT + CAST ( NULL AS REAL ) * 56 * - + 14 / + 33 + + CAST ( 24 AS INTEGER ) + + 51 + + 35 * - COUNT ( * ) * - 31 * 40 * + - 80
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7970
SELECT ALL 43 DIV - 88 * 19 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-7970
SELECT ALL 43 / - 88 * 19 AS col2
----
0

query I rowsort
SELECT ALL + - ( 13 ) * - 68 AS col0
----
884

query II rowsort
SELECT - 65 AS col1, + 5
----
-65
5

query I rowsort
SELECT DISTINCT + 53 * 49 AS col2
----
2597

onlyif mysql # aggregate syntax: 
query I rowsort label-7974
SELECT - CASE + - 69 WHEN + COUNT( * ) THEN - COALESCE ( + + 71, - 99, - 12 + + 99 ) * + 53 ELSE - ( - 80 ) + 87 - + 40 + ( 60 ) * - - 78 * + - 76 END * - 89 AS col0
----
-31644217

skipif mysql # not compatible
query I rowsort label-7974
SELECT - CASE + - 69 WHEN + COUNT ( * ) THEN - COALESCE ( + + 71, - 99, - 12 + + 99 ) * + 53 ELSE - ( - 80 ) + 87 - + 40 + ( 60 ) * - - 78 * + - 76 END * - 89 AS col0
----
-31644217

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7975
SELECT - + ( - 16 ) * 77 DIV - - 32 AS col0, - 67 * COALESCE ( 71, + + 9 * 92 ) + - + COALESCE ( + MIN( 67 ), - - 40 ) * + 77 + + COUNT( * )
----
38
-9915

skipif mysql # not compatible
query II rowsort label-7975
SELECT - + ( - 16 ) * 77 / - - 32 AS col0, - 67 * COALESCE ( 71, + + 9 * 92 ) + - + COALESCE ( + MIN ( 67 ), - - 40 ) * + 77 + + COUNT ( * )
----
38
-9915

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7976
SELECT - + 25 + + 8 + - + CASE SUM( 1 ) WHEN + 27 THEN - + 8 * - MAX( ALL 12 ) * + 47 - - 31 * NULLIF ( - + 74, COUNT( * ) ) WHEN - MIN( + 66 ) / 88 + - 54 THEN - - 22 ELSE + 88 * 33 END + + + COUNT( * ) * + - 79 - + 63 * - - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7976
SELECT - + 25 + + 8 + - + CASE SUM ( 1 ) WHEN + 27 THEN - + 8 * - MAX ( ALL 12 ) * + 47 - - 31 * NULLIF ( - + 74, COUNT ( * ) ) WHEN - MIN ( + 66 ) / 88 + - 54 THEN - - 22 ELSE + 88 * 33 END + + + COUNT ( * ) * + - 79 - + 63 * - - CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7977
SELECT - - COUNT( * ), - 91 col0
----
1
-91

skipif mysql # not compatible
query II rowsort label-7977
SELECT - - COUNT ( * ), - 91 col0
----
1
-91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7978
SELECT + - CASE + 79 WHEN NULLIF ( 44, + 29 + - 78 + + 36 + - CASE + 74 WHEN AVG ( DISTINCT + + 42 ) + CAST( - - 17 AS SIGNED ) + - ( + MIN( DISTINCT 36 ) ) * - 23 * + + 33 THEN + - 61 - - COUNT( * ) * - SUM( - + 23 ) WHEN - 95 THEN - 54 * + ( - - 22 ) + + + 32 END ) * ( + 6 ) THEN + MAX( DISTINCT - CASE + - 29 WHEN + 10 THEN + ( + - CAST( NULL AS SIGNED ) ) * - 3 + 98 / 79 END ) * 10 WHEN MIN( - 48 ) * 94 + 74 * COUNT( * ) THEN NULL END + 6 * - 25 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7978
SELECT + - CASE + 79 WHEN NULLIF ( 44, + 29 + - 78 + + 36 + - CASE + 74 WHEN AVG ( DISTINCT + + 42 ) + CAST ( - - 17 AS INTEGER ) + - ( + MIN ( DISTINCT 36 ) ) * - 23 * + + 33 THEN + - 61 - - COUNT ( * ) * - SUM ( - + 23 ) WHEN - 95 THEN - 54 * + ( - - 22 ) + + + 32 END ) * ( + 6 ) THEN + MAX ( DISTINCT - CASE + - 29 WHEN + 10 THEN + ( + - CAST ( NULL AS INTEGER ) ) * - 3 + 98 / 79 END ) * 10 WHEN MIN ( - 48 ) * 94 + 74 * COUNT ( * ) THEN NULL END + 6 * - 25 AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7979
SELECT - + 81 DIV + COUNT( * ) col1
----
-81

skipif mysql # not compatible
query I rowsort label-7979
SELECT - + 81 / + COUNT ( * ) col1
----
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-7980
SELECT + - 76 * - CASE + SUM( DISTINCT + - 10 ) WHEN + + 8 THEN NULL ELSE 97 + - + 53 END + COUNT( * ) col1
----
3345

skipif mysql # not compatible
query I rowsort label-7980
SELECT + - 76 * - CASE + SUM ( DISTINCT + - 10 ) WHEN + + 8 THEN NULL ELSE 97 + - + 53 END + COUNT ( * ) col1
----
3345

query II rowsort
SELECT - - 88, 41 AS col2
----
88
41

query I rowsort
SELECT ALL 88 * 59 + + - 32 AS col1
----
5160

onlyif mysql # DIV for integer division: 
query I rowsort label-7983
SELECT 80 DIV - + 7 AS col2
----
-11

skipif mysql # not compatible
query I rowsort label-7983
SELECT 80 / - + 7 AS col2
----
-11

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7984
SELECT ALL + 10 + MAX( - ( + + 95 ) ) * + 66 + COUNT( DISTINCT + 96 ) DIV 68 col0
----
-6260

skipif mysql # not compatible
query I rowsort label-7984
SELECT ALL + 10 + MAX ( - ( + + 95 ) ) * + 66 + COUNT ( DISTINCT + 96 ) / 68 col0
----
-6260

query I rowsort
SELECT DISTINCT + 88 + + - 16
----
72

query I rowsort
SELECT + 94 * 21
----
1974

query II rowsort
SELECT DISTINCT + 80 * 49 AS col0, 80
----
3920
80

onlyif mysql # aggregate syntax: 
query I rowsort label-7988
SELECT CASE 11 WHEN + MIN( + 62 ) THEN MIN( + + ( 90 ) ) - 86 WHEN - 14 THEN NULL END - MAX( + 27 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7988
SELECT CASE 11 WHEN + MIN ( + 62 ) THEN MIN ( + + ( 90 ) ) - 86 WHEN - 14 THEN NULL END - MAX ( + 27 )
----
NULL

query I rowsort
SELECT 66 + + 29 + 1
----
96

onlyif mysql # aggregate syntax: 
query II rowsort label-7990
SELECT ALL 9 - - + CASE + 55 WHEN 41 - - ( - COUNT( * ) ) + - 73 * MIN( + 77 ) * - + 10 - - 98 THEN - 53 + + 43 * + 70 WHEN + 97 THEN NULL ELSE NULL END AS col1, - 29 AS col0
----
NULL
-29

skipif mysql # not compatible
query II rowsort label-7990
SELECT ALL 9 - - + CASE + 55 WHEN 41 - - ( - COUNT ( * ) ) + - 73 * MIN ( + 77 ) * - + 10 - - 98 THEN - 53 + + 43 * + 70 WHEN + 97 THEN NULL ELSE NULL END AS col1, - 29 AS col0
----
NULL
-29

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7991
SELECT CAST( - 43 AS SIGNED ) * + 27
----
-1161

skipif mysql # not compatible
query I rowsort label-7991
SELECT CAST ( - 43 AS INTEGER ) * + 27
----
-1161

query I rowsort
SELECT 56 + - 66 AS col2
----
-10

query I rowsort
SELECT DISTINCT 38 * + 35 * + 0 * + 51 * - 38
----
0

query II rowsort
SELECT 1 - + + 36, + 57 AS col1
----
-35
57

query I rowsort
SELECT ( 38 ) * - 20
----
-760

query I rowsort
SELECT 7 * - 71 * + 48
----
-23856

query I rowsort
SELECT 91 + 44
----
135

query I rowsort
SELECT 97 * 80
----
7760

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7999
SELECT ALL 37 * 32 DIV COUNT( * ) * - + 97 AS col0
----
-114848

skipif mysql # not compatible
query I rowsort label-7999
SELECT ALL 37 * 32 / COUNT ( * ) * - + 97 AS col0
----
-114848

query I rowsort
SELECT DISTINCT 91 * + 61 + 81 AS col0
----
5632

query I rowsort
SELECT 33 + + + 29 * - 1
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-8002
SELECT - - ( + ( ( SUM( - + 44 ) ) ) )
----
-44

skipif mysql # not compatible
query I rowsort label-8002
SELECT - - ( + ( ( SUM ( - + 44 ) ) ) )
----
-44

query I rowsort
SELECT ALL + 74 + - - 32
----
106

query I rowsort
SELECT DISTINCT - 83 * - 76
----
6308

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8005
SELECT DISTINCT 94 + - 60 DIV NULLIF ( + SUM( + 36 ), - 23 DIV + 82 + + 77 + CAST( 57 AS SIGNED ) * ( - ( - 44 ) ) * - 98 + - + 93 + NULLIF ( + 79, - MAX( ALL 4 ) ) )
----
93

skipif mysql # not compatible
query I rowsort label-8005
SELECT DISTINCT 94 + - 60 / NULLIF ( + SUM ( + 36 ), - 23 / + 82 + + 77 + CAST ( 57 AS INTEGER ) * ( - ( - 44 ) ) * - 98 + - + 93 + NULLIF ( + 79, - MAX ( ALL 4 ) ) )
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-8006
SELECT ALL - NULLIF ( - 2, COUNT( * ) * ( 54 ) * - AVG ( 80 ) * 96 + 53 + + MIN( ALL - 71 ) + AVG ( DISTINCT - + 15 ) + MAX( 28 ) ) + + 18 col0
----
20

skipif mysql # not compatible
query I rowsort label-8006
SELECT ALL - NULLIF ( - 2, COUNT ( * ) * ( 54 ) * - AVG ( 80 ) * 96 + 53 + + MIN ( ALL - 71 ) + AVG ( DISTINCT - + 15 ) + MAX ( 28 ) ) + + 18 col0
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-8007
SELECT 25 - COUNT( + - COALESCE ( + - 81, + - 95 ) ) * - - 89 AS col2
----
-64

skipif mysql # not compatible
query I rowsort label-8007
SELECT 25 - COUNT ( + - COALESCE ( + - 81, + - 95 ) ) * - - 89 AS col2
----
-64

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8008
SELECT ALL + + 30 * - CAST( - + CAST( 5 AS SIGNED ) AS SIGNED ) AS col2
----
150

skipif mysql # not compatible
query I rowsort label-8008
SELECT ALL + + 30 * - CAST ( - + CAST ( 5 AS INTEGER ) AS INTEGER ) AS col2
----
150

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8009
SELECT ALL - CAST( + + CAST( NULL AS SIGNED ) AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8009
SELECT ALL - CAST ( + + CAST ( NULL AS INTEGER ) AS INTEGER )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8010
SELECT 71 + + 0 * + 13 DIV + + 41
----
71

skipif mysql # not compatible
query I rowsort label-8010
SELECT 71 + + 0 * + 13 / + + 41
----
71

query I rowsort
SELECT DISTINCT ( 43 )
----
43

query I rowsort
SELECT ALL - + ( ( + 76 ) ) - - 0
----
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-8013
SELECT COUNT( * ) * + 20 * - 13 + 98 * COUNT( * ) - + + 10
----
-172

skipif mysql # not compatible
query I rowsort label-8013
SELECT COUNT ( * ) * + 20 * - 13 + 98 * COUNT ( * ) - + + 10
----
-172

onlyif mysql # aggregate syntax: 
query I rowsort label-8014
SELECT - + NULLIF ( - 25, - COUNT( * ) )
----
25

skipif mysql # not compatible
query I rowsort label-8014
SELECT - + NULLIF ( - 25, - COUNT ( * ) )
----
25

query I rowsort
SELECT 47 + - 55 AS col1
----
-8

query I rowsort
SELECT ALL - ( + 66 ) AS col2
----
-66

query I rowsort
SELECT 63 * - 86 AS col0
----
-5418

onlyif mysql # DIV for integer division: 
query I rowsort label-8018
SELECT DISTINCT - 21 DIV 35 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-8018
SELECT DISTINCT - 21 / 35 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8019
SELECT ALL - ( - COUNT( * ) ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-8019
SELECT ALL - ( - COUNT ( * ) ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8020
SELECT ALL - 3 * - 11 * + ( 14 ) * + COUNT( * )
----
462

skipif mysql # not compatible
query I rowsort label-8020
SELECT ALL - 3 * - 11 * + ( 14 ) * + COUNT ( * )
----
462

query I rowsort
SELECT 53 + - 61
----
-8

query I rowsort
SELECT DISTINCT - 94 * + 21
----
-1974

onlyif mysql # aggregate syntax: 
query II rowsort label-8023
SELECT + 83 AS col1, COUNT( * ) AS col1
----
83
1

skipif mysql # not compatible
query II rowsort label-8023
SELECT + 83 AS col1, COUNT ( * ) AS col1
----
83
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8024
SELECT DISTINCT MAX( ALL - 51 ) * + + 0 DIV + COUNT( * ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-8024
SELECT DISTINCT MAX ( ALL - 51 ) * + + 0 / + COUNT ( * ) AS col2
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-8025
SELECT ALL - 37 AS col0, COUNT( DISTINCT 84 ) + 4
----
-37
5

skipif mysql # not compatible
query II rowsort label-8025
SELECT ALL - 37 AS col0, COUNT ( DISTINCT 84 ) + 4
----
-37
5

onlyif mysql # DIV for integer division: 
query II rowsort label-8026
SELECT DISTINCT - 86 * + 48 * 96 AS col1, 16 + + COALESCE ( - ( + 84 ), + 79 DIV - 42 ) AS col0
----
-396288
-68

skipif mysql # not compatible
query II rowsort label-8026
SELECT DISTINCT - 86 * + 48 * 96 AS col1, 16 + + COALESCE ( - ( + 84 ), + 79 / - 42 ) AS col0
----
-396288
-68

query II rowsort
SELECT ALL - 36 AS col0, - 64 AS col1
----
-36
-64

query I rowsort
SELECT ALL 13 + - 0 AS col1
----
13

query I rowsort
SELECT 78 * + 18 AS col1
----
1404

query I rowsort
SELECT ( + 83 ) - + + 2
----
81

query II rowsort
SELECT + 0, 61 AS col2
----
0
61

onlyif mysql # aggregate syntax: 
query I rowsort label-8032
SELECT - 79 * + 76 + - MIN( DISTINCT + 97 ) AS col0
----
-6101

skipif mysql # not compatible
query I rowsort label-8032
SELECT - 79 * + 76 + - MIN ( DISTINCT + 97 ) AS col0
----
-6101

query I rowsort
SELECT - - 48 AS col2
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-8034
SELECT MIN( - 79 ) + - COUNT( * ) * - - 75 * 34
----
-2629

skipif mysql # not compatible
query I rowsort label-8034
SELECT MIN ( - 79 ) + - COUNT ( * ) * - - 75 * 34
----
-2629

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-8035
SELECT 38 + - CASE 77 WHEN - COUNT( * ) THEN - + 78 * 79 WHEN - 33 - + + 86 - + - 12 * - 28 + CAST( NULL AS DECIMAL ) - 58 THEN COUNT( * ) + + AVG ( + 90 ) * + + ( + - 71 ) * - CAST( NULL AS SIGNED ) ELSE NULL END, + 67 col2
----
NULL
67

skipif mysql # not compatible
query II rowsort label-8035
SELECT 38 + - CASE 77 WHEN - COUNT ( * ) THEN - + 78 * 79 WHEN - 33 - + + 86 - + - 12 * - 28 + CAST ( NULL AS REAL ) - 58 THEN COUNT ( * ) + + AVG ( + 90 ) * + + ( + - 71 ) * - CAST ( NULL AS INTEGER ) ELSE NULL END, + 67 col2
----
NULL
67

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8036
SELECT DISTINCT 65 + - + AVG ( DISTINCT + CAST( NULL AS SIGNED ) ) AS col2, - 45 * - - NULLIF ( + - COUNT( * ), - 46 * 90 * + - COALESCE ( - + 10, 60 ) - - - 89 - - 99 + AVG ( - 41 ) * 56 + 11 ) / + - 25 * + 31 + - + 41 + + + 68 * + CAST( NULL AS SIGNED ) + - 81
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-8036
SELECT DISTINCT 65 + - + AVG ( DISTINCT + CAST ( NULL AS INTEGER ) ) AS col2, - 45 * - - NULLIF ( + - COUNT ( * ), - 46 * 90 * + - COALESCE ( - + 10, 60 ) - - - 89 - - 99 + AVG ( - 41 ) * 56 + 11 ) / + - 25 * + 31 + - + 41 + + + 68 * + CAST ( NULL AS INTEGER ) + - 81
----
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8037
SELECT ALL + 54 * SUM( + 91 )
----
4914

skipif mysql # not compatible
query I rowsort label-8037
SELECT ALL + 54 * SUM ( + 91 )
----
4914

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8038
SELECT + + 48 * - + COUNT( * ) - COUNT( * ) AS col1, - CAST( NULL AS SIGNED ) AS col2
----
-49
NULL

skipif mysql # not compatible
query II rowsort label-8038
SELECT + + 48 * - + COUNT ( * ) - COUNT ( * ) AS col1, - CAST ( NULL AS INTEGER ) AS col2
----
-49
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8039
SELECT DISTINCT - COALESCE ( 80, + 17 ) + CAST( NULL AS SIGNED ) + + + NULLIF ( COUNT( * ), - - 46 * COALESCE ( + - 60, - COALESCE ( + COALESCE ( - 82, - NULLIF ( + COUNT( 73 ), - - 18 * - ( 18 ) ) / + - 44 ), SUM( - 68 ) * + 60, + COUNT( * ) ), 45 * - + COUNT( * ) ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8039
SELECT DISTINCT - COALESCE ( 80, + 17 ) + CAST ( NULL AS INTEGER ) + + + NULLIF ( COUNT ( * ), - - 46 * COALESCE ( + - 60, - COALESCE ( + COALESCE ( - 82, - NULLIF ( + COUNT ( 73 ), - - 18 * - ( 18 ) ) / + - 44 ), SUM ( - 68 ) * + 60, + COUNT ( * ) ), 45 * - + COUNT ( * ) ) ) AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8040
SELECT + 79 DIV - + 71 + - + 48 AS col1
----
-49

skipif mysql # not compatible
query I rowsort label-8040
SELECT + 79 / - + 71 + - + 48 AS col1
----
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-8041
SELECT - 63 + - COUNT( * ) + - + 92
----
-156

skipif mysql # not compatible
query I rowsort label-8041
SELECT - 63 + - COUNT ( * ) + - + 92
----
-156

query I rowsort
SELECT ALL - 27 - + - ( + 42 ) AS col0
----
15

onlyif mysql # DIV for integer division: 
query I rowsort label-8043
SELECT + - 21 DIV 50 + - + 99 AS col0
----
-99

skipif mysql # not compatible
query I rowsort label-8043
SELECT + - 21 / 50 + - + 99 AS col0
----
-99

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8044
SELECT - 58 AS col1, + CAST( + 24 AS SIGNED )
----
-58
24

skipif mysql # not compatible
query II rowsort label-8044
SELECT - 58 AS col1, + CAST ( + 24 AS INTEGER )
----
-58
24

onlyif mysql # aggregate syntax: 
query I rowsort label-8045
SELECT ALL MAX( DISTINCT + 37 )
----
37

skipif mysql # not compatible
query I rowsort label-8045
SELECT ALL MAX ( DISTINCT + 37 )
----
37

query I rowsort
SELECT + + 47 * - 37
----
-1739

onlyif mysql # aggregate syntax: 
query I rowsort label-8047
SELECT ALL + 79 * - COUNT( * )
----
-79

skipif mysql # not compatible
query I rowsort label-8047
SELECT ALL + 79 * - COUNT ( * )
----
-79

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8048
SELECT DISTINCT CASE - CAST( - 39 AS SIGNED ) WHEN + COUNT( * ) + - - 3 / - 54 THEN - MAX( ALL 22 ) / 1 END
----
NULL

skipif mysql # not compatible
query I rowsort label-8048
SELECT DISTINCT CASE - CAST ( - 39 AS INTEGER ) WHEN + COUNT ( * ) + - - 3 / - 54 THEN - MAX ( ALL 22 ) / 1 END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8049
SELECT ALL - 7 * ( + 91 ) DIV + + COUNT( * ) - + + 76 - + 90 AS col1
----
-803

skipif mysql # not compatible
query I rowsort label-8049
SELECT ALL - 7 * ( + 91 ) / + + COUNT ( * ) - + + 76 - + 90 AS col1
----
-803

query I rowsort
SELECT - 21 * - 85 * 73 * - + 5 AS col2
----
-651525

onlyif mysql # aggregate syntax: 
query I rowsort label-8051
SELECT DISTINCT - 34 * COUNT( * )
----
-34

skipif mysql # not compatible
query I rowsort label-8051
SELECT DISTINCT - 34 * COUNT ( * )
----
-34

query I rowsort
SELECT + 68 + 46 AS col1
----
114

query I rowsort
SELECT ALL - 8 * - 6 AS col2
----
48

query I rowsort
SELECT - 85 * + ( 80 ) AS col0
----
-6800

onlyif mysql # aggregate syntax: 
query I rowsort label-8055
SELECT + 32 * - COUNT( * ) + COUNT( * ) col0
----
-31

skipif mysql # not compatible
query I rowsort label-8055
SELECT + 32 * - COUNT ( * ) + COUNT ( * ) col0
----
-31

query II rowsort
SELECT ( + 62 ), - 74 AS col1
----
62
-74

query I rowsort
SELECT ALL + ( 43 )
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-8058
SELECT DISTINCT + COALESCE ( 25, - 10 * + - MIN( DISTINCT + 99 ) * + - 32 ) AS col2
----
25

skipif mysql # not compatible
query I rowsort label-8058
SELECT DISTINCT + COALESCE ( 25, - 10 * + - MIN ( DISTINCT + 99 ) * + - 32 ) AS col2
----
25

onlyif mysql # aggregate syntax: 
query II rowsort label-8059
SELECT ALL + MIN( ALL - 23 ) col2, + 35 AS col1
----
-23
35

skipif mysql # not compatible
query II rowsort label-8059
SELECT ALL + MIN ( ALL - 23 ) col2, + 35 AS col1
----
-23
35

query I rowsort
SELECT ALL - 88 * 48 + 29 AS col1
----
-4195

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8061
SELECT - CAST( NULL AS DECIMAL ) + - 46 * 59 + MIN( + - 11 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8061
SELECT - CAST ( NULL AS REAL ) + - 46 * 59 + MIN ( + - 11 ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8062
SELECT COALESCE ( + COUNT( * ), 49 + + + ( - - ( - + 98 ) ), + 52 )
----
1

skipif mysql # not compatible
query I rowsort label-8062
SELECT COALESCE ( + COUNT ( * ), 49 + + + ( - - ( - + 98 ) ), + 52 )
----
1

query I rowsort
SELECT 18 * - 78 + - 83 col1
----
-1487

onlyif mysql # aggregate syntax: 
query I rowsort label-8064
SELECT ALL COUNT( * ) * 73
----
73

skipif mysql # not compatible
query I rowsort label-8064
SELECT ALL COUNT ( * ) * 73
----
73

query I rowsort
SELECT NULLIF ( - 91, 91 * - 52 ) AS col1
----
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-8066
SELECT - COUNT( * ) * - 43
----
43

skipif mysql # not compatible
query I rowsort label-8066
SELECT - COUNT ( * ) * - 43
----
43

onlyif mysql # aggregate syntax: 
query II rowsort label-8067
SELECT - 78 + COUNT( * ) AS col1, + COUNT( * ) * - 10 AS col2
----
-77
-10

skipif mysql # not compatible
query II rowsort label-8067
SELECT - 78 + COUNT ( * ) AS col1, + COUNT ( * ) * - 10 AS col2
----
-77
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-8068
SELECT DISTINCT - 61 * - 24 * COUNT( * ) + NULLIF ( - + 95, + - 37 )
----
1369

skipif mysql # not compatible
query I rowsort label-8068
SELECT DISTINCT - 61 * - 24 * COUNT ( * ) + NULLIF ( - + 95, + - 37 )
----
1369

onlyif mysql # DIV for integer division: 
query II rowsort label-8069
SELECT + - 38 DIV + 62 AS col2, - 2 col1
----
0
-2

skipif mysql # not compatible
query II rowsort label-8069
SELECT + - 38 / + 62 AS col2, - 2 col1
----
0
-2

onlyif mysql # DIV for integer division: 
query I rowsort label-8070
SELECT + 35 - 87 DIV + 74 + + + NULLIF ( 0, - 3 ) col2
----
34

skipif mysql # not compatible
query I rowsort label-8070
SELECT + 35 - 87 / + 74 + + + NULLIF ( 0, - 3 ) col2
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-8071
SELECT DISTINCT 1 * - 4 + 37 + COUNT( * ) * 25 AS col1
----
58

skipif mysql # not compatible
query I rowsort label-8071
SELECT DISTINCT 1 * - 4 + 37 + COUNT ( * ) * 25 AS col1
----
58

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8072
SELECT DISTINCT 39 * - 89 * - COUNT( * ) + + + 22 - - 35 DIV + 1 + 3
----
3531

skipif mysql # not compatible
query I rowsort label-8072
SELECT DISTINCT 39 * - 89 * - COUNT ( * ) + + + 22 - - 35 / + 1 + 3
----
3531

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8073
SELECT DISTINCT + 70 * + MAX( ALL + 48 ) + - 42 DIV + + SUM( ALL + - 10 ) AS col0
----
3364

skipif mysql # not compatible
query I rowsort label-8073
SELECT DISTINCT + 70 * + MAX ( ALL + 48 ) + - 42 / + + SUM ( ALL + - 10 ) AS col0
----
3364

query I rowsort
SELECT + + 19 + + 79 + + 38 AS col1
----
136

query I rowsort
SELECT ALL - + 89 * - + 71
----
6319

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8076
SELECT DISTINCT COALESCE ( + 87, - - 58 DIV - + 67 + - 18 * 31 * 18, - CAST( NULL AS SIGNED ) )
----
87

skipif mysql # not compatible
query I rowsort label-8076
SELECT DISTINCT COALESCE ( + 87, - - 58 / - + 67 + - 18 * 31 * 18, - CAST ( NULL AS INTEGER ) )
----
87

query I rowsort
SELECT - 64 + - 65
----
-129

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8078
SELECT + - 92 * 19 DIV - CAST( + 4 AS SIGNED ) - - 30
----
467

skipif mysql # not compatible
query I rowsort label-8078
SELECT + - 92 * 19 / - CAST ( + 4 AS INTEGER ) - - 30
----
467

onlyif mysql # aggregate syntax: 
query I rowsort label-8079
SELECT + COUNT( * ) + 95 * 0 + 61 + - + ( + COUNT( * ) )
----
61

skipif mysql # not compatible
query I rowsort label-8079
SELECT + COUNT ( * ) + 95 * 0 + 61 + - + ( + COUNT ( * ) )
----
61

query I rowsort
SELECT ALL - 32 col2
----
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-8081
SELECT + COUNT( * ) + 9 AS col0
----
10

skipif mysql # not compatible
query I rowsort label-8081
SELECT + COUNT ( * ) + 9 AS col0
----
10

onlyif mysql # aggregate syntax: 
query II rowsort label-8082
SELECT ALL - 37 * 63 * - COUNT( * ) * + - 9 AS col2, - 11
----
-20979
-11

skipif mysql # not compatible
query II rowsort label-8082
SELECT ALL - 37 * 63 * - COUNT ( * ) * + - 9 AS col2, - 11
----
-20979
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-8083
SELECT + COUNT( * ) + 6 AS col2
----
7

skipif mysql # not compatible
query I rowsort label-8083
SELECT + COUNT ( * ) + 6 AS col2
----
7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8084
SELECT ALL CASE + 23 WHEN - - 48 THEN 25 WHEN + 99 THEN + ( - 21 ) / - - MAX( + 56 ) * + 62 + - 38 + CASE 63 WHEN 0 - COUNT( * ) THEN + COALESCE ( + 99, - - COUNT( * ) ) * + + 80 + + 28 + + ( - CAST( CAST( 35 AS SIGNED ) AS SIGNED ) ) / + - MIN( ALL - 79 ) + - + 68 END + 30 * 36 + + + 5 ELSE + - 60 END AS col1
----
-60

skipif mysql # not compatible
query I rowsort label-8084
SELECT ALL CASE + 23 WHEN - - 48 THEN 25 WHEN + 99 THEN + ( - 21 ) / - - MAX ( + 56 ) * + 62 + - 38 + CASE 63 WHEN 0 - COUNT ( * ) THEN + COALESCE ( + 99, - - COUNT ( * ) ) * + + 80 + + 28 + + ( - CAST ( CAST ( 35 AS INTEGER ) AS INTEGER ) ) / + - MIN ( ALL - 79 ) + - + 68 END + 30 * 36 + + + 5 ELSE + - 60 END AS col1
----
-60

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8085
SELECT + NULLIF ( - 77, + 74 + - 73 + - 71 + - 89 * + + COUNT( * ) + - - 93 * + 65 ) DIV + - 25 + + 88 AS col2
----
91

skipif mysql # not compatible
query I rowsort label-8085
SELECT + NULLIF ( - 77, + 74 + - 73 + - 71 + - 89 * + + COUNT ( * ) + - - 93 * + 65 ) / + - 25 + + 88 AS col2
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-8086
SELECT DISTINCT 27 * ( + - COUNT( * ) ) AS col0
----
-27

skipif mysql # not compatible
query I rowsort label-8086
SELECT DISTINCT 27 * ( + - COUNT ( * ) ) AS col0
----
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-8087
SELECT + 92 + - COUNT( * )
----
91

skipif mysql # not compatible
query I rowsort label-8087
SELECT + 92 + - COUNT ( * )
----
91

query I rowsort
SELECT + 98 + - - 23 * + - 26 col2
----
-500

onlyif mysql # aggregate syntax: 
query I rowsort label-8089
SELECT + MIN( DISTINCT + 35 ) * 34
----
1190

skipif mysql # not compatible
query I rowsort label-8089
SELECT + MIN ( DISTINCT + 35 ) * 34
----
1190

onlyif mysql # aggregate syntax: 
query I rowsort label-8090
SELECT - ( + + COUNT( * ) ) + - - NULLIF ( - + ( - CASE + 0 WHEN + - 23 THEN + 87 + - AVG ( + 46 ) WHEN - 23 THEN - COUNT( * ) ELSE NULL END ), + - 24 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8090
SELECT - ( + + COUNT ( * ) ) + - - NULLIF ( - + ( - CASE + 0 WHEN + - 23 THEN + 87 + - AVG ( + 46 ) WHEN - 23 THEN - COUNT ( * ) ELSE NULL END ), + - 24 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8091
SELECT ALL MAX( DISTINCT + 67 )
----
67

skipif mysql # not compatible
query I rowsort label-8091
SELECT ALL MAX ( DISTINCT + 67 )
----
67

onlyif mysql # DIV for integer division: 
query I rowsort label-8092
SELECT DISTINCT + 58 DIV + 77 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-8092
SELECT DISTINCT + 58 / + 77 AS col1
----
0

query I rowsort
SELECT DISTINCT 85 + - - 93 col1
----
178

onlyif mysql # DIV for integer division: 
query I rowsort label-8094
SELECT ALL 44 DIV - 44
----
-1

skipif mysql # not compatible
query I rowsort label-8094
SELECT ALL 44 / - 44
----
-1

query I rowsort
SELECT 49 * 80 + - NULLIF ( - + 37, - 20 ) * 59
----
6103

onlyif mysql # DIV for integer division: 
query I rowsort label-8096
SELECT DISTINCT 79 DIV + + 8
----
9

skipif mysql # not compatible
query I rowsort label-8096
SELECT DISTINCT 79 / + + 8
----
9

onlyif mysql # DIV for integer division: 
query I rowsort label-8097
SELECT DISTINCT 59 DIV + 53 + + + 20
----
21

skipif mysql # not compatible
query I rowsort label-8097
SELECT DISTINCT 59 / + 53 + + + 20
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-8098
SELECT ALL - 28 / - 9 * - + 65 + CASE - - 75 WHEN + 84 THEN - + MIN( CASE - - 63 WHEN - 0 THEN ( + + 20 ) - + 73 + - 46 + - - 95 END ) / + + 40 / - 67 + 30 END - + - 78 * - - ( - - 67 ) + - ( 89 ) * + ( - MAX( - 63 ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8098
SELECT ALL - 28 / - 9 * - + 65 + CASE - - 75 WHEN + 84 THEN - + MIN ( CASE - - 63 WHEN - 0 THEN ( + + 20 ) - + 73 + - 46 + - - 95 END ) / + + 40 / - 67 + 30 END - + - 78 * - - ( - - 67 ) + - ( 89 ) * + ( - MAX ( - 63 ) ) AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8099
SELECT ALL + NULLIF ( - 45, 37 + + + CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) * 47 ) AS col0
----
-45

skipif mysql # not compatible
query I rowsort label-8099
SELECT ALL + NULLIF ( - 45, 37 + + + CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) * 47 ) AS col0
----
-45

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8100
SELECT ALL ( - COUNT( * ) ) DIV 48 * + 17 * + - 91 * + 37 - ( + 78 ) + - + 40 + + - NULLIF ( 9, + 78 * - COUNT( * ) ) col1, NULLIF ( - 6, COUNT( * ) ) AS col2
----
-127
-6

skipif mysql # not compatible
query II rowsort label-8100
SELECT ALL ( - COUNT ( * ) ) / 48 * + 17 * + - 91 * + 37 - ( + 78 ) + - + 40 + + - NULLIF ( 9, + 78 * - COUNT ( * ) ) col1, NULLIF ( - 6, COUNT ( * ) ) AS col2
----
-127
-6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8101
SELECT CAST( NULL AS SIGNED ) * - 51 + - 69
----
NULL

skipif mysql # not compatible
query I rowsort label-8101
SELECT CAST ( NULL AS INTEGER ) * - 51 + - 69
----
NULL

query I rowsort
SELECT 50 * - + 10 + + 46 col1
----
-454

onlyif mysql # aggregate syntax: 
query I rowsort label-8103
SELECT DISTINCT + MAX( 67 )
----
67

skipif mysql # not compatible
query I rowsort label-8103
SELECT DISTINCT + MAX ( 67 )
----
67

onlyif mysql # DIV for integer division: 
query I rowsort label-8104
SELECT DISTINCT 38 + + 45 + 55 DIV - 55 AS col0
----
82

skipif mysql # not compatible
query I rowsort label-8104
SELECT DISTINCT 38 + + 45 + 55 / - 55 AS col0
----
82

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8105
SELECT COUNT( * ) + - COALESCE ( - 99, 39 * - 9 ) + - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8105
SELECT COUNT ( * ) + - COALESCE ( - 99, 39 * - 9 ) + - CAST ( NULL AS INTEGER ) AS col1
----
NULL

query II rowsort
SELECT - 86 * ( 78 ) + - ( - + 89 ), NULLIF ( - + 80, - 18 ) * - 19 col2
----
-6619
1520

onlyif mysql # aggregate syntax: 
query I rowsort label-8107
SELECT DISTINCT - + COUNT( DISTINCT - - 37 ) col0
----
-1

skipif mysql # not compatible
query I rowsort label-8107
SELECT DISTINCT - + COUNT ( DISTINCT - - 37 ) col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8108
SELECT ALL - - COALESCE ( COUNT( DISTINCT CASE + 22 WHEN + + 41 * + - 99 + + + 32 THEN + 87 * 0 * + ( - 60 ) - + 95 + + - 44 ELSE NULL END ), + 27 ) col2
----
0

skipif mysql # not compatible
query I rowsort label-8108
SELECT ALL - - COALESCE ( COUNT ( DISTINCT CASE + 22 WHEN + + 41 * + - 99 + + + 32 THEN + 87 * 0 * + ( - 60 ) - + 95 + + - 44 ELSE NULL END ), + 27 ) col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8109
SELECT + - NULLIF ( 68, + COUNT( * ) ) AS col2
----
-68

skipif mysql # not compatible
query I rowsort label-8109
SELECT + - NULLIF ( 68, + COUNT ( * ) ) AS col2
----
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-8110
SELECT - 52 - + - COUNT( * ) * COUNT( * ) AS col2
----
-51

skipif mysql # not compatible
query I rowsort label-8110
SELECT - 52 - + - COUNT ( * ) * COUNT ( * ) AS col2
----
-51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8111
SELECT + 22 * + + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8111
SELECT + 22 * + + CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT ( - 72 ) AS col0
----
-72

query I rowsort
SELECT ALL - + 5
----
-5

query I rowsort
SELECT + - 80 col1
----
-80

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8115
SELECT + 89 * COALESCE ( - + 69, ( - 15 ) - + 36 * - 94 DIV 31 - - 60 + + 62 + 96 DIV 8 * - 37 * CAST( AVG ( ALL 16 ) AS SIGNED ), - 4 ) AS col2
----
-6141

skipif mysql # not compatible
query I rowsort label-8115
SELECT + 89 * COALESCE ( - + 69, ( - 15 ) - + 36 * - 94 / 31 - - 60 + + 62 + 96 / 8 * - 37 * CAST ( AVG ( ALL 16 ) AS INTEGER ), - 4 ) AS col2
----
-6141

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8116
SELECT DISTINCT + CAST( + + 9 AS SIGNED )
----
9

skipif mysql # not compatible
query I rowsort label-8116
SELECT DISTINCT + CAST ( + + 9 AS INTEGER )
----
9

onlyif mysql # aggregate syntax: 
query II rowsort label-8117
SELECT DISTINCT + 99 * COUNT( DISTINCT + - 32 ) * + COUNT( * ) + - - 18 AS col0, + 49
----
117
49

skipif mysql # not compatible
query II rowsort label-8117
SELECT DISTINCT + 99 * COUNT ( DISTINCT + - 32 ) * + COUNT ( * ) + - - 18 AS col0, + 49
----
117
49

onlyif mysql # aggregate syntax: 
query I rowsort label-8118
SELECT ALL - 41 * + - COUNT( * )
----
41

skipif mysql # not compatible
query I rowsort label-8118
SELECT ALL - 41 * + - COUNT ( * )
----
41

query I rowsort
SELECT DISTINCT + + 19 * + 26 AS col1
----
494

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8120
SELECT ALL COALESCE ( - CASE - 35 WHEN - - 39 THEN + + 62 * 89 - - 58 WHEN + NULLIF ( 38, - CAST( NULL AS SIGNED ) ) THEN NULL END, + + 72 ) col2
----
72

skipif mysql # not compatible
query I rowsort label-8120
SELECT ALL COALESCE ( - CASE - 35 WHEN - - 39 THEN + + 62 * 89 - - 58 WHEN + NULLIF ( 38, - CAST ( NULL AS INTEGER ) ) THEN NULL END, + + 72 ) col2
----
72

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8121
SELECT - 69 * + CAST( - - 46 AS SIGNED )
----
-3174

skipif mysql # not compatible
query I rowsort label-8121
SELECT - 69 * + CAST ( - - 46 AS INTEGER )
----
-3174

onlyif mysql # aggregate syntax: 
query I rowsort label-8122
SELECT + COALESCE ( - COUNT( * ), - + 64 + - 76, - + 56 * + - 68 ) * 21
----
-21

skipif mysql # not compatible
query I rowsort label-8122
SELECT + COALESCE ( - COUNT ( * ), - + 64 + - 76, - + 56 * + - 68 ) * 21
----
-21

onlyif mysql # aggregate syntax: 
query II rowsort label-8123
SELECT 30 AS col2, COUNT( * ) + - + MIN( DISTINCT - 68 )
----
30
69

skipif mysql # not compatible
query II rowsort label-8123
SELECT 30 AS col2, COUNT ( * ) + - + MIN ( DISTINCT - 68 )
----
30
69

query II rowsort
SELECT 68, - 67 AS col2
----
68
-67

onlyif mysql # aggregate syntax: 
query II rowsort label-8125
SELECT 73, - NULLIF ( 88, + COUNT( DISTINCT + 60 ) + + 97 * 7 * + 39 / + + 5 ) * ( + 40 ) * + - 77 AS col2
----
73
271040

skipif mysql # not compatible
query II rowsort label-8125
SELECT 73, - NULLIF ( 88, + COUNT ( DISTINCT + 60 ) + + 97 * 7 * + 39 / + + 5 ) * ( + 40 ) * + - 77 AS col2
----
73
271040

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-8126
SELECT ALL 13, + CAST( COUNT( ALL - 28 ) AS SIGNED ) * + COUNT( * ) DIV - + 48 AS col0
----
13
0

skipif mysql # not compatible
query II rowsort label-8126
SELECT ALL 13, + CAST ( COUNT ( ALL - 28 ) AS INTEGER ) * + COUNT ( * ) / - + 48 AS col0
----
13
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8127
SELECT MIN( DISTINCT 81 ) * + 20
----
1620

skipif mysql # not compatible
query I rowsort label-8127
SELECT MIN ( DISTINCT 81 ) * + 20
----
1620

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8128
SELECT SUM( - 68 ) - NULLIF ( + 89, 1 * + 88 * + COALESCE ( - ( - CAST( - 18 AS SIGNED ) ), + + 54 + - - COUNT( * ), - 26 * + - 53 * - 83, + NULLIF ( - - 56, - 78 ) * - + COUNT( ALL + 22 ) - 28 + - COUNT( DISTINCT + CAST( - - 55 AS DECIMAL ) ) ) ) + 74
----
-83

skipif mysql # not compatible
query I rowsort label-8128
SELECT SUM ( - 68 ) - NULLIF ( + 89, 1 * + 88 * + COALESCE ( - ( - CAST ( - 18 AS INTEGER ) ), + + 54 + - - COUNT ( * ), - 26 * + - 53 * - 83, + NULLIF ( - - 56, - 78 ) * - + COUNT ( ALL + 22 ) - 28 + - COUNT ( DISTINCT + CAST ( - - 55 AS REAL ) ) ) ) + 74
----
-83

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8129
SELECT DISTINCT SUM( CAST( NULL AS SIGNED ) ) + 7 + 75 * - + 50 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8129
SELECT DISTINCT SUM ( CAST ( NULL AS INTEGER ) ) + 7 + 75 * - + 50 AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8130
SELECT ALL 32 + - NULLIF ( CAST( NULL AS SIGNED ), - 18 * - + 62 * 12 * - 63 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8130
SELECT ALL 32 + - NULLIF ( CAST ( NULL AS INTEGER ), - 18 * - + 62 * 12 * - 63 )
----
NULL

query II rowsort
SELECT - 23 AS col0, - 38
----
-23
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-8132
SELECT ALL + 90 * COUNT( * )
----
90

skipif mysql # not compatible
query I rowsort label-8132
SELECT ALL + 90 * COUNT ( * )
----
90

query II rowsort
SELECT 73 AS col0, + 35 AS col0
----
73
35

query I rowsort
SELECT DISTINCT 38 + COALESCE ( - - 61, + - ( + 29 ) + + 86 ) * + 86 * - 1 col1
----
-5208

query I rowsort
SELECT ALL 97 + + 7 AS col1
----
104

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8136
SELECT - 86, - 82 + - 49 DIV + COUNT( * ) col1
----
-86
-131

skipif mysql # not compatible
query II rowsort label-8136
SELECT - 86, - 82 + - 49 / + COUNT ( * ) col1
----
-86
-131

onlyif mysql # aggregate syntax: 
query I rowsort label-8137
SELECT ALL MIN( ALL 57 ) + 25
----
82

skipif mysql # not compatible
query I rowsort label-8137
SELECT ALL MIN ( ALL 57 ) + 25
----
82

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8138
SELECT CAST( NULL AS DECIMAL ) * - - ( 61 ) / - COUNT( * ) - - 22 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8138
SELECT CAST ( NULL AS REAL ) * - - ( 61 ) / - COUNT ( * ) - - 22 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8139
SELECT - MAX( ALL + CAST( NULL AS SIGNED ) ) / - - 14 + 28 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8139
SELECT - MAX ( ALL + CAST ( NULL AS INTEGER ) ) / - - 14 + 28 AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8140
SELECT 36 DIV 34
----
1

skipif mysql # not compatible
query I rowsort label-8140
SELECT 36 / 34
----
1

query I rowsort
SELECT 7 * 20 AS col2
----
140

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8142
SELECT ALL 60 DIV COUNT( * ) DIV + - 24
----
-2

skipif mysql # not compatible
query I rowsort label-8142
SELECT ALL 60 / COUNT ( * ) / + - 24
----
-2

onlyif mysql # DIV for integer division: 
query I rowsort label-8143
SELECT - 29 DIV 50 - - 22 + - + 28 + - 76 AS col0
----
-82

skipif mysql # not compatible
query I rowsort label-8143
SELECT - 29 / 50 - - 22 + - + 28 + - 76 AS col0
----
-82

query I rowsort
SELECT ALL - + 1 * + + 75 * - + 32 * + 17 + - 59 + - CASE + - 2 WHEN + + 17 THEN 86 END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8145
SELECT 23 * + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8145
SELECT 23 * + CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8146
SELECT ALL - COUNT( ALL + 27 ) DIV + 75 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-8146
SELECT ALL - COUNT ( ALL + 27 ) / + 75 AS col2
----
0

query I rowsort
SELECT + ( + + 62 ) + 44 AS col0
----
106

onlyif mysql # aggregate syntax: 
query I rowsort label-8148
SELECT + COUNT( * ) - 86
----
-85

skipif mysql # not compatible
query I rowsort label-8148
SELECT + COUNT ( * ) - 86
----
-85

query I rowsort
SELECT ALL + - 21 * + 15
----
-315

onlyif mysql # aggregate syntax: 
query I rowsort label-8150
SELECT - MAX( + 53 ) * - - 63 AS col1
----
-3339

skipif mysql # not compatible
query I rowsort label-8150
SELECT - MAX ( + 53 ) * - - 63 AS col1
----
-3339

query I rowsort
SELECT + 33 + + ( - + 45 ) AS col2
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-8152
SELECT DISTINCT - - ( + MAX( + 22 ) )
----
22

skipif mysql # not compatible
query I rowsort label-8152
SELECT DISTINCT - - ( + MAX ( + 22 ) )
----
22

query I rowsort
SELECT + ( + 38 ) * + 39 + + 27 AS col0
----
1509

onlyif mysql # aggregate syntax: 
query I rowsort label-8154
SELECT ALL - MAX( ALL + + 84 ) AS col2
----
-84

skipif mysql # not compatible
query I rowsort label-8154
SELECT ALL - MAX ( ALL + + 84 ) AS col2
----
-84

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8155
SELECT - ( CASE - COUNT( * ) WHEN + + AVG ( ALL + 22 ) THEN - 22 + CAST( - ( + MIN( + 83 ) ) AS SIGNED ) WHEN - NULLIF ( - 8, - 87 / + 74 ) THEN + 36 END ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8155
SELECT - ( CASE - COUNT ( * ) WHEN + + AVG ( ALL + 22 ) THEN - 22 + CAST ( - ( + MIN ( + 83 ) ) AS INTEGER ) WHEN - NULLIF ( - 8, - 87 / + 74 ) THEN + 36 END ) AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8156
SELECT ALL SUM( DISTINCT - NULLIF ( + 11, - - 61 * - ( - CAST( NULL AS SIGNED ) ) ) )
----
-11

skipif mysql # not compatible
query I rowsort label-8156
SELECT ALL SUM ( DISTINCT - NULLIF ( + 11, - - 61 * - ( - CAST ( NULL AS INTEGER ) ) ) )
----
-11

query I rowsort
SELECT - + ( 1 )
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-8158
SELECT 64 DIV + 58
----
1

skipif mysql # not compatible
query I rowsort label-8158
SELECT 64 / + 58
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8159
SELECT 51 + - - CASE 52 WHEN - 80 / + 63 + + COUNT( * ) + ( + SUM( + 88 ) ) + 36 - + 53 * - 7 * + - ( - 97 ) * + CASE - ( + 68 ) WHEN - NULLIF ( + 32, - CASE MAX( - - COALESCE ( - 92, - 55 * + - 26 ) ) WHEN - ( + + 96 ) THEN - 50 - - + 24 + 91 + ( - - 97 ) WHEN - + 10 + 5 + 11 + - 33 * - + MIN( + 39 ) * - NULLIF ( + 59, COUNT( * ) * 14 ) - 29 + 90 THEN ( + 52 ) END * - 40 ) THEN + 32 WHEN + 29 + CAST( NULL AS SIGNED ) THEN + 26 END * + 81 THEN - 85 WHEN + 29 + + 96 THEN NULL WHEN 89 THEN NULL END * - 51 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8159
SELECT 51 + - - CASE 52 WHEN - 80 / + 63 + + COUNT ( * ) + ( + SUM ( + 88 ) ) + 36 - + 53 * - 7 * + - ( - 97 ) * + CASE - ( + 68 ) WHEN - NULLIF ( + 32, - CASE MAX ( - - COALESCE ( - 92, - 55 * + - 26 ) ) WHEN - ( + + 96 ) THEN - 50 - - + 24 + 91 + ( - - 97 ) WHEN - + 10 + 5 + 11 + - 33 * - + MIN ( + 39 ) * - NULLIF ( + 59, COUNT ( * ) * 14 ) - 29 + 90 THEN ( + 52 ) END * - 40 ) THEN + 32 WHEN + 29 + CAST ( NULL AS INTEGER ) THEN + 26 END * + 81 THEN - 85 WHEN + 29 + + 96 THEN NULL WHEN 89 THEN NULL END * - 51 AS col1
----
NULL

query I rowsort
SELECT 94 - 85
----
9

onlyif mysql # DIV for integer division: 
query I rowsort label-8161
SELECT DISTINCT - - 4 DIV + - 99 + - 17 + + 30
----
13

skipif mysql # not compatible
query I rowsort label-8161
SELECT DISTINCT - - 4 / + - 99 + - 17 + + 30
----
13

query I rowsort
SELECT ALL - ( 53 )
----
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-8163
SELECT + + 74 * - COUNT( * ) + - CASE + 29 WHEN ( ( - 77 ) ) * + 47 * - 98 + ( - + COUNT( * ) ) THEN + + 26 * + - 65 + + - 96 WHEN - 91 THEN NULL END * + 99 * COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-8163
SELECT + + 74 * - COUNT ( * ) + - CASE + 29 WHEN ( ( - 77 ) ) * + 47 * - 98 + ( - + COUNT ( * ) ) THEN + + 26 * + - 65 + + - 96 WHEN - 91 THEN NULL END * + 99 * COUNT ( * )
----
NULL

query I rowsort
SELECT ALL - 58 * - 73 AS col0
----
4234

query I rowsort
SELECT 66 + ( 45 ) AS col2
----
111

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8166
SELECT 1 * + CAST( NULL AS SIGNED ) * + COUNT( * ) * - - 54
----
NULL

skipif mysql # not compatible
query I rowsort label-8166
SELECT 1 * + CAST ( NULL AS INTEGER ) * + COUNT ( * ) * - - 54
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8167
SELECT ALL - 49 + + COUNT( * ) AS col2
----
-48

skipif mysql # not compatible
query I rowsort label-8167
SELECT ALL - 49 + + COUNT ( * ) AS col2
----
-48

query II rowsort
SELECT ALL + 85 + - - 36 AS col0, 2 AS col2
----
121
2

query II rowsort
SELECT 82 + - + 4 AS col1, 3
----
78
3

query II rowsort
SELECT ALL + 13 + + 12 col1, + 8
----
25
8

onlyif mysql # aggregate syntax: 
query I rowsort label-8171
SELECT DISTINCT CASE 9 WHEN + 20 THEN - - COUNT( * ) * - + 24 * + 66 - - + 59 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8171
SELECT DISTINCT CASE 9 WHEN + 20 THEN - - COUNT ( * ) * - + 24 * + 66 - - + 59 END AS col1
----
NULL

query I rowsort
SELECT DISTINCT + 4 + + 95 AS col2
----
99

onlyif mysql # aggregate syntax: 
query II rowsort label-8173
SELECT COUNT( * ) + - + 10, 60 AS col1
----
-9
60

skipif mysql # not compatible
query II rowsort label-8173
SELECT COUNT ( * ) + - + 10, 60 AS col1
----
-9
60

onlyif mysql # aggregate syntax: 
query I rowsort label-8174
SELECT ALL + COUNT( - - 41 ) + - + 32
----
-31

skipif mysql # not compatible
query I rowsort label-8174
SELECT ALL + COUNT ( - - 41 ) + - + 32
----
-31

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8175
SELECT DISTINCT - 31 + - + CAST( NULL AS SIGNED ) + - + AVG ( DISTINCT - + 15 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8175
SELECT DISTINCT - 31 + - + CAST ( NULL AS INTEGER ) + - + AVG ( DISTINCT - + 15 ) AS col2
----
NULL

query I rowsort
SELECT 10 + + 74 * ( - + 27 )
----
-1988

onlyif mysql # aggregate syntax: 
query I rowsort label-8177
SELECT ALL COALESCE ( COUNT( * ), + 4, + - 52 )
----
1

skipif mysql # not compatible
query I rowsort label-8177
SELECT ALL COALESCE ( COUNT ( * ), + 4, + - 52 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8178
SELECT ( 16 ) + - 31 + + - COUNT( * ) * - - ( - ( 58 ) ) AS col1
----
43

skipif mysql # not compatible
query I rowsort label-8178
SELECT ( 16 ) + - 31 + + - COUNT ( * ) * - - ( - ( 58 ) ) AS col1
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-8179
SELECT COUNT( * ) + + 95 AS col1
----
96

skipif mysql # not compatible
query I rowsort label-8179
SELECT COUNT ( * ) + + 95 AS col1
----
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8180
SELECT ALL CAST( NULL AS SIGNED ) * + 22
----
NULL

skipif mysql # not compatible
query I rowsort label-8180
SELECT ALL CAST ( NULL AS INTEGER ) * + 22
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8181
SELECT + 25 * + COUNT( * ) * 49 * - + 40 * 54 AS col2
----
-2646000

skipif mysql # not compatible
query I rowsort label-8181
SELECT + 25 * + COUNT ( * ) * 49 * - + 40 * 54 AS col2
----
-2646000

onlyif mysql # aggregate syntax: 
query I rowsort label-8182
SELECT ALL 37 * - COUNT( * )
----
-37

skipif mysql # not compatible
query I rowsort label-8182
SELECT ALL 37 * - COUNT ( * )
----
-37

query I rowsort
SELECT DISTINCT - 42 * 63 AS col1
----
-2646

onlyif mysql # aggregate syntax: 
query I rowsort label-8184
SELECT DISTINCT + + MAX( ALL + 73 )
----
73

skipif mysql # not compatible
query I rowsort label-8184
SELECT DISTINCT + + MAX ( ALL + 73 )
----
73

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8185
SELECT - + 21 / - + 12 + - 73 + CAST( NULL AS DECIMAL ) - + - 1 * ( 83 ) / 95 + 34
----
NULL

skipif mysql # not compatible
query I rowsort label-8185
SELECT - + 21 / - + 12 + - 73 + CAST ( NULL AS REAL ) - + - 1 * ( 83 ) / 95 + 34
----
NULL

query I rowsort
SELECT + 77 * 16 + 70
----
1302

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8187
SELECT + - MAX( - 54 ) col1, - COUNT( * ) * - + 14 - - 28 + - + 28 * COUNT( * ) DIV 17 AS col2
----
54
41

skipif mysql # not compatible
query II rowsort label-8187
SELECT + - MAX ( - 54 ) col1, - COUNT ( * ) * - + 14 - - 28 + - + 28 * COUNT ( * ) / 17 AS col2
----
54
41

query I rowsort
SELECT + 44 * + 76
----
3344

onlyif mysql # aggregate syntax: 
query I rowsort label-8189
SELECT + - 49 * + - ( + SUM( - 26 ) ) AS col2
----
-1274

skipif mysql # not compatible
query I rowsort label-8189
SELECT + - 49 * + - ( + SUM ( - 26 ) ) AS col2
----
-1274

onlyif mysql # DIV for integer division: 
query I rowsort label-8190
SELECT + - 50 DIV - 17 + + 48 + 61
----
111

skipif mysql # not compatible
query I rowsort label-8190
SELECT + - 50 / - 17 + + 48 + 61
----
111

query I rowsort
SELECT DISTINCT + ( 76 )
----
76

query I rowsort
SELECT ALL + + 27 col1
----
27

query I rowsort
SELECT ALL + + 40 col1
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-8194
SELECT + + SUM( ALL + - 67 ) + - + 84 - + 60 + 97 AS col2
----
-114

skipif mysql # not compatible
query I rowsort label-8194
SELECT + + SUM ( ALL + - 67 ) + - + 84 - + 60 + 97 AS col2
----
-114

onlyif mysql # DIV for integer division: 
query I rowsort label-8195
SELECT ALL ( 61 ) DIV COALESCE ( + + ( + - 54 ), - 69 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-8195
SELECT ALL ( 61 ) / COALESCE ( + + ( + - 54 ), - 69 ) AS col2
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8196
SELECT + - CAST( NULL AS SIGNED ) * 18 * - 63 + 63 * - - NULLIF ( 36, + 16 + + ( + 85 ) + - - 94 ) + + 91 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8196
SELECT + - CAST ( NULL AS INTEGER ) * 18 * - 63 + 63 * - - NULLIF ( 36, + 16 + + ( + 85 ) + - - 94 ) + + 91 AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8197
SELECT + 46 DIV 65 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-8197
SELECT + 46 / 65 AS col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8198
SELECT + 73 * - ( - CAST( NULL AS DECIMAL ) ) + - COUNT( * ) + + + 7 + + 7 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8198
SELECT + 73 * - ( - CAST ( NULL AS REAL ) ) + - COUNT ( * ) + + + 7 + + 7 AS col1
----
NULL

query I rowsort
SELECT ALL 90 * - 62 col2
----
-5580

query I rowsort
SELECT + 60 * + 80 AS col2
----
4800

onlyif mysql # aggregate syntax: 
query I rowsort label-8201
SELECT - - 73 + - 71 * - MIN( DISTINCT 84 ) AS col0
----
6037

skipif mysql # not compatible
query I rowsort label-8201
SELECT - - 73 + - 71 * - MIN ( DISTINCT 84 ) AS col0
----
6037

onlyif mysql # aggregate syntax: 
query II rowsort label-8202
SELECT ALL + 17 + - + COUNT( * ) + + + 55 AS col2, - 75 - - 34 * 60 * - 32 * + + COUNT( * ) * + ( ( + 30 ) ) * 73 - + 0 * 98
----
71
-142963275

skipif mysql # not compatible
query II rowsort label-8202
SELECT ALL + 17 + - + COUNT ( * ) + + + 55 AS col2, - 75 - - 34 * 60 * - 32 * + + COUNT ( * ) * + ( ( + 30 ) ) * 73 - + 0 * 98
----
71
-142963275

query I rowsort
SELECT - ( 83 ) AS col0
----
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-8204
SELECT ALL 27 * + 6 * + - ( MIN( - 17 ) )
----
2754

skipif mysql # not compatible
query I rowsort label-8204
SELECT ALL 27 * + 6 * + - ( MIN ( - 17 ) )
----
2754

onlyif mysql # DIV for integer division: 
query I rowsort label-8205
SELECT + 39 * 69 DIV - 6
----
-448

skipif mysql # not compatible
query I rowsort label-8205
SELECT + 39 * 69 / - 6
----
-448

onlyif mysql # aggregate syntax: 
query II rowsort label-8206
SELECT COUNT( * ) col1, COUNT( * )
----
1
1

skipif mysql # not compatible
query II rowsort label-8206
SELECT COUNT ( * ) col1, COUNT ( * )
----
1
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8207
SELECT ALL CASE 53 WHEN + - 31 * + 7 + + - 42 + - + CAST( NULL AS SIGNED ) - - - AVG ( - - 35 ) * + + 87 * + + 35 THEN - 12 END
----
NULL

skipif mysql # not compatible
query I rowsort label-8207
SELECT ALL CASE 53 WHEN + - 31 * + 7 + + - 42 + - + CAST ( NULL AS INTEGER ) - - - AVG ( - - 35 ) * + + 87 * + + 35 THEN - 12 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8208
SELECT ALL 21 + + COUNT( * ) + + COUNT( * ) + + - ( 12 ) + + 46 - 6 * + 33 * + 13 + - COUNT( * ) AS col2
----
-2518

skipif mysql # not compatible
query I rowsort label-8208
SELECT ALL 21 + + COUNT ( * ) + + COUNT ( * ) + + - ( 12 ) + + 46 - 6 * + 33 * + 13 + - COUNT ( * ) AS col2
----
-2518

query I rowsort
SELECT ALL 97 + - + 24 AS col1
----
73

query I rowsort
SELECT + 3 - + + 85 AS col0
----
-82

query I rowsort
SELECT - 9 * - - 29
----
-261

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: DIV for integer division: 
query I rowsort label-8212
SELECT ALL CASE CASE - 87 WHEN + COALESCE ( - 66, 58, + - CAST( COUNT( * ) AS SIGNED ) DIV - 18 * - - 54 + + 67 - - 83 * - 14 * 30 ) DIV - + 48 THEN NULL WHEN + + 22 * 33 THEN NULL ELSE - - 48 END WHEN CASE - 21 WHEN - 15 THEN - - 13 * - COUNT( * ) WHEN - 13 THEN NULL END DIV - CAST( NULL AS DECIMAL ) * + - 45 THEN NULL WHEN + 45 THEN NULL ELSE 74 DIV - 98 END
----
0

skipif mysql # not compatible
query I rowsort label-8212
SELECT ALL CASE CASE - 87 WHEN + COALESCE ( - 66, 58, + - CAST ( COUNT ( * ) AS INTEGER ) / - 18 * - - 54 + + 67 - - 83 * - 14 * 30 ) / - + 48 THEN NULL WHEN + + 22 * 33 THEN NULL ELSE - - 48 END WHEN CASE - 21 WHEN - 15 THEN - - 13 * - COUNT ( * ) WHEN - 13 THEN NULL END / - CAST ( NULL AS REAL ) * + - 45 THEN NULL WHEN + 45 THEN NULL ELSE 74 / - 98 END
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8213
SELECT ALL - 27 * MIN( 91 ) AS col2
----
-2457

skipif mysql # not compatible
query I rowsort label-8213
SELECT ALL - 27 * MIN ( 91 ) AS col2
----
-2457

query II rowsort
SELECT 1, + 34 + - 4 + - + 35 AS col0
----
1
-5

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8215
SELECT - 61 DIV - - 95 * - ( - COUNT( * ) )
----
0

skipif mysql # not compatible
query I rowsort label-8215
SELECT - 61 / - - 95 * - ( - COUNT ( * ) )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8216
SELECT - COUNT( ALL - COALESCE ( + ( - 4 ), CASE - - 91 WHEN - - 56 THEN + - 13 WHEN + 35 THEN NULL ELSE + 53 END ) ) * 38
----
-38

skipif mysql # not compatible
query I rowsort label-8216
SELECT - COUNT ( ALL - COALESCE ( + ( - 4 ), CASE - - 91 WHEN - - 56 THEN + - 13 WHEN + 35 THEN NULL ELSE + 53 END ) ) * 38
----
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-8217
SELECT ALL MIN( DISTINCT + 8 )
----
8

skipif mysql # not compatible
query I rowsort label-8217
SELECT ALL MIN ( DISTINCT + 8 )
----
8

query I rowsort
SELECT ALL - 28 * - 70
----
1960

query I rowsort
SELECT DISTINCT + ( + + ( - 65 ) ) - - - 50
----
-115

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8220
SELECT ALL CAST( NULL AS SIGNED ) AS col2, - 85 AS col1
----
NULL
-85

skipif mysql # not compatible
query II rowsort label-8220
SELECT ALL CAST ( NULL AS INTEGER ) AS col2, - 85 AS col1
----
NULL
-85

onlyif mysql # aggregate syntax: 
query II rowsort label-8221
SELECT 30 AS col2, - COUNT( * ) * + 55 * + 57 * + NULLIF ( + CASE WHEN NOT ( + 13 ) IS NULL THEN - COUNT( * ) END, - 53 )
----
30
3135

skipif mysql # not compatible
query II rowsort label-8221
SELECT 30 AS col2, - COUNT ( * ) * + 55 * + 57 * + NULLIF ( + CASE WHEN NOT ( + 13 ) IS NULL THEN - COUNT ( * ) END, - 53 )
----
30
3135

query I rowsort
SELECT ALL + 55 * 43
----
2365

query I rowsort
SELECT - 78 * - 30 * - 66
----
-154440

query I rowsort
SELECT - 89 + + - 88 + - - 44 * + 75 * - ( 80 ) * + 20 + - 75
----
-5280252

onlyif mysql # DIV for integer division: 
query I rowsort label-8225
SELECT - 95 DIV 5 AS col2
----
-19

skipif mysql # not compatible
query I rowsort label-8225
SELECT - 95 / 5 AS col2
----
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-8226
SELECT ALL MIN( 55 ) AS col1
----
55

skipif mysql # not compatible
query I rowsort label-8226
SELECT ALL MIN ( 55 ) AS col1
----
55

query I rowsort
SELECT - 5 + 34 + + 80 * + - 75 + 27 AS col1
----
-5944

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8228
SELECT + 75 - + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8228
SELECT + 75 - + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8229
SELECT - - 60 * + 84 + + + 34 + 35 + - 42 * - - COUNT( * ) DIV - + 46
----
5109

skipif mysql # not compatible
query I rowsort label-8229
SELECT - - 60 * + 84 + + + 34 + 35 + - 42 * - - COUNT ( * ) / - + 46
----
5109

onlyif mysql # aggregate syntax: 
query I rowsort label-8230
SELECT - COUNT( DISTINCT 90 ) col0
----
-1

skipif mysql # not compatible
query I rowsort label-8230
SELECT - COUNT ( DISTINCT 90 ) col0
----
-1

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-8231
SELECT DISTINCT + 73 AS col2, + 89 * CAST( NULL AS DECIMAL )
----
73
NULL

skipif mysql # not compatible
query II rowsort label-8231
SELECT DISTINCT + 73 AS col2, + 89 * CAST ( NULL AS REAL )
----
73
NULL

query I rowsort
SELECT DISTINCT + 4 col0
----
4

onlyif mysql # DIV for integer division: 
query I rowsort label-8233
SELECT + + 74 DIV - 87 * - 23 + + - 46 + - + 56 + + 70 DIV - 36 + - + ( + + 40 ) AS col2
----
-143

skipif mysql # not compatible
query I rowsort label-8233
SELECT + + 74 / - 87 * - 23 + + - 46 + - + 56 + + 70 / - 36 + - + ( + + 40 ) AS col2
----
-143

query II rowsort
SELECT ALL + 65 AS col1, 85
----
65
85

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8235
SELECT DISTINCT + NULLIF ( + ( + - 40 ), + 29 ) DIV - 57 * ( + COUNT( * ) ) + - COUNT( * ) * - 91 - 99
----
-8

skipif mysql # not compatible
query I rowsort label-8235
SELECT DISTINCT + NULLIF ( + ( + - 40 ), + 29 ) / - 57 * ( + COUNT ( * ) ) + - COUNT ( * ) * - 91 - 99
----
-8

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8236
SELECT ALL - 54 * - + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8236
SELECT ALL - 54 * - + CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8237
SELECT + MIN( - 13 ) * - COUNT( ALL 19 ) AS col1, - CAST( - COUNT( * ) AS SIGNED ) AS col0
----
13
1

skipif mysql # not compatible
query II rowsort label-8237
SELECT + MIN ( - 13 ) * - COUNT ( ALL 19 ) AS col1, - CAST ( - COUNT ( * ) AS INTEGER ) AS col0
----
13
1

query II rowsort
SELECT + + 47, 39 col0
----
47
39

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8239
SELECT ALL + + CAST( - 59 AS SIGNED ) AS col1
----
-59

skipif mysql # not compatible
query I rowsort label-8239
SELECT ALL + + CAST ( - 59 AS INTEGER ) AS col1
----
-59

onlyif mysql # DIV for integer division: 
query I rowsort label-8240
SELECT - + 82 DIV + 74
----
-1

skipif mysql # not compatible
query I rowsort label-8240
SELECT - + 82 / + 74
----
-1

query I rowsort
SELECT + - 76 * 29
----
-2204

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8242
SELECT DISTINCT ( + 67 ) * + 85 + - 53 + 96 * 51 DIV SUM( + 96 ) * + 75, + 1 + 53 AS col1
----
9467
54

skipif mysql # not compatible
query II rowsort label-8242
SELECT DISTINCT ( + 67 ) * + 85 + - 53 + 96 * 51 / SUM ( + 96 ) * + 75, + 1 + 53 AS col1
----
9467
54

onlyif mysql # aggregate syntax: 
query I rowsort label-8243
SELECT + - NULLIF ( + 7, - - 77 + - 63 + + COUNT( * ) * COUNT( * ) ) AS col0
----
-7

skipif mysql # not compatible
query I rowsort label-8243
SELECT + - NULLIF ( + 7, - - 77 + - 63 + + COUNT ( * ) * COUNT ( * ) ) AS col0
----
-7

query II rowsort
SELECT ALL + + 41, + 95 AS col2
----
41
95

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8245
SELECT DISTINCT - 58 * + + COUNT( + + CAST( NULL AS SIGNED ) ) + + 12 + + 24 + SUM( 13 ) + + - 47
----
2

skipif mysql # not compatible
query I rowsort label-8245
SELECT DISTINCT - 58 * + + COUNT ( + + CAST ( NULL AS INTEGER ) ) + + 12 + + 24 + SUM ( 13 ) + + - 47
----
2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8246
SELECT DISTINCT + 84 * - CAST( NULL AS SIGNED ) * + 8 + + 90
----
NULL

skipif mysql # not compatible
query I rowsort label-8246
SELECT DISTINCT + 84 * - CAST ( NULL AS INTEGER ) * + 8 + + 90
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8247
SELECT ALL 80 DIV - NULLIF ( + 93, - + 67 + MIN( DISTINCT + 34 ) * - + COUNT( ALL 76 ) ) * + + COALESCE ( - - 75, - CAST( + 63 AS SIGNED ), 85 + ( + + 97 ) * 73 + - 88 )
----
0

skipif mysql # not compatible
query I rowsort label-8247
SELECT ALL 80 / - NULLIF ( + 93, - + 67 + MIN ( DISTINCT + 34 ) * - + COUNT ( ALL 76 ) ) * + + COALESCE ( - - 75, - CAST ( + 63 AS INTEGER ), 85 + ( + + 97 ) * 73 + - 88 )
----
0

query I rowsort
SELECT + 85 - + 51 + - + 54 * 80 AS col1
----
-4286

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8249
SELECT + ( - - ( - + CASE + ( ( + - CAST( NULL AS SIGNED ) ) ) WHEN 22 THEN - 88 * - AVG ( ALL + 27 ) / + - COUNT( - 76 ) + - + 61 END ) ) + - + 10 + - 61 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8249
SELECT + ( - - ( - + CASE + ( ( + - CAST ( NULL AS INTEGER ) ) ) WHEN 22 THEN - 88 * - AVG ( ALL + 27 ) / + - COUNT ( - 76 ) + - + 61 END ) ) + - + 10 + - 61 AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8250
SELECT - CAST( + 81 AS SIGNED ) col0, ( 83 ) * - 87 * + 11 AS col1
----
-81
-79431

skipif mysql # not compatible
query II rowsort label-8250
SELECT - CAST ( + 81 AS INTEGER ) col0, ( 83 ) * - 87 * + 11 AS col1
----
-81
-79431

onlyif mysql # aggregate syntax: 
query I rowsort label-8251
SELECT 7 + - 55 * - 10 + - + ( - COUNT( * ) ) + 94 * + 62 - - 91
----
6477

skipif mysql # not compatible
query I rowsort label-8251
SELECT 7 + - 55 * - 10 + - + ( - COUNT ( * ) ) + 94 * + 62 - - 91
----
6477

query II rowsort
SELECT ALL 55 * - - 66 AS col1, - 26
----
3630
-26

query I rowsort
SELECT DISTINCT 73 * 56 * + 87 AS col2
----
355656

query I rowsort
SELECT ALL 39 col0
----
39

query I rowsort
SELECT 26 + + 4 + + 64 AS col1
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-8256
SELECT 35 + - ( 76 ) + + 23 * + + 86 / COUNT( * ) / CASE + 18 WHEN + 43 THEN 64 WHEN - 77 + - 28 - COALESCE ( - 89, 67 ) * 49 + - NULLIF ( + 71, - 96 * COUNT( * ) + + - MIN( 87 ) + - - 79 ) * + 80 * COUNT( * ) * - - 48 * + COUNT( + 73 ) THEN + 93 * + 56 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8256
SELECT 35 + - ( 76 ) + + 23 * + + 86 / COUNT ( * ) / CASE + 18 WHEN + 43 THEN 64 WHEN - 77 + - 28 - COALESCE ( - 89, 67 ) * 49 + - NULLIF ( + 71, - 96 * COUNT ( * ) + + - MIN ( 87 ) + - - 79 ) * + 80 * COUNT ( * ) * - - 48 * + COUNT ( + 73 ) THEN + 93 * + 56 END AS col1
----
NULL

query I rowsort
SELECT 51 + + - CASE - 35 WHEN - 55 THEN + 86 + + 92 + - 95 END AS col1
----
NULL

query I rowsort
SELECT - + 98 AS col2
----
-98

query I rowsort
SELECT ALL + + 15 * - - 82 * 85 AS col2
----
104550

query I rowsort
SELECT DISTINCT - ( - 74 )
----
74

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8261
SELECT DISTINCT - 16 + MAX( + + 36 ) + + 65 DIV 52 + - - 69 + + ( + 34 ) + - + 16 * - ( + 27 ) + - + 16
----
540

skipif mysql # not compatible
query I rowsort label-8261
SELECT DISTINCT - 16 + MAX ( + + 36 ) + + 65 / 52 + - - 69 + + ( + 34 ) + - + 16 * - ( + 27 ) + - + 16
----
540

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8262
SELECT ALL + - CAST( NULL AS SIGNED ) + + 24 + + 8
----
NULL

skipif mysql # not compatible
query I rowsort label-8262
SELECT ALL + - CAST ( NULL AS INTEGER ) + + 24 + + 8
----
NULL

query I rowsort
SELECT ALL + 83 + - 93 - - 24 - + 32 AS col0
----
-18

query II rowsort
SELECT DISTINCT - 25 * - COALESCE ( - 31, - 65, 50 ) * + 23 * + 30 AS col1, 65
----
-534750
65

query I rowsort
SELECT 39 * - + 68
----
-2652

query I rowsort
SELECT - 27 * + 6 - - 83 AS col1
----
-79

query I rowsort
SELECT ALL - + 45 AS col2
----
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-8268
SELECT + 15 + CASE COUNT( * ) WHEN - - AVG ( + 75 ) THEN NULL WHEN + ( + 29 ) THEN 74 * CASE - + COUNT( * ) WHEN - + 48 THEN 92 END + - 65 * - - COUNT( * ) * 47 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-8268
SELECT + 15 + CASE COUNT ( * ) WHEN - - AVG ( + 75 ) THEN NULL WHEN + ( + 29 ) THEN 74 * CASE - + COUNT ( * ) WHEN - + 48 THEN 92 END + - 65 * - - COUNT ( * ) * 47 ELSE NULL END
----
NULL

query I rowsort
SELECT + 19 * ( + 15 ) * - + 69
----
-19665

query I rowsort
SELECT + 89 * 91
----
8099

query I rowsort
SELECT + + NULLIF ( - 88, 15 )
----
-88

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8272
SELECT COUNT( * ) * - 59 DIV - - 2
----
-29

skipif mysql # not compatible
query I rowsort label-8272
SELECT COUNT ( * ) * - 59 / - - 2
----
-29

onlyif mysql # aggregate syntax: 
query II rowsort label-8273
SELECT DISTINCT - COUNT( + + 16 ), 88 AS col2
----
-1
88

skipif mysql # not compatible
query II rowsort label-8273
SELECT DISTINCT - COUNT ( + + 16 ), 88 AS col2
----
-1
88

query I rowsort
SELECT ALL - - ( ( + 13 ) ) AS col1
----
13

query I rowsort
SELECT - 64 + 13 AS col2
----
-51

onlyif mysql # aggregate syntax: 
query II rowsort label-8276
SELECT DISTINCT + + 5 + - 46 AS col0, 42 * + - SUM( + 85 ) * + 76 + 93 + + 78 AS col2
----
-41
-271149

skipif mysql # not compatible
query II rowsort label-8276
SELECT DISTINCT + + 5 + - 46 AS col0, 42 * + - SUM ( + 85 ) * + 76 + 93 + + 78 AS col2
----
-41
-271149

query I rowsort
SELECT ALL 8 * - + 65 AS col1
----
-520

onlyif mysql # aggregate syntax: 
query I rowsort label-8278
SELECT - 78 + MIN( ALL 89 ) AS col2
----
11

skipif mysql # not compatible
query I rowsort label-8278
SELECT - 78 + MIN ( ALL 89 ) AS col2
----
11

query I rowsort
SELECT ALL + 65 - 32 AS col1
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-8280
SELECT DISTINCT COUNT( * ) - + 67
----
-66

skipif mysql # not compatible
query I rowsort label-8280
SELECT DISTINCT COUNT ( * ) - + 67
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-8281
SELECT DISTINCT + 45 * + COUNT( - + 5 ) * + - 62 * + 17 * - 16 * - - COUNT( * ) + + 96 * - + 53 + 55 + - - CASE - 41 WHEN - 34 + - 23 THEN + 68 ELSE + + COUNT( * ) END
----
753848

skipif mysql # not compatible
query I rowsort label-8281
SELECT DISTINCT + 45 * + COUNT ( - + 5 ) * + - 62 * + 17 * - 16 * - - COUNT ( * ) + + 96 * - + 53 + 55 + - - CASE - 41 WHEN - 34 + - 23 THEN + 68 ELSE + + COUNT ( * ) END
----
753848

onlyif mysql # aggregate syntax: 
query I rowsort label-8282
SELECT 75 * + COUNT( * )
----
75

skipif mysql # not compatible
query I rowsort label-8282
SELECT 75 * + COUNT ( * )
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-8283
SELECT COUNT( * ) * + 32 AS col1
----
32

skipif mysql # not compatible
query I rowsort label-8283
SELECT COUNT ( * ) * + 32 AS col1
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-8284
SELECT ALL + COUNT( * ) * - 35 AS col0
----
-35

skipif mysql # not compatible
query I rowsort label-8284
SELECT ALL + COUNT ( * ) * - 35 AS col0
----
-35

query I rowsort
SELECT 26 + ( + + 98 ) * + 31
----
3064

query II rowsort
SELECT ALL - 62 AS col0, + 43 + + 20
----
-62
63

query I rowsort
SELECT ALL + 27 * - 66 AS col0
----
-1782

onlyif mysql # aggregate syntax: 
query I rowsort label-8288
SELECT DISTINCT 3 - - COALESCE ( + 67, COUNT( * ) + - COALESCE ( 17, + - ( ( + 54 ) ), - ( 0 ) ), + 66 )
----
70

skipif mysql # not compatible
query I rowsort label-8288
SELECT DISTINCT 3 - - COALESCE ( + 67, COUNT ( * ) + - COALESCE ( 17, + - ( ( + 54 ) ), - ( 0 ) ), + 66 )
----
70

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8289
SELECT DISTINCT ( + COUNT( * ) ) DIV - 47
----
0

skipif mysql # not compatible
query I rowsort label-8289
SELECT DISTINCT ( + COUNT ( * ) ) / - 47
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8290
SELECT DISTINCT ( + 72 ) DIV + 53 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-8290
SELECT DISTINCT ( + 72 ) / + 53 AS col0
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-8291
SELECT DISTINCT 42 AS col0, COUNT( * ) AS col1
----
42
1

skipif mysql # not compatible
query II rowsort label-8291
SELECT DISTINCT 42 AS col0, COUNT ( * ) AS col1
----
42
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8292
SELECT ALL CAST( + 13 AS SIGNED ) * + - CASE ( - 4 ) WHEN + MAX( DISTINCT + ( + 50 ) ) THEN COALESCE ( - 65, MIN( ALL + 50 ) + 94, - 46, + - 19 / - - 82 ) ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8292
SELECT ALL CAST ( + 13 AS INTEGER ) * + - CASE ( - 4 ) WHEN + MAX ( DISTINCT + ( + 50 ) ) THEN COALESCE ( - 65, MIN ( ALL + 50 ) + 94, - 46, + - 19 / - - 82 ) ELSE NULL END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8293
SELECT COALESCE ( COUNT( * ), - 15 + - 71 ) * - 90, - 96 AS col1
----
-90
-96

skipif mysql # not compatible
query II rowsort label-8293
SELECT COALESCE ( COUNT ( * ), - 15 + - 71 ) * - 90, - 96 AS col1
----
-90
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-8294
SELECT - COUNT( * ) - + 24 - 65 * - ( + 12 ) * + 73 col0
----
56915

skipif mysql # not compatible
query I rowsort label-8294
SELECT - COUNT ( * ) - + 24 - 65 * - ( + 12 ) * + 73 col0
----
56915

query I rowsort
SELECT ALL - 23 + 4 AS col0
----
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-8296
SELECT + SUM( - - 37 )
----
37

skipif mysql # not compatible
query I rowsort label-8296
SELECT + SUM ( - - 37 )
----
37

onlyif mysql # aggregate syntax: 
query II rowsort label-8297
SELECT ALL + 12 + + 29 + 96, 29 * - ( - CASE 61 WHEN ( + 69 ) + ( + 55 ) THEN - 76 WHEN - 0 THEN 85 END ) * - 73 / - COUNT( * ) + + 87 + 98 / + 3 * 20 AS col0
----
137
NULL

skipif mysql # not compatible
query II rowsort label-8297
SELECT ALL + 12 + + 29 + 96, 29 * - ( - CASE 61 WHEN ( + 69 ) + ( + 55 ) THEN - 76 WHEN - 0 THEN 85 END ) * - 73 / - COUNT ( * ) + + 87 + 98 / + 3 * 20 AS col0
----
137
NULL

query I rowsort
SELECT ALL ( 9 ) AS col0
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-8299
SELECT 7 * - - MIN( + 24 ) * 46
----
7728

skipif mysql # not compatible
query I rowsort label-8299
SELECT 7 * - - MIN ( + 24 ) * 46
----
7728

query I rowsort
SELECT 95 + - 89
----
6

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-8301
SELECT 35 DIV - 86 + + 44 * + 69 * - 94, - 52 + + CAST( + ( + 51 ) AS SIGNED ) AS col0
----
-285384
-1

skipif mysql # not compatible
query II rowsort label-8301
SELECT 35 / - 86 + + 44 * + 69 * - 94, - 52 + + CAST ( + ( + 51 ) AS INTEGER ) AS col0
----
-285384
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8302
SELECT DISTINCT + 43 * + NULLIF ( 2, + - SUM( DISTINCT 31 ) ) * + AVG ( DISTINCT + 5 ) * + + CAST( NULL AS SIGNED ) * 36 + - 36 + 57 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8302
SELECT DISTINCT + 43 * + NULLIF ( 2, + - SUM ( DISTINCT 31 ) ) * + AVG ( DISTINCT + 5 ) * + + CAST ( NULL AS INTEGER ) * 36 + - 36 + 57 AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8303
SELECT ALL + ( - COALESCE ( 17, - 39 ) ) * MIN( - + 73 ) + - 77 + + 58 DIV - 82 DIV + + COUNT( * ) AS col0
----
1164

skipif mysql # not compatible
query I rowsort label-8303
SELECT ALL + ( - COALESCE ( 17, - 39 ) ) * MIN ( - + 73 ) + - 77 + + 58 / - 82 / + + COUNT ( * ) AS col0
----
1164

query I rowsort
SELECT ALL - 58 * - NULLIF ( + 97, + - 1 + + 54 + - 84 ) + - NULLIF ( + + NULLIF ( - 29, 93 ), + + 57 ) AS col2
----
5655

query I rowsort
SELECT ALL + - 96 * - - 23 - + 18 + + 82 * 20 * - - 57
----
91254

query I rowsort
SELECT - 53 + 60 + - 29 AS col2
----
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-8307
SELECT ALL COUNT( * ) * + 38
----
38

skipif mysql # not compatible
query I rowsort label-8307
SELECT ALL COUNT ( * ) * + 38
----
38

query I rowsort
SELECT 56 + 2 AS col0
----
58

query I rowsort
SELECT ALL - 71 * - 23 - - 95 AS col1
----
1728

query I rowsort
SELECT DISTINCT + 77 * - 1
----
-77

query I rowsort
SELECT ALL + - 91 * 95 AS col1
----
-8645

onlyif mysql # DIV for integer division: 
query I rowsort label-8312
SELECT 75 DIV + - 91 col1
----
0

skipif mysql # not compatible
query I rowsort label-8312
SELECT 75 / + - 91 col1
----
0

query I rowsort
SELECT 11 * - - 58 AS col2
----
638

onlyif mysql # aggregate syntax: 
query I rowsort label-8314
SELECT DISTINCT + COUNT( * ) * 76 - + 49 + + 15 + 77 + - 94 * 50 * - 23
----
108219

skipif mysql # not compatible
query I rowsort label-8314
SELECT DISTINCT + COUNT ( * ) * 76 - + 49 + + 15 + 77 + - 94 * 50 * - 23
----
108219

query II rowsort
SELECT + 62, + 4 * - 85 col0
----
62
-340

query II rowsort
SELECT DISTINCT + CASE - 30 WHEN - 1 THEN NULL ELSE + - 4 END AS col1, 93 * + 55 + + 49 + - ( - 83 )
----
-4
5247

query I rowsort
SELECT - 50 - 16 AS col2
----
-66

query I rowsort
SELECT - 9 * - 5
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-8319
SELECT ALL + 96 * + - COUNT( * ) AS col0
----
-96

skipif mysql # not compatible
query I rowsort label-8319
SELECT ALL + 96 * + - COUNT ( * ) AS col0
----
-96

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8320
SELECT - 66 * + 34 + - COUNT( * ) * + - 55 DIV - 60 + + SUM( DISTINCT + 9 ) AS col0
----
-2235

skipif mysql # not compatible
query I rowsort label-8320
SELECT - 66 * + 34 + - COUNT ( * ) * + - 55 / - 60 + + SUM ( DISTINCT + 9 ) AS col0
----
-2235

query II rowsort
SELECT ALL + 55 AS col0, - 56
----
55
-56

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8322
SELECT DISTINCT CAST( + ( COALESCE ( - 5, + COUNT( * ) * 63 + 17, CAST( NULL AS DECIMAL ) * + 85 + CASE - ( + 1 ) WHEN - 55 THEN - + 84 - 27 + - COUNT( * ) WHEN 34 THEN NULL END + - CAST( NULL AS DECIMAL ) / + 12 * - 43 * + - COUNT( * ) - + - 20, - + 93 / + 46 + 43 * + COUNT( * ) / + 63 ) ) AS SIGNED ) * 22 * COUNT( * ) * - - 96 AS col0
----
-10560

skipif mysql # not compatible
query I rowsort label-8322
SELECT DISTINCT CAST ( + ( COALESCE ( - 5, + COUNT ( * ) * 63 + 17, CAST ( NULL AS REAL ) * + 85 + CASE - ( + 1 ) WHEN - 55 THEN - + 84 - 27 + - COUNT ( * ) WHEN 34 THEN NULL END + - CAST ( NULL AS REAL ) / + 12 * - 43 * + - COUNT ( * ) - + - 20, - + 93 / + 46 + 43 * + COUNT ( * ) / + 63 ) ) AS INTEGER ) * 22 * COUNT ( * ) * - - 96 AS col0
----
-10560

query I rowsort
SELECT ALL 73 * + 47
----
3431

onlyif mysql # aggregate syntax: 
query I rowsort label-8324
SELECT - 90 + COUNT( * )
----
-89

skipif mysql # not compatible
query I rowsort label-8324
SELECT - 90 + COUNT ( * )
----
-89

onlyif mysql # aggregate syntax: 
query II rowsort label-8325
SELECT - COUNT( * ), 57 AS col0
----
-1
57

skipif mysql # not compatible
query II rowsort label-8325
SELECT - COUNT ( * ), 57 AS col0
----
-1
57

onlyif mysql # aggregate syntax: 
query I rowsort label-8326
SELECT ALL COALESCE ( + + COUNT( * ), - - 81 + 85, - CASE 5 WHEN + COUNT( * ) / NULLIF ( 58, + + 40 ) * - 69 THEN NULL WHEN 40 * - 31 THEN - 67 WHEN + 12 THEN NULL END ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-8326
SELECT ALL COALESCE ( + + COUNT ( * ), - - 81 + 85, - CASE 5 WHEN + COUNT ( * ) / NULLIF ( 58, + + 40 ) * - 69 THEN NULL WHEN 40 * - 31 THEN - 67 WHEN + 12 THEN NULL END ) AS col0
----
1

query I rowsort
SELECT 96 * + 3 * 82 + - + 91
----
23525

onlyif mysql # aggregate syntax: 
query I rowsort label-8328
SELECT ALL COALESCE ( + + 99, - 5 * ( + ( MIN( ALL + + 35 ) ) ) * + 41 ) AS col1
----
99

skipif mysql # not compatible
query I rowsort label-8328
SELECT ALL COALESCE ( + + 99, - 5 * ( + ( MIN ( ALL + + 35 ) ) ) * + 41 ) AS col1
----
99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8329
SELECT - 43 + - MIN( + + 47 ) + + 12 AS col0, - CAST( NULL AS SIGNED ) + - - 65 * - 41 + - - 58 + + ( - - 75 ) * 19 * - + 81
----
-78
NULL

skipif mysql # not compatible
query II rowsort label-8329
SELECT - 43 + - MIN ( + + 47 ) + + 12 AS col0, - CAST ( NULL AS INTEGER ) + - - 65 * - 41 + - - 58 + + ( - - 75 ) * 19 * - + 81
----
-78
NULL

query I rowsort
SELECT + ( 38 ) * + - 49
----
-1862

onlyif mysql # DIV for integer division: 
query II rowsort label-8331
SELECT ALL 46 AS col0, + 19 DIV + 39
----
46
0

skipif mysql # not compatible
query II rowsort label-8331
SELECT ALL 46 AS col0, + 19 / + 39
----
46
0

query I rowsort
SELECT + - 47 + + 77 AS col1
----
30

query I rowsort
SELECT ALL - 36 + + 91 AS col0
----
55

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8334
SELECT + + 72 + + COUNT( * ) + 79 + - CAST( 54 AS SIGNED ) * - CAST( NULL AS SIGNED ) AS col2, - 19 AS col1
----
NULL
-19

skipif mysql # not compatible
query II rowsort label-8334
SELECT + + 72 + + COUNT ( * ) + 79 + - CAST ( 54 AS INTEGER ) * - CAST ( NULL AS INTEGER ) AS col2, - 19 AS col1
----
NULL
-19

query I rowsort
SELECT ALL + 66 + - COALESCE ( + 80, - 39 ) col2
----
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-8336
SELECT + 44 * - - COUNT( * ) AS col0
----
44

skipif mysql # not compatible
query I rowsort label-8336
SELECT + 44 * - - COUNT ( * ) AS col0
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-8337
SELECT - 88 * + COALESCE ( - - COUNT( * ), + 25 + - 72, - + COUNT( * ) ) AS col2
----
-88

skipif mysql # not compatible
query I rowsort label-8337
SELECT - 88 * + COALESCE ( - - COUNT ( * ), + 25 + - 72, - + COUNT ( * ) ) AS col2
----
-88

query II rowsort
SELECT - 79 AS col2, 55
----
-79
55

query I rowsort
SELECT ALL 40 + - + 24 AS col2
----
16

query I rowsort
SELECT DISTINCT 45 * 78 AS col1
----
3510

query II rowsort
SELECT DISTINCT + 73 AS col2, + 80
----
73
80

onlyif mysql # aggregate syntax: 
query I rowsort label-8342
SELECT DISTINCT SUM( - 15 ) - NULLIF ( + + 15, - + COUNT( * ) ) AS col2
----
-30

skipif mysql # not compatible
query I rowsort label-8342
SELECT DISTINCT SUM ( - 15 ) - NULLIF ( + + 15, - + COUNT ( * ) ) AS col2
----
-30

query I rowsort
SELECT DISTINCT 11 * - 75 * - + 2
----
1650

onlyif mysql # aggregate syntax: 
query I rowsort label-8344
SELECT + + COALESCE ( - 14, - NULLIF ( - 39, - - COUNT( * ) + - NULLIF ( - ( - 88 ), - + ( 78 ) + + ( + 94 ) ) ) + + 52 ) AS col2
----
-14

skipif mysql # not compatible
query I rowsort label-8344
SELECT + + COALESCE ( - 14, - NULLIF ( - 39, - - COUNT ( * ) + - NULLIF ( - ( - 88 ), - + ( 78 ) + + ( + 94 ) ) ) + + 52 ) AS col2
----
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-8345
SELECT 84 * + - 44 + - 56 - + 61 * - + COUNT( * )
----
-3691

skipif mysql # not compatible
query I rowsort label-8345
SELECT 84 * + - 44 + - 56 - + 61 * - + COUNT ( * )
----
-3691

query I rowsort
SELECT ( + - 83 ) AS col0
----
-83

query II rowsort
SELECT + 69 AS col1, + ( - 39 )
----
69
-39

query I rowsort
SELECT DISTINCT + + ( 6 ) AS col2
----
6

query I rowsort
SELECT + 57 * - + NULLIF ( + 55, + - 62 ) AS col2
----
-3135

query I rowsort
SELECT + ( + + 64 ) AS col0
----
64

onlyif mysql # aggregate syntax: 
query II rowsort label-8351
SELECT ALL + MIN( + - 88 ), - 7 AS col0
----
-88
-7

skipif mysql # not compatible
query II rowsort label-8351
SELECT ALL + MIN ( + - 88 ), - 7 AS col0
----
-88
-7

query II rowsort
SELECT ( - + 35 ), 67 AS col2
----
-35
67

query I rowsort
SELECT ALL - 64 * - 62
----
3968

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8354
SELECT + 26 + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8354
SELECT + 26 + + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8355
SELECT ALL + 66 * + + 74 + 2, + ( + - NULLIF ( + 40, + - ( - MAX( ALL + + 53 ) ) * + 40 * 38 ) ) + + + 73 * - + COUNT( * ) AS col0
----
4886
-113

skipif mysql # not compatible
query II rowsort label-8355
SELECT ALL + 66 * + + 74 + 2, + ( + - NULLIF ( + 40, + - ( - MAX ( ALL + + 53 ) ) * + 40 * 38 ) ) + + + 73 * - + COUNT ( * ) AS col0
----
4886
-113

onlyif mysql # aggregate syntax: 
query II rowsort label-8356
SELECT + 90 * + 28, + 38 + COALESCE ( 72, + 17 * - + 91 * SUM( - 91 ) - - 83, - + 44 ) + + 15 * + - SUM( DISTINCT - + 78 ) * - 2 * + 43 - + ( 93 ) AS col0
----
2520
-100603

skipif mysql # not compatible
query II rowsort label-8356
SELECT + 90 * + 28, + 38 + COALESCE ( 72, + 17 * - + 91 * SUM ( - 91 ) - - 83, - + 44 ) + + 15 * + - SUM ( DISTINCT - + 78 ) * - 2 * + 43 - + ( 93 ) AS col0
----
2520
-100603

onlyif mysql # aggregate syntax: 
query I rowsort label-8357
SELECT CASE 67 WHEN 27 THEN - 59 * + - AVG ( - 54 ) + - - COUNT( * ) * - 22 WHEN - 11 THEN NULL ELSE + 72 * - 67 END
----
-4824

skipif mysql # not compatible
query I rowsort label-8357
SELECT CASE 67 WHEN 27 THEN - 59 * + - AVG ( - 54 ) + - - COUNT ( * ) * - 22 WHEN - 11 THEN NULL ELSE + 72 * - 67 END
----
-4824

query I rowsort
SELECT - 49 + 2 * 33
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-8359
SELECT - 60 * + + MIN( - 77 ) AS col0
----
4620

skipif mysql # not compatible
query I rowsort label-8359
SELECT - 60 * + + MIN ( - 77 ) AS col0
----
4620

query II rowsort
SELECT ALL 73 * + + 38 + + NULLIF ( 11, + + 74 ) AS col1, 72 + - 3 * + + 0 * - + 4
----
2785
72

query I rowsort
SELECT ALL 79 * ( 6 ) + + 32 AS col1
----
506

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8362
SELECT DISTINCT COUNT( * ) * - 74 * + CAST( - CASE - NULLIF ( - 57, - 89 + - 25 * ( + 1 ) ) WHEN + 8 + + - 15 * + + 37 THEN + COUNT( * ) ELSE NULL END AS SIGNED ) * 31 * + + 90 + + + 8 col1, - CAST( NULL AS SIGNED )
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-8362
SELECT DISTINCT COUNT ( * ) * - 74 * + CAST ( - CASE - NULLIF ( - 57, - 89 + - 25 * ( + 1 ) ) WHEN + 8 + + - 15 * + + 37 THEN + COUNT ( * ) ELSE NULL END AS INTEGER ) * 31 * + + 90 + + + 8 col1, - CAST ( NULL AS INTEGER )
----
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8363
SELECT DISTINCT CASE + 69 WHEN + + SUM( DISTINCT - CAST( 40 AS SIGNED ) ) THEN + + 69 END col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8363
SELECT DISTINCT CASE + 69 WHEN + + SUM ( DISTINCT - CAST ( 40 AS INTEGER ) ) THEN + + 69 END col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8364
SELECT ALL - ( - MAX( 37 ) ) * + 25 + ( - - 92 ) - NULLIF ( + 62, 53 - - - NULLIF ( + 45, + 93 ) * COUNT( * ) - - - ( CASE - ( - + 9 ) WHEN - + 63 * - + COUNT( * ) THEN + COUNT( * ) * - 41 WHEN - COALESCE ( + ( - 33 ), 96 * - 36 + + 77 + - CASE COUNT( - ( + COALESCE ( - 7, 66 + + 60 ) ) ) WHEN - 88 * - + 76 THEN + 15 / - - 6 + 11 ELSE NULL END, - - 14 ) THEN NULL ELSE + 96 END ) - 1 ) - + + 99 + - + COUNT( * ) AS col2
----
855

skipif mysql # not compatible
query I rowsort label-8364
SELECT ALL - ( - MAX ( 37 ) ) * + 25 + ( - - 92 ) - NULLIF ( + 62, 53 - - - NULLIF ( + 45, + 93 ) * COUNT ( * ) - - - ( CASE - ( - + 9 ) WHEN - + 63 * - + COUNT ( * ) THEN + COUNT ( * ) * - 41 WHEN - COALESCE ( + ( - 33 ), 96 * - 36 + + 77 + - CASE COUNT ( - ( + COALESCE ( - 7, 66 + + 60 ) ) ) WHEN - 88 * - + 76 THEN + 15 / - - 6 + 11 ELSE NULL END, - - 14 ) THEN NULL ELSE + 96 END ) - 1 ) - + + 99 + - + COUNT ( * ) AS col2
----
855

onlyif mysql # aggregate syntax: 
query II rowsort label-8365
SELECT - MAX( 28 ) AS col1, + 40
----
-28
40

skipif mysql # not compatible
query II rowsort label-8365
SELECT - MAX ( 28 ) AS col1, + 40
----
-28
40

onlyif mysql # aggregate syntax: 
query II rowsort label-8366
SELECT DISTINCT - ( - - 59 ) * + 19 * + - 20 * - + NULLIF ( - 63, + + 90 ), - COUNT( * ) * - + 47 col2
----
1412460
47

skipif mysql # not compatible
query II rowsort label-8366
SELECT DISTINCT - ( - - 59 ) * + 19 * + - 20 * - + NULLIF ( - 63, + + 90 ), - COUNT ( * ) * - + 47 col2
----
1412460
47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8367
SELECT ALL + CAST( + + CASE 48 WHEN - ( + 40 ) + - - 5 THEN + + 68 WHEN + CASE + 96 WHEN - COUNT( * ) + 38 THEN 6 * 91 ELSE NULL END THEN + 98 END AS SIGNED ) + 94 AS col0, - ( - 35 ) + + MIN( - 73 ) * - 91 col0
----
NULL
6678

skipif mysql # not compatible
query II rowsort label-8367
SELECT ALL + CAST ( + + CASE 48 WHEN - ( + 40 ) + - - 5 THEN + + 68 WHEN + CASE + 96 WHEN - COUNT ( * ) + 38 THEN 6 * 91 ELSE NULL END THEN + 98 END AS INTEGER ) + 94 AS col0, - ( - 35 ) + + MIN ( - 73 ) * - 91 col0
----
NULL
6678

onlyif mysql # aggregate syntax: 
query I rowsort label-8368
SELECT - 58 - + 7 + - - 3 + + COUNT( * ) * + 34 * - 96 * - 60 + - SUM( + 0 ) + - + 29 * + ( + - 58 ) * 82 AS col2
----
333702

skipif mysql # not compatible
query I rowsort label-8368
SELECT - 58 - + 7 + - - 3 + + COUNT ( * ) * + 34 * - 96 * - 60 + - SUM ( + 0 ) + - + 29 * + ( + - 58 ) * 82 AS col2
----
333702

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8369
SELECT - ( + + COUNT( * ) ) DIV 54 + - - 47 AS col1
----
47

skipif mysql # not compatible
query I rowsort label-8369
SELECT - ( + + COUNT ( * ) ) / 54 + - - 47 AS col1
----
47

query I rowsort
SELECT + 42 * 65 col2
----
2730

query I rowsort
SELECT + ( - 50 )
----
-50

query I rowsort
SELECT DISTINCT + 2 - + - 91 + + 83 + + 87 + + 72
----
335

onlyif mysql # aggregate syntax: 
query I rowsort label-8373
SELECT ALL - COUNT( * ) * - 79 * 27
----
2133

skipif mysql # not compatible
query I rowsort label-8373
SELECT ALL - COUNT ( * ) * - 79 * 27
----
2133

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8374
SELECT - + 74 - + CAST( NULL AS DECIMAL ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8374
SELECT - + 74 - + CAST ( NULL AS REAL ) AS col0
----
NULL

query I rowsort
SELECT DISTINCT - ( + 21 ) col0
----
-21

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8376
SELECT ALL - + 11 DIV + - 63 AS col1, COUNT( * ) AS col0
----
0
1

skipif mysql # not compatible
query II rowsort label-8376
SELECT ALL - + 11 / + - 63 AS col1, COUNT ( * ) AS col0
----
0
1

query I rowsort
SELECT - 88 + - + 55 col1
----
-143

onlyif mysql # aggregate syntax: 
query I rowsort label-8378
SELECT + 58 * + NULLIF ( 98, - COUNT( + 49 ) * + 66 / + 23 + 99 )
----
5684

skipif mysql # not compatible
query I rowsort label-8378
SELECT + 58 * + NULLIF ( 98, - COUNT ( + 49 ) * + 66 / + 23 + 99 )
----
5684

query I rowsort
SELECT - + 57 AS col0
----
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-8380
SELECT - COUNT( * ) + - COALESCE ( + - 64, - 15 ) AS col2
----
63

skipif mysql # not compatible
query I rowsort label-8380
SELECT - COUNT ( * ) + - COALESCE ( + - 64, - 15 ) AS col2
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-8381
SELECT + 71 - COUNT( * )
----
70

skipif mysql # not compatible
query I rowsort label-8381
SELECT + 71 - COUNT ( * )
----
70

query I rowsort
SELECT 62 - ( - - 67 ) * 80 * + 73 AS col2
----
-391218

query I rowsort
SELECT 1 * 12 AS col2
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-8384
SELECT DISTINCT - 23 * COUNT( * )
----
-23

skipif mysql # not compatible
query I rowsort label-8384
SELECT DISTINCT - 23 * COUNT ( * )
----
-23

query I rowsort
SELECT ALL - ( - 63 )
----
63

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8386
SELECT ALL 80 + - 80 + 80 * 17 DIV - + 68 + + + COUNT( * )
----
-19

skipif mysql # not compatible
query I rowsort label-8386
SELECT ALL 80 + - 80 + 80 * 17 / - + 68 + + + COUNT ( * )
----
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-8387
SELECT 20 + + ( - 86 ) + - + 25 * + - SUM( + - 58 ) * 28 + + ( - 80 ) - + 6 AS col2
----
-40752

skipif mysql # not compatible
query I rowsort label-8387
SELECT 20 + + ( - 86 ) + - + 25 * + - SUM ( + - 58 ) * 28 + + ( - 80 ) - + 6 AS col2
----
-40752

query I rowsort
SELECT 26 * 68 * + - 93
----
-164424

onlyif mysql # DIV for integer division: 
query III rowsort label-8389
SELECT 33 * + - 98 + 29 col1, 25 DIV - + 62 - + - 88 col1, - + ( + + 82 )
----
-3205
88
-82

skipif mysql # not compatible
query III rowsort label-8389
SELECT 33 * + - 98 + 29 col1, 25 / - + 62 - + - 88 col1, - + ( + + 82 )
----
-3205
88
-82

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8390
SELECT DISTINCT 79 + - + SUM( DISTINCT + 41 ) * 69 + + COUNT( * ) - CAST( ( - + COUNT( * ) ) AS SIGNED ) DIV - 13 * - - MAX( + 31 ) * - 37
----
-2749

skipif mysql # not compatible
query I rowsort label-8390
SELECT DISTINCT 79 + - + SUM ( DISTINCT + 41 ) * 69 + + COUNT ( * ) - CAST ( ( - + COUNT ( * ) ) AS INTEGER ) / - 13 * - - MAX ( + 31 ) * - 37
----
-2749

onlyif mysql # aggregate syntax: 
query I rowsort label-8391
SELECT DISTINCT MIN( 60 ) + + + 61 - - - 31
----
90

skipif mysql # not compatible
query I rowsort label-8391
SELECT DISTINCT MIN ( 60 ) + + + 61 - - - 31
----
90

query I rowsort
SELECT ALL - 33 + 85 + - 22 + - 17 + + - 34 + - - 96 AS col2
----
75

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8393
SELECT COUNT( * ) - + 62 * - CASE + - 91 WHEN - CAST( + 48 AS DECIMAL ) * + - 89 - 23 THEN + + CASE - 93 WHEN - - 77 THEN NULL ELSE - 33 + - - 82 END * - + 18 + + 68 WHEN - 93 + + 35 + - 40 THEN NULL ELSE - + 35 END AS col1
----
-2169

skipif mysql # not compatible
query I rowsort label-8393
SELECT COUNT ( * ) - + 62 * - CASE + - 91 WHEN - CAST ( + 48 AS REAL ) * + - 89 - 23 THEN + + CASE - 93 WHEN - - 77 THEN NULL ELSE - 33 + - - 82 END * - + 18 + + 68 WHEN - 93 + + 35 + - 40 THEN NULL ELSE - + 35 END AS col1
----
-2169

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8394
SELECT DISTINCT COUNT( * ) + + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8394
SELECT DISTINCT COUNT ( * ) + + CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT ALL CASE + 79 WHEN - + ( + 68 ) THEN NULL ELSE + 28 - + 9 + - 68 * 14 * - 21 END + 58 AS col0
----
20069

query II rowsort
SELECT 9, + 15 col2
----
9
15

query I rowsort
SELECT + 12 - + NULLIF ( - 85, - 63 + 3 + - - 70 + + 98 )
----
97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-8398
SELECT 59 * COUNT( DISTINCT 11 ) + 22 DIV + + 57 * 59 * - + CAST( + 63 AS SIGNED ) * + 26 AS col1, - 92
----
59
-92

skipif mysql # not compatible
query II rowsort label-8398
SELECT 59 * COUNT ( DISTINCT 11 ) + 22 / + + 57 * 59 * - + CAST ( + 63 AS INTEGER ) * + 26 AS col1, - 92
----
59
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-8399
SELECT + 80 * + 20 + - ( - COUNT( * ) ) + + 71
----
1672

skipif mysql # not compatible
query I rowsort label-8399
SELECT + 80 * + 20 + - ( - COUNT ( * ) ) + + 71
----
1672

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8400
SELECT - 79 * + 67 + - - SUM( DISTINCT - - 86 ), 37 DIV + + 82 AS col1
----
-5207
0

skipif mysql # not compatible
query II rowsort label-8400
SELECT - 79 * + 67 + - - SUM ( DISTINCT - - 86 ), 37 / + + 82 AS col1
----
-5207
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8401
SELECT COUNT( * ) * + 5 DIV + - 12 * MAX( ( 58 ) )
----
0

skipif mysql # not compatible
query I rowsort label-8401
SELECT COUNT ( * ) * + 5 / + - 12 * MAX ( ( 58 ) )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8402
SELECT ALL CAST( - AVG ( DISTINCT + NULLIF ( 52, - 0 ) ) AS SIGNED )
----
-52

skipif mysql # not compatible
query I rowsort label-8402
SELECT ALL CAST ( - AVG ( DISTINCT + NULLIF ( 52, - 0 ) ) AS INTEGER )
----
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-8403
SELECT 69 + + CASE - 73 WHEN - - 28 THEN + + 38 END / COUNT( * ) - - + 27 * + 1
----
NULL

skipif mysql # not compatible
query I rowsort label-8403
SELECT 69 + + CASE - 73 WHEN - - 28 THEN + + 38 END / COUNT ( * ) - - + 27 * + 1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8404
SELECT ALL - 28 AS col2, - COUNT( * )
----
-28
-1

skipif mysql # not compatible
query II rowsort label-8404
SELECT ALL - 28 AS col2, - COUNT ( * )
----
-28
-1

query I rowsort
SELECT - 6 + + - 63
----
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-8406
SELECT 62 + COALESCE ( - 77, 79 * - - 78 * - ( + - COUNT( * ) ) + + + 43 + 69 ) + - 80 AS col0
----
-95

skipif mysql # not compatible
query I rowsort label-8406
SELECT 62 + COALESCE ( - 77, 79 * - - 78 * - ( + - COUNT ( * ) ) + + + 43 + 69 ) + - 80 AS col0
----
-95

query I rowsort
SELECT - + 95 AS col1
----
-95

onlyif mysql # aggregate syntax: 
query II rowsort label-8408
SELECT 67 AS col1, - 90 + + COUNT( * )
----
67
-89

skipif mysql # not compatible
query II rowsort label-8408
SELECT 67 AS col1, - 90 + + COUNT ( * )
----
67
-89

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8409
SELECT - 98, CAST( - COALESCE ( - + 37, - - 3 + + - 1 ) AS SIGNED ) AS col1, + 31 AS col1
----
-98
37
31

skipif mysql # not compatible
query III rowsort label-8409
SELECT - 98, CAST ( - COALESCE ( - + 37, - - 3 + + - 1 ) AS INTEGER ) AS col1, + 31 AS col1
----
-98
37
31

query II rowsort
SELECT ALL - 65 + + + 53 * + 86 col2, 33 AS col0
----
4493
33

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8411
SELECT DISTINCT + COUNT( ALL - ( + + CAST( CAST( NULL AS SIGNED ) AS SIGNED ) ) ) + + 96 AS col2
----
96

skipif mysql # not compatible
query I rowsort label-8411
SELECT DISTINCT + COUNT ( ALL - ( + + CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) ) ) + + 96 AS col2
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-8412
SELECT - 54 * + 95 + + - COUNT( - 52 ) AS col1
----
-5131

skipif mysql # not compatible
query I rowsort label-8412
SELECT - 54 * + 95 + + - COUNT ( - 52 ) AS col1
----
-5131

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8413
SELECT ALL + 64 + - CAST( 62 AS SIGNED ) AS col1
----
2

skipif mysql # not compatible
query I rowsort label-8413
SELECT ALL + 64 + - CAST ( 62 AS INTEGER ) AS col1
----
2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8414
SELECT - 53 * CAST( - - 95 AS SIGNED ) - + 41 col1
----
-5076

skipif mysql # not compatible
query I rowsort label-8414
SELECT - 53 * CAST ( - - 95 AS INTEGER ) - + 41 col1
----
-5076

onlyif mysql # aggregate syntax: 
query II rowsort label-8415
SELECT SUM( + 25 ), 35 + + 19 AS col2
----
25
54

skipif mysql # not compatible
query II rowsort label-8415
SELECT SUM ( + 25 ), 35 + + 19 AS col2
----
25
54

onlyif mysql # DIV for integer division: 
query I rowsort label-8416
SELECT 16 DIV - - 89 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-8416
SELECT 16 / - - 89 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8417
SELECT MAX( ALL - - 29 ) AS col0
----
29

skipif mysql # not compatible
query I rowsort label-8417
SELECT MAX ( ALL - - 29 ) AS col0
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-8418
SELECT DISTINCT ( - 96 ) * - MIN( - + 68 ) + + 26 * + + 14
----
-6164

skipif mysql # not compatible
query I rowsort label-8418
SELECT DISTINCT ( - 96 ) * - MIN ( - + 68 ) + + 26 * + + 14
----
-6164

onlyif mysql # aggregate syntax: 
query I rowsort label-8419
SELECT ALL 55 + 91 + - COALESCE ( + ( - SUM( - 22 ) ), - ( + ( + 79 ) ) ) - - COUNT( * ) * - 10
----
114

skipif mysql # not compatible
query I rowsort label-8419
SELECT ALL 55 + 91 + - COALESCE ( + ( - SUM ( - 22 ) ), - ( + ( + 79 ) ) ) - - COUNT ( * ) * - 10
----
114

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8420
SELECT - 40 DIV - NULLIF ( + + ( - 4 ), AVG ( ALL - - 23 ) * + 77 + - + 9 ) + - 45 * - ( MIN( + - 20 ) ) AS col2, + 51 col1
----
-910
51

skipif mysql # not compatible
query II rowsort label-8420
SELECT - 40 / - NULLIF ( + + ( - 4 ), AVG ( ALL - - 23 ) * + 77 + - + 9 ) + - 45 * - ( MIN ( + - 20 ) ) AS col2, + 51 col1
----
-910
51

onlyif mysql # aggregate syntax: 
query I rowsort label-8421
SELECT ALL - 74 * SUM( DISTINCT - 67 )
----
4958

skipif mysql # not compatible
query I rowsort label-8421
SELECT ALL - 74 * SUM ( DISTINCT - 67 )
----
4958

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8422
SELECT DISTINCT - CAST( + 65 AS SIGNED )
----
-65

skipif mysql # not compatible
query I rowsort label-8422
SELECT DISTINCT - CAST ( + 65 AS INTEGER )
----
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-8423
SELECT + COUNT( * ) * 30 - 59 AS col2
----
-29

skipif mysql # not compatible
query I rowsort label-8423
SELECT + COUNT ( * ) * 30 - 59 AS col2
----
-29

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8424
SELECT ALL MIN( CAST( NULL AS SIGNED ) ) - + COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8424
SELECT ALL MIN ( CAST ( NULL AS INTEGER ) ) - + COUNT ( * ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8425
SELECT 35 * - + COUNT( * ) col0
----
-35

skipif mysql # not compatible
query I rowsort label-8425
SELECT 35 * - + COUNT ( * ) col0
----
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-8426
SELECT ( + 77 ) * + ( NULLIF ( 41, - + 52 / - COUNT( * ) * - 22 - + 16 * + NULLIF ( - 88, - NULLIF ( + - 49, + 70 * - 39 ) ) ) ) + + 47 + + 89 + COUNT( * )
----
3294

skipif mysql # not compatible
query I rowsort label-8426
SELECT ( + 77 ) * + ( NULLIF ( 41, - + 52 / - COUNT ( * ) * - 22 - + 16 * + NULLIF ( - 88, - NULLIF ( + - 49, + 70 * - 39 ) ) ) ) + + 47 + + 89 + COUNT ( * )
----
3294

onlyif mysql # aggregate syntax: 
query I rowsort label-8427
SELECT 59 + + MIN( ALL + - 60 ) + - + 77 AS col0
----
-78

skipif mysql # not compatible
query I rowsort label-8427
SELECT 59 + + MIN ( ALL + - 60 ) + - + 77 AS col0
----
-78

query I rowsort
SELECT DISTINCT - + 89
----
-89

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8429
SELECT ALL COUNT( 0 ) DIV - + COUNT( * ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-8429
SELECT ALL COUNT ( 0 ) / - + COUNT ( * ) AS col1
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8430
SELECT - CAST( 58 AS SIGNED ) * + - CASE 53 WHEN 99 THEN 73 END
----
NULL

skipif mysql # not compatible
query I rowsort label-8430
SELECT - CAST ( 58 AS INTEGER ) * + - CASE 53 WHEN 99 THEN 73 END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8431
SELECT DISTINCT - 54 - + 91 * + - CAST( + 93 AS SIGNED )
----
8409

skipif mysql # not compatible
query I rowsort label-8431
SELECT DISTINCT - 54 - + 91 * + - CAST ( + 93 AS INTEGER )
----
8409

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8432
SELECT ALL ( 83 ) DIV COUNT( * ) AS col2
----
83

skipif mysql # not compatible
query I rowsort label-8432
SELECT ALL ( 83 ) / COUNT ( * ) AS col2
----
83

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8433
SELECT ALL + 21 * + 11 * - 5 * + CASE + 0 WHEN + + 70 THEN - COALESCE ( - 21, - 75 * - - 12 / - 5 ) WHEN + COALESCE ( 93, + 58 ) THEN - 15 * - - CAST( NULL AS DECIMAL ) - + SUM( + 68 ) WHEN - + 3 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-8433
SELECT ALL + 21 * + 11 * - 5 * + CASE + 0 WHEN + + 70 THEN - COALESCE ( - 21, - 75 * - - 12 / - 5 ) WHEN + COALESCE ( 93, + 58 ) THEN - 15 * - - CAST ( NULL AS REAL ) - + SUM ( + 68 ) WHEN - + 3 THEN NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8434
SELECT COUNT( * ) - 20 + 44 AS col1
----
25

skipif mysql # not compatible
query I rowsort label-8434
SELECT COUNT ( * ) - 20 + 44 AS col1
----
25

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8435
SELECT COUNT( * ) DIV - 96 - + 58 AS col0
----
-58

skipif mysql # not compatible
query I rowsort label-8435
SELECT COUNT ( * ) / - 96 - + 58 AS col0
----
-58

query I rowsort
SELECT 64 - - 24 * + 31 + 66 AS col0
----
874

onlyif mysql # DIV for integer division: 
query I rowsort label-8437
SELECT ALL + 11 DIV + 50 * + 21 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-8437
SELECT ALL + 11 / + 50 * + 21 AS col0
----
0

query I rowsort
SELECT ALL - + 81 + - - 45 AS col2
----
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-8439
SELECT - COUNT( * ) - - 6
----
5

skipif mysql # not compatible
query I rowsort label-8439
SELECT - COUNT ( * ) - - 6
----
5

query I rowsort
SELECT ALL NULLIF ( - + 20, - 58 + - 44 )
----
-20

query I rowsort
SELECT DISTINCT - 9 + + 4 + 92 AS col1
----
87

query I rowsort
SELECT ALL COALESCE ( - 39, + 24 * 16 )
----
-39

query I rowsort
SELECT - 62 * + 26
----
-1612

query I rowsort
SELECT DISTINCT + 51 + - 88 col0
----
-37

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8445
SELECT - COUNT( * ) - - 20 - + NULLIF ( 77, + COUNT( * ) ) DIV - 40
----
20

skipif mysql # not compatible
query I rowsort label-8445
SELECT - COUNT ( * ) - - 20 - + NULLIF ( 77, + COUNT ( * ) ) / - 40
----
20

query I rowsort
SELECT DISTINCT + 93 col1
----
93

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8447
SELECT DISTINCT + 67 * COUNT( * ) * CAST( + 10 AS SIGNED ) + - 54 AS col0, 53 AS col1
----
616
53

skipif mysql # not compatible
query II rowsort label-8447
SELECT DISTINCT + 67 * COUNT ( * ) * CAST ( + 10 AS INTEGER ) + - 54 AS col0, 53 AS col1
----
616
53

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8448
SELECT - CAST( NULL AS SIGNED ) / + 39 * ( - 99 ) * 11 + - 89
----
NULL

skipif mysql # not compatible
query I rowsort label-8448
SELECT - CAST ( NULL AS INTEGER ) / + 39 * ( - 99 ) * 11 + - 89
----
NULL

query II rowsort
SELECT ALL + 25 AS col0, 52 AS col2
----
25
52

onlyif mysql # DIV for integer division: 
query I rowsort label-8450
SELECT 7 DIV 27 + 4
----
4

skipif mysql # not compatible
query I rowsort label-8450
SELECT 7 / 27 + 4
----
4

query I rowsort
SELECT ALL 42 * - 78
----
-3276

query I rowsort
SELECT ALL 1 * 32 AS col0
----
32

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8453
SELECT - COALESCE ( CAST( NULL AS SIGNED ), 41 ) + - 63 * ( - 21 )
----
1282

skipif mysql # not compatible
query I rowsort label-8453
SELECT - COALESCE ( CAST ( NULL AS INTEGER ), 41 ) + - 63 * ( - 21 )
----
1282

query I rowsort
SELECT DISTINCT 35 * + 0
----
0

query I rowsort
SELECT DISTINCT + 26 * 39
----
1014

query I rowsort
SELECT + ( + 0 ) + 57
----
57

query I rowsort
SELECT - 64 + - 21
----
-85

query I rowsort
SELECT + 70 - + 13 AS col1
----
57

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8459
SELECT + 29 * CAST( - 46 AS SIGNED ) AS col2
----
-1334

skipif mysql # not compatible
query I rowsort label-8459
SELECT + 29 * CAST ( - 46 AS INTEGER ) AS col2
----
-1334

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8460
SELECT + 16 * NULLIF ( + COUNT( * ), 16 ) + - ( - CAST( NULL AS SIGNED ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8460
SELECT + 16 * NULLIF ( + COUNT ( * ), 16 ) + - ( - CAST ( NULL AS INTEGER ) ) AS col2
----
NULL

query I rowsort
SELECT + 46 - 21
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-8462
SELECT - COUNT( ALL 90 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-8462
SELECT - COUNT ( ALL 90 ) AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8463
SELECT MAX( ALL - 91 ) AS col1
----
-91

skipif mysql # not compatible
query I rowsort label-8463
SELECT MAX ( ALL - 91 ) AS col1
----
-91

query I rowsort
SELECT ALL 28 + - 29
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8465
SELECT MAX( - 49 ) col0
----
-49

skipif mysql # not compatible
query I rowsort label-8465
SELECT MAX ( - 49 ) col0
----
-49

query I rowsort
SELECT - CASE + 95 WHEN - 42 THEN 77 WHEN 82 * ( 92 * 2 ) + 95 THEN NULL END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8467
SELECT ALL COUNT( + 46 ) + COUNT( * )
----
2

skipif mysql # not compatible
query I rowsort label-8467
SELECT ALL COUNT ( + 46 ) + COUNT ( * )
----
2

query I rowsort
SELECT + 10 + 60
----
70

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8469
SELECT ALL CAST( NULL AS SIGNED ) * + 16
----
NULL

skipif mysql # not compatible
query I rowsort label-8469
SELECT ALL CAST ( NULL AS INTEGER ) * + 16
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8470
SELECT ALL COUNT( DISTINCT - 7 ) + - 44
----
-43

skipif mysql # not compatible
query I rowsort label-8470
SELECT ALL COUNT ( DISTINCT - 7 ) + - 44
----
-43

query I rowsort
SELECT + 86 + - 46
----
40

query I rowsort
SELECT ALL 92 + ( - 79 )
----
13

query I rowsort
SELECT - ( 69 )
----
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-8474
SELECT + COUNT( ALL - 42 ) + - 0 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-8474
SELECT + COUNT ( ALL - 42 ) + - 0 AS col1
----
1

query I rowsort
SELECT + 74 * 81 AS col0
----
5994

query I rowsort
SELECT ALL 86 * 68 AS col2
----
5848

query I rowsort
SELECT + 68 + + 29
----
97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8478
SELECT + 27 / - CASE COUNT( 76 ) * ( 83 ) WHEN - 30 THEN + 90 - + CAST( 8 AS SIGNED ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-8478
SELECT + 27 / - CASE COUNT ( 76 ) * ( 83 ) WHEN - 30 THEN + 90 - + CAST ( 8 AS INTEGER ) ELSE NULL END
----
NULL

query I rowsort
SELECT - 32 + - 58
----
-90

query I rowsort
SELECT ALL + 47 + 62 AS col0
----
109

onlyif mysql # DIV for integer division: 
query I rowsort label-8481
SELECT DISTINCT - 92 DIV 41
----
-2

skipif mysql # not compatible
query I rowsort label-8481
SELECT DISTINCT - 92 / 41
----
-2

onlyif mysql # DIV for integer division: 
query I rowsort label-8482
SELECT + 97 DIV 96
----
1

skipif mysql # not compatible
query I rowsort label-8482
SELECT + 97 / 96
----
1

query I rowsort
SELECT - 14 + 67
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-8484
SELECT - COUNT( DISTINCT 17 ) * 11
----
-11

skipif mysql # not compatible
query I rowsort label-8484
SELECT - COUNT ( DISTINCT 17 ) * 11
----
-11

query I rowsort
SELECT ALL ( 48 ) - 54 AS col1
----
-6

query I rowsort
SELECT + ( - NULLIF ( 52, 7 ) ) * 12 + - 54
----
-678

query I rowsort
SELECT - ( - 73 ) * + 22 AS col1
----
1606

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8488
SELECT CAST( 32 AS SIGNED ) AS col0
----
32

skipif mysql # not compatible
query I rowsort label-8488
SELECT CAST ( 32 AS INTEGER ) AS col0
----
32

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8489
SELECT - CAST( 40 AS SIGNED ) + - 32
----
-72

skipif mysql # not compatible
query I rowsort label-8489
SELECT - CAST ( 40 AS INTEGER ) + - 32
----
-72

query I rowsort
SELECT DISTINCT + 2 * - 21
----
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-8491
SELECT SUM( ALL - 55 ) * 39 + + 71
----
-2074

skipif mysql # not compatible
query I rowsort label-8491
SELECT SUM ( ALL - 55 ) * 39 + + 71
----
-2074

query I rowsort
SELECT - ( ( ( ( CASE 32 WHEN + 58 THEN - ( - AVG ( + 27 ) ) * - 23 ELSE NULL END ) ) ) ) * + 58 AS col2
----
NULL

query I rowsort
SELECT ALL 12 * 88
----
1056

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8494
SELECT ALL + CAST( - 0 AS SIGNED ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-8494
SELECT ALL + CAST ( - 0 AS INTEGER ) AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8495
SELECT DISTINCT + + COUNT( DISTINCT + 0 )
----
1

skipif mysql # not compatible
query I rowsort label-8495
SELECT DISTINCT + + COUNT ( DISTINCT + 0 )
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8496
SELECT ALL + COUNT( * ) * CAST( - 2 + 63 AS SIGNED ) + 53 * 7 AS col2
----
432

skipif mysql # not compatible
query I rowsort label-8496
SELECT ALL + COUNT ( * ) * CAST ( - 2 + 63 AS INTEGER ) + 53 * 7 AS col2
----
432

query I rowsort
SELECT - 73 * 38 + 58
----
-2716

onlyif mysql # aggregate syntax: 
query I rowsort label-8498
SELECT COUNT( * ) * CASE + 82 * 83 WHEN COUNT( * ) THEN - 17 * 57 ELSE NULL END col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8498
SELECT COUNT ( * ) * CASE + 82 * 83 WHEN COUNT ( * ) THEN - 17 * 57 ELSE NULL END col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8499
SELECT ALL - - SUM( ALL 79 ) + 26 AS col2
----
105

skipif mysql # not compatible
query I rowsort label-8499
SELECT ALL - - SUM ( ALL 79 ) + 26 AS col2
----
105

query I rowsort
SELECT - 52 * - 69 AS col0
----
3588

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8501
SELECT ALL + CAST( - 84 AS SIGNED ) + 55 * + 1
----
-29

skipif mysql # not compatible
query I rowsort label-8501
SELECT ALL + CAST ( - 84 AS INTEGER ) + 55 * + 1
----
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-8502
SELECT + MAX( DISTINCT + 13 ) col1
----
13

skipif mysql # not compatible
query I rowsort label-8502
SELECT + MAX ( DISTINCT + 13 ) col1
----
13

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8503
SELECT CAST( - COALESCE ( 33, - ( + 53 ), + AVG ( DISTINCT - 64 ) ) AS SIGNED )
----
-33

skipif mysql # not compatible
query I rowsort label-8503
SELECT CAST ( - COALESCE ( 33, - ( + 53 ), + AVG ( DISTINCT - 64 ) ) AS INTEGER )
----
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-8504
SELECT ALL - + 10 + COALESCE ( 20, - 58, 62 * SUM( 11 ) ) AS col2
----
10

skipif mysql # not compatible
query I rowsort label-8504
SELECT ALL - + 10 + COALESCE ( 20, - 58, 62 * SUM ( 11 ) ) AS col2
----
10

query I rowsort
SELECT ALL - 20 + - 71 AS col2
----
-91

query I rowsort
SELECT ALL + + 97 + 93
----
190

query I rowsort
SELECT DISTINCT - ( - AVG ( CASE - 46 WHEN + 34 / 11 THEN + 24 + + 22 * + 8 END ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8508
SELECT 28 * COUNT( * ) - 9 * - 84 AS col2
----
784

skipif mysql # not compatible
query I rowsort label-8508
SELECT 28 * COUNT ( * ) - 9 * - 84 AS col2
----
784

onlyif mysql # aggregate syntax: 
query I rowsort label-8509
SELECT 96 + COUNT( * ) AS col2
----
97

skipif mysql # not compatible
query I rowsort label-8509
SELECT 96 + COUNT ( * ) AS col2
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-8510
SELECT - COUNT( * ) * 44 AS col1
----
-44

skipif mysql # not compatible
query I rowsort label-8510
SELECT - COUNT ( * ) * 44 AS col1
----
-44

query I rowsort
SELECT 19 + 26 AS col1
----
45

query I rowsort
SELECT ALL 15 - + 14 AS col0
----
1

query I rowsort
SELECT 35 * + 24
----
840

query I rowsort
SELECT DISTINCT 32 * + 67 AS col0
----
2144

query I rowsort
SELECT ALL 67 * + 72 AS col1
----
4824

query I rowsort
SELECT 54 - 20 * + 80
----
-1546

onlyif mysql # aggregate syntax: 
query I rowsort label-8517
SELECT ALL 79 - 44 + NULLIF ( + 19, + 61 - - SUM( 0 ) ) AS col2
----
54

skipif mysql # not compatible
query I rowsort label-8517
SELECT ALL 79 - 44 + NULLIF ( + 19, + 61 - - SUM ( 0 ) ) AS col2
----
54

query I rowsort
SELECT 61 * - 94
----
-5734

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8519
SELECT ( - ( CAST( 79 AS SIGNED ) ) ) + + 87 AS col0
----
8

skipif mysql # not compatible
query I rowsort label-8519
SELECT ( - ( CAST ( 79 AS INTEGER ) ) ) + + 87 AS col0
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-8520
SELECT COUNT( * ) + COUNT( DISTINCT + 58 ) + + 12 * + 34
----
410

skipif mysql # not compatible
query I rowsort label-8520
SELECT COUNT ( * ) + COUNT ( DISTINCT + 58 ) + + 12 * + 34
----
410

query I rowsort
SELECT ALL 31 * - + 1
----
-31

query I rowsort
SELECT 44 + 82
----
126

onlyif mysql # DIV for integer division: 
query I rowsort label-8523
SELECT 80 DIV + 96
----
0

skipif mysql # not compatible
query I rowsort label-8523
SELECT 80 / + 96
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8524
SELECT 51 * - - MAX( 75 )
----
3825

skipif mysql # not compatible
query I rowsort label-8524
SELECT 51 * - - MAX ( 75 )
----
3825

query I rowsort
SELECT 86 * - + 28 * + 55 AS col2
----
-132440

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8526
SELECT 89 - + - CAST( NULL AS SIGNED ) + + 58 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8526
SELECT 89 - + - CAST ( NULL AS INTEGER ) + + 58 AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8527
SELECT ALL CAST( NULL AS SIGNED ) * + 81 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8527
SELECT ALL CAST ( NULL AS INTEGER ) * + 81 AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8528
SELECT ALL - 44 DIV 27 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-8528
SELECT ALL - 44 / 27 AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8529
SELECT MAX( 54 ) * + 4
----
216

skipif mysql # not compatible
query I rowsort label-8529
SELECT MAX ( 54 ) * + 4
----
216

onlyif mysql # aggregate syntax: 
query I rowsort label-8530
SELECT ALL - ( - MIN( + 42 ) )
----
42

skipif mysql # not compatible
query I rowsort label-8530
SELECT ALL - ( - MIN ( + 42 ) )
----
42

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8531
SELECT DISTINCT - COUNT( * ) + + 16 - COALESCE ( ( + COUNT( * ) ), 89 + - MIN( 48 ) DIV - 90 ) * + 59 * - 80
----
4735

skipif mysql # not compatible
query I rowsort label-8531
SELECT DISTINCT - COUNT ( * ) + + 16 - COALESCE ( ( + COUNT ( * ) ), 89 + - MIN ( 48 ) / - 90 ) * + 59 * - 80
----
4735

query I rowsort
SELECT + 47 + + 74 * - 40
----
-2913

query I rowsort
SELECT DISTINCT - + ( + - 35 )
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-8534
SELECT 23 + SUM( 19 ) col0
----
42

skipif mysql # not compatible
query I rowsort label-8534
SELECT 23 + SUM ( 19 ) col0
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-8535
SELECT ALL + 65 + + ( + 1 ) * + COUNT( ALL 19 * 32 ) AS col2
----
66

skipif mysql # not compatible
query I rowsort label-8535
SELECT ALL + 65 + + ( + 1 ) * + COUNT ( ALL 19 * 32 ) AS col2
----
66

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8536
SELECT + 42 * 27 DIV 97 + 83 * - COUNT( * ) AS col0
----
-72

skipif mysql # not compatible
query I rowsort label-8536
SELECT + 42 * 27 / 97 + 83 * - COUNT ( * ) AS col0
----
-72

query I rowsort
SELECT ALL + 73 + + 26 + 56 AS col1
----
155

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8538
SELECT ALL - - 75 * - CAST( - 92 AS SIGNED )
----
6900

skipif mysql # not compatible
query I rowsort label-8538
SELECT ALL - - 75 * - CAST ( - 92 AS INTEGER )
----
6900

onlyif mysql # aggregate syntax: 
query I rowsort label-8539
SELECT CASE + 33 WHEN - 31 THEN 12 + - 78 ELSE NULL END + - MAX( 42 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8539
SELECT CASE + 33 WHEN - 31 THEN 12 + - 78 ELSE NULL END + - MAX ( 42 ) AS col0
----
NULL

query I rowsort
SELECT ALL + 4 + - 96 AS col0
----
-92

query I rowsort
SELECT ALL NULLIF ( + + 59, - 45 / 2 ) + 82 * 57 AS col1
----
4733

query I rowsort
SELECT ( + 9 ) * + 75 + 70
----
745

query I rowsort
SELECT ALL - - 47 AS col0
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-8544
SELECT DISTINCT - MIN( 76 )
----
-76

skipif mysql # not compatible
query I rowsort label-8544
SELECT DISTINCT - MIN ( 76 )
----
-76

query I rowsort
SELECT + - ( + - 86 )
----
86

query I rowsort
SELECT 83 * + - 29 + 51
----
-2356

onlyif mysql # aggregate syntax: 
query I rowsort label-8547
SELECT - MAX( + 99 ) AS col1
----
-99

skipif mysql # not compatible
query I rowsort label-8547
SELECT - MAX ( + 99 ) AS col1
----
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-8548
SELECT - 87 * + - 56 + + COALESCE ( + ( 94 ), 4 ) * COUNT( * )
----
4966

skipif mysql # not compatible
query I rowsort label-8548
SELECT - 87 * + - 56 + + COALESCE ( + ( 94 ), 4 ) * COUNT ( * )
----
4966

onlyif mysql # aggregate syntax: 
query I rowsort label-8549
SELECT + NULLIF ( - CASE 55 WHEN + 26 - - 78 THEN NULL ELSE COUNT( * ) END, 85 + - 22 ) + 95
----
94

skipif mysql # not compatible
query I rowsort label-8549
SELECT + NULLIF ( - CASE 55 WHEN + 26 - - 78 THEN NULL ELSE COUNT ( * ) END, 85 + - 22 ) + 95
----
94

query I rowsort
SELECT DISTINCT - 39 * 10 + - 67 AS col1
----
-457

query I rowsort
SELECT DISTINCT + 74 * + 81
----
5994

query I rowsort
SELECT ALL - 20 * + 76 AS col0
----
-1520

onlyif mysql # aggregate syntax: 
query II rowsort label-8553
SELECT ALL 60, + COUNT( * ) AS col1
----
60
1

skipif mysql # not compatible
query II rowsort label-8553
SELECT ALL 60, + COUNT ( * ) AS col1
----
60
1

query I rowsort
SELECT 54 + 23 + + 84
----
161

query II rowsort
SELECT ALL 63, + 94 * 93 AS col2
----
63
8742

onlyif mysql # aggregate syntax: 
query I rowsort label-8556
SELECT DISTINCT COUNT( DISTINCT + - 55 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-8556
SELECT DISTINCT COUNT ( DISTINCT + - 55 ) AS col1
----
1

query I rowsort
SELECT 70 * - + 24 AS col2
----
-1680

query I rowsort
SELECT 89 + - 37 col0
----
52

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8559
SELECT 60 * - CAST( 55 AS SIGNED ) col1
----
-3300

skipif mysql # not compatible
query I rowsort label-8559
SELECT 60 * - CAST ( 55 AS INTEGER ) col1
----
-3300

onlyif mysql # aggregate syntax: 
query II rowsort label-8560
SELECT ALL COUNT( * ) AS col0, SUM( + 91 ) AS col1
----
1
91

skipif mysql # not compatible
query II rowsort label-8560
SELECT ALL COUNT ( * ) AS col0, SUM ( + 91 ) AS col1
----
1
91

onlyif mysql # aggregate syntax: 
query I rowsort label-8561
SELECT ALL COUNT( DISTINCT 93 )
----
1

skipif mysql # not compatible
query I rowsort label-8561
SELECT ALL COUNT ( DISTINCT 93 )
----
1

query I rowsort
SELECT ALL 78 * - 88 * - 36 AS col0
----
247104

query II rowsort
SELECT 58, 74 AS col2
----
58
74

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8564
SELECT ALL NULLIF ( + + CAST( NULL AS SIGNED ), ( 40 ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8564
SELECT ALL NULLIF ( + + CAST ( NULL AS INTEGER ), ( 40 ) ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8565
SELECT - COUNT( DISTINCT 95 )
----
-1

skipif mysql # not compatible
query I rowsort label-8565
SELECT - COUNT ( DISTINCT 95 )
----
-1

query I rowsort
SELECT DISTINCT 24 * - + 78 AS col1
----
-1872

query I rowsort
SELECT ALL 73 * - - 68 * 67 + COALESCE ( - 69, - 74 )
----
332519

query II rowsort
SELECT + + 51 AS col2, - 13 * + 35 * 92 + - 41
----
51
-41901

onlyif mysql # aggregate syntax: 
query I rowsort label-8569
SELECT NULLIF ( + - 39, + COUNT( * ) ) * + 75 - - MIN( 1 + - 7 ) AS col0
----
-2931

skipif mysql # not compatible
query I rowsort label-8569
SELECT NULLIF ( + - 39, + COUNT ( * ) ) * + 75 - - MIN ( 1 + - 7 ) AS col0
----
-2931

onlyif mysql # aggregate syntax: 
query I rowsort label-8570
SELECT + + 13 * MAX( 65 ) col1
----
845

skipif mysql # not compatible
query I rowsort label-8570
SELECT + + 13 * MAX ( 65 ) col1
----
845

query I rowsort
SELECT + 77 + + 24 + + + 10 * 95
----
1051

query II rowsort
SELECT ALL + 87 AS col0, 50
----
87
50

query I rowsort
SELECT DISTINCT + + 55 col2
----
55

query I rowsort
SELECT ALL - + 29 * - ( + 76 ) + + 18 * 14
----
2456

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8575
SELECT DISTINCT - 23 * + 8 + 97 + + NULLIF ( + 85, 79 / - CAST( NULL AS DECIMAL ) + - CASE + COALESCE ( 16, 6 - MAX( 48 - + 1 * 97 ) ) + 60 WHEN - 45 * 38 + 28 THEN - 58 + + 15 WHEN - 38 * 31 THEN NULL END * 55 )
----
-2

skipif mysql # not compatible
query I rowsort label-8575
SELECT DISTINCT - 23 * + 8 + 97 + + NULLIF ( + 85, 79 / - CAST ( NULL AS REAL ) + - CASE + COALESCE ( 16, 6 - MAX ( 48 - + 1 * 97 ) ) + 60 WHEN - 45 * 38 + 28 THEN - 58 + + 15 WHEN - 38 * 31 THEN NULL END * 55 )
----
-2

query I rowsort
SELECT ALL + + 98 * + - 9 * 95 + 45 AS col1
----
-83745

query II rowsort
SELECT DISTINCT + 28, 69 AS col0
----
28
69

query I rowsort
SELECT ALL + + 40 AS col0
----
40

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8579
SELECT - - 81 * + 35 - + - COUNT( * ) + - 22 * COALESCE ( CAST( NULL AS SIGNED ), 35 * 67 ) AS col1
----
-48754

skipif mysql # not compatible
query I rowsort label-8579
SELECT - - 81 * + 35 - + - COUNT ( * ) + - 22 * COALESCE ( CAST ( NULL AS INTEGER ), 35 * 67 ) AS col1
----
-48754

onlyif mysql # aggregate syntax: 
query I rowsort label-8580
SELECT - 6 + + - COUNT( * ) + + MIN( 12 )
----
5

skipif mysql # not compatible
query I rowsort label-8580
SELECT - 6 + + - COUNT ( * ) + + MIN ( 12 )
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-8581
SELECT + 46 * - COUNT( * ) * - 76
----
3496

skipif mysql # not compatible
query I rowsort label-8581
SELECT + 46 * - COUNT ( * ) * - 76
----
3496

query I rowsort
SELECT DISTINCT - + 5 * - - 76
----
-380

query I rowsort
SELECT + 64 * + + 18
----
1152

onlyif mysql # aggregate syntax: 
query I rowsort label-8584
SELECT ALL COUNT( * ) - - + 97 AS col1
----
98

skipif mysql # not compatible
query I rowsort label-8584
SELECT ALL COUNT ( * ) - - + 97 AS col1
----
98

onlyif mysql # aggregate syntax: 
query I rowsort label-8585
SELECT DISTINCT CASE MIN( DISTINCT - 74 ) WHEN - 95 * - 40 + + COALESCE ( ( - COUNT( * ) ), 62 * + 27, 38 ) THEN ( 62 ) ELSE 80 - + ( - 49 + + 94 ) END AS col2
----
35

skipif mysql # not compatible
query I rowsort label-8585
SELECT DISTINCT CASE MIN ( DISTINCT - 74 ) WHEN - 95 * - 40 + + COALESCE ( ( - COUNT ( * ) ), 62 * + 27, 38 ) THEN ( 62 ) ELSE 80 - + ( - 49 + + 94 ) END AS col2
----
35

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8586
SELECT ALL NULLIF ( 33, - SUM( - CAST( 48 AS SIGNED ) ) * 30 + 6 ) AS col1
----
33

skipif mysql # not compatible
query I rowsort label-8586
SELECT ALL NULLIF ( 33, - SUM ( - CAST ( 48 AS INTEGER ) ) * 30 + 6 ) AS col1
----
33

query I rowsort
SELECT + 44 * - + 37 AS col0
----
-1628

onlyif mysql # aggregate syntax: 
query I rowsort label-8588
SELECT - MAX( DISTINCT - 87 ) * + 70 AS col0
----
6090

skipif mysql # not compatible
query I rowsort label-8588
SELECT - MAX ( DISTINCT - 87 ) * + 70 AS col0
----
6090

onlyif mysql # aggregate syntax: 
query I rowsort label-8589
SELECT - COUNT( ALL 67 ) * 22 - COUNT( * ) AS col2
----
-23

skipif mysql # not compatible
query I rowsort label-8589
SELECT - COUNT ( ALL 67 ) * 22 - COUNT ( * ) AS col2
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-8590
SELECT - 90 + + COUNT( * )
----
-89

skipif mysql # not compatible
query I rowsort label-8590
SELECT - 90 + + COUNT ( * )
----
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-8591
SELECT ALL 96 + + COUNT( * ) + + 99
----
196

skipif mysql # not compatible
query I rowsort label-8591
SELECT ALL 96 + + COUNT ( * ) + + 99
----
196

onlyif mysql # DIV for integer division: 
query II rowsort label-8592
SELECT DISTINCT + 71 DIV + 8 AS col1, 57
----
8
57

skipif mysql # not compatible
query II rowsort label-8592
SELECT DISTINCT + 71 / + 8 AS col1, 57
----
8
57

onlyif mysql # aggregate syntax: 
query I rowsort label-8593
SELECT ALL + COUNT( * ) + - - 0
----
1

skipif mysql # not compatible
query I rowsort label-8593
SELECT ALL + COUNT ( * ) + - - 0
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8594
SELECT - ( + CAST( NULL AS SIGNED ) ) - + 79 / 57 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8594
SELECT - ( + CAST ( NULL AS INTEGER ) ) - + 79 / 57 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8595
SELECT DISTINCT - 98 + + COUNT( * ), COUNT( * ) AS col1
----
-97
1

skipif mysql # not compatible
query II rowsort label-8595
SELECT DISTINCT - 98 + + COUNT ( * ), COUNT ( * ) AS col1
----
-97
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8596
SELECT - MAX( DISTINCT - 4 ) + + - 46 + + 14
----
-28

skipif mysql # not compatible
query I rowsort label-8596
SELECT - MAX ( DISTINCT - 4 ) + + - 46 + + 14
----
-28

query I rowsort
SELECT ALL - 81 + - 99 - - 22 + 69 * 34
----
2188

query I rowsort
SELECT - ( - + COALESCE ( + 20, - 76 + + 30 ) ) + 63 * - 32 col1
----
-1996

query I rowsort
SELECT - 96 col0
----
-96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8600
SELECT - COUNT( * ) + - CAST( + 45 AS SIGNED ) AS col1
----
-46

skipif mysql # not compatible
query I rowsort label-8600
SELECT - COUNT ( * ) + - CAST ( + 45 AS INTEGER ) AS col1
----
-46

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8601
SELECT DISTINCT - CAST( + CAST( + 79 AS SIGNED ) AS SIGNED )
----
-79

skipif mysql # not compatible
query I rowsort label-8601
SELECT DISTINCT - CAST ( + CAST ( + 79 AS INTEGER ) AS INTEGER )
----
-79

onlyif mysql # aggregate syntax: 
query II rowsort label-8602
SELECT - + 76 * - 68 AS col0, - COUNT( * )
----
5168
-1

skipif mysql # not compatible
query II rowsort label-8602
SELECT - + 76 * - 68 AS col0, - COUNT ( * )
----
5168
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8603
SELECT + CAST( NULL AS SIGNED ) + 5 / + 50 * + 75 + CASE 12 WHEN COUNT( CAST( - 74 AS SIGNED ) ) THEN NULL WHEN - 54 THEN NULL WHEN ( + 13 ) + + 44 THEN 24 WHEN + 58 THEN 32 + - MIN( DISTINCT 72 ) / + 53 END
----
NULL

skipif mysql # not compatible
query I rowsort label-8603
SELECT + CAST ( NULL AS INTEGER ) + 5 / + 50 * + 75 + CASE 12 WHEN COUNT ( CAST ( - 74 AS INTEGER ) ) THEN NULL WHEN - 54 THEN NULL WHEN ( + 13 ) + + 44 THEN 24 WHEN + 58 THEN 32 + - MIN ( DISTINCT 72 ) / + 53 END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8604
SELECT DISTINCT + + 21 / + 44 - CAST( NULL AS SIGNED ) * - - 71
----
NULL

skipif mysql # not compatible
query I rowsort label-8604
SELECT DISTINCT + + 21 / + 44 - CAST ( NULL AS INTEGER ) * - - 71
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8605
SELECT SUM( DISTINCT + 44 )
----
44

skipif mysql # not compatible
query I rowsort label-8605
SELECT SUM ( DISTINCT + 44 )
----
44

query I rowsort
SELECT ALL + 21 * + + COALESCE ( 33, + + 39 * 86 ) AS col1
----
693

query I rowsort
SELECT - + 97 * - 12 + - 46 AS col1
----
1118

query I rowsort
SELECT 41 * + - ( - 46 ) + + 32 * - 12 AS col0
----
1502

onlyif mysql # aggregate syntax: 
query I rowsort label-8609
SELECT + COALESCE ( + 50, + 27 * + + COUNT( * ) + 96 + 98 * + 49 ) + 62 * 43 AS col1
----
2716

skipif mysql # not compatible
query I rowsort label-8609
SELECT + COALESCE ( + 50, + 27 * + + COUNT ( * ) + 96 + 98 * + 49 ) + 62 * 43 AS col1
----
2716

onlyif mysql # aggregate syntax: 
query I rowsort label-8610
SELECT DISTINCT + + MAX( DISTINCT 45 ) AS col0
----
45

skipif mysql # not compatible
query I rowsort label-8610
SELECT DISTINCT + + MAX ( DISTINCT 45 ) AS col0
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-8611
SELECT ALL + SUM( ALL - 70 )
----
-70

skipif mysql # not compatible
query I rowsort label-8611
SELECT ALL + SUM ( ALL - 70 )
----
-70

onlyif mysql # aggregate syntax: 
query II rowsort label-8612
SELECT DISTINCT + 69 * - + 5 AS col1, + 41 * + - MAX( ALL 32 ) + + 39 AS col0
----
-345
-1273

skipif mysql # not compatible
query II rowsort label-8612
SELECT DISTINCT + 69 * - + 5 AS col1, + 41 * + - MAX ( ALL 32 ) + + 39 AS col0
----
-345
-1273

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8613
SELECT SUM( ALL + + 22 ) * - + 33 * + - 70 * - CASE - CASE 99 WHEN - COUNT( - 81 ) / - 34 THEN + 11 * + 17 END WHEN 7 + - 57 THEN NULL WHEN ( ( - 43 ) ) THEN - CAST( NULL AS DECIMAL ) ELSE NULL END + + CASE 30 WHEN + 94 * 93 THEN 71 WHEN 88 + 4 THEN NULL ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8613
SELECT SUM ( ALL + + 22 ) * - + 33 * + - 70 * - CASE - CASE 99 WHEN - COUNT ( - 81 ) / - 34 THEN + 11 * + 17 END WHEN 7 + - 57 THEN NULL WHEN ( ( - 43 ) ) THEN - CAST ( NULL AS REAL ) ELSE NULL END + + CASE 30 WHEN + 94 * 93 THEN 71 WHEN 88 + 4 THEN NULL ELSE NULL END AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8614
SELECT + 44 DIV - 11
----
-4

skipif mysql # not compatible
query I rowsort label-8614
SELECT + 44 / - 11
----
-4

query I rowsort
SELECT + 62 + + 82 col0
----
144

query I rowsort
SELECT CASE - 93 WHEN + 56 THEN + - ( + NULLIF ( 75, + 42 * 7 - NULLIF ( - 51, + 63 ) ) ) WHEN + 36 + + 17 THEN + 16 - - 20 END AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8617
SELECT + COUNT( * ) * - CAST( + ( + + 12 ) AS SIGNED )
----
-12

skipif mysql # not compatible
query I rowsort label-8617
SELECT + COUNT ( * ) * - CAST ( + ( + + 12 ) AS INTEGER )
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-8618
SELECT ALL 53 * COUNT( * ) + + 35
----
88

skipif mysql # not compatible
query I rowsort label-8618
SELECT ALL 53 * COUNT ( * ) + + 35
----
88

query I rowsort
SELECT DISTINCT 7 + 69 col1
----
76

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8620
SELECT SUM( 30 ) + 60 - - + COUNT( * ) + - COALESCE ( CAST( - 92 AS SIGNED ), - 95 * + 19 ) * + 18
----
1747

skipif mysql # not compatible
query I rowsort label-8620
SELECT SUM ( 30 ) + 60 - - + COUNT ( * ) + - COALESCE ( CAST ( - 92 AS INTEGER ), - 95 * + 19 ) * + 18
----
1747

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8621
SELECT CAST( + + 58 AS SIGNED ) * - 96 - + + 74 DIV 85 + - 13
----
-5581

skipif mysql # not compatible
query I rowsort label-8621
SELECT CAST ( + + 58 AS INTEGER ) * - 96 - + + 74 / 85 + - 13
----
-5581

query I rowsort
SELECT 14 + + 95 AS col2
----
109

onlyif mysql # DIV for integer division: 
query I rowsort label-8623
SELECT ALL + 22 DIV 12
----
1

skipif mysql # not compatible
query I rowsort label-8623
SELECT ALL + 22 / 12
----
1

query II rowsort
SELECT DISTINCT 45 col0, 75 + - 40 AS col0
----
45
35

query I rowsort
SELECT 24 + + 80
----
104

onlyif mysql # aggregate syntax: 
query I rowsort label-8626
SELECT ALL MIN( 72 ) AS col2
----
72

skipif mysql # not compatible
query I rowsort label-8626
SELECT ALL MIN ( 72 ) AS col2
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-8627
SELECT ALL - + 68 - + COUNT( * ) + + COUNT( * )
----
-68

skipif mysql # not compatible
query I rowsort label-8627
SELECT ALL - + 68 - + COUNT ( * ) + + COUNT ( * )
----
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-8628
SELECT + 3 * 72 / - + CASE - - COUNT( * ) WHEN + 16 THEN NULL WHEN - 36 - 99 THEN NULL WHEN - 55 * 82 THEN - COUNT( * ) ELSE NULL END * + ( - 61 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8628
SELECT + 3 * 72 / - + CASE - - COUNT ( * ) WHEN + 16 THEN NULL WHEN - 36 - 99 THEN NULL WHEN - 55 * 82 THEN - COUNT ( * ) ELSE NULL END * + ( - 61 )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8629
SELECT ALL - COUNT( * ) DIV + - 50 + + + CAST( - - 15 AS SIGNED ) + - 52 + - COUNT( - 99 ) * 78 * COUNT( * ) col0
----
-115

skipif mysql # not compatible
query I rowsort label-8629
SELECT ALL - COUNT ( * ) / + - 50 + + + CAST ( - - 15 AS INTEGER ) + - 52 + - COUNT ( - 99 ) * 78 * COUNT ( * ) col0
----
-115

query I rowsort
SELECT - 12 + + - 20 AS col1
----
-32

query I rowsort
SELECT ALL + - 55 * 11
----
-605

query I rowsort
SELECT - ( - 54 ) + 95
----
149

onlyif mysql # DIV for integer division: 
query I rowsort label-8633
SELECT ( + 62 ) DIV 30 AS col1
----
2

skipif mysql # not compatible
query I rowsort label-8633
SELECT ( + 62 ) / 30 AS col1
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-8634
SELECT ALL + + 88 - - 29 * COUNT( * ) AS col1
----
117

skipif mysql # not compatible
query I rowsort label-8634
SELECT ALL + + 88 - - 29 * COUNT ( * ) AS col1
----
117

query I rowsort
SELECT - 83 * + 62 col0
----
-5146

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8636
SELECT - COUNT( * ) DIV - COUNT( * ) + + 19
----
20

skipif mysql # not compatible
query I rowsort label-8636
SELECT - COUNT ( * ) / - COUNT ( * ) + + 19
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-8637
SELECT + COUNT( DISTINCT - - 50 ) + - 63 * - - 32 AS col0
----
-2015

skipif mysql # not compatible
query I rowsort label-8637
SELECT + COUNT ( DISTINCT - - 50 ) + - 63 * - - 32 AS col0
----
-2015

query I rowsort
SELECT ALL + + 97 * + 30 AS col2
----
2910

query I rowsort
SELECT + ( - 18 ) * + ( + ( + - 95 ) )
----
1710

query I rowsort
SELECT + COALESCE ( 37, - 24, + - 68 )
----
37

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8641
SELECT CAST( + 83 AS SIGNED )
----
83

skipif mysql # not compatible
query I rowsort label-8641
SELECT CAST ( + 83 AS INTEGER )
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-8642
SELECT ALL - COUNT( ALL - 48 ) * + + 99 AS col2
----
-99

skipif mysql # not compatible
query I rowsort label-8642
SELECT ALL - COUNT ( ALL - 48 ) * + + 99 AS col2
----
-99

query I rowsort
SELECT 85 * + - 1 AS col0
----
-85

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8644
SELECT - + 21 * + + 68 * - COALESCE ( - 18, 73, 23 * + 56 + - NULLIF ( 83, ( 29 ) * CAST( 59 / AVG ( + 41 ) + 60 * COUNT( * ) AS DECIMAL ) ) ) - + 23 col2
----
-25727

skipif mysql # not compatible
query I rowsort label-8644
SELECT - + 21 * + + 68 * - COALESCE ( - 18, 73, 23 * + 56 + - NULLIF ( 83, ( 29 ) * CAST ( 59 / AVG ( + 41 ) + 60 * COUNT ( * ) AS REAL ) ) ) - + 23 col2
----
-25727

query I rowsort
SELECT COALESCE ( + 99, - + 96 + + ( + 60 ) * - 99, + 13 ) AS col0
----
99

query I rowsort
SELECT + + 31 col0
----
31

onlyif mysql # aggregate syntax: 
query II rowsort label-8647
SELECT + 49, - COUNT( * ) * 43 AS col0
----
49
-43

skipif mysql # not compatible
query II rowsort label-8647
SELECT + 49, - COUNT ( * ) * 43 AS col0
----
49
-43

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8648
SELECT DISTINCT 67 + 14 + CAST( NULL AS SIGNED ) + + NULLIF ( COUNT( * ), + 30 + 32 ) - - 75
----
NULL

skipif mysql # not compatible
query I rowsort label-8648
SELECT DISTINCT 67 + 14 + CAST ( NULL AS INTEGER ) + + NULLIF ( COUNT ( * ), + 30 + 32 ) - - 75
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8649
SELECT DISTINCT - CAST( 31 AS SIGNED ) * + 90 * + 90 AS col0
----
-251100

skipif mysql # not compatible
query I rowsort label-8649
SELECT DISTINCT - CAST ( 31 AS INTEGER ) * + 90 * + 90 AS col0
----
-251100

query I rowsort
SELECT ALL 2 + - - 80 AS col2
----
82

query I rowsort
SELECT 89 * + 54 - - - 71 AS col1
----
4735

onlyif mysql # aggregate syntax: 
query I rowsort label-8652
SELECT ALL - 53 * + MIN( 61 )
----
-3233

skipif mysql # not compatible
query I rowsort label-8652
SELECT ALL - 53 * + MIN ( 61 )
----
-3233

onlyif mysql # aggregate syntax: 
query II rowsort label-8653
SELECT 66 col0, COUNT( * )
----
66
1

skipif mysql # not compatible
query II rowsort label-8653
SELECT 66 col0, COUNT ( * )
----
66
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8654
SELECT 60 * + + COALESCE ( 5, + CAST( + + 94 AS SIGNED ), + - CASE + 41 WHEN + COUNT( * ) + 99 * + 71 THEN - ( - 9 ) * + CASE + ( 3 ) WHEN 26 * SUM( + 49 * 80 ) THEN NULL WHEN COUNT( * ) THEN NULL ELSE - 60 END END ) col1
----
300

skipif mysql # not compatible
query I rowsort label-8654
SELECT 60 * + + COALESCE ( 5, + CAST ( + + 94 AS INTEGER ), + - CASE + 41 WHEN + COUNT ( * ) + 99 * + 71 THEN - ( - 9 ) * + CASE + ( 3 ) WHEN 26 * SUM ( + 49 * 80 ) THEN NULL WHEN COUNT ( * ) THEN NULL ELSE - 60 END END ) col1
----
300

onlyif mysql # aggregate syntax: 
query I rowsort label-8655
SELECT + 36 * - COUNT( * ) + 37
----
1

skipif mysql # not compatible
query I rowsort label-8655
SELECT + 36 * - COUNT ( * ) + 37
----
1

onlyif mysql # DIV for integer division: 
query II rowsort label-8656
SELECT - 81, 48 DIV ( - 26 ) * NULLIF ( + NULLIF ( + 21, ( 53 ) * + 64 ), + 41 ) AS col1
----
-81
-21

skipif mysql # not compatible
query II rowsort label-8656
SELECT - 81, 48 / ( - 26 ) * NULLIF ( + NULLIF ( + 21, ( 53 ) * + 64 ), + 41 ) AS col1
----
-81
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-8657
SELECT 79 + MIN( DISTINCT - - 65 )
----
144

skipif mysql # not compatible
query I rowsort label-8657
SELECT 79 + MIN ( DISTINCT - - 65 )
----
144

query I rowsort
SELECT ( + 35 ) + + + 70
----
105

onlyif mysql # aggregate syntax: 
query I rowsort label-8659
SELECT 24 * 27 * - MIN( + - 84 ) AS col0
----
54432

skipif mysql # not compatible
query I rowsort label-8659
SELECT 24 * 27 * - MIN ( + - 84 ) AS col0
----
54432

query II rowsort
SELECT 74 AS col2, - 1
----
74
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8661
SELECT DISTINCT + 87 * + 76 + + COUNT( * ) * SUM( + 63 ) AS col2
----
6675

skipif mysql # not compatible
query I rowsort label-8661
SELECT DISTINCT + 87 * + 76 + + COUNT ( * ) * SUM ( + 63 ) AS col2
----
6675

onlyif mysql # aggregate syntax: 
query I rowsort label-8662
SELECT DISTINCT 79 * + COUNT( * ) + 16 + + 65 + 68 * - 83
----
-5484

skipif mysql # not compatible
query I rowsort label-8662
SELECT DISTINCT 79 * + COUNT ( * ) + 16 + + 65 + 68 * - 83
----
-5484

query II rowsort
SELECT ALL 84 - + 51 * 70 * + - 92 AS col1, + 7 AS col1
----
328524
7

query I rowsort
SELECT ( - 11 )
----
-11

query I rowsort
SELECT - 67 + - + 16
----
-83

onlyif mysql # DIV for integer division: 
query I rowsort label-8666
SELECT 51 * 11 DIV - + 51 AS col1
----
-11

skipif mysql # not compatible
query I rowsort label-8666
SELECT 51 * 11 / - + 51 AS col1
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-8667
SELECT - COUNT( ALL + - COALESCE ( - 15, - 23 / - 19 ) ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-8667
SELECT - COUNT ( ALL + - COALESCE ( - 15, - 23 / - 19 ) ) AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8668
SELECT - NULLIF ( - - COUNT( * ), - - 67 + - + 28 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-8668
SELECT - NULLIF ( - - COUNT ( * ), - - 67 + - + 28 ) AS col0
----
-1

query II rowsort
SELECT DISTINCT 25 AS col0, 46 * + - 26 AS col0
----
25
-1196

onlyif mysql # aggregate syntax: 
query I rowsort label-8670
SELECT + 16 * + - 55 * - 26 * NULLIF ( - 76, + - 11 ) + - 91 * MIN( + 90 )
----
-1747070

skipif mysql # not compatible
query I rowsort label-8670
SELECT + 16 * + - 55 * - 26 * NULLIF ( - 76, + - 11 ) + - 91 * MIN ( + 90 )
----
-1747070

query II rowsort
SELECT ALL - 21 AS col0, 47
----
-21
47

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8672
SELECT DISTINCT - COUNT( * ) DIV + 35 * + 89 - - - COUNT( * ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-8672
SELECT DISTINCT - COUNT ( * ) / + 35 * + 89 - - - COUNT ( * ) AS col2
----
-1

query II rowsort
SELECT ALL - 10 AS col1, - 16
----
-10
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-8674
SELECT - COALESCE ( + COUNT( * ), - NULLIF ( - 17, - - 83 / + 17 ) * + 50 ) * 84
----
-84

skipif mysql # not compatible
query I rowsort label-8674
SELECT - COALESCE ( + COUNT ( * ), - NULLIF ( - 17, - - 83 / + 17 ) * + 50 ) * 84
----
-84

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8675
SELECT 0 * - 90 * + CAST( NULL AS SIGNED ) + - COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8675
SELECT 0 * - 90 * + CAST ( NULL AS INTEGER ) + - COUNT ( * ) AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8676
SELECT COALESCE ( ( + COUNT( * ) ), CAST( NULL AS SIGNED ) * 54 * - 72 + - COUNT( * ) ) - + 31
----
-30

skipif mysql # not compatible
query I rowsort label-8676
SELECT COALESCE ( ( + COUNT ( * ) ), CAST ( NULL AS INTEGER ) * 54 * - 72 + - COUNT ( * ) ) - + 31
----
-30

query I rowsort
SELECT DISTINCT + + 19 * + 63 * - 66 AS col1
----
-79002

query I rowsort
SELECT ALL - 9 * 6 + NULLIF ( 35, ( + + 40 ) * + 28 + 1 ) AS col1
----
-19

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8679
SELECT 93 DIV - - ( - 64 ) + - NULLIF ( - NULLIF ( NULLIF ( - + 1, 78 ), - 72 * COUNT( * ) ), 19 * - 30 ) - + 35 AS col1
----
-37

skipif mysql # not compatible
query I rowsort label-8679
SELECT 93 / - - ( - 64 ) + - NULLIF ( - NULLIF ( NULLIF ( - + 1, 78 ), - 72 * COUNT ( * ) ), 19 * - 30 ) - + 35 AS col1
----
-37

query II rowsort
SELECT 54 + + 69 AS col0, - 43 col1
----
123
-43

query I rowsort
SELECT 89 * - NULLIF ( + + 33, + 80 )
----
-2937

query I rowsort
SELECT ALL 2 * + 94 + ( + 94 ) * + - 47
----
-4230

onlyif mysql # aggregate syntax: 
query I rowsort label-8683
SELECT DISTINCT - MAX( - + 53 ) * - 50 * - - 50 AS col1
----
-132500

skipif mysql # not compatible
query I rowsort label-8683
SELECT DISTINCT - MAX ( - + 53 ) * - 50 * - - 50 AS col1
----
-132500

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8684
SELECT ALL + COUNT( * ) * - COUNT( - + 76 ) + CAST( + ( - MAX( - 69 ) ) AS SIGNED )
----
68

skipif mysql # not compatible
query I rowsort label-8684
SELECT ALL + COUNT ( * ) * - COUNT ( - + 76 ) + CAST ( + ( - MAX ( - 69 ) ) AS INTEGER )
----
68

query I rowsort
SELECT 70 + ( - 77 ) AS col0
----
-7

query I rowsort
SELECT DISTINCT - ( - 27 ) col2
----
27

query I rowsort
SELECT ALL + 94 + - - 82
----
176

query I rowsort
SELECT + 37 + + + 28
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-8689
SELECT ALL - 22 * - COUNT( * )
----
22

skipif mysql # not compatible
query I rowsort label-8689
SELECT ALL - 22 * - COUNT ( * )
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-8690
SELECT + 31 + CASE + 28 WHEN + COUNT( ALL ( 43 ) ) * - COUNT( * ) + 82 THEN ( SUM( DISTINCT 87 ) ) END / 22
----
NULL

skipif mysql # not compatible
query I rowsort label-8690
SELECT + 31 + CASE + 28 WHEN + COUNT ( ALL ( 43 ) ) * - COUNT ( * ) + 82 THEN ( SUM ( DISTINCT 87 ) ) END / 22
----
NULL

query II rowsort
SELECT ALL 13 - + 35 + + - 32, 7 AS col0
----
-54
7

query II rowsort
SELECT ALL - 22 * + 51, + 39 col0
----
-1122
39

query I rowsort
SELECT ALL CASE + - 97 WHEN ( - 9 ) + + 39 * - 17 THEN NULL WHEN + 97 THEN - 57 END
----
NULL

query I rowsort
SELECT ALL - 4 * 13
----
-52

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8695
SELECT DISTINCT CASE - - 71 WHEN - + 35 THEN - - COUNT( * ) / CAST( + 39 AS SIGNED ) WHEN - 6 + 82 * COUNT( * ) THEN NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8695
SELECT DISTINCT CASE - - 71 WHEN - + 35 THEN - - COUNT ( * ) / CAST ( + 39 AS INTEGER ) WHEN - 6 + 82 * COUNT ( * ) THEN NULL END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8696
SELECT + + 89 * + COUNT( * ) AS col2
----
89

skipif mysql # not compatible
query I rowsort label-8696
SELECT + + 89 * + COUNT ( * ) AS col2
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-8697
SELECT - - 20 * - SUM( + 10 ) AS col1
----
-200

skipif mysql # not compatible
query I rowsort label-8697
SELECT - - 20 * - SUM ( + 10 ) AS col1
----
-200

onlyif mysql # aggregate syntax: 
query I rowsort label-8698
SELECT + COALESCE ( - 88, 40 * - CASE - - ( + + 79 ) WHEN + NULLIF ( 36, - COUNT( * ) / + COUNT( 36 ) ) + + 89 THEN NULL WHEN - ( 98 ) THEN 81 ELSE NULL END, 18 * + 42, 58 ) * 38
----
-3344

skipif mysql # not compatible
query I rowsort label-8698
SELECT + COALESCE ( - 88, 40 * - CASE - - ( + + 79 ) WHEN + NULLIF ( 36, - COUNT ( * ) / + COUNT ( 36 ) ) + + 89 THEN NULL WHEN - ( 98 ) THEN 81 ELSE NULL END, 18 * + 42, 58 ) * 38
----
-3344

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8699
SELECT + + 39 DIV - + COUNT( * )
----
-39

skipif mysql # not compatible
query I rowsort label-8699
SELECT + + 39 / - + COUNT ( * )
----
-39

query I rowsort
SELECT + 60 + - 97 - 57 + + 7 AS col0
----
-87

query I rowsort
SELECT - NULLIF ( - 59, 46 + + + 63 * - 39 * + + 3 ) AS col2
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-8702
SELECT + MIN( ALL + - 8 ) * 74 + + 87
----
-505

skipif mysql # not compatible
query I rowsort label-8702
SELECT + MIN ( ALL + - 8 ) * 74 + + 87
----
-505

onlyif mysql # aggregate syntax: 
query I rowsort label-8703
SELECT DISTINCT COUNT( * ) * + 97 AS col0
----
97

skipif mysql # not compatible
query I rowsort label-8703
SELECT DISTINCT COUNT ( * ) * + 97 AS col0
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-8704
SELECT ALL - SUM( + 95 ) col2
----
-95

skipif mysql # not compatible
query I rowsort label-8704
SELECT ALL - SUM ( + 95 ) col2
----
-95

query I rowsort
SELECT + + 87 + - 67 + 10
----
30

query I rowsort
SELECT + - 13 + - + 69
----
-82

query I rowsort
SELECT ALL ( + - 10 ) * - 78
----
780

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8708
SELECT + + 38 DIV - COALESCE ( + + 74, + - COUNT( * ) )
----
0

skipif mysql # not compatible
query I rowsort label-8708
SELECT + + 38 / - COALESCE ( + + 74, + - COUNT ( * ) )
----
0

query I rowsort
SELECT + - COALESCE ( - + 25, - CASE 46 WHEN + - 29 THEN NULL WHEN - AVG ( DISTINCT - 60 ) THEN ( - 59 ) END ) * 46 AS col1
----
1150

query I rowsort
SELECT - + 69 * + + 14 + + 16 - - + 19 AS col0
----
-931

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: DIV for integer division: 
query I rowsort label-8711
SELECT ALL - 55 DIV + CASE - 48 WHEN - CASE - SUM( + - 76 ) WHEN CASE 51 WHEN 7 THEN 60 WHEN 63 + - 9 DIV + CAST( NULL AS DECIMAL ) THEN MIN( 58 ) * 70 END THEN 54 ELSE 62 - NULLIF ( 10, 98 ) * + CAST( - 32 AS SIGNED ) END + - 77 THEN NULL WHEN CAST( + 98 AS SIGNED ) THEN NULL WHEN COUNT( * ) THEN + COUNT( * ) ELSE 55 * 75 + COUNT( * ) * + 63 END * 14 + - 0
----
0

skipif mysql # not compatible
query I rowsort label-8711
SELECT ALL - 55 / + CASE - 48 WHEN - CASE - SUM ( + - 76 ) WHEN CASE 51 WHEN 7 THEN 60 WHEN 63 + - 9 / + CAST ( NULL AS REAL ) THEN MIN ( 58 ) * 70 END THEN 54 ELSE 62 - NULLIF ( 10, 98 ) * + CAST ( - 32 AS INTEGER ) END + - 77 THEN NULL WHEN CAST ( + 98 AS INTEGER ) THEN NULL WHEN COUNT ( * ) THEN + COUNT ( * ) ELSE 55 * 75 + COUNT ( * ) * + 63 END * 14 + - 0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8712
SELECT - CASE + 21 WHEN + ( AVG ( + 28 ) ) * - 36 THEN - - 76 + COUNT( DISTINCT 23 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-8712
SELECT - CASE + 21 WHEN + ( AVG ( + 28 ) ) * - 36 THEN - - 76 + COUNT ( DISTINCT 23 ) END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8713
SELECT + 3 DIV - - 51 + 68 + + - 89 AS col1
----
-21

skipif mysql # not compatible
query I rowsort label-8713
SELECT + 3 / - - 51 + 68 + + - 89 AS col1
----
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-8714
SELECT DISTINCT 92 * + - 75 * - - 54 * COUNT( * ) + + 57 + + + NULLIF ( + 67, COUNT( * ) ) + 20 * 20 * + 41 col1
----
-356076

skipif mysql # not compatible
query I rowsort label-8714
SELECT DISTINCT 92 * + - 75 * - - 54 * COUNT ( * ) + + 57 + + + NULLIF ( + 67, COUNT ( * ) ) + 20 * 20 * + 41 col1
----
-356076

onlyif mysql # aggregate syntax: 
query I rowsort label-8715
SELECT ( MAX( - + 6 ) ) AS col1
----
-6

skipif mysql # not compatible
query I rowsort label-8715
SELECT ( MAX ( - + 6 ) ) AS col1
----
-6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8716
SELECT ALL 66 * - 3 + - + MIN( COALESCE ( - 2, CAST( NULL AS SIGNED ) * + 48 ) )
----
-196

skipif mysql # not compatible
query I rowsort label-8716
SELECT ALL 66 * - 3 + - + MIN ( COALESCE ( - 2, CAST ( NULL AS INTEGER ) * + 48 ) )
----
-196

query I rowsort
SELECT ( - - 55 )
----
55

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8718
SELECT + COALESCE ( 68, + COUNT( * ) DIV - 94 ) DIV + + 86
----
0

skipif mysql # not compatible
query I rowsort label-8718
SELECT + COALESCE ( 68, + COUNT ( * ) / - 94 ) / + + 86
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-8719
SELECT NULLIF ( ( + + 59 ), + - COUNT( * ) ), 77 AS col0
----
59
77

skipif mysql # not compatible
query II rowsort label-8719
SELECT NULLIF ( ( + + 59 ), + - COUNT ( * ) ), 77 AS col0
----
59
77

query II rowsort
SELECT ALL - 35 * - 28 * - - 31, ( + + 4 ) AS col1
----
30380
4

query I rowsort
SELECT CASE 89 WHEN + - 59 THEN NULL ELSE - + 88 END AS col0
----
-88

query II rowsort
SELECT DISTINCT + 62 AS col0, + 24 * - + 23 AS col1
----
62
-552

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8723
SELECT ALL - 36 * + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-8723
SELECT ALL - 36 * + CAST ( NULL AS REAL )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8724
SELECT DISTINCT + NULLIF ( + 61, - 74 * - + 61 / - - COUNT( * ) * 58 )
----
61

skipif mysql # not compatible
query I rowsort label-8724
SELECT DISTINCT + NULLIF ( + 61, - 74 * - + 61 / - - COUNT ( * ) * 58 )
----
61

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8725
SELECT ALL CASE - - 41 WHEN CASE + 30 WHEN - 94 * 46 - ( + 75 ) + COUNT( DISTINCT 3 + CAST( 76 AS SIGNED ) ) THEN - 77 WHEN - 64 + 2 THEN NULL ELSE NULL END THEN NULL WHEN 39 THEN COUNT( * ) ELSE NULL END * 73 - ( + 71 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8725
SELECT ALL CASE - - 41 WHEN CASE + 30 WHEN - 94 * 46 - ( + 75 ) + COUNT ( DISTINCT 3 + CAST ( 76 AS INTEGER ) ) THEN - 77 WHEN - 64 + 2 THEN NULL ELSE NULL END THEN NULL WHEN 39 THEN COUNT ( * ) ELSE NULL END * 73 - ( + 71 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8726
SELECT - + COUNT( * ) * + ( + - 89 ) AS col0
----
89

skipif mysql # not compatible
query I rowsort label-8726
SELECT - + COUNT ( * ) * + ( + - 89 ) AS col0
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-8727
SELECT DISTINCT - NULLIF ( - CASE 83 WHEN + 4 - - MIN( - 80 ) THEN NULL WHEN - 18 * + - 47 + - CASE + 93 WHEN 34 * COUNT( * ) THEN + NULLIF ( 12, 40 ) + + NULLIF ( COUNT( * ), 84 + 62 ) * + 10 WHEN 78 THEN NULL ELSE NULL END THEN - ( + 15 ) * - SUM( + ( - 62 ) ) + - 20 END, + 85 * + 83 ) / - 31
----
NULL

skipif mysql # not compatible
query I rowsort label-8727
SELECT DISTINCT - NULLIF ( - CASE 83 WHEN + 4 - - MIN ( - 80 ) THEN NULL WHEN - 18 * + - 47 + - CASE + 93 WHEN 34 * COUNT ( * ) THEN + NULLIF ( 12, 40 ) + + NULLIF ( COUNT ( * ), 84 + 62 ) * + 10 WHEN 78 THEN NULL ELSE NULL END THEN - ( + 15 ) * - SUM ( + ( - 62 ) ) + - 20 END, + 85 * + 83 ) / - 31
----
NULL

query I rowsort
SELECT - - 74 + 85 col2
----
159

onlyif mysql # DIV for integer division: 
query I rowsort label-8729
SELECT - + CASE - 39 WHEN 57 THEN 74 + + + ( - 84 ) DIV + 75 * - 42 ELSE 42 + - 33 END + + 39
----
30

skipif mysql # not compatible
query I rowsort label-8729
SELECT - + CASE - 39 WHEN 57 THEN 74 + + + ( - 84 ) / + 75 * - 42 ELSE 42 + - 33 END + + 39
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-8730
SELECT - 65 * - + COUNT( * ) - - 36 AS col2
----
101

skipif mysql # not compatible
query I rowsort label-8730
SELECT - 65 * - + COUNT ( * ) - - 36 AS col2
----
101

onlyif mysql # DIV for integer division: 
query I rowsort label-8731
SELECT ALL + 77 DIV + 42
----
1

skipif mysql # not compatible
query I rowsort label-8731
SELECT ALL + 77 / + 42
----
1

query I rowsort
SELECT DISTINCT - ( - + 51 ) AS col1
----
51

query I rowsort
SELECT DISTINCT + + 40 + + - 95 col0
----
-55

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8734
SELECT ALL - COALESCE ( - - ( - CASE - 74 WHEN 18 THEN + 3 + + 45 * - MIN( ALL + 77 ) WHEN + 83 * + 26 THEN NULL ELSE 72 END ), 65, 79 DIV - MAX( DISTINCT + CAST( NULL AS SIGNED ) ) ) col2
----
72

skipif mysql # not compatible
query I rowsort label-8734
SELECT ALL - COALESCE ( - - ( - CASE - 74 WHEN 18 THEN + 3 + + 45 * - MIN ( ALL + 77 ) WHEN + 83 * + 26 THEN NULL ELSE 72 END ), 65, 79 / - MAX ( DISTINCT + CAST ( NULL AS INTEGER ) ) ) col2
----
72

query I rowsort
SELECT + + 42 * + - 96 - + 80 AS col0
----
-4112

onlyif mysql # aggregate syntax: 
query I rowsort label-8736
SELECT + - 84 + CASE - COUNT( * ) WHEN ( - ( COUNT( * ) ) ) THEN 82 ELSE + 77 + + 8 END * 2 AS col1
----
80

skipif mysql # not compatible
query I rowsort label-8736
SELECT + - 84 + CASE - COUNT ( * ) WHEN ( - ( COUNT ( * ) ) ) THEN 82 ELSE + 77 + + 8 END * 2 AS col1
----
80

query I rowsort
SELECT + ( + + 59 ) AS col1
----
59

query I rowsort
SELECT - 60 + + 79 AS col2
----
19

query I rowsort
SELECT - 74 * + 95 AS col2
----
-7030

onlyif mysql # aggregate syntax: 
query I rowsort label-8740
SELECT + 44 * + - COUNT( * ) + + 96 - - 45 * COUNT( * ) * - 53 * + 91 + + 26 col2
----
-216957

skipif mysql # not compatible
query I rowsort label-8740
SELECT + 44 * + - COUNT ( * ) + + 96 - - 45 * COUNT ( * ) * - 53 * + 91 + + 26 col2
----
-216957

query I rowsort
SELECT DISTINCT - 70 + 31 AS col1
----
-39

query I rowsort
SELECT ALL + + 73 + - 45 + + 18 * 14 AS col2
----
280

onlyif mysql # aggregate syntax: 
query I rowsort label-8743
SELECT ALL 31 * + COUNT( * ) * COUNT( * )
----
31

skipif mysql # not compatible
query I rowsort label-8743
SELECT ALL 31 * + COUNT ( * ) * COUNT ( * )
----
31

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8744
SELECT DISTINCT 88 DIV - 54 + - 47 - - 15 DIV + SUM( - 94 ) + + - 85
----
-133

skipif mysql # not compatible
query I rowsort label-8744
SELECT DISTINCT 88 / - 54 + - 47 - - 15 / + SUM ( - 94 ) + + - 85
----
-133

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8745
SELECT + COALESCE ( + 83, - AVG ( ALL - 85 ) DIV - CAST( - ( + + 64 ) AS SIGNED ) ) + + - 51 * MAX( DISTINCT 62 )
----
-3079

skipif mysql # not compatible
query I rowsort label-8745
SELECT + COALESCE ( + 83, - AVG ( ALL - 85 ) / - CAST ( - ( + + 64 ) AS INTEGER ) ) + + - 51 * MAX ( DISTINCT 62 )
----
-3079

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8746
SELECT ALL 50 * + 57 / - + 91 * - - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8746
SELECT ALL 50 * + 57 / - + 91 * - - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8747
SELECT SUM( ALL 28 ) + + + 37
----
65

skipif mysql # not compatible
query I rowsort label-8747
SELECT SUM ( ALL 28 ) + + + 37
----
65

query I rowsort
SELECT DISTINCT 85 * 94
----
7990

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8749
SELECT COUNT( * ) * COUNT( * ) DIV + + ( - 51 ) + + ( - + 20 )
----
-20

skipif mysql # not compatible
query I rowsort label-8749
SELECT COUNT ( * ) * COUNT ( * ) / + + ( - 51 ) + + ( - + 20 )
----
-20

query II rowsort
SELECT 5 - + 17 + + 70 + - 15 * 95, + 32 AS col0
----
-1367
32

query I rowsort
SELECT ( + + 92 ) * 30 AS col1
----
2760

query I rowsort
SELECT - 37 * - + 0 * - 20 - + - CASE CASE - 22 WHEN NULLIF ( + 25, - - 87 ) THEN - 69 + + 41 END WHEN - 8 - 13 * 61 THEN 92 + + 55 ELSE 65 END + + 40
----
105

query I rowsort
SELECT 88 + 95
----
183

query I rowsort
SELECT ( - + 61 ) * 37 AS col1
----
-2257

query I rowsort
SELECT 68 * + 72 + + - 2
----
4894

onlyif mysql # DIV for integer division: 
query I rowsort label-8756
SELECT 30 DIV + - 11
----
-2

skipif mysql # not compatible
query I rowsort label-8756
SELECT 30 / + - 11
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-8757
SELECT DISTINCT ( + ( - + NULLIF ( - - 51, - - 17 * + MIN( ALL + - 77 ) * + - COUNT( * ) ) ) ) * - MAX( ALL 33 )
----
1683

skipif mysql # not compatible
query I rowsort label-8757
SELECT DISTINCT ( + ( - + NULLIF ( - - 51, - - 17 * + MIN ( ALL + - 77 ) * + - COUNT ( * ) ) ) ) * - MAX ( ALL 33 )
----
1683

onlyif mysql # aggregate syntax: 
query I rowsort label-8758
SELECT ALL COUNT( * ) * ( + 91 ) * 17
----
1547

skipif mysql # not compatible
query I rowsort label-8758
SELECT ALL COUNT ( * ) * ( + 91 ) * 17
----
1547

onlyif mysql # aggregate syntax: 
query I rowsort label-8759
SELECT - 3 + - COUNT( - 13 )
----
-4

skipif mysql # not compatible
query I rowsort label-8759
SELECT - 3 + - COUNT ( - 13 )
----
-4

onlyif mysql # aggregate syntax: 
query II rowsort label-8760
SELECT - ( + 58 ) AS col2, ( 75 ) * + COUNT( + + 67 ) col0
----
-58
75

skipif mysql # not compatible
query II rowsort label-8760
SELECT - ( + 58 ) AS col2, ( 75 ) * + COUNT ( + + 67 ) col0
----
-58
75

onlyif mysql # aggregate syntax: 
query I rowsort label-8761
SELECT DISTINCT CASE 45 WHEN SUM( 55 ) - 47 THEN - + 45 + + 18 * + 3 WHEN COUNT( * ) / + 4 + 22 THEN NULL ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8761
SELECT DISTINCT CASE 45 WHEN SUM ( 55 ) - 47 THEN - + 45 + + 18 * + 3 WHEN COUNT ( * ) / + 4 + 22 THEN NULL ELSE NULL END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8762
SELECT ALL NULLIF ( + 10, - - 76 ) + - NULLIF ( NULLIF ( - + 69, - MAX( 46 ) ), - COUNT( - 11 ) ) AS col1
----
79

skipif mysql # not compatible
query I rowsort label-8762
SELECT ALL NULLIF ( + 10, - - 76 ) + - NULLIF ( NULLIF ( - + 69, - MAX ( 46 ) ), - COUNT ( - 11 ) ) AS col1
----
79

query I rowsort
SELECT DISTINCT 34 + + + 31 col2
----
65

query I rowsort
SELECT ALL - ( 9 ) AS col0
----
-9

query I rowsort
SELECT ALL + 93 + + - 89
----
4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8766
SELECT ALL + COALESCE ( + COUNT( * ), CASE ( + 63 ) WHEN + COUNT( * ) THEN 0 ELSE NULL END DIV 20 + - - CAST( NULL AS SIGNED ) + 90 * + 80 * - 21 ) + 85 AS col2
----
86

skipif mysql # not compatible
query I rowsort label-8766
SELECT ALL + COALESCE ( + COUNT ( * ), CASE ( + 63 ) WHEN + COUNT ( * ) THEN 0 ELSE NULL END / 20 + - - CAST ( NULL AS INTEGER ) + 90 * + 80 * - 21 ) + 85 AS col2
----
86

query I rowsort
SELECT 8 - + - NULLIF ( - - 63, - 78 )
----
71

query II rowsort
SELECT ALL ( 62 ) AS col2, - 53 * 37 * - 11
----
62
21571

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8769
SELECT ALL + - COUNT( + 22 ) + - - COUNT( * ) - 94 * COUNT( * ) * + - CAST( NULL AS SIGNED ) * + + COUNT( * ) + 91 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8769
SELECT ALL + - COUNT ( + 22 ) + - - COUNT ( * ) - 94 * COUNT ( * ) * + - CAST ( NULL AS INTEGER ) * + + COUNT ( * ) + 91 AS col1
----
NULL

query I rowsort
SELECT + 85 * + 62 - + 96
----
5174

query I rowsort
SELECT DISTINCT + 39 + 19 + + 99
----
157

onlyif mysql # aggregate syntax: 
query II rowsort label-8772
SELECT - 8 + + - 4 AS col1, 13 - ( - - COUNT( * ) )
----
-12
12

skipif mysql # not compatible
query II rowsort label-8772
SELECT - 8 + + - 4 AS col1, 13 - ( - - COUNT ( * ) )
----
-12
12

onlyif mysql # aggregate syntax: 
query I rowsort label-8773
SELECT 54 * + SUM( DISTINCT + 45 ) AS col0
----
2430

skipif mysql # not compatible
query I rowsort label-8773
SELECT 54 * + SUM ( DISTINCT + 45 ) AS col0
----
2430

onlyif mysql # DIV for integer division: 
query I rowsort label-8774
SELECT DISTINCT - 80 DIV + 96 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-8774
SELECT DISTINCT - 80 / + 96 AS col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8775
SELECT 44 * + 33 * - 62 * - - CAST( NULL AS SIGNED ) * 6 + 90 * 32 * - COUNT( * ) + - + 27
----
NULL

skipif mysql # not compatible
query I rowsort label-8775
SELECT 44 * + 33 * - 62 * - - CAST ( NULL AS INTEGER ) * 6 + 90 * 32 * - COUNT ( * ) + - + 27
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8776
SELECT 8 * SUM( ( 19 ) )
----
152

skipif mysql # not compatible
query I rowsort label-8776
SELECT 8 * SUM ( ( 19 ) )
----
152

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8777
SELECT 14 + - MAX( + 81 ) + - - ( - + 81 ) + - 46 DIV COUNT( * ) + 78 * + MIN( DISTINCT - ( 25 ) ) * + 87 + 40 DIV COUNT( * )
----
-169804

skipif mysql # not compatible
query I rowsort label-8777
SELECT 14 + - MAX ( + 81 ) + - - ( - + 81 ) + - 46 / COUNT ( * ) + 78 * + MIN ( DISTINCT - ( 25 ) ) * + 87 + 40 / COUNT ( * )
----
-169804

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8778
SELECT + 64 AS col1, + ( - 19 ) + - + 64 + + 0 * 46 * + + ( + - 8 ) + - 44 DIV 7 * - COUNT( * ) AS col0
----
64
-77

skipif mysql # not compatible
query II rowsort label-8778
SELECT + 64 AS col1, + ( - 19 ) + - + 64 + + 0 * 46 * + + ( + - 8 ) + - 44 / 7 * - COUNT ( * ) AS col0
----
64
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-8779
SELECT MAX( DISTINCT - 55 ) * 40 - + COUNT( * ) AS col0
----
-2201

skipif mysql # not compatible
query I rowsort label-8779
SELECT MAX ( DISTINCT - 55 ) * 40 - + COUNT ( * ) AS col0
----
-2201

query I rowsort
SELECT DISTINCT - ( + 17 )
----
-17

query I rowsort
SELECT ALL + 9 * + - 25
----
-225

query I rowsort
SELECT ( 61 ) * + 48 + - - 77 - 23 AS col2
----
2982

onlyif mysql # aggregate syntax: 
query I rowsort label-8783
SELECT ( + - 72 ) * + 7 * - COUNT( * ) + + + NULLIF ( - ( - MIN( DISTINCT - + ( + 8 ) ) ), - - 66 )
----
496

skipif mysql # not compatible
query I rowsort label-8783
SELECT ( + - 72 ) * + 7 * - COUNT ( * ) + + + NULLIF ( - ( - MIN ( DISTINCT - + ( + 8 ) ) ), - - 66 )
----
496

onlyif mysql # aggregate syntax: 
query I rowsort label-8784
SELECT ALL ( + 96 ) * + 83 * - COUNT( 27 ) - + 26
----
-7994

skipif mysql # not compatible
query I rowsort label-8784
SELECT ALL ( + 96 ) * + 83 * - COUNT ( 27 ) - + 26
----
-7994

onlyif mysql # aggregate syntax: 
query I rowsort label-8785
SELECT + MAX( 45 )
----
45

skipif mysql # not compatible
query I rowsort label-8785
SELECT + MAX ( 45 )
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-8786
SELECT ALL - COUNT( 63 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-8786
SELECT ALL - COUNT ( 63 ) AS col0
----
-1

query I rowsort
SELECT 75 * 42
----
3150

onlyif mysql # aggregate syntax: 
query I rowsort label-8788
SELECT ALL + 77 + - 52 * + - 14 + COUNT( * )
----
806

skipif mysql # not compatible
query I rowsort label-8788
SELECT ALL + 77 + - 52 * + - 14 + COUNT ( * )
----
806

onlyif mysql # aggregate syntax: 
query I rowsort label-8789
SELECT COUNT( + 12 )
----
1

skipif mysql # not compatible
query I rowsort label-8789
SELECT COUNT ( + 12 )
----
1

query I rowsort
SELECT ALL - 97 + + 87
----
-10

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8791
SELECT - CAST( 24 AS SIGNED ) * 66 * - - ( 82 ) + - COUNT( * ) * - 58
----
-129830

skipif mysql # not compatible
query I rowsort label-8791
SELECT - CAST ( 24 AS INTEGER ) * 66 * - - ( 82 ) + - COUNT ( * ) * - 58
----
-129830

query I rowsort
SELECT ALL - 6 * - 64 * + 6 AS col0
----
2304

onlyif mysql # aggregate syntax: 
query I rowsort label-8793
SELECT - 27 * + 78 * + 69 + - - COUNT( * ) * + + 79 + ( + 89 ) * + 61 + + COUNT( * ) - 50 + 27 * + 13 * + COUNT( * )
----
-139504

skipif mysql # not compatible
query I rowsort label-8793
SELECT - 27 * + 78 * + 69 + - - COUNT ( * ) * + + 79 + ( + 89 ) * + 61 + + COUNT ( * ) - 50 + 27 * + 13 * + COUNT ( * )
----
-139504

onlyif mysql # aggregate syntax: 
query I rowsort label-8794
SELECT ALL MAX( 3 ) + + 57 + + - ( - COUNT( * ) ) * 42 AS col0
----
102

skipif mysql # not compatible
query I rowsort label-8794
SELECT ALL MAX ( 3 ) + + 57 + + - ( - COUNT ( * ) ) * 42 AS col0
----
102

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8795
SELECT - 2 * CAST( - 22 AS SIGNED ) + + 10 + + 17 * - COUNT( * ) AS col1, + 20
----
37
20

skipif mysql # not compatible
query II rowsort label-8795
SELECT - 2 * CAST ( - 22 AS INTEGER ) + + 10 + + 17 * - COUNT ( * ) AS col1, + 20
----
37
20

query I rowsort
SELECT 21 * + 26
----
546

onlyif mysql # aggregate syntax: 
query I rowsort label-8797
SELECT - NULLIF ( - 39, CASE WHEN NOT + COUNT( DISTINCT 92 ) <= ( NULL ) THEN 70 - + COUNT( * ) / - 98 / - 6 * 58 END ) col2
----
39

skipif mysql # not compatible
query I rowsort label-8797
SELECT - NULLIF ( - 39, CASE WHEN NOT + COUNT ( DISTINCT 92 ) <= ( NULL ) THEN 70 - + COUNT ( * ) / - 98 / - 6 * 58 END ) col2
----
39

query I rowsort
SELECT 23 + NULLIF ( + + 59, + 73 + + 54 + + 12 * + - 64 ) + + 33 - + 41 * + 22
----
-787

onlyif mysql # aggregate syntax: 
query I rowsort label-8799
SELECT + COUNT( * ) - + 44
----
-43

skipif mysql # not compatible
query I rowsort label-8799
SELECT + COUNT ( * ) - + 44
----
-43

query I rowsort
SELECT ALL + - ( 21 ) * + 65
----
-1365

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8801
SELECT DISTINCT 35 * 40 - 8 * - - CAST( + + 12 AS SIGNED ) + - 83 AS col1
----
1221

skipif mysql # not compatible
query I rowsort label-8801
SELECT DISTINCT 35 * 40 - 8 * - - CAST ( + + 12 AS INTEGER ) + - 83 AS col1
----
1221

query I rowsort
SELECT ALL + - 35 - + 92
----
-127

query I rowsort
SELECT - + 77 AS col1
----
-77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8804
SELECT - MIN( + 73 ) + COUNT( ALL - ( CAST( NULL AS SIGNED ) ) ) - - 85 AS col1
----
12

skipif mysql # not compatible
query I rowsort label-8804
SELECT - MIN ( + 73 ) + COUNT ( ALL - ( CAST ( NULL AS INTEGER ) ) ) - - 85 AS col1
----
12

onlyif mysql # aggregate syntax: 
query II rowsort label-8805
SELECT + 58 AS col0, COUNT( * ) AS col0
----
58
1

skipif mysql # not compatible
query II rowsort label-8805
SELECT + 58 AS col0, COUNT ( * ) AS col0
----
58
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8806
SELECT ALL + CASE + 85 WHEN + + COUNT( + + 94 ) * + CASE + 14 WHEN - - COUNT( * ) * - - COUNT( * ) + + + 94 THEN NULL WHEN + COUNT( * ) * COUNT( * ) + 37 * + 18 THEN 82 END THEN NULL WHEN - 87 + 88 * - 25 THEN COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-8806
SELECT ALL + CASE + 85 WHEN + + COUNT ( + + 94 ) * + CASE + 14 WHEN - - COUNT ( * ) * - - COUNT ( * ) + + + 94 THEN NULL WHEN + COUNT ( * ) * COUNT ( * ) + 37 * + 18 THEN 82 END THEN NULL WHEN - 87 + 88 * - 25 THEN COUNT ( * ) END
----
NULL

query I rowsort
SELECT ALL + 12 - + - 99 AS col1
----
111

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8808
SELECT + ( - 97 ) + + COALESCE ( + + 63, - 44 - - 24 - + 30 + + + 31 * - + 56 DIV COUNT( * ) * - 79 - 38 * 71 ) * - 80 AS col1
----
-5137

skipif mysql # not compatible
query I rowsort label-8808
SELECT + ( - 97 ) + + COALESCE ( + + 63, - 44 - - 24 - + 30 + + + 31 * - + 56 / COUNT ( * ) * - 79 - 38 * 71 ) * - 80 AS col1
----
-5137

query I rowsort
SELECT DISTINCT - 94 * + - ( ( 63 ) )
----
5922

query I rowsort
SELECT - 91 + 32
----
-59

query I rowsort
SELECT ALL - CASE + 20 WHEN ( ( 86 ) ) * - 67 * - 31 THEN + 19 END * + 76 + 25 col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8812
SELECT ALL - 4 DIV + 22
----
0

skipif mysql # not compatible
query I rowsort label-8812
SELECT ALL - 4 / + 22
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8813
SELECT DISTINCT MAX( ALL - 75 )
----
-75

skipif mysql # not compatible
query I rowsort label-8813
SELECT DISTINCT MAX ( ALL - 75 )
----
-75

query I rowsort
SELECT DISTINCT - 95 * 25 * - 52
----
123500

query I rowsort
SELECT ALL - 77 * - 93
----
7161

query I rowsort
SELECT DISTINCT + NULLIF ( + + 36, - + 41 )
----
36

query II rowsort
SELECT DISTINCT + 85 AS col2, 82 AS col0
----
85
82

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8818
SELECT COALESCE ( + - 45, 52, - + NULLIF ( + + 17, - 71 * + 38 / - 65 + + 73 ) + - CASE - 1 WHEN 71 + + 37 / 80 THEN NULL WHEN NULLIF ( - 43, + NULLIF ( CAST( NULL AS SIGNED ), + ( 17 ) ) ) THEN - 83 * + 61 - COUNT( * ) ELSE - 28 + 13 END ) AS col2
----
-45

skipif mysql # not compatible
query I rowsort label-8818
SELECT COALESCE ( + - 45, 52, - + NULLIF ( + + 17, - 71 * + 38 / - 65 + + 73 ) + - CASE - 1 WHEN 71 + + 37 / 80 THEN NULL WHEN NULLIF ( - 43, + NULLIF ( CAST ( NULL AS INTEGER ), + ( 17 ) ) ) THEN - 83 * + 61 - COUNT ( * ) ELSE - 28 + 13 END ) AS col2
----
-45

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8819
SELECT - CAST( + 65 AS SIGNED ) + - - 71 + + - 3 DIV + 59 AS col2
----
6

skipif mysql # not compatible
query I rowsort label-8819
SELECT - CAST ( + 65 AS INTEGER ) + - - 71 + + - 3 / + 59 AS col2
----
6

onlyif mysql # DIV for integer division: 
query I rowsort label-8820
SELECT + 25 DIV - 34 * + 72 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-8820
SELECT + 25 / - 34 * + 72 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8821
SELECT 5 * + - 35 + + ( + SUM( ALL 79 ) ) + + 20 * + - 23
----
-556

skipif mysql # not compatible
query I rowsort label-8821
SELECT 5 * + - 35 + + ( + SUM ( ALL 79 ) ) + + 20 * + - 23
----
-556

query I rowsort
SELECT + 42 - + 3 * - + 0 + 6
----
48

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8823
SELECT DISTINCT - COUNT( * ) DIV - + 36 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-8823
SELECT DISTINCT - COUNT ( * ) / - + 36 AS col2
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8824
SELECT - 78 DIV ( + - COUNT( ALL ( - 30 ) ) ) * + 18 + + 6 + + + 46 col2
----
1456

skipif mysql # not compatible
query I rowsort label-8824
SELECT - 78 / ( + - COUNT ( ALL ( - 30 ) ) ) * + 18 + + 6 + + + 46 col2
----
1456

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8825
SELECT - 90 * - CAST( + 85 AS SIGNED ) - CASE + - ( + 43 ) WHEN + NULLIF ( 53, + AVG ( - COALESCE ( - 96, - 29 ) ) ) * + ( - 10 ) + - 6 THEN COUNT( * ) * 69 ELSE NULL END + - 42 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8825
SELECT - 90 * - CAST ( + 85 AS INTEGER ) - CASE + - ( + 43 ) WHEN + NULLIF ( 53, + AVG ( - COALESCE ( - 96, - 29 ) ) ) * + ( - 10 ) + - 6 THEN COUNT ( * ) * 69 ELSE NULL END + - 42 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8826
SELECT ALL + COUNT( * ) * + + 23 + + 98 + + + 54
----
175

skipif mysql # not compatible
query I rowsort label-8826
SELECT ALL + COUNT ( * ) * + + 23 + + 98 + + + 54
----
175

onlyif mysql # aggregate syntax: 
query I rowsort label-8827
SELECT DISTINCT + ( - 69 ) * - + 6 * 21 * 59 * - SUM( 75 ) + + 55
----
-38470895

skipif mysql # not compatible
query I rowsort label-8827
SELECT DISTINCT + ( - 69 ) * - + 6 * 21 * 59 * - SUM ( 75 ) + + 55
----
-38470895

onlyif mysql # DIV for integer division: 
query I rowsort label-8828
SELECT ALL + 46 * + 44 - + + 89 + - 85 * + - 85 DIV + - 1 + + 31
----
-5259

skipif mysql # not compatible
query I rowsort label-8828
SELECT ALL + 46 * + 44 - + + 89 + - 85 * + - 85 / + - 1 + + 31
----
-5259

query I rowsort
SELECT + 38 + + 94 AS col1
----
132

query I rowsort
SELECT ALL + - ( + + 27 ) AS col2
----
-27

query I rowsort
SELECT DISTINCT - 60 * - 3 + - 71 + 27 AS col2
----
136

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8832
SELECT CASE + - ( - 59 ) WHEN NULLIF ( + + 9, + - CAST( NULL AS SIGNED ) ) + 99 THEN + 81 WHEN 61 THEN - 58 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-8832
SELECT CASE + - ( - 59 ) WHEN NULLIF ( + + 9, + - CAST ( NULL AS INTEGER ) ) + 99 THEN + 81 WHEN 61 THEN - 58 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8833
SELECT 27 col2, CASE + ( 58 ) WHEN + - 96 * + 58 + 46 + - 40 THEN NULL WHEN 12 THEN + 82 * - 88 WHEN - 62 * 73 THEN 49 ELSE - ( - MAX( ALL - 55 ) ) DIV + ( + COUNT( * ) ) + - 19 END DIV 62 - + 92 AS col2
----
27
-93

skipif mysql # not compatible
query II rowsort label-8833
SELECT 27 col2, CASE + ( 58 ) WHEN + - 96 * + 58 + 46 + - 40 THEN NULL WHEN 12 THEN + 82 * - 88 WHEN - 62 * 73 THEN 49 ELSE - ( - MAX ( ALL - 55 ) ) / + ( + COUNT ( * ) ) + - 19 END / 62 - + 92 AS col2
----
27
-93

query I rowsort
SELECT + 65 + 91 * NULLIF ( - + 47, CASE + - 54 WHEN - 6 THEN ( 22 ) WHEN - + 80 + 67 THEN + 5 END ) + - 3 * 43 AS col1
----
-4341

onlyif mysql # aggregate syntax: 
query I rowsort label-8835
SELECT ALL - COALESCE ( + COUNT( 50 ), COUNT( * ), - ( - - ( - 6 ) ), - - 35 ) * ( + COUNT( * ) ) * - 43 + + 44 * 19
----
879

skipif mysql # not compatible
query I rowsort label-8835
SELECT ALL - COALESCE ( + COUNT ( 50 ), COUNT ( * ), - ( - - ( - 6 ) ), - - 35 ) * ( + COUNT ( * ) ) * - 43 + + 44 * 19
----
879

query I rowsort
SELECT - - 60 * + + 54 + 51
----
3291

query I rowsort
SELECT + + 43 AS col0
----
43

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8838
SELECT + 78 + 26 + + - 74 + - 94 + SUM( - 75 ) DIV + 9 AS col2
----
-72

skipif mysql # not compatible
query I rowsort label-8838
SELECT + 78 + 26 + + - 74 + - 94 + SUM ( - 75 ) / + 9 AS col2
----
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-8839
SELECT + MIN( 41 )
----
41

skipif mysql # not compatible
query I rowsort label-8839
SELECT + MIN ( 41 )
----
41

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8840
SELECT + + CAST( + - 94 AS SIGNED ) + - SUM( ALL + 44 ) * + 54
----
-2470

skipif mysql # not compatible
query I rowsort label-8840
SELECT + + CAST ( + - 94 AS INTEGER ) + - SUM ( ALL + 44 ) * + 54
----
-2470

query I rowsort
SELECT ALL + + 57 AS col1
----
57

query I rowsort
SELECT + 40 * + ( + - 85 )
----
-3400

onlyif mysql # DIV for integer division: 
query I rowsort label-8843
SELECT ALL 98 DIV + NULLIF ( - 70, + - 99 )
----
-1

skipif mysql # not compatible
query I rowsort label-8843
SELECT ALL 98 / + NULLIF ( - 70, + - 99 )
----
-1

query II rowsort
SELECT ALL - 58, 0 AS col2
----
-58
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8845
SELECT + + COUNT( - - 99 ) DIV 85 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-8845
SELECT + + COUNT ( - - 99 ) / 85 AS col1
----
0

query I rowsort
SELECT + + 78 * + 24
----
1872

query I rowsort
SELECT + - 9 - 33
----
-42

query I rowsort
SELECT - ( + 73 )
----
-73

query II rowsort
SELECT - 32 + - + 5, ( 42 ) AS col0
----
-37
42

onlyif mysql # aggregate syntax: 
query I rowsort label-8850
SELECT + 79 * SUM( ALL - 15 ) * 15 + - - 50
----
-17725

skipif mysql # not compatible
query I rowsort label-8850
SELECT + 79 * SUM ( ALL - 15 ) * 15 + - - 50
----
-17725

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8851
SELECT ALL 85 * CAST( + ( - 36 ) AS SIGNED ) AS col0
----
-3060

skipif mysql # not compatible
query I rowsort label-8851
SELECT ALL 85 * CAST ( + ( - 36 ) AS INTEGER ) AS col0
----
-3060

onlyif mysql # aggregate syntax: 
query I rowsort label-8852
SELECT + 96 + + - CASE MIN( + 22 ) WHEN + - 51 THEN - - ( 8 ) * + - 83 * - 28 + - 27 WHEN + MIN( + - 89 ) THEN NULL WHEN + MAX( 62 ) * + 88 THEN COUNT( * ) ELSE 41 END AS col0
----
55

skipif mysql # not compatible
query I rowsort label-8852
SELECT + 96 + + - CASE MIN ( + 22 ) WHEN + - 51 THEN - - ( 8 ) * + - 83 * - 28 + - 27 WHEN + MIN ( + - 89 ) THEN NULL WHEN + MAX ( 62 ) * + 88 THEN COUNT ( * ) ELSE 41 END AS col0
----
55

query I rowsort
SELECT DISTINCT ( - 81 ) AS col2
----
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-8854
SELECT - 73 + COUNT( DISTINCT - 13 ) + 74 * - - 79 + + - 12
----
5762

skipif mysql # not compatible
query I rowsort label-8854
SELECT - 73 + COUNT ( DISTINCT - 13 ) + 74 * - - 79 + + - 12
----
5762

query I rowsort
SELECT + 43 * - 77 col0
----
-3311

onlyif mysql # aggregate syntax: 
query I rowsort label-8856
SELECT - 49 * - COUNT( * )
----
49

skipif mysql # not compatible
query I rowsort label-8856
SELECT - 49 * - COUNT ( * )
----
49

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8857
SELECT ALL 55 + + + 58 - - 12 + - 62 * - 73 + + - 69 * + 91 * + 50 DIV + COUNT( * ) - + SUM( 91 ) AS col0
----
-309390

skipif mysql # not compatible
query I rowsort label-8857
SELECT ALL 55 + + + 58 - - 12 + - 62 * - 73 + + - 69 * + 91 * + 50 / + COUNT ( * ) - + SUM ( 91 ) AS col0
----
-309390

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8858
SELECT ALL CASE - COUNT( * ) WHEN - CAST( 3 AS SIGNED ) / - 90 * 94 * + MAX( DISTINCT + 13 ) THEN NULL WHEN 92 THEN + - 51 * + CAST( - - 77 AS SIGNED ) + 87 ELSE NULLIF ( 4, + 34 ) * - 16 END AS col0
----
-64

skipif mysql # not compatible
query I rowsort label-8858
SELECT ALL CASE - COUNT ( * ) WHEN - CAST ( 3 AS INTEGER ) / - 90 * 94 * + MAX ( DISTINCT + 13 ) THEN NULL WHEN 92 THEN + - 51 * + CAST ( - - 77 AS INTEGER ) + 87 ELSE NULLIF ( 4, + 34 ) * - 16 END AS col0
----
-64

query II rowsort
SELECT DISTINCT COALESCE ( + ( + 27 ), 10 * + 43 * + 9 + + + 28 ), + 73 AS col2
----
27
73

onlyif mysql # aggregate syntax: 
query I rowsort label-8860
SELECT DISTINCT + CASE - 69 WHEN - NULLIF ( - 97, 3 * - COUNT( * ) / - 10 * 18 ) + + COUNT( * ) THEN - 87 END
----
NULL

skipif mysql # not compatible
query I rowsort label-8860
SELECT DISTINCT + CASE - 69 WHEN - NULLIF ( - 97, 3 * - COUNT ( * ) / - 10 * 18 ) + + COUNT ( * ) THEN - 87 END
----
NULL

query I rowsort
SELECT - 19 + - CASE - 75 WHEN - - CASE - 84 WHEN + 60 THEN - NULLIF ( - ( - 72 ), + 17 - + 82 * + ( 69 ) ) + AVG ( 24 ) * 41 WHEN 18 * ( 66 ) THEN ( + 87 ) ELSE NULL END * 90 + 79 THEN NULL WHEN - 63 THEN 32 ELSE 53 END AS col1
----
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-8862
SELECT ALL + SUM( 6 )
----
6

skipif mysql # not compatible
query I rowsort label-8862
SELECT ALL + SUM ( 6 )
----
6

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8863
SELECT ALL - 78 DIV - 92 + - COUNT( DISTINCT 20 )
----
-1

skipif mysql # not compatible
query I rowsort label-8863
SELECT ALL - 78 / - 92 + - COUNT ( DISTINCT 20 )
----
-1

query II rowsort
SELECT - 83 * + 97, - 37 AS col2
----
-8051
-37

query II rowsort
SELECT ALL + CASE 26 WHEN - CASE + + 70 WHEN + 75 THEN - - 46 END THEN + 4 ELSE NULL END AS col2, + 58 AS col0
----
NULL
58

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8866
SELECT DISTINCT - 6 DIV + - 99 * + 77 + COUNT( * ) * + - 92
----
-92

skipif mysql # not compatible
query I rowsort label-8866
SELECT DISTINCT - 6 / + - 99 * + 77 + COUNT ( * ) * + - 92
----
-92

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8867
SELECT ALL - COUNT( ALL + 85 ) / - COUNT( * ) + 10 + COUNT( - + 0 ) + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8867
SELECT ALL - COUNT ( ALL + 85 ) / - COUNT ( * ) + 10 + COUNT ( - + 0 ) + CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8868
SELECT - + 6 * - - ( + + COUNT( * ) ) * 45 * - ( 11 ) - - 12 AS col2, - 0
----
2982
0

skipif mysql # not compatible
query II rowsort label-8868
SELECT - + 6 * - - ( + + COUNT ( * ) ) * 45 * - ( 11 ) - - 12 AS col2, - 0
----
2982
0

onlyif mysql # DIV for integer division: 
query II rowsort label-8869
SELECT ALL + - 55 DIV + 45 AS col2, - 99
----
-1
-99

skipif mysql # not compatible
query II rowsort label-8869
SELECT ALL + - 55 / + 45 AS col2, - 99
----
-1
-99

onlyif mysql # DIV for integer division: 
query I rowsort label-8870
SELECT + 85 DIV - 65
----
-1

skipif mysql # not compatible
query I rowsort label-8870
SELECT + 85 / - 65
----
-1

query I rowsort
SELECT DISTINCT + + 90 col0
----
90

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8872
SELECT ALL + 70 * + + 80 * - - 59 / - 59 + - CAST( NULL AS SIGNED ) - - 77
----
NULL

skipif mysql # not compatible
query I rowsort label-8872
SELECT ALL + 70 * + + 80 * - - 59 / - 59 + - CAST ( NULL AS INTEGER ) - - 77
----
NULL

query II rowsort
SELECT - 38 * + 84 AS col1, - ( + + ( + + ( 59 ) ) )
----
-3192
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-8874
SELECT + + COUNT( * ) * + - 50 * - ( + + COUNT( * ) ) * + 84 * - COALESCE ( 27, ( + + COUNT( * ) ), - 30 * + COUNT( * ) ) * - 12 + + COALESCE ( - 4, + 71 - + 92, 30 ) * + COUNT( ( 33 ) ) - + 49
----
1360747

skipif mysql # not compatible
query I rowsort label-8874
SELECT + + COUNT ( * ) * + - 50 * - ( + + COUNT ( * ) ) * + 84 * - COALESCE ( 27, ( + + COUNT ( * ) ), - 30 * + COUNT ( * ) ) * - 12 + + COALESCE ( - 4, + 71 - + 92, 30 ) * + COUNT ( ( 33 ) ) - + 49
----
1360747

onlyif mysql # aggregate syntax: 
query I rowsort label-8875
SELECT 29 - + 76 + - COALESCE ( - 60, + 98 ) * + COUNT( * ) * - 22
----
-1367

skipif mysql # not compatible
query I rowsort label-8875
SELECT 29 - + 76 + - COALESCE ( - 60, + 98 ) * + COUNT ( * ) * - 22
----
-1367

onlyif mysql # aggregate syntax: 
query I rowsort label-8876
SELECT ALL - + MIN( ALL - 77 ) - 37 + NULLIF ( 19, 65 )
----
59

skipif mysql # not compatible
query I rowsort label-8876
SELECT ALL - + MIN ( ALL - 77 ) - 37 + NULLIF ( 19, 65 )
----
59

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8877
SELECT CAST( + 64 AS SIGNED ) * ( - - 48 ) AS col2
----
3072

skipif mysql # not compatible
query I rowsort label-8877
SELECT CAST ( + 64 AS INTEGER ) * ( - - 48 ) AS col2
----
3072

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8878
SELECT + - 76 * ( - CASE + 90 WHEN - 7 * 86 THEN + 76 END ) + CAST( NULL AS DECIMAL ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8878
SELECT + - 76 * ( - CASE + 90 WHEN - 7 * 86 THEN + 76 END ) + CAST ( NULL AS REAL ) AS col2
----
NULL

query I rowsort
SELECT 40 * ( - 36 )
----
-1440

query I rowsort
SELECT - 45 + 75 * 21 * - - 58 AS col0
----
91305

query I rowsort
SELECT DISTINCT - 94 * - + 78 col2
----
7332

query II rowsort
SELECT DISTINCT 97 AS col1, 93 * + - 96 * - 87 col0
----
97
776736

query II rowsort
SELECT ALL 50, + 16 * - 70 AS col2
----
50
-1120

query I rowsort
SELECT DISTINCT - 22 + - + 3
----
-25

query I rowsort
SELECT 8 + + 31 + + - 66 AS col0
----
-27

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8886
SELECT ALL COUNT( * ) DIV + - 59 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-8886
SELECT ALL COUNT ( * ) / + - 59 AS col1
----
0

query I rowsort
SELECT ALL 14 + - 96 * + 14 col2
----
-1330

onlyif mysql # aggregate syntax: 
query III rowsort label-8888
SELECT - 14 AS col2, 15 + 67 + - 81 AS col0, + COUNT( * )
----
-14
1
1

skipif mysql # not compatible
query III rowsort label-8888
SELECT - 14 AS col2, 15 + 67 + - 81 AS col0, + COUNT ( * )
----
-14
1
1

onlyif mysql # DIV for integer division: 
query II rowsort label-8889
SELECT ALL 31 + - 69 + + 21 DIV + NULLIF ( + 64, + 85 DIV 98 DIV 31 + + 66 ) + + 79 + + 22, + 25 AS col1
----
63
25

skipif mysql # not compatible
query II rowsort label-8889
SELECT ALL 31 + - 69 + + 21 / + NULLIF ( + 64, + 85 / 98 / 31 + + 66 ) + + 79 + + 22, + 25 AS col1
----
63
25

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8890
SELECT COALESCE ( - + COUNT( DISTINCT + 34 ), + - 26 * - + 39 + - 38 + + - COUNT( * ) + 27 DIV 9 + + 0 + - MAX( 73 ) * CASE + 49 WHEN 51 - 40 * COUNT( * ) THEN COALESCE ( 16, 64 * 0 ) + 62 * 52 ELSE NULL END + + ( 65 ) * NULLIF ( - 27, 15 + 48 ) + - COUNT( DISTINCT 15 + 33 ) * - 38, - ( COALESCE ( + 74, ( + 38 ) ) ) * - 58 ) * 73 AS col0
----
-73

skipif mysql # not compatible
query I rowsort label-8890
SELECT COALESCE ( - + COUNT ( DISTINCT + 34 ), + - 26 * - + 39 + - 38 + + - COUNT ( * ) + 27 / 9 + + 0 + - MAX ( 73 ) * CASE + 49 WHEN 51 - 40 * COUNT ( * ) THEN COALESCE ( 16, 64 * 0 ) + 62 * 52 ELSE NULL END + + ( 65 ) * NULLIF ( - 27, 15 + 48 ) + - COUNT ( DISTINCT 15 + 33 ) * - 38, - ( COALESCE ( + 74, ( + 38 ) ) ) * - 58 ) * 73 AS col0
----
-73

onlyif mysql # DIV for integer division: 
query II rowsort label-8891
SELECT 49 DIV - 79 * - 96 AS col1, + 43 col0
----
0
43

skipif mysql # not compatible
query II rowsort label-8891
SELECT 49 / - 79 * - 96 AS col1, + 43 col0
----
0
43

query I rowsort
SELECT ALL 78 + + - 37 + + 89
----
130

onlyif mysql # aggregate syntax: 
query I rowsort label-8893
SELECT DISTINCT COUNT( * ) * 18
----
18

skipif mysql # not compatible
query I rowsort label-8893
SELECT DISTINCT COUNT ( * ) * 18
----
18

query I rowsort
SELECT ALL 1 + 95
----
96

query I rowsort
SELECT 29 - - - 48
----
-19

query I rowsort
SELECT DISTINCT 13 * + - 55
----
-715

query I rowsort
SELECT DISTINCT 30 + + - 60 AS col0
----
-30

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8898
SELECT ALL MIN( 40 ) + CASE + 88 WHEN - 21 + COALESCE ( + - 4, - 28 * + 47 ) + + 4 THEN NULL WHEN + - 72 THEN - + 56 ELSE CASE 97 WHEN - 33 THEN 78 WHEN + 89 + ( - COUNT( * ) ) THEN - COUNT( * ) * ( + CASE 96 WHEN + ( - 54 ) * 90 THEN 23 - 92 WHEN - 57 THEN NULL END ) ELSE + 44 DIV 89 + 20 END END
----
60

skipif mysql # not compatible
query I rowsort label-8898
SELECT ALL MIN ( 40 ) + CASE + 88 WHEN - 21 + COALESCE ( + - 4, - 28 * + 47 ) + + 4 THEN NULL WHEN + - 72 THEN - + 56 ELSE CASE 97 WHEN - 33 THEN 78 WHEN + 89 + ( - COUNT ( * ) ) THEN - COUNT ( * ) * ( + CASE 96 WHEN + ( - 54 ) * 90 THEN 23 - 92 WHEN - 57 THEN NULL END ) ELSE + 44 / 89 + 20 END END
----
60

query I rowsort
SELECT 19 + 54 + 56 * + 79 AS col0
----
4497

query II rowsort
SELECT 7 AS col0, + 67 AS col1
----
7
67

onlyif mysql # aggregate syntax: 
query II rowsort label-8901
SELECT - 83 * - 0 + SUM( DISTINCT - + 12 ) AS col2, - COUNT( * )
----
-12
-1

skipif mysql # not compatible
query II rowsort label-8901
SELECT - 83 * - 0 + SUM ( DISTINCT - + 12 ) AS col2, - COUNT ( * )
----
-12
-1

query I rowsort
SELECT + 77 * - + 43
----
-3311

onlyif mysql # aggregate syntax: 
query I rowsort label-8903
SELECT + MIN( - 97 ) * 64 + - - 92 + + + CASE - - 66 WHEN ( - 92 ) + ( 2 ) THEN 58 * + + 21 + + + COUNT( * ) * 7 WHEN - COUNT( * ) - 39 THEN NULL ELSE - 40 END
----
-6156

skipif mysql # not compatible
query I rowsort label-8903
SELECT + MIN ( - 97 ) * 64 + - - 92 + + + CASE - - 66 WHEN ( - 92 ) + ( 2 ) THEN 58 * + + 21 + + + COUNT ( * ) * 7 WHEN - COUNT ( * ) - 39 THEN NULL ELSE - 40 END
----
-6156

onlyif mysql # aggregate syntax: 
query I rowsort label-8904
SELECT COUNT( * ) - + - 67
----
68

skipif mysql # not compatible
query I rowsort label-8904
SELECT COUNT ( * ) - + - 67
----
68

query I rowsort
SELECT + + 42 AS col1
----
42

query II rowsort
SELECT ALL - - 30 AS col0, + 90 * + 17
----
30
1530

query I rowsort
SELECT 29 + 77
----
106

query II rowsort
SELECT DISTINCT - 88 AS col1, + 17 AS col2
----
-88
17

query I rowsort
SELECT 6 + + + 3 col2
----
9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8910
SELECT ALL - CASE - + ( + - COALESCE ( + 87, + - 47 ) ) WHEN + 25 THEN 13 ELSE + 66 DIV - COALESCE ( + CAST( + - 80 AS SIGNED ), COUNT( * ), + 20 ) * 87 + + 87 END * - 15
----
1305

skipif mysql # not compatible
query I rowsort label-8910
SELECT ALL - CASE - + ( + - COALESCE ( + 87, + - 47 ) ) WHEN + 25 THEN 13 ELSE + 66 / - COALESCE ( + CAST ( + - 80 AS INTEGER ), COUNT ( * ), + 20 ) * 87 + + 87 END * - 15
----
1305

onlyif mysql # aggregate syntax: 
query I rowsort label-8911
SELECT DISTINCT COUNT( * ) * + - ( + 94 ) AS col1
----
-94

skipif mysql # not compatible
query I rowsort label-8911
SELECT DISTINCT COUNT ( * ) * + - ( + 94 ) AS col1
----
-94

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8912
SELECT 85 DIV - 97 * COUNT( DISTINCT + 0 ) AS col0, + 94 AS col2
----
0
94

skipif mysql # not compatible
query II rowsort label-8912
SELECT 85 / - 97 * COUNT ( DISTINCT + 0 ) AS col0, + 94 AS col2
----
0
94

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8913
SELECT 29 * - 47 * + - 53 - COALESCE ( + - 3, CAST( NULL AS SIGNED ) ) + + - COUNT( * ) AS col1
----
72241

skipif mysql # not compatible
query I rowsort label-8913
SELECT 29 * - 47 * + - 53 - COALESCE ( + - 3, CAST ( NULL AS INTEGER ) ) + + - COUNT ( * ) AS col1
----
72241

onlyif mysql # aggregate syntax: 
query I rowsort label-8914
SELECT + 63 + - SUM( + 88 ) + - 87 + + + 50 col0
----
-62

skipif mysql # not compatible
query I rowsort label-8914
SELECT + 63 + - SUM ( + 88 ) + - 87 + + + 50 col0
----
-62

query I rowsort
SELECT 75 * - 21
----
-1575

query I rowsort
SELECT + 76 * - + 0
----
0

query I rowsort
SELECT ALL - - 46 AS col2
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-8918
SELECT COUNT( * ) + + 46 col2
----
47

skipif mysql # not compatible
query I rowsort label-8918
SELECT COUNT ( * ) + + 46 col2
----
47

onlyif mysql # DIV for integer division: 
query I rowsort label-8919
SELECT DISTINCT + + 86 DIV + 28 col2
----
3

skipif mysql # not compatible
query I rowsort label-8919
SELECT DISTINCT + + 86 / + 28 col2
----
3

query I rowsort
SELECT ALL - + 69 AS col1
----
-69

query I rowsort
SELECT 54 * + 90
----
4860

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8922
SELECT - 43 DIV COUNT( * ) * - + 38
----
1634

skipif mysql # not compatible
query I rowsort label-8922
SELECT - 43 / COUNT ( * ) * - + 38
----
1634

query I rowsort
SELECT ALL - 90 + - NULLIF ( - - 94, 50 ) * 17
----
-1688

onlyif mysql # aggregate syntax: 
query I rowsort label-8924
SELECT DISTINCT + 36 + - + COUNT( * ) - + + COALESCE ( + 60, 58 ) col0
----
-25

skipif mysql # not compatible
query I rowsort label-8924
SELECT DISTINCT + 36 + - + COUNT ( * ) - + + COALESCE ( + 60, 58 ) col0
----
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-8925
SELECT ALL MIN( 45 ) * - - 1 + 20 + + 69
----
134

skipif mysql # not compatible
query I rowsort label-8925
SELECT ALL MIN ( 45 ) * - - 1 + 20 + + 69
----
134

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8926
SELECT 14 + 38 + + - 16 + COALESCE ( - 18, 75 * 4 ) * - 50 - CAST( NULL AS SIGNED ) * + 62
----
NULL

skipif mysql # not compatible
query I rowsort label-8926
SELECT 14 + 38 + + - 16 + COALESCE ( - 18, 75 * 4 ) * - 50 - CAST ( NULL AS INTEGER ) * + 62
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8927
SELECT DISTINCT + MAX( ALL + 75 ) + - 89 * - MAX( + 90 ) * + ( + COUNT( * ) ) - - 69 + - + 7 + 75 * - + 13
----
7172

skipif mysql # not compatible
query I rowsort label-8927
SELECT DISTINCT + MAX ( ALL + 75 ) + - 89 * - MAX ( + 90 ) * + ( + COUNT ( * ) ) - - 69 + - + 7 + 75 * - + 13
----
7172

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8928
SELECT ALL - 18 + 94 DIV + 1 + + NULLIF ( - 23, + + SUM( 91 ) - + COUNT( * ) )
----
53

skipif mysql # not compatible
query I rowsort label-8928
SELECT ALL - 18 + 94 / + 1 + + NULLIF ( - 23, + + SUM ( 91 ) - + COUNT ( * ) )
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-8929
SELECT COUNT( * ) * + 37
----
37

skipif mysql # not compatible
query I rowsort label-8929
SELECT COUNT ( * ) * + 37
----
37

query I rowsort
SELECT ALL + 45 * + 87 * 28
----
109620

query I rowsort
SELECT 4 * 40 * - + 60 * - 98 * - 93 col1
----
-87494400

query I rowsort
SELECT ALL 60 + + ( + 71 ) AS col1
----
131

onlyif mysql # aggregate syntax: 
query I rowsort label-8933
SELECT DISTINCT SUM( + - 57 ) AS col1
----
-57

skipif mysql # not compatible
query I rowsort label-8933
SELECT DISTINCT SUM ( + - 57 ) AS col1
----
-57

query I rowsort
SELECT DISTINCT - ( 29 ) + - 88 AS col2
----
-117

onlyif mysql # aggregate syntax: 
query I rowsort label-8935
SELECT ALL 54 * - + ( + - COUNT( * ) )
----
54

skipif mysql # not compatible
query I rowsort label-8935
SELECT ALL 54 * - + ( + - COUNT ( * ) )
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-8936
SELECT 29 * - COUNT( * ) AS col0
----
-29

skipif mysql # not compatible
query I rowsort label-8936
SELECT 29 * - COUNT ( * ) AS col0
----
-29

onlyif mysql # aggregate syntax: 
query II rowsort label-8937
SELECT NULLIF ( + - COALESCE ( - 67, + 58 ), 75 ) * + COUNT( * ) + + 56, + SUM( + + 12 ) AS col1
----
123
12

skipif mysql # not compatible
query II rowsort label-8937
SELECT NULLIF ( + - COALESCE ( - 67, + 58 ), 75 ) * + COUNT ( * ) + + 56, + SUM ( + + 12 ) AS col1
----
123
12

query I rowsort
SELECT ALL 18 * - - 86 AS col0
----
1548

query I rowsort
SELECT 95 + + 51
----
146

query I rowsort
SELECT + + 48 * + 63 AS col0
----
3024

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8941
SELECT ALL + 43 * - - CAST( - 67 AS SIGNED ) AS col1
----
-2881

skipif mysql # not compatible
query I rowsort label-8941
SELECT ALL + 43 * - - CAST ( - 67 AS INTEGER ) AS col1
----
-2881

query I rowsort
SELECT DISTINCT + + 85 AS col1
----
85

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8943
SELECT ALL 90 * - COUNT( * ) / - - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8943
SELECT ALL 90 * - COUNT ( * ) / - - CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8944
SELECT + - SUM( - 3 ), 63 * + COUNT( * ) + 58 * 25 AS col0
----
3
1513

skipif mysql # not compatible
query II rowsort label-8944
SELECT + - SUM ( - 3 ), 63 * + COUNT ( * ) + 58 * 25 AS col0
----
3
1513

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8945
SELECT + ( - - NULLIF ( 77, + 72 ) ) * - - CASE NULLIF ( CAST( 40 AS SIGNED ), - COALESCE ( 2, + ( - - 48 ) + + 77 + COUNT( * ), 51 * 98 ) ) WHEN - MIN( ALL 12 ) + 54 THEN + 78 END + - 66 / 34 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8945
SELECT + ( - - NULLIF ( 77, + 72 ) ) * - - CASE NULLIF ( CAST ( 40 AS INTEGER ), - COALESCE ( 2, + ( - - 48 ) + + 77 + COUNT ( * ), 51 * 98 ) ) WHEN - MIN ( ALL 12 ) + 54 THEN + 78 END + - 66 / 34 col2
----
NULL

query I rowsort
SELECT - 47 * + 93
----
-4371

query I rowsort
SELECT DISTINCT + + COALESCE ( 80, 30 ) AS col2
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-8948
SELECT + COUNT( DISTINCT - + 39 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-8948
SELECT + COUNT ( DISTINCT - + 39 ) AS col2
----
1

query I rowsort
SELECT DISTINCT + + ( + 48 ) AS col2
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-8950
SELECT + + NULLIF ( 57, + COALESCE ( 20, + COUNT( * ) * + - 57 ) ) AS col2
----
57

skipif mysql # not compatible
query I rowsort label-8950
SELECT + + NULLIF ( 57, + COALESCE ( 20, + COUNT ( * ) * + - 57 ) ) AS col2
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-8951
SELECT ALL + 89 * - + COUNT( * ) * COUNT( * ) * + + COUNT( * ) * 22 - + 13 + + 50 + - 24 AS col0
----
-1945

skipif mysql # not compatible
query I rowsort label-8951
SELECT ALL + 89 * - + COUNT ( * ) * COUNT ( * ) * + + COUNT ( * ) * 22 - + 13 + + 50 + - 24 AS col0
----
-1945

query I rowsort
SELECT ALL COALESCE ( ( - 72 ), 50 + - 16 ) * ( - - 72 )
----
-5184

onlyif mysql # DIV for integer division: 
query I rowsort label-8953
SELECT - 73 DIV - + 14
----
5

skipif mysql # not compatible
query I rowsort label-8953
SELECT - 73 / - + 14
----
5

query I rowsort
SELECT ALL - 86 + 92 AS col2
----
6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8955
SELECT + COALESCE ( ( - COUNT( ALL - + CAST( COALESCE ( 76, 45 ) AS SIGNED ) ) ), - 7 ), 37 AS col1
----
-1
37

skipif mysql # not compatible
query II rowsort label-8955
SELECT + COALESCE ( ( - COUNT ( ALL - + CAST ( COALESCE ( 76, 45 ) AS INTEGER ) ) ), - 7 ), 37 AS col1
----
-1
37

query I rowsort
SELECT 86 * 16 + + 52
----
1428

onlyif mysql # DIV for integer division: 
query I rowsort label-8957
SELECT - 38 DIV + + 45
----
0

skipif mysql # not compatible
query I rowsort label-8957
SELECT - 38 / + + 45
----
0

query I rowsort
SELECT - 96 + 40 AS col2
----
-56

query I rowsort
SELECT - 72 + 78 * + + 78 AS col0
----
6012

query I rowsort
SELECT - 90 * + 26
----
-2340

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8961
SELECT ALL + SUM( DISTINCT - - 20 ) + + 47 + COALESCE ( CASE + ( + 53 ) WHEN - 94 THEN NULL WHEN - SUM( DISTINCT - 93 ) THEN - - COUNT( * ) ELSE NULL END, + - ( - 21 ) DIV 51, 40 + + 94 ) * 45 AS col2
----
67

skipif mysql # not compatible
query I rowsort label-8961
SELECT ALL + SUM ( DISTINCT - - 20 ) + + 47 + COALESCE ( CASE + ( + 53 ) WHEN - 94 THEN NULL WHEN - SUM ( DISTINCT - 93 ) THEN - - COUNT ( * ) ELSE NULL END, + - ( - 21 ) / 51, 40 + + 94 ) * 45 AS col2
----
67

query I rowsort
SELECT ALL + 14 * 65 AS col1
----
910

onlyif mysql # aggregate syntax: 
query I rowsort label-8963
SELECT DISTINCT + ( 87 ) - + SUM( DISTINCT - ( - 47 ) ) * ( - + COUNT( * ) ) AS col0
----
134

skipif mysql # not compatible
query I rowsort label-8963
SELECT DISTINCT + ( 87 ) - + SUM ( DISTINCT - ( - 47 ) ) * ( - + COUNT ( * ) ) AS col0
----
134

onlyif mysql # aggregate syntax: 
query I rowsort label-8964
SELECT - COUNT( * ) + + 9 AS col2
----
8

skipif mysql # not compatible
query I rowsort label-8964
SELECT - COUNT ( * ) + + 9 AS col2
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-8965
SELECT ALL + 24 - 33 + + SUM( - 23 ) AS col1
----
-32

skipif mysql # not compatible
query I rowsort label-8965
SELECT ALL + 24 - 33 + + SUM ( - 23 ) AS col1
----
-32

query I rowsort
SELECT - 30 * - 72
----
2160

onlyif mysql # aggregate syntax: 
query I rowsort label-8967
SELECT ALL + COUNT( * ) * - 91
----
-91

skipif mysql # not compatible
query I rowsort label-8967
SELECT ALL + COUNT ( * ) * - 91
----
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-8968
SELECT ALL ( + - COALESCE ( + 15, + MIN( - - 34 ) ) ) AS col0
----
-15

skipif mysql # not compatible
query I rowsort label-8968
SELECT ALL ( + - COALESCE ( + 15, + MIN ( - - 34 ) ) ) AS col0
----
-15

query I rowsort
SELECT - 24 + - + 64 AS col1
----
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-8970
SELECT - SUM( + 80 ) * - - 0
----
0

skipif mysql # not compatible
query I rowsort label-8970
SELECT - SUM ( + 80 ) * - - 0
----
0

query II rowsort
SELECT + ( 16 ) * 84 AS col0, + 97 - + + 41
----
1344
56

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8972
SELECT + CAST( + 61 AS SIGNED )
----
61

skipif mysql # not compatible
query I rowsort label-8972
SELECT + CAST ( + 61 AS INTEGER )
----
61

onlyif mysql # DIV for integer division: 
query I rowsort label-8973
SELECT ALL 35 DIV - 41
----
0

skipif mysql # not compatible
query I rowsort label-8973
SELECT ALL 35 / - 41
----
0

query I rowsort
SELECT + ( + 32 ) + + 46 AS col1
----
78

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8975
SELECT + 40 DIV 22 + COUNT( * ) + COUNT( * ) + 38 * - 13 AS col0
----
-491

skipif mysql # not compatible
query I rowsort label-8975
SELECT + 40 / 22 + COUNT ( * ) + COUNT ( * ) + 38 * - 13 AS col0
----
-491

query I rowsort
SELECT - - 75 + + 59
----
134

query I rowsort
SELECT + NULLIF ( 48, - 22 ) + + + 22 + + 35 col0
----
105

query II rowsort
SELECT - ( + ( + - 71 ) ), 23 col0
----
71
23

onlyif mysql # DIV for integer division: 
query I rowsort label-8979
SELECT ALL - 64 DIV 1 * + 96 + 11 col1
----
-6133

skipif mysql # not compatible
query I rowsort label-8979
SELECT ALL - 64 / 1 * + 96 + 11 col1
----
-6133

onlyif mysql # aggregate syntax: 
query II rowsort label-8980
SELECT - + 49 * - 31 * - 17 * 54 * + COUNT( * ) - + - COUNT( * ) * + + CASE - 97 WHEN + 46 - + 51 THEN 14 END + - 92 - - + 15 col0, - 30 AS col1
----
NULL
-30

skipif mysql # not compatible
query II rowsort label-8980
SELECT - + 49 * - 31 * - 17 * 54 * + COUNT ( * ) - + - COUNT ( * ) * + + CASE - 97 WHEN + 46 - + 51 THEN 14 END + - 92 - - + 15 col0, - 30 AS col1
----
NULL
-30

onlyif mysql # DIV for integer division: 
query I rowsort label-8981
SELECT ALL + 85 DIV + + 13 + - 71 * - + 86 * 64
----
390790

skipif mysql # not compatible
query I rowsort label-8981
SELECT ALL + 85 / + + 13 + - 71 * - + 86 * 64
----
390790

query I rowsort
SELECT DISTINCT - 81 * - ( + 97 ) AS col2
----
7857

query I rowsort
SELECT + - 76 * + 85 * - 1
----
6460

query I rowsort
SELECT DISTINCT + 99 * 51 + + 29 * 70 * 66
----
139029

onlyif mysql # aggregate syntax: 
query I rowsort label-8985
SELECT DISTINCT + COALESCE ( + + 77, 76, + 77, COUNT( * ) )
----
77

skipif mysql # not compatible
query I rowsort label-8985
SELECT DISTINCT + COALESCE ( + + 77, 76, + 77, COUNT ( * ) )
----
77

query II rowsort
SELECT - 95, - 98 + - + 86 AS col1
----
-95
-184

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8987
SELECT + CAST( + + CAST( - MIN( ALL 1 ) AS DECIMAL ) AS SIGNED ) col1
----
-1

skipif mysql # not compatible
query I rowsort label-8987
SELECT + CAST ( + + CAST ( - MIN ( ALL 1 ) AS REAL ) AS INTEGER ) col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8988
SELECT + 9 + + COUNT( * ) + + 54 + + 89 * - - 12 - + 44 + + 93 * + 77 * - + 74 * + 94 AS col2
----
-49810828

skipif mysql # not compatible
query I rowsort label-8988
SELECT + 9 + + COUNT ( * ) + + 54 + + 89 * - - 12 - + 44 + + 93 * + 77 * - + 74 * + 94 AS col2
----
-49810828

onlyif mysql # aggregate syntax: 
query I rowsort label-8989
SELECT ALL + COUNT( - 40 )
----
1

skipif mysql # not compatible
query I rowsort label-8989
SELECT ALL + COUNT ( - 40 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8990
SELECT + 97 * + + ( + COUNT( * ) ) AS col2
----
97

skipif mysql # not compatible
query I rowsort label-8990
SELECT + 97 * + + ( + COUNT ( * ) ) AS col2
----
97

query I rowsort
SELECT CASE 42 WHEN + 28 THEN - - 35 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8992
SELECT ALL + 68 * + COUNT( * ) * + MIN( 73 ) * - - 59 + - 59 + + 58 + 35 * SUM( DISTINCT - 10 )
----
292525

skipif mysql # not compatible
query I rowsort label-8992
SELECT ALL + 68 * + COUNT ( * ) * + MIN ( 73 ) * - - 59 + - 59 + + 58 + 35 * SUM ( DISTINCT - 10 )
----
292525

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8993
SELECT DISTINCT - COALESCE ( - + 44, - 55 + - COUNT( * ) * + - CAST( NULL AS SIGNED ) - - + 83 / + - 20 ) * - + 60 * + 20 * - + SUM( ALL CASE 96 WHEN + 4 THEN NULL WHEN 22 / + 91 + + + CAST( - 15 AS SIGNED ) + 66 / 60 THEN + 6 * + CAST( - 89 AS DECIMAL ) + 30 WHEN 0 * + 18 THEN - CAST( NULL AS DECIMAL ) END ) - + 9
----
NULL

skipif mysql # not compatible
query I rowsort label-8993
SELECT DISTINCT - COALESCE ( - + 44, - 55 + - COUNT ( * ) * + - CAST ( NULL AS INTEGER ) - - + 83 / + - 20 ) * - + 60 * + 20 * - + SUM ( ALL CASE 96 WHEN + 4 THEN NULL WHEN 22 / + 91 + + + CAST ( - 15 AS INTEGER ) + 66 / 60 THEN + 6 * + CAST ( - 89 AS REAL ) + 30 WHEN 0 * + 18 THEN - CAST ( NULL AS REAL ) END ) - + 9
----
NULL

query I rowsort
SELECT ALL ( - 59 )
----
-59

query II rowsort
SELECT - 66, CASE + 62 WHEN + 47 * - 55 THEN NULL WHEN NULLIF ( + + 26, - - 64 ) + - - 80 / AVG ( 10 ) THEN 40 WHEN + - 72 + + + 80 THEN NULL END + + 90 AS col1
----
-66
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8996
SELECT ALL SUM( 31 )
----
31

skipif mysql # not compatible
query I rowsort label-8996
SELECT ALL SUM ( 31 )
----
31

query I rowsort
SELECT DISTINCT 7 * 55 AS col0
----
385

query I rowsort
SELECT + 30 * + + 22
----
660

onlyif mysql # aggregate syntax: 
query I rowsort label-8999
SELECT ALL - COUNT( DISTINCT + - 35 ) * - COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-8999
SELECT ALL - COUNT ( DISTINCT + - 35 ) * - COUNT ( * )
----
1

query I rowsort
SELECT ALL CASE - + 88 WHEN + + 38 THEN NULL ELSE 59 END
----
59

onlyif mysql # DIV for integer division: 
query I rowsort label-9001
SELECT - 89 DIV + 26
----
-3

skipif mysql # not compatible
query I rowsort label-9001
SELECT - 89 / + 26
----
-3

query I rowsort
SELECT ALL ( + + 41 ) AS col2
----
41

query I rowsort
SELECT - 0 * + ( + 65 ) AS col0
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-9004
SELECT ALL COUNT( * ) AS col0, 33 AS col1
----
1
33

skipif mysql # not compatible
query II rowsort label-9004
SELECT ALL COUNT ( * ) AS col0, 33 AS col1
----
1
33

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9005
SELECT ALL CAST( + 16 AS SIGNED )
----
16

skipif mysql # not compatible
query I rowsort label-9005
SELECT ALL CAST ( + 16 AS INTEGER )
----
16

onlyif mysql # aggregate syntax: 
query II rowsort label-9006
SELECT - 89 AS col0, + COUNT( 73 ) * COUNT( * )
----
-89
1

skipif mysql # not compatible
query II rowsort label-9006
SELECT - 89 AS col0, + COUNT ( 73 ) * COUNT ( * )
----
-89
1

query I rowsort
SELECT ALL - 95 * - + 6
----
570

onlyif mysql # DIV for integer division: 
query I rowsort label-9008
SELECT ALL - 84 DIV - - 76
----
-1

skipif mysql # not compatible
query I rowsort label-9008
SELECT ALL - 84 / - - 76
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9009
SELECT + COUNT( * ) * + 54 AS col1
----
54

skipif mysql # not compatible
query I rowsort label-9009
SELECT + COUNT ( * ) * + 54 AS col1
----
54

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9010
SELECT ALL + CAST( NULL AS SIGNED ) + 40 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9010
SELECT ALL + CAST ( NULL AS INTEGER ) + 40 AS col2
----
NULL

query I rowsort
SELECT 83 * + + 74
----
6142

query I rowsort
SELECT - 38 + - + 24 - - + 2
----
-60

query I rowsort
SELECT ALL - 43 * - 90 AS col0
----
3870

query I rowsort
SELECT DISTINCT - 32 + + 0 - 85
----
-117

onlyif mysql # aggregate syntax: 
query I rowsort label-9015
SELECT ALL + + COUNT( * ) + + COALESCE ( - + COUNT( * ), 17 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9015
SELECT ALL + + COUNT ( * ) + + COALESCE ( - + COUNT ( * ), 17 ) AS col0
----
0

query I rowsort
SELECT DISTINCT - 52 + - ( - - 6 ) * + + ( - 48 ) * - 21
----
-6100

query I rowsort
SELECT DISTINCT + 41 + + - 80
----
-39

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9018
SELECT ALL - 50 AS col0, 24 + + CAST( NULL AS SIGNED ) / - - 46 * + - 38 + + CASE COUNT( * ) WHEN - NULLIF ( - 0, COUNT( * ) + - 41 ) + - 26 + + CASE - COUNT( * ) WHEN - 48 THEN - - COUNT( * ) * NULLIF ( - 40 * - 37 - - 26, - 64 + SUM( 89 ) * SUM( DISTINCT 26 ) ) ELSE 9 * - 2 END THEN 28 WHEN - 14 THEN NULL END AS col0
----
-50
NULL

skipif mysql # not compatible
query II rowsort label-9018
SELECT ALL - 50 AS col0, 24 + + CAST ( NULL AS INTEGER ) / - - 46 * + - 38 + + CASE COUNT ( * ) WHEN - NULLIF ( - 0, COUNT ( * ) + - 41 ) + - 26 + + CASE - COUNT ( * ) WHEN - 48 THEN - - COUNT ( * ) * NULLIF ( - 40 * - 37 - - 26, - 64 + SUM ( 89 ) * SUM ( DISTINCT 26 ) ) ELSE 9 * - 2 END THEN 28 WHEN - 14 THEN NULL END AS col0
----
-50
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9019
SELECT ALL 49 + COUNT( * )
----
50

skipif mysql # not compatible
query I rowsort label-9019
SELECT ALL 49 + COUNT ( * )
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-9020
SELECT DISTINCT 53 + + COUNT( + 91 ) * COUNT( - 85 ) * 67 * NULLIF ( + + 66, + COUNT( * ) * 72 * 0 ) AS col2
----
4475

skipif mysql # not compatible
query I rowsort label-9020
SELECT DISTINCT 53 + + COUNT ( + 91 ) * COUNT ( - 85 ) * 67 * NULLIF ( + + 66, + COUNT ( * ) * 72 * 0 ) AS col2
----
4475

query II rowsort
SELECT ALL - 11 AS col1, + 62 + + + 69 col1
----
-11
131

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9022
SELECT COUNT( * ) DIV 9 * + 10 + + ( 43 )
----
43

skipif mysql # not compatible
query I rowsort label-9022
SELECT COUNT ( * ) / 9 * + 10 + + ( 43 )
----
43

onlyif mysql # DIV for integer division: 
query I rowsort label-9023
SELECT + 32 DIV + 58
----
0

skipif mysql # not compatible
query I rowsort label-9023
SELECT + 32 / + 58
----
0

query II rowsort
SELECT - 67, + 92 AS col2
----
-67
92

query I rowsort
SELECT + ( 22 ) AS col0
----
22

onlyif mysql # DIV for integer division: 
query II rowsort label-9026
SELECT + 12 AS col0, - 18 DIV 72 * 16 AS col2
----
12
0

skipif mysql # not compatible
query II rowsort label-9026
SELECT + 12 AS col0, - 18 / 72 * 16 AS col2
----
12
0

onlyif mysql # DIV for integer division: 
query I rowsort label-9027
SELECT 7 + + - 11 * + 34 DIV 72 DIV + - 61 AS col1
----
7

skipif mysql # not compatible
query I rowsort label-9027
SELECT 7 + + - 11 * + 34 / 72 / + - 61 AS col1
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-9028
SELECT COUNT( * ) * + 74
----
74

skipif mysql # not compatible
query I rowsort label-9028
SELECT COUNT ( * ) * + 74
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-9029
SELECT ALL COUNT( * ) * - 12 AS col1
----
-12

skipif mysql # not compatible
query I rowsort label-9029
SELECT ALL COUNT ( * ) * - 12 AS col1
----
-12

query I rowsort
SELECT 14 * 51 AS col0
----
714

onlyif mysql # DIV for integer division: 
query II rowsort label-9031
SELECT DISTINCT - 14 DIV + - 6 AS col2, 31
----
2
31

skipif mysql # not compatible
query II rowsort label-9031
SELECT DISTINCT - 14 / + - 6 AS col2, 31
----
2
31

query I rowsort
SELECT - 54 * - + 63 - 5 AS col1
----
3397

onlyif mysql # aggregate syntax: 
query I rowsort label-9033
SELECT 42 - - CASE - - COUNT( ALL COALESCE ( - 35, - - 32 + - 85, 19 ) ) WHEN + - 96 THEN + + COUNT( * ) * 11 ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9033
SELECT 42 - - CASE - - COUNT ( ALL COALESCE ( - 35, - - 32 + - 85, 19 ) ) WHEN + - 96 THEN + + COUNT ( * ) * 11 ELSE NULL END AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9034
SELECT ALL 49 * COUNT( * ) col2, 68 - - CAST( CAST( + 88 AS SIGNED ) AS SIGNED ) * - 59 - + + 20
----
49
-5144

skipif mysql # not compatible
query II rowsort label-9034
SELECT ALL 49 * COUNT ( * ) col2, 68 - - CAST ( CAST ( + 88 AS INTEGER ) AS INTEGER ) * - 59 - + + 20
----
49
-5144

query II rowsort
SELECT - 53 * + 0 * + 0 * 54 + + 54 col1, 3 AS col1
----
54
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9036
SELECT ( + + 50 ) * - 64 + - ( 58 ) + - COALESCE ( CASE + - 91 WHEN 52 * - 6 * + SUM( + 49 ) * - COUNT( * ) * - - COUNT( ALL + 83 ) * + 67 * - 36 + - MIN( - 83 + CAST( NULL AS SIGNED ) ) + CASE - 9 WHEN 32 / 3 THEN 6 WHEN - CASE + 66 WHEN CASE + COUNT( * ) WHEN - 12 THEN 85 * - 28 END + 84 * - 42 THEN + 70 * ( + 84 ) WHEN NULLIF ( 53, 42 ) THEN NULL END * 71 THEN - 66 * + 16 END THEN 43 * 12 END, 16 + 32 * 72 ) + - 51
----
-5629

skipif mysql # not compatible
query I rowsort label-9036
SELECT ( + + 50 ) * - 64 + - ( 58 ) + - COALESCE ( CASE + - 91 WHEN 52 * - 6 * + SUM ( + 49 ) * - COUNT ( * ) * - - COUNT ( ALL + 83 ) * + 67 * - 36 + - MIN ( - 83 + CAST ( NULL AS INTEGER ) ) + CASE - 9 WHEN 32 / 3 THEN 6 WHEN - CASE + 66 WHEN CASE + COUNT ( * ) WHEN - 12 THEN 85 * - 28 END + 84 * - 42 THEN + 70 * ( + 84 ) WHEN NULLIF ( 53, 42 ) THEN NULL END * 71 THEN - 66 * + 16 END THEN 43 * 12 END, 16 + 32 * 72 ) + - 51
----
-5629

query I rowsort
SELECT 32 + + 97 AS col1
----
129

onlyif mysql # aggregate syntax: 
query II rowsort label-9038
SELECT 68 * - 27 * + COUNT( * ) AS col0, 18
----
-1836
18

skipif mysql # not compatible
query II rowsort label-9038
SELECT 68 * - 27 * + COUNT ( * ) AS col0, 18
----
-1836
18

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9039
SELECT COALESCE ( - CAST( NULL AS SIGNED ), ( - 42 ) * - + 87 - + 50, + - 48 * + 12 ) + - 97 * + 89 AS col1, + 39 col0
----
-5029
39

skipif mysql # not compatible
query II rowsort label-9039
SELECT COALESCE ( - CAST ( NULL AS INTEGER ), ( - 42 ) * - + 87 - + 50, + - 48 * + 12 ) + - 97 * + 89 AS col1, + 39 col0
----
-5029
39

query I rowsort
SELECT ALL 30 col0
----
30

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9041
SELECT ALL - SUM( + - 71 ) * CAST( NULL AS SIGNED ) * - 22 + COUNT( DISTINCT - - 41 ) + - + 6
----
NULL

skipif mysql # not compatible
query I rowsort label-9041
SELECT ALL - SUM ( + - 71 ) * CAST ( NULL AS INTEGER ) * - 22 + COUNT ( DISTINCT - - 41 ) + - + 6
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9042
SELECT 29 DIV + 57 DIV + + ( + MIN( 1 ) ) + 30 AS col1
----
30

skipif mysql # not compatible
query I rowsort label-9042
SELECT 29 / + 57 / + + ( + MIN ( 1 ) ) + 30 AS col1
----
30

query II rowsort
SELECT ALL 56 + + 94 AS col1, - 38
----
150
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-9044
SELECT - CASE - COUNT( * ) WHEN - 90 + 24 THEN 86 WHEN + 61 THEN - 65 - - 58 * - CASE + - 85 WHEN + MIN( ALL - - 46 ) * + + 16 * + 55 THEN - 27 + + 74 + + 68 * + 36 ELSE COUNT( * ) END WHEN - 93 / 95 THEN 29 ELSE COUNT( * ) END
----
-1

skipif mysql # not compatible
query I rowsort label-9044
SELECT - CASE - COUNT ( * ) WHEN - 90 + 24 THEN 86 WHEN + 61 THEN - 65 - - 58 * - CASE + - 85 WHEN + MIN ( ALL - - 46 ) * + + 16 * + 55 THEN - 27 + + 74 + + 68 * + 36 ELSE COUNT ( * ) END WHEN - 93 / 95 THEN 29 ELSE COUNT ( * ) END
----
-1

query I rowsort
SELECT ALL CASE + 70 WHEN 86 THEN NULL ELSE + - 92 * 60 + + - 47 END + + + 95
----
-5472

query I rowsort
SELECT - 39 + + 75 * - 32
----
-2439

onlyif mysql # aggregate syntax: 
query I rowsort label-9047
SELECT - 53 + - MAX( DISTINCT 32 ) + - 18 * - ( - 24 ) AS col0
----
-517

skipif mysql # not compatible
query I rowsort label-9047
SELECT - 53 + - MAX ( DISTINCT 32 ) + - 18 * - ( - 24 ) AS col0
----
-517

onlyif mysql # aggregate syntax: 
query I rowsort label-9048
SELECT - ( + - ( 26 ) ) * - + CASE - - 58 WHEN - 65 THEN NULL WHEN - COUNT( * ) THEN + 71 END + + 60
----
NULL

skipif mysql # not compatible
query I rowsort label-9048
SELECT - ( + - ( 26 ) ) * - + CASE - - 58 WHEN - 65 THEN NULL WHEN - COUNT ( * ) THEN + 71 END + + 60
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9049
SELECT DISTINCT + - ( + + CASE MAX( + 96 ) WHEN - 79 * - + COUNT( * ) + - 74 + + + 94 - + COUNT( * ) * + CASE + COALESCE ( 13, + 89 * + COUNT( * ) ) WHEN + 64 THEN - 67 + + 80 END THEN NULL WHEN 39 THEN NULL WHEN - 90 THEN - CASE + 83 WHEN 77 + 67 THEN NULL WHEN - 60 THEN 67 ELSE NULL END ELSE NULL END ) + + ( 95 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9049
SELECT DISTINCT + - ( + + CASE MAX ( + 96 ) WHEN - 79 * - + COUNT ( * ) + - 74 + + + 94 - + COUNT ( * ) * + CASE + COALESCE ( 13, + 89 * + COUNT ( * ) ) WHEN + 64 THEN - 67 + + 80 END THEN NULL WHEN 39 THEN NULL WHEN - 90 THEN - CASE + 83 WHEN 77 + 67 THEN NULL WHEN - 60 THEN 67 ELSE NULL END ELSE NULL END ) + + ( 95 )
----
NULL

query I rowsort
SELECT ALL - 3 + 57 + - + 92 AS col2
----
-38

query II rowsort
SELECT DISTINCT 41 + + 19 + - 83 + - COALESCE ( + 50, 28 ) * 36 * + - 31, 67 * + 79 AS col1
----
55777
5293

query I rowsort
SELECT - + 44 AS col2
----
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-9053
SELECT ALL + - 77 + + COUNT( * ) - 31 * - 58 AS col2
----
1722

skipif mysql # not compatible
query I rowsort label-9053
SELECT ALL + - 77 + + COUNT ( * ) - 31 * - 58 AS col2
----
1722

query I rowsort
SELECT + ( COALESCE ( - 68, + 74, - 18 ) ) + + 68
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9055
SELECT DISTINCT + 12 DIV + 81 * + - COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-9055
SELECT DISTINCT + 12 / + 81 * + - COUNT ( * )
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-9056
SELECT ALL + + ( - 12 ) DIV - 43 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-9056
SELECT ALL + + ( - 12 ) / - 43 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9057
SELECT - - ( COUNT( * ) ) / + + CASE - - MAX( + 87 ) WHEN + 64 * - - NULLIF ( + 54, + COALESCE ( - - ( 33 ), + 90 * - 31 ) + + COUNT( * ) ) THEN 14 END + - + CASE + 4 WHEN + 55 + - AVG ( 98 ) THEN 55 END * + 95 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9057
SELECT - - ( COUNT ( * ) ) / + + CASE - - MAX ( + 87 ) WHEN + 64 * - - NULLIF ( + 54, + COALESCE ( - - ( 33 ), + 90 * - 31 ) + + COUNT ( * ) ) THEN 14 END + - + CASE + 4 WHEN + 55 + - AVG ( 98 ) THEN 55 END * + 95 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9058
SELECT ALL - + COUNT( * ) * - - MIN( DISTINCT + 17 ) + MAX( - 95 ) AS col0
----
-112

skipif mysql # not compatible
query I rowsort label-9058
SELECT ALL - + COUNT ( * ) * - - MIN ( DISTINCT + 17 ) + MAX ( - 95 ) AS col0
----
-112

onlyif mysql # aggregate syntax: 
query I rowsort label-9059
SELECT - ( - - 26 ) * - SUM( + 41 ) + - - 20 + + 98 col1
----
1184

skipif mysql # not compatible
query I rowsort label-9059
SELECT - ( - - 26 ) * - SUM ( + 41 ) + - - 20 + + 98 col1
----
1184

onlyif mysql # aggregate syntax: 
query I rowsort label-9060
SELECT - COUNT( * ) * + + 0 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-9060
SELECT - COUNT ( * ) * + + 0 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9061
SELECT DISTINCT - + 72 * + MAX( - 41 ) - - 76 AS col1
----
3028

skipif mysql # not compatible
query I rowsort label-9061
SELECT DISTINCT - + 72 * + MAX ( - 41 ) - - 76 AS col1
----
3028

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9062
SELECT - + 11 * - - 87 * + - 65 + - + COUNT( - 35 ) * CAST( - 90 AS SIGNED )
----
62295

skipif mysql # not compatible
query I rowsort label-9062
SELECT - + 11 * - - 87 * + - 65 + - + COUNT ( - 35 ) * CAST ( - 90 AS INTEGER )
----
62295

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9063
SELECT ALL - NULLIF ( 4, + - 8 ) * - + 98 * NULLIF ( + 84, + + 6 * + - COALESCE ( - + COALESCE ( - CASE + 90 WHEN - 67 + - 80 + - - 30 - - COALESCE ( - - 78, - - COUNT( * ) ) THEN - COALESCE ( 93, 90, - 24 ) * + NULLIF ( + 72, 78 ) ELSE 16 / COUNT( * ) END, 52 ), 25 + 2, - COUNT( * ), + 3 ) * 0 ) * COALESCE ( - 66 * + CAST( NULL AS SIGNED ), + 98 + - 73, CAST( + 69 AS SIGNED ) ) + - 64 AS col0
----
823136

skipif mysql # not compatible
query I rowsort label-9063
SELECT ALL - NULLIF ( 4, + - 8 ) * - + 98 * NULLIF ( + 84, + + 6 * + - COALESCE ( - + COALESCE ( - CASE + 90 WHEN - 67 + - 80 + - - 30 - - COALESCE ( - - 78, - - COUNT ( * ) ) THEN - COALESCE ( 93, 90, - 24 ) * + NULLIF ( + 72, 78 ) ELSE 16 / COUNT ( * ) END, 52 ), 25 + 2, - COUNT ( * ), + 3 ) * 0 ) * COALESCE ( - 66 * + CAST ( NULL AS INTEGER ), + 98 + - 73, CAST ( + 69 AS INTEGER ) ) + - 64 AS col0
----
823136

query I rowsort
SELECT DISTINCT - 85 * + 22 - + 57 + - 55
----
-1982

onlyif mysql # DIV for integer division: 
query II rowsort label-9065
SELECT DISTINCT - 10 * 63 DIV - - 88 AS col1, 9 * - - 44 + 72 + 58 col0
----
-7
526

skipif mysql # not compatible
query II rowsort label-9065
SELECT DISTINCT - 10 * 63 / - - 88 AS col1, 9 * - - 44 + 72 + 58 col0
----
-7
526

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9066
SELECT - 87 * - + COUNT( * ) + + - NULLIF ( 22, CAST( + 56 AS SIGNED ) )
----
65

skipif mysql # not compatible
query I rowsort label-9066
SELECT - 87 * - + COUNT ( * ) + + - NULLIF ( 22, CAST ( + 56 AS INTEGER ) )
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-9067
SELECT 13 * + + COUNT( * )
----
13

skipif mysql # not compatible
query I rowsort label-9067
SELECT 13 * + + COUNT ( * )
----
13

query I rowsort
SELECT 49 * - + 72
----
-3528

onlyif mysql # aggregate syntax: 
query II rowsort label-9069
SELECT + 11 AS col0, + 5 * SUM( 26 )
----
11
130

skipif mysql # not compatible
query II rowsort label-9069
SELECT + 11 AS col0, + 5 * SUM ( 26 )
----
11
130

onlyif mysql # aggregate syntax: 
query I rowsort label-9070
SELECT COUNT( + 42 ) * - 43 + + 50 + - 63
----
-56

skipif mysql # not compatible
query I rowsort label-9070
SELECT COUNT ( + 42 ) * - 43 + + 50 + - 63
----
-56

onlyif mysql # DIV for integer division: 
query I rowsort label-9071
SELECT ALL + 65 DIV 44 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-9071
SELECT ALL + 65 / 44 AS col2
----
1

query I rowsort
SELECT 39 + - - 73 AS col2
----
112

onlyif mysql # aggregate syntax: 
query I rowsort label-9073
SELECT SUM( - 61 ) * + + ( - + 22 ) AS col2
----
1342

skipif mysql # not compatible
query I rowsort label-9073
SELECT SUM ( - 61 ) * + + ( - + 22 ) AS col2
----
1342

onlyif mysql # DIV for integer division: 
query I rowsort label-9074
SELECT ALL + ( - + 90 ) DIV + 76
----
-1

skipif mysql # not compatible
query I rowsort label-9074
SELECT ALL + ( - + 90 ) / + 76
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-9075
SELECT 48 AS col2, COUNT( * ) AS col0
----
48
1

skipif mysql # not compatible
query II rowsort label-9075
SELECT 48 AS col2, COUNT ( * ) AS col0
----
48
1

query I rowsort
SELECT ALL 89 + - 80
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9077
SELECT DISTINCT + 47 * - CAST( + - NULLIF ( + 31, + ( + 84 ) * - 77 ) AS SIGNED )
----
1457

skipif mysql # not compatible
query I rowsort label-9077
SELECT DISTINCT + 47 * - CAST ( + - NULLIF ( + 31, + ( + 84 ) * - 77 ) AS INTEGER )
----
1457

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9078
SELECT ALL - 93 * - - ( - 51 ) AS col0, CAST( + 96 AS SIGNED )
----
4743
96

skipif mysql # not compatible
query II rowsort label-9078
SELECT ALL - 93 * - - ( - 51 ) AS col0, CAST ( + 96 AS INTEGER )
----
4743
96

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9079
SELECT DISTINCT + 38 + + COALESCE ( 39, + COUNT( * ) ) AS col1, + 61 - - - 94 DIV 56 AS col2
----
77
60

skipif mysql # not compatible
query II rowsort label-9079
SELECT DISTINCT + 38 + + COALESCE ( 39, + COUNT ( * ) ) AS col1, + 61 - - - 94 / 56 AS col2
----
77
60

query II rowsort
SELECT - 87, 79 AS col0
----
-87
79

query I rowsort
SELECT ALL 45 + - + 40 AS col0
----
5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9082
SELECT - + 87 * + AVG ( - 45 ) + - + MIN( + 93 ) + + CAST( NULL AS SIGNED ) * 28 * + - 11 - - - COUNT( * ) + + 42 * - + 76 AS col0, 72 + + 75 AS col1
----
NULL
147

skipif mysql # not compatible
query II rowsort label-9082
SELECT - + 87 * + AVG ( - 45 ) + - + MIN ( + 93 ) + + CAST ( NULL AS INTEGER ) * 28 * + - 11 - - - COUNT ( * ) + + 42 * - + 76 AS col0, 72 + + 75 AS col1
----
NULL
147

query I rowsort
SELECT + ( + 64 ) - - 39
----
103

query II rowsort
SELECT - - 43 AS col1, - 48 * + - COALESCE ( + 48, ( - 94 ), - + 76 ) * 31
----
43
71424

query I rowsort
SELECT + - 13 - + - 36 AS col0
----
23

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9086
SELECT ALL COUNT( 35 ) - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9086
SELECT ALL COUNT ( 35 ) - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9087
SELECT + COUNT( * ) * CAST( + 31 AS SIGNED ) - + 93 col0, - CAST( NULL AS SIGNED ) * - 67 AS col2
----
-62
NULL

skipif mysql # not compatible
query II rowsort label-9087
SELECT + COUNT ( * ) * CAST ( + 31 AS INTEGER ) - + 93 col0, - CAST ( NULL AS INTEGER ) * - 67 AS col2
----
-62
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9088
SELECT + - COUNT( * ) DIV + 63
----
0

skipif mysql # not compatible
query I rowsort label-9088
SELECT + - COUNT ( * ) / + 63
----
0

query I rowsort
SELECT - - 6 * + 49 * + 19 AS col0
----
5586

query I rowsort
SELECT DISTINCT ( 21 ) AS col1
----
21

query I rowsort
SELECT - + 31 + - ( - 68 ) AS col2
----
37

query II rowsort
SELECT ALL + + 11 col1, 5 + - 21 * 12 AS col1
----
11
-247

query I rowsort
SELECT DISTINCT + - 59
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-9094
SELECT DISTINCT 65 * COUNT( * ) - + 31 + 65
----
99

skipif mysql # not compatible
query I rowsort label-9094
SELECT DISTINCT 65 * COUNT ( * ) - + 31 + 65
----
99

onlyif mysql # DIV for integer division: 
query I rowsort label-9095
SELECT ALL ( - + 87 ) DIV 56
----
-1

skipif mysql # not compatible
query I rowsort label-9095
SELECT ALL ( - + 87 ) / 56
----
-1

query I rowsort
SELECT ( - 48 ) col0
----
-48

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9097
SELECT - 8 DIV + 15 DIV - COUNT( + 65 ) + - 69 - - + 35 * + 60
----
2031

skipif mysql # not compatible
query I rowsort label-9097
SELECT - 8 / + 15 / - COUNT ( + 65 ) + - 69 - - + 35 * + 60
----
2031

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9098
SELECT - 46 * + CAST( NULL AS DECIMAL ) - - - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-9098
SELECT - 46 * + CAST ( NULL AS REAL ) - - - COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9099
SELECT - COUNT( * ) * 69 AS col0
----
-69

skipif mysql # not compatible
query I rowsort label-9099
SELECT - COUNT ( * ) * 69 AS col0
----
-69

query I rowsort
SELECT + 8 + - 91 - + 75 * - 52 + 16 AS col2
----
3833

query I rowsort
SELECT - 84 + + ( - 74 )
----
-158

onlyif mysql # aggregate syntax: 
query I rowsort label-9102
SELECT SUM( DISTINCT - - 50 ) * 97 + + + 2 AS col2
----
4852

skipif mysql # not compatible
query I rowsort label-9102
SELECT SUM ( DISTINCT - - 50 ) * 97 + + + 2 AS col2
----
4852

query I rowsort
SELECT ALL + 22 col2
----
22

onlyif mysql # DIV for integer division: 
query I rowsort label-9104
SELECT + COALESCE ( - 5, 27 * + ( + 58 ) + + 39 + - 85 - + 65 ) * - 79 - - 5 DIV + 34
----
395

skipif mysql # not compatible
query I rowsort label-9104
SELECT + COALESCE ( - 5, 27 * + ( + 58 ) + + 39 + - 85 - + 65 ) * - 79 - - 5 / + 34
----
395

onlyif mysql # aggregate syntax: 
query I rowsort label-9105
SELECT ALL + 61 * - MAX( 64 )
----
-3904

skipif mysql # not compatible
query I rowsort label-9105
SELECT ALL + 61 * - MAX ( 64 )
----
-3904

query I rowsort
SELECT NULLIF ( + ( 86 ), - 94 )
----
86

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9107
SELECT DISTINCT CASE - 33 WHEN + 65 + + COALESCE ( + + COUNT( * ), + 70 / - 4 + - 32, - - COUNT( * ) ) THEN NULL WHEN - 23 + 43 THEN + - 79 ELSE NULL END * CAST( 75 AS DECIMAL ) + + 37 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9107
SELECT DISTINCT CASE - 33 WHEN + 65 + + COALESCE ( + + COUNT ( * ), + 70 / - 4 + - 32, - - COUNT ( * ) ) THEN NULL WHEN - 23 + 43 THEN + - 79 ELSE NULL END * CAST ( 75 AS REAL ) + + 37 AS col1
----
NULL

query I rowsort
SELECT ALL 32 * + 39 + 17
----
1265

query II rowsort
SELECT - + 83 + + 44 AS col1, 12 * 17
----
-39
204

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9110
SELECT ALL CAST( NULL AS SIGNED ) * 1 + - 2
----
NULL

skipif mysql # not compatible
query I rowsort label-9110
SELECT ALL CAST ( NULL AS INTEGER ) * 1 + - 2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9111
SELECT + ( - - CAST( NULL AS SIGNED ) ), 64 - + - 17 AS col0
----
NULL
81

skipif mysql # not compatible
query II rowsort label-9111
SELECT + ( - - CAST ( NULL AS INTEGER ) ), 64 - + - 17 AS col0
----
NULL
81

onlyif mysql # aggregate syntax: 
query I rowsort label-9112
SELECT DISTINCT + + ( 54 ) * 99 + + COUNT( * ) * + + NULLIF ( + 9, COUNT( ALL + 65 ) - + - ( + 57 ) ) AS col2
----
5355

skipif mysql # not compatible
query I rowsort label-9112
SELECT DISTINCT + + ( 54 ) * 99 + + COUNT ( * ) * + + NULLIF ( + 9, COUNT ( ALL + 65 ) - + - ( + 57 ) ) AS col2
----
5355

onlyif mysql # aggregate syntax: 
query I rowsort label-9113
SELECT ALL + MAX( - - ( - 80 ) ) * + 33
----
-2640

skipif mysql # not compatible
query I rowsort label-9113
SELECT ALL + MAX ( - - ( - 80 ) ) * + 33
----
-2640

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9114
SELECT ALL - CAST( NULL AS SIGNED ) - + + 1 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9114
SELECT ALL - CAST ( NULL AS INTEGER ) - + + 1 AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9115
SELECT - 62 * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9115
SELECT - 62 * + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9116
SELECT DISTINCT + MIN( ALL + 82 ) * + COUNT( * ) DIV - COUNT( DISTINCT - 73 ) + + + 19 col1
----
-63

skipif mysql # not compatible
query I rowsort label-9116
SELECT DISTINCT + MIN ( ALL + 82 ) * + COUNT ( * ) / - COUNT ( DISTINCT - 73 ) + + + 19 col1
----
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-9117
SELECT ALL + 20 * SUM( DISTINCT - 78 ) * + + 96 * COUNT( * ) * 6 AS col2
----
-898560

skipif mysql # not compatible
query I rowsort label-9117
SELECT ALL + 20 * SUM ( DISTINCT - 78 ) * + + 96 * COUNT ( * ) * 6 AS col2
----
-898560

onlyif mysql # aggregate syntax: 
query I rowsort label-9118
SELECT DISTINCT - SUM( 38 ) col2
----
-38

skipif mysql # not compatible
query I rowsort label-9118
SELECT DISTINCT - SUM ( 38 ) col2
----
-38

query I rowsort
SELECT - + 40 + - + 91
----
-131

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9120
SELECT + + 35 - CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-9120
SELECT + + 35 - CAST ( NULL AS REAL )
----
NULL

query I rowsort
SELECT + + 76 * 65 + - 38
----
4902

onlyif mysql # aggregate syntax: 
query I rowsort label-9122
SELECT - - CASE + - AVG ( 47 ) WHEN + - 97 + + 54 THEN - 16 * + 48 ELSE - + COUNT( * ) END + - COUNT( * )
----
-2

skipif mysql # not compatible
query I rowsort label-9122
SELECT - - CASE + - AVG ( 47 ) WHEN + - 97 + + 54 THEN - 16 * + 48 ELSE - + COUNT ( * ) END + - COUNT ( * )
----
-2

query I rowsort
SELECT + 74 + - 73
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9124
SELECT + - ( - 9 ) * - 29 * 92 * 26 * + + 33 * - - CAST( NULL AS SIGNED ) * SUM( ALL - 59 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9124
SELECT + - ( - 9 ) * - 29 * 92 * 26 * + + 33 * - - CAST ( NULL AS INTEGER ) * SUM ( ALL - 59 )
----
NULL

query I rowsort
SELECT DISTINCT + 88 * 9
----
792

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9126
SELECT DISTINCT ( + - CAST( NULL AS DECIMAL ) ) * - COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9126
SELECT DISTINCT ( + - CAST ( NULL AS REAL ) ) * - COUNT ( * ) AS col1
----
NULL

query I rowsort
SELECT + 14 * + 62 AS col2
----
868

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9128
SELECT ALL CAST( NULL AS SIGNED ) * - COALESCE ( - 36, + COUNT( * ) * 99 + - 43, + - 9 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9128
SELECT ALL CAST ( NULL AS INTEGER ) * - COALESCE ( - 36, + COUNT ( * ) * 99 + - 43, + - 9 ) AS col0
----
NULL

query I rowsort
SELECT + ( 69 ) AS col1
----
69

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9130
SELECT - COUNT( * ) + + SUM( - - 66 ) AS col2, ( - 33 ) * COUNT( * ) + + COUNT( * ) * - + 14 * - 80 DIV + - COUNT( * ) + + 18
----
65
-1135

skipif mysql # not compatible
query II rowsort label-9130
SELECT - COUNT ( * ) + + SUM ( - - 66 ) AS col2, ( - 33 ) * COUNT ( * ) + + COUNT ( * ) * - + 14 * - 80 / + - COUNT ( * ) + + 18
----
65
-1135

onlyif mysql # DIV for integer division: 
query I rowsort label-9131
SELECT - 72 DIV + - 94
----
0

skipif mysql # not compatible
query I rowsort label-9131
SELECT - 72 / + - 94
----
0

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9132
SELECT ALL SUM( 99 ) / + COUNT( * ) + CAST( NULL AS DECIMAL ) - + 64 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9132
SELECT ALL SUM ( 99 ) / + COUNT ( * ) + CAST ( NULL AS REAL ) - + 64 AS col2
----
NULL

query I rowsort
SELECT + 84 * 54 * + 48 AS col1
----
217728

onlyif mysql # aggregate syntax: 
query II rowsort label-9134
SELECT ALL 90 * + - 35 * + 71 AS col0, COUNT( * ) AS col2
----
-223650
1

skipif mysql # not compatible
query II rowsort label-9134
SELECT ALL 90 * + - 35 * + 71 AS col0, COUNT ( * ) AS col2
----
-223650
1

query I rowsort
SELECT DISTINCT 13 + 4
----
17

query I rowsort
SELECT ALL 42 + - - 84
----
126

query I rowsort
SELECT ALL - 93 * - 75
----
6975

onlyif mysql # aggregate syntax: 
query I rowsort label-9138
SELECT ALL + 38 + - ( - + MAX( + - 28 ) ) AS col2
----
10

skipif mysql # not compatible
query I rowsort label-9138
SELECT ALL + 38 + - ( - + MAX ( + - 28 ) ) AS col2
----
10

query I rowsort
SELECT + 41 * - + 81 + + 71
----
-3250

onlyif mysql # aggregate syntax: 
query I rowsort label-9140
SELECT ALL 36 + - COUNT( * ) * - - MIN( 36 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9140
SELECT ALL 36 + - COUNT ( * ) * - - MIN ( 36 ) AS col0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9141
SELECT + 75 AS col2, + CAST( NULL AS SIGNED ) * + + ( 29 ) AS col1
----
75
NULL

skipif mysql # not compatible
query II rowsort label-9141
SELECT + 75 AS col2, + CAST ( NULL AS INTEGER ) * + + ( 29 ) AS col1
----
75
NULL

query I rowsort
SELECT 86 + - ( - 48 )
----
134

query I rowsort
SELECT ALL 12 + + 42
----
54

query I rowsort
SELECT 57 * + 55
----
3135

query II rowsort
SELECT ALL - 28, 44 col2
----
-28
44

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9146
SELECT CAST( + CASE - - 16 WHEN 73 * COALESCE ( + 80, + + 26 ) * - 75 THEN - + 52 ELSE NULL END AS SIGNED ) * + 95
----
NULL

skipif mysql # not compatible
query I rowsort label-9146
SELECT CAST ( + CASE - - 16 WHEN 73 * COALESCE ( + 80, + + 26 ) * - 75 THEN - + 52 ELSE NULL END AS INTEGER ) * + 95
----
NULL

query II rowsort
SELECT 24 AS col2, 79 * 86 + + 9
----
24
6803

query I rowsort
SELECT ALL + 30 * + 90 AS col2
----
2700

onlyif mysql # aggregate syntax: 
query I rowsort label-9149
SELECT DISTINCT + 49 * + COUNT( * ) col1
----
49

skipif mysql # not compatible
query I rowsort label-9149
SELECT DISTINCT + 49 * + COUNT ( * ) col1
----
49

query I rowsort
SELECT - ( + 59 ) AS col0
----
-59

query II rowsort
SELECT ALL + 27 - - 12 * 77 AS col2, CASE - - 80 WHEN + 69 / - 19 + + NULLIF ( - + 30, + ( + AVG ( 83 ) ) ) THEN NULL WHEN - + 70 THEN 94 WHEN + - 98 THEN NULL ELSE NULL END + 82 AS col1
----
951
NULL

query II rowsort
SELECT DISTINCT - 22 AS col1, - 50 AS col1
----
-22
-50

query I rowsort
SELECT DISTINCT + ( + - 56 ) AS col2
----
-56

query I rowsort
SELECT + 99 * + 64 AS col0
----
6336

onlyif mysql # aggregate syntax: 
query I rowsort label-9155
SELECT - NULLIF ( - - 70, COUNT( - 44 ) ) AS col0
----
-70

skipif mysql # not compatible
query I rowsort label-9155
SELECT - NULLIF ( - - 70, COUNT ( - 44 ) ) AS col0
----
-70

onlyif mysql # aggregate syntax: 
query II rowsort label-9156
SELECT ALL COUNT( * ) AS col2, 63 * - 46
----
1
-2898

skipif mysql # not compatible
query II rowsort label-9156
SELECT ALL COUNT ( * ) AS col2, 63 * - 46
----
1
-2898

onlyif mysql # aggregate syntax: 
query I rowsort label-9157
SELECT COUNT( * ) - 28
----
-27

skipif mysql # not compatible
query I rowsort label-9157
SELECT COUNT ( * ) - 28
----
-27

onlyif mysql # DIV for integer division: 
query II rowsort label-9158
SELECT ALL - - 91 DIV + ( + - 60 ) AS col2, 76 + - + 46 AS col1
----
-1
30

skipif mysql # not compatible
query II rowsort label-9158
SELECT ALL - - 91 / + ( + - 60 ) AS col2, 76 + - + 46 AS col1
----
-1
30

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9159
SELECT DISTINCT - COALESCE ( - 14, + COALESCE ( - 44, - 49 + + COUNT( ALL + 8 ) ) DIV 6 + 66 + + ( COUNT( * ) ) * + 61 - - + 98 * + 29 + + - 83 - 80 * 28 + + 91 ) AS col2
----
14

skipif mysql # not compatible
query I rowsort label-9159
SELECT DISTINCT - COALESCE ( - 14, + COALESCE ( - 44, - 49 + + COUNT ( ALL + 8 ) ) / 6 + 66 + + ( COUNT ( * ) ) * + 61 - - + 98 * + 29 + + - 83 - 80 * 28 + + 91 ) AS col2
----
14

query I rowsort
SELECT DISTINCT - - ( 2 ) * - + 64 + 75
----
-53

onlyif mysql # DIV for integer division: 
query I rowsort label-9161
SELECT DISTINCT - 72 DIV 57
----
-1

skipif mysql # not compatible
query I rowsort label-9161
SELECT DISTINCT - 72 / 57
----
-1

query II rowsort
SELECT ALL 93 * - 50 + - 57 col0, ( + ( - 15 ) ) AS col1
----
-4707
-15

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9163
SELECT ALL - + 99 * COUNT( * ) / - - CAST( NULL AS DECIMAL ) + - - 13 + + 83 + - 57
----
NULL

skipif mysql # not compatible
query I rowsort label-9163
SELECT ALL - + 99 * COUNT ( * ) / - - CAST ( NULL AS REAL ) + - - 13 + + 83 + - 57
----
NULL

query I rowsort
SELECT 91 * + 22
----
2002

query I rowsort
SELECT ALL + + 86 * - + 76 + - + 20 AS col2
----
-6556

onlyif mysql # aggregate syntax: 
query I rowsort label-9166
SELECT ALL - + NULLIF ( + NULLIF ( + 8, + ( + - 63 ) * + 88 * - COUNT( * ) * - 35 / 49 ), NULLIF ( - - 39, + 98 ) * - 2 ) * + 35 AS col2
----
-280

skipif mysql # not compatible
query I rowsort label-9166
SELECT ALL - + NULLIF ( + NULLIF ( + 8, + ( + - 63 ) * + 88 * - COUNT ( * ) * - 35 / 49 ), NULLIF ( - - 39, + 98 ) * - 2 ) * + 35 AS col2
----
-280

onlyif mysql # DIV for integer division: 
query I rowsort label-9167
SELECT ( - - 68 ) DIV + + 10
----
6

skipif mysql # not compatible
query I rowsort label-9167
SELECT ( - - 68 ) / + + 10
----
6

query I rowsort
SELECT 52 * + 47
----
2444

query I rowsort
SELECT 23 - + 74
----
-51

query I rowsort
SELECT ( 79 ) * + 4
----
316

onlyif mysql # DIV for integer division: 
query I rowsort label-9171
SELECT ALL + 69 + - - 45 DIV - 38 AS col2
----
68

skipif mysql # not compatible
query I rowsort label-9171
SELECT ALL + 69 + - - 45 / - 38 AS col2
----
68

query II rowsort
SELECT - 96 AS col0, + 5
----
-96
5

onlyif mysql # aggregate syntax: 
query II rowsort label-9173
SELECT ALL 79 + COUNT( * ), + 75 * - MIN( DISTINCT 16 ) AS col2
----
80
-1200

skipif mysql # not compatible
query II rowsort label-9173
SELECT ALL 79 + COUNT ( * ), + 75 * - MIN ( DISTINCT 16 ) AS col2
----
80
-1200

query II rowsort
SELECT ALL 52, - 34 AS col0
----
52
-34

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9175
SELECT DISTINCT + 24 + + COUNT( * ) + + CASE - - 93 WHEN + 42 THEN NULL WHEN 19 - - 29 THEN - 92 / - - 6 + 13 + - CAST( + 16 AS DECIMAL ) ELSE NULL END - 25 * + + CASE 36 WHEN - 8 THEN NULL WHEN - ( + 0 ) * + + 11 THEN + COUNT( * ) WHEN - 48 THEN NULL END * COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-9175
SELECT DISTINCT + 24 + + COUNT ( * ) + + CASE - - 93 WHEN + 42 THEN NULL WHEN 19 - - 29 THEN - 92 / - - 6 + 13 + - CAST ( + 16 AS REAL ) ELSE NULL END - 25 * + + CASE 36 WHEN - 8 THEN NULL WHEN - ( + 0 ) * + + 11 THEN + COUNT ( * ) WHEN - 48 THEN NULL END * COUNT ( * )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9176
SELECT ALL 72 + - CAST( + COUNT( * ) AS SIGNED )
----
71

skipif mysql # not compatible
query I rowsort label-9176
SELECT ALL 72 + - CAST ( + COUNT ( * ) AS INTEGER )
----
71

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9177
SELECT DISTINCT 90 + + CAST( + - ( - 40 ) AS SIGNED ) AS col1
----
130

skipif mysql # not compatible
query I rowsort label-9177
SELECT DISTINCT 90 + + CAST ( + - ( - 40 ) AS INTEGER ) AS col1
----
130

onlyif mysql # aggregate syntax: 
query I rowsort label-9178
SELECT DISTINCT - 52 + + COUNT( * ) AS col2
----
-51

skipif mysql # not compatible
query I rowsort label-9178
SELECT DISTINCT - 52 + + COUNT ( * ) AS col2
----
-51

query I rowsort
SELECT DISTINCT - 38 col2
----
-38

query I rowsort
SELECT ALL 25 + 60 AS col1
----
85

query I rowsort
SELECT 77 * 82 col2
----
6314

onlyif mysql # DIV for integer division: 
query I rowsort label-9182
SELECT + 62 DIV - 44 + + 35 col2
----
34

skipif mysql # not compatible
query I rowsort label-9182
SELECT + 62 / - 44 + + 35 col2
----
34

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9183
SELECT 67 + + 15 DIV COUNT( * ) AS col1
----
82

skipif mysql # not compatible
query I rowsort label-9183
SELECT 67 + + 15 / COUNT ( * ) AS col1
----
82

query II rowsort
SELECT 2 * - 68 col2, 32 AS col2
----
-136
32

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9185
SELECT + 11 * - - 90 + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9185
SELECT + 11 * - - 90 + - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT DISTINCT 35 * + 79
----
2765

onlyif mysql # aggregate syntax: 
query I rowsort label-9187
SELECT COUNT( * ) * - 91 + - - COUNT( + 77 ) + 30
----
-60

skipif mysql # not compatible
query I rowsort label-9187
SELECT COUNT ( * ) * - 91 + - - COUNT ( + 77 ) + 30
----
-60

query I rowsort
SELECT ALL 59 - + - 86
----
145

onlyif mysql # aggregate syntax: 
query I rowsort label-9189
SELECT COUNT( * ) * 47
----
47

skipif mysql # not compatible
query I rowsort label-9189
SELECT COUNT ( * ) * 47
----
47

onlyif mysql # DIV for integer division: 
query I rowsort label-9190
SELECT ALL - - 18 DIV - - 4 AS col0
----
4

skipif mysql # not compatible
query I rowsort label-9190
SELECT ALL - - 18 / - - 4 AS col0
----
4

query I rowsort
SELECT + + ( - 68 ) AS col2
----
-68

query I rowsort
SELECT NULLIF ( - 67, + - 63 + + - ( + 66 ) ) + + 84 - - 62 AS col1
----
79

query I rowsort
SELECT - 53 * - 13 col1
----
689

query I rowsort
SELECT + 97 * + ( + 43 )
----
4171

query I rowsort
SELECT 90 + - - 50
----
140

query I rowsort
SELECT - + 34 AS col1
----
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-9197
SELECT 36 + - COUNT( * )
----
35

skipif mysql # not compatible
query I rowsort label-9197
SELECT 36 + - COUNT ( * )
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-9198
SELECT MAX( - 74 ) * + 14 AS col1
----
-1036

skipif mysql # not compatible
query I rowsort label-9198
SELECT MAX ( - 74 ) * + 14 AS col1
----
-1036

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9199
SELECT ALL + 43 * NULLIF ( 53, 77 * + COUNT( * ) + COUNT( ALL 91 ) + + 6 / - 2 ) * + COUNT( * ) - - 29 - - 45 * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9199
SELECT ALL + 43 * NULLIF ( 53, 77 * + COUNT ( * ) + COUNT ( ALL 91 ) + + 6 / - 2 ) * + COUNT ( * ) - - 29 - - 45 * CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9200
SELECT ALL COUNT( * ), - 8 DIV + 89 AS col2
----
1
0

skipif mysql # not compatible
query II rowsort label-9200
SELECT ALL COUNT ( * ), - 8 / + 89 AS col2
----
1
0

query I rowsort
SELECT 5 + - 39
----
-34

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9202
SELECT - ( + CAST( NULL AS SIGNED ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9202
SELECT - ( + CAST ( NULL AS INTEGER ) ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9203
SELECT ALL - 28 + + 78 + - COUNT( * ) * + 45 + 87
----
92

skipif mysql # not compatible
query I rowsort label-9203
SELECT ALL - 28 + + 78 + - COUNT ( * ) * + 45 + 87
----
92

onlyif mysql # aggregate syntax: 
query I rowsort label-9204
SELECT 68 - + COUNT( ALL 88 ) AS col1
----
67

skipif mysql # not compatible
query I rowsort label-9204
SELECT 68 - + COUNT ( ALL 88 ) AS col1
----
67

query I rowsort
SELECT ALL + 65 + ( - + ( - 19 ) )
----
84

query I rowsort
SELECT - 61 + + ( + - ( 41 ) ) * - 98 AS col2
----
3957

onlyif mysql # aggregate syntax: 
query I rowsort label-9207
SELECT - SUM( DISTINCT 64 ) + - 49
----
-113

skipif mysql # not compatible
query I rowsort label-9207
SELECT - SUM ( DISTINCT 64 ) + - 49
----
-113

query III rowsort
SELECT DISTINCT + 93 * 70 col1, + 61 AS col2, 82 AS col0
----
6510
61
82

onlyif mysql # aggregate syntax: 
query I rowsort label-9209
SELECT ALL - 38 + - COUNT( * ) - 89 * + 61 AS col1
----
-5468

skipif mysql # not compatible
query I rowsort label-9209
SELECT ALL - 38 + - COUNT ( * ) - 89 * + 61 AS col1
----
-5468

onlyif mysql # aggregate syntax: 
query I rowsort label-9210
SELECT - 55 + COUNT( * ) + - 37
----
-91

skipif mysql # not compatible
query I rowsort label-9210
SELECT - 55 + COUNT ( * ) + - 37
----
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-9211
SELECT - COUNT( * ) * - + COUNT( * ) * - COALESCE ( - 62, + 72 ) AS col1
----
62

skipif mysql # not compatible
query I rowsort label-9211
SELECT - COUNT ( * ) * - + COUNT ( * ) * - COALESCE ( - 62, + 72 ) AS col1
----
62

query I rowsort
SELECT DISTINCT + COALESCE ( + + 90, + 83 * + + 83 )
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-9213
SELECT NULLIF ( 49, - COUNT( * ) )
----
49

skipif mysql # not compatible
query I rowsort label-9213
SELECT NULLIF ( 49, - COUNT ( * ) )
----
49

onlyif mysql # aggregate syntax: 
query I rowsort label-9214
SELECT CASE 66 WHEN + 23 + + COUNT( * ) THEN NULL WHEN 6 * + 2 THEN 6 WHEN - 34 * + 99 + + ( 12 ) THEN COUNT( * ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-9214
SELECT CASE 66 WHEN + 23 + + COUNT ( * ) THEN NULL WHEN 6 * + 2 THEN 6 WHEN - 34 * + 99 + + ( 12 ) THEN COUNT ( * ) ELSE NULL END
----
NULL

query I rowsort
SELECT + 7 * + 0 + - 45 AS col2
----
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-9216
SELECT DISTINCT 89 * COUNT( * ) * - + 82 - - 58 * - 73 + - 68 AS col2
----
-11600

skipif mysql # not compatible
query I rowsort label-9216
SELECT DISTINCT 89 * COUNT ( * ) * - + 82 - - 58 * - 73 + - 68 AS col2
----
-11600

query I rowsort
SELECT COALESCE ( - + 96, 23 ) AS col2
----
-96

query I rowsort
SELECT ALL 35 * + NULLIF ( + 17, 44 * - NULLIF ( - 49, 52 ) * - - 92 )
----
595

query I rowsort
SELECT + 41 * 72 AS col2
----
2952

onlyif mysql # DIV for integer division: 
query I rowsort label-9220
SELECT - 81 DIV + 8
----
-10

skipif mysql # not compatible
query I rowsort label-9220
SELECT - 81 / + 8
----
-10

query I rowsort
SELECT + + 59 AS col2
----
59

onlyif mysql # DIV for integer division: 
query I rowsort label-9222
SELECT + - 78 DIV + 89
----
0

skipif mysql # not compatible
query I rowsort label-9222
SELECT + - 78 / + 89
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9223
SELECT ALL - ( + COALESCE ( - + ( - 78 ), 59 + 71 ) ) * MIN( DISTINCT + 55 )
----
-4290

skipif mysql # not compatible
query I rowsort label-9223
SELECT ALL - ( + COALESCE ( - + ( - 78 ), 59 + 71 ) ) * MIN ( DISTINCT + 55 )
----
-4290

onlyif mysql # aggregate syntax: 
query II rowsort label-9224
SELECT ALL + COUNT( 33 ) AS col2, COUNT( - - 77 )
----
1
1

skipif mysql # not compatible
query II rowsort label-9224
SELECT ALL + COUNT ( 33 ) AS col2, COUNT ( - - 77 )
----
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9225
SELECT DISTINCT + SUM( DISTINCT - - 37 )
----
37

skipif mysql # not compatible
query I rowsort label-9225
SELECT DISTINCT + SUM ( DISTINCT - - 37 )
----
37

onlyif mysql # DIV for integer division: 
query I rowsort label-9226
SELECT ALL - ( + 89 ) DIV - 74
----
1

skipif mysql # not compatible
query I rowsort label-9226
SELECT ALL - ( + 89 ) / - 74
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-9227
SELECT + 84 DIV + NULLIF ( - + 10, - + 96 + 53 )
----
-8

skipif mysql # not compatible
query I rowsort label-9227
SELECT + 84 / + NULLIF ( - + 10, - + 96 + 53 )
----
-8

onlyif mysql # DIV for integer division: 
query II rowsort label-9228
SELECT DISTINCT - 90 DIV + - 84 AS col1, + NULLIF ( 69, - 25 ) AS col0
----
1
69

skipif mysql # not compatible
query II rowsort label-9228
SELECT DISTINCT - 90 / + - 84 AS col1, + NULLIF ( 69, - 25 ) AS col0
----
1
69

onlyif mysql # aggregate syntax: 
query II rowsort label-9229
SELECT ALL 37 + + 11 AS col2, - COUNT( * ) AS col2
----
48
-1

skipif mysql # not compatible
query II rowsort label-9229
SELECT ALL 37 + + 11 AS col2, - COUNT ( * ) AS col2
----
48
-1

query I rowsort
SELECT - - 51 AS col2
----
51

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9231
SELECT - - CAST( NULL AS SIGNED ) + - - COUNT( * ) + + SUM( 2 ) * + 38 + + 88 + NULLIF ( COUNT( * ), - 58 * + + COUNT( * ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-9231
SELECT - - CAST ( NULL AS INTEGER ) + - - COUNT ( * ) + + SUM ( 2 ) * + 38 + + 88 + NULLIF ( COUNT ( * ), - 58 * + + COUNT ( * ) )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9232
SELECT ALL - 33 + - CAST( 86 AS SIGNED ) * + - COUNT( * ) - + - 64
----
117

skipif mysql # not compatible
query I rowsort label-9232
SELECT ALL - 33 + - CAST ( 86 AS INTEGER ) * + - COUNT ( * ) - + - 64
----
117

query I rowsort
SELECT - ( - - 40 ) AS col1
----
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-9234
SELECT DISTINCT COUNT( * ) + + COUNT( * ) AS col1
----
2

skipif mysql # not compatible
query I rowsort label-9234
SELECT DISTINCT COUNT ( * ) + + COUNT ( * ) AS col1
----
2

query I rowsort
SELECT ALL - 6 + - + 8
----
-14

query I rowsort
SELECT ALL 61 + + 46 AS col0
----
107

onlyif mysql # aggregate syntax: 
query I rowsort label-9237
SELECT ALL + 7 - + - 75 * - 4 * - COUNT( * ) * + + 50 AS col1
----
15007

skipif mysql # not compatible
query I rowsort label-9237
SELECT ALL + 7 - + - 75 * - 4 * - COUNT ( * ) * + + 50 AS col1
----
15007

onlyif mysql # aggregate syntax: 
query I rowsort label-9238
SELECT + COUNT( * ) - - COUNT( * ) * - - 3
----
4

skipif mysql # not compatible
query I rowsort label-9238
SELECT + COUNT ( * ) - - COUNT ( * ) * - - 3
----
4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9239
SELECT - NULLIF ( - 33, 47 ) * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9239
SELECT - NULLIF ( - 33, 47 ) * CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9240
SELECT ALL NULLIF ( + - COUNT( * ), + 4 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-9240
SELECT ALL NULLIF ( + - COUNT ( * ), + 4 ) AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9241
SELECT ALL NULLIF ( + - 72, + 86 / 59 + + - 50 * + - COUNT( * ) + + 31 ) AS col2
----
-72

skipif mysql # not compatible
query I rowsort label-9241
SELECT ALL NULLIF ( + - 72, + 86 / 59 + + - 50 * + - COUNT ( * ) + + 31 ) AS col2
----
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-9242
SELECT - ( + + 72 ) * - - MAX( DISTINCT 14 )
----
-1008

skipif mysql # not compatible
query I rowsort label-9242
SELECT - ( + + 72 ) * - - MAX ( DISTINCT 14 )
----
-1008

onlyif mysql # aggregate syntax: 
query I rowsort label-9243
SELECT DISTINCT + 62 * COUNT( * )
----
62

skipif mysql # not compatible
query I rowsort label-9243
SELECT DISTINCT + 62 * COUNT ( * )
----
62

query I rowsort
SELECT ALL + 44 * - 17 col0
----
-748

onlyif mysql # aggregate syntax: 
query I rowsort label-9245
SELECT - 41 - + MIN( + - 3 ) AS col2
----
-38

skipif mysql # not compatible
query I rowsort label-9245
SELECT - 41 - + MIN ( + - 3 ) AS col2
----
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-9246
SELECT ALL + 72 * + SUM( + + 31 )
----
2232

skipif mysql # not compatible
query I rowsort label-9246
SELECT ALL + 72 * + SUM ( + + 31 )
----
2232

query I rowsort
SELECT 81 * - 3 + - 94 AS col2
----
-337

onlyif mysql # aggregate syntax: 
query I rowsort label-9248
SELECT - COUNT( * ) * - - 93
----
-93

skipif mysql # not compatible
query I rowsort label-9248
SELECT - COUNT ( * ) * - - 93
----
-93

onlyif mysql # aggregate syntax: 
query II rowsort label-9249
SELECT - 56 + - MAX( - 85 ) AS col2, 70
----
29
70

skipif mysql # not compatible
query II rowsort label-9249
SELECT - 56 + - MAX ( - 85 ) AS col2, 70
----
29
70

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-9250
SELECT - + 68 / + + 80 + CAST( NULL AS DECIMAL ) AS col2, + 68
----
NULL
68

skipif mysql # not compatible
query II rowsort label-9250
SELECT - + 68 / + + 80 + CAST ( NULL AS REAL ) AS col2, + 68
----
NULL
68

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9251
SELECT ALL + - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9251
SELECT ALL + - CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT - - 98 + - 99 AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9253
SELECT DISTINCT + - MAX( - 6 ) AS col1
----
6

skipif mysql # not compatible
query I rowsort label-9253
SELECT DISTINCT + - MAX ( - 6 ) AS col1
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-9254
SELECT DISTINCT + - CASE - 45 WHEN - AVG ( + + 38 ) + 80 THEN NULL ELSE + + 89 END * - + SUM( 26 ) AS col0
----
2314

skipif mysql # not compatible
query I rowsort label-9254
SELECT DISTINCT + - CASE - 45 WHEN - AVG ( + + 38 ) + 80 THEN NULL ELSE + + 89 END * - + SUM ( 26 ) AS col0
----
2314

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9255
SELECT ALL + CAST( - + 98 AS SIGNED )
----
-98

skipif mysql # not compatible
query I rowsort label-9255
SELECT ALL + CAST ( - + 98 AS INTEGER )
----
-98

query I rowsort
SELECT + 42 + + 6 AS col0
----
48

query I rowsort
SELECT + 9 * 24
----
216

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9258
SELECT - - CASE 84 WHEN + + 41 THEN 80 + + 8 * + + 13 * - + COALESCE ( - CASE SUM( ALL - ( + 1 ) ) WHEN - - COUNT( * ) + - 70 THEN + + COUNT( * ) + + 49 * + 5 + - 43 WHEN - COUNT( * ) + 17 THEN - 32 WHEN + - 19 THEN 0 + - - NULLIF ( - 88, 31 - 38 ) END, 5, - ( CAST( + 77 AS SIGNED ) ) ) + - ( ( - 28 ) ) * + 44 END
----
NULL

skipif mysql # not compatible
query I rowsort label-9258
SELECT - - CASE 84 WHEN + + 41 THEN 80 + + 8 * + + 13 * - + COALESCE ( - CASE SUM ( ALL - ( + 1 ) ) WHEN - - COUNT ( * ) + - 70 THEN + + COUNT ( * ) + + 49 * + 5 + - 43 WHEN - COUNT ( * ) + 17 THEN - 32 WHEN + - 19 THEN 0 + - - NULLIF ( - 88, 31 - 38 ) END, 5, - ( CAST ( + 77 AS INTEGER ) ) ) + - ( ( - 28 ) ) * + 44 END
----
NULL

query I rowsort
SELECT ALL + 11 * COALESCE ( 94, + 6, 88 * - 67 ) AS col1
----
1034

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9260
SELECT ALL + CAST( NULL AS SIGNED ) + - 8 + + CASE - + 58 WHEN - + 53 * COALESCE ( COUNT( * ), - ( + 34 ) ) THEN NULL WHEN - COALESCE ( + CAST( 22 AS SIGNED ), + - 5 + - CASE - 26 WHEN - 62 THEN NULL WHEN - + MAX( 30 ) + - 71 * + + 8 * - - 47 * - + 60 * - 70 THEN + 25 END * 45 ) THEN ( MAX( DISTINCT 99 ) ) END + - COALESCE ( COUNT( * ) + + 50, 92 ) * + 68 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9260
SELECT ALL + CAST ( NULL AS INTEGER ) + - 8 + + CASE - + 58 WHEN - + 53 * COALESCE ( COUNT ( * ), - ( + 34 ) ) THEN NULL WHEN - COALESCE ( + CAST ( 22 AS INTEGER ), + - 5 + - CASE - 26 WHEN - 62 THEN NULL WHEN - + MAX ( 30 ) + - 71 * + + 8 * - - 47 * - + 60 * - 70 THEN + 25 END * 45 ) THEN ( MAX ( DISTINCT 99 ) ) END + - COALESCE ( COUNT ( * ) + + 50, 92 ) * + 68 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9261
SELECT ALL - SUM( - 34 )
----
34

skipif mysql # not compatible
query I rowsort label-9261
SELECT ALL - SUM ( - 34 )
----
34

query I rowsort
SELECT ALL 73 + + - ( - 80 )
----
153

query I rowsort
SELECT DISTINCT 39 col1
----
39

onlyif mysql # aggregate syntax: 
query II rowsort label-9264
SELECT ( + + COUNT( ALL 0 ) ) - - - 48 AS col1, COUNT( * ) + 82 + - 65
----
-47
18

skipif mysql # not compatible
query II rowsort label-9264
SELECT ( + + COUNT ( ALL 0 ) ) - - - 48 AS col1, COUNT ( * ) + 82 + - 65
----
-47
18

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9265
SELECT DISTINCT SUM( DISTINCT 87 ) DIV + - 36 + + + NULLIF ( + - 65, + 38 )
----
-67

skipif mysql # not compatible
query I rowsort label-9265
SELECT DISTINCT SUM ( DISTINCT 87 ) / + - 36 + + + NULLIF ( + - 65, + 38 )
----
-67

query II rowsort
SELECT 51 * 70 AS col1, ( + 26 )
----
3570
26

query II rowsort
SELECT 57 + + - 54, 93 * + 12 AS col2
----
3
1116

query I rowsort
SELECT - 55 col1
----
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-9269
SELECT COUNT( DISTINCT - NULLIF ( - 94, - 16 ) ) + + 16
----
17

skipif mysql # not compatible
query I rowsort label-9269
SELECT COUNT ( DISTINCT - NULLIF ( - 94, - 16 ) ) + + 16
----
17

query I rowsort
SELECT 2 - - 22
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-9271
SELECT 76 + + - COUNT( ALL + - 58 ) AS col0
----
75

skipif mysql # not compatible
query I rowsort label-9271
SELECT 76 + + - COUNT ( ALL + - 58 ) AS col0
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-9272
SELECT ( 14 ) + - 88 + + COUNT( * ) AS col1
----
-73

skipif mysql # not compatible
query I rowsort label-9272
SELECT ( 14 ) + - 88 + + COUNT ( * ) AS col1
----
-73

query I rowsort
SELECT DISTINCT 71 * 6
----
426

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9274
SELECT ALL COUNT( * ) * - 18 * + - 6 * - CAST( NULL AS SIGNED ) * - 84 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9274
SELECT ALL COUNT ( * ) * - 18 * + - 6 * - CAST ( NULL AS INTEGER ) * - 84 AS col1
----
NULL

query I rowsort
SELECT 11 + 60
----
71

query I rowsort
SELECT + 32 col1
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-9277
SELECT + 24 * 46 + - - COUNT( * )
----
1105

skipif mysql # not compatible
query I rowsort label-9277
SELECT + 24 * 46 + - - COUNT ( * )
----
1105

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9278
SELECT + - CASE - CAST( NULL AS DECIMAL ) WHEN AVG ( DISTINCT + + 56 ) THEN - + 41 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-9278
SELECT + - CASE - CAST ( NULL AS REAL ) WHEN AVG ( DISTINCT + + 56 ) THEN - + 41 ELSE NULL END
----
NULL

query I rowsort
SELECT DISTINCT 42 + 61 + - 88 + + 37 AS col2
----
52

query I rowsort
SELECT ALL 46 + + 80 + + 48 AS col0
----
174

query I rowsort
SELECT + ( 46 ) * - + 3
----
-138

onlyif mysql # aggregate syntax: 
query I rowsort label-9282
SELECT ALL + 92 + - + COUNT( * ) + + ( + 68 ) + 45 AS col1
----
204

skipif mysql # not compatible
query I rowsort label-9282
SELECT ALL + 92 + - + COUNT ( * ) + + ( + 68 ) + 45 AS col1
----
204

query I rowsort
SELECT DISTINCT - - 6 + + 50 + + + 78 AS col1
----
134

onlyif mysql # aggregate syntax: 
query I rowsort label-9284
SELECT DISTINCT - - 90 * + - COUNT( * )
----
-90

skipif mysql # not compatible
query I rowsort label-9284
SELECT DISTINCT - - 90 * + - COUNT ( * )
----
-90

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9285
SELECT - ( + + COUNT( * ) ) DIV + + NULLIF ( - 78, 6 )
----
0

skipif mysql # not compatible
query I rowsort label-9285
SELECT - ( + + COUNT ( * ) ) / + + NULLIF ( - 78, 6 )
----
0

query I rowsort
SELECT - 26 * 13 + - 28 AS col1
----
-366

onlyif mysql # aggregate syntax: 
query I rowsort label-9287
SELECT + COUNT( * ) * 36 * 66 + 64 AS col1
----
2440

skipif mysql # not compatible
query I rowsort label-9287
SELECT + COUNT ( * ) * 36 * 66 + 64 AS col1
----
2440

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9288
SELECT ALL + - 77 + + + 91 + - + 50 * + CAST( NULL AS SIGNED ) / + CAST( NULL AS SIGNED ) * + - 83
----
NULL

skipif mysql # not compatible
query I rowsort label-9288
SELECT ALL + - 77 + + + 91 + - + 50 * + CAST ( NULL AS INTEGER ) / + CAST ( NULL AS INTEGER ) * + - 83
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9289
SELECT + CAST( ( + - 88 ) AS SIGNED )
----
-88

skipif mysql # not compatible
query I rowsort label-9289
SELECT + CAST ( ( + - 88 ) AS INTEGER )
----
-88

query I rowsort
SELECT 75 + - 39
----
36

onlyif mysql # DIV for integer division: 
query II rowsort label-9291
SELECT + 93 DIV + 38, + 22 * + + 78 * + 41 AS col0
----
2
70356

skipif mysql # not compatible
query II rowsort label-9291
SELECT + 93 / + 38, + 22 * + + 78 * + 41 AS col0
----
2
70356

query II rowsort
SELECT + 6 * + + 13 AS col2, + 38 AS col2
----
78
38

onlyif mysql # aggregate syntax: 
query I rowsort label-9293
SELECT ALL + COUNT( * ) + - - MIN( + 44 ) + - - ( 61 )
----
106

skipif mysql # not compatible
query I rowsort label-9293
SELECT ALL + COUNT ( * ) + - - MIN ( + 44 ) + - - ( 61 )
----
106

onlyif mysql # aggregate syntax: 
query II rowsort label-9294
SELECT ALL COUNT( ALL - ( - - 20 ) ) - 82 AS col0, + 24
----
-81
24

skipif mysql # not compatible
query II rowsort label-9294
SELECT ALL COUNT ( ALL - ( - - 20 ) ) - 82 AS col0, + 24
----
-81
24

onlyif mysql # aggregate syntax: 
query I rowsort label-9295
SELECT ALL - - COUNT( DISTINCT + 28 )
----
1

skipif mysql # not compatible
query I rowsort label-9295
SELECT ALL - - COUNT ( DISTINCT + 28 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9296
SELECT ( + COUNT( * ) ) + 74
----
75

skipif mysql # not compatible
query I rowsort label-9296
SELECT ( + COUNT ( * ) ) + 74
----
75

query I rowsort
SELECT ALL + 89 - - + 79
----
168

onlyif mysql # aggregate syntax: 
query I rowsort label-9298
SELECT ( + - 28 ) * - - COUNT( * )
----
-28

skipif mysql # not compatible
query I rowsort label-9298
SELECT ( + - 28 ) * - - COUNT ( * )
----
-28

onlyif mysql # DIV for integer division: 
query II rowsort label-9299
SELECT 36, - 70 + 80 + - 76 DIV 39 AS col1
----
36
9

skipif mysql # not compatible
query II rowsort label-9299
SELECT 36, - 70 + 80 + - 76 / 39 AS col1
----
36
9

onlyif mysql # aggregate syntax: 
query I rowsort label-9300
SELECT 7 * + NULLIF ( 18, + + 32 * COUNT( * ) / + 60 + + COUNT( * ) ) + 55 * COUNT( + 77 ) + - + 83
----
98

skipif mysql # not compatible
query I rowsort label-9300
SELECT 7 * + NULLIF ( 18, + + 32 * COUNT ( * ) / + 60 + + COUNT ( * ) ) + 55 * COUNT ( + 77 ) + - + 83
----
98

query I rowsort
SELECT ALL - 89 - - + 47
----
-42

onlyif mysql # aggregate syntax: 
query II rowsort label-9302
SELECT 86 * 28 * - 8, COALESCE ( - + 77, + COUNT( * ) ) * - - 58 AS col1
----
-19264
-4466

skipif mysql # not compatible
query II rowsort label-9302
SELECT 86 * 28 * - 8, COALESCE ( - + 77, + COUNT ( * ) ) * - - 58 AS col1
----
-19264
-4466

onlyif mysql # aggregate syntax: 
query II rowsort label-9303
SELECT - 13 AS col1, 15 + + COUNT( + COALESCE ( + ( 20 ), + + 31 * - 24, 39 ) ) + + 67 - - COALESCE ( - 77, 8 * 3, + 23 ) * COALESCE ( + COUNT( * ), + - SUM( DISTINCT + 9 ) ) AS col1
----
-13
6

skipif mysql # not compatible
query II rowsort label-9303
SELECT - 13 AS col1, 15 + + COUNT ( + COALESCE ( + ( 20 ), + + 31 * - 24, 39 ) ) + + 67 - - COALESCE ( - 77, 8 * 3, + 23 ) * COALESCE ( + COUNT ( * ), + - SUM ( DISTINCT + 9 ) ) AS col1
----
-13
6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9304
SELECT DISTINCT - 71 * - + 94 * + CASE 44 WHEN + 64 THEN NULL WHEN + CAST( - + 61 AS SIGNED ) THEN NULL ELSE + CAST( NULL AS SIGNED ) + + - 30 END * - + 73 * - 10
----
NULL

skipif mysql # not compatible
query I rowsort label-9304
SELECT DISTINCT - 71 * - + 94 * + CASE 44 WHEN + 64 THEN NULL WHEN + CAST ( - + 61 AS INTEGER ) THEN NULL ELSE + CAST ( NULL AS INTEGER ) + + - 30 END * - + 73 * - 10
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9305
SELECT DISTINCT 95 DIV 85 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-9305
SELECT DISTINCT 95 / 85 AS col0
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-9306
SELECT 11 * 38 DIV 85 DIV - 68 * 70 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-9306
SELECT 11 * 38 / 85 / - 68 * 70 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9307
SELECT - MAX( + 19 )
----
-19

skipif mysql # not compatible
query I rowsort label-9307
SELECT - MAX ( + 19 )
----
-19

onlyif mysql # DIV for integer division: 
query I rowsort label-9308
SELECT 30 DIV + - 46 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9308
SELECT 30 / + - 46 AS col0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-9309
SELECT 1 - - - 58 DIV + 22 + + 71
----
70

skipif mysql # not compatible
query I rowsort label-9309
SELECT 1 - - - 58 / + 22 + + 71
----
70

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9310
SELECT 11 * + CAST( NULL AS DECIMAL ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9310
SELECT 11 * + CAST ( NULL AS REAL ) col2
----
NULL

query I rowsort
SELECT ALL COALESCE ( + 92, + + 98, - + 1 ) + + 5 * + 73 AS col0
----
457

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9312
SELECT DISTINCT + COALESCE ( - CASE + CAST( NULL AS SIGNED ) WHEN + 25 THEN + + 80 END, COUNT( * ) * COUNT( * ), - - SUM( ALL + + 38 ) + - ( - - COUNT( * ) ) ) * - 58 + - 65, - ( - CASE ( - 80 ) WHEN + - 4 THEN - 16 END ) col1
----
-123
NULL

skipif mysql # not compatible
query II rowsort label-9312
SELECT DISTINCT + COALESCE ( - CASE + CAST ( NULL AS INTEGER ) WHEN + 25 THEN + + 80 END, COUNT ( * ) * COUNT ( * ), - - SUM ( ALL + + 38 ) + - ( - - COUNT ( * ) ) ) * - 58 + - 65, - ( - CASE ( - 80 ) WHEN + - 4 THEN - 16 END ) col1
----
-123
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9313
SELECT + CAST( NULL AS SIGNED ) / - 10 - - 54
----
NULL

skipif mysql # not compatible
query I rowsort label-9313
SELECT + CAST ( NULL AS INTEGER ) / - 10 - - 54
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9314
SELECT ALL - - 14 * - - COUNT( * ) + 98 AS col1
----
112

skipif mysql # not compatible
query I rowsort label-9314
SELECT ALL - - 14 * - - COUNT ( * ) + 98 AS col1
----
112

onlyif mysql # aggregate syntax: 
query I rowsort label-9315
SELECT - 42 / - AVG ( DISTINCT + 41 ) + CASE - + COUNT( * ) WHEN 51 + 48 THEN + 74 END
----
NULL

skipif mysql # not compatible
query I rowsort label-9315
SELECT - 42 / - AVG ( DISTINCT + 41 ) + CASE - + COUNT ( * ) WHEN 51 + 48 THEN + 74 END
----
NULL

query II rowsort
SELECT + 78 AS col0, - 37
----
78
-37

onlyif mysql # DIV for integer division: 
query I rowsort label-9317
SELECT 55 DIV 87 DIV - 31 * 15 + - - 16 + 58 AS col2
----
74

skipif mysql # not compatible
query I rowsort label-9317
SELECT 55 / 87 / - 31 * 15 + - - 16 + 58 AS col2
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-9318
SELECT + CASE - + 5 WHEN + COUNT( * ) THEN NULL WHEN - - 0 THEN NULL WHEN + COUNT( * ) * - - ( + 6 ) + - 26 * + 37 + + COUNT( * ) THEN NULL WHEN + - 99 THEN NULL ELSE ( - 97 ) END + 65
----
-32

skipif mysql # not compatible
query I rowsort label-9318
SELECT + CASE - + 5 WHEN + COUNT ( * ) THEN NULL WHEN - - 0 THEN NULL WHEN + COUNT ( * ) * - - ( + 6 ) + - 26 * + 37 + + COUNT ( * ) THEN NULL WHEN + - 99 THEN NULL ELSE ( - 97 ) END + 65
----
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-9319
SELECT ALL + - 64 * - CASE + - 75 WHEN - NULLIF ( + + 4, - 10 * - + 58 + 47 ) THEN - COUNT( * ) ELSE NULL END - - 28 + + 5 + ( + + 6 ) * 47 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9319
SELECT ALL + - 64 * - CASE + - 75 WHEN - NULLIF ( + + 4, - 10 * - + 58 + 47 ) THEN - COUNT ( * ) ELSE NULL END - - 28 + + 5 + ( + + 6 ) * 47 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9320
SELECT DISTINCT + + MIN( DISTINCT 36 )
----
36

skipif mysql # not compatible
query I rowsort label-9320
SELECT DISTINCT + + MIN ( DISTINCT 36 )
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-9321
SELECT DISTINCT - - COUNT( * ) * - 2 + 35 * + COUNT( * ) - + 77 + + + 57 AS col1
----
13

skipif mysql # not compatible
query I rowsort label-9321
SELECT DISTINCT - - COUNT ( * ) * - 2 + 35 * + COUNT ( * ) - + 77 + + + 57 AS col1
----
13

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9322
SELECT + COALESCE ( + - CASE + MIN( ALL + CASE - 45 WHEN + 75 THEN - 7 END ) WHEN + + 91 + 44 THEN + - 97 - + - 63 END, - ( - CAST( - COUNT( * ) AS SIGNED ) ) * - 75 + + 38 * 58 )
----
2279

skipif mysql # not compatible
query I rowsort label-9322
SELECT + COALESCE ( + - CASE + MIN ( ALL + CASE - 45 WHEN + 75 THEN - 7 END ) WHEN + + 91 + 44 THEN + - 97 - + - 63 END, - ( - CAST ( - COUNT ( * ) AS INTEGER ) ) * - 75 + + 38 * 58 )
----
2279

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9323
SELECT DISTINCT 87 DIV + COUNT( * ) + 44 AS col0
----
131

skipif mysql # not compatible
query I rowsort label-9323
SELECT DISTINCT 87 / + COUNT ( * ) + 44 AS col0
----
131

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9324
SELECT - + 39 + - - 67 - - 44 - 22 * - 34 * - 53 * + - CAST( + - COUNT( * ) AS SIGNED ) AS col2
----
-39572

skipif mysql # not compatible
query I rowsort label-9324
SELECT - + 39 + - - 67 - - 44 - 22 * - 34 * - 53 * + - CAST ( + - COUNT ( * ) AS INTEGER ) AS col2
----
-39572

query I rowsort
SELECT + + 28 * 8
----
224

query I rowsort
SELECT DISTINCT - 17 * 44 AS col2
----
-748

onlyif mysql # aggregate syntax: 
query I rowsort label-9327
SELECT ALL 86 * COUNT( * ) * + - 13 - - - 10 + + 62 AS col2
----
-1066

skipif mysql # not compatible
query I rowsort label-9327
SELECT ALL 86 * COUNT ( * ) * + - 13 - - - 10 + + 62 AS col2
----
-1066

query I rowsort
SELECT + CASE - + 91 WHEN 31 * - 20 THEN + ( + 76 ) / - + 69 WHEN 0 THEN NULL ELSE NULL END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9329
SELECT - COUNT( - + 64 ) * - + 96 AS col2
----
96

skipif mysql # not compatible
query I rowsort label-9329
SELECT - COUNT ( - + 64 ) * - + 96 AS col2
----
96

onlyif mysql # aggregate syntax: 
query II rowsort label-9330
SELECT ALL + COUNT( * ) AS col0, 9
----
1
9

skipif mysql # not compatible
query II rowsort label-9330
SELECT ALL + COUNT ( * ) AS col0, 9
----
1
9

onlyif mysql # DIV for integer division: 
query I rowsort label-9331
SELECT ( - 28 ) * - + 59 * - + 61 * - + 21 + - 13 DIV 64 + - 81 + - 36 DIV 80
----
2116131

skipif mysql # not compatible
query I rowsort label-9331
SELECT ( - 28 ) * - + 59 * - + 61 * - + 21 + - 13 / 64 + - 81 + - 36 / 80
----
2116131

onlyif mysql # aggregate syntax: 
query I rowsort label-9332
SELECT ALL NULLIF ( + 43, - 63 * + 34 - + 44 + MAX( ALL + 49 ) ) AS col2
----
43

skipif mysql # not compatible
query I rowsort label-9332
SELECT ALL NULLIF ( + 43, - 63 * + 34 - + 44 + MAX ( ALL + 49 ) ) AS col2
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-9333
SELECT DISTINCT - 3 * - SUM( DISTINCT 5 )
----
15

skipif mysql # not compatible
query I rowsort label-9333
SELECT DISTINCT - 3 * - SUM ( DISTINCT 5 )
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-9334
SELECT - CASE WHEN MAX( DISTINCT + 7 ) BETWEEN + + 11 AND + - 82 + + + 22 + - 40 THEN - + 92 ELSE NULL END - - 78 * + 84 * + 43 * - 49 * + ( - 37 ) + - - 41 * 70 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9334
SELECT - CASE WHEN MAX ( DISTINCT + 7 ) BETWEEN + + 11 AND + - 82 + + + 22 + - 40 THEN - + 92 ELSE NULL END - - 78 * + 84 * + 43 * - 49 * + ( - 37 ) + - - 41 * 70 AS col1
----
NULL

query I rowsort
SELECT - 25 * + 70 * - - 77 * - 65 * 82
----
718217500

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9336
SELECT ALL COUNT( * ), ( - CASE + 48 WHEN - 2 THEN - + 3 - - 42 + - CAST( NULL AS SIGNED ) END ) AS col0
----
1
NULL

skipif mysql # not compatible
query II rowsort label-9336
SELECT ALL COUNT ( * ), ( - CASE + 48 WHEN - 2 THEN - + 3 - - 42 + - CAST ( NULL AS INTEGER ) END ) AS col0
----
1
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9337
SELECT 8 AS col2, COUNT( * ) * 79 * CASE - 83 WHEN + - ( 40 ) + + ( + NULLIF ( 44, + 87 * 1 ) ) THEN + - 58 ELSE NULL END * - 23 + + 42 + ( - 52 ) * - 68 + - 89 + - 90 + + + 89
----
8
NULL

skipif mysql # not compatible
query II rowsort label-9337
SELECT 8 AS col2, COUNT ( * ) * 79 * CASE - 83 WHEN + - ( 40 ) + + ( + NULLIF ( 44, + 87 * 1 ) ) THEN + - 58 ELSE NULL END * - 23 + + 42 + ( - 52 ) * - 68 + - 89 + - 90 + + + 89
----
8
NULL

query I rowsort
SELECT - 89 * + 53 AS col2
----
-4717

query I rowsort
SELECT - 6 + - 78
----
-84

query I rowsort
SELECT DISTINCT - 40 * - 9 AS col2
----
360

query I rowsort
SELECT - 82 + - 31 AS col2
----
-113

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9342
SELECT ALL + COUNT( * ) + + 32 * COALESCE ( CAST( NULL AS SIGNED ), + 90 )
----
2881

skipif mysql # not compatible
query I rowsort label-9342
SELECT ALL + COUNT ( * ) + + 32 * COALESCE ( CAST ( NULL AS INTEGER ), + 90 )
----
2881

query I rowsort
SELECT ALL - 25 + - 28
----
-53

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9344
SELECT + - COUNT( * ) + - MIN( DISTINCT + CASE - 67 WHEN + - 29 THEN NULL ELSE + - CAST( + 43 AS SIGNED ) END ) * + - 62 AS col1
----
-2667

skipif mysql # not compatible
query I rowsort label-9344
SELECT + - COUNT ( * ) + - MIN ( DISTINCT + CASE - 67 WHEN + - 29 THEN NULL ELSE + - CAST ( + 43 AS INTEGER ) END ) * + - 62 AS col1
----
-2667

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9345
SELECT DISTINCT + - NULLIF ( - 99, - 55 ) + + COALESCE ( + - ( + + ( + 19 ) ), + + CAST( NULL AS SIGNED ) + + - 15 ) AS col2
----
80

skipif mysql # not compatible
query I rowsort label-9345
SELECT DISTINCT + - NULLIF ( - 99, - 55 ) + + COALESCE ( + - ( + + ( + 19 ) ), + + CAST ( NULL AS INTEGER ) + + - 15 ) AS col2
----
80

query II rowsort
SELECT - 84 AS col1, + 9
----
-84
9

onlyif mysql # aggregate syntax: 
query I rowsort label-9347
SELECT ALL 65 + + 85 + + 94 + + 76 + - COUNT( 1 ) * 22 AS col0
----
298

skipif mysql # not compatible
query I rowsort label-9347
SELECT ALL 65 + + 85 + + 94 + + 76 + - COUNT ( 1 ) * 22 AS col0
----
298

onlyif mysql # aggregate syntax: 
query II rowsort label-9348
SELECT - COUNT( * ) AS col2, + 65
----
-1
65

skipif mysql # not compatible
query II rowsort label-9348
SELECT - COUNT ( * ) AS col2, + 65
----
-1
65

query I rowsort
SELECT + ( + + 52 ) + - ( 84 )
----
-32

query I rowsort
SELECT - ( 18 ) * - 80 AS col1
----
1440

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9351
SELECT ALL - ( + 20 ) DIV - + COUNT( * ) + - - 30, - 11 col1
----
50
-11

skipif mysql # not compatible
query II rowsort label-9351
SELECT ALL - ( + 20 ) / - + COUNT ( * ) + - - 30, - 11 col1
----
50
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-9352
SELECT + 61 * - COUNT( * )
----
-61

skipif mysql # not compatible
query I rowsort label-9352
SELECT + 61 * - COUNT ( * )
----
-61

onlyif mysql # DIV for integer division: 
query I rowsort label-9353
SELECT ALL + 66 DIV + 82 - + 43
----
-43

skipif mysql # not compatible
query I rowsort label-9353
SELECT ALL + 66 / + 82 - + 43
----
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-9354
SELECT DISTINCT COUNT( * ) * + - 60 AS col1
----
-60

skipif mysql # not compatible
query I rowsort label-9354
SELECT DISTINCT COUNT ( * ) * + - 60 AS col1
----
-60

onlyif mysql # DIV for integer division: 
query I rowsort label-9355
SELECT ALL - 1 DIV + 45 - + - 17 AS col2
----
17

skipif mysql # not compatible
query I rowsort label-9355
SELECT ALL - 1 / + 45 - + - 17 AS col2
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-9356
SELECT ALL 10 * + - COUNT( - 91 ) - - 47
----
37

skipif mysql # not compatible
query I rowsort label-9356
SELECT ALL 10 * + - COUNT ( - 91 ) - - 47
----
37

query I rowsort
SELECT + + NULLIF ( + - 82, + 45 ) * - 44 * - + 44 AS col2
----
-158752

onlyif mysql # DIV for integer division: 
query II rowsort label-9358
SELECT ALL + + 72 AS col2, + 6 DIV 49 AS col1
----
72
0

skipif mysql # not compatible
query II rowsort label-9358
SELECT ALL + + 72 AS col2, + 6 / 49 AS col1
----
72
0

query I rowsort
SELECT DISTINCT 76 * + 93 AS col0
----
7068

query I rowsort
SELECT + 89 * - 5 + 46 + + + 3 AS col0
----
-396

onlyif mysql # aggregate syntax: 
query I rowsort label-9361
SELECT + 34 * - - COUNT( * ) col0
----
34

skipif mysql # not compatible
query I rowsort label-9361
SELECT + 34 * - - COUNT ( * ) col0
----
34

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9362
SELECT COUNT( * ) * CASE COUNT( * ) WHEN + - 42 THEN - COUNT( * ) / - + 91 ELSE NULL END - + 30 * - + 92 + + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9362
SELECT COUNT ( * ) * CASE COUNT ( * ) WHEN + - 42 THEN - COUNT ( * ) / - + 91 ELSE NULL END - + 30 * - + 92 + + CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9363
SELECT DISTINCT - COUNT( * ) DIV - 8 AS col2, 65
----
0
65

skipif mysql # not compatible
query II rowsort label-9363
SELECT DISTINCT - COUNT ( * ) / - 8 AS col2, 65
----
0
65

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9364
SELECT ALL + CASE CAST( NULL AS SIGNED ) WHEN - + COALESCE ( + CAST( + - SUM( ALL + + 97 ) AS SIGNED ), - - 31 * NULLIF ( 26, - 66 ) + - COALESCE ( + + 5, 88, 64 * 94 + - ( 3 ) - - 85 * - - 74 ) + - CASE + 47 WHEN 76 * - - 68 - + + 52 THEN - 60 WHEN + 15 THEN + 64 ELSE NULL END / - 67 ) + - 9 * 8 THEN 37 WHEN - 15 * + COALESCE ( 73, 71 / 85, 94 * - ( 74 * 17 ) ) THEN NULL ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9364
SELECT ALL + CASE CAST ( NULL AS INTEGER ) WHEN - + COALESCE ( + CAST ( + - SUM ( ALL + + 97 ) AS INTEGER ), - - 31 * NULLIF ( 26, - 66 ) + - COALESCE ( + + 5, 88, 64 * 94 + - ( 3 ) - - 85 * - - 74 ) + - CASE + 47 WHEN 76 * - - 68 - + + 52 THEN - 60 WHEN + 15 THEN + 64 ELSE NULL END / - 67 ) + - 9 * 8 THEN 37 WHEN - 15 * + COALESCE ( 73, 71 / 85, 94 * - ( 74 * 17 ) ) THEN NULL ELSE NULL END AS col1
----
NULL

query I rowsort
SELECT ALL + 26 * - - 73 AS col1
----
1898

onlyif mysql # aggregate syntax: 
query I rowsort label-9366
SELECT ALL - 48 * - ( COUNT( * ) ) + + COALESCE ( 11, + - 86 ) col1
----
59

skipif mysql # not compatible
query I rowsort label-9366
SELECT ALL - 48 * - ( COUNT ( * ) ) + + COALESCE ( 11, + - 86 ) col1
----
59

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9367
SELECT DISTINCT 48 DIV 75 AS col1, + 77 * - 1 + 77 * - COUNT( * ) AS col1
----
0
-154

skipif mysql # not compatible
query II rowsort label-9367
SELECT DISTINCT 48 / 75 AS col1, + 77 * - 1 + 77 * - COUNT ( * ) AS col1
----
0
-154

onlyif mysql # aggregate syntax: 
query II rowsort label-9368
SELECT - ( + - 18 ) AS col1, + 83 + MAX( - - 50 ) * + 23
----
18
1233

skipif mysql # not compatible
query II rowsort label-9368
SELECT - ( + - 18 ) AS col1, + 83 + MAX ( - - 50 ) * + 23
----
18
1233

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9369
SELECT - 19 + CAST( AVG ( - 29 ) AS SIGNED )
----
-48

skipif mysql # not compatible
query I rowsort label-9369
SELECT - 19 + CAST ( AVG ( - 29 ) AS INTEGER )
----
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-9370
SELECT DISTINCT COALESCE ( - 2, + SUM( + 9 ) )
----
-2

skipif mysql # not compatible
query I rowsort label-9370
SELECT DISTINCT COALESCE ( - 2, + SUM ( + 9 ) )
----
-2

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-9371
SELECT ALL + COUNT( * ) * - NULLIF ( + + 12, + 87 ) * 3 + + CAST( NULL AS DECIMAL ) * + + COUNT( * ), NULLIF ( + + 62, + MAX( DISTINCT 40 ) ) AS col1
----
NULL
62

skipif mysql # not compatible
query II rowsort label-9371
SELECT ALL + COUNT ( * ) * - NULLIF ( + + 12, + 87 ) * 3 + + CAST ( NULL AS REAL ) * + + COUNT ( * ), NULLIF ( + + 62, + MAX ( DISTINCT 40 ) ) AS col1
----
NULL
62

onlyif mysql # aggregate syntax: 
query I rowsort label-9372
SELECT MAX( 50 ) AS col1
----
50

skipif mysql # not compatible
query I rowsort label-9372
SELECT MAX ( 50 ) AS col1
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-9373
SELECT ALL COUNT( * ) * 50 * - 26 col2
----
-1300

skipif mysql # not compatible
query I rowsort label-9373
SELECT ALL COUNT ( * ) * 50 * - 26 col2
----
-1300

onlyif mysql # DIV for integer division: 
query I rowsort label-9374
SELECT - 59 DIV + ( + 99 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9374
SELECT - 59 / + ( + 99 ) AS col0
----
0

query I rowsort
SELECT ALL - 54 + - 28 * - + 88
----
2410

onlyif mysql # aggregate syntax: 
query I rowsort label-9376
SELECT ALL + 79 + + COUNT( ALL + 0 ) + - 86
----
-6

skipif mysql # not compatible
query I rowsort label-9376
SELECT ALL + 79 + + COUNT ( ALL + 0 ) + - 86
----
-6

query I rowsort
SELECT ALL + 68 + + 83 AS col0
----
151

onlyif mysql # aggregate syntax: 
query I rowsort label-9378
SELECT - + 88 - COUNT( * )
----
-89

skipif mysql # not compatible
query I rowsort label-9378
SELECT - + 88 - COUNT ( * )
----
-89

query I rowsort
SELECT 50 - - NULLIF ( + 41, 62 ) AS col2
----
91

query I rowsort
SELECT ALL + 33 - - 16
----
49

query I rowsort
SELECT - + 73 AS col2
----
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-9382
SELECT ALL + 83 * + COUNT( * ) * - 86 * + 18
----
-128484

skipif mysql # not compatible
query I rowsort label-9382
SELECT ALL + 83 * + COUNT ( * ) * - 86 * + 18
----
-128484

onlyif mysql # aggregate syntax: 
query I rowsort label-9383
SELECT - 82 * 6 + + MAX( DISTINCT 16 )
----
-476

skipif mysql # not compatible
query I rowsort label-9383
SELECT - 82 * 6 + + MAX ( DISTINCT 16 )
----
-476

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9384
SELECT ALL + CAST( NULL AS SIGNED ) / + 84
----
NULL

skipif mysql # not compatible
query I rowsort label-9384
SELECT ALL + CAST ( NULL AS INTEGER ) / + 84
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9385
SELECT 89 * 53 * - CAST( COALESCE ( 96, + 2 ) AS SIGNED ) AS col0
----
-452832

skipif mysql # not compatible
query I rowsort label-9385
SELECT 89 * 53 * - CAST ( COALESCE ( 96, + 2 ) AS INTEGER ) AS col0
----
-452832

onlyif mysql # aggregate syntax: 
query I rowsort label-9386
SELECT + - SUM( - 78 ) AS col2
----
78

skipif mysql # not compatible
query I rowsort label-9386
SELECT + - SUM ( - 78 ) AS col2
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-9387
SELECT 30 * + NULLIF ( + 43, SUM( DISTINCT - 48 ) * + - MAX( + 1 ) * - - 63 * - 6 ) + - + 42
----
1248

skipif mysql # not compatible
query I rowsort label-9387
SELECT 30 * + NULLIF ( + 43, SUM ( DISTINCT - 48 ) * + - MAX ( + 1 ) * - - 63 * - 6 ) + - + 42
----
1248

query I rowsort
SELECT ALL ( + + 73 ) + + - 29 + + 0 * - + 88 * - 68 AS col1
----
44

query I rowsort
SELECT ALL 7 * - + 25
----
-175

query I rowsort
SELECT NULLIF ( - 74, - 54 ) * - 9 * + ( - 54 ) AS col2
----
-35964

query I rowsort
SELECT 15 + 75 AS col1
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-9392
SELECT DISTINCT COUNT( * ) * - COUNT( * )
----
-1

skipif mysql # not compatible
query I rowsort label-9392
SELECT DISTINCT COUNT ( * ) * - COUNT ( * )
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9393
SELECT ALL 1 + 78 * + COUNT( * ) DIV COUNT( * ) + + - 48 * ( + 56 ) AS col2
----
-2609

skipif mysql # not compatible
query I rowsort label-9393
SELECT ALL 1 + 78 * + COUNT ( * ) / COUNT ( * ) + + - 48 * ( + 56 ) AS col2
----
-2609

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9394
SELECT + 62, + MAX( + - ( - 58 ) ) + CASE + + 68 WHEN + NULLIF ( - 28, - + 75 + + - COUNT( * ) ) THEN - - CAST( NULL AS SIGNED ) WHEN - 41 THEN 14 ELSE - - CASE 47 WHEN 27 * + + COUNT( * ) THEN - MIN( DISTINCT - 25 ) END / + - 41 * - - 63 - ( + 40 ) END * - 2 + - - ( + - ( - 98 ) ) col2
----
62
NULL

skipif mysql # not compatible
query II rowsort label-9394
SELECT + 62, + MAX ( + - ( - 58 ) ) + CASE + + 68 WHEN + NULLIF ( - 28, - + 75 + + - COUNT ( * ) ) THEN - - CAST ( NULL AS INTEGER ) WHEN - 41 THEN 14 ELSE - - CASE 47 WHEN 27 * + + COUNT ( * ) THEN - MIN ( DISTINCT - 25 ) END / + - 41 * - - 63 - ( + 40 ) END * - 2 + - - ( + - ( - 98 ) ) col2
----
62
NULL

query II rowsort
SELECT DISTINCT 23 AS col1, + 50 AS col0
----
23
50

query I rowsort
SELECT DISTINCT 0 + - 62 * + + 52 + - - 91
----
-3133

onlyif mysql # aggregate syntax: 
query I rowsort label-9397
SELECT DISTINCT + ( + COALESCE ( 25, + 74 + - + MIN( - 15 ) ) ) * 11 * + 41 AS col1
----
11275

skipif mysql # not compatible
query I rowsort label-9397
SELECT DISTINCT + ( + COALESCE ( 25, + 74 + - + MIN ( - 15 ) ) ) * 11 * + 41 AS col1
----
11275

onlyif mysql # aggregate syntax: 
query I rowsort label-9398
SELECT COUNT( * ) + + + 96
----
97

skipif mysql # not compatible
query I rowsort label-9398
SELECT COUNT ( * ) + + + 96
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-9399
SELECT 86 + SUM( DISTINCT - ( + - 62 ) ) AS col2
----
148

skipif mysql # not compatible
query I rowsort label-9399
SELECT 86 + SUM ( DISTINCT - ( + - 62 ) ) AS col2
----
148

onlyif mysql # aggregate syntax: 
query I rowsort label-9400
SELECT + MAX( DISTINCT + 0 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-9400
SELECT + MAX ( DISTINCT + 0 ) AS col2
----
0

query I rowsort
SELECT + 16 + + 35 AS col0
----
51

query I rowsort
SELECT + 91 * - - 39
----
3549

query I rowsort
SELECT DISTINCT + 4 * - 20
----
-80

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9404
SELECT - 52 * - ( - + 31 ) * - 81 + - 40 + + COUNT( * ) DIV 80 + 50 AS col0
----
130582

skipif mysql # not compatible
query I rowsort label-9404
SELECT - 52 * - ( - + 31 ) * - 81 + - 40 + + COUNT ( * ) / 80 + 50 AS col0
----
130582

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9405
SELECT - 57 * 59 * - 64 DIV - COUNT( * )
----
-215232

skipif mysql # not compatible
query I rowsort label-9405
SELECT - 57 * 59 * - 64 / - COUNT ( * )
----
-215232

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9406
SELECT ALL COALESCE ( + - 31, + 1 + - + 76 + - COUNT( * ) + CAST( 77 AS SIGNED ) * COALESCE ( - 50, 55 ) * - 84 * + ( - 96 ) + - 88, + 47 )
----
-31

skipif mysql # not compatible
query I rowsort label-9406
SELECT ALL COALESCE ( + - 31, + 1 + - + 76 + - COUNT ( * ) + CAST ( 77 AS INTEGER ) * COALESCE ( - 50, 55 ) * - 84 * + ( - 96 ) + - 88, + 47 )
----
-31

query I rowsort
SELECT + 19 * - 1 col1
----
-19

query I rowsort
SELECT + ( - 26 ) + - 18 + 58
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-9409
SELECT - NULLIF ( + + COUNT( - ( + ( - - 27 ) ) ), - ( 10 ) )
----
-1

skipif mysql # not compatible
query I rowsort label-9409
SELECT - NULLIF ( + + COUNT ( - ( + ( - - 27 ) ) ), - ( 10 ) )
----
-1

query II rowsort
SELECT + + 60 col2, 13 AS col2
----
60
13

onlyif mysql # aggregate syntax: 
query I rowsort label-9411
SELECT DISTINCT 21 * + COUNT( * ) * - 66 + - COUNT( * ) - 72 + + 51 AS col2
----
-1408

skipif mysql # not compatible
query I rowsort label-9411
SELECT DISTINCT 21 * + COUNT ( * ) * - 66 + - COUNT ( * ) - 72 + + 51 AS col2
----
-1408

onlyif mysql # aggregate syntax: 
query I rowsort label-9412
SELECT DISTINCT + COUNT( * ) + ( + 17 )
----
18

skipif mysql # not compatible
query I rowsort label-9412
SELECT DISTINCT + COUNT ( * ) + ( + 17 )
----
18

query I rowsort
SELECT DISTINCT + 44 + 25 + - 24 AS col1
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-9414
SELECT NULLIF ( + 50, + + 48 ) * + 91 * + 47 + COUNT( * )
----
213851

skipif mysql # not compatible
query I rowsort label-9414
SELECT NULLIF ( + 50, + + 48 ) * + 91 * + 47 + COUNT ( * )
----
213851

query I rowsort
SELECT - 85 * 75 + 25 AS col1
----
-6350

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9416
SELECT MIN( + CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-9416
SELECT MIN ( + CAST ( NULL AS INTEGER ) )
----
NULL

query I rowsort
SELECT ALL + 54 + 86
----
140

onlyif mysql # aggregate syntax: 
query I rowsort label-9418
SELECT ( + 51 ) * + + ( + SUM( + - ( 59 ) ) ) - 54
----
-3063

skipif mysql # not compatible
query I rowsort label-9418
SELECT ( + 51 ) * + + ( + SUM ( + - ( 59 ) ) ) - 54
----
-3063

onlyif mysql # DIV for integer division: 
query II rowsort label-9419
SELECT DISTINCT - 9 DIV + + 42, + 1 AS col0
----
0
1

skipif mysql # not compatible
query II rowsort label-9419
SELECT DISTINCT - 9 / + + 42, + 1 AS col0
----
0
1

query I rowsort
SELECT 21 * 76
----
1596

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9421
SELECT DISTINCT + 36 + + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9421
SELECT DISTINCT + 36 + + - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9422
SELECT DISTINCT - COUNT( ALL + 24 ) + - 30
----
-31

skipif mysql # not compatible
query I rowsort label-9422
SELECT DISTINCT - COUNT ( ALL + 24 ) + - 30
----
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-9423
SELECT COUNT( * ) * + 47 - + CASE 1 WHEN 41 * 86 THEN + - 33 WHEN + ( - COUNT( * ) ) / + 56 * ( + 60 ) + AVG ( DISTINCT + 13 ) THEN + + MAX( 14 ) END * 46
----
NULL

skipif mysql # not compatible
query I rowsort label-9423
SELECT COUNT ( * ) * + 47 - + CASE 1 WHEN 41 * 86 THEN + - 33 WHEN + ( - COUNT ( * ) ) / + 56 * ( + 60 ) + AVG ( DISTINCT + 13 ) THEN + + MAX ( 14 ) END * 46
----
NULL

query I rowsort
SELECT ALL 26 col1
----
26

query I rowsort
SELECT DISTINCT ( + 39 ) * - 94
----
-3666

onlyif mysql # DIV for integer division: 
query I rowsort label-9426
SELECT COALESCE ( + 21, - 1, 46 DIV - - 42 + - + 56 + 98 ) AS col0
----
21

skipif mysql # not compatible
query I rowsort label-9426
SELECT COALESCE ( + 21, - 1, 46 / - - 42 + - + 56 + 98 ) AS col0
----
21

query I rowsort
SELECT + 70 + 78 * 62 AS col0
----
4906

query I rowsort
SELECT + ( + 83 )
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-9429
SELECT DISTINCT + + COUNT( * ) * - 10
----
-10

skipif mysql # not compatible
query I rowsort label-9429
SELECT DISTINCT + + COUNT ( * ) * - 10
----
-10

query I rowsort
SELECT ALL 54 - - 96 * + 24 AS col1
----
2358

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9431
SELECT + + 5 * + - 90, + 39 * - - COALESCE ( CAST( NULL AS SIGNED ), - 80, CAST( NULL AS SIGNED ) ) AS col2
----
-450
-3120

skipif mysql # not compatible
query II rowsort label-9431
SELECT + + 5 * + - 90, + 39 * - - COALESCE ( CAST ( NULL AS INTEGER ), - 80, CAST ( NULL AS INTEGER ) ) AS col2
----
-450
-3120

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9432
SELECT DISTINCT - CAST( - 86 AS SIGNED ) * - COUNT( * ) DIV - ( - - COUNT( * ) ) AS col2
----
86

skipif mysql # not compatible
query I rowsort label-9432
SELECT DISTINCT - CAST ( - 86 AS INTEGER ) * - COUNT ( * ) / - ( - - COUNT ( * ) ) AS col2
----
86

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9433
SELECT + + CASE + + 81 WHEN + + 16 * + 15 THEN - 43 ELSE NULL END + ( + CAST( - - 48 AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-9433
SELECT + + CASE + + 81 WHEN + + 16 * + 15 THEN - 43 ELSE NULL END + ( + CAST ( - - 48 AS INTEGER ) )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9434
SELECT - CAST( 56 AS SIGNED ) col0
----
-56

skipif mysql # not compatible
query I rowsort label-9434
SELECT - CAST ( 56 AS INTEGER ) col0
----
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-9435
SELECT DISTINCT 42 * - 96 * NULLIF ( + MIN( ALL + ( + + 39 ) ), + 39 + 47 ) AS col2
----
-157248

skipif mysql # not compatible
query I rowsort label-9435
SELECT DISTINCT 42 * - 96 * NULLIF ( + MIN ( ALL + ( + + 39 ) ), + 39 + 47 ) AS col2
----
-157248

query I rowsort
SELECT - 70 col2
----
-70

query I rowsort
SELECT - - 31 * 3 * 95 AS col2
----
8835

query I rowsort
SELECT DISTINCT + 73 + + + 89 AS col1
----
162

query I rowsort
SELECT DISTINCT - 98 + + ( - 94 ) + + 12
----
-180

query I rowsort
SELECT ALL 27 + - 38 + 49
----
38

query I rowsort
SELECT ALL - 2 * + 61 + + 64 + + 13 AS col0
----
-45

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9442
SELECT + + 44 DIV - 90 * 57 - - + 70 + + COALESCE ( - - 29, - 39, - CAST( - ( - - ( + + CAST( NULL AS SIGNED ) ) ) AS SIGNED ) ) * + + 99 - ( + 49 ) + + COUNT( * ) * 96 * + 34 * - + 56 - - + 37
----
-179855

skipif mysql # not compatible
query I rowsort label-9442
SELECT + + 44 / - 90 * 57 - - + 70 + + COALESCE ( - - 29, - 39, - CAST ( - ( - - ( + + CAST ( NULL AS INTEGER ) ) ) AS INTEGER ) ) * + + 99 - ( + 49 ) + + COUNT ( * ) * 96 * + 34 * - + 56 - - + 37
----
-179855

query I rowsort
SELECT - 2 - 87 - + 41
----
-130

query I rowsort
SELECT + COALESCE ( - 53, + 73, - 67 )
----
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-9445
SELECT ( COUNT( * ) ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-9445
SELECT ( COUNT ( * ) ) AS col1
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9446
SELECT ALL + 56 * - MIN( ALL 9 ) + + 64 - + - ( + CAST( NULL AS SIGNED ) ) * + COUNT( + 17 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9446
SELECT ALL + 56 * - MIN ( ALL 9 ) + + 64 - + - ( + CAST ( NULL AS INTEGER ) ) * + COUNT ( + 17 )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9447
SELECT DISTINCT CAST( - + MIN( DISTINCT 37 ) AS SIGNED ) * 25 * + 78 + CASE + + COUNT( * ) WHEN - COUNT( * ) * COUNT( * ) THEN ( 41 ) ELSE NULL END + + - 77
----
NULL

skipif mysql # not compatible
query I rowsort label-9447
SELECT DISTINCT CAST ( - + MIN ( DISTINCT 37 ) AS INTEGER ) * 25 * + 78 + CASE + + COUNT ( * ) WHEN - COUNT ( * ) * COUNT ( * ) THEN ( 41 ) ELSE NULL END + + - 77
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9448
SELECT NULLIF ( + + 6, - COALESCE ( 5, 78 * + ( + 65 ) - + + 58 * + + 69, - MIN( 71 ) ) )
----
6

skipif mysql # not compatible
query I rowsort label-9448
SELECT NULLIF ( + + 6, - COALESCE ( 5, 78 * + ( + 65 ) - + + 58 * + + 69, - MIN ( 71 ) ) )
----
6

query I rowsort
SELECT ALL 66 * - 95 * - 94 AS col0
----
589380

query I rowsort
SELECT ALL - 79 * - 68 - + 34 AS col2
----
5338

query I rowsort
SELECT ALL + ( - 12 )
----
-12

onlyif mysql # aggregate syntax: 
query II rowsort label-9452
SELECT ALL - COUNT( * ) * 2 * + CASE + + COUNT( * ) WHEN ( 28 ) - + COUNT( * ) THEN - 9 * - 8 END - + 84 AS col2, + ( - + 71 )
----
NULL
-71

skipif mysql # not compatible
query II rowsort label-9452
SELECT ALL - COUNT ( * ) * 2 * + CASE + + COUNT ( * ) WHEN ( 28 ) - + COUNT ( * ) THEN - 9 * - 8 END - + 84 AS col2, + ( - + 71 )
----
NULL
-71

query I rowsort
SELECT - 12 * - 85 AS col0
----
1020

query I rowsort
SELECT COALESCE ( 54, - 98, - 94 )
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-9455
SELECT - 76 * NULLIF ( + 46, - ( - + ( + 69 ) ) + 3 + - COUNT( + 17 ) ) col0
----
-3496

skipif mysql # not compatible
query I rowsort label-9455
SELECT - 76 * NULLIF ( + 46, - ( - + ( + 69 ) ) + 3 + - COUNT ( + 17 ) ) col0
----
-3496

query I rowsort
SELECT + 82 * - 95
----
-7790

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9457
SELECT 23 * 30 + - CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-9457
SELECT 23 * 30 + - CAST ( NULL AS REAL )
----
NULL

query I rowsort
SELECT - 52 * - 58 * + 56
----
168896

query I rowsort
SELECT ALL 42 * + 88
----
3696

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9460
SELECT ALL - CAST( NULL AS SIGNED ) / - NULLIF ( - - 29, + + AVG ( + 91 ) + + COUNT( DISTINCT 53 ) + + 37 / + 27 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9460
SELECT ALL - CAST ( NULL AS INTEGER ) / - NULLIF ( - - 29, + + AVG ( + 91 ) + + COUNT ( DISTINCT 53 ) + + 37 / + 27 ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9461
SELECT - + 76 * + - SUM( DISTINCT + 94 ) + COUNT( * )
----
7145

skipif mysql # not compatible
query I rowsort label-9461
SELECT - + 76 * + - SUM ( DISTINCT + 94 ) + COUNT ( * )
----
7145

onlyif mysql # aggregate syntax: 
query II rowsort label-9462
SELECT ALL + CASE - + 40 WHEN 19 THEN 91 WHEN - ( COUNT( ALL - - 68 ) ) - + - 63 THEN NULL END * + + 1 * - 93, 19 - ( - 18 ) * + 32 AS col2
----
NULL
595

skipif mysql # not compatible
query II rowsort label-9462
SELECT ALL + CASE - + 40 WHEN 19 THEN 91 WHEN - ( COUNT ( ALL - - 68 ) ) - + - 63 THEN NULL END * + + 1 * - 93, 19 - ( - 18 ) * + 32 AS col2
----
NULL
595

query I rowsort
SELECT + + 60 + - 46
----
14

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9464
SELECT + - 2 DIV + - MAX( + 62 ) + - - 22
----
22

skipif mysql # not compatible
query I rowsort label-9464
SELECT + - 2 / + - MAX ( + 62 ) + - - 22
----
22

query II rowsort
SELECT ALL - 96 * - - NULLIF ( 37, 31 * - - 81 ) AS col0, COALESCE ( - 39, + 10, - 67 - + 39 ) AS col2
----
-3552
-39

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9466
SELECT + COUNT( * ) + 52 * - COALESCE ( COUNT( * ), + COUNT( * ) * - + 24 * + - 78 * + 21 + - CAST( + 83 AS SIGNED ) + - 2 + COALESCE ( - 26, - 30 ), - 9 + - 54 ) + - + 72
----
-123

skipif mysql # not compatible
query I rowsort label-9466
SELECT + COUNT ( * ) + 52 * - COALESCE ( COUNT ( * ), + COUNT ( * ) * - + 24 * + - 78 * + 21 + - CAST ( + 83 AS INTEGER ) + - 2 + COALESCE ( - 26, - 30 ), - 9 + - 54 ) + - + 72
----
-123

query I rowsort
SELECT + 62 + - 73 col0
----
-11

query I rowsort
SELECT ALL 31 * 65
----
2015

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9469
SELECT - 1 + - + 28 - - 60 + 69 * + + 27 * - - 57 + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9469
SELECT - 1 + - + 28 - - 60 + 69 * + + 27 * - - 57 + - CAST ( NULL AS INTEGER )
----
NULL

query II rowsort
SELECT + 43 AS col2, + COALESCE ( + 33, - 30, - 90 * 29 ) AS col0
----
43
33

onlyif mysql # aggregate syntax: 
query I rowsort label-9471
SELECT - COUNT( * ) + - - 79 AS col0
----
78

skipif mysql # not compatible
query I rowsort label-9471
SELECT - COUNT ( * ) + - - 79 AS col0
----
78

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9472
SELECT + + CAST( NULL AS SIGNED ) - - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-9472
SELECT + + CAST ( NULL AS INTEGER ) - - COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9473
SELECT DISTINCT + 2 + + COUNT( * )
----
3

skipif mysql # not compatible
query I rowsort label-9473
SELECT DISTINCT + 2 + + COUNT ( * )
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9474
SELECT ALL - COUNT( * ) + 94
----
93

skipif mysql # not compatible
query I rowsort label-9474
SELECT ALL - COUNT ( * ) + 94
----
93

query I rowsort
SELECT DISTINCT 76 + + 34 AS col0
----
110

query I rowsort
SELECT DISTINCT 16 + + - 84
----
-68

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9477
SELECT ALL + ( ( - - CAST( + 89 AS SIGNED ) ) ) AS col2
----
89

skipif mysql # not compatible
query I rowsort label-9477
SELECT ALL + ( ( - - CAST ( + 89 AS INTEGER ) ) ) AS col2
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-9478
SELECT + MAX( 46 ) AS col1
----
46

skipif mysql # not compatible
query I rowsort label-9478
SELECT + MAX ( 46 ) AS col1
----
46

query I rowsort
SELECT + 78 + - - 76 AS col1
----
154

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9480
SELECT - CAST( + 34 AS SIGNED )
----
-34

skipif mysql # not compatible
query I rowsort label-9480
SELECT - CAST ( + 34 AS INTEGER )
----
-34

query I rowsort
SELECT + 79 + - 90
----
-11

query I rowsort
SELECT ALL 84 + + ( - 42 )
----
42

onlyif mysql # aggregate syntax: 
query II rowsort label-9483
SELECT + ( + NULLIF ( 42, COALESCE ( - 3, COUNT( * ) + + 0, - COUNT( * ) * + 31 - + ( - + 23 ) ) ) ) AS col2, 70
----
42
70

skipif mysql # not compatible
query II rowsort label-9483
SELECT + ( + NULLIF ( 42, COALESCE ( - 3, COUNT ( * ) + + 0, - COUNT ( * ) * + 31 - + ( - + 23 ) ) ) ) AS col2, 70
----
42
70

query II rowsort
SELECT DISTINCT + 53 AS col1, 24
----
53
24

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9485
SELECT ALL - SUM( + 38 ) DIV + COUNT( * ) - + + 74
----
-112

skipif mysql # not compatible
query I rowsort label-9485
SELECT ALL - SUM ( + 38 ) / + COUNT ( * ) - + + 74
----
-112

onlyif mysql # DIV for integer division: 
query I rowsort label-9486
SELECT - 13 DIV 61 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9486
SELECT - 13 / 61 AS col0
----
0

query I rowsort
SELECT + 24 * + 98
----
2352

query I rowsort
SELECT - 30 + - 4
----
-34

query I rowsort
SELECT 11 * 2 * + 77 AS col2
----
1694

onlyif mysql # aggregate syntax: 
query I rowsort label-9490
SELECT ALL - SUM( 99 ) AS col0
----
-99

skipif mysql # not compatible
query I rowsort label-9490
SELECT ALL - SUM ( 99 ) AS col0
----
-99

query II rowsort
SELECT 92 AS col2, 82
----
92
82

query I rowsort
SELECT ALL - 64 * - 18 col1
----
1152

query I rowsort
SELECT ALL - 72 col0
----
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-9494
SELECT ALL - MAX( 0 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9494
SELECT ALL - MAX ( 0 ) AS col0
----
0

query II rowsort
SELECT DISTINCT - 91 AS col0, 12
----
-91
12

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9496
SELECT - COALESCE ( + - CAST( NULL AS SIGNED ), 10 * COUNT( ALL + 90 ) ) + + 61 + + - COUNT( * )
----
50

skipif mysql # not compatible
query I rowsort label-9496
SELECT - COALESCE ( + - CAST ( NULL AS INTEGER ), 10 * COUNT ( ALL + 90 ) ) + + 61 + + - COUNT ( * )
----
50

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9497
SELECT ALL - - 19 + + - 35 DIV + + COUNT( * )
----
-16

skipif mysql # not compatible
query I rowsort label-9497
SELECT ALL - - 19 + + - 35 / + + COUNT ( * )
----
-16

query I rowsort
SELECT + 88 col1
----
88

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9499
SELECT ALL + - COUNT( * ) + - + 87 * + 59 DIV + COUNT( * ) + - 83 + + 31 col1, + 5 - 29 AS col1
----
-5186
-24

skipif mysql # not compatible
query II rowsort label-9499
SELECT ALL + - COUNT ( * ) + - + 87 * + 59 / + COUNT ( * ) + - 83 + + 31 col1, + 5 - 29 AS col1
----
-5186
-24

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9500
SELECT + COALESCE ( - 40, + 15, + + 41, - - COUNT( * ) - + 97 + 90 ) DIV + COUNT( 82 )
----
-40

skipif mysql # not compatible
query I rowsort label-9500
SELECT + COALESCE ( - 40, + 15, + + 41, - - COUNT ( * ) - + 97 + 90 ) / + COUNT ( 82 )
----
-40

query I rowsort
SELECT ALL + - ( + - 54 ) + - 37 * 62
----
-2240

query I rowsort
SELECT 12 * + 27
----
324

onlyif mysql # aggregate syntax: 
query I rowsort label-9503
SELECT - MIN( + 49 ) AS col0
----
-49

skipif mysql # not compatible
query I rowsort label-9503
SELECT - MIN ( + 49 ) AS col0
----
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-9504
SELECT 89 * + SUM( + + 27 ) AS col0
----
2403

skipif mysql # not compatible
query I rowsort label-9504
SELECT 89 * + SUM ( + + 27 ) AS col0
----
2403

query I rowsort
SELECT - 62 * - 43
----
2666

onlyif mysql # aggregate syntax: 
query I rowsort label-9506
SELECT - CASE - 72 WHEN - COUNT( * ) THEN - 98 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9506
SELECT - CASE - 72 WHEN - COUNT ( * ) THEN - 98 END AS col0
----
NULL

query I rowsort
SELECT 68 - - 67 AS col1
----
135

onlyif mysql # aggregate syntax: 
query I rowsort label-9508
SELECT 95 + 46 * + + ( + COUNT( * ) )
----
141

skipif mysql # not compatible
query I rowsort label-9508
SELECT 95 + 46 * + + ( + COUNT ( * ) )
----
141

onlyif mysql # aggregate syntax: 
query I rowsort label-9509
SELECT DISTINCT - COUNT( * ) * CASE - 5 WHEN COUNT( * ) + + COALESCE ( 54, - 20, - 81 ) THEN NULL ELSE - + 83 * + COUNT( * ) END
----
83

skipif mysql # not compatible
query I rowsort label-9509
SELECT DISTINCT - COUNT ( * ) * CASE - 5 WHEN COUNT ( * ) + + COALESCE ( 54, - 20, - 81 ) THEN NULL ELSE - + 83 * + COUNT ( * ) END
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-9510
SELECT ALL + 67 - + - MIN( 28 ) * - 40 AS col1
----
-1053

skipif mysql # not compatible
query I rowsort label-9510
SELECT ALL + 67 - + - MIN ( 28 ) * - 40 AS col1
----
-1053

query I rowsort
SELECT 14 + + - 51
----
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-9512
SELECT ALL COUNT( * ) - - MIN( ALL - 43 ) - - - 19 AS col2
----
-61

skipif mysql # not compatible
query I rowsort label-9512
SELECT ALL COUNT ( * ) - - MIN ( ALL - 43 ) - - - 19 AS col2
----
-61

query I rowsort
SELECT 30 - - 92 + + 45 AS col2
----
167

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9514
SELECT - COUNT( * ) DIV + 77 * 74 + + 57
----
57

skipif mysql # not compatible
query I rowsort label-9514
SELECT - COUNT ( * ) / + 77 * 74 + + 57
----
57

query I rowsort
SELECT COALESCE ( + + 57, - 0, + + 62 ) - - - 81
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-9516
SELECT 11 * SUM( DISTINCT + 54 ) AS col0
----
594

skipif mysql # not compatible
query I rowsort label-9516
SELECT 11 * SUM ( DISTINCT + 54 ) AS col0
----
594

onlyif mysql # aggregate syntax: 
query I rowsort label-9517
SELECT DISTINCT COALESCE ( + SUM( + 84 ), ( + 25 ) ) * + - 51
----
-4284

skipif mysql # not compatible
query I rowsort label-9517
SELECT DISTINCT COALESCE ( + SUM ( + 84 ), ( + 25 ) ) * + - 51
----
-4284

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9518
SELECT COALESCE ( 70, + SUM( ALL - 35 ) * COUNT( * ) * 23 ) + CASE WHEN NOT ( NOT - 86 <= NULL ) THEN - + COALESCE ( - - 79, + CAST( + COUNT( * ) AS DECIMAL ) * 80 * + - CASE + - 43 WHEN 71 THEN NULL WHEN + 95 + - 38 THEN + - 55 * + 14 ELSE + + 91 * + COUNT( 12 ) END + + COALESCE ( + 43, - 88 ) + - 6 ) * 79 + - + 98 / 59 WHEN NOT 40 / COUNT( * ) IS NULL THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-9518
SELECT COALESCE ( 70, + SUM ( ALL - 35 ) * COUNT ( * ) * 23 ) + CASE WHEN NOT ( NOT - 86 <= NULL ) THEN - + COALESCE ( - - 79, + CAST ( + COUNT ( * ) AS REAL ) * 80 * + - CASE + - 43 WHEN 71 THEN NULL WHEN + 95 + - 38 THEN + - 55 * + 14 ELSE + + 91 * + COUNT ( 12 ) END + + COALESCE ( + 43, - 88 ) + - 6 ) * 79 + - + 98 / 59 WHEN NOT 40 / COUNT ( * ) IS NULL THEN NULL END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9519
SELECT DISTINCT ( + COALESCE ( - - COUNT( * ), MAX( ( + + 51 ) ), - + ( - CAST( NULL AS SIGNED ) ) + - - 0 DIV 9, - 20 + - + NULLIF ( - - COUNT( * ), + 14 ) ) ) * - + 42 col2
----
-42

skipif mysql # not compatible
query I rowsort label-9519
SELECT DISTINCT ( + COALESCE ( - - COUNT ( * ), MAX ( ( + + 51 ) ), - + ( - CAST ( NULL AS INTEGER ) ) + - - 0 / 9, - 20 + - + NULLIF ( - - COUNT ( * ), + 14 ) ) ) * - + 42 col2
----
-42

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9520
SELECT DISTINCT 70 * + + 39 * COUNT( * ) * 27 * - COALESCE ( - 1, + NULLIF ( - 49, + - CAST( NULL AS SIGNED ) ) * - 55 ) * - - 87 + + + 98 AS col1
----
6412868

skipif mysql # not compatible
query I rowsort label-9520
SELECT DISTINCT 70 * + + 39 * COUNT ( * ) * 27 * - COALESCE ( - 1, + NULLIF ( - 49, + - CAST ( NULL AS INTEGER ) ) * - 55 ) * - - 87 + + + 98 AS col1
----
6412868

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9521
SELECT + ( CAST( + + 58 AS SIGNED ) )
----
58

skipif mysql # not compatible
query I rowsort label-9521
SELECT + ( CAST ( + + 58 AS INTEGER ) )
----
58

query I rowsort
SELECT + 69 + 41 * 27
----
1176

onlyif mysql # DIV for integer division: 
query II rowsort label-9523
SELECT - ( + + 21 ) + + 17 + - ( - 75 ) + - 83 DIV + 14, 29 + + - 7 AS col2
----
66
22

skipif mysql # not compatible
query II rowsort label-9523
SELECT - ( + + 21 ) + + 17 + - ( - 75 ) + - 83 / + 14, 29 + + - 7 AS col2
----
66
22

onlyif mysql # aggregate syntax: 
query I rowsort label-9524
SELECT ALL + COUNT( * ) + 25 * 5 * + 18
----
2251

skipif mysql # not compatible
query I rowsort label-9524
SELECT ALL + COUNT ( * ) + 25 * 5 * + 18
----
2251

onlyif mysql # aggregate syntax: 
query I rowsort label-9525
SELECT - 19 + + - 97 + - COUNT( * ) + 22 AS col2
----
-95

skipif mysql # not compatible
query I rowsort label-9525
SELECT - 19 + + - 97 + - COUNT ( * ) + 22 AS col2
----
-95

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9526
SELECT DISTINCT - COALESCE ( + MAX( ALL - 33 ), + 36 / 62, - COUNT( * ), - 60 ) * - CAST( NULL AS SIGNED ) * - - COUNT( * ) * - CASE + + COUNT( * ) WHEN + - 28 THEN - - NULLIF ( 25, 69 * + 89 + + COUNT( * ) ) ELSE + 97 + - 19 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9526
SELECT DISTINCT - COALESCE ( + MAX ( ALL - 33 ), + 36 / 62, - COUNT ( * ), - 60 ) * - CAST ( NULL AS INTEGER ) * - - COUNT ( * ) * - CASE + + COUNT ( * ) WHEN + - 28 THEN - - NULLIF ( 25, 69 * + 89 + + COUNT ( * ) ) ELSE + 97 + - 19 END AS col1
----
NULL

query I rowsort
SELECT 73 * 19 * + 53 * - + NULLIF ( + 50, + 56 ) col1
----
-3675550

query I rowsort
SELECT 3 + + 44 + 80
----
127

onlyif mysql # aggregate syntax: 
query I rowsort label-9529
SELECT + MIN( DISTINCT 6 ) * 42
----
252

skipif mysql # not compatible
query I rowsort label-9529
SELECT + MIN ( DISTINCT 6 ) * 42
----
252

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9530
SELECT + COUNT( - + 74 ) + - CAST( NULL AS SIGNED ) - - - AVG ( + 62 ) * + 4 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9530
SELECT + COUNT ( - + 74 ) + - CAST ( NULL AS INTEGER ) - - - AVG ( + 62 ) * + 4 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9531
SELECT + COUNT( + 82 ) + + 65
----
66

skipif mysql # not compatible
query I rowsort label-9531
SELECT + COUNT ( + 82 ) + + 65
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-9532
SELECT 52 * SUM( COALESCE ( - + 14, + 16 + + 78, - 38 ) ) AS col1
----
-728

skipif mysql # not compatible
query I rowsort label-9532
SELECT 52 * SUM ( COALESCE ( - + 14, + 16 + + 78, - 38 ) ) AS col1
----
-728

query I rowsort
SELECT ALL 82 - - + 28
----
110

onlyif mysql # aggregate syntax: 
query II rowsort label-9534
SELECT ALL COUNT( * ) AS col2, + COUNT( * ) + 83
----
1
84

skipif mysql # not compatible
query II rowsort label-9534
SELECT ALL COUNT ( * ) AS col2, + COUNT ( * ) + 83
----
1
84

query I rowsort
SELECT 5 + 10 AS col0
----
15

query I rowsort
SELECT 14 * 31
----
434

query I rowsort
SELECT ALL + 36 * 55 * + 76 AS col2
----
150480

onlyif mysql # DIV for integer division: 
query I rowsort label-9538
SELECT 21 DIV 59
----
0

skipif mysql # not compatible
query I rowsort label-9538
SELECT 21 / 59
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-9539
SELECT ALL COUNT( * ) AS col0, - 41
----
1
-41

skipif mysql # not compatible
query II rowsort label-9539
SELECT ALL COUNT ( * ) AS col0, - 41
----
1
-41

query I rowsort
SELECT - 84 * - 56 AS col1
----
4704

onlyif mysql # aggregate syntax: 
query I rowsort label-9541
SELECT - 89 + + 59 * - COUNT( * ) * 1
----
-148

skipif mysql # not compatible
query I rowsort label-9541
SELECT - 89 + + 59 * - COUNT ( * ) * 1
----
-148

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9542
SELECT ALL - CAST( NULL AS DECIMAL ) * + 91 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9542
SELECT ALL - CAST ( NULL AS REAL ) * + 91 col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9543
SELECT + 66 + 4 + - 0 + + + 86 - + 76 * - COUNT( * ) AS col1, + 80 AS col1
----
232
80

skipif mysql # not compatible
query II rowsort label-9543
SELECT + 66 + 4 + - 0 + + + 86 - + 76 * - COUNT ( * ) AS col1, + 80 AS col1
----
232
80

query II rowsort
SELECT 25 AS col1, + 68 AS col2
----
25
68

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9545
SELECT ALL + CAST( 15 AS SIGNED ) * + COUNT( * ) * - ( CAST( 11 AS SIGNED ) ) - ( - 66 ), 51 + - 94 AS col0
----
-99
-43

skipif mysql # not compatible
query II rowsort label-9545
SELECT ALL + CAST ( 15 AS INTEGER ) * + COUNT ( * ) * - ( CAST ( 11 AS INTEGER ) ) - ( - 66 ), 51 + - 94 AS col0
----
-99
-43

query II rowsort
SELECT 64 * 69 + - + 34 AS col2, - 32 AS col0
----
4382
-32

query I rowsort
SELECT COALESCE ( + 75, 43 )
----
75

query I rowsort
SELECT DISTINCT + 54 * + 85 + + 97 + - 9 - - 30 * 18 * ( - 44 ) AS col1
----
-19082

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9549
SELECT - COUNT( * ) DIV - 15
----
0

skipif mysql # not compatible
query I rowsort label-9549
SELECT - COUNT ( * ) / - 15
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9550
SELECT + 86 * - ( + + ( + NULLIF ( 57, + 98 * - - 99 * 33 * + 52 ) ) ) + + CAST( NULL AS SIGNED ) / + - 40, + 50 AS col2
----
NULL
50

skipif mysql # not compatible
query II rowsort label-9550
SELECT + 86 * - ( + + ( + NULLIF ( 57, + 98 * - - 99 * 33 * + 52 ) ) ) + + CAST ( NULL AS INTEGER ) / + - 40, + 50 AS col2
----
NULL
50

onlyif mysql # aggregate syntax: 
query I rowsort label-9551
SELECT DISTINCT COALESCE ( - 23, MIN( - 66 ) * + 97 * + 40, - 75 ) * + - 19 + + - 72 AS col0
----
365

skipif mysql # not compatible
query I rowsort label-9551
SELECT DISTINCT COALESCE ( - 23, MIN ( - 66 ) * + 97 * + 40, - 75 ) * + - 19 + + - 72 AS col0
----
365

query II rowsort
SELECT ALL + + 75, - 42 AS col1
----
75
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-9553
SELECT MIN( ALL 50 ) AS col2
----
50

skipif mysql # not compatible
query I rowsort label-9553
SELECT MIN ( ALL 50 ) AS col2
----
50

query I rowsort
SELECT + ( - + 11 )
----
-11

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9555
SELECT ALL 52 * - - 38 + 31 - - 69 * + 25 * - MIN( - ( - 8 ) ) * + + CAST( - - 90 AS SIGNED ) - - 73 + + + 23 + + - 76 * + 44 + + 99 + + - 61 + + COUNT( * ) * + + 33 + + 60 + - 11 * + 16 * CAST( + - 92 AS SIGNED ) + 27
----
-1226891

skipif mysql # not compatible
query I rowsort label-9555
SELECT ALL 52 * - - 38 + 31 - - 69 * + 25 * - MIN ( - ( - 8 ) ) * + + CAST ( - - 90 AS INTEGER ) - - 73 + + + 23 + + - 76 * + 44 + + 99 + + - 61 + + COUNT ( * ) * + + 33 + + 60 + - 11 * + 16 * CAST ( + - 92 AS INTEGER ) + 27
----
-1226891

query I rowsort
SELECT + 67 * 23
----
1541

onlyif mysql # aggregate syntax: 
query I rowsort label-9557
SELECT ALL MIN( DISTINCT - 82 ) * - ( - + NULLIF ( - 49, - 25 ) ) AS col1
----
4018

skipif mysql # not compatible
query I rowsort label-9557
SELECT ALL MIN ( DISTINCT - 82 ) * - ( - + NULLIF ( - 49, - 25 ) ) AS col1
----
4018

onlyif mysql # aggregate syntax: 
query I rowsort label-9558
SELECT - COUNT( + - 24 )
----
-1

skipif mysql # not compatible
query I rowsort label-9558
SELECT - COUNT ( + - 24 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9559
SELECT ALL + SUM( 87 ) * + 92 + + + 21
----
8025

skipif mysql # not compatible
query I rowsort label-9559
SELECT ALL + SUM ( 87 ) * + 92 + + + 21
----
8025

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9560
SELECT DISTINCT + 7 * 92 + ( + 6 ) DIV COUNT( * ) - + - 11 + - - COUNT( + - 79 ) AS col1
----
662

skipif mysql # not compatible
query I rowsort label-9560
SELECT DISTINCT + 7 * 92 + ( + 6 ) / COUNT ( * ) - + - 11 + - - COUNT ( + - 79 ) AS col1
----
662

query I rowsort
SELECT ALL 60 * + - 35 - - 54
----
-2046

query I rowsort
SELECT ALL + ( 30 ) AS col1
----
30

query I rowsort
SELECT + ( + + 28 )
----
28

query II rowsort
SELECT + 91 AS col2, 24 AS col2
----
91
24

query I rowsort
SELECT ALL 67 - - 37 AS col2
----
104

onlyif mysql # aggregate syntax: 
query II rowsort label-9566
SELECT - 41 AS col2, 13 * SUM( 34 ) * + MAX( - 36 ) + + 35 + - COUNT( * )
----
-41
-15878

skipif mysql # not compatible
query II rowsort label-9566
SELECT - 41 AS col2, 13 * SUM ( 34 ) * + MAX ( - 36 ) + + 35 + - COUNT ( * )
----
-41
-15878

query I rowsort
SELECT ALL + + 72 - 26
----
46

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9568
SELECT - 37 - - 78 + - 16 * - 60 * + ( + CAST( NULL AS DECIMAL ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-9568
SELECT - 37 - - 78 + - 16 * - 60 * + ( + CAST ( NULL AS REAL ) )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9569
SELECT ALL ( - 82 ) * CAST( 73 AS SIGNED ) + COALESCE ( 96, - AVG ( + - 58 ), - - COALESCE ( - - 77, 48, CAST( - NULLIF ( + 86, + CASE COUNT( * ) WHEN - + 80 THEN COUNT( - + 61 ) + 11 END * + COUNT( * ) DIV + COUNT( * ) + 35 - + - 68 - - COUNT( * ) ) AS SIGNED ) ) * - 87 ) DIV + - 56
----
-5987

skipif mysql # not compatible
query I rowsort label-9569
SELECT ALL ( - 82 ) * CAST ( 73 AS INTEGER ) + COALESCE ( 96, - AVG ( + - 58 ), - - COALESCE ( - - 77, 48, CAST ( - NULLIF ( + 86, + CASE COUNT ( * ) WHEN - + 80 THEN COUNT ( - + 61 ) + 11 END * + COUNT ( * ) / + COUNT ( * ) + 35 - + - 68 - - COUNT ( * ) ) AS INTEGER ) ) * - 87 ) / + - 56
----
-5987

query I rowsort
SELECT - ( - 65 )
----
65

query I rowsort
SELECT + 60 + + 16
----
76

query I rowsort
SELECT + 77 + - 17 AS col2
----
60

query I rowsort
SELECT - 1 col0
----
-1

query I rowsort
SELECT ALL COALESCE ( - 75, - 20 ) AS col0
----
-75

query I rowsort
SELECT - 54 + - 70 col1
----
-124

onlyif mysql # aggregate syntax: 
query I rowsort label-9576
SELECT ALL SUM( ALL - 87 ) col0
----
-87

skipif mysql # not compatible
query I rowsort label-9576
SELECT ALL SUM ( ALL - 87 ) col0
----
-87

query I rowsort
SELECT - 30 + + 46 + - + ( - COALESCE ( + + ( + 35 ), + 84, 20 * + ( + 22 ) + + + 1 ) ) + - 48 AS col1
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9578
SELECT ALL - 5 DIV - CAST( + MAX( 16 ) AS SIGNED ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-9578
SELECT ALL - 5 / - CAST ( + MAX ( 16 ) AS INTEGER ) AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9579
SELECT ALL - COALESCE ( - 96, + 82, - 92 * 24 ) + - 58 + + - 93 + - + COUNT( * ) AS col1
----
-56

skipif mysql # not compatible
query I rowsort label-9579
SELECT ALL - COALESCE ( - 96, + 82, - 92 * 24 ) + - 58 + + - 93 + - + COUNT ( * ) AS col1
----
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-9580
SELECT DISTINCT - 87 * NULLIF ( - 76, - 12 + NULLIF ( 82, COUNT( * ) ) ) * - 70 AS col2
----
-462840

skipif mysql # not compatible
query I rowsort label-9580
SELECT DISTINCT - 87 * NULLIF ( - 76, - 12 + NULLIF ( 82, COUNT ( * ) ) ) * - 70 AS col2
----
-462840

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9581
SELECT 78 * - CAST( NULL AS SIGNED ) + + 4 + - 20 + - 10 * 17
----
NULL

skipif mysql # not compatible
query I rowsort label-9581
SELECT 78 * - CAST ( NULL AS INTEGER ) + + 4 + - 20 + - 10 * 17
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9582
SELECT - 0 - + COALESCE ( + 80, + 12 * + 45 * + COUNT( * ) )
----
-80

skipif mysql # not compatible
query I rowsort label-9582
SELECT - 0 - + COALESCE ( + 80, + 12 * + 45 * + COUNT ( * ) )
----
-80

onlyif mysql # DIV for integer division: 
query I rowsort label-9583
SELECT ALL - 6 DIV - 5
----
1

skipif mysql # not compatible
query I rowsort label-9583
SELECT ALL - 6 / - 5
----
1

query I rowsort
SELECT COALESCE ( + + 31, + 28 ) * 12 + - 89 * - 45 AS col2
----
4377

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9585
SELECT DISTINCT + COUNT( * ) DIV 52 + + 28 DIV - 57 + 21
----
21

skipif mysql # not compatible
query I rowsort label-9585
SELECT DISTINCT + COUNT ( * ) / 52 + + 28 / - 57 + 21
----
21

onlyif mysql # DIV for integer division: 
query I rowsort label-9586
SELECT ALL + 77 * 58 DIV 34 + - 31 * + + 35
----
-954

skipif mysql # not compatible
query I rowsort label-9586
SELECT ALL + 77 * 58 / 34 + - 31 * + + 35
----
-954

onlyif mysql # aggregate syntax: 
query I rowsort label-9587
SELECT + 54 * - MIN( 43 ) + + - CASE - 52 WHEN 33 * - MIN( + 80 ) - - 6 THEN NULL WHEN 0 THEN NULL ELSE - MAX( + - 93 ) * + 80 * - 21 * - 87 END
----
-13595202

skipif mysql # not compatible
query I rowsort label-9587
SELECT + 54 * - MIN ( 43 ) + + - CASE - 52 WHEN 33 * - MIN ( + 80 ) - - 6 THEN NULL WHEN 0 THEN NULL ELSE - MAX ( + - 93 ) * + 80 * - 21 * - 87 END
----
-13595202

onlyif mysql # aggregate syntax: 
query I rowsort label-9588
SELECT - - ( + 57 ) * - MIN( DISTINCT 17 ) AS col2
----
-969

skipif mysql # not compatible
query I rowsort label-9588
SELECT - - ( + 57 ) * - MIN ( DISTINCT 17 ) AS col2
----
-969

query I rowsort
SELECT DISTINCT + + 66 AS col1
----
66

query I rowsort
SELECT DISTINCT ( + + 29 ) * - 94 - + ( 68 )
----
-2794

query I rowsort
SELECT ALL + + 89 AS col0
----
89

query I rowsort
SELECT + + 89 col0
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-9593
SELECT + NULLIF ( - 38, - ( - - 59 ) / - + MIN( ALL - 12 ) * - COUNT( * ) + - 28 - + 29 ) * - COUNT( + 99 ) + + ( - 92 ) - - 45
----
-9

skipif mysql # not compatible
query I rowsort label-9593
SELECT + NULLIF ( - 38, - ( - - 59 ) / - + MIN ( ALL - 12 ) * - COUNT ( * ) + - 28 - + 29 ) * - COUNT ( + 99 ) + + ( - 92 ) - - 45
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-9594
SELECT ALL + MIN( ALL + 23 ) col2
----
23

skipif mysql # not compatible
query I rowsort label-9594
SELECT ALL + MIN ( ALL + 23 ) col2
----
23

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-9595
SELECT ALL - + 66 DIV ( - CASE + + 52 WHEN + 85 * - ( SUM( DISTINCT + 97 ) ) - COALESCE ( - - 58, - - 1 ) * SUM( DISTINCT - 54 ) THEN NULL ELSE 74 END ) AS col0, NULLIF ( - + 97, + AVG ( DISTINCT + 48 ) * - + 79 DIV + CAST( NULL AS SIGNED ) ) * - 44 AS col1
----
0
4268

skipif mysql # not compatible
query II rowsort label-9595
SELECT ALL - + 66 / ( - CASE + + 52 WHEN + 85 * - ( SUM ( DISTINCT + 97 ) ) - COALESCE ( - - 58, - - 1 ) * SUM ( DISTINCT - 54 ) THEN NULL ELSE 74 END ) AS col0, NULLIF ( - + 97, + AVG ( DISTINCT + 48 ) * - + 79 / + CAST ( NULL AS INTEGER ) ) * - 44 AS col1
----
0
4268

onlyif mysql # aggregate syntax: 
query I rowsort label-9596
SELECT DISTINCT CASE + - 60 WHEN + 54 THEN NULL WHEN - 14 * 94 * - + 43 * 90 THEN - COUNT( * ) + + COUNT( * ) * + 88 END * 39
----
NULL

skipif mysql # not compatible
query I rowsort label-9596
SELECT DISTINCT CASE + - 60 WHEN + 54 THEN NULL WHEN - 14 * 94 * - + 43 * 90 THEN - COUNT ( * ) + + COUNT ( * ) * + 88 END * 39
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9597
SELECT + + 40 DIV - + 12 + - COUNT( * ) AS col1
----
-4

skipif mysql # not compatible
query I rowsort label-9597
SELECT + + 40 / - + 12 + - COUNT ( * ) AS col1
----
-4

query I rowsort
SELECT 95 * - 63
----
-5985

query I rowsort
SELECT 30 + 77
----
107

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9600
SELECT 50 AS col1, + 1 + - + 48 + 50 * + COUNT( * ) DIV 95 * - 14
----
50
-47

skipif mysql # not compatible
query II rowsort label-9600
SELECT 50 AS col1, + 1 + - + 48 + 50 * + COUNT ( * ) / 95 * - 14
----
50
-47

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-9601
SELECT - 11 * - + ( CAST( NULL AS DECIMAL ) ) + - 69 + + + NULLIF ( - ( + 0 ), 52 ) + - - 51 * 98 * - 12 * CAST( NULL AS SIGNED ) * + ( + ( - 64 ) ) + + 9 col1, 15 - + 48 - - 76
----
NULL
43

skipif mysql # not compatible
query II rowsort label-9601
SELECT - 11 * - + ( CAST ( NULL AS REAL ) ) + - 69 + + + NULLIF ( - ( + 0 ), 52 ) + - - 51 * 98 * - 12 * CAST ( NULL AS INTEGER ) * + ( + ( - 64 ) ) + + 9 col1, 15 - + 48 - - 76
----
NULL
43

onlyif mysql # DIV for integer division: 
query I rowsort label-9602
SELECT 14 DIV + + 19 * - + 69 * 96 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-9602
SELECT 14 / + + 19 * - + 69 * 96 AS col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9603
SELECT 59 + + 86 - - - 39 + + 53 * 98 * 90 * 76 - + 3 * - 9 * - CAST( NULL AS SIGNED ) + - - SUM( + - NULLIF ( - ( - 47 ), 2 ) ) * - 96 + - - 3 * + + 61 * + - 2
----
NULL

skipif mysql # not compatible
query I rowsort label-9603
SELECT 59 + + 86 - - - 39 + + 53 * 98 * 90 * 76 - + 3 * - 9 * - CAST ( NULL AS INTEGER ) + - - SUM ( + - NULLIF ( - ( - 47 ), 2 ) ) * - 96 + - - 3 * + + 61 * + - 2
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-9604
SELECT 85 AS col1, ( - - 61 ) + + 81 DIV - - 58 AS col2
----
85
62

skipif mysql # not compatible
query II rowsort label-9604
SELECT 85 AS col1, ( - - 61 ) + + 81 / - - 58 AS col2
----
85
62

onlyif mysql # aggregate syntax: 
query I rowsort label-9605
SELECT DISTINCT - 1 + + COUNT( DISTINCT - + 54 )
----
0

skipif mysql # not compatible
query I rowsort label-9605
SELECT DISTINCT - 1 + + COUNT ( DISTINCT - + 54 )
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-9606
SELECT 66 AS col1, NULLIF ( + COUNT( * ), - + 41 / - - 32 + - + 59 + + 70 * - + 70 * + - 36 ) + 12 AS col0
----
66
13

skipif mysql # not compatible
query II rowsort label-9606
SELECT 66 AS col1, NULLIF ( + COUNT ( * ), - + 41 / - - 32 + - + 59 + + 70 * - + 70 * + - 36 ) + 12 AS col0
----
66
13

onlyif mysql # DIV for integer division: 
query I rowsort label-9607
SELECT 65 + 32 - COALESCE ( 53, - + 80, - 34 + + 73 DIV + 36 * - 32, 36 ) + - - ( - ( + + 96 ) ) + + + 70 * + + 39 * + + ( + + 73 ) * 12 AS col0
----
2391428

skipif mysql # not compatible
query I rowsort label-9607
SELECT 65 + 32 - COALESCE ( 53, - + 80, - 34 + + 73 / + 36 * - 32, 36 ) + - - ( - ( + + 96 ) ) + + + 70 * + + 39 * + + ( + + 73 ) * 12 AS col0
----
2391428

query I rowsort
SELECT DISTINCT 65 * - 6 col0
----
-390

query I rowsort
SELECT 39 * + - 73
----
-2847

query I rowsort
SELECT ALL - 84 + + NULLIF ( - + 78, 30 ) AS col0
----
-162

onlyif mysql # aggregate syntax: 
query I rowsort label-9611
SELECT DISTINCT - - ( - COUNT( * ) ) col2
----
-1

skipif mysql # not compatible
query I rowsort label-9611
SELECT DISTINCT - - ( - COUNT ( * ) ) col2
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9612
SELECT DISTINCT - 84, CAST( 98 AS SIGNED ) AS col1
----
-84
98

skipif mysql # not compatible
query II rowsort label-9612
SELECT DISTINCT - 84, CAST ( 98 AS INTEGER ) AS col1
----
-84
98

query I rowsort
SELECT ALL + 57 - + + 71 - - 62
----
48

onlyif mysql # DIV for integer division: 
query I rowsort label-9614
SELECT + 22 DIV + 54 * - + 75 + + 68 + - 85 AS col2
----
-17

skipif mysql # not compatible
query I rowsort label-9614
SELECT + 22 / + 54 * - + 75 + + 68 + - 85 AS col2
----
-17

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9615
SELECT 78 * + + 32 * + - MAX( 50 ) * - CAST( - COUNT( * ) AS SIGNED )
----
-124800

skipif mysql # not compatible
query I rowsort label-9615
SELECT 78 * + + 32 * + - MAX ( 50 ) * - CAST ( - COUNT ( * ) AS INTEGER )
----
-124800

onlyif mysql # aggregate syntax: 
query II rowsort label-9616
SELECT + + 66, COUNT( * ) AS col2
----
66
1

skipif mysql # not compatible
query II rowsort label-9616
SELECT + + 66, COUNT ( * ) AS col2
----
66
1

query I rowsort
SELECT 12 * 83 AS col2
----
996

query I rowsort
SELECT - 12 * - 49 AS col2
----
588

query I rowsort
SELECT 58 * - + 13
----
-754

onlyif mysql # aggregate syntax: 
query I rowsort label-9620
SELECT COUNT( * ) * COALESCE ( - 22, + - 73 + - 86 )
----
-22

skipif mysql # not compatible
query I rowsort label-9620
SELECT COUNT ( * ) * COALESCE ( - 22, + - 73 + - 86 )
----
-22

query I rowsort
SELECT + 34 * 6 - 10 AS col2
----
194

onlyif mysql # aggregate syntax: 
query I rowsort label-9622
SELECT ALL - ( - - COUNT( DISTINCT + - 8 ) ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-9622
SELECT ALL - ( - - COUNT ( DISTINCT + - 8 ) ) AS col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9623
SELECT ALL - 39 * + COUNT( * ) AS col1
----
-39

skipif mysql # not compatible
query I rowsort label-9623
SELECT ALL - 39 * + COUNT ( * ) AS col1
----
-39

query I rowsort
SELECT ALL - COALESCE ( - 2, + - 19, - 65 )
----
2

query I rowsort
SELECT 40 * + - ( - + 9 )
----
360

onlyif mysql # DIV for integer division: 
query I rowsort label-9626
SELECT DISTINCT - 32 DIV + 65 * 23 * - 83
----
0

skipif mysql # not compatible
query I rowsort label-9626
SELECT DISTINCT - 32 / + 65 * 23 * - 83
----
0

query I rowsort
SELECT ALL + ( - 53 ) + 82 AS col1
----
29

query II rowsort
SELECT DISTINCT - NULLIF ( 57, - 91 * - 17 * - ( - AVG ( 12 ) ) * - - 14 * - 77 ) + ( - - 26 ) - - - 38 * + ( + 86 ) AS col2, + 25 + - 22
----
-3299
3

query I rowsort
SELECT ALL + 78 + + - 86 AS col1
----
-8

query I rowsort
SELECT DISTINCT 60 + - 31 AS col2
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-9631
SELECT DISTINCT - ( COUNT( * ) ) + + COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-9631
SELECT DISTINCT - ( COUNT ( * ) ) + + COUNT ( * )
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-9632
SELECT ALL + 6 * 79, + COUNT( * ) AS col2
----
474
1

skipif mysql # not compatible
query II rowsort label-9632
SELECT ALL + 6 * 79, + COUNT ( * ) AS col2
----
474
1

query I rowsort
SELECT 29 + - 26
----
3

query I rowsort
SELECT 39 + + - 90 * ( 34 )
----
-3021

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9635
SELECT CASE + - 29 WHEN + 23 + 1 * 6 * + CASE + CAST( + - COUNT( * ) AS SIGNED ) WHEN + 3 - - ( 87 ) + + 76 THEN NULL WHEN - 62 * + 70 * - 71 THEN 36 + + + 94 WHEN + COUNT( ALL - 66 ) * + 59 + 3 * - - 59 THEN NULL END * - 19 + + + 96 THEN CAST( + NULLIF ( - - 57, - 62 ) AS SIGNED ) - - 51 WHEN - 21 THEN NULL END / 50
----
NULL

skipif mysql # not compatible
query I rowsort label-9635
SELECT CASE + - 29 WHEN + 23 + 1 * 6 * + CASE + CAST ( + - COUNT ( * ) AS INTEGER ) WHEN + 3 - - ( 87 ) + + 76 THEN NULL WHEN - 62 * + 70 * - 71 THEN 36 + + + 94 WHEN + COUNT ( ALL - 66 ) * + 59 + 3 * - - 59 THEN NULL END * - 19 + + + 96 THEN CAST ( + NULLIF ( - - 57, - 62 ) AS INTEGER ) - - 51 WHEN - 21 THEN NULL END / 50
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9636
SELECT COUNT( * ) * - 1 DIV + COUNT( * )
----
-1

skipif mysql # not compatible
query I rowsort label-9636
SELECT COUNT ( * ) * - 1 / + COUNT ( * )
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-9637
SELECT - COUNT( * ) AS col2, 47 AS col2
----
-1
47

skipif mysql # not compatible
query II rowsort label-9637
SELECT - COUNT ( * ) AS col2, 47 AS col2
----
-1
47

onlyif mysql # aggregate syntax: 
query I rowsort label-9638
SELECT ALL COUNT( + - 11 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-9638
SELECT ALL COUNT ( + - 11 ) AS col1
----
1

query II rowsort
SELECT - 2 AS col1, 14 AS col2
----
-2
14

query I rowsort
SELECT DISTINCT - 27 - 42
----
-69

query I rowsort
SELECT - 5 + + 83 AS col0
----
78

query I rowsort
SELECT 47 + - ( - 29 ) + - 93 AS col0
----
-17

query I rowsort
SELECT DISTINCT - 78 * + 14
----
-1092

onlyif mysql # aggregate syntax: 
query I rowsort label-9644
SELECT + + CASE COUNT( * ) WHEN + 84 THEN + 35 ELSE - COALESCE ( 51, + - ( - 89 ) ) * + - COUNT( * ) + + 94 - + 89 END AS col2
----
56

skipif mysql # not compatible
query I rowsort label-9644
SELECT + + CASE COUNT ( * ) WHEN + 84 THEN + 35 ELSE - COALESCE ( 51, + - ( - 89 ) ) * + - COUNT ( * ) + + 94 - + 89 END AS col2
----
56

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9645
SELECT ALL - CAST( + COUNT( * ) AS SIGNED ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-9645
SELECT ALL - CAST ( + COUNT ( * ) AS INTEGER ) AS col1
----
-1

query II rowsort
SELECT ALL - + 71, ( + - 7 ) * ( 14 ) col0
----
-71
-98

query I rowsort
SELECT 27 + - 17
----
10

query I rowsort
SELECT 57 * - 77 AS col0
----
-4389

query II rowsort
SELECT ALL - + 37 AS col1, 2
----
-37
2

onlyif mysql # aggregate syntax: 
query II rowsort label-9650
SELECT DISTINCT + 24 AS col2, ( - COUNT( * ) ) - + 53 AS col1
----
24
-54

skipif mysql # not compatible
query II rowsort label-9650
SELECT DISTINCT + 24 AS col2, ( - COUNT ( * ) ) - + 53 AS col1
----
24
-54

query II rowsort
SELECT + 43, 98 + + 73 * - + 30 AS col1
----
43
-2092

query I rowsort
SELECT - 4 + 26 AS col1
----
22

onlyif mysql # DIV for integer division: 
query I rowsort label-9653
SELECT ALL + + 98 DIV - 74 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-9653
SELECT ALL + + 98 / - 74 AS col1
----
-1

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9654
SELECT + + 13 DIV + CASE - - CAST( NULL AS SIGNED ) WHEN 9 * + 30 THEN - 18 WHEN + 34 THEN + 53 WHEN 91 THEN NULL ELSE + ( 15 ) END AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9654
SELECT + + 13 / + CASE - - CAST ( NULL AS INTEGER ) WHEN 9 * + 30 THEN - 18 WHEN + 34 THEN + 53 WHEN 91 THEN NULL ELSE + ( 15 ) END AS col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-9655
SELECT - + 7 * - 10 DIV + - COUNT( * ) + - NULLIF ( - 80, + 62 ), CAST( 63 AS SIGNED ) + - - 86 DIV + 95 AS col2
----
10
63

skipif mysql # not compatible
query II rowsort label-9655
SELECT - + 7 * - 10 / + - COUNT ( * ) + - NULLIF ( - 80, + 62 ), CAST ( 63 AS INTEGER ) + - - 86 / + 95 AS col2
----
10
63

query I rowsort
SELECT + - 75 AS col2
----
-75

query I rowsort
SELECT - - 32 * - + ( - + 88 ) AS col0
----
2816

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9658
SELECT DISTINCT - CAST( NULL AS SIGNED ) * - 39 * ( - - 78 ) * - 54 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9658
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * - 39 * ( - - 78 ) * - 54 AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9659
SELECT DISTINCT 2 + 25 + - + NULLIF ( - 59, + 64 ) DIV + 18 AS col0
----
30

skipif mysql # not compatible
query I rowsort label-9659
SELECT DISTINCT 2 + 25 + - + NULLIF ( - 59, + 64 ) / + 18 AS col0
----
30

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9660
SELECT DISTINCT + CAST( + 35 AS SIGNED ) + 7
----
42

skipif mysql # not compatible
query I rowsort label-9660
SELECT DISTINCT + CAST ( + 35 AS INTEGER ) + 7
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-9661
SELECT DISTINCT NULLIF ( 35, - - 10 * + - 31 + 26 + CASE - 1 WHEN 57 + - 53 THEN - 54 WHEN - - SUM( + 57 ) THEN NULL WHEN + + COUNT( * ) + - + 64 THEN NULL ELSE 98 END )
----
35

skipif mysql # not compatible
query I rowsort label-9661
SELECT DISTINCT NULLIF ( 35, - - 10 * + - 31 + 26 + CASE - 1 WHEN 57 + - 53 THEN - 54 WHEN - - SUM ( + 57 ) THEN NULL WHEN + + COUNT ( * ) + - + 64 THEN NULL ELSE 98 END )
----
35

query I rowsort
SELECT - NULLIF ( - + 99, - 18 * - - 44 + - + 50 * - 13 ) + 50 AS col1
----
149

onlyif mysql # aggregate syntax: 
query II rowsort label-9663
SELECT DISTINCT COUNT( + - 9 ) col0, + 52 col0
----
1
52

skipif mysql # not compatible
query II rowsort label-9663
SELECT DISTINCT COUNT ( + - 9 ) col0, + 52 col0
----
1
52

onlyif mysql # aggregate syntax: 
query I rowsort label-9664
SELECT ALL COUNT( ALL 50 )
----
1

skipif mysql # not compatible
query I rowsort label-9664
SELECT ALL COUNT ( ALL 50 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9665
SELECT - 95 * - COUNT( * )
----
95

skipif mysql # not compatible
query I rowsort label-9665
SELECT - 95 * - COUNT ( * )
----
95

onlyif mysql # aggregate syntax: 
query I rowsort label-9666
SELECT - COUNT( * ) + NULLIF ( - 87, - 12 ) AS col0
----
-88

skipif mysql # not compatible
query I rowsort label-9666
SELECT - COUNT ( * ) + NULLIF ( - 87, - 12 ) AS col0
----
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-9667
SELECT ALL NULLIF ( + 23, + + 83 * 36 - 61 * - + 10 / - + 18 * + - 54 * CASE + - ( - - 37 ) WHEN 71 * + 21 - + 36 + 17 * + + 1 + 15 + + + 79 * + 61 + - 65 + 96 THEN + 11 WHEN COALESCE ( + + SUM( + ( - 78 ) ), 37 ) + - - COUNT( * ) THEN NULL WHEN + 36 + COUNT( * ) * 45 / 23 THEN NULL ELSE 70 + 58 + + 42 * 62 * + - 17 + - 65 END + 4 ) AS col2
----
23

skipif mysql # not compatible
query I rowsort label-9667
SELECT ALL NULLIF ( + 23, + + 83 * 36 - 61 * - + 10 / - + 18 * + - 54 * CASE + - ( - - 37 ) WHEN 71 * + 21 - + 36 + 17 * + + 1 + 15 + + + 79 * + 61 + - 65 + 96 THEN + 11 WHEN COALESCE ( + + SUM ( + ( - 78 ) ), 37 ) + - - COUNT ( * ) THEN NULL WHEN + 36 + COUNT ( * ) * 45 / 23 THEN NULL ELSE 70 + 58 + + 42 * 62 * + - 17 + - 65 END + 4 ) AS col2
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-9668
SELECT ALL + 83 - - - SUM( ALL + + 55 )
----
28

skipif mysql # not compatible
query I rowsort label-9668
SELECT ALL + 83 - - - SUM ( ALL + + 55 )
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-9669
SELECT + ( - COUNT( * ) ) * + 85
----
-85

skipif mysql # not compatible
query I rowsort label-9669
SELECT + ( - COUNT ( * ) ) * + 85
----
-85

query I rowsort
SELECT ALL + 74 * + 37
----
2738

onlyif mysql # aggregate syntax: 
query I rowsort label-9671
SELECT DISTINCT COUNT( ALL - + ( + 97 ) ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-9671
SELECT DISTINCT COUNT ( ALL - + ( + 97 ) ) AS col2
----
1

query I rowsort
SELECT ALL 11 * + 77
----
847

onlyif mysql # DIV for integer division: 
query I rowsort label-9673
SELECT ALL + 84 * 50 DIV 63 * + - 31
----
-2046

skipif mysql # not compatible
query I rowsort label-9673
SELECT ALL + 84 * 50 / 63 * + - 31
----
-2046

onlyif mysql # aggregate syntax: 
query I rowsort label-9674
SELECT DISTINCT NULLIF ( - - 99, COUNT( * ) + ( - - 44 ) )
----
99

skipif mysql # not compatible
query I rowsort label-9674
SELECT DISTINCT NULLIF ( - - 99, COUNT ( * ) + ( - - 44 ) )
----
99

query I rowsort
SELECT DISTINCT + 66 - - - ( - + 12 ) + - 4 AS col1
----
74

query I rowsort
SELECT - + 18 * 73 + 1
----
-1313

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9677
SELECT + + COUNT( * ) * - NULLIF ( 10, - 18 / 96 * 55 + + 74 + - - CAST( + 1 AS DECIMAL ) * CAST( NULL AS SIGNED ) + 89 - + 23 * 67 + 73 * 87 ) * CAST( + 41 AS SIGNED )
----
-410

skipif mysql # not compatible
query I rowsort label-9677
SELECT + + COUNT ( * ) * - NULLIF ( 10, - 18 / 96 * 55 + + 74 + - - CAST ( + 1 AS REAL ) * CAST ( NULL AS INTEGER ) + 89 - + 23 * 67 + 73 * 87 ) * CAST ( + 41 AS INTEGER )
----
-410

query I rowsort
SELECT - - 43 * 55 + - 18 + - 72 AS col0
----
2275

onlyif mysql # aggregate syntax: 
query I rowsort label-9679
SELECT + + 79 * + COUNT( ALL - + 52 ) * - 28 AS col1
----
-2212

skipif mysql # not compatible
query I rowsort label-9679
SELECT + + 79 * + COUNT ( ALL - + 52 ) * - 28 AS col1
----
-2212

query II rowsort
SELECT + + 68 - + - 5, + 51 + + CASE + - 41 WHEN + 36 - 59 THEN NULL ELSE - 99 * - 50 END AS col2
----
73
5001

onlyif mysql # DIV for integer division: 
query I rowsort label-9681
SELECT ALL 64 DIV - - 66
----
0

skipif mysql # not compatible
query I rowsort label-9681
SELECT ALL 64 / - - 66
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9682
SELECT + 34 + + MIN( + - CAST( + 26 AS SIGNED ) )
----
8

skipif mysql # not compatible
query I rowsort label-9682
SELECT + 34 + + MIN ( + - CAST ( + 26 AS INTEGER ) )
----
8

query I rowsort
SELECT ALL + + 17 AS col1
----
17

query I rowsort
SELECT DISTINCT + + 26 AS col0
----
26

onlyif mysql # DIV for integer division: 
query II rowsort label-9685
SELECT ALL - 46 DIV 28 + 48 AS col1, 9
----
47
9

skipif mysql # not compatible
query II rowsort label-9685
SELECT ALL - 46 / 28 + 48 AS col1, 9
----
47
9

query I rowsort
SELECT ALL 5 * - 58
----
-290

query II rowsort
SELECT + + 16 * 13 AS col0, 54 * + 9
----
208
486

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9688
SELECT + + CAST( NULL AS SIGNED ) + - 91 + + - CAST( NULL AS SIGNED ) + + 19 / COUNT( * ) / + 36 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9688
SELECT + + CAST ( NULL AS INTEGER ) + - 91 + + - CAST ( NULL AS INTEGER ) + + 19 / COUNT ( * ) / + 36 AS col0
----
NULL

query I rowsort
SELECT + - 10 AS col1
----
-10

onlyif mysql # aggregate syntax: 
query II rowsort label-9690
SELECT + + MAX( + + 83 ), - 47 AS col0
----
83
-47

skipif mysql # not compatible
query II rowsort label-9690
SELECT + + MAX ( + + 83 ), - 47 AS col0
----
83
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-9691
SELECT COUNT( * ) * - 4 + 55
----
51

skipif mysql # not compatible
query I rowsort label-9691
SELECT COUNT ( * ) * - 4 + 55
----
51

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9692
SELECT ALL + + ( + CAST( NULL AS SIGNED ) ) * - 98 * ( - + COUNT( * ) ) + - ( - 45 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9692
SELECT ALL + + ( + CAST ( NULL AS INTEGER ) ) * - 98 * ( - + COUNT ( * ) ) + - ( - 45 )
----
NULL

query I rowsort
SELECT + 50 * - 33
----
-1650

query I rowsort
SELECT ALL + - CASE + + 28 WHEN 76 THEN + - 77 ELSE NULL END AS col0
----
NULL

query I rowsort
SELECT ( - 91 ) AS col0
----
-91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9696
SELECT + CAST( + + COUNT( + + 20 ) AS SIGNED ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-9696
SELECT + CAST ( + + COUNT ( + + 20 ) AS INTEGER ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9697
SELECT ALL - 34 * 1 * COUNT( * ) + + - MAX( ALL + 57 ) AS col0
----
-91

skipif mysql # not compatible
query I rowsort label-9697
SELECT ALL - 34 * 1 * COUNT ( * ) + + - MAX ( ALL + 57 ) AS col0
----
-91

onlyif mysql # aggregate syntax: 
query II rowsort label-9698
SELECT ALL 67 * - - 91 + - 71 + - 58 AS col1, - COUNT( DISTINCT - - 80 ) AS col1
----
5968
-1

skipif mysql # not compatible
query II rowsort label-9698
SELECT ALL 67 * - - 91 + - 71 + - 58 AS col1, - COUNT ( DISTINCT - - 80 ) AS col1
----
5968
-1

query I rowsort
SELECT DISTINCT - 51 * 90 + 15 + - - 10
----
-4565

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9700
SELECT + 48 * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9700
SELECT + 48 * + CAST ( NULL AS INTEGER )
----
NULL

query II rowsort
SELECT - 4 AS col2, + 82 * + 45 AS col2
----
-4
3690

onlyif mysql # aggregate syntax: 
query II rowsort label-9702
SELECT + 65 - + - COUNT( * ) + - 16 + + 76 * 72 * - COUNT( * ) col0, - 30 AS col0
----
-5422
-30

skipif mysql # not compatible
query II rowsort label-9702
SELECT + 65 - + - COUNT ( * ) + - 16 + + 76 * 72 * - COUNT ( * ) col0, - 30 AS col0
----
-5422
-30

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9703
SELECT - 71 / - CAST( NULL AS SIGNED ) * COUNT( ALL - + 80 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9703
SELECT - 71 / - CAST ( NULL AS INTEGER ) * COUNT ( ALL - + 80 )
----
NULL

query I rowsort
SELECT DISTINCT - 43 * - 28
----
1204

onlyif mysql # aggregate syntax: 
query I rowsort label-9705
SELECT ALL + 88 * + COUNT( * ) AS col2
----
88

skipif mysql # not compatible
query I rowsort label-9705
SELECT ALL + 88 * + COUNT ( * ) AS col2
----
88

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9706
SELECT ALL 41 * + 23 DIV - COUNT( * ) - + 64 AS col1
----
-1007

skipif mysql # not compatible
query I rowsort label-9706
SELECT ALL 41 * + 23 / - COUNT ( * ) - + 64 AS col1
----
-1007

query I rowsort
SELECT ALL ( - + 85 )
----
-85

query II rowsort
SELECT - 15 AS col1, 58 AS col2
----
-15
58

onlyif mysql # aggregate syntax: 
query I rowsort label-9709
SELECT DISTINCT 82 * - + 98 * - COUNT( * ) AS col0
----
8036

skipif mysql # not compatible
query I rowsort label-9709
SELECT DISTINCT 82 * - + 98 * - COUNT ( * ) AS col0
----
8036

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9710
SELECT ALL CAST( + + 67 AS SIGNED ) AS col0
----
67

skipif mysql # not compatible
query I rowsort label-9710
SELECT ALL CAST ( + + 67 AS INTEGER ) AS col0
----
67

query I rowsort
SELECT - ( 3 ) - - 95 + - 75 - - + 86 + - 69 * + 78 col0
----
-5279

onlyif mysql # aggregate syntax: 
query I rowsort label-9712
SELECT ALL ( + MIN( + - 24 ) ) AS col2
----
-24

skipif mysql # not compatible
query I rowsort label-9712
SELECT ALL ( + MIN ( + - 24 ) ) AS col2
----
-24

query II rowsort
SELECT 33, - 99 AS col0
----
33
-99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9714
SELECT - + CAST( 37 AS SIGNED ) + + COUNT( * ) AS col1, - 43 AS col2
----
-36
-43

skipif mysql # not compatible
query II rowsort label-9714
SELECT - + CAST ( 37 AS INTEGER ) + + COUNT ( * ) AS col1, - 43 AS col2
----
-36
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-9715
SELECT - + ( COALESCE ( + ( - + 4 ), + COUNT( * ), - 29 + - - 74 ) )
----
4

skipif mysql # not compatible
query I rowsort label-9715
SELECT - + ( COALESCE ( + ( - + 4 ), + COUNT ( * ), - 29 + - - 74 ) )
----
4

query I rowsort
SELECT - - 18 col0
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-9717
SELECT - ( MIN( - - 17 ) ) * 3
----
-51

skipif mysql # not compatible
query I rowsort label-9717
SELECT - ( MIN ( - - 17 ) ) * 3
----
-51

query I rowsort
SELECT - 9 + - 73
----
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-9719
SELECT ALL + + 24 + + COUNT( * )
----
25

skipif mysql # not compatible
query I rowsort label-9719
SELECT ALL + + 24 + + COUNT ( * )
----
25

query I rowsort
SELECT - 23 + - + NULLIF ( + - 78, - 66 * + + ( ( 94 ) ) + + + 35 ) AS col1
----
55

onlyif mysql # DIV for integer division: 
query I rowsort label-9721
SELECT - - 6 DIV - 83 + 77
----
77

skipif mysql # not compatible
query I rowsort label-9721
SELECT - - 6 / - 83 + 77
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-9722
SELECT - 36 + - NULLIF ( - - ( CASE + AVG ( ALL + 32 ) WHEN - 72 + 16 THEN COUNT( * ) END ), - - 19 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9722
SELECT - 36 + - NULLIF ( - - ( CASE + AVG ( ALL + 32 ) WHEN - 72 + 16 THEN COUNT ( * ) END ), - - 19 )
----
NULL

query I rowsort
SELECT ALL - 42 + + + 14 col2
----
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-9724
SELECT DISTINCT + - 57 * - - COALESCE ( 95, + 8 * + MIN( ALL + - 2 ) + - - 49 * - 64 * 0 + + 95, + 10 ) AS col2
----
-5415

skipif mysql # not compatible
query I rowsort label-9724
SELECT DISTINCT + - 57 * - - COALESCE ( 95, + 8 * + MIN ( ALL + - 2 ) + - - 49 * - 64 * 0 + + 95, + 10 ) AS col2
----
-5415

query I rowsort
SELECT ALL + - 94 + - + 71
----
-165

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9726
SELECT - + 33 AS col2, - 12 DIV - 91 + - + 32 + - - COUNT( * )
----
-33
-31

skipif mysql # not compatible
query II rowsort label-9726
SELECT - + 33 AS col2, - 12 / - 91 + - + 32 + - - COUNT ( * )
----
-33
-31

query I rowsort
SELECT ALL - 51 * 26 AS col0
----
-1326

onlyif mysql # aggregate syntax: 
query I rowsort label-9728
SELECT - - NULLIF ( + COALESCE ( + - COALESCE ( + + MAX( DISTINCT - 94 ), + + 24 * - + 75 ), COUNT( * ), 3 ), + + AVG ( + - 32 ) * 61 * - NULLIF ( - 5, - - 65 + - - COUNT( * ) ) * + - 17 + + + COUNT( * ) ) AS col1
----
94

skipif mysql # not compatible
query I rowsort label-9728
SELECT - - NULLIF ( + COALESCE ( + - COALESCE ( + + MAX ( DISTINCT - 94 ), + + 24 * - + 75 ), COUNT ( * ), 3 ), + + AVG ( + - 32 ) * 61 * - NULLIF ( - 5, - - 65 + - - COUNT ( * ) ) * + - 17 + + + COUNT ( * ) ) AS col1
----
94

query I rowsort
SELECT - 81 * - COALESCE ( - 73, - 25 ) * - 66 * - 88 AS col1
----
-34342704

onlyif mysql # aggregate syntax: 
query I rowsort label-9730
SELECT DISTINCT + 60 + + - 61 * + COUNT( * ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-9730
SELECT DISTINCT + 60 + + - 61 * + COUNT ( * ) AS col0
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-9731
SELECT DISTINCT - 68 DIV + 92
----
0

skipif mysql # not compatible
query I rowsort label-9731
SELECT DISTINCT - 68 / + 92
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9732
SELECT 5 / - - CASE 40 WHEN CAST( - - ( + COUNT( * ) ) AS SIGNED ) - + 5 - + 48 / + 5 THEN NULL WHEN 94 THEN COUNT( * ) + - 8 WHEN 62 THEN 51 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9732
SELECT 5 / - - CASE 40 WHEN CAST ( - - ( + COUNT ( * ) ) AS INTEGER ) - + 5 - + 48 / + 5 THEN NULL WHEN 94 THEN COUNT ( * ) + - 8 WHEN 62 THEN 51 END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9733
SELECT DISTINCT - MIN( ALL + 72 )
----
-72

skipif mysql # not compatible
query I rowsort label-9733
SELECT DISTINCT - MIN ( ALL + 72 )
----
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-9734
SELECT + 7 * - - COUNT( * ) - - + 94 + + 2 * 55 AS col0
----
211

skipif mysql # not compatible
query I rowsort label-9734
SELECT + 7 * - - COUNT ( * ) - - + 94 + + 2 * 55 AS col0
----
211

query I rowsort
SELECT + 36 col2
----
36

query I rowsort
SELECT 30 + 84 AS col0
----
114

onlyif mysql # aggregate syntax: 
query I rowsort label-9737
SELECT 83 * + 90 * + 34 * + COUNT( * ) - - 48 AS col1
----
254028

skipif mysql # not compatible
query I rowsort label-9737
SELECT 83 * + 90 * + 34 * + COUNT ( * ) - - 48 AS col1
----
254028

query I rowsort
SELECT ALL 7 - 57
----
-50

query I rowsort
SELECT COALESCE ( - + 82, CASE - + 90 WHEN - - 94 / - + 85 THEN - + 63 WHEN + 9 THEN NULL END * - 44 ) + 52 * + 93
----
4754

onlyif mysql # aggregate syntax: 
query I rowsort label-9740
SELECT DISTINCT 1 * + - COUNT( * ) * - - ( 22 ) col0
----
-22

skipif mysql # not compatible
query I rowsort label-9740
SELECT DISTINCT 1 * + - COUNT ( * ) * - - ( 22 ) col0
----
-22

query II rowsort
SELECT 58 * - 10 AS col1, - 47 AS col1
----
-580
-47

query II rowsort
SELECT ALL 47 * + 65 AS col2, 60 AS col1
----
3055
60

query I rowsort
SELECT DISTINCT 82 - + - 61 + + 89 AS col0
----
232

onlyif mysql # aggregate syntax: 
query I rowsort label-9744
SELECT 84 * + + COUNT( * )
----
84

skipif mysql # not compatible
query I rowsort label-9744
SELECT 84 * + + COUNT ( * )
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-9745
SELECT 90 + COUNT( * )
----
91

skipif mysql # not compatible
query I rowsort label-9745
SELECT 90 + COUNT ( * )
----
91

onlyif mysql # DIV for integer division: 
query I rowsort label-9746
SELECT DISTINCT 35 DIV 24 DIV 5 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-9746
SELECT DISTINCT 35 / 24 / 5 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9747
SELECT CASE + COUNT( * ) WHEN 54 THEN NULL WHEN ( 39 ) + - 69 / 14 THEN + - COUNT( * ) WHEN - + 17 THEN NULL END * + SUM( ALL 62 ) * + 90 / 10 * - 21 + 61 * - 67 * + 73
----
NULL

skipif mysql # not compatible
query I rowsort label-9747
SELECT CASE + COUNT ( * ) WHEN 54 THEN NULL WHEN ( 39 ) + - 69 / 14 THEN + - COUNT ( * ) WHEN - + 17 THEN NULL END * + SUM ( ALL 62 ) * + 90 / 10 * - 21 + 61 * - 67 * + 73
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9748
SELECT 73 * + COUNT( * ) * + COUNT( * )
----
73

skipif mysql # not compatible
query I rowsort label-9748
SELECT 73 * + COUNT ( * ) * + COUNT ( * )
----
73

query I rowsort
SELECT 9 + - 16 * - + 49 AS col1
----
793

onlyif mysql # aggregate syntax: 
query II rowsort label-9750
SELECT ALL 70 * 38 AS col2, 72 + 96 + + 3 * COUNT( * ) * 58 + - 74 - + - 43 AS col1
----
2660
311

skipif mysql # not compatible
query II rowsort label-9750
SELECT ALL 70 * 38 AS col2, 72 + 96 + + 3 * COUNT ( * ) * 58 + - 74 - + - 43 AS col1
----
2660
311

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9751
SELECT COUNT( * ) DIV + - COUNT( * ) + + + 68 DIV 32 col1
----
1

skipif mysql # not compatible
query I rowsort label-9751
SELECT COUNT ( * ) / + - COUNT ( * ) + + + 68 / 32 col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9752
SELECT DISTINCT - + 34 * + ( NULLIF ( 91, - CASE + 56 WHEN + + COUNT( * ) / - 95 + + ( COUNT( * ) ) * + + 11 THEN - - COUNT( + - 53 ) + 66 WHEN COUNT( * ) THEN NULL ELSE NULL END * - 84 + - COALESCE ( 3, + COUNT( DISTINCT 7 ) ) + + 49 + - COUNT( - 23 ) * - 17 * + - 38 ) ) AS col2
----
-3094

skipif mysql # not compatible
query I rowsort label-9752
SELECT DISTINCT - + 34 * + ( NULLIF ( 91, - CASE + 56 WHEN + + COUNT ( * ) / - 95 + + ( COUNT ( * ) ) * + + 11 THEN - - COUNT ( + - 53 ) + 66 WHEN COUNT ( * ) THEN NULL ELSE NULL END * - 84 + - COALESCE ( 3, + COUNT ( DISTINCT 7 ) ) + + 49 + - COUNT ( - 23 ) * - 17 * + - 38 ) ) AS col2
----
-3094

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9753
SELECT - - COALESCE ( - 13, + - 36 DIV - 76 * - - 51 * - - COUNT( * ) ) col0
----
-13

skipif mysql # not compatible
query I rowsort label-9753
SELECT - - COALESCE ( - 13, + - 36 / - 76 * - - 51 * - - COUNT ( * ) ) col0
----
-13

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9754
SELECT ALL + 16 * MIN( DISTINCT 73 ) DIV - COUNT( * ), 11 AS col1
----
-1168
11

skipif mysql # not compatible
query II rowsort label-9754
SELECT ALL + 16 * MIN ( DISTINCT 73 ) / - COUNT ( * ), 11 AS col1
----
-1168
11

onlyif mysql # aggregate syntax: 
query II rowsort label-9755
SELECT + COUNT( * ) * + COUNT( * ) AS col1, 37 + SUM( ALL + 48 ) + + 33 AS col2
----
1
118

skipif mysql # not compatible
query II rowsort label-9755
SELECT + COUNT ( * ) * + COUNT ( * ) AS col1, 37 + SUM ( ALL + 48 ) + + 33 AS col2
----
1
118

query I rowsort
SELECT ALL + 46 * + 0 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9757
SELECT + 20 * + - MAX( 38 ) * NULLIF ( + + 26, - 50 )
----
-19760

skipif mysql # not compatible
query I rowsort label-9757
SELECT + 20 * + - MAX ( 38 ) * NULLIF ( + + 26, - 50 )
----
-19760

onlyif mysql # aggregate syntax: 
query I rowsort label-9758
SELECT ALL + 66 + COUNT( * ) + + - 97 AS col1
----
-30

skipif mysql # not compatible
query I rowsort label-9758
SELECT ALL + 66 + COUNT ( * ) + + - 97 AS col1
----
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-9759
SELECT ALL - 22 + COUNT( * )
----
-21

skipif mysql # not compatible
query I rowsort label-9759
SELECT ALL - 22 + COUNT ( * )
----
-21

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9760
SELECT + 87 * 71 - + NULLIF ( - 38, - - CAST( 78 AS SIGNED ) ) + - - 61 + COUNT( * )
----
6277

skipif mysql # not compatible
query I rowsort label-9760
SELECT + 87 * 71 - + NULLIF ( - 38, - - CAST ( 78 AS INTEGER ) ) + - - 61 + COUNT ( * )
----
6277

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9761
SELECT - 57 * 37 * + COUNT( * ) * + 92 + + 55 + + 26 DIV COUNT( * )
----
-193947

skipif mysql # not compatible
query I rowsort label-9761
SELECT - 57 * 37 * + COUNT ( * ) * + 92 + + 55 + + 26 / COUNT ( * )
----
-193947

onlyif mysql # aggregate syntax: 
query I rowsort label-9762
SELECT COALESCE ( - ( - 26 ), + COUNT( * ) - 8 )
----
26

skipif mysql # not compatible
query I rowsort label-9762
SELECT COALESCE ( - ( - 26 ), + COUNT ( * ) - 8 )
----
26

onlyif mysql # aggregate syntax: 
query II rowsort label-9763
SELECT ALL + - 92 + - 66 * - NULLIF ( + SUM( + - 29 ), - + 1 ) + - 52 + - 1 * - - SUM( DISTINCT - COALESCE ( + 86, - 74 ) ) AS col0, NULLIF ( - 60, - + 86 + + 98 * + MIN( ALL + + CASE + 78 WHEN - - 79 THEN - + 96 * - 84 END ) )
----
-1972
-60

skipif mysql # not compatible
query II rowsort label-9763
SELECT ALL + - 92 + - 66 * - NULLIF ( + SUM ( + - 29 ), - + 1 ) + - 52 + - 1 * - - SUM ( DISTINCT - COALESCE ( + 86, - 74 ) ) AS col0, NULLIF ( - 60, - + 86 + + 98 * + MIN ( ALL + + CASE + 78 WHEN - - 79 THEN - + 96 * - 84 END ) )
----
-1972
-60

query I rowsort
SELECT - + 24 AS col1
----
-24

query I rowsort
SELECT DISTINCT - COALESCE ( + 75, - 61 + - 59 + + - 99 ) + 72 AS col2
----
-3

query I rowsort
SELECT + NULLIF ( - 72, + 88 ) + 50 - - 54 + ( + 69 ) * - - 65 - + 82
----
4435

query I rowsort
SELECT DISTINCT - - 62 + - ( - - 57 ) col1
----
5

onlyif mysql # aggregate syntax: 
query II rowsort label-9768
SELECT DISTINCT - COUNT( * ) + - COUNT( * ) AS col1, ( - 65 ) + 63 col0
----
-2
-2

skipif mysql # not compatible
query II rowsort label-9768
SELECT DISTINCT - COUNT ( * ) + - COUNT ( * ) AS col1, ( - 65 ) + 63 col0
----
-2
-2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9769
SELECT ALL - - CAST( NULL AS SIGNED ) * - ( + 95 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9769
SELECT ALL - - CAST ( NULL AS INTEGER ) * - ( + 95 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9770
SELECT ALL - + 87 * - 98 * - COUNT( * ) * - + 86 + - COUNT( * ) AS col2
----
733235

skipif mysql # not compatible
query I rowsort label-9770
SELECT ALL - + 87 * - 98 * - COUNT ( * ) * - + 86 + - COUNT ( * ) AS col2
----
733235

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9771
SELECT AVG ( ALL + 87 ) + + - CAST( NULL AS DECIMAL ) + + 93 - + + NULLIF ( 76, + + 33 * - COUNT( * ) ) / + - 87 * + ( 19 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9771
SELECT AVG ( ALL + 87 ) + + - CAST ( NULL AS REAL ) + + 93 - + + NULLIF ( 76, + + 33 * - COUNT ( * ) ) / + - 87 * + ( 19 )
----
NULL

query I rowsort
SELECT 39 * - 30 col2
----
-1170

query I rowsort
SELECT ( 45 ) * - 92 + - 62 AS col1
----
-4202

onlyif mysql # aggregate syntax: 
query II rowsort label-9774
SELECT COUNT( * ) AS col1, - 54 AS col1
----
1
-54

skipif mysql # not compatible
query II rowsort label-9774
SELECT COUNT ( * ) AS col1, - 54 AS col1
----
1
-54

onlyif mysql # DIV for integer division: 
query I rowsort label-9775
SELECT ALL 36 DIV - 8
----
-4

skipif mysql # not compatible
query I rowsort label-9775
SELECT ALL 36 / - 8
----
-4

query I rowsort
SELECT 65 * + 0 AS col2
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-9777
SELECT ALL - COUNT( * ), - 82 * + + 9 * + 16 AS col0
----
-1
-11808

skipif mysql # not compatible
query II rowsort label-9777
SELECT ALL - COUNT ( * ), - 82 * + + 9 * + 16 AS col0
----
-1
-11808

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9778
SELECT DISTINCT 54 DIV CAST( + 8 AS SIGNED ) AS col2
----
6

skipif mysql # not compatible
query I rowsort label-9778
SELECT DISTINCT 54 / CAST ( + 8 AS INTEGER ) AS col2
----
6

query I rowsort
SELECT DISTINCT 47 * + 17 AS col2
----
799

query I rowsort
SELECT DISTINCT - 22 col2
----
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-9781
SELECT 93 * + COUNT( * ) col0
----
93

skipif mysql # not compatible
query I rowsort label-9781
SELECT 93 * + COUNT ( * ) col0
----
93

query I rowsort
SELECT 64 * - 81
----
-5184

query II rowsort
SELECT 72, 90 AS col2
----
72
90

query I rowsort
SELECT 18 * 99 AS col2
----
1782

query I rowsort
SELECT 89 - COALESCE ( + 96, + ( - NULLIF ( - 5, AVG ( - + 92 ) * + 50 + 46 ) ) * 15 + - 32, 12 ) + - 10 * - 47
----
463

query I rowsort
SELECT ALL - 53 * + 40 AS col2
----
-2120

query I rowsort
SELECT ALL + 87 + + 24 AS col0
----
111

onlyif mysql # aggregate syntax: 
query II rowsort label-9788
SELECT - 99, + COUNT( * ) AS col2
----
-99
1

skipif mysql # not compatible
query II rowsort label-9788
SELECT - 99, + COUNT ( * ) AS col2
----
-99
1

query I rowsort
SELECT DISTINCT - 17 * + 85
----
-1445

query I rowsort
SELECT DISTINCT 70 + + 66
----
136

onlyif mysql # aggregate syntax: 
query II rowsort label-9791
SELECT ALL ( - 75 ) + 0 * - - SUM( + + ( - 36 ) ), 93 AS col1
----
-75
93

skipif mysql # not compatible
query II rowsort label-9791
SELECT ALL ( - 75 ) + 0 * - - SUM ( + + ( - 36 ) ), 93 AS col1
----
-75
93

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9792
SELECT CAST( + 91 AS SIGNED )
----
91

skipif mysql # not compatible
query I rowsort label-9792
SELECT CAST ( + 91 AS INTEGER )
----
91

query I rowsort
SELECT ALL 88 + - 76 AS col0
----
12

query I rowsort
SELECT + 27 - - + 65 AS col0
----
92

query I rowsort
SELECT ALL + 35 + + 28 col2
----
63

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9796
SELECT + 85 + + 36 * - + 72 - 25 / + CAST( NULL AS SIGNED ) + - 10
----
NULL

skipif mysql # not compatible
query I rowsort label-9796
SELECT + 85 + + 36 * - + 72 - 25 / + CAST ( NULL AS INTEGER ) + - 10
----
NULL

query I rowsort
SELECT - 54 * + 34 AS col1
----
-1836

onlyif mysql # aggregate syntax: 
query I rowsort label-9798
SELECT - + COUNT( ALL + - 70 )
----
-1

skipif mysql # not compatible
query I rowsort label-9798
SELECT - + COUNT ( ALL + - 70 )
----
-1

query II rowsort
SELECT - 84, 52 AS col0
----
-84
52

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9800
SELECT ALL + 85 + - ( - 44 ), MAX( ( - + 63 ) ) * 74 * + CAST( NULL AS SIGNED ) + + 45 AS col1
----
129
NULL

skipif mysql # not compatible
query II rowsort label-9800
SELECT ALL + 85 + - ( - 44 ), MAX ( ( - + 63 ) ) * 74 * + CAST ( NULL AS INTEGER ) + + 45 AS col1
----
129
NULL

query I rowsort
SELECT + - 79 + ( + - 24 ) - + + 47
----
-150

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9802
SELECT ALL - - CASE - COUNT( * ) WHEN 57 * + - 72 + - + 89 + ( 31 ) + + + COUNT( - 38 ) THEN NULL WHEN - - 18 THEN 57 WHEN + CAST( NULL AS DECIMAL ) THEN - 68 * - + COUNT( * ) + - CASE 6 WHEN + 69 THEN NULL WHEN ( + 57 ) THEN NULL WHEN + ( + 15 ) * - 52 * - - COALESCE ( 20, + + AVG ( DISTINCT + ( - - 21 ) ) - + 78 ) THEN + 91 ELSE NULL END END * ( - 47 ) + - - 72 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9802
SELECT ALL - - CASE - COUNT ( * ) WHEN 57 * + - 72 + - + 89 + ( 31 ) + + + COUNT ( - 38 ) THEN NULL WHEN - - 18 THEN 57 WHEN + CAST ( NULL AS REAL ) THEN - 68 * - + COUNT ( * ) + - CASE 6 WHEN + 69 THEN NULL WHEN ( + 57 ) THEN NULL WHEN + ( + 15 ) * - 52 * - - COALESCE ( 20, + + AVG ( DISTINCT + ( - - 21 ) ) - + 78 ) THEN + 91 ELSE NULL END END * ( - 47 ) + - - 72 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9803
SELECT DISTINCT + SUM( ALL + ( 23 ) ) AS col2, - 30 * + 81 AS col2
----
23
-2430

skipif mysql # not compatible
query II rowsort label-9803
SELECT DISTINCT + SUM ( ALL + ( 23 ) ) AS col2, - 30 * + 81 AS col2
----
23
-2430

query I rowsort
SELECT ALL COALESCE ( + 2, 56 ) * + 28
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-9805
SELECT + 87 * - COUNT( * )
----
-87

skipif mysql # not compatible
query I rowsort label-9805
SELECT + 87 * - COUNT ( * )
----
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-9806
SELECT - ( - ( + - 97 ) ) * - 4 * - 68 * - MAX( ALL - 19 )
----
-501296

skipif mysql # not compatible
query I rowsort label-9806
SELECT - ( - ( + - 97 ) ) * - 4 * - 68 * - MAX ( ALL - 19 )
----
-501296

onlyif mysql # aggregate syntax: 
query II rowsort label-9807
SELECT CASE + 49 WHEN + - COUNT( * ) / + 7 THEN + 67 END, - 0 - + 33 * 22 * - 67 + + - 45 AS col0
----
NULL
48597

skipif mysql # not compatible
query II rowsort label-9807
SELECT CASE + 49 WHEN + - COUNT ( * ) / + 7 THEN + 67 END, - 0 - + 33 * 22 * - 67 + + - 45 AS col0
----
NULL
48597

onlyif mysql # aggregate syntax: 
query I rowsort label-9808
SELECT - CASE + 50 WHEN - - MIN( 61 ) + - 87 + + + 86 THEN NULL WHEN 10 + + 78 THEN + 54 + - - 17 + - - 36 * - 94 ELSE NULL END + - 71 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9808
SELECT - CASE + 50 WHEN - - MIN ( 61 ) + - 87 + + + 86 THEN NULL WHEN 10 + + 78 THEN + 54 + - - 17 + - - 36 * - 94 ELSE NULL END + - 71 AS col1
----
NULL

query I rowsort
SELECT ( + - 2 ) AS col0
----
-2

query I rowsort
SELECT + 48 * + 48
----
2304

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9811
SELECT - COUNT( ALL + CAST( 31 AS SIGNED ) ) * + + ( + MIN( DISTINCT + + 33 ) ) + - 84 AS col2
----
-117

skipif mysql # not compatible
query I rowsort label-9811
SELECT - COUNT ( ALL + CAST ( 31 AS INTEGER ) ) * + + ( + MIN ( DISTINCT + + 33 ) ) + - 84 AS col2
----
-117

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9812
SELECT ( + COUNT( * ) ), CAST( NULL AS SIGNED ) AS col2
----
1
NULL

skipif mysql # not compatible
query II rowsort label-9812
SELECT ( + COUNT ( * ) ), CAST ( NULL AS INTEGER ) AS col2
----
1
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9813
SELECT ALL + MAX( + 68 ) AS col0
----
68

skipif mysql # not compatible
query I rowsort label-9813
SELECT ALL + MAX ( + 68 ) AS col0
----
68

query I rowsort
SELECT - ( - 71 ) + 99 AS col1
----
170

query I rowsort
SELECT NULLIF ( + 54, + - 31 )
----
54

query II rowsort
SELECT ALL + 3, 82 * + 43 AS col0
----
3
3526

onlyif mysql # aggregate syntax: 
query I rowsort label-9817
SELECT ALL - 29 * - SUM( ALL - + NULLIF ( 74, + 63 ) )
----
-2146

skipif mysql # not compatible
query I rowsort label-9817
SELECT ALL - 29 * - SUM ( ALL - + NULLIF ( 74, + 63 ) )
----
-2146

onlyif mysql # aggregate syntax: 
query I rowsort label-9818
SELECT - COUNT( * ) * - - 9 AS col2
----
-9

skipif mysql # not compatible
query I rowsort label-9818
SELECT - COUNT ( * ) * - - 9 AS col2
----
-9

onlyif mysql # DIV for integer division: 
query I rowsort label-9819
SELECT ALL - 56 DIV + 39 col2
----
-1

skipif mysql # not compatible
query I rowsort label-9819
SELECT ALL - 56 / + 39 col2
----
-1

query I rowsort
SELECT DISTINCT + 11 * - + ( 51 ) AS col1
----
-561

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9821
SELECT 57 DIV - 55 + - 44 + COALESCE ( - 63, + COUNT( * ) + + 36 + - COUNT( * ) * - + 40 DIV COALESCE ( - 24, COUNT( * ) ) )
----
-108

skipif mysql # not compatible
query I rowsort label-9821
SELECT 57 / - 55 + - 44 + COALESCE ( - 63, + COUNT ( * ) + + 36 + - COUNT ( * ) * - + 40 / COALESCE ( - 24, COUNT ( * ) ) )
----
-108

query I rowsort
SELECT 20 * - + COALESCE ( - 24, ( 58 ) + + 29, ( + 66 ) * + - 29 ) - + 5 AS col1
----
475

query II rowsort
SELECT DISTINCT + 25, - 56 AS col1
----
25
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-9824
SELECT ALL + COUNT( * ) * + COUNT( * ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-9824
SELECT ALL + COUNT ( * ) * + COUNT ( * ) AS col0
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9825
SELECT DISTINCT 16 * 90 + 34 + - 9 AS col2, 63 * - COUNT( * ) + ( + CAST( NULL AS SIGNED ) )
----
1465
NULL

skipif mysql # not compatible
query II rowsort label-9825
SELECT DISTINCT 16 * 90 + 34 + - 9 AS col2, 63 * - COUNT ( * ) + ( + CAST ( NULL AS INTEGER ) )
----
1465
NULL

query I rowsort
SELECT - 76 + - - 66
----
-10

onlyif mysql # aggregate syntax: 
query II rowsort label-9827
SELECT + 66 AS col1, COUNT( * )
----
66
1

skipif mysql # not compatible
query II rowsort label-9827
SELECT + 66 AS col1, COUNT ( * )
----
66
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9828
SELECT + COUNT( * ) * 40 DIV + - 20 + - COUNT( * )
----
-3

skipif mysql # not compatible
query I rowsort label-9828
SELECT + COUNT ( * ) * 40 / + - 20 + - COUNT ( * )
----
-3

query I rowsort
SELECT ALL 16 * - 17 * - 75 + + 23 AS col1
----
20423

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9830
SELECT ALL - 67 * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9830
SELECT ALL - 67 * - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT - 29 + - - 15 AS col1
----
-14

query I rowsort
SELECT ALL - 77 * - 37 + + 27
----
2876

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9833
SELECT ALL 19 DIV COUNT( * ) * + + 4
----
76

skipif mysql # not compatible
query I rowsort label-9833
SELECT ALL 19 / COUNT ( * ) * + + 4
----
76

query I rowsort
SELECT - 89 + - 44
----
-133

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9835
SELECT ALL 0 * + - CAST( NULL AS SIGNED ) * + 47 + - + 40
----
NULL

skipif mysql # not compatible
query I rowsort label-9835
SELECT ALL 0 * + - CAST ( NULL AS INTEGER ) * + 47 + - + 40
----
NULL

query II rowsort
SELECT 53, + 21 AS col2
----
53
21

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9837
SELECT - CAST( NULL AS SIGNED ) * + ( 8 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9837
SELECT - CAST ( NULL AS INTEGER ) * + ( 8 )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9838
SELECT ALL 0 AS col2, COUNT( * )
----
0
1

skipif mysql # not compatible
query II rowsort label-9838
SELECT ALL 0 AS col2, COUNT ( * )
----
0
1

query I rowsort
SELECT - - 29 * ( - - 76 ) + - 69 AS col0
----
2135

onlyif mysql # aggregate syntax: 
query I rowsort label-9840
SELECT ALL + + 34 * + + 64 - + COUNT( DISTINCT + 18 ) + 58 * - 24 AS col2
----
783

skipif mysql # not compatible
query I rowsort label-9840
SELECT ALL + + 34 * + + 64 - + COUNT ( DISTINCT + 18 ) + 58 * - 24 AS col2
----
783

onlyif mysql # aggregate syntax: 
query I rowsort label-9841
SELECT + + 94 + + COUNT( * ) AS col1
----
95

skipif mysql # not compatible
query I rowsort label-9841
SELECT + + 94 + + COUNT ( * ) AS col1
----
95

query I rowsort
SELECT - - 83 * 17 * 74 col1
----
104414

query I rowsort
SELECT DISTINCT 17 * + 38 AS col0
----
646

onlyif mysql # aggregate syntax: 
query I rowsort label-9844
SELECT ALL MAX( - COALESCE ( 81, - 79 ) )
----
-81

skipif mysql # not compatible
query I rowsort label-9844
SELECT ALL MAX ( - COALESCE ( 81, - 79 ) )
----
-81

query I rowsort
SELECT DISTINCT + 56 - - + 28
----
84

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9846
SELECT DISTINCT + - COUNT( * ) * 25 * CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9846
SELECT DISTINCT + - COUNT ( * ) * 25 * CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9847
SELECT DISTINCT - SUM( DISTINCT 94 ) AS col1, 80
----
-94
80

skipif mysql # not compatible
query II rowsort label-9847
SELECT DISTINCT - SUM ( DISTINCT 94 ) AS col1, 80
----
-94
80

onlyif mysql # aggregate syntax: 
query II rowsort label-9848
SELECT DISTINCT ( 8 ) AS col0, COUNT( * )
----
8
1

skipif mysql # not compatible
query II rowsort label-9848
SELECT DISTINCT ( 8 ) AS col0, COUNT ( * )
----
8
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9849
SELECT - SUM( + 93 ) - - 77 AS col0
----
-16

skipif mysql # not compatible
query I rowsort label-9849
SELECT - SUM ( + 93 ) - - 77 AS col0
----
-16

onlyif mysql # DIV for integer division: 
query I rowsort label-9850
SELECT + - 68 DIV + 30
----
-2

skipif mysql # not compatible
query I rowsort label-9850
SELECT + - 68 / + 30
----
-2

query I rowsort
SELECT - - ( + - 46 ) AS col0
----
-46

onlyif mysql # aggregate syntax: 
query II rowsort label-9852
SELECT ALL + 23, COUNT( ALL 73 ) AS col2
----
23
1

skipif mysql # not compatible
query II rowsort label-9852
SELECT ALL + 23, COUNT ( ALL 73 ) AS col2
----
23
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9853
SELECT CASE COUNT( * ) WHEN - 70 * + - ( + + 53 ) + - 44 THEN - ( - ( AVG ( - 35 ) ) ) + 1 ELSE + 20 END AS col1
----
20

skipif mysql # not compatible
query I rowsort label-9853
SELECT CASE COUNT ( * ) WHEN - 70 * + - ( + + 53 ) + - 44 THEN - ( - ( AVG ( - 35 ) ) ) + 1 ELSE + 20 END AS col1
----
20

onlyif mysql # aggregate syntax: 
query II rowsort label-9854
SELECT - - 10 AS col0, - 7 + + COUNT( * )
----
10
-6

skipif mysql # not compatible
query II rowsort label-9854
SELECT - - 10 AS col0, - 7 + + COUNT ( * )
----
10
-6

query I rowsort
SELECT - NULLIF ( + + 20, - + 90 * + ( - 34 ) ) col1
----
-20

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9856
SELECT + COUNT( * ) DIV + ( - + 59 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-9856
SELECT + COUNT ( * ) / + ( - + 59 ) AS col1
----
0

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9857
SELECT - ( - + 6 ) DIV - + CAST( - + 12 AS SIGNED ) * + + 41 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-9857
SELECT - ( - + 6 ) / - + CAST ( - + 12 AS INTEGER ) * + + 41 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9858
SELECT ALL 60 * - COUNT( DISTINCT + 73 ) AS col2
----
-60

skipif mysql # not compatible
query I rowsort label-9858
SELECT ALL 60 * - COUNT ( DISTINCT + 73 ) AS col2
----
-60

query II rowsort
SELECT + 25 - + 9, - 46 col2
----
16
-46

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9860
SELECT DISTINCT CAST( + + 52 AS SIGNED ) DIV - 53 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-9860
SELECT DISTINCT CAST ( + + 52 AS INTEGER ) / - 53 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9861
SELECT ALL + NULLIF ( + 89, - 6 + COUNT( * ) - 73 )
----
89

skipif mysql # not compatible
query I rowsort label-9861
SELECT ALL + NULLIF ( + 89, - 6 + COUNT ( * ) - 73 )
----
89

onlyif mysql # DIV for integer division: 
query I rowsort label-9862
SELECT + ( 1 ) DIV - - ( - 60 ) + + ( - + 46 )
----
-46

skipif mysql # not compatible
query I rowsort label-9862
SELECT + ( 1 ) / - - ( - 60 ) + + ( - + 46 )
----
-46

query I rowsort
SELECT ALL 24 * 35
----
840

query I rowsort
SELECT ALL 83 * - + 25
----
-2075

onlyif mysql # aggregate syntax: 
query I rowsort label-9865
SELECT + COUNT( DISTINCT ( + + 20 ) ) * - 95 col1
----
-95

skipif mysql # not compatible
query I rowsort label-9865
SELECT + COUNT ( DISTINCT ( + + 20 ) ) * - 95 col1
----
-95

query I rowsort
SELECT 25 * - 60 + - + 61 + 16
----
-1545

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-9867
SELECT - MIN( DISTINCT - 98 ) DIV - + CASE + - CAST( + 70 AS SIGNED ) WHEN - 91 THEN NULL ELSE + SUM( + - 49 ) END - + CAST( - 94 AS SIGNED ) AS col0, COUNT( * ) AS col1
----
96
1

skipif mysql # not compatible
query II rowsort label-9867
SELECT - MIN ( DISTINCT - 98 ) / - + CASE + - CAST ( + 70 AS INTEGER ) WHEN - 91 THEN NULL ELSE + SUM ( + - 49 ) END - + CAST ( - 94 AS INTEGER ) AS col0, COUNT ( * ) AS col1
----
96
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9868
SELECT CAST( + 22 AS SIGNED ) col1
----
22

skipif mysql # not compatible
query I rowsort label-9868
SELECT CAST ( + 22 AS INTEGER ) col1
----
22

query I rowsort
SELECT - 65 * + 50
----
-3250

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9870
SELECT CAST( 1 AS SIGNED ) col1
----
1

skipif mysql # not compatible
query I rowsort label-9870
SELECT CAST ( 1 AS INTEGER ) col1
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-9871
SELECT ALL - 49 DIV + NULLIF ( + 76, 79 ) + ( - - 17 ) + + 61 * + + 53 col0
----
3250

skipif mysql # not compatible
query I rowsort label-9871
SELECT ALL - 49 / + NULLIF ( + 76, 79 ) + ( - - 17 ) + + 61 * + + 53 col0
----
3250

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9872
SELECT CAST( - + ( - CAST( NULL AS DECIMAL ) ) AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9872
SELECT CAST ( - + ( - CAST ( NULL AS REAL ) ) AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9873
SELECT + 26 + 76 * 74 - + - COUNT( * )
----
5651

skipif mysql # not compatible
query I rowsort label-9873
SELECT + 26 + 76 * 74 - + - COUNT ( * )
----
5651

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9874
SELECT ALL + + NULLIF ( 79, 94 - 17 * - COUNT( * ) ) * + - 22 * 66 * - 73 * + 52 - - COALESCE ( - 60, - AVG ( DISTINCT - 89 ), + 30 ) + SUM( DISTINCT 10 ) + COUNT( ALL - 41 ) / + ( - 51 ) * + - CASE - 77 WHEN + CASE - 11 WHEN 72 + + 73 THEN NULL ELSE - + 81 + - 83 END THEN NULL WHEN CAST( + - 13 AS SIGNED ) + COUNT( * ) * 49 THEN - - 52 * - - 29 * ( + + 24 ) + 1 * + + 21 WHEN 12 THEN - AVG ( + 27 ) END / 84
----
NULL

skipif mysql # not compatible
query I rowsort label-9874
SELECT ALL + + NULLIF ( 79, 94 - 17 * - COUNT ( * ) ) * + - 22 * 66 * - 73 * + 52 - - COALESCE ( - 60, - AVG ( DISTINCT - 89 ), + 30 ) + SUM ( DISTINCT 10 ) + COUNT ( ALL - 41 ) / + ( - 51 ) * + - CASE - 77 WHEN + CASE - 11 WHEN 72 + + 73 THEN NULL ELSE - + 81 + - 83 END THEN NULL WHEN CAST ( + - 13 AS INTEGER ) + COUNT ( * ) * 49 THEN - - 52 * - - 29 * ( + + 24 ) + 1 * + + 21 WHEN 12 THEN - AVG ( + 27 ) END / 84
----
NULL

query I rowsort
SELECT + + ( - - 1 ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9876
SELECT + - NULLIF ( + NULLIF ( COUNT( * ), + + 70 ), - CASE + 33 WHEN 73 + - 10 THEN + - 53 END * + 91 * + - 72 )
----
-1

skipif mysql # not compatible
query I rowsort label-9876
SELECT + - NULLIF ( + NULLIF ( COUNT ( * ), + + 70 ), - CASE + 33 WHEN 73 + - 10 THEN + - 53 END * + 91 * + - 72 )
----
-1

query I rowsort
SELECT ALL + - 72 - - + 7
----
-65

query I rowsort
SELECT DISTINCT - COALESCE ( + + 42, 63, + 90 )
----
-42

onlyif mysql # DIV for integer division: 
query I rowsort label-9879
SELECT ALL - + 72 DIV 87 * ( - - 88 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-9879
SELECT ALL - + 72 / 87 * ( - - 88 ) AS col2
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9880
SELECT DISTINCT - COUNT( * ) DIV 43 + - ( - 4 ) + - 5 col0
----
-1

skipif mysql # not compatible
query I rowsort label-9880
SELECT DISTINCT - COUNT ( * ) / 43 + - ( - 4 ) + - 5 col0
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9881
SELECT + SUM( CAST( - + 2 AS SIGNED ) ) AS col0
----
-2

skipif mysql # not compatible
query I rowsort label-9881
SELECT + SUM ( CAST ( - + 2 AS INTEGER ) ) AS col0
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-9882
SELECT COUNT( * ) + 81 AS col1
----
82

skipif mysql # not compatible
query I rowsort label-9882
SELECT COUNT ( * ) + 81 AS col1
----
82

query II rowsort
SELECT 35 * - 94, + 87 + - - 91 col0
----
-3290
178

query II rowsort
SELECT DISTINCT + - 68 * - 61 AS col0, + 4 AS col1
----
4148
4

query I rowsort
SELECT - - 25 AS col2
----
25

query I rowsort
SELECT ALL COALESCE ( - 81, 22 ) * - 32 col1
----
2592

onlyif mysql # aggregate syntax: 
query I rowsort label-9887
SELECT MAX( 1 ) + + + 42 AS col1
----
43

skipif mysql # not compatible
query I rowsort label-9887
SELECT MAX ( 1 ) + + + 42 AS col1
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-9888
SELECT MIN( DISTINCT + 11 ) * + 8 AS col1
----
88

skipif mysql # not compatible
query I rowsort label-9888
SELECT MIN ( DISTINCT + 11 ) * + 8 AS col1
----
88

query I rowsort
SELECT DISTINCT + 56 + 11 + - 46 - + 32
----
-11

query I rowsort
SELECT ALL - 93 + + + 24 + - 87 * 6 AS col2
----
-591

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9891
SELECT DISTINCT 31 + + + CAST( - SUM( ALL + - ( + 53 ) ) AS SIGNED ) * - COALESCE ( - 78, 51 + + - 37 ) AS col0
----
4165

skipif mysql # not compatible
query I rowsort label-9891
SELECT DISTINCT 31 + + + CAST ( - SUM ( ALL + - ( + 53 ) ) AS INTEGER ) * - COALESCE ( - 78, 51 + + - 37 ) AS col0
----
4165

query II rowsort
SELECT DISTINCT 37, 10 AS col0
----
37
10

query II rowsort
SELECT 44, 72 - - 72 AS col1
----
44
144

query II rowsort
SELECT - 45, - 73 AS col1
----
-45
-73

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9895
SELECT CAST( NULL AS SIGNED ) + - 88
----
NULL

skipif mysql # not compatible
query I rowsort label-9895
SELECT CAST ( NULL AS INTEGER ) + - 88
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-9896
SELECT DISTINCT - 41, 53 DIV + 41 + - + 8 col2
----
-41
-7

skipif mysql # not compatible
query II rowsort label-9896
SELECT DISTINCT - 41, 53 / + 41 + - + 8 col2
----
-41
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-9897
SELECT ALL 71 + + 24 * - COUNT( * )
----
47

skipif mysql # not compatible
query I rowsort label-9897
SELECT ALL 71 + + 24 * - COUNT ( * )
----
47

query II rowsort
SELECT ALL 30 + - + 87 + - 52 AS col1, - 65 AS col1
----
-109
-65

query II rowsort
SELECT + 53 AS col0, - 94 * 55 AS col1
----
53
-5170

onlyif mysql # aggregate syntax: 
query II rowsort label-9900
SELECT 93 * MIN( DISTINCT - - 56 ) AS col1, 97
----
5208
97

skipif mysql # not compatible
query II rowsort label-9900
SELECT 93 * MIN ( DISTINCT - - 56 ) AS col1, 97
----
5208
97

query I rowsort
SELECT ALL 23 * + 31 * - 1
----
-713

query I rowsort
SELECT 99 + + 67
----
166

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9903
SELECT ALL 35 + COUNT( * ) DIV + MAX( ALL + + 51 )
----
35

skipif mysql # not compatible
query I rowsort label-9903
SELECT ALL 35 + COUNT ( * ) / + MAX ( ALL + + 51 )
----
35

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9904
SELECT CAST( NULL AS SIGNED ) / 38 + COALESCE ( - - COUNT( * ), + 92 ) + 23 * - 84 + - + 97 * 3 + - 81 + + CAST( + 0 AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9904
SELECT CAST ( NULL AS INTEGER ) / 38 + COALESCE ( - - COUNT ( * ), + 92 ) + 23 * - 84 + - + 97 * 3 + - 81 + + CAST ( + 0 AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9905
SELECT 95 * 81 - + + COUNT( * ) + 26 col1
----
7720

skipif mysql # not compatible
query I rowsort label-9905
SELECT 95 * 81 - + + COUNT ( * ) + 26 col1
----
7720

query I rowsort
SELECT DISTINCT 5 + + 39
----
44

query II rowsort
SELECT ALL - 12 AS col1, 22 * + 97
----
-12
2134

query I rowsort
SELECT + 46 + + 87 AS col0
----
133

onlyif mysql # aggregate syntax: 
query I rowsort label-9909
SELECT 71 * + + 2 * + CASE 0 WHEN - COUNT( 31 ) THEN NULL WHEN + 30 THEN NULL ELSE MIN( ALL - 77 ) END + - 14 + - 21
----
-10969

skipif mysql # not compatible
query I rowsort label-9909
SELECT 71 * + + 2 * + CASE 0 WHEN - COUNT ( 31 ) THEN NULL WHEN + 30 THEN NULL ELSE MIN ( ALL - 77 ) END + - 14 + - 21
----
-10969

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9910
SELECT ALL 21 * + 0 DIV - + ( - COUNT( * ) ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-9910
SELECT ALL 21 * + 0 / - + ( - COUNT ( * ) ) AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9911
SELECT - COUNT( * ) * + - ( - 11 ) + + ( + - 10 ) AS col0
----
-21

skipif mysql # not compatible
query I rowsort label-9911
SELECT - COUNT ( * ) * + - ( - 11 ) + + ( + - 10 ) AS col0
----
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-9912
SELECT + 74 + COUNT( * ) * 19
----
93

skipif mysql # not compatible
query I rowsort label-9912
SELECT + 74 + COUNT ( * ) * 19
----
93

query II rowsort
SELECT ALL - 91, - 40 * + - 99 + 82 AS col1
----
-91
4042

onlyif mysql # aggregate syntax: 
query I rowsort label-9914
SELECT ALL + + 70 * - MAX( ALL + - 41 ) + + 31 AS col0
----
2901

skipif mysql # not compatible
query I rowsort label-9914
SELECT ALL + + 70 * - MAX ( ALL + - 41 ) + + 31 AS col0
----
2901

onlyif mysql # DIV for integer division: 
query I rowsort label-9915
SELECT - 96 DIV 83 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-9915
SELECT - 96 / 83 AS col2
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-9916
SELECT ALL 66 DIV - 84 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-9916
SELECT ALL 66 / - 84 AS col1
----
0

query I rowsort
SELECT 71 + 73 + + 3 + + 34 * + 41 AS col0
----
1541

onlyif mysql # aggregate syntax: 
query I rowsort label-9918
SELECT - + MIN( - 10 )
----
10

skipif mysql # not compatible
query I rowsort label-9918
SELECT - + MIN ( - 10 )
----
10

query II rowsort
SELECT 73 * + 64 + - 10, - 79 AS col1
----
4662
-79

query I rowsort
SELECT 51 * + 93 + 56 * + - 95 * + 44 * 31
----
-7251737

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9921
SELECT + 32 * - ( NULLIF ( - COUNT( DISTINCT - ( - 89 ) ), + CAST( + - CASE - 53 WHEN + + 37 / 88 + + - 99 THEN 77 + + - 43 END AS SIGNED ) + - - 0 + - + 22 + COUNT( * ) ) )
----
32

skipif mysql # not compatible
query I rowsort label-9921
SELECT + 32 * - ( NULLIF ( - COUNT ( DISTINCT - ( - 89 ) ), + CAST ( + - CASE - 53 WHEN + + 37 / 88 + + - 99 THEN 77 + + - 43 END AS INTEGER ) + - - 0 + - + 22 + COUNT ( * ) ) )
----
32

query I rowsort
SELECT DISTINCT - + 28 * + 96
----
-2688

query II rowsort
SELECT 49 AS col1, - 2 AS col2
----
49
-2

query I rowsort
SELECT ALL 50 * 54 - + ( + 18 ) + - - 71 col0
----
2753

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9925
SELECT DISTINCT - + NULLIF ( - 25, 40 * - CAST( + 17 AS SIGNED ) * + SUM( ALL - 90 ) + 41 ) + - + COUNT( * ) * - + 59 * - - 66 AS col1
----
3919

skipif mysql # not compatible
query I rowsort label-9925
SELECT DISTINCT - + NULLIF ( - 25, 40 * - CAST ( + 17 AS INTEGER ) * + SUM ( ALL - 90 ) + 41 ) + - + COUNT ( * ) * - + 59 * - - 66 AS col1
----
3919

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9926
SELECT 77 DIV - COALESCE ( + COUNT( * ), - + 94, + - MIN( DISTINCT 22 ) + - 8 ) AS col0
----
-77

skipif mysql # not compatible
query I rowsort label-9926
SELECT 77 / - COALESCE ( + COUNT ( * ), - + 94, + - MIN ( DISTINCT 22 ) + - 8 ) AS col0
----
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-9927
SELECT ALL 90 + - 40 * - 16 * ( 67 ) * 29 * - + 70 * - COUNT( * ) + 80 * + + 90 + + + 22 AS col2
----
87053712

skipif mysql # not compatible
query I rowsort label-9927
SELECT ALL 90 + - 40 * - 16 * ( 67 ) * 29 * - + 70 * - COUNT ( * ) + 80 * + + 90 + + + 22 AS col2
----
87053712

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9928
SELECT ALL - 97 / - CASE - 9 WHEN + 47 - - CAST( NULL AS SIGNED ) THEN 5 END
----
NULL

skipif mysql # not compatible
query I rowsort label-9928
SELECT ALL - 97 / - CASE - 9 WHEN + 47 - - CAST ( NULL AS INTEGER ) THEN 5 END
----
NULL

query I rowsort
SELECT 58 - - 21 AS col0
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-9930
SELECT ALL MAX( ALL - 70 ) col2
----
-70

skipif mysql # not compatible
query I rowsort label-9930
SELECT ALL MAX ( ALL - 70 ) col2
----
-70

query I rowsort
SELECT DISTINCT - 80 + - 80 * - 83
----
6560

onlyif mysql # aggregate syntax: 
query I rowsort label-9932
SELECT 9 + 57 + + COALESCE ( + 84, - 62 ) - + COUNT( * ) * + COUNT( * )
----
149

skipif mysql # not compatible
query I rowsort label-9932
SELECT 9 + 57 + + COALESCE ( + 84, - 62 ) - + COUNT ( * ) * + COUNT ( * )
----
149

onlyif mysql # aggregate syntax: 
query II rowsort label-9933
SELECT DISTINCT COALESCE ( - 55, + 81, 28 * + 46 ), COUNT( * ) * 34 AS col0
----
-55
34

skipif mysql # not compatible
query II rowsort label-9933
SELECT DISTINCT COALESCE ( - 55, + 81, 28 * + 46 ), COUNT ( * ) * 34 AS col0
----
-55
34

onlyif mysql # aggregate syntax: 
query II rowsort label-9934
SELECT 90 * + + COUNT( * ) AS col2, 38 - 57 - + - 6 AS col0
----
90
-13

skipif mysql # not compatible
query II rowsort label-9934
SELECT 90 * + + COUNT ( * ) AS col2, 38 - 57 - + - 6 AS col0
----
90
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-9935
SELECT ALL - COUNT( * ) + + 19 * + + 55
----
1044

skipif mysql # not compatible
query I rowsort label-9935
SELECT ALL - COUNT ( * ) + + 19 * + + 55
----
1044

query I rowsort
SELECT ALL - 95 * + - 35 - - + 94 * - + 7
----
2667

onlyif mysql # aggregate syntax: 
query I rowsort label-9937
SELECT ALL + 12 * + + COUNT( * ) - 62
----
-50

skipif mysql # not compatible
query I rowsort label-9937
SELECT ALL + 12 * + + COUNT ( * ) - 62
----
-50

onlyif mysql # aggregate syntax: 
query II rowsort label-9938
SELECT ALL + ( - 16 ) AS col0, MIN( ALL 95 )
----
-16
95

skipif mysql # not compatible
query II rowsort label-9938
SELECT ALL + ( - 16 ) AS col0, MIN ( ALL 95 )
----
-16
95

query I rowsort
SELECT + 99 + - 41
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-9940
SELECT + 58 * COUNT( * ) * - 88
----
-5104

skipif mysql # not compatible
query I rowsort label-9940
SELECT + 58 * COUNT ( * ) * - 88
----
-5104

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9941
SELECT 99 * 94 * 52 * - 42 + 89 + 53 / - CAST( NULL AS SIGNED ), + 1 + - 40 - - - ( 24 ) col1
----
NULL
-63

skipif mysql # not compatible
query II rowsort label-9941
SELECT 99 * 94 * 52 * - 42 + 89 + 53 / - CAST ( NULL AS INTEGER ), + 1 + - 40 - - - ( 24 ) col1
----
NULL
-63

onlyif mysql # aggregate syntax: 
query II rowsort label-9942
SELECT ALL + COUNT( * ) * 94 - + + 32 + 30, + 21 + + COUNT( * ) - + 93 * + SUM( DISTINCT + 58 ) col2
----
92
-5372

skipif mysql # not compatible
query II rowsort label-9942
SELECT ALL + COUNT ( * ) * 94 - + + 32 + 30, + 21 + + COUNT ( * ) - + 93 * + SUM ( DISTINCT + 58 ) col2
----
92
-5372

onlyif mysql # aggregate syntax: 
query I rowsort label-9943
SELECT ALL + CASE COUNT( + 95 ) WHEN - 95 / + - 53 + 42 THEN - AVG ( - 5 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-9943
SELECT ALL + CASE COUNT ( + 95 ) WHEN - 95 / + - 53 + 42 THEN - AVG ( - 5 ) END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9944
SELECT COUNT( + 66 ) AS col1, + 93
----
1
93

skipif mysql # not compatible
query II rowsort label-9944
SELECT COUNT ( + 66 ) AS col1, + 93
----
1
93

query I rowsort
SELECT ALL + + CASE + 64 WHEN - 70 THEN - 81 END AS col2
----
NULL

query I rowsort
SELECT DISTINCT - 57 * 0 * + 54
----
0

query I rowsort
SELECT DISTINCT + ( 68 ) AS col0
----
68

query I rowsort
SELECT + 85 * - - 17 AS col0
----
1445

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9949
SELECT + 24 + + 30 + + + 31 + + COUNT( * ) DIV + 17
----
85

skipif mysql # not compatible
query I rowsort label-9949
SELECT + 24 + + 30 + + + 31 + + COUNT ( * ) / + 17
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-9950
SELECT - COUNT( * ) * + 6 + - 10
----
-16

skipif mysql # not compatible
query I rowsort label-9950
SELECT - COUNT ( * ) * + 6 + - 10
----
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-9951
SELECT + + ( MIN( 32 ) ) AS col1
----
32

skipif mysql # not compatible
query I rowsort label-9951
SELECT + + ( MIN ( 32 ) ) AS col1
----
32

query I rowsort
SELECT + 51 * + 88 + ( - 29 ) AS col1
----
4459

query I rowsort
SELECT - - 5 * - 65 AS col0
----
-325

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9954
SELECT ALL + 73 * + 85 * + ( - + 49 ) + - 26 * 28 DIV 12 - 11 + + MAX( DISTINCT + 26 ) * 81 AS col0
----
-302010

skipif mysql # not compatible
query I rowsort label-9954
SELECT ALL + 73 * + 85 * + ( - + 49 ) + - 26 * 28 / 12 - 11 + + MAX ( DISTINCT + 26 ) * 81 AS col0
----
-302010

query I rowsort
SELECT + - 94 - + 52
----
-146

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9956
SELECT DISTINCT CAST( NULL AS DECIMAL ) + - ( ( - + ( 22 ) ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-9956
SELECT DISTINCT CAST ( NULL AS REAL ) + - ( ( - + ( 22 ) ) )
----
NULL

query I rowsort
SELECT ALL - 50 + - 47 + + - 9 col2
----
-106

query I rowsort
SELECT + - 45 + - 39 + - 1
----
-85

query I rowsort
SELECT ALL 57 + - 94
----
-37

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9960
SELECT - - CAST( + + ( + 44 ) AS SIGNED ) AS col1
----
44

skipif mysql # not compatible
query I rowsort label-9960
SELECT - - CAST ( + + ( + 44 ) AS INTEGER ) AS col1
----
44

query I rowsort
SELECT ALL + 59 + + 85
----
144

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9962
SELECT ALL 60 + - + 29 - - 58 * - NULLIF ( + - CAST( NULL AS SIGNED ), 83 ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9962
SELECT ALL 60 + - + 29 - - 58 * - NULLIF ( + - CAST ( NULL AS INTEGER ), 83 ) col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9963
SELECT + 66 + + ( + 78 ) + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9963
SELECT + 66 + + ( + 78 ) + CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9964
SELECT 83, - 63 * + ( - 22 ) * + COUNT( * ) * ( + + MIN( ALL - 59 ) ) AS col0
----
83
-81774

skipif mysql # not compatible
query II rowsort label-9964
SELECT 83, - 63 * + ( - 22 ) * + COUNT ( * ) * ( + + MIN ( ALL - 59 ) ) AS col0
----
83
-81774

query I rowsort
SELECT - 48 - - 42 * - 16 * 92 AS col1
----
-61872

onlyif mysql # aggregate syntax: 
query I rowsort label-9966
SELECT ALL + 39 + COUNT( * ) AS col1
----
40

skipif mysql # not compatible
query I rowsort label-9966
SELECT ALL + 39 + COUNT ( * ) AS col1
----
40

query I rowsort
SELECT - 24 + - 82 AS col2
----
-106

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9968
SELECT ALL - 75 + NULLIF ( + 73, - COUNT( * ) * + CAST( NULL AS SIGNED ) * + 70 ) * 10 + - + 43
----
612

skipif mysql # not compatible
query I rowsort label-9968
SELECT ALL - 75 + NULLIF ( + 73, - COUNT ( * ) * + CAST ( NULL AS INTEGER ) * + 70 ) * 10 + - + 43
----
612

onlyif mysql # aggregate syntax: 
query I rowsort label-9969
SELECT + COUNT( * ) + - - ( + + MIN( DISTINCT + - 95 ) )
----
-94

skipif mysql # not compatible
query I rowsort label-9969
SELECT + COUNT ( * ) + - - ( + + MIN ( DISTINCT + - 95 ) )
----
-94

query I rowsort
SELECT DISTINCT 59 + + NULLIF ( + 87, + ( - 96 ) ) + + 36
----
182

query I rowsort
SELECT ALL ( - + 9 ) col0
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-9972
SELECT - 88 + - - SUM( 88 )
----
0

skipif mysql # not compatible
query I rowsort label-9972
SELECT - 88 + - - SUM ( 88 )
----
0

query I rowsort
SELECT - 6 * + ( - - 1 )
----
-6

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9974
SELECT DISTINCT + 31 DIV COUNT( DISTINCT + 53 ) AS col0
----
31

skipif mysql # not compatible
query I rowsort label-9974
SELECT DISTINCT + 31 / COUNT ( DISTINCT + 53 ) AS col0
----
31

query I rowsort
SELECT ALL COALESCE ( 80, + 75 )
----
80

query I rowsort
SELECT - 58 + + 95 AS col1
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-9977
SELECT - ( + + 88 ) + + + COUNT( * ) - + 38
----
-125

skipif mysql # not compatible
query I rowsort label-9977
SELECT - ( + + 88 ) + + + COUNT ( * ) - + 38
----
-125

onlyif mysql # aggregate syntax: 
query I rowsort label-9978
SELECT - MAX( DISTINCT + 48 )
----
-48

skipif mysql # not compatible
query I rowsort label-9978
SELECT - MAX ( DISTINCT + 48 )
----
-48

query I rowsort
SELECT ALL ( - 97 )
----
-97

query I rowsort
SELECT ALL ( - - 28 )
----
28

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9981
SELECT CAST( 79 AS SIGNED ) AS col2
----
79

skipif mysql # not compatible
query I rowsort label-9981
SELECT CAST ( 79 AS INTEGER ) AS col2
----
79

query I rowsort
SELECT ALL + ( + 86 ) AS col1
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-9983
SELECT ALL 72 * + + COUNT( * )
----
72

skipif mysql # not compatible
query I rowsort label-9983
SELECT ALL 72 * + + COUNT ( * )
----
72

query I rowsort
SELECT ALL + ( - 68 )
----
-68

query I rowsort
SELECT ALL + - 95 AS col2
----
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-9986
SELECT + - MIN( DISTINCT - 71 ) - - 19 + - 96 AS col0
----
-6

skipif mysql # not compatible
query I rowsort label-9986
SELECT + - MIN ( DISTINCT - 71 ) - - 19 + - 96 AS col0
----
-6

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9987
SELECT - + 40 DIV - COUNT( * )
----
40

skipif mysql # not compatible
query I rowsort label-9987
SELECT - + 40 / - COUNT ( * )
----
40

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9988
SELECT + + 35 + - SUM( ALL 8 ) DIV + COUNT( + 97 ) + - - 64 + + ( - 45 ) * - + 96
----
4411

skipif mysql # not compatible
query I rowsort label-9988
SELECT + + 35 + - SUM ( ALL 8 ) / + COUNT ( + 97 ) + - - 64 + + ( - 45 ) * - + 96
----
4411

query I rowsort
SELECT - - 61 * - 86 + + 2 AS col0
----
-5244

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9990
SELECT DISTINCT 84 DIV MIN( - 77 ) * + + 8 * ( - ( - 51 ) ) AS col2
----
-408

skipif mysql # not compatible
query I rowsort label-9990
SELECT DISTINCT 84 / MIN ( - 77 ) * + + 8 * ( - ( - 51 ) ) AS col2
----
-408

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9991
SELECT ALL + COALESCE ( + COUNT( * ), + - CAST( NULL AS SIGNED ) ) * - 24 + - 30 AS col2, + 53
----
-54
53

skipif mysql # not compatible
query II rowsort label-9991
SELECT ALL + COALESCE ( + COUNT ( * ), + - CAST ( NULL AS INTEGER ) ) * - 24 + - 30 AS col2, + 53
----
-54
53

onlyif mysql # aggregate syntax: 
query I rowsort label-9992
SELECT ALL - MIN( - 18 ) * 75 * 43 + - COALESCE ( + 85, - 8 )
----
57965

skipif mysql # not compatible
query I rowsort label-9992
SELECT ALL - MIN ( - 18 ) * 75 * 43 + - COALESCE ( + 85, - 8 )
----
57965

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9993
SELECT ALL 11 * - 21 + - 13 + - + 25 DIV - - SUM( DISTINCT - 56 ) + 67 + + + COUNT( ALL 44 ) + - 28, + 39 AS col1
----
-204
39

skipif mysql # not compatible
query II rowsort label-9993
SELECT ALL 11 * - 21 + - 13 + - + 25 / - - SUM ( DISTINCT - 56 ) + 67 + + + COUNT ( ALL 44 ) + - 28, + 39 AS col1
----
-204
39

onlyif mysql # aggregate syntax: 
query I rowsort label-9994
SELECT + MIN( DISTINCT + 1 )
----
1

skipif mysql # not compatible
query I rowsort label-9994
SELECT + MIN ( DISTINCT + 1 )
----
1

query I rowsort
SELECT + - 72 AS col0
----
-72

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9996
SELECT ALL 68 * + CAST( CAST( NULL AS SIGNED ) AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9996
SELECT ALL 68 * + CAST ( CAST ( NULL AS INTEGER ) AS INTEGER )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9997
SELECT - - 13 DIV - 95 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-9997
SELECT - - 13 / - 95 AS col2
----
0

query I rowsort
SELECT + - 8 + 64 AS col1
----
56

query I rowsort
SELECT CASE - - 60 WHEN + - 16 THEN ( + 32 ) ELSE NULL END AS col0
----
NULL

