sqllogictest
Artifact Content
Not logged in

Artifact 8f6a4cdb7582d667c514fbb433f42859dcb7b2a5:


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 II rowsort label-0
SELECT - COALESCE ( - + 99, 11 ) * - - COUNT( * ), + 4 AS col0
----
99
4

skipif mysql # not compatible
query II rowsort label-0
SELECT - COALESCE ( - + 99, 11 ) * - - COUNT ( * ), + 4 AS col0
----
99
4

onlyif mysql # aggregate syntax: 
query II rowsort label-1
SELECT - COUNT( * ) + 76 + + - 72, 84 AS col1
----
3
84

skipif mysql # not compatible
query II rowsort label-1
SELECT - COUNT ( * ) + 76 + + - 72, 84 AS col1
----
3
84

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2
SELECT ALL NULLIF ( + 44, - CAST( NULL AS SIGNED ) / + 75 ) AS col2, COUNT( * ) AS col1
----
44
1

skipif mysql # not compatible
query II rowsort label-2
SELECT ALL NULLIF ( + 44, - CAST ( NULL AS INTEGER ) / + 75 ) AS col2, COUNT ( * ) AS col1
----
44
1

query I rowsort
SELECT - 94 + - - 51 col1
----
-43

onlyif mysql # aggregate syntax: 
query II rowsort label-4
SELECT ALL + CASE + ( - - 47 ) WHEN 22 * COUNT( * ) * - 64 * - 3 - + ( - 18 ) + - - 51 * - 87 THEN 95 * - 56 END * - 99, - 61 AS col1
----
NULL
-61

skipif mysql # not compatible
query II rowsort label-4
SELECT ALL + CASE + ( - - 47 ) WHEN 22 * COUNT ( * ) * - 64 * - 3 - + ( - 18 ) + - - 51 * - 87 THEN 95 * - 56 END * - 99, - 61 AS col1
----
NULL
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-5
SELECT - CASE + COUNT( * ) WHEN + 43 + + 99 * 80 + COUNT( * ) THEN 97 * - - 26 - + + 7 - + + 18 END * + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-5
SELECT - CASE + COUNT ( * ) WHEN + 43 + + 99 * 80 + COUNT ( * ) THEN 97 * - - 26 - + + 7 - + + 18 END * + COUNT ( * )
----
NULL

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

query I rowsort
SELECT DISTINCT + 40 * + 91 AS col1
----
3640

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-9
SELECT - 4 AS col0, 56 * + + MIN( DISTINCT + 19 ) * - + 13 + COUNT( * ) AS col2
----
-4
-13831

skipif mysql # not compatible
query II rowsort label-9
SELECT - 4 AS col0, 56 * + + MIN ( DISTINCT + 19 ) * - + 13 + COUNT ( * ) AS col2
----
-4
-13831

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-10
SELECT + 91 DIV 32 DIV + 15 + CAST( - - CAST( + + ( + - 90 ) AS SIGNED ) AS SIGNED )
----
-90

skipif mysql # not compatible
query I rowsort label-10
SELECT + 91 / 32 / + 15 + CAST ( - - CAST ( + + ( + - 90 ) AS INTEGER ) AS INTEGER )
----
-90

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-11
SELECT DISTINCT CAST( + - 41 AS SIGNED ) * - 38 * - + 40 * - 9 + + - 0 col0
----
560880

skipif mysql # not compatible
query I rowsort label-11
SELECT DISTINCT CAST ( + - 41 AS INTEGER ) * - 38 * - + 40 * - 9 + + - 0 col0
----
560880

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

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

query II rowsort
SELECT ALL COALESCE ( + 32, + NULLIF ( - 74, + 72 ), 59 * 38 ) * - NULLIF ( - 17, + - 22 * + 35 + - + 79 ) + - - 77 AS col2, + 22 + 55 col1
----
621
77

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

skipif mysql # not compatible
query I rowsort label-15
SELECT DISTINCT - 96 / COUNT ( * ) AS col1
----
-96

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

query I rowsort
SELECT DISTINCT 45 * ( - + 38 ) + + - 54
----
-1764

query II rowsort
SELECT + + 6, - 73 AS col0
----
6
-73

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-19
SELECT ALL - + 84 * - 12 * + 77 + + - ( - COUNT( * ) ) - + + 64 AS col2, CASE - 3 WHEN + + 1 THEN NULL ELSE - 87 DIV 7 END
----
77553
-12

skipif mysql # not compatible
query II rowsort label-19
SELECT ALL - + 84 * - 12 * + 77 + + - ( - COUNT ( * ) ) - + + 64 AS col2, CASE - 3 WHEN + + 1 THEN NULL ELSE - 87 / 7 END
----
77553
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-20
SELECT - 21 * + - MIN( + - 49 ) + - ( + + 48 ) AS col2
----
-1077

skipif mysql # not compatible
query I rowsort label-20
SELECT - 21 * + - MIN ( + - 49 ) + - ( + + 48 ) AS col2
----
-1077

onlyif mysql # aggregate syntax: 
query II rowsort label-21
SELECT ALL + - 74 AS col1, MAX( - 35 ) AS col2
----
-74
-35

skipif mysql # not compatible
query II rowsort label-21
SELECT ALL + - 74 AS col1, MAX ( - 35 ) AS col2
----
-74
-35

onlyif mysql # DIV for integer division: 
query I rowsort label-22
SELECT + 48 DIV ( + NULLIF ( + 49, + ( + 82 ) * 59 ) ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-22
SELECT + 48 / ( + NULLIF ( + 49, + ( + 82 ) * 59 ) ) AS col0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-23
SELECT ALL - 75 * - 25 DIV 65 DIV + 33 + + 23 - + ( + COUNT( * ) ) col2
----
22

skipif mysql # not compatible
query I rowsort label-23
SELECT ALL - 75 * - 25 / 65 / + 33 + + 23 - + ( + COUNT ( * ) ) col2
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-24
SELECT DISTINCT - ( + ( - ( - - ( - MAX( DISTINCT - 4 ) ) ) ) ) * - 65 AS col1
----
-260

skipif mysql # not compatible
query I rowsort label-24
SELECT DISTINCT - ( + ( - ( - - ( - MAX ( DISTINCT - 4 ) ) ) ) ) * - 65 AS col1
----
-260

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

skipif mysql # not compatible
query I rowsort label-25
SELECT DISTINCT 36 / + - 48
----
0

query II rowsort
SELECT ALL + + 40, 26 col1
----
40
26

query II rowsort
SELECT ALL + + 14 AS col1, 27 col0
----
14
27

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-29
SELECT 93 * 28 + CASE + + 11 WHEN - CASE + 8 WHEN 75 THEN NULL WHEN + 84 * - - MAX( + + 89 ) THEN NULL ELSE 26 END THEN ( + 86 ) / AVG ( ALL + 25 ) * + 61 - + - CASE - 11 WHEN + 81 * 17 + + + 39 THEN + - 18 + + 92 WHEN SUM( 54 ) THEN NULL END + ( + - 99 ) - + COUNT( * ) ELSE NULL END + 73 + AVG ( - 79 )
----
NULL

skipif mysql # not compatible
query I rowsort label-29
SELECT 93 * 28 + CASE + + 11 WHEN - CASE + 8 WHEN 75 THEN NULL WHEN + 84 * - - MAX ( + + 89 ) THEN NULL ELSE 26 END THEN ( + 86 ) / AVG ( ALL + 25 ) * + 61 - + - CASE - 11 WHEN + 81 * 17 + + + 39 THEN + - 18 + + 92 WHEN SUM ( 54 ) THEN NULL END + ( + - 99 ) - + COUNT ( * ) ELSE NULL END + 73 + AVG ( - 79 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-30
SELECT MAX( + - 99 ) AS col1
----
-99

skipif mysql # not compatible
query I rowsort label-30
SELECT MAX ( + - 99 ) AS col1
----
-99

query I rowsort
SELECT + 37 * - 13
----
-481

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-32
SELECT + COUNT( * ) + + + 75 DIV 91
----
1

skipif mysql # not compatible
query I rowsort label-32
SELECT + COUNT ( * ) + + + 75 / 91
----
1

query I rowsort
SELECT DISTINCT ( + 51 ) * - - 68 + 32
----
3500

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

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

query I rowsort
SELECT DISTINCT - 49 * - 81 * - - 51
----
202419

query I rowsort
SELECT + 0 + + 50 col2
----
50

query I rowsort
SELECT - 6 * - 60
----
360

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-39
SELECT DISTINCT 24 * CAST( - + ( 30 ) AS SIGNED ) AS col2
----
-720

skipif mysql # not compatible
query I rowsort label-39
SELECT DISTINCT 24 * CAST ( - + ( 30 ) AS INTEGER ) AS col2
----
-720

query I rowsort
SELECT DISTINCT NULLIF ( 45, - 97 )
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-41
SELECT DISTINCT CASE 75 WHEN - 86 THEN NULL ELSE - COUNT( * ) END AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-41
SELECT DISTINCT CASE 75 WHEN - 86 THEN NULL ELSE - COUNT ( * ) END AS col1
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-42
SELECT + 70 DIV + 2 col2, + 91 * - COUNT( * ) AS col1
----
35
-91

skipif mysql # not compatible
query II rowsort label-42
SELECT + 70 / + 2 col2, + 91 * - COUNT ( * ) AS col1
----
35
-91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-43
SELECT DISTINCT - MAX( CAST( + 41 AS SIGNED ) ) * + 46 + + - 72
----
-1958

skipif mysql # not compatible
query I rowsort label-43
SELECT DISTINCT - MAX ( CAST ( + 41 AS INTEGER ) ) * + 46 + + - 72
----
-1958

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-44
SELECT + 34 / - CAST( NULL AS DECIMAL ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-44
SELECT + 34 / - CAST ( NULL AS REAL ) col1
----
NULL

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

skipif mysql # not compatible
query I rowsort label-45
SELECT - COUNT ( * ) / - 12
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-46
SELECT + 28 - - - 37 * CASE - + COUNT( * ) WHEN + - 60 * + 17 + + + 10 THEN + - 31 + - 94 + - - NULLIF ( + 20, - 53 ) * - 68 WHEN + 39 * - 92 + 13 + - 9 * COUNT( * ) * 54 THEN + 25 WHEN - 34 THEN 88 ELSE NULL END + - + 65 - + 53 - + CAST( NULL AS SIGNED ) + 26 / + + 90
----
NULL

skipif mysql # not compatible
query I rowsort label-46
SELECT + 28 - - - 37 * CASE - + COUNT ( * ) WHEN + - 60 * + 17 + + + 10 THEN + - 31 + - 94 + - - NULLIF ( + 20, - 53 ) * - 68 WHEN + 39 * - 92 + 13 + - 9 * COUNT ( * ) * 54 THEN + 25 WHEN - 34 THEN 88 ELSE NULL END + - + 65 - + 53 - + CAST ( NULL AS INTEGER ) + 26 / + + 90
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-47
SELECT ALL 10 + - + COUNT( * ) * - MIN( ALL - 45 ) col2, 29
----
-35
29

skipif mysql # not compatible
query II rowsort label-47
SELECT ALL 10 + - + COUNT ( * ) * - MIN ( ALL - 45 ) col2, 29
----
-35
29

query I rowsort
SELECT DISTINCT + 37 + + 97 AS col1
----
134

onlyif mysql # aggregate syntax: 
query I rowsort label-49
SELECT ALL - CASE - COUNT( * ) WHEN - 50 THEN NULL ELSE + + 75 * - 25 END + - 82 AS col0
----
1793

skipif mysql # not compatible
query I rowsort label-49
SELECT ALL - CASE - COUNT ( * ) WHEN - 50 THEN NULL ELSE + + 75 * - 25 END + - 82 AS col0
----
1793

query I rowsort
SELECT DISTINCT - 10 * 24 * 80 col0
----
-19200

query I rowsort
SELECT DISTINCT + ( - COALESCE ( + 47, - 9 + - 89 ) )
----
-47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-52
SELECT + + 64 * CAST( NULL AS SIGNED ) + 87 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-52
SELECT + + 64 * CAST ( NULL AS INTEGER ) + 87 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-53
SELECT + + 27 * - COUNT( ALL - 75 ) - - + 4 + + 15
----
-8

skipif mysql # not compatible
query I rowsort label-53
SELECT + + 27 * - COUNT ( ALL - 75 ) - - + 4 + + 15
----
-8

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

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

query I rowsort
SELECT - 32 + 26 * + 79
----
2022

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-56
SELECT + CAST( - - 69 AS SIGNED ) * + 59 * - 87 AS col2, + 65
----
-354177
65

skipif mysql # not compatible
query II rowsort label-56
SELECT + CAST ( - - 69 AS INTEGER ) * + 59 * - 87 AS col2, + 65
----
-354177
65

query I rowsort
SELECT ALL + + 1 * + 79
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-58
SELECT - + 85 * - 35 * - - 9 + - - COUNT( * )
----
26776

skipif mysql # not compatible
query I rowsort label-58
SELECT - + 85 * - 35 * - - 9 + - - COUNT ( * )
----
26776

onlyif mysql # aggregate syntax: 
query I rowsort label-59
SELECT ALL + - 76 * MIN( + 52 ) + - ( + 76 ) AS col2
----
-4028

skipif mysql # not compatible
query I rowsort label-59
SELECT ALL + - 76 * MIN ( + 52 ) + - ( + 76 ) AS col2
----
-4028

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-60
SELECT - 21 * - 19 + ( + - CAST( - 96 AS SIGNED ) ) AS col0
----
495

skipif mysql # not compatible
query I rowsort label-60
SELECT - 21 * - 19 + ( + - CAST ( - 96 AS INTEGER ) ) AS col0
----
495

query I rowsort
SELECT 12 * - - 62 AS col2
----
744

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-62
SELECT ALL - COALESCE ( + 96, - CASE COUNT( * ) WHEN ( - + 89 ) * - 33 THEN - - MAX( - ( + - 0 ) ) WHEN - 64 THEN NULL WHEN 31 + + - 45 - + 32 THEN 25 END, - 61 - ( + 22 ) * + - 24 DIV - - 83 ) DIV 32
----
-3

skipif mysql # not compatible
query I rowsort label-62
SELECT ALL - COALESCE ( + 96, - CASE COUNT ( * ) WHEN ( - + 89 ) * - 33 THEN - - MAX ( - ( + - 0 ) ) WHEN - 64 THEN NULL WHEN 31 + + - 45 - + 32 THEN 25 END, - 61 - ( + 22 ) * + - 24 / - - 83 ) / 32
----
-3

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

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

query III rowsort
SELECT DISTINCT + - 59 + - 68, NULLIF ( 80, - 11 ) AS col2, NULLIF ( 58, - 27 ) col0
----
-127
80
58

query II rowsort
SELECT DISTINCT 72 AS col0, 22
----
72
22

query I rowsort
SELECT ALL 65 * + 13
----
845

onlyif mysql # DIV for integer division: 
query I rowsort label-67
SELECT DISTINCT 11 + + + 57 * 59 DIV - 38 AS col0
----
-77

skipif mysql # not compatible
query I rowsort label-67
SELECT DISTINCT 11 + + + 57 * 59 / - 38 AS col0
----
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-68
SELECT COUNT( 76 ) * + - 6 + - + COUNT( * )
----
-7

skipif mysql # not compatible
query I rowsort label-68
SELECT COUNT ( 76 ) * + - 6 + - + COUNT ( * )
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-69
SELECT MAX( DISTINCT + 77 ) + 85 AS col0
----
162

skipif mysql # not compatible
query I rowsort label-69
SELECT MAX ( DISTINCT + 77 ) + 85 AS col0
----
162

query I rowsort
SELECT DISTINCT 21 - + 36 * + 1 * 31
----
-1095

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

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

query I rowsort
SELECT 10 + - 62 * + 40
----
-2470

query I rowsort
SELECT 2 + - 8
----
-6

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

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

query I rowsort
SELECT - 94 * - 99 AS col2
----
9306

query I rowsort
SELECT ALL + + 28 * - 13 AS col2
----
-364

query I rowsort
SELECT ALL - 92 * - 98 AS col0
----
9016

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-78
SELECT DISTINCT + COUNT( * ) * - + MIN( DISTINCT + 47 ) AS col2, - 68 DIV - 81
----
-47
0

skipif mysql # not compatible
query II rowsort label-78
SELECT DISTINCT + COUNT ( * ) * - + MIN ( DISTINCT + 47 ) AS col2, - 68 / - 81
----
-47
0

onlyif mysql # DIV for integer division: 
query I rowsort label-79
SELECT - 39 DIV - ( + 37 ) + + 0 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-79
SELECT - 39 / - ( + 37 ) + + 0 AS col1
----
1

query II rowsort
SELECT DISTINCT 9 * - 4 - + 64, 18 AS col2
----
-100
18

query II rowsort
SELECT COALESCE ( - + 84, + + 46 * - + 42 - 8 ), + 29 AS col2
----
-84
29

query II rowsort
SELECT + 31, - 99 col1
----
31
-99

query I rowsort
SELECT + COALESCE ( + 74, - - ( - 7 ) )
----
74

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-84
SELECT + 89 * - CASE - 75 WHEN 25 THEN - CAST( ( + COUNT( * ) ) AS SIGNED ) WHEN - COUNT( * ) THEN NULL WHEN - + 61 THEN NULL ELSE + + 78 END AS col1
----
-6942

skipif mysql # not compatible
query I rowsort label-84
SELECT + 89 * - CASE - 75 WHEN 25 THEN - CAST ( ( + COUNT ( * ) ) AS INTEGER ) WHEN - COUNT ( * ) THEN NULL WHEN - + 61 THEN NULL ELSE + + 78 END AS col1
----
-6942

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

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

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

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

query I rowsort
SELECT + 46 * + 2 + + + 33 * - 86 AS col2
----
-2746

onlyif mysql # DIV for integer division: 
query I rowsort label-88
SELECT - 55 DIV - 77
----
0

skipif mysql # not compatible
query I rowsort label-88
SELECT - 55 / - 77
----
0

query I rowsort
SELECT DISTINCT + + 31 + + 81
----
112

query I rowsort
SELECT ALL 65 + - + 56 AS col1
----
9

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

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

query II rowsort
SELECT 15 AS col1, + 10 col2
----
15
10

onlyif mysql # aggregate syntax: 
query I rowsort label-93
SELECT 79 - - COUNT( * ) AS col0
----
80

skipif mysql # not compatible
query I rowsort label-93
SELECT 79 - - COUNT ( * ) AS col0
----
80

query I rowsort
SELECT DISTINCT + 72 * 36
----
2592

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-95
SELECT CASE + 65 WHEN + + 35 THEN - 9 * - NULLIF ( - 82, - CAST( 81 AS SIGNED ) ) * - 29 END * - 69 * - - 46 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-95
SELECT CASE + 65 WHEN + + 35 THEN - 9 * - NULLIF ( - 82, - CAST ( 81 AS INTEGER ) ) * - 29 END * - 69 * - - 46 AS col0
----
NULL

query I rowsort
SELECT 59 * + 57 * + 51
----
171513

query I rowsort
SELECT ALL 81 + 75 - + 34 AS col0
----
122

query I rowsort
SELECT 69 + 73 * 7 AS col0
----
580

onlyif mysql # aggregate syntax: 
query I rowsort label-99
SELECT ALL MAX( DISTINCT - - 63 )
----
63

skipif mysql # not compatible
query I rowsort label-99
SELECT ALL MAX ( DISTINCT - - 63 )
----
63

query II rowsort
SELECT - 53 AS col0, + 60 - + 82 + + - 56
----
-53
-78

onlyif mysql # aggregate syntax: 
query II rowsort label-101
SELECT - COUNT( * ), 26 * - 30 * - 13 AS col2
----
-1
10140

skipif mysql # not compatible
query II rowsort label-101
SELECT - COUNT ( * ), 26 * - 30 * - 13 AS col2
----
-1
10140

onlyif mysql # aggregate syntax: 
query I rowsort label-102
SELECT DISTINCT 57 - + COUNT( * ) + - 87
----
-31

skipif mysql # not compatible
query I rowsort label-102
SELECT DISTINCT 57 - + COUNT ( * ) + - 87
----
-31

query II rowsort
SELECT DISTINCT 14 AS col0, - 56
----
14
-56

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-104
SELECT MAX( + 57 ) - - 92 + - 76 * + 84 * + 72 AS col2, + CAST( NULL AS SIGNED )
----
-459499
NULL

skipif mysql # not compatible
query II rowsort label-104
SELECT MAX ( + 57 ) - - 92 + - 76 * + 84 * + 72 AS col2, + CAST ( NULL AS INTEGER )
----
-459499
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-105
SELECT DISTINCT MIN( - - 96 ) * + + 50
----
4800

skipif mysql # not compatible
query I rowsort label-105
SELECT DISTINCT MIN ( - - 96 ) * + + 50
----
4800

onlyif mysql # aggregate syntax: 
query I rowsort label-106
SELECT + + 91 - - ( 16 ) + + 55 * + ( - - 72 ) + - - 67 - + COUNT( * ) AS col1
----
4133

skipif mysql # not compatible
query I rowsort label-106
SELECT + + 91 - - ( 16 ) + + 55 * + ( - - 72 ) + - - 67 - + COUNT ( * ) AS col1
----
4133

query I rowsort
SELECT + + 32 * + 31 AS col1
----
992

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-108
SELECT + + COUNT( * ) * - CAST( + + ( - - NULLIF ( 77, - 53 ) ) AS SIGNED ) * - 28 + + + CAST( NULL AS DECIMAL ) + - 3
----
NULL

skipif mysql # not compatible
query I rowsort label-108
SELECT + + COUNT ( * ) * - CAST ( + + ( - - NULLIF ( 77, - 53 ) ) AS INTEGER ) * - 28 + + + CAST ( NULL AS REAL ) + - 3
----
NULL

query I rowsort
SELECT ALL 40 - - - ( + + 65 )
----
-25

query I rowsort
SELECT DISTINCT + 94 * - 34 AS col0
----
-3196

query I rowsort
SELECT + ( - 89 ) + 50 col2
----
-39

query II rowsort
SELECT ALL + + 20 AS col0, 66 AS col1
----
20
66

onlyif mysql # aggregate syntax: 
query II rowsort label-113
SELECT + - 6 * COUNT( * ) AS col2, 37 + + + 97
----
-6
134

skipif mysql # not compatible
query II rowsort label-113
SELECT + - 6 * COUNT ( * ) AS col2, 37 + + + 97
----
-6
134

onlyif mysql # aggregate syntax: 
query I rowsort label-114
SELECT - - COUNT( * ) * MAX( 69 )
----
69

skipif mysql # not compatible
query I rowsort label-114
SELECT - - COUNT ( * ) * MAX ( 69 )
----
69

query I rowsort
SELECT - - 55 * - + 1 + + 4
----
-51

onlyif mysql # aggregate syntax: 
query II rowsort label-116
SELECT - 82 col2, COUNT( * )
----
-82
1

skipif mysql # not compatible
query II rowsort label-116
SELECT - 82 col2, COUNT ( * )
----
-82
1

onlyif mysql # aggregate syntax: 
query I rowsort label-117
SELECT ALL - - 8 * SUM( DISTINCT + 36 ) * - - NULLIF ( 40, + COALESCE ( - 75, - COUNT( * ) ) + 10 - COUNT( * ) - + 0 + 62 * + - ( + 8 ) ) * + 61 + + 56 * + 66 - - 82 + + + COUNT( * ) AS col0
----
706499

skipif mysql # not compatible
query I rowsort label-117
SELECT ALL - - 8 * SUM ( DISTINCT + 36 ) * - - NULLIF ( 40, + COALESCE ( - 75, - COUNT ( * ) ) + 10 - COUNT ( * ) - + 0 + 62 * + - ( + 8 ) ) * + 61 + + 56 * + 66 - - 82 + + + COUNT ( * ) AS col0
----
706499

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-118
SELECT + 5 AS col0, CAST( - 74 AS SIGNED ) AS col0
----
5
-74

skipif mysql # not compatible
query II rowsort label-118
SELECT + 5 AS col0, CAST ( - 74 AS INTEGER ) AS col0
----
5
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-119
SELECT ALL + 76 * - ( + + 9 ) + 12 + + NULLIF ( + - 50, 67 * - 20 - + COUNT( * ) + + + 75 * ( - 89 ) ) col1
----
-722

skipif mysql # not compatible
query I rowsort label-119
SELECT ALL + 76 * - ( + + 9 ) + 12 + + NULLIF ( + - 50, 67 * - 20 - + COUNT ( * ) + + + 75 * ( - 89 ) ) col1
----
-722

query II rowsort
SELECT + 55, + 75 AS col1
----
55
75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-121
SELECT ALL - COUNT( - CAST( NULL AS SIGNED ) ) * 76 + 29 + + + NULLIF ( 3, + - 41 + 91 )
----
32

skipif mysql # not compatible
query I rowsort label-121
SELECT ALL - COUNT ( - CAST ( NULL AS INTEGER ) ) * 76 + 29 + + + NULLIF ( 3, + - 41 + 91 )
----
32

query I rowsort
SELECT DISTINCT - 32 * + 24 + - 29 AS col1
----
-797

onlyif mysql # aggregate syntax: 
query I rowsort label-123
SELECT + NULLIF ( + 68, - COUNT( * ) ) AS col0
----
68

skipif mysql # not compatible
query I rowsort label-123
SELECT + NULLIF ( + 68, - COUNT ( * ) ) AS col0
----
68

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-125
SELECT ALL + NULLIF ( - + 4, - COALESCE ( + NULLIF ( CAST( + NULLIF ( - + 26, + - 60 / - 12 * CASE - 11 WHEN 36 * 27 THEN NULL WHEN + - 73 THEN - 39 - + 80 * - + 91 * 26 END + + COALESCE ( + 34, SUM( - 72 ) ) * + ( 51 ) + - 90 ) AS DECIMAL ), + 77 ), + CASE - - 18 WHEN + - ( ( 66 ) ) THEN NULL WHEN + 74 * - - ( + 19 ) THEN NULL WHEN 20 * 88 * - 10 * + 87 THEN 59 - - 62 END, + CASE WHEN NOT 56 IN ( 34 + 46 ) THEN + 39 / + 41 END * - 28 ) * COUNT( 89 ) + + NULLIF ( - SUM( 22 ), - ( - CAST( + 75 AS SIGNED ) ) * - 67 ) ) AS col0
----
-4

skipif mysql # not compatible
query I rowsort label-125
SELECT ALL + NULLIF ( - + 4, - COALESCE ( + NULLIF ( CAST ( + NULLIF ( - + 26, + - 60 / - 12 * CASE - 11 WHEN 36 * 27 THEN NULL WHEN + - 73 THEN - 39 - + 80 * - + 91 * 26 END + + COALESCE ( + 34, SUM ( - 72 ) ) * + ( 51 ) + - 90 ) AS REAL ), + 77 ), + CASE - - 18 WHEN + - ( ( 66 ) ) THEN NULL WHEN + 74 * - - ( + 19 ) THEN NULL WHEN 20 * 88 * - 10 * + 87 THEN 59 - - 62 END, + CASE WHEN NOT 56 IN ( 34 + 46 ) THEN + 39 / + 41 END * - 28 ) * COUNT ( 89 ) + + NULLIF ( - SUM ( 22 ), - ( - CAST ( + 75 AS INTEGER ) ) * - 67 ) ) AS col0
----
-4

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-127
SELECT - CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) + + 69 * + + COUNT( * ) * - 33 / 56 + + COALESCE ( - 10, - - 44 ) * 46
----
NULL

skipif mysql # not compatible
query I rowsort label-127
SELECT - CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) + + 69 * + + COUNT ( * ) * - 33 / 56 + + COALESCE ( - 10, - - 44 ) * 46
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-128
SELECT - ( - 48 ) * + + MAX( 21 ) AS col2
----
1008

skipif mysql # not compatible
query I rowsort label-128
SELECT - ( - 48 ) * + + MAX ( 21 ) AS col2
----
1008

query I rowsort
SELECT + 31 * 23 + - 35 * 36 * + - 18
----
23393

query I rowsort
SELECT DISTINCT 56 * 83 - - 17
----
4665

query I rowsort
SELECT ALL + 69 - 92 + 37 * - 46
----
-1725

query II rowsort
SELECT - 51 + + - 90 AS col1, - 80
----
-141
-80

onlyif mysql # DIV for integer division: 
query I rowsort label-133
SELECT - 10 DIV + - 64 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-133
SELECT - 10 / + - 64 AS col1
----
0

query I rowsort
SELECT ALL - 33 * - - ( ( 17 ) ) AS col1
----
-561

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-136
SELECT + 27 * + COUNT( * ) col1, 81 DIV - 52
----
27
-1

skipif mysql # not compatible
query II rowsort label-136
SELECT + 27 * + COUNT ( * ) col1, 81 / - 52
----
27
-1

query I rowsort
SELECT - 15 + 60 + - 96 AS col0
----
-51

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-139
SELECT DISTINCT + 34 DIV - 43 * + + SUM( - NULLIF ( 28, + 26 ) ) col1
----
0

skipif mysql # not compatible
query I rowsort label-139
SELECT DISTINCT + 34 / - 43 * + + SUM ( - NULLIF ( 28, + 26 ) ) col1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-140
SELECT DISTINCT - 17 DIV - 55 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-140
SELECT DISTINCT - 17 / - 55 AS col1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-141
SELECT + 12 DIV + 63 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-141
SELECT + 12 / + 63 AS col0
----
0

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-143
SELECT ALL 18 + - 22 AS col0, - 56 * - + COUNT( * ) * + + 20
----
-4
1120

skipif mysql # not compatible
query II rowsort label-143
SELECT ALL 18 + - 22 AS col0, - 56 * - + COUNT ( * ) * + + 20
----
-4
1120

onlyif mysql # aggregate syntax: 
query II rowsort label-144
SELECT ( + 70 ), + MAX( - 84 ) col0
----
70
-84

skipif mysql # not compatible
query II rowsort label-144
SELECT ( + 70 ), + MAX ( - 84 ) col0
----
70
-84

onlyif mysql # aggregate syntax: 
query II rowsort label-145
SELECT + + CASE + + 86 WHEN - + 21 * - 24 + + 76 THEN NULL ELSE + + 50 END * + + COALESCE ( + SUM( ALL 75 ), 78 ) AS col1, - 99
----
3750
-99

skipif mysql # not compatible
query II rowsort label-145
SELECT + + CASE + + 86 WHEN - + 21 * - 24 + + 76 THEN NULL ELSE + + 50 END * + + COALESCE ( + SUM ( ALL 75 ), 78 ) AS col1, - 99
----
3750
-99

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-146
SELECT DISTINCT COUNT( * ) DIV 22 + + 53 + - 83
----
-30

skipif mysql # not compatible
query I rowsort label-146
SELECT DISTINCT COUNT ( * ) / 22 + + 53 + - 83
----
-30

onlyif mysql # DIV for integer division: 
query I rowsort label-147
SELECT DISTINCT - - 74 DIV + - 36 + 13 + + 96
----
107

skipif mysql # not compatible
query I rowsort label-147
SELECT DISTINCT - - 74 / + - 36 + 13 + + 96
----
107

query II rowsort
SELECT DISTINCT + + ( + - 86 ) AS col1, - 90 + - 47 col2
----
-86
-137

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-149
SELECT DISTINCT - 86 DIV SUM( 8 ) + COALESCE ( + ( + - 10 ), - - ( - 16 ) ) + - 69 col2
----
-89

skipif mysql # not compatible
query I rowsort label-149
SELECT DISTINCT - 86 / SUM ( 8 ) + COALESCE ( + ( + - 10 ), - - ( - 16 ) ) + - 69 col2
----
-89

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-150
SELECT + - COUNT( * ) DIV 90 * + - 58 * + 12
----
0

skipif mysql # not compatible
query I rowsort label-150
SELECT + - COUNT ( * ) / 90 * + - 58 * + 12
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-151
SELECT DISTINCT 47 DIV - + COALESCE ( - - 5, + ( 67 ) )
----
-9

skipif mysql # not compatible
query I rowsort label-151
SELECT DISTINCT 47 / - + COALESCE ( - - 5, + ( 67 ) )
----
-9

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

skipif mysql # not compatible
query I rowsort label-152
SELECT ALL 3 / + + 28 + - COUNT ( * )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-153
SELECT ( + NULLIF ( + COUNT( ALL 92 ), 15 ) ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-153
SELECT ( + NULLIF ( + COUNT ( ALL 92 ), 15 ) ) AS col2
----
1

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

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

query I rowsort
SELECT ALL 82 * - 99 AS col2
----
-8118

query I rowsort
SELECT + 88 - + 79 AS col2
----
9

onlyif mysql # DIV for integer division: 
query I rowsort label-157
SELECT ALL 94 DIV - - 53 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-157
SELECT ALL 94 / - - 53 AS col0
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-158
SELECT DISTINCT 11 DIV + - 44 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-158
SELECT DISTINCT 11 / + - 44 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-159
SELECT + SUM( DISTINCT - 53 ) * + 48
----
-2544

skipif mysql # not compatible
query I rowsort label-159
SELECT + SUM ( DISTINCT - 53 ) * + 48
----
-2544

onlyif mysql # aggregate syntax: 
query I rowsort label-160
SELECT DISTINCT 20 * 40 * + + 41 - - COUNT( * ) * + 11
----
32811

skipif mysql # not compatible
query I rowsort label-160
SELECT DISTINCT 20 * 40 * + + 41 - - COUNT ( * ) * + 11
----
32811

onlyif mysql # aggregate syntax: 
query I rowsort label-161
SELECT - 51 + + COALESCE ( - - 11, + 27 * - + COUNT( * ) )
----
-40

skipif mysql # not compatible
query I rowsort label-161
SELECT - 51 + + COALESCE ( - - 11, + 27 * - + COUNT ( * ) )
----
-40

onlyif mysql # DIV for integer division: 
query I rowsort label-162
SELECT - 10 - + + 72 + + 83 DIV - 8 AS col2
----
-92

skipif mysql # not compatible
query I rowsort label-162
SELECT - 10 - + + 72 + + 83 / - 8 AS col2
----
-92

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-163
SELECT - CAST( - 67 AS SIGNED ) col1
----
67

skipif mysql # not compatible
query I rowsort label-163
SELECT - CAST ( - 67 AS INTEGER ) col1
----
67

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-164
SELECT ALL CASE + 46 WHEN + 11 - 65 - - 1 / + + COUNT( * ) THEN NULL WHEN - 13 / - 29 * - CAST( - 96 AS SIGNED ) THEN + 99 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-164
SELECT ALL CASE + 46 WHEN + 11 - 65 - - 1 / + + COUNT ( * ) THEN NULL WHEN - 13 / - 29 * - CAST ( - 96 AS INTEGER ) THEN + 99 END AS col1
----
NULL

query I rowsort
SELECT 94 * - - 22
----
2068

onlyif mysql # aggregate syntax: 
query II rowsort label-166
SELECT 3 + 97 + - - 10, 37 * - CASE - - COUNT( * ) WHEN + ( + 49 ) * + - ( 11 ) + + + COUNT( * ) + - - 0 THEN + 91 + - 43 / + + 20 END AS col2
----
110
NULL

skipif mysql # not compatible
query II rowsort label-166
SELECT 3 + 97 + - - 10, 37 * - CASE - - COUNT ( * ) WHEN + ( + 49 ) * + - ( 11 ) + + + COUNT ( * ) + - - 0 THEN + 91 + - 43 / + + 20 END AS col2
----
110
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-167
SELECT ALL 64, CAST( NULL AS DECIMAL ) AS col2
----
64
NULL

skipif mysql # not compatible
query II rowsort label-167
SELECT ALL 64, CAST ( NULL AS REAL ) AS col2
----
64
NULL

query I rowsort
SELECT 19 * + - COALESCE ( + 84, ( - 75 ) )
----
-1596

query II rowsort
SELECT ALL 18 AS col2, + 30
----
18
30

query I rowsort
SELECT ALL - - 9 * ( + + ( 26 ) ) * 34 * 40 + + - 30 AS col2
----
318210

query I rowsort
SELECT ALL + 13 + + 91 AS col0
----
104

query I rowsort
SELECT ALL - + 59 * - 17 * 77 * - - 96
----
7414176

onlyif mysql # aggregate syntax: 
query II rowsort label-173
SELECT ALL - + COUNT( * ) * + - 96 * ( + + COUNT( * ) ) AS col1, 6
----
96
6

skipif mysql # not compatible
query II rowsort label-173
SELECT ALL - + COUNT ( * ) * + - 96 * ( + + COUNT ( * ) ) AS col1, 6
----
96
6

query II rowsort
SELECT - 49 * 1 * - 21 col2, 67
----
1029
67

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-175
SELECT 56 * - 30 * + + 10, + CAST( NULL AS DECIMAL ) AS col2
----
-16800
NULL

skipif mysql # not compatible
query II rowsort label-175
SELECT 56 * - 30 * + + 10, + CAST ( NULL AS REAL ) AS col2
----
-16800
NULL

query I rowsort
SELECT DISTINCT - - 92 + 82 AS col0
----
174

query I rowsort
SELECT ALL + - 29 + 17
----
-12

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-178
SELECT - CAST( - COUNT( * ) AS SIGNED ) - + - MAX( DISTINCT - 75 )
----
-74

skipif mysql # not compatible
query I rowsort label-178
SELECT - CAST ( - COUNT ( * ) AS INTEGER ) - + - MAX ( DISTINCT - 75 )
----
-74

query II rowsort
SELECT - - 48, + 7 + 80 + + 22 + 58 AS col2
----
48
167

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-180
SELECT 36 + 40 + + 86 + - + 14 + + 61 + + 16 * + CAST( + + 14 AS SIGNED ) * - + 86 AS col1
----
-19055

skipif mysql # not compatible
query I rowsort label-180
SELECT 36 + 40 + + 86 + - + 14 + + 61 + + 16 * + CAST ( + + 14 AS INTEGER ) * - + 86 AS col1
----
-19055

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

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

query I rowsort
SELECT ALL + - ( - 32 ) + + 26
----
58

query I rowsort
SELECT DISTINCT 47 + + 32 AS col2
----
79

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

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

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

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

query II rowsort
SELECT DISTINCT + 2 AS col2, 78 - - + 51 + + + 25 + 81
----
2
235

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-188
SELECT - CASE - 5 WHEN 10 THEN NULL WHEN + COUNT( * ) THEN NULL ELSE 8 * - COUNT( 23 ) + + - 45 DIV + - 72 * + 5 END * + 26 * 1 + - - 73 + - 32 + - 76 AS col2
----
173

skipif mysql # not compatible
query I rowsort label-188
SELECT - CASE - 5 WHEN 10 THEN NULL WHEN + COUNT ( * ) THEN NULL ELSE 8 * - COUNT ( 23 ) + + - 45 / + - 72 * + 5 END * + 26 * 1 + - - 73 + - 32 + - 76 AS col2
----
173

onlyif mysql # aggregate syntax: 
query I rowsort label-189
SELECT - MAX( ALL + - 13 )
----
13

skipif mysql # not compatible
query I rowsort label-189
SELECT - MAX ( ALL + - 13 )
----
13

query I rowsort
SELECT ALL 32 - + + 76 * - 44
----
3376

onlyif mysql # aggregate syntax: 
query I rowsort label-191
SELECT 71 * - ( - 57 ) + + + 39 + MAX( DISTINCT - 70 ) + + + 12
----
4028

skipif mysql # not compatible
query I rowsort label-191
SELECT 71 * - ( - 57 ) + + + 39 + MAX ( DISTINCT - 70 ) + + + 12
----
4028

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-192
SELECT + ( - 77 ) DIV + ( 56 ) + 31 * 72 DIV + - 73 + - 85 + + - 92 - + 67 + - + ( + 18 ) - + 19 * + - 45 * + + ( - 45 ) * - 62 + + COUNT( * ) * + - 35 * - COUNT( * ) AS col0
----
2385192

skipif mysql # not compatible
query I rowsort label-192
SELECT + ( - 77 ) / + ( 56 ) + 31 * 72 / + - 73 + - 85 + + - 92 - + 67 + - + ( + 18 ) - + 19 * + - 45 * + + ( - 45 ) * - 62 + + COUNT ( * ) * + - 35 * - COUNT ( * ) AS col0
----
2385192

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-193
SELECT DISTINCT - 77 * - 39, - 24 / + 90 + + + CAST( NULL AS SIGNED ) col1
----
3003
NULL

skipif mysql # not compatible
query II rowsort label-193
SELECT DISTINCT - 77 * - 39, - 24 / + 90 + + + CAST ( NULL AS INTEGER ) col1
----
3003
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-194
SELECT ALL 59 * COALESCE ( SUM( + 85 ), - ( - 79 ) + 7, + 37 ) AS col1
----
5015

skipif mysql # not compatible
query I rowsort label-194
SELECT ALL 59 * COALESCE ( SUM ( + 85 ), - ( - 79 ) + 7, + 37 ) AS col1
----
5015

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-195
SELECT 75 * - COUNT( * ) / CAST( NULL AS DECIMAL ) * NULLIF ( + 90, - + 6 )
----
NULL

skipif mysql # not compatible
query I rowsort label-195
SELECT 75 * - COUNT ( * ) / CAST ( NULL AS REAL ) * NULLIF ( + 90, - + 6 )
----
NULL

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

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

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

skipif mysql # not compatible
query I rowsort label-197
SELECT COALESCE ( COUNT ( * ), + + COUNT ( DISTINCT - ( + 88 ) ) ) + ( - 71 )
----
-70

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-198
SELECT ALL 92 DIV MAX( ALL + 25 )
----
3

skipif mysql # not compatible
query I rowsort label-198
SELECT ALL 92 / MAX ( ALL + 25 )
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-199
SELECT DISTINCT COUNT( * ) * - - 10 * CASE - + NULLIF ( - 32, + - 5 ) WHEN - - 7 + 43 THEN - 69 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-199
SELECT DISTINCT COUNT ( * ) * - - 10 * CASE - + NULLIF ( - 32, + - 5 ) WHEN - - 7 + 43 THEN - 69 END AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-200
SELECT DISTINCT 39 DIV - ( - - 19 )
----
-2

skipif mysql # not compatible
query I rowsort label-200
SELECT DISTINCT 39 / - ( - - 19 )
----
-2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-201
SELECT COALESCE ( + COUNT( * ), + COUNT( * ) * + CASE - + 41 WHEN - 94 THEN NULL WHEN - NULLIF ( + 96, 9 ) THEN NULL ELSE + ( - 60 ) END ) DIV - + COUNT( DISTINCT + 14 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-201
SELECT COALESCE ( + COUNT ( * ), + COUNT ( * ) * + CASE - + 41 WHEN - 94 THEN NULL WHEN - NULLIF ( + 96, 9 ) THEN NULL ELSE + ( - 60 ) END ) / - + COUNT ( DISTINCT + 14 ) AS col2
----
-1

query I rowsort
SELECT 50 - - ( - 94 ) AS col0
----
-44

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-203
SELECT 81 DIV COUNT( * ) * ( - COUNT( * ) ) DIV - 99 + + ( - 29 ) + + + 33 + 25 col2
----
29

skipif mysql # not compatible
query I rowsort label-203
SELECT 81 / COUNT ( * ) * ( - COUNT ( * ) ) / - 99 + + ( - 29 ) + + + 33 + 25 col2
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-204
SELECT ALL - 82 + CASE WHEN NOT ( SUM( DISTINCT - - 4 ) ) IS NOT NULL THEN 30 * ( + + 70 ) END * - 99
----
NULL

skipif mysql # not compatible
query I rowsort label-204
SELECT ALL - 82 + CASE WHEN NOT ( SUM ( DISTINCT - - 4 ) ) IS NOT NULL THEN 30 * ( + + 70 ) END * - 99
----
NULL

query I rowsort
SELECT + 69 + + 60
----
129

onlyif mysql # aggregate syntax: 
query I rowsort label-206
SELECT 20 - MIN( + + 85 ) + + + COUNT( * ) * - + 90 AS col0
----
-155

skipif mysql # not compatible
query I rowsort label-206
SELECT 20 - MIN ( + + 85 ) + + + COUNT ( * ) * - + 90 AS col0
----
-155

query I rowsort
SELECT ALL + COALESCE ( - + 60, - - 66 ) + + 35 + + + 82 AS col2
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-208
SELECT ALL + COUNT( * ) + MIN( ALL - 24 )
----
-23

skipif mysql # not compatible
query I rowsort label-208
SELECT ALL + COUNT ( * ) + MIN ( ALL - 24 )
----
-23

query I rowsort
SELECT ALL - 80 - + 68
----
-148

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

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

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

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

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

query II rowsort
SELECT 94 * - - ( - 34 ) AS col0, + 18
----
-3196
18

onlyif mysql # DIV for integer division: 
query I rowsort label-214
SELECT ALL + 10 DIV + 90
----
0

skipif mysql # not compatible
query I rowsort label-214
SELECT ALL + 10 / + 90
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-215
SELECT 75 DIV + 64 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-215
SELECT 75 / + 64 AS col0
----
1

onlyif mysql # DIV for integer division: 
query II rowsort label-216
SELECT + 35 AS col0, 48 DIV + + 90
----
35
0

skipif mysql # not compatible
query II rowsort label-216
SELECT + 35 AS col0, 48 / + + 90
----
35
0

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

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

query I rowsort
SELECT 20 * + 54
----
1080

onlyif mysql # aggregate syntax: 
query I rowsort label-219
SELECT + MAX( ALL - 58 )
----
-58

skipif mysql # not compatible
query I rowsort label-219
SELECT + MAX ( ALL - 58 )
----
-58

query II rowsort
SELECT ALL + 65, 51 col2
----
65
51

query I rowsort
SELECT - 92 * - 86 AS col2
----
7912

onlyif mysql # aggregate syntax: 
query I rowsort label-222
SELECT DISTINCT COUNT( * ) * - COALESCE ( - NULLIF ( - - ( 43 ), 60 + - 83 * - - 5 + COUNT( * ) + + 94 ), - 32, - 93 * - 20 ) + MAX( + 99 )
----
142

skipif mysql # not compatible
query I rowsort label-222
SELECT DISTINCT COUNT ( * ) * - COALESCE ( - NULLIF ( - - ( 43 ), 60 + - 83 * - - 5 + COUNT ( * ) + + 94 ), - 32, - 93 * - 20 ) + MAX ( + 99 )
----
142

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

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

query I rowsort
SELECT DISTINCT - 48 + - + 6
----
-54

query I rowsort
SELECT + 21 - + 62 AS col0
----
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-226
SELECT DISTINCT CASE NULLIF ( + 34, - COUNT( * ) ) WHEN + 68 * - 83 THEN NULLIF ( - + SUM( DISTINCT + + 33 ), - 0 ) WHEN - 21 + + 77 THEN + - 52 END + - 15 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-226
SELECT DISTINCT CASE NULLIF ( + 34, - COUNT ( * ) ) WHEN + 68 * - 83 THEN NULLIF ( - + SUM ( DISTINCT + + 33 ), - 0 ) WHEN - 21 + + 77 THEN + - 52 END + - 15 AS col0
----
NULL

query I rowsort
SELECT DISTINCT - 86 + + 80
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-228
SELECT ALL MIN( ALL - 28 ) AS col1
----
-28

skipif mysql # not compatible
query I rowsort label-228
SELECT ALL MIN ( ALL - 28 ) AS col1
----
-28

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-229
SELECT ALL - CAST( + ( - + 94 ) AS SIGNED ) + + COUNT( * )
----
95

skipif mysql # not compatible
query I rowsort label-229
SELECT ALL - CAST ( + ( - + 94 ) AS INTEGER ) + + COUNT ( * )
----
95

query I rowsort
SELECT ALL 37 + + + 13 AS col1
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-231
SELECT DISTINCT 7 + COUNT( - - 81 ) + + 4 AS col1
----
12

skipif mysql # not compatible
query I rowsort label-231
SELECT DISTINCT 7 + COUNT ( - - 81 ) + + 4 AS col1
----
12

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query I rowsort label-232
SELECT DISTINCT - NULLIF ( - COUNT( DISTINCT + NULLIF ( - 29, 3 * + - 90 * - 76 ) ), 10 * 0 DIV - + 87 * COALESCE ( + - 79, - MAX( 41 ), 85 * 90 * + 28 + - + 96 + - + 87 + - 25 + - COUNT( * ) * - CAST( + 24 AS DECIMAL ) * + - 50 + - SUM( ALL 86 ) DIV - + 89 * 56 * + 8 DIV 53 * COUNT( * ) DIV + - 43 * - + 31 + + COUNT( * ) + - ( + 87 ) ) ) DIV + COUNT( * ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-232
SELECT DISTINCT - NULLIF ( - COUNT ( DISTINCT + NULLIF ( - 29, 3 * + - 90 * - 76 ) ), 10 * 0 / - + 87 * COALESCE ( + - 79, - MAX ( 41 ), 85 * 90 * + 28 + - + 96 + - + 87 + - 25 + - COUNT ( * ) * - CAST ( + 24 AS REAL ) * + - 50 + - SUM ( ALL 86 ) / - + 89 * 56 * + 8 / 53 * COUNT ( * ) / + - 43 * - + 31 + + COUNT ( * ) + - ( + 87 ) ) ) / + COUNT ( * ) AS col2
----
1

query II rowsort
SELECT ALL 85 AS col2, 46 AS col2
----
85
46

query I rowsort
SELECT ALL 64 * - 28 + ( - ( - 17 ) )
----
-1775

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-236
SELECT + + 71 * + 28 * + 50 * - CASE + - 71 WHEN + + 45 THEN NULL WHEN + COUNT( * ) THEN - SUM( DISTINCT - - 47 ) ELSE NULL END + - + 7, 2 AS col0
----
NULL
2

skipif mysql # not compatible
query II rowsort label-236
SELECT + + 71 * + 28 * + 50 * - CASE + - 71 WHEN + + 45 THEN NULL WHEN + COUNT ( * ) THEN - SUM ( DISTINCT - - 47 ) ELSE NULL END + - + 7, 2 AS col0
----
NULL
2

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-238
SELECT ALL - CAST( NULL AS SIGNED ) AS col1, 64
----
NULL
64

skipif mysql # not compatible
query II rowsort label-238
SELECT ALL - CAST ( NULL AS INTEGER ) AS col1, 64
----
NULL
64

onlyif mysql # aggregate syntax: 
query I rowsort label-239
SELECT + 83 + COUNT( * ) - + 21 * COUNT( * )
----
63

skipif mysql # not compatible
query I rowsort label-239
SELECT + 83 + COUNT ( * ) - + 21 * COUNT ( * )
----
63

query I rowsort
SELECT ALL 53 - - - 96 * 90
----
-8587

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-242
SELECT + 97 + - CAST( NULL AS DECIMAL ) / - 96 AS col1, 71 * + 41
----
NULL
2911

skipif mysql # not compatible
query II rowsort label-242
SELECT + 97 + - CAST ( NULL AS REAL ) / - 96 AS col1, 71 * + 41
----
NULL
2911

query I rowsort
SELECT DISTINCT COALESCE ( - 34, + 39, - 75 )
----
-34

query I rowsort
SELECT + 29 + + 46
----
75

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-245
SELECT 5 DIV + 41 - 88 - - COALESCE ( - COUNT( * ), - 67 )
----
-89

skipif mysql # not compatible
query I rowsort label-245
SELECT 5 / + 41 - 88 - - COALESCE ( - COUNT ( * ), - 67 )
----
-89

query I rowsort
SELECT - 11 + 36 + - + ( + NULLIF ( 58, + - 26 ) ) + + 31 * 48
----
1455

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

onlyif mysql # aggregate syntax: 
query I rowsort label-248
SELECT 78 * + - 52 + + 37 + 60 + 73 + - COUNT( * ) + 28 * ( + 5 ) * + 53 * - - 75 + - 77 - - 60
----
552596

skipif mysql # not compatible
query I rowsort label-248
SELECT 78 * + - 52 + + 37 + 60 + 73 + - COUNT ( * ) + 28 * ( + 5 ) * + 53 * - - 75 + - 77 - - 60
----
552596

query I rowsort
SELECT ALL + ( 59 ) * - ( + + 21 ) + - + 2
----
-1241

onlyif mysql # DIV for integer division: 
query I rowsort label-250
SELECT - 93 DIV + ( NULLIF ( - COALESCE ( 50, 70 ), + + COALESCE ( 9, - 42 ) ) ) col0
----
1

skipif mysql # not compatible
query I rowsort label-250
SELECT - 93 / + ( NULLIF ( - COALESCE ( 50, 70 ), + + COALESCE ( 9, - 42 ) ) ) col0
----
1

query I rowsort
SELECT - 51 + + 58 AS col2
----
7

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-253
SELECT ALL + 55 * - COUNT( * ) + + 32 AS col1
----
-23

skipif mysql # not compatible
query I rowsort label-253
SELECT ALL + 55 * - COUNT ( * ) + + 32 AS col1
----
-23

query I rowsort
SELECT ALL - 83 * - 78 + - 19
----
6455

query I rowsort
SELECT ALL 76 * - 13 + 27
----
-961

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-256
SELECT COALESCE ( + CASE CAST( NULL AS SIGNED ) WHEN - + 47 * + + 71 + + 68 + 33 THEN + 69 WHEN + 46 + - NULLIF ( - CASE - + 90 WHEN - 62 THEN NULL WHEN + + 81 + + 97 THEN + MAX( ALL - - 86 ) ELSE - ( - ( 97 ) ) END, - CAST( NULL AS SIGNED ) * + + 23 ) * - COUNT( * ) * + 21 THEN 38 ELSE + 60 END, 14 * + - 15 * + CASE + CASE + 2 WHEN + ( - + NULLIF ( - ( 49 ), 23 - + + COUNT( * ) ) ) THEN - 91 ELSE - 92 END WHEN + 95 THEN - CAST( - MIN( ALL - 30 ) AS SIGNED ) + - 66 - 24 * - COUNT( ALL + ( - 31 ) ) * + ( 13 ) + 13 WHEN - 63 THEN NULL END ) AS col0
----
60

skipif mysql # not compatible
query I rowsort label-256
SELECT COALESCE ( + CASE CAST ( NULL AS INTEGER ) WHEN - + 47 * + + 71 + + 68 + 33 THEN + 69 WHEN + 46 + - NULLIF ( - CASE - + 90 WHEN - 62 THEN NULL WHEN + + 81 + + 97 THEN + MAX ( ALL - - 86 ) ELSE - ( - ( 97 ) ) END, - CAST ( NULL AS INTEGER ) * + + 23 ) * - COUNT ( * ) * + 21 THEN 38 ELSE + 60 END, 14 * + - 15 * + CASE + CASE + 2 WHEN + ( - + NULLIF ( - ( 49 ), 23 - + + COUNT ( * ) ) ) THEN - 91 ELSE - 92 END WHEN + 95 THEN - CAST ( - MIN ( ALL - 30 ) AS INTEGER ) + - 66 - 24 * - COUNT ( ALL + ( - 31 ) ) * + ( 13 ) + 13 WHEN - 63 THEN NULL END ) AS col0
----
60

query I rowsort
SELECT - 57 * + 65 + - + 17 + - 36 - 14
----
-3772

query I rowsort
SELECT COALESCE ( 66, + 83 )
----
66

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-260
SELECT DISTINCT - 89 * COUNT( * ) * + 72 + + COALESCE ( - SUM( + 35 ), ( 73 ) ) AS col1
----
-6443

skipif mysql # not compatible
query I rowsort label-260
SELECT DISTINCT - 89 * COUNT ( * ) * + 72 + + COALESCE ( - SUM ( + 35 ), ( 73 ) ) AS col1
----
-6443

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-261
SELECT ALL - COUNT( * ) * - 49 + + COALESCE ( + - NULLIF ( 94, - 56 + - NULLIF ( 6, - + AVG ( ALL - + 94 ) * + 63 DIV + + 60 * + 18 + MAX( ALL + 59 ) * CAST( + - 26 AS SIGNED ) ) ), + 71 + 35 DIV - 91 ) DIV - 21 + + 25 + - 39 DIV 93
----
78

skipif mysql # not compatible
query I rowsort label-261
SELECT ALL - COUNT ( * ) * - 49 + + COALESCE ( + - NULLIF ( 94, - 56 + - NULLIF ( 6, - + AVG ( ALL - + 94 ) * + 63 / + + 60 * + 18 + MAX ( ALL + 59 ) * CAST ( + - 26 AS INTEGER ) ) ), + 71 + 35 / - 91 ) / - 21 + + 25 + - 39 / 93
----
78

query I rowsort
SELECT - 9 * - 14
----
126

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

skipif mysql # not compatible
query I rowsort label-263
SELECT + COALESCE ( - - COUNT ( * ), 17 )
----
1

query I rowsort
SELECT ALL + + NULLIF ( 83, - ( + 14 ) * 39 ) * + 18
----
1494

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-266
SELECT DISTINCT - 20 * + 91 + + MAX( ALL 78 ) + + CAST( - + 14 AS SIGNED ) * + - 43 AS col2
----
-1140

skipif mysql # not compatible
query I rowsort label-266
SELECT DISTINCT - 20 * + 91 + + MAX ( ALL 78 ) + + CAST ( - + 14 AS INTEGER ) * + - 43 AS col2
----
-1140

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-267
SELECT + COALESCE ( NULLIF ( - + 58, + ( + 45 ) ), - 60 - - 15 - ( + + SUM( 63 ) ) DIV + 57 * - 7 * 78, 90 ) * + 44 - - ( - - 21 ) + + - 26
----
-2557

skipif mysql # not compatible
query I rowsort label-267
SELECT + COALESCE ( NULLIF ( - + 58, + ( + 45 ) ), - 60 - - 15 - ( + + SUM ( 63 ) ) / + 57 * - 7 * 78, 90 ) * + 44 - - ( - - 21 ) + + - 26
----
-2557

query I rowsort
SELECT - 56 * 1
----
-56

query II rowsort
SELECT DISTINCT 96 AS col2, 39
----
96
39

query I rowsort
SELECT ALL + 5 * + 13 AS col0
----
65

query I rowsort
SELECT ALL 60 * 35 - - 57 * - + 80 * + 96 + + 78 * 26 AS col0
----
-433632

query I rowsort
SELECT + + 19 + - 74
----
-55

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-273
SELECT + - 44 + - CAST( NULL AS SIGNED ) + - - 17 * - + SUM( - 89 )
----
NULL

skipif mysql # not compatible
query I rowsort label-273
SELECT + - 44 + - CAST ( NULL AS INTEGER ) + - - 17 * - + SUM ( - 89 )
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-274
SELECT ALL 47, 37 DIV 98 AS col0
----
47
0

skipif mysql # not compatible
query II rowsort label-274
SELECT ALL 47, 37 / 98 AS col0
----
47
0

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

skipif mysql # not compatible
query I rowsort label-275
SELECT + MIN ( - 1 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-276
SELECT - - 0 * - + SUM( DISTINCT - 12 ) - + 27
----
-27

skipif mysql # not compatible
query I rowsort label-276
SELECT - - 0 * - + SUM ( DISTINCT - 12 ) - + 27
----
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-277
SELECT ALL - MAX( ALL + - 11 )
----
11

skipif mysql # not compatible
query I rowsort label-277
SELECT ALL - MAX ( ALL + - 11 )
----
11

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-278
SELECT - - 82 AS col1, - 9 - NULLIF ( - 84, - 90 * + + CAST( NULL AS DECIMAL ) ) - + 90 + + 60
----
82
45

skipif mysql # not compatible
query II rowsort label-278
SELECT - - 82 AS col1, - 9 - NULLIF ( - 84, - 90 * + + CAST ( NULL AS REAL ) ) - + 90 + + 60
----
82
45

onlyif mysql # aggregate syntax: 
query I rowsort label-279
SELECT ALL COUNT( * ) * 83 - 38 col1
----
45

skipif mysql # not compatible
query I rowsort label-279
SELECT ALL COUNT ( * ) * 83 - 38 col1
----
45

query I rowsort
SELECT + 95 * + 16 * 98 AS col2
----
148960

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-281
SELECT + + 17 + + CAST( NULL AS SIGNED ) + - 92
----
NULL

skipif mysql # not compatible
query I rowsort label-281
SELECT + + 17 + + CAST ( NULL AS INTEGER ) + - 92
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-282
SELECT - CASE COUNT( DISTINCT 83 ) WHEN + NULLIF ( + SUM( + 19 ), 6 * SUM( DISTINCT 7 ) + + 8 + + 93 ) THEN 19 + - 72 WHEN + + 12 * + + 11 THEN ( - 55 ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-282
SELECT - CASE COUNT ( DISTINCT 83 ) WHEN + NULLIF ( + SUM ( + 19 ), 6 * SUM ( DISTINCT 7 ) + + 8 + + 93 ) THEN 19 + - 72 WHEN + + 12 * + + 11 THEN ( - 55 ) END AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-283
SELECT + 5 DIV + 30 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-283
SELECT + 5 / + 30 AS col0
----
0

query I rowsort
SELECT 23 * - 1 * + 42 col0
----
-966

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-286
SELECT CAST( NULL AS SIGNED ) * - 32 AS col2, 58 DIV 62 + COUNT( + 58 )
----
NULL
1

skipif mysql # not compatible
query II rowsort label-286
SELECT CAST ( NULL AS INTEGER ) * - 32 AS col2, 58 / 62 + COUNT ( + 58 )
----
NULL
1

onlyif mysql # aggregate syntax: 
query II rowsort label-287
SELECT ALL 34 + 81 + - 82 * - 12 + + COUNT( * ) AS col0, - 12 + - 81 * 28 + COUNT( * ) AS col0
----
1100
-2279

skipif mysql # not compatible
query II rowsort label-287
SELECT ALL 34 + 81 + - 82 * - 12 + + COUNT ( * ) AS col0, - 12 + - 81 * 28 + COUNT ( * ) AS col0
----
1100
-2279

onlyif mysql # aggregate syntax: 
query I rowsort label-288
SELECT ALL ( 55 ) + - COUNT( * ) col2
----
54

skipif mysql # not compatible
query I rowsort label-288
SELECT ALL ( 55 ) + - COUNT ( * ) col2
----
54

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

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

query I rowsort
SELECT 38 * ( + 88 )
----
3344

query I rowsort
SELECT ALL 27 * + + 23 AS col0
----
621

query I rowsort
SELECT COALESCE ( - 64, - 2 * - + 37 + 31 * - 45 * + - 28 - 27 ) + 30
----
-34

query I rowsort
SELECT ALL + 12 + - 0 - - + 56 AS col0
----
68

onlyif mysql # aggregate syntax: 
query II rowsort label-294
SELECT DISTINCT - MAX( + - 98 ) AS col1, - 80 + + - 40 * + 79 col0
----
98
-3240

skipif mysql # not compatible
query II rowsort label-294
SELECT DISTINCT - MAX ( + - 98 ) AS col1, - 80 + + - 40 * + 79 col0
----
98
-3240

onlyif mysql # aggregate syntax: 
query II rowsort label-295
SELECT 64 * + SUM( DISTINCT - 32 ) AS col2, COUNT( * )
----
-2048
1

skipif mysql # not compatible
query II rowsort label-295
SELECT 64 * + SUM ( DISTINCT - 32 ) AS col2, COUNT ( * )
----
-2048
1

onlyif mysql # aggregate syntax: 
query I rowsort label-296
SELECT - 12 * + + 53 - 50 + + - COUNT( * ) col1
----
-687

skipif mysql # not compatible
query I rowsort label-296
SELECT - 12 * + + 53 - 50 + + - COUNT ( * ) col1
----
-687

onlyif mysql # aggregate syntax: 
query I rowsort label-297
SELECT ALL - COUNT( - 37 ) col0
----
-1

skipif mysql # not compatible
query I rowsort label-297
SELECT ALL - COUNT ( - 37 ) col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-298
SELECT MAX( DISTINCT + + ( + 8 ) ) * - + 78 + + 5 + - 91 * + - 16 * - MAX( 22 ) AS col1
----
-32651

skipif mysql # not compatible
query I rowsort label-298
SELECT MAX ( DISTINCT + + ( + 8 ) ) * - + 78 + + 5 + - 91 * + - 16 * - MAX ( 22 ) AS col1
----
-32651

query I rowsort
SELECT + 49 * + 21 AS col0
----
1029

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-300
SELECT 95 * + 7 + + + CAST( - - 59 AS SIGNED )
----
724

skipif mysql # not compatible
query I rowsort label-300
SELECT 95 * + 7 + + + CAST ( - - 59 AS INTEGER )
----
724

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

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

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

query I rowsort
SELECT + 90 - - 78 AS col2
----
168

query II rowsort
SELECT 28 * - 61, - 63 AS col2
----
-1708
-63

query II rowsort
SELECT - 56 + - 71 + + 58 + - 64 * - 42 col2, 13 - 36 * 78
----
2619
-2795

onlyif mysql # aggregate syntax: 
query I rowsort label-306
SELECT ALL + 27 * - 24 * + - COUNT( * ) + 38 / + + 84 * + + ( - 17 ) * CASE + ( + - 77 ) WHEN - 89 THEN - - 0 + + - 38 + + 76 END - - - 70 * - + 88 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-306
SELECT ALL + 27 * - 24 * + - COUNT ( * ) + 38 / + + 84 * + + ( - 17 ) * CASE + ( + - 77 ) WHEN - 89 THEN - - 0 + + - 38 + + 76 END - - - 70 * - + 88 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-307
SELECT DISTINCT - SUM( ALL - + 22 ) * 41 AS col0
----
902

skipif mysql # not compatible
query I rowsort label-307
SELECT DISTINCT - SUM ( ALL - + 22 ) * 41 AS col0
----
902

query I rowsort
SELECT - 32 + + 4 AS col0
----
-28

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-309
SELECT CAST( + COALESCE ( + 40, + 16 + - 49 + - + 6 ) AS SIGNED ) AS col0
----
40

skipif mysql # not compatible
query I rowsort label-309
SELECT CAST ( + COALESCE ( + 40, + 16 + - 49 + - + 6 ) AS INTEGER ) AS col0
----
40

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

onlyif mysql # aggregate syntax: 
query I rowsort label-311
SELECT 78 + COUNT( * ) AS col2
----
79

skipif mysql # not compatible
query I rowsort label-311
SELECT 78 + COUNT ( * ) AS col2
----
79

query I rowsort
SELECT 84 + 11 AS col1
----
95

onlyif mysql # aggregate syntax: 
query I rowsort label-313
SELECT DISTINCT COUNT( * ) + + 5 - 54
----
-48

skipif mysql # not compatible
query I rowsort label-313
SELECT DISTINCT COUNT ( * ) + + 5 - 54
----
-48

query I rowsort
SELECT ALL 94 + 22 col0
----
116

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-315
SELECT 94 + + AVG ( - - 87 ) * + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-315
SELECT 94 + + AVG ( - - 87 ) * + CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-316
SELECT COUNT( * ) + + 35 * - 18 * 34 DIV + COUNT( * ) AS col1
----
-21419

skipif mysql # not compatible
query I rowsort label-316
SELECT COUNT ( * ) + + 35 * - 18 * 34 / + COUNT ( * ) AS col1
----
-21419

query II rowsort
SELECT ALL 80 AS col2, - 65
----
80
-65

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-318
SELECT ALL MIN( ALL - 85 ) + - COUNT( * ) * + CAST( + 73 AS SIGNED )
----
-158

skipif mysql # not compatible
query I rowsort label-318
SELECT ALL MIN ( ALL - 85 ) + - COUNT ( * ) * + CAST ( + 73 AS INTEGER )
----
-158

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-319
SELECT NULLIF ( + CAST( + 96 AS SIGNED ), - 22 ) + + + 71 * CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-319
SELECT NULLIF ( + CAST ( + 96 AS INTEGER ), - 22 ) + + + 71 * CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-320
SELECT ALL + 15 + + 12 DIV + 68 AS col1, - 33 AS col1
----
15
-33

skipif mysql # not compatible
query II rowsort label-320
SELECT ALL + 15 + + 12 / + 68 AS col1, - 33 AS col1
----
15
-33

query I rowsort
SELECT 3 + - 53 AS col0
----
-50

onlyif mysql # DIV for integer division: 
query I rowsort label-322
SELECT 79 DIV + 83 + + 79 AS col2
----
79

skipif mysql # not compatible
query I rowsort label-322
SELECT 79 / + 83 + + 79 AS col2
----
79

query I rowsort
SELECT 9 * CASE + - 69 WHEN 74 THEN NULL WHEN + ( + 62 ) THEN - 92 WHEN - 96 + + 36 THEN 86 END * + NULLIF ( + 15, + 83 ) AS col1
----
NULL

query II rowsort
SELECT DISTINCT - 90, - 59 col1
----
-90
-59

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-325
SELECT - ( - COUNT( * ) ) * - MIN( + 87 ) DIV 13 + COUNT( * ) + 59
----
54

skipif mysql # not compatible
query I rowsort label-325
SELECT - ( - COUNT ( * ) ) * - MIN ( + 87 ) / 13 + COUNT ( * ) + 59
----
54

query II rowsort
SELECT 38 + - ( - - 48 ) col1, 78 AS col2
----
-10
78

query II rowsort
SELECT ALL - 9 AS col1, 51 AS col1
----
-9
51

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

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

query II rowsort
SELECT ALL - + 8, + COALESCE ( + - 82, - 22 ) AS col0
----
-8
-82

query I rowsort
SELECT DISTINCT 12 - + 6 col1
----
6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-332
SELECT - CAST( + COUNT( * ) AS SIGNED ) * + + 55 + ( + - COUNT( * ) )
----
-56

skipif mysql # not compatible
query I rowsort label-332
SELECT - CAST ( + COUNT ( * ) AS INTEGER ) * + + 55 + ( + - COUNT ( * ) )
----
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-333
SELECT + + 39 * + 26 + - 46 + - COUNT( * ) - - ( 72 ) + - COUNT( * )
----
1038

skipif mysql # not compatible
query I rowsort label-333
SELECT + + 39 * + 26 + - 46 + - COUNT ( * ) - - ( 72 ) + - COUNT ( * )
----
1038

onlyif mysql # aggregate syntax: 
query II rowsort label-334
SELECT ALL - - 30, 18 - + CASE + 30 WHEN + 35 THEN + + 96 ELSE + + SUM( ALL - 9 ) END + 67 + + 64 col1
----
30
158

skipif mysql # not compatible
query II rowsort label-334
SELECT ALL - - 30, 18 - + CASE + 30 WHEN + 35 THEN + + 96 ELSE + + SUM ( ALL - 9 ) END + 67 + + 64 col1
----
30
158

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-335
SELECT DISTINCT - 55 * COUNT( * ) + - ( - CAST( NULL AS SIGNED ) ) + CAST( NULL AS SIGNED ) + - 53 * - + 64
----
NULL

skipif mysql # not compatible
query I rowsort label-335
SELECT DISTINCT - 55 * COUNT ( * ) + - ( - CAST ( NULL AS INTEGER ) ) + CAST ( NULL AS INTEGER ) + - 53 * - + 64
----
NULL

query I rowsort
SELECT - 74 + - 7 * + + 88 * + - 6 AS col1
----
3622

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-337
SELECT - CAST( NULL AS SIGNED ) * CASE - 40 WHEN + 51 THEN NULL ELSE - - 5 END * - - 41
----
NULL

skipif mysql # not compatible
query I rowsort label-337
SELECT - CAST ( NULL AS INTEGER ) * CASE - 40 WHEN + 51 THEN NULL ELSE - - 5 END * - - 41
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-338
SELECT COALESCE ( + 65, + 90, - COUNT( * ) ) * - + COALESCE ( - - 68, - 21 * + + 15, - 54 * - 11 * - 56 + + 37 + - 11 * + - 93 * - ( COUNT( * ) ) + + ( + - CAST( + - 30 AS SIGNED ) ) ) + + 72 DIV - 90 AS col2
----
-4420

skipif mysql # not compatible
query I rowsort label-338
SELECT COALESCE ( + 65, + 90, - COUNT ( * ) ) * - + COALESCE ( - - 68, - 21 * + + 15, - 54 * - 11 * - 56 + + 37 + - 11 * + - 93 * - ( COUNT ( * ) ) + + ( + - CAST ( + - 30 AS INTEGER ) ) ) + + 72 / - 90 AS col2
----
-4420

query I rowsort
SELECT ALL - COALESCE ( 24, - 48 * + 11 ) * - + 99
----
2376

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

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

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

skipif mysql # not compatible
query I rowsort label-341
SELECT - COUNT ( - 0 )
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-342
SELECT - CAST( - CAST( + 29 AS SIGNED ) AS SIGNED ), 46 + 2 col0
----
29
48

skipif mysql # not compatible
query II rowsort label-342
SELECT - CAST ( - CAST ( + 29 AS INTEGER ) AS INTEGER ), 46 + 2 col0
----
29
48

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-344
SELECT 99 / + CASE + ( - + CASE 40 WHEN - - ( - 54 ) - CASE + - 90 WHEN - 3 THEN NULL WHEN + 34 + + - SUM( - 15 ) + - 72 + - 96 THEN + + 93 END THEN + + NULLIF ( + COUNT( * ), + 15 ) END ) WHEN 84 * + 12 * - + 45 * - 47 * - - CAST( - + 98 AS SIGNED ) + + 48 + - - 84 - COUNT( * ) / ( - 55 ) THEN 70 * + - ( + 8 ) * 64 - - 46 + 33 WHEN - - 57 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-344
SELECT 99 / + CASE + ( - + CASE 40 WHEN - - ( - 54 ) - CASE + - 90 WHEN - 3 THEN NULL WHEN + 34 + + - SUM ( - 15 ) + - 72 + - 96 THEN + + 93 END THEN + + NULLIF ( + COUNT ( * ), + 15 ) END ) WHEN 84 * + 12 * - + 45 * - 47 * - - CAST ( - + 98 AS INTEGER ) + + 48 + - - 84 - COUNT ( * ) / ( - 55 ) THEN 70 * + - ( + 8 ) * 64 - - 46 + 33 WHEN - - 57 THEN NULL END
----
NULL

query I rowsort
SELECT + NULLIF ( 51, - - 47 ) * - 45 col2
----
-2295

query I rowsort
SELECT - 99 + - 8 + + + 68 + + 77 col0
----
38

query II rowsort
SELECT + 44 AS col0, - 14
----
44
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-348
SELECT ALL + COALESCE ( + MAX( - - 58 ), - 85 * COUNT( * ) ) + - + 65 AS col2
----
-7

skipif mysql # not compatible
query I rowsort label-348
SELECT ALL + COALESCE ( + MAX ( - - 58 ), - 85 * COUNT ( * ) ) + - + 65 AS col2
----
-7

query I rowsort
SELECT - ( - 73 ) * + 43 + + 91 col2
----
3230

query I rowsort
SELECT DISTINCT - ( + 96 ) * 72
----
-6912

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-351
SELECT ALL CASE - - 13 WHEN - + 81 * CAST( NULL AS SIGNED ) * 7 * CAST( - - 72 AS SIGNED ) THEN - ( + 21 ) WHEN + - 46 THEN NULL ELSE - 50 - + NULLIF ( + ( + 93 ), - COUNT( + + 98 ) ) END AS col0
----
-143

skipif mysql # not compatible
query I rowsort label-351
SELECT ALL CASE - - 13 WHEN - + 81 * CAST ( NULL AS INTEGER ) * 7 * CAST ( - - 72 AS INTEGER ) THEN - ( + 21 ) WHEN + - 46 THEN NULL ELSE - 50 - + NULLIF ( + ( + 93 ), - COUNT ( + + 98 ) ) END AS col0
----
-143

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

skipif mysql # not compatible
query I rowsort label-352
SELECT ALL + COUNT ( * ) + - - 18 AS col1
----
19

query I rowsort
SELECT ALL - 56 * - + 19 AS col2
----
1064

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

skipif mysql # not compatible
query I rowsort label-354
SELECT ALL COUNT ( * ) + - 20 AS col2
----
-19

query I rowsort
SELECT - 46 * - 7 AS col0
----
322

onlyif mysql # aggregate syntax: 
query II rowsort label-356
SELECT - COUNT( * ) + 74 AS col1, + 96 AS col0
----
73
96

skipif mysql # not compatible
query II rowsort label-356
SELECT - COUNT ( * ) + 74 AS col1, + 96 AS col0
----
73
96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-357
SELECT ALL + 11 - + - COALESCE ( CAST( - - 50 AS SIGNED ), - + COUNT( * ) - + COUNT( * ) - + 9, + 6 - COALESCE ( - COUNT( * ), - 49 ) ) AS col0
----
61

skipif mysql # not compatible
query I rowsort label-357
SELECT ALL + 11 - + - COALESCE ( CAST ( - - 50 AS INTEGER ), - + COUNT ( * ) - + COUNT ( * ) - + 9, + 6 - COALESCE ( - COUNT ( * ), - 49 ) ) AS col0
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-358
SELECT - 10 * - 27 * ( - - MIN( 36 ) )
----
9720

skipif mysql # not compatible
query I rowsort label-358
SELECT - 10 * - 27 * ( - - MIN ( 36 ) )
----
9720

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

query II rowsort
SELECT ALL ( 74 ) AS col1, 70 AS col0
----
74
70

query I rowsort
SELECT ALL CASE 66 WHEN + 93 THEN 99 WHEN 97 THEN 28 END col0
----
NULL

query I rowsort
SELECT ALL 74 * - ( - 35 ) AS col0
----
2590

query I rowsort
SELECT DISTINCT 9 * + - 30
----
-270

query I rowsort
SELECT ALL 26 * - NULLIF ( - - 82, - 30 )
----
-2132

onlyif mysql # DIV for integer division: 
query I rowsort label-365
SELECT + 31 DIV - 84 * + 1 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-365
SELECT + 31 / - 84 * + 1 AS col1
----
0

query II rowsort
SELECT ALL + 17 * 84 AS col2, - 34
----
1428
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-367
SELECT - - NULLIF ( ( - - 24 ), + - 81 ) * + CASE + ( + ( 65 ) ) WHEN CASE 8 WHEN MAX( - ( - + 67 ) ) THEN + + 40 + ( - MAX( DISTINCT + 35 ) ) END THEN + MAX( DISTINCT + NULLIF ( - - 17, - - 59 + CASE 21 WHEN ( + 65 ) THEN 84 END ) ) * 25 * - 28 END
----
NULL

skipif mysql # not compatible
query I rowsort label-367
SELECT - - NULLIF ( ( - - 24 ), + - 81 ) * + CASE + ( + ( 65 ) ) WHEN CASE 8 WHEN MAX ( - ( - + 67 ) ) THEN + + 40 + ( - MAX ( DISTINCT + 35 ) ) END THEN + MAX ( DISTINCT + NULLIF ( - - 17, - - 59 + CASE 21 WHEN ( + 65 ) THEN 84 END ) ) * 25 * - 28 END
----
NULL

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-369
SELECT - - ( - 9 ) DIV + - 72 - + - 92 * 93 + + COUNT( DISTINCT + 33 ) + - 93 + + 53 * + - 53 col2
----
5655

skipif mysql # not compatible
query I rowsort label-369
SELECT - - ( - 9 ) / + - 72 - + - 92 * 93 + + COUNT ( DISTINCT + 33 ) + - 93 + + 53 * + - 53 col2
----
5655

onlyif mysql # DIV for integer division: 
query I rowsort label-370
SELECT + + 57 DIV 85 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-370
SELECT + + 57 / 85 AS col1
----
0

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

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

query I rowsort
SELECT + + 87 - - 73 + - 63
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-373
SELECT - 77 * + 67 + + COUNT( * )
----
-5158

skipif mysql # not compatible
query I rowsort label-373
SELECT - 77 * + 67 + + COUNT ( * )
----
-5158

query I rowsort
SELECT ALL 69 * + 19 + + 60 - - - 57 * + - 0 + - 61 * + + 13 * 14
----
-9731

onlyif mysql # aggregate syntax: 
query I rowsort label-375
SELECT ALL + - 9 * + SUM( - 29 ) + 24 AS col1
----
285

skipif mysql # not compatible
query I rowsort label-375
SELECT ALL + - 9 * + SUM ( - 29 ) + 24 AS col1
----
285

onlyif mysql # aggregate syntax: 
query I rowsort label-376
SELECT ALL - + 42 * + - 55 + - - 11 * MAX( - 28 ) + 43 + 65 * + COALESCE ( + + 11, 30 ) AS col0
----
2760

skipif mysql # not compatible
query I rowsort label-376
SELECT ALL - + 42 * + - 55 + - - 11 * MAX ( - 28 ) + 43 + 65 * + COALESCE ( + + 11, 30 ) AS col0
----
2760

onlyif mysql # aggregate syntax: 
query I rowsort label-377
SELECT + 75 - COUNT( * ) * - 58
----
133

skipif mysql # not compatible
query I rowsort label-377
SELECT + 75 - COUNT ( * ) * - 58
----
133

onlyif mysql # aggregate syntax: 
query I rowsort label-378
SELECT - + CASE COUNT( ALL - - 23 ) WHEN COUNT( * ) THEN + - 62 END * 0 + + 29
----
29

skipif mysql # not compatible
query I rowsort label-378
SELECT - + CASE COUNT ( ALL - - 23 ) WHEN COUNT ( * ) THEN + - 62 END * 0 + + 29
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-379
SELECT ALL 44 * - 27 + + SUM( DISTINCT + 6 )
----
-1182

skipif mysql # not compatible
query I rowsort label-379
SELECT ALL 44 * - 27 + + SUM ( DISTINCT + 6 )
----
-1182

onlyif mysql # aggregate syntax: 
query I rowsort label-380
SELECT ALL + + 90 * - 29 + - COUNT( * ) AS col2
----
-2611

skipif mysql # not compatible
query I rowsort label-380
SELECT ALL + + 90 * - 29 + - COUNT ( * ) AS col2
----
-2611

query I rowsort
SELECT + + 11 * - - 22 AS col1
----
242

query I rowsort
SELECT ALL + 6 * + 95
----
570

query I rowsort
SELECT ALL 58 + + 70 col1
----
128

onlyif mysql # aggregate syntax: 
query I rowsort label-384
SELECT ALL COUNT( * ) + 89 * - + 98 + + MAX( + 35 ) * + - MAX( - 8 )
----
-8441

skipif mysql # not compatible
query I rowsort label-384
SELECT ALL COUNT ( * ) + 89 * - + 98 + + MAX ( + 35 ) * + - MAX ( - 8 )
----
-8441

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

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

query I rowsort
SELECT - 46 - - + 98 + - 12 * 11 * 31 col2
----
-4040

onlyif mysql # aggregate syntax: 
query I rowsort label-387
SELECT DISTINCT SUM( ALL - - 83 ) AS col1
----
83

skipif mysql # not compatible
query I rowsort label-387
SELECT DISTINCT SUM ( ALL - - 83 ) AS col1
----
83

query I rowsort
SELECT + 17 + + - 7
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-389
SELECT - 22 * + SUM( DISTINCT + CASE ( - 17 ) WHEN 43 THEN NULL WHEN - 63 THEN + 77 END ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-389
SELECT - 22 * + SUM ( DISTINCT + CASE ( - 17 ) WHEN 43 THEN NULL WHEN - 63 THEN + 77 END ) AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-390
SELECT + 93 + ( - 32 ) - COUNT( ALL 2 ) + CAST( NULL AS SIGNED ) * + - 74 * - - 93
----
NULL

skipif mysql # not compatible
query I rowsort label-390
SELECT + 93 + ( - 32 ) - COUNT ( ALL 2 ) + CAST ( NULL AS INTEGER ) * + - 74 * - - 93
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query III rowsort label-391
SELECT ALL + 16 - + 93 + - ( + CAST( NULL AS SIGNED ) ) * 76 + + 62 + + 28 / - 97 * COUNT( - 3 ) / - + AVG ( + - 45 ) - 77 * - 99 + 96 AS col2, + 37 * + - COALESCE ( NULLIF ( + 26, + 36 ), + 17, + 92 + 29 ), + 3 - ( - 64 ) + CAST( NULL AS SIGNED ) - 28 + + COUNT( * ) * + 77 AS col0
----
NULL
-962
NULL

skipif mysql # not compatible
query III rowsort label-391
SELECT ALL + 16 - + 93 + - ( + CAST ( NULL AS INTEGER ) ) * 76 + + 62 + + 28 / - 97 * COUNT ( - 3 ) / - + AVG ( + - 45 ) - 77 * - 99 + 96 AS col2, + 37 * + - COALESCE ( NULLIF ( + 26, + 36 ), + 17, + 92 + 29 ), + 3 - ( - 64 ) + CAST ( NULL AS INTEGER ) - 28 + + COUNT ( * ) * + 77 AS col0
----
NULL
-962
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-392
SELECT + 10 + + 53 DIV 43
----
11

skipif mysql # not compatible
query I rowsort label-392
SELECT + 10 + + 53 / 43
----
11

onlyif mysql # aggregate syntax: 
query II rowsort label-393
SELECT - 40 col2, COUNT( * ) + + 59 AS col0
----
-40
60

skipif mysql # not compatible
query II rowsort label-393
SELECT - 40 col2, COUNT ( * ) + + 59 AS col0
----
-40
60

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

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

query I rowsort
SELECT - 86 + + + 94 + - - 11 AS col1
----
19

query I rowsort
SELECT DISTINCT ( 55 ) AS col0
----
55

onlyif mysql # aggregate syntax: 
query II rowsort label-397
SELECT ALL + 26 * MAX( ALL - - 15 ) col1, + 23 AS col2
----
390
23

skipif mysql # not compatible
query II rowsort label-397
SELECT ALL + 26 * MAX ( ALL - - 15 ) col1, + 23 AS col2
----
390
23

onlyif mysql # aggregate syntax: 
query I rowsort label-398
SELECT ALL CASE + 77 WHEN + 67 - 2 THEN - COUNT( * ) ELSE - + 36 END AS col0
----
-36

skipif mysql # not compatible
query I rowsort label-398
SELECT ALL CASE + 77 WHEN + 67 - 2 THEN - COUNT ( * ) ELSE - + 36 END AS col0
----
-36

query I rowsort
SELECT - 15 + 50
----
35

onlyif mysql # DIV for integer division: 
query I rowsort label-400
SELECT ALL + 26 * 93 DIV + - NULLIF ( + 14, + 91 * - ( AVG ( - 83 ) ) + + 22 ) AS col1
----
-172

skipif mysql # not compatible
query I rowsort label-400
SELECT ALL + 26 * 93 / + - NULLIF ( + 14, + 91 * - ( AVG ( - 83 ) ) + + 22 ) AS col1
----
-172

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-401
SELECT + 65 DIV 26 + + MIN( + 81 )
----
83

skipif mysql # not compatible
query I rowsort label-401
SELECT + 65 / 26 + + MIN ( + 81 )
----
83

query I rowsort
SELECT DISTINCT + NULLIF ( + 19, - 67 + 4 * + 36 )
----
19

onlyif mysql # DIV for integer division: 
query I rowsort label-403
SELECT ALL ( NULLIF ( - 14, + 93 ) ) DIV 92 + + CASE 63 WHEN ( 1 ) DIV - 22 + 50 THEN 65 - + 8 ELSE 11 DIV 79 END
----
0

skipif mysql # not compatible
query I rowsort label-403
SELECT ALL ( NULLIF ( - 14, + 93 ) ) / 92 + + CASE 63 WHEN ( 1 ) / - 22 + 50 THEN 65 - + 8 ELSE 11 / 79 END
----
0

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

skipif mysql # not compatible
query I rowsort label-404
SELECT + COUNT ( * ) / CAST ( NULL AS INTEGER ) + + 37 / + 52 AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-405
SELECT DISTINCT 2 DIV 73 + - 79 AS col0
----
-79

skipif mysql # not compatible
query I rowsort label-405
SELECT DISTINCT 2 / 73 + - 79 AS col0
----
-79

query I rowsort
SELECT + 15 * 67 + 14 * 86
----
2209

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-407
SELECT ALL COUNT( * ) DIV - ( 87 * 52 ) + + 52 * - 95 col0
----
-4940

skipif mysql # not compatible
query I rowsort label-407
SELECT ALL COUNT ( * ) / - ( 87 * 52 ) + + 52 * - 95 col0
----
-4940

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-409
SELECT ALL - COUNT( * ) DIV ( - 29 ) + 46 AS col0
----
46

skipif mysql # not compatible
query I rowsort label-409
SELECT ALL - COUNT ( * ) / ( - 29 ) + 46 AS col0
----
46

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

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

query I rowsort
SELECT DISTINCT NULLIF ( 79, + ( 41 ) ) + 96 * 47
----
4591

onlyif mysql # DIV for integer division: 
query I rowsort label-412
SELECT ALL 77 + 37 DIV 65
----
77

skipif mysql # not compatible
query I rowsort label-412
SELECT ALL 77 + 37 / 65
----
77

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

query I rowsort
SELECT 97 * + 74
----
7178

query I rowsort
SELECT - 45 * + 33 + + 9
----
-1476

query I rowsort
SELECT 29 + + 58
----
87

query I rowsort
SELECT ( + 7 ) + 73 * 93 AS col2
----
6796

query I rowsort
SELECT 48 + 97
----
145

query I rowsort
SELECT 57 + - 92 * + 81
----
-7395

query I rowsort
SELECT DISTINCT ( 49 ) * 88
----
4312

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-422
SELECT 66 DIV - 38
----
-1

skipif mysql # not compatible
query I rowsort label-422
SELECT 66 / - 38
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-423
SELECT DISTINCT - + 7 DIV + 1
----
-7

skipif mysql # not compatible
query I rowsort label-423
SELECT DISTINCT - + 7 / + 1
----
-7

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-425
SELECT - COALESCE ( 74, + 14 + - 71, + 56 ) DIV 18 AS col2
----
-4

skipif mysql # not compatible
query I rowsort label-425
SELECT - COALESCE ( 74, + 14 + - 71, + 56 ) / 18 AS col2
----
-4

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

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

query I rowsort
SELECT ALL - 35 * - 7
----
245

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-429
SELECT DISTINCT + 43 + - NULLIF ( COALESCE ( 76, + 76 DIV - 69 ) + + COALESCE ( 11, COUNT( * ) * - NULLIF ( 8, 98 + 64 ) ), 71 )
----
-44

skipif mysql # not compatible
query I rowsort label-429
SELECT DISTINCT + 43 + - NULLIF ( COALESCE ( 76, + 76 / - 69 ) + + COALESCE ( 11, COUNT ( * ) * - NULLIF ( 8, 98 + 64 ) ), 71 )
----
-44

query I rowsort
SELECT ALL - 85 + - 26
----
-111

query I rowsort
SELECT 87 * 26
----
2262

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-432
SELECT + + 12 * - COUNT( * ) + 7 DIV 4 col0
----
-11

skipif mysql # not compatible
query I rowsort label-432
SELECT + + 12 * - COUNT ( * ) + 7 / 4 col0
----
-11

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-434
SELECT 35 DIV 20 + - 72
----
-71

skipif mysql # not compatible
query I rowsort label-434
SELECT 35 / 20 + - 72
----
-71

query I rowsort
SELECT ( - ( 62 ) ) col2
----
-62

query I rowsort
SELECT ( - 49 ) + + 47
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-437
SELECT + 57 * - SUM( ALL 72 )
----
-4104

skipif mysql # not compatible
query I rowsort label-437
SELECT + 57 * - SUM ( ALL 72 )
----
-4104

query I rowsort
SELECT ALL + 50 + + ( 45 + 92 ) col0
----
187

query I rowsort
SELECT - 9 + 9
----
0

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

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

query I rowsort
SELECT DISTINCT + 47 - 31 * + 86 AS col0
----
-2619

onlyif mysql # aggregate syntax: 
query I rowsort label-442
SELECT DISTINCT + 67 - COUNT( 64 )
----
66

skipif mysql # not compatible
query I rowsort label-442
SELECT DISTINCT + 67 - COUNT ( 64 )
----
66

query I rowsort
SELECT 32 * - 29
----
-928

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

query I rowsort
SELECT DISTINCT - 16 * + 75 AS col2
----
-1200

onlyif mysql # aggregate syntax: 
query I rowsort label-446
SELECT ALL 64 - - + 82 + - COUNT( * )
----
145

skipif mysql # not compatible
query I rowsort label-446
SELECT ALL 64 - - + 82 + - COUNT ( * )
----
145

onlyif mysql # DIV for integer division: 
query I rowsort label-447
SELECT 22 DIV + - 86 col1
----
0

skipif mysql # not compatible
query I rowsort label-447
SELECT 22 / + - 86 col1
----
0

query I rowsort
SELECT 57 * - COALESCE ( 72, NULLIF ( - ( 79 ), 3 ), 6 * 83 ) * 82
----
-336528

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-450
SELECT COUNT( * ) + - COALESCE ( CASE - 67 WHEN - 44 * 35 THEN 65 DIV + COALESCE ( 24, 49 ) ELSE NULL END, 21 * COALESCE ( 80 * + SUM( + 82 DIV - ( + 18 * 73 ) ), 22, - 87 DIV 19 + 25, 31 + + 50 * - 41 ) ) + ( - 14 )
----
-13

skipif mysql # not compatible
query I rowsort label-450
SELECT COUNT ( * ) + - COALESCE ( CASE - 67 WHEN - 44 * 35 THEN 65 / + COALESCE ( 24, 49 ) ELSE NULL END, 21 * COALESCE ( 80 * + SUM ( + 82 / - ( + 18 * 73 ) ), 22, - 87 / 19 + 25, 31 + + 50 * - 41 ) ) + ( - 14 )
----
-13

query I rowsort
SELECT ( + 73 ) - 4 * 82 AS col0
----
-255

query I rowsort
SELECT 37 + COALESCE ( + 48, 87, - 38 * - 10 + 41 )
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-453
SELECT 47 + - SUM( 47 ) * 31 AS col1
----
-1410

skipif mysql # not compatible
query I rowsort label-453
SELECT 47 + - SUM ( 47 ) * 31 AS col1
----
-1410

query I rowsort
SELECT 82 * - - 10 AS col0
----
820

query I rowsort
SELECT 53 + + 44 * + 35
----
1593

onlyif mysql # aggregate syntax: 
query I rowsort label-456
SELECT DISTINCT - 9 + - MIN( + 6 )
----
-15

skipif mysql # not compatible
query I rowsort label-456
SELECT DISTINCT - 9 + - MIN ( + 6 )
----
-15

query I rowsort
SELECT 63 + + 92 AS col1
----
155

query I rowsort
SELECT ALL - 95 + - 5
----
-100

query I rowsort
SELECT + 91 + - 72 AS col0
----
19

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-461
SELECT 55 + + CAST( - 52 AS SIGNED ) AS col1
----
3

skipif mysql # not compatible
query I rowsort label-461
SELECT 55 + + CAST ( - 52 AS INTEGER ) AS col1
----
3

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

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

query I rowsort
SELECT + 44 * + 26
----
1144

query I rowsort
SELECT DISTINCT + 72 * - + 56 * 0 + + 58 * 32
----
1856

onlyif mysql # aggregate syntax: 
query I rowsort label-465
SELECT - COUNT( * ) + + ( - 81 ) + 60 * 46 AS col0
----
2678

skipif mysql # not compatible
query I rowsort label-465
SELECT - COUNT ( * ) + + ( - 81 ) + 60 * 46 AS col0
----
2678

onlyif mysql # aggregate syntax: 
query I rowsort label-466
SELECT + + CASE + 14 WHEN - COUNT( * ) * - MAX( 77 ) - + 35 * - 30 THEN - 59 WHEN 92 THEN COUNT( * ) END * - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-466
SELECT + + CASE + 14 WHEN - COUNT ( * ) * - MAX ( 77 ) - + 35 * - 30 THEN - 59 WHEN 92 THEN COUNT ( * ) END * - COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-467
SELECT - + 68 * + MAX( 97 ) col0
----
-6596

skipif mysql # not compatible
query I rowsort label-467
SELECT - + 68 * + MAX ( 97 ) col0
----
-6596

onlyif mysql # DIV for integer division: 
query I rowsort label-468
SELECT ALL - + 37 DIV + + 73
----
0

skipif mysql # not compatible
query I rowsort label-468
SELECT ALL - + 37 / + + 73
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-469
SELECT DISTINCT COUNT( * ) * 75 - + 44 DIV COALESCE ( - 43 DIV + 85 + - 76 * + 39, - 24 * - COUNT( * ) ) AS col2
----
75

skipif mysql # not compatible
query I rowsort label-469
SELECT DISTINCT COUNT ( * ) * 75 - + 44 / COALESCE ( - 43 / + 85 + - 76 * + 39, - 24 * - COUNT ( * ) ) AS col2
----
75

query I rowsort
SELECT + - NULLIF ( - - 38, 58 )
----
-38

query I rowsort
SELECT DISTINCT + 78 * 53 - + 99
----
4035

query I rowsort
SELECT - - 7 * + - 91 * + 37
----
-23569

onlyif mysql # aggregate syntax: 
query I rowsort label-473
SELECT ALL - - 62 * - + ( - CASE 76 WHEN 98 / SUM( 96 ) THEN ( 19 ) + 90 WHEN 3 * ( 96 ) THEN - 36 ELSE 92 * - 60 END ) - 82 col2
----
-342322

skipif mysql # not compatible
query I rowsort label-473
SELECT ALL - - 62 * - + ( - CASE 76 WHEN 98 / SUM ( 96 ) THEN ( 19 ) + 90 WHEN 3 * ( 96 ) THEN - 36 ELSE 92 * - 60 END ) - 82 col2
----
-342322

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-474
SELECT - 30 * MIN( + 43 ) + + COALESCE ( CASE - 7 WHEN + CAST( - 45 AS SIGNED ) * 87 + + CAST( NULL AS SIGNED ) * CASE + 7 DIV 40 WHEN 55 * SUM( - 97 ) THEN ( - ( + ( 70 ) ) ) + 51 WHEN COUNT( * ) THEN 59 ELSE CAST( NULLIF ( - ( 47 ), 67 ) AS SIGNED ) END THEN + 73 + - COALESCE ( COUNT( * ) + 30, 19 ) WHEN 28 THEN - 87 + + COUNT( * ) ELSE 81 DIV + 59 END + MIN( DISTINCT + 7 + 60 ), + 80 * - 48, - COUNT( * ) ) * 56 AS col2
----
2518

skipif mysql # not compatible
query I rowsort label-474
SELECT - 30 * MIN ( + 43 ) + + COALESCE ( CASE - 7 WHEN + CAST ( - 45 AS INTEGER ) * 87 + + CAST ( NULL AS INTEGER ) * CASE + 7 / 40 WHEN 55 * SUM ( - 97 ) THEN ( - ( + ( 70 ) ) ) + 51 WHEN COUNT ( * ) THEN 59 ELSE CAST ( NULLIF ( - ( 47 ), 67 ) AS INTEGER ) END THEN + 73 + - COALESCE ( COUNT ( * ) + 30, 19 ) WHEN 28 THEN - 87 + + COUNT ( * ) ELSE 81 / + 59 END + MIN ( DISTINCT + 7 + 60 ), + 80 * - 48, - COUNT ( * ) ) * 56 AS col2
----
2518

onlyif mysql # aggregate syntax: 
query I rowsort label-475
SELECT ALL NULLIF ( 17, 89 ) * + COUNT( * ) AS col0
----
17

skipif mysql # not compatible
query I rowsort label-475
SELECT ALL NULLIF ( 17, 89 ) * + COUNT ( * ) AS col0
----
17

query I rowsort
SELECT ALL - ( + 31 ) * + 79 * 56 AS col2
----
-137144

onlyif mysql # aggregate syntax: 
query II rowsort label-477
SELECT + 17, 34 + 44 * COUNT( * ) col1
----
17
78

skipif mysql # not compatible
query II rowsort label-477
SELECT + 17, 34 + 44 * COUNT ( * ) col1
----
17
78

onlyif mysql # aggregate syntax: 
query I rowsort label-478
SELECT ALL + CASE - + COUNT( * ) WHEN + 73 + 91 THEN + COUNT( * ) * + 58 END
----
NULL

skipif mysql # not compatible
query I rowsort label-478
SELECT ALL + CASE - + COUNT ( * ) WHEN + 73 + 91 THEN + COUNT ( * ) * + 58 END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-479
SELECT - 87 + + CASE + 2 WHEN ( 74 ) THEN NULL WHEN CAST( + ( - 63 ) AS SIGNED ) THEN 65 WHEN 49 THEN 90 ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-479
SELECT - 87 + + CASE + 2 WHEN ( 74 ) THEN NULL WHEN CAST ( + ( - 63 ) AS INTEGER ) THEN 65 WHEN 49 THEN 90 ELSE NULL END AS col0
----
NULL

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

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

query II rowsort
SELECT ALL + 3 col2, 51
----
3
51

onlyif mysql # aggregate syntax: 
query I rowsort label-482
SELECT 57 * - - COUNT( * ) + + 52 AS col2
----
109

skipif mysql # not compatible
query I rowsort label-482
SELECT 57 * - - COUNT ( * ) + + 52 AS col2
----
109

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-484
SELECT ALL + CAST( NULL AS SIGNED ), + 88 AS col2
----
NULL
88

skipif mysql # not compatible
query II rowsort label-484
SELECT ALL + CAST ( NULL AS INTEGER ), + 88 AS col2
----
NULL
88

query I rowsort
SELECT ALL - 67 * + 91
----
-6097

onlyif mysql # DIV for integer division: 
query I rowsort label-486
SELECT - 16 DIV + 79
----
0

skipif mysql # not compatible
query I rowsort label-486
SELECT - 16 / + 79
----
0

query I rowsort
SELECT ALL - 94 + - 52 + - 15 col2
----
-161

query I rowsort
SELECT - 33 + - 39 + 4
----
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-489
SELECT - SUM( DISTINCT 16 ) AS col0
----
-16

skipif mysql # not compatible
query I rowsort label-489
SELECT - SUM ( DISTINCT 16 ) AS col0
----
-16

query I rowsort
SELECT - ( + - 71 ) + + ( 3 )
----
74

query I rowsort
SELECT ALL + 22 + + 89 + + 32 + ( + 63 )
----
206

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-492
SELECT ALL - 67 * CAST( - CASE + 52 WHEN ( COUNT( ALL 17 ) ) * COUNT( * ) THEN + 23 - - 88 ELSE NULL END AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-492
SELECT ALL - 67 * CAST ( - CASE + 52 WHEN ( COUNT ( ALL 17 ) ) * COUNT ( * ) THEN + 23 - - 88 ELSE NULL END AS INTEGER ) AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-493
SELECT - 80 DIV - 21 AS col1
----
3

skipif mysql # not compatible
query I rowsort label-493
SELECT - 80 / - 21 AS col1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-494
SELECT + COUNT( ALL + + COALESCE ( - 96, + 85 ) ) + 74 * 99
----
7327

skipif mysql # not compatible
query I rowsort label-494
SELECT + COUNT ( ALL + + COALESCE ( - 96, + 85 ) ) + 74 * 99
----
7327

query I rowsort
SELECT - 97 * + 24
----
-2328

query II rowsort
SELECT - 2 AS col1, 94
----
-2
94

query I rowsort
SELECT + 62 * 74 AS col1
----
4588

query I rowsort
SELECT ALL - 95 + + 21
----
-74

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-500
SELECT ALL 62 DIV 31 AS col2
----
2

skipif mysql # not compatible
query I rowsort label-500
SELECT ALL 62 / 31 AS col2
----
2

query I rowsort
SELECT ALL 15 + - 78
----
-63

query I rowsort
SELECT DISTINCT - CASE - 41 WHEN + CASE 40 WHEN + NULLIF ( 80, 28 * + 80 - 57 ) THEN - 13 ELSE NULL END THEN 12 ELSE NULL END
----
NULL

query I rowsort
SELECT DISTINCT - + 60 + + 74 col1
----
14

query I rowsort
SELECT ALL + 33 * 40
----
1320

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-505
SELECT + + ( - + 86 ) - - COALESCE ( 17, 93 - + 45, + COUNT( * ) ) DIV 37 AS col1
----
-86

skipif mysql # not compatible
query I rowsort label-505
SELECT + + ( - + 86 ) - - COALESCE ( 17, 93 - + 45, + COUNT ( * ) ) / 37 AS col1
----
-86

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-506
SELECT ALL + CAST( NULL AS SIGNED ), - CASE + - 0 WHEN + 76 THEN NULL ELSE 19 END * + 51 col1
----
NULL
-969

skipif mysql # not compatible
query II rowsort label-506
SELECT ALL + CAST ( NULL AS INTEGER ), - CASE + - 0 WHEN + 76 THEN NULL ELSE 19 END * + 51 col1
----
NULL
-969

query I rowsort
SELECT DISTINCT + CASE - ( - 61 ) WHEN - ( 86 ) THEN + 35 END * + 11 AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-508
SELECT ALL - 81 DIV - + 96 - - COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-508
SELECT ALL - 81 / - + 96 - - COUNT ( * )
----
1

query I rowsort
SELECT + 14 * - ( - 67 ) * + 46 col2
----
43148

query II rowsort
SELECT ALL + - 88 AS col2, + 8 AS col0
----
-88
8

onlyif mysql # aggregate syntax: 
query I rowsort label-511
SELECT + COUNT( * ) - + ( + 58 ) * 43
----
-2493

skipif mysql # not compatible
query I rowsort label-511
SELECT + COUNT ( * ) - + ( + 58 ) * 43
----
-2493

onlyif mysql # DIV for integer division: 
query I rowsort label-512
SELECT + - ( - 73 ) DIV - + 63
----
-1

skipif mysql # not compatible
query I rowsort label-512
SELECT + - ( - 73 ) / - + 63
----
-1

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

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

query I rowsort
SELECT + 46 + + 45 AS col1
----
91

query I rowsort
SELECT + 64 * 24 AS col2
----
1536

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-516
SELECT 71 * + - ( + - MAX( - 47 ) ) * 2 + 71 DIV + 45 AS col0
----
-6673

skipif mysql # not compatible
query I rowsort label-516
SELECT 71 * + - ( + - MAX ( - 47 ) ) * 2 + 71 / + 45 AS col0
----
-6673

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-517
SELECT ALL - 98 * CAST( + 79 AS SIGNED ) * COALESCE ( 37, + ( - 54 ) * 37 + - 40 * - CASE + 30 WHEN - COUNT( 59 ) THEN - COUNT( * ) * 74 + 67 * 4 END ) AS col0
----
-286454

skipif mysql # not compatible
query I rowsort label-517
SELECT ALL - 98 * CAST ( + 79 AS INTEGER ) * COALESCE ( 37, + ( - 54 ) * 37 + - 40 * - CASE + 30 WHEN - COUNT ( 59 ) THEN - COUNT ( * ) * 74 + 67 * 4 END ) AS col0
----
-286454

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-518
SELECT + 40 * - 53, CAST( 5 AS SIGNED ) AS col2
----
-2120
5

skipif mysql # not compatible
query II rowsort label-518
SELECT + 40 * - 53, CAST ( 5 AS INTEGER ) AS col2
----
-2120
5

onlyif mysql # aggregate syntax: 
query I rowsort label-519
SELECT ALL - 27 * - 4 + - + 87 + - COUNT( * ) + + 17
----
37

skipif mysql # not compatible
query I rowsort label-519
SELECT ALL - 27 * - 4 + - + 87 + - COUNT ( * ) + + 17
----
37

query I rowsort
SELECT DISTINCT - 80 * + ( - 38 )
----
3040

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

onlyif mysql # aggregate syntax: 
query I rowsort label-522
SELECT DISTINCT - COALESCE ( 34, + - SUM( 50 ) ) * + ( COUNT( * ) + - 63 * + ( + 38 ) ) + 21 AS col2
----
81383

skipif mysql # not compatible
query I rowsort label-522
SELECT DISTINCT - COALESCE ( 34, + - SUM ( 50 ) ) * + ( COUNT ( * ) + - 63 * + ( + 38 ) ) + 21 AS col2
----
81383

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-523
SELECT - 10 * ( - - 53 ) * - 39 * ( + CAST( 37 AS SIGNED ) )
----
764790

skipif mysql # not compatible
query I rowsort label-523
SELECT - 10 * ( - - 53 ) * - 39 * ( + CAST ( 37 AS INTEGER ) )
----
764790

onlyif mysql # aggregate syntax: 
query I rowsort label-524
SELECT - ( - + COUNT( * ) ) + - 59 * - ( 87 ) * - ( - CASE 60 WHEN - 37 + + 65 THEN NULL WHEN - 57 THEN 36 + - 97 ELSE NULL END ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-524
SELECT - ( - + COUNT ( * ) ) + - 59 * - ( 87 ) * - ( - CASE 60 WHEN - 37 + + 65 THEN NULL WHEN - 57 THEN 36 + - 97 ELSE NULL END ) col1
----
NULL

query I rowsort
SELECT ALL + COALESCE ( 67, - 90 + - - 61 ) AS col1
----
67

query I rowsort
SELECT + CASE + - 4 WHEN - COALESCE ( - 79, 82 * - 73 ) THEN 39 WHEN 94 THEN 36 END - 8 AS col1
----
NULL

query I rowsort
SELECT ALL 36 * + + 56 + + 2 - - 33 * 81
----
4691

onlyif mysql # DIV for integer division: 
query I rowsort label-528
SELECT - COALESCE ( + - 98, - + 54, + ( + NULLIF ( - 56, + 57 ) ) DIV + 45 ) * - 25 AS col0
----
-2450

skipif mysql # not compatible
query I rowsort label-528
SELECT - COALESCE ( + - 98, - + 54, + ( + NULLIF ( - 56, + 57 ) ) / + 45 ) * - 25 AS col0
----
-2450

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-529
SELECT + COUNT( * ) + - 64 + 5 + + - 16 DIV 12 AS col2
----
-59

skipif mysql # not compatible
query I rowsort label-529
SELECT + COUNT ( * ) + - 64 + 5 + + - 16 / 12 AS col2
----
-59

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-530
SELECT COUNT( * ) - - 1 DIV - + 45 * + COUNT( * ) - + 32
----
-31

skipif mysql # not compatible
query I rowsort label-530
SELECT COUNT ( * ) - - 1 / - + 45 * + COUNT ( * ) - + 32
----
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-531
SELECT ( + + COUNT( * ) ) + + - 25 + + - 86
----
-110

skipif mysql # not compatible
query I rowsort label-531
SELECT ( + + COUNT ( * ) ) + + - 25 + + - 86
----
-110

query I rowsort
SELECT + 35 * 61 + + COALESCE ( + 77, 9 ) AS col2
----
2212

query I rowsort
SELECT 3 + + 42
----
45

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-534
SELECT + 53 * - 43 * - - CAST( - - COUNT( * ) AS SIGNED )
----
-2279

skipif mysql # not compatible
query I rowsort label-534
SELECT + 53 * - 43 * - - CAST ( - - COUNT ( * ) AS INTEGER )
----
-2279

onlyif mysql # aggregate syntax: 
query I rowsort label-535
SELECT - 62 + + COUNT( * ) * + - MIN( + + 90 ) col2
----
-152

skipif mysql # not compatible
query I rowsort label-535
SELECT - 62 + + COUNT ( * ) * + - MIN ( + + 90 ) col2
----
-152

onlyif mysql # aggregate syntax: 
query I rowsort label-536
SELECT 95 + COUNT( * ) + - 68 + + 96 * 88 AS col0
----
8476

skipif mysql # not compatible
query I rowsort label-536
SELECT 95 + COUNT ( * ) + - 68 + + 96 * 88 AS col0
----
8476

query I rowsort
SELECT CASE + - 34 WHEN + + ( + 4 ) * + ( COALESCE ( 72, - 59 * + 26 ) ) THEN 84 + + 92 END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-538
SELECT DISTINCT - SUM( - CAST( COALESCE ( - 54, 16 * + 97, 95 ) AS SIGNED ) ) * ( 67 )
----
-3618

skipif mysql # not compatible
query I rowsort label-538
SELECT DISTINCT - SUM ( - CAST ( COALESCE ( - 54, 16 * + 97, 95 ) AS INTEGER ) ) * ( 67 )
----
-3618

query II rowsort
SELECT + 12 + + + 24, 37 AS col1
----
36
37

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-540
SELECT + 51 * 38 DIV + 95 + + 78 * + COUNT( * ) AS col1
----
98

skipif mysql # not compatible
query I rowsort label-540
SELECT + 51 * 38 / + 95 + + 78 * + COUNT ( * ) AS col1
----
98

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-541
SELECT MIN( - CAST( + + 28 AS SIGNED ) )
----
-28

skipif mysql # not compatible
query I rowsort label-541
SELECT MIN ( - CAST ( + + 28 AS INTEGER ) )
----
-28

query I rowsort
SELECT DISTINCT - NULLIF ( + 5, - 71 + - ( + 9 ) )
----
-5

query I rowsort
SELECT + 69 * - + 83 col2
----
-5727

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-544
SELECT DISTINCT ( - CAST( SUM( 94 ) AS SIGNED ) ) * - + 82 * + COUNT( * ) + - 46 AS col2
----
7662

skipif mysql # not compatible
query I rowsort label-544
SELECT DISTINCT ( - CAST ( SUM ( 94 ) AS INTEGER ) ) * - + 82 * + COUNT ( * ) + - 46 AS col2
----
7662

onlyif mysql # DIV for integer division: 
query I rowsort label-545
SELECT DISTINCT + 12 DIV - 67 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-545
SELECT DISTINCT + 12 / - 67 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-546
SELECT COUNT( * ) * 29 * 82
----
2378

skipif mysql # not compatible
query I rowsort label-546
SELECT COUNT ( * ) * 29 * 82
----
2378

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-547
SELECT ALL 35 * - + 46 * + ( - 58 ) DIV - + ( COUNT( * ) ) + MAX( + 32 ) AS col2
----
-93348

skipif mysql # not compatible
query I rowsort label-547
SELECT ALL 35 * - + 46 * + ( - 58 ) / - + ( COUNT ( * ) ) + MAX ( + 32 ) AS col2
----
-93348

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-548
SELECT NULLIF ( - 13, + + COUNT( * ) ) DIV + 80
----
0

skipif mysql # not compatible
query I rowsort label-548
SELECT NULLIF ( - 13, + + COUNT ( * ) ) / + 80
----
0

query I rowsort
SELECT ALL 5 + + - 60
----
-55

query II rowsort
SELECT 94 * - 62 + 30, 72 col1
----
-5798
72

onlyif mysql # aggregate syntax: 
query I rowsort label-551
SELECT + 2 * - COUNT( * ) + + 19 + + - 16 + - 38 * 62 AS col1
----
-2355

skipif mysql # not compatible
query I rowsort label-551
SELECT + 2 * - COUNT ( * ) + + 19 + + - 16 + - 38 * 62 AS col1
----
-2355

query II rowsort
SELECT + 36 AS col0, + 15
----
36
15

query I rowsort
SELECT ALL 92 + - 62 AS col2
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-554
SELECT ( + 10 ) + - + 38 + + MIN( - 73 ) - + COUNT( * )
----
-102

skipif mysql # not compatible
query I rowsort label-554
SELECT ( + 10 ) + - + 38 + + MIN ( - 73 ) - + COUNT ( * )
----
-102

onlyif mysql # aggregate syntax: 
query II rowsort label-555
SELECT 40 * + 3 - + + 63 AS col1, + MIN( + 51 ) - 52 * 52
----
57
-2653

skipif mysql # not compatible
query II rowsort label-555
SELECT 40 * + 3 - + + 63 AS col1, + MIN ( + 51 ) - 52 * 52
----
57
-2653

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

query I rowsort
SELECT DISTINCT 91 - + 71
----
20

query I rowsort
SELECT DISTINCT NULLIF ( + 1, - 20 + - 85 ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-559
SELECT - 33 * - 51 * + - COUNT( * ) AS col1, - 36 * - 3 * + 21 AS col2
----
-1683
2268

skipif mysql # not compatible
query II rowsort label-559
SELECT - 33 * - 51 * + - COUNT ( * ) AS col1, - 36 * - 3 * + 21 AS col2
----
-1683
2268

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

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

query I rowsort
SELECT ALL 21 * + 66
----
1386

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-563
SELECT 56 * + - COUNT( + 56 ) - + 99
----
-155

skipif mysql # not compatible
query I rowsort label-563
SELECT 56 * + - COUNT ( + 56 ) - + 99
----
-155

query I rowsort
SELECT - ( - - 1 )
----
-1

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-566
SELECT 79 * 2 * - CAST( NULL AS SIGNED ) - - + 68 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-566
SELECT 79 * 2 * - CAST ( NULL AS INTEGER ) - - + 68 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-567
SELECT ALL - - CAST( + 92 AS SIGNED ) * - 46 AS col0, COUNT( * ) AS col1
----
-4232
1

skipif mysql # not compatible
query II rowsort label-567
SELECT ALL - - CAST ( + 92 AS INTEGER ) * - 46 AS col0, COUNT ( * ) AS col1
----
-4232
1

query I rowsort
SELECT - 76 - - 54 AS col1
----
-22

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-569
SELECT DISTINCT + + NULLIF ( - 69, - NULLIF ( + - 75, - 1 - - MIN( + 26 + NULLIF ( 79, + 73 * + CAST( + 34 AS SIGNED ) + 26 / 24 ) * 59 ) ) ) + + 86
----
17

skipif mysql # not compatible
query I rowsort label-569
SELECT DISTINCT + + NULLIF ( - 69, - NULLIF ( + - 75, - 1 - - MIN ( + 26 + NULLIF ( 79, + 73 * + CAST ( + 34 AS INTEGER ) + 26 / 24 ) * 59 ) ) ) + + 86
----
17

query I rowsort
SELECT 51 * - - 12
----
612

onlyif mysql # DIV for integer division: 
query I rowsort label-571
SELECT ALL - 55 * + 23 + - 32 - 98 DIV + 66
----
-1298

skipif mysql # not compatible
query I rowsort label-571
SELECT ALL - 55 * + 23 + - 32 - 98 / + 66
----
-1298

query II rowsort
SELECT DISTINCT - 89 AS col2, 17
----
-89
17

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

skipif mysql # not compatible
query I rowsort label-573
SELECT 8 * - COUNT ( * ) + + 91 AS col0
----
83

onlyif mysql # aggregate syntax: 
query II rowsort label-574
SELECT DISTINCT - ( + 72 ), COUNT( * ) * - + COALESCE ( - + 11, 90 * 68 ) AS col0
----
-72
11

skipif mysql # not compatible
query II rowsort label-574
SELECT DISTINCT - ( + 72 ), COUNT ( * ) * - + COALESCE ( - + 11, 90 * 68 ) AS col0
----
-72
11

onlyif mysql # aggregate syntax: 
query I rowsort label-575
SELECT SUM( DISTINCT + + 38 ) AS col2
----
38

skipif mysql # not compatible
query I rowsort label-575
SELECT SUM ( DISTINCT + + 38 ) AS col2
----
38

query I rowsort
SELECT ALL 17 * ( - + 9 ) + + 69
----
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-577
SELECT + 35 * SUM( ALL + 62 ) + + 85 + + - 45 + 35 * - 48 * COUNT( * ) AS col1
----
530

skipif mysql # not compatible
query I rowsort label-577
SELECT + 35 * SUM ( ALL + 62 ) + + 85 + + - 45 + 35 * - 48 * COUNT ( * ) AS col1
----
530

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-578
SELECT COUNT( DISTINCT + 48 ) AS col0, - COUNT( * ) DIV 6 * + 18 DIV 60
----
1
0

skipif mysql # not compatible
query II rowsort label-578
SELECT COUNT ( DISTINCT + 48 ) AS col0, - COUNT ( * ) / 6 * + 18 / 60
----
1
0

query I rowsort
SELECT ALL + 63 * - 14 AS col1
----
-882

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-581
SELECT + COUNT( * ) AS col0, - COUNT( * ) * - 88 - + 13 - + COUNT( * ) + - COUNT( * ) + 33 / CAST( NULL AS SIGNED ) AS col0
----
1
NULL

skipif mysql # not compatible
query II rowsort label-581
SELECT + COUNT ( * ) AS col0, - COUNT ( * ) * - 88 - + 13 - + COUNT ( * ) + - COUNT ( * ) + 33 / CAST ( NULL AS INTEGER ) AS col0
----
1
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-582
SELECT MIN( + 80 ) col0, + 83 DIV + + 16 AS col2
----
80
5

skipif mysql # not compatible
query II rowsort label-582
SELECT MIN ( + 80 ) col0, + 83 / + + 16 AS col2
----
80
5

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

skipif mysql # not compatible
query I rowsort label-583
SELECT + 56 + - COUNT ( * ) * + COUNT ( * ) AS col0
----
55

query I rowsort
SELECT + 67 * - 17 col2
----
-1139

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

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

query I rowsort
SELECT + - 15 + - - 85 AS col0
----
70

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

onlyif mysql # aggregate syntax: 
query II rowsort label-588
SELECT ALL + ( + COUNT( * ) ) * + - ( + 52 ) AS col2, 54
----
-52
54

skipif mysql # not compatible
query II rowsort label-588
SELECT ALL + ( + COUNT ( * ) ) * + - ( + 52 ) AS col2, 54
----
-52
54

query I rowsort
SELECT + + 40 * - 86 AS col0
----
-3440

onlyif mysql # DIV for integer division: 
query I rowsort label-590
SELECT ALL - 35 DIV 80 * 66 + - 27 AS col0
----
-27

skipif mysql # not compatible
query I rowsort label-590
SELECT ALL - 35 / 80 * 66 + - 27 AS col0
----
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-591
SELECT + 67 - - COUNT( DISTINCT - NULLIF ( ( + 27 ), 83 ) )
----
68

skipif mysql # not compatible
query I rowsort label-591
SELECT + 67 - - COUNT ( DISTINCT - NULLIF ( ( + 27 ), 83 ) )
----
68

onlyif mysql # DIV for integer division: 
query I rowsort label-592
SELECT + + 91 DIV - 47
----
-1

skipif mysql # not compatible
query I rowsort label-592
SELECT + + 91 / - 47
----
-1

query I rowsort
SELECT + 11 + 36 + 53
----
100

query I rowsort
SELECT + 80 - - + 93 AS col1
----
173

onlyif mysql # aggregate syntax: 
query I rowsort label-595
SELECT ALL 55 * COUNT( DISTINCT + NULLIF ( - 29, + + 48 / 61 ) )
----
55

skipif mysql # not compatible
query I rowsort label-595
SELECT ALL 55 * COUNT ( DISTINCT + NULLIF ( - 29, + + 48 / 61 ) )
----
55

query I rowsort
SELECT - 94 - 14 col2
----
-108

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-598
SELECT ALL + CASE + 0 WHEN 5 + + CAST( - 85 AS SIGNED ) + + - 63 * + 92 THEN MAX( DISTINCT 87 ) WHEN 40 * + 12 THEN + 44 ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-598
SELECT ALL + CASE + 0 WHEN 5 + + CAST ( - 85 AS INTEGER ) + + - 63 * + 92 THEN MAX ( DISTINCT 87 ) WHEN 40 * + 12 THEN + 44 ELSE NULL END AS col1
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-600
SELECT ALL + 69 + - ( - 49 ) + 2 * ( 29 ) * + COUNT( * ) * + 2 AS col1
----
234

skipif mysql # not compatible
query I rowsort label-600
SELECT ALL + 69 + - ( - 49 ) + 2 * ( 29 ) * + COUNT ( * ) * + 2 AS col1
----
234

query I rowsort
SELECT + + 64 + - 32
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-602
SELECT ALL + MIN( ALL - 16 ) + - 5 - - 35 * + COUNT( * ) * + CASE 10 WHEN 83 + - 72 THEN + 42 + 70 ELSE NULL END + 12
----
NULL

skipif mysql # not compatible
query I rowsort label-602
SELECT ALL + MIN ( ALL - 16 ) + - 5 - - 35 * + COUNT ( * ) * + CASE 10 WHEN 83 + - 72 THEN + 42 + 70 ELSE NULL END + 12
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-603
SELECT - - ( + - 57 ) + + + COALESCE ( + 20, 28 * - 95 * 87 + + 31 DIV COALESCE ( - 47, 35 + 38 ) ) + - 73 DIV 5 * 57
----
-835

skipif mysql # not compatible
query I rowsort label-603
SELECT - - ( + - 57 ) + + + COALESCE ( + 20, 28 * - 95 * 87 + + 31 / COALESCE ( - 47, 35 + 38 ) ) + - 73 / 5 * 57
----
-835

onlyif mysql # aggregate syntax: 
query I rowsort label-604
SELECT ALL - 78 + + 61 + ( - + COUNT( * ) ) * - 16 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-604
SELECT ALL - 78 + + 61 + ( - + COUNT ( * ) ) * - 16 AS col0
----
-1

query I rowsort
SELECT - CASE + 92 WHEN - + ( - NULLIF ( - 35, 46 ) ) THEN - + 44 END + - 50 AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-606
SELECT DISTINCT - 49 DIV - 93 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-606
SELECT DISTINCT - 49 / - 93 AS col2
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-607
SELECT + 64 DIV NULLIF ( - 65, + ( - + AVG ( ALL 58 ) ) * + COUNT( * ) * 4 - - ( + SUM( ALL 67 ) ) ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-607
SELECT + 64 / NULLIF ( - 65, + ( - + AVG ( ALL 58 ) ) * + COUNT ( * ) * 4 - - ( + SUM ( ALL 67 ) ) ) AS col1
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-608
SELECT - 70 + 54 AS col0, 66 DIV + + 78
----
-16
0

skipif mysql # not compatible
query II rowsort label-608
SELECT - 70 + 54 AS col0, 66 / + + 78
----
-16
0

query I rowsort
SELECT + 81 * 14 * + 33 AS col1
----
37422

query I rowsort
SELECT + 32 * - - 32 + + 37 AS col2
----
1061

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-611
SELECT ALL COUNT( * ) DIV + - 23 * - - 92 DIV - 73 - 63 + - + ( + + 98 ) AS col1
----
-161

skipif mysql # not compatible
query I rowsort label-611
SELECT ALL COUNT ( * ) / + - 23 * - - 92 / - 73 - 63 + - + ( + + 98 ) AS col1
----
-161

query I rowsort
SELECT DISTINCT - 22 * 73 col2
----
-1606

onlyif mysql # aggregate syntax: 
query I rowsort label-613
SELECT DISTINCT + 51 * 21 - + 92 - + - MIN( ALL 28 )
----
1007

skipif mysql # not compatible
query I rowsort label-613
SELECT DISTINCT + 51 * 21 - + 92 - + - MIN ( ALL 28 )
----
1007

onlyif mysql # aggregate syntax: 
query I rowsort label-614
SELECT CASE + AVG ( DISTINCT 13 ) WHEN + 6 THEN - 58 + - 25 WHEN 23 THEN NULL END / + 25 - MIN( 73 + + 87 )
----
NULL

skipif mysql # not compatible
query I rowsort label-614
SELECT CASE + AVG ( DISTINCT 13 ) WHEN + 6 THEN - 58 + - 25 WHEN 23 THEN NULL END / + 25 - MIN ( 73 + + 87 )
----
NULL

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

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

query I rowsort
SELECT - 80 * - + 30
----
2400

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-617
SELECT ( + 90 ), COALESCE ( + COUNT( * ), 1 ) * + 47 + + CASE 18 WHEN + NULLIF ( + 50, 98 * + CAST( 81 * SUM( 43 ) AS DECIMAL ) ) THEN 47 END * 63 AS col2
----
90
NULL

skipif mysql # not compatible
query II rowsort label-617
SELECT ( + 90 ), COALESCE ( + COUNT ( * ), 1 ) * + 47 + + CASE 18 WHEN + NULLIF ( + 50, 98 * + CAST ( 81 * SUM ( 43 ) AS REAL ) ) THEN 47 END * 63 AS col2
----
90
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-618
SELECT 68 * + 20 + - 6 + 10 * MAX( - 19 ) AS col1
----
1164

skipif mysql # not compatible
query I rowsort label-618
SELECT 68 * + 20 + - 6 + 10 * MAX ( - 19 ) AS col1
----
1164

onlyif mysql # aggregate syntax: 
query I rowsort label-619
SELECT COALESCE ( + + 47, + CASE - - 86 WHEN - 79 THEN NULL WHEN - + 60 THEN + CASE - 91 WHEN 46 * + 33 THEN NULL WHEN COUNT( * ) THEN + 78 ELSE - 78 * 97 END ELSE NULL END, - 56 )
----
47

skipif mysql # not compatible
query I rowsort label-619
SELECT COALESCE ( + + 47, + CASE - - 86 WHEN - 79 THEN NULL WHEN - + 60 THEN + CASE - 91 WHEN 46 * + 33 THEN NULL WHEN COUNT ( * ) THEN + 78 ELSE - 78 * 97 END ELSE NULL END, - 56 )
----
47

query I rowsort
SELECT - 44 * + + 61
----
-2684

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-621
SELECT DISTINCT + - CAST( + + 22 AS SIGNED )
----
-22

skipif mysql # not compatible
query I rowsort label-621
SELECT DISTINCT + - CAST ( + + 22 AS INTEGER )
----
-22

query I rowsort
SELECT ALL - + 9 * - + 46 + - 19 AS col1
----
395

query I rowsort
SELECT + COALESCE ( + 41, + 60 ) * 62 * - 36 AS col0
----
-91512

onlyif mysql # aggregate syntax: 
query I rowsort label-624
SELECT - - CASE + 17 WHEN - + 41 THEN + COUNT( * ) * + 37 + ( 63 ) - 24 WHEN ( - 93 ) THEN - 51 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-624
SELECT - - CASE + 17 WHEN - + 41 THEN + COUNT ( * ) * + 37 + ( 63 ) - 24 WHEN ( - 93 ) THEN - 51 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-625
SELECT COALESCE ( + CASE 7 WHEN 26 * - ( SUM( ALL + - 38 ) ) THEN NULL ELSE 21 * - 12 END, - 81 ) AS col1
----
-252

skipif mysql # not compatible
query I rowsort label-625
SELECT COALESCE ( + CASE 7 WHEN 26 * - ( SUM ( ALL + - 38 ) ) THEN NULL ELSE 21 * - 12 END, - 81 ) AS col1
----
-252

query I rowsort
SELECT DISTINCT + + 54 + + ( + + 71 ) AS col0
----
125

query I rowsort
SELECT ALL - + 92 + + 82
----
-10

query I rowsort
SELECT ALL 28 + - 92
----
-64

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-629
SELECT DISTINCT - 29 DIV 32 * - COUNT( * ) + + 53
----
53

skipif mysql # not compatible
query I rowsort label-629
SELECT DISTINCT - 29 / 32 * - COUNT ( * ) + + 53
----
53

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-630
SELECT - 11 - 44 col1, + ( - SUM( COALESCE ( + 40, + + 60, + 40 DIV + CAST( - 11 AS SIGNED ) ) ) ) AS col2
----
-55
-40

skipif mysql # not compatible
query II rowsort label-630
SELECT - 11 - 44 col1, + ( - SUM ( COALESCE ( + 40, + + 60, + 40 / + CAST ( - 11 AS INTEGER ) ) ) ) AS col2
----
-55
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-631
SELECT + ( + - COUNT( * ) ) * - ( + - 68 ) + + 55 * - 86 + + + 30
----
-4768

skipif mysql # not compatible
query I rowsort label-631
SELECT + ( + - COUNT ( * ) ) * - ( + - 68 ) + + 55 * - 86 + + + 30
----
-4768

query I rowsort
SELECT ALL - 96 * - 2
----
192

query I rowsort
SELECT + 25 + + 43 AS col0
----
68

query I rowsort
SELECT + 94 * - 71 AS col1
----
-6674

query I rowsort
SELECT - NULLIF ( 69, + + 14 * 19 + + AVG ( + 19 ) / - + 75 )
----
-69

query I rowsort
SELECT ALL 76 - 74 col2
----
2

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

query I rowsort
SELECT + 58 - + - 72 + 47 * + + 72
----
3514

onlyif mysql # aggregate syntax: 
query I rowsort label-639
SELECT ALL NULLIF ( - 32, + - 35 * CASE + - COUNT( - + 31 ) WHEN - + COUNT( - 0 ) THEN + 91 + SUM( 14 ) ELSE 14 END * 39 )
----
-32

skipif mysql # not compatible
query I rowsort label-639
SELECT ALL NULLIF ( - 32, + - 35 * CASE + - COUNT ( - + 31 ) WHEN - + COUNT ( - 0 ) THEN + 91 + SUM ( 14 ) ELSE 14 END * 39 )
----
-32

query I rowsort
SELECT DISTINCT 81 * - - NULLIF ( 59, AVG ( - 7 ) )
----
4779

query II rowsort
SELECT ALL NULLIF ( - 78, + + 79 ), - 57 AS col2
----
-78
-57

query I rowsort
SELECT ALL 16 - - + 28
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-643
SELECT + NULLIF ( + + 27, 48 * - 24 ) * CASE + - 98 WHEN + COUNT( * ) THEN - - 22 END + 46
----
NULL

skipif mysql # not compatible
query I rowsort label-643
SELECT + NULLIF ( + + 27, 48 * - 24 ) * CASE + - 98 WHEN + COUNT ( * ) THEN - - 22 END + 46
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-644
SELECT 1 - - 99 * + + COUNT( * ) + - + 14 AS col0, - CAST( NULL AS DECIMAL )
----
86
NULL

skipif mysql # not compatible
query II rowsort label-644
SELECT 1 - - 99 * + + COUNT ( * ) + - + 14 AS col0, - CAST ( NULL AS REAL )
----
86
NULL

query I rowsort
SELECT DISTINCT - 0 * - 41
----
0

query I rowsort
SELECT 97 * - - 80
----
7760

onlyif mysql # aggregate syntax: 
query I rowsort label-647
SELECT DISTINCT 67 * - COUNT( * ) * 27
----
-1809

skipif mysql # not compatible
query I rowsort label-647
SELECT DISTINCT 67 * - COUNT ( * ) * 27
----
-1809

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-649
SELECT NULLIF ( 87, COUNT( * ) / 88 * + 26 )
----
87

skipif mysql # not compatible
query I rowsort label-649
SELECT NULLIF ( 87, COUNT ( * ) / 88 * + 26 )
----
87

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

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

query I rowsort
SELECT COALESCE ( - 97, + 13 + + ( - + 22 ) )
----
-97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-652
SELECT ( - CASE 23 WHEN NULLIF ( - + COALESCE ( + 60, - + 25 * - MAX( + 49 ), 20 + 58 ), - 35 + 73 ) + - 97 THEN NULL WHEN 43 THEN 62 / - 52 ELSE + MAX( DISTINCT - 0 ) + CAST( NULL AS SIGNED ) END ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-652
SELECT ( - CASE 23 WHEN NULLIF ( - + COALESCE ( + 60, - + 25 * - MAX ( + 49 ), 20 + 58 ), - 35 + 73 ) + - 97 THEN NULL WHEN 43 THEN 62 / - 52 ELSE + MAX ( DISTINCT - 0 ) + CAST ( NULL AS INTEGER ) END ) AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-653
SELECT ALL + 52 + 90 + + CAST( - 96 AS SIGNED ) * - COUNT( * ) AS col2
----
238

skipif mysql # not compatible
query I rowsort label-653
SELECT ALL + 52 + 90 + + CAST ( - 96 AS INTEGER ) * - COUNT ( * ) AS col2
----
238

query II rowsort
SELECT ALL - + 37 AS col0, + 15
----
-37
15

query II rowsort
SELECT + - 41, + 17 AS col2
----
-41
17

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-656
SELECT SUM( DISTINCT + 82 ) * + + 70 + COALESCE ( 32, - MAX( - 44 ) + - 89, 37 ) + - 7 DIV 35
----
5772

skipif mysql # not compatible
query I rowsort label-656
SELECT SUM ( DISTINCT + 82 ) * + + 70 + COALESCE ( 32, - MAX ( - 44 ) + - 89, 37 ) + - 7 / 35
----
5772

query I rowsort
SELECT DISTINCT + - 2 + 9 AS col0
----
7

query II rowsort
SELECT 81 AS col0, 23 AS col2
----
81
23

onlyif mysql # aggregate syntax: 
query I rowsort label-659
SELECT - 29 + - ( - COUNT( * ) ) * + 44 * + COUNT( * )
----
15

skipif mysql # not compatible
query I rowsort label-659
SELECT - 29 + - ( - COUNT ( * ) ) * + 44 * + COUNT ( * )
----
15

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-660
SELECT ALL + ( 9 ) + 49 AS col2, CAST( - COALESCE ( 19, - 4 ) AS SIGNED )
----
58
-19

skipif mysql # not compatible
query II rowsort label-660
SELECT ALL + ( 9 ) + 49 AS col2, CAST ( - COALESCE ( 19, - 4 ) AS INTEGER )
----
58
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-661
SELECT DISTINCT + 69 + + COUNT( * ) + + - COUNT( * ) * - COALESCE ( + 17, + + 37 ) + 84 AS col2
----
171

skipif mysql # not compatible
query I rowsort label-661
SELECT DISTINCT + 69 + + COUNT ( * ) + + - COUNT ( * ) * - COALESCE ( + 17, + + 37 ) + 84 AS col2
----
171

query I rowsort
SELECT DISTINCT - 0 * 55
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-663
SELECT COUNT( * ) - - 64 col2
----
65

skipif mysql # not compatible
query I rowsort label-663
SELECT COUNT ( * ) - - 64 col2
----
65

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-665
SELECT ALL + - 89 * - CASE 67 WHEN 38 + NULLIF ( - - 35, + + ( + 21 ) ) * - 39 THEN 48 * - COUNT( * ) + + 14 WHEN 27 THEN - 52 ELSE + 46 * MIN( - 34 ) END
----
-139196

skipif mysql # not compatible
query I rowsort label-665
SELECT ALL + - 89 * - CASE 67 WHEN 38 + NULLIF ( - - 35, + + ( + 21 ) ) * - 39 THEN 48 * - COUNT ( * ) + + 14 WHEN 27 THEN - 52 ELSE + 46 * MIN ( - 34 ) END
----
-139196

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-666
SELECT NULLIF ( 78, 93 ) + + - COUNT( * ) DIV - 36 AS col0
----
78

skipif mysql # not compatible
query I rowsort label-666
SELECT NULLIF ( 78, 93 ) + + - COUNT ( * ) / - 36 AS col0
----
78

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-667
SELECT + CAST( CASE - 79 WHEN + 20 THEN + COALESCE ( + 27, 4 * + + MAX( + 82 ) * 12, + 38 ) + COALESCE ( + 51, 81 ) END AS SIGNED ) - 1
----
NULL

skipif mysql # not compatible
query I rowsort label-667
SELECT + CAST ( CASE - 79 WHEN + 20 THEN + COALESCE ( + 27, 4 * + + MAX ( + 82 ) * 12, + 38 ) + COALESCE ( + 51, 81 ) END AS INTEGER ) - 1
----
NULL

query I rowsort
SELECT 90 + + + 65 + - + 95 AS col1
----
60

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-669
SELECT ALL + CASE - ( CAST( NULL AS SIGNED ) ) WHEN - 21 + + 87 + + 25 THEN 80 * + - 7 + + COALESCE ( - 46 - - NULLIF ( 70 + 47, 89 ) * COUNT( * ), + NULLIF ( + ( - 71 ), 45 - 33 ), COUNT( * ) / ( 41 ) ) * 72 END - + 0 * - COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-669
SELECT ALL + CASE - ( CAST ( NULL AS INTEGER ) ) WHEN - 21 + + 87 + + 25 THEN 80 * + - 7 + + COALESCE ( - 46 - - NULLIF ( 70 + 47, 89 ) * COUNT ( * ), + NULLIF ( + ( - 71 ), 45 - 33 ), COUNT ( * ) / ( 41 ) ) * 72 END - + 0 * - COUNT ( * ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-670
SELECT DISTINCT - 95 - - - COUNT( DISTINCT + 95 )
----
-96

skipif mysql # not compatible
query I rowsort label-670
SELECT DISTINCT - 95 - - - COUNT ( DISTINCT + 95 )
----
-96

onlyif mysql # DIV for integer division: 
query II rowsort label-671
SELECT 66 + + 65 AS col2, - NULLIF ( 30, ( - 34 ) + 23 ) DIV + 67
----
131
0

skipif mysql # not compatible
query II rowsort label-671
SELECT 66 + + 65 AS col2, - NULLIF ( 30, ( - 34 ) + 23 ) / + 67
----
131
0

onlyif mysql # DIV for integer division: 
query I rowsort label-672
SELECT CASE + - 54 WHEN + - 3 THEN NULL ELSE - 61 END DIV + 59
----
-1

skipif mysql # not compatible
query I rowsort label-672
SELECT CASE + - 54 WHEN + - 3 THEN NULL ELSE - 61 END / + 59
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-673
SELECT COUNT( * ) + - + 89
----
-88

skipif mysql # not compatible
query I rowsort label-673
SELECT COUNT ( * ) + - + 89
----
-88

query I rowsort
SELECT ALL 62 * ( + 37 ) * - + COALESCE ( 48, + + 9 ) * 58 * 42 + - ( - 87 ) AS col1
----
-268232745

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-676
SELECT - MIN( ALL - 16 ) * 3 + - 29 - 41
----
-22

skipif mysql # not compatible
query I rowsort label-676
SELECT - MIN ( ALL - 16 ) * 3 + - 29 - 41
----
-22

query I rowsort
SELECT DISTINCT 91 * 77 * - + 52
----
-364364

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-679
SELECT - 53 DIV - 97 + - - ( + 53 ) * + - 18 * - 75 col0
----
71550

skipif mysql # not compatible
query I rowsort label-679
SELECT - 53 / - 97 + - - ( + 53 ) * + - 18 * - 75 col0
----
71550

onlyif mysql # aggregate syntax: 
query I rowsort label-680
SELECT DISTINCT + SUM( ALL + 67 ) + - - 97
----
164

skipif mysql # not compatible
query I rowsort label-680
SELECT DISTINCT + SUM ( ALL + 67 ) + - - 97
----
164

query I rowsort
SELECT ALL 20 + 32 AS col0
----
52

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-682
SELECT + + COUNT( * ) DIV - 74 * + 58 - + 38 - - 58
----
20

skipif mysql # not compatible
query I rowsort label-682
SELECT + + COUNT ( * ) / - 74 * + 58 - + 38 - - 58
----
20

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-683
SELECT CAST( NULL AS SIGNED ) * 28 AS col1, + COALESCE ( + 93, + 55, + + 39 )
----
NULL
93

skipif mysql # not compatible
query II rowsort label-683
SELECT CAST ( NULL AS INTEGER ) * 28 AS col1, + COALESCE ( + 93, + 55, + + 39 )
----
NULL
93

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-684
SELECT - - 92 * CAST( NULL AS SIGNED ) + - + 41 + + 84 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-684
SELECT - - 92 * CAST ( NULL AS INTEGER ) + - + 41 + + 84 AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-685
SELECT DISTINCT 3 + - MAX( 30 ) * - 82 * - + 11 + - + 82 + - 14 AS col0, CAST( NULL AS SIGNED ) + COUNT( * ) / - 55 col1
----
-27153
NULL

skipif mysql # not compatible
query II rowsort label-685
SELECT DISTINCT 3 + - MAX ( 30 ) * - 82 * - + 11 + - + 82 + - 14 AS col0, CAST ( NULL AS INTEGER ) + COUNT ( * ) / - 55 col1
----
-27153
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-686
SELECT ALL + + 42 * - ( + - ( - 29 ) ) + + 99 + + + 88 / - 95 * + CASE - - COUNT( * ) WHEN 0 / - 31 THEN - 75 * + 2 END - 90 / - 90
----
NULL

skipif mysql # not compatible
query I rowsort label-686
SELECT ALL + + 42 * - ( + - ( - 29 ) ) + + 99 + + + 88 / - 95 * + CASE - - COUNT ( * ) WHEN 0 / - 31 THEN - 75 * + 2 END - 90 / - 90
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-687
SELECT DISTINCT - CASE - - CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) WHEN ( - 74 ) + 49 THEN - + 83 * + - 17 WHEN - + NULLIF ( - 4, ( COUNT( * ) ) ) * - ( 92 ) THEN NULL END + + 37 / - 58
----
NULL

skipif mysql # not compatible
query I rowsort label-687
SELECT DISTINCT - CASE - - CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) WHEN ( - 74 ) + 49 THEN - + 83 * + - 17 WHEN - + NULLIF ( - 4, ( COUNT ( * ) ) ) * - ( 92 ) THEN NULL END + + 37 / - 58
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-689
SELECT + 21 * + 27 * COUNT( * ) + + - NULLIF ( 27, - + ( 24 ) + + 2 ) * + 74 * 43
----
-85347

skipif mysql # not compatible
query I rowsort label-689
SELECT + 21 * + 27 * COUNT ( * ) + + - NULLIF ( 27, - + ( 24 ) + + 2 ) * + 74 * 43
----
-85347

onlyif mysql # aggregate syntax: 
query I rowsort label-690
SELECT ALL + 20 + + MAX( - 25 )
----
-5

skipif mysql # not compatible
query I rowsort label-690
SELECT ALL + 20 + + MAX ( - 25 )
----
-5

query II rowsort
SELECT ALL + 40 + + 49, 82 - - - 93 AS col2
----
89
-11

query I rowsort
SELECT DISTINCT 5 * - 18 * - 45 AS col0
----
4050

onlyif mysql # aggregate syntax: 
query I rowsort label-693
SELECT ALL - - 37 * + - 36 - - 54 - - - CASE + MAX( DISTINCT 47 ) WHEN + - COALESCE ( - - 53, - 87, - 50 ) THEN 9 * - 52 WHEN - 27 * - 12 + 93 THEN - 84 * CASE - 70 * 53 WHEN - 48 THEN 95 END + 3 ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-693
SELECT ALL - - 37 * + - 36 - - 54 - - - CASE + MAX ( DISTINCT 47 ) WHEN + - COALESCE ( - - 53, - 87, - 50 ) THEN 9 * - 52 WHEN - 27 * - 12 + 93 THEN - 84 * CASE - 70 * 53 WHEN - 48 THEN 95 END + 3 ELSE NULL END AS col2
----
NULL

query I rowsort
SELECT + 54 * 56 AS col1
----
3024

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

skipif mysql # not compatible
query I rowsort label-695
SELECT 56 + - COUNT ( * ) * ( COUNT ( * ) ) / + 37
----
56

query I rowsort
SELECT - 76 + + - 25 AS col2
----
-101

onlyif mysql # DIV for integer division: 
query I rowsort label-697
SELECT 89 * + COALESCE ( - 28, - + ( - 19 ) DIV - 32, + 15 + - 88 )
----
-2492

skipif mysql # not compatible
query I rowsort label-697
SELECT 89 * + COALESCE ( - 28, - + ( - 19 ) / - 32, + 15 + - 88 )
----
-2492

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-698
SELECT DISTINCT NULLIF ( + 20, - + CAST( NULL AS SIGNED ) ) AS col2, 15 AS col2
----
20
15

skipif mysql # not compatible
query II rowsort label-698
SELECT DISTINCT NULLIF ( + 20, - + CAST ( NULL AS INTEGER ) ) AS col2, 15 AS col2
----
20
15

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-699
SELECT DISTINCT COUNT( * ), 73 DIV + MAX( ALL 71 ) AS col1
----
1
1

skipif mysql # not compatible
query II rowsort label-699
SELECT DISTINCT COUNT ( * ), 73 / + MAX ( ALL 71 ) AS col1
----
1
1

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

skipif mysql # not compatible
query I rowsort label-700
SELECT DISTINCT COUNT ( + + ( + ( + - 93 ) ) ) * - 16 AS col2
----
-16

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-701
SELECT ALL + 18 * - + 2 * - 47, - 26 * - MAX( 96 ) DIV + + ( - + COUNT( * ) ) + + 63 + + + 18 + + CASE 27 WHEN - ( 25 ) THEN COUNT( * ) * COUNT( * ) ELSE COUNT( * ) * 1 END AS col1
----
1692
-2414

skipif mysql # not compatible
query II rowsort label-701
SELECT ALL + 18 * - + 2 * - 47, - 26 * - MAX ( 96 ) / + + ( - + COUNT ( * ) ) + + 63 + + + 18 + + CASE 27 WHEN - ( 25 ) THEN COUNT ( * ) * COUNT ( * ) ELSE COUNT ( * ) * 1 END AS col1
----
1692
-2414

onlyif mysql # aggregate syntax: 
query I rowsort label-702
SELECT - COUNT( ALL 51 ) - + 31 * - 2 AS col0
----
61

skipif mysql # not compatible
query I rowsort label-702
SELECT - COUNT ( ALL 51 ) - + 31 * - 2 AS col0
----
61

query I rowsort
SELECT - 75 + - 39 AS col1
----
-114

onlyif mysql # aggregate syntax: 
query I rowsort label-704
SELECT ALL NULLIF ( - COUNT( * ), MIN( ALL + 91 ) / 66 )
----
-1

skipif mysql # not compatible
query I rowsort label-704
SELECT ALL NULLIF ( - COUNT ( * ), MIN ( ALL + 91 ) / 66 )
----
-1

query I rowsort
SELECT - ( NULLIF ( + NULLIF ( + 82, - 71 ), + - 38 + 73 ) ) * + ( - 99 ) * - 18 AS col1
----
-146124

query II rowsort
SELECT - 84 AS col0, 20
----
-84
20

onlyif mysql # DIV for integer division: 
query I rowsort label-707
SELECT + 74 DIV 84 col2
----
0

skipif mysql # not compatible
query I rowsort label-707
SELECT + 74 / 84 col2
----
0

query I rowsort
SELECT DISTINCT + 1 * - + 95 AS col0
----
-95

query I rowsort
SELECT ALL ( + 15 ) + - - 76
----
91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-710
SELECT - 21 - + ( + CASE + + 97 WHEN + - 88 - 40 - - - 20 * CAST( NULL AS SIGNED ) THEN - 13 + - + 89 WHEN 41 + 90 THEN - 86 END ) + + 11
----
NULL

skipif mysql # not compatible
query I rowsort label-710
SELECT - 21 - + ( + CASE + + 97 WHEN + - 88 - 40 - - - 20 * CAST ( NULL AS INTEGER ) THEN - 13 + - + 89 WHEN 41 + 90 THEN - 86 END ) + + 11
----
NULL

query I rowsort
SELECT ALL CASE + - 93 WHEN 71 THEN + 61 END
----
NULL

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

skipif mysql # not compatible
query I rowsort label-712
SELECT DISTINCT NULLIF ( 24, COUNT ( * ) + + - 30 )
----
24

query I rowsort
SELECT DISTINCT + 74 + + 16
----
90

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-714
SELECT - 6 DIV + + COUNT( * ) + + + 84
----
78

skipif mysql # not compatible
query I rowsort label-714
SELECT - 6 / + + COUNT ( * ) + + + 84
----
78

onlyif mysql # DIV for integer division: 
query I rowsort label-715
SELECT - 98 * 66 DIV - 41 + 76 - + + 17
----
216

skipif mysql # not compatible
query I rowsort label-715
SELECT - 98 * 66 / - 41 + 76 - + + 17
----
216

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

onlyif mysql # aggregate syntax: 
query II rowsort label-717
SELECT + 31 * + SUM( ALL + 98 ) AS col0, 73 + - - 81 AS col2
----
3038
154

skipif mysql # not compatible
query II rowsort label-717
SELECT + 31 * + SUM ( ALL + 98 ) AS col0, 73 + - - 81 AS col2
----
3038
154

query I rowsort
SELECT DISTINCT - 94 * - 96
----
9024

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-720
SELECT 73, ( + 52 ) / + + COUNT( * ) * 46 + - MIN( ALL - CAST( NULL AS SIGNED ) ) AS col2
----
73
NULL

skipif mysql # not compatible
query II rowsort label-720
SELECT 73, ( + 52 ) / + + COUNT ( * ) * 46 + - MIN ( ALL - CAST ( NULL AS INTEGER ) ) AS col2
----
73
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-721
SELECT 97 * CAST( 79 AS SIGNED ) DIV 92 + - 17 AS col2
----
66

skipif mysql # not compatible
query I rowsort label-721
SELECT 97 * CAST ( 79 AS INTEGER ) / 92 + - 17 AS col2
----
66

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-723
SELECT + 64 + - ( - CASE + 85 WHEN + - 23 + + - 84 THEN NULL WHEN - CASE - - 33 WHEN 57 THEN - ( - 59 ) END - + 3 THEN - MIN( DISTINCT ( 57 ) ) * 66 ELSE MIN( + 84 ) * 69 END ) DIV - 22
----
-199

skipif mysql # not compatible
query I rowsort label-723
SELECT + 64 + - ( - CASE + 85 WHEN + - 23 + + - 84 THEN NULL WHEN - CASE - - 33 WHEN 57 THEN - ( - 59 ) END - + 3 THEN - MIN ( DISTINCT ( 57 ) ) * 66 ELSE MIN ( + 84 ) * 69 END ) / - 22
----
-199

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-724
SELECT DISTINCT + 22, COUNT( + CAST( NULL AS SIGNED ) ) * + MAX( - + 77 ) + - 11 AS col2
----
22
-11

skipif mysql # not compatible
query II rowsort label-724
SELECT DISTINCT + 22, COUNT ( + CAST ( NULL AS INTEGER ) ) * + MAX ( - + 77 ) + - 11 AS col2
----
22
-11

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-725
SELECT + CAST( - COUNT( * ) AS SIGNED ) + + 59 DIV + 80 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-725
SELECT + CAST ( - COUNT ( * ) AS INTEGER ) + + 59 / + 80 AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-726
SELECT ALL - 50 * + + 47 - + MIN( ALL - 87 )
----
-2263

skipif mysql # not compatible
query I rowsort label-726
SELECT ALL - 50 * + + 47 - + MIN ( ALL - 87 )
----
-2263

query II rowsort
SELECT + 97 AS col0, - 55 AS col2
----
97
-55

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

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

query I rowsort
SELECT + + 79 + + + 89 + 2 * + + COALESCE ( 2, - NULLIF ( - 97, + + 74 ), - 89 ) AS col2
----
172

onlyif mysql # aggregate syntax: 
query I rowsort label-730
SELECT ALL - 68 * + + 33 + SUM( + 34 )
----
-2210

skipif mysql # not compatible
query I rowsort label-730
SELECT ALL - 68 * + + 33 + SUM ( + 34 )
----
-2210

query I rowsort
SELECT DISTINCT 58 * + 27 AS col0
----
1566

query I rowsort
SELECT - COALESCE ( 85, - - 71, + + 58 ) * 26 + - + 18
----
-2228

query I rowsort
SELECT - 87 * 70 AS col1
----
-6090

query I rowsort
SELECT ALL 93 * + ( 37 ) AS col2
----
3441

onlyif mysql # aggregate syntax: 
query II rowsort label-735
SELECT + 99 + CASE 85 WHEN + 23 THEN + + COUNT( * ) + + 52 END AS col0, NULLIF ( + 83, + + 40 + 73 * 92 * 93 ) * + 80
----
NULL
6640

skipif mysql # not compatible
query II rowsort label-735
SELECT + 99 + CASE 85 WHEN + 23 THEN + + COUNT ( * ) + + 52 END AS col0, NULLIF ( + 83, + + 40 + 73 * 92 * 93 ) * + 80
----
NULL
6640

query I rowsort
SELECT - ( + 96 ) * + 5 * - 21 * + 0
----
0

query I rowsort
SELECT - 81 - - ( + 15 ) AS col2
----
-66

onlyif mysql # DIV for integer division: 
query I rowsort label-738
SELECT + 51 DIV - 7
----
-7

skipif mysql # not compatible
query I rowsort label-738
SELECT + 51 / - 7
----
-7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-739
SELECT - 57 + + ( - + 23 ) + + 4 + SUM( + ( - + 28 ) ) DIV + 34 - - + 71 AS col1
----
-5

skipif mysql # not compatible
query I rowsort label-739
SELECT - 57 + + ( - + 23 ) + + 4 + SUM ( + ( - + 28 ) ) / + 34 - - + 71 AS col1
----
-5

query I rowsort
SELECT - ( 78 ) * + + 52 AS col2
----
-4056

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

skipif mysql # not compatible
query I rowsort label-741
SELECT - CAST ( NULL AS INTEGER ) + 51 / + - 52 AS col2
----
NULL

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

skipif mysql # not compatible
query I rowsort label-742
SELECT ALL MAX ( ALL 69 )
----
69

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

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

query I rowsort
SELECT DISTINCT - 42 + + 80 AS col0
----
38

query I rowsort
SELECT ALL + 87 + 54 AS col1
----
141

query II rowsort
SELECT - 46, 85 * + 3 AS col1
----
-46
255

query II rowsort
SELECT ALL - COALESCE ( - 22, + + 43 ) + - 19, 44 col0
----
3
44

query I rowsort
SELECT - 61 * + 63
----
-3843

query II rowsort
SELECT - 67 + 54 AS col1, - 11 col1
----
-13
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-750
SELECT ALL - CASE + - COUNT( 63 ) WHEN - 79 * + - 28 THEN MIN( DISTINCT + 67 ) WHEN 88 THEN - 82 ELSE + - 12 END * COUNT( DISTINCT 93 ) + COUNT( * )
----
13

skipif mysql # not compatible
query I rowsort label-750
SELECT ALL - CASE + - COUNT ( 63 ) WHEN - 79 * + - 28 THEN MIN ( DISTINCT + 67 ) WHEN 88 THEN - 82 ELSE + - 12 END * COUNT ( DISTINCT 93 ) + COUNT ( * )
----
13

query II rowsort
SELECT + + COALESCE ( - 49, + ( 52 ) ) AS col1, 73
----
-49
73

onlyif mysql # aggregate syntax: 
query I rowsort label-752
SELECT ALL - - SUM( ALL 36 ) * + - 77 * - 42
----
116424

skipif mysql # not compatible
query I rowsort label-752
SELECT ALL - - SUM ( ALL 36 ) * + - 77 * - 42
----
116424

query I rowsort
SELECT - ( + + ( + 11 ) ) * 46 * 21 + 52 + - - 3 * + ( 2 ) - - 2 + + 43
----
-10523

query I rowsort
SELECT - 95 + + NULLIF ( + - 32, - 67 * - + 76 + 25 ) AS col2
----
-127

query I rowsort
SELECT + 9 * 51 * + 99
----
45441

query II rowsort
SELECT DISTINCT + + 83 AS col1, 17 AS col0
----
83
17

query I rowsort
SELECT - 53 - 60 * 96
----
-5813

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-758
SELECT + - 53 * 68 + + - 85 + - 10 * + 16 - + 94 AS col0, + 34 * + + 99 + CASE - 67 WHEN - 23 - COUNT( * ) * - 87 THEN - ( - 43 ) + + 69 END * - MAX( DISTINCT 37 + 95 * - CAST( NULL AS SIGNED ) ) col2
----
-3943
NULL

skipif mysql # not compatible
query II rowsort label-758
SELECT + - 53 * 68 + + - 85 + - 10 * + 16 - + 94 AS col0, + 34 * + + 99 + CASE - 67 WHEN - 23 - COUNT ( * ) * - 87 THEN - ( - 43 ) + + 69 END * - MAX ( DISTINCT 37 + 95 * - CAST ( NULL AS INTEGER ) ) col2
----
-3943
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-759
SELECT + 36 DIV + + 12 AS col1
----
3

skipif mysql # not compatible
query I rowsort label-759
SELECT + 36 / + + 12 AS col1
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-760
SELECT - - CAST( - 24 AS SIGNED ) * - 72 * - + CASE + 59 WHEN + 55 + - 34 + + + MAX( - ( - 13 ) ) / + 4 * 66 * + 47 THEN 15 ELSE NULL END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-760
SELECT - - CAST ( - 24 AS INTEGER ) * - 72 * - + CASE + 59 WHEN + 55 + - 34 + + + MAX ( - ( - 13 ) ) / + 4 * 66 * + 47 THEN 15 ELSE NULL END col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-761
SELECT 69 * - - CAST( - 62 AS SIGNED ) + 77 DIV 94
----
-4278

skipif mysql # not compatible
query I rowsort label-761
SELECT 69 * - - CAST ( - 62 AS INTEGER ) + 77 / 94
----
-4278

onlyif mysql # aggregate syntax: 
query I rowsort label-762
SELECT ALL + 88 * + ( NULLIF ( COUNT( * ), - COUNT( * ) * - CASE MAX( + 98 ) WHEN + 28 * - - COUNT( * ) * - 17 + - 96 / 14 THEN 95 END ) ) AS col2
----
88

skipif mysql # not compatible
query I rowsort label-762
SELECT ALL + 88 * + ( NULLIF ( COUNT ( * ), - COUNT ( * ) * - CASE MAX ( + 98 ) WHEN + 28 * - - COUNT ( * ) * - 17 + - 96 / 14 THEN 95 END ) ) AS col2
----
88

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

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

query II rowsort
SELECT DISTINCT - 6 col0, - 99
----
-6
-99

query II rowsort
SELECT ALL - + 55, + 18 + + 68 * 7 AS col2
----
-55
494

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-766
SELECT - NULLIF ( - 31, + - CASE WHEN - 21 <> COALESCE ( + - 3, + + 16 + - + 12, + 14 ) THEN + 48 / + 31 + + 30 * - CAST( 91 * 72 + + 73 AS SIGNED ) WHEN COUNT( * ) <= 22 THEN COALESCE ( 94, 94 * + 4 + 11 ) * - 61 END * 67 ) * + 67 AS col2
----
2077

skipif mysql # not compatible
query I rowsort label-766
SELECT - NULLIF ( - 31, + - CASE WHEN - 21 <> COALESCE ( + - 3, + + 16 + - + 12, + 14 ) THEN + 48 / + 31 + + 30 * - CAST ( 91 * 72 + + 73 AS INTEGER ) WHEN COUNT ( * ) <= 22 THEN COALESCE ( 94, 94 * + 4 + 11 ) * - 61 END * 67 ) * + 67 AS col2
----
2077

query I rowsort
SELECT ALL 94 * + 54 + - 10 AS col1
----
5066

onlyif mysql # aggregate syntax: 
query I rowsort label-768
SELECT 1 + - MAX( ALL + ( + 87 ) ) + + - COUNT( * ) * - + 81 - + 69 AS col2
----
-74

skipif mysql # not compatible
query I rowsort label-768
SELECT 1 + - MAX ( ALL + ( + 87 ) ) + + - COUNT ( * ) * - + 81 - + 69 AS col2
----
-74

query I rowsort
SELECT DISTINCT 5 + + 47 AS col1
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-770
SELECT ALL 39 + - + CASE 88 WHEN + 94 - - 11 * 42 + - 27 + + 14 * - - 50 + + 47 THEN - MAX( DISTINCT 71 ) / 8 END * + 91 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-770
SELECT ALL 39 + - + CASE 88 WHEN + 94 - - 11 * 42 + - 27 + + 14 * - - 50 + + 47 THEN - MAX ( DISTINCT 71 ) / 8 END * + 91 AS col1
----
NULL

query I rowsort
SELECT 91 * 94
----
8554

query II rowsort
SELECT DISTINCT 69 + - + 69 AS col1, ( - + 48 ) AS col0
----
0
-48

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-774
SELECT ALL 4 + - 57, COUNT( * ) AS col2
----
-53
1

skipif mysql # not compatible
query II rowsort label-774
SELECT ALL 4 + - 57, COUNT ( * ) AS col2
----
-53
1

onlyif mysql # aggregate syntax: 
query I rowsort label-775
SELECT ( - 70 ) + - + 72 - + + 21 + COUNT( * ) AS col1
----
-162

skipif mysql # not compatible
query I rowsort label-775
SELECT ( - 70 ) + - + 72 - + + 21 + COUNT ( * ) AS col1
----
-162

query I rowsort
SELECT ALL ( + 73 ) * - 89 AS col0
----
-6497

onlyif mysql # aggregate syntax: 
query I rowsort label-777
SELECT COUNT( * ) + 62 * 72 * + + 20 * + COUNT( ALL 97 ) + + 20 + 15 * 93
----
90696

skipif mysql # not compatible
query I rowsort label-777
SELECT COUNT ( * ) + 62 * 72 * + + 20 * + COUNT ( ALL 97 ) + + 20 + 15 * 93
----
90696

query I rowsort
SELECT 42 + - 89 * - - 99 + 14 AS col1
----
-8755

query I rowsort
SELECT 45 * 86
----
3870

query I rowsort
SELECT ALL 61 * + 15
----
915

onlyif mysql # aggregate syntax: 
query I rowsort label-781
SELECT + 57 - + - NULLIF ( - - 9, + 25 * 21 * 87 * + 17 + + 46 * + - COUNT( ALL - 52 ) ) + - 43 + - 16 AS col0
----
7

skipif mysql # not compatible
query I rowsort label-781
SELECT + 57 - + - NULLIF ( - - 9, + 25 * 21 * 87 * + 17 + + 46 * + - COUNT ( ALL - 52 ) ) + - 43 + - 16 AS col0
----
7

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-783
SELECT 54 + + MAX( ALL - - 95 ) + + - 8 * ( 41 ) DIV + + 40
----
141

skipif mysql # not compatible
query I rowsort label-783
SELECT 54 + + MAX ( ALL - - 95 ) + + - 8 * ( 41 ) / + + 40
----
141

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-784
SELECT ALL + CASE + COUNT( * ) WHEN - - ( - + 9 ) * + 65 - + COUNT( * ) * + 10 - + COUNT( * ) * - 81 THEN NULL WHEN + + CASE + COUNT( * ) WHEN + 40 THEN - 12 ELSE ( 98 ) END + - 46 THEN ( - CAST( 94 AS DECIMAL ) ) * 61 END - 64 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-784
SELECT ALL + CASE + COUNT ( * ) WHEN - - ( - + 9 ) * + 65 - + COUNT ( * ) * + 10 - + COUNT ( * ) * - 81 THEN NULL WHEN + + CASE + COUNT ( * ) WHEN + 40 THEN - 12 ELSE ( 98 ) END + - 46 THEN ( - CAST ( 94 AS REAL ) ) * 61 END - 64 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-785
SELECT - 7 * - 48 + 4 * - COUNT( * ) * - 11 + - COUNT( DISTINCT + + 21 ) + - + COUNT( * )
----
378

skipif mysql # not compatible
query I rowsort label-785
SELECT - 7 * - 48 + 4 * - COUNT ( * ) * - 11 + - COUNT ( DISTINCT + + 21 ) + - + COUNT ( * )
----
378

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-786
SELECT ALL - + ( 8 ) * 33, + 69 DIV MAX( DISTINCT 77 ) AS col1
----
-264
0

skipif mysql # not compatible
query II rowsort label-786
SELECT ALL - + ( 8 ) * 33, + 69 / MAX ( DISTINCT 77 ) AS col1
----
-264
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-787
SELECT - 59 / COUNT( * ) * - ( + 94 ) + + 45 + + CAST( NULL AS SIGNED ) + + - 53 * - 18 + + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-787
SELECT - 59 / COUNT ( * ) * - ( + 94 ) + + 45 + + CAST ( NULL AS INTEGER ) + + - 53 * - 18 + + COUNT ( * )
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-789
SELECT DISTINCT - - CASE + 88 WHEN + 65 + - - 50 * - 33 * 90 + - ( + 69 ) THEN NULL WHEN + COUNT( * ) + - 87 + NULLIF ( - + COUNT( * ), - 42 ) THEN COUNT( * ) + + 44 WHEN 26 * 57 THEN NULL WHEN + 37 + + 54 THEN NULL ELSE + 3 * 55 END * 5
----
825

skipif mysql # not compatible
query I rowsort label-789
SELECT DISTINCT - - CASE + 88 WHEN + 65 + - - 50 * - 33 * 90 + - ( + 69 ) THEN NULL WHEN + COUNT ( * ) + - 87 + NULLIF ( - + COUNT ( * ), - 42 ) THEN COUNT ( * ) + + 44 WHEN 26 * 57 THEN NULL WHEN + 37 + + 54 THEN NULL ELSE + 3 * 55 END * 5
----
825

onlyif mysql # aggregate syntax: 
query I rowsort label-790
SELECT 79 * - 3 + + 80 - - + COALESCE ( - 18, - COUNT( * ), - 37 * - + 1 + + MIN( ALL - 35 ) + 73 + - 71 ) * + 17 col0
----
-463

skipif mysql # not compatible
query I rowsort label-790
SELECT 79 * - 3 + + 80 - - + COALESCE ( - 18, - COUNT ( * ), - 37 * - + 1 + + MIN ( ALL - 35 ) + 73 + - 71 ) * + 17 col0
----
-463

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

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

query II rowsort
SELECT 33 * 86 col0, 64 AS col1
----
2838
64

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-793
SELECT ALL - + COALESCE ( - 93, + + 88 * + 0 - - 52, 16 + - 3 ) + CAST( NULL AS SIGNED ) + + - 11 * 50 * 57 - 16
----
NULL

skipif mysql # not compatible
query I rowsort label-793
SELECT ALL - + COALESCE ( - 93, + + 88 * + 0 - - 52, 16 + - 3 ) + CAST ( NULL AS INTEGER ) + + - 11 * 50 * 57 - 16
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-794
SELECT - CAST( NULL AS DECIMAL ) * + ( - 9 ) / - - 47 + + + CAST( + 0 AS SIGNED ) + - - NULLIF ( - 18, + 64 ) - + 81
----
NULL

skipif mysql # not compatible
query I rowsort label-794
SELECT - CAST ( NULL AS REAL ) * + ( - 9 ) / - - 47 + + + CAST ( + 0 AS INTEGER ) + - - NULLIF ( - 18, + 64 ) - + 81
----
NULL

query I rowsort
SELECT + 62 + 82 + 0 * 2 + + 25 * 43 AS col0
----
1219

onlyif mysql # DIV for integer division: 
query I rowsort label-796
SELECT ALL + 59 DIV + - 47 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-796
SELECT ALL + 59 / + - 47 AS col2
----
-1

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-798
SELECT SUM( + + 33 ) * 4 + - + 18 - 7 + 38
----
145

skipif mysql # not compatible
query I rowsort label-798
SELECT SUM ( + + 33 ) * 4 + - + 18 - 7 + 38
----
145

onlyif mysql # aggregate syntax: 
query I rowsort label-799
SELECT 11 * - MAX( ALL - - 80 ) col2
----
-880

skipif mysql # not compatible
query I rowsort label-799
SELECT 11 * - MAX ( ALL - - 80 ) col2
----
-880

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-800
SELECT ALL 64 + CAST( - - 69 AS SIGNED ) col1
----
133

skipif mysql # not compatible
query I rowsort label-800
SELECT ALL 64 + CAST ( - - 69 AS INTEGER ) col1
----
133

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-801
SELECT ALL + 59 + - CAST( - - MIN( 26 ) AS SIGNED ) + - + 0 * - - 92 DIV + + 41 AS col2
----
33

skipif mysql # not compatible
query I rowsort label-801
SELECT ALL + 59 + - CAST ( - - MIN ( 26 ) AS INTEGER ) + - + 0 * - - 92 / + + 41 AS col2
----
33

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-802
SELECT + COUNT( * ) * COALESCE ( - CAST( + 60 AS SIGNED ), 20 ) + + 47 DIV + - 50
----
-60

skipif mysql # not compatible
query I rowsort label-802
SELECT + COUNT ( * ) * COALESCE ( - CAST ( + 60 AS INTEGER ), 20 ) + + 47 / + - 50
----
-60

query II rowsort
SELECT ALL - 96 * - 41 * + 78 AS col0, ( - - 82 ) AS col2
----
307008
82

query I rowsort
SELECT DISTINCT + 42 + 56
----
98

query I rowsort
SELECT ALL - 87 + 37 + 67 col1
----
17

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-806
SELECT ALL 78 col0, - NULLIF ( + - 29, - - 22 + + CAST( + - 71 AS SIGNED ) ) - + - 65 AS col0
----
78
94

skipif mysql # not compatible
query II rowsort label-806
SELECT ALL 78 col0, - NULLIF ( + - 29, - - 22 + + CAST ( + - 71 AS INTEGER ) ) - + - 65 AS col0
----
78
94

onlyif mysql # DIV for integer division: 
query I rowsort label-807
SELECT 26 - 6 + + - 86 DIV 79
----
19

skipif mysql # not compatible
query I rowsort label-807
SELECT 26 - 6 + + - 86 / 79
----
19

query II rowsort
SELECT ALL 37 col2, - 48 + 3
----
37
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-809
SELECT COALESCE ( 41, COALESCE ( + 7, - + 72, - 90 ) * - 34, + - NULLIF ( COUNT( * ), COUNT( 69 ) + - COALESCE ( - SUM( DISTINCT 31 ), - 93, 64 / + 74 + 12 ) ) ) + 17 AS col2
----
58

skipif mysql # not compatible
query I rowsort label-809
SELECT COALESCE ( 41, COALESCE ( + 7, - + 72, - 90 ) * - 34, + - NULLIF ( COUNT ( * ), COUNT ( 69 ) + - COALESCE ( - SUM ( DISTINCT 31 ), - 93, 64 / + 74 + 12 ) ) ) + 17 AS col2
----
58

query II rowsort
SELECT - 44, 83 * - 93 AS col1
----
-44
-7719

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-811
SELECT ALL MAX( DISTINCT + 32 ) - + COUNT( ALL + 54 ) + - 47 * + 34 + COUNT( * ) * - 41 * + 86 * + AVG ( + CASE - 70 WHEN + 81 * 99 THEN CAST( NULL AS SIGNED ) * + 72 - 52 WHEN - ( 83 ) THEN NULL ELSE NULL END ) * 77
----
NULL

skipif mysql # not compatible
query I rowsort label-811
SELECT ALL MAX ( DISTINCT + 32 ) - + COUNT ( ALL + 54 ) + - 47 * + 34 + COUNT ( * ) * - 41 * + 86 * + AVG ( + CASE - 70 WHEN + 81 * 99 THEN CAST ( NULL AS INTEGER ) * + 72 - 52 WHEN - ( 83 ) THEN NULL ELSE NULL END ) * 77
----
NULL

query I rowsort
SELECT 26 + - 65 AS col2
----
-39

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-813
SELECT DISTINCT MAX( DISTINCT 93 ) DIV + 26 col0, COUNT( * ) + + - 45
----
3
-44

skipif mysql # not compatible
query II rowsort label-813
SELECT DISTINCT MAX ( DISTINCT 93 ) / + 26 col0, COUNT ( * ) + + - 45
----
3
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-814
SELECT NULLIF ( + 81, 48 * - - 32 ) + - - COUNT( * ) + + - 45 + - + 12 AS col1
----
25

skipif mysql # not compatible
query I rowsort label-814
SELECT NULLIF ( + 81, 48 * - - 32 ) + - - COUNT ( * ) + + - 45 + - + 12 AS col1
----
25

query II rowsort
SELECT + 64 * + ( + 52 ) AS col0, - 17 AS col2
----
3328
-17

query I rowsort
SELECT - 68 + - + 8 AS col2
----
-76

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-819
SELECT COUNT( + NULLIF ( + 18, 17 ) ) DIV - 16 * NULLIF ( - + CAST( 21 AS SIGNED ), - - 17 * ( + CAST( NULL AS SIGNED ) ) ) * + 95 + + 6 - - 60
----
66

skipif mysql # not compatible
query I rowsort label-819
SELECT COUNT ( + NULLIF ( + 18, 17 ) ) / - 16 * NULLIF ( - + CAST ( 21 AS INTEGER ), - - 17 * ( + CAST ( NULL AS INTEGER ) ) ) * + 95 + + 6 - - 60
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-820
SELECT ALL + COALESCE ( COUNT( * ), 43 + 32 + 34 * - 66 * + + 52 ) col1
----
1

skipif mysql # not compatible
query I rowsort label-820
SELECT ALL + COALESCE ( COUNT ( * ), 43 + 32 + 34 * - 66 * + + 52 ) col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-821
SELECT + NULLIF ( + 39, - COUNT( * ) ) + MIN( ALL + - 35 ) col2
----
4

skipif mysql # not compatible
query I rowsort label-821
SELECT + NULLIF ( + 39, - COUNT ( * ) ) + MIN ( ALL + - 35 ) col2
----
4

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

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

query II rowsort
SELECT - 44 * 5 * + 52 - - 56 AS col0, 48
----
-11384
48

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-824
SELECT + COUNT( * ) + + CASE - - 38 WHEN + 69 THEN 30 + NULLIF ( 37, - - 59 + + CAST( + + COUNT( + + 81 ) AS SIGNED ) ) END + + + 5 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-824
SELECT + COUNT ( * ) + + CASE - - 38 WHEN + 69 THEN 30 + NULLIF ( 37, - - 59 + + CAST ( + + COUNT ( + + 81 ) AS INTEGER ) ) END + + + 5 AS col1
----
NULL

query I rowsort
SELECT - + 91 + 39 col0
----
-52

query II rowsort
SELECT DISTINCT + 76 col2, 62 + - ( - + 20 )
----
76
82

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-827
SELECT ALL + 37 * - COALESCE ( + 29, 57 ) DIV + ( - - COUNT( * ) ) + - 5 + - COALESCE ( 83, COUNT( * ) - + 65 ) AS col0
----
-1161

skipif mysql # not compatible
query I rowsort label-827
SELECT ALL + 37 * - COALESCE ( + 29, 57 ) / + ( - - COUNT ( * ) ) + - 5 + - COALESCE ( 83, COUNT ( * ) - + 65 ) AS col0
----
-1161

query I rowsort
SELECT + + 6 * - 20 AS col0
----
-120

onlyif mysql # aggregate syntax: 
query I rowsort label-829
SELECT - ( - CASE + 8 WHEN - 26 THEN 9 + - + 19 WHEN 79 THEN - 17 ELSE COUNT( * ) END ) + + 63 + - - 60
----
124

skipif mysql # not compatible
query I rowsort label-829
SELECT - ( - CASE + 8 WHEN - 26 THEN 9 + - + 19 WHEN 79 THEN - 17 ELSE COUNT ( * ) END ) + + 63 + - - 60
----
124

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-831
SELECT DISTINCT + CASE - - 63 WHEN - - 69 + - COUNT( * ) + + ( + 12 ) THEN 92 WHEN AVG ( - 39 ) * + + 80 * + COUNT( * ) THEN NULL END * + + 85 + - 21
----
NULL

skipif mysql # not compatible
query I rowsort label-831
SELECT DISTINCT + CASE - - 63 WHEN - - 69 + - COUNT ( * ) + + ( + 12 ) THEN 92 WHEN AVG ( - 39 ) * + + 80 * + COUNT ( * ) THEN NULL END * + + 85 + - 21
----
NULL

query I rowsort
SELECT DISTINCT 76 * + - 38
----
-2888

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-834
SELECT - 22 DIV + ( 75 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-834
SELECT - 22 / + ( 75 ) AS col1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-835
SELECT ALL 65 * 9 + - 89 + - NULLIF ( + - 18, + CAST( - 71 AS SIGNED ) + + + 67 )
----
514

skipif mysql # not compatible
query I rowsort label-835
SELECT ALL 65 * 9 + - 89 + - NULLIF ( + - 18, + CAST ( - 71 AS INTEGER ) + + + 67 )
----
514

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

skipif mysql # not compatible
query I rowsort label-836
SELECT DISTINCT + COUNT ( * ) / 12 * + 42
----
0

query I rowsort
SELECT - 92 / - CASE + 74 WHEN + + 39 THEN - 63 * - 95 END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-838
SELECT DISTINCT + 10 DIV + - 19
----
0

skipif mysql # not compatible
query I rowsort label-838
SELECT DISTINCT + 10 / + - 19
----
0

query I rowsort
SELECT - 39 * - - 80
----
-3120

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

skipif mysql # not compatible
query I rowsort label-840
SELECT - MIN ( + 11 )
----
-11

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-841
SELECT - 56 DIV - 5 AS col0, COUNT( 70 )
----
11
1

skipif mysql # not compatible
query II rowsort label-841
SELECT - 56 / - 5 AS col0, COUNT ( 70 )
----
11
1

onlyif mysql # aggregate syntax: 
query I rowsort label-842
SELECT DISTINCT + COALESCE ( - 73, - 3 - + COUNT( * ) * - + COUNT( * ) * - + 42 + + ( COUNT( - ( - - 98 ) ) ) ) * - 12
----
876

skipif mysql # not compatible
query I rowsort label-842
SELECT DISTINCT + COALESCE ( - 73, - 3 - + COUNT ( * ) * - + COUNT ( * ) * - + 42 + + ( COUNT ( - ( - - 98 ) ) ) ) * - 12
----
876

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-843
SELECT ALL NULLIF ( - 35, + CASE + + 10 WHEN + - 1 * CAST( NULL AS DECIMAL ) * - 55 * + 72 THEN - 37 END ) * 80 + 47 AS col0
----
-2753

skipif mysql # not compatible
query I rowsort label-843
SELECT ALL NULLIF ( - 35, + CASE + + 10 WHEN + - 1 * CAST ( NULL AS REAL ) * - 55 * + 72 THEN - 37 END ) * 80 + 47 AS col0
----
-2753

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

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

query I rowsort
SELECT ALL COALESCE ( + 76, - 0 * - 72, 66 )
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-846
SELECT DISTINCT + NULLIF ( + + 28, + 27 + - + COUNT( * ) ) * - - 52 * + COUNT( * ) AS col0
----
1456

skipif mysql # not compatible
query I rowsort label-846
SELECT DISTINCT + NULLIF ( + + 28, + 27 + - + COUNT ( * ) ) * - - 52 * + COUNT ( * ) AS col0
----
1456

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-847
SELECT - - CAST( NULL AS SIGNED ) + + 39 + + - ( + + 57 )
----
NULL

skipif mysql # not compatible
query I rowsort label-847
SELECT - - CAST ( NULL AS INTEGER ) + + 39 + + - ( + + 57 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-848
SELECT - + 53 + - 96 + + CASE - - CASE WHEN - 73 IS NULL THEN - 85 END WHEN + - 99 THEN - 69 END + COUNT( * ) + - - CASE - 12 WHEN 6 + COALESCE ( COUNT( * ), - COUNT( * ), 51 + 0 / - 24 ) + - 2 THEN NULL WHEN 77 - 52 THEN - 56 * - 79 END
----
NULL

skipif mysql # not compatible
query I rowsort label-848
SELECT - + 53 + - 96 + + CASE - - CASE WHEN - 73 IS NULL THEN - 85 END WHEN + - 99 THEN - 69 END + COUNT ( * ) + - - CASE - 12 WHEN 6 + COALESCE ( COUNT ( * ), - COUNT ( * ), 51 + 0 / - 24 ) + - 2 THEN NULL WHEN 77 - 52 THEN - 56 * - 79 END
----
NULL

query I rowsort
SELECT - - 14 col1
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-850
SELECT - 28 * + + COUNT( * ) + - 15 + + + 7 + - + 95 + - - 50 * + + NULLIF ( 11, - + 78 * + + 0 ) AS col1
----
419

skipif mysql # not compatible
query I rowsort label-850
SELECT - 28 * + + COUNT ( * ) + - 15 + + + 7 + - + 95 + - - 50 * + + NULLIF ( 11, - + 78 * + + 0 ) AS col1
----
419

onlyif mysql # aggregate syntax: 
query I rowsort label-851
SELECT + MIN( + 25 ) * 86 AS col2
----
2150

skipif mysql # not compatible
query I rowsort label-851
SELECT + MIN ( + 25 ) * 86 AS col2
----
2150

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-852
SELECT DISTINCT + 23 + + - ( - CAST( NULL AS SIGNED ) ) * - - 23 AS col2, + 65 AS col1
----
NULL
65

skipif mysql # not compatible
query II rowsort label-852
SELECT DISTINCT + 23 + + - ( - CAST ( NULL AS INTEGER ) ) * - - 23 AS col2, + 65 AS col1
----
NULL
65

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-854
SELECT ALL + CAST( NULL AS SIGNED ) * - 60 * + - MAX( ALL + 60 ) - + 37 + - - 45 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-854
SELECT ALL + CAST ( NULL AS INTEGER ) * - 60 * + - MAX ( ALL + 60 ) - + 37 + - - 45 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-855
SELECT + - 95 * + + 22 + COUNT( * ) AS col2
----
-2089

skipif mysql # not compatible
query I rowsort label-855
SELECT + - 95 * + + 22 + COUNT ( * ) AS col2
----
-2089

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-856
SELECT DISTINCT COALESCE ( + + 77, + + 72, + 47 * + + 63 DIV + COUNT( + 58 ) + - CAST( COUNT( * ) AS SIGNED ) ) * 94 + 47 DIV + 88 * COUNT( * ) AS col2
----
7238

skipif mysql # not compatible
query I rowsort label-856
SELECT DISTINCT COALESCE ( + + 77, + + 72, + 47 * + + 63 / + COUNT ( + 58 ) + - CAST ( COUNT ( * ) AS INTEGER ) ) * 94 + 47 / + 88 * COUNT ( * ) AS col2
----
7238

onlyif mysql # DIV for integer division: 
query I rowsort label-857
SELECT + + 51 + ( - - 76 ) DIV - 8 + + 26 AS col2
----
68

skipif mysql # not compatible
query I rowsort label-857
SELECT + + 51 + ( - - 76 ) / - 8 + + 26 AS col2
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-858
SELECT ALL + MIN( - - 9 ) / + 26 * - CASE + 35 WHEN 57 THEN - 52 - + 71 + - - 26 / - + 16 + + - 71 ELSE NULL END + - 11 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-858
SELECT ALL + MIN ( - - 9 ) / + 26 * - CASE + 35 WHEN 57 THEN - 52 - + 71 + - - 26 / - + 16 + + - 71 ELSE NULL END + - 11 AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-859
SELECT + 30 DIV 15 AS col1
----
2

skipif mysql # not compatible
query I rowsort label-859
SELECT + 30 / 15 AS col1
----
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-860
SELECT 76 * 55 + + - 16 * ( + 44 ) + + - 47 + CAST( NULL AS SIGNED ) * + COUNT( * ) * 24
----
NULL

skipif mysql # not compatible
query I rowsort label-860
SELECT 76 * 55 + + - 16 * ( + 44 ) + + - 47 + CAST ( NULL AS INTEGER ) * + COUNT ( * ) * 24
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-861
SELECT ALL - 61 DIV + - COUNT( * ) + + 88 + - - 58 AS col1, 62 + + 7 + - 12
----
207
57

skipif mysql # not compatible
query II rowsort label-861
SELECT ALL - 61 / + - COUNT ( * ) + + 88 + - - 58 AS col1, 62 + + 7 + - 12
----
207
57

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-863
SELECT DISTINCT + 68 DIV - - 91 + 44 * 70 * COUNT( * ) AS col0
----
3080

skipif mysql # not compatible
query I rowsort label-863
SELECT DISTINCT + 68 / - - 91 + 44 * 70 * COUNT ( * ) AS col0
----
3080

query II rowsort
SELECT + 66, 54 col1
----
66
54

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

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

query II rowsort
SELECT ALL + 55 AS col2, 40
----
55
40

query II rowsort
SELECT + 86 + + 97 + + 10 + + 62 + 94 AS col0, 90 AS col0
----
349
90

query I rowsort
SELECT - 51 * + 42
----
-2142

onlyif mysql # aggregate syntax: 
query I rowsort label-869
SELECT + 63 + + 57 + COUNT( * ) + - 24 AS col0
----
97

skipif mysql # not compatible
query I rowsort label-869
SELECT + 63 + + 57 + COUNT ( * ) + - 24 AS col0
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-870
SELECT ALL + 58 * COUNT( * ) / + + 27 - SUM( - - ( - - 56 ) ) * + + CASE 82 WHEN + + MAX( ALL + - 70 ) THEN NULL WHEN + 26 * + - 13 THEN - 14 + 7 END * - - COUNT( * ) * + 74 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-870
SELECT ALL + 58 * COUNT ( * ) / + + 27 - SUM ( - - ( - - 56 ) ) * + + CASE 82 WHEN + + MAX ( ALL + - 70 ) THEN NULL WHEN + 26 * + - 13 THEN - 14 + 7 END * - - COUNT ( * ) * + 74 AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-871
SELECT 33 * CAST( + CAST( NULL AS SIGNED ) AS DECIMAL ) + + - 3
----
NULL

skipif mysql # not compatible
query I rowsort label-871
SELECT 33 * CAST ( + CAST ( NULL AS INTEGER ) AS REAL ) + + - 3
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-872
SELECT - 15 * - ( - 42 ) AS col1, CAST( + 54 AS SIGNED ) AS col2
----
-630
54

skipif mysql # not compatible
query II rowsort label-872
SELECT - 15 * - ( - 42 ) AS col1, CAST ( + 54 AS INTEGER ) AS col2
----
-630
54

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-873
SELECT ALL NULLIF ( - 10, + - ( + + 9 ) * + - 28 ) * + COUNT( * ) DIV + - 54 col2
----
0

skipif mysql # not compatible
query I rowsort label-873
SELECT ALL NULLIF ( - 10, + - ( + + 9 ) * + - 28 ) * + COUNT ( * ) / + - 54 col2
----
0

query II rowsort
SELECT DISTINCT + 58 AS col1, + 85 * - 9 * - 78
----
58
59670

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-875
SELECT ALL - 80 * + 79 * - + 39 * - CASE - COUNT( * ) WHEN ( - ( 20 ) ) + + 70 * + - 82 THEN - - 53 * MAX( + 48 ) WHEN + 75 THEN NULL END * - CAST( NULL AS SIGNED ) / - 55 + + 2 - - CAST( - 46 AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-875
SELECT ALL - 80 * + 79 * - + 39 * - CASE - COUNT ( * ) WHEN ( - ( 20 ) ) + + 70 * + - 82 THEN - - 53 * MAX ( + 48 ) WHEN + 75 THEN NULL END * - CAST ( NULL AS INTEGER ) / - 55 + + 2 - - CAST ( - 46 AS INTEGER )
----
NULL

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

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

query I rowsort
SELECT ALL ( - 85 ) col1
----
-85

onlyif mysql # DIV for integer division: 
query I rowsort label-878
SELECT DISTINCT - 80 DIV - + 87
----
0

skipif mysql # not compatible
query I rowsort label-878
SELECT DISTINCT - 80 / - + 87
----
0

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-880
SELECT - 73 + MAX( ALL + 64 ) col0
----
-9

skipif mysql # not compatible
query I rowsort label-880
SELECT - 73 + MAX ( ALL + 64 ) col0
----
-9

query I rowsort
SELECT ALL - 96 * - NULLIF ( - - 7, 3 )
----
672

onlyif mysql # DIV for integer division: 
query I rowsort label-882
SELECT + - 85 DIV - 64 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-882
SELECT + - 85 / - 64 AS col1
----
1

query I rowsort
SELECT + 86 + - 19 AS col2
----
67

query I rowsort
SELECT ALL + - 11 + + 48 * - 74 AS col0
----
-3563

query I rowsort
SELECT ALL + + 44 + 50
----
94

query II rowsort
SELECT + 61 col1, ( + 83 )
----
61
83

onlyif mysql # aggregate syntax: 
query III rowsort label-887
SELECT - ( - COALESCE ( - 28, 17 ) ) + - COUNT( DISTINCT + NULLIF ( 67, + 83 * 71 ) ) - 15 AS col2, + 89 AS col0, + 81 * - + ( + 42 ) + + - 22
----
-44
89
-3424

skipif mysql # not compatible
query III rowsort label-887
SELECT - ( - COALESCE ( - 28, 17 ) ) + - COUNT ( DISTINCT + NULLIF ( 67, + 83 * 71 ) ) - 15 AS col2, + 89 AS col0, + 81 * - + ( + 42 ) + + - 22
----
-44
89
-3424

query I rowsort
SELECT 88 * + 96 * - 72 * - + 44
----
26763264

query I rowsort
SELECT 31 + + 77 + + - 14 AS col0
----
94

query I rowsort
SELECT + 98 * - - 12
----
1176

query I rowsort
SELECT DISTINCT + 78 + - 5
----
73

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-893
SELECT - 35 * - COALESCE ( - - 11, + 84, 13 DIV 26 * - 87 + - - 74 + - 93 ) * 0 + + + 77 + - MIN( ALL - 84 ), + 31 AS col2
----
161
31

skipif mysql # not compatible
query II rowsort label-893
SELECT - 35 * - COALESCE ( - - 11, + 84, 13 / 26 * - 87 + - - 74 + - 93 ) * 0 + + + 77 + - MIN ( ALL - 84 ), + 31 AS col2
----
161
31

query I rowsort
SELECT DISTINCT - + 27 + - + 44 AS col0
----
-71

onlyif mysql # DIV for integer division: 
query I rowsort label-895
SELECT 4 DIV + + 10 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-895
SELECT 4 / + + 10 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-896
SELECT ALL 87 - + COUNT( * ) + - - 90 * - - 59 + SUM( + 21 ) * 29 + - + 79 * + 15
----
4820

skipif mysql # not compatible
query I rowsort label-896
SELECT ALL 87 - + COUNT ( * ) + - - 90 * - - 59 + SUM ( + 21 ) * 29 + - + 79 * + 15
----
4820

query II rowsort
SELECT DISTINCT - 43, + 98 AS col2
----
-43
98

query I rowsort
SELECT ALL 5 * 75 * + 88 AS col0
----
33000

query II rowsort
SELECT + 66 AS col1, - 89
----
66
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-900
SELECT DISTINCT MIN( DISTINCT + NULLIF ( + + 46, + 98 * 85 ) ) - 73 * - 23
----
1725

skipif mysql # not compatible
query I rowsort label-900
SELECT DISTINCT MIN ( DISTINCT + NULLIF ( + + 46, + 98 * 85 ) ) - 73 * - 23
----
1725

query I rowsort
SELECT 0 * + 15 col0
----
0

query I rowsort
SELECT 29 * - - 75 + - 55 + - ( + 94 )
----
2026

query I rowsort
SELECT ( - 52 ) * + 60 AS col1
----
-3120

query II rowsort
SELECT 70 AS col2, 9 * - 21
----
70
-189

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

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

query III rowsort
SELECT ALL - 65 AS col1, 37 col1, 40 + 0 AS col1
----
-65
37
40

onlyif mysql # aggregate syntax: 
query I rowsort label-907
SELECT ALL - NULLIF ( + 11, 53 * + 93 + - 67 + + + 75 + + + COUNT( * ) ) AS col2
----
-11

skipif mysql # not compatible
query I rowsort label-907
SELECT ALL - NULLIF ( + 11, 53 * + 93 + - 67 + + + 75 + + + COUNT ( * ) ) AS col2
----
-11

query II rowsort
SELECT ALL - 80 AS col1, 69 * 2 + + 53
----
-80
191

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-911
SELECT ALL 85 * + + 12, 72 * COUNT( * ) + 53 + - 84 AS col1
----
1020
41

skipif mysql # not compatible
query II rowsort label-911
SELECT ALL 85 * + + 12, 72 * COUNT ( * ) + 53 + - 84 AS col1
----
1020
41

onlyif mysql # aggregate syntax: 
query II rowsort label-912
SELECT - 53 AS col1, + ( + 5 ) * - COUNT( * ) + 45 * + 68 AS col1
----
-53
3055

skipif mysql # not compatible
query II rowsort label-912
SELECT - 53 AS col1, + ( + 5 ) * - COUNT ( * ) + 45 * + 68 AS col1
----
-53
3055

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-914
SELECT CASE - MIN( - 25 ) WHEN - + 91 * 58 * + 92 + + 94 THEN COUNT( * ) WHEN + + 99 THEN ( + 92 ) END * COALESCE ( - 8, + + 53 )
----
NULL

skipif mysql # not compatible
query I rowsort label-914
SELECT CASE - MIN ( - 25 ) WHEN - + 91 * 58 * + 92 + + 94 THEN COUNT ( * ) WHEN + + 99 THEN ( + 92 ) END * COALESCE ( - 8, + + 53 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-915
SELECT DISTINCT 75 + - 3 - + + 77 * - 11 * - + ( + 46 ) + 4 * - - 43 + ( 29 ) * - COUNT( * ) AS col1
----
-38747

skipif mysql # not compatible
query I rowsort label-915
SELECT DISTINCT 75 + - 3 - + + 77 * - 11 * - + ( + 46 ) + 4 * - - 43 + ( 29 ) * - COUNT ( * ) AS col1
----
-38747

onlyif mysql # aggregate syntax: 
query I rowsort label-916
SELECT ALL + + COUNT( * ) + - CASE + + 75 WHEN - COUNT( DISTINCT + 8 ) THEN - 41 WHEN + 11 THEN + 69 END + 55 * - 80 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-916
SELECT ALL + + COUNT ( * ) + - CASE + + 75 WHEN - COUNT ( DISTINCT + 8 ) THEN - 41 WHEN + 11 THEN + 69 END + 55 * - 80 col2
----
NULL

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

query I rowsort
SELECT DISTINCT - NULLIF ( - 78, 61 ) AS col0
----
78

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-919
SELECT ALL + + 17 + + COALESCE ( - COUNT( * ), - + 96 * - CAST( 47 AS SIGNED ) - - 9 + 95 )
----
16

skipif mysql # not compatible
query I rowsort label-919
SELECT ALL + + 17 + + COALESCE ( - COUNT ( * ), - + 96 * - CAST ( 47 AS INTEGER ) - - 9 + 95 )
----
16

query I rowsort
SELECT - 90 + - + 48
----
-138

query I rowsort
SELECT ALL - 40 + - 97
----
-137

query I rowsort
SELECT 56 + - 87
----
-31

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

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

query I rowsort
SELECT 2 + 44 AS col0
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-925
SELECT ALL + NULLIF ( - 12, CASE - + 79 WHEN - - 51 THEN - COUNT( * ) WHEN ( - 38 ) THEN NULL END * + COUNT( * ) ) + + + COUNT( * ) AS col0
----
-11

skipif mysql # not compatible
query I rowsort label-925
SELECT ALL + NULLIF ( - 12, CASE - + 79 WHEN - - 51 THEN - COUNT ( * ) WHEN ( - 38 ) THEN NULL END * + COUNT ( * ) ) + + + COUNT ( * ) AS col0
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-926
SELECT DISTINCT - 91 * - 10 * - + ( - - ( - MAX( 60 ) ) ) * - 98 col2
----
-5350800

skipif mysql # not compatible
query I rowsort label-926
SELECT DISTINCT - 91 * - 10 * - + ( - - ( - MAX ( 60 ) ) ) * - 98 col2
----
-5350800

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

query I rowsort
SELECT DISTINCT + - 75 - + 72
----
-147

onlyif mysql # aggregate syntax: 
query I rowsort label-929
SELECT ALL - CASE - - 2 WHEN + 4 THEN - 29 WHEN 90 + - 20 THEN - + 64 WHEN - 30 + COUNT( * ) THEN NULL WHEN - COUNT( - 68 ) THEN NULL END * - 38
----
NULL

skipif mysql # not compatible
query I rowsort label-929
SELECT ALL - CASE - - 2 WHEN + 4 THEN - 29 WHEN 90 + - 20 THEN - + 64 WHEN - 30 + COUNT ( * ) THEN NULL WHEN - COUNT ( - 68 ) THEN NULL END * - 38
----
NULL

query I rowsort
SELECT ALL + ( - 84 ) - - - 22 * + + 47 AS col2
----
-1118

onlyif mysql # aggregate syntax: 
query I rowsort label-931
SELECT COUNT( * ) + + - 13 * + 58 col0
----
-753

skipif mysql # not compatible
query I rowsort label-931
SELECT COUNT ( * ) + + - 13 * + 58 col0
----
-753

query I rowsort
SELECT DISTINCT - + 62 * - 83 + + 47 * - + 35
----
3501

query I rowsort
SELECT 72 + COALESCE ( + 99, 67 * - NULLIF ( - 4, 93 ) + + 53, + + 24 ) - - - 20 AS col0
----
151

query I rowsort
SELECT DISTINCT - 55 * + - 23
----
1265

onlyif mysql # aggregate syntax: 
query I rowsort label-935
SELECT ALL NULLIF ( + COUNT( * ), - CASE + 0 WHEN - 45 THEN + + 33 WHEN 54 THEN + MIN( ALL - 60 ) END + 45 + - - 81 * + 32 )
----
1

skipif mysql # not compatible
query I rowsort label-935
SELECT ALL NULLIF ( + COUNT ( * ), - CASE + 0 WHEN - 45 THEN + + 33 WHEN 54 THEN + MIN ( ALL - 60 ) END + 45 + - - 81 * + 32 )
----
1

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-937
SELECT + 40 DIV + 75 + + 82 - + + 20 + - ( ( + 63 ) ) + + SUM( - ( - 78 ) ) + + 57 * - 72 DIV + - COUNT( * ) + - - COUNT( * ) * - 7 AS col2
----
4174

skipif mysql # not compatible
query I rowsort label-937
SELECT + 40 / + 75 + + 82 - + + 20 + - ( ( + 63 ) ) + + SUM ( - ( - 78 ) ) + + 57 * - 72 / + - COUNT ( * ) + - - COUNT ( * ) * - 7 AS col2
----
4174

query I rowsort
SELECT 46 * 16
----
736

onlyif mysql # aggregate syntax: 
query I rowsort label-939
SELECT DISTINCT - NULLIF ( + COUNT( * ), - 18 / 58 + - - ( - NULLIF ( + + 72, - 66 * - + 23 ) ) ) col0
----
-1

skipif mysql # not compatible
query I rowsort label-939
SELECT DISTINCT - NULLIF ( + COUNT ( * ), - 18 / 58 + - - ( - NULLIF ( + + 72, - 66 * - + 23 ) ) ) col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-940
SELECT DISTINCT 86 * + - MAX( - 60 )
----
5160

skipif mysql # not compatible
query I rowsort label-940
SELECT DISTINCT 86 * + - MAX ( - 60 )
----
5160

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

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

query I rowsort
SELECT ALL 21 * + ( - 79 ) AS col0
----
-1659

onlyif mysql # DIV for integer division: 
query I rowsort label-943
SELECT DISTINCT - 89 DIV + + 38
----
-2

skipif mysql # not compatible
query I rowsort label-943
SELECT DISTINCT - 89 / + + 38
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-944
SELECT ALL + 93 * - 5 + - COUNT( 58 )
----
-466

skipif mysql # not compatible
query I rowsort label-944
SELECT ALL + 93 * - 5 + - COUNT ( 58 )
----
-466

onlyif mysql # aggregate syntax: 
query II rowsort label-945
SELECT + 77 * COUNT( + ( + + 73 ) ) - 43 AS col1, - 41
----
34
-41

skipif mysql # not compatible
query II rowsort label-945
SELECT + 77 * COUNT ( + ( + + 73 ) ) - 43 AS col1, - 41
----
34
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-946
SELECT ALL SUM( DISTINCT - 79 ) * + MAX( 27 ) + - 20 AS col1
----
-2153

skipif mysql # not compatible
query I rowsort label-946
SELECT ALL SUM ( DISTINCT - 79 ) * + MAX ( 27 ) + - 20 AS col1
----
-2153

onlyif mysql # aggregate syntax: 
query II rowsort label-947
SELECT COUNT( DISTINCT + + 60 ), 81 AS col0
----
1
81

skipif mysql # not compatible
query II rowsort label-947
SELECT COUNT ( DISTINCT + + 60 ), 81 AS col0
----
1
81

onlyif mysql # aggregate syntax: 
query I rowsort label-948
SELECT ALL + 71 + + MAX( ALL - + 79 ) - - SUM( 60 ) * + + 74 * 30
----
133192

skipif mysql # not compatible
query I rowsort label-948
SELECT ALL + 71 + + MAX ( ALL - + 79 ) - - SUM ( 60 ) * + + 74 * 30
----
133192

onlyif mysql # aggregate syntax: 
query I rowsort label-949
SELECT + COUNT( * ) + SUM( DISTINCT 66 ) * + COUNT( * )
----
67

skipif mysql # not compatible
query I rowsort label-949
SELECT + COUNT ( * ) + SUM ( DISTINCT 66 ) * + COUNT ( * )
----
67

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-950
SELECT ALL + + COALESCE ( ( - COUNT( ALL - + CAST( COALESCE ( 76, 45 ) AS SIGNED ) ) ), - 7 ), 37 AS col1
----
-1
37

skipif mysql # not compatible
query II rowsort label-950
SELECT ALL + + COALESCE ( ( - COUNT ( ALL - + CAST ( COALESCE ( 76, 45 ) AS INTEGER ) ) ), - 7 ), 37 AS col1
----
-1
37

query I rowsort
SELECT DISTINCT + ( + 39 ) + - ( + - 33 )
----
72

query I rowsort
SELECT ALL ( 17 ) col0
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-953
SELECT - COALESCE ( COUNT( * ), - 7 + - CASE 49 WHEN - 86 THEN 89 END * 14, 7 + + 83 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-953
SELECT - COALESCE ( COUNT ( * ), - 7 + - CASE 49 WHEN - 86 THEN 89 END * 14, 7 + + 83 ) AS col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-954
SELECT + COUNT( * ) + - 50 * + - COUNT( * ) AS col1
----
51

skipif mysql # not compatible
query I rowsort label-954
SELECT + COUNT ( * ) + - 50 * + - COUNT ( * ) AS col1
----
51

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-955
SELECT ALL + 44 + - + 41 + - CAST( - + 44 AS SIGNED ) DIV - + COUNT( * ) AS col2
----
-41

skipif mysql # not compatible
query I rowsort label-955
SELECT ALL + 44 + - + 41 + - CAST ( - + 44 AS INTEGER ) / - + COUNT ( * ) AS col2
----
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-956
SELECT + NULLIF ( - + NULLIF ( MIN( - 32 ), CASE - - COUNT( * ) WHEN - 28 * + 77 * + 32 THEN 12 END * - + MAX( DISTINCT - 97 ) + + 10 ), - - 93 - - 24 + + - 68 * + + 38 ) AS col1
----
32

skipif mysql # not compatible
query I rowsort label-956
SELECT + NULLIF ( - + NULLIF ( MIN ( - 32 ), CASE - - COUNT ( * ) WHEN - 28 * + 77 * + 32 THEN 12 END * - + MAX ( DISTINCT - 97 ) + + 10 ), - - 93 - - 24 + + - 68 * + + 38 ) AS col1
----
32

query I rowsort
SELECT - + 83 + - 1 * 62
----
-145

onlyif mysql # aggregate syntax: 
query I rowsort label-958
SELECT + 10 * + 98 * + - COUNT( * ) AS col1
----
-980

skipif mysql # not compatible
query I rowsort label-958
SELECT + 10 * + 98 * + - COUNT ( * ) AS col1
----
-980

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-959
SELECT DISTINCT - CASE + + MAX( + CAST( NULL AS DECIMAL ) ) WHEN + 32 THEN NULL ELSE 46 END * - - COUNT( * )
----
-46

skipif mysql # not compatible
query I rowsort label-959
SELECT DISTINCT - CASE + + MAX ( + CAST ( NULL AS REAL ) ) WHEN + 32 THEN NULL ELSE 46 END * - - COUNT ( * )
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-960
SELECT ALL 7 * + 48 + + COUNT( * ) AS col2
----
337

skipif mysql # not compatible
query I rowsort label-960
SELECT ALL 7 * + 48 + + COUNT ( * ) AS col2
----
337

query I rowsort
SELECT DISTINCT - 1 * - 23
----
23

query I rowsort
SELECT ALL CASE + - 59 WHEN + 69 THEN + + 46 / + 8 + - 91 + - ( + 35 ) + + 86 ELSE NULL END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-963
SELECT + - 62 DIV ( 19 ) AS col2
----
-3

skipif mysql # not compatible
query I rowsort label-963
SELECT + - 62 / ( 19 ) AS col2
----
-3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-964
SELECT - - 57 * - CASE + CASE 70 WHEN COUNT( * ) * COUNT( DISTINCT + 77 ) - ( - MAX( ALL + + 34 ) ) + - 45 + 97 + - 59 * 57 / + - 73 - + + 14 * 61 + CAST( - 54 - - 66 AS SIGNED ) THEN - CAST( - MAX( - 78 ) AS SIGNED ) + + 77 END WHEN CAST( 78 AS SIGNED ) + - AVG ( 20 ) THEN ( 5 ) * - CAST( NULL AS SIGNED ) END + - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-964
SELECT - - 57 * - CASE + CASE 70 WHEN COUNT ( * ) * COUNT ( DISTINCT + 77 ) - ( - MAX ( ALL + + 34 ) ) + - 45 + 97 + - 59 * 57 / + - 73 - + + 14 * 61 + CAST ( - 54 - - 66 AS INTEGER ) THEN - CAST ( - MAX ( - 78 ) AS INTEGER ) + + 77 END WHEN CAST ( 78 AS INTEGER ) + - AVG ( 20 ) THEN ( 5 ) * - CAST ( NULL AS INTEGER ) END + - COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-965
SELECT + + 46 + - - COUNT( - COALESCE ( 83, + 99 ) )
----
47

skipif mysql # not compatible
query I rowsort label-965
SELECT + + 46 + - - COUNT ( - COALESCE ( 83, + 99 ) )
----
47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-966
SELECT - 6, - CAST( NULL AS SIGNED ) * - COUNT( * ) + - 41 + 50 AS col2
----
-6
NULL

skipif mysql # not compatible
query II rowsort label-966
SELECT - 6, - CAST ( NULL AS INTEGER ) * - COUNT ( * ) + - 41 + 50 AS col2
----
-6
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-967
SELECT DISTINCT + 83 DIV - 21
----
-3

skipif mysql # not compatible
query I rowsort label-967
SELECT DISTINCT + 83 / - 21
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-968
SELECT - 28 + ( COUNT( * ) ) AS col2
----
-27

skipif mysql # not compatible
query I rowsort label-968
SELECT - 28 + ( COUNT ( * ) ) AS col2
----
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-969
SELECT ALL + MAX( DISTINCT - 45 ) * + 2
----
-90

skipif mysql # not compatible
query I rowsort label-969
SELECT ALL + MAX ( DISTINCT - 45 ) * + 2
----
-90

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

onlyif mysql # DIV for integer division: 
query I rowsort label-971
SELECT - 86 * 87 * - - COALESCE ( - - 37, - ( + 75 ) + - 18 DIV + 41, + 23 )
----
-276834

skipif mysql # not compatible
query I rowsort label-971
SELECT - 86 * 87 * - - COALESCE ( - - 37, - ( + 75 ) + - 18 / + 41, + 23 )
----
-276834

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-972
SELECT ALL + 49 * 92 + ( - 11 ) * - CAST( NULL AS SIGNED ) / COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-972
SELECT ALL + 49 * 92 + ( - 11 ) * - CAST ( NULL AS INTEGER ) / COUNT ( * )
----
NULL

query I rowsort
SELECT DISTINCT - 93 * + 8 AS col2
----
-744

query I rowsort
SELECT - 50 * - 72
----
3600

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-975
SELECT ALL 35 * + 51 + + CASE CASE 19 WHEN + NULLIF ( 51, + COUNT( DISTINCT + - ( 41 ) ) ) / + + 33 THEN NULL WHEN 91 + ( 17 ) + + + ( + 74 ) * + 0 THEN NULL WHEN - 99 * CAST( NULL AS SIGNED ) THEN NULL ELSE + NULLIF ( CAST( 34 AS SIGNED ), AVG ( DISTINCT + 44 ) * 1 ) * 22 + - 1 END WHEN - ( MIN( DISTINCT - 61 ) ) THEN 88 ELSE NULLIF ( + 9, + COUNT( * ) * + 26 ) + + 64 END
----
1858

skipif mysql # not compatible
query I rowsort label-975
SELECT ALL 35 * + 51 + + CASE CASE 19 WHEN + NULLIF ( 51, + COUNT ( DISTINCT + - ( 41 ) ) ) / + + 33 THEN NULL WHEN 91 + ( 17 ) + + + ( + 74 ) * + 0 THEN NULL WHEN - 99 * CAST ( NULL AS INTEGER ) THEN NULL ELSE + NULLIF ( CAST ( 34 AS INTEGER ), AVG ( DISTINCT + 44 ) * 1 ) * 22 + - 1 END WHEN - ( MIN ( DISTINCT - 61 ) ) THEN 88 ELSE NULLIF ( + 9, + COUNT ( * ) * + 26 ) + + 64 END
----
1858

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-976
SELECT COALESCE ( + NULLIF ( 90, + 60 * - 37 ), - ( NULLIF ( + ( - CASE + - 0 WHEN - CASE + 1 WHEN - - 18 + ( + 94 ) THEN - COUNT( * ) END THEN NULL WHEN + 4 * 4 - 84 THEN 22 * - 46 WHEN - 99 * ( - 24 ) THEN - ( + CAST( NULL AS SIGNED ) ) DIV + 29 END ), 40 DIV - 61 + SUM( - 26 ) ) ) ) AS col0
----
90

skipif mysql # not compatible
query I rowsort label-976
SELECT COALESCE ( + NULLIF ( 90, + 60 * - 37 ), - ( NULLIF ( + ( - CASE + - 0 WHEN - CASE + 1 WHEN - - 18 + ( + 94 ) THEN - COUNT ( * ) END THEN NULL WHEN + 4 * 4 - 84 THEN 22 * - 46 WHEN - 99 * ( - 24 ) THEN - ( + CAST ( NULL AS INTEGER ) ) / + 29 END ), 40 / - 61 + SUM ( - 26 ) ) ) ) AS col0
----
90

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

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

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

query I rowsort
SELECT DISTINCT 31 * 60
----
1860

query I rowsort
SELECT ALL + 84 * + - 58
----
-4872

query I rowsort
SELECT - - 68 - - 17 AS col2
----
85

onlyif mysql # aggregate syntax: 
query II rowsort label-982
SELECT + 28 * - + 74 * - COUNT( * ) AS col0, 48 AS col2
----
2072
48

skipif mysql # not compatible
query II rowsort label-982
SELECT + 28 * - + 74 * - COUNT ( * ) AS col0, 48 AS col2
----
2072
48

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-983
SELECT ALL - 24 * - + MIN( + CAST( NULL AS SIGNED ) ) * + - 81 + 44
----
NULL

skipif mysql # not compatible
query I rowsort label-983
SELECT ALL - 24 * - + MIN ( + CAST ( NULL AS INTEGER ) ) * + - 81 + 44
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-984
SELECT - 68 AS col1, 44 * 43 * + COALESCE ( 15, - - MAX( + 30 ) * 34 * - 66 * + - COUNT( DISTINCT 78 ) ) AS col1
----
-68
28380

skipif mysql # not compatible
query II rowsort label-984
SELECT - 68 AS col1, 44 * 43 * + COALESCE ( 15, - - MAX ( + 30 ) * 34 * - 66 * + - COUNT ( DISTINCT 78 ) ) AS col1
----
-68
28380

query I rowsort
SELECT + 8 - - 16
----
24

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-986
SELECT ALL - NULLIF ( + CAST( NULL AS DECIMAL ), - 66 * + ( - + 14 ) * 16 + + + 79 ) * - 62 - + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-986
SELECT ALL - NULLIF ( + CAST ( NULL AS REAL ), - 66 * + ( - + 14 ) * 16 + + + 79 ) * - 62 - + COUNT ( * )
----
NULL

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

skipif mysql # not compatible
query I rowsort label-987
SELECT ALL + COUNT ( * ) / MIN ( ALL - CAST ( NULL AS INTEGER ) )
----
NULL

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

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

query I rowsort
SELECT + - 61 * - 66
----
4026

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

onlyif mysql # aggregate syntax: 
query I rowsort label-991
SELECT + + SUM( ALL + 60 ) + - 67 * - - 41 * + 24 AS col2
----
-65868

skipif mysql # not compatible
query I rowsort label-991
SELECT + + SUM ( ALL + 60 ) + - 67 * - - 41 * + 24 AS col2
----
-65868

query II rowsort
SELECT + 9 col1, 81
----
9
81

onlyif mysql # aggregate syntax: 
query I rowsort label-993
SELECT + - 17 + - 23 + ( - MAX( - 92 ) )
----
52

skipif mysql # not compatible
query I rowsort label-993
SELECT + - 17 + - 23 + ( - MAX ( - 92 ) )
----
52

query I rowsort
SELECT + 71 - - 51 + + 63 + + 90 AS col2
----
275

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-995
SELECT + 11 * + 68 * + + 96 + CAST( + - 94 AS SIGNED ) col1
----
71714

skipif mysql # not compatible
query I rowsort label-995
SELECT + 11 * + 68 * + + 96 + CAST ( + - 94 AS INTEGER ) col1
----
71714

onlyif mysql # aggregate syntax: 
query II rowsort label-996
SELECT DISTINCT COUNT( DISTINCT - 31 ) * + 2 + + 84 AS col2, ( + 50 ) * 75
----
86
3750

skipif mysql # not compatible
query II rowsort label-996
SELECT DISTINCT COUNT ( DISTINCT - 31 ) * + 2 + + 84 AS col2, ( + 50 ) * 75
----
86
3750

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-997
SELECT ALL NULLIF ( + - 48, + 25 * - 37 * COUNT( * ) / 18 + - CASE 14 WHEN + NULLIF ( - 31, + 62 ) * 76 * + - COUNT( * ) * - NULLIF ( - COALESCE ( AVG ( - + 41 ), - 88, 88 ), + COALESCE ( + COUNT( * ), - 37 + - 10, MAX( ALL 12 ) ) ) + 45 THEN 69 ELSE - CAST( NULL AS DECIMAL ) END + 99 * - 58 * 82 + - 72 ) col1
----
-48

skipif mysql # not compatible
query I rowsort label-997
SELECT ALL NULLIF ( + - 48, + 25 * - 37 * COUNT ( * ) / 18 + - CASE 14 WHEN + NULLIF ( - 31, + 62 ) * 76 * + - COUNT ( * ) * - NULLIF ( - COALESCE ( AVG ( - + 41 ), - 88, 88 ), + COALESCE ( + COUNT ( * ), - 37 + - 10, MAX ( ALL 12 ) ) ) + 45 THEN 69 ELSE - CAST ( NULL AS REAL ) END + 99 * - 58 * 82 + - 72 ) col1
----
-48

query I rowsort
SELECT DISTINCT + 52 + + NULLIF ( + 79, + 86 ) AS col1
----
131

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-999
SELECT + 69 + - - CAST( - 36 AS SIGNED )
----
33

skipif mysql # not compatible
query I rowsort label-999
SELECT + 69 + - - CAST ( - 36 AS INTEGER )
----
33

query I rowsort
SELECT + 98 + - 96 AS col1
----
2

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1001
SELECT DISTINCT COUNT( - - 10 ) AS col2, - COALESCE ( + 85, - 10 ) DIV 24 + + - 70 + - MIN( + 23 ) - 66 * 5 + 7 + - 89 AS col2
----
1
-508

skipif mysql # not compatible
query II rowsort label-1001
SELECT DISTINCT COUNT ( - - 10 ) AS col2, - COALESCE ( + 85, - 10 ) / 24 + + - 70 + - MIN ( + 23 ) - 66 * 5 + 7 + - 89 AS col2
----
1
-508

query I rowsort
SELECT + 33 * 68
----
2244

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1003
SELECT ALL + NULLIF ( - COUNT( * ), + - CAST( NULL AS SIGNED ) ) AS col2
----
-1

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1004
SELECT DISTINCT 87 DIV + ( - COUNT( * ) ) + + + 68 * - 6
----
-495

skipif mysql # not compatible
query I rowsort label-1004
SELECT DISTINCT 87 / + ( - COUNT ( * ) ) + + + 68 * - 6
----
-495

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

skipif mysql # not compatible
query I rowsort label-1005
SELECT ALL + 35 + ( + - COUNT ( * ) ) AS col2
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-1006
SELECT ALL - 71 + + MIN( + + 73 ) * - + COUNT( * ) * 27 * - - 20 AS col1
----
-39491

skipif mysql # not compatible
query I rowsort label-1006
SELECT ALL - 71 + + MIN ( + + 73 ) * - + COUNT ( * ) * 27 * - - 20 AS col1
----
-39491

query I rowsort
SELECT 54 * + 37 AS col2
----
1998

onlyif mysql # aggregate syntax: 
query I rowsort label-1008
SELECT DISTINCT COUNT( 97 ) + - 73
----
-72

skipif mysql # not compatible
query I rowsort label-1008
SELECT DISTINCT COUNT ( 97 ) + - 73
----
-72

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1010
SELECT ALL - COUNT( * ) * + 24 col1
----
-24

skipif mysql # not compatible
query I rowsort label-1010
SELECT ALL - COUNT ( * ) * + 24 col1
----
-24

query I rowsort
SELECT DISTINCT - 90 + - - 84 AS col0
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-1012
SELECT + - NULLIF ( COUNT( * ), + 82 / 22 + 7 + - 22 * + 1 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-1012
SELECT + - NULLIF ( COUNT ( * ), + 82 / 22 + 7 + - 22 * + 1 ) AS col1
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1013
SELECT - 43 + + 19 DIV + 75 + + 81 * + CAST( COUNT( * ) AS SIGNED ) AS col2
----
38

skipif mysql # not compatible
query I rowsort label-1013
SELECT - 43 + + 19 / + 75 + + 81 * + CAST ( COUNT ( * ) AS INTEGER ) AS col2
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-1014
SELECT ALL + 28 * 98 * - 37 * + 96 - - MAX( ALL ( 46 ) ) + 81 AS col0
----
-9746561

skipif mysql # not compatible
query I rowsort label-1014
SELECT ALL + 28 * 98 * - 37 * + 96 - - MAX ( ALL ( 46 ) ) + 81 AS col0
----
-9746561

query I rowsort
SELECT + 93 * + - 10 * 82 - - + 0 AS col0
----
-76260

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1016
SELECT - COUNT( * ) * + 13 + - ( + + AVG ( DISTINCT + 46 ) ) * - + CASE 80 WHEN + - COUNT( ALL - 84 ) THEN + MAX( 77 ) / - 24 + + + MAX( DISTINCT 12 ) + - 64 WHEN - CAST( 99 AS SIGNED ) * + - ( 58 ) * AVG ( + 37 ) THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1016
SELECT - COUNT ( * ) * + 13 + - ( + + AVG ( DISTINCT + 46 ) ) * - + CASE 80 WHEN + - COUNT ( ALL - 84 ) THEN + MAX ( 77 ) / - 24 + + + MAX ( DISTINCT 12 ) + - 64 WHEN - CAST ( 99 AS INTEGER ) * + - ( 58 ) * AVG ( + 37 ) THEN NULL END
----
NULL

query I rowsort
SELECT ALL - + 97 - + 99 * + - ( - 48 )
----
-4849

onlyif mysql # aggregate syntax: 
query II rowsort label-1018
SELECT + + 33 * - - 68 + COUNT( * ) + 46, + 85 AS col1
----
2291
85

skipif mysql # not compatible
query II rowsort label-1018
SELECT + + 33 * - - 68 + COUNT ( * ) + 46, + 85 AS col1
----
2291
85

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1019
SELECT DISTINCT - CAST( - - 5 AS SIGNED ) AS col1, + NULLIF ( + 6, - 76 ) AS col0
----
-5
6

skipif mysql # not compatible
query II rowsort label-1019
SELECT DISTINCT - CAST ( - - 5 AS INTEGER ) AS col1, + NULLIF ( + 6, - 76 ) AS col0
----
-5
6

query I rowsort
SELECT 31 + 56 AS col2
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-1021
SELECT CASE - + SUM( - - 79 ) WHEN NULLIF ( + 10, - COUNT( * ) ) THEN + + 58 WHEN 27 * - 51 + - 24 + - - COUNT( * ) THEN - 63 WHEN - + 85 THEN - 35 * + 64 ELSE NULL END + 33 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1021
SELECT CASE - + SUM ( - - 79 ) WHEN NULLIF ( + 10, - COUNT ( * ) ) THEN + + 58 WHEN 27 * - 51 + - 24 + - - COUNT ( * ) THEN - 63 WHEN - + 85 THEN - 35 * + 64 ELSE NULL END + 33 AS col1
----
NULL

query I rowsort
SELECT 8 * 84 col2
----
672

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1023
SELECT DISTINCT + 68 * - + 36 - + + 43 * - - 37 AS col0, - AVG ( - + 66 ) + + NULLIF ( - 40, + 45 ) * - 22 * + ( - - 49 ) - + CAST( NULL AS SIGNED ) + - 48 + - 27 AS col1
----
-4039
NULL

skipif mysql # not compatible
query II rowsort label-1023
SELECT DISTINCT + 68 * - + 36 - + + 43 * - - 37 AS col0, - AVG ( - + 66 ) + + NULLIF ( - 40, + 45 ) * - 22 * + ( - - 49 ) - + CAST ( NULL AS INTEGER ) + - 48 + - 27 AS col1
----
-4039
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1024
SELECT ALL + - 43 * COUNT( * ) + 35 + + + MAX( DISTINCT - - COALESCE ( - 68, + 0 ) ) - - 65 * 67 + - MIN( ALL + + 69 )
----
4210

skipif mysql # not compatible
query I rowsort label-1024
SELECT ALL + - 43 * COUNT ( * ) + 35 + + + MAX ( DISTINCT - - COALESCE ( - 68, + 0 ) ) - - 65 * 67 + - MIN ( ALL + + 69 )
----
4210

onlyif mysql # aggregate syntax: 
query I rowsort label-1025
SELECT - 26 * - 78 * - + 19 * - COUNT( * ) + + 19 * - 96 AS col1
----
36708

skipif mysql # not compatible
query I rowsort label-1025
SELECT - 26 * - 78 * - + 19 * - COUNT ( * ) + + 19 * - 96 AS col1
----
36708

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1026
SELECT 88 DIV - COALESCE ( + - 81, 1 * + 56 * 57, + COUNT( * ) DIV 75, + 5 * - 15 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-1026
SELECT 88 / - COALESCE ( + - 81, 1 * + 56 * 57, + COUNT ( * ) / 75, + 5 * - 15 ) AS col1
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1027
SELECT ALL SUM( ALL - CAST( NULL AS SIGNED ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1027
SELECT ALL SUM ( ALL - CAST ( NULL AS INTEGER ) ) AS col2
----
NULL

query I rowsort
SELECT ALL 11 + - 90
----
-79

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1029
SELECT DISTINCT + COALESCE ( + 84, - + CAST( NULL AS SIGNED ) ) + 45 * 57 * 89 * + - 41
----
-9359601

skipif mysql # not compatible
query I rowsort label-1029
SELECT DISTINCT + COALESCE ( + 84, - + CAST ( NULL AS INTEGER ) ) + 45 * 57 * 89 * + - 41
----
-9359601

query I rowsort
SELECT DISTINCT - 65 + - 48 AS col0
----
-113

onlyif mysql # aggregate syntax: 
query I rowsort label-1031
SELECT COUNT( * ) * 83 * - COUNT( * ) AS col2
----
-83

skipif mysql # not compatible
query I rowsort label-1031
SELECT COUNT ( * ) * 83 * - COUNT ( * ) AS col2
----
-83

query I rowsort
SELECT DISTINCT + 2 + + 22
----
24

query I rowsort
SELECT DISTINCT 22 + 83 + + + 53 + 96 - - 25 + + 89 + - COALESCE ( 31, - 24, NULLIF ( - 76, + 38 + 51 + - 1 ) + + + 72 + 28 * 9 * + - 85 ) col2
----
337

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

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

query I rowsort
SELECT DISTINCT 27 + 79
----
106

query I rowsort
SELECT DISTINCT 3 * - - 64 AS col2
----
192

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1038
SELECT ALL 21 * CASE ( - 22 ) WHEN CAST( + COUNT( * ) AS SIGNED ) * + ( 4 ) * + MIN( ALL + - 84 ) * + + 10 / - SUM( + 56 ) + - 98 THEN + + 14 * + 64 * - 60 + + 56 + + ( ( - 92 ) ) - - 72 ELSE NULL END * - CAST( 15 AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-1038
SELECT ALL 21 * CASE ( - 22 ) WHEN CAST ( + COUNT ( * ) AS INTEGER ) * + ( 4 ) * + MIN ( ALL + - 84 ) * + + 10 / - SUM ( + 56 ) + - 98 THEN + + 14 * + 64 * - 60 + + 56 + + ( ( - 92 ) ) - - 72 ELSE NULL END * - CAST ( 15 AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1039
SELECT ( - CASE + 76 WHEN - ( - 91 ) + + COUNT( 48 ) * + - 49 / + + COALESCE ( + 4, 95 * 68 ) THEN NULL WHEN - 63 THEN - 0 + - 13 END ) + + 17
----
NULL

skipif mysql # not compatible
query I rowsort label-1039
SELECT ( - CASE + 76 WHEN - ( - 91 ) + + COUNT ( 48 ) * + - 49 / + + COALESCE ( + 4, 95 * 68 ) THEN NULL WHEN - 63 THEN - 0 + - 13 END ) + + 17
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1040
SELECT - 36 AS col2, - COUNT( 13 ) + + 37 + + 24 * 72 * + 7 AS col0
----
-36
12132

skipif mysql # not compatible
query II rowsort label-1040
SELECT - 36 AS col2, - COUNT ( 13 ) + + 37 + + 24 * 72 * + 7 AS col0
----
-36
12132

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1041
SELECT 40 DIV 10 * + 39 + SUM( DISTINCT + 9 ) AS col0, - COUNT( * ) + + 37 * + 40
----
165
1479

skipif mysql # not compatible
query II rowsort label-1041
SELECT 40 / 10 * + 39 + SUM ( DISTINCT + 9 ) AS col0, - COUNT ( * ) + + 37 * + 40
----
165
1479

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1042
SELECT CAST( - + 29 AS SIGNED ) * - - 4, + 45 AS col1
----
-116
45

skipif mysql # not compatible
query II rowsort label-1042
SELECT CAST ( - + 29 AS INTEGER ) * - - 4, + 45 AS col1
----
-116
45

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1043
SELECT ALL - COALESCE ( SUM( + NULLIF ( + CAST( NULL AS SIGNED ), + ( - + 80 ) - - 88 + + 11 + + 80 + - 61 * - + 62 * - ( - 56 ) ) ), + - CASE 15 WHEN + 86 THEN + - 55 END * + 71 + + 1 + - 2, - 14 * + 66 + 51 * 70 )
----
-2646

skipif mysql # not compatible
query I rowsort label-1043
SELECT ALL - COALESCE ( SUM ( + NULLIF ( + CAST ( NULL AS INTEGER ), + ( - + 80 ) - - 88 + + 11 + + 80 + - 61 * - + 62 * - ( - 56 ) ) ), + - CASE 15 WHEN + 86 THEN + - 55 END * + 71 + + 1 + - 2, - 14 * + 66 + 51 * 70 )
----
-2646

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

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

query I rowsort
SELECT ALL 2 * 75 * + 77 AS col2
----
11550

onlyif mysql # aggregate syntax: 
query I rowsort label-1046
SELECT 86 + - NULLIF ( COUNT( * ), + 96 * - 53 ) col2
----
85

skipif mysql # not compatible
query I rowsort label-1046
SELECT 86 + - NULLIF ( COUNT ( * ), + 96 * - 53 ) col2
----
85

query I rowsort
SELECT 89 * CASE + + 60 WHEN 32 THEN NULL WHEN + 49 THEN - + 3 - 97 WHEN + 16 THEN NULL END
----
NULL

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1049
SELECT ALL - + 95 DIV - 46
----
2

skipif mysql # not compatible
query I rowsort label-1049
SELECT ALL - + 95 / - 46
----
2

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

skipif mysql # not compatible
query II rowsort label-1050
SELECT - 14 col1, ( COUNT ( * ) ) AS col2
----
-14
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1051
SELECT DISTINCT - 74 * - MIN( - 97 ) + - 97
----
-7275

skipif mysql # not compatible
query I rowsort label-1051
SELECT DISTINCT - 74 * - MIN ( - 97 ) + - 97
----
-7275

query I rowsort
SELECT ALL - 41 * - - 97 * + ( + + 72 ) AS col1
----
-286344

query I rowsort
SELECT 33 - + - 21
----
54

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1054
SELECT 77 / - 49 * CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1054
SELECT 77 / - 49 * CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT DISTINCT - - 53 * 78 AS col1
----
4134

onlyif mysql # aggregate syntax: 
query I rowsort label-1056
SELECT - ( - 9 ) - 8 + - - 6 - COUNT( * ) * + 19 - - - 34 * + 65 + + 88 + 64 + - + 62 AS col1
----
-2132

skipif mysql # not compatible
query I rowsort label-1056
SELECT - ( - 9 ) - 8 + - - 6 - COUNT ( * ) * + 19 - - - 34 * + 65 + + 88 + 64 + - + 62 AS col1
----
-2132

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

skipif mysql # not compatible
query I rowsort label-1057
SELECT COUNT ( 66 )
----
1

query II rowsort
SELECT + 37, 81 AS col2
----
37
81

onlyif mysql # aggregate syntax: 
query I rowsort label-1059
SELECT MIN( ALL + + 17 ) AS col2
----
17

skipif mysql # not compatible
query I rowsort label-1059
SELECT MIN ( ALL + + 17 ) AS col2
----
17

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1060
SELECT + ( + 83 ) * + MAX( ALL + 83 ) * 10 + + 27 * 70 DIV 22 * + 99
----
77305

skipif mysql # not compatible
query I rowsort label-1060
SELECT + ( + 83 ) * + MAX ( ALL + 83 ) * 10 + + 27 * 70 / 22 * + 99
----
77305

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

skipif mysql # not compatible
query I rowsort label-1061
SELECT ALL - COUNT ( * ) + - ( + 90 ) + + + 87 AS col1
----
-4

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1063
SELECT ALL - 39 + - COUNT( - CASE - 92 WHEN + ( - + 98 ) * - + 21 * 5 THEN + CASE ( 61 ) WHEN + 25 THEN - 70 - - + 89 END END ) + + ( + + MIN( DISTINCT - ( - + 97 ) ) ) AS col1
----
58

skipif mysql # not compatible
query I rowsort label-1063
SELECT ALL - 39 + - COUNT ( - CASE - 92 WHEN + ( - + 98 ) * - + 21 * 5 THEN + CASE ( 61 ) WHEN + 25 THEN - 70 - - + 89 END END ) + + ( + + MIN ( DISTINCT - ( - + 97 ) ) ) AS col1
----
58

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1065
SELECT ALL + NULLIF ( - + 68, 23 ) + - 26 - NULLIF ( COUNT( * ), - 30 )
----
-95

skipif mysql # not compatible
query I rowsort label-1065
SELECT ALL + NULLIF ( - + 68, 23 ) + - 26 - NULLIF ( COUNT ( * ), - 30 )
----
-95

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1067
SELECT - 59, + 16 * MIN( ALL 41 ) DIV 16 DIV - COUNT( * ) AS col1
----
-59
-41

skipif mysql # not compatible
query II rowsort label-1067
SELECT - 59, + 16 * MIN ( ALL 41 ) / 16 / - COUNT ( * ) AS col1
----
-59
-41

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

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

query I rowsort
SELECT 19 + 52 + - 36
----
35

query II rowsort
SELECT ALL - ( + - 86 ) * - 40 + 63 AS col2, 76 AS col1
----
-3377
76

query I rowsort
SELECT DISTINCT + 89 + - 27 AS col0
----
62

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

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

query II rowsort
SELECT 62 AS col0, 31 - + 80
----
62
-49

query I rowsort
SELECT DISTINCT + 71 + 34 + - ( + + 76 )
----
29

query I rowsort
SELECT ALL 21 + + - 84
----
-63

query II rowsort
SELECT 43 AS col0, 19
----
43
19

query II rowsort
SELECT DISTINCT 33, - 9 * - 83 + - + 45 + - 76 AS col1
----
33
626

onlyif mysql # aggregate syntax: 
query I rowsort label-1078
SELECT + 79 + + - SUM( ALL + + 38 )
----
41

skipif mysql # not compatible
query I rowsort label-1078
SELECT + 79 + + - SUM ( ALL + + 38 )
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-1079
SELECT ALL COALESCE ( + SUM( DISTINCT - 95 ), + 15, 81 ) AS col0
----
-95

skipif mysql # not compatible
query I rowsort label-1079
SELECT ALL COALESCE ( + SUM ( DISTINCT - 95 ), + 15, 81 ) AS col0
----
-95

query I rowsort
SELECT DISTINCT NULLIF ( + 35, 15 )
----
35

onlyif mysql # aggregate syntax: 
query II rowsort label-1081
SELECT ALL 92, - NULLIF ( - + 73, - MAX( ALL ( + 97 ) ) * + 46 + + - 16 - NULLIF ( - 27, 76 * + 45 - - 91 ) ) col2
----
92
73

skipif mysql # not compatible
query II rowsort label-1081
SELECT ALL 92, - NULLIF ( - + 73, - MAX ( ALL ( + 97 ) ) * + 46 + + - 16 - NULLIF ( - 27, 76 * + 45 - - 91 ) ) col2
----
92
73

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1082
SELECT 73, - 26 DIV + COUNT( * ) AS col1
----
73
-26

skipif mysql # not compatible
query II rowsort label-1082
SELECT 73, - 26 / + COUNT ( * ) AS col1
----
73
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-1083
SELECT CASE + + 34 WHEN - + ( 93 ) + MAX( - 8 ) * COALESCE ( COUNT( * ), - 81 ) + + + 73 + - + 30 * 41 / - 56 * 76 THEN - - NULLIF ( - 86, + 23 ) - + COUNT( * ) + + - 30 ELSE + + ( - + 93 ) + - 47 END
----
-140

skipif mysql # not compatible
query I rowsort label-1083
SELECT CASE + + 34 WHEN - + ( 93 ) + MAX ( - 8 ) * COALESCE ( COUNT ( * ), - 81 ) + + + 73 + - + 30 * 41 / - 56 * 76 THEN - - NULLIF ( - 86, + 23 ) - + COUNT ( * ) + + - 30 ELSE + + ( - + 93 ) + - 47 END
----
-140

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

query I rowsort
SELECT ALL 78 * - 35 AS col1
----
-2730

query II rowsort
SELECT - 36 AS col1, 1 - - + 62 AS col0
----
-36
63

query I rowsort
SELECT + + 56 * + + NULLIF ( - 76, 78 ) AS col2
----
-4256

query I rowsort
SELECT + 74 + + 4
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-1089
SELECT ALL 44 * COUNT( * ) * + 41
----
1804

skipif mysql # not compatible
query I rowsort label-1089
SELECT ALL 44 * COUNT ( * ) * + 41
----
1804

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

query I rowsort
SELECT + 30 * + 48 * - 51 + + + 4
----
-73436

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

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

query I rowsort
SELECT + - 79 + - 68 * - 78
----
5225

query I rowsort
SELECT + 34 * 60 * - 81 + - 90 - + 13 AS col1
----
-165343

onlyif mysql # aggregate syntax: 
query II rowsort label-1095
SELECT 52 AS col0, - 65 + - MIN( DISTINCT 87 )
----
52
-152

skipif mysql # not compatible
query II rowsort label-1095
SELECT 52 AS col0, - 65 + - MIN ( DISTINCT 87 )
----
52
-152

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1096
SELECT + + COALESCE ( 90, 37 DIV - 52 + + SUM( - - CAST( - + 82 AS SIGNED ) ) + - 95 * NULLIF ( - + CAST( NULL AS SIGNED ), - 3 ) DIV + 98, 37 ) + + COUNT( * ) + + - 67 AS col0
----
24

skipif mysql # not compatible
query I rowsort label-1096
SELECT + + COALESCE ( 90, 37 / - 52 + + SUM ( - - CAST ( - + 82 AS INTEGER ) ) + - 95 * NULLIF ( - + CAST ( NULL AS INTEGER ), - 3 ) / + 98, 37 ) + + COUNT ( * ) + + - 67 AS col0
----
24

query I rowsort
SELECT - - 98 - + 23 + + 68 + - 46
----
97

query II rowsort
SELECT ALL + 81 AS col2, + 15 AS col2
----
81
15

onlyif mysql # aggregate syntax: 
query I rowsort label-1099
SELECT 29 * + - COALESCE ( + 78, 61 ) + + MAX( DISTINCT 60 ) * + + 86 AS col1
----
2898

skipif mysql # not compatible
query I rowsort label-1099
SELECT 29 * + - COALESCE ( + 78, 61 ) + + MAX ( DISTINCT 60 ) * + + 86 AS col1
----
2898

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

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-1101
SELECT DISTINCT + + COUNT( * ) AS col2, + CASE 15 WHEN - - 46 THEN NULL WHEN CAST( NULLIF ( 44, - 19 ) AS DECIMAL ) THEN 82 * 6 + + 30 ELSE NULL END + - - 40 AS col1
----
1
NULL

skipif mysql # not compatible
query II rowsort label-1101
SELECT DISTINCT + + COUNT ( * ) AS col2, + CASE 15 WHEN - - 46 THEN NULL WHEN CAST ( NULLIF ( 44, - 19 ) AS REAL ) THEN 82 * 6 + + 30 ELSE NULL END + - - 40 AS col1
----
1
NULL

query II rowsort
SELECT 89 col1, + NULLIF ( - + 65, AVG ( DISTINCT - 7 ) * + 23 ) - - 82 AS col2
----
89
17

onlyif mysql # aggregate syntax: 
query I rowsort label-1103
SELECT DISTINCT + + 9 * 54 + - 26 + - - COUNT( * )
----
461

skipif mysql # not compatible
query I rowsort label-1103
SELECT DISTINCT + + 9 * 54 + - 26 + - - COUNT ( * )
----
461

query II rowsort
SELECT ALL + + 30, 66 * + CASE - - 84 WHEN - - 49 * + 71 THEN + 4 END * - 97 * - 32 + - 50 * - 78 col2
----
30
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1105
SELECT ALL + COALESCE ( + + ( + 25 ), - MAX( - + 78 ) * - 94, - - 26 ) * CASE + 39 WHEN - + 32 THEN NULL WHEN + 58 THEN - 8 END + + CAST( NULL AS DECIMAL ) + + 23
----
NULL

skipif mysql # not compatible
query I rowsort label-1105
SELECT ALL + COALESCE ( + + ( + 25 ), - MAX ( - + 78 ) * - 94, - - 26 ) * CASE + 39 WHEN - + 32 THEN NULL WHEN + 58 THEN - 8 END + + CAST ( NULL AS REAL ) + + 23
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1106
SELECT + COALESCE ( 98, COUNT( * ) * + ( + - 37 ), 8 ) + - 13 col2
----
85

skipif mysql # not compatible
query I rowsort label-1106
SELECT + COALESCE ( 98, COUNT ( * ) * + ( + - 37 ), 8 ) + - 13 col2
----
85

query I rowsort
SELECT ALL + + 44 * 90 * 99 + - + 19 AS col0
----
392021

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1109
SELECT - 18 + + 95 DIV + - 69 DIV - - COUNT( * ) AS col1
----
-19

skipif mysql # not compatible
query I rowsort label-1109
SELECT - 18 + + 95 / + - 69 / - - COUNT ( * ) AS col1
----
-19

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1111
SELECT + 57 DIV + + 4 AS col0
----
14

skipif mysql # not compatible
query I rowsort label-1111
SELECT + 57 / + + 4 AS col0
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-1112
SELECT - MIN( ALL 45 ) * + 64 * - SUM( DISTINCT - + 98 ) AS col2
----
-282240

skipif mysql # not compatible
query I rowsort label-1112
SELECT - MIN ( ALL 45 ) * + 64 * - SUM ( DISTINCT - + 98 ) AS col2
----
-282240

onlyif mysql # DIV for integer division: 
query I rowsort label-1113
SELECT - 39 + - 29 - + 85 DIV - COALESCE ( + 6, - 21 DIV - 95 * 46 ) + - 25
----
-79

skipif mysql # not compatible
query I rowsort label-1113
SELECT - 39 + - 29 - + 85 / - COALESCE ( + 6, - 21 / - 95 * 46 ) + - 25
----
-79

query I rowsort
SELECT ALL - 48 * - 50
----
2400

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1117
SELECT DISTINCT NULLIF ( 39, - COUNT( * ) ) AS col1
----
39

skipif mysql # not compatible
query I rowsort label-1117
SELECT DISTINCT NULLIF ( 39, - COUNT ( * ) ) AS col1
----
39

onlyif mysql # aggregate syntax: 
query II rowsort label-1118
SELECT DISTINCT ( - + 99 ) - - COUNT( * ) AS col2, + 47 col0
----
-98
47

skipif mysql # not compatible
query II rowsort label-1118
SELECT DISTINCT ( - + 99 ) - - COUNT ( * ) AS col2, + 47 col0
----
-98
47

query I rowsort
SELECT - 21 + - 36 * - - 66 AS col2
----
-2397

query I rowsort
SELECT DISTINCT - 3 - + 88 + - 22 * + - 12 + + - 64
----
109

query I rowsort
SELECT DISTINCT NULLIF ( + 33, 52 ) AS col2
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-1122
SELECT + 68 * + - MAX( ALL + 12 ) AS col1
----
-816

skipif mysql # not compatible
query I rowsort label-1122
SELECT + 68 * + - MAX ( ALL + 12 ) AS col1
----
-816

query I rowsort
SELECT - 73 * + ( + 13 )
----
-949

query I rowsort
SELECT ALL NULLIF ( - 80, - 26 / 77 ) AS col0
----
-80

query I rowsort
SELECT - 85 + + 22
----
-63

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-1126
SELECT - NULLIF ( - CAST( NULL AS DECIMAL ), AVG ( - - 33 ) ) - + + 61 AS col2, ( 34 )
----
NULL
34

skipif mysql # not compatible
query II rowsort label-1126
SELECT - NULLIF ( - CAST ( NULL AS REAL ), AVG ( - - 33 ) ) - + + 61 AS col2, ( 34 )
----
NULL
34

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1127
SELECT - COUNT( DISTINCT + - 66 ), NULLIF ( 94, 84 * + 45 + 74 + COUNT( * ) * 18 + + 54 ) DIV + - 82
----
-1
-1

skipif mysql # not compatible
query II rowsort label-1127
SELECT - COUNT ( DISTINCT + - 66 ), NULLIF ( 94, 84 * + 45 + 74 + COUNT ( * ) * 18 + + 54 ) / + - 82
----
-1
-1

query I rowsort
SELECT DISTINCT - 95 * + + 25
----
-2375

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

query I rowsort
SELECT ALL - 86 * - NULLIF ( + COALESCE ( - NULLIF ( + 35, + - 98 ), 82, - 52 ), 24 )
----
-3010

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

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

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

query I rowsort
SELECT DISTINCT + 96 * + 66 + + 50
----
6386

query I rowsort
SELECT - CASE - 19 WHEN + + 5 * + 24 + - 31 + + - 91 THEN NULL ELSE 89 * 69 END - - 23
----
-6118

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1135
SELECT ALL + 92 DIV - COALESCE ( - + COUNT( * ), - 26 ) + - + 3
----
89

skipif mysql # not compatible
query I rowsort label-1135
SELECT ALL + 92 / - COALESCE ( - + COUNT ( * ), - 26 ) + - + 3
----
89

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1137
SELECT + 95 + + 70 + + + COUNT( DISTINCT 82 )
----
166

skipif mysql # not compatible
query I rowsort label-1137
SELECT + 95 + + 70 + + + COUNT ( DISTINCT 82 )
----
166

onlyif mysql # aggregate syntax: 
query I rowsort label-1138
SELECT - COUNT( * ) * ( 74 ) AS col2
----
-74

skipif mysql # not compatible
query I rowsort label-1138
SELECT - COUNT ( * ) * ( 74 ) AS col2
----
-74

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1139
SELECT ALL + - 85 / ( - CAST( NULL AS SIGNED ) ) - + + 42 + COUNT( * ) + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-1139
SELECT ALL + - 85 / ( - CAST ( NULL AS INTEGER ) ) - + + 42 + COUNT ( * ) + + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1140
SELECT - - 63 DIV + 47 + + ( - 72 )
----
-71

skipif mysql # not compatible
query I rowsort label-1140
SELECT - - 63 / + 47 + + ( - 72 )
----
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-1141
SELECT DISTINCT 96 * - + MAX( + - 51 )
----
4896

skipif mysql # not compatible
query I rowsort label-1141
SELECT DISTINCT 96 * - + MAX ( + - 51 )
----
4896

query I rowsort
SELECT - - 6 - + - 37 AS col1
----
43

onlyif mysql # DIV for integer division: 
query I rowsort label-1143
SELECT - 35 * 0 + 88 + + 52 - - - 6 DIV + 32
----
140

skipif mysql # not compatible
query I rowsort label-1143
SELECT - 35 * 0 + 88 + + 52 - - - 6 / + 32
----
140

onlyif mysql # aggregate syntax: 
query I rowsort label-1144
SELECT - COUNT( * ) * + NULLIF ( + 88, - COUNT( * ) + 28 + + COUNT( * ) + + 52 * ( + 62 ) * - 8 ) + + 93 + - 7 * + 90 + - MAX( DISTINCT ( + 50 ) ) AS col1
----
-675

skipif mysql # not compatible
query I rowsort label-1144
SELECT - COUNT ( * ) * + NULLIF ( + 88, - COUNT ( * ) + 28 + + COUNT ( * ) + + 52 * ( + 62 ) * - 8 ) + + 93 + - 7 * + 90 + - MAX ( DISTINCT ( + 50 ) ) AS col1
----
-675

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1145
SELECT COUNT( * ) * + 70 DIV 11 * + + 52 AS col0
----
312

skipif mysql # not compatible
query I rowsort label-1145
SELECT COUNT ( * ) * + 70 / 11 * + + 52 AS col0
----
312

onlyif mysql # DIV for integer division: 
query I rowsort label-1146
SELECT DISTINCT 81 DIV - - 20
----
4

skipif mysql # not compatible
query I rowsort label-1146
SELECT DISTINCT 81 / - - 20
----
4

onlyif mysql # DIV for integer division: 
query I rowsort label-1147
SELECT 64 - 70 DIV + ( - - 1 )
----
-6

skipif mysql # not compatible
query I rowsort label-1147
SELECT 64 - 70 / + ( - - 1 )
----
-6

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

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

query I rowsort
SELECT COALESCE ( - 40, 75 * + 81, - 45 ) + - - 69
----
29

onlyif mysql # DIV for integer division: 
query I rowsort label-1150
SELECT 80 DIV - 98 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-1150
SELECT 80 / - 98 AS col2
----
0

query I rowsort
SELECT ALL 38 * + 51
----
1938

query I rowsort
SELECT 89 * + + 86 AS col2
----
7654

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1153
SELECT CAST( + 8 AS SIGNED ) + + 19
----
27

skipif mysql # not compatible
query I rowsort label-1153
SELECT CAST ( + 8 AS INTEGER ) + + 19
----
27

query I rowsort
SELECT 99 - ( + 24 ) - 53
----
22

query II rowsort
SELECT - 89 AS col1, + 54 + - 61
----
-89
-7

query II rowsort
SELECT ALL 2 * 57 * - + 91, 37 AS col2
----
-10374
37

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1157
SELECT CASE + 87 WHEN + + COUNT( * ) * - 40 + CAST( + 25 AS SIGNED ) + - 22 * - ( MIN( + 62 ) ) + AVG ( DISTINCT 27 ) * + 9 THEN + 8 / - + 13 * 27 END * + 24 + - 86 AS col0, + 2
----
NULL
2

skipif mysql # not compatible
query II rowsort label-1157
SELECT CASE + 87 WHEN + + COUNT ( * ) * - 40 + CAST ( + 25 AS INTEGER ) + - 22 * - ( MIN ( + 62 ) ) + AVG ( DISTINCT 27 ) * + 9 THEN + 8 / - + 13 * 27 END * + 24 + - 86 AS col0, + 2
----
NULL
2

query II rowsort
SELECT - 47 AS col2, 15 col2
----
-47
15

query I rowsort
SELECT DISTINCT 37 * - 99
----
-3663

onlyif mysql # aggregate syntax: 
query II rowsort label-1160
SELECT DISTINCT + ( + COUNT( * ) ) + + 17 AS col2, 0 + 92 AS col0
----
18
92

skipif mysql # not compatible
query II rowsort label-1160
SELECT DISTINCT + ( + COUNT ( * ) ) + + 17 AS col2, 0 + 92 AS col0
----
18
92

query I rowsort
SELECT 21 + + + 2
----
23

query I rowsort
SELECT ALL + - 76 * + 76 + - 72 AS col1
----
-5848

query I rowsort
SELECT ALL + + 59 + + 93 AS col1
----
152

onlyif mysql # aggregate syntax: 
query I rowsort label-1164
SELECT DISTINCT - MIN( - 30 ) AS col1
----
30

skipif mysql # not compatible
query I rowsort label-1164
SELECT DISTINCT - MIN ( - 30 ) AS col1
----
30

query I rowsort
SELECT - 93 * + + 84 col2
----
-7812

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1166
SELECT ALL + 51 + + - CAST( - SUM( DISTINCT + 92 ) AS SIGNED ) * - 37 * 32 * - 27 AS col1
----
2941107

skipif mysql # not compatible
query I rowsort label-1166
SELECT ALL + 51 + + - CAST ( - SUM ( DISTINCT + 92 ) AS INTEGER ) * - 37 * 32 * - 27 AS col1
----
2941107

onlyif mysql # aggregate syntax: 
query I rowsort label-1167
SELECT DISTINCT + - 17 + + COUNT( * ) - + - 33 * - COUNT( * ) AS col0
----
-49

skipif mysql # not compatible
query I rowsort label-1167
SELECT DISTINCT + - 17 + + COUNT ( * ) - + - 33 * - COUNT ( * ) AS col0
----
-49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1168
SELECT - + CAST( + 71 AS SIGNED ) DIV - ( - COUNT( DISTINCT - + 37 ) ) + CAST( - + 28 AS SIGNED ) + + 35 + + CAST( + + 56 AS SIGNED ) * COALESCE ( 10, 67 * 44 DIV - 3 + + SUM( DISTINCT - 51 ) - - + 61 ) + + 76
----
572

skipif mysql # not compatible
query I rowsort label-1168
SELECT - + CAST ( + 71 AS INTEGER ) / - ( - COUNT ( DISTINCT - + 37 ) ) + CAST ( - + 28 AS INTEGER ) + + 35 + + CAST ( + + 56 AS INTEGER ) * COALESCE ( 10, 67 * 44 / - 3 + + SUM ( DISTINCT - 51 ) - - + 61 ) + + 76
----
572

onlyif mysql # DIV for integer division: 
query I rowsort label-1169
SELECT ALL - 52 DIV NULLIF ( 32, - 94 ) col2
----
-1

skipif mysql # not compatible
query I rowsort label-1169
SELECT ALL - 52 / NULLIF ( 32, - 94 ) col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-1170
SELECT ALL + + 91 + + + COUNT( * )
----
92

skipif mysql # not compatible
query I rowsort label-1170
SELECT ALL + + 91 + + + COUNT ( * )
----
92

onlyif mysql # aggregate syntax: 
query I rowsort label-1171
SELECT - 83 * + + 28 + - + COUNT( ALL 90 )
----
-2325

skipif mysql # not compatible
query I rowsort label-1171
SELECT - 83 * + + 28 + - + COUNT ( ALL 90 )
----
-2325

query I rowsort
SELECT 77 * - 89
----
-6853

onlyif mysql # aggregate syntax: 
query I rowsort label-1173
SELECT - 52 + + 38 + - - COUNT( * ) col1
----
-13

skipif mysql # not compatible
query I rowsort label-1173
SELECT - 52 + + 38 + - - COUNT ( * ) col1
----
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-1174
SELECT MAX( ALL - 35 ) - - 53 * 23 + - 10 col0
----
1174

skipif mysql # not compatible
query I rowsort label-1174
SELECT MAX ( ALL - 35 ) - - 53 * 23 + - 10 col0
----
1174

query I rowsort
SELECT ALL + 75 - + - CASE 89 WHEN + + 97 THEN 65 * - 15 * - 75 * + 53 * - COALESCE ( + - 92, + 79 ) * - + ( - ( 38 ) ) + 6 END
----
NULL

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1177
SELECT DISTINCT - ( - 78 ) - - 10 - - 54 DIV + 48 + - 8
----
81

skipif mysql # not compatible
query I rowsort label-1177
SELECT DISTINCT - ( - 78 ) - - 10 - - 54 / + 48 + - 8
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-1178
SELECT 21 * + + 20 + - MAX( - - ( 55 ) )
----
365

skipif mysql # not compatible
query I rowsort label-1178
SELECT 21 * + + 20 + - MAX ( - - ( 55 ) )
----
365

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1179
SELECT CASE + - 71 WHEN COUNT( * ) * - 88 + COUNT( * ) + + CAST( NULL AS SIGNED ) THEN AVG ( 8 ) WHEN CASE - 75 WHEN + - 8 + - 57 THEN + SUM( DISTINCT 20 ) WHEN - COUNT( ALL + 69 ) THEN NULL ELSE - 29 END THEN NULL END * - + 87 + - 22 + - 98 + 19
----
NULL

skipif mysql # not compatible
query I rowsort label-1179
SELECT CASE + - 71 WHEN COUNT ( * ) * - 88 + COUNT ( * ) + + CAST ( NULL AS INTEGER ) THEN AVG ( 8 ) WHEN CASE - 75 WHEN + - 8 + - 57 THEN + SUM ( DISTINCT 20 ) WHEN - COUNT ( ALL + 69 ) THEN NULL ELSE - 29 END THEN NULL END * - + 87 + - 22 + - 98 + 19
----
NULL

query I rowsort
SELECT DISTINCT 4 * 36 * - + 63
----
-9072

onlyif mysql # aggregate syntax: 
query I rowsort label-1181
SELECT SUM( - 18 ) + COUNT( * ) + - ( + 84 ) + + 42 AS col0
----
-59

skipif mysql # not compatible
query I rowsort label-1181
SELECT SUM ( - 18 ) + COUNT ( * ) + - ( + 84 ) + + 42 AS col0
----
-59

query I rowsort
SELECT 99 + 68 AS col2
----
167

query I rowsort
SELECT ALL COALESCE ( - 37, + 34 ) + + 52
----
15

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1184
SELECT ALL 85 + 1 * 73 * - CAST( NULL AS SIGNED ) * 23 / - 46
----
NULL

skipif mysql # not compatible
query I rowsort label-1184
SELECT ALL 85 + 1 * 73 * - CAST ( NULL AS INTEGER ) * 23 / - 46
----
NULL

query I rowsort
SELECT DISTINCT NULLIF ( - - 97, 37 * - 15 + 36 ) * - 11
----
-1067

onlyif mysql # aggregate syntax: 
query I rowsort label-1186
SELECT DISTINCT 55 + + 70 * 50 + - 24 + + + 0 * + - 65 + + + 12 - + COUNT( * ) * - + ( + 57 ) * - 17 + + 53 * + 18
----
3528

skipif mysql # not compatible
query I rowsort label-1186
SELECT DISTINCT 55 + + 70 * 50 + - 24 + + + 0 * + - 65 + + + 12 - + COUNT ( * ) * - + ( + 57 ) * - 17 + + 53 * + 18
----
3528

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1187
SELECT ALL + NULLIF ( + CAST( NULL AS SIGNED ), + COUNT( * ) + 92 ) * - 52
----
NULL

skipif mysql # not compatible
query I rowsort label-1187
SELECT ALL + NULLIF ( + CAST ( NULL AS INTEGER ), + COUNT ( * ) + 92 ) * - 52
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1188
SELECT ALL COALESCE ( 8, + 34 * + + 3 / + + COUNT( * ) * - 12 + + 59 ) + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-1188
SELECT ALL COALESCE ( 8, + 34 * + + 3 / + + COUNT ( * ) * - 12 + + 59 ) + + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1189
SELECT + 7 DIV - + 52 * 93 * + + 50 col2
----
0

skipif mysql # not compatible
query I rowsort label-1189
SELECT + 7 / - + 52 * 93 * + + 50 col2
----
0

query I rowsort
SELECT ALL - 22 * + + 80 + + + 78
----
-1682

query II rowsort
SELECT DISTINCT 99 * - - 42 AS col2, + 57 AS col1
----
4158
57

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

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

query I rowsort
SELECT - 43 + 94
----
51

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1194
SELECT ALL - 61 * - - 70 * 84 * 53 / CAST( NULL AS SIGNED ) AS col1, + 97 AS col2
----
NULL
97

skipif mysql # not compatible
query II rowsort label-1194
SELECT ALL - 61 * - - 70 * 84 * 53 / CAST ( NULL AS INTEGER ) AS col1, + 97 AS col2
----
NULL
97

query I rowsort
SELECT DISTINCT + 11 * - 56 + - 36 + - 52 - + + 59 AS col1
----
-763

query II rowsort
SELECT ALL - - ( - 66 ) AS col1, 93 AS col2
----
-66
93

query I rowsort
SELECT DISTINCT + - COALESCE ( - 1, + 68 ) * 29 AS col2
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-1198
SELECT ALL + + MAX( + 3 ) * - + 97 * + - 74 AS col2
----
21534

skipif mysql # not compatible
query I rowsort label-1198
SELECT ALL + + MAX ( + 3 ) * - + 97 * + - 74 AS col2
----
21534

onlyif mysql # aggregate syntax: 
query II rowsort label-1199
SELECT ALL + - 64 * + - 96 AS col2, + COUNT( * ) AS col2
----
6144
1

skipif mysql # not compatible
query II rowsort label-1199
SELECT ALL + - 64 * + - 96 AS col2, + COUNT ( * ) AS col2
----
6144
1

query I rowsort
SELECT DISTINCT 34 * 62 AS col1
----
2108

query I rowsort
SELECT ALL + COALESCE ( + 82, + 8 + ( 5 ) + - 26, 3 )
----
82

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1202
SELECT ALL + NULLIF ( - CAST( NULL AS SIGNED ), 36 * - + 21 * + ( 95 ) / COUNT( * ) * + 22 + - - 63 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1202
SELECT ALL + NULLIF ( - CAST ( NULL AS INTEGER ), 36 * - + 21 * + ( 95 ) / COUNT ( * ) * + 22 + - - 63 ) AS col0
----
NULL

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1204
SELECT - 98 DIV 97 DIV - 93 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-1204
SELECT - 98 / 97 / - 93 AS col0
----
0

query I rowsort
SELECT ALL + COALESCE ( + ( - 4 ), + + 83 ) AS col1
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-1206
SELECT - COUNT( + 4 ) - - 24 - - COUNT( * ) * + + 26 * + 41 col1
----
1089

skipif mysql # not compatible
query I rowsort label-1206
SELECT - COUNT ( + 4 ) - - 24 - - COUNT ( * ) * + + 26 * + 41 col1
----
1089

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1208
SELECT 26 * - + MAX( DISTINCT - - 40 ) - + 80 DIV - 17
----
-1036

skipif mysql # not compatible
query I rowsort label-1208
SELECT 26 * - + MAX ( DISTINCT - - 40 ) - + 80 / - 17
----
-1036

onlyif mysql # DIV for integer division: 
query I rowsort label-1209
SELECT ALL - 54 DIV - - 83
----
0

skipif mysql # not compatible
query I rowsort label-1209
SELECT ALL - 54 / - - 83
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1210
SELECT + 56 * + + 94 + + 61 - 23 * + - COUNT( * ) col2
----
5348

skipif mysql # not compatible
query I rowsort label-1210
SELECT + 56 * + + 94 + + 61 - 23 * + - COUNT ( * ) col2
----
5348

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

skipif mysql # not compatible
query I rowsort label-1211
SELECT DISTINCT - COUNT ( * ) / - 78 AS col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1212
SELECT DISTINCT + COALESCE ( 95, + MAX( 54 ) * + ( - 29 ) * - 30 * + - 42 * + 72 + ( - 85 ) + - 58 - - 86 - + - CAST( 17 AS SIGNED ) * + - 64 )
----
95

skipif mysql # not compatible
query I rowsort label-1212
SELECT DISTINCT + COALESCE ( 95, + MAX ( 54 ) * + ( - 29 ) * - 30 * + - 42 * + 72 + ( - 85 ) + - 58 - - 86 - + - CAST ( 17 AS INTEGER ) * + - 64 )
----
95

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1214
SELECT ALL + 64 + NULLIF ( - 49, + 95 * + + COUNT( * ) * 78 * MIN( - - 9 ) )
----
15

skipif mysql # not compatible
query I rowsort label-1214
SELECT ALL + 64 + NULLIF ( - 49, + 95 * + + COUNT ( * ) * 78 * MIN ( - - 9 ) )
----
15

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1215
SELECT - CAST( + COALESCE ( + - COUNT( * ), - 45 ) AS SIGNED ) * 32 AS col1
----
32

skipif mysql # not compatible
query I rowsort label-1215
SELECT - CAST ( + COALESCE ( + - COUNT ( * ), - 45 ) AS INTEGER ) * 32 AS col1
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-1216
SELECT - MAX( - 11 ) + 12 - + 99
----
-76

skipif mysql # not compatible
query I rowsort label-1216
SELECT - MAX ( - 11 ) + 12 - + 99
----
-76

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1217
SELECT - - CAST( - ( + + 62 ) AS SIGNED ) + - - 51 * - COALESCE ( - 9, 29 ) AS col1
----
397

skipif mysql # not compatible
query I rowsort label-1217
SELECT - - CAST ( - ( + + 62 ) AS INTEGER ) + - - 51 * - COALESCE ( - 9, 29 ) AS col1
----
397

query I rowsort
SELECT + - 57 - - + ( + - 47 )
----
-104

query I rowsort
SELECT ALL 44 + 7 + + 79 AS col2
----
130

query I rowsort
SELECT ALL - 76 + + + 93
----
17

query II rowsort
SELECT ALL 29, + 13 AS col1
----
29
13

query I rowsort
SELECT + 32 + + 89 + + 7 AS col0
----
128

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1223
SELECT ALL CAST( 5 AS SIGNED ) * + - 68 AS col0
----
-340

skipif mysql # not compatible
query I rowsort label-1223
SELECT ALL CAST ( 5 AS INTEGER ) * + - 68 AS col0
----
-340

query I rowsort
SELECT ALL - 74 - - NULLIF ( ( - 6 ), - + 78 )
----
-80

query I rowsort
SELECT + + ( - 90 ) + - + 56 + - 47
----
-193

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

skipif mysql # not compatible
query I rowsort label-1226
SELECT + CAST ( + 78 AS INTEGER ) * + 82
----
6396

onlyif mysql # aggregate syntax: 
query I rowsort label-1227
SELECT ALL + 50 * + COUNT( 73 ) + + 80 + + - 76
----
54

skipif mysql # not compatible
query I rowsort label-1227
SELECT ALL + 50 * + COUNT ( 73 ) + + 80 + + - 76
----
54

query I rowsort
SELECT + + 44 + + 17 + 38
----
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1229
SELECT ALL + - CASE ( + + 64 ) WHEN + 37 THEN NULLIF ( CAST( - 79 AS SIGNED ), + 97 ) - 4 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1229
SELECT ALL + - CASE ( + + 64 ) WHEN + 37 THEN NULLIF ( CAST ( - 79 AS INTEGER ), + 97 ) - 4 ELSE NULL END
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1231
SELECT + COUNT( 94 ) + + 79
----
80

skipif mysql # not compatible
query I rowsort label-1231
SELECT + COUNT ( 94 ) + + 79
----
80

query I rowsort
SELECT + 51 * - + 52
----
-2652

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1234
SELECT SUM( + 20 ) / - + ( + CAST( + COUNT( * ) AS DECIMAL ) ) * - 15 * - 61 + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1234
SELECT SUM ( + 20 ) / - + ( + CAST ( + COUNT ( * ) AS REAL ) ) * - 15 * - 61 + CAST ( NULL AS INTEGER ) AS col2
----
NULL

query II rowsort
SELECT DISTINCT + 15 col1, 70 AS col2
----
15
70

query I rowsort
SELECT 31 * - - 82 * + 80 + 40 AS col2
----
203400

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1237
SELECT ALL 15 * + CASE + NULLIF ( + 73, - 72 + 26 / + - CASE - - 54 WHEN NULLIF ( 4, + ( + - 95 ) ) THEN + 61 ELSE NULL END + - 74 ) WHEN - + 52 THEN NULL ELSE 63 * + 56 - + 29 * - 23 + NULLIF ( - COALESCE ( - + MAX( CAST( NULL AS SIGNED ) ), - + CAST( + 16 AS SIGNED ) + - 9 * CAST( NULL AS SIGNED ), - COALESCE ( + 88, 13 ) * 45 - + 85 ), - 22 * - CAST( NULLIF ( 44, COUNT( * ) ) * - CAST( - 21 AS DECIMAL ) AS DECIMAL ) + - 28 ) + 75 END * + 56 + 24
----
6984624

skipif mysql # not compatible
query I rowsort label-1237
SELECT ALL 15 * + CASE + NULLIF ( + 73, - 72 + 26 / + - CASE - - 54 WHEN NULLIF ( 4, + ( + - 95 ) ) THEN + 61 ELSE NULL END + - 74 ) WHEN - + 52 THEN NULL ELSE 63 * + 56 - + 29 * - 23 + NULLIF ( - COALESCE ( - + MAX ( CAST ( NULL AS INTEGER ) ), - + CAST ( + 16 AS INTEGER ) + - 9 * CAST ( NULL AS INTEGER ), - COALESCE ( + 88, 13 ) * 45 - + 85 ), - 22 * - CAST ( NULLIF ( 44, COUNT ( * ) ) * - CAST ( - 21 AS REAL ) AS REAL ) + - 28 ) + 75 END * + 56 + 24
----
6984624

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1238
SELECT + 27 * + 15 * - 93 + - - 99 + - - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1238
SELECT + 27 * + 15 * - 93 + - - 99 + - - CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1239
SELECT - 91 + + COALESCE ( + CASE + - 53 WHEN - + 38 * 12 * - 99 + 22 THEN - 0 WHEN + 20 THEN NULL WHEN 19 / 88 THEN 67 WHEN + 72 + + - CAST( NULL AS SIGNED ) THEN + - 67 ELSE NULL END, - COUNT( * ) )
----
-92

skipif mysql # not compatible
query I rowsort label-1239
SELECT - 91 + + COALESCE ( + CASE + - 53 WHEN - + 38 * 12 * - 99 + 22 THEN - 0 WHEN + 20 THEN NULL WHEN 19 / 88 THEN 67 WHEN + 72 + + - CAST ( NULL AS INTEGER ) THEN + - 67 ELSE NULL END, - COUNT ( * ) )
----
-92

query II rowsort
SELECT ALL + 5 * - - 93 * 88 + 24, 92 AS col1
----
40944
92

onlyif mysql # aggregate syntax: 
query I rowsort label-1241
SELECT 68 * - COUNT( * ) + + + COALESCE ( - 76, ( 45 ), + - 57 ) AS col1
----
-144

skipif mysql # not compatible
query I rowsort label-1241
SELECT 68 * - COUNT ( * ) + + + COALESCE ( - 76, ( 45 ), + - 57 ) AS col1
----
-144

onlyif mysql # aggregate syntax: 
query I rowsort label-1242
SELECT - COUNT( DISTINCT 60 ) * 97 AS col1
----
-97

skipif mysql # not compatible
query I rowsort label-1242
SELECT - COUNT ( DISTINCT 60 ) * 97 AS col1
----
-97

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

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

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

skipif mysql # not compatible
query I rowsort label-1244
SELECT ALL ( - COUNT ( DISTINCT 99 ) ) AS col1
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1245
SELECT - MIN( ALL - 28 ) * + - 19 + - + 58 + - ( + + 82 ) DIV 96 + - 21 * + - 27 AS col0, - 79 * 63 + - 28 * - + 27 AS col0
----
-23
-4221

skipif mysql # not compatible
query II rowsort label-1245
SELECT - MIN ( ALL - 28 ) * + - 19 + - + 58 + - ( + + 82 ) / 96 + - 21 * + - 27 AS col0, - 79 * 63 + - 28 * - + 27 AS col0
----
-23
-4221

onlyif mysql # DIV for integer division: 
query I rowsort label-1246
SELECT DISTINCT - 5 DIV + 45 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-1246
SELECT DISTINCT - 5 / + 45 AS col1
----
0

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

skipif mysql # not compatible
query I rowsort label-1247
SELECT - + COUNT ( ALL - 43 ) / + 27
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1248
SELECT ALL + 53 * - CASE + 50 WHEN - + MAX( 23 ) THEN ( - 80 ) END - + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-1248
SELECT ALL + 53 * - CASE + 50 WHEN - + MAX ( 23 ) THEN ( - 80 ) END - + COUNT ( * )
----
NULL

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

query I rowsort
SELECT DISTINCT - 72 * 13
----
-936

query II rowsort
SELECT ALL + 63 AS col2, 87
----
63
87

query I rowsort
SELECT - + 9 + - + 40 AS col0
----
-49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1253
SELECT ALL CAST( + + ( 85 ) AS SIGNED ) col2
----
85

skipif mysql # not compatible
query I rowsort label-1253
SELECT ALL CAST ( + + ( 85 ) AS INTEGER ) col2
----
85

query I rowsort
SELECT ALL - + 97 - + - 58 AS col0
----
-39

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1255
SELECT CAST( NULL AS SIGNED ) AS col2, 73 DIV CAST( - - 14 AS SIGNED ) AS col0
----
NULL
5

skipif mysql # not compatible
query II rowsort label-1255
SELECT CAST ( NULL AS INTEGER ) AS col2, 73 / CAST ( - - 14 AS INTEGER ) AS col0
----
NULL
5

query II rowsort
SELECT - 47 col0, + 14
----
-47
14

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1257
SELECT - CAST( - 24 AS SIGNED ), - 33 col0
----
24
-33

skipif mysql # not compatible
query II rowsort label-1257
SELECT - CAST ( - 24 AS INTEGER ), - 33 col0
----
24
-33

query II rowsort
SELECT ALL + ( - 81 ), + 0 col2
----
-81
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1259
SELECT - - 86 AS col2, ( - 67 ) - - - CAST( + 28 AS SIGNED ) AS col0
----
86
-95

skipif mysql # not compatible
query II rowsort label-1259
SELECT - - 86 AS col2, ( - 67 ) - - - CAST ( + 28 AS INTEGER ) AS col0
----
86
-95

query I rowsort
SELECT - 61 + - 21 AS col2
----
-82

query I rowsort
SELECT - 5 * + - 44 + - 19
----
201

onlyif mysql # aggregate syntax: 
query I rowsort label-1262
SELECT 75 + + 1 * - MAX( + 61 ) AS col0
----
14

skipif mysql # not compatible
query I rowsort label-1262
SELECT 75 + + 1 * - MAX ( + 61 ) AS col0
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-1263
SELECT DISTINCT - - CASE MIN( - + 21 ) WHEN + + 21 + + 12 THEN 93 WHEN - CASE - 84 WHEN + + AVG ( ALL 11 ) / + 73 THEN + + 26 ELSE NULL END THEN NULL END * - NULLIF ( - 85, + 50 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1263
SELECT DISTINCT - - CASE MIN ( - + 21 ) WHEN + + 21 + + 12 THEN 93 WHEN - CASE - 84 WHEN + + AVG ( ALL 11 ) / + 73 THEN + + 26 ELSE NULL END THEN NULL END * - NULLIF ( - 85, + 50 )
----
NULL

query I rowsort
SELECT + 28 + - 29 * - + CASE - + 45 WHEN - + 61 THEN + 50 + - + 17 END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1265
SELECT 24 / 8 * 10 / + 44 * CASE 57 WHEN + 80 THEN NULL WHEN 49 + + 49 * + 28 * - 66 + + 52 * + 51 THEN 71 ELSE NULL END * CAST( NULL AS SIGNED ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1265
SELECT 24 / 8 * 10 / + 44 * CASE 57 WHEN + 80 THEN NULL WHEN 49 + + 49 * + 28 * - 66 + + 52 * + 51 THEN 71 ELSE NULL END * CAST ( NULL AS INTEGER ) col1
----
NULL

query I rowsort
SELECT DISTINCT 90 * - 54 AS col1
----
-4860

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1267
SELECT ALL 29 / - 34 + - CASE 85 WHEN + + 29 * COUNT( * ) - + 32 * CASE - 28 WHEN + 45 + + + 75 * - + 14 THEN NULL ELSE - + SUM( DISTINCT 24 ) / - - CAST( - - COUNT( * ) AS DECIMAL ) + + - 66 END * 57 * 83 + - 77 THEN 83 * + 8 + + ( + 36 ) / + - 23 - + 30 - 11 * 60 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1267
SELECT ALL 29 / - 34 + - CASE 85 WHEN + + 29 * COUNT ( * ) - + 32 * CASE - 28 WHEN + 45 + + + 75 * - + 14 THEN NULL ELSE - + SUM ( DISTINCT 24 ) / - - CAST ( - - COUNT ( * ) AS REAL ) + + - 66 END * 57 * 83 + - 77 THEN 83 * + 8 + + ( + 36 ) / + - 23 - + 30 - 11 * 60 END AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1268
SELECT 38 DIV - - 26, - 47 DIV + 37 * - ( COUNT( * ) ) AS col1
----
1
1

skipif mysql # not compatible
query II rowsort label-1268
SELECT 38 / - - 26, - 47 / + 37 * - ( COUNT ( * ) ) AS col1
----
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1269
SELECT MIN( DISTINCT - - 41 ) * + 78 + + 74
----
3272

skipif mysql # not compatible
query I rowsort label-1269
SELECT MIN ( DISTINCT - - 41 ) * + 78 + + 74
----
3272

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

skipif mysql # not compatible
query I rowsort label-1270
SELECT MAX ( ALL - 39 ) / + - COUNT ( * ) * + COUNT ( * )
----
39

query I rowsort
SELECT ALL 33 + ( 97 ) col2
----
130

query I rowsort
SELECT DISTINCT 45 * + - 23
----
-1035

query I rowsort
SELECT ALL 80 + + 45
----
125

query I rowsort
SELECT DISTINCT 38 + 99 AS col1
----
137

onlyif mysql # aggregate syntax: 
query I rowsort label-1275
SELECT 24 * MIN( ALL - 32 ) AS col1
----
-768

skipif mysql # not compatible
query I rowsort label-1275
SELECT 24 * MIN ( ALL - 32 ) AS col1
----
-768

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1277
SELECT + MAX( + 95 ) * + 78 + - CAST( NULL AS SIGNED ) * - + 71
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1278
SELECT ALL + + 25 * - COUNT( DISTINCT - 13 )
----
-25

skipif mysql # not compatible
query I rowsort label-1278
SELECT ALL + + 25 * - COUNT ( DISTINCT - 13 )
----
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-1279
SELECT DISTINCT CASE + - 63 WHEN - 27 / - COUNT( * ) * + 70 THEN + ( + 29 ) END - + - 61 + - 31 + 76 - 23 / + 89 * 63 * + - 54 * + 48 * - 22 + COUNT( * ) + 39 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1279
SELECT DISTINCT CASE + - 63 WHEN - 27 / - COUNT ( * ) * + 70 THEN + ( + 29 ) END - + - 61 + - 31 + 76 - 23 / + 89 * 63 * + - 54 * + 48 * - 22 + COUNT ( * ) + 39 col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1280
SELECT - - NULLIF ( 3, 38 / NULLIF ( - - COUNT( * ), + 6 ) + 37 ) * CAST( NULL AS SIGNED ) * 43 + - 86 + 17 * 14
----
NULL

skipif mysql # not compatible
query I rowsort label-1280
SELECT - - NULLIF ( 3, 38 / NULLIF ( - - COUNT ( * ), + 6 ) + 37 ) * CAST ( NULL AS INTEGER ) * 43 + - 86 + 17 * 14
----
NULL

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1282
SELECT + SUM( - COALESCE ( + 81, 58 ) ) * + CAST( ( 62 ) AS SIGNED ) * - 16 * + - NULLIF ( + COUNT( * ), + - COUNT( * ) * - 65 ) * + 27
----
-2169504

skipif mysql # not compatible
query I rowsort label-1282
SELECT + SUM ( - COALESCE ( + 81, 58 ) ) * + CAST ( ( 62 ) AS INTEGER ) * - 16 * + - NULLIF ( + COUNT ( * ), + - COUNT ( * ) * - 65 ) * + 27
----
-2169504

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1283
SELECT 21 * MAX( - 89 ) * - CAST( + ( - 81 ) AS SIGNED )
----
-151389

skipif mysql # not compatible
query I rowsort label-1283
SELECT 21 * MAX ( - 89 ) * - CAST ( + ( - 81 ) AS INTEGER )
----
-151389

query I rowsort
SELECT 70 + + - 99
----
-29

onlyif mysql # DIV for integer division: 
query I rowsort label-1285
SELECT 13 DIV - - 37 col0
----
0

skipif mysql # not compatible
query I rowsort label-1285
SELECT 13 / - - 37 col0
----
0

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1287
SELECT CASE 17 WHEN + 90 / + ( + + ( 94 ) ) * 50 THEN + 75 * - - ( COUNT( * ) ) WHEN + - 3 THEN - + 18 ELSE NULL END / - - CAST( - + COUNT( * ) AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-1287
SELECT CASE 17 WHEN + 90 / + ( + + ( 94 ) ) * 50 THEN + 75 * - - ( COUNT ( * ) ) WHEN + - 3 THEN - + 18 ELSE NULL END / - - CAST ( - + COUNT ( * ) AS INTEGER )
----
NULL

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

skipif mysql # not compatible
query I rowsort label-1288
SELECT 39 + - 98 + - 89 + + COUNT ( * ) AS col2
----
-147

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1289
SELECT ALL + 67 * + - 21 * - + COUNT( * ) DIV + CAST( - COUNT( * ) AS SIGNED ) AS col2
----
-1407

skipif mysql # not compatible
query I rowsort label-1289
SELECT ALL + 67 * + - 21 * - + COUNT ( * ) / + CAST ( - COUNT ( * ) AS INTEGER ) AS col2
----
-1407

query I rowsort
SELECT - 92 + - 32 * - 28 + 85 col2
----
889

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1291
SELECT 54 + 90 + + - COUNT( * ) - - CAST( NULL AS SIGNED ) + - 35 + 16 + 18 + - 41 * 72 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1291
SELECT 54 + 90 + + - COUNT ( * ) - - CAST ( NULL AS INTEGER ) + - 35 + 16 + 18 + - 41 * 72 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1292
SELECT MIN( ALL + 77 ) * - + MAX( + ( - 25 ) ) + - - 77 AS col2
----
2002

skipif mysql # not compatible
query I rowsort label-1292
SELECT MIN ( ALL + 77 ) * - + MAX ( + ( - 25 ) ) + - - 77 AS col2
----
2002

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1293
SELECT 63 + 43 + - + 25 DIV 51 * - + CAST( + + MIN( ALL 7 ) AS SIGNED ) AS col2
----
106

skipif mysql # not compatible
query I rowsort label-1293
SELECT 63 + 43 + - + 25 / 51 * - + CAST ( + + MIN ( ALL 7 ) AS INTEGER ) AS col2
----
106

query II rowsort
SELECT ALL - 38 AS col2, + 28 AS col0
----
-38
28

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1295
SELECT + 59 AS col1, COUNT( * ) DIV + - 79 - - - 50 * + 29
----
59
-1450

skipif mysql # not compatible
query II rowsort label-1295
SELECT + 59 AS col1, COUNT ( * ) / + - 79 - - - 50 * + 29
----
59
-1450

onlyif mysql # aggregate syntax: 
query I rowsort label-1296
SELECT ALL 57 * - 81 * + - MAX( - 12 ) + - 16
----
-55420

skipif mysql # not compatible
query I rowsort label-1296
SELECT ALL 57 * - 81 * + - MAX ( - 12 ) + - 16
----
-55420

onlyif mysql # aggregate syntax: 
query II rowsort label-1297
SELECT COUNT( * ), 48 + - 89 col2
----
1
-41

skipif mysql # not compatible
query II rowsort label-1297
SELECT COUNT ( * ), 48 + - 89 col2
----
1
-41

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1298
SELECT + CASE - CAST( CAST( NULL AS SIGNED ) AS DECIMAL ) WHEN - 31 + - + 96 THEN - 66 / - 91 + + 5 + 63 * - - 83 * + COUNT( * ) WHEN - 23 THEN + ( - 32 ) * 52 - + + 61 + + 68 + 71 END * + 60 / CAST( + NULLIF ( - - 24, 80 ) AS SIGNED ) + - ( + - COUNT( * ) ) * + 81 / 81
----
NULL

skipif mysql # not compatible
query I rowsort label-1298
SELECT + CASE - CAST ( CAST ( NULL AS INTEGER ) AS REAL ) WHEN - 31 + - + 96 THEN - 66 / - 91 + + 5 + 63 * - - 83 * + COUNT ( * ) WHEN - 23 THEN + ( - 32 ) * 52 - + + 61 + + 68 + 71 END * + 60 / CAST ( + NULLIF ( - - 24, 80 ) AS INTEGER ) + - ( + - COUNT ( * ) ) * + 81 / 81
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1299
SELECT + CAST( NULL AS SIGNED ) * 99 * - 17 + 25 * + + NULLIF ( + 62, - 44 ) * + 64 * - - 39, + 18 * - + 17 - COUNT( * ) + + - CAST( + - 40 AS SIGNED ) * - 99 AS col2
----
NULL
-4267

skipif mysql # not compatible
query II rowsort label-1299
SELECT + CAST ( NULL AS INTEGER ) * 99 * - 17 + 25 * + + NULLIF ( + 62, - 44 ) * + 64 * - - 39, + 18 * - + 17 - COUNT ( * ) + + - CAST ( + - 40 AS INTEGER ) * - 99 AS col2
----
NULL
-4267

query I rowsort
SELECT COALESCE ( + 17, - 62, + 25 ) * - 46
----
-782

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1301
SELECT NULLIF ( + + 12, - 74 * + 69 * + 8 * 29 * + + 64 + + 62 * 2 ) DIV 98 + - CAST( + 2 AS SIGNED ) AS col2
----
-2

skipif mysql # not compatible
query I rowsort label-1301
SELECT NULLIF ( + + 12, - 74 * + 69 * + 8 * 29 * + + 64 + + 62 * 2 ) / 98 + - CAST ( + 2 AS INTEGER ) AS col2
----
-2

query I rowsort
SELECT ALL NULLIF ( 45, - 52 ) * + NULLIF ( - 77, - 99 ) AS col1
----
-3465

onlyif mysql # aggregate syntax: 
query I rowsort label-1303
SELECT MAX( ALL + 13 ) + 55 + - 57 AS col2
----
11

skipif mysql # not compatible
query I rowsort label-1303
SELECT MAX ( ALL + 13 ) + 55 + - 57 AS col2
----
11

onlyif mysql # DIV for integer division: 
query I rowsort label-1304
SELECT - 44 DIV + - 24 + + + ( 98 ) * - 78 AS col0
----
-7643

skipif mysql # not compatible
query I rowsort label-1304
SELECT - 44 / + - 24 + + + ( 98 ) * - 78 AS col0
----
-7643

onlyif mysql # aggregate syntax: 
query I rowsort label-1305
SELECT COUNT( * ) + - 85 AS col1
----
-84

skipif mysql # not compatible
query I rowsort label-1305
SELECT COUNT ( * ) + - 85 AS col1
----
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-1306
SELECT ALL 20 - 59 - + - CASE - + 56 WHEN 61 THEN NULL WHEN + - ( + 10 ) THEN - 56 + + ( + 80 ) * ( + 67 ) * - 60 * + - 17 * + 93 / + 71 * - 90 * 44 * + 57 END + + 29 - - 5 * + + COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1306
SELECT ALL 20 - 59 - + - CASE - + 56 WHEN 61 THEN NULL WHEN + - ( + 10 ) THEN - 56 + + ( + 80 ) * ( + 67 ) * - 60 * + - 17 * + 93 / + 71 * - 90 * 44 * + 57 END + + 29 - - 5 * + + COUNT ( * ) AS col2
----
NULL

query II rowsort
SELECT DISTINCT - 72 AS col1, 10 col1
----
-72
10

query I rowsort
SELECT ( + 12 ) * - 8
----
-96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1309
SELECT - 81 * + 15 + + CAST( + 31 AS SIGNED )
----
-1184

skipif mysql # not compatible
query I rowsort label-1309
SELECT - 81 * + 15 + + CAST ( + 31 AS INTEGER )
----
-1184

query I rowsort
SELECT + 85 + - + 9 AS col1
----
76

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1311
SELECT CAST( - 55 AS SIGNED ) + + 54
----
-1

skipif mysql # not compatible
query I rowsort label-1311
SELECT CAST ( - 55 AS INTEGER ) + + 54
----
-1

query II rowsort
SELECT DISTINCT - 18 AS col2, 46 + - + 57 - - 18 col2
----
-18
7

query I rowsort
SELECT + 21 * + 85
----
1785

query I rowsort
SELECT - 97 * + 6 + - 33 AS col1
----
-615

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

skipif mysql # not compatible
query I rowsort label-1315
SELECT MIN ( DISTINCT 70 )
----
70

query I rowsort
SELECT - CASE - + 4 WHEN + + 93 THEN + + ( 87 ) * + + 75 ELSE NULL END AS col1
----
NULL

query I rowsort
SELECT ALL + 62 * ( - 69 ) * 4 col0
----
-17112

query I rowsort
SELECT + + 57 * 57 * - 87 * + 51 + - 18
----
-14415831

query I rowsort
SELECT + ( 96 ) + - 88
----
8

query II rowsort
SELECT DISTINCT 87, + 94 AS col1
----
87
94

query I rowsort
SELECT - 23 + + 92
----
69

onlyif mysql # aggregate syntax: 
query II rowsort label-1322
SELECT - COUNT( * ) AS col1, 17 + 50 AS col2
----
-1
67

skipif mysql # not compatible
query II rowsort label-1322
SELECT - COUNT ( * ) AS col1, 17 + 50 AS col2
----
-1
67

query II rowsort
SELECT - + 41 AS col0, + 42 AS col2
----
-41
42

onlyif mysql # DIV for integer division: 
query II rowsort label-1324
SELECT + 77 AS col1, 55 DIV - + 22 AS col1
----
77
-2

skipif mysql # not compatible
query II rowsort label-1324
SELECT + 77 AS col1, 55 / - + 22 AS col1
----
77
-2

query I rowsort
SELECT ALL 7 + 78 AS col1
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-1326
SELECT - + CASE 39 WHEN - NULLIF ( - + COUNT( - 59 ), + + MAX( ALL + 61 ) ) * + 19 THEN NULL WHEN - + 96 * COUNT( * ) * + + 70 * 39 THEN + 22 + + 85 - - MAX( + - 14 ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1326
SELECT - + CASE 39 WHEN - NULLIF ( - + COUNT ( - 59 ), + + MAX ( ALL + 61 ) ) * + 19 THEN NULL WHEN - + 96 * COUNT ( * ) * + + 70 * 39 THEN + 22 + + 85 - - MAX ( + - 14 ) END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1327
SELECT + 81 - - NULLIF ( 40, - - 14 * + + AVG ( DISTINCT + 20 ) / 94 + COUNT( * ) + + - 87 ) - 38
----
83

skipif mysql # not compatible
query I rowsort label-1327
SELECT + 81 - - NULLIF ( 40, - - 14 * + + AVG ( DISTINCT + 20 ) / 94 + COUNT ( * ) + + - 87 ) - 38
----
83

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1329
SELECT - COALESCE ( 9, + COALESCE ( - COUNT( * ), 44 ) ) + 6
----
-3

skipif mysql # not compatible
query I rowsort label-1329
SELECT - COALESCE ( 9, + COALESCE ( - COUNT ( * ), 44 ) ) + 6
----
-3

onlyif mysql # aggregate syntax: 
query II rowsort label-1330
SELECT DISTINCT CASE 77 WHEN + - COUNT( * ) THEN 94 - - 23 - COUNT( * ) + + + COUNT( * ) - - 58 / - 75 * - - 5 + + + 21 / + ( + - ( 36 ) ) WHEN + 81 THEN - + 61 - + MAX( DISTINCT - 2 ) * + MIN( + 0 ) END, 92 AS col0
----
NULL
92

skipif mysql # not compatible
query II rowsort label-1330
SELECT DISTINCT CASE 77 WHEN + - COUNT ( * ) THEN 94 - - 23 - COUNT ( * ) + + + COUNT ( * ) - - 58 / - 75 * - - 5 + + + 21 / + ( + - ( 36 ) ) WHEN + 81 THEN - + 61 - + MAX ( DISTINCT - 2 ) * + MIN ( + 0 ) END, 92 AS col0
----
NULL
92

query I rowsort
SELECT DISTINCT 63 + - - 5 + 64 + + ( - + 85 ) * 3 + + 95 AS col1
----
-28

query I rowsort
SELECT ALL + 63 + CASE + + 81 WHEN ( + 32 ) + 24 THEN - 1 ELSE NULL END AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1333
SELECT DISTINCT + 18 + - - COUNT( * ) + - CAST( + + ( + 2 ) AS SIGNED ) DIV - CAST( + + ( + - 7 ) AS SIGNED ) - + 88 + + 40, 6 col0
----
-29
6

skipif mysql # not compatible
query II rowsort label-1333
SELECT DISTINCT + 18 + - - COUNT ( * ) + - CAST ( + + ( + 2 ) AS INTEGER ) / - CAST ( + + ( + - 7 ) AS INTEGER ) - + 88 + + 40, 6 col0
----
-29
6

onlyif mysql # aggregate syntax: 
query II rowsort label-1334
SELECT ( - 15 ) AS col2, - COUNT( * ) + 84
----
-15
83

skipif mysql # not compatible
query II rowsort label-1334
SELECT ( - 15 ) AS col2, - COUNT ( * ) + 84
----
-15
83

query I rowsort
SELECT ALL + 37 * + 45 col2
----
1665

query I rowsort
SELECT - 62 * + ( + 22 )
----
-1364

query II rowsort
SELECT ( - 31 ), 92 * 36 AS col0
----
-31
3312

query I rowsort
SELECT DISTINCT + 19 * - 56 AS col0
----
-1064

query II rowsort
SELECT + + CASE - 39 WHEN - + 2 THEN + 77 END AS col0, - NULLIF ( + + 17, - + 67 + + 92 ) AS col2
----
NULL
-17

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1341
SELECT ALL - COUNT( - 46 ) DIV - 61
----
0

skipif mysql # not compatible
query I rowsort label-1341
SELECT ALL - COUNT ( - 46 ) / - 61
----
0

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1343
SELECT DISTINCT - CASE + 83 WHEN + 86 THEN + 5 * - 40 + - COUNT( * ) WHEN + - CAST( - - 89 AS SIGNED ) THEN NULL WHEN 8 THEN NULL END * - + 43 + - ( + COUNT( * ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1343
SELECT DISTINCT - CASE + 83 WHEN + 86 THEN + 5 * - 40 + - COUNT ( * ) WHEN + - CAST ( - - 89 AS INTEGER ) THEN NULL WHEN 8 THEN NULL END * - + 43 + - ( + COUNT ( * ) ) AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1344
SELECT DISTINCT + 72 * 85 DIV - 98 AS col2
----
-62

skipif mysql # not compatible
query I rowsort label-1344
SELECT DISTINCT + 72 * 85 / - 98 AS col2
----
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-1345
SELECT + 19 * - + MIN( 62 ) + 35 * - COUNT( * ) col2
----
-1213

skipif mysql # not compatible
query I rowsort label-1345
SELECT + 19 * - + MIN ( 62 ) + 35 * - COUNT ( * ) col2
----
-1213

query II rowsort
SELECT - ( + - CASE + 87 WHEN - 96 + + + 88 THEN NULL WHEN - 6 + - ( 9 ) THEN NULL ELSE + 90 END ), + 74 AS col0
----
90
74

onlyif mysql # aggregate syntax: 
query I rowsort label-1347
SELECT + - 1 + + COUNT( * ) + - 78 + - 22 + + - 58 + - - 7 + 95
----
-56

skipif mysql # not compatible
query I rowsort label-1347
SELECT + - 1 + + COUNT ( * ) + - 78 + - 22 + + - 58 + - - 7 + 95
----
-56

query I rowsort
SELECT + - 95 - - - NULLIF ( + 61, + 3 ) AS col1
----
-156

query I rowsort
SELECT ALL + ( + 83 ) + + 97 AS col0
----
180

onlyif mysql # aggregate syntax: 
query II rowsort label-1350
SELECT DISTINCT - 57 * - 4 AS col1, - 26 * - + COUNT( * ) AS col0
----
228
26

skipif mysql # not compatible
query II rowsort label-1350
SELECT DISTINCT - 57 * - 4 AS col1, - 26 * - + COUNT ( * ) AS col0
----
228
26

onlyif mysql # DIV for integer division: 
query I rowsort label-1351
SELECT + 92 DIV - 82
----
-1

skipif mysql # not compatible
query I rowsort label-1351
SELECT + 92 / - 82
----
-1

query I rowsort
SELECT DISTINCT 16 * + ( + 88 ) AS col2
----
1408

onlyif mysql # aggregate syntax: 
query I rowsort label-1353
SELECT + MAX( DISTINCT 18 ) + + 0 * 49 AS col1
----
18

skipif mysql # not compatible
query I rowsort label-1353
SELECT + MAX ( DISTINCT 18 ) + + 0 * 49 AS col1
----
18

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1354
SELECT + 39 * - - NULLIF ( + CAST( NULL AS SIGNED ), + CASE - - 29 WHEN + + 0 * 81 - + 10 + - 98 + ( + 70 ) THEN + 46 END ) * - 62 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1354
SELECT + 39 * - - NULLIF ( + CAST ( NULL AS INTEGER ), + CASE - - 29 WHEN + + 0 * 81 - + 10 + - 98 + ( + 70 ) THEN + 46 END ) * - 62 AS col2
----
NULL

query I rowsort
SELECT ALL 51 * - 57
----
-2907

query I rowsort
SELECT + 56 + + + 43 * + 37 AS col1
----
1647

onlyif mysql # aggregate syntax: 
query I rowsort label-1357
SELECT + ( 90 ) + 28 - + - NULLIF ( - + 60, + 81 + + COUNT( * ) ) AS col0
----
58

skipif mysql # not compatible
query I rowsort label-1357
SELECT + ( 90 ) + 28 - + - NULLIF ( - + 60, + 81 + + COUNT ( * ) ) AS col0
----
58

query I rowsort
SELECT ALL + 32 - - - 83 AS col0
----
-51

query II rowsort
SELECT + 9 + 65 * - + 4 * + + 11 + - + 45 AS col1, - 8 AS col2
----
-2896
-8

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1360
SELECT DISTINCT MIN( DISTINCT - + 12 ) DIV - + 26 - + 40 AS col2
----
-40

skipif mysql # not compatible
query I rowsort label-1360
SELECT DISTINCT MIN ( DISTINCT - + 12 ) / - + 26 - + 40 AS col2
----
-40

onlyif mysql # DIV for integer division: 
query I rowsort label-1361
SELECT - 61 DIV + 39
----
-1

skipif mysql # not compatible
query I rowsort label-1361
SELECT - 61 / + 39
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-1362
SELECT - 79 + + COUNT( ALL 61 ) AS col1, - COUNT( * ) * + - 21 * + + 94 AS col2
----
-78
1974

skipif mysql # not compatible
query II rowsort label-1362
SELECT - 79 + + COUNT ( ALL 61 ) AS col1, - COUNT ( * ) * + - 21 * + + 94 AS col2
----
-78
1974

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

skipif mysql # not compatible
query I rowsort label-1363
SELECT ALL - MAX ( - 25 )
----
25

query I rowsort
SELECT DISTINCT + - 88 * - 64 AS col2
----
5632

onlyif mysql # aggregate syntax: 
query I rowsort label-1365
SELECT ( + + MAX( - 12 ) ) * - 58 AS col2
----
696

skipif mysql # not compatible
query I rowsort label-1365
SELECT ( + + MAX ( - 12 ) ) * - 58 AS col2
----
696

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1366
SELECT 1 DIV 89 + 69 + + 33 * - 53 * COUNT( * ) AS col1
----
-1680

skipif mysql # not compatible
query I rowsort label-1366
SELECT 1 / 89 + 69 + + 33 * - 53 * COUNT ( * ) AS col1
----
-1680

query I rowsort
SELECT 6 * - 89 AS col2
----
-534

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1369
SELECT DISTINCT - + 96 * - COUNT( * ) * - 58 + 48 - + AVG ( DISTINCT 34 ) + CASE - + ( + CASE - + 90 WHEN - 57 THEN NULL WHEN - - 73 / - - 35 THEN + 25 * + - NULLIF ( - - 41, + - 25 * + + CAST( - 61 AS SIGNED ) ) ELSE 69 + + ( 94 ) - + 5 + + + 33 END ) WHEN - 9 THEN + + 16 + - 21 + - 95 ELSE NULL END * 86 * - + 45
----
NULL

skipif mysql # not compatible
query I rowsort label-1369
SELECT DISTINCT - + 96 * - COUNT ( * ) * - 58 + 48 - + AVG ( DISTINCT 34 ) + CASE - + ( + CASE - + 90 WHEN - 57 THEN NULL WHEN - - 73 / - - 35 THEN + 25 * + - NULLIF ( - - 41, + - 25 * + + CAST ( - 61 AS INTEGER ) ) ELSE 69 + + ( 94 ) - + 5 + + + 33 END ) WHEN - 9 THEN + + 16 + - 21 + - 95 ELSE NULL END * 86 * - + 45
----
NULL

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

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

query I rowsort
SELECT ALL - 46 + - 37 AS col1
----
-83

query I rowsort
SELECT ALL - - 46 * - 10 AS col2
----
-460

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1373
SELECT DISTINCT - CAST( - 77 AS SIGNED ) + 45
----
122

skipif mysql # not compatible
query I rowsort label-1373
SELECT DISTINCT - CAST ( - 77 AS INTEGER ) + 45
----
122

query I rowsort
SELECT ALL + 50 + - + 96 * + 3
----
-238

onlyif mysql # aggregate syntax: 
query I rowsort label-1375
SELECT ALL + 27 * - 86 * 17 + + COUNT( * ) * - NULLIF ( + 6, - 33 - 56 + - 46 * 46 + + - COUNT( * ) ) AS col2
----
-39480

skipif mysql # not compatible
query I rowsort label-1375
SELECT ALL + 27 * - 86 * 17 + + COUNT ( * ) * - NULLIF ( + 6, - 33 - 56 + - 46 * 46 + + - COUNT ( * ) ) AS col2
----
-39480

onlyif mysql # aggregate syntax: 
query I rowsort label-1376
SELECT 93 * + 11 * 59 * NULLIF ( 30, - COUNT( * ) ) col2
----
1810710

skipif mysql # not compatible
query I rowsort label-1376
SELECT 93 * + 11 * 59 * NULLIF ( 30, - COUNT ( * ) ) col2
----
1810710

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1377
SELECT ALL - 58 * + 74 * + - 37 * SUM( CAST( NULL AS SIGNED ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1377
SELECT ALL - 58 * + 74 * + - 37 * SUM ( CAST ( NULL AS INTEGER ) ) AS col1
----
NULL

query I rowsort
SELECT 99 + - 55 + + 67 * + 13 * 37 AS col0
----
32271

onlyif mysql # aggregate syntax: 
query I rowsort label-1379
SELECT ALL 75 * + NULLIF ( + ( + - COUNT( * ) ), - 95 * - 80 )
----
-75

skipif mysql # not compatible
query I rowsort label-1379
SELECT ALL 75 * + NULLIF ( + ( + - COUNT ( * ) ), - 95 * - 80 )
----
-75

query I rowsort
SELECT 82 - + + 15 AS col0
----
67

query I rowsort
SELECT 24 + + 71
----
95

onlyif mysql # aggregate syntax: 
query II rowsort label-1382
SELECT - 65, CASE - COUNT( * ) WHEN + - 98 - - + 74 * + 38 THEN - 9 END AS col1
----
-65
NULL

skipif mysql # not compatible
query II rowsort label-1382
SELECT - 65, CASE - COUNT ( * ) WHEN + - 98 - - + 74 * + 38 THEN - 9 END AS col1
----
-65
NULL

query II rowsort
SELECT ALL 66 AS col0, + 20 AS col1
----
66
20

query II rowsort
SELECT DISTINCT 18 col2, - 44 * 21 * + 82 AS col2
----
18
-75768

onlyif mysql # aggregate syntax: 
query I rowsort label-1385
SELECT 8 * - - NULLIF ( - 25, COUNT( 51 ) )
----
-200

skipif mysql # not compatible
query I rowsort label-1385
SELECT 8 * - - NULLIF ( - 25, COUNT ( 51 ) )
----
-200

query I rowsort
SELECT ALL 97 * + + 72
----
6984

query III rowsort
SELECT DISTINCT 75 AS col0, + 85, + - 89 AS col2
----
75
85
-89

query II rowsort
SELECT - 76, - 74 AS col1
----
-76
-74

onlyif mysql # aggregate syntax: 
query II rowsort label-1389
SELECT ALL 77 AS col1, MAX( DISTINCT - 59 )
----
77
-59

skipif mysql # not compatible
query II rowsort label-1389
SELECT ALL 77 AS col1, MAX ( DISTINCT - 59 )
----
77
-59

onlyif mysql # DIV for integer division: 
query II rowsort label-1390
SELECT - 79, ( 0 ) DIV + 42 AS col1
----
-79
0

skipif mysql # not compatible
query II rowsort label-1390
SELECT - 79, ( 0 ) / + 42 AS col1
----
-79
0

query II rowsort
SELECT DISTINCT 83 AS col0, 43 + + + 17 + 54 + + 38 + - - 24
----
83
176

query I rowsort
SELECT ALL 61 * + + 3
----
183

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1394
SELECT COUNT( * ) * CAST( 91 AS SIGNED ) * - 76 AS col1, 61
----
-6916
61

skipif mysql # not compatible
query II rowsort label-1394
SELECT COUNT ( * ) * CAST ( 91 AS INTEGER ) * - 76 AS col1, 61
----
-6916
61

onlyif mysql # DIV for integer division: 
query I rowsort label-1395
SELECT 58 * 34 DIV 24 * 1
----
82

skipif mysql # not compatible
query I rowsort label-1395
SELECT 58 * 34 / 24 * 1
----
82

query I rowsort
SELECT NULLIF ( + 51, 16 ) AS col0
----
51

query I rowsort
SELECT ALL 1 + 36
----
37

query I rowsort
SELECT DISTINCT + 97 + 82 * 18 * + 7 * + + 98 * + ( + + 88 ) AS col2
----
89103265

onlyif mysql # aggregate syntax: 
query I rowsort label-1399
SELECT ALL - CASE - - 39 WHEN + 93 * - - COUNT( * ) + - 59 THEN + + 60 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1399
SELECT ALL - CASE - - 39 WHEN + 93 * - - COUNT ( * ) + - 59 THEN + + 60 END AS col2
----
NULL

query I rowsort
SELECT + 54 - + + 61 + + 45
----
38

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

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

query I rowsort
SELECT ALL - - 11 * - + 49
----
-539

query II rowsort
SELECT + - 44 AS col0, 58 * + 74 col1
----
-44
4292

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1404
SELECT DISTINCT 46 + + - ( 64 ) + - 84 DIV ( 67 ) * + 21 + + 8 DIV - SUM( DISTINCT + - ( + 80 ) )
----
-39

skipif mysql # not compatible
query I rowsort label-1404
SELECT DISTINCT 46 + + - ( 64 ) + - 84 / ( 67 ) * + 21 + + 8 / - SUM ( DISTINCT + - ( + 80 ) )
----
-39

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

skipif mysql # not compatible
query I rowsort label-1405
SELECT + 20 + - ( - COUNT ( * ) ) AS col1
----
21

query II rowsort
SELECT + - 90 AS col0, 33 + + 18 + 74 + - + 50 + + - 58 * + 46 * 29 AS col1
----
-90
-77297

onlyif mysql # aggregate syntax: 
query I rowsort label-1407
SELECT + 35 * - - ( + 32 ) + + CASE 80 WHEN - MAX( - 20 ) THEN 62 * - - 75 + + - 37 ELSE NULL END + - COUNT( * ) + + COALESCE ( + 96, + 0 + + COUNT( * ), 70 * - 15 * 30 * 82 * 62 * 4 / - 87 * MAX( DISTINCT + 40 ) * 91 / + MAX( ALL + 58 ) * - + 93 + + 23 / + - ( + 21 ) * + 91 - COUNT( * ) * MIN( ALL - 92 ) + 78, 31 ) * 61 * 16 / - 85
----
NULL

skipif mysql # not compatible
query I rowsort label-1407
SELECT + 35 * - - ( + 32 ) + + CASE 80 WHEN - MAX ( - 20 ) THEN 62 * - - 75 + + - 37 ELSE NULL END + - COUNT ( * ) + + COALESCE ( + 96, + 0 + + COUNT ( * ), 70 * - 15 * 30 * 82 * 62 * 4 / - 87 * MAX ( DISTINCT + 40 ) * 91 / + MAX ( ALL + 58 ) * - + 93 + + 23 / + - ( + 21 ) * + 91 - COUNT ( * ) * MIN ( ALL - 92 ) + 78, 31 ) * 61 * 16 / - 85
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1408
SELECT + 48 * - - COUNT( ALL + 32 ) + + NULLIF ( + + 49, 15 ) + - 80
----
17

skipif mysql # not compatible
query I rowsort label-1408
SELECT + 48 * - - COUNT ( ALL + 32 ) + + NULLIF ( + + 49, 15 ) + - 80
----
17

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1409
SELECT DISTINCT - - CAST( + + CASE + 12 WHEN - - 77 THEN NULL ELSE 95 END AS SIGNED ) * - 36 + 94 + 62 + 51 col2
----
-3213

skipif mysql # not compatible
query I rowsort label-1409
SELECT DISTINCT - - CAST ( + + CASE + 12 WHEN - - 77 THEN NULL ELSE 95 END AS INTEGER ) * - 36 + 94 + 62 + 51 col2
----
-3213

query I rowsort
SELECT ALL - 62 * 84 AS col0
----
-5208

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1412
SELECT + 2 col0, 1 + - SUM( 27 ) * ( + COUNT( DISTINCT + 83 ) ) * - MAX( ALL + 24 ) + - 27 AS col1
----
2
622

skipif mysql # not compatible
query II rowsort label-1412
SELECT + 2 col0, 1 + - SUM ( 27 ) * ( + COUNT ( DISTINCT + 83 ) ) * - MAX ( ALL + 24 ) + - 27 AS col1
----
2
622

query I rowsort
SELECT + 97 + - 63 AS col0
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-1414
SELECT COUNT( * ) + + - CASE 99 WHEN 77 THEN - 74 END
----
NULL

skipif mysql # not compatible
query I rowsort label-1414
SELECT COUNT ( * ) + + - CASE 99 WHEN 77 THEN - 74 END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1415
SELECT ALL + 78 DIV - 2
----
-39

skipif mysql # not compatible
query I rowsort label-1415
SELECT ALL + 78 / - 2
----
-39

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1416
SELECT 89 * - 67 AS col0, MAX( - CAST( NULL AS SIGNED ) ) + - - 28 + + - ( 12 )
----
-5963
NULL

skipif mysql # not compatible
query II rowsort label-1416
SELECT 89 * - 67 AS col0, MAX ( - CAST ( NULL AS INTEGER ) ) + - - 28 + + - ( 12 )
----
-5963
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1417
SELECT DISTINCT SUM( - + 41 ) * + 39 * + ( 70 ) AS col0
----
-111930

skipif mysql # not compatible
query I rowsort label-1417
SELECT DISTINCT SUM ( - + 41 ) * + 39 * + ( 70 ) AS col0
----
-111930

query I rowsort
SELECT DISTINCT + 60 * + 94 * 84 AS col0
----
473760

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1419
SELECT - CAST( 38 AS SIGNED ) DIV + - COUNT( * ) + - + 29 + + + 15 DIV - 19
----
9

skipif mysql # not compatible
query I rowsort label-1419
SELECT - CAST ( 38 AS INTEGER ) / + - COUNT ( * ) + - + 29 + + + 15 / - 19
----
9

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1421
SELECT ALL + COUNT( * ) + - + 87 AS col0, MAX( DISTINCT CAST( NULL AS SIGNED ) ) AS col2
----
-86
NULL

skipif mysql # not compatible
query II rowsort label-1421
SELECT ALL + COUNT ( * ) + - + 87 AS col0, MAX ( DISTINCT CAST ( NULL AS INTEGER ) ) AS col2
----
-86
NULL

query I rowsort
SELECT - 67 + 23
----
-44

query I rowsort
SELECT + 32 * 48 * + - 78
----
-119808

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1424
SELECT - 43 + + CAST( 10 AS SIGNED ) + - - 28
----
-5

skipif mysql # not compatible
query I rowsort label-1424
SELECT - 43 + + CAST ( 10 AS INTEGER ) + - - 28
----
-5

query I rowsort
SELECT + 49 - - 86 AS col1
----
135

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1426
SELECT ALL CAST( NULL AS SIGNED ) + 55 + CASE - + 84 WHEN - 53 + - 52 * - COUNT( * ) THEN + 52 + + 22 END / + 65
----
NULL

skipif mysql # not compatible
query I rowsort label-1426
SELECT ALL CAST ( NULL AS INTEGER ) + 55 + CASE - + 84 WHEN - 53 + - 52 * - COUNT ( * ) THEN + 52 + + 22 END / + 65
----
NULL

query I rowsort
SELECT - 20 + 94
----
74

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1428
SELECT + 96 + + MIN( DISTINCT + + CAST( 20 AS SIGNED ) ) AS col2
----
116

skipif mysql # not compatible
query I rowsort label-1428
SELECT + 96 + + MIN ( DISTINCT + + CAST ( 20 AS INTEGER ) ) AS col2
----
116

query I rowsort
SELECT ALL 70 * - ( - - 29 ) * - + 96 + 57 + - + 81 * 36
----
192021

onlyif mysql # aggregate syntax: 
query I rowsort label-1430
SELECT ALL + - NULLIF ( NULLIF ( - - 78, - CASE + 16 WHEN - - 84 * - 61 * MIN( - 58 ) + + SUM( DISTINCT + - 73 ) - - 80 + + 68 * + 47 * - 88 * COUNT( * ) - - - 35 + - 93 THEN 31 END + + COUNT( * ) ), + COUNT( * ) ) * - 48 + + - 86 + + CASE 51 WHEN + 36 THEN 6 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1430
SELECT ALL + - NULLIF ( NULLIF ( - - 78, - CASE + 16 WHEN - - 84 * - 61 * MIN ( - 58 ) + + SUM ( DISTINCT + - 73 ) - - 80 + + 68 * + 47 * - 88 * COUNT ( * ) - - - 35 + - 93 THEN 31 END + + COUNT ( * ) ), + COUNT ( * ) ) * - 48 + + - 86 + + CASE 51 WHEN + 36 THEN 6 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1431
SELECT DISTINCT - COUNT( * ) * COALESCE ( - + NULLIF ( 34, - 56 ), 17 * + 33 + + 21, - 31 ) + + 95
----
129

skipif mysql # not compatible
query I rowsort label-1431
SELECT DISTINCT - COUNT ( * ) * COALESCE ( - + NULLIF ( 34, - 56 ), 17 * + 33 + + 21, - 31 ) + + 95
----
129

onlyif mysql # aggregate syntax: 
query I rowsort label-1432
SELECT - COUNT( * ) * - NULLIF ( + 53, - CASE 44 WHEN 63 THEN NULL WHEN 3 * - + 85 + - COUNT( * ) * 48 + - - 28 THEN + COUNT( * ) ELSE NULL END ) + - + 25 + - 24 + + MIN( + 83 ) + + - 65 * 29
----
-1798

skipif mysql # not compatible
query I rowsort label-1432
SELECT - COUNT ( * ) * - NULLIF ( + 53, - CASE 44 WHEN 63 THEN NULL WHEN 3 * - + 85 + - COUNT ( * ) * 48 + - - 28 THEN + COUNT ( * ) ELSE NULL END ) + - + 25 + - 24 + + MIN ( + 83 ) + + - 65 * 29
----
-1798

onlyif mysql # aggregate syntax: 
query I rowsort label-1433
SELECT ALL - COUNT( - - 42 ) * 63 + 25
----
-38

skipif mysql # not compatible
query I rowsort label-1433
SELECT ALL - COUNT ( - - 42 ) * 63 + 25
----
-38

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

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

query II rowsort
SELECT + 18 * + 77 AS col0, 4
----
1386
4

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1436
SELECT + CASE + - 51 WHEN 71 THEN NULL ELSE + + 84 END * - COUNT( * ) + + - 3 + COUNT( * ) + + 58 AS col2, + 58 DIV 55
----
-28
1

skipif mysql # not compatible
query II rowsort label-1436
SELECT + CASE + - 51 WHEN 71 THEN NULL ELSE + + 84 END * - COUNT ( * ) + + - 3 + COUNT ( * ) + + 58 AS col2, + 58 / 55
----
-28
1

query I rowsort
SELECT - - 83 + + + 11 + - 5 AS col1
----
89

query I rowsort
SELECT ALL 4 * + ( 75 ) - - 80
----
380

query I rowsort
SELECT + - 22 * + 94
----
-2068

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1440
SELECT DISTINCT + MAX( - 15 ) DIV + 27 * - 99 + - + 93 * 37 AS col0
----
-3441

skipif mysql # not compatible
query I rowsort label-1440
SELECT DISTINCT + MAX ( - 15 ) / + 27 * - 99 + - + 93 * 37 AS col0
----
-3441

onlyif mysql # DIV for integer division: 
query II rowsort label-1441
SELECT - 90 * - 16 AS col0, 39 DIV - COALESCE ( ( - + 22 ), - + 97 )
----
1440
1

skipif mysql # not compatible
query II rowsort label-1441
SELECT - 90 * - 16 AS col0, 39 / - COALESCE ( ( - + 22 ), - + 97 )
----
1440
1

query I rowsort
SELECT - 39 + 36 + + 4 * + - 17 * 40 AS col0
----
-2723

query II rowsort
SELECT DISTINCT 4, 26 * 73 AS col1
----
4
1898

onlyif mysql # aggregate syntax: 
query I rowsort label-1444
SELECT ALL COALESCE ( 70, - 65, - COUNT( * ) )
----
70

skipif mysql # not compatible
query I rowsort label-1444
SELECT ALL COALESCE ( 70, - 65, - COUNT ( * ) )
----
70

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1445
SELECT - 9, 83 DIV + 34 - - - MAX( ALL + + 58 ) + + + 90 + - 91 + - - 82 * + NULLIF ( + 7, - + 50 ) * 60 AS col1
----
-9
34383

skipif mysql # not compatible
query II rowsort label-1445
SELECT - 9, 83 / + 34 - - - MAX ( ALL + + 58 ) + + + 90 + - 91 + - - 82 * + NULLIF ( + 7, - + 50 ) * 60 AS col1
----
-9
34383

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

skipif mysql # not compatible
query I rowsort label-1446
SELECT DISTINCT COUNT ( DISTINCT 67 ) * + - 73 AS col2
----
-73

query I rowsort
SELECT DISTINCT - 28 + + ( + + 88 ) + + 6 AS col2
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-1448
SELECT ALL COALESCE ( + - MAX( + + 25 ), + + COUNT( * ) * + 57, + 23 * + 93 )
----
-25

skipif mysql # not compatible
query I rowsort label-1448
SELECT ALL COALESCE ( + - MAX ( + + 25 ), + + COUNT ( * ) * + 57, + 23 * + 93 )
----
-25

onlyif mysql # aggregate syntax: 
query II rowsort label-1449
SELECT 96, NULLIF ( - SUM( + + 86 ), 62 ) AS col0
----
96
-86

skipif mysql # not compatible
query II rowsort label-1449
SELECT 96, NULLIF ( - SUM ( + + 86 ), 62 ) AS col0
----
96
-86

query I rowsort
SELECT - 56 + - + 63
----
-119

query I rowsort
SELECT DISTINCT COALESCE ( - - 76, - 65, + - 74 )
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-1452
SELECT - 44 * - COUNT( * ) col0
----
44

skipif mysql # not compatible
query I rowsort label-1452
SELECT - 44 * - COUNT ( * ) col0
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-1453
SELECT - COUNT( * ) + - 53 * 35 * - - 83 AS col0
----
-153966

skipif mysql # not compatible
query I rowsort label-1453
SELECT - COUNT ( * ) + - 53 * 35 * - - 83 AS col0
----
-153966

onlyif mysql # aggregate syntax: 
query II rowsort label-1454
SELECT - COUNT( * ) AS col1, 51 + - + 66 * - 46 + + 95 * - + 87 + + - ( + + 63 ) AS col0
----
-1
-5241

skipif mysql # not compatible
query II rowsort label-1454
SELECT - COUNT ( * ) AS col1, 51 + - + 66 * - 46 + + 95 * - + 87 + + - ( + + 63 ) AS col0
----
-1
-5241

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1456
SELECT DISTINCT COALESCE ( + SUM( - 73 ), + COUNT( * ) ) AS col1
----
-73

skipif mysql # not compatible
query I rowsort label-1456
SELECT DISTINCT COALESCE ( + SUM ( - 73 ), + COUNT ( * ) ) AS col1
----
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-1457
SELECT ALL + 11 + MAX( - 18 ) * 94 AS col2
----
-1681

skipif mysql # not compatible
query I rowsort label-1457
SELECT ALL + 11 + MAX ( - 18 ) * 94 AS col2
----
-1681

onlyif mysql # aggregate syntax: 
query I rowsort label-1458
SELECT - COUNT( * ) * - 30 col0
----
30

skipif mysql # not compatible
query I rowsort label-1458
SELECT - COUNT ( * ) * - 30 col0
----
30

query I rowsort
SELECT ALL COALESCE ( - - 87, - NULLIF ( - 29, 48 * + + 84 * + 42 ) )
----
87

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

skipif mysql # not compatible
query I rowsort label-1460
SELECT DISTINCT + COUNT ( * ) + + 15 - - 73 / 13
----
21

query I rowsort
SELECT - - 69 * + + 38 * 56
----
146832

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1462
SELECT DISTINCT - + 2 + - 83 * - CAST( - 29 AS SIGNED )
----
-2409

skipif mysql # not compatible
query I rowsort label-1462
SELECT DISTINCT - + 2 + - 83 * - CAST ( - 29 AS INTEGER )
----
-2409

query I rowsort
SELECT ALL + + 40 + ( + 66 ) AS col1
----
106

onlyif mysql # aggregate syntax: 
query I rowsort label-1464
SELECT - MIN( + + 74 ) * - 0 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-1464
SELECT - MIN ( + + 74 ) * - 0 AS col0
----
0

query II rowsort
SELECT 16, + 53 * 68 AS col1
----
16
3604

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

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

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

skipif mysql # not compatible
query I rowsort label-1467
SELECT + MAX ( - 8 )
----
-8

query II rowsort
SELECT - 7 col1, - NULLIF ( + 39, + 81 * 16 + - - 58 + - 46 * + + 6 )
----
-7
-39

query I rowsort
SELECT + + 12 * + CASE WHEN NOT - 77 IS NOT NULL THEN + 71 ELSE 14 END * + 6 + - + 93 + + 98
----
1013

query II rowsort
SELECT DISTINCT + - 90 col0, 15 AS col1
----
-90
15

onlyif mysql # DIV for integer division: 
query I rowsort label-1471
SELECT ALL 64 DIV + 83 - 55 col2
----
-55

skipif mysql # not compatible
query I rowsort label-1471
SELECT ALL 64 / + 83 - 55 col2
----
-55

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1473
SELECT ALL + NULLIF ( 22, + COALESCE ( - + 48, COUNT( * ) + - 59 + - 19 - 14 ) )
----
22

skipif mysql # not compatible
query I rowsort label-1473
SELECT ALL + NULLIF ( 22, + COALESCE ( - + 48, COUNT ( * ) + - 59 + - 19 - 14 ) )
----
22

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1474
SELECT + + SUM( ALL - - CAST( NULL AS SIGNED ) ) * + + 71 - + 63 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1474
SELECT + + SUM ( ALL - - CAST ( NULL AS INTEGER ) ) * + + 71 - + 63 AS col0
----
NULL

query I rowsort
SELECT ALL 91 * + 47
----
4277

onlyif mysql # DIV for integer division: 
query I rowsort label-1476
SELECT DISTINCT - 29 DIV + COALESCE ( - + 22, - 59 )
----
1

skipif mysql # not compatible
query I rowsort label-1476
SELECT DISTINCT - 29 / + COALESCE ( - + 22, - 59 )
----
1

query I rowsort
SELECT DISTINCT 39 * 88 * + 6 AS col2
----
20592

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1478
SELECT 27 col0, 37 * - MIN( - 87 ) + - CAST( - 14 AS SIGNED )
----
27
3233

skipif mysql # not compatible
query II rowsort label-1478
SELECT 27 col0, 37 * - MIN ( - 87 ) + - CAST ( - 14 AS INTEGER )
----
27
3233

query I rowsort
SELECT - - 90 + 86
----
176

query I rowsort
SELECT + - 85 * + 4 * - 85 AS col2
----
28900

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1481
SELECT - 89 * + CAST( + SUM( - + 83 ) AS SIGNED ) + - MIN( + 89 )
----
7298

skipif mysql # not compatible
query I rowsort label-1481
SELECT - 89 * + CAST ( + SUM ( - + 83 ) AS INTEGER ) + - MIN ( + 89 )
----
7298

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1483
SELECT + 64 * 8 + + - COUNT( * ) + + MIN( + - 93 )
----
418

skipif mysql # not compatible
query I rowsort label-1483
SELECT + 64 * 8 + + - COUNT ( * ) + + MIN ( + - 93 )
----
418

onlyif mysql # aggregate syntax: 
query II rowsort label-1484
SELECT ALL COUNT( * ) * - + 28 AS col1, + ( 12 ) * + 76
----
-28
912

skipif mysql # not compatible
query II rowsort label-1484
SELECT ALL COUNT ( * ) * - + 28 AS col1, + ( 12 ) * + 76
----
-28
912

onlyif mysql # aggregate syntax: 
query I rowsort label-1485
SELECT + 62 + + ( - 4 ) - - 47 * + COUNT( * ) + 47 AS col1
----
152

skipif mysql # not compatible
query I rowsort label-1485
SELECT + 62 + + ( - 4 ) - - 47 * + COUNT ( * ) + 47 AS col1
----
152

onlyif mysql # aggregate syntax: 
query I rowsort label-1486
SELECT ALL - ( + + MIN( ALL + 86 ) ) * 49
----
-4214

skipif mysql # not compatible
query I rowsort label-1486
SELECT ALL - ( + + MIN ( ALL + 86 ) ) * 49
----
-4214

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

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

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

skipif mysql # not compatible
query I rowsort label-1488
SELECT DISTINCT 3 / 79 / + COUNT ( * )
----
0

query I rowsort
SELECT 14 + + 52 + + 93 * - 95
----
-8769

onlyif mysql # aggregate syntax: 
query I rowsort label-1490
SELECT ( + MIN( - - 91 ) ) * + - 37 col0
----
-3367

skipif mysql # not compatible
query I rowsort label-1490
SELECT ( + MIN ( - - 91 ) ) * + - 37 col0
----
-3367

onlyif mysql # aggregate syntax: 
query I rowsort label-1491
SELECT 58 * + COUNT( * ) * 58 AS col2
----
3364

skipif mysql # not compatible
query I rowsort label-1491
SELECT 58 * + COUNT ( * ) * 58 AS col2
----
3364

onlyif mysql # aggregate syntax: 
query III rowsort label-1492
SELECT DISTINCT + COUNT( * ) + 44, 16 * + 89 * + - 84 AS col1, - + 10 AS col0
----
45
-119616
-10

skipif mysql # not compatible
query III rowsort label-1492
SELECT DISTINCT + COUNT ( * ) + 44, 16 * + 89 * + - 84 AS col1, - + 10 AS col0
----
45
-119616
-10

query I rowsort
SELECT ALL 2 + + ( + 70 ) AS col0
----
72

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1494
SELECT DISTINCT + 98 + + COALESCE ( + 75, + + CAST( - 92 AS SIGNED ) * - 5 + 1 + + 57, - COALESCE ( 65, - 97, + 66 * + - 50 ) * + - 45, + COUNT( + 60 ) )
----
173

skipif mysql # not compatible
query I rowsort label-1494
SELECT DISTINCT + 98 + + COALESCE ( + 75, + + CAST ( - 92 AS INTEGER ) * - 5 + 1 + + 57, - COALESCE ( 65, - 97, + 66 * + - 50 ) * + - 45, + COUNT ( + 60 ) )
----
173

onlyif mysql # aggregate syntax: 
query I rowsort label-1495
SELECT - NULLIF ( 51, 72 + + COUNT( * ) + 72 * + 54 ) col1
----
-51

skipif mysql # not compatible
query I rowsort label-1495
SELECT - NULLIF ( 51, 72 + + COUNT ( * ) + 72 * + 54 ) col1
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-1496
SELECT CASE - + 8 WHEN + - NULLIF ( + - 60, + 34 * + COUNT( * ) + + 3 ) * + - 81 + 28 THEN - 53 END * 21 + COALESCE ( - ( - - 52 ), + 24, 88 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1496
SELECT CASE - + 8 WHEN + - NULLIF ( + - 60, + 34 * + COUNT ( * ) + + 3 ) * + - 81 + 28 THEN - 53 END * 21 + COALESCE ( - ( - - 52 ), + 24, 88 ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1497
SELECT + 0 + - 66 AS col2, ( COUNT( * ) ) AS col1
----
-66
1

skipif mysql # not compatible
query II rowsort label-1497
SELECT + 0 + - 66 AS col2, ( COUNT ( * ) ) AS col1
----
-66
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1498
SELECT 37 * + MAX( ALL - 7 ) + + - 92 AS col0
----
-351

skipif mysql # not compatible
query I rowsort label-1498
SELECT 37 * + MAX ( ALL - 7 ) + + - 92 AS col0
----
-351

query I rowsort
SELECT 68 + + 77 AS col0
----
145

query I rowsort
SELECT ALL - 75 * 71 + 28 col1
----
-5297

onlyif mysql # aggregate syntax: 
query I rowsort label-1501
SELECT - 50 + + + SUM( DISTINCT - 65 ) + + - 32 + - 56 AS col0
----
-203

skipif mysql # not compatible
query I rowsort label-1501
SELECT - 50 + + + SUM ( DISTINCT - 65 ) + + - 32 + - 56 AS col0
----
-203

query I rowsort
SELECT + 89 * - 39 + 44 * + 27 * + - 99
----
-121083

onlyif mysql # aggregate syntax: 
query I rowsort label-1503
SELECT 44 * + NULLIF ( 12, - 43 + COUNT( * ) - - COUNT( * ) ) * + 79 + + 26 - 31 + - 3
----
41704

skipif mysql # not compatible
query I rowsort label-1503
SELECT 44 * + NULLIF ( 12, - 43 + COUNT ( * ) - - COUNT ( * ) ) * + 79 + + 26 - 31 + - 3
----
41704

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1504
SELECT + ( + 64 ) / - ( 16 ) * + - CAST( NULL AS SIGNED ) + - 5 + 83 + + COALESCE ( - 62, - 6 ) * + 90 * - 46 + + 64 * + 89 * - 87 * + - 93
----
NULL

skipif mysql # not compatible
query I rowsort label-1504
SELECT + ( + 64 ) / - ( 16 ) * + - CAST ( NULL AS INTEGER ) + - 5 + 83 + + COALESCE ( - 62, - 6 ) * + 90 * - 46 + + 64 * + 89 * - 87 * + - 93
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1505
SELECT - COALESCE ( 88, + MIN( DISTINCT + - ( - 75 ) ) + 87 - + + CAST( - 77 AS SIGNED ) ) AS col0
----
-88

skipif mysql # not compatible
query I rowsort label-1505
SELECT - COALESCE ( 88, + MIN ( DISTINCT + - ( - 75 ) ) + 87 - + + CAST ( - 77 AS INTEGER ) ) AS col0
----
-88

query I rowsort
SELECT 24 * 80 * + 23 AS col0
----
44160

query I rowsort
SELECT + + NULLIF ( + + 71, + + 18 ) AS col0
----
71

query I rowsort
SELECT ALL + 91 + + 36 AS col1
----
127

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1509
SELECT DISTINCT - 74 + - 64 + - 4 DIV 1 + + - CAST( 68 AS SIGNED ) - - - 45
----
-255

skipif mysql # not compatible
query I rowsort label-1509
SELECT DISTINCT - 74 + - 64 + - 4 / 1 + + - CAST ( 68 AS INTEGER ) - - - 45
----
-255

onlyif mysql # aggregate syntax: 
query II rowsort label-1510
SELECT - MAX( DISTINCT + 28 ) * + - 4 + + - COUNT( DISTINCT + - 6 ) * ( + - 84 ) * - ( - - 58 ) * - + 50, 4 + - MIN( ALL + 1 ) AS col2
----
243712
3

skipif mysql # not compatible
query II rowsort label-1510
SELECT - MAX ( DISTINCT + 28 ) * + - 4 + + - COUNT ( DISTINCT + - 6 ) * ( + - 84 ) * - ( - - 58 ) * - + 50, 4 + - MIN ( ALL + 1 ) AS col2
----
243712
3

query I rowsort
SELECT 27 * - NULLIF ( + 31, + 38 ) col2
----
-837

onlyif mysql # aggregate syntax: 
query I rowsort label-1512
SELECT ALL - 56 + - COUNT( - 31 )
----
-57

skipif mysql # not compatible
query I rowsort label-1512
SELECT ALL - 56 + - COUNT ( - 31 )
----
-57

query II rowsort
SELECT + 7 AS col2, 11
----
7
11

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1514
SELECT - 15 * + + CAST( + 47 AS SIGNED ) + 29 + MIN( DISTINCT + 69 ) AS col2
----
-607

skipif mysql # not compatible
query I rowsort label-1514
SELECT - 15 * + + CAST ( + 47 AS INTEGER ) + 29 + MIN ( DISTINCT + 69 ) AS col2
----
-607

onlyif mysql # aggregate syntax: 
query I rowsort label-1515
SELECT 17 - + + COUNT( * ) + MIN( 26 ) AS col0
----
42

skipif mysql # not compatible
query I rowsort label-1515
SELECT 17 - + + COUNT ( * ) + MIN ( 26 ) AS col0
----
42

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1517
SELECT 42 * + COUNT( 15 ) AS col0, 62 AS col2
----
42
62

skipif mysql # not compatible
query II rowsort label-1517
SELECT 42 * + COUNT ( 15 ) AS col0, 62 AS col2
----
42
62

onlyif mysql # DIV for integer division: 
query I rowsort label-1518
SELECT ALL 84 DIV + - 95 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-1518
SELECT ALL 84 / + - 95 AS col2
----
0

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

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

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

skipif mysql # not compatible
query I rowsort label-1520
SELECT ALL 49 / + - COUNT ( * ) AS col2
----
-49

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1522
SELECT - CASE - CAST( 90 AS SIGNED ) WHEN 80 THEN - COALESCE ( - 53, CAST( NULL AS SIGNED ), - ( + - 8 ) ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1522
SELECT - CASE - CAST ( 90 AS INTEGER ) WHEN 80 THEN - COALESCE ( - 53, CAST ( NULL AS INTEGER ), - ( + - 8 ) ) END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1523
SELECT - SUM( DISTINCT 49 ) + + - NULLIF ( + 21, + - 44 ) - 71 AS col0
----
-141

skipif mysql # not compatible
query I rowsort label-1523
SELECT - SUM ( DISTINCT 49 ) + + - NULLIF ( + 21, + - 44 ) - 71 AS col0
----
-141

query I rowsort
SELECT ALL + - 72 - + + 27 AS col2
----
-99

onlyif mysql # aggregate syntax: 
query II rowsort label-1525
SELECT ALL - - 10 * + + COUNT( * ) + - 68 * + 2 * 18 col0, 34
----
-2438
34

skipif mysql # not compatible
query II rowsort label-1525
SELECT ALL - - 10 * + + COUNT ( * ) + - 68 * + 2 * 18 col0, 34
----
-2438
34

onlyif mysql # aggregate syntax: 
query I rowsort label-1526
SELECT ALL 67 * + MAX( DISTINCT + 46 )
----
3082

skipif mysql # not compatible
query I rowsort label-1526
SELECT ALL 67 * + MAX ( DISTINCT + 46 )
----
3082

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

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

skipif mysql # not compatible
query I rowsort label-1528
SELECT - - MAX ( CAST ( NULL AS INTEGER ) ) AS col2
----
NULL

query I rowsort
SELECT - 87 - - + 58 * - 17 + - ( - 78 )
----
-995

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1530
SELECT + COUNT( + - CAST( NULL AS DECIMAL ) ) * MIN( DISTINCT - + CASE 13 WHEN - 12 * + 81 THEN - 47 * - 98 WHEN + - 62 THEN + + ( + 65 ) ELSE NULL END ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1530
SELECT + COUNT ( + - CAST ( NULL AS REAL ) ) * MIN ( DISTINCT - + CASE 13 WHEN - 12 * + 81 THEN - 47 * - 98 WHEN + - 62 THEN + + ( + 65 ) ELSE NULL END ) col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1531
SELECT + 9 DIV + 69 - - - 74 + + + 95 * 84 + - NULLIF ( COALESCE ( + 61, MAX( ALL 50 ) ), 47 ) - + 34
----
7811

skipif mysql # not compatible
query I rowsort label-1531
SELECT + 9 / + 69 - - - 74 + + + 95 * 84 + - NULLIF ( COALESCE ( + 61, MAX ( ALL 50 ) ), 47 ) - + 34
----
7811

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

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

query I rowsort
SELECT DISTINCT - - 42 * - 19 AS col0
----
-798

onlyif mysql # aggregate syntax: 
query I rowsort label-1534
SELECT ALL + 41 * + CASE + CASE + 1 WHEN 73 THEN - 5 / + - 86 END WHEN + 90 * + - COUNT( * ) THEN NULL ELSE 66 + + SUM( 86 ) - 41 END + 28
----
4579

skipif mysql # not compatible
query I rowsort label-1534
SELECT ALL + 41 * + CASE + CASE + 1 WHEN 73 THEN - 5 / + - 86 END WHEN + 90 * + - COUNT ( * ) THEN NULL ELSE 66 + + SUM ( 86 ) - 41 END + 28
----
4579

query I rowsort
SELECT DISTINCT + + 38 * 20 + - 75 + - 13
----
672

onlyif mysql # aggregate syntax: 
query II rowsort label-1536
SELECT ALL + - 72 * MIN( DISTINCT + - 43 ) + + + 66 * - 88 AS col1, - 90
----
-2712
-90

skipif mysql # not compatible
query II rowsort label-1536
SELECT ALL + - 72 * MIN ( DISTINCT + - 43 ) + + + 66 * - 88 AS col1, - 90
----
-2712
-90

onlyif mysql # DIV for integer division: 
query I rowsort label-1537
SELECT - 68 * 49 - - 76 DIV 47 col0
----
-3331

skipif mysql # not compatible
query I rowsort label-1537
SELECT - 68 * 49 - - 76 / 47 col0
----
-3331

query I rowsort
SELECT ALL + ( - + CASE 86 WHEN 85 - - 21 THEN 31 * - 64 END )
----
NULL

query I rowsort
SELECT DISTINCT - 33 * - ( 43 ) AS col1
----
1419

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

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

query I rowsort
SELECT DISTINCT + 44 * - + 18 + - 1 AS col1
----
-793

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

skipif mysql # not compatible
query I rowsort label-1542
SELECT SUM ( ALL - 60 )
----
-60

onlyif mysql # aggregate syntax: 
query II rowsort label-1543
SELECT ALL + 97 AS col2, MAX( - - 81 ) col0
----
97
81

skipif mysql # not compatible
query II rowsort label-1543
SELECT ALL + 97 AS col2, MAX ( - - 81 ) col0
----
97
81

onlyif mysql # aggregate syntax: 
query II rowsort label-1544
SELECT COUNT( * ) AS col0, - SUM( NULLIF ( - 94, - 79 ) )
----
1
94

skipif mysql # not compatible
query II rowsort label-1544
SELECT COUNT ( * ) AS col0, - SUM ( NULLIF ( - 94, - 79 ) )
----
1
94

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1545
SELECT DISTINCT + CAST( - 60 AS SIGNED ) - - COUNT( * )
----
-59

skipif mysql # not compatible
query I rowsort label-1545
SELECT DISTINCT + CAST ( - 60 AS INTEGER ) - - COUNT ( * )
----
-59

query II rowsort
SELECT ALL + 87 AS col0, 62 AS col0
----
87
62

onlyif mysql # aggregate syntax: 
query I rowsort label-1547
SELECT MAX( DISTINCT 15 ) AS col0
----
15

skipif mysql # not compatible
query I rowsort label-1547
SELECT MAX ( DISTINCT 15 ) AS col0
----
15

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1548
SELECT + 73 * + + 26 * + 91 + - 45 DIV + + COUNT( * )
----
172673

skipif mysql # not compatible
query I rowsort label-1548
SELECT + 73 * + + 26 * + 91 + - 45 / + + COUNT ( * )
----
172673

query I rowsort
SELECT - 35 * + 62 + 66 + 53
----
-2051

query I rowsort
SELECT - 13 * - - 19 * 75 * + 70 AS col1
----
-1296750

query I rowsort
SELECT - 31 + - 84 + - 76 AS col0
----
-191

query I rowsort
SELECT - COALESCE ( + 8, + 13 * - 78 + 38 * + 14 ) col2
----
-8

query I rowsort
SELECT DISTINCT 43 - + - 37 * - 33 AS col1
----
-1178

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1554
SELECT - COALESCE ( - 19, + 76 * + - NULLIF ( + 20, - + COUNT( * ) ) + - - 4 + + + CASE - - 10 WHEN + 43 + + 42 / + CAST( CASE - 24 WHEN - 5 THEN NULL WHEN 98 - + + 11 * - + 99 THEN - ( 46 ) / 7 + + 76 + + 94 + - COUNT( * ) * - 44 * - 36 WHEN + 84 THEN NULL ELSE + 16 + + 12 + 53 END AS DECIMAL ) THEN + - 66 WHEN + ( + + ( - 36 ) ) + + 51 THEN + + 95 ELSE - 56 * + 66 END * MIN( + 69 ) )
----
19

skipif mysql # not compatible
query I rowsort label-1554
SELECT - COALESCE ( - 19, + 76 * + - NULLIF ( + 20, - + COUNT ( * ) ) + - - 4 + + + CASE - - 10 WHEN + 43 + + 42 / + CAST ( CASE - 24 WHEN - 5 THEN NULL WHEN 98 - + + 11 * - + 99 THEN - ( 46 ) / 7 + + 76 + + 94 + - COUNT ( * ) * - 44 * - 36 WHEN + 84 THEN NULL ELSE + 16 + + 12 + 53 END AS REAL ) THEN + - 66 WHEN + ( + + ( - 36 ) ) + + 51 THEN + + 95 ELSE - 56 * + 66 END * MIN ( + 69 ) )
----
19

query I rowsort
SELECT + + 30 * + - ( 39 )
----
-1170

onlyif mysql # aggregate syntax: 
query I rowsort label-1556
SELECT ALL + + 53 * - 14 + - COUNT( * )
----
-743

skipif mysql # not compatible
query I rowsort label-1556
SELECT ALL + + 53 * - 14 + - COUNT ( * )
----
-743

query II rowsort
SELECT DISTINCT 92 AS col2, 77
----
92
77

query I rowsort
SELECT DISTINCT + 8 * 39
----
312

query I rowsort
SELECT - ( + 84 ) col0
----
-84

onlyif mysql # DIV for integer division: 
query II rowsort label-1560
SELECT DISTINCT 92 AS col0, - 69 DIV 96 + - 11 AS col2
----
92
-11

skipif mysql # not compatible
query II rowsort label-1560
SELECT DISTINCT 92 AS col0, - 69 / 96 + - 11 AS col2
----
92
-11

query I rowsort
SELECT - 57 + - 9
----
-66

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

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

query II rowsort
SELECT - 48 AS col2, 5 + - 27 AS col1
----
-48
-22

onlyif mysql # aggregate syntax: 
query II rowsort label-1564
SELECT + ( - + 94 ) + MAX( DISTINCT + 59 ), + 51 col1
----
-35
51

skipif mysql # not compatible
query II rowsort label-1564
SELECT + ( - + 94 ) + MAX ( DISTINCT + 59 ), + 51 col1
----
-35
51

query II rowsort
SELECT - 82, 7 AS col2
----
-82
7

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1566
SELECT + 85 + - + CASE - - CASE + 73 WHEN - - 50 * + - 41 THEN - COUNT( + 89 ) ELSE NULL END WHEN + + 27 * + MAX( ALL - 6 ) THEN + 15 + 18 * - ( + 33 ) WHEN + 9 + - + COUNT( * ) THEN NULL END - - 88 - - + CAST( NULL AS DECIMAL ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1566
SELECT + 85 + - + CASE - - CASE + 73 WHEN - - 50 * + - 41 THEN - COUNT ( + 89 ) ELSE NULL END WHEN + + 27 * + MAX ( ALL - 6 ) THEN + 15 + 18 * - ( + 33 ) WHEN + 9 + - + COUNT ( * ) THEN NULL END - - 88 - - + CAST ( NULL AS REAL ) col2
----
NULL

query II rowsort
SELECT 21, - 81 AS col1
----
21
-81

query I rowsort
SELECT ALL 28 * ( - - 4 ) col2
----
112

onlyif mysql # DIV for integer division: 
query I rowsort label-1569
SELECT ALL + 23 + 55 - 92 DIV 50
----
77

skipif mysql # not compatible
query I rowsort label-1569
SELECT ALL + 23 + 55 - 92 / 50
----
77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1570
SELECT ALL + 97 AS col0, 19 / CAST( NULL AS SIGNED ) / + - 92 + + SUM( - 9 ) * - 7 * 61 * + 6
----
97
NULL

skipif mysql # not compatible
query II rowsort label-1570
SELECT ALL + 97 AS col0, 19 / CAST ( NULL AS INTEGER ) / + - 92 + + SUM ( - 9 ) * - 7 * 61 * + 6
----
97
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1571
SELECT ALL + + 94 / + 81 / + CAST( NULL AS SIGNED ) + - + CAST( NULL AS SIGNED ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1571
SELECT ALL + + 94 / + 81 / + CAST ( NULL AS INTEGER ) + - + CAST ( NULL AS INTEGER ) col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1572
SELECT + - COUNT( DISTINCT + - 98 ) + 4 DIV - 20 * - 83 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-1572
SELECT + - COUNT ( DISTINCT + - 98 ) + 4 / - 20 * - 83 AS col0
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1573
SELECT ALL 4 * + 62 * ( - 8 ) AS col1, + CAST( - 28 AS SIGNED ) + - 15 + + + 79 AS col2
----
-1984
36

skipif mysql # not compatible
query II rowsort label-1573
SELECT ALL 4 * + 62 * ( - 8 ) AS col1, + CAST ( - 28 AS INTEGER ) + - 15 + + + 79 AS col2
----
-1984
36

query I rowsort
SELECT ( + NULLIF ( 64, - - 22 * - 81 + 76 ) )
----
64

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1575
SELECT 65 * CASE + 62 WHEN + 53 THEN - SUM( ALL CAST( NULL AS SIGNED ) ) END + 7 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1575
SELECT 65 * CASE + 62 WHEN + 53 THEN - SUM ( ALL CAST ( NULL AS INTEGER ) ) END + 7 AS col2
----
NULL

query I rowsort
SELECT + 27 * - - 70 AS col2
----
1890

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-1577
SELECT ( 35 ) AS col1, CAST( NULL AS DECIMAL ) + - - 27
----
35
NULL

skipif mysql # not compatible
query II rowsort label-1577
SELECT ( 35 ) AS col1, CAST ( NULL AS REAL ) + - - 27
----
35
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1578
SELECT 92 DIV + + 51 + - 95 + 45 DIV ( + 55 ) * - 39
----
-94

skipif mysql # not compatible
query I rowsort label-1578
SELECT 92 / + + 51 + - 95 + 45 / ( + 55 ) * - 39
----
-94

query II rowsort
SELECT ( - - 52 ) AS col2, 47
----
52
47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1580
SELECT + CAST( - 80 AS SIGNED ) col1, + COUNT( * ) * + 99 * COUNT( * ) AS col1
----
-80
99

skipif mysql # not compatible
query II rowsort label-1580
SELECT + CAST ( - 80 AS INTEGER ) col1, + COUNT ( * ) * + 99 * COUNT ( * ) AS col1
----
-80
99

onlyif mysql # aggregate syntax: 
query I rowsort label-1581
SELECT ALL + 40 * - 41 - + + ( - MIN( 53 ) ) col0
----
-1587

skipif mysql # not compatible
query I rowsort label-1581
SELECT ALL + 40 * - 41 - + + ( - MIN ( 53 ) ) col0
----
-1587

query II rowsort
SELECT ALL + 66 * + - ( 41 ) col1, - ( 52 ) * - - 24 + + ( + 66 )
----
-2706
-1182

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1583
SELECT - MAX( DISTINCT 98 ) DIV - + ( 64 ) + + 24 AS col0, - 50 + - 42 + - SUM( DISTINCT + 34 )
----
25
-126

skipif mysql # not compatible
query II rowsort label-1583
SELECT - MAX ( DISTINCT 98 ) / - + ( 64 ) + + 24 AS col0, - 50 + - 42 + - SUM ( DISTINCT + 34 )
----
25
-126

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1584
SELECT + 31 * - - ( 1 ) * - 17 + + 1 * - 23 + 81 DIV - + 37 + - - SUM( + 25 ) + - 63 AS col0
----
-590

skipif mysql # not compatible
query I rowsort label-1584
SELECT + 31 * - - ( 1 ) * - 17 + + 1 * - 23 + 81 / - + 37 + - - SUM ( + 25 ) + - 63 AS col0
----
-590

query I rowsort
SELECT NULLIF ( + + NULLIF ( - 63, - 74 ), - 58 + + 81 )
----
-63

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

skipif mysql # not compatible
query I rowsort label-1586
SELECT ALL + NULLIF ( 44, - COUNT ( * ) )
----
44

onlyif mysql # DIV for integer division: 
query I rowsort label-1587
SELECT - ( + 93 ) DIV + 36 AS col2
----
-2

skipif mysql # not compatible
query I rowsort label-1587
SELECT - ( + 93 ) / + 36 AS col2
----
-2

query I rowsort
SELECT - 90 - - 68 AS col0
----
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-1589
SELECT - MAX( ALL + 60 ) * 78 * + + 59
----
-276120

skipif mysql # not compatible
query I rowsort label-1589
SELECT - MAX ( ALL + 60 ) * 78 * + + 59
----
-276120

onlyif mysql # aggregate syntax: 
query I rowsort label-1590
SELECT NULLIF ( + - COUNT( * ), 94 * 63 ) col0
----
-1

skipif mysql # not compatible
query I rowsort label-1590
SELECT NULLIF ( + - COUNT ( * ), 94 * 63 ) col0
----
-1

query I rowsort
SELECT ALL - 21 * + + 70
----
-1470

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1592
SELECT - + MAX( 99 ) * + - 15 + - CAST( - 61 AS SIGNED ) + + 82 * + + MIN( DISTINCT - 28 ) - MAX( ALL - 77 ) AS col0, 3 * - 48 AS col0
----
-673
-144

skipif mysql # not compatible
query II rowsort label-1592
SELECT - + MAX ( 99 ) * + - 15 + - CAST ( - 61 AS INTEGER ) + + 82 * + + MIN ( DISTINCT - 28 ) - MAX ( ALL - 77 ) AS col0, 3 * - 48 AS col0
----
-673
-144

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1594
SELECT - 89 + + 92 AS col2, - COUNT( * ) + 7 col2
----
3
6

skipif mysql # not compatible
query II rowsort label-1594
SELECT - 89 + + 92 AS col2, - COUNT ( * ) + 7 col2
----
3
6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1595
SELECT - - CAST( NULL AS SIGNED ) - - 75 + - 96 * - 96 / + 50 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1595
SELECT - - CAST ( NULL AS INTEGER ) - - 75 + - 96 * - 96 / + 50 AS col0
----
NULL

query II rowsort
SELECT DISTINCT ( 66 ), - 23 + + 65 AS col0
----
66
42

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

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

query I rowsort
SELECT + 16 * 14 AS col2
----
224

query I rowsort
SELECT ALL + 13 + 26 + - - 66 AS col0
----
105

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1601
SELECT DISTINCT CAST( + 5 AS SIGNED ) AS col0, - 80 * - 89
----
5
7120

skipif mysql # not compatible
query II rowsort label-1601
SELECT DISTINCT CAST ( + 5 AS INTEGER ) AS col0, - 80 * - 89
----
5
7120

query I rowsort
SELECT ALL - 63 * + - 0 + 82 AS col2
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-1603
SELECT ALL + CASE 3 WHEN - - 17 THEN 34 + + - 52 * + + COUNT( * ) ELSE NULL END + + COUNT( ALL - 16 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1603
SELECT ALL + CASE 3 WHEN - - 17 THEN 34 + + - 52 * + + COUNT ( * ) ELSE NULL END + + COUNT ( ALL - 16 )
----
NULL

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

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

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

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

skipif mysql # not compatible
query I rowsort label-1606
SELECT - COUNT ( * ) * - - 79
----
-79

onlyif mysql # aggregate syntax: 
query I rowsort label-1607
SELECT - 32 * NULLIF ( COUNT( ( + 33 ) ), 19 * - + 50 ) AS col1
----
-32

skipif mysql # not compatible
query I rowsort label-1607
SELECT - 32 * NULLIF ( COUNT ( ( + 33 ) ), 19 * - + 50 ) AS col1
----
-32

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1608
SELECT ALL 2 + CAST( NULL AS SIGNED ) + - 41 * 23 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1608
SELECT ALL 2 + CAST ( NULL AS INTEGER ) + - 41 * 23 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1609
SELECT NULLIF ( - COUNT( * ), - 53 / + 65 + + 23 + + 5 ) - - 86 AS col2
----
85

skipif mysql # not compatible
query I rowsort label-1609
SELECT NULLIF ( - COUNT ( * ), - 53 / + 65 + + 23 + + 5 ) - - 86 AS col2
----
85

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1611
SELECT ALL CAST( NULL AS DECIMAL ) / + 2
----
NULL

skipif mysql # not compatible
query I rowsort label-1611
SELECT ALL CAST ( NULL AS REAL ) / + 2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1612
SELECT ALL - 91 AS col2, MAX( + + 51 )
----
-91
51

skipif mysql # not compatible
query II rowsort label-1612
SELECT ALL - 91 AS col2, MAX ( + + 51 )
----
-91
51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1613
SELECT DISTINCT NULLIF ( + 23, 96 * 77 ) * - + COALESCE ( + CAST( NULL AS SIGNED ), 93 ) + + 35 AS col0
----
-2104

skipif mysql # not compatible
query I rowsort label-1613
SELECT DISTINCT NULLIF ( + 23, 96 * 77 ) * - + COALESCE ( + CAST ( NULL AS INTEGER ), 93 ) + + 35 AS col0
----
-2104

query II rowsort
SELECT COALESCE ( + - 26, 97 ) * + 3, + 43 * 72 AS col1
----
-78
3096

onlyif mysql # DIV for integer division: 
query II rowsort label-1615
SELECT ALL - 81, 8 DIV - - ( 33 ) AS col1
----
-81
0

skipif mysql # not compatible
query II rowsort label-1615
SELECT ALL - 81, 8 / - - ( 33 ) AS col1
----
-81
0

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

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

query II rowsort
SELECT ALL - 23 AS col1, 42 AS col2
----
-23
42

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1618
SELECT + 27 DIV - + 88 * - + 27 - - 68 * - NULLIF ( - 46, 4 + - SUM( - 73 ) + 11 + + COUNT( * ) ) + - + COUNT( * )
----
3127

skipif mysql # not compatible
query I rowsort label-1618
SELECT + 27 / - + 88 * - + 27 - - 68 * - NULLIF ( - 46, 4 + - SUM ( - 73 ) + 11 + + COUNT ( * ) ) + - + COUNT ( * )
----
3127

onlyif mysql # aggregate syntax: 
query I rowsort label-1619
SELECT ALL ( - 42 ) * + 31 * + COUNT( * ) * + - 81 * - 69 AS col1
----
-7276878

skipif mysql # not compatible
query I rowsort label-1619
SELECT ALL ( - 42 ) * + 31 * + COUNT ( * ) * + - 81 * - 69 AS col1
----
-7276878

query I rowsort
SELECT 68 * - 27
----
-1836

query I rowsort
SELECT 98 * - - 26 * 47 + + + 7
----
119763

query I rowsort
SELECT ALL - NULLIF ( + - 65, - + 55 )
----
65

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1623
SELECT CAST( + 59 AS SIGNED ) * 64 AS col2
----
3776

skipif mysql # not compatible
query I rowsort label-1623
SELECT CAST ( + 59 AS INTEGER ) * 64 AS col2
----
3776

query II rowsort
SELECT DISTINCT - 99, - 48 AS col1
----
-99
-48

query I rowsort
SELECT ALL + 35 * 16
----
560

onlyif mysql # aggregate syntax: 
query I rowsort label-1626
SELECT ALL 66 / - - CASE + 17 WHEN + COUNT( * ) - - 47 THEN NULL WHEN COUNT( * ) THEN - COUNT( * ) END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1626
SELECT ALL 66 / - - CASE + 17 WHEN + COUNT ( * ) - - 47 THEN NULL WHEN COUNT ( * ) THEN - COUNT ( * ) END col1
----
NULL

query I rowsort
SELECT 57 + 92
----
149

onlyif mysql # aggregate syntax: 
query I rowsort label-1628
SELECT - NULLIF ( 27, + SUM( - 49 ) * + 50 ) * + 77 col2
----
-2079

skipif mysql # not compatible
query I rowsort label-1628
SELECT - NULLIF ( 27, + SUM ( - 49 ) * + 50 ) * + 77 col2
----
-2079

query II rowsort
SELECT + 10 AS col2, 58
----
10
58

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1630
SELECT + 0 DIV + 92 - + + ( - - 14 ) + - NULLIF ( - SUM( ALL - 28 ), + 74 * 20 ) * + 55 + - 2 AS col1
----
-1556

skipif mysql # not compatible
query I rowsort label-1630
SELECT + 0 / + 92 - + + ( - - 14 ) + - NULLIF ( - SUM ( ALL - 28 ), + 74 * 20 ) * + 55 + - 2 AS col1
----
-1556

query I rowsort
SELECT ALL + 67 + + 68
----
135

onlyif mysql # aggregate syntax: 
query I rowsort label-1632
SELECT MIN( DISTINCT + 35 ) + 96
----
131

skipif mysql # not compatible
query I rowsort label-1632
SELECT MIN ( DISTINCT + 35 ) + 96
----
131

query I rowsort
SELECT - 67 + - 27
----
-94

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1636
SELECT - ( + 46 ) - 70 + - 53 + + 17 + - + 46 * COUNT( * )
----
-198

skipif mysql # not compatible
query I rowsort label-1636
SELECT - ( + 46 ) - 70 + - 53 + + 17 + - + 46 * COUNT ( * )
----
-198

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1637
SELECT + NULLIF ( + 21, - 5 ) + - CAST( + SUM( 59 ) AS SIGNED ) * 36 * CAST( 87 AS SIGNED ) AS col0
----
-184767

skipif mysql # not compatible
query I rowsort label-1637
SELECT + NULLIF ( + 21, - 5 ) + - CAST ( + SUM ( 59 ) AS INTEGER ) * 36 * CAST ( 87 AS INTEGER ) AS col0
----
-184767

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

skipif mysql # not compatible
query I rowsort label-1638
SELECT ALL + - COUNT ( * ) + + 29 AS col1
----
28

query II rowsort
SELECT + ( + 37 ) + + + 99 col2, 90
----
136
90

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

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

query II rowsort
SELECT - 51 AS col0, ( + - 54 ) AS col0
----
-51
-54

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1643
SELECT ALL + - 31 * - CAST( NULL AS SIGNED ) * 27 AS col2, 66
----
NULL
66

skipif mysql # not compatible
query II rowsort label-1643
SELECT ALL + - 31 * - CAST ( NULL AS INTEGER ) * 27 AS col2, 66
----
NULL
66

query I rowsort
SELECT 26 + - 21
----
5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1645
SELECT ALL CASE + + 69 WHEN + + 17 THEN - CAST( + 30 AS SIGNED ) * + COUNT( * ) WHEN + + 60 + - 33 + 76 * 93 THEN NULL WHEN + - 81 THEN NULL END - COUNT( * ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1645
SELECT ALL CASE + + 69 WHEN + + 17 THEN - CAST ( + 30 AS INTEGER ) * + COUNT ( * ) WHEN + + 60 + - 33 + 76 * 93 THEN NULL WHEN + - 81 THEN NULL END - COUNT ( * ) col2
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1647
SELECT ALL - ( 80 ) * - + ( + - 92 ) + COUNT( * )
----
-7359

skipif mysql # not compatible
query I rowsort label-1647
SELECT ALL - ( 80 ) * - + ( + - 92 ) + COUNT ( * )
----
-7359

onlyif mysql # aggregate syntax: 
query I rowsort label-1648
SELECT MIN( ALL 98 ) + - - 81 + 47
----
226

skipif mysql # not compatible
query I rowsort label-1648
SELECT MIN ( ALL 98 ) + - - 81 + 47
----
226

onlyif mysql # DIV for integer division: 
query I rowsort label-1649
SELECT 32 DIV + 60
----
0

skipif mysql # not compatible
query I rowsort label-1649
SELECT 32 / + 60
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1650
SELECT 68 DIV + 50, - 41 + - 36 - + + MAX( DISTINCT 31 ) DIV - + NULLIF ( + 57, + 6 ) * + + 84 AS col1
----
1
-77

skipif mysql # not compatible
query II rowsort label-1650
SELECT 68 / + 50, - 41 + - 36 - + + MAX ( DISTINCT 31 ) / - + NULLIF ( + 57, + 6 ) * + + 84 AS col1
----
1
-77

onlyif mysql # DIV for integer division: 
query I rowsort label-1651
SELECT DISTINCT 67 DIV 6 col1
----
11

skipif mysql # not compatible
query I rowsort label-1651
SELECT DISTINCT 67 / 6 col1
----
11

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1652
SELECT ALL 85 DIV COUNT( DISTINCT + 47 )
----
85

skipif mysql # not compatible
query I rowsort label-1652
SELECT ALL 85 / COUNT ( DISTINCT + 47 )
----
85

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1653
SELECT CAST( - 27 AS SIGNED ) DIV - + 76 + + + 71 + + MAX( + 85 ) + - 4 AS col2
----
152

skipif mysql # not compatible
query I rowsort label-1653
SELECT CAST ( - 27 AS INTEGER ) / - + 76 + + + 71 + + MAX ( + 85 ) + - 4 AS col2
----
152

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

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

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

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

query II rowsort
SELECT DISTINCT 25 + 84, 29 * - 88 AS col1
----
109
-2552

query II rowsort
SELECT DISTINCT 84 + + 83 AS col1, ( - + 76 ) AS col0
----
167
-76

onlyif mysql # aggregate syntax: 
query II rowsort label-1658
SELECT COUNT( ALL + 59 ) AS col2, 89
----
1
89

skipif mysql # not compatible
query II rowsort label-1658
SELECT COUNT ( ALL + 59 ) AS col2, 89
----
1
89

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1659
SELECT CAST( + 70 AS SIGNED ) + + 90
----
160

skipif mysql # not compatible
query I rowsort label-1659
SELECT CAST ( + 70 AS INTEGER ) + + 90
----
160

query I rowsort
SELECT ALL + 46 + - - 92
----
138

query I rowsort
SELECT ALL + 87 + - 25 AS col0
----
62

query I rowsort
SELECT + COALESCE ( 82, + 88 ) AS col2
----
82

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1663
SELECT - COUNT( * ) * + 80 - 57 * COUNT( * ) AS col0, + CASE 60 WHEN - - 58 THEN 76 * + 5 DIV + ( + 53 ) + 13 DIV - 69 * - 15 * 89 ELSE - 54 + + 3 END DIV - - 32 - + 32 + - COUNT( * ) + + COUNT( * ) DIV + - CASE - - 1 WHEN + CAST( COUNT( * ) AS SIGNED ) * COUNT( * ) THEN - 0 + + - 78 WHEN + 49 * + + MAX( - + 46 ) + - 62 THEN - 90 ELSE 22 END
----
-137
-34

skipif mysql # not compatible
query II rowsort label-1663
SELECT - COUNT ( * ) * + 80 - 57 * COUNT ( * ) AS col0, + CASE 60 WHEN - - 58 THEN 76 * + 5 / + ( + 53 ) + 13 / - 69 * - 15 * 89 ELSE - 54 + + 3 END / - - 32 - + 32 + - COUNT ( * ) + + COUNT ( * ) / + - CASE - - 1 WHEN + CAST ( COUNT ( * ) AS INTEGER ) * COUNT ( * ) THEN - 0 + + - 78 WHEN + 49 * + + MAX ( - + 46 ) + - 62 THEN - 90 ELSE 22 END
----
-137
-34

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1664
SELECT - 7 + + + 58 * - 45 - + ( 45 ) - + + 46 + 51 * + 12 * + + 88 * - 53 + - CASE WHEN NOT + 90 NOT IN ( + SUM( + 62 ), 64 + 33 + - 67, + - 44 * + CASE - + CAST( NULL AS SIGNED ) WHEN + 46 * 69 THEN + 79 * - - 61 + 55 / - 24 + + 93 + + 98 WHEN - 19 THEN NULL WHEN - COUNT( * ) * + 81 - + 44 * - ( 80 ) + + 52 * - 75 THEN 36 ELSE NULL END ) THEN + 19 END * 87 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1664
SELECT - 7 + + + 58 * - 45 - + ( 45 ) - + + 46 + 51 * + 12 * + + 88 * - 53 + - CASE WHEN NOT + 90 NOT IN ( + SUM ( + 62 ), 64 + 33 + - 67, + - 44 * + CASE - + CAST ( NULL AS INTEGER ) WHEN + 46 * 69 THEN + 79 * - - 61 + 55 / - 24 + + 93 + + 98 WHEN - 19 THEN NULL WHEN - COUNT ( * ) * + 81 - + 44 * - ( 80 ) + + 52 * - 75 THEN 36 ELSE NULL END ) THEN + 19 END * 87 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1665
SELECT DISTINCT - COUNT( ALL + 44 )
----
-1

skipif mysql # not compatible
query I rowsort label-1665
SELECT DISTINCT - COUNT ( ALL + 44 )
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1666
SELECT ALL - + CASE SUM( 2 ) WHEN - 74 THEN NULL ELSE - 18 END DIV - + 14 col2
----
-1

skipif mysql # not compatible
query I rowsort label-1666
SELECT ALL - + CASE SUM ( 2 ) WHEN - 74 THEN NULL ELSE - 18 END / - + 14 col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-1667
SELECT DISTINCT - 13 * - 57 * + 97 * + - COUNT( * ) AS col0
----
-71877

skipif mysql # not compatible
query I rowsort label-1667
SELECT DISTINCT - 13 * - 57 * + 97 * + - COUNT ( * ) AS col0
----
-71877

onlyif mysql # DIV for integer division: 
query I rowsort label-1668
SELECT DISTINCT 52 DIV 29 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-1668
SELECT DISTINCT 52 / 29 AS col2
----
1

query I rowsort
SELECT ALL + 44 - + 24 + + 28 + - ( 79 ) * 67 AS col2
----
-5245

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1670
SELECT - NULLIF ( + CAST( NULL AS SIGNED ), 96 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1670
SELECT - NULLIF ( + CAST ( NULL AS INTEGER ), 96 )
----
NULL

query I rowsort
SELECT ALL - ( + 88 ) - - 45 AS col2
----
-43

onlyif mysql # aggregate syntax: 
query II rowsort label-1672
SELECT DISTINCT - - COUNT( * ) * - - ( 76 ) * - + COUNT( * ) AS col0, + 40
----
-76
40

skipif mysql # not compatible
query II rowsort label-1672
SELECT DISTINCT - - COUNT ( * ) * - - ( 76 ) * - + COUNT ( * ) AS col0, + 40
----
-76
40

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1674
SELECT - 23 + 33 * - + CAST( NULL AS SIGNED ) * - - 27 AS col1, - 1 + + 65 * + 84
----
NULL
5459

skipif mysql # not compatible
query II rowsort label-1674
SELECT - 23 + 33 * - + CAST ( NULL AS INTEGER ) * - - 27 AS col1, - 1 + + 65 * + 84
----
NULL
5459

onlyif mysql # aggregate syntax: 
query I rowsort label-1675
SELECT COALESCE ( - MAX( ALL - 24 ), 5 )
----
24

skipif mysql # not compatible
query I rowsort label-1675
SELECT COALESCE ( - MAX ( ALL - 24 ), 5 )
----
24

query I rowsort
SELECT DISTINCT 55 - + + ( + + 42 )
----
13

query I rowsort
SELECT - NULLIF ( 13, - 89 / - 80 ) * 57 * + + 38
----
-28158

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1679
SELECT DISTINCT COUNT( DISTINCT + 25 ) col2
----
1

skipif mysql # not compatible
query I rowsort label-1679
SELECT DISTINCT COUNT ( DISTINCT + 25 ) col2
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-1680
SELECT + 62 * - - 25 * - 90 * ( - 41 ), COUNT( * ) col2
----
5719500
1

skipif mysql # not compatible
query II rowsort label-1680
SELECT + 62 * - - 25 * - 90 * ( - 41 ), COUNT ( * ) col2
----
5719500
1

query I rowsort
SELECT - 38 - + 72
----
-110

query I rowsort
SELECT - 97 * 13 * - 52
----
65572

query I rowsort
SELECT - 15 - + - 74
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-1684
SELECT ALL - 62 * - MAX( DISTINCT - 82 ) AS col2
----
-5084

skipif mysql # not compatible
query I rowsort label-1684
SELECT ALL - 62 * - MAX ( DISTINCT - 82 ) AS col2
----
-5084

query I rowsort
SELECT ALL + COALESCE ( + ( - - 35 ), - 71, + + 18 + + 91, + 10 )
----
35

onlyif mysql # DIV for integer division: 
query I rowsort label-1686
SELECT + ( - 89 ) DIV + 97 + - 70 + - 39 * + 12 * - 17 + - 97
----
7789

skipif mysql # not compatible
query I rowsort label-1686
SELECT + ( - 89 ) / + 97 + - 70 + - 39 * + 12 * - 17 + - 97
----
7789

query II rowsort
SELECT ( ( - + 17 ) ), 15 AS col2
----
-17
15

query I rowsort
SELECT - 67 + + - 23 AS col0
----
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-1689
SELECT ALL - 62 * + MIN( + 12 ) * ( - - 28 ) AS col2
----
-20832

skipif mysql # not compatible
query I rowsort label-1689
SELECT ALL - 62 * + MIN ( + 12 ) * ( - - 28 ) AS col2
----
-20832

query I rowsort
SELECT ALL 44 * + 82 + 71 + - 48 AS col0
----
3631

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1691
SELECT + SUM( - 80 ) / - 13 - + CAST( NULL AS SIGNED ) * + 19 * + NULLIF ( - - 49, - 9 ) / + 54 - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-1691
SELECT + SUM ( - 80 ) / - 13 - + CAST ( NULL AS INTEGER ) * + 19 * + NULLIF ( - - 49, - 9 ) / + 54 - COUNT ( * )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1692
SELECT + 81 DIV 20 + 6 + + 65 - + 6 + + 23 * + - 33 AS col1
----
-690

skipif mysql # not compatible
query I rowsort label-1692
SELECT + 81 / 20 + 6 + + 65 - + 6 + + 23 * + - 33 AS col1
----
-690

onlyif mysql # aggregate syntax: 
query I rowsort label-1693
SELECT 36 * 60 * - ( - 79 ) * CASE - 47 WHEN + - 28 * - - 21 THEN - - 21 WHEN - + 51 THEN NULL ELSE NULL END + - COUNT( * ) + - 89
----
NULL

skipif mysql # not compatible
query I rowsort label-1693
SELECT 36 * 60 * - ( - 79 ) * CASE - 47 WHEN + - 28 * - - 21 THEN - - 21 WHEN - + 51 THEN NULL ELSE NULL END + - COUNT ( * ) + - 89
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1694
SELECT ALL 52 DIV 72 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-1694
SELECT ALL 52 / 72 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1695
SELECT DISTINCT - - 83 * NULLIF ( 66, 72 ) + - NULLIF ( 88, 30 ) + COUNT( + 12 ) AS col0
----
5391

skipif mysql # not compatible
query I rowsort label-1695
SELECT DISTINCT - - 83 * NULLIF ( 66, 72 ) + - NULLIF ( 88, 30 ) + COUNT ( + 12 ) AS col0
----
5391

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

skipif mysql # not compatible
query I rowsort label-1696
SELECT COUNT ( + 62 ) AS col2
----
1

query I rowsort
SELECT ALL - 84 * 94
----
-7896

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1698
SELECT COUNT( * ), 18 + + + ( - - 83 ) DIV 32 AS col0
----
1
20

skipif mysql # not compatible
query II rowsort label-1698
SELECT COUNT ( * ), 18 + + + ( - - 83 ) / 32 AS col0
----
1
20

onlyif mysql # aggregate syntax: 
query I rowsort label-1699
SELECT + SUM( + 40 ) col0
----
40

skipif mysql # not compatible
query I rowsort label-1699
SELECT + SUM ( + 40 ) col0
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-1700
SELECT ALL - - SUM( + 78 ) * + 42 - - 97 * + 42 * + COUNT( * ) * - - 49 * - ( + - 84 ) - - COUNT( * ) col1
----
16771861

skipif mysql # not compatible
query I rowsort label-1700
SELECT ALL - - SUM ( + 78 ) * + 42 - - 97 * + 42 * + COUNT ( * ) * - - 49 * - ( + - 84 ) - - COUNT ( * ) col1
----
16771861

onlyif mysql # aggregate syntax: 
query I rowsort label-1701
SELECT + 29 * 85 + + MAX( - 88 ) + + 27 * - 17 * - + 80
----
39097

skipif mysql # not compatible
query I rowsort label-1701
SELECT + 29 * 85 + + MAX ( - 88 ) + + 27 * - 17 * - + 80
----
39097

query I rowsort
SELECT + 38 + - 53
----
-15

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

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

query II rowsort
SELECT + 51 + + NULLIF ( - + 72, 43 + - 8 ), - ( - - 1 ) AS col1
----
-21
-1

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

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1706
SELECT ALL + 57 / - CAST( NULL AS DECIMAL ) * 82 * - - COUNT( * ) / MIN( + 63 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1706
SELECT ALL + 57 / - CAST ( NULL AS REAL ) * 82 * - - COUNT ( * ) / MIN ( + 63 ) AS col0
----
NULL

query II rowsort
SELECT ALL - NULLIF ( + 79, + + 71 ) AS col1, - 80
----
-79
-80

query I rowsort
SELECT + - 77 + 62 + - 55 + - + 32 - 94 + 16 - + 71 * 98
----
-7138

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1709
SELECT + 33 DIV + COALESCE ( 92, COUNT( * ), CASE + 17 WHEN + - COALESCE ( 24, - + COUNT( * ) * 13 ) THEN - 95 + + + AVG ( + 69 ) END ) * + - 79 + - + 57 col0
----
-57

skipif mysql # not compatible
query I rowsort label-1709
SELECT + 33 / + COALESCE ( 92, COUNT ( * ), CASE + 17 WHEN + - COALESCE ( 24, - + COUNT ( * ) * 13 ) THEN - 95 + + + AVG ( + 69 ) END ) * + - 79 + - + 57 col0
----
-57

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1711
SELECT + 51 + + COUNT( * ) AS col2
----
52

skipif mysql # not compatible
query I rowsort label-1711
SELECT + 51 + + COUNT ( * ) AS col2
----
52

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

skipif mysql # not compatible
query I rowsort label-1712
SELECT + 62 / - 98
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1713
SELECT - ( - COUNT( ALL + - 33 ) ) + + 46 AS col2
----
47

skipif mysql # not compatible
query I rowsort label-1713
SELECT - ( - COUNT ( ALL + - 33 ) ) + + 46 AS col2
----
47

query I rowsort
SELECT + 39 + - 75 AS col0
----
-36

query I rowsort
SELECT + 91 + + + 82 + - - 50 + 83 * + + 14 AS col1
----
1385

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1717
SELECT ALL NULLIF ( COUNT( * ), - COALESCE ( + CAST( NULL AS DECIMAL ), + ( + - 93 ) * - + CAST( COUNT( * ) AS SIGNED ) * + 12 + - + 69 + 82 * - ( + 95 ) + + 23 / NULLIF ( + + 27, + 74 ) + - 38 ) ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-1717
SELECT ALL NULLIF ( COUNT ( * ), - COALESCE ( + CAST ( NULL AS REAL ), + ( + - 93 ) * - + CAST ( COUNT ( * ) AS INTEGER ) * + 12 + - + 69 + 82 * - ( + 95 ) + + 23 / NULLIF ( + + 27, + 74 ) + - 38 ) ) AS col2
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1718
SELECT DISTINCT 14 + - + COUNT( DISTINCT - - 31 ) DIV + - 94 + 99
----
113

skipif mysql # not compatible
query I rowsort label-1718
SELECT DISTINCT 14 + - + COUNT ( DISTINCT - - 31 ) / + - 94 + 99
----
113

query I rowsort
SELECT ALL + 3 + - 9 AS col0
----
-6

onlyif mysql # aggregate syntax: 
query II rowsort label-1720
SELECT - 67 col2, - ( COUNT( * ) )
----
-67
-1

skipif mysql # not compatible
query II rowsort label-1720
SELECT - 67 col2, - ( COUNT ( * ) )
----
-67
-1

query I rowsort
SELECT DISTINCT 8 + - - 93 + + 62 + - 52 + 46 + - 15 col1
----
142

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1722
SELECT ALL - ( + CASE + COUNT( * ) WHEN + - 32 THEN + 79 DIV 39 ELSE + + 80 * - + 36 * + + 37 + 71 END ) DIV - ( + 64 ) + + + 8 col1
----
-1655

skipif mysql # not compatible
query I rowsort label-1722
SELECT ALL - ( + CASE + COUNT ( * ) WHEN + - 32 THEN + 79 / 39 ELSE + + 80 * - + 36 * + + 37 + 71 END ) / - ( + 64 ) + + + 8 col1
----
-1655

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1724
SELECT ALL 15 DIV - + 80 + - COUNT( DISTINCT - ( 77 ) ) + - - 83 + 89 * 45 DIV - 93, 78 + 95 * - - 8 col1
----
39
838

skipif mysql # not compatible
query II rowsort label-1724
SELECT ALL 15 / - + 80 + - COUNT ( DISTINCT - ( 77 ) ) + - - 83 + 89 * 45 / - 93, 78 + 95 * - - 8 col1
----
39
838

query I rowsort
SELECT 77 * ( + - 37 ) + + - ( ( + 18 ) ) AS col1
----
-2867

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1726
SELECT DISTINCT + COALESCE ( - COUNT( * ), + CAST( NULL AS SIGNED ) + 73 * + 96, - 49 )
----
-1

skipif mysql # not compatible
query I rowsort label-1726
SELECT DISTINCT + COALESCE ( - COUNT ( * ), + CAST ( NULL AS INTEGER ) + 73 * + 96, - 49 )
----
-1

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1727
SELECT ALL CAST( NULL AS DECIMAL ) / - 56 + + ( SUM( 63 ) ) + + ( + NULLIF ( - - 11, 6 - 74 ) ) / - + 39 * - COUNT( * ) * 96
----
NULL

skipif mysql # not compatible
query I rowsort label-1727
SELECT ALL CAST ( NULL AS REAL ) / - 56 + + ( SUM ( 63 ) ) + + ( + NULLIF ( - - 11, 6 - 74 ) ) / - + 39 * - COUNT ( * ) * 96
----
NULL

query I rowsort
SELECT - 10 * - + 9 col0
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-1729
SELECT ALL - COUNT( - 46 ) * 64 + + 20
----
-44

skipif mysql # not compatible
query I rowsort label-1729
SELECT ALL - COUNT ( - 46 ) * 64 + + 20
----
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-1730
SELECT + CASE - 2 WHEN + 75 + + + 81 THEN NULL WHEN + 90 THEN - COUNT( * ) WHEN - 32 * + COUNT( * ) THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1730
SELECT + CASE - 2 WHEN + 75 + + + 81 THEN NULL WHEN + 90 THEN - COUNT ( * ) WHEN - 32 * + COUNT ( * ) THEN NULL END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1731
SELECT ALL - + ( 94 ) * + + 64 * 13, CASE + 92 WHEN 1 * + CAST( NULL AS SIGNED ) THEN NULL ELSE 26 END * 57 * + - COUNT( * ) + MAX( - CAST( NULL AS SIGNED ) ) * - 92 + + 21 + - - COUNT( * ) + 5 + - 22 / + + 34 * - - 63 AS col1
----
-78208
NULL

skipif mysql # not compatible
query II rowsort label-1731
SELECT ALL - + ( 94 ) * + + 64 * 13, CASE + 92 WHEN 1 * + CAST ( NULL AS INTEGER ) THEN NULL ELSE 26 END * 57 * + - COUNT ( * ) + MAX ( - CAST ( NULL AS INTEGER ) ) * - 92 + + 21 + - - COUNT ( * ) + 5 + - 22 / + + 34 * - - 63 AS col1
----
-78208
NULL

query I rowsort
SELECT ALL + 35 * + 33 + + + COALESCE ( - + 45, - + 54 ) + 72 AS col0
----
1182

onlyif mysql # aggregate syntax: 
query II rowsort label-1733
SELECT DISTINCT - 77 - - + COUNT( * ), 73 * + 51 AS col0
----
-76
3723

skipif mysql # not compatible
query II rowsort label-1733
SELECT DISTINCT - 77 - - + COUNT ( * ), 73 * + 51 AS col0
----
-76
3723

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1735
SELECT - 83 * + 13 - - MAX( DISTINCT - 9 ) + - - COUNT( * ) AS col2
----
-1087

skipif mysql # not compatible
query I rowsort label-1735
SELECT - 83 * + 13 - - MAX ( DISTINCT - 9 ) + - - COUNT ( * ) AS col2
----
-1087

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

skipif mysql # not compatible
query II rowsort label-1736
SELECT DISTINCT - - CAST ( NULL AS INTEGER ), MAX ( + - 98 ) * - COUNT ( * ) col2
----
NULL
98

query II rowsort
SELECT - 24, - 51 col1
----
-24
-51

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1738
SELECT - MAX( DISTINCT - + 93 ) + + + 11 + 76 DIV - + 40
----
103

skipif mysql # not compatible
query I rowsort label-1738
SELECT - MAX ( DISTINCT - + 93 ) + + + 11 + 76 / - + 40
----
103

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1739
SELECT 91 * 67, COALESCE ( + 11, + - 86 * 8 * + - COALESCE ( + - CAST( - 83 AS SIGNED ), - 3 + + 24, + 32 ) ) AS col2
----
6097
11

skipif mysql # not compatible
query II rowsort label-1739
SELECT 91 * 67, COALESCE ( + 11, + - 86 * 8 * + - COALESCE ( + - CAST ( - 83 AS INTEGER ), - 3 + + 24, + 32 ) ) AS col2
----
6097
11

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1742
SELECT + CASE SUM( 78 ) WHEN - + 95 THEN NULL WHEN - 56 THEN NULL ELSE + - NULLIF ( - - 10, + - 86 - 75 + + + 46 ) + - - CAST( NULL AS SIGNED ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-1742
SELECT + CASE SUM ( 78 ) WHEN - + 95 THEN NULL WHEN - 56 THEN NULL ELSE + - NULLIF ( - - 10, + - 86 - 75 + + + 46 ) + - - CAST ( NULL AS INTEGER ) END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1743
SELECT ALL + NULLIF ( SUM( + 56 ), 2 ) * + - 29 + 14 AS col1
----
-1610

skipif mysql # not compatible
query I rowsort label-1743
SELECT ALL + NULLIF ( SUM ( + 56 ), 2 ) * + - 29 + 14 AS col1
----
-1610

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1744
SELECT ALL + 92 DIV 39 + 48 + 41 + COUNT( * )
----
92

skipif mysql # not compatible
query I rowsort label-1744
SELECT ALL + 92 / 39 + 48 + 41 + COUNT ( * )
----
92

query I rowsort
SELECT ALL - 28 * - 76 AS col0
----
2128

query I rowsort
SELECT 26 * 14 AS col2
----
364

onlyif mysql # aggregate syntax: 
query I rowsort label-1747
SELECT MAX( - 53 ) * - 93
----
4929

skipif mysql # not compatible
query I rowsort label-1747
SELECT MAX ( - 53 ) * - 93
----
4929

query II rowsort
SELECT DISTINCT 51 * + - 59 AS col2, - 14
----
-3009
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-1749
SELECT DISTINCT 68 + + - COUNT( * )
----
67

skipif mysql # not compatible
query I rowsort label-1749
SELECT DISTINCT 68 + + - COUNT ( * )
----
67

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1751
SELECT DISTINCT COALESCE ( - 88, + 15 * + + 50 * - + CAST( 68 AS SIGNED ) + - NULLIF ( - 83, - ( - - 24 ) + + 82 ) + + 87 + + ( + + 46 ) + - 41 + - 99 + - + COALESCE ( + COUNT( * ), 76 - + + 35 + - COUNT( * ) * - - 68 + + 60 DIV - 59 * + + CAST( NULL AS SIGNED ) + 39 + - CAST( - + COUNT( * ) AS SIGNED ) + COUNT( * ) + - - 76 DIV + CAST( + 35 AS SIGNED ) DIV + SUM( DISTINCT - 85 ) ) * - - 6 * 86, + 15 * - 86 * + 76 ) + + 30
----
-58

skipif mysql # not compatible
query I rowsort label-1751
SELECT DISTINCT COALESCE ( - 88, + 15 * + + 50 * - + CAST ( 68 AS INTEGER ) + - NULLIF ( - 83, - ( - - 24 ) + + 82 ) + + 87 + + ( + + 46 ) + - 41 + - 99 + - + COALESCE ( + COUNT ( * ), 76 - + + 35 + - COUNT ( * ) * - - 68 + + 60 / - 59 * + + CAST ( NULL AS INTEGER ) + 39 + - CAST ( - + COUNT ( * ) AS INTEGER ) + COUNT ( * ) + - - 76 / + CAST ( + 35 AS INTEGER ) / + SUM ( DISTINCT - 85 ) ) * - - 6 * 86, + 15 * - 86 * + 76 ) + + 30
----
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-1752
SELECT ALL 73 + + NULLIF ( - MIN( 76 ), - + 9 / + 88 )
----
-3

skipif mysql # not compatible
query I rowsort label-1752
SELECT ALL 73 + + NULLIF ( - MIN ( 76 ), - + 9 / + 88 )
----
-3

query I rowsort
SELECT ALL 55 + - 89
----
-34

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1754
SELECT CASE - 20 WHEN + SUM( - + 66 ) * + 60 + - - COUNT( * ) THEN - - 34 / - 96 WHEN + - 28 THEN + 62 ELSE NULL END * - CAST( + 43 AS SIGNED ) * - 73 + - - SUM( + 0 ) + + 56 * 64
----
NULL

skipif mysql # not compatible
query I rowsort label-1754
SELECT CASE - 20 WHEN + SUM ( - + 66 ) * + 60 + - - COUNT ( * ) THEN - - 34 / - 96 WHEN + - 28 THEN + 62 ELSE NULL END * - CAST ( + 43 AS INTEGER ) * - 73 + - - SUM ( + 0 ) + + 56 * 64
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1755
SELECT DISTINCT 2 DIV 40 DIV - - COUNT( * ) AS col2, + COUNT( 32 )
----
0
1

skipif mysql # not compatible
query II rowsort label-1755
SELECT DISTINCT 2 / 40 / - - COUNT ( * ) AS col2, + COUNT ( 32 )
----
0
1

query I rowsort
SELECT 2 * 56 AS col2
----
112

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1759
SELECT DISTINCT COUNT( - 73 ) + - - 54 * + 37 + + 22
----
2021

skipif mysql # not compatible
query I rowsort label-1759
SELECT DISTINCT COUNT ( - 73 ) + - - 54 * + 37 + + 22
----
2021

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1760
SELECT + SUM( DISTINCT 16 ) DIV - 89 + + - NULLIF ( + ( - + 68 ), + MAX( ALL - - 88 ) * - + 81 * + 35 - + - 58 ) AS col2
----
68

skipif mysql # not compatible
query I rowsort label-1760
SELECT + SUM ( DISTINCT 16 ) / - 89 + + - NULLIF ( + ( - + 68 ), + MAX ( ALL - - 88 ) * - + 81 * + 35 - + - 58 ) AS col2
----
68

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1761
SELECT CAST( - 71 AS SIGNED ) * + - 34 * + 66
----
159324

skipif mysql # not compatible
query I rowsort label-1761
SELECT CAST ( - 71 AS INTEGER ) * + - 34 * + 66
----
159324

query I rowsort
SELECT DISTINCT 1 * - 17 AS col2
----
-17

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

skipif mysql # not compatible
query I rowsort label-1763
SELECT ALL - + CAST ( + ( + + MIN ( + 63 ) ) AS INTEGER )
----
-63

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1765
SELECT - 89 * - 51 + + COUNT( DISTINCT - + COALESCE ( + 80, + 63, + 81 * + + 5 ) ) AS col0
----
4540

skipif mysql # not compatible
query I rowsort label-1765
SELECT - 89 * - 51 + + COUNT ( DISTINCT - + COALESCE ( + 80, + 63, + 81 * + + 5 ) ) AS col0
----
4540

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1766
SELECT CAST( - - 32 AS SIGNED ) * - 33 + + 28 * 30
----
-216

skipif mysql # not compatible
query I rowsort label-1766
SELECT CAST ( - - 32 AS INTEGER ) * - 33 + + 28 * 30
----
-216

onlyif mysql # aggregate syntax: 
query I rowsort label-1767
SELECT 43 * ( 8 ) + 57 * + 3 + - 85 + + COUNT( * ) + - NULLIF ( - 65, - 19 ) * - - 97 * + 57 * + ( 40 ) AS col1
----
14375831

skipif mysql # not compatible
query I rowsort label-1767
SELECT 43 * ( 8 ) + 57 * + 3 + - 85 + + COUNT ( * ) + - NULLIF ( - 65, - 19 ) * - - 97 * + 57 * + ( 40 ) AS col1
----
14375831

onlyif mysql # aggregate syntax: 
query I rowsort label-1768
SELECT ALL - COALESCE ( - MIN( DISTINCT + + 43 ), + 66 * + 60 * + + 33 + 77 + 56, 22 )
----
43

skipif mysql # not compatible
query I rowsort label-1768
SELECT ALL - COALESCE ( - MIN ( DISTINCT + + 43 ), + 66 * + 60 * + + 33 + 77 + 56, 22 )
----
43

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1769
SELECT DISTINCT + + NULLIF ( + ( + + 37 ), - 83 / - + COUNT( - 56 ) - - 46 ) * 25 + + CAST( - + CAST( + - 4 AS SIGNED ) AS SIGNED )
----
929

skipif mysql # not compatible
query I rowsort label-1769
SELECT DISTINCT + + NULLIF ( + ( + + 37 ), - 83 / - + COUNT ( - 56 ) - - 46 ) * 25 + + CAST ( - + CAST ( + - 4 AS INTEGER ) AS INTEGER )
----
929

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1770
SELECT 29 DIV - 96 + ( + NULLIF ( + COUNT( * ), 98 ) ) DIV - + 34 AS col0, 66 + + - 3 * + 43 + + 56 - + - 30 * + + 70
----
0
2093

skipif mysql # not compatible
query II rowsort label-1770
SELECT 29 / - 96 + ( + NULLIF ( + COUNT ( * ), 98 ) ) / - + 34 AS col0, 66 + + - 3 * + 43 + + 56 - + - 30 * + + 70
----
0
2093

onlyif mysql # DIV for integer division: 
query II rowsort label-1771
SELECT 8 DIV - 25 * + COALESCE ( + 87, - - 60 ) - - ( - 20 ), - 93 * 41 + 83 AS col2
----
-20
-3730

skipif mysql # not compatible
query II rowsort label-1771
SELECT 8 / - 25 * + COALESCE ( + 87, - - 60 ) - - ( - 20 ), - 93 * 41 + 83 AS col2
----
-20
-3730

query I rowsort
SELECT + 83 * + + 44 col1
----
3652

onlyif mysql # aggregate syntax: 
query I rowsort label-1773
SELECT ALL + + MIN( DISTINCT + 38 ) + - 30
----
8

skipif mysql # not compatible
query I rowsort label-1773
SELECT ALL + + MIN ( DISTINCT + 38 ) + - 30
----
8

onlyif mysql # aggregate syntax: 
query II rowsort label-1774
SELECT - 72 * + - 92 * 56 + - + 28 + - - COUNT( ALL - - 96 ) + 84, - 20 AS col1
----
371001
-20

skipif mysql # not compatible
query II rowsort label-1774
SELECT - 72 * + - 92 * 56 + - + 28 + - - COUNT ( ALL - - 96 ) + 84, - 20 AS col1
----
371001
-20

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1775
SELECT CASE + + 17 WHEN - + 28 THEN - NULLIF ( + - 30, + CAST( - 17 AS SIGNED ) ) + COUNT( * ) + + 89 ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1775
SELECT CASE + + 17 WHEN - + 28 THEN - NULLIF ( + - 30, + CAST ( - 17 AS INTEGER ) ) + COUNT ( * ) + + 89 ELSE NULL END AS col2
----
NULL

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

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

query I rowsort
SELECT ALL - 75 + + 4 AS col1
----
-71

query I rowsort
SELECT 42 + - + COALESCE ( + 83, - 54 ) AS col1
----
-41

onlyif mysql # DIV for integer division: 
query II rowsort label-1779
SELECT 59 col1, - 5 DIV + + ( 78 ) * + 34 AS col2
----
59
0

skipif mysql # not compatible
query II rowsort label-1779
SELECT 59 col1, - 5 / + + ( 78 ) * + 34 AS col2
----
59
0

query I rowsort
SELECT ALL + 3 + 87 AS col0
----
90

onlyif mysql # aggregate syntax: 
query II rowsort label-1781
SELECT 61 + MIN( 62 ), 66 col1
----
123
66

skipif mysql # not compatible
query II rowsort label-1781
SELECT 61 + MIN ( 62 ), 66 col1
----
123
66

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1782
SELECT ALL + CAST( COALESCE ( 56, - 85 ) AS SIGNED ) + - NULLIF ( 73, - 76 )
----
-17

skipif mysql # not compatible
query I rowsort label-1782
SELECT ALL + CAST ( COALESCE ( 56, - 85 ) AS INTEGER ) + - NULLIF ( 73, - 76 )
----
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-1783
SELECT DISTINCT 97 * NULLIF ( - COUNT( * ), - 58 + 57 + - - 63 )
----
-97

skipif mysql # not compatible
query I rowsort label-1783
SELECT DISTINCT 97 * NULLIF ( - COUNT ( * ), - 58 + 57 + - - 63 )
----
-97

query I rowsort
SELECT ALL 56 + - 92
----
-36

onlyif mysql # DIV for integer division: 
query I rowsort label-1785
SELECT 77 + - - ( + 37 ) + 22 + 97 + - + 88 DIV + 8 - - 41
----
263

skipif mysql # not compatible
query I rowsort label-1785
SELECT 77 + - - ( + 37 ) + 22 + 97 + - + 88 / + 8 - - 41
----
263

onlyif mysql # aggregate syntax: 
query I rowsort label-1786
SELECT MAX( DISTINCT - COALESCE ( - - 89, + - 98 ) ) + - 51 AS col1
----
-140

skipif mysql # not compatible
query I rowsort label-1786
SELECT MAX ( DISTINCT - COALESCE ( - - 89, + - 98 ) ) + - 51 AS col1
----
-140

onlyif mysql # aggregate syntax: 
query II rowsort label-1787
SELECT - 65 AS col2, + COUNT( * ) + - 5 AS col0
----
-65
-4

skipif mysql # not compatible
query II rowsort label-1787
SELECT - 65 AS col2, + COUNT ( * ) + - 5 AS col0
----
-65
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-1788
SELECT DISTINCT + 31 * + 90 * + COUNT( ALL 90 )
----
2790

skipif mysql # not compatible
query I rowsort label-1788
SELECT DISTINCT + 31 * + 90 * + COUNT ( ALL 90 )
----
2790

query I rowsort
SELECT 67 + - - 98
----
165

onlyif mysql # aggregate syntax: 
query I rowsort label-1790
SELECT COALESCE ( + COALESCE ( + - 15, + 68, 25 * 26 ), - 49 ) + + COUNT( * ) * - + 5 + + 35
----
15

skipif mysql # not compatible
query I rowsort label-1790
SELECT COALESCE ( + COALESCE ( + - 15, + 68, 25 * 26 ), - 49 ) + + COUNT ( * ) * - + 5 + + 35
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-1791
SELECT ( + MAX( ALL + 27 ) ) + - - 87 * - 1 * + - 53
----
4638

skipif mysql # not compatible
query I rowsort label-1791
SELECT ( + MAX ( ALL + 27 ) ) + - - 87 * - 1 * + - 53
----
4638

query II rowsort
SELECT 53, 3 * + 16 AS col0
----
53
48

query II rowsort
SELECT 58, - 75 + - + 14 AS col2
----
58
-89

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

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1796
SELECT DISTINCT ( + COUNT( * ) ) DIV 38 col0, MIN( DISTINCT + 95 )
----
0
95

skipif mysql # not compatible
query II rowsort label-1796
SELECT DISTINCT ( + COUNT ( * ) ) / 38 col0, MIN ( DISTINCT + 95 )
----
0
95

query I rowsort
SELECT + - 8 + - - 12 + + 91 AS col0
----
95

query I rowsort
SELECT + - 91 * 52 * 38 + NULLIF ( 96, + COALESCE ( 84, COALESCE ( ( + + 61 ), 63 * + 1 + 36 + - 46 ), + - 12 * 78 ) + - + 71 + - + 22 + - 93 * - 78 - + 35 ) AS col0
----
-179720

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1800
SELECT ALL + CASE 20 WHEN + 92 THEN + + COALESCE ( - 70, - 45 * + 89, - 72 ) + - - 61 + 57 / + + 7 * - 57 * - COUNT( * ) ELSE - - ( + ( - + CASE + 80 WHEN 61 + + - 77 THEN + - 74 * 93 WHEN - AVG ( DISTINCT - + 68 ) * - 56 THEN - + 53 * - NULLIF ( 94, - + COUNT( * ) ) + - + MIN( - 32 ) WHEN + COALESCE ( 13, - - COUNT( * ), + - NULLIF ( 1, 50 ) * - + 20 + + 88 - + + 94 + - 4, - ( - - 15 ) * + 62 + - 74 ) + 3 THEN - 77 END ) ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-1800
SELECT ALL + CASE 20 WHEN + 92 THEN + + COALESCE ( - 70, - 45 * + 89, - 72 ) + - - 61 + 57 / + + 7 * - 57 * - COUNT ( * ) ELSE - - ( + ( - + CASE + 80 WHEN 61 + + - 77 THEN + - 74 * 93 WHEN - AVG ( DISTINCT - + 68 ) * - 56 THEN - + 53 * - NULLIF ( 94, - + COUNT ( * ) ) + - + MIN ( - 32 ) WHEN + COALESCE ( 13, - - COUNT ( * ), + - NULLIF ( 1, 50 ) * - + 20 + + 88 - + + 94 + - 4, - ( - - 15 ) * + 62 + - 74 ) + 3 THEN - 77 END ) ) END
----
NULL

query I rowsort
SELECT ALL - 53 * + 92 * + 69
----
-336444

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1802
SELECT DISTINCT MAX( + 46 ) * + + CASE - 72 WHEN + ( + ( - - 37 ) ) THEN 85 WHEN - CASE - CAST( - NULLIF ( + ( - MIN( ALL - + 33 ) ), + COUNT( * ) ) AS SIGNED ) WHEN + ( 83 ) THEN NULL ELSE + 13 END - 35 THEN ( - + 71 ) END + + 92 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1802
SELECT DISTINCT MAX ( + 46 ) * + + CASE - 72 WHEN + ( + ( - - 37 ) ) THEN 85 WHEN - CASE - CAST ( - NULLIF ( + ( - MIN ( ALL - + 33 ) ), + COUNT ( * ) ) AS INTEGER ) WHEN + ( 83 ) THEN NULL ELSE + 13 END - 35 THEN ( - + 71 ) END + + 92 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1803
SELECT ALL + 21 * MIN( 45 ) + - + COUNT( * )
----
944

skipif mysql # not compatible
query I rowsort label-1803
SELECT ALL + 21 * MIN ( 45 ) + - + COUNT ( * )
----
944

onlyif mysql # DIV for integer division: 
query II rowsort label-1804
SELECT ALL 70 * - 4 + 3 DIV - 93, - 91 col2
----
-280
-91

skipif mysql # not compatible
query II rowsort label-1804
SELECT ALL 70 * - 4 + 3 / - 93, - 91 col2
----
-280
-91

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1805
SELECT ALL + + 14, + CAST( NULL AS SIGNED ) AS col2
----
14
NULL

skipif mysql # not compatible
query II rowsort label-1805
SELECT ALL + + 14, + CAST ( NULL AS INTEGER ) AS col2
----
14
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1807
SELECT ALL - 92 * + NULLIF ( + + COUNT( * ), ( + - COUNT( * ) ) * - COUNT( * ) * + 6 ) * - + 8 + 21 + + 82 * - + COUNT( * ) * + MIN( 10 ) + 48 AS col0
----
-15

skipif mysql # not compatible
query I rowsort label-1807
SELECT ALL - 92 * + NULLIF ( + + COUNT ( * ), ( + - COUNT ( * ) ) * - COUNT ( * ) * + 6 ) * - + 8 + 21 + + 82 * - + COUNT ( * ) * + MIN ( 10 ) + 48 AS col0
----
-15

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1808
SELECT - CAST( - - 2 AS SIGNED ) AS col1
----
-2

skipif mysql # not compatible
query I rowsort label-1808
SELECT - CAST ( - - 2 AS INTEGER ) AS col1
----
-2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1809
SELECT DISTINCT MIN( 7 ) * - - AVG ( CAST( NULL AS SIGNED ) ) + - 29 / - + 76
----
NULL

skipif mysql # not compatible
query I rowsort label-1809
SELECT DISTINCT MIN ( 7 ) * - - AVG ( CAST ( NULL AS INTEGER ) ) + - 29 / - + 76
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1810
SELECT + + 71 - + ( NULLIF ( 95, - 81 ) ) DIV 75 * 72 - - 41 AS col1
----
40

skipif mysql # not compatible
query I rowsort label-1810
SELECT + + 71 - + ( NULLIF ( 95, - 81 ) ) / 75 * 72 - - 41 AS col1
----
40

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1812
SELECT ALL + 39 * - CAST( 25 AS SIGNED ) + - 84
----
-1059

skipif mysql # not compatible
query I rowsort label-1812
SELECT ALL + 39 * - CAST ( 25 AS INTEGER ) + - 84
----
-1059

query I rowsort
SELECT ALL 60 * + 41 * + + 76 + + ( + 3 )
----
186963

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1815
SELECT - 21 * - + NULLIF ( + 61, COUNT( * ) / - AVG ( 51 ) - + 25 - + SUM( ALL - 94 ) )
----
1281

skipif mysql # not compatible
query I rowsort label-1815
SELECT - 21 * - + NULLIF ( + 61, COUNT ( * ) / - AVG ( 51 ) - + 25 - + SUM ( ALL - 94 ) )
----
1281

query I rowsort
SELECT ALL - 17 * + 36
----
-612

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1817
SELECT DISTINCT NULLIF ( + 83, CAST( + + 58 AS SIGNED ) )
----
83

skipif mysql # not compatible
query I rowsort label-1817
SELECT DISTINCT NULLIF ( + 83, CAST ( + + 58 AS INTEGER ) )
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-1818
SELECT ALL CASE + 79 WHEN 97 THEN NULL WHEN + + COUNT( * ) THEN NULL WHEN + 41 + + 28 THEN + COALESCE ( + 96, + - 95 ) ELSE NULL END col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1818
SELECT ALL CASE + 79 WHEN 97 THEN NULL WHEN + + COUNT ( * ) THEN NULL WHEN + 41 + + 28 THEN + COALESCE ( + 96, + - 95 ) ELSE NULL END col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1819
SELECT - 55 * 29, MAX( - 3 ) * + - 80 AS col2
----
-1595
240

skipif mysql # not compatible
query II rowsort label-1819
SELECT - 55 * 29, MAX ( - 3 ) * + - 80 AS col2
----
-1595
240

query I rowsort
SELECT ALL 66 * + 43 AS col0
----
2838

onlyif mysql # DIV for integer division: 
query I rowsort label-1821
SELECT - 72 DIV 87 * - ( 76 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-1821
SELECT - 72 / 87 * - ( 76 ) AS col1
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1822
SELECT ALL - COUNT( ALL - - 65 ) DIV - + 31 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-1822
SELECT ALL - COUNT ( ALL - - 65 ) / - + 31 AS col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-1823
SELECT ALL ( 9 ) * - - 17 + + 77 / - - 66 + CAST( NULL AS SIGNED ) + + COUNT( * ) AS col1, - CAST( NULL AS DECIMAL )
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-1823
SELECT ALL ( 9 ) * - - 17 + + 77 / - - 66 + CAST ( NULL AS INTEGER ) + + COUNT ( * ) AS col1, - CAST ( NULL AS REAL )
----
NULL
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1825
SELECT - MIN( DISTINCT + 56 ) + 77 + + COALESCE ( - - 7, + 42 ) * - - 25 * + 68 * 35
----
416521

skipif mysql # not compatible
query I rowsort label-1825
SELECT - MIN ( DISTINCT + 56 ) + 77 + + COALESCE ( - - 7, + 42 ) * - - 25 * + 68 * 35
----
416521

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1827
SELECT ALL - - ( - 5 ) * - + CAST( 2 AS SIGNED ) + - 19 * 48 AS col0
----
-902

skipif mysql # not compatible
query I rowsort label-1827
SELECT ALL - - ( - 5 ) * - + CAST ( 2 AS INTEGER ) + - 19 * 48 AS col0
----
-902

query I rowsort
SELECT + + 85 * + + 59 AS col0
----
5015

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

skipif mysql # not compatible
query I rowsort label-1829
SELECT + COUNT ( * ) + + + 39 + 32 AS col1
----
72

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1830
SELECT ALL + 31 DIV - 87 * 73 + + COUNT( * ) + COUNT( DISTINCT - - COALESCE ( - - 20, + + 54 ) )
----
2

skipif mysql # not compatible
query I rowsort label-1830
SELECT ALL + 31 / - 87 * 73 + + COUNT ( * ) + COUNT ( DISTINCT - - COALESCE ( - - 20, + + 54 ) )
----
2

query I rowsort
SELECT - 21 * + + 74 - + 5 + + + ( NULLIF ( + + 78, 53 ) ) + 87
----
-1394

onlyif mysql # DIV for integer division: 
query I rowsort label-1832
SELECT DISTINCT + 45 DIV - COALESCE ( 90, + 30 ) + 13 col2
----
13

skipif mysql # not compatible
query I rowsort label-1832
SELECT DISTINCT + 45 / - COALESCE ( 90, + 30 ) + 13 col2
----
13

onlyif mysql # DIV for integer division: 
query I rowsort label-1833
SELECT ALL 38 DIV 49 + - 52 - - 67 * + + 89 AS col1
----
5911

skipif mysql # not compatible
query I rowsort label-1833
SELECT ALL 38 / 49 + - 52 - - 67 * + + 89 AS col1
----
5911

query I rowsort
SELECT - 42 * + 7 * - 70 + - - 22 AS col0
----
20602

query I rowsort
SELECT ALL 48 * - - ( - - 79 )
----
3792

query I rowsort
SELECT ALL + + 88 * + + 21 + - 20
----
1828

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1838
SELECT ALL ( ( + 63 ) ) * - + ( + - 28 ) * + 26 + + COUNT( * ) + ( 49 ) DIV + 62 - + + 61 + + 75 AS col2
----
45879

skipif mysql # not compatible
query I rowsort label-1838
SELECT ALL ( ( + 63 ) ) * - + ( + - 28 ) * + 26 + + COUNT ( * ) + ( 49 ) / + 62 - + + 61 + + 75 AS col2
----
45879

onlyif mysql # aggregate syntax: 
query I rowsort label-1839
SELECT ALL 51 * COUNT( - 63 ) AS col1
----
51

skipif mysql # not compatible
query I rowsort label-1839
SELECT ALL 51 * COUNT ( - 63 ) AS col1
----
51

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1841
SELECT 49 * + CASE 87 WHEN - + 27 / ( 44 ) + + - 70 * + 70 + - - 15 / - + 92 THEN - + COUNT( * ) * - - 85 - + COUNT( * ) WHEN NULLIF ( - COUNT( * ), - 54 ) THEN NULL ELSE 27 * - + 99 - - ( + - 11 ) + + 7 * 50 + - 20 END + - 57 + - 0 AS col2, - 39 AS col0
----
-115403
-39

skipif mysql # not compatible
query II rowsort label-1841
SELECT 49 * + CASE 87 WHEN - + 27 / ( 44 ) + + - 70 * + 70 + - - 15 / - + 92 THEN - + COUNT ( * ) * - - 85 - + COUNT ( * ) WHEN NULLIF ( - COUNT ( * ), - 54 ) THEN NULL ELSE 27 * - + 99 - - ( + - 11 ) + + 7 * 50 + - 20 END + - 57 + - 0 AS col2, - 39 AS col0
----
-115403
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-1842
SELECT ALL COUNT( * ) * + - 35 - + 42
----
-77

skipif mysql # not compatible
query I rowsort label-1842
SELECT ALL COUNT ( * ) * + - 35 - + 42
----
-77

query I rowsort
SELECT 77 * 75 + + 47
----
5822

onlyif mysql # aggregate syntax: 
query II rowsort label-1844
SELECT CASE - COUNT( * ) WHEN - 35 THEN - 70 WHEN - 39 * - 54 + - - 88 THEN + 62 ELSE NULL END AS col2, 38 + + + 56 AS col0
----
NULL
94

skipif mysql # not compatible
query II rowsort label-1844
SELECT CASE - COUNT ( * ) WHEN - 35 THEN - 70 WHEN - 39 * - 54 + - - 88 THEN + 62 ELSE NULL END AS col2, 38 + + + 56 AS col0
----
NULL
94

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1845
SELECT - 59, COUNT( * ) * + + 65 DIV - CASE 41 WHEN - + 6 THEN + - COUNT( * ) ELSE + + 26 END AS col0
----
-59
-2

skipif mysql # not compatible
query II rowsort label-1845
SELECT - 59, COUNT ( * ) * + + 65 / - CASE 41 WHEN - + 6 THEN + - COUNT ( * ) ELSE + + 26 END AS col0
----
-59
-2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1846
SELECT + NULLIF ( - 93, ( + 5 ) ) + + 56 + + + CAST( NULL AS SIGNED ) + + - 11
----
NULL

skipif mysql # not compatible
query I rowsort label-1846
SELECT + NULLIF ( - 93, ( + 5 ) ) + + 56 + + + CAST ( NULL AS INTEGER ) + + - 11
----
NULL

query II rowsort
SELECT - 61 * - 57 - - 52 AS col1, NULLIF ( 33, + + 60 - AVG ( + 19 ) + + - 59 * - NULLIF ( + 82, + NULLIF ( 39, - - 72 * + + 7 + - 8 ) ) ) * + 59 AS col2
----
3529
1947

query I rowsort
SELECT 2 + ( + + 41 ) * + - 58
----
-2376

query I rowsort
SELECT 5 * + 53 AS col2
----
265

query I rowsort
SELECT ALL 37 * + + 3
----
111

query II rowsort
SELECT DISTINCT 29 AS col0, 13
----
29
13

onlyif mysql # aggregate syntax: 
query I rowsort label-1852
SELECT DISTINCT - MIN( + - 26 ) * + 36 AS col2
----
936

skipif mysql # not compatible
query I rowsort label-1852
SELECT DISTINCT - MIN ( + - 26 ) * + 36 AS col2
----
936

query I rowsort
SELECT 30 + 21 + + 2 AS col0
----
53

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1855
SELECT MAX( + + 78 ) + 54 AS col0
----
132

skipif mysql # not compatible
query I rowsort label-1855
SELECT MAX ( + + 78 ) + 54 AS col0
----
132

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

skipif mysql # not compatible
query I rowsort label-1856
SELECT ALL - - 90 + - + COUNT ( * ) AS col1
----
89

onlyif mysql # aggregate syntax: 
query II rowsort label-1857
SELECT + ( - 58 ) * COUNT( * ) + + CASE + COUNT( * ) WHEN + 49 * COALESCE ( - 84, - 11 * - + 97 * - - 38 - + 24 ) THEN 53 ELSE NULL END + - 21 + + - 53 AS col1, 85 AS col1
----
NULL
85

skipif mysql # not compatible
query II rowsort label-1857
SELECT + ( - 58 ) * COUNT ( * ) + + CASE + COUNT ( * ) WHEN + 49 * COALESCE ( - 84, - 11 * - + 97 * - - 38 - + 24 ) THEN 53 ELSE NULL END + - 21 + + - 53 AS col1, 85 AS col1
----
NULL
85

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1858
SELECT ALL - 25 + - COALESCE ( - 55, + - 70, - + 1 * - - 56 DIV - 48 + - - ( + - NULLIF ( 53, + 65 ) ) DIV + - 81 * MAX( - + 73 ) ) * 46 * - + 33
----
-83515

skipif mysql # not compatible
query I rowsort label-1858
SELECT ALL - 25 + - COALESCE ( - 55, + - 70, - + 1 * - - 56 / - 48 + - - ( + - NULLIF ( 53, + 65 ) ) / + - 81 * MAX ( - + 73 ) ) * 46 * - + 33
----
-83515

onlyif mysql # aggregate syntax: 
query II rowsort label-1859
SELECT ( - - COUNT( DISTINCT + + 33 ) ), 32 * - 86 * - 72 AS col2
----
1
198144

skipif mysql # not compatible
query II rowsort label-1859
SELECT ( - - COUNT ( DISTINCT + + 33 ) ), 32 * - 86 * - 72 AS col2
----
1
198144

query II rowsort
SELECT - 49, + 45 * - + 80 * + 42 col2
----
-49
-151200

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

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

query I rowsort
SELECT - 13 * + 98 AS col1
----
-1274

query I rowsort
SELECT - 27 * + + 31
----
-837

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1864
SELECT ALL - + CAST( + ( 95 ) AS SIGNED ) + 3
----
-92

skipif mysql # not compatible
query I rowsort label-1864
SELECT ALL - + CAST ( + ( 95 ) AS INTEGER ) + 3
----
-92

query II rowsort
SELECT ALL + 9 + 39 * - 7 AS col2, 38 AS col1
----
-264
38

onlyif mysql # aggregate syntax: 
query I rowsort label-1866
SELECT ALL + + COUNT( * ) + + 92 + - 60
----
33

skipif mysql # not compatible
query I rowsort label-1866
SELECT ALL + + COUNT ( * ) + + 92 + - 60
----
33

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1867
SELECT DISTINCT - - CAST( NULL AS DECIMAL ) * + 13 * + 55 * - + 80 * 21 - 16 + + 62
----
NULL

skipif mysql # not compatible
query I rowsort label-1867
SELECT DISTINCT - - CAST ( NULL AS REAL ) * + 13 * + 55 * - + 80 * 21 - 16 + + 62
----
NULL

query I rowsort
SELECT + 29 * - + 98 AS col2
----
-2842

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1870
SELECT COUNT( 66 ) DIV + 61 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-1870
SELECT COUNT ( 66 ) / + 61 AS col1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-1871
SELECT ALL 3 DIV - 84
----
0

skipif mysql # not compatible
query I rowsort label-1871
SELECT ALL 3 / - 84
----
0

query I rowsort
SELECT 61 * - 4 AS col1
----
-244

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1873
SELECT AVG ( 21 ) + - MIN( + ( + - CAST( NULL AS SIGNED ) ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1873
SELECT AVG ( 21 ) + - MIN ( + ( + - CAST ( NULL AS INTEGER ) ) ) AS col1
----
NULL

query II rowsort
SELECT 45 AS col1, 58 - 10 + + 3
----
45
51

query I rowsort
SELECT DISTINCT 38 * + + 56 * + + 66
----
140448

query I rowsort
SELECT 12 + + 37 col1
----
49

onlyif mysql # aggregate syntax: 
query I rowsort label-1877
SELECT ALL MIN( DISTINCT + 78 ) * + 18 AS col1
----
1404

skipif mysql # not compatible
query I rowsort label-1877
SELECT ALL MIN ( DISTINCT + 78 ) * + 18 AS col1
----
1404

query I rowsort
SELECT DISTINCT 2 * - + 13
----
-26

query II rowsort
SELECT ALL - 66 AS col2, + 4
----
-66
4

query II rowsort
SELECT ALL 67 AS col2, 25 AS col2
----
67
25

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

query II rowsort
SELECT 61, 10 AS col0
----
61
10

query II rowsort
SELECT 4 AS col1, - 15 col0
----
4
-15

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1884
SELECT ALL 83 + - CAST( NULL AS SIGNED ) * 88 - - 3 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1884
SELECT ALL 83 + - CAST ( NULL AS INTEGER ) * 88 - - 3 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1885
SELECT MIN( ( - 26 ) )
----
-26

skipif mysql # not compatible
query I rowsort label-1885
SELECT MIN ( ( - 26 ) )
----
-26

query I rowsort
SELECT ALL + - 26 + - - 32 AS col0
----
6

query I rowsort
SELECT ALL - 74 + 27 col1
----
-47

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1888
SELECT - 84 - + COUNT( * ), ( - SUM( ALL - 70 ) ) DIV - - 70 - - - 35 AS col2
----
-85
-34

skipif mysql # not compatible
query II rowsort label-1888
SELECT - 84 - + COUNT ( * ), ( - SUM ( ALL - 70 ) ) / - - 70 - - - 35 AS col2
----
-85
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-1889
SELECT - COUNT( * ) * 22 * - - 5 AS col0
----
-110

skipif mysql # not compatible
query I rowsort label-1889
SELECT - COUNT ( * ) * 22 * - - 5 AS col0
----
-110

onlyif mysql # aggregate syntax: 
query II rowsort label-1890
SELECT ALL + - 46 + COUNT( * ) AS col0, 98
----
-45
98

skipif mysql # not compatible
query II rowsort label-1890
SELECT ALL + - 46 + COUNT ( * ) AS col0, 98
----
-45
98

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

skipif mysql # not compatible
query I rowsort label-1891
SELECT - MAX ( + 90 )
----
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-1892
SELECT + MIN( - + NULLIF ( + 19, 84 * - 11 ) ) col0
----
-19

skipif mysql # not compatible
query I rowsort label-1892
SELECT + MIN ( - + NULLIF ( + 19, 84 * - 11 ) ) col0
----
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-1893
SELECT 29 + - 69 + + COUNT( * ) * COUNT( * )
----
-39

skipif mysql # not compatible
query I rowsort label-1893
SELECT 29 + - 69 + + COUNT ( * ) * COUNT ( * )
----
-39

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1895
SELECT ALL NULLIF ( - 90, - - COUNT( * ) + + 55 / 17 )
----
-90

skipif mysql # not compatible
query I rowsort label-1895
SELECT ALL NULLIF ( - 90, - - COUNT ( * ) + + 55 / 17 )
----
-90

query II rowsort
SELECT ( - ( + 55 ) ) - 78, 28 AS col0
----
-133
28

query II rowsort
SELECT + - 6 AS col1, - 46
----
-6
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-1898
SELECT + 91 + - - ( + + 87 ) + - ( ( COUNT( * ) ) ) * + + COUNT( * ) * + - 59 AS col2
----
237

skipif mysql # not compatible
query I rowsort label-1898
SELECT + 91 + - - ( + + 87 ) + - ( ( COUNT ( * ) ) ) * + + COUNT ( * ) * + - 59 AS col2
----
237

query II rowsort
SELECT ALL - 8, 65 AS col2
----
-8
65

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1900
SELECT 98 * COUNT( * ) / + - 86 * 8 + - 14 + - 86 / + + CAST( NULL AS SIGNED ) * - 56 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1900
SELECT 98 * COUNT ( * ) / + - 86 * 8 + - 14 + - 86 / + + CAST ( NULL AS INTEGER ) * - 56 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1901
SELECT ALL 47 * - ( - - 29 ) - + - COUNT( * ) * - 73 AS col2
----
-1436

skipif mysql # not compatible
query I rowsort label-1901
SELECT ALL 47 * - ( - - 29 ) - + - COUNT ( * ) * - 73 AS col2
----
-1436

query II rowsort
SELECT DISTINCT - 4 * 64 AS col1, 81 AS col2
----
-256
81

onlyif mysql # aggregate syntax: 
query II rowsort label-1903
SELECT 70 * + + 34, - 95 + + COUNT( * ) AS col0
----
2380
-94

skipif mysql # not compatible
query II rowsort label-1903
SELECT 70 * + + 34, - 95 + + COUNT ( * ) AS col0
----
2380
-94

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1904
SELECT 6 * - 38 * + CASE + COUNT( * ) WHEN + 58 THEN NULL WHEN - SUM( ALL 58 ) THEN - 6 + 38 + 15 * 64 / + + 38 * - + 27 WHEN 18 + + + CAST( NULL AS SIGNED ) THEN - COALESCE ( 17, - + 72 - + + 6 + 44 * + 5 * SUM( ALL - 79 ), 25 ) * + + 16 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1904
SELECT 6 * - 38 * + CASE + COUNT ( * ) WHEN + 58 THEN NULL WHEN - SUM ( ALL 58 ) THEN - 6 + 38 + 15 * 64 / + + 38 * - + 27 WHEN 18 + + + CAST ( NULL AS INTEGER ) THEN - COALESCE ( 17, - + 72 - + + 6 + 44 * + 5 * SUM ( ALL - 79 ), 25 ) * + + 16 ELSE NULL END
----
NULL

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1906
SELECT CASE ( COUNT( * ) ) WHEN 41 THEN + 88 WHEN + 98 THEN + 81 END * - 79 * - - 82 + - CAST( NULL AS SIGNED ) / + COUNT( * ) * + + COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1906
SELECT CASE ( COUNT ( * ) ) WHEN 41 THEN + 88 WHEN + 98 THEN + 81 END * - 79 * - - 82 + - CAST ( NULL AS INTEGER ) / + COUNT ( * ) * + + COUNT ( * ) AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-1907
SELECT DISTINCT + CASE + COUNT( * ) WHEN - 70 THEN - ( - + COUNT( * ) ) * + 82 WHEN - - CAST( + 12 AS DECIMAL ) THEN + - 29 / 64 END AS col0, - 14 - - 69
----
NULL
55

skipif mysql # not compatible
query II rowsort label-1907
SELECT DISTINCT + CASE + COUNT ( * ) WHEN - 70 THEN - ( - + COUNT ( * ) ) * + 82 WHEN - - CAST ( + 12 AS REAL ) THEN + - 29 / 64 END AS col0, - 14 - - 69
----
NULL
55

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1908
SELECT DISTINCT + COALESCE ( - - 40, + 12 * + 80 * + 9 + - 91 + 46 + + 88 + + CAST( NULL AS SIGNED ) )
----
40

skipif mysql # not compatible
query I rowsort label-1908
SELECT DISTINCT + COALESCE ( - - 40, + 12 * + 80 * + 9 + - 91 + 46 + + 88 + + CAST ( NULL AS INTEGER ) )
----
40

query I rowsort
SELECT - ( - + 38 ) * - + 72 AS col1
----
-2736

onlyif mysql # aggregate syntax: 
query II rowsort label-1910
SELECT + 25 * + - COUNT( * ) AS col1, + 48 * COALESCE ( 92, - COUNT( * ) ) * - 40 AS col0
----
-25
-176640

skipif mysql # not compatible
query II rowsort label-1910
SELECT + 25 * + - COUNT ( * ) AS col1, + 48 * COALESCE ( 92, - COUNT ( * ) ) * - 40 AS col0
----
-25
-176640

onlyif mysql # DIV for integer division: 
query I rowsort label-1911
SELECT DISTINCT NULLIF ( + 1, - - ( - COALESCE ( + - 16, - - 68 - + 74 + + 33 * + 39 + + 30 ) ) + - + 88 DIV + 50 * + - 75 * 68 + + - 88 ) DIV - 56 + - 72 - - 82 AS col2
----
10

skipif mysql # not compatible
query I rowsort label-1911
SELECT DISTINCT NULLIF ( + 1, - - ( - COALESCE ( + - 16, - - 68 - + 74 + + 33 * + 39 + + 30 ) ) + - + 88 / + 50 * + - 75 * 68 + + - 88 ) / - 56 + - 72 - - 82 AS col2
----
10

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1912
SELECT - 89 + - ( - COALESCE ( + + COUNT( * ), - 91 DIV NULLIF ( MAX( ALL 16 ), - CASE 55 WHEN + 28 DIV + 80 THEN NULL ELSE + 53 END ) + 54 + 44 ) )
----
-88

skipif mysql # not compatible
query I rowsort label-1912
SELECT - 89 + - ( - COALESCE ( + + COUNT ( * ), - 91 / NULLIF ( MAX ( ALL 16 ), - CASE 55 WHEN + 28 / + 80 THEN NULL ELSE + 53 END ) + 54 + 44 ) )
----
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-1913
SELECT ALL COALESCE ( + 20, - 33 * - - ( - + CASE - + 80 WHEN 21 THEN 71 WHEN COUNT( * ) + 50 + + 43 * + - 79 - - 98 + - MAX( ALL - 90 ) THEN NULL ELSE NULL END ) - - - 90, + COUNT( * ) * - 5 + - + 70 ) col0
----
20

skipif mysql # not compatible
query I rowsort label-1913
SELECT ALL COALESCE ( + 20, - 33 * - - ( - + CASE - + 80 WHEN 21 THEN 71 WHEN COUNT ( * ) + 50 + + 43 * + - 79 - - 98 + - MAX ( ALL - 90 ) THEN NULL ELSE NULL END ) - - - 90, + COUNT ( * ) * - 5 + - + 70 ) col0
----
20

query I rowsort
SELECT + 66 + 98 + - - 77 AS col1
----
241

onlyif mysql # aggregate syntax: 
query II rowsort label-1915
SELECT DISTINCT + MAX( DISTINCT 0 ) AS col0, 71 * - + 81 * - ( COUNT( - 81 ) ) + + + 23 * ( + + 95 ) + + + 77
----
0
8013

skipif mysql # not compatible
query II rowsort label-1915
SELECT DISTINCT + MAX ( DISTINCT 0 ) AS col0, 71 * - + 81 * - ( COUNT ( - 81 ) ) + + + 23 * ( + + 95 ) + + + 77
----
0
8013

query I rowsort
SELECT ALL + + 7 + + + 39
----
46

query I rowsort
SELECT ALL 12 + - 45
----
-33

query I rowsort
SELECT + - 23 + + 77
----
54

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1919
SELECT + - 37 * + + CAST( NULL AS SIGNED ) + - + COUNT( * ) * - + 27 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1919
SELECT + - 37 * + + CAST ( NULL AS INTEGER ) + - + COUNT ( * ) * - + 27 AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1920
SELECT DISTINCT - 35 - - + 1 DIV - 21
----
-35

skipif mysql # not compatible
query I rowsort label-1920
SELECT DISTINCT - 35 - - + 1 / - 21
----
-35

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1921
SELECT ALL ( + - 9 ) - + 89 DIV + - 79 + + - COUNT( * ) AS col2
----
-9

skipif mysql # not compatible
query I rowsort label-1921
SELECT ALL ( + - 9 ) - + 89 / + - 79 + + - COUNT ( * ) AS col2
----
-9

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1922
SELECT + 84 * - 86 + - 62 + - - 98 DIV - CASE - SUM( DISTINCT + - NULLIF ( - - 23, + 51 ) ) WHEN 75 DIV + 91 + + 56 THEN NULL WHEN + - 90 THEN NULL WHEN + 82 THEN + - 68 ELSE + COUNT( * ) END - - + MAX( - 90 ) col1
----
-7474

skipif mysql # not compatible
query I rowsort label-1922
SELECT + 84 * - 86 + - 62 + - - 98 / - CASE - SUM ( DISTINCT + - NULLIF ( - - 23, + 51 ) ) WHEN 75 / + 91 + + 56 THEN NULL WHEN + - 90 THEN NULL WHEN + 82 THEN + - 68 ELSE + COUNT ( * ) END - - + MAX ( - 90 ) col1
----
-7474

onlyif mysql # DIV for integer division: 
query II rowsort label-1923
SELECT ALL + + 43 * 32 AS col1, + 54 DIV - 78 AS col1
----
1376
0

skipif mysql # not compatible
query II rowsort label-1923
SELECT ALL + + 43 * 32 AS col1, + 54 / - 78 AS col1
----
1376
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1924
SELECT ALL - NULLIF ( + 10, 52 ) * - COALESCE ( + - 72, + 70, 19 * - COUNT( ALL - 45 ) ) AS col2
----
-720

skipif mysql # not compatible
query I rowsort label-1924
SELECT ALL - NULLIF ( + 10, 52 ) * - COALESCE ( + - 72, + 70, 19 * - COUNT ( ALL - 45 ) ) AS col2
----
-720

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1926
SELECT + MIN( - 92 ) AS col2
----
-92

skipif mysql # not compatible
query I rowsort label-1926
SELECT + MIN ( - 92 ) AS col2
----
-92

query I rowsort
SELECT - 92 * - 64 * + 29 AS col1
----
170752

onlyif mysql # aggregate syntax: 
query I rowsort label-1928
SELECT DISTINCT + ( + MAX( - 12 ) ) AS col2
----
-12

skipif mysql # not compatible
query I rowsort label-1928
SELECT DISTINCT + ( + MAX ( - 12 ) ) AS col2
----
-12

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1929
SELECT ALL - COUNT( * ) DIV - 29 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-1929
SELECT ALL - COUNT ( * ) / - 29 AS col1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-1930
SELECT - 56 DIV - 22 col0
----
2

skipif mysql # not compatible
query I rowsort label-1930
SELECT - 56 / - 22 col0
----
2

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1932
SELECT ALL - COUNT( * ) * 24 + + + ( - 96 )
----
-120

skipif mysql # not compatible
query I rowsort label-1932
SELECT ALL - COUNT ( * ) * 24 + + + ( - 96 )
----
-120

onlyif mysql # aggregate syntax: 
query I rowsort label-1933
SELECT - 86 * + 24 + - 76 + + ( - 67 ) * - - SUM( 34 ) - + - 69
----
-4349

skipif mysql # not compatible
query I rowsort label-1933
SELECT - 86 * + 24 + - 76 + + ( - 67 ) * - - SUM ( 34 ) - + - 69
----
-4349

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1934
SELECT ALL - 28 / + + CAST( NULL AS SIGNED ) * + + 37 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1934
SELECT ALL - 28 / + + CAST ( NULL AS INTEGER ) * + + 37 AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1935
SELECT + 20 DIV + ( - 38 ) * - - ( - - 37 ) * 43 DIV 84 * + 67 + + COUNT( * ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-1935
SELECT + 20 / + ( - 38 ) * - - ( - - 37 ) * 43 / 84 * + 67 + + COUNT ( * ) AS col0
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-1936
SELECT 55 DIV + + 77 + + 74 AS col0
----
74

skipif mysql # not compatible
query I rowsort label-1936
SELECT 55 / + + 77 + + 74 AS col0
----
74

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1938
SELECT ALL - 55 * - 52 + + - 23 DIV 76 AS col0
----
2860

skipif mysql # not compatible
query I rowsort label-1938
SELECT ALL - 55 * - 52 + + - 23 / 76 AS col0
----
2860

query II rowsort
SELECT + 21, 60 AS col1
----
21
60

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

skipif mysql # not compatible
query I rowsort label-1940
SELECT + 96 + ( + CAST ( NULL AS INTEGER ) ) + - 57 AS col0
----
NULL

query II rowsort
SELECT DISTINCT + 82, 15 + 84 AS col2
----
82
99

onlyif mysql # aggregate syntax: 
query I rowsort label-1942
SELECT ALL + 89 * + SUM( - 65 ) + + 42 col0
----
-5743

skipif mysql # not compatible
query I rowsort label-1942
SELECT ALL + 89 * + SUM ( - 65 ) + + 42 col0
----
-5743

onlyif mysql # aggregate syntax: 
query I rowsort label-1943
SELECT ALL + MAX( ALL + - 77 )
----
-77

skipif mysql # not compatible
query I rowsort label-1943
SELECT ALL + MAX ( ALL + - 77 )
----
-77

query I rowsort
SELECT NULLIF ( + 37, - 25 )
----
37

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

skipif mysql # not compatible
query I rowsort label-1945
SELECT - MIN ( DISTINCT 47 )
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-1946
SELECT - - ( - - 86 ) * + ( - - COUNT( DISTINCT + 97 ) )
----
86

skipif mysql # not compatible
query I rowsort label-1946
SELECT - - ( - - 86 ) * + ( - - COUNT ( DISTINCT + 97 ) )
----
86

query I rowsort
SELECT ALL - 0 * 50 + 71 AS col2
----
71

query I rowsort
SELECT ALL NULLIF ( - 6, - + 72 ) AS col1
----
-6

onlyif mysql # DIV for integer division: 
query I rowsort label-1949
SELECT - 19 - 70 + + 71 * 7 * 68 DIV + 24 col1
----
1319

skipif mysql # not compatible
query I rowsort label-1949
SELECT - 19 - 70 + + 71 * 7 * 68 / + 24 col1
----
1319

query I rowsort
SELECT - 32 - - 26 * - 29
----
-786

query I rowsort
SELECT + 2 * + 86 * - + 6
----
-1032

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1952
SELECT ALL - CASE + 5 WHEN + 15 THEN - - 71 DIV + + 4 WHEN + - ( ( - 21 ) ) THEN + MIN( 31 ) ELSE + 25 END AS col0, - 68 * 7
----
-25
-476

skipif mysql # not compatible
query II rowsort label-1952
SELECT ALL - CASE + 5 WHEN + 15 THEN - - 71 / + + 4 WHEN + - ( ( - 21 ) ) THEN + MIN ( 31 ) ELSE + 25 END AS col0, - 68 * 7
----
-25
-476

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1954
SELECT ALL - COALESCE ( - 83, + 32 * ( - + COUNT( * ) ) + ( 70 ), - 83 + - ( - 72 ) DIV + 49 ) - 84 col2
----
-1

skipif mysql # not compatible
query I rowsort label-1954
SELECT ALL - COALESCE ( - 83, + 32 * ( - + COUNT ( * ) ) + ( 70 ), - 83 + - ( - 72 ) / + 49 ) - 84 col2
----
-1

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1957
SELECT + + CAST( - ( - 98 ) AS SIGNED ) - + 99
----
-1

skipif mysql # not compatible
query I rowsort label-1957
SELECT + + CAST ( - ( - 98 ) AS INTEGER ) - + 99
----
-1

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

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

query I rowsort
SELECT - 48 * + 96 AS col0
----
-4608

query I rowsort
SELECT + 18 * + 14
----
252

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1961
SELECT + CASE + 36 WHEN 12 THEN CAST( + COUNT( * ) AS SIGNED ) + + COUNT( * ) - - - 19 WHEN + + AVG ( 75 ) THEN NULL END + - 20 + SUM( ALL - + 28 ) + - COUNT( * ) * - - ( + + 8 ) / + + 25 + 8 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1961
SELECT + CASE + 36 WHEN 12 THEN CAST ( + COUNT ( * ) AS INTEGER ) + + COUNT ( * ) - - - 19 WHEN + + AVG ( 75 ) THEN NULL END + - 20 + SUM ( ALL - + 28 ) + - COUNT ( * ) * - - ( + + 8 ) / + + 25 + 8 col0
----
NULL

query I rowsort
SELECT COALESCE ( + - 97, 11 )
----
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-1963
SELECT - COALESCE ( + + 51, + COUNT( * ), + 53 * - MAX( ALL 24 ) ) AS col2
----
-51

skipif mysql # not compatible
query I rowsort label-1963
SELECT - COALESCE ( + + 51, + COUNT ( * ), + 53 * - MAX ( ALL 24 ) ) AS col2
----
-51

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1964
SELECT CASE 61 WHEN 74 THEN NULL ELSE CASE - 32 WHEN - 61 * + COUNT( * ) - - 14 / COALESCE ( - 72, - 53 * 78 / - COUNT( * ) ) + - - AVG ( DISTINCT + 26 ) * + NULLIF ( + - COUNT( * ), - + 34 * - 61 + - + 29 ) - 84 * - + COUNT( * ) THEN NULL WHEN - - 42 / - 87 THEN NULL WHEN + CAST( - COUNT( * ) AS SIGNED ) THEN + MAX( ALL - + 88 ) + 28 END END + - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-1964
SELECT CASE 61 WHEN 74 THEN NULL ELSE CASE - 32 WHEN - 61 * + COUNT ( * ) - - 14 / COALESCE ( - 72, - 53 * 78 / - COUNT ( * ) ) + - - AVG ( DISTINCT + 26 ) * + NULLIF ( + - COUNT ( * ), - + 34 * - 61 + - + 29 ) - 84 * - + COUNT ( * ) THEN NULL WHEN - - 42 / - 87 THEN NULL WHEN + CAST ( - COUNT ( * ) AS INTEGER ) THEN + MAX ( ALL - + 88 ) + 28 END END + - COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1965
SELECT ALL COUNT( ALL 12 ) + - + 55
----
-54

skipif mysql # not compatible
query I rowsort label-1965
SELECT ALL COUNT ( ALL 12 ) + - + 55
----
-54

query I rowsort
SELECT 12 * + + 7
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-1967
SELECT DISTINCT 73 + - 93 + + MIN( + 35 )
----
15

skipif mysql # not compatible
query I rowsort label-1967
SELECT DISTINCT 73 + - 93 + + MIN ( + 35 )
----
15

query I rowsort
SELECT ALL 8 + - 33
----
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-1969
SELECT 14 * MAX( ALL - 0 )
----
0

skipif mysql # not compatible
query I rowsort label-1969
SELECT 14 * MAX ( ALL - 0 )
----
0

query I rowsort
SELECT - NULLIF ( + 39, 64 ) * 35 - + - 97 + + 33 AS col1
----
-1235

query I rowsort
SELECT 46 - 67 AS col2
----
-21

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1973
SELECT - - 82 * + COALESCE ( - COUNT( * ), - 1 + - + 95 ) * - + COALESCE ( - 30, 78 ) * - 14 + - - 5 + 93 + + COALESCE ( + - 85, NULLIF ( + COUNT( * ), 84 ) + - - 90 + - 84 DIV + - 99 ) + - 84, - ( + 27 ) AS col1
----
34369
-27

skipif mysql # not compatible
query II rowsort label-1973
SELECT - - 82 * + COALESCE ( - COUNT ( * ), - 1 + - + 95 ) * - + COALESCE ( - 30, 78 ) * - 14 + - - 5 + 93 + + COALESCE ( + - 85, NULLIF ( + COUNT ( * ), 84 ) + - - 90 + - 84 / + - 99 ) + - 84, - ( + 27 ) AS col1
----
34369
-27

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

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

query I rowsort
SELECT + 23 * + 21 - - - 45
----
438

query I rowsort
SELECT + 30 + - 18 AS col1
----
12

query I rowsort
SELECT ALL - + 27 * - - ( 27 )
----
-729

query I rowsort
SELECT - CASE + + 35 WHEN + 32 * 92 + - 16 THEN NULL WHEN - 29 / + + 46 THEN 16 END AS col2
----
NULL

query I rowsort
SELECT - 80 + - - 68
----
-12

query I rowsort
SELECT 53 * - 94 AS col0
----
-4982

query I rowsort
SELECT - ( - 12 ) + + 67
----
79

query I rowsort
SELECT + 2 * + 59 + 75 AS col2
----
193

onlyif mysql # aggregate syntax: 
query II rowsort label-1983
SELECT 42 + + + 87 AS col2, + 36 + + 18 * - MIN( DISTINCT 52 )
----
129
-900

skipif mysql # not compatible
query II rowsort label-1983
SELECT 42 + + + 87 AS col2, + 36 + + 18 * - MIN ( DISTINCT 52 )
----
129
-900

onlyif mysql # aggregate syntax: 
query II rowsort label-1984
SELECT DISTINCT - 91 * 18, COUNT( + - 81 ) * - 44 AS col1
----
-1638
-44

skipif mysql # not compatible
query II rowsort label-1984
SELECT DISTINCT - 91 * 18, COUNT ( + - 81 ) * - 44 AS col1
----
-1638
-44

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1985
SELECT + ( + 2 ) * + + CAST( + 87 AS SIGNED ) AS col1, 7 + + ( 87 )
----
174
94

skipif mysql # not compatible
query II rowsort label-1985
SELECT + ( + 2 ) * + + CAST ( + 87 AS INTEGER ) AS col1, 7 + + ( 87 )
----
174
94

query I rowsort
SELECT ALL - ( 19 ) * + - 1
----
19

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

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

skipif mysql # not compatible
query I rowsort label-1988
SELECT DISTINCT ( CAST ( NULL AS INTEGER ) ) + - 89 - - + 71
----
NULL

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

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

query I rowsort
SELECT ALL - 27 * + 48 * 88
----
-114048

query I rowsort
SELECT 21 * 72
----
1512

query I rowsort
SELECT DISTINCT 32 + 30 AS col2
----
62

query I rowsort
SELECT ALL 67 + + + 71 AS col2
----
138

query I rowsort
SELECT 5 - - 41 AS col2
----
46

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

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

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

skipif mysql # not compatible
query I rowsort label-1996
SELECT + MIN ( - 97 )
----
-97

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2000
SELECT 75 * - SUM( ALL 48 ) AS col2
----
-3600

skipif mysql # not compatible
query I rowsort label-2000
SELECT 75 * - SUM ( ALL 48 ) AS col2
----
-3600

query I rowsort
SELECT ALL - NULLIF ( 80, + 95 / 58 ) AS col2
----
-80

onlyif mysql # DIV for integer division: 
query I rowsort label-2002
SELECT ALL + 30 DIV 81
----
0

skipif mysql # not compatible
query I rowsort label-2002
SELECT ALL + 30 / 81
----
0

query I rowsort
SELECT 90 * + 65 AS col0
----
5850

query I rowsort
SELECT ALL + 31 * - 53
----
-1643

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2005
SELECT CASE 44 WHEN NULLIF ( - CAST( NULL AS SIGNED ), + NULLIF ( - 36, - 7 ) / - 59 ) THEN - 97 / - 43 WHEN COUNT( - 37 ) + COUNT( * ) THEN - 93 - - ( - 57 ) / 83 END - 57
----
NULL

skipif mysql # not compatible
query I rowsort label-2005
SELECT CASE 44 WHEN NULLIF ( - CAST ( NULL AS INTEGER ), + NULLIF ( - 36, - 7 ) / - 59 ) THEN - 97 / - 43 WHEN COUNT ( - 37 ) + COUNT ( * ) THEN - 93 - - ( - 57 ) / 83 END - 57
----
NULL

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

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

query I rowsort
SELECT + 87 - + 24 AS col2
----
63

query I rowsort
SELECT DISTINCT 10 + 51 AS col0
----
61

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

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

query I rowsort
SELECT ALL 45 + 18
----
63

query I rowsort
SELECT ALL + 68 + 44 AS col2
----
112

query I rowsort
SELECT - 33 - + 36 col0
----
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-2013
SELECT ALL MIN( 79 )
----
79

skipif mysql # not compatible
query I rowsort label-2013
SELECT ALL MIN ( 79 )
----
79

query I rowsort
SELECT ALL - NULLIF ( 40, 94 ) + 24
----
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-2015
SELECT + COUNT( * ) + 63 AS col2
----
64

skipif mysql # not compatible
query I rowsort label-2015
SELECT + COUNT ( * ) + 63 AS col2
----
64

query I rowsort
SELECT - 9 - 57
----
-66

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2017
SELECT - CAST( + 1 AS SIGNED ) + - ( 48 ) AS col0
----
-49

skipif mysql # not compatible
query I rowsort label-2017
SELECT - CAST ( + 1 AS INTEGER ) + - ( 48 ) AS col0
----
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-2018
SELECT ALL + CASE - 61 WHEN 99 + + COALESCE ( - MAX( 33 ), 82 + + 45 ) THEN NULL WHEN 69 THEN COUNT( * ) ELSE 79 END + 1
----
80

skipif mysql # not compatible
query I rowsort label-2018
SELECT ALL + CASE - 61 WHEN 99 + + COALESCE ( - MAX ( 33 ), 82 + + 45 ) THEN NULL WHEN 69 THEN COUNT ( * ) ELSE 79 END + 1
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-2019
SELECT + 79 * NULLIF ( + 98 * 11, 70 * ( - COUNT( * ) * - ( 23 ) ) )
----
85162

skipif mysql # not compatible
query I rowsort label-2019
SELECT + 79 * NULLIF ( + 98 * 11, 70 * ( - COUNT ( * ) * - ( 23 ) ) )
----
85162

query I rowsort
SELECT ALL + ( - 43 ) * + 63
----
-2709

onlyif mysql # aggregate syntax: 
query I rowsort label-2021
SELECT DISTINCT + NULLIF ( 51, 24 / + CASE 50 WHEN - 69 THEN NULL WHEN 0 THEN 39 - COUNT( * ) WHEN + COUNT( * ) THEN - 4 END ) + - 70
----
-19

skipif mysql # not compatible
query I rowsort label-2021
SELECT DISTINCT + NULLIF ( 51, 24 / + CASE 50 WHEN - 69 THEN NULL WHEN 0 THEN 39 - COUNT ( * ) WHEN + COUNT ( * ) THEN - 4 END ) + - 70
----
-19

query I rowsort
SELECT DISTINCT + 78 * - 53 AS col1
----
-4134

query I rowsort
SELECT ALL - 62 * 73 - - 73 * - 24
----
-6278

query I rowsort
SELECT - 43 * 16 AS col2
----
-688

query I rowsort
SELECT ALL 17 * 61 - + 41 AS col0
----
996

query I rowsort
SELECT - 36 * - 81 + 77 AS col2
----
2993

query I rowsort
SELECT - 7 * 95 AS col1
----
-665

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

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

query I rowsort
SELECT ALL + 46 * - 95 - + 11
----
-4381

query I rowsort
SELECT - 1 + + ( + 41 + - 20 )
----
20

onlyif mysql # DIV for integer division: 
query I rowsort label-2031
SELECT + ( - ( - 33 ) ) DIV - 8 AS col0
----
-4

skipif mysql # not compatible
query I rowsort label-2031
SELECT + ( - ( - 33 ) ) / - 8 AS col0
----
-4

onlyif mysql # DIV for integer division: 
query I rowsort label-2032
SELECT ALL - 9 DIV - 53
----
0

skipif mysql # not compatible
query I rowsort label-2032
SELECT ALL - 9 / - 53
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2033
SELECT - 64 * + ( - 64 * + COALESCE ( + 79, + 38 DIV - 42 ) ) + 89 AS col2
----
323673

skipif mysql # not compatible
query I rowsort label-2033
SELECT - 64 * + ( - 64 * + COALESCE ( + 79, + 38 / - 42 ) ) + 89 AS col2
----
323673

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2036
SELECT + 64 * + COUNT( * ) - - 91
----
155

skipif mysql # not compatible
query I rowsort label-2036
SELECT + 64 * + COUNT ( * ) - - 91
----
155

query I rowsort
SELECT + COALESCE ( + 39, 8 ) * 17
----
663

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

skipif mysql # not compatible
query I rowsort label-2038
SELECT + + COUNT ( DISTINCT - 89 ) AS col2
----
1

query I rowsort
SELECT + - COALESCE ( 34, + 55 ) AS col0
----
-34

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2040
SELECT ALL - ( + 59 ) * 13 + + ( CAST( 14 AS SIGNED ) + - 3 ) * - 18 AS col0
----
-965

skipif mysql # not compatible
query I rowsort label-2040
SELECT ALL - ( + 59 ) * 13 + + ( CAST ( 14 AS INTEGER ) + - 3 ) * - 18 AS col0
----
-965

onlyif mysql # aggregate syntax: 
query I rowsort label-2041
SELECT - 72 * 74 + + COUNT( + ( 95 ) ) AS col1
----
-5327

skipif mysql # not compatible
query I rowsort label-2041
SELECT - 72 * 74 + + COUNT ( + ( 95 ) ) AS col1
----
-5327

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

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

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

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

query I rowsort
SELECT ALL + 86 * + 21 + - 55
----
1751

query I rowsort
SELECT + 28 + 45
----
73

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2048
SELECT - + CASE - MIN( ( + 55 ) ) WHEN CAST( NULL AS SIGNED ) + + 37 THEN NULL WHEN - 81 * 16 THEN NULL WHEN - 67 * 94 THEN + COUNT( - 14 ) / 87 END
----
NULL

skipif mysql # not compatible
query I rowsort label-2048
SELECT - + CASE - MIN ( ( + 55 ) ) WHEN CAST ( NULL AS INTEGER ) + + 37 THEN NULL WHEN - 81 * 16 THEN NULL WHEN - 67 * 94 THEN + COUNT ( - 14 ) / 87 END
----
NULL

query I rowsort
SELECT 61 * - 5 + + 54 AS col2
----
-251

onlyif mysql # DIV for integer division: 
query I rowsort label-2050
SELECT + + 92 DIV 76 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-2050
SELECT + + 92 / 76 AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2051
SELECT - 9 + + + CASE 97 WHEN 45 THEN ( COUNT( * ) ) * 94 + + COALESCE ( + 85 - + 73, COUNT( * ), + 24 * - AVG ( + 83 ) ) END - 80 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2051
SELECT - 9 + + + CASE 97 WHEN 45 THEN ( COUNT ( * ) ) * 94 + + COALESCE ( + 85 - + 73, COUNT ( * ), + 24 * - AVG ( + 83 ) ) END - 80 AS col2
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2052
SELECT + CAST( NULL AS DECIMAL ) * + 4 / - ( 8 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2052
SELECT + CAST ( NULL AS REAL ) * + 4 / - ( 8 )
----
NULL

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

skipif mysql # not compatible
query I rowsort label-2053
SELECT - 86 + - - 38 * ( - COUNT ( * ) ) AS col1
----
-124

query I rowsort
SELECT ALL 91 + 24 + + 69
----
184

query I rowsort
SELECT - ( - + 85 ) col1
----
85

onlyif mysql # DIV for integer division: 
query I rowsort label-2056
SELECT + 73 DIV 94 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-2056
SELECT + 73 / 94 AS col1
----
0

query I rowsort
SELECT ALL + ( + ( 83 ) ) * + 82
----
6806

query I rowsort
SELECT ALL 55 - + + 95
----
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-2059
SELECT ALL - COUNT( * ) - - COALESCE ( 34, 22 + + 81 * 90 )
----
33

skipif mysql # not compatible
query I rowsort label-2059
SELECT ALL - COUNT ( * ) - - COALESCE ( 34, 22 + + 81 * 90 )
----
33

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

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

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

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

query I rowsort
SELECT - 31 * 88 + 41 AS col2
----
-2687

query I rowsort
SELECT + COALESCE ( 73, 37 * + 86 + - 81 )
----
73

onlyif mysql # aggregate syntax: 
query I rowsort label-2065
SELECT DISTINCT + 48 * - - 41 * SUM( 81 )
----
159408

skipif mysql # not compatible
query I rowsort label-2065
SELECT DISTINCT + 48 * - - 41 * SUM ( 81 )
----
159408

onlyif mysql # aggregate syntax: 
query I rowsort label-2066
SELECT ALL + CASE - COUNT( * ) WHEN 88 THEN 79 END
----
NULL

skipif mysql # not compatible
query I rowsort label-2066
SELECT ALL + CASE - COUNT ( * ) WHEN 88 THEN 79 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2067
SELECT ALL + - 20 * + 22 * - COUNT( * ) AS col2
----
440

skipif mysql # not compatible
query I rowsort label-2067
SELECT ALL + - 20 * + 22 * - COUNT ( * ) AS col2
----
440

onlyif mysql # aggregate syntax: 
query I rowsort label-2068
SELECT DISTINCT + - 3 * + NULLIF ( 1, MAX( ALL 73 ) ) AS col2
----
-3

skipif mysql # not compatible
query I rowsort label-2068
SELECT DISTINCT + - 3 * + NULLIF ( 1, MAX ( ALL 73 ) ) AS col2
----
-3

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2071
SELECT + - COUNT( * ) * + 71 + CASE - 87 WHEN + 9 THEN NULL WHEN + 86 + ( 76 + - COUNT( ALL - NULLIF ( 76, + 20 ) + 31 ) ) THEN 83 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2071
SELECT + - COUNT ( * ) * + 71 + CASE - 87 WHEN + 9 THEN NULL WHEN + 86 + ( 76 + - COUNT ( ALL - NULLIF ( 76, + 20 ) + 31 ) ) THEN 83 END AS col0
----
NULL

query I rowsort
SELECT ALL + + 28 * + 12 * 94
----
31584

query I rowsort
SELECT - - COALESCE ( ( 23 ), - 17 ) * + 25 AS col1
----
575

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

query I rowsort
SELECT 79 + - 66
----
13

query I rowsort
SELECT 81 * 84 * 82 AS col0
----
557928

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

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

query I rowsort
SELECT ALL - 71 + + 31 + + 69
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-2079
SELECT ALL 70 * 49 * COUNT( * )
----
3430

skipif mysql # not compatible
query I rowsort label-2079
SELECT ALL 70 * 49 * COUNT ( * )
----
3430

onlyif mysql # aggregate syntax: 
query I rowsort label-2080
SELECT + SUM( - 11 )
----
-11

skipif mysql # not compatible
query I rowsort label-2080
SELECT + SUM ( - 11 )
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-2081
SELECT + 49 * + COUNT( * ) col2
----
49

skipif mysql # not compatible
query I rowsort label-2081
SELECT + 49 * + COUNT ( * ) col2
----
49

query I rowsort
SELECT DISTINCT 27 + + + 16
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-2083
SELECT ALL NULLIF ( - + 37, 85 - 55 ) + + 58 * COUNT( * ) AS col0
----
21

skipif mysql # not compatible
query I rowsort label-2083
SELECT ALL NULLIF ( - + 37, 85 - 55 ) + + 58 * COUNT ( * ) AS col0
----
21

query I rowsort
SELECT + ( - NULLIF ( 24, 6 / + 23 ) ) AS col2
----
-24

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2086
SELECT COUNT( ALL - 0 ) - - - 63 + 2 * 40 AS col2
----
18

skipif mysql # not compatible
query I rowsort label-2086
SELECT COUNT ( ALL - 0 ) - - - 63 + 2 * 40 AS col2
----
18

query I rowsort
SELECT DISTINCT ( - - NULLIF ( + 80, - 92 * 54 ) ) * - 77 AS col0
----
-6160

query I rowsort
SELECT 5 - + 12 AS col2
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-2089
SELECT ALL CASE - + MIN( + 42 ) WHEN + 85 + - 19 THEN NULL WHEN 48 THEN NULL ELSE MAX( ALL + 65 ) + 39 END - 63 AS col2
----
41

skipif mysql # not compatible
query I rowsort label-2089
SELECT ALL CASE - + MIN ( + 42 ) WHEN + 85 + - 19 THEN NULL WHEN 48 THEN NULL ELSE MAX ( ALL + 65 ) + 39 END - 63 AS col2
----
41

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

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

query II rowsort
SELECT 78 AS col2, - 5 * + - 47 - 53 col2
----
78
182

onlyif mysql # DIV for integer division: 
query I rowsort label-2092
SELECT 40 - - + 35 - - 62 DIV + 29 AS col0
----
77

skipif mysql # not compatible
query I rowsort label-2092
SELECT 40 - - + 35 - - 62 / + 29 AS col0
----
77

query I rowsort
SELECT 11 * - 18 * + 2
----
-396

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2094
SELECT COUNT( * ) + - 43 DIV + 16 + 82 AS col0
----
81

skipif mysql # not compatible
query I rowsort label-2094
SELECT COUNT ( * ) + - 43 / + 16 + 82 AS col0
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-2095
SELECT COALESCE ( 95, - COUNT( * ) ) - + 91 AS col1
----
4

skipif mysql # not compatible
query I rowsort label-2095
SELECT COALESCE ( 95, - COUNT ( * ) ) - + 91 AS col1
----
4

query I rowsort
SELECT ALL NULLIF ( + - 54, + - 23 ) - - 98 AS col1
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-2097
SELECT 59 + - - CASE 98 WHEN - 92 THEN + 11 WHEN 78 THEN 45 * - 97 WHEN 49 * COUNT( * ) - - 39 THEN - 99 * 98 ELSE NULL END * NULLIF ( - 0 * COUNT( * ), 93 ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2097
SELECT 59 + - - CASE 98 WHEN - 92 THEN + 11 WHEN 78 THEN 45 * - 97 WHEN 49 * COUNT ( * ) - - 39 THEN - 99 * 98 ELSE NULL END * NULLIF ( - 0 * COUNT ( * ), 93 ) col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2098
SELECT 30 DIV - 88 * - 15 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-2098
SELECT 30 / - 88 * - 15 AS col2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2099
SELECT 65 DIV + ( 52 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-2099
SELECT 65 / + ( 52 ) AS col1
----
1

query I rowsort
SELECT ALL 96 * 48 * - 93 * + 50 AS col0
----
-21427200

onlyif mysql # aggregate syntax: 
query I rowsort label-2101
SELECT ( - 75 ) + - 71 * MIN( DISTINCT + 91 + 94 ) col0
----
-13210

skipif mysql # not compatible
query I rowsort label-2101
SELECT ( - 75 ) + - 71 * MIN ( DISTINCT + 91 + 94 ) col0
----
-13210

query I rowsort
SELECT DISTINCT - 16 * ( - 4 )
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-2103
SELECT 49 + - MAX( DISTINCT + 77 ) + 11 AS col1
----
-17

skipif mysql # not compatible
query I rowsort label-2103
SELECT 49 + - MAX ( DISTINCT + 77 ) + 11 AS col1
----
-17

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

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

query I rowsort
SELECT ALL - NULLIF ( 32, AVG ( DISTINCT 53 ) )
----
-32

query II rowsort
SELECT 2 AS col0, 7 AS col0
----
2
7

query I rowsort
SELECT ALL + ( - 97 ) * - 4
----
388

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

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

query I rowsort
SELECT ALL + 66 + - 75
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-2110
SELECT COUNT( * ) + + 32 * - MIN( - 97 ) col2
----
3105

skipif mysql # not compatible
query I rowsort label-2110
SELECT COUNT ( * ) + + 32 * - MIN ( - 97 ) col2
----
3105

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

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

query I rowsort
SELECT DISTINCT - 75 + - + 24
----
-99

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

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

query I rowsort
SELECT DISTINCT + 72 + 58
----
130

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

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

query I rowsort
SELECT - 46 + 37 AS col2
----
-9

query I rowsort
SELECT ALL + 39 - - CASE 20 WHEN - 85 * + 32 THEN 1 WHEN + 33 THEN NULL ELSE + 53 END AS col1
----
92

query II rowsort
SELECT + 34, 89 col1
----
34
89

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2119
SELECT CASE 25 WHEN - CAST( NULLIF ( - 51, + 0 ) AS SIGNED ) + NULLIF ( 14 + - COALESCE ( + ( 33 ), 36, - 39 + 75 * 40 ), COALESCE ( 17, - CAST( NULL AS SIGNED ) * ( 55 ) + 12, - CAST( 73 AS SIGNED ) ) ) THEN 85 DIV + 74 ELSE + 56 + 39 END * - 85
----
-8075

skipif mysql # not compatible
query I rowsort label-2119
SELECT CASE 25 WHEN - CAST ( NULLIF ( - 51, + 0 ) AS INTEGER ) + NULLIF ( 14 + - COALESCE ( + ( 33 ), 36, - 39 + 75 * 40 ), COALESCE ( 17, - CAST ( NULL AS INTEGER ) * ( 55 ) + 12, - CAST ( 73 AS INTEGER ) ) ) THEN 85 / + 74 ELSE + 56 + 39 END * - 85
----
-8075

query I rowsort
SELECT + 13 + - 18 col1
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-2121
SELECT 14 + + - SUM( ALL 53 ) col1
----
-39

skipif mysql # not compatible
query I rowsort label-2121
SELECT 14 + + - SUM ( ALL 53 ) col1
----
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-2122
SELECT NULLIF ( - 39, 16 ) * 22 * COUNT( * )
----
-858

skipif mysql # not compatible
query I rowsort label-2122
SELECT NULLIF ( - 39, 16 ) * 22 * COUNT ( * )
----
-858

query I rowsort
SELECT ALL - 74 * - 63
----
4662

query I rowsort
SELECT 20 * 83 col0
----
1660

query I rowsort
SELECT 56 * 63 * + 3 col2
----
10584

onlyif mysql # aggregate syntax: 
query I rowsort label-2126
SELECT SUM( + 46 ) + + 16 * + + 7 AS col0
----
158

skipif mysql # not compatible
query I rowsort label-2126
SELECT SUM ( + 46 ) + + 16 * + + 7 AS col0
----
158

onlyif mysql # aggregate syntax: 
query I rowsort label-2127
SELECT 68 + 16 * - COUNT( * ) + + + 83 * - 85
----
-7003

skipif mysql # not compatible
query I rowsort label-2127
SELECT 68 + 16 * - COUNT ( * ) + + + 83 * - 85
----
-7003

query I rowsort
SELECT DISTINCT - 57 * 76 AS col2
----
-4332

onlyif mysql # DIV for integer division: 
query I rowsort label-2129
SELECT ALL 95 + + 55 - - 75 * 45 DIV - 23 AS col1
----
4

skipif mysql # not compatible
query I rowsort label-2129
SELECT ALL 95 + + 55 - - 75 * 45 / - 23 AS col1
----
4

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

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

query I rowsort
SELECT 8 * 90 - - + 14
----
734

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2132
SELECT ALL 75 DIV + NULLIF ( - - COUNT( * ), 98 ) AS col1
----
75

skipif mysql # not compatible
query I rowsort label-2132
SELECT ALL 75 / + NULLIF ( - - COUNT ( * ), 98 ) AS col1
----
75

query I rowsort
SELECT DISTINCT COALESCE ( - 90, + 14 )
----
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-2134
SELECT + - CASE MIN( ALL 20 ) WHEN + COUNT( * ) THEN NULL ELSE - 56 * - 5 END * 73 col1
----
-20440

skipif mysql # not compatible
query I rowsort label-2134
SELECT + - CASE MIN ( ALL 20 ) WHEN + COUNT ( * ) THEN NULL ELSE - 56 * - 5 END * 73 col1
----
-20440

query I rowsort
SELECT + - ( 10 ) - - - 22 + - - 31 + 2 * 66
----
131

onlyif mysql # DIV for integer division: 
query I rowsort label-2136
SELECT ALL - 26 DIV + - 45 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-2136
SELECT ALL - 26 / + - 45 AS col2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2137
SELECT DISTINCT + 52 * - + CAST( + NULLIF ( + - 64, 53 ) AS SIGNED ) + - 94
----
3234

skipif mysql # not compatible
query I rowsort label-2137
SELECT DISTINCT + 52 * - + CAST ( + NULLIF ( + - 64, 53 ) AS INTEGER ) + - 94
----
3234

query I rowsort
SELECT ALL - 46 * - 23 * + 43 * + 76 * - 10
----
-34575440

query II rowsort
SELECT DISTINCT + + ( 64 ) AS col1, + 42 AS col1
----
64
42

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2140
SELECT + 90 DIV + 20 + 80 + COUNT( * ) AS col1
----
85

skipif mysql # not compatible
query I rowsort label-2140
SELECT + 90 / + 20 + 80 + COUNT ( * ) AS col1
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-2141
SELECT + - SUM( 94 )
----
-94

skipif mysql # not compatible
query I rowsort label-2141
SELECT + - SUM ( 94 )
----
-94

query I rowsort
SELECT + - ( - - NULLIF ( 16, - + 70 - + COALESCE ( 76, + 59 ) ) )
----
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-2143
SELECT MAX( 96 ) col0
----
96

skipif mysql # not compatible
query I rowsort label-2143
SELECT MAX ( 96 ) col0
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-2144
SELECT ALL + 47 * 55 - + COUNT( * )
----
2584

skipif mysql # not compatible
query I rowsort label-2144
SELECT ALL + 47 * 55 - + COUNT ( * )
----
2584

query I rowsort
SELECT ALL - 51 * + + 6
----
-306

query I rowsort
SELECT - 27 * - 29 AS col0
----
783

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2147
SELECT - 44 DIV NULLIF ( + + 74, - 90 - + 68 - - COUNT( * ) * 64 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-2147
SELECT - 44 / NULLIF ( + + 74, - 90 - + 68 - - COUNT ( * ) * 64 ) AS col2
----
0

query I rowsort
SELECT DISTINCT - 33 * - 13
----
429

query I rowsort
SELECT ALL + CASE - NULLIF ( - 27, - 10 ) WHEN + 8 THEN NULL ELSE - 40 END
----
-40

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: DIV for integer division: 
query I rowsort label-2151
SELECT - COUNT( * ) DIV + COALESCE ( + 46, - 49 + 53 * + 69, - CAST( NULL AS SIGNED ), COUNT( + CASE + CAST( NULL AS DECIMAL ) WHEN - 60 THEN + 59 * - 77 END ) - + 93 ) * 72
----
0

skipif mysql # not compatible
query I rowsort label-2151
SELECT - COUNT ( * ) / + COALESCE ( + 46, - 49 + 53 * + 69, - CAST ( NULL AS INTEGER ), COUNT ( + CASE + CAST ( NULL AS REAL ) WHEN - 60 THEN + 59 * - 77 END ) - + 93 ) * 72
----
0

query I rowsort
SELECT ALL + 16 + 19
----
35

query I rowsort
SELECT - 61 - + 79 * 99 + + 65 AS col2
----
-7817

query I rowsort
SELECT ALL + COALESCE ( - 59, + + 89 * + 54 + - - 55 ) * 57
----
-3363

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

skipif mysql # not compatible
query I rowsort label-2155
SELECT DISTINCT + ( - COUNT ( * ) ) + - NULLIF ( - + 45, - COUNT ( * ) )
----
44

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

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

query I rowsort
SELECT ALL + 16 + - 19 + + - 30 + - - 4 AS col0
----
-29

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2159
SELECT ALL 42 + 57 * 88 * - 1 - CASE COUNT( DISTINCT + 49 ) WHEN COUNT( * ) + 1 THEN NULL ELSE - 13 END + + ( + 98 ) AS col1
----
-4863

skipif mysql # not compatible
query I rowsort label-2159
SELECT ALL 42 + 57 * 88 * - 1 - CASE COUNT ( DISTINCT + 49 ) WHEN COUNT ( * ) + 1 THEN NULL ELSE - 13 END + + ( + 98 ) AS col1
----
-4863

query I rowsort
SELECT ALL 1 + + 78
----
79

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2162
SELECT + 24 * + + CAST( - 80 AS SIGNED ) DIV COUNT( - 75 ) * COUNT( * ) - - 15 * 64 col0
----
-960

skipif mysql # not compatible
query I rowsort label-2162
SELECT + 24 * + + CAST ( - 80 AS INTEGER ) / COUNT ( - 75 ) * COUNT ( * ) - - 15 * 64 col0
----
-960

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

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

query II rowsort
SELECT 27 col1, 57 * + 82 * 58 * 26
----
27
7048392

onlyif mysql # aggregate syntax: 
query I rowsort label-2165
SELECT ALL + MAX( ALL - - 72 ) + + - ( 61 ) AS col0
----
11

skipif mysql # not compatible
query I rowsort label-2165
SELECT ALL + MAX ( ALL - - 72 ) + + - ( 61 ) AS col0
----
11

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2166
SELECT - + SUM( DISTINCT COALESCE ( - 71, 66 - + - CAST( - 53 AS SIGNED ) * 66 ) ) + + 52 AS col0
----
123

skipif mysql # not compatible
query I rowsort label-2166
SELECT - + SUM ( DISTINCT COALESCE ( - 71, 66 - + - CAST ( - 53 AS INTEGER ) * 66 ) ) + + 52 AS col0
----
123

query II rowsort
SELECT DISTINCT - 97 * + - 7 * + 53 AS col2, + 48 AS col0
----
35987
48

query I rowsort
SELECT ALL + 38 + + 64 col1
----
102

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2170
SELECT ALL + 12 DIV - NULLIF ( + 10, + ( - + 23 ) ) - 76 * 57
----
-4333

skipif mysql # not compatible
query I rowsort label-2170
SELECT ALL + 12 / - NULLIF ( + 10, + ( - + 23 ) ) - 76 * 57
----
-4333

onlyif mysql # aggregate syntax: 
query I rowsort label-2171
SELECT + 6 * COUNT( * ) * + SUM( ALL + 99 ) - + + CASE + 46 WHEN + 83 THEN NULL WHEN - 7 * - 34 THEN - 66 * + 13 - + 86 END + 58
----
NULL

skipif mysql # not compatible
query I rowsort label-2171
SELECT + 6 * COUNT ( * ) * + SUM ( ALL + 99 ) - + + CASE + 46 WHEN + 83 THEN NULL WHEN - 7 * - 34 THEN - 66 * + 13 - + 86 END + 58
----
NULL

query I rowsort
SELECT ALL + - ( CASE + + 19 WHEN 62 THEN NULL ELSE 15 END ) AS col1
----
-15

onlyif mysql # DIV for integer division: 
query II rowsort label-2173
SELECT 45 DIV + 13 + 50, + 18 AS col0
----
53
18

skipif mysql # not compatible
query II rowsort label-2173
SELECT 45 / + 13 + 50, + 18 AS col0
----
53
18

query II rowsort
SELECT + COALESCE ( - + 30, - 7 ) AS col0, 67
----
-30
67

query I rowsort
SELECT + - NULLIF ( 33, + 38 )
----
-33

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2177
SELECT + 45 DIV + 70 DIV + COUNT( * ) - + 13 + 36 + - 47 * 78 * + COUNT( * ) + + ( - 61 ) * + COALESCE ( - 22, - NULLIF ( CAST( - 98 AS SIGNED ), 11 - - 39 ) )
----
-2301

skipif mysql # not compatible
query I rowsort label-2177
SELECT + 45 / + 70 / + COUNT ( * ) - + 13 + 36 + - 47 * 78 * + COUNT ( * ) + + ( - 61 ) * + COALESCE ( - 22, - NULLIF ( CAST ( - 98 AS INTEGER ), 11 - - 39 ) )
----
-2301

onlyif mysql # DIV for integer division: 
query I rowsort label-2178
SELECT + + 59 DIV + 52
----
1

skipif mysql # not compatible
query I rowsort label-2178
SELECT + + 59 / + 52
----
1

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

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

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

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

query I rowsort
SELECT + - CASE WHEN NOT ( - 15 ) IS NULL THEN - 90 END * + 21 * + 91
----
171990

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2182
SELECT ALL + CASE + 58 WHEN + 71 * + COUNT( ALL + 49 ) - 7 + NULLIF ( CASE 81 WHEN COUNT( * ) * COALESCE ( + 82, 1 ) THEN + 11 + 82 * - 16 WHEN 67 THEN 81 ELSE NULL END + + CAST( + MAX( 86 ) AS DECIMAL ) * 71, 53 / + 27 ) THEN NULL WHEN + 86 - - 88 THEN 60 END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2182
SELECT ALL + CASE + 58 WHEN + 71 * + COUNT ( ALL + 49 ) - 7 + NULLIF ( CASE 81 WHEN COUNT ( * ) * COALESCE ( + 82, 1 ) THEN + 11 + 82 * - 16 WHEN 67 THEN 81 ELSE NULL END + + CAST ( + MAX ( 86 ) AS REAL ) * 71, 53 / + 27 ) THEN NULL WHEN + 86 - - 88 THEN 60 END col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2183
SELECT DISTINCT + 20 DIV MIN( - 58 ), + 56 DIV + NULLIF ( 5, 32 ) + + 34 * ( + 66 ) AS col1
----
0
2255

skipif mysql # not compatible
query II rowsort label-2183
SELECT DISTINCT + 20 / MIN ( - 58 ), + 56 / + NULLIF ( 5, 32 ) + + 34 * ( + 66 ) AS col1
----
0
2255

query I rowsort
SELECT + 3 * ( + ( - - 86 ) )
----
258

query I rowsort
SELECT + 21 + + 64
----
85

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2187
SELECT - CASE + + COUNT( * ) WHEN - 53 - - ( COUNT( * ) ) THEN - 46 * + 53 WHEN 58 THEN 29 ELSE + COALESCE ( + 49, 84 + ( ( 18 ) ) * + 40, - 69, 46 ) * COUNT( * ) END + 72 * + 43
----
3047

skipif mysql # not compatible
query I rowsort label-2187
SELECT - CASE + + COUNT ( * ) WHEN - 53 - - ( COUNT ( * ) ) THEN - 46 * + 53 WHEN 58 THEN 29 ELSE + COALESCE ( + 49, 84 + ( ( 18 ) ) * + 40, - 69, 46 ) * COUNT ( * ) END + 72 * + 43
----
3047

onlyif mysql # aggregate syntax: 
query I rowsort label-2188
SELECT + 67 * SUM( + - 92 ) * 78
----
-480792

skipif mysql # not compatible
query I rowsort label-2188
SELECT + 67 * SUM ( + - 92 ) * 78
----
-480792

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2189
SELECT 11 * COUNT( DISTINCT - - 85 ) * 62 * + 48 / ( 49 ) + + ( + CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-2189
SELECT 11 * COUNT ( DISTINCT - - 85 ) * 62 * + 48 / ( 49 ) + + ( + CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2190
SELECT CASE + 63 WHEN - 80 + - - ( - COUNT( * ) ) THEN + 16 / 17 + + ( 77 + 60 * 78 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-2190
SELECT CASE + 63 WHEN - 80 + - - ( - COUNT ( * ) ) THEN + 16 / 17 + + ( 77 + 60 * 78 ) END
----
NULL

query I rowsort
SELECT COALESCE ( - 45, 24 )
----
-45

query I rowsort
SELECT + 61 + - 22 AS col2
----
39

query I rowsort
SELECT DISTINCT + 32 * - 11 + + + 21
----
-331

query I rowsort
SELECT COALESCE ( 77, - + 91 )
----
77

query I rowsort
SELECT DISTINCT 78 * + + 41 * - 73 + - 59 + + ( + + 25 ) * 17
----
-233088

onlyif mysql # aggregate syntax: 
query I rowsort label-2196
SELECT DISTINCT + 16 * - SUM( DISTINCT - + 17 ) + + 37
----
309

skipif mysql # not compatible
query I rowsort label-2196
SELECT DISTINCT + 16 * - SUM ( DISTINCT - + 17 ) + + 37
----
309

query I rowsort
SELECT ALL NULLIF ( 59, 81 ) AS col2
----
59

query I rowsort
SELECT + 1 * + 6 AS col1
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-2199
SELECT - NULLIF ( + ( 52 ), + MAX( DISTINCT + - 37 ) ) + - - 9 AS col0
----
-43

skipif mysql # not compatible
query I rowsort label-2199
SELECT - NULLIF ( + ( 52 ), + MAX ( DISTINCT + - 37 ) ) + - - 9 AS col0
----
-43

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2201
SELECT 93 + + + 9 - + - COUNT( * )
----
103

skipif mysql # not compatible
query I rowsort label-2201
SELECT 93 + + + 9 - + - COUNT ( * )
----
103

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2203
SELECT ALL - 12 AS col0, - COUNT( * ) * - 64 * + - CAST( + 58 AS SIGNED ) AS col1
----
-12
-3712

skipif mysql # not compatible
query II rowsort label-2203
SELECT ALL - 12 AS col0, - COUNT ( * ) * - 64 * + - CAST ( + 58 AS INTEGER ) AS col1
----
-12
-3712

query I rowsort
SELECT - COALESCE ( - 67, + + 35 * + + 26 ) + - 52
----
15

query I rowsort
SELECT DISTINCT - + 90 * 99 + - 21
----
-8931

onlyif mysql # aggregate syntax: 
query I rowsort label-2206
SELECT 2 * + + SUM( ALL + 43 ) AS col1
----
86

skipif mysql # not compatible
query I rowsort label-2206
SELECT 2 * + + SUM ( ALL + 43 ) AS col1
----
86

onlyif mysql # DIV for integer division: 
query I rowsort label-2207
SELECT DISTINCT + + 94 DIV 62 * + 30
----
30

skipif mysql # not compatible
query I rowsort label-2207
SELECT DISTINCT + + 94 / 62 * + 30
----
30

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2210
SELECT + 43 * - + CASE + 60 WHEN - 76 + COUNT( * ) THEN NULL ELSE + 40 * - 93 END DIV + COUNT( * ) AS col1
----
159960

skipif mysql # not compatible
query I rowsort label-2210
SELECT + 43 * - + CASE + 60 WHEN - 76 + COUNT ( * ) THEN NULL ELSE + 40 * - 93 END / + COUNT ( * ) AS col1
----
159960

query I rowsort
SELECT ALL + 52 * - 21 col1
----
-1092

onlyif mysql # aggregate syntax: 
query III rowsort label-2212
SELECT + + 74 AS col0, + 19 * + + 97 + COUNT( * ) AS col0, + + COUNT( - 9 ) AS col1
----
74
1844
1

skipif mysql # not compatible
query III rowsort label-2212
SELECT + + 74 AS col0, + 19 * + + 97 + COUNT ( * ) AS col0, + + COUNT ( - 9 ) AS col1
----
74
1844
1

query I rowsort
SELECT 20 - - 94 + 10 + - 90 + 97
----
131

onlyif mysql # aggregate syntax: 
query I rowsort label-2214
SELECT ALL 9 * - ( + 46 ) + + COUNT( ALL - 52 ) col0
----
-413

skipif mysql # not compatible
query I rowsort label-2214
SELECT ALL 9 * - ( + 46 ) + + COUNT ( ALL - 52 ) col0
----
-413

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2215
SELECT ALL + CASE - + CAST( - COUNT( * ) AS SIGNED ) WHEN - 28 / - 62 + + COUNT( * ) + COALESCE ( 12, + 21 - COUNT( * ) * ( + 31 ) ) / - COUNT( * ) + + 35 THEN - 7 END * 48 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2215
SELECT ALL + CASE - + CAST ( - COUNT ( * ) AS INTEGER ) WHEN - 28 / - 62 + + COUNT ( * ) + COALESCE ( 12, + 21 - COUNT ( * ) * ( + 31 ) ) / - COUNT ( * ) + + 35 THEN - 7 END * 48 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2216
SELECT DISTINCT + SUM( 97 ) * - + COUNT( * ) * + ( + 50 )
----
-4850

skipif mysql # not compatible
query I rowsort label-2216
SELECT DISTINCT + SUM ( 97 ) * - + COUNT ( * ) * + ( + 50 )
----
-4850

onlyif mysql # aggregate syntax: 
query III rowsort label-2217
SELECT DISTINCT - 71 AS col2, ( - ( 75 ) ) AS col0, + NULLIF ( + - NULLIF ( - 27, + 9 ), 89 / - COUNT( * ) + + 35 ) AS col2
----
-71
-75
27

skipif mysql # not compatible
query III rowsort label-2217
SELECT DISTINCT - 71 AS col2, ( - ( 75 ) ) AS col0, + NULLIF ( + - NULLIF ( - 27, + 9 ), 89 / - COUNT ( * ) + + 35 ) AS col2
----
-71
-75
27

query I rowsort
SELECT DISTINCT ( - 63 ) + - 54 + 78 * 85 + 19 AS col0
----
6532

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2220
SELECT ALL CAST( - + 49 AS SIGNED ) + ( + CAST( + SUM( 97 ) AS SIGNED ) ) + - 0 AS col0
----
48

skipif mysql # not compatible
query I rowsort label-2220
SELECT ALL CAST ( - + 49 AS INTEGER ) + ( + CAST ( + SUM ( 97 ) AS INTEGER ) ) + - 0 AS col0
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-2221
SELECT MIN( ALL 0 ) * + + 93 * - 55
----
0

skipif mysql # not compatible
query I rowsort label-2221
SELECT MIN ( ALL 0 ) * + + 93 * - 55
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2222
SELECT ( - 5 ) DIV + ( - + 92 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-2222
SELECT ( - 5 ) / + ( - + 92 ) AS col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2223
SELECT ALL 43 + SUM( DISTINCT + + 77 ) - + CAST( 72 AS SIGNED ) AS col2
----
48

skipif mysql # not compatible
query I rowsort label-2223
SELECT ALL 43 + SUM ( DISTINCT + + 77 ) - + CAST ( 72 AS INTEGER ) AS col2
----
48

query I rowsort
SELECT ALL 25 + + NULLIF ( 31, - 34 * - 80 + - 44 ) AS col2
----
56

query I rowsort
SELECT ALL 37 * 18
----
666

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2226
SELECT COUNT( * ) + + MAX( - 6 ) - - - 70 DIV - 14 col0, - 95 - - CAST( MIN( DISTINCT - 8 ) AS SIGNED ) + - COUNT( * ) col0
----
0
-104

skipif mysql # not compatible
query II rowsort label-2226
SELECT COUNT ( * ) + + MAX ( - 6 ) - - - 70 / - 14 col0, - 95 - - CAST ( MIN ( DISTINCT - 8 ) AS INTEGER ) + - COUNT ( * ) col0
----
0
-104

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

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

query II rowsort
SELECT ALL 66 + 82 AS col2, - 70 AS col2
----
148
-70

query I rowsort
SELECT 64 - + 12 AS col0
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-2230
SELECT DISTINCT 95 - + COALESCE ( 47, 33 * - NULLIF ( + 11, 70 ) + - 7 ) * - COUNT( * )
----
142

skipif mysql # not compatible
query I rowsort label-2230
SELECT DISTINCT 95 - + COALESCE ( 47, 33 * - NULLIF ( + 11, 70 ) + - 7 ) * - COUNT ( * )
----
142

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

skipif mysql # not compatible
query I rowsort label-2231
SELECT ALL + 38 - + COUNT ( 26 ) AS col2
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-2232
SELECT ALL + ( 79 ) - + 9 * + + COUNT( * ) col1
----
70

skipif mysql # not compatible
query I rowsort label-2232
SELECT ALL + ( 79 ) - + 9 * + + COUNT ( * ) col1
----
70

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2233
SELECT COUNT( * ) * + 35 - + + COUNT( * ) + - 34 DIV + + ( - - 37 )
----
34

skipif mysql # not compatible
query I rowsort label-2233
SELECT COUNT ( * ) * + 35 - + + COUNT ( * ) + - 34 / + + ( - - 37 )
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-2234
SELECT + 5 + + SUM( + 11 ) + + + COUNT( * ) * - COUNT( * )
----
15

skipif mysql # not compatible
query I rowsort label-2234
SELECT + 5 + + SUM ( + 11 ) + + + COUNT ( * ) * - COUNT ( * )
----
15

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2235
SELECT 65 + - SUM( CAST( NULL AS SIGNED ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2235
SELECT 65 + - SUM ( CAST ( NULL AS INTEGER ) ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2236
SELECT - 41 * + COUNT( * ) * 77 * + + 16 * 63 AS col2
----
-3182256

skipif mysql # not compatible
query I rowsort label-2236
SELECT - 41 * + COUNT ( * ) * 77 * + + 16 * 63 AS col2
----
-3182256

onlyif mysql # aggregate syntax: 
query I rowsort label-2237
SELECT DISTINCT 15 * - 16 + + 64 - + CASE + 40 WHEN 21 THEN NULL WHEN + 72 * COUNT( * ) THEN NULL ELSE - 22 END + 88
----
-66

skipif mysql # not compatible
query I rowsort label-2237
SELECT DISTINCT 15 * - 16 + + 64 - + CASE + 40 WHEN 21 THEN NULL WHEN + 72 * COUNT ( * ) THEN NULL ELSE - 22 END + 88
----
-66

query I rowsort
SELECT DISTINCT + 95 * - ( 27 ) col2
----
-2565

query I rowsort
SELECT + 63 * 2 - - - 54 * - 51 AS col1
----
2880

query I rowsort
SELECT ALL COALESCE ( - COALESCE ( - 81, + 63 + + 10, - - 2 + - 49 * 59 ), + 72 * 98 ) AS col1
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-2241
SELECT SUM( ALL + + 25 ) * + - 53 + - + 74 * + 34 AS col0
----
-3841

skipif mysql # not compatible
query I rowsort label-2241
SELECT SUM ( ALL + + 25 ) * + - 53 + - + 74 * + 34 AS col0
----
-3841

onlyif mysql # DIV for integer division: 
query I rowsort label-2242
SELECT ALL - + 24 DIV - 42 * - 50
----
0

skipif mysql # not compatible
query I rowsort label-2242
SELECT ALL - + 24 / - 42 * - 50
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2243
SELECT COUNT( - 7 ) * - 11 DIV + 1 + 81 + + + ( - + COALESCE ( - COUNT( * ), 13, 45, + COUNT( * ) ) ) * + 39
----
109

skipif mysql # not compatible
query I rowsort label-2243
SELECT COUNT ( - 7 ) * - 11 / + 1 + 81 + + + ( - + COALESCE ( - COUNT ( * ), 13, 45, + COUNT ( * ) ) ) * + 39
----
109

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2245
SELECT - ( + SUM( DISTINCT 24 ) ) * + 42 * - 29 * + 43 - + 16 * - 76 col2
----
1258192

skipif mysql # not compatible
query I rowsort label-2245
SELECT - ( + SUM ( DISTINCT 24 ) ) * + 42 * - 29 * + 43 - + 16 * - 76 col2
----
1258192

query I rowsort
SELECT ALL - + 91 * 47 + + 94 * + ( - COALESCE ( + NULLIF ( 1, + 83 ), - 46 + 66 ) )
----
-4371

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2247
SELECT 30 + 92 + - CAST( - 45 AS SIGNED ) * ( - 32 ) - - ( - 64 ) - - 24 AS col2
----
-1358

skipif mysql # not compatible
query I rowsort label-2247
SELECT 30 + 92 + - CAST ( - 45 AS INTEGER ) * ( - 32 ) - - ( - 64 ) - - 24 AS col2
----
-1358

onlyif mysql # aggregate syntax: 
query I rowsort label-2248
SELECT COUNT( DISTINCT - 92 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-2248
SELECT COUNT ( DISTINCT - 92 ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2249
SELECT ALL + COUNT( * ) * + 55 + + + 12 * + CASE + 38 WHEN - AVG ( + 70 ) THEN - ( 3 ) + + 30 WHEN 12 * - 16 THEN ( + 84 ) + - ( 75 ) END + - 21 * 98
----
NULL

skipif mysql # not compatible
query I rowsort label-2249
SELECT ALL + COUNT ( * ) * + 55 + + + 12 * + CASE + 38 WHEN - AVG ( + 70 ) THEN - ( 3 ) + + 30 WHEN 12 * - 16 THEN ( + 84 ) + - ( 75 ) END + - 21 * 98
----
NULL

query I rowsort
SELECT ALL - ( + 47 ) * - 15 + 2 + 24 - - 19 AS col1
----
750

query II rowsort
SELECT DISTINCT - 78 * + - 23 + - - 44 col2, 43
----
1838
43

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2253
SELECT ALL - COALESCE ( - + NULLIF ( - - 37, - ( + + 26 ) ), + - SUM( DISTINCT + + 34 ), - - 17 )
----
37

skipif mysql # not compatible
query I rowsort label-2253
SELECT ALL - COALESCE ( - + NULLIF ( - - 37, - ( + + 26 ) ), + - SUM ( DISTINCT + + 34 ), - - 17 )
----
37

query I rowsort
SELECT DISTINCT 63 * + 37 + - 26 AS col1
----
2305

query I rowsort
SELECT + 84 + 75 + + + 11
----
170

query I rowsort
SELECT ALL 90 - - 41
----
131

query I rowsort
SELECT - 96 * 17 * 97 AS col0
----
-158304

query II rowsort
SELECT ALL - 85 - 58 * 90 AS col1, 20 + - - 11 AS col1
----
-5305
31

query I rowsort
SELECT ALL CASE - + 88 WHEN 44 + + 51 - 30 THEN + 10 END AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2260
SELECT DISTINCT - 67 DIV - MIN( ALL + - CAST( + 82 AS SIGNED ) ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-2260
SELECT DISTINCT - 67 / - MIN ( ALL + - CAST ( + 82 AS INTEGER ) ) AS col2
----
0

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

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

query I rowsort
SELECT + 59 + + 4
----
63

query I rowsort
SELECT + 98 * - 53 AS col0
----
-5194

query I rowsort
SELECT DISTINCT + 85 * + 58 + + 53 AS col0
----
4983

query I rowsort
SELECT CASE - - 30 WHEN - - 47 THEN NULL ELSE + 19 + + + 19 END
----
38

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2267
SELECT - + COALESCE ( + + SUM( DISTINCT + 15 ), + 2 - 6 + - 50 * - 34 ) * + COUNT( * ) * 6 AS col0
----
-90

skipif mysql # not compatible
query I rowsort label-2267
SELECT - + COALESCE ( + + SUM ( DISTINCT + 15 ), + 2 - 6 + - 50 * - 34 ) * + COUNT ( * ) * 6 AS col0
----
-90

query I rowsort
SELECT + + 30 + - - 16 AS col0
----
46

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2270
SELECT DISTINCT - CASE - - 29 WHEN - 84 + + CASE + + COUNT( * ) WHEN - 13 * - 79 THEN NULL WHEN - ( 9 ) THEN 12 ELSE NULL END THEN COALESCE ( 33, ( + 60 ) * 83, - ( 63 ) / 5 ) + ( 39 ) * - 93 WHEN 74 * 71 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-2270
SELECT DISTINCT - CASE - - 29 WHEN - 84 + + CASE + + COUNT ( * ) WHEN - 13 * - 79 THEN NULL WHEN - ( 9 ) THEN 12 ELSE NULL END THEN COALESCE ( 33, ( + 60 ) * 83, - ( 63 ) / 5 ) + ( 39 ) * - 93 WHEN 74 * 71 THEN NULL END
----
NULL

query I rowsort
SELECT ALL 31 + - CASE - + 55 WHEN + + 91 THEN 55 * - 0 ELSE NULL END * 83
----
NULL

query I rowsort
SELECT DISTINCT - + 22 * + 84
----
-1848

onlyif mysql # aggregate syntax: 
query I rowsort label-2273
SELECT - 84 + - 1 * MIN( DISTINCT - - 17 ) - - 66 AS col1
----
-35

skipif mysql # not compatible
query I rowsort label-2273
SELECT - 84 + - 1 * MIN ( DISTINCT - - 17 ) - - 66 AS col1
----
-35

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2274
SELECT - - COALESCE ( - - COUNT( * ), + 0 - - 57, - 50 + - - NULLIF ( CAST( + 33 AS SIGNED ), + 2 * + 10 ) ) + 45 * 37 AS col0
----
1666

skipif mysql # not compatible
query I rowsort label-2274
SELECT - - COALESCE ( - - COUNT ( * ), + 0 - - 57, - 50 + - - NULLIF ( CAST ( + 33 AS INTEGER ), + 2 * + 10 ) ) + 45 * 37 AS col0
----
1666

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2275
SELECT ALL - 8 + + CAST( NULL AS SIGNED ) * - 97 AS col2, ( - - 45 ) * CAST( NULL AS SIGNED ) / + 16
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-2275
SELECT ALL - 8 + + CAST ( NULL AS INTEGER ) * - 97 AS col2, ( - - 45 ) * CAST ( NULL AS INTEGER ) / + 16
----
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2276
SELECT ALL 71 + COUNT( * ) * + ( + COUNT( * ) ) + 27 - + COUNT( * ) * - 28 AS col0
----
127

skipif mysql # not compatible
query I rowsort label-2276
SELECT ALL 71 + COUNT ( * ) * + ( + COUNT ( * ) ) + 27 - + COUNT ( * ) * - 28 AS col0
----
127

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2277
SELECT DISTINCT - 50 DIV - - 77 * + + ( + NULLIF ( + + 81, + 72 ) ) * + + 65 * + MIN( DISTINCT 99 ) * + 32 + + 41 AS col2
----
41

skipif mysql # not compatible
query I rowsort label-2277
SELECT DISTINCT - 50 / - - 77 * + + ( + NULLIF ( + + 81, + 72 ) ) * + + 65 * + MIN ( DISTINCT 99 ) * + 32 + + 41 AS col2
----
41

onlyif mysql # DIV for integer division: 
query I rowsort label-2278
SELECT ALL + 66 DIV - 78 * - - 10 + + + 56 AS col1
----
56

skipif mysql # not compatible
query I rowsort label-2278
SELECT ALL + 66 / - 78 * - - 10 + + + 56 AS col1
----
56

query I rowsort
SELECT ALL ( - 21 ) * - 89 AS col0
----
1869

onlyif mysql # aggregate syntax: 
query II rowsort label-2280
SELECT DISTINCT ( 51 ) * - 94 * - 50 * + COUNT( * ) * + + 42 + - 59 AS col0, ( + - ( 82 ) ) AS col2
----
10067341
-82

skipif mysql # not compatible
query II rowsort label-2280
SELECT DISTINCT ( 51 ) * - 94 * - 50 * + COUNT ( * ) * + + 42 + - 59 AS col0, ( + - ( 82 ) ) AS col2
----
10067341
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-2281
SELECT DISTINCT + SUM( + + 38 ) col2
----
38

skipif mysql # not compatible
query I rowsort label-2281
SELECT DISTINCT + SUM ( + + 38 ) col2
----
38

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

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

query I rowsort
SELECT ALL 59 * - + 80 * - + 15 - + - 81 + + 9 * 33
----
71178

query I rowsort
SELECT DISTINCT + NULLIF ( - 17, + - 82 ) AS col2
----
-17

query I rowsort
SELECT - 78 * 45
----
-3510

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

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

query I rowsort
SELECT ALL - 99 * - + 0 AS col2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2288
SELECT NULLIF ( - + 51, CAST( 44 AS SIGNED ) ) AS col2
----
-51

skipif mysql # not compatible
query I rowsort label-2288
SELECT NULLIF ( - + 51, CAST ( 44 AS INTEGER ) ) AS col2
----
-51

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

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

query I rowsort
SELECT - 42 * + 62 AS col0
----
-2604

query I rowsort
SELECT ALL + NULLIF ( + 29, + + ( - 45 ) + + 69 + + 2 + 28 / + - AVG ( 81 ) ) AS col1
----
29

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2292
SELECT - CAST( NULL AS SIGNED ) - - 84 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2292
SELECT - CAST ( NULL AS INTEGER ) - - 84 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2293
SELECT ALL - MAX( ALL 50 ) * 79
----
-3950

skipif mysql # not compatible
query I rowsort label-2293
SELECT ALL - MAX ( ALL 50 ) * 79
----
-3950

query I rowsort
SELECT - 89 + + 8 AS col2
----
-81

query I rowsort
SELECT + + NULLIF ( - 27, 77 ) AS col2
----
-27

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2296
SELECT - - CAST( NULL AS DECIMAL ) * + 78
----
NULL

skipif mysql # not compatible
query I rowsort label-2296
SELECT - - CAST ( NULL AS REAL ) * + 78
----
NULL

query I rowsort
SELECT - 87 + 50
----
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-2298
SELECT ALL + MAX( ALL - NULLIF ( - - 48, + 14 ) ) AS col0
----
-48

skipif mysql # not compatible
query I rowsort label-2298
SELECT ALL + MAX ( ALL - NULLIF ( - - 48, + 14 ) ) AS col0
----
-48

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2299
SELECT + + ( - 54 ) * CAST( - MAX( DISTINCT ( 77 ) ) AS SIGNED )
----
4158

skipif mysql # not compatible
query I rowsort label-2299
SELECT + + ( - 54 ) * CAST ( - MAX ( DISTINCT ( 77 ) ) AS INTEGER )
----
4158

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2300
SELECT ALL COUNT( * ) DIV - 86 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-2300
SELECT ALL COUNT ( * ) / - 86 AS col1
----
0

query I rowsort
SELECT ALL - - NULLIF ( + + 18, + - 59 ) * - 97 * - 19 + NULLIF ( ( + 21 ), + 20 ) * - 93 col2
----
31221

onlyif mysql # aggregate syntax: 
query II rowsort label-2302
SELECT - 36 * + COUNT( - - 49 ) + + 9 AS col0, 91
----
-27
91

skipif mysql # not compatible
query II rowsort label-2302
SELECT - 36 * + COUNT ( - - 49 ) + + 9 AS col0, 91
----
-27
91

query I rowsort
SELECT ALL + - 15 + - + 33 AS col1
----
-48

query I rowsort
SELECT ALL - + 53 + - + 70 + ( 42 ) + + + 63
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-2305
SELECT - - COUNT( * ) * 47 * - ( - 50 ) AS col2
----
2350

skipif mysql # not compatible
query I rowsort label-2305
SELECT - - COUNT ( * ) * 47 * - ( - 50 ) AS col2
----
2350

query I rowsort
SELECT - 3 + + + 76 * - 47 AS col1
----
-3575

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

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

query I rowsort
SELECT ALL 65 + + 82
----
147

onlyif mysql # aggregate syntax: 
query I rowsort label-2309
SELECT DISTINCT - ( + + MAX( DISTINCT 34 ) ) + 34 * + COUNT( * ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-2309
SELECT DISTINCT - ( + + MAX ( DISTINCT 34 ) ) + 34 * + COUNT ( * ) AS col1
----
0

query II rowsort
SELECT + - 24 + + 20 AS col0, + 49 AS col1
----
-4
49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2311
SELECT ALL CASE 63 WHEN + 66 * CASE ( - 64 ) WHEN ( - MIN( CASE - 30 WHEN - 95 * - 62 THEN 73 / - 63 WHEN 55 THEN - 68 * - 91 ELSE NULL END ) ) + NULLIF ( + COALESCE ( AVG ( 73 ), 38 * + 1 + - 61 ), + ( - MAX( 79 ) ) ) THEN ( 3 ) * - 90 WHEN - MIN( + 46 ) THEN 57 * CAST( NULL AS SIGNED ) END + 19 THEN ( - AVG ( DISTINCT 44 ) ) * CAST( - 12 * - 81 AS SIGNED ) WHEN + 34 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-2311
SELECT ALL CASE 63 WHEN + 66 * CASE ( - 64 ) WHEN ( - MIN ( CASE - 30 WHEN - 95 * - 62 THEN 73 / - 63 WHEN 55 THEN - 68 * - 91 ELSE NULL END ) ) + NULLIF ( + COALESCE ( AVG ( 73 ), 38 * + 1 + - 61 ), + ( - MAX ( 79 ) ) ) THEN ( 3 ) * - 90 WHEN - MIN ( + 46 ) THEN 57 * CAST ( NULL AS INTEGER ) END + 19 THEN ( - AVG ( DISTINCT 44 ) ) * CAST ( - 12 * - 81 AS INTEGER ) WHEN + 34 THEN NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2312
SELECT COUNT( - 74 ) * - 68
----
-68

skipif mysql # not compatible
query I rowsort label-2312
SELECT COUNT ( - 74 ) * - 68
----
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-2313
SELECT 57 * + 22 + + 29 * + - COUNT( * ) col2
----
1225

skipif mysql # not compatible
query I rowsort label-2313
SELECT 57 * + 22 + + 29 * + - COUNT ( * ) col2
----
1225

onlyif mysql # aggregate syntax: 
query I rowsort label-2314
SELECT DISTINCT 14 - - - 38 + 89 + - 9 - + 82 * - MAX( + ( - 44 ) ) * 81 / + CASE - 49 WHEN ( 44 ) * 81 THEN COUNT( * ) END * 14 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2314
SELECT DISTINCT 14 - - - 38 + 89 + - 9 - + 82 * - MAX ( + ( - 44 ) ) * 81 / + CASE - 49 WHEN ( 44 ) * 81 THEN COUNT ( * ) END * 14 AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2315
SELECT + CAST( NULL AS SIGNED ) / + - 12 + + - MAX( DISTINCT - 39 ) + - 10 + 68 + - 14 * + + COALESCE ( - + 96, - NULLIF ( ( + 19 ), - 44 ) * - 70, + SUM( ALL CAST( + 81 AS DECIMAL ) ) ) + - 37 * COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-2315
SELECT + CAST ( NULL AS INTEGER ) / + - 12 + + - MAX ( DISTINCT - 39 ) + - 10 + 68 + - 14 * + + COALESCE ( - + 96, - NULLIF ( ( + 19 ), - 44 ) * - 70, + SUM ( ALL CAST ( + 81 AS REAL ) ) ) + - 37 * COUNT ( * )
----
NULL

query I rowsort
SELECT 94 * + + 95
----
8930

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2317
SELECT CASE - + CAST( + 45 AS SIGNED ) WHEN + - 32 * 26 + + 35 * MIN( ALL - 92 ) * - + 66 * - - 63 + + ( + 12 ) * - 84 THEN - ( - 12 ) WHEN + 60 THEN NULL END + + NULLIF ( 94, + 62 + - 82 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2317
SELECT CASE - + CAST ( + 45 AS INTEGER ) WHEN + - 32 * 26 + + 35 * MIN ( ALL - 92 ) * - + 66 * - - 63 + + ( + 12 ) * - 84 THEN - ( - 12 ) WHEN + 60 THEN NULL END + + NULLIF ( 94, + 62 + - 82 ) AS col0
----
NULL

query I rowsort
SELECT - ( 12 ) * 19 + 94 - + 57
----
-191

query I rowsort
SELECT ALL 13 * + - 93
----
-1209

query II rowsort
SELECT DISTINCT 72 * - 54 * 23 AS col0, - 23 + - - 33
----
-89424
10

onlyif mysql # DIV for integer division: 
query I rowsort label-2321
SELECT ALL + 22 DIV + NULLIF ( 52, - + 55 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-2321
SELECT ALL + 22 / + NULLIF ( 52, - + 55 ) AS col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2322
SELECT 22 * - 29 + + 80 AS col0, 19 DIV CASE + CAST( - 43 AS SIGNED ) WHEN - 92 - + - COUNT( - 41 ) * + MAX( 66 ) THEN + COUNT( * ) WHEN - SUM( DISTINCT - 68 ) + 41 THEN NULL WHEN - 40 THEN 78 ELSE 12 + + 49 * 94 END DIV + 58 AS col2
----
-558
0

skipif mysql # not compatible
query II rowsort label-2322
SELECT 22 * - 29 + + 80 AS col0, 19 / CASE + CAST ( - 43 AS INTEGER ) WHEN - 92 - + - COUNT ( - 41 ) * + MAX ( 66 ) THEN + COUNT ( * ) WHEN - SUM ( DISTINCT - 68 ) + 41 THEN NULL WHEN - 40 THEN 78 ELSE 12 + + 49 * 94 END / + 58 AS col2
----
-558
0

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

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

query I rowsort
SELECT ( + 19 ) * + + ( + 96 ) * 46 + - 59 + - + 32 * - - 5
----
83685

onlyif mysql # DIV for integer division: 
query I rowsort label-2325
SELECT ALL + 22 DIV + 41 * + 34 col0
----
0

skipif mysql # not compatible
query I rowsort label-2325
SELECT ALL + 22 / + 41 * + 34 col0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2326
SELECT 83 * - + ( - 47 ) * - NULLIF ( + 27, - + CAST( NULL AS SIGNED ) ) AS col1
----
-105327

skipif mysql # not compatible
query I rowsort label-2326
SELECT 83 * - + ( - 47 ) * - NULLIF ( + 27, - + CAST ( NULL AS INTEGER ) ) AS col1
----
-105327

onlyif mysql # aggregate syntax: 
query II rowsort label-2327
SELECT - 50 * + 12 * + 46, CASE + - 39 WHEN 57 * 88 * 60 * COUNT( * ) - - 91 THEN NULL WHEN + COUNT( * ) + 36 THEN + MAX( ALL 17 ) / COALESCE ( + COUNT( * ), 42 - CASE 46 WHEN + 45 THEN NULL ELSE - COUNT( * ) END * NULLIF ( - 61, 31 + 86 * - 95 ) ) ELSE NULL END AS col1
----
-27600
NULL

skipif mysql # not compatible
query II rowsort label-2327
SELECT - 50 * + 12 * + 46, CASE + - 39 WHEN 57 * 88 * 60 * COUNT ( * ) - - 91 THEN NULL WHEN + COUNT ( * ) + 36 THEN + MAX ( ALL 17 ) / COALESCE ( + COUNT ( * ), 42 - CASE 46 WHEN + 45 THEN NULL ELSE - COUNT ( * ) END * NULLIF ( - 61, 31 + 86 * - 95 ) ) ELSE NULL END AS col1
----
-27600
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2328
SELECT DISTINCT - - COALESCE ( + ( + COUNT( * ) ), + MAX( DISTINCT - 24 ) + + 37 )
----
1

skipif mysql # not compatible
query I rowsort label-2328
SELECT DISTINCT - - COALESCE ( + ( + COUNT ( * ) ), + MAX ( DISTINCT - 24 ) + + 37 )
----
1

query I rowsort
SELECT ALL + - 93 + + 36 AS col2
----
-57

query I rowsort
SELECT ALL - 35 + 7 AS col1
----
-28

query I rowsort
SELECT DISTINCT + 77 + - + 85
----
-8

query I rowsort
SELECT DISTINCT - + 63 + + + 60 * - 81 * 43 * + - 92
----
19226097

query I rowsort
SELECT ALL + - 92 + - 34 AS col0
----
-126

query I rowsort
SELECT - 34 * - + 50 AS col1
----
1700

onlyif mysql # aggregate syntax: 
query I rowsort label-2335
SELECT DISTINCT - - 51 + - COUNT( * ) * + 75 AS col1
----
-24

skipif mysql # not compatible
query I rowsort label-2335
SELECT DISTINCT - - 51 + - COUNT ( * ) * + 75 AS col1
----
-24

query II rowsort
SELECT 90 AS col1, - 50 + - 99 AS col1
----
90
-149

query I rowsort
SELECT DISTINCT + 42 + + 8 * + 47 + 38 AS col0
----
456

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2339
SELECT ALL + 84, 36 - + COUNT( * ) col0
----
84
35

skipif mysql # not compatible
query II rowsort label-2339
SELECT ALL + 84, 36 - + COUNT ( * ) col0
----
84
35

query II rowsort
SELECT ALL - NULLIF ( + 39, - + 9 ) + + - 79 + + 78 + 43 AS col0, - 57 - COALESCE ( - 87, + 42, 59 ) AS col0
----
3
30

query I rowsort
SELECT NULLIF ( + - 7, + 19 ) AS col0
----
-7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2342
SELECT ALL + - 21 + - 88 DIV + + COUNT( * ) col1
----
-109

skipif mysql # not compatible
query I rowsort label-2342
SELECT ALL + - 21 + - 88 / + + COUNT ( * ) col1
----
-109

onlyif mysql # DIV for integer division: 
query I rowsort label-2343
SELECT ALL + 31 DIV - 33 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-2343
SELECT ALL + 31 / - 33 AS col1
----
0

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

skipif mysql # not compatible
query I rowsort label-2344
SELECT - SUM ( DISTINCT - 70 )
----
70

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2345
SELECT DISTINCT 14 - + + 42 + + 13 * - CAST( NULL AS SIGNED ) * 37 * 96 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2345
SELECT DISTINCT 14 - + + 42 + + 13 * - CAST ( NULL AS INTEGER ) * 37 * 96 AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2346
SELECT ALL 73 * + 35 AS col2, 16 + - - ( + 66 ) + + - CAST( 40 AS SIGNED ) * + - 9
----
2555
442

skipif mysql # not compatible
query II rowsort label-2346
SELECT ALL 73 * + 35 AS col2, 16 + - - ( + 66 ) + + - CAST ( 40 AS INTEGER ) * + - 9
----
2555
442

onlyif mysql # aggregate syntax: 
query I rowsort label-2347
SELECT COUNT( 6 ) + - 72 AS col2
----
-71

skipif mysql # not compatible
query I rowsort label-2347
SELECT COUNT ( 6 ) + - 72 AS col2
----
-71

query II rowsort
SELECT - 94 col0, - ( + - 27 ) col0
----
-94
27

query II rowsort
SELECT ALL - 99 * 78 AS col1, - 50 + - - 36 * - + 27
----
-7722
-1022

onlyif mysql # aggregate syntax: 
query I rowsort label-2350
SELECT ALL MAX( 84 ) * + 12 + ( 3 )
----
1011

skipif mysql # not compatible
query I rowsort label-2350
SELECT ALL MAX ( 84 ) * + 12 + ( 3 )
----
1011

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2352
SELECT + COUNT( * ), 44 * - + 36 AS col1
----
1
-1584

skipif mysql # not compatible
query II rowsort label-2352
SELECT + COUNT ( * ), 44 * - + 36 AS col1
----
1
-1584

onlyif mysql # aggregate syntax: 
query I rowsort label-2353
SELECT ALL MAX( ALL + - 51 ) * + COUNT( * ) * - - 31
----
-1581

skipif mysql # not compatible
query I rowsort label-2353
SELECT ALL MAX ( ALL + - 51 ) * + COUNT ( * ) * - - 31
----
-1581

onlyif mysql # aggregate syntax: 
query I rowsort label-2354
SELECT CASE - + 7 WHEN - 95 THEN NULL ELSE + + 18 * - SUM( + 64 ) END * - + 41 + ( - COUNT( * ) ) AS col0
----
47231

skipif mysql # not compatible
query I rowsort label-2354
SELECT CASE - + 7 WHEN - 95 THEN NULL ELSE + + 18 * - SUM ( + 64 ) END * - + 41 + ( - COUNT ( * ) ) AS col0
----
47231

query II rowsort
SELECT ( - ( + 78 ) ) * + + 47 + - 77 + + 7, + 71 * + 67 col2
----
-3736
4757

onlyif mysql # aggregate syntax: 
query II rowsort label-2356
SELECT + 25 AS col0, COUNT( * ) * + COUNT( - 79 ) * + 86 AS col1
----
25
86

skipif mysql # not compatible
query II rowsort label-2356
SELECT + 25 AS col0, COUNT ( * ) * + COUNT ( - 79 ) * + 86 AS col1
----
25
86

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

query I rowsort
SELECT 34 * 11 - + 1 AS col2
----
373

onlyif mysql # aggregate syntax: 
query II rowsort label-2359
SELECT ALL - + 47, 2 * - COUNT( * ) AS col1
----
-47
-2

skipif mysql # not compatible
query II rowsort label-2359
SELECT ALL - + 47, 2 * - COUNT ( * ) AS col1
----
-47
-2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2360
SELECT ALL CASE WHEN NOT 83 IS NULL THEN + 66 WHEN NOT + 93 IS NULL THEN + + 0 DIV 63 * + - 17 + + + SUM( + 67 ) ELSE NULL END * - 37
----
-2442

skipif mysql # not compatible
query I rowsort label-2360
SELECT ALL CASE WHEN NOT 83 IS NULL THEN + 66 WHEN NOT + 93 IS NULL THEN + + 0 / 63 * + - 17 + + + SUM ( + 67 ) ELSE NULL END * - 37
----
-2442

query I rowsort
SELECT DISTINCT - 37 + + ( - 64 ) col0
----
-101

onlyif mysql # aggregate syntax: 
query I rowsort label-2362
SELECT ALL - SUM( ALL + 93 ) + + 45 + - + ( + + CASE + 96 WHEN - AVG ( ALL + + 76 ) THEN NULL WHEN + + 81 THEN - 29 * 20 * 44 - - 92 * MIN( - 94 * + NULLIF ( 74, 62 ) ) WHEN 52 THEN CASE + ( 3 ) WHEN 96 THEN NULL WHEN 44 + - 59 THEN 16 END ELSE NULL END ) + 24 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2362
SELECT ALL - SUM ( ALL + 93 ) + + 45 + - + ( + + CASE + 96 WHEN - AVG ( ALL + + 76 ) THEN NULL WHEN + + 81 THEN - 29 * 20 * 44 - - 92 * MIN ( - 94 * + NULLIF ( 74, 62 ) ) WHEN 52 THEN CASE + ( 3 ) WHEN 96 THEN NULL WHEN 44 + - 59 THEN 16 END ELSE NULL END ) + 24 AS col0
----
NULL

query I rowsort
SELECT DISTINCT 93 + 71 + 84 col0
----
248

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

query I rowsort
SELECT ALL ( + 51 ) + + + ( 84 )
----
135

onlyif mysql # DIV for integer division: 
query I rowsort label-2366
SELECT DISTINCT - + 98 DIV 48 DIV 45 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-2366
SELECT DISTINCT - + 98 / 48 / 45 AS col2
----
0

query II rowsort
SELECT 30, + 47 AS col2
----
30
47

query II rowsort
SELECT ALL + + 86 + + + 60 AS col1, 88 AS col0
----
146
88

onlyif mysql # DIV for integer division: 
query I rowsort label-2369
SELECT - 7 + + 5 + - 27 + 71 + ( - 15 ) DIV - COALESCE ( - - 41, ( - 62 ) ) * - 87 AS col2
----
42

skipif mysql # not compatible
query I rowsort label-2369
SELECT - 7 + + 5 + - 27 + 71 + ( - 15 ) / - COALESCE ( - - 41, ( - 62 ) ) * - 87 AS col2
----
42

query II rowsort
SELECT ALL - 55 AS col1, - 17 AS col1
----
-55
-17

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2371
SELECT 82 * + - NULLIF ( + + 29, - + 19 * + 31 ) / + AVG ( + - 89 ) + + CAST( NULL AS SIGNED ) - - MAX( ALL - + 81 ) * - - 17 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2371
SELECT 82 * + - NULLIF ( + + 29, - + 19 * + 31 ) / + AVG ( + - 89 ) + + CAST ( NULL AS INTEGER ) - - MAX ( ALL - + 81 ) * - - 17 AS col1
----
NULL

query II rowsort
SELECT ALL 62, 3 + ( + 97 ) * 93 AS col0
----
62
9024

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2373
SELECT - CAST( - 60 AS SIGNED ) AS col0
----
60

skipif mysql # not compatible
query I rowsort label-2373
SELECT - CAST ( - 60 AS INTEGER ) AS col0
----
60

query I rowsort
SELECT ALL + 2 - - 71 + + 79 AS col2
----
152

query II rowsort
SELECT ALL 46, - NULLIF ( 65, + 8 * + 62 ) + - 89 AS col1
----
46
-154

onlyif mysql # aggregate syntax: 
query I rowsort label-2376
SELECT + ( + CASE - 10 WHEN + COUNT( * ) - ( + + 20 ) * - 15 / - 64 THEN + 87 + - COUNT( * ) END ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2376
SELECT + ( + CASE - 10 WHEN + COUNT ( * ) - ( + + 20 ) * - 15 / - 64 THEN + 87 + - COUNT ( * ) END ) AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2377
SELECT - CAST( 96 AS SIGNED ) * 44 AS col2, + 41
----
-4224
41

skipif mysql # not compatible
query II rowsort label-2377
SELECT - CAST ( 96 AS INTEGER ) * 44 AS col2, + 41
----
-4224
41

query I rowsort
SELECT ALL NULLIF ( - 80, AVG ( DISTINCT + + 95 ) )
----
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-2379
SELECT - 73 - + 4 * + COUNT( * ) * + 56 * 67 * ( + MIN( ALL 22 ) ) + 63 * - - COALESCE ( - COUNT( * ), - 20, 46 )
----
-330312

skipif mysql # not compatible
query I rowsort label-2379
SELECT - 73 - + 4 * + COUNT ( * ) * + 56 * 67 * ( + MIN ( ALL 22 ) ) + 63 * - - COALESCE ( - COUNT ( * ), - 20, 46 )
----
-330312

query I rowsort
SELECT DISTINCT NULLIF ( - 53, ( - + 42 ) * - + 46 * 86 * + 0 )
----
-53

query I rowsort
SELECT - ( - 64 ) * - 34 AS col2
----
-2176

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2383
SELECT ALL - 40 DIV + SUM( - - 55 )
----
0

skipif mysql # not compatible
query I rowsort label-2383
SELECT ALL - 40 / + SUM ( - - 55 )
----
0

query II rowsort
SELECT ALL 13 * - + 79 AS col1, + 47 + + 7 + ( ( 9 ) )
----
-1027
63

query I rowsort
SELECT DISTINCT - 22 * + 94 * + - 50
----
103400

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2386
SELECT + 15 DIV + 16 + - 61 + + + 83 * - - 23 + - 22 - COUNT( * ) * + + 7 AS col1
----
1819

skipif mysql # not compatible
query I rowsort label-2386
SELECT + 15 / + 16 + - 61 + + + 83 * - - 23 + - 22 - COUNT ( * ) * + + 7 AS col1
----
1819

onlyif mysql # DIV for integer division: 
query II rowsort label-2387
SELECT 40 DIV + - 68 + + - 97 AS col0, - 95 AS col2
----
-97
-95

skipif mysql # not compatible
query II rowsort label-2387
SELECT 40 / + - 68 + + - 97 AS col0, - 95 AS col2
----
-97
-95

onlyif mysql # DIV for integer division: 
query I rowsort label-2388
SELECT - 66 DIV - 41 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-2388
SELECT - 66 / - 41 AS col1
----
1

onlyif mysql # DIV for integer division: 
query II rowsort label-2389
SELECT + 71 DIV 97, + 14 col1
----
0
14

skipif mysql # not compatible
query II rowsort label-2389
SELECT + 71 / 97, + 14 col1
----
0
14

onlyif mysql # aggregate syntax: 
query I rowsort label-2390
SELECT COALESCE ( + 95, 14 * - COUNT( DISTINCT + + 51 ), 5 + + ( COUNT( * ) ) )
----
95

skipif mysql # not compatible
query I rowsort label-2390
SELECT COALESCE ( + 95, 14 * - COUNT ( DISTINCT + + 51 ), 5 + + ( COUNT ( * ) ) )
----
95

query I rowsort
SELECT ALL + 77 * + 17 + + ( - 0 ) AS col2
----
1309

query I rowsort
SELECT ALL + NULLIF ( - + CASE 59 WHEN 81 * - 58 THEN NULL ELSE + + 86 + - 51 END, - 60 )
----
-35

query I rowsort
SELECT - + 68 * + 6 + - 96 * + 85
----
-8568

onlyif mysql # aggregate syntax: 
query I rowsort label-2394
SELECT ALL - - 68 * 63 + - COUNT( * ) - + 75 + 92 * 8 * + 95 * 41 * + 23 AS col1
----
65938768

skipif mysql # not compatible
query I rowsort label-2394
SELECT ALL - - 68 * 63 + - COUNT ( * ) - + 75 + 92 * 8 * + 95 * 41 * + 23 AS col1
----
65938768

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2395
SELECT DISTINCT + - NULLIF ( + - CAST( NULL AS SIGNED ), + 21 ) * + 17 + + NULLIF ( 60, - 23 + - 56 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2395
SELECT DISTINCT + - NULLIF ( + - CAST ( NULL AS INTEGER ), + 21 ) * + 17 + + NULLIF ( 60, - 23 + - 56 )
----
NULL

query I rowsort
SELECT DISTINCT COALESCE ( + 65, + 19 ) * - 4 AS col2
----
-260

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2397
SELECT + COUNT( * ) + - ( + 96 ) + - CAST( 90 AS SIGNED )
----
-185

skipif mysql # not compatible
query I rowsort label-2397
SELECT + COUNT ( * ) + - ( + 96 ) + - CAST ( 90 AS INTEGER )
----
-185

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

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

query I rowsort
SELECT + - ( - 60 ) * + 8 AS col0
----
480

query I rowsort
SELECT DISTINCT + 25 * + 16
----
400

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2401
SELECT ALL + 17 * 64 / CAST( + - 55 AS SIGNED ) - 73 + + CAST( + COUNT( * ) AS SIGNED ) - 2 + 65 * ( + 12 ) / + + ( 92 ) * - CASE 73 WHEN 24 THEN - 7 WHEN - 15 THEN - CAST( NULL AS SIGNED ) * 63 ELSE NULL END * 87
----
NULL

skipif mysql # not compatible
query I rowsort label-2401
SELECT ALL + 17 * 64 / CAST ( + - 55 AS INTEGER ) - 73 + + CAST ( + COUNT ( * ) AS INTEGER ) - 2 + 65 * ( + 12 ) / + + ( 92 ) * - CASE 73 WHEN 24 THEN - 7 WHEN - 15 THEN - CAST ( NULL AS INTEGER ) * 63 ELSE NULL END * 87
----
NULL

query I rowsort
SELECT + + COALESCE ( 73, + - 43 + + + 68 ) AS col1
----
73

onlyif mysql # aggregate syntax: 
query II rowsort label-2403
SELECT ALL - 92 * COUNT( * ) AS col1, 26 + - 94
----
-92
-68

skipif mysql # not compatible
query II rowsort label-2403
SELECT ALL - 92 * COUNT ( * ) AS col1, 26 + - 94
----
-92
-68

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2404
SELECT + - CAST( 88 AS SIGNED ) DIV - 55 + 15 * 71 - + + 48 - + 48 AS col2
----
970

skipif mysql # not compatible
query I rowsort label-2404
SELECT + - CAST ( 88 AS INTEGER ) / - 55 + 15 * 71 - + + 48 - + 48 AS col2
----
970

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

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

query I rowsort
SELECT ALL + 75 * 65 AS col2
----
4875

onlyif mysql # aggregate syntax: 
query I rowsort label-2407
SELECT DISTINCT CASE + + 1 WHEN 18 THEN - CASE - + 57 WHEN - - 16 / - COUNT( * ) + NULLIF ( + 40, + 75 ) + + 48 * 55 THEN 62 WHEN - ( - 20 ) / + 10 THEN NULL ELSE - 36 END / + 16 ELSE NULL END * 77 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2407
SELECT DISTINCT CASE + + 1 WHEN 18 THEN - CASE - + 57 WHEN - - 16 / - COUNT ( * ) + NULLIF ( + 40, + 75 ) + + 48 * 55 THEN 62 WHEN - ( - 20 ) / + 10 THEN NULL ELSE - 36 END / + 16 ELSE NULL END * 77 AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2408
SELECT ALL + 31 * + 87 * - CAST( - 12 AS SIGNED ) AS col2
----
32364

skipif mysql # not compatible
query I rowsort label-2408
SELECT ALL + 31 * + 87 * - CAST ( - 12 AS INTEGER ) AS col2
----
32364

onlyif mysql # DIV for integer division: 
query I rowsort label-2409
SELECT DISTINCT - ( 75 ) DIV + - ( + NULLIF ( + 74, + - 30 ) ) + - 40
----
-39

skipif mysql # not compatible
query I rowsort label-2409
SELECT DISTINCT - ( 75 ) / + - ( + NULLIF ( + 74, + - 30 ) ) + - 40
----
-39

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2411
SELECT + - CAST( - 79 AS SIGNED ) DIV + + 23 AS col1
----
3

skipif mysql # not compatible
query I rowsort label-2411
SELECT + - CAST ( - 79 AS INTEGER ) / + + 23 AS col1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2412
SELECT - 85 * + - 94 * + 66 * + CASE - + COUNT( * ) WHEN 17 * - 66 THEN - ( 89 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-2412
SELECT - 85 * + - 94 * + 66 * + CASE - + COUNT ( * ) WHEN 17 * - 66 THEN - ( 89 ) END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2413
SELECT DISTINCT 91 DIV 57 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-2413
SELECT DISTINCT 91 / 57 AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2414
SELECT ALL MAX( DISTINCT + 38 ) AS col2
----
38

skipif mysql # not compatible
query I rowsort label-2414
SELECT ALL MAX ( DISTINCT + 38 ) AS col2
----
38

query I rowsort
SELECT ALL NULLIF ( - 24, CASE 37 WHEN + 43 / + 66 / - - 55 THEN + 42 WHEN + 6 THEN NULL END )
----
-24

query I rowsort
SELECT ALL NULLIF ( + 98, AVG ( + - 61 ) )
----
98

onlyif mysql # aggregate syntax: 
query I rowsort label-2417
SELECT + COUNT( * ) + + 35 + 56 * - + 47 AS col2
----
-2596

skipif mysql # not compatible
query I rowsort label-2417
SELECT + COUNT ( * ) + + 35 + 56 * - + 47 AS col2
----
-2596

query II rowsort
SELECT 1 AS col0, - 9 AS col1
----
1
-9

query I rowsort
SELECT ALL + 35 * + 94
----
3290

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

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

query I rowsort
SELECT ALL 32 + + 14
----
46

query I rowsort
SELECT DISTINCT + 26 * 8 AS col0
----
208

query I rowsort
SELECT DISTINCT 49 * + 43
----
2107

query I rowsort
SELECT + 72 + - - 27 AS col1
----
99

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

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

query I rowsort
SELECT + 90 * - - 55
----
4950

query II rowsort
SELECT - 58 AS col1, ( 34 ) AS col0
----
-58
34

query I rowsort
SELECT - 72 + - + 54 - + 53 AS col1
----
-179

onlyif mysql # aggregate syntax: 
query I rowsort label-2429
SELECT ALL + SUM( DISTINCT - - 27 ) + + + 95 + 2 AS col1
----
124

skipif mysql # not compatible
query I rowsort label-2429
SELECT ALL + SUM ( DISTINCT - - 27 ) + + + 95 + 2 AS col1
----
124

onlyif mysql # aggregate syntax: 
query I rowsort label-2430
SELECT ALL - 9 + - ( - 86 ) + + 71 * - COUNT( * ) AS col2
----
6

skipif mysql # not compatible
query I rowsort label-2430
SELECT ALL - 9 + - ( - 86 ) + + 71 * - COUNT ( * ) AS col2
----
6

query I rowsort
SELECT - 60 * + - 42 * ( + ( 48 ) ) AS col1
----
120960

query II rowsort
SELECT 17 AS col0, 33
----
17
33

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2433
SELECT DISTINCT + 50 DIV MAX( 73 ) + - 61
----
-61

skipif mysql # not compatible
query I rowsort label-2433
SELECT DISTINCT + 50 / MAX ( 73 ) + - 61
----
-61

onlyif mysql # DIV for integer division: 
query I rowsort label-2434
SELECT ALL - 67 DIV 12 DIV - 62 + + ( - 64 ) + + 5
----
-59

skipif mysql # not compatible
query I rowsort label-2434
SELECT ALL - 67 / 12 / - 62 + + ( - 64 ) + + 5
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-2435
SELECT - ( - 22 ) * - - SUM( DISTINCT 60 )
----
1320

skipif mysql # not compatible
query I rowsort label-2435
SELECT - ( - 22 ) * - - SUM ( DISTINCT 60 )
----
1320

onlyif mysql # DIV for integer division: 
query I rowsort label-2436
SELECT DISTINCT - - 57 DIV + - 69
----
0

skipif mysql # not compatible
query I rowsort label-2436
SELECT DISTINCT - - 57 / + - 69
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2437
SELECT - 26 * + - 57 DIV - - COUNT( * ) - + 69 DIV + 92 AS col2
----
1482

skipif mysql # not compatible
query I rowsort label-2437
SELECT - 26 * + - 57 / - - COUNT ( * ) - + 69 / + 92 AS col2
----
1482

onlyif mysql # DIV for integer division: 
query II rowsort label-2438
SELECT ALL - + ( 29 ) * - ( + 39 ) AS col2, - 63 DIV + + ( + ( - 94 ) )
----
1131
0

skipif mysql # not compatible
query II rowsort label-2438
SELECT ALL - + ( 29 ) * - ( + 39 ) AS col2, - 63 / + + ( + ( - 94 ) )
----
1131
0

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2440
SELECT ALL + + ( + 77 ) / CAST( NULL AS SIGNED ) * - 3 * + + 44 * + 75 - 15 - - - ( + 73 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2440
SELECT ALL + + ( + 77 ) / CAST ( NULL AS INTEGER ) * - 3 * + + 44 * + 75 - 15 - - - ( + 73 ) AS col2
----
NULL

query I rowsort
SELECT - + 90 - + - ( + - 96 ) - + 8 AS col1
----
-194

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2442
SELECT - CASE + 40 WHEN CAST( - 56 AS SIGNED ) THEN + - 40 * 44 ELSE NULL END, 67 AS col0
----
NULL
67

skipif mysql # not compatible
query II rowsort label-2442
SELECT - CASE + 40 WHEN CAST ( - 56 AS INTEGER ) THEN + - 40 * 44 ELSE NULL END, 67 AS col0
----
NULL
67

onlyif mysql # aggregate syntax: 
query I rowsort label-2443
SELECT COUNT( * ) * + - 86 + - + 14 - 82 * + 36
----
-3052

skipif mysql # not compatible
query I rowsort label-2443
SELECT COUNT ( * ) * + - 86 + - + 14 - 82 * + 36
----
-3052

query I rowsort
SELECT ALL - 52 * - 33
----
1716

query II rowsort
SELECT DISTINCT + - 55 AS col0, - 30
----
-55
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-2446
SELECT + 98 * + SUM( ALL 43 )
----
4214

skipif mysql # not compatible
query I rowsort label-2446
SELECT + 98 * + SUM ( ALL 43 )
----
4214

onlyif mysql # aggregate syntax: 
query I rowsort label-2447
SELECT DISTINCT - 2 - - 56 + - COUNT( * ) + + SUM( - + 23 ) * - 89 + - CASE + 58 WHEN + ( 29 ) + + 2 * + 60 / - + 92 - 12 THEN NULL WHEN - 5 THEN 46 * + ( + 19 ) ELSE 28 END
----
2072

skipif mysql # not compatible
query I rowsort label-2447
SELECT DISTINCT - 2 - - 56 + - COUNT ( * ) + + SUM ( - + 23 ) * - 89 + - CASE + 58 WHEN + ( 29 ) + + 2 * + 60 / - + 92 - 12 THEN NULL WHEN - 5 THEN 46 * + ( + 19 ) ELSE 28 END
----
2072

query I rowsort
SELECT 87 * 6 * + 41
----
21402

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2450
SELECT ALL - + ( + - CAST( 83 AS SIGNED ) ) AS col1, - 69
----
83
-69

skipif mysql # not compatible
query II rowsort label-2450
SELECT ALL - + ( + - CAST ( 83 AS INTEGER ) ) AS col1, - 69
----
83
-69

query I rowsort
SELECT 5 * + 97 - + 88 AS col2
----
397

query I rowsort
SELECT - 69 + - 36 AS col0
----
-105

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

query II rowsort
SELECT DISTINCT + 38, 61 AS col2
----
38
61

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

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2456
SELECT CASE - 39 WHEN CAST( NULL AS DECIMAL ) * + + COUNT( * ) + + 33 * + CASE + - ( + 9 ) WHEN + + 79 THEN NULL WHEN + 97 * 6 * + - 21 - - + 6 THEN - 5 + - 69 * 82 END THEN NULL WHEN - 56 THEN 88 + 80 ELSE NULL END + + 11
----
NULL

skipif mysql # not compatible
query I rowsort label-2456
SELECT CASE - 39 WHEN CAST ( NULL AS REAL ) * + + COUNT ( * ) + + 33 * + CASE + - ( + 9 ) WHEN + + 79 THEN NULL WHEN + 97 * 6 * + - 21 - - + 6 THEN - 5 + - 69 * 82 END THEN NULL WHEN - 56 THEN 88 + 80 ELSE NULL END + + 11
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2457
SELECT DISTINCT 97 * + 14 AS col0, - COUNT( * )
----
1358
-1

skipif mysql # not compatible
query II rowsort label-2457
SELECT DISTINCT 97 * + 14 AS col0, - COUNT ( * )
----
1358
-1

query I rowsort
SELECT 77 + - - 14
----
91

query I rowsort
SELECT ALL 14 * - 17 AS col2
----
-238

onlyif mysql # DIV for integer division: 
query I rowsort label-2460
SELECT 84 DIV 90 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2460
SELECT 84 / 90 AS col0
----
0

query I rowsort
SELECT ( 67 ) + + 78
----
145

query I rowsort
SELECT ALL 91 + + - 55 AS col0
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-2463
SELECT DISTINCT 49 * NULLIF ( 16, COUNT( * ) * - 18 + + 14 ) AS col2
----
784

skipif mysql # not compatible
query I rowsort label-2463
SELECT DISTINCT 49 * NULLIF ( 16, COUNT ( * ) * - 18 + + 14 ) AS col2
----
784

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2464
SELECT 67 * + CAST( - - 81 AS SIGNED ) * - 53 col0
----
-287631

skipif mysql # not compatible
query I rowsort label-2464
SELECT 67 * + CAST ( - - 81 AS INTEGER ) * - 53 col0
----
-287631

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2465
SELECT COUNT( DISTINCT + 30 ) DIV + 37
----
0

skipif mysql # not compatible
query I rowsort label-2465
SELECT COUNT ( DISTINCT + 30 ) / + 37
----
0

query II rowsort
SELECT ALL 78 + 91 AS col0, 18 + + 81
----
169
99

onlyif mysql # aggregate syntax: 
query I rowsort label-2467
SELECT ALL COUNT( * ) + - - 30 * - + 75 AS col2
----
-2249

skipif mysql # not compatible
query I rowsort label-2467
SELECT ALL COUNT ( * ) + - - 30 * - + 75 AS col2
----
-2249

query I rowsort
SELECT ALL - 5 * 81 * 4
----
-1620

onlyif mysql # aggregate syntax: 
query I rowsort label-2469
SELECT DISTINCT + ( + 95 ) + - 26 - + MIN( - - 6 ) * 95 + - 69
----
-570

skipif mysql # not compatible
query I rowsort label-2469
SELECT DISTINCT + ( + 95 ) + - 26 - + MIN ( - - 6 ) * 95 + - 69
----
-570

query I rowsort
SELECT ALL + 32 + 70 + + + 72 AS col1
----
174

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

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

query I rowsort
SELECT ALL 94 * + 83 col0
----
7802

query II rowsort
SELECT 99 + + 22 AS col2, + 72 + 19
----
121
91

onlyif mysql # aggregate syntax: 
query II rowsort label-2474
SELECT 34 - + COALESCE ( + + MIN( + 97 ), - - COUNT( * ) ) - + - 50 - + + 50 AS col2, 91
----
-63
91

skipif mysql # not compatible
query II rowsort label-2474
SELECT 34 - + COALESCE ( + + MIN ( + 97 ), - - COUNT ( * ) ) - + - 50 - + + 50 AS col2, 91
----
-63
91

onlyif mysql # DIV for integer division: 
query I rowsort label-2475
SELECT - - 31 DIV + 2 + - 35
----
-20

skipif mysql # not compatible
query I rowsort label-2475
SELECT - - 31 / + 2 + - 35
----
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-2476
SELECT - 50 * + - 49 * + 38 + + COALESCE ( + 35, - + MIN( DISTINCT 89 ) ) AS col1
----
93135

skipif mysql # not compatible
query I rowsort label-2476
SELECT - 50 * + - 49 * + 38 + + COALESCE ( + 35, - + MIN ( DISTINCT 89 ) ) AS col1
----
93135

onlyif mysql # aggregate syntax: 
query I rowsort label-2477
SELECT ALL + NULLIF ( 37, - 67 - CASE - 83 WHEN - 36 * + 99 + - 94 THEN + - ( - NULLIF ( - 57, - CASE 42 WHEN + CASE - 60 WHEN + 71 THEN 69 ELSE NULL END + COUNT( * ) THEN NULL WHEN + 56 THEN 62 + 53 * + 56 ELSE 8 + - 5 END - 82 * COUNT( * ) ) ) * - MAX( 65 ) WHEN 74 THEN - 1 ELSE COUNT( * ) / - COUNT( * ) END * + 23 ) - + COUNT( * )
----
36

skipif mysql # not compatible
query I rowsort label-2477
SELECT ALL + NULLIF ( 37, - 67 - CASE - 83 WHEN - 36 * + 99 + - 94 THEN + - ( - NULLIF ( - 57, - CASE 42 WHEN + CASE - 60 WHEN + 71 THEN 69 ELSE NULL END + COUNT ( * ) THEN NULL WHEN + 56 THEN 62 + 53 * + 56 ELSE 8 + - 5 END - 82 * COUNT ( * ) ) ) * - MAX ( 65 ) WHEN 74 THEN - 1 ELSE COUNT ( * ) / - COUNT ( * ) END * + 23 ) - + COUNT ( * )
----
36

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2478
SELECT + - CAST( + 9 AS SIGNED ), MAX( 62 ) AS col2
----
-9
62

skipif mysql # not compatible
query II rowsort label-2478
SELECT + - CAST ( + 9 AS INTEGER ), MAX ( 62 ) AS col2
----
-9
62

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2479
SELECT COUNT( * ) DIV ( + 33 ) DIV - 79 * + 12 * + - 97 - - 15 + + - 50 DIV + COALESCE ( + 28, AVG ( + 13 ) * - 60 ) + - ( 56 ) + 11
----
-31

skipif mysql # not compatible
query I rowsort label-2479
SELECT COUNT ( * ) / ( + 33 ) / - 79 * + 12 * + - 97 - - 15 + + - 50 / + COALESCE ( + 28, AVG ( + 13 ) * - 60 ) + - ( 56 ) + 11
----
-31

query I rowsort
SELECT DISTINCT + 97 * - 37
----
-3589

query I rowsort
SELECT ALL - - 43 col1
----
43

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2482
SELECT DISTINCT + + 12 DIV MIN( ALL - + 89 ) + - 73 DIV 15 * 46
----
-184

skipif mysql # not compatible
query I rowsort label-2482
SELECT DISTINCT + + 12 / MIN ( ALL - + 89 ) + - 73 / 15 * 46
----
-184

query II rowsort
SELECT DISTINCT + - 4 * + 34, + 79 * - 64 AS col2
----
-136
-5056

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2484
SELECT - 1 * + 19 * CASE - 18 WHEN + 93 THEN NULL WHEN + MIN( DISTINCT + 59 ) * + 21 THEN NULL WHEN - 48 THEN + 77 + - CAST( NULL AS DECIMAL ) * - MAX( + 51 ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-2484
SELECT - 1 * + 19 * CASE - 18 WHEN + 93 THEN NULL WHEN + MIN ( DISTINCT + 59 ) * + 21 THEN NULL WHEN - 48 THEN + 77 + - CAST ( NULL AS REAL ) * - MAX ( + 51 ) ELSE NULL END
----
NULL

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2486
SELECT + - CASE + CAST( NULL AS SIGNED ) WHEN - 53 * + 43 + - + 13 + - ( + AVG ( - 53 ) ) THEN + - 90 * - - 56 WHEN - MAX( ALL + 1 ) THEN NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2486
SELECT + - CASE + CAST ( NULL AS INTEGER ) WHEN - 53 * + 43 + - + 13 + - ( + AVG ( - 53 ) ) THEN + - 90 * - - 56 WHEN - MAX ( ALL + 1 ) THEN NULL END AS col2
----
NULL

query II rowsort
SELECT 20 * - + 11 AS col0, 31
----
-220
31

onlyif mysql # DIV for integer division: 
query I rowsort label-2488
SELECT + 67 DIV - 54 + + 49 AS col2
----
48

skipif mysql # not compatible
query I rowsort label-2488
SELECT + 67 / - 54 + + 49 AS col2
----
48

query I rowsort
SELECT ALL - NULLIF ( 80, - - 30 )
----
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-2490
SELECT DISTINCT - - NULLIF ( - 32, + 9 + - COUNT( * ) + 19 )
----
-32

skipif mysql # not compatible
query I rowsort label-2490
SELECT DISTINCT - - NULLIF ( - 32, + 9 + - COUNT ( * ) + 19 )
----
-32

query I rowsort
SELECT DISTINCT + 21 + - 5 * - - 76 * + NULLIF ( - 84, - 58 ) * - + 10 AS col1
----
-319179

query I rowsort
SELECT + 99 + 80 * + 21 AS col0
----
1779

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

query I rowsort
SELECT 87 * + 29
----
2523

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2495
SELECT ALL 97 + + ( - COUNT( * ) ) + + 78 DIV + 66 AS col0, - 12
----
97
-12

skipif mysql # not compatible
query II rowsort label-2495
SELECT ALL 97 + + ( - COUNT ( * ) ) + + 78 / + 66 AS col0, - 12
----
97
-12

query I rowsort
SELECT 64 * + 74 AS col1
----
4736

onlyif mysql # aggregate syntax: 
query I rowsort label-2497
SELECT 67 - + - COUNT( * ) col0
----
68

skipif mysql # not compatible
query I rowsort label-2497
SELECT 67 - + - COUNT ( * ) col0
----
68

query II rowsort
SELECT 61 AS col0, 16
----
61
16

query I rowsort
SELECT DISTINCT - 18 + 75 AS col2
----
57

query I rowsort
SELECT 77 * + 9 AS col0
----
693

onlyif mysql # aggregate syntax: 
query I rowsort label-2501
SELECT - MAX( - 43 )
----
43

skipif mysql # not compatible
query I rowsort label-2501
SELECT - MAX ( - 43 )
----
43

onlyif mysql # DIV for integer division: 
query I rowsort label-2502
SELECT DISTINCT + 18 DIV + - 81
----
0

skipif mysql # not compatible
query I rowsort label-2502
SELECT DISTINCT + 18 / + - 81
----
0

query II rowsort
SELECT ALL + 0 + + - 74 + - - 52 AS col2, + 51 col0
----
-22
51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2504
SELECT DISTINCT COALESCE ( + + 38, - + 78, - + 47 ) + + 50 - - CAST( NULL AS SIGNED ) - + 29 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2504
SELECT DISTINCT COALESCE ( + + 38, - + 78, - + 47 ) + + 50 - - CAST ( NULL AS INTEGER ) - + 29 AS col1
----
NULL

query I rowsort
SELECT ALL 24 - + 28 - 59 AS col2
----
-63

query I rowsort
SELECT 44 + 0
----
44

query I rowsort
SELECT ( - 42 ) - + - 80 AS col0
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-2508
SELECT ALL - MAX( + - CASE WHEN 39 = NULL THEN - - 56 END ) / - 70 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2508
SELECT ALL - MAX ( + - CASE WHEN 39 = NULL THEN - - 56 END ) / - 70 col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2509
SELECT 9 * CAST( CAST( NULL AS SIGNED ) AS SIGNED ) col1, - 47
----
NULL
-47

skipif mysql # not compatible
query II rowsort label-2509
SELECT 9 * CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) col1, - 47
----
NULL
-47

query I rowsort
SELECT - 92 * - - 55 AS col1
----
-5060

onlyif mysql # aggregate syntax: 
query I rowsort label-2511
SELECT ALL + 96 - COUNT( - 58 )
----
95

skipif mysql # not compatible
query I rowsort label-2511
SELECT ALL + 96 - COUNT ( - 58 )
----
95

query II rowsort
SELECT ALL 2, - 21 AS col1
----
2
-21

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2514
SELECT - 49 + - COUNT( * ) AS col2
----
-50

skipif mysql # not compatible
query I rowsort label-2514
SELECT - 49 + - COUNT ( * ) AS col2
----
-50

query II rowsort
SELECT DISTINCT + 6, + 54 AS col2
----
6
54

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2516
SELECT ALL - 13 * 29 * + CASE - - 98 WHEN - 19 + + + 47 * + - 59 - 34 THEN + 30 * + - 69 * ( 54 ) * 6 * - 12 + + COUNT( * ) + - COUNT( + ( + ( - 35 ) ) ) WHEN 56 * 68 THEN + COUNT( * ) WHEN - COUNT( ALL 69 ) THEN NULL END + CAST( 34 AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-2516
SELECT ALL - 13 * 29 * + CASE - - 98 WHEN - 19 + + + 47 * + - 59 - 34 THEN + 30 * + - 69 * ( 54 ) * 6 * - 12 + + COUNT ( * ) + - COUNT ( + ( + ( - 35 ) ) ) WHEN 56 * 68 THEN + COUNT ( * ) WHEN - COUNT ( ALL 69 ) THEN NULL END + CAST ( 34 AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2517
SELECT - 39 DIV + - 71 - + 44 + + 51 + - - COUNT( * ) + + + 93 - - + 52 + 24 + 53 + + 97 + - 98 + + 83 AS col2
----
312

skipif mysql # not compatible
query I rowsort label-2517
SELECT - 39 / + - 71 - + 44 + + 51 + - - COUNT ( * ) + + + 93 - - + 52 + 24 + 53 + + 97 + - 98 + + 83 AS col2
----
312

onlyif mysql # aggregate syntax: 
query I rowsort label-2518
SELECT - - ( + SUM( ALL - 61 ) ) * ( 11 ) + - 89 + - 79 + - 84 * 18 * - 36
----
53593

skipif mysql # not compatible
query I rowsort label-2518
SELECT - - ( + SUM ( ALL - 61 ) ) * ( 11 ) + - 89 + - 79 + - 84 * 18 * - 36
----
53593

query I rowsort
SELECT ALL 77 * - + 31 AS col0
----
-2387

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2520
SELECT 72 * - 37 * 63 * COALESCE ( 75, + 87, - 45 * - 85 * + + 75 ) DIV ( COUNT( - 27 ) ) - + 65 AS col2
----
-12587465

skipif mysql # not compatible
query I rowsort label-2520
SELECT 72 * - 37 * 63 * COALESCE ( 75, + 87, - 45 * - 85 * + + 75 ) / ( COUNT ( - 27 ) ) - + 65 AS col2
----
-12587465

query I rowsort
SELECT ALL + NULLIF ( + 29, + NULLIF ( 12, 91 ) * - 66 + - 74 ) AS col0
----
29

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2522
SELECT ALL - 10 * - CAST( NULL AS SIGNED ) * COUNT( * ) + - + 41 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2522
SELECT ALL - 10 * - CAST ( NULL AS INTEGER ) * COUNT ( * ) + - + 41 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2523
SELECT DISTINCT - 74 * - 68 * + COUNT( * ) * + SUM( + + NULLIF ( - 60, - - 97 ) ) + - 15 + - COUNT( * ) AS col2
----
-301936

skipif mysql # not compatible
query I rowsort label-2523
SELECT DISTINCT - 74 * - 68 * + COUNT ( * ) * + SUM ( + + NULLIF ( - 60, - - 97 ) ) + - 15 + - COUNT ( * ) AS col2
----
-301936

query II rowsort
SELECT DISTINCT + 86 col1, 81
----
86
81

query II rowsort
SELECT DISTINCT 30 * + 50 + + 58 AS col1, 56
----
1558
56

onlyif mysql # aggregate syntax: 
query I rowsort label-2526
SELECT ALL + ( 41 ) * + 8 + + + 30 + - 18 + + MAX( + 4 ) * + + ( 71 )
----
624

skipif mysql # not compatible
query I rowsort label-2526
SELECT ALL + ( 41 ) * + 8 + + + 30 + - 18 + + MAX ( + 4 ) * + + ( 71 )
----
624

onlyif mysql # aggregate syntax: 
query I rowsort label-2527
SELECT COALESCE ( NULLIF ( CASE - 96 WHEN + MAX( DISTINCT + ( 30 ) ) THEN NULL ELSE - MAX( DISTINCT + 70 ) END, MAX( - - 66 ) ), COUNT( * ) + - - 48 + + - 29 ) * + SUM( DISTINCT - + 79 ) - 79 * + 30 + 3 * + 84 AS col2
----
3412

skipif mysql # not compatible
query I rowsort label-2527
SELECT COALESCE ( NULLIF ( CASE - 96 WHEN + MAX ( DISTINCT + ( 30 ) ) THEN NULL ELSE - MAX ( DISTINCT + 70 ) END, MAX ( - - 66 ) ), COUNT ( * ) + - - 48 + + - 29 ) * + SUM ( DISTINCT - + 79 ) - 79 * + 30 + 3 * + 84 AS col2
----
3412

query I rowsort
SELECT 76 * + 66 - - 68
----
5084

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2529
SELECT + 35 AS col0, 8 * CAST( NULL AS SIGNED ) / - + ( - - 31 ) * 24 * 83 * + + 87
----
35
NULL

skipif mysql # not compatible
query II rowsort label-2529
SELECT + 35 AS col0, 8 * CAST ( NULL AS INTEGER ) / - + ( - - 31 ) * 24 * 83 * + + 87
----
35
NULL

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2531
SELECT - CAST( + + 89 AS SIGNED ) * + - 26
----
2314

skipif mysql # not compatible
query I rowsort label-2531
SELECT - CAST ( + + 89 AS INTEGER ) * + - 26
----
2314

query I rowsort
SELECT - 31 * - + 37
----
1147

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2533
SELECT COUNT( * ), ( + - 83 ) DIV - ( + 68 ) AS col2
----
1
1

skipif mysql # not compatible
query II rowsort label-2533
SELECT COUNT ( * ), ( + - 83 ) / - ( + 68 ) AS col2
----
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2534
SELECT - 95 + - COALESCE ( - 45, - - 14, - - COUNT( * ) ) AS col0
----
-50

skipif mysql # not compatible
query I rowsort label-2534
SELECT - 95 + - COALESCE ( - 45, - - 14, - - COUNT ( * ) ) AS col0
----
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-2535
SELECT ALL + 14 - + NULLIF ( - CASE WHEN NULL BETWEEN ( NULL ) AND ( + COUNT( * ) ) THEN NULL ELSE + COALESCE ( + + 41, + - COUNT( * ) + 99 ) - - - 10 END, + NULLIF ( - - 66, - 73 + + - ( + + CASE - COUNT( * ) WHEN 26 / 78 - - 45 * 74 THEN 31 * 80 END ) ) * 20 ) + + COUNT( * ) * + 21 * - 57
----
-1152

skipif mysql # not compatible
query I rowsort label-2535
SELECT ALL + 14 - + NULLIF ( - CASE WHEN NULL BETWEEN ( NULL ) AND ( + COUNT ( * ) ) THEN NULL ELSE + COALESCE ( + + 41, + - COUNT ( * ) + 99 ) - - - 10 END, + NULLIF ( - - 66, - 73 + + - ( + + CASE - COUNT ( * ) WHEN 26 / 78 - - 45 * 74 THEN 31 * 80 END ) ) * 20 ) + + COUNT ( * ) * + 21 * - 57
----
-1152

onlyif mysql # aggregate syntax: 
query I rowsort label-2536
SELECT DISTINCT COALESCE ( + + COUNT( * ), - + ( - 63 ) )
----
1

skipif mysql # not compatible
query I rowsort label-2536
SELECT DISTINCT COALESCE ( + + COUNT ( * ), - + ( - 63 ) )
----
1

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

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2538
SELECT ALL COALESCE ( ( + 14 ), + + 74, - CAST( NULL AS SIGNED ) DIV - CAST( 2 AS SIGNED ) * CAST( NULL AS SIGNED ) + - 31 ) AS col0, 19
----
14
19

skipif mysql # not compatible
query II rowsort label-2538
SELECT ALL COALESCE ( ( + 14 ), + + 74, - CAST ( NULL AS INTEGER ) / - CAST ( 2 AS INTEGER ) * CAST ( NULL AS INTEGER ) + - 31 ) AS col0, 19
----
14
19

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

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

query II rowsort
SELECT - 63, + 44 AS col1
----
-63
44

query I rowsort
SELECT + 65 + NULLIF ( + - ( + - 56 ), + 9 * - 13 * - 56 )
----
121

query II rowsort
SELECT DISTINCT ( - 47 ) AS col2, + 20 * + + 7 AS col0
----
-47
140

onlyif mysql # aggregate syntax: 
query I rowsort label-2543
SELECT DISTINCT ( 58 ) * MIN( ALL - 69 ) AS col2
----
-4002

skipif mysql # not compatible
query I rowsort label-2543
SELECT DISTINCT ( 58 ) * MIN ( ALL - 69 ) AS col2
----
-4002

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

query I rowsort
SELECT ALL + 8 * + 55 col1
----
440

onlyif mysql # aggregate syntax: 
query I rowsort label-2546
SELECT - + 3 + + SUM( - 1 )
----
-4

skipif mysql # not compatible
query I rowsort label-2546
SELECT - + 3 + + SUM ( - 1 )
----
-4

query I rowsort
SELECT + + 53 * - 46
----
-2438

query I rowsort
SELECT ALL + + 95 * - + 51 + - 96
----
-4941

query I rowsort
SELECT + 65 - + + 38 AS col2
----
27

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2550
SELECT - COUNT( * ) + + + COUNT( * ) / + CAST( NULL AS SIGNED ) + - 78 * - + 34
----
NULL

skipif mysql # not compatible
query I rowsort label-2550
SELECT - COUNT ( * ) + + + COUNT ( * ) / + CAST ( NULL AS INTEGER ) + - 78 * - + 34
----
NULL

query I rowsort
SELECT + 78 - - 51 * - + 67 * - 22
----
75252

query II rowsort
SELECT ALL + 67, + 1 AS col0
----
67
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2553
SELECT - 22 DIV - - 94 * ( + SUM( ALL + 84 ) ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2553
SELECT - 22 / - - 94 * ( + SUM ( ALL + 84 ) ) AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2554
SELECT + + 35 * - ( 98 ) * + - 29 + - + COUNT( * ) + + 4 + - - 20 * ( - + 30 ) + + 96 + 10 AS col1
----
98979

skipif mysql # not compatible
query I rowsort label-2554
SELECT + + 35 * - ( 98 ) * + - 29 + - + COUNT ( * ) + + 4 + - - 20 * ( - + 30 ) + + 96 + 10 AS col1
----
98979

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2555
SELECT DISTINCT CASE 53 WHEN - 56 * + NULLIF ( + + 37, 97 ) THEN NULL ELSE - + 6 * + + 85 DIV + 36 + - 9 * + COUNT( * ) END DIV + CASE - 95 WHEN 14 + CAST( NULL AS SIGNED ) THEN NULL WHEN 31 THEN + 41 * - 55 ELSE 87 + 33 END + - 10 AS col2
----
-10

skipif mysql # not compatible
query I rowsort label-2555
SELECT DISTINCT CASE 53 WHEN - 56 * + NULLIF ( + + 37, 97 ) THEN NULL ELSE - + 6 * + + 85 / + 36 + - 9 * + COUNT ( * ) END / + CASE - 95 WHEN 14 + CAST ( NULL AS INTEGER ) THEN NULL WHEN 31 THEN + 41 * - 55 ELSE 87 + 33 END + - 10 AS col2
----
-10

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2557
SELECT + - COUNT( * ) + + 78
----
77

skipif mysql # not compatible
query I rowsort label-2557
SELECT + - COUNT ( * ) + + 78
----
77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2558
SELECT ALL - 49 DIV - - 36 + + 15 + + CASE - 1 WHEN - 64 + + 11 THEN - - 47 ELSE - 88 END col0, - 80 * 9 * + 37 - + CAST( - 86 AS SIGNED ) - + + CASE + 82 WHEN 35 * 9 - - COUNT( * ) THEN 92 END
----
-74
NULL

skipif mysql # not compatible
query II rowsort label-2558
SELECT ALL - 49 / - - 36 + + 15 + + CASE - 1 WHEN - 64 + + 11 THEN - - 47 ELSE - 88 END col0, - 80 * 9 * + 37 - + CAST ( - 86 AS INTEGER ) - + + CASE + 82 WHEN 35 * 9 - - COUNT ( * ) THEN 92 END
----
-74
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2559
SELECT ALL - 84 DIV - + 32 + - + 30 + + 44 col1
----
16

skipif mysql # not compatible
query I rowsort label-2559
SELECT ALL - 84 / - + 32 + - + 30 + + 44 col1
----
16

query II rowsort
SELECT + 11, + 40 + + 5 AS col0
----
11
45

query II rowsort
SELECT + - 41 AS col2, 1
----
-41
1

onlyif mysql # DIV for integer division: 
query I rowsort label-2562
SELECT ALL + 34 DIV + 47 + + 23 AS col0
----
23

skipif mysql # not compatible
query I rowsort label-2562
SELECT ALL + 34 / + 47 + + 23 AS col0
----
23

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2563
SELECT ALL 69 * - - CAST( 83 AS SIGNED ) * - + 46
----
-263442

skipif mysql # not compatible
query I rowsort label-2563
SELECT ALL 69 * - - CAST ( 83 AS INTEGER ) * - + 46
----
-263442

onlyif mysql # aggregate syntax: 
query I rowsort label-2564
SELECT + 79 + MAX( 63 )
----
142

skipif mysql # not compatible
query I rowsort label-2564
SELECT + 79 + MAX ( 63 )
----
142

onlyif mysql # aggregate syntax: 
query I rowsort label-2565
SELECT ALL 45 * - CASE - 80 WHEN - COUNT( * ) / + CASE COUNT( * ) WHEN - 37 * + + 62 + 15 * + + COUNT( * ) THEN + 5 END + + 51 * + COUNT( DISTINCT 12 ) * + 95 + - + 12 THEN 18 WHEN + ( + COUNT( ALL 89 ) ) THEN 91 END + - 71
----
NULL

skipif mysql # not compatible
query I rowsort label-2565
SELECT ALL 45 * - CASE - 80 WHEN - COUNT ( * ) / + CASE COUNT ( * ) WHEN - 37 * + + 62 + 15 * + + COUNT ( * ) THEN + 5 END + + 51 * + COUNT ( DISTINCT 12 ) * + 95 + - + 12 THEN 18 WHEN + ( + COUNT ( ALL 89 ) ) THEN 91 END + - 71
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2566
SELECT DISTINCT COALESCE ( - - SUM( DISTINCT + + COALESCE ( + 5, + 21 * - 92 * 67 * - + 93 + + 64 * - 31 ) ), + - 90, + 3 ) * - 86
----
-430

skipif mysql # not compatible
query I rowsort label-2566
SELECT DISTINCT COALESCE ( - - SUM ( DISTINCT + + COALESCE ( + 5, + 21 * - 92 * 67 * - + 93 + + 64 * - 31 ) ), + - 90, + 3 ) * - 86
----
-430

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2567
SELECT - 39 * - 35 + ( 45 ) - + COUNT( * ) + + 24 + + 48 * + 24 DIV + 8 + - 90, - 91 * - - 62 * 2 AS col1
----
1487
-11284

skipif mysql # not compatible
query II rowsort label-2567
SELECT - 39 * - 35 + ( 45 ) - + COUNT ( * ) + + 24 + + 48 * + 24 / + 8 + - 90, - 91 * - - 62 * 2 AS col1
----
1487
-11284

onlyif mysql # aggregate syntax: 
query I rowsort label-2568
SELECT ALL MIN( ALL - - 33 ) AS col1
----
33

skipif mysql # not compatible
query I rowsort label-2568
SELECT ALL MIN ( ALL - - 33 ) AS col1
----
33

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2570
SELECT - 66 DIV - + NULLIF ( + + COUNT( * ), 25 ) AS col2
----
66

skipif mysql # not compatible
query I rowsort label-2570
SELECT - 66 / - + NULLIF ( + + COUNT ( * ), 25 ) AS col2
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-2571
SELECT ALL - COUNT( * ) * - 30 - + - 53 + + 56
----
139

skipif mysql # not compatible
query I rowsort label-2571
SELECT ALL - COUNT ( * ) * - 30 - + - 53 + + 56
----
139

onlyif mysql # DIV for integer division: 
query II rowsort label-2572
SELECT DISTINCT - 28 * + 29 AS col1, - 2 DIV - + 66 * - 55
----
-812
0

skipif mysql # not compatible
query II rowsort label-2572
SELECT DISTINCT - 28 * + 29 AS col1, - 2 / - + 66 * - 55
----
-812
0

query I rowsort
SELECT ALL + ( 72 ) * + - 24
----
-1728

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

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

query I rowsort
SELECT - 6 - 34
----
-40

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

skipif mysql # not compatible
query I rowsort label-2576
SELECT DISTINCT - COUNT ( + 69 ) AS col2
----
-1

query I rowsort
SELECT 18 + - 88
----
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-2578
SELECT COALESCE ( - - COUNT( * ), - 76 ) * + - 32 * + 96 * 92 * + 6 * - 95 col1
----
161095680

skipif mysql # not compatible
query I rowsort label-2578
SELECT COALESCE ( - - COUNT ( * ), - 76 ) * + - 32 * + 96 * 92 * + 6 * - 95 col1
----
161095680

onlyif mysql # aggregate syntax: 
query I rowsort label-2579
SELECT + 63 + - ( - ( - + 9 ) ) * COUNT( * )
----
54

skipif mysql # not compatible
query I rowsort label-2579
SELECT + 63 + - ( - ( - + 9 ) ) * COUNT ( * )
----
54

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2580
SELECT 84 * - 65 + 71 * COALESCE ( + 23, + - 66 * + + COUNT( * ) DIV - 75 ) + NULLIF ( + 68, CAST( 15 AS SIGNED ) )
----
-3759

skipif mysql # not compatible
query I rowsort label-2580
SELECT 84 * - 65 + 71 * COALESCE ( + 23, + - 66 * + + COUNT ( * ) / - 75 ) + NULLIF ( + 68, CAST ( 15 AS INTEGER ) )
----
-3759

onlyif mysql # aggregate syntax: 
query I rowsort label-2581
SELECT ALL + 36 + - MIN( ALL - 68 ) - + 86
----
18

skipif mysql # not compatible
query I rowsort label-2581
SELECT ALL + 36 + - MIN ( ALL - 68 ) - + 86
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-2582
SELECT + 29 * ( + + 80 ) + + 55 + + 56 * COUNT( * )
----
2431

skipif mysql # not compatible
query I rowsort label-2582
SELECT + 29 * ( + + 80 ) + + 55 + + 56 * COUNT ( * )
----
2431

onlyif mysql # DIV for integer division: 
query I rowsort label-2583
SELECT ALL - 92 DIV 14
----
-6

skipif mysql # not compatible
query I rowsort label-2583
SELECT ALL - 92 / 14
----
-6

query I rowsort
SELECT 64 / + + CASE - 73 WHEN + 70 THEN + + 32 END + + 95
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2585
SELECT ALL SUM( ALL + 71 ) + + 47 AS col1
----
118

skipif mysql # not compatible
query I rowsort label-2585
SELECT ALL SUM ( ALL + 71 ) + + 47 AS col1
----
118

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2586
SELECT ALL + + 88 + - MIN( ALL + 93 ) + + COUNT( * ) DIV + + 13 * + 62 - + + COUNT( * ) AS col0
----
-6

skipif mysql # not compatible
query I rowsort label-2586
SELECT ALL + + 88 + - MIN ( ALL + 93 ) + + COUNT ( * ) / + + 13 * + 62 - + + COUNT ( * ) AS col0
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-2587
SELECT DISTINCT - COUNT( * ) + + 17 + + - 94 * - 73
----
6878

skipif mysql # not compatible
query I rowsort label-2587
SELECT DISTINCT - COUNT ( * ) + + 17 + + - 94 * - 73
----
6878

onlyif mysql # aggregate syntax: 
query I rowsort label-2588
SELECT 33 * + 13 + - 72 + - - MIN( 74 )
----
431

skipif mysql # not compatible
query I rowsort label-2588
SELECT 33 * + 13 + - 72 + - - MIN ( 74 )
----
431

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

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

query I rowsort
SELECT ALL 38 - + 35 * - 41 + - 28
----
1445

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2591
SELECT ALL - MAX( ALL + CAST( 69 AS SIGNED ) ), COUNT( * ) * - 88 col0
----
-69
-88

skipif mysql # not compatible
query II rowsort label-2591
SELECT ALL - MAX ( ALL + CAST ( 69 AS INTEGER ) ), COUNT ( * ) * - 88 col0
----
-69
-88

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2592
SELECT COUNT( * ) + + 27 DIV - ( 51 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-2592
SELECT COUNT ( * ) + + 27 / - ( 51 ) AS col0
----
1

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

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

query II rowsort
SELECT ALL - 57 AS col1, - 5 * 34
----
-57
-170

onlyif mysql # aggregate syntax: 
query I rowsort label-2595
SELECT DISTINCT COUNT( * ) - + - 65 + ( CASE CASE + MAX( + CASE + 80 WHEN - 92 THEN + 26 + CASE - 55 WHEN - 77 THEN CASE 37 WHEN + - 2 THEN + + 99 WHEN 10 THEN NULL WHEN - 52 THEN + 12 END ELSE - 39 END END ) WHEN NULLIF ( COUNT( 77 ), - 30 * - 3 ) * 28 THEN COUNT( * ) ELSE - 81 - + COUNT( * ) * 9 END WHEN 60 * 30 THEN + 48 * - 98 + 30 ELSE 47 + - 2 END ) + MAX( ALL - 76 + + 35 )
----
70

skipif mysql # not compatible
query I rowsort label-2595
SELECT DISTINCT COUNT ( * ) - + - 65 + ( CASE CASE + MAX ( + CASE + 80 WHEN - 92 THEN + 26 + CASE - 55 WHEN - 77 THEN CASE 37 WHEN + - 2 THEN + + 99 WHEN 10 THEN NULL WHEN - 52 THEN + 12 END ELSE - 39 END END ) WHEN NULLIF ( COUNT ( 77 ), - 30 * - 3 ) * 28 THEN COUNT ( * ) ELSE - 81 - + COUNT ( * ) * 9 END WHEN 60 * 30 THEN + 48 * - 98 + 30 ELSE 47 + - 2 END ) + MAX ( ALL - 76 + + 35 )
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-2596
SELECT - MAX( ALL - 17 ) * 28 + 4 - + - CASE + - MIN( - 71 ) WHEN - - 69 THEN - + COUNT( * ) WHEN - + 74 THEN - - COUNT( * ) + - 59 ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2596
SELECT - MAX ( ALL - 17 ) * 28 + 4 - + - CASE + - MIN ( - 71 ) WHEN - - 69 THEN - + COUNT ( * ) WHEN - + 74 THEN - - COUNT ( * ) + - 59 ELSE NULL END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2597
SELECT 87 * + 94 - + CASE - 46 WHEN + 54 / 81 THEN + 22 * + + COUNT( * ) * 19 * - + 13 WHEN - + 87 * SUM( + 8 ) - - + 38 THEN NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2597
SELECT 87 * + 94 - + CASE - 46 WHEN + 54 / 81 THEN + 22 * + + COUNT ( * ) * 19 * - + 13 WHEN - + 87 * SUM ( + 8 ) - - + 38 THEN NULL END AS col1
----
NULL

query I rowsort
SELECT 18 * - - 72 AS col2
----
1296

query I rowsort
SELECT 53 * + 86
----
4558

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2601
SELECT 88 * + + 9 + - ( + COUNT( * ) )
----
791

skipif mysql # not compatible
query I rowsort label-2601
SELECT 88 * + + 9 + - ( + COUNT ( * ) )
----
791

query I rowsort
SELECT 43 * 21 AS col0
----
903

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2603
SELECT DISTINCT - + MAX( + 75 ) DIV - CAST( - 24 AS SIGNED ) AS col0
----
-3

skipif mysql # not compatible
query I rowsort label-2603
SELECT DISTINCT - + MAX ( + 75 ) / - CAST ( - 24 AS INTEGER ) AS col0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-2604
SELECT + 77 + - ( COALESCE ( + 96, 1, + + COUNT( * ) ) )
----
-19

skipif mysql # not compatible
query I rowsort label-2604
SELECT + 77 + - ( COALESCE ( + 96, 1, + + COUNT ( * ) ) )
----
-19

query I rowsort
SELECT DISTINCT + 15 + - 70
----
-55

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2607
SELECT 63 + COUNT( * ) * + - 98, + 2 * CAST( - - 32 AS SIGNED ) AS col2
----
-35
64

skipif mysql # not compatible
query II rowsort label-2607
SELECT 63 + COUNT ( * ) * + - 98, + 2 * CAST ( - - 32 AS INTEGER ) AS col2
----
-35
64

onlyif mysql # DIV for integer division: 
query II rowsort label-2608
SELECT - + 7 AS col0, - 23 DIV COALESCE ( + 56, + 19 + - AVG ( - 98 ), - 42 DIV - 90 ) AS col0
----
-7
0

skipif mysql # not compatible
query II rowsort label-2608
SELECT - + 7 AS col0, - 23 / COALESCE ( + 56, + 19 + - AVG ( - 98 ), - 42 / - 90 ) AS col0
----
-7
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2609
SELECT 22 + + 55 * - CAST( 20 AS SIGNED ) * + - 33 * + - 18 AS col0
----
-653378

skipif mysql # not compatible
query I rowsort label-2609
SELECT 22 + + 55 * - CAST ( 20 AS INTEGER ) * + - 33 * + - 18 AS col0
----
-653378

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

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

query I rowsort
SELECT DISTINCT 83 + + 35 AS col1
----
118

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2613
SELECT NULLIF ( - + 25, + 94 - COUNT( * ) * - 17 ) * - 26 AS col2
----
650

skipif mysql # not compatible
query I rowsort label-2613
SELECT NULLIF ( - + 25, + 94 - COUNT ( * ) * - 17 ) * - 26 AS col2
----
650

query I rowsort
SELECT ALL + 4 + - 10 AS col2
----
-6

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

skipif mysql # not compatible
query I rowsort label-2615
SELECT ALL - + 40 + - + 42 / COUNT ( * ) AS col2
----
-82

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2616
SELECT DISTINCT 84 AS col0, + COUNT( * ) + - + CAST( + + CASE + 69 WHEN 64 + - - 41 * + 40 - 9 + + 14 THEN + 39 * + ( - - 89 ) - - 73 + + 20 / + 37 * + 14 WHEN + - MIN( ALL - 4 ) * - ( 61 * 76 + + 24 ) THEN 4 * + 4 - 55 * 34 WHEN CASE 95 WHEN - 12 THEN - 64 + - 40 / 54 END THEN NULL ELSE NULL END AS SIGNED ) - 27 col0
----
84
NULL

skipif mysql # not compatible
query II rowsort label-2616
SELECT DISTINCT 84 AS col0, + COUNT ( * ) + - + CAST ( + + CASE + 69 WHEN 64 + - - 41 * + 40 - 9 + + 14 THEN + 39 * + ( - - 89 ) - - 73 + + 20 / + 37 * + 14 WHEN + - MIN ( ALL - 4 ) * - ( 61 * 76 + + 24 ) THEN 4 * + 4 - 55 * 34 WHEN CASE 95 WHEN - 12 THEN - 64 + - 40 / 54 END THEN NULL ELSE NULL END AS INTEGER ) - 27 col0
----
84
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2617
SELECT 12 + + + MAX( 66 ) - + + 10 + ( - 79 ) / 56 * - CASE + 79 WHEN 97 THEN - + ( + 50 ) + - 89 END
----
NULL

skipif mysql # not compatible
query I rowsort label-2617
SELECT 12 + + + MAX ( 66 ) - + + 10 + ( - 79 ) / 56 * - CASE + 79 WHEN 97 THEN - + ( + 50 ) + - 89 END
----
NULL

query I rowsort
SELECT + 76 + 36 + - NULLIF ( - 60, + 39 ) col2
----
172

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2619
SELECT - ( - SUM( + 86 ) ) * - - 6 + ( 62 ) + - - 80 + + ( + 3 ) + CAST( - 3 AS SIGNED ) / + CASE 65 WHEN 39 * + 33 THEN + CAST( + 6 AS SIGNED ) + + 23 + - 41 * + CASE + 1 WHEN + COALESCE ( + CAST( - 56 AS SIGNED ), + 24, MIN( DISTINCT 79 ) + 52 ) * NULLIF ( - COALESCE ( 52, 41 / - 81 + + 54 ) + 95, + 44 ) + 78 THEN + COUNT( * ) * 21 END END * + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-2619
SELECT - ( - SUM ( + 86 ) ) * - - 6 + ( 62 ) + - - 80 + + ( + 3 ) + CAST ( - 3 AS INTEGER ) / + CASE 65 WHEN 39 * + 33 THEN + CAST ( + 6 AS INTEGER ) + + 23 + - 41 * + CASE + 1 WHEN + COALESCE ( + CAST ( - 56 AS INTEGER ), + 24, MIN ( DISTINCT 79 ) + 52 ) * NULLIF ( - COALESCE ( 52, 41 / - 81 + + 54 ) + 95, + 44 ) + 78 THEN + COUNT ( * ) * 21 END END * + COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2620
SELECT 89 * + 63 * + MAX( DISTINCT - 20 ) * 14
----
-1569960

skipif mysql # not compatible
query I rowsort label-2620
SELECT 89 * + 63 * + MAX ( DISTINCT - 20 ) * 14
----
-1569960

onlyif mysql # DIV for integer division: 
query II rowsort label-2621
SELECT - 69 DIV + + 49 + 21 AS col1, 84 AS col1
----
20
84

skipif mysql # not compatible
query II rowsort label-2621
SELECT - 69 / + + 49 + 21 AS col1, 84 AS col1
----
20
84

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2622
SELECT 93 + - 3 + + 47 * + + COUNT( ALL - - 38 ), CAST( NULL AS SIGNED ) AS col0
----
137
NULL

skipif mysql # not compatible
query II rowsort label-2622
SELECT 93 + - 3 + + 47 * + + COUNT ( ALL - - 38 ), CAST ( NULL AS INTEGER ) AS col0
----
137
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2623
SELECT ALL - COALESCE ( - 21, + MAX( DISTINCT 74 ) )
----
21

skipif mysql # not compatible
query I rowsort label-2623
SELECT ALL - COALESCE ( - 21, + MAX ( DISTINCT 74 ) )
----
21

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2624
SELECT 18 * + ( 78 ) + - + COUNT( + + 46 ) DIV - - 57 + - ( 52 ) AS col2
----
1352

skipif mysql # not compatible
query I rowsort label-2624
SELECT 18 * + ( 78 ) + - + COUNT ( + + 46 ) / - - 57 + - ( 52 ) AS col2
----
1352

query I rowsort
SELECT ALL 32 * - 95 * + 63 col2
----
-191520

query II rowsort
SELECT DISTINCT - 73 * - 73 AS col1, + 44
----
5329
44

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

query I rowsort
SELECT 22 * + + 99 * + 47 AS col0
----
102366

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2629
SELECT ALL - ( 94 ) * + CAST( + 22 AS SIGNED )
----
-2068

skipif mysql # not compatible
query I rowsort label-2629
SELECT ALL - ( 94 ) * + CAST ( + 22 AS INTEGER )
----
-2068

query I rowsort
SELECT 11 * + 52
----
572

query I rowsort
SELECT ALL 18 * - - 75
----
1350

query I rowsort
SELECT + 24 + - + 51
----
-27

onlyif mysql # DIV for integer division: 
query I rowsort label-2633
SELECT DISTINCT + 11 + 56 DIV + 62
----
11

skipif mysql # not compatible
query I rowsort label-2633
SELECT DISTINCT + 11 + 56 / + 62
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-2634
SELECT ALL 89 + 3 + - COUNT( * ) AS col2
----
91

skipif mysql # not compatible
query I rowsort label-2634
SELECT ALL 89 + 3 + - COUNT ( * ) AS col2
----
91

onlyif mysql # aggregate syntax: 
query II rowsort label-2635
SELECT DISTINCT 12 + - + COUNT( * ), + COALESCE ( - - 55, - NULLIF ( + - 20, + AVG ( + + 20 ) * - 94 ) ) AS col2
----
11
55

skipif mysql # not compatible
query II rowsort label-2635
SELECT DISTINCT 12 + - + COUNT ( * ), + COALESCE ( - - 55, - NULLIF ( + - 20, + AVG ( + + 20 ) * - 94 ) ) AS col2
----
11
55

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2636
SELECT - SUM( ALL + COALESCE ( - 5, - CAST( + 15 AS SIGNED ) * - - 29 ) ) col2
----
5

skipif mysql # not compatible
query I rowsort label-2636
SELECT - SUM ( ALL + COALESCE ( - 5, - CAST ( + 15 AS INTEGER ) * - - 29 ) ) col2
----
5

query I rowsort
SELECT ALL - 86 * 62 - - + 10
----
-5322

onlyif mysql # aggregate syntax: 
query I rowsort label-2638
SELECT COALESCE ( - 97, + - COUNT( * ) )
----
-97

skipif mysql # not compatible
query I rowsort label-2638
SELECT COALESCE ( - 97, + - COUNT ( * ) )
----
-97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2639
SELECT DISTINCT 14 + 63 + NULLIF ( + - ( - 84 ), + 68 ) * CASE - + 77 WHEN - 25 / + 8 THEN + + 21 - COALESCE ( 42, + CAST( - 35 AS SIGNED ), + - 76, 82 ) WHEN - ( 63 ) * SUM( 61 * 1 + 13 ) THEN NULL END * NULLIF ( SUM( ALL 68 ), 63 ) * 99 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2639
SELECT DISTINCT 14 + 63 + NULLIF ( + - ( - 84 ), + 68 ) * CASE - + 77 WHEN - 25 / + 8 THEN + + 21 - COALESCE ( 42, + CAST ( - 35 AS INTEGER ), + - 76, 82 ) WHEN - ( 63 ) * SUM ( 61 * 1 + 13 ) THEN NULL END * NULLIF ( SUM ( ALL 68 ), 63 ) * 99 AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2640
SELECT ALL 28 + 17 DIV 11 AS col1
----
29

skipif mysql # not compatible
query I rowsort label-2640
SELECT ALL 28 + 17 / 11 AS col1
----
29

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

skipif mysql # not compatible
query I rowsort label-2641
SELECT ALL COUNT ( * ) + + + 53 AS col2
----
54

query II rowsort
SELECT + + 14 * - ( - - 62 ) * - + 86 AS col0, 25 + + 39 AS col2
----
74648
64

query I rowsort
SELECT + 16 - 80 AS col2
----
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-2644
SELECT - NULLIF ( COUNT( 9 ), + 48 * - 14 + 78 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-2644
SELECT - NULLIF ( COUNT ( 9 ), + 48 * - 14 + 78 ) AS col2
----
-1

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

skipif mysql # not compatible
query I rowsort label-2645
SELECT ALL + COUNT ( * ) + - 37 / + 13
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-2646
SELECT + - 53 DIV + 6
----
-8

skipif mysql # not compatible
query I rowsort label-2646
SELECT + - 53 / + 6
----
-8

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2647
SELECT + 47 + + 43 + - + COUNT( * ) * CAST( 42 AS SIGNED ) col0
----
48

skipif mysql # not compatible
query I rowsort label-2647
SELECT + 47 + + 43 + - + COUNT ( * ) * CAST ( 42 AS INTEGER ) col0
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-2648
SELECT - + MIN( ALL - + 49 ) AS col2
----
49

skipif mysql # not compatible
query I rowsort label-2648
SELECT - + MIN ( ALL - + 49 ) AS col2
----
49

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

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

query I rowsort
SELECT - 61 + - 71 AS col2
----
-132

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

skipif mysql # not compatible
query I rowsort label-2651
SELECT + COUNT ( * ) / - 23 * + + 36
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2652
SELECT + 32 DIV + + 33 * 63 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-2652
SELECT + 32 / + + 33 * 63 AS col1
----
0

query I rowsort
SELECT ALL 1 * + CASE - 79 WHEN - 75 / + 17 + ( - COALESCE ( + - 75, + 57 ) ) + + 92 + - 94 THEN - 12 / + 9 + + + CASE - 50 WHEN 49 THEN - 31 * 72 WHEN - 39 THEN NULL END - 98 END
----
NULL

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

query I rowsort
SELECT + 61 + + 56
----
117

query I rowsort
SELECT - 78 * - 25 AS col1
----
1950

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

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-2659
SELECT - 19 * - - ( 90 ) AS col1, + 75 DIV - + 78 * + - 21 AS col0
----
-1710
0

skipif mysql # not compatible
query II rowsort label-2659
SELECT - 19 * - - ( 90 ) AS col1, + 75 / - + 78 * + - 21 AS col0
----
-1710
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2660
SELECT - 45 * + MAX( ALL 4 ) * + 45 - + 36 AS col2
----
-8136

skipif mysql # not compatible
query I rowsort label-2660
SELECT - 45 * + MAX ( ALL 4 ) * + 45 - + 36 AS col2
----
-8136

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2661
SELECT ALL + COUNT( * ) * + - CASE + + 71 WHEN - 49 * - 36 THEN + 4 WHEN + COUNT( - - CAST( + 91 AS SIGNED ) ) * + 8 * - + 68 THEN NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2661
SELECT ALL + COUNT ( * ) * + - CASE + + 71 WHEN - 49 * - 36 THEN + 4 WHEN + COUNT ( - - CAST ( + 91 AS INTEGER ) ) * + 8 * - + 68 THEN NULL END AS col2
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2663
SELECT ALL SUM( - 2 ) * - 68 * 28 * + 44 + + + 93 + 67
----
167712

skipif mysql # not compatible
query I rowsort label-2663
SELECT ALL SUM ( - 2 ) * - 68 * 28 * + 44 + + + 93 + 67
----
167712

onlyif mysql # aggregate syntax: 
query I rowsort label-2664
SELECT - 47 + - - COUNT( * ) + 22 + - - 58 * 31 * 64 AS col2
----
115048

skipif mysql # not compatible
query I rowsort label-2664
SELECT - 47 + - - COUNT ( * ) + 22 + - - 58 * 31 * 64 AS col2
----
115048

query I rowsort
SELECT + 6 * - + 5 * - 70 - 48
----
2052

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2666
SELECT - 64 + - 97 * - 19 AS col1, COUNT( * ) - - 60 - - ( - CAST( NULL AS SIGNED ) )
----
1779
NULL

skipif mysql # not compatible
query II rowsort label-2666
SELECT - 64 + - 97 * - 19 AS col1, COUNT ( * ) - - 60 - - ( - CAST ( NULL AS INTEGER ) )
----
1779
NULL

query I rowsort
SELECT + 33 + - + 95 * - 88 AS col2
----
8393

onlyif mysql # aggregate syntax: 
query I rowsort label-2668
SELECT - MIN( ALL - 84 ) AS col1
----
84

skipif mysql # not compatible
query I rowsort label-2668
SELECT - MIN ( ALL - 84 ) AS col1
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-2669
SELECT - 86 + + - 42 * - SUM( ALL - + 37 ) AS col0
----
-1640

skipif mysql # not compatible
query I rowsort label-2669
SELECT - 86 + + - 42 * - SUM ( ALL - + 37 ) AS col0
----
-1640

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2670
SELECT ALL - 49 DIV - 58 * - CAST( - ( + + 60 ) AS SIGNED ) AS col1, 44 * - + 26
----
0
-1144

skipif mysql # not compatible
query II rowsort label-2670
SELECT ALL - 49 / - 58 * - CAST ( - ( + + 60 ) AS INTEGER ) AS col1, 44 * - + 26
----
0
-1144

query I rowsort
SELECT DISTINCT + 33 * + - ( + - 45 ) + + 64 * 53
----
4877

onlyif mysql # aggregate syntax: 
query I rowsort label-2672
SELECT - COALESCE ( + + 81, 55 + - + 31 * - + 88 * - - 66 + ( - 82 ), - MAX( ( 27 ) ) + - 82 ) AS col2
----
-81

skipif mysql # not compatible
query I rowsort label-2672
SELECT - COALESCE ( + + 81, 55 + - + 31 * - + 88 * - - 66 + ( - 82 ), - MAX ( ( 27 ) ) + - 82 ) AS col2
----
-81

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2673
SELECT DISTINCT - 68 * 56 - + + 38 + - + 39 - 22 + - 32 - ( + COUNT( * ) ) DIV 76 DIV + + COALESCE ( - 53, - 95 * + 46 DIV - COALESCE ( COUNT( * ), 97 DIV + ( - 64 ) ), + 36 ) * - 69 AS col1
----
-3939

skipif mysql # not compatible
query I rowsort label-2673
SELECT DISTINCT - 68 * 56 - + + 38 + - + 39 - 22 + - 32 - ( + COUNT ( * ) ) / 76 / + + COALESCE ( - 53, - 95 * + 46 / - COALESCE ( COUNT ( * ), 97 / + ( - 64 ) ), + 36 ) * - 69 AS col1
----
-3939

query I rowsort
SELECT - 62 + + 24 * 3 AS col2
----
10

query I rowsort
SELECT + - 19 * + 20 AS col0
----
-380

query I rowsort
SELECT - 75 + - - 93 + 7 AS col1
----
25

query I rowsort
SELECT + 49 + + + 40 AS col0
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-2678
SELECT + 2 * + NULLIF ( + SUM( DISTINCT 70 ), + 50 * - - 70 ) AS col2
----
140

skipif mysql # not compatible
query I rowsort label-2678
SELECT + 2 * + NULLIF ( + SUM ( DISTINCT 70 ), + 50 * - - 70 ) AS col2
----
140

onlyif mysql # aggregate syntax: 
query II rowsort label-2679
SELECT + + 41 + 10 * - 89 AS col1, 32 + 0 + + COUNT( * ) * + 70
----
-849
102

skipif mysql # not compatible
query II rowsort label-2679
SELECT + + 41 + 10 * - 89 AS col1, 32 + 0 + + COUNT ( * ) * + 70
----
-849
102

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2681
SELECT + - 67 + 97 * + - 96 * + CAST( NULL AS SIGNED ) * - 38 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2681
SELECT + - 67 + 97 * + - 96 * + CAST ( NULL AS INTEGER ) * - 38 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2682
SELECT + + 92 + - COUNT( * ) * + 18 col1
----
74

skipif mysql # not compatible
query I rowsort label-2682
SELECT + + 92 + - COUNT ( * ) * + 18 col1
----
74

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2683
SELECT + 85 + + 61 - + - 72 + + 78 DIV - COUNT( * ) + + + 54
----
194

skipif mysql # not compatible
query I rowsort label-2683
SELECT + 85 + + 61 - + - 72 + + 78 / - COUNT ( * ) + + + 54
----
194

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2685
SELECT + 49 DIV + 66 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-2685
SELECT + 49 / + 66 AS col2
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-2686
SELECT ALL SUM( ALL - 77 ) AS col1, - 55
----
-77
-55

skipif mysql # not compatible
query II rowsort label-2686
SELECT ALL SUM ( ALL - 77 ) AS col1, - 55
----
-77
-55

query I rowsort
SELECT + 61 * - 1 col0
----
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-2688
SELECT - MIN( + 27 ) + 52 + 24 * - + 8 AS col1
----
-167

skipif mysql # not compatible
query I rowsort label-2688
SELECT - MIN ( + 27 ) + 52 + 24 * - + 8 AS col1
----
-167

query I rowsort
SELECT 92 * + 24 * + 94 + - + 29 AS col1
----
207523

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2690
SELECT ALL - SUM( ALL + ( - - 18 ) ) DIV + - 65 + - ( - 98 ) + + + 18
----
116

skipif mysql # not compatible
query I rowsort label-2690
SELECT ALL - SUM ( ALL + ( - - 18 ) ) / + - 65 + - ( - 98 ) + + + 18
----
116

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2691
SELECT 19 / + 46 * + + 86 * 56 + - 74 + COALESCE ( + - CASE COALESCE ( + + AVG ( DISTINCT + - 47 ), + 55 * + 22 * 59 + 8 * 62, 81 + SUM( DISTINCT - CAST( - 45 AS SIGNED ) ) ) WHEN 6 * + + 15 THEN + 76 * 4 WHEN + 73 THEN NULL ELSE NULL END, CAST( NULL AS SIGNED ) ) * + 38
----
NULL

skipif mysql # not compatible
query I rowsort label-2691
SELECT 19 / + 46 * + + 86 * 56 + - 74 + COALESCE ( + - CASE COALESCE ( + + AVG ( DISTINCT + - 47 ), + 55 * + 22 * 59 + 8 * 62, 81 + SUM ( DISTINCT - CAST ( - 45 AS INTEGER ) ) ) WHEN 6 * + + 15 THEN + 76 * 4 WHEN + 73 THEN NULL ELSE NULL END, CAST ( NULL AS INTEGER ) ) * + 38
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2692
SELECT + 13 DIV - 9
----
-1

skipif mysql # not compatible
query I rowsort label-2692
SELECT + 13 / - 9
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2693
SELECT ALL - 93 DIV - + 96 * - 44 + - ( + - COALESCE ( + MIN( - - 56 ), - ( - 0 ) ) ) + - + NULLIF ( + 99, + 38 )
----
-43

skipif mysql # not compatible
query I rowsort label-2693
SELECT ALL - 93 / - + 96 * - 44 + - ( + - COALESCE ( + MIN ( - - 56 ), - ( - 0 ) ) ) + - + NULLIF ( + 99, + 38 )
----
-43

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

skipif mysql # not compatible
query I rowsort label-2694
SELECT DISTINCT + COUNT ( + 69 ) * - + 0 AS col1
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-2695
SELECT ALL - 28 + - 60 - + SUM( 5 ) + - ( - 3 ) * - - 49 * - - 85 * - 15 * - 86 + - 56 AS col1, 29
----
16118401
29

skipif mysql # not compatible
query II rowsort label-2695
SELECT ALL - 28 + - 60 - + SUM ( 5 ) + - ( - 3 ) * - - 49 * - - 85 * - 15 * - 86 + - 56 AS col1, 29
----
16118401
29

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

skipif mysql # not compatible
query I rowsort label-2696
SELECT 92 * + 96 + - COUNT ( * ) AS col0
----
8831

onlyif mysql # DIV for integer division: 
query I rowsort label-2697
SELECT 47 DIV - 81 * + - 26
----
0

skipif mysql # not compatible
query I rowsort label-2697
SELECT 47 / - 81 * + - 26
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-2698
SELECT ALL - 56 + 71 AS col2, 98 * - 88 + + 27 - - - COUNT( * ) AS col0
----
15
-8598

skipif mysql # not compatible
query II rowsort label-2698
SELECT ALL - 56 + 71 AS col2, 98 * - 88 + + 27 - - - COUNT ( * ) AS col0
----
15
-8598

query II rowsort
SELECT + 5 AS col0, + 71
----
5
71

query II rowsort
SELECT DISTINCT - 88, 31 + + 94 AS col0
----
-88
125

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2701
SELECT + NULLIF ( + COALESCE ( + 76, 51 * CASE + 50 WHEN 68 * + + COUNT( * ) + + - 19 * - 51 THEN NULL WHEN 68 THEN 88 * + 43 + 16 + + 54 END - + 55 + - 64 + - + 89 + + + CAST( - 14 AS SIGNED ) * + COUNT( * ) DIV + 9 + COUNT( * ) DIV 6, + 45 ), - 23 ) DIV 33 + 66 AS col1
----
68

skipif mysql # not compatible
query I rowsort label-2701
SELECT + NULLIF ( + COALESCE ( + 76, 51 * CASE + 50 WHEN 68 * + + COUNT ( * ) + + - 19 * - 51 THEN NULL WHEN 68 THEN 88 * + 43 + 16 + + 54 END - + 55 + - 64 + - + 89 + + + CAST ( - 14 AS INTEGER ) * + COUNT ( * ) / + 9 + COUNT ( * ) / 6, + 45 ), - 23 ) / 33 + 66 AS col1
----
68

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2702
SELECT DISTINCT + 11 + - COALESCE ( - 60, - 63 + - ( - 20 ) + - 0, + 82 + - 71 + 59 + - + CAST( - 2 AS SIGNED ) + COUNT( * ) + + 56 * + 13 * CAST( + + 44 AS SIGNED ), + 40 ) * MAX( 42 ) AS col2
----
2531

skipif mysql # not compatible
query I rowsort label-2702
SELECT DISTINCT + 11 + - COALESCE ( - 60, - 63 + - ( - 20 ) + - 0, + 82 + - 71 + 59 + - + CAST ( - 2 AS INTEGER ) + COUNT ( * ) + + 56 * + 13 * CAST ( + + 44 AS INTEGER ), + 40 ) * MAX ( 42 ) AS col2
----
2531

query I rowsort
SELECT + 40 * 27 + - 88
----
992

query I rowsort
SELECT ALL + 93 + + 37
----
130

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2706
SELECT - 80 + + 60 + + 12 * + COUNT( 72 ) * 81 + - 71 + - CASE + 33 WHEN + 16 THEN - - MIN( + ( - + 17 ) ) WHEN 8 + + 48 - + 26 THEN COUNT( * ) * - 79 + - 45 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-2706
SELECT - 80 + + 60 + + 12 * + COUNT ( 72 ) * 81 + - 71 + - CASE + 33 WHEN + 16 THEN - - MIN ( + ( - + 17 ) ) WHEN 8 + + 48 - + 26 THEN COUNT ( * ) * - 79 + - 45 ELSE NULL END
----
NULL

query I rowsort
SELECT 7 * - - 20 col0
----
140

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-2709
SELECT ALL - 28 AS col1, ( - - CASE + - ( + 58 ) WHEN + 74 * - + CAST( + 61 AS DECIMAL ) + - 23 THEN NULL ELSE + - 85 END ) * - 29 - + COUNT( * )
----
-28
2464

skipif mysql # not compatible
query II rowsort label-2709
SELECT ALL - 28 AS col1, ( - - CASE + - ( + 58 ) WHEN + 74 * - + CAST ( + 61 AS REAL ) + - 23 THEN NULL ELSE + - 85 END ) * - 29 - + COUNT ( * )
----
-28
2464

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2711
SELECT - - 42 * + + 46 + - CAST( NULL AS SIGNED ) AS col2
----
NULL

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2712
SELECT - 58, COUNT( ALL + 41 ) - - 87 col2
----
-58
88

skipif mysql # not compatible
query II rowsort label-2712
SELECT - 58, COUNT ( ALL + 41 ) - - 87 col2
----
-58
88

onlyif mysql # DIV for integer division: 
query I rowsort label-2713
SELECT + 87 DIV + 21 + + 13
----
17

skipif mysql # not compatible
query I rowsort label-2713
SELECT + 87 / + 21 + + 13
----
17

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2714
SELECT DISTINCT + COUNT( * ) * + + MAX( 29 ) - 8 DIV 28 + + NULLIF ( + - 99, 11 * - COUNT( * ) * - + 43 + 58 + - NULLIF ( + - COUNT( * ), + 60 ) ) AS col2
----
-70

skipif mysql # not compatible
query I rowsort label-2714
SELECT DISTINCT + COUNT ( * ) * + + MAX ( 29 ) - 8 / 28 + + NULLIF ( + - 99, 11 * - COUNT ( * ) * - + 43 + 58 + - NULLIF ( + - COUNT ( * ), + 60 ) ) AS col2
----
-70

query II rowsort
SELECT - 30 AS col2, 98
----
-30
98

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2716
SELECT ALL - CAST( NULL AS SIGNED ) AS col0, + 46 * 77
----
NULL
3542

skipif mysql # not compatible
query II rowsort label-2716
SELECT ALL - CAST ( NULL AS INTEGER ) AS col0, + 46 * 77
----
NULL
3542

onlyif mysql # aggregate syntax: 
query II rowsort label-2717
SELECT - 23 * - COALESCE ( - COUNT( * ), - COUNT( * ), - 97 ) + - 6 AS col0, ( 93 ) - - CASE + - COUNT( * ) WHEN + 99 THEN COUNT( * ) ELSE NULL END * 7
----
-29
NULL

skipif mysql # not compatible
query II rowsort label-2717
SELECT - 23 * - COALESCE ( - COUNT ( * ), - COUNT ( * ), - 97 ) + - 6 AS col0, ( 93 ) - - CASE + - COUNT ( * ) WHEN + 99 THEN COUNT ( * ) ELSE NULL END * 7
----
-29
NULL

query I rowsort
SELECT ALL 62 * - 26 * 72 + + 67 + + 68 + + 5 - - - 64 + + 54
----
-115934

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2719
SELECT - NULLIF ( CAST( NULL AS SIGNED ), - + 48 ) * - 71 AS col1, + 53 AS col1
----
NULL
53

skipif mysql # not compatible
query II rowsort label-2719
SELECT - NULLIF ( CAST ( NULL AS INTEGER ), - + 48 ) * - 71 AS col1, + 53 AS col1
----
NULL
53

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

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

query I rowsort
SELECT - + NULLIF ( - + 16, - - 19 + + + 92 )
----
16

onlyif mysql # aggregate syntax: 
query II rowsort label-2722
SELECT DISTINCT NULLIF ( SUM( + 14 ), - 6 ) + 24 AS col0, - 45 * + 74 * - - COUNT( * ) + - ( - 63 ) - - + COUNT( 70 ) * 79 * + 98 + + 75 + - + 4 * - - 12
----
38
4502

skipif mysql # not compatible
query II rowsort label-2722
SELECT DISTINCT NULLIF ( SUM ( + 14 ), - 6 ) + 24 AS col0, - 45 * + 74 * - - COUNT ( * ) + - ( - 63 ) - - + COUNT ( 70 ) * 79 * + 98 + + 75 + - + 4 * - - 12
----
38
4502

onlyif mysql # aggregate syntax: 
query II rowsort label-2723
SELECT ( COUNT( * ) ) * + - 35 AS col2, 80
----
-35
80

skipif mysql # not compatible
query II rowsort label-2723
SELECT ( COUNT ( * ) ) * + - 35 AS col2, 80
----
-35
80

query I rowsort
SELECT DISTINCT + NULLIF ( - ( 49 ), + 25 ) + + - 65 + - 67 + - 75 * + 24 * + 60
----
-108181

onlyif mysql # DIV for integer division: 
query I rowsort label-2725
SELECT ALL 2 + - - 46 DIV + - 79 AS col1
----
2

skipif mysql # not compatible
query I rowsort label-2725
SELECT ALL 2 + - - 46 / + - 79 AS col1
----
2

query II rowsort
SELECT ALL + 24 + + 20 AS col1, - ( + + 66 ) AS col1
----
44
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-2727
SELECT ALL 66 + CASE + 68 WHEN - 28 THEN + + 96 / - 79 WHEN - SUM( DISTINCT 87 ) THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-2727
SELECT ALL 66 + CASE + 68 WHEN - 28 THEN + + 96 / - 79 WHEN - SUM ( DISTINCT 87 ) THEN NULL END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2728
SELECT 61 DIV - 17 + - 50 AS col0
----
-53

skipif mysql # not compatible
query I rowsort label-2728
SELECT 61 / - 17 + - 50 AS col0
----
-53

query I rowsort
SELECT 62 * - + NULLIF ( 36, + 54 * + 98 ) AS col2
----
-2232

onlyif mysql # aggregate syntax: 
query I rowsort label-2730
SELECT COUNT( * ) + - 4 * - 76
----
305

skipif mysql # not compatible
query I rowsort label-2730
SELECT COUNT ( * ) + - 4 * - 76
----
305

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2731
SELECT ALL 59 + + 9 + + COUNT( * ) DIV + - 2 * + ( + 66 ) * - 33 col1
----
68

skipif mysql # not compatible
query I rowsort label-2731
SELECT ALL 59 + + 9 + + COUNT ( * ) / + - 2 * + ( + 66 ) * - 33 col1
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-2732
SELECT 34 * - MAX( ALL - 57 ) + - - 83 + + 9 AS col0
----
2030

skipif mysql # not compatible
query I rowsort label-2732
SELECT 34 * - MAX ( ALL - 57 ) + - - 83 + + 9 AS col0
----
2030

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2733
SELECT 81 DIV NULLIF ( + 53, 74 ) * - 59 - + 24 + 27 + + 76 + - - 45 * + - 89 * - 81 * - 62 + - ( COUNT( * ) ) + + COUNT( * ) + + 59 + - 92 + - MIN( 46 )
----
-20113169

skipif mysql # not compatible
query I rowsort label-2733
SELECT 81 / NULLIF ( + 53, 74 ) * - 59 - + 24 + 27 + + 76 + - - 45 * + - 89 * - 81 * - 62 + - ( COUNT ( * ) ) + + COUNT ( * ) + + 59 + - 92 + - MIN ( 46 )
----
-20113169

onlyif mysql # aggregate syntax: 
query I rowsort label-2734
SELECT DISTINCT 53 * - COUNT( * ) * - - 41
----
-2173

skipif mysql # not compatible
query I rowsort label-2734
SELECT DISTINCT 53 * - COUNT ( * ) * - - 41
----
-2173

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2735
SELECT DISTINCT 65 - 59 + - COALESCE ( - CAST( - + 87 AS SIGNED ), 79 + NULLIF ( - 24, - 31 * - 95 * + CAST( + 18 AS SIGNED ) * 28 + + 6 * + ( + + 89 ) + - 45 + - 8 ) ) * - - 55 + COUNT( * ) * + + 88 col2
----
-4691

skipif mysql # not compatible
query I rowsort label-2735
SELECT DISTINCT 65 - 59 + - COALESCE ( - CAST ( - + 87 AS INTEGER ), 79 + NULLIF ( - 24, - 31 * - 95 * + CAST ( + 18 AS INTEGER ) * 28 + + 6 * + ( + + 89 ) + - 45 + - 8 ) ) * - - 55 + COUNT ( * ) * + + 88 col2
----
-4691

onlyif mysql # aggregate syntax: 
query II rowsort label-2736
SELECT ALL - - NULLIF ( - + 69, + COUNT( * ) - 5 ) * + 83 AS col0, SUM( 40 ) AS col0
----
-5727
40

skipif mysql # not compatible
query II rowsort label-2736
SELECT ALL - - NULLIF ( - + 69, + COUNT ( * ) - 5 ) * + 83 AS col0, SUM ( 40 ) AS col0
----
-5727
40

query I rowsort
SELECT - ( - - 78 ) + 36 AS col2
----
-42

query I rowsort
SELECT ALL + - 6 - + + 25 AS col2
----
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-2739
SELECT ALL + ( + COUNT( * ) ) * - - 4 * - COALESCE ( + 36, + + 57 * + - 25 * + NULLIF ( - 79, - COUNT( * ) ) + 33 ) - - + ( - 18 ) - - + ( 57 ) AS col2
----
-105

skipif mysql # not compatible
query I rowsort label-2739
SELECT ALL + ( + COUNT ( * ) ) * - - 4 * - COALESCE ( + 36, + + 57 * + - 25 * + NULLIF ( - 79, - COUNT ( * ) ) + 33 ) - - + ( - 18 ) - - + ( 57 ) AS col2
----
-105

query I rowsort
SELECT 2 + + 54
----
56

onlyif mysql # DIV for integer division: 
query I rowsort label-2741
SELECT - 23 * - 75 * + - 2 + + 67 - - 98 + 32 - + - 34 DIV + 58 * ( 50 ) AS col0
----
-3253

skipif mysql # not compatible
query I rowsort label-2741
SELECT - 23 * - 75 * + - 2 + + 67 - - 98 + 32 - + - 34 / + 58 * ( 50 ) AS col0
----
-3253

query II rowsort
SELECT ALL - + ( - ( - - 60 ) ) AS col2, 69 * 9
----
60
621

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2743
SELECT CAST( NULL AS DECIMAL ) * 51 * 45 + + + 6 + + ( + 23 ) + - ( + CAST( NULL AS SIGNED ) ) * - + 9 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2743
SELECT CAST ( NULL AS REAL ) * 51 * 45 + + + 6 + + ( + 23 ) + - ( + CAST ( NULL AS INTEGER ) ) * - + 9 AS col2
----
NULL

query I rowsort
SELECT 91 + + 63 AS col0
----
154

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2746
SELECT ALL - 30 * + 50 * COALESCE ( 0, - 7, - 24 + - - COUNT( * ) ) * + + COUNT( * ) * 68 * + SUM( - 16 ) * - 71, + 77 col2
----
0
77

skipif mysql # not compatible
query II rowsort label-2746
SELECT ALL - 30 * + 50 * COALESCE ( 0, - 7, - 24 + - - COUNT ( * ) ) * + + COUNT ( * ) * 68 * + SUM ( - 16 ) * - 71, + 77 col2
----
0
77

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2748
SELECT ALL - 81 * 74 - + - COUNT( * ), 84 AS col0
----
-5993
84

skipif mysql # not compatible
query II rowsort label-2748
SELECT ALL - 81 * 74 - + - COUNT ( * ), 84 AS col0
----
-5993
84

query I rowsort
SELECT + 60 + 8
----
68

query II rowsort
SELECT ALL + 78 + COALESCE ( - NULLIF ( 58, + - 34 ), + 38 ) - 47 AS col0, 6 * - ( - 2 ) AS col0
----
-27
12

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2752
SELECT 47 DIV 30 * + 62
----
62

skipif mysql # not compatible
query I rowsort label-2752
SELECT 47 / 30 * + 62
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-2753
SELECT 18 + 18 + - NULLIF ( - 5, - - COUNT( * ) ) * 57 AS col0
----
321

skipif mysql # not compatible
query I rowsort label-2753
SELECT 18 + 18 + - NULLIF ( - 5, - - COUNT ( * ) ) * 57 AS col0
----
321

query I rowsort
SELECT - 32 + 91 AS col0
----
59

query I rowsort
SELECT ALL + 56 + 72
----
128

onlyif mysql # DIV for integer division: 
query I rowsort label-2756
SELECT ALL - 65 DIV 5
----
-13

skipif mysql # not compatible
query I rowsort label-2756
SELECT ALL - 65 / 5
----
-13

query I rowsort
SELECT ALL 19 + 37
----
56

query I rowsort
SELECT ALL 96 + + 98 * + 21 + + 18
----
2172

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2759
SELECT ALL 54 * - 28 DIV 7 * + 85 * + - CAST( - AVG ( + 42 ) AS SIGNED )
----
-771120

skipif mysql # not compatible
query I rowsort label-2759
SELECT ALL 54 * - 28 / 7 * + 85 * + - CAST ( - AVG ( + 42 ) AS INTEGER )
----
-771120

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2760
SELECT ALL - ( + 78 ) DIV - CASE + 48 WHEN + 25 THEN + 7 * 55 + + 17 + + 64 WHEN - 95 THEN + MIN( 86 ) WHEN - 48 THEN NULL ELSE - 5 END DIV + COUNT( * )
----
-15

skipif mysql # not compatible
query I rowsort label-2760
SELECT ALL - ( + 78 ) / - CASE + 48 WHEN + 25 THEN + 7 * 55 + + 17 + + 64 WHEN - 95 THEN + MIN ( 86 ) WHEN - 48 THEN NULL ELSE - 5 END / + COUNT ( * )
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-2761
SELECT + COUNT( ALL + 14 ) + - 15 AS col0
----
-14

skipif mysql # not compatible
query I rowsort label-2761
SELECT + COUNT ( ALL + 14 ) + - 15 AS col0
----
-14

query I rowsort
SELECT + 54 + - + 29
----
25

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2763
SELECT ALL - 93 - - + CAST( 17 AS SIGNED ) AS col2
----
-76

skipif mysql # not compatible
query I rowsort label-2763
SELECT ALL - 93 - - + CAST ( 17 AS INTEGER ) AS col2
----
-76

query II rowsort
SELECT - 3, 83 AS col1
----
-3
83

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

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

query I rowsort
SELECT NULLIF ( - NULLIF ( + + 1, - 9 ), 3 ) AS col2
----
-1

query II rowsort
SELECT + 18 * + 89 * + 83 * + 48, - 25 AS col0
----
6382368
-25

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

query I rowsort
SELECT ALL + ( + + 60 ) * - 70 - - 97 + - 81
----
-4184

query I rowsort
SELECT + - 81 * - 13 AS col1
----
1053

query I rowsort
SELECT + + ( - - 4 ) + + 64
----
68

query I rowsort
SELECT + 11 * - ( + + 77 ) AS col1
----
-847

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2773
SELECT - - CASE - + COALESCE ( + 76, + - ( - SUM( - - 84 ) ), + + 67 ) WHEN + MIN( ALL - 13 ) * + COALESCE ( 30, + ( - - 37 ) ) THEN - + 0 / + SUM( DISTINCT + - 86 ) + + 16 ELSE NULL END * + 67 + - - ( + 49 ) + + 87 * CAST( + COUNT( * ) AS SIGNED ) + + 1 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2773
SELECT - - CASE - + COALESCE ( + 76, + - ( - SUM ( - - 84 ) ), + + 67 ) WHEN + MIN ( ALL - 13 ) * + COALESCE ( 30, + ( - - 37 ) ) THEN - + 0 / + SUM ( DISTINCT + - 86 ) + + 16 ELSE NULL END * + 67 + - - ( + 49 ) + + 87 * CAST ( + COUNT ( * ) AS INTEGER ) + + 1 col2
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-2774
SELECT ALL + - 94, + 68 + + 44 DIV - CASE - 12 WHEN + - 69 + - + 89 THEN NULL ELSE + 4 END + - + 7 AS col2
----
-94
50

skipif mysql # not compatible
query II rowsort label-2774
SELECT ALL + - 94, + 68 + + 44 / - CASE - 12 WHEN + - 69 + - + 89 THEN NULL ELSE + 4 END + - + 7 AS col2
----
-94
50

onlyif mysql # DIV for integer division: 
query I rowsort label-2775
SELECT ALL 38 DIV + 3
----
12

skipif mysql # not compatible
query I rowsort label-2775
SELECT ALL 38 / + 3
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-2776
SELECT + + 54 + - MAX( ALL - 98 ) * COUNT( * ) AS col1
----
152

skipif mysql # not compatible
query I rowsort label-2776
SELECT + + 54 + - MAX ( ALL - 98 ) * COUNT ( * ) AS col1
----
152

query II rowsort
SELECT DISTINCT + + 17, - CASE 64 WHEN 7 / - + 1 + 65 THEN - 17 WHEN - 43 / - + 46 + + 15 * + + 41 THEN - ( - - 37 ) ELSE - 28 END AS col0
----
17
28

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

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

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

query I rowsort
SELECT + - NULLIF ( - + CASE 51 WHEN + 30 THEN - NULLIF ( + 61, 31 ) + + 4 WHEN 33 THEN NULL END, - 5 ) AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2781
SELECT + + 93 DIV + 99 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-2781
SELECT + + 93 / + 99 AS col2
----
0

query I rowsort
SELECT + - 35 + - + 28 col2
----
-63

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2784
SELECT + 78 * 31 * - 90 + - - ( + COUNT( - - 7 ) ) + + COUNT( * )
----
-217618

skipif mysql # not compatible
query I rowsort label-2784
SELECT + 78 * 31 * - 90 + - - ( + COUNT ( - - 7 ) ) + + COUNT ( * )
----
-217618

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2786
SELECT - 41 + 38 * + NULLIF ( COUNT( * ), 83 + - 11 + 69 ) AS col0
----
-3

skipif mysql # not compatible
query I rowsort label-2786
SELECT - 41 + 38 * + NULLIF ( COUNT ( * ), 83 + - 11 + 69 ) AS col0
----
-3

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2788
SELECT ALL - 96 + MIN( ALL + - 45 )
----
-141

skipif mysql # not compatible
query I rowsort label-2788
SELECT ALL - 96 + MIN ( ALL + - 45 )
----
-141

query I rowsort
SELECT DISTINCT 38 + - 74 AS col1
----
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-2790
SELECT DISTINCT + 24 + + 63 * - 25 / + 84 * - CASE 54 WHEN 94 THEN MIN( + - 53 ) + - 50 + + - COUNT( * ) END + + COUNT( DISTINCT + ( + - 72 ) ) + 0
----
NULL

skipif mysql # not compatible
query I rowsort label-2790
SELECT DISTINCT + 24 + + 63 * - 25 / + 84 * - CASE 54 WHEN 94 THEN MIN ( + - 53 ) + - 50 + + - COUNT ( * ) END + + COUNT ( DISTINCT + ( + - 72 ) ) + 0
----
NULL

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

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2793
SELECT DISTINCT ( + - COUNT( * ) ) AS col2, 10 + - 96 + + 57 AS col2
----
-1
-29

skipif mysql # not compatible
query II rowsort label-2793
SELECT DISTINCT ( + - COUNT ( * ) ) AS col2, 10 + - 96 + + 57 AS col2
----
-1
-29

onlyif mysql # aggregate syntax: 
query II rowsort label-2794
SELECT - COUNT( * ) * - 4 col2, 47
----
4
47

skipif mysql # not compatible
query II rowsort label-2794
SELECT - COUNT ( * ) * - 4 col2, 47
----
4
47

query I rowsort
SELECT DISTINCT - 80 - 42 AS col0
----
-122

query I rowsort
SELECT ALL NULLIF ( - - 76, - ( - 94 ) * ( - 83 ) * 8 )
----
76

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2797
SELECT ALL + COALESCE ( CAST( NULL AS SIGNED ), + + 63 * + + 76 * CASE AVG ( DISTINCT + 77 ) WHEN ( 0 ) THEN + COUNT( * ) - 62 + + NULLIF ( NULLIF ( - 68, + + 24 ), CAST( - + COUNT( DISTINCT - 72 ) AS SIGNED ) ) WHEN + 77 THEN NULL ELSE NULL END - 75, ( 47 ) ) AS col0
----
47

skipif mysql # not compatible
query I rowsort label-2797
SELECT ALL + COALESCE ( CAST ( NULL AS INTEGER ), + + 63 * + + 76 * CASE AVG ( DISTINCT + 77 ) WHEN ( 0 ) THEN + COUNT ( * ) - 62 + + NULLIF ( NULLIF ( - 68, + + 24 ), CAST ( - + COUNT ( DISTINCT - 72 ) AS INTEGER ) ) WHEN + 77 THEN NULL ELSE NULL END - 75, ( 47 ) ) AS col0
----
47

onlyif mysql # DIV for integer division: 
query I rowsort label-2798
SELECT 41 DIV - 56 + + NULLIF ( 22, + 26 ) AS col1
----
22

skipif mysql # not compatible
query I rowsort label-2798
SELECT 41 / - 56 + + NULLIF ( 22, + 26 ) AS col1
----
22

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2799
SELECT - 17 + - 79 * + CASE + 42 WHEN COUNT( * ) THEN NULL WHEN COUNT( * ) + - - 36 * + - 62 * CASE + 51 WHEN + COUNT( * ) * 25 + + 26 + + 28 THEN - + CASE 67 WHEN + - 4 THEN - 76 END / + + 10 WHEN - 11 THEN - 32 END + - - 84 + + - COUNT( * ) THEN + CAST( NULL AS DECIMAL ) END * - ( + 31 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2799
SELECT - 17 + - 79 * + CASE + 42 WHEN COUNT ( * ) THEN NULL WHEN COUNT ( * ) + - - 36 * + - 62 * CASE + 51 WHEN + COUNT ( * ) * 25 + + 26 + + 28 THEN - + CASE 67 WHEN + - 4 THEN - 76 END / + + 10 WHEN - 11 THEN - 32 END + - - 84 + + - COUNT ( * ) THEN + CAST ( NULL AS REAL ) END * - ( + 31 ) AS col0
----
NULL

query I rowsort
SELECT - NULLIF ( - 91, + ( 87 ) ) col1
----
91

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2801
SELECT ALL + - COALESCE ( - ( COUNT( * ) ), + 18 ) DIV - 84 + + 12 + 46 AS col0
----
58

skipif mysql # not compatible
query I rowsort label-2801
SELECT ALL + - COALESCE ( - ( COUNT ( * ) ), + 18 ) / - 84 + + 12 + 46 AS col0
----
58

query I rowsort
SELECT DISTINCT - 36 * - + 22 AS col0
----
792

query I rowsort
SELECT ALL + ( - 25 ) col1
----
-25

query I rowsort
SELECT + 59 * - 45 + - 3
----
-2658

onlyif mysql # aggregate syntax: 
query I rowsort label-2805
SELECT + - CASE - - 66 WHEN + 44 THEN + COUNT( - 94 ) * - 77 + + 10 WHEN - + 78 * + - 66 + + 88 * + 29 THEN 47 END * - 72 + - 18 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2805
SELECT + - CASE - - 66 WHEN + 44 THEN + COUNT ( - 94 ) * - 77 + + 10 WHEN - + 78 * + - 66 + + 88 * + 29 THEN 47 END * - 72 + - 18 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2806
SELECT - 63 * 95 * + + 36 - - + COUNT( * ) AS col2, - 34 - - + 39
----
-215459
5

skipif mysql # not compatible
query II rowsort label-2806
SELECT - 63 * 95 * + + 36 - - + COUNT ( * ) AS col2, - 34 - - + 39
----
-215459
5

onlyif mysql # aggregate syntax: 
query II rowsort label-2807
SELECT + 12 * COALESCE ( + 53, + + 60 ) * SUM( ALL ( 87 ) ) AS col2, 83 - - COUNT( * )
----
55332
84

skipif mysql # not compatible
query II rowsort label-2807
SELECT + 12 * COALESCE ( + 53, + + 60 ) * SUM ( ALL ( 87 ) ) AS col2, 83 - - COUNT ( * )
----
55332
84

query I rowsort
SELECT 84 * - + 95 + - + ( + 72 ) + + - 57 + - - 73 * + + 76 * - 31 AS col0
----
-180097

query I rowsort
SELECT DISTINCT - 51 + 5
----
-46

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2811
SELECT ALL 49 - + - ( - CAST( + 62 AS SIGNED ) ) + + 55 * + 31 - 74 + - 7
----
1611

skipif mysql # not compatible
query I rowsort label-2811
SELECT ALL 49 - + - ( - CAST ( + 62 AS INTEGER ) ) + + 55 * + 31 - 74 + - 7
----
1611

query I rowsort
SELECT 27 + + + 73 * - - ( - 67 ) AS col1
----
-4864

onlyif mysql # aggregate syntax: 
query I rowsort label-2813
SELECT 75 + - COUNT( * ) + + COUNT( * ) * 77 * - - 64 col0
----
5002

skipif mysql # not compatible
query I rowsort label-2813
SELECT 75 + - COUNT ( * ) + + COUNT ( * ) * 77 * - - 64 col0
----
5002

onlyif mysql # aggregate syntax: 
query I rowsort label-2814
SELECT DISTINCT COUNT( * ) * + - COUNT( * ) * + 40 * - 55 * - SUM( DISTINCT + - 85 ) AS col1
----
187000

skipif mysql # not compatible
query I rowsort label-2814
SELECT DISTINCT COUNT ( * ) * + - COUNT ( * ) * + 40 * - 55 * - SUM ( DISTINCT + - 85 ) AS col1
----
187000

onlyif mysql # aggregate syntax: 
query I rowsort label-2815
SELECT 62 + + - MAX( 35 )
----
27

skipif mysql # not compatible
query I rowsort label-2815
SELECT 62 + + - MAX ( 35 )
----
27

onlyif mysql # aggregate syntax: 
query II rowsort label-2816
SELECT ALL 52, + COUNT( * ) - 10 AS col0
----
52
-9

skipif mysql # not compatible
query II rowsort label-2816
SELECT ALL 52, + COUNT ( * ) - 10 AS col0
----
52
-9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2817
SELECT CASE + COUNT( * ) WHEN + + 6 * - - COUNT( * ) THEN 48 * - + CAST( + - 18 AS SIGNED ) + + + 29 WHEN - 5 THEN NULL ELSE NULL END + - 87 * 89 + + 29 - CASE + - 95 WHEN COUNT( * ) THEN NULL WHEN + CASE WHEN NULL <= 2 THEN - 95 ELSE NULL END * - - 84 THEN 97 * + - COALESCE ( - 65, + + 51 + - MIN( DISTINCT 33 ), 69 * - 53 ) * + 3 - COUNT( * ) * - 93 END * + 48
----
NULL

skipif mysql # not compatible
query I rowsort label-2817
SELECT CASE + COUNT ( * ) WHEN + + 6 * - - COUNT ( * ) THEN 48 * - + CAST ( + - 18 AS INTEGER ) + + + 29 WHEN - 5 THEN NULL ELSE NULL END + - 87 * 89 + + 29 - CASE + - 95 WHEN COUNT ( * ) THEN NULL WHEN + CASE WHEN NULL <= 2 THEN - 95 ELSE NULL END * - - 84 THEN 97 * + - COALESCE ( - 65, + + 51 + - MIN ( DISTINCT 33 ), 69 * - 53 ) * + 3 - COUNT ( * ) * - 93 END * + 48
----
NULL

query I rowsort
SELECT 81 + + - 0 AS col0
----
81

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2819
SELECT DISTINCT 35 DIV - MAX( ALL - - 49 )
----
0

skipif mysql # not compatible
query I rowsort label-2819
SELECT DISTINCT 35 / - MAX ( ALL - - 49 )
----
0

query I rowsort
SELECT 91 * 96 * + - 38
----
-331968

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

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

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

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

query I rowsort
SELECT ALL + - 7 + + + 8
----
1

query I rowsort
SELECT + COALESCE ( + 17, + + 99 * + 39 )
----
17

query I rowsort
SELECT ALL - 98 * - + 47 AS col0
----
4606

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2826
SELECT DISTINCT - CASE - COUNT( * ) WHEN - ( - - 60 ) / 38 / + NULLIF ( - COUNT( ALL + - 13 ), - 50 ) * 96 + + COUNT( * ) + CAST( + + 81 AS SIGNED ) THEN - 40 * - COUNT( * ) / - 47 + + + 80 WHEN + 69 THEN + 68 * 95 * + - 27 WHEN - CAST( NULL AS SIGNED ) + + 37 THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-2826
SELECT DISTINCT - CASE - COUNT ( * ) WHEN - ( - - 60 ) / 38 / + NULLIF ( - COUNT ( ALL + - 13 ), - 50 ) * 96 + + COUNT ( * ) + CAST ( + + 81 AS INTEGER ) THEN - 40 * - COUNT ( * ) / - 47 + + + 80 WHEN + 69 THEN + 68 * 95 * + - 27 WHEN - CAST ( NULL AS INTEGER ) + + 37 THEN NULL ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2827
SELECT + 64 * - 10 * + - MIN( DISTINCT - - ( 32 ) )
----
20480

skipif mysql # not compatible
query I rowsort label-2827
SELECT + 64 * - 10 * + - MIN ( DISTINCT - - ( 32 ) )
----
20480

onlyif mysql # aggregate syntax: 
query I rowsort label-2828
SELECT ALL - + 28 + + 8 + + 81 * COUNT( * )
----
61

skipif mysql # not compatible
query I rowsort label-2828
SELECT ALL - + 28 + + 8 + + 81 * COUNT ( * )
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-2829
SELECT DISTINCT + + 65 + + COUNT( * ) * 99 + 62
----
226

skipif mysql # not compatible
query I rowsort label-2829
SELECT DISTINCT + + 65 + + COUNT ( * ) * 99 + 62
----
226

query I rowsort
SELECT 56 * - 36
----
-2016

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2831
SELECT ALL + - NULLIF ( + COUNT( * ), 49 ) DIV + 18
----
0

skipif mysql # not compatible
query I rowsort label-2831
SELECT ALL + - NULLIF ( + COUNT ( * ), 49 ) / + 18
----
0

query II rowsort
SELECT + NULLIF ( + 93, 72 ) AS col1, 54
----
93
54

query I rowsort
SELECT DISTINCT + 91 * 5
----
455

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2834
SELECT ALL - - 40 + + COUNT( * ) + + 69 + + 25 * MAX( ALL - 68 ) - 78 DIV - + COALESCE ( + COUNT( * ), - 82, - 19 + + - COUNT( DISTINCT - 72 ) )
----
-1512

skipif mysql # not compatible
query I rowsort label-2834
SELECT ALL - - 40 + + COUNT ( * ) + + 69 + + 25 * MAX ( ALL - 68 ) - 78 / - + COALESCE ( + COUNT ( * ), - 82, - 19 + + - COUNT ( DISTINCT - 72 ) )
----
-1512

query I rowsort
SELECT 25 * + - 33
----
-825

onlyif mysql # aggregate syntax: 
query II rowsort label-2836
SELECT DISTINCT - + COUNT( * ) AS col1, - 63 col2
----
-1
-63

skipif mysql # not compatible
query II rowsort label-2836
SELECT DISTINCT - + COUNT ( * ) AS col1, - 63 col2
----
-1
-63

query I rowsort
SELECT DISTINCT + + 11 * 73 * 41 * - - 2 + + + 51 - + 95 * + 48
----
61337

onlyif mysql # aggregate syntax: 
query III rowsort label-2838
SELECT DISTINCT - 18 AS col0, - 53 * - - 39 * 59, - - COUNT( * ) AS col1
----
-18
-121953
1

skipif mysql # not compatible
query III rowsort label-2838
SELECT DISTINCT - 18 AS col0, - 53 * - - 39 * 59, - - COUNT ( * ) AS col1
----
-18
-121953
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2839
SELECT CASE CASE + + COALESCE ( + 15, + ( - COUNT( * ) ) / - CAST( NULL AS SIGNED ) + 40 + - 18 * - + 85 + - ( + 81 ) ) WHEN - COUNT( 59 ) * + 83 + + 94 THEN + ( - SUM( ALL - ( - - ( - 11 ) ) ) ) WHEN + 10 * + + 36 * - 23 THEN NULL WHEN - + 35 THEN NULL END WHEN - + 3 THEN 50 / - SUM( ALL - 38 ) WHEN 12 THEN NULL END * 35
----
NULL

skipif mysql # not compatible
query I rowsort label-2839
SELECT CASE CASE + + COALESCE ( + 15, + ( - COUNT ( * ) ) / - CAST ( NULL AS INTEGER ) + 40 + - 18 * - + 85 + - ( + 81 ) ) WHEN - COUNT ( 59 ) * + 83 + + 94 THEN + ( - SUM ( ALL - ( - - ( - 11 ) ) ) ) WHEN + 10 * + + 36 * - 23 THEN NULL WHEN - + 35 THEN NULL END WHEN - + 3 THEN 50 / - SUM ( ALL - 38 ) WHEN 12 THEN NULL END * 35
----
NULL

onlyif mysql # aggregate syntax: 
query III rowsort label-2840
SELECT 28 AS col1, + COUNT( * ) AS col1, + - 95 col0
----
28
1
-95

skipif mysql # not compatible
query III rowsort label-2840
SELECT 28 AS col1, + COUNT ( * ) AS col1, + - 95 col0
----
28
1
-95

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2841
SELECT 30 + + ( - - SUM( + CAST( - 93 AS SIGNED ) ) ) + + COUNT( * ) - + COUNT( * )
----
-63

skipif mysql # not compatible
query I rowsort label-2841
SELECT 30 + + ( - - SUM ( + CAST ( - 93 AS INTEGER ) ) ) + + COUNT ( * ) - + COUNT ( * )
----
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-2842
SELECT COUNT( * ) * - + 91 + - ( - NULLIF ( SUM( ALL - 99 ), 2 ) )
----
-190

skipif mysql # not compatible
query I rowsort label-2842
SELECT COUNT ( * ) * - + 91 + - ( - NULLIF ( SUM ( ALL - 99 ), 2 ) )
----
-190

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

skipif mysql # not compatible
query I rowsort label-2843
SELECT ( - COUNT ( * ) ) / 8
----
0

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2845
SELECT ALL 37 DIV 42 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-2845
SELECT ALL 37 / 42 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2846
SELECT ( + 83 ) - COUNT( * ) - - - 80
----
2

skipif mysql # not compatible
query I rowsort label-2846
SELECT ( + 83 ) - COUNT ( * ) - - - 80
----
2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2847
SELECT ALL AVG ( - CASE 98 WHEN + 37 THEN NULL WHEN + CAST( NULL AS SIGNED ) + + 74 / + 93 * + + ( 38 ) THEN - CAST( - - 10 AS SIGNED ) / 51 + + - 1 WHEN + 71 THEN NULL END ) * + 0 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2847
SELECT ALL AVG ( - CASE 98 WHEN + 37 THEN NULL WHEN + CAST ( NULL AS INTEGER ) + + 74 / + 93 * + + ( 38 ) THEN - CAST ( - - 10 AS INTEGER ) / 51 + + - 1 WHEN + 71 THEN NULL END ) * + 0 AS col1
----
NULL

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2849
SELECT ALL 1 DIV - 51 DIV 24 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2849
SELECT ALL 1 / - 51 / 24 AS col0
----
0

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

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

query I rowsort
SELECT ALL 23 + + 81 * + - 10
----
-787

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2852
SELECT 53 - - - CAST( COALESCE ( 94, 74 / - - 59 + + AVG ( + 84 ) + COUNT( * ), 96 / - 1 * + 30 ) AS SIGNED )
----
-41

skipif mysql # not compatible
query I rowsort label-2852
SELECT 53 - - - CAST ( COALESCE ( 94, 74 / - - 59 + + AVG ( + 84 ) + COUNT ( * ), 96 / - 1 * + 30 ) AS INTEGER )
----
-41

query II rowsort
SELECT ALL 71 AS col1, 52
----
71
52

query I rowsort
SELECT ALL + 69 + 10 AS col0
----
79

onlyif mysql # aggregate syntax: 
query II rowsort label-2855
SELECT ALL COUNT( * ) AS col1, COALESCE ( 85, COUNT( - 57 ) )
----
1
85

skipif mysql # not compatible
query II rowsort label-2855
SELECT ALL COUNT ( * ) AS col1, COALESCE ( 85, COUNT ( - 57 ) )
----
1
85

onlyif mysql # aggregate syntax: 
query II rowsort label-2856
SELECT ALL - 89 + 0 + - COUNT( * ) * + + CASE + 69 WHEN - 26 THEN NULL WHEN + COUNT( * ) THEN 58 WHEN - 97 THEN - - 5 END * COUNT( * ) + + 57 + + 91 + - - ( + COALESCE ( 69, 7 + - 37 + 38 - - COUNT( * ) + + + 78 ) ) + + 92 * ( - 57 ), + 40 AS col2
----
NULL
40

skipif mysql # not compatible
query II rowsort label-2856
SELECT ALL - 89 + 0 + - COUNT ( * ) * + + CASE + 69 WHEN - 26 THEN NULL WHEN + COUNT ( * ) THEN 58 WHEN - 97 THEN - - 5 END * COUNT ( * ) + + 57 + + 91 + - - ( + COALESCE ( 69, 7 + - 37 + 38 - - COUNT ( * ) + + + 78 ) ) + + 92 * ( - 57 ), + 40 AS col2
----
NULL
40

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2857
SELECT ALL ( - - 56 ) + CASE 13 WHEN - NULLIF ( + + 57, + 0 - COUNT( + 25 ) + + 42 + - 46 + + CAST( NULL AS SIGNED ) - - 9 * ( - COALESCE ( 11, MAX( DISTINCT - + 36 ) - + 35 ) ) * - + 44 + + CASE - 85 WHEN + 82 THEN + + COUNT( * ) ELSE NULL END * ( 82 ) * - ( ( CAST( NULL AS SIGNED ) ) ) * - ( - 49 ) ) THEN + 23 / 53 ELSE NULL END + + MAX( ALL + 4 + 56 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2857
SELECT ALL ( - - 56 ) + CASE 13 WHEN - NULLIF ( + + 57, + 0 - COUNT ( + 25 ) + + 42 + - 46 + + CAST ( NULL AS INTEGER ) - - 9 * ( - COALESCE ( 11, MAX ( DISTINCT - + 36 ) - + 35 ) ) * - + 44 + + CASE - 85 WHEN + 82 THEN + + COUNT ( * ) ELSE NULL END * ( 82 ) * - ( ( CAST ( NULL AS INTEGER ) ) ) * - ( - 49 ) ) THEN + 23 / 53 ELSE NULL END + + MAX ( ALL + 4 + 56 )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2858
SELECT 91 * CAST( NULL AS SIGNED ) / - - 29
----
NULL

skipif mysql # not compatible
query I rowsort label-2858
SELECT 91 * CAST ( NULL AS INTEGER ) / - - 29
----
NULL

query I rowsort
SELECT ALL + 86 * + 44 AS col2
----
3784

onlyif mysql # aggregate syntax: 
query I rowsort label-2860
SELECT COUNT( * ) + + + 8 + - 50 * 26 * - COALESCE ( + 60, - 11 + + 18 )
----
78009

skipif mysql # not compatible
query I rowsort label-2860
SELECT COUNT ( * ) + + + 8 + - 50 * 26 * - COALESCE ( + 60, - 11 + + 18 )
----
78009

onlyif mysql # DIV for integer division: 
query II rowsort label-2861
SELECT ALL 45 * - 26, - 92 * 31 DIV 53 + + 4 AS col1
----
-1170
-49

skipif mysql # not compatible
query II rowsort label-2861
SELECT ALL 45 * - 26, - 92 * 31 / 53 + + 4 AS col1
----
-1170
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-2862
SELECT 71 + - COUNT( * ) + COUNT( * ) + - 64 * 51
----
-3193

skipif mysql # not compatible
query I rowsort label-2862
SELECT 71 + - COUNT ( * ) + COUNT ( * ) + - 64 * 51
----
-3193

query I rowsort
SELECT + + 31 * + 34
----
1054

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2864
SELECT - 17 * + 82 + 72 + + 1 AS col0, - ( COUNT( DISTINCT + 18 ) ) DIV - - 71 + - + NULLIF ( + 47, 95 + - 71 )
----
-1321
-47

skipif mysql # not compatible
query II rowsort label-2864
SELECT - 17 * + 82 + 72 + + 1 AS col0, - ( COUNT ( DISTINCT + 18 ) ) / - - 71 + - + NULLIF ( + 47, 95 + - 71 )
----
-1321
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-2865
SELECT ALL - + 46 * COUNT( ALL - 71 ) * - + 75 - - 41 + - COUNT( - 14 ) - + 29 AS col1
----
3461

skipif mysql # not compatible
query I rowsort label-2865
SELECT ALL - + 46 * COUNT ( ALL - 71 ) * - + 75 - - 41 + - COUNT ( - 14 ) - + 29 AS col1
----
3461

onlyif mysql # aggregate syntax: 
query I rowsort label-2866
SELECT ALL - 93 * - 82 + 23 * + + SUM( ALL - - 45 ) * - 85 AS col2
----
-80349

skipif mysql # not compatible
query I rowsort label-2866
SELECT ALL - 93 * - 82 + 23 * + + SUM ( ALL - - 45 ) * - 85 AS col2
----
-80349

query II rowsort
SELECT + 1, - 56 AS col2
----
1
-56

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2869
SELECT COUNT( * ) col2, 81 * + 3 * + - 98 * + 55 * + ( - - 34 ) AS col0
----
1
-44532180

skipif mysql # not compatible
query II rowsort label-2869
SELECT COUNT ( * ) col2, 81 * + 3 * + - 98 * + 55 * + ( - - 34 ) AS col0
----
1
-44532180

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2870
SELECT - ( - + 69 ) + - + 29 + - COUNT( * ) * + 45 - + - 63 DIV + ( 77 )
----
-5

skipif mysql # not compatible
query I rowsort label-2870
SELECT - ( - + 69 ) + - + 29 + - COUNT ( * ) * + 45 - + - 63 / + ( 77 )
----
-5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2871
SELECT + ( - 84 ) DIV + + 33 * - COUNT( * ) + - CAST( - 50 AS SIGNED ) DIV + 56 + - 52
----
-50

skipif mysql # not compatible
query I rowsort label-2871
SELECT + ( - 84 ) / + + 33 * - COUNT ( * ) + - CAST ( - 50 AS INTEGER ) / + 56 + - 52
----
-50

query I rowsort
SELECT - - 15 * 84
----
1260

query I rowsort
SELECT + 73 * ( - 55 )
----
-4015

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2874
SELECT DISTINCT - 20 / 44 * - CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-2874
SELECT DISTINCT - 20 / 44 * - CAST ( NULL AS REAL )
----
NULL

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2876
SELECT - 25 DIV + NULLIF ( - 82, - 49 ) col2
----
0

skipif mysql # not compatible
query I rowsort label-2876
SELECT - 25 / + NULLIF ( - 82, - 49 ) col2
----
0

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-2877
SELECT ALL + 48 * + CAST( + CAST( NULL AS DECIMAL ) AS SIGNED ), + 75 AS col0
----
NULL
75

skipif mysql # not compatible
query II rowsort label-2877
SELECT ALL + 48 * + CAST ( + CAST ( NULL AS REAL ) AS INTEGER ), + 75 AS col0
----
NULL
75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2878
SELECT - NULLIF ( + NULLIF ( - COUNT( * ), + 71 ), CAST( NULL AS SIGNED ) - - - 37 ) * - 28
----
-28

skipif mysql # not compatible
query I rowsort label-2878
SELECT - NULLIF ( + NULLIF ( - COUNT ( * ), + 71 ), CAST ( NULL AS INTEGER ) - - - 37 ) * - 28
----
-28

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2879
SELECT ALL + CASE - CAST( 74 AS SIGNED ) WHEN - 28 * - 68 THEN NULL ELSE + 99 * - ( - MIN( ALL - - 3 ) ) END
----
297

skipif mysql # not compatible
query I rowsort label-2879
SELECT ALL + CASE - CAST ( 74 AS INTEGER ) WHEN - 28 * - 68 THEN NULL ELSE + 99 * - ( - MIN ( ALL - - 3 ) ) END
----
297

onlyif mysql # aggregate syntax: 
query II rowsort label-2880
SELECT - NULLIF ( + - 94, + 20 - - 54 ) + + - 89 AS col1, + 32 * - + COUNT( * )
----
5
-32

skipif mysql # not compatible
query II rowsort label-2880
SELECT - NULLIF ( + - 94, + 20 - - 54 ) + + - 89 AS col1, + 32 * - + COUNT ( * )
----
5
-32

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2881
SELECT ALL NULLIF ( + NULLIF ( 97, - - CAST( NULL AS SIGNED ) * 76 ), + 15 ) AS col2
----
97

skipif mysql # not compatible
query I rowsort label-2881
SELECT ALL NULLIF ( + NULLIF ( 97, - - CAST ( NULL AS INTEGER ) * 76 ), + 15 ) AS col2
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-2882
SELECT - CASE - 29 WHEN 69 THEN NULL ELSE - + COUNT( * ) * 12 * - + 12 + 81 END + - 53 AS col0
----
-278

skipif mysql # not compatible
query I rowsort label-2882
SELECT - CASE - 29 WHEN 69 THEN NULL ELSE - + COUNT ( * ) * 12 * - + 12 + 81 END + - 53 AS col0
----
-278

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2883
SELECT - MAX( DISTINCT - 17 ) + + - 52 + CAST( NULL AS SIGNED ) * - + 77 - + + 61
----
NULL

skipif mysql # not compatible
query I rowsort label-2883
SELECT - MAX ( DISTINCT - 17 ) + + - 52 + CAST ( NULL AS INTEGER ) * - + 77 - + + 61
----
NULL

query I rowsort
SELECT - 36 + + 30 * - + 64
----
-1956

query I rowsort
SELECT + 41 * - 12 * + 46
----
-22632

query I rowsort
SELECT ALL 47 + - 13 AS col2
----
34

query I rowsort
SELECT - NULLIF ( - 78, 90 * - - 69 ) + + 9 + + 76
----
163

query I rowsort
SELECT ALL NULLIF ( + 74, + - 33 * + 66 ) AS col0
----
74

query I rowsort
SELECT DISTINCT - ( - 80 ) * + 48 * + 7
----
26880

onlyif mysql # aggregate syntax: 
query I rowsort label-2890
SELECT + COUNT( * ) + - 80
----
-79

skipif mysql # not compatible
query I rowsort label-2890
SELECT + COUNT ( * ) + - 80
----
-79

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

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

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

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

query I rowsort
SELECT DISTINCT - 15 * 20 * + 13
----
-3900

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

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

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

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

query I rowsort
SELECT + + 46 + - 98
----
-52

query II rowsort
SELECT + 22 * + + 6 AS col0, ( 64 )
----
132
64

onlyif mysql # DIV for integer division: 
query I rowsort label-2898
SELECT ALL + 65 DIV 21 - + + 63 AS col2
----
-60

skipif mysql # not compatible
query I rowsort label-2898
SELECT ALL + 65 / 21 - + + 63 AS col2
----
-60

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

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

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

query I rowsort
SELECT + - 19 * - 54 AS col0
----
1026

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2902
SELECT + - 50 - - + 81 / - 60 / CASE - 29 WHEN - 17 THEN 23 + + 80 * + COUNT( * ) + + - 67 ELSE + - CAST( AVG ( + - 91 ) AS SIGNED ) - CAST( NULL AS SIGNED ) END + + 39 + - 16 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2902
SELECT + - 50 - - + 81 / - 60 / CASE - 29 WHEN - 17 THEN 23 + + 80 * + COUNT ( * ) + + - 67 ELSE + - CAST ( AVG ( + - 91 ) AS INTEGER ) - CAST ( NULL AS INTEGER ) END + + 39 + - 16 AS col2
----
NULL

query II rowsort
SELECT + - CASE - 94 WHEN + - ( 14 ) / + ( - - 68 ) THEN NULL ELSE + - 13 END AS col1, ( + 35 ) col2
----
13
35

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2905
SELECT COALESCE ( NULLIF ( 78, + - 22 + 96 + 72 * - 5 * CASE CAST( - 74 AS SIGNED ) WHEN - + 11 / 2 THEN NULL WHEN + + MAX( ALL + 7 ) THEN 1 / - 95 - + + 15 END ), + 72 * - + 90, - NULLIF ( - 52, - CAST( NULL AS SIGNED ) * + MAX( 89 ) ) )
----
78

skipif mysql # not compatible
query I rowsort label-2905
SELECT COALESCE ( NULLIF ( 78, + - 22 + 96 + 72 * - 5 * CASE CAST ( - 74 AS INTEGER ) WHEN - + 11 / 2 THEN NULL WHEN + + MAX ( ALL + 7 ) THEN 1 / - 95 - + + 15 END ), + 72 * - + 90, - NULLIF ( - 52, - CAST ( NULL AS INTEGER ) * + MAX ( 89 ) ) )
----
78

query I rowsort
SELECT + 24 * + + 73
----
1752

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2907
SELECT - 55 * - + CAST( NULL AS SIGNED ) * + 43 AS col2, 47
----
NULL
47

skipif mysql # not compatible
query II rowsort label-2907
SELECT - 55 * - + CAST ( NULL AS INTEGER ) * + 43 AS col2, 47
----
NULL
47

query I rowsort
SELECT DISTINCT 61 * 86
----
5246

query I rowsort
SELECT ALL 90 * - 83 AS col2
----
-7470

query I rowsort
SELECT DISTINCT + COALESCE ( - + 99, - + 36 + + 48, - 49 )
----
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-2911
SELECT 70 * + 19 * + 58 + COUNT( * ) + + 59 AS col1
----
77200

skipif mysql # not compatible
query I rowsort label-2911
SELECT 70 * + 19 * + 58 + COUNT ( * ) + + 59 AS col1
----
77200

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2912
SELECT - MIN( DISTINCT - CAST( NULL AS DECIMAL ) ) / - COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2912
SELECT - MIN ( DISTINCT - CAST ( NULL AS REAL ) ) / - COUNT ( * ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2913
SELECT + NULLIF ( + COALESCE ( ( - + 4 ), 81 ), + - 81 - 21 ) + - + 60 * + COUNT( * )
----
-64

skipif mysql # not compatible
query I rowsort label-2913
SELECT + NULLIF ( + COALESCE ( ( - + 4 ), 81 ), + - 81 - 21 ) + - + 60 * + COUNT ( * )
----
-64

query I rowsort
SELECT ALL + COALESCE ( + - 92, + 78 * + 3 )
----
-92

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2915
SELECT + NULLIF ( + 9, CAST( CAST( NULL AS SIGNED ) AS SIGNED ) ) * - MAX( ALL - 62 ) + + 99 - - COUNT( * )
----
658

skipif mysql # not compatible
query I rowsort label-2915
SELECT + NULLIF ( + 9, CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) ) * - MAX ( ALL - 62 ) + + 99 - - COUNT ( * )
----
658

onlyif mysql # aggregate syntax: 
query I rowsort label-2916
SELECT NULLIF ( - 17, - 50 * - 58 + - COALESCE ( 83, 17 / - - 35 + - + 41, - COUNT( * ) * - ( 47 ) + + 1 + 84, - 84 ) )
----
-17

skipif mysql # not compatible
query I rowsort label-2916
SELECT NULLIF ( - 17, - 50 * - 58 + - COALESCE ( 83, 17 / - - 35 + - + 41, - COUNT ( * ) * - ( 47 ) + + 1 + 84, - 84 ) )
----
-17

query I rowsort
SELECT - 42 + + 15
----
-27

query I rowsort
SELECT ALL 30 * 22 + 21 * + + 81
----
2361

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2920
SELECT ALL - 11 * - 10 + 27 + - COUNT( * ) + - 75 AS col1
----
61

skipif mysql # not compatible
query I rowsort label-2920
SELECT ALL - 11 * - 10 + 27 + - COUNT ( * ) + - 75 AS col1
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-2921
SELECT ALL 73 * 97 + COUNT( * ) + + + 66 AS col2
----
7148

skipif mysql # not compatible
query I rowsort label-2921
SELECT ALL 73 * 97 + COUNT ( * ) + + + 66 AS col2
----
7148

query I rowsort
SELECT ALL - 18 * - ( 89 ) * + ( 60 ) col1
----
96120

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2923
SELECT DISTINCT + 27 + - 31 + CAST( NULL AS SIGNED ) - + MIN( + 57 ) / 58 + + 40
----
NULL

skipif mysql # not compatible
query I rowsort label-2923
SELECT DISTINCT + 27 + - 31 + CAST ( NULL AS INTEGER ) - + MIN ( + 57 ) / 58 + + 40
----
NULL

query I rowsort
SELECT ALL - + 88 + + 87
----
-1

query I rowsort
SELECT - - 56 - - ( + - COALESCE ( - 51, + 62, - + 76 ) ) col1
----
107

query I rowsort
SELECT COALESCE ( + + 82, - 75 + + 36 )
----
82

query I rowsort
SELECT DISTINCT + 28 - 15 * - 52 * + 48
----
37468

query I rowsort
SELECT DISTINCT + 67 - - 54 * - + 49 AS col1
----
-2579

onlyif mysql # aggregate syntax: 
query I rowsort label-2929
SELECT DISTINCT + COUNT( * ) * + + 98 * 38 * - + 32 + + + 24 AS col1
----
-119144

skipif mysql # not compatible
query I rowsort label-2929
SELECT DISTINCT + COUNT ( * ) * + + 98 * 38 * - + 32 + + + 24 AS col1
----
-119144

onlyif mysql # aggregate syntax: 
query I rowsort label-2930
SELECT NULLIF ( + COUNT( * ), ( 0 ) ) - - + 25 AS col2
----
26

skipif mysql # not compatible
query I rowsort label-2930
SELECT NULLIF ( + COUNT ( * ), ( 0 ) ) - - + 25 AS col2
----
26

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

skipif mysql # not compatible
query I rowsort label-2931
SELECT ALL + + COUNT ( * ) - 22 AS col0
----
-21

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2932
SELECT - 42 * CAST( - 58 AS SIGNED )
----
2436

skipif mysql # not compatible
query I rowsort label-2932
SELECT - 42 * CAST ( - 58 AS INTEGER )
----
2436

query I rowsort
SELECT DISTINCT + + 4 * 74 col1
----
296

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2934
SELECT + ( - - COUNT( * ) ) DIV 96 DIV 78 + + CASE COUNT( * ) WHEN SUM( - 0 ) * + 96 + 38 THEN NULL ELSE COUNT( * ) END * 98 + - - 88 - - + 16
----
202

skipif mysql # not compatible
query I rowsort label-2934
SELECT + ( - - COUNT ( * ) ) / 96 / 78 + + CASE COUNT ( * ) WHEN SUM ( - 0 ) * + 96 + 38 THEN NULL ELSE COUNT ( * ) END * 98 + - - 88 - - + 16
----
202

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2935
SELECT - CAST( NULL AS SIGNED ) / - - SUM( DISTINCT 25 ) * - + 36 * - 58 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2935
SELECT - CAST ( NULL AS INTEGER ) / - - SUM ( DISTINCT 25 ) * - + 36 * - 58 AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2936
SELECT 30 * - + 10 + - 5 * - CASE + 53 WHEN 47 THEN - - 92 + + 90 WHEN + 72 THEN NULL WHEN + - 77 * 12 * 83 * 2 + - MIN( ALL - 41 ) - + - CAST( NULL AS SIGNED ) THEN - 50 ELSE NULL END + + CAST( NULL AS DECIMAL ) * 67 * + 79 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2936
SELECT 30 * - + 10 + - 5 * - CASE + 53 WHEN 47 THEN - - 92 + + 90 WHEN + 72 THEN NULL WHEN + - 77 * 12 * 83 * 2 + - MIN ( ALL - 41 ) - + - CAST ( NULL AS INTEGER ) THEN - 50 ELSE NULL END + + CAST ( NULL AS REAL ) * 67 * + 79 AS col1
----
NULL

query I rowsort
SELECT 33 * - 24
----
-792

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2939
SELECT ALL 73 + COUNT( * ) + - 6
----
68

skipif mysql # not compatible
query I rowsort label-2939
SELECT ALL 73 + COUNT ( * ) + - 6
----
68

onlyif mysql # aggregate syntax: 
query II rowsort label-2940
SELECT CASE 92 WHEN - 62 THEN + + 55 WHEN - 89 THEN + 77 END / SUM( ALL + 88 ) * - SUM( DISTINCT + + 22 ) * 45 + + - 71 + MIN( 16 ) AS col0, + 87
----
NULL
87

skipif mysql # not compatible
query II rowsort label-2940
SELECT CASE 92 WHEN - 62 THEN + + 55 WHEN - 89 THEN + 77 END / SUM ( ALL + 88 ) * - SUM ( DISTINCT + + 22 ) * 45 + + - 71 + MIN ( 16 ) AS col0, + 87
----
NULL
87

query I rowsort
SELECT 72 * + - 59 * - 51
----
216648

query I rowsort
SELECT ALL 78 + ( 74 ) AS col0
----
152

query I rowsort
SELECT 10 + - 22 AS col2
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-2944
SELECT ALL 7 * - + COUNT( * ) * - 90 * ( + 92 ) AS col0
----
57960

skipif mysql # not compatible
query I rowsort label-2944
SELECT ALL 7 * - + COUNT ( * ) * - 90 * ( + 92 ) AS col0
----
57960

query I rowsort
SELECT DISTINCT 77 + 7
----
84

query I rowsort
SELECT DISTINCT 36 + - 72
----
-36

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2948
SELECT 87 + - 72 + CAST( NULL AS SIGNED ) * COUNT( * ) * 80
----
NULL

skipif mysql # not compatible
query I rowsort label-2948
SELECT 87 + - 72 + CAST ( NULL AS INTEGER ) * COUNT ( * ) * 80
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-2949
SELECT 41 * + 18 - - 86 - + 92 AS col1, - ( - 42 ) DIV - + 43 + 76 AS col2
----
732
76

skipif mysql # not compatible
query II rowsort label-2949
SELECT 41 * + 18 - - 86 - + 92 AS col1, - ( - 42 ) / - + 43 + 76 AS col2
----
732
76

onlyif mysql # aggregate syntax: 
query I rowsort label-2950
SELECT - 15 * - 33 * + + 93 * - + COUNT( * ) AS col2
----
-46035

skipif mysql # not compatible
query I rowsort label-2950
SELECT - 15 * - 33 * + + 93 * - + COUNT ( * ) AS col2
----
-46035

onlyif mysql # DIV for integer division: 
query II rowsort label-2951
SELECT 30 + - + 3, + 24 DIV - + 39 AS col0
----
27
0

skipif mysql # not compatible
query II rowsort label-2951
SELECT 30 + - + 3, + 24 / - + 39 AS col0
----
27
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2952
SELECT - NULLIF ( - + 25, COUNT( * ) + - 49 ) - - - 74 + - 54 AS col1
----
-103

skipif mysql # not compatible
query I rowsort label-2952
SELECT - NULLIF ( - + 25, COUNT ( * ) + - 49 ) - - - 74 + - 54 AS col1
----
-103

onlyif mysql # aggregate syntax: 
query I rowsort label-2953
SELECT 20 + - SUM( DISTINCT - 57 )
----
77

skipif mysql # not compatible
query I rowsort label-2953
SELECT 20 + - SUM ( DISTINCT - 57 )
----
77

query II rowsort
SELECT 7 + - 8, + 70 AS col0
----
-1
70

onlyif mysql # aggregate syntax: 
query I rowsort label-2955
SELECT - 81 * + - 22 + 94 - - MAX( 41 )
----
1917

skipif mysql # not compatible
query I rowsort label-2955
SELECT - 81 * + - 22 + 94 - - MAX ( 41 )
----
1917

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2956
SELECT ALL + COUNT( - 6 ) DIV - 86 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-2956
SELECT ALL + COUNT ( - 6 ) / - 86 AS col2
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2957
SELECT ALL + ( + CASE + 44 WHEN SUM( - - 85 ) THEN NULL WHEN 9 THEN NULL ELSE - ( - 79 ) * - 65 DIV - 40 END ) DIV - 68
----
-1

skipif mysql # not compatible
query I rowsort label-2957
SELECT ALL + ( + CASE + 44 WHEN SUM ( - - 85 ) THEN NULL WHEN 9 THEN NULL ELSE - ( - 79 ) * - 65 / - 40 END ) / - 68
----
-1

query II rowsort
SELECT ALL - 75 * + 42 * + 93 * 18 AS col2, - 30 AS col2
----
-5273100
-30

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2959
SELECT ALL + COALESCE ( + NULLIF ( + 96, - 68 DIV 52 + - - 55 DIV - 27 ), 78 * - - 71, 41 * - 87 - - COUNT( * ) + 17 + - 62 DIV - - 55 * CAST( NULL AS SIGNED ) * + + 93 * - + 97 * - + 72 )
----
96

skipif mysql # not compatible
query I rowsort label-2959
SELECT ALL + COALESCE ( + NULLIF ( + 96, - 68 / 52 + - - 55 / - 27 ), 78 * - - 71, 41 * - 87 - - COUNT ( * ) + 17 + - 62 / - - 55 * CAST ( NULL AS INTEGER ) * + + 93 * - + 97 * - + 72 )
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-2960
SELECT DISTINCT - + COUNT( DISTINCT - + NULLIF ( + 21, + - 65 ) ) * + 63 + + 83 * 16 * - 70 + 92
----
-92931

skipif mysql # not compatible
query I rowsort label-2960
SELECT DISTINCT - + COUNT ( DISTINCT - + NULLIF ( + 21, + - 65 ) ) * + 63 + + 83 * 16 * - 70 + 92
----
-92931

onlyif mysql # aggregate syntax: 
query II rowsort label-2961
SELECT 48 * - - 3, COUNT( * ) AS col1
----
144
1

skipif mysql # not compatible
query II rowsort label-2961
SELECT 48 * - - 3, COUNT ( * ) AS col1
----
144
1

query I rowsort
SELECT 69 + - + ( - + 27 ) AS col0
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-2963
SELECT - - COUNT( - 47 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-2963
SELECT - - COUNT ( - 47 ) AS col2
----
1

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

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2966
SELECT ALL - COALESCE ( - + 26, - - NULLIF ( + 74, 46 / - - CAST( NULL AS DECIMAL ) ) )
----
26

skipif mysql # not compatible
query I rowsort label-2966
SELECT ALL - COALESCE ( - + 26, - - NULLIF ( + 74, 46 / - - CAST ( NULL AS REAL ) ) )
----
26

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2967
SELECT COUNT( - CAST( ( - 28 ) AS SIGNED ) ) DIV - MAX( ALL + + 45 )
----
0

skipif mysql # not compatible
query I rowsort label-2967
SELECT COUNT ( - CAST ( ( - 28 ) AS INTEGER ) ) / - MAX ( ALL + + 45 )
----
0

onlyif mysql # aggregate syntax: 
query III rowsort label-2968
SELECT + 27 col0, - SUM( ALL 42 ) AS col2, + 48 + - - ( - 58 ) AS col2
----
27
-42
-10

skipif mysql # not compatible
query III rowsort label-2968
SELECT + 27 col0, - SUM ( ALL 42 ) AS col2, + 48 + - - ( - 58 ) AS col2
----
27
-42
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-2969
SELECT ALL COUNT( * ) * 82 + 26 AS col1
----
108

skipif mysql # not compatible
query I rowsort label-2969
SELECT ALL COUNT ( * ) * 82 + 26 AS col1
----
108

query I rowsort
SELECT 55 - 21
----
34

onlyif mysql # DIV for integer division: 
query I rowsort label-2971
SELECT 62 DIV - 4
----
-15

skipif mysql # not compatible
query I rowsort label-2971
SELECT 62 / - 4
----
-15

query I rowsort
SELECT ALL 31 * 16 AS col0
----
496

query I rowsort
SELECT 7 + - - 28 - + 27
----
8

query I rowsort
SELECT DISTINCT + 72 + - + 81 + + - ( 82 )
----
-91

query I rowsort
SELECT ALL - 17 * - 88
----
1496

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2976
SELECT 45 DIV - 98 * - COUNT( * ) + + + 73 * MIN( - 26 ) AS col2
----
-1898

skipif mysql # not compatible
query I rowsort label-2976
SELECT 45 / - 98 * - COUNT ( * ) + + + 73 * MIN ( - 26 ) AS col2
----
-1898

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2977
SELECT DISTINCT - NULLIF ( + MIN( ALL 86 ), + COUNT( * ) * CAST( + - 98 AS SIGNED ) ) AS col2
----
-86

skipif mysql # not compatible
query I rowsort label-2977
SELECT DISTINCT - NULLIF ( + MIN ( ALL 86 ), + COUNT ( * ) * CAST ( + - 98 AS INTEGER ) ) AS col2
----
-86

query I rowsort
SELECT 80 * + 88 AS col2
----
7040

query I rowsort
SELECT DISTINCT 23 - - 27 + - 36 + - - 88
----
102

onlyif mysql # aggregate syntax: 
query I rowsort label-2980
SELECT 90 + + ( + - COUNT( * ) ) + + 34 AS col0
----
123

skipif mysql # not compatible
query I rowsort label-2980
SELECT 90 + + ( + - COUNT ( * ) ) + + 34 AS col0
----
123

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2981
SELECT 45 * - - CASE + 51 WHEN + + 89 + + ( - CAST( NULL AS SIGNED ) ) - + 25 * 82 THEN NULL WHEN - - 12 - - + COALESCE ( 8, AVG ( - 21 ) ) THEN 32 * + 36 - - 20 / + 3 + + CASE 24 WHEN - + 34 THEN NULL ELSE + + ( - 76 ) END - - 22 + - - 74 + + 55 * + + 98 * - 15 * - - 50 ELSE NULL END + - 46 + - 55
----
NULL

skipif mysql # not compatible
query I rowsort label-2981
SELECT 45 * - - CASE + 51 WHEN + + 89 + + ( - CAST ( NULL AS INTEGER ) ) - + 25 * 82 THEN NULL WHEN - - 12 - - + COALESCE ( 8, AVG ( - 21 ) ) THEN 32 * + 36 - - 20 / + 3 + + CASE 24 WHEN - + 34 THEN NULL ELSE + + ( - 76 ) END - - 22 + - - 74 + + 55 * + + 98 * - 15 * - - 50 ELSE NULL END + - 46 + - 55
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2983
SELECT + + 59 + - 75 * + MAX( ALL + + 3 ) AS col1
----
-166

skipif mysql # not compatible
query I rowsort label-2983
SELECT + + 59 + - 75 * + MAX ( ALL + + 3 ) AS col1
----
-166

query II rowsort
SELECT - + 91 col1, - 19 + + + 72
----
-91
53

query I rowsort
SELECT DISTINCT - 26 * - - 58 + + ( 78 )
----
-1430

onlyif mysql # aggregate syntax: 
query I rowsort label-2986
SELECT DISTINCT COUNT( * ) - 9
----
-8

skipif mysql # not compatible
query I rowsort label-2986
SELECT DISTINCT COUNT ( * ) - 9
----
-8

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2988
SELECT + 45 DIV + 34 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-2988
SELECT + 45 / + 34 AS col1
----
1

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2990
SELECT 1, 97 + - ( 19 ) * + + ( - - NULLIF ( - 57, + + COUNT( * ) ) ) * - + 76 + + + 12 AS col2
----
1
-82199

skipif mysql # not compatible
query II rowsort label-2990
SELECT 1, 97 + - ( 19 ) * + + ( - - NULLIF ( - 57, + + COUNT ( * ) ) ) * - + 76 + + + 12 AS col2
----
1
-82199

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

skipif mysql # not compatible
query I rowsort label-2991
SELECT + + CAST ( NULL AS INTEGER ) * 50 + - + 88
----
NULL

query II rowsort
SELECT ALL 10 col1, 83 col0
----
10
83

query II rowsort
SELECT ALL - 50 AS col0, NULLIF ( + ( + + 23 ), 72 ) AS col2
----
-50
23

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

skipif mysql # not compatible
query I rowsort label-2994
SELECT - - MAX ( + 40 )
----
40

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

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

query II rowsort
SELECT - 22 AS col0, + 27 * - 12
----
-22
-324

query I rowsort
SELECT ALL - 57 + - - 79 + + 84 AS col2
----
106

onlyif mysql # DIV for integer division: 
query I rowsort label-2998
SELECT 21 DIV + 73 * 25 DIV - - 64 + - + ( - 8 ) - - 40 AS col1
----
48

skipif mysql # not compatible
query I rowsort label-2998
SELECT 21 / + 73 * 25 / - - 64 + - + ( - 8 ) - - 40 AS col1
----
48

query II rowsort
SELECT + ( 92 ) AS col0, + 88
----
92
88

query II rowsort
SELECT DISTINCT + 39 AS col1, + 40 AS col2
----
39
40

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3001
SELECT DISTINCT 60 * + CAST( NULL AS SIGNED ) / + + 67 * 6
----
NULL

skipif mysql # not compatible
query I rowsort label-3001
SELECT DISTINCT 60 * + CAST ( NULL AS INTEGER ) / + + 67 * 6
----
NULL

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3003
SELECT ALL + COALESCE ( - 96, 65 + CAST( 73 AS SIGNED ) )
----
-96

skipif mysql # not compatible
query I rowsort label-3003
SELECT ALL + COALESCE ( - 96, 65 + CAST ( 73 AS INTEGER ) )
----
-96

query II rowsort
SELECT + 93 AS col1, 54
----
93
54

onlyif mysql # DIV for integer division: 
query I rowsort label-3005
SELECT 58 DIV 17 + - 54
----
-51

skipif mysql # not compatible
query I rowsort label-3005
SELECT 58 / 17 + - 54
----
-51

onlyif mysql # aggregate syntax: 
query II rowsort label-3006
SELECT ALL + 71 AS col0, + MIN( ALL - + ( - + 28 ) ) * - + NULLIF ( + 96, 25 ) + - + COUNT( + ( 75 ) )
----
71
-2689

skipif mysql # not compatible
query II rowsort label-3006
SELECT ALL + 71 AS col0, + MIN ( ALL - + ( - + 28 ) ) * - + NULLIF ( + 96, 25 ) + - + COUNT ( + ( 75 ) )
----
71
-2689

query II rowsort
SELECT + 48, 36 + 47 AS col2
----
48
83

onlyif mysql # aggregate syntax: 
query I rowsort label-3008
SELECT - 42 + - 1 + COUNT( * ) * - COUNT( DISTINCT + 83 )
----
-44

skipif mysql # not compatible
query I rowsort label-3008
SELECT - 42 + - 1 + COUNT ( * ) * - COUNT ( DISTINCT + 83 )
----
-44

query I rowsort
SELECT - 53 * - 56 AS col1
----
2968

query I rowsort
SELECT - 59 * + 35 * - 81
----
167265

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3011
SELECT ALL + CASE - ( - - 95 ) WHEN - 19 + + - 48 + + ( + - ( - 97 ) ) * - MIN( DISTINCT - 71 ) * - 21 + 90 THEN - 89 WHEN + - COUNT( * ) THEN - - CAST( NULL AS SIGNED ) / COUNT( - 99 ) * 12 ELSE 4 END
----
4

skipif mysql # not compatible
query I rowsort label-3011
SELECT ALL + CASE - ( - - 95 ) WHEN - 19 + + - 48 + + ( + - ( - 97 ) ) * - MIN ( DISTINCT - 71 ) * - 21 + 90 THEN - 89 WHEN + - COUNT ( * ) THEN - - CAST ( NULL AS INTEGER ) / COUNT ( - 99 ) * 12 ELSE 4 END
----
4

query I rowsort
SELECT CASE + + 34 WHEN - 4 THEN + 58 WHEN 32 THEN - 64 * - - 87 END col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3013
SELECT 59 * + 79 + + CAST( + + COUNT( ALL + 89 ) AS SIGNED ) + - SUM( DISTINCT - - 14 ) * + 12 AS col1
----
4494

skipif mysql # not compatible
query I rowsort label-3013
SELECT 59 * + 79 + + CAST ( + + COUNT ( ALL + 89 ) AS INTEGER ) + - SUM ( DISTINCT - - 14 ) * + 12 AS col1
----
4494

query I rowsort
SELECT ALL - 23 * - + 40
----
920

onlyif mysql # aggregate syntax: 
query I rowsort label-3015
SELECT - 23 * + + 82 * COUNT( * ) * + - 84
----
158424

skipif mysql # not compatible
query I rowsort label-3015
SELECT - 23 * + + 82 * COUNT ( * ) * + - 84
----
158424

query I rowsort
SELECT + 29 * - - 69
----
2001

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3017
SELECT + COUNT( ALL - 77 ) + - 47 DIV + + 55 + + - COUNT( * ) * + - COUNT( * )
----
2

skipif mysql # not compatible
query I rowsort label-3017
SELECT + COUNT ( ALL - 77 ) + - 47 / + + 55 + + - COUNT ( * ) * + - COUNT ( * )
----
2

query I rowsort
SELECT DISTINCT + 97 * + - 46 * - + 71
----
316802

onlyif mysql # aggregate syntax: 
query I rowsort label-3019
SELECT DISTINCT + 80 * + SUM( - + 82 ) * 16 - - - 2 col0
----
-104962

skipif mysql # not compatible
query I rowsort label-3019
SELECT DISTINCT + 80 * + SUM ( - + 82 ) * 16 - - - 2 col0
----
-104962

query II rowsort
SELECT + + 52 AS col2, 10
----
52
10

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

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

query II rowsort
SELECT - 37 AS col1, + 57 col0
----
-37
57

query I rowsort
SELECT - + 67 + 12 AS col0
----
-55

onlyif mysql # aggregate syntax: 
query II rowsort label-3024
SELECT DISTINCT ( + - MIN( 57 ) ) + 9, + 23 AS col1
----
-48
23

skipif mysql # not compatible
query II rowsort label-3024
SELECT DISTINCT ( + - MIN ( 57 ) ) + 9, + 23 AS col1
----
-48
23

query I rowsort
SELECT DISTINCT + + 68 + - 69 * + + 77 AS col1
----
-5245

query I rowsort
SELECT ALL 19 + 70
----
89

query I rowsort
SELECT ALL 58 * 82
----
4756

onlyif mysql # aggregate syntax: 
query I rowsort label-3028
SELECT DISTINCT + COUNT( * ) + - - 81 * CASE ( + COUNT( * ) ) WHEN + 70 * - 86 THEN 31 WHEN - - COUNT( * ) THEN - - 93 * 43 END + 10 + 47
----
323977

skipif mysql # not compatible
query I rowsort label-3028
SELECT DISTINCT + COUNT ( * ) + - - 81 * CASE ( + COUNT ( * ) ) WHEN + 70 * - 86 THEN 31 WHEN - - COUNT ( * ) THEN - - 93 * 43 END + 10 + 47
----
323977

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

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

query I rowsort
SELECT ALL + 71 + - ( 78 )
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-3031
SELECT + + MAX( DISTINCT 46 ) * - + 12
----
-552

skipif mysql # not compatible
query I rowsort label-3031
SELECT + + MAX ( DISTINCT 46 ) * - + 12
----
-552

query II rowsort
SELECT DISTINCT 96 + - 22 AS col1, 4 * + 98
----
74
392

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3033
SELECT ALL MAX( ALL + 57 ), + CAST( + MIN( + 22 ) AS SIGNED ) AS col1
----
57
22

skipif mysql # not compatible
query II rowsort label-3033
SELECT ALL MAX ( ALL + 57 ), + CAST ( + MIN ( + 22 ) AS INTEGER ) AS col1
----
57
22

onlyif mysql # DIV for integer division: 
query I rowsort label-3034
SELECT + 20 DIV ( - + ( - 27 ) ) * 39 * - 44 col0
----
0

skipif mysql # not compatible
query I rowsort label-3034
SELECT + 20 / ( - + ( - 27 ) ) * 39 * - 44 col0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3035
SELECT DISTINCT 49 DIV - 20
----
-2

skipif mysql # not compatible
query I rowsort label-3035
SELECT DISTINCT 49 / - 20
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-3036
SELECT DISTINCT 60 - + - 17 * - + COUNT( * ) * - + COUNT( * ) AS col2
----
77

skipif mysql # not compatible
query I rowsort label-3036
SELECT DISTINCT 60 - + - 17 * - + COUNT ( * ) * - + COUNT ( * ) AS col2
----
77

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3037
SELECT + COUNT( + 36 ) DIV 86 AS col1, - 68
----
0
-68

skipif mysql # not compatible
query II rowsort label-3037
SELECT + COUNT ( + 36 ) / 86 AS col1, - 68
----
0
-68

onlyif mysql # DIV for integer division: 
query I rowsort label-3038
SELECT DISTINCT 13 DIV 59 * - 44 * - - 56
----
0

skipif mysql # not compatible
query I rowsort label-3038
SELECT DISTINCT 13 / 59 * - 44 * - - 56
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3039
SELECT + COUNT( ALL 71 ) - + 68 + 22 col0
----
-45

skipif mysql # not compatible
query I rowsort label-3039
SELECT + COUNT ( ALL 71 ) - + 68 + 22 col0
----
-45

query I rowsort
SELECT 25 * + 84 * - + 47 AS col2
----
-98700

query I rowsort
SELECT ALL - 54 * - 14 AS col0
----
756

query I rowsort
SELECT ALL 5 * - + 45 col0
----
-225

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3043
SELECT ALL - CASE + CAST( NULL AS DECIMAL ) WHEN + 52 + - 25 * + + 79 - + 15 / 3 THEN NULL WHEN - MAX( DISTINCT - 84 ) THEN + MIN( 53 ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3043
SELECT ALL - CASE + CAST ( NULL AS REAL ) WHEN + 52 + - 25 * + + 79 - + 15 / 3 THEN NULL WHEN - MAX ( DISTINCT - 84 ) THEN + MIN ( 53 ) END AS col1
----
NULL

query I rowsort
SELECT 25 - 49 + + 4 col0
----
-20

query I rowsort
SELECT 98 * + 38 * - 65 - 45 + 56 AS col0
----
-242049

query I rowsort
SELECT ALL - 87 * - 52 - + 8 AS col0
----
4516

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

skipif mysql # not compatible
query I rowsort label-3047
SELECT + 70 * + - 9 + + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3048
SELECT ALL - + COUNT( ALL + + 72 ) + - 87
----
-88

skipif mysql # not compatible
query I rowsort label-3048
SELECT ALL - + COUNT ( ALL + + 72 ) + - 87
----
-88

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3049
SELECT DISTINCT - - COUNT( * ) DIV + 34, + 49 col1
----
0
49

skipif mysql # not compatible
query II rowsort label-3049
SELECT DISTINCT - - COUNT ( * ) / + 34, + 49 col1
----
0
49

query I rowsort
SELECT ALL - + 95 * + - 78
----
7410

onlyif mysql # DIV for integer division: 
query I rowsort label-3051
SELECT - 37 DIV 22
----
-1

skipif mysql # not compatible
query I rowsort label-3051
SELECT - 37 / 22
----
-1

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

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

query I rowsort
SELECT ALL - + 3 * 5 + - + 53 AS col0
----
-68

query I rowsort
SELECT 54 * + - 53 AS col0
----
-2862

onlyif mysql # DIV for integer division: 
query I rowsort label-3055
SELECT DISTINCT - 44 DIV - + NULLIF ( - - 90, - 77 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3055
SELECT DISTINCT - 44 / - + NULLIF ( - - 90, - 77 ) AS col2
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3056
SELECT DISTINCT 35 + 10 + - COUNT( * ) + + 96 + + + 29 + - + 52 - 42 DIV - COUNT( * ) AS col2, 18
----
159
18

skipif mysql # not compatible
query II rowsort label-3056
SELECT DISTINCT 35 + 10 + - COUNT ( * ) + + 96 + + + 29 + - + 52 - 42 / - COUNT ( * ) AS col2, 18
----
159
18

onlyif mysql # aggregate syntax: 
query I rowsort label-3057
SELECT COUNT( * ) - COUNT( * ) + 95 - - 45 * - 11 + - + 52
----
-452

skipif mysql # not compatible
query I rowsort label-3057
SELECT COUNT ( * ) - COUNT ( * ) + 95 - - 45 * - 11 + - + 52
----
-452

query I rowsort
SELECT - ( + + 10 ) + 66 AS col1
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-3059
SELECT 23 * + COUNT( * ) * - 51
----
-1173

skipif mysql # not compatible
query I rowsort label-3059
SELECT 23 * + COUNT ( * ) * - 51
----
-1173

query II rowsort
SELECT - ( + 80 ), 95 + 49 AS col1
----
-80
144

onlyif mysql # aggregate syntax: 
query I rowsort label-3061
SELECT - 66 + - + CASE - - COUNT( * ) WHEN + 71 THEN - 28 + MAX( 58 ) * + 52 WHEN - 38 THEN NULL END + 1
----
NULL

skipif mysql # not compatible
query I rowsort label-3061
SELECT - 66 + - + CASE - - COUNT ( * ) WHEN + 71 THEN - 28 + MAX ( 58 ) * + 52 WHEN - 38 THEN NULL END + 1
----
NULL

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

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

query I rowsort
SELECT ALL 8 - + 81 AS col0
----
-73

query I rowsort
SELECT 81 * + 75 AS col0
----
6075

query I rowsort
SELECT ALL - 67 * 39 col0
----
-2613

query I rowsort
SELECT 0 + - - ( - 13 ) * 12 AS col2
----
-156

query I rowsort
SELECT 6 * + - 77
----
-462

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3068
SELECT MIN( DISTINCT + - 69 ) + + - COUNT( * ) - 73 - + 4 DIV + 85 + - + 22
----
-165

skipif mysql # not compatible
query I rowsort label-3068
SELECT MIN ( DISTINCT + - 69 ) + + - COUNT ( * ) - 73 - + 4 / + 85 + - + 22
----
-165

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-3069
SELECT COUNT( * ) * SUM( DISTINCT + CAST( NULL AS DECIMAL ) ) AS col2, - MIN( DISTINCT - - 85 ) AS col0
----
NULL
-85

skipif mysql # not compatible
query II rowsort label-3069
SELECT COUNT ( * ) * SUM ( DISTINCT + CAST ( NULL AS REAL ) ) AS col2, - MIN ( DISTINCT - - 85 ) AS col0
----
NULL
-85

onlyif mysql # DIV for integer division: 
query I rowsort label-3070
SELECT 59 * 84 - 65 + + 5 DIV - + 21 * + 84
----
4891

skipif mysql # not compatible
query I rowsort label-3070
SELECT 59 * 84 - 65 + + 5 / - + 21 * + 84
----
4891

query I rowsort
SELECT 96 * - 25
----
-2400

query I rowsort
SELECT ( - 26 ) + + 16 + 83 AS col1
----
73

query II rowsort
SELECT ALL CASE 38 WHEN + 32 THEN - 22 * 48 END / 46 AS col2, + 61
----
NULL
61

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3075
SELECT DISTINCT - 54 AS col0, CAST( NULL AS SIGNED ) + - COUNT( * ) + + + MIN( + 83 ) * + 39
----
-54
NULL

skipif mysql # not compatible
query II rowsort label-3075
SELECT DISTINCT - 54 AS col0, CAST ( NULL AS INTEGER ) + - COUNT ( * ) + + + MIN ( + 83 ) * + 39
----
-54
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3076
SELECT 96 * - - 52 + + - NULLIF ( COUNT( * ), + - 29 * + CAST( NULL AS SIGNED ) + - 22 * + 89 * - 5 ) * + 40
----
4952

skipif mysql # not compatible
query I rowsort label-3076
SELECT 96 * - - 52 + + - NULLIF ( COUNT ( * ), + - 29 * + CAST ( NULL AS INTEGER ) + - 22 * + 89 * - 5 ) * + 40
----
4952

query I rowsort
SELECT DISTINCT 99 + - - 2 col0
----
101

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

query II rowsort
SELECT - 60 AS col1, 71 + - - 84 AS col0
----
-60
155

query I rowsort
SELECT ALL 38 + + 97
----
135

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3081
SELECT + 34 * + CASE + 59 WHEN + 1 THEN + 24 - + - 3 + 7 * 20 * + COUNT( * ) DIV + COUNT( * ) - - 38 + - 78 WHEN - CAST( 99 AS SIGNED ) THEN NULL ELSE - COALESCE ( 62, - 2, 74 * 60 * + CAST( NULL AS SIGNED ) + + 62 ) END + 79 + + 47
----
-1982

skipif mysql # not compatible
query I rowsort label-3081
SELECT + 34 * + CASE + 59 WHEN + 1 THEN + 24 - + - 3 + 7 * 20 * + COUNT ( * ) / + COUNT ( * ) - - 38 + - 78 WHEN - CAST ( 99 AS INTEGER ) THEN NULL ELSE - COALESCE ( 62, - 2, 74 * 60 * + CAST ( NULL AS INTEGER ) + + 62 ) END + 79 + + 47
----
-1982

query I rowsort
SELECT ALL - 64 + - + 59
----
-123

query I rowsort
SELECT DISTINCT - 53 * - 31 AS col0
----
1643

query I rowsort
SELECT COALESCE ( + 60, - 15, 34 ) * 30 col0
----
1800

onlyif mysql # DIV for integer division: 
query I rowsort label-3085
SELECT ALL - 15 DIV - 34 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3085
SELECT ALL - 15 / - 34 AS col1
----
0

query I rowsort
SELECT ALL - 4 + + 27 + + CASE WHEN + AVG ( ALL - + 58 ) = NULL THEN + 51 WHEN 17 <= - 49 THEN NULL ELSE 87 END AS col2
----
110

onlyif mysql # aggregate syntax: 
query I rowsort label-3087
SELECT + SUM( - 87 ) * - 72 + 0
----
6264

skipif mysql # not compatible
query I rowsort label-3087
SELECT + SUM ( - 87 ) * - 72 + 0
----
6264

query I rowsort
SELECT - 23 + - 20 AS col1
----
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-3089
SELECT 17 * + 95 + COUNT( * ) + + ( + 60 )
----
1676

skipif mysql # not compatible
query I rowsort label-3089
SELECT 17 * + 95 + COUNT ( * ) + + ( + 60 )
----
1676

onlyif mysql # aggregate syntax: 
query I rowsort label-3090
SELECT 48 + - - COALESCE ( + COUNT( * ), + + 1 + 94, + - 28 * 91 )
----
49

skipif mysql # not compatible
query I rowsort label-3090
SELECT 48 + - - COALESCE ( + COUNT ( * ), + + 1 + 94, + - 28 * 91 )
----
49

onlyif mysql # aggregate syntax: 
query I rowsort label-3091
SELECT - NULLIF ( - 10, 78 ) + - + 40 + - 33 * + 97 + COUNT( * ) * - 26 AS col0
----
-3257

skipif mysql # not compatible
query I rowsort label-3091
SELECT - NULLIF ( - 10, 78 ) + - + 40 + - 33 * + 97 + COUNT ( * ) * - 26 AS col0
----
-3257

query II rowsort
SELECT ALL 79 col2, 10
----
79
10

query II rowsort
SELECT DISTINCT + + 25 * + 72 * 77 AS col1, - 48 - - - 88 * 53
----
138600
-4712

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3094
SELECT ALL - CAST( - AVG ( + 61 ) AS SIGNED ) - - 5
----
66

skipif mysql # not compatible
query I rowsort label-3094
SELECT ALL - CAST ( - AVG ( + 61 ) AS INTEGER ) - - 5
----
66

query I rowsort
SELECT - 64 * + - 43 AS col2
----
2752

onlyif mysql # aggregate syntax: 
query I rowsort label-3096
SELECT ALL MIN( + - NULLIF ( + - COALESCE ( - 60, - 11, + 42 ), 64 * - 79 + - 26 * - 29 ) )
----
-60

skipif mysql # not compatible
query I rowsort label-3096
SELECT ALL MIN ( + - NULLIF ( + - COALESCE ( - 60, - 11, + 42 ), 64 * - 79 + - 26 * - 29 ) )
----
-60

query I rowsort
SELECT DISTINCT + 44 * 15 AS col2
----
660

onlyif mysql # aggregate syntax: 
query I rowsort label-3098
SELECT ALL MAX( ALL + 20 ) AS col2
----
20

skipif mysql # not compatible
query I rowsort label-3098
SELECT ALL MAX ( ALL + 20 ) AS col2
----
20

query I rowsort
SELECT DISTINCT + 8 - - + ( 7 ) * + - 15 * - 99 + 55 AS col0
----
10458

query I rowsort
SELECT ALL COALESCE ( - 72, - 83 )
----
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-3101
SELECT + 36 + + SUM( - 82 ) AS col2
----
-46

skipif mysql # not compatible
query I rowsort label-3101
SELECT + 36 + + SUM ( - 82 ) AS col2
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-3102
SELECT ALL COALESCE ( NULLIF ( - + ( - - COUNT( ALL 82 ) ), 44 + + - 25 ), + 64 + - 55 + + 68 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-3102
SELECT ALL COALESCE ( NULLIF ( - + ( - - COUNT ( ALL 82 ) ), 44 + + - 25 ), + 64 + - 55 + + 68 ) AS col1
----
-1

query I rowsort
SELECT DISTINCT COALESCE ( + 73, - 87 * - 80 )
----
73

query I rowsort
SELECT + 94 + 71 AS col0
----
165

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

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

query I rowsort
SELECT DISTINCT NULLIF ( - 42, + 34 + + 92 ) * 42
----
-1764

query I rowsort
SELECT + 29 * - 17 AS col1
----
-493

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3110
SELECT ALL 40 * - 80 + + COUNT( * )
----
-3199

skipif mysql # not compatible
query I rowsort label-3110
SELECT ALL 40 * - 80 + + COUNT ( * )
----
-3199

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3111
SELECT DISTINCT + COUNT( * ) * 26 * + 59 * 69 + - + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3111
SELECT DISTINCT + COUNT ( * ) * 26 * + 59 * 69 + - + CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3112
SELECT ALL ( - 59 ) * - + 73 + + SUM( ALL + + 82 )
----
4389

skipif mysql # not compatible
query I rowsort label-3112
SELECT ALL ( - 59 ) * - + 73 + + SUM ( ALL + + 82 )
----
4389

query I rowsort
SELECT DISTINCT + 41 * + - 26
----
-1066

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3114
SELECT - CASE + 83 WHEN + 73 * + CASE 20 WHEN + COALESCE ( - 1, + 66, + 32 ) THEN - 93 ELSE - SUM( - ( - CASE WHEN NOT CAST( - + COALESCE ( + 31, 47, - CAST( + ( + - 36 ) AS SIGNED ) ) AS SIGNED ) IS NOT NULL THEN + + 41 END ) ) END * + 0 + - COUNT( * ) + + COUNT( * ) * CAST( NULL AS SIGNED ) + + NULLIF ( + CAST( NULL AS SIGNED ), + 99 / COUNT( * ) ) THEN - 13 * + 66 WHEN - AVG ( - 7 ) - CASE 70 WHEN - COUNT( * ) THEN 83 - - 13 WHEN + 54 + - COUNT( * ) THEN - 47 - - ( CAST( NULL AS DECIMAL ) ) * COUNT( + 29 ) ELSE + 9 END * NULLIF ( + CAST( ( + ( 65 ) ) AS SIGNED ) + 61, - 61 * + 28 ) THEN NULL WHEN CAST( 8 AS SIGNED ) THEN COUNT( * ) + - 25 * + 15 END
----
NULL

skipif mysql # not compatible
query I rowsort label-3114
SELECT - CASE + 83 WHEN + 73 * + CASE 20 WHEN + COALESCE ( - 1, + 66, + 32 ) THEN - 93 ELSE - SUM ( - ( - CASE WHEN NOT CAST ( - + COALESCE ( + 31, 47, - CAST ( + ( + - 36 ) AS INTEGER ) ) AS INTEGER ) IS NOT NULL THEN + + 41 END ) ) END * + 0 + - COUNT ( * ) + + COUNT ( * ) * CAST ( NULL AS INTEGER ) + + NULLIF ( + CAST ( NULL AS INTEGER ), + 99 / COUNT ( * ) ) THEN - 13 * + 66 WHEN - AVG ( - 7 ) - CASE 70 WHEN - COUNT ( * ) THEN 83 - - 13 WHEN + 54 + - COUNT ( * ) THEN - 47 - - ( CAST ( NULL AS REAL ) ) * COUNT ( + 29 ) ELSE + 9 END * NULLIF ( + CAST ( ( + ( 65 ) ) AS INTEGER ) + 61, - 61 * + 28 ) THEN NULL WHEN CAST ( 8 AS INTEGER ) THEN COUNT ( * ) + - 25 * + 15 END
----
NULL

query I rowsort
SELECT - 95 * + CASE - - 77 WHEN 57 THEN + 3 * + + 59 END + 16 + - 73 / + 97 + 32 col1
----
NULL

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

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

query I rowsort
SELECT ALL + 63 * - 41 - - 73 AS col2
----
-2510

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3119
SELECT + - SUM( DISTINCT + ( 93 ) ) * - - 88 * NULLIF ( - - 32, + 99 * 51 * + + 37 + - - 8 / - - ( + + CAST( NULL AS SIGNED ) ) ) - MAX( 61 ) - 92 * 14 AS col2
----
-263237

skipif mysql # not compatible
query I rowsort label-3119
SELECT + - SUM ( DISTINCT + ( 93 ) ) * - - 88 * NULLIF ( - - 32, + 99 * 51 * + + 37 + - - 8 / - - ( + + CAST ( NULL AS INTEGER ) ) ) - MAX ( 61 ) - 92 * 14 AS col2
----
-263237

onlyif mysql # aggregate syntax: 
query I rowsort label-3120
SELECT ALL 96 - - COUNT( * ) AS col0
----
97

skipif mysql # not compatible
query I rowsort label-3120
SELECT ALL 96 - - COUNT ( * ) AS col0
----
97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3121
SELECT DISTINCT + 13 / - CASE - - 28 WHEN - ( + - 28 ) THEN NULL WHEN - 1 * + COUNT( * ) * - - 93 + + ( 91 ) + 1 * CAST( + + 15 AS SIGNED ) THEN + 31 ELSE NULL END col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3121
SELECT DISTINCT + 13 / - CASE - - 28 WHEN - ( + - 28 ) THEN NULL WHEN - 1 * + COUNT ( * ) * - - 93 + + ( 91 ) + 1 * CAST ( + + 15 AS INTEGER ) THEN + 31 ELSE NULL END col0
----
NULL

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

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

query I rowsort
SELECT + ( - 80 ) + - + 21 AS col1
----
-101

onlyif mysql # aggregate syntax: 
query I rowsort label-3124
SELECT ALL COALESCE ( - + 66, - 56 * - - 6, 6 * MAX( 37 ) * 0 )
----
-66

skipif mysql # not compatible
query I rowsort label-3124
SELECT ALL COALESCE ( - + 66, - 56 * - - 6, 6 * MAX ( 37 ) * 0 )
----
-66

query I rowsort
SELECT + 31 + - 98 AS col0
----
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-3126
SELECT - COUNT( * ) * ( CASE - + 65 WHEN + + 43 THEN NULL WHEN - 52 THEN NULL WHEN 87 THEN NULL ELSE 14 END ) AS col1
----
-14

skipif mysql # not compatible
query I rowsort label-3126
SELECT - COUNT ( * ) * ( CASE - + 65 WHEN + + 43 THEN NULL WHEN - 52 THEN NULL WHEN 87 THEN NULL ELSE 14 END ) AS col1
----
-14

query I rowsort
SELECT ALL + 95 * - 71 AS col0
----
-6745

query I rowsort
SELECT - 1 - - + 11
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-3129
SELECT ALL + COUNT( * ) + + + 72 + - ( + 59 ) col0
----
14

skipif mysql # not compatible
query I rowsort label-3129
SELECT ALL + COUNT ( * ) + + + 72 + - ( + 59 ) col0
----
14

query I rowsort
SELECT - 77 - + ( - - 19 ) AS col0
----
-96

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3131
SELECT ALL + NULLIF ( - COUNT( DISTINCT + 91 ), + MAX( - + 37 ) ) + - - ( - + COUNT( * ) ) DIV - 31
----
-1

skipif mysql # not compatible
query I rowsort label-3131
SELECT ALL + NULLIF ( - COUNT ( DISTINCT + 91 ), + MAX ( - + 37 ) ) + - - ( - + COUNT ( * ) ) / - 31
----
-1

query I rowsort
SELECT - 53 + - + 60 AS col1
----
-113

onlyif mysql # aggregate syntax: 
query I rowsort label-3133
SELECT ALL + COUNT( * ) + + 88 + - 23 AS col0
----
66

skipif mysql # not compatible
query I rowsort label-3133
SELECT ALL + COUNT ( * ) + + 88 + - 23 AS col0
----
66

query I rowsort
SELECT DISTINCT + ( + 43 ) + - + ( + 23 ) AS col0
----
20

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3136
SELECT - 17 + - - 71 * + NULLIF ( COUNT( * ), - 73 ) + - 53
----
1

skipif mysql # not compatible
query I rowsort label-3136
SELECT - 17 + - - 71 * + NULLIF ( COUNT ( * ), - 73 ) + - 53
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3137
SELECT + 69 * - 17 - - COUNT( * ) + NULLIF ( + + 69, + - 6 - 85 * + - CASE - - COUNT( * ) WHEN + - 47 THEN 73 WHEN + CASE 19 WHEN 33 + + - CASE + 24 WHEN + ( 3 ) * MAX( DISTINCT + + 52 ) * COUNT( * ) + - 67 THEN + 20 WHEN - 94 * + 69 * - 42 + 37 * - 56 THEN - NULLIF ( 76, 0 ) END + + 11 * - 45 + 42 THEN + CAST( NULL AS SIGNED ) * 64 END + 51 THEN 33 ELSE NULL END ) + 34 * 2
----
-1035

skipif mysql # not compatible
query I rowsort label-3137
SELECT + 69 * - 17 - - COUNT ( * ) + NULLIF ( + + 69, + - 6 - 85 * + - CASE - - COUNT ( * ) WHEN + - 47 THEN 73 WHEN + CASE 19 WHEN 33 + + - CASE + 24 WHEN + ( 3 ) * MAX ( DISTINCT + + 52 ) * COUNT ( * ) + - 67 THEN + 20 WHEN - 94 * + 69 * - 42 + 37 * - 56 THEN - NULLIF ( 76, 0 ) END + + 11 * - 45 + 42 THEN + CAST ( NULL AS INTEGER ) * 64 END + 51 THEN 33 ELSE NULL END ) + 34 * 2
----
-1035

onlyif mysql # DIV for integer division: 
query I rowsort label-3138
SELECT ALL + + 46 DIV - 66 + ( + 63 )
----
63

skipif mysql # not compatible
query I rowsort label-3138
SELECT ALL + + 46 / - 66 + ( + 63 )
----
63

query I rowsort
SELECT - 16 * + 91 AS col2
----
-1456

query I rowsort
SELECT ALL 56 * 64
----
3584

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3141
SELECT ALL COALESCE ( + 16, - + 58 DIV + 81 * - MAX( ALL 45 ) ) DIV + COALESCE ( - COUNT( DISTINCT + - CAST( + - 49 AS SIGNED ) ), - 37 * - + 49 - + 8 + - COUNT( * ) ) + - 3 * - - 60 * + 43 - - NULLIF ( + 72, - COALESCE ( - 52, + 81 ) + + 54 ) + - 43 * 15 * - + COUNT( * ) AS col2
----
-7039

skipif mysql # not compatible
query I rowsort label-3141
SELECT ALL COALESCE ( + 16, - + 58 / + 81 * - MAX ( ALL 45 ) ) / + COALESCE ( - COUNT ( DISTINCT + - CAST ( + - 49 AS INTEGER ) ), - 37 * - + 49 - + 8 + - COUNT ( * ) ) + - 3 * - - 60 * + 43 - - NULLIF ( + 72, - COALESCE ( - 52, + 81 ) + + 54 ) + - 43 * 15 * - + COUNT ( * ) AS col2
----
-7039

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3142
SELECT ALL + 19, + 24 DIV COUNT( * ) AS col1
----
19
24

skipif mysql # not compatible
query II rowsort label-3142
SELECT ALL + 19, + 24 / COUNT ( * ) AS col1
----
19
24

query I rowsort
SELECT + 43 + 39 AS col2
----
82

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3144
SELECT DISTINCT + CAST( CASE ( - 97 ) WHEN ( 43 ) * + ( + 52 ) + - 4 + - ( + + 39 ) * + + CAST( NULL AS SIGNED ) * + - CAST( NULL AS DECIMAL ) * - - 37 + + COUNT( * ) * + 57 + + CASE COUNT( * ) WHEN + 87 THEN NULL ELSE - 83 * COUNT( * ) + - 87 END THEN + + 49 * + NULLIF ( + 12, 45 * 74 / - CAST( NULL AS SIGNED ) ) + - - 26 WHEN - + NULLIF ( - 41, 31 ) + 7 THEN NULL END AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-3144
SELECT DISTINCT + CAST ( CASE ( - 97 ) WHEN ( 43 ) * + ( + 52 ) + - 4 + - ( + + 39 ) * + + CAST ( NULL AS INTEGER ) * + - CAST ( NULL AS REAL ) * - - 37 + + COUNT ( * ) * + 57 + + CASE COUNT ( * ) WHEN + 87 THEN NULL ELSE - 83 * COUNT ( * ) + - 87 END THEN + + 49 * + NULLIF ( + 12, 45 * 74 / - CAST ( NULL AS INTEGER ) ) + - - 26 WHEN - + NULLIF ( - 41, 31 ) + 7 THEN NULL END AS REAL )
----
NULL

query I rowsort
SELECT ALL + + 84 * + 6 col0
----
504

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3146
SELECT + 88 * CASE NULLIF ( - 2, + 59 ) WHEN 0 / - 15 THEN - 18 * + + 4 END - + COALESCE ( - 51, + 22 * + + NULLIF ( - + 83, + 56 * + - MAX( 99 ) + - CAST( NULL AS SIGNED ) ) + 34, - 22, - 4 * - + 81 + - 53 * + 90 / - ( + + 77 ) ) + 65 * - 80 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3146
SELECT + 88 * CASE NULLIF ( - 2, + 59 ) WHEN 0 / - 15 THEN - 18 * + + 4 END - + COALESCE ( - 51, + 22 * + + NULLIF ( - + 83, + 56 * + - MAX ( 99 ) + - CAST ( NULL AS INTEGER ) ) + 34, - 22, - 4 * - + 81 + - 53 * + 90 / - ( + + 77 ) ) + 65 * - 80 AS col1
----
NULL

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

skipif mysql # not compatible
query I rowsort label-3147
SELECT + + COUNT ( * ) * ( - 80 ) + 50 AS col0
----
-30

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3148
SELECT CAST( - - COUNT( * ) AS SIGNED ) * + + COALESCE ( 29, - 14, - - 63 * 99 + + CASE - 77 WHEN + 36 THEN NULL ELSE + 83 END ) + - 48 AS col1
----
-19

skipif mysql # not compatible
query I rowsort label-3148
SELECT CAST ( - - COUNT ( * ) AS INTEGER ) * + + COALESCE ( 29, - 14, - - 63 * 99 + + CASE - 77 WHEN + 36 THEN NULL ELSE + 83 END ) + - 48 AS col1
----
-19

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

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

query I rowsort
SELECT + 41 + 39 * - 67
----
-2572

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

skipif mysql # not compatible
query I rowsort label-3151
SELECT + 46 / - 77
----
0

query I rowsort
SELECT ALL 85 * - 91 + + 12 * - 53 AS col2
----
-8371

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

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

query I rowsort
SELECT - ( + + 10 ) * - 63 + 95 AS col0
----
725

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3155
SELECT ALL CASE + 29 WHEN + COUNT( * ) + + - 21 + SUM( - + ( - - 94 ) ) / ( - - CAST( NULL AS SIGNED ) ) * ( + 87 ) THEN 72 * COUNT( * ) - 73 + 16 + - + 93 ELSE NULL END * 79 * + CASE - 20 WHEN ( 2 ) + - CAST( NULL AS DECIMAL ) + - 42 * + 27 THEN - + 66 END
----
NULL

skipif mysql # not compatible
query I rowsort label-3155
SELECT ALL CASE + 29 WHEN + COUNT ( * ) + + - 21 + SUM ( - + ( - - 94 ) ) / ( - - CAST ( NULL AS INTEGER ) ) * ( + 87 ) THEN 72 * COUNT ( * ) - 73 + 16 + - + 93 ELSE NULL END * 79 * + CASE - 20 WHEN ( 2 ) + - CAST ( NULL AS REAL ) + - 42 * + 27 THEN - + 66 END
----
NULL

query II rowsort
SELECT DISTINCT + 42 col0, - 89 col0
----
42
-89

query I rowsort
SELECT ALL 49 * + 81
----
3969

query I rowsort
SELECT 81 + 49 * - + 4 col0
----
-115

query I rowsort
SELECT 27 * + - 49 + - 28 AS col0
----
-1351

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3160
SELECT ( + 21 ) * SUM( 31 ) AS col2, 47 * - 66 + - 77 DIV + - 86 + + - 19 * - + SUM( + 50 )
----
651
-2152

skipif mysql # not compatible
query II rowsort label-3160
SELECT ( + 21 ) * SUM ( 31 ) AS col2, 47 * - 66 + - 77 / + - 86 + + - 19 * - + SUM ( + 50 )
----
651
-2152

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3161
SELECT ALL COUNT( * ) * 36 AS col2, - COUNT( * ) * - COUNT( * ) DIV - 8 AS col0
----
36
0

skipif mysql # not compatible
query II rowsort label-3161
SELECT ALL COUNT ( * ) * 36 AS col2, - COUNT ( * ) * - COUNT ( * ) / - 8 AS col0
----
36
0

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3163
SELECT ALL NULLIF ( MIN( DISTINCT 6 ), + COUNT( * ) + - COUNT( * ) ) * 23 * + 78 * ( + - COUNT( * ) )
----
-10764

skipif mysql # not compatible
query I rowsort label-3163
SELECT ALL NULLIF ( MIN ( DISTINCT 6 ), + COUNT ( * ) + - COUNT ( * ) ) * 23 * + 78 * ( + - COUNT ( * ) )
----
-10764

query I rowsort
SELECT 35 + 54 + - - 99 * 52
----
5237

query II rowsort
SELECT ALL 82 AS col2, ( + 36 ) * - 81
----
82
-2916

onlyif mysql # aggregate syntax: 
query I rowsort label-3166
SELECT COUNT( * ) + + MIN( - 10 ) + 24 + - 54 AS col2
----
-39

skipif mysql # not compatible
query I rowsort label-3166
SELECT COUNT ( * ) + + MIN ( - 10 ) + 24 + - 54 AS col2
----
-39

onlyif mysql # aggregate syntax: 
query II rowsort label-3167
SELECT ALL 83 + + + 36 * + - MAX( + 78 ) AS col2, 31
----
-2725
31

skipif mysql # not compatible
query II rowsort label-3167
SELECT ALL 83 + + + 36 * + - MAX ( + 78 ) AS col2, 31
----
-2725
31

onlyif mysql # DIV for integer division: 
query I rowsort label-3168
SELECT 35 + + 24 + 24 + + - ( + 21 ) DIV + 58 * + + ( - - 33 ) AS col2
----
83

skipif mysql # not compatible
query I rowsort label-3168
SELECT 35 + + 24 + 24 + + - ( + 21 ) / + 58 * + + ( - - 33 ) AS col2
----
83

query II rowsort
SELECT DISTINCT 47 AS col0, + 46
----
47
46

query II rowsort
SELECT DISTINCT 98 col2, - 74
----
98
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-3171
SELECT ALL COUNT( * ) + COUNT( + 38 ) - + 27 AS col0
----
-25

skipif mysql # not compatible
query I rowsort label-3171
SELECT ALL COUNT ( * ) + COUNT ( + 38 ) - + 27 AS col0
----
-25

query I rowsort
SELECT 24 * + 78 * 1 AS col2
----
1872

query I rowsort
SELECT 60 + + NULLIF ( - COALESCE ( - + 15, 44, 77 ), - 60 )
----
75

query I rowsort
SELECT ALL + 1 + + 91 AS col2
----
92

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3175
SELECT DISTINCT - 47 * + NULLIF ( + MAX( 38 ), - + CAST( + 3 AS SIGNED ) ) col1
----
-1786

skipif mysql # not compatible
query I rowsort label-3175
SELECT DISTINCT - 47 * + NULLIF ( + MAX ( 38 ), - + CAST ( + 3 AS INTEGER ) ) col1
----
-1786

query II rowsort
SELECT 96 col0, - 85 * + 91 * - + 34 * + 29 * + 34 AS col2
----
96
259308140

onlyif mysql # aggregate syntax: 
query II rowsort label-3177
SELECT ALL 61 * + 65 - + 58 * - NULLIF ( 68, + COUNT( * ) ) * - 80 - + ( - 67 ) - - CASE 63 WHEN + 57 THEN + 13 * - 4 WHEN - - MIN( ALL + 5 ) + + + 77 * + + 24 * + ( 51 ) + 21 THEN 92 + - 32 WHEN - 2 THEN NULL WHEN - - AVG ( DISTINCT - + 43 ) THEN NULL WHEN + 33 / + ( - COUNT( * ) ) THEN NULL END AS col0, + MAX( - 17 ) AS col1
----
NULL
-17

skipif mysql # not compatible
query II rowsort label-3177
SELECT ALL 61 * + 65 - + 58 * - NULLIF ( 68, + COUNT ( * ) ) * - 80 - + ( - 67 ) - - CASE 63 WHEN + 57 THEN + 13 * - 4 WHEN - - MIN ( ALL + 5 ) + + + 77 * + + 24 * + ( 51 ) + 21 THEN 92 + - 32 WHEN - 2 THEN NULL WHEN - - AVG ( DISTINCT - + 43 ) THEN NULL WHEN + 33 / + ( - COUNT ( * ) ) THEN NULL END AS col0, + MAX ( - 17 ) AS col1
----
NULL
-17

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3178
SELECT DISTINCT + 41 - 54 + - - CAST( + ( ( NULLIF ( 35, 3 ) ) ) AS SIGNED ) col1
----
22

skipif mysql # not compatible
query I rowsort label-3178
SELECT DISTINCT + 41 - 54 + - - CAST ( + ( ( NULLIF ( 35, 3 ) ) ) AS INTEGER ) col1
----
22

onlyif mysql # aggregate syntax: 
query II rowsort label-3179
SELECT ALL - 85, 25 + - 22 * - COUNT( * ) * + 58 AS col0
----
-85
1301

skipif mysql # not compatible
query II rowsort label-3179
SELECT ALL - 85, 25 + - 22 * - COUNT ( * ) * + 58 AS col0
----
-85
1301

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

skipif mysql # not compatible
query I rowsort label-3180
SELECT DISTINCT - - COUNT ( * ) - + MAX ( ALL + - 84 ) / + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3181
SELECT + COUNT( * ) AS col2, + 54 DIV 55
----
1
0

skipif mysql # not compatible
query II rowsort label-3181
SELECT + COUNT ( * ) AS col2, + 54 / 55
----
1
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3182
SELECT ALL - COALESCE ( - - 67, - - 79, + 77 ) DIV 30 + + COUNT( * ) * NULLIF ( - + NULLIF ( + 20, - - 15 * + 19 * - - 24 + 0 ), - 3 + - 12 ) + - + 36 + + - ( + COUNT( * ) )
----
-59

skipif mysql # not compatible
query I rowsort label-3182
SELECT ALL - COALESCE ( - - 67, - - 79, + 77 ) / 30 + + COUNT ( * ) * NULLIF ( - + NULLIF ( + 20, - - 15 * + 19 * - - 24 + 0 ), - 3 + - 12 ) + - + 36 + + - ( + COUNT ( * ) )
----
-59

query I rowsort
SELECT + 37 * + 56 + - 46 AS col2
----
2026

query I rowsort
SELECT ALL - CASE 99 WHEN - - 43 * + 91 THEN + 88 + + + 22 WHEN - 36 THEN NULL ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3185
SELECT ( 53 ) - - 71 - + COUNT( * )
----
123

skipif mysql # not compatible
query I rowsort label-3185
SELECT ( 53 ) - - 71 - + COUNT ( * )
----
123

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3186
SELECT - 7 AS col1, - COUNT( * ) + - - 82 + + 49 + - CAST( + MIN( + 88 ) AS SIGNED ) * 45 * - - 6 * - ( + 83 )
----
-7
1972210

skipif mysql # not compatible
query II rowsort label-3186
SELECT - 7 AS col1, - COUNT ( * ) + - - 82 + + 49 + - CAST ( + MIN ( + 88 ) AS INTEGER ) * 45 * - - 6 * - ( + 83 )
----
-7
1972210

onlyif mysql # aggregate syntax: 
query I rowsort label-3187
SELECT 44 + - + COUNT( * ) * + NULLIF ( - - 4, - - 46 )
----
40

skipif mysql # not compatible
query I rowsort label-3187
SELECT 44 + - + COUNT ( * ) * + NULLIF ( - - 4, - - 46 )
----
40

onlyif mysql # DIV for integer division: 
query I rowsort label-3188
SELECT ( + - COALESCE ( + + ( - 87 ), - + ( + - 26 ) DIV 42 + + 70 + - NULLIF ( - - 54, + - 52 * 16 * ( + 86 ) ) - + 74 + + 0 ) ) col0
----
87

skipif mysql # not compatible
query I rowsort label-3188
SELECT ( + - COALESCE ( + + ( - 87 ), - + ( + - 26 ) / 42 + + 70 + - NULLIF ( - - 54, + - 52 * 16 * ( + 86 ) ) - + 74 + + 0 ) ) col0
----
87

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3189
SELECT ALL - 3, + MIN( 53 ) * + 91 + 69 + 6 + + - COUNT( * ) * + - COUNT( * ) + COUNT( * ) * - MAX( + - 87 ) DIV 3 * - + 38 AS col0
----
-3
3797

skipif mysql # not compatible
query II rowsort label-3189
SELECT ALL - 3, + MIN ( 53 ) * + 91 + 69 + 6 + + - COUNT ( * ) * + - COUNT ( * ) + COUNT ( * ) * - MAX ( + - 87 ) / 3 * - + 38 AS col0
----
-3
3797

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3190
SELECT 46 * - 17 + + 66 - - 71 DIV + 19 * COUNT( * ) AS col2
----
-713

skipif mysql # not compatible
query I rowsort label-3190
SELECT 46 * - 17 + + 66 - - 71 / + 19 * COUNT ( * ) AS col2
----
-713

query II rowsort
SELECT + 58 AS col2, 54 * 37 + + 64
----
58
2062

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

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

query I rowsort
SELECT ALL - 31 * + 72 + - ( - + 20 ) AS col1
----
-2212

onlyif mysql # aggregate syntax: 
query I rowsort label-3195
SELECT + MAX( DISTINCT - - 22 ) * + 14 + 87 AS col2
----
395

skipif mysql # not compatible
query I rowsort label-3195
SELECT + MAX ( DISTINCT - - 22 ) * + 14 + 87 AS col2
----
395

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-3197
SELECT 19 DIV + ( - 15 )
----
-1

skipif mysql # not compatible
query I rowsort label-3197
SELECT 19 / + ( - 15 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3198
SELECT 90 * NULLIF ( + 28, - - 91 * MAX( - 75 ) ) AS col1
----
2520

skipif mysql # not compatible
query I rowsort label-3198
SELECT 90 * NULLIF ( + 28, - - 91 * MAX ( - 75 ) ) AS col1
----
2520

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3199
SELECT 26 * + COUNT( * ) DIV ( - COUNT( ALL + ( - + COALESCE ( 11, + 19 * 38, + 30 ) ) ) ) AS col1, + 22 AS col2
----
-26
22

skipif mysql # not compatible
query II rowsort label-3199
SELECT 26 * + COUNT ( * ) / ( - COUNT ( ALL + ( - + COALESCE ( 11, + 19 * 38, + 30 ) ) ) ) AS col1, + 22 AS col2
----
-26
22

onlyif mysql # aggregate syntax: 
query I rowsort label-3200
SELECT ALL 95 + + 24 * MAX( - + 68 ) AS col2
----
-1537

skipif mysql # not compatible
query I rowsort label-3200
SELECT ALL 95 + + 24 * MAX ( - + 68 ) AS col2
----
-1537

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

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

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

skipif mysql # not compatible
query I rowsort label-3202
SELECT DISTINCT COUNT ( * ) + + + 44 AS col2
----
45

query I rowsort
SELECT DISTINCT ( CASE 32 WHEN + + 76 THEN - 53 ELSE - 18 END ) + - + 8 col0
----
-26

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3204
SELECT DISTINCT SUM( 9 ) DIV - 65 - 69
----
-69

skipif mysql # not compatible
query I rowsort label-3204
SELECT DISTINCT SUM ( 9 ) / - 65 - 69
----
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-3205
SELECT NULLIF ( - + COUNT( * ), 59 ) + - 73 * - + 50 col1
----
3649

skipif mysql # not compatible
query I rowsort label-3205
SELECT NULLIF ( - + COUNT ( * ), 59 ) + - 73 * - + 50 col1
----
3649

query I rowsort
SELECT 25 + 91 AS col1
----
116

query II rowsort
SELECT ALL 88 * - 27, 63 col1
----
-2376
63

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3208
SELECT COALESCE ( 57, - 16 * + 90 * 40, - + 88 DIV + 2 - + COUNT( * ) ) + - COUNT( * ) AS col2
----
56

skipif mysql # not compatible
query I rowsort label-3208
SELECT COALESCE ( 57, - 16 * + 90 * 40, - + 88 / + 2 - + COUNT ( * ) ) + - COUNT ( * ) AS col2
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-3209
SELECT DISTINCT 35 - + + COUNT( * ) + 70 + + ( 46 )
----
150

skipif mysql # not compatible
query I rowsort label-3209
SELECT DISTINCT 35 - + + COUNT ( * ) + 70 + + ( 46 )
----
150

query I rowsort
SELECT 12 + - 26 * 0 AS col1
----
12

onlyif mysql # aggregate syntax: 
query II rowsort label-3211
SELECT SUM( + 25 ) AS col0, 50 / + CASE + - 34 WHEN + 69 THEN - ( + 9 ) END AS col1
----
25
NULL

skipif mysql # not compatible
query II rowsort label-3211
SELECT SUM ( + 25 ) AS col0, 50 / + CASE + - 34 WHEN + 69 THEN - ( + 9 ) END AS col1
----
25
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3212
SELECT + 26 + COUNT( * ) - + CAST( 59 AS SIGNED ) + - + MAX( ALL - 89 ) DIV + + 47 * 63 DIV + 43 AS col1
----
-31

skipif mysql # not compatible
query I rowsort label-3212
SELECT + 26 + COUNT ( * ) - + CAST ( 59 AS INTEGER ) + - + MAX ( ALL - 89 ) / + + 47 * 63 / + 43 AS col1
----
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-3213
SELECT 92 + - + 2 + + 80 + + + COUNT( + 15 ) * - 72
----
98

skipif mysql # not compatible
query I rowsort label-3213
SELECT 92 + - + 2 + + 80 + + + COUNT ( + 15 ) * - 72
----
98

onlyif mysql # aggregate syntax: 
query I rowsort label-3214
SELECT 38 + 71 + + 41 * - - ( 89 ) + + 96 * - 5 + + 75 + - 76 + + 39 * - 49 + + - ( 18 ) * - MIN( + - 1 )
----
1348

skipif mysql # not compatible
query I rowsort label-3214
SELECT 38 + 71 + + 41 * - - ( 89 ) + + 96 * - 5 + + 75 + - 76 + + 39 * - 49 + + - ( 18 ) * - MIN ( + - 1 )
----
1348

onlyif mysql # aggregate syntax: 
query II rowsort label-3215
SELECT 81 - COUNT( * ) AS col0, 59
----
80
59

skipif mysql # not compatible
query II rowsort label-3215
SELECT 81 - COUNT ( * ) AS col0, 59
----
80
59

query I rowsort
SELECT DISTINCT - 37 * - + 78 + + - 55 AS col2
----
2831

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

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

query I rowsort
SELECT 28 + - 50
----
-22

onlyif mysql # DIV for integer division: 
query II rowsort label-3219
SELECT + 1 DIV ( + 98 ) col2, 9 AS col0
----
0
9

skipif mysql # not compatible
query II rowsort label-3219
SELECT + 1 / ( + 98 ) col2, 9 AS col0
----
0
9

onlyif mysql # aggregate syntax: 
query II rowsort label-3220
SELECT DISTINCT 80 * - - 65 + + + 69 * MAX( ALL + 49 ), 51 AS col0
----
8581
51

skipif mysql # not compatible
query II rowsort label-3220
SELECT DISTINCT 80 * - - 65 + + + 69 * MAX ( ALL + 49 ), 51 AS col0
----
8581
51

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3221
SELECT - 58 DIV - + COUNT( * ) + - 98 + - 93
----
-133

skipif mysql # not compatible
query I rowsort label-3221
SELECT - 58 / - + COUNT ( * ) + - 98 + - 93
----
-133

onlyif mysql # aggregate syntax: 
query I rowsort label-3222
SELECT ALL + CASE - 49 WHEN + COUNT( * ) THEN NULL WHEN + 28 + + 26 THEN + 59 * + 91 * 40 / + + 47 - + 21 ELSE NULL END * - - 60 + 31 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3222
SELECT ALL + CASE - 49 WHEN + COUNT ( * ) THEN NULL WHEN + 28 + + 26 THEN + 59 * + 91 * 40 / + + 47 - + 21 ELSE NULL END * - - 60 + 31 AS col0
----
NULL

query I rowsort
SELECT 38 * + 45 AS col0
----
1710

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3224
SELECT ALL - 64 * - 13 * + CAST( NULL AS SIGNED ) + 16
----
NULL

skipif mysql # not compatible
query I rowsort label-3224
SELECT ALL - 64 * - 13 * + CAST ( NULL AS INTEGER ) + 16
----
NULL

query I rowsort
SELECT + 41 * + ( - 87 ) + + + 6 * 9
----
-3513

onlyif mysql # aggregate syntax: 
query I rowsort label-3226
SELECT 72 * + 82 + + + MIN( DISTINCT 31 )
----
5935

skipif mysql # not compatible
query I rowsort label-3226
SELECT 72 * + 82 + + + MIN ( DISTINCT 31 )
----
5935

query I rowsort
SELECT - 14 * 61 AS col0
----
-854

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3228
SELECT - ( + + 60 ) * 77 + - CASE + CASE + - MIN( 25 ) WHEN + + 31 * 29 * + COUNT( * ) THEN NULL ELSE + 93 * + CAST( NULL AS DECIMAL ) * 81 END WHEN + 92 THEN COUNT( * ) WHEN - 5 THEN NULL END * + COALESCE ( - 91, - 37, - - 18 * + COALESCE ( 31, CAST( NULL AS SIGNED ) * - 91 - + 96 ) - - COUNT( * ) + + 55 ) + + 0
----
NULL

skipif mysql # not compatible
query I rowsort label-3228
SELECT - ( + + 60 ) * 77 + - CASE + CASE + - MIN ( 25 ) WHEN + + 31 * 29 * + COUNT ( * ) THEN NULL ELSE + 93 * + CAST ( NULL AS REAL ) * 81 END WHEN + 92 THEN COUNT ( * ) WHEN - 5 THEN NULL END * + COALESCE ( - 91, - 37, - - 18 * + COALESCE ( 31, CAST ( NULL AS INTEGER ) * - 91 - + 96 ) - - COUNT ( * ) + + 55 ) + + 0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3229
SELECT ALL + 44 * + - 82 + - 81 DIV - 99 - 18 * - 30
----
-3068

skipif mysql # not compatible
query I rowsort label-3229
SELECT ALL + 44 * + - 82 + - 81 / - 99 - 18 * - 30
----
-3068

query I rowsort
SELECT - 1 + - 14
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-3231
SELECT - 78 + - + 68 + - - COUNT( * ) + 92 * - NULLIF ( - - 38, + + 15 ) * - + 7 + + 64 - + - 41 AS col1
----
24432

skipif mysql # not compatible
query I rowsort label-3231
SELECT - 78 + - + 68 + - - COUNT ( * ) + 92 * - NULLIF ( - - 38, + + 15 ) * - + 7 + + 64 - + - 41 AS col1
----
24432

onlyif mysql # aggregate syntax: 
query I rowsort label-3232
SELECT DISTINCT SUM( - 38 ) * - + 56 * - ( 41 ) * + + 27 + ( - - 70 ) * - - ( + - 76 ) + - 38 col2
----
-2361054

skipif mysql # not compatible
query I rowsort label-3232
SELECT DISTINCT SUM ( - 38 ) * - + 56 * - ( 41 ) * + + 27 + ( - - 70 ) * - - ( + - 76 ) + - 38 col2
----
-2361054

onlyif mysql # aggregate syntax: 
query I rowsort label-3233
SELECT ALL + COUNT( * ) + - 80 + + 74 + - - COUNT( * )
----
-4

skipif mysql # not compatible
query I rowsort label-3233
SELECT ALL + COUNT ( * ) + - 80 + + 74 + - - COUNT ( * )
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-3234
SELECT - 30 + 26 + + 53 * + 46 * + COUNT( * ) AS col0
----
2434

skipif mysql # not compatible
query I rowsort label-3234
SELECT - 30 + 26 + + 53 * + 46 * + COUNT ( * ) AS col0
----
2434

onlyif mysql # aggregate syntax: 
query I rowsort label-3235
SELECT ALL - MAX( ( + ( + - 10 ) ) ) * - - 42 - COUNT( * )
----
419

skipif mysql # not compatible
query I rowsort label-3235
SELECT ALL - MAX ( ( + ( + - 10 ) ) ) * - - 42 - COUNT ( * )
----
419

query I rowsort
SELECT - 42 * + 66 AS col1
----
-2772

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3237
SELECT DISTINCT - CASE - ( - 85 ) WHEN 60 THEN - 81 * CASE + + 78 WHEN + 35 * 68 THEN NULL WHEN COUNT( * ) THEN NULL ELSE - 72 * CASE + 57 WHEN - - ( - 6 ) + + - 27 + + + 48 + 82 - - 24 THEN + - COUNT( * ) + - ( - + 59 ) DIV - + CAST( 69 AS SIGNED ) END + - NULLIF ( - 54, + MAX( ALL - + CASE - + 48 WHEN - - 96 THEN - 6 * 54 + + 7 END ) ) * - 21 + + NULLIF ( + 7, + 41 ) + + - 5 + + 9 DIV + 8 END DIV 91 ELSE ( 55 ) END * 57
----
-3135

skipif mysql # not compatible
query I rowsort label-3237
SELECT DISTINCT - CASE - ( - 85 ) WHEN 60 THEN - 81 * CASE + + 78 WHEN + 35 * 68 THEN NULL WHEN COUNT ( * ) THEN NULL ELSE - 72 * CASE + 57 WHEN - - ( - 6 ) + + - 27 + + + 48 + 82 - - 24 THEN + - COUNT ( * ) + - ( - + 59 ) / - + CAST ( 69 AS INTEGER ) END + - NULLIF ( - 54, + MAX ( ALL - + CASE - + 48 WHEN - - 96 THEN - 6 * 54 + + 7 END ) ) * - 21 + + NULLIF ( + 7, + 41 ) + + - 5 + + 9 / + 8 END / 91 ELSE ( 55 ) END * 57
----
-3135

onlyif mysql # aggregate syntax: 
query I rowsort label-3238
SELECT DISTINCT - NULLIF ( - + 69, + + 20 ) - - 42 + - 85 * + 31 * - + COUNT( * ) AS col0
----
2746

skipif mysql # not compatible
query I rowsort label-3238
SELECT DISTINCT - NULLIF ( - + 69, + + 20 ) - - 42 + - 85 * + 31 * - + COUNT ( * ) AS col0
----
2746

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-3240
SELECT 56 AS col2, - COUNT( * ) + + - 54 * + + 41 * - 18 AS col2
----
56
39851

skipif mysql # not compatible
query II rowsort label-3240
SELECT 56 AS col2, - COUNT ( * ) + + - 54 * + + 41 * - 18 AS col2
----
56
39851

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

skipif mysql # not compatible
query I rowsort label-3241
SELECT DISTINCT + COUNT ( * ) / - - 29 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3242
SELECT - 36 * + + MIN( ALL 23 ) + 79
----
-749

skipif mysql # not compatible
query I rowsort label-3242
SELECT - 36 * + + MIN ( ALL 23 ) + 79
----
-749

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3243
SELECT ALL 79 * NULLIF ( + 43, - COUNT( * ) ) * - + 69 * - COALESCE ( + - 30, - + COALESCE ( + 8, + + 6 DIV + ( - + 99 ) ) ) AS col0
----
-7031790

skipif mysql # not compatible
query I rowsort label-3243
SELECT ALL 79 * NULLIF ( + 43, - COUNT ( * ) ) * - + 69 * - COALESCE ( + - 30, - + COALESCE ( + 8, + + 6 / + ( - + 99 ) ) ) AS col0
----
-7031790

query II rowsort
SELECT 31 AS col0, + 39 col2
----
31
39

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3245
SELECT + 19 / + 47 * - 2 - - + 87 * - 26 * - NULLIF ( + 84, - 53 ) * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3245
SELECT + 19 / + 47 * - 2 - - + 87 * - 26 * - NULLIF ( + 84, - 53 ) * - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3246
SELECT ALL - COUNT( * ) * - 1 DIV - - 17 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3246
SELECT ALL - COUNT ( * ) * - 1 / - - 17 AS col0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3247
SELECT + - 30 + - + 57 DIV 32
----
-31

skipif mysql # not compatible
query I rowsort label-3247
SELECT + - 30 + - + 57 / 32
----
-31

query I rowsort
SELECT + + 19 * + + 62 AS col2
----
1178

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

skipif mysql # not compatible
query I rowsort label-3249
SELECT - - SUM ( ALL 1 )
----
1

query I rowsort
SELECT DISTINCT - 97 * 78
----
-7566

onlyif mysql # aggregate syntax: 
query I rowsort label-3251
SELECT DISTINCT NULLIF ( - SUM( DISTINCT + 42 ), + 74 ) AS col1
----
-42

skipif mysql # not compatible
query I rowsort label-3251
SELECT DISTINCT NULLIF ( - SUM ( DISTINCT + 42 ), + 74 ) AS col1
----
-42

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3252
SELECT ALL + 75 DIV MIN( - 95 ) + + - COUNT( * )
----
-1

skipif mysql # not compatible
query I rowsort label-3252
SELECT ALL + 75 / MIN ( - 95 ) + + - COUNT ( * )
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3253
SELECT ALL 34 DIV - - COUNT( ( ( - 98 ) ) ) + 6
----
40

skipif mysql # not compatible
query I rowsort label-3253
SELECT ALL 34 / - - COUNT ( ( ( - 98 ) ) ) + 6
----
40

query I rowsort
SELECT + 79 - + NULLIF ( - - 52, - 92 + + + 46 ) col1
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-3255
SELECT + COUNT( 10 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-3255
SELECT + COUNT ( 10 ) AS col2
----
1

query II rowsort
SELECT - 77 AS col0, - 68
----
-77
-68

query I rowsort
SELECT + NULLIF ( - - 24, 54 ) * - 60 + - 34
----
-1474

query I rowsort
SELECT ALL - 49 * - 18 AS col1
----
882

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3259
SELECT DISTINCT + CASE - 75 WHEN - 87 - + 48 THEN 40 * - 23 WHEN 17 THEN + 9 END * + 44 + + 2 + MIN( DISTINCT + + 41 ) * + - 49 * - - 44 * 39 + - - COALESCE ( - - 96, + MIN( 63 ) - CASE - + COUNT( * ) WHEN - CAST( - - 91 AS SIGNED ) THEN + 50 * + 70 + 70 END ) * - + 14 * COUNT( 98 ) / - 18
----
NULL

skipif mysql # not compatible
query I rowsort label-3259
SELECT DISTINCT + CASE - 75 WHEN - 87 - + 48 THEN 40 * - 23 WHEN 17 THEN + 9 END * + 44 + + 2 + MIN ( DISTINCT + + 41 ) * + - 49 * - - 44 * 39 + - - COALESCE ( - - 96, + MIN ( 63 ) - CASE - + COUNT ( * ) WHEN - CAST ( - - 91 AS INTEGER ) THEN + 50 * + 70 + 70 END ) * - + 14 * COUNT ( 98 ) / - 18
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3260
SELECT DISTINCT 31 DIV - - SUM( ALL - 90 )
----
0

skipif mysql # not compatible
query I rowsort label-3260
SELECT DISTINCT 31 / - - SUM ( ALL - 90 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3261
SELECT ALL + 0 * + 5 + - COUNT( * ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-3261
SELECT ALL + 0 * + 5 + - COUNT ( * ) AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3262
SELECT ALL + COUNT( * ) * + 97 + + 95 + - COUNT( * ) + COUNT( * ) + - 98 * 24 * - SUM( + 37 ) * - 69 AS col0
----
-6004464

skipif mysql # not compatible
query I rowsort label-3262
SELECT ALL + COUNT ( * ) * + 97 + + 95 + - COUNT ( * ) + COUNT ( * ) + - 98 * 24 * - SUM ( + 37 ) * - 69 AS col0
----
-6004464

onlyif mysql # aggregate syntax: 
query I rowsort label-3263
SELECT ALL SUM( ALL + - 95 ) * - - 57
----
-5415

skipif mysql # not compatible
query I rowsort label-3263
SELECT ALL SUM ( ALL + - 95 ) * - - 57
----
-5415

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

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

query I rowsort
SELECT - 37 - 32 * - 9 + + 60 AS col1
----
311

query I rowsort
SELECT DISTINCT COALESCE ( - - 43, + ( + 46 ) ) * - + 88 + ( 53 )
----
-3731

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

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

query I rowsort
SELECT 69 * - 78 - 22 AS col0
----
-5404

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

skipif mysql # not compatible
query I rowsort label-3269
SELECT - COUNT ( * ) / + 12 col0
----
0

query I rowsort
SELECT - 24 * 35
----
-840

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3271
SELECT COALESCE ( - ( + 11 ), + CASE - 5 WHEN + ( + 54 ) THEN - 19 WHEN - - AVG ( ALL + - 1 ) THEN + 70 WHEN + 42 * - 69 THEN COUNT( * ) WHEN - 25 + + + NULLIF ( + + 37, + COALESCE ( + + 70, - CAST( - ( - COUNT( * ) ) AS SIGNED ), + - ( + 39 ) ) ) - + 57 - - COUNT( * ) * - + 93 + + COALESCE ( - 32, - ( 54 ) ) THEN 80 * + 94 + - ( - 6 ) - - - 78 * - 77 - 90 + + + 53 END - 94, COUNT( * ) )
----
-11

skipif mysql # not compatible
query I rowsort label-3271
SELECT COALESCE ( - ( + 11 ), + CASE - 5 WHEN + ( + 54 ) THEN - 19 WHEN - - AVG ( ALL + - 1 ) THEN + 70 WHEN + 42 * - 69 THEN COUNT ( * ) WHEN - 25 + + + NULLIF ( + + 37, + COALESCE ( + + 70, - CAST ( - ( - COUNT ( * ) ) AS INTEGER ), + - ( + 39 ) ) ) - + 57 - - COUNT ( * ) * - + 93 + + COALESCE ( - 32, - ( 54 ) ) THEN 80 * + 94 + - ( - 6 ) - - - 78 * - 77 - 90 + + + 53 END - 94, COUNT ( * ) )
----
-11

query II rowsort
SELECT ALL + ( + - 88 ) AS col1, - 71 + - 76 + + 97
----
-88
-50

query I rowsort
SELECT COALESCE ( 80, + NULLIF ( + 56, - 7 ) ) AS col1
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-3274
SELECT COALESCE ( - NULLIF ( + NULLIF ( + 96, 8 ), - 98 ), ( 28 ) * COUNT( * ) )
----
-96

skipif mysql # not compatible
query I rowsort label-3274
SELECT COALESCE ( - NULLIF ( + NULLIF ( + 96, 8 ), - 98 ), ( 28 ) * COUNT ( * ) )
----
-96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3275
SELECT ALL 97 * - CAST( 32 AS SIGNED ) - - - 9 + + + 13 AS col0
----
-3100

skipif mysql # not compatible
query I rowsort label-3275
SELECT ALL 97 * - CAST ( 32 AS INTEGER ) - - - 9 + + + 13 AS col0
----
-3100

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3276
SELECT - 88 - - 46 + + 67 - 83 / - 53 + + - 70 - + 56 * - 31 + - - NULLIF ( + 5, - COUNT( * ) ) + + - 59 + - COUNT( * ) * - 94 / + CAST( NULL AS DECIMAL ) / 75 * 70 + 28
----
NULL

skipif mysql # not compatible
query I rowsort label-3276
SELECT - 88 - - 46 + + 67 - 83 / - 53 + + - 70 - + 56 * - 31 + - - NULLIF ( + 5, - COUNT ( * ) ) + + - 59 + - COUNT ( * ) * - 94 / + CAST ( NULL AS REAL ) / 75 * 70 + 28
----
NULL

query I rowsort
SELECT DISTINCT + 33 * + 40 * + - 75 AS col0
----
-99000

onlyif mysql # aggregate syntax: 
query I rowsort label-3278
SELECT DISTINCT CASE - 87 WHEN + 46 THEN NULL WHEN - MAX( DISTINCT + 40 ) THEN 17 + + - ( 25 ) - + - 46 + - COUNT( * ) * - 48 / + 64 END col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3278
SELECT DISTINCT CASE - 87 WHEN + 46 THEN NULL WHEN - MAX ( DISTINCT + 40 ) THEN 17 + + - ( 25 ) - + - 46 + - COUNT ( * ) * - 48 / + 64 END col2
----
NULL

query I rowsort
SELECT ALL + 16 * + 50
----
800

query I rowsort
SELECT - 52 + + - 89
----
-141

onlyif mysql # aggregate syntax: 
query I rowsort label-3281
SELECT - + SUM( DISTINCT - 67 ) + - ( NULLIF ( + 99, + 4 * COUNT( * ) ) ) * + MAX( ALL - - 75 ) AS col0
----
-7358

skipif mysql # not compatible
query I rowsort label-3281
SELECT - + SUM ( DISTINCT - 67 ) + - ( NULLIF ( + 99, + 4 * COUNT ( * ) ) ) * + MAX ( ALL - - 75 ) AS col0
----
-7358

query I rowsort
SELECT - - 90 + + 15 * - - 1
----
105

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3284
SELECT ALL 13 + + MIN( - CASE 27 WHEN - - 18 * 35 * 63 THEN + 68 ELSE NULL END ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3284
SELECT ALL 13 + + MIN ( - CASE 27 WHEN - - 18 * 35 * 63 THEN + 68 ELSE NULL END ) AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3285
SELECT ALL COUNT( * ) DIV - 67 * 50 + COUNT( * ) DIV + 89 + + 59
----
59

skipif mysql # not compatible
query I rowsort label-3285
SELECT ALL COUNT ( * ) / - 67 * 50 + COUNT ( * ) / + 89 + + 59
----
59

query I rowsort
SELECT ALL + 44 + + 73 + + 19
----
136

query I rowsort
SELECT + 63 + + + 29 * - + 13
----
-314

query I rowsort
SELECT + 72 * - 35 + 3 col0
----
-2517

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3290
SELECT ALL + ( - + 38 ) * 77 - + COALESCE ( + 23, - NULLIF ( - NULLIF ( - - COALESCE ( - 74, - 15 ), + 15 / 46 + 42 + + + 85 / + NULLIF ( + 53, - 71 + 53 ) * + 64 ), + + 98 + + COUNT( * ) + - ( + 26 ) - COUNT( * ) + + 15 * - - 77 * + - COALESCE ( + CASE + 20 WHEN - 2 + + 50 THEN NULL ELSE 29 END, 42 ) - + CASE + 12 WHEN 81 THEN NULL WHEN - 2 * + + 20 THEN NULL WHEN 20 THEN + 20 END + COUNT( * ) / 21 ), 16 * 18 ) * 10 AS col0
----
-3156

skipif mysql # not compatible
query I rowsort label-3290
SELECT ALL + ( - + 38 ) * 77 - + COALESCE ( + 23, - NULLIF ( - NULLIF ( - - COALESCE ( - 74, - 15 ), + 15 / 46 + 42 + + + 85 / + NULLIF ( + 53, - 71 + 53 ) * + 64 ), + + 98 + + COUNT ( * ) + - ( + 26 ) - COUNT ( * ) + + 15 * - - 77 * + - COALESCE ( + CASE + 20 WHEN - 2 + + 50 THEN NULL ELSE 29 END, 42 ) - + CASE + 12 WHEN 81 THEN NULL WHEN - 2 * + + 20 THEN NULL WHEN 20 THEN + 20 END + COUNT ( * ) / 21 ), 16 * 18 ) * 10 AS col0
----
-3156

onlyif mysql # aggregate syntax: 
query I rowsort label-3291
SELECT ALL COUNT( * ) + + CASE - - 45 WHEN COUNT( * ) THEN + 18 WHEN + 90 / + 80 + - 26 THEN NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3291
SELECT ALL COUNT ( * ) + + CASE - - 45 WHEN COUNT ( * ) THEN + 18 WHEN + 90 / + 80 + - 26 THEN NULL END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3292
SELECT DISTINCT COUNT( * ) * + 22 * - + 42
----
-924

skipif mysql # not compatible
query I rowsort label-3292
SELECT DISTINCT COUNT ( * ) * + 22 * - + 42
----
-924

onlyif mysql # aggregate syntax: 
query I rowsort label-3293
SELECT ALL - MIN( - 38 )
----
38

skipif mysql # not compatible
query I rowsort label-3293
SELECT ALL - MIN ( - 38 )
----
38

query I rowsort
SELECT ALL 19 - - 76
----
95

query I rowsort
SELECT 15 + - + 78 AS col0
----
-63

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3296
SELECT NULLIF ( - 70, 85 * + AVG ( ALL + CAST( NULL AS SIGNED ) ) + 92 / - + 24 ) * - - COUNT( * ) + - 83 AS col1
----
-153

skipif mysql # not compatible
query I rowsort label-3296
SELECT NULLIF ( - 70, 85 * + AVG ( ALL + CAST ( NULL AS INTEGER ) ) + 92 / - + 24 ) * - - COUNT ( * ) + - 83 AS col1
----
-153

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3297
SELECT CAST( + - 89 AS SIGNED ) * - 32 + 35
----
2883

skipif mysql # not compatible
query I rowsort label-3297
SELECT CAST ( + - 89 AS INTEGER ) * - 32 + 35
----
2883

query I rowsort
SELECT - 93 * - 11 * 89 + 92 AS col1
----
91139

onlyif mysql # aggregate syntax: 
query II rowsort label-3299
SELECT 34 + - 24 * - COUNT( * ) AS col1, - 83 AS col2
----
58
-83

skipif mysql # not compatible
query II rowsort label-3299
SELECT 34 + - 24 * - COUNT ( * ) AS col1, - 83 AS col2
----
58
-83

query I rowsort
SELECT ALL 65 * + NULLIF ( + 42, - + 60 * - 53 + - + 61 - - 38 * 4 ) * + 70 * + 90 + 74
----
17199074

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3301
SELECT ALL CAST( 55 AS SIGNED ) DIV COUNT( * ) AS col0
----
55

skipif mysql # not compatible
query I rowsort label-3301
SELECT ALL CAST ( 55 AS INTEGER ) / COUNT ( * ) AS col0
----
55

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

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

query II rowsort
SELECT ALL - 24 AS col1, 74 * + + 12
----
-24
888

onlyif mysql # aggregate syntax: 
query I rowsort label-3304
SELECT COUNT( * ) * 80 * + 11 * + + 46 AS col0
----
40480

skipif mysql # not compatible
query I rowsort label-3304
SELECT COUNT ( * ) * 80 * + 11 * + + 46 AS col0
----
40480

query I rowsort
SELECT 79 + + 56 AS col2
----
135

query II rowsort
SELECT 81 AS col0, - 32
----
81
-32

query I rowsort
SELECT + 98 * - 97 + - + 91 * - 5 col1
----
-9051

query I rowsort
SELECT 87 + 30
----
117

query III rowsort
SELECT ALL 43 AS col0, + 47 * 63 AS col0, + 14 + - - 16 + - 15
----
43
2961
15

onlyif mysql # aggregate syntax: 
query II rowsort label-3310
SELECT ALL NULLIF ( - 42, MIN( DISTINCT 64 ) ) + 43, 66 - + - COUNT( * ) - + + 71 * - + 33 AS col0
----
1
2410

skipif mysql # not compatible
query II rowsort label-3310
SELECT ALL NULLIF ( - 42, MIN ( DISTINCT 64 ) ) + 43, 66 - + - COUNT ( * ) - + + 71 * - + 33 AS col0
----
1
2410

query I rowsort
SELECT DISTINCT + - 72 * - 40
----
2880

query I rowsort
SELECT 13 * + 45
----
585

onlyif mysql # aggregate syntax: 
query III rowsort label-3313
SELECT ALL + COUNT( * ) + + COALESCE ( - 11, COUNT( * ), - - 66 ) AS col0, COUNT( * ) * 37 * + 52, 35 + 21 + - 71 / - COUNT( + 69 ) * - + 88 + 81 + CASE ( - 81 ) WHEN 94 * - 64 THEN NULL WHEN - - 20 * - COALESCE ( 16, - 15 ) * - 34 + + 84 THEN + + 48 + + - 32 + - + 72 WHEN + - CASE + 88 WHEN - - 80 THEN NULL ELSE + COUNT( * ) END * + 59 / 53 * + - 23 * + + NULLIF ( + + 28, + ( + 3 ) ) THEN 0 + + COUNT( * ) / - 14 END + + COUNT( * ) / 75 / 14 AS col2
----
-10
1924
NULL

skipif mysql # not compatible
query III rowsort label-3313
SELECT ALL + COUNT ( * ) + + COALESCE ( - 11, COUNT ( * ), - - 66 ) AS col0, COUNT ( * ) * 37 * + 52, 35 + 21 + - 71 / - COUNT ( + 69 ) * - + 88 + 81 + CASE ( - 81 ) WHEN 94 * - 64 THEN NULL WHEN - - 20 * - COALESCE ( 16, - 15 ) * - 34 + + 84 THEN + + 48 + + - 32 + - + 72 WHEN + - CASE + 88 WHEN - - 80 THEN NULL ELSE + COUNT ( * ) END * + 59 / 53 * + - 23 * + + NULLIF ( + + 28, + ( + 3 ) ) THEN 0 + + COUNT ( * ) / - 14 END + + COUNT ( * ) / 75 / 14 AS col2
----
-10
1924
NULL

query I rowsort
SELECT ALL - - 59 + + 43
----
102

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3315
SELECT ALL - - COALESCE ( - ( - 77 ), + 93 + - COUNT( * ) DIV MIN( + 88 ) ) + - + 16
----
61

skipif mysql # not compatible
query I rowsort label-3315
SELECT ALL - - COALESCE ( - ( - 77 ), + 93 + - COUNT ( * ) / MIN ( + 88 ) ) + - + 16
----
61

query I rowsort
SELECT 46 - - 81
----
127

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

query I rowsort
SELECT 5 * 57 AS col1
----
285

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

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

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

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

query I rowsort
SELECT DISTINCT + 65 + 40 AS col0
----
105

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3322
SELECT ALL - + 55 + CAST( + NULLIF ( 74, - 46 * - 72 + 77 ) AS SIGNED ) + - + 90 * + CAST( NULL AS DECIMAL ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3322
SELECT ALL - + 55 + CAST ( + NULLIF ( 74, - 46 * - 72 + 77 ) AS INTEGER ) + - + 90 * + CAST ( NULL AS REAL ) AS col1
----
NULL

query I rowsort
SELECT - 97 - + 18 AS col2
----
-115

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

query I rowsort
SELECT 18 + - 31 - - 97 col2
----
84

onlyif mysql # DIV for integer division: 
query I rowsort label-3326
SELECT 54 DIV 15
----
3

skipif mysql # not compatible
query I rowsort label-3326
SELECT 54 / 15
----
3

query I rowsort
SELECT ALL - 14 * + 0
----
0

query I rowsort
SELECT 25 * - 91
----
-2275

query I rowsort
SELECT DISTINCT 30 * - ( - 27 ) AS col1
----
810

query II rowsort
SELECT ALL - 8 AS col1, 3
----
-8
3

onlyif mysql # aggregate syntax: 
query II rowsort label-3331
SELECT ALL - 24 AS col0, - 57 * + 85 + - SUM( DISTINCT 74 ) AS col2
----
-24
-4919

skipif mysql # not compatible
query II rowsort label-3331
SELECT ALL - 24 AS col0, - 57 * + 85 + - SUM ( DISTINCT 74 ) AS col2
----
-24
-4919

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

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

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

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

query I rowsort
SELECT NULLIF ( 17, - 49 ) * - 49 * - + 75 AS col2
----
62475

query II rowsort
SELECT + 1 AS col0, + 29 + - 20 + - 76 + - NULLIF ( - 51, + + 48 )
----
1
-16

query I rowsort
SELECT 69 * + ( + 50 )
----
3450

onlyif mysql # aggregate syntax: 
query I rowsort label-3337
SELECT ALL + COUNT( * ) + 8 * + COUNT( * ) * 32
----
257

skipif mysql # not compatible
query I rowsort label-3337
SELECT ALL + COUNT ( * ) + 8 * + COUNT ( * ) * 32
----
257

query I rowsort
SELECT DISTINCT - ( 33 ) + 59 AS col0
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-3339
SELECT DISTINCT 17 + + + 30 + + 2 * - - 54 * NULLIF ( COUNT( * ), - - 40 * - 59 )
----
155

skipif mysql # not compatible
query I rowsort label-3339
SELECT DISTINCT 17 + + + 30 + + 2 * - - 54 * NULLIF ( COUNT ( * ), - - 40 * - 59 )
----
155

query II rowsort
SELECT DISTINCT - ( - - 20 ), 68 AS col2
----
-20
68

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-3342
SELECT ALL + 77 + COUNT( * ), + 13 AS col0
----
78
13

skipif mysql # not compatible
query II rowsort label-3342
SELECT ALL + 77 + COUNT ( * ), + 13 AS col0
----
78
13

onlyif mysql # aggregate syntax: 
query II rowsort label-3343
SELECT 18 col2, - COUNT( * )
----
18
-1

skipif mysql # not compatible
query II rowsort label-3343
SELECT 18 col2, - COUNT ( * )
----
18
-1

query I rowsort
SELECT ALL - 27 + 65 AS col1
----
38

query I rowsort
SELECT - 1 - + - ( - 44 ) - + 29 AS col2
----
-74

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3346
SELECT DISTINCT - + CAST( - 42 AS SIGNED ) + - + 32 * COUNT( * ) * + - 45 * - - 75 AS col2
----
108042

skipif mysql # not compatible
query I rowsort label-3346
SELECT DISTINCT - + CAST ( - 42 AS INTEGER ) + - + 32 * COUNT ( * ) * + - 45 * - - 75 AS col2
----
108042

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3347
SELECT 55 AS col0, - CAST( - 40 AS SIGNED ) AS col1
----
55
40

skipif mysql # not compatible
query II rowsort label-3347
SELECT 55 AS col0, - CAST ( - 40 AS INTEGER ) AS col1
----
55
40

onlyif mysql # aggregate syntax: 
query I rowsort label-3348
SELECT DISTINCT - 25 * - COUNT( * ) + - MIN( 21 )
----
4

skipif mysql # not compatible
query I rowsort label-3348
SELECT DISTINCT - 25 * - COUNT ( * ) + - MIN ( 21 )
----
4

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3349
SELECT ( CASE 7 WHEN COUNT( * ) THEN + COUNT( * ) * CAST( + 51 AS DECIMAL ) WHEN + + 52 + - - CAST( NULL AS DECIMAL ) + + COUNT( * ) THEN NULL END ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3349
SELECT ( CASE 7 WHEN COUNT ( * ) THEN + COUNT ( * ) * CAST ( + 51 AS REAL ) WHEN + + 52 + - - CAST ( NULL AS REAL ) + + COUNT ( * ) THEN NULL END ) AS col1
----
NULL

query I rowsort
SELECT DISTINCT NULLIF ( 72, 81 / + 13 ) - + 15
----
57

query I rowsort
SELECT ALL - 70 * + 18 * + + 2
----
-2520

query I rowsort
SELECT ALL NULLIF ( + 45, - 38 - 13 )
----
45

query I rowsort
SELECT ALL + 0 - - 67 AS col1
----
67

onlyif mysql # aggregate syntax: 
query I rowsort label-3354
SELECT DISTINCT MAX( ALL + 42 ) AS col1
----
42

skipif mysql # not compatible
query I rowsort label-3354
SELECT DISTINCT MAX ( ALL + 42 ) AS col1
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-3355
SELECT - + 31 + - 95 - + 78 + + COUNT( * ) * - 37
----
-241

skipif mysql # not compatible
query I rowsort label-3355
SELECT - + 31 + - 95 - + 78 + + COUNT ( * ) * - 37
----
-241

onlyif mysql # aggregate syntax: 
query I rowsort label-3356
SELECT + 48 * COALESCE ( - COUNT( * ), + COUNT( * ), - 43 ) * - - MIN( ALL - 8 ) col0
----
384

skipif mysql # not compatible
query I rowsort label-3356
SELECT + 48 * COALESCE ( - COUNT ( * ), + COUNT ( * ), - 43 ) * - - MIN ( ALL - 8 ) col0
----
384

query I rowsort
SELECT - 31 * - 45 col0
----
1395

onlyif mysql # aggregate syntax: 
query II rowsort label-3358
SELECT ALL - COUNT( * ) * 12, - 92 + - COUNT( * ) AS col0
----
-12
-93

skipif mysql # not compatible
query II rowsort label-3358
SELECT ALL - COUNT ( * ) * 12, - 92 + - COUNT ( * ) AS col0
----
-12
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-3359
SELECT ALL COUNT( DISTINCT 14 ) col1
----
1

skipif mysql # not compatible
query I rowsort label-3359
SELECT ALL COUNT ( DISTINCT 14 ) col1
----
1

query II rowsort
SELECT - ( + 35 ) AS col2, + 64 + 45
----
-35
109

onlyif mysql # aggregate syntax: 
query I rowsort label-3361
SELECT ALL COALESCE ( ( - 94 ), COUNT( DISTINCT + + 35 ) + + 72 ) AS col2
----
-94

skipif mysql # not compatible
query I rowsort label-3361
SELECT ALL COALESCE ( ( - 94 ), COUNT ( DISTINCT + + 35 ) + + 72 ) AS col2
----
-94

query I rowsort
SELECT - 95 * + 89 * + + 97 AS col0
----
-820135

query I rowsort
SELECT ALL + ( - 48 ) col1
----
-48

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3364
SELECT ALL - 83 DIV + COUNT( * ) AS col2, - ( + COUNT( * ) ) - 76
----
-83
-77

skipif mysql # not compatible
query II rowsort label-3364
SELECT ALL - 83 / + COUNT ( * ) AS col2, - ( + COUNT ( * ) ) - 76
----
-83
-77

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

skipif mysql # not compatible
query I rowsort label-3365
SELECT - COUNT ( * ) / 87
----
0

query I rowsort
SELECT ALL 28 * + - 72 * + - ( + + 25 ) + + + 87 AS col1
----
50487

onlyif mysql # aggregate syntax: 
query I rowsort label-3367
SELECT 48 * 40 + - COUNT( * )
----
1919

skipif mysql # not compatible
query I rowsort label-3367
SELECT 48 * 40 + - COUNT ( * )
----
1919

onlyif mysql # aggregate syntax: 
query I rowsort label-3368
SELECT + COUNT( * ) - 16 + + 67 + - + COUNT( * ) + + COALESCE ( - - 98, 62 ) * CASE + 48 WHEN - MAX( DISTINCT 60 ) THEN - + 67 * COUNT( * ) / - 71 WHEN + 57 THEN - 43 ELSE NULL END * + ( + + 98 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3368
SELECT + COUNT ( * ) - 16 + + 67 + - + COUNT ( * ) + + COALESCE ( - - 98, 62 ) * CASE + 48 WHEN - MAX ( DISTINCT 60 ) THEN - + 67 * COUNT ( * ) / - 71 WHEN + 57 THEN - 43 ELSE NULL END * + ( + + 98 ) AS col0
----
NULL

query I rowsort
SELECT + 11 - - - 90
----
-79

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3370
SELECT ALL 72 * + MIN( ALL + 5 ) + - ( - CAST( NULL AS SIGNED ) ) AS col2, + 78
----
NULL
78

skipif mysql # not compatible
query II rowsort label-3370
SELECT ALL 72 * + MIN ( ALL + 5 ) + - ( - CAST ( NULL AS INTEGER ) ) AS col2, + 78
----
NULL
78

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

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

query I rowsort
SELECT NULLIF ( - + NULLIF ( - 25, - 94 + + 47 ), - 77 * + 61 + - 75 )
----
25

query I rowsort
SELECT ALL ( + ( 46 ) ) * - 93 + + 86 * - 50 AS col1
----
-8578

query I rowsort
SELECT ALL 38 * - 52 + + 76
----
-1900

onlyif mysql # aggregate syntax: 
query I rowsort label-3375
SELECT + - 23 * + 21 + + ( + SUM( - 33 ) )
----
-516

skipif mysql # not compatible
query I rowsort label-3375
SELECT + - 23 * + 21 + + ( + SUM ( - 33 ) )
----
-516

onlyif mysql # aggregate syntax: 
query I rowsort label-3376
SELECT ALL - - 88 * COUNT( * ) * - SUM( ALL + 70 )
----
-6160

skipif mysql # not compatible
query I rowsort label-3376
SELECT ALL - - 88 * COUNT ( * ) * - SUM ( ALL + 70 )
----
-6160

onlyif mysql # aggregate syntax: 
query I rowsort label-3377
SELECT - CASE + ( - 91 ) WHEN - ( + 82 ) THEN + 56 / - - COUNT( * ) * + 96 / + 48 END
----
NULL

skipif mysql # not compatible
query I rowsort label-3377
SELECT - CASE + ( - 91 ) WHEN - ( + 82 ) THEN + 56 / - - COUNT ( * ) * + 96 / + 48 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3378
SELECT + 72 * 6 + 96 + 22 * + 44 + NULLIF ( - - MAX( + 64 ), - ( + 57 ) * 26 + + - 80 ) AS col0
----
1560

skipif mysql # not compatible
query I rowsort label-3378
SELECT + 72 * 6 + 96 + 22 * + 44 + NULLIF ( - - MAX ( + 64 ), - ( + 57 ) * 26 + + - 80 ) AS col0
----
1560

query II rowsort
SELECT - 2 * + 95 AS col0, - 86
----
-190
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-3380
SELECT - MAX( - - 33 )
----
-33

skipif mysql # not compatible
query I rowsort label-3380
SELECT - MAX ( - - 33 )
----
-33

onlyif mysql # DIV for integer division: 
query I rowsort label-3381
SELECT DISTINCT - - 63 * + 48 - + 42 DIV 2
----
3003

skipif mysql # not compatible
query I rowsort label-3381
SELECT DISTINCT - - 63 * + 48 - + 42 / 2
----
3003

query I rowsort
SELECT + + 60 * - + 23
----
-1380

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-3385
SELECT ALL - COALESCE ( + - 67, + 66 + COUNT( * ) * + 41 + - + 63 ) * COUNT( * ) AS col0, - 30 - 31
----
67
-61

skipif mysql # not compatible
query II rowsort label-3385
SELECT ALL - COALESCE ( + - 67, + 66 + COUNT ( * ) * + 41 + - + 63 ) * COUNT ( * ) AS col0, - 30 - 31
----
67
-61

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3386
SELECT + + ( + COUNT( * ) ) DIV - 87 - + 76 DIV - 33
----
2

skipif mysql # not compatible
query I rowsort label-3386
SELECT + + ( + COUNT ( * ) ) / - 87 - + 76 / - 33
----
2

onlyif mysql # DIV for integer division: 
query I rowsort label-3387
SELECT ALL 35 DIV - 73 * - - 42 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3387
SELECT ALL 35 / - 73 * - - 42 AS col1
----
0

query I rowsort
SELECT DISTINCT - 71 * - 76 AS col1
----
5396

query I rowsort
SELECT + - 66 * - 5 col1
----
330

query I rowsort
SELECT + ( - - COALESCE ( - - 96, + - 72 + - 45 ) ) - - 65 AS col0
----
161

onlyif mysql # aggregate syntax: 
query I rowsort label-3391
SELECT + 45 - + COALESCE ( - COUNT( * ), - COUNT( * ) )
----
46

skipif mysql # not compatible
query I rowsort label-3391
SELECT + 45 - + COALESCE ( - COUNT ( * ), - COUNT ( * ) )
----
46

onlyif mysql # aggregate syntax: 
query II rowsort label-3392
SELECT - - 69 * - COUNT( * ) AS col2, 30 AS col2
----
-69
30

skipif mysql # not compatible
query II rowsort label-3392
SELECT - - 69 * - COUNT ( * ) AS col2, 30 AS col2
----
-69
30

onlyif mysql # aggregate syntax: 
query II rowsort label-3393
SELECT DISTINCT COUNT( * ) AS col0, - 31 + 24 AS col1
----
1
-7

skipif mysql # not compatible
query II rowsort label-3393
SELECT DISTINCT COUNT ( * ) AS col0, - 31 + 24 AS col1
----
1
-7

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

skipif mysql # not compatible
query I rowsort label-3394
SELECT ALL ( + + 82 ) / 88 + + - COUNT ( * ) AS col2
----
-1

query I rowsort
SELECT ALL NULLIF ( 12, - 58 / 87 * 15 * + 20 )
----
12

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3396
SELECT + COUNT( * ) - + ( - - ( - 20 ) ) - 2 + - 99 + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3396
SELECT + COUNT ( * ) - + ( - - ( - 20 ) ) - 2 + - 99 + - CAST ( NULL AS INTEGER )
----
NULL

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3398
SELECT - CASE - 64 WHEN 10 THEN NULL WHEN + CAST( - COUNT( * ) AS SIGNED ) - - - 13 + - 41 * - 1 * + 81 * - - 34 THEN - + 16 * + + 4 + + 65 WHEN - 69 THEN NULL ELSE - 47 + + 44 END + - + 35
----
-32

skipif mysql # not compatible
query I rowsort label-3398
SELECT - CASE - 64 WHEN 10 THEN NULL WHEN + CAST ( - COUNT ( * ) AS INTEGER ) - - - 13 + - 41 * - 1 * + 81 * - - 34 THEN - + 16 * + + 4 + + 65 WHEN - 69 THEN NULL ELSE - 47 + + 44 END + - + 35
----
-32

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3400
SELECT + 6 * + - SUM( - 17 ) / + + 65 + - - CAST( - + 33 AS SIGNED ) + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3400
SELECT + 6 * + - SUM ( - 17 ) / + + 65 + - - CAST ( - + 33 AS INTEGER ) + - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL + ( - - 1 ) AS col0
----
1

query II rowsort
SELECT + 97 col2, - 87 AS col1
----
97
-87

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3403
SELECT ALL COUNT( * ) DIV COALESCE ( - 29, - - 3 * - 26 ) + MAX( DISTINCT + 8 ) AS col2
----
8

skipif mysql # not compatible
query I rowsort label-3403
SELECT ALL COUNT ( * ) / COALESCE ( - 29, - - 3 * - 26 ) + MAX ( DISTINCT + 8 ) AS col2
----
8

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3404
SELECT - CASE + - 49 WHEN - + 89 THEN NULL ELSE CAST( 38 AS SIGNED ) * + 7 + + 24 END * - COUNT( 8 ) + 51
----
341

skipif mysql # not compatible
query I rowsort label-3404
SELECT - CASE + - 49 WHEN - + 89 THEN NULL ELSE CAST ( 38 AS INTEGER ) * + 7 + + 24 END * - COUNT ( 8 ) + 51
----
341

onlyif mysql # aggregate syntax: 
query II rowsort label-3405
SELECT DISTINCT + 35 + + - 81 + + + COUNT( * ) AS col0, CASE + AVG ( ALL 7 ) WHEN - 45 THEN NULL WHEN - ( + NULLIF ( + 93, + 73 ) ) + - + 21 * 54 THEN NULL ELSE 55 END AS col0
----
-45
55

skipif mysql # not compatible
query II rowsort label-3405
SELECT DISTINCT + 35 + + - 81 + + + COUNT ( * ) AS col0, CASE + AVG ( ALL 7 ) WHEN - 45 THEN NULL WHEN - ( + NULLIF ( + 93, + 73 ) ) + - + 21 * 54 THEN NULL ELSE 55 END AS col0
----
-45
55

onlyif mysql # aggregate syntax: 
query I rowsort label-3406
SELECT DISTINCT - 30 + + COUNT( * ) + 10
----
-19

skipif mysql # not compatible
query I rowsort label-3406
SELECT DISTINCT - 30 + + COUNT ( * ) + 10
----
-19

query I rowsort
SELECT ALL + - 23 + 19
----
-4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3408
SELECT + + 47 * - COUNT( * ) + + CAST( 96 AS SIGNED ) - + - 41 - + 10 * + 60 AS col0
----
-510

skipif mysql # not compatible
query I rowsort label-3408
SELECT + + 47 * - COUNT ( * ) + + CAST ( 96 AS INTEGER ) - + - 41 - + 10 * + 60 AS col0
----
-510

query II rowsort
SELECT + 1, 78 AS col2
----
1
78

onlyif mysql # aggregate syntax: 
query II rowsort label-3410
SELECT 80 * - 82 * 41 - 83 + + - 60 + NULLIF ( 67, 56 + + ( + 62 ) ) * - COUNT( * ) AS col0, + 46 AS col0
----
-269170
46

skipif mysql # not compatible
query II rowsort label-3410
SELECT 80 * - 82 * 41 - 83 + + - 60 + NULLIF ( 67, 56 + + ( + 62 ) ) * - COUNT ( * ) AS col0, + 46 AS col0
----
-269170
46

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3411
SELECT + CAST( + - 87 AS SIGNED ) DIV + 91 + + - 98 AS col2
----
-98

skipif mysql # not compatible
query I rowsort label-3411
SELECT + CAST ( + - 87 AS INTEGER ) / + 91 + + - 98 AS col2
----
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-3412
SELECT ALL - 36 * + + COUNT( * )
----
-36

skipif mysql # not compatible
query I rowsort label-3412
SELECT ALL - 36 * + + COUNT ( * )
----
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-3413
SELECT DISTINCT + COUNT( + - 32 ) * + MAX( + 90 )
----
90

skipif mysql # not compatible
query I rowsort label-3413
SELECT DISTINCT + COUNT ( + - 32 ) * + MAX ( + 90 )
----
90

query I rowsort
SELECT - + 46 * - 40 - 66 - + 72 + - ( - 62 ) * 14
----
2570

onlyif mysql # aggregate syntax: 
query I rowsort label-3415
SELECT ALL - 75 * + MAX( DISTINCT - 60 ) AS col2
----
4500

skipif mysql # not compatible
query I rowsort label-3415
SELECT ALL - 75 * + MAX ( DISTINCT - 60 ) AS col2
----
4500

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3416
SELECT ALL - NULLIF ( CAST( NULL AS SIGNED ), - 75 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3416
SELECT ALL - NULLIF ( CAST ( NULL AS INTEGER ), - 75 ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3417
SELECT ALL NULLIF ( + + 59, + COUNT( * ) * - + ( + 26 ) ) AS col0
----
59

skipif mysql # not compatible
query I rowsort label-3417
SELECT ALL NULLIF ( + + 59, + COUNT ( * ) * - + ( + 26 ) ) AS col0
----
59

query I rowsort
SELECT - 90 * - 57
----
5130

onlyif mysql # aggregate syntax: 
query I rowsort label-3419
SELECT - - 10 * - + 96 + + MIN( DISTINCT 21 ) + 21 AS col0
----
-918

skipif mysql # not compatible
query I rowsort label-3419
SELECT - - 10 * - + 96 + + MIN ( DISTINCT 21 ) + 21 AS col0
----
-918

query II rowsort
SELECT ALL 3 col1, 13 AS col0
----
3
13

query I rowsort
SELECT - 39 * - 49 col0
----
1911

query I rowsort
SELECT 39 + - - 83 + 33 * - 58 + - + 51 AS col1
----
-1843

onlyif mysql # aggregate syntax: 
query I rowsort label-3423
SELECT + COUNT( * ) - + ( - 42 ) AS col2
----
43

skipif mysql # not compatible
query I rowsort label-3423
SELECT + COUNT ( * ) - + ( - 42 ) AS col2
----
43

query I rowsort
SELECT ALL + COALESCE ( + - 1, 21 ) AS col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3425
SELECT ALL 84 + - COUNT( * ) * + - 91
----
175

skipif mysql # not compatible
query I rowsort label-3425
SELECT ALL 84 + - COUNT ( * ) * + - 91
----
175

query I rowsort
SELECT ALL 42 + - + 67 col1
----
-25

query I rowsort
SELECT 53 + + 96 + - + ( - + 58 ) * 6 * + 77 col1
----
26945

onlyif mysql # DIV for integer division: 
query I rowsort label-3428
SELECT DISTINCT ( + + 42 ) + + 79 + + 9 + + 43 DIV + - 1 AS col2
----
87

skipif mysql # not compatible
query I rowsort label-3428
SELECT DISTINCT ( + + 42 ) + + 79 + + 9 + + 43 / + - 1 AS col2
----
87

query II rowsort
SELECT ALL 7 + + - 38 col2, 41 AS col0
----
-31
41

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3430
SELECT 50 + - + 63 + + 40 * - CAST( NULL AS SIGNED ) + - 24 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3430
SELECT 50 + - + 63 + + 40 * - CAST ( NULL AS INTEGER ) + - 24 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3431
SELECT CASE + + CAST( - - 12 AS DECIMAL ) WHEN - 28 THEN - + 50 WHEN + 29 THEN NULL WHEN 91 THEN NULL END * + MAX( + - 55 ) - + + AVG ( DISTINCT 6 ) * + 19
----
NULL

skipif mysql # not compatible
query I rowsort label-3431
SELECT CASE + + CAST ( - - 12 AS REAL ) WHEN - 28 THEN - + 50 WHEN + 29 THEN NULL WHEN 91 THEN NULL END * + MAX ( + - 55 ) - + + AVG ( DISTINCT 6 ) * + 19
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3432
SELECT DISTINCT COUNT( * ) DIV - 38, - 76 AS col1
----
0
-76

skipif mysql # not compatible
query II rowsort label-3432
SELECT DISTINCT COUNT ( * ) / - 38, - 76 AS col1
----
0
-76

query I rowsort
SELECT ALL 94 + + 14 AS col0
----
108

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3434
SELECT CAST( + 43 AS SIGNED ) * - + COUNT( * ) / - - 93 + MIN( DISTINCT - - CASE 9 WHEN + 64 THEN 0 ELSE NULL END )
----
NULL

skipif mysql # not compatible
query I rowsort label-3434
SELECT CAST ( + 43 AS INTEGER ) * - + COUNT ( * ) / - - 93 + MIN ( DISTINCT - - CASE 9 WHEN + 64 THEN 0 ELSE NULL END )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3435
SELECT ALL + COUNT( * ) DIV + SUM( - 17 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3435
SELECT ALL + COUNT ( * ) / + SUM ( - 17 ) AS col0
----
0

query I rowsort
SELECT + 57 * + - 63 + + 1
----
-3590

onlyif mysql # aggregate syntax: 
query I rowsort label-3437
SELECT 36 * - + COUNT( * ) * COUNT( * ) AS col1
----
-36

skipif mysql # not compatible
query I rowsort label-3437
SELECT 36 * - + COUNT ( * ) * COUNT ( * ) AS col1
----
-36

query I rowsort
SELECT + + 85 * + 16 + 82 AS col1
----
1442

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3439
SELECT DISTINCT + 98 * + 93 * 12 + - MIN( + + 79 ) + + + 25 DIV + SUM( + 72 ) * - + 9 AS col1, - 93
----
109289
-93

skipif mysql # not compatible
query II rowsort label-3439
SELECT DISTINCT + 98 * + 93 * 12 + - MIN ( + + 79 ) + + + 25 / + SUM ( + 72 ) * - + 9 AS col1, - 93
----
109289
-93

query I rowsort
SELECT 34 * 38 + + 99 + 14
----
1405

onlyif mysql # aggregate syntax: 
query I rowsort label-3441
SELECT COUNT( * ) * - 80 * + 89 + + + 19 col2
----
-7101

skipif mysql # not compatible
query I rowsort label-3441
SELECT COUNT ( * ) * - 80 * + 89 + + + 19 col2
----
-7101

query I rowsort
SELECT ALL + - 21 * + 26 - - - 7 col0
----
-553

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3443
SELECT ALL - - CASE + CAST( 41 AS SIGNED ) WHEN - 79 * - - COUNT( * ) THEN NULL WHEN + CAST( NULL AS SIGNED ) THEN - 74 - COALESCE ( - - 18, - + CAST( NULL AS SIGNED ) * + 41 * + 93 * - - ( + 39 ) * ( ( 66 ) ) * - - CAST( + 76 AS SIGNED ) + - 36 ) * + 7 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-3443
SELECT ALL - - CASE + CAST ( 41 AS INTEGER ) WHEN - 79 * - - COUNT ( * ) THEN NULL WHEN + CAST ( NULL AS INTEGER ) THEN - 74 - COALESCE ( - - 18, - + CAST ( NULL AS INTEGER ) * + 41 * + 93 * - - ( + 39 ) * ( ( 66 ) ) * - - CAST ( + 76 AS INTEGER ) + - 36 ) * + 7 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3444
SELECT COUNT( * ) + - MIN( + NULLIF ( 74, - 83 ) ) AS col1
----
-73

skipif mysql # not compatible
query I rowsort label-3444
SELECT COUNT ( * ) + - MIN ( + NULLIF ( 74, - 83 ) ) AS col1
----
-73

onlyif mysql # DIV for integer division: 
query I rowsort label-3445
SELECT + 87 DIV + 60 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-3445
SELECT + 87 / + 60 AS col1
----
1

query I rowsort
SELECT - 25 * - 19 + 85 + + + ( + 63 ) AS col0
----
623

onlyif mysql # aggregate syntax: 
query I rowsort label-3447
SELECT ALL - + NULLIF ( + - COUNT( * ), - 85 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-3447
SELECT ALL - + NULLIF ( + - COUNT ( * ), - 85 ) AS col1
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3448
SELECT DISTINCT - MAX( DISTINCT CAST( + - 72 AS SIGNED ) ) AS col1
----
72

skipif mysql # not compatible
query I rowsort label-3448
SELECT DISTINCT - MAX ( DISTINCT CAST ( + - 72 AS INTEGER ) ) AS col1
----
72

query I rowsort
SELECT 74 * - 77 AS col0
----
-5698

query I rowsort
SELECT 5 + 43 col0
----
48

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3451
SELECT ALL + - 4 DIV - 39 + + ( + ( + + COUNT( * ) ) ) + - 41
----
-40

skipif mysql # not compatible
query I rowsort label-3451
SELECT ALL + - 4 / - 39 + + ( + ( + + COUNT ( * ) ) ) + - 41
----
-40

query I rowsort
SELECT - CASE 74 WHEN - 55 THEN NULL ELSE + 48 END + 85 * 1 + 96 + 78 AS col0
----
211

query I rowsort
SELECT DISTINCT - 89 * + - ( - ( + 15 ) ) AS col1
----
-1335

onlyif mysql # DIV for integer division: 
query I rowsort label-3454
SELECT 54 DIV 90 + + - 86 col2
----
-86

skipif mysql # not compatible
query I rowsort label-3454
SELECT 54 / 90 + + - 86 col2
----
-86

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3455
SELECT ALL - - 12 * + 69 * + + 60 / NULLIF ( + + CAST( NULL AS DECIMAL ), + ( 12 ) * ( - 26 ) ) - + 0 * - 13 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3455
SELECT ALL - - 12 * + 69 * + + 60 / NULLIF ( + + CAST ( NULL AS REAL ), + ( 12 ) * ( - 26 ) ) - + 0 * - 13 AS col0
----
NULL

query I rowsort
SELECT ALL 43 + + 55 * - 51 + 98
----
-2664

query I rowsort
SELECT DISTINCT - 70 + - + 90 AS col0
----
-160

query I rowsort
SELECT DISTINCT + ( + 0 ) + - - 61 + + ( - 79 )
----
-18

query I rowsort
SELECT ALL + 97 + + 2
----
99

onlyif mysql # DIV for integer division: 
query I rowsort label-3460
SELECT 53 - - + 7 DIV 21 - 20 AS col1
----
33

skipif mysql # not compatible
query I rowsort label-3460
SELECT 53 - - + 7 / 21 - 20 AS col1
----
33

onlyif mysql # aggregate syntax: 
query II rowsort label-3461
SELECT 65, COUNT( * ) col0
----
65
1

skipif mysql # not compatible
query II rowsort label-3461
SELECT 65, COUNT ( * ) col0
----
65
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3462
SELECT SUM( - ( - COALESCE ( + 47, 75 + + 8 ) ) ) * + - 11 + - COUNT( * )
----
-518

skipif mysql # not compatible
query I rowsort label-3462
SELECT SUM ( - ( - COALESCE ( + 47, 75 + + 8 ) ) ) * + - 11 + - COUNT ( * )
----
-518

query I rowsort
SELECT ( - 73 ) * - 44 * + 35 + - + 6 AS col0
----
112414

query I rowsort
SELECT ALL 53 + - 67
----
-14

query I rowsort
SELECT ALL NULLIF ( + 25, + 38 ) AS col2
----
25

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3466
SELECT ALL NULLIF ( + - CAST( NULL AS DECIMAL ), + 53 * + - 94 ) - 91
----
NULL

skipif mysql # not compatible
query I rowsort label-3466
SELECT ALL NULLIF ( + - CAST ( NULL AS REAL ), + 53 * + - 94 ) - 91
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3467
SELECT + CAST( NULL AS SIGNED ) - - 60
----
NULL

skipif mysql # not compatible
query I rowsort label-3467
SELECT + CAST ( NULL AS INTEGER ) - - 60
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3468
SELECT ALL NULLIF ( 50, 71 * 75 + + + 81 ) * - COUNT( * )
----
-50

skipif mysql # not compatible
query I rowsort label-3468
SELECT ALL NULLIF ( 50, 71 * 75 + + + 81 ) * - COUNT ( * )
----
-50

query II rowsort
SELECT + 52 AS col0, 42 AS col1
----
52
42

query I rowsort
SELECT - 99 * + - 39
----
3861

onlyif mysql # aggregate syntax: 
query I rowsort label-3471
SELECT 54 * COALESCE ( - + 36, + 39 ) + - COUNT( * ) AS col1
----
-1945

skipif mysql # not compatible
query I rowsort label-3471
SELECT 54 * COALESCE ( - + 36, + 39 ) + - COUNT ( * ) AS col1
----
-1945

query II rowsort
SELECT ALL + - 12 col2, 55 * - 27 AS col2
----
-12
-1485

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3473
SELECT DISTINCT + CAST( + - 5 AS SIGNED ) AS col0
----
-5

skipif mysql # not compatible
query I rowsort label-3473
SELECT DISTINCT + CAST ( + - 5 AS INTEGER ) AS col0
----
-5

query I rowsort
SELECT + 96 * + 34 AS col1
----
3264

query I rowsort
SELECT DISTINCT + ( 96 ) AS col1
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-3476
SELECT MIN( DISTINCT + 11 ) AS col0
----
11

skipif mysql # not compatible
query I rowsort label-3476
SELECT MIN ( DISTINCT + 11 ) AS col0
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-3477
SELECT + - ( + MAX( + 40 ) ) col0
----
-40

skipif mysql # not compatible
query I rowsort label-3477
SELECT + - ( + MAX ( + 40 ) ) col0
----
-40

query II rowsort
SELECT + 98 + + 49 * + 31 AS col0, + 17
----
1617
17

query I rowsort
SELECT ALL 42 * - + 98
----
-4116

onlyif mysql # aggregate syntax: 
query II rowsort label-3480
SELECT DISTINCT + COUNT( * ) * - 65 + - 48 AS col2, CASE 65 WHEN + 32 THEN MAX( DISTINCT + 15 ) END
----
-113
NULL

skipif mysql # not compatible
query II rowsort label-3480
SELECT DISTINCT + COUNT ( * ) * - 65 + - 48 AS col2, CASE 65 WHEN + 32 THEN MAX ( DISTINCT + 15 ) END
----
-113
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3481
SELECT ALL 89 * - + COUNT( * ) + + - 11 * + 75
----
-914

skipif mysql # not compatible
query I rowsort label-3481
SELECT ALL 89 * - + COUNT ( * ) + + - 11 * + 75
----
-914

onlyif mysql # aggregate syntax: 
query II rowsort label-3482
SELECT ALL + + COUNT( * ) AS col2, CASE + 40 WHEN - 61 + - 62 THEN - - ( - - 73 ) ELSE - - NULLIF ( + 13, 72 ) + - 28 + 13 + + - 35 * COUNT( * ) - 99 END AS col2
----
1
-136

skipif mysql # not compatible
query II rowsort label-3482
SELECT ALL + + COUNT ( * ) AS col2, CASE + 40 WHEN - 61 + - 62 THEN - - ( - - 73 ) ELSE - - NULLIF ( + 13, 72 ) + - 28 + 13 + + - 35 * COUNT ( * ) - 99 END AS col2
----
1
-136

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3483
SELECT ALL - 22 * 18 + - + 84 * COUNT( * ) + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3483
SELECT ALL - 22 * 18 + - + 84 * COUNT ( * ) + - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3484
SELECT + 93 * - COALESCE ( - - 60, + 55 * - + 1 ) - - 0 + SUM( - - 80 ) + - 82 AS col1
----
-5582

skipif mysql # not compatible
query I rowsort label-3484
SELECT + 93 * - COALESCE ( - - 60, + 55 * - + 1 ) - - 0 + SUM ( - - 80 ) + - 82 AS col1
----
-5582

onlyif mysql # aggregate syntax: 
query II rowsort label-3485
SELECT - COUNT( * ) + - 97 * 99 + - + 80, ( + ( + 28 ) ) + - - 49 AS col0
----
-9684
77

skipif mysql # not compatible
query II rowsort label-3485
SELECT - COUNT ( * ) + - 97 * 99 + - + 80, ( + ( + 28 ) ) + - - 49 AS col0
----
-9684
77

onlyif mysql # aggregate syntax: 
query I rowsort label-3486
SELECT + 13 + + COUNT( * )
----
14

skipif mysql # not compatible
query I rowsort label-3486
SELECT + 13 + + COUNT ( * )
----
14

onlyif mysql # DIV for integer division: 
query I rowsort label-3487
SELECT ALL - 56 DIV + ( - 56 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-3487
SELECT ALL - 56 / + ( - 56 ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3488
SELECT + SUM( + - 97 ) + - 61 AS col2
----
-158

skipif mysql # not compatible
query I rowsort label-3488
SELECT + SUM ( + - 97 ) + - 61 AS col2
----
-158

onlyif mysql # aggregate syntax: 
query II rowsort label-3489
SELECT - 73 AS col1, - ( - COUNT( * ) ) * - + 92 * + ( - 59 )
----
-73
5428

skipif mysql # not compatible
query II rowsort label-3489
SELECT - 73 AS col1, - ( - COUNT ( * ) ) * - + 92 * + ( - 59 )
----
-73
5428

query I rowsort
SELECT - 65 + + 17 AS col1
----
-48

query I rowsort
SELECT ALL 71 + 69
----
140

onlyif mysql # aggregate syntax: 
query II rowsort label-3492
SELECT - 82 AS col2, COUNT( * ) * + - CASE + + COUNT( * ) WHEN + COALESCE ( - ( + + 67 ), + COUNT( 36 ) ) THEN - - 10 + + 89 END AS col2
----
-82
NULL

skipif mysql # not compatible
query II rowsort label-3492
SELECT - 82 AS col2, COUNT ( * ) * + - CASE + + COUNT ( * ) WHEN + COALESCE ( - ( + + 67 ), + COUNT ( 36 ) ) THEN - - 10 + + 89 END AS col2
----
-82
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3493
SELECT DISTINCT - 39 * CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3493
SELECT DISTINCT - 39 * CAST ( NULL AS INTEGER ) AS col1
----
NULL

query II rowsort
SELECT DISTINCT 90 AS col2, + 8 AS col2
----
90
8

query II rowsort
SELECT - 48 col0, 87
----
-48
87

query I rowsort
SELECT + 81 * - 82
----
-6642

onlyif mysql # aggregate syntax: 
query I rowsort label-3497
SELECT - 93 + + COUNT( * ) * + 77 AS col2
----
-16

skipif mysql # not compatible
query I rowsort label-3497
SELECT - 93 + + COUNT ( * ) * + 77 AS col2
----
-16

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3498
SELECT - NULLIF ( - CAST( NULL AS SIGNED ), 63 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3498
SELECT - NULLIF ( - CAST ( NULL AS INTEGER ), 63 )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3499
SELECT DISTINCT 86, - 33 + - + MAX( DISTINCT - 7 ) + + + MIN( + 35 ) AS col0
----
86
9

skipif mysql # not compatible
query II rowsort label-3499
SELECT DISTINCT 86, - 33 + - + MAX ( DISTINCT - 7 ) + + + MIN ( + 35 ) AS col0
----
86
9

query I rowsort
SELECT ALL - 48 * - 47 * + 79 col2
----
178224

onlyif mysql # aggregate syntax: 
query I rowsort label-3501
SELECT - - COUNT( * ) * + 51 AS col2
----
51

skipif mysql # not compatible
query I rowsort label-3501
SELECT - - COUNT ( * ) * + 51 AS col2
----
51

query I rowsort
SELECT DISTINCT ( - + 32 ) * 71 * 14 AS col0
----
-31808

query I rowsort
SELECT - 33 * + + 82 + 35 AS col1
----
-2671

onlyif mysql # DIV for integer division: 
query I rowsort label-3504
SELECT - 60 DIV + + 71
----
0

skipif mysql # not compatible
query I rowsort label-3504
SELECT - 60 / + + 71
----
0

query II rowsort
SELECT + - 68 AS col0, - 39
----
-68
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-3506
SELECT ( + + COUNT( ALL + + 55 ) )
----
1

skipif mysql # not compatible
query I rowsort label-3506
SELECT ( + + COUNT ( ALL + + 55 ) )
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3507
SELECT ALL + COALESCE ( - + 32, - - ( - 19 ) - - + COUNT( * ) ) DIV - + 65 + + NULLIF ( + COUNT( * ), 41 ) - - 2 * 90 + 75 * - + 20 - + COALESCE ( + COUNT( * ), + + COUNT( * ) + - + CAST( NULL AS SIGNED ) + 18, + 39 DIV + 69 * - ( COUNT( * ) ) * - + 43 + - + 82 ) + + + 51 AS col0
----
-1269

skipif mysql # not compatible
query I rowsort label-3507
SELECT ALL + COALESCE ( - + 32, - - ( - 19 ) - - + COUNT ( * ) ) / - + 65 + + NULLIF ( + COUNT ( * ), 41 ) - - 2 * 90 + 75 * - + 20 - + COALESCE ( + COUNT ( * ), + + COUNT ( * ) + - + CAST ( NULL AS INTEGER ) + 18, + 39 / + 69 * - ( COUNT ( * ) ) * - + 43 + - + 82 ) + + + 51 AS col0
----
-1269

query I rowsort
SELECT + + 85 - - 65 AS col1
----
150

query II rowsort
SELECT + - 58 AS col1, 60 + 63
----
-58
123

onlyif mysql # aggregate syntax: 
query I rowsort label-3510
SELECT ALL + 26 * - 29 + + COUNT( * ) + + 27 + + MAX( 28 ) * - ( + 76 ) AS col1
----
-2854

skipif mysql # not compatible
query I rowsort label-3510
SELECT ALL + 26 * - 29 + + COUNT ( * ) + + 27 + + MAX ( 28 ) * - ( + 76 ) AS col1
----
-2854

query I rowsort
SELECT DISTINCT - 94 * - 43 * + + 78 AS col0
----
315276

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3512
SELECT + + 25 + + ( - CASE + NULLIF ( + 72, + NULLIF ( - 42, 18 / - 74 ) * - 18 * 90 + CAST( - COUNT( * ) AS SIGNED ) ) WHEN - 23 / + - 61 + + MIN( ALL 61 ) * + CAST( NULL AS SIGNED ) / + 36 * + 67 THEN NULL WHEN - COUNT( * ) THEN 65 * CAST( NULL AS SIGNED ) + + 79 * - - 74 / + NULLIF ( + + 17, AVG ( DISTINCT + 49 ) * - 13 * - 11 + - 73 ) WHEN 10 THEN NULL ELSE NULL END ) + - - 17
----
NULL

skipif mysql # not compatible
query I rowsort label-3512
SELECT + + 25 + + ( - CASE + NULLIF ( + 72, + NULLIF ( - 42, 18 / - 74 ) * - 18 * 90 + CAST ( - COUNT ( * ) AS INTEGER ) ) WHEN - 23 / + - 61 + + MIN ( ALL 61 ) * + CAST ( NULL AS INTEGER ) / + 36 * + 67 THEN NULL WHEN - COUNT ( * ) THEN 65 * CAST ( NULL AS INTEGER ) + + 79 * - - 74 / + NULLIF ( + + 17, AVG ( DISTINCT + 49 ) * - 13 * - 11 + - 73 ) WHEN 10 THEN NULL ELSE NULL END ) + - - 17
----
NULL

query II rowsort
SELECT ALL + + 93 AS col1, - 63 AS col2
----
93
-63

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3514
SELECT ALL + + CASE WHEN NOT + 70 IN ( - COUNT( * ) * + - 47 * + COUNT( * ), + 39 + + 23 + 50 + - 12 / CASE - 43 WHEN + 92 - 0 + 80 THEN + - 70 WHEN 68 THEN - + CAST( NULL AS SIGNED ) END, - 38 * - 61 + 92 / - 46 ) THEN COUNT( * ) * + 85 * + - COUNT( * ) WHEN NOT NULL <= - COUNT( * ) + + + 46 * 94 THEN NULL WHEN NOT - 25 * + COUNT( * ) - - 78 * + + 10 IS NOT NULL THEN + - COUNT( * ) * 47 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3514
SELECT ALL + + CASE WHEN NOT + 70 IN ( - COUNT ( * ) * + - 47 * + COUNT ( * ), + 39 + + 23 + 50 + - 12 / CASE - 43 WHEN + 92 - 0 + 80 THEN + - 70 WHEN 68 THEN - + CAST ( NULL AS INTEGER ) END, - 38 * - 61 + 92 / - 46 ) THEN COUNT ( * ) * + 85 * + - COUNT ( * ) WHEN NOT NULL <= - COUNT ( * ) + + + 46 * 94 THEN NULL WHEN NOT - 25 * + COUNT ( * ) - - 78 * + + 10 IS NOT NULL THEN + - COUNT ( * ) * 47 END AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3515
SELECT - MIN( - 49 ) * CAST( COUNT( - 66 ) AS SIGNED ) + 4 + + 77 * 78 + SUM( - ( + 81 ) )
----
5978

skipif mysql # not compatible
query I rowsort label-3515
SELECT - MIN ( - 49 ) * CAST ( COUNT ( - 66 ) AS INTEGER ) + 4 + + 77 * 78 + SUM ( - ( + 81 ) )
----
5978

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3516
SELECT ALL - MAX( ALL - 56 ) * 0 + - ( + CAST( - + ( + 80 ) AS SIGNED ) ) + - + ( - - COALESCE ( + 28, ( + + COUNT( * ) ) ) ) * - COUNT( * )
----
108

skipif mysql # not compatible
query I rowsort label-3516
SELECT ALL - MAX ( ALL - 56 ) * 0 + - ( + CAST ( - + ( + 80 ) AS INTEGER ) ) + - + ( - - COALESCE ( + 28, ( + + COUNT ( * ) ) ) ) * - COUNT ( * )
----
108

query I rowsort
SELECT + 59 + - 15
----
44

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3518
SELECT ALL CAST( + 21 AS SIGNED ) * 47 + NULLIF ( - 69, 15 ) - 6 - + ( 61 )
----
851

skipif mysql # not compatible
query I rowsort label-3518
SELECT ALL CAST ( + 21 AS INTEGER ) * 47 + NULLIF ( - 69, 15 ) - 6 - + ( 61 )
----
851

onlyif mysql # aggregate syntax: 
query I rowsort label-3519
SELECT MAX( ALL + - 27 )
----
-27

skipif mysql # not compatible
query I rowsort label-3519
SELECT MAX ( ALL + - 27 )
----
-27

query I rowsort
SELECT 78 * + 82
----
6396

query II rowsort
SELECT 94 + + 80, 29 AS col2
----
174
29

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3522
SELECT ALL 18 - + 60 + - MAX( ALL CAST( NULL AS DECIMAL ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3522
SELECT ALL 18 - + 60 + - MAX ( ALL CAST ( NULL AS REAL ) ) AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3523
SELECT 4 * + MIN( DISTINCT - - NULLIF ( 30, - + 24 * + 96 * CAST( NULL AS SIGNED ) ) ), SUM( 34 ) AS col0
----
120
34

skipif mysql # not compatible
query II rowsort label-3523
SELECT 4 * + MIN ( DISTINCT - - NULLIF ( 30, - + 24 * + 96 * CAST ( NULL AS INTEGER ) ) ), SUM ( 34 ) AS col0
----
120
34

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3524
SELECT CAST( - 44 AS SIGNED ) - - 80
----
36

skipif mysql # not compatible
query I rowsort label-3524
SELECT CAST ( - 44 AS INTEGER ) - - 80
----
36

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3525
SELECT ALL - COUNT( * ) DIV COUNT( * ) AS col2, + 2
----
-1
2

skipif mysql # not compatible
query II rowsort label-3525
SELECT ALL - COUNT ( * ) / COUNT ( * ) AS col2, + 2
----
-1
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3526
SELECT 23 / - SUM( - CAST( NULL AS SIGNED ) ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3526
SELECT 23 / - SUM ( - CAST ( NULL AS INTEGER ) ) col0
----
NULL

query I rowsort
SELECT DISTINCT + 90 * - 56 AS col1
----
-5040

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3528
SELECT DISTINCT 17 DIV SUM( + - 54 ) col2
----
0

skipif mysql # not compatible
query I rowsort label-3528
SELECT DISTINCT 17 / SUM ( + - 54 ) col2
----
0

query I rowsort
SELECT DISTINCT - 19 * - + 52
----
988

onlyif mysql # aggregate syntax: 
query I rowsort label-3530
SELECT 42 + - 10 * 87 + ( + COUNT( * ) )
----
-827

skipif mysql # not compatible
query I rowsort label-3530
SELECT 42 + - 10 * 87 + ( + COUNT ( * ) )
----
-827

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3531
SELECT - CAST( NULL AS DECIMAL ) * 10
----
NULL

skipif mysql # not compatible
query I rowsort label-3531
SELECT - CAST ( NULL AS REAL ) * 10
----
NULL

query I rowsort
SELECT 3 - + 4 AS col1
----
-1

query I rowsort
SELECT ALL - - 10 + - + 43 - + 29 * 97 AS col1
----
-2846

query I rowsort
SELECT + 67 * + 82 * COALESCE ( - - 51, + - 4 ) AS col1
----
280194

onlyif mysql # DIV for integer division: 
query I rowsort label-3535
SELECT 15 DIV - 58 + - 9 + + 39
----
30

skipif mysql # not compatible
query I rowsort label-3535
SELECT 15 / - 58 + - 9 + + 39
----
30

query I rowsort
SELECT ALL + - 97 + 6 * 17 AS col2
----
5

query I rowsort
SELECT DISTINCT NULLIF ( - 38, - + CASE + 86 WHEN 1 THEN - 0 END / - 1 / CASE + 68 WHEN ( 13 ) THEN - 48 * 66 END * + 42 ) * + 72
----
-2736

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3538
SELECT ALL CAST( NULL AS SIGNED ) + ( + + 24 ) * + - 61
----
NULL

skipif mysql # not compatible
query I rowsort label-3538
SELECT ALL CAST ( NULL AS INTEGER ) + ( + + 24 ) * + - 61
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3539
SELECT + ( + + SUM( ALL - 81 ) ) * + 37 - - 69 AS col0
----
-2928

skipif mysql # not compatible
query I rowsort label-3539
SELECT + ( + + SUM ( ALL - 81 ) ) * + 37 - - 69 AS col0
----
-2928

onlyif mysql # aggregate syntax: 
query I rowsort label-3540
SELECT DISTINCT + + 92 * - COUNT( * ) AS col2
----
-92

skipif mysql # not compatible
query I rowsort label-3540
SELECT DISTINCT + + 92 * - COUNT ( * ) AS col2
----
-92

query I rowsort
SELECT 19 * 21 - + 19
----
380

query I rowsort
SELECT 63 + - - 22
----
85

query II rowsort
SELECT ALL 78 - + 89 + + 28, 35 AS col2
----
17
35

query I rowsort
SELECT DISTINCT - 93 * + 47 * - 66
----
288486

onlyif mysql # aggregate syntax: 
query I rowsort label-3545
SELECT ALL + 39 * + - COUNT( * ) * - + 36 AS col0
----
1404

skipif mysql # not compatible
query I rowsort label-3545
SELECT ALL + 39 * + - COUNT ( * ) * - + 36 AS col0
----
1404

onlyif mysql # aggregate syntax: 
query I rowsort label-3546
SELECT + COUNT( * ) * + 77 - 26 * - 41
----
1143

skipif mysql # not compatible
query I rowsort label-3546
SELECT + COUNT ( * ) * + 77 - 26 * - 41
----
1143

query I rowsort
SELECT ALL 42 - + + 96 AS col2
----
-54

onlyif mysql # aggregate syntax: 
query II rowsort label-3548
SELECT DISTINCT 31, + 5 * CASE + COUNT( * ) WHEN + ( 96 ) THEN + 44 / - 61 + + CASE 5 WHEN + - 30 THEN NULL WHEN - 6 * 42 * - COALESCE ( - 28, + 22 ) THEN + 14 ELSE NULL END END AS col0
----
31
NULL

skipif mysql # not compatible
query II rowsort label-3548
SELECT DISTINCT 31, + 5 * CASE + COUNT ( * ) WHEN + ( 96 ) THEN + 44 / - 61 + + CASE 5 WHEN + - 30 THEN NULL WHEN - 6 * 42 * - COALESCE ( - 28, + 22 ) THEN + 14 ELSE NULL END END AS col0
----
31
NULL

query I rowsort
SELECT 78 + + ( 77 )
----
155

onlyif mysql # aggregate syntax: 
query I rowsort label-3550
SELECT COUNT( * ) * ( - 32 ) * COUNT( * ) AS col2
----
-32

skipif mysql # not compatible
query I rowsort label-3550
SELECT COUNT ( * ) * ( - 32 ) * COUNT ( * ) AS col2
----
-32

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3551
SELECT ALL AVG ( + 77 ) * CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3551
SELECT ALL AVG ( + 77 ) * CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3552
SELECT ALL 76 * - NULLIF ( + CAST( NULL AS SIGNED ), 35 + + + 62 - - - 2 ) AS col1, SUM( + ( + 54 ) )
----
NULL
54

skipif mysql # not compatible
query II rowsort label-3552
SELECT ALL 76 * - NULLIF ( + CAST ( NULL AS INTEGER ), 35 + + + 62 - - - 2 ) AS col1, SUM ( + ( + 54 ) )
----
NULL
54

onlyif mysql # aggregate syntax: 
query II rowsort label-3553
SELECT ALL 3 AS col1, COUNT( * )
----
3
1

skipif mysql # not compatible
query II rowsort label-3553
SELECT ALL 3 AS col1, COUNT ( * )
----
3
1

query I rowsort
SELECT ALL + 77 + - 26 col1
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-3555
SELECT NULLIF ( COUNT( * ), 55 ) + + 6
----
7

skipif mysql # not compatible
query I rowsort label-3555
SELECT NULLIF ( COUNT ( * ), 55 ) + + 6
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-3556
SELECT - MIN( ALL + - 82 ) + 14 + + 44 AS col1
----
140

skipif mysql # not compatible
query I rowsort label-3556
SELECT - MIN ( ALL + - 82 ) + 14 + + 44 AS col1
----
140

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-3557
SELECT DISTINCT + 31 AS col1, CASE - + 2 WHEN - - CAST( NULL AS DECIMAL ) THEN - 15 WHEN + 18 THEN NULL END AS col1
----
31
NULL

skipif mysql # not compatible
query II rowsort label-3557
SELECT DISTINCT + 31 AS col1, CASE - + 2 WHEN - - CAST ( NULL AS REAL ) THEN - 15 WHEN + 18 THEN NULL END AS col1
----
31
NULL

query I rowsort
SELECT + 37 + + 35 AS col2
----
72

query I rowsort
SELECT 36 + - 21
----
15

query I rowsort
SELECT - ( + - 87 ) * - NULLIF ( 26, + 16 ) AS col1
----
-2262

onlyif mysql # aggregate syntax: 
query I rowsort label-3561
SELECT DISTINCT + - COUNT( * ) + - - ( 83 ) + + COALESCE ( SUM( DISTINCT + - 22 ), + 29, - 70 ) * 72
----
-1502

skipif mysql # not compatible
query I rowsort label-3561
SELECT DISTINCT + - COUNT ( * ) + - - ( 83 ) + + COALESCE ( SUM ( DISTINCT + - 22 ), + 29, - 70 ) * 72
----
-1502

query I rowsort
SELECT - 64 + 83 * - ( + 74 ) AS col0
----
-6206

onlyif mysql # DIV for integer division: 
query I rowsort label-3563
SELECT ALL COALESCE ( + 74, + 83 * + 32 ) DIV + 23 AS col0
----
3

skipif mysql # not compatible
query I rowsort label-3563
SELECT ALL COALESCE ( + 74, + 83 * + 32 ) / + 23 AS col0
----
3

query I rowsort
SELECT 8 * - - 14 + 36 * - 62 + + 80
----
-2040

onlyif mysql # aggregate syntax: 
query II rowsort label-3565
SELECT ALL + + COUNT( * ) * + ( 77 ), 49 + 18 AS col1
----
77
67

skipif mysql # not compatible
query II rowsort label-3565
SELECT ALL + + COUNT ( * ) * + ( 77 ), 49 + 18 AS col1
----
77
67

onlyif mysql # aggregate syntax: 
query I rowsort label-3566
SELECT MAX( DISTINCT - 97 ) AS col1
----
-97

skipif mysql # not compatible
query I rowsort label-3566
SELECT MAX ( DISTINCT - 97 ) AS col1
----
-97

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3567
SELECT ( + + COALESCE ( - + 8, - - 38 ) ) + ( + 0 ) * + COUNT( * ) + - 13 + + 71 DIV + 28
----
-19

skipif mysql # not compatible
query I rowsort label-3567
SELECT ( + + COALESCE ( - + 8, - - 38 ) ) + ( + 0 ) * + COUNT ( * ) + - 13 + + 71 / + 28
----
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-3568
SELECT 73 * - 36 * - + 64 + 42 + + ( - COUNT( * ) ) + - + SUM( ALL + - 49 ) - + 87 AS col0
----
168195

skipif mysql # not compatible
query I rowsort label-3568
SELECT 73 * - 36 * - + 64 + 42 + + ( - COUNT ( * ) ) + - + SUM ( ALL + - 49 ) - + 87 AS col0
----
168195

onlyif mysql # DIV for integer division: 
query I rowsort label-3569
SELECT DISTINCT + COALESCE ( + 9, - 58 DIV + 96 + - 44, - 28 + + 96 * + 57 ) AS col2
----
9

skipif mysql # not compatible
query I rowsort label-3569
SELECT DISTINCT + COALESCE ( + 9, - 58 / + 96 + - 44, - 28 + + 96 * + 57 ) AS col2
----
9

query I rowsort
SELECT - 60 + + 80
----
20

query I rowsort
SELECT - COALESCE ( 82, + 94 ) * 83
----
-6806

onlyif mysql # aggregate syntax: 
query I rowsort label-3572
SELECT ALL COUNT( * ) * - 32 * 44
----
-1408

skipif mysql # not compatible
query I rowsort label-3572
SELECT ALL COUNT ( * ) * - 32 * 44
----
-1408

onlyif mysql # aggregate syntax: 
query I rowsort label-3573
SELECT - ( 99 ) + + - 3 * NULLIF ( + SUM( 14 ), - 13 )
----
-141

skipif mysql # not compatible
query I rowsort label-3573
SELECT - ( 99 ) + + - 3 * NULLIF ( + SUM ( 14 ), - 13 )
----
-141

query I rowsort
SELECT ALL 69 * - 33 - - + 19
----
-2258

query I rowsort
SELECT 7 * + 56 + - 89 + - NULLIF ( 7, - 23 ) * - 25 AS col2
----
478

query I rowsort
SELECT + 89 * 41 * 30 AS col2
----
109470

onlyif mysql # aggregate syntax: 
query II rowsort label-3577
SELECT MAX( - 71 ) AS col0, - ( + 78 )
----
-71
-78

skipif mysql # not compatible
query II rowsort label-3577
SELECT MAX ( - 71 ) AS col0, - ( + 78 )
----
-71
-78

query I rowsort
SELECT + 23 * + 50 * + 56
----
64400

onlyif mysql # aggregate syntax: 
query II rowsort label-3579
SELECT ALL ( - - COUNT( * ) ) AS col1, 49 * + 25 AS col0
----
1
1225

skipif mysql # not compatible
query II rowsort label-3579
SELECT ALL ( - - COUNT ( * ) ) AS col1, 49 * + 25 AS col0
----
1
1225

onlyif mysql # aggregate syntax: 
query II rowsort label-3580
SELECT DISTINCT ( + 1 ), + MIN( - 50 ) AS col1
----
1
-50

skipif mysql # not compatible
query II rowsort label-3580
SELECT DISTINCT ( + 1 ), + MIN ( - 50 ) AS col1
----
1
-50

query I rowsort
SELECT - CASE + 5 WHEN + 53 THEN NULL WHEN + 63 * 5 - + 34 THEN + 44 / + 24 / - 68 + 91 END
----
NULL

query II rowsort
SELECT ALL 52 + - 85, + ( + 63 ) AS col0
----
-33
63

query I rowsort
SELECT - + 95 - - - 96 + - 43
----
-234

query I rowsort
SELECT + - 20 - - 47
----
27

query I rowsort
SELECT ALL 79 * 50
----
3950

query I rowsort
SELECT ALL + + 26 + + 50 AS col2
----
76

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3587
SELECT DISTINCT + COUNT( * ) + + CASE 50 WHEN - 92 + SUM( DISTINCT - 3 ) THEN NULL WHEN CAST( NULL AS SIGNED ) THEN 79 END
----
NULL

skipif mysql # not compatible
query I rowsort label-3587
SELECT DISTINCT + COUNT ( * ) + + CASE 50 WHEN - 92 + SUM ( DISTINCT - 3 ) THEN NULL WHEN CAST ( NULL AS INTEGER ) THEN 79 END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3588
SELECT + - CAST( - 60 AS SIGNED ) - 38 col1
----
22

skipif mysql # not compatible
query I rowsort label-3588
SELECT + - CAST ( - 60 AS INTEGER ) - 38 col1
----
22

query I rowsort
SELECT + + 93 * - + 36 AS col1
----
-3348

onlyif mysql # aggregate syntax: 
query I rowsort label-3590
SELECT MIN( DISTINCT - ( 81 ) ) col1
----
-81

skipif mysql # not compatible
query I rowsort label-3590
SELECT MIN ( DISTINCT - ( 81 ) ) col1
----
-81

onlyif mysql # DIV for integer division: 
query I rowsort label-3591
SELECT ALL + 33 DIV - - 71 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3591
SELECT ALL + 33 / - - 71 AS col2
----
0

query II rowsort
SELECT ALL + ( - + 8 ) AS col0, - 81 + + + 37
----
-8
-44

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3593
SELECT + CAST( + ( 29 ) AS SIGNED ) AS col0
----
29

skipif mysql # not compatible
query I rowsort label-3593
SELECT + CAST ( + ( 29 ) AS INTEGER ) AS col0
----
29

onlyif mysql # DIV for integer division: 
query I rowsort label-3594
SELECT - 19 DIV + 80 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3594
SELECT - 19 / + 80 AS col2
----
0

query I rowsort
SELECT + 14 * 59 * + - 42 - 14 col2
----
-34706

onlyif mysql # DIV for integer division: 
query I rowsort label-3596
SELECT + 83 DIV 64
----
1

skipif mysql # not compatible
query I rowsort label-3596
SELECT + 83 / 64
----
1

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3597
SELECT 40 * - 91 + + CAST( 58 AS SIGNED ) + + + 45 + + - 34 DIV 70
----
-3537

skipif mysql # not compatible
query I rowsort label-3597
SELECT 40 * - 91 + + CAST ( 58 AS INTEGER ) + + + 45 + + - 34 / 70
----
-3537

onlyif mysql # aggregate syntax: 
query I rowsort label-3598
SELECT + MAX( ALL + - ( - 44 ) )
----
44

skipif mysql # not compatible
query I rowsort label-3598
SELECT + MAX ( ALL + - ( - 44 ) )
----
44

query I rowsort
SELECT - 29 * - 36
----
1044

onlyif mysql # aggregate syntax: 
query I rowsort label-3600
SELECT - 76 * - 71 * - + COUNT( * ) - - 8 AS col1
----
-5388

skipif mysql # not compatible
query I rowsort label-3600
SELECT - 76 * - 71 * - + COUNT ( * ) - - 8 AS col1
----
-5388

query I rowsort
SELECT ALL + COALESCE ( + 90, + + ( + 77 ) )
----
90

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3602
SELECT 77 * - 15 / COUNT( * ) * - CAST( NULL AS SIGNED ) + - - CAST( NULL AS SIGNED ) * ( - COUNT( * ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-3602
SELECT 77 * - 15 / COUNT ( * ) * - CAST ( NULL AS INTEGER ) + - - CAST ( NULL AS INTEGER ) * ( - COUNT ( * ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3603
SELECT - 75 + - + COUNT( * ) * + - 32 AS col1
----
-43

skipif mysql # not compatible
query I rowsort label-3603
SELECT - 75 + - + COUNT ( * ) * + - 32 AS col1
----
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-3604
SELECT MIN( - + 74 )
----
-74

skipif mysql # not compatible
query I rowsort label-3604
SELECT MIN ( - + 74 )
----
-74

query I rowsort
SELECT - 63 + + 20 col1
----
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-3606
SELECT + 69 - COUNT( * )
----
68

skipif mysql # not compatible
query I rowsort label-3606
SELECT + 69 - COUNT ( * )
----
68

query I rowsort
SELECT ALL - ( 63 ) * 82
----
-5166

onlyif mysql # aggregate syntax: 
query I rowsort label-3608
SELECT ALL + COUNT( * ) + - 31 AS col1
----
-30

skipif mysql # not compatible
query I rowsort label-3608
SELECT ALL + COUNT ( * ) + - 31 AS col1
----
-30

query I rowsort
SELECT DISTINCT - 60 * ( - 30 ) AS col2
----
1800

query I rowsort
SELECT ALL 27 - ( - 39 )
----
66

query I rowsort
SELECT - 33 * + 60 AS col1
----
-1980

onlyif mysql # aggregate syntax: 
query I rowsort label-3612
SELECT - COALESCE ( + COUNT( * ), - 27 )
----
-1

skipif mysql # not compatible
query I rowsort label-3612
SELECT - COALESCE ( + COUNT ( * ), - 27 )
----
-1

query I rowsort
SELECT + NULLIF ( 2, - 19 + 44 ) + - 2 AS col1
----
0

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3614
SELECT - ( CAST( - CAST( NULL AS SIGNED ) AS DECIMAL ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3614
SELECT - ( CAST ( - CAST ( NULL AS INTEGER ) AS REAL ) ) AS col2
----
NULL

query I rowsort
SELECT + 3 * 34 AS col0
----
102

query I rowsort
SELECT - 14 + 8 * 26
----
194

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3617
SELECT + CAST( 25 AS SIGNED ) * + 74
----
1850

skipif mysql # not compatible
query I rowsort label-3617
SELECT + CAST ( 25 AS INTEGER ) * + 74
----
1850

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3618
SELECT - CASE 5 WHEN 88 THEN - 84 WHEN - 88 * - COUNT( * ) - - 88 * 66 THEN 57 WHEN + CAST( ( 60 ) AS SIGNED ) THEN + 0 * - 62 ELSE 58 DIV 44 END + - 37
----
-38

skipif mysql # not compatible
query I rowsort label-3618
SELECT - CASE 5 WHEN 88 THEN - 84 WHEN - 88 * - COUNT ( * ) - - 88 * 66 THEN 57 WHEN + CAST ( ( 60 ) AS INTEGER ) THEN + 0 * - 62 ELSE 58 / 44 END + - 37
----
-38

query I rowsort
SELECT 63 + + 56
----
119

query I rowsort
SELECT DISTINCT 66 * 34 AS col1
----
2244

query I rowsort
SELECT ALL 19 * 27 AS col1
----
513

query I rowsort
SELECT ( - 21 ) + 0
----
-21

onlyif mysql # DIV for integer division: 
query I rowsort label-3623
SELECT 17 DIV - 75
----
0

skipif mysql # not compatible
query I rowsort label-3623
SELECT 17 / - 75
----
0

query I rowsort
SELECT 23 + + 49
----
72

query I rowsort
SELECT DISTINCT 6 + 27
----
33

query I rowsort
SELECT DISTINCT 18 + - ( - ( + 43 ) + - ( + 36 ) ) * - 47
----
-3695

onlyif mysql # aggregate syntax: 
query I rowsort label-3627
SELECT ALL - COUNT( * ) + CASE + 97 WHEN + 13 THEN 9 WHEN + 46 THEN - COALESCE ( 30, + 63 ) * COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-3627
SELECT ALL - COUNT ( * ) + CASE + 97 WHEN + 13 THEN 9 WHEN + 46 THEN - COALESCE ( 30, + 63 ) * COUNT ( * ) END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3628
SELECT COUNT( * ) + 15 AS col0
----
16

skipif mysql # not compatible
query I rowsort label-3628
SELECT COUNT ( * ) + 15 AS col0
----
16

onlyif mysql # DIV for integer division: 
query I rowsort label-3629
SELECT ALL 53 DIV - 84 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3629
SELECT ALL 53 / - 84 AS col0
----
0

query I rowsort
SELECT - 10 * - 59 + 78 col0
----
668

onlyif mysql # DIV for integer division: 
query I rowsort label-3631
SELECT DISTINCT ( 49 ) + COALESCE ( ( - 75 ), 76 ) DIV 3
----
24

skipif mysql # not compatible
query I rowsort label-3631
SELECT DISTINCT ( 49 ) + COALESCE ( ( - 75 ), 76 ) / 3
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-3632
SELECT COUNT( * ) * 44 AS col1
----
44

skipif mysql # not compatible
query I rowsort label-3632
SELECT COUNT ( * ) * 44 AS col1
----
44

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3633
SELECT CAST( NULL AS SIGNED ) * 95 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3633
SELECT CAST ( NULL AS INTEGER ) * 95 AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3634
SELECT ALL + CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) * - 11 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3634
SELECT ALL + CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) * - 11 AS col2
----
NULL

query I rowsort
SELECT 57 + + 73 col1
----
130

query I rowsort
SELECT 34 * ( + 18 * + 45 + - 7 )
----
27302

query I rowsort
SELECT ALL + - 88 - 95 AS col2
----
-183

query I rowsort
SELECT 13 * - 57
----
-741

onlyif mysql # aggregate syntax: 
query I rowsort label-3639
SELECT - MAX( DISTINCT 8 ) + + 85 * COUNT( * )
----
77

skipif mysql # not compatible
query I rowsort label-3639
SELECT - MAX ( DISTINCT 8 ) + + 85 * COUNT ( * )
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-3640
SELECT ALL + - 96 - MAX( - 95 ) * CASE - 25 / 74 WHEN + 46 THEN + 27 + + 86 WHEN + 42 THEN - 46 WHEN + COUNT( 40 ) THEN 10 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3640
SELECT ALL + - 96 - MAX ( - 95 ) * CASE - 25 / 74 WHEN + 46 THEN + 27 + + 86 WHEN + 42 THEN - 46 WHEN + COUNT ( 40 ) THEN 10 END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3641
SELECT NULLIF ( - 26, CASE COALESCE ( 65, 0 ) WHEN 67 * + 96 THEN NULL ELSE + CASE - 13 WHEN 4 - - 8 / COUNT( * ) THEN 55 WHEN 95 THEN NULL END * COUNT( * ) + + NULLIF ( COUNT( * ), COUNT( * ) + + 68 ) * 68 END + CASE + ( 12 ) WHEN 70 - 58 THEN NULL WHEN 15 THEN - 42 ELSE 18 END * 80 ) AS col1
----
-26

skipif mysql # not compatible
query I rowsort label-3641
SELECT NULLIF ( - 26, CASE COALESCE ( 65, 0 ) WHEN 67 * + 96 THEN NULL ELSE + CASE - 13 WHEN 4 - - 8 / COUNT ( * ) THEN 55 WHEN 95 THEN NULL END * COUNT ( * ) + + NULLIF ( COUNT ( * ), COUNT ( * ) + + 68 ) * 68 END + CASE + ( 12 ) WHEN 70 - 58 THEN NULL WHEN 15 THEN - 42 ELSE 18 END * 80 ) AS col1
----
-26

query I rowsort
SELECT - 24 - 5 AS col2
----
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-3643
SELECT COUNT( * ) * + COALESCE ( + 78 * - 96 + 99 * - 13, + 56 + COUNT( * ), - 67 + 38 )
----
-8775

skipif mysql # not compatible
query I rowsort label-3643
SELECT COUNT ( * ) * + COALESCE ( + 78 * - 96 + 99 * - 13, + 56 + COUNT ( * ), - 67 + 38 )
----
-8775

onlyif mysql # aggregate syntax: 
query I rowsort label-3644
SELECT + COUNT( * ) * + 26 col0
----
26

skipif mysql # not compatible
query I rowsort label-3644
SELECT + COUNT ( * ) * + 26 col0
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-3645
SELECT DISTINCT + MAX( DISTINCT ( 56 ) )
----
56

skipif mysql # not compatible
query I rowsort label-3645
SELECT DISTINCT + MAX ( DISTINCT ( 56 ) )
----
56

query I rowsort
SELECT ALL - + 91 * - 87 AS col0
----
7917

query I rowsort
SELECT DISTINCT + NULLIF ( + 20, 70 ) AS col0
----
20

query I rowsort
SELECT 21 - 92 * + 74
----
-6787

onlyif mysql # DIV for integer division: 
query I rowsort label-3649
SELECT 8 DIV 3
----
2

skipif mysql # not compatible
query I rowsort label-3649
SELECT 8 / 3
----
2

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3650
SELECT ALL + ( + 30 ) + + NULLIF ( CAST( NULL AS DECIMAL ) + + ( 77 ) / 49, 53 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3650
SELECT ALL + ( + 30 ) + + NULLIF ( CAST ( NULL AS REAL ) + + ( 77 ) / 49, 53 ) AS col2
----
NULL

query I rowsort
SELECT 69 * 31 col2
----
2139

onlyif mysql # aggregate syntax: 
query I rowsort label-3652
SELECT 7 * - - COUNT( * )
----
7

skipif mysql # not compatible
query I rowsort label-3652
SELECT 7 * - - COUNT ( * )
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-3653
SELECT SUM( + 44 ) col0
----
44

skipif mysql # not compatible
query I rowsort label-3653
SELECT SUM ( + 44 ) col0
----
44

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3654
SELECT 97 * - CAST( NULL AS SIGNED ) * + 33
----
NULL

skipif mysql # not compatible
query I rowsort label-3654
SELECT 97 * - CAST ( NULL AS INTEGER ) * + 33
----
NULL

query I rowsort
SELECT ALL 65 + + 53
----
118

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3656
SELECT 40 * COUNT( 96 ) / + 88 - CAST( NULL AS DECIMAL ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3656
SELECT 40 * COUNT ( 96 ) / + 88 - CAST ( NULL AS REAL ) AS col0
----
NULL

query I rowsort
SELECT ALL + 49 + + + 37 AS col2
----
86

query I rowsort
SELECT DISTINCT 0 + + 64 + + ( - 76 ) * 36 AS col2
----
-2672

query I rowsort
SELECT ALL - 86 * + 20 * + 3
----
-5160

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3660
SELECT + CAST( NULL AS SIGNED ) * + - CASE 96 WHEN + 7 THEN 10 WHEN - ( 87 ) + 8 THEN - 10 + - 2 ELSE NULL END + - 76
----
NULL

skipif mysql # not compatible
query I rowsort label-3660
SELECT + CAST ( NULL AS INTEGER ) * + - CASE 96 WHEN + 7 THEN 10 WHEN - ( 87 ) + 8 THEN - 10 + - 2 ELSE NULL END + - 76
----
NULL

query I rowsort
SELECT ALL ( + 30 ) + 8 AS col1
----
38

query I rowsort
SELECT - 68 * 49 + - 37
----
-3369

onlyif mysql # aggregate syntax: 
query I rowsort label-3663
SELECT COUNT( 99 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-3663
SELECT COUNT ( 99 ) AS col0
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-3664
SELECT 14 DIV + - 65 + 43
----
43

skipif mysql # not compatible
query I rowsort label-3664
SELECT 14 / + - 65 + 43
----
43

query I rowsort
SELECT ( 17 ) + + 10 * 49
----
507

onlyif mysql # aggregate syntax: 
query I rowsort label-3666
SELECT ALL + COUNT( * ) - + 48 AS col2
----
-47

skipif mysql # not compatible
query I rowsort label-3666
SELECT ALL + COUNT ( * ) - + 48 AS col2
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-3667
SELECT COUNT( * ) * + 99 col1
----
99

skipif mysql # not compatible
query I rowsort label-3667
SELECT COUNT ( * ) * + 99 col1
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-3668
SELECT 23 * - + 94 * - MIN( 73 ) + COUNT( * )
----
157827

skipif mysql # not compatible
query I rowsort label-3668
SELECT 23 * - + 94 * - MIN ( 73 ) + COUNT ( * )
----
157827

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3669
SELECT 41 * - 33 * - 16 + + CAST( 96 + COUNT( * ) * + 98 AS SIGNED ) DIV - ( + 89 )
----
21646

skipif mysql # not compatible
query I rowsort label-3669
SELECT 41 * - 33 * - 16 + + CAST ( 96 + COUNT ( * ) * + 98 AS INTEGER ) / - ( + 89 )
----
21646

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3670
SELECT - CAST( NULL AS SIGNED ) + + CAST( NULL AS SIGNED ) - 85
----
NULL

skipif mysql # not compatible
query I rowsort label-3670
SELECT - CAST ( NULL AS INTEGER ) + + CAST ( NULL AS INTEGER ) - 85
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3671
SELECT 26 * + - NULLIF ( + 30, 36 ) * COUNT( * ) AS col0
----
-780

skipif mysql # not compatible
query I rowsort label-3671
SELECT 26 * + - NULLIF ( + 30, 36 ) * COUNT ( * ) AS col0
----
-780

onlyif mysql # aggregate syntax: 
query I rowsort label-3672
SELECT - 56 + + + SUM( DISTINCT 92 ) * 1
----
36

skipif mysql # not compatible
query I rowsort label-3672
SELECT - 56 + + + SUM ( DISTINCT 92 ) * 1
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-3673
SELECT COUNT( * ) * + - 41 + 33 * 33
----
1048

skipif mysql # not compatible
query I rowsort label-3673
SELECT COUNT ( * ) * + - 41 + 33 * 33
----
1048

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3674
SELECT + CASE + - 52 WHEN 25 THEN 68 + CAST( - 68 + 9 AS SIGNED ) * - 86 END * + 56 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3674
SELECT + CASE + - 52 WHEN 25 THEN 68 + CAST ( - 68 + 9 AS INTEGER ) * - 86 END * + 56 col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3675
SELECT 18 DIV - 56 * 97 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3675
SELECT 18 / - 56 * 97 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3676
SELECT ALL + MIN( ALL - + ( + 78 ) )
----
-78

skipif mysql # not compatible
query I rowsort label-3676
SELECT ALL + MIN ( ALL - + ( + 78 ) )
----
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-3677
SELECT + + 31 + - CASE + 21 WHEN 75 - 56 THEN MAX( 15 ) + + COUNT( * ) * 57 END * + 31 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3677
SELECT + + 31 + - CASE + 21 WHEN 75 - 56 THEN MAX ( 15 ) + + COUNT ( * ) * 57 END * + 31 AS col1
----
NULL

query I rowsort
SELECT ALL + ( 67 ) * - 32 AS col1
----
-2144

onlyif mysql # aggregate syntax: 
query I rowsort label-3679
SELECT + NULLIF ( - COUNT( * ), 93 * SUM( + 22 ) ) * - 0
----
0

skipif mysql # not compatible
query I rowsort label-3679
SELECT + NULLIF ( - COUNT ( * ), 93 * SUM ( + 22 ) ) * - 0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3680
SELECT DISTINCT - 93 * 2 DIV - 80 AS col2
----
2

skipif mysql # not compatible
query I rowsort label-3680
SELECT DISTINCT - 93 * 2 / - 80 AS col2
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-3681
SELECT ALL - MIN( ALL + NULLIF ( 56, + 43 ) ) * 72
----
-4032

skipif mysql # not compatible
query I rowsort label-3681
SELECT ALL - MIN ( ALL + NULLIF ( 56, + 43 ) ) * 72
----
-4032

query I rowsort
SELECT - - NULLIF ( - - 95, + 16 ) * - 39
----
-3705

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3683
SELECT DISTINCT - 43 + + CAST( NULL AS SIGNED ) + CAST( 81 AS DECIMAL ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3683
SELECT DISTINCT - 43 + + CAST ( NULL AS INTEGER ) + CAST ( 81 AS REAL ) AS col0
----
NULL

query I rowsort
SELECT - ( - - 34 ) AS col0
----
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-3685
SELECT - 34 + + - MAX( ALL - 4 ) * 26
----
70

skipif mysql # not compatible
query I rowsort label-3685
SELECT - 34 + + - MAX ( ALL - 4 ) * 26
----
70

query II rowsort
SELECT - 4 col2, - 89 AS col1
----
-4
-89

query II rowsort
SELECT - 5, - 1 AS col2
----
-5
-1

query I rowsort
SELECT ALL COALESCE ( - 26, - CASE 9 WHEN 10 THEN 75 WHEN 91 THEN NULL ELSE NULL END, + NULLIF ( 29, 59 ) )
----
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-3689
SELECT - 78 + - COUNT( * ) AS col1
----
-79

skipif mysql # not compatible
query I rowsort label-3689
SELECT - 78 + - COUNT ( * ) AS col1
----
-79

query I rowsort
SELECT ALL COALESCE ( 87, - 97 ) AS col2
----
87

query I rowsort
SELECT DISTINCT ( - COALESCE ( + 22, - 84, 84 - - 30 ) ) * - 87 + 70
----
1984

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3692
SELECT - 64 * + + 46 * - ( + 2 ) + CAST( 19 AS SIGNED )
----
5907

skipif mysql # not compatible
query I rowsort label-3692
SELECT - 64 * + + 46 * - ( + 2 ) + CAST ( 19 AS INTEGER )
----
5907

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3693
SELECT 18 / - + 64 / + 15 + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3693
SELECT 18 / - + 64 / + 15 + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3694
SELECT DISTINCT + 62 * + - CASE - - 66 WHEN MIN( + 70 ) * 6 THEN - CAST( NULL AS SIGNED ) + + 86 * - 11 END * - 83 + - 56 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3694
SELECT DISTINCT + 62 * + - CASE - - 66 WHEN MIN ( + 70 ) * 6 THEN - CAST ( NULL AS INTEGER ) + + 86 * - 11 END * - 83 + - 56 AS col0
----
NULL

query I rowsort
SELECT - 70 * + 18
----
-1260

onlyif mysql # DIV for integer division: 
query I rowsort label-3696
SELECT - 88 DIV - - 24 col1
----
-3

skipif mysql # not compatible
query I rowsort label-3696
SELECT - 88 / - - 24 col1
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-3697
SELECT + MIN( - + 35 ) + + 94 * + 31
----
2879

skipif mysql # not compatible
query I rowsort label-3697
SELECT + MIN ( - + 35 ) + + 94 * + 31
----
2879

onlyif mysql # aggregate syntax: 
query I rowsort label-3698
SELECT ALL + MIN( DISTINCT + 36 )
----
36

skipif mysql # not compatible
query I rowsort label-3698
SELECT ALL + MIN ( DISTINCT + 36 )
----
36

query I rowsort
SELECT ALL + 68 * 57 / - CASE - 1 WHEN + 95 THEN + AVG ( + 71 ) END - - 25 * + 19 col1
----
NULL

query I rowsort
SELECT DISTINCT + ( + - 43 ) AS col2
----
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-3701
SELECT DISTINCT + COUNT( DISTINCT - 61 )
----
1

skipif mysql # not compatible
query I rowsort label-3701
SELECT DISTINCT + COUNT ( DISTINCT - 61 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3702
SELECT ALL NULLIF ( 73, NULLIF ( - 37, - 65 ) * 18 ) * 22 - + 43 * - COUNT( * ) col2
----
1649

skipif mysql # not compatible
query I rowsort label-3702
SELECT ALL NULLIF ( 73, NULLIF ( - 37, - 65 ) * 18 ) * 22 - + 43 * - COUNT ( * ) col2
----
1649

query II rowsort
SELECT DISTINCT + 80 AS col2, + 54 col2
----
80
54

query I rowsort
SELECT ALL 46 * + 69
----
3174

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3705
SELECT DISTINCT + CAST( NULL AS SIGNED ) * - MIN( + 52 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3705
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * - MIN ( + 52 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3706
SELECT + MIN( DISTINCT + - 59 )
----
-59

skipif mysql # not compatible
query I rowsort label-3706
SELECT + MIN ( DISTINCT + - 59 )
----
-59

onlyif mysql # DIV for integer division: 
query II rowsort label-3707
SELECT - 74 AS col2, 67 DIV + - 24 + - 58
----
-74
-60

skipif mysql # not compatible
query II rowsort label-3707
SELECT - 74 AS col2, 67 / + - 24 + - 58
----
-74
-60

query I rowsort
SELECT + + ( 6 ) col1
----
6

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3709
SELECT - - CAST( NULL AS SIGNED ) - CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-3709
SELECT - - CAST ( NULL AS INTEGER ) - CAST ( NULL AS REAL )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3710
SELECT + 49 * 67 * + - COUNT( * ) AS col2
----
-3283

skipif mysql # not compatible
query I rowsort label-3710
SELECT + 49 * 67 * + - COUNT ( * ) AS col2
----
-3283

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3711
SELECT ALL + 84, CAST( NULL AS SIGNED ) AS col0
----
84
NULL

skipif mysql # not compatible
query II rowsort label-3711
SELECT ALL + 84, CAST ( NULL AS INTEGER ) AS col0
----
84
NULL

query II rowsort
SELECT + 75 AS col0, - 94 - 20 + - 72 AS col1
----
75
-186

query II rowsort
SELECT ALL + 33 AS col1, ( + ( + 59 ) )
----
33
59

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3714
SELECT + 15 DIV + ( CAST( 31 AS SIGNED ) ) * + 20
----
0

skipif mysql # not compatible
query I rowsort label-3714
SELECT + 15 / + ( CAST ( 31 AS INTEGER ) ) * + 20
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3715
SELECT DISTINCT 64 * COUNT( * ) AS col1
----
64

skipif mysql # not compatible
query I rowsort label-3715
SELECT DISTINCT 64 * COUNT ( * ) AS col1
----
64

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3716
SELECT ALL 49 * CAST( + 9 AS SIGNED ) + NULLIF ( + 4, 34 * - NULLIF ( - 51, - 94 ) ) * 89 + 61 col0
----
858

skipif mysql # not compatible
query I rowsort label-3716
SELECT ALL 49 * CAST ( + 9 AS INTEGER ) + NULLIF ( + 4, 34 * - NULLIF ( - 51, - 94 ) ) * 89 + 61 col0
----
858

query I rowsort
SELECT DISTINCT - NULLIF ( + 12, + + 44 ) AS col0
----
-12

query I rowsort
SELECT + + 78 + + 62
----
140

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3719
SELECT DISTINCT CAST( NULL AS DECIMAL ) + + 98 + - COUNT( + 41 ) + - 27 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3719
SELECT DISTINCT CAST ( NULL AS REAL ) + + 98 + - COUNT ( + 41 ) + - 27 AS col2
----
NULL

query I rowsort
SELECT DISTINCT 30 * + CASE 79 WHEN - 86 + 59 THEN 80 + - ( - 24 ) END
----
NULL

query I rowsort
SELECT + - 45 * - - 27
----
-1215

query II rowsort
SELECT + 71 AS col1, + 19 AS col1
----
71
19

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3723
SELECT ALL CAST( NULL AS SIGNED ) + - 91
----
NULL

skipif mysql # not compatible
query I rowsort label-3723
SELECT ALL CAST ( NULL AS INTEGER ) + - 91
----
NULL

query II rowsort
SELECT 11, 38 col2
----
11
38

onlyif mysql # aggregate syntax: 
query I rowsort label-3725
SELECT + COUNT( * ) * 9 AS col2
----
9

skipif mysql # not compatible
query I rowsort label-3725
SELECT + COUNT ( * ) * 9 AS col2
----
9

query I rowsort
SELECT + ( 31 ) + + + 12 AS col0
----
43

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3727
SELECT DISTINCT 1 * CAST( 81 AS SIGNED ) AS col0
----
81

skipif mysql # not compatible
query I rowsort label-3727
SELECT DISTINCT 1 * CAST ( 81 AS INTEGER ) AS col0
----
81

query I rowsort
SELECT ALL + 58 + - 22 - + + NULLIF ( 20, 35 ) - 52
----
-36

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3729
SELECT - CAST( + - 28 AS SIGNED )
----
28

skipif mysql # not compatible
query I rowsort label-3729
SELECT - CAST ( + - 28 AS INTEGER )
----
28

query I rowsort
SELECT ALL 36 * + 18
----
648

query I rowsort
SELECT DISTINCT 95 + - 62 AS col0
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-3732
SELECT DISTINCT SUM( ALL - 36 ) + 37 - + 45 + + 70 * 18
----
1216

skipif mysql # not compatible
query I rowsort label-3732
SELECT DISTINCT SUM ( ALL - 36 ) + 37 - + 45 + + 70 * 18
----
1216

onlyif mysql # DIV for integer division: 
query I rowsort label-3733
SELECT ALL 30 - + 86 + - + 58 DIV + - 1
----
2

skipif mysql # not compatible
query I rowsort label-3733
SELECT ALL 30 - + 86 + - + 58 / + - 1
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-3734
SELECT ALL SUM( DISTINCT - 85 ) AS col0
----
-85

skipif mysql # not compatible
query I rowsort label-3734
SELECT ALL SUM ( DISTINCT - 85 ) AS col0
----
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-3735
SELECT + 12 - + COUNT( * ) col0
----
11

skipif mysql # not compatible
query I rowsort label-3735
SELECT + 12 - + COUNT ( * ) col0
----
11

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3736
SELECT DISTINCT + 41 DIV COUNT( * ) AS col0
----
41

skipif mysql # not compatible
query I rowsort label-3736
SELECT DISTINCT + 41 / COUNT ( * ) AS col0
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-3737
SELECT - MIN( + 86 ) * 63
----
-5418

skipif mysql # not compatible
query I rowsort label-3737
SELECT - MIN ( + 86 ) * 63
----
-5418

onlyif mysql # aggregate syntax: 
query I rowsort label-3738
SELECT ALL + 35 / - 98 * COUNT( DISTINCT + - 65 ) * - 76 - CASE 8 + 97 WHEN 25 THEN NULL WHEN + 3 * 64 THEN + 44 / 73 WHEN 18 THEN 98 + 83 ELSE NULL END col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3738
SELECT ALL + 35 / - 98 * COUNT ( DISTINCT + - 65 ) * - 76 - CASE 8 + 97 WHEN 25 THEN NULL WHEN + 3 * 64 THEN + 44 / 73 WHEN 18 THEN 98 + 83 ELSE NULL END col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3739
SELECT DISTINCT CASE - - CAST( NULL AS DECIMAL ) WHEN - - COUNT( * ) + 24 THEN 12 END * - COALESCE ( + 61 + 85 * 70, - 96 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3739
SELECT DISTINCT CASE - - CAST ( NULL AS REAL ) WHEN - - COUNT ( * ) + 24 THEN 12 END * - COALESCE ( + 61 + 85 * 70, - 96 )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3740
SELECT 14 * + ( + 84 ) * + COUNT( * ) * COALESCE ( + 26, COUNT( * ) DIV 98, + COUNT( * ) * 62 ) + ( + 27 ) - - 80 * + 78
----
36843

skipif mysql # not compatible
query I rowsort label-3740
SELECT 14 * + ( + 84 ) * + COUNT ( * ) * COALESCE ( + 26, COUNT ( * ) / 98, + COUNT ( * ) * 62 ) + ( + 27 ) - - 80 * + 78
----
36843

onlyif mysql # aggregate syntax: 
query I rowsort label-3741
SELECT - COUNT( * ) * - + 71
----
71

skipif mysql # not compatible
query I rowsort label-3741
SELECT - COUNT ( * ) * - + 71
----
71

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3742
SELECT ALL + 23 * - NULLIF ( - - 67, + + ( + CAST( + 62 AS SIGNED ) ) / 37 ) col0
----
-1541

skipif mysql # not compatible
query I rowsort label-3742
SELECT ALL + 23 * - NULLIF ( - - 67, + + ( + CAST ( + 62 AS INTEGER ) ) / 37 ) col0
----
-1541

onlyif mysql # aggregate syntax: 
query I rowsort label-3743
SELECT ALL + COUNT( * ) * + + 8 * - 13 * + + 5 * 17
----
-8840

skipif mysql # not compatible
query I rowsort label-3743
SELECT ALL + COUNT ( * ) * + + 8 * - 13 * + + 5 * 17
----
-8840

onlyif mysql # aggregate syntax: 
query I rowsort label-3744
SELECT ALL + NULLIF ( NULLIF ( - 77, COUNT( * ) - + 46 * 60 ), 2 + 4 )
----
-77

skipif mysql # not compatible
query I rowsort label-3744
SELECT ALL + NULLIF ( NULLIF ( - 77, COUNT ( * ) - + 46 * 60 ), 2 + 4 )
----
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-3745
SELECT - 22 * COUNT( * ) AS col1
----
-22

skipif mysql # not compatible
query I rowsort label-3745
SELECT - 22 * COUNT ( * ) AS col1
----
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-3746
SELECT - 81 * + - COUNT( * )
----
81

skipif mysql # not compatible
query I rowsort label-3746
SELECT - 81 * + - COUNT ( * )
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-3747
SELECT - - 50 * + - COUNT( * )
----
-50

skipif mysql # not compatible
query I rowsort label-3747
SELECT - - 50 * + - COUNT ( * )
----
-50

query I rowsort
SELECT + 68 * - 70 * - 36 * 66 + 21 + - 23 * + 46 col1
----
11308723

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3749
SELECT DISTINCT - + 52 DIV 87 AS col2, 99 + + ( 57 ) + + CAST( NULL AS SIGNED ) AS col0
----
0
NULL

skipif mysql # not compatible
query II rowsort label-3749
SELECT DISTINCT - + 52 / 87 AS col2, 99 + + ( 57 ) + + CAST ( NULL AS INTEGER ) AS col0
----
0
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3750
SELECT - 77 + + 27 - - COUNT( * ) * 37
----
-13

skipif mysql # not compatible
query I rowsort label-3750
SELECT - 77 + + 27 - - COUNT ( * ) * 37
----
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-3751
SELECT + 6 * COUNT( * ) * - 80 + ( COUNT( * ) ) + + 39 * 53 AS col0
----
1588

skipif mysql # not compatible
query I rowsort label-3751
SELECT + 6 * COUNT ( * ) * - 80 + ( COUNT ( * ) ) + + 39 * 53 AS col0
----
1588

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3752
SELECT ALL + COUNT( * ) + + 96 DIV - + 28
----
-2

skipif mysql # not compatible
query I rowsort label-3752
SELECT ALL + COUNT ( * ) + + 96 / - + 28
----
-2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3753
SELECT DISTINCT 53 + - 2 - + CASE 23 WHEN 66 THEN - COUNT( * ) * + 58 END + - CAST( - 89 AS SIGNED ) * 19 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3753
SELECT DISTINCT 53 + - 2 - + CASE 23 WHEN 66 THEN - COUNT ( * ) * + 58 END + - CAST ( - 89 AS INTEGER ) * 19 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3754
SELECT DISTINCT + - ( + 27 ) + 48 + COUNT( * ) + - 60
----
-38

skipif mysql # not compatible
query I rowsort label-3754
SELECT DISTINCT + - ( + 27 ) + 48 + COUNT ( * ) + - 60
----
-38

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3755
SELECT ALL + + 97 + + 3 DIV COUNT( * ) * + 23 * 41
----
2926

skipif mysql # not compatible
query I rowsort label-3755
SELECT ALL + + 97 + + 3 / COUNT ( * ) * + 23 * 41
----
2926

onlyif mysql # aggregate syntax: 
query I rowsort label-3756
SELECT DISTINCT - ( MAX( DISTINCT - NULLIF ( 66, - 82 + + 78 / + 97 ) ) ) AS col2
----
66

skipif mysql # not compatible
query I rowsort label-3756
SELECT DISTINCT - ( MAX ( DISTINCT - NULLIF ( 66, - 82 + + 78 / + 97 ) ) ) AS col2
----
66

query I rowsort
SELECT DISTINCT + - 72 + 60
----
-12

onlyif mysql # aggregate syntax: 
query II rowsort label-3758
SELECT ALL COUNT( * ) + + - 2 AS col2, 68 * 86
----
-1
5848

skipif mysql # not compatible
query II rowsort label-3758
SELECT ALL COUNT ( * ) + + - 2 AS col2, 68 * 86
----
-1
5848

query II rowsort
SELECT 6 * 44 AS col0, 69
----
264
69

onlyif mysql # aggregate syntax: 
query I rowsort label-3760
SELECT - + SUM( ALL 41 ) AS col2
----
-41

skipif mysql # not compatible
query I rowsort label-3760
SELECT - + SUM ( ALL 41 ) AS col2
----
-41

query I rowsort
SELECT ALL CASE + + ( + + 87 ) WHEN 68 + - 51 THEN NULL WHEN + 55 THEN + AVG ( 58 ) * - 88 + ( - 26 ) * 86 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3762
SELECT + COUNT( 0 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-3762
SELECT + COUNT ( 0 ) AS col1
----
1

query I rowsort
SELECT ALL - - 30 + - 54 * + 0 AS col1
----
30

query I rowsort
SELECT ALL 42 * 27 AS col2
----
1134

onlyif mysql # aggregate syntax: 
query I rowsort label-3765
SELECT 13 - + 59 * - 15 - + SUM( ALL - - 96 ) + - 57 * 88 AS col0
----
-4214

skipif mysql # not compatible
query I rowsort label-3765
SELECT 13 - + 59 * - 15 - + SUM ( ALL - - 96 ) + - 57 * 88 AS col0
----
-4214

query I rowsort
SELECT DISTINCT 54 - - 15
----
69

query I rowsort
SELECT ALL 89 * - 4
----
-356

query I rowsort
SELECT 97 * + - 71
----
-6887

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3769
SELECT 3 + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3769
SELECT 3 + + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3770
SELECT COALESCE ( - - 73, - MIN( ALL - 95 ), 17 ) + + 20 DIV - 28
----
73

skipif mysql # not compatible
query I rowsort label-3770
SELECT COALESCE ( - - 73, - MIN ( ALL - 95 ), 17 ) + + 20 / - 28
----
73

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3771
SELECT CAST( NULL AS DECIMAL ) - - 65
----
NULL

skipif mysql # not compatible
query I rowsort label-3771
SELECT CAST ( NULL AS REAL ) - - 65
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3772
SELECT 51 DIV - 20
----
-2

skipif mysql # not compatible
query I rowsort label-3772
SELECT 51 / - 20
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-3773
SELECT ( - 24 ) * + - COUNT( * ) * - 15
----
-360

skipif mysql # not compatible
query I rowsort label-3773
SELECT ( - 24 ) * + - COUNT ( * ) * - 15
----
-360

query II rowsort
SELECT ALL - 2 AS col0, + ( - 59 ) + - 63
----
-2
-122

query I rowsort
SELECT 76 * - 71
----
-5396

onlyif mysql # aggregate syntax: 
query I rowsort label-3776
SELECT + + SUM( ALL + - 73 )
----
-73

skipif mysql # not compatible
query I rowsort label-3776
SELECT + + SUM ( ALL + - 73 )
----
-73

onlyif mysql # aggregate syntax: 
query II rowsort label-3777
SELECT ( - 27 ) + + COUNT( * ) AS col2, 54
----
-26
54

skipif mysql # not compatible
query II rowsort label-3777
SELECT ( - 27 ) + + COUNT ( * ) AS col2, 54
----
-26
54

query I rowsort
SELECT DISTINCT 40 + - + 98 col0
----
-58

query I rowsort
SELECT + + ( 67 )
----
67

onlyif mysql # aggregate syntax: 
query I rowsort label-3780
SELECT CASE - - 45 WHEN + COALESCE ( - 11, - 92, + ( CASE 52 WHEN + 37 THEN - COUNT( * ) + - 78 ELSE 79 END ) ) * - 59 THEN - 35 WHEN 28 THEN 52 END * + 25 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3780
SELECT CASE - - 45 WHEN + COALESCE ( - 11, - 92, + ( CASE 52 WHEN + 37 THEN - COUNT ( * ) + - 78 ELSE 79 END ) ) * - 59 THEN - 35 WHEN 28 THEN 52 END * + 25 AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3781
SELECT ALL + 38 + CAST( - 45 AS SIGNED ) AS col1, + 55 * CAST( NULL AS SIGNED ) AS col2
----
-7
NULL

skipif mysql # not compatible
query II rowsort label-3781
SELECT ALL + 38 + CAST ( - 45 AS INTEGER ) AS col1, + 55 * CAST ( NULL AS INTEGER ) AS col2
----
-7
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3782
SELECT ALL + 58 + + 88 * - 22, + ( + + COUNT( * ) ) DIV 62 col0
----
-1878
0

skipif mysql # not compatible
query II rowsort label-3782
SELECT ALL + 58 + + 88 * - 22, + ( + + COUNT ( * ) ) / 62 col0
----
-1878
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3783
SELECT ALL - - CAST( - AVG ( DISTINCT + + 5 ) AS SIGNED ) * + - ( - 65 ) * - ( + CAST( - 45 AS SIGNED ) )
----
-14625

skipif mysql # not compatible
query I rowsort label-3783
SELECT ALL - - CAST ( - AVG ( DISTINCT + + 5 ) AS INTEGER ) * + - ( - 65 ) * - ( + CAST ( - 45 AS INTEGER ) )
----
-14625

onlyif mysql # DIV for integer division: 
query I rowsort label-3784
SELECT 52 DIV + + NULLIF ( + + 17, + 90 * + - 55 + 12 ) + + 70
----
73

skipif mysql # not compatible
query I rowsort label-3784
SELECT 52 / + + NULLIF ( + + 17, + 90 * + - 55 + 12 ) + + 70
----
73

onlyif mysql # aggregate syntax: 
query II rowsort label-3785
SELECT - 25 * + + 66 * COUNT( * ) col0, + 73
----
-1650
73

skipif mysql # not compatible
query II rowsort label-3785
SELECT - 25 * + + 66 * COUNT ( * ) col0, + 73
----
-1650
73

onlyif mysql # aggregate syntax: 
query I rowsort label-3786
SELECT DISTINCT - COUNT( + + 55 )
----
-1

skipif mysql # not compatible
query I rowsort label-3786
SELECT DISTINCT - COUNT ( + + 55 )
----
-1

query I rowsort
SELECT ALL + + 70 + - 19 AS col0
----
51

query I rowsort
SELECT ALL - 22 + 65
----
43

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3789
SELECT + 91 DIV COUNT( * ) + 11 + + 74 + - COUNT( ALL 86 ) * - 34 AS col0
----
210

skipif mysql # not compatible
query I rowsort label-3789
SELECT + 91 / COUNT ( * ) + 11 + + 74 + - COUNT ( ALL 86 ) * - 34 AS col0
----
210

query I rowsort
SELECT + 61 * + 35 * - + NULLIF ( 15, + 5 ) * 8 col2
----
-256200

query I rowsort
SELECT ALL - 62 - + - 96 AS col1
----
34

query I rowsort
SELECT DISTINCT + - 28 - - 59 AS col2
----
31

query I rowsort
SELECT ALL - 58 * - COALESCE ( + 87, + + 36 * - 81 )
----
5046

onlyif mysql # aggregate syntax: 
query I rowsort label-3794
SELECT DISTINCT MIN( ALL 30 ) col2
----
30

skipif mysql # not compatible
query I rowsort label-3794
SELECT DISTINCT MIN ( ALL 30 ) col2
----
30

onlyif mysql # aggregate syntax: 
query III rowsort label-3795
SELECT - 58 col1, 96 + + ( - - 40 ), 53 + + 7 + 70 * - COUNT( * ) col1
----
-58
136
-10

skipif mysql # not compatible
query III rowsort label-3795
SELECT - 58 col1, 96 + + ( - - 40 ), 53 + + 7 + 70 * - COUNT ( * ) col1
----
-58
136
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-3796
SELECT ALL SUM( + 40 ) AS col0
----
40

skipif mysql # not compatible
query I rowsort label-3796
SELECT ALL SUM ( + 40 ) AS col0
----
40

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3797
SELECT ALL - NULLIF ( COUNT( * ), + 11 + + MIN( ALL + 58 ) ) * - 86 + + CAST( - 52 + 29 AS SIGNED )
----
63

skipif mysql # not compatible
query I rowsort label-3797
SELECT ALL - NULLIF ( COUNT ( * ), + 11 + + MIN ( ALL + 58 ) ) * - 86 + + CAST ( - 52 + 29 AS INTEGER )
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-3798
SELECT 6 * + CASE - 27 WHEN + 32 THEN NULL WHEN + 93 THEN - - COUNT( * ) + 28 * + 34 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3798
SELECT 6 * + CASE - 27 WHEN + 32 THEN NULL WHEN + 93 THEN - - COUNT ( * ) + 28 * + 34 END AS col1
----
NULL

query I rowsort
SELECT 42 * + - 75 * + 45 col0
----
-141750

onlyif mysql # aggregate syntax: 
query I rowsort label-3800
SELECT 16 + + MAX( ALL - + 10 ) AS col2
----
6

skipif mysql # not compatible
query I rowsort label-3800
SELECT 16 + + MAX ( ALL - + 10 ) AS col2
----
6

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3801
SELECT DISTINCT - 41 * - 12 DIV COUNT( * )
----
492

skipif mysql # not compatible
query I rowsort label-3801
SELECT DISTINCT - 41 * - 12 / COUNT ( * )
----
492

onlyif mysql # aggregate syntax: 
query I rowsort label-3802
SELECT ALL MIN( DISTINCT - 74 )
----
-74

skipif mysql # not compatible
query I rowsort label-3802
SELECT ALL MIN ( DISTINCT - 74 )
----
-74

query I rowsort
SELECT 32 * + 66 * - + 64 AS col2
----
-135168

onlyif mysql # aggregate syntax: 
query II rowsort label-3804
SELECT ALL COUNT( * ) AS col0, + ( 83 ) AS col0
----
1
83

skipif mysql # not compatible
query II rowsort label-3804
SELECT ALL COUNT ( * ) AS col0, + ( 83 ) AS col0
----
1
83

onlyif mysql # aggregate syntax: 
query I rowsort label-3805
SELECT DISTINCT SUM( - CASE + 5 WHEN + 18 THEN 37 * - 73 END )
----
NULL

skipif mysql # not compatible
query I rowsort label-3805
SELECT DISTINCT SUM ( - CASE + 5 WHEN + 18 THEN 37 * - 73 END )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3806
SELECT ALL COUNT( - 59 ) DIV + ( + 15 ) * ( + 70 )
----
0

skipif mysql # not compatible
query I rowsort label-3806
SELECT ALL COUNT ( - 59 ) / + ( + 15 ) * ( + 70 )
----
0

query I rowsort
SELECT 22 * 34
----
748

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3808
SELECT 57 * + CAST( COUNT( * ) AS SIGNED )
----
57

skipif mysql # not compatible
query I rowsort label-3808
SELECT 57 * + CAST ( COUNT ( * ) AS INTEGER )
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-3809
SELECT DISTINCT COUNT( * ) * + 90 * + 0
----
0

skipif mysql # not compatible
query I rowsort label-3809
SELECT DISTINCT COUNT ( * ) * + 90 * + 0
----
0

query I rowsort
SELECT ALL 93 + + - 84
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-3811
SELECT + COUNT( ALL + 61 ) * - - 42
----
42

skipif mysql # not compatible
query I rowsort label-3811
SELECT + COUNT ( ALL + 61 ) * - - 42
----
42

onlyif mysql # aggregate syntax: 
query II rowsort label-3812
SELECT DISTINCT + 18 AS col1, - CASE + + 55 WHEN - + 91 + 76 + - SUM( DISTINCT - 1 ) + + 3 / 48 * ( COUNT( + 69 ) ) THEN NULL WHEN CASE - 32 WHEN 13 + + 22 * - 55 THEN NULL WHEN + 78 THEN COALESCE ( + COUNT( * ), - 55 + COUNT( * ) ) ELSE NULL END THEN NULL ELSE COUNT( * ) END
----
18
-1

skipif mysql # not compatible
query II rowsort label-3812
SELECT DISTINCT + 18 AS col1, - CASE + + 55 WHEN - + 91 + 76 + - SUM ( DISTINCT - 1 ) + + 3 / 48 * ( COUNT ( + 69 ) ) THEN NULL WHEN CASE - 32 WHEN 13 + + 22 * - 55 THEN NULL WHEN + 78 THEN COALESCE ( + COUNT ( * ), - 55 + COUNT ( * ) ) ELSE NULL END THEN NULL ELSE COUNT ( * ) END
----
18
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3813
SELECT ALL - 11 * + - 92 + 15 * COUNT( * ) DIV + + 39 + - 16 - - 44 * + 46 AS col2
----
3020

skipif mysql # not compatible
query I rowsort label-3813
SELECT ALL - 11 * + - 92 + 15 * COUNT ( * ) / + + 39 + - 16 - - 44 * + 46 AS col2
----
3020

onlyif mysql # aggregate syntax: 
query I rowsort label-3814
SELECT ALL + 97 * + COUNT( * ) * + COUNT( * ) + + 70
----
167

skipif mysql # not compatible
query I rowsort label-3814
SELECT ALL + 97 * + COUNT ( * ) * + COUNT ( * ) + + 70
----
167

onlyif mysql # aggregate syntax: 
query I rowsort label-3815
SELECT + 34 * + COUNT( * ) + + 77 * + 90 + + MAX( 26 ) AS col1
----
6990

skipif mysql # not compatible
query I rowsort label-3815
SELECT + 34 * + COUNT ( * ) + + 77 * + 90 + + MAX ( 26 ) AS col1
----
6990

query I rowsort
SELECT ALL + 82 * 18 + + 75 AS col2
----
1551

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3817
SELECT CAST( - - ( 38 ) AS SIGNED )
----
38

skipif mysql # not compatible
query I rowsort label-3817
SELECT CAST ( - - ( 38 ) AS INTEGER )
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-3818
SELECT + - MAX( DISTINCT + 89 ) AS col1
----
-89

skipif mysql # not compatible
query I rowsort label-3818
SELECT + - MAX ( DISTINCT + 89 ) AS col1
----
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-3819
SELECT + + COUNT( * ) + 85
----
86

skipif mysql # not compatible
query I rowsort label-3819
SELECT + + COUNT ( * ) + 85
----
86

query II rowsort
SELECT - - 61 * 70 - + 18 * - 18, + 16 + + ( + 95 ) + 27 * - 86 col2
----
4594
-2211

onlyif mysql # aggregate syntax: 
query I rowsort label-3821
SELECT ALL COUNT( * ) * - - 91 - - 2 AS col1
----
93

skipif mysql # not compatible
query I rowsort label-3821
SELECT ALL COUNT ( * ) * - - 91 - - 2 AS col1
----
93

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3822
SELECT + 98 * - NULLIF ( - 38, + - ( 44 ) ) + COUNT( * ) DIV COUNT( * ) AS col0
----
3725

skipif mysql # not compatible
query I rowsort label-3822
SELECT + 98 * - NULLIF ( - 38, + - ( 44 ) ) + COUNT ( * ) / COUNT ( * ) AS col0
----
3725

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3823
SELECT - 59 * 82 + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3823
SELECT - 59 * 82 + CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3824
SELECT DISTINCT + COUNT( * ) * + 32 - 43 + - - CASE - MAX( + 76 ) WHEN 60 THEN + 72 + 84 WHEN + COUNT( * ) * NULLIF ( - 65, 14 - COALESCE ( + 24 + 54, + SUM( - CAST( NULL AS DECIMAL ) ), + 8 ) ) THEN 37 * - CAST( 73 AS SIGNED ) ELSE NULL END * 60 / 34 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3824
SELECT DISTINCT + COUNT ( * ) * + 32 - 43 + - - CASE - MAX ( + 76 ) WHEN 60 THEN + 72 + 84 WHEN + COUNT ( * ) * NULLIF ( - 65, 14 - COALESCE ( + 24 + 54, + SUM ( - CAST ( NULL AS REAL ) ), + 8 ) ) THEN 37 * - CAST ( 73 AS INTEGER ) ELSE NULL END * 60 / 34 col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3825
SELECT ALL + - CASE - ( - 60 ) WHEN COALESCE ( - 11, 60 + + COUNT( * ), - 41 * + CAST( NULL AS SIGNED ) ) + 23 THEN + 97 / 75 WHEN 86 * 63 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-3825
SELECT ALL + - CASE - ( - 60 ) WHEN COALESCE ( - 11, 60 + + COUNT ( * ), - 41 * + CAST ( NULL AS INTEGER ) ) + 23 THEN + 97 / 75 WHEN 86 * 63 THEN NULL END
----
NULL

query I rowsort
SELECT - 46 * - 7 * - 95 - + + 33 * - ( 31 ) + 35
----
-29532

query I rowsort
SELECT + + 94 * - 7 AS col1
----
-658

query I rowsort
SELECT - 60 + - + 27 AS col1
----
-87

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3829
SELECT + 72 / + - CAST( NULL AS SIGNED ) * - + SUM( DISTINCT 65 ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3829
SELECT + 72 / + - CAST ( NULL AS INTEGER ) * - + SUM ( DISTINCT 65 ) col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3830
SELECT - 77 DIV 65
----
-1

skipif mysql # not compatible
query I rowsort label-3830
SELECT - 77 / 65
----
-1

query II rowsort
SELECT - 89 * - 35 AS col0, + 21
----
3115
21

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3832
SELECT ALL COALESCE ( - 39, + - 51, 35 DIV 70 + COUNT( * ) * - + 75 + 60 )
----
-39

skipif mysql # not compatible
query I rowsort label-3832
SELECT ALL COALESCE ( - 39, + - 51, 35 / 70 + COUNT ( * ) * - + 75 + 60 )
----
-39

query I rowsort
SELECT - 24 * + ( - - 50 )
----
-1200

onlyif mysql # aggregate syntax: 
query II rowsort label-3834
SELECT ALL SUM( + + 58 ) AS col2, ( - COUNT( * ) )
----
58
-1

skipif mysql # not compatible
query II rowsort label-3834
SELECT ALL SUM ( + + 58 ) AS col2, ( - COUNT ( * ) )
----
58
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-3835
SELECT - 41 DIV + 42 col0
----
0

skipif mysql # not compatible
query I rowsort label-3835
SELECT - 41 / + 42 col0
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-3836
SELECT DISTINCT SUM( DISTINCT - 32 ) AS col1, + ( + 0 ) * - 35
----
-32
0

skipif mysql # not compatible
query II rowsort label-3836
SELECT DISTINCT SUM ( DISTINCT - 32 ) AS col1, + ( + 0 ) * - 35
----
-32
0

query I rowsort
SELECT - 35 + + 56 * + + 96
----
5341

onlyif mysql # aggregate syntax: 
query I rowsort label-3838
SELECT DISTINCT - NULLIF ( + 22, - 13 + - + 22 / - NULLIF ( - COUNT( * ), + + 98 ) * - 76 ) * - 48
----
1056

skipif mysql # not compatible
query I rowsort label-3838
SELECT DISTINCT - NULLIF ( + 22, - 13 + - + 22 / - NULLIF ( - COUNT ( * ), + + 98 ) * - 76 ) * - 48
----
1056

onlyif mysql # aggregate syntax: 
query I rowsort label-3839
SELECT ALL + 55 + ( COALESCE ( - 10, - 67 - ( - MAX( 20 ) ) ) ) * 45 AS col2
----
-395

skipif mysql # not compatible
query I rowsort label-3839
SELECT ALL + 55 + ( COALESCE ( - 10, - 67 - ( - MAX ( 20 ) ) ) ) * 45 AS col2
----
-395

query I rowsort
SELECT - 87 * 2 * 38
----
-6612

query I rowsort
SELECT ALL - 92 + 44
----
-48

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3842
SELECT + CAST( + 76 AS SIGNED ) - + 36 + - COUNT( * )
----
39

skipif mysql # not compatible
query I rowsort label-3842
SELECT + CAST ( + 76 AS INTEGER ) - + 36 + - COUNT ( * )
----
39

query I rowsort
SELECT DISTINCT 4 + 98
----
102

onlyif mysql # aggregate syntax: 
query I rowsort label-3844
SELECT DISTINCT + 38 + - 86 * + + COUNT( * ) AS col2
----
-48

skipif mysql # not compatible
query I rowsort label-3844
SELECT DISTINCT + 38 + - 86 * + + COUNT ( * ) AS col2
----
-48

query I rowsort
SELECT - - 85 + - - 3 AS col2
----
88

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3846
SELECT + + 0 * - 52 + - 71 * + COUNT( ALL + 70 ) + + - 26 - + AVG ( 50 ) / ( CAST( NULL AS SIGNED ) * 34 ) * 73
----
NULL

skipif mysql # not compatible
query I rowsort label-3846
SELECT + + 0 * - 52 + - 71 * + COUNT ( ALL + 70 ) + + - 26 - + AVG ( 50 ) / ( CAST ( NULL AS INTEGER ) * 34 ) * 73
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3847
SELECT ALL + 36 DIV + - ( - 54 ) + - 69
----
-69

skipif mysql # not compatible
query I rowsort label-3847
SELECT ALL + 36 / + - ( - 54 ) + - 69
----
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-3848
SELECT - NULLIF ( + 93, + + 76 - 52 * COUNT( * ) / - 13 )
----
-93

skipif mysql # not compatible
query I rowsort label-3848
SELECT - NULLIF ( + 93, + + 76 - 52 * COUNT ( * ) / - 13 )
----
-93

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3849
SELECT ALL CASE - CAST( NULL AS SIGNED ) WHEN - - 20 - - 46 - - + 47 * 84 * ( + 93 ) THEN - ( 15 ) * 8 WHEN 40 + + 69 THEN NULL END / + MAX( - 26 ) + + COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3849
SELECT ALL CASE - CAST ( NULL AS INTEGER ) WHEN - - 20 - - 46 - - + 47 * 84 * ( + 93 ) THEN - ( 15 ) * 8 WHEN 40 + + 69 THEN NULL END / + MAX ( - 26 ) + + COUNT ( * ) AS col1
----
NULL

query I rowsort
SELECT + 16 * + 80 AS col2
----
1280

query I rowsort
SELECT + 59 * + 44
----
2596

query I rowsort
SELECT ALL ( + + ( - 81 ) ) * + + 19 * + + 58 AS col2
----
-89262

query I rowsort
SELECT DISTINCT - 48 * + 86 * 52 - + + 43 * - NULLIF ( - 36, 73 ) AS col1
----
-216204

onlyif mysql # aggregate syntax: 
query I rowsort label-3854
SELECT ALL + MAX( + 23 ) AS col0
----
23

skipif mysql # not compatible
query I rowsort label-3854
SELECT ALL + MAX ( + 23 ) AS col0
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-3855
SELECT + + COUNT( * ) * + + COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-3855
SELECT + + COUNT ( * ) * + + COUNT ( * )
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3856
SELECT ALL + COALESCE ( 48, + - ( 55 ) * - 41 - 83 + - 26 * COALESCE ( + CASE CAST( 58 AS SIGNED ) WHEN COUNT( * ) / - 1 + 13 / COUNT( * ) THEN - ( - 19 ) * + CAST( 29 AS SIGNED ) WHEN COUNT( * ) * 43 THEN - 43 WHEN 96 THEN NULL WHEN + 50 THEN NULL END * 13 + 17, - 42, 24 ) + - 13, 5 ) * 22
----
1056

skipif mysql # not compatible
query I rowsort label-3856
SELECT ALL + COALESCE ( 48, + - ( 55 ) * - 41 - 83 + - 26 * COALESCE ( + CASE CAST ( 58 AS INTEGER ) WHEN COUNT ( * ) / - 1 + 13 / COUNT ( * ) THEN - ( - 19 ) * + CAST ( 29 AS INTEGER ) WHEN COUNT ( * ) * 43 THEN - 43 WHEN 96 THEN NULL WHEN + 50 THEN NULL END * 13 + 17, - 42, 24 ) + - 13, 5 ) * 22
----
1056

onlyif mysql # aggregate syntax: 
query I rowsort label-3857
SELECT + CASE + CASE - + 1 WHEN - COUNT( * ) THEN NULL WHEN - COUNT( * ) + - 33 + - - ( - 81 ) THEN NULL ELSE 54 END WHEN + COUNT( ALL ( - 30 ) ) - CASE 18 WHEN AVG ( + 4 ) - + 75 THEN NULL WHEN - 58 / ( 73 ) THEN + 4 + - 30 END * 54 THEN 47 ELSE 6 + + ( - 82 ) * 55 END AS col0
----
-4504

skipif mysql # not compatible
query I rowsort label-3857
SELECT + CASE + CASE - + 1 WHEN - COUNT ( * ) THEN NULL WHEN - COUNT ( * ) + - 33 + - - ( - 81 ) THEN NULL ELSE 54 END WHEN + COUNT ( ALL ( - 30 ) ) - CASE 18 WHEN AVG ( + 4 ) - + 75 THEN NULL WHEN - 58 / ( 73 ) THEN + 4 + - 30 END * 54 THEN 47 ELSE 6 + + ( - 82 ) * 55 END AS col0
----
-4504

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3858
SELECT + - 48 * CASE 18 WHEN - MAX( DISTINCT - + 45 ) THEN 81 WHEN - 88 * 8 THEN NULL WHEN + CAST( NULL AS SIGNED ) THEN - COALESCE ( 48, 20 / 70 ) END + 33 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3858
SELECT + - 48 * CASE 18 WHEN - MAX ( DISTINCT - + 45 ) THEN 81 WHEN - 88 * 8 THEN NULL WHEN + CAST ( NULL AS INTEGER ) THEN - COALESCE ( 48, 20 / 70 ) END + 33 AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3859
SELECT + SUM( - 44 ) - + CAST( ( 35 ) AS SIGNED ) AS col0
----
-79

skipif mysql # not compatible
query I rowsort label-3859
SELECT + SUM ( - 44 ) - + CAST ( ( 35 ) AS INTEGER ) AS col0
----
-79

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3860
SELECT ALL CASE ( MIN( DISTINCT + 93 ) ) WHEN + 0 * - SUM( CAST( - + 59 AS SIGNED ) ) / - 63 - - SUM( ALL - 46 ) * 28 THEN 58 ELSE + 30 * 71 END * 6
----
12780

skipif mysql # not compatible
query I rowsort label-3860
SELECT ALL CASE ( MIN ( DISTINCT + 93 ) ) WHEN + 0 * - SUM ( CAST ( - + 59 AS INTEGER ) ) / - 63 - - SUM ( ALL - 46 ) * 28 THEN 58 ELSE + 30 * 71 END * 6
----
12780

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3861
SELECT DISTINCT + 58 AS col1, 82 DIV - COUNT( * )
----
58
-82

skipif mysql # not compatible
query II rowsort label-3861
SELECT DISTINCT + 58 AS col1, 82 / - COUNT ( * )
----
58
-82

query I rowsort
SELECT ALL + 69 * 57
----
3933

onlyif mysql # aggregate syntax: 
query I rowsort label-3863
SELECT CASE 19 WHEN + ( + 66 ) + - 67 + - 70 THEN + 81 WHEN COUNT( * ) * + 33 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-3863
SELECT CASE 19 WHEN + ( + 66 ) + - 67 + - 70 THEN + 81 WHEN COUNT ( * ) * + 33 THEN NULL END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3864
SELECT - CAST( NULL AS SIGNED ) AS col1, - 32 DIV COUNT( * ) AS col2
----
NULL
-32

skipif mysql # not compatible
query II rowsort label-3864
SELECT - CAST ( NULL AS INTEGER ) AS col1, - 32 / COUNT ( * ) AS col2
----
NULL
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-3865
SELECT ALL - 32 * - - AVG ( DISTINCT - 12 ) + - CASE - + 16 WHEN - - 55 + 95 * - 48 / + ( + 28 ) THEN NULL ELSE CASE CASE - ( 47 ) WHEN 40 THEN + AVG ( DISTINCT - 64 ) WHEN - 27 THEN 20 * + 77 ELSE NULL END WHEN 7 * 26 THEN + 52 * + CASE 85 * 84 WHEN - 73 THEN - ( ( + 12 ) ) END END / ( SUM( 60 ) ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-3865
SELECT ALL - 32 * - - AVG ( DISTINCT - 12 ) + - CASE - + 16 WHEN - - 55 + 95 * - 48 / + ( + 28 ) THEN NULL ELSE CASE CASE - ( 47 ) WHEN 40 THEN + AVG ( DISTINCT - 64 ) WHEN - 27 THEN 20 * + 77 ELSE NULL END WHEN 7 * 26 THEN + 52 * + CASE 85 * 84 WHEN - 73 THEN - ( ( + 12 ) ) END END / ( SUM ( 60 ) ) END
----
NULL

query I rowsort
SELECT - CASE - 82 WHEN - - 74 THEN NULL ELSE NULLIF ( + - ( - CASE + - 22 WHEN + 47 + 63 THEN + ( 74 ) - - 63 * 94 WHEN + 32 THEN + 36 + + 16 END ), - 52 + - CASE + 24 + 50 WHEN - ( 37 ) * 86 THEN 59 END ) + + 5 * 25 END / + 59 col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3867
SELECT ( COUNT( * ) ) * + ( + 43 ) * 87 + + 17
----
3758

skipif mysql # not compatible
query I rowsort label-3867
SELECT ( COUNT ( * ) ) * + ( + 43 ) * 87 + + 17
----
3758

query I rowsort
SELECT 83 + 40 AS col2
----
123

onlyif mysql # DIV for integer division: 
query I rowsort label-3869
SELECT ALL + 33 DIV 9 AS col2
----
3

skipif mysql # not compatible
query I rowsort label-3869
SELECT ALL + 33 / 9 AS col2
----
3

query II rowsort
SELECT 3 AS col2, - 2 AS col2
----
3
-2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3871
SELECT ALL CAST( + 89 AS SIGNED ) + - 98
----
-9

skipif mysql # not compatible
query I rowsort label-3871
SELECT ALL CAST ( + 89 AS INTEGER ) + - 98
----
-9

query II rowsort
SELECT ALL + 24 + + 8 + - 13 + - 42 AS col1, + 79
----
-23
79

query I rowsort
SELECT ALL - 61 + - 90 * + - ( 90 ) AS col2
----
8039

query I rowsort
SELECT 73 * - 87 AS col2
----
-6351

onlyif mysql # aggregate syntax: 
query I rowsort label-3875
SELECT DISTINCT + 79 + - 82 - + 5 * + 33 - + COUNT( * ) AS col2
----
-169

skipif mysql # not compatible
query I rowsort label-3875
SELECT DISTINCT + 79 + - 82 - + 5 * + 33 - + COUNT ( * ) AS col2
----
-169

query I rowsort
SELECT ALL + - 38 + 3 - 79 * + 65 AS col1
----
-5170

query I rowsort
SELECT 88 - 10
----
78

query II rowsort
SELECT - + 4, - 18 AS col0
----
-4
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-3879
SELECT - 30 - - ( - CASE + + 71 WHEN - - ( + 13 ) THEN + MAX( - 41 ) END ) * 5 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3879
SELECT - 30 - - ( - CASE + + 71 WHEN - - ( + 13 ) THEN + MAX ( - 41 ) END ) * 5 AS col2
----
NULL

query I rowsort
SELECT ( - 25 ) * + + 1 AS col1
----
-25

query I rowsort
SELECT - 44 + - 56 col2
----
-100

onlyif mysql # aggregate syntax: 
query I rowsort label-3882
SELECT ALL - - MAX( DISTINCT - 88 )
----
-88

skipif mysql # not compatible
query I rowsort label-3882
SELECT ALL - - MAX ( DISTINCT - 88 )
----
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-3883
SELECT ALL - - 50 - + 52 * + + 27 * + 4 + - 61 + - + 13 - + COUNT( * ) AS col1
----
-5641

skipif mysql # not compatible
query I rowsort label-3883
SELECT ALL - - 50 - + 52 * + + 27 * + 4 + - 61 + - + 13 - + COUNT ( * ) AS col1
----
-5641

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3884
SELECT - 71 * + 21 - + CAST( NULL AS SIGNED ) + + 84 * - 92 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3884
SELECT - 71 * + 21 - + CAST ( NULL AS INTEGER ) + + 84 * - 92 AS col0
----
NULL

query II rowsort
SELECT ALL - + 10, - ( - 87 ) * - 61 AS col2
----
-10
-5307

query I rowsort
SELECT ALL - NULLIF ( - - 34, - - 70 ) AS col2
----
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-3887
SELECT ALL - + SUM( ALL - 96 )
----
96

skipif mysql # not compatible
query I rowsort label-3887
SELECT ALL - + SUM ( ALL - 96 )
----
96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3888
SELECT + - CAST( - 49 AS SIGNED ) * + + ( + 11 ) + 87 + - 43 + + MIN( DISTINCT - 21 ) col2
----
562

skipif mysql # not compatible
query I rowsort label-3888
SELECT + - CAST ( - 49 AS INTEGER ) * + + ( + 11 ) + 87 + - 43 + + MIN ( DISTINCT - 21 ) col2
----
562

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3889
SELECT ALL + SUM( ALL - 44 ) DIV + + 90 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3889
SELECT ALL + SUM ( ALL - 44 ) / + + 90 AS col1
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3890
SELECT - COALESCE ( 77, 9 DIV - 87 * + 94 + - - 1 + + 93 + + 47 * - 91 ) DIV COUNT( * ) AS col1
----
-77

skipif mysql # not compatible
query I rowsort label-3890
SELECT - COALESCE ( 77, 9 / - 87 * + 94 + - - 1 + + 93 + + 47 * - 91 ) / COUNT ( * ) AS col1
----
-77

query I rowsort
SELECT 3 * + + 69 * 33 + + + 76 AS col2
----
6907

query I rowsort
SELECT 88 * 24 * - 26 AS col2
----
-54912

query I rowsort
SELECT ALL 4 * + 92 + 99
----
467

query I rowsort
SELECT 75 + + - 77
----
-2

onlyif mysql # DIV for integer division: 
query I rowsort label-3895
SELECT 22 DIV - 90 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3895
SELECT 22 / - 90 AS col1
----
0

query I rowsort
SELECT 26 + 97
----
123

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3897
SELECT ALL - CASE - + 44 WHEN + CAST( + 50 AS SIGNED ) * + 9 THEN - 36 * 72 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3897
SELECT ALL - CASE - + 44 WHEN + CAST ( + 50 AS INTEGER ) * + 9 THEN - 36 * 72 END AS col1
----
NULL

query I rowsort
SELECT DISTINCT - ( - ( - 31 ) ) * + 23 * - - 40 AS col1
----
-28520

query I rowsort
SELECT DISTINCT 42 + - 96 + + ( - 28 ) + - 5 * - 35 * + 13
----
2193

onlyif mysql # aggregate syntax: 
query I rowsort label-3900
SELECT CASE - 47 WHEN - - 18 THEN NULL WHEN 43 THEN - + 23 * - + 27 + - COALESCE ( - 82, + 20 + NULLIF ( - 2, 63 + + 34 ) ) * + 7 END * - SUM( 4 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3900
SELECT CASE - 47 WHEN - - 18 THEN NULL WHEN 43 THEN - + 23 * - + 27 + - COALESCE ( - 82, + 20 + NULLIF ( - 2, 63 + + 34 ) ) * + 7 END * - SUM ( 4 )
----
NULL

query I rowsort
SELECT DISTINCT ( - 56 ) + 12
----
-44

query I rowsort
SELECT ALL 76 + ( - 4 ) AS col1
----
72

query II rowsort
SELECT ALL 23 * - 91 AS col2, - 53
----
-2093
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-3904
SELECT ALL - SUM( + 69 ) + 72 AS col0
----
3

skipif mysql # not compatible
query I rowsort label-3904
SELECT ALL - SUM ( + 69 ) + 72 AS col0
----
3

query I rowsort
SELECT DISTINCT 28 - + 63 AS col0
----
-35

query I rowsort
SELECT ALL 4 * + 36 AS col1
----
144

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3907
SELECT ALL 36 - - CASE 93 WHEN - 14 * + 94 * 51 THEN + - CAST( NULL AS SIGNED ) * + + AVG ( + 38 ) / - 34 WHEN 91 / 49 THEN 52 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3907
SELECT ALL 36 - - CASE 93 WHEN - 14 * + 94 * 51 THEN + - CAST ( NULL AS INTEGER ) * + + AVG ( + 38 ) / - 34 WHEN 91 / 49 THEN 52 END AS col2
----
NULL

query I rowsort
SELECT 3 + 8 + 81 AS col1
----
92

query I rowsort
SELECT - 19 * - 51
----
969

query I rowsort
SELECT 62 * - 33 AS col0
----
-2046

onlyif mysql # DIV for integer division: 
query II rowsort label-3911
SELECT DISTINCT - COALESCE ( - + 71, - 74 ) DIV 61 AS col1, AVG ( DISTINCT - + CASE 16 WHEN - - ( + - 79 ) + - 42 THEN - ( + 48 ) END )
----
1
NULL

skipif mysql # not compatible
query II rowsort label-3911
SELECT DISTINCT - COALESCE ( - + 71, - 74 ) / 61 AS col1, AVG ( DISTINCT - + CASE 16 WHEN - - ( + - 79 ) + - 42 THEN - ( + 48 ) END )
----
1
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3912
SELECT DISTINCT - 95 - - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3912
SELECT DISTINCT - 95 - - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3913
SELECT ALL - CAST( + COUNT( DISTINCT + 10 ) AS SIGNED ) DIV + 79 * + 24 - - - NULLIF ( 87, ( + MIN( 27 ) ) )
----
-87

skipif mysql # not compatible
query I rowsort label-3913
SELECT ALL - CAST ( + COUNT ( DISTINCT + 10 ) AS INTEGER ) / + 79 * + 24 - - - NULLIF ( 87, ( + MIN ( 27 ) ) )
----
-87

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3914
SELECT COALESCE ( - - 70, - CAST( NULL AS SIGNED ) + + ( - ( CASE - 56 WHEN 70 THEN 1 * - 6 ELSE 45 * 82 END ) ) ) * 99
----
6930

skipif mysql # not compatible
query I rowsort label-3914
SELECT COALESCE ( - - 70, - CAST ( NULL AS INTEGER ) + + ( - ( CASE - 56 WHEN 70 THEN 1 * - 6 ELSE 45 * 82 END ) ) ) * 99
----
6930

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3915
SELECT ALL + 78 / CAST( NULL AS SIGNED ) - - NULLIF ( + 1, + 10 * 73 * - - 36 + - COUNT( 54 ) / COUNT( * ) - NULLIF ( + AVG ( - 60 ), 20 ) ) + - 87 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3915
SELECT ALL + 78 / CAST ( NULL AS INTEGER ) - - NULLIF ( + 1, + 10 * 73 * - - 36 + - COUNT ( 54 ) / COUNT ( * ) - NULLIF ( + AVG ( - 60 ), 20 ) ) + - 87 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3916
SELECT 72 + - 14 * COUNT( * )
----
58

skipif mysql # not compatible
query I rowsort label-3916
SELECT 72 + - 14 * COUNT ( * )
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-3917
SELECT + 69 * ( + COUNT( * ) ) AS col2
----
69

skipif mysql # not compatible
query I rowsort label-3917
SELECT + 69 * ( + COUNT ( * ) ) AS col2
----
69

query I rowsort
SELECT - 78 + + 94
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-3919
SELECT - 17 * - - NULLIF ( - 90, + + 29 ) * 3 + + COUNT( * ) col0
----
4591

skipif mysql # not compatible
query I rowsort label-3919
SELECT - 17 * - - NULLIF ( - 90, + + 29 ) * 3 + + COUNT ( * ) col0
----
4591

onlyif mysql # DIV for integer division: 
query I rowsort label-3920
SELECT + 39 DIV + + 27 + 30
----
31

skipif mysql # not compatible
query I rowsort label-3920
SELECT + 39 / + + 27 + 30
----
31

query I rowsort
SELECT DISTINCT + 54 * + 19 - + - 90 AS col2
----
1116

onlyif mysql # aggregate syntax: 
query I rowsort label-3922
SELECT - 35 * - SUM( ALL + 99 ) * - 2 AS col0
----
-6930

skipif mysql # not compatible
query I rowsort label-3922
SELECT - 35 * - SUM ( ALL + 99 ) * - 2 AS col0
----
-6930

onlyif mysql # aggregate syntax: 
query I rowsort label-3923
SELECT 11 + - MIN( 74 ) AS col0
----
-63

skipif mysql # not compatible
query I rowsort label-3923
SELECT 11 + - MIN ( 74 ) AS col0
----
-63

query II rowsort
SELECT ALL + + 18 * + 99 AS col0, 88
----
1782
88

onlyif mysql # aggregate syntax: 
query I rowsort label-3925
SELECT ALL - + ( COUNT( ALL 30 ) ) col0
----
-1

skipif mysql # not compatible
query I rowsort label-3925
SELECT ALL - + ( COUNT ( ALL 30 ) ) col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3926
SELECT ALL - MAX( ALL + 70 ) * - - 48 * - - 43 * - 97
----
14014560

skipif mysql # not compatible
query I rowsort label-3926
SELECT ALL - MAX ( ALL + 70 ) * - - 48 * - - 43 * - 97
----
14014560

onlyif mysql # aggregate syntax: 
query I rowsort label-3927
SELECT ALL - COUNT( * ) * + 24 + - 87 AS col1
----
-111

skipif mysql # not compatible
query I rowsort label-3927
SELECT ALL - COUNT ( * ) * + 24 + - 87 AS col1
----
-111

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3928
SELECT 57 + - + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3928
SELECT 57 + - + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3929
SELECT ALL + CAST( NULL AS SIGNED ) + - ( 42 ) + + - 42 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3929
SELECT ALL + CAST ( NULL AS INTEGER ) + - ( 42 ) + + - 42 AS col1
----
NULL

query I rowsort
SELECT ALL + ( + 39 ) AS col1
----
39

onlyif mysql # DIV for integer division: 
query I rowsort label-3931
SELECT - 59 - 92 - + 33 DIV - 12
----
-149

skipif mysql # not compatible
query I rowsort label-3931
SELECT - 59 - 92 - + 33 / - 12
----
-149

onlyif mysql # aggregate syntax: 
query I rowsort label-3932
SELECT ALL - 33 * - + NULLIF ( - - ( + 95 ), - 21 - - - COUNT( * ) ) AS col2
----
3135

skipif mysql # not compatible
query I rowsort label-3932
SELECT ALL - 33 * - + NULLIF ( - - ( + 95 ), - 21 - - - COUNT ( * ) ) AS col2
----
3135

query I rowsort
SELECT + 29 * - - 89
----
2581

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3934
SELECT ALL - 34 * - 85 / - CASE + CASE + 99 WHEN 97 * + 77 * - 97 THEN - + COUNT( * ) - + CAST( + 52 AS SIGNED ) END WHEN + 7 + - 73 THEN + 81 + - COUNT( + 70 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-3934
SELECT ALL - 34 * - 85 / - CASE + CASE + 99 WHEN 97 * + 77 * - 97 THEN - + COUNT ( * ) - + CAST ( + 52 AS INTEGER ) END WHEN + 7 + - 73 THEN + 81 + - COUNT ( + 70 ) END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3935
SELECT ALL + 79 + CASE 99 WHEN 27 THEN 15 * 15 * - 22 + ( - 91 ) ELSE - - 0 END DIV 13
----
79

skipif mysql # not compatible
query I rowsort label-3935
SELECT ALL + 79 + CASE 99 WHEN 27 THEN 15 * 15 * - 22 + ( - 91 ) ELSE - - 0 END / 13
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-3936
SELECT DISTINCT NULLIF ( + 49, - + SUM( - 41 ) ) col2
----
49

skipif mysql # not compatible
query I rowsort label-3936
SELECT DISTINCT NULLIF ( + 49, - + SUM ( - 41 ) ) col2
----
49

onlyif mysql # aggregate syntax: 
query II rowsort label-3937
SELECT - 42 col1, - 6 - + 45 * COUNT( * ) * - 9
----
-42
399

skipif mysql # not compatible
query II rowsort label-3937
SELECT - 42 col1, - 6 - + 45 * COUNT ( * ) * - 9
----
-42
399

onlyif mysql # aggregate syntax: 
query I rowsort label-3938
SELECT ALL MIN( ( 6 ) ) - 72
----
-66

skipif mysql # not compatible
query I rowsort label-3938
SELECT ALL MIN ( ( 6 ) ) - 72
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-3939
SELECT - SUM( DISTINCT - + 44 ) AS col2
----
44

skipif mysql # not compatible
query I rowsort label-3939
SELECT - SUM ( DISTINCT - + 44 ) AS col2
----
44

query I rowsort
SELECT + + 79 + + 59 - + 48
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-3941
SELECT DISTINCT - ( 74 ) * + ( - - 95 ) * - COUNT( * ) + + 24 + ( - 17 ) * + 72 col2
----
5830

skipif mysql # not compatible
query I rowsort label-3941
SELECT DISTINCT - ( 74 ) * + ( - - 95 ) * - COUNT ( * ) + + 24 + ( - 17 ) * + 72 col2
----
5830

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3942
SELECT DISTINCT - 49 * - 70 + + ( + 59 ) * + 60 * - + 74 DIV - COUNT( * ) - - 45
----
265435

skipif mysql # not compatible
query I rowsort label-3942
SELECT DISTINCT - 49 * - 70 + + ( + 59 ) * + 60 * - + 74 / - COUNT ( * ) - - 45
----
265435

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3943
SELECT + MAX( - 48 ) DIV + 91 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3943
SELECT + MAX ( - 48 ) / + 91 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3944
SELECT ALL - 16 * + - 40 + - 98 * + + SUM( + ( - 40 ) ) + - 49 AS col0
----
4511

skipif mysql # not compatible
query I rowsort label-3944
SELECT ALL - 16 * + - 40 + - 98 * + + SUM ( + ( - 40 ) ) + - 49 AS col0
----
4511

onlyif mysql # DIV for integer division: 
query I rowsort label-3945
SELECT + + 36 - - + 31 DIV 72 AS col0
----
36

skipif mysql # not compatible
query I rowsort label-3945
SELECT + + 36 - - + 31 / 72 AS col0
----
36

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3946
SELECT + COUNT( * ) DIV - + 10 + + - COUNT( * ) + 78 * + - 23 * 92 + ( + 27 ) - - COALESCE ( 94, - COALESCE ( 19, + 28 + CAST( + 98 + + 39 AS SIGNED ), 11 ) ) * 43
----
-160980

skipif mysql # not compatible
query I rowsort label-3946
SELECT + COUNT ( * ) / - + 10 + + - COUNT ( * ) + 78 * + - 23 * 92 + ( + 27 ) - - COALESCE ( 94, - COALESCE ( 19, + 28 + CAST ( + 98 + + 39 AS INTEGER ), 11 ) ) * 43
----
-160980

query I rowsort
SELECT ALL - 67 + + 24
----
-43

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3948
SELECT + - 61 - + + 87 DIV 92 * - 16 * + - 85 * - MAX( + - COALESCE ( + 35, - 97, 31 * - 88 ) ) * + COALESCE ( - COUNT( * ) - ( ( COUNT( ALL 30 ) ) ) DIV - 25, COUNT( * ) + + 52 )
----
-61

skipif mysql # not compatible
query I rowsort label-3948
SELECT + - 61 - + + 87 / 92 * - 16 * + - 85 * - MAX ( + - COALESCE ( + 35, - 97, 31 * - 88 ) ) * + COALESCE ( - COUNT ( * ) - ( ( COUNT ( ALL 30 ) ) ) / - 25, COUNT ( * ) + + 52 )
----
-61

query I rowsort
SELECT + + 86 + + 88
----
174

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3950
SELECT DISTINCT + NULLIF ( - - 39, - COUNT( * ) ) DIV ( + + 4 ) * + 24 + 49 + 16 * - 84 * 53 * - 52 AS col0
----
3704329

skipif mysql # not compatible
query I rowsort label-3950
SELECT DISTINCT + NULLIF ( - - 39, - COUNT ( * ) ) / ( + + 4 ) * + 24 + 49 + 16 * - 84 * 53 * - 52 AS col0
----
3704329

onlyif mysql # aggregate syntax: 
query II rowsort label-3951
SELECT 32 col2, + NULLIF ( + 74, 17 + - + 6 * MAX( ALL + 39 ) / + 31 + 10 ) AS col1
----
32
74

skipif mysql # not compatible
query II rowsort label-3951
SELECT 32 col2, + NULLIF ( + 74, 17 + - + 6 * MAX ( ALL + 39 ) / + 31 + 10 ) AS col1
----
32
74

onlyif mysql # aggregate syntax: 
query I rowsort label-3952
SELECT DISTINCT - ( - 86 ) * + 92 + - COUNT( * )
----
7911

skipif mysql # not compatible
query I rowsort label-3952
SELECT DISTINCT - ( - 86 ) * + 92 + - COUNT ( * )
----
7911

onlyif mysql # aggregate syntax: 
query I rowsort label-3953
SELECT DISTINCT + CASE - + 13 WHEN - + ( SUM( ALL 39 ) ) THEN - ( + - COUNT( * ) ) WHEN COALESCE ( + 98, 51, 14 - - 6 * - 97 ) THEN NULL WHEN 37 THEN NULL END * 25 + CASE COALESCE ( 77, + 65 * - NULLIF ( 25, 70 * 23 ) + + COUNT( * ), + COUNT( DISTINCT ( ( 73 ) ) ) ) - - 62 WHEN + 19 THEN + 15 END
----
NULL

skipif mysql # not compatible
query I rowsort label-3953
SELECT DISTINCT + CASE - + 13 WHEN - + ( SUM ( ALL 39 ) ) THEN - ( + - COUNT ( * ) ) WHEN COALESCE ( + 98, 51, 14 - - 6 * - 97 ) THEN NULL WHEN 37 THEN NULL END * 25 + CASE COALESCE ( 77, + 65 * - NULLIF ( 25, 70 * 23 ) + + COUNT ( * ), + COUNT ( DISTINCT ( ( 73 ) ) ) ) - - 62 WHEN + 19 THEN + 15 END
----
NULL

query II rowsort
SELECT - 95 - + - ( - 62 ) + - 55 AS col0, + 68
----
-212
68

query I rowsort
SELECT ( + - NULLIF ( 51, - - 37 ) )
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-3956
SELECT - 71 + - CASE + MIN( + 47 ) WHEN - COUNT( * ) THEN NULL WHEN - 76 THEN NULL ELSE + + 97 END AS col1
----
-168

skipif mysql # not compatible
query I rowsort label-3956
SELECT - 71 + - CASE + MIN ( + 47 ) WHEN - COUNT ( * ) THEN NULL WHEN - 76 THEN NULL ELSE + + 97 END AS col1
----
-168

onlyif mysql # aggregate syntax: 
query I rowsort label-3957
SELECT DISTINCT + MAX( + 46 )
----
46

skipif mysql # not compatible
query I rowsort label-3957
SELECT DISTINCT + MAX ( + 46 )
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-3958
SELECT DISTINCT - 65 * - NULLIF ( + 40, + 3 * - 96 + 3 * + COALESCE ( - + 69, + - 0, - + 65 * + + COUNT( ALL - 14 ) ) + 35 * - 86 ) * COUNT( * ) AS col1
----
2600

skipif mysql # not compatible
query I rowsort label-3958
SELECT DISTINCT - 65 * - NULLIF ( + 40, + 3 * - 96 + 3 * + COALESCE ( - + 69, + - 0, - + 65 * + + COUNT ( ALL - 14 ) ) + 35 * - 86 ) * COUNT ( * ) AS col1
----
2600

onlyif mysql # aggregate syntax: 
query I rowsort label-3959
SELECT ALL 69 * - COUNT( * ) + + 69
----
0

skipif mysql # not compatible
query I rowsort label-3959
SELECT ALL 69 * - COUNT ( * ) + + 69
----
0

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3960
SELECT ALL - 47 * - - SUM( DISTINCT CAST( NULL AS DECIMAL ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-3960
SELECT ALL - 47 * - - SUM ( DISTINCT CAST ( NULL AS REAL ) )
----
NULL

query I rowsort
SELECT - 35 + 4 AS col0
----
-31

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3962
SELECT DISTINCT 59 * - + 74 * CAST( - COUNT( * ) AS SIGNED )
----
4366

skipif mysql # not compatible
query I rowsort label-3962
SELECT DISTINCT 59 * - + 74 * CAST ( - COUNT ( * ) AS INTEGER )
----
4366

query I rowsort
SELECT DISTINCT + ( - - 84 ) col0
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-3964
SELECT DISTINCT CASE - 17 WHEN 11 THEN NULLIF ( COUNT( * ), + 33 ) * + + 50 END * - MAX( DISTINCT + - 46 ) - - + 30 * + 42 * + 36 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3964
SELECT DISTINCT CASE - 17 WHEN 11 THEN NULLIF ( COUNT ( * ), + 33 ) * + + 50 END * - MAX ( DISTINCT + - 46 ) - - + 30 * + 42 * + 36 AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3965
SELECT ALL - 2 DIV + COUNT( * ) AS col1
----
-2

skipif mysql # not compatible
query I rowsort label-3965
SELECT ALL - 2 / + COUNT ( * ) AS col1
----
-2

query I rowsort
SELECT COALESCE ( + - 4, - - 25 * + 10, 4 )
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-3967
SELECT - MIN( 51 ) + 3 AS col2
----
-48

skipif mysql # not compatible
query I rowsort label-3967
SELECT - MIN ( 51 ) + 3 AS col2
----
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-3968
SELECT - 69 * + + ( COUNT( * ) ) * + COUNT( * ) AS col2
----
-69

skipif mysql # not compatible
query I rowsort label-3968
SELECT - 69 * + + ( COUNT ( * ) ) * + COUNT ( * ) AS col2
----
-69

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-3969
SELECT - 75 * - COUNT( * ), - CAST( NULL AS DECIMAL ) * 76 * + 89 * - - ( + + 43 ) AS col2
----
75
NULL

skipif mysql # not compatible
query II rowsort label-3969
SELECT - 75 * - COUNT ( * ), - CAST ( NULL AS REAL ) * 76 * + 89 * - - ( + + 43 ) AS col2
----
75
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query I rowsort label-3970
SELECT ALL - COUNT( * ) DIV - CASE - - COALESCE ( - CASE ( - 65 ) WHEN - ( 5 ) THEN 86 * 0 - - 89 ELSE NULL END, + ( 58 ) ) WHEN NULLIF ( 89, - 92 * 98 ) * - CAST( NULL AS DECIMAL ) + 57 THEN + 32 ELSE + CASE + 99 WHEN 30 THEN NULL WHEN 10 - + 65 THEN NULL ELSE 18 END + + MIN( DISTINCT 92 ) END
----
0

skipif mysql # not compatible
query I rowsort label-3970
SELECT ALL - COUNT ( * ) / - CASE - - COALESCE ( - CASE ( - 65 ) WHEN - ( 5 ) THEN 86 * 0 - - 89 ELSE NULL END, + ( 58 ) ) WHEN NULLIF ( 89, - 92 * 98 ) * - CAST ( NULL AS REAL ) + 57 THEN + 32 ELSE + CASE + 99 WHEN 30 THEN NULL WHEN 10 - + 65 THEN NULL ELSE 18 END + + MIN ( DISTINCT 92 ) END
----
0

query I rowsort
SELECT + 17 * + COALESCE ( + ( 42 ), - + CASE + ( - + 93 ) WHEN + + 74 THEN - - 49 END * 23 * + ( 59 ) ) + ( + 90 ) * 20 AS col1
----
2514

query I rowsort
SELECT ALL 40 * 29 + - 47 AS col0
----
1113

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3973
SELECT - 10 * + MIN( ( ( - - CAST( NULL AS SIGNED ) ) ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-3973
SELECT - 10 * + MIN ( ( ( - - CAST ( NULL AS INTEGER ) ) ) )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3974
SELECT ALL + ( + COUNT( * ) ) * + 36 DIV + - 86 * - 97 * - 87 + + 21 AS col0
----
21

skipif mysql # not compatible
query I rowsort label-3974
SELECT ALL + ( + COUNT ( * ) ) * + 36 / + - 86 * - 97 * - 87 + + 21 AS col0
----
21

query II rowsort
SELECT ALL 58, + 42 AS col0
----
58
42

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3976
SELECT - NULLIF ( 98, + COUNT( * ) + - 42 + + 39 ) * + - MIN( DISTINCT + CAST( - + 18 AS SIGNED ) )
----
-1764

skipif mysql # not compatible
query I rowsort label-3976
SELECT - NULLIF ( 98, + COUNT ( * ) + - 42 + + 39 ) * + - MIN ( DISTINCT + CAST ( - + 18 AS INTEGER ) )
----
-1764

query I rowsort
SELECT + + 51 + + 89 AS col2
----
140

query I rowsort
SELECT ALL - NULLIF ( ( - + 95 ), - + 21 + + + ( + 50 ) ) col0
----
95

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3979
SELECT - + CASE - ( 37 ) WHEN + 53 THEN NULL WHEN CAST( + 8 AS SIGNED ) * + 81 - - + 86 * - 42 THEN NULL ELSE - 57 END * + - 28
----
-1596

skipif mysql # not compatible
query I rowsort label-3979
SELECT - + CASE - ( 37 ) WHEN + 53 THEN NULL WHEN CAST ( + 8 AS INTEGER ) * + 81 - - + 86 * - 42 THEN NULL ELSE - 57 END * + - 28
----
-1596

query I rowsort
SELECT + - 76 + COALESCE ( + 64, - 90 * + 96 ) AS col2
----
-12

onlyif mysql # aggregate syntax: 
query II rowsort label-3981
SELECT ALL + SUM( ALL + - 9 ) + - ( + 8 ) AS col2, 37 AS col2
----
-17
37

skipif mysql # not compatible
query II rowsort label-3981
SELECT ALL + SUM ( ALL + - 9 ) + - ( + 8 ) AS col2, 37 AS col2
----
-17
37

onlyif mysql # aggregate syntax: 
query I rowsort label-3982
SELECT - 13 + 49 + + 95 * + 54 + + - COALESCE ( - - COUNT( * ), - COUNT( * ) ) + - 67
----
5098

skipif mysql # not compatible
query I rowsort label-3982
SELECT - 13 + 49 + + 95 * + 54 + + - COALESCE ( - - COUNT ( * ), - COUNT ( * ) ) + - 67
----
5098

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3983
SELECT + ( + + COUNT( * ) ) - - + 6 DIV - 21 + - - 57 AS col1
----
58

skipif mysql # not compatible
query I rowsort label-3983
SELECT + ( + + COUNT ( * ) ) - - + 6 / - 21 + - - 57 AS col1
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-3984
SELECT DISTINCT + CASE COUNT( - 1 ) WHEN + 78 * - MAX( + - 22 ) - - 88 THEN + + 14 + + COALESCE ( - + 80, - 86 / 77 + - 1, 10 ) WHEN COUNT( * ) + 51 / + 8 THEN NULL ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3984
SELECT DISTINCT + CASE COUNT ( - 1 ) WHEN + 78 * - MAX ( + - 22 ) - - 88 THEN + + 14 + + COALESCE ( - + 80, - 86 / 77 + - 1, 10 ) WHEN COUNT ( * ) + 51 / + 8 THEN NULL ELSE NULL END AS col2
----
NULL

query I rowsort
SELECT ALL 83 * - - 78 * - 20 AS col0
----
-129480

query I rowsort
SELECT ALL - 11 * - 56 AS col1
----
616

onlyif mysql # aggregate syntax: 
query II rowsort label-3987
SELECT COUNT( * ) * - + 81, 51 AS col0
----
-81
51

skipif mysql # not compatible
query II rowsort label-3987
SELECT COUNT ( * ) * - + 81, 51 AS col0
----
-81
51

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3988
SELECT ALL 54 + - + 35 + + SUM( ALL + + 62 ) + - 48 DIV - + 94
----
81

skipif mysql # not compatible
query I rowsort label-3988
SELECT ALL 54 + - + 35 + + SUM ( ALL + + 62 ) + - 48 / - + 94
----
81

query I rowsort
SELECT DISTINCT 12 + 75 AS col2
----
87

onlyif mysql # DIV for integer division: 
query I rowsort label-3990
SELECT ALL 11 DIV + 66 col2
----
0

skipif mysql # not compatible
query I rowsort label-3990
SELECT ALL 11 / + 66 col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3991
SELECT COUNT( * ) / + - 21 + 87 + + - CAST( NULL AS SIGNED ) * MAX( - 9 ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3991
SELECT COUNT ( * ) / + - 21 + 87 + + - CAST ( NULL AS INTEGER ) * MAX ( - 9 ) col1
----
NULL

query I rowsort
SELECT ALL - COALESCE ( 71, - ( + + 5 ), 42 ) AS col0
----
-71

query I rowsort
SELECT ALL - 16 * + 41
----
-656

query I rowsort
SELECT 11 * - 83
----
-913

onlyif mysql # aggregate syntax: 
query I rowsort label-3995
SELECT SUM( ALL + + ( + 26 ) ) * SUM( - 15 )
----
-390

skipif mysql # not compatible
query I rowsort label-3995
SELECT SUM ( ALL + + ( + 26 ) ) * SUM ( - 15 )
----
-390

query II rowsort
SELECT + 13 * + 80 - - 41 AS col2, - 30
----
1081
-30

query I rowsort
SELECT ALL 4 * + 33 * - + 51
----
-6732

query I rowsort
SELECT 47 * 63 * 55
----
162855

onlyif mysql # aggregate syntax: 
query I rowsort label-3999
SELECT ALL - MIN( - + 46 )
----
46

skipif mysql # not compatible
query I rowsort label-3999
SELECT ALL - MIN ( - + 46 )
----
46

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4000
SELECT CAST( + 44 AS SIGNED ) AS col0
----
44

skipif mysql # not compatible
query I rowsort label-4000
SELECT CAST ( + 44 AS INTEGER ) AS col0
----
44

query II rowsort
SELECT 39 - - 59 + 92 AS col0, - 81 * - - 47 col0
----
190
-3807

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4002
SELECT COALESCE ( - + SUM( - 97 ), - - CASE + 22 WHEN - 96 - COUNT( * ) DIV - + 9 - - - 3 THEN NULL ELSE + + AVG ( 2 ) + + - 28 END, + COUNT( * ) + + 9 ) DIV 19 col2
----
5

skipif mysql # not compatible
query I rowsort label-4002
SELECT COALESCE ( - + SUM ( - 97 ), - - CASE + 22 WHEN - 96 - COUNT ( * ) / - + 9 - - - 3 THEN NULL ELSE + + AVG ( 2 ) + + - 28 END, + COUNT ( * ) + + 9 ) / 19 col2
----
5

query II rowsort
SELECT ALL + - 12 + 87 AS col1, 27
----
75
27

query I rowsort
SELECT COALESCE ( 80, + 71 )
----
80

query I rowsort
SELECT NULLIF ( - 50, + - 41 + - + 52 ) AS col1
----
-50

query I rowsort
SELECT 19 + - 10 AS col2
----
9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4007
SELECT DISTINCT - + CAST( + 33 AS SIGNED ) + + + CASE + COUNT( DISTINCT + - CAST( + 5 AS SIGNED ) ) WHEN + - SUM( DISTINCT + 4 ) THEN + NULLIF ( + + 25, + 13 ) * ( - 16 ) * - 56 WHEN 97 * - 14 THEN CASE 24 WHEN + 17 THEN 6 * + 7 + + 61 ELSE NULL END END + 62 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4007
SELECT DISTINCT - + CAST ( + 33 AS INTEGER ) + + + CASE + COUNT ( DISTINCT + - CAST ( + 5 AS INTEGER ) ) WHEN + - SUM ( DISTINCT + 4 ) THEN + NULLIF ( + + 25, + 13 ) * ( - 16 ) * - 56 WHEN 97 * - 14 THEN CASE 24 WHEN + 17 THEN 6 * + 7 + + 61 ELSE NULL END END + 62 col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4008
SELECT DISTINCT + 33 + - + 40 + 80 + + 53 + + - MIN( ALL - 85 )
----
211

skipif mysql # not compatible
query I rowsort label-4008
SELECT DISTINCT + 33 + - + 40 + 80 + + 53 + + - MIN ( ALL - 85 )
----
211

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4009
SELECT DISTINCT + COUNT( * ) + + 8 DIV + 93 * - 19 - COUNT( * ) AS col0, 54 + 26 + + 44 DIV - 12 AS col1
----
0
77

skipif mysql # not compatible
query II rowsort label-4009
SELECT DISTINCT + COUNT ( * ) + + 8 / + 93 * - 19 - COUNT ( * ) AS col0, 54 + 26 + + 44 / - 12 AS col1
----
0
77

query I rowsort
SELECT DISTINCT + + 70 + - 19 AS col1
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-4011
SELECT ALL - 84 + - - CASE - - 29 WHEN 54 THEN 86 * 62 ELSE COUNT( * ) END col0
----
-83

skipif mysql # not compatible
query I rowsort label-4011
SELECT ALL - 84 + - - CASE - - 29 WHEN 54 THEN 86 * 62 ELSE COUNT ( * ) END col0
----
-83

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4012
SELECT + 46 * - 38 + + NULLIF ( 51, MAX( ALL 60 ) ) + + AVG ( + CAST( NULL AS DECIMAL ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-4012
SELECT + 46 * - 38 + + NULLIF ( 51, MAX ( ALL 60 ) ) + + AVG ( + CAST ( NULL AS REAL ) )
----
NULL

query II rowsort
SELECT DISTINCT + 73 * + 74, 98 AS col0
----
5402
98

onlyif mysql # aggregate syntax: 
query I rowsort label-4014
SELECT ALL - 15 * + - MAX( ( - 68 ) )
----
-1020

skipif mysql # not compatible
query I rowsort label-4014
SELECT ALL - 15 * + - MAX ( ( - 68 ) )
----
-1020

onlyif mysql # aggregate syntax: 
query II rowsort label-4015
SELECT ( - - 48 ) * NULLIF ( + COUNT( * ), - - 43 ) col1, 9 AS col2
----
48
9

skipif mysql # not compatible
query II rowsort label-4015
SELECT ( - - 48 ) * NULLIF ( + COUNT ( * ), - - 43 ) col1, 9 AS col2
----
48
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4016
SELECT 41 + + 83 - - 97 * + - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4016
SELECT 41 + + 83 - - 97 * + - CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT ALL 48 - + CASE 29 WHEN + 32 + - + ( - 5 ) / - + 74 + + - 2 THEN + - 35 * - + 95 + 90 * + + 86 WHEN + 96 THEN + 56 END * 59 AS col0
----
NULL

query I rowsort
SELECT DISTINCT 41 * - 8
----
-328

onlyif mysql # aggregate syntax: 
query I rowsort label-4019
SELECT COUNT( ALL - 11 ) * - - 25 * - 40
----
-1000

skipif mysql # not compatible
query I rowsort label-4019
SELECT COUNT ( ALL - 11 ) * - - 25 * - 40
----
-1000

onlyif mysql # aggregate syntax: 
query I rowsort label-4020
SELECT DISTINCT 5 * CASE COUNT( - 60 ) WHEN - - 88 THEN - COUNT( ALL - - 27 ) ELSE - 66 + + CASE 24 WHEN ( + 79 ) - - - 84 THEN + 65 + - COUNT( * ) WHEN + 17 THEN 34 + - 45 END END * - 88 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4020
SELECT DISTINCT 5 * CASE COUNT ( - 60 ) WHEN - - 88 THEN - COUNT ( ALL - - 27 ) ELSE - 66 + + CASE 24 WHEN ( + 79 ) - - - 84 THEN + 65 + - COUNT ( * ) WHEN + 17 THEN 34 + - 45 END END * - 88 col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4021
SELECT DISTINCT 69 * COUNT( ALL 20 ) AS col1, + 0 * + 64 * - 77
----
69
0

skipif mysql # not compatible
query II rowsort label-4021
SELECT DISTINCT 69 * COUNT ( ALL 20 ) AS col1, + 0 * + 64 * - 77
----
69
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4022
SELECT 49 * - COUNT( * ) + - 14 - 38 * 89 AS col2
----
-3445

skipif mysql # not compatible
query I rowsort label-4022
SELECT 49 * - COUNT ( * ) + - 14 - 38 * 89 AS col2
----
-3445

onlyif mysql # aggregate syntax: 
query I rowsort label-4023
SELECT - 45 + COUNT( * ) + + - COUNT( * )
----
-45

skipif mysql # not compatible
query I rowsort label-4023
SELECT - 45 + COUNT ( * ) + + - COUNT ( * )
----
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-4024
SELECT + 19 + + ( + COUNT( * ) ) + 10 + - - 2
----
32

skipif mysql # not compatible
query I rowsort label-4024
SELECT + 19 + + ( + COUNT ( * ) ) + 10 + - - 2
----
32

query II rowsort
SELECT + 4 AS col2, 90 AS col1
----
4
90

onlyif mysql # DIV for integer division: 
query I rowsort label-4026
SELECT - 28 DIV - 14 AS col2
----
2

skipif mysql # not compatible
query I rowsort label-4026
SELECT - 28 / - 14 AS col2
----
2

query I rowsort
SELECT ALL 98 + - - 21
----
119

query II rowsort
SELECT + - 41 AS col2, 45
----
-41
45

onlyif mysql # aggregate syntax: 
query II rowsort label-4029
SELECT - COUNT( * ) col0, 63 + - COUNT( * )
----
-1
62

skipif mysql # not compatible
query II rowsort label-4029
SELECT - COUNT ( * ) col0, 63 + - COUNT ( * )
----
-1
62

onlyif mysql # aggregate syntax: 
query II rowsort label-4030
SELECT - 16, COUNT( * ) col0
----
-16
1

skipif mysql # not compatible
query II rowsort label-4030
SELECT - 16, COUNT ( * ) col0
----
-16
1

query II rowsort
SELECT DISTINCT + 46 AS col2, 89 AS col0
----
46
89

query I rowsort
SELECT ( + 97 ) + 81 * - 80
----
-6383

query I rowsort
SELECT DISTINCT 87 * + + ( 53 ) - + - 85 * 25 col1
----
6736

query I rowsort
SELECT ALL - + 97 + 17 AS col2
----
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-4035
SELECT 41 + - COUNT( * ) col2
----
40

skipif mysql # not compatible
query I rowsort label-4035
SELECT 41 + - COUNT ( * ) col2
----
40

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4036
SELECT DISTINCT CAST( NULL AS SIGNED ) + + CAST( 80 AS SIGNED ) * - 35 * 39 / - 24 * 29 + 16 AS col2, ( - MIN( - - 39 ) ) * 93 AS col1
----
NULL
-3627

skipif mysql # not compatible
query II rowsort label-4036
SELECT DISTINCT CAST ( NULL AS INTEGER ) + + CAST ( 80 AS INTEGER ) * - 35 * 39 / - 24 * 29 + 16 AS col2, ( - MIN ( - - 39 ) ) * 93 AS col1
----
NULL
-3627

query I rowsort
SELECT - 44 + - 56 AS col0
----
-100

query II rowsort
SELECT DISTINCT 67 AS col2, 58 * + 67
----
67
3886

onlyif mysql # aggregate syntax: 
query I rowsort label-4039
SELECT ALL + MAX( ALL 77 )
----
77

skipif mysql # not compatible
query I rowsort label-4039
SELECT ALL + MAX ( ALL 77 )
----
77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4040
SELECT + + 47 + CAST( - ( - + 1 ) AS SIGNED ) + 40 DIV + 99 AS col2, 94 DIV CASE CASE + + 37 WHEN 96 - - - 37 + - 20 THEN + 16 * MIN( ( 50 ) ) END WHEN 56 * + 64 THEN 72 + - 51 * + COALESCE ( 64, 48 * 36 + 33, - 60 ) WHEN ( 69 ) THEN NULL ELSE ( 8 ) END AS col0
----
48
11

skipif mysql # not compatible
query II rowsort label-4040
SELECT + + 47 + CAST ( - ( - + 1 ) AS INTEGER ) + 40 / + 99 AS col2, 94 / CASE CASE + + 37 WHEN 96 - - - 37 + - 20 THEN + 16 * MIN ( ( 50 ) ) END WHEN 56 * + 64 THEN 72 + - 51 * + COALESCE ( 64, 48 * 36 + 33, - 60 ) WHEN ( 69 ) THEN NULL ELSE ( 8 ) END AS col0
----
48
11

query I rowsort
SELECT - 2 * - 64
----
128

onlyif mysql # aggregate syntax: 
query I rowsort label-4042
SELECT - - 72 + - COUNT( * ) AS col1
----
71

skipif mysql # not compatible
query I rowsort label-4042
SELECT - - 72 + - COUNT ( * ) AS col1
----
71

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4043
SELECT DISTINCT + + SUM( DISTINCT + 75 ) * - 85 col1, + CAST( NULL AS SIGNED ) - - 3 AS col1
----
-6375
NULL

skipif mysql # not compatible
query II rowsort label-4043
SELECT DISTINCT + + SUM ( DISTINCT + 75 ) * - 85 col1, + CAST ( NULL AS INTEGER ) - - 3 AS col1
----
-6375
NULL

query I rowsort
SELECT ALL - 88 * - 31
----
2728

query I rowsort
SELECT - 12 * + ( + - 39 ) AS col2
----
468

onlyif mysql # aggregate syntax: 
query I rowsort label-4046
SELECT ALL - 79 * MAX( + 93 ) AS col2
----
-7347

skipif mysql # not compatible
query I rowsort label-4046
SELECT ALL - 79 * MAX ( + 93 ) AS col2
----
-7347

query I rowsort
SELECT - 30 + + + 79
----
49

query I rowsort
SELECT DISTINCT - 6 * 19 AS col1
----
-114

query II rowsort
SELECT ALL + 43 * 23 AS col2, 75
----
989
75

onlyif mysql # DIV for integer division: 
query I rowsort label-4050
SELECT - 94 DIV 37 AS col1
----
-2

skipif mysql # not compatible
query I rowsort label-4050
SELECT - 94 / 37 AS col1
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-4051
SELECT ( - ( + COUNT( + - 91 ) ) ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-4051
SELECT ( - ( + COUNT ( + - 91 ) ) ) AS col1
----
-1

query I rowsort
SELECT ( + - ( - 8 ) )
----
8

query I rowsort
SELECT + 76 * 97 * + - 42 AS col0
----
-309624

query I rowsort
SELECT + 52 + + 22 * - 67 * + 20 - - 1
----
-29427

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4055
SELECT DISTINCT NULLIF ( + + SUM( DISTINCT + - 73 ), - - 88 ) * COUNT( * ) + 48 + - 16 AS col1, MAX( + 47 ) DIV + SUM( DISTINCT - - 56 )
----
-41
0

skipif mysql # not compatible
query II rowsort label-4055
SELECT DISTINCT NULLIF ( + + SUM ( DISTINCT + - 73 ), - - 88 ) * COUNT ( * ) + 48 + - 16 AS col1, MAX ( + 47 ) / + SUM ( DISTINCT - - 56 )
----
-41
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4056
SELECT - CAST( NULL AS SIGNED ) * - 88 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4056
SELECT - CAST ( NULL AS INTEGER ) * - 88 AS col0
----
NULL

query I rowsort
SELECT NULLIF ( + 48, + + COALESCE ( - - 80, + 13 ) * + + 71 + ( - 55 ) * 12 )
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-4058
SELECT ALL + 76 * - ( - - ( + 32 ) ) + + COUNT( * )
----
-2431

skipif mysql # not compatible
query I rowsort label-4058
SELECT ALL + 76 * - ( - - ( + 32 ) ) + + COUNT ( * )
----
-2431

onlyif mysql # aggregate syntax: 
query I rowsort label-4059
SELECT - COUNT( ( - - 22 ) ) + + - 50 AS col0
----
-51

skipif mysql # not compatible
query I rowsort label-4059
SELECT - COUNT ( ( - - 22 ) ) + + - 50 AS col0
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-4060
SELECT + + MIN( ALL 36 ) col0
----
36

skipif mysql # not compatible
query I rowsort label-4060
SELECT + + MIN ( ALL 36 ) col0
----
36

query I rowsort
SELECT + - NULLIF ( - + 49, 91 ) AS col0
----
49

query I rowsort
SELECT DISTINCT + + 67 * - - 2 + + ( + - 25 ) + + 36 * - 38 AS col0
----
-1259

onlyif mysql # DIV for integer division: 
query I rowsort label-4063
SELECT + - 78 DIV + 19 + 23
----
19

skipif mysql # not compatible
query I rowsort label-4063
SELECT + - 78 / + 19 + 23
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-4064
SELECT + + COUNT( * ) - + + 90
----
-89

skipif mysql # not compatible
query I rowsort label-4064
SELECT + + COUNT ( * ) - + + 90
----
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-4065
SELECT 44 * - + 77 + + - 48 + - + 78 + - COUNT( * )
----
-3515

skipif mysql # not compatible
query I rowsort label-4065
SELECT 44 * - + 77 + + - 48 + - + 78 + - COUNT ( * )
----
-3515

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4066
SELECT ALL - - CASE - 49 WHEN + - 76 THEN NULL WHEN 94 + + + 7 THEN - 17 + COUNT( * ) * 16 - - - COUNT( * ) ELSE + 25 + - - CAST( - - MIN( DISTINCT + - 94 ) AS SIGNED ) + 24 * - NULLIF ( - 56, - COUNT( * ) * + 35 ) END * 67 + 6 * ( - 59 * SUM( DISTINCT 81 ) ) AS col2
----
56751

skipif mysql # not compatible
query I rowsort label-4066
SELECT ALL - - CASE - 49 WHEN + - 76 THEN NULL WHEN 94 + + + 7 THEN - 17 + COUNT ( * ) * 16 - - - COUNT ( * ) ELSE + 25 + - - CAST ( - - MIN ( DISTINCT + - 94 ) AS INTEGER ) + 24 * - NULLIF ( - 56, - COUNT ( * ) * + 35 ) END * 67 + 6 * ( - 59 * SUM ( DISTINCT 81 ) ) AS col2
----
56751

onlyif mysql # aggregate syntax: 
query I rowsort label-4067
SELECT ALL - 33 * + 45 + - - COUNT( * )
----
-1484

skipif mysql # not compatible
query I rowsort label-4067
SELECT ALL - 33 * + 45 + - - COUNT ( * )
----
-1484

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4068
SELECT + 15 * - 13 * + 5 * - 36 + 31 + - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4068
SELECT + 15 * - 13 * + 5 * - 36 + 31 + - CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4069
SELECT ALL - + 18 * - COALESCE ( + - 75, - ( - + COUNT( * ) ) ) - + + 25 AS col2
----
-1375

skipif mysql # not compatible
query I rowsort label-4069
SELECT ALL - + 18 * - COALESCE ( + - 75, - ( - + COUNT ( * ) ) ) - + + 25 AS col2
----
-1375

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4070
SELECT ALL - 32 * + 78, - 11 * - 60 + CAST( + - 94 AS SIGNED ) AS col2
----
-2496
566

skipif mysql # not compatible
query II rowsort label-4070
SELECT ALL - 32 * + 78, - 11 * - 60 + CAST ( + - 94 AS INTEGER ) AS col2
----
-2496
566

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4071
SELECT - CAST( 9 AS SIGNED ) AS col0, 55 * + CAST( + 20 AS SIGNED ) col0
----
-9
1100

skipif mysql # not compatible
query II rowsort label-4071
SELECT - CAST ( 9 AS INTEGER ) AS col0, 55 * + CAST ( + 20 AS INTEGER ) col0
----
-9
1100

query I rowsort
SELECT ALL NULLIF ( - 42, - + 64 * - 40 )
----
-42

query I rowsort
SELECT + 89 * - 31
----
-2759

query I rowsort
SELECT ALL 95 * + 99 col2
----
9405

query I rowsort
SELECT DISTINCT ( + ( - + 94 ) )
----
-94

onlyif mysql # aggregate syntax: 
query II rowsort label-4076
SELECT + MAX( + - 81 ) + - + 40 AS col2, + 12
----
-121
12

skipif mysql # not compatible
query II rowsort label-4076
SELECT + MAX ( + - 81 ) + - + 40 AS col2, + 12
----
-121
12

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4077
SELECT + 53 * - CAST( - + 65 AS SIGNED )
----
3445

skipif mysql # not compatible
query I rowsort label-4077
SELECT + 53 * - CAST ( - + 65 AS INTEGER )
----
3445

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4078
SELECT - 59 * COUNT( ALL + + 18 ) DIV 33 * + ( 87 ) * 42 DIV - + 4
----
913

skipif mysql # not compatible
query I rowsort label-4078
SELECT - 59 * COUNT ( ALL + + 18 ) / 33 * + ( 87 ) * 42 / - + 4
----
913

onlyif mysql # aggregate syntax: 
query I rowsort label-4079
SELECT ALL NULLIF ( 27, + + MAX( DISTINCT + + ( - 20 ) ) ) AS col1
----
27

skipif mysql # not compatible
query I rowsort label-4079
SELECT ALL NULLIF ( 27, + + MAX ( DISTINCT + + ( - 20 ) ) ) AS col1
----
27

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4080
SELECT DISTINCT NULLIF ( + 44, CAST( NULL AS SIGNED ) * - 27 * + - 48 * - 39 ) AS col1, 17 + - 93 * - 39 * 46 col0
----
44
166859

skipif mysql # not compatible
query II rowsort label-4080
SELECT DISTINCT NULLIF ( + 44, CAST ( NULL AS INTEGER ) * - 27 * + - 48 * - 39 ) AS col1, 17 + - 93 * - 39 * 46 col0
----
44
166859

onlyif mysql # aggregate syntax: 
query I rowsort label-4081
SELECT + COALESCE ( COUNT( * ), - + COUNT( * ) ) + - 1 col2
----
0

skipif mysql # not compatible
query I rowsort label-4081
SELECT + COALESCE ( COUNT ( * ), - + COUNT ( * ) ) + - 1 col2
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4082
SELECT ALL - 57 + - - 15 + - COUNT( * ) DIV 13 + - 56 AS col1
----
-98

skipif mysql # not compatible
query I rowsort label-4082
SELECT ALL - 57 + - - 15 + - COUNT ( * ) / 13 + - 56 AS col1
----
-98

query I rowsort
SELECT - 23 + + 89
----
66

query I rowsort
SELECT ALL 29 + 58 AS col1
----
87

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4085
SELECT + ( 1 ) DIV COUNT( * ) + + 64 DIV 89 + - - ( + 56 ) AS col1
----
57

skipif mysql # not compatible
query I rowsort label-4085
SELECT + ( 1 ) / COUNT ( * ) + + 64 / 89 + - - ( + 56 ) AS col1
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-4086
SELECT ALL + NULLIF ( + MAX( ALL - 75 ), + - 67 )
----
-75

skipif mysql # not compatible
query I rowsort label-4086
SELECT ALL + NULLIF ( + MAX ( ALL - 75 ), + - 67 )
----
-75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4087
SELECT ALL NULLIF ( + 41, + 64 ) DIV + 68 + - 50 * - 85 + - - 43 * COUNT( * ) * - CAST( - 17 AS SIGNED ) + + - MIN( DISTINCT - 13 )
----
4994

skipif mysql # not compatible
query I rowsort label-4087
SELECT ALL NULLIF ( + 41, + 64 ) / + 68 + - 50 * - 85 + - - 43 * COUNT ( * ) * - CAST ( - 17 AS INTEGER ) + + - MIN ( DISTINCT - 13 )
----
4994

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4088
SELECT 85 DIV CAST( - 90 AS SIGNED ) * - 7 - 71
----
-71

skipif mysql # not compatible
query I rowsort label-4088
SELECT 85 / CAST ( - 90 AS INTEGER ) * - 7 - 71
----
-71

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4089
SELECT - CAST( COUNT( * ) AS SIGNED ) * 56 DIV + + 57
----
0

skipif mysql # not compatible
query I rowsort label-4089
SELECT - CAST ( COUNT ( * ) AS INTEGER ) * 56 / + + 57
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4090
SELECT - 69 + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4090
SELECT - 69 + - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4091
SELECT CAST( NULL AS SIGNED ) AS col0, - COUNT( COALESCE ( 7, 81, - 35 ) ) col1
----
NULL
-1

skipif mysql # not compatible
query II rowsort label-4091
SELECT CAST ( NULL AS INTEGER ) AS col0, - COUNT ( COALESCE ( 7, 81, - 35 ) ) col1
----
NULL
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4092
SELECT 58 * - - 1 + COUNT( * )
----
59

skipif mysql # not compatible
query I rowsort label-4092
SELECT 58 * - - 1 + COUNT ( * )
----
59

query I rowsort
SELECT 86 * + - 2 + 63
----
-109

query II rowsort
SELECT ALL + 66 AS col1, 89 * 82 AS col0
----
66
7298

query I rowsort
SELECT - - 48 + 68 AS col1
----
116

onlyif mysql # DIV for integer division: 
query I rowsort label-4096
SELECT ALL - 8 DIV 35 + - 97
----
-97

skipif mysql # not compatible
query I rowsort label-4096
SELECT ALL - 8 / 35 + - 97
----
-97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4097
SELECT ALL 42 * 15 - - 23 - CAST( + - 36 AS SIGNED ) * - - 62 - - 23 * + - 1 AS col2
----
2862

skipif mysql # not compatible
query I rowsort label-4097
SELECT ALL 42 * 15 - - 23 - CAST ( + - 36 AS INTEGER ) * - - 62 - - 23 * + - 1 AS col2
----
2862

query I rowsort
SELECT ALL + + ( + 23 ) col1
----
23

query I rowsort
SELECT - - 79 * + 79 + + 38 + - 72
----
6207

onlyif mysql # aggregate syntax: 
query I rowsort label-4100
SELECT DISTINCT - + COUNT( + 9 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-4100
SELECT DISTINCT - + COUNT ( + 9 ) AS col1
----
-1

query I rowsort
SELECT ALL - + 50 * 42 * - - 95
----
-199500

onlyif mysql # aggregate syntax: 
query I rowsort label-4102
SELECT + CASE - 87 WHEN 87 + - - 42 THEN - 75 + COUNT( * ) WHEN - 55 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-4102
SELECT + CASE - 87 WHEN 87 + - - 42 THEN - 75 + COUNT ( * ) WHEN - 55 THEN NULL END
----
NULL

query I rowsort
SELECT ALL - 52 - - 48 AS col0
----
-4

query I rowsort
SELECT DISTINCT 5 * - - 96
----
480

query I rowsort
SELECT 4 + 81
----
85

onlyif mysql # aggregate syntax: 
query II rowsort label-4106
SELECT ALL 36, 75 + COUNT( * ) + - 91 - + + 54 * - 28 AS col1
----
36
1497

skipif mysql # not compatible
query II rowsort label-4106
SELECT ALL 36, 75 + COUNT ( * ) + - 91 - + + 54 * - 28 AS col1
----
36
1497

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4107
SELECT DISTINCT - - 8 * - 24 / + + 24 + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4107
SELECT DISTINCT - - 8 * - 24 / + + 24 + + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4108
SELECT 42 DIV 98
----
0

skipif mysql # not compatible
query I rowsort label-4108
SELECT 42 / 98
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-4109
SELECT 47, COUNT( * ) + 27 + 1 + + 13 AS col1
----
47
42

skipif mysql # not compatible
query II rowsort label-4109
SELECT 47, COUNT ( * ) + 27 + 1 + + 13 AS col1
----
47
42

onlyif mysql # DIV for integer division: 
query I rowsort label-4110
SELECT ALL 47 DIV + + 27 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-4110
SELECT ALL 47 / + + 27 AS col0
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4111
SELECT MIN( - + 44 ) DIV 31
----
-1

skipif mysql # not compatible
query I rowsort label-4111
SELECT MIN ( - + 44 ) / 31
----
-1

query II rowsort
SELECT - 9 AS col2, 39
----
-9
39

query I rowsort
SELECT 5 * + NULLIF ( - 76, ( 46 ) ) AS col2
----
-380

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4114
SELECT - 67 AS col0, COUNT( * ) * - SUM( ALL - 19 ) DIV - 93 AS col1
----
-67
0

skipif mysql # not compatible
query II rowsort label-4114
SELECT - 67 AS col0, COUNT ( * ) * - SUM ( ALL - 19 ) / - 93 AS col1
----
-67
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4115
SELECT ALL COUNT( * ) + - + 86 + 78 AS col2
----
-7

skipif mysql # not compatible
query I rowsort label-4115
SELECT ALL COUNT ( * ) + - + 86 + 78 AS col2
----
-7

onlyif mysql # DIV for integer division: 
query II rowsort label-4116
SELECT - 70 AS col1, - 20 + 75 DIV + + 46 AS col1
----
-70
-19

skipif mysql # not compatible
query II rowsort label-4116
SELECT - 70 AS col1, - 20 + 75 / + + 46 AS col1
----
-70
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-4117
SELECT 95 * - SUM( + 36 )
----
-3420

skipif mysql # not compatible
query I rowsort label-4117
SELECT 95 * - SUM ( + 36 )
----
-3420

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4118
SELECT ALL - 53 + + CAST( - + 41 AS SIGNED ) + - 26 AS col0
----
-120

skipif mysql # not compatible
query I rowsort label-4118
SELECT ALL - 53 + + CAST ( - + 41 AS INTEGER ) + - 26 AS col0
----
-120

onlyif mysql # aggregate syntax: 
query I rowsort label-4119
SELECT ALL MAX( + 15 ) + 95 * 92 - 41 AS col1
----
8714

skipif mysql # not compatible
query I rowsort label-4119
SELECT ALL MAX ( + 15 ) + 95 * 92 - 41 AS col1
----
8714

query I rowsort
SELECT DISTINCT 40 + + 48
----
88

query I rowsort
SELECT 85 * - 67
----
-5695

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4122
SELECT 20 + + COUNT( * ) * + 60 * + - 83, COALESCE ( - + COUNT( * ), - 92 - - 23 DIV 15 * - 25 + - 66 + + 33 * + + 78 ) AS col0
----
-4960
-1

skipif mysql # not compatible
query II rowsort label-4122
SELECT 20 + + COUNT ( * ) * + 60 * + - 83, COALESCE ( - + COUNT ( * ), - 92 - - 23 / 15 * - 25 + - 66 + + 33 * + + 78 ) AS col0
----
-4960
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4123
SELECT ALL 75 + CASE + - NULLIF ( + 32, - COALESCE ( 86, 69 ) / + 59 + - 79 ) WHEN + 18 THEN CASE WHEN COUNT( - + 51 ) NOT IN ( 76 ) THEN 54 / + 23 END END * 59
----
NULL

skipif mysql # not compatible
query I rowsort label-4123
SELECT ALL 75 + CASE + - NULLIF ( + 32, - COALESCE ( 86, 69 ) / + 59 + - 79 ) WHEN + 18 THEN CASE WHEN COUNT ( - + 51 ) NOT IN ( 76 ) THEN 54 / + 23 END END * 59
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4124
SELECT DISTINCT - MAX( DISTINCT + CAST( - - 24 AS SIGNED ) ) AS col0
----
-24

skipif mysql # not compatible
query I rowsort label-4124
SELECT DISTINCT - MAX ( DISTINCT + CAST ( - - 24 AS INTEGER ) ) AS col0
----
-24

onlyif mysql # DIV for integer division: 
query II rowsort label-4125
SELECT 79 AS col1, 16 DIV 70
----
79
0

skipif mysql # not compatible
query II rowsort label-4125
SELECT 79 AS col1, 16 / 70
----
79
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4126
SELECT COUNT( * ) * - 95 DIV + 21 AS col0
----
-4

skipif mysql # not compatible
query I rowsort label-4126
SELECT COUNT ( * ) * - 95 / + 21 AS col0
----
-4

query I rowsort
SELECT ALL 39 + - 58
----
-19

query I rowsort
SELECT DISTINCT - 50 - + 8 col0
----
-58

onlyif mysql # DIV for integer division: 
query I rowsort label-4129
SELECT DISTINCT NULLIF ( - 8, + 89 ) DIV + + 54 - - 8 AS col1
----
8

skipif mysql # not compatible
query I rowsort label-4129
SELECT DISTINCT NULLIF ( - 8, + 89 ) / + + 54 - - 8 AS col1
----
8

query I rowsort
SELECT COALESCE ( 68, 20 * - - 46, + 1 * + - 91 * - 32 + + + 56 + - 13 - 28 + 72 )
----
68

query I rowsort
SELECT ALL + + 3 - - - 28 AS col2
----
-25

query I rowsort
SELECT + 74 * + 73
----
5402

query I rowsort
SELECT 42 * 37 + - 65 AS col2
----
1489

onlyif mysql # aggregate syntax: 
query I rowsort label-4134
SELECT + MAX( - 66 ) * + 41 AS col2
----
-2706

skipif mysql # not compatible
query I rowsort label-4134
SELECT + MAX ( - 66 ) * + 41 AS col2
----
-2706

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4135
SELECT + - CAST( - + 68 AS SIGNED )
----
68

skipif mysql # not compatible
query I rowsort label-4135
SELECT + - CAST ( - + 68 AS INTEGER )
----
68

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4136
SELECT - COUNT( * ) DIV - + 33 * + 28 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4136
SELECT - COUNT ( * ) / - + 33 * + 28 AS col0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4137
SELECT 39 * - CAST( - ( - 34 ) AS SIGNED ) + 76
----
-1250

skipif mysql # not compatible
query I rowsort label-4137
SELECT 39 * - CAST ( - ( - 34 ) AS INTEGER ) + 76
----
-1250

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4138
SELECT - CAST( NULL AS SIGNED ) * MAX( ALL + 89 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4138
SELECT - CAST ( NULL AS INTEGER ) * MAX ( ALL + 89 ) AS col0
----
NULL

query I rowsort
SELECT NULLIF ( + 11, + 46 ) AS col0
----
11

query I rowsort
SELECT DISTINCT - 54 * + - 81 AS col0
----
4374

query II rowsort
SELECT ALL - - 38 AS col2, 35
----
38
35

query II rowsort
SELECT DISTINCT - - 56 col0, 10
----
56
10

query I rowsort
SELECT DISTINCT ( - 59 ) * + 52 AS col0
----
-3068

query I rowsort
SELECT 88 * + 2 AS col0
----
176

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4145
SELECT ALL MAX( - + 41 ) col2, + 41 DIV - - COUNT( ALL + 56 )
----
-41
41

skipif mysql # not compatible
query II rowsort label-4145
SELECT ALL MAX ( - + 41 ) col2, + 41 / - - COUNT ( ALL + 56 )
----
-41
41

query I rowsort
SELECT DISTINCT - 75 * + + 38 AS col1
----
-2850

onlyif mysql # aggregate syntax: 
query I rowsort label-4147
SELECT ALL 41 + - ( SUM( - + 91 ) )
----
132

skipif mysql # not compatible
query I rowsort label-4147
SELECT ALL 41 + - ( SUM ( - + 91 ) )
----
132

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4148
SELECT 76 * 37 * 5 DIV 71 * + COUNT( * )
----
198

skipif mysql # not compatible
query I rowsort label-4148
SELECT 76 * 37 * 5 / 71 * + COUNT ( * )
----
198

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4149
SELECT ALL + 84 + - - 91 + + 24 * - - 99 DIV + COUNT( * ) AS col0
----
2551

skipif mysql # not compatible
query I rowsort label-4149
SELECT ALL + 84 + - - 91 + + 24 * - - 99 / + COUNT ( * ) AS col0
----
2551

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4150
SELECT ALL 35 + + CAST( + 70 AS SIGNED ) * + 88
----
6195

skipif mysql # not compatible
query I rowsort label-4150
SELECT ALL 35 + + CAST ( + 70 AS INTEGER ) * + 88
----
6195

query I rowsort
SELECT ALL + 57 + 15 * - 78
----
-1113

onlyif mysql # aggregate syntax: 
query I rowsort label-4152
SELECT COUNT( * ) - - MIN( - 40 )
----
-39

skipif mysql # not compatible
query I rowsort label-4152
SELECT COUNT ( * ) - - MIN ( - 40 )
----
-39

query I rowsort
SELECT ALL 99 + + - 57
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-4154
SELECT COUNT( ALL + 73 ) * ( 15 ) AS col2
----
15

skipif mysql # not compatible
query I rowsort label-4154
SELECT COUNT ( ALL + 73 ) * ( 15 ) AS col2
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-4155
SELECT DISTINCT CASE - + 58 WHEN 25 - + 32 THEN 88 END / COUNT( * ) / + AVG ( - 77 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4155
SELECT DISTINCT CASE - + 58 WHEN 25 - + 32 THEN 88 END / COUNT ( * ) / + AVG ( - 77 ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4156
SELECT - MAX( 3 )
----
-3

skipif mysql # not compatible
query I rowsort label-4156
SELECT - MAX ( 3 )
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-4157
SELECT ALL ( - + 65 ) * 77 * SUM( + 27 )
----
-135135

skipif mysql # not compatible
query I rowsort label-4157
SELECT ALL ( - + 65 ) * 77 * SUM ( + 27 )
----
-135135

query I rowsort
SELECT ALL + 22 - 61
----
-39

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4159
SELECT DISTINCT NULLIF ( - 63, - ( + 68 ) + - COUNT( * ) ), 59 DIV 1 AS col1
----
-63
59

skipif mysql # not compatible
query II rowsort label-4159
SELECT DISTINCT NULLIF ( - 63, - ( + 68 ) + - COUNT ( * ) ), 59 / 1 AS col1
----
-63
59

onlyif mysql # aggregate syntax: 
query I rowsort label-4160
SELECT DISTINCT - COUNT( ALL 98 )
----
-1

skipif mysql # not compatible
query I rowsort label-4160
SELECT DISTINCT - COUNT ( ALL 98 )
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-4161
SELECT - + CASE 86 WHEN - 29 THEN + + 74 - + 3 WHEN - - 83 + 83 + 74 THEN NULL ELSE 7 END DIV - 24 + ( 56 ) AS col1
----
56

skipif mysql # not compatible
query I rowsort label-4161
SELECT - + CASE 86 WHEN - 29 THEN + + 74 - + 3 WHEN - - 83 + 83 + 74 THEN NULL ELSE 7 END / - 24 + ( 56 ) AS col1
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-4162
SELECT DISTINCT - COUNT( ALL 63 )
----
-1

skipif mysql # not compatible
query I rowsort label-4162
SELECT DISTINCT - COUNT ( ALL 63 )
----
-1

query II rowsort
SELECT DISTINCT + - ( 55 ) AS col1, - 1 AS col0
----
-55
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4164
SELECT ALL 42 * + 26 * + COUNT( + 34 ) AS col1
----
1092

skipif mysql # not compatible
query I rowsort label-4164
SELECT ALL 42 * + 26 * + COUNT ( + 34 ) AS col1
----
1092

query I rowsort
SELECT + 12 * + - 61 * - 65
----
47580

onlyif mysql # aggregate syntax: 
query I rowsort label-4166
SELECT + - NULLIF ( + MIN( ALL 59 ), 67 + - 4 ) col2
----
-59

skipif mysql # not compatible
query I rowsort label-4166
SELECT + - NULLIF ( + MIN ( ALL 59 ), 67 + - 4 ) col2
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-4167
SELECT + 92 * - COUNT( * ) + - COUNT( * )
----
-93

skipif mysql # not compatible
query I rowsort label-4167
SELECT + 92 * - COUNT ( * ) + - COUNT ( * )
----
-93

onlyif mysql # aggregate syntax: 
query II rowsort label-4168
SELECT + 66 + + COUNT( * ) AS col1, + 9 AS col1
----
67
9

skipif mysql # not compatible
query II rowsort label-4168
SELECT + 66 + + COUNT ( * ) AS col1, + 9 AS col1
----
67
9

query I rowsort
SELECT ALL + + 83 * 42 * + + 94 - + 88 AS col2
----
327596

query I rowsort
SELECT DISTINCT + 11 * CASE 1 WHEN + - 42 THEN + + 11 ELSE + 91 END AS col2
----
1001

onlyif mysql # aggregate syntax: 
query I rowsort label-4171
SELECT ALL - COUNT( * ) * - COUNT( + 94 ) + - - 1 * 39 * NULLIF ( - CASE - 42 WHEN + COUNT( * ) THEN + COUNT( * ) WHEN 4 THEN + 98 END, - - 26 ) + - - 85 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4171
SELECT ALL - COUNT ( * ) * - COUNT ( + 94 ) + - - 1 * 39 * NULLIF ( - CASE - 42 WHEN + COUNT ( * ) THEN + COUNT ( * ) WHEN 4 THEN + 98 END, - - 26 ) + - - 85 AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4172
SELECT + + 95 * + CAST( NULL AS SIGNED ) - - - 65 - - MIN( + + 26 ) - + 56 / - 85 + 45 + - 19 + ( 25 ) + - ( - 30 ) * 93
----
NULL

skipif mysql # not compatible
query I rowsort label-4172
SELECT + + 95 * + CAST ( NULL AS INTEGER ) - - - 65 - - MIN ( + + 26 ) - + 56 / - 85 + 45 + - 19 + ( 25 ) + - ( - 30 ) * 93
----
NULL

query I rowsort
SELECT ALL + + ( 53 ) * + 2 AS col0
----
106

onlyif mysql # DIV for integer division: 
query I rowsort label-4174
SELECT + 41 DIV + 9 AS col1
----
4

skipif mysql # not compatible
query I rowsort label-4174
SELECT + 41 / + 9 AS col1
----
4

onlyif mysql # DIV for integer division: 
query I rowsort label-4175
SELECT - 11 DIV + - 41 + + 7
----
7

skipif mysql # not compatible
query I rowsort label-4175
SELECT - 11 / + - 41 + + 7
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-4176
SELECT - 15 + - COUNT( * ) + + ( + - 61 ) AS col2
----
-77

skipif mysql # not compatible
query I rowsort label-4176
SELECT - 15 + - COUNT ( * ) + + ( + - 61 ) AS col2
----
-77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4177
SELECT + + ( COALESCE ( + COUNT( * ), + - 36 ) ) + + - COALESCE ( - COUNT( * ), - COALESCE ( + + 2, - - 99 ) * - 49 + + - 20 DIV + NULLIF ( + CASE + 74 WHEN + 91 + + - 53 + + - COUNT( * ) THEN NULL WHEN 81 THEN - COUNT( * ) ELSE NULL END, 37 + CAST( - COUNT( * ) AS SIGNED ) * 70 ) ) - ( 9 ) col1
----
-7

skipif mysql # not compatible
query I rowsort label-4177
SELECT + + ( COALESCE ( + COUNT ( * ), + - 36 ) ) + + - COALESCE ( - COUNT ( * ), - COALESCE ( + + 2, - - 99 ) * - 49 + + - 20 / + NULLIF ( + CASE + 74 WHEN + 91 + + - 53 + + - COUNT ( * ) THEN NULL WHEN 81 THEN - COUNT ( * ) ELSE NULL END, 37 + CAST ( - COUNT ( * ) AS INTEGER ) * 70 ) ) - ( 9 ) col1
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-4178
SELECT SUM( 52 ) * - 92 + - 52 + + 12
----
-4824

skipif mysql # not compatible
query I rowsort label-4178
SELECT SUM ( 52 ) * - 92 + - 52 + + 12
----
-4824

query I rowsort
SELECT DISTINCT - 16 + - ( - NULLIF ( + 60, 20 ) ) * + + 20
----
1184

onlyif mysql # aggregate syntax: 
query I rowsort label-4180
SELECT + 77 * + 98 + COUNT( * ) AS col0
----
7547

skipif mysql # not compatible
query I rowsort label-4180
SELECT + 77 * + 98 + COUNT ( * ) AS col0
----
7547

onlyif mysql # aggregate syntax: 
query I rowsort label-4181
SELECT ALL + 53 + - + NULLIF ( - - 40, + - ( + COUNT( * ) ) )
----
13

skipif mysql # not compatible
query I rowsort label-4181
SELECT ALL + 53 + - + NULLIF ( - - 40, + - ( + COUNT ( * ) ) )
----
13

onlyif mysql # aggregate syntax: 
query II rowsort label-4182
SELECT ALL ( - MIN( + + 61 ) ) AS col2, 76 AS col2
----
-61
76

skipif mysql # not compatible
query II rowsort label-4182
SELECT ALL ( - MIN ( + + 61 ) ) AS col2, 76 AS col2
----
-61
76

query I rowsort
SELECT DISTINCT ( NULLIF ( + + 29, - - 85 ) )
----
29

query I rowsort
SELECT - 94 + 60
----
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-4185
SELECT ALL + CASE + COUNT( * ) WHEN 1 THEN NULL WHEN + NULLIF ( + NULLIF ( - 67, + ( + 46 ) / ( - + 92 ) ), + 19 ) * + 34 THEN - + 28 / + - 42 ELSE + 75 END + COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4185
SELECT ALL + CASE + COUNT ( * ) WHEN 1 THEN NULL WHEN + NULLIF ( + NULLIF ( - 67, + ( + 46 ) / ( - + 92 ) ), + 19 ) * + 34 THEN - + 28 / + - 42 ELSE + 75 END + COUNT ( * ) AS col1
----
NULL

query I rowsort
SELECT ALL NULLIF ( + 92, - + ( 43 ) + + 10 )
----
92

query I rowsort
SELECT - 70 + + 41 + - 10
----
-39

query I rowsort
SELECT + 46 + 9 + 38 AS col1
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-4189
SELECT ALL + COUNT( * ) * - + 10 AS col1
----
-10

skipif mysql # not compatible
query I rowsort label-4189
SELECT ALL + COUNT ( * ) * - + 10 AS col1
----
-10

query I rowsort
SELECT - 58 * + 72 AS col1
----
-4176

query II rowsort
SELECT DISTINCT COALESCE ( - + 88, 67 ) AS col0, + 6
----
-88
6

query I rowsort
SELECT - 28 * - 82 AS col1
----
2296

query II rowsort
SELECT DISTINCT 91 AS col1, 92 col2
----
91
92

onlyif mysql # aggregate syntax: 
query I rowsort label-4194
SELECT + MAX( ALL + + 57 ) * + - 76 - + - 59
----
-4273

skipif mysql # not compatible
query I rowsort label-4194
SELECT + MAX ( ALL + + 57 ) * + - 76 - + - 59
----
-4273

onlyif mysql # DIV for integer division: 
query II rowsort label-4195
SELECT - + 46 AS col0, - 99 DIV - + 92
----
-46
1

skipif mysql # not compatible
query II rowsort label-4195
SELECT - + 46 AS col0, - 99 / - + 92
----
-46
1

query I rowsort
SELECT - - 9 * - 25
----
-225

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4197
SELECT + NULLIF ( CAST( NULL AS SIGNED ), + 9 * 81 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4197
SELECT + NULLIF ( CAST ( NULL AS INTEGER ), + 9 * 81 ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4198
SELECT + COUNT( * ) * MIN( ALL - - 63 )
----
63

skipif mysql # not compatible
query I rowsort label-4198
SELECT + COUNT ( * ) * MIN ( ALL - - 63 )
----
63

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4199
SELECT DISTINCT - 51 DIV - MIN( ALL - 9 ) + + 45 + + - 30 col1
----
10

skipif mysql # not compatible
query I rowsort label-4199
SELECT DISTINCT - 51 / - MIN ( ALL - 9 ) + + 45 + + - 30 col1
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-4200
SELECT DISTINCT + CASE - 38 WHEN - + COUNT( * ) THEN + - 83 - - 53 ELSE + 17 END AS col1
----
17

skipif mysql # not compatible
query I rowsort label-4200
SELECT DISTINCT + CASE - 38 WHEN - + COUNT ( * ) THEN + - 83 - - 53 ELSE + 17 END AS col1
----
17

onlyif mysql # DIV for integer division: 
query I rowsort label-4201
SELECT 24 DIV - 85 + 46
----
46

skipif mysql # not compatible
query I rowsort label-4201
SELECT 24 / - 85 + 46
----
46

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4202
SELECT ALL CASE - 19 WHEN 64 THEN - AVG ( ALL 29 ) * CAST( + 14 AS DECIMAL ) + + COALESCE ( + CAST( + MIN( 89 ) AS SIGNED ), + 13, - 31 ) * - 58 * + + 75 + 31 * - - 67 WHEN COUNT( * ) + 20 THEN 25 + 0 WHEN + 4 / 77 THEN NULL END * 95 + - 7 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4202
SELECT ALL CASE - 19 WHEN 64 THEN - AVG ( ALL 29 ) * CAST ( + 14 AS REAL ) + + COALESCE ( + CAST ( + MIN ( 89 ) AS INTEGER ), + 13, - 31 ) * - 58 * + + 75 + 31 * - - 67 WHEN COUNT ( * ) + 20 THEN 25 + 0 WHEN + 4 / 77 THEN NULL END * 95 + - 7 col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4203
SELECT + - SUM( DISTINCT 75 ) - - - COUNT( ALL + 35 ) * - + 20 DIV - 28 + + ( - - 4 ) + - 41 - 80
----
-192

skipif mysql # not compatible
query I rowsort label-4203
SELECT + - SUM ( DISTINCT 75 ) - - - COUNT ( ALL + 35 ) * - + 20 / - 28 + + ( - - 4 ) + - 41 - 80
----
-192

query I rowsort
SELECT - CASE 59 WHEN - 63 THEN NULL ELSE + - 75 END
----
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4205
SELECT + CAST( + + 46 AS SIGNED ) AS col1
----
46

skipif mysql # not compatible
query I rowsort label-4205
SELECT + CAST ( + + 46 AS INTEGER ) AS col1
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-4206
SELECT ALL 17 * COUNT( * ) + + 12
----
29

skipif mysql # not compatible
query I rowsort label-4206
SELECT ALL 17 * COUNT ( * ) + + 12
----
29

query I rowsort
SELECT - 76 * - + 60
----
4560

onlyif mysql # DIV for integer division: 
query I rowsort label-4208
SELECT - 94 DIV + + 50
----
-1

skipif mysql # not compatible
query I rowsort label-4208
SELECT - 94 / + + 50
----
-1

query II rowsort
SELECT - 53 - + - 15, - 70 AS col1
----
-38
-70

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4210
SELECT ALL MIN( DISTINCT + + 3 ) AS col0, - 59 + + CASE - - 3 WHEN CAST( NULL AS SIGNED ) THEN + 5 WHEN - ( 7 ) THEN NULL ELSE - 24 END * 91
----
3
-2243

skipif mysql # not compatible
query II rowsort label-4210
SELECT ALL MIN ( DISTINCT + + 3 ) AS col0, - 59 + + CASE - - 3 WHEN CAST ( NULL AS INTEGER ) THEN + 5 WHEN - ( 7 ) THEN NULL ELSE - 24 END * 91
----
3
-2243

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4211
SELECT - CAST( + 37 AS SIGNED ), 6 AS col0
----
-37
6

skipif mysql # not compatible
query II rowsort label-4211
SELECT - CAST ( + 37 AS INTEGER ), 6 AS col0
----
-37
6

query I rowsort
SELECT COALESCE ( 60, 82 ) col0
----
60

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4213
SELECT + 41 * + NULLIF ( - COUNT( * ), ( - - 26 ) + - - CAST( NULL AS SIGNED ) ) * 24 * + 56 / + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4213
SELECT + 41 * + NULLIF ( - COUNT ( * ), ( - - 26 ) + - - CAST ( NULL AS INTEGER ) ) * 24 * + 56 / + CAST ( NULL AS INTEGER )
----
NULL

query II rowsort
SELECT ALL COALESCE ( + 83, 81, - 3 ) AS col0, + 40 * + - 46
----
83
-1840

onlyif mysql # aggregate syntax: 
query I rowsort label-4215
SELECT 58 * + - COUNT( * ) - + 55 AS col2
----
-113

skipif mysql # not compatible
query I rowsort label-4215
SELECT 58 * + - COUNT ( * ) - + 55 AS col2
----
-113

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4216
SELECT SUM( + + CAST( ( 42 ) AS SIGNED ) ) AS col0, + 72
----
42
72

skipif mysql # not compatible
query II rowsort label-4216
SELECT SUM ( + + CAST ( ( 42 ) AS INTEGER ) ) AS col0, + 72
----
42
72

onlyif mysql # aggregate syntax: 
query I rowsort label-4217
SELECT - MAX( + - 91 )
----
91

skipif mysql # not compatible
query I rowsort label-4217
SELECT - MAX ( + - 91 )
----
91

query I rowsort
SELECT DISTINCT ( + + 91 )
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-4219
SELECT DISTINCT MIN( 65 ) * + 26
----
1690

skipif mysql # not compatible
query I rowsort label-4219
SELECT DISTINCT MIN ( 65 ) * + 26
----
1690

query I rowsort
SELECT ALL COALESCE ( + - 46, 84 ) AS col2
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-4221
SELECT 36 - + COALESCE ( + 62, + - SUM( + - 70 ) * - 51 * + 11 )
----
-26

skipif mysql # not compatible
query I rowsort label-4221
SELECT 36 - + COALESCE ( + 62, + - SUM ( + - 70 ) * - 51 * + 11 )
----
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-4222
SELECT + 7 + COALESCE ( + COUNT( * ), 36 ) * - - CASE 28 WHEN 46 / - 20 * + + 2 + + 69 + + 91 THEN NULL WHEN - + 9 THEN - - 86 + - - 0 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4222
SELECT + 7 + COALESCE ( + COUNT ( * ), 36 ) * - - CASE 28 WHEN 46 / - 20 * + + 2 + + 69 + + 91 THEN NULL WHEN - + 9 THEN - - 86 + - - 0 END AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4223
SELECT ALL - - 25 DIV - 69 + - 56 * - - MAX( 15 )
----
-840

skipif mysql # not compatible
query I rowsort label-4223
SELECT ALL - - 25 / - 69 + - 56 * - - MAX ( 15 )
----
-840

onlyif mysql # DIV for integer division: 
query I rowsort label-4224
SELECT 25 DIV - 64 + 97 AS col0
----
97

skipif mysql # not compatible
query I rowsort label-4224
SELECT 25 / - 64 + 97 AS col0
----
97

query I rowsort
SELECT DISTINCT - ( + 35 ) + + - 14 AS col1
----
-49

query I rowsort
SELECT ALL + + 12 + - + 22
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-4227
SELECT ALL 87 + - + ( + + COUNT( * ) ) + 33
----
119

skipif mysql # not compatible
query I rowsort label-4227
SELECT ALL 87 + - + ( + + COUNT ( * ) ) + 33
----
119

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4228
SELECT COUNT( * ) DIV - ( 6 )
----
0

skipif mysql # not compatible
query I rowsort label-4228
SELECT COUNT ( * ) / - ( 6 )
----
0

query II rowsort
SELECT 94 * - ( 65 ) + + 35 AS col1, 86
----
-6075
86

query I rowsort
SELECT DISTINCT + 26 + + + 36 + - 96
----
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-4231
SELECT + + CASE - + CASE - 96 WHEN - 25 * 98 - - + 9 THEN + 58 WHEN + + 98 THEN - COUNT( * ) END WHEN 49 / - 27 - + 47 THEN NULL WHEN + + COUNT( * ) + 52 THEN + 24 ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4231
SELECT + + CASE - + CASE - 96 WHEN - 25 * 98 - - + 9 THEN + 58 WHEN + + 98 THEN - COUNT ( * ) END WHEN 49 / - 27 - + 47 THEN NULL WHEN + + COUNT ( * ) + 52 THEN + 24 ELSE NULL END AS col0
----
NULL

query I rowsort
SELECT ALL + ( - - 12 ) + - - ( + 40 ) + + + 9 * - 93 + + 98 * - 33
----
-4019

query I rowsort
SELECT DISTINCT 72 * + 45 AS col0
----
3240

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4234
SELECT DISTINCT - 23 DIV - + MIN( - + COALESCE ( + - 36, - CASE + - 90 WHEN + 8 * 93 * + - 88 * - 89 + - 42 THEN - 39 ELSE NULL END ) )
----
0

skipif mysql # not compatible
query I rowsort label-4234
SELECT DISTINCT - 23 / - + MIN ( - + COALESCE ( + - 36, - CASE + - 90 WHEN + 8 * 93 * + - 88 * - 89 + - 42 THEN - 39 ELSE NULL END ) )
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4235
SELECT + CASE - 6 WHEN 3 THEN - ( - 26 ) + COUNT( * ) + + 82 + + ( + ( - - 46 ) ) * + 0 - 33 - 44 - - - 23 * - 60 + - - COUNT( * ) / - 85 * - + 28 * CASE 18 WHEN + ( COUNT( * ) ) + 75 * ( + 99 * NULLIF ( 51 * 16, + 33 ) ) THEN CAST( CASE 36 WHEN - 34 THEN - COUNT( * ) * 44 ELSE NULL END AS SIGNED ) END END / 96 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4235
SELECT + CASE - 6 WHEN 3 THEN - ( - 26 ) + COUNT ( * ) + + 82 + + ( + ( - - 46 ) ) * + 0 - 33 - 44 - - - 23 * - 60 + - - COUNT ( * ) / - 85 * - + 28 * CASE 18 WHEN + ( COUNT ( * ) ) + 75 * ( + 99 * NULLIF ( 51 * 16, + 33 ) ) THEN CAST ( CASE 36 WHEN - 34 THEN - COUNT ( * ) * 44 ELSE NULL END AS INTEGER ) END END / 96 col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4236
SELECT ALL ( + 64 ) * - 65 - - NULLIF ( MAX( ALL - - 79 ), - 47 + + + 44 ) + COUNT( * ) * 25 DIV 4 col2
----
-4075

skipif mysql # not compatible
query I rowsort label-4236
SELECT ALL ( + 64 ) * - 65 - - NULLIF ( MAX ( ALL - - 79 ), - 47 + + + 44 ) + COUNT ( * ) * 25 / 4 col2
----
-4075

onlyif mysql # aggregate syntax: 
query I rowsort label-4237
SELECT 35 * - MAX( ALL 32 ) * - + 5 + + 76 - + COUNT( * )
----
5675

skipif mysql # not compatible
query I rowsort label-4237
SELECT 35 * - MAX ( ALL 32 ) * - + 5 + + 76 - + COUNT ( * )
----
5675

query I rowsort
SELECT ALL + 32 + - 36
----
-4

query I rowsort
SELECT ALL ( 52 ) * 53 * - - 79
----
217724

onlyif mysql # aggregate syntax: 
query II rowsort label-4240
SELECT ALL SUM( + - 99 ) - + 59, + 65 * + 46 AS col1
----
-158
2990

skipif mysql # not compatible
query II rowsort label-4240
SELECT ALL SUM ( + - 99 ) - + 59, + 65 * + 46 AS col1
----
-158
2990

onlyif mysql # aggregate syntax: 
query I rowsort label-4241
SELECT 78 * CASE - ( NULLIF ( + - ( + ( - + COALESCE ( - - COUNT( * ), 87 ) ) ), ( 73 ) - 2 ) ) WHEN + 92 THEN + 65 WHEN AVG ( ALL + 52 ) THEN - 74 END
----
NULL

skipif mysql # not compatible
query I rowsort label-4241
SELECT 78 * CASE - ( NULLIF ( + - ( + ( - + COALESCE ( - - COUNT ( * ), 87 ) ) ), ( 73 ) - 2 ) ) WHEN + 92 THEN + 65 WHEN AVG ( ALL + 52 ) THEN - 74 END
----
NULL

query I rowsort
SELECT 14 + - + 34 + + - 25 * - 97 * - - COALESCE ( 45, - - 40 ) AS col2
----
109105

query II rowsort
SELECT 48, COALESCE ( + 39, + COALESCE ( 56, + 54 + 46 ) ) AS col0
----
48
39

query I rowsort
SELECT NULLIF ( + 2, - 87 ) + - + 7 AS col2
----
-5

onlyif mysql # DIV for integer division: 
query II rowsort label-4245
SELECT 4 * - CASE + 69 WHEN 22 THEN NULL WHEN 31 THEN + + 60 END, + 63 DIV - 91 AS col0
----
NULL
0

skipif mysql # not compatible
query II rowsort label-4245
SELECT 4 * - CASE + 69 WHEN 22 THEN NULL WHEN 31 THEN + + 60 END, + 63 / - 91 AS col0
----
NULL
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4246
SELECT ALL - 36 * - CASE - ( - 38 ) WHEN - CAST( NULL AS SIGNED ) + 59 THEN NULL WHEN COUNT( * ) * + CAST( + + 11 AS SIGNED ) THEN NULL ELSE - 25 END
----
-900

skipif mysql # not compatible
query I rowsort label-4246
SELECT ALL - 36 * - CASE - ( - 38 ) WHEN - CAST ( NULL AS INTEGER ) + 59 THEN NULL WHEN COUNT ( * ) * + CAST ( + + 11 AS INTEGER ) THEN NULL ELSE - 25 END
----
-900

query I rowsort
SELECT ( 21 ) + - 58 AS col1
----
-37

query II rowsort
SELECT DISTINCT 25 AS col0, + ( - 15 ) AS col2
----
25
-15

onlyif mysql # aggregate syntax: 
query II rowsort label-4249
SELECT 29 * - NULLIF ( - 45, 91 - 45 ) AS col2, SUM( ALL + - 50 )
----
1305
-50

skipif mysql # not compatible
query II rowsort label-4249
SELECT 29 * - NULLIF ( - 45, 91 - 45 ) AS col2, SUM ( ALL + - 50 )
----
1305
-50

query I rowsort
SELECT ALL - 63 * - - ( + 16 )
----
-1008

onlyif mysql # DIV for integer division: 
query I rowsort label-4251
SELECT DISTINCT 10 DIV + NULLIF ( 25, 3 + - - 47 * 93 ) col0
----
0

skipif mysql # not compatible
query I rowsort label-4251
SELECT DISTINCT 10 / + NULLIF ( 25, 3 + - - 47 * 93 ) col0
----
0

query I rowsort
SELECT 19 * - + 82 AS col0
----
-1558

onlyif mysql # aggregate syntax: 
query I rowsort label-4253
SELECT 64 + + - COUNT( * ) AS col0
----
63

skipif mysql # not compatible
query I rowsort label-4253
SELECT 64 + + - COUNT ( * ) AS col0
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-4254
SELECT 9 * COUNT( * ) + + 14 AS col0
----
23

skipif mysql # not compatible
query I rowsort label-4254
SELECT 9 * COUNT ( * ) + + 14 AS col0
----
23

query I rowsort
SELECT ALL 88 + + 7 + - 45 AS col2
----
50

query I rowsort
SELECT DISTINCT 93 + - + CASE - 40 WHEN - + 99 THEN 73 * - 60 END
----
NULL

query I rowsort
SELECT DISTINCT - - 39 + ( + - 32 ) AS col0
----
7

query I rowsort
SELECT + CASE + + 16 WHEN + - 79 THEN - 68 END
----
NULL

query II rowsort
SELECT ALL + 44, 98 col1
----
44
98

query I rowsort
SELECT 88 * + 35
----
3080

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4261
SELECT COUNT( * ) * + + ( CAST( + 62 AS SIGNED ) ) + + + 20 * 69 col0
----
1442

skipif mysql # not compatible
query I rowsort label-4261
SELECT COUNT ( * ) * + + ( CAST ( + 62 AS INTEGER ) ) + + + 20 * 69 col0
----
1442

onlyif mysql # aggregate syntax: 
query II rowsort label-4262
SELECT - CASE 76 WHEN - - 66 + + + 81 THEN - - COUNT( * ) * 61 WHEN + + 40 THEN - 78 ELSE + + 54 + - 29 END AS col2, - COALESCE ( - 40, + 83, COUNT( * ) )
----
-25
40

skipif mysql # not compatible
query II rowsort label-4262
SELECT - CASE 76 WHEN - - 66 + + + 81 THEN - - COUNT ( * ) * 61 WHEN + + 40 THEN - 78 ELSE + + 54 + - 29 END AS col2, - COALESCE ( - 40, + 83, COUNT ( * ) )
----
-25
40

onlyif mysql # aggregate syntax: 
query I rowsort label-4263
SELECT - SUM( ALL + + 79 ) AS col1
----
-79

skipif mysql # not compatible
query I rowsort label-4263
SELECT - SUM ( ALL + + 79 ) AS col1
----
-79

query II rowsort
SELECT ALL + 96 + 92 + - - 98, 33 AS col1
----
286
33

query I rowsort
SELECT - ( + - 86 ) col1
----
86

query I rowsort
SELECT ALL - + 72 * + 73
----
-5256

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4267
SELECT + 45 AS col2, - CAST( NULL AS SIGNED ) AS col0
----
45
NULL

skipif mysql # not compatible
query II rowsort label-4267
SELECT + 45 AS col2, - CAST ( NULL AS INTEGER ) AS col0
----
45
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4268
SELECT DISTINCT - - COUNT( 42 ) * 40 - + 68
----
-28

skipif mysql # not compatible
query I rowsort label-4268
SELECT DISTINCT - - COUNT ( 42 ) * 40 - + 68
----
-28

query I rowsort
SELECT DISTINCT - - NULLIF ( - 54, + - 74 )
----
-54

onlyif mysql # aggregate syntax: 
query II rowsort label-4270
SELECT COUNT( * ) AS col0, - 81 AS col2
----
1
-81

skipif mysql # not compatible
query II rowsort label-4270
SELECT COUNT ( * ) AS col0, - 81 AS col2
----
1
-81

query II rowsort
SELECT ALL - ( - 29 ), 37 AS col2
----
29
37

onlyif mysql # aggregate syntax: 
query III rowsort label-4272
SELECT COUNT( * ) col0, 5 + - MAX( DISTINCT - + 58 ) AS col1, 77 * + - COUNT( * ) * + COUNT( * ) AS col2
----
1
63
-77

skipif mysql # not compatible
query III rowsort label-4272
SELECT COUNT ( * ) col0, 5 + - MAX ( DISTINCT - + 58 ) AS col1, 77 * + - COUNT ( * ) * + COUNT ( * ) AS col2
----
1
63
-77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4273
SELECT COALESCE ( + 23, + CAST( NULL AS SIGNED ) ) + - 75 * + 97 AS col2
----
-7252

skipif mysql # not compatible
query I rowsort label-4273
SELECT COALESCE ( + 23, + CAST ( NULL AS INTEGER ) ) + - 75 * + 97 AS col2
----
-7252

onlyif mysql # DIV for integer division: 
query I rowsort label-4274
SELECT 14 DIV - 3 AS col1
----
-4

skipif mysql # not compatible
query I rowsort label-4274
SELECT 14 / - 3 AS col1
----
-4

query I rowsort
SELECT 20 * - + 65 * + 25
----
-32500

query I rowsort
SELECT 4 + 8 AS col0
----
12

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4277
SELECT 10 * - CASE + 46 WHEN + 10 + + 92 THEN + COUNT( * ) * 82 ELSE + 36 DIV - 35 END col1
----
10

skipif mysql # not compatible
query I rowsort label-4277
SELECT 10 * - CASE + 46 WHEN + 10 + + 92 THEN + COUNT ( * ) * 82 ELSE + 36 / - 35 END col1
----
10

onlyif mysql # DIV for integer division: 
query I rowsort label-4278
SELECT ALL + 95 DIV + - ( + + 30 ) col2
----
-3

skipif mysql # not compatible
query I rowsort label-4278
SELECT ALL + 95 / + - ( + + 30 ) col2
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4279
SELECT DISTINCT ( CAST( NULL AS SIGNED ) ) * - + CAST( 63 AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4279
SELECT DISTINCT ( CAST ( NULL AS INTEGER ) ) * - + CAST ( 63 AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4280
SELECT + MAX( + - 79 ) col0
----
-79

skipif mysql # not compatible
query I rowsort label-4280
SELECT + MAX ( + - 79 ) col0
----
-79

onlyif mysql # aggregate syntax: 
query I rowsort label-4281
SELECT - 75 * + COUNT( * ) * COUNT( * )
----
-75

skipif mysql # not compatible
query I rowsort label-4281
SELECT - 75 * + COUNT ( * ) * COUNT ( * )
----
-75

query II rowsort
SELECT 68, 25 AS col1
----
68
25

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4283
SELECT ALL CAST( COUNT( * ) AS SIGNED ) + - 47
----
-46

skipif mysql # not compatible
query I rowsort label-4283
SELECT ALL CAST ( COUNT ( * ) AS INTEGER ) + - 47
----
-46

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4284
SELECT - 69 - + 45 * + CAST( NULL AS SIGNED ) + - + 3
----
NULL

skipif mysql # not compatible
query I rowsort label-4284
SELECT - 69 - + 45 * + CAST ( NULL AS INTEGER ) + - + 3
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4285
SELECT + 33 * 63 * SUM( ALL + 87 ) AS col1
----
180873

skipif mysql # not compatible
query I rowsort label-4285
SELECT + 33 * 63 * SUM ( ALL + 87 ) AS col1
----
180873

onlyif mysql # aggregate syntax: 
query I rowsort label-4286
SELECT 32 * 67 - - + COUNT( * )
----
2145

skipif mysql # not compatible
query I rowsort label-4286
SELECT 32 * 67 - - + COUNT ( * )
----
2145

onlyif mysql # aggregate syntax: 
query I rowsort label-4287
SELECT - COALESCE ( 35, 74 * COUNT( * ), - - 37 ) AS col0
----
-35

skipif mysql # not compatible
query I rowsort label-4287
SELECT - COALESCE ( 35, 74 * COUNT ( * ), - - 37 ) AS col0
----
-35

query I rowsort
SELECT ALL 15 + + 89 AS col0
----
104

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4289
SELECT ALL + NULLIF ( - 0, + - 68 ) + - - MAX( ALL 8 ) * COUNT( * ) DIV 61 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4289
SELECT ALL + NULLIF ( - 0, + - 68 ) + - - MAX ( ALL 8 ) * COUNT ( * ) / 61 AS col2
----
0

query I rowsort
SELECT ALL + 61 + - NULLIF ( 78, 65 )
----
-17

onlyif mysql # aggregate syntax: 
query II rowsort label-4291
SELECT DISTINCT 5 AS col0, - MIN( - 36 )
----
5
36

skipif mysql # not compatible
query II rowsort label-4291
SELECT DISTINCT 5 AS col0, - MIN ( - 36 )
----
5
36

query I rowsort
SELECT ALL - 86 + - 50 + 46 - - 39
----
-51

query I rowsort
SELECT + 25 - 1 + - 6 AS col0
----
18

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4294
SELECT ALL + 17 DIV - - COUNT( * ) + - 96 col2
----
-79

skipif mysql # not compatible
query I rowsort label-4294
SELECT ALL + 17 / - - COUNT ( * ) + - 96 col2
----
-79

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4295
SELECT + + COUNT( * ) + - 10 + + 96 * - ( - CAST( 97 AS SIGNED ) ) * - COUNT( * ) + - CASE + ( - NULLIF ( ( 38 ), - - 90 * 20 ) ) WHEN + 23 * + + 66 * - MIN( ALL 67 ) + - 73 THEN NULL WHEN - 37 THEN + - 22 END
----
NULL

skipif mysql # not compatible
query I rowsort label-4295
SELECT + + COUNT ( * ) + - 10 + + 96 * - ( - CAST ( 97 AS INTEGER ) ) * - COUNT ( * ) + - CASE + ( - NULLIF ( ( 38 ), - - 90 * 20 ) ) WHEN + 23 * + + 66 * - MIN ( ALL 67 ) + - 73 THEN NULL WHEN - 37 THEN + - 22 END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4296
SELECT + 39 - + 23 + + - COUNT( * ) + - MAX( ALL - 93 ) + - ( - COUNT( - 78 ) ) + + + 32 DIV - ( + 40 )
----
109

skipif mysql # not compatible
query I rowsort label-4296
SELECT + 39 - + 23 + + - COUNT ( * ) + - MAX ( ALL - 93 ) + - ( - COUNT ( - 78 ) ) + + + 32 / - ( + 40 )
----
109

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4297
SELECT + 78 * - + 46 AS col2, - 81 * - 70 * ( - 90 ) * - 24 * - 98 + - 43 + + ( + 61 ) * + CAST( NULL AS SIGNED ) AS col0
----
-3588
NULL

skipif mysql # not compatible
query II rowsort label-4297
SELECT + 78 * - + 46 AS col2, - 81 * - 70 * ( - 90 ) * - 24 * - 98 + - 43 + + ( + 61 ) * + CAST ( NULL AS INTEGER ) AS col0
----
-3588
NULL

query I rowsort
SELECT + 83 + + + 57
----
140

query I rowsort
SELECT - 52 * ( 75 ) * 18
----
-70200

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4300
SELECT ALL NULLIF ( + 27, - 36 + - 81 ) + CAST( 85 AS SIGNED ) + - 36
----
76

skipif mysql # not compatible
query I rowsort label-4300
SELECT ALL NULLIF ( + 27, - 36 + - 81 ) + CAST ( 85 AS INTEGER ) + - 36
----
76

query I rowsort
SELECT + 92 + - 55
----
37

onlyif mysql # aggregate syntax: 
query II rowsort label-4302
SELECT + CASE - COUNT( * ) WHEN + SUM( ALL 23 ) THEN NULL ELSE - COALESCE ( + 43, + - COUNT( * ) ) END, + 18 AS col1
----
-43
18

skipif mysql # not compatible
query II rowsort label-4302
SELECT + CASE - COUNT ( * ) WHEN + SUM ( ALL 23 ) THEN NULL ELSE - COALESCE ( + 43, + - COUNT ( * ) ) END, + 18 AS col1
----
-43
18

query I rowsort
SELECT + 5 + + + 34
----
39

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4304
SELECT ALL 56 AS col2, - CAST( - 0 AS SIGNED ) col0
----
56
0

skipif mysql # not compatible
query II rowsort label-4304
SELECT ALL 56 AS col2, - CAST ( - 0 AS INTEGER ) col0
----
56
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4305
SELECT + 19 + + 1 * + 9 * + COUNT( * ) AS col2
----
28

skipif mysql # not compatible
query I rowsort label-4305
SELECT + 19 + + 1 * + 9 * + COUNT ( * ) AS col2
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-4306
SELECT + - 96 + + COUNT( * ) * + 30 * + 22
----
564

skipif mysql # not compatible
query I rowsort label-4306
SELECT + - 96 + + COUNT ( * ) * + 30 * + 22
----
564

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4307
SELECT 4 DIV - COUNT( * ) + + 50
----
46

skipif mysql # not compatible
query I rowsort label-4307
SELECT 4 / - COUNT ( * ) + + 50
----
46

onlyif mysql # aggregate syntax: 
query II rowsort label-4308
SELECT ( + 76 ) AS col0, + COALESCE ( MIN( DISTINCT - - 42 ), + 79 )
----
76
42

skipif mysql # not compatible
query II rowsort label-4308
SELECT ( + 76 ) AS col0, + COALESCE ( MIN ( DISTINCT - - 42 ), + 79 )
----
76
42

onlyif mysql # aggregate syntax: 
query I rowsort label-4309
SELECT ALL + MAX( - ( 71 ) )
----
-71

skipif mysql # not compatible
query I rowsort label-4309
SELECT ALL + MAX ( - ( 71 ) )
----
-71

query I rowsort
SELECT DISTINCT + ( 3 ) * + 64 + 17 AS col0
----
209

onlyif mysql # aggregate syntax: 
query II rowsort label-4311
SELECT ALL COUNT( * ) * + 58 AS col1, 71
----
58
71

skipif mysql # not compatible
query II rowsort label-4311
SELECT ALL COUNT ( * ) * + 58 AS col1, 71
----
58
71

query I rowsort
SELECT DISTINCT + 90 * 63
----
5670

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4313
SELECT CASE 23 WHEN - - 12 / - COALESCE ( 54, + ( 18 ) - + 39, COUNT( * ) ) - + 30 * - + 78 THEN - COALESCE ( - + 36, + 53 ) * COUNT( + CAST( NULL AS DECIMAL ) ) - + - 8 - - 57 * 21 + - + 56 - 36 WHEN - 95 * 79 + 46 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-4313
SELECT CASE 23 WHEN - - 12 / - COALESCE ( 54, + ( 18 ) - + 39, COUNT ( * ) ) - + 30 * - + 78 THEN - COALESCE ( - + 36, + 53 ) * COUNT ( + CAST ( NULL AS REAL ) ) - + - 8 - - 57 * 21 + - + 56 - 36 WHEN - 95 * 79 + 46 THEN NULL END
----
NULL

query II rowsort
SELECT - 35 * + 34 + 51 * 97 * + 19 col0, 90
----
92803
90

onlyif mysql # aggregate syntax: 
query I rowsort label-4315
SELECT NULLIF ( - MAX( - + 12 ), 62 ) col0
----
12

skipif mysql # not compatible
query I rowsort label-4315
SELECT NULLIF ( - MAX ( - + 12 ), 62 ) col0
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-4316
SELECT ALL + ( + + SUM( ALL 74 ) ) AS col0
----
74

skipif mysql # not compatible
query I rowsort label-4316
SELECT ALL + ( + + SUM ( ALL 74 ) ) AS col0
----
74

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4317
SELECT + COALESCE ( + 12, CASE 23 WHEN 25 + + + CAST( + ( + COALESCE ( - - 24, + + 3 ) ) AS SIGNED ) THEN NULL ELSE + SUM( DISTINCT 64 ) END * + 65 + - CAST( NULL AS SIGNED ) * - + 95 + + 37 ) DIV 11 * + - 73
----
-73

skipif mysql # not compatible
query I rowsort label-4317
SELECT + COALESCE ( + 12, CASE 23 WHEN 25 + + + CAST ( + ( + COALESCE ( - - 24, + + 3 ) ) AS INTEGER ) THEN NULL ELSE + SUM ( DISTINCT 64 ) END * + 65 + - CAST ( NULL AS INTEGER ) * - + 95 + + 37 ) / 11 * + - 73
----
-73

onlyif mysql # aggregate syntax: 
query II rowsort label-4318
SELECT - COUNT( * ) + - 40, NULLIF ( + 65, - 45 ) + - 66 col1
----
-41
-1

skipif mysql # not compatible
query II rowsort label-4318
SELECT - COUNT ( * ) + - 40, NULLIF ( + 65, - 45 ) + - 66 col1
----
-41
-1

query I rowsort
SELECT ALL - 77 * 93 + + 23 * 60 * + + 46
----
56319

query I rowsort
SELECT ALL + 32 * ( + - 4 ) * + - 87 AS col2
----
11136

query I rowsort
SELECT + 10 + + + 78 + - 33 AS col0
----
55

query I rowsort
SELECT NULLIF ( - 85, 33 )
----
-85

onlyif mysql # aggregate syntax: 
query II rowsort label-4323
SELECT + COUNT( * ) + + - COUNT( * ) AS col2, ( COUNT( * ) )
----
0
1

skipif mysql # not compatible
query II rowsort label-4323
SELECT + COUNT ( * ) + + - COUNT ( * ) AS col2, ( COUNT ( * ) )
----
0
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4324
SELECT - + CASE - + 52 WHEN 97 * 8 * 64 / - COUNT( 90 ) THEN + MIN( + + COALESCE ( + 95, + 55 ) ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4324
SELECT - + CASE - + 52 WHEN 97 * 8 * 64 / - COUNT ( 90 ) THEN + MIN ( + + COALESCE ( + 95, + 55 ) ) END AS col1
----
NULL

query I rowsort
SELECT + 37 + + 21
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-4326
SELECT ALL - + COUNT( * ) - + 94 * + - 76 AS col0
----
7143

skipif mysql # not compatible
query I rowsort label-4326
SELECT ALL - + COUNT ( * ) - + 94 * + - 76 AS col0
----
7143

query II rowsort
SELECT - ( - 56 ) AS col1, + 87
----
56
87

query I rowsort
SELECT ALL + 94 - + 32
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-4329
SELECT DISTINCT + SUM( - + ( - 60 ) )
----
60

skipif mysql # not compatible
query I rowsort label-4329
SELECT DISTINCT + SUM ( - + ( - 60 ) )
----
60

query I rowsort
SELECT ALL 56 - - 9 AS col0
----
65

query I rowsort
SELECT + - 50 * 75
----
-3750

onlyif mysql # DIV for integer division: 
query I rowsort label-4332
SELECT + 39 DIV 97
----
0

skipif mysql # not compatible
query I rowsort label-4332
SELECT + 39 / 97
----
0

query I rowsort
SELECT - + 22 * ( + 49 ) * + + 50
----
-53900

query II rowsort
SELECT DISTINCT - 11 * - 43, - 26 AS col2
----
473
-26

query I rowsort
SELECT ALL 22 - - 21 + 77 * 84 * 68 + + 63
----
439930

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4336
SELECT + + 73 DIV NULLIF ( COUNT( * ), NULLIF ( + 94, ( 29 ) * ( + 60 ) ) * 48 * 4 * - + 91 ) AS col2
----
73

skipif mysql # not compatible
query I rowsort label-4336
SELECT + + 73 / NULLIF ( COUNT ( * ), NULLIF ( + 94, ( 29 ) * ( + 60 ) ) * 48 * 4 * - + 91 ) AS col2
----
73

onlyif mysql # DIV for integer division: 
query I rowsort label-4337
SELECT + 48 DIV - 29 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-4337
SELECT + 48 / - 29 AS col2
----
-1

query I rowsort
SELECT ALL ( - 14 ) * - + 84
----
1176

query I rowsort
SELECT + 94 * 30 AS col0
----
2820

query I rowsort
SELECT DISTINCT 59 * + 38
----
2242

onlyif mysql # aggregate syntax: 
query I rowsort label-4341
SELECT ALL - COUNT( ALL - - 19 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-4341
SELECT ALL - COUNT ( ALL - - 19 ) AS col2
----
-1

query II rowsort
SELECT + 58, + ( 57 ) + + 79 AS col1
----
58
136

query I rowsort
SELECT ALL 52 + - 34
----
18

query I rowsort
SELECT DISTINCT 87 + + - 92 col1
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-4345
SELECT DISTINCT 51 + + COUNT( * ) AS col2
----
52

skipif mysql # not compatible
query I rowsort label-4345
SELECT DISTINCT 51 + + COUNT ( * ) AS col2
----
52

query I rowsort
SELECT 45 * - 48
----
-2160

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4347
SELECT DISTINCT CAST( NULL AS SIGNED ) * - 97
----
NULL

skipif mysql # not compatible
query I rowsort label-4347
SELECT DISTINCT CAST ( NULL AS INTEGER ) * - 97
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4348
SELECT DISTINCT - COUNT( * ), + 55 AS col2
----
-1
55

skipif mysql # not compatible
query II rowsort label-4348
SELECT DISTINCT - COUNT ( * ), + 55 AS col2
----
-1
55

onlyif mysql # aggregate syntax: 
query I rowsort label-4349
SELECT DISTINCT - - NULLIF ( 59, + COUNT( * ) ) + - 38 - - 11
----
32

skipif mysql # not compatible
query I rowsort label-4349
SELECT DISTINCT - - NULLIF ( 59, + COUNT ( * ) ) + - 38 - - 11
----
32

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4350
SELECT + - CASE - ( + 75 ) WHEN + COALESCE ( 98, - + 58 / - SUM( + 32 ) ) * 92 + - COALESCE ( + 62, + - CAST( NULL AS SIGNED ) / 43 * - 60, + 3 / + + CASE WHEN NOT 28 >= ( NULL ) THEN + 61 + - + CASE - COUNT( * ) WHEN 99 THEN + 88 WHEN 96 THEN NULL END + 67 * + 60 END * 41 ) THEN 77 END
----
NULL

skipif mysql # not compatible
query I rowsort label-4350
SELECT + - CASE - ( + 75 ) WHEN + COALESCE ( 98, - + 58 / - SUM ( + 32 ) ) * 92 + - COALESCE ( + 62, + - CAST ( NULL AS INTEGER ) / 43 * - 60, + 3 / + + CASE WHEN NOT 28 >= ( NULL ) THEN + 61 + - + CASE - COUNT ( * ) WHEN 99 THEN + 88 WHEN 96 THEN NULL END + 67 * + 60 END * 41 ) THEN 77 END
----
NULL

query I rowsort
SELECT - NULLIF ( + 55, + - 37 * 51 * + 70 + 88 * - 97 / - 65 ) AS col0
----
-55

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4352
SELECT - COUNT( + COALESCE ( + + ( + 51 ), - ( + - CAST( NULL AS DECIMAL ) ), 85 ) )
----
-1

skipif mysql # not compatible
query I rowsort label-4352
SELECT - COUNT ( + COALESCE ( + + ( + 51 ), - ( + - CAST ( NULL AS REAL ) ), 85 ) )
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4353
SELECT COUNT( * ) - + + 67 - - 77 * + 48 * NULLIF ( + 76, + 3 + 78 + 13 + - 29 * - CAST( NULL AS SIGNED ) * MIN( DISTINCT - - 62 ) )
----
280830

skipif mysql # not compatible
query I rowsort label-4353
SELECT COUNT ( * ) - + + 67 - - 77 * + 48 * NULLIF ( + 76, + 3 + 78 + 13 + - 29 * - CAST ( NULL AS INTEGER ) * MIN ( DISTINCT - - 62 ) )
----
280830

query I rowsort
SELECT ALL + 98 - + + ( 23 ) + + 35 AS col2
----
110

onlyif mysql # aggregate syntax: 
query I rowsort label-4355
SELECT DISTINCT - NULLIF ( COUNT( * ), + 74 )
----
-1

skipif mysql # not compatible
query I rowsort label-4355
SELECT DISTINCT - NULLIF ( COUNT ( * ), + 74 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4356
SELECT - 10 * + COUNT( * ) * + + 66
----
-660

skipif mysql # not compatible
query I rowsort label-4356
SELECT - 10 * + COUNT ( * ) * + + 66
----
-660

query I rowsort
SELECT 55 * - 81
----
-4455

onlyif mysql # aggregate syntax: 
query I rowsort label-4358
SELECT 86 - + - 52 - - 59 * + + ( COUNT( * ) )
----
197

skipif mysql # not compatible
query I rowsort label-4358
SELECT 86 - + - 52 - - 59 * + + ( COUNT ( * ) )
----
197

onlyif mysql # aggregate syntax: 
query I rowsort label-4359
SELECT COUNT( * ) - + 99 AS col0
----
-98

skipif mysql # not compatible
query I rowsort label-4359
SELECT COUNT ( * ) - + 99 AS col0
----
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-4360
SELECT ALL + + 85 * + 43 * 98 + - + 32 - + 95 + - 52 * - 15 + COUNT( * ) + - 7
----
358837

skipif mysql # not compatible
query I rowsort label-4360
SELECT ALL + + 85 * + 43 * 98 + - + 32 - + 95 + - 52 * - 15 + COUNT ( * ) + - 7
----
358837

query I rowsort
SELECT + 76 * + + 3 * - 1 + + 1 AS col1
----
-227

onlyif mysql # aggregate syntax: 
query I rowsort label-4362
SELECT COUNT( 67 ) + 0 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-4362
SELECT COUNT ( 67 ) + 0 AS col2
----
1

query II rowsort
SELECT DISTINCT - 53, + 34 AS col1
----
-53
34

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4364
SELECT CAST( NULL AS SIGNED ) + - 26
----
NULL

skipif mysql # not compatible
query I rowsort label-4364
SELECT CAST ( NULL AS INTEGER ) + - 26
----
NULL

query I rowsort
SELECT ALL + + 94 * - 38 * - 57
----
203604

onlyif mysql # DIV for integer division: 
query I rowsort label-4366
SELECT 14 + - 80 DIV 42
----
13

skipif mysql # not compatible
query I rowsort label-4366
SELECT 14 + - 80 / 42
----
13

query I rowsort
SELECT DISTINCT - 36 + 40 * + 39 AS col0
----
1524

query I rowsort
SELECT DISTINCT 11 + 81 * - 12 - 30 + + 2 AS col0
----
-989

query I rowsort
SELECT 13 * - 34 AS col0
----
-442

onlyif mysql # aggregate syntax: 
query I rowsort label-4370
SELECT 48 + COUNT( ALL 57 ) * + 75 + + COUNT( * ) * - 3
----
120

skipif mysql # not compatible
query I rowsort label-4370
SELECT 48 + COUNT ( ALL 57 ) * + 75 + + COUNT ( * ) * - 3
----
120

query II rowsort
SELECT ALL 46 * 12, 4 col0
----
552
4

onlyif mysql # aggregate syntax: 
query I rowsort label-4372
SELECT + 64 * + COUNT( * ) + - + NULLIF ( ( + 97 ), + 15 ) * - + COUNT( * )
----
161

skipif mysql # not compatible
query I rowsort label-4372
SELECT + 64 * + COUNT ( * ) + - + NULLIF ( ( + 97 ), + 15 ) * - + COUNT ( * )
----
161

query I rowsort
SELECT ALL 40 * - 35 AS col1
----
-1400

query I rowsort
SELECT - 27 * + 46 + 38 * + + 48 AS col0
----
582

onlyif mysql # aggregate syntax: 
query I rowsort label-4375
SELECT DISTINCT + COUNT( * ) + + 26
----
27

skipif mysql # not compatible
query I rowsort label-4375
SELECT DISTINCT + COUNT ( * ) + + 26
----
27

query II rowsort
SELECT ALL 10 * 92 AS col0, - 93 * 0
----
920
0

query II rowsort
SELECT DISTINCT 34 + 40 col0, 18 AS col1
----
74
18

query I rowsort
SELECT DISTINCT 45 * 27 AS col2
----
1215

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4379
SELECT ALL CAST( NULL AS SIGNED ) * + CAST( - 84 AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4379
SELECT ALL CAST ( NULL AS INTEGER ) * + CAST ( - 84 AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4380
SELECT SUM( - + 7 ) * - + 56 + + 62
----
454

skipif mysql # not compatible
query I rowsort label-4380
SELECT SUM ( - + 7 ) * - + 56 + + 62
----
454

onlyif mysql # aggregate syntax: 
query I rowsort label-4381
SELECT COUNT( 6 ) + + COALESCE ( - 70, + - COUNT( * ) )
----
-69

skipif mysql # not compatible
query I rowsort label-4381
SELECT COUNT ( 6 ) + + COALESCE ( - 70, + - COUNT ( * ) )
----
-69

query I rowsort
SELECT DISTINCT 98 - 70
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-4383
SELECT 39 + NULLIF ( 90, - + COALESCE ( + - COUNT( * ), + 39 / - 9, - 31 ) )
----
129

skipif mysql # not compatible
query I rowsort label-4383
SELECT 39 + NULLIF ( 90, - + COALESCE ( + - COUNT ( * ), + 39 / - 9, - 31 ) )
----
129

onlyif mysql # aggregate syntax: 
query I rowsort label-4384
SELECT ALL - - COUNT( * ) * - + ( + + NULLIF ( - 15, + 59 ) ) * - 33 + - + COUNT( * ) * + 83 AS col2
----
-578

skipif mysql # not compatible
query I rowsort label-4384
SELECT ALL - - COUNT ( * ) * - + ( + + NULLIF ( - 15, + 59 ) ) * - 33 + - + COUNT ( * ) * + 83 AS col2
----
-578

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4385
SELECT - CAST( + COUNT( * ) AS SIGNED ) + + - 22
----
-23

skipif mysql # not compatible
query I rowsort label-4385
SELECT - CAST ( + COUNT ( * ) AS INTEGER ) + + - 22
----
-23

query I rowsort
SELECT ALL 28 - - - 94
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-4387
SELECT + COUNT( * ) * - NULLIF ( + ( 95 ), - ( + SUM( 23 ) ) ) + 33
----
-62

skipif mysql # not compatible
query I rowsort label-4387
SELECT + COUNT ( * ) * - NULLIF ( + ( 95 ), - ( + SUM ( 23 ) ) ) + 33
----
-62

query I rowsort
SELECT ALL + - 25 - 58 AS col0
----
-83

query I rowsort
SELECT ALL - - 63 * - - 93 AS col1
----
5859

onlyif mysql # aggregate syntax: 
query I rowsort label-4390
SELECT COUNT( DISTINCT + + 73 ) * + 38
----
38

skipif mysql # not compatible
query I rowsort label-4390
SELECT COUNT ( DISTINCT + + 73 ) * + 38
----
38

query I rowsort
SELECT ALL + 77 * - 71 AS col1
----
-5467

onlyif mysql # aggregate syntax: 
query I rowsort label-4392
SELECT DISTINCT CASE + COALESCE ( + - COALESCE ( 95, 38 ), + COUNT( * ) ) WHEN - - ( 1 ) THEN 93 * + 90 ELSE NULL END * 74
----
NULL

skipif mysql # not compatible
query I rowsort label-4392
SELECT DISTINCT CASE + COALESCE ( + - COALESCE ( 95, 38 ), + COUNT ( * ) ) WHEN - - ( 1 ) THEN 93 * + 90 ELSE NULL END * 74
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4393
SELECT 57 * - + SUM( + 90 ) * - 45 + COALESCE ( - COALESCE ( 4, 13, + - COALESCE ( + + SUM( DISTINCT - 27 ), + 18 ) ), + 23 - - - 97 * + - 36 )
----
230846

skipif mysql # not compatible
query I rowsort label-4393
SELECT 57 * - + SUM ( + 90 ) * - 45 + COALESCE ( - COALESCE ( 4, 13, + - COALESCE ( + + SUM ( DISTINCT - 27 ), + 18 ) ), + 23 - - - 97 * + - 36 )
----
230846

query I rowsort
SELECT 1 + - + 65 - - 73
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-4395
SELECT ( + + 52 ) + + CASE - + 5 WHEN + MIN( DISTINCT + + 29 ) * 15 * + - 15 - + 90 + - + 93 + - MAX( DISTINCT - 63 ) + + COUNT( * ) THEN NULL ELSE - 81 + 34 * + 84 END
----
2827

skipif mysql # not compatible
query I rowsort label-4395
SELECT ( + + 52 ) + + CASE - + 5 WHEN + MIN ( DISTINCT + + 29 ) * 15 * + - 15 - + 90 + - + 93 + - MAX ( DISTINCT - 63 ) + + COUNT ( * ) THEN NULL ELSE - 81 + 34 * + 84 END
----
2827

onlyif mysql # DIV for integer division: 
query I rowsort label-4396
SELECT 49 DIV + + 9 + - - 35
----
40

skipif mysql # not compatible
query I rowsort label-4396
SELECT 49 / + + 9 + - - 35
----
40

query I rowsort
SELECT 80 * + COALESCE ( + 44, + 34, + 43 )
----
3520

query I rowsort
SELECT DISTINCT - + 29 + - 89
----
-118

onlyif mysql # DIV for integer division: 
query I rowsort label-4399
SELECT - 71 DIV - + 89 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4399
SELECT - 71 / - + 89 AS col1
----
0

query II rowsort
SELECT ALL - NULLIF ( + 15, - 89 / - 54 + - - 62 ) + + 58 AS col2, 34
----
43
34

query I rowsort
SELECT DISTINCT - 59 * - 74
----
4366

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4402
SELECT - 29 - - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4402
SELECT - 29 - - CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT DISTINCT - 44 * + 65 + - - 22 AS col1
----
-2838

onlyif mysql # aggregate syntax: 
query I rowsort label-4404
SELECT ALL + COUNT( * ) * NULLIF ( - 55, - 34 ) - - COUNT( * ) + + SUM( 36 ) * - - 78
----
2754

skipif mysql # not compatible
query I rowsort label-4404
SELECT ALL + COUNT ( * ) * NULLIF ( - 55, - 34 ) - - COUNT ( * ) + + SUM ( 36 ) * - - 78
----
2754

query I rowsort
SELECT DISTINCT 92 * + 69
----
6348

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4406
SELECT + 3 * - 3 * - + MIN( + 84 ) + + CASE + 94 WHEN - - 99 + - COUNT( * ) + - 65 * - + 45 / 5 THEN NULL WHEN - CAST( NULL AS SIGNED ) THEN NULL ELSE NULLIF ( + 44, + 18 / ( - NULLIF ( + CAST( - - ( + + 27 ) AS SIGNED ), 53 * ( 51 ) + - + SUM( ALL - 42 ) ) ) + 48 + + 94 ) END
----
800

skipif mysql # not compatible
query I rowsort label-4406
SELECT + 3 * - 3 * - + MIN ( + 84 ) + + CASE + 94 WHEN - - 99 + - COUNT ( * ) + - 65 * - + 45 / 5 THEN NULL WHEN - CAST ( NULL AS INTEGER ) THEN NULL ELSE NULLIF ( + 44, + 18 / ( - NULLIF ( + CAST ( - - ( + + 27 ) AS INTEGER ), 53 * ( 51 ) + - + SUM ( ALL - 42 ) ) ) + 48 + + 94 ) END
----
800

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4407
SELECT DISTINCT + 26 AS col0, MIN( + - CAST( 11 AS SIGNED ) ) AS col0
----
26
-11

skipif mysql # not compatible
query II rowsort label-4407
SELECT DISTINCT + 26 AS col0, MIN ( + - CAST ( 11 AS INTEGER ) ) AS col0
----
26
-11

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4408
SELECT + - 43 * - 7 + 14 * ( + + 50 ) AS col1, + CASE - + 4 WHEN - CASE + CAST( NULL AS SIGNED ) WHEN - 1 THEN NULL WHEN 36 + + 15 + 36 THEN NULL ELSE - ( - MAX( + - 95 ) ) + - 53 - + CAST( - - 74 AS SIGNED ) END + + 79 + 60 THEN 47 WHEN - 78 + - 41 THEN - NULLIF ( - 14, AVG ( - 65 ) ) * 18 ELSE 18 * + 80 END - 84 * 56 AS col0
----
1001
-3264

skipif mysql # not compatible
query II rowsort label-4408
SELECT + - 43 * - 7 + 14 * ( + + 50 ) AS col1, + CASE - + 4 WHEN - CASE + CAST ( NULL AS INTEGER ) WHEN - 1 THEN NULL WHEN 36 + + 15 + 36 THEN NULL ELSE - ( - MAX ( + - 95 ) ) + - 53 - + CAST ( - - 74 AS INTEGER ) END + + 79 + 60 THEN 47 WHEN - 78 + - 41 THEN - NULLIF ( - 14, AVG ( - 65 ) ) * 18 ELSE 18 * + 80 END - 84 * 56 AS col0
----
1001
-3264

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4409
SELECT DISTINCT + - 56 * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4409
SELECT DISTINCT + - 56 * - CAST ( NULL AS INTEGER )
----
NULL

query II rowsort
SELECT DISTINCT + - 4 col2, + 44 - - + 67 + + 12 AS col0
----
-4
123

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4411
SELECT + + CAST( NULL AS SIGNED ) * + 91 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4411
SELECT + + CAST ( NULL AS INTEGER ) * + 91 AS col0
----
NULL

query I rowsort
SELECT + - 26 + + 36 + + + 83 AS col1
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-4413
SELECT MIN( + - ( 98 ) )
----
-98

skipif mysql # not compatible
query I rowsort label-4413
SELECT MIN ( + - ( 98 ) )
----
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-4414
SELECT ALL + + CASE + 63 WHEN - 64 * - COUNT( * ) THEN - + COUNT( * ) WHEN + 66 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-4414
SELECT ALL + + CASE + 63 WHEN - 64 * - COUNT ( * ) THEN - + COUNT ( * ) WHEN + 66 THEN NULL END
----
NULL

query II rowsort
SELECT + 98 AS col2, - 97 - - - 72
----
98
-169

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4416
SELECT - 19 * - + SUM( DISTINCT + 16 ) * 89 + + 82 * - + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4416
SELECT - 19 * - + SUM ( DISTINCT + 16 ) * 89 + + 82 * - + CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4417
SELECT 60 * 17 + - ( - 0 ) DIV 21 - MIN( DISTINCT + - 86 ) * 17, - 29 * 86 * - - CAST( - CASE 70 WHEN + ( + + COUNT( * ) ) THEN NULL WHEN + SUM( - 71 ) THEN COALESCE ( 38, - ( - 42 ) * 46, + COUNT( * ) ) * + - 41 + + + 52 ELSE NULL END AS SIGNED ) * - 40 AS col0
----
2482
NULL

skipif mysql # not compatible
query II rowsort label-4417
SELECT 60 * 17 + - ( - 0 ) / 21 - MIN ( DISTINCT + - 86 ) * 17, - 29 * 86 * - - CAST ( - CASE 70 WHEN + ( + + COUNT ( * ) ) THEN NULL WHEN + SUM ( - 71 ) THEN COALESCE ( 38, - ( - 42 ) * 46, + COUNT ( * ) ) * + - 41 + + + 52 ELSE NULL END AS INTEGER ) * - 40 AS col0
----
2482
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4418
SELECT DISTINCT 51 + - 90 - + + CAST( NULL AS SIGNED ) * - 13 * 67 + - - 28 * AVG ( DISTINCT + + 21 ) AS col0, - 77 - + 71 AS col2
----
NULL
-148

skipif mysql # not compatible
query II rowsort label-4418
SELECT DISTINCT 51 + - 90 - + + CAST ( NULL AS INTEGER ) * - 13 * 67 + - - 28 * AVG ( DISTINCT + + 21 ) AS col0, - 77 - + 71 AS col2
----
NULL
-148

query I rowsort
SELECT ALL + 5 + + 58 AS col0
----
63

query I rowsort
SELECT - + ( - + 56 )
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-4421
SELECT ALL - ( + COUNT( * ) ) + - 7 * - + 33 AS col0
----
230

skipif mysql # not compatible
query I rowsort label-4421
SELECT ALL - ( + COUNT ( * ) ) + - 7 * - + 33 AS col0
----
230

onlyif mysql # aggregate syntax: 
query II rowsort label-4422
SELECT DISTINCT 73 + - + 10 * - COUNT( * ) * COALESCE ( 10, - 66, ( 7 ) * 78 + + 93 ) AS col1, + 82 * + 8 col0
----
173
656

skipif mysql # not compatible
query II rowsort label-4422
SELECT DISTINCT 73 + - + 10 * - COUNT ( * ) * COALESCE ( 10, - 66, ( 7 ) * 78 + + 93 ) AS col1, + 82 * + 8 col0
----
173
656

query I rowsort
SELECT CASE - 43 WHEN - 44 * 75 - 95 THEN + 97 END AS col2
----
NULL

query I rowsort
SELECT + 59 + + - 78
----
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-4425
SELECT + 35 + COUNT( * ) AS col2
----
36

skipif mysql # not compatible
query I rowsort label-4425
SELECT + 35 + COUNT ( * ) AS col2
----
36

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4426
SELECT - NULLIF ( - 10, - 15 + 14 ) + + 12 - CAST( - - CAST( 90 AS SIGNED ) AS SIGNED )
----
-68

skipif mysql # not compatible
query I rowsort label-4426
SELECT - NULLIF ( - 10, - 15 + 14 ) + + 12 - CAST ( - - CAST ( 90 AS INTEGER ) AS INTEGER )
----
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-4427
SELECT - COUNT( * ) * - 25
----
25

skipif mysql # not compatible
query I rowsort label-4427
SELECT - COUNT ( * ) * - 25
----
25

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4428
SELECT - MIN( ALL + - 32 ) + + 70 + - - MIN( DISTINCT CAST( NULL AS DECIMAL ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-4428
SELECT - MIN ( ALL + - 32 ) + + 70 + - - MIN ( DISTINCT CAST ( NULL AS REAL ) )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4429
SELECT - 58 + 58 + + SUM( ALL + + 75 ) DIV - MAX( ALL 65 ) + - 94 * + - NULLIF ( - 38, - 97 ) * + + COUNT( * ) AS col1
----
-3573

skipif mysql # not compatible
query I rowsort label-4429
SELECT - 58 + 58 + + SUM ( ALL + + 75 ) / - MAX ( ALL 65 ) + - 94 * + - NULLIF ( - 38, - 97 ) * + + COUNT ( * ) AS col1
----
-3573

onlyif mysql # aggregate syntax: 
query I rowsort label-4430
SELECT DISTINCT + 1 - - + 13 * - COUNT( * ) * - 15 + + + 18 col2
----
214

skipif mysql # not compatible
query I rowsort label-4430
SELECT DISTINCT + 1 - - + 13 * - COUNT ( * ) * - 15 + + + 18 col2
----
214

onlyif mysql # aggregate syntax: 
query II rowsort label-4431
SELECT ALL COALESCE ( 77, COUNT( ALL 79 ) ) AS col2, 31 + - + 68 * + - 59 AS col1
----
77
4043

skipif mysql # not compatible
query II rowsort label-4431
SELECT ALL COALESCE ( 77, COUNT ( ALL 79 ) ) AS col2, 31 + - + 68 * + - 59 AS col1
----
77
4043

onlyif mysql # aggregate syntax: 
query I rowsort label-4432
SELECT + 87 + 38 + COUNT( * )
----
126

skipif mysql # not compatible
query I rowsort label-4432
SELECT + 87 + 38 + COUNT ( * )
----
126

query I rowsort
SELECT ALL + 83 * + 46 AS col0
----
3818

onlyif mysql # aggregate syntax: 
query I rowsort label-4434
SELECT + COUNT( ALL + 45 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-4434
SELECT + COUNT ( ALL + 45 ) AS col2
----
1

query I rowsort
SELECT - 27 + + 93 + - 46 col0
----
20

query I rowsort
SELECT - 39 * - - 62
----
-2418

query I rowsort
SELECT ALL - 11 * - 9 * + 50
----
4950

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4438
SELECT + 86 AS col1, - CAST( - 61 AS SIGNED ) - + CAST( + 8 AS SIGNED ) + + - 91 * 38 + 51 AS col2
----
86
-3354

skipif mysql # not compatible
query II rowsort label-4438
SELECT + 86 AS col1, - CAST ( - 61 AS INTEGER ) - + CAST ( + 8 AS INTEGER ) + + - 91 * 38 + 51 AS col2
----
86
-3354

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4439
SELECT CAST( - + NULLIF ( 40, + - 63 * - 26 * - 27 + 60 + - 34 DIV + - 97 ) AS SIGNED ) col2, COUNT( * ) DIV + + 32
----
-40
0

skipif mysql # not compatible
query II rowsort label-4439
SELECT CAST ( - + NULLIF ( 40, + - 63 * - 26 * - 27 + 60 + - 34 / + - 97 ) AS INTEGER ) col2, COUNT ( * ) / + + 32
----
-40
0

query I rowsort
SELECT DISTINCT - 29 * ( - - 67 ) * - - 43
----
-83549

query II rowsort
SELECT DISTINCT + 10 AS col0, - NULLIF ( 53, COALESCE ( ( + 12 ), + - 23 ) * + 76 / + + 24 ) AS col2
----
10
-53

query II rowsort
SELECT ALL + + 14 AS col2, 99 + - 57 AS col0
----
14
42

query II rowsort
SELECT DISTINCT + - 89 AS col0, + 61 AS col0
----
-89
61

query II rowsort
SELECT + 98, + 94 * + - 39 AS col0
----
98
-3666

query II rowsort
SELECT - 20 AS col2, 75 + - 75 AS col2
----
-20
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4446
SELECT - COUNT( * ) DIV 24 - - NULLIF ( + 34, - 56 - - 14 ) * + 66
----
2244

skipif mysql # not compatible
query I rowsort label-4446
SELECT - COUNT ( * ) / 24 - - NULLIF ( + 34, - 56 - - 14 ) * + 66
----
2244

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4447
SELECT + ( NULLIF ( + ( + SUM( DISTINCT 22 ) ), 3 ) ) + + - CASE + - COUNT( * ) WHEN - COUNT( * ) / - CASE 17 WHEN + - ( 66 ) * COUNT( * ) - - - COUNT( * ) - + 41 + - + 89 + - + 24 * + 88 + - 47 * + + 36 * + - 43 * - + 15 THEN - + CAST( 47 AS SIGNED ) WHEN - 96 * ( CAST( NULL AS SIGNED ) - 41 ) + - 39 THEN NULL END * - 36 THEN NULL WHEN 50 * 83 THEN 1 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-4447
SELECT + ( NULLIF ( + ( + SUM ( DISTINCT 22 ) ), 3 ) ) + + - CASE + - COUNT ( * ) WHEN - COUNT ( * ) / - CASE 17 WHEN + - ( 66 ) * COUNT ( * ) - - - COUNT ( * ) - + 41 + - + 89 + - + 24 * + 88 + - 47 * + + 36 * + - 43 * - + 15 THEN - + CAST ( 47 AS INTEGER ) WHEN - 96 * ( CAST ( NULL AS INTEGER ) - 41 ) + - 39 THEN NULL END * - 36 THEN NULL WHEN 50 * 83 THEN 1 ELSE NULL END
----
NULL

query II rowsort
SELECT ALL + 30, 92 * - - 47 * 42 AS col2
----
30
181608

query II rowsort
SELECT DISTINCT - - 96, 7 * - + ( - + 26 ) + 27 AS col2
----
96
209

query II rowsort
SELECT ALL - ( - 79 ) AS col0, 93 + - + 56 AS col1
----
79
37

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4451
SELECT + 70 DIV 36 * - 65 - - COUNT( * ) AS col0
----
-64

skipif mysql # not compatible
query I rowsort label-4451
SELECT + 70 / 36 * - 65 - - COUNT ( * ) AS col0
----
-64

query II rowsort
SELECT ALL + 34 + 2 AS col2, + 72 * + 53
----
36
3816

query I rowsort
SELECT DISTINCT NULLIF ( 62, 56 ) + 11 col2
----
73

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4454
SELECT ALL CAST( NULL AS SIGNED ) + 56 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4454
SELECT ALL CAST ( NULL AS INTEGER ) + 56 AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4455
SELECT - 36 DIV - COUNT( * ) AS col2
----
36

skipif mysql # not compatible
query I rowsort label-4455
SELECT - 36 / - COUNT ( * ) AS col2
----
36

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4456
SELECT - COUNT( * ) + - 94 / - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4456
SELECT - COUNT ( * ) + - 94 / - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4457
SELECT DISTINCT CAST( + 13 AS SIGNED ) + + - 34 + 53 * + ( 60 ) col0
----
3159

skipif mysql # not compatible
query I rowsort label-4457
SELECT DISTINCT CAST ( + 13 AS INTEGER ) + + - 34 + 53 * + ( 60 ) col0
----
3159

query I rowsort
SELECT ALL 17 * CASE - NULLIF ( - - 71, + 80 * + 4 ) WHEN 11 THEN NULL WHEN - - 21 THEN + 9 END AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-4459
SELECT ALL 88 - + + 25 DIV + 68, - 64 col0
----
88
-64

skipif mysql # not compatible
query II rowsort label-4459
SELECT ALL 88 - + + 25 / + 68, - 64 col0
----
88
-64

query I rowsort
SELECT ( 12 ) * - + 28
----
-336

query I rowsort
SELECT ALL ( + - 62 ) * + - 6 * - - 8 - + - 85 * 51 AS col2
----
7311

query I rowsort
SELECT 38 + 86 col1
----
124

query I rowsort
SELECT DISTINCT 16 * - + 32
----
-512

onlyif mysql # aggregate syntax: 
query I rowsort label-4464
SELECT 89 * 59 * - - ( + COUNT( * ) )
----
5251

skipif mysql # not compatible
query I rowsort label-4464
SELECT 89 * 59 * - - ( + COUNT ( * ) )
----
5251

onlyif mysql # DIV for integer division: 
query I rowsort label-4465
SELECT ALL + 52 DIV 34 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-4465
SELECT ALL + 52 / 34 AS col2
----
1

query II rowsort
SELECT 79 * 63 AS col0, + 49 * 34 * + + 76
----
4977
126616

onlyif mysql # DIV for integer division: 
query I rowsort label-4467
SELECT - COALESCE ( + - 10, - + 1 * 13 ) * + 40 * + ( 69 ) + + 50 DIV - 50 AS col1
----
27599

skipif mysql # not compatible
query I rowsort label-4467
SELECT - COALESCE ( + - 10, - + 1 * 13 ) * + 40 * + ( 69 ) + + 50 / - 50 AS col1
----
27599

onlyif mysql # aggregate syntax: 
query I rowsort label-4468
SELECT ALL - + NULLIF ( - MIN( ALL + - 32 ), 27 ) + 89 * 8 + + ( - ( 7 ) )
----
673

skipif mysql # not compatible
query I rowsort label-4468
SELECT ALL - + NULLIF ( - MIN ( ALL + - 32 ), 27 ) + 89 * 8 + + ( - ( 7 ) )
----
673

query I rowsort
SELECT ALL + + 56 * + 12
----
672

onlyif mysql # DIV for integer division: 
query I rowsort label-4470
SELECT ALL + 90 DIV 82 - 97 + 4 AS col2
----
-92

skipif mysql # not compatible
query I rowsort label-4470
SELECT ALL + 90 / 82 - 97 + 4 AS col2
----
-92

onlyif mysql # DIV for integer division: 
query I rowsort label-4471
SELECT 17 DIV + 61 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4471
SELECT 17 / + 61 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4472
SELECT + 60 * - + COALESCE ( + + 31, + COUNT( * ) + + 92 * - 71 ) + - 39 + 96 AS col0
----
-1803

skipif mysql # not compatible
query I rowsort label-4472
SELECT + 60 * - + COALESCE ( + + 31, + COUNT ( * ) + + 92 * - 71 ) + - 39 + 96 AS col0
----
-1803

onlyif mysql # aggregate syntax: 
query I rowsort label-4473
SELECT - + 41 * - + 36 + CASE - - 98 WHEN CASE - + ( - + ( + - 20 ) ) WHEN - 54 THEN NULLIF ( + 87, + 74 + + 24 + CASE - 4 WHEN 50 / - 14 - 18 THEN + 35 ELSE 42 * + - 27 END * 30 + 89 ) END * - 42 + - - COUNT( * ) - 95 / - + 17 THEN NULL WHEN - 13 + - 62 THEN 58 ELSE - 21 END - - 52 col0
----
1507

skipif mysql # not compatible
query I rowsort label-4473
SELECT - + 41 * - + 36 + CASE - - 98 WHEN CASE - + ( - + ( + - 20 ) ) WHEN - 54 THEN NULLIF ( + 87, + 74 + + 24 + CASE - 4 WHEN 50 / - 14 - 18 THEN + 35 ELSE 42 * + - 27 END * 30 + 89 ) END * - 42 + - - COUNT ( * ) - 95 / - + 17 THEN NULL WHEN - 13 + - 62 THEN 58 ELSE - 21 END - - 52 col0
----
1507

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4474
SELECT + NULLIF ( - - NULLIF ( 29, + 68 * - ( - 66 ) ), - 35 * - ( - - 12 ) ) * + COALESCE ( + 69, CAST( NULL AS SIGNED ) ) + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4474
SELECT + NULLIF ( - - NULLIF ( 29, + 68 * - ( - 66 ) ), - 35 * - ( - - 12 ) ) * + COALESCE ( + 69, CAST ( NULL AS INTEGER ) ) + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4475
SELECT ( - + 45 ) * + + MIN( - ( + 87 ) ) AS col1
----
3915

skipif mysql # not compatible
query I rowsort label-4475
SELECT ( - + 45 ) * + + MIN ( - ( + 87 ) ) AS col1
----
3915

query I rowsort
SELECT ALL + + NULLIF ( + + ( + 91 ), - 20 ) + 77 + + 62
----
230

query I rowsort
SELECT - NULLIF ( - 23, 67 )
----
23

query I rowsort
SELECT ALL + 55 * + 25
----
1375

query II rowsort
SELECT DISTINCT - 96 + - - 81 AS col0, + 7 + - + 13 * - ( + 61 ) + - 43 AS col0
----
-15
757

onlyif mysql # DIV for integer division: 
query II rowsort label-4480
SELECT ALL + 38 + 55, - 36 DIV + 67 + 23 + + 77 AS col1
----
93
100

skipif mysql # not compatible
query II rowsort label-4480
SELECT ALL + 38 + 55, - 36 / + 67 + 23 + + 77 AS col1
----
93
100

query I rowsort
SELECT DISTINCT + - 1 + + 74 * 54 * + 94 + + - 76 AS col2
----
375547

query I rowsort
SELECT + + 78 col0
----
78

query I rowsort
SELECT + 77 * - 90 * + 97
----
-672210

query I rowsort
SELECT - 20 + 83 AS col1
----
63

query I rowsort
SELECT - 95 * + 0 * + + 70 AS col2
----
0

query I rowsort
SELECT - - 97 * 71 + + 18 AS col1
----
6905

query I rowsort
SELECT ALL + - 59 - - 16 col1
----
-43

query II rowsort
SELECT - 40 AS col2, 87
----
-40
87

onlyif mysql # aggregate syntax: 
query I rowsort label-4489
SELECT 18 * - 66 - COUNT( * )
----
-1189

skipif mysql # not compatible
query I rowsort label-4489
SELECT 18 * - 66 - COUNT ( * )
----
-1189

onlyif mysql # aggregate syntax: 
query I rowsort label-4490
SELECT COUNT( * ) * + - 15 AS col0
----
-15

skipif mysql # not compatible
query I rowsort label-4490
SELECT COUNT ( * ) * + - 15 AS col0
----
-15

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4491
SELECT ALL + ( + COUNT( * ) ) DIV - - 81 + + - 90 * - + 24 + - - 80 + - + ( + 28 ) * - 59 * - + 99 * - + CAST( - 69 AS SIGNED )
----
-11282572

skipif mysql # not compatible
query I rowsort label-4491
SELECT ALL + ( + COUNT ( * ) ) / - - 81 + + - 90 * - + 24 + - - 80 + - + ( + 28 ) * - 59 * - + 99 * - + CAST ( - 69 AS INTEGER )
----
-11282572

onlyif mysql # aggregate syntax: 
query I rowsort label-4492
SELECT COUNT( * ) + - 12 + + - 33 * + 26 * - 91 AS col2
----
78067

skipif mysql # not compatible
query I rowsort label-4492
SELECT COUNT ( * ) + - 12 + + - 33 * + 26 * - 91 AS col2
----
78067

query I rowsort
SELECT ALL + 19 - + 73
----
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-4494
SELECT DISTINCT - COUNT( * ) * - 62
----
62

skipif mysql # not compatible
query I rowsort label-4494
SELECT DISTINCT - COUNT ( * ) * - 62
----
62

query II rowsort
SELECT DISTINCT + 46 * + + 53 * 71, + 75 + - 84 AS col1
----
173098
-9

query I rowsort
SELECT 64 - - 12
----
76

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4497
SELECT 38 + + CASE 81 WHEN CAST( + 90 AS SIGNED ) THEN - 74 WHEN - 80 * 90 / ( 93 ) * + 88 + - - COUNT( DISTINCT - 92 ) + 6 * - 98 - + 28 * - 11 / + - 43 + + 58 + - 58 THEN - 52 END * - + 33 * + 17 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4497
SELECT 38 + + CASE 81 WHEN CAST ( + 90 AS INTEGER ) THEN - 74 WHEN - 80 * 90 / ( 93 ) * + 88 + - - COUNT ( DISTINCT - 92 ) + 6 * - 98 - + 28 * - 11 / + - 43 + + 58 + - 58 THEN - 52 END * - + 33 * + 17 AS col2
----
NULL

query I rowsort
SELECT 44 * + 43 AS col1
----
1892

query I rowsort
SELECT 83 + - 82
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-4500
SELECT ALL 34 DIV + + 12
----
2

skipif mysql # not compatible
query I rowsort label-4500
SELECT ALL 34 / + + 12
----
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4501
SELECT ( CAST( + 66 AS SIGNED ) ) + + COUNT( * )
----
67

skipif mysql # not compatible
query I rowsort label-4501
SELECT ( CAST ( + 66 AS INTEGER ) ) + + COUNT ( * )
----
67

query II rowsort
SELECT ( - + 10 ) * - 91 + 17 AS col1, 59 + 89
----
927
148

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4503
SELECT + ( - 76 ) + + 56 * + 80 * - 70 + - - CASE 70 WHEN COUNT( * ) THEN NULL WHEN - 29 THEN 99 * + + 94 * + CAST( NULL AS SIGNED ) ELSE + + 92 * COUNT( * ) END
----
-313584

skipif mysql # not compatible
query I rowsort label-4503
SELECT + ( - 76 ) + + 56 * + 80 * - 70 + - - CASE 70 WHEN COUNT ( * ) THEN NULL WHEN - 29 THEN 99 * + + 94 * + CAST ( NULL AS INTEGER ) ELSE + + 92 * COUNT ( * ) END
----
-313584

onlyif mysql # aggregate syntax: 
query II rowsort label-4504
SELECT COALESCE ( 38, + 7 + - 83, - COUNT( * ) ) * 25 AS col2, - 35
----
950
-35

skipif mysql # not compatible
query II rowsort label-4504
SELECT COALESCE ( 38, + 7 + - 83, - COUNT ( * ) ) * 25 AS col2, - 35
----
950
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-4505
SELECT + MAX( ALL - 73 ) * + - 68 AS col2
----
4964

skipif mysql # not compatible
query I rowsort label-4505
SELECT + MAX ( ALL - 73 ) * + - 68 AS col2
----
4964

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4506
SELECT DISTINCT + 58 * + - CAST( - - 34 AS SIGNED ) - + AVG ( + - 12 ) + + COUNT( * ) * 2 * - CASE + + COUNT( * ) WHEN - CASE 87 WHEN - - NULLIF ( + CAST( NULL AS SIGNED ), + 67 ) THEN NULL WHEN + + 74 + + AVG ( - 78 ) THEN - COUNT( * ) ELSE NULL END * + + 58 * 20 * 50 * + + 57 THEN 57 WHEN COUNT( ALL + - 87 ) THEN CASE + 14 WHEN - - 61 * - 70 + COUNT( * ) THEN + 69 * - 8 - 24 END WHEN COUNT( * ) THEN NULL ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4506
SELECT DISTINCT + 58 * + - CAST ( - - 34 AS INTEGER ) - + AVG ( + - 12 ) + + COUNT ( * ) * 2 * - CASE + + COUNT ( * ) WHEN - CASE 87 WHEN - - NULLIF ( + CAST ( NULL AS INTEGER ), + 67 ) THEN NULL WHEN + + 74 + + AVG ( - 78 ) THEN - COUNT ( * ) ELSE NULL END * + + 58 * 20 * 50 * + + 57 THEN 57 WHEN COUNT ( ALL + - 87 ) THEN CASE + 14 WHEN - - 61 * - 70 + COUNT ( * ) THEN + 69 * - 8 - 24 END WHEN COUNT ( * ) THEN NULL ELSE NULL END AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4507
SELECT ALL - 23 * + 80 + 77 + - + COALESCE ( - 42, + 84 - + 26 + 99 + SUM( DISTINCT - 93 ) - 59 + - COALESCE ( + 92, - 99, - 71 ) - - - 37 DIV - 65 * + 41 + - - 87 * + - 8 * - COUNT( * ) + + 98, - - MAX( - 66 ) + 76 + - COUNT( * ) * - - 84, - 32 * - 94, - 82 ) + 96 * 35 * COUNT( * )
----
1639

skipif mysql # not compatible
query I rowsort label-4507
SELECT ALL - 23 * + 80 + 77 + - + COALESCE ( - 42, + 84 - + 26 + 99 + SUM ( DISTINCT - 93 ) - 59 + - COALESCE ( + 92, - 99, - 71 ) - - - 37 / - 65 * + 41 + - - 87 * + - 8 * - COUNT ( * ) + + 98, - - MAX ( - 66 ) + 76 + - COUNT ( * ) * - - 84, - 32 * - 94, - 82 ) + 96 * 35 * COUNT ( * )
----
1639

onlyif mysql # aggregate syntax: 
query I rowsort label-4508
SELECT + CASE 50 WHEN - MIN( 85 ) + + + 75 THEN 62 WHEN - + 34 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-4508
SELECT + CASE 50 WHEN - MIN ( 85 ) + + + 75 THEN 62 WHEN - + 34 THEN NULL END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4509
SELECT + 16 * - + 35 * + 5 + - COALESCE ( 59, + COALESCE ( 55, - 22 ) + 12 + + NULLIF ( 16, 79 * - 47 + - 0 + - NULLIF ( COUNT( * ), + 15 ) + 33 * + 9 ) ) DIV + ( - COUNT( * ) ) + - 91 + ( + 95 ) + COUNT( * ) AS col1
----
-2736

skipif mysql # not compatible
query I rowsort label-4509
SELECT + 16 * - + 35 * + 5 + - COALESCE ( 59, + COALESCE ( 55, - 22 ) + 12 + + NULLIF ( 16, 79 * - 47 + - 0 + - NULLIF ( COUNT ( * ), + 15 ) + 33 * + 9 ) ) / + ( - COUNT ( * ) ) + - 91 + ( + 95 ) + COUNT ( * ) AS col1
----
-2736

query I rowsort
SELECT + 3 * + - 98 + - + 29 AS col1
----
-323

onlyif mysql # aggregate syntax: 
query I rowsort label-4511
SELECT DISTINCT + ( + - 8 ) * + 71 + - - MAX( + 67 ) + + + COUNT( * ) AS col0
----
-500

skipif mysql # not compatible
query I rowsort label-4511
SELECT DISTINCT + ( + - 8 ) * + 71 + - - MAX ( + 67 ) + + + COUNT ( * ) AS col0
----
-500

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4512
SELECT DISTINCT - + ( - + SUM( - 96 ) ) * 97 DIV - + 8 + - 45 + 36 + - 58 + 80 + SUM( + 69 ) DIV + 26
----
1179

skipif mysql # not compatible
query I rowsort label-4512
SELECT DISTINCT - + ( - + SUM ( - 96 ) ) * 97 / - + 8 + - 45 + 36 + - 58 + 80 + SUM ( + 69 ) / + 26
----
1179

onlyif mysql # DIV for integer division: 
query I rowsort label-4513
SELECT ALL + 18 DIV - 65 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4513
SELECT ALL + 18 / - 65 AS col0
----
0

query I rowsort
SELECT + 96 - ( 52 ) + NULLIF ( 53, 80 )
----
97

query I rowsort
SELECT - 15 * - 8 + - 24 * 9 AS col1
----
-96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4516
SELECT DISTINCT + 36 * SUM( - CAST( NULL AS SIGNED ) ) * - COUNT( * ) - + + CAST( NULL AS SIGNED ) / 83
----
NULL

skipif mysql # not compatible
query I rowsort label-4516
SELECT DISTINCT + 36 * SUM ( - CAST ( NULL AS INTEGER ) ) * - COUNT ( * ) - + + CAST ( NULL AS INTEGER ) / 83
----
NULL

query I rowsort
SELECT ALL - + 26 * 51 - + + 22
----
-1348

query I rowsort
SELECT ALL + 93 * + + 3 AS col2
----
279

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4519
SELECT + CAST( NULL AS SIGNED ) AS col1, 5 AS col2
----
NULL
5

skipif mysql # not compatible
query II rowsort label-4519
SELECT + CAST ( NULL AS INTEGER ) AS col1, 5 AS col2
----
NULL
5

query I rowsort
SELECT - 41 + - 37 + - 9 * + - 93
----
759

query I rowsort
SELECT DISTINCT ( + 91 ) * - 74 * 97 + + 60
----
-653138

onlyif mysql # aggregate syntax: 
query I rowsort label-4522
SELECT ALL COUNT( * ) - + 77 * 2
----
-153

skipif mysql # not compatible
query I rowsort label-4522
SELECT ALL COUNT ( * ) - + 77 * 2
----
-153

onlyif mysql # aggregate syntax: 
query I rowsort label-4523
SELECT ALL COUNT( DISTINCT + + ( + 80 ) ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-4523
SELECT ALL COUNT ( DISTINCT + + ( + 80 ) ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4524
SELECT - COUNT( DISTINCT - 5 ) + 48
----
47

skipif mysql # not compatible
query I rowsort label-4524
SELECT - COUNT ( DISTINCT - 5 ) + 48
----
47

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4525
SELECT - 35 * 97 DIV + 52 * COUNT( ALL ( - + 77 ) ) AS col0
----
-65

skipif mysql # not compatible
query I rowsort label-4525
SELECT - 35 * 97 / + 52 * COUNT ( ALL ( - + 77 ) ) AS col0
----
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-4526
SELECT ALL NULLIF ( + MIN( DISTINCT + ( - - ( - 60 ) ) ), 90 )
----
-60

skipif mysql # not compatible
query I rowsort label-4526
SELECT ALL NULLIF ( + MIN ( DISTINCT + ( - - ( - 60 ) ) ), 90 )
----
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-4527
SELECT ALL NULLIF ( + COUNT( * ), + AVG ( 15 ) ) col0
----
1

skipif mysql # not compatible
query I rowsort label-4527
SELECT ALL NULLIF ( + COUNT ( * ), + AVG ( 15 ) ) col0
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4528
SELECT - COALESCE ( + + 12, + 85 ) + + - CASE - 60 WHEN + 23 THEN - 25 DIV - CAST( NULL AS SIGNED ) * - - 6 DIV + 57 DIV - CASE + + 66 WHEN - 42 THEN + CAST( + - ( + 72 ) AS SIGNED ) ELSE NULL END + - SUM( DISTINCT - 72 ) DIV 20 ELSE - 26 + - COUNT( * ) END DIV + + 80 AS col1, - 93 + 93 * + 16 + + 84 AS col1
----
-12
1479

skipif mysql # not compatible
query II rowsort label-4528
SELECT - COALESCE ( + + 12, + 85 ) + + - CASE - 60 WHEN + 23 THEN - 25 / - CAST ( NULL AS INTEGER ) * - - 6 / + 57 / - CASE + + 66 WHEN - 42 THEN + CAST ( + - ( + 72 ) AS INTEGER ) ELSE NULL END + - SUM ( DISTINCT - 72 ) / 20 ELSE - 26 + - COUNT ( * ) END / + + 80 AS col1, - 93 + 93 * + 16 + + 84 AS col1
----
-12
1479

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4529
SELECT DISTINCT - 70 DIV + - CAST( 3 AS SIGNED ) AS col1
----
23

skipif mysql # not compatible
query I rowsort label-4529
SELECT DISTINCT - 70 / + - CAST ( 3 AS INTEGER ) AS col1
----
23

query I rowsort
SELECT - 99 * 28 * + + 40 AS col0
----
-110880

query II rowsort
SELECT + 5 * - - 58 AS col1, - 50
----
290
-50

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4532
SELECT ALL - 52 * + + ( + 53 ) * - 41 * - 48 * + CAST( + + 8 AS SIGNED )
----
-43390464

skipif mysql # not compatible
query I rowsort label-4532
SELECT ALL - 52 * + + ( + 53 ) * - 41 * - 48 * + CAST ( + + 8 AS INTEGER )
----
-43390464

query I rowsort
SELECT ALL 87 + - + 66
----
21

query I rowsort
SELECT DISTINCT - 70 * - 28 AS col0
----
1960

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4535
SELECT - 69 * - + CAST( NULL AS DECIMAL ) * + 54 * + - 93 / - 40 * + 48 * + 18 * - CAST( + 55 AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4535
SELECT - 69 * - + CAST ( NULL AS REAL ) * + 54 * + - 93 / - 40 * + 48 * + 18 * - CAST ( + 55 AS INTEGER )
----
NULL

query I rowsort
SELECT DISTINCT ( - - 54 )
----
54

query I rowsort
SELECT ALL + 98 + + + 14 + 98 * + 11 * + 34
----
36764

onlyif mysql # aggregate syntax: 
query I rowsort label-4538
SELECT - CASE + SUM( ALL + 64 ) WHEN 40 THEN + - 84 END - - 84 + 29 / + 77 * + 79 * + + 10 + - 31 - 46 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4538
SELECT - CASE + SUM ( ALL + 64 ) WHEN 40 THEN + - 84 END - - 84 + 29 / + 77 * + 79 * + + 10 + - 31 - 46 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4539
SELECT - ( - MAX( 35 ) ) * + 63
----
2205

skipif mysql # not compatible
query I rowsort label-4539
SELECT - ( - MAX ( 35 ) ) * + 63
----
2205

query I rowsort
SELECT + 39 * + - 49 AS col2
----
-1911

onlyif mysql # DIV for integer division: 
query I rowsort label-4541
SELECT DISTINCT - 40 DIV + 63
----
0

skipif mysql # not compatible
query I rowsort label-4541
SELECT DISTINCT - 40 / + 63
----
0

query I rowsort
SELECT ALL COALESCE ( 75, 64, + 36 * + 36 * - 38 * + ( + + 28 ) + + 72 ) col2
----
75

onlyif mysql # DIV for integer division: 
query I rowsort label-4543
SELECT ALL + 54 DIV - 11 + + + 27
----
23

skipif mysql # not compatible
query I rowsort label-4543
SELECT ALL + 54 / - 11 + + + 27
----
23

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4544
SELECT 44 DIV 58 - ( - + 74 ) * - + COUNT( * ) AS col2
----
-74

skipif mysql # not compatible
query I rowsort label-4544
SELECT 44 / 58 - ( - + 74 ) * - + COUNT ( * ) AS col2
----
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-4545
SELECT ALL + - MAX( ALL - 91 )
----
91

skipif mysql # not compatible
query I rowsort label-4545
SELECT ALL + - MAX ( ALL - 91 )
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-4546
SELECT + + CASE COUNT( * ) WHEN 37 THEN - - 99 * + - 64 * COUNT( * ) WHEN + - AVG ( 40 ) THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-4546
SELECT + + CASE COUNT ( * ) WHEN 37 THEN - - 99 * + - 64 * COUNT ( * ) WHEN + - AVG ( 40 ) THEN NULL ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4547
SELECT + CAST( NULL AS SIGNED ) + + AVG ( ALL - ( + + 84 ) ) + - 28 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4547
SELECT + CAST ( NULL AS INTEGER ) + + AVG ( ALL - ( + + 84 ) ) + - 28 AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4548
SELECT ALL - 25 DIV - 54 + 24 - + 35 + - COUNT( * ) AS col0
----
-12

skipif mysql # not compatible
query I rowsort label-4548
SELECT ALL - 25 / - 54 + 24 - + 35 + - COUNT ( * ) AS col0
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-4549
SELECT - ( + - 57 ) * + - COUNT( * ) + + COALESCE ( - 61, - + COUNT( * ) + 23 + - - 67, - 41 + - ( - 94 ) + 61 + + 67 + - 63 * 9 ) + - 34 + 33 AS col0
----
-119

skipif mysql # not compatible
query I rowsort label-4549
SELECT - ( + - 57 ) * + - COUNT ( * ) + + COALESCE ( - 61, - + COUNT ( * ) + 23 + - - 67, - 41 + - ( - 94 ) + 61 + + 67 + - 63 * 9 ) + - 34 + 33 AS col0
----
-119

onlyif mysql # aggregate syntax: 
query I rowsort label-4550
SELECT COALESCE ( + SUM( + 92 ), - COUNT( * ) ) AS col1
----
92

skipif mysql # not compatible
query I rowsort label-4550
SELECT COALESCE ( + SUM ( + 92 ), - COUNT ( * ) ) AS col1
----
92

onlyif mysql # aggregate syntax: 
query I rowsort label-4551
SELECT + COUNT( * ) * + 24 * - + 22 AS col2
----
-528

skipif mysql # not compatible
query I rowsort label-4551
SELECT + COUNT ( * ) * + 24 * - + 22 AS col2
----
-528

query I rowsort
SELECT - 86 * + 98 AS col1
----
-8428

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4553
SELECT DISTINCT + - CAST( + 84 AS SIGNED )
----
-84

skipif mysql # not compatible
query I rowsort label-4553
SELECT DISTINCT + - CAST ( + 84 AS INTEGER )
----
-84

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4554
SELECT + CAST( 19 AS SIGNED ) AS col2
----
19

skipif mysql # not compatible
query I rowsort label-4554
SELECT + CAST ( 19 AS INTEGER ) AS col2
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-4555
SELECT ALL + SUM( 0 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4555
SELECT ALL + SUM ( 0 ) AS col1
----
0

query I rowsort
SELECT + 47 + - 72 AS col2
----
-25

query I rowsort
SELECT ALL 58 * - 74 * 4
----
-17168

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4558
SELECT NULLIF ( ( 54 ), - CAST( COUNT( * ) AS SIGNED ) + 12 )
----
54

skipif mysql # not compatible
query I rowsort label-4558
SELECT NULLIF ( ( 54 ), - CAST ( COUNT ( * ) AS INTEGER ) + 12 )
----
54

query I rowsort
SELECT + 40 + + 27
----
67

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4560
SELECT - COALESCE ( + ( - 44 ), - 48 * 78, + SUM( + 18 ) DIV - CASE - 32 WHEN + + 77 + - ( - - 76 ) DIV + 32 THEN NULL ELSE - - COUNT( * ) END ) DIV + 70 AS col2, + 6
----
0
6

skipif mysql # not compatible
query II rowsort label-4560
SELECT - COALESCE ( + ( - 44 ), - 48 * 78, + SUM ( + 18 ) / - CASE - 32 WHEN + + 77 + - ( - - 76 ) / + 32 THEN NULL ELSE - - COUNT ( * ) END ) / + 70 AS col2, + 6
----
0
6

onlyif mysql # aggregate syntax: 
query I rowsort label-4561
SELECT ALL 40 * - CASE - + 47 WHEN + 58 * + - 92 * - 93 + - 2 THEN NULL WHEN 69 + + 92 THEN NULL ELSE - 36 + - SUM( ALL + - 70 ) + - + 66 END + 86 + + 6 + + - 9
----
1363

skipif mysql # not compatible
query I rowsort label-4561
SELECT ALL 40 * - CASE - + 47 WHEN + 58 * + - 92 * - 93 + - 2 THEN NULL WHEN 69 + + 92 THEN NULL ELSE - 36 + - SUM ( ALL + - 70 ) + - + 66 END + 86 + + 6 + + - 9
----
1363

query I rowsort
SELECT + 52 * + - 17 + ( - 65 ) AS col1
----
-949

onlyif mysql # aggregate syntax: 
query I rowsort label-4563
SELECT ALL COUNT( ( 90 ) ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-4563
SELECT ALL COUNT ( ( 90 ) ) AS col0
----
1

query I rowsort
SELECT ALL ( 84 ) * + + 45 + + 76 AS col0
----
3856

onlyif mysql # aggregate syntax: 
query I rowsort label-4565
SELECT - 93 + + COUNT( * ) AS col0
----
-92

skipif mysql # not compatible
query I rowsort label-4565
SELECT - 93 + + COUNT ( * ) AS col0
----
-92

query I rowsort
SELECT + 57 + + + 62 AS col0
----
119

query I rowsort
SELECT - 63 - - - 23 AS col0
----
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-4568
SELECT - ( - COUNT( * ) ) + - 50 AS col0
----
-49

skipif mysql # not compatible
query I rowsort label-4568
SELECT - ( - COUNT ( * ) ) + - 50 AS col0
----
-49

query I rowsort
SELECT - 39 + + 91 AS col1
----
52

query I rowsort
SELECT - 15 + - + 72
----
-87

query II rowsort
SELECT DISTINCT + 87, 80 AS col2
----
87
80

query I rowsort
SELECT DISTINCT - 11 * 61
----
-671

query I rowsort
SELECT ALL ( - 5 ) col1
----
-5

query I rowsort
SELECT ALL - + 70 * - 18
----
1260

onlyif mysql # aggregate syntax: 
query II rowsort label-4575
SELECT + 98 + + - 71 * - + 35 AS col2, COUNT( * ) + - 34
----
2583
-33

skipif mysql # not compatible
query II rowsort label-4575
SELECT + 98 + + - 71 * - + 35 AS col2, COUNT ( * ) + - 34
----
2583
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-4576
SELECT CASE - NULLIF ( - 23, + 1 ) WHEN + 69 * + ( - 57 ) - COUNT( * ) THEN 94 / + + COALESCE ( + 76, 31 / + + 20 * 40, - 46 * 9 ) WHEN 60 THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-4576
SELECT CASE - NULLIF ( - 23, + 1 ) WHEN + 69 * + ( - 57 ) - COUNT ( * ) THEN 94 / + + COALESCE ( + 76, 31 / + + 20 * 40, - 46 * 9 ) WHEN 60 THEN NULL ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4577
SELECT ALL + ( + 39 ) * - COUNT( * ), COALESCE ( + 42, 20 * 84, 28 * + 72 ) col1
----
-39
42

skipif mysql # not compatible
query II rowsort label-4577
SELECT ALL + ( + 39 ) * - COUNT ( * ), COALESCE ( + 42, 20 * 84, 28 * + 72 ) col1
----
-39
42

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4578
SELECT DISTINCT CASE + + 88 WHEN - + MIN( + 47 ) - + 19 THEN NULL WHEN + 2 + - + 81 THEN - CAST( - - 40 AS SIGNED ) / - 56 + + 37 + + + 67 + - 51 + + CAST( NULL AS SIGNED ) * 55 * + 12 END
----
NULL

skipif mysql # not compatible
query I rowsort label-4578
SELECT DISTINCT CASE + + 88 WHEN - + MIN ( + 47 ) - + 19 THEN NULL WHEN + 2 + - + 81 THEN - CAST ( - - 40 AS INTEGER ) / - 56 + + 37 + + + 67 + - 51 + + CAST ( NULL AS INTEGER ) * 55 * + 12 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4579
SELECT ALL + COUNT( * ) * + - SUM( DISTINCT + 89 )
----
-89

skipif mysql # not compatible
query I rowsort label-4579
SELECT ALL + COUNT ( * ) * + - SUM ( DISTINCT + 89 )
----
-89

onlyif mysql # DIV for integer division: 
query I rowsort label-4580
SELECT + 64 DIV + 90 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4580
SELECT + 64 / + 90 AS col2
----
0

query I rowsort
SELECT 30 * 75 AS col0
----
2250

query I rowsort
SELECT DISTINCT + - 28 - - 8
----
-20

onlyif mysql # aggregate syntax: 
query III rowsort label-4583
SELECT COUNT( * ), NULLIF ( - - 18, + 15 * - COUNT( * ) * + 74 ) AS col0, - - 82 AS col0
----
1
18
82

skipif mysql # not compatible
query III rowsort label-4583
SELECT COUNT ( * ), NULLIF ( - - 18, + 15 * - COUNT ( * ) * + 74 ) AS col0, - - 82 AS col0
----
1
18
82

onlyif mysql # DIV for integer division: 
query II rowsort label-4584
SELECT - 44 * + 14 + - ( - 27 ) DIV - + ( - 60 ) col2, 97 + - + 47 + - 65 + + 54 - + + ( - 87 ) AS col0
----
-616
126

skipif mysql # not compatible
query II rowsort label-4584
SELECT - 44 * + 14 + - ( - 27 ) / - + ( - 60 ) col2, 97 + - + 47 + - 65 + + 54 - + + ( - 87 ) AS col0
----
-616
126

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4585
SELECT 55 DIV - CAST( + 26 AS SIGNED ) + + 12 + 21 * 32 * + - 12 AS col1
----
-8054

skipif mysql # not compatible
query I rowsort label-4585
SELECT 55 / - CAST ( + 26 AS INTEGER ) + + 12 + 21 * 32 * + - 12 AS col1
----
-8054

query I rowsort
SELECT DISTINCT - - CASE 95 WHEN 22 THEN - 38 END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4587
SELECT ALL - COUNT( * ) * + - 71 * + 23 - + 29 AS col2
----
1604

skipif mysql # not compatible
query I rowsort label-4587
SELECT ALL - COUNT ( * ) * + - 71 * + 23 - + 29 AS col2
----
1604

onlyif mysql # aggregate syntax: 
query I rowsort label-4588
SELECT MIN( - 83 ) * 65
----
-5395

skipif mysql # not compatible
query I rowsort label-4588
SELECT MIN ( - 83 ) * 65
----
-5395

query I rowsort
SELECT DISTINCT 82 * - 31
----
-2542

query II rowsort
SELECT + 92, 38 AS col0
----
92
38

onlyif mysql # aggregate syntax: 
query I rowsort label-4591
SELECT + COUNT( * ) * - CASE + 4 WHEN - ( - 62 ) THEN - 38 + - + 35 WHEN + 9 * - COUNT( * ) THEN + - 64 ELSE NULL END + + + 43 * + + COUNT( * ) * + 12
----
NULL

skipif mysql # not compatible
query I rowsort label-4591
SELECT + COUNT ( * ) * - CASE + 4 WHEN - ( - 62 ) THEN - 38 + - + 35 WHEN + 9 * - COUNT ( * ) THEN + - 64 ELSE NULL END + + + 43 * + + COUNT ( * ) * + 12
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4592
SELECT ALL - 9 AS col0, MAX( DISTINCT - 45 ) * 47 DIV + - 88 + - CAST( + 54 AS SIGNED ) AS col1
----
-9
-30

skipif mysql # not compatible
query II rowsort label-4592
SELECT ALL - 9 AS col0, MAX ( DISTINCT - 45 ) * 47 / + - 88 + - CAST ( + 54 AS INTEGER ) AS col1
----
-9
-30

query I rowsort
SELECT ALL 17 * - + 93
----
-1581

query I rowsort
SELECT 48 * - 23 * - 21
----
23184

query II rowsort
SELECT 58 AS col0, 6
----
58
6

query II rowsort
SELECT DISTINCT - 25 col0, 5
----
-25
5

query I rowsort
SELECT DISTINCT 70 + 64
----
134

onlyif mysql # aggregate syntax: 
query II rowsort label-4598
SELECT + 56 AS col1, - CASE + 63 WHEN ( - 74 ) THEN - 11 + + 85 + + SUM( DISTINCT + 30 ) * - 28 WHEN 3 THEN - 98 * 87 - - + 9 + 65 * + + 56 - + - 82 * 95 / - - 18 * SUM( DISTINCT - 38 ) + + - ( + ( + 89 ) ) * + 99 + + 5 ELSE NULL END AS col0
----
56
NULL

skipif mysql # not compatible
query II rowsort label-4598
SELECT + 56 AS col1, - CASE + 63 WHEN ( - 74 ) THEN - 11 + + 85 + + SUM ( DISTINCT + 30 ) * - 28 WHEN 3 THEN - 98 * 87 - - + 9 + 65 * + + 56 - + - 82 * 95 / - - 18 * SUM ( DISTINCT - 38 ) + + - ( + ( + 89 ) ) * + 99 + + 5 ELSE NULL END AS col0
----
56
NULL

query I rowsort
SELECT ALL 81 * + 78
----
6318

query I rowsort
SELECT DISTINCT 16 + + 37 AS col0
----
53

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4601
SELECT ALL 75 + + + COUNT( * ) + - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4601
SELECT ALL 75 + + + COUNT ( * ) + - CAST ( NULL AS INTEGER ) AS col1
----
NULL

query II rowsort
SELECT + 16 AS col0, + 71 col1
----
16
71

query II rowsort
SELECT 91 AS col2, 4 col2
----
91
4

query II rowsort
SELECT ( - 87 ) * COALESCE ( - 44, - - 98, 12 ) + 25 AS col1, 20 col2
----
3853
20

onlyif mysql # DIV for integer division: 
query I rowsort label-4605
SELECT ALL 69 DIV ( + - 60 ) col2
----
-1

skipif mysql # not compatible
query I rowsort label-4605
SELECT ALL 69 / ( + - 60 ) col2
----
-1

query I rowsort
SELECT 73 * 82 AS col2
----
5986

onlyif mysql # aggregate syntax: 
query II rowsort label-4607
SELECT DISTINCT COUNT( * ) * - 96 AS col0, + 4
----
-96
4

skipif mysql # not compatible
query II rowsort label-4607
SELECT DISTINCT COUNT ( * ) * - 96 AS col0, + 4
----
-96
4

onlyif mysql # DIV for integer division: 
query I rowsort label-4608
SELECT 18 DIV 18 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-4608
SELECT 18 / 18 AS col1
----
1

query I rowsort
SELECT ( + + 12 ) * + + 4 AS col0
----
48

query I rowsort
SELECT DISTINCT + 89 * + - 49 col1
----
-4361

onlyif mysql # aggregate syntax: 
query I rowsort label-4611
SELECT DISTINCT + 38 * + + 73 + - CASE + SUM( ALL - 38 ) WHEN 90 THEN NULL WHEN 39 THEN 65 ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4611
SELECT DISTINCT + 38 * + + 73 + - CASE + SUM ( ALL - 38 ) WHEN 90 THEN NULL WHEN 39 THEN 65 ELSE NULL END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4612
SELECT DISTINCT MIN( DISTINCT + - 55 ) AS col1
----
-55

skipif mysql # not compatible
query I rowsort label-4612
SELECT DISTINCT MIN ( DISTINCT + - 55 ) AS col1
----
-55

query I rowsort
SELECT ALL 65 - 52
----
13

query I rowsort
SELECT - 5 * 65 AS col0
----
-325

query II rowsort
SELECT ALL 62, 32 AS col0
----
62
32

query I rowsort
SELECT 55 + + 61 col0
----
116

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4617
SELECT COALESCE ( MAX( + 97 ), - - 94 DIV ( 47 ) + + 99 * ( - COUNT( * ) ) * 8 * - + COUNT( * ) ), + 20 AS col2
----
97
20

skipif mysql # not compatible
query II rowsort label-4617
SELECT COALESCE ( MAX ( + 97 ), - - 94 / ( 47 ) + + 99 * ( - COUNT ( * ) ) * 8 * - + COUNT ( * ) ), + 20 AS col2
----
97
20

query I rowsort
SELECT - 62 + - - 70 col0
----
8

query I rowsort
SELECT + 71 * - 59
----
-4189

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4620
SELECT DISTINCT CAST( + + NULLIF ( - ( 50 ), 36 ) AS SIGNED ) AS col2
----
-50

skipif mysql # not compatible
query I rowsort label-4620
SELECT DISTINCT CAST ( + + NULLIF ( - ( 50 ), 36 ) AS INTEGER ) AS col2
----
-50

onlyif mysql # aggregate syntax: 
query II rowsort label-4621
SELECT 71, - COUNT( * ) AS col0
----
71
-1

skipif mysql # not compatible
query II rowsort label-4621
SELECT 71, - COUNT ( * ) AS col0
----
71
-1

query I rowsort
SELECT - NULLIF ( + 0, + 50 ) AS col2
----
0

query II rowsort
SELECT ALL 30 AS col0, + 5 AS col2
----
30
5

query I rowsort
SELECT ALL + 6 * - 61 col2
----
-366

onlyif mysql # aggregate syntax: 
query I rowsort label-4625
SELECT SUM( - - 76 ) * - ( + - 96 ) * 52 + - 99 * - + 40 * + NULLIF ( - 46, + 86 + + 80 ) + 49 + + 49 AS col2
----
197330

skipif mysql # not compatible
query I rowsort label-4625
SELECT SUM ( - - 76 ) * - ( + - 96 ) * 52 + - 99 * - + 40 * + NULLIF ( - 46, + 86 + + 80 ) + 49 + + 49 AS col2
----
197330

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4626
SELECT - 42 AS col1, COUNT( * ) - + + 66 / - CAST( NULL AS SIGNED ) AS col2
----
-42
NULL

skipif mysql # not compatible
query II rowsort label-4626
SELECT - 42 AS col1, COUNT ( * ) - + + 66 / - CAST ( NULL AS INTEGER ) AS col2
----
-42
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4627
SELECT ALL - - 46 * COUNT( * ) DIV - 51
----
0

skipif mysql # not compatible
query I rowsort label-4627
SELECT ALL - - 46 * COUNT ( * ) / - 51
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4628
SELECT + COUNT( ALL - + 62 )
----
1

skipif mysql # not compatible
query I rowsort label-4628
SELECT + COUNT ( ALL - + 62 )
----
1

query I rowsort
SELECT ALL 88 * 74 + + - 99 AS col0
----
6413

query I rowsort
SELECT ALL 11 + + + 64 * + 28 + - 58
----
1745

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4631
SELECT DISTINCT + 83 + - - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4631
SELECT DISTINCT + 83 + - - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4632
SELECT ALL 5 + + 57 * COUNT( * ) * + MAX( DISTINCT 56 ) * 55 * 49 AS col1
----
8602445

skipif mysql # not compatible
query I rowsort label-4632
SELECT ALL 5 + + 57 * COUNT ( * ) * + MAX ( DISTINCT 56 ) * 55 * 49 AS col1
----
8602445

query II rowsort
SELECT ALL + 66 + ( - 50 ), ( + 94 ) + 24 AS col1
----
16
118

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4634
SELECT DISTINCT - 11 + - AVG ( - + 72 ) + + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4634
SELECT DISTINCT - 11 + - AVG ( - + 72 ) + + - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL 28 * + 71 AS col0
----
1988

query I rowsort
SELECT 73 + - 90 AS col1
----
-17

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4637
SELECT 39 * + COUNT( * ) DIV - 51 + 9 col1
----
9

skipif mysql # not compatible
query I rowsort label-4637
SELECT 39 * + COUNT ( * ) / - 51 + 9 col1
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-4638
SELECT ALL 21 - + COUNT( * ) * - 62
----
83

skipif mysql # not compatible
query I rowsort label-4638
SELECT ALL 21 - + COUNT ( * ) * - 62
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-4639
SELECT 30 * - COUNT( * ) * + 35 + + + 21 AS col0
----
-1029

skipif mysql # not compatible
query I rowsort label-4639
SELECT 30 * - COUNT ( * ) * + 35 + + + 21 AS col0
----
-1029

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4640
SELECT + CAST( NULL AS SIGNED ) + - + ( - - 42 ) + + 63 * - - 79 * - - 65 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4640
SELECT + CAST ( NULL AS INTEGER ) + - + ( - - 42 ) + + 63 * - - 79 * - - 65 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4641
SELECT ALL + 30 * + 81, - 71 * + SUM( ALL - 18 ) * 54 AS col0
----
2430
69012

skipif mysql # not compatible
query II rowsort label-4641
SELECT ALL + 30 * + 81, - 71 * + SUM ( ALL - 18 ) * 54 AS col0
----
2430
69012

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4642
SELECT ALL NULLIF ( COUNT( * ), CAST( NULL AS SIGNED ) )
----
1

skipif mysql # not compatible
query I rowsort label-4642
SELECT ALL NULLIF ( COUNT ( * ), CAST ( NULL AS INTEGER ) )
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4643
SELECT DISTINCT COUNT( * ) * - 18 AS col0, ( - CAST( NULL AS SIGNED ) ) * - 50 * + 81 * 65 + AVG ( ALL 77 ) + COUNT( * ) + - + 86 * + + 62
----
-18
NULL

skipif mysql # not compatible
query II rowsort label-4643
SELECT DISTINCT COUNT ( * ) * - 18 AS col0, ( - CAST ( NULL AS INTEGER ) ) * - 50 * + 81 * 65 + AVG ( ALL 77 ) + COUNT ( * ) + - + 86 * + + 62
----
-18
NULL

query II rowsort
SELECT + - 65 + + + 10 * - 29 AS col2, CASE ( 94 ) WHEN + 89 THEN + 93 * 12 + 16 WHEN NULLIF ( + ( + 77 ), + 24 * + 64 + 18 ) THEN NULL ELSE NULL END
----
-355
NULL

query I rowsort
SELECT + + 90 + - + 66 * - 8 * 42
----
22266

onlyif mysql # DIV for integer division: 
query I rowsort label-4646
SELECT + - 79 DIV - + 46 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-4646
SELECT + - 79 / - + 46 AS col2
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4647
SELECT - 25 * + 31 * CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4647
SELECT - 25 * + 31 * CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4648
SELECT DISTINCT SUM( ALL 23 ) * - - COUNT( * ) AS col1
----
23

skipif mysql # not compatible
query I rowsort label-4648
SELECT DISTINCT SUM ( ALL 23 ) * - - COUNT ( * ) AS col1
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-4649
SELECT + + COUNT( * ) * - + 29 AS col1
----
-29

skipif mysql # not compatible
query I rowsort label-4649
SELECT + + COUNT ( * ) * - + 29 AS col1
----
-29

query I rowsort
SELECT ALL - 35 * - 31 + - 63 col0
----
1022

query I rowsort
SELECT + 82 + 81
----
163

onlyif mysql # aggregate syntax: 
query I rowsort label-4652
SELECT ALL 52 * 10 + - 97 - - - SUM( + 67 ) * + 65
----
-3932

skipif mysql # not compatible
query I rowsort label-4652
SELECT ALL 52 * 10 + - 97 - - - SUM ( + 67 ) * + 65
----
-3932

onlyif mysql # aggregate syntax: 
query I rowsort label-4653
SELECT DISTINCT - MIN( ALL + 17 )
----
-17

skipif mysql # not compatible
query I rowsort label-4653
SELECT DISTINCT - MIN ( ALL + 17 )
----
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-4654
SELECT + ( - COUNT( * ) ) * + 62
----
-62

skipif mysql # not compatible
query I rowsort label-4654
SELECT + ( - COUNT ( * ) ) * + 62
----
-62

query I rowsort
SELECT ALL - 33 + 11 + + 69 * - 25 * + + 54
----
-93172

query I rowsort
SELECT + + 52 + + 85
----
137

query I rowsort
SELECT ALL NULLIF ( + 99, - COALESCE ( + 43, - - 77 ) * - NULLIF ( - 72, + 42 ) ) AS col0
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-4658
SELECT - - 14 + COUNT( DISTINCT - 69 )
----
15

skipif mysql # not compatible
query I rowsort label-4658
SELECT - - 14 + COUNT ( DISTINCT - 69 )
----
15

query I rowsort
SELECT DISTINCT - 18 * 48 + - - 83 + - 50 * - 24
----
419

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4660
SELECT + 34 * + + ( - CAST( NULL AS SIGNED ) ) + - - 92 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4660
SELECT + 34 * + + ( - CAST ( NULL AS INTEGER ) ) + - - 92 AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4661
SELECT + 43 AS col0, + 33 * CAST( NULL AS SIGNED ) AS col2
----
43
NULL

skipif mysql # not compatible
query II rowsort label-4661
SELECT + 43 AS col0, + 33 * CAST ( NULL AS INTEGER ) AS col2
----
43
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4662
SELECT ALL + COUNT( * ) AS col2, NULLIF ( 84, - 49 ) + + 78 * + COUNT( * )
----
1
162

skipif mysql # not compatible
query II rowsort label-4662
SELECT ALL + COUNT ( * ) AS col2, NULLIF ( 84, - 49 ) + + 78 * + COUNT ( * )
----
1
162

onlyif mysql # aggregate syntax: 
query I rowsort label-4663
SELECT ALL - COUNT( * ) * - 96 * - 31 AS col2
----
-2976

skipif mysql # not compatible
query I rowsort label-4663
SELECT ALL - COUNT ( * ) * - 96 * - 31 AS col2
----
-2976

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4664
SELECT ALL 59 * - - CAST( NULL AS SIGNED ) + 78 - + COUNT( - + 88 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4664
SELECT ALL 59 * - - CAST ( NULL AS INTEGER ) + 78 - + COUNT ( - + 88 )
----
NULL

query I rowsort
SELECT DISTINCT - 25 * - ( - 81 ) * - 25
----
50625

query I rowsort
SELECT - ( + 59 ) + 47 + - 84
----
-96

query I rowsort
SELECT DISTINCT + 61 * 48 AS col2
----
2928

query I rowsort
SELECT ALL - 7 * + 51 AS col1
----
-357

query I rowsort
SELECT 34 * + 11 + - 94 AS col0
----
280

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4670
SELECT COALESCE ( - COUNT( * ), + 84 * + CAST( - + 5 AS SIGNED ), + COUNT( ALL - CAST( NULL AS DECIMAL ) ), + - 39 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-4670
SELECT COALESCE ( - COUNT ( * ), + 84 * + CAST ( - + 5 AS INTEGER ), + COUNT ( ALL - CAST ( NULL AS REAL ) ), + - 39 ) AS col1
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-4671
SELECT - 2 DIV 96 + 18 + + 73 * + 61 AS col2
----
4471

skipif mysql # not compatible
query I rowsort label-4671
SELECT - 2 / 96 + 18 + + 73 * + 61 AS col2
----
4471

query I rowsort
SELECT ALL - 51 * + - 3 - + - 55 * 90
----
5103

onlyif mysql # aggregate syntax: 
query I rowsort label-4673
SELECT - ( MAX( 70 ) ) * 8 AS col0
----
-560

skipif mysql # not compatible
query I rowsort label-4673
SELECT - ( MAX ( 70 ) ) * 8 AS col0
----
-560

query I rowsort
SELECT - 86 * + 24 AS col0
----
-2064

onlyif mysql # aggregate syntax: 
query I rowsort label-4675
SELECT DISTINCT + 18 * + 90 - 42 + + ( + + COUNT( * ) ) * - - 88
----
1666

skipif mysql # not compatible
query I rowsort label-4675
SELECT DISTINCT + 18 * + 90 - 42 + + ( + + COUNT ( * ) ) * - - 88
----
1666

onlyif mysql # DIV for integer division: 
query I rowsort label-4676
SELECT DISTINCT - 62 DIV - + 7 AS col0
----
8

skipif mysql # not compatible
query I rowsort label-4676
SELECT DISTINCT - 62 / - + 7 AS col0
----
8

query I rowsort
SELECT DISTINCT ( - + 73 ) * - + 71 - + 42 * + 51 AS col1
----
3041

onlyif mysql # aggregate syntax: 
query I rowsort label-4678
SELECT DISTINCT + COUNT( DISTINCT - 31 )
----
1

skipif mysql # not compatible
query I rowsort label-4678
SELECT DISTINCT + COUNT ( DISTINCT - 31 )
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4679
SELECT 88 AS col2, CASE - 42 WHEN COUNT( 67 ) THEN + 31 * - 91 + COUNT( * ) + + COALESCE ( - 89, - + COUNT( * ) ) END + CAST( NULL AS SIGNED ) AS col0
----
88
NULL

skipif mysql # not compatible
query II rowsort label-4679
SELECT 88 AS col2, CASE - 42 WHEN COUNT ( 67 ) THEN + 31 * - 91 + COUNT ( * ) + + COALESCE ( - 89, - + COUNT ( * ) ) END + CAST ( NULL AS INTEGER ) AS col0
----
88
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4680
SELECT DISTINCT + 72 * - SUM( 85 ) AS col1
----
-6120

skipif mysql # not compatible
query I rowsort label-4680
SELECT DISTINCT + 72 * - SUM ( 85 ) AS col1
----
-6120

query II rowsort
SELECT - 69 AS col1, 58
----
-69
58

onlyif mysql # aggregate syntax: 
query I rowsort label-4682
SELECT - + SUM( 73 ) * - 14 AS col2
----
1022

skipif mysql # not compatible
query I rowsort label-4682
SELECT - + SUM ( 73 ) * - 14 AS col2
----
1022

query I rowsort
SELECT - 53 - + 64
----
-117

query I rowsort
SELECT ALL - 28 * + 21
----
-588

onlyif mysql # DIV for integer division: 
query I rowsort label-4685
SELECT ALL 10 + 29 + - - 63 DIV + 76
----
39

skipif mysql # not compatible
query I rowsort label-4685
SELECT ALL 10 + 29 + - - 63 / + 76
----
39

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4686
SELECT + + MIN( ALL + 48 ) DIV + 33 + - 68 AS col2, + ( - 88 ) AS col0
----
-67
-88

skipif mysql # not compatible
query II rowsort label-4686
SELECT + + MIN ( ALL + 48 ) / + 33 + - 68 AS col2, + ( - 88 ) AS col0
----
-67
-88

query I rowsort
SELECT DISTINCT 28 + - + COALESCE ( + 77, 57 * + 9 ) col1
----
-49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4688
SELECT ALL + ( CAST( 92 AS SIGNED ) ) AS col1, + COUNT( DISTINCT + 3 ) col0
----
92
1

skipif mysql # not compatible
query II rowsort label-4688
SELECT ALL + ( CAST ( 92 AS INTEGER ) ) AS col1, + COUNT ( DISTINCT + 3 ) col0
----
92
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4689
SELECT NULLIF ( COUNT( * ), - MAX( ALL - 38 ) * CASE 82 WHEN COUNT( * ) + + 57 + 50 THEN - 13 WHEN - 90 * - 92 + + + 17 / + COUNT( ALL + - 73 ) THEN NULL END ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-4689
SELECT NULLIF ( COUNT ( * ), - MAX ( ALL - 38 ) * CASE 82 WHEN COUNT ( * ) + + 57 + 50 THEN - 13 WHEN - 90 * - 92 + + + 17 / + COUNT ( ALL + - 73 ) THEN NULL END ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4690
SELECT - - COUNT( * ) + + CASE - 3 WHEN 73 THEN 99 * NULLIF ( 70, - 23 * + 57 ) * - 39 + + COUNT( * ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-4690
SELECT - - COUNT ( * ) + + CASE - 3 WHEN 73 THEN 99 * NULLIF ( 70, - 23 * + 57 ) * - 39 + + COUNT ( * ) ELSE NULL END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4691
SELECT ALL + ( + 15 ) DIV ( 36 ) + - 45 AS col1
----
-45

skipif mysql # not compatible
query I rowsort label-4691
SELECT ALL + ( + 15 ) / ( 36 ) + - 45 AS col1
----
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-4692
SELECT + NULLIF ( - - COUNT( * ), - - 88 ) + + 81
----
82

skipif mysql # not compatible
query I rowsort label-4692
SELECT + NULLIF ( - - COUNT ( * ), - - 88 ) + + 81
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-4693
SELECT DISTINCT 95 + + NULLIF ( CASE + 78 WHEN - COUNT( * ) THEN NULL ELSE + 63 * + 3 * - COUNT( + 31 ) END, - 85 ) + - - 47 * 43 * + 89 AS col2
----
179775

skipif mysql # not compatible
query I rowsort label-4693
SELECT DISTINCT 95 + + NULLIF ( CASE + 78 WHEN - COUNT ( * ) THEN NULL ELSE + 63 * + 3 * - COUNT ( + 31 ) END, - 85 ) + - - 47 * 43 * + 89 AS col2
----
179775

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4694
SELECT ALL 8 + CAST( NULL AS SIGNED ) - - 72 AS col1, 68 * + 62 + - 95 * + COUNT( * ) AS col2
----
NULL
4121

skipif mysql # not compatible
query II rowsort label-4694
SELECT ALL 8 + CAST ( NULL AS INTEGER ) - - 72 AS col1, 68 * + 62 + - 95 * + COUNT ( * ) AS col2
----
NULL
4121

query I rowsort
SELECT ALL COALESCE ( - + 12, 11 ) + - 95 AS col0
----
-107

query I rowsort
SELECT DISTINCT 57 + 43 AS col0
----
100

onlyif mysql # aggregate syntax: 
query I rowsort label-4697
SELECT ALL MAX( DISTINCT + 59 ) * 89 col0
----
5251

skipif mysql # not compatible
query I rowsort label-4697
SELECT ALL MAX ( DISTINCT + 59 ) * 89 col0
----
5251

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4698
SELECT DISTINCT - 83 + - - CAST( - - COUNT( * ) AS SIGNED )
----
-82

skipif mysql # not compatible
query I rowsort label-4698
SELECT DISTINCT - 83 + - - CAST ( - - COUNT ( * ) AS INTEGER )
----
-82

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4699
SELECT COUNT( * ) DIV 50 + + 46 * + 97 AS col2, 13 * + 23 + + 71 col0
----
4462
370

skipif mysql # not compatible
query II rowsort label-4699
SELECT COUNT ( * ) / 50 + + 46 * + 97 AS col2, 13 * + 23 + + 71 col0
----
4462
370

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4700
SELECT ALL + ( 26 ) DIV - - NULLIF ( - + 28, - - 58 ) + 24 + - 0, 28 DIV - COALESCE ( + COUNT( * ), + 3, - 90 * + SUM( 0 ) ) AS col1
----
24
-28

skipif mysql # not compatible
query II rowsort label-4700
SELECT ALL + ( 26 ) / - - NULLIF ( - + 28, - - 58 ) + 24 + - 0, 28 / - COALESCE ( + COUNT ( * ), + 3, - 90 * + SUM ( 0 ) ) AS col1
----
24
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-4701
SELECT ALL + ( + NULLIF ( 47, - MIN( - 52 ) ) )
----
47

skipif mysql # not compatible
query I rowsort label-4701
SELECT ALL + ( + NULLIF ( 47, - MIN ( - 52 ) ) )
----
47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4702
SELECT ALL 52 * CAST( + COUNT( * ) AS SIGNED ) AS col0
----
52

skipif mysql # not compatible
query I rowsort label-4702
SELECT ALL 52 * CAST ( + COUNT ( * ) AS INTEGER ) AS col0
----
52

query I rowsort
SELECT - 64 * - + 78 * ( 48 )
----
239616

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4704
SELECT + CAST( + 92 AS SIGNED ) AS col2
----
92

skipif mysql # not compatible
query I rowsort label-4704
SELECT + CAST ( + 92 AS INTEGER ) AS col2
----
92

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4705
SELECT ALL COUNT( * ) DIV - 3 - MAX( ALL 79 )
----
-79

skipif mysql # not compatible
query I rowsort label-4705
SELECT ALL COUNT ( * ) / - 3 - MAX ( ALL 79 )
----
-79

query I rowsort
SELECT 66 * - 47 - - 69 + + 82 * 81 * + 98
----
647883

onlyif mysql # aggregate syntax: 
query I rowsort label-4707
SELECT DISTINCT - 58 * - NULLIF ( + 49, + 60 * - NULLIF ( - 22, - 6 + - COUNT( * ) ) * + 35 * - 15 + 61 + COALESCE ( COUNT( * ), 1 ) + 72 ) * - + ( - 61 )
----
173362

skipif mysql # not compatible
query I rowsort label-4707
SELECT DISTINCT - 58 * - NULLIF ( + 49, + 60 * - NULLIF ( - 22, - 6 + - COUNT ( * ) ) * + 35 * - 15 + 61 + COALESCE ( COUNT ( * ), 1 ) + 72 ) * - + ( - 61 )
----
173362

onlyif mysql # aggregate syntax: 
query II rowsort label-4708
SELECT ALL - ( COUNT( * ) ) AS col1, 42 * 87 * - MAX( DISTINCT + 4 ) * + 0
----
-1
0

skipif mysql # not compatible
query II rowsort label-4708
SELECT ALL - ( COUNT ( * ) ) AS col1, 42 * 87 * - MAX ( DISTINCT + 4 ) * + 0
----
-1
0

onlyif mysql # DIV for integer division: 
query II rowsort label-4709
SELECT 91 DIV - 48, 62 col1
----
-1
62

skipif mysql # not compatible
query II rowsort label-4709
SELECT 91 / - 48, 62 col1
----
-1
62

query I rowsort
SELECT - 23 * - 62 + - + 33 + - 50 * 14
----
693

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4711
SELECT 79 * - CAST( - + 17 AS DECIMAL ) + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4711
SELECT 79 * - CAST ( - + 17 AS REAL ) + - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4712
SELECT + 10 * CAST( - 78 AS SIGNED ) + - + COUNT( * ) + 39 + + 53
----
-689

skipif mysql # not compatible
query I rowsort label-4712
SELECT + 10 * CAST ( - 78 AS INTEGER ) + - + COUNT ( * ) + 39 + + 53
----
-689

onlyif mysql # aggregate syntax: 
query I rowsort label-4713
SELECT DISTINCT - 40 + - ( 88 ) + - MIN( + 50 ) * - + 62
----
2972

skipif mysql # not compatible
query I rowsort label-4713
SELECT DISTINCT - 40 + - ( 88 ) + - MIN ( + 50 ) * - + 62
----
2972

query II rowsort
SELECT ALL ( + + 70 ) AS col1, ( - 70 ) AS col0
----
70
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-4715
SELECT + ( + COUNT( * ) ) + + + 6 + - - 37 AS col2
----
44

skipif mysql # not compatible
query I rowsort label-4715
SELECT + ( + COUNT ( * ) ) + + + 6 + - - 37 AS col2
----
44

onlyif mysql # aggregate syntax: 
query II rowsort label-4716
SELECT ALL + - 27 + COUNT( * ) AS col1, 39 * - 64
----
-26
-2496

skipif mysql # not compatible
query II rowsort label-4716
SELECT ALL + - 27 + COUNT ( * ) AS col1, 39 * - 64
----
-26
-2496

onlyif mysql # aggregate syntax: 
query I rowsort label-4717
SELECT 22 + 47 - COUNT( * ) + - + 56
----
12

skipif mysql # not compatible
query I rowsort label-4717
SELECT 22 + 47 - COUNT ( * ) + - + 56
----
12

query I rowsort
SELECT ALL - 27 + - 83
----
-110

onlyif mysql # aggregate syntax: 
query II rowsort label-4719
SELECT ALL + - MAX( ALL - 11 ) + - 28 + 36, - 9 + + 83 + - ( - NULLIF ( + + 24, + - NULLIF ( + - MIN( + - ( 66 ) ), - 65 + + ( - - 51 ) ) ) ) * ( + 68 ) AS col0
----
19
1706

skipif mysql # not compatible
query II rowsort label-4719
SELECT ALL + - MAX ( ALL - 11 ) + - 28 + 36, - 9 + + 83 + - ( - NULLIF ( + + 24, + - NULLIF ( + - MIN ( + - ( 66 ) ), - 65 + + ( - - 51 ) ) ) ) * ( + 68 ) AS col0
----
19
1706

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4720
SELECT 99 + + 92 AS col1, CAST( COUNT( * ) AS SIGNED )
----
191
1

skipif mysql # not compatible
query II rowsort label-4720
SELECT 99 + + 92 AS col1, CAST ( COUNT ( * ) AS INTEGER )
----
191
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4721
SELECT ALL - + NULLIF ( - 52, + MAX( ALL ( - 85 ) ) ) + + 67
----
119

skipif mysql # not compatible
query I rowsort label-4721
SELECT ALL - + NULLIF ( - 52, + MAX ( ALL ( - 85 ) ) ) + + 67
----
119

onlyif mysql # aggregate syntax: 
query I rowsort label-4722
SELECT - SUM( - 99 ) AS col1
----
99

skipif mysql # not compatible
query I rowsort label-4722
SELECT - SUM ( - 99 ) AS col1
----
99

onlyif mysql # aggregate syntax: 
query II rowsort label-4723
SELECT ALL 97 + - 8 - - MAX( 97 ) * - 42 AS col2, 70 AS col0
----
-3985
70

skipif mysql # not compatible
query II rowsort label-4723
SELECT ALL 97 + - 8 - - MAX ( 97 ) * - 42 AS col2, 70 AS col0
----
-3985
70

onlyif mysql # aggregate syntax: 
query I rowsort label-4724
SELECT DISTINCT + + COUNT( * ) + + 18 + 26 * + 94
----
2463

skipif mysql # not compatible
query I rowsort label-4724
SELECT DISTINCT + + COUNT ( * ) + + 18 + 26 * + 94
----
2463

query I rowsort
SELECT DISTINCT - ( - 2 ) + + 5 AS col0
----
7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4726
SELECT DISTINCT 29 + + COUNT( * ) col1, - CAST( NULL AS SIGNED ) * 28 * 95
----
30
NULL

skipif mysql # not compatible
query II rowsort label-4726
SELECT DISTINCT 29 + + COUNT ( * ) col1, - CAST ( NULL AS INTEGER ) * 28 * 95
----
30
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4727
SELECT DISTINCT - 24 * + SUM( - - 83 ) * + + ( + - 37 ) * 49
----
3611496

skipif mysql # not compatible
query I rowsort label-4727
SELECT DISTINCT - 24 * + SUM ( - - 83 ) * + + ( + - 37 ) * 49
----
3611496

query I rowsort
SELECT 57 - - 86 col0
----
143

onlyif mysql # DIV for integer division: 
query I rowsort label-4729
SELECT DISTINCT 87 DIV + + 27 col1
----
3

skipif mysql # not compatible
query I rowsort label-4729
SELECT DISTINCT 87 / + + 27 col1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4730
SELECT COALESCE ( + - 1, - - 88 ) + 41 + COUNT( * ) + - + MIN( ALL 97 )
----
-56

skipif mysql # not compatible
query I rowsort label-4730
SELECT COALESCE ( + - 1, - - 88 ) + 41 + COUNT ( * ) + - + MIN ( ALL 97 )
----
-56

onlyif mysql # DIV for integer division: 
query I rowsort label-4731
SELECT ALL 5 DIV - - 17 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4731
SELECT ALL 5 / - - 17 AS col0
----
0

query I rowsort
SELECT ALL 81 - - 9
----
90

onlyif mysql # DIV for integer division: 
query I rowsort label-4733
SELECT DISTINCT 51 DIV - 50 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-4733
SELECT DISTINCT 51 / - 50 AS col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4734
SELECT DISTINCT - COUNT( + 65 )
----
-1

skipif mysql # not compatible
query I rowsort label-4734
SELECT DISTINCT - COUNT ( + 65 )
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-4735
SELECT ALL - 88 AS col1, MIN( + + 20 )
----
-88
20

skipif mysql # not compatible
query II rowsort label-4735
SELECT ALL - 88 AS col1, MIN ( + + 20 )
----
-88
20

query I rowsort
SELECT 24 + + 83
----
107

query I rowsort
SELECT DISTINCT 80 * - 61
----
-4880

query II rowsort
SELECT 7 * - 23 * - 11 AS col2, - 66 * - - 32 + - 90
----
1771
-2202

query I rowsort
SELECT 65 + + 16 col2
----
81

onlyif mysql # aggregate syntax: 
query II rowsort label-4740
SELECT DISTINCT - 40 AS col1, 72 + COUNT( * ) + 77 + + COUNT( * ) AS col2
----
-40
151

skipif mysql # not compatible
query II rowsort label-4740
SELECT DISTINCT - 40 AS col1, 72 + COUNT ( * ) + 77 + + COUNT ( * ) AS col2
----
-40
151

query I rowsort
SELECT ALL - + 91 + + 76
----
-15

query I rowsort
SELECT ALL + 48 + 15
----
63

query I rowsort
SELECT DISTINCT - 89 + + 75
----
-14

query I rowsort
SELECT ALL + - 79 + - + 77
----
-156

onlyif mysql # aggregate syntax: 
query I rowsort label-4745
SELECT ALL + 56 + + COUNT( * ) AS col0
----
57

skipif mysql # not compatible
query I rowsort label-4745
SELECT ALL + 56 + + COUNT ( * ) AS col0
----
57

query I rowsort
SELECT ALL 41 * - 85
----
-3485

query I rowsort
SELECT DISTINCT + + 49 + 2
----
51

query II rowsort
SELECT 14 * - AVG ( DISTINCT - + 74 ) * + 27 + - 40 + 68 - - 92 / + CASE + 22 WHEN + 56 THEN + 63 ELSE NULL END AS col0, 24 - - + 16 * + - 70 * + 48
----
NULL
-53736

onlyif mysql # aggregate syntax: 
query I rowsort label-4749
SELECT ALL + COUNT( DISTINCT + 60 ) + 84
----
85

skipif mysql # not compatible
query I rowsort label-4749
SELECT ALL + COUNT ( DISTINCT + 60 ) + 84
----
85

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4750
SELECT - MIN( + COALESCE ( + - 69, - 83 DIV - + 24 ) )
----
69

skipif mysql # not compatible
query I rowsort label-4750
SELECT - MIN ( + COALESCE ( + - 69, - 83 / - + 24 ) )
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-4751
SELECT + COUNT( * ) * + 85 * - + 76
----
-6460

skipif mysql # not compatible
query I rowsort label-4751
SELECT + COUNT ( * ) * + 85 * - + 76
----
-6460

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4752
SELECT ( - - 60 ) - - 40 + 12 + 4 * + CAST( - COALESCE ( + 85, + COUNT( ALL - 74 ), - 44 ) AS SIGNED ) DIV 21
----
96

skipif mysql # not compatible
query I rowsort label-4752
SELECT ( - - 60 ) - - 40 + 12 + 4 * + CAST ( - COALESCE ( + 85, + COUNT ( ALL - 74 ), - 44 ) AS INTEGER ) / 21
----
96

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4753
SELECT SUM( 70 ) DIV + ( - 75 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4753
SELECT SUM ( 70 ) / + ( - 75 ) AS col0
----
0

query II rowsort
SELECT ALL 78 AS col1, 26
----
78
26

onlyif mysql # aggregate syntax: 
query I rowsort label-4755
SELECT + SUM( - 29 ) * + 36 AS col2
----
-1044

skipif mysql # not compatible
query I rowsort label-4755
SELECT + SUM ( - 29 ) * + 36 AS col2
----
-1044

onlyif mysql # aggregate syntax: 
query I rowsort label-4756
SELECT ALL - MAX( DISTINCT 26 ) - 70 AS col0
----
-96

skipif mysql # not compatible
query I rowsort label-4756
SELECT ALL - MAX ( DISTINCT 26 ) - 70 AS col0
----
-96

query I rowsort
SELECT 73 + 73 + - 44 + - 19
----
83

query II rowsort
SELECT 37 AS col0, 23 AS col1
----
37
23

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4759
SELECT ALL MAX( DISTINCT + ( + COALESCE ( + 84, 97 - + CAST( - + 73 AS SIGNED ) ) ) ) AS col1
----
84

skipif mysql # not compatible
query I rowsort label-4759
SELECT ALL MAX ( DISTINCT + ( + COALESCE ( + 84, 97 - + CAST ( - + 73 AS INTEGER ) ) ) ) AS col1
----
84

onlyif mysql # aggregate syntax: 
query II rowsort label-4760
SELECT 7 AS col1, - 89 + + + MIN( DISTINCT + 4 ) AS col2
----
7
-85

skipif mysql # not compatible
query II rowsort label-4760
SELECT 7 AS col1, - 89 + + + MIN ( DISTINCT + 4 ) AS col2
----
7
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-4761
SELECT 67 + SUM( NULLIF ( - 97, - 79 ) )
----
-30

skipif mysql # not compatible
query I rowsort label-4761
SELECT 67 + SUM ( NULLIF ( - 97, - 79 ) )
----
-30

query I rowsort
SELECT 2 - 17 AS col0
----
-15

query II rowsort
SELECT 8 + + + 8 col2, CASE 75 WHEN + 6 * - 73 THEN NULL ELSE + 65 + ( - - 82 ) END AS col1
----
16
147

onlyif mysql # DIV for integer division: 
query I rowsort label-4764
SELECT DISTINCT - 2 * + - 16 DIV 46
----
0

skipif mysql # not compatible
query I rowsort label-4764
SELECT DISTINCT - 2 * + - 16 / 46
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4765
SELECT - 97 AS col2, COALESCE ( + - 59, + - COUNT( * ) * - 99 + + + NULLIF ( - - 15, + AVG ( + 47 ) ) + - + 0 - + + 90, 14 * + - CAST( COALESCE ( - 29, 17 ) AS SIGNED ) )
----
-97
-59

skipif mysql # not compatible
query II rowsort label-4765
SELECT - 97 AS col2, COALESCE ( + - 59, + - COUNT ( * ) * - 99 + + + NULLIF ( - - 15, + AVG ( + 47 ) ) + - + 0 - + + 90, 14 * + - CAST ( COALESCE ( - 29, 17 ) AS INTEGER ) )
----
-97
-59

query I rowsort
SELECT - CASE - - 31 WHEN - + 44 THEN + - 96 WHEN - + 14 THEN + 86 - - 78 WHEN 29 * 16 THEN NULL END * - 63 * + 17 / 2 AS col0
----
NULL

query II rowsort
SELECT DISTINCT 5 AS col2, + 1 col0
----
5
1

onlyif mysql # DIV for integer division: 
query I rowsort label-4768
SELECT - 63 + + 12 + + 0 DIV - + 4 AS col1
----
-51

skipif mysql # not compatible
query I rowsort label-4768
SELECT - 63 + + 12 + + 0 / - + 4 AS col1
----
-51

onlyif mysql # aggregate syntax: 
query II rowsort label-4769
SELECT ALL COUNT( * ), 38 AS col1
----
1
38

skipif mysql # not compatible
query II rowsort label-4769
SELECT ALL COUNT ( * ), 38 AS col1
----
1
38

query I rowsort
SELECT ALL + 85 * 18 * - 85
----
-130050

query I rowsort
SELECT + 57 * - 70 AS col2
----
-3990

onlyif mysql # aggregate syntax: 
query I rowsort label-4772
SELECT CASE + NULLIF ( + 34, - 36 + MAX( + 67 ) + - + 36 ) WHEN - SUM( 78 ) + NULLIF ( + 0, - + 33 * - 97 * 38 ) THEN + 87 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4772
SELECT CASE + NULLIF ( + 34, - 36 + MAX ( + 67 ) + - + 36 ) WHEN - SUM ( 78 ) + NULLIF ( + 0, - + 33 * - 97 * 38 ) THEN + 87 END AS col1
----
NULL

query I rowsort
SELECT NULLIF ( + 96, 97 ) AS col2
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-4774
SELECT CASE + 0 WHEN + - 94 * - - COALESCE ( + 14, 36 * - + 3, + - COALESCE ( + 16, - + ( SUM( ALL + + 3 ) ), - 8 ) ) + - - 29 + - SUM( + ( 60 ) ) THEN NULL WHEN 17 THEN + COUNT( * ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4774
SELECT CASE + 0 WHEN + - 94 * - - COALESCE ( + 14, 36 * - + 3, + - COALESCE ( + 16, - + ( SUM ( ALL + + 3 ) ), - 8 ) ) + - - 29 + - SUM ( + ( 60 ) ) THEN NULL WHEN 17 THEN + COUNT ( * ) END AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4775
SELECT - 21 * + 26 * - ( - + 47 ) AS col0, 13 * + + CAST( NULL AS SIGNED )
----
-25662
NULL

skipif mysql # not compatible
query II rowsort label-4775
SELECT - 21 * + 26 * - ( - + 47 ) AS col0, 13 * + + CAST ( NULL AS INTEGER )
----
-25662
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query II rowsort label-4776
SELECT ALL - COUNT( * ) * COUNT( * ) + 78 DIV - - 76 AS col0, + COUNT( 44 ) * + CAST( NULL AS DECIMAL ) AS col2
----
0
NULL

skipif mysql # not compatible
query II rowsort label-4776
SELECT ALL - COUNT ( * ) * COUNT ( * ) + 78 / - - 76 AS col0, + COUNT ( 44 ) * + CAST ( NULL AS REAL ) AS col2
----
0
NULL

query I rowsort
SELECT + COALESCE ( - 33, - 49, - ( + 92 ) ) AS col1
----
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-4778
SELECT DISTINCT + MIN( DISTINCT 6 ) * + 67 + - + ( - 0 ) + + 3 + + 32
----
437

skipif mysql # not compatible
query I rowsort label-4778
SELECT DISTINCT + MIN ( DISTINCT 6 ) * + 67 + - + ( - 0 ) + + 3 + + 32
----
437

onlyif mysql # aggregate syntax: 
query I rowsort label-4779
SELECT CASE 20 WHEN - 81 + - + 88 + - 93 + + - 14 THEN + + MAX( 23 ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4779
SELECT CASE 20 WHEN - 81 + - + 88 + - 93 + + - 14 THEN + + MAX ( 23 ) END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4780
SELECT ALL + + 42 * - COALESCE ( + + 79, - 9 - - COUNT( * ) ) + - ( + 4 ) * COUNT( * ) AS col2
----
-3322

skipif mysql # not compatible
query I rowsort label-4780
SELECT ALL + + 42 * - COALESCE ( + + 79, - 9 - - COUNT ( * ) ) + - ( + 4 ) * COUNT ( * ) AS col2
----
-3322

query I rowsort
SELECT + 33 * + + 27
----
891

query II rowsort
SELECT + 38 AS col2, 85 AS col2
----
38
85

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4783
SELECT ALL - NULLIF ( - - 77, - 90 - - 87 / - + COUNT( + 78 ) * + COALESCE ( + CAST( NULL AS SIGNED ), + 86 ) / 42 * COUNT( * ) * 99 * - + 24 ) * 25 + 43 - + 80 col1
----
-1962

skipif mysql # not compatible
query I rowsort label-4783
SELECT ALL - NULLIF ( - - 77, - 90 - - 87 / - + COUNT ( + 78 ) * + COALESCE ( + CAST ( NULL AS INTEGER ), + 86 ) / 42 * COUNT ( * ) * 99 * - + 24 ) * 25 + 43 - + 80 col1
----
-1962

onlyif mysql # aggregate syntax: 
query II rowsort label-4784
SELECT - + MIN( ALL + + 72 ) + - - 66 + 33 + + - 60 * + 81 AS col0, + 29 * + - 51 - 74 AS col2
----
-4833
-1553

skipif mysql # not compatible
query II rowsort label-4784
SELECT - + MIN ( ALL + + 72 ) + - - 66 + 33 + + - 60 * + 81 AS col0, + 29 * + - 51 - 74 AS col2
----
-4833
-1553

onlyif mysql # aggregate syntax: 
query I rowsort label-4785
SELECT ALL NULLIF ( + COUNT( * ), 44 * + COUNT( + 50 ) ) * - 1 - COUNT( * )
----
-2

skipif mysql # not compatible
query I rowsort label-4785
SELECT ALL NULLIF ( + COUNT ( * ), 44 * + COUNT ( + 50 ) ) * - 1 - COUNT ( * )
----
-2

onlyif mysql # aggregate syntax: 
query II rowsort label-4786
SELECT ALL + 80, COUNT( * ) * 47 AS col1
----
80
47

skipif mysql # not compatible
query II rowsort label-4786
SELECT ALL + 80, COUNT ( * ) * 47 AS col1
----
80
47

onlyif mysql # aggregate syntax: 
query I rowsort label-4787
SELECT ALL 59 * ( - 99 ) + + MAX( + + 4 ) AS col2
----
-5837

skipif mysql # not compatible
query I rowsort label-4787
SELECT ALL 59 * ( - 99 ) + + MAX ( + + 4 ) AS col2
----
-5837

query II rowsort
SELECT + 94 AS col1, 0 AS col1
----
94
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4789
SELECT + ( - + COUNT( * ) ) + 37 AS col0
----
36

skipif mysql # not compatible
query I rowsort label-4789
SELECT + ( - + COUNT ( * ) ) + 37 AS col0
----
36

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4790
SELECT ALL 19 - - CAST( COUNT( * ) AS SIGNED ) + + COUNT( * ) * - 86 * - + 12
----
1052

skipif mysql # not compatible
query I rowsort label-4790
SELECT ALL 19 - - CAST ( COUNT ( * ) AS INTEGER ) + + COUNT ( * ) * - 86 * - + 12
----
1052

onlyif mysql # aggregate syntax: 
query II rowsort label-4791
SELECT ALL + + 72 * - 26 AS col0, + COUNT( * )
----
-1872
1

skipif mysql # not compatible
query II rowsort label-4791
SELECT ALL + + 72 * - 26 AS col0, + COUNT ( * )
----
-1872
1

onlyif mysql # DIV for integer division: 
query II rowsort label-4792
SELECT ALL 7 AS col2, 74 + NULLIF ( + 13, + + 25 ) DIV 90 AS col0
----
7
74

skipif mysql # not compatible
query II rowsort label-4792
SELECT ALL 7 AS col2, 74 + NULLIF ( + 13, + + 25 ) / 90 AS col0
----
7
74

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4793
SELECT - - CASE - CAST( NULL AS SIGNED ) WHEN + - COUNT( * ) * 16 THEN - 2 WHEN 59 THEN NULL ELSE - 89 END
----
-89

skipif mysql # not compatible
query I rowsort label-4793
SELECT - - CASE - CAST ( NULL AS INTEGER ) WHEN + - COUNT ( * ) * 16 THEN - 2 WHEN 59 THEN NULL ELSE - 89 END
----
-89

query I rowsort
SELECT ALL + 79 * + 12
----
948

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4795
SELECT + ( 83 ) * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4795
SELECT + ( 83 ) * + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT - 41 * 22 AS col1
----
-902

query I rowsort
SELECT DISTINCT CASE - AVG ( ALL - 98 ) WHEN + COALESCE ( + 5, 72, + 79 * + 31 ) THEN + 87 + - 94 - + 88 WHEN + - 12 THEN NULL ELSE - - 56 * 95 + 48 END
----
5368

onlyif mysql # DIV for integer division: 
query I rowsort label-4798
SELECT DISTINCT - 35 DIV + + NULLIF ( - 18, + 59 )
----
1

skipif mysql # not compatible
query I rowsort label-4798
SELECT DISTINCT - 35 / + + NULLIF ( - 18, + 59 )
----
1

query II rowsort
SELECT - 40 * - 46 AS col1, 76
----
1840
76

onlyif mysql # CAST syntax: DECIMAL type: DIV for integer division: 
query I rowsort label-4800
SELECT ALL - NULLIF ( 41, - + 11 * COALESCE ( + + 43, - - 16 + + 50 ) + + 15 DIV + - ( + CAST( NULL AS DECIMAL ) ) ) DIV 10
----
-4

skipif mysql # not compatible
query I rowsort label-4800
SELECT ALL - NULLIF ( 41, - + 11 * COALESCE ( + + 43, - - 16 + + 50 ) + + 15 / + - ( + CAST ( NULL AS REAL ) ) ) / 10
----
-4

onlyif mysql # DIV for integer division: 
query I rowsort label-4801
SELECT - 57 DIV + + 74
----
0

skipif mysql # not compatible
query I rowsort label-4801
SELECT - 57 / + + 74
----
0

query I rowsort
SELECT - ( - NULLIF ( + 57, 22 ) ) + 46 AS col0
----
103

query I rowsort
SELECT - 51 + + 76
----
25

query II rowsort
SELECT DISTINCT ( 79 ) col1, - 95 col0
----
79
-95

query I rowsort
SELECT - 27 + + + 96
----
69

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4806
SELECT ALL + CAST( - 41 AS SIGNED ) * + SUM( ALL + 3 )
----
-123

skipif mysql # not compatible
query I rowsort label-4806
SELECT ALL + CAST ( - 41 AS INTEGER ) * + SUM ( ALL + 3 )
----
-123

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4807
SELECT + COUNT( * ) * - CASE - CAST( - - 73 AS DECIMAL ) WHEN + + 26 THEN + + 84 - + + 34 END
----
NULL

skipif mysql # not compatible
query I rowsort label-4807
SELECT + COUNT ( * ) * - CASE - CAST ( - - 73 AS REAL ) WHEN + + 26 THEN + + 84 - + + 34 END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4808
SELECT - 35 * + CAST( NULL AS SIGNED ) * - 98 + COUNT( * ) - - - 44 * + MAX( - 62 ) * - 12 + COUNT( ALL - ( - 87 ) ) + 40 + 24 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4808
SELECT - 35 * + CAST ( NULL AS INTEGER ) * - 98 + COUNT ( * ) - - - 44 * + MAX ( - 62 ) * - 12 + COUNT ( ALL - ( - 87 ) ) + 40 + 24 AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4809
SELECT ALL + 82 DIV - 90 * 6 + - - 72 AS col0
----
72

skipif mysql # not compatible
query I rowsort label-4809
SELECT ALL + 82 / - 90 * 6 + - - 72 AS col0
----
72

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4810
SELECT COUNT( * ) * 1 + + 63 AS col1, COALESCE ( - 85, - 27 * + 91 + + + 78, - 12 - 73 + + + 98 DIV 58, - 67 * + 49 ) AS col2
----
64
-85

skipif mysql # not compatible
query II rowsort label-4810
SELECT COUNT ( * ) * 1 + + 63 AS col1, COALESCE ( - 85, - 27 * + 91 + + + 78, - 12 - 73 + + + 98 / 58, - 67 * + 49 ) AS col2
----
64
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-4811
SELECT - COUNT( + 15 ) - + 17
----
-18

skipif mysql # not compatible
query I rowsort label-4811
SELECT - COUNT ( + 15 ) - + 17
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-4812
SELECT ALL + MAX( + + 8 ) * + - 99 * 31 AS col0
----
-24552

skipif mysql # not compatible
query I rowsort label-4812
SELECT ALL + MAX ( + + 8 ) * + - 99 * 31 AS col0
----
-24552

onlyif mysql # aggregate syntax: 
query I rowsort label-4813
SELECT - COUNT( COALESCE ( - - 87, + ( - 95 ) ) ) + - COUNT( * ) + 43 + + ( 10 ) AS col1
----
51

skipif mysql # not compatible
query I rowsort label-4813
SELECT - COUNT ( COALESCE ( - - 87, + ( - 95 ) ) ) + - COUNT ( * ) + 43 + + ( 10 ) AS col1
----
51

query I rowsort
SELECT ALL + - ( + 3 )
----
-3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4815
SELECT DISTINCT - COUNT( * ) DIV + + 77 + + 71 + COUNT( + + 50 )
----
72

skipif mysql # not compatible
query I rowsort label-4815
SELECT DISTINCT - COUNT ( * ) / + + 77 + + 71 + COUNT ( + + 50 )
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-4816
SELECT - 75 * - - 21 + - COUNT( * ) col1
----
-1576

skipif mysql # not compatible
query I rowsort label-4816
SELECT - 75 * - - 21 + - COUNT ( * ) col1
----
-1576

query I rowsort
SELECT + 16 * + 90 + - - 51 AS col0
----
1491

onlyif mysql # aggregate syntax: 
query I rowsort label-4818
SELECT + + 40 * CASE 69 WHEN 47 THEN NULL WHEN - ( - MIN( - 93 ) ) THEN - - 46 + + 25 + - 33 + SUM( + 58 ) + + - COUNT( * ) * + 40 + - - ( 97 ) - - 72 / 45 END + - 56
----
NULL

skipif mysql # not compatible
query I rowsort label-4818
SELECT + + 40 * CASE 69 WHEN 47 THEN NULL WHEN - ( - MIN ( - 93 ) ) THEN - - 46 + + 25 + - 33 + SUM ( + 58 ) + + - COUNT ( * ) * + 40 + - - ( 97 ) - - 72 / 45 END + - 56
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4819
SELECT - 20 DIV - 12 AS col0, - COUNT( * ) AS col1
----
1
-1

skipif mysql # not compatible
query II rowsort label-4819
SELECT - 20 / - 12 AS col0, - COUNT ( * ) AS col1
----
1
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4820
SELECT ALL + 88 * 78 - + MIN( ALL 24 ) AS col2
----
6840

skipif mysql # not compatible
query I rowsort label-4820
SELECT ALL + 88 * 78 - + MIN ( ALL 24 ) AS col2
----
6840

query I rowsort
SELECT ALL + 90 * + 3 - 73
----
197

onlyif mysql # DIV for integer division: 
query II rowsort label-4822
SELECT + - 7 DIV 32, 98 AS col0
----
0
98

skipif mysql # not compatible
query II rowsort label-4822
SELECT + - 7 / 32, 98 AS col0
----
0
98

onlyif mysql # aggregate syntax: 
query I rowsort label-4823
SELECT ALL + 44 * - + SUM( DISTINCT + 22 ) + - 8 * - ( - - 26 )
----
-760

skipif mysql # not compatible
query I rowsort label-4823
SELECT ALL + 44 * - + SUM ( DISTINCT + 22 ) + - 8 * - ( - - 26 )
----
-760

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4824
SELECT CAST( NULL AS SIGNED ) * 80
----
NULL

skipif mysql # not compatible
query I rowsort label-4824
SELECT CAST ( NULL AS INTEGER ) * 80
----
NULL

query I rowsort
SELECT DISTINCT 35 * - 83
----
-2905

query II rowsort
SELECT ALL 39, - 27 * NULLIF ( 30, 61 + - 40 ) * + ( - 93 ) AS col1
----
39
75330

query II rowsort
SELECT ALL 92 AS col0, 65 * 30 col2
----
92
1950

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4828
SELECT CAST( NULL AS SIGNED ) - - ( 77 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4828
SELECT CAST ( NULL AS INTEGER ) - - ( 77 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4829
SELECT ALL ( - ( + COUNT( * ) ) ) * COUNT( * ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-4829
SELECT ALL ( - ( + COUNT ( * ) ) ) * COUNT ( * ) AS col1
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4830
SELECT CAST( NULL AS SIGNED ) * - 79 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4830
SELECT CAST ( NULL AS INTEGER ) * - 79 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4831
SELECT DISTINCT SUM( DISTINCT + 34 ) + - - COUNT( * ) * + ( - 9 )
----
25

skipif mysql # not compatible
query I rowsort label-4831
SELECT DISTINCT SUM ( DISTINCT + 34 ) + - - COUNT ( * ) * + ( - 9 )
----
25

query II rowsort
SELECT ALL 49 AS col2, + 82 + - 53
----
49
29

query I rowsort
SELECT DISTINCT - 30 * 60
----
-1800

onlyif mysql # aggregate syntax: 
query I rowsort label-4834
SELECT ALL 22 + + + 64 * + 98 + + 58 + NULLIF ( 2, COUNT( * ) ) * - 49
----
6254

skipif mysql # not compatible
query I rowsort label-4834
SELECT ALL 22 + + + 64 * + 98 + + 58 + NULLIF ( 2, COUNT ( * ) ) * - 49
----
6254

query I rowsort
SELECT 91 + - - 77
----
168

query I rowsort
SELECT 98 * 81
----
7938

query I rowsort
SELECT 36 - + - 30 AS col0
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-4838
SELECT DISTINCT 75 + NULLIF ( 2, - COUNT( * ) + - 48 + - + 90 + + + 75 * + COUNT( * ) + + 48 * 89 * + + 24 * + + 83 ) + - 38 + - - 47 + + + 61
----
147

skipif mysql # not compatible
query I rowsort label-4838
SELECT DISTINCT 75 + NULLIF ( 2, - COUNT ( * ) + - 48 + - + 90 + + + 75 * + COUNT ( * ) + + 48 * 89 * + + 24 * + + 83 ) + - 38 + - - 47 + + + 61
----
147

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4839
SELECT 46 * + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4839
SELECT 46 * + CAST ( NULL AS INTEGER ) AS col1
----
NULL

query II rowsort
SELECT DISTINCT 66 AS col2, 86
----
66
86

onlyif mysql # aggregate syntax: 
query I rowsort label-4841
SELECT ALL CASE 71 WHEN + COUNT( * ) * - + 20 + 20 * + 85 + 52 THEN + - 70 * + - ( - + 64 ) - COUNT( * ) * + 29 * + 34 ELSE NULL END * + - MAX( ALL - + 85 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4841
SELECT ALL CASE 71 WHEN + COUNT ( * ) * - + 20 + 20 * + 85 + 52 THEN + - 70 * + - ( - + 64 ) - COUNT ( * ) * + 29 * + 34 ELSE NULL END * + - MAX ( ALL - + 85 ) AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4842
SELECT 33 * - CASE - COALESCE ( ( 60 ), - 70 ) WHEN + - 44 * - CASE + COUNT( * ) WHEN + NULLIF ( + ( COALESCE ( COUNT( * ), + - MAX( DISTINCT 8 ) * 97 + + COUNT( * ) * - 75 * - 88 + + 84 - CASE - - 11 WHEN + COUNT( DISTINCT + - 19 ) + + - 19 THEN 37 / - 9 + + 65 + - 88 + - 1 + CAST( - - COALESCE ( + - ( - - 30 ), + 66 - + 40 * - 61 / 2, - 21 ) AS SIGNED ) END + - 40 * ( - ( + COUNT( * ) ) ) * - CAST( - 25 * ( 65 ) + - COUNT( * ) * + 1 AS SIGNED ), 10 * COUNT( DISTINCT ( 72 ) ) ) ), 57 ) * + 54 THEN - 64 ELSE - 82 END THEN - 87 * + 52 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-4842
SELECT 33 * - CASE - COALESCE ( ( 60 ), - 70 ) WHEN + - 44 * - CASE + COUNT ( * ) WHEN + NULLIF ( + ( COALESCE ( COUNT ( * ), + - MAX ( DISTINCT 8 ) * 97 + + COUNT ( * ) * - 75 * - 88 + + 84 - CASE - - 11 WHEN + COUNT ( DISTINCT + - 19 ) + + - 19 THEN 37 / - 9 + + 65 + - 88 + - 1 + CAST ( - - COALESCE ( + - ( - - 30 ), + 66 - + 40 * - 61 / 2, - 21 ) AS INTEGER ) END + - 40 * ( - ( + COUNT ( * ) ) ) * - CAST ( - 25 * ( 65 ) + - COUNT ( * ) * + 1 AS INTEGER ), 10 * COUNT ( DISTINCT ( 72 ) ) ) ), 57 ) * + 54 THEN - 64 ELSE - 82 END THEN - 87 * + 52 ELSE NULL END
----
NULL

query I rowsort
SELECT 36 + 80 AS col1
----
116

onlyif mysql # DIV for integer division: 
query I rowsort label-4844
SELECT ALL - 86 DIV + 10 AS col0
----
-8

skipif mysql # not compatible
query I rowsort label-4844
SELECT ALL - 86 / + 10 AS col0
----
-8

query I rowsort
SELECT 84 + + 48 AS col1
----
132

onlyif mysql # aggregate syntax: 
query I rowsort label-4846
SELECT 43 * + SUM( + 48 ) * 75 + 89
----
154889

skipif mysql # not compatible
query I rowsort label-4846
SELECT 43 * + SUM ( + 48 ) * 75 + 89
----
154889

query II rowsort
SELECT - 34 AS col2, - 32 + - 61 * - 6 AS col2
----
-34
334

onlyif mysql # aggregate syntax: 
query I rowsort label-4848
SELECT ALL - 58 - NULLIF ( MIN( DISTINCT 81 ), 38 + - ( + 34 ) + + 97 + + + COUNT( * ) )
----
-139

skipif mysql # not compatible
query I rowsort label-4848
SELECT ALL - 58 - NULLIF ( MIN ( DISTINCT 81 ), 38 + - ( + 34 ) + + 97 + + + COUNT ( * ) )
----
-139

query II rowsort
SELECT - 84, 90 + - + 20 AS col2
----
-84
70

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4850
SELECT - ( - 7 ) * - 55 - - - 66 * + + MAX( ALL + - COALESCE ( + 33, - + 72 DIV + 29 ) ) AS col0
----
1793

skipif mysql # not compatible
query I rowsort label-4850
SELECT - ( - 7 ) * - 55 - - - 66 * + + MAX ( ALL + - COALESCE ( + 33, - + 72 / + 29 ) ) AS col0
----
1793

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4851
SELECT + - 65 DIV - NULLIF ( - 47, - - CAST( NULL AS SIGNED ) ) - 14
----
-15

skipif mysql # not compatible
query I rowsort label-4851
SELECT + - 65 / - NULLIF ( - 47, - - CAST ( NULL AS INTEGER ) ) - 14
----
-15

query I rowsort
SELECT - NULLIF ( + 82, 54 ) * - 88 col2
----
7216

onlyif mysql # aggregate syntax: 
query I rowsort label-4853
SELECT ALL - - COUNT( * ) * + + 95 * + + SUM( - ( + + 46 ) )
----
-4370

skipif mysql # not compatible
query I rowsort label-4853
SELECT ALL - - COUNT ( * ) * + + 95 * + + SUM ( - ( + + 46 ) )
----
-4370

query I rowsort
SELECT + 17 + - 44
----
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-4855
SELECT DISTINCT - + 63 * COUNT( + + 18 )
----
-63

skipif mysql # not compatible
query I rowsort label-4855
SELECT DISTINCT - + 63 * COUNT ( + + 18 )
----
-63

query I rowsort
SELECT ALL - + ( 80 )
----
-80

query II rowsort
SELECT + 91 AS col2, - 53 * + 18
----
91
-954

query I rowsort
SELECT - 84 + - 79
----
-163

query I rowsort
SELECT 62 * + 1 + - 96 - - ( + 57 ) + - - NULLIF ( 59, - + ( - - ( - 40 ) ) ) + + 69
----
151

query I rowsort
SELECT - 97 + 57 AS col1
----
-40

query I rowsort
SELECT - ( + - 45 ) - - + 64
----
109

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4862
SELECT 18 * - 37 + - - 74 - - 12 + 70 + - CAST( + ( + 64 ) AS SIGNED ) AS col0, 83 AS col2
----
-574
83

skipif mysql # not compatible
query II rowsort label-4862
SELECT 18 * - 37 + - - 74 - - 12 + 70 + - CAST ( + ( + 64 ) AS INTEGER ) AS col0, 83 AS col2
----
-574
83

query I rowsort
SELECT - 81 - - - 13 AS col2
----
-94

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4864
SELECT + COUNT( DISTINCT 31 ) DIV + - 10 AS col0, 78 * NULLIF ( - 22, - 70 ) * CASE 79 WHEN + 96 THEN NULL WHEN - 36 THEN - COUNT( * ) + - 24 DIV + + 33 * - 57 ELSE - 36 END * - 58
----
0
-3583008

skipif mysql # not compatible
query II rowsort label-4864
SELECT + COUNT ( DISTINCT 31 ) / + - 10 AS col0, 78 * NULLIF ( - 22, - 70 ) * CASE 79 WHEN + 96 THEN NULL WHEN - 36 THEN - COUNT ( * ) + - 24 / + + 33 * - 57 ELSE - 36 END * - 58
----
0
-3583008

onlyif mysql # DIV for integer division: 
query I rowsort label-4865
SELECT DISTINCT + CASE 14 WHEN 14 THEN - 44 + + - 60 ELSE NULL END DIV - 43 AS col0
----
2

skipif mysql # not compatible
query I rowsort label-4865
SELECT DISTINCT + CASE 14 WHEN 14 THEN - 44 + + - 60 ELSE NULL END / - 43 AS col0
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-4866
SELECT + 17 * - 65 * + 52 * + 58 - COUNT( * ) * - + 43 - + 61 + COUNT( * )
----
-3332697

skipif mysql # not compatible
query I rowsort label-4866
SELECT + 17 * - 65 * + 52 * + 58 - COUNT ( * ) * - + 43 - + 61 + COUNT ( * )
----
-3332697

onlyif mysql # DIV for integer division: 
query I rowsort label-4867
SELECT ALL - 62 DIV 64
----
0

skipif mysql # not compatible
query I rowsort label-4867
SELECT ALL - 62 / 64
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4868
SELECT 2 + - + 20 * + COALESCE ( COUNT( DISTINCT - - 69 ), + NULLIF ( COALESCE ( 27, - - CAST( - 27 AS SIGNED ), + ( - NULLIF ( + + 44, - 75 ) ) ), - + 25 * - - 38 + COUNT( * ) * + + 32 ), - 76 ) + + + 70 * + COUNT( - 38 )
----
52

skipif mysql # not compatible
query I rowsort label-4868
SELECT 2 + - + 20 * + COALESCE ( COUNT ( DISTINCT - - 69 ), + NULLIF ( COALESCE ( 27, - - CAST ( - 27 AS INTEGER ), + ( - NULLIF ( + + 44, - 75 ) ) ), - + 25 * - - 38 + COUNT ( * ) * + + 32 ), - 76 ) + + + 70 * + COUNT ( - 38 )
----
52

onlyif mysql # DIV for integer division: 
query I rowsort label-4869
SELECT ALL 76 * 39 DIV + - 66
----
-44

skipif mysql # not compatible
query I rowsort label-4869
SELECT ALL 76 * 39 / + - 66
----
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-4870
SELECT DISTINCT - COUNT( * ) + - + ( 72 )
----
-73

skipif mysql # not compatible
query I rowsort label-4870
SELECT DISTINCT - COUNT ( * ) + - + ( 72 )
----
-73

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4871
SELECT 92 * ( 98 ) * CAST( NULL AS SIGNED ) * - COUNT( * ) - MAX( ALL + 7 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4871
SELECT 92 * ( 98 ) * CAST ( NULL AS INTEGER ) * - COUNT ( * ) - MAX ( ALL + 7 ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4872
SELECT ALL COUNT( * ) * - SUM( ALL - + 70 ) AS col1
----
70

skipif mysql # not compatible
query I rowsort label-4872
SELECT ALL COUNT ( * ) * - SUM ( ALL - + 70 ) AS col1
----
70

onlyif mysql # aggregate syntax: 
query II rowsort label-4873
SELECT 1 * 91 AS col0, COUNT( * ) + - + 64 AS col1
----
91
-63

skipif mysql # not compatible
query II rowsort label-4873
SELECT 1 * 91 AS col0, COUNT ( * ) + - + 64 AS col1
----
91
-63

query I rowsort
SELECT 37 + 13
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-4875
SELECT ALL 16 * - MIN( + + 67 ) AS col0
----
-1072

skipif mysql # not compatible
query I rowsort label-4875
SELECT ALL 16 * - MIN ( + + 67 ) AS col0
----
-1072

onlyif mysql # aggregate syntax: 
query I rowsort label-4876
SELECT DISTINCT 34 + - COUNT( + 55 ) - - 2 col2
----
35

skipif mysql # not compatible
query I rowsort label-4876
SELECT DISTINCT 34 + - COUNT ( + 55 ) - - 2 col2
----
35

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4877
SELECT ALL COALESCE ( + 11, COUNT( * ) DIV MIN( DISTINCT 79 ) ) + COUNT( * )
----
12

skipif mysql # not compatible
query I rowsort label-4877
SELECT ALL COALESCE ( + 11, COUNT ( * ) / MIN ( DISTINCT 79 ) ) + COUNT ( * )
----
12

query I rowsort
SELECT ALL 69 + + 17 + 13 col0
----
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4879
SELECT DISTINCT 4 + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4879
SELECT DISTINCT 4 + CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4880
SELECT DISTINCT 21 * COUNT( * ) AS col2
----
21

skipif mysql # not compatible
query I rowsort label-4880
SELECT DISTINCT 21 * COUNT ( * ) AS col2
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-4881
SELECT ALL 33 + + - 99 + COUNT( * )
----
-65

skipif mysql # not compatible
query I rowsort label-4881
SELECT ALL 33 + + - 99 + COUNT ( * )
----
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-4882
SELECT 23 + - COUNT( ALL + - 91 ) * + + COUNT( * ) AS col2
----
22

skipif mysql # not compatible
query I rowsort label-4882
SELECT 23 + - COUNT ( ALL + - 91 ) * + + COUNT ( * ) AS col2
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-4883
SELECT - SUM( 95 )
----
-95

skipif mysql # not compatible
query I rowsort label-4883
SELECT - SUM ( 95 )
----
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-4884
SELECT + COUNT( * ) + + 76 * 8 AS col0
----
609

skipif mysql # not compatible
query I rowsort label-4884
SELECT + COUNT ( * ) + + 76 * 8 AS col0
----
609

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4885
SELECT 58 * + CASE 40 WHEN - ( CAST( - 76 AS SIGNED ) ) + - 1 + - ( 46 ) / + 1 THEN - 81 END
----
NULL

skipif mysql # not compatible
query I rowsort label-4885
SELECT 58 * + CASE 40 WHEN - ( CAST ( - 76 AS INTEGER ) ) + - 1 + - ( 46 ) / + 1 THEN - 81 END
----
NULL

query I rowsort
SELECT ALL 96 * + 73 * - ( + 9 ) col1
----
-63072

query I rowsort
SELECT 88 + + 29
----
117

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4888
SELECT ALL + 12 * + 81 + + 7 + 55 DIV + CAST( + + 74 AS SIGNED ) + - 51
----
928

skipif mysql # not compatible
query I rowsort label-4888
SELECT ALL + 12 * + 81 + + 7 + 55 / + CAST ( + + 74 AS INTEGER ) + - 51
----
928

onlyif mysql # DIV for integer division: 
query I rowsort label-4889
SELECT 37 DIV + - 24 + 71 + + 63 + - + 70
----
63

skipif mysql # not compatible
query I rowsort label-4889
SELECT 37 / + - 24 + 71 + + 63 + - + 70
----
63

onlyif mysql # DIV for integer division: 
query I rowsort label-4890
SELECT DISTINCT - 85 DIV 84 DIV + + 74 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4890
SELECT DISTINCT - 85 / 84 / + + 74 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4891
SELECT - + COUNT( * ) * 64 + + COUNT( DISTINCT + 30 ) + + + ( - 10 )
----
-73

skipif mysql # not compatible
query I rowsort label-4891
SELECT - + COUNT ( * ) * 64 + + COUNT ( DISTINCT + 30 ) + + + ( - 10 )
----
-73

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4892
SELECT - COUNT( * ) * - 62 DIV - - 47 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-4892
SELECT - COUNT ( * ) * - 62 / - - 47 AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4893
SELECT ALL + NULLIF ( 78, - + 40 + - MIN( ALL + + 48 ) * - NULLIF ( - + COUNT( * ), + 53 - - - COUNT( * ) * 71 + 62 ) * - 93 + - 15 ) * - 30 + - COUNT( * )
----
-2341

skipif mysql # not compatible
query I rowsort label-4893
SELECT ALL + NULLIF ( 78, - + 40 + - MIN ( ALL + + 48 ) * - NULLIF ( - + COUNT ( * ), + 53 - - - COUNT ( * ) * 71 + 62 ) * - 93 + - 15 ) * - 30 + - COUNT ( * )
----
-2341

query I rowsort
SELECT ALL - 59 * + 11 + + 51 AS col1
----
-598

query I rowsort
SELECT - 41 * + 81 AS col1
----
-3321

query I rowsort
SELECT ALL - 58 + - 33 AS col2
----
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-4897
SELECT 94 * COUNT( * ) + COUNT( * ) AS col2
----
95

skipif mysql # not compatible
query I rowsort label-4897
SELECT 94 * COUNT ( * ) + COUNT ( * ) AS col2
----
95

query I rowsort
SELECT - 11 * - ( 93 )
----
1023

onlyif mysql # aggregate syntax: 
query I rowsort label-4899
SELECT DISTINCT + 13 + 21 + - + 45 * - 68 * - + 40 * - - CASE 62 WHEN 13 THEN - 96 WHEN - NULLIF ( - COUNT( * ), + + 1 + - 22 - + - 48 * - 83 * + 73 + + 55 * - + MIN( DISTINCT ( 34 ) ) ) THEN - - 0 ELSE NULL END col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4899
SELECT DISTINCT + 13 + 21 + - + 45 * - 68 * - + 40 * - - CASE 62 WHEN 13 THEN - 96 WHEN - NULLIF ( - COUNT ( * ), + + 1 + - 22 - + - 48 * - 83 * + 73 + + 55 * - + MIN ( DISTINCT ( 34 ) ) ) THEN - - 0 ELSE NULL END col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4900
SELECT ALL - CAST( - 15 AS SIGNED ) + + 80 DIV 35
----
17

skipif mysql # not compatible
query I rowsort label-4900
SELECT ALL - CAST ( - 15 AS INTEGER ) + + 80 / 35
----
17

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4901
SELECT ALL + ( - 28 ) + COUNT( * ) * + + COUNT( * ) * + - 62 DIV - 31 AS col2
----
-26

skipif mysql # not compatible
query I rowsort label-4901
SELECT ALL + ( - 28 ) + COUNT ( * ) * + + COUNT ( * ) * + - 62 / - 31 AS col2
----
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-4902
SELECT ALL ( + COUNT( * ) ) * + + 19 AS col1
----
19

skipif mysql # not compatible
query I rowsort label-4902
SELECT ALL ( + COUNT ( * ) ) * + + 19 AS col1
----
19

query I rowsort
SELECT DISTINCT + ( + 20 ) + 66 AS col0
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-4904
SELECT DISTINCT 80 - - ( + COUNT( * ) ) AS col2
----
81

skipif mysql # not compatible
query I rowsort label-4904
SELECT DISTINCT 80 - - ( + COUNT ( * ) ) AS col2
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-4905
SELECT DISTINCT COALESCE ( MAX( ALL 81 ), 60 + - 87 ) AS col1
----
81

skipif mysql # not compatible
query I rowsort label-4905
SELECT DISTINCT COALESCE ( MAX ( ALL 81 ), 60 + - 87 ) AS col1
----
81

quer