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

query II rowsort
SELECT 24 AS col1, + 41
----
24
41

query I rowsort
SELECT ALL - 23 * - 22
----
506

query II rowsort
SELECT DISTINCT 76, 34 * + - 16 * + 36 AS col2
----
76
-19584

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

skipif mysql # not compatible
query I rowsort label-4909
SELECT - 91 + + COUNT ( ALL 7 ) AS col1
----
-90

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4910
SELECT 76 AS col2, - CAST( NULL AS SIGNED ) / - 29 col2
----
76
NULL

skipif mysql # not compatible
query II rowsort label-4910
SELECT 76 AS col2, - CAST ( NULL AS INTEGER ) / - 29 col2
----
76
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4911
SELECT + - 88 - 51 + - 26 AS col0, ( - - COUNT( * ) ) AS col1
----
-165
1

skipif mysql # not compatible
query II rowsort label-4911
SELECT + - 88 - 51 + - 26 AS col0, ( - - COUNT ( * ) ) AS col1
----
-165
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4912
SELECT ALL - 83 - - MIN( - 22 ) col0
----
-105

skipif mysql # not compatible
query I rowsort label-4912
SELECT ALL - 83 - - MIN ( - 22 ) col0
----
-105

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4913
SELECT - - MAX( - CAST( - 3 AS SIGNED ) ) * + 65 col2
----
195

skipif mysql # not compatible
query I rowsort label-4913
SELECT - - MAX ( - CAST ( - 3 AS INTEGER ) ) * + 65 col2
----
195

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

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4915
SELECT + - COALESCE ( 10, 66 DIV 72, CAST( NULL AS SIGNED ) ) + + ( - 42 ) AS col1
----
-52

skipif mysql # not compatible
query I rowsort label-4915
SELECT + - COALESCE ( 10, 66 / 72, CAST ( NULL AS INTEGER ) ) + + ( - 42 ) AS col1
----
-52

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4916
SELECT ALL 30 * CASE SUM( ALL - CAST( NULL AS SIGNED ) ) WHEN - 64 * + CAST( NULL AS SIGNED ) * + - 44 * - + ( + 82 ) + - 25 / COUNT( DISTINCT + + 4 ) THEN NULLIF ( - + 68, 70 + + CAST( + - 16 AS SIGNED ) / - + 55 + - 4 ) * COUNT( * ) ELSE NULL END + - - 33 + - - COALESCE ( - 93, ( 94 ), 53 - + COUNT( * ) + + - COALESCE ( - 11, + 1 + - 56, - 94 + + ( + 76 ) / + 73 ) ) + + 5 * 59 * - 11 + - + NULLIF ( + 70, - 40 * - COUNT( * ) ) * - 33 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4916
SELECT ALL 30 * CASE SUM ( ALL - CAST ( NULL AS INTEGER ) ) WHEN - 64 * + CAST ( NULL AS INTEGER ) * + - 44 * - + ( + 82 ) + - 25 / COUNT ( DISTINCT + + 4 ) THEN NULLIF ( - + 68, 70 + + CAST ( + - 16 AS INTEGER ) / - + 55 + - 4 ) * COUNT ( * ) ELSE NULL END + - - 33 + - - COALESCE ( - 93, ( 94 ), 53 - + COUNT ( * ) + + - COALESCE ( - 11, + 1 + - 56, - 94 + + ( + 76 ) / + 73 ) ) + + 5 * 59 * - 11 + - + NULLIF ( + 70, - 40 * - COUNT ( * ) ) * - 33 AS col1
----
NULL

query I rowsort
SELECT ALL + 0 * 7 AS col2
----
0

query I rowsort
SELECT - - 25 + - + 70 AS col2
----
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-4919
SELECT + MIN( + CASE - + 95 WHEN - 73 THEN NULL WHEN + 65 + + - 64 + - + 14 THEN - 62 ELSE NULL END )
----
NULL

skipif mysql # not compatible
query I rowsort label-4919
SELECT + MIN ( + CASE - + 95 WHEN - 73 THEN NULL WHEN + 65 + + - 64 + - + 14 THEN - 62 ELSE NULL END )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4920
SELECT + COALESCE ( - 61, - 65 DIV - 19 * + + COUNT( * ) + ( - 12 ) + + 82 ) DIV - ( + + 33 ), - 46 AS col0
----
1
-46

skipif mysql # not compatible
query II rowsort label-4920
SELECT + COALESCE ( - 61, - 65 / - 19 * + + COUNT ( * ) + ( - 12 ) + + 82 ) / - ( + + 33 ), - 46 AS col0
----
1
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-4921
SELECT - NULLIF ( + 21, + - 95 ) * - + COUNT( * ) - 97 - + 24
----
-100

skipif mysql # not compatible
query I rowsort label-4921
SELECT - NULLIF ( + 21, + - 95 ) * - + COUNT ( * ) - 97 - + 24
----
-100

onlyif mysql # aggregate syntax: 
query I rowsort label-4922
SELECT ALL + NULLIF ( - COUNT( * ), 81 ) * + 81 + + - 3
----
-84

skipif mysql # not compatible
query I rowsort label-4922
SELECT ALL + NULLIF ( - COUNT ( * ), 81 ) * + 81 + + - 3
----
-84

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4923
SELECT ALL + 76 * 50 + - CAST( MIN( - 68 ) AS SIGNED ) - - 21 * 44
----
4792

skipif mysql # not compatible
query I rowsort label-4923
SELECT ALL + 76 * 50 + - CAST ( MIN ( - 68 ) AS INTEGER ) - - 21 * 44
----
4792

onlyif mysql # aggregate syntax: 
query I rowsort label-4924
SELECT + 16 + - NULLIF ( ( - CASE - + COALESCE ( 87, + AVG ( DISTINCT 67 ) * + + MAX( - ( 43 ) ) * 24 + - CASE + + 61 WHEN + ( - 74 ) * + - 92 + + 57 + + 79 - - + 34 THEN NULL WHEN + COUNT( * ) + + - 75 * + 1 * ( - + 95 ) THEN NULL ELSE - + 64 - 51 * - 54 END, + + 70, - MIN( + 34 ) ) WHEN + 90 THEN - - 3 END ), MIN( + - 90 ) + - NULLIF ( + 94, + - AVG ( - 1 ) * - 99 + - 4 / 47 ) - 70 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4924
SELECT + 16 + - NULLIF ( ( - CASE - + COALESCE ( 87, + AVG ( DISTINCT 67 ) * + + MAX ( - ( 43 ) ) * 24 + - CASE + + 61 WHEN + ( - 74 ) * + - 92 + + 57 + + 79 - - + 34 THEN NULL WHEN + COUNT ( * ) + + - 75 * + 1 * ( - + 95 ) THEN NULL ELSE - + 64 - 51 * - 54 END, + + 70, - MIN ( + 34 ) ) WHEN + 90 THEN - - 3 END ), MIN ( + - 90 ) + - NULLIF ( + 94, + - AVG ( - 1 ) * - 99 + - 4 / 47 ) - 70 ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4925
SELECT - - 12 * + 15 + 48 + COUNT( * )
----
229

skipif mysql # not compatible
query I rowsort label-4925
SELECT - - 12 * + 15 + 48 + COUNT ( * )
----
229

onlyif mysql # aggregate syntax: 
query I rowsort label-4926
SELECT SUM( - ( + 16 ) )
----
-16

skipif mysql # not compatible
query I rowsort label-4926
SELECT SUM ( - ( + 16 ) )
----
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-4927
SELECT + COUNT( * ) + - + 75 + 32 * - - 97 + COUNT( * )
----
3031

skipif mysql # not compatible
query I rowsort label-4927
SELECT + COUNT ( * ) + - + 75 + 32 * - - 97 + COUNT ( * )
----
3031

query I rowsort
SELECT 90 * - ( 69 ) - - + ( + 64 )
----
-6146

onlyif mysql # aggregate syntax: 
query I rowsort label-4929
SELECT + 5 + + MIN( - - 46 ) + + 32 * + + 88 AS col1
----
2867

skipif mysql # not compatible
query I rowsort label-4929
SELECT + 5 + + MIN ( - - 46 ) + + 32 * + + 88 AS col1
----
2867

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4930
SELECT - COUNT( * ) - - 89 + 84 / - - COALESCE ( - COALESCE ( - 6, 45 ), + - COUNT( * ), + 39 * + - 26 * ( - 76 ) ) * - + 61 + - CAST( NULL AS SIGNED ) + + - 81 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4930
SELECT - COUNT ( * ) - - 89 + 84 / - - COALESCE ( - COALESCE ( - 6, 45 ), + - COUNT ( * ), + 39 * + - 26 * ( - 76 ) ) * - + 61 + - CAST ( NULL AS INTEGER ) + + - 81 AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4931
SELECT CASE 90 WHEN - 90 THEN MAX( DISTINCT - 45 ) WHEN + CAST( NULL AS SIGNED ) THEN COUNT( * ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4931
SELECT CASE 90 WHEN - 90 THEN MAX ( DISTINCT - 45 ) WHEN + CAST ( NULL AS INTEGER ) THEN COUNT ( * ) END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4932
SELECT - 87 + + + 58 * - MIN( DISTINCT - ( 72 ) ) AS col0
----
4089

skipif mysql # not compatible
query I rowsort label-4932
SELECT - 87 + + + 58 * - MIN ( DISTINCT - ( 72 ) ) AS col0
----
4089

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-4934
SELECT 27 * + 36 + + - COUNT( * ) AS col2
----
971

skipif mysql # not compatible
query I rowsort label-4934
SELECT 27 * + 36 + + - COUNT ( * ) AS col2
----
971

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4935
SELECT ALL + 0 * - CASE WHEN NOT NULL NOT IN ( CAST( - 69 AS SIGNED ), 49 + ( - CASE 45 WHEN + COUNT( ALL + 47 ) - + 78 THEN 16 WHEN - - COUNT( * ) THEN - + AVG ( - 68 ) END ), + - ( + 13 ) + COUNT( DISTINCT ( - 25 ) ) * - 28 ) THEN - 5 END
----
NULL

skipif mysql # not compatible
query I rowsort label-4935
SELECT ALL + 0 * - CASE WHEN NOT NULL NOT IN ( CAST ( - 69 AS INTEGER ), 49 + ( - CASE 45 WHEN + COUNT ( ALL + 47 ) - + 78 THEN 16 WHEN - - COUNT ( * ) THEN - + AVG ( - 68 ) END ), + - ( + 13 ) + COUNT ( DISTINCT ( - 25 ) ) * - 28 ) THEN - 5 END
----
NULL

query I rowsort
SELECT - 51 + + 97
----
46

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

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

query I rowsort
SELECT ALL 50 * + 26 * - + 95 - 7
----
-123507

onlyif mysql # aggregate syntax: 
query I rowsort label-4939
SELECT - COUNT( * ) * 82 * 55 * 55
----
-248050

skipif mysql # not compatible
query I rowsort label-4939
SELECT - COUNT ( * ) * 82 * 55 * 55
----
-248050

onlyif mysql # aggregate syntax: 
query I rowsort label-4940
SELECT - 33 + COUNT( * ) + - 42 * - 34 * - + 90 AS col2
----
-128552

skipif mysql # not compatible
query I rowsort label-4940
SELECT - 33 + COUNT ( * ) + - 42 * - 34 * - + 90 AS col2
----
-128552

onlyif mysql # aggregate syntax: 
query II rowsort label-4941
SELECT COUNT( * ), MAX( DISTINCT - + 76 ) AS col1
----
1
-76

skipif mysql # not compatible
query II rowsort label-4941
SELECT COUNT ( * ), MAX ( DISTINCT - + 76 ) AS col1
----
1
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-4942
SELECT - 97 + + COALESCE ( + 98, 21 + + 94 ) - ( 60 ) + + 16 * - 17 + COUNT( * ) - + 21 + + 12 + - + COUNT( ALL + - 66 ) * - 70 * - - 69 AS col0
----
4491

skipif mysql # not compatible
query I rowsort label-4942
SELECT - 97 + + COALESCE ( + 98, 21 + + 94 ) - ( 60 ) + + 16 * - 17 + COUNT ( * ) - + 21 + + 12 + - + COUNT ( ALL + - 66 ) * - 70 * - - 69 AS col0
----
4491

onlyif mysql # aggregate syntax: 
query II rowsort label-4943
SELECT - COALESCE ( COUNT( * ), - 83, + 30 ), 87 + 98 AS col1
----
-1
185

skipif mysql # not compatible
query II rowsort label-4943
SELECT - COALESCE ( COUNT ( * ), - 83, + 30 ), 87 + 98 AS col1
----
-1
185

query I rowsort
SELECT - ( 94 ) + - 22 AS col0
----
-116

onlyif mysql # aggregate syntax: 
query I rowsort label-4945
SELECT - MAX( - + 42 ) * - COUNT( * ) + - 46 * + COUNT( DISTINCT 36 ) AS col0
----
-88

skipif mysql # not compatible
query I rowsort label-4945
SELECT - MAX ( - + 42 ) * - COUNT ( * ) + - 46 * + COUNT ( DISTINCT 36 ) AS col0
----
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-4946
SELECT DISTINCT COALESCE ( 68, COUNT( * ) )
----
68

skipif mysql # not compatible
query I rowsort label-4946
SELECT DISTINCT COALESCE ( 68, COUNT ( * ) )
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-4947
SELECT DISTINCT + CASE 91 WHEN - + ( ( + 81 ) ) THEN NULL WHEN + 37 + - - MIN( 31 ) THEN + 1 END * - 47 * + + 22 / COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4947
SELECT DISTINCT + CASE 91 WHEN - + ( ( + 81 ) ) THEN NULL WHEN + 37 + - - MIN ( 31 ) THEN + 1 END * - 47 * + + 22 / COUNT ( * ) AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4948
SELECT DISTINCT - NULLIF ( - 79, + COUNT( * ) + + CAST( - 28 AS SIGNED ) )
----
79

skipif mysql # not compatible
query I rowsort label-4948
SELECT DISTINCT - NULLIF ( - 79, + COUNT ( * ) + + CAST ( - 28 AS INTEGER ) )
----
79

query I rowsort
SELECT DISTINCT - 29 * + - 2
----
58

query I rowsort
SELECT 0 - - 82 * + 94
----
7708

onlyif mysql # aggregate syntax: 
query II rowsort label-4951
SELECT DISTINCT 70, MAX( DISTINCT - + 1 ) AS col0
----
70
-1

skipif mysql # not compatible
query II rowsort label-4951
SELECT DISTINCT 70, MAX ( DISTINCT - + 1 ) AS col0
----
70
-1

query I rowsort
SELECT - 33 + + 35
----
2

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4953
SELECT 7 + - 30 * - - CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-4953
SELECT 7 + - 30 * - - CAST ( NULL AS REAL )
----
NULL

query II rowsort
SELECT + 99 col1, - 21 + - 16 AS col2
----
99
-37

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4955
SELECT ALL 30 + - CAST( COUNT( ALL 82 ) AS SIGNED ) + CAST( NULLIF ( + COUNT( * ), + 29 ) AS SIGNED ) * + 90 col0
----
119

skipif mysql # not compatible
query I rowsort label-4955
SELECT ALL 30 + - CAST ( COUNT ( ALL 82 ) AS INTEGER ) + CAST ( NULLIF ( + COUNT ( * ), + 29 ) AS INTEGER ) * + 90 col0
----
119

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

skipif mysql # not compatible
query I rowsort label-4956
SELECT - 10 / + - COUNT ( * ) + + + 58
----
68

query I rowsort
SELECT DISTINCT 48 + + 95
----
143

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4958
SELECT ALL - MAX( ALL - 65 ) + CAST( NULL AS SIGNED ) * + 28 + - 95
----
NULL

skipif mysql # not compatible
query I rowsort label-4958
SELECT ALL - MAX ( ALL - 65 ) + CAST ( NULL AS INTEGER ) * + 28 + - 95
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4959
SELECT + CASE + - 21 WHEN + - 18 THEN NULL WHEN - 23 THEN NULL WHEN - ( + MAX( - 99 ) ) * - 57 * - 99 * + MAX( 93 ) THEN NULL ELSE + + 24 END * + COUNT( * )
----
24

skipif mysql # not compatible
query I rowsort label-4959
SELECT + CASE + - 21 WHEN + - 18 THEN NULL WHEN - 23 THEN NULL WHEN - ( + MAX ( - 99 ) ) * - 57 * - 99 * + MAX ( 93 ) THEN NULL ELSE + + 24 END * + COUNT ( * )
----
24

query I rowsort
SELECT + 36 + - - 27 AS col2
----
63

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4961
SELECT DISTINCT ( COUNT( * ) ) + - + 51 - 8 DIV - COUNT( * ) - + 80
----
-122

skipif mysql # not compatible
query I rowsort label-4961
SELECT DISTINCT ( COUNT ( * ) ) + - + 51 - 8 / - COUNT ( * ) - + 80
----
-122

query II rowsort
SELECT ALL 17 + 26, 52 + - 5 col0
----
43
47

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-4964
SELECT DISTINCT CAST( NULL AS DECIMAL ) * 2 AS col1, + 75 AS col1
----
NULL
75

skipif mysql # not compatible
query II rowsort label-4964
SELECT DISTINCT CAST ( NULL AS REAL ) * 2 AS col1, + 75 AS col1
----
NULL
75

query I rowsort
SELECT ALL - NULLIF ( + 72, + 93 )
----
-72

query I rowsort
SELECT DISTINCT 5 - + 51
----
-46

query I rowsort
SELECT 42 * - 69 AS col1
----
-2898

onlyif mysql # DIV for integer division: 
query II rowsort label-4968
SELECT DISTINCT - 50 DIV 32 AS col2, 67 AS col0
----
-1
67

skipif mysql # not compatible
query II rowsort label-4968
SELECT DISTINCT - 50 / 32 AS col2, 67 AS col0
----
-1
67

onlyif mysql # aggregate syntax: 
query I rowsort label-4969
SELECT COUNT( * ) - + ( 0 ) + + 31 * + 14 AS col1
----
435

skipif mysql # not compatible
query I rowsort label-4969
SELECT COUNT ( * ) - + ( 0 ) + + 31 * + 14 AS col1
----
435

onlyif mysql # DIV for integer division: 
query I rowsort label-4970
SELECT 62 DIV + 71
----
0

skipif mysql # not compatible
query I rowsort label-4970
SELECT 62 / + 71
----
0

query I rowsort
SELECT 32 * 34
----
1088

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4972
SELECT COALESCE ( 3, 44 * + - ( CASE 96 WHEN - 15 + - 36 THEN + 81 + - CASE - COUNT( * ) WHEN + 78 * + 64 THEN - - 18 END DIV ( - + 52 ) + 94 + + 56 + - 71 END ) DIV 73 * - - 55 - + 28 ) + + 51 * + - COUNT( * ) + + + 95
----
47

skipif mysql # not compatible
query I rowsort label-4972
SELECT COALESCE ( 3, 44 * + - ( CASE 96 WHEN - 15 + - 36 THEN + 81 + - CASE - COUNT ( * ) WHEN + 78 * + 64 THEN - - 18 END / ( - + 52 ) + 94 + + 56 + - 71 END ) / 73 * - - 55 - + 28 ) + + 51 * + - COUNT ( * ) + + + 95
----
47

query II rowsort
SELECT 77 + 10, 53 AS col1
----
87
53

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4974
SELECT CAST( + COUNT( + 22 ) AS SIGNED ) - + - ( + 30 ), - 11 AS col2
----
31
-11

skipif mysql # not compatible
query II rowsort label-4974
SELECT CAST ( + COUNT ( + 22 ) AS INTEGER ) - + - ( + 30 ), - 11 AS col2
----
31
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-4975
SELECT ALL + 60 * - - SUM( 47 ) AS col1
----
2820

skipif mysql # not compatible
query I rowsort label-4975
SELECT ALL + 60 * - - SUM ( 47 ) AS col1
----
2820

query I rowsort
SELECT 67 * - 79 * - - 91 col0
----
-481663

query I rowsort
SELECT DISTINCT - 59 + + + 35 AS col1
----
-24

query I rowsort
SELECT ALL + 89 * + 24 * 32 AS col1
----
68352

query I rowsort
SELECT 53 * - 41 + - 59
----
-2232

query I rowsort
SELECT DISTINCT - ( - - 82 ) + - 89
----
-171

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

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

query I rowsort
SELECT ALL + 48 + 0 * - 18 AS col0
----
48

query I rowsort
SELECT DISTINCT + 37 + + + 16 AS col1
----
53

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4984
SELECT + ( 77 ) DIV + 23 + - COUNT( * ) AS col2
----
2

skipif mysql # not compatible
query I rowsort label-4984
SELECT + ( 77 ) / + 23 + - COUNT ( * ) AS col2
----
2

onlyif mysql # DIV for integer division: 
query I rowsort label-4985
SELECT DISTINCT - 46 DIV 45 * - 24 AS col0
----
24

skipif mysql # not compatible
query I rowsort label-4985
SELECT DISTINCT - 46 / 45 * - 24 AS col0
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-4986
SELECT + 42 * - ( + COUNT( 22 ) ) * + 11 - + + 66 AS col0
----
-528

skipif mysql # not compatible
query I rowsort label-4986
SELECT + 42 * - ( + COUNT ( 22 ) ) * + 11 - + + 66 AS col0
----
-528

query I rowsort
SELECT - 51 + + - 76 + - 62 + + 31
----
-158

onlyif mysql # DIV for integer division: 
query II rowsort label-4988
SELECT 91 DIV 21, + 62 DIV 34 + 49 + - - 65 * - 89 + + 16 col0
----
4
-5719

skipif mysql # not compatible
query II rowsort label-4988
SELECT 91 / 21, + 62 / 34 + 49 + - - 65 * - 89 + + 16 col0
----
4
-5719

query I rowsort
SELECT - 34 * - 38 AS col2
----
1292

query I rowsort
SELECT ALL + + 74 - - 89
----
163

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4991
SELECT ALL + COALESCE ( NULLIF ( + AVG ( ALL + 7 ), - 11 ), + 54 * - CASE 19 WHEN + MIN( ALL 87 ) THEN + CAST( NULL AS DECIMAL ) ELSE NULL END, + 67, - 29 / - + 66 - - 12 + - MAX( + 44 ) ) - - + 12 - + CAST( + - 54 AS SIGNED ) * - CASE + 57 WHEN - 41 * + ( - 38 ) + + + COUNT( 30 ) THEN 18 / + - 93 + + 30 ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4991
SELECT ALL + COALESCE ( NULLIF ( + AVG ( ALL + 7 ), - 11 ), + 54 * - CASE 19 WHEN + MIN ( ALL 87 ) THEN + CAST ( NULL AS REAL ) ELSE NULL END, + 67, - 29 / - + 66 - - 12 + - MAX ( + 44 ) ) - - + 12 - + CAST ( + - 54 AS INTEGER ) * - CASE + 57 WHEN - 41 * + ( - 38 ) + + + COUNT ( 30 ) THEN 18 / + - 93 + + 30 ELSE NULL END AS col2
----
NULL

query I rowsort
SELECT 36 + - - 3
----
39

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4993
SELECT DISTINCT - CAST( - COALESCE ( - 70, - 56 ) AS SIGNED )
----
-70

skipif mysql # not compatible
query I rowsort label-4993
SELECT DISTINCT - CAST ( - COALESCE ( - 70, - 56 ) AS INTEGER )
----
-70

query I rowsort
SELECT 52 * 2 col1
----
104

query II rowsort
SELECT ALL - 91, 9 AS col2
----
-91
9

query I rowsort
SELECT + 23 * + + 72 - - 80 + 23 AS col0
----
1759

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4997
SELECT COUNT( * ) * 62 * + COALESCE ( - COUNT( * ), - 8 * + 31 + - CAST( - + COALESCE ( - 19, + 4, - 16 + - - 43 - - 23, + + 18 ) AS SIGNED ) + - + 49 + - 1 * 47 + + - NULLIF ( - 52, - - ( - 28 ) - + + 78 * - 92 ) ) + + ( - - 78 ) + - + CASE 44 WHEN ( + 27 ) THEN + + 73 END * - COUNT( * ) + - + 49 * + - COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4997
SELECT COUNT ( * ) * 62 * + COALESCE ( - COUNT ( * ), - 8 * + 31 + - CAST ( - + COALESCE ( - 19, + 4, - 16 + - - 43 - - 23, + + 18 ) AS INTEGER ) + - + 49 + - 1 * 47 + + - NULLIF ( - 52, - - ( - 28 ) - + + 78 * - 92 ) ) + + ( - - 78 ) + - + CASE 44 WHEN ( + 27 ) THEN + + 73 END * - COUNT ( * ) + - + 49 * + - COUNT ( * ) AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4998
SELECT 71 + CAST( - 88 AS SIGNED )
----
-17

skipif mysql # not compatible
query I rowsort label-4998
SELECT 71 + CAST ( - 88 AS INTEGER )
----
-17

query I rowsort
SELECT ALL 4 * - 54 AS col0
----
-216

query I rowsort
SELECT 61 + + + 69
----
130

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

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

query I rowsort
SELECT DISTINCT 3 * + ( - - 97 ) AS col0
----
291

onlyif mysql # aggregate syntax: 
query I rowsort label-5003
SELECT 80 + + COUNT( * ) col2
----
81

skipif mysql # not compatible
query I rowsort label-5003
SELECT 80 + + COUNT ( * ) col2
----
81

query I rowsort
SELECT + 5 + - + 15
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-5005
SELECT + COUNT( * ) + - 36 - - - 92 AS col1
----
-127

skipif mysql # not compatible
query I rowsort label-5005
SELECT + COUNT ( * ) + - 36 - - - 92 AS col1
----
-127

query I rowsort
SELECT - + 33 * 82
----
-2706

query I rowsort
SELECT - 93 + 14 * - 70
----
-1073

onlyif mysql # DIV for integer division: 
query I rowsort label-5008
SELECT ALL ( 71 ) DIV 90
----
0

skipif mysql # not compatible
query I rowsort label-5008
SELECT ALL ( 71 ) / 90
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-5009
SELECT DISTINCT 15 AS col2, CAST( NULL AS DECIMAL ) * - + CAST( - 90 AS SIGNED ) * + - MIN( ( - 58 ) ) * + COUNT( * ) AS col0
----
15
NULL

skipif mysql # not compatible
query II rowsort label-5009
SELECT DISTINCT 15 AS col2, CAST ( NULL AS REAL ) * - + CAST ( - 90 AS INTEGER ) * + - MIN ( ( - 58 ) ) * + COUNT ( * ) AS col0
----
15
NULL

query I rowsort
SELECT ALL 6 + + 93 * - + 63 AS col1
----
-5853

query I rowsort
SELECT ALL + - ( - 81 ) + 7 * - 84 AS col1
----
-507

onlyif mysql # aggregate syntax: 
query I rowsort label-5012
SELECT + + CASE SUM( DISTINCT + 10 ) WHEN - - SUM( - - 92 ) * + + 22 * ( 84 ) THEN + ( - 95 ) + + + 61 WHEN + 80 * - 12 THEN NULL ELSE + - 86 - - 36 + + CASE + + 90 WHEN - - 37 THEN + 2 + + 10 ELSE NULL END / 46 * + 38 * - + 95 END + + + 98 + + 53
----
NULL

skipif mysql # not compatible
query I rowsort label-5012
SELECT + + CASE SUM ( DISTINCT + 10 ) WHEN - - SUM ( - - 92 ) * + + 22 * ( 84 ) THEN + ( - 95 ) + + + 61 WHEN + 80 * - 12 THEN NULL ELSE + - 86 - - 36 + + CASE + + 90 WHEN - - 37 THEN + 2 + + 10 ELSE NULL END / 46 * + 38 * - + 95 END + + + 98 + + 53
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5013
SELECT DISTINCT 25 + MIN( - 73 ) + + 22 col1
----
-26

skipif mysql # not compatible
query I rowsort label-5013
SELECT DISTINCT 25 + MIN ( - 73 ) + + 22 col1
----
-26

query I rowsort
SELECT + 68 + + 40
----
108

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5015
SELECT - CAST( 8 AS SIGNED ) + - 11 AS col1
----
-19

skipif mysql # not compatible
query I rowsort label-5015
SELECT - CAST ( 8 AS INTEGER ) + - 11 AS col1
----
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-5016
SELECT ALL 52 * + COUNT( * ) * - 40 AS col1
----
-2080

skipif mysql # not compatible
query I rowsort label-5016
SELECT ALL 52 * + COUNT ( * ) * - 40 AS col1
----
-2080

query I rowsort
SELECT + 21 * - 85 AS col0
----
-1785

query II rowsort
SELECT - 45, 24 - - 66 AS col0
----
-45
90

query I rowsort
SELECT DISTINCT + ( 66 ) - - 43 AS col0
----
109

query I rowsort
SELECT + 39 - + 74 * + ( - 41 ) AS col1
----
3073

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

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

query I rowsort
SELECT - - 56 + - 67 + - 38 + + 65 * - 2 + + - 54 - + 57 AS col2
----
-290

onlyif mysql # aggregate syntax: 
query I rowsort label-5023
SELECT NULLIF ( - + 69, - 82 + COUNT( * ) ) AS col1
----
-69

skipif mysql # not compatible
query I rowsort label-5023
SELECT NULLIF ( - + 69, - 82 + COUNT ( * ) ) AS col1
----
-69

query I rowsort
SELECT - + 81 + - + 94
----
-175

onlyif mysql # aggregate syntax: 
query II rowsort label-5025
SELECT DISTINCT ( - 56 ) - - 39, COUNT( * ) AS col2
----
-17
1

skipif mysql # not compatible
query II rowsort label-5025
SELECT DISTINCT ( - 56 ) - - 39, COUNT ( * ) AS col2
----
-17
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5026
SELECT - - COUNT( * ) * - 58 + - NULLIF ( - - 11, + 52 * ( + - 37 ) * + 7 ) + + COUNT( * ) AS col0, CAST( NULL AS SIGNED )
----
-68
NULL

skipif mysql # not compatible
query II rowsort label-5026
SELECT - - COUNT ( * ) * - 58 + - NULLIF ( - - 11, + 52 * ( + - 37 ) * + 7 ) + + COUNT ( * ) AS col0, CAST ( NULL AS INTEGER )
----
-68
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5027
SELECT ALL - ( + 52 ) DIV + - 47 + - 74 + + + 95 * + 1 * - 76 * - 64 AS col2
----
462007

skipif mysql # not compatible
query I rowsort label-5027
SELECT ALL - ( + 52 ) / + - 47 + - 74 + + + 95 * + 1 * - 76 * - 64 AS col2
----
462007

onlyif mysql # aggregate syntax: 
query II rowsort label-5028
SELECT ALL + MIN( - - 91 ), 25 AS col2
----
91
25

skipif mysql # not compatible
query II rowsort label-5028
SELECT ALL + MIN ( - - 91 ), 25 AS col2
----
91
25

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5029
SELECT DISTINCT - 50 * - CAST( - 35 AS SIGNED ) AS col2
----
-1750

skipif mysql # not compatible
query I rowsort label-5029
SELECT DISTINCT - 50 * - CAST ( - 35 AS INTEGER ) AS col2
----
-1750

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5030
SELECT ALL ( 89 ) * + 83 - 94 + COUNT( * ) DIV 11 + 99 AS col1
----
7392

skipif mysql # not compatible
query I rowsort label-5030
SELECT ALL ( 89 ) * + 83 - 94 + COUNT ( * ) / 11 + 99 AS col1
----
7392

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5031
SELECT ALL - 41 * - - 26 * CAST( + 5 AS SIGNED ) * + ( - ( + - 57 ) ) * - - 14 AS col2
----
-4253340

skipif mysql # not compatible
query I rowsort label-5031
SELECT ALL - 41 * - - 26 * CAST ( + 5 AS INTEGER ) * + ( - ( + - 57 ) ) * - - 14 AS col2
----
-4253340

query I rowsort
SELECT - 28 * 48 AS col2
----
-1344

onlyif mysql # DIV for integer division: 
query I rowsort label-5033
SELECT ALL - 68 DIV 59 * + 85
----
-85

skipif mysql # not compatible
query I rowsort label-5033
SELECT ALL - 68 / 59 * + 85
----
-85

onlyif mysql # DIV for integer division: 
query II rowsort label-5034
SELECT - 46 DIV - - 68 AS col2, + 2 + + 7 * + 95 + 69
----
0
736

skipif mysql # not compatible
query II rowsort label-5034
SELECT - 46 / - - 68 AS col2, + 2 + + 7 * + 95 + 69
----
0
736

query II rowsort
SELECT DISTINCT - ( + 63 ) * - 59 * 8, NULLIF ( + 86, - 16 ) AS col1
----
29736
86

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5036
SELECT ALL + CAST( 97 AS SIGNED ), 52 AS col0
----
97
52

skipif mysql # not compatible
query II rowsort label-5036
SELECT ALL + CAST ( 97 AS INTEGER ), 52 AS col0
----
97
52

query I rowsort
SELECT + ( - 99 ) * - - 54 + + 39
----
-5307

onlyif mysql # DIV for integer division: 
query II rowsort label-5038
SELECT - 10 DIV + - ( 95 ) * + 33 col0, 44
----
0
44

skipif mysql # not compatible
query II rowsort label-5038
SELECT - 10 / + - ( 95 ) * + 33 col0, 44
----
0
44

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5040
SELECT DISTINCT + 51 * CASE - 67 WHEN 0 THEN NULL WHEN - - 86 * + - 12 + - NULLIF ( + + 44, - COUNT( * ) ) THEN ( - - 87 ) END col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5040
SELECT DISTINCT + 51 * CASE - 67 WHEN 0 THEN NULL WHEN - - 86 * + - 12 + - NULLIF ( + + 44, - COUNT ( * ) ) THEN ( - - 87 ) END col2
----
NULL

query I rowsort
SELECT ALL 81 * - 87 * 59 * + 54 + - 78 * + 75 col0
----
-22457592

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5042
SELECT ALL + CASE - 47 WHEN - - CAST( + + 63 AS DECIMAL ) THEN 89 * - 59 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-5042
SELECT ALL + CASE - 47 WHEN - - CAST ( + + 63 AS REAL ) THEN 89 * - 59 ELSE NULL END
----
NULL

query I rowsort
SELECT DISTINCT - 78 * - 94
----
7332

onlyif mysql # aggregate syntax: 
query I rowsort label-5044
SELECT DISTINCT 93 * - 76 + + 52 + + + 15 + + + 5 * 80 * - + ( - + COUNT( * ) ) + + + 97 AS col1
----
-6504

skipif mysql # not compatible
query I rowsort label-5044
SELECT DISTINCT 93 * - 76 + + 52 + + + 15 + + + 5 * 80 * - + ( - + COUNT ( * ) ) + + + 97 AS col1
----
-6504

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5045
SELECT ALL 18 * CAST( - 59 AS SIGNED ) + - 56 AS col0, 35 AS col0
----
-1118
35

skipif mysql # not compatible
query II rowsort label-5045
SELECT ALL 18 * CAST ( - 59 AS INTEGER ) + - 56 AS col0, 35 AS col0
----
-1118
35

onlyif mysql # aggregate syntax: 
query I rowsort label-5046
SELECT - COUNT( * ) - - MIN( + 98 ) + + - ( - MIN( - 71 ) ) AS col0
----
26

skipif mysql # not compatible
query I rowsort label-5046
SELECT - COUNT ( * ) - - MIN ( + 98 ) + + - ( - MIN ( - 71 ) ) AS col0
----
26

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

skipif mysql # not compatible
query I rowsort label-5047
SELECT - MIN ( DISTINCT 86 )
----
-86

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5048
SELECT - - CASE + - COUNT( * ) WHEN + COUNT( * ) THEN - - 75 WHEN + - CAST( 43 AS SIGNED ) * - COUNT( * ) + + 94 + 41 * 82 * + - 59 - - + 64 THEN NULL WHEN + 56 * - - CAST( 89 AS SIGNED ) THEN 9 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5048
SELECT - - CASE + - COUNT ( * ) WHEN + COUNT ( * ) THEN - - 75 WHEN + - CAST ( 43 AS INTEGER ) * - COUNT ( * ) + + 94 + 41 * 82 * + - 59 - - + 64 THEN NULL WHEN + 56 * - - CAST ( 89 AS INTEGER ) THEN 9 END AS col2
----
NULL

query I rowsort
SELECT + + 87 + + 19 AS col0
----
106

query II rowsort
SELECT DISTINCT + ( + 10 ) * + 66 + + 29 AS col2, 56
----
689
56

query I rowsort
SELECT DISTINCT - - 45 * + - ( + 14 ) * + 4 + + 52
----
-2468

query I rowsort
SELECT + - 68 - + 81
----
-149

query I rowsort
SELECT DISTINCT - NULLIF ( + 96, + - 48 + 26 / - 47 )
----
-96

query I rowsort
SELECT ALL 40 - 36 AS col2
----
4

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5055
SELECT - ( + COALESCE ( + 56, - + 66, + 0 DIV - SUM( 69 ) + + 3 ) )
----
-56

skipif mysql # not compatible
query I rowsort label-5055
SELECT - ( + COALESCE ( + 56, - + 66, + 0 / - SUM ( 69 ) + + 3 ) )
----
-56

query I rowsort
SELECT + 24 + - 38
----
-14

query I rowsort
SELECT + 93 * - 45 AS col0
----
-4185

query I rowsort
SELECT DISTINCT CASE ( + - 82 ) WHEN 47 THEN - ( 35 ) - - 59 END AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5059
SELECT + + 41 DIV - 94 col1, - COUNT( 6 ) + + 51
----
0
50

skipif mysql # not compatible
query II rowsort label-5059
SELECT + + 41 / - 94 col1, - COUNT ( 6 ) + + 51
----
0
50

query II rowsort
SELECT DISTINCT - 72 * - 45 AS col0, 39
----
3240
39

onlyif mysql # DIV for integer division: 
query I rowsort label-5061
SELECT + - CASE - 47 WHEN COALESCE ( - 63, 82 ) THEN - 20 DIV + 98 ELSE 17 END + + + 18 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-5061
SELECT + - CASE - 47 WHEN COALESCE ( - 63, 82 ) THEN - 20 / + 98 ELSE 17 END + + + 18 AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5062
SELECT ALL COUNT( - - 71 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-5062
SELECT ALL COUNT ( - - 71 ) AS col1
----
1

query I rowsort
SELECT + 40 + - 63 AS col0
----
-23

query I rowsort
SELECT - COALESCE ( - 29, 97 ) - - 93
----
122

query I rowsort
SELECT - 5 * 72
----
-360

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

skipif mysql # not compatible
query I rowsort label-5066
SELECT ALL COUNT ( * ) * + 16 / + 3 AS col2
----
5

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

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

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

skipif mysql # not compatible
query I rowsort label-5068
SELECT ALL COUNT ( * ) / 44 + + 46
----
46

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5069
SELECT + 15 DIV - ( + + 64 ) + ( - COUNT( * ) ), 99 AS col1
----
-1
99

skipif mysql # not compatible
query II rowsort label-5069
SELECT + 15 / - ( + + 64 ) + ( - COUNT ( * ) ), 99 AS col1
----
-1
99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5070
SELECT CAST( CASE + + 88 WHEN + + 18 / 16 + + COUNT( * ) THEN - 43 * 23 ELSE NULL END AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5070
SELECT CAST ( CASE + + 88 WHEN + + 18 / 16 + + COUNT ( * ) THEN - 43 * 23 ELSE NULL END AS INTEGER ) AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5071
SELECT DISTINCT CAST( + 75 AS SIGNED ) DIV - 93 + 69 * + 57 * + 77 AS col1
----
302841

skipif mysql # not compatible
query I rowsort label-5071
SELECT DISTINCT CAST ( + 75 AS INTEGER ) / - 93 + 69 * + 57 * + 77 AS col1
----
302841

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5072
SELECT ALL - 74 + + + 99 * + CAST( NULL AS SIGNED ) * SUM( + 90 ) + + - ( + 76 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5072
SELECT ALL - 74 + + + 99 * + CAST ( NULL AS INTEGER ) * SUM ( + 90 ) + + - ( + 76 )
----
NULL

query I rowsort
SELECT 51 + + 90 AS col2
----
141

onlyif mysql # DIV for integer division: 
query II rowsort label-5074
SELECT + 19 AS col2, + 55 DIV + - 45
----
19
-1

skipif mysql # not compatible
query II rowsort label-5074
SELECT + 19 AS col2, + 55 / + - 45
----
19
-1

query II rowsort
SELECT + 76 * + 34 - - + 92 col0, + 64
----
2676
64

query I rowsort
SELECT ALL + 2 * + + 34
----
68

query I rowsort
SELECT 70 * - 4
----
-280

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query II rowsort label-5078
SELECT 6 + + CAST( NULL AS DECIMAL ) * + NULLIF ( + 32, + - 96 * 90 ) * + + 6 - - + 73 + + 84 - - + COUNT( * ), - 2 DIV + ( + 5 ) + + - 37 AS col0
----
NULL
-37

skipif mysql # not compatible
query II rowsort label-5078
SELECT 6 + + CAST ( NULL AS REAL ) * + NULLIF ( + 32, + - 96 * 90 ) * + + 6 - - + 73 + + 84 - - + COUNT ( * ), - 2 / + ( + 5 ) + + - 37 AS col0
----
NULL
-37

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-5079
SELECT 20, - 54 + - 86 + + CAST( NULL AS DECIMAL ) * - - 20 / - 1 col0
----
20
NULL

skipif mysql # not compatible
query II rowsort label-5079
SELECT 20, - 54 + - 86 + + CAST ( NULL AS REAL ) * - - 20 / - 1 col0
----
20
NULL

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5081
SELECT ALL + + 72 + - 40 + + 97 DIV + 1 + + ( + 52 )
----
181

skipif mysql # not compatible
query I rowsort label-5081
SELECT ALL + + 72 + - 40 + + 97 / + 1 + + ( + 52 )
----
181

query I rowsort
SELECT 97 * 23 col2
----
2231

onlyif mysql # aggregate syntax: 
query II rowsort label-5083
SELECT ALL + - SUM( ALL + + 37 ) * + - 4, 6 + - + 94 AS col2
----
148
-88

skipif mysql # not compatible
query II rowsort label-5083
SELECT ALL + - SUM ( ALL + + 37 ) * + - 4, 6 + - + 94 AS col2
----
148
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-5084
SELECT - 28 + - 50 * + + 88 * + 77 - SUM( 6 )
----
-338834

skipif mysql # not compatible
query I rowsort label-5084
SELECT - 28 + - 50 * + + 88 * + 77 - SUM ( 6 )
----
-338834

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5086
SELECT DISTINCT - - 43 * - + MAX( + 37 ) * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5086
SELECT DISTINCT - - 43 * - + MAX ( + 37 ) * + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT 22 * - 22 * + 48 + - 48 * + ( + NULLIF ( + 93, - COALESCE ( 85, 87 * + - 58 ) ) ) * COALESCE ( - 27, + 71, + 13 ) + 20 AS col1
----
97316

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5088
SELECT + 94 * + COUNT( * ) * - 78 - + NULLIF ( + CAST( - + 99 AS SIGNED ), - - NULLIF ( + COUNT( * ), - 4 * + - 20 ) ) * + 53 * - 32
----
-175236

skipif mysql # not compatible
query I rowsort label-5088
SELECT + 94 * + COUNT ( * ) * - 78 - + NULLIF ( + CAST ( - + 99 AS INTEGER ), - - NULLIF ( + COUNT ( * ), - 4 * + - 20 ) ) * + 53 * - 32
----
-175236

onlyif mysql # aggregate syntax: 
query I rowsort label-5089
SELECT SUM( - - 88 ) * + 56
----
4928

skipif mysql # not compatible
query I rowsort label-5089
SELECT SUM ( - - 88 ) * + 56
----
4928

onlyif mysql # aggregate syntax: 
query I rowsort label-5090
SELECT + - NULLIF ( + NULLIF ( NULLIF ( 12, - SUM( ALL + + 18 ) * + 74 ), 59 * - 10 * + 46 + 66 * - 43 / - 7 * + 82 * + 11 ), - 3 ) * 90 + + + 56 + - 17 + - - 23 * - + COUNT( * ) + + 51
----
-1013

skipif mysql # not compatible
query I rowsort label-5090
SELECT + - NULLIF ( + NULLIF ( NULLIF ( 12, - SUM ( ALL + + 18 ) * + 74 ), 59 * - 10 * + 46 + 66 * - 43 / - 7 * + 82 * + 11 ), - 3 ) * 90 + + + 56 + - 17 + - - 23 * - + COUNT ( * ) + + 51
----
-1013

onlyif mysql # aggregate syntax: 
query I rowsort label-5091
SELECT ALL 70 * 63 + + NULLIF ( - + 19, + - 8 - + 78 - + COALESCE ( COUNT( * ), + NULLIF ( + 18, + - 28 - COUNT( * ) ), - - MIN( + - 83 ) * - + NULLIF ( + - 81, AVG ( DISTINCT 80 ) ) ) ) - - 34
----
4425

skipif mysql # not compatible
query I rowsort label-5091
SELECT ALL 70 * 63 + + NULLIF ( - + 19, + - 8 - + 78 - + COALESCE ( COUNT ( * ), + NULLIF ( + 18, + - 28 - COUNT ( * ) ), - - MIN ( + - 83 ) * - + NULLIF ( + - 81, AVG ( DISTINCT 80 ) ) ) ) - - 34
----
4425

query I rowsort
SELECT DISTINCT + 23 - 71 * - 46 * - 77 * 85 AS col0
----
-21375947

query I rowsort
SELECT 69 + - 4 * 17
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5094
SELECT ALL + 73 * + 61 + SUM( + 31 )
----
4484

skipif mysql # not compatible
query I rowsort label-5094
SELECT ALL + 73 * + 61 + SUM ( + 31 )
----
4484

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-5096
SELECT - 30, 28 DIV 51 AS col2
----
-30
0

skipif mysql # not compatible
query II rowsort label-5096
SELECT - 30, 28 / 51 AS col2
----
-30
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5097
SELECT ( + 81 ) DIV 60
----
1

skipif mysql # not compatible
query I rowsort label-5097
SELECT ( + 81 ) / 60
----
1

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

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

query I rowsort
SELECT ( - 64 ) + - + 35 * - ( + 76 ) col0
----
2596

query II rowsort
SELECT ALL 38, - 23 * + - 92 + - 73 AS col1
----
38
2043

onlyif mysql # aggregate syntax: 
query I rowsort label-5101
SELECT COUNT( - 81 ) + 29 AS col2
----
30

skipif mysql # not compatible
query I rowsort label-5101
SELECT COUNT ( - 81 ) + 29 AS col2
----
30

query I rowsort
SELECT ALL 81 + - 43 + 25 AS col2
----
63

query I rowsort
SELECT ( + + 67 ) * 15 AS col1
----
1005

query I rowsort
SELECT DISTINCT 75 * + 0
----
0

query II rowsort
SELECT ALL 33 + - - 23 AS col2, - 44 + + - ( + 57 ) * - + 3 + + + 67 + + - CASE + 6 WHEN - - 58 THEN NULL ELSE + - ( - 6 ) END col1
----
56
188

query II rowsort
SELECT + 5 AS col1, 87
----
5
87

query I rowsort
SELECT ALL 45 + - - 19 + - 42
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-5108
SELECT MAX( + 20 ) * 41 AS col2
----
820

skipif mysql # not compatible
query I rowsort label-5108
SELECT MAX ( + 20 ) * 41 AS col2
----
820

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

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5111
SELECT ALL 74 * - 47, + 22 + ( - - COUNT( * ) ) * - - 37 DIV + - 75 * + + 42 AS col1
----
-3478
22

skipif mysql # not compatible
query II rowsort label-5111
SELECT ALL 74 * - 47, + 22 + ( - - COUNT ( * ) ) * - - 37 / + - 75 * + + 42 AS col1
----
-3478
22

query I rowsort
SELECT 6 * - - 82 col1
----
492

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

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

query I rowsort
SELECT DISTINCT 3 * ( - 76 ) * 48 * - 9
----
98496

onlyif mysql # aggregate syntax: 
query II rowsort label-5115
SELECT ALL - COUNT( * ) - NULLIF ( + + 50, - 35 ) AS col0, 68 col1
----
-51
68

skipif mysql # not compatible
query II rowsort label-5115
SELECT ALL - COUNT ( * ) - NULLIF ( + + 50, - 35 ) AS col0, 68 col1
----
-51
68

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5116
SELECT ALL - + 68 AS col2, - MIN( + ( + 69 ) ) DIV 77 AS col2
----
-68
0

skipif mysql # not compatible
query II rowsort label-5116
SELECT ALL - + 68 AS col2, - MIN ( + ( + 69 ) ) / 77 AS col2
----
-68
0

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

skipif mysql # not compatible
query I rowsort label-5117
SELECT COUNT ( * ) / + 29 * - COUNT ( * ) * + ( - 92 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5118
SELECT ALL + CASE - COUNT( + 29 ) WHEN + - 61 * + - COUNT( * ) + + + MIN( DISTINCT + + 32 ) / 43 + - - 0 THEN + 22 + - - 48 - + 60 WHEN + ( - 4 ) * COUNT( * ) THEN NULL ELSE NULL END / + 48 - 21 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5118
SELECT ALL + CASE - COUNT ( + 29 ) WHEN + - 61 * + - COUNT ( * ) + + + MIN ( DISTINCT + + 32 ) / 43 + - - 0 THEN + 22 + - - 48 - + 60 WHEN + ( - 4 ) * COUNT ( * ) THEN NULL ELSE NULL END / + 48 - 21 AS col1
----
NULL

query II rowsort
SELECT DISTINCT - + 91 AS col1, - 11
----
-91
-11

query II rowsort
SELECT ALL - 21 - + 7 AS col1, + 34
----
-28
34

onlyif mysql # aggregate syntax: 
query II rowsort label-5121
SELECT 59 AS col1, + SUM( ALL - 16 ) AS col0
----
59
-16

skipif mysql # not compatible
query II rowsort label-5121
SELECT 59 AS col1, + SUM ( ALL - 16 ) AS col0
----
59
-16

query I rowsort
SELECT 91 + 6
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-5123
SELECT 35 * 24 * - + COUNT( * ) AS col0
----
-840

skipif mysql # not compatible
query I rowsort label-5123
SELECT 35 * 24 * - + COUNT ( * ) AS col0
----
-840

query I rowsort
SELECT 22 * - 51 AS col1
----
-1122

query I rowsort
SELECT 81 * + + 94 + + ( - CASE - 91 WHEN + + 40 THEN - 26 / + - 67 + - 60 END ) + - + 36 AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5126
SELECT + 85 AS col0, ( + SUM( DISTINCT 57 ) ) + + COUNT( * ) + - - 94 + + + 74 DIV - 53 + - 40 + - - 24 AS col0
----
85
135

skipif mysql # not compatible
query II rowsort label-5126
SELECT + 85 AS col0, ( + SUM ( DISTINCT 57 ) ) + + COUNT ( * ) + - - 94 + + + 74 / - 53 + - 40 + - - 24 AS col0
----
85
135

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5128
SELECT MAX( DISTINCT + 73 ) * 8 - - 14 * - CASE - 63 WHEN - 87 * - 56 - + 46 * - 93 THEN MIN( ALL + - 71 ) ELSE - - 75 END
----
-466

skipif mysql # not compatible
query I rowsort label-5128
SELECT MAX ( DISTINCT + 73 ) * 8 - - 14 * - CASE - 63 WHEN - 87 * - 56 - + 46 * - 93 THEN MIN ( ALL + - 71 ) ELSE - - 75 END
----
-466

query I rowsort
SELECT ALL + 94 * + 6
----
564

query I rowsort
SELECT 84 * - NULLIF ( + - 59, 97 ) AS col2
----
4956

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5131
SELECT + COALESCE ( 86, - 46, COUNT( * ) * - 11 * SUM( ALL - 26 ) * - + 8 + - + 0 ) + 49 - - 41 + + 11 DIV + - 43
----
176

skipif mysql # not compatible
query I rowsort label-5131
SELECT + COALESCE ( 86, - 46, COUNT ( * ) * - 11 * SUM ( ALL - 26 ) * - + 8 + - + 0 ) + 49 - - 41 + + 11 / + - 43
----
176

onlyif mysql # aggregate syntax: 
query II rowsort label-5132
SELECT - CASE 37 WHEN + + COUNT( 97 ) THEN + - 74 WHEN - - 90 THEN NULL END AS col2, + CASE - 68 WHEN + - COUNT( * ) THEN NULL WHEN 8 * + COUNT( * ) THEN - 19 - - ( + 54 ) END - - + 96
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-5132
SELECT - CASE 37 WHEN + + COUNT ( 97 ) THEN + - 74 WHEN - - 90 THEN NULL END AS col2, + CASE - 68 WHEN + - COUNT ( * ) THEN NULL WHEN 8 * + COUNT ( * ) THEN - 19 - - ( + 54 ) END - - + 96
----
NULL
NULL

query I rowsort
SELECT 29 + - 90 AS col2
----
-61

query I rowsort
SELECT 36 * - + 33 AS col2
----
-1188

onlyif mysql # aggregate syntax: 
query II rowsort label-5135
SELECT ALL - ( + ( + - 43 ) ) + + + 90 + MAX( - 43 ) * + 20 AS col0, 20 * + + COUNT( * )
----
-727
20

skipif mysql # not compatible
query II rowsort label-5135
SELECT ALL - ( + ( + - 43 ) ) + + + 90 + MAX ( - 43 ) * + 20 AS col0, 20 * + + COUNT ( * )
----
-727
20

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5136
SELECT ALL + COALESCE ( + 35, 73 ) / + 60 * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5136
SELECT ALL + COALESCE ( + 35, 73 ) / + 60 * + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT DISTINCT - 92 + 30
----
-62

query I rowsort
SELECT 64 + 44
----
108

onlyif mysql # aggregate syntax: 
query I rowsort label-5139
SELECT DISTINCT COUNT( - 30 ) + - 46
----
-45

skipif mysql # not compatible
query I rowsort label-5139
SELECT DISTINCT COUNT ( - 30 ) + - 46
----
-45

query I rowsort
SELECT ALL - 19 * + 51 AS col2
----
-969

onlyif mysql # aggregate syntax: 
query I rowsort label-5141
SELECT NULLIF ( - - 94, + 49 ) * + - 77 + - - COUNT( * ) + + - 25 + + ( + COUNT( * ) ) AS col2
----
-7261

skipif mysql # not compatible
query I rowsort label-5141
SELECT NULLIF ( - - 94, + 49 ) * + - 77 + - - COUNT ( * ) + + - 25 + + ( + COUNT ( * ) ) AS col2
----
-7261

onlyif mysql # DIV for integer division: 
query I rowsort label-5142
SELECT + 86 DIV + 60 col2
----
1

skipif mysql # not compatible
query I rowsort label-5142
SELECT + 86 / + 60 col2
----
1

query I rowsort
SELECT ALL ( + 30 ) * - - 42 - + - 39 AS col2
----
1299

query I rowsort
SELECT + 97 * 32 * + 25 * - + 84 AS col1
----
-6518400

onlyif mysql # DIV for integer division: 
query I rowsort label-5145
SELECT ALL - 84 DIV 68
----
-1

skipif mysql # not compatible
query I rowsort label-5145
SELECT ALL - 84 / 68
----
-1

query I rowsort
SELECT + 50 + 25 - + ( - 69 )
----
144

onlyif mysql # DIV for integer division: 
query I rowsort label-5147
SELECT - 9 * 84 * - 64 + 50 * 64 + + 74 DIV 1
----
51658

skipif mysql # not compatible
query I rowsort label-5147
SELECT - 9 * 84 * - 64 + 50 * 64 + + 74 / 1
----
51658

query I rowsort
SELECT + 19 * + 72 AS col0
----
1368

onlyif mysql # aggregate syntax: 
query I rowsort label-5149
SELECT 81 * ( + - 28 ) + + COUNT( * ) AS col1
----
-2267

skipif mysql # not compatible
query I rowsort label-5149
SELECT 81 * ( + - 28 ) + + COUNT ( * ) AS col1
----
-2267

onlyif mysql # aggregate syntax: 
query II rowsort label-5150
SELECT + - COUNT( + 93 ) * - 97 AS col1, 95 AS col1
----
97
95

skipif mysql # not compatible
query II rowsort label-5150
SELECT + - COUNT ( + 93 ) * - 97 AS col1, 95 AS col1
----
97
95

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5152
SELECT ALL 73 * NULLIF ( + COALESCE ( - ( 92 ), ( + 44 ) DIV 90 * + 76 + - 50, - - 85 * - 92 + NULLIF ( - 31, - - 87 ) ), + - 24 - - + 68 + + 11 ) AS col2
----
-6716

skipif mysql # not compatible
query I rowsort label-5152
SELECT ALL 73 * NULLIF ( + COALESCE ( - ( 92 ), ( + 44 ) / 90 * + 76 + - 50, - - 85 * - 92 + NULLIF ( - 31, - - 87 ) ), + - 24 - - + 68 + + 11 ) AS col2
----
-6716

query II rowsort
SELECT ALL + ( 34 ), + 70 col2
----
34
70

query II rowsort
SELECT + + 54 + + 1 AS col1, 32 AS col2
----
55
32

query I rowsort
SELECT + - 79 + + 74 + - CASE - - 56 WHEN - 17 THEN - ( + 50 ) ELSE + ( NULLIF ( - 6, + + 3 * - ( + 37 ) ) ) - 24 END
----
25

onlyif mysql # DIV for integer division: 
query I rowsort label-5156
SELECT - - 81 * + 99 + - 7 DIV + ( 17 ) + + 30 AS col1
----
8049

skipif mysql # not compatible
query I rowsort label-5156
SELECT - - 81 * + 99 + - 7 / + ( 17 ) + + 30 AS col1
----
8049

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5158
SELECT DISTINCT - 5 + 99 + - + 90 DIV + 94 + 63 * - 48 + + + 61 col1
----
-2869

skipif mysql # not compatible
query I rowsort label-5158
SELECT DISTINCT - 5 + 99 + - + 90 / + 94 + 63 * - 48 + + + 61 col1
----
-2869

query I rowsort
SELECT ALL + 50 * 48
----
2400

query I rowsort
SELECT - 46 * + 19
----
-874

query I rowsort
SELECT - 64 + + 83
----
19

query I rowsort
SELECT - ( + 3 ) + - - NULLIF ( + - 86, + 76 + - 67 ) + 85 + + 96 * + 98 AS col1
----
9404

query I rowsort
SELECT ALL + 6 + - + 52 AS col0
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-5164
SELECT - NULLIF ( + 31, - NULLIF ( 89, 57 ) * 61 + - 7 - 43 + COUNT( * ) * + COUNT( * ) / - 14 + - 49 * - 80 * - 71 ) + + 44
----
13

skipif mysql # not compatible
query I rowsort label-5164
SELECT - NULLIF ( + 31, - NULLIF ( 89, 57 ) * 61 + - 7 - 43 + COUNT ( * ) * + COUNT ( * ) / - 14 + - 49 * - 80 * - 71 ) + + 44
----
13

query I rowsort
SELECT ALL NULLIF ( - 47, - - 79 + - + 2 )
----
-47

query I rowsort
SELECT DISTINCT + 61 - + - 47 + - - 80 AS col2
----
188

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

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

query I rowsort
SELECT - 86 + ( - - 66 ) * + 31 AS col2
----
1960

onlyif mysql # aggregate syntax: 
query I rowsort label-5169
SELECT ALL + COUNT( * ) - + ( - - MIN( - 33 ) ) * + 50
----
1651

skipif mysql # not compatible
query I rowsort label-5169
SELECT ALL + COUNT ( * ) - + ( - - MIN ( - 33 ) ) * + 50
----
1651

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5171
SELECT ALL NULLIF ( 92, - - COUNT( * ) + 45 )
----
92

skipif mysql # not compatible
query I rowsort label-5171
SELECT ALL NULLIF ( 92, - - COUNT ( * ) + 45 )
----
92

onlyif mysql # aggregate syntax: 
query I rowsort label-5172
SELECT DISTINCT - CASE 49 WHEN - - ( - 11 ) THEN NULL ELSE - - 29 * COUNT( * ) + + COUNT( DISTINCT - + 91 ) END * - COUNT( * ) + + - CASE + 33 WHEN 29 THEN - 99 * - + 53 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5172
SELECT DISTINCT - CASE 49 WHEN - - ( - 11 ) THEN NULL ELSE - - 29 * COUNT ( * ) + + COUNT ( DISTINCT - + 91 ) END * - COUNT ( * ) + + - CASE + 33 WHEN 29 THEN - 99 * - + 53 END AS col1
----
NULL

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

skipif mysql # not compatible
query I rowsort label-5173
SELECT DISTINCT - 98 / COUNT ( * )
----
-98

onlyif mysql # DIV for integer division: 
query I rowsort label-5174
SELECT ALL 14 DIV 23 - - 73 + - - 41
----
114

skipif mysql # not compatible
query I rowsort label-5174
SELECT ALL 14 / 23 - - 73 + - - 41
----
114

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5176
SELECT + COUNT( * ) * 53 + + ( - 58 )
----
-5

skipif mysql # not compatible
query I rowsort label-5176
SELECT + COUNT ( * ) * 53 + + ( - 58 )
----
-5

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5178
SELECT - + ( + NULLIF ( + - ( 84 ), - - 93 ) ) DIV + - 62 - 46 * - COUNT( * )
----
45

skipif mysql # not compatible
query I rowsort label-5178
SELECT - + ( + NULLIF ( + - ( 84 ), - - 93 ) ) / + - 62 - 46 * - COUNT ( * )
----
45

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5179
SELECT ALL 36 * + 69 * 47 AS col1, 61 DIV + COUNT( * ) AS col2
----
116748
61

skipif mysql # not compatible
query II rowsort label-5179
SELECT ALL 36 * + 69 * 47 AS col1, 61 / + COUNT ( * ) AS col2
----
116748
61

onlyif mysql # aggregate syntax: 
query I rowsort label-5180
SELECT - SUM( - 50 ) AS col0
----
50

skipif mysql # not compatible
query I rowsort label-5180
SELECT - SUM ( - 50 ) AS col0
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-5181
SELECT + - COALESCE ( - 0, 50 + NULLIF ( + 10, 97 * COUNT( * ) * + MAX( + ( + 32 ) ) ) * + - 52 + + 85 ) * + 26 + + 67
----
67

skipif mysql # not compatible
query I rowsort label-5181
SELECT + - COALESCE ( - 0, 50 + NULLIF ( + 10, 97 * COUNT ( * ) * + MAX ( + ( + 32 ) ) ) * + - 52 + + 85 ) * + 26 + + 67
----
67

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5182
SELECT - + 91 * + NULLIF ( + CAST( NULL AS SIGNED ), - CASE + ( + + 20 ) WHEN - 87 * + COUNT( * ) + 18 THEN NULL WHEN + 1 * 46 + - CASE - ( + 75 ) WHEN - COUNT( * ) THEN + + COUNT( - 68 ) END THEN + - 44 / + + NULLIF ( 54, + 64 + - 96 ) + + + 3 + - 59 * + - 26 END ) + + + ( + - 91 ) + - 51 + + - ( + ( + 48 ) ) / 62 + - - CASE - - 91 WHEN 19 / + 2 * + 66 + + COUNT( * ) * + 4 THEN + - 37 END / + - 54 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5182
SELECT - + 91 * + NULLIF ( + CAST ( NULL AS INTEGER ), - CASE + ( + + 20 ) WHEN - 87 * + COUNT ( * ) + 18 THEN NULL WHEN + 1 * 46 + - CASE - ( + 75 ) WHEN - COUNT ( * ) THEN + + COUNT ( - 68 ) END THEN + - 44 / + + NULLIF ( 54, + 64 + - 96 ) + + + 3 + - 59 * + - 26 END ) + + + ( + - 91 ) + - 51 + + - ( + ( + 48 ) ) / 62 + - - CASE - - 91 WHEN 19 / + 2 * + 66 + + COUNT ( * ) * + 4 THEN + - 37 END / + - 54 AS col2
----
NULL

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5184
SELECT ALL - CAST( 53 AS SIGNED ) * + + 77 * 67 - + 83
----
-273510

skipif mysql # not compatible
query I rowsort label-5184
SELECT ALL - CAST ( 53 AS INTEGER ) * + + 77 * 67 - + 83
----
-273510

onlyif mysql # aggregate syntax: 
query I rowsort label-5185
SELECT DISTINCT - + 66 * + 62 - + COUNT( * ) + - 81 * + - 92
----
3359

skipif mysql # not compatible
query I rowsort label-5185
SELECT DISTINCT - + 66 * + 62 - + COUNT ( * ) + - 81 * + - 92
----
3359

onlyif mysql # aggregate syntax: 
query I rowsort label-5186
SELECT DISTINCT + 49 * - ( + COUNT( * ) ) * + + COUNT( + 10 ) * - + 5 + + 23 AS col0
----
268

skipif mysql # not compatible
query I rowsort label-5186
SELECT DISTINCT + 49 * - ( + COUNT ( * ) ) * + + COUNT ( + 10 ) * - + 5 + + 23 AS col0
----
268

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5188
SELECT DISTINCT + COUNT( * ) * - + NULLIF ( - 49, + COUNT( * ) * - + 36 * + 15 ) + + ( 73 ) * 9
----
706

skipif mysql # not compatible
query I rowsort label-5188
SELECT DISTINCT + COUNT ( * ) * - + NULLIF ( - 49, + COUNT ( * ) * - + 36 * + 15 ) + + ( 73 ) * 9
----
706

onlyif mysql # aggregate syntax: 
query I rowsort label-5189
SELECT DISTINCT - 74 + + 30 * COUNT( * ) * COALESCE ( 78, + 24 ) AS col2
----
2266

skipif mysql # not compatible
query I rowsort label-5189
SELECT DISTINCT - 74 + + 30 * COUNT ( * ) * COALESCE ( 78, + 24 ) AS col2
----
2266

query I rowsort
SELECT 90 * - 77 * 91 AS col2
----
-630630

query I rowsort
SELECT ALL + 56 * + 78
----
4368

query I rowsort
SELECT ALL 62 * + 21
----
1302

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

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

query II rowsort
SELECT DISTINCT 80 * - + 28 AS col0, 87 + + + 21 * + ( - 32 ) AS col0
----
-2240
-585

query I rowsort
SELECT ALL 56 * - 27
----
-1512

query I rowsort
SELECT ALL 15 * - 29
----
-435

query I rowsort
SELECT ( - - 91 ) + + 74 + ( - 17 )
----
148

query I rowsort
SELECT 79 * + 77
----
6083

onlyif mysql # aggregate syntax: 
query I rowsort label-5199
SELECT + 38 * - 32 * COUNT( * ) * + - 49 + + 67 AS col1
----
59651

skipif mysql # not compatible
query I rowsort label-5199
SELECT + 38 * - 32 * COUNT ( * ) * + - 49 + + 67 AS col1
----
59651

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

skipif mysql # not compatible
query I rowsort label-5200
SELECT 87 - + COUNT ( * ) AS col0
----
86

query I rowsort
SELECT DISTINCT - 51 * + 71 - ( + 4 )
----
-3625

query II rowsort
SELECT DISTINCT - COALESCE ( - - 13, 33 ) + + 27, + 54 AS col1
----
14
54

query I rowsort
SELECT ALL - + 58 + - 10 AS col0
----
-68

query I rowsort
SELECT - 95 + - + 70
----
-165

onlyif mysql # aggregate syntax: 
query I rowsort label-5205
SELECT ALL - COUNT( * ) * - 27 * 31 AS col0
----
837

skipif mysql # not compatible
query I rowsort label-5205
SELECT ALL - COUNT ( * ) * - 27 * 31 AS col0
----
837

onlyif mysql # aggregate syntax: 
query I rowsort label-5206
SELECT + MIN( + + 10 ) AS col0
----
10

skipif mysql # not compatible
query I rowsort label-5206
SELECT + MIN ( + + 10 ) AS col0
----
10

query I rowsort
SELECT ALL + CASE 57 WHEN + + 19 THEN - - 71 ELSE NULL END + 38 AS col2
----
NULL

query I rowsort
SELECT DISTINCT + - 16 + + ( ( - 6 ) )
----
-22

onlyif mysql # DIV for integer division: 
query I rowsort label-5209
SELECT + 88 DIV 11 DIV - 39 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-5209
SELECT + 88 / 11 / - 39 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5210
SELECT COUNT( * ) + - - 91 * 87 - - 56
----
7974

skipif mysql # not compatible
query I rowsort label-5210
SELECT COUNT ( * ) + - - 91 * 87 - - 56
----
7974

query I rowsort
SELECT - 97 * + 73 + - - 28 + - + 14
----
-7067

onlyif mysql # DIV for integer division: 
query II rowsort label-5212
SELECT ALL 36 DIV - 41 AS col0, - 12 * - 95 col2
----
0
1140

skipif mysql # not compatible
query II rowsort label-5212
SELECT ALL 36 / - 41 AS col0, - 12 * - 95 col2
----
0
1140

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5213
SELECT ALL MIN( ALL - 19 ) + - 4 * CAST( NULL AS SIGNED ) + + ( + 23 ) / - 9 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5213
SELECT ALL MIN ( ALL - 19 ) + - 4 * CAST ( NULL AS INTEGER ) + + ( + 23 ) / - 9 AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5214
SELECT ALL + 87 DIV + 37
----
2

skipif mysql # not compatible
query I rowsort label-5214
SELECT ALL + 87 / + 37
----
2

onlyif mysql # aggregate syntax: 
query II rowsort label-5215
SELECT DISTINCT - 3 AS col2, - MIN( 20 ) + 88 + - + ( 2 ) * - 26 AS col1
----
-3
120

skipif mysql # not compatible
query II rowsort label-5215
SELECT DISTINCT - 3 AS col2, - MIN ( 20 ) + 88 + - + ( 2 ) * - 26 AS col1
----
-3
120

onlyif mysql # DIV for integer division: 
query I rowsort label-5216
SELECT ALL + 78 DIV - 27
----
-2

skipif mysql # not compatible
query I rowsort label-5216
SELECT ALL + 78 / - 27
----
-2

query I rowsort
SELECT 45 * + 48
----
2160

onlyif mysql # aggregate syntax: 
query I rowsort label-5218
SELECT 51 + + COUNT( * ) + - - 61 AS col2
----
113

skipif mysql # not compatible
query I rowsort label-5218
SELECT 51 + + COUNT ( * ) + - - 61 AS col2
----
113

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5219
SELECT 39 AS col0, 70 - 78 * SUM( 63 ) * - 48 + + COUNT( * ) - + - CAST( - 67 AS SIGNED ) * + + 64 * + 56 * - 68 + - + 8 + 46
----
39
16564685

skipif mysql # not compatible
query II rowsort label-5219
SELECT 39 AS col0, 70 - 78 * SUM ( 63 ) * - 48 + + COUNT ( * ) - + - CAST ( - 67 AS INTEGER ) * + + 64 * + 56 * - 68 + - + 8 + 46
----
39
16564685

onlyif mysql # aggregate syntax: 
query II rowsort label-5220
SELECT DISTINCT COUNT( * ) - ( COUNT( * ) ) AS col1, SUM( + + 35 ) * + 1 AS col0
----
0
35

skipif mysql # not compatible
query II rowsort label-5220
SELECT DISTINCT COUNT ( * ) - ( COUNT ( * ) ) AS col1, SUM ( + + 35 ) * + 1 AS col0
----
0
35

query I rowsort
SELECT DISTINCT + 97 * - 23
----
-2231

query I rowsort
SELECT DISTINCT 80 - + - 2
----
82

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5224
SELECT MIN( + 94 ) + + MIN( ALL ( - COALESCE ( 33, - - 41 ) ) ) col0
----
61

skipif mysql # not compatible
query I rowsort label-5224
SELECT MIN ( + 94 ) + + MIN ( ALL ( - COALESCE ( 33, - - 41 ) ) ) col0
----
61

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-5225
SELECT COUNT( 74 ) DIV 49 AS col2, 32 + - 28 + + 52 - MAX( DISTINCT + 87 ) + - 4 * - 15 * + CASE 24 WHEN - 71 * - + 5 THEN NULL WHEN - 26 + + - 94 - + - 16 + + - CASE 57 WHEN - + 64 THEN NULL WHEN 29 THEN - - 44 * - NULLIF ( 2, - 48 * NULLIF ( + - AVG ( + - 75 ), - 34 * + - COUNT( * ) DIV + 32 ) ) * 66 * - - 87 WHEN + + NULLIF ( - COALESCE ( - 30, + - 85 ), + CAST( - 48 AS SIGNED ) ) THEN - 77 ELSE 85 * - - 2 * + ( + - ( NULLIF ( 5, 98 * MIN( DISTINCT - - 21 ) * + + 94 * + ( NULLIF ( 57, COUNT( * ) + + 11 * + 89 ) ) + MAX( - 77 ) ) ) ) * - 94 END * + 26 THEN - 16 + 97 * - COALESCE ( 17 + - 31, 97 * + 37 ) ELSE NULL END + + 45 col2
----
0
NULL

skipif mysql # not compatible
query II rowsort label-5225
SELECT COUNT ( 74 ) / 49 AS col2, 32 + - 28 + + 52 - MAX ( DISTINCT + 87 ) + - 4 * - 15 * + CASE 24 WHEN - 71 * - + 5 THEN NULL WHEN - 26 + + - 94 - + - 16 + + - CASE 57 WHEN - + 64 THEN NULL WHEN 29 THEN - - 44 * - NULLIF ( 2, - 48 * NULLIF ( + - AVG ( + - 75 ), - 34 * + - COUNT ( * ) / + 32 ) ) * 66 * - - 87 WHEN + + NULLIF ( - COALESCE ( - 30, + - 85 ), + CAST ( - 48 AS INTEGER ) ) THEN - 77 ELSE 85 * - - 2 * + ( + - ( NULLIF ( 5, 98 * MIN ( DISTINCT - - 21 ) * + + 94 * + ( NULLIF ( 57, COUNT ( * ) + + 11 * + 89 ) ) + MAX ( - 77 ) ) ) ) * - 94 END * + 26 THEN - 16 + 97 * - COALESCE ( 17 + - 31, 97 * + 37 ) ELSE NULL END + + 45 col2
----
0
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5226
SELECT ( + 65 ) * + + 62 + + - COUNT( * ) AS col2
----
4029

skipif mysql # not compatible
query I rowsort label-5226
SELECT ( + 65 ) * + + 62 + + - COUNT ( * ) AS col2
----
4029

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5227
SELECT ( - 48 ) + CASE CASE - + 39 WHEN 56 + - 54 THEN + SUM( + 79 ) WHEN + + 42 THEN NULL WHEN CAST( NULL AS SIGNED ) THEN + 30 * - 53 * + + CAST( + 57 AS DECIMAL ) ELSE + - COUNT( * ) END WHEN 57 * 26 / - + COUNT( * ) - 3 * + + 75 THEN NULL WHEN - - 53 + + 20 + + - COUNT( * ) THEN 70 END + - 63 * 79 / 85 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5227
SELECT ( - 48 ) + CASE CASE - + 39 WHEN 56 + - 54 THEN + SUM ( + 79 ) WHEN + + 42 THEN NULL WHEN CAST ( NULL AS INTEGER ) THEN + 30 * - 53 * + + CAST ( + 57 AS REAL ) ELSE + - COUNT ( * ) END WHEN 57 * 26 / - + COUNT ( * ) - 3 * + + 75 THEN NULL WHEN - - 53 + + 20 + + - COUNT ( * ) THEN 70 END + - 63 * 79 / 85 AS col0
----
NULL

query I rowsort
SELECT 31 + + 22 + 18
----
71

onlyif mysql # DIV for integer division: 
query II rowsort label-5229
SELECT ALL 24 AS col0, 28 * - ( - ( + - 12 ) ) * - 49 - + 17 DIV + 11 col1
----
24
16463

skipif mysql # not compatible
query II rowsort label-5229
SELECT ALL 24 AS col0, 28 * - ( - ( + - 12 ) ) * - 49 - + 17 / + 11 col1
----
24
16463

onlyif mysql # DIV for integer division: 
query I rowsort label-5230
SELECT ( - 6 ) DIV + 36
----
0

skipif mysql # not compatible
query I rowsort label-5230
SELECT ( - 6 ) / + 36
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5231
SELECT 40 + 2 * COUNT( * )
----
42

skipif mysql # not compatible
query I rowsort label-5231
SELECT 40 + 2 * COUNT ( * )
----
42

query I rowsort
SELECT 14 * 76
----
1064

onlyif mysql # aggregate syntax: 
query I rowsort label-5233
SELECT ALL NULLIF ( 63, - COUNT( * ) * COALESCE ( 79, + 99 ) ) * CASE + 36 WHEN - 45 * + 81 THEN ( - 24 ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5233
SELECT ALL NULLIF ( 63, - COUNT ( * ) * COALESCE ( 79, + 99 ) ) * CASE + 36 WHEN - 45 * + 81 THEN ( - 24 ) END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5234
SELECT DISTINCT + 4 * + 91 + 38 * - ( + COUNT( * ) * - 2 ) col0
----
440

skipif mysql # not compatible
query I rowsort label-5234
SELECT DISTINCT + 4 * + 91 + 38 * - ( + COUNT ( * ) * - 2 ) col0
----
440

onlyif mysql # aggregate syntax: 
query I rowsort label-5235
SELECT ALL - COUNT( * ) * + 55 + + 14
----
-41

skipif mysql # not compatible
query I rowsort label-5235
SELECT ALL - COUNT ( * ) * + 55 + + 14
----
-41

query I rowsort
SELECT 54 * + 81 - 31
----
4343

onlyif mysql # aggregate syntax: 
query I rowsort label-5237
SELECT COALESCE ( 20, - 8 ) * SUM( + 79 ) AS col2
----
1580

skipif mysql # not compatible
query I rowsort label-5237
SELECT COALESCE ( 20, - 8 ) * SUM ( + 79 ) AS col2
----
1580

query I rowsort
SELECT 65 * + 50
----
3250

query I rowsort
SELECT ALL + 94 * - 19 + - 98
----
-1884

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

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5242
SELECT + 47 * - COUNT( * ) - - 70 DIV - 59
----
-48

skipif mysql # not compatible
query I rowsort label-5242
SELECT + 47 * - COUNT ( * ) - - 70 / - 59
----
-48

query I rowsort
SELECT DISTINCT NULLIF ( ( 56 ), + ( 83 ) * - 94 ) * - 17 - 81 AS col1
----
-1033

query I rowsort
SELECT DISTINCT + 1 * 83
----
83

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

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

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

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

query I rowsort
SELECT - ( 11 ) * + ( 9 )
----
-99

query I rowsort
SELECT + 97 * - 63 + 84 * + NULLIF ( + 33, 93 ) AS col2
----
-3339

query I rowsort
SELECT - ( + NULLIF ( 22, 33 ) ) * + ( 73 ) - 44
----
-1650

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

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

query I rowsort
SELECT + 87 + - 29 * - 29 AS col2
----
928

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5252
SELECT ALL NULLIF ( - 44, - COALESCE ( - COUNT( * ), 39 ) * - NULLIF ( 32 * 47, - COUNT( * ) ) ) DIV 17
----
-2

skipif mysql # not compatible
query I rowsort label-5252
SELECT ALL NULLIF ( - 44, - COALESCE ( - COUNT ( * ), 39 ) * - NULLIF ( 32 * 47, - COUNT ( * ) ) ) / 17
----
-2

onlyif mysql # DIV for integer division: 
query I rowsort label-5253
SELECT DISTINCT - 39 DIV 12
----
-3

skipif mysql # not compatible
query I rowsort label-5253
SELECT DISTINCT - 39 / 12
----
-3

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

skipif mysql # not compatible
query I rowsort label-5254
SELECT ALL - COUNT ( * ) / - 8 AS col2
----
0

query I rowsort
SELECT - 15 + - 46 col2
----
-61

query I rowsort
SELECT DISTINCT NULLIF ( 1, 26 ) + 40
----
41

query I rowsort
SELECT DISTINCT + 67 + - 59
----
8

query I rowsort
SELECT DISTINCT NULLIF ( 23, + 83 )
----
23

query I rowsort
SELECT + + 45 - COALESCE ( 30, - 91 ) * 17 col2
----
-465

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5260
SELECT ALL + - 50 + NULLIF ( MIN( - 26 ) + 95 * 2, + CAST( 43 AS SIGNED ) ) AS col0
----
114

skipif mysql # not compatible
query I rowsort label-5260
SELECT ALL + - 50 + NULLIF ( MIN ( - 26 ) + 95 * 2, + CAST ( 43 AS INTEGER ) ) AS col0
----
114

query I rowsort
SELECT DISTINCT 28 + 61 AS col1
----
89

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

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5263
SELECT + + CAST( - 94 AS SIGNED ) DIV - CASE + 99 WHEN + 5 * ( ( + ( ( + 9 ) ) ) ) + 43 THEN NULL ELSE 69 END AS col0
----
1

skipif mysql # not compatible
query I rowsort label-5263
SELECT + + CAST ( - 94 AS INTEGER ) / - CASE + 99 WHEN + 5 * ( ( + ( ( + 9 ) ) ) ) + 43 THEN NULL ELSE 69 END AS col0
----
1

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

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

query I rowsort
SELECT + 29 + 56
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-5266
SELECT - - COUNT( * ) * 86 + 72
----
158

skipif mysql # not compatible
query I rowsort label-5266
SELECT - - COUNT ( * ) * 86 + 72
----
158

query I rowsort
SELECT + 13 - - ( - 7 ) col2
----
6

query I rowsort
SELECT + - 18 * + 32 AS col2
----
-576

query I rowsort
SELECT + ( 26 ) * ( - 37 ) AS col2
----
-962

query I rowsort
SELECT ALL - 74 * - 72 AS col0
----
5328

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5271
SELECT + - CAST( - 61 AS SIGNED ) + 93
----
154

skipif mysql # not compatible
query I rowsort label-5271
SELECT + - CAST ( - 61 AS INTEGER ) + 93
----
154

query I rowsort
SELECT ALL - 63 * + 32 AS col2
----
-2016

onlyif mysql # aggregate syntax: 
query I rowsort label-5273
SELECT ALL + MIN( 94 ) AS col0
----
94

skipif mysql # not compatible
query I rowsort label-5273
SELECT ALL + MIN ( 94 ) AS col0
----
94

query I rowsort
SELECT DISTINCT CASE + 66 WHEN + 36 + 80 THEN 38 / 36 END * + 95
----
NULL

query I rowsort
SELECT DISTINCT 71 * + 7
----
497

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5277
SELECT + 28 DIV 58 + + 75
----
75

skipif mysql # not compatible
query I rowsort label-5277
SELECT + 28 / 58 + + 75
----
75

query I rowsort
SELECT - 70 + - + 90
----
-160

query I rowsort
SELECT + ( + + 52 ) * NULLIF ( 57 - - 58, + 83 ) AS col0
----
5980

query I rowsort
SELECT NULLIF ( - + 82, + 90 * + 8 + COALESCE ( + 10, + 41 ) )
----
-82

query I rowsort
SELECT CASE + 50 WHEN + 90 THEN 2 WHEN 90 THEN NULL ELSE NULL END * + NULLIF ( 58 + + AVG ( 63 ), - 73 + - NULLIF ( 38, COALESCE ( + CASE 54 WHEN 12 + 52 * - 19 THEN - ( 71 ) / 13 END, 86, - 11 * 88 - - 6 ) ) ) + 43 AS col0
----
NULL

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

skipif mysql # not compatible
query I rowsort label-5282
SELECT COALESCE ( + COUNT ( * ), 19 * - COUNT ( * ), - 91 )
----
1

query I rowsort
SELECT - 27 * - 99
----
2673

onlyif mysql # aggregate syntax: 
query I rowsort label-5284
SELECT DISTINCT - 43 * - + COUNT( * ) * 84 col1
----
3612

skipif mysql # not compatible
query I rowsort label-5284
SELECT DISTINCT - 43 * - + COUNT ( * ) * 84 col1
----
3612

query I rowsort
SELECT - 74 - - + 18 + 31 * 7 AS col0
----
161

query I rowsort
SELECT ALL - NULLIF ( - + 26, ( 28 ) ) * 36
----
936

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5287
SELECT - 91 * + COUNT( DISTINCT - 87 ) * + CAST( - 9 + + NULLIF ( 74, ( 61 ) ) * 50 AS SIGNED ) AS col2
----
-335881

skipif mysql # not compatible
query I rowsort label-5287
SELECT - 91 * + COUNT ( DISTINCT - 87 ) * + CAST ( - 9 + + NULLIF ( 74, ( 61 ) ) * 50 AS INTEGER ) AS col2
----
-335881

onlyif mysql # aggregate syntax: 
query I rowsort label-5288
SELECT - 97 + - COUNT( * ) * - 20
----
-77

skipif mysql # not compatible
query I rowsort label-5288
SELECT - 97 + - COUNT ( * ) * - 20
----
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-5289
SELECT DISTINCT - 43 * - - ( + 55 ) + + MIN( DISTINCT 26 + 23 ) AS col1
----
-2316

skipif mysql # not compatible
query I rowsort label-5289
SELECT DISTINCT - 43 * - - ( + 55 ) + + MIN ( DISTINCT 26 + 23 ) AS col1
----
-2316

query I rowsort
SELECT DISTINCT CASE - 29 WHEN - 25 THEN NULL WHEN 84 THEN 66 WHEN 13 THEN NULL END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5291
SELECT ALL COALESCE ( + + 56, 55 + 26, - 32 DIV + 49 ) AS col2
----
56

skipif mysql # not compatible
query I rowsort label-5291
SELECT ALL COALESCE ( + + 56, 55 + 26, - 32 / + 49 ) AS col2
----
56

onlyif mysql # DIV for integer division: 
query I rowsort label-5292
SELECT DISTINCT - ( - - 82 ) DIV 11 AS col1
----
-7

skipif mysql # not compatible
query I rowsort label-5292
SELECT DISTINCT - ( - - 82 ) / 11 AS col1
----
-7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5293
SELECT ALL + + 22 + CAST( CAST( 46 AS SIGNED ) AS SIGNED ) + + CAST( NULL AS SIGNED ) * - COUNT( DISTINCT ( 34 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-5293
SELECT ALL + + 22 + CAST ( CAST ( 46 AS INTEGER ) AS INTEGER ) + + CAST ( NULL AS INTEGER ) * - COUNT ( DISTINCT ( 34 ) )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5294
SELECT ALL 91 * MAX( + 15 ) DIV - 66
----
-20

skipif mysql # not compatible
query I rowsort label-5294
SELECT ALL 91 * MAX ( + 15 ) / - 66
----
-20

query I rowsort
SELECT - 61 + + 84 + - 37 col1
----
-14

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

skipif mysql # not compatible
query I rowsort label-5296
SELECT DISTINCT - - 10 / - - 7
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5297
SELECT + - COUNT( * ) + + + 96 AS col0
----
95

skipif mysql # not compatible
query I rowsort label-5297
SELECT + - COUNT ( * ) + + + 96 AS col0
----
95

query I rowsort
SELECT DISTINCT + - 97 * - + 62 + 25 AS col0
----
6039

onlyif mysql # aggregate syntax: 
query I rowsort label-5299
SELECT ALL - ( - - 61 ) - + COUNT( * )
----
-62

skipif mysql # not compatible
query I rowsort label-5299
SELECT ALL - ( - - 61 ) - + COUNT ( * )
----
-62

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

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

skipif mysql # not compatible
query I rowsort label-5301
SELECT DISTINCT + COUNT ( * ) - - - 27 AS col1
----
-26

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5302
SELECT ALL - 18 - COALESCE ( COUNT( * ), CAST( 20 AS SIGNED ) * COUNT( * ) )
----
-19

skipif mysql # not compatible
query I rowsort label-5302
SELECT ALL - 18 - COALESCE ( COUNT ( * ), CAST ( 20 AS INTEGER ) * COUNT ( * ) )
----
-19

query I rowsort
SELECT - 59 * - ( 8 ) - - 24 AS col0
----
496

query I rowsort
SELECT 5 * + 94 + 19
----
489

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5305
SELECT + 71 DIV - + COUNT( * ) - ( 81 ) AS col1
----
-152

skipif mysql # not compatible
query I rowsort label-5305
SELECT + 71 / - + COUNT ( * ) - ( 81 ) AS col1
----
-152

query I rowsort
SELECT ( + 94 ) * - 62
----
-5828

onlyif mysql # DIV for integer division: 
query I rowsort label-5307
SELECT DISTINCT 92 DIV 97 * 3 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-5307
SELECT DISTINCT 92 / 97 * 3 AS col0
----
0

query I rowsort
SELECT 74 * - 79 * + 38
----
-222148

query I rowsort
SELECT ALL 52 * 97
----
5044

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5311
SELECT ALL - MIN( ALL 39 ) AS col2
----
-39

skipif mysql # not compatible
query I rowsort label-5311
SELECT ALL - MIN ( ALL 39 ) AS col2
----
-39

query I rowsort
SELECT DISTINCT 57 + + - 39 * - + 73 * - COALESCE ( - 78 * - 74, + NULLIF ( + 69, 55 ) ) AS col1
----
-16432827

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5314
SELECT ALL SUM( + - 83 ) + + - 6 col1
----
-89

skipif mysql # not compatible
query I rowsort label-5314
SELECT ALL SUM ( + - 83 ) + + - 6 col1
----
-89

query II rowsort
SELECT 98 AS col2, 85 + - 29 AS col1
----
98
56

onlyif mysql # aggregate syntax: 
query I rowsort label-5316
SELECT ( + 78 ) * - 31 + 99 * MAX( 93 )
----
6789

skipif mysql # not compatible
query I rowsort label-5316
SELECT ( + 78 ) * - 31 + 99 * MAX ( 93 )
----
6789

onlyif mysql # aggregate syntax: 
query I rowsort label-5317
SELECT + NULLIF ( - 46, 54 * 12 ) * + COUNT( * ) + - 81
----
-127

skipif mysql # not compatible
query I rowsort label-5317
SELECT + NULLIF ( - 46, 54 * 12 ) * + COUNT ( * ) + - 81
----
-127

query I rowsort
SELECT DISTINCT 45 + + 24 AS col0
----
69

query I rowsort
SELECT 99 + + 56
----
155

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5320
SELECT 67 * + + CAST( NULL AS SIGNED ) - + 58 + - COUNT( * ) * - 28 AS col0
----
NULL

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

query II rowsort
SELECT + 8, 27 + ( + 34 ) AS col2
----
8
61

onlyif mysql # aggregate syntax: 
query I rowsort label-5322
SELECT ALL - ( + 23 ) + COUNT( * ) col2
----
-22

skipif mysql # not compatible
query I rowsort label-5322
SELECT ALL - ( + 23 ) + COUNT ( * ) col2
----
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-5323
SELECT ALL + COUNT( 35 ) + + + 40 + 74 * - 91 AS col0
----
-6693

skipif mysql # not compatible
query I rowsort label-5323
SELECT ALL + COUNT ( 35 ) + + + 40 + 74 * - 91 AS col0
----
-6693

query II rowsort
SELECT 92 AS col0, 2 AS col0
----
92
2

query I rowsort
SELECT 24 + 32 + - 26
----
30

query I rowsort
SELECT 30 * 57
----
1710

query I rowsort
SELECT ALL 44 + 37
----
81

query I rowsort
SELECT - 89 * - + 63 * + + 67
----
375669

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

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5331
SELECT + SUM( ALL - 25 ) + - + SUM( 67 ) DIV MAX( ALL 73 ) AS col2
----
-25

skipif mysql # not compatible
query I rowsort label-5331
SELECT + SUM ( ALL - 25 ) + - + SUM ( 67 ) / MAX ( ALL 73 ) AS col2
----
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-5332
SELECT COALESCE ( - + 22, - - 4 + COUNT( * ) ) * + COUNT( * )
----
-22

skipif mysql # not compatible
query I rowsort label-5332
SELECT COALESCE ( - + 22, - - 4 + COUNT ( * ) ) * + COUNT ( * )
----
-22

query I rowsort
SELECT + COALESCE ( 97, - 23 * - 4 + 29 * + 72 ) AS col0
----
97

query II rowsort
SELECT DISTINCT 45 col2, - 15 + 10 * 44 AS col0
----
45
425

query I rowsort
SELECT 89 - - 18 + - + 51 + - 6 AS col2
----
50

onlyif mysql # aggregate syntax: 
query II rowsort label-5336
SELECT DISTINCT + 64, - NULLIF ( - MAX( + 48 ), 57 ) AS col2
----
64
48

skipif mysql # not compatible
query II rowsort label-5336
SELECT DISTINCT + 64, - NULLIF ( - MAX ( + 48 ), 57 ) AS col2
----
64
48

query I rowsort
SELECT - ( + 86 ) + + - COALESCE ( - 69, + 63 * 8, 11 ) * - 8
----
-638

onlyif mysql # aggregate syntax: 
query I rowsort label-5338
SELECT ALL MAX( + + ( 86 ) ) AS col2
----
86

skipif mysql # not compatible
query I rowsort label-5338
SELECT ALL MAX ( + + ( 86 ) ) AS col2
----
86

onlyif mysql # aggregate syntax: 
query II rowsort label-5339
SELECT DISTINCT - 41, 4 * + 70 + + MIN( ALL - 58 ) AS col2
----
-41
222

skipif mysql # not compatible
query II rowsort label-5339
SELECT DISTINCT - 41, 4 * + 70 + + MIN ( ALL - 58 ) AS col2
----
-41
222

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5341
SELECT DISTINCT + + 65 DIV 29 + - COUNT( * ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-5341
SELECT DISTINCT + + 65 / 29 + - COUNT ( * ) AS col0
----
1

query I rowsort
SELECT - ( + 60 ) * + - 14 AS col2
----
840

query I rowsort
SELECT + 28 + - 77 + - + 84 col1
----
-133

query I rowsort
SELECT + 97 - 73 AS col2
----
24

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5345
SELECT ALL - COALESCE ( + + COUNT( * ), - SUM( 52 ) DIV - 48, 83 ) * + 36 AS col2
----
-36

skipif mysql # not compatible
query I rowsort label-5345
SELECT ALL - COALESCE ( + + COUNT ( * ), - SUM ( 52 ) / - 48, 83 ) * + 36 AS col2
----
-36

query I rowsort
SELECT - 44 * - ( 42 ) + + 23 * - 59 + 50
----
541

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

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5349
SELECT + + 84 DIV + 70 + COUNT( * )
----
2

skipif mysql # not compatible
query I rowsort label-5349
SELECT + + 84 / + 70 + COUNT ( * )
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-5350
SELECT DISTINCT 11 * NULLIF ( - COUNT( * ), 51 * 49 ) * 98
----
-1078

skipif mysql # not compatible
query I rowsort label-5350
SELECT DISTINCT 11 * NULLIF ( - COUNT ( * ), 51 * 49 ) * 98
----
-1078

query I rowsort
SELECT ALL - 70 + 15 AS col0
----
-55

query I rowsort
SELECT DISTINCT + 15 + - 75 - - 32 * - ( - 79 ) - - 79 AS col2
----
2547

query I rowsort
SELECT 70 * + 15 + 6
----
1056

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5354
SELECT - CAST( + 20 AS SIGNED ) DIV 2 + - 98 AS col2
----
-108

skipif mysql # not compatible
query I rowsort label-5354
SELECT - CAST ( + 20 AS INTEGER ) / 2 + - 98 AS col2
----
-108

onlyif mysql # aggregate syntax: 
query I rowsort label-5355
SELECT 99 * + CASE COUNT( * ) WHEN - 91 / - MIN( 94 ) - 49 THEN NULL ELSE 10 * 86 END
----
85140

skipif mysql # not compatible
query I rowsort label-5355
SELECT 99 * + CASE COUNT ( * ) WHEN - 91 / - MIN ( 94 ) - 49 THEN NULL ELSE 10 * 86 END
----
85140

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5356
SELECT COUNT( * ) + - CASE 87 WHEN - - CAST( - COUNT( * ) AS SIGNED ) THEN - NULLIF ( 67, 68 - 48 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-5356
SELECT COUNT ( * ) + - CASE 87 WHEN - - CAST ( - COUNT ( * ) AS INTEGER ) THEN - NULLIF ( 67, 68 - 48 ) END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5357
SELECT ALL - COALESCE ( - COALESCE ( + + COUNT( * ), - 13 ), 12 * + CASE + 78 WHEN - 16 THEN - ( - 24 ) END, 40 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-5357
SELECT ALL - COALESCE ( - COALESCE ( + + COUNT ( * ), - 13 ), 12 * + CASE + 78 WHEN - 16 THEN - ( - 24 ) END, 40 ) AS col2
----
1

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

skipif mysql # not compatible
query I rowsort label-5358
SELECT ALL 39 + - - CAST ( NULL AS REAL ) AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5359
SELECT DISTINCT + 8 DIV + 18 * + 72 * + MIN( + 66 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-5359
SELECT DISTINCT + 8 / + 18 * + 72 * + MIN ( + 66 ) AS col0
----
0

query I rowsort
SELECT - 64 * + 36 + + COALESCE ( + - 49, + 7 * 51 ) - 54 * + 72 AS col0
----
-6241

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5361
SELECT DISTINCT COALESCE ( ( + ( - COUNT( * ) ) ), - 38, - 67 * 84 - COUNT( * ), CAST( NULL AS SIGNED ) ) + + 89 * 65 AS col0
----
5784

skipif mysql # not compatible
query I rowsort label-5361
SELECT DISTINCT COALESCE ( ( + ( - COUNT ( * ) ) ), - 38, - 67 * 84 - COUNT ( * ), CAST ( NULL AS INTEGER ) ) + + 89 * 65 AS col0
----
5784

query I rowsort
SELECT ALL 3 + COALESCE ( 63, - - 5 + - 64 ) col2
----
66

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5363
SELECT COUNT( * ) * - COUNT( * ) AS col0, 3 * - 39 DIV - COUNT( * ) AS col1
----
-1
117

skipif mysql # not compatible
query II rowsort label-5363
SELECT COUNT ( * ) * - COUNT ( * ) AS col0, 3 * - 39 / - COUNT ( * ) AS col1
----
-1
117

query I rowsort
SELECT ( 41 ) * + ( 96 )
----
3936

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5365
SELECT - CAST( - ( - + 0 ) AS SIGNED ) * COUNT( * ) + - 60 + + 71 AS col2
----
11

skipif mysql # not compatible
query I rowsort label-5365
SELECT - CAST ( - ( - + 0 ) AS INTEGER ) * COUNT ( * ) + - 60 + + 71 AS col2
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-5366
SELECT MIN( - - 5 ) * 77 + - - 75 - + ( + 50 )
----
410

skipif mysql # not compatible
query I rowsort label-5366
SELECT MIN ( - - 5 ) * 77 + - - 75 - + ( + 50 )
----
410

query I rowsort
SELECT COALESCE ( - 75, + - 29 + ( - 82 ) )
----
-75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5368
SELECT 25 + - 16 AS col0, COUNT( * ) * - CAST( NULL AS SIGNED )
----
9
NULL

skipif mysql # not compatible
query II rowsort label-5368
SELECT 25 + - 16 AS col0, COUNT ( * ) * - CAST ( NULL AS INTEGER )
----
9
NULL

query I rowsort
SELECT ALL NULLIF ( + - 39, 64 + + 4 * 47 ) - 33
----
-72

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

skipif mysql # not compatible
query I rowsort label-5370
SELECT DISTINCT - COUNT ( * ) * - CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5371
SELECT + - 31 + - 77 * + MIN( - 56 )
----
4281

skipif mysql # not compatible
query I rowsort label-5371
SELECT + - 31 + - 77 * + MIN ( - 56 )
----
4281

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

skipif mysql # not compatible
query I rowsort label-5372
SELECT + COUNT ( * ) * + COUNT ( 65 ) * 39 / - 84
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5373
SELECT + + 56 + - 41 * ( SUM( COALESCE ( 49, 85 ) ) )
----
-1953

skipif mysql # not compatible
query I rowsort label-5373
SELECT + + 56 + - 41 * ( SUM ( COALESCE ( 49, 85 ) ) )
----
-1953

query I rowsort
SELECT + - 81 + + 5 * + - 15 AS col0
----
-156

query I rowsort
SELECT - + ( + 68 ) * - 69 AS col2
----
4692

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5376
SELECT ALL - CASE + 84 WHEN - - 64 * - 35 THEN + CASE - COUNT( 83 ) WHEN 2 THEN NULL ELSE + MAX( ALL CAST( + 3 AS SIGNED ) ) END ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-5376
SELECT ALL - CASE + 84 WHEN - - 64 * - 35 THEN + CASE - COUNT ( 83 ) WHEN 2 THEN NULL ELSE + MAX ( ALL CAST ( + 3 AS INTEGER ) ) END ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5377
SELECT - + CAST( + ( - 88 ) AS SIGNED ) DIV - - 8 + + COUNT( * ) AS col1
----
12

skipif mysql # not compatible
query I rowsort label-5377
SELECT - + CAST ( + ( - 88 ) AS INTEGER ) / - - 8 + + COUNT ( * ) AS col1
----
12

query I rowsort
SELECT DISTINCT + 24 * - + 72
----
-1728

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5379
SELECT DISTINCT - 32 + + 86 + - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5379
SELECT DISTINCT - 32 + + 86 + - CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT DISTINCT + 4 * - NULLIF ( + 96, + - 56 ) * 85 + NULLIF ( - 65, 39 ) AS col2
----
-32705

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5381
SELECT DISTINCT + COALESCE ( 26, - - 19 + - + 7 DIV - - 47 DIV + COUNT( - ( CAST( NULL AS SIGNED ) ) DIV 69 ) )
----
26

skipif mysql # not compatible
query I rowsort label-5381
SELECT DISTINCT + COALESCE ( 26, - - 19 + - + 7 / - - 47 / + COUNT ( - ( CAST ( NULL AS INTEGER ) ) / 69 ) )
----
26

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5382
SELECT + ( - NULLIF ( - 35, - - CAST( NULL AS SIGNED ) / - 57 / COUNT( - 42 * 47 ) ) ) col0
----
35

skipif mysql # not compatible
query I rowsort label-5382
SELECT + ( - NULLIF ( - 35, - - CAST ( NULL AS INTEGER ) / - 57 / COUNT ( - 42 * 47 ) ) ) col0
----
35

onlyif mysql # DIV for integer division: 
query I rowsort label-5383
SELECT - 87 DIV 6 DIV ( + 94 )
----
0

skipif mysql # not compatible
query I rowsort label-5383
SELECT - 87 / 6 / ( + 94 )
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5384
SELECT + ( 29 ) * + + CAST( - - COUNT( * ) AS SIGNED ) * - 34 * - 73 - + CAST( NULL AS DECIMAL ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5384
SELECT + ( 29 ) * + + CAST ( - - COUNT ( * ) AS INTEGER ) * - 34 * - 73 - + CAST ( NULL AS REAL ) AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5385
SELECT ALL + 93 DIV - 26
----
-3

skipif mysql # not compatible
query I rowsort label-5385
SELECT ALL + 93 / - 26
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-5386
SELECT ALL + COUNT( * ) * + 36 + + + 25 + + 53 * + 21 * - 78 + - 90 * COUNT( * ) AS col0
----
-86843

skipif mysql # not compatible
query I rowsort label-5386
SELECT ALL + COUNT ( * ) * + 36 + + + 25 + + 53 * + 21 * - 78 + - 90 * COUNT ( * ) AS col0
----
-86843

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5387
SELECT ( + CAST( NULL AS SIGNED ) ) / + 42 + + 84 + + + 60 + - 33 - + 6 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5387
SELECT ( + CAST ( NULL AS INTEGER ) ) / + 42 + + 84 + + + 60 + - 33 - + 6 AS col0
----
NULL

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5389
SELECT COALESCE ( + 55, - 46 DIV - - 37, - - 24 ) AS col2
----
55

skipif mysql # not compatible
query I rowsort label-5389
SELECT COALESCE ( + 55, - 46 / - - 37, - - 24 ) AS col2
----
55

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5390
SELECT ALL + COALESCE ( - 67, 44 DIV - CAST( NULL AS SIGNED ) - - + 74 + - 56 DIV - COUNT( * ) ) AS col1
----
-67

skipif mysql # not compatible
query I rowsort label-5390
SELECT ALL + COALESCE ( - 67, 44 / - CAST ( NULL AS INTEGER ) - - + 74 + - 56 / - COUNT ( * ) ) AS col1
----
-67

query I rowsort
SELECT COALESCE ( + 29, + ( - 80 ) - 58 ) AS col0
----
29

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5392
SELECT DISTINCT + 0 * ( - - 82 ) DIV + 86 * - 61 - + COUNT( DISTINCT CASE 24 WHEN 17 THEN NULL ELSE 37 DIV 80 END )
----
-1

skipif mysql # not compatible
query I rowsort label-5392
SELECT DISTINCT + 0 * ( - - 82 ) / + 86 * - 61 - + COUNT ( DISTINCT CASE 24 WHEN 17 THEN NULL ELSE 37 / 80 END )
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5393
SELECT - MIN( + + 87 ) DIV + + 87 + + 89 - - ( - COALESCE ( 98, - 45 + 14 ) ) + 43
----
33

skipif mysql # not compatible
query I rowsort label-5393
SELECT - MIN ( + + 87 ) / + + 87 + + 89 - - ( - COALESCE ( 98, - 45 + 14 ) ) + 43
----
33

query I rowsort
SELECT ALL - 67 * + - 1 * 87 * + 99 - + 30
----
577041

query I rowsort
SELECT - 9 * + ( + ( + 23 ) )
----
-207

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5396
SELECT ALL + CASE - ( 17 ) WHEN + 99 THEN NULL WHEN 84 * + 5 THEN CAST( NULL AS SIGNED ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5396
SELECT ALL + CASE - ( 17 ) WHEN + 99 THEN NULL WHEN 84 * + 5 THEN CAST ( NULL AS INTEGER ) END AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5397
SELECT - 85 + 74 + 46, + 91 + - CASE 99 WHEN CAST( - CAST( + 23 AS SIGNED ) AS SIGNED ) THEN NULL ELSE 7 * - 69 END AS col2
----
35
574

skipif mysql # not compatible
query II rowsort label-5397
SELECT - 85 + 74 + 46, + 91 + - CASE 99 WHEN CAST ( - CAST ( + 23 AS INTEGER ) AS INTEGER ) THEN NULL ELSE 7 * - 69 END AS col2
----
35
574

onlyif mysql # aggregate syntax: 
query I rowsort label-5398
SELECT CASE + 30 WHEN NULLIF ( 28, - + 47 - - MAX( ALL + 86 ) * 92 ) + MAX( ALL + 77 ) THEN NULL ELSE 88 END AS col1
----
88

skipif mysql # not compatible
query I rowsort label-5398
SELECT CASE + 30 WHEN NULLIF ( 28, - + 47 - - MAX ( ALL + 86 ) * 92 ) + MAX ( ALL + 77 ) THEN NULL ELSE 88 END AS col1
----
88

onlyif mysql # aggregate syntax: 
query II rowsort label-5399
SELECT ALL + 85 AS col1, + 19 * - 61 + + - NULLIF ( + COUNT( * ), - 18 )
----
85
-1160

skipif mysql # not compatible
query II rowsort label-5399
SELECT ALL + 85 AS col1, + 19 * - 61 + + - NULLIF ( + COUNT ( * ), - 18 )
----
85
-1160

query I rowsort
SELECT NULLIF ( 45, 22 + 67 + + 24 + 17 * 98 )
----
45

query I rowsort
SELECT - 79 * 3 * - - 59 * + 11
----
-153813

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5402
SELECT DISTINCT + + 59, CAST( NULL AS SIGNED ) AS col2
----
59
NULL

skipif mysql # not compatible
query II rowsort label-5402
SELECT DISTINCT + + 59, CAST ( NULL AS INTEGER ) AS col2
----
59
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-5403
SELECT + 7 DIV + 11 + 48, + 90 AS col0
----
48
90

skipif mysql # not compatible
query II rowsort label-5403
SELECT + 7 / + 11 + 48, + 90 AS col0
----
48
90

query I rowsort
SELECT ALL - 91 * 54 AS col1
----
-4914

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5405
SELECT DISTINCT + - ( + COUNT( * ) ) / ( - - COALESCE ( - AVG ( + 38 ), 59 ) ) * 74 - - CAST( NULL AS DECIMAL ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5405
SELECT DISTINCT + - ( + COUNT ( * ) ) / ( - - COALESCE ( - AVG ( + 38 ), 59 ) ) * 74 - - CAST ( NULL AS REAL ) AS col1
----
NULL

query I rowsort
SELECT ALL - 47 * - - 62 AS col2
----
-2914

onlyif mysql # DIV for integer division: 
query I rowsort label-5407
SELECT - - 41 DIV + - 47
----
0

skipif mysql # not compatible
query I rowsort label-5407
SELECT - - 41 / + - 47
----
0

query I rowsort
SELECT + 57 * + + 68
----
3876

onlyif mysql # aggregate syntax: 
query I rowsort label-5409
SELECT ALL 26 * + SUM( - - ( - 80 ) ) + - 70 + - 13 * - 47
----
-1539

skipif mysql # not compatible
query I rowsort label-5409
SELECT ALL 26 * + SUM ( - - ( - 80 ) ) + - 70 + - 13 * - 47
----
-1539

onlyif mysql # aggregate syntax: 
query I rowsort label-5410
SELECT ALL + NULLIF ( - 99, + - ( COUNT( * ) ) ) AS col2
----
-99

skipif mysql # not compatible
query I rowsort label-5410
SELECT ALL + NULLIF ( - 99, + - ( COUNT ( * ) ) ) AS col2
----
-99

query I rowsort
SELECT ALL + 14 + - 54 + - + 45 * + 97 - - 99 + 54
----
-4252

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5412
SELECT + - COUNT( * ) + + 18 * - NULLIF ( + 10, - CASE 55 WHEN + COUNT( * ) + 48 * + 54 THEN COUNT( * ) * 53 END + + 36 ) + - CAST( + 77 + CAST( NULL AS DECIMAL ) AS SIGNED ) * 31 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5412
SELECT + - COUNT ( * ) + + 18 * - NULLIF ( + 10, - CASE 55 WHEN + COUNT ( * ) + 48 * + 54 THEN COUNT ( * ) * 53 END + + 36 ) + - CAST ( + 77 + CAST ( NULL AS REAL ) AS INTEGER ) * 31 AS col2
----
NULL

query I rowsort
SELECT ALL - 3 + + 10 + - 92
----
-85

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

query I rowsort
SELECT + 99 + - 28 AS col2
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-5416
SELECT ALL CASE 25 WHEN + COUNT( * ) THEN + 11 * + + ( - 87 ) - + 55 END * - 68 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5416
SELECT ALL CASE 25 WHEN + COUNT ( * ) THEN + 11 * + + ( - 87 ) - + 55 END * - 68 AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5417
SELECT + CAST( + + 54 AS SIGNED ) + - COUNT( * ) DIV - CAST( + ( + 93 ) AS SIGNED ) * - 45 + + 6 DIV + 84 AS col0
----
54

skipif mysql # not compatible
query I rowsort label-5417
SELECT + CAST ( + + 54 AS INTEGER ) + - COUNT ( * ) / - CAST ( + ( + 93 ) AS INTEGER ) * - 45 + + 6 / + 84 AS col0
----
54

onlyif mysql # DIV for integer division: 
query I rowsort label-5418
SELECT - 81 - - + 60 + + NULLIF ( - + 22, 12 + - + 93 - 19 * - 41 ) DIV 62
----
-21

skipif mysql # not compatible
query I rowsort label-5418
SELECT - 81 - - + 60 + + NULLIF ( - + 22, 12 + - + 93 - 19 * - 41 ) / 62
----
-21

query I rowsort
SELECT - 57 - - 34 AS col1
----
-23

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5420
SELECT ALL + 50 / CAST( NULL AS SIGNED ) + - + 89 + 45 / - 71 * + COUNT( * ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5420
SELECT ALL + 50 / CAST ( NULL AS INTEGER ) + - + 89 + 45 / - 71 * + COUNT ( * ) col0
----
NULL

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

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

query II rowsort
SELECT DISTINCT + 76 AS col2, 13 + 6
----
76
19

onlyif mysql # aggregate syntax: 
query I rowsort label-5423
SELECT - 21 + - + COUNT( * ) + + 9 * + 95 + 53 AS col1
----
886

skipif mysql # not compatible
query I rowsort label-5423
SELECT - 21 + - + COUNT ( * ) + + 9 * + 95 + 53 AS col1
----
886

onlyif mysql # aggregate syntax: 
query I rowsort label-5424
SELECT COUNT( * ) * - - CASE + NULLIF ( - 37, - 12 ) WHEN - - 53 THEN + 11 END + 85
----
NULL

skipif mysql # not compatible
query I rowsort label-5424
SELECT COUNT ( * ) * - - CASE + NULLIF ( - 37, - 12 ) WHEN - - 53 THEN + 11 END + 85
----
NULL

query I rowsort
SELECT - 15 * - + ( + 13 ) * - 5
----
-975

onlyif mysql # DIV for integer division: 
query I rowsort label-5426
SELECT ALL - 63 DIV - 93 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-5426
SELECT ALL - 63 / - 93 AS col0
----
0

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5428
SELECT - 56 DIV 21 * + 34 * - - 49 + 37
----
-3295

skipif mysql # not compatible
query I rowsort label-5428
SELECT - 56 / 21 * + 34 * - - 49 + 37
----
-3295

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

skipif mysql # not compatible
query II rowsort label-5429
SELECT CAST ( NULL AS INTEGER ) AS col1, - 83
----
NULL
-83

query I rowsort
SELECT ALL - ( - 65 ) * 36 - 48 + 37 AS col0
----
2329

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

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

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

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

query I rowsort
SELECT 39 * - + 53 * + + 99
----
-204633

query II rowsort
SELECT DISTINCT - - 57 AS col0, - 64
----
57
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-5435
SELECT 14 * + 18 + - 78 + + 75 + + NULLIF ( - - 84, - COUNT( + 87 ) + AVG ( DISTINCT + 38 ) ) AS col1
----
333

skipif mysql # not compatible
query I rowsort label-5435
SELECT 14 * + 18 + - 78 + + 75 + + NULLIF ( - - 84, - COUNT ( + 87 ) + AVG ( DISTINCT + 38 ) ) AS col1
----
333

query II rowsort
SELECT DISTINCT - - 40, COALESCE ( - 58, - 81 + 63 ) AS col1
----
40
-58

onlyif mysql # aggregate syntax: 
query II rowsort label-5437
SELECT DISTINCT - COUNT( * ) col1, 90 + + COUNT( * )
----
-1
91

skipif mysql # not compatible
query II rowsort label-5437
SELECT DISTINCT - COUNT ( * ) col1, 90 + + COUNT ( * )
----
-1
91

query II rowsort
SELECT + + 90 AS col0, + 74
----
90
74

query I rowsort
SELECT 34 + 68 AS col1
----
102

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5441
SELECT AVG ( DISTINCT - 84 ) * 43 + CASE + 65 WHEN + 77 THEN COUNT( * ) END + ( 64 ) * + 78
----
NULL

skipif mysql # not compatible
query I rowsort label-5441
SELECT AVG ( DISTINCT - 84 ) * 43 + CASE + 65 WHEN + 77 THEN COUNT ( * ) END + ( 64 ) * + 78
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5442
SELECT ALL + 35 DIV + 49
----
0

skipif mysql # not compatible
query I rowsort label-5442
SELECT ALL + 35 / + 49
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5443
SELECT ALL - - 29 + + CAST( NULL AS SIGNED ) + + + COUNT( * ) * + 7
----
NULL

skipif mysql # not compatible
query I rowsort label-5443
SELECT ALL - - 29 + + CAST ( NULL AS INTEGER ) + + + COUNT ( * ) * + 7
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5444
SELECT ALL + 18 + - - COALESCE ( - 88, ( COUNT( * ) ), - 63 * 81 + - COALESCE ( 39, 9 ) * - COUNT( * ) )
----
-70

skipif mysql # not compatible
query I rowsort label-5444
SELECT ALL + 18 + - - COALESCE ( - 88, ( COUNT ( * ) ), - 63 * 81 + - COALESCE ( 39, 9 ) * - COUNT ( * ) )
----
-70

query II rowsort
SELECT - 16 + + 40, - 5 AS col2
----
24
-5

query II rowsort
SELECT DISTINCT - 33 AS col2, 83
----
-33
83

onlyif mysql # aggregate syntax: 
query I rowsort label-5447
SELECT ALL - NULLIF ( - COUNT( * ), COUNT( * ) ) + + 32
----
33

skipif mysql # not compatible
query I rowsort label-5447
SELECT ALL - NULLIF ( - COUNT ( * ), COUNT ( * ) ) + + 32
----
33

onlyif mysql # aggregate syntax: 
query II rowsort label-5448
SELECT 36 + + 50 + - + ( 64 ) AS col1, NULLIF ( - 26, - AVG ( 98 ) + + MIN( - 59 + 99 * 62 ) )
----
22
-26

skipif mysql # not compatible
query II rowsort label-5448
SELECT 36 + + 50 + - + ( 64 ) AS col1, NULLIF ( - 26, - AVG ( 98 ) + + MIN ( - 59 + 99 * 62 ) )
----
22
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-5449
SELECT ALL - + 54 * MAX( - 46 )
----
2484

skipif mysql # not compatible
query I rowsort label-5449
SELECT ALL - + 54 * MAX ( - 46 )
----
2484

onlyif mysql # aggregate syntax: 
query I rowsort label-5450
SELECT DISTINCT + 16 + + SUM( + 27 ) AS col1
----
43

skipif mysql # not compatible
query I rowsort label-5450
SELECT DISTINCT + 16 + + SUM ( + 27 ) AS col1
----
43

query I rowsort
SELECT - 83 * - + 85 AS col0
----
7055

query I rowsort
SELECT - - 85 col2
----
85

query III rowsort
SELECT ( 54 ), 95 - - 59 AS col0, - ( 3 ) AS col2
----
54
154
-3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5454
SELECT DISTINCT CAST( NULL AS SIGNED ) + - + 88 - + COUNT( * ) + + ( - COALESCE ( + 43, - 7 ) ) * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5454
SELECT DISTINCT CAST ( NULL AS INTEGER ) + - + 88 - + COUNT ( * ) + + ( - COALESCE ( + 43, - 7 ) ) * + CAST ( NULL AS INTEGER )
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5456
SELECT ALL COUNT( * ) - - + CASE - + MIN( - 78 ) WHEN 65 THEN 87 - - 93 + MIN( DISTINCT 26 ) WHEN 42 * + ( + 99 ) THEN NULL END + + 61 * + COUNT( 67 + 48 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5456
SELECT ALL COUNT ( * ) - - + CASE - + MIN ( - 78 ) WHEN 65 THEN 87 - - 93 + MIN ( DISTINCT 26 ) WHEN 42 * + ( + 99 ) THEN NULL END + + 61 * + COUNT ( 67 + 48 )
----
NULL

query II rowsort
SELECT ALL 80 * - - 78, - 48 + - + 80 AS col0
----
6240
-128

onlyif mysql # aggregate syntax: 
query I rowsort label-5458
SELECT 40 * + 8 - 59 - + + ( + SUM( + 51 ) ) + - + COUNT( * ) AS col1
----
209

skipif mysql # not compatible
query I rowsort label-5458
SELECT 40 * + 8 - 59 - + + ( + SUM ( + 51 ) ) + - + COUNT ( * ) AS col1
----
209

query I rowsort
SELECT 50 * - 39 * + - 2
----
3900

query II rowsort
SELECT DISTINCT 32 * - 54 * - 0 * + 80 * + 82 AS col1, - 83 + 64
----
0
-19

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5461
SELECT 33 + - - CAST( + 37 AS SIGNED )
----
70

skipif mysql # not compatible
query I rowsort label-5461
SELECT 33 + - - CAST ( + 37 AS INTEGER )
----
70

query I rowsort
SELECT ALL 44 * + - 9 AS col1
----
-396

onlyif mysql # DIV for integer division: 
query I rowsort label-5463
SELECT 39 DIV - ( - 41 )
----
0

skipif mysql # not compatible
query I rowsort label-5463
SELECT 39 / - ( - 41 )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5464
SELECT DISTINCT 79 * - 68 AS col0, - CAST( - - 41 AS SIGNED )
----
-5372
-41

skipif mysql # not compatible
query II rowsort label-5464
SELECT DISTINCT 79 * - 68 AS col0, - CAST ( - - 41 AS INTEGER )
----
-5372
-41

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5465
SELECT - CAST( - - CASE 53 WHEN - 18 THEN + 53 WHEN - 91 * - CAST( + CASE + COUNT( * ) WHEN 42 * - 38 THEN + ( 63 ) * + 71 ELSE + 82 * - 88 END AS SIGNED ) + COUNT( * ) * - 27 + + 57 THEN NULL END AS SIGNED ) * 1 - 37 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5465
SELECT - CAST ( - - CASE 53 WHEN - 18 THEN + 53 WHEN - 91 * - CAST ( + CASE + COUNT ( * ) WHEN 42 * - 38 THEN + ( 63 ) * + 71 ELSE + 82 * - 88 END AS INTEGER ) + COUNT ( * ) * - 27 + + 57 THEN NULL END AS INTEGER ) * 1 - 37 AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5466
SELECT ALL - - 73 DIV + + 11 AS col1
----
6

skipif mysql # not compatible
query I rowsort label-5466
SELECT ALL - - 73 / + + 11 AS col1
----
6

query I rowsort
SELECT DISTINCT - 63 + 0 + 62
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5468
SELECT COUNT( * ) * 99 - + - 21 + - + 63 col2
----
57

skipif mysql # not compatible
query I rowsort label-5468
SELECT COUNT ( * ) * 99 - + - 21 + - + 63 col2
----
57

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5469
SELECT ALL + - CAST( ( - + 49 ) AS SIGNED ) + 22
----
71

skipif mysql # not compatible
query I rowsort label-5469
SELECT ALL + - CAST ( ( - + 49 ) AS INTEGER ) + 22
----
71

query I rowsort
SELECT - 98 * + 58 + + - 26 + - + 83 col2
----
-5793

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5471
SELECT + 65 DIV 95 * - 90 DIV + + COUNT( * ) + - 58 + - NULLIF ( 71, - 92 * NULLIF ( 25, - 83 ) )
----
-129

skipif mysql # not compatible
query I rowsort label-5471
SELECT + 65 / 95 * - 90 / + + COUNT ( * ) + - 58 + - NULLIF ( 71, - 92 * NULLIF ( 25, - 83 ) )
----
-129

query I rowsort
SELECT + + 46 * + 30 + + - 7 AS col2
----
1373

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

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

query I rowsort
SELECT ALL - NULLIF ( + 96, + 87 * + + 4 )
----
-96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5475
SELECT CAST( - - 88 AS SIGNED ) * + MIN( ALL 18 )
----
1584

skipif mysql # not compatible
query I rowsort label-5475
SELECT CAST ( - - 88 AS INTEGER ) * + MIN ( ALL 18 )
----
1584

query I rowsort
SELECT - 48 * - NULLIF ( 55, - 74 ) AS col2
----
2640

query I rowsort
SELECT ALL - 69 + - + 41 + + + 15 + + + 92 AS col2
----
-3

query II rowsort
SELECT ALL - - 81 + + 73, 27 AS col2
----
154
27

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

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

query II rowsort
SELECT 20 + - 31 AS col2, 15 * + 32
----
-11
480

query I rowsort
SELECT COALESCE ( - + ( + COALESCE ( - 12, 28 + - 90 ) ), 64 + - 62 * COALESCE ( 23 * 28, 76 + 60 ), + 10 ) * 53 AS col2
----
636

query II rowsort
SELECT ( + 66 ) AS col1, + ( 16 )
----
66
16

query I rowsort
SELECT ALL + 21 - + 49 * + + ( + 70 )
----
-3409

query I rowsort
SELECT ALL ( ( - 40 ) )
----
-40

query I rowsort
SELECT 99 + - 8
----
91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5486
SELECT DISTINCT + 53 - - - 40 * - + CASE + COALESCE ( + CAST( NULL AS SIGNED ), - + 85 ) WHEN - - CASE + 52 WHEN 72 THEN 21 * + COUNT( * ) WHEN - 63 THEN + AVG ( DISTINCT 29 ) ELSE - 44 END + 30 THEN NULL WHEN + 6 * 63 + + CAST( NULL AS DECIMAL ) THEN - 32 WHEN - COUNT( - 36 ) THEN 72 ELSE NULL END * 28
----
NULL

skipif mysql # not compatible
query I rowsort label-5486
SELECT DISTINCT + 53 - - - 40 * - + CASE + COALESCE ( + CAST ( NULL AS INTEGER ), - + 85 ) WHEN - - CASE + 52 WHEN 72 THEN 21 * + COUNT ( * ) WHEN - 63 THEN + AVG ( DISTINCT 29 ) ELSE - 44 END + 30 THEN NULL WHEN + 6 * 63 + + CAST ( NULL AS REAL ) THEN - 32 WHEN - COUNT ( - 36 ) THEN 72 ELSE NULL END * 28
----
NULL

query I rowsort
SELECT 18 * 30 AS col1
----
540

onlyif mysql # aggregate syntax: 
query I rowsort label-5488
SELECT DISTINCT - COUNT( ( 89 ) ) * COUNT( * ) - + 36 + - 72
----
-109

skipif mysql # not compatible
query I rowsort label-5488
SELECT DISTINCT - COUNT ( ( 89 ) ) * COUNT ( * ) - + 36 + - 72
----
-109

query I rowsort
SELECT 5 + - 14
----
-9

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5491
SELECT 43 + + 44 * COALESCE ( - 28, + 74 * 3 * ( SUM( + 39 ) ), + ( + 84 ) )
----
-1189

skipif mysql # not compatible
query I rowsort label-5491
SELECT 43 + + 44 * COALESCE ( - 28, + 74 * 3 * ( SUM ( + 39 ) ), + ( + 84 ) )
----
-1189

query I rowsort
SELECT 14 + + 99 col0
----
113

onlyif mysql # aggregate syntax: 
query I rowsort label-5493
SELECT ALL MAX( ALL 84 ) * ( - COALESCE ( 69, - - 6 * 38, 40 + + 18 ) ) AS col0
----
-5796

skipif mysql # not compatible
query I rowsort label-5493
SELECT ALL MAX ( ALL 84 ) * ( - COALESCE ( 69, - - 6 * 38, 40 + + 18 ) ) AS col0
----
-5796

query I rowsort
SELECT 24 + - 84
----
-60

query I rowsort
SELECT 30 * - 2 AS col0
----
-60

query I rowsort
SELECT DISTINCT - 91 * - 95
----
8645

query I rowsort
SELECT + 14 * 37 AS col2
----
518

onlyif mysql # aggregate syntax: 
query I rowsort label-5498
SELECT DISTINCT + ( - COALESCE ( COUNT( * ), - MAX( ALL - 13 ) ) )
----
-1

skipif mysql # not compatible
query I rowsort label-5498
SELECT DISTINCT + ( - COALESCE ( COUNT ( * ), - MAX ( ALL - 13 ) ) )
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5499
SELECT ALL + 9 * MAX( - - CAST( + 8 AS SIGNED ) ) + + 60
----
132

skipif mysql # not compatible
query I rowsort label-5499
SELECT ALL + 9 * MAX ( - - CAST ( + 8 AS INTEGER ) ) + + 60
----
132

onlyif mysql # aggregate syntax: 
query I rowsort label-5500
SELECT CASE + 65 WHEN SUM( ALL + ( - 58 ) ) THEN - 80 * - MIN( ALL - 49 ) * 9 ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5500
SELECT CASE + 65 WHEN SUM ( ALL + ( - 58 ) ) THEN - 80 * - MIN ( ALL - 49 ) * 9 ELSE NULL END AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5501
SELECT ALL + 64 * + + 32 * - 18 + - + COUNT( * ) + - 10 DIV ( + 17 ) AS col0
----
-36865

skipif mysql # not compatible
query I rowsort label-5501
SELECT ALL + 64 * + + 32 * - 18 + - + COUNT ( * ) + - 10 / ( + 17 ) AS col0
----
-36865

onlyif mysql # aggregate syntax: 
query I rowsort label-5502
SELECT + - NULLIF ( + 76, 97 + ( - COUNT( * ) ) ) AS col1
----
-76

skipif mysql # not compatible
query I rowsort label-5502
SELECT + - NULLIF ( + 76, 97 + ( - COUNT ( * ) ) ) AS col1
----
-76

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5503
SELECT ALL + + CASE - 49 WHEN CAST( 39 AS SIGNED ) THEN AVG ( - - ( - + 7 ) ) / CASE 2 WHEN 16 THEN NULL ELSE 99 + - 29 END * COUNT( * ) + 76 WHEN 50 * CAST( 27 AS DECIMAL ) THEN 10 + COUNT( * ) * 42 ELSE 38 + CASE 17 WHEN ( 58 ) / COUNT( 32 ) THEN NULL ELSE 10 END END
----
48

skipif mysql # not compatible
query I rowsort label-5503
SELECT ALL + + CASE - 49 WHEN CAST ( 39 AS INTEGER ) THEN AVG ( - - ( - + 7 ) ) / CASE 2 WHEN 16 THEN NULL ELSE 99 + - 29 END * COUNT ( * ) + 76 WHEN 50 * CAST ( 27 AS REAL ) THEN 10 + COUNT ( * ) * 42 ELSE 38 + CASE 17 WHEN ( 58 ) / COUNT ( 32 ) THEN NULL ELSE 10 END END
----
48

onlyif mysql # DIV for integer division: 
query I rowsort label-5504
SELECT + 33 DIV 29 * - 91 + - - 97 + - ( + 87 )
----
-81

skipif mysql # not compatible
query I rowsort label-5504
SELECT + 33 / 29 * - 91 + - - 97 + - ( + 87 )
----
-81

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

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

query I rowsort
SELECT - - 73 + + - 79
----
-6

query I rowsort
SELECT DISTINCT 91 * 14 + 13 + - - 98 AS col0
----
1385

onlyif mysql # aggregate syntax: 
query I rowsort label-5508
SELECT DISTINCT 29 * - 43 + + SUM( DISTINCT + 58 )
----
-1189

skipif mysql # not compatible
query I rowsort label-5508
SELECT DISTINCT 29 * - 43 + + SUM ( DISTINCT + 58 )
----
-1189

query I rowsort
SELECT DISTINCT + 40 * 4 AS col0
----
160

onlyif mysql # aggregate syntax: 
query I rowsort label-5510
SELECT ALL - MAX( DISTINCT - 51 ) * ( - 48 ) + + 74 AS col2
----
-2374

skipif mysql # not compatible
query I rowsort label-5510
SELECT ALL - MAX ( DISTINCT - 51 ) * ( - 48 ) + + 74 AS col2
----
-2374

query I rowsort
SELECT + 89 * 13 AS col1
----
1157

onlyif mysql # aggregate syntax: 
query I rowsort label-5512
SELECT ALL CASE - - 30 WHEN + 46 - + + 39 THEN 79 ELSE - COUNT( * ) END * + - 57
----
57

skipif mysql # not compatible
query I rowsort label-5512
SELECT ALL CASE - - 30 WHEN + 46 - + + 39 THEN 79 ELSE - COUNT ( * ) END * + - 57
----
57

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5514
SELECT - - 21 + 81 + - + COUNT( * )
----
101

skipif mysql # not compatible
query I rowsort label-5514
SELECT - - 21 + 81 + - + COUNT ( * )
----
101

query II rowsort
SELECT + + 52 * + + ( - + 2 ) AS col0, + 88 col0
----
-104
88

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

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

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

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

query I rowsort
SELECT ALL + 75 * + 67 col1
----
5025

onlyif mysql # aggregate syntax: 
query I rowsort label-5519
SELECT ALL - MIN( DISTINCT 79 ) * - + 83
----
6557

skipif mysql # not compatible
query I rowsort label-5519
SELECT ALL - MIN ( DISTINCT 79 ) * - + 83
----
6557

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5520
SELECT - 46 + - + CAST( - + 98 AS SIGNED )
----
52

skipif mysql # not compatible
query I rowsort label-5520
SELECT - 46 + - + CAST ( - + 98 AS INTEGER )
----
52

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5523
SELECT - ( MIN( 86 ) ) AS col2
----
-86

skipif mysql # not compatible
query I rowsort label-5523
SELECT - ( MIN ( 86 ) ) AS col2
----
-86

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5524
SELECT DISTINCT COALESCE ( + 99, COUNT( * ) DIV - + 25 ) AS col1, COALESCE ( + 43, - 2 * - 65 )
----
99
43

skipif mysql # not compatible
query II rowsort label-5524
SELECT DISTINCT COALESCE ( + 99, COUNT ( * ) / - + 25 ) AS col1, COALESCE ( + 43, - 2 * - 65 )
----
99
43

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5525
SELECT ALL COALESCE ( - 72, + + CAST( NULL AS SIGNED ), + + 78 - 12 )
----
-72

skipif mysql # not compatible
query I rowsort label-5525
SELECT ALL COALESCE ( - 72, + + CAST ( NULL AS INTEGER ), + + 78 - 12 )
----
-72

query I rowsort
SELECT - 68 + 5
----
-63

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

query I rowsort
SELECT ALL CASE - 59 WHEN - - 14 THEN 46 + + 59 ELSE 49 END
----
49

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5529
SELECT ALL 44 * COALESCE ( - 21, - COUNT( * ) * + + 40 + + 40 * 52 DIV - + 63 * - AVG ( ALL 83 ) DIV + 99 + 58 )
----
-924

skipif mysql # not compatible
query I rowsort label-5529
SELECT ALL 44 * COALESCE ( - 21, - COUNT ( * ) * + + 40 + + 40 * 52 / - + 63 * - AVG ( ALL 83 ) / + 99 + 58 )
----
-924

query I rowsort
SELECT - CASE - 17 WHEN + + 50 THEN - 62 * + - AVG ( DISTINCT - 12 ) END * + AVG ( DISTINCT - 21 ) * COALESCE ( - 54, + NULLIF ( - 97, - 41 ) )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5531
SELECT ALL 81 DIV 36 + 14
----
16

skipif mysql # not compatible
query I rowsort label-5531
SELECT ALL 81 / 36 + 14
----
16

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5532
SELECT CAST( + ( 62 ) AS SIGNED ) AS col2
----
62

skipif mysql # not compatible
query I rowsort label-5532
SELECT CAST ( + ( 62 ) AS INTEGER ) AS col2
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-5533
SELECT COUNT( * ) * - 51 - - COUNT( * ) + + 42 * 66 * 37
----
102514

skipif mysql # not compatible
query I rowsort label-5533
SELECT COUNT ( * ) * - 51 - - COUNT ( * ) + + 42 * 66 * 37
----
102514

onlyif mysql # aggregate syntax: 
query I rowsort label-5534
SELECT ALL - 72 * - MIN( - 96 )
----
-6912

skipif mysql # not compatible
query I rowsort label-5534
SELECT ALL - 72 * - MIN ( - 96 )
----
-6912

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5535
SELECT ALL 39 DIV - + COUNT( * ) + - + 85 DIV 7, - 36 * + 40 + COUNT( * ) + - MAX( 90 ) * 3 AS col0
----
-51
-1709

skipif mysql # not compatible
query II rowsort label-5535
SELECT ALL 39 / - + COUNT ( * ) + - + 85 / 7, - 36 * + 40 + COUNT ( * ) + - MAX ( 90 ) * 3 AS col0
----
-51
-1709

onlyif mysql # DIV for integer division: 
query I rowsort label-5536
SELECT + 7 * 14 DIV 52 * + 76 col2
----
76

skipif mysql # not compatible
query I rowsort label-5536
SELECT + 7 * 14 / 52 * + 76 col2
----
76

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5537
SELECT ALL 26 DIV 32 * - 62 * 61 * + 9 * - COALESCE ( - 25, + - 11 + + + CASE + SUM( - 94 ) WHEN 37 * + 35 THEN + COUNT( 82 ) + - 92 WHEN 79 - CAST( NULL AS SIGNED ) THEN + 79 END + - 89 ) + 4 + - 39 col0
----
-35

skipif mysql # not compatible
query I rowsort label-5537
SELECT ALL 26 / 32 * - 62 * 61 * + 9 * - COALESCE ( - 25, + - 11 + + + CASE + SUM ( - 94 ) WHEN 37 * + 35 THEN + COUNT ( 82 ) + - 92 WHEN 79 - CAST ( NULL AS INTEGER ) THEN + 79 END + - 89 ) + 4 + - 39 col0
----
-35

onlyif mysql # aggregate syntax: 
query II rowsort label-5538
SELECT DISTINCT + 23 * - 10 - - 5 + + 64 AS col0, + 33 * COUNT( * ) AS col0
----
-161
33

skipif mysql # not compatible
query II rowsort label-5538
SELECT DISTINCT + 23 * - 10 - - 5 + + 64 AS col0, + 33 * COUNT ( * ) AS col0
----
-161
33

onlyif mysql # aggregate syntax: 
query I rowsort label-5539
SELECT + COUNT( DISTINCT - - 77 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-5539
SELECT + COUNT ( DISTINCT - - 77 ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5540
SELECT ALL ( COUNT( * ) ) * 10 - 67 * 72 * + - COUNT( * ) * + 19 - - + 86
----
91752

skipif mysql # not compatible
query I rowsort label-5540
SELECT ALL ( COUNT ( * ) ) * 10 - 67 * 72 * + - COUNT ( * ) * + 19 - - + 86
----
91752

query I rowsort
SELECT ALL 93 * - + 91 AS col1
----
-8463

onlyif mysql # aggregate syntax: 
query I rowsort label-5542
SELECT COALESCE ( 45, + - 73 ) * 35 * - 2 + + + 59 * 47 * + + 24 + - - 91 + 70 * - COUNT( * ) * COUNT( * ) AS col1
----
63423

skipif mysql # not compatible
query I rowsort label-5542
SELECT COALESCE ( 45, + - 73 ) * 35 * - 2 + + + 59 * 47 * + + 24 + - - 91 + 70 * - COUNT ( * ) * COUNT ( * ) AS col1
----
63423

onlyif mysql # DIV for integer division: 
query I rowsort label-5543
SELECT DISTINCT + 62 * + + COALESCE ( 68, - 73 ) * + - COALESCE ( + CASE + ( 35 ) WHEN + 82 THEN 18 DIV + 91 - 41 * 53 ELSE 68 END, 54, + 92 * - 5, + 32 ) * 70 col0
----
-20068160

skipif mysql # not compatible
query I rowsort label-5543
SELECT DISTINCT + 62 * + + COALESCE ( 68, - 73 ) * + - COALESCE ( + CASE + ( 35 ) WHEN + 82 THEN 18 / + 91 - 41 * 53 ELSE 68 END, 54, + 92 * - 5, + 32 ) * 70 col0
----
-20068160

query II rowsort
SELECT ALL + NULLIF ( + 85, - ( - 40 ) ) AS col1, + 19 + + + 10 AS col1
----
85
29

query I rowsort
SELECT ALL - 35 * - 10 AS col1
----
350

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5546
SELECT ALL 23 AS col0, + ( - 45 ) * 74 + 90 - + CAST( 98 AS SIGNED ) + 55 col1, + 52 * - CASE 52 WHEN 86 THEN - COALESCE ( + 45, 48 ) END AS col0
----
23
-3283
NULL

skipif mysql # not compatible
query III rowsort label-5546
SELECT ALL 23 AS col0, + ( - 45 ) * 74 + 90 - + CAST ( 98 AS INTEGER ) + 55 col1, + 52 * - CASE 52 WHEN 86 THEN - COALESCE ( + 45, 48 ) END AS col0
----
23
-3283
NULL

query I rowsort
SELECT + 99 * + - 34
----
-3366

onlyif mysql # aggregate syntax: 
query I rowsort label-5548
SELECT - 22 * + - 19 + - COUNT( * ) - - - 48
----
369

skipif mysql # not compatible
query I rowsort label-5548
SELECT - 22 * + - 19 + - COUNT ( * ) - - - 48
----
369

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

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

query I rowsort
SELECT + 86 + 80 col2
----
166

query I rowsort
SELECT - 92 - + 58 AS col2
----
-150

query I rowsort
SELECT + 63 + + - 68 AS col2
----
-5

query I rowsort
SELECT DISTINCT + 0 + - - 76
----
76

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

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

query I rowsort
SELECT DISTINCT + 91 * + 56 * 36 AS col0
----
183456

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

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

query I rowsort
SELECT 49 + + 26
----
75

query I rowsort
SELECT 59 + - 11 AS col1
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-5559
SELECT ALL NULLIF ( + 5, NULLIF ( + 24, COUNT( * ) ) ) + + - 16
----
-11

skipif mysql # not compatible
query I rowsort label-5559
SELECT ALL NULLIF ( + 5, NULLIF ( + 24, COUNT ( * ) ) ) + + - 16
----
-11

query I rowsort
SELECT ALL - 82 + 23
----
-59

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5561
SELECT 78 + - ( - 98 ) * - CAST( - - ( + + ( ( - MAX( ALL + 82 ) ) ) ) AS SIGNED )
----
8114

skipif mysql # not compatible
query I rowsort label-5561
SELECT 78 + - ( - 98 ) * - CAST ( - - ( + + ( ( - MAX ( ALL + 82 ) ) ) ) AS INTEGER )
----
8114

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5563
SELECT 94 + COUNT( * ) * + 45 * CASE - 12 WHEN - 52 THEN + + 21 * 4 WHEN - ( + AVG ( DISTINCT 50 ) ) THEN NULL ELSE - 56 END AS col2
----
-2426

skipif mysql # not compatible
query I rowsort label-5563
SELECT 94 + COUNT ( * ) * + 45 * CASE - 12 WHEN - 52 THEN + + 21 * 4 WHEN - ( + AVG ( DISTINCT 50 ) ) THEN NULL ELSE - 56 END AS col2
----
-2426

onlyif mysql # DIV for integer division: 
query I rowsort label-5564
SELECT DISTINCT - + 49 + 80 DIV + 79 + 93 + + + 47 + + 36 DIV - 82 * + - ( - 17 ) AS col2
----
92

skipif mysql # not compatible
query I rowsort label-5564
SELECT DISTINCT - + 49 + 80 / + 79 + 93 + + + 47 + + 36 / - 82 * + - ( - 17 ) AS col2
----
92

onlyif mysql # aggregate syntax: 
query I rowsort label-5565
SELECT 34 * + NULLIF ( - 22, 33 ) + + 64 + - 50 + + + ( - - COUNT( * ) ) AS col1
----
-733

skipif mysql # not compatible
query I rowsort label-5565
SELECT 34 * + NULLIF ( - 22, 33 ) + + 64 + - 50 + + + ( - - COUNT ( * ) ) AS col1
----
-733

query I rowsort
SELECT ALL + + 12 * 66 * 14
----
11088

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-5567
SELECT 26 + - 23 DIV + 16, - COUNT( * ) DIV + 13 + 81 * - COALESCE ( + COUNT( * ), CASE + - 76 WHEN + MAX( - ( - 12 ) ) * 71 THEN + COALESCE ( - 94, + CASE ( 81 ) WHEN 6 THEN ( - CAST( NULL AS SIGNED ) ) END ) ELSE + ( 22 ) + 24 END * 9 + - 4, + ( + 39 ) + - ( - CAST( 78 AS SIGNED ) + COUNT( * ) * - 53 ) DIV COUNT( * ) ) AS col1
----
25
-81

skipif mysql # not compatible
query II rowsort label-5567
SELECT 26 + - 23 / + 16, - COUNT ( * ) / + 13 + 81 * - COALESCE ( + COUNT ( * ), CASE + - 76 WHEN + MAX ( - ( - 12 ) ) * 71 THEN + COALESCE ( - 94, + CASE ( 81 ) WHEN 6 THEN ( - CAST ( NULL AS INTEGER ) ) END ) ELSE + ( 22 ) + 24 END * 9 + - 4, + ( + 39 ) + - ( - CAST ( 78 AS INTEGER ) + COUNT ( * ) * - 53 ) / COUNT ( * ) ) AS col1
----
25
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-5568
SELECT 13 * - SUM( + 71 ) - COUNT( * ) AS col1
----
-924

skipif mysql # not compatible
query I rowsort label-5568
SELECT 13 * - SUM ( + 71 ) - COUNT ( * ) AS col1
----
-924

onlyif mysql # aggregate syntax: 
query I rowsort label-5569
SELECT + 16 * - 73 + + + COUNT( DISTINCT - 61 ) + 14 + - NULLIF ( + - 50, - 3 + + 13 - - COUNT( * ) ) col2
----
-1103

skipif mysql # not compatible
query I rowsort label-5569
SELECT + 16 * - 73 + + + COUNT ( DISTINCT - 61 ) + 14 + - NULLIF ( + - 50, - 3 + + 13 - - COUNT ( * ) ) col2
----
-1103

onlyif mysql # aggregate syntax: 
query I rowsort label-5570
SELECT DISTINCT + - COUNT( * ) * - 24 * - 96 + 55 + + + COUNT( * ) - - + COUNT( * )
----
-2247

skipif mysql # not compatible
query I rowsort label-5570
SELECT DISTINCT + - COUNT ( * ) * - 24 * - 96 + 55 + + + COUNT ( * ) - - + COUNT ( * )
----
-2247

onlyif mysql # DIV for integer division: 
query I rowsort label-5571
SELECT 5 DIV + 24 * 41 DIV - + 91 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-5571
SELECT 5 / + 24 * 41 / - + 91 AS col1
----
0

query I rowsort
SELECT - 8 / CASE - 86 WHEN + - 26 THEN + - 99 END
----
NULL

query I rowsort
SELECT DISTINCT + - NULLIF ( - - 98, - + 79 ) * + 86 AS col0
----
-8428

query I rowsort
SELECT ALL - 75 - + 77 AS col1
----
-152

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5575
SELECT + 74 DIV - + COUNT( * ) + + ( 70 )
----
-4

skipif mysql # not compatible
query I rowsort label-5575
SELECT + 74 / - + COUNT ( * ) + + ( 70 )
----
-4

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5576
SELECT DISTINCT + + 40 * + + 81 * - NULLIF ( + MAX( DISTINCT COALESCE ( + 19, - + 88 * + + 74 DIV 47 * + + 15 * 44 + 1 ) ), - 99 * - 89 ) AS col2
----
-61560

skipif mysql # not compatible
query I rowsort label-5576
SELECT DISTINCT + + 40 * + + 81 * - NULLIF ( + MAX ( DISTINCT COALESCE ( + 19, - + 88 * + + 74 / 47 * + + 15 * 44 + 1 ) ), - 99 * - 89 ) AS col2
----
-61560

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5578
SELECT - CAST( + 65 AS SIGNED ) * 67 + 57 + - - 22 DIV NULLIF ( + 42, - + 87 * 19 ) * - + 70 + 97
----
-4201

skipif mysql # not compatible
query I rowsort label-5578
SELECT - CAST ( + 65 AS INTEGER ) * 67 + 57 + - - 22 / NULLIF ( + 42, - + 87 * 19 ) * - + 70 + 97
----
-4201

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5580
SELECT COALESCE ( 3, - CASE - 28 WHEN + 69 * - + COUNT( * ) THEN + + 86 * - 90 WHEN - + 90 * CAST( NULL AS SIGNED ) THEN + + 51 ELSE NULL END ) * - 83
----
-249

skipif mysql # not compatible
query I rowsort label-5580
SELECT COALESCE ( 3, - CASE - 28 WHEN + 69 * - + COUNT ( * ) THEN + + 86 * - 90 WHEN - + 90 * CAST ( NULL AS INTEGER ) THEN + + 51 ELSE NULL END ) * - 83
----
-249

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5581
SELECT ALL ( - ( + + 4 ) ) + + CAST( - 29 AS SIGNED ) * - 64 AS col2, + COUNT( * )
----
1852
1

skipif mysql # not compatible
query II rowsort label-5581
SELECT ALL ( - ( + + 4 ) ) + + CAST ( - 29 AS INTEGER ) * - 64 AS col2, + COUNT ( * )
----
1852
1

query I rowsort
SELECT ( + 18 ) + - + 0
----
18

query II rowsort
SELECT + 29 AS col1, - 46 AS col2
----
29
-46

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5584
SELECT DISTINCT CAST( NULL AS SIGNED ) + + ( 94 ) + + COUNT( DISTINCT - - 73 ) + NULLIF ( + 42, - + 39 ) - + 21
----
NULL

skipif mysql # not compatible
query I rowsort label-5584
SELECT DISTINCT CAST ( NULL AS INTEGER ) + + ( 94 ) + + COUNT ( DISTINCT - - 73 ) + NULLIF ( + 42, - + 39 ) - + 21
----
NULL

query I rowsort
SELECT ALL 51 + + - 28
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-5586
SELECT DISTINCT 68 + ( + MAX( + 82 ) ) + - + 60
----
90

skipif mysql # not compatible
query I rowsort label-5586
SELECT DISTINCT 68 + ( + MAX ( + 82 ) ) + - + 60
----
90

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5587
SELECT DISTINCT CAST( + 93 AS SIGNED ) + + 60
----
153

skipif mysql # not compatible
query I rowsort label-5587
SELECT DISTINCT CAST ( + 93 AS INTEGER ) + + 60
----
153

onlyif mysql # aggregate syntax: 
query II rowsort label-5588
SELECT - 94 col2, MAX( DISTINCT + - 26 ) AS col1
----
-94
-26

skipif mysql # not compatible
query II rowsort label-5588
SELECT - 94 col2, MAX ( DISTINCT + - 26 ) AS col1
----
-94
-26

query II rowsort
SELECT - 5, - 60 + + + 67 AS col0
----
-5
7

onlyif mysql # aggregate syntax: 
query II rowsort label-5590
SELECT 95, - CASE + COUNT( * ) WHEN + ( - + COUNT( * ) ) * MAX( + 47 ) * - - COUNT( * ) * + 43 THEN ( - 44 ) * + 31 END - + CASE - 98 + - COUNT( * ) * - 3 WHEN 74 / - 35 + COUNT( * ) THEN 34 - - 51 ELSE NULL END AS col2
----
95
NULL

skipif mysql # not compatible
query II rowsort label-5590
SELECT 95, - CASE + COUNT ( * ) WHEN + ( - + COUNT ( * ) ) * MAX ( + 47 ) * - - COUNT ( * ) * + 43 THEN ( - 44 ) * + 31 END - + CASE - 98 + - COUNT ( * ) * - 3 WHEN 74 / - 35 + COUNT ( * ) THEN 34 - - 51 ELSE NULL END AS col2
----
95
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5591
SELECT ALL 67 + - COUNT( * ) * + 93
----
-26

skipif mysql # not compatible
query I rowsort label-5591
SELECT ALL 67 + - COUNT ( * ) * + 93
----
-26

query I rowsort
SELECT 84 * - 43
----
-3612

onlyif mysql # aggregate syntax: 
query I rowsort label-5593
SELECT CASE - + COALESCE ( + ( - 4 ), + + 17 ) WHEN + 95 + + 30 THEN - 96 WHEN + - 44 THEN NULL ELSE - + COUNT( * ) END * 22 AS col0
----
-22

skipif mysql # not compatible
query I rowsort label-5593
SELECT CASE - + COALESCE ( + ( - 4 ), + + 17 ) WHEN + 95 + + 30 THEN - 96 WHEN + - 44 THEN NULL ELSE - + COUNT ( * ) END * 22 AS col0
----
-22

query II rowsort
SELECT - 64 AS col2, 18 AS col0
----
-64
18

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5595
SELECT ALL - 51 - - + 6 * + 36 DIV + COUNT( * )
----
165

skipif mysql # not compatible
query I rowsort label-5595
SELECT ALL - 51 - - + 6 * + 36 / + COUNT ( * )
----
165

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5597
SELECT - CASE - + 28 WHEN - 21 THEN - CAST( - 13 AS SIGNED ) WHEN 69 THEN NULL ELSE COUNT( DISTINCT + ( - ( - 39 ) ) ) + + + 71 END AS col1
----
-72

skipif mysql # not compatible
query I rowsort label-5597
SELECT - CASE - + 28 WHEN - 21 THEN - CAST ( - 13 AS INTEGER ) WHEN 69 THEN NULL ELSE COUNT ( DISTINCT + ( - ( - 39 ) ) ) + + + 71 END AS col1
----
-72

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5598
SELECT ALL 84 AS col2, - NULLIF ( 38, 78 ) * + 32 + 44 DIV - COUNT( * )
----
84
-1260

skipif mysql # not compatible
query II rowsort label-5598
SELECT ALL 84 AS col2, - NULLIF ( 38, 78 ) * + 32 + 44 / - COUNT ( * )
----
84
-1260

query I rowsort
SELECT DISTINCT - 53 - - + 95 col0
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-5600
SELECT ALL + MAX( - 81 ) * - - 43 AS col0
----
-3483

skipif mysql # not compatible
query I rowsort label-5600
SELECT ALL + MAX ( - 81 ) * - - 43 AS col0
----
-3483

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5601
SELECT DISTINCT + + ( - 28 ) - + COALESCE ( + - 49, - - 10 + + 26 + - + COUNT( - 2 ), 46 DIV + CAST( + COUNT( * ) AS SIGNED ) * 77 )
----
21

skipif mysql # not compatible
query I rowsort label-5601
SELECT DISTINCT + + ( - 28 ) - + COALESCE ( + - 49, - - 10 + + 26 + - + COUNT ( - 2 ), 46 / + CAST ( + COUNT ( * ) AS INTEGER ) * 77 )
----
21

query I rowsort
SELECT DISTINCT + 62 * - 50 * 69 AS col0
----
-213900

onlyif mysql # aggregate syntax: 
query II rowsort label-5603
SELECT 22, COUNT( * ) * - 33 * - + 3 AS col2
----
22
99

skipif mysql # not compatible
query II rowsort label-5603
SELECT 22, COUNT ( * ) * - 33 * - + 3 AS col2
----
22
99

query I rowsort
SELECT ALL + - 42 * CASE + 57 WHEN - - 30 THEN - - 84 END + - ( 57 ) * 8 + + 19 + 57
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5605
SELECT 20 + - MIN( ALL 99 )
----
-79

skipif mysql # not compatible
query I rowsort label-5605
SELECT 20 + - MIN ( ALL 99 )
----
-79

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5606
SELECT ( - CAST( 98 AS SIGNED ) ) * - - 13 col1
----
-1274

skipif mysql # not compatible
query I rowsort label-5606
SELECT ( - CAST ( 98 AS INTEGER ) ) * - - 13 col1
----
-1274

query II rowsort
SELECT 2, 92 col0
----
2
92

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5610
SELECT - CAST( 36 AS SIGNED ) * - 6 col1
----
216

skipif mysql # not compatible
query I rowsort label-5610
SELECT - CAST ( 36 AS INTEGER ) * - 6 col1
----
216

query II rowsort
SELECT ALL - - 55, + 7 AS col2
----
55
7

onlyif mysql # DIV for integer division: 
query II rowsort label-5612
SELECT + 36 AS col2, - 48 DIV ( + 44 ) * - 54 AS col1
----
36
54

skipif mysql # not compatible
query II rowsort label-5612
SELECT + 36 AS col2, - 48 / ( + 44 ) * - 54 AS col1
----
36
54

query I rowsort
SELECT 14 * + 25 AS col0
----
350

query I rowsort
SELECT - 51 * + NULLIF ( + - 61, - 30 ) + + 24 + 58 + 20
----
3213

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

skipif mysql # not compatible
query I rowsort label-5615
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + + 50 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5616
SELECT ALL - COUNT( * ) + - - 40 - 96
----
-57

skipif mysql # not compatible
query I rowsort label-5616
SELECT ALL - COUNT ( * ) + - - 40 - 96
----
-57

query I rowsort
SELECT ALL 27 + + 22 AS col1
----
49

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

skipif mysql # not compatible
query I rowsort label-5618
SELECT DISTINCT + COUNT ( * ) + + - 87 AS col0
----
-86

onlyif mysql # DIV for integer division: 
query II rowsort label-5619
SELECT ALL 4 DIV - 30 AS col2, - ( + 25 ) * 19 AS col2
----
0
-475

skipif mysql # not compatible
query II rowsort label-5619
SELECT ALL 4 / - 30 AS col2, - ( + 25 ) * 19 AS col2
----
0
-475

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5620
SELECT - CAST( + COUNT( CAST( + 88 AS SIGNED ) ) AS SIGNED ) * + - 60 + + + 31 + - + CASE - MIN( DISTINCT - 17 ) WHEN 76 THEN + - 62 ELSE NULL END + - - 6 + + 77 * - COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5620
SELECT - CAST ( + COUNT ( CAST ( + 88 AS INTEGER ) ) AS INTEGER ) * + - 60 + + + 31 + - + CASE - MIN ( DISTINCT - 17 ) WHEN 76 THEN + - 62 ELSE NULL END + - - 6 + + 77 * - COUNT ( * ) AS col1
----
NULL

query I rowsort
SELECT - 73 + - ( - 79 ) + 72 * + 39
----
2814

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5622
SELECT + ( - 7 ) * + 74 - + - CASE - 39 WHEN + ( 81 ) THEN + 68 * + - 76 WHEN - CAST( - + 53 AS SIGNED ) THEN NULL ELSE - 93 END col0
----
-611

skipif mysql # not compatible
query I rowsort label-5622
SELECT + ( - 7 ) * + 74 - + - CASE - 39 WHEN + ( 81 ) THEN + 68 * + - 76 WHEN - CAST ( - + 53 AS INTEGER ) THEN NULL ELSE - 93 END col0
----
-611

query I rowsort
SELECT ALL 61 - + + 69
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-5624
SELECT DISTINCT NULLIF ( + COUNT( * ), - 27 - + + 30 )
----
1

skipif mysql # not compatible
query I rowsort label-5624
SELECT DISTINCT NULLIF ( + COUNT ( * ), - 27 - + + 30 )
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-5625
SELECT + 20 + - COUNT( * ) AS col0, 66 * + - 8 * 29
----
19
-15312

skipif mysql # not compatible
query II rowsort label-5625
SELECT + 20 + - COUNT ( * ) AS col0, 66 * + - 8 * 29
----
19
-15312

query I rowsort
SELECT + 40 + - 61 AS col0
----
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-5627
SELECT DISTINCT 14 * + 74 + + COUNT( DISTINCT - 22 )
----
1037

skipif mysql # not compatible
query I rowsort label-5627
SELECT DISTINCT 14 * + 74 + + COUNT ( DISTINCT - 22 )
----
1037

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5629
SELECT + 54 + + + MIN( 25 ) AS col1
----
79

skipif mysql # not compatible
query I rowsort label-5629
SELECT + 54 + + + MIN ( 25 ) AS col1
----
79

query I rowsort
SELECT + + 63 * 39 col2
----
2457

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

skipif mysql # not compatible
query I rowsort label-5631
SELECT + - COUNT ( * ) + + - 36 AS col1
----
-37

onlyif mysql # DIV for integer division: 
query II rowsort label-5632
SELECT + - ( ( + + 58 ) ) + + 57 DIV + - 37, + 44 * - - 68 AS col1
----
-59
2992

skipif mysql # not compatible
query II rowsort label-5632
SELECT + - ( ( + + 58 ) ) + + 57 / + - 37, + 44 * - - 68 AS col1
----
-59
2992

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5634
SELECT ALL 59 DIV 81
----
0

skipif mysql # not compatible
query I rowsort label-5634
SELECT ALL 59 / 81
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5635
SELECT + 29 DIV + 41 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-5635
SELECT + 29 / + 41 AS col1
----
0

query I rowsort
SELECT ALL - ( 30 ) * + 32 AS col0
----
-960

query I rowsort
SELECT ALL - 23 * + 68 * - - 94 + - 37 AS col1
----
-147053

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5639
SELECT + - COALESCE ( + COUNT( * ), - CAST( + - CASE 5 WHEN - COUNT( * ) THEN 88 WHEN + 67 THEN - - 2 ELSE + + 94 * - 73 END AS SIGNED ) )
----
-1

skipif mysql # not compatible
query I rowsort label-5639
SELECT + - COALESCE ( + COUNT ( * ), - CAST ( + - CASE 5 WHEN - COUNT ( * ) THEN 88 WHEN + 67 THEN - - 2 ELSE + + 94 * - 73 END AS INTEGER ) )
----
-1

query I rowsort
SELECT ALL + + 58 * - 45 + - - ( - 73 )
----
-2683

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

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

query I rowsort
SELECT DISTINCT + 49 * + + 76 + + - 5 * - 81
----
4129

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5643
SELECT DISTINCT + 1 AS col2, 98 + - MIN( - 33 ) DIV + - ( - - COUNT( * ) ) col0
----
1
65

skipif mysql # not compatible
query II rowsort label-5643
SELECT DISTINCT + 1 AS col2, 98 + - MIN ( - 33 ) / + - ( - - COUNT ( * ) ) col0
----
1
65

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

query I rowsort
SELECT 50 * + - ( + 35 ) + + - 34 + + + 9
----
-1775

query I rowsort
SELECT DISTINCT - 71 * 26 + + 38 + + 39 AS col1
----
-1769

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5648
SELECT - 68 * MAX( DISTINCT + 45 ) * - 56
----
171360

skipif mysql # not compatible
query I rowsort label-5648
SELECT - 68 * MAX ( DISTINCT + 45 ) * - 56
----
171360

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5650
SELECT ALL CAST( - - 66 AS SIGNED ) * + - COUNT( - - 75 ) * + COUNT( * ) + + CAST( NULL AS SIGNED ) + 68
----
NULL

skipif mysql # not compatible
query I rowsort label-5650
SELECT ALL CAST ( - - 66 AS INTEGER ) * + - COUNT ( - - 75 ) * + COUNT ( * ) + + CAST ( NULL AS INTEGER ) + 68
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5651
SELECT + 98 * - - 62 * + NULLIF ( NULLIF ( 58, 39 + + - 17 - - 7 + - 61 ), NULLIF ( + 82, COALESCE ( 27, SUM( + 76 ) ) * - 35 ) * 67 ) AS col2
----
352408

skipif mysql # not compatible
query I rowsort label-5651
SELECT + 98 * - - 62 * + NULLIF ( NULLIF ( 58, 39 + + - 17 - - 7 + - 61 ), NULLIF ( + 82, COALESCE ( 27, SUM ( + 76 ) ) * - 35 ) * 67 ) AS col2
----
352408

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5653
SELECT + COALESCE ( + ( + MAX( ALL + 64 ) ), + + 93 * + + 23 * - 7 * + + COUNT( ALL + - 63 ), + 8 DIV + 75 + - + 60 ) * COUNT( * ) + 54 AS col0
----
118

skipif mysql # not compatible
query I rowsort label-5653
SELECT + COALESCE ( + ( + MAX ( ALL + 64 ) ), + + 93 * + + 23 * - 7 * + + COUNT ( ALL + - 63 ), + 8 / + 75 + - + 60 ) * COUNT ( * ) + 54 AS col0
----
118

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5654
SELECT ALL COUNT( * ) * CASE 23 WHEN + 93 THEN - COUNT( * ) + + CASE - 96 WHEN + 39 * - 87 * + 2 THEN + + ( - 61 ) * + 53 - + COUNT( * ) END - - 4 / + 99 END - CAST( + COUNT( * ) + + 18 * 72 AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5654
SELECT ALL COUNT ( * ) * CASE 23 WHEN + 93 THEN - COUNT ( * ) + + CASE - 96 WHEN + 39 * - 87 * + 2 THEN + + ( - 61 ) * + 53 - + COUNT ( * ) END - - 4 / + 99 END - CAST ( + COUNT ( * ) + + 18 * 72 AS INTEGER )
----
NULL

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5656
SELECT - COALESCE ( - - 59, + ( + + 56 ) + - + CAST( + 9 AS SIGNED ) * NULLIF ( + - ( 13 ), + 92 ) * 72 ) * + COUNT( * ) AS col2
----
-59

skipif mysql # not compatible
query I rowsort label-5656
SELECT - COALESCE ( - - 59, + ( + + 56 ) + - + CAST ( + 9 AS INTEGER ) * NULLIF ( + - ( 13 ), + 92 ) * 72 ) * + COUNT ( * ) AS col2
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-5657
SELECT - COUNT( + 50 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-5657
SELECT - COUNT ( + 50 ) AS col0
----
-1

query I rowsort
SELECT - 8 * + + 39 * 58 AS col0
----
-18096

onlyif mysql # DIV for integer division: 
query I rowsort label-5659
SELECT - 77 - + 92 DIV 48
----
-78

skipif mysql # not compatible
query I rowsort label-5659
SELECT - 77 - + 92 / 48
----
-78

query I rowsort
SELECT COALESCE ( + 3, - - 26, 34 )
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5661
SELECT + + 34 * CASE - + 28 WHEN + 61 + - 14 + 30 THEN NULL WHEN - COALESCE ( + 83, + - 45 - + 25 ) THEN - - ( 72 ) WHEN MAX( - 58 ) * + COUNT( - 77 ) THEN + COUNT( * ) + 62 / 16 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-5661
SELECT + + 34 * CASE - + 28 WHEN + 61 + - 14 + 30 THEN NULL WHEN - COALESCE ( + 83, + - 45 - + 25 ) THEN - - ( 72 ) WHEN MAX ( - 58 ) * + COUNT ( - 77 ) THEN + COUNT ( * ) + 62 / 16 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5662
SELECT ALL MIN( ( - 0 ) )
----
0

skipif mysql # not compatible
query I rowsort label-5662
SELECT ALL MIN ( ( - 0 ) )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5663
SELECT DISTINCT COALESCE ( 42, - COUNT( * ) * - 46, + + 35 * - 15 + 5 ) * ( + 18 ) + + 68 AS col1
----
824

skipif mysql # not compatible
query I rowsort label-5663
SELECT DISTINCT COALESCE ( 42, - COUNT ( * ) * - 46, + + 35 * - 15 + 5 ) * ( + 18 ) + + 68 AS col1
----
824

query II rowsort
SELECT DISTINCT - 62 AS col2, 70 + 58 * - + 90
----
-62
-5150

query I rowsort
SELECT DISTINCT - 46 * + ( + 17 ) AS col2
----
-782

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5667
SELECT DISTINCT 33 + - CASE + COUNT( * ) WHEN - ( - - CAST( - + 22 AS SIGNED ) ) * 6 THEN NULL WHEN 19 THEN + - CASE 39 WHEN 70 THEN - - 54 END ELSE NULL END / ( + 87 ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5667
SELECT DISTINCT 33 + - CASE + COUNT ( * ) WHEN - ( - - CAST ( - + 22 AS INTEGER ) ) * 6 THEN NULL WHEN 19 THEN + - CASE 39 WHEN 70 THEN - - 54 END ELSE NULL END / ( + 87 ) col2
----
NULL

query I rowsort
SELECT ALL + 27 + 85
----
112

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5669
SELECT ( - CASE - 77 WHEN MIN( ALL - + 62 ) * - CAST( + 6 AS SIGNED ) THEN + - CASE + 40 WHEN + - 62 THEN - 80 WHEN + 3 * 5 THEN MAX( DISTINCT - 64 ) + 62 ELSE NULL END END ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5669
SELECT ( - CASE - 77 WHEN MIN ( ALL - + 62 ) * - CAST ( + 6 AS INTEGER ) THEN + - CASE + 40 WHEN + - 62 THEN - 80 WHEN + 3 * 5 THEN MAX ( DISTINCT - 64 ) + 62 ELSE NULL END END ) AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5670
SELECT - 25 DIV - 53 + 20 AS col0
----
20

skipif mysql # not compatible
query I rowsort label-5670
SELECT - 25 / - 53 + 20 AS col0
----
20

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5671
SELECT ALL - 39 AS col1, CASE 75 WHEN - - NULLIF ( 38, - 23 * - 88 - - - MIN( DISTINCT 78 ) + 22 + MIN( ALL - - 8 ) * CAST( ( 1 ) AS SIGNED ) * 22 ) * + 4 THEN 59 ELSE NULL END
----
-39
NULL

skipif mysql # not compatible
query II rowsort label-5671
SELECT ALL - 39 AS col1, CASE 75 WHEN - - NULLIF ( 38, - 23 * - 88 - - - MIN ( DISTINCT 78 ) + 22 + MIN ( ALL - - 8 ) * CAST ( ( 1 ) AS INTEGER ) * 22 ) * + 4 THEN 59 ELSE NULL END
----
-39
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5672
SELECT DISTINCT + ( + + CASE - 79 WHEN - MAX( + + 49 ) THEN + + COUNT( * ) * 70 * - 62 + + - COALESCE ( - 46, - 31 ) END ) + 93
----
NULL

skipif mysql # not compatible
query I rowsort label-5672
SELECT DISTINCT + ( + + CASE - 79 WHEN - MAX ( + + 49 ) THEN + + COUNT ( * ) * 70 * - 62 + + - COALESCE ( - 46, - 31 ) END ) + 93
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5673
SELECT NULLIF ( - 40, + COUNT( * ) / + 88 * + - 18 + 90 + 26 / + 56 ) * - + 76 AS col2
----
3040

skipif mysql # not compatible
query I rowsort label-5673
SELECT NULLIF ( - 40, + COUNT ( * ) / + 88 * + - 18 + 90 + 26 / + 56 ) * - + 76 AS col2
----
3040

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5674
SELECT CASE + MAX( - 5 ) WHEN - + 48 THEN - CAST( NULL AS DECIMAL ) ELSE NULL END * - 91 + + + 34 + COUNT( * ) * - - 97 * + MAX( + ( + 63 ) ) * - 32 + + 13
----
NULL

skipif mysql # not compatible
query I rowsort label-5674
SELECT CASE + MAX ( - 5 ) WHEN - + 48 THEN - CAST ( NULL AS REAL ) ELSE NULL END * - 91 + + + 34 + COUNT ( * ) * - - 97 * + MAX ( + ( + 63 ) ) * - 32 + + 13
----
NULL

query I rowsort
SELECT 42 * + 55 AS col0
----
2310

query I rowsort
SELECT 84 * - 11 AS col1
----
-924

query I rowsort
SELECT DISTINCT 86 * + 32 AS col1
----
2752

query I rowsort
SELECT ALL - NULLIF ( - 43, - - 17 )
----
43

query I rowsort
SELECT + 86 * + 94 - - - 0
----
8084

query II rowsort
SELECT 84 - + 6 + - + 91 * 56 * 36 AS col0, - 49 AS col2
----
-183378
-49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5681
SELECT 74 + + MAX( ALL 32 ) * CAST( + 26 AS SIGNED ) AS col1
----
906

skipif mysql # not compatible
query I rowsort label-5681
SELECT 74 + + MAX ( ALL 32 ) * CAST ( + 26 AS INTEGER ) AS col1
----
906

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5682
SELECT ( COUNT( * ) ) DIV - + SUM( - + 75 ), + ( + 78 ) * + 81 - - - 73 AS col1
----
0
6245

skipif mysql # not compatible
query II rowsort label-5682
SELECT ( COUNT ( * ) ) / - + SUM ( - + 75 ), + ( + 78 ) * + 81 - - - 73 AS col1
----
0
6245

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5683
SELECT - 36 * + 97 + - CASE - 97 WHEN + CAST( - 32 AS SIGNED ) * - + 6 THEN + 36 - 31 END * 56 * + 98
----
NULL

skipif mysql # not compatible
query I rowsort label-5683
SELECT - 36 * + 97 + - CASE - 97 WHEN + CAST ( - 32 AS INTEGER ) * - + 6 THEN + 36 - 31 END * 56 * + 98
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5684
SELECT - MIN( ALL + 81 ) + 73 + - 6 AS col0, 10
----
-14
10

skipif mysql # not compatible
query II rowsort label-5684
SELECT - MIN ( ALL + 81 ) + 73 + - 6 AS col0, 10
----
-14
10

query I rowsort
SELECT - 44 * + 52 - - 3 AS col0
----
-2285

query I rowsort
SELECT ALL + + 36 * 1 + 18
----
54

query I rowsort
SELECT ALL + - ( - 80 ) * - + 22
----
-1760

onlyif mysql # aggregate syntax: 
query I rowsort label-5688
SELECT ALL - 17 + - - 12 + - - MAX( - - 32 ) col1
----
27

skipif mysql # not compatible
query I rowsort label-5688
SELECT ALL - 17 + - - 12 + - - MAX ( - - 32 ) col1
----
27

query II rowsort
SELECT + 25 + - 70 AS col0, - 29
----
-45
-29

query I rowsort
SELECT - 52 + + - ( - - 24 ) * - + ( 10 )
----
188

onlyif mysql # aggregate syntax: 
query I rowsort label-5691
SELECT ALL - 56 + 50 + + - 88 + - COUNT( * ) * + 30 * 38 AS col1
----
-1234

skipif mysql # not compatible
query I rowsort label-5691
SELECT ALL - 56 + 50 + + - 88 + - COUNT ( * ) * + 30 * 38 AS col1
----
-1234

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

query I rowsort
SELECT - 74 + + CASE + 19 WHEN 40 - 24 THEN NULL ELSE - + 33 END * - + 20 AS col1
----
586

onlyif mysql # aggregate syntax: 
query I rowsort label-5694
SELECT DISTINCT - MIN( DISTINCT + 15 ) + - 86
----
-101

skipif mysql # not compatible
query I rowsort label-5694
SELECT DISTINCT - MIN ( DISTINCT + 15 ) + - 86
----
-101

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5695
SELECT ALL + + CAST( + COUNT( * ) AS SIGNED ) + 37 AS col1
----
38

skipif mysql # not compatible
query I rowsort label-5695
SELECT ALL + + CAST ( + COUNT ( * ) AS INTEGER ) + 37 AS col1
----
38

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5696
SELECT - CASE - ( + MIN( - - 61 ) ) WHEN - + 91 THEN - + COALESCE ( + + 67, 20 / 62 + + COALESCE ( - CASE + 35 WHEN - + 95 THEN + 86 + + 66 * - 96 WHEN 13 * + 60 + - 37 THEN NULL WHEN + ( - COALESCE ( 28, 70, - NULLIF ( COUNT( * ), - COALESCE ( COUNT( * ), + ( - COUNT( * ) ), ( + NULLIF ( 79, + COALESCE ( - 66, - 31 * - 38, 60 * + 87 ) * 18 ) ) * 88 + - 24 ) ) ) ) * CAST( NULL AS SIGNED ) + - 39 / + 4 THEN + 95 ELSE + 0 * - 88 END, CAST( NULL AS SIGNED ) ) + 73 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-5696
SELECT - CASE - ( + MIN ( - - 61 ) ) WHEN - + 91 THEN - + COALESCE ( + + 67, 20 / 62 + + COALESCE ( - CASE + 35 WHEN - + 95 THEN + 86 + + 66 * - 96 WHEN 13 * + 60 + - 37 THEN NULL WHEN + ( - COALESCE ( 28, 70, - NULLIF ( COUNT ( * ), - COALESCE ( COUNT ( * ), + ( - COUNT ( * ) ), ( + NULLIF ( 79, + COALESCE ( - 66, - 31 * - 38, 60 * + 87 ) * 18 ) ) * 88 + - 24 ) ) ) ) * CAST ( NULL AS INTEGER ) + - 39 / + 4 THEN + 95 ELSE + 0 * - 88 END, CAST ( NULL AS INTEGER ) ) + 73 ) END
----
NULL

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

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

query I rowsort
SELECT ALL + 40 - - 44
----
84

query I rowsort
SELECT DISTINCT + 86 * + 93 AS col0
----
7998

query II rowsort
SELECT + 25, - 31 * + 95 * 51 col2
----
25
-150195

onlyif mysql # aggregate syntax: 
query I rowsort label-5701
SELECT MAX( DISTINCT 55 ) AS col2
----
55

skipif mysql # not compatible
query I rowsort label-5701
SELECT MAX ( DISTINCT 55 ) AS col2
----
55

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

skipif mysql # not compatible
query I rowsort label-5702
SELECT COUNT ( * ) * - - CAST ( - - 60 AS INTEGER )
----
60

onlyif mysql # DIV for integer division: 
query I rowsort label-5703
SELECT - 63 DIV + ( - + 76 ) * NULLIF ( ( - 7 ), + 0 ) * - 42 * 90 * 11 DIV + 72 + - 99 * + + ( 12 ) AS col1
----
-1188

skipif mysql # not compatible
query I rowsort label-5703
SELECT - 63 / + ( - + 76 ) * NULLIF ( ( - 7 ), + 0 ) * - 42 * 90 * 11 / + 72 + - 99 * + + ( 12 ) AS col1
----
-1188

onlyif mysql # aggregate syntax: 
query II rowsort label-5704
SELECT ALL - 23, COUNT( * ) + - NULLIF ( + 86, - 87 ) col2
----
-23
-85

skipif mysql # not compatible
query II rowsort label-5704
SELECT ALL - 23, COUNT ( * ) + - NULLIF ( + 86, - 87 ) col2
----
-23
-85

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

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

query I rowsort
SELECT ALL + 69 - - 91
----
160

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5707
SELECT CASE - ( 11 ) WHEN - + 43 THEN NULL WHEN + COUNT( * ) * - + 58 + + + 4 * - 80 THEN AVG ( DISTINCT ( - 70 ) ) + 66 + - 84 WHEN 78 * - NULLIF ( - MIN( - CAST( NULL AS SIGNED ) ), 9 ) * 58 THEN + 17 * + 35 WHEN ( 57 ) THEN NULL END * - 83 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5707
SELECT CASE - ( 11 ) WHEN - + 43 THEN NULL WHEN + COUNT ( * ) * - + 58 + + + 4 * - 80 THEN AVG ( DISTINCT ( - 70 ) ) + 66 + - 84 WHEN 78 * - NULLIF ( - MIN ( - CAST ( NULL AS INTEGER ) ), 9 ) * 58 THEN + 17 * + 35 WHEN ( 57 ) THEN NULL END * - 83 AS col1
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-5709
SELECT ALL - 13, NULLIF ( - COUNT( * ), + 1 ) AS col2
----
-13
-1

skipif mysql # not compatible
query II rowsort label-5709
SELECT ALL - 13, NULLIF ( - COUNT ( * ), + 1 ) AS col2
----
-13
-1

query I rowsort
SELECT 24 * - 39 + + + ( - 90 ) + - 44 * + 59 * 94 AS col2
----
-245050

query I rowsort
SELECT ALL 91 * - 26 AS col1
----
-2366

onlyif mysql # aggregate syntax: 
query II rowsort label-5712
SELECT ALL 2 * ( + COALESCE ( - + 69, - - 69 ) ) col1, - 12 - + COUNT( DISTINCT + 63 ) + 36 * 30 AS col2
----
-138
1067

skipif mysql # not compatible
query II rowsort label-5712
SELECT ALL 2 * ( + COALESCE ( - + 69, - - 69 ) ) col1, - 12 - + COUNT ( DISTINCT + 63 ) + 36 * 30 AS col2
----
-138
1067

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5713
SELECT COALESCE ( - - COUNT( * ), + 9, - - CASE - 80 WHEN - - MAX( DISTINCT + 89 ) THEN NULL WHEN - - COUNT( * ) * - COUNT( * ) THEN NULL ELSE 92 + - ( - + 23 ) END ) + + 69 DIV + 67
----
2

skipif mysql # not compatible
query I rowsort label-5713
SELECT COALESCE ( - - COUNT ( * ), + 9, - - CASE - 80 WHEN - - MAX ( DISTINCT + 89 ) THEN NULL WHEN - - COUNT ( * ) * - COUNT ( * ) THEN NULL ELSE 92 + - ( - + 23 ) END ) + + 69 / + 67
----
2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5714
SELECT DISTINCT 96 * + + 63 * + ( + CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-5714
SELECT DISTINCT 96 * + + 63 * + ( + CAST ( NULL AS INTEGER ) )
----
NULL

query I rowsort
SELECT 19 + - 85
----
-66

query I rowsort
SELECT + CASE - 67 WHEN - 31 / - ( + - 41 ) - - 30 THEN - 59 ELSE NULL END * - 81 + - 21 AS col1
----
NULL

query I rowsort
SELECT ALL + 1 + - + 72 + 99 + - 38 * + 64 * - 17 AS col0
----
41372

onlyif mysql # DIV for integer division: 
query I rowsort label-5718
SELECT DISTINCT + 79 + + 2 DIV + 83 * 54 - - 90 col2
----
169

skipif mysql # not compatible
query I rowsort label-5718
SELECT DISTINCT + 79 + + 2 / + 83 * 54 - - 90 col2
----
169

query I rowsort
SELECT ALL - 21 + + + 22 AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5720
SELECT ALL + 51 + - + COUNT( * ) AS col0
----
50

skipif mysql # not compatible
query I rowsort label-5720
SELECT ALL + 51 + - + COUNT ( * ) AS col0
----
50

query I rowsort
SELECT DISTINCT + 29 * 75 + 53 AS col1
----
2228

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5722
SELECT DISTINCT - CAST( NULL AS DECIMAL ) + 60 + - - 38 + + - 69 + - + 40 * - COUNT( * ) + + 28 + + 55 * 81 / + 29
----
NULL

skipif mysql # not compatible
query I rowsort label-5722
SELECT DISTINCT - CAST ( NULL AS REAL ) + 60 + - - 38 + + - 69 + - + 40 * - COUNT ( * ) + + 28 + + 55 * 81 / + 29
----
NULL

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

query II rowsort
SELECT - + 66 col1, + ( + 50 ) col2
----
-66
50

onlyif mysql # aggregate syntax: 
query I rowsort label-5725
SELECT 10 / CASE - - COUNT( ALL 68 ) WHEN - 5 THEN - COUNT( * ) + - 32 + + COALESCE ( - AVG ( + 91 ), 85 - + - 87 ) + + NULLIF ( ( - COUNT( * ) ), SUM( ALL 96 ) - - CASE 60 WHEN 80 THEN + 19 WHEN 95 THEN NULL WHEN - 41 + 45 / 69 THEN + COUNT( * ) ELSE NULL END ) ELSE NULL END * - 45 + - 16 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5725
SELECT 10 / CASE - - COUNT ( ALL 68 ) WHEN - 5 THEN - COUNT ( * ) + - 32 + + COALESCE ( - AVG ( + 91 ), 85 - + - 87 ) + + NULLIF ( ( - COUNT ( * ) ), SUM ( ALL 96 ) - - CASE 60 WHEN 80 THEN + 19 WHEN 95 THEN NULL WHEN - 41 + 45 / 69 THEN + COUNT ( * ) ELSE NULL END ) ELSE NULL END * - 45 + - 16 AS col2
----
NULL

query I rowsort
SELECT ALL + 69 * - 86
----
-5934

query I rowsort
SELECT ALL - 36 * - 94 * + 45
----
152280

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5728
SELECT + - 30 DIV + SUM( 66 ) * - CASE + - 51 WHEN + 84 THEN - 68 + - + COUNT( * ) * + - 73 ELSE 55 END + - 46 + - 41 - + 54 * 41 + + - 25
----
-2326

skipif mysql # not compatible
query I rowsort label-5728
SELECT + - 30 / + SUM ( 66 ) * - CASE + - 51 WHEN + 84 THEN - 68 + - + COUNT ( * ) * + - 73 ELSE 55 END + - 46 + - 41 - + 54 * 41 + + - 25
----
-2326

query I rowsort
SELECT ALL - 25 + 90 * + + ( + 59 )
----
5285

onlyif mysql # aggregate syntax: 
query I rowsort label-5730
SELECT ALL + - 53 - - MAX( - + ( 5 ) ) AS col2
----
-58

skipif mysql # not compatible
query I rowsort label-5730
SELECT ALL + - 53 - - MAX ( - + ( 5 ) ) AS col2
----
-58

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5732
SELECT ALL - 75 * + - MAX( ALL + CAST( 81 AS SIGNED ) )
----
6075

skipif mysql # not compatible
query I rowsort label-5732
SELECT ALL - 75 * + - MAX ( ALL + CAST ( 81 AS INTEGER ) )
----
6075

onlyif mysql # aggregate syntax: 
query I rowsort label-5733
SELECT - 38 - 86 + - + 75 - - MIN( - 93 ) * 98 col0
----
-9313

skipif mysql # not compatible
query I rowsort label-5733
SELECT - 38 - 86 + - + 75 - - MIN ( - 93 ) * 98 col0
----
-9313

onlyif mysql # aggregate syntax: 
query I rowsort label-5734
SELECT DISTINCT COUNT( + + 62 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-5734
SELECT DISTINCT COUNT ( + + 62 ) AS col1
----
1

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

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

query II rowsort
SELECT - 70 AS col1, 5 + - 2 AS col2
----
-70
3

onlyif mysql # aggregate syntax: 
query III rowsort label-5737
SELECT 36, + 34 AS col1, - COUNT( ALL NULLIF ( + + COALESCE ( + + COALESCE ( + - 74, + 86 * + - 81 - - 43, - 15 ), + + 61 ), - ( 93 ) ) ) AS col1
----
36
34
-1

skipif mysql # not compatible
query III rowsort label-5737
SELECT 36, + 34 AS col1, - COUNT ( ALL NULLIF ( + + COALESCE ( + + COALESCE ( + - 74, + 86 * + - 81 - - 43, - 15 ), + + 61 ), - ( 93 ) ) ) AS col1
----
36
34
-1

query II rowsort
SELECT ALL + 13 AS col2, - 76 * + 20
----
13
-1520

onlyif mysql # DIV for integer division: 
query I rowsort label-5739
SELECT + 59 DIV 79 + + 11 col2
----
11

skipif mysql # not compatible
query I rowsort label-5739
SELECT + 59 / 79 + + 11 col2
----
11

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5740
SELECT + ( - COUNT( * ) ) * + 95 * NULLIF ( + 90, - 30 ) DIV + - 80 + - 26 AS col1
----
80

skipif mysql # not compatible
query I rowsort label-5740
SELECT + ( - COUNT ( * ) ) * + 95 * NULLIF ( + 90, - 30 ) / + - 80 + - 26 AS col1
----
80

onlyif mysql # aggregate syntax: 
query II rowsort label-5741
SELECT + 81 AS col2, 24 * - - 63 * - MAX( DISTINCT + 19 ) AS col0
----
81
-28728

skipif mysql # not compatible
query II rowsort label-5741
SELECT + 81 AS col2, 24 * - - 63 * - MAX ( DISTINCT + 19 ) AS col0
----
81
-28728

onlyif mysql # aggregate syntax: 
query I rowsort label-5742
SELECT DISTINCT + COALESCE ( - MIN( 86 ), + 15 * - 7 * + ( 40 ) + - 64 )
----
-86

skipif mysql # not compatible
query I rowsort label-5742
SELECT DISTINCT + COALESCE ( - MIN ( 86 ), + 15 * - 7 * + ( 40 ) + - 64 )
----
-86

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

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

query I rowsort
SELECT - ( + 2 ) * + 31 + - - 16
----
-46

query I rowsort
SELECT ALL + 65 * + 70 AS col0
----
4550

onlyif mysql # aggregate syntax: DIV for integer division: 
query III rowsort label-5746
SELECT ALL + COUNT( * ), 5 AS col2, + - 26 DIV 2 * + 79 + 40 AS col0
----
1
5
-987

skipif mysql # not compatible
query III rowsort label-5746
SELECT ALL + COUNT ( * ), 5 AS col2, + - 26 / 2 * + 79 + 40 AS col0
----
1
5
-987

query I rowsort
SELECT ALL - 38 * + 40 AS col2
----
-1520

onlyif mysql # DIV for integer division: 
query I rowsort label-5748
SELECT - 67 DIV 52
----
-1

skipif mysql # not compatible
query I rowsort label-5748
SELECT - 67 / 52
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5749
SELECT - 85 - - 91 + + + CAST( NULL AS SIGNED ) / 42 + + - ( + - CAST( + + MIN( + 12 ) AS SIGNED ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5749
SELECT - 85 - - 91 + + + CAST ( NULL AS INTEGER ) / 42 + + - ( + - CAST ( + + MIN ( + 12 ) AS INTEGER ) ) AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5750
SELECT DISTINCT + 45 AS col0, - CAST( NULL AS SIGNED ) AS col2
----
45
NULL

skipif mysql # not compatible
query II rowsort label-5750
SELECT DISTINCT + 45 AS col0, - CAST ( NULL AS INTEGER ) AS col2
----
45
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5751
SELECT CASE + 28 WHEN + 24 THEN NULL WHEN 64 THEN - + COUNT( * ) * + 64 + - NULLIF ( - 94, - + 31 + - AVG ( ALL + 52 ) ) + + CASE - + 21 WHEN - NULLIF ( - - 69, + 8 + + 12 ) THEN NULL WHEN 8 * COUNT( * ) THEN NULL ELSE ( COUNT( * ) ) END / + 58 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5751
SELECT CASE + 28 WHEN + 24 THEN NULL WHEN 64 THEN - + COUNT ( * ) * + 64 + - NULLIF ( - 94, - + 31 + - AVG ( ALL + 52 ) ) + + CASE - + 21 WHEN - NULLIF ( - - 69, + 8 + + 12 ) THEN NULL WHEN 8 * COUNT ( * ) THEN NULL ELSE ( COUNT ( * ) ) END / + 58 END AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5752
SELECT - 37 DIV + - 31 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-5752
SELECT - 37 / + - 31 AS col0
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5753
SELECT ALL - 31 * + + NULLIF ( - - CAST( NULL AS SIGNED ), CASE COUNT( DISTINCT + 59 ) WHEN + 92 THEN 49 END * + 6 - 54 ) + + - COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5753
SELECT ALL - 31 * + + NULLIF ( - - CAST ( NULL AS INTEGER ), CASE COUNT ( DISTINCT + 59 ) WHEN + 92 THEN 49 END * + 6 - 54 ) + + - COUNT ( * ) AS col0
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5755
SELECT ALL - COUNT( * ) * + COUNT( * ) + + 8 - - COUNT( * ) + + NULLIF ( - 50, - + COUNT( * ) / + - ( 93 ) ) AS col1
----
-42

skipif mysql # not compatible
query I rowsort label-5755
SELECT ALL - COUNT ( * ) * + COUNT ( * ) + + 8 - - COUNT ( * ) + + NULLIF ( - 50, - + COUNT ( * ) / + - ( 93 ) ) AS col1
----
-42

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5756
SELECT - MIN( ALL CAST( NULL AS DECIMAL ) ) * - - 63 - - 57
----
NULL

skipif mysql # not compatible
query I rowsort label-5756
SELECT - MIN ( ALL CAST ( NULL AS REAL ) ) * - - 63 - - 57
----
NULL

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

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

query I rowsort
SELECT DISTINCT + - 46 * - ( + 73 ) + - + 46 + + 22 * - 58 + - 58 * - 43 * + 21 AS col2
----
54410

onlyif mysql # aggregate syntax: 
query I rowsort label-5759
SELECT + - MAX( 53 )
----
-53

skipif mysql # not compatible
query I rowsort label-5759
SELECT + - MAX ( 53 )
----
-53

query I rowsort
SELECT + + 95 * - - 23 AS col1
----
2185

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5761
SELECT ALL + + ( 20 ) * + 23 DIV COUNT( * ) + + 5 * - - 14 AS col2
----
530

skipif mysql # not compatible
query I rowsort label-5761
SELECT ALL + + ( 20 ) * + 23 / COUNT ( * ) + + 5 * - - 14 AS col2
----
530

onlyif mysql # aggregate syntax: 
query I rowsort label-5762
SELECT + + COUNT( * ) + + 73
----
74

skipif mysql # not compatible
query I rowsort label-5762
SELECT + + COUNT ( * ) + + 73
----
74

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5763
SELECT - + CAST( NULL AS SIGNED ) AS col1, SUM( - 68 ) AS col0
----
NULL
-68

skipif mysql # not compatible
query II rowsort label-5763
SELECT - + CAST ( NULL AS INTEGER ) AS col1, SUM ( - 68 ) AS col0
----
NULL
-68

query I rowsort
SELECT + 43 - - 43
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-5765
SELECT ALL COUNT( * ) - + - 99
----
100

skipif mysql # not compatible
query I rowsort label-5765
SELECT ALL COUNT ( * ) - + - 99
----
100

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

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

query I rowsort
SELECT + 23 + 69 + - - 73 col0
----
165

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5768
SELECT ALL + 13 - 2 + ( + 1 ) * - ( + CAST( COALESCE ( + - 0, 9 * 48 * - 41 ) AS SIGNED ) ) + COUNT( * ) col2
----
12

skipif mysql # not compatible
query I rowsort label-5768
SELECT ALL + 13 - 2 + ( + 1 ) * - ( + CAST ( COALESCE ( + - 0, 9 * 48 * - 41 ) AS INTEGER ) ) + COUNT ( * ) col2
----
12

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5769
SELECT + + 7 * 34 AS col0, + MAX( ALL - - 38 ) + 98 + - 35 DIV + + 14 col0
----
238
134

skipif mysql # not compatible
query II rowsort label-5769
SELECT + + 7 * 34 AS col0, + MAX ( ALL - - 38 ) + 98 + - 35 / + + 14 col0
----
238
134

query I rowsort
SELECT - + 2 * ( + 67 ) AS col0
----
-134

onlyif mysql # aggregate syntax: 
query I rowsort label-5771
SELECT - - COUNT( * ) + + 84 - + 25 + + + 24 * 35 + - + 48 + - ( + + 89 ) * + 80 * 77 - - 32 col2
----
-547356

skipif mysql # not compatible
query I rowsort label-5771
SELECT - - COUNT ( * ) + + 84 - + 25 + + + 24 * 35 + - + 48 + - ( + + 89 ) * + 80 * 77 - - 32 col2
----
-547356

query I rowsort
SELECT ALL 28 * - 67
----
-1876

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5773
SELECT - 39 + + - COUNT( * ) DIV + 99 + 53 AS col0
----
14

skipif mysql # not compatible
query I rowsort label-5773
SELECT - 39 + + - COUNT ( * ) / + 99 + 53 AS col0
----
14

query I rowsort
SELECT + 51 * - 37 AS col1
----
-1887

onlyif mysql # aggregate syntax: 
query I rowsort label-5775
SELECT + CASE + - 6 WHEN - - 9 + + 54 THEN COALESCE ( + 71, - 73 ) END * + - MAX( DISTINCT 90 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5775
SELECT + CASE + - 6 WHEN - - 9 + + 54 THEN COALESCE ( + 71, - 73 ) END * + - MAX ( DISTINCT 90 ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5776
SELECT - MIN( + + 99 ) * - + 26 + - COUNT( * ) * 74 + 44
----
2544

skipif mysql # not compatible
query I rowsort label-5776
SELECT - MIN ( + + 99 ) * - + 26 + - COUNT ( * ) * 74 + 44
----
2544

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5777
SELECT - CAST( NULL AS SIGNED ) - + 19 - 0 - + 99 + - 34 / 50 * - - 52 + + + 39 * - MIN( - 63 ) * - ( + + 6 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5777
SELECT - CAST ( NULL AS INTEGER ) - + 19 - 0 - + 99 + - 34 / 50 * - - 52 + + + 39 * - MIN ( - 63 ) * - ( + + 6 ) AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5778
SELECT ALL 4 DIV 6 + + CASE WHEN NOT 82 BETWEEN - 65 AND + 65 + + 53 THEN NULL ELSE + 21 END AS col0
----
21

skipif mysql # not compatible
query I rowsort label-5778
SELECT ALL 4 / 6 + + CASE WHEN NOT 82 BETWEEN - 65 AND + 65 + + 53 THEN NULL ELSE + 21 END AS col0
----
21

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: DIV for integer division: 
query I rowsort label-5779
SELECT CASE + CASE + 40 WHEN + AVG ( DISTINCT + + 52 ) * - 72 + - 94 DIV + 0 THEN CAST( NULL AS DECIMAL ) * - + 54 WHEN + - 38 THEN - 27 ELSE - 29 END WHEN - CASE - 36 WHEN 6 THEN + 35 * 92 ELSE NULL END DIV + 59 THEN NULL ELSE + 95 * - 84 + + CAST( 57 AS SIGNED ) END DIV + 70 + 5 AS col0
----
-108

skipif mysql # not compatible
query I rowsort label-5779
SELECT CASE + CASE + 40 WHEN + AVG ( DISTINCT + + 52 ) * - 72 + - 94 / + 0 THEN CAST ( NULL AS REAL ) * - + 54 WHEN + - 38 THEN - 27 ELSE - 29 END WHEN - CASE - 36 WHEN 6 THEN + 35 * 92 ELSE NULL END / + 59 THEN NULL ELSE + 95 * - 84 + + CAST ( 57 AS INTEGER ) END / + 70 + 5 AS col0
----
-108

onlyif mysql # aggregate syntax: 
query I rowsort label-5780
SELECT 61 * COUNT( * ) * NULLIF ( - 89, + 80 ) * + 8 + 92
----
-43340

skipif mysql # not compatible
query I rowsort label-5780
SELECT 61 * COUNT ( * ) * NULLIF ( - 89, + 80 ) * + 8 + 92
----
-43340

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-5781
SELECT ALL - COUNT( * ) * 60 + - 9 + + COALESCE ( + - 6, 71 + - - 93, - 65 * 67 * 21 + + + CAST( NULL AS SIGNED ) ) DIV - 19 AS col2, 67 * COUNT( * ) AS col0
----
-69
67

skipif mysql # not compatible
query II rowsort label-5781
SELECT ALL - COUNT ( * ) * 60 + - 9 + + COALESCE ( + - 6, 71 + - - 93, - 65 * 67 * 21 + + + CAST ( NULL AS INTEGER ) ) / - 19 AS col2, 67 * COUNT ( * ) AS col0
----
-69
67

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5782
SELECT + COALESCE ( COUNT( * ), 13 * 34 + - 55 DIV - 83 )
----
1

skipif mysql # not compatible
query I rowsort label-5782
SELECT + COALESCE ( COUNT ( * ), 13 * 34 + - 55 / - 83 )
----
1

query I rowsort
SELECT DISTINCT - + 24 * + + 49 - 33 * + 5
----
-1341

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

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

query II rowsort
SELECT DISTINCT + + 12 - + - 88 AS col1, + 52 * + + 49
----
100
2548

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5786
SELECT ALL 10 - - 58 - + - 14 DIV ( + - 99 ) DIV - 43 + - 56 - 82 + MIN( - 31 ) * + COUNT( * ) * 75
----
-2395

skipif mysql # not compatible
query I rowsort label-5786
SELECT ALL 10 - - 58 - + - 14 / ( + - 99 ) / - 43 + - 56 - 82 + MIN ( - 31 ) * + COUNT ( * ) * 75
----
-2395

onlyif mysql # DIV for integer division: 
query I rowsort label-5787
SELECT ALL 15 DIV - 73 - - 96 AS col0
----
96

skipif mysql # not compatible
query I rowsort label-5787
SELECT ALL 15 / - 73 - - 96 AS col0
----
96

query I rowsort
SELECT 72 * - 52 + 33
----
-3711

onlyif mysql # aggregate syntax: 
query II rowsort label-5789
SELECT DISTINCT - MIN( ALL + 86 ) * - 47 AS col0, 83 * + 54
----
4042
4482

skipif mysql # not compatible
query II rowsort label-5789
SELECT DISTINCT - MIN ( ALL + 86 ) * - 47 AS col0, 83 * + 54
----
4042
4482

onlyif mysql # aggregate syntax: 
query II rowsort label-5790
SELECT ALL - + 70 - + 96 - - 25, - 45 * NULLIF ( 47, - COUNT( * ) / + SUM( ALL - 59 ) ) AS col0
----
-141
-2115

skipif mysql # not compatible
query II rowsort label-5790
SELECT ALL - + 70 - + 96 - - 25, - 45 * NULLIF ( 47, - COUNT ( * ) / + SUM ( ALL - 59 ) ) AS col0
----
-141
-2115

query I rowsort
SELECT ( - ( - + 40 ) ) * - ( - 48 ) - - 5 AS col2
----
1925

onlyif mysql # aggregate syntax: 
query II rowsort label-5792
SELECT + COALESCE ( - 20, + 46 + + 64, 45 ) AS col1, - 67 + - SUM( DISTINCT - 34 )
----
-20
-33

skipif mysql # not compatible
query II rowsort label-5792
SELECT + COALESCE ( - 20, + 46 + + 64, 45 ) AS col1, - 67 + - SUM ( DISTINCT - 34 )
----
-20
-33

onlyif mysql # DIV for integer division: 
query I rowsort label-5793
SELECT 83 DIV - - 65 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-5793
SELECT 83 / - - 65 AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5794
SELECT 29 - - 30 * MAX( + 52 ) AS col1
----
1589

skipif mysql # not compatible
query I rowsort label-5794
SELECT 29 - - 30 * MAX ( + 52 ) AS col1
----
1589

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5795
SELECT 72 * - ( - 69 ) + + 39 * COALESCE ( - 79, + CASE - ( + 16 ) WHEN - COUNT( * ) + + CAST( NULL AS SIGNED ) * - 82 THEN - - 28 WHEN - 38 THEN NULL ELSE NULL END + - ( + COUNT( - 57 ) ), - 12 ) * 61 + - COUNT( * ) * - COUNT( * ) AS col2
----
-182972

skipif mysql # not compatible
query I rowsort label-5795
SELECT 72 * - ( - 69 ) + + 39 * COALESCE ( - 79, + CASE - ( + 16 ) WHEN - COUNT ( * ) + + CAST ( NULL AS INTEGER ) * - 82 THEN - - 28 WHEN - 38 THEN NULL ELSE NULL END + - ( + COUNT ( - 57 ) ), - 12 ) * 61 + - COUNT ( * ) * - COUNT ( * ) AS col2
----
-182972

onlyif mysql # DIV for integer division: 
query I rowsort label-5796
SELECT - 87 - 37 DIV - 68 AS col1
----
-87

skipif mysql # not compatible
query I rowsort label-5796
SELECT - 87 - 37 / - 68 AS col1
----
-87

query II rowsort
SELECT 75 AS col1, 79
----
75
79

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5798
SELECT ALL 74 + - COALESCE ( - - 39, CAST( 77 AS SIGNED ) ) col0
----
35

skipif mysql # not compatible
query I rowsort label-5798
SELECT ALL 74 + - COALESCE ( - - 39, CAST ( 77 AS INTEGER ) ) col0
----
35

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5799
SELECT 87 - 9 * + - CAST( - 78 AS SIGNED ) AS col2
----
-615

skipif mysql # not compatible
query I rowsort label-5799
SELECT 87 - 9 * + - CAST ( - 78 AS INTEGER ) AS col2
----
-615

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5801
SELECT 91 col0, NULLIF ( - + CASE CASE - - 96 WHEN - ( + + CASE - 75 WHEN CASE - 59 WHEN + 60 THEN NULL ELSE - 85 END * - 70 + + + 14 + 6 THEN NULL WHEN ( - 92 ) + COUNT( * ) THEN - 60 * 49 + 23 WHEN + 96 + + 45 / - 9 THEN + COALESCE ( + 33, COALESCE ( + COUNT( * ), + 61 ) * + 16 ) ELSE 7 / - 82 END ) THEN + CAST( - 70 AS SIGNED ) WHEN 77 * 11 THEN NULL END WHEN 73 THEN + CAST( NULL AS SIGNED ) - + 6 WHEN + 13 + ( 39 ) THEN + 47 ELSE 11 + + MIN( DISTINCT COALESCE ( - 66, ( - NULLIF ( CAST( - 79 AS SIGNED ), 21 ) ), 81 + + 77 ) ) END, SUM( DISTINCT + 90 ) ) AS col2
----
91
55

skipif mysql # not compatible
query II rowsort label-5801
SELECT 91 col0, NULLIF ( - + CASE CASE - - 96 WHEN - ( + + CASE - 75 WHEN CASE - 59 WHEN + 60 THEN NULL ELSE - 85 END * - 70 + + + 14 + 6 THEN NULL WHEN ( - 92 ) + COUNT ( * ) THEN - 60 * 49 + 23 WHEN + 96 + + 45 / - 9 THEN + COALESCE ( + 33, COALESCE ( + COUNT ( * ), + 61 ) * + 16 ) ELSE 7 / - 82 END ) THEN + CAST ( - 70 AS INTEGER ) WHEN 77 * 11 THEN NULL END WHEN 73 THEN + CAST ( NULL AS INTEGER ) - + 6 WHEN + 13 + ( 39 ) THEN + 47 ELSE 11 + + MIN ( DISTINCT COALESCE ( - 66, ( - NULLIF ( CAST ( - 79 AS INTEGER ), 21 ) ), 81 + + 77 ) ) END, SUM ( DISTINCT + 90 ) ) AS col2
----
91
55

onlyif mysql # aggregate syntax: 
query I rowsort label-5802
SELECT MIN( ALL 67 ) + - ( + 25 )
----
42

skipif mysql # not compatible
query I rowsort label-5802
SELECT MIN ( ALL 67 ) + - ( + 25 )
----
42

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5803
SELECT + 13 DIV + + 98 + + MAX( DISTINCT - NULLIF ( + - 55, - 11 ) )
----
55

skipif mysql # not compatible
query I rowsort label-5803
SELECT + 13 / + + 98 + + MAX ( DISTINCT - NULLIF ( + - 55, - 11 ) )
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-5804
SELECT - 25 * - - MAX( + + 30 ) - - 49 - ( 99 ) + + 25 - 21 AS col0
----
-796

skipif mysql # not compatible
query I rowsort label-5804
SELECT - 25 * - - MAX ( + + 30 ) - - 49 - ( 99 ) + + 25 - 21 AS col0
----
-796

onlyif mysql # DIV for integer division: 
query I rowsort label-5805
SELECT DISTINCT 85 DIV ( 99 ) col2
----
0

skipif mysql # not compatible
query I rowsort label-5805
SELECT DISTINCT 85 / ( 99 ) col2
----
0

query I rowsort
SELECT ALL + 75 * COALESCE ( + + 96, - 0 )
----
7200

query II rowsort
SELECT 91 AS col1, + 39 AS col1
----
91
39

query I rowsort
SELECT ALL 20 * 57
----
1140

query I rowsort
SELECT DISTINCT 79 + - - 8 AS col2
----
87

query I rowsort
SELECT 18 * - 36 col0
----
-648

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

query II rowsort
SELECT + - 69 AS col0, - 33 * + 72 * + 43
----
-69
-102168

onlyif mysql # aggregate syntax: 
query II rowsort label-5813
SELECT MIN( ALL ( + 95 ) ), - MAX( ALL - 90 ) AS col0
----
95
90

skipif mysql # not compatible
query II rowsort label-5813
SELECT MIN ( ALL ( + 95 ) ), - MAX ( ALL - 90 ) AS col0
----
95
90

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5814
SELECT + - 16 AS col0, + CAST( + - 29 AS SIGNED ) + - 42
----
-16
-71

skipif mysql # not compatible
query II rowsort label-5814
SELECT + - 16 AS col0, + CAST ( + - 29 AS INTEGER ) + - 42
----
-16
-71

query I rowsort
SELECT - 28 + - 46
----
-74

onlyif mysql # DIV for integer division: 
query I rowsort label-5816
SELECT 18 DIV 20 * + + 73 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-5816
SELECT 18 / 20 * + + 73 AS col1
----
0

query I rowsort
SELECT - 2 * 24 * - - 12 AS col0
----
-576

onlyif mysql # aggregate syntax: 
query I rowsort label-5818
SELECT - COUNT( * ) * - ( - 58 ) + + 85 + 53 * - 2 AS col2
----
-79

skipif mysql # not compatible
query I rowsort label-5818
SELECT - COUNT ( * ) * - ( - 58 ) + + 85 + 53 * - 2 AS col2
----
-79

query I rowsort
SELECT DISTINCT - - 43 col1
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-5820
SELECT 18 + - - 60 * + + MIN( ALL ( + 58 ) ) AS col0
----
3498

skipif mysql # not compatible
query I rowsort label-5820
SELECT 18 + - - 60 * + + MIN ( ALL ( + 58 ) ) AS col0
----
3498

onlyif mysql # aggregate syntax: 
query I rowsort label-5821
SELECT ALL - COUNT( * ) * + 95 + MAX( ALL 36 ) * COALESCE ( - 38, + 5 )
----
-1463

skipif mysql # not compatible
query I rowsort label-5821
SELECT ALL - COUNT ( * ) * + 95 + MAX ( ALL 36 ) * COALESCE ( - 38, + 5 )
----
-1463

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5823
SELECT - 18 * COUNT( ALL - COALESCE ( - ( - 85 ), - 81 ) ) + 23
----
5

skipif mysql # not compatible
query I rowsort label-5823
SELECT - 18 * COUNT ( ALL - COALESCE ( - ( - 85 ), - 81 ) ) + 23
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-5824
SELECT COUNT( * ) + + - COUNT( * ) + + + COUNT( * ) + + 2 * 70 * 9 AS col2
----
1261

skipif mysql # not compatible
query I rowsort label-5824
SELECT COUNT ( * ) + + - COUNT ( * ) + + + COUNT ( * ) + + 2 * 70 * 9 AS col2
----
1261

query II rowsort
SELECT + 19 col1, 1 + + 58 AS col0
----
19
59

onlyif mysql # aggregate syntax: 
query II rowsort label-5826
SELECT - MIN( DISTINCT 85 ) + 47 col0, 45
----
-38
45

skipif mysql # not compatible
query II rowsort label-5826
SELECT - MIN ( DISTINCT 85 ) + 47 col0, 45
----
-38
45

query II rowsort
SELECT DISTINCT 40 + - 8 AS col1, 69
----
32
69

onlyif mysql # aggregate syntax: 
query I rowsort label-5828
SELECT ALL SUM( DISTINCT - 4 ) + - 40
----
-44

skipif mysql # not compatible
query I rowsort label-5828
SELECT ALL SUM ( DISTINCT - 4 ) + - 40
----
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-5829
SELECT COUNT( + 39 ) + + ( - - 74 )
----
75

skipif mysql # not compatible
query I rowsort label-5829
SELECT COUNT ( + 39 ) + + ( - - 74 )
----
75

onlyif mysql # DIV for integer division: 
query I rowsort label-5830
SELECT ALL + 6 DIV 12 * + 70
----
0

skipif mysql # not compatible
query I rowsort label-5830
SELECT ALL + 6 / 12 * + 70
----
0

query II rowsort
SELECT ALL 80 + - + 35 AS col2, - 17 AS col2
----
45
-17

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

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

query I rowsort
SELECT ( 19 ) * 31 * - - ( + 30 )
----
17670

onlyif mysql # aggregate syntax: 
query I rowsort label-5834
SELECT SUM( + + 43 ) + 64
----
107

skipif mysql # not compatible
query I rowsort label-5834
SELECT SUM ( + + 43 ) + 64
----
107

query I rowsort
SELECT ALL 32 * 0 col2
----
0

query I rowsort
SELECT ALL - 34 * + 32 AS col0
----
-1088

query II rowsort
SELECT DISTINCT 38 + + 27 col0, + 8 * + 26 AS col2
----
65
208

onlyif mysql # aggregate syntax: 
query II rowsort label-5838
SELECT 28 + 89 + 1 * + COUNT( * ) col1, - 70 + - 20 AS col0
----
118
-90

skipif mysql # not compatible
query II rowsort label-5838
SELECT 28 + 89 + 1 * + COUNT ( * ) col1, - 70 + - 20 AS col0
----
118
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-5839
SELECT + 43 * ( 4 ) * + + 99 * 41 + + COUNT( * ) + - 9 + - 15 col1
----
698125

skipif mysql # not compatible
query I rowsort label-5839
SELECT + 43 * ( 4 ) * + + 99 * 41 + + COUNT ( * ) + - 9 + - 15 col1
----
698125

query I rowsort
SELECT + 55 * 72
----
3960

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5841
SELECT CASE - 49 WHEN + 46 + 23 * 91 THEN - 15 DIV - ( 13 ) - - 65 WHEN - 88 THEN NULL END AS col0, + SUM( DISTINCT 85 ) DIV + 37
----
NULL
2

skipif mysql # not compatible
query II rowsort label-5841
SELECT CASE - 49 WHEN + 46 + 23 * 91 THEN - 15 / - ( 13 ) - - 65 WHEN - 88 THEN NULL END AS col0, + SUM ( DISTINCT 85 ) / + 37
----
NULL
2

query I rowsort
SELECT + 78 * - - 39 + - + 65 col0
----
2977

query I rowsort
SELECT ALL - 52 * + 31 + - 33
----
-1645

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5844
SELECT + - 47 * - + MAX( - 6 ) * - 78 AS col0, - 36 DIV + - 90 * + 47 + + 81 * + COUNT( * ) AS col1
----
21996
81

skipif mysql # not compatible
query II rowsort label-5844
SELECT + - 47 * - + MAX ( - 6 ) * - 78 AS col0, - 36 / + - 90 * + 47 + + 81 * + COUNT ( * ) AS col1
----
21996
81

query I rowsort
SELECT DISTINCT - 8 * - 87 * + 69
----
48024

onlyif mysql # aggregate syntax: 
query I rowsort label-5846
SELECT - 89 + ( COUNT( * ) )
----
-88

skipif mysql # not compatible
query I rowsort label-5846
SELECT - 89 + ( COUNT ( * ) )
----
-88

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5848
SELECT - - 14 + - + COUNT( * ) * + NULLIF ( - ( MIN( + 1 ) ), - ( - - 40 ) ) * 20 * + COALESCE ( + 94, - COUNT( * ) + - - ( - 93 ) + - + 93 ) - - 8
----
1902

skipif mysql # not compatible
query I rowsort label-5848
SELECT - - 14 + - + COUNT ( * ) * + NULLIF ( - ( MIN ( + 1 ) ), - ( - - 40 ) ) * 20 * + COALESCE ( + 94, - COUNT ( * ) + - - ( - 93 ) + - + 93 ) - - 8
----
1902

onlyif mysql # aggregate syntax: 
query I rowsort label-5849
SELECT ALL - 65 + - - SUM( + 51 ) AS col1
----
-14

skipif mysql # not compatible
query I rowsort label-5849
SELECT ALL - 65 + - - SUM ( + 51 ) AS col1
----
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-5850
SELECT - - 95 * - MIN( - + 3 ) AS col0
----
285

skipif mysql # not compatible
query I rowsort label-5850
SELECT - - 95 * - MIN ( - + 3 ) AS col0
----
285

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5851
SELECT - CAST( + AVG ( ALL 55 ) AS SIGNED ) * - 49 col0
----
2695

skipif mysql # not compatible
query I rowsort label-5851
SELECT - CAST ( + AVG ( ALL 55 ) AS INTEGER ) * - 49 col0
----
2695

query I rowsort
SELECT ALL - 47 + + 90
----
43

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5853
SELECT - 45 - 51 + 99 * - COALESCE ( 68, + 61 * 71 + - 25 ) * NULLIF ( 21, + + 88 + 14 * + + 63 - MAX( - - 73 ) + + + 44 * - CASE + + CAST( NULL AS SIGNED ) WHEN - 17 * 37 - 6 THEN ( COUNT( * ) ) ELSE NULL END * + 72 ) + - 97
----
-141565

skipif mysql # not compatible
query I rowsort label-5853
SELECT - 45 - 51 + 99 * - COALESCE ( 68, + 61 * 71 + - 25 ) * NULLIF ( 21, + + 88 + 14 * + + 63 - MAX ( - - 73 ) + + + 44 * - CASE + + CAST ( NULL AS INTEGER ) WHEN - 17 * 37 - 6 THEN ( COUNT ( * ) ) ELSE NULL END * + 72 ) + - 97
----
-141565

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5854
SELECT - CAST( NULL AS SIGNED ) - + 30 + - SUM( DISTINCT - - 70 ) AS col0
----
NULL

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

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

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

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

skipif mysql # not compatible
query I rowsort label-5856
SELECT DISTINCT ( MAX ( 15 ) )
----
15

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5857
SELECT ALL CAST( CAST( + COALESCE ( - NULLIF ( 32, - 40 / - 8 + 92 + 6 ), + ( + 0 ) + + - 9 ) AS SIGNED ) AS SIGNED ) - + 79
----
-111

skipif mysql # not compatible
query I rowsort label-5857
SELECT ALL CAST ( CAST ( + COALESCE ( - NULLIF ( 32, - 40 / - 8 + 92 + 6 ), + ( + 0 ) + + - 9 ) AS INTEGER ) AS INTEGER ) - + 79
----
-111

query I rowsort
SELECT - 91 - - 80 AS col2
----
-11

query I rowsort
SELECT - 67 - + 33
----
-100

onlyif mysql # DIV for integer division: 
query I rowsort label-5860
SELECT DISTINCT - 57 DIV + 73 col0
----
0

skipif mysql # not compatible
query I rowsort label-5860
SELECT DISTINCT - 57 / + 73 col0
----
0

query I rowsort
SELECT + 43 - - 85
----
128

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5864
SELECT ALL CAST( 38 AS SIGNED ) AS col2
----
38

skipif mysql # not compatible
query I rowsort label-5864
SELECT ALL CAST ( 38 AS INTEGER ) AS col2
----
38

query I rowsort
SELECT - 31 + + ( - ( + 47 ) ) AS col0
----
-78

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5866
SELECT + COUNT( * ) * NULLIF ( - 88, ( + - ( COALESCE ( + SUM( DISTINCT 28 ), + + ( + CAST( 43 AS SIGNED ) ), + + COUNT( DISTINCT CAST( - + 42 AS SIGNED ) ) ) ) ) * - MAX( - 44 ) + - - 71 ) DIV 67 * 0 * - 40 col2
----
0

skipif mysql # not compatible
query I rowsort label-5866
SELECT + COUNT ( * ) * NULLIF ( - 88, ( + - ( COALESCE ( + SUM ( DISTINCT 28 ), + + ( + CAST ( 43 AS INTEGER ) ), + + COUNT ( DISTINCT CAST ( - + 42 AS INTEGER ) ) ) ) ) * - MAX ( - 44 ) + - - 71 ) / 67 * 0 * - 40 col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5867
SELECT + COUNT( * ) * 26 + 96 AS col2
----
122

skipif mysql # not compatible
query I rowsort label-5867
SELECT + COUNT ( * ) * 26 + 96 AS col2
----
122

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

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

query I rowsort
SELECT + + 35 * + - 84
----
-2940

onlyif mysql # DIV for integer division: 
query II rowsort label-5870
SELECT - - 75 DIV 16 * + 28 + 93 + - 4 AS col1, - 87 col2
----
201
-87

skipif mysql # not compatible
query II rowsort label-5870
SELECT - - 75 / 16 * + 28 + 93 + - 4 AS col1, - 87 col2
----
201
-87

query II rowsort
SELECT + 25, 55 AS col2
----
25
55

onlyif mysql # aggregate syntax: 
query I rowsort label-5872
SELECT + - 49 + 3 * + - COUNT( * )
----
-52

skipif mysql # not compatible
query I rowsort label-5872
SELECT + - 49 + 3 * + - COUNT ( * )
----
-52

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5873
SELECT + - ( COUNT( * ) ) * - COALESCE ( + + 55, - 13, + 81 ) + - COALESCE ( - - 32, 10, CAST( NULL AS SIGNED ) + - - 98 )
----
23

skipif mysql # not compatible
query I rowsort label-5873
SELECT + - ( COUNT ( * ) ) * - COALESCE ( + + 55, - 13, + 81 ) + - COALESCE ( - - 32, 10, CAST ( NULL AS INTEGER ) + - - 98 )
----
23

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5874
SELECT ALL - NULLIF ( COUNT( * ), + COUNT( * ) * 57 ) * 42 + + 78 + - SUM( ALL - CAST( NULL AS SIGNED ) ) - + - 60 / 94 * 16 * - - COUNT( + 22 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5874
SELECT ALL - NULLIF ( COUNT ( * ), + COUNT ( * ) * 57 ) * 42 + + 78 + - SUM ( ALL - CAST ( NULL AS INTEGER ) ) - + - 60 / 94 * 16 * - - COUNT ( + 22 ) AS col0
----
NULL

query I rowsort
SELECT + 76 - + 88 + - 57 + + - 63 * + + 58 * - + 38 * - 48
----
-6664965

query I rowsort
SELECT ALL - 2 * - 70
----
140

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5878
SELECT + + COALESCE ( 42, + 90 ) + + + ( + 21 ) * - - CASE 8 WHEN + 92 / - - 36 + - 64 + - 35 * SUM( CASE - 40 WHEN + + 7 THEN + 27 ELSE NULL END ) * - 7 * + - 98 + + NULLIF ( - + 46, 79 + + 73 * COUNT( * ) ) + - 62 THEN NULL ELSE + 91 / - 47 + CASE - 53 WHEN - 74 / ( COUNT( * ) * 81 ) - - 92 THEN - 78 END END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5878
SELECT + + COALESCE ( 42, + 90 ) + + + ( + 21 ) * - - CASE 8 WHEN + 92 / - - 36 + - 64 + - 35 * SUM ( CASE - 40 WHEN + + 7 THEN + 27 ELSE NULL END ) * - 7 * + - 98 + + NULLIF ( - + 46, 79 + + 73 * COUNT ( * ) ) + - 62 THEN NULL ELSE + 91 / - 47 + CASE - 53 WHEN - 74 / ( COUNT ( * ) * 81 ) - - 92 THEN - 78 END END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5879
SELECT ALL CASE SUM( ALL 50 ) WHEN + COUNT( * ) THEN - 36 WHEN - 68 THEN 20 WHEN MIN( 59 ) * 77 THEN NULL ELSE + COUNT( * ) END * + 38 + + - ( + + 26 ) AS col0
----
12

skipif mysql # not compatible
query I rowsort label-5879
SELECT ALL CASE SUM ( ALL 50 ) WHEN + COUNT ( * ) THEN - 36 WHEN - 68 THEN 20 WHEN MIN ( 59 ) * 77 THEN NULL ELSE + COUNT ( * ) END * + 38 + + - ( + + 26 ) AS col0
----
12

query I rowsort
SELECT COALESCE ( 61, + 31, + 22 * + NULLIF ( - - COALESCE ( - + 70, + 24 ), - + 94 ) ) * - - 64 * - + 10 + + 17 + + 18
----
-39005

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5881
SELECT - 1 * - 43 * ( - NULLIF ( - 95, + CAST( - 1 AS SIGNED ) + - 35 - - 69 * + 82 / + + CASE CASE + + 5 WHEN + 53 - 38 THEN + 73 - + - 16 + + COUNT( * ) * + - 67 * - 82 ELSE NULL END WHEN + - 44 THEN 17 ELSE 66 END + 62 * - 68 ) ) - COUNT( * )
----
4084

skipif mysql # not compatible
query I rowsort label-5881
SELECT - 1 * - 43 * ( - NULLIF ( - 95, + CAST ( - 1 AS INTEGER ) + - 35 - - 69 * + 82 / + + CASE CASE + + 5 WHEN + 53 - 38 THEN + 73 - + - 16 + + COUNT ( * ) * + - 67 * - 82 ELSE NULL END WHEN + - 44 THEN 17 ELSE 66 END + 62 * - 68 ) ) - COUNT ( * )
----
4084

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5882
SELECT + 21 + + + CAST( NULL AS SIGNED ) - - COUNT( DISTINCT - 15 ) * COUNT( * ) * - - 28 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5882
SELECT + 21 + + + CAST ( NULL AS INTEGER ) - - COUNT ( DISTINCT - 15 ) * COUNT ( * ) * - - 28 AS col0
----
NULL

query I rowsort
SELECT ALL 7 * - + 51 + - 38
----
-395

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5885
SELECT DISTINCT MAX( DISTINCT 10 ) * MIN( ALL 35 ) - + 2
----
348

skipif mysql # not compatible
query I rowsort label-5885
SELECT DISTINCT MAX ( DISTINCT 10 ) * MIN ( ALL 35 ) - + 2
----
348

onlyif mysql # aggregate syntax: 
query I rowsort label-5886
SELECT - 91 + COALESCE ( + + 6, + 91, COUNT( * ) - - COUNT( * ) - MAX( ALL - + ( - 93 ) ) + - 54 - + + 53 * + - 88 ) * - + NULLIF ( - 33, CASE - ( 46 ) WHEN ( - 0 ) * + 97 THEN 41 * + 35 WHEN ( + 64 ) * 70 THEN NULL ELSE NULL END * 82 + 30 ) AS col0
----
107

skipif mysql # not compatible
query I rowsort label-5886
SELECT - 91 + COALESCE ( + + 6, + 91, COUNT ( * ) - - COUNT ( * ) - MAX ( ALL - + ( - 93 ) ) + - 54 - + + 53 * + - 88 ) * - + NULLIF ( - 33, CASE - ( 46 ) WHEN ( - 0 ) * + 97 THEN 41 * + 35 WHEN ( + 64 ) * 70 THEN NULL ELSE NULL END * 82 + 30 ) AS col0
----
107

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

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5888
SELECT ALL CASE - ( - 12 ) WHEN - + 24 - + 89 - + + 13 THEN + - CASE 5 WHEN - + 51 * + - CAST( NULL AS DECIMAL ) + CAST( NULL AS DECIMAL ) / - - COUNT( * ) * - - NULLIF ( 15, - 77 * + COUNT( * ) + - 86 ) THEN MIN( DISTINCT + 17 ) + - COUNT( * ) END * SUM( ALL - 0 ) WHEN - 76 + + CASE 89 WHEN - ( 71 ) THEN 4 + + 49 WHEN 47 THEN ( - ( 56 ) ) ELSE + 65 END THEN 21 / 28 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-5888
SELECT ALL CASE - ( - 12 ) WHEN - + 24 - + 89 - + + 13 THEN + - CASE 5 WHEN - + 51 * + - CAST ( NULL AS REAL ) + CAST ( NULL AS REAL ) / - - COUNT ( * ) * - - NULLIF ( 15, - 77 * + COUNT ( * ) + - 86 ) THEN MIN ( DISTINCT + 17 ) + - COUNT ( * ) END * SUM ( ALL - 0 ) WHEN - 76 + + CASE 89 WHEN - ( 71 ) THEN 4 + + 49 WHEN 47 THEN ( - ( 56 ) ) ELSE + 65 END THEN 21 / 28 ELSE NULL END
----
NULL

query I rowsort
SELECT - 67 + 39
----
-28

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5890
SELECT CAST( - - 48 AS SIGNED ) * + - COUNT( * ) AS col1
----
-48

skipif mysql # not compatible
query I rowsort label-5890
SELECT CAST ( - - 48 AS INTEGER ) * + - COUNT ( * ) AS col1
----
-48

query I rowsort
SELECT DISTINCT + ( - 84 ) * + 2 * - 93 + 17 * - NULLIF ( + - 62, + 35 )
----
16678

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5893
SELECT 18 + + 50 + + CAST( NULL AS SIGNED ) * - COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5893
SELECT 18 + + 50 + + CAST ( NULL AS INTEGER ) * - COUNT ( * ) AS col0
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query III rowsort label-5895
SELECT DISTINCT 13 AS col2, 96 AS col1, COUNT( * ) AS col2
----
13
96
1

skipif mysql # not compatible
query III rowsort label-5895
SELECT DISTINCT 13 AS col2, 96 AS col1, COUNT ( * ) AS col2
----
13
96
1

query II rowsort
SELECT ALL 8 AS col0, 35 AS col1
----
8
35

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

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

query II rowsort
SELECT DISTINCT - 52, + 62 AS col1
----
-52
62

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5899
SELECT + 97, + COALESCE ( CASE + COUNT( + - ( + 45 ) ) WHEN 68 * 75 + 40 THEN NULL WHEN 96 THEN 15 ELSE NULL END, + 82 - 29 ) - - 84 + + 25 DIV + 35 + 45 AS col0
----
97
182

skipif mysql # not compatible
query II rowsort label-5899
SELECT + 97, + COALESCE ( CASE + COUNT ( + - ( + 45 ) ) WHEN 68 * 75 + 40 THEN NULL WHEN 96 THEN 15 ELSE NULL END, + 82 - 29 ) - - 84 + + 25 / + 35 + 45 AS col0
----
97
182

query I rowsort
SELECT 70 + + 67 + + 84 * + - 73 * - 30 AS col0
----
184097

query I rowsort
SELECT ALL - 58 + ( 71 )
----
13

query II rowsort
SELECT + 70 AS col1, 4
----
70
4

onlyif mysql # DIV for integer division: 
query I rowsort label-5903
SELECT - 27 DIV ( - 36 ) + + + 46
----
46

skipif mysql # not compatible
query I rowsort label-5903
SELECT - 27 / ( - 36 ) + + + 46
----
46

query I rowsort
SELECT + 15 - + + 3 AS col0
----
12

query I rowsort
SELECT ALL - 9 * 70 * 87
----
-54810

onlyif mysql # DIV for integer division: 
query I rowsort label-5906
SELECT 49 DIV 2 AS col1
----
24

skipif mysql # not compatible
query I rowsort label-5906
SELECT 49 / 2 AS col1
----
24

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-5907
SELECT - 38 * - 37 + 62 + + 84, COALESCE ( 82, - - 85 * - CAST( NULL AS SIGNED ) * 21 DIV + AVG ( ALL - - 24 ), + 24 ) * COUNT( * ) + - 28 col0
----
1552
54

skipif mysql # not compatible
query II rowsort label-5907
SELECT - 38 * - 37 + 62 + + 84, COALESCE ( 82, - - 85 * - CAST ( NULL AS INTEGER ) * 21 / + AVG ( ALL - - 24 ), + 24 ) * COUNT ( * ) + - 28 col0
----
1552
54

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

query I rowsort
SELECT DISTINCT + 6 * 78 - + 10 AS col0
----
458

query I rowsort
SELECT ALL + + 56 + 44 AS col0
----
100

query II rowsort
SELECT + 4 col2, 77 AS col1
----
4
77

query I rowsort
SELECT DISTINCT + 15 + - 86
----
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-5913
SELECT + - NULLIF ( + 16, + SUM( + 60 ) ) AS col1
----
-16

skipif mysql # not compatible
query I rowsort label-5913
SELECT + - NULLIF ( + 16, + SUM ( + 60 ) ) AS col1
----
-16

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5914
SELECT + CAST( - COUNT( - - ( - 72 ) ) AS SIGNED ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-5914
SELECT + CAST ( - COUNT ( - - ( - 72 ) ) AS INTEGER ) AS col0
----
-1

query I rowsort
SELECT ALL + 82 + - 0 + - + 29
----
53

query II rowsort
SELECT + 11 AS col1, - 92
----
11
-92

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5917
SELECT 77 * + CAST( + 32 AS SIGNED ) * - + COUNT( * )
----
-2464

skipif mysql # not compatible
query I rowsort label-5917
SELECT 77 * + CAST ( + 32 AS INTEGER ) * - + COUNT ( * )
----
-2464

query I rowsort
SELECT ALL + 47 - - - 61 AS col1
----
-14

query II rowsort
SELECT DISTINCT 44 - - 36, - 89 AS col2
----
80
-89

query I rowsort
SELECT ALL 56 * + + 38 * 65 col2
----
138320

query I rowsort
SELECT 93 * - + 35 AS col1
----
-3255

query I rowsort
SELECT 41 * 68 AS col1
----
2788

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5924
SELECT 47 DIV 96
----
0

skipif mysql # not compatible
query I rowsort label-5924
SELECT 47 / 96
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5925
SELECT COUNT( * ) * - NULLIF ( 48, 99 )
----
-48

skipif mysql # not compatible
query I rowsort label-5925
SELECT COUNT ( * ) * - NULLIF ( 48, 99 )
----
-48

query I rowsort
SELECT 21 + 47
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-5927
SELECT COALESCE ( - + 22, + 97, - SUM( ALL + ( + ( - + 17 ) ) ) ) + - 61
----
-83

skipif mysql # not compatible
query I rowsort label-5927
SELECT COALESCE ( - + 22, + 97, - SUM ( ALL + ( + ( - + 17 ) ) ) ) + - 61
----
-83

query I rowsort
SELECT DISTINCT 98 + 32 * - 62
----
-1886

query I rowsort
SELECT + 46 + - 82
----
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-5930
SELECT 87 + - COUNT( * ) * MAX( ALL + 43 )
----
44

skipif mysql # not compatible
query I rowsort label-5930
SELECT 87 + - COUNT ( * ) * MAX ( ALL + 43 )
----
44

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

query I rowsort
SELECT ALL - + 83 * - - 94 + - + 93 AS col2
----
-7895

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5933
SELECT DISTINCT - - CASE ( + + COUNT( * ) ) WHEN + 52 * CAST( NULL AS SIGNED ) THEN NULL WHEN + 48 THEN - - MIN( DISTINCT + 59 ) * + + 22 + + + COUNT( * ) ELSE NULL END AS col0, COUNT( * )
----
NULL
1

skipif mysql # not compatible
query II rowsort label-5933
SELECT DISTINCT - - CASE ( + + COUNT ( * ) ) WHEN + 52 * CAST ( NULL AS INTEGER ) THEN NULL WHEN + 48 THEN - - MIN ( DISTINCT + 59 ) * + + 22 + + + COUNT ( * ) ELSE NULL END AS col0, COUNT ( * )
----
NULL
1

query II rowsort
SELECT + NULLIF ( 21, 79 ), 37 * 52 AS col0
----
21
1924

query I rowsort
SELECT DISTINCT - 44 * + + 87 + 99 AS col0
----
-3729

onlyif mysql # aggregate syntax: 
query I rowsort label-5936
SELECT MIN( 5 ) * - COUNT( ( 25 ) ) * + + COUNT( * ) + - + 91 + - + 64 + + 90 AS col1
----
-70

skipif mysql # not compatible
query I rowsort label-5936
SELECT MIN ( 5 ) * - COUNT ( ( 25 ) ) * + + COUNT ( * ) + - + 91 + - + 64 + + 90 AS col1
----
-70

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5937
SELECT 87 / + - CASE - - 60 WHEN - CAST( COUNT( * ) AS SIGNED ) THEN - - 4 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5937
SELECT 87 / + - CASE - - 60 WHEN - CAST ( COUNT ( * ) AS INTEGER ) THEN - - 4 END AS col2
----
NULL

query I rowsort
SELECT - 11 + + 46
----
35

query I rowsort
SELECT 66 + 88
----
154

onlyif mysql # DIV for integer division: 
query I rowsort label-5940
SELECT + 94 DIV 59
----
1

skipif mysql # not compatible
query I rowsort label-5940
SELECT + 94 / 59
----
1

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5942
SELECT - 93 * + + 75 - - - COUNT( * ) AS col2
----
-6976

skipif mysql # not compatible
query I rowsort label-5942
SELECT - 93 * + + 75 - - - COUNT ( * ) AS col2
----
-6976

onlyif mysql # aggregate syntax: 
query I rowsort label-5943
SELECT DISTINCT - NULLIF ( - 26, COUNT( 41 ) ) AS col1
----
26

skipif mysql # not compatible
query I rowsort label-5943
SELECT DISTINCT - NULLIF ( - 26, COUNT ( 41 ) ) AS col1
----
26

onlyif mysql # aggregate syntax: 
query III rowsort label-5944
SELECT ALL - SUM( ALL + 88 ) * - - 66 + 31 AS col2, 44 * - 54, - 47 + - 98 AS col2
----
-5777
-2376
-145

skipif mysql # not compatible
query III rowsort label-5944
SELECT ALL - SUM ( ALL + 88 ) * - - 66 + 31 AS col2, 44 * - 54, - 47 + - 98 AS col2
----
-5777
-2376
-145

query I rowsort
SELECT 12 + - ( - 25 )
----
37

query I rowsort
SELECT DISTINCT - 71 * 91 * + 82
----
-529802

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query III rowsort label-5947
SELECT ALL + CAST( - COUNT( DISTINCT - - ( + 66 ) ) AS SIGNED ) AS col0, - 45 + - + COUNT( * ), CASE + 23 WHEN + COUNT( * ) THEN 28 END * + 49 * 79 * 71 + + COUNT( * ) + - 33 * CAST( + + 66 AS SIGNED ) * - 36 * 14 AS col1
----
-1
-46
NULL

skipif mysql # not compatible
query III rowsort label-5947
SELECT ALL + CAST ( - COUNT ( DISTINCT - - ( + 66 ) ) AS INTEGER ) AS col0, - 45 + - + COUNT ( * ), CASE + 23 WHEN + COUNT ( * ) THEN 28 END * + 49 * 79 * 71 + + COUNT ( * ) + - 33 * CAST ( + + 66 AS INTEGER ) * - 36 * 14 AS col1
----
-1
-46
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-5948
SELECT + 83 col0, - COALESCE ( - 92, + 97 * CAST( - 25 AS SIGNED ) * 91 * + 61 DIV - 98 * + + COUNT( * ) DIV - 47 )
----
83
92

skipif mysql # not compatible
query II rowsort label-5948
SELECT + 83 col0, - COALESCE ( - 92, + 97 * CAST ( - 25 AS INTEGER ) * 91 * + 61 / - 98 * + + COUNT ( * ) / - 47 )
----
83
92

query I rowsort
SELECT 89 * - ( + 80 ) + + 66 col2
----
-7054

query I rowsort
SELECT 16 * 18 + + + 69 * - 29 AS col0
----
-1713

query I rowsort
SELECT + 62 * - 85 col2
----
-5270

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

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

query I rowsort
SELECT - 32 + + - 94
----
-126

onlyif mysql # aggregate syntax: 
query I rowsort label-5954
SELECT - 55 * - + MIN( DISTINCT + 71 ) - - 76
----
3981

skipif mysql # not compatible
query I rowsort label-5954
SELECT - 55 * - + MIN ( DISTINCT + 71 ) - - 76
----
3981

onlyif mysql # aggregate syntax: 
query I rowsort label-5955
SELECT ALL COALESCE ( + 0, 0, - 67 * 28 + + + COUNT( * ) * + 91 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-5955
SELECT ALL COALESCE ( + 0, 0, - 67 * 28 + + + COUNT ( * ) * + 91 ) AS col0
----
0

query I rowsort
SELECT DISTINCT CASE - 30 WHEN + 52 THEN - + 76 END AS col2
----
NULL

query I rowsort
SELECT DISTINCT 55 * - - CASE + ( - - 45 ) WHEN 94 THEN NULL WHEN + ( 19 ) THEN + - 92 END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5958
SELECT - 90 DIV - 70 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-5958
SELECT - 90 / - 70 AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5959
SELECT DISTINCT NULLIF ( COUNT( DISTINCT 38 ), - ( 74 ) ) + + COALESCE ( - 2, + 56 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-5959
SELECT DISTINCT NULLIF ( COUNT ( DISTINCT 38 ), - ( 74 ) ) + + COALESCE ( - 2, + 56 ) AS col0
----
-1

query I rowsort
SELECT + 31 + 51 * 78 * - - 29 AS col1
----
115393

query II rowsort
SELECT - 82, - 87 AS col2
----
-82
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-5962
SELECT ALL - 42 + - + 86 - + - COUNT( * ) * + MAX( + 62 )
----
-66

skipif mysql # not compatible
query I rowsort label-5962
SELECT ALL - 42 + - + 86 - + - COUNT ( * ) * + MAX ( + 62 )
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-5963
SELECT + 97 / 61 + - 53 - - 1 * + CASE + 60 WHEN - COALESCE ( - ( - 7 ), + 16 + + 72, 77 ) THEN + COUNT( * ) * 83 WHEN - CASE 9 WHEN 34 THEN 45 * + + 62 * - - 54 + + 97 * - 54 WHEN + - 31 THEN NULL ELSE NULL END THEN 75 WHEN + 85 - - 43 THEN NULL END * + 8
----
NULL

skipif mysql # not compatible
query I rowsort label-5963
SELECT + 97 / 61 + - 53 - - 1 * + CASE + 60 WHEN - COALESCE ( - ( - 7 ), + 16 + + 72, 77 ) THEN + COUNT ( * ) * 83 WHEN - CASE 9 WHEN 34 THEN 45 * + + 62 * - - 54 + + 97 * - 54 WHEN + - 31 THEN NULL ELSE NULL END THEN 75 WHEN + 85 - - 43 THEN NULL END * + 8
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5964
SELECT ALL + COUNT( + 10 ) + - 23
----
-22

skipif mysql # not compatible
query I rowsort label-5964
SELECT ALL + COUNT ( + 10 ) + - 23
----
-22

query I rowsort
SELECT ALL - - 93 + - + 58 + 24 + - + ( + - 91 ) + 70 * + 29
----
2180

query II rowsort
SELECT ALL - 22 AS col0, + 20 * - + 12
----
-22
-240

onlyif mysql # aggregate syntax: 
query I rowsort label-5967
SELECT DISTINCT + COUNT( * ) + - 57 + + - 54
----
-110

skipif mysql # not compatible
query I rowsort label-5967
SELECT DISTINCT + COUNT ( * ) + - 57 + + - 54
----
-110

query I rowsort
SELECT DISTINCT 98 + + 76 * 30 AS col0
----
2378

onlyif mysql # DIV for integer division: 
query II rowsort label-5969
SELECT + - 4 DIV + 33 + - ( + 7 ), + 35 AS col0
----
-7
35

skipif mysql # not compatible
query II rowsort label-5969
SELECT + - 4 / + 33 + - ( + 7 ), + 35 AS col0
----
-7
35

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5971
SELECT - 56 + 39 * CAST( COUNT( ALL 34 ) AS SIGNED ) * COUNT( * ) + - - 7 + + 0 + + - CASE - 2 WHEN - 7 * + 92 THEN NULL WHEN SUM( ALL 36 ) THEN NULL ELSE - + COUNT( * ) END
----
-9

skipif mysql # not compatible
query I rowsort label-5971
SELECT - 56 + 39 * CAST ( COUNT ( ALL 34 ) AS INTEGER ) * COUNT ( * ) + - - 7 + + 0 + + - CASE - 2 WHEN - 7 * + 92 THEN NULL WHEN SUM ( ALL 36 ) THEN NULL ELSE - + COUNT ( * ) END
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-5972
SELECT ALL + MAX( DISTINCT 24 ) col1
----
24

skipif mysql # not compatible
query I rowsort label-5972
SELECT ALL + MAX ( DISTINCT 24 ) col1
----
24

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5974
SELECT DISTINCT + 53 AS col2, - CAST( NULL AS SIGNED )
----
53
NULL

skipif mysql # not compatible
query II rowsort label-5974
SELECT DISTINCT + 53 AS col2, - CAST ( NULL AS INTEGER )
----
53
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5975
SELECT DISTINCT COUNT( * ) * + + 94 + - 26 * + 6 - COALESCE ( COUNT( * ), + + 54 ) + CAST( NULL AS DECIMAL ) * + 33 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5975
SELECT DISTINCT COUNT ( * ) * + + 94 + - 26 * + 6 - COALESCE ( COUNT ( * ), + + 54 ) + CAST ( NULL AS REAL ) * + 33 AS col0
----
NULL

query I rowsort
SELECT - 75 * + 51
----
-3825

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5977
SELECT + CAST( NULL AS SIGNED ) * 65 AS col2, - CAST( - - 1 AS SIGNED ) AS col0
----
NULL
-1

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5978
SELECT - 44 * - ( - 0 ) * + 90 + + COUNT( * ) * - - 63
----
63

skipif mysql # not compatible
query I rowsort label-5978
SELECT - 44 * - ( - 0 ) * + 90 + + COUNT ( * ) * - - 63
----
63

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5979
SELECT DISTINCT + COALESCE ( COUNT( * ), + + 87, + + 70 ) DIV + MIN( DISTINCT + COALESCE ( + + 23, + 97, - 80 ) ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-5979
SELECT DISTINCT + COALESCE ( COUNT ( * ), + + 87, + + 70 ) / + MIN ( DISTINCT + COALESCE ( + + 23, + 97, - 80 ) ) AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5980
SELECT DISTINCT + 86 * + ( 43 ) * + COUNT( * ) + - 76 + - ( - + MAX( 42 ) ) - MIN( + + 11 ) + 61 * + 39 * - + 86
----
-200941

skipif mysql # not compatible
query I rowsort label-5980
SELECT DISTINCT + 86 * + ( 43 ) * + COUNT ( * ) + - 76 + - ( - + MAX ( 42 ) ) - MIN ( + + 11 ) + 61 * + 39 * - + 86
----
-200941

query I rowsort
SELECT COALESCE ( - 16, 77 ) AS col2
----
-16

query I rowsort
SELECT - 85 * + 7
----
-595

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5983
SELECT DISTINCT - 9 * 59 + - + 24 + - COUNT( * ) * - 77 * + - NULLIF ( + 63, 82 ) + ( + 42 ) + + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5983
SELECT DISTINCT - 9 * 59 + - + 24 + - COUNT ( * ) * - 77 * + - NULLIF ( + 63, 82 ) + ( + 42 ) + + CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT - 49 + - + 78 AS col2
----
-127

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5985
SELECT - MIN( CAST( + - 70 AS SIGNED ) ) * + COUNT( + 96 ) AS col2
----
70

skipif mysql # not compatible
query I rowsort label-5985
SELECT - MIN ( CAST ( + - 70 AS INTEGER ) ) * + COUNT ( + 96 ) AS col2
----
70

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5986
SELECT ALL + 76 * + - 81 * - 46 + + COALESCE ( 63, - - 23, - + 17, MIN( - 80 ) + - - 46 DIV - MAX( CASE + 77 WHEN 9 THEN 45 + - 31 END ) )
----
283239

skipif mysql # not compatible
query I rowsort label-5986
SELECT ALL + 76 * + - 81 * - 46 + + COALESCE ( 63, - - 23, - + 17, MIN ( - 80 ) + - - 46 / - MAX ( CASE + 77 WHEN 9 THEN 45 + - 31 END ) )
----
283239

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5987
SELECT DISTINCT + CAST( NULL AS SIGNED ) + + ( + + COALESCE ( - 77, 78 ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5987
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + + ( + + COALESCE ( - 77, 78 ) ) AS col1
----
NULL

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

query I rowsort
SELECT ALL + + 54 + - 27 * 40 AS col0
----
-1026

onlyif mysql # aggregate syntax: 
query I rowsort label-5990
SELECT ALL + SUM( + 77 ) + + 50 col1
----
127

skipif mysql # not compatible
query I rowsort label-5990
SELECT ALL + SUM ( + 77 ) + + 50 col1
----
127

query I rowsort
SELECT + 4 * + 11
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-5992
SELECT ALL 43 * CASE + - NULLIF ( + 11, + 32 * + + 21 * - + 55 ) WHEN 89 THEN NULL WHEN + 30 * ( - + 80 ) THEN + COUNT( + 83 ) END col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5992
SELECT ALL 43 * CASE + - NULLIF ( + 11, + 32 * + + 21 * - + 55 ) WHEN 89 THEN NULL WHEN + 30 * ( - + 80 ) THEN + COUNT ( + 83 ) END col2
----
NULL

query I rowsort
SELECT DISTINCT + - 12 - - 41 + 14 AS col2
----
43

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5995
SELECT ALL + 69 * - COUNT( * ) + + - 3 + + 95 DIV - 95
----
-73

skipif mysql # not compatible
query I rowsort label-5995
SELECT ALL + 69 * - COUNT ( * ) + + - 3 + + 95 / - 95
----
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-5996
SELECT - SUM( ALL 88 ) AS col2
----
-88

skipif mysql # not compatible
query I rowsort label-5996
SELECT - SUM ( ALL 88 ) AS col2
----
-88

onlyif mysql # DIV for integer division: 
query I rowsort label-5997
SELECT + - 31 + + 52 DIV 87 - - 99
----
68

skipif mysql # not compatible
query I rowsort label-5997
SELECT + - 31 + + 52 / 87 - - 99
----
68

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-5999
SELECT + 69, 51 * - COUNT( * ) * 34 AS col1
----
69
-1734

skipif mysql # not compatible
query II rowsort label-5999
SELECT + 69, 51 * - COUNT ( * ) * 34 AS col1
----
69
-1734

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

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

query I rowsort
SELECT 41 * - 31
----
-1271

query I rowsort
SELECT ( - - 31 ) + 90
----
121

onlyif mysql # aggregate syntax: 
query II rowsort label-6003
SELECT ALL - 50 col0, MIN( 77 )
----
-50
77

skipif mysql # not compatible
query II rowsort label-6003
SELECT ALL - 50 col0, MIN ( 77 )
----
-50
77

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6004
SELECT CAST( NULL AS DECIMAL ) + - + 96 + - NULLIF ( + - ( 16 ), + - 80 * + 27 / - 49 / + 30 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6004
SELECT CAST ( NULL AS REAL ) + - + 96 + - NULLIF ( + - ( 16 ), + - 80 * + 27 / - 49 / + 30 ) AS col1
----
NULL

query I rowsort
SELECT ALL ( - 76 ) + + 72 AS col2
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-6006
SELECT DISTINCT SUM( ALL - 22 ) + + 53
----
31

skipif mysql # not compatible
query I rowsort label-6006
SELECT DISTINCT SUM ( ALL - 22 ) + + 53
----
31

query I rowsort
SELECT ALL - 26 + - 67 AS col1
----
-93

onlyif mysql # DIV for integer division: 
query II rowsort label-6008
SELECT 47 + + 38 + 44 DIV 41 - - - 10, 51 AS col1
----
76
51

skipif mysql # not compatible
query II rowsort label-6008
SELECT 47 + + 38 + 44 / 41 - - - 10, 51 AS col1
----
76
51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6009
SELECT ALL - CASE + CAST( + 72 AS SIGNED ) WHEN + + ( - - 52 ) * 40 / + + 78 * 51 / ( 96 ) + - + 71 + - - 30 * 43 THEN + 67 WHEN - + 43 * + 51 THEN - 53 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-6009
SELECT ALL - CASE + CAST ( + 72 AS INTEGER ) WHEN + + ( - - 52 ) * 40 / + + 78 * 51 / ( 96 ) + - + 71 + - - 30 * 43 THEN + 67 WHEN - + 43 * + 51 THEN - 53 ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6010
SELECT 56 + - + ( - NULLIF ( - COUNT( * ), - CAST( + 74 AS SIGNED ) ) ) AS col0
----
55

skipif mysql # not compatible
query I rowsort label-6010
SELECT 56 + - + ( - NULLIF ( - COUNT ( * ), - CAST ( + 74 AS INTEGER ) ) ) AS col0
----
55

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

query I rowsort
SELECT ALL - 64 + + 4 + + 95 AS col2
----
35

query I rowsort
SELECT 46 + - ( 46 ) + + + 19 col0
----
19

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6014
SELECT DISTINCT ( + NULLIF ( + 28, - CAST( NULL AS SIGNED ) + - COUNT( * ) ) ) DIV 18 + 30 + - 26
----
5

skipif mysql # not compatible
query I rowsort label-6014
SELECT DISTINCT ( + NULLIF ( + 28, - CAST ( NULL AS INTEGER ) + - COUNT ( * ) ) ) / 18 + 30 + - 26
----
5

query I rowsort
SELECT ALL + 50 * 41
----
2050

query I rowsort
SELECT DISTINCT - 92 * + 95
----
-8740

onlyif mysql # aggregate syntax: 
query II rowsort label-6017
SELECT ALL - - COUNT( * ) - + CASE COUNT( * ) WHEN - 71 THEN + 27 END * - 44, + 42 + - 76 + - 68 - - 49 + 48 AS col1
----
NULL
-5

skipif mysql # not compatible
query II rowsort label-6017
SELECT ALL - - COUNT ( * ) - + CASE COUNT ( * ) WHEN - 71 THEN + 27 END * - 44, + 42 + - 76 + - 68 - - 49 + 48 AS col1
----
NULL
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-6018
SELECT DISTINCT + - 60 - SUM( DISTINCT 14 ) + + ( - 91 ) * + + 79 * + 95
----
-683029

skipif mysql # not compatible
query I rowsort label-6018
SELECT DISTINCT + - 60 - SUM ( DISTINCT 14 ) + + ( - 91 ) * + + 79 * + 95
----
-683029

query I rowsort
SELECT + 15 + - 26
----
-11

query I rowsort
SELECT 54 + 89 AS col1
----
143

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

skipif mysql # not compatible
query I rowsort label-6021
SELECT ALL COALESCE ( CAST ( NULL AS INTEGER ), - ( 73 ) ) AS col0
----
-73

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6022
SELECT 72 + CAST( NULL AS SIGNED ) + + 22 + 40 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6022
SELECT 72 + CAST ( NULL AS INTEGER ) + + 22 + 40 AS col0
----
NULL

query I rowsort
SELECT DISTINCT + 7 - - 84 * 85 * + 77 AS col1
----
549787

query I rowsort
SELECT - 91 + + + 34 AS col0
----
-57

query I rowsort
SELECT - COALESCE ( - 21, CASE ( + ( - - 5 ) ) WHEN + 56 THEN NULL WHEN - + 20 / - 56 THEN - - 40 + - + 32 WHEN + 61 THEN NULL END * - 18 ) * 49 col0
----
1029

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

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

query I rowsort
SELECT ALL - - 42 * + 54 * + 57 AS col0
----
129276

onlyif mysql # aggregate syntax: 
query I rowsort label-6028
SELECT + 71 * - COALESCE ( - COUNT( * ), - + 82 )
----
71

skipif mysql # not compatible
query I rowsort label-6028
SELECT + 71 * - COALESCE ( - COUNT ( * ), - + 82 )
----
71

query II rowsort
SELECT + 66 AS col2, 56
----
66
56

onlyif mysql # aggregate syntax: 
query I rowsort label-6030
SELECT - SUM( 31 ) * + 28 + - SUM( ALL + 7 )
----
-875

skipif mysql # not compatible
query I rowsort label-6030
SELECT - SUM ( 31 ) * + 28 + - SUM ( ALL + 7 )
----
-875

onlyif mysql # aggregate syntax: 
query I rowsort label-6031
SELECT ALL 10 * + CASE + COUNT( * ) WHEN - 81 THEN - 16 + 33 - - + 75 * + 23 WHEN + SUM( DISTINCT + - ( - 23 ) ) THEN NULL WHEN + - 32 THEN NULL ELSE + 21 END
----
210

skipif mysql # not compatible
query I rowsort label-6031
SELECT ALL 10 * + CASE + COUNT ( * ) WHEN - 81 THEN - 16 + 33 - - + 75 * + 23 WHEN + SUM ( DISTINCT + - ( - 23 ) ) THEN NULL WHEN + - 32 THEN NULL ELSE + 21 END
----
210

onlyif mysql # DIV for integer division: 
query I rowsort label-6032
SELECT 41 DIV + 54
----
0

skipif mysql # not compatible
query I rowsort label-6032
SELECT 41 / + 54
----
0

query I rowsort
SELECT 12 * 37
----
444

query I rowsort
SELECT 21 * 24 + 22 AS col0
----
526

query I rowsort
SELECT ALL + 58 + + 21 AS col0
----
79

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6036
SELECT ALL SUM( - - 7 ) DIV + 29 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-6036
SELECT ALL SUM ( - - 7 ) / + 29 AS col1
----
0

query II rowsort
SELECT + 32, + 9 * - 5 AS col0
----
32
-45

query I rowsort
SELECT DISTINCT ( 87 ) + + 53 AS col2
----
140

onlyif mysql # DIV for integer division: 
query I rowsort label-6039
SELECT ALL 73 + - 18 * - 7 + + + 76 DIV 94 col2
----
199

skipif mysql # not compatible
query I rowsort label-6039
SELECT ALL 73 + - 18 * - 7 + + + 76 / 94 col2
----
199

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6040
SELECT ALL CAST( - COUNT( + + 68 ) AS SIGNED ) + ( + NULLIF ( + - 41, 14 ) ) + 17 * 73 DIV + 62
----
-22

skipif mysql # not compatible
query I rowsort label-6040
SELECT ALL CAST ( - COUNT ( + + 68 ) AS INTEGER ) + ( + NULLIF ( + - 41, 14 ) ) + 17 * 73 / + 62
----
-22

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

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

query II rowsort
SELECT DISTINCT - 98 AS col0, - 51 col1
----
-98
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-6043
SELECT ALL 37 + 2 + COALESCE ( + 80, COUNT( * ) * 77 * + 86 ) * - 89 + - + 0 AS col1
----
-7081

skipif mysql # not compatible
query I rowsort label-6043
SELECT ALL 37 + 2 + COALESCE ( + 80, COUNT ( * ) * 77 * + 86 ) * - 89 + - + 0 AS col1
----
-7081

query I rowsort
SELECT 37 * 14 AS col0
----
518

query II rowsort
SELECT 99, + 24 + + ( ( - 73 ) ) AS col2
----
99
-49

query II rowsort
SELECT + 53 AS col2, 22
----
53
22

onlyif mysql # aggregate syntax: 
query I rowsort label-6047
SELECT DISTINCT 72 + - 33 * - + COUNT( * ) * + 88 col0
----
2976

skipif mysql # not compatible
query I rowsort label-6047
SELECT DISTINCT 72 + - 33 * - + COUNT ( * ) * + 88 col0
----
2976

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6049
SELECT COALESCE ( - 22, COUNT( * ) * - 73 DIV NULLIF ( ( - 81 ), - 38 + 27 * + CAST( - - 78 AS SIGNED ) * 11 ) DIV - 6 * 66 * + 77 + 55 ) * - 69 * + 99 + - + 97 col2
----
150185

skipif mysql # not compatible
query I rowsort label-6049
SELECT COALESCE ( - 22, COUNT ( * ) * - 73 / NULLIF ( ( - 81 ), - 38 + 27 * + CAST ( - - 78 AS INTEGER ) * 11 ) / - 6 * 66 * + 77 + 55 ) * - 69 * + 99 + - + 97 col2
----
150185

onlyif mysql # DIV for integer division: 
query I rowsort label-6050
SELECT + 86 DIV 23 col1
----
3

skipif mysql # not compatible
query I rowsort label-6050
SELECT + 86 / 23 col1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-6051
SELECT + 30 + + 62 + - 13 + + - MAX( + 50 ) * - 23 + 81 col0
----
1310

skipif mysql # not compatible
query I rowsort label-6051
SELECT + 30 + + 62 + - 13 + + - MAX ( + 50 ) * - 23 + 81 col0
----
1310

onlyif mysql # DIV for integer division: 
query II rowsort label-6052
SELECT + 57 AS col2, - 8 + 41 + - 45 DIV + 81 * - + 64 AS col1
----
57
33

skipif mysql # not compatible
query II rowsort label-6052
SELECT + 57 AS col2, - 8 + 41 + - 45 / + 81 * - + 64 AS col1
----
57
33

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6053
SELECT ALL - + ( MIN( + 23 ) ) DIV 1 AS col2
----
-23

skipif mysql # not compatible
query I rowsort label-6053
SELECT ALL - + ( MIN ( + 23 ) ) / 1 AS col2
----
-23

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

skipif mysql # not compatible
query I rowsort label-6054
SELECT DISTINCT 40 / - 85
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-6055
SELECT ALL 49 DIV - 40 AS col2, 65 AS col0
----
-1
65

skipif mysql # not compatible
query II rowsort label-6055
SELECT ALL 49 / - 40 AS col2, 65 AS col0
----
-1
65

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6057
SELECT DISTINCT 67 * + + 31 * - 51 + + - 34 DIV 15 * + + 12 - - 19 - + 54 col1
----
-105986

skipif mysql # not compatible
query I rowsort label-6057
SELECT DISTINCT 67 * + + 31 * - 51 + + - 34 / 15 * + + 12 - - 19 - + 54 col1
----
-105986

onlyif mysql # aggregate syntax: 
query II rowsort label-6058
SELECT ALL + 23 AS col1, - COUNT( * ) + + + MAX( - 16 ) AS col2
----
23
-17

skipif mysql # not compatible
query II rowsort label-6058
SELECT ALL + 23 AS col1, - COUNT ( * ) + + + MAX ( - 16 ) AS col2
----
23
-17

query I rowsort
SELECT - - 48 - 72 - 65 AS col1
----
-89

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6060
SELECT ALL + CASE + ( - COUNT( * ) ) WHEN - NULLIF ( + - CAST( NULL AS SIGNED ), - + 12 * + 13 / 4 ) + - - MIN( ALL 2 ) THEN NULL WHEN + 77 + + COUNT( * ) THEN ( - 61 ) ELSE NULL END, COUNT( * ) AS col1
----
NULL
1

skipif mysql # not compatible
query II rowsort label-6060
SELECT ALL + CASE + ( - COUNT ( * ) ) WHEN - NULLIF ( + - CAST ( NULL AS INTEGER ), - + 12 * + 13 / 4 ) + - - MIN ( ALL 2 ) THEN NULL WHEN + 77 + + COUNT ( * ) THEN ( - 61 ) ELSE NULL END, COUNT ( * ) AS col1
----
NULL
1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6061
SELECT DISTINCT - + CAST( NULL AS SIGNED ) * - 42 AS col0, 4 AS col1
----
NULL
4

skipif mysql # not compatible
query II rowsort label-6061
SELECT DISTINCT - + CAST ( NULL AS INTEGER ) * - 42 AS col0, 4 AS col1
----
NULL
4

query I rowsort
SELECT ALL + - 77 + - 70 * - - 8 + 99 + - 10 + 71 * - - 7 * + + 19 AS col2
----
8895

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

query I rowsort
SELECT - 38 * + ( - 95 ) * ( 41 ) + + 82 AS col2
----
148092

onlyif mysql # aggregate syntax: 
query I rowsort label-6065
SELECT ALL - COUNT( * ) + + 14 AS col0
----
13

skipif mysql # not compatible
query I rowsort label-6065
SELECT ALL - COUNT ( * ) + + 14 AS col0
----
13

query I rowsort
SELECT - 57 - - + 7 - - 4 * - 69 AS col1
----
-326

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6067
SELECT DISTINCT COALESCE ( + 36, - 69 * - COUNT( * ) - - + 11, + 24 * - NULLIF ( - CAST( - + 32 AS SIGNED ), - 54 ) - + COUNT( * ) + - COALESCE ( + COUNT( - CASE + 73 WHEN - 74 + + ( + 4 ) THEN NULL ELSE + - 8 + - - 75 END ), 94, 8 ) DIV - CAST( AVG ( 10 ) AS SIGNED ) DIV NULLIF ( 65, 31 ) DIV - COUNT( * ) + + 23 * 64 ) AS col0
----
36

skipif mysql # not compatible
query I rowsort label-6067
SELECT DISTINCT COALESCE ( + 36, - 69 * - COUNT ( * ) - - + 11, + 24 * - NULLIF ( - CAST ( - + 32 AS INTEGER ), - 54 ) - + COUNT ( * ) + - COALESCE ( + COUNT ( - CASE + 73 WHEN - 74 + + ( + 4 ) THEN NULL ELSE + - 8 + - - 75 END ), 94, 8 ) / - CAST ( AVG ( 10 ) AS INTEGER ) / NULLIF ( 65, 31 ) / - COUNT ( * ) + + 23 * 64 ) AS col0
----
36

query I rowsort
SELECT - 92 + 41 + 98
----
47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6069
SELECT - 9 * + COALESCE ( + + 70, + 57 + CAST( - ( - 8 ) AS SIGNED ) + + - 34 * - 62 * - - 7 ) AS col0
----
-630

skipif mysql # not compatible
query I rowsort label-6069
SELECT - 9 * + COALESCE ( + + 70, + 57 + CAST ( - ( - 8 ) AS INTEGER ) + + - 34 * - 62 * - - 7 ) AS col0
----
-630

query I rowsort
SELECT ALL - 60 * 12 + - + 5
----
-725

query I rowsort
SELECT ALL + 76 * - 76 + 95 - - ( ( - 43 ) ) col1
----
-5724

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6072
SELECT - 1 DIV - COUNT( - 2 ) - + - 32
----
33

skipif mysql # not compatible
query I rowsort label-6072
SELECT - 1 / - COUNT ( - 2 ) - + - 32
----
33

query I rowsort
SELECT NULLIF ( - 73, + 26 ) col1
----
-73

query I rowsort
SELECT - 79 * 25
----
-1975

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6076
SELECT - NULLIF ( ( + 69 ), - 7 ) DIV + 46 + + 4
----
3

skipif mysql # not compatible
query I rowsort label-6076
SELECT - NULLIF ( ( + 69 ), - 7 ) / + 46 + + 4
----
3

query I rowsort
SELECT ALL 32 * - 24 + - 76 AS col0
----
-844

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6080
SELECT - 50 * - ( - CASE + - COUNT( ALL ( + 74 ) ) WHEN - + CAST( + 56 AS DECIMAL ) / - - 15 + COUNT( * ) + + + 45 + - 39 THEN NULL WHEN - 79 THEN + 27 * 79 - + AVG ( DISTINCT + CAST( 61 AS SIGNED ) ) END ) + + COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6080
SELECT - 50 * - ( - CASE + - COUNT ( ALL ( + 74 ) ) WHEN - + CAST ( + 56 AS REAL ) / - - 15 + COUNT ( * ) + + + 45 + - 39 THEN NULL WHEN - 79 THEN + 27 * 79 - + AVG ( DISTINCT + CAST ( 61 AS INTEGER ) ) END ) + + COUNT ( * ) AS col2
----
NULL

query I rowsort
SELECT ALL + 64 * - + ( + + 94 )
----
-6016

query I rowsort
SELECT DISTINCT - ( + - 48 ) * - 63 * - 48
----
145152

query I rowsort
SELECT + 72 + - 82 AS col0
----
-10

query I rowsort
SELECT DISTINCT 43 * + - 95 * 12 - + 98
----
-49118

onlyif mysql # aggregate syntax: 
query I rowsort label-6085
SELECT + - SUM( 6 ) * - + 26 AS col1
----
156

skipif mysql # not compatible
query I rowsort label-6085
SELECT + - SUM ( 6 ) * - + 26 AS col1
----
156

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6086
SELECT + MIN( - 56 ) + - NULLIF ( ( - - CAST( - + 52 AS SIGNED ) ), 34 ) / - - ( - CAST( NULL AS SIGNED ) ) * SUM( - 77 ) + + + 74 + 22 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6086
SELECT + MIN ( - 56 ) + - NULLIF ( ( - - CAST ( - + 52 AS INTEGER ) ), 34 ) / - - ( - CAST ( NULL AS INTEGER ) ) * SUM ( - 77 ) + + + 74 + 22 col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6087
SELECT - NULLIF ( - COUNT( * ), 84 + - 10 ) DIV - COUNT( * ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-6087
SELECT - NULLIF ( - COUNT ( * ), 84 + - 10 ) / - COUNT ( * ) AS col1
----
-1

query II rowsort
SELECT - 23 * - - 13 AS col0, ( 8 )
----
-299
8

onlyif mysql # aggregate syntax: 
query I rowsort label-6089
SELECT + 93 * - COUNT( * ) * + 62 + + COUNT( * )
----
-5765

skipif mysql # not compatible
query I rowsort label-6089
SELECT + 93 * - COUNT ( * ) * + 62 + + COUNT ( * )
----
-5765

query I rowsort
SELECT - + 45 * - - 17 + - 40 + - 59 AS col2
----
-864

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6092
SELECT + COUNT( * ) + 16 AS col2, + 8
----
17
8

skipif mysql # not compatible
query II rowsort label-6092
SELECT + COUNT ( * ) + 16 AS col2, + 8
----
17
8

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

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

query I rowsort
SELECT ALL - NULLIF ( - + 68, + 32 * 36 ) AS col0
----
68

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6096
SELECT DISTINCT 12 + MAX( + - NULLIF ( - 94, 73 ) )
----
106

skipif mysql # not compatible
query I rowsort label-6096
SELECT DISTINCT 12 + MAX ( + - NULLIF ( - 94, 73 ) )
----
106

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6097
SELECT DISTINCT + 88 + 82 * + COUNT( * ) + 43 + + + CAST( NULL AS SIGNED ) + 98 * - 44 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6097
SELECT DISTINCT + 88 + 82 * + COUNT ( * ) + 43 + + + CAST ( NULL AS INTEGER ) + 98 * - 44 AS col0
----
NULL

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

skipif mysql # not compatible
query I rowsort label-6098
SELECT ALL 97 + - + CAST ( NULL AS INTEGER ) + - SUM ( + 24 ) - + 44 * + + 17
----
NULL

query I rowsort
SELECT + + 0 + - 20
----
-20

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

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

query I rowsort
SELECT DISTINCT - NULLIF ( 53, + 91 ) + - 47 - + ( 43 ) AS col1
----
-143

query I rowsort
SELECT DISTINCT + 58 + + 10
----
68

onlyif mysql # DIV for integer division: 
query I rowsort label-6103
SELECT ALL + 40 + - + 82 + 28 DIV - 8
----
-45

skipif mysql # not compatible
query I rowsort label-6103
SELECT ALL + 40 + - + 82 + 28 / - 8
----
-45

query I rowsort
SELECT DISTINCT 27 + 83 col0
----
110

query I rowsort
SELECT ALL + CASE 59 WHEN 74 * 53 + 85 THEN - 51 + - 27 + + 28 + - + 29 * + 59 ELSE NULL END
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6107
SELECT ALL + COUNT( * ), 62 * - COUNT( * ) * - ( - 82 ) AS col1
----
1
-5084

skipif mysql # not compatible
query II rowsort label-6107
SELECT ALL + COUNT ( * ), 62 * - COUNT ( * ) * - ( - 82 ) AS col1
----
1
-5084

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6108
SELECT - AVG ( ALL CAST( NULL AS SIGNED ) ) * + - 27 * + + CAST( 53 AS DECIMAL ) * 25 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6108
SELECT - AVG ( ALL CAST ( NULL AS INTEGER ) ) * + - 27 * + + CAST ( 53 AS REAL ) * 25 AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6109
SELECT DISTINCT + 51 DIV + + 89
----
0

skipif mysql # not compatible
query I rowsort label-6109
SELECT DISTINCT + 51 / + + 89
----
0

query II rowsort
SELECT - 98 * + ( - 71 ) AS col2, 92 * - 65 + 88 * + 84 * + 28
----
6958
200996

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6112
SELECT 22 * 84 + + 34 - - + MIN( DISTINCT 82 )
----
1964

skipif mysql # not compatible
query I rowsort label-6112
SELECT 22 * 84 + + 34 - - + MIN ( DISTINCT 82 )
----
1964

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

skipif mysql # not compatible
query I rowsort label-6113
SELECT MAX ( DISTINCT - - 40 )
----
40

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6115
SELECT - + COUNT( * ) * - CASE + 95 WHEN - 56 THEN + 99 - 7 ELSE NULL END + - + 59 * - + 49 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6115
SELECT - + COUNT ( * ) * - CASE + 95 WHEN - 56 THEN + 99 - 7 ELSE NULL END + - + 59 * - + 49 AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6116
SELECT - 43 DIV 52 - + 70 AS col0
----
-70

skipif mysql # not compatible
query I rowsort label-6116
SELECT - 43 / 52 - + 70 AS col0
----
-70

query I rowsort
SELECT ALL - 67 * + 75
----
-5025

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

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

query II rowsort
SELECT - 53 AS col0, 78 + + 16 * + 45 * 84
----
-53
60558

onlyif mysql # aggregate syntax: 
query I rowsort label-6120
SELECT ALL - COUNT( * ) + 8 * + + 95
----
759

skipif mysql # not compatible
query I rowsort label-6120
SELECT ALL - COUNT ( * ) + 8 * + + 95
----
759

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6121
SELECT 19 + + CAST( - COUNT( * ) AS SIGNED ) col1
----
18

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

query I rowsort
SELECT 55 * + 55 * + 88 col0
----
266200

onlyif mysql # aggregate syntax: 
query II rowsort label-6123
SELECT + MIN( + 38 ) + + 8, + 96 * - 10 AS col1
----
46
-960

skipif mysql # not compatible
query II rowsort label-6123
SELECT + MIN ( + 38 ) + + 8, + 96 * - 10 AS col1
----
46
-960

query I rowsort
SELECT ALL + 35 * - 71 AS col1
----
-2485

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6126
SELECT ALL - 65 + COUNT( * ) * COUNT( * ) * + 43 - 49 AS col2
----
-71

skipif mysql # not compatible
query I rowsort label-6126
SELECT ALL - 65 + COUNT ( * ) * COUNT ( * ) * + 43 - 49 AS col2
----
-71

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

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

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

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

query I rowsort
SELECT ALL ( 65 ) * - + 70
----
-4550

query I rowsort
SELECT ALL 57 + + 22
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-6131
SELECT DISTINCT COALESCE ( + + COUNT( * ), + - 81 ) * - - 13 * + 41 AS col2
----
533

skipif mysql # not compatible
query I rowsort label-6131
SELECT DISTINCT COALESCE ( + + COUNT ( * ), + - 81 ) * - - 13 * + 41 AS col2
----
533

query I rowsort
SELECT DISTINCT 86 - + 40 - + 88 * - COALESCE ( 0, + ( - 43 ) )
----
46

query I rowsort
SELECT 60 + - 19
----
41

onlyif mysql # aggregate syntax: 
query II rowsort label-6134
SELECT 37 - - + COUNT( * ) col1, - 83 * - 73
----
38
6059

skipif mysql # not compatible
query II rowsort label-6134
SELECT 37 - - + COUNT ( * ) col1, - 83 * - 73
----
38
6059

onlyif mysql # aggregate syntax: 
query I rowsort label-6135
SELECT ( + COALESCE ( 62, + + SUM( 24 ) + + 87 + + 5 * + SUM( DISTINCT 63 ) ) ) * + ( - 42 ) AS col2
----
-2604

skipif mysql # not compatible
query I rowsort label-6135
SELECT ( + COALESCE ( 62, + + SUM ( 24 ) + + 87 + + 5 * + SUM ( DISTINCT 63 ) ) ) * + ( - 42 ) AS col2
----
-2604

query I rowsort
SELECT 75 * + 94 * - + 93
----
-655650

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6137
SELECT ALL 14 DIV + 85, 47 * 2 - + 0 + + + 86 * - MIN( - 36 ) AS col0
----
0
3190

skipif mysql # not compatible
query II rowsort label-6137
SELECT ALL 14 / + 85, 47 * 2 - + 0 + + + 86 * - MIN ( - 36 ) AS col0
----
0
3190

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6138
SELECT SUM( - 22 ) + + - 90 - 62 - - - 91 DIV + 6 AS col0
----
-189

skipif mysql # not compatible
query I rowsort label-6138
SELECT SUM ( - 22 ) + + - 90 - 62 - - - 91 / + 6 AS col0
----
-189

query I rowsort
SELECT DISTINCT + 18 * - + 85
----
-1530

query I rowsort
SELECT ALL + 9 * + ( + 74 )
----
666

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

skipif mysql # not compatible
query I rowsort label-6141
SELECT ALL 78 / + COUNT ( * ) AS col2
----
78

query I rowsort
SELECT 75 * 23 AS col1
----
1725

query I rowsort
SELECT ALL 72 * + + 30
----
2160

query I rowsort
SELECT 55 * - 55 * - 19
----
57475

onlyif mysql # aggregate syntax: 
query I rowsort label-6145
SELECT 91 * - COUNT( * ) col0
----
-91

skipif mysql # not compatible
query I rowsort label-6145
SELECT 91 * - COUNT ( * ) col0
----
-91

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query I rowsort label-6146
SELECT COUNT( ( - CAST( - - 89 AS DECIMAL ) ) ) DIV - 87 + 94 AS col1
----
94

skipif mysql # not compatible
query I rowsort label-6146
SELECT COUNT ( ( - CAST ( - - 89 AS REAL ) ) ) / - 87 + 94 AS col1
----
94

query I rowsort
SELECT + 66 * + 49 * + + 27 AS col2
----
87318

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

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

query I rowsort
SELECT DISTINCT + 13 * ( 78 ) * + + 15
----
15210

query I rowsort
SELECT + 92 * + 85 + - + 84
----
7736

onlyif mysql # aggregate syntax: 
query I rowsort label-6151
SELECT ALL - 21 + COUNT( * ) * + + 17 + + 92 AS col2
----
88

skipif mysql # not compatible
query I rowsort label-6151
SELECT ALL - 21 + COUNT ( * ) * + + 17 + + 92 AS col2
----
88

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6153
SELECT + NULLIF ( 86, - CASE 95 WHEN - MIN( - - 26 ) * - + 63 + 59 THEN NULL ELSE COUNT( * ) END * + COUNT( * ) * - + 32 + - + 98 - + 31 ) * + + 88 + - - NULLIF ( - 36, - 87 + + 42 + + 99 * - - CAST( - 63 AS SIGNED ) * + ( - + NULLIF ( - + 31, - CASE - + 30 WHEN + - ( + + AVG ( 19 ) ) * 90 - + 82 THEN NULL ELSE 94 + + 20 * + 50 END * - COUNT( * ) + + 91 ) ) ) + 94 * + 10 + - 5 col1
----
8467

skipif mysql # not compatible
query I rowsort label-6153
SELECT + NULLIF ( 86, - CASE 95 WHEN - MIN ( - - 26 ) * - + 63 + 59 THEN NULL ELSE COUNT ( * ) END * + COUNT ( * ) * - + 32 + - + 98 - + 31 ) * + + 88 + - - NULLIF ( - 36, - 87 + + 42 + + 99 * - - CAST ( - 63 AS INTEGER ) * + ( - + NULLIF ( - + 31, - CASE - + 30 WHEN + - ( + + AVG ( 19 ) ) * 90 - + 82 THEN NULL ELSE 94 + + 20 * + 50 END * - COUNT ( * ) + + 91 ) ) ) + 94 * + 10 + - 5 col1
----
8467

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6154
SELECT ALL - - MIN( DISTINCT + - 93 ) + 47 DIV + 36 AS col0
----
-92

skipif mysql # not compatible
query I rowsort label-6154
SELECT ALL - - MIN ( DISTINCT + - 93 ) + 47 / + 36 AS col0
----
-92

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6155
SELECT - CAST( NULL AS SIGNED ) * - 90 * - + COUNT( * ) + COUNT( * ) + + 5 / + 50 * + SUM( ALL + 12 ) / - 30 * + CASE + 37 WHEN + NULLIF ( - + 11, - 7 * + COUNT( * ) / + + 3 ) + - MIN( + 27 ) THEN - + 72 ELSE NULL END * + - AVG ( ALL + - 5 ) * + 55 / - 66
----
NULL

skipif mysql # not compatible
query I rowsort label-6155
SELECT - CAST ( NULL AS INTEGER ) * - 90 * - + COUNT ( * ) + COUNT ( * ) + + 5 / + 50 * + SUM ( ALL + 12 ) / - 30 * + CASE + 37 WHEN + NULLIF ( - + 11, - 7 * + COUNT ( * ) / + + 3 ) + - MIN ( + 27 ) THEN - + 72 ELSE NULL END * + - AVG ( ALL + - 5 ) * + 55 / - 66
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6157
SELECT 54 * - COUNT( * ) + - 86 AS col2
----
-140

skipif mysql # not compatible
query I rowsort label-6157
SELECT 54 * - COUNT ( * ) + - 86 AS col2
----
-140

onlyif mysql # aggregate syntax: 
query II rowsort label-6158
SELECT ALL - - 20 + 67, 21 * + 12 + + 11 + + 3 * 54 * + 36 + COALESCE ( - 26, + - COUNT( * ) ) * 88 * CASE COUNT( * ) WHEN - - ( 84 ) THEN - 83 END AS col2
----
87
NULL

skipif mysql # not compatible
query II rowsort label-6158
SELECT ALL - - 20 + 67, 21 * + 12 + + 11 + + 3 * 54 * + 36 + COALESCE ( - 26, + - COUNT ( * ) ) * 88 * CASE COUNT ( * ) WHEN - - ( 84 ) THEN - 83 END AS col2
----
87
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6159
SELECT DISTINCT - 36 * 99 * - ( + 3 ) * - + COUNT( * ) - - 8 AS col1
----
-10684

skipif mysql # not compatible
query I rowsort label-6159
SELECT DISTINCT - 36 * 99 * - ( + 3 ) * - + COUNT ( * ) - - 8 AS col1
----
-10684

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6160
SELECT DISTINCT - CAST( 33 AS SIGNED ) + - + 77 AS col1
----
-110

skipif mysql # not compatible
query I rowsort label-6160
SELECT DISTINCT - CAST ( 33 AS INTEGER ) + - + 77 AS col1
----
-110

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

skipif mysql # not compatible
query I rowsort label-6161
SELECT COUNT ( * ) * - + MIN ( ALL + 94 ) AS col2
----
-94

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

skipif mysql # not compatible
query I rowsort label-6162
SELECT DISTINCT 16 / + 16
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6163
SELECT DISTINCT + CAST( + 49 AS SIGNED ) - - + 94 AS col2
----
143

skipif mysql # not compatible
query I rowsort label-6163
SELECT DISTINCT + CAST ( + 49 AS INTEGER ) - - + 94 AS col2
----
143

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

skipif mysql # not compatible
query I rowsort label-6164
SELECT ALL - COUNT ( * ) / + 54 AS col1
----
0

query I rowsort
SELECT 21 * - 6
----
-126

query I rowsort
SELECT ALL ( + 44 ) - + 0 AS col2
----
44

query I rowsort
SELECT 40 - + - 84
----
124

onlyif mysql # aggregate syntax: 
query II rowsort label-6168
SELECT DISTINCT 37 * - 42 * - - 65, CASE - 13 WHEN - ( - COUNT( * ) ) THEN - ( - 49 ) * 48 * 81 ELSE - ( + 58 ) * - - 78 + + - 39 + - 89 * + - MAX( + 75 ) + - 91 + + - 25 + - ( + 63 ) - - 7 END * + 76 - + 59 AS col0
----
-101010
147381

skipif mysql # not compatible
query II rowsort label-6168
SELECT DISTINCT 37 * - 42 * - - 65, CASE - 13 WHEN - ( - COUNT ( * ) ) THEN - ( - 49 ) * 48 * 81 ELSE - ( + 58 ) * - - 78 + + - 39 + - 89 * + - MAX ( + 75 ) + - 91 + + - 25 + - ( + 63 ) - - 7 END * + 76 - + 59 AS col0
----
-101010
147381

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6169
SELECT CAST( MIN( ALL - 48 ) AS SIGNED ) + - 41 AS col0
----
-89

skipif mysql # not compatible
query I rowsort label-6169
SELECT CAST ( MIN ( ALL - 48 ) AS INTEGER ) + - 41 AS col0
----
-89

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6170
SELECT CASE + 28 WHEN - 46 THEN NULL WHEN 31 THEN 88 END + 40 - CAST( 75 AS SIGNED ) * + COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6170
SELECT CASE + 28 WHEN - 46 THEN NULL WHEN 31 THEN 88 END + 40 - CAST ( 75 AS INTEGER ) * + COUNT ( * ) AS col0
----
NULL

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

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

query I rowsort
SELECT 71 * + 26 AS col2
----
1846

query I rowsort
SELECT ALL - 18 * - 78 + 7 * - - 71
----
1901

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6174
SELECT DISTINCT 86 * + 46 * + COALESCE ( - ( - + 69 ), + 27 / - 25 ) * - 54 + - - 98 * + 30 + + CASE ( + 77 ) WHEN - - COUNT( * ) * + 69 + + CAST( NULL AS SIGNED ) - CASE - 41 WHEN 86 * + - COUNT( * ) THEN + - 21 WHEN - 77 / + COUNT( * ) * + 5 THEN + 31 * + 37 + 35 + - - 52 * - 43 WHEN - - 39 / - COALESCE ( + 55, + COUNT( * ) / ( 42 ) + + 53 * 46 ) THEN NULL ELSE NULL END + 88 * 94 * - 38 + 85 THEN NULL ELSE 72 / ( - 58 * ( + ( - 33 ) ) ) END * CASE + 3 + + 37 WHEN + 10 THEN SUM( DISTINCT 69 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-6174
SELECT DISTINCT 86 * + 46 * + COALESCE ( - ( - + 69 ), + 27 / - 25 ) * - 54 + - - 98 * + 30 + + CASE ( + 77 ) WHEN - - COUNT ( * ) * + 69 + + CAST ( NULL AS INTEGER ) - CASE - 41 WHEN 86 * + - COUNT ( * ) THEN + - 21 WHEN - 77 / + COUNT ( * ) * + 5 THEN + 31 * + 37 + 35 + - - 52 * - 43 WHEN - - 39 / - COALESCE ( + 55, + COUNT ( * ) / ( 42 ) + + 53 * 46 ) THEN NULL ELSE NULL END + 88 * 94 * - 38 + 85 THEN NULL ELSE 72 / ( - 58 * ( + ( - 33 ) ) ) END * CASE + 3 + + 37 WHEN + 10 THEN SUM ( DISTINCT 69 ) END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6175
SELECT DISTINCT ( + 6 ) * + + COUNT( * ) + 75 + COUNT( * ) + 14 * 61 AS col0
----
936

skipif mysql # not compatible
query I rowsort label-6175
SELECT DISTINCT ( + 6 ) * + + COUNT ( * ) + 75 + COUNT ( * ) + 14 * 61 AS col0
----
936

onlyif mysql # aggregate syntax: 
query I rowsort label-6176
SELECT ALL + - 7 * + 37 * - 54 * + COUNT( * ) + - - 38
----
14024

skipif mysql # not compatible
query I rowsort label-6176
SELECT ALL + - 7 * + 37 * - 54 * + COUNT ( * ) + - - 38
----
14024

onlyif mysql # aggregate syntax: 
query I rowsort label-6177
SELECT DISTINCT - - 74 * COUNT( * ) + - 16 AS col1
----
58

skipif mysql # not compatible
query I rowsort label-6177
SELECT DISTINCT - - 74 * COUNT ( * ) + - 16 AS col1
----
58

onlyif mysql # aggregate syntax: 
query II rowsort label-6178
SELECT ALL + 10 * + ( + 67 ) + - - COUNT( * ) * 38 + 92 + 33 * + + 59 AS col1, - 99 AS col0
----
2747
-99

skipif mysql # not compatible
query II rowsort label-6178
SELECT ALL + 10 * + ( + 67 ) + - - COUNT ( * ) * 38 + 92 + 33 * + + 59 AS col1, - 99 AS col0
----
2747
-99

query I rowsort
SELECT ALL + 1 * + 99 AS col0
----
99

onlyif mysql # aggregate syntax: 
query II rowsort label-6180
SELECT DISTINCT + - COUNT( * ) * + ( - + 64 ) * 73 * - 68 + 66 col1, COUNT( * ) AS col1
----
-317630
1

skipif mysql # not compatible
query II rowsort label-6180
SELECT DISTINCT + - COUNT ( * ) * + ( - + 64 ) * 73 * - 68 + 66 col1, COUNT ( * ) AS col1
----
-317630
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6181
SELECT ALL + 74 * - 1 * + - 15 + - COUNT( * ) + + - CAST( NULL AS SIGNED ) * - 68 * - 74 - + 55 + 55
----
NULL

skipif mysql # not compatible
query I rowsort label-6181
SELECT ALL + 74 * - 1 * + - 15 + - COUNT ( * ) + + - CAST ( NULL AS INTEGER ) * - 68 * - 74 - + 55 + 55
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6182
SELECT ALL - COALESCE ( + + 14, 99, - + 91, + + CAST( NULL AS SIGNED ) ) - - 22
----
8

skipif mysql # not compatible
query I rowsort label-6182
SELECT ALL - COALESCE ( + + 14, 99, - + 91, + + CAST ( NULL AS INTEGER ) ) - - 22
----
8

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6184
SELECT DISTINCT + + MAX( - - ( + - CAST( - + 22 AS SIGNED ) ) ) AS col2
----
22

skipif mysql # not compatible
query I rowsort label-6184
SELECT DISTINCT + + MAX ( - - ( + - CAST ( - + 22 AS INTEGER ) ) ) AS col2
----
22

query I rowsort
SELECT DISTINCT + + 26 - ( + 48 ) + + 69
----
47

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6186
SELECT + 85 * - 17 DIV - + COUNT( * ) - - ( - 7 ) DIV + 61 * - + COALESCE ( - 85, + 34, - 14 + + 67 * - - 73 + - 78 + COALESCE ( 6, - ( + 23 ) * 37, COUNT( * ) ) )
----
1445

skipif mysql # not compatible
query I rowsort label-6186
SELECT + 85 * - 17 / - + COUNT ( * ) - - ( - 7 ) / + 61 * - + COALESCE ( - 85, + 34, - 14 + + 67 * - - 73 + - 78 + COALESCE ( 6, - ( + 23 ) * 37, COUNT ( * ) ) )
----
1445

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6187
SELECT DISTINCT CASE WHEN NOT AVG ( ALL 9 ) NOT IN ( 24 - - 22, 29, - + CAST( + ( - 33 ) AS SIGNED ) + + + 89 * - 78, + 44, + COUNT( * ) + - + 97 + + 12 * - 46 ) THEN NULL ELSE 44 + - 93 + 15 + - 15 * - 79 * + 99 END AS col1
----
117281

skipif mysql # not compatible
query I rowsort label-6187
SELECT DISTINCT CASE WHEN NOT AVG ( ALL 9 ) NOT IN ( 24 - - 22, 29, - + CAST ( + ( - 33 ) AS INTEGER ) + + + 89 * - 78, + 44, + COUNT ( * ) + - + 97 + + 12 * - 46 ) THEN NULL ELSE 44 + - 93 + 15 + - 15 * - 79 * + 99 END AS col1
----
117281

onlyif mysql # DIV for integer division: 
query I rowsort label-6188
SELECT ALL - 36 * 35 DIV + 83
----
-15

skipif mysql # not compatible
query I rowsort label-6188
SELECT ALL - 36 * 35 / + 83
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-6189
SELECT - COUNT( * ) + COUNT( ALL - 89 ) + + 56 + - - COUNT( * ) * - 9
----
47

skipif mysql # not compatible
query I rowsort label-6189
SELECT - COUNT ( * ) + COUNT ( ALL - 89 ) + + 56 + - - COUNT ( * ) * - 9
----
47

query I rowsort
SELECT DISTINCT - 18 * 39 * - 84 AS col2
----
58968

onlyif mysql # aggregate syntax: 
query I rowsort label-6191
SELECT - 79 + - 46 + + COALESCE ( 82, + 95 - + - 91, COUNT( * ) )
----
-43

skipif mysql # not compatible
query I rowsort label-6191
SELECT - 79 + - 46 + + COALESCE ( 82, + 95 - + - 91, COUNT ( * ) )
----
-43

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-6194
SELECT ALL CASE + + 1 WHEN - + MIN( + + 20 ) + ( + 37 ) - CASE - 73 WHEN + + 67 * 58 THEN - CAST( COUNT( * ) AS DECIMAL ) WHEN 73 + + + 51 + 74 THEN + ( - 80 ) ELSE NULL END + - 46 * + + 96 * 13 * - - 30 * + + 18 + + 40 / COUNT( * ) / - 95 THEN + + 81 ELSE NULL END, 77 + + 53 AS col2
----
NULL
130

skipif mysql # not compatible
query II rowsort label-6194
SELECT ALL CASE + + 1 WHEN - + MIN ( + + 20 ) + ( + 37 ) - CASE - 73 WHEN + + 67 * 58 THEN - CAST ( COUNT ( * ) AS REAL ) WHEN 73 + + + 51 + 74 THEN + ( - 80 ) ELSE NULL END + - 46 * + + 96 * 13 * - - 30 * + + 18 + + 40 / COUNT ( * ) / - 95 THEN + + 81 ELSE NULL END, 77 + + 53 AS col2
----
NULL
130

query II rowsort
SELECT ALL 84, + 28 * + 82 * + 43 AS col1
----
84
98728

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6196
SELECT DISTINCT CASE CASE - 75 WHEN 13 THEN - + ( + 7 ) WHEN + - 89 THEN NULL END WHEN + 16 * 98 THEN NULL WHEN 1 THEN NULL ELSE + CAST( NULL AS SIGNED ) * - - 3 + COUNT( * ) / - ( 67 ) * - - 1 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6196
SELECT DISTINCT CASE CASE - 75 WHEN 13 THEN - + ( + 7 ) WHEN + - 89 THEN NULL END WHEN + 16 * 98 THEN NULL WHEN 1 THEN NULL ELSE + CAST ( NULL AS INTEGER ) * - - 3 + COUNT ( * ) / - ( 67 ) * - - 1 END AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6197
SELECT - 61 * - - CASE + 26 WHEN - NULLIF ( + MAX( 6 ), - 67 * - 4 + + - 4 + - - ( + 13 ) ) THEN - ( - 94 ) WHEN + + 15 THEN 44 WHEN + - 36 + - 56 THEN + 16 + + + CAST( - 18 AS SIGNED ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6197
SELECT - 61 * - - CASE + 26 WHEN - NULLIF ( + MAX ( 6 ), - 67 * - 4 + + - 4 + - - ( + 13 ) ) THEN - ( - 94 ) WHEN + + 15 THEN 44 WHEN + - 36 + - 56 THEN + 16 + + + CAST ( - 18 AS INTEGER ) END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6198
SELECT - MAX( - 54 ) * 50 AS col1
----
2700

skipif mysql # not compatible
query I rowsort label-6198
SELECT - MAX ( - 54 ) * 50 AS col1
----
2700

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6200
SELECT - NULLIF ( COUNT( DISTINCT - 44 ), + 16 + - 34 ) * - + COUNT( * ) AS col1, - 19 AS col1
----
1
-19

skipif mysql # not compatible
query II rowsort label-6200
SELECT - NULLIF ( COUNT ( DISTINCT - 44 ), + 16 + - 34 ) * - + COUNT ( * ) AS col1, - 19 AS col1
----
1
-19

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

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

query I rowsort
SELECT DISTINCT 84 + - + 64
----
20

query I rowsort
SELECT - 7 * + 69 AS col1
----
-483

query I rowsort
SELECT DISTINCT 19 + + 7
----
26

query I rowsort
SELECT - - NULLIF ( + + 98, 92 ) AS col2
----
98

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

skipif mysql # not compatible
query I rowsort label-6206
SELECT ALL + + COUNT ( * ) + - 13 AS col1
----
-12

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6207
SELECT ALL + + 30 / + 9 + 81 + + 68 * + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-6207
SELECT ALL + + 30 / + 9 + 81 + + 68 * + CAST ( NULL AS REAL )
----
NULL

query I rowsort
SELECT + 23 - 87 AS col0
----
-64

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6209
SELECT + ( + CAST( NULL AS SIGNED ) ) / NULLIF ( 15, COUNT( * ) * + - COUNT( * ) ) + + 46 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6209
SELECT + ( + CAST ( NULL AS INTEGER ) ) / NULLIF ( 15, COUNT ( * ) * + - COUNT ( * ) ) + + 46 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6210
SELECT - - 13 * - MIN( ALL 74 ) / + COALESCE ( + - 90, 83, + 11 * - 97 * 77 + - + ( - - 5 ) * + MIN( - 56 ) ) + + + SUM( - - 94 ) - - CASE + 8 WHEN 56 THEN 81 WHEN 97 THEN NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6210
SELECT - - 13 * - MIN ( ALL 74 ) / + COALESCE ( + - 90, 83, + 11 * - 97 * 77 + - + ( - - 5 ) * + MIN ( - 56 ) ) + + + SUM ( - - 94 ) - - CASE + 8 WHEN 56 THEN 81 WHEN 97 THEN NULL END AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6211
SELECT - 8 DIV - 28 + - 4
----
-4

skipif mysql # not compatible
query I rowsort label-6211
SELECT - 8 / - 28 + - 4
----
-4

query II rowsort
SELECT - 11, 15 * - + 77 AS col1
----
-11
-1155

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

query II rowsort
SELECT ALL + - 77 AS col0, + 20
----
-77
20

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6215
SELECT ALL - NULLIF ( + - COUNT( * ), - 48 * + 4 + - 23 - - 51 + - - SUM( + 57 ) * - 0 DIV + 7 + + + 71 ) DIV - COALESCE ( - 43, + + 10 * COUNT( * ) )
----
0

skipif mysql # not compatible
query I rowsort label-6215
SELECT ALL - NULLIF ( + - COUNT ( * ), - 48 * + 4 + - 23 - - 51 + - - SUM ( + 57 ) * - 0 / + 7 + + + 71 ) / - COALESCE ( - 43, + + 10 * COUNT ( * ) )
----
0

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

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

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

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

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

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

query I rowsort
SELECT + 53 + + 14 AS col2
----
67

query I rowsort
SELECT ALL 23 * - 18
----
-414

onlyif mysql # aggregate syntax: 
query I rowsort label-6221
SELECT + 92 * - - ( - + AVG ( + CASE + 0 WHEN - + 47 THEN - ( + 20 ) END ) ) + + SUM( DISTINCT - + 22 ) / 68
----
NULL

skipif mysql # not compatible
query I rowsort label-6221
SELECT + 92 * - - ( - + AVG ( + CASE + 0 WHEN - + 47 THEN - ( + 20 ) END ) ) + + SUM ( DISTINCT - + 22 ) / 68
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6222
SELECT + CASE + - COUNT( * ) WHEN + 25 + - - 39 + - 48 / 90 THEN NULL ELSE - 82 END + - + 88 AS col2
----
-170

skipif mysql # not compatible
query I rowsort label-6222
SELECT + CASE + - COUNT ( * ) WHEN + 25 + - - 39 + - 48 / 90 THEN NULL ELSE - 82 END + - + 88 AS col2
----
-170

query I rowsort
SELECT ALL - 26 * - 40 - - - 5 + - 2 AS col0
----
1033

query I rowsort
SELECT DISTINCT - 54 * + 18
----
-972

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6225
SELECT + 27 DIV - MIN( 36 ) AS col0, - 94 col2
----
0
-94

skipif mysql # not compatible
query II rowsort label-6225
SELECT + 27 / - MIN ( 36 ) AS col0, - 94 col2
----
0
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-6226
SELECT - 92 + + + 47 + COUNT( * ) * + - 85
----
-130

skipif mysql # not compatible
query I rowsort label-6226
SELECT - 92 + + + 47 + COUNT ( * ) * + - 85
----
-130

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6227
SELECT CASE - COUNT( * ) WHEN - - ( + + 43 ) THEN NULL ELSE + - 24 DIV + + COALESCE ( - + CAST( NULL AS SIGNED ), + 12 ) END col1
----
-2

skipif mysql # not compatible
query I rowsort label-6227
SELECT CASE - COUNT ( * ) WHEN - - ( + + 43 ) THEN NULL ELSE + - 24 / + + COALESCE ( - + CAST ( NULL AS INTEGER ), + 12 ) END col1
----
-2

query I rowsort
SELECT + 21 + - 91
----
-70

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6231
SELECT ALL SUM( - + 6 ) * + 66 + + COUNT( * )
----
-395

skipif mysql # not compatible
query I rowsort label-6231
SELECT ALL SUM ( - + 6 ) * + 66 + + COUNT ( * )
----
-395

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

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

query I rowsort
SELECT - ( + + 41 ) + + 42 AS col0
----
1

query I rowsort
SELECT ALL NULLIF ( - - ( + ( 42 ) ), 95 ) AS col2
----
42

query I rowsort
SELECT DISTINCT CASE - + 47 WHEN + 78 * + 98 THEN + 19 WHEN 16 * + 5 * + - 35 * - 31 THEN 92 / + 3 * - 60 + 60 END AS col2
----
NULL

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

skipif mysql # not compatible
query I rowsort label-6236
SELECT ALL - 5 + - COUNT ( * ) * COUNT ( * ) AS col2
----
-6

query I rowsort
SELECT ALL + 42 + + + 14
----
56

onlyif mysql # DIV for integer division: 
query I rowsort label-6238
SELECT ALL 96 DIV + ( + 65 )
----
1

skipif mysql # not compatible
query I rowsort label-6238
SELECT ALL 96 / + ( + 65 )
----
1

query I rowsort
SELECT DISTINCT 54 + + 59
----
113

query I rowsort
SELECT DISTINCT + 69 + - - 47 col0
----
116

query I rowsort
SELECT DISTINCT + 92 + 13
----
105

onlyif mysql # aggregate syntax: 
query II rowsort label-6242
SELECT COUNT( * ) + + + 11 AS col1, + ( - CASE 66 WHEN - 14 THEN NULL ELSE - - 89 END ) AS col1
----
12
-89

skipif mysql # not compatible
query II rowsort label-6242
SELECT COUNT ( * ) + + + 11 AS col1, + ( - CASE 66 WHEN - 14 THEN NULL ELSE - - 89 END ) AS col1
----
12
-89

query I rowsort
SELECT - 35 + - 17 * + - 34 AS col2
----
543

onlyif mysql # DIV for integer division: 
query I rowsort label-6244
SELECT ALL + 43 + + 63 DIV + 36 AS col0
----
44

skipif mysql # not compatible
query I rowsort label-6244
SELECT ALL + 43 + + 63 / + 36 AS col0
----
44

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6245
SELECT SUM( - 16 ) DIV - COUNT( * ) col1
----
16

skipif mysql # not compatible
query I rowsort label-6245
SELECT SUM ( - 16 ) / - COUNT ( * ) col1
----
16

query I rowsort
SELECT 16 * + + 28 AS col0
----
448

onlyif mysql # aggregate syntax: 
query I rowsort label-6247
SELECT ALL COUNT( * ) - 41 * COUNT( * ) + + ( - + 27 ) + + 47
----
-20

skipif mysql # not compatible
query I rowsort label-6247
SELECT ALL COUNT ( * ) - 41 * COUNT ( * ) + + ( - + 27 ) + + 47
----
-20

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6249
SELECT + - MAX( 85 ) AS col2, 76 - - - 2
----
-85
74

skipif mysql # not compatible
query II rowsort label-6249
SELECT + - MAX ( 85 ) AS col2, 76 - - - 2
----
-85
74

onlyif mysql # aggregate syntax: 
query I rowsort label-6250
SELECT ALL - NULLIF ( 14, + 93 * - 84 * COUNT( 35 ) + + 38 )
----
-14

skipif mysql # not compatible
query I rowsort label-6250
SELECT ALL - NULLIF ( 14, + 93 * - 84 * COUNT ( 35 ) + + 38 )
----
-14

query I rowsort
SELECT ALL - 58 * - ( 76 ) AS col1
----
4408

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

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

query I rowsort
SELECT 61 * 32 - 37 - - + 22
----
1937

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

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

query II rowsort
SELECT DISTINCT - 79 col2, 60
----
-79
60

query II rowsort
SELECT 65, 47 + + - ( - + 90 ) col2
----
65
137

query II rowsort
SELECT DISTINCT - 98, 32 * - 87 AS col1
----
-98
-2784

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6258
SELECT ALL 44 + 46 + 70 + + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6258
SELECT ALL 44 + 46 + 70 + + CAST ( NULL AS INTEGER ) AS col2
----
NULL

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

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

query I rowsort
SELECT 46 * - 25
----
-1150

query I rowsort
SELECT + 38 * - - 99 * - 58 * + - 65 - + 66 + + - 57 * + 36 * 23
----
14135478

query II rowsort
SELECT ALL 8 + - + 0 + 6 AS col0, 93 AS col2
----
14
93

onlyif mysql # aggregate syntax: 
query I rowsort label-6263
SELECT ALL MIN( ALL + 10 ) + + 80
----
90

skipif mysql # not compatible
query I rowsort label-6263
SELECT ALL MIN ( ALL + 10 ) + + 80
----
90

query I rowsort
SELECT DISTINCT 55 * ( - - 54 )
----
2970

query I rowsort
SELECT ALL 14 + + + 97 AS col0
----
111

query II rowsort
SELECT - 46 AS col0, + 38
----
-46
38

query I rowsort
SELECT ALL - ( 65 ) + - 60 + - 27 * + 60 AS col1
----
-1745

query II rowsort
SELECT ALL 56, 63 AS col0
----
56
63

onlyif mysql # aggregate syntax: 
query II rowsort label-6269
SELECT - 22 AS col1, - 91 + MAX( - + 1 ) * - 68
----
-22
-23

skipif mysql # not compatible
query II rowsort label-6269
SELECT - 22 AS col1, - 91 + MAX ( - + 1 ) * - 68
----
-22
-23

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6270
SELECT - 10 + - NULLIF ( ( CAST( 97 AS SIGNED ) ), - 20 * + + 56 / - 53 + - 23 ) * - 95 * + + 96 AS col0, 49 AS col1
----
884630
49

skipif mysql # not compatible
query II rowsort label-6270
SELECT - 10 + - NULLIF ( ( CAST ( 97 AS INTEGER ) ), - 20 * + + 56 / - 53 + - 23 ) * - 95 * + + 96 AS col0, 49 AS col1
----
884630
49

query I rowsort
SELECT - CASE - 15 WHEN + + ( - 1 ) THEN 2 END AS col0
----
NULL

query I rowsort
SELECT 85 + + 54 + 78 * + - 67 * - 28
----
146467

query I rowsort
SELECT - + COALESCE ( - 42, - - 7 - + ( + 38 ), - 88 ) AS col1
----
42

query I rowsort
SELECT 54 - + 98 AS col0
----
-44

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6275
SELECT + 74 DIV - COUNT( * ) + - ( + - 72 )
----
-2

skipif mysql # not compatible
query I rowsort label-6275
SELECT + 74 / - COUNT ( * ) + - ( + - 72 )
----
-2

onlyif mysql # DIV for integer division: 
query II rowsort label-6276
SELECT ( - - 23 ) + + 78, + 44 * ( - ( ( 67 ) ) ) DIV 12 + - 46 + 97 AS col1
----
101
-194

skipif mysql # not compatible
query II rowsort label-6276
SELECT ( - - 23 ) + + 78, + 44 * ( - ( ( 67 ) ) ) / 12 + - 46 + 97 AS col1
----
101
-194

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6277
SELECT - ( - 31 ) * + CAST( NULL AS SIGNED ) AS col2, - 86
----
NULL
-86

skipif mysql # not compatible
query II rowsort label-6277
SELECT - ( - 31 ) * + CAST ( NULL AS INTEGER ) AS col2, - 86
----
NULL
-86

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6278
SELECT CAST( 64 AS SIGNED ) DIV 22 - - COUNT( * ) + - MIN( + 68 ) AS col0
----
-65

skipif mysql # not compatible
query I rowsort label-6278
SELECT CAST ( 64 AS INTEGER ) / 22 - - COUNT ( * ) + - MIN ( + 68 ) AS col0
----
-65

query II rowsort
SELECT 80 + - 78 + + 10 AS col0, + 77
----
12
77

onlyif mysql # aggregate syntax: 
query I rowsort label-6280
SELECT ALL - 4 * - + ( - ( - COUNT( * ) ) ) + - 27 AS col0
----
-23

skipif mysql # not compatible
query I rowsort label-6280
SELECT ALL - 4 * - + ( - ( - COUNT ( * ) ) ) + - 27 AS col0
----
-23

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6281
SELECT COUNT( * ) DIV - 87 + - SUM( - + NULLIF ( + 16, 50 + + + 1 + ( + 80 ) DIV + 84 ) ) + 48 + 4 + 35 * + 36 + - - 97
----
1425

skipif mysql # not compatible
query I rowsort label-6281
SELECT COUNT ( * ) / - 87 + - SUM ( - + NULLIF ( + 16, 50 + + + 1 + ( + 80 ) / + 84 ) ) + 48 + 4 + 35 * + 36 + - - 97
----
1425

query I rowsort
SELECT DISTINCT + 5 + 57
----
62

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6284
SELECT DISTINCT ( - ( 34 ) ) + - NULLIF ( + - 74, + CAST( NULL AS SIGNED ) )
----
40

skipif mysql # not compatible
query I rowsort label-6284
SELECT DISTINCT ( - ( 34 ) ) + - NULLIF ( + - 74, + CAST ( NULL AS INTEGER ) )
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-6285
SELECT ALL COUNT( - 58 ) + - 27 + - 28 - + - NULLIF ( + - 5, - - 30 )
----
-59

skipif mysql # not compatible
query I rowsort label-6285
SELECT ALL COUNT ( - 58 ) + - 27 + - 28 - + - NULLIF ( + - 5, - - 30 )
----
-59

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6286
SELECT - CAST( NULL AS SIGNED ) - ( + COALESCE ( + + 97, - 57, + 24 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-6286
SELECT - CAST ( NULL AS INTEGER ) - ( + COALESCE ( + + 97, - 57, + 24 ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6287
SELECT - COUNT( - 53 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-6287
SELECT - COUNT ( - 53 ) AS col1
----
-1

query I rowsort
SELECT + 30 + 99
----
129

onlyif mysql # DIV for integer division: 
query I rowsort label-6289
SELECT + + 37 DIV + 73 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-6289
SELECT + + 37 / + 73 AS col0
----
0

query I rowsort
SELECT + 56 + + 73 + 34 * + 5 * - - 22
----
3869

query I rowsort
SELECT + 61 - - 44
----
105

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6292
SELECT ALL COALESCE ( - - 69, - MIN( - - CAST( - - 92 AS SIGNED ) ), + COUNT( * ) * + 51 * + + 36 + + 1 ) - + COUNT( * ) - + - 53
----
121

skipif mysql # not compatible
query I rowsort label-6292
SELECT ALL COALESCE ( - - 69, - MIN ( - - CAST ( - - 92 AS INTEGER ) ), + COUNT ( * ) * + 51 * + + 36 + + 1 ) - + COUNT ( * ) - + - 53
----
121

onlyif mysql # aggregate syntax: 
query II rowsort label-6293
SELECT + + NULLIF ( + COALESCE ( + 24, - - 25 * + + 36 * + - SUM( DISTINCT - 52 ) ), - 80 ) * - - 76 AS col1, 69 * - 14 AS col1
----
1824
-966

skipif mysql # not compatible
query II rowsort label-6293
SELECT + + NULLIF ( + COALESCE ( + 24, - - 25 * + + 36 * + - SUM ( DISTINCT - 52 ) ), - 80 ) * - - 76 AS col1, 69 * - 14 AS col1
----
1824
-966

query I rowsort
SELECT - 33 * 50 * + - 14
----
23100

onlyif mysql # aggregate syntax: 
query I rowsort label-6295
SELECT ALL 2 * - SUM( ALL + - 67 )
----
134

skipif mysql # not compatible
query I rowsort label-6295
SELECT ALL 2 * - SUM ( ALL + - 67 )
----
134

onlyif mysql # aggregate syntax: 
query I rowsort label-6296
SELECT DISTINCT + 8 * - 52 * COUNT( * ) - - 19 AS col2
----
-397

skipif mysql # not compatible
query I rowsort label-6296
SELECT DISTINCT + 8 * - 52 * COUNT ( * ) - - 19 AS col2
----
-397

query I rowsort
SELECT DISTINCT + + ( + 52 ) * + 78 + - 78
----
3978

query I rowsort
SELECT DISTINCT + NULLIF ( + 16, - 12 * + 86 )
----
16

query I rowsort
SELECT ALL + 75 * - 40
----
-3000

query I rowsort
SELECT DISTINCT 4 * + + 4 + - 7 * 55 AS col2
----
-369

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6301
SELECT ALL COALESCE ( + ( + 32 ), + 11 * COALESCE ( + COUNT( * ), + 88 ) * + - 3 - CAST( NULL AS SIGNED ) - + 63 * - AVG ( DISTINCT - + 14 ) + - 35 + 19 ) * - - 47 + - COUNT( * ) * - CASE - COUNT( - 14 ) WHEN - - MAX( ALL 44 ) + + + 12 + - 44 THEN + 38 / + 57 * - + CAST( 28 AS SIGNED ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-6301
SELECT ALL COALESCE ( + ( + 32 ), + 11 * COALESCE ( + COUNT ( * ), + 88 ) * + - 3 - CAST ( NULL AS INTEGER ) - + 63 * - AVG ( DISTINCT - + 14 ) + - 35 + 19 ) * - - 47 + - COUNT ( * ) * - CASE - COUNT ( - 14 ) WHEN - - MAX ( ALL 44 ) + + + 12 + - 44 THEN + 38 / + 57 * - + CAST ( 28 AS INTEGER ) ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6302
SELECT + 45 + - COUNT( * ) * + COALESCE ( + 44, - + 25, - - 26 * - NULLIF ( - 47, + CASE 71 WHEN 0 * + 6 THEN NULL WHEN - + COUNT( * ) - + 85 THEN + 48 * ( - CASE - + ( - 96 ) WHEN + + 77 * MIN( ALL - 44 ) * CAST( NULL AS SIGNED ) DIV - 67 + 42 THEN NULL ELSE - 65 - ( COUNT( * ) ) * - - SUM( - - 74 ) END ) * NULLIF ( - ( 70 ), 36 + 51 + - 8 ) + - 10 END + 70 ) DIV CAST( NULL AS SIGNED ) + 2 )
----
1

skipif mysql # not compatible
query I rowsort label-6302
SELECT + 45 + - COUNT ( * ) * + COALESCE ( + 44, - + 25, - - 26 * - NULLIF ( - 47, + CASE 71 WHEN 0 * + 6 THEN NULL WHEN - + COUNT ( * ) - + 85 THEN + 48 * ( - CASE - + ( - 96 ) WHEN + + 77 * MIN ( ALL - 44 ) * CAST ( NULL AS INTEGER ) / - 67 + 42 THEN NULL ELSE - 65 - ( COUNT ( * ) ) * - - SUM ( - - 74 ) END ) * NULLIF ( - ( 70 ), 36 + 51 + - 8 ) + - 10 END + 70 ) / CAST ( NULL AS INTEGER ) + 2 )
----
1

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

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

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

query II rowsort
SELECT COALESCE ( - 9, - 87 ) AS col0, + 96
----
-9
96

query I rowsort
SELECT - 3 / + - 84 * - CASE - 18 WHEN + 28 THEN NULL WHEN + - 13 - 30 / + 22 * 74 + + 66 * - - 79 THEN - + 48 ELSE NULL END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6307
SELECT ALL 12 * + - COUNT( * ) + 39 + + COUNT( * ) AS col1
----
28

skipif mysql # not compatible
query I rowsort label-6307
SELECT ALL 12 * + - COUNT ( * ) + 39 + + COUNT ( * ) AS col1
----
28

query I rowsort
SELECT - 20 * - 45
----
900

onlyif mysql # DIV for integer division: 
query I rowsort label-6309
SELECT ALL - 46 DIV 12
----
-3

skipif mysql # not compatible
query I rowsort label-6309
SELECT ALL - 46 / 12
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-6310
SELECT DISTINCT 74 * 3 + MIN( - + 63 ) AS col1
----
159

skipif mysql # not compatible
query I rowsort label-6310
SELECT DISTINCT 74 * 3 + MIN ( - + 63 ) AS col1
----
159

query I rowsort
SELECT - 67 + + 98 - - + 8 * - 34
----
-241

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6312
SELECT ALL COUNT( * ) * - + 63 DIV 32 + - 11 * - 97
----
1066

skipif mysql # not compatible
query I rowsort label-6312
SELECT ALL COUNT ( * ) * - + 63 / 32 + - 11 * - 97
----
1066

query II rowsort
SELECT DISTINCT + NULLIF ( - 90, 95 ), - 85 AS col0
----
-90
-85

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6314
SELECT ALL + MAX( ALL + CAST( - - 13 AS SIGNED ) ) * + 27 - + CAST( NULL AS SIGNED ) * 38 + 28 * 19, + 3 AS col1
----
NULL
3

skipif mysql # not compatible
query II rowsort label-6314
SELECT ALL + MAX ( ALL + CAST ( - - 13 AS INTEGER ) ) * + 27 - + CAST ( NULL AS INTEGER ) * 38 + 28 * 19, + 3 AS col1
----
NULL
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6315
SELECT - COUNT( * ) + - + 46 DIV + 35 + - - 81 * - 49, + 9 AS col2
----
-3971
9

skipif mysql # not compatible
query II rowsort label-6315
SELECT - COUNT ( * ) + - + 46 / + 35 + - - 81 * - 49, + 9 AS col2
----
-3971
9

onlyif mysql # aggregate syntax: 
query I rowsort label-6316
SELECT 56 * - - 75 - - 21 + 15 * + + COUNT( + 75 ) * + - 79 + COUNT( * ) + 61 + 46 * COUNT( * ) + - MAX( ALL + 94 ) * + 97 AS col0
----
-5974

skipif mysql # not compatible
query I rowsort label-6316
SELECT 56 * - - 75 - - 21 + 15 * + + COUNT ( + 75 ) * + - 79 + COUNT ( * ) + 61 + 46 * COUNT ( * ) + - MAX ( ALL + 94 ) * + 97 AS col0
----
-5974

query I rowsort
SELECT DISTINCT + 65 * - + 27
----
-1755

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6318
SELECT - CAST( NULL AS SIGNED ) + 29 + CAST( - + 50 AS SIGNED ) - - 57 * + 98
----
NULL

skipif mysql # not compatible
query I rowsort label-6318
SELECT - CAST ( NULL AS INTEGER ) + 29 + CAST ( - + 50 AS INTEGER ) - - 57 * + 98
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6319
SELECT + 13 - + - 44 + + 5 DIV + + COUNT( * ) AS col0
----
62

skipif mysql # not compatible
query I rowsort label-6319
SELECT + 13 - + - 44 + + 5 / + + COUNT ( * ) AS col0
----
62

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6320
SELECT ALL - 73 * 28 - + COALESCE ( + COUNT( * ), + - ( + CASE 83 WHEN - 22 + COALESCE ( - 74, 42 ) THEN + 10 ELSE + + COUNT( 24 ) DIV 72 END ) ) col2
----
-2045

skipif mysql # not compatible
query I rowsort label-6320
SELECT ALL - 73 * 28 - + COALESCE ( + COUNT ( * ), + - ( + CASE 83 WHEN - 22 + COALESCE ( - 74, 42 ) THEN + 10 ELSE + + COUNT ( 24 ) / 72 END ) ) col2
----
-2045

query I rowsort
SELECT + 89 + - 80
----
9

query I rowsort
SELECT DISTINCT - 66 * 6 AS col0
----
-396

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6323
SELECT - COUNT( * ) + SUM( - 12 ) DIV - 21
----
-1

skipif mysql # not compatible
query I rowsort label-6323
SELECT - COUNT ( * ) + SUM ( - 12 ) / - 21
----
-1

onlyif mysql # DIV for integer division: 
query II rowsort label-6324
SELECT + - COALESCE ( + - 90, 85, + 13 ) DIV + + 66, - 95 AS col1
----
1
-95

skipif mysql # not compatible
query II rowsort label-6324
SELECT + - COALESCE ( + - 90, 85, + 13 ) / + + 66, - 95 AS col1
----
1
-95

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6325
SELECT ALL - 20 / + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6325
SELECT ALL - 20 / + CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6326
SELECT COUNT( * ) col0, - CAST( NULL AS SIGNED ) + - CASE 43 WHEN 78 + - - 35 THEN + 8 * + - COALESCE ( 91, + 17 + - COUNT( * ) * + COUNT( * ) ) END + + 87 + + 0 / + 30 * CAST( + ( + COUNT( * ) ) AS SIGNED ) AS col2
----
1
NULL

skipif mysql # not compatible
query II rowsort label-6326
SELECT COUNT ( * ) col0, - CAST ( NULL AS INTEGER ) + - CASE 43 WHEN 78 + - - 35 THEN + 8 * + - COALESCE ( 91, + 17 + - COUNT ( * ) * + COUNT ( * ) ) END + + 87 + + 0 / + 30 * CAST ( + ( + COUNT ( * ) ) AS INTEGER ) AS col2
----
1
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6327
SELECT ALL SUM( - 38 ) * - + ( + 21 ) * COUNT( * ) AS col1
----
798

skipif mysql # not compatible
query I rowsort label-6327
SELECT ALL SUM ( - 38 ) * - + ( + 21 ) * COUNT ( * ) AS col1
----
798

onlyif mysql # DIV for integer division: 
query I rowsort label-6328
SELECT - 47 DIV - 70
----
0

skipif mysql # not compatible
query I rowsort label-6328
SELECT - 47 / - 70
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-6329
SELECT + COALESCE ( 20, 88 ) DIV + - 60 col2
----
0

skipif mysql # not compatible
query I rowsort label-6329
SELECT + COALESCE ( 20, 88 ) / + - 60 col2
----
0

query I rowsort
SELECT + 30 * - 2 + - - 53 + 13 AS col2
----
6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6331
SELECT ALL 0 + + + CASE - 38 WHEN - 39 THEN - 37 * + COUNT( * ) - 49 * - - 64 * - - 40 / 94 END, - CASE - AVG ( + - CAST( NULL AS SIGNED ) ) WHEN + 94 THEN - 97 WHEN - - 65 / 31 * - 90 * + 32 THEN + + ( + - 82 ) * - + 39 + + COUNT( * ) ELSE NULL END * - AVG ( - 67 ) + + + 87
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-6331
SELECT ALL 0 + + + CASE - 38 WHEN - 39 THEN - 37 * + COUNT ( * ) - 49 * - - 64 * - - 40 / 94 END, - CASE - AVG ( + - CAST ( NULL AS INTEGER ) ) WHEN + 94 THEN - 97 WHEN - - 65 / 31 * - 90 * + 32 THEN + + ( + - 82 ) * - + 39 + + COUNT ( * ) ELSE NULL END * - AVG ( - 67 ) + + + 87
----
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6332
SELECT + - 73 + - + 7 - 9 + - 56 * - 4 * + ( - + COUNT( * ) ) * + + 25 * COUNT( * ) + + - 55 AS col0
----
-5744

skipif mysql # not compatible
query I rowsort label-6332
SELECT + - 73 + - + 7 - 9 + - 56 * - 4 * + ( - + COUNT ( * ) ) * + + 25 * COUNT ( * ) + + - 55 AS col0
----
-5744

onlyif mysql # aggregate syntax: 
query I rowsort label-6333
SELECT + + CASE - 32 WHEN + 61 THEN + 0 WHEN + 91 * 91 - - - 49 THEN - 27 WHEN 41 + - 70 THEN + 69 * - 88 + + 21 END + ( + - MIN( - 34 ) ) + - COUNT( * ) + - - 73 + + COALESCE ( 63, COUNT( * ) ) * - 89 - - 73 * - + SUM( ALL + 77 ) + - + 19
----
NULL

skipif mysql # not compatible
query I rowsort label-6333
SELECT + + CASE - 32 WHEN + 61 THEN + 0 WHEN + 91 * 91 - - - 49 THEN - 27 WHEN 41 + - 70 THEN + 69 * - 88 + + 21 END + ( + - MIN ( - 34 ) ) + - COUNT ( * ) + - - 73 + + COALESCE ( 63, COUNT ( * ) ) * - 89 - - 73 * - + SUM ( ALL + 77 ) + - + 19
----
NULL

query I rowsort
SELECT ALL + 87 + - 67 AS col2
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-6335
SELECT + - 24 * MIN( + ( - 60 ) ) AS col1
----
1440

skipif mysql # not compatible
query I rowsort label-6335
SELECT + - 24 * MIN ( + ( - 60 ) ) AS col1
----
1440

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

skipif mysql # not compatible
query I rowsort label-6336
SELECT ALL - COUNT ( * ) + 8 AS col2
----
7

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

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

onlyif mysql # DIV for integer division: 
query III rowsort label-6338
SELECT - 14 * 80 + - ( 4 ) DIV + 29 AS col0, 87 * + + 38 * + 54 AS col0, 80 AS col1
----
-1120
178524
80

skipif mysql # not compatible
query III rowsort label-6338
SELECT - 14 * 80 + - ( 4 ) / + 29 AS col0, 87 * + + 38 * + 54 AS col0, 80 AS col1
----
-1120
178524
80

query I rowsort
SELECT + 19 + - 75
----
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-6340
SELECT 23 * 17 + + - MAX( - 46 ) - 88 AS col2
----
349

skipif mysql # not compatible
query I rowsort label-6340
SELECT 23 * 17 + + - MAX ( - 46 ) - 88 AS col2
----
349

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6341
SELECT + 26 DIV 13 + + 52 + - 16 + + COUNT( * ) AS col0
----
39

skipif mysql # not compatible
query I rowsort label-6341
SELECT + 26 / 13 + + 52 + - 16 + + COUNT ( * ) AS col0
----
39

query I rowsort
SELECT ALL 85 * - 92
----
-7820

onlyif mysql # aggregate syntax: 
query I rowsort label-6343
SELECT ( - 93 ) * 74 + - 69 + - + MAX( COALESCE ( + 65, - + 6 * - 26 ) ) AS col1
----
-7016

skipif mysql # not compatible
query I rowsort label-6343
SELECT ( - 93 ) * 74 + - 69 + - + MAX ( COALESCE ( + 65, - + 6 * - 26 ) ) AS col1
----
-7016

query I rowsort
SELECT ALL 97 + + - 11 * 91
----
-904

query II rowsort
SELECT + 77 AS col0, 76 * 82
----
77
6232

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

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

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

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

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

query I rowsort
SELECT ALL - 25 - - 86 AS col1
----
61

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6350
SELECT MAX( ALL - 49 ) DIV - 65 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-6350
SELECT MAX ( ALL - 49 ) / - 65 AS col0
----
0

query I rowsort
SELECT 26 * + 35 AS col0
----
910

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6353
SELECT ALL - ( CASE - CAST( + ( - CASE - MIN( ALL + 95 ) WHEN - 82 + - 40 THEN - COUNT( * ) * + 10 WHEN + - 15 / + - 13 - - ( 68 ) THEN NULL ELSE NULL END ) AS SIGNED ) WHEN - 48 * - 24 THEN + - 52 WHEN 81 - + 16 THEN NULL END )
----
NULL

skipif mysql # not compatible
query I rowsort label-6353
SELECT ALL - ( CASE - CAST ( + ( - CASE - MIN ( ALL + 95 ) WHEN - 82 + - 40 THEN - COUNT ( * ) * + 10 WHEN + - 15 / + - 13 - - ( 68 ) THEN NULL ELSE NULL END ) AS INTEGER ) WHEN - 48 * - 24 THEN + - 52 WHEN 81 - + 16 THEN NULL END )
----
NULL

query II rowsort
SELECT ALL - 45 AS col1, + ( + 83 ) * + - 17 AS col0
----
-45
-1411

onlyif mysql # aggregate syntax: 
query II rowsort label-6355
SELECT - + ( - - 75 ), + COALESCE ( 64, - 20, ( - MAX( ALL - + 32 ) ) - COUNT( ALL - 23 ), - ( + + COUNT( * ) ) ) AS col1
----
-75
64

skipif mysql # not compatible
query II rowsort label-6355
SELECT - + ( - - 75 ), + COALESCE ( 64, - 20, ( - MAX ( ALL - + 32 ) ) - COUNT ( ALL - 23 ), - ( + + COUNT ( * ) ) ) AS col1
----
-75
64

onlyif mysql # aggregate syntax: 
query I rowsort label-6356
SELECT ALL - COUNT( * ) * + + 92 * - + ( + 77 ) col2
----
7084

skipif mysql # not compatible
query I rowsort label-6356
SELECT ALL - COUNT ( * ) * + + 92 * - + ( + 77 ) col2
----
7084

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6357
SELECT - 52 * 71 DIV 77 + - NULLIF ( + 38, + 59 DIV 10 * 51 * - + 85 * 65 ) + ( ( + 17 ) ) + - 10 * - 79 + + MIN( ALL + 76 ) + + ( 76 ) * 80 * - 3 AS col1
----
-17442

skipif mysql # not compatible
query I rowsort label-6357
SELECT - 52 * 71 / 77 + - NULLIF ( + 38, + 59 / 10 * 51 * - + 85 * 65 ) + ( ( + 17 ) ) + - 10 * - 79 + + MIN ( ALL + 76 ) + + ( 76 ) * 80 * - 3 AS col1
----
-17442

query I rowsort
SELECT 60 + 54 AS col0
----
114

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

skipif mysql # not compatible
query I rowsort label-6359
SELECT - COUNT ( * ) * + 87 - + 13 / + 69
----
-87

query I rowsort
SELECT - 88 + + 72 col2
----
-16

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-6361
SELECT - 98, - NULLIF ( 83, + CASE - CAST( NULL AS SIGNED ) WHEN + 17 THEN MIN( ALL 46 ) DIV - + 1 * ( + 36 ) ELSE NULL END * + - 65 ) DIV + + 42 - 4 AS col2
----
-98
-5

skipif mysql # not compatible
query II rowsort label-6361
SELECT - 98, - NULLIF ( 83, + CASE - CAST ( NULL AS INTEGER ) WHEN + 17 THEN MIN ( ALL 46 ) / - + 1 * ( + 36 ) ELSE NULL END * + - 65 ) / + + 42 - 4 AS col2
----
-98
-5

query I rowsort
SELECT 39 + + 75 + + 0
----
114

onlyif mysql # aggregate syntax: 
query I rowsort label-6363
SELECT NULLIF ( + COALESCE ( + 47, + + ( - + ( + + COUNT( * ) ) ) * - + COUNT( * ) + + ( + 92 ) ), + 76 )
----
47

skipif mysql # not compatible
query I rowsort label-6363
SELECT NULLIF ( + COALESCE ( + 47, + + ( - + ( + + COUNT ( * ) ) ) * - + COUNT ( * ) + + ( + 92 ) ), + 76 )
----
47

query I rowsort
SELECT ALL - - 63 + 24 AS col1
----
87

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

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

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

skipif mysql # not compatible
query I rowsort label-6366
SELECT ALL - - 46 + - COUNT ( 91 ) AS col1
----
45

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6369
SELECT ALL + 58 DIV - 3 AS col1
----
-19

skipif mysql # not compatible
query I rowsort label-6369
SELECT ALL + 58 / - 3 AS col1
----
-19

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

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

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

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

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

skipif mysql # not compatible
query II rowsort label-6372
SELECT COUNT ( * ) AS col2, 14 AS col1
----
1
14

onlyif mysql # aggregate syntax: 
query II rowsort label-6373
SELECT ALL + + MAX( - 44 ) + + ( + 92 ), COUNT( * ) * + 53 AS col0
----
48
53

skipif mysql # not compatible
query II rowsort label-6373
SELECT ALL + + MAX ( - 44 ) + + ( + 92 ), COUNT ( * ) * + 53 AS col0
----
48
53

query II rowsort
SELECT 35, 4 AS col1
----
35
4

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6375
SELECT 88 * + + 63 + + MAX( DISTINCT + + 59 ) + - 91 DIV - NULLIF ( COALESCE ( - 78, - 98, + 84, - ( + 15 ) ), + 31 ) AS col0
----
5602

skipif mysql # not compatible
query I rowsort label-6375
SELECT 88 * + + 63 + + MAX ( DISTINCT + + 59 ) + - 91 / - NULLIF ( COALESCE ( - 78, - 98, + 84, - ( + 15 ) ), + 31 ) AS col0
----
5602

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6376
SELECT COUNT( DISTINCT - 28 ) DIV 41
----
0

skipif mysql # not compatible
query I rowsort label-6376
SELECT COUNT ( DISTINCT - 28 ) / 41
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6377
SELECT ALL 79 - CAST( - 12 AS SIGNED ) AS col2
----
91

skipif mysql # not compatible
query I rowsort label-6377
SELECT ALL 79 - CAST ( - 12 AS INTEGER ) AS col2
----
91

query II rowsort
SELECT DISTINCT 91 * - - 54 AS col2, 79 AS col1
----
4914
79

query I rowsort
SELECT 74 + 84 AS col1
----
158

onlyif mysql # aggregate syntax: 
query I rowsort label-6380
SELECT 81 * + COUNT( DISTINCT + 68 )
----
81

skipif mysql # not compatible
query I rowsort label-6380
SELECT 81 * + COUNT ( DISTINCT + 68 )
----
81

query II rowsort
SELECT + 34 * + NULLIF ( 96, - 11 ) + - 64 col2, - 16 AS col2
----
3200
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-6382
SELECT + MAX( + 64 ) col1
----
64

skipif mysql # not compatible
query I rowsort label-6382
SELECT + MAX ( + 64 ) col1
----
64

onlyif mysql # aggregate syntax: 
query II rowsort label-6383
SELECT ALL COUNT( * ) * 48, 74 col2
----
48
74

skipif mysql # not compatible
query II rowsort label-6383
SELECT ALL COUNT ( * ) * 48, 74 col2
----
48
74

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6385
SELECT - 83 * + + 59 - COUNT( * ) AS col1
----
-4898

skipif mysql # not compatible
query I rowsort label-6385
SELECT - 83 * + + 59 - COUNT ( * ) AS col1
----
-4898

query I rowsort
SELECT ALL + ( - + 66 ) * 46
----
-3036

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6387
SELECT ALL MAX( - + 62 ) * 87 DIV 32 AS col0
----
-168

skipif mysql # not compatible
query I rowsort label-6387
SELECT ALL MAX ( - + 62 ) * 87 / 32 AS col0
----
-168

query I rowsort
SELECT ALL 10 + - 97 * 17 AS col0
----
-1639

query I rowsort
SELECT NULLIF ( - NULLIF ( + 30, - 80 ), - 15 ) col2
----
-30

onlyif mysql # aggregate syntax: 
query II rowsort label-6390
SELECT + - COUNT( ALL 95 ) AS col0, 81 AS col2
----
-1
81

skipif mysql # not compatible
query II rowsort label-6390
SELECT + - COUNT ( ALL 95 ) AS col0, 81 AS col2
----
-1
81

query II rowsort
SELECT - 93 + + 67 col0, 22
----
-26
22

onlyif mysql # aggregate syntax: 
query I rowsort label-6392
SELECT - 32 * COUNT( * ) * - 41 * + 57 * COUNT( * ) - + - 17
----
74801

skipif mysql # not compatible
query I rowsort label-6392
SELECT - 32 * COUNT ( * ) * - 41 * + 57 * COUNT ( * ) - + - 17
----
74801

query I rowsort
SELECT 75 * + 22 AS col2
----
1650

onlyif mysql # aggregate syntax: 
query I rowsort label-6394
SELECT - MAX( 83 ) - + 16 col1
----
-99

skipif mysql # not compatible
query I rowsort label-6394
SELECT - MAX ( 83 ) - + 16 col1
----
-99

query I rowsort
SELECT + 85 * 81 AS col2
----
6885

onlyif mysql # DIV for integer division: 
query I rowsort label-6396
SELECT 54 DIV + 90 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-6396
SELECT 54 / + 90 AS col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6397
SELECT DISTINCT - CAST( NULL AS SIGNED ) + + COALESCE ( COUNT( * ), 20 + + 51 ) - - 34 * - 2 * + 44 * + 52
----
NULL

skipif mysql # not compatible
query I rowsort label-6397
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + + COALESCE ( COUNT ( * ), 20 + + 51 ) - - 34 * - 2 * + 44 * + 52
----
NULL

query I rowsort
SELECT ALL + 87 * 15 AS col2
----
1305

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6400
SELECT 23 * + MIN( - - 51 ) * 26
----
30498

skipif mysql # not compatible
query I rowsort label-6400
SELECT 23 * + MIN ( - - 51 ) * 26
----
30498

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6401
SELECT DISTINCT - AVG ( ALL - CAST( - 9 AS SIGNED ) ) + - + NULLIF ( 96, + 62 ) - - 25 * 18 + - CAST( NULL AS SIGNED ) * + - 67 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6401
SELECT DISTINCT - AVG ( ALL - CAST ( - 9 AS INTEGER ) ) + - + NULLIF ( 96, + 62 ) - - 25 * 18 + - CAST ( NULL AS INTEGER ) * + - 67 AS col0
----
NULL

query II rowsort
SELECT + 32 + + - 55 AS col0, 73 - ( + 88 ) + 64
----
-23
49

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6403
SELECT ALL + NULLIF ( + 42, + 42 * + COUNT( * ) * + COUNT( * ) + - + CAST( NULL AS DECIMAL ) ) * - ( - 17 ) * - 46
----
-32844

skipif mysql # not compatible
query I rowsort label-6403
SELECT ALL + NULLIF ( + 42, + 42 * + COUNT ( * ) * + COUNT ( * ) + - + CAST ( NULL AS REAL ) ) * - ( - 17 ) * - 46
----
-32844

query I rowsort
SELECT 3 + + 10 AS col0
----
13

query I rowsort
SELECT - + COALESCE ( 54, - 38 * - - 20 * 13 - + 41 )
----
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-6406
SELECT ALL NULLIF ( + 47, + + 49 / + 63 + 59 + + 86 + + 86 / 72 * + MIN( 65 ) * + - 47 )
----
47

skipif mysql # not compatible
query I rowsort label-6406
SELECT ALL NULLIF ( + 47, + + 49 / + 63 + 59 + + 86 + + 86 / 72 * + MIN ( 65 ) * + - 47 )
----
47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6407
SELECT DISTINCT NULLIF ( - 20, - - 18 * CASE + 40 WHEN CAST( NULL AS SIGNED ) THEN - 62 + + COUNT( * ) WHEN 40 * + + 61 + + 97 * 61 * - + SUM( + 5 ) + + 27 + - CASE 88 WHEN - COUNT( * ) + COUNT( * ) THEN - 5 + + + CAST( NULL AS SIGNED ) WHEN 5 THEN NULL END + - 10 + - + COUNT( * ) THEN - + 42 ELSE NULL END ) AS col1
----
-20

skipif mysql # not compatible
query I rowsort label-6407
SELECT DISTINCT NULLIF ( - 20, - - 18 * CASE + 40 WHEN CAST ( NULL AS INTEGER ) THEN - 62 + + COUNT ( * ) WHEN 40 * + + 61 + + 97 * 61 * - + SUM ( + 5 ) + + 27 + - CASE 88 WHEN - COUNT ( * ) + COUNT ( * ) THEN - 5 + + + CAST ( NULL AS INTEGER ) WHEN 5 THEN NULL END + - 10 + - + COUNT ( * ) THEN - + 42 ELSE NULL END ) AS col1
----
-20

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6408
SELECT - CASE - 46 WHEN - 96 + - CAST( + 37 AS SIGNED ) THEN 94 * 62 + - - NULLIF ( + + 6, 56 ) * - 5 END + 49
----
NULL

skipif mysql # not compatible
query I rowsort label-6408
SELECT - CASE - 46 WHEN - 96 + - CAST ( + 37 AS INTEGER ) THEN 94 * 62 + - - NULLIF ( + + 6, 56 ) * - 5 END + 49
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6409
SELECT ALL MAX( - + 59 ) - - NULLIF ( - CASE + 82 WHEN + NULLIF ( - + 26, + 4 ) THEN - - 48 + - 0 * - 68 END, 32 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6409
SELECT ALL MAX ( - + 59 ) - - NULLIF ( - CASE + 82 WHEN + NULLIF ( - + 26, + 4 ) THEN - - 48 + - 0 * - 68 END, 32 )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6410
SELECT DISTINCT MAX( ( - 79 ) ), COUNT( ALL - + 42 ) + + - 13 AS col1
----
-79
-12

skipif mysql # not compatible
query II rowsort label-6410
SELECT DISTINCT MAX ( ( - 79 ) ), COUNT ( ALL - + 42 ) + + - 13 AS col1
----
-79
-12

query I rowsort
SELECT - 20 * - + 95 AS col0
----
1900

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-6412
SELECT + 72 AS col1, CAST( + ( - 72 ) AS SIGNED ) * - COUNT( * ) DIV - 93 * + COUNT( * ) * - 9 * + COALESCE ( - COALESCE ( - 78, + MIN( ALL + 55 ) * + 63 DIV 46 ), + 87 - - 19 - 97 * + + COUNT( * ) DIV 80 * + 72 - - 15, 34 DIV + 89 ) DIV + - 37 + 5
----
72
5

skipif mysql # not compatible
query II rowsort label-6412
SELECT + 72 AS col1, CAST ( + ( - 72 ) AS INTEGER ) * - COUNT ( * ) / - 93 * + COUNT ( * ) * - 9 * + COALESCE ( - COALESCE ( - 78, + MIN ( ALL + 55 ) * + 63 / 46 ), + 87 - - 19 - 97 * + + COUNT ( * ) / 80 * + 72 - - 15, 34 / + 89 ) / + - 37 + 5
----
72
5

query I rowsort
SELECT ALL 80 * + 85 - - - 37 + - + 89
----
6674

query I rowsort
SELECT - ( - 73 ) * + 69 AS col0
----
5037

query I rowsort
SELECT 97 * - - 37 + + 78 * 13
----
4603

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6416
SELECT - COUNT( 42 ) DIV - COUNT( * ) + - MAX( 9 ) + + - 36 AS col0
----
-44

skipif mysql # not compatible
query I rowsort label-6416
SELECT - COUNT ( 42 ) / - COUNT ( * ) + - MAX ( 9 ) + + - 36 AS col0
----
-44

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6417
SELECT - 2 + - CASE + + CAST( COUNT( * ) AS SIGNED ) WHEN - 68 THEN + 33 + 2 END - 63 - + + 35 * + - ( - 91 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6417
SELECT - 2 + - CASE + + CAST ( COUNT ( * ) AS INTEGER ) WHEN - 68 THEN + 33 + 2 END - 63 - + + 35 * + - ( - 91 ) AS col0
----
NULL

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

skipif mysql # not compatible
query I rowsort label-6418
SELECT ALL + 25 / - COUNT ( * ) AS col2
----
-25

query I rowsort
SELECT ALL 72 * + 9 AS col0
----
648

query I rowsort
SELECT DISTINCT + 7 * + - 94 col1
----
-658

query II rowsort
SELECT ALL + 90 AS col0, + 82 + - 4 + ( + ( - + 81 ) )
----
90
-3

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6423
SELECT DISTINCT + 83 * + + 8 * - 94 * + 45 * - CAST( + + 57 AS SIGNED ) + - 62 + + + COUNT( - - 51 ) AS col2
----
160096979

skipif mysql # not compatible
query I rowsort label-6423
SELECT DISTINCT + 83 * + + 8 * - 94 * + 45 * - CAST ( + + 57 AS INTEGER ) + - 62 + + + COUNT ( - - 51 ) AS col2
----
160096979

query I rowsort
SELECT - + 69 * - 99 AS col1
----
6831

query I rowsort
SELECT ALL + 4 * + 22 + - 86
----
2

query I rowsort
SELECT + 27 * + 27
----
729

query I rowsort
SELECT ALL + ( 57 ) * + - 91 + - - 54 + + 96 AS col0
----
-5037

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6429
SELECT 84 AS col0, COUNT( * ) * - + CASE 24 WHEN - - 48 - + 68 THEN 34 * SUM( DISTINCT + COALESCE ( - 57, + - 29 * + + 86 ) ) + - COUNT( * ) + 43 * 20 ELSE NULL END + + 23 * 53 + - + 51 + - CASE - - 80 WHEN SUM( DISTINCT + CAST( 73 AS SIGNED ) ) + - 96 THEN 79 + + 23 / - + 57 ELSE + 14 + - CASE COUNT( * ) WHEN 52 THEN + 65 + COUNT( * ) WHEN - ( - 71 ) * - - MIN( - - 22 ) THEN - SUM( 66 ) - ( 0 - + 12 ) ELSE NULL END * + 15 END AS col1
----
84
NULL

skipif mysql # not compatible
query II rowsort label-6429
SELECT 84 AS col0, COUNT ( * ) * - + CASE 24 WHEN - - 48 - + 68 THEN 34 * SUM ( DISTINCT + COALESCE ( - 57, + - 29 * + + 86 ) ) + - COUNT ( * ) + 43 * 20 ELSE NULL END + + 23 * 53 + - + 51 + - CASE - - 80 WHEN SUM ( DISTINCT + CAST ( 73 AS INTEGER ) ) + - 96 THEN 79 + + 23 / - + 57 ELSE + 14 + - CASE COUNT ( * ) WHEN 52 THEN + 65 + COUNT ( * ) WHEN - ( - 71 ) * - - MIN ( - - 22 ) THEN - SUM ( 66 ) - ( 0 - + 12 ) ELSE NULL END * + 15 END AS col1
----
84
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-6430
SELECT + + 82 * - ( - + 21 ) + - 94 + + CAST( NULL AS DECIMAL ) / + 14 + + - 99 + + COUNT( * ) * + COUNT( * ) + + 94 / CAST( + 77 AS SIGNED ) * 94 AS col1, + 78
----
NULL
78

skipif mysql # not compatible
query II rowsort label-6430
SELECT + + 82 * - ( - + 21 ) + - 94 + + CAST ( NULL AS REAL ) / + 14 + + - 99 + + COUNT ( * ) * + COUNT ( * ) + + 94 / CAST ( + 77 AS INTEGER ) * 94 AS col1, + 78
----
NULL
78

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

query I rowsort
SELECT - 86 + + + 6 * + - 82 col1
----
-578

query I rowsort
SELECT + + 76 * - 96 * + NULLIF ( 90, + 65 ) col1
----
-656640

query I rowsort
SELECT - ( + 1 ) + - - 35 AS col2
----
34

onlyif mysql # aggregate syntax: 
query II rowsort label-6435
SELECT - COUNT( * ) AS col2, - 17 + COALESCE ( + 59, 96 )
----
-1
42

skipif mysql # not compatible
query II rowsort label-6435
SELECT - COUNT ( * ) AS col2, - 17 + COALESCE ( + 59, 96 )
----
-1
42

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6436
SELECT + 51, + CAST( NULL AS SIGNED ) + + 52 - - 87 AS col0
----
51
NULL

skipif mysql # not compatible
query II rowsort label-6436
SELECT + 51, + CAST ( NULL AS INTEGER ) + + 52 - - 87 AS col0
----
51
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6437
SELECT ALL - COUNT( * ) / CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-6437
SELECT ALL - COUNT ( * ) / CAST ( NULL AS REAL )
----
NULL

query I rowsort
SELECT + 68 * - 99
----
-6732

onlyif mysql # DIV for integer division: 
query I rowsort label-6439
SELECT ALL 74 DIV 55 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-6439
SELECT ALL 74 / 55 AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6440
SELECT DISTINCT - ( + - 8 ) * + SUM( - 4 ) AS col0
----
-32

skipif mysql # not compatible
query I rowsort label-6440
SELECT DISTINCT - ( + - 8 ) * + SUM ( - 4 ) AS col0
----
-32

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

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

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

skipif mysql # not compatible
query I rowsort label-6442
SELECT DISTINCT MAX ( DISTINCT - 59 )
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-6443
SELECT ALL + 38 * + - MAX( + 18 ) * + 23 col2
----
-15732

skipif mysql # not compatible
query I rowsort label-6443
SELECT ALL + 38 * + - MAX ( + 18 ) * + 23 col2
----
-15732

query I rowsort
SELECT + ( 55 ) * + 83 AS col2
----
4565

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

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

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

query I rowsort
SELECT - 78 * - 55 AS col0
----
4290

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

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

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

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

query I rowsort
SELECT - 31 * + 62 AS col0
----
-1922

onlyif mysql # aggregate syntax: 
query II rowsort label-6451
SELECT - 19 + - 39 + + COUNT( ALL 48 ) col0, + 92
----
-57
92

skipif mysql # not compatible
query II rowsort label-6451
SELECT - 19 + - 39 + + COUNT ( ALL 48 ) col0, + 92
----
-57
92

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6452
SELECT DISTINCT - CAST( - 62 AS SIGNED ) DIV - 59
----
-1

skipif mysql # not compatible
query I rowsort label-6452
SELECT DISTINCT - CAST ( - 62 AS INTEGER ) / - 59
----
-1

query II rowsort
SELECT + 1 * + 72, 16 * + 48 AS col0
----
72
768

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

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

query I rowsort
SELECT - + 93 * - + 44 - + 43
----
4049

query I rowsort
SELECT - 11 + + + 20
----
9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6457
SELECT DISTINCT - CAST( NULL AS SIGNED ) * + MIN( ALL + + 9 ) + 54 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6457
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * + MIN ( ALL + + 9 ) + 54 AS col2
----
NULL

query I rowsort
SELECT DISTINCT + - CASE 12 WHEN - 1 * 88 THEN + 3 ELSE NULL END AS col1
----
NULL

query I rowsort
SELECT + ( - + NULLIF ( 67, - - 62 ) )
----
-67

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query I rowsort label-6460
SELECT DISTINCT + ( + COALESCE ( + + 29, + COUNT( * ), COUNT( * ) * CASE + 89 WHEN 79 + + - 91 THEN NULL WHEN + COUNT( * ) * + 81 + CAST( NULL AS DECIMAL ) + - CASE - + 7 WHEN 73 + - - AVG ( DISTINCT - 7 ) * - 40 THEN NULL WHEN + 72 * + COUNT( 83 ) + 69 + 79 THEN 6 END + + ( - 70 ) * + - 85 + + CASE + AVG ( DISTINCT + 73 ) WHEN + 14 THEN 70 * + ( - - 79 ) - 67 WHEN + - 74 THEN + 77 ELSE NULL END - + + 36 THEN + + ( + 54 ) WHEN + COUNT( * ) DIV 2 THEN NULL ELSE 26 * + 65 END DIV ( - 85 + + 71 ) - + 88 ) ) AS col2
----
29

skipif mysql # not compatible
query I rowsort label-6460
SELECT DISTINCT + ( + COALESCE ( + + 29, + COUNT ( * ), COUNT ( * ) * CASE + 89 WHEN 79 + + - 91 THEN NULL WHEN + COUNT ( * ) * + 81 + CAST ( NULL AS REAL ) + - CASE - + 7 WHEN 73 + - - AVG ( DISTINCT - 7 ) * - 40 THEN NULL WHEN + 72 * + COUNT ( 83 ) + 69 + 79 THEN 6 END + + ( - 70 ) * + - 85 + + CASE + AVG ( DISTINCT + 73 ) WHEN + 14 THEN 70 * + ( - - 79 ) - 67 WHEN + - 74 THEN + 77 ELSE NULL END - + + 36 THEN + + ( + 54 ) WHEN + COUNT ( * ) / 2 THEN NULL ELSE 26 * + 65 END / ( - 85 + + 71 ) - + 88 ) ) AS col2
----
29

onlyif mysql # DIV for integer division: 
query I rowsort label-6461
SELECT + - 16 + + 30 DIV + 29 AS col0
----
-15

skipif mysql # not compatible
query I rowsort label-6461
SELECT + - 16 + + 30 / + 29 AS col0
----
-15

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6463
SELECT 1 + + SUM( ( - 88 ) )
----
-87

skipif mysql # not compatible
query I rowsort label-6463
SELECT 1 + + SUM ( ( - 88 ) )
----
-87

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-6464
SELECT ALL + 75 DIV 45 AS col2, CAST( 37 AS SIGNED ) * - - 65 * - COUNT( * ) * + - 11 + - 27 DIV + 85 AS col0
----
1
26455

skipif mysql # not compatible
query II rowsort label-6464
SELECT ALL + 75 / 45 AS col2, CAST ( 37 AS INTEGER ) * - - 65 * - COUNT ( * ) * + - 11 + - 27 / + 85 AS col0
----
1
26455

onlyif mysql # aggregate syntax: 
query I rowsort label-6465
SELECT MAX( + 73 ) + 75
----
148

skipif mysql # not compatible
query I rowsort label-6465
SELECT MAX ( + 73 ) + 75
----
148

query I rowsort
SELECT 84 * 47 AS col1
----
3948

query I rowsort
SELECT 90 + + 2 + - 90
----
2

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6469
SELECT CAST( NULL AS SIGNED ) + - 85 + 36 + NULLIF ( + ( + 17 ), 57 + + 49 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6469
SELECT CAST ( NULL AS INTEGER ) + - 85 + 36 + NULLIF ( + ( + 17 ), 57 + + 49 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6470
SELECT DISTINCT 19 + + + COUNT( * ) * - 9 AS col0
----
10

skipif mysql # not compatible
query I rowsort label-6470
SELECT DISTINCT 19 + + + COUNT ( * ) * - 9 AS col0
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-6471
SELECT ALL - NULLIF ( 21, + - SUM( NULLIF ( + 63, + 41 ) ) * - 89 + + + COUNT( * ) / - 41 * - 43 + - + 34 / + 24 + + - 68 * - 53 ) + - 55 + - COUNT( * )
----
-77

skipif mysql # not compatible
query I rowsort label-6471
SELECT ALL - NULLIF ( 21, + - SUM ( NULLIF ( + 63, + 41 ) ) * - 89 + + + COUNT ( * ) / - 41 * - 43 + - + 34 / + 24 + + - 68 * - 53 ) + - 55 + - COUNT ( * )
----
-77

query I rowsort
SELECT 35 + 55 * + + 95 col0
----
5260

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

skipif mysql # not compatible
query I rowsort label-6473
SELECT CAST ( NULL AS INTEGER ) * 79 AS col2
----
NULL

query I rowsort
SELECT - 21 * - 8 + + 35 col1
----
203

onlyif mysql # aggregate syntax: 
query I rowsort label-6475
SELECT DISTINCT + SUM( ALL - NULLIF ( + 28, 4 ) ) + + 50 AS col0
----
22

skipif mysql # not compatible
query I rowsort label-6475
SELECT DISTINCT + SUM ( ALL - NULLIF ( + 28, 4 ) ) + + 50 AS col0
----
22

query I rowsort
SELECT ALL - 35 + 61 AS col1
----
26

query I rowsort
SELECT 63 + 54 AS col1
----
117

onlyif mysql # aggregate syntax: 
query I rowsort label-6478
SELECT COUNT( * ) + - COALESCE ( 10, + ( + - 55 ), + 20 * 9 + - 69 + - + 52 * 7, COALESCE ( - 33, 61 ) ) + NULLIF ( + + 91, - 22 ) AS col0
----
82

skipif mysql # not compatible
query I rowsort label-6478
SELECT COUNT ( * ) + - COALESCE ( 10, + ( + - 55 ), + 20 * 9 + - 69 + - + 52 * 7, COALESCE ( - 33, 61 ) ) + NULLIF ( + + 91, - 22 ) AS col0
----
82

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

skipif mysql # not compatible
query I rowsort label-6479
SELECT DISTINCT - MIN ( DISTINCT 22 )
----
-22

query I rowsort
SELECT 52 * - 83
----
-4316

query I rowsort
SELECT - 45 + 59 AS col0
----
14

query I rowsort
SELECT 32 * - - 28
----
896

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6483
SELECT DISTINCT - - 12 DIV - COALESCE ( + SUM( - 57 ), 64 * 69 * 1 * 45 ), 3 DIV 86 AS col1
----
0
0

skipif mysql # not compatible
query II rowsort label-6483
SELECT DISTINCT - - 12 / - COALESCE ( + SUM ( - 57 ), 64 * 69 * 1 * 45 ), 3 / 86 AS col1
----
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-6484
SELECT + 12 DIV + ( 15 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-6484
SELECT + 12 / + ( 15 ) AS col1
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-6485
SELECT + COUNT( * ) + - MIN( DISTINCT - 21 ) col2, 84 AS col0
----
22
84

skipif mysql # not compatible
query II rowsort label-6485
SELECT + COUNT ( * ) + - MIN ( DISTINCT - 21 ) col2, 84 AS col0
----
22
84

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

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

query I rowsort
SELECT DISTINCT + + 7 * - 92 AS col2
----
-644

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6488
SELECT ALL COUNT( - 94 ) DIV 24 * + - NULLIF ( COUNT( * ), - - 34 ) + 20
----
20

skipif mysql # not compatible
query I rowsort label-6488
SELECT ALL COUNT ( - 94 ) / 24 * + - NULLIF ( COUNT ( * ), - - 34 ) + 20
----
20

query I rowsort
SELECT 49 - + 77
----
-28

query II rowsort
SELECT 12, 17 * - 25 AS col0
----
12
-425

query I rowsort
SELECT 74 * 1 AS col2
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-6492
SELECT COUNT( * ) + + - 58 + - - 67
----
10

skipif mysql # not compatible
query I rowsort label-6492
SELECT COUNT ( * ) + + - 58 + - - 67
----
10

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-6493
SELECT ALL COUNT( * ) + - COUNT( * ) + + 86 * + 16 * + - ( 4 ) AS col2, CAST( NULL AS DECIMAL ) AS col1
----
-5504
NULL

skipif mysql # not compatible
query II rowsort label-6493
SELECT ALL COUNT ( * ) + - COUNT ( * ) + + 86 * + 16 * + - ( 4 ) AS col2, CAST ( NULL AS REAL ) AS col1
----
-5504
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6494
SELECT - 12 col1, - COALESCE ( - 1, - 55 ) DIV - MAX( ( + 37 ) ) + - 75 AS col1
----
-12
-75

skipif mysql # not compatible
query II rowsort label-6494
SELECT - 12 col1, - COALESCE ( - 1, - 55 ) / - MAX ( ( + 37 ) ) + - 75 AS col1
----
-12
-75

query I rowsort
SELECT 29 * - + 73
----
-2117

onlyif mysql # aggregate syntax: DIV for integer division: 
query III rowsort label-6496
SELECT 48 AS col0, - COUNT( * ) - 40 * SUM( + 92 ) DIV + - 8 + + 55 col1, 11 AS col0
----
48
514
11

skipif mysql # not compatible
query III rowsort label-6496
SELECT 48 AS col0, - COUNT ( * ) - 40 * SUM ( + 92 ) / + - 8 + + 55 col1, 11 AS col0
----
48
514
11

query I rowsort
SELECT 19 * - 58 * + 19
----
-20938

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6499
SELECT DISTINCT 78 * - 85 AS col2, COUNT( * ) * + + 20 AS col1
----
-6630
20

skipif mysql # not compatible
query II rowsort label-6499
SELECT DISTINCT 78 * - 85 AS col2, COUNT ( * ) * + + 20 AS col1
----
-6630
20

onlyif mysql # aggregate syntax: 
query I rowsort label-6500
SELECT - MAX( 19 ) AS col1
----
-19

skipif mysql # not compatible
query I rowsort label-6500
SELECT - MAX ( 19 ) AS col1
----
-19

query I rowsort
SELECT 15 * 99
----
1485

query II rowsort
SELECT - 90, + 15 * - 34 AS col2
----
-90
-510

query II rowsort
SELECT 91 AS col1, + 2 + + 74 * 88
----
91
6514

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

skipif mysql # not compatible
query I rowsort label-6504
SELECT ALL CAST ( NULL AS INTEGER ) + - + 61 + - + 76
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6506
SELECT ALL - 55 * - COUNT( * ) - - 44 + - 53
----
46

skipif mysql # not compatible
query I rowsort label-6506
SELECT ALL - 55 * - COUNT ( * ) - - 44 + - 53
----
46

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6507
SELECT - 2 * + COALESCE ( 1, + 9 DIV - 57 - - MIN( - - 98 ) ) - - SUM( - 13 ) AS col0
----
-15

skipif mysql # not compatible
query I rowsort label-6507
SELECT - 2 * + COALESCE ( 1, + 9 / - 57 - - MIN ( - - 98 ) ) - - SUM ( - 13 ) AS col0
----
-15

onlyif mysql # DIV for integer division: 
query I rowsort label-6508
SELECT 29 DIV - 15 + 99 * 92 + 73 + + 40
----
9220

skipif mysql # not compatible
query I rowsort label-6508
SELECT 29 / - 15 + 99 * 92 + 73 + + 40
----
9220

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6509
SELECT 24 * + 72 - 17 * - 99 * COALESCE ( CASE - - 44 WHEN - - CASE 36 WHEN + ( 99 ) + + CAST( NULL AS SIGNED ) * + CAST( NULL AS SIGNED ) * - 1 * - 91 THEN + + 78 WHEN + COUNT( * ) THEN - 84 END THEN NULL WHEN + + ( + - 6 ) THEN 7 + - COALESCE ( COUNT( * ), - MAX( DISTINCT - 19 ), - - COALESCE ( + 96, + 89 ) + + 49 ) * - + 44 * NULLIF ( 2, + - 8 + + + 79 ) WHEN - COUNT( * ) + + CAST( + AVG ( DISTINCT + 46 ) AS SIGNED ) + + - COUNT( * ) THEN NULL ELSE NULL END, - 99 ) - - + COUNT( * )
----
-164888

skipif mysql # not compatible
query I rowsort label-6509
SELECT 24 * + 72 - 17 * - 99 * COALESCE ( CASE - - 44 WHEN - - CASE 36 WHEN + ( 99 ) + + CAST ( NULL AS INTEGER ) * + CAST ( NULL AS INTEGER ) * - 1 * - 91 THEN + + 78 WHEN + COUNT ( * ) THEN - 84 END THEN NULL WHEN + + ( + - 6 ) THEN 7 + - COALESCE ( COUNT ( * ), - MAX ( DISTINCT - 19 ), - - COALESCE ( + 96, + 89 ) + + 49 ) * - + 44 * NULLIF ( 2, + - 8 + + + 79 ) WHEN - COUNT ( * ) + + CAST ( + AVG ( DISTINCT + 46 ) AS INTEGER ) + + - COUNT ( * ) THEN NULL ELSE NULL END, - 99 ) - - + COUNT ( * )
----
-164888

onlyif mysql # aggregate syntax: 
query III rowsort label-6510
SELECT + 34 AS col2, + 88 * + - COUNT( DISTINCT + 2 ) AS col2, + + 76
----
34
-88
76

skipif mysql # not compatible
query III rowsort label-6510
SELECT + 34 AS col2, + 88 * + - COUNT ( DISTINCT + 2 ) AS col2, + + 76
----
34
-88
76

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6511
SELECT - CASE CAST( 37 AS SIGNED ) WHEN + - CASE - + 30 WHEN 38 + - 42 * 69 THEN NULL WHEN - 13 * + - 1 - - 99 + - CASE + 78 WHEN 95 + 74 THEN - 91 * - 71 WHEN ( + ( + 60 ) ) * + COUNT( * ) * 79 THEN 14 WHEN + 51 THEN NULL ELSE NULL END + - 77 * - 99 * 51 THEN + - 48 ELSE + + 83 * + COALESCE ( + + NULLIF ( + 35, - 65 ), - 72, + COALESCE ( - - 78, + 11 ) ) + CAST( 0 AS DECIMAL ) * + 54 * 34 END THEN SUM( 43 ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6511
SELECT - CASE CAST ( 37 AS INTEGER ) WHEN + - CASE - + 30 WHEN 38 + - 42 * 69 THEN NULL WHEN - 13 * + - 1 - - 99 + - CASE + 78 WHEN 95 + 74 THEN - 91 * - 71 WHEN ( + ( + 60 ) ) * + COUNT ( * ) * 79 THEN 14 WHEN + 51 THEN NULL ELSE NULL END + - 77 * - 99 * 51 THEN + - 48 ELSE + + 83 * + COALESCE ( + + NULLIF ( + 35, - 65 ), - 72, + COALESCE ( - - 78, + 11 ) ) + CAST ( 0 AS REAL ) * + 54 * 34 END THEN SUM ( 43 ) END AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6512
SELECT 80 * + CAST( NULL AS SIGNED ) + AVG ( + + 75 ) + - + ( - 86 ) AS col2, 31 AS col2
----
NULL
31

skipif mysql # not compatible
query II rowsort label-6512
SELECT 80 * + CAST ( NULL AS INTEGER ) + AVG ( + + 75 ) + - + ( - 86 ) AS col2, 31 AS col2
----
NULL
31

query I rowsort
SELECT ALL - 69 * 81 * 95 col2
----
-530955

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6515
SELECT + + 55 * - COUNT( * ) + - 33 AS col1
----
-88

skipif mysql # not compatible
query I rowsort label-6515
SELECT + + 55 * - COUNT ( * ) + - 33 AS col1
----
-88

onlyif mysql # aggregate syntax: 
query II rowsort label-6516
SELECT ALL + - 35 AS col1, COUNT( * ) + - - 94
----
-35
95

skipif mysql # not compatible
query II rowsort label-6516
SELECT ALL + - 35 AS col1, COUNT ( * ) + - - 94
----
-35
95

onlyif mysql # aggregate syntax: 
query II rowsort label-6517
SELECT + - 23, COALESCE ( - 51, - ( - 53 ) + + + 28, - + 68 * - 92 * - - COALESCE ( - SUM( DISTINCT - - 8 ), - 2 ) ) AS col1
----
-23
-51

skipif mysql # not compatible
query II rowsort label-6517
SELECT + - 23, COALESCE ( - 51, - ( - 53 ) + + + 28, - + 68 * - 92 * - - COALESCE ( - SUM ( DISTINCT - - 8 ), - 2 ) ) AS col1
----
-23
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-6518
SELECT - COALESCE ( - + 42, - ( + + COUNT( * ) ) * 86 + - + CASE + - 54 WHEN SUM( DISTINCT - 66 ) * 84 * - - COUNT( * ) THEN NULL WHEN - + 72 * + 61 + + + ( + COALESCE ( + + 84, + 22 / - + 50 / - 25 * 66 + + + 54 - + 34 * + 10 / - 83 ) ) THEN - MAX( - COALESCE ( - 52, - 79 ) ) ELSE NULL END, 93 ) * - 22 * + - 76 * + 28 col2
----
1966272

skipif mysql # not compatible
query I rowsort label-6518
SELECT - COALESCE ( - + 42, - ( + + COUNT ( * ) ) * 86 + - + CASE + - 54 WHEN SUM ( DISTINCT - 66 ) * 84 * - - COUNT ( * ) THEN NULL WHEN - + 72 * + 61 + + + ( + COALESCE ( + + 84, + 22 / - + 50 / - 25 * 66 + + + 54 - + 34 * + 10 / - 83 ) ) THEN - MAX ( - COALESCE ( - 52, - 79 ) ) ELSE NULL END, 93 ) * - 22 * + - 76 * + 28 col2
----
1966272

query I rowsort
SELECT - + 39 + - - 33 AS col0
----
-6

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6522
SELECT - - NULLIF ( + NULLIF ( - - COUNT( * ), + ( + - 6 ) / + SUM( - 6 ) ), - - COUNT( * ) ) * - 17 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6522
SELECT - - NULLIF ( + NULLIF ( - - COUNT ( * ), + ( + - 6 ) / + SUM ( - 6 ) ), - - COUNT ( * ) ) * - 17 AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6523
SELECT DISTINCT - 25 + - - ( + COUNT( 28 ) ) - + + AVG ( DISTINCT + CAST( NULL AS SIGNED ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6523
SELECT DISTINCT - 25 + - - ( + COUNT ( 28 ) ) - + + AVG ( DISTINCT + CAST ( NULL AS INTEGER ) ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6524
SELECT DISTINCT COALESCE ( 51, + 12, - ( + 34 ) ), - COUNT( * ) AS col0
----
51
-1

skipif mysql # not compatible
query II rowsort label-6524
SELECT DISTINCT COALESCE ( 51, + 12, - ( + 34 ) ), - COUNT ( * ) AS col0
----
51
-1

query I rowsort
SELECT DISTINCT 50 + 13 AS col2
----
63

query I rowsort
SELECT 79 * - 73 + + + 70 * - 72
----
-10807

query II rowsort
SELECT ALL COALESCE ( - 60, - - 89 ), 92 AS col2
----
-60
92

query III rowsort
SELECT ALL + 80 * + 88, - 42 * + 70 + - 40 AS col1, 48 * - 35 AS col1
----
7040
-2980
-1680

onlyif mysql # aggregate syntax: 
query I rowsort label-6529
SELECT ALL ( - 93 ) + - CASE + 65 WHEN 44 / + - ( - 30 ) THEN + 81 WHEN - SUM( - 34 ) * - ( 39 ) * 56 THEN - 25 WHEN - 56 + + 93 THEN + + 54 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-6529
SELECT ALL ( - 93 ) + - CASE + 65 WHEN 44 / + - ( - 30 ) THEN + 81 WHEN - SUM ( - 34 ) * - ( 39 ) * 56 THEN - 25 WHEN - 56 + + 93 THEN + + 54 ELSE NULL END
----
NULL

query I rowsort
SELECT ALL - 7 * ( + 90 )
----
-630

query I rowsort
SELECT - 43 + ( 17 ) * + + 91
----
1504

query II rowsort
SELECT - 49 - + 61, 90 + - 18 AS col0
----
-110
72

onlyif mysql # aggregate syntax: 
query I rowsort label-6533
SELECT - COUNT( * ) * - - 2 * - - 83
----
-166

skipif mysql # not compatible
query I rowsort label-6533
SELECT - COUNT ( * ) * - - 2 * - - 83
----
-166

query I rowsort
SELECT - 20 + 79
----
59

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

skipif mysql # not compatible
query I rowsort label-6535
SELECT + COUNT ( * ) / + - 85 * 16
----
0

query I rowsort
SELECT ALL + 35 + 61 * - + 99 col2
----
-6004

query II rowsort
SELECT - 13 + 54 AS col2, + 97 * + 58 AS col1
----
41
5626

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6538
SELECT DISTINCT COALESCE ( NULLIF ( + 60, - COUNT( 18 ) DIV 54 * - 35 ), CAST( - + 81 AS SIGNED ) DIV - 62 + 5 * + 49, + + COUNT( * ) )
----
60

skipif mysql # not compatible
query I rowsort label-6538
SELECT DISTINCT COALESCE ( NULLIF ( + 60, - COUNT ( 18 ) / 54 * - 35 ), CAST ( - + 81 AS INTEGER ) / - 62 + 5 * + 49, + + COUNT ( * ) )
----
60

query I rowsort
SELECT - 66 + 25 AS col1
----
-41

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

skipif mysql # not compatible
query I rowsort label-6540
SELECT ALL - ( + CAST ( + + 10 AS INTEGER ) ) - - 84 AS col0
----
74

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

query I rowsort
SELECT + 42 + + 25 + + 52 AS col2
----
119

query I rowsort
SELECT DISTINCT 22 * + + 78 + - - 36 * - 65 * 64 AS col2
----
-148044

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6544
SELECT + 91 * + - 35 * - COALESCE ( 6, 9 * - 55 * - 96 + - + 24 ) / 2 + - CASE + ( - 40 ) WHEN - + ( + 67 ) THEN + 64 * + 58 * + 3 + + COUNT( * ) + + COALESCE ( + - 46, 84 ) WHEN - 35 THEN + MIN( ALL 53 ) ELSE NULL END + + CAST( + + 87 AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6544
SELECT + 91 * + - 35 * - COALESCE ( 6, 9 * - 55 * - 96 + - + 24 ) / 2 + - CASE + ( - 40 ) WHEN - + ( + 67 ) THEN + 64 * + 58 * + 3 + + COUNT ( * ) + + COALESCE ( + - 46, 84 ) WHEN - 35 THEN + MIN ( ALL 53 ) ELSE NULL END + + CAST ( + + 87 AS INTEGER )
----
NULL

query I rowsort
SELECT + + 53 + + 11 + + 62
----
126

query I rowsort
SELECT DISTINCT 79 * 56
----
4424

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6547
SELECT + 78 DIV 19 * - MIN( DISTINCT 88 ) + + 35 AS col0
----
-317

skipif mysql # not compatible
query I rowsort label-6547
SELECT + 78 / 19 * - MIN ( DISTINCT 88 ) + + 35 AS col0
----
-317

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6548
SELECT + 36 / + CAST( NULL AS SIGNED ) / 90 + + 75 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6548
SELECT + 36 / + CAST ( NULL AS INTEGER ) / 90 + + 75 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6549
SELECT DISTINCT + MAX( ALL + ( - 85 ) ) * - 70
----
5950

skipif mysql # not compatible
query I rowsort label-6549
SELECT DISTINCT + MAX ( ALL + ( - 85 ) ) * - 70
----
5950

onlyif mysql # aggregate syntax: 
query I rowsort label-6550
SELECT ALL + - NULLIF ( - + 99, SUM( ALL 72 ) * - 61 / - 10 )
----
99

skipif mysql # not compatible
query I rowsort label-6550
SELECT ALL + - NULLIF ( - + 99, SUM ( ALL 72 ) * - 61 / - 10 )
----
99

onlyif mysql # DIV for integer division: 
query I rowsort label-6551
SELECT + 94 * 46 DIV + + 15 - NULLIF ( - - 73, + 44 ) + 60 * - 78
----
-4465

skipif mysql # not compatible
query I rowsort label-6551
SELECT + 94 * 46 / + + 15 - NULLIF ( - - 73, + 44 ) + 60 * - 78
----
-4465

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6552
SELECT + CASE - 89 WHEN + COALESCE ( + 33, - 85 * - 98 * 31 ) THEN NULL WHEN + + CAST( + 7 AS SIGNED ) THEN 11 ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6552
SELECT + CASE - 89 WHEN + COALESCE ( + 33, - 85 * - 98 * 31 ) THEN NULL WHEN + + CAST ( + 7 AS INTEGER ) THEN 11 ELSE NULL END AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6553
SELECT ALL CAST( NULL AS SIGNED ) * + AVG ( - 48 ) - + - 41 + + - 80 + 88
----
NULL

skipif mysql # not compatible
query I rowsort label-6553
SELECT ALL CAST ( NULL AS INTEGER ) * + AVG ( - 48 ) - + - 41 + + - 80 + 88
----
NULL

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

skipif mysql # not compatible
query I rowsort label-6554
SELECT + - 65 / + CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6555
SELECT DISTINCT 52 * - 4 + + 84 + + + 95 + MAX( ALL + 29 )
----
0

skipif mysql # not compatible
query I rowsort label-6555
SELECT DISTINCT 52 * - 4 + + 84 + + + 95 + MAX ( ALL + 29 )
----
0

query I rowsort
SELECT - 52 * + + ( - NULLIF ( 64, 6 + 6 ) )
----
3328

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6557
SELECT 2 * - 68 + - + SUM( ALL + 80 ) - - - 19 + ( + 52 ) DIV + CAST( + 63 AS SIGNED ) * + - ( - CAST( 87 AS SIGNED ) ) + - COUNT( * )
----
-236

skipif mysql # not compatible
query I rowsort label-6557
SELECT 2 * - 68 + - + SUM ( ALL + 80 ) - - - 19 + ( + 52 ) / + CAST ( + 63 AS INTEGER ) * + - ( - CAST ( 87 AS INTEGER ) ) + - COUNT ( * )
----
-236

onlyif mysql # DIV for integer division: 
query I rowsort label-6558
SELECT ALL 68 * 93 DIV - 9 AS col0
----
-702

skipif mysql # not compatible
query I rowsort label-6558
SELECT ALL 68 * 93 / - 9 AS col0
----
-702

onlyif mysql # aggregate syntax: 
query I rowsort label-6559
SELECT + 80 + - MIN( 32 )
----
48

skipif mysql # not compatible
query I rowsort label-6559
SELECT + 80 + - MIN ( 32 )
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-6560
SELECT DISTINCT COUNT( * ) * + COALESCE ( + ( + - 31 ), + + 91 )
----
-31

skipif mysql # not compatible
query I rowsort label-6560
SELECT DISTINCT COUNT ( * ) * + COALESCE ( + ( + - 31 ), + + 91 )
----
-31

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

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

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

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

query I rowsort
SELECT - 49 + - + 74
----
-123

query I rowsort
SELECT 39 * + 48 * + - 55 + + + COALESCE ( - 28, - - 76, + + 40 )
----
-102988

query II rowsort
SELECT ALL - 28 * - - 19 - 82 + 13 AS col1, 31 AS col2
----
-601
31

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6566
SELECT ALL CASE WHEN NOT + 92 IS NULL THEN 76 ELSE NULL END AS col2, + COUNT( * ) DIV - - ( - 96 ) AS col0
----
76
0

skipif mysql # not compatible
query II rowsort label-6566
SELECT ALL CASE WHEN NOT + 92 IS NULL THEN 76 ELSE NULL END AS col2, + COUNT ( * ) / - - ( - 96 ) AS col0
----
76
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6567
SELECT - COUNT( * ) + - + ( - 48 )
----
47

skipif mysql # not compatible
query I rowsort label-6567
SELECT - COUNT ( * ) + - + ( - 48 )
----
47

onlyif mysql # DIV for integer division: 
query I rowsort label-6568
SELECT - 14 DIV + NULLIF ( - 24, - - 77 + - + 47 )
----
0

skipif mysql # not compatible
query I rowsort label-6568
SELECT - 14 / + NULLIF ( - 24, - - 77 + - + 47 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6569
SELECT DISTINCT SUM( + + 59 ) col2
----
59

skipif mysql # not compatible
query I rowsort label-6569
SELECT DISTINCT SUM ( + + 59 ) col2
----
59

query II rowsort
SELECT 16 AS col2, + 4 * + - 56 AS col2
----
16
-224

query I rowsort
SELECT ALL + 4 - + - 62 + + - 18 * - - 11
----
-132

onlyif mysql # aggregate syntax: 
query II rowsort label-6572
SELECT - 60 * - COUNT( * ) * + 28 AS col0, 98 AS col2
----
1680
98

skipif mysql # not compatible
query II rowsort label-6572
SELECT - 60 * - COUNT ( * ) * + 28 AS col0, 98 AS col2
----
1680
98

onlyif mysql # DIV for integer division: 
query I rowsort label-6573
SELECT - ( + + 46 ) * - 27 * + ( + 71 ) * + 14 + + - 27 - + 74 * - + 84 DIV - 83 + 53 + 77 + 24 - + 56
----
1234545

skipif mysql # not compatible
query I rowsort label-6573
SELECT - ( + + 46 ) * - 27 * + ( + 71 ) * + 14 + + - 27 - + 74 * - + 84 / - 83 + 53 + 77 + 24 - + 56
----
1234545

query I rowsort
SELECT ALL + 13 * - + 81
----
-1053

query I rowsort
SELECT DISTINCT + 59 * + 11
----
649

query I rowsort
SELECT - - 24 * - 46
----
-1104

query I rowsort
SELECT 38 * - 25
----
-950

query I rowsort
SELECT 84 - + 71
----
13

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6580
SELECT DISTINCT 13 + + + CASE - COUNT( * ) WHEN 29 THEN NULL ELSE 91 END
----
104

skipif mysql # not compatible
query I rowsort label-6580
SELECT DISTINCT 13 + + + CASE - COUNT ( * ) WHEN 29 THEN NULL ELSE 91 END
----
104

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

skipif mysql # not compatible
query I rowsort label-6581
SELECT DISTINCT - + COUNT ( * ) + + 87 - + 94 AS col1
----
-8

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6583
SELECT ALL - - 63 + + + 9 + + ( - + COUNT( * ) ) + + 9 + - 52 AS col0
----
28

skipif mysql # not compatible
query I rowsort label-6583
SELECT ALL - - 63 + + + 9 + + ( - + COUNT ( * ) ) + + 9 + - 52 AS col0
----
28

query I rowsort
SELECT + 58 + - 20
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-6585
SELECT ALL MAX( DISTINCT + 61 ) + - 19 * ( - 6 ) + - 63
----
112

skipif mysql # not compatible
query I rowsort label-6585
SELECT ALL MAX ( DISTINCT + 61 ) + - 19 * ( - 6 ) + - 63
----
112

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

skipif mysql # not compatible
query I rowsort label-6586
SELECT DISTINCT - NULLIF ( - COUNT ( * ), + 68 )
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6587
SELECT ALL COUNT( * ) + - CASE + 91 WHEN 60 * - + 94 THEN + COUNT( 97 ) * - + 23 * + CAST( - + 8 AS SIGNED ) END + CAST( NULL AS SIGNED ) * - CASE 7 WHEN 71 THEN + + CAST( - + COUNT( * ) AS SIGNED ) WHEN 82 THEN NULL END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6587
SELECT ALL COUNT ( * ) + - CASE + 91 WHEN 60 * - + 94 THEN + COUNT ( 97 ) * - + 23 * + CAST ( - + 8 AS INTEGER ) END + CAST ( NULL AS INTEGER ) * - CASE 7 WHEN 71 THEN + + CAST ( - + COUNT ( * ) AS INTEGER ) WHEN 82 THEN NULL END col1
----
NULL

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

query I rowsort
SELECT 29 * - 14 * + + 72 AS col1
----
-29232

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6590
SELECT ALL 91 * NULLIF ( - COALESCE ( 24, CAST( NULL AS SIGNED ), - 25 ), - ( + 10 ) + + + 21 ) col0
----
-2184

skipif mysql # not compatible
query I rowsort label-6590
SELECT ALL 91 * NULLIF ( - COALESCE ( 24, CAST ( NULL AS INTEGER ), - 25 ), - ( + 10 ) + + + 21 ) col0
----
-2184

onlyif mysql # aggregate syntax: 
query II rowsort label-6591
SELECT 18 * + 13 AS col0, - 30 * - 32 * - COUNT( * ) AS col2
----
234
-960

skipif mysql # not compatible
query II rowsort label-6591
SELECT 18 * + 13 AS col0, - 30 * - 32 * - COUNT ( * ) AS col2
----
234
-960

onlyif mysql # aggregate syntax: 
query I rowsort label-6592
SELECT COALESCE ( + 75, - MAX( ALL ( + 19 ) ) ) * - 16 * + 72 * + + NULLIF ( 34, ( - - 91 ) * 19 * - - 49 )
----
-2937600

skipif mysql # not compatible
query I rowsort label-6592
SELECT COALESCE ( + 75, - MAX ( ALL ( + 19 ) ) ) * - 16 * + 72 * + + NULLIF ( 34, ( - - 91 ) * 19 * - - 49 )
----
-2937600

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6593
SELECT ALL CAST( + 12 AS SIGNED ) * - NULLIF ( - + 20, + MIN( ALL 80 ) )
----
240

skipif mysql # not compatible
query I rowsort label-6593
SELECT ALL CAST ( + 12 AS INTEGER ) * - NULLIF ( - + 20, + MIN ( ALL 80 ) )
----
240

query I rowsort
SELECT DISTINCT ( - 19 ) * - 88 AS col0
----
1672

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6595
SELECT ALL CAST( NULL AS SIGNED ) * - AVG ( + - 97 ) / + 45
----
NULL

skipif mysql # not compatible
query I rowsort label-6595
SELECT ALL CAST ( NULL AS INTEGER ) * - AVG ( + - 97 ) / + 45
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6596
SELECT 72 * + + 35 * + ( + 21 ) AS col0, - 45 * + COUNT( * ) AS col2
----
52920
-45

skipif mysql # not compatible
query II rowsort label-6596
SELECT 72 * + + 35 * + ( + 21 ) AS col0, - 45 * + COUNT ( * ) AS col2
----
52920
-45

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6597
SELECT CAST( NULL AS SIGNED ) + - 96 + + 38
----
NULL

skipif mysql # not compatible
query I rowsort label-6597
SELECT CAST ( NULL AS INTEGER ) + - 96 + + 38
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6598
SELECT 52 + - - 72, + ( - - 58 ) DIV - - COUNT( * ) + 92 * + 97 * 78 AS col0
----
124
696130

skipif mysql # not compatible
query II rowsort label-6598
SELECT 52 + - - 72, + ( - - 58 ) / - - COUNT ( * ) + 92 * + 97 * 78 AS col0
----
124
696130

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6599
SELECT MIN( DISTINCT 66 ) + + - MAX( ALL + + ( + 53 ) ) DIV + COUNT( * ) AS col1
----
13

skipif mysql # not compatible
query I rowsort label-6599
SELECT MIN ( DISTINCT 66 ) + + - MAX ( ALL + + ( + 53 ) ) / + COUNT ( * ) AS col1
----
13

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6600
SELECT DISTINCT CAST( NULL AS SIGNED ) + - 16 * + MIN( ALL + 99 ) + - 53
----
NULL

skipif mysql # not compatible
query I rowsort label-6600
SELECT DISTINCT CAST ( NULL AS INTEGER ) + - 16 * + MIN ( ALL + 99 ) + - 53
----
NULL

query I rowsort
SELECT ALL + 90 * + 82
----
7380

query II rowsort
SELECT ALL - 32 * 63 AS col0, 56 + - 17
----
-2016
39

onlyif mysql # aggregate syntax: 
query I rowsort label-6603
SELECT SUM( 86 ) + 24 AS col0
----
110

skipif mysql # not compatible
query I rowsort label-6603
SELECT SUM ( 86 ) + 24 AS col0
----
110

onlyif mysql # aggregate syntax: 
query II rowsort label-6604
SELECT - NULLIF ( - - 49, + - 38 * - + COUNT( * ) * CASE 15 WHEN + 8 THEN - + COUNT( * ) ELSE - 9 END ) AS col0, ( - 82 ) AS col1
----
-49
-82

skipif mysql # not compatible
query II rowsort label-6604
SELECT - NULLIF ( - - 49, + - 38 * - + COUNT ( * ) * CASE 15 WHEN + 8 THEN - + COUNT ( * ) ELSE - 9 END ) AS col0, ( - 82 ) AS col1
----
-49
-82

query I rowsort
SELECT DISTINCT - ( + 29 ) + 49 AS col2
----
20

query I rowsort
SELECT ALL + 29 * - 55 + + ( + 92 ) - 4
----
-1507

query I rowsort
SELECT - 19 * - 40 + - 51
----
709

query I rowsort
SELECT 1 * - + 37
----
-37

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6609
SELECT DISTINCT - CAST( NULL AS DECIMAL ) + 80 + 43 * - COALESCE ( 79, + 9 ) * + + 84 + - + 34 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6609
SELECT DISTINCT - CAST ( NULL AS REAL ) + 80 + 43 * - COALESCE ( 79, + 9 ) * + + 84 + - + 34 AS col0
----
NULL

query I rowsort
SELECT ALL + + 6 * + 24 * + - 84 + + 80 AS col1
----
-12016

query I rowsort
SELECT ALL - - 35 + - ( 27 ) AS col1
----
8

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6612
SELECT CASE NULLIF ( + CAST( NULL AS SIGNED ), - + CAST( - 43 AS SIGNED ) ) WHEN + 3 THEN + 6 + - 10 * + ( - + ( + 74 ) ) - + ( - + 60 ) - + COUNT( * ) WHEN - ( - 19 ) THEN NULL END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6612
SELECT CASE NULLIF ( + CAST ( NULL AS INTEGER ), - + CAST ( - 43 AS INTEGER ) ) WHEN + 3 THEN + 6 + - 10 * + ( - + ( + 74 ) ) - + ( - + 60 ) - + COUNT ( * ) WHEN - ( - 19 ) THEN NULL END col1
----
NULL

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

skipif mysql # not compatible
query I rowsort label-6613
SELECT DISTINCT + COUNT ( * ) - + COUNT ( * ) + + ( + COUNT ( + + 43 ) ) * ( - 94 ) AS col1
----
-94

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6614
SELECT COUNT( DISTINCT - 2 ) * + COUNT( * ) + CAST( 51 AS SIGNED ) AS col0
----
52

skipif mysql # not compatible
query I rowsort label-6614
SELECT COUNT ( DISTINCT - 2 ) * + COUNT ( * ) + CAST ( 51 AS INTEGER ) AS col0
----
52

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6616
SELECT DISTINCT - 31 * + 91 * - 45 AS col0, - COALESCE ( - 64, + + 14, - COUNT( * ) )
----
126945
64

skipif mysql # not compatible
query II rowsort label-6616
SELECT DISTINCT - 31 * + 91 * - 45 AS col0, - COALESCE ( - 64, + + 14, - COUNT ( * ) )
----
126945
64

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

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

query II rowsort
SELECT 53 * 89 * - 80 col2, - 34 AS col1
----
-377360
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-6619
SELECT ALL - MIN( 44 ) AS col2
----
-44

skipif mysql # not compatible
query I rowsort label-6619
SELECT ALL - MIN ( 44 ) AS col2
----
-44

query I rowsort
SELECT ( ( 45 ) ) * 69
----
3105

onlyif mysql # DIV for integer division: 
query I rowsort label-6621
SELECT ALL 1 DIV - + ( + + 85 )
----
0

skipif mysql # not compatible
query I rowsort label-6621
SELECT ALL 1 / - + ( + + 85 )
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6622
SELECT + COUNT( * ) + + 92 + - MIN( DISTINCT - 20 ) + + 90 AS col1, + 41 DIV 69 * - 27
----
203
0

skipif mysql # not compatible
query II rowsort label-6622
SELECT + COUNT ( * ) + + 92 + - MIN ( DISTINCT - 20 ) + + 90 AS col1, + 41 / 69 * - 27
----
203
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6623
SELECT - MIN( - - 54 )
----
-54

skipif mysql # not compatible
query I rowsort label-6623
SELECT - MIN ( - - 54 )
----
-54

query I rowsort
SELECT DISTINCT 12 + 50
----
62

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6626
SELECT DISTINCT - 91 + - - COUNT( * )
----
-90

skipif mysql # not compatible
query I rowsort label-6626
SELECT DISTINCT - 91 + - - COUNT ( * )
----
-90

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-6627
SELECT + CAST( NULL AS DECIMAL ) * MIN( DISTINCT + + 16 ) * 22 + - 56 - 24 AS col0, MIN( ALL + - 88 ) + 95 * - + 80 * 7 AS col0
----
NULL
-53288

skipif mysql # not compatible
query II rowsort label-6627
SELECT + CAST ( NULL AS REAL ) * MIN ( DISTINCT + + 16 ) * 22 + - 56 - 24 AS col0, MIN ( ALL + - 88 ) + 95 * - + 80 * 7 AS col0
----
NULL
-53288

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

skipif mysql # not compatible
query I rowsort label-6628
SELECT - - MIN ( + 59 )
----
59

query I rowsort
SELECT ( - - 58 )
----
58

query II rowsort
SELECT ALL + 59, 49 + - + 87 AS col1
----
59
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-6631
SELECT ALL - MAX( - - 85 ) col0
----
-85

skipif mysql # not compatible
query I rowsort label-6631
SELECT ALL - MAX ( - - 85 ) col0
----
-85

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6633
SELECT ALL - COALESCE ( - 3, + COUNT( * ), - COUNT( * ) ) * - NULLIF ( + CAST( NULL AS SIGNED ), + + 42 ) - - 84 + + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-6633
SELECT ALL - COALESCE ( - 3, + COUNT ( * ), - COUNT ( * ) ) * - NULLIF ( + CAST ( NULL AS INTEGER ), + + 42 ) - - 84 + + COUNT ( * )
----
NULL

query I rowsort
SELECT - 85 * 75 AS col1
----
-6375

onlyif mysql # aggregate syntax: 
query I rowsort label-6635
SELECT DISTINCT + NULLIF ( - SUM( + 58 ), ( - 6 ) )
----
-58

skipif mysql # not compatible
query I rowsort label-6635
SELECT DISTINCT + NULLIF ( - SUM ( + 58 ), ( - 6 ) )
----
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-6636
SELECT + 3 + 96 + - COUNT( * )
----
98

skipif mysql # not compatible
query I rowsort label-6636
SELECT + 3 + 96 + - COUNT ( * )
----
98

onlyif mysql # DIV for integer division: 
query I rowsort label-6637
SELECT ALL + 16 * + - 19 DIV - - 1
----
-304

skipif mysql # not compatible
query I rowsort label-6637
SELECT ALL + 16 * + - 19 / - - 1
----
-304

query I rowsort
SELECT 26 * ( - 2 ) + + ( - CASE - 10 WHEN - 96 THEN NULL ELSE + 36 END ) + + 53 AS col1
----
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-6639
SELECT NULLIF ( - COALESCE ( - 1, + 92 * + 94, + - 49 ), - 18 * COUNT( * ) )
----
1

skipif mysql # not compatible
query I rowsort label-6639
SELECT NULLIF ( - COALESCE ( - 1, + 92 * + 94, + - 49 ), - 18 * COUNT ( * ) )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6640
SELECT COALESCE ( - 6, + - 56 * + 5 + + ( - - 53 ) + + 87 * - - COUNT( * ), 35, + 32 - - COALESCE ( - COUNT( * ), + + 84 * - 72 * - + 63 + 13, NULLIF ( + 92, - - 58 ) ) )
----
-6

skipif mysql # not compatible
query I rowsort label-6640
SELECT COALESCE ( - 6, + - 56 * + 5 + + ( - - 53 ) + + 87 * - - COUNT ( * ), 35, + 32 - - COALESCE ( - COUNT ( * ), + + 84 * - 72 * - + 63 + 13, NULLIF ( + 92, - - 58 ) ) )
----
-6

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6641
SELECT ALL + ( - 19 ) DIV + + MIN( ALL - + 45 )
----
0

skipif mysql # not compatible
query I rowsort label-6641
SELECT ALL + ( - 19 ) / + + MIN ( ALL - + 45 )
----
0

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6643
SELECT 90 / - + ( 27 ) + + + 94 - - - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6643
SELECT 90 / - + ( 27 ) + + + 94 - - - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6644
SELECT - COUNT( * ) + - + COUNT( 84 )
----
-2

skipif mysql # not compatible
query I rowsort label-6644
SELECT - COUNT ( * ) + - + COUNT ( 84 )
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-6645
SELECT ALL + CASE 20 WHEN + + COUNT( * ) THEN + 45 WHEN + 48 THEN NULL WHEN COUNT( * ) THEN NULL ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6645
SELECT ALL + CASE 20 WHEN + + COUNT ( * ) THEN + 45 WHEN + 48 THEN NULL WHEN COUNT ( * ) THEN NULL ELSE NULL END AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6646
SELECT COALESCE ( COALESCE ( + 42, - ( - 26 ) DIV 48 + + NULLIF ( - 4, CAST( NULL AS SIGNED ) ) - 44, 38 * + 92 ), + 83, + CAST( NULL AS SIGNED ) * - 80 ) AS col1
----
42

skipif mysql # not compatible
query I rowsort label-6646
SELECT COALESCE ( COALESCE ( + 42, - ( - 26 ) / 48 + + NULLIF ( - 4, CAST ( NULL AS INTEGER ) ) - 44, 38 * + 92 ), + 83, + CAST ( NULL AS INTEGER ) * - 80 ) AS col1
----
42

query I rowsort
SELECT - 19 * - 72 AS col0
----
1368

query I rowsort
SELECT 81 * + - 90 + - 90 * 98
----
-16110

onlyif mysql # aggregate syntax: 
query I rowsort label-6649
SELECT NULLIF ( + COALESCE ( - - 26, - 60 ), - MAX( DISTINCT + 36 ) + - 65 - 93 )
----
26

skipif mysql # not compatible
query I rowsort label-6649
SELECT NULLIF ( + COALESCE ( - - 26, - 60 ), - MAX ( DISTINCT + 36 ) + - 65 - 93 )
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-6650
SELECT DISTINCT 28 * + SUM( DISTINCT - 38 ) + 25 col2
----
-1039

skipif mysql # not compatible
query I rowsort label-6650
SELECT DISTINCT 28 * + SUM ( DISTINCT - 38 ) + 25 col2
----
-1039

onlyif mysql # aggregate syntax: 
query I rowsort label-6651
SELECT + MAX( DISTINCT 17 ) + - + COUNT( * ) * - - 90
----
-73

skipif mysql # not compatible
query I rowsort label-6651
SELECT + MAX ( DISTINCT 17 ) + - + COUNT ( * ) * - - 90
----
-73

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6652
SELECT ALL CAST( NULL AS SIGNED ) * - 16 * - 27 + - 14 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6652
SELECT ALL CAST ( NULL AS INTEGER ) * - 16 * - 27 + - 14 col1
----
NULL

query I rowsort
SELECT - 1 - + 97 col1
----
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-6654
SELECT DISTINCT 65 * + + 69 * + 75 + - - COUNT( * )
----
336376

skipif mysql # not compatible
query I rowsort label-6654
SELECT DISTINCT 65 * + + 69 * + 75 + - - COUNT ( * )
----
336376

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6656
SELECT ALL + 54 + + - COUNT( + 81 )
----
53

skipif mysql # not compatible
query I rowsort label-6656
SELECT ALL + 54 + + - COUNT ( + 81 )
----
53

query II rowsort
SELECT - 65, 87 col1
----
-65
87

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6658
SELECT - - ( - 5 ) + 51 - - 63 / CAST( NULL AS SIGNED ) / - - CAST( NULL AS SIGNED ) * + 28 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6658
SELECT - - ( - 5 ) + 51 - - 63 / CAST ( NULL AS INTEGER ) / - - CAST ( NULL AS INTEGER ) * + 28 AS col0
----
NULL

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

query I rowsort
SELECT - + 24 + + 69 + + 90 * - 17 * - 76
----
116325

query I rowsort
SELECT + ( - + ( 66 ) ) + + 16 - 93 AS col2
----
-143

onlyif mysql # DIV for integer division: 
query I rowsort label-6662
SELECT ALL + - 27 DIV 2
----
-13

skipif mysql # not compatible
query I rowsort label-6662
SELECT ALL + - 27 / 2
----
-13

query II rowsort
SELECT DISTINCT 17 AS col0, - 76
----
17
-76

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

query I rowsort
SELECT + 74 + - 11
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-6666
SELECT DISTINCT COUNT( * ) - 37
----
-36

skipif mysql # not compatible
query I rowsort label-6666
SELECT DISTINCT COUNT ( * ) - 37
----
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-6667
SELECT ALL + CASE + 27 WHEN + 52 THEN NULLIF ( - 79, - - 47 * + 33 + - ( + + ( + 92 ) ) + 5 + + + ( + MAX( ALL - 78 ) ) ) - + 38 * - 25 ELSE NULL END * + 65 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6667
SELECT ALL + CASE + 27 WHEN + 52 THEN NULLIF ( - 79, - - 47 * + 33 + - ( + + ( + 92 ) ) + 5 + + + ( + MAX ( ALL - 78 ) ) ) - + 38 * - 25 ELSE NULL END * + 65 AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6668
SELECT ALL + COALESCE ( ( 20 ), - ( NULLIF ( + + 36, - 2 * - 94 + 14 ) ), 36 DIV + + ( 48 ) ) col1
----
20

skipif mysql # not compatible
query I rowsort label-6668
SELECT ALL + COALESCE ( ( 20 ), - ( NULLIF ( + + 36, - 2 * - 94 + 14 ) ), 36 / + + ( 48 ) ) col1
----
20

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

skipif mysql # not compatible
query I rowsort label-6669
SELECT - MIN ( + 47 )
----
-47

query II rowsort
SELECT - 29 AS col1, 56
----
-29
56

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6671
SELECT - 72 * - - 2 + + + CAST( - ( - + COUNT( * ) ) AS SIGNED ) + + ( - 70 ) * - CAST( + ( + COUNT( * ) ) AS SIGNED ) DIV - 96 * - MIN( 59 ) * - 31 + ( - 19 )
----
-162

skipif mysql # not compatible
query I rowsort label-6671
SELECT - 72 * - - 2 + + + CAST ( - ( - + COUNT ( * ) ) AS INTEGER ) + + ( - 70 ) * - CAST ( + ( + COUNT ( * ) ) AS INTEGER ) / - 96 * - MIN ( 59 ) * - 31 + ( - 19 )
----
-162

query I rowsort
SELECT + 97 * - - 16 AS col2
----
1552

onlyif mysql # DIV for integer division: 
query I rowsort label-6673
SELECT DISTINCT NULLIF ( - ( + - ( - + 6 ) ), 26 ) DIV - - 78 + - 53 + + 83 + + - 80
----
-50

skipif mysql # not compatible
query I rowsort label-6673
SELECT DISTINCT NULLIF ( - ( + - ( - + 6 ) ), 26 ) / - - 78 + - 53 + + 83 + + - 80
----
-50

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6675
SELECT ALL + 85 * - COALESCE ( COUNT( * ), - 2 )
----
-85

skipif mysql # not compatible
query I rowsort label-6675
SELECT ALL + 85 * - COALESCE ( COUNT ( * ), - 2 )
----
-85

onlyif mysql # DIV for integer division: 
query I rowsort label-6676
SELECT DISTINCT 87 DIV + 40 + 23 AS col0
----
25

skipif mysql # not compatible
query I rowsort label-6676
SELECT DISTINCT 87 / + 40 + 23 AS col0
----
25

onlyif mysql # aggregate syntax: 
query II rowsort label-6677
SELECT + 14 - + 91, CASE + 24 WHEN - 5 + - SUM( ALL 26 ) THEN + 1 WHEN + 58 THEN + 14 ELSE NULL END AS col1
----
-77
NULL

skipif mysql # not compatible
query II rowsort label-6677
SELECT + 14 - + 91, CASE + 24 WHEN - 5 + - SUM ( ALL 26 ) THEN + 1 WHEN + 58 THEN + 14 ELSE NULL END AS col1
----
-77
NULL

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

skipif mysql # not compatible
query II rowsort label-6678
SELECT ALL CAST ( NULL AS REAL ) * - 92 col1, + COUNT ( * )
----
NULL
1

query I rowsort
SELECT + 31 * 31 AS col0
----
961

query I rowsort
SELECT DISTINCT - 13 + - 16
----
-29

onlyif mysql # DIV for integer division: 
query I rowsort label-6681
SELECT 88 DIV + - 98 * - 19
----
0

skipif mysql # not compatible
query I rowsort label-6681
SELECT 88 / + - 98 * - 19
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-6682
SELECT DISTINCT + 41 DIV + 28, 4 * + 52 col2
----
1
208

skipif mysql # not compatible
query II rowsort label-6682
SELECT DISTINCT + 41 / + 28, 4 * + 52 col2
----
1
208

query I rowsort
SELECT DISTINCT 24 + - - 0 * - 97
----
24

query I rowsort
SELECT DISTINCT - 69 + 55
----
-14

query I rowsort
SELECT ALL - 96 + + 37 * 36 col0
----
1236

onlyif mysql # aggregate syntax: 
query I rowsort label-6686
SELECT - MIN( - 57 ) col2
----
57

skipif mysql # not compatible
query I rowsort label-6686
SELECT - MIN ( - 57 ) col2
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-6687
SELECT COUNT( * ) * - 46 + - 22
----
-68

skipif mysql # not compatible
query I rowsort label-6687
SELECT COUNT ( * ) * - 46 + - 22
----
-68

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

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

query I rowsort
SELECT DISTINCT + 9 - + 40 + + - 53
----
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-6690
SELECT - COUNT( * ) * + 26 * + SUM( ALL + 5 )
----
-130

skipif mysql # not compatible
query I rowsort label-6690
SELECT - COUNT ( * ) * + 26 * + SUM ( ALL + 5 )
----
-130

query I rowsort
SELECT COALESCE ( + - 81, + 82 ) AS col0
----
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-6692
SELECT ALL ( MIN( DISTINCT - 19 ) )
----
-19

skipif mysql # not compatible
query I rowsort label-6692
SELECT ALL ( MIN ( DISTINCT - 19 ) )
----
-19

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6693
SELECT + CAST( + 35 AS SIGNED ) * - - 22 - - + CAST( - - COUNT( * ) AS SIGNED )
----
771

skipif mysql # not compatible
query I rowsort label-6693
SELECT + CAST ( + 35 AS INTEGER ) * - - 22 - - + CAST ( - - COUNT ( * ) AS INTEGER )
----
771

onlyif mysql # aggregate syntax: 
query I rowsort label-6694
SELECT + 98 - - ( - NULLIF ( + COUNT( * ), + MAX( ALL 80 ) ) ) AS col0
----
97

skipif mysql # not compatible
query I rowsort label-6694
SELECT + 98 - - ( - NULLIF ( + COUNT ( * ), + MAX ( ALL 80 ) ) ) AS col0
----
97

onlyif mysql # DIV for integer division: 
query I rowsort label-6695
SELECT + 67 DIV + 15 AS col2
----
4

skipif mysql # not compatible
query I rowsort label-6695
SELECT + 67 / + 15 AS col2
----
4

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6697
SELECT - 34 DIV - + 12, COUNT( - 42 ) AS col2
----
2
1

skipif mysql # not compatible
query II rowsort label-6697
SELECT - 34 / - + 12, COUNT ( - 42 ) AS col2
----
2
1

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6699
SELECT 28 - - CASE - + ( - + 74 ) WHEN CASE - 3 WHEN + COUNT( * ) THEN + - COUNT( * ) WHEN NULLIF ( - + 14, + - 43 * ( + 1 ) + COUNT( ALL 57 ) ) * - 52 THEN + COUNT( * ) ELSE 35 END THEN - 10 + + 62 ELSE NULL END + + COUNT( * ) * + 21 / 81
----
NULL

skipif mysql # not compatible
query I rowsort label-6699
SELECT 28 - - CASE - + ( - + 74 ) WHEN CASE - 3 WHEN + COUNT ( * ) THEN + - COUNT ( * ) WHEN NULLIF ( - + 14, + - 43 * ( + 1 ) + COUNT ( ALL 57 ) ) * - 52 THEN + COUNT ( * ) ELSE 35 END THEN - 10 + + 62 ELSE NULL END + + COUNT ( * ) * + 21 / 81
----
NULL

query I rowsort
SELECT 38 - 88 + + 77 AS col0
----
27

query I rowsort
SELECT ALL 20 * - - 32
----
640

query II rowsort
SELECT 66 AS col1, 4 AS col2
----
66
4

query I rowsort
SELECT ALL NULLIF ( 82, + 85 ) * - - 63
----
5166

onlyif mysql # DIV for integer division: 
query I rowsort label-6704
SELECT ALL 84 + + 44 + + 32 DIV - ( + 3 ) col2
----
118

skipif mysql # not compatible
query I rowsort label-6704
SELECT ALL 84 + + 44 + + 32 / - ( + 3 ) col2
----
118

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6705
SELECT + 1 DIV 36 * + COUNT( DISTINCT + 21 ) - - COUNT( * ) + 34 * + + 89 - - 53 + + CAST( 69 AS SIGNED ) DIV + ( + 33 ) AS col0
----
3082

skipif mysql # not compatible
query I rowsort label-6705
SELECT + 1 / 36 * + COUNT ( DISTINCT + 21 ) - - COUNT ( * ) + 34 * + + 89 - - 53 + + CAST ( 69 AS INTEGER ) / + ( + 33 ) AS col0
----
3082

onlyif mysql # aggregate syntax: 
query I rowsort label-6706
SELECT ( - 19 ) * - + 12 * + 75 + - + NULLIF ( ( COUNT( * ) ), + - 6 + 59 )
----
17099

skipif mysql # not compatible
query I rowsort label-6706
SELECT ( - 19 ) * - + 12 * + 75 + - + NULLIF ( ( COUNT ( * ) ), + - 6 + 59 )
----
17099

onlyif mysql # aggregate syntax: 
query I rowsort label-6707
SELECT DISTINCT 19 + - MIN( NULLIF ( + ( + ( - 7 ) ), + 98 ) ) * + 42 * + 17 + + ( + 94 ) AS col1
----
5111

skipif mysql # not compatible
query I rowsort label-6707
SELECT DISTINCT 19 + - MIN ( NULLIF ( + ( + ( - 7 ) ), + 98 ) ) * + 42 * + 17 + + ( + 94 ) AS col1
----
5111

onlyif mysql # DIV for integer division: 
query I rowsort label-6708
SELECT ALL 72 DIV + 10
----
7

skipif mysql # not compatible
query I rowsort label-6708
SELECT ALL 72 / + 10
----
7

onlyif mysql # DIV for integer division: 
query I rowsort label-6709
SELECT ( + - NULLIF ( 12, - 46 ) ) DIV + + 83
----
0

skipif mysql # not compatible
query I rowsort label-6709
SELECT ( + - NULLIF ( 12, - 46 ) ) / + + 83
----
0

query I rowsort
SELECT DISTINCT + 37 * + 94 col0
----
3478

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6711
SELECT CAST( - MIN( ALL 29 ) AS SIGNED ) + - COUNT( * ) AS col1
----
-30

skipif mysql # not compatible
query I rowsort label-6711
SELECT CAST ( - MIN ( ALL 29 ) AS INTEGER ) + - COUNT ( * ) AS col1
----
-30

onlyif mysql # aggregate syntax: 
query II rowsort label-6712
SELECT ALL 18 + + 11 + - 75 * COUNT( * ) * + - 48 * 59, 61 + - + 24 * + + 95 AS col2
----
212429
-2219

skipif mysql # not compatible
query II rowsort label-6712
SELECT ALL 18 + + 11 + - 75 * COUNT ( * ) * + - 48 * 59, 61 + - + 24 * + + 95 AS col2
----
212429
-2219

query II rowsort
SELECT DISTINCT - 20 AS col2, 95
----
-20
95

query I rowsort
SELECT ALL 36 * - - 44 AS col0
----
1584

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6715
SELECT 42 * CAST( NULL AS SIGNED ) / 34
----
NULL

skipif mysql # not compatible
query I rowsort label-6715
SELECT 42 * CAST ( NULL AS INTEGER ) / 34
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6716
SELECT DISTINCT ( - + MAX( - + 24 ) ) - - 41
----
65

skipif mysql # not compatible
query I rowsort label-6716
SELECT DISTINCT ( - + MAX ( - + 24 ) ) - - 41
----
65

query II rowsort
SELECT + 0, 88 AS col1
----
0
88

query II rowsort
SELECT + 11 AS col1, 73 + 68 AS col2
----
11
141

onlyif mysql # aggregate syntax: 
query I rowsort label-6719
SELECT ALL - 71 - + MAX( 2 ) AS col1
----
-73

skipif mysql # not compatible
query I rowsort label-6719
SELECT ALL - 71 - + MAX ( 2 ) AS col1
----
-73

query II rowsort
SELECT + + 34 AS col2, - 29 AS col2
----
34
-29

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

skipif mysql # not compatible
query I rowsort label-6721
SELECT - 6 / COUNT ( * ) AS col2
----
-6

query I rowsort
SELECT + 15 + 36
----
51

onlyif mysql # aggregate syntax: 
query II rowsort label-6723
SELECT ALL MAX( DISTINCT NULLIF ( + - 57, + 14 + + 83 + 48 ) ), 29 + - 44 + + COUNT( * ) AS col1
----
-57
-14

skipif mysql # not compatible
query II rowsort label-6723
SELECT ALL MAX ( DISTINCT NULLIF ( + - 57, + 14 + + 83 + 48 ) ), 29 + - 44 + + COUNT ( * ) AS col1
----
-57
-14

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6725
SELECT - 95 + - 84 DIV COALESCE ( - COUNT( * ), - 30 * - 16 ) * 45 AS col1
----
3685

skipif mysql # not compatible
query I rowsort label-6725
SELECT - 95 + - 84 / COALESCE ( - COUNT ( * ), - 30 * - 16 ) * 45 AS col1
----
3685

query I rowsort
SELECT - ( - 80 ) + - ( + - 72 ) * - 35
----
-2440

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6727
SELECT ALL + COUNT( * ), + 66 DIV + 8 AS col0
----
1
8

skipif mysql # not compatible
query II rowsort label-6727
SELECT ALL + COUNT ( * ), + 66 / + 8 AS col0
----
1
8

query I rowsort
SELECT - - CASE - + ( - - 8 ) WHEN - 48 THEN - - 6 END AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6729
SELECT - 22 * CASE - - CAST( 87 AS SIGNED ) WHEN - CAST( - 18 AS SIGNED ) THEN + 72 * - + NULLIF ( + 37, - 86 ) END * + 24
----
NULL

skipif mysql # not compatible
query I rowsort label-6729
SELECT - 22 * CASE - - CAST ( 87 AS INTEGER ) WHEN - CAST ( - 18 AS INTEGER ) THEN + 72 * - + NULLIF ( + 37, - 86 ) END * + 24
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6730
SELECT ALL 92 DIV COUNT( + 50 ) AS col1
----
92

skipif mysql # not compatible
query I rowsort label-6730
SELECT ALL 92 / COUNT ( + 50 ) AS col1
----
92

query I rowsort
SELECT DISTINCT + - 71 * ( + - ( - + 99 ) ) AS col2
----
-7029

onlyif mysql # aggregate syntax: 
query I rowsort label-6732
SELECT ALL - - COUNT( * ) + - ( ( 24 ) ) + + 49 - + 60
----
-34

skipif mysql # not compatible
query I rowsort label-6732
SELECT ALL - - COUNT ( * ) + - ( ( 24 ) ) + + 49 - + 60
----
-34

query I rowsort
SELECT + ( + - ( - - 72 ) ) + + 95
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-6734
SELECT DISTINCT - 3 * - MIN( 74 )
----
222

skipif mysql # not compatible
query I rowsort label-6734
SELECT DISTINCT - 3 * - MIN ( 74 )
----
222

query I rowsort
SELECT ALL + 31 + - + 41 AS col1
----
-10

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6736
SELECT - COUNT( * ) + 25 - - 54 + + - CAST( + CASE - + COUNT( * ) WHEN - 18 * - ( + 68 ) THEN + CAST( NULL AS SIGNED ) WHEN 64 THEN - 4 WHEN - 10 THEN 5 + + 69 ELSE NULL END AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6736
SELECT - COUNT ( * ) + 25 - - 54 + + - CAST ( + CASE - + COUNT ( * ) WHEN - 18 * - ( + 68 ) THEN + CAST ( NULL AS INTEGER ) WHEN 64 THEN - 4 WHEN - 10 THEN 5 + + 69 ELSE NULL END AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-6737
SELECT ALL - 68 + COUNT( * ) AS col1, 28 * - CAST( NULL AS DECIMAL ) * - + SUM( + 21 ) AS col2
----
-67
NULL

skipif mysql # not compatible
query II rowsort label-6737
SELECT ALL - 68 + COUNT ( * ) AS col1, 28 * - CAST ( NULL AS REAL ) * - + SUM ( + 21 ) AS col2
----
-67
NULL

query I rowsort
SELECT + 96 + - 49 - - 63 + + - 41 col2
----
69

onlyif mysql # DIV for integer division: 
query I rowsort label-6739
SELECT ALL - 59 DIV + 61 * - 29
----
0

skipif mysql # not compatible
query I rowsort label-6739
SELECT ALL - 59 / + 61 * - 29
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6740
SELECT - SUM( - + 31 ) * 74 DIV - 68
----
-33

skipif mysql # not compatible
query I rowsort label-6740
SELECT - SUM ( - + 31 ) * 74 / - 68
----
-33

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6741
SELECT + 35 * 98 + + 86 - + 42 - + 16 + + 7 - - + 93 + - - CASE + 53 WHEN + 61 + COALESCE ( + MIN( ALL + + 35 ), - 88 + + 23 + - 12 DIV 35, - 14 ) THEN NULL ELSE NULLIF ( + - COUNT( 75 ), + COUNT( * ) * 34 * + 42 DIV - 58 ) * - 87 * - 21 - - - 14 END DIV COUNT( * )
----
1717

skipif mysql # not compatible
query I rowsort label-6741
SELECT + 35 * 98 + + 86 - + 42 - + 16 + + 7 - - + 93 + - - CASE + 53 WHEN + 61 + COALESCE ( + MIN ( ALL + + 35 ), - 88 + + 23 + - 12 / 35, - 14 ) THEN NULL ELSE NULLIF ( + - COUNT ( 75 ), + COUNT ( * ) * 34 * + 42 / - 58 ) * - 87 * - 21 - - - 14 END / COUNT ( * )
----
1717

onlyif mysql # DIV for integer division: 
query I rowsort label-6742
SELECT DISTINCT 37 DIV + 83
----
0

skipif mysql # not compatible
query I rowsort label-6742
SELECT DISTINCT 37 / + 83
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6743
SELECT ALL - 77 * 55 + CASE - COUNT( * ) WHEN - + 37 THEN NULL WHEN + SUM( - - 84 ) - + - MIN( DISTINCT - 64 ) THEN NULL WHEN + 29 * 24 - + + COUNT( * ) THEN + 16 WHEN - 83 THEN NULL END * + + COUNT( * ) + + ( - ( - 46 ) ) * 94
----
NULL

skipif mysql # not compatible
query I rowsort label-6743
SELECT ALL - 77 * 55 + CASE - COUNT ( * ) WHEN - + 37 THEN NULL WHEN + SUM ( - - 84 ) - + - MIN ( DISTINCT - 64 ) THEN NULL WHEN + 29 * 24 - + + COUNT ( * ) THEN + 16 WHEN - 83 THEN NULL END * + + COUNT ( * ) + + ( - ( - 46 ) ) * 94
----
NULL

query I rowsort
SELECT + ( + 78 ) * + 46
----
3588

onlyif mysql # aggregate syntax: 
query I rowsort label-6745
SELECT ALL SUM( 72 ) * + 30 * - 28 * - 3 * + + COUNT( * ) + 29
----
181469

skipif mysql # not compatible
query I rowsort label-6745
SELECT ALL SUM ( 72 ) * + 30 * - 28 * - 3 * + + COUNT ( * ) + 29
----
181469

query I rowsort
SELECT + 9 * + 10 + + - 15 col2
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-6747
SELECT DISTINCT COUNT( * ) * 79 + + 5 + + 31
----
115

skipif mysql # not compatible
query I rowsort label-6747
SELECT DISTINCT COUNT ( * ) * 79 + + 5 + + 31
----
115

query I rowsort
SELECT DISTINCT + 78 * - - 12 AS col2
----
936

onlyif mysql # DIV for integer division: 
query I rowsort label-6749
SELECT - 58 DIV 80 + - 54 AS col0
----
-54

skipif mysql # not compatible
query I rowsort label-6749
SELECT - 58 / 80 + - 54 AS col0
----
-54

onlyif mysql # DIV for integer division: 
query I rowsort label-6750
SELECT DISTINCT 71 * 21 DIV + - 28 - 99 + + 36 AS col2
----
-116

skipif mysql # not compatible
query I rowsort label-6750
SELECT DISTINCT 71 * 21 / + - 28 - 99 + + 36 AS col2
----
-116

onlyif mysql # aggregate syntax: 
query I rowsort label-6751
SELECT + + 6 + 43 + - ( - COUNT( * ) ) * + + COALESCE ( + COUNT( * ), 98 ) AS col2
----
50

skipif mysql # not compatible
query I rowsort label-6751
SELECT + + 6 + 43 + - ( - COUNT ( * ) ) * + + COALESCE ( + COUNT ( * ), 98 ) AS col2
----
50

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6752
SELECT CAST( NULL AS SIGNED ) * - - ( + 39 ) + 80 AS col2, 19 AS col1
----
NULL
19

skipif mysql # not compatible
query II rowsort label-6752
SELECT CAST ( NULL AS INTEGER ) * - - ( + 39 ) + 80 AS col2, 19 AS col1
----
NULL
19

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6753
SELECT DISTINCT 7 * + 52 * - 66 * 35 - CASE SUM( + + 24 ) WHEN - 88 THEN + ( - COUNT( * ) ) END - - - COUNT( * ) - COUNT( * ) + - CAST( NULL AS SIGNED ) + + + 22 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6753
SELECT DISTINCT 7 * + 52 * - 66 * 35 - CASE SUM ( + + 24 ) WHEN - 88 THEN + ( - COUNT ( * ) ) END - - - COUNT ( * ) - COUNT ( * ) + - CAST ( NULL AS INTEGER ) + + + 22 AS col0
----
NULL

query I rowsort
SELECT + - 87 - - + 29 + - + 35 * - 93
----
3197

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6757
SELECT DISTINCT + NULLIF ( 3, - + 61 ) DIV - 42
----
0

skipif mysql # not compatible
query I rowsort label-6757
SELECT DISTINCT + NULLIF ( 3, - + 61 ) / - 42
----
0

query I rowsort
SELECT DISTINCT - 31 * + 11
----
-341

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6760
SELECT - 40 * + COUNT( - - ( + - CAST( 89 AS SIGNED ) ) ) + 22 AS col1
----
-18

skipif mysql # not compatible
query I rowsort label-6760
SELECT - 40 * + COUNT ( - - ( + - CAST ( 89 AS INTEGER ) ) ) + 22 AS col1
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-6761
SELECT - - COUNT( * ) + - 70 - - 99 + - + 10 * + 71 * - 27
----
19200

skipif mysql # not compatible
query I rowsort label-6761
SELECT - - COUNT ( * ) + - 70 - - 99 + - + 10 * + 71 * - 27
----
19200

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6762
SELECT + + 60 DIV - COUNT( * ) + + + 99 DIV + - 35 + - + ( + + 3 )
----
-65

skipif mysql # not compatible
query I rowsort label-6762
SELECT + + 60 / - COUNT ( * ) + + + 99 / + - 35 + - + ( + + 3 )
----
-65

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6763
SELECT ALL + CAST( 74 AS SIGNED ) + - 77 + - - 90 + + 77 AS col0
----
164

skipif mysql # not compatible
query I rowsort label-6763
SELECT ALL + CAST ( 74 AS INTEGER ) + - 77 + - - 90 + + 77 AS col0
----
164

onlyif mysql # aggregate syntax: 
query II rowsort label-6764
SELECT ALL + CASE - 53 WHEN COALESCE ( + + 83, + 52 ) THEN NULL WHEN + MIN( - ( - - 45 ) ) * + + 58 * - 78 * 27 THEN + 64 ELSE - 21 - 60 END + + + 56 AS col2, + 42 + - 1 * 66 + + 62 + - 73
----
-25
-35

skipif mysql # not compatible
query II rowsort label-6764
SELECT ALL + CASE - 53 WHEN COALESCE ( + + 83, + 52 ) THEN NULL WHEN + MIN ( - ( - - 45 ) ) * + + 58 * - 78 * 27 THEN + 64 ELSE - 21 - 60 END + + + 56 AS col2, + 42 + - 1 * 66 + + 62 + - 73
----
-25
-35

onlyif mysql # DIV for integer division: 
query I rowsort label-6765
SELECT DISTINCT - - 7 + 17 DIV - 6 AS col2
----
5

skipif mysql # not compatible
query I rowsort label-6765
SELECT DISTINCT - - 7 + 17 / - 6 AS col2
----
5

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

query I rowsort
SELECT DISTINCT + 46 + - 89 + - 59 AS col1
----
-102

onlyif mysql # aggregate syntax: 
query I rowsort label-6768
SELECT DISTINCT COUNT( DISTINCT 99 ) col0
----
1

skipif mysql # not compatible
query I rowsort label-6768
SELECT DISTINCT COUNT ( DISTINCT 99 ) col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6769
SELECT ALL 9 + + SUM( ALL 93 ) AS col0
----
102

skipif mysql # not compatible
query I rowsort label-6769
SELECT ALL 9 + + SUM ( ALL 93 ) AS col0
----
102

query I rowsort
SELECT + 15 + - 0
----
15

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6771
SELECT + 91 + COUNT( * ) * - 8 DIV - 13 + + 51 AS col1
----
142

skipif mysql # not compatible
query I rowsort label-6771
SELECT + 91 + COUNT ( * ) * - 8 / - 13 + + 51 AS col1
----
142

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6773
SELECT DISTINCT - 72 * 4 * COUNT( * ) AS col0, 48
----
-288
48

skipif mysql # not compatible
query II rowsort label-6773
SELECT DISTINCT - 72 * 4 * COUNT ( * ) AS col0, 48
----
-288
48

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6775
SELECT DISTINCT - 54 * - NULLIF ( - + CAST( - + COUNT( * ) AS SIGNED ), - + ( + + 50 ) ) AS col2
----
54

skipif mysql # not compatible
query I rowsort label-6775
SELECT DISTINCT - 54 * - NULLIF ( - + CAST ( - + COUNT ( * ) AS INTEGER ), - + ( + + 50 ) ) AS col2
----
54

query I rowsort
SELECT DISTINCT 8 + ( 77 ) AS col1
----
85

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

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

query I rowsort
SELECT - 37 - 19
----
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-6779
SELECT ALL - 64 + - COUNT( * ) - 96 + + 29 AS col1
----
-132

skipif mysql # not compatible
query I rowsort label-6779
SELECT ALL - 64 + - COUNT ( * ) - 96 + + 29 AS col1
----
-132

onlyif mysql # DIV for integer division: 
query I rowsort label-6780
SELECT + 5 * + 64 + + 81 DIV 99
----
320

skipif mysql # not compatible
query I rowsort label-6780
SELECT + 5 * + 64 + + 81 / 99
----
320

onlyif mysql # DIV for integer division: 
query I rowsort label-6781
SELECT ALL - 78 DIV - + 44 - 43 + ( 89 )
----
47

skipif mysql # not compatible
query I rowsort label-6781
SELECT ALL - 78 / - + 44 - 43 + ( 89 )
----
47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6782
SELECT ALL + NULLIF ( + - CAST( - - 46 AS SIGNED ), - + AVG ( ALL 41 ) )
----
-46

skipif mysql # not compatible
query I rowsort label-6782
SELECT ALL + NULLIF ( + - CAST ( - - 46 AS INTEGER ), - + AVG ( ALL 41 ) )
----
-46

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6783
SELECT 1 DIV 78 + - + MIN( DISTINCT + 79 ) AS col1
----
-79

skipif mysql # not compatible
query I rowsort label-6783
SELECT 1 / 78 + - + MIN ( DISTINCT + 79 ) AS col1
----
-79

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6784
SELECT - 54 DIV + - COALESCE ( - 21, - 67 + + - 74 - - COUNT( * ), + 20 * + 30 - + 85 * + 99 + + 46 ) - MAX( ALL + ( - 20 ) ) - + - 88 - - - MIN( DISTINCT + 57 ) * + NULLIF ( 82, 63 + 82 + + + 2 ) + - NULLIF ( + 62, - ( + - ( 38 ) ) DIV 73 )
----
-4630

skipif mysql # not compatible
query I rowsort label-6784
SELECT - 54 / + - COALESCE ( - 21, - 67 + + - 74 - - COUNT ( * ), + 20 * + 30 - + 85 * + 99 + + 46 ) - MAX ( ALL + ( - 20 ) ) - + - 88 - - - MIN ( DISTINCT + 57 ) * + NULLIF ( 82, 63 + 82 + + + 2 ) + - NULLIF ( + 62, - ( + - ( 38 ) ) / 73 )
----
-4630

onlyif mysql # aggregate syntax: 
query I rowsort label-6785
SELECT + 59 - MAX( ALL + - 4 )
----
63

skipif mysql # not compatible
query I rowsort label-6785
SELECT + 59 - MAX ( ALL + - 4 )
----
63

query I rowsort
SELECT ALL - CASE 25 WHEN 25 * 99 THEN NULL WHEN ( 61 ) / - 32 THEN NULL ELSE 91 * 47 + + 24 END * 49 AS col0
----
-210749

onlyif mysql # DIV for integer division: 
query I rowsort label-6787
SELECT DISTINCT + 20 DIV 40
----
0

skipif mysql # not compatible
query I rowsort label-6787
SELECT DISTINCT + 20 / 40
----
0

query I rowsort
SELECT - 23 + - 56 * + 17
----
-975

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

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

query I rowsort
SELECT - 29 + - 3 * 40 AS col0
----
-149

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

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

query I rowsort
SELECT - 72 * 39 + 37
----
-2771

onlyif mysql # aggregate syntax: 
query I rowsort label-6793
SELECT CASE 44 WHEN COUNT( ALL + 88 ) / 75 THEN + 71 END
----
NULL

skipif mysql # not compatible
query I rowsort label-6793
SELECT CASE 44 WHEN COUNT ( ALL + 88 ) / 75 THEN + 71 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6794
SELECT COUNT( * ) * - MAX( 8 * - 25 ) + 32 AS col2
----
232

skipif mysql # not compatible
query I rowsort label-6794
SELECT COUNT ( * ) * - MAX ( 8 * - 25 ) + 32 AS col2
----
232

onlyif mysql # aggregate syntax: 
query I rowsort label-6795
SELECT - 81 * + CASE + ( MIN( 86 ) ) / + 84 WHEN - 18 THEN 85 + + 77 WHEN 15 THEN NULL ELSE - 57 END
----
4617

skipif mysql # not compatible
query I rowsort label-6795
SELECT - 81 * + CASE + ( MIN ( 86 ) ) / + 84 WHEN - 18 THEN 85 + + 77 WHEN 15 THEN NULL ELSE - 57 END
----
4617

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6797
SELECT ALL + 42 * 17 + 73 * COUNT( * )
----
787

skipif mysql # not compatible
query I rowsort label-6797
SELECT ALL + 42 * 17 + 73 * COUNT ( * )
----
787

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

query I rowsort
SELECT + 51 + 98
----
149

query I rowsort
SELECT DISTINCT 63 * + 53 AS col1
----
3339

onlyif mysql # aggregate syntax: 
query I rowsort label-6801
SELECT - 34 * - 33 + - CASE - 41 WHEN 61 * 21 THEN 62 * ( - 51 ) WHEN COUNT( * ) THEN NULL ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6801
SELECT - 34 * - 33 + - CASE - 41 WHEN 61 * 21 THEN 62 * ( - 51 ) WHEN COUNT ( * ) THEN NULL ELSE NULL END AS col1
----
NULL

query I rowsort
SELECT ALL 97 * 48 AS col1
----
4656

onlyif mysql # aggregate syntax: 
query I rowsort label-6803
SELECT ALL COUNT( * ) + 36 * - 31 AS col1
----
-1115

skipif mysql # not compatible
query I rowsort label-6803
SELECT ALL COUNT ( * ) + 36 * - 31 AS col1
----
-1115

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6804
SELECT 28 + - ( - CAST( COUNT( * ) AS SIGNED ) )
----
29

skipif mysql # not compatible
query I rowsort label-6804
SELECT 28 + - ( - CAST ( COUNT ( * ) AS INTEGER ) )
----
29

query I rowsort
SELECT ALL COALESCE ( 32, 47, 77 ) * + 35 AS col0
----
1120

query I rowsort
SELECT 37 + ( 25 + ( ( 68 ) ) ) * - 50
----
-4613

onlyif mysql # aggregate syntax: 
query I rowsort label-6807
SELECT 73 + + CASE - 24 + + 9 * - MIN( 70 ) WHEN 23 THEN 91 + 56 WHEN + 1 / + 28 THEN 68 + - 62 ELSE 21 * - 44 - + 22 END col0
----
-873

skipif mysql # not compatible
query I rowsort label-6807
SELECT 73 + + CASE - 24 + + 9 * - MIN ( 70 ) WHEN 23 THEN 91 + 56 WHEN + 1 / + 28 THEN 68 + - 62 ELSE 21 * - 44 - + 22 END col0
----
-873

onlyif mysql # DIV for integer division: 
query I rowsort label-6808
SELECT ALL 3 + 57 DIV 56 col0
----
4

skipif mysql # not compatible
query I rowsort label-6808
SELECT ALL 3 + 57 / 56 col0
----
4

query I rowsort
SELECT DISTINCT 20 * - 42
----
-840

query I rowsort
SELECT ALL 55 + 2 AS col1
----
57

query I rowsort
SELECT 63 + 30 AS col0
----
93

query I rowsort
SELECT ALL 67 * - 99 AS col0
----
-6633

query I rowsort
SELECT ALL 26 * 7
----
182

query I rowsort
SELECT ( - 78 ) + 93 AS col2
----
15

query I rowsort
SELECT ( 29 ) * 0
----
0

query I rowsort
SELECT 82 + 57
----
139

query I rowsort
SELECT 88 * ( + 68 )
----
5984

query I rowsort
SELECT DISTINCT 54 - - 8 AS col0
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-6819
SELECT DISTINCT - 24 * MIN( 2 * 63 ) col0
----
-3024

skipif mysql # not compatible
query I rowsort label-6819
SELECT DISTINCT - 24 * MIN ( 2 * 63 ) col0
----
-3024

query I rowsort
SELECT DISTINCT + 81 * 43 col2
----
3483

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6822
SELECT ALL + + COUNT( ALL 44 ) * + COALESCE ( - COUNT( * ), 88 + CASE + 99 + 32 WHEN + 49 THEN - 38 * NULLIF ( - 7, 69 ) - 57 WHEN + 84 / COALESCE ( COUNT( * ), + ( 36 ) ) THEN NULL END * - COUNT( * ), 1 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-6822
SELECT ALL + + COUNT ( ALL 44 ) * + COALESCE ( - COUNT ( * ), 88 + CASE + 99 + 32 WHEN + 49 THEN - 38 * NULLIF ( - 7, 69 ) - 57 WHEN + 84 / COALESCE ( COUNT ( * ), + ( 36 ) ) THEN NULL END * - COUNT ( * ), 1 ) AS col1
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6823
SELECT 66 DIV + COALESCE ( + 36 * + 35 - ( ( - 95 ) ), COALESCE ( 47, - MAX( ALL - 73 ), - 34 * CAST( - 83 AS SIGNED ) ) + + 86 )
----
0

skipif mysql # not compatible
query I rowsort label-6823
SELECT 66 / + COALESCE ( + 36 * + 35 - ( ( - 95 ) ), COALESCE ( 47, - MAX ( ALL - 73 ), - 34 * CAST ( - 83 AS INTEGER ) ) + + 86 )
----
0

query I rowsort
SELECT ALL - 90 + - 34
----
-124

onlyif mysql # aggregate syntax: 
query I rowsort label-6825
SELECT 84 * - 2 - COUNT( * ) * - 29 AS col1
----
-139

skipif mysql # not compatible
query I rowsort label-6825
SELECT 84 * - 2 - COUNT ( * ) * - 29 AS col1
----
-139

onlyif mysql # DIV for integer division: 
query I rowsort label-6826
SELECT - 61 DIV - 41 + 62 AS col2
----
63

skipif mysql # not compatible
query I rowsort label-6826
SELECT - 61 / - 41 + 62 AS col2
----
63

query I rowsort
SELECT DISTINCT - 40 + + 83
----
43

query I rowsort
SELECT ALL + 82 + 94 AS col1
----
176

query I rowsort
SELECT ALL - + 77 + - 85
----
-162

query I rowsort
SELECT DISTINCT + 49 + 97
----
146

query I rowsort
SELECT 37 * - 30
----
-1110

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6832
SELECT DISTINCT - + NULLIF ( CAST( NULL AS SIGNED ), - 27 * 22 ) + ( + CAST( 99 AS SIGNED ) + - 44 ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6832
SELECT DISTINCT - + NULLIF ( CAST ( NULL AS INTEGER ), - 27 * 22 ) + ( + CAST ( 99 AS INTEGER ) + - 44 ) col0
----
NULL

query I rowsort
SELECT DISTINCT + 16 + + 7
----
23

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6834
SELECT ALL ( + COALESCE ( MIN( 60 ), COUNT( CAST( 9 AS SIGNED ) ) ) ) * 1 AS col1
----
60

skipif mysql # not compatible
query I rowsort label-6834
SELECT ALL ( + COALESCE ( MIN ( 60 ), COUNT ( CAST ( 9 AS INTEGER ) ) ) ) * 1 AS col1
----
60

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6835
SELECT ALL - COALESCE ( 48, 95 ) + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6835
SELECT ALL - COALESCE ( 48, 95 ) + + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT DISTINCT + ( 41 ) + 37 AS col2
----
78

query I rowsort
SELECT + CASE 89 WHEN 12 THEN - CASE 36 WHEN 58 THEN 88 * - 46 END END AS col2
----
NULL

query I rowsort
SELECT DISTINCT - - 35 + 86
----
121

query I rowsort
SELECT ALL - 97 * ( + 51 * + 41 ) AS col2
----
-202827

onlyif mysql # aggregate syntax: 
query I rowsort label-6840
SELECT 86 * + MIN( ALL + 12 ) + + 77 * 50
----
4882

skipif mysql # not compatible
query I rowsort label-6840
SELECT 86 * + MIN ( ALL + 12 ) + + 77 * 50
----
4882

query I rowsort
SELECT ALL 79 - + 12
----
67

onlyif mysql # aggregate syntax: 
query I rowsort label-6842
SELECT SUM( + 86 ) * - 14 AS col0
----
-1204

skipif mysql # not compatible
query I rowsort label-6842
SELECT SUM ( + 86 ) * - 14 AS col0
----
-1204

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6845
SELECT ALL COUNT( * ) * + 69 * + 61 AS col0
----
4209

skipif mysql # not compatible
query I rowsort label-6845
SELECT ALL COUNT ( * ) * + 69 * + 61 AS col0
----
4209

onlyif mysql # aggregate syntax: 
query I rowsort label-6846
SELECT DISTINCT 78 - - 22 * COUNT( * ) AS col0
----
100

skipif mysql # not compatible
query I rowsort label-6846
SELECT DISTINCT 78 - - 22 * COUNT ( * ) AS col0
----
100

query I rowsort
SELECT 62 + - 7 + + 46
----
101

query I rowsort
SELECT ALL 72 * 42 col0
----
3024

query I rowsort
SELECT 81 + 43
----
124

query I rowsort
SELECT ALL 66 * 10 AS col2
----
660

query I rowsort
SELECT DISTINCT 12 * + 18
----
216

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

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

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

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

query I rowsort
SELECT DISTINCT 2 * + 37 + - 8
----
66

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6855
SELECT + - COUNT( ALL - 28 ) DIV 39 + - ( + 20 ) * COALESCE ( + 7, - SUM( ALL 12 ) )
----
-140

skipif mysql # not compatible
query I rowsort label-6855
SELECT + - COUNT ( ALL - 28 ) / 39 + - ( + 20 ) * COALESCE ( + 7, - SUM ( ALL 12 ) )
----
-140

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

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

query I rowsort
SELECT - 32 * - - 39 + 3 * + 30 AS col0
----
-1158

query I rowsort
SELECT 11 * - 99 AS col2
----
-1089

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

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

query I rowsort
SELECT ALL + - 28 * - 93 + 30 col0
----
2634

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6861
SELECT ALL + + 62 * - CASE ( + 87 ) WHEN 12 * - 16 THEN NULLIF ( COALESCE ( 48, + COALESCE ( - SUM( ALL 3 ), - COALESCE ( - COUNT( * ), 32 * - 18 + + 33, 11 ), 82 * 19 + + 21 ) ), + COUNT( * ) - MIN( - CAST( NULL AS SIGNED ) ) ) * 49 - - 20 WHEN - 15 + - 94 THEN ( + 33 ) * + 18 ELSE + 5 * 86 END + + COUNT( * ) AS col1
----
-26659

skipif mysql # not compatible
query I rowsort label-6861
SELECT ALL + + 62 * - CASE ( + 87 ) WHEN 12 * - 16 THEN NULLIF ( COALESCE ( 48, + COALESCE ( - SUM ( ALL 3 ), - COALESCE ( - COUNT ( * ), 32 * - 18 + + 33, 11 ), 82 * 19 + + 21 ) ), + COUNT ( * ) - MIN ( - CAST ( NULL AS INTEGER ) ) ) * 49 - - 20 WHEN - 15 + - 94 THEN ( + 33 ) * + 18 ELSE + 5 * 86 END + + COUNT ( * ) AS col1
----
-26659

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6862
SELECT CASE + ( CAST( NULL AS SIGNED ) ) WHEN + 22 / 92 THEN + 79 WHEN - COUNT( + 77 ) THEN NULL ELSE NULL END * + 73
----
NULL

skipif mysql # not compatible
query I rowsort label-6862
SELECT CASE + ( CAST ( NULL AS INTEGER ) ) WHEN + 22 / 92 THEN + 79 WHEN - COUNT ( + 77 ) THEN NULL ELSE NULL END * + 73
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6863
SELECT - CASE - 44 WHEN CAST( 21 AS SIGNED ) / + CAST( NULL AS SIGNED ) THEN + 18 * - ( 22 * 1 ) END * - COUNT( * ) + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-6863
SELECT - CASE - 44 WHEN CAST ( 21 AS INTEGER ) / + CAST ( NULL AS INTEGER ) THEN + 18 * - ( 22 * 1 ) END * - COUNT ( * ) + COUNT ( * )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6864
SELECT DISTINCT 47 * 51 * 20 - + NULLIF ( + 30 + - CASE + 95 + + 54 * 52 WHEN - 64 + - 76 * + 14 THEN NULL WHEN 40 THEN NULL ELSE - 34 + 82 * 46 END * ( 60 ), - 59 ) DIV 64 AS col1
----
51443

skipif mysql # not compatible
query I rowsort label-6864
SELECT DISTINCT 47 * 51 * 20 - + NULLIF ( + 30 + - CASE + 95 + + 54 * 52 WHEN - 64 + - 76 * + 14 THEN NULL WHEN 40 THEN NULL ELSE - 34 + 82 * 46 END * ( 60 ), - 59 ) / 64 AS col1
----
51443

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6866
SELECT ALL - + 10 * - + 21 + + SUM( 20 ) + 45
----
275

skipif mysql # not compatible
query I rowsort label-6866
SELECT ALL - + 10 * - + 21 + + SUM ( 20 ) + 45
----
275

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6867
SELECT ALL + - CAST( NULL AS SIGNED ) * COUNT( * ) - 58 + - 77 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6867
SELECT ALL + - CAST ( NULL AS INTEGER ) * COUNT ( * ) - 58 + - 77 AS col2
----
NULL

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

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

query I rowsort
SELECT + + 37 * - NULLIF ( + 15, 72 / 64 - ( + 42 + ( 99 ) ) )
----
-555

onlyif mysql # aggregate syntax: 
query I rowsort label-6870
SELECT - NULLIF ( + 24, ( 79 ) + 89 * MAX( DISTINCT 17 ) ) * + 51
----
-1224

skipif mysql # not compatible
query I rowsort label-6870
SELECT - NULLIF ( + 24, ( 79 ) + 89 * MAX ( DISTINCT 17 ) ) * + 51
----
-1224

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6871
SELECT - + 63 * ( - 4 ) * 26 + - COALESCE ( + 41, - 66 + - 24, - ( - 95 ) * 86, 52 * + COUNT( DISTINCT - 40 ) ) DIV + 51
----
6552

skipif mysql # not compatible
query I rowsort label-6871
SELECT - + 63 * ( - 4 ) * 26 + - COALESCE ( + 41, - 66 + - 24, - ( - 95 ) * 86, 52 * + COUNT ( DISTINCT - 40 ) ) / + 51
----
6552

onlyif mysql # aggregate syntax: 
query I rowsort label-6872
SELECT - + COUNT( * ) + - 44 * SUM( ALL 6 - + 77 ) AS col0
----
3123

skipif mysql # not compatible
query I rowsort label-6872
SELECT - + COUNT ( * ) + - 44 * SUM ( ALL 6 - + 77 ) AS col0
----
3123

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6874
SELECT ALL + CASE + 20 WHEN - CAST( NULL AS SIGNED ) THEN 28 WHEN - 49 + + 44 THEN NULL ELSE 57 * - ( 26 ) + - 58 END AS col0
----
-1540

skipif mysql # not compatible
query I rowsort label-6874
SELECT ALL + CASE + 20 WHEN - CAST ( NULL AS INTEGER ) THEN 28 WHEN - 49 + + 44 THEN NULL ELSE 57 * - ( 26 ) + - 58 END AS col0
----
-1540

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

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

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

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

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

query I rowsort
SELECT ALL 8 * + - 46 AS col2
----
-368

onlyif mysql # aggregate syntax: 
query I rowsort label-6879
SELECT DISTINCT + 50 - 80 * + + COUNT( * ) + 40
----
10

skipif mysql # not compatible
query I rowsort label-6879
SELECT DISTINCT + 50 - 80 * + + COUNT ( * ) + 40
----
10

onlyif mysql # aggregate syntax: 
query II rowsort label-6880
SELECT 44 col2, 87 * + MIN( ALL 55 )
----
44
4785

skipif mysql # not compatible
query II rowsort label-6880
SELECT 44 col2, 87 * + MIN ( ALL 55 )
----
44
4785

onlyif mysql # aggregate syntax: 
query I rowsort label-6881
SELECT - COUNT( * ) + - - 71 AS col1
----
70

skipif mysql # not compatible
query I rowsort label-6881
SELECT - COUNT ( * ) + - - 71 AS col1
----
70

query I rowsort
SELECT + ( + 2 ) + 56 AS col0
----
58

query I rowsort
SELECT ALL + 33 * - 81
----
-2673

query I rowsort
SELECT ALL NULLIF ( + ( - 59 ), - 59 * 67 + 63 ) AS col2
----
-59

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6885
SELECT DISTINCT + 24 * + + 0 * - 69 * + COUNT( DISTINCT + CASE 80 WHEN 24 - 26 * COALESCE ( CAST( 28 AS SIGNED ), + 63 * 22 - + 19 * + 83 ) THEN 21 / 22 END * + ( 94 + 55 ) ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-6885
SELECT DISTINCT + 24 * + + 0 * - 69 * + COUNT ( DISTINCT + CASE 80 WHEN 24 - 26 * COALESCE ( CAST ( 28 AS INTEGER ), + 63 * 22 - + 19 * + 83 ) THEN 21 / 22 END * + ( 94 + 55 ) ) AS col2
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6886
SELECT - 22 AS col1, - COUNT( * ) DIV 63 + 16
----
-22
16

skipif mysql # not compatible
query II rowsort label-6886
SELECT - 22 AS col1, - COUNT ( * ) / 63 + 16
----
-22
16

query I rowsort
SELECT + 60 + - 22 + - - 82 AS col2
----
120

query I rowsort
SELECT DISTINCT NULLIF ( - ( + 67 ), - 82 * + 93 )
----
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-6889
SELECT ALL + 33 * - - 95 * + - ( - MAX( ALL 23 ) )
----
72105

skipif mysql # not compatible
query I rowsort label-6889
SELECT ALL + 33 * - - 95 * + - ( - MAX ( ALL 23 ) )
----
72105

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6890
SELECT ALL NULLIF ( + CASE - + 28 WHEN 40 THEN - CAST( - 35 AS DECIMAL ) END, COUNT( * ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-6890
SELECT ALL NULLIF ( + CASE - + 28 WHEN 40 THEN - CAST ( - 35 AS REAL ) END, COUNT ( * ) )
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6892
SELECT ALL ( - COUNT( ALL + + 69 ) ) + + 45
----
44

skipif mysql # not compatible
query I rowsort label-6892
SELECT ALL ( - COUNT ( ALL + + 69 ) ) + + 45
----
44

query I rowsort
SELECT + 24 + 52 * - 93
----
-4812

onlyif mysql # DIV for integer division: 
query I rowsort label-6894
SELECT + 42 DIV + ( + + 40 )
----
1

skipif mysql # not compatible
query I rowsort label-6894
SELECT + 42 / + ( + + 40 )
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6895
SELECT DISTINCT CAST( + 99 AS SIGNED ) + - ( + 11 )
----
88

skipif mysql # not compatible
query I rowsort label-6895
SELECT DISTINCT CAST ( + 99 AS INTEGER ) + - ( + 11 )
----
88

query I rowsort
SELECT - NULLIF ( - 24, + - CASE 13 WHEN - 88 * 57 + - 3 THEN NULL ELSE - 58 / 35 END )
----
24

query I rowsort
SELECT - 8 * - 9
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-6898
SELECT + MAX( + 8 ) + + + 24
----
32

skipif mysql # not compatible
query I rowsort label-6898
SELECT + MAX ( + 8 ) + + + 24
----
32

query I rowsort
SELECT ALL ( 16 ) * - 25 * 67
----
-26800

onlyif mysql # aggregate syntax: 
query II rowsort label-6900
SELECT 54 AS col0, COUNT( 69 ) * + SUM( ALL 50 ) + COALESCE ( - 22, 91 * - 97 )
----
54
28

skipif mysql # not compatible
query II rowsort label-6900
SELECT 54 AS col0, COUNT ( 69 ) * + SUM ( ALL 50 ) + COALESCE ( - 22, 91 * - 97 )
----
54
28

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6901
SELECT DISTINCT + - 51 DIV - ( + - ( 54 ) ) + 63 * COUNT( * ) AS col0
----
63

skipif mysql # not compatible
query I rowsort label-6901
SELECT DISTINCT + - 51 / - ( + - ( 54 ) ) + 63 * COUNT ( * ) AS col0
----
63

onlyif mysql # DIV for integer division: 
query I rowsort label-6902
SELECT ALL + + 85 DIV 29 + - 50 AS col0
----
-48

skipif mysql # not compatible
query I rowsort label-6902
SELECT ALL + + 85 / 29 + - 50 AS col0
----
-48

onlyif mysql # DIV for integer division: 
query I rowsort label-6903
SELECT ALL - + 6 * + 59 * 56 + 44 DIV 9
----
-19820

skipif mysql # not compatible
query I rowsort label-6903
SELECT ALL - + 6 * + 59 * 56 + 44 / 9
----
-19820

onlyif mysql # DIV for integer division: 
query I rowsort label-6904
SELECT DISTINCT - 31 DIV + + ( 57 ) + 20 AS col0
----
20

skipif mysql # not compatible
query I rowsort label-6904
SELECT DISTINCT - 31 / + + ( 57 ) + 20 AS col0
----
20

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

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

query I rowsort
SELECT + 66 + - 2 + - 15
----
49

onlyif mysql # aggregate syntax: 
query I rowsort label-6907
SELECT ALL - 52 * + COUNT( * ) * + 81 + 1 * + 15
----
-4197

skipif mysql # not compatible
query I rowsort label-6907
SELECT ALL - 52 * + COUNT ( * ) * + 81 + 1 * + 15
----
-4197

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6908
SELECT + COUNT( * ) - + - COALESCE ( - - COALESCE ( 23, 13 * ( CASE 34 WHEN 20 THEN - 14 ELSE - 23 * - 87 + SUM( 95 + ( 73 ) * - 58 ) * - 13 END DIV - 98 ) ), 69 * 42 )
----
24

skipif mysql # not compatible
query I rowsort label-6908
SELECT + COUNT ( * ) - + - COALESCE ( - - COALESCE ( 23, 13 * ( CASE 34 WHEN 20 THEN - 14 ELSE - 23 * - 87 + SUM ( 95 + ( 73 ) * - 58 ) * - 13 END / - 98 ) ), 69 * 42 )
----
24

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

skipif mysql # not compatible
query I rowsort label-6909
SELECT ALL + - MAX ( CAST ( + 40 AS INTEGER ) ) AS col2
----
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-6910
SELECT 66 * 55 * + - COUNT( * ) + 13 - 1 * + 53
----
-3670

skipif mysql # not compatible
query I rowsort label-6910
SELECT 66 * 55 * + - COUNT ( * ) + 13 - 1 * + 53
----
-3670

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6912
SELECT + - CASE 4 WHEN - 99 THEN - COUNT( * ) WHEN - CAST( NULL AS SIGNED ) THEN NULL ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6912
SELECT + - CASE 4 WHEN - 99 THEN - COUNT ( * ) WHEN - CAST ( NULL AS INTEGER ) THEN NULL ELSE NULL END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6913
SELECT - - 69 + + SUM( ALL - + 24 ) AS col1
----
45

skipif mysql # not compatible
query I rowsort label-6913
SELECT - - 69 + + SUM ( ALL - + 24 ) AS col1
----
45

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6914
SELECT ALL - ( - - CAST( NULL AS DECIMAL ) ) * 11 * ( - NULLIF ( COUNT( * ), 28 ) ) + + 20
----
NULL

skipif mysql # not compatible
query I rowsort label-6914
SELECT ALL - ( - - CAST ( NULL AS REAL ) ) * 11 * ( - NULLIF ( COUNT ( * ), 28 ) ) + + 20
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6915
SELECT ALL - 51 * - 76 + - 87 - MAX( DISTINCT + 97 )
----
3692

skipif mysql # not compatible
query I rowsort label-6915
SELECT ALL - 51 * - 76 + - 87 - MAX ( DISTINCT + 97 )
----
3692

query I rowsort
SELECT DISTINCT + + 93 * 64 * - + CASE - ( + 81 ) WHEN - ( 45 ) + - 52 THEN - ( + 46 ) END * 78 + 32 * 66
----
NULL

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

query I rowsort
SELECT + + ( - - 5 ) - - 18 * 81 AS col2
----
1463

query I rowsort
SELECT ALL 44 * 84
----
3696

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

query I rowsort
SELECT - 91 * + 57 AS col2
----
-5187

query I rowsort
SELECT ALL 96 * 82 * + 68 AS col2
----
535296

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6923
SELECT ALL CASE + - 20 WHEN + 11 THEN + 50 + CAST( NULL AS DECIMAL ) WHEN - 83 / - 96 + COUNT( * ) THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-6923
SELECT ALL CASE + - 20 WHEN + 11 THEN + 50 + CAST ( NULL AS REAL ) WHEN - 83 / - 96 + COUNT ( * ) THEN NULL END
----
NULL

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6925
SELECT ALL - COUNT( DISTINCT + 46 ) DIV - 81 * 56 * 55 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-6925
SELECT ALL - COUNT ( DISTINCT + 46 ) / - 81 * 56 * 55 AS col1
----
0

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

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

query I rowsort
SELECT - ( ( 14 ) ) * + 40
----
-560

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6928
SELECT ALL CAST( 89 AS SIGNED ) AS col0, CAST( NULL AS SIGNED )
----
89
NULL

skipif mysql # not compatible
query II rowsort label-6928
SELECT ALL CAST ( 89 AS INTEGER ) AS col0, CAST ( NULL AS INTEGER )
----
89
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6929
SELECT ALL - 47 + 24 DIV 82 + COUNT( * ) * - 19
----
-66

skipif mysql # not compatible
query I rowsort label-6929
SELECT ALL - 47 + 24 / 82 + COUNT ( * ) * - 19
----
-66

query I rowsort
SELECT - 24 * ( 97 )
----
-2328

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

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

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6934
SELECT DISTINCT - 30 + - - NULLIF ( ( + - 85 ), - CASE + 57 WHEN + NULLIF ( 56, + 50 - - 65 * - COUNT( * ) ) THEN + 87 * + 33 WHEN 23 * COALESCE ( 62, - 22 ) THEN NULL ELSE 6 + CAST( NULL AS DECIMAL ) END )
----
-115

skipif mysql # not compatible
query I rowsort label-6934
SELECT DISTINCT - 30 + - - NULLIF ( ( + - 85 ), - CASE + 57 WHEN + NULLIF ( 56, + 50 - - 65 * - COUNT ( * ) ) THEN + 87 * + 33 WHEN 23 * COALESCE ( 62, - 22 ) THEN NULL ELSE 6 + CAST ( NULL AS REAL ) END )
----
-115

onlyif mysql # aggregate syntax: 
query I rowsort label-6935
SELECT COUNT( ALL - 99 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-6935
SELECT COUNT ( ALL - 99 ) AS col1
----
1

onlyif mysql # DIV for integer division: 
query II rowsort label-6936
SELECT - - 22 + 55 col2, 33 DIV - 77
----
77
0

skipif mysql # not compatible
query II rowsort label-6936
SELECT - - 22 + 55 col2, 33 / - 77
----
77
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6937
SELECT ALL + COUNT( * ) + - 64
----
-63

skipif mysql # not compatible
query I rowsort label-6937
SELECT ALL + COUNT ( * ) + - 64
----
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-6938
SELECT - + MAX( - 32 )
----
32

skipif mysql # not compatible
query I rowsort label-6938
SELECT - + MAX ( - 32 )
----
32

query II rowsort
SELECT ALL - + 4 * - 23, - 15 AS col1
----
92
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-6940
SELECT DISTINCT + + 41 + COUNT( * )
----
42

skipif mysql # not compatible
query I rowsort label-6940
SELECT DISTINCT + + 41 + COUNT ( * )
----
42

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6941
SELECT 70 / - - 28 + 65 * - 15 * - CASE 60 WHEN - 78 * + CAST( NULL AS SIGNED ) + 18 THEN - ( COUNT( * ) ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-6941
SELECT 70 / - - 28 + 65 * - 15 * - CASE 60 WHEN - 78 * + CAST ( NULL AS INTEGER ) + 18 THEN - ( COUNT ( * ) ) ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6942
SELECT MAX( ALL + 88 ) + - COUNT( * )
----
87

skipif mysql # not compatible
query I rowsort label-6942
SELECT MAX ( ALL + 88 ) + - COUNT ( * )
----
87

query I rowsort
SELECT DISTINCT 65 * - ( - 91 ) * + + 44 * - 74
----
-19259240

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6944
SELECT 20 * 9 + + - CAST( - MAX( + CASE WHEN NOT + 94 IS NULL THEN 75 ELSE NULL END ) AS SIGNED )
----
255

skipif mysql # not compatible
query I rowsort label-6944
SELECT 20 * 9 + + - CAST ( - MAX ( + CASE WHEN NOT + 94 IS NULL THEN 75 ELSE NULL END ) AS INTEGER )
----
255

query I rowsort
SELECT 58 - - 23 + - + 40 * + 32
----
-1199

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6946
SELECT ALL - 9 * COUNT( ALL 13 ) * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6946
SELECT ALL - 9 * COUNT ( ALL 13 ) * - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6947
SELECT + 44 * - ( 99 ) + - CASE 93 WHEN COUNT( * ) THEN NULL WHEN COUNT( * ) / 85 THEN + 31 + - 49 END + SUM( - 44 ) * + ( - SUM( COALESCE ( + 74, 62 ) ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-6947
SELECT + 44 * - ( 99 ) + - CASE 93 WHEN COUNT ( * ) THEN NULL WHEN COUNT ( * ) / 85 THEN + 31 + - 49 END + SUM ( - 44 ) * + ( - SUM ( COALESCE ( + 74, 62 ) ) )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6948
SELECT ( + 94 ) * COUNT( * ) DIV - ( + CAST( 61 AS SIGNED ) )
----
-1

skipif mysql # not compatible
query I rowsort label-6948
SELECT ( + 94 ) * COUNT ( * ) / - ( + CAST ( 61 AS INTEGER ) )
----
-1

query I rowsort
SELECT DISTINCT 92 * + + 22 + 63
----
2087

onlyif mysql # aggregate syntax: 
query II rowsort label-6950
SELECT ALL 50 * 49, COUNT( ALL + 76 ) AS col1
----
2450
1

skipif mysql # not compatible
query II rowsort label-6950
SELECT ALL 50 * 49, COUNT ( ALL + 76 ) AS col1
----
2450
1

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6951
SELECT + 73 * ( - CAST( NULL AS DECIMAL ) ) + + - 93 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6951
SELECT + 73 * ( - CAST ( NULL AS REAL ) ) + + - 93 AS col2
----
NULL

query II rowsort
SELECT ALL - 43 AS col2, + 98 col0
----
-43
98

query II rowsort
SELECT + 15 AS col2, + 32
----
15
32

query I rowsort
SELECT ALL 43 + + - 44
----
-1

query I rowsort
SELECT 97 + 84
----
181

query I rowsort
SELECT ALL + 15 + - 18 AS col0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-6957
SELECT - 34 * ( + + CASE 92 WHEN - 37 / - ( 12 * COUNT( * ) ) + 41 THEN CASE WHEN NOT COUNT( * ) >= 3 + 52 * - 25 THEN - 47 ELSE 99 * - 15 END WHEN + 82 / 62 + MIN( 63 ) THEN NULL ELSE NULL END ) + 55 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6957
SELECT - 34 * ( + + CASE 92 WHEN - 37 / - ( 12 * COUNT ( * ) ) + 41 THEN CASE WHEN NOT COUNT ( * ) >= 3 + 52 * - 25 THEN - 47 ELSE 99 * - 15 END WHEN + 82 / 62 + MIN ( 63 ) THEN NULL ELSE NULL END ) + 55 AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6958
SELECT ALL COUNT( * ) + - - 88 + - + 26 DIV + COALESCE ( - + ( - 49 ), 98 ) + 61 AS col2
----
150

skipif mysql # not compatible
query I rowsort label-6958
SELECT ALL COUNT ( * ) + - - 88 + - + 26 / + COALESCE ( - + ( - 49 ), 98 ) + 61 AS col2
----
150

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6959
SELECT ALL + COUNT( * ) + - 6 * CASE - + 2 WHEN - 48 * 44 + ( 4 ) / + 31 THEN NULL WHEN COUNT( * ) - + 12 THEN + COUNT( * ) + + CAST( - 38 + - COUNT( * ) * - 31 AS SIGNED ) ELSE NULL END + 62
----
NULL

skipif mysql # not compatible
query I rowsort label-6959
SELECT ALL + COUNT ( * ) + - 6 * CASE - + 2 WHEN - 48 * 44 + ( 4 ) / + 31 THEN NULL WHEN COUNT ( * ) - + 12 THEN + COUNT ( * ) + + CAST ( - 38 + - COUNT ( * ) * - 31 AS INTEGER ) ELSE NULL END + 62
----
NULL

query I rowsort
SELECT 16 + 92
----
108

query I rowsort
SELECT DISTINCT 24 * + 62
----
1488

query I rowsort
SELECT ALL CASE + + 14 WHEN + - ( - - 60 ) THEN + 48 / + 13 END + + 7 / - 64 AS col2
----
NULL

query I rowsort
SELECT DISTINCT 42 + - + 81
----
-39

query I rowsort
SELECT ALL - ( 83 ) + + - 97 AS col1
----
-180

query II rowsort
SELECT DISTINCT 91 AS col2, 20 * - 20
----
91
-400

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-6966
SELECT 93 AS col1, + COUNT( * ) * + - COUNT( * ) * - - CAST( NULL AS DECIMAL ) * 66 AS col2
----
93
NULL

skipif mysql # not compatible
query II rowsort label-6966
SELECT 93 AS col1, + COUNT ( * ) * + - COUNT ( * ) * - - CAST ( NULL AS REAL ) * 66 AS col2
----
93
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6967
SELECT DISTINCT - 82 DIV - 33 + COUNT( * ) + + - 83 DIV + 20 + + 36 AS col2
----
35

skipif mysql # not compatible
query I rowsort label-6967
SELECT DISTINCT - 82 / - 33 + COUNT ( * ) + + - 83 / + 20 + + 36 AS col2
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-6968
SELECT ALL - MIN( ALL + - 64 ) / + + 46 + + CASE COALESCE ( 32, 19 ) WHEN ( - 26 ) THEN 59 + COUNT( * ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-6968
SELECT ALL - MIN ( ALL + - 64 ) / + + 46 + + CASE COALESCE ( 32, 19 ) WHEN ( - 26 ) THEN 59 + COUNT ( * ) ELSE NULL END
----
NULL

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

skipif mysql # not compatible
query I rowsort label-6969
SELECT - 26 / - 73
----
0

query I rowsort
SELECT DISTINCT + 32 - + + 71
----
-39

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6972
SELECT ( + + 29 ) / - CAST( ( 46 ) AS SIGNED ) - 14 * - ( + 6 * CAST( NULL AS SIGNED ) + + COUNT( * ) * COUNT( * ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6972
SELECT ( + + 29 ) / - CAST ( ( 46 ) AS INTEGER ) - 14 * - ( + 6 * CAST ( NULL AS INTEGER ) + + COUNT ( * ) * COUNT ( * ) ) AS col1
----
NULL

query I rowsort
SELECT ALL + + 39 * + 34
----
1326

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6975
SELECT ALL + + 64 - COALESCE ( 88, - - 41, 31 + - 64 ) + + COALESCE ( 57 - - 46 DIV + 34, 12 ) * - 41
----
-2402

skipif mysql # not compatible
query I rowsort label-6975
SELECT ALL + + 64 - COALESCE ( 88, - - 41, 31 + - 64 ) + + COALESCE ( 57 - - 46 / + 34, 12 ) * - 41
----
-2402

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6976
SELECT ALL - 69 * - 64 + + CAST( NULL AS SIGNED ) * + - 52 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6976
SELECT ALL - 69 * - 64 + + CAST ( NULL AS INTEGER ) * + - 52 AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6977
SELECT + 43 DIV 49 * 63 + + 2 AS col0
----
2

skipif mysql # not compatible
query I rowsort label-6977
SELECT + 43 / 49 * 63 + + 2 AS col0
----
2

query I rowsort
SELECT DISTINCT - 36 * + 81
----
-2916

query I rowsort
SELECT DISTINCT - NULLIF ( + 63, + 55 + - NULLIF ( - ( 30 ), + 45 ) ) AS col1
----
-63

onlyif mysql # DIV for integer division: 
query I rowsort label-6980
SELECT ALL + 98 DIV + 84
----
1

skipif mysql # not compatible
query I rowsort label-6980
SELECT ALL + 98 / + 84
----
1

query I rowsort
SELECT ( 87 ) * - - 13 * 63
----
71253

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6983
SELECT DISTINCT - 91 + - + 16 * + 69 + - 94 AS col2, - 74 * + 62 * - 98 + + 4 / + CASE WHEN ( - 39 ) * 41 + CASE 38 + AVG ( DISTINCT 22 + - NULLIF ( - CAST( NULL AS SIGNED ), 74 ) ) WHEN 84 + + 5 THEN + 75 END * 59 IS NOT NULL THEN COUNT( * ) * - 50 END AS col0
----
-1289
NULL

skipif mysql # not compatible
query II rowsort label-6983
SELECT DISTINCT - 91 + - + 16 * + 69 + - 94 AS col2, - 74 * + 62 * - 98 + + 4 / + CASE WHEN ( - 39 ) * 41 + CASE 38 + AVG ( DISTINCT 22 + - NULLIF ( - CAST ( NULL AS INTEGER ), 74 ) ) WHEN 84 + + 5 THEN + 75 END * 59 IS NOT NULL THEN COUNT ( * ) * - 50 END AS col0
----
-1289
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6984
SELECT SUM( ALL + 70 ) * + 90 + - COALESCE ( 85, COALESCE ( 97, + MIN( 97 ) DIV 53 + 73, + 34 ) + + 24 ) + 62 * 25
----
7765

skipif mysql # not compatible
query I rowsort label-6984
SELECT SUM ( ALL + 70 ) * + 90 + - COALESCE ( 85, COALESCE ( 97, + MIN ( 97 ) / 53 + 73, + 34 ) + + 24 ) + 62 * 25
----
7765

onlyif mysql # aggregate syntax: 
query II rowsort label-6985
SELECT MIN( 15 ) AS col1, COUNT( * ) + + MIN( ALL - 24 ) AS col2
----
15
-23

skipif mysql # not compatible
query II rowsort label-6985
SELECT MIN ( 15 ) AS col1, COUNT ( * ) + + MIN ( ALL - 24 ) AS col2
----
15
-23

query I rowsort
SELECT 72 * - COALESCE ( 47, + + 14 ) col0
----
-3384

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

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

query I rowsort
SELECT DISTINCT 8 * + ( + - 78 )
----
-624

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

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

query I rowsort
SELECT ALL + 74 + + - 9 * - CASE + 79 WHEN + - 50 THEN + NULLIF ( - NULLIF ( + 49, 59 ), - 58 / 9 ) + - 6 / 11 END * + 6 AS col2
----
NULL

query I rowsort
SELECT 7 * + ( - 16 ) AS col1
----
-112

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6992
SELECT ALL 37 + 37 + + - 78 * 80 + CASE + CAST( NULL AS SIGNED ) WHEN + SUM( DISTINCT 20 ) * - COUNT( * ) THEN - 33 + + 36 ELSE NULL END * ( + 99 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6992
SELECT ALL 37 + 37 + + - 78 * 80 + CASE + CAST ( NULL AS INTEGER ) WHEN + SUM ( DISTINCT 20 ) * - COUNT ( * ) THEN - 33 + + 36 ELSE NULL END * ( + 99 )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6993
SELECT ALL ( CAST( + 92 AS SIGNED ) ) DIV - 72 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-6993
SELECT ALL ( CAST ( + 92 AS INTEGER ) ) / - 72 AS col2
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-6994
SELECT 87 * + 69 * + ( + + 60 ) col2, MAX( + 32 )
----
360180
32

skipif mysql # not compatible
query II rowsort label-6994
SELECT 87 * + 69 * + ( + + 60 ) col2, MAX ( + 32 )
----
360180
32

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6995
SELECT NULLIF ( + 38, + 38 + ( 24 ) ) * - 67 * + 95 + + CAST( + CAST( NULL AS SIGNED ) AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-6995
SELECT NULLIF ( + 38, + 38 + ( 24 ) ) * - 67 * + 95 + + CAST ( + CAST ( NULL AS INTEGER ) AS REAL )
----
NULL

query II rowsort
SELECT ALL - 61 col0, + 50 AS col1
----
-61
50

onlyif mysql # aggregate syntax: 
query II rowsort label-6997
SELECT 84 AS col1, COUNT( * ) * - 52
----
84
-52

skipif mysql # not compatible
query II rowsort label-6997
SELECT 84 AS col1, COUNT ( * ) * - 52
----
84
-52

query I rowsort
SELECT ALL ( 11 ) + 20
----
31

query I rowsort
SELECT ALL COALESCE ( + + 85, 14 )
----
85

onlyif mysql # DIV for integer division: 
query I rowsort label-7000
SELECT DISTINCT NULLIF ( - 63, - - 30 * + 47 - - 26 * - 68 ) - - 22 DIV - 60
----
-63

skipif mysql # not compatible
query I rowsort label-7000
SELECT DISTINCT NULLIF ( - 63, - - 30 * + 47 - - 26 * - 68 ) - - 22 / - 60
----
-63

onlyif mysql # aggregate syntax: 
query II rowsort label-7001
SELECT ALL 93 AS col1, - SUM( ALL + 13 ) AS col2
----
93
-13

skipif mysql # not compatible
query II rowsort label-7001
SELECT ALL 93 AS col1, - SUM ( ALL + 13 ) AS col2
----
93
-13

query II rowsort
SELECT DISTINCT + 98 AS col2, + 25 * COALESCE ( + 4, - 71 * 17, ( 51 ) * 80 ) * + 15
----
98
1500

query I rowsort
SELECT ALL + - 4 * 47
----
-188

query II rowsort
SELECT DISTINCT 2 * + - 5 AS col0, - COALESCE ( 59, + 41 + + 38 )
----
-10
-59

query I rowsort
SELECT ALL + 59 * - ( - 60 ) AS col0
----
3540

query I rowsort
SELECT + + 54 + 81
----
135

onlyif mysql # aggregate syntax: 
query I rowsort label-7007
SELECT + 26 + 12 - COALESCE ( + + 45, - - 31 + ( + COUNT( * ) ) ) + 0 col2
----
-7

skipif mysql # not compatible
query I rowsort label-7007
SELECT + 26 + 12 - COALESCE ( + + 45, - - 31 + ( + COUNT ( * ) ) ) + 0 col2
----
-7

onlyif mysql # DIV for integer division: 
query I rowsort label-7008
SELECT ALL + 76 DIV - 14 AS col1
----
-5

skipif mysql # not compatible
query I rowsort label-7008
SELECT ALL + 76 / - 14 AS col1
----
-5

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

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

query I rowsort
SELECT - - 38 + + - 18 + + ( - 64 ) AS col2
----
-44

query I rowsort
SELECT ALL + 27 * + 75
----
2025

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7012
SELECT - - COUNT( * ) DIV 22 * - 24 * 8 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-7012
SELECT - - COUNT ( * ) / 22 * - 24 * 8 AS col0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7013
SELECT ALL + ( + - COUNT( * ) ) col1, 33 DIV 63
----
-1
0

skipif mysql # not compatible
query II rowsort label-7013
SELECT ALL + ( + - COUNT ( * ) ) col1, 33 / 63
----
-1
0

query II rowsort
SELECT + 97 AS col1, - 43
----
97
-43

onlyif mysql # aggregate syntax: 
query II rowsort label-7015
SELECT DISTINCT + ( + - 84 ) * COUNT( * ) + - 16, 70 * - 61 AS col1
----
-100
-4270

skipif mysql # not compatible
query II rowsort label-7015
SELECT DISTINCT + ( + - 84 ) * COUNT ( * ) + - 16, 70 * - 61 AS col1
----
-100
-4270

onlyif mysql # aggregate syntax: 
query I rowsort label-7016
SELECT - 44 + + - SUM( ALL - 78 )
----
34

skipif mysql # not compatible
query I rowsort label-7016
SELECT - 44 + + - SUM ( ALL - 78 )
----
34

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7017
SELECT ALL - 87 * + 14 / CAST( NULL AS SIGNED ) * - 12 / - + ( 56 ) * + - CASE + 38 WHEN + 19 / CAST( NULL AS SIGNED ) + - SUM( DISTINCT - 57 + 30 ) * - 86 THEN 12 / 19 + 20 WHEN 7 THEN NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7017
SELECT ALL - 87 * + 14 / CAST ( NULL AS INTEGER ) * - 12 / - + ( 56 ) * + - CASE + 38 WHEN + 19 / CAST ( NULL AS INTEGER ) + - SUM ( DISTINCT - 57 + 30 ) * - 86 THEN 12 / 19 + 20 WHEN 7 THEN NULL END AS col2
----
NULL

query I rowsort
SELECT NULLIF ( - 75, 14 ) AS col0
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-7019
SELECT ALL - 93 * + 31 * 59 + - CASE - 58 WHEN + COALESCE ( + 86, ( 93 ) - 61 ) THEN NULL WHEN - 61 THEN SUM( - 4 ) + + 67 ELSE NULL END + + COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7019
SELECT ALL - 93 * + 31 * 59 + - CASE - 58 WHEN + COALESCE ( + 86, ( 93 ) - 61 ) THEN NULL WHEN - 61 THEN SUM ( - 4 ) + + 67 ELSE NULL END + + COUNT ( * ) AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7020
SELECT DISTINCT - 10 * - 58 * 75 / - 70 * 92 * - + ( AVG ( 72 ) ) * - CAST( NULL AS SIGNED ) + 28 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7020
SELECT DISTINCT - 10 * - 58 * 75 / - 70 * 92 * - + ( AVG ( 72 ) ) * - CAST ( NULL AS INTEGER ) + 28 AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7021
SELECT - 52 DIV - 48 + + - CAST( - + 26 AS SIGNED )
----
27

skipif mysql # not compatible
query I rowsort label-7021
SELECT - 52 / - 48 + + - CAST ( - + 26 AS INTEGER )
----
27

query I rowsort
SELECT DISTINCT - 77 * - + 70 + 31 AS col0
----
5421

query I rowsort
SELECT DISTINCT + NULLIF ( - + 68, 70 )
----
-68

query I rowsort
SELECT ALL - 16 * + 42 + - 14 AS col0
----
-686

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7025
SELECT - 13 + CAST( 9 AS SIGNED ) AS col1
----
-4

skipif mysql # not compatible
query I rowsort label-7025
SELECT - 13 + CAST ( 9 AS INTEGER ) AS col1
----
-4

query I rowsort
SELECT - ( + COALESCE ( 7, - 27, + 53 ) ) * - + 27 AS col2
----
189

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7028
SELECT + 26 * + CASE + NULLIF ( + 64, + 3 ) WHEN 5 THEN 80 END * + CAST( NULL AS SIGNED ) + 89
----
NULL

skipif mysql # not compatible
query I rowsort label-7028
SELECT + 26 * + CASE + NULLIF ( + 64, + 3 ) WHEN 5 THEN 80 END * + CAST ( NULL AS INTEGER ) + 89
----
NULL

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7030
SELECT DISTINCT - 99 * + - 29 * + - CAST( + + 40 AS SIGNED ) * + ( + 19 ) + 57 AS col0
----
-2181903

skipif mysql # not compatible
query I rowsort label-7030
SELECT DISTINCT - 99 * + - 29 * + - CAST ( + + 40 AS INTEGER ) * + ( + 19 ) + 57 AS col0
----
-2181903

onlyif mysql # aggregate syntax: 
query I rowsort label-7031
SELECT ALL + COUNT( * ) * - 85 col2
----
-85

skipif mysql # not compatible
query I rowsort label-7031
SELECT ALL + COUNT ( * ) * - 85 col2
----
-85

query I rowsort
SELECT COALESCE ( + - 10, - NULLIF ( - 63, - AVG ( 44 ) - - 68 ) + + 64 )
----
-10

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7033
SELECT ALL + COUNT( * ) DIV - - COALESCE ( + 26, - COUNT( * ) * + 55 * 5 * 4 + + COUNT( * ) + + 80, 28 * - 37 ) * - 17
----
0

skipif mysql # not compatible
query I rowsort label-7033
SELECT ALL + COUNT ( * ) / - - COALESCE ( + 26, - COUNT ( * ) * + 55 * 5 * 4 + + COUNT ( * ) + + 80, 28 * - 37 ) * - 17
----
0

query II rowsort
SELECT - 36 + - - 84, 31 AS col2
----
48
31

query I rowsort
SELECT ALL + 26 * + - 54 * - + 90 AS col1
----
126360

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7036
SELECT - 88 * CASE - 49 WHEN + 56 THEN + CAST( - MAX( ALL CAST( 58 AS SIGNED ) ) AS SIGNED ) + + SUM( 3 ) END * 80 + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-7036
SELECT - 88 * CASE - 49 WHEN + 56 THEN + CAST ( - MAX ( ALL CAST ( 58 AS INTEGER ) ) AS INTEGER ) + + SUM ( 3 ) END * 80 + COUNT ( * )
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7038
SELECT + 35 * - COUNT( * ) + 20
----
-15

skipif mysql # not compatible
query I rowsort label-7038
SELECT + 35 * - COUNT ( * ) + 20
----
-15

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7039
SELECT + 44 + 20 * - - COUNT( * ) DIV 69 AS col1
----
44

skipif mysql # not compatible
query I rowsort label-7039
SELECT + 44 + 20 * - - COUNT ( * ) / 69 AS col1
----
44

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7040
SELECT COALESCE ( 99, CAST( NULL AS SIGNED ) + - 13 - + - 18, - 73 * - 11 ) AS col1
----
99

skipif mysql # not compatible
query I rowsort label-7040
SELECT COALESCE ( 99, CAST ( NULL AS INTEGER ) + - 13 - + - 18, - 73 * - 11 ) AS col1
----
99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7041
SELECT + ( 26 ) + CAST( NULL AS SIGNED ) + ( - 55 ) / ( + - 21 ) * COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-7041
SELECT + ( 26 ) + CAST ( NULL AS INTEGER ) + ( - 55 ) / ( + - 21 ) * COUNT ( * )
----
NULL

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

onlyif mysql # aggregate syntax: 
query II rowsort label-7043
SELECT ALL - 47 * 3 AS col1, + NULLIF ( + + 86, + COUNT( * ) ) + + 32
----
-141
118

skipif mysql # not compatible
query II rowsort label-7043
SELECT ALL - 47 * 3 AS col1, + NULLIF ( + + 86, + COUNT ( * ) ) + + 32
----
-141
118

query I rowsort
SELECT - NULLIF ( + 46, + 45 ) AS col0
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-7045
SELECT DISTINCT 3 + - COUNT( ALL - 96 )
----
2

skipif mysql # not compatible
query I rowsort label-7045
SELECT DISTINCT 3 + - COUNT ( ALL - 96 )
----
2

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

skipif mysql # not compatible
query I rowsort label-7046
SELECT + - 92 * COUNT ( DISTINCT - 37 ) AS col1
----
-92

onlyif mysql # aggregate syntax: 
query II rowsort label-7047
SELECT ALL 21 + - - 23, + 68 / - + MAX( - - CASE 85 WHEN - + 88 THEN - 99 END ) - + 14 AS col2
----
44
NULL

skipif mysql # not compatible
query II rowsort label-7047
SELECT ALL 21 + - - 23, + 68 / - + MAX ( - - CASE 85 WHEN - + 88 THEN - 99 END ) - + 14 AS col2
----
44
NULL

query II rowsort
SELECT DISTINCT + 54 + + NULLIF ( - 4, + 98 ) * + 28 AS col2, - 7 * + + 48 AS col0
----
-58
-336

query I rowsort
SELECT DISTINCT 48 + - + 36
----
12

query I rowsort
SELECT + 17 * - 88
----
-1496

onlyif mysql # aggregate syntax: 
query I rowsort label-7051
SELECT - MAX( - 92 ) * 52 + + 54 - + 71 + - 25 * 9 - COUNT( * ) AS col0
----
4541

skipif mysql # not compatible
query I rowsort label-7051
SELECT - MAX ( - 92 ) * 52 + + 54 - + 71 + - 25 * 9 - COUNT ( * ) AS col0
----
4541

query I rowsort
SELECT - - NULLIF ( + 90, + 7 + - + 45 )
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-7053
SELECT + NULLIF ( + - NULLIF ( 58, NULLIF ( 12, 74 ) + - 47 ), + - COUNT( 46 ) ) + 68 col2
----
10

skipif mysql # not compatible
query I rowsort label-7053
SELECT + NULLIF ( + - NULLIF ( 58, NULLIF ( 12, 74 ) + - 47 ), + - COUNT ( 46 ) ) + 68 col2
----
10

query I rowsort
SELECT + 8 * + - 88 * 11
----
-7744

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7055
SELECT 83 * 24 + + CAST( + + 44 AS SIGNED ) AS col1
----
2036

skipif mysql # not compatible
query I rowsort label-7055
SELECT 83 * 24 + + CAST ( + + 44 AS INTEGER ) AS col1
----
2036

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7056
SELECT ALL 29 / 34 + - 58 + + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-7056
SELECT ALL 29 / 34 + - 58 + + CAST ( NULL AS REAL )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7057
SELECT + 72 + COUNT( * ) AS col0
----
73

skipif mysql # not compatible
query I rowsort label-7057
SELECT + 72 + COUNT ( * ) AS col0
----
73

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7058
SELECT ALL + CASE - 23 WHEN - + 47 * CAST( NULL AS SIGNED ) THEN + 80 / 54 / + 95 WHEN + 22 - 38 THEN NULL END * - ( - 56 * 81 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7058
SELECT ALL + CASE - 23 WHEN - + 47 * CAST ( NULL AS INTEGER ) THEN + 80 / 54 / + 95 WHEN + 22 - 38 THEN NULL END * - ( - 56 * 81 ) AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7059
SELECT DISTINCT + CAST( NULL AS SIGNED ) * - 38 * - + ( + + ( + 76 ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7059
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * - 38 * - + ( + + ( + 76 ) ) AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7060
SELECT DISTINCT - 73 DIV - 93 * + COUNT( * ) - - 63 + + - 77 + - - 13 * 73 * + - 79 AS col1
----
-74985

skipif mysql # not compatible
query I rowsort label-7060
SELECT DISTINCT - 73 / - 93 * + COUNT ( * ) - - 63 + + - 77 + - - 13 * 73 * + - 79 AS col1
----
-74985

onlyif mysql # aggregate syntax: 
query I rowsort label-7061
SELECT - 18 * + ( + - MIN( DISTINCT 75 ) ) * - ( ( - 66 ) )
----
89100

skipif mysql # not compatible
query I rowsort label-7061
SELECT - 18 * + ( + - MIN ( DISTINCT 75 ) ) * - ( ( - 66 ) )
----
89100

query I rowsort
SELECT ALL COALESCE ( 29, + 79 - - 38 ) * 83 * + 39
----
93873

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7063
SELECT DISTINCT + COALESCE ( + 74, 31 - - COUNT( * ) + + 28 + 82 DIV - - MAX( + 70 ) ) * 46
----
3404

skipif mysql # not compatible
query I rowsort label-7063
SELECT DISTINCT + COALESCE ( + 74, 31 - - COUNT ( * ) + + 28 + 82 / - - MAX ( + 70 ) ) * 46
----
3404

onlyif mysql # aggregate syntax: 
query I rowsort label-7064
SELECT 51 * + + MIN( + + 57 ) AS col0
----
2907

skipif mysql # not compatible
query I rowsort label-7064
SELECT 51 * + + MIN ( + + 57 ) AS col0
----
2907

query I rowsort
SELECT - 46 * 12 - + + ( - + ( + 56 ) ) AS col0
----
-496

onlyif mysql # aggregate syntax: 
query I rowsort label-7066
SELECT + MIN( 8 ) AS col0
----
8

skipif mysql # not compatible
query I rowsort label-7066
SELECT + MIN ( 8 ) AS col0
----
8

onlyif mysql # DIV for integer division: 
query I rowsort label-7067
SELECT ALL - 42 DIV + 47 + - 57 col2
----
-57

skipif mysql # not compatible
query I rowsort label-7067
SELECT ALL - 42 / + 47 + - 57 col2
----
-57

onlyif mysql # aggregate syntax: 
query II rowsort label-7068
SELECT + MAX( ALL - 26 ) * - + 10 AS col0, + 90
----
260
90

skipif mysql # not compatible
query II rowsort label-7068
SELECT + MAX ( ALL - 26 ) * - + 10 AS col0, + 90
----
260
90

onlyif mysql # aggregate syntax: 
query II rowsort label-7069
SELECT SUM( + ( - - 23 ) ), 89 AS col0
----
23
89

skipif mysql # not compatible
query II rowsort label-7069
SELECT SUM ( + ( - - 23 ) ), 89 AS col0
----
23
89

query I rowsort
SELECT DISTINCT - - 20 * - 59 AS col1
----
-1180

query I rowsort
SELECT - 95 - 38 col1
----
-133

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7072
SELECT ALL - - CASE 6 WHEN + + 51 * - - 74 + - - CAST( - - 0 AS SIGNED ) THEN + + 43 WHEN 52 * 50 - + 13 THEN NULL ELSE NULL END * 13 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7072
SELECT ALL - - CASE 6 WHEN + + 51 * - - 74 + - - CAST ( - - 0 AS INTEGER ) THEN + + 43 WHEN 52 * 50 - + 13 THEN NULL ELSE NULL END * 13 AS col2
----
NULL

query I rowsort
SELECT 12 * 52 + + 55
----
679

query I rowsort
SELECT ALL 52 + + + 84 - - 18 AS col0
----
154

onlyif mysql # DIV for integer division: 
query I rowsort label-7075
SELECT - 35 DIV 2
----
-17

skipif mysql # not compatible
query I rowsort label-7075
SELECT - 35 / 2
----
-17

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7076
SELECT CASE - 71 WHEN - - 41 THEN + + 0 * + + CAST( NULL AS SIGNED ) END + 66
----
NULL

skipif mysql # not compatible
query I rowsort label-7076
SELECT CASE - 71 WHEN - - 41 THEN + + 0 * + + CAST ( NULL AS INTEGER ) END + 66
----
NULL

query II rowsort
SELECT ALL + 79, + 7 * - - 67 * - + 53 * + - 54 col2
----
79
1342278

query I rowsort
SELECT + 88 + - 49 + ( + 77 ) col2
----
116

query I rowsort
SELECT ALL + NULLIF ( - 71, 72 + - 33 / 11 * + + 54 )
----
-71

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

skipif mysql # not compatible
query I rowsort label-7080
SELECT + CAST ( NULL AS REAL ) + - + 50 AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-7081
SELECT + 71 DIV + - 84 * + 54 * - 36, - 32 AS col2
----
0
-32

skipif mysql # not compatible
query II rowsort label-7081
SELECT + 71 / + - 84 * + 54 * - 36, - 32 AS col2
----
0
-32

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7082
SELECT DISTINCT 26, - 7 DIV - 84 DIV COUNT( * ) AS col2
----
26
0

skipif mysql # not compatible
query II rowsort label-7082
SELECT DISTINCT 26, - 7 / - 84 / COUNT ( * ) AS col2
----
26
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7083
SELECT ALL 50 + + - COUNT( * ) AS col0
----
49

skipif mysql # not compatible
query I rowsort label-7083
SELECT ALL 50 + + - COUNT ( * ) AS col0
----
49

query I rowsort
SELECT ALL + 75 + - 98 * - - 56
----
-5413

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7085
SELECT 61 + + + 48 - - + 65 + - 58 + COALESCE ( 43, + 59 ) + 20 + NULLIF ( - 16, - 31 * + COUNT( * ) + 77 ) DIV - 31 AS col2
----
179

skipif mysql # not compatible
query I rowsort label-7085
SELECT 61 + + + 48 - - + 65 + - 58 + COALESCE ( 43, + 59 ) + 20 + NULLIF ( - 16, - 31 * + COUNT ( * ) + 77 ) / - 31 AS col2
----
179

query II rowsort
SELECT 1 + + 5 AS col1, 60
----
6
60

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7087
SELECT DISTINCT CAST( - ( + 83 ) AS SIGNED ) * - 18 * - 69
----
-103086

skipif mysql # not compatible
query I rowsort label-7087
SELECT DISTINCT CAST ( - ( + 83 ) AS INTEGER ) * - 18 * - 69
----
-103086

query I rowsort
SELECT ALL 91 - + + 87
----
4

query I rowsort
SELECT 81 * - + 7 * 16
----
-9072

query I rowsort
SELECT 87 + - - 9
----
96

query I rowsort
SELECT DISTINCT 26 * - 76
----
-1976

onlyif mysql # DIV for integer division: 
query II rowsort label-7092
SELECT 0 DIV 50 AS col0, + 54 + - - 32
----
0
86

skipif mysql # not compatible
query II rowsort label-7092
SELECT 0 / 50 AS col0, + 54 + - - 32
----
0
86

onlyif mysql # DIV for integer division: 
query I rowsort label-7093
SELECT 61 DIV - + 13 + - 17 + 4 + - 53 * - 37
----
1944

skipif mysql # not compatible
query I rowsort label-7093
SELECT 61 / - + 13 + - 17 + 4 + - 53 * - 37
----
1944

onlyif mysql # aggregate syntax: 
query I rowsort label-7094
SELECT ALL 60 * COUNT( ALL - - 65 ) col1
----
60

skipif mysql # not compatible
query I rowsort label-7094
SELECT ALL 60 * COUNT ( ALL - - 65 ) col1
----
60

query I rowsort
SELECT 45 + + + 65
----
110

query I rowsort
SELECT DISTINCT 90 * 98
----
8820

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7098
SELECT COALESCE ( + - 1, + 36 * + ( + - COUNT( * ) ), ( - 52 ) / - 99 ) - CAST( NULL AS SIGNED ) + 7 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7098
SELECT COALESCE ( + - 1, + 36 * + ( + - COUNT ( * ) ), ( - 52 ) / - 99 ) - CAST ( NULL AS INTEGER ) + 7 AS col2
----
NULL

query II rowsort
SELECT 26 * + 44 AS col0, - 54 AS col0
----
1144
-54

onlyif mysql # DIV for integer division: 
query I rowsort label-7100
SELECT DISTINCT - 80 DIV + - 7 * - 1
----
-11

skipif mysql # not compatible
query I rowsort label-7100
SELECT DISTINCT - 80 / + - 7 * - 1
----
-11

query I rowsort
SELECT ALL - NULLIF ( 94, + 91 ) col1
----
-94

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

skipif mysql # not compatible
query I rowsort label-7102
SELECT ALL 77 / - COUNT ( * ) AS col0
----
-77

onlyif mysql # DIV for integer division: 
query I rowsort label-7103
SELECT 16 DIV + 25 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-7103
SELECT 16 / + 25 AS col0
----
0

query I rowsort
SELECT 53 * + + 27 + - + 90
----
1341

query II rowsort
SELECT 57 - - NULLIF ( - + 64, - 17 ), 34 + - 7 AS col1
----
-7
27

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

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7109
SELECT + 26 * - + CASE + COUNT( * ) WHEN - CASE NULLIF ( + - ( 38 ), CASE + ( + 68 ) WHEN 82 + 30 THEN - 32 + COUNT( * ) * 75 ELSE NULL END ) WHEN 44 * - 7 THEN 99 * + COUNT( * ) WHEN 78 THEN 23 + - 18 END THEN 44 ELSE NULL END - CAST( - ( + 68 ) + 63 AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7109
SELECT + 26 * - + CASE + COUNT ( * ) WHEN - CASE NULLIF ( + - ( 38 ), CASE + ( + 68 ) WHEN 82 + 30 THEN - 32 + COUNT ( * ) * 75 ELSE NULL END ) WHEN 44 * - 7 THEN 99 * + COUNT ( * ) WHEN 78 THEN 23 + - 18 END THEN 44 ELSE NULL END - CAST ( - ( + 68 ) + 63 AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7110
SELECT ( - 21 ) * COUNT( * ) + - 8 + 31 DIV - MIN( ALL + 15 ) AS col2
----
-31

skipif mysql # not compatible
query I rowsort label-7110
SELECT ( - 21 ) * COUNT ( * ) + - 8 + 31 / - MIN ( ALL + 15 ) AS col2
----
-31

query I rowsort
SELECT + 70 * - 52 + + 38 * - - 26
----
-2652

query I rowsort
SELECT ALL - + 17 + - 3 AS col1
----
-20

query II rowsort
SELECT - 79 + + - 15, 91 col1
----
-94
91

query I rowsort
SELECT DISTINCT - 53 + 44 + + 63 AS col2
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-7115
SELECT ALL - MAX( ALL + 88 ) AS col2
----
-88

skipif mysql # not compatible
query I rowsort label-7115
SELECT ALL - MAX ( ALL + 88 ) AS col2
----
-88

query I rowsort
SELECT ALL - + 42 + + + 13 - - 63
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-7117
SELECT - 34 * + + 12 * + 75 + 84 * + + 4 * CASE - - 53 WHEN + COALESCE ( - 80, 82, + SUM( DISTINCT + 54 ) + 3 ) THEN 95 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7117
SELECT - 34 * + + 12 * + 75 + 84 * + + 4 * CASE - - 53 WHEN + COALESCE ( - 80, 82, + SUM ( DISTINCT + 54 ) + 3 ) THEN 95 END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7118
SELECT ALL - + 25 + + + 80 * + NULLIF ( - 70, - COUNT( * ) * 12 / - 1 ) AS col0
----
-5625

skipif mysql # not compatible
query I rowsort label-7118
SELECT ALL - + 25 + + + 80 * + NULLIF ( - 70, - COUNT ( * ) * 12 / - 1 ) AS col0
----
-5625

onlyif mysql # aggregate syntax: 
query I rowsort label-7119
SELECT - 19 + MIN( - 87 )
----
-106

skipif mysql # not compatible
query I rowsort label-7119
SELECT - 19 + MIN ( - 87 )
----
-106

query I rowsort
SELECT ALL - + 50 + - + 32 * - 50 AS col2
----
1550

query I rowsort
SELECT 6 * + 68 AS col1
----
408

onlyif mysql # aggregate syntax: 
query II rowsort label-7122
SELECT + 42 + - + COUNT( * ) AS col2, + 32 AS col2
----
41
32

skipif mysql # not compatible
query II rowsort label-7122
SELECT + 42 + - + COUNT ( * ) AS col2, + 32 AS col2
----
41
32

onlyif mysql # aggregate syntax: 
query I rowsort label-7123
SELECT - CASE + SUM( DISTINCT + 89 ) WHEN - 97 + - - ( - AVG ( DISTINCT + 40 ) ) * + COUNT( * ) - + + 29 THEN NULL WHEN 40 THEN 75 / - MIN( 57 ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7123
SELECT - CASE + SUM ( DISTINCT + 89 ) WHEN - 97 + - - ( - AVG ( DISTINCT + 40 ) ) * + COUNT ( * ) - + + 29 THEN NULL WHEN 40 THEN 75 / - MIN ( 57 ) END AS col1
----
NULL

query I rowsort
SELECT ( + 18 ) + - + 1 * - 22 AS col2
----
40

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7125
SELECT ALL + - 37 + + CASE + 24 WHEN NULLIF ( - 26, - 93 ) - - 75 + - CAST( + + COUNT( 13 ) AS SIGNED ) * 47 THEN ( + 91 ) * - 32 + 29 * - 59 WHEN - 13 + 12 THEN + SUM( DISTINCT - 7 ) END + + MAX( 1 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7125
SELECT ALL + - 37 + + CASE + 24 WHEN NULLIF ( - 26, - 93 ) - - 75 + - CAST ( + + COUNT ( 13 ) AS INTEGER ) * 47 THEN ( + 91 ) * - 32 + 29 * - 59 WHEN - 13 + 12 THEN + SUM ( DISTINCT - 7 ) END + + MAX ( 1 ) AS col2
----
NULL

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

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

query I rowsort
SELECT DISTINCT - - ( + 14 ) + 20 * - - 72 col1
----
1454

query I rowsort
SELECT 81 * + 95
----
7695

onlyif mysql # aggregate syntax: 
query I rowsort label-7129
SELECT 17 * CASE 53 WHEN COUNT( * ) + - 25 + 48 * ( CASE - - 56 WHEN + 72 * 19 THEN - 60 WHEN - 15 THEN 42 + - 60 / 54 END ) * 29 + 8 THEN - 88 END * - 37 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7129
SELECT 17 * CASE 53 WHEN COUNT ( * ) + - 25 + 48 * ( CASE - - 56 WHEN + 72 * 19 THEN - 60 WHEN - 15 THEN 42 + - 60 / 54 END ) * 29 + 8 THEN - 88 END * - 37 AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7130
SELECT 24, - 69 + + CAST( + - 80 AS SIGNED ) AS col1
----
24
-149

skipif mysql # not compatible
query II rowsort label-7130
SELECT 24, - 69 + + CAST ( + - 80 AS INTEGER ) AS col1
----
24
-149

query I rowsort
SELECT 7 * + - 27
----
-189

onlyif mysql # aggregate syntax: 
query I rowsort label-7132
SELECT DISTINCT CASE + SUM( ALL - 70 ) WHEN - SUM( ALL 95 ) THEN + + 16 WHEN - 84 THEN NULL END / - 44
----
NULL

skipif mysql # not compatible
query I rowsort label-7132
SELECT DISTINCT CASE + SUM ( ALL - 70 ) WHEN - SUM ( ALL 95 ) THEN + + 16 WHEN - 84 THEN NULL END / - 44
----
NULL

query I rowsort
SELECT 16 * - 86 * - + 13
----
17888

query I rowsort
SELECT COALESCE ( - 93, + - 36 ) AS col1
----
-93

query I rowsort
SELECT + 36 + 62
----
98

query I rowsort
SELECT + 13 * + - 47 AS col0
----
-611

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7138
SELECT COALESCE ( CAST( NULL AS SIGNED ), + - ( + SUM( DISTINCT CASE - - 64 WHEN + 82 THEN - 83 * + - 96 WHEN - 2 THEN NULL ELSE NULL END ) ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7138
SELECT COALESCE ( CAST ( NULL AS INTEGER ), + - ( + SUM ( DISTINCT CASE - - 64 WHEN + 82 THEN - 83 * + - 96 WHEN - 2 THEN NULL ELSE NULL END ) ) ) AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7139
SELECT 67 * + + MIN( DISTINCT + - 15 ) DIV 1 * + 61 * + COUNT( * ) + 40
----
-61265

skipif mysql # not compatible
query I rowsort label-7139
SELECT 67 * + + MIN ( DISTINCT + - 15 ) / 1 * + 61 * + COUNT ( * ) + 40
----
-61265

query I rowsort
SELECT - 77 * - - 78 AS col0
----
-6006

query I rowsort
SELECT + ( - 56 ) - + ( + 4 ) * + + 5
----
-76

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7143
SELECT ALL 38 * - 53 * + 4 * - 38 + 57 + - + 28 * COUNT( * ) * - 42 + + ( - + 15 ) AS col2
----
307346

skipif mysql # not compatible
query I rowsort label-7143
SELECT ALL 38 * - 53 * + 4 * - 38 + 57 + - + 28 * COUNT ( * ) * - 42 + + ( - + 15 ) AS col2
----
307346

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7145
SELECT ALL - 30 * 23 DIV + + 53 + - - 92 + - COUNT( * ) * + - 53 AS col2
----
132

skipif mysql # not compatible
query I rowsort label-7145
SELECT ALL - 30 * 23 / + + 53 + - - 92 + - COUNT ( * ) * + - 53 AS col2
----
132

query II rowsort
SELECT + - 4 * - 50 - - 67 AS col2, 33 AS col1
----
267
33

onlyif mysql # aggregate syntax: 
query II rowsort label-7147
SELECT ALL - 51 * + 13 + 79 - + COUNT( + 23 ), NULLIF ( COUNT( * ), - 35 ) AS col2
----
-585
1

skipif mysql # not compatible
query II rowsort label-7147
SELECT ALL - 51 * + 13 + 79 - + COUNT ( + 23 ), NULLIF ( COUNT ( * ), - 35 ) AS col2
----
-585
1

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

query I rowsort
SELECT ALL - 99 * 79 AS col2
----
-7821

onlyif mysql # aggregate syntax: 
query I rowsort label-7150
SELECT + CASE - ( 58 ) WHEN + - COUNT( * ) * 78 THEN - 49 / - - COUNT( * ) END / 59 * - 79 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7150
SELECT + CASE - ( 58 ) WHEN + - COUNT ( * ) * 78 THEN - 49 / - - COUNT ( * ) END / 59 * - 79 AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7151
SELECT - 26 DIV + 16
----
-1

skipif mysql # not compatible
query I rowsort label-7151
SELECT - 26 / + 16
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7152
SELECT DISTINCT - 66 * + - SUM( 62 )
----
4092

skipif mysql # not compatible
query I rowsort label-7152
SELECT DISTINCT - 66 * + - SUM ( 62 )
----
4092

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

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

query I rowsort
SELECT + + 86 * 63 - + + 57 AS col2
----
5361

onlyif mysql # aggregate syntax: 
query I rowsort label-7155
SELECT - - 53 - MAX( - 86 ) + - + 73 AS col1
----
66

skipif mysql # not compatible
query I rowsort label-7155
SELECT - - 53 - MAX ( - 86 ) + - + 73 AS col1
----
66

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

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

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

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

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

skipif mysql # not compatible
query I rowsort label-7158
SELECT + COUNT ( DISTINCT 81 ) + + 84 AS col0
----
85

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7159
SELECT + 49 + 24 + CASE 28 WHEN + 42 THEN 14 * - - 3 + - 8 + + CAST( 57 AS SIGNED ) * - COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-7159
SELECT + 49 + 24 + CASE 28 WHEN + 42 THEN 14 * - - 3 + - 8 + + CAST ( 57 AS INTEGER ) * - COUNT ( * ) END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7160
SELECT DISTINCT COALESCE ( 29, 0 * COUNT( * ) - + 73 ) AS col1
----
29

skipif mysql # not compatible
query I rowsort label-7160
SELECT DISTINCT COALESCE ( 29, 0 * COUNT ( * ) - + 73 ) AS col1
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-7161
SELECT ALL + MAX( ALL 33 ) * - 65
----
-2145

skipif mysql # not compatible
query I rowsort label-7161
SELECT ALL + MAX ( ALL 33 ) * - 65
----
-2145

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7162
SELECT - 19 + 56 * + 4 DIV + CAST( - COUNT( * ) AS SIGNED )
----
-243

skipif mysql # not compatible
query I rowsort label-7162
SELECT - 19 + 56 * + 4 / + CAST ( - COUNT ( * ) AS INTEGER )
----
-243

onlyif mysql # aggregate syntax: 
query I rowsort label-7163
SELECT DISTINCT COALESCE ( + 98, COUNT( DISTINCT 26 ), + 19 - - 15 * + 15 * 79 )
----
98

skipif mysql # not compatible
query I rowsort label-7163
SELECT DISTINCT COALESCE ( + 98, COUNT ( DISTINCT 26 ), + 19 - - 15 * + 15 * 79 )
----
98

query I rowsort
SELECT - 72 + 5 * 32 AS col0
----
88

query II rowsort
SELECT - 20, + 69 + - 24 AS col2
----
-20
45

query II rowsort
SELECT 39, - 88 * - - 27 * + - NULLIF ( 55, + + 97 * 11 ) AS col2
----
39
130680

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7168
SELECT - 1 + - NULLIF ( + 47, + 8 - 89 + + 68 + + - CAST( - MAX( DISTINCT - ( 31 ) ) AS SIGNED ) * 57 * CAST( NULL AS SIGNED ) )
----
-48

skipif mysql # not compatible
query I rowsort label-7168
SELECT - 1 + - NULLIF ( + 47, + 8 - 89 + + 68 + + - CAST ( - MAX ( DISTINCT - ( 31 ) ) AS INTEGER ) * 57 * CAST ( NULL AS INTEGER ) )
----
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-7169
SELECT + SUM( DISTINCT + 6 ) AS col2
----
6

skipif mysql # not compatible
query I rowsort label-7169
SELECT + SUM ( DISTINCT + 6 ) AS col2
----
6

onlyif mysql # DIV for integer division: 
query I rowsort label-7170
SELECT - 77 DIV - 62 col0
----
1

skipif mysql # not compatible
query I rowsort label-7170
SELECT - 77 / - 62 col0
----
1

query I rowsort
SELECT - 53 * - 65 AS col1
----
3445

query I rowsort
SELECT + 59 * - 38 * + 84 col2
----
-188328

onlyif mysql # DIV for integer division: 
query I rowsort label-7173
SELECT ALL ( 62 ) DIV + 78 + + 29 AS col1
----
29

skipif mysql # not compatible
query I rowsort label-7173
SELECT ALL ( 62 ) / + 78 + + 29 AS col1
----
29

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

skipif mysql # not compatible
query I rowsort label-7174
SELECT ALL + COUNT ( * ) / 75 + 66 AS col2
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-7175
SELECT 58 * COALESCE ( 47, - 30 ) + - COUNT( * )
----
2725

skipif mysql # not compatible
query I rowsort label-7175
SELECT 58 * COALESCE ( 47, - 30 ) + - COUNT ( * )
----
2725

onlyif mysql # aggregate syntax: 
query I rowsort label-7176
SELECT ALL + CASE - - 12 WHEN - MIN( + + 77 ) + - + 59 + - + 64 THEN MIN( + + 0 ) - + + 10 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7176
SELECT ALL + CASE - - 12 WHEN - MIN ( + + 77 ) + - + 59 + - + 64 THEN MIN ( + + 0 ) - + + 10 END AS col1
----
NULL

query I rowsort
SELECT - 14 + + 13
----
-1

query I rowsort
SELECT ALL + + 58 * - 10 AS col0
----
-580

onlyif mysql # aggregate syntax: 
query I rowsort label-7179
SELECT + COUNT( + 5 ) - - - 10 AS col2
----
-9

skipif mysql # not compatible
query I rowsort label-7179
SELECT + COUNT ( + 5 ) - - - 10 AS col2
----
-9

query I rowsort
SELECT 23 * - 93 + 90 - ( 48 )
----
-2097

onlyif mysql # aggregate syntax: 
query I rowsort label-7181
SELECT ALL 46 * + 45 + + - COUNT( * ) + SUM( + - 24 ) AS col0
----
2045

skipif mysql # not compatible
query I rowsort label-7181
SELECT ALL 46 * + 45 + + - COUNT ( * ) + SUM ( + - 24 ) AS col0
----
2045

query I rowsort
SELECT + - 31 + - + 40
----
-71

query II rowsort
SELECT - 17, - NULLIF ( ( - ( 1 ) ), - 4 ) AS col0
----
-17
1

query II rowsort
SELECT ALL + 79, 28 AS col0
----
79
28

onlyif mysql # aggregate syntax: 
query I rowsort label-7185
SELECT DISTINCT - 10 * MAX( ALL - - 25 ) - + NULLIF ( + 26, - ( + 67 ) - - - NULLIF ( - + 22, - 56 ) )
----
-276

skipif mysql # not compatible
query I rowsort label-7185
SELECT DISTINCT - 10 * MAX ( ALL - - 25 ) - + NULLIF ( + 26, - ( + 67 ) - - - NULLIF ( - + 22, - 56 ) )
----
-276

onlyif mysql # aggregate syntax: 
query I rowsort label-7186
SELECT ALL + CASE + - NULLIF ( + 20, 2 / + COUNT( * ) + 8 ) WHEN 87 THEN NULL WHEN - COUNT( * ) THEN - - 3 END * ( + 65 ) - + 40
----
NULL

skipif mysql # not compatible
query I rowsort label-7186
SELECT ALL + CASE + - NULLIF ( + 20, 2 / + COUNT ( * ) + 8 ) WHEN 87 THEN NULL WHEN - COUNT ( * ) THEN - - 3 END * ( + 65 ) - + 40
----
NULL

query I rowsort
SELECT + 87 * 2 + - 15
----
159

onlyif mysql # aggregate syntax: 
query I rowsort label-7188
SELECT - COUNT( - 1 ) AS col1
----
-1

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-7189
SELECT ALL 87 DIV 83 * + 66 * + CAST( - + ( + ( - + 53 ) ) AS SIGNED ) + + ( - 76 ), + 57 * ( ( + 66 ) ) * 14 AS col0
----
3422
52668

skipif mysql # not compatible
query II rowsort label-7189
SELECT ALL 87 / 83 * + 66 * + CAST ( - + ( + ( - + 53 ) ) AS INTEGER ) + + ( - 76 ), + 57 * ( ( + 66 ) ) * 14 AS col0
----
3422
52668

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7190
SELECT - + 92 AS col2, 73, - - ( - - AVG ( DISTINCT + CAST( NULL AS SIGNED ) ) ) col2
----
-92
73
NULL

skipif mysql # not compatible
query III rowsort label-7190
SELECT - + 92 AS col2, 73, - - ( - - AVG ( DISTINCT + CAST ( NULL AS INTEGER ) ) ) col2
----
-92
73
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7191
SELECT - - 38 AS col2, + 87 * COUNT( - 66 ) + - NULLIF ( - - 45, 66 )
----
38
42

skipif mysql # not compatible
query II rowsort label-7191
SELECT - - 38 AS col2, + 87 * COUNT ( - 66 ) + - NULLIF ( - - 45, 66 )
----
38
42

query II rowsort
SELECT + 67 * + - 82, 50 AS col2
----
-5494
50

onlyif mysql # aggregate syntax: 
query I rowsort label-7193
SELECT DISTINCT CASE 72 WHEN + 92 THEN + 52 WHEN COUNT( * ) THEN - 44 / 13 END * + COUNT( * ) + CASE 91 WHEN - 7 THEN NULL WHEN - 52 + + COUNT( * ) THEN COUNT( * ) WHEN + 95 * + 47 - COUNT( * ) THEN NULL END * 55 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7193
SELECT DISTINCT CASE 72 WHEN + 92 THEN + 52 WHEN COUNT ( * ) THEN - 44 / 13 END * + COUNT ( * ) + CASE 91 WHEN - 7 THEN NULL WHEN - 52 + + COUNT ( * ) THEN COUNT ( * ) WHEN + 95 * + 47 - COUNT ( * ) THEN NULL END * 55 AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7194
SELECT COALESCE ( - 36, + ( - NULLIF ( + - CAST( + 9 AS SIGNED ), - 50 - + 19 ) ) + - 20 ) - - - 28
----
-64

skipif mysql # not compatible
query I rowsort label-7194
SELECT COALESCE ( - 36, + ( - NULLIF ( + - CAST ( + 9 AS INTEGER ), - 50 - + 19 ) ) + - 20 ) - - - 28
----
-64

query I rowsort
SELECT NULLIF ( - 91, 61 ) * 83 AS col1
----
-7553

query I rowsort
SELECT 25 - - ( + - 40 ) - - 29 col2
----
14

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7197
SELECT 67 + + CAST( NULL AS DECIMAL ) * + 13 / + 1
----
NULL

skipif mysql # not compatible
query I rowsort label-7197
SELECT 67 + + CAST ( NULL AS REAL ) * + 13 / + 1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7198
SELECT DISTINCT - 22 + 89 AS col0, 73 - - + AVG ( ALL - CAST( NULL AS SIGNED ) )
----
67
NULL

skipif mysql # not compatible
query II rowsort label-7198
SELECT DISTINCT - 22 + 89 AS col0, 73 - - + AVG ( ALL - CAST ( NULL AS INTEGER ) )
----
67
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query I rowsort label-7199
SELECT 77 + - SUM( DISTINCT - 37 ) + 68 + 68 * 85 - 62 + + COALESCE ( + 59, - + 72 DIV - - 39 ) + - 54 + - 87 * NULLIF ( 28 + + COUNT( - 42 ), 53 * 16 + - NULLIF ( COUNT( * ) + + SUM( 69 ), 36 ) * - 48 ) * - ( + 19 * NULLIF ( 79, COUNT( * ) * SUM( DISTINCT 86 ) + + 24 * CAST( NULL AS DECIMAL ) ) ) AS col2
----
3792928

skipif mysql # not compatible
query I rowsort label-7199
SELECT 77 + - SUM ( DISTINCT - 37 ) + 68 + 68 * 85 - 62 + + COALESCE ( + 59, - + 72 / - - 39 ) + - 54 + - 87 * NULLIF ( 28 + + COUNT ( - 42 ), 53 * 16 + - NULLIF ( COUNT ( * ) + + SUM ( 69 ), 36 ) * - 48 ) * - ( + 19 * NULLIF ( 79, COUNT ( * ) * SUM ( DISTINCT 86 ) + + 24 * CAST ( NULL AS REAL ) ) ) AS col2
----
3792928

query I rowsort
SELECT DISTINCT + 49 * - 94
----
-4606

query I rowsort
SELECT 57 + - 19 AS col2
----
38

onlyif mysql # DIV for integer division: 
query I rowsort label-7202
SELECT ALL + 31 * ( 54 ) DIV + + 11
----
152

skipif mysql # not compatible
query I rowsort label-7202
SELECT ALL + 31 * ( 54 ) / + + 11
----
152

query I rowsort
SELECT 66 + 47 - + + 49 AS col2
----
64

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7204
SELECT ( + 3 ) * - - 35 * CAST( NULL AS SIGNED ) - - 38, + COUNT( * ) AS col2
----
NULL
1

skipif mysql # not compatible
query II rowsort label-7204
SELECT ( + 3 ) * - - 35 * CAST ( NULL AS INTEGER ) - - 38, + COUNT ( * ) AS col2
----
NULL
1

query I rowsort
SELECT DISTINCT + 65 * + - 35 AS col0
----
-2275

query I rowsort
SELECT 35 * - 8
----
-280

onlyif mysql # aggregate syntax: 
query I rowsort label-7207
SELECT + + SUM( - CASE - 8 WHEN - + 10 * - 6 * - + 75 THEN 1 * + 34 + + + 91 END )
----
NULL

skipif mysql # not compatible
query I rowsort label-7207
SELECT + + SUM ( - CASE - 8 WHEN - + 10 * - 6 * - + 75 THEN 1 * + 34 + + + 91 END )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7208
SELECT ALL + 32 * + MIN( DISTINCT - 12 ), 8 AS col1
----
-384
8

skipif mysql # not compatible
query II rowsort label-7208
SELECT ALL + 32 * + MIN ( DISTINCT - 12 ), 8 AS col1
----
-384
8

onlyif mysql # DIV for integer division: 
query II rowsort label-7209
SELECT + 12 DIV 82 AS col1, 96
----
0
96

skipif mysql # not compatible
query II rowsort label-7209
SELECT + 12 / 82 AS col1, 96
----
0
96

onlyif mysql # aggregate syntax: 
query II rowsort label-7210
SELECT + 2 * - 76 * - 56 + - + 22 * - 16 + - MIN( - 41 ), - ( + + 75 ) AS col0
----
8905
-75

skipif mysql # not compatible
query II rowsort label-7210
SELECT + 2 * - 76 * - 56 + - + 22 * - 16 + - MIN ( - 41 ), - ( + + 75 ) AS col0
----
8905
-75

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

skipif mysql # not compatible
query I rowsort label-7211
SELECT ALL + + 6 - + 96 * - + COUNT ( * )
----
102

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7212
SELECT + COALESCE ( ( + - CAST( NULL AS SIGNED ) ), - - 6, - - 68 + + + MAX( DISTINCT ( 21 ) ) DIV - COUNT( * ) * 35 ) AS col0
----
6

skipif mysql # not compatible
query I rowsort label-7212
SELECT + COALESCE ( ( + - CAST ( NULL AS INTEGER ) ), - - 6, - - 68 + + + MAX ( DISTINCT ( 21 ) ) / - COUNT ( * ) * 35 ) AS col0
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-7213
SELECT ALL - - NULLIF ( - + 33, - 92 + CASE + - COUNT( * ) WHEN - 99 * - + 68 THEN NULL WHEN 67 THEN ( + 40 ) / + COUNT( * ) * + - COUNT( + 11 ) + + 48 * 24 ELSE + 6 * - 27 END ) AS col2
----
-33

skipif mysql # not compatible
query I rowsort label-7213
SELECT ALL - - NULLIF ( - + 33, - 92 + CASE + - COUNT ( * ) WHEN - 99 * - + 68 THEN NULL WHEN 67 THEN ( + 40 ) / + COUNT ( * ) * + - COUNT ( + 11 ) + + 48 * 24 ELSE + 6 * - 27 END ) AS col2
----
-33

query I rowsort
SELECT + 97 * 28 AS col0
----
2716

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

query I rowsort
SELECT + 55 + + 18 * + - 49 AS col2
----
-827

onlyif mysql # aggregate syntax: 
query I rowsort label-7217
SELECT ALL CASE + 28 WHEN - + NULLIF ( - + 40, ( - 51 ) / - - 32 ) * + COUNT( * ) - + + 52 THEN - + 10 + - ( ( ( + 3 ) ) ) * 35 ELSE + 13 * - 52 + 59 END
----
-617

skipif mysql # not compatible
query I rowsort label-7217
SELECT ALL CASE + 28 WHEN - + NULLIF ( - + 40, ( - 51 ) / - - 32 ) * + COUNT ( * ) - + + 52 THEN - + 10 + - ( ( ( + 3 ) ) ) * 35 ELSE + 13 * - 52 + 59 END
----
-617

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

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

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

query I rowsort
SELECT ALL + 98 * 37 AS col1
----
3626

query I rowsort
SELECT ALL 90 + - 82 AS col0
----
8

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: DIV for integer division: 
query I rowsort label-7222
SELECT COUNT( * ) - - - CASE COUNT( * ) WHEN + + COUNT( * ) THEN + - COALESCE ( - + 89, + COUNT( * ) ) * - 75 WHEN 60 * + 6 - + + CASE - COUNT( * ) WHEN - 27 THEN + 8 END + - 10 * + CAST( + 97 DIV 89 AS DECIMAL ) + + 29 THEN + 4 * + 6 WHEN + COALESCE ( 94, COUNT( * ) * - 89 + 94 ) * - ( 48 * - 2 + - CAST( NULL AS SIGNED ) ) + 8 DIV - 15 THEN NULL END DIV 40
----
167

skipif mysql # not compatible
query I rowsort label-7222
SELECT COUNT ( * ) - - - CASE COUNT ( * ) WHEN + + COUNT ( * ) THEN + - COALESCE ( - + 89, + COUNT ( * ) ) * - 75 WHEN 60 * + 6 - + + CASE - COUNT ( * ) WHEN - 27 THEN + 8 END + - 10 * + CAST ( + 97 / 89 AS REAL ) + + 29 THEN + 4 * + 6 WHEN + COALESCE ( 94, COUNT ( * ) * - 89 + 94 ) * - ( 48 * - 2 + - CAST ( NULL AS INTEGER ) ) + 8 / - 15 THEN NULL END / 40
----
167

query I rowsort
SELECT 45 * - + 77
----
-3465

query I rowsort
SELECT 16 + - 73
----
-57

query II rowsort
SELECT 77, 9 * - + 87 + - 96 * 48 AS col1
----
77
-5391

onlyif mysql # aggregate syntax: 
query I rowsort label-7226
SELECT ALL CASE - 87 WHEN + 5 * 74 THEN NULL WHEN - MIN( ALL 16 ) * 21 * + COUNT( * ) + - 49 * 43 THEN 45 + 35 / - - 3 + COUNT( 60 ) ELSE NULL END + 59
----
NULL

skipif mysql # not compatible
query I rowsort label-7226
SELECT ALL CASE - 87 WHEN + 5 * 74 THEN NULL WHEN - MIN ( ALL 16 ) * 21 * + COUNT ( * ) + - 49 * 43 THEN 45 + 35 / - - 3 + COUNT ( 60 ) ELSE NULL END + 59
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7227
SELECT COUNT( * ) + + - 60 + 3 DIV + + 27 * 21
----
-59

skipif mysql # not compatible
query I rowsort label-7227
SELECT COUNT ( * ) + + - 60 + 3 / + + 27 * 21
----
-59

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7228
SELECT CASE + + ( 80 ) WHEN + ( CASE + CAST( + - 99 AS SIGNED ) WHEN - - 87 THEN + 72 * COUNT( * ) - - - COUNT( * ) ELSE 40 + - 26 * + CASE NULLIF ( + 37, - 13 * + COUNT( * ) ) + 8 WHEN COUNT( * ) * 50 THEN + 79 WHEN 17 THEN - 79 END END ) / 42 THEN - ( - 44 ) ELSE NULL END - 57 * COALESCE ( 30 + + 25, - 65 * 91, 33, 3 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7228
SELECT CASE + + ( 80 ) WHEN + ( CASE + CAST ( + - 99 AS INTEGER ) WHEN - - 87 THEN + 72 * COUNT ( * ) - - - COUNT ( * ) ELSE 40 + - 26 * + CASE NULLIF ( + 37, - 13 * + COUNT ( * ) ) + 8 WHEN COUNT ( * ) * 50 THEN + 79 WHEN 17 THEN - 79 END END ) / 42 THEN - ( - 44 ) ELSE NULL END - 57 * COALESCE ( 30 + + 25, - 65 * 91, 33, 3 )
----
NULL

query I rowsort
SELECT 35 + + 44
----
79

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7233
SELECT ALL 0 + + MAX( DISTINCT + + 45 ) + ( - 16 ) - + 5 AS col1
----
24

skipif mysql # not compatible
query I rowsort label-7233
SELECT ALL 0 + + MAX ( DISTINCT + + 45 ) + ( - 16 ) - + 5 AS col1
----
24

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7235
SELECT CAST( 10 AS SIGNED ) + + - 36 * - - COUNT( * ) AS col1
----
-26

skipif mysql # not compatible
query I rowsort label-7235
SELECT CAST ( 10 AS INTEGER ) + + - 36 * - - COUNT ( * ) AS col1
----
-26

query I rowsort
SELECT ALL 6 * + + 10
----
60

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7238
SELECT CASE - NULLIF ( + - 24, - 69 + 59 ) WHEN 63 * - AVG ( ALL - + 65 ) * - 63 * 50 - 96 + COUNT( * ) * 85 / 26 - COUNT( * ) / 91 THEN + 31 * - 43 WHEN COALESCE ( CAST( + CAST( + 63 AS DECIMAL ) AS SIGNED ), 71 * - 63 ) * 93 + - 49 THEN - 12 ELSE NULL END * + 78 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7238
SELECT CASE - NULLIF ( + - 24, - 69 + 59 ) WHEN 63 * - AVG ( ALL - + 65 ) * - 63 * 50 - 96 + COUNT ( * ) * 85 / 26 - COUNT ( * ) / 91 THEN + 31 * - 43 WHEN COALESCE ( CAST ( + CAST ( + 63 AS REAL ) AS INTEGER ), 71 * - 63 ) * 93 + - 49 THEN - 12 ELSE NULL END * + 78 AS col1
----
NULL

query I rowsort
SELECT + 70 * - 54
----
-3780

onlyif mysql # DIV for integer division: 
query I rowsort label-7240
SELECT + - ( + + NULLIF ( - 74, - 77 ) ) DIV 25 + + 71 + - NULLIF ( - + 18, 16 * + 5 )
----
91

skipif mysql # not compatible
query I rowsort label-7240
SELECT + - ( + + NULLIF ( - 74, - 77 ) ) / 25 + + 71 + - NULLIF ( - + 18, 16 * + 5 )
----
91

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7241
SELECT - 12 DIV 98 + + 63 + COUNT( ALL 37 ) * + 42 AS col2
----
105

skipif mysql # not compatible
query I rowsort label-7241
SELECT - 12 / 98 + + 63 + COUNT ( ALL 37 ) * + 42 AS col2
----
105

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7242
SELECT ALL - + CASE - - 98 WHEN - + 56 THEN COUNT( + + CAST( + 67 AS DECIMAL ) ) WHEN 71 + - 48 + 98 + 44 THEN + COALESCE ( + COALESCE ( - + CAST( 25 AS SIGNED ), - COALESCE ( - 85, + 87 / 74, + 23 + - 6 * + ( 9 ) ), 87 + + COUNT( * ) * + ( 17 + 79 / - 42 ) ), - 91, - 5 ) + - 1 * + 87 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7242
SELECT ALL - + CASE - - 98 WHEN - + 56 THEN COUNT ( + + CAST ( + 67 AS REAL ) ) WHEN 71 + - 48 + 98 + 44 THEN + COALESCE ( + COALESCE ( - + CAST ( 25 AS INTEGER ), - COALESCE ( - 85, + 87 / 74, + 23 + - 6 * + ( 9 ) ), 87 + + COUNT ( * ) * + ( 17 + 79 / - 42 ) ), - 91, - 5 ) + - 1 * + 87 END AS col2
----
NULL

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7245
SELECT - 83 * + 69 + - - 7 * + CASE - 77 WHEN - - NULLIF ( 56, + MAX( DISTINCT + 6 ) + + COUNT( * ) ) THEN + ( + CASE - + 56 WHEN COUNT( * ) - 78 * - 40 THEN NULL ELSE 53 - - 73 END ) + 25 WHEN - COUNT( * ) * 22 + - 22 THEN - 81 - 99 END
----
NULL

skipif mysql # not compatible
query I rowsort label-7245
SELECT - 83 * + 69 + - - 7 * + CASE - 77 WHEN - - NULLIF ( 56, + MAX ( DISTINCT + 6 ) + + COUNT ( * ) ) THEN + ( + CASE - + 56 WHEN COUNT ( * ) - 78 * - 40 THEN NULL ELSE 53 - - 73 END ) + 25 WHEN - COUNT ( * ) * 22 + - 22 THEN - 81 - 99 END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7246
SELECT ALL - - COALESCE ( - + 90, - + 33 DIV + 89 DIV + 85, - + 60 + + 88 * + 58 - COUNT( * ) ) AS col1
----
-90

skipif mysql # not compatible
query I rowsort label-7246
SELECT ALL - - COALESCE ( - + 90, - + 33 / + 89 / + 85, - + 60 + + 88 * + 58 - COUNT ( * ) ) AS col1
----
-90

query I rowsort
SELECT ALL - + 16 * - + 32
----
512

onlyif mysql # aggregate syntax: 
query I rowsort label-7248
SELECT SUM( ALL + 33 ) * + - CASE 47 WHEN - - 98 / + - COUNT( * ) * - 44 THEN - 44 * 25 WHEN - 37 THEN NULL ELSE NULLIF ( - 54, 82 + 35 ) * 31 END * + 87
----
4806054

skipif mysql # not compatible
query I rowsort label-7248
SELECT SUM ( ALL + 33 ) * + - CASE 47 WHEN - - 98 / + - COUNT ( * ) * - 44 THEN - 44 * 25 WHEN - 37 THEN NULL ELSE NULLIF ( - 54, 82 + 35 ) * 31 END * + 87
----
4806054

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7249
SELECT ALL - - 99 * + NULLIF ( - ( + ( + - 4 ) ), 23 ) * CAST( - COUNT( + 92 ) AS SIGNED ) + + 97 AS col2
----
-299

skipif mysql # not compatible
query I rowsort label-7249
SELECT ALL - - 99 * + NULLIF ( - ( + ( + - 4 ) ), 23 ) * CAST ( - COUNT ( + 92 ) AS INTEGER ) + + 97 AS col2
----
-299

onlyif mysql # aggregate syntax: 
query I rowsort label-7250
SELECT + ( 3 ) + COUNT( * ) * + 48 * - 31 AS col0
----
-1485

skipif mysql # not compatible
query I rowsort label-7250
SELECT + ( 3 ) + COUNT ( * ) * + 48 * - 31 AS col0
----
-1485

query I rowsort
SELECT + 3 * + 87 + + 91
----
352

onlyif mysql # aggregate syntax: 
query I rowsort label-7252
SELECT + SUM( ALL - 97 ) - - - 12 AS col2
----
-109

skipif mysql # not compatible
query I rowsort label-7252
SELECT + SUM ( ALL - 97 ) - - - 12 AS col2
----
-109

query II rowsort
SELECT ALL - 16 col2, - 25 + - 89
----
-16
-114

onlyif mysql # aggregate syntax: 
query II rowsort label-7254
SELECT - 7 * - SUM( ALL - 72 ) + + 62 AS col0, 23 AS col1
----
-442
23

skipif mysql # not compatible
query II rowsort label-7254
SELECT - 7 * - SUM ( ALL - 72 ) + + 62 AS col0, 23 AS col1
----
-442
23

query II rowsort
SELECT + - 6, - 86 col0
----
-6
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-7256
SELECT DISTINCT + - SUM( DISTINCT + 34 ) AS col2
----
-34

skipif mysql # not compatible
query I rowsort label-7256
SELECT DISTINCT + - SUM ( DISTINCT + 34 ) AS col2
----
-34

query I rowsort
SELECT DISTINCT + + COALESCE ( - 46, + 73 + ( + 0 ) + + 55 )
----
-46

query I rowsort
SELECT ALL - 44 + + - 35
----
-79

query I rowsort
SELECT ALL + ( - COALESCE ( - 76, 71 - 30, 86 ) )
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-7260
SELECT - COUNT( * ) * - + 22 + - 46 AS col0
----
-24

skipif mysql # not compatible
query I rowsort label-7260
SELECT - COUNT ( * ) * - + 22 + - 46 AS col0
----
-24

query I rowsort
SELECT ALL 8 * + 87 AS col2
----
696

query I rowsort
SELECT DISTINCT + 94 + 88 AS col1
----
182

query I rowsort
SELECT ALL - ( - 80 ) + - 9 AS col2
----
71

query I rowsort
SELECT - 60 * 39 AS col2
----
-2340

onlyif mysql # aggregate syntax: 
query II rowsort label-7265
SELECT + 66 + 79 AS col2, + COUNT( DISTINCT - 70 ) col2
----
145
1

skipif mysql # not compatible
query II rowsort label-7265
SELECT + 66 + 79 AS col2, + COUNT ( DISTINCT - 70 ) col2
----
145
1

query I rowsort
SELECT ALL - ( - - 9 ) * - 95 AS col0
----
855

onlyif mysql # aggregate syntax: 
query I rowsort label-7267
SELECT + NULLIF ( 81, 70 - 23 ) + - COUNT( * )
----
80

skipif mysql # not compatible
query I rowsort label-7267
SELECT + NULLIF ( 81, 70 - 23 ) + - COUNT ( * )
----
80

query I rowsort
SELECT DISTINCT 7 * + COALESCE ( + + 65, - ( + 52 ) ) col0
----
455

query I rowsort
SELECT ALL 1 + + 51
----
52

onlyif mysql # DIV for integer division: 
query I rowsort label-7270
SELECT + 83 DIV - + 80
----
-1

skipif mysql # not compatible
query I rowsort label-7270
SELECT + 83 / - + 80
----
-1

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7272
SELECT ALL 65 - + 99 * + COUNT( * ) + ( - 78 ) col0
----
-112

skipif mysql # not compatible
query I rowsort label-7272
SELECT ALL 65 - + 99 * + COUNT ( * ) + ( - 78 ) col0
----
-112

onlyif mysql # aggregate syntax: 
query I rowsort label-7273
SELECT - MIN( ALL + + 96 ) - COUNT( * ) col2
----
-97

skipif mysql # not compatible
query I rowsort label-7273
SELECT - MIN ( ALL + + 96 ) - COUNT ( * ) col2
----
-97

query I rowsort
SELECT - 47 - - 84 * + 76
----
6337

onlyif mysql # aggregate syntax: 
query I rowsort label-7275
SELECT + MIN( DISTINCT - - 91 ) * COUNT( * ) col0
----
91

skipif mysql # not compatible
query I rowsort label-7275
SELECT + MIN ( DISTINCT - - 91 ) * COUNT ( * ) col0
----
91

onlyif mysql # DIV for integer division: 
query I rowsort label-7276
SELECT ALL 58 DIV 70 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-7276
SELECT ALL 58 / 70 AS col2
----
0

query I rowsort
SELECT + - 46 * + + ( - COALESCE ( + 11, + - 42 + - - 77 * - 34 ) ) AS col0
----
506

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7278
SELECT DISTINCT - AVG ( ALL - CAST( NULL AS SIGNED ) ) * - + 93 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7278
SELECT DISTINCT - AVG ( ALL - CAST ( NULL AS INTEGER ) ) * - + 93 AS col1
----
NULL

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

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

query I rowsort
SELECT + - 44 + 6 + + + 10
----
-28

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

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

query II rowsort
SELECT DISTINCT - 31 * + + 51 * 10 * + 57, + 79 * 34 AS col2
----
-901170
2686

onlyif mysql # aggregate syntax: 
query I rowsort label-7283
SELECT ALL - - 90 * - + 85 + + 10 + - + MAX( + ( - 33 ) )
----
-7607

skipif mysql # not compatible
query I rowsort label-7283
SELECT ALL - - 90 * - + 85 + + 10 + - + MAX ( + ( - 33 ) )
----
-7607

onlyif mysql # aggregate syntax: 
query I rowsort label-7284
SELECT DISTINCT - 10 * + 15 + + + 47 * - + 66 * - ( - 87 ) + + COUNT( * ) + + - 31
----
-270054

skipif mysql # not compatible
query I rowsort label-7284
SELECT DISTINCT - 10 * + 15 + + + 47 * - + 66 * - ( - 87 ) + + COUNT ( * ) + + - 31
----
-270054

query I rowsort
SELECT ALL 94 * + 40 * + 24 * 21 + - 50 * + 73
----
1891390

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

onlyif mysql # aggregate syntax: 
query II rowsort label-7287
SELECT ALL + 87 * 76 * - COUNT( * ) + 89 * - 21 AS col1, 67 AS col2
----
-8481
67

skipif mysql # not compatible
query II rowsort label-7287
SELECT ALL + 87 * 76 * - COUNT ( * ) + 89 * - 21 AS col1, 67 AS col2
----
-8481
67

onlyif mysql # aggregate syntax: 
query II rowsort label-7288
SELECT - ( - - 60 ) * + - 49 * + 89 - + COUNT( * ) - + 75 AS col0, - NULLIF ( - 94, - 18 - - 17 / - 38 ) AS col1
----
261584
94

skipif mysql # not compatible
query II rowsort label-7288
SELECT - ( - - 60 ) * + - 49 * + 89 - + COUNT ( * ) - + 75 AS col0, - NULLIF ( - 94, - 18 - - 17 / - 38 ) AS col1
----
261584
94

onlyif mysql # aggregate syntax: 
query I rowsort label-7289
SELECT + 61 + - CASE COUNT( * ) WHEN 18 * + + ( + 50 ) * + 4 THEN + 35 + - COUNT( * ) / 10 * + 89 * + - 78 END + COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7289
SELECT + 61 + - CASE COUNT ( * ) WHEN 18 * + + ( + 50 ) * + 4 THEN + 35 + - COUNT ( * ) / 10 * + 89 * + - 78 END + COUNT ( * ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7290
SELECT - SUM( 71 ) * 7 AS col1
----
-497

skipif mysql # not compatible
query I rowsort label-7290
SELECT - SUM ( 71 ) * 7 AS col1
----
-497

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

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

query I rowsort
SELECT + 37 + - + 31
----
6

query I rowsort
SELECT NULLIF ( - 92, 6 ) col1
----
-92

query I rowsort
SELECT NULLIF ( + - 93, + 3 ) col2
----
-93

query I rowsort
SELECT ALL 43 * + 1 + - 91 + 42 AS col0
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-7296
SELECT - COUNT( * ) - + 53 * COUNT( + - 41 ) + 25
----
-29

skipif mysql # not compatible
query I rowsort label-7296
SELECT - COUNT ( * ) - + 53 * COUNT ( + - 41 ) + 25
----
-29

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7297
SELECT 8 * - MIN( ALL + - 9 ) - ( - - 81 ) * - + COUNT( * ) AS col0, + COUNT( DISTINCT - 25 ) + - 63 * 36 DIV - COUNT( * )
----
153
2269

skipif mysql # not compatible
query II rowsort label-7297
SELECT 8 * - MIN ( ALL + - 9 ) - ( - - 81 ) * - + COUNT ( * ) AS col0, + COUNT ( DISTINCT - 25 ) + - 63 * 36 / - COUNT ( * )
----
153
2269

query I rowsort
SELECT DISTINCT NULLIF ( + 11, + 28 - ( - - 81 ) )
----
11

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

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

query I rowsort
SELECT - 59 + + 33 * - 24 col0
----
-851

query I rowsort
SELECT - 71 + - 60
----
-131

query I rowsort
SELECT - 77 * - 97
----
7469

query II rowsort
SELECT - 29 AS col1, 55 AS col1
----
-29
55

onlyif mysql # aggregate syntax: 
query II rowsort label-7304
SELECT - NULLIF ( 97, + 55 + - 78 ) + + 74 + 76 * - 67 + 53 AS col2, - COUNT( * ) AS col1
----
-5062
-1

skipif mysql # not compatible
query II rowsort label-7304
SELECT - NULLIF ( 97, + 55 + - 78 ) + + 74 + 76 * - 67 + 53 AS col2, - COUNT ( * ) AS col1
----
-5062
-1

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

skipif mysql # not compatible
query I rowsort label-7305
SELECT - CAST ( - NULLIF ( - - 13, + COUNT ( * ) ) AS INTEGER ) - 70
----
-57

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

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

query I rowsort
SELECT DISTINCT - 18 * - + 77 * - 75
----
-103950

query I rowsort
SELECT - 23 + - + 80 - + 92 AS col0
----
-195

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7309
SELECT + 29 - + COUNT( * ) + - 26 DIV + ( + CAST( - 75 AS SIGNED ) ) * 62
----
28

skipif mysql # not compatible
query I rowsort label-7309
SELECT + 29 - + COUNT ( * ) + - 26 / + ( + CAST ( - 75 AS INTEGER ) ) * 62
----
28

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7310
SELECT DISTINCT CASE 12 WHEN - + NULLIF ( + - 11, CAST( NULL AS SIGNED ) ) / + 37 + + + ( - + 42 ) THEN NULL ELSE + - 95 * - COALESCE ( - 3, - 50 ) + CAST( NULL AS SIGNED ) + + - 13 / - - COALESCE ( - 64, 82, - MIN( - 25 ) ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-7310
SELECT DISTINCT CASE 12 WHEN - + NULLIF ( + - 11, CAST ( NULL AS INTEGER ) ) / + 37 + + + ( - + 42 ) THEN NULL ELSE + - 95 * - COALESCE ( - 3, - 50 ) + CAST ( NULL AS INTEGER ) + + - 13 / - - COALESCE ( - 64, 82, - MIN ( - 25 ) ) END
----
NULL

query I rowsort
SELECT ALL - 53 * + + ( 99 ) + 78
----
-5169

onlyif mysql # aggregate syntax: 
query I rowsort label-7312
SELECT - + 15 + - + COUNT( DISTINCT - 96 ) + + 3 * - + ( + 71 ) + - NULLIF ( 63, + + 54 * + 62 ) * - - 55 AS col2
----
-3694

skipif mysql # not compatible
query I rowsort label-7312
SELECT - + 15 + - + COUNT ( DISTINCT - 96 ) + + 3 * - + ( + 71 ) + - NULLIF ( 63, + + 54 * + 62 ) * - - 55 AS col2
----
-3694

query I rowsort
SELECT - - ( + 0 ) col0
----
0

query II rowsort
SELECT - - 36 AS col1, - 67 + 99
----
36
32

onlyif mysql # aggregate syntax: 
query II rowsort label-7315
SELECT - MAX( - 58 ) + - + 40 AS col0, 94
----
18
94

skipif mysql # not compatible
query II rowsort label-7315
SELECT - MAX ( - 58 ) + - + 40 AS col0, 94
----
18
94

query I rowsort
SELECT + 64 * + 74
----
4736

onlyif mysql # aggregate syntax: 
query I rowsort label-7317
SELECT - 36 / - + 34 * - + COUNT( * ) * + 4 + 38 + - 50 + + 37 + + ( + 93 ) + 9 / + 16 * CASE + + 99 WHEN 46 THEN + 23 + - 22 WHEN 16 THEN NULL WHEN 5 THEN + 82 END + - 84 / - 54
----
NULL

skipif mysql # not compatible
query I rowsort label-7317
SELECT - 36 / - + 34 * - + COUNT ( * ) * + 4 + 38 + - 50 + + 37 + + ( + 93 ) + 9 / + 16 * CASE + + 99 WHEN 46 THEN + 23 + - 22 WHEN 16 THEN NULL WHEN 5 THEN + 82 END + - 84 / - 54
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7318
SELECT - 82 + + + COUNT( * ) - - 76 * 84
----
6303

skipif mysql # not compatible
query I rowsort label-7318
SELECT - 82 + + + COUNT ( * ) - - 76 * 84
----
6303

onlyif mysql # aggregate syntax: 
query I rowsort label-7319
SELECT DISTINCT - COUNT( - 79 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-7319
SELECT DISTINCT - COUNT ( - 79 ) AS col1
----
-1

query I rowsort
SELECT ALL + 77 + 1 + + + NULLIF ( - 49, - 10 + 8 )
----
29

onlyif mysql # DIV for integer division: 
query I rowsort label-7321
SELECT DISTINCT + - 15 DIV - 36 * 76 + - + 95 + - - ( 38 ) + 29 AS col0
----
-28

skipif mysql # not compatible
query I rowsort label-7321
SELECT DISTINCT + - 15 / - 36 * 76 + - + 95 + - - ( 38 ) + 29 AS col0
----
-28

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7323
SELECT + 48 * + 88 + + - 29 + - - CAST( NULL AS DECIMAL ) / 85 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7323
SELECT + 48 * + 88 + + - 29 + - - CAST ( NULL AS REAL ) / 85 col2
----
NULL

query I rowsort
SELECT DISTINCT 22 + + - 96
----
-74

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7325
SELECT 69 + + 88 + + COALESCE ( - COUNT( * ), CAST( NULL AS SIGNED ) + 51 ) AS col1
----
156

skipif mysql # not compatible
query I rowsort label-7325
SELECT 69 + + 88 + + COALESCE ( - COUNT ( * ), CAST ( NULL AS INTEGER ) + 51 ) AS col1
----
156

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7327
SELECT NULLIF ( + + ( - ( + - NULLIF ( COUNT( * ), - COALESCE ( + + 13, 4 + COUNT( * ) * 74 * - 98 DIV + 23, + COUNT( * ) + + ( - - 5 ) ) ) ) ), 74 * 31 - 72 ) DIV - 50 - 42 * COUNT( * )
----
-42

skipif mysql # not compatible
query I rowsort label-7327
SELECT NULLIF ( + + ( - ( + - NULLIF ( COUNT ( * ), - COALESCE ( + + 13, 4 + COUNT ( * ) * 74 * - 98 / + 23, + COUNT ( * ) + + ( - - 5 ) ) ) ) ), 74 * 31 - 72 ) / - 50 - 42 * COUNT ( * )
----
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-7328
SELECT DISTINCT SUM( DISTINCT + - 2 ) * - - 86 * - 58
----
9976

skipif mysql # not compatible
query I rowsort label-7328
SELECT DISTINCT SUM ( DISTINCT + - 2 ) * - - 86 * - 58
----
9976

query I rowsort
SELECT - NULLIF ( + 1, - 40 + + 30 ) * - 28 + + 1 + + - ( - ( + - 57 ) )
----
-28

onlyif mysql # DIV for integer division: 
query I rowsort label-7330
SELECT DISTINCT 90 + - - 34 DIV - 9
----
87

skipif mysql # not compatible
query I rowsort label-7330
SELECT DISTINCT 90 + - - 34 / - 9
----
87

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7331
SELECT DISTINCT CAST( NULL AS SIGNED ) + - ( - 49 ) * - + 6 + - - 68
----
NULL

skipif mysql # not compatible
query I rowsort label-7331
SELECT DISTINCT CAST ( NULL AS INTEGER ) + - ( - 49 ) * - + 6 + - - 68
----
NULL

query I rowsort
SELECT ALL + 4 * - 36 AS col2
----
-144

onlyif mysql # DIV for integer division: 
query I rowsort label-7333
SELECT DISTINCT 30 DIV - 35 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-7333
SELECT DISTINCT 30 / - 35 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7334
SELECT ALL 89 - - COUNT( * ) AS col2
----
90

skipif mysql # not compatible
query I rowsort label-7334
SELECT ALL 89 - - COUNT ( * ) AS col2
----
90

query I rowsort
SELECT 86 * - + 75
----
-6450

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-7336
SELECT - 24 AS col0, - CAST( NULL AS DECIMAL )
----
-24
NULL

skipif mysql # not compatible
query II rowsort label-7336
SELECT - 24 AS col0, - CAST ( NULL AS REAL )
----
-24
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7337
SELECT - 27 AS col2, - MIN( DISTINCT + 79 )
----
-27
-79

skipif mysql # not compatible
query II rowsort label-7337
SELECT - 27 AS col2, - MIN ( DISTINCT + 79 )
----
-27
-79

query II rowsort
SELECT ALL 35 AS col2, 81 - - 23 AS col2
----
35
104

query II rowsort
SELECT DISTINCT + 38 AS col1, 83 AS col2
----
38
83

onlyif mysql # DIV for integer division: 
query I rowsort label-7340
SELECT ALL + - 84 DIV - 38 + 22 AS col2
----
24

skipif mysql # not compatible
query I rowsort label-7340
SELECT ALL + - 84 / - 38 + 22 AS col2
----
24

query I rowsort
SELECT 56 + + - ( + 72 ) AS col2
----
-16

onlyif mysql # DIV for integer division: 
query I rowsort label-7342
SELECT DISTINCT + + 68 DIV + 54 + - 90
----
-89

skipif mysql # not compatible
query I rowsort label-7342
SELECT DISTINCT + + 68 / + 54 + - 90
----
-89

query II rowsort
SELECT ALL - 15 AS col1, + 52
----
-15
52

query I rowsort
SELECT 4 - + 77 + + 31 * - + 80
----
-2553

onlyif mysql # aggregate syntax: 
query I rowsort label-7345
SELECT COUNT( DISTINCT 15 ) * 60 * 90
----
5400

skipif mysql # not compatible
query I rowsort label-7345
SELECT COUNT ( DISTINCT 15 ) * 60 * 90
----
5400

onlyif mysql # aggregate syntax: 
query I rowsort label-7346
SELECT COALESCE ( - + 27, - + 68 + + 0 * 5 * 96 - COUNT( * ) ) + - + 90
----
-117

skipif mysql # not compatible
query I rowsort label-7346
SELECT COALESCE ( - + 27, - + 68 + + 0 * 5 * 96 - COUNT ( * ) ) + - + 90
----
-117

query I rowsort
SELECT DISTINCT + + 80 + 32
----
112

onlyif mysql # aggregate syntax: 
query I rowsort label-7348
SELECT - ( - MAX( - 70 ) ) AS col2
----
-70

skipif mysql # not compatible
query I rowsort label-7348
SELECT - ( - MAX ( - 70 ) ) AS col2
----
-70

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7349
SELECT ALL - NULLIF ( - ( + 70 ), COUNT( * ) + - 42 ) + 33 DIV + 96 * + - 28
----
70

skipif mysql # not compatible
query I rowsort label-7349
SELECT ALL - NULLIF ( - ( + 70 ), COUNT ( * ) + - 42 ) + 33 / + 96 * + - 28
----
70

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7350
SELECT DISTINCT - - CAST( 59 AS SIGNED ) + - 25
----
34

skipif mysql # not compatible
query I rowsort label-7350
SELECT DISTINCT - - CAST ( 59 AS INTEGER ) + - 25
----
34

query I rowsort
SELECT + 32 - + 84 - + + 32
----
-84

query I rowsort
SELECT NULLIF ( 78, - 3 ) AS col1
----
78

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

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

query I rowsort
SELECT 84 * + 16 AS col0
----
1344

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7355
SELECT + 64 * + - 23 * 76 + + 16 + + ( 63 ) * + 21 + - 49 + ( - + COUNT( * ) ) DIV - - 6 - + + 30
----
-110612

skipif mysql # not compatible
query I rowsort label-7355
SELECT + 64 * + - 23 * 76 + + 16 + + ( 63 ) * + 21 + - 49 + ( - + COUNT ( * ) ) / - - 6 - + + 30
----
-110612

onlyif mysql # aggregate syntax: 
query II rowsort label-7356
SELECT DISTINCT - 71, 29 + COUNT( DISTINCT CASE + + 48 WHEN 27 THEN - + 90 + + 66 + + COALESCE ( - CASE - 20 WHEN - 57 * - ( 62 ) THEN + + 54 * 32 + + 81 ELSE NULL END, 85 ) WHEN - CASE WHEN + 48 IS NOT NULL THEN + 26 END THEN NULL ELSE - 91 END ) AS col0
----
-71
30

skipif mysql # not compatible
query II rowsort label-7356
SELECT DISTINCT - 71, 29 + COUNT ( DISTINCT CASE + + 48 WHEN 27 THEN - + 90 + + 66 + + COALESCE ( - CASE - 20 WHEN - 57 * - ( 62 ) THEN + + 54 * 32 + + 81 ELSE NULL END, 85 ) WHEN - CASE WHEN + 48 IS NOT NULL THEN + 26 END THEN NULL ELSE - 91 END ) AS col0
----
-71
30

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7357
SELECT ALL - - COALESCE ( CAST( NULL AS SIGNED ), + + 61 + + - 78 )
----
-17

skipif mysql # not compatible
query I rowsort label-7357
SELECT ALL - - COALESCE ( CAST ( NULL AS INTEGER ), + + 61 + + - 78 )
----
-17

query I rowsort
SELECT ( + - 87 ) * + 70
----
-6090

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7360
SELECT DISTINCT - CAST( 3 AS SIGNED ), 81 AS col0
----
-3
81

skipif mysql # not compatible
query II rowsort label-7360
SELECT DISTINCT - CAST ( 3 AS INTEGER ), 81 AS col0
----
-3
81

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7362
SELECT CASE + 67 WHEN + 91 THEN - NULLIF ( - 68, - MAX( ( + 34 ) ) ) + - - 42 WHEN + CAST( - 87 AS SIGNED ) THEN NULL ELSE NULL END * - 76 / + - ( 62 ) + + + 42 * - 44 + - 6 + 94
----
NULL

skipif mysql # not compatible
query I rowsort label-7362
SELECT CASE + 67 WHEN + 91 THEN - NULLIF ( - 68, - MAX ( ( + 34 ) ) ) + - - 42 WHEN + CAST ( - 87 AS INTEGER ) THEN NULL ELSE NULL END * - 76 / + - ( 62 ) + + + 42 * - 44 + - 6 + 94
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7363
SELECT DISTINCT - CASE + + ( - - 47 ) WHEN 8 + + - 82 * + + 86 * - MAX( DISTINCT ( + 67 ) ) THEN - 76 + - + COUNT( * ) / 31 WHEN + ( 78 ) + - 33 THEN - - 11 END col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7363
SELECT DISTINCT - CASE + + ( - - 47 ) WHEN 8 + + - 82 * + + 86 * - MAX ( DISTINCT ( + 67 ) ) THEN - 76 + - + COUNT ( * ) / 31 WHEN + ( 78 ) + - 33 THEN - - 11 END col0
----
NULL

query I rowsort
SELECT ALL 89 * 81 * - 1 * 90 col2
----
-648810

query I rowsort
SELECT - 47 * + 14 - + 0
----
-658

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7366
SELECT COUNT( * ) * + + CAST( + 98 AS SIGNED ) + 22 AS col1
----
120

skipif mysql # not compatible
query I rowsort label-7366
SELECT COUNT ( * ) * + + CAST ( + 98 AS INTEGER ) + 22 AS col1
----
120

onlyif mysql # aggregate syntax: 
query II rowsort label-7367
SELECT CASE + 95 WHEN - SUM( ALL 62 ) THEN + 95 ELSE + + ( + 67 ) + 62 END * - COALESCE ( + 80, + + 55 ) * + 78, 57 AS col2
----
-804960
57

skipif mysql # not compatible
query II rowsort label-7367
SELECT CASE + 95 WHEN - SUM ( ALL 62 ) THEN + 95 ELSE + + ( + 67 ) + 62 END * - COALESCE ( + 80, + + 55 ) * + 78, 57 AS col2
----
-804960
57

onlyif mysql # aggregate syntax: 
query I rowsort label-7368
SELECT SUM( DISTINCT - 89 ) * - COUNT( * ) * 92
----
8188

skipif mysql # not compatible
query I rowsort label-7368
SELECT SUM ( DISTINCT - 89 ) * - COUNT ( * ) * 92
----
8188

query I rowsort
SELECT + 9 * - 50 * - 57 - 87 AS col2
----
25563

onlyif mysql # DIV for integer division: 
query I rowsort label-7370
SELECT 95 - + - 82 + 95 DIV 13
----
184

skipif mysql # not compatible
query I rowsort label-7370
SELECT 95 - + - 82 + 95 / 13
----
184

query I rowsort
SELECT - 14 + - 2 AS col2
----
-16

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7372
SELECT + 53 + COALESCE ( - 34, - - 59 * 67 + + 14 - + 1 - - + 30 - - 62 * + COUNT( DISTINCT 13 ) + + - ( CAST( - SUM( - 10 ) AS SIGNED ) ), - - 3 )
----
19

skipif mysql # not compatible
query I rowsort label-7372
SELECT + 53 + COALESCE ( - 34, - - 59 * 67 + + 14 - + 1 - - + 30 - - 62 * + COUNT ( DISTINCT 13 ) + + - ( CAST ( - SUM ( - 10 ) AS INTEGER ) ), - - 3 )
----
19

onlyif mysql # DIV for integer division: 
query I rowsort label-7373
SELECT - 46 DIV - 18 AS col1
----
2

skipif mysql # not compatible
query I rowsort label-7373
SELECT - 46 / - 18 AS col1
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-7374
SELECT DISTINCT - 10 + + + 26 + COUNT( + 34 )
----
17

skipif mysql # not compatible
query I rowsort label-7374
SELECT DISTINCT - 10 + + + 26 + COUNT ( + 34 )
----
17

query I rowsort
SELECT DISTINCT 55 * - 73 AS col2
----
-4015

query I rowsort
SELECT + 3 * + 75 + - 20 AS col2
----
205

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7377
SELECT - COUNT( * ) DIV + 30 + + + 71 AS col0
----
71

skipif mysql # not compatible
query I rowsort label-7377
SELECT - COUNT ( * ) / + 30 + + + 71 AS col0
----
71

query I rowsort
SELECT DISTINCT + 50 + 15 AS col1
----
65

query I rowsort
SELECT - - NULLIF ( + 20, 41 )
----
20

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7380
SELECT ALL 0 + + - 35, + CAST( + + 59 AS SIGNED ) col0
----
-35
59

skipif mysql # not compatible
query II rowsort label-7380
SELECT ALL 0 + + - 35, + CAST ( + + 59 AS INTEGER ) col0
----
-35
59

onlyif mysql # aggregate syntax: 
query I rowsort label-7381
SELECT + 70 * COALESCE ( + COUNT( 34 ), - 63 * + + 60, - + 75 - 28 )
----
70

skipif mysql # not compatible
query I rowsort label-7381
SELECT + 70 * COALESCE ( + COUNT ( 34 ), - 63 * + + 60, - + 75 - 28 )
----
70

onlyif mysql # aggregate syntax: 
query II rowsort label-7382
SELECT MIN( ALL + - 64 ) AS col0, - 68 * + COUNT( * ) AS col2
----
-64
-68

skipif mysql # not compatible
query II rowsort label-7382
SELECT MIN ( ALL + - 64 ) AS col0, - 68 * + COUNT ( * ) AS col2
----
-64
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-7383
SELECT + + SUM( - + 91 ) + + 67 AS col2
----
-24

skipif mysql # not compatible
query I rowsort label-7383
SELECT + + SUM ( - + 91 ) + + 67 AS col2
----
-24

query I rowsort
SELECT ALL 72 * 55 - - 8 AS col0
----
3968

query I rowsort
SELECT ALL + 21 * - - 8
----
168

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7386
SELECT COALESCE ( - 97, + CAST( CAST( - ( + - ( COALESCE ( 51, - CAST( NULL AS SIGNED ) ) ) ) AS SIGNED ) AS SIGNED ), - SUM( - 25 ) ) col2
----
-97

skipif mysql # not compatible
query I rowsort label-7386
SELECT COALESCE ( - 97, + CAST ( CAST ( - ( + - ( COALESCE ( 51, - CAST ( NULL AS INTEGER ) ) ) ) AS INTEGER ) AS INTEGER ), - SUM ( - 25 ) ) col2
----
-97

query II rowsort
SELECT DISTINCT + 83 col1, - 0
----
83
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7388
SELECT DISTINCT + COALESCE ( 80, 61 * - - CASE - 64 WHEN - COUNT( * ) THEN - 74 WHEN + + 34 THEN COUNT( * ) WHEN MIN( ALL + 70 ) THEN NULL ELSE + + 64 END, 5 + - + CASE + 1 WHEN - + 64 THEN NULL WHEN + MAX( DISTINCT + - 61 ) THEN + 68 - 87 ELSE 62 + COUNT( * ) END ) * - COUNT( * )
----
-80

skipif mysql # not compatible
query I rowsort label-7388
SELECT DISTINCT + COALESCE ( 80, 61 * - - CASE - 64 WHEN - COUNT ( * ) THEN - 74 WHEN + + 34 THEN COUNT ( * ) WHEN MIN ( ALL + 70 ) THEN NULL ELSE + + 64 END, 5 + - + CASE + 1 WHEN - + 64 THEN NULL WHEN + MAX ( DISTINCT + - 61 ) THEN + 68 - 87 ELSE 62 + COUNT ( * ) END ) * - COUNT ( * )
----
-80

query I rowsort
SELECT ALL - NULLIF ( + - 89, + 24 ) * - 58 * - + 2 * + 82 - - 90
----
846658

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7390
SELECT ( 46 ) / - ( + CASE + ( + 72 ) WHEN + - COUNT( * ) + - + 97 * 31 THEN + SUM( ALL - - 48 ) + ( 4 ) * - + NULLIF ( 9, - ( - COALESCE ( - - 89, + NULLIF ( 65, 28 + 7 * + 62 ) ) ) ) ELSE 26 + - 73 END ) * 64 + - CAST( NULL AS DECIMAL ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7390
SELECT ( 46 ) / - ( + CASE + ( + 72 ) WHEN + - COUNT ( * ) + - + 97 * 31 THEN + SUM ( ALL - - 48 ) + ( 4 ) * - + NULLIF ( 9, - ( - COALESCE ( - - 89, + NULLIF ( 65, 28 + 7 * + 62 ) ) ) ) ELSE 26 + - 73 END ) * 64 + - CAST ( NULL AS REAL ) AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7391
SELECT + 81 * CASE - CAST( NULL AS SIGNED ) WHEN 62 THEN - + 16 WHEN 1 - - - NULLIF ( - 68, - 38 * + COUNT( * ) + - 32 ) * + + 87 THEN NULL END + - 41 * + 59 + + 10
----
NULL

skipif mysql # not compatible
query I rowsort label-7391
SELECT + 81 * CASE - CAST ( NULL AS INTEGER ) WHEN 62 THEN - + 16 WHEN 1 - - - NULLIF ( - 68, - 38 * + COUNT ( * ) + - 32 ) * + + 87 THEN NULL END + - 41 * + 59 + + 10
----
NULL

query II rowsort
SELECT ALL + 24, - 39 AS col2
----
24
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-7393
SELECT + 54 + - 39 + + ( - + ( + COUNT( * ) ) ) + - 7
----
7

skipif mysql # not compatible
query I rowsort label-7393
SELECT + 54 + - 39 + + ( - + ( + COUNT ( * ) ) ) + - 7
----
7

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

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

skipif mysql # not compatible
query II rowsort label-7395
SELECT + 69 AS col0, - 7 * - COUNT ( * )
----
69
7

query II rowsort
SELECT DISTINCT + NULLIF ( + 46, + 29 ) AS col1, 81 AS col2
----
46
81

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

skipif mysql # not compatible
query I rowsort label-7397
SELECT ALL - 87 / COUNT ( * ) AS col1
----
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-7398
SELECT DISTINCT + COALESCE ( + 1, + 49 * + + COUNT( * ) + - + 89 * - - COUNT( - 32 ) * + + 95 + 44 )
----
1

skipif mysql # not compatible
query I rowsort label-7398
SELECT DISTINCT + COALESCE ( + 1, + 49 * + + COUNT ( * ) + - + 89 * - - COUNT ( - 32 ) * + + 95 + 44 )
----
1

query I rowsort
SELECT DISTINCT 30 * + 13 AS col1
----
390

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7400
SELECT ALL + 47 * - CAST( NULL AS SIGNED ) + - 80 + + 2 * 4 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7400
SELECT ALL + 47 * - CAST ( NULL AS INTEGER ) + - 80 + + 2 * 4 AS col0
----
NULL

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

query I rowsort
SELECT 87 * 86 + - 59 + - 49
----
7374

onlyif mysql # aggregate syntax: 
query I rowsort label-7403
SELECT DISTINCT + 96 * + 33 * COUNT( ALL 84 ) * - COUNT( - 80 )
----
-3168

skipif mysql # not compatible
query I rowsort label-7403
SELECT DISTINCT + 96 * + 33 * COUNT ( ALL 84 ) * - COUNT ( - 80 )
----
-3168

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7404
SELECT ALL MIN( DISTINCT + 70 ) * + 95 * - 49 + - 57 + NULLIF ( + 22, 46 ) * 60 DIV + - 74 AS col0
----
-325924

skipif mysql # not compatible
query I rowsort label-7404
SELECT ALL MIN ( DISTINCT + 70 ) * + 95 * - 49 + - 57 + NULLIF ( + 22, 46 ) * 60 / + - 74 AS col0
----
-325924

onlyif mysql # aggregate syntax: 
query I rowsort label-7405
SELECT + MIN( - 50 ) col0
----
-50

skipif mysql # not compatible
query I rowsort label-7405
SELECT + MIN ( - 50 ) col0
----
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-7406
SELECT - 47 + - COUNT( ALL 66 )
----
-48

skipif mysql # not compatible
query I rowsort label-7406
SELECT - 47 + - COUNT ( ALL 66 )
----
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-7407
SELECT + + 92 * + SUM( 52 ) AS col2
----
4784

skipif mysql # not compatible
query I rowsort label-7407
SELECT + + 92 * + SUM ( 52 ) AS col2
----
4784

query I rowsort
SELECT ALL 4 + - 55 + + + 67
----
16

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

skipif mysql # not compatible
query I rowsort label-7409
SELECT ALL + 12 + COUNT ( * ) AS col2
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-7410
SELECT COUNT( DISTINCT 41 )
----
1

skipif mysql # not compatible
query I rowsort label-7410
SELECT COUNT ( DISTINCT 41 )
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-7411
SELECT - - 21 AS col2, ( MIN( DISTINCT - 58 ) ) AS col2
----
21
-58

skipif mysql # not compatible
query II rowsort label-7411
SELECT - - 21 AS col2, ( MIN ( DISTINCT - 58 ) ) AS col2
----
21
-58

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7412
SELECT + - 65 - 28 * + + CASE + 78 WHEN + COALESCE ( - COUNT( * ), + + COUNT( * ) ) THEN NULL ELSE - 69 DIV - + 14 END + - 20 + + 79 col2, - 92 AS col0
----
-118
-92

skipif mysql # not compatible
query II rowsort label-7412
SELECT + - 65 - 28 * + + CASE + 78 WHEN + COALESCE ( - COUNT ( * ), + + COUNT ( * ) ) THEN NULL ELSE - 69 / - + 14 END + - 20 + + 79 col2, - 92 AS col0
----
-118
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-7413
SELECT + + MIN( 36 ) * ( - 23 ) AS col1
----
-828

skipif mysql # not compatible
query I rowsort label-7413
SELECT + + MIN ( 36 ) * ( - 23 ) AS col1
----
-828

query I rowsort
SELECT COALESCE ( + 4, - - 87 * 31 )
----
4

query I rowsort
SELECT - 46 + - 69 AS col1
----
-115

query II rowsort
SELECT + COALESCE ( 94, + 20 ) * - NULLIF ( + 66, - - 89 ) AS col1, 70
----
-6204
70

query I rowsort
SELECT ALL 73 * + 18 AS col1
----
1314

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7418
SELECT DISTINCT 78 * COALESCE ( - CAST( + CAST( + - 11 AS SIGNED ) AS SIGNED ), - 35, + 21 ) * + COUNT( * ) + + COUNT( * ) * + 40 * - - 64 - + COUNT( * ) AS col0
----
3417

skipif mysql # not compatible
query I rowsort label-7418
SELECT DISTINCT 78 * COALESCE ( - CAST ( + CAST ( + - 11 AS INTEGER ) AS INTEGER ), - 35, + 21 ) * + COUNT ( * ) + + COUNT ( * ) * + 40 * - - 64 - + COUNT ( * ) AS col0
----
3417

query I rowsort
SELECT + 67 - + - 10
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-7420
SELECT - AVG ( ALL 69 ) * + NULLIF ( - + MAX( - 11 ), - 80 * 28 ) * + - 21 / + + CASE - 31 WHEN - 34 - MIN( + 60 ) * + 35 THEN + 92 WHEN + + 55 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-7420
SELECT - AVG ( ALL 69 ) * + NULLIF ( - + MAX ( - 11 ), - 80 * 28 ) * + - 21 / + + CASE - 31 WHEN - 34 - MIN ( + 60 ) * + 35 THEN + 92 WHEN + + 55 THEN NULL END
----
NULL

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

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

query I rowsort
SELECT ALL + COALESCE ( + - 26, + + 19 + 65 )
----
-26

query I rowsort
SELECT + 25 * - - 48 AS col0
----
1200

onlyif mysql # DIV for integer division: 
query I rowsort label-7424
SELECT DISTINCT 7 DIV - 81 + 84
----
84

skipif mysql # not compatible
query I rowsort label-7424
SELECT DISTINCT 7 / - 81 + 84
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-7425
SELECT - 94 * CASE - 33 WHEN - + 36 + - COUNT( * ) THEN + - 6 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7425
SELECT - 94 * CASE - 33 WHEN - + 36 + - COUNT ( * ) THEN + - 6 END AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7426
SELECT ALL 82 DIV 39 + - COUNT( * ) - - + NULLIF ( - 39, - 51 ) AS col2
----
-38

skipif mysql # not compatible
query I rowsort label-7426
SELECT ALL 82 / 39 + - COUNT ( * ) - - + NULLIF ( - 39, - 51 ) AS col2
----
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-7427
SELECT DISTINCT + COALESCE ( - 69, + 56 * + MAX( DISTINCT 24 ) - + MIN( DISTINCT + 59 ) + + - 33 )
----
-69

skipif mysql # not compatible
query I rowsort label-7427
SELECT DISTINCT + COALESCE ( - 69, + 56 * + MAX ( DISTINCT 24 ) - + MIN ( DISTINCT + 59 ) + + - 33 )
----
-69

onlyif mysql # DIV for integer division: 
query I rowsort label-7428
SELECT DISTINCT 20 DIV - 86 + + + 33
----
33

skipif mysql # not compatible
query I rowsort label-7428
SELECT DISTINCT 20 / - 86 + + + 33
----
33

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7430
SELECT NULLIF ( 84, - COUNT( * ) + + COUNT( * ) * - 5 ) * - + 46 + 64 * + ( 81 ) * + 77 DIV + 7
----
53160

skipif mysql # not compatible
query I rowsort label-7430
SELECT NULLIF ( 84, - COUNT ( * ) + + COUNT ( * ) * - 5 ) * - + 46 + 64 * + ( 81 ) * + 77 / + 7
----
53160

onlyif mysql # aggregate syntax: 
query I rowsort label-7431
SELECT - COALESCE ( COUNT( * ), - COUNT( * ) * 90 * + 4 + + SUM( - 29 ) + - 65 + - + 98 ) + COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-7431
SELECT - COALESCE ( COUNT ( * ), - COUNT ( * ) * 90 * + 4 + + SUM ( - 29 ) + - 65 + - + 98 ) + COUNT ( * )
----
0

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

query I rowsort
SELECT + 58 * + 63 + - 99 + 56
----
3611

query II rowsort
SELECT DISTINCT - 83 + + 56, 70 AS col0
----
-27
70

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7436
SELECT ALL + 61 * + 84 + COUNT( * ) + + + COUNT( * ) * 35 AS col0
----
5160

skipif mysql # not compatible
query I rowsort label-7436
SELECT ALL + 61 * + 84 + COUNT ( * ) + + + COUNT ( * ) * 35 AS col0
----
5160

query I rowsort
SELECT + 85 + 93
----
178

query I rowsort
SELECT ALL + + 6 * - 13 AS col1
----
-78

query I rowsort
SELECT - 52 + + 64 AS col2
----
12

onlyif mysql # DIV for integer division: 
query I rowsort label-7440
SELECT 48 DIV 29 * - 31 AS col1
----
-31

skipif mysql # not compatible
query I rowsort label-7440
SELECT 48 / 29 * - 31 AS col1
----
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-7441
SELECT - NULLIF ( - COUNT( * ), + + 92 * - - ( + SUM( - - 78 ) ) - 96 + + 34 * + 43 * 89 ) - - - COUNT( * ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-7441
SELECT - NULLIF ( - COUNT ( * ), + + 92 * - - ( + SUM ( - - 78 ) ) - 96 + + 34 * + 43 * 89 ) - - - COUNT ( * ) AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7442
SELECT + ( - COUNT( * ) ) * + - COALESCE ( - 12, + + 95 * - 55 ) * + 94 AS col2
----
-1128

skipif mysql # not compatible
query I rowsort label-7442
SELECT + ( - COUNT ( * ) ) * + - COALESCE ( - 12, + + 95 * - 55 ) * + 94 AS col2
----
-1128

query I rowsort
SELECT - NULLIF ( - 64, - NULLIF ( 75, + 2 ) * 36 )
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-7444
SELECT ALL + COUNT( ALL 56 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-7444
SELECT ALL + COUNT ( ALL 56 ) AS col0
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-7445
SELECT 44 DIV + + 73 * + 40 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-7445
SELECT 44 / + + 73 * + 40 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7446
SELECT SUM( - 89 ) * - - 19 + COALESCE ( + - 43, - 16 )
----
-1734

skipif mysql # not compatible
query I rowsort label-7446
SELECT SUM ( - 89 ) * - - 19 + COALESCE ( + - 43, - 16 )
----
-1734

query I rowsort
SELECT ALL 67 * - 54
----
-3618

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7448
SELECT SUM( - CAST( - 20 AS SIGNED ) ) - - - 88 AS col0
----
-68

skipif mysql # not compatible
query I rowsort label-7448
SELECT SUM ( - CAST ( - 20 AS INTEGER ) ) - - - 88 AS col0
----
-68

query II rowsort
SELECT 95 col1, + 55 AS col0
----
95
55

query I rowsort
SELECT ALL 19 * - + 8 AS col0
----
-152

onlyif mysql # aggregate syntax: 
query II rowsort label-7451
SELECT ALL 31 + - + 52 * - 31 AS col2, 9 * - ( - ( + 29 ) ) + COUNT( * ) AS col0
----
1643
262

skipif mysql # not compatible
query II rowsort label-7451
SELECT ALL 31 + - + 52 * - 31 AS col2, 9 * - ( - ( + 29 ) ) + COUNT ( * ) AS col0
----
1643
262

onlyif mysql # aggregate syntax: 
query I rowsort label-7452
SELECT MIN( + ( + 61 ) ) + 39 + 43 AS col0
----
143

skipif mysql # not compatible
query I rowsort label-7452
SELECT MIN ( + ( + 61 ) ) + 39 + 43 AS col0
----
143

query I rowsort
SELECT ALL 83 * + - 39 AS col0
----
-3237

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7454
SELECT + CAST( CASE + 81 WHEN - + 9 * - 83 - + 28 THEN NULL ELSE - + 18 END AS SIGNED ) * 38 + 69
----
-615

skipif mysql # not compatible
query I rowsort label-7454
SELECT + CAST ( CASE + 81 WHEN - + 9 * - 83 - + 28 THEN NULL ELSE - + 18 END AS INTEGER ) * 38 + 69
----
-615

query I rowsort
SELECT DISTINCT 18 + + 89 AS col2
----
107

query I rowsort
SELECT ALL 77 + 14
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-7457
SELECT 14 + COUNT( 41 ) + - 37 AS col2
----
-22

skipif mysql # not compatible
query I rowsort label-7457
SELECT 14 + COUNT ( 41 ) + - 37 AS col2
----
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-7458
SELECT ALL MAX( 46 ) + - 17
----
29

skipif mysql # not compatible
query I rowsort label-7458
SELECT ALL MAX ( 46 ) + - 17
----
29

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7459
SELECT 20 + + CASE - 1 WHEN - 76 THEN 46 * + CAST( + - 43 AS DECIMAL ) * + + 16 / - 30 + - - 98 + 88 * 99 ELSE NULL END - - ( ( 81 ) ) * - COUNT( * ) * + + 41 + NULLIF ( + 45, + 65 * - ( 51 ) + SUM( ALL - 59 ) * - 53 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7459
SELECT 20 + + CASE - 1 WHEN - 76 THEN 46 * + CAST ( + - 43 AS REAL ) * + + 16 / - 30 + - - 98 + 88 * 99 ELSE NULL END - - ( ( 81 ) ) * - COUNT ( * ) * + + 41 + NULLIF ( + 45, + 65 * - ( 51 ) + SUM ( ALL - 59 ) * - 53 ) AS col2
----
NULL

query I rowsort
SELECT 94 * 72 AS col1
----
6768

onlyif mysql # aggregate syntax: 
query I rowsort label-7461
SELECT DISTINCT 8 + - + SUM( - 44 )
----
52

skipif mysql # not compatible
query I rowsort label-7461
SELECT DISTINCT 8 + - + SUM ( - 44 )
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-7462
SELECT ALL - - CASE + 85 WHEN - COUNT( ALL - 19 ) THEN NULL ELSE - ( - 52 ) / - 75 - + 22 END - - - SUM( ALL - 59 ) + - - ( + COUNT( * ) ) - - + CASE NULLIF ( + COUNT( * ), - MAX( + 21 ) * 66 ) WHEN 24 * + - NULLIF ( 21, 76 ) + ( 76 ) THEN - 9 WHEN NULLIF ( 48, - 56 + - 95 * - 6 ) THEN ( 67 ) + 18 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7462
SELECT ALL - - CASE + 85 WHEN - COUNT ( ALL - 19 ) THEN NULL ELSE - ( - 52 ) / - 75 - + 22 END - - - SUM ( ALL - 59 ) + - - ( + COUNT ( * ) ) - - + CASE NULLIF ( + COUNT ( * ), - MAX ( + 21 ) * 66 ) WHEN 24 * + - NULLIF ( 21, 76 ) + ( 76 ) THEN - 9 WHEN NULLIF ( 48, - 56 + - 95 * - 6 ) THEN ( 67 ) + 18 END AS col0
----
NULL

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7465
SELECT DISTINCT - + 4 * + + 25 * - MAX( + 42 ) + + + 85
----
4285

skipif mysql # not compatible
query I rowsort label-7465
SELECT DISTINCT - + 4 * + + 25 * - MAX ( + 42 ) + + + 85
----
4285

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

skipif mysql # not compatible
query I rowsort label-7466
SELECT ALL + + 79 - + - COUNT ( * ) AS col2
----
80

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7467
SELECT - 22 - - 93 DIV + CAST( + MIN( - ( + 92 ) ) AS SIGNED )
----
-23

skipif mysql # not compatible
query I rowsort label-7467
SELECT - 22 - - 93 / + CAST ( + MIN ( - ( + 92 ) ) AS INTEGER )
----
-23

onlyif mysql # aggregate syntax: 
query II rowsort label-7468
SELECT COUNT( * ), - 88 + 55 + - 99 * - - 72 + - + 27 + COUNT( * ) AS col0
----
1
-7187

skipif mysql # not compatible
query II rowsort label-7468
SELECT COUNT ( * ), - 88 + 55 + - 99 * - - 72 + - + 27 + COUNT ( * ) AS col0
----
1
-7187

query I rowsort
SELECT 63 + + - 66 AS col1
----
-3

query I rowsort
SELECT ALL + 88 * - 3
----
-264

query II rowsort
SELECT + 35, + 2 AS col2
----
35
2

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

skipif mysql # not compatible
query I rowsort label-7472
SELECT DISTINCT - COALESCE ( - COUNT ( * ), + 5 )
----
1

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7474
SELECT ALL + ( COUNT( * ) ) * - 20 + + 94 * + 10 * - - 7 - - 85
----
6645

skipif mysql # not compatible
query I rowsort label-7474
SELECT ALL + ( COUNT ( * ) ) * - 20 + + 94 * + 10 * - - 7 - - 85
----
6645

query I rowsort
SELECT 54 - 2 AS col0
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-7476
SELECT 60 * - 44 * + COALESCE ( - 95, + - 83 * 49 * + - 9 + + 95 + + + MIN( + ( - 18 ) ) + 57 + - - 76 )
----
250800

skipif mysql # not compatible
query I rowsort label-7476
SELECT 60 * - 44 * + COALESCE ( - 95, + - 83 * 49 * + - 9 + + 95 + + + MIN ( + ( - 18 ) ) + 57 + - - 76 )
----
250800

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

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

query II rowsort
SELECT - 96 AS col2, COALESCE ( - 71, + 83 * + 95 + 57 )
----
-96
-71

query II rowsort
SELECT - 51 AS col2, 8
----
-51
8

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

skipif mysql # not compatible
query I rowsort label-7480
SELECT ALL 13 + + COUNT ( * ) AS col1
----
14

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7481
SELECT DISTINCT + 82 + + 21 + + ( COUNT( * ) ) DIV ( + 23 ) * - 8 AS col2
----
103

skipif mysql # not compatible
query I rowsort label-7481
SELECT DISTINCT + 82 + + 21 + + ( COUNT ( * ) ) / ( + 23 ) * - 8 AS col2
----
103

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-7482
SELECT DISTINCT + 73 + + - 79 AS col0, CAST( + CAST( NULL AS DECIMAL ) AS DECIMAL )
----
-6
NULL

skipif mysql # not compatible
query II rowsort label-7482
SELECT DISTINCT + 73 + + - 79 AS col0, CAST ( + CAST ( NULL AS REAL ) AS REAL )
----
-6
NULL

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7484
SELECT ALL COALESCE ( NULLIF ( + 0, - + 1 ), + CAST( NULL AS DECIMAL ) ) * + - 18 + COUNT( * ) + - + 58 * CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7484
SELECT ALL COALESCE ( NULLIF ( + 0, - + 1 ), + CAST ( NULL AS REAL ) ) * + - 18 + COUNT ( * ) + - + 58 * CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7485
SELECT + 55 / - 43 - + ( + + 57 ) * + 40 / - CAST( NULL AS SIGNED ) AS col0, CAST( NULL AS SIGNED )
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-7485
SELECT + 55 / - 43 - + ( + + 57 ) * + 40 / - CAST ( NULL AS INTEGER ) AS col0, CAST ( NULL AS INTEGER )
----
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7486
SELECT NULLIF ( 94, - + 27 * 24 / + COUNT( * ) )
----
94

skipif mysql # not compatible
query I rowsort label-7486
SELECT NULLIF ( 94, - + 27 * 24 / + COUNT ( * ) )
----
94

query I rowsort
SELECT NULLIF ( 96, 3 ) col1
----
96

query I rowsort
SELECT + 41 * + - 4 * + 67
----
-10988

query I rowsort
SELECT + 88 * + 71 AS col2
----
6248

query I rowsort
SELECT ALL 10 * - - 60 + - - 76
----
676

query II rowsort
SELECT ALL + + NULLIF ( 4, - 80 * - 63 * - + 32 + + 96 ), 5 AS col2
----
4
5

onlyif mysql # aggregate syntax: 
query II rowsort label-7492
SELECT - - 3 * - - 94 + + 38 + + + ( MIN( DISTINCT + 51 ) ) + + 1 * - ( - 66 ) + + COUNT( * ) + 42 * - + 49 AS col2, - 75
----
-1620
-75

skipif mysql # not compatible
query II rowsort label-7492
SELECT - - 3 * - - 94 + + 38 + + + ( MIN ( DISTINCT + 51 ) ) + + 1 * - ( - 66 ) + + COUNT ( * ) + 42 * - + 49 AS col2, - 75
----
-1620
-75

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

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

query I rowsort
SELECT + - 53 + - 99 * - - 36 AS col0
----
-3617

query I rowsort
SELECT + + 38 * 19 - + ( - - 76 ) AS col2
----
646

onlyif mysql # aggregate syntax: 
query I rowsort label-7496
SELECT + + MAX( - 89 ) col1
----
-89

skipif mysql # not compatible
query I rowsort label-7496
SELECT + + MAX ( - 89 ) col1
----
-89

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7497
SELECT + + MIN( DISTINCT + 48 ) + + 75 * - - 29 + - CAST( NULL AS SIGNED ) * + 87 col2, 24 AS col0
----
NULL
24

skipif mysql # not compatible
query II rowsort label-7497
SELECT + + MIN ( DISTINCT + 48 ) + + 75 * - - 29 + - CAST ( NULL AS INTEGER ) * + 87 col2, 24 AS col0
----
NULL
24

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-7498
SELECT + CAST( + 99 AS SIGNED ), - 32 + 94 DIV - ( + 18 ) AS col1
----
99
-37

skipif mysql # not compatible
query II rowsort label-7498
SELECT + CAST ( + 99 AS INTEGER ), - 32 + 94 / - ( + 18 ) AS col1
----
99
-37

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-7500
SELECT DISTINCT COUNT( * ) AS col0, - 38 + - 39 AS col1
----
1
-77

skipif mysql # not compatible
query II rowsort label-7500
SELECT DISTINCT COUNT ( * ) AS col0, - 38 + - 39 AS col1
----
1
-77

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7501
SELECT - + CAST( NULL AS SIGNED ) * - - 52 * ( + + CAST( NULL AS DECIMAL ) ) * - 26
----
NULL

skipif mysql # not compatible
query I rowsort label-7501
SELECT - + CAST ( NULL AS INTEGER ) * - - 52 * ( + + CAST ( NULL AS REAL ) ) * - 26
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7502
SELECT - + NULLIF ( 7, 57 * + COUNT( * ) ) AS col1
----
-7

skipif mysql # not compatible
query I rowsort label-7502
SELECT - + NULLIF ( 7, 57 * + COUNT ( * ) ) AS col1
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-7503
SELECT + + 76 + MIN( DISTINCT - 79 ) * + 94
----
-7350

skipif mysql # not compatible
query I rowsort label-7503
SELECT + + 76 + MIN ( DISTINCT - 79 ) * + 94
----
-7350

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7504
SELECT ALL CASE - ( 22 ) WHEN + + NULLIF ( + - 72, - AVG ( + + 10 ) * + 72 ) * + 24 THEN - COUNT( * ) * + 71 ELSE COUNT( * ) END, 75 - + CAST( NULL AS SIGNED ) AS col2
----
1
NULL

skipif mysql # not compatible
query II rowsort label-7504
SELECT ALL CASE - ( 22 ) WHEN + + NULLIF ( + - 72, - AVG ( + + 10 ) * + 72 ) * + 24 THEN - COUNT ( * ) * + 71 ELSE COUNT ( * ) END, 75 - + CAST ( NULL AS INTEGER ) AS col2
----
1
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7505
SELECT + NULLIF ( + - 10, NULLIF ( 49, + - 88 ) * - 75 ) * - 64 * + ( - + 77 ) * - 28 * - 36 + 0 + + 64 + + + COUNT( + - 50 )
----
-49674175

skipif mysql # not compatible
query I rowsort label-7505
SELECT + NULLIF ( + - 10, NULLIF ( 49, + - 88 ) * - 75 ) * - 64 * + ( - + 77 ) * - 28 * - 36 + 0 + + 64 + + + COUNT ( + - 50 )
----
-49674175

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7506
SELECT - CAST( - 32 AS SIGNED ) * - + 38
----
-1216

skipif mysql # not compatible
query I rowsort label-7506
SELECT - CAST ( - 32 AS INTEGER ) * - + 38
----
-1216

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

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

query II rowsort
SELECT DISTINCT + 14 * + - 41, 31 AS col0
----
-574
31

onlyif mysql # DIV for integer division: 
query I rowsort label-7509
SELECT ALL + 87 + 23 * ( - 3 ) - + 64 DIV + 84
----
18

skipif mysql # not compatible
query I rowsort label-7509
SELECT ALL + 87 + 23 * ( - 3 ) - + 64 / + 84
----
18

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

skipif mysql # not compatible
query I rowsort label-7510
SELECT ALL - COUNT ( * ) + - CAST ( NULL AS INTEGER ) + - + 67 + - COUNT ( * ) * - + 61 * + 0
----
NULL

query I rowsort
SELECT DISTINCT - NULLIF ( - + 55, + 3 ) * + 98
----
5390

onlyif mysql # aggregate syntax: 
query I rowsort label-7512
SELECT - 36 + + 38 + + 93 * - 81 * + + SUM( DISTINCT - - 14 )
----
-105460

skipif mysql # not compatible
query I rowsort label-7512
SELECT - 36 + + 38 + + 93 * - 81 * + + SUM ( DISTINCT - - 14 )
----
-105460

query I rowsort
SELECT ALL + 70 * + - 2 AS col1
----
-140

onlyif mysql # DIV for integer division: 
query I rowsort label-7514
SELECT ALL - 28 DIV - - 36 - + + 51 AS col1
----
-51

skipif mysql # not compatible
query I rowsort label-7514
SELECT ALL - 28 / - - 36 - + + 51 AS col1
----
-51

query II rowsort
SELECT - 64 * - 54 AS col0, - 83
----
3456
-83

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

query I rowsort
SELECT - + 31 * + 57 - - 66 + + + 14
----
-1687

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7518
SELECT DISTINCT - 70 DIV - 42 - + + MIN( DISTINCT + - 66 )
----
67

skipif mysql # not compatible
query I rowsort label-7518
SELECT DISTINCT - 70 / - 42 - + + MIN ( DISTINCT + - 66 )
----
67

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7519
SELECT + - 93 * 99 + - 90 + - - CAST( 66 AS SIGNED )
----
-9231

skipif mysql # not compatible
query I rowsort label-7519
SELECT + - 93 * 99 + - 90 + - - CAST ( 66 AS INTEGER )
----
-9231

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-7520
SELECT ALL CAST( NULL AS DECIMAL ) * COUNT( * ), + 49 AS col0
----
NULL
49

skipif mysql # not compatible
query II rowsort label-7520
SELECT ALL CAST ( NULL AS REAL ) * COUNT ( * ), + 49 AS col0
----
NULL
49

query I rowsort
SELECT + 31 * 69 AS col2
----
2139

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7522
SELECT ALL CAST( 24 AS SIGNED ) * - 22
----
-528

skipif mysql # not compatible
query I rowsort label-7522
SELECT ALL CAST ( 24 AS INTEGER ) * - 22
----
-528

query I rowsort
SELECT ALL - 10 * + + 75
----
-750

query I rowsort
SELECT DISTINCT - 19 * + 88 + + 57 + 94 * + 88 * + 13 AS col1
----
105921

onlyif mysql # aggregate syntax: 
query I rowsort label-7525
SELECT + - CASE 21 WHEN - SUM( - - 27 ) THEN + 27 + - 47 END / COALESCE ( - 18, - 42 * + 83, - AVG ( + 42 ) ) * - 6 - + COUNT( * ) + + 99 + + 29 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7525
SELECT + - CASE 21 WHEN - SUM ( - - 27 ) THEN + 27 + - 47 END / COALESCE ( - 18, - 42 * + 83, - AVG ( + 42 ) ) * - 6 - + COUNT ( * ) + + 99 + + 29 AS col0
----
NULL

query I rowsort
SELECT + + 80 - - 87
----
167

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7527
SELECT + 43 DIV - 45 + + - COUNT( * ) col1
----
-1

skipif mysql # not compatible
query I rowsort label-7527
SELECT + 43 / - 45 + + - COUNT ( * ) col1
----
-1

query I rowsort
SELECT + + 31 * - ( + 97 ) AS col1
----
-3007

onlyif mysql # DIV for integer division: 
query II rowsort label-7529
SELECT DISTINCT + 67 DIV - - 85 AS col0, - 6
----
0
-6

skipif mysql # not compatible
query II rowsort label-7529
SELECT DISTINCT + 67 / - - 85 AS col0, - 6
----
0
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-7530
SELECT ALL 23 * - 40 + - - MAX( ALL + 17 ) AS col1
----
-903

skipif mysql # not compatible
query I rowsort label-7530
SELECT ALL 23 * - 40 + - - MAX ( ALL + 17 ) AS col1
----
-903

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7532
SELECT DISTINCT COALESCE ( COALESCE ( + 24, - 55 ), - ( + 58 ) + + + 57 / - 38, - + 19 ) * - + 22 + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7532
SELECT DISTINCT COALESCE ( COALESCE ( + 24, - 55 ), - ( + 58 ) + + + 57 / - 38, - + 19 ) * - + 22 + CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7533
SELECT + CAST( - - CAST( NULL AS DECIMAL ) AS SIGNED ) - CASE MAX( DISTINCT - - 58 ) WHEN + + 9 THEN - + CASE 61 WHEN 56 THEN - + 43 WHEN CAST( COUNT( * ) AS SIGNED ) + ( + + CAST( 56 AS SIGNED ) ) THEN + - 93 * + 20 ELSE NULL END ELSE NULL END + - - 4
----
NULL

skipif mysql # not compatible
query I rowsort label-7533
SELECT + CAST ( - - CAST ( NULL AS REAL ) AS INTEGER ) - CASE MAX ( DISTINCT - - 58 ) WHEN + + 9 THEN - + CASE 61 WHEN 56 THEN - + 43 WHEN CAST ( COUNT ( * ) AS INTEGER ) + ( + + CAST ( 56 AS INTEGER ) ) THEN + - 93 * + 20 ELSE NULL END ELSE NULL END + - - 4
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7534
SELECT DISTINCT COUNT( * ) + - CAST( 71 AS SIGNED ) * + + 78 + + 88 AS col1
----
-5449

skipif mysql # not compatible
query I rowsort label-7534
SELECT DISTINCT COUNT ( * ) + - CAST ( 71 AS INTEGER ) * + + 78 + + 88 AS col1
----
-5449

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

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

query II rowsort
SELECT 21 AS col0, - 36 col2
----
21
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-7537
SELECT 30 + - - 9 * - COUNT( * ) * - 45
----
435

skipif mysql # not compatible
query I rowsort label-7537
SELECT 30 + - - 9 * - COUNT ( * ) * - 45
----
435

onlyif mysql # DIV for integer division: 
query I rowsort label-7538
SELECT ALL - 92 DIV + - 7 AS col2
----
13

skipif mysql # not compatible
query I rowsort label-7538
SELECT ALL - 92 / + - 7 AS col2
----
13

onlyif mysql # DIV for integer division: 
query I rowsort label-7539
SELECT 10 DIV - 17
----
0

skipif mysql # not compatible
query I rowsort label-7539
SELECT 10 / - 17
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7540
SELECT 23 DIV - + NULLIF ( COUNT( DISTINCT + 84 ), + 7 * - AVG ( - + 89 ) + - ( SUM( DISTINCT - 11 ) ) * + 60 )
----
-23

skipif mysql # not compatible
query I rowsort label-7540
SELECT 23 / - + NULLIF ( COUNT ( DISTINCT + 84 ), + 7 * - AVG ( - + 89 ) + - ( SUM ( DISTINCT - 11 ) ) * + 60 )
----
-23

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7541
SELECT ALL - CAST( + 29 AS SIGNED ) * + - 37
----
1073

skipif mysql # not compatible
query I rowsort label-7541
SELECT ALL - CAST ( + 29 AS INTEGER ) * + - 37
----
1073

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7542
SELECT - ( + - COALESCE ( - - 31, + 74 * - CAST( - 13 AS SIGNED ) * - 93 ) ) DIV 18 - + 78
----
-77

skipif mysql # not compatible
query I rowsort label-7542
SELECT - ( + - COALESCE ( - - 31, + 74 * - CAST ( - 13 AS INTEGER ) * - 93 ) ) / 18 - + 78
----
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-7543
SELECT - ( - 81 ) * ( MAX( DISTINCT 5 ) )
----
405

skipif mysql # not compatible
query I rowsort label-7543
SELECT - ( - 81 ) * ( MAX ( DISTINCT 5 ) )
----
405

query I rowsort
SELECT ALL - 16 * - + 19
----
304

query II rowsort
SELECT 15, 4 - - 17 AS col2
----
15
21

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7546
SELECT COALESCE ( + MIN( - + 48 ), - - 39 * - 31 DIV - COUNT( * ), + 75 - - + 10 * 10 ) * COUNT( * ) DIV - + MIN( 3 ) AS col1
----
16

skipif mysql # not compatible
query I rowsort label-7546
SELECT COALESCE ( + MIN ( - + 48 ), - - 39 * - 31 / - COUNT ( * ), + 75 - - + 10 * 10 ) * COUNT ( * ) / - + MIN ( 3 ) AS col1
----
16

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-7548
SELECT 21 AS col1, - 79 + - COUNT( * ) AS col2
----
21
-80

skipif mysql # not compatible
query II rowsort label-7548
SELECT 21 AS col1, - 79 + - COUNT ( * ) AS col2
----
21
-80

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7549
SELECT ALL - + MAX( ALL + CAST( 28 AS SIGNED ) ) AS col1, - 34
----
-28
-34

skipif mysql # not compatible
query II rowsort label-7549
SELECT ALL - + MAX ( ALL + CAST ( 28 AS INTEGER ) ) AS col1, - 34
----
-28
-34

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7550
SELECT ALL - + CAST( - 19 AS SIGNED ) + 15 + 33 * - 75
----
-2441

skipif mysql # not compatible
query I rowsort label-7550
SELECT ALL - + CAST ( - 19 AS INTEGER ) + 15 + 33 * - 75
----
-2441

query I rowsort
SELECT DISTINCT + + 30 + - 91
----
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-7552
SELECT ALL - COUNT( * ) + - 78 + 5 * - 27 + - - 55 * + 48
----
2426

skipif mysql # not compatible
query I rowsort label-7552
SELECT ALL - COUNT ( * ) + - 78 + 5 * - 27 + - - 55 * + 48
----
2426

onlyif mysql # aggregate syntax: 
query I rowsort label-7553
SELECT ALL + - 80 + - COALESCE ( 82, - 84 + - COUNT( DISTINCT - 47 ) )
----
-162

skipif mysql # not compatible
query I rowsort label-7553
SELECT ALL + - 80 + - COALESCE ( 82, - 84 + - COUNT ( DISTINCT - 47 ) )
----
-162

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

skipif mysql # not compatible
query I rowsort label-7554
SELECT DISTINCT - + NULLIF ( + - 70, - 54 * + COUNT ( * ) )
----
70

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7555
SELECT 9 * + 21 * CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) + - 28 * - 29 * + COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7555
SELECT 9 * + 21 * CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) + - 28 * - 29 * + COUNT ( * ) AS col2
----
NULL

query II rowsort
SELECT ALL - - 44 AS col0, ( 44 ) + - - 20
----
44
64

query I rowsort
SELECT ALL + - 5 + + - 21
----
-26

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7558
SELECT - NULLIF ( 13, + + 14 - + CAST( - + MIN( ALL - + 17 ) AS SIGNED ) ) + - COUNT( * ) + + 72 + - 60 AS col2
----
-2

skipif mysql # not compatible
query I rowsort label-7558
SELECT - NULLIF ( 13, + + 14 - + CAST ( - + MIN ( ALL - + 17 ) AS INTEGER ) ) + - COUNT ( * ) + + 72 + - 60 AS col2
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-7559
SELECT + 88 * - 10 - + COUNT( * ) AS col1
----
-881

skipif mysql # not compatible
query I rowsort label-7559
SELECT + 88 * - 10 - + COUNT ( * ) AS col1
----
-881

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7560
SELECT ALL 62 + + 1 + - 61 * CASE - CAST( NULL AS SIGNED ) WHEN - 63 THEN 99 WHEN - - MIN( + 15 ) THEN - ( + 93 ) + + 25 - + - 60 * - 30 / + 30 / ( - + 74 ) END + - 5 * + - 90 * - + AVG ( DISTINCT 0 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7560
SELECT ALL 62 + + 1 + - 61 * CASE - CAST ( NULL AS INTEGER ) WHEN - 63 THEN 99 WHEN - - MIN ( + 15 ) THEN - ( + 93 ) + + 25 - + - 60 * - 30 / + 30 / ( - + 74 ) END + - 5 * + - 90 * - + AVG ( DISTINCT 0 ) AS col2
----
NULL

query I rowsort
SELECT 20 + + 86
----
106

query I rowsort
SELECT ALL - 54 + - 91
----
-145

onlyif mysql # aggregate syntax: 
query I rowsort label-7563
SELECT ALL 71 * COUNT( * ) * 64 + - + MIN( ( 47 ) ) * + 79 col1
----
831

skipif mysql # not compatible
query I rowsort label-7563
SELECT ALL 71 * COUNT ( * ) * 64 + - + MIN ( ( 47 ) ) * + 79 col1
----
831

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

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

query II rowsort
SELECT DISTINCT - 69 AS col2, + 81
----
-69
81

query I rowsort
SELECT DISTINCT + 87 + - 75 AS col2
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-7567
SELECT ALL SUM( ALL 96 ) - 64
----
32

skipif mysql # not compatible
query I rowsort label-7567
SELECT ALL SUM ( ALL 96 ) - 64
----
32

query I rowsort
SELECT 85 + - + 83 * - 57
----
4816

query II rowsort
SELECT 88 * 27, + 52 AS col1
----
2376
52

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7570
SELECT DISTINCT SUM( - ( CAST( NULL AS SIGNED ) ) ) / + + 19, MIN( ALL - 40 ) + 34 AS col2
----
NULL
-6

skipif mysql # not compatible
query II rowsort label-7570
SELECT DISTINCT SUM ( - ( CAST ( NULL AS INTEGER ) ) ) / + + 19, MIN ( ALL - 40 ) + 34 AS col2
----
NULL
-6

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7572
SELECT ALL 18 / + CASE - 8 WHEN 88 THEN 65 + - + CAST( + 45 AS SIGNED ) - + NULLIF ( + 74, + 61 ) + - 19 * 67 * - 10 * ( + NULLIF ( + + COALESCE ( 7, + COUNT( * ) ), - 75 / - - 32 - - - 5 - + NULLIF ( 63, 91 * + 90 ) * 99 ) ) * 73 ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7572
SELECT ALL 18 / + CASE - 8 WHEN 88 THEN 65 + - + CAST ( + 45 AS INTEGER ) - + NULLIF ( + 74, + 61 ) + - 19 * 67 * - 10 * ( + NULLIF ( + + COALESCE ( 7, + COUNT ( * ) ), - 75 / - - 32 - - - 5 - + NULLIF ( 63, 91 * + 90 ) * 99 ) ) * 73 ELSE NULL END AS col1
----
NULL

query I rowsort
SELECT ALL 83 - - - 22
----
61

query I rowsort
SELECT 20 - - - 63 AS col2
----
-43

query I rowsort
SELECT 4 * + 78 * + + 73
----
22776

query I rowsort
SELECT 39 * - 43
----
-1677

onlyif mysql # DIV for integer division: 
query I rowsort label-7577
SELECT 55 - + 72 + + - 17 DIV 92 AS col2
----
-17

skipif mysql # not compatible
query I rowsort label-7577
SELECT 55 - + 72 + + - 17 / 92 AS col2
----
-17

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7578
SELECT ALL - + 13 * COALESCE ( - + COUNT( * ), 47 ) + - CAST( 2 AS SIGNED ) AS col1
----
11

skipif mysql # not compatible
query I rowsort label-7578
SELECT ALL - + 13 * COALESCE ( - + COUNT ( * ), 47 ) + - CAST ( 2 AS INTEGER ) AS col1
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-7579
SELECT + 9 + - 85 + - 20 + 94 + - 42 + + COUNT( * )
----
-43

skipif mysql # not compatible
query I rowsort label-7579
SELECT + 9 + - 85 + - 20 + 94 + - 42 + + COUNT ( * )
----
-43

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7580
SELECT ALL + - COUNT( * ) * - CASE + ( 27 ) WHEN 36 + 62 THEN NULL WHEN + SUM( ALL - 25 ) THEN + - 64 * + + CAST( + NULLIF ( - + 60, - 60 ) AS SIGNED ) / - 8 * - 48 - + 18 WHEN + - 94 THEN - - 98 ELSE - SUM( DISTINCT 0 ) * + + 0 * + CAST( NULL AS SIGNED ) END * + + 50 + + 70 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7580
SELECT ALL + - COUNT ( * ) * - CASE + ( 27 ) WHEN 36 + 62 THEN NULL WHEN + SUM ( ALL - 25 ) THEN + - 64 * + + CAST ( + NULLIF ( - + 60, - 60 ) AS INTEGER ) / - 8 * - 48 - + 18 WHEN + - 94 THEN - - 98 ELSE - SUM ( DISTINCT 0 ) * + + 0 * + CAST ( NULL AS INTEGER ) END * + + 50 + + 70 AS col2
----
NULL

query I rowsort
SELECT DISTINCT - + 48 * 78 * - 24 + + 96 + - + 8 AS col0
----
89944

onlyif mysql # aggregate syntax: 
query I rowsort label-7582
SELECT ALL 57 * - - 78 + + COALESCE ( - MIN( ALL 24 ), + - ( - 48 ) * - ( - - 29 ) * NULLIF ( + 10, 3 / - 88 ) + 34 + + 63 )
----
4422

skipif mysql # not compatible
query I rowsort label-7582
SELECT ALL 57 * - - 78 + + COALESCE ( - MIN ( ALL 24 ), + - ( - 48 ) * - ( - - 29 ) * NULLIF ( + 10, 3 / - 88 ) + 34 + + 63 )
----
4422

onlyif mysql # DIV for integer division: 
query I rowsort label-7583
SELECT 24 DIV + 35 * - 36 + + 97 + 83 AS col1
----
180

skipif mysql # not compatible
query I rowsort label-7583
SELECT 24 / + 35 * - 36 + + 97 + 83 AS col1
----
180

query I rowsort
SELECT ALL + 75 * - - 67 + 41 AS col0
----
5066

query I rowsort
SELECT DISTINCT + 27 * 48 + + 28 + - 7 * + 31 * + 35 AS col2
----
-6271

query I rowsort
SELECT ALL - CASE + + 13 WHEN 3 + - 7 THEN NULL WHEN 33 + + 48 * 35 THEN - + 22 ELSE + 90 END * ( - 33 ) + 44 + 79
----
3093

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7587
SELECT - CAST( NULL AS DECIMAL ) / + - 13 * - - COALESCE ( - 85, + ( + + 60 ) - + 55 ) * + 89 + ( + 8 ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7587
SELECT - CAST ( NULL AS REAL ) / + - 13 * - - COALESCE ( - 85, + ( + + 60 ) - + 55 ) * + 89 + ( + 8 ) col0
----
NULL

query I rowsort
SELECT + 25 * - - ( + 41 )
----
1025

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

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

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

query I rowsort
SELECT DISTINCT - 75 - - ( 63 ) - + - 87 * + 16
----
1380

query I rowsort
SELECT 98 * + 46 * - - ( ( - 33 ) ) AS col1
----
-148764

query I rowsort
SELECT ALL - 37 - 52
----
-89

query I rowsort
SELECT 69 * - ( ( - 55 ) )
----
3795

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7595
SELECT - CAST( NULL AS SIGNED ) - + COUNT( * ) * + MAX( DISTINCT + 76 ) * + COUNT( * ) + 72 * + 9 * + 4 * 36 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7595
SELECT - CAST ( NULL AS INTEGER ) - + COUNT ( * ) * + MAX ( DISTINCT + 76 ) * + COUNT ( * ) + 72 * + 9 * + 4 * 36 AS col1
----
NULL

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

skipif mysql # not compatible
query II rowsort label-7596
SELECT - CAST ( - 10 AS INTEGER ) + 89 AS col1, COUNT ( * )
----
99
1

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7599
SELECT - COALESCE ( - - 36, - + 3 + - + 5 ) * COUNT( * ) * + + 78 * + + 67
----
-188136

skipif mysql # not compatible
query I rowsort label-7599
SELECT - COALESCE ( - - 36, - + 3 + - + 5 ) * COUNT ( * ) * + + 78 * + + 67
----
-188136

onlyif mysql # aggregate syntax: 
query I rowsort label-7600
SELECT + 42 + SUM( ALL + 8 ) AS col2
----
50

skipif mysql # not compatible
query I rowsort label-7600
SELECT + 42 + SUM ( ALL + 8 ) AS col2
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-7601
SELECT DISTINCT COUNT( 57 ) * - ( - 11 )
----
11

skipif mysql # not compatible
query I rowsort label-7601
SELECT DISTINCT COUNT ( 57 ) * - ( - 11 )
----
11

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

skipif mysql # not compatible
query I rowsort label-7602
SELECT ALL + COUNT ( * ) * - 77 AS col0
----
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-7603
SELECT - 89 * + MIN( + + 94 ) * - - 60 + - + 16
----
-501976

skipif mysql # not compatible
query I rowsort label-7603
SELECT - 89 * + MIN ( + + 94 ) * - - 60 + - + 16
----
-501976

query I rowsort
SELECT DISTINCT COALESCE ( + 31, 75 + + COALESCE ( - + 96, + + 54 ) )
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-7605
SELECT ALL COALESCE ( - - 58, MIN( DISTINCT - + 26 ), - 8 * 61 + - COUNT( * ) ) AS col1
----
58

skipif mysql # not compatible
query I rowsort label-7605
SELECT ALL COALESCE ( - - 58, MIN ( DISTINCT - + 26 ), - 8 * 61 + - COUNT ( * ) ) AS col1
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-7606
SELECT - MAX( - + 34 ) col0
----
34

skipif mysql # not compatible
query I rowsort label-7606
SELECT - MAX ( - + 34 ) col0
----
34

query I rowsort
SELECT ALL CASE - + 63 WHEN - 58 THEN NULL ELSE - 5 END AS col2
----
-5

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7608
SELECT - 53 DIV + COALESCE ( + 1, 85 * - - MAX( ALL - - 83 ) )
----
-53

skipif mysql # not compatible
query I rowsort label-7608
SELECT - 53 / + COALESCE ( + 1, 85 * - - MAX ( ALL - - 83 ) )
----
-53

query I rowsort
SELECT + 59 * + 95 col0
----
5605

query I rowsort
SELECT DISTINCT ( - 84 ) + + 58 + 45 AS col2
----
19

query I rowsort
SELECT - 5 + 39 AS col0
----
34

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7612
SELECT + 23 / - 77 * + + CAST( NULL AS SIGNED ) * + + COUNT( * ) * 35
----
NULL

skipif mysql # not compatible
query I rowsort label-7612
SELECT + 23 / - 77 * + + CAST ( NULL AS INTEGER ) * + + COUNT ( * ) * 35
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7613
SELECT ALL 34 + - ( NULLIF ( + 93, COUNT( * ) ) )
----
-59

skipif mysql # not compatible
query I rowsort label-7613
SELECT ALL 34 + - ( NULLIF ( + 93, COUNT ( * ) ) )
----
-59

query I rowsort
SELECT + - 20 * 61
----
-1220

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7616
SELECT ALL 37 + COUNT( + + ( + 67 ) )
----
38

skipif mysql # not compatible
query I rowsort label-7616
SELECT ALL 37 + COUNT ( + + ( + 67 ) )
----
38

query I rowsort
SELECT ALL 76 + 17 AS col0
----
93

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7618
SELECT CASE - COUNT( * ) WHEN + 81 THEN NULL WHEN + NULLIF ( - + COALESCE ( - + MAX( - 10 ), + 50 ), + 74 ) THEN + - COUNT( * ) * - + 53 + + COALESCE ( 12, - 67 ) + AVG ( 15 ) + + + COUNT( * ) * 65 END / + ( - CAST( CAST( NULL AS SIGNED ) AS SIGNED ) ) - + CASE + SUM( 22 ) WHEN - 3 THEN COALESCE ( - 89, 31 + - CASE COUNT( * ) WHEN + 74 THEN 34 * - 76 WHEN 65 * COALESCE ( COUNT( * ), 25 ) THEN + COALESCE ( 33, 72 / 4, 91 ) END ) * + 77 WHEN + 25 / + ( 85 ) THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-7618
SELECT CASE - COUNT ( * ) WHEN + 81 THEN NULL WHEN + NULLIF ( - + COALESCE ( - + MAX ( - 10 ), + 50 ), + 74 ) THEN + - COUNT ( * ) * - + 53 + + COALESCE ( 12, - 67 ) + AVG ( 15 ) + + + COUNT ( * ) * 65 END / + ( - CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) ) - + CASE + SUM ( 22 ) WHEN - 3 THEN COALESCE ( - 89, 31 + - CASE COUNT ( * ) WHEN + 74 THEN 34 * - 76 WHEN 65 * COALESCE ( COUNT ( * ), 25 ) THEN + COALESCE ( 33, 72 / 4, 91 ) END ) * + 77 WHEN + 25 / + ( 85 ) THEN NULL END
----
NULL

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

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

query I rowsort
SELECT ALL 12 * 17 * - + 84 + + + 94 * 46 - 77 AS col1
----
-12889

onlyif mysql # aggregate syntax: 
query II rowsort label-7621
SELECT ALL + 47 AS col2, - 46 * - COUNT( * ) AS col1
----
47
46

skipif mysql # not compatible
query II rowsort label-7621
SELECT ALL + 47 AS col2, - 46 * - COUNT ( * ) AS col1
----
47
46

onlyif mysql # DIV for integer division: 
query I rowsort label-7622
SELECT DISTINCT + 16 DIV + 94 col2
----
0

skipif mysql # not compatible
query I rowsort label-7622
SELECT DISTINCT + 16 / + 94 col2
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-7623
SELECT DISTINCT + 39, 31 + 6 + MIN( + 82 ) + 12 AS col2
----
39
131

skipif mysql # not compatible
query II rowsort label-7623
SELECT DISTINCT + 39, 31 + 6 + MIN ( + 82 ) + 12 AS col2
----
39
131

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7624
SELECT + + COUNT( * ) * - - 46 * + 24 + + - ( + COALESCE ( + 31, - 84 * - 40, + ( + 43 ) * + 47 + + 39 + + - 4 - - 75 * 80 * + 81 * + 69 * - 47 * - 31 * + 2 * - - 48 ) ) + + - ( 4 ) * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7624
SELECT + + COUNT ( * ) * - - 46 * + 24 + + - ( + COALESCE ( + 31, - 84 * - 40, + ( + 43 ) * + 47 + + 39 + + - 4 - - 75 * 80 * + 81 * + 69 * - 47 * - 31 * + 2 * - - 48 ) ) + + - ( 4 ) * - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7625
SELECT + - 66 * - COUNT( * ) * + + CASE - - 98 WHEN + ( - COUNT( * ) ) THEN ( - 33 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-7625
SELECT + - 66 * - COUNT ( * ) * + + CASE - - 98 WHEN + ( - COUNT ( * ) ) THEN ( - 33 ) END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7626
SELECT DISTINCT + 55 / 21 * + CASE - - 11 WHEN + - COUNT( * ) - ( - 20 ) THEN - 68 WHEN - 70 * + - 29 + COUNT( ALL - CAST( NULL AS SIGNED ) ) THEN + 62 ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7626
SELECT DISTINCT + 55 / 21 * + CASE - - 11 WHEN + - COUNT ( * ) - ( - 20 ) THEN - 68 WHEN - 70 * + - 29 + COUNT ( ALL - CAST ( NULL AS INTEGER ) ) THEN + 62 ELSE NULL END AS col0
----
NULL

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

query I rowsort
SELECT - 79 * - 61 - - 8
----
4827

query I rowsort
SELECT ALL - 6 * - - 14 col1
----
-84

query I rowsort
SELECT - 13 * - 60
----
780

query I rowsort
SELECT ALL 19 * 7
----
133

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

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

query I rowsort
SELECT DISTINCT 36 * 74
----
2664

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7634
SELECT ALL + CASE + 16 WHEN 36 THEN + + COALESCE ( 48, + ( + 61 ) + - 89 ) + + 44 ELSE - CAST( NULL AS SIGNED ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7634
SELECT ALL + CASE + 16 WHEN 36 THEN + + COALESCE ( 48, + ( + 61 ) + - 89 ) + + 44 ELSE - CAST ( NULL AS INTEGER ) END AS col2
----
NULL

query I rowsort
SELECT - 22 * - 38 * - 62 + + 21 * + 10 + + 53 AS col0
----
-51569

onlyif mysql # DIV for integer division: 
query I rowsort label-7636
SELECT DISTINCT COALESCE ( 38, - 36 DIV NULLIF ( + + NULLIF ( + 6, + 83 ), 51 + + 52 ), + ( - - 16 ) ) AS col0
----
38

skipif mysql # not compatible
query I rowsort label-7636
SELECT DISTINCT COALESCE ( 38, - 36 / NULLIF ( + + NULLIF ( + 6, + 83 ), 51 + + 52 ), + ( - - 16 ) ) AS col0
----
38

query I rowsort
SELECT - 42 + - ( - 60 )
----
18

query II rowsort
SELECT ALL ( - 26 ) AS col1, 95 AS col1
----
-26
95

onlyif mysql # aggregate syntax: 
query I rowsort label-7639
SELECT - 47 + COUNT( * ) + COUNT( * ) * + 15 AS col2
----
-31

skipif mysql # not compatible
query I rowsort label-7639
SELECT - 47 + COUNT ( * ) + COUNT ( * ) * + 15 AS col2
----
-31

query I rowsort
SELECT ALL - 34 + - - ( 4 )
----
-30

query I rowsort
SELECT ALL + 44 * + + 75 * + - 47 AS col1
----
-155100

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7643
SELECT - COUNT( * ) - - - COALESCE ( - 99, - 54 * + COUNT( * ) * 7 + + 22 ) * + + ( - COUNT( 19 ) ) + 96 AS col1
----
-4

skipif mysql # not compatible
query I rowsort label-7643
SELECT - COUNT ( * ) - - - COALESCE ( - 99, - 54 * + COUNT ( * ) * 7 + + 22 ) * + + ( - COUNT ( 19 ) ) + 96 AS col1
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-7644
SELECT ALL 21 + + 74 - COUNT( * ) - 7 * + 28 * - COUNT( * ) * + COUNT( * )
----
290

skipif mysql # not compatible
query I rowsort label-7644
SELECT ALL 21 + + 74 - COUNT ( * ) - 7 * + 28 * - COUNT ( * ) * + COUNT ( * )
----
290

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7646
SELECT - + 97 + COUNT( * )
----
-96

skipif mysql # not compatible
query I rowsort label-7646
SELECT - + 97 + COUNT ( * )
----
-96

onlyif mysql # aggregate syntax: 
query II rowsort label-7647
SELECT + 27 - 49 + - COUNT( * ) * - + 22 AS col0, 27 * - + 6 + - ( 94 ) AS col0
----
0
-256

skipif mysql # not compatible
query II rowsort label-7647
SELECT + 27 - 49 + - COUNT ( * ) * - + 22 AS col0, 27 * - + 6 + - ( 94 ) AS col0
----
0
-256

query I rowsort
SELECT + 41 - + 16 AS col2
----
25

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7649
SELECT ALL NULLIF ( 5, - COUNT( * ) ) DIV - + 98 col2
----
0

skipif mysql # not compatible
query I rowsort label-7649
SELECT ALL NULLIF ( 5, - COUNT ( * ) ) / - + 98 col2
----
0

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7651
SELECT - 85 + + CAST( NULL AS SIGNED ) + - 22 + COUNT( * ) * ( - SUM( ALL - + 62 ) ) * - 51 * - COUNT( * ) + + - 13 * + 78 + + - CASE + 13 WHEN 65 * - 10 + + CAST( NULL AS SIGNED ) + + + 7 * 15 / - + 38 * + - 39 THEN NULL ELSE + + 52 * - 93 * - + 5 END + + COUNT( DISTINCT + 70 ) * + ( + 47 ) * + 40 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7651
SELECT - 85 + + CAST ( NULL AS INTEGER ) + - 22 + COUNT ( * ) * ( - SUM ( ALL - + 62 ) ) * - 51 * - COUNT ( * ) + + - 13 * + 78 + + - CASE + 13 WHEN 65 * - 10 + + CAST ( NULL AS INTEGER ) + + + 7 * 15 / - + 38 * + - 39 THEN NULL ELSE + + 52 * - 93 * - + 5 END + + COUNT ( DISTINCT + 70 ) * + ( + 47 ) * + 40 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7652
SELECT ALL + COUNT( * ) - 98 col1
----
-97

skipif mysql # not compatible
query I rowsort label-7652
SELECT ALL + COUNT ( * ) - 98 col1
----
-97

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7653
SELECT ALL - 78 DIV + COUNT( * ), + 27 AS col0
----
-78
27

skipif mysql # not compatible
query II rowsort label-7653
SELECT ALL - 78 / + COUNT ( * ), + 27 AS col0
----
-78
27

onlyif mysql # aggregate syntax: 
query I rowsort label-7654
SELECT ALL COUNT( * ) * + + 98 col0
----
98

skipif mysql # not compatible
query I rowsort label-7654
SELECT ALL COUNT ( * ) * + + 98 col0
----
98

query I rowsort
SELECT + 7 + + 0 * + 86
----
7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7656
SELECT ALL - - MIN( DISTINCT - 60 ) DIV + 80 * + + COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-7656
SELECT ALL - - MIN ( DISTINCT - 60 ) / + 80 * + + COUNT ( * )
----
0

query II rowsort
SELECT DISTINCT + 23 AS col2, - 38 AS col0
----
23
-38

onlyif mysql # aggregate syntax: 
query II rowsort label-7658
SELECT DISTINCT - - 13 AS col1, COUNT( * ) + 64 + + 70 * + MIN( ALL CASE - 36 WHEN + 7 THEN - 76 END ) / - 67 + - + 70 / + + 47 * ( + - 14 )
----
13
NULL

skipif mysql # not compatible
query II rowsort label-7658
SELECT DISTINCT - - 13 AS col1, COUNT ( * ) + 64 + + 70 * + MIN ( ALL CASE - 36 WHEN + 7 THEN - 76 END ) / - 67 + - + 70 / + + 47 * ( + - 14 )
----
13
NULL

query I rowsort
SELECT ALL - 26 * 98 col2
----
-2548

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7661
SELECT 72 * - 56 * - CASE 75 WHEN + COUNT( * ) THEN 82 * 99 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7661
SELECT 72 * - 56 * - CASE 75 WHEN + COUNT ( * ) THEN 82 * 99 END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7662
SELECT ALL COUNT( * ) * 73 * 18 AS col1
----
1314

skipif mysql # not compatible
query I rowsort label-7662
SELECT ALL COUNT ( * ) * 73 * 18 AS col1
----
1314

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7663
SELECT ALL + NULLIF ( + 70, ( + + 15 ) ) DIV + CAST( - - 79 AS SIGNED )
----
0

skipif mysql # not compatible
query I rowsort label-7663
SELECT ALL + NULLIF ( + 70, ( + + 15 ) ) / + CAST ( - - 79 AS INTEGER )
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7664
SELECT ALL - CAST( NULL AS SIGNED ) * COALESCE ( - + COUNT( * ), + 97 + - - 51 * + 64 + CASE - 59 WHEN + 80 * MIN( DISTINCT 88 ) THEN NULL WHEN - 2 + - 77 THEN - - 90 + - 24 ELSE ( + 48 ) END + + 92 ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7664
SELECT ALL - CAST ( NULL AS INTEGER ) * COALESCE ( - + COUNT ( * ), + 97 + - - 51 * + 64 + CASE - 59 WHEN + 80 * MIN ( DISTINCT 88 ) THEN NULL WHEN - 2 + - 77 THEN - - 90 + - 24 ELSE ( + 48 ) END + + 92 ) col2
----
NULL

query I rowsort
SELECT 30 + - 32 + 72 * - 78 * + 1
----
-5618

query II rowsort
SELECT DISTINCT 89 + 24, + CASE NULLIF ( - - ( 34 ), + 27 ) WHEN + 38 THEN NULL WHEN + 35 + + 20 + + ( - 34 ) + - 31 + + + 56 * 0 * - + 65 THEN - 56 END - - + 8 AS col1
----
113
NULL

query I rowsort
SELECT ALL CASE + 77 WHEN + ( - ( 23 ) ) THEN - 46 END + - 32 AS col2
----
NULL

query I rowsort
SELECT ALL 24 + 59 * 38
----
2266

query I rowsort
SELECT 13 - - 34
----
47

onlyif mysql # DIV for integer division: 
query I rowsort label-7670
SELECT 20 DIV 71 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-7670
SELECT 20 / 71 AS col0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7671
SELECT - 93 * + 82 - - - 16 + + 44 * + ( NULLIF ( - 72, CAST( NULL AS SIGNED ) ) )
----
-10810

skipif mysql # not compatible
query I rowsort label-7671
SELECT - 93 * + 82 - - - 16 + + 44 * + ( NULLIF ( - 72, CAST ( NULL AS INTEGER ) ) )
----
-10810

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7672
SELECT DISTINCT - CAST( NULL AS DECIMAL ) + - - ( - - NULLIF ( CASE - 84 WHEN - - 97 * 63 - + COUNT( + + 67 ) + 56 + + 25 THEN 61 * - + COALESCE ( COUNT( * ), - + 52 * - 10 * - + CAST( NULL AS SIGNED ), + 67 + - 93 ) WHEN 60 + - + MIN( + 13 ) + + 10 + - 18 + - COUNT( * ) * 62 THEN - - 32 + - CASE + 19 WHEN NULLIF ( + 5, 94 * + 59 ) + 4 THEN NULL ELSE - 27 * + 45 + CAST( + CAST( NULL AS SIGNED ) - + 78 AS SIGNED ) END END, - 66 ) ) * 25
----
NULL

skipif mysql # not compatible
query I rowsort label-7672
SELECT DISTINCT - CAST ( NULL AS REAL ) + - - ( - - NULLIF ( CASE - 84 WHEN - - 97 * 63 - + COUNT ( + + 67 ) + 56 + + 25 THEN 61 * - + COALESCE ( COUNT ( * ), - + 52 * - 10 * - + CAST ( NULL AS INTEGER ), + 67 + - 93 ) WHEN 60 + - + MIN ( + 13 ) + + 10 + - 18 + - COUNT ( * ) * 62 THEN - - 32 + - CASE + 19 WHEN NULLIF ( + 5, 94 * + 59 ) + 4 THEN NULL ELSE - 27 * + 45 + CAST ( + CAST ( NULL AS INTEGER ) - + 78 AS INTEGER ) END END, - 66 ) ) * 25
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7674
SELECT ALL - 3 + - 59 * + 59 * + - MAX( DISTINCT - 10 ) + + - ( 25 ) AS col2
----
-34838

skipif mysql # not compatible
query I rowsort label-7674
SELECT ALL - 3 + - 59 * + 59 * + - MAX ( DISTINCT - 10 ) + + - ( 25 ) AS col2
----
-34838

query I rowsort
SELECT ALL + 48 + 88 col1
----
136

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7676
SELECT ALL ( - CAST( NULL AS SIGNED ) ) * - 80 + COUNT( ALL - ( - + 97 ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7676
SELECT ALL ( - CAST ( NULL AS INTEGER ) ) * - 80 + COUNT ( ALL - ( - + 97 ) ) AS col1
----
NULL

query I rowsort
SELECT 58 - - 65
----
123

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7680
SELECT ALL - - 21 + + - NULLIF ( + 64, NULLIF ( CASE 41 WHEN - + COUNT( * ) THEN + + COUNT( * ) END, - ( - - COALESCE ( - 84, + 76 / - + 19 * + CAST( NULL AS SIGNED ) * - + CASE 29 WHEN - 24 THEN - CAST( - 39 AS DECIMAL ) * - 9 WHEN + NULLIF ( 83, + 18 * - + 45 ) / + MAX( DISTINCT - + 5 ) + - + 99 THEN NULL WHEN + 77 * - 81 + 97 THEN + 34 ELSE NULL END ) ) ) * + 7 )
----
-43

skipif mysql # not compatible
query I rowsort label-7680
SELECT ALL - - 21 + + - NULLIF ( + 64, NULLIF ( CASE 41 WHEN - + COUNT ( * ) THEN + + COUNT ( * ) END, - ( - - COALESCE ( - 84, + 76 / - + 19 * + CAST ( NULL AS INTEGER ) * - + CASE 29 WHEN - 24 THEN - CAST ( - 39 AS REAL ) * - 9 WHEN + NULLIF ( 83, + 18 * - + 45 ) / + MAX ( DISTINCT - + 5 ) + - + 99 THEN NULL WHEN + 77 * - 81 + 97 THEN + 34 ELSE NULL END ) ) ) * + 7 )
----
-43

query I rowsort
SELECT 2 * 80 col2
----
160

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

skipif mysql # not compatible
query I rowsort label-7682
SELECT DISTINCT - COUNT ( - + 36 ) AS col1
----
-1

query I rowsort
SELECT 92 + 62
----
154

onlyif mysql # aggregate syntax: 
query I rowsort label-7684
SELECT DISTINCT - COUNT( * ) - COUNT( * ) + 41 * - 77 * + COUNT( * ) * + 43 AS col1
----
-135753

skipif mysql # not compatible
query I rowsort label-7684
SELECT DISTINCT - COUNT ( * ) - COUNT ( * ) + 41 * - 77 * + COUNT ( * ) * + 43 AS col1
----
-135753

query I rowsort
SELECT DISTINCT + + 79 - + 55 + - 1 col2
----
23

query I rowsort
SELECT DISTINCT - 49 * 74 + + + 99
----
-3527

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7687
SELECT DISTINCT - 38 DIV - + COUNT( * ) AS col0
----
38

skipif mysql # not compatible
query I rowsort label-7687
SELECT DISTINCT - 38 / - + COUNT ( * ) AS col0
----
38

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7688
SELECT DISTINCT - 32 - - 56 * - 41 - + CASE - 7 WHEN + ( - - ( 1 ) ) * - + 59 THEN + - COUNT( * ) * 37 ELSE NULL END * + + CAST( NULL AS SIGNED ) AS col0, - 19 + 65 AS col1
----
NULL
46

skipif mysql # not compatible
query II rowsort label-7688
SELECT DISTINCT - 32 - - 56 * - 41 - + CASE - 7 WHEN + ( - - ( 1 ) ) * - + 59 THEN + - COUNT ( * ) * 37 ELSE NULL END * + + CAST ( NULL AS INTEGER ) AS col0, - 19 + 65 AS col1
----
NULL
46

query I rowsort
SELECT - CASE + - 26 WHEN + - 75 THEN NULL WHEN 10 THEN - 76 END * + 34 / + 80 AS col1
----
NULL

query II rowsort
SELECT ALL - - 66 * - 99, - 5 AS col0
----
-6534
-5

query II rowsort
SELECT ALL - COALESCE ( 9, + 20 ), - 8 AS col0
----
-9
-8

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7692
SELECT CAST( NULL AS SIGNED ) * - 60, 35 * 8 + - 48 AS col2
----
NULL
232

skipif mysql # not compatible
query II rowsort label-7692
SELECT CAST ( NULL AS INTEGER ) * - 60, 35 * 8 + - 48 AS col2
----
NULL
232

query I rowsort
SELECT ALL - - COALESCE ( 43, 44 * - 15 ) col1
----
43

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7694
SELECT 41 DIV ( 74 ) * + MAX( + - 41 ), 27 * 33 - + 81 AS col1
----
0
810

skipif mysql # not compatible
query II rowsort label-7694
SELECT 41 / ( 74 ) * + MAX ( + - 41 ), 27 * 33 - + 81 AS col1
----
0
810

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7695
SELECT ALL NULLIF ( - NULLIF ( - 36, + 94 * - 27 * 48 + ( 55 ) + - + 68 + 36 * + 48 * 92 DIV - COUNT( * ) ), - 91 ) DIV - 77
----
0

skipif mysql # not compatible
query I rowsort label-7695
SELECT ALL NULLIF ( - NULLIF ( - 36, + 94 * - 27 * 48 + ( 55 ) + - + 68 + 36 * + 48 * 92 / - COUNT ( * ) ), - 91 ) / - 77
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-7696
SELECT 89 * - 60, + ( + 84 ) * - COUNT( * ) col0
----
-5340
-84

skipif mysql # not compatible
query II rowsort label-7696
SELECT 89 * - 60, + ( + 84 ) * - COUNT ( * ) col0
----
-5340
-84

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7697
SELECT DISTINCT - 61 DIV COUNT( * ) * 65 * + 7, + 39 AS col1
----
-27755
39

skipif mysql # not compatible
query II rowsort label-7697
SELECT DISTINCT - 61 / COUNT ( * ) * 65 * + 7, + 39 AS col1
----
-27755
39

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-7699
SELECT ALL - MIN( + + 60 ) + - ( + - COUNT( * ) ) * 86 - 41 AS col2, 11 AS col0
----
-15
11

skipif mysql # not compatible
query II rowsort label-7699
SELECT ALL - MIN ( + + 60 ) + - ( + - COUNT ( * ) ) * 86 - 41 AS col2, 11 AS col0
----
-15
11

query I rowsort
SELECT 23 - - 13 * - - 28 * 35
----
12763

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7701
SELECT DISTINCT MAX( - - 6 ) + CAST( NULL AS SIGNED ), + CASE + - 19 WHEN 71 * - 74 THEN NULL WHEN + 85 THEN - COUNT( * ) * + CAST( NULL AS SIGNED ) WHEN - MIN( - 52 ) * - COALESCE ( - + 81, - - 11 + - 49 * 28, 93 + - 27 ) * + 20 / + 62 * + - 65 * + 4 + - 42 * - 49 THEN NULL END + - + ( - 54 ) + + ( - 66 ) - 48 * - 92 / 99 AS col2
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-7701
SELECT DISTINCT MAX ( - - 6 ) + CAST ( NULL AS INTEGER ), + CASE + - 19 WHEN 71 * - 74 THEN NULL WHEN + 85 THEN - COUNT ( * ) * + CAST ( NULL AS INTEGER ) WHEN - MIN ( - 52 ) * - COALESCE ( - + 81, - - 11 + - 49 * 28, 93 + - 27 ) * + 20 / + 62 * + - 65 * + 4 + - 42 * - 49 THEN NULL END + - + ( - 54 ) + + ( - 66 ) - 48 * - 92 / 99 AS col2
----
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7702
SELECT ALL ( - COUNT( * ) ) + - + CAST( NULL AS SIGNED ) AS col0, - 74 * - - 70 + + 16 * + COUNT( * ) + + 23 * + - COUNT( * ) AS col1
----
NULL
-5187

skipif mysql # not compatible
query II rowsort label-7702
SELECT ALL ( - COUNT ( * ) ) + - + CAST ( NULL AS INTEGER ) AS col0, - 74 * - - 70 + + 16 * + COUNT ( * ) + + 23 * + - COUNT ( * ) AS col1
----
NULL
-5187

onlyif mysql # aggregate syntax: 
query I rowsort label-7703
SELECT + MIN( + 52 ) AS col2
----
52

skipif mysql # not compatible
query I rowsort label-7703
SELECT + MIN ( + 52 ) AS col2
----
52

query I rowsort
SELECT DISTINCT 47 * - ( + 15 ) AS col0
----
-705

query I rowsort
SELECT ALL 70 + - 91
----
-21

query I rowsort
SELECT 48 * + 16 col2
----
768

onlyif mysql # aggregate syntax: 
query II rowsort label-7707
SELECT DISTINCT - 87, NULLIF ( 78, - COUNT( * ) ) AS col0
----
-87
78

skipif mysql # not compatible
query II rowsort label-7707
SELECT DISTINCT - 87, NULLIF ( 78, - COUNT ( * ) ) AS col0
----
-87
78

onlyif mysql # aggregate syntax: 
query I rowsort label-7708
SELECT - SUM( ALL - 43 ) AS col2
----
43

skipif mysql # not compatible
query I rowsort label-7708
SELECT - SUM ( ALL - 43 ) AS col2
----
43

query I rowsort
SELECT ALL 34 - + + 19 + - 66 * + 6
----
-381

query I rowsort
SELECT 38 * 66 AS col2
----
2508

query I rowsort
SELECT - 26 + ( - + 73 ) - 32 * - - 51 AS col1
----
-1731

query II rowsort
SELECT - 22 AS col0, - 18
----
-22
-18

query II rowsort
SELECT ALL 44 col0, 46
----
44
46

query I rowsort
SELECT 17 + + ( - + 36 )
----
-19

onlyif mysql # DIV for integer division: 
query I rowsort label-7715
SELECT 76 * ( + 31 ) DIV + 38 + - 18 + 75 - - 68 AS col2
----
187

skipif mysql # not compatible
query I rowsort label-7715
SELECT 76 * ( + 31 ) / + 38 + - 18 + 75 - - 68 AS col2
----
187

query I rowsort
SELECT ALL - - 18 * 49 + - 0 AS col0
----
882

query I rowsort
SELECT 63 + 84 + - 61
----
86

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

query I rowsort
SELECT DISTINCT 32 * + 30 AS col2
----
960

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

query I rowsort
SELECT DISTINCT 45 * 40 * + 76 + + 92 + - ( + - 69 ) - + 25 * + 5 * - 8
----
137961

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7722
SELECT DISTINCT 54 * + 86 * + CAST( NULL AS SIGNED ) / - 88 + ( + 83 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7722
SELECT DISTINCT 54 * + 86 * + CAST ( NULL AS INTEGER ) / - 88 + ( + 83 )
----
NULL

query I rowsort
SELECT + 94 * - 32 + - 14 AS col0
----
-3022

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7725
SELECT + 42 + - 43 + - 44 + - SUM( ALL + 37 ) AS col1
----
-82

skipif mysql # not compatible
query I rowsort label-7725
SELECT + 42 + - 43 + - 44 + - SUM ( ALL + 37 ) AS col1
----
-82

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7726
SELECT - 30 * 9 * - COUNT( 55 ) + - - 24 * - - CAST( NULL AS SIGNED ) + + 99 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7726
SELECT - 30 * 9 * - COUNT ( 55 ) + - - 24 * - - CAST ( NULL AS INTEGER ) + + 99 AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7727
SELECT - 69 + - - 35 + + 59 AS col2, 77 - MAX( DISTINCT - + CAST( NULL AS SIGNED ) ) col0
----
25
NULL

skipif mysql # not compatible
query II rowsort label-7727
SELECT - 69 + - - 35 + + 59 AS col2, 77 - MAX ( DISTINCT - + CAST ( NULL AS INTEGER ) ) col0
----
25
NULL

query I rowsort
SELECT - - 54 * - 51 AS col1
----
-2754

onlyif mysql # aggregate syntax: 
query I rowsort label-7729
SELECT ALL + 28 * - - 92 + + - ( + 16 ) + + COUNT( * )
----
2561

skipif mysql # not compatible
query I rowsort label-7729
SELECT ALL + 28 * - - 92 + + - ( + 16 ) + + COUNT ( * )
----
2561

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

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

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

skipif mysql # not compatible
query I rowsort label-7731
SELECT - COUNT ( * ) / 39 * + + 78
----
0

query I rowsort
SELECT COALESCE ( + 47, - 58 ) AS col0
----
47

query I rowsort
SELECT ALL - 60 * - + 89 / + + CASE - 59 WHEN + 13 * 14 THEN NULL WHEN + - 9 THEN 34 END * + - 27 + ( - - 92 )
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7735
SELECT + COUNT( * ) + + - 83 AS col0
----
-82

skipif mysql # not compatible
query I rowsort label-7735
SELECT + COUNT ( * ) + + - 83 AS col0
----
-82

query I rowsort
SELECT - 83 * + 53 AS col0
----
-4399

onlyif mysql # aggregate syntax: 
query I rowsort label-7737
SELECT ALL ( + - 78 ) * + + COUNT( * ) * COALESCE ( - - NULLIF ( + 84, ( - 31 ) ), - - 71 ) - 46 + - 77 AS col2
----
-6675

skipif mysql # not compatible
query I rowsort label-7737
SELECT ALL ( + - 78 ) * + + COUNT ( * ) * COALESCE ( - - NULLIF ( + 84, ( - 31 ) ), - - 71 ) - 46 + - 77 AS col2
----
-6675

onlyif mysql # aggregate syntax: 
query I rowsort label-7738
SELECT ALL + ( + - CASE + - 57 WHEN - 53 / + ( - - 13 ) * + 46 * 44 THEN NULLIF ( - 22, + 22 / + + 71 + COUNT( * ) ) WHEN 20 / 58 THEN NULL WHEN + 70 THEN NULL END ) / 91 * + - COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7738
SELECT ALL + ( + - CASE + - 57 WHEN - 53 / + ( - - 13 ) * + 46 * 44 THEN NULLIF ( - 22, + 22 / + + 71 + COUNT ( * ) ) WHEN 20 / 58 THEN NULL WHEN + 70 THEN NULL END ) / 91 * + - COUNT ( * ) AS col1
----
NULL

query I rowsort
SELECT ALL 88 * - 95 * + + 70
----
-585200

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7740
SELECT DISTINCT - 49 * - CAST( SUM( - 13 ) AS SIGNED ) - - 15 * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7740
SELECT DISTINCT - 49 * - CAST ( SUM ( - 13 ) AS INTEGER ) - - 15 * - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT + 70 + - 66 + 46
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-7742
SELECT + CASE 52 WHEN - 56 THEN + 98 + - + 87 * + COUNT( * ) * - 68 / + 91 * + 9 WHEN - 65 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-7742
SELECT + CASE 52 WHEN - 56 THEN + 98 + - + 87 * + COUNT ( * ) * - 68 / + 91 * + 9 WHEN - 65 THEN NULL END
----
NULL

query I rowsort
SELECT DISTINCT 93 * 64
----
5952

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7744
SELECT + 95 * - 64 - - CAST( - + 9 AS SIGNED ) AS col1
----
-6089

skipif mysql # not compatible
query I rowsort label-7744
SELECT + 95 * - 64 - - CAST ( - + 9 AS INTEGER ) AS col1
----
-6089

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

skipif mysql # not compatible
query I rowsort label-7745
SELECT + - COUNT ( + + ( 52 ) ) * - + 89 AS col2
----
89

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7746
SELECT + CAST( - + NULLIF ( - 77, 99 ) AS SIGNED ) AS col0, - 89
----
77
-89

skipif mysql # not compatible
query II rowsort label-7746
SELECT + CAST ( - + NULLIF ( - 77, 99 ) AS INTEGER ) AS col0, - 89
----
77
-89

query I rowsort
SELECT + 78 - + 67 AS col1
----
11

onlyif mysql # aggregate syntax: 
query II rowsort label-7748
SELECT + 17 * + 37 + + - 77 * - MAX( 8 ), - 22 * + 53 * + - 10 * + - ( + 24 ) * - 2 + - ( 39 ) AS col1
----
1245
559641

skipif mysql # not compatible
query II rowsort label-7748
SELECT + 17 * + 37 + + - 77 * - MAX ( 8 ), - 22 * + 53 * + - 10 * + - ( + 24 ) * - 2 + - ( 39 ) AS col1
----
1245
559641

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

skipif mysql # not compatible
query I rowsort label-7749
SELECT - - 44 / - COUNT ( * ) AS col2
----
-44

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7750
SELECT ALL + COUNT( * ) * + + 36 DIV - + 45 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-7750
SELECT ALL + COUNT ( * ) * + + 36 / - + 45 AS col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-7751
SELECT + + COALESCE ( - MAX( ALL + 42 ), ( - - 58 ) DIV CAST( NULL AS SIGNED ) + CASE + 84 WHEN + + 16 THEN 94 + + COUNT( * ) ELSE 49 * + 63 END - + 70 ) * 2 AS col1, CAST( NULL AS SIGNED ) * + + 49 AS col1
----
-84
NULL

skipif mysql # not compatible
query II rowsort label-7751
SELECT + + COALESCE ( - MAX ( ALL + 42 ), ( - - 58 ) / CAST ( NULL AS INTEGER ) + CASE + 84 WHEN + + 16 THEN 94 + + COUNT ( * ) ELSE 49 * + 63 END - + 70 ) * 2 AS col1, CAST ( NULL AS INTEGER ) * + + 49 AS col1
----
-84
NULL

query I rowsort
SELECT ALL - NULLIF ( - + 71, 73 ) AS col1
----
71

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

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

query I rowsort
SELECT ALL 6 + 77 * 97 AS col0
----
7475

query I rowsort
SELECT ALL - NULLIF ( + 6, - 75 ) AS col0
----
-6

query I rowsort
SELECT ALL 64 * 20 AS col1
----
1280

onlyif mysql # aggregate syntax: 
query I rowsort label-7757
SELECT ALL - 98 + ( + + COUNT( * ) ) AS col0
----
-97

skipif mysql # not compatible
query I rowsort label-7757
SELECT ALL - 98 + ( + + COUNT ( * ) ) AS col0
----
-97

query I rowsort
SELECT ALL 72 + + 39 + 5 * 94 AS col2
----
581

onlyif mysql # aggregate syntax: 
query I rowsort label-7759
SELECT ALL ( - + MAX( - 21 ) ) + 66 AS col2
----
87

skipif mysql # not compatible
query I rowsort label-7759
SELECT ALL ( - + MAX ( - 21 ) ) + 66 AS col2
----
87

query I rowsort
SELECT + 54 - - 49 - 9 * 35 AS col0
----
-212

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

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

query I rowsort
SELECT + 31 + - - 11
----
42

onlyif mysql # DIV for integer division: 
query I rowsort label-7763
SELECT ALL 6 DIV - + 82 + 1
----
1

skipif mysql # not compatible
query I rowsort label-7763
SELECT ALL 6 / - + 82 + 1
----
1

query II rowsort
SELECT ALL + 19 AS col2, - 16 AS col2
----
19
-16

query I rowsort
SELECT + 65 * + 77 AS col2
----
5005

onlyif mysql # aggregate syntax: 
query I rowsort label-7766
SELECT 90 * NULLIF ( + 34, + 34 * - 39 + - - COUNT( * ) ) + - + 98 + 99
----
3061

skipif mysql # not compatible
query I rowsort label-7766
SELECT 90 * NULLIF ( + 34, + 34 * - 39 + - - COUNT ( * ) ) + - + 98 + 99
----
3061

onlyif mysql # DIV for integer division: 
query I rowsort label-7767
SELECT ALL 49 DIV - - 27 - 55 AS col0
----
-54

skipif mysql # not compatible
query I rowsort label-7767
SELECT ALL 49 / - - 27 - 55 AS col0
----
-54

query I rowsort
SELECT DISTINCT + 99 * + 47 AS col0
----
4653

onlyif mysql # aggregate syntax: 
query II rowsort label-7769
SELECT - COUNT( * ) + + + 82 * - 37 * + 41 - + 36 AS col2, - 99 AS col2
----
-124431
-99

skipif mysql # not compatible
query II rowsort label-7769
SELECT - COUNT ( * ) + + + 82 * - 37 * + 41 - + 36 AS col2, - 99 AS col2
----
-124431
-99

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7772
SELECT ALL + CASE - + MAX( - 36 ) WHEN - - NULLIF ( 70, - - NULLIF ( + 74, + AVG ( ALL 72 ) ) ) - CASE + 24 WHEN COALESCE ( ( 67 ), - + COALESCE ( + + 45, + COUNT( * ) * + - 89 ) ) THEN + - 40 / 84 * MAX( ALL 71 ) + + + 50 + 88 + - COUNT( * ) - - + 82 END * CAST( 64 AS SIGNED ) * - - 8 * - + ( 14 ) + - 33 THEN + 2 WHEN 96 THEN NULL ELSE NULL END * - 51 - + 39 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7772
SELECT ALL + CASE - + MAX ( - 36 ) WHEN - - NULLIF ( 70, - - NULLIF ( + 74, + AVG ( ALL 72 ) ) ) - CASE + 24 WHEN COALESCE ( ( 67 ), - + COALESCE ( + + 45, + COUNT ( * ) * + - 89 ) ) THEN + - 40 / 84 * MAX ( ALL 71 ) + + + 50 + 88 + - COUNT ( * ) - - + 82 END * CAST ( 64 AS INTEGER ) * - - 8 * - + ( 14 ) + - 33 THEN + 2 WHEN 96 THEN NULL ELSE NULL END * - 51 - + 39 AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7773
SELECT ALL + - ( - 24 ) DIV + + 87 + + 79 AS col0
----
79

skipif mysql # not compatible
query I rowsort label-7773
SELECT ALL + - ( - 24 ) / + + 87 + + 79 AS col0
----
79

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

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

query I rowsort
SELECT - 62 + 67
----
5

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-7776
SELECT ALL + + 59 DIV - + CAST( - 89 AS SIGNED ), 61 col0
----
0
61

skipif mysql # not compatible
query II rowsort label-7776
SELECT ALL + + 59 / - + CAST ( - 89 AS INTEGER ), 61 col0
----
0
61

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

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

query I rowsort
SELECT ALL + + 47 + - - 51 AS col2
----
98

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

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

query I rowsort
SELECT - COALESCE ( - 54, + 89 ) AS col0
----
54

query I rowsort
SELECT 62 * - + 92 + + + 94 + - 53 * - + 75
----
-1635

query I rowsort
SELECT ALL + - 80 * + + 84
----
-6720

onlyif mysql # aggregate syntax: 
query II rowsort label-7783
SELECT ALL + 98 AS col2, NULLIF ( + MIN( ALL + 37 ), - - 98 ) * 96 + + COUNT( * ) + + 29
----
98
3582

skipif mysql # not compatible
query II rowsort label-7783
SELECT ALL + 98 AS col2, NULLIF ( + MIN ( ALL + 37 ), - - 98 ) * 96 + + COUNT ( * ) + + 29
----
98
3582

onlyif mysql # aggregate syntax: 
query I rowsort label-7784
SELECT DISTINCT + - 5 + + 70 * + + COALESCE ( COUNT( * ), - NULLIF ( + 55, + - 95 ) - - 53, 3 + 92 - - - 84 + 49 + - + COUNT( * ) * + 38 * - 56 )
----
65

skipif mysql # not compatible
query I rowsort label-7784
SELECT DISTINCT + - 5 + + 70 * + + COALESCE ( COUNT ( * ), - NULLIF ( + 55, + - 95 ) - - 53, 3 + 92 - - - 84 + 49 + - + COUNT ( * ) * + 38 * - 56 )
----
65

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7787
SELECT ALL - COUNT( * ) + - + 56 + 4 * 86 + 59 * ( + - 73 )
----
-4020

skipif mysql # not compatible
query I rowsort label-7787
SELECT ALL - COUNT ( * ) + - + 56 + 4 * 86 + 59 * ( + - 73 )
----
-4020

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-7789
SELECT CAST( NULL AS SIGNED ) + 39 AS col1, 88 DIV - COUNT( * ) AS col0
----
NULL
-88

skipif mysql # not compatible
query II rowsort label-7789
SELECT CAST ( NULL AS INTEGER ) + 39 AS col1, 88 / - COUNT ( * ) AS col0
----
NULL
-88

query I rowsort
SELECT ALL ( + - 8 ) + + + 90 * + - 47 AS col1
----
-4238

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

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

query II rowsort
SELECT - 37 col2, 6 AS col0
----
-37
6

query I rowsort
SELECT 23 + 93 + 61
----
177

query I rowsort
SELECT ALL 95 - + - 46 AS col1
----
141

query II rowsort
SELECT ALL 49 AS col0, + ( + + ( - 65 ) )
----
49
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-7796
SELECT COUNT( * ) * + 56 * 40 + + 75
----
2315

skipif mysql # not compatible
query I rowsort label-7796
SELECT COUNT ( * ) * + 56 * 40 + + 75
----
2315

onlyif mysql # DIV for integer division: 
query I rowsort label-7797
SELECT ALL 59 - - 59 + 99 * 18 DIV - + 10 AS col2
----
-60

skipif mysql # not compatible
query I rowsort label-7797
SELECT ALL 59 - - 59 + 99 * 18 / - + 10 AS col2
----
-60

onlyif mysql # DIV for integer division: 
query I rowsort label-7798
SELECT 29 DIV - 64 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-7798
SELECT 29 / - 64 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7799
SELECT 64 * - MAX( + 45 )
----
-2880

skipif mysql # not compatible
query I rowsort label-7799
SELECT 64 * - MAX ( + 45 )
----
-2880

onlyif mysql # DIV for integer division: 
query I rowsort label-7800
SELECT + 64 DIV 12 + + + 6 AS col0
----
11

skipif mysql # not compatible
query I rowsort label-7800
SELECT + 64 / 12 + + + 6 AS col0
----
11

query I rowsort
SELECT 74 * - 2 * 66 * 89 AS col1
----
-869352

query II rowsort
SELECT ALL - 12, + 66 AS col2
----
-12
66

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

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

query II rowsort
SELECT ALL - 38 AS col0, + 68 col1
----
-38
68

onlyif mysql # aggregate syntax: 
query I rowsort label-7805
SELECT ALL - - MIN( 54 ) AS col2
----
54

skipif mysql # not compatible
query I rowsort label-7805
SELECT ALL - - MIN ( 54 ) AS col2
----
54

query II rowsort
SELECT DISTINCT - ( - 43 ), 37 col2
----
43
37

query I rowsort
SELECT ALL + - 99 * - + 36
----
3564

query I rowsort
SELECT 92 + - 64
----
28

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

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

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

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

query II rowsort
SELECT - 97, 96 AS col0
----
-97
96

onlyif mysql # DIV for integer division: 
query I rowsort label-7812
SELECT - 69 DIV - 75 * 17
----
0

skipif mysql # not compatible
query I rowsort label-7812
SELECT - 69 / - 75 * 17
----
0

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

skipif mysql # not compatible
query I rowsort label-7813
SELECT ALL + 72 + + + COUNT ( * ) AS col1
----
73

query I rowsort
SELECT 71 * ( + 14 ) + 59 - + - 53
----
1106

query I rowsort
SELECT DISTINCT - + 57 + + 51
----
-6

onlyif mysql # aggregate syntax: 
query II rowsort label-7816
SELECT 43 AS col1, - NULLIF ( + COUNT( * ), 98 * + NULLIF ( - COALESCE ( + - 59, - 87 + + + MIN( DISTINCT + 31 ) ), + 89 * 15 * 75 / + 57 ) + + 2 / + 40 + 63 ) - + 84 AS col1
----
43
-85

skipif mysql # not compatible
query II rowsort label-7816
SELECT 43 AS col1, - NULLIF ( + COUNT ( * ), 98 * + NULLIF ( - COALESCE ( + - 59, - 87 + + + MIN ( DISTINCT + 31 ) ), + 89 * 15 * 75 / + 57 ) + + 2 / + 40 + 63 ) - + 84 AS col1
----
43
-85

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7818
SELECT + ( + 82 ) DIV + 29 AS col1
----
2

skipif mysql # not compatible
query I rowsort label-7818
SELECT + ( + 82 ) / + 29 AS col1
----
2

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

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

query I rowsort
SELECT 20 * - ( + + 77 )
----
-1540

onlyif mysql # aggregate syntax: 
query II rowsort label-7821
SELECT 86 AS col0, COUNT( * ) + - 70
----
86
-69

skipif mysql # not compatible
query II rowsort label-7821
SELECT 86 AS col0, COUNT ( * ) + - 70
----
86
-69

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7823
SELECT DISTINCT + - 77 + + 62 DIV + SUM( DISTINCT 73 ) AS col2
----
-77

skipif mysql # not compatible
query I rowsort label-7823
SELECT DISTINCT + - 77 + + 62 / + SUM ( DISTINCT 73 ) AS col2
----
-77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7824
SELECT ALL CAST( NULL AS SIGNED ) - - CASE - + 95 WHEN + 71 THEN COUNT( ALL + CAST( - 43 AS SIGNED ) ) WHEN + CASE + ( + 36 ) WHEN - 49 / + NULLIF ( AVG ( ALL 38 ), + AVG ( - CAST( NULL AS SIGNED ) ) ) * - 8 - + 10 / 32 * - - COUNT( + 16 ) + - + 11 THEN NULL WHEN - - CAST( - COALESCE ( + + 84, + 53, + - 4 + + 11 * 4, + 62 ) AS SIGNED ) THEN + + 0 ELSE AVG ( DISTINCT + COALESCE ( + 9, - 65 ) ) END THEN NULL ELSE 71 * 96 END * + 42
----
NULL

skipif mysql # not compatible
query I rowsort label-7824
SELECT ALL CAST ( NULL AS INTEGER ) - - CASE - + 95 WHEN + 71 THEN COUNT ( ALL + CAST ( - 43 AS INTEGER ) ) WHEN + CASE + ( + 36 ) WHEN - 49 / + NULLIF ( AVG ( ALL 38 ), + AVG ( - CAST ( NULL AS INTEGER ) ) ) * - 8 - + 10 / 32 * - - COUNT ( + 16 ) + - + 11 THEN NULL WHEN - - CAST ( - COALESCE ( + + 84, + 53, + - 4 + + 11 * 4, + 62 ) AS INTEGER ) THEN + + 0 ELSE AVG ( DISTINCT + COALESCE ( + 9, - 65 ) ) END THEN NULL ELSE 71 * 96 END * + 42
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7825
SELECT COALESCE ( 6, - COALESCE ( + + 57, - + 39, 84 ) * + COUNT( * ) ) * COUNT( * ) + COUNT( 19 ) - 92 DIV - 95 + + SUM( DISTINCT + - 32 ) col1
----
-25

skipif mysql # not compatible
query I rowsort label-7825
SELECT COALESCE ( 6, - COALESCE ( + + 57, - + 39, 84 ) * + COUNT ( * ) ) * COUNT ( * ) + COUNT ( 19 ) - 92 / - 95 + + SUM ( DISTINCT + - 32 ) col1
----
-25

query I rowsort
SELECT ALL + ( - 78 ) * + - 75 + - 70 AS col1
----
5780

onlyif mysql # aggregate syntax: 
query I rowsort label-7827
SELECT 32 + + 33 + - COUNT( * ) AS col0
----
64

skipif mysql # not compatible
query I rowsort label-7827
SELECT 32 + + 33 + - COUNT ( * ) AS col0
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-7828
SELECT 74 * SUM( + + ( + + 18 ) )
----
1332

skipif mysql # not compatible
query I rowsort label-7828
SELECT 74 * SUM ( + + ( + + 18 ) )
----
1332

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7830
SELECT ALL 5 * + - CASE 99 WHEN - + 34 THEN - COUNT( * ) * 65 * - + 97 / - 42 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7830
SELECT ALL 5 * + - CASE 99 WHEN - + 34 THEN - COUNT ( * ) * 65 * - + 97 / - 42 END AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7831
SELECT 64 DIV - MIN( + 13 )
----
-4

skipif mysql # not compatible
query I rowsort label-7831
SELECT 64 / - MIN ( + 13 )
----
-4

onlyif mysql # DIV for integer division: 
query I rowsort label-7832
SELECT DISTINCT - 81 DIV - 53
----
1

skipif mysql # not compatible
query I rowsort label-7832
SELECT DISTINCT - 81 / - 53
----
1

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

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

query I rowsort
SELECT ALL 70 * + 21 * - 11 AS col1
----
-16170

onlyif mysql # aggregate syntax: 
query I rowsort label-7835
SELECT + 97 * + 0 + + CASE - 5 WHEN + 3 THEN NULL WHEN + 94 THEN + 51 END + - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-7835
SELECT + 97 * + 0 + + CASE - 5 WHEN + 3 THEN NULL WHEN + 94 THEN + 51 END + - COUNT ( * )
----
NULL

query I rowsort
SELECT + + 97 + + 3 + - 88 + - 92 - - + 43 * + 85 AS col2
----
3575

onlyif mysql # aggregate syntax: 
query I rowsort label-7837
SELECT + 40 * + COUNT( * ) * NULLIF ( - + 92, - SUM( DISTINCT + 5 ) * + - 62 + - MIN( 58 ) - 52 + + 87 )
----
-3680

skipif mysql # not compatible
query I rowsort label-7837
SELECT + 40 * + COUNT ( * ) * NULLIF ( - + 92, - SUM ( DISTINCT + 5 ) * + - 62 + - MIN ( 58 ) - 52 + + 87 )
----
-3680

onlyif mysql # aggregate syntax: 
query I rowsort label-7838
SELECT DISTINCT - COUNT( * ) * 12 + + 17 + + 27 * + ( - COUNT( * ) ) AS col1
----
-22

skipif mysql # not compatible
query I rowsort label-7838
SELECT DISTINCT - COUNT ( * ) * 12 + + 17 + + 27 * + ( - COUNT ( * ) ) AS col1
----
-22

query I rowsort
SELECT ALL 5 * + 90 * 32 + + - 68 + - + 62 * - 32
----
16316

onlyif mysql # aggregate syntax: 
query I rowsort label-7840
SELECT + 97 + 89 * - COUNT( * ) AS col0
----
8

skipif mysql # not compatible
query I rowsort label-7840
SELECT + 97 + 89 * - COUNT ( * ) AS col0
----
8

query I rowsort
SELECT + 11 + 49 col2
----
60

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7843
SELECT ALL + COUNT( ALL 66 ) * + ( + - 75 ) + + - 73 + 89 - 3
----
-62

skipif mysql # not compatible
query I rowsort label-7843
SELECT ALL + COUNT ( ALL 66 ) * + ( + - 75 ) + + - 73 + 89 - 3
----
-62

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7844
SELECT ALL + + 17 + 22 AS col0, - MAX( ALL + 58 ) DIV + 47 + - - 11 + 59 * + + COUNT( * ) - + 58 AS col1
----
39
11

skipif mysql # not compatible
query II rowsort label-7844
SELECT ALL + + 17 + 22 AS col0, - MAX ( ALL + 58 ) / + 47 + - - 11 + 59 * + + COUNT ( * ) - + 58 AS col1
----
39
11

onlyif mysql # aggregate syntax: 
query I rowsort label-7845
SELECT ALL + + ( + SUM( DISTINCT 81 ) ) AS col1
----
81

skipif mysql # not compatible
query I rowsort label-7845
SELECT ALL + + ( + SUM ( DISTINCT 81 ) ) AS col1
----
81

query I rowsort
SELECT + - 55 col1
----
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-7847
SELECT - - NULLIF ( + 75, - COUNT( * ) ) + + + 29 + + 24 AS col1
----
128

skipif mysql # not compatible
query I rowsort label-7847
SELECT - - NULLIF ( + 75, - COUNT ( * ) ) + + + 29 + + 24 AS col1
----
128

onlyif mysql # aggregate syntax: 
query I rowsort label-7848
SELECT ALL - - COUNT( DISTINCT - 82 ) * - COUNT( * )
----
-1

skipif mysql # not compatible
query I rowsort label-7848
SELECT ALL - - COUNT ( DISTINCT - 82 ) * - COUNT ( * )
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-7849
SELECT + CAST( NULL AS DECIMAL ) + + 12 col2, - 6 / + ( - CAST( NULL AS SIGNED ) ) * - COUNT( ALL - 6 ) * + + 62 + + COUNT( * ) col0
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-7849
SELECT + CAST ( NULL AS REAL ) + + 12 col2, - 6 / + ( - CAST ( NULL AS INTEGER ) ) * - COUNT ( ALL - 6 ) * + + 62 + + COUNT ( * ) col0
----
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7850
SELECT + - 19 + + CAST( + 12 AS SIGNED ) + + 34 AS col0
----
27

skipif mysql # not compatible
query I rowsort label-7850
SELECT + - 19 + + CAST ( + 12 AS INTEGER ) + + 34 AS col0
----
27

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7852
SELECT ALL - COALESCE ( - 11, + 13 DIV + 29 * 56 + - 45 + + 72 + + 99 - + 80 * - - 4 * + 83 DIV + + 78 ) - - - 30 AS col0
----
-19

skipif mysql # not compatible
query I rowsort label-7852
SELECT ALL - COALESCE ( - 11, + 13 / + 29 * 56 + - 45 + + 72 + + 99 - + 80 * - - 4 * + 83 / + + 78 ) - - - 30 AS col0
----
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-7853
SELECT - 84 + - 30 * + - 29 + - - 81 + - + 84 + + + COUNT( * ) * 74
----
857

skipif mysql # not compatible
query I rowsort label-7853
SELECT - 84 + - 30 * + - 29 + - - 81 + - + 84 + + + COUNT ( * ) * 74
----
857

query I rowsort
SELECT DISTINCT 49 - + - 4
----
53

query I rowsort
SELECT - 60 * + 4 * + 96 col2
----
-23040

onlyif mysql # DIV for integer division: 
query I rowsort label-7856
SELECT ALL - 57 DIV - - 5
----
-11

skipif mysql # not compatible
query I rowsort label-7856
SELECT ALL - 57 / - - 5
----
-11

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7858
SELECT ALL - ( + ( - CASE + 98 WHEN + - 42 THEN 78 + + + 63 / 66 END ) ) - + ( ( + NULLIF ( + CASE CASE ( + 36 ) WHEN - + 9 * - 94 * + CASE 32 WHEN 93 THEN + - 92 END + - - CAST( NULL AS SIGNED ) + + + 93 * + 69 * 80 / + 49 + - 18 + + 22 THEN NULL WHEN + 38 * 48 THEN + 7 / + 34 + - 63 - + NULLIF ( + 24, COUNT( * ) ) * 74 END WHEN - 48 * - 11 THEN 6 WHEN AVG ( DISTINCT + 93 ) + - SUM( ALL 36 ) THEN NULL END, NULLIF ( - 82, + 68 ) * 58 ) ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-7858
SELECT ALL - ( + ( - CASE + 98 WHEN + - 42 THEN 78 + + + 63 / 66 END ) ) - + ( ( + NULLIF ( + CASE CASE ( + 36 ) WHEN - + 9 * - 94 * + CASE 32 WHEN 93 THEN + - 92 END + - - CAST ( NULL AS INTEGER ) + + + 93 * + 69 * 80 / + 49 + - 18 + + 22 THEN NULL WHEN + 38 * 48 THEN + 7 / + 34 + - 63 - + NULLIF ( + 24, COUNT ( * ) ) * 74 END WHEN - 48 * - 11 THEN 6 WHEN AVG ( DISTINCT + 93 ) + - SUM ( ALL 36 ) THEN NULL END, NULLIF ( - 82, + 68 ) * 58 ) ) )
----
NULL

query I rowsort
SELECT - 65 * - - 68 AS col0
----
-4420

query I rowsort
SELECT - 24 * 43
----
-1032

onlyif mysql # aggregate syntax: 
query I rowsort label-7861
SELECT - COUNT( * ) + + 83 - + ( 35 ) + + 29 * - 79 * + 1
----
-2244

skipif mysql # not compatible
query I rowsort label-7861
SELECT - COUNT ( * ) + + 83 - + ( 35 ) + + 29 * - 79 * + 1
----
-2244

onlyif mysql # DIV for integer division: 
query I rowsort label-7862
SELECT ALL - 58 DIV 48
----
-1

skipif mysql # not compatible
query I rowsort label-7862
SELECT ALL - 58 / 48
----
-1

query I rowsort
SELECT - 6 + - ( + + 26 )
----
-32

query I rowsort
SELECT + 24 + 68 AS col2
----
92

query I rowsort
SELECT ALL - 85 * - + CASE + 74 WHEN - 80 THEN NULL ELSE ( + 47 ) END AS col0
----
3995

query I rowsort
SELECT DISTINCT COALESCE ( + ( + - 4 ), - + 94 * - + 64 - 55 + - 11 + + 34 * + - 61 + - 83 )
----
-4

query I rowsort
SELECT ALL 64 * - - 79 AS col0
----
5056

query I rowsort
SELECT - 70 * - 27
----
1890

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7870
SELECT + COUNT( * ) * + - 77 * - ( 40 ) + - 53 - COUNT( * ) - 46 + CAST( + - 17 AS SIGNED ) * + COUNT( * ) DIV - 95
----
2980

skipif mysql # not compatible
query I rowsort label-7870
SELECT + COUNT ( * ) * + - 77 * - ( 40 ) + - 53 - COUNT ( * ) - 46 + CAST ( + - 17 AS INTEGER ) * + COUNT ( * ) / - 95
----
2980

query I rowsort
SELECT ALL + ( - 21 ) col0
----
-21

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7872
SELECT + COALESCE ( COALESCE ( + 4, - 89, 45 * - 84 ), - COUNT( * ), + + ( + 48 ) * + 31 DIV - 47 + + 62 )
----
4

skipif mysql # not compatible
query I rowsort label-7872
SELECT + COALESCE ( COALESCE ( + 4, - 89, 45 * - 84 ), - COUNT ( * ), + + ( + 48 ) * + 31 / - 47 + + 62 )
----
4

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7873
SELECT DISTINCT COUNT( 25 ) DIV + + 19 + - - 45 DIV - - 83 + 86 * + 87 + 26 col1
----
7508

skipif mysql # not compatible
query I rowsort label-7873
SELECT DISTINCT COUNT ( 25 ) / + + 19 + - - 45 / - - 83 + 86 * + 87 + 26 col1
----
7508

query II rowsort
SELECT - 9 AS col1, + 76 AS col2
----
-9
76

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7875
SELECT ALL - COALESCE ( 78, - COUNT( * ) ) DIV - 60 + - 84 - + 77 + - 96 * 61 * + - COUNT( * ) * - - 95
----
556160

skipif mysql # not compatible
query I rowsort label-7875
SELECT ALL - COALESCE ( 78, - COUNT ( * ) ) / - 60 + - 84 - + 77 + - 96 * 61 * + - COUNT ( * ) * - - 95
----
556160

onlyif mysql # aggregate syntax: 
query II rowsort label-7876
SELECT - 81 * + + 23 + ( - 56 ) AS col1, COUNT( * ) * + 17 AS col1
----
-1919
17

skipif mysql # not compatible
query II rowsort label-7876
SELECT - 81 * + + 23 + ( - 56 ) AS col1, COUNT ( * ) * + 17 AS col1
----
-1919
17

onlyif mysql # DIV for integer division: 
query I rowsort label-7877
SELECT ALL + 55 DIV - 18
----
-3

skipif mysql # not compatible
query I rowsort label-7877
SELECT ALL + 55 / - 18
----
-3

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7879
SELECT DISTINCT + 29 * + COUNT( * ) * - CAST( NULL AS SIGNED ) + 71
----
NULL

skipif mysql # not compatible
query I rowsort label-7879
SELECT DISTINCT + 29 * + COUNT ( * ) * - CAST ( NULL AS INTEGER ) + 71
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7880
SELECT NULLIF ( NULLIF ( - NULLIF ( - COALESCE ( + - 34, + 11 ), - 50 ), + 78 * + 69 * CASE + CAST( NULL AS SIGNED ) WHEN - - 53 - - + 1 THEN - + 30 / CASE 42 WHEN 56 + - 15 THEN MIN( DISTINCT - 39 ) * - 13 * - 97 / + ( + 94 ) / + 80 / + 85 * - COALESCE ( - + 86, + + 38 - 64 ) + 52 + 41 WHEN - + 33 * + 84 THEN NULL END WHEN 9 THEN NULL ELSE NULL END - - SUM( 66 - CAST( NULL AS DECIMAL ) ) ), 88 )
----
-34

skipif mysql # not compatible
query I rowsort label-7880
SELECT NULLIF ( NULLIF ( - NULLIF ( - COALESCE ( + - 34, + 11 ), - 50 ), + 78 * + 69 * CASE + CAST ( NULL AS INTEGER ) WHEN - - 53 - - + 1 THEN - + 30 / CASE 42 WHEN 56 + - 15 THEN MIN ( DISTINCT - 39 ) * - 13 * - 97 / + ( + 94 ) / + 80 / + 85 * - COALESCE ( - + 86, + + 38 - 64 ) + 52 + 41 WHEN - + 33 * + 84 THEN NULL END WHEN 9 THEN NULL ELSE NULL END - - SUM ( 66 - CAST ( NULL AS REAL ) ) ), 88 )
----
-34

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

skipif mysql # not compatible
query I rowsort label-7881
SELECT + COUNT ( * ) / + + MAX ( - + 27 )
----
0

query I rowsort
SELECT + 84 * + 82
----
6888

onlyif mysql # aggregate syntax: 
query I rowsort label-7883
SELECT ALL - ( + 25 ) * 68 * - - CASE 4 WHEN + - 71 THEN + 58 * - 27 * + COUNT( * ) ELSE + 42 END * + - 78 + - 38 - - 37 AS col1
----
5569199

skipif mysql # not compatible
query I rowsort label-7883
SELECT ALL - ( + 25 ) * 68 * - - CASE 4 WHEN + - 71 THEN + 58 * - 27 * + COUNT ( * ) ELSE + 42 END * + - 78 + - 38 - - 37 AS col1
----
5569199

onlyif mysql # aggregate syntax: 
query I rowsort label-7884
SELECT - 89 * + MIN( DISTINCT - 11 ) - - COUNT( * )
----
980

skipif mysql # not compatible
query I rowsort label-7884
SELECT - 89 * + MIN ( DISTINCT - 11 ) - - COUNT ( * )
----
980

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

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

query II rowsort
SELECT - + 96, + 24 AS col0
----
-96
24

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

query I rowsort
SELECT DISTINCT - 71 * + + ( + COALESCE ( 12, + 56 ) ) col1
----
-852

query I rowsort
SELECT + 48 * - - ( - 75 )
----
-3600

onlyif mysql # aggregate syntax: 
query II rowsort label-7891
SELECT - ( - + 60 ), + 50 - 3 * - COALESCE ( + 82, - ( + 71 ) ) + + SUM( 82 ) AS col1
----
60
378

skipif mysql # not compatible
query II rowsort label-7891
SELECT - ( - + 60 ), + 50 - 3 * - COALESCE ( + 82, - ( + 71 ) ) + + SUM ( 82 ) AS col1
----
60
378

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7892
SELECT ALL CASE + NULLIF ( + ( 23 ), 78 ) WHEN - - 56 THEN NULL WHEN + - 77 * 80 + - - 18 THEN NULL ELSE + CAST( + + 54 AS SIGNED ) * + 44 * 70 END AS col0
----
166320

skipif mysql # not compatible
query I rowsort label-7892
SELECT ALL CASE + NULLIF ( + ( 23 ), 78 ) WHEN - - 56 THEN NULL WHEN + - 77 * 80 + - - 18 THEN NULL ELSE + CAST ( + + 54 AS INTEGER ) * + 44 * 70 END AS col0
----
166320

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7893
SELECT - CAST( - - 90 AS SIGNED ) AS col2, 24 * - + 88
----
-90
-2112

skipif mysql # not compatible
query II rowsort label-7893
SELECT - CAST ( - - 90 AS INTEGER ) AS col2, 24 * - + 88
----
-90
-2112

onlyif mysql # DIV for integer division: 
query I rowsort label-7894
SELECT + 1 DIV - 96
----
0

skipif mysql # not compatible
query I rowsort label-7894
SELECT + 1 / - 96
----
0

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

skipif mysql # not compatible
query I rowsort label-7895
SELECT DISTINCT ( + MIN ( ALL + + 56 ) ) AS col1
----
56

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7897
SELECT - CASE - 77 WHEN - ( - 35 ) * 98 + + + 35 + + 16 THEN NULL WHEN + - 43 * ( - 42 ) + + + 55 THEN - COALESCE ( - 43, + 78, + COUNT( * ) * 89 * - - 63 + - 90 - + 91 ) ELSE - + 23 END - 69
----
-46

skipif mysql # not compatible
query I rowsort label-7897
SELECT - CASE - 77 WHEN - ( - 35 ) * 98 + + + 35 + + 16 THEN NULL WHEN + - 43 * ( - 42 ) + + + 55 THEN - COALESCE ( - 43, + 78, + COUNT ( * ) * 89 * - - 63 + - 90 - + 91 ) ELSE - + 23 END - 69
----
-46

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7898
SELECT ALL - 63 + 26 col0, 30 * + - CAST( NULL AS SIGNED ) col0
----
-37
NULL

skipif mysql # not compatible
query II rowsort label-7898
SELECT ALL - 63 + 26 col0, 30 * + - CAST ( NULL AS INTEGER ) col0
----
-37
NULL

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

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

query I rowsort
SELECT 2 * 26
----
52

query I rowsort
SELECT ALL - 64 + - 91 + + 53
----
-102

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7902
SELECT 73 + + NULLIF ( + 72, + + 74 + + 47 - - 70 - + CAST( NULL AS SIGNED ) * + 26 * - - ( - - COUNT( * ) ) ) AS col0
----
145

skipif mysql # not compatible
query I rowsort label-7902
SELECT 73 + + NULLIF ( + 72, + + 74 + + 47 - - 70 - + CAST ( NULL AS INTEGER ) * + 26 * - - ( - - COUNT ( * ) ) ) AS col0
----
145

query I rowsort
SELECT + 66 + + CASE + 39 WHEN - + 26 THEN - - 0 * + 27 - - 24 END + 93
----
NULL

query I rowsort
SELECT ALL - + 21 + + 46
----
25

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7905
SELECT - + 89 DIV + 3 + - COUNT( * ) + + COALESCE ( - - COUNT( * ), - + 63 ) DIV ( - 10 ) * + 48 + 19
----
-11

skipif mysql # not compatible
query I rowsort label-7905
SELECT - + 89 / + 3 + - COUNT ( * ) + + COALESCE ( - - COUNT ( * ), - + 63 ) / ( - 10 ) * + 48 + 19
----
-11

query II rowsort
SELECT ALL + 34 + - + 41 AS col1, + 58 * + 41 * 18 * + 9 AS col0
----
-7
385236

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7908
SELECT ALL 46 - + + CASE + - MIN( ALL + 26 ) WHEN MAX( ALL - 37 ) * - + 69 - MAX( DISTINCT + 91 ) THEN NULL ELSE - - 93 END AS col0
----
-47

skipif mysql # not compatible
query I rowsort label-7908
SELECT ALL 46 - + + CASE + - MIN ( ALL + 26 ) WHEN MAX ( ALL - 37 ) * - + 69 - MAX ( DISTINCT + 91 ) THEN NULL ELSE - - 93 END AS col0
----
-47

onlyif mysql # DIV for integer division: 
query I rowsort label-7909
SELECT 54 DIV ( + 91 ) + - 15 AS col0
----
-15

skipif mysql # not compatible
query I rowsort label-7909
SELECT 54 / ( + 91 ) + - 15 AS col0
----
-15

query I rowsort
SELECT + NULLIF ( 62, + 84 )
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-7911
SELECT 8 + + SUM( ALL + 45 )
----
53

skipif mysql # not compatible
query I rowsort label-7911
SELECT 8 + + SUM ( ALL + 45 )
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-7912
SELECT COUNT( - 48 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-7912
SELECT COUNT ( - 48 ) AS col0
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7913
SELECT - - 96 * + - 11 + - SUM( 41 ) * + - 51 * - CAST( - - 73 AS SIGNED ) + - + 48 + - + COUNT( * )
----
-153748

skipif mysql # not compatible
query I rowsort label-7913
SELECT - - 96 * + - 11 + - SUM ( 41 ) * + - 51 * - CAST ( - - 73 AS INTEGER ) + - + 48 + - + COUNT ( * )
----
-153748

onlyif mysql # aggregate syntax: 
query I rowsort label-7914
SELECT ALL + 99 - NULLIF ( COUNT( * ), - 62 )
----
98

skipif mysql # not compatible
query I rowsort label-7914
SELECT ALL + 99 - NULLIF ( COUNT ( * ), - 62 )
----
98

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7915
SELECT - CAST( NULL AS SIGNED ) * COUNT( * ) / + CASE + 81 WHEN - 33 THEN + 64 ELSE 85 + 85 + - 24 END + 34 * - 97 + - 28 + 70 / - + 18 * - 16
----
NULL

skipif mysql # not compatible
query I rowsort label-7915
SELECT - CAST ( NULL AS INTEGER ) * COUNT ( * ) / + CASE + 81 WHEN - 33 THEN + 64 ELSE 85 + 85 + - 24 END + 34 * - 97 + - 28 + 70 / - + 18 * - 16
----
NULL

query I rowsort
SELECT 85 * + + 13
----
1105

onlyif mysql # aggregate syntax: 
query I rowsort label-7917
SELECT CASE + 32 WHEN - 46 - COUNT( * ) - + 7 THEN + 38 WHEN - ( + 80 ) THEN + + 27 ELSE 55 END + + + 33
----
88

skipif mysql # not compatible
query I rowsort label-7917
SELECT CASE + 32 WHEN - 46 - COUNT ( * ) - + 7 THEN + 38 WHEN - ( + 80 ) THEN + + 27 ELSE 55 END + + + 33
----
88

query I rowsort
SELECT 64 * 79
----
5056

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7919
SELECT + - CASE 20 WHEN COUNT( * ) * 89 + - 66 + 58 * - - 25 THEN + - COUNT( * ) + 39 ELSE NULL END * - 11 + CAST( NULL AS SIGNED ) + - 51 + + - 65
----
NULL

skipif mysql # not compatible
query I rowsort label-7919
SELECT + - CASE 20 WHEN COUNT ( * ) * 89 + - 66 + 58 * - - 25 THEN + - COUNT ( * ) + 39 ELSE NULL END * - 11 + CAST ( NULL AS INTEGER ) + - 51 + + - 65
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7920
SELECT COUNT( * ) * ( + 30 ) * + + 70 AS col0
----
2100

skipif mysql # not compatible
query I rowsort label-7920
SELECT COUNT ( * ) * ( + 30 ) * + + 70 AS col0
----
2100

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7921
SELECT ( + ( + 32 ) ) * - ( 5 ), MAX( DISTINCT - + 7 ) * + CASE - 82 WHEN - 1 THEN + COUNT( 65 ) * 50 * 82 * - + 66 / - - MAX( - 8 ) * 33 WHEN + 18 THEN NULL END * - 86 * + 85 * - MIN( ALL + CAST( 42 AS SIGNED ) ) + - + 59 * - 8 col2
----
-160
NULL

skipif mysql # not compatible
query II rowsort label-7921
SELECT ( + ( + 32 ) ) * - ( 5 ), MAX ( DISTINCT - + 7 ) * + CASE - 82 WHEN - 1 THEN + COUNT ( 65 ) * 50 * 82 * - + 66 / - - MAX ( - 8 ) * 33 WHEN + 18 THEN NULL END * - 86 * + 85 * - MIN ( ALL + CAST ( 42 AS INTEGER ) ) + - + 59 * - 8 col2
----
-160
NULL

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

query I rowsort
SELECT NULLIF ( ( - 14 ), + - 40 ) + 65 AS col2
----
51

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7924
SELECT ALL 44, 95 + + CAST( NULL AS SIGNED ) AS col2, - - 26 AS col2
----
44
NULL
26

skipif mysql # not compatible
query III rowsort label-7924
SELECT ALL 44, 95 + + CAST ( NULL AS INTEGER ) AS col2, - - 26 AS col2
----
44
NULL
26

onlyif mysql # aggregate syntax: 
query I rowsort label-7925
SELECT COUNT( + + 75 ) + 17 - - ( - 16 ) * MIN( - 38 ) * - + 76
----
-46190

skipif mysql # not compatible
query I rowsort label-7925
SELECT COUNT ( + + 75 ) + 17 - - ( - 16 ) * MIN ( - 38 ) * - + 76
----
-46190

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7926
SELECT ALL COALESCE ( 37, 30 DIV + 38 * 45 ) + + COUNT( * ) * + 33 * + ( + 52 )
----
1753

skipif mysql # not compatible
query I rowsort label-7926
SELECT ALL COALESCE ( 37, 30 / + 38 * 45 ) + + COUNT ( * ) * + 33 * + ( + 52 )
----
1753

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-7927
SELECT ALL 97 AS col2, COALESCE ( + + COUNT( * ), 4, + + NULLIF ( - CAST( NULL AS SIGNED ), + 20 ) ) - - + 38 + - 83 DIV - COUNT( * ) + + 27 AS col1
----
97
149

skipif mysql # not compatible
query II rowsort label-7927
SELECT ALL 97 AS col2, COALESCE ( + + COUNT ( * ), 4, + + NULLIF ( - CAST ( NULL AS INTEGER ), + 20 ) ) - - + 38 + - 83 / - COUNT ( * ) + + 27 AS col1
----
97
149

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7928
SELECT DISTINCT 24 + + - NULLIF ( 31, + CASE + CAST( - + 2 AS SIGNED ) WHEN - MAX( + 66 ) THEN NULL ELSE - - 57 * + 55 + 83 * - 51 * - 42 END ) * + 47 AS col1
----
-1433

skipif mysql # not compatible
query I rowsort label-7928
SELECT DISTINCT 24 + + - NULLIF ( 31, + CASE + CAST ( - + 2 AS INTEGER ) WHEN - MAX ( + 66 ) THEN NULL ELSE - - 57 * + 55 + 83 * - 51 * - 42 END ) * + 47 AS col1
----
-1433

onlyif mysql # aggregate syntax: 
query I rowsort label-7929
SELECT ALL 83 + - + COUNT( * ) * - 80 AS col1
----
163

skipif mysql # not compatible
query I rowsort label-7929
SELECT ALL 83 + - + COUNT ( * ) * - 80 AS col1
----
163

query I rowsort
SELECT 73 + + + 1 * + - 75 AS col1
----
-2

query I rowsort
SELECT ALL 53 + - 28 AS col2
----
25

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7932
SELECT CASE WHEN 0 IS NOT NULL THEN + 40 WHEN NOT - 19 + + CAST( 87 AS SIGNED ) + 30 DIV - 6 NOT IN ( - COUNT( * ) + NULLIF ( + 55, 94 * - 24 * - 87 ) + - + 35 * + 88 DIV - 9 + - 72 + 54 - ( - 5 ) * - - 33 + + - CAST( NULL AS SIGNED ) DIV - - 69 * - + CAST( NULL AS SIGNED ) DIV COUNT( * ), 95, - CAST( - ( - ( - 68 ) ) AS SIGNED ) + - + 78 * 3 ) THEN NULL END + - COUNT( * ) * SUM( 10 + 26 DIV 97 )
----
30

skipif mysql # not compatible
query I rowsort label-7932
SELECT CASE WHEN 0 IS NOT NULL THEN + 40 WHEN NOT - 19 + + CAST ( 87 AS INTEGER ) + 30 / - 6 NOT IN ( - COUNT ( * ) + NULLIF ( + 55, 94 * - 24 * - 87 ) + - + 35 * + 88 / - 9 + - 72 + 54 - ( - 5 ) * - - 33 + + - CAST ( NULL AS INTEGER ) / - - 69 * - + CAST ( NULL AS INTEGER ) / COUNT ( * ), 95, - CAST ( - ( - ( - 68 ) ) AS INTEGER ) + - + 78 * 3 ) THEN NULL END + - COUNT ( * ) * SUM ( 10 + 26 / 97 )
----
30

query I rowsort
SELECT DISTINCT 88 + + NULLIF ( 27, 55 * 54 ) AS col0
----
115

query II rowsort
SELECT - 65 AS col1, 56 col0
----
-65
56

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

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

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

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

query I rowsort
SELECT 18 + + 11 AS col1
----
29

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7938
SELECT DISTINCT - CAST( - - NULLIF ( - 57, + NULLIF ( ( + CAST( 55 AS SIGNED ) ), 8 ) * COUNT( * ) + + 88 * - ( + 61 ) ) AS SIGNED ) + 63
----
120

skipif mysql # not compatible
query I rowsort label-7938
SELECT DISTINCT - CAST ( - - NULLIF ( - 57, + NULLIF ( ( + CAST ( 55 AS INTEGER ) ), 8 ) * COUNT ( * ) + + 88 * - ( + 61 ) ) AS INTEGER ) + 63
----
120

query I rowsort
SELECT - 72 * - 51 + 40 - - 83 * + 31 * + 39 AS col2
----
104059

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

query I rowsort
SELECT ALL - - 85 - - - 23 AS col1
----
62

query II rowsort
SELECT + + 56 AS col0, 67 + 12 col1
----
56
79

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

query I rowsort
SELECT DISTINCT + + 68 * + 59
----
4012

query II rowsort
SELECT DISTINCT - 61 AS col0, 96
----
-61
96

onlyif mysql # aggregate syntax: 
query I rowsort label-7946
SELECT ALL + - ( 48 ) * + ( + COUNT( - 64 ) ) * - + 89 * + 92
----
393024

skipif mysql # not compatible
query I rowsort label-7946
SELECT ALL + - ( 48 ) * + ( + COUNT ( - 64 ) ) * - + 89 * + 92
----
393024

onlyif mysql # aggregate syntax: 
query I rowsort label-7947
SELECT MAX( ALL 67 ) * + - COUNT( * )
----
-67

skipif mysql # not compatible
query I rowsort label-7947
SELECT MAX ( ALL 67 ) * + - COUNT ( * )
----
-67

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7948
SELECT DISTINCT - CAST( NULL AS SIGNED ) AS col0, - 27 - + - 45
----
NULL
18

skipif mysql # not compatible
query II rowsort label-7948
SELECT DISTINCT - CAST ( NULL AS INTEGER ) AS col0, - 27 - + - 45
----
NULL
18

query I rowsort
SELECT ALL - 99 + - + ( 9 )
----
-108

onlyif mysql # aggregate syntax: 
query II rowsort label-7950
SELECT 26 * + 40 + + - ( + COUNT( * ) ) AS col2, 78
----
1039
78

skipif mysql # not compatible
query II rowsort label-7950
SELECT 26 * + 40 + + - ( + COUNT ( * ) ) AS col2, 78
----
1039
78

onlyif mysql # aggregate syntax: 
query I rowsort label-7951
SELECT COUNT( ALL 86 ) * 13 * 42 * - 42
----
-22932

skipif mysql # not compatible
query I rowsort label-7951
SELECT COUNT ( ALL 86 ) * 13 * 42 * - 42
----
-22932

query I rowsort
SELECT ALL 83 + + 34 * - 4
----
-53

onlyif mysql # DIV for integer division: 
query I rowsort label-7953
SELECT ALL + 36 DIV - 95
----
0

skipif mysql # not compatible
query I rowsort label-7953
SELECT ALL + 36 / - 95
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7954
SELECT DISTINCT + 81 + MAX( DISTINCT - 17 ) col2
----
64

skipif mysql # not compatible
query I rowsort label-7954
SELECT DISTINCT + 81 + MAX ( DISTINCT - 17 ) col2
----
64

onlyif mysql # DIV for integer division: 
query II rowsort label-7955
SELECT 59 AS col0, - 27 DIV - ( + 2 )
----
59
13

skipif mysql # not compatible
query II rowsort label-7955
SELECT 59 AS col0, - 27 / - ( + 2 )
----
59
13

onlyif mysql # aggregate syntax: 
query I rowsort label-7956
SELECT + NULLIF ( - COUNT( * ), - + 85 ) * - 9 AS col2
----
9

skipif mysql # not compatible
query I rowsort label-7956
SELECT + NULLIF ( - COUNT ( * ), - + 85 ) * - 9 AS col2
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-7957
SELECT ALL 47 + ( - COUNT( * ) ) + + COUNT( * ) * - 44 AS col1
----
2

skipif mysql # not compatible
query I rowsort label-7957
SELECT ALL 47 + ( - COUNT ( * ) ) + + COUNT ( * ) * - 44 AS col1
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-7958
SELECT - MAX( 72 ) - - COALESCE ( 73, + 0, - 43 )
----
1

skipif mysql # not compatible
query I rowsort label-7958
SELECT - MAX ( 72 ) - - COALESCE ( 73, + 0, - 43 )
----
1

query I rowsort
SELECT + 35 * 20 AS col2
----
700

query II rowsort
SELECT DISTINCT 13, 45 + + 8 AS col1
----
13
53

onlyif mysql # aggregate syntax: 
query II rowsort label-7961
SELECT ALL 65, COUNT( * ) + 8 + - 56 AS col1
----
65
-47

skipif mysql # not compatible
query II rowsort label-7961
SELECT ALL 65, COUNT ( * ) + 8 + - 56 AS col1
----
65
-47

onlyif mysql # aggregate syntax: 
query II rowsort label-7962
SELECT - COUNT( * ) AS col1, - 31 + COUNT( * ) + - 33 + 62 * 22 * + - COUNT( * ) * CASE + + 57 WHEN 46 * AVG ( DISTINCT - - 96 ) * + - 64 THEN + COALESCE ( - 58, - + 29, - 11 ) * 84 ELSE + - 73 END AS col2
----
-1
99509

skipif mysql # not compatible
query II rowsort label-7962
SELECT - COUNT ( * ) AS col1, - 31 + COUNT ( * ) + - 33 + 62 * 22 * + - COUNT ( * ) * CASE + + 57 WHEN 46 * AVG ( DISTINCT - - 96 ) * + - 64 THEN + COALESCE ( - 58, - + 29, - 11 ) * 84 ELSE + - 73 END AS col2
----
-1
99509

onlyif mysql # aggregate syntax: 
query I rowsort label-7963
SELECT ALL 93 - + SUM( ALL 88 ) * - COUNT( ALL - + ( - 36 ) ) AS col0
----
181

skipif mysql # not compatible
query I rowsort label-7963
SELECT ALL 93 - + SUM ( ALL 88 ) * - COUNT ( ALL - + ( - 36 ) ) AS col0
----
181

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7964
SELECT 64, 45 * + CAST( NULL AS SIGNED ) col2
----
64
NULL

skipif mysql # not compatible
query II rowsort label-7964
SELECT 64, 45 * + CAST ( NULL AS INTEGER ) col2
----
64
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7965
SELECT DISTINCT ( + ( + - CASE - 8 WHEN ( + - 45 ) THEN CAST( + 69 AS SIGNED ) * 72 * + - 77 WHEN COALESCE ( + CAST( NULL AS SIGNED ), + 98, + ( - + 83 ) * - 84 ) * + ( - SUM( + + 47 ) ) + CAST( NULL AS SIGNED ) + + 84 * - - COUNT( * ) / + + 73 + - 15 - + - 81 / - 27 THEN NULL END ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7965
SELECT DISTINCT ( + ( + - CASE - 8 WHEN ( + - 45 ) THEN CAST ( + 69 AS INTEGER ) * 72 * + - 77 WHEN COALESCE ( + CAST ( NULL AS INTEGER ), + 98, + ( - + 83 ) * - 84 ) * + ( - SUM ( + + 47 ) ) + CAST ( NULL AS INTEGER ) + + 84 * - - COUNT ( * ) / + + 73 + - 15 - + - 81 / - 27 THEN NULL END ) ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7966
SELECT ALL + 93 - MIN( DISTINCT - 19 ) AS col1
----
112

skipif mysql # not compatible
query I rowsort label-7966
SELECT ALL + 93 - MIN ( DISTINCT - 19 ) AS col1
----
112

onlyif mysql # aggregate syntax: 
query I rowsort label-7967
SELECT + + MAX( 88 ) - + 41
----
47

skipif mysql # not compatible
query I rowsort label-7967
SELECT + + MAX ( 88 ) - + 41
----
47

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

skipif mysql # not compatible
query II rowsort label-7968
SELECT 48 col0, CAST ( NULL AS INTEGER ) AS col0
----
48
NULL

query II rowsort
SELECT 86, - 62 AS col0
----
86
-62

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

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

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

skipif mysql # not compatible
query II rowsort label-7971
SELECT - CAST ( NULL AS INTEGER ) col0, 22
----
NULL
22

onlyif mysql # aggregate syntax: 
query II rowsort label-7972
SELECT ALL 57 AS col1, + 49 + + 92 * COUNT( * )
----
57
141

skipif mysql # not compatible
query II rowsort label-7972
SELECT ALL 57 AS col1, + 49 + + 92 * COUNT ( * )
----
57
141

query I rowsort
SELECT ALL ( + 75 ) * - 27 AS col1
----
-2025

onlyif mysql # aggregate syntax: 
query II rowsort label-7974
SELECT + - MIN( DISTINCT - 89 ) * 44 * 18, 48 AS col1
----
70488
48

skipif mysql # not compatible
query II rowsort label-7974
SELECT + - MIN ( DISTINCT - 89 ) * 44 * 18, 48 AS col1
----
70488
48

onlyif mysql # aggregate syntax: 
query I rowsort label-7975
SELECT - + 58 * + 56 + - 1 + - COUNT( * )
----
-3250

skipif mysql # not compatible
query I rowsort label-7975
SELECT - + 58 * + 56 + - 1 + - COUNT ( * )
----
-3250

query I rowsort
SELECT DISTINCT 51 * 99 AS col1
----
5049

query I rowsort
SELECT ALL + ( + CASE + 46 WHEN + 41 THEN + 50 + + - 2 ELSE + 96 END ) AS col0
----
96

onlyif mysql # DIV for integer division: 
query I rowsort label-7978
SELECT ALL - 0 DIV + ( - 92 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-7978
SELECT ALL - 0 / + ( - 92 ) AS col0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7979
SELECT + CAST( 69 AS SIGNED ) * + 75
----
5175

skipif mysql # not compatible
query I rowsort label-7979
SELECT + CAST ( 69 AS INTEGER ) * + 75
----
5175

query I rowsort
SELECT - - 61 + - - 67 * 12
----
865

query II rowsort
SELECT + 42, + 25 AS col2
----
42
25

query I rowsort
SELECT DISTINCT 15 * - NULLIF ( 25, + 68 ) + - 59
----
-434

query I rowsort
SELECT + 78 * - 35 AS col0
----
-2730

onlyif mysql # DIV for integer division: 
query II rowsort label-7984
SELECT - 95 DIV + + 85, 52 AS col0
----
-1
52

skipif mysql # not compatible
query II rowsort label-7984
SELECT - 95 / + + 85, 52 AS col0
----
-1
52

onlyif mysql # aggregate syntax: 
query I rowsort label-7985
SELECT DISTINCT 90 * - + 6 + - COUNT( * )
----
-541

skipif mysql # not compatible
query I rowsort label-7985
SELECT DISTINCT 90 * - + 6 + - COUNT ( * )
----
-541

query I rowsort
SELECT ALL + 40 * - 40 AS col1
----
-1600

onlyif mysql # aggregate syntax: DIV for integer division: 
query III rowsort label-7987
SELECT COALESCE ( - ( - 86 ), 53, - - ( - + COUNT( * ) ) - 73 ) AS col0, 6, - COUNT( + - 41 ) DIV + + ( + 9 ) + - 18 AS col2
----
86
6
-18

skipif mysql # not compatible
query III rowsort label-7987
SELECT COALESCE ( - ( - 86 ), 53, - - ( - + COUNT ( * ) ) - 73 ) AS col0, 6, - COUNT ( + - 41 ) / + + ( + 9 ) + - 18 AS col2
----
86
6
-18

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7988
SELECT ALL CASE + 49 WHEN - COUNT( * ) THEN + 47 WHEN 48 THEN NULL END * 42 + + - 47 * CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7988
SELECT ALL CASE + 49 WHEN - COUNT ( * ) THEN + 47 WHEN 48 THEN NULL END * 42 + + - 47 * CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT DISTINCT 58 * - 85 + + - 98
----
-5028

onlyif mysql # aggregate syntax: 
query I rowsort label-7990
SELECT DISTINCT ( - - 51 ) * + - 89 * + 96 + - - MAX( ALL - + 31 )
----
-435775

skipif mysql # not compatible
query I rowsort label-7990
SELECT DISTINCT ( - - 51 ) * + - 89 * + 96 + - - MAX ( ALL - + 31 )
----
-435775

onlyif mysql # aggregate syntax: 
query II rowsort label-7991
SELECT COUNT( ALL 12 ) AS col2, + 47
----
1
47

skipif mysql # not compatible
query II rowsort label-7991
SELECT COUNT ( ALL 12 ) AS col2, + 47
----
1
47

onlyif mysql # aggregate syntax: 
query II rowsort label-7992
SELECT - COUNT( * ) + CASE 36 WHEN + 40 + - 42 * + COUNT( * ) + - COUNT( * ) - 71 * COUNT( - 35 ) + - - 47 THEN 9 END AS col1, 82 + + 96 + + 47
----
NULL
225

skipif mysql # not compatible
query II rowsort label-7992
SELECT - COUNT ( * ) + CASE 36 WHEN + 40 + - 42 * + COUNT ( * ) + - COUNT ( * ) - 71 * COUNT ( - 35 ) + - - 47 THEN 9 END AS col1, 82 + + 96 + + 47
----
NULL
225

query I rowsort
SELECT - 88 * - 91 col0
----
8008

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

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

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

skipif mysql # not compatible
query I rowsort label-7995
SELECT ALL + ( + 3 ) - - COUNT ( * ) AS col2
----
4

query I rowsort
SELECT - 58 * 32 * - 22 * + 59
----
2409088

query I rowsort
SELECT - 75 + - 0 AS col2
----
-75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7998
SELECT DISTINCT - CASE + + MIN( ALL 22 ) WHEN + + 44 THEN + 17 * - 92 ELSE NULL END * 24 + + + 43 + + 24 / + CAST( - + 37 AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7998
SELECT DISTINCT - CASE + + MIN ( ALL 22 ) WHEN + + 44 THEN + 17 * - 92 ELSE NULL END * 24 + + + 43 + + 24 / + CAST ( - + 37 AS INTEGER )
----
NULL

query I rowsort
SELECT ALL + - 2 - - + 42
----
40

query I rowsort
SELECT - 12 * - + 0 + 1
----
1

query I rowsort
SELECT + 82 + 34 AS col0
----
116

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8002
SELECT - 21 DIV - COUNT( * ) AS col0, - COUNT( * )
----
21
-1

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8003
SELECT + 9 * - COUNT( * ) AS col2, + 39 DIV 5
----
-9
7

skipif mysql # not compatible
query II rowsort label-8003
SELECT + 9 * - COUNT ( * ) AS col2, + 39 / 5
----
-9
7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8004
SELECT ALL - - 22 * + CAST( + + 87 AS SIGNED )
----
1914

skipif mysql # not compatible
query I rowsort label-8004
SELECT ALL - - 22 * + CAST ( + + 87 AS INTEGER )
----
1914

query I rowsort
SELECT DISTINCT + + 60 * + 17 AS col0
----
1020

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

skipif mysql # not compatible
query I rowsort label-8006
SELECT COUNT ( - CAST ( 29 AS INTEGER ) )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8007
SELECT ALL + - 47 + + COUNT( * ) * - - 19
----
-28

skipif mysql # not compatible
query I rowsort label-8007
SELECT ALL + - 47 + + COUNT ( * ) * - - 19
----
-28

query I rowsort
SELECT COALESCE ( + - 92, - + 68, + + 28 + - + 28 )
----
-92

query I rowsort
SELECT + NULLIF ( - 34, - 41 ) * - ( + 40 ) AS col1
----
1360

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8010
SELECT DISTINCT - ( + 35 ) * - - CAST( + 75 AS SIGNED ) AS col0
----
-2625

skipif mysql # not compatible
query I rowsort label-8010
SELECT DISTINCT - ( + 35 ) * - - CAST ( + 75 AS INTEGER ) AS col0
----
-2625

onlyif mysql # DIV for integer division: 
query II rowsort label-8011
SELECT ALL + 82 DIV - 8 + + 41 AS col1, ( - 93 ) * + - 69 AS col2
----
31
6417

skipif mysql # not compatible
query II rowsort label-8011
SELECT ALL + 82 / - 8 + + 41 AS col1, ( - 93 ) * + - 69 AS col2
----
31
6417

query I rowsort
SELECT 5 * + - 43 - 24
----
-239

onlyif mysql # aggregate syntax: 
query I rowsort label-8013
SELECT - CASE 77 WHEN - - COUNT( * ) THEN - - 67 ELSE 13 * 33 + - - CASE + COUNT( * ) WHEN 11 THEN 80 - + 31 WHEN 66 THEN NULL END + + - 34 * 82 END
----
NULL

skipif mysql # not compatible
query I rowsort label-8013
SELECT - CASE 77 WHEN - - COUNT ( * ) THEN - - 67 ELSE 13 * 33 + - - CASE + COUNT ( * ) WHEN 11 THEN 80 - + 31 WHEN 66 THEN NULL END + + - 34 * 82 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8014
SELECT + - CASE 67 WHEN + - 64 * 30 / + MAX( - ( 67 ) ) * + 33 - + 85 THEN 12 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8014
SELECT + - CASE 67 WHEN + - 64 * 30 / + MAX ( - ( 67 ) ) * + 33 - + 85 THEN 12 END AS col1
----
NULL

query I rowsort
SELECT DISTINCT 52 * + - 0 - + 18 AS col2
----
-18

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

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

query II rowsort
SELECT + 30 col2, + 94
----
30
94

query I rowsort
SELECT ALL 78 * 16 col2
----
1248

query I rowsort
SELECT ALL 36 + + - 39 * + - 26
----
1050

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-8021
SELECT DISTINCT 65 DIV + NULLIF ( - ( + 49 ), 17 )
----
-1

skipif mysql # not compatible
query I rowsort label-8021
SELECT DISTINCT 65 / + NULLIF ( - ( + 49 ), 17 )
----
-1

query I rowsort
SELECT ALL - NULLIF ( + ( - - 32 ), + 56 * + - 18 )
----
-32

onlyif mysql # aggregate syntax: 
query II rowsort label-8023
SELECT 12 * - COUNT( - 31 ) * 2, - MAX( 83 ) col0
----
-24
-83

skipif mysql # not compatible
query II rowsort label-8023
SELECT 12 * - COUNT ( - 31 ) * 2, - MAX ( 83 ) col0
----
-24
-83

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8024
SELECT 90 AS col1, - 16 DIV - COUNT( * )
----
90
16

skipif mysql # not compatible
query II rowsort label-8024
SELECT 90 AS col1, - 16 / - COUNT ( * )
----
90
16

query I rowsort
SELECT CASE 46 WHEN 50 - + - 26 THEN + + 77 WHEN + 47 * 18 + - 10 + - + NULLIF ( - ( + - 67 ), + - 32 * 31 ) + 65 + + - ( - ( 84 ) ) * + 96 THEN + + 13 - - + 19 END * + 1 + + 96 + 19 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8026
SELECT ALL - CASE - COUNT( * ) WHEN + + 93 + + 13 + + NULLIF ( 64, + - 68 ) THEN + NULLIF ( CASE - ( + - COUNT( * ) ) WHEN + + CASE - 19 WHEN - - 42 THEN + - 52 * + 54 END - + 21 + - MIN( + 72 ) THEN + 41 WHEN - MAX( 13 ) THEN NULL END, - - 17 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-8026
SELECT ALL - CASE - COUNT ( * ) WHEN + + 93 + + 13 + + NULLIF ( 64, + - 68 ) THEN + NULLIF ( CASE - ( + - COUNT ( * ) ) WHEN + + CASE - 19 WHEN - - 42 THEN + - 52 * + 54 END - + 21 + - MIN ( + 72 ) THEN + 41 WHEN - MAX ( 13 ) THEN NULL END, - - 17 ) END
----
NULL

query I rowsort
SELECT DISTINCT - 92 * - - 52
----
-4784

query I rowsort
SELECT DISTINCT 23 * - 48
----
-1104

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8029
SELECT 11 * CAST( 95 AS SIGNED ) AS col0
----
1045

skipif mysql # not compatible
query I rowsort label-8029
SELECT 11 * CAST ( 95 AS INTEGER ) AS col0
----
1045

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-8030
SELECT ALL 72 AS col0, - COALESCE ( + 45, 0, - + 57 + - + 32 + + 90 * + 92 ) * 73 - - COALESCE ( + 83, - 60 * + - 39, - 66 * + COALESCE ( - 91, - 96 * + + 21 * CAST( NULL AS SIGNED ) - + COUNT( * ), + 58 * + COUNT( * ) DIV - COUNT( * ) + + 66 ) + + + 28, 11 DIV - COUNT( * ) - - + 28 ) * - 23 AS col1
----
72
-5194

skipif mysql # not compatible
query II rowsort label-8030
SELECT ALL 72 AS col0, - COALESCE ( + 45, 0, - + 57 + - + 32 + + 90 * + 92 ) * 73 - - COALESCE ( + 83, - 60 * + - 39, - 66 * + COALESCE ( - 91, - 96 * + + 21 * CAST ( NULL AS INTEGER ) - + COUNT ( * ), + 58 * + COUNT ( * ) / - COUNT ( * ) + + 66 ) + + + 28, 11 / - COUNT ( * ) - - + 28 ) * - 23 AS col1
----
72
-5194

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8031
SELECT 27 AS col2, - 92 DIV 6 - - SUM( DISTINCT - 85 ) DIV ( - 78 ) DIV - 15 * - + 50 + - - ( 72 ) DIV + - 84 + + + 93 + + 62 AS col0
----
27
140

skipif mysql # not compatible
query II rowsort label-8031
SELECT 27 AS col2, - 92 / 6 - - SUM ( DISTINCT - 85 ) / ( - 78 ) / - 15 * - + 50 + - - ( 72 ) / + - 84 + + + 93 + + 62 AS col0
----
27
140

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8033
SELECT ALL COALESCE ( + COUNT( * ), ( + 22 ), - 26 DIV - COUNT( * ) - - 53 * SUM( ALL + 22 ) )
----
1

skipif mysql # not compatible
query I rowsort label-8033
SELECT ALL COALESCE ( + COUNT ( * ), ( + 22 ), - 26 / - COUNT ( * ) - - 53 * SUM ( ALL + 22 ) )
----
1

query I rowsort
SELECT 10 * + 64 - + 72
----
568

onlyif mysql # aggregate syntax: 
query I rowsort label-8035
SELECT SUM( DISTINCT - - 50 ) AS col2
----
50

skipif mysql # not compatible
query I rowsort label-8035
SELECT SUM ( DISTINCT - - 50 ) AS col2
----
50

query II rowsort
SELECT DISTINCT 2, 97 + 49 + 75 * - - 5 + - 82 + + - 38 AS col1
----
2
401

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8037
SELECT COUNT( * ) * ( COALESCE ( + COUNT( * ), + COALESCE ( CAST( - - 66 AS SIGNED ), + SUM( 62 ) ) ) ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-8037
SELECT COUNT ( * ) * ( COALESCE ( + COUNT ( * ), + COALESCE ( CAST ( - - 66 AS INTEGER ), + SUM ( 62 ) ) ) ) AS col2
----
1

query II rowsort
SELECT 27 AS col1, + 69 + - + 66
----
27
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8039
SELECT - CASE - COUNT( DISTINCT - - NULLIF ( - + 23, 91 - - 98 - CAST( - 65 AS SIGNED ) ) ) WHEN - 31 * + - SUM( DISTINCT + 15 ) + CAST( NULL AS SIGNED ) THEN + + 4 * - 80 WHEN + + 52 * 87 * 86 * - + 73 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-8039
SELECT - CASE - COUNT ( DISTINCT - - NULLIF ( - + 23, 91 - - 98 - CAST ( - 65 AS INTEGER ) ) ) WHEN - 31 * + - SUM ( DISTINCT + 15 ) + CAST ( NULL AS INTEGER ) THEN + + 4 * - 80 WHEN + + 52 * 87 * 86 * - + 73 THEN NULL END
----
NULL

query I rowsort
SELECT DISTINCT - 22 + - 24 AS col0
----
-46

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

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8042
SELECT 33 + MAX( - - CAST( NULL AS DECIMAL ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-8042
SELECT 33 + MAX ( - - CAST ( NULL AS REAL ) )
----
NULL

query II rowsort
SELECT - 53 AS col2, 9 AS col1
----
-53
9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8044
SELECT DISTINCT - + CAST( 89 AS SIGNED ) + + COUNT( * ) AS col0
----
-88

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8045
SELECT ALL + + COUNT( * ) + + 46 + ( + COUNT( * ) ) * + 73 DIV + 89 + 39
----
86

skipif mysql # not compatible
query I rowsort label-8045
SELECT ALL + + COUNT ( * ) + + 46 + ( + COUNT ( * ) ) * + 73 / + 89 + 39
----
86

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8046
SELECT + 48 + CAST( NULL AS SIGNED ) - + 21 + 77 * - - 61
----
NULL

skipif mysql # not compatible
query I rowsort label-8046
SELECT + 48 + CAST ( NULL AS INTEGER ) - + 21 + 77 * - - 61
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-8047
SELECT 54 * - 21 * + 97 AS col0, 15 DIV - 84 * 41 AS col1
----
-109998
0

skipif mysql # not compatible
query II rowsort label-8047
SELECT 54 * - 21 * + 97 AS col0, 15 / - 84 * 41 AS col1
----
-109998
0

onlyif mysql # aggregate syntax: 
query II rowsort label-8048
SELECT DISTINCT + - MAX( - 38 ) * 39 AS col0, 56 + + COUNT( * ) AS col0
----
1482
57

skipif mysql # not compatible
query II rowsort label-8048
SELECT DISTINCT + - MAX ( - 38 ) * 39 AS col0, 56 + + COUNT ( * ) AS col0
----
1482
57

onlyif mysql # aggregate syntax: 
query II rowsort label-8049
SELECT + 38, - MAX( + 83 ) * - 42 + - - 91 + 88 + 54 AS col1
----
38
3719

skipif mysql # not compatible
query II rowsort label-8049
SELECT + 38, - MAX ( + 83 ) * - 42 + - - 91 + 88 + 54 AS col1
----
38
3719

query I rowsort
SELECT ALL - 49 + + + 69 AS col0
----
20

query I rowsort
SELECT DISTINCT + 95 + + 98 * - - 47
----
4701

query I rowsort
SELECT 50 * 9 + 40 col0
----
490

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

query I rowsort
SELECT ALL 24 * 10 AS col1
----
240

onlyif mysql # aggregate syntax: 
query I rowsort label-8055
SELECT COUNT( + 88 ) * 37 AS col1
----
37

skipif mysql # not compatible
query I rowsort label-8055
SELECT COUNT ( + 88 ) * 37 AS col1
----
37

query I rowsort
SELECT ALL 88 * - ( 6 ) AS col0
----
-528

query I rowsort
SELECT DISTINCT 23 * - - 38 AS col1
----
874

query II rowsort
SELECT DISTINCT 82 - + 7 AS col2, + 34 col0
----
75
34

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8059
SELECT 98 + + 91 + COUNT( * ) + - + ( + COUNT( * ) ) DIV ( - COUNT( * ) ) * - 38 * + 33 + + 7 * 61 * + + COUNT( * ) + - 64 + + 49 * 11
----
-162

skipif mysql # not compatible
query I rowsort label-8059
SELECT 98 + + 91 + COUNT ( * ) + - + ( + COUNT ( * ) ) / ( - COUNT ( * ) ) * - 38 * + 33 + + 7 * 61 * + + COUNT ( * ) + - 64 + + 49 * 11
----
-162

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8060
SELECT ALL NULLIF ( - 26, 93 DIV + 89 + + NULLIF ( COUNT( * ), 14 ) - + 59 DIV 36 ) DIV COUNT( * )
----
-26

skipif mysql # not compatible
query I rowsort label-8060
SELECT ALL NULLIF ( - 26, 93 / + 89 + + NULLIF ( COUNT ( * ), 14 ) - + 59 / 36 ) / COUNT ( * )
----
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-8061
SELECT NULLIF ( NULLIF ( - 43, + 69 + 44 * + COALESCE ( - 31, - 47 ) * - COUNT( * ) * - 75 ), - 51 ) + + - 70 AS col2
----
-113

skipif mysql # not compatible
query I rowsort label-8061
SELECT NULLIF ( NULLIF ( - 43, + 69 + 44 * + COALESCE ( - 31, - 47 ) * - COUNT ( * ) * - 75 ), - 51 ) + + - 70 AS col2
----
-113

query I rowsort
SELECT - 73 - - + 26 + 51 AS col1
----
4

query I rowsort
SELECT DISTINCT - NULLIF ( + 89, - 68 * + NULLIF ( 32, - 75 + + ( - - ( 91 ) ) ) ) + - 78 col0
----
-167

onlyif mysql # aggregate syntax: 
query II rowsort label-8064
SELECT ALL + - ( + 5 ) * CASE + 26 WHEN + 7 * 16 + - - 8 + - - 15 THEN NULL ELSE - 0 + 4 END * - ( 4 ) AS col1, - NULLIF ( - COUNT( * ), - + COUNT( * ) * - 78 )
----
80
1

skipif mysql # not compatible
query II rowsort label-8064
SELECT ALL + - ( + 5 ) * CASE + 26 WHEN + 7 * 16 + - - 8 + - - 15 THEN NULL ELSE - 0 + 4 END * - ( 4 ) AS col1, - NULLIF ( - COUNT ( * ), - + COUNT ( * ) * - 78 )
----
80
1

query I rowsort
SELECT ALL 0 + - 30 + 8 + + 88 * - - 11
----
946

query I rowsort
SELECT 23 * 97 * - + 48 AS col0
----
-107088

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

skipif mysql # not compatible
query I rowsort label-8067
SELECT ALL - - 59 + - - COUNT ( * ) AS col1
----
60

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

query I rowsort
SELECT DISTINCT + + 17 + 48 AS col2
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-8070
SELECT ALL + 27 - - 50 * - COUNT( * ) AS col2
----
-23

skipif mysql # not compatible
query I rowsort label-8070
SELECT ALL + 27 - - 50 * - COUNT ( * ) AS col2
----
-23

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

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

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

skipif mysql # not compatible
query I rowsort label-8072
SELECT ALL + + 75 / - 1
----
-75

onlyif mysql # DIV for integer division: 
query II rowsort label-8073
SELECT DISTINCT + 91 * + 51 * + 72 AS col2, 54 DIV - 93
----
334152
0

skipif mysql # not compatible
query II rowsort label-8073
SELECT DISTINCT + 91 * + 51 * + 72 AS col2, 54 / - 93
----
334152
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8074
SELECT COALESCE ( - COUNT( * ), 43 * + 32, 92 )
----
-1

skipif mysql # not compatible
query I rowsort label-8074
SELECT COALESCE ( - COUNT ( * ), 43 * + 32, 92 )
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8075
SELECT ( - 22 ) * 22 - - - CASE 5 WHEN + 8 - CASE 71 WHEN + + 33 THEN - + 18 WHEN + + 40 THEN - 55 WHEN + + COUNT( * ) * - - 90 / - 85 + + 80 * - 28 + + - 98 THEN + 73 + 80 END + CAST( 92 AS SIGNED ) / - 51 + - 81 * + COUNT( * ) THEN + 1 ELSE - 97 + + - 19 + - - 43 + + 25 * - + COUNT( * ) END + - + CAST( NULL AS SIGNED ) * 97, + 75 AS col1
----
NULL
75

skipif mysql # not compatible
query II rowsort label-8075
SELECT ( - 22 ) * 22 - - - CASE 5 WHEN + 8 - CASE 71 WHEN + + 33 THEN - + 18 WHEN + + 40 THEN - 55 WHEN + + COUNT ( * ) * - - 90 / - 85 + + 80 * - 28 + + - 98 THEN + 73 + 80 END + CAST ( 92 AS INTEGER ) / - 51 + - 81 * + COUNT ( * ) THEN + 1 ELSE - 97 + + - 19 + - - 43 + + 25 * - + COUNT ( * ) END + - + CAST ( NULL AS INTEGER ) * 97, + 75 AS col1
----
NULL
75

query I rowsort
SELECT CASE + 29 WHEN + 44 + - + 62 THEN - 98 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8077
SELECT - 64 * + COUNT( * ) - SUM( ALL + 5 ) col0
----
-69

skipif mysql # not compatible
query I rowsort label-8077
SELECT - 64 * + COUNT ( * ) - SUM ( ALL + 5 ) col0
----
-69

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query III rowsort label-8078
SELECT - NULLIF ( COALESCE ( + 88, - + COUNT( * ) ), 78 / - - 62 / - 34 ) * - COUNT( * ), CAST( + CAST( - 30 AS SIGNED ) AS SIGNED ) AS col1, - 19 * + 31 * 9 * 67 + + SUM( - 63 ) AS col0
----
88
-30
-355230

skipif mysql # not compatible
query III rowsort label-8078
SELECT - NULLIF ( COALESCE ( + 88, - + COUNT ( * ) ), 78 / - - 62 / - 34 ) * - COUNT ( * ), CAST ( + CAST ( - 30 AS INTEGER ) AS INTEGER ) AS col1, - 19 * + 31 * 9 * 67 + + SUM ( - 63 ) AS col0
----
88
-30
-355230

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

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

query I rowsort
SELECT + NULLIF ( - 51, + + 73 * - 39 + 54 / - 90 ) AS col2
----
-51

query I rowsort
SELECT - 75 + + 19
----
-56

query I rowsort
SELECT DISTINCT 82 * 30 + + + 33 * - - 83 AS col0
----
5199

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

skipif mysql # not compatible
query I rowsort label-8083
SELECT ALL + COUNT ( * ) * + 65 + 88 / 65 AS col0
----
66

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8084
SELECT DISTINCT - CASE - 95 WHEN + ( + COUNT( * ) ) * + - 36 - - 95 THEN NULL ELSE + 67 * - COUNT( * ) * + CAST( NULL AS SIGNED ) + 5 + 81 + + 79 END * + 27 + ( + + 74 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8084
SELECT DISTINCT - CASE - 95 WHEN + ( + COUNT ( * ) ) * + - 36 - - 95 THEN NULL ELSE + 67 * - COUNT ( * ) * + CAST ( NULL AS INTEGER ) + 5 + 81 + + 79 END * + 27 + ( + + 74 )
----
NULL

query I rowsort
SELECT DISTINCT - + 99 * - 30 + 43
----
3013

query I rowsort
SELECT ALL + 20 * - - 63 + + - 84 * + + 22
----
-588

query I rowsort
SELECT + - 27 * + 71 * - - 69 AS col1
----
-132273

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-8090
SELECT ALL COUNT( * ) + - + 56 + 96
----
41

skipif mysql # not compatible
query I rowsort label-8090
SELECT ALL COUNT ( * ) + - + 56 + 96
----
41

query I rowsort
SELECT + 3 - 94 col1
----
-91

query II rowsort
SELECT 93 AS col0, - 54 - 44 * + 98 + + - 69 AS col1
----
93
-4435

query I rowsort
SELECT + 17 - + NULLIF ( + + 57, 41 ) AS col0
----
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-8094
SELECT DISTINCT CASE + - ( + 1 ) WHEN + + COALESCE ( + - 84, 69 ) THEN + 97 + - 62 WHEN MIN( ALL + 35 ) THEN NULL WHEN 62 + + 91 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-8094
SELECT DISTINCT CASE + - ( + 1 ) WHEN + + COALESCE ( + - 84, 69 ) THEN + 97 + - 62 WHEN MIN ( ALL + 35 ) THEN NULL WHEN 62 + + 91 THEN NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8095
SELECT ALL - 37 - SUM( + 34 ) AS col1
----
-71

skipif mysql # not compatible
query I rowsort label-8095
SELECT ALL - 37 - SUM ( + 34 ) AS col1
----
-71

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8096
SELECT DISTINCT COALESCE ( 18, - 98 ) - + ( + - 24 ) col1, MAX( - - CAST( NULL AS SIGNED ) ) - - COUNT( * ) * COUNT( * ) AS col0
----
42
NULL

skipif mysql # not compatible
query II rowsort label-8096
SELECT DISTINCT COALESCE ( 18, - 98 ) - + ( + - 24 ) col1, MAX ( - - CAST ( NULL AS INTEGER ) ) - - COUNT ( * ) * COUNT ( * ) AS col0
----
42
NULL

query I rowsort
SELECT + ( - 9 ) * 87
----
-783

query I rowsort
SELECT + - 51 - + - COALESCE ( + 68, ( 81 ) * + - 69 + 35, - 11 + + 38 ) AS col1
----
17

query I rowsort
SELECT + - 82 + + 50 * + 73 * + 46 * 70
----
11752918

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

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

query I rowsort
SELECT + + 7 + - 13 * + + 97 * - 11
----
13878

onlyif mysql # aggregate syntax: 
query II rowsort label-8102
SELECT + ( 33 ) + - 16 * - + COUNT( * ) col1, + 69 - + 11 AS col1
----
49
58

skipif mysql # not compatible
query II rowsort label-8102
SELECT + ( 33 ) + - 16 * - + COUNT ( * ) col1, + 69 - + 11 AS col1
----
49
58

query II rowsort
SELECT - 95 * 67 AS col2, + 37
----
-6365
37

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

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

query I rowsort
SELECT DISTINCT 12 * - 75 AS col1
----
-900

onlyif mysql # aggregate syntax: 
query II rowsort label-8106
SELECT DISTINCT + ( - 21 ) AS col1, - 67 * + MIN( + 61 ) * + + 54 + + 17
----
-21
-220681

skipif mysql # not compatible
query II rowsort label-8106
SELECT DISTINCT + ( - 21 ) AS col1, - 67 * + MIN ( + 61 ) * + + 54 + + 17
----
-21
-220681

query I rowsort
SELECT - 59 * 94 * 93 * + ( 4 )
----
-2063112

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8108
SELECT 51 DIV + NULLIF ( 46, 92 ) * + COUNT( * ) + - 63 * + + MAX( - 50 ) + - 92 AS col2
----
3059

skipif mysql # not compatible
query I rowsort label-8108
SELECT 51 / + NULLIF ( 46, 92 ) * + COUNT ( * ) + - 63 * + + MAX ( - 50 ) + - 92 AS col2
----
3059

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-8110
SELECT - 11 + 14 DIV - + 86
----
-11

skipif mysql # not compatible
query I rowsort label-8110
SELECT - 11 + 14 / - + 86
----
-11

onlyif mysql # DIV for integer division: 
query I rowsort label-8111
SELECT - 23 DIV + 58
----
0

skipif mysql # not compatible
query I rowsort label-8111
SELECT - 23 / + 58
----
0

query I rowsort
SELECT - 29 * - - 54
----
-1566

query II rowsort
SELECT + 58, - 84 + ( + 82 ) + + 65 * + 7 AS col0
----
58
453

query I rowsort
SELECT DISTINCT + CASE - 96 WHEN + 44 THEN NULL ELSE - 81 END AS col2
----
-81

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8115
SELECT DISTINCT COUNT( * ) DIV + - 37 + ( - 74 ) + + 36 + - 98 * 91
----
-8956

skipif mysql # not compatible
query I rowsort label-8115
SELECT DISTINCT COUNT ( * ) / + - 37 + ( - 74 ) + + 36 + - 98 * 91
----
-8956

query I rowsort
SELECT ( - + CASE 93 WHEN 36 THEN + - 22 END )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8117
SELECT ALL + COUNT( * ) * NULLIF ( 5, - 15 * + 89 ) * - 8 + 58, 53 * - COUNT( * ) * + NULLIF ( MAX( 87 ), 41 * + 92 + 68 * + 88 ) - + + COUNT( ALL 30 ) - + 60 AS col0
----
18
-4672

skipif mysql # not compatible
query II rowsort label-8117
SELECT ALL + COUNT ( * ) * NULLIF ( 5, - 15 * + 89 ) * - 8 + 58, 53 * - COUNT ( * ) * + NULLIF ( MAX ( 87 ), 41 * + 92 + 68 * + 88 ) - + + COUNT ( ALL 30 ) - + 60 AS col0
----
18
-4672

query I rowsort
SELECT DISTINCT + + 51 * + - 23 * - 57 * - 84 + + 18
----
-5616306

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-8119
SELECT ALL + + 95 AS col2, - 56 DIV - + CAST( - - AVG ( ALL + - 5 ) AS SIGNED )
----
95
-11

skipif mysql # not compatible
query II rowsort label-8119
SELECT ALL + + 95 AS col2, - 56 / - + CAST ( - - AVG ( ALL + - 5 ) AS INTEGER )
----
95
-11

query II rowsort
SELECT 9, 63 + - 70 * 46 AS col2
----
9
-3157

query II rowsort
SELECT - 99 AS col2, 71
----
-99
71

query I rowsort
SELECT ALL - 37 * + + 79 + - 86
----
-3009

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

onlyif mysql # aggregate syntax: 
query I rowsort label-8124
SELECT + + COALESCE ( + MAX( - - 42 ), - + 41 ) - + 65 + NULLIF ( - - COUNT( * ), + NULLIF ( - 68, + 28 ) ) AS col1
----
-22

skipif mysql # not compatible
query I rowsort label-8124
SELECT + + COALESCE ( + MAX ( - - 42 ), - + 41 ) - + 65 + NULLIF ( - - COUNT ( * ), + NULLIF ( - 68, + 28 ) ) AS col1
----
-22

query I rowsort
SELECT DISTINCT + 10 * + + 53 AS col0
----
530

query I rowsort
SELECT 46 * 80 + 58 AS col0
----
3738

query I rowsort
SELECT ALL - 41 - + 3 - + - 0 + - 34 + - + 70
----
-148

query I rowsort
SELECT 39 * + 14 + + 52
----
598

onlyif mysql # aggregate syntax: 
query I rowsort label-8129
SELECT ALL COALESCE ( - 44, - + COUNT( * ) )
----
-44

skipif mysql # not compatible
query I rowsort label-8129
SELECT ALL COALESCE ( - 44, - + COUNT ( * ) )
----
-44

query I rowsort
SELECT ALL + 16 * 99 + - + 22
----
1562

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8131
SELECT DISTINCT - 60, 93 * - CAST( + 27 AS SIGNED ) AS col0
----
-60
-2511

skipif mysql # not compatible
query II rowsort label-8131
SELECT DISTINCT - 60, 93 * - CAST ( + 27 AS INTEGER ) AS col0
----
-60
-2511

onlyif mysql # aggregate syntax: 
query I rowsort label-8132
SELECT 19 * 19 * MAX( DISTINCT 14 ) * - COALESCE ( + - ( - + 31 ), - 25 * 91 - 58 - + - 11 )
----
-156674

skipif mysql # not compatible
query I rowsort label-8132
SELECT 19 * 19 * MAX ( DISTINCT 14 ) * - COALESCE ( + - ( - + 31 ), - 25 * 91 - 58 - + - 11 )
----
-156674

onlyif mysql # aggregate syntax: 
query I rowsort label-8133
SELECT - 91 * - NULLIF ( - COUNT( * ), + 4 * + COALESCE ( - + 37, 86 ) * + - AVG ( 56 ) + SUM( 46 ) ) col0
----
-91

skipif mysql # not compatible
query I rowsort label-8133
SELECT - 91 * - NULLIF ( - COUNT ( * ), + 4 * + COALESCE ( - + 37, 86 ) * + - AVG ( 56 ) + SUM ( 46 ) ) col0
----
-91

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

skipif mysql # not compatible
query I rowsort label-8134
SELECT ALL 1 / 84 / + COUNT ( * )
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8135
SELECT DISTINCT 30 DIV - - 34
----
0

skipif mysql # not compatible
query I rowsort label-8135
SELECT DISTINCT 30 / - - 34
----
0

query I rowsort
SELECT 95 * + 3 AS col1
----
285

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8137
SELECT ALL 65 DIV - ( - SUM( 67 ) )
----
0

skipif mysql # not compatible
query I rowsort label-8137
SELECT ALL 65 / - ( - SUM ( 67 ) )
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8138
SELECT ALL COUNT( * ) + - NULLIF ( + + COUNT( * ), + 78 - + + 0 * + + COUNT( * ) ) DIV - + 57 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-8138
SELECT ALL COUNT ( * ) + - NULLIF ( + + COUNT ( * ), + 78 - + + 0 * + + COUNT ( * ) ) / - + 57 AS col2
----
1

query I rowsort
SELECT ( - 25 ) * 55 * + 32
----
-44000

onlyif mysql # aggregate syntax: 
query I rowsort label-8140
SELECT 47 * + - 20 + + 81 + - COUNT( + ( 81 ) ) - ( NULLIF ( + CASE + + 22 WHEN + 91 THEN 47 ELSE + 68 END, - + 31 ) ) * + COUNT( * ) * ( + 53 ) * COUNT( * ) AS col0
----
-4464

skipif mysql # not compatible
query I rowsort label-8140
SELECT 47 * + - 20 + + 81 + - COUNT ( + ( 81 ) ) - ( NULLIF ( + CASE + + 22 WHEN + 91 THEN 47 ELSE + 68 END, - + 31 ) ) * + COUNT ( * ) * ( + 53 ) * COUNT ( * ) AS col0
----
-4464

query I rowsort
SELECT - CASE - 0 WHEN + - 6 - 64 THEN 93 END * 23 - + 52
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8142
SELECT ALL 58 + + ( - 15 ) + 65 + + + MIN( ALL 53 ) - + 90 + - + COUNT( * ) * 23 * 60 * 24 DIV - 28
----
1253

skipif mysql # not compatible
query I rowsort label-8142
SELECT ALL 58 + + ( - 15 ) + 65 + + + MIN ( ALL 53 ) - + 90 + - + COUNT ( * ) * 23 * 60 * 24 / - 28
----
1253

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

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

query II rowsort
SELECT ALL + 57 + - - 70 AS col0, 81
----
127
81

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

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

query I rowsort
SELECT DISTINCT 10 + ( + - 4 ) + - - 85
----
91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8147
SELECT 46 * - 31 * + + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8147
SELECT 46 * - 31 * + + CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8148
SELECT + SUM( + + 12 ) AS col2
----
12

skipif mysql # not compatible
query I rowsort label-8148
SELECT + SUM ( + + 12 ) AS col2
----
12

query I rowsort
SELECT 5 + 83 + - ( - + 19 ) AS col1
----
107

onlyif mysql # aggregate syntax: 
query I rowsort label-8150
SELECT ALL - NULLIF ( + 66, - COUNT( * ) ) + + - 79 AS col2
----
-145

skipif mysql # not compatible
query I rowsort label-8150
SELECT ALL - NULLIF ( + 66, - COUNT ( * ) ) + + - 79 AS col2
----
-145

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-8153
SELECT 8 DIV - NULLIF ( - - 68, + - ( MIN( DISTINCT + ( + 78 ) ) ) DIV CAST( + + ( MIN( DISTINCT - - 76 ) ) AS SIGNED ) ) + - + 67 + + 66 + - 35 * - 4 AS col0, + 15 * + 15 * - 6 col2
----
139
-1350

skipif mysql # not compatible
query II rowsort label-8153
SELECT 8 / - NULLIF ( - - 68, + - ( MIN ( DISTINCT + ( + 78 ) ) ) / CAST ( + + ( MIN ( DISTINCT - - 76 ) ) AS INTEGER ) ) + - + 67 + + 66 + - 35 * - 4 AS col0, + 15 * + 15 * - 6 col2
----
139
-1350

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-8155
SELECT DISTINCT - NULLIF ( NULLIF ( + 75, + - 76 * + COUNT( * ) ), + - 85 ) col0
----
-75

skipif mysql # not compatible
query I rowsort label-8155
SELECT DISTINCT - NULLIF ( NULLIF ( + 75, + - 76 * + COUNT ( * ) ), + - 85 ) col0
----
-75

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

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

query I rowsort
SELECT - 92 * + 2 + + + 5
----
-179

onlyif mysql # aggregate syntax: 
query I rowsort label-8158
SELECT + 1 - - + 97 + - - 41 * - MAX( ALL + 37 )
----
-1419

skipif mysql # not compatible
query I rowsort label-8158
SELECT + 1 - - + 97 + - - 41 * - MAX ( ALL + 37 )
----
-1419

onlyif mysql # aggregate syntax: 
query II rowsort label-8159
SELECT - + SUM( ALL - 6 ) AS col1, 13 AS col1
----
6
13

skipif mysql # not compatible
query II rowsort label-8159
SELECT - + SUM ( ALL - 6 ) AS col1, 13 AS col1
----
6
13

query I rowsort
SELECT + ( - - ( + ( - 39 ) ) ) - 8 + - 22
----
-69

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8161
SELECT ALL - NULLIF ( - 65, 98 ) * + 6 * - 75 + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8161
SELECT ALL - NULLIF ( - 65, 98 ) * + 6 * - 75 + + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT 86 + - - ( NULLIF ( 2, 81 ) ) AS col0
----
88

query I rowsort
SELECT 92 * - + 68 AS col0
----
-6256

query II rowsort
SELECT - 77 AS col2, - 79
----
-77
-79

query I rowsort
SELECT 5 * - 27 AS col2
----
-135

query I rowsort
SELECT ALL - 60 + - 45 AS col2
----
-105

query I rowsort
SELECT ALL COALESCE ( 17, 40 ) + + 2
----
19

onlyif mysql # DIV for integer division: 
query II rowsort label-8168
SELECT - 91 AS col2, - 95 - 42 + 69 * - 70 DIV + 1 + + + 27 * 32
----
-91
-4103

skipif mysql # not compatible
query II rowsort label-8168
SELECT - 91 AS col2, - 95 - 42 + 69 * - 70 / + 1 + + + 27 * 32
----
-91
-4103

query II rowsort
SELECT 74 AS col0, 54 + 44 + - 69 * 37 + - + 22 AS col1
----
74
-2477

onlyif mysql # aggregate syntax: 
query I rowsort label-8170
SELECT COUNT( * ) + 51 - 74 * - 34 * + 50 * + COUNT( * ) + + COUNT( * ) AS col1
----
125853

skipif mysql # not compatible
query I rowsort label-8170
SELECT COUNT ( * ) + 51 - 74 * - 34 * + 50 * + COUNT ( * ) + + COUNT ( * ) AS col1
----
125853

query I rowsort
SELECT 1 + + + 75
----
76

query I rowsort
SELECT 11 + - 12 + - 0 col1
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8173
SELECT DISTINCT COALESCE ( - ( MAX( DISTINCT + 93 ) ), COUNT( + 46 ) DIV - + 81 ) + + 79 + - 50 + 81 AS col2
----
17

skipif mysql # not compatible
query I rowsort label-8173
SELECT DISTINCT COALESCE ( - ( MAX ( DISTINCT + 93 ) ), COUNT ( + 46 ) / - + 81 ) + + 79 + - 50 + 81 AS col2
----
17

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

skipif mysql # not compatible
query I rowsort label-8174
SELECT COUNT ( * ) + + + 80 AS col2
----
81

query II rowsort
SELECT DISTINCT - 59, - 29 * - 65 AS col1
----
-59
1885

query I rowsort
SELECT ALL 20 * + + 83 + 11 + 11
----
1682

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8177
SELECT DISTINCT - 5 * + + COUNT( DISTINCT + 7 ) * 83 + + 78 + - 64 - - CAST( NULL AS SIGNED ) + - 60
----
NULL

skipif mysql # not compatible
query I rowsort label-8177
SELECT DISTINCT - 5 * + + COUNT ( DISTINCT + 7 ) * 83 + + 78 + - 64 - - CAST ( NULL AS INTEGER ) + - 60
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8178
SELECT DISTINCT + COUNT( * ) * + 88 + + 0 * + 33 AS col2
----
88

skipif mysql # not compatible
query I rowsort label-8178
SELECT DISTINCT + COUNT ( * ) * + 88 + + 0 * + 33 AS col2
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-8179
SELECT + MIN( 85 ) AS col2
----
85

skipif mysql # not compatible
query I rowsort label-8179
SELECT + MIN ( 85 ) AS col2
----
85

query I rowsort
SELECT ALL 4 * - 7
----
-28

query II rowsort
SELECT 69, 16 * + 96 * 11 AS col1
----
69
16896

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8183
SELECT DISTINCT - 43 * - 35 / - - 79 / - - CAST( NULL AS SIGNED ) + - + 65 + + ( 65 ) * - + 10 - COALESCE ( - 63, - 10 * 2 * + COALESCE ( - - ( 90 ), ( 35 ) ) / - COALESCE ( 79, - 81 * - COALESCE ( + + 39, + 47 ) ) - + MIN( DISTINCT - 92 ), + 92 ) + COALESCE ( - 72, + 23, 28 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8183
SELECT DISTINCT - 43 * - 35 / - - 79 / - - CAST ( NULL AS INTEGER ) + - + 65 + + ( 65 ) * - + 10 - COALESCE ( - 63, - 10 * 2 * + COALESCE ( - - ( 90 ), ( 35 ) ) / - COALESCE ( 79, - 81 * - COALESCE ( + + 39, + 47 ) ) - + MIN ( DISTINCT - 92 ), + 92 ) + COALESCE ( - 72, + 23, 28 )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8184
SELECT ALL - 60 DIV - + 80 * - 97 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-8184
SELECT ALL - 60 / - + 80 * - 97 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8185
SELECT - COUNT( * ) * - - 10 * 12 + 84 + + 54
----
18

skipif mysql # not compatible
query I rowsort label-8185
SELECT - COUNT ( * ) * - - 10 * 12 + 84 + + 54
----
18

query II rowsort
SELECT - NULLIF ( 46, - - 66 ) AS col1, 70
----
-46
70

onlyif mysql # aggregate syntax: 
query I rowsort label-8187
SELECT 64 * - 3 + + ( - - COUNT( * ) ) + 22
----
-169

skipif mysql # not compatible
query I rowsort label-8187
SELECT 64 * - 3 + + ( - - COUNT ( * ) ) + 22
----
-169

query I rowsort
SELECT - 99 + 77 AS col1
----
-22

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8189
SELECT + - 27 * + COUNT( * ) + - 39 + + 86 * - 73 * COALESCE ( - - 72, - COUNT( * ) * + 79 + + 6 - - + 69 + - 87 * - 36 + - 91, - CAST( NULL AS SIGNED ) + - 61 * + ( + - 15 ) ) * + - CAST( NULL AS SIGNED ) + + 33 / + 93 + - 78 / + AVG ( ALL + 5 ) + - 26 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8189
SELECT + - 27 * + COUNT ( * ) + - 39 + + 86 * - 73 * COALESCE ( - - 72, - COUNT ( * ) * + 79 + + 6 - - + 69 + - 87 * - 36 + - 91, - CAST ( NULL AS INTEGER ) + - 61 * + ( + - 15 ) ) * + - CAST ( NULL AS INTEGER ) + + 33 / + 93 + - 78 / + AVG ( ALL + 5 ) + - 26 AS col0
----
NULL

query II rowsort
SELECT DISTINCT - ( + 92 ) * + 68 AS col2, - 41
----
-6256
-41

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

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

query I rowsort
SELECT DISTINCT - COALESCE ( + 65, ( + 82 ) ) + + + 89
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-8193
SELECT ALL MIN( - + 34 ) col0
----
-34

skipif mysql # not compatible
query I rowsort label-8193
SELECT ALL MIN ( - + 34 ) col0
----
-34

query I rowsort
SELECT - 7 * + 91
----
-637

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8195
SELECT - 12 + + 48 DIV 77 + - ( + COUNT( * ) ) AS col1, 24 + - 83
----
-13
-59

skipif mysql # not compatible
query II rowsort label-8195
SELECT - 12 + + 48 / 77 + - ( + COUNT ( * ) ) AS col1, 24 + - 83
----
-13
-59

query I rowsort
SELECT - 89 + 21 AS col0
----
-68

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8198
SELECT ALL - COALESCE ( - - 96, - 58, - 12 * CAST( + + 88 AS SIGNED ) ) + NULLIF ( - 2, + 95 * 3 )
----
-98

skipif mysql # not compatible
query I rowsort label-8198
SELECT ALL - COALESCE ( - - 96, - 58, - 12 * CAST ( + + 88 AS INTEGER ) ) + NULLIF ( - 2, + 95 * 3 )
----
-98

query I rowsort
SELECT - 76 * - - 66
----
-5016

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

skipif mysql # not compatible
query I rowsort label-8200
SELECT DISTINCT MIN ( - - 28 )
----
28

query I rowsort
SELECT DISTINCT CASE - 60 WHEN + 99 THEN NULL WHEN + - 66 THEN - 73 ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8202
SELECT ALL COALESCE ( + CAST( - 98 AS SIGNED ), - - 96 * - 24 - 61 ) AS col1
----
-98

skipif mysql # not compatible
query I rowsort label-8202
SELECT ALL COALESCE ( + CAST ( - 98 AS INTEGER ), - - 96 * - 24 - 61 ) AS col1
----
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-8203
SELECT ALL + 29 + - COALESCE ( - 87, + COUNT( * ) + - 81 * - 24 - 43 ) - - - 61
----
55

skipif mysql # not compatible
query I rowsort label-8203
SELECT ALL + 29 + - COALESCE ( - 87, + COUNT ( * ) + - 81 * - 24 - 43 ) - - - 61
----
55

query I rowsort
SELECT - 46 * + - 8 * - 4 AS col0
----
-1472

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8206
SELECT + 40 + 65 + 56 * - 4 + - CAST( NULL AS SIGNED ) - - 74
----
NULL

skipif mysql # not compatible
query I rowsort label-8206
SELECT + 40 + 65 + 56 * - 4 + - CAST ( NULL AS INTEGER ) - - 74
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8207
SELECT + MAX( ALL - 50 ) DIV NULLIF ( - 96, + - 44 ) * + - 94
----
0

skipif mysql # not compatible
query I rowsort label-8207
SELECT + MAX ( ALL - 50 ) / NULLIF ( - 96, + - 44 ) * + - 94
----
0

query I rowsort
SELECT + 9 * + 44 + - - 0
----
396

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-8210
SELECT - COUNT( * ) * + - 77 - - ( + MAX( DISTINCT 82 ) ) + - COUNT( * )
----
158

skipif mysql # not compatible
query I rowsort label-8210
SELECT - COUNT ( * ) * + - 77 - - ( + MAX ( DISTINCT 82 ) ) + - COUNT ( * )
----
158

onlyif mysql # aggregate syntax: 
query II rowsort label-8211
SELECT ALL + - NULLIF ( 35, - + 90 - + 86 + 55 ) col0, + MIN( DISTINCT - + 3 )
----
-35
-3

skipif mysql # not compatible
query II rowsort label-8211
SELECT ALL + - NULLIF ( 35, - + 90 - + 86 + 55 ) col0, + MIN ( DISTINCT - + 3 )
----
-35
-3

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8213
SELECT ALL + + NULLIF ( + COUNT( * ), - COUNT( * ) * 85 ) / + CAST( NULL AS SIGNED ) + - + 1 - - CASE + 90 WHEN 55 THEN NULL WHEN - 93 / + - 73 THEN 33 / - - 36 END * - 81 col2, 9 AS col2
----
NULL
9

skipif mysql # not compatible
query II rowsort label-8213
SELECT ALL + + NULLIF ( + COUNT ( * ), - COUNT ( * ) * 85 ) / + CAST ( NULL AS INTEGER ) + - + 1 - - CASE + 90 WHEN 55 THEN NULL WHEN - 93 / + - 73 THEN 33 / - - 36 END * - 81 col2, 9 AS col2
----
NULL
9

onlyif mysql # DIV for integer division: 
query II rowsort label-8214
SELECT + + ( + 46 ) DIV 95 * + 77 AS col0, 59
----
0
59

skipif mysql # not compatible
query II rowsort label-8214
SELECT + + ( + 46 ) / 95 * + 77 AS col0, 59
----
0
59

onlyif mysql # aggregate syntax: 
query II rowsort label-8215
SELECT ALL - 73 * + - COUNT( * ) AS col0, COUNT( - + 24 ) + + 33
----
73
34

skipif mysql # not compatible
query II rowsort label-8215
SELECT ALL - 73 * + - COUNT ( * ) AS col0, COUNT ( - + 24 ) + + 33
----
73
34

query I rowsort
SELECT + - 68 + + - 41 + + + 72 * 41 AS col1
----
2843

query I rowsort
SELECT + - 74 * 89 + + - 29 - - 58 + - + 39 + + 72 AS col1
----
-6524

query I rowsort
SELECT ALL - 37 * + - 9 + + 8
----
341

onlyif mysql # aggregate syntax: 
query I rowsort label-8219
SELECT MIN( - + COALESCE ( + - ( 70 ), - 64 ) ) * - 3 + 52
----
-158

skipif mysql # not compatible
query I rowsort label-8219
SELECT MIN ( - + COALESCE ( + - ( 70 ), - 64 ) ) * - 3 + 52
----
-158

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8220
SELECT ALL + 59 * NULLIF ( + 14, + 38 ) * - + CAST( NULL AS SIGNED ) + 12 + - NULLIF ( + - 91, + 55 - - COUNT( * ) * + 85 * - 3 ) + COALESCE ( + 72, 12 ) * - 64 * + AVG ( - + 48 ) + + + ( - + 38 ) * 31 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8220
SELECT ALL + 59 * NULLIF ( + 14, + 38 ) * - + CAST ( NULL AS INTEGER ) + 12 + - NULLIF ( + - 91, + 55 - - COUNT ( * ) * + 85 * - 3 ) + COALESCE ( + 72, 12 ) * - 64 * + AVG ( - + 48 ) + + + ( - + 38 ) * 31 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8221
SELECT ALL + MIN( ALL + - 39 ) AS col0
----
-39

skipif mysql # not compatible
query I rowsort label-8221
SELECT ALL + MIN ( ALL + - 39 ) AS col0
----
-39

query II rowsort
SELECT ALL + 8 * + - 61 * + + 44 + + - 16, 86 col1
----
-21488
86

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8224
SELECT CASE MIN( DISTINCT + 21 ) WHEN + CAST( + CAST( - 97 AS SIGNED ) AS DECIMAL ) THEN - + 16 + - 81 ELSE - 56 END
----
-56

skipif mysql # not compatible
query I rowsort label-8224
SELECT CASE MIN ( DISTINCT + 21 ) WHEN + CAST ( + CAST ( - 97 AS INTEGER ) AS REAL ) THEN - + 16 + - 81 ELSE - 56 END
----
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-8225
SELECT ALL COUNT( * ) * - 75 + - 8 * - - 52
----
-491

skipif mysql # not compatible
query I rowsort label-8225
SELECT ALL COUNT ( * ) * - 75 + - 8 * - - 52
----
-491

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

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

query I rowsort
SELECT + ( - - 43 ) + + 46
----
89

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

onlyif mysql # aggregate syntax: 
query I rowsort label-8229
SELECT DISTINCT NULLIF ( + 93, + 96 * - 19 * + COUNT( * ) * - 56 * COUNT( * ) * - + 20 ) * - 93 * - 58 * 60 + ( + COUNT( * ) ) AS col2
----
30098521

skipif mysql # not compatible
query I rowsort label-8229
SELECT DISTINCT NULLIF ( + 93, + 96 * - 19 * + COUNT ( * ) * - 56 * COUNT ( * ) * - + 20 ) * - 93 * - 58 * 60 + ( + COUNT ( * ) ) AS col2
----
30098521

query I rowsort
SELECT ALL + 93 * 80 + + + 71
----
7511

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8231
SELECT 24 * 75 - - + 88 + + ( + MAX( - 14 ) ) DIV - 42 * - 24 AS col1
----
1888

skipif mysql # not compatible
query I rowsort label-8231
SELECT 24 * 75 - - + 88 + + ( + MAX ( - 14 ) ) / - 42 * - 24 AS col1
----
1888

onlyif mysql # aggregate syntax: 
query I rowsort label-8232
SELECT + 77 + - NULLIF ( - 40, - COUNT( * ) )
----
117

skipif mysql # not compatible
query I rowsort label-8232
SELECT + 77 + - NULLIF ( - 40, - COUNT ( * ) )
----
117

onlyif mysql # aggregate syntax: 
query II rowsort label-8233
SELECT ALL MAX( DISTINCT + 45 ) + - - 16 AS col0, - 48 * + ( + 43 )
----
61
-2064

skipif mysql # not compatible
query II rowsort label-8233
SELECT ALL MAX ( DISTINCT + 45 ) + - - 16 AS col0, - 48 * + ( + 43 )
----
61
-2064

onlyif mysql # aggregate syntax: 
query II rowsort label-8234
SELECT DISTINCT NULLIF ( ( 44 ), - 36 ) * + 3, + COUNT( * ) AS col0
----
132
1

skipif mysql # not compatible
query II rowsort label-8234
SELECT DISTINCT NULLIF ( ( 44 ), - 36 ) * + 3, + COUNT ( * ) AS col0
----
132
1

query I rowsort
SELECT ALL - ( - - ( + 71 ) ) + - 56
----
-127

onlyif mysql # aggregate syntax: 
query I rowsort label-8236
SELECT DISTINCT MIN( 80 ) - + 85 + + 34 AS col2
----
29

skipif mysql # not compatible
query I rowsort label-8236
SELECT DISTINCT MIN ( 80 ) - + 85 + + 34 AS col2
----
29

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8237
SELECT - 23 - - COALESCE ( CAST( 58 AS SIGNED ), + - 5 * + - 33, 2 ) * + 70, - 78 AS col1
----
4037
-78

skipif mysql # not compatible
query II rowsort label-8237
SELECT - 23 - - COALESCE ( CAST ( 58 AS INTEGER ), + - 5 * + - 33, 2 ) * + 70, - 78 AS col1
----
4037
-78

query II rowsort
SELECT ALL CASE 52 WHEN + 88 * - 12 THEN - 88 END AS col0, - 87
----
NULL
-87

query I rowsort
SELECT + 93 + + 44 AS col2
----
137

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

onlyif mysql # aggregate syntax: 
query I rowsort label-8241
SELECT - MAX( - 99 ) + - - 60 * + 54 - + - 58 AS col1
----
3397

skipif mysql # not compatible
query I rowsort label-8241
SELECT - MAX ( - 99 ) + - - 60 * + 54 - + - 58 AS col1
----
3397

onlyif mysql # aggregate syntax: 
query I rowsort label-8242
SELECT - 87 + + - COUNT( * ) AS col2
----
-88

skipif mysql # not compatible
query I rowsort label-8242
SELECT - 87 + + - COUNT ( * ) AS col2
----
-88

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

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

query II rowsort
SELECT 79 AS col1, 44
----
79
44

query I rowsort
SELECT 62 * - 58 AS col0
----
-3596

query I rowsort
SELECT - 1 * - ( - 12 ) AS col2
----
-12

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8248
SELECT ALL - + COUNT( + 59 ) + - 14 * - + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-8248
SELECT ALL - + COUNT ( + 59 ) + - 14 * - + CAST ( NULL AS REAL )
----
NULL

query II rowsort
SELECT + + 98, 75 AS col2
----
98
75

onlyif mysql # aggregate syntax: 
query I rowsort label-8250
SELECT + + COUNT( * ) * + 99 + + ( + 79 ) AS col0
----
178

skipif mysql # not compatible
query I rowsort label-8250
SELECT + + COUNT ( * ) * + 99 + + ( + 79 ) AS col0
----
178

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

onlyif mysql # aggregate syntax: 
query I rowsort label-8252
SELECT DISTINCT - + 32 + - ( - COUNT( * ) ) + - 88 + 59 * + + MAX( 87 ) col1
----
5014

skipif mysql # not compatible
query I rowsort label-8252
SELECT DISTINCT - + 32 + - ( - COUNT ( * ) ) + - 88 + 59 * + + MAX ( 87 ) col1
----
5014

onlyif mysql # aggregate syntax: 
query I rowsort label-8253
SELECT ALL + SUM( DISTINCT + 65 ) + 16 * + 62
----
1057

skipif mysql # not compatible
query I rowsort label-8253
SELECT ALL + SUM ( DISTINCT + 65 ) + 16 * + 62
----
1057

query I rowsort
SELECT ALL - 17 * + 91
----
-1547

onlyif mysql # aggregate syntax: 
query I rowsort label-8255
SELECT ALL - - 82 + 81 + - - 31 * + + COUNT( * )
----
194

skipif mysql # not compatible
query I rowsort label-8255
SELECT ALL - - 82 + 81 + - - 31 * + + COUNT ( * )
----
194

onlyif mysql # aggregate syntax: 
query I rowsort label-8256
SELECT - - 33 * - MAX( + 42 ) + + ( + 55 )
----
-1331

skipif mysql # not compatible
query I rowsort label-8256
SELECT - - 33 * - MAX ( + 42 ) + + ( + 55 )
----
-1331

query II rowsort
SELECT - 76 AS col2, 7 AS col0
----
-76
7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8258
SELECT - 90 * ( - + CAST( + 88 AS SIGNED ) ) + + CAST( NULL AS DECIMAL ) * CAST( NULL AS SIGNED ) * + COALESCE ( - 62, + 78 + + - 62 + + 26 * + SUM( ALL - + 35 ) + - 68 + - 89 + - 41 + + - CASE - 37 WHEN - + 26 THEN + COUNT( * ) WHEN - COALESCE ( - + 36, + 23 * + 88 / - NULLIF ( 27, + COUNT( * ) * + 31 ) + - + 27 * - - 67 + CAST( NULL AS SIGNED ) + + 27, - 66 ) * 5 THEN 18 END + 15, + 5 / + 30 ) * - 48 * SUM( + 31 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8258
SELECT - 90 * ( - + CAST ( + 88 AS INTEGER ) ) + + CAST ( NULL AS REAL ) * CAST ( NULL AS INTEGER ) * + COALESCE ( - 62, + 78 + + - 62 + + 26 * + SUM ( ALL - + 35 ) + - 68 + - 89 + - 41 + + - CASE - 37 WHEN - + 26 THEN + COUNT ( * ) WHEN - COALESCE ( - + 36, + 23 * + 88 / - NULLIF ( 27, + COUNT ( * ) * + 31 ) + - + 27 * - - 67 + CAST ( NULL AS INTEGER ) + + 27, - 66 ) * 5 THEN 18 END + 15, + 5 / + 30 ) * - 48 * SUM ( + 31 ) AS col0
----
NULL

query I rowsort
SELECT 92 + - + 13 + + 43 AS col2
----
122

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

onlyif mysql # aggregate syntax: 
query II rowsort label-8261
SELECT ALL COUNT( * ) * 67, + 20 AS col0
----
67
20

skipif mysql # not compatible
query II rowsort label-8261
SELECT ALL COUNT ( * ) * 67, + 20 AS col0
----
67
20

onlyif mysql # aggregate syntax: 
query II rowsort label-8262
SELECT DISTINCT 35 AS col0, 4 + COUNT( * )
----
35
5

skipif mysql # not compatible
query II rowsort label-8262
SELECT DISTINCT 35 AS col0, 4 + COUNT ( * )
----
35
5

query I rowsort
SELECT ALL CASE 97 WHEN + 98 THEN NULL WHEN 62 THEN - 94 * + 54 * + 68 WHEN - 93 * 31 + - + 46 * + + 1 THEN - 92 END - - 47 / 49
----
NULL

query I rowsort
SELECT DISTINCT ( + 63 ) - + 62 col0
----
1

query II rowsort
SELECT ALL 44 AS col0, + 71 + + 53 AS col1
----
44
124

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8266
SELECT ( - NULLIF ( + 86, - - CAST( NULL AS DECIMAL ) ) ) * - 43 col2
----
3698

skipif mysql # not compatible
query I rowsort label-8266
SELECT ( - NULLIF ( + 86, - - CAST ( NULL AS REAL ) ) ) * - 43 col2
----
3698

query I rowsort
SELECT 71 * + ( + - 19 ) * + 69 * - 92
----
8563452

query II rowsort
SELECT - 62, + 54 AS col0
----
-62
54

query I rowsort
SELECT 55 * 59 AS col0
----
3245

query I rowsort
SELECT ALL 45 * + 89
----
4005

onlyif mysql # DIV for integer division: 
query I rowsort label-8271
SELECT 61 DIV + 64
----
0

skipif mysql # not compatible
query I rowsort label-8271
SELECT 61 / + 64
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-8272
SELECT DISTINCT - 39 AS col2, 11 * + SUM( - - 86 ) + - 26 AS col0
----
-39
920

skipif mysql # not compatible
query II rowsort label-8272
SELECT DISTINCT - 39 AS col2, 11 * + SUM ( - - 86 ) + - 26 AS col0
----
-39
920

query I rowsort
SELECT DISTINCT + 95 * + - 65 AS col2
----
-6175

query I rowsort
SELECT 0 + - - 46 + + 37
----
83

onlyif mysql # DIV for integer division: 
query I rowsort label-8275
SELECT - 16 DIV - 18
----
0

skipif mysql # not compatible
query I rowsort label-8275
SELECT - 16 / - 18
----
0

query I rowsort
SELECT DISTINCT - - 9 + + 87 AS col0
----
96

query I rowsort
SELECT + 99 * - 27 + + 99 AS col2
----
-2574

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

onlyif mysql # aggregate syntax: 
query I rowsort label-8279
SELECT + MAX( - 93 ) AS col0
----
-93

skipif mysql # not compatible
query I rowsort label-8279
SELECT + MAX ( - 93 ) AS col0
----
-93

query II rowsort
SELECT 69 AS col0, 85 * + 41 AS col2
----
69
3485

onlyif mysql # aggregate syntax: 
query I rowsort label-8281
SELECT ALL + NULLIF ( - 29, COUNT( * ) ) * - 71 AS col2
----
2059

skipif mysql # not compatible
query I rowsort label-8281
SELECT ALL + NULLIF ( - 29, COUNT ( * ) ) * - 71 AS col2
----
2059

query I rowsort
SELECT - 66 * + ( 9 ) AS col1
----
-594

query I rowsort
SELECT ALL + - 30 + ( 85 ) - + 81
----
-26

query I rowsort
SELECT ALL + + 67 + + 27
----
94

query I rowsort
SELECT ALL + 30 + - 60 AS col1
----
-30

onlyif mysql # aggregate syntax: 
query II rowsort label-8286
SELECT 12 col1, 60 * + + COUNT( * ) AS col1
----
12
60

skipif mysql # not compatible
query II rowsort label-8286
SELECT 12 col1, 60 * + + COUNT ( * ) AS col1
----
12
60

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-8288
SELECT - 2 * 79 DIV - + 56
----
2

skipif mysql # not compatible
query I rowsort label-8288
SELECT - 2 * 79 / - + 56
----
2

onlyif mysql # aggregate syntax: 
query II rowsort label-8289
SELECT ALL - - 76 col0, 28 + - + CASE WHEN NULL NOT BETWEEN ( NULL ) AND - - 61 THEN SUM( - 60 ) ELSE 42 END
----
76
-14

skipif mysql # not compatible
query II rowsort label-8289
SELECT ALL - - 76 col0, 28 + - + CASE WHEN NULL NOT BETWEEN ( NULL ) AND - - 61 THEN SUM ( - 60 ) ELSE 42 END
----
76
-14

query II rowsort
SELECT + 32, 31 AS col0
----
32
31

onlyif mysql # aggregate syntax: 
query I rowsort label-8291
SELECT + SUM( ALL - - 83 ) AS col1
----
83

skipif mysql # not compatible
query I rowsort label-8291
SELECT + SUM ( ALL - - 83 ) AS col1
----
83

query I rowsort
SELECT + 68 * - + 98
----
-6664

query I rowsort
SELECT DISTINCT - 15 * 2 AS col0
----
-30

onlyif mysql # DIV for integer division: 
query I rowsort label-8294
SELECT ALL 48 DIV + + ( - 69 )
----
0

skipif mysql # not compatible
query I rowsort label-8294
SELECT ALL 48 / + + ( - 69 )
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8295
SELECT DISTINCT + 43 - - + CAST( 8 AS SIGNED ) + CASE + 32 WHEN 94 THEN - 88 - + 10 / 33 END + + 14 * + - COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8295
SELECT DISTINCT + 43 - - + CAST ( 8 AS INTEGER ) + CASE + 32 WHEN 94 THEN - 88 - + 10 / 33 END + + 14 * + - COUNT ( * ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8296
SELECT DISTINCT MIN( DISTINCT + 48 ) * - 20
----
-960

skipif mysql # not compatible
query I rowsort label-8296
SELECT DISTINCT MIN ( DISTINCT + 48 ) * - 20
----
-960

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8297
SELECT DISTINCT - ( ( - 72 ) ) - + + CASE - 65 WHEN + 48 THEN + - COUNT( * ) END + - CAST( + 73 AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8297
SELECT DISTINCT - ( ( - 72 ) ) - + + CASE - 65 WHEN + 48 THEN + - COUNT ( * ) END + - CAST ( + 73 AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8298
SELECT 10 + - COUNT( - 76 )
----
9

skipif mysql # not compatible
query I rowsort label-8298
SELECT 10 + - COUNT ( - 76 )
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-8299
SELECT COUNT( * ) * + 17 AS col2
----
17

skipif mysql # not compatible
query I rowsort label-8299
SELECT COUNT ( * ) * + 17 AS col2
----
17

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8300
SELECT CAST( + + 64 AS SIGNED ) * + 3
----
192

skipif mysql # not compatible
query I rowsort label-8300
SELECT CAST ( + + 64 AS INTEGER ) * + 3
----
192

query I rowsort
SELECT ALL 82 * ( - - 92 ) AS col0
----
7544

onlyif mysql # aggregate syntax: 
query I rowsort label-8302
SELECT - SUM( DISTINCT + 56 )
----
-56

skipif mysql # not compatible
query I rowsort label-8302
SELECT - SUM ( DISTINCT + 56 )
----
-56

onlyif mysql # aggregate syntax: 
query II rowsort label-8303
SELECT + 81 * 86 col0, COUNT( * ) AS col1
----
6966
1

skipif mysql # not compatible
query II rowsort label-8303
SELECT + 81 * 86 col0, COUNT ( * ) AS col1
----
6966
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8304
SELECT DISTINCT - CAST( + + 62 AS SIGNED ) * 33 AS col2
----
-2046

skipif mysql # not compatible
query I rowsort label-8304
SELECT DISTINCT - CAST ( + + 62 AS INTEGER ) * 33 AS col2
----
-2046

query I rowsort
SELECT + ( - 73 ) + - 27
----
-100

query II rowsort
SELECT + 61 - 36, + 25
----
25
25

query I rowsort
SELECT + + NULLIF ( + ( - ( 83 ) ), 60 ) + - 71 + 76 * - + ( 79 ) AS col0
----
-6158

query I rowsort
SELECT - + ( - ( + ( - 13 ) ) ) AS col1
----
-13

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8309
SELECT - - 47 + - + CAST( + CAST( NULL AS SIGNED ) AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8309
SELECT - - 47 + - + CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER )
----
NULL

query I rowsort
SELECT DISTINCT + 72 + - 87 + - + 53 * + - 39 AS col1
----
2052

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8311
SELECT DISTINCT NULLIF ( 97, 29 ) + + - 14 + + COALESCE ( + - SUM( CASE 33 WHEN + 7 THEN - 47 * - + 95 * + + 55 DIV - 91 END ), 42 * 17 - + 4 )
----
793

skipif mysql # not compatible
query I rowsort label-8311
SELECT DISTINCT NULLIF ( 97, 29 ) + + - 14 + + COALESCE ( + - SUM ( CASE 33 WHEN + 7 THEN - 47 * - + 95 * + + 55 / - 91 END ), 42 * 17 - + 4 )
----
793

onlyif mysql # aggregate syntax: 
query I rowsort label-8312
SELECT + - CASE COUNT( * ) WHEN - + COUNT( * ) THEN - 57 END + SUM( - + 92 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8312
SELECT + - CASE COUNT ( * ) WHEN - + COUNT ( * ) THEN - 57 END + SUM ( - + 92 )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8313
SELECT DISTINCT + 23 * + 2 * 92 AS col1, 50 * COUNT( * )
----
4232
50

skipif mysql # not compatible
query II rowsort label-8313
SELECT DISTINCT + 23 * + 2 * 92 AS col1, 50 * COUNT ( * )
----
4232
50

onlyif mysql # aggregate syntax: 
query II rowsort label-8314
SELECT ALL - 90 * + 13, CASE 36 WHEN - 87 + - - 5 + - - COUNT( * ) * + - 41 - + + 9 * + COUNT( * ) + + 17 + - MAX( ALL + 93 ) THEN - + 4 END / AVG ( ALL - 50 ) AS col0
----
-1170
NULL

skipif mysql # not compatible
query II rowsort label-8314
SELECT ALL - 90 * + 13, CASE 36 WHEN - 87 + - - 5 + - - COUNT ( * ) * + - 41 - + + 9 * + COUNT ( * ) + + 17 + - MAX ( ALL + 93 ) THEN - + 4 END / AVG ( ALL - 50 ) AS col0
----
-1170
NULL

query I rowsort
SELECT + - 84 + + 0 col0
----
-84

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8316
SELECT - - CAST( + + 6 AS SIGNED ) DIV - - ( + + COALESCE ( COUNT( * ), + 54 ) )
----
6

skipif mysql # not compatible
query I rowsort label-8316
SELECT - - CAST ( + + 6 AS INTEGER ) / - - ( + + COALESCE ( COUNT ( * ), + 54 ) )
----
6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8317
SELECT DISTINCT + - ( CASE + 50 WHEN - - 57 THEN NULL WHEN + 44 + - 40 THEN 56 / - - 69 - - 39 + + COUNT( DISTINCT 33 ) + - 51 WHEN + CAST( NULL AS SIGNED ) THEN NULL ELSE NULL END ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8317
SELECT DISTINCT + - ( CASE + 50 WHEN - - 57 THEN NULL WHEN + 44 + - 40 THEN 56 / - - 69 - - 39 + + COUNT ( DISTINCT 33 ) + - 51 WHEN + CAST ( NULL AS INTEGER ) THEN NULL ELSE NULL END ) AS col1
----
NULL

query I rowsort
SELECT ALL + - 32 * + 39 - + - 28 + - 13 col1
----
-1233

query I rowsort
SELECT + - 34 * + 3 AS col0
----
-102

query I rowsort
SELECT + + CASE - + 73 WHEN + 93 THEN NULL WHEN - 12 THEN - - 42 * - - 61 + 46 END * - - 93
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8321
SELECT ALL - 31 * + COUNT( * ) DIV COUNT( * ) - 9 * - 86 + - - 21 AS col0
----
764

skipif mysql # not compatible
query I rowsort label-8321
SELECT ALL - 31 * + COUNT ( * ) / COUNT ( * ) - 9 * - 86 + - - 21 AS col0
----
764

query I rowsort
SELECT ALL + CASE - 22 WHEN - 95 THEN 32 + + 73 ELSE NULL END
----
NULL

query I rowsort
SELECT - 54 + + 8 + + 19 + + 28
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8324
SELECT ALL + SUM( ALL - COALESCE ( 26, COALESCE ( + - 22, + 87 DIV 95, + 10 * + 89 ) ) )
----
-26

skipif mysql # not compatible
query I rowsort label-8324
SELECT ALL + SUM ( ALL - COALESCE ( 26, COALESCE ( + - 22, + 87 / 95, + 10 * + 89 ) ) )
----
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-8325
SELECT DISTINCT + SUM( DISTINCT - 59 )
----
-59

skipif mysql # not compatible
query I rowsort label-8325
SELECT DISTINCT + SUM ( DISTINCT - 59 )
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-8326
SELECT ALL - 65 * - + COUNT( * )
----
65

skipif mysql # not compatible
query I rowsort label-8326
SELECT ALL - 65 * - + COUNT ( * )
----
65

onlyif mysql # DIV for integer division: 
query II rowsort label-8327
SELECT ALL + CASE 21 WHEN + 41 THEN - ( 29 ) + 97 ELSE NULL END AS col1, 59 DIV 22
----
NULL
2

skipif mysql # not compatible
query II rowsort label-8327
SELECT ALL + CASE 21 WHEN + 41 THEN - ( 29 ) + 97 ELSE NULL END AS col1, 59 / 22
----
NULL
2

query II rowsort
SELECT CASE - 76 WHEN + + 98 THEN NULL ELSE + 69 END, 2 AS col1
----
69
2

onlyif mysql # aggregate syntax: 
query II rowsort label-8329
SELECT 2 * + + 53 + + 95, - COUNT( DISTINCT 38 ) AS col1
----
201
-1

skipif mysql # not compatible
query II rowsort label-8329
SELECT 2 * + + 53 + + 95, - COUNT ( DISTINCT 38 ) AS col1
----
201
-1

query I rowsort
SELECT ALL - 66 * + 89 col1
----
-5874

query I rowsort
SELECT NULLIF ( 54, + + 20 * - 54 + + - 1 )
----
54

query II rowsort
SELECT + 92, - 96 * 18 AS col0
----
92
-1728

query I rowsort
SELECT - ( 86 ) + - 79
----
-165

onlyif mysql # aggregate syntax: 
query II rowsort label-8334
SELECT + 95, - 70 + - COUNT( * ) AS col2
----
95
-71

skipif mysql # not compatible
query II rowsort label-8334
SELECT + 95, - 70 + - COUNT ( * ) AS col2
----
95
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-8335
SELECT COUNT( DISTINCT 94 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-8335
SELECT COUNT ( DISTINCT 94 ) AS col1
----
1

query I rowsort
SELECT - 64 * + 75 AS col0
----
-4800

onlyif mysql # aggregate syntax: 
query II rowsort label-8337
SELECT ALL + ( - - COUNT( * ) ) * + 17 col1, - 97
----
17
-97

skipif mysql # not compatible
query II rowsort label-8337
SELECT ALL + ( - - COUNT ( * ) ) * + 17 col1, - 97
----
17
-97

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8338
SELECT ALL CAST( NULL AS SIGNED ) AS col0, + 55 AS col1
----
NULL
55

skipif mysql # not compatible
query II rowsort label-8338
SELECT ALL CAST ( NULL AS INTEGER ) AS col0, + 55 AS col1
----
NULL
55

query I rowsort
SELECT DISTINCT 81 * + 62 + + + 37 * + + 76 AS col2
----
7834

query I rowsort
SELECT DISTINCT ( - - 1 ) col2
----
1

query I rowsort
SELECT ALL 28 + 54 + 50 * - - 76 AS col2
----
3882

onlyif mysql # aggregate syntax: 
query II rowsort label-8342
SELECT DISTINCT 12, 45 * + ( - MAX( 53 ) ) * 71 + + 98 * - COUNT( * ) * - COUNT( * ) + - 73 AS col1
----
12
-169310

skipif mysql # not compatible
query II rowsort label-8342
SELECT DISTINCT 12, 45 * + ( - MAX ( 53 ) ) * 71 + + 98 * - COUNT ( * ) * - COUNT ( * ) + - 73 AS col1
----
12
-169310

query I rowsort
SELECT ALL - 76 + - + 34
----
-110

onlyif mysql # aggregate syntax: 
query I rowsort label-8344
SELECT DISTINCT + 22 + + CASE - 91 WHEN + ( + COALESCE ( - - 64, + SUM( + 14 ) ) ) THEN - 63 WHEN - 96 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-8344
SELECT DISTINCT + 22 + + CASE - 91 WHEN + ( + COALESCE ( - - 64, + SUM ( + 14 ) ) ) THEN - 63 WHEN - 96 THEN NULL END
----
NULL

query II rowsort
SELECT - 18 AS col2, - 80 AS col0
----
-18
-80

query I rowsort
SELECT ALL + 45 + - 67
----
-22

query II rowsort
SELECT + 37, + 11 * + 50 * + + 55 AS col0
----
37
30250

onlyif mysql # aggregate syntax: 
query II rowsort label-8348
SELECT + 87 AS col2, SUM( + + 29 )
----
87
29

skipif mysql # not compatible
query II rowsort label-8348
SELECT + 87 AS col2, SUM ( + + 29 )
----
87
29

query II rowsort
SELECT COALESCE ( + + ( - - ( 81 ) ), + 96 + - 45 ) AS col1, 60 + - 51 + - - 5
----
81
14

query I rowsort
SELECT ALL 51 * + 81
----
4131

onlyif mysql # aggregate syntax: 
query I rowsort label-8351
SELECT + NULLIF ( - ( - COUNT( - 51 ) ), + 28 * - - 8 ) * - 70
----
-70

skipif mysql # not compatible
query I rowsort label-8351
SELECT + NULLIF ( - ( - COUNT ( - 51 ) ), + 28 * - - 8 ) * - 70
----
-70

onlyif mysql # DIV for integer division: 
query II rowsort label-8352
SELECT ALL 78 + 57 + 28 DIV - 76 col0, + 96
----
135
96

skipif mysql # not compatible
query II rowsort label-8352
SELECT ALL 78 + 57 + 28 / - 76 col0, + 96
----
135
96

query I rowsort
SELECT ALL - 93 * + + 1 AS col0
----
-93

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8354
SELECT ALL + CAST( NULL AS DECIMAL ) + + 63 * - 0
----
NULL

skipif mysql # not compatible
query I rowsort label-8354
SELECT ALL + CAST ( NULL AS REAL ) + + 63 * - 0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8355
SELECT 66 AS col0, CAST( NULL AS SIGNED )
----
66
NULL

skipif mysql # not compatible
query II rowsort label-8355
SELECT 66 AS col0, CAST ( NULL AS INTEGER )
----
66
NULL

query I rowsort
SELECT - - 55 + + 70 AS col1
----
125

query I rowsort
SELECT + - ( - - ( 89 ) ) * + 61
----
-5429

onlyif mysql # aggregate syntax: 
query I rowsort label-8358
SELECT + 84 + - SUM( + 19 ) + COUNT( * ) AS col0
----
66

skipif mysql # not compatible
query I rowsort label-8358
SELECT + 84 + - SUM ( + 19 ) + COUNT ( * ) AS col0
----
66

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8359
SELECT DISTINCT - NULLIF ( - COUNT( * ), - - 41 + + + COUNT( * ) ) DIV + - 56 - + 4 AS col0
----
-4

skipif mysql # not compatible
query I rowsort label-8359
SELECT DISTINCT - NULLIF ( - COUNT ( * ), - - 41 + + + COUNT ( * ) ) / + - 56 - + 4 AS col0
----
-4

query I rowsort
SELECT - - 5 * 16 - NULLIF ( - 20, + + 34 )
----
100

onlyif mysql # DIV for integer division: 
query I rowsort label-8361
SELECT ALL + 67 DIV + - 56 col2
----
-1

skipif mysql # not compatible
query I rowsort label-8361
SELECT ALL + 67 / + - 56 col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8362
SELECT ALL + MAX( 32 ) AS col1
----
32

skipif mysql # not compatible
query I rowsort label-8362
SELECT ALL + MAX ( 32 ) AS col1
----
32

query I rowsort
SELECT + 30 * 89 * - 93
----
-248310

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8364
SELECT CAST( 74 AS SIGNED ) AS col0
----
74

skipif mysql # not compatible
query I rowsort label-8364
SELECT CAST ( 74 AS INTEGER ) AS col0
----
74

query I rowsort
SELECT ALL 12 * - 3 * - + 79
----
2844

query I rowsort
SELECT - ( + 84 ) * + 33 - - 47 AS col1
----
-2725

query I rowsort
SELECT - COALESCE ( + 71, - 28 ) * + 90 * - 6 AS col2
----
38340

onlyif mysql # aggregate syntax: 
query I rowsort label-8368
SELECT - 33 * 98 * - + 12 - - + COUNT( * )
----
38809

skipif mysql # not compatible
query I rowsort label-8368
SELECT - 33 * 98 * - + 12 - - + COUNT ( * )
----
38809

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8369
SELECT COUNT( * ) * - - CAST( NULL AS SIGNED ) AS col0, - CAST( - 74 AS SIGNED ) + 97
----
NULL
171

skipif mysql # not compatible
query II rowsort label-8369
SELECT COUNT ( * ) * - - CAST ( NULL AS INTEGER ) AS col0, - CAST ( - 74 AS INTEGER ) + 97
----
NULL
171

query I rowsort
SELECT 65 * - - 14
----
910

query I rowsort
SELECT DISTINCT - 53 + - - 49 AS col0
----
-4

query I rowsort
SELECT DISTINCT + 89 + - + 35 + + 77 + + 53
----
184

query II rowsort
SELECT ALL 23 + 80 AS col1, 96 * - - 3
----
103
288

query I rowsort
SELECT 35 * + 41 - 69 * - 79 AS col0
----
6886

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8375
SELECT ALL + 44 + - COUNT( * ) DIV - + 78
----
44

skipif mysql # not compatible
query I rowsort label-8375
SELECT ALL + 44 + - COUNT ( * ) / - + 78
----
44

query I rowsort
SELECT NULLIF ( - 56, + 57 ) + + 22 + + NULLIF ( 83, - + 11 ) AS col2
----
49

query I rowsort
SELECT 80 * 10
----
800

onlyif mysql # aggregate syntax: 
query II rowsort label-8378
SELECT ALL + 35 + + 14 AS col2, COUNT( * ) * COUNT( * ) * + - 60 * - 26 * + 22 * + COUNT( 29 )
----
49
34320

skipif mysql # not compatible
query II rowsort label-8378
SELECT ALL + 35 + + 14 AS col2, COUNT ( * ) * COUNT ( * ) * + - 60 * - 26 * + 22 * + COUNT ( 29 )
----
49
34320

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8379
SELECT COALESCE ( - - ( 86 ), + - CAST( - 85 AS SIGNED ) ) * - 13 + + 50
----
-1068

skipif mysql # not compatible
query I rowsort label-8379
SELECT COALESCE ( - - ( 86 ), + - CAST ( - 85 AS INTEGER ) ) * - 13 + + 50
----
-1068

query I rowsort
SELECT ALL - 72 + 75 AS col0
----
3

query I rowsort
SELECT DISTINCT + 18 * + 36
----
648

onlyif mysql # aggregate syntax: 
query I rowsort label-8382
SELECT DISTINCT + - COUNT( ALL + + 39 ) + - - 26 AS col2
----
25

skipif mysql # not compatible
query I rowsort label-8382
SELECT DISTINCT + - COUNT ( ALL + + 39 ) + - - 26 AS col2
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-8383
SELECT 21 + + - SUM( ALL - 34 ) AS col0
----
55

skipif mysql # not compatible
query I rowsort label-8383
SELECT 21 + + - SUM ( ALL - 34 ) AS col0
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-8384
SELECT ALL + - 40 + 78 - + COUNT( * ) * - + 76 AS col1
----
114

skipif mysql # not compatible
query I rowsort label-8384
SELECT ALL + - 40 + 78 - + COUNT ( * ) * - + 76 AS col1
----
114

onlyif mysql # aggregate syntax: 
query I rowsort label-8385
SELECT ( - + 23 ) * - 0 * + ( - COUNT( 61 ) ) + - 94
----
-94

skipif mysql # not compatible
query I rowsort label-8385
SELECT ( - + 23 ) * - 0 * + ( - COUNT ( 61 ) ) + - 94
----
-94

query I rowsort
SELECT + 45 + + + 55
----
100

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8387
SELECT DISTINCT + + 73 DIV - - COUNT( * ) AS col1, - 49 * + 27 AS col2
----
73
-1323

skipif mysql # not compatible
query II rowsort label-8387
SELECT DISTINCT + + 73 / - - COUNT ( * ) AS col1, - 49 * + 27 AS col2
----
73
-1323

query I rowsort
SELECT - - ( + 5 ) AS col0
----
5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-8389
SELECT 44 + - ( + 7 ) + + CAST( - 51 AS SIGNED ) * + - NULLIF ( + COUNT( * ), - 10 DIV - 7 ) AS col1, 24 AS col0
----
NULL
24

skipif mysql # not compatible
query II rowsort label-8389
SELECT 44 + - ( + 7 ) + + CAST ( - 51 AS INTEGER ) * + - NULLIF ( + COUNT ( * ), - 10 / - 7 ) AS col1, 24 AS col0
----
NULL
24

onlyif mysql # DIV for integer division: 
query I rowsort label-8390
SELECT ALL + + 48 DIV + 5 - + 14 AS col1
----
-5

skipif mysql # not compatible
query I rowsort label-8390
SELECT ALL + + 48 / + 5 - + 14 AS col1
----
-5

query I rowsort
SELECT 31 * + ( + 56 ) * 32 * - 3
----
-166656

query II rowsort
SELECT 90 + + + 99 col1, ( 75 )
----
189
75

query II rowsort
SELECT ALL - 98 - + + 92 AS col2, - ( + ( + + 58 ) ) + + ( + ( - - 17 ) ) + + NULLIF ( - 41, + + 2 )
----
-190
-82

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8394
SELECT ALL + + COUNT( * ) * 96 DIV NULLIF ( + + COUNT( * ), + 83 ), 73 * 29 * + + ( - 35 ) AS col0
----
96
-74095

skipif mysql # not compatible
query II rowsort label-8394
SELECT ALL + + COUNT ( * ) * 96 / NULLIF ( + + COUNT ( * ), + 83 ), 73 * 29 * + + ( - 35 ) AS col0
----
96
-74095

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8395
SELECT 24 + + + CASE - 18 WHEN - COALESCE ( + + 81, 85 * + 72 ) THEN + + COUNT( * ) / - 38 WHEN + 19 * COUNT( * ) THEN NULL ELSE 69 END + - CASE SUM( 61 ) WHEN + 91 THEN 36 * - 10 ELSE NULL END + + + 96 + 29 + - MAX( ALL + 88 ) * 49 * - - 97 * + SUM( + 83 ) - - + 66 AS col0, 68 - 39 + - CASE - 26 WHEN 90 THEN + 92 WHEN 39 * + - ( - 16 ) + + 5 * + COUNT( * ) THEN 84 - - + 33 ELSE NULL END + - CAST( NULL AS SIGNED ) * + 12 * + 66 AS col2
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-8395
SELECT 24 + + + CASE - 18 WHEN - COALESCE ( + + 81, 85 * + 72 ) THEN + + COUNT ( * ) / - 38 WHEN + 19 * COUNT ( * ) THEN NULL ELSE 69 END + - CASE SUM ( 61 ) WHEN + 91 THEN 36 * - 10 ELSE NULL END + + + 96 + 29 + - MAX ( ALL + 88 ) * 49 * - - 97 * + SUM ( + 83 ) - - + 66 AS col0, 68 - 39 + - CASE - 26 WHEN 90 THEN + 92 WHEN 39 * + - ( - 16 ) + + 5 * + COUNT ( * ) THEN 84 - - + 33 ELSE NULL END + - CAST ( NULL AS INTEGER ) * + 12 * + 66 AS col2
----
NULL
NULL

query I rowsort
SELECT DISTINCT 69 * + 26
----
1794

query I rowsort
SELECT 70 + - 95 + - 44 AS col1
----
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-8398
SELECT DISTINCT + 5 * COUNT( * ) + + - ( - + 19 ) + MAX( ALL 82 ) + - + 33
----
73

skipif mysql # not compatible
query I rowsort label-8398
SELECT DISTINCT + 5 * COUNT ( * ) + + - ( - + 19 ) + MAX ( ALL 82 ) + - + 33
----
73

onlyif mysql # aggregate syntax: 
query I rowsort label-8399
SELECT DISTINCT + - SUM( ALL 85 ) * - - 70 * - 32
----
190400

skipif mysql # not compatible
query I rowsort label-8399
SELECT DISTINCT + - SUM ( ALL 85 ) * - - 70 * - 32
----
190400

onlyif mysql # aggregate syntax: 
query I rowsort label-8400
SELECT NULLIF ( + COUNT( DISTINCT + + 95 ), + 67 ) * - COUNT( * )
----
-1

skipif mysql # not compatible
query I rowsort label-8400
SELECT NULLIF ( + COUNT ( DISTINCT + + 95 ), + 67 ) * - COUNT ( * )
----
-1

query I rowsort
SELECT 11 + - 24
----
-13

onlyif mysql # aggregate syntax: 
query II rowsort label-8402
SELECT DISTINCT - 97, + ( - 93 ) * 98 * + 72 * ( + COUNT( * ) ) * - 53 + + 90 + + + NULLIF ( COUNT( * ), + + 34 * 5 ) + - 14 col0
----
-97
34779101

skipif mysql # not compatible
query II rowsort label-8402
SELECT DISTINCT - 97, + ( - 93 ) * 98 * + 72 * ( + COUNT ( * ) ) * - 53 + + 90 + + + NULLIF ( COUNT ( * ), + + 34 * 5 ) + - 14 col0
----
-97
34779101

query I rowsort
SELECT ALL 83 + + 61 + - - 14
----
158

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8404
SELECT DISTINCT - CAST( - 9 AS SIGNED )
----
9

skipif mysql # not compatible
query I rowsort label-8404
SELECT DISTINCT - CAST ( - 9 AS INTEGER )
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-8405
SELECT ALL 59 + - COUNT( * ) * + + COUNT( + - 87 ) * + SUM( DISTINCT + 56 )
----
3

skipif mysql # not compatible
query I rowsort label-8405
SELECT ALL 59 + - COUNT ( * ) * + + COUNT ( + - 87 ) * + SUM ( DISTINCT + 56 )
----
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8406
SELECT COUNT( * ) DIV + + 65 + + 15 AS col2
----
15

skipif mysql # not compatible
query I rowsort label-8406
SELECT COUNT ( * ) / + + 65 + + 15 AS col2
----
15

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8407
SELECT ALL CAST( NULL AS SIGNED ) / - 17 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8407
SELECT ALL CAST ( NULL AS INTEGER ) / - 17 AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8408
SELECT DISTINCT COUNT( - CAST( + CAST( + + 33 AS SIGNED ) AS SIGNED ) ) + + - COUNT( * ) + 46 DIV 99 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-8408
SELECT DISTINCT COUNT ( - CAST ( + CAST ( + + 33 AS INTEGER ) AS INTEGER ) ) + + - COUNT ( * ) + 46 / 99 AS col1
----
0

query I rowsort
SELECT ALL 52 + + + 7 AS col2
----
59

query I rowsort
SELECT DISTINCT 82 + 66
----
148

query I rowsort
SELECT 40 * + 16 + - 70
----
570

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8412
SELECT ALL 17 + + 22 + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8412
SELECT ALL 17 + + 22 + CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8413
SELECT 90 + - 91 / + ( - 22 ) * - 34 + - - CASE - 56 WHEN - + 15 THEN COUNT( * ) END + 24
----
NULL

skipif mysql # not compatible
query I rowsort label-8413
SELECT 90 + - 91 / + ( - 22 ) * - 34 + - - CASE - 56 WHEN - + 15 THEN COUNT ( * ) END + 24
----
NULL

query I rowsort
SELECT 99 + 53 AS col0
----
152

onlyif mysql # aggregate syntax: 
query I rowsort label-8415
SELECT - COUNT( DISTINCT - 22 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-8415
SELECT - COUNT ( DISTINCT - 22 ) AS col1
----
-1

query I rowsort
SELECT ALL - 41 - - 98
----
57

query I rowsort
SELECT DISTINCT + ( 52 ) * ( - 95 )
----
-4940

query I rowsort
SELECT DISTINCT 68 - - 64 * - 57
----
-3580

onlyif mysql # aggregate syntax: 
query I rowsort label-8419
SELECT - SUM( + 36 ) AS col2
----
-36

skipif mysql # not compatible
query I rowsort label-8419
SELECT - SUM ( + 36 ) AS col2
----
-36

query I rowsort
SELECT DISTINCT + 96 * - 60 AS col2
----
-5760

query I rowsort
SELECT ALL - 41 - - 69 AS col1
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-8422
SELECT COUNT( * ) * - 90 AS col1
----
-90

skipif mysql # not compatible
query I rowsort label-8422
SELECT COUNT ( * ) * - 90 AS col1
----
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-8423
SELECT DISTINCT COUNT( * ) * - 75
----
-75

skipif mysql # not compatible
query I rowsort label-8423
SELECT DISTINCT COUNT ( * ) * - 75
----
-75

query I rowsort
SELECT 21 * - 69
----
-1449

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8425
SELECT DISTINCT - CAST( NULL AS DECIMAL ) / + 32
----
NULL

skipif mysql # not compatible
query I rowsort label-8425
SELECT DISTINCT - CAST ( NULL AS REAL ) / + 32
----
NULL

query I rowsort
SELECT 4 + 90
----
94

query I rowsort
SELECT 46 + + ( 74 ) AS col2
----
120

onlyif mysql # DIV for integer division: 
query I rowsort label-8428
SELECT DISTINCT - 34 DIV + 84
----
0

skipif mysql # not compatible
query I rowsort label-8428
SELECT DISTINCT - 34 / + 84
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8429
SELECT ALL COUNT( DISTINCT 33 ) col2
----
1

skipif mysql # not compatible
query I rowsort label-8429
SELECT ALL COUNT ( DISTINCT 33 ) col2
----
1

query I rowsort
SELECT - 95 * 95
----
-9025

query I rowsort
SELECT + 60 * - 86 col1
----
-5160

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8432
SELECT DISTINCT CASE + CAST( NULL AS SIGNED ) WHEN AVG ( DISTINCT 56 ) * - 35 + 32 THEN NULL WHEN 92 + 4 THEN ( + ( - ( 53 ) ) ) ELSE 16 END AS col0
----
16

skipif mysql # not compatible
query I rowsort label-8432
SELECT DISTINCT CASE + CAST ( NULL AS INTEGER ) WHEN AVG ( DISTINCT 56 ) * - 35 + 32 THEN NULL WHEN 92 + 4 THEN ( + ( - ( 53 ) ) ) ELSE 16 END AS col0
----
16

query I rowsort
SELECT ALL 82 * - 28 + 39
----
-2257

query I rowsort
SELECT - 89 * + ( 0 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8435
SELECT DISTINCT + 8 * 11 + MAX( DISTINCT 40 ) * + 51
----
2128

skipif mysql # not compatible
query I rowsort label-8435
SELECT DISTINCT + 8 * 11 + MAX ( DISTINCT 40 ) * + 51
----
2128

onlyif mysql # DIV for integer division: 
query I rowsort label-8436
SELECT 53 DIV + 96 + - ( + 68 + + 54 ) * + 76
----
-9272

skipif mysql # not compatible
query I rowsort label-8436
SELECT 53 / + 96 + - ( + 68 + + 54 ) * + 76
----
-9272

query I rowsort
SELECT ALL - 9 * 36 + + 87
----
-237

query I rowsort
SELECT COALESCE ( 57, - 75 ) AS col1
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-8439
SELECT ALL + 44 * COUNT( * ) AS col0
----
44

skipif mysql # not compatible
query I rowsort label-8439
SELECT ALL + 44 * COUNT ( * ) AS col0
----
44

query I rowsort
SELECT ALL 37 * + 40 + - 92 * - 91 AS col1
----
9852

query I rowsort
SELECT + ( + 79 ) * 6 AS col2
----
474

query I rowsort
SELECT CASE - NULLIF ( 62, 71 ) WHEN + 24 THEN 47 ELSE NULL END
----
NULL

query I rowsort
SELECT CASE - 80 WHEN + 12 + 82 THEN 21 + 81 / 9 WHEN - 13 THEN 78 END col2
----
NULL

query I rowsort
SELECT ALL 68 * 8 + + 41 AS col1
----
585

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8445
SELECT ( SUM( DISTINCT 42 ) ) * + CAST( + 80 AS SIGNED ) - + 41 * 25 AS col0
----
2335

skipif mysql # not compatible
query I rowsort label-8445
SELECT ( SUM ( DISTINCT 42 ) ) * + CAST ( + 80 AS INTEGER ) - + 41 * 25 AS col0
----
2335

query I rowsort
SELECT DISTINCT 49 * - 98 - 82 AS col1
----
-4884

query I rowsort
SELECT ALL 63 * - 17 AS col1
----
-1071

query I rowsort
SELECT DISTINCT + 34 * - 63 AS col2
----
-2142

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8449
SELECT ALL 75 * CAST( COUNT( * ) AS SIGNED ) AS col1
----
75

skipif mysql # not compatible
query I rowsort label-8449
SELECT ALL 75 * CAST ( COUNT ( * ) AS INTEGER ) AS col1
----
75

query I rowsort
SELECT - 44 + 53 col0
----
9

query I rowsort
SELECT 12 * + 83 - 62 * 80
----
-3964

onlyif mysql # aggregate syntax: 
query I rowsort label-8452
SELECT + MIN( ALL 1 ) + 78
----
79

skipif mysql # not compatible
query I rowsort label-8452
SELECT + MIN ( ALL 1 ) + 78
----
79

query I rowsort
SELECT ALL - 31 - COALESCE ( + ( ( - 90 ) ), + 23, + 98 * - 26 ) AS col2
----
59

query I rowsort
SELECT - ( - 46 ) col2
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-8455
SELECT - MIN( 51 ) * + 88 + - 54 AS col1
----
-4542

skipif mysql # not compatible
query I rowsort label-8455
SELECT - MIN ( 51 ) * + 88 + - 54 AS col1
----
-4542

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8456
SELECT - + COUNT( * ) DIV + 44 col1
----
0

skipif mysql # not compatible
query I rowsort label-8456
SELECT - + COUNT ( * ) / + 44 col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8457
SELECT - - ( COUNT( DISTINCT - COALESCE ( 0, + 44 ) ) ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-8457
SELECT - - ( COUNT ( DISTINCT - COALESCE ( 0, + 44 ) ) ) AS col0
----
1

query I rowsort
SELECT + - ( + 24 ) + - 14
----
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-8459
SELECT + + 1 + - NULLIF ( - COUNT( * ), - 20 * + 87 ) * 56
----
57

skipif mysql # not compatible
query I rowsort label-8459
SELECT + + 1 + - NULLIF ( - COUNT ( * ), - 20 * + 87 ) * 56
----
57

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8460
SELECT DISTINCT CAST( 55 AS SIGNED ) AS col1
----
55

skipif mysql # not compatible
query I rowsort label-8460
SELECT DISTINCT CAST ( 55 AS INTEGER ) AS col1
----
55

query I rowsort
SELECT + 21 + 70 AS col2
----
91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8462
SELECT - - CASE 7 WHEN 76 + 63 THEN COUNT( * ) END + MAX( DISTINCT + CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-8462
SELECT - - CASE 7 WHEN 76 + 63 THEN COUNT ( * ) END + MAX ( DISTINCT + CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8463
SELECT ALL + 55 * ( - 76 + COUNT( * ) )
----
-4125

skipif mysql # not compatible
query I rowsort label-8463
SELECT ALL + 55 * ( - 76 + COUNT ( * ) )
----
-4125

onlyif mysql # aggregate syntax: 
query I rowsort label-8464
SELECT DISTINCT MAX( - 54 ) AS col2
----
-54

skipif mysql # not compatible
query I rowsort label-8464
SELECT DISTINCT MAX ( - 54 ) AS col2
----
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-8465
SELECT DISTINCT - + 76 + COUNT( * )
----
-75

skipif mysql # not compatible
query I rowsort label-8465
SELECT DISTINCT - + 76 + COUNT ( * )
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-8466
SELECT ALL - 21 + ( + 80 ) * COUNT( * )
----
59

skipif mysql # not compatible
query I rowsort label-8466
SELECT ALL - 21 + ( + 80 ) * COUNT ( * )
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-8467
SELECT DISTINCT - 3 + + + 22 + - 23 * - ( + COUNT( * ) )
----
42

skipif mysql # not compatible
query I rowsort label-8467
SELECT DISTINCT - 3 + + + 22 + - 23 * - ( + COUNT ( * ) )
----
42

query I rowsort
SELECT ALL ( - 23 ) AS col0
----
-23

query I rowsort
SELECT DISTINCT ( - - 43 ) AS col0
----
43

query I rowsort
SELECT 40 * - - 78 - 35 * - 72
----
5640

onlyif mysql # DIV for integer division: 
query I rowsort label-8471
SELECT DISTINCT 90 DIV + 78 + 92
----
93

skipif mysql # not compatible
query I rowsort label-8471
SELECT DISTINCT 90 / + 78 + 92
----
93

query I rowsort
SELECT ALL + NULLIF ( - 30, COALESCE ( + 32, + 19 * + 95 ) )
----
-30

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8473
SELECT - CAST( NULL AS DECIMAL ) * + 30
----
NULL

skipif mysql # not compatible
query I rowsort label-8473
SELECT - CAST ( NULL AS REAL ) * + 30
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8474
SELECT - MAX( ALL CAST( NULL AS DECIMAL ) ) + 34 * - 83 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8474
SELECT - MAX ( ALL CAST ( NULL AS REAL ) ) + 34 * - 83 AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8475
SELECT ALL - 85 DIV - - 82 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-8475
SELECT ALL - 85 / - - 82 AS col0
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8476
SELECT ALL CAST( NULL AS SIGNED ) / + + 68 / 15 + 10 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8476
SELECT ALL CAST ( NULL AS INTEGER ) / + + 68 / 15 + 10 col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8477
SELECT - MIN( 31 ) + 95 * 72 AS col2
----
6809

skipif mysql # not compatible
query I rowsort label-8477
SELECT - MIN ( 31 ) + 95 * 72 AS col2
----
6809

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8478
SELECT CASE - - 3 WHEN 44 THEN 45 + + CAST( NULL AS SIGNED ) END * - 8 + 97 / 83
----
NULL

skipif mysql # not compatible
query I rowsort label-8478
SELECT CASE - - 3 WHEN 44 THEN 45 + + CAST ( NULL AS INTEGER ) END * - 8 + 97 / 83
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8479
SELECT DISTINCT - COUNT( * ) * + COUNT( * ) * 6 AS col0
----
-6

skipif mysql # not compatible
query I rowsort label-8479
SELECT DISTINCT - COUNT ( * ) * + COUNT ( * ) * 6 AS col0
----
-6

onlyif mysql # DIV for integer division: 
query I rowsort label-8480
SELECT + 26 DIV + - 90 + - ( + NULLIF ( - 59, - 15 ) ) AS col2
----
59

skipif mysql # not compatible
query I rowsort label-8480
SELECT + 26 / + - 90 + - ( + NULLIF ( - 59, - 15 ) ) AS col2
----
59

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8481
SELECT DISTINCT NULLIF ( CAST( NULL AS SIGNED ), COUNT( * ) * + 12 ) * + 11 - + 46
----
NULL

skipif mysql # not compatible
query I rowsort label-8481
SELECT DISTINCT NULLIF ( CAST ( NULL AS INTEGER ), COUNT ( * ) * + 12 ) * + 11 - + 46
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8482
SELECT + COUNT( + - 53 ) col0
----
1

skipif mysql # not compatible
query I rowsort label-8482
SELECT + COUNT ( + - 53 ) col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8483
SELECT + 3 * + COUNT( DISTINCT + ( 50 ) ) - 49
----
-46

skipif mysql # not compatible
query I rowsort label-8483
SELECT + 3 * + COUNT ( DISTINCT + ( 50 ) ) - 49
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-8484
SELECT 66 * + 65 * - COUNT( * ) + - 3 AS col1
----
-4293

skipif mysql # not compatible
query I rowsort label-8484
SELECT 66 * + 65 * - COUNT ( * ) + - 3 AS col1
----
-4293

query I rowsort
SELECT - 51 * - 90 col2
----
4590

query I rowsort
SELECT + + 91 + + 71 AS col1
----
162

onlyif mysql # aggregate syntax: 
query I rowsort label-8487
SELECT - - ( + 76 ) * COUNT( * )
----
76

skipif mysql # not compatible
query I rowsort label-8487
SELECT - - ( + 76 ) * COUNT ( * )
----
76

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8488
SELECT + - 16 + + CAST( - 93 AS SIGNED )
----
-109

skipif mysql # not compatible
query I rowsort label-8488
SELECT + - 16 + + CAST ( - 93 AS INTEGER )
----
-109

query I rowsort
SELECT ALL 18 * - + 98
----
-1764

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8490
SELECT ALL COALESCE ( + 86, 78 + 21 ) * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8490
SELECT ALL COALESCE ( + 86, 78 + 21 ) * + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT + 5 * + - 1
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-8492
SELECT ALL - + 27 * + - 40 + + 47 + COUNT( * ) col0
----
1128

skipif mysql # not compatible
query I rowsort label-8492
SELECT ALL - + 27 * + - 40 + + 47 + COUNT ( * ) col0
----
1128

query I rowsort
SELECT DISTINCT + - 62 * + 98 + 51 AS col1
----
-6025

onlyif mysql # aggregate syntax: 
query I rowsort label-8494
SELECT ALL ( MIN( - 75 ) )
----
-75

skipif mysql # not compatible
query I rowsort label-8494
SELECT ALL ( MIN ( - 75 ) )
----
-75

onlyif mysql # DIV for integer division: 
query I rowsort label-8495
SELECT 75 DIV + 50 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-8495
SELECT 75 / + 50 AS col1
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-8496
SELECT DISTINCT 20 + + + 49 + 44 DIV - 52
----
69

skipif mysql # not compatible
query I rowsort label-8496
SELECT DISTINCT 20 + + + 49 + 44 / - 52
----
69

query I rowsort
SELECT ALL + 9 + + 51
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-8498
SELECT ALL 38 + MAX( 62 ) - 44
----
56

skipif mysql # not compatible
query I rowsort label-8498
SELECT ALL 38 + MAX ( 62 ) - 44
----
56

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8499
SELECT - 8 - + + 93 + - 77 DIV COUNT( * ) AS col0
----
-178

skipif mysql # not compatible
query I rowsort label-8499
SELECT - 8 - + + 93 + - 77 / COUNT ( * ) AS col0
----
-178

onlyif mysql # DIV for integer division: 
query I rowsort label-8500
SELECT ALL 60 DIV - - 11 AS col2
----
5

skipif mysql # not compatible
query I rowsort label-8500
SELECT ALL 60 / - - 11 AS col2
----
5

query I rowsort
SELECT DISTINCT 95 * - 77 * + 45 AS col1
----
-329175

query I rowsort
SELECT DISTINCT - 7 + + 98
----
91

query II rowsort
SELECT DISTINCT 26 AS col0, 76 AS col0
----
26
76

onlyif mysql # aggregate syntax: 
query II rowsort label-8504
SELECT 58 AS col1, ( COUNT( ( - 8 ) ) )
----
58
1

skipif mysql # not compatible
query II rowsort label-8504
SELECT 58 AS col1, ( COUNT ( ( - 8 ) ) )
----
58
1

query II rowsort
SELECT DISTINCT 84, + 83 AS col0
----
84
83

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8506
SELECT ALL 90, - COUNT( ALL + CAST( NULL AS SIGNED ) ) * + 67 AS col2
----
90
0

skipif mysql # not compatible
query II rowsort label-8506
SELECT ALL 90, - COUNT ( ALL + CAST ( NULL AS INTEGER ) ) * + 67 AS col2
----
90
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8507
SELECT MIN( ALL + 16 ) * 78
----
1248

skipif mysql # not compatible
query I rowsort label-8507
SELECT MIN ( ALL + 16 ) * 78
----
1248

onlyif mysql # aggregate syntax: 
query I rowsort label-8508
SELECT + COUNT( * ) * - 90 + 8 - 6
----
-88

skipif mysql # not compatible
query I rowsort label-8508
SELECT + COUNT ( * ) * - 90 + 8 - 6
----
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-8509
SELECT ALL - MAX( ALL - 51 ) col2
----
51

skipif mysql # not compatible
query I rowsort label-8509
SELECT ALL - MAX ( ALL - 51 ) col2
----
51

query I rowsort
SELECT 90 * + 89 * ( + 40 ) * 73
----
23389200

query I rowsort
SELECT DISTINCT - 9 - + 20 + 61 - + 89 * + 99
----
-8779

onlyif mysql # aggregate syntax: 
query I rowsort label-8512
SELECT + 93 * 24 * - ( ( - 16 ) ) * + ( - 34 ) + COUNT( * ) - + 54 col0
----
-1214261

skipif mysql # not compatible
query I rowsort label-8512
SELECT + 93 * 24 * - ( ( - 16 ) ) * + ( - 34 ) + COUNT ( * ) - + 54 col0
----
-1214261

onlyif mysql # DIV for integer division: 
query I rowsort label-8513
SELECT - ( + 68 ) DIV + NULLIF ( - 38, - AVG ( 93 ) * 43 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-8513
SELECT - ( + 68 ) / + NULLIF ( - 38, - AVG ( 93 ) * 43 ) AS col0
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8514
SELECT ALL 23 DIV MAX( 45 ) * - COALESCE ( + COALESCE ( 34, 26 ) * - 76, + 76 * - 54 - + 81 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-8514
SELECT ALL 23 / MAX ( 45 ) * - COALESCE ( + COALESCE ( 34, 26 ) * - 76, + 76 * - 54 - + 81 ) AS col1
----
0

query I rowsort
SELECT DISTINCT + 23 * - + 62
----
-1426

onlyif mysql # aggregate syntax: 
query II rowsort label-8516
SELECT 90, - COUNT( * ) * 49 AS col2
----
90
-49

skipif mysql # not compatible
query II rowsort label-8516
SELECT 90, - COUNT ( * ) * 49 AS col2
----
90
-49

query I rowsort
SELECT ALL + 74 + + 52 AS col0
----
126

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8518
SELECT + CASE - 90 WHEN + 52 - 95 THEN NULL ELSE 55 + + COUNT( * ) DIV 38 END
----
55

skipif mysql # not compatible
query I rowsort label-8518
SELECT + CASE - 90 WHEN + 52 - 95 THEN NULL ELSE 55 + + COUNT ( * ) / 38 END
----
55

query I rowsort
SELECT 93 * 88 - + + 3 + + 33 * + 45
----
9666

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8520
SELECT ALL - 88 * - CAST( + + 5 AS SIGNED ) * + 31
----
13640

skipif mysql # not compatible
query I rowsort label-8520
SELECT ALL - 88 * - CAST ( + + 5 AS INTEGER ) * + 31
----
13640

onlyif mysql # aggregate syntax: 
query I rowsort label-8521
SELECT ALL + 30 + + 34 + COUNT( * ) + + 0 AS col1
----
65

skipif mysql # not compatible
query I rowsort label-8521
SELECT ALL + 30 + + 34 + COUNT ( * ) + + 0 AS col1
----
65

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8522
SELECT - 39 * - CAST( - + CAST( NULL AS SIGNED ) AS SIGNED ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8522
SELECT - 39 * - CAST ( - + CAST ( NULL AS INTEGER ) AS INTEGER ) col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8523
SELECT ALL + 38 + COUNT( * ) AS col0
----
39

skipif mysql # not compatible
query I rowsort label-8523
SELECT ALL + 38 + COUNT ( * ) AS col0
----
39

query II rowsort
SELECT + 43 AS col0, 77 AS col2
----
43
77

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8525
SELECT ALL 59, 35 * - CAST( NULL AS SIGNED ) AS col0
----
59
NULL

skipif mysql # not compatible
query II rowsort label-8525
SELECT ALL 59, 35 * - CAST ( NULL AS INTEGER ) AS col0
----
59
NULL

query I rowsort
SELECT + 6 + - COALESCE ( + 80, + 65 ) * 5
----
-394

onlyif mysql # aggregate syntax: 
query I rowsort label-8527
SELECT ALL + ( - - NULLIF ( + + COUNT( * ), 70 * 34 + - ( + MAX( DISTINCT + 15 ) + + 22 * 37 ) ) ) + MAX( DISTINCT - 25 )
----
-24

skipif mysql # not compatible
query I rowsort label-8527
SELECT ALL + ( - - NULLIF ( + + COUNT ( * ), 70 * 34 + - ( + MAX ( DISTINCT + 15 ) + + 22 * 37 ) ) ) + MAX ( DISTINCT - 25 )
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-8528
SELECT - CASE 67 WHEN 7 - - 50 THEN + MIN( ALL - 41 ) WHEN COUNT( * ) - MAX( DISTINCT 13 ) THEN NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8528
SELECT - CASE 67 WHEN 7 - - 50 THEN + MIN ( ALL - 41 ) WHEN COUNT ( * ) - MAX ( DISTINCT 13 ) THEN NULL END AS col0
----
NULL

query I rowsort
SELECT 58 + + - 80
----
-22

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8530
SELECT 39 DIV + COUNT( ALL - 6 )
----
39

skipif mysql # not compatible
query I rowsort label-8530
SELECT 39 / + COUNT ( ALL - 6 )
----
39

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8531
SELECT CASE - + ( 39 ) WHEN - - CASE + 69 WHEN CAST( NULL AS SIGNED ) THEN + COUNT( * ) + + 6 WHEN - 29 DIV - 67 THEN NULL ELSE NULL END DIV - 3 - - COUNT( * ) THEN NULL ELSE 81 DIV + 11 END + + NULLIF ( MAX( + 33 ), 88 )
----
40

skipif mysql # not compatible
query I rowsort label-8531
SELECT CASE - + ( 39 ) WHEN - - CASE + 69 WHEN CAST ( NULL AS INTEGER ) THEN + COUNT ( * ) + + 6 WHEN - 29 / - 67 THEN NULL ELSE NULL END / - 3 - - COUNT ( * ) THEN NULL ELSE 81 / + 11 END + + NULLIF ( MAX ( + 33 ), 88 )
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-8532
SELECT DISTINCT 18 * + COUNT( * )
----
18

skipif mysql # not compatible
query I rowsort label-8532
SELECT DISTINCT 18 * + COUNT ( * )
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-8533
SELECT ( + + 75 ) + + COALESCE ( - NULLIF ( 12, - 27 ), 86, 93 * 6 + ( - COUNT( * ) - + 0 * ( 22 ) ) ) AS col1
----
63

skipif mysql # not compatible
query I rowsort label-8533
SELECT ( + + 75 ) + + COALESCE ( - NULLIF ( 12, - 27 ), 86, 93 * 6 + ( - COUNT ( * ) - + 0 * ( 22 ) ) ) AS col1
----
63

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8534
SELECT 74 * + 4 * - - COALESCE ( ( 85 ), + 46 * + 1 + - CAST( NULL AS SIGNED ), + 25 * 39 )
----
25160

skipif mysql # not compatible
query I rowsort label-8534
SELECT 74 * + 4 * - - COALESCE ( ( 85 ), + 46 * + 1 + - CAST ( NULL AS INTEGER ), + 25 * 39 )
----
25160

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8535
SELECT CAST( AVG ( DISTINCT + + 48 ) AS SIGNED ) * COUNT( 99 ) * 45 - - 7 col0
----
2167

skipif mysql # not compatible
query I rowsort label-8535
SELECT CAST ( AVG ( DISTINCT + + 48 ) AS INTEGER ) * COUNT ( 99 ) * 45 - - 7 col0
----
2167

query I rowsort
SELECT CASE + + 54 WHEN - 64 THEN NULL WHEN - AVG ( - 43 ) THEN + 30 ELSE NULL END * 83 AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8537
SELECT - 30 * 49 * - ( + 22 ) - - CAST( COUNT( * ) AS SIGNED ) * 68
----
32408

skipif mysql # not compatible
query I rowsort label-8537
SELECT - 30 * 49 * - ( + 22 ) - - CAST ( COUNT ( * ) AS INTEGER ) * 68
----
32408

onlyif mysql # DIV for integer division: 
query I rowsort label-8538
SELECT 50 DIV - 40 + 69
----
68

skipif mysql # not compatible
query I rowsort label-8538
SELECT 50 / - 40 + 69
----
68

query I rowsort
SELECT 25 * + 2
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-8540
SELECT ALL MIN( ALL + 97 ) * + 4 + + 19 col2
----
407

skipif mysql # not compatible
query I rowsort label-8540
SELECT ALL MIN ( ALL + 97 ) * + 4 + + 19 col2
----
407

query I rowsort
SELECT + 53 * + 32 + 7 + + - 4 AS col0
----
1699

query I rowsort
SELECT DISTINCT + 27 * + 67 + 97 + + ( - NULLIF ( + 97, 89 ) ) AS col1
----
1809

query I rowsort
SELECT DISTINCT - 59 * 85 + + 32 * 0 * + 72 + - 75
----
-5090

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8544
SELECT + 60 + + 6 DIV - 22 + COUNT( - 3 )
----
61

skipif mysql # not compatible
query I rowsort label-8544
SELECT + 60 + + 6 / - 22 + COUNT ( - 3 )
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-8545
SELECT ALL - ( 26 ) * - 40 + - - COUNT( * )
----
1041

skipif mysql # not compatible
query I rowsort label-8545
SELECT ALL - ( 26 ) * - 40 + - - COUNT ( * )
----
1041

query I rowsort
SELECT DISTINCT + 88 * + 51 + + - 11
----
4477

query I rowsort
SELECT ALL - 52 * - 87 + - 0
----
4524

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8548
SELECT 90 + + COUNT( * ) DIV 15 * 46 * + COUNT( * )
----
90

skipif mysql # not compatible
query I rowsort label-8548
SELECT 90 + + COUNT ( * ) / 15 * 46 * + COUNT ( * )
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-8549
SELECT ALL + - 73 * - 39 * - - ( + - COUNT( * ) ) * ( 32 + 45 ) + - 6 AS col1
----
-219225

skipif mysql # not compatible
query I rowsort label-8549
SELECT ALL + - 73 * - 39 * - - ( + - COUNT ( * ) ) * ( 32 + 45 ) + - 6 AS col1
----
-219225

query I rowsort
SELECT - 78 * + 30 + + - 6 + + 82 AS col1
----
-2264

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8551
SELECT DISTINCT - - 8 * + COALESCE ( + 66, - 74, 68 ) + COALESCE ( 79, + CASE 16 WHEN + COUNT( * ) THEN - COUNT( * ) DIV + 89 + - 49 WHEN 0 THEN NULL END ) * - CAST( SUM( DISTINCT + 85 ) * + 31 + + 27 AS SIGNED ) AS col0
----
-209770

skipif mysql # not compatible
query I rowsort label-8551
SELECT DISTINCT - - 8 * + COALESCE ( + 66, - 74, 68 ) + COALESCE ( 79, + CASE 16 WHEN + COUNT ( * ) THEN - COUNT ( * ) / + 89 + - 49 WHEN 0 THEN NULL END ) * - CAST ( SUM ( DISTINCT + 85 ) * + 31 + + 27 AS INTEGER ) AS col0
----
-209770

query I rowsort
SELECT - 23 + + ( + 65 ) - - 36 AS col2
----
78

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8553
SELECT ALL + + ( - 89 ) + - - CAST( + 51 AS SIGNED ) AS col1
----
-38

skipif mysql # not compatible
query I rowsort label-8553
SELECT ALL + + ( - 89 ) + - - CAST ( + 51 AS INTEGER ) AS col1
----
-38

query I rowsort
SELECT + + 62 * + - 66 AS col0
----
-4092

query I rowsort
SELECT - + 56 * - 99 AS col2
----
5544

query I rowsort
SELECT DISTINCT - 51 * - - 36 AS col0
----
-1836

onlyif mysql # aggregate syntax: 
query I rowsort label-8557
SELECT DISTINCT COUNT( * ) + + 28 - - 22 * + - SUM( DISTINCT + 3 ) AS col2
----
-37

skipif mysql # not compatible
query I rowsort label-8557
SELECT DISTINCT COUNT ( * ) + + 28 - - 22 * + - SUM ( DISTINCT + 3 ) AS col2
----
-37

query I rowsort
SELECT ALL - + 19 * + 46
----
-874

onlyif mysql # DIV for integer division: 
query I rowsort label-8559
SELECT - + 12 DIV 85
----
0

skipif mysql # not compatible
query I rowsort label-8559
SELECT - + 12 / 85
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8560
SELECT ALL + COUNT( * ) - - COUNT( * ) + + 7 AS col1
----
9

skipif mysql # not compatible
query I rowsort label-8560
SELECT ALL + COUNT ( * ) - - COUNT ( * ) + + 7 AS col1
----
9

query I rowsort
SELECT - COALESCE ( - 56, + 21 + + 8 * - 53 )
----
56

query I rowsort
SELECT ALL + - 6 - + + 76 AS col2
----
-82

onlyif mysql # aggregate syntax: 
query II rowsort label-8563
SELECT ALL COUNT( * ), 31 + + - COALESCE ( 48, 83 ) * 42 AS col1
----
1
-1985

skipif mysql # not compatible
query II rowsort label-8563
SELECT ALL COUNT ( * ), 31 + + - COALESCE ( 48, 83 ) * 42 AS col1
----
1
-1985

onlyif mysql # aggregate syntax: 
query I rowsort label-8564
SELECT DISTINCT CASE - - 2 WHEN 79 THEN - 48 / + COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-8564
SELECT DISTINCT CASE - - 2 WHEN 79 THEN - 48 / + COUNT ( * ) END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8565
SELECT ALL + 90 - - - 37 - 7 * + - 51 * 47 * + COUNT( * )
----
16832

skipif mysql # not compatible
query I rowsort label-8565
SELECT ALL + 90 - - - 37 - 7 * + - 51 * 47 * + COUNT ( * )
----
16832

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8566
SELECT - MIN( DISTINCT + 94 ) * + - 87 * - - COUNT( * ) + COUNT( * ) DIV + COUNT( * )
----
8179

skipif mysql # not compatible
query I rowsort label-8566
SELECT - MIN ( DISTINCT + 94 ) * + - 87 * - - COUNT ( * ) + COUNT ( * ) / + COUNT ( * )
----
8179

onlyif mysql # aggregate syntax: 
query I rowsort label-8567
SELECT - COUNT( ALL + 47 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-8567
SELECT - COUNT ( ALL + 47 ) AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8568
SELECT DISTINCT CASE + 15 WHEN - 94 THEN NULL WHEN + NULLIF ( - - COUNT( * ), COUNT( * ) + 36 ) THEN 83 * 27 + + NULLIF ( - 75 + + 48, 46 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-8568
SELECT DISTINCT CASE + 15 WHEN - 94 THEN NULL WHEN + NULLIF ( - - COUNT ( * ), COUNT ( * ) + 36 ) THEN 83 * 27 + + NULLIF ( - 75 + + 48, 46 ) END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8569
SELECT ALL NULLIF ( COUNT( * ), - - COALESCE ( - + 52, + - AVG ( - ( + 18 ) ) ) )
----
1

skipif mysql # not compatible
query I rowsort label-8569
SELECT ALL NULLIF ( COUNT ( * ), - - COALESCE ( - + 52, + - AVG ( - ( + 18 ) ) ) )
----
1

query I rowsort
SELECT ALL + 54 * - 54 AS col0
----
-2916

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8571
SELECT - ( + CAST( NULL AS SIGNED ) ) * COUNT( - + 54 ) + + 23 * COUNT( - 56 * + 95 + 24 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8571
SELECT - ( + CAST ( NULL AS INTEGER ) ) * COUNT ( - + 54 ) + + 23 * COUNT ( - 56 * + 95 + 24 )
----
NULL

query I rowsort
SELECT ALL ( + 10 ) * + + 95
----
950

onlyif mysql # aggregate syntax: 
query II rowsort label-8573
SELECT ALL + 55 * COUNT( + 52 ) col0, 38 AS col1
----
55
38

skipif mysql # not compatible
query II rowsort label-8573
SELECT ALL + 55 * COUNT ( + 52 ) col0, 38 AS col1
----
55
38

onlyif mysql # aggregate syntax: 
query I rowsort label-8574
SELECT ALL ( - MIN( DISTINCT + 58 ) ) AS col1
----
-58

skipif mysql # not compatible
query I rowsort label-8574
SELECT ALL ( - MIN ( DISTINCT + 58 ) ) AS col1
----
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-8575
SELECT ALL 63 * - MIN( - - 37 )
----
-2331

skipif mysql # not compatible
query I rowsort label-8575
SELECT ALL 63 * - MIN ( - - 37 )
----
-2331

onlyif mysql # DIV for integer division: 
query I rowsort label-8576
SELECT - 69 DIV + 34 AS col0
----
-2

skipif mysql # not compatible
query I rowsort label-8576
SELECT - 69 / + 34 AS col0
----
-2

query I rowsort
SELECT - 86 * + 36 AS col2
----
-3096

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8578
SELECT ALL ( - COUNT( * ) ) / - CAST( NULL AS SIGNED ) + 25 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8578
SELECT ALL ( - COUNT ( * ) ) / - CAST ( NULL AS INTEGER ) + 25 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8579
SELECT ALL + COUNT( * ) DIV COALESCE ( + 94, + CAST( NULL AS SIGNED ) * - + MAX( ALL 46 ) + + 75 DIV COALESCE ( COUNT( ALL 5 ), + 96, + 59 ) )
----
0

skipif mysql # not compatible
query I rowsort label-8579
SELECT ALL + COUNT ( * ) / COALESCE ( + 94, + CAST ( NULL AS INTEGER ) * - + MAX ( ALL 46 ) + + 75 / COALESCE ( COUNT ( ALL 5 ), + 96, + 59 ) )
----
0

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8580
SELECT + ( NULLIF ( + 50, - 1 * - 23 + CAST( NULL AS SIGNED ) DIV 99 ) ) DIV + 46 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-8580
SELECT + ( NULLIF ( + 50, - 1 * - 23 + CAST ( NULL AS INTEGER ) / 99 ) ) / + 46 AS col2
----
1

onlyif mysql # DIV for integer division: 
query II rowsort label-8581
SELECT ALL + - 83 DIV - - 7 + + + 92, 76 AS col2
----
81
76

skipif mysql # not compatible
query II rowsort label-8581
SELECT ALL + - 83 / - - 7 + + + 92, 76 AS col2
----
81
76

onlyif mysql # aggregate syntax: 
query I rowsort label-8582
SELECT ALL - - COUNT( DISTINCT - 91 ) * - 75 + + 50 col1
----
-25

skipif mysql # not compatible
query I rowsort label-8582
SELECT ALL - - COUNT ( DISTINCT - 91 ) * - 75 + + 50 col1
----
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-8583
SELECT + MIN( ALL + - ( + ( + 99 ) ) )
----
-99

skipif mysql # not compatible
query I rowsort label-8583
SELECT + MIN ( ALL + - ( + ( + 99 ) ) )
----
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-8584
SELECT DISTINCT - - 31 * 12 + + - COUNT( * ) + + 62 * COUNT( * )
----
433

skipif mysql # not compatible
query I rowsort label-8584
SELECT DISTINCT - - 31 * 12 + + - COUNT ( * ) + + 62 * COUNT ( * )
----
433

query II rowsort
SELECT 62 col0, + 84
----
62
84

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8586
SELECT ALL + CAST( NULL AS SIGNED ) * - + 32 - + AVG ( + + 31 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8586
SELECT ALL + CAST ( NULL AS INTEGER ) * - + 32 - + AVG ( + + 31 ) AS col0
----
NULL

query I rowsort
SELECT ALL + 40 * + 93 + - 53 - + 58
----
3609

query II rowsort
SELECT + 44 AS col2, 95 AS col2
----
44
95

onlyif mysql # aggregate syntax: 
query I rowsort label-8589
SELECT ALL - 75 * COUNT( * ) - 7
----
-82

skipif mysql # not compatible
query I rowsort label-8589
SELECT ALL - 75 * COUNT ( * ) - 7
----
-82

query I rowsort
SELECT + 97 * + - 90
----
-8730

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8591
SELECT - + 75 - - ( + CAST( NULL AS SIGNED ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8591
SELECT - + 75 - - ( + CAST ( NULL AS INTEGER ) ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8592
SELECT COUNT( * ) * + 24 + - 31 AS col2
----
-7

skipif mysql # not compatible
query I rowsort label-8592
SELECT COUNT ( * ) * + 24 + - 31 AS col2
----
-7

query I rowsort
SELECT + 83 * + 53
----
4399

query I rowsort
SELECT - 89 * + - 44 AS col2
----
3916

query II rowsort
SELECT - 71 AS col2, + 52 - + - 54 - + ( - - 49 )
----
-71
57

query I rowsort
SELECT ALL - 31 * - 54 AS col0
----
1674

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8597
SELECT + 35 + - - 4 + - SUM( ALL + ( + 87 ) ) DIV + 92
----
39

skipif mysql # not compatible
query I rowsort label-8597
SELECT + 35 + - - 4 + - SUM ( ALL + ( + 87 ) ) / + 92
----
39

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8598
SELECT ALL 41 DIV - - 14 AS col1, COUNT( * )
----
2
1

skipif mysql # not compatible
query II rowsort label-8598
SELECT ALL 41 / - - 14 AS col1, COUNT ( * )
----
2
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8599
SELECT - 53 * - + CASE - + COUNT( * ) WHEN 2 THEN - 15 * - 1 WHEN - 93 + 69 THEN ( + MAX( 40 ) ) * 37 - + CAST( COUNT( * ) AS SIGNED ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8599
SELECT - 53 * - + CASE - + COUNT ( * ) WHEN 2 THEN - 15 * - 1 WHEN - 93 + 69 THEN ( + MAX ( 40 ) ) * 37 - + CAST ( COUNT ( * ) AS INTEGER ) END AS col1
----
NULL

query I rowsort
SELECT - ( + 59 ) + - - 79 AS col1
----
20

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-8601
SELECT ALL CAST( NULL AS DECIMAL ) AS col0, 89
----
NULL
89

skipif mysql # not compatible
query II rowsort label-8601
SELECT ALL CAST ( NULL AS REAL ) AS col0, 89
----
NULL
89

query II rowsort
SELECT - 39 AS col1, + 25 - 56
----
-39
-31

query I rowsort
SELECT DISTINCT NULLIF ( 38, + 13 * - NULLIF ( - + ( 97 ), - 30 * + CASE 18 WHEN 60 THEN 94 * - ( + 74 ) WHEN 16 * + 1 + - 34 * + 75 THEN - 18 END ) + 58 )
----
38

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8604
SELECT + CAST( + + 57 AS SIGNED ) * + + 82 * + - 73 + + ( + - 36 ) AS col1
----
-341238

skipif mysql # not compatible
query I rowsort label-8604
SELECT + CAST ( + + 57 AS INTEGER ) * + + 82 * + - 73 + + ( + - 36 ) AS col1
----
-341238

onlyif mysql # aggregate syntax: 
query I rowsort label-8605
SELECT - 99 * + 60 * - + NULLIF ( - 34, + NULLIF ( - COUNT( * ), - 43 ) * 94 )
----
-201960

skipif mysql # not compatible
query I rowsort label-8605
SELECT - 99 * + 60 * - + NULLIF ( - 34, + NULLIF ( - COUNT ( * ), - 43 ) * 94 )
----
-201960

query I rowsort
SELECT - 58 + - + 43
----
-101

query II rowsort
SELECT - 5 AS col2, + 23
----
-5
23

onlyif mysql # aggregate syntax: 
query I rowsort label-8608
SELECT ALL - COUNT( * ) + - - SUM( ALL + - 70 )
----
-71

skipif mysql # not compatible
query I rowsort label-8608
SELECT ALL - COUNT ( * ) + - - SUM ( ALL + - 70 )
----
-71

query II rowsort
SELECT - 63 + - 66, - 94 AS col0
----
-129
-94

query I rowsort
SELECT DISTINCT - 51 + ( + 98 ) AS col0
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-8611
SELECT ALL CASE - 24 WHEN + 92 * + 44 * + COUNT( * ) * 77 THEN 20 * 35 END
----
NULL

skipif mysql # not compatible
query I rowsort label-8611
SELECT ALL CASE - 24 WHEN + 92 * + 44 * + COUNT ( * ) * 77 THEN 20 * 35 END
----
NULL

query I rowsort
SELECT - 39 + - 18 AS col2
----
-57

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8613
SELECT ALL - 67 + - COALESCE ( - - 8, - + SUM( DISTINCT + - CAST( + 49 AS DECIMAL ) ) ) + - CASE 31 WHEN + 46 + + 37 THEN NULL WHEN COUNT( + 79 ) - - ( + 86 + 38 ) THEN + 96 + COUNT( * ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-8613
SELECT ALL - 67 + - COALESCE ( - - 8, - + SUM ( DISTINCT + - CAST ( + 49 AS REAL ) ) ) + - CASE 31 WHEN + 46 + + 37 THEN NULL WHEN COUNT ( + 79 ) - - ( + 86 + 38 ) THEN + 96 + COUNT ( * ) ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8614
SELECT - AVG ( + CAST( NULL AS SIGNED ) ) - - 46 + - MIN( DISTINCT 79 ) * + 72
----
NULL

skipif mysql # not compatible
query I rowsort label-8614
SELECT - AVG ( + CAST ( NULL AS INTEGER ) ) - - 46 + - MIN ( DISTINCT 79 ) * + 72
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8615
SELECT - + CAST( + 80 AS SIGNED ) * 21 + + NULLIF ( 12, 93 ) * ( - 70 )
----
-2520

skipif mysql # not compatible
query I rowsort label-8615
SELECT - + CAST ( + 80 AS INTEGER ) * 21 + + NULLIF ( 12, 93 ) * ( - 70 )
----
-2520

query I rowsort
SELECT DISTINCT + - 90 + + ( - 4 ) AS col1
----
-94

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8617
SELECT CASE + + 34 WHEN + CAST( COUNT( * ) AS SIGNED ) THEN - 27 ELSE 79 END
----
79

skipif mysql # not compatible
query I rowsort label-8617
SELECT CASE + + 34 WHEN + CAST ( COUNT ( * ) AS INTEGER ) THEN - 27 ELSE 79 END
----
79

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8618
SELECT 6 DIV 83 - CASE WHEN NULL = + 75 THEN NULL WHEN NOT - AVG ( ALL 80 ) NOT BETWEEN COUNT( * ) * 14 AND + 26 * - COUNT( * ) THEN NULL ELSE + 74 END + + ( ( 5 ) )
----
-69

skipif mysql # not compatible
query I rowsort label-8618
SELECT 6 / 83 - CASE WHEN NULL = + 75 THEN NULL WHEN NOT - AVG ( ALL 80 ) NOT BETWEEN COUNT ( * ) * 14 AND + 26 * - COUNT ( * ) THEN NULL ELSE + 74 END + + ( ( 5 ) )
----
-69

onlyif mysql # aggregate syntax: 
query II rowsort label-8619
SELECT + + NULLIF ( + 98, - COUNT( * ) / + + 54 ) AS col2, 73 AS col0
----
98
73

skipif mysql # not compatible
query II rowsort label-8619
SELECT + + NULLIF ( + 98, - COUNT ( * ) / + + 54 ) AS col2, 73 AS col0
----
98
73

query I rowsort
SELECT + ( + - ( - 27 ) )
----
27

query I rowsort
SELECT - - 50 * + + 48 + 42 * - + 13 * - 18
----
12228

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8622
SELECT 68 * - CAST( NULL AS SIGNED ) AS col1, 43 + - COUNT( DISTINCT - + 61 ) + + 61 + 17 AS col0
----
NULL
120

skipif mysql # not compatible
query II rowsort label-8622
SELECT 68 * - CAST ( NULL AS INTEGER ) AS col1, 43 + - COUNT ( DISTINCT - + 61 ) + + 61 + 17 AS col0
----
NULL
120

query I rowsort
SELECT ALL + + 48 * - - 44
----
2112

onlyif mysql # aggregate syntax: 
query I rowsort label-8624
SELECT - 58 + 58 + - - MIN( - - 3 ) AS col1
----
3

skipif mysql # not compatible
query I rowsort label-8624
SELECT - 58 + 58 + - - MIN ( - - 3 ) AS col1
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8625
SELECT + 81 + - - 40 + - COUNT( * ) * - 32 * CASE CAST( CASE 80 WHEN + 11 THEN NULL WHEN 29 THEN NULL ELSE - CAST( NULL AS SIGNED ) END AS DECIMAL ) WHEN COUNT( * ) + - MAX( ALL 30 ) * + CAST( - 48 + - 24 * - 76 AS DECIMAL ) THEN - SUM( ALL - 75 ) END * - 99 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8625
SELECT + 81 + - - 40 + - COUNT ( * ) * - 32 * CASE CAST ( CASE 80 WHEN + 11 THEN NULL WHEN 29 THEN NULL ELSE - CAST ( NULL AS INTEGER ) END AS REAL ) WHEN COUNT ( * ) + - MAX ( ALL 30 ) * + CAST ( - 48 + - 24 * - 76 AS REAL ) THEN - SUM ( ALL - 75 ) END * - 99 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8626
SELECT + - 37 AS col0, + COUNT( - ( - 67 ) ) * - 20 + - COUNT( * ) * 89
----
-37
-109

skipif mysql # not compatible
query II rowsort label-8626
SELECT + - 37 AS col0, + COUNT ( - ( - 67 ) ) * - 20 + - COUNT ( * ) * 89
----
-37
-109

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8627
SELECT ( - 4 ) * COUNT( ALL 27 ) + + 27 + + 35 DIV SUM( ALL + 68 )
----
23

skipif mysql # not compatible
query I rowsort label-8627
SELECT ( - 4 ) * COUNT ( ALL 27 ) + + 27 + + 35 / SUM ( ALL + 68 )
----
23

onlyif mysql # aggregate syntax: 
query II rowsort label-8628
SELECT ALL - + 64 AS col1, + 60 + COUNT( * ) AS col0
----
-64
61

skipif mysql # not compatible
query II rowsort label-8628
SELECT ALL - + 64 AS col1, + 60 + COUNT ( * ) AS col0
----
-64
61

query I rowsort
SELECT ( + + 19 ) col2
----
19

query I rowsort
SELECT + 43 * 67 * + + 84 * 95 + - 52 - - + 56 + - 56 * 97
----
22984952

onlyif mysql # aggregate syntax: 
query I rowsort label-8631
SELECT 16 * + 98 * - COUNT( * ) * COALESCE ( + 80, 93 + + COUNT( * ), 58 * - 54 ) + 54
----
-125386

skipif mysql # not compatible
query I rowsort label-8631
SELECT 16 * + 98 * - COUNT ( * ) * COALESCE ( + 80, 93 + + COUNT ( * ), 58 * - 54 ) + 54
----
-125386

onlyif mysql # aggregate syntax: 
query I rowsort label-8632
SELECT 93 + - 29 * + 27 * COUNT( ALL 34 ) AS col1
----
-690

skipif mysql # not compatible
query I rowsort label-8632
SELECT 93 + - 29 * + 27 * COUNT ( ALL 34 ) AS col1
----
-690

query I rowsort
SELECT ALL 71 * - 70 AS col1
----
-4970

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8634
SELECT DISTINCT 89 * SUM( + CAST( - - 75 AS SIGNED ) )
----
6675

skipif mysql # not compatible
query I rowsort label-8634
SELECT DISTINCT 89 * SUM ( + CAST ( - - 75 AS INTEGER ) )
----
6675

onlyif mysql # aggregate syntax: 
query I rowsort label-8635
SELECT 90 * COUNT( * ) * + + 26
----
2340

skipif mysql # not compatible
query I rowsort label-8635
SELECT 90 * COUNT ( * ) * + + 26
----
2340

onlyif mysql # aggregate syntax: 
query I rowsort label-8636
SELECT ALL 35 * + - NULLIF ( + COUNT( * ), + 38 ) * 55 AS col1
----
-1925

skipif mysql # not compatible
query I rowsort label-8636
SELECT ALL 35 * + - NULLIF ( + COUNT ( * ), + 38 ) * 55 AS col1
----
-1925

query I rowsort
SELECT ALL 94 + 75
----
169

onlyif mysql # aggregate syntax: 
query I rowsort label-8638
SELECT COALESCE ( - - COUNT( * ), 0, 57 ) * 90 + - 42 - + 15
----
33

skipif mysql # not compatible
query I rowsort label-8638
SELECT COALESCE ( - - COUNT ( * ), 0, 57 ) * 90 + - 42 - + 15
----
33

query II rowsort
SELECT 15 + - - 84 * 96 - 23 - - 87, 81 AS col1
----
8143
81

query I rowsort
SELECT ALL ( 50 ) + + 68 AS col0
----
118

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8641
SELECT DISTINCT COUNT( ALL 35 ) + + - SUM( ALL + + CAST( NULL AS SIGNED ) ) + - 55 AS col1, 34 / + 84 * + 93 - + CAST( NULL AS SIGNED )
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-8641
SELECT DISTINCT COUNT ( ALL 35 ) + + - SUM ( ALL + + CAST ( NULL AS INTEGER ) ) + - 55 AS col1, 34 / + 84 * + 93 - + CAST ( NULL AS INTEGER )
----
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8642
SELECT ALL + MIN( - + 90 ) * 65
----
-5850

skipif mysql # not compatible
query I rowsort label-8642
SELECT ALL + MIN ( - + 90 ) * 65
----
-5850

onlyif mysql # DIV for integer division: 
query I rowsort label-8643
SELECT COALESCE ( - + 96, + - 98 * - 70 * + 40, + - 42, - - 75 ) DIV - 20
----
4

skipif mysql # not compatible
query I rowsort label-8643
SELECT COALESCE ( - + 96, + - 98 * - 70 * + 40, + - 42, - - 75 ) / - 20
----
4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8644
SELECT 8 - + 77 + + 87 + - - CAST( 67 AS SIGNED )
----
85

skipif mysql # not compatible
query I rowsort label-8644
SELECT 8 - + 77 + + 87 + - - CAST ( 67 AS INTEGER )
----
85

query II rowsort
SELECT 18 - - 52 * - + 70, + 20 col1
----
-3622
20

query I rowsort
SELECT DISTINCT - ( - 83 ) * 63 AS col1
----
5229

query II rowsort
SELECT ALL 80 + - + 87 AS col0, 16 * 25 * + 85 AS col2
----
-7
34000

query I rowsort
SELECT 98 + + 48 + - 77 col2
----
69

onlyif mysql # aggregate syntax: 
query II rowsort label-8649
SELECT ( + 38 ) AS col0, - 5 + + MAX( - 33 ) + - 72 AS col0
----
38
-110

skipif mysql # not compatible
query II rowsort label-8649
SELECT ( + 38 ) AS col0, - 5 + + MAX ( - 33 ) + - 72 AS col0
----
38
-110

query I rowsort
SELECT - 49 + - 36 col0
----
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-8651
SELECT DISTINCT - 4 + - 90 * + COUNT( * )
----
-94

skipif mysql # not compatible
query I rowsort label-8651
SELECT DISTINCT - 4 + - 90 * + COUNT ( * )
----
-94

query I rowsort
SELECT ALL + NULLIF ( 54, - 93 / - - 62 * - - 92 ) AS col0
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-8653
SELECT - 16 * + 71 + - 2 * CASE - 91 WHEN 11 THEN + 54 * 4 ELSE NULL END + COUNT( 68 + 24 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8653
SELECT - 16 * + 71 + - 2 * CASE - 91 WHEN 11 THEN + 54 * 4 ELSE NULL END + COUNT ( 68 + 24 ) AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8654
SELECT ALL - - CAST( 97 AS SIGNED ) - + COUNT( * ) + 44
----
140

skipif mysql # not compatible
query I rowsort label-8654
SELECT ALL - - CAST ( 97 AS INTEGER ) - + COUNT ( * ) + 44
----
140

query I rowsort
SELECT ALL - COALESCE ( - 9, - - ( - 95 ) )
----
9

onlyif mysql # aggregate syntax: 
query II rowsort label-8656
SELECT COUNT( * ) * + - 42 AS col0, + 74 AS col0
----
-42
74

skipif mysql # not compatible
query II rowsort label-8656
SELECT COUNT ( * ) * + - 42 AS col0, + 74 AS col0
----
-42
74

query I rowsort
SELECT + 0 * + 38 * - 60 * - + 89 + + 71
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-8658
SELECT ALL + COUNT( * ) * - COUNT( * ) * - + 36
----
36

skipif mysql # not compatible
query I rowsort label-8658
SELECT ALL + COUNT ( * ) * - COUNT ( * ) * - + 36
----
36

query I rowsort
SELECT - 6 * - 21 * - 56 + + - 45
----
-7101

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8660
SELECT - 45 - - 61 + - COALESCE ( + + COUNT( * ), - CAST( NULL AS SIGNED ) ) DIV 56 AS col1
----
16

skipif mysql # not compatible
query I rowsort label-8660
SELECT - 45 - - 61 + - COALESCE ( + + COUNT ( * ), - CAST ( NULL AS INTEGER ) ) / 56 AS col1
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-8661
SELECT 74 + + 89 + + COUNT( * ) AS col0
----
164

skipif mysql # not compatible
query I rowsort label-8661
SELECT 74 + + 89 + + COUNT ( * ) AS col0
----
164

onlyif mysql # aggregate syntax: 
query I rowsort label-8662
SELECT + 59 * + 57 + - - MIN( + 27 ) * 4 AS col0
----
3471

skipif mysql # not compatible
query I rowsort label-8662
SELECT + 59 * + 57 + - - MIN ( + 27 ) * 4 AS col0
----
3471

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8663
SELECT ALL COUNT( * ) DIV + 56
----
0

skipif mysql # not compatible
query I rowsort label-8663
SELECT ALL COUNT ( * ) / + 56
----
0

query I rowsort
SELECT 93 * - 36 * 42
----
-140616

onlyif mysql # aggregate syntax: 
query I rowsort label-8665
SELECT ALL - 68 + - ( - MAX( 80 ) ) * - + 18
----
-1508

skipif mysql # not compatible
query I rowsort label-8665
SELECT ALL - 68 + - ( - MAX ( 80 ) ) * - + 18
----
-1508

query I rowsort
SELECT 64 + + 96
----
160

query I rowsort
SELECT 95 * 27 - - 7 AS col0
----
2572

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8668
SELECT 73 + - + 44 * + - COUNT( DISTINCT 86 ) + - + 83 + + CAST( NULL AS DECIMAL ) * + 67 + + - COUNT( * ) * COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-8668
SELECT 73 + - + 44 * + - COUNT ( DISTINCT 86 ) + - + 83 + + CAST ( NULL AS REAL ) * + 67 + + - COUNT ( * ) * COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8669
SELECT COALESCE ( - + ( + 0 ), + + COUNT( * ) ) - 64
----
-64

skipif mysql # not compatible
query I rowsort label-8669
SELECT COALESCE ( - + ( + 0 ), + + COUNT ( * ) ) - 64
----
-64

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8670
SELECT ALL COUNT( + 63 ) DIV - 1
----
-1

skipif mysql # not compatible
query I rowsort label-8670
SELECT ALL COUNT ( + 63 ) / - 1
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-8671
SELECT DISTINCT - 47, 79 - + 46 + - COALESCE ( 18, - 11, - ( 26 ) + + ( - 37 + 27 ) * COUNT( * ) ) * + 83 AS col1
----
-47
-1461

skipif mysql # not compatible
query II rowsort label-8671
SELECT DISTINCT - 47, 79 - + 46 + - COALESCE ( 18, - 11, - ( 26 ) + + ( - 37 + 27 ) * COUNT ( * ) ) * + 83 AS col1
----
-47
-1461

query I rowsort
SELECT 18 + - 70 * 46 * + 85 + + 54 AS col0
----
-273628

query I rowsort
SELECT ALL ( 5 ) + - 71 + 49
----
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-8674
SELECT CASE + COUNT( * ) WHEN + - 67 * COUNT( * ) * - + COUNT( * ) + - 40 / 38 THEN 18 END + - 1 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8674
SELECT CASE + COUNT ( * ) WHEN + - 67 * COUNT ( * ) * - + COUNT ( * ) + - 40 / 38 THEN 18 END + - 1 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8675
SELECT ALL MAX( DISTINCT - 30 ) AS col2
----
-30

skipif mysql # not compatible
query I rowsort label-8675
SELECT ALL MAX ( DISTINCT - 30 ) AS col2
----
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-8676
SELECT ALL COUNT( * ) + - 22 AS col1
----
-21

skipif mysql # not compatible
query I rowsort label-8676
SELECT ALL COUNT ( * ) + - 22 AS col1
----
-21

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8677
SELECT COUNT( * ) + - - 97 + + + 84 * - + CAST( COUNT( * ) AS SIGNED )
----
14

skipif mysql # not compatible
query I rowsort label-8677
SELECT COUNT ( * ) + - - 97 + + + 84 * - + CAST ( COUNT ( * ) AS INTEGER )
----
14

query I rowsort
SELECT DISTINCT 46 + - - 85 AS col1
----
131

query II rowsort
SELECT ALL 3 AS col2, + 86
----
3
86

onlyif mysql # aggregate syntax: 
query I rowsort label-8680
SELECT + 92 * - COUNT( + 2 )
----
-92

skipif mysql # not compatible
query I rowsort label-8680
SELECT + 92 * - COUNT ( + 2 )
----
-92

query I rowsort
SELECT + 4 + + - 95
----
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-8682
SELECT - CASE - COUNT( * ) WHEN + COUNT( * ) THEN NULL WHEN - - 49 * 39 THEN NULL ELSE - + 22 - - 88 + + - 38 END col1
----
-28

skipif mysql # not compatible
query I rowsort label-8682
SELECT - CASE - COUNT ( * ) WHEN + COUNT ( * ) THEN NULL WHEN - - 49 * 39 THEN NULL ELSE - + 22 - - 88 + + - 38 END col1
----
-28

query II rowsort
SELECT + 68 + ( 38 ) col2, 82
----
106
82

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8684
SELECT + CASE WHEN 59 IS NULL THEN 7 DIV + + 44 ELSE 9 * COUNT( * ) + COUNT( * ) END * ( COALESCE ( + ( COUNT( * ) ), 56 ) ) AS col2
----
10

skipif mysql # not compatible
query I rowsort label-8684
SELECT + CASE WHEN 59 IS NULL THEN 7 / + + 44 ELSE 9 * COUNT ( * ) + COUNT ( * ) END * ( COALESCE ( + ( COUNT ( * ) ), 56 ) ) AS col2
----
10

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8685
SELECT ALL - 84 DIV 21 + - COUNT( ALL - 62 ) * + + 66 + - 16 AS col0
----
-86

skipif mysql # not compatible
query I rowsort label-8685
SELECT ALL - 84 / 21 + - COUNT ( ALL - 62 ) * + + 66 + - 16 AS col0
----
-86

query I rowsort
SELECT + - 78 + 6
----
-72

query I rowsort
SELECT ALL + 34 * + 67 AS col2
----
2278

onlyif mysql # DIV for integer division: 
query I rowsort label-8688
SELECT ALL 97 DIV 76
----
1

skipif mysql # not compatible
query I rowsort label-8688
SELECT ALL 97 / 76
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8689
SELECT ALL - + SUM( - 50 ) * + ( - + CAST( NULL AS SIGNED ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8689
SELECT ALL - + SUM ( - 50 ) * + ( - + CAST ( NULL AS INTEGER ) ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8690
SELECT - MAX( + - 14 ) AS col1
----
14

skipif mysql # not compatible
query I rowsort label-8690
SELECT - MAX ( + - 14 ) AS col1
----
14

query I rowsort
SELECT + 80 + + 24
----
104

query I rowsort
SELECT DISTINCT 19 * + 64 col2
----
1216

query I rowsort
SELECT + 93 * + 10
----
930

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8694
SELECT + MIN( ALL 18 ) / SUM( DISTINCT + CAST( NULL AS SIGNED ) ) + - + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8694
SELECT + MIN ( ALL 18 ) / SUM ( DISTINCT + CAST ( NULL AS INTEGER ) ) + - + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8695
SELECT ALL - + MIN( + 56 ) * + 35 DIV COUNT( * ) AS col2
----
-1960

skipif mysql # not compatible
query I rowsort label-8695
SELECT ALL - + MIN ( + 56 ) * + 35 / COUNT ( * ) AS col2
----
-1960

onlyif mysql # aggregate syntax: 
query I rowsort label-8696
SELECT + - 77 + + COUNT( * ) AS col1
----
-76

skipif mysql # not compatible
query I rowsort label-8696
SELECT + - 77 + + COUNT ( * ) AS col1
----
-76

query II rowsort
SELECT ALL + + 60, 80 AS col1
----
60
80

query I rowsort
SELECT ALL + ( + 94 ) AS col0
----
94

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8699
SELECT ALL + 38 * - + 34 + - 69 * - CASE - 96 WHEN + 9 + + NULLIF ( + ( 22 ), MIN( ALL 25 ) + + SUM( ALL 6 - 19 ) ) THEN COALESCE ( 61, - 49 * COALESCE ( + 59 * 14, 83 ), ( 72 ) - 87 * - CAST( + 95 * + MAX( + 68 ) AS SIGNED ) ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8699
SELECT ALL + 38 * - + 34 + - 69 * - CASE - 96 WHEN + 9 + + NULLIF ( + ( 22 ), MIN ( ALL 25 ) + + SUM ( ALL 6 - 19 ) ) THEN COALESCE ( 61, - 49 * COALESCE ( + 59 * 14, 83 ), ( 72 ) - 87 * - CAST ( + 95 * + MAX ( + 68 ) AS INTEGER ) ) END AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8700
SELECT + 72 DIV 51 * CASE COALESCE ( + ( CAST( 0 AS SIGNED ) ), COUNT( * ), - 23 ) WHEN - 94 + + 58 THEN NULL WHEN - 29 THEN 34 + 19 * + 68 ELSE - 86 END - 22 + 3
----
-105

skipif mysql # not compatible
query I rowsort label-8700
SELECT + 72 / 51 * CASE COALESCE ( + ( CAST ( 0 AS INTEGER ) ), COUNT ( * ), - 23 ) WHEN - 94 + + 58 THEN NULL WHEN - 29 THEN 34 + 19 * + 68 ELSE - 86 END - 22 + 3
----
-105

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8701
SELECT DISTINCT 39 * - + 30 * - 64 + - CAST( NULL AS SIGNED ) + + 48 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8701
SELECT DISTINCT 39 * - + 30 * - 64 + - CAST ( NULL AS INTEGER ) + + 48 col0
----
NULL

query I rowsort
SELECT ALL 99 * - + CASE + - 43 WHEN + + 55 THEN + 41 + - ( 87 ) * 65 * 28 * 89 + 2 WHEN + ( + 92 ) THEN - CASE 25 WHEN 20 THEN - NULLIF ( + 69, 97 * - 1 ) WHEN + 64 THEN - 79 - 33 * 6 END * + 0 ELSE NULL END + - 34
----
NULL

query I rowsort
SELECT NULLIF ( 62, + 0 ) AS col2
----
62

query I rowsort
SELECT + NULLIF ( + 63, - 41 ) * - 68 AS col2
----
-4284

query I rowsort
SELECT - ( + 66 ) + - 82 AS col1
----
-148

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8706
SELECT 0 * 67 DIV - 74 + - COALESCE ( - 11, + 52 DIV 13 + - - MAX( DISTINCT - 40 ) + - 1 * 32, 76 ) * 77 AS col1
----
847

skipif mysql # not compatible
query I rowsort label-8706
SELECT 0 * 67 / - 74 + - COALESCE ( - 11, + 52 / 13 + - - MAX ( DISTINCT - 40 ) + - 1 * 32, 76 ) * 77 AS col1
----
847

query I rowsort
SELECT ALL + 9 * 78
----
702

query I rowsort
SELECT COALESCE ( 20, + 18, + 90 * + + CASE + 78 WHEN + 99 THEN NULL ELSE + + 81 END )
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-8709
SELECT + 35 + NULLIF ( COUNT( * ), 95 * 38 ) * + 51 AS col1
----
86

skipif mysql # not compatible
query I rowsort label-8709
SELECT + 35 + NULLIF ( COUNT ( * ), 95 * 38 ) * + 51 AS col1
----
86

query I rowsort
SELECT ALL - 15 * 72 + - 80 * + + 36 AS col0
----
-3960

query I rowsort
SELECT ALL + 10 * + + 24 AS col0
----
240

query II rowsort
SELECT DISTINCT + ( + 49 ) col2, - 23 col1
----
49
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-8713
SELECT ALL - COUNT( * ) * 78 + + - 48
----
-126

skipif mysql # not compatible
query I rowsort label-8713
SELECT ALL - COUNT ( * ) * 78 + + - 48
----
-126

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8714
SELECT ALL - ( + ( + - 48 ) ) DIV 28 AS col2, COUNT( DISTINCT 74 ) AS col1
----
1
1

skipif mysql # not compatible
query II rowsort label-8714
SELECT ALL - ( + ( + - 48 ) ) / 28 AS col2, COUNT ( DISTINCT 74 ) AS col1
----
1
1

query I rowsort
SELECT - 63 + + 84 col2
----
21

query I rowsort
SELECT + 69 * 99 col0
----
6831

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8717
SELECT DISTINCT - 47 DIV COUNT( * ) * - - 15 AS col0
----
-705

skipif mysql # not compatible
query I rowsort label-8717
SELECT DISTINCT - 47 / COUNT ( * ) * - - 15 AS col0
----
-705

onlyif mysql # aggregate syntax: 
query I rowsort label-8718
SELECT - + MIN( - 6 ) AS col1
----
6

skipif mysql # not compatible
query I rowsort label-8718
SELECT - + MIN ( - 6 ) AS col1
----
6

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8719
SELECT - + ( + + ( + MIN( - 47 ) ) ) - + + ( - + 36 ) + - ( + 23 ) DIV 73 * - COUNT( * )
----
83

skipif mysql # not compatible
query I rowsort label-8719
SELECT - + ( + + ( + MIN ( - 47 ) ) ) - + + ( - + 36 ) + - ( + 23 ) / 73 * - COUNT ( * )
----
83

query I rowsort
SELECT + - 75 - - + 6 + - + 8 + + 75
----
-2

query I rowsort
SELECT DISTINCT - NULLIF ( - 5, CASE + + 57 WHEN - NULLIF ( 92, 17 * 75 * + NULLIF ( AVG ( 20 ), 40 ) + - 93 * + 82 ) THEN + 68 * - 10 WHEN ( + 67 ) THEN NULL END / - 62 )
----
5

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8722
SELECT ALL + - CAST( NULL AS DECIMAL ) * + + ( + + AVG ( ALL + - 74 ) ) - - 65
----
NULL

skipif mysql # not compatible
query I rowsort label-8722
SELECT ALL + - CAST ( NULL AS REAL ) * + + ( + + AVG ( ALL + - 74 ) ) - - 65
----
NULL

query I rowsort
SELECT + 25 * - - 68 col2
----
1700

onlyif mysql # aggregate syntax: 
query I rowsort label-8724
SELECT - ( - 67 ) + + + COUNT( * ) AS col2
----
68

skipif mysql # not compatible
query I rowsort label-8724
SELECT - ( - 67 ) + + + COUNT ( * ) AS col2
----
68

query I rowsort
SELECT + 52 - + + 80 AS col0
----
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-8726
SELECT + + 17 * COUNT( * )
----
17

skipif mysql # not compatible
query I rowsort label-8726
SELECT + + 17 * COUNT ( * )
----
17

query I rowsort
SELECT ALL - CASE - ( + + 87 ) WHEN + 75 * 0 * - - 15 * 6 THEN NULL ELSE 27 END
----
-27

onlyif mysql # DIV for integer division: 
query I rowsort label-8728
SELECT DISTINCT - 78 DIV + - 5 AS col1
----
15

skipif mysql # not compatible
query I rowsort label-8728
SELECT DISTINCT - 78 / + - 5 AS col1
----
15

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8729
SELECT - COALESCE ( + 52, - - 93 DIV + + MAX( ALL + 88 ) )
----
-52

skipif mysql # not compatible
query I rowsort label-8729
SELECT - COALESCE ( + 52, - - 93 / + + MAX ( ALL + 88 ) )
----
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-8730
SELECT DISTINCT + 9 + - 91 + + 50 * COUNT( * ) AS col2
----
-32

skipif mysql # not compatible
query I rowsort label-8730
SELECT DISTINCT + 9 + - 91 + + 50 * COUNT ( * ) AS col2
----
-32

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8731
SELECT DISTINCT + - ( - 71 ) DIV - - 7 + + COUNT( * ), 45 * - - 72 * - + 75 AS col1
----
11
-243000

skipif mysql # not compatible
query II rowsort label-8731
SELECT DISTINCT + - ( - 71 ) / - - 7 + + COUNT ( * ), 45 * - - 72 * - + 75 AS col1
----
11
-243000

onlyif mysql # DIV for integer division: 
query II rowsort label-8732
SELECT DISTINCT 74 DIV - 40 + + 59 + + + 20 col1, 22 AS col1
----
78
22

skipif mysql # not compatible
query II rowsort label-8732
SELECT DISTINCT 74 / - 40 + + 59 + + + 20 col1, 22 AS col1
----
78
22

query I rowsort
SELECT DISTINCT 12 * + 52
----
624

query I rowsort
SELECT + 51 * 62 + + 81 * 54 AS col1
----
7536

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8735
SELECT CAST( NULL AS SIGNED ) AS col1, - SUM( DISTINCT - 3 ) + + + COUNT( * ) * 43 + - + ( - 56 ) AS col2
----
NULL
102

skipif mysql # not compatible
query II rowsort label-8735
SELECT CAST ( NULL AS INTEGER ) AS col1, - SUM ( DISTINCT - 3 ) + + + COUNT ( * ) * 43 + - + ( - 56 ) AS col2
----
NULL
102

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8736
SELECT CAST( + 71 AS SIGNED ) AS col2
----
71

skipif mysql # not compatible
query I rowsort label-8736
SELECT CAST ( + 71 AS INTEGER ) AS col2
----
71

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8737
SELECT COALESCE ( 16, - + ( - - 91 ) * + MAX( + 74 ) ) DIV - 52 - - COALESCE ( + ( 45 ), + 64 ) + COUNT( * )
----
46

skipif mysql # not compatible
query I rowsort label-8737
SELECT COALESCE ( 16, - + ( - - 91 ) * + MAX ( + 74 ) ) / - 52 - - COALESCE ( + ( 45 ), + 64 ) + COUNT ( * )
----
46

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8738
SELECT ( 92 ) * - - COUNT( * ) - 46 DIV 7
----
86

skipif mysql # not compatible
query I rowsort label-8738
SELECT ( 92 ) * - - COUNT ( * ) - 46 / 7
----
86

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8739
SELECT CAST( + 74 AS SIGNED ) AS col0
----
74

skipif mysql # not compatible
query I rowsort label-8739
SELECT CAST ( + 74 AS INTEGER ) AS col0
----
74

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8740
SELECT + CAST( NULL AS SIGNED ) + - + COUNT( DISTINCT + 5 ) * - 77 + + - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-8740
SELECT + CAST ( NULL AS INTEGER ) + - + COUNT ( DISTINCT + 5 ) * - 77 + + - COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8741
SELECT DISTINCT MAX( ALL - 23 ) * - 54 col1
----
1242

skipif mysql # not compatible
query I rowsort label-8741
SELECT DISTINCT MAX ( ALL - 23 ) * - 54 col1
----
1242

query I rowsort
SELECT ALL + ( - + ( ( - ( - 82 ) ) ) ) col0
----
-82

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8743
SELECT - COUNT( * ) * - - CAST( NULL AS SIGNED ) + + ( 90 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8743
SELECT - COUNT ( * ) * - - CAST ( NULL AS INTEGER ) + + ( 90 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8744
SELECT ALL NULLIF ( + MAX( ALL + ( - 82 ) ), 20 ) - - - 49
----
-131

skipif mysql # not compatible
query I rowsort label-8744
SELECT ALL NULLIF ( + MAX ( ALL + ( - 82 ) ), 20 ) - - - 49
----
-131

query I rowsort
SELECT 24 * + 20
----
480

onlyif mysql # aggregate syntax: 
query II rowsort label-8746
SELECT COUNT( + 83 ) + 59, ( - COUNT( * ) ) col0
----
60
-1

skipif mysql # not compatible
query II rowsort label-8746
SELECT COUNT ( + 83 ) + 59, ( - COUNT ( * ) ) col0
----
60
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8747
SELECT MIN( ALL 85 ) * + 63 * 45 - + 50
----
240925

skipif mysql # not compatible
query I rowsort label-8747
SELECT MIN ( ALL 85 ) * + 63 * 45 - + 50
----
240925

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8748
SELECT ALL + MAX( DISTINCT - CAST( NULL AS SIGNED ) ) * - + 97
----
NULL

skipif mysql # not compatible
query I rowsort label-8748
SELECT ALL + MAX ( DISTINCT - CAST ( NULL AS INTEGER ) ) * - + 97
----
NULL

query I rowsort
SELECT 43 - - 54 AS col0
----
97

query I rowsort
SELECT 14 * - 0 AS col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8751
SELECT DISTINCT - CAST( - 8 AS SIGNED ) * + COUNT( * ) + + 29 AS col0
----
37

skipif mysql # not compatible
query I rowsort label-8751
SELECT DISTINCT - CAST ( - 8 AS INTEGER ) * + COUNT ( * ) + + 29 AS col0
----
37

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8752
SELECT 33 + - - CAST( + COUNT( DISTINCT 96 ) AS SIGNED ) col1
----
34

skipif mysql # not compatible
query I rowsort label-8752
SELECT 33 + - - CAST ( + COUNT ( DISTINCT 96 ) AS INTEGER ) col1
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-8753
SELECT DISTINCT - - SUM( DISTINCT + 38 ) * - + 89 * + 76 * + 71 * - 75 + 89 + 69 * + CASE + - 20 WHEN - 7 / COUNT( * ) THEN NULL WHEN COALESCE ( CASE 47 WHEN + 98 THEN NULL ELSE - 26 END, CASE WHEN ( NULL ) IS NULL THEN + 60 ELSE - 72 END ) THEN 77 ELSE NULL END * - 52 - - 67
----
NULL

skipif mysql # not compatible
query I rowsort label-8753
SELECT DISTINCT - - SUM ( DISTINCT + 38 ) * - + 89 * + 76 * + 71 * - 75 + 89 + 69 * + CASE + - 20 WHEN - 7 / COUNT ( * ) THEN NULL WHEN COALESCE ( CASE 47 WHEN + 98 THEN NULL ELSE - 26 END, CASE WHEN ( NULL ) IS NULL THEN + 60 ELSE - 72 END ) THEN 77 ELSE NULL END * - 52 - - 67
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8754
SELECT DISTINCT - MAX( - + 24 )
----
24

skipif mysql # not compatible
query I rowsort label-8754
SELECT DISTINCT - MAX ( - + 24 )
----
24

onlyif mysql # DIV for integer division: 
query II rowsort label-8755
SELECT - NULLIF ( 9, + NULLIF ( 27, 66 ) ) DIV - 19 + 34 * + 4, + 4 DIV - 21 AS col1
----
136
0

skipif mysql # not compatible
query II rowsort label-8755
SELECT - NULLIF ( 9, + NULLIF ( 27, 66 ) ) / - 19 + 34 * + 4, + 4 / - 21 AS col1
----
136
0

query I rowsort
SELECT - + NULLIF ( NULLIF ( - - 31, + 83 ), 18 - 83 )
----
-31

onlyif mysql # DIV for integer division: 
query I rowsort label-8757
SELECT 88 DIV 72 + - - 5
----
6

skipif mysql # not compatible
query I rowsort label-8757
SELECT 88 / 72 + - - 5
----
6

query I rowsort
SELECT ALL - 41 + 21 * 81 AS col2
----
1660

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8759
SELECT - CASE 78 WHEN - CAST( - - 20 AS SIGNED ) * 34 THEN 58 / - - 65 WHEN - COUNT( * ) * - 67 - COALESCE ( + 97, 94 * 33, + 24 ) THEN NULL ELSE ( CAST( NULL AS SIGNED ) ) + 0 * 63 END col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8759
SELECT - CASE 78 WHEN - CAST ( - - 20 AS INTEGER ) * 34 THEN 58 / - - 65 WHEN - COUNT ( * ) * - 67 - COALESCE ( + 97, 94 * 33, + 24 ) THEN NULL ELSE ( CAST ( NULL AS INTEGER ) ) + 0 * 63 END col0
----
NULL

query I rowsort
SELECT 68 + + + 80
----
148

onlyif mysql # aggregate syntax: 
query I rowsort label-8761
SELECT DISTINCT + CASE AVG ( DISTINCT 71 ) WHEN + - 52 THEN + + ( - 31 ) WHEN 16 * + + 92 + + 31 - - + 47 * 47 THEN ( - COUNT( * ) ) ELSE NULL END + - 87
----
NULL

skipif mysql # not compatible
query I rowsort label-8761
SELECT DISTINCT + CASE AVG ( DISTINCT 71 ) WHEN + - 52 THEN + + ( - 31 ) WHEN 16 * + + 92 + + 31 - - + 47 * 47 THEN ( - COUNT ( * ) ) ELSE NULL END + - 87
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8762
SELECT ALL - 0 + + COUNT( * ) - 91 * COUNT( * ) + + 19 AS col2
----
-71

skipif mysql # not compatible
query I rowsort label-8762
SELECT ALL - 0 + + COUNT ( * ) - 91 * COUNT ( * ) + + 19 AS col2
----
-71

query I rowsort
SELECT DISTINCT - 89 * + - 3
----
267

onlyif mysql # aggregate syntax: 
query I rowsort label-8764
SELECT CASE 26 WHEN + - 57 THEN + - COALESCE ( - + 67, + COUNT( * ), 42 ) + 58 + - + 10 * NULLIF ( + 26, 16 ) - ( + 36 ) ELSE NULL END + - 33
----
NULL

skipif mysql # not compatible
query I rowsort label-8764
SELECT CASE 26 WHEN + - 57 THEN + - COALESCE ( - + 67, + COUNT ( * ), 42 ) + 58 + - + 10 * NULLIF ( + 26, 16 ) - ( + 36 ) ELSE NULL END + - 33
----
NULL

query I rowsort
SELECT - - COALESCE ( + 14, 33 * 49 ) AS col0
----
14

query I rowsort
SELECT DISTINCT 26 + + 35 * + 51
----
1811

query II rowsort
SELECT 47 AS col0, 0 AS col2
----
47
0

query I rowsort
SELECT COALESCE ( - 59, - - 29 + - 89 + - 9 * + 56 ) + 19 * 20 AS col1
----
321

onlyif mysql # aggregate syntax: 
query I rowsort label-8769
SELECT ALL MAX( 65 ) + - 0 - + 65 * + 96 AS col1
----
-6175

skipif mysql # not compatible
query I rowsort label-8769
SELECT ALL MAX ( 65 ) + - 0 - + 65 * + 96 AS col1
----
-6175

onlyif mysql # DIV for integer division: 
query I rowsort label-8770
SELECT DISTINCT 59 DIV + - ( - 92 ) * - 21 + + ( ( - + 93 ) )
----
-93

skipif mysql # not compatible
query I rowsort label-8770
SELECT DISTINCT 59 / + - ( - 92 ) * - 21 + + ( ( - + 93 ) )
----
-93

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8771
SELECT - 34 DIV + - COUNT( * ) + COUNT( NULLIF ( + 90, + 99 ) ) + COUNT( * ) + - + 3 * - 98 - - - 99 AS col1
----
231

skipif mysql # not compatible
query I rowsort label-8771
SELECT - 34 / + - COUNT ( * ) + COUNT ( NULLIF ( + 90, + 99 ) ) + COUNT ( * ) + - + 3 * - 98 - - - 99 AS col1
----
231

onlyif mysql # aggregate syntax: 
query I rowsort label-8772
SELECT ALL COUNT( * ) - NULLIF ( + 58, 25 )
----
-57

skipif mysql # not compatible
query I rowsort label-8772
SELECT ALL COUNT ( * ) - NULLIF ( + 58, 25 )
----
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-8773
SELECT DISTINCT - MIN( DISTINCT - + 20 )
----
20

skipif mysql # not compatible
query I rowsort label-8773
SELECT DISTINCT - MIN ( DISTINCT - + 20 )
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-8774
SELECT ALL COUNT( * ) - + + COUNT( * ) col1
----
0

skipif mysql # not compatible
query I rowsort label-8774
SELECT ALL COUNT ( * ) - + + COUNT ( * ) col1
----
0

query I rowsort
SELECT DISTINCT 23 * + 86
----
1978

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8776
SELECT CAST( NULL AS SIGNED ) + + 64 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8776
SELECT CAST ( NULL AS INTEGER ) + + 64 AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8777
SELECT DISTINCT ( - - 53 ) * 35 * COUNT( * ) DIV - 52 AS col1
----
-35

skipif mysql # not compatible
query I rowsort label-8777
SELECT DISTINCT ( - - 53 ) * 35 * COUNT ( * ) / - 52 AS col1
----
-35

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8778
SELECT COUNT( * ) DIV - - 61, 83 AS col2
----
0
83

skipif mysql # not compatible
query II rowsort label-8778
SELECT COUNT ( * ) / - - 61, 83 AS col2
----
0
83

query I rowsort
SELECT 53 + - - 43
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-8780
SELECT ALL - MIN( ALL - ( + 89 ) )
----
89

skipif mysql # not compatible
query I rowsort label-8780
SELECT ALL - MIN ( ALL - ( + 89 ) )
----
89

query I rowsort
SELECT 24 * - - 65 AS col0
----
1560

query I rowsort
SELECT ALL 63 * - 32
----
-2016

query II rowsort
SELECT + 55, 75 AS col1
----
55
75

query II rowsort
SELECT DISTINCT - 75 AS col1, - 80 * - 86 * + CASE - 17 WHEN + 51 THEN - - 64 END * + 70 col2
----
-75
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8785
SELECT DISTINCT - - 58 AS col1, + COUNT( * ) AS col0
----
58
1

skipif mysql # not compatible
query II rowsort label-8785
SELECT DISTINCT - - 58 AS col1, + COUNT ( * ) AS col0
----
58
1

query II rowsort
SELECT - 66 * 86 * 53 - + + 72, 99 + 76 AS col1
----
-300900
175

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8787
SELECT 67 * COALESCE ( + 82, - 80, + 95 DIV - 42 * ( CAST( NULL AS SIGNED ) ) DIV + + ( 82 ) * 77 ) AS col0
----
5494

skipif mysql # not compatible
query I rowsort label-8787
SELECT 67 * COALESCE ( + 82, - 80, + 95 / - 42 * ( CAST ( NULL AS INTEGER ) ) / + + ( 82 ) * 77 ) AS col0
----
5494

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8788
SELECT 57 + - CAST( NULL AS SIGNED ) + 7 + - 25 + + 29
----
NULL

skipif mysql # not compatible
query I rowsort label-8788
SELECT 57 + - CAST ( NULL AS INTEGER ) + 7 + - 25 + + 29
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8789
SELECT ALL 43 / + 26 * ( + + 75 ) + 88 + + - CASE - + 47 WHEN + 99 THEN - COUNT( * ) WHEN + 78 THEN NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8789
SELECT ALL 43 / + 26 * ( + + 75 ) + 88 + + - CASE - + 47 WHEN + 99 THEN - COUNT ( * ) WHEN + 78 THEN NULL END AS col0
----
NULL

query I rowsort
SELECT 6 - - + 60 AS col0
----
66

query III rowsort
SELECT ALL 76 AS col1, - 67, + + 9 AS col2
----
76
-67
9

onlyif mysql # DIV for integer division: 
query I rowsort label-8792
SELECT ALL - ( + 39 ) + + + 41 DIV 2
----
-19

skipif mysql # not compatible
query I rowsort label-8792
SELECT ALL - ( + 39 ) + + + 41 / 2
----
-19

query I rowsort
SELECT ALL - + 49 + + + 6
----
-43

query I rowsort
SELECT 16 * + - 6
----
-96

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8795
SELECT + 67 + + 82 DIV - COUNT( * ) AS col2
----
-15

skipif mysql # not compatible
query I rowsort label-8795
SELECT + 67 + + 82 / - COUNT ( * ) AS col2
----
-15

query I rowsort
SELECT - - 62 col0
----
62

onlyif mysql # DIV for integer division: 
query I rowsort label-8797
SELECT 5 DIV + 47 + 34 col0
----
34

skipif mysql # not compatible
query I rowsort label-8797
SELECT 5 / + 47 + 34 col0
----
34

query I rowsort
SELECT ALL + - 57 + 94
----
37

query I rowsort
SELECT ALL 18 * - + 58
----
-1044

query I rowsort
SELECT ALL - 5 - + 21 + + - 67 * - 60
----
3994

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8801
SELECT ALL + COALESCE ( - - 69, 7 - CAST( NULL AS SIGNED ) ) AS col1
----
69

skipif mysql # not compatible
query I rowsort label-8801
SELECT ALL + COALESCE ( - - 69, 7 - CAST ( NULL AS INTEGER ) ) AS col1
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-8802
SELECT - MIN( DISTINCT - + ( + + 78 ) ) + - - COUNT( ALL 89 ) * + - COUNT( * ) + + - 26 - COUNT( * ) AS col1
----
50

skipif mysql # not compatible
query I rowsort label-8802
SELECT - MIN ( DISTINCT - + ( + + 78 ) ) + - - COUNT ( ALL 89 ) * + - COUNT ( * ) + + - 26 - COUNT ( * ) AS col1
----
50

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8803
SELECT CASE - 7 WHEN 22 * - CAST( + 57 AS SIGNED ) * - COUNT( * ) + COUNT( * ) + - - 23 THEN + 9 + - 11 + + - 41 / - + 88 + 37 * 46 ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8803
SELECT CASE - 7 WHEN 22 * - CAST ( + 57 AS INTEGER ) * - COUNT ( * ) + COUNT ( * ) + - - 23 THEN + 9 + - 11 + + - 41 / - + 88 + 37 * 46 ELSE NULL END AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8804
SELECT 15 DIV COALESCE ( COUNT( * ), - 81 ) + + 70
----
85

skipif mysql # not compatible
query I rowsort label-8804
SELECT 15 / COALESCE ( COUNT ( * ), - 81 ) + + 70
----
85

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8805
SELECT 6 DIV + 80 + - 62 - - 62 - + + 43 * + - ( - 57 ) * - COUNT( * ) col2
----
2451

skipif mysql # not compatible
query I rowsort label-8805
SELECT 6 / + 80 + - 62 - - 62 - + + 43 * + - ( - 57 ) * - COUNT ( * ) col2
----
2451

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8806
SELECT COALESCE ( - CAST( 91 AS SIGNED ), + 33 )
----
-91

skipif mysql # not compatible
query I rowsort label-8806
SELECT COALESCE ( - CAST ( 91 AS INTEGER ), + 33 )
----
-91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8807
SELECT ALL + CAST( 51 AS SIGNED )
----
51

skipif mysql # not compatible
query I rowsort label-8807
SELECT ALL + CAST ( 51 AS INTEGER )
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-8808
SELECT DISTINCT + COUNT( DISTINCT - + 8 )
----
1

skipif mysql # not compatible
query I rowsort label-8808
SELECT DISTINCT + COUNT ( DISTINCT - + 8 )
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8809
SELECT ALL 4 DIV COALESCE ( + NULLIF ( ( + 81 ), CASE - 63 WHEN - COUNT( + 49 ) * 93 THEN 56 * 64 * + 33 + 40 * 16 WHEN + COUNT( + ( CASE 52 WHEN + 8 THEN NULL WHEN 42 THEN NULL ELSE + 75 END ) ) THEN + 7 * 63 END DIV + ( COALESCE ( - CASE + 96 WHEN + CAST( NULL AS SIGNED ) THEN 55 * + 87 WHEN COUNT( * ) + 42 * 57 THEN NULL END, - 70 DIV - 72, - NULLIF ( + 27, COUNT( * ) ) DIV 33 ) * - 55 + 74 ) + 75 * 93 ), SUM( ALL 80 ) + - ( - 52 ), - 48 ) DIV COUNT( * ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-8809
SELECT ALL 4 / COALESCE ( + NULLIF ( ( + 81 ), CASE - 63 WHEN - COUNT ( + 49 ) * 93 THEN 56 * 64 * + 33 + 40 * 16 WHEN + COUNT ( + ( CASE 52 WHEN + 8 THEN NULL WHEN 42 THEN NULL ELSE + 75 END ) ) THEN + 7 * 63 END / + ( COALESCE ( - CASE + 96 WHEN + CAST ( NULL AS INTEGER ) THEN 55 * + 87 WHEN COUNT ( * ) + 42 * 57 THEN NULL END, - 70 / - 72, - NULLIF ( + 27, COUNT ( * ) ) / 33 ) * - 55 + 74 ) + 75 * 93 ), SUM ( ALL 80 ) + - ( - 52 ), - 48 ) / COUNT ( * ) AS col1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8810
SELECT + 27 DIV + - 40 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-8810
SELECT + 27 / + - 40 AS col0
----
0

query I rowsort
SELECT + COALESCE ( + 42, 33 + + + 94 ) col1
----
42

query I rowsort
SELECT ALL + - 40 * + 38 + - - 48 * + 35
----
160

query II rowsort
SELECT - - 1 + + 53 - 55, 22 AS col0
----
-1
22

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8814
SELECT + 30 DIV - - SUM( 99 ) - + 77 AS col0
----
-77

skipif mysql # not compatible
query I rowsort label-8814
SELECT + 30 / - - SUM ( 99 ) - + 77 AS col0
----
-77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8815
SELECT + CAST( NULL AS SIGNED ) + + NULLIF ( - 71, 8 ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8815
SELECT + CAST ( NULL AS INTEGER ) + + NULLIF ( - 71, 8 ) col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8816
SELECT + - 4 * COUNT( * ) * + + 63 AS col0
----
-252

skipif mysql # not compatible
query I rowsort label-8816
SELECT + - 4 * COUNT ( * ) * + + 63 AS col0
----
-252

query I rowsort
SELECT - 18 + - - 72 + + - 21 AS col2
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-8818
SELECT + 57 * COUNT( - 69 )
----
57

skipif mysql # not compatible
query I rowsort label-8818
SELECT + 57 * COUNT ( - 69 )
----
57

query I rowsort
SELECT ALL + 24 + - 18 AS col0
----
6

query II rowsort
SELECT - ( + 50 ) col1, 2 * - 19 col2
----
-50
-38

query I rowsort
SELECT ALL - 0 + + - 22
----
-22

query I rowsort
SELECT + 60 + - 68
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-8823
SELECT DISTINCT - 97 - - 54 - NULLIF ( SUM( ALL + 16 ), + + 25 )
----
-59

skipif mysql # not compatible
query I rowsort label-8823
SELECT DISTINCT - 97 - - 54 - NULLIF ( SUM ( ALL + 16 ), + + 25 )
----
-59

query I rowsort
SELECT ALL + - 54 * + 84 * - 43 + + + 78 AS col2
----
195126

onlyif mysql # aggregate syntax: 
query I rowsort label-8825
SELECT DISTINCT 53 - - MIN( DISTINCT + 78 ) * 65 AS col0
----
5123

skipif mysql # not compatible
query I rowsort label-8825
SELECT DISTINCT 53 - - MIN ( DISTINCT + 78 ) * 65 AS col0
----
5123

query I rowsort
SELECT - 24 + - COALESCE ( + 30, + - 47 * - 7 + + 43, ( + 58 ) + + 45 )
----
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-8827
SELECT DISTINCT + COUNT( * ) - - 82
----
83

skipif mysql # not compatible
query I rowsort label-8827
SELECT DISTINCT + COUNT ( * ) - - 82
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-8828
SELECT DISTINCT COUNT( * ) * - - COUNT( * ) * + ( - 45 ) AS col0
----
-45

skipif mysql # not compatible
query I rowsort label-8828
SELECT DISTINCT COUNT ( * ) * - - COUNT ( * ) * + ( - 45 ) AS col0
----
-45

query I rowsort
SELECT DISTINCT COALESCE ( ( + 33 ), + 14 )
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-8830
SELECT - 52 * COUNT( * ) AS col2
----
-52

skipif mysql # not compatible
query I rowsort label-8830
SELECT - 52 * COUNT ( * ) AS col2
----
-52

query I rowsort
SELECT - 70 + + + 66
----
-4

onlyif mysql # DIV for integer division: 
query I rowsort label-8832
SELECT - 40 DIV - - 80
----
0

skipif mysql # not compatible
query I rowsort label-8832
SELECT - 40 / - - 80
----
0

query I rowsort
SELECT - NULLIF ( + 47, - 51 ) + + + 68 + - 52
----
-31

query I rowsort
SELECT - 16 * + 23 AS col1
----
-368

onlyif mysql # aggregate syntax: 
query I rowsort label-8835
SELECT ALL + MAX( + + 25 ) AS col2
----
25

skipif mysql # not compatible
query I rowsort label-8835
SELECT ALL + MAX ( + + 25 ) AS col2
----
25

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8836
SELECT ALL + 69, - 95 * - 54 + CAST( - MIN( + 92 ) AS SIGNED ) AS col2
----
69
5038

skipif mysql # not compatible
query II rowsort label-8836
SELECT ALL + 69, - 95 * - 54 + CAST ( - MIN ( + 92 ) AS INTEGER ) AS col2
----
69
5038

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8837
SELECT CAST( NULL AS SIGNED ), 67 + - 61 + 85 AS col1
----
NULL
91

skipif mysql # not compatible
query II rowsort label-8837
SELECT CAST ( NULL AS INTEGER ), 67 + - 61 + 85 AS col1
----
NULL
91

query II rowsort
SELECT + 10, 61 AS col1
----
10
61

onlyif mysql # aggregate syntax: 
query I rowsort label-8839
SELECT - 19 * + + 61 + ( + - SUM( ALL + 46 ) ) - + COUNT( * ) + + 60 * 52 AS col2
----
1914

skipif mysql # not compatible
query I rowsort label-8839
SELECT - 19 * + + 61 + ( + - SUM ( ALL + 46 ) ) - + COUNT ( * ) + + 60 * 52 AS col2
----
1914

query I rowsort
SELECT - + 89 * - + 31
----
2759

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8841
SELECT + CAST( 82 AS SIGNED ) + + - COUNT( * ) * + 19 + + 81 AS col0
----
144

skipif mysql # not compatible
query I rowsort label-8841
SELECT + CAST ( 82 AS INTEGER ) + + - COUNT ( * ) * + 19 + + 81 AS col0
----
144

query II rowsort
SELECT ALL + 63, 53 col0
----
63
53

query I rowsort
SELECT - 22 - - - 71
----
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-8844
SELECT + ( + + 58 ) * MAX( DISTINCT 46 ) col0
----
2668

skipif mysql # not compatible
query I rowsort label-8844
SELECT + ( + + 58 ) * MAX ( DISTINCT 46 ) col0
----
2668

onlyif mysql # DIV for integer division: 
query I rowsort label-8845
SELECT + 18 DIV - 96
----
0

skipif mysql # not compatible
query I rowsort label-8845
SELECT + 18 / - 96
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8846
SELECT ALL - 68 * 1 + - 33 * + MAX( ALL 69 )
----
-2345

skipif mysql # not compatible
query I rowsort label-8846
SELECT ALL - 68 * 1 + - 33 * + MAX ( ALL 69 )
----
-2345

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8847
SELECT + - 63 * - ( - SUM( + 53 ) ) + - 88 DIV + + COALESCE ( - + 1, + + 88 * + 19, - - COUNT( * ) * + COUNT( * ) * + + 49 * + 59 + 5 * - ( + 34 DIV 33 ) ) - 40
----
-3291

skipif mysql # not compatible
query I rowsort label-8847
SELECT + - 63 * - ( - SUM ( + 53 ) ) + - 88 / + + COALESCE ( - + 1, + + 88 * + 19, - - COUNT ( * ) * + COUNT ( * ) * + + 49 * + 59 + 5 * - ( + 34 / 33 ) ) - 40
----
-3291

query I rowsort
SELECT + - 57 + - - 55 AS col2
----
-2

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8849
SELECT 47 AS col2, - NULLIF ( - CAST( 27 AS SIGNED ), - 30 ) AS col0
----
47
27

skipif mysql # not compatible
query II rowsort label-8849
SELECT 47 AS col2, - NULLIF ( - CAST ( 27 AS INTEGER ), - 30 ) AS col0
----
47
27

query I rowsort
SELECT DISTINCT 73 * - 26 - + ( - 31 ) * 95
----
1047

onlyif mysql # DIV for integer division: 
query II rowsort label-8851
SELECT - 6, - 58 DIV 67 AS col0
----
-6
0

skipif mysql # not compatible
query II rowsort label-8851
SELECT - 6, - 58 / 67 AS col0
----
-6
0

query I rowsort
SELECT DISTINCT 50 * + - 77
----
-3850

onlyif mysql # aggregate syntax: 
query I rowsort label-8853
SELECT ALL COALESCE ( 25, + 55 * + COUNT( * ) * COUNT( * ) ) AS col2
----
25

skipif mysql # not compatible
query I rowsort label-8853
SELECT ALL COALESCE ( 25, + 55 * + COUNT ( * ) * COUNT ( * ) ) AS col2
----
25

query I rowsort
SELECT ( - - 8 ) + 53 AS col0
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-8855
SELECT 37 * + - MAX( ALL 58 )
----
-2146

skipif mysql # not compatible
query I rowsort label-8855
SELECT 37 * + - MAX ( ALL 58 )
----
-2146

onlyif mysql # aggregate syntax: 
query I rowsort label-8856
SELECT COALESCE ( - + 28, + COUNT( * ) ) * + 26
----
-728

skipif mysql # not compatible
query I rowsort label-8856
SELECT COALESCE ( - + 28, + COUNT ( * ) ) * + 26
----
-728

query I rowsort
SELECT DISTINCT ( 74 ) * - ( + 81 ) + 80 AS col0
----
-5914

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8858
SELECT 24 - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8858
SELECT 24 - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL + 15 + 40 * + 28 AS col0
----
1135

query I rowsort
SELECT ALL - ( + 89 ) AS col0
----
-89

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8861
SELECT ALL CAST( 9 AS SIGNED ) + COALESCE ( - 31, - + 54 ) AS col0
----
-22

skipif mysql # not compatible
query I rowsort label-8861
SELECT ALL CAST ( 9 AS INTEGER ) + COALESCE ( - 31, - + 54 ) AS col0
----
-22

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-8862
SELECT CAST( NULL AS DECIMAL ) + - 58 * + ( + + 32 ) AS col0, 34 + 26 AS col0
----
NULL
60

skipif mysql # not compatible
query II rowsort label-8862
SELECT CAST ( NULL AS REAL ) + - 58 * + ( + + 32 ) AS col0, 34 + 26 AS col0
----
NULL
60

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8863
SELECT 53 * + - 53 * - AVG ( + CASE - ( - 86 ) WHEN + 65 THEN + 84 / + 16 * - 64 + + 29 + + CAST( 58 AS SIGNED ) + - 12 ELSE NULL END ) / - COUNT( * ) + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-8863
SELECT 53 * + - 53 * - AVG ( + CASE - ( - 86 ) WHEN + 65 THEN + 84 / + 16 * - 64 + + 29 + + CAST ( 58 AS INTEGER ) + - 12 ELSE NULL END ) / - COUNT ( * ) + COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8864
SELECT 78 * - + COALESCE ( - 94, - COUNT( * ), 77 * - + 25, - 69 ), - 64 AS col2
----
7332
-64

skipif mysql # not compatible
query II rowsort label-8864
SELECT 78 * - + COALESCE ( - 94, - COUNT ( * ), 77 * - + 25, - 69 ), - 64 AS col2
----
7332
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-8865
SELECT 49 * - - MAX( - - 45 )
----
2205

skipif mysql # not compatible
query I rowsort label-8865
SELECT 49 * - - MAX ( - - 45 )
----
2205

onlyif mysql # aggregate syntax: 
query I rowsort label-8866
SELECT DISTINCT ( + COUNT( * ) ) + - 40 AS col2
----
-39

skipif mysql # not compatible
query I rowsort label-8866
SELECT DISTINCT ( + COUNT ( * ) ) + - 40 AS col2
----
-39

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8867
SELECT ALL - COALESCE ( - - 24, CAST( - 33 AS SIGNED ) ) + - - 57 * - ( - - 87 ) * + COUNT( * ) - 6 col0, - 17 * - 52 AS col2
----
-4989
884

skipif mysql # not compatible
query II rowsort label-8867
SELECT ALL - COALESCE ( - - 24, CAST ( - 33 AS INTEGER ) ) + - - 57 * - ( - - 87 ) * + COUNT ( * ) - 6 col0, - 17 * - 52 AS col2
----
-4989
884

query II rowsort
SELECT 11 + + - 66 col2, 91 AS col0
----
-55
91

query I rowsort
SELECT DISTINCT - + COALESCE ( 59, + 39 + + 51, - 63 )
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-8870
SELECT ALL + - MAX( - - 50 ) * CASE - 98 WHEN + 59 THEN + + 9 * + AVG ( 56 ) + - 77 + + 64 * + 6 * + 67 END / ( + 49 ) + CASE - 12 - 58 WHEN + 24 THEN NULL WHEN - 98 + + NULLIF ( 84 + 92, - 97 ) THEN 24 - - 36 * 36 END
----
NULL

skipif mysql # not compatible
query I rowsort label-8870
SELECT ALL + - MAX ( - - 50 ) * CASE - 98 WHEN + 59 THEN + + 9 * + AVG ( 56 ) + - 77 + + 64 * + 6 * + 67 END / ( + 49 ) + CASE - 12 - 58 WHEN + 24 THEN NULL WHEN - 98 + + NULLIF ( 84 + 92, - 97 ) THEN 24 - - 36 * 36 END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8871
SELECT ALL - 63 - - COUNT( * ) * - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8871
SELECT ALL - 63 - - COUNT ( * ) * - CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8872
SELECT + COALESCE ( NULLIF ( + - 31, - + 71 * + 48 * - 94 + - - 61 * - + 76 ), - 7 * + 35 DIV - + COALESCE ( MAX( DISTINCT + 35 ), + COALESCE ( + 36, ( 84 ), 94 + 88, ( - 8 ) DIV 40 ) * - COUNT( DISTINCT + 72 ) + CASE - ( - CASE 69 WHEN 36 * ( 43 ) THEN NULL WHEN NULLIF ( + CAST( NULL AS SIGNED ), + COUNT( * ) DIV - 44 - COALESCE ( + COUNT( * ) + + 19 * 97, + 70 * 3, - 63 + - 73 * + 94 ) ) THEN 56 - 75 ELSE - CASE - 26 WHEN COUNT( * ) DIV 11 + 66 * 90 THEN 43 END END ) WHEN 81 * 37 THEN 39 WHEN ( AVG ( + 23 ) ) * - 33 THEN NULL END * 6 ) + - 8, + 78 ) AS col0
----
-31

skipif mysql # not compatible
query I rowsort label-8872
SELECT + COALESCE ( NULLIF ( + - 31, - + 71 * + 48 * - 94 + - - 61 * - + 76 ), - 7 * + 35 / - + COALESCE ( MAX ( DISTINCT + 35 ), + COALESCE ( + 36, ( 84 ), 94 + 88, ( - 8 ) / 40 ) * - COUNT ( DISTINCT + 72 ) + CASE - ( - CASE 69 WHEN 36 * ( 43 ) THEN NULL WHEN NULLIF ( + CAST ( NULL AS INTEGER ), + COUNT ( * ) / - 44 - COALESCE ( + COUNT ( * ) + + 19 * 97, + 70 * 3, - 63 + - 73 * + 94 ) ) THEN 56 - 75 ELSE - CASE - 26 WHEN COUNT ( * ) / 11 + 66 * 90 THEN 43 END END ) WHEN 81 * 37 THEN 39 WHEN ( AVG ( + 23 ) ) * - 33 THEN NULL END * 6 ) + - 8, + 78 ) AS col0
----
-31

query I rowsort
SELECT + 3 + - - 75 AS col1
----
78

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8874
SELECT DISTINCT - + CAST( + + 74 AS SIGNED ), - 30 AS col2
----
-74
-30

skipif mysql # not compatible
query II rowsort label-8874
SELECT DISTINCT - + CAST ( + + 74 AS INTEGER ), - 30 AS col2
----
-74
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-8875
SELECT - - 43 * 34 + - COUNT( * ) + + - COUNT( * ) * - + 5
----
1466

skipif mysql # not compatible
query I rowsort label-8875
SELECT - - 43 * 34 + - COUNT ( * ) + + - COUNT ( * ) * - + 5
----
1466

query I rowsort
SELECT DISTINCT - 70 - + NULLIF ( - 15, - 9 )
----
-55

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-8877
SELECT ALL + 12 * + + COUNT( * ) / - 87 * + 98 - AVG ( NULLIF ( CAST( NULL AS DECIMAL ), + + 22 ) ) + + 30, - CAST( NULL AS SIGNED ) * 26 col1
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-8877
SELECT ALL + 12 * + + COUNT ( * ) / - 87 * + 98 - AVG ( NULLIF ( CAST ( NULL AS REAL ), + + 22 ) ) + + 30, - CAST ( NULL AS INTEGER ) * 26 col1
----
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8878
SELECT - 69 + COUNT( * ) * 34 AS col0
----
-35

skipif mysql # not compatible
query I rowsort label-8878
SELECT - 69 + COUNT ( * ) * 34 AS col0
----
-35

query I rowsort
SELECT ALL 22 * + - 72
----
-1584

onlyif mysql # DIV for integer division: 
query I rowsort label-8880
SELECT ( 94 ) + - - ( + + 95 ) DIV 24
----
97

skipif mysql # not compatible
query I rowsort label-8880
SELECT ( 94 ) + - - ( + + 95 ) / 24
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-8881
SELECT + MAX( + 62 ) * + 33 + 27 col1
----
2073

skipif mysql # not compatible
query I rowsort label-8881
SELECT + MAX ( + 62 ) * + 33 + 27 col1
----
2073

onlyif mysql # aggregate syntax: 
query I rowsort label-8882
SELECT COALESCE ( + 3, - MAX( DISTINCT + 71 ), - 11 * + 27 + + 17 ) - - 79 * CASE 20 WHEN - 38 * - - 80 THEN NULL WHEN 98 THEN + 65 / + 43 + + 13 END + MIN( ALL + 93 ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8882
SELECT COALESCE ( + 3, - MAX ( DISTINCT + 71 ), - 11 * + 27 + + 17 ) - - 79 * CASE 20 WHEN - 38 * - - 80 THEN NULL WHEN 98 THEN + 65 / + 43 + + 13 END + MIN ( ALL + 93 ) col0
----
NULL

query I rowsort
SELECT 44 * - + 40
----
-1760

onlyif mysql # aggregate syntax: 
query I rowsort label-8884
SELECT NULLIF ( NULLIF ( 38, + 65 / + + 86 / + - 31 ), + COUNT( * ) ) + - - 78 + - ( - 13 ) - + + 37 AS col2
----
92

skipif mysql # not compatible
query I rowsort label-8884
SELECT NULLIF ( NULLIF ( 38, + 65 / + + 86 / + - 31 ), + COUNT ( * ) ) + - - 78 + - ( - 13 ) - + + 37 AS col2
----
92

query I rowsort
SELECT DISTINCT 94 * - 10
----
-940

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8886
SELECT ALL ( 29 ) + CAST( NULL AS SIGNED ) * + - 45 * + - 81 * - - 82
----
NULL

skipif mysql # not compatible
query I rowsort label-8886
SELECT ALL ( 29 ) + CAST ( NULL AS INTEGER ) * + - 45 * + - 81 * - - 82
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8887
SELECT COUNT( * ) + - 51 col0
----
-50

skipif mysql # not compatible
query I rowsort label-8887
SELECT COUNT ( * ) + - 51 col0
----
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-8888
SELECT DISTINCT MIN( DISTINCT + + 82 )
----
82

skipif mysql # not compatible
query I rowsort label-8888
SELECT DISTINCT MIN ( DISTINCT + + 82 )
----
82

query I rowsort
SELECT ALL - 20 * 48 AS col2
----
-960

query I rowsort
SELECT 34 + - 36
----
-2

query I rowsort
SELECT ALL ( + + 33 ) * + 58 * - 93
----
-178002

query I rowsort
SELECT DISTINCT 58 + + + 9
----
67

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8893
SELECT ALL ( - + 88 ) + 95 * - - COUNT( * ) * 53 AS col1, - MAX( ALL + 89 ) DIV - ( + + SUM( ALL 37 ) )
----
4947
2

skipif mysql # not compatible
query II rowsort label-8893
SELECT ALL ( - + 88 ) + 95 * - - COUNT ( * ) * 53 AS col1, - MAX ( ALL + 89 ) / - ( + + SUM ( ALL 37 ) )
----
4947
2

onlyif mysql # aggregate syntax: 
query I rowsort label-8894
SELECT COUNT( 52 ) + + 81 AS col0
----
82

skipif mysql # not compatible
query I rowsort label-8894
SELECT COUNT ( 52 ) + + 81 AS col0
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-8895
SELECT ALL COUNT( ALL + 60 ) + - MAX( + 98 ) AS col1
----
-97

skipif mysql # not compatible
query I rowsort label-8895
SELECT ALL COUNT ( ALL + 60 ) + - MAX ( + 98 ) AS col1
----
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-8896
SELECT - SUM( DISTINCT + 9 )
----
-9

skipif mysql # not compatible
query I rowsort label-8896
SELECT - SUM ( DISTINCT + 9 )
----
-9

query I rowsort
SELECT 87 + 4 AS col2
----
91

onlyif mysql # aggregate syntax: 
query II rowsort label-8898
SELECT ALL COUNT( * ) * + ( 32 ) + + + ( 15 ), + 60 AS col1
----
47
60

skipif mysql # not compatible
query II rowsort label-8898
SELECT ALL COUNT ( * ) * + ( 32 ) + + + ( 15 ), + 60 AS col1
----
47
60

query I rowsort
SELECT 58 * 5 AS col2
----
290

query II rowsort
SELECT ALL - 94 AS col1, - 45
----
-94
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-8901
SELECT + COUNT( - 28 ) col1
----
1

skipif mysql # not compatible
query I rowsort label-8901
SELECT + COUNT ( - 28 ) col1
----
1

query I rowsort
SELECT ALL 98 * - + 19
----
-1862

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8903
SELECT CASE + - COUNT( * ) WHEN + 55 + 97 + - COALESCE ( 28, - COUNT( * ) * - 6 ) THEN + + 36 + + + 90 + COUNT( * ) / - CAST( 5 AS SIGNED ) WHEN - 89 THEN + 40 / - 79 ELSE NULL END * 59 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8903
SELECT CASE + - COUNT ( * ) WHEN + 55 + 97 + - COALESCE ( 28, - COUNT ( * ) * - 6 ) THEN + + 36 + + + 90 + COUNT ( * ) / - CAST ( 5 AS INTEGER ) WHEN - 89 THEN + 40 / - 79 ELSE NULL END * 59 AS col2
----
NULL

query II rowsort
SELECT + 78 col1, + 55 AS col1
----
78
55

onlyif mysql # aggregate syntax: 
query III rowsort label-8905
SELECT ALL - NULLIF ( - + CASE + - 70 WHEN + 94 + - 26 * - + 30 - + 90 THEN NULL ELSE 52 END, 14 / - + 53 ) AS col2, 74 col0, COUNT( + - ( 94 ) )
----
52
74
1

skipif mysql # not compatible
query III rowsort label-8905
SELECT ALL - NULLIF ( - + CASE + - 70 WHEN + 94 + - 26 * - + 30 - + 90 THEN NULL ELSE 52 END, 14 / - + 53 ) AS col2, 74 col0, COUNT ( + - ( 94 ) )
----
52
74
1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8906
SELECT DISTINCT 73 * + ( 18 ) - + - 55 + - CAST( NULL AS SIGNED ) AS col1, + 22 + 28 AS col1
----
NULL
50

skipif mysql # not compatible
query II rowsort label-8906
SELECT DISTINCT 73 * + ( 18 ) - + - 55 + - CAST ( NULL AS INTEGER ) AS col1, + 22 + 28 AS col1
----
NULL
50

onlyif mysql # DIV for integer division: 
query I rowsort label-8907
SELECT + 64 * 32 * - - 60 DIV - ( 20 ) + 35 + 19
----
-6090

skipif mysql # not compatible
query I rowsort label-8907
SELECT + 64 * 32 * - - 60 / - ( 20 ) + 35 + 19
----
-6090

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8908
SELECT ALL - - ( + COALESCE ( 24, + + CAST( + 57 AS SIGNED ) + - + CASE + + 97 WHEN + 36 + + 48 THEN + 74 * - 54 WHEN - 55 THEN + 54 DIV - - 50 * + 42 + + 13 ELSE + 0 + + 43 * + CAST( + COALESCE ( 81, - MAX( DISTINCT + 68 ) DIV + NULLIF ( 28, - 56 ) - + 20 * ( 41 ), 92, 79 + + 61 * + 83 ) AS SIGNED ) END, + ( 94 ), - 29 ) )
----
24

skipif mysql # not compatible
query I rowsort label-8908
SELECT ALL - - ( + COALESCE ( 24, + + CAST ( + 57 AS INTEGER ) + - + CASE + + 97 WHEN + 36 + + 48 THEN + 74 * - 54 WHEN - 55 THEN + 54 / - - 50 * + 42 + + 13 ELSE + 0 + + 43 * + CAST ( + COALESCE ( 81, - MAX ( DISTINCT + 68 ) / + NULLIF ( 28, - 56 ) - + 20 * ( 41 ), 92, 79 + + 61 * + 83 ) AS INTEGER ) END, + ( 94 ), - 29 ) )
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-8909
SELECT - 40 - - 86 - + - COALESCE ( + 6, CASE - - 26 WHEN + - 50 THEN + + 1 ELSE + 76 END ) + - 34 + + 82 + + 1 + + + COUNT( * ) * - 5 AS col1
----
96

skipif mysql # not compatible
query I rowsort label-8909
SELECT - 40 - - 86 - + - COALESCE ( + 6, CASE - - 26 WHEN + - 50 THEN + + 1 ELSE + 76 END ) + - 34 + + 82 + + 1 + + + COUNT ( * ) * - 5 AS col1
----
96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8910
SELECT ALL - - ( - - CAST( 39 AS SIGNED ) ), MAX( + + 58 ) AS col0
----
39
58

skipif mysql # not compatible
query II rowsort label-8910
SELECT ALL - - ( - - CAST ( 39 AS INTEGER ) ), MAX ( + + 58 ) AS col0
----
39
58

query I rowsort
SELECT DISTINCT - - 14 col1
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-8912
SELECT DISTINCT - COUNT( * ) * + - ( - - 45 )
----
45

skipif mysql # not compatible
query I rowsort label-8912
SELECT DISTINCT - COUNT ( * ) * + - ( - - 45 )
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-8913
SELECT ALL + + SUM( - + 44 )
----
-44

skipif mysql # not compatible
query I rowsort label-8913
SELECT ALL + + SUM ( - + 44 )
----
-44

query I rowsort
SELECT COALESCE ( 4, + 41 )
----
4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8915
SELECT ALL + CASE - 36 WHEN + 21 THEN NULL WHEN - - CAST( - 7 AS SIGNED ) THEN + NULLIF ( - SUM( DISTINCT - + 33 ), 27 ) + - + 21 END, 2 * - 33 * CAST( NULL AS SIGNED ) / 14 AS col2
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-8915
SELECT ALL + CASE - 36 WHEN + 21 THEN NULL WHEN - - CAST ( - 7 AS INTEGER ) THEN + NULLIF ( - SUM ( DISTINCT - + 33 ), 27 ) + - + 21 END, 2 * - 33 * CAST ( NULL AS INTEGER ) / 14 AS col2
----
NULL
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8916
SELECT + COUNT( * ) col1, + 8 col0
----
1
8

skipif mysql # not compatible
query II rowsort label-8916
SELECT + COUNT ( * ) col1, + 8 col0
----
1
8

query I rowsort
SELECT ALL - 16 * + - 72
----
1152

onlyif mysql # aggregate syntax: 
query I rowsort label-8918
SELECT + + 11 + COUNT( 82 ) + + 19 AS col2
----
31

skipif mysql # not compatible
query I rowsort label-8918
SELECT + + 11 + COUNT ( 82 ) + + 19 AS col2
----
31

query II rowsort
SELECT ( + ( 72 ) ) AS col2, 90 + 50 * + 25
----
72
1340

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8920
SELECT - CAST( NULL AS SIGNED ) * + 88 + 17 - 23 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8920
SELECT - CAST ( NULL AS INTEGER ) * + 88 + 17 - 23 AS col0
----
NULL

query I rowsort
SELECT - 72 * 24 + - - 74
----
-1654

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-8922
SELECT - - 30 - - 36 * - CAST( NULL AS DECIMAL ), - 67 col2
----
NULL
-67

skipif mysql # not compatible
query II rowsort label-8922
SELECT - - 30 - - 36 * - CAST ( NULL AS REAL ), - 67 col2
----
NULL
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-8923
SELECT ALL SUM( DISTINCT - CASE + 61 WHEN - COALESCE ( CASE - 82 WHEN - + 6 + + 49 THEN + 33 END, + 86 ) THEN - 60 END )
----
NULL

skipif mysql # not compatible
query I rowsort label-8923
SELECT ALL SUM ( DISTINCT - CASE + 61 WHEN - COALESCE ( CASE - 82 WHEN - + 6 + + 49 THEN + 33 END, + 86 ) THEN - 60 END )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8924
SELECT - 61, + COUNT( * ) col0
----
-61
1

skipif mysql # not compatible
query II rowsort label-8924
SELECT - 61, + COUNT ( * ) col0
----
-61
1

query I rowsort
SELECT - 71 + + - 57
----
-128

query I rowsort
SELECT + 47 * - + 81 AS col2
----
-3807

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8927
SELECT ALL - NULLIF ( + 48, - 9 DIV - 91 + - - 63 ) + + COUNT( * ) - - + 0 + - 21 DIV - 81 * 95 * + 65 AS col2
----
-47

skipif mysql # not compatible
query I rowsort label-8927
SELECT ALL - NULLIF ( + 48, - 9 / - 91 + - - 63 ) + + COUNT ( * ) - - + 0 + - 21 / - 81 * 95 * + 65 AS col2
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-8928
SELECT DISTINCT - NULLIF ( + 73, 27 ) + + ( - + 85 ) + - COUNT( * ) + - 35
----
-194

skipif mysql # not compatible
query I rowsort label-8928
SELECT DISTINCT - NULLIF ( + 73, 27 ) + + ( - + 85 ) + - COUNT ( * ) + - 35
----
-194

query I rowsort
SELECT - 94 + + 67 - ( - 36 ) AS col2
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-8930
SELECT ALL + ( 51 ) + - CASE + + 31 WHEN - + MIN( ALL 12 ) THEN NULL WHEN - - NULLIF ( + + COUNT( * ), - 80 ) THEN - + COALESCE ( ( - 20 ), 62 + + + MAX( + 82 ) ) + + 18 * - 75 ELSE - COUNT( 62 ) END
----
52

skipif mysql # not compatible
query I rowsort label-8930
SELECT ALL + ( 51 ) + - CASE + + 31 WHEN - + MIN ( ALL 12 ) THEN NULL WHEN - - NULLIF ( + + COUNT ( * ), - 80 ) THEN - + COALESCE ( ( - 20 ), 62 + + + MAX ( + 82 ) ) + + 18 * - 75 ELSE - COUNT ( 62 ) END
----
52

query I rowsort
SELECT DISTINCT 40 * - ( + + 40 )
----
-1600

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8932
SELECT - 99 - - - COALESCE ( ( 52 ), - - NULLIF ( NULLIF ( + ( - ( + 24 ) ), 3 * - - MAX( ALL + + CAST( NULL AS SIGNED ) ) ), 9 ) + - + 47 DIV 69 + + - 80 ) + + 3
----
-148

skipif mysql # not compatible
query I rowsort label-8932
SELECT - 99 - - - COALESCE ( ( 52 ), - - NULLIF ( NULLIF ( + ( - ( + 24 ) ), 3 * - - MAX ( ALL + + CAST ( NULL AS INTEGER ) ) ), 9 ) + - + 47 / 69 + + - 80 ) + + 3
----
-148

onlyif mysql # aggregate syntax: 
query II rowsort label-8933
SELECT 56, + SUM( DISTINCT 82 ) AS col0
----
56
82

skipif mysql # not compatible
query II rowsort label-8933
SELECT 56, + SUM ( DISTINCT 82 ) AS col0
----
56
82

onlyif mysql # DIV for integer division: 
query I rowsort label-8934
SELECT - 75 DIV - - 42 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-8934
SELECT - 75 / - - 42 AS col0
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8935
SELECT + 81 * COALESCE ( - - 62, - + CAST( + 86 AS SIGNED ), - - 90 + + 13 * 20 * - - 92 )
----
5022

skipif mysql # not compatible
query I rowsort label-8935
SELECT + 81 * COALESCE ( - - 62, - + CAST ( + 86 AS INTEGER ), - - 90 + + 13 * 20 * - - 92 )
----
5022

onlyif mysql # aggregate syntax: 
query II rowsort label-8936
SELECT - SUM( + 48 ) AS col0, CASE - 26 WHEN - 51 THEN - 10 * - 96 WHEN - 45 THEN NULL ELSE NULL END - - 43
----
-48
NULL

skipif mysql # not compatible
query II rowsort label-8936
SELECT - SUM ( + 48 ) AS col0, CASE - 26 WHEN - 51 THEN - 10 * - 96 WHEN - 45 THEN NULL ELSE NULL END - - 43
----
-48
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8937
SELECT + CAST( - 3 AS SIGNED ) * COALESCE ( - 46, - 19 + - CASE - 41 WHEN - + 42 THEN NULL WHEN + 22 THEN NULL ELSE 84 END - - 97 * - 84 ) AS col0
----
138

skipif mysql # not compatible
query I rowsort label-8937
SELECT + CAST ( - 3 AS INTEGER ) * COALESCE ( - 46, - 19 + - CASE - 41 WHEN - + 42 THEN NULL WHEN + 22 THEN NULL ELSE 84 END - - 97 * - 84 ) AS col0
----
138

onlyif mysql # aggregate syntax: 
query I rowsort label-8938
SELECT - COUNT( * ) - - 2 + - 98
----
-97

skipif mysql # not compatible
query I rowsort label-8938
SELECT - COUNT ( * ) - - 2 + - 98
----
-97

query I rowsort
SELECT DISTINCT + 71 * 87
----
6177

onlyif mysql # DIV for integer division: 
query II rowsort label-8940
SELECT ALL 92 DIV 3 AS col2, - 53 * - + 33
----
30
1749

skipif mysql # not compatible
query II rowsort label-8940
SELECT ALL 92 / 3 AS col2, - 53 * - + 33
----
30
1749

query I rowsort
SELECT DISTINCT 96 * - 32 AS col2
----
-3072

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8942
SELECT + 79 DIV + - 31 - + 76 + 73 * 35 + COUNT( - - 42 ) AS col1
----
2478

skipif mysql # not compatible
query I rowsort label-8942
SELECT + 79 / + - 31 - + 76 + 73 * 35 + COUNT ( - - 42 ) AS col1
----
2478

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8943
SELECT + CASE CASE - CAST( 69 AS SIGNED ) WHEN 61 THEN - 49 WHEN + COALESCE ( CAST( COUNT( * ) AS SIGNED ), 41 / 32 / - NULLIF ( + 62, - 66 * + CASE + 51 WHEN 5 THEN 22 WHEN 35 * 86 THEN NULL ELSE NULL END ), + 80 ) THEN NULL WHEN 88 * COUNT( DISTINCT - ( 73 ) ) THEN NULL END WHEN + 14 THEN 32 + + CAST( NULL AS SIGNED ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-8943
SELECT + CASE CASE - CAST ( 69 AS INTEGER ) WHEN 61 THEN - 49 WHEN + COALESCE ( CAST ( COUNT ( * ) AS INTEGER ), 41 / 32 / - NULLIF ( + 62, - 66 * + CASE + 51 WHEN 5 THEN 22 WHEN 35 * 86 THEN NULL ELSE NULL END ), + 80 ) THEN NULL WHEN 88 * COUNT ( DISTINCT - ( 73 ) ) THEN NULL END WHEN + 14 THEN 32 + + CAST ( NULL AS INTEGER ) END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8944
SELECT - 12 / + - 44 * + - 63 + - + CASE + - 0 WHEN + 47 THEN + CAST( - 87 AS SIGNED ) - - - 32 WHEN - - 90 THEN NULL END + + - 52 + - + 64 * - 37
----
NULL

skipif mysql # not compatible
query I rowsort label-8944
SELECT - 12 / + - 44 * + - 63 + - + CASE + - 0 WHEN + 47 THEN + CAST ( - 87 AS INTEGER ) - - - 32 WHEN - - 90 THEN NULL END + + - 52 + - + 64 * - 37
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8945
SELECT + COALESCE ( + 40, 81 ) * - + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8945
SELECT + COALESCE ( + 40, 81 ) * - + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8946
SELECT + - CAST( NULL AS DECIMAL ) * AVG ( 68 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8946
SELECT + - CAST ( NULL AS REAL ) * AVG ( 68 )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8947
SELECT DISTINCT + 71, - 4 * - ( 7 ) + COUNT( * ) + + + 88 AS col1
----
71
117

skipif mysql # not compatible
query II rowsort label-8947
SELECT DISTINCT + 71, - 4 * - ( 7 ) + COUNT ( * ) + + + 88 AS col1
----
71
117

query I rowsort
SELECT ALL - 89 * + + 27 AS col2
----
-2403

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8949
SELECT + - COUNT( CAST( + 74 AS SIGNED ) ) * 48 DIV MAX( + 41 ) + - + 4
----
-5

skipif mysql # not compatible
query I rowsort label-8949
SELECT + - COUNT ( CAST ( + 74 AS INTEGER ) ) * 48 / MAX ( + 41 ) + - + 4
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-8950
SELECT DISTINCT COUNT( * ) * + + 19 AS col1
----
19

skipif mysql # not compatible
query I rowsort label-8950
SELECT DISTINCT COUNT ( * ) * + + 19 AS col1
----
19

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8951
SELECT + 13 * + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8951
SELECT + 13 * + CAST ( NULL AS INTEGER ) AS col0
----
NULL

query II rowsort
SELECT 3 AS col1, - ( - 9 ) * - + 31 AS col2
----
3
-279

query I rowsort
SELECT + 27 * - 29
----
-783

query II rowsort
SELECT + + 43 AS col1, 47 col2
----
43
47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8955
SELECT + CAST( - 35 AS SIGNED ) AS col2
----
-35

skipif mysql # not compatible
query I rowsort label-8955
SELECT + CAST ( - 35 AS INTEGER ) AS col2
----
-35

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8956
SELECT - COUNT( * ) DIV - COUNT( * ) col0
----
1

skipif mysql # not compatible
query I rowsort label-8956
SELECT - COUNT ( * ) / - COUNT ( * ) col0
----
1

query I rowsort
SELECT ALL - 87 * ( + 9 ) + + ( + 11 ) + + - 78 AS col1
----
-850

onlyif mysql # DIV for integer division: 
query I rowsort label-8958
SELECT DISTINCT + ( + 3 ) DIV 66
----
0

skipif mysql # not compatible
query I rowsort label-8958
SELECT DISTINCT + ( + 3 ) / 66
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8959
SELECT DISTINCT + 26 * - SUM( + 28 ) + + + 83 + - - CAST( NULL AS SIGNED ) - - - 85 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8959
SELECT DISTINCT + 26 * - SUM ( + 28 ) + + + 83 + - - CAST ( NULL AS INTEGER ) - - - 85 AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8960
SELECT DISTINCT - 42 * - 53 + 26 * + 80 * CASE CAST( NULL AS SIGNED ) WHEN + ( 50 ) THEN 68 END
----
NULL

skipif mysql # not compatible
query I rowsort label-8960
SELECT DISTINCT - 42 * - 53 + 26 * + 80 * CASE CAST ( NULL AS INTEGER ) WHEN + ( 50 ) THEN 68 END
----
NULL

query I rowsort
SELECT - 70 * + - 58 * + 49
----
198940

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8962
SELECT ALL + 9 * - 19 + - + 67 + + 7 DIV + CAST( - 2 AS SIGNED )
----
-241

skipif mysql # not compatible
query I rowsort label-8962
SELECT ALL + 9 * - 19 + - + 67 + + 7 / + CAST ( - 2 AS INTEGER )
----
-241

onlyif mysql # aggregate syntax: 
query I rowsort label-8963
SELECT DISTINCT COUNT( + - 47 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-8963
SELECT DISTINCT COUNT ( + - 47 ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-8964
SELECT + 99 + - COUNT( * ) AS col2, + ( + 86 )
----
98
86

skipif mysql # not compatible
query II rowsort label-8964
SELECT + 99 + - COUNT ( * ) AS col2, + ( + 86 )
----
98
86

onlyif mysql # aggregate syntax: 
query I rowsort label-8965
SELECT + 58 - - + COUNT( DISTINCT 65 ) AS col1
----
59

skipif mysql # not compatible
query I rowsort label-8965
SELECT + 58 - - + COUNT ( DISTINCT 65 ) AS col1
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-8966
SELECT + 75 + - MAX( ALL 51 ) AS col2
----
24

skipif mysql # not compatible
query I rowsort label-8966
SELECT + 75 + - MAX ( ALL 51 ) AS col2
----
24

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8967
SELECT - 40 * + ( + + CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-8967
SELECT - 40 * + ( + + CAST ( NULL AS INTEGER ) )
----
NULL

query I rowsort
SELECT DISTINCT ( + - ( - 75 ) ) AS col2
----
75

query I rowsort
SELECT ALL - 85 - - 52 * - 98 AS col2
----
-5181

onlyif mysql # aggregate syntax: 
query II rowsort label-8970
SELECT ALL COUNT( - - 40 ), + 2 AS col1
----
1
2

skipif mysql # not compatible
query II rowsort label-8970
SELECT ALL COUNT ( - - 40 ), + 2 AS col1
----
1
2

query I rowsort
SELECT ALL - 94 * + 19
----
-1786

query II rowsort
SELECT ALL - 85 - + - 44 AS col1, 73
----
-41
73

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8973
SELECT - 98 + COALESCE ( + + 33, + MAX( DISTINCT + + 67 ) ) * + 36 DIV 3 * - 96 * + 42 col2
----
-1596770

skipif mysql # not compatible
query I rowsort label-8973
SELECT - 98 + COALESCE ( + + 33, + MAX ( DISTINCT + + 67 ) ) * + 36 / 3 * - 96 * + 42 col2
----
-1596770

query I rowsort
SELECT ALL ( - ( 20 ) ) col2
----
-20

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8975
SELECT DISTINCT ( - + CAST( - 12 AS SIGNED ) ) AS col0
----
12

skipif mysql # not compatible
query I rowsort label-8975
SELECT DISTINCT ( - + CAST ( - 12 AS INTEGER ) ) AS col0
----
12

query I rowsort
SELECT - 28 + - 92 AS col2
----
-120

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8977
SELECT DISTINCT + CAST( NULL AS SIGNED ) / + + 70 AS col1, 71 AS col2
----
NULL
71

skipif mysql # not compatible
query II rowsort label-8977
SELECT DISTINCT + CAST ( NULL AS INTEGER ) / + + 70 AS col1, 71 AS col2
----
NULL
71

query I rowsort
SELECT - 86 * + 72 + ( - - 92 ) AS col0
----
-6100

onlyif mysql # aggregate syntax: 
query I rowsort label-8979
SELECT ALL + 85 * - 22 * 80 + - SUM( + 46 ) + + COALESCE ( + COUNT( * ), + 38 * COUNT( * ), + + COUNT( * ) * + 45 + - 21 + + 8 ) * + - 80 + 62
----
-149664

skipif mysql # not compatible
query I rowsort label-8979
SELECT ALL + 85 * - 22 * 80 + - SUM ( + 46 ) + + COALESCE ( + COUNT ( * ), + 38 * COUNT ( * ), + + COUNT ( * ) * + 45 + - 21 + + 8 ) * + - 80 + 62
----
-149664

query I rowsort
SELECT + ( + + 92 ) AS col2
----
92

query I rowsort
SELECT ALL + 41 * + - 10 * - 0 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8982
SELECT ALL - ( + + NULLIF ( + 31, COUNT( + 58 ) * + + COUNT( * ) + - - 46 - + 17 ) ) AS col2
----
-31

skipif mysql # not compatible
query I rowsort label-8982
SELECT ALL - ( + + NULLIF ( + 31, COUNT ( + 58 ) * + + COUNT ( * ) + - - 46 - + 17 ) ) AS col2
----
-31

query I rowsort
SELECT ALL - 49 * + 17 AS col2
----
-833

onlyif mysql # aggregate syntax: 
query I rowsort label-8984
SELECT ALL 32 + + ( + COALESCE ( + CASE + 33 WHEN - 19 * 81 - 13 THEN - COUNT( * ) END, 39 + 82 ) )
----
153

skipif mysql # not compatible
query I rowsort label-8984
SELECT ALL 32 + + ( + COALESCE ( + CASE + 33 WHEN - 19 * 81 - 13 THEN - COUNT ( * ) END, 39 + 82 ) )
----
153

query I rowsort
SELECT - 2 * + 5
----
-10

onlyif mysql # DIV for integer division: 
query II rowsort label-8986
SELECT DISTINCT + 67 + - + 45 AS col1, 23 DIV - + 52 + + 84 AS col1
----
22
84

skipif mysql # not compatible
query II rowsort label-8986
SELECT DISTINCT + 67 + - + 45 AS col1, 23 / - + 52 + + 84 AS col1
----
22
84

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8987
SELECT ALL + COUNT( * ) + 63 AS col0, + COALESCE ( - 45, 36 ) * + 98 + CAST( NULL AS SIGNED )
----
64
NULL

skipif mysql # not compatible
query II rowsort label-8987
SELECT ALL + COUNT ( * ) + 63 AS col0, + COALESCE ( - 45, 36 ) * + 98 + CAST ( NULL AS INTEGER )
----
64
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8988
SELECT ALL + CAST( NULL AS SIGNED ) + - - MAX( DISTINCT - + 99 ) + - CAST( - + 0 AS SIGNED ) + + ( + 13 ) * - 20 * + CASE + - 16 WHEN + 50 THEN + 67 * + + 50 - + 38 * - 33 / + 52 WHEN + - 9 THEN ( 80 ) END * AVG ( ALL 97 + 7 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8988
SELECT ALL + CAST ( NULL AS INTEGER ) + - - MAX ( DISTINCT - + 99 ) + - CAST ( - + 0 AS INTEGER ) + + ( + 13 ) * - 20 * + CASE + - 16 WHEN + 50 THEN + 67 * + + 50 - + 38 * - 33 / + 52 WHEN + - 9 THEN ( 80 ) END * AVG ( ALL 97 + 7 )
----
NULL

query I rowsort
SELECT - - 37 * 30 - 87 col2
----
1023

onlyif mysql # aggregate syntax: 
query I rowsort label-8990
SELECT DISTINCT COUNT( * ) + - + 17
----
-16

skipif mysql # not compatible
query I rowsort label-8990
SELECT DISTINCT COUNT ( * ) + - + 17
----
-16

onlyif mysql # aggregate syntax: 
query II rowsort label-8991
SELECT ALL CASE - - COUNT( 23 ) WHEN 56 + - ( - + COUNT( * ) ) THEN NULL ELSE - 99 END + 5 AS col2, 82 * COUNT( * ) col1
----
-94
82

skipif mysql # not compatible
query II rowsort label-8991
SELECT ALL CASE - - COUNT ( 23 ) WHEN 56 + - ( - + COUNT ( * ) ) THEN NULL ELSE - 99 END + 5 AS col2, 82 * COUNT ( * ) col1
----
-94
82

query I rowsort
SELECT ALL ( - 40 ) * - 61 AS col2
----
2440

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8993
SELECT COUNT( * ) DIV + + 61
----
0

skipif mysql # not compatible
query I rowsort label-8993
SELECT COUNT ( * ) / + + 61
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-8994
SELECT 98 * 62 + + CAST( NULL AS DECIMAL ) AS col1, 73 * + - 58 AS col2
----
NULL
-4234

skipif mysql # not compatible
query II rowsort label-8994
SELECT 98 * 62 + + CAST ( NULL AS REAL ) AS col1, 73 * + - 58 AS col2
----
NULL
-4234

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8995
SELECT ALL - 98 AS col1, 18 + - 75 / + COUNT( * ) * + 14 + + 41 + + 20 + + CAST( - 99 AS SIGNED ) * 77 * + ( - CAST( NULL AS SIGNED ) )
----
-98
NULL

skipif mysql # not compatible
query II rowsort label-8995
SELECT ALL - 98 AS col1, 18 + - 75 / + COUNT ( * ) * + 14 + + 41 + + 20 + + CAST ( - 99 AS INTEGER ) * 77 * + ( - CAST ( NULL AS INTEGER ) )
----
-98
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8996
SELECT 69 + + + COUNT( ALL - 32 ) + 12 * + + CAST( NULL AS SIGNED ) + + + MAX( + - 48 ) - - ( + 33 ) * + 49 * 11 + + 46
----
NULL

skipif mysql # not compatible
query I rowsort label-8996
SELECT 69 + + + COUNT ( ALL - 32 ) + 12 * + + CAST ( NULL AS INTEGER ) + + + MAX ( + - 48 ) - - ( + 33 ) * + 49 * 11 + + 46
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8997
SELECT DISTINCT 87 - - + 0 + - - 97 DIV ( - 58 ) + + 62 AS col2
----
148

skipif mysql # not compatible
query I rowsort label-8997
SELECT DISTINCT 87 - - + 0 + - - 97 / ( - 58 ) + + 62 AS col2
----
148

query II rowsort
SELECT ALL 82, 98 + + 20 col2
----
82
118

query II rowsort
SELECT ALL 35 AS col2, 68
----
35
68

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9000
SELECT DISTINCT 87 col1, COUNT( * ) * - + CAST( + COUNT( * ) AS SIGNED ) AS col0
----
87
-1

skipif mysql # not compatible
query II rowsort label-9000
SELECT DISTINCT 87 col1, COUNT ( * ) * - + CAST ( + COUNT ( * ) AS INTEGER ) AS col0
----
87
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9001
SELECT CAST( + - 11 AS SIGNED ) / + 73 + + NULLIF ( CASE - - 15 WHEN - 81 THEN 64 ELSE NULL END, 85 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9001
SELECT CAST ( + - 11 AS INTEGER ) / + 73 + + NULLIF ( CASE - - 15 WHEN - 81 THEN 64 ELSE NULL END, 85 )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9002
SELECT ALL + 26 DIV NULLIF ( + 93, 63 * + + 2 )
----
0

skipif mysql # not compatible
query I rowsort label-9002
SELECT ALL + 26 / NULLIF ( + 93, 63 * + + 2 )
----
0

query II rowsort
SELECT ALL 44, 94 col0
----
44
94

query I rowsort
SELECT DISTINCT + 8 * - 19
----
-152

query I rowsort
SELECT ALL - 54 * - 15 AS col2
----
810

query II rowsort
SELECT - 1 AS col0, + 72 * + 51
----
-1
3672

onlyif mysql # DIV for integer division: 
query I rowsort label-9007
SELECT 58 - - 79 DIV 33 * + + NULLIF ( 0, - 62 * + ( + + ( + 71 ) ) ) + 70 col1
----
128

skipif mysql # not compatible
query I rowsort label-9007
SELECT 58 - - 79 / 33 * + + NULLIF ( 0, - 62 * + ( + + ( + 71 ) ) ) + 70 col1
----
128

query II rowsort
SELECT - 54 AS col0, + 95 col1
----
-54
95

query I rowsort
SELECT 97 * + 40 AS col0
----
3880

query I rowsort
SELECT ALL + 63 * 57 col2
----
3591

onlyif mysql # aggregate syntax: 
query I rowsort label-9011
SELECT - 79 - COUNT( * ) AS col1
----
-80

skipif mysql # not compatible
query I rowsort label-9011
SELECT - 79 - COUNT ( * ) AS col1
----
-80

query I rowsort
SELECT 4 * + 62 * 44 + - 57 AS col0
----
10855

query I rowsort
SELECT - 93 - + 45
----
-138

onlyif mysql # aggregate syntax: 
query I rowsort label-9014
SELECT + MIN( DISTINCT + - 78 )
----
-78

skipif mysql # not compatible
query I rowsort label-9014
SELECT + MIN ( DISTINCT + - 78 )
----
-78

onlyif mysql # aggregate syntax: 
query II rowsort label-9015
SELECT 80 - + MAX( + 27 ) AS col0, + 76 + + 74 AS col1
----
53
150

skipif mysql # not compatible
query II rowsort label-9015
SELECT 80 - + MAX ( + 27 ) AS col0, + 76 + + 74 AS col1
----
53
150

query II rowsort
SELECT ALL 13, ( 14 ) col1
----
13
14

onlyif mysql # aggregate syntax: 
query I rowsort label-9017
SELECT + MIN( + 17 )
----
17

skipif mysql # not compatible
query I rowsort label-9017
SELECT + MIN ( + 17 )
----
17

query I rowsort
SELECT DISTINCT - ( 50 ) AS col0
----
-50

query II rowsort
SELECT ALL - 4 + - ( + 98 ) AS col0, + 63 AS col2
----
-102
63

query I rowsort
SELECT - 53 * + - 52 + + 12 + + 25
----
2793

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9021
SELECT ( + - 38 ) - - CAST( - 58 AS SIGNED )
----
-96

skipif mysql # not compatible
query I rowsort label-9021
SELECT ( + - 38 ) - - CAST ( - 58 AS INTEGER )
----
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-9022
SELECT ALL + + 36 * - COUNT( * ) AS col1
----
-36

skipif mysql # not compatible
query I rowsort label-9022
SELECT ALL + + 36 * - COUNT ( * ) AS col1
----
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-9023
SELECT ALL - 37 + + MAX( ALL - 96 ) col2
----
-133

skipif mysql # not compatible
query I rowsort label-9023
SELECT ALL - 37 + + MAX ( ALL - 96 ) col2
----
-133

query I rowsort
SELECT ALL 66 + - 13 + + 39 * CASE + - 57 WHEN - 8 THEN NULL ELSE 68 END AS col2
----
2705

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9025
SELECT - COALESCE ( - - 0, - + 52, + COALESCE ( - 1, + 53 ) + 24 * 53 ) + - 39 + - - 40 - + NULLIF ( - - 75, 92 ) * - + CAST( NULL AS SIGNED ) * - - COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9025
SELECT - COALESCE ( - - 0, - + 52, + COALESCE ( - 1, + 53 ) + 24 * 53 ) + - 39 + - - 40 - + NULLIF ( - - 75, 92 ) * - + CAST ( NULL AS INTEGER ) * - - COUNT ( * ) AS col0
----
NULL

query II rowsort
SELECT ALL + - 57 + - 38 + - + 21 AS col1, - 64 AS col1
----
-116
-64

onlyif mysql # aggregate syntax: 
query II rowsort label-9027
SELECT COUNT( * ) * + 78 + ( - 40 ) col2, ( - 74 ) * - + COUNT( * ) * - 38
----
38
-2812

skipif mysql # not compatible
query II rowsort label-9027
SELECT COUNT ( * ) * + 78 + ( - 40 ) col2, ( - 74 ) * - + COUNT ( * ) * - 38
----
38
-2812

onlyif mysql # DIV for integer division: 
query I rowsort label-9028
SELECT ALL 82 DIV + 37
----
2

skipif mysql # not compatible
query I rowsort label-9028
SELECT ALL 82 / + 37
----
2

query II rowsort
SELECT 53 * + + 4 AS col2, 86
----
212
86

onlyif mysql # aggregate syntax: 
query I rowsort label-9030
SELECT ALL - ( ( - + SUM( + - 61 ) ) )
----
-61

skipif mysql # not compatible
query I rowsort label-9030
SELECT ALL - ( ( - + SUM ( + - 61 ) ) )
----
-61

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9031
SELECT CASE + 75 WHEN + 79 THEN NULL WHEN MAX( 12 ) + - + 17 THEN 92 + 8 * + 87 ELSE NULL END * - - CAST( NULL AS SIGNED ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9031
SELECT CASE + 75 WHEN + 79 THEN NULL WHEN MAX ( 12 ) + - + 17 THEN 92 + 8 * + 87 ELSE NULL END * - - CAST ( NULL AS INTEGER ) col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9032
SELECT DISTINCT 88 - + ( + ( + + 53 ) ) + - CASE COUNT( * ) WHEN 48 THEN - COUNT( * ) WHEN - 25 + + - COALESCE ( - 76, - 0, 81 * - + COUNT( * ) ) - - - 26 + - - 54 * MIN( ALL - 4 ) * + 49 THEN - NULLIF ( - COUNT( * ), - COALESCE ( 95, - ( 56 ) ) ) - 78 END col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9032
SELECT DISTINCT 88 - + ( + ( + + 53 ) ) + - CASE COUNT ( * ) WHEN 48 THEN - COUNT ( * ) WHEN - 25 + + - COALESCE ( - 76, - 0, 81 * - + COUNT ( * ) ) - - - 26 + - - 54 * MIN ( ALL - 4 ) * + 49 THEN - NULLIF ( - COUNT ( * ), - COALESCE ( 95, - ( 56 ) ) ) - 78 END col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9033
SELECT ALL 23 - + + COUNT( * ) * - 34 AS col0
----
57

skipif mysql # not compatible
query I rowsort label-9033
SELECT ALL 23 - + + COUNT ( * ) * - 34 AS col0
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-9034
SELECT MAX( + 94 ) * COUNT( * ) AS col0
----
94

skipif mysql # not compatible
query I rowsort label-9034
SELECT MAX ( + 94 ) * COUNT ( * ) AS col0
----
94

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9035
SELECT 58 * + 71 * 47 + - 61 * - 66 - - 88 + - CAST( NULL AS SIGNED ) AS col2, - 20
----
NULL
-20

skipif mysql # not compatible
query II rowsort label-9035
SELECT 58 * + 71 * 47 + - 61 * - 66 - - 88 + - CAST ( NULL AS INTEGER ) AS col2, - 20
----
NULL
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-9036
SELECT DISTINCT NULLIF ( COUNT( * ), ( - ( - COUNT( * ) ) ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9036
SELECT DISTINCT NULLIF ( COUNT ( * ), ( - ( - COUNT ( * ) ) ) ) AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-9037
SELECT ALL 87 DIV - + 85 AS col1, 16
----
-1
16

skipif mysql # not compatible
query II rowsort label-9037
SELECT ALL 87 / - + 85 AS col1, 16
----
-1
16

onlyif mysql # aggregate syntax: 
query I rowsort label-9038
SELECT ( + COUNT( * ) ) * + 84
----
84

skipif mysql # not compatible
query I rowsort label-9038
SELECT ( + COUNT ( * ) ) * + 84
----
84

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9039
SELECT DISTINCT NULLIF ( + - 94, - + 30 DIV + + COUNT( * ) ) * 26 - 44 + - + 36 DIV - + 38 AS col2
----
-2488

skipif mysql # not compatible
query I rowsort label-9039
SELECT DISTINCT NULLIF ( + - 94, - + 30 / + + COUNT ( * ) ) * 26 - 44 + - + 36 / - + 38 AS col2
----
-2488

query I rowsort
SELECT DISTINCT 22 * 65 * + 95 * + 86 AS col1
----
11683100

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9041
SELECT 68 + - CAST( NULL AS DECIMAL ) * + + 99 * + CASE + 41 WHEN + SUM( 72 ) / + 72 * - 40 THEN NULL WHEN - COALESCE ( + 63, + 60, + 44 ) * + + CAST( - 80 AS DECIMAL ) + 63 / - - 21 THEN + CAST( - ( + NULLIF ( - NULLIF ( - 35, 27 / - MAX( 65 ) ), 24 + 71 ) ) AS SIGNED ) + CAST( NULL AS DECIMAL ) END - + 56 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9041
SELECT 68 + - CAST ( NULL AS REAL ) * + + 99 * + CASE + 41 WHEN + SUM ( 72 ) / + 72 * - 40 THEN NULL WHEN - COALESCE ( + 63, + 60, + 44 ) * + + CAST ( - 80 AS REAL ) + 63 / - - 21 THEN + CAST ( - ( + NULLIF ( - NULLIF ( - 35, 27 / - MAX ( 65 ) ), 24 + 71 ) ) AS INTEGER ) + CAST ( NULL AS REAL ) END - + 56 AS col1
----
NULL

query I rowsort
SELECT 3 + 97 * + 89 - + + 43 col1
----
8593

onlyif mysql # aggregate syntax: 
query I rowsort label-9043
SELECT 13 + - 82 + COUNT( * ) * - + 3 AS col1
----
-72

skipif mysql # not compatible
query I rowsort label-9043
SELECT 13 + - 82 + COUNT ( * ) * - + 3 AS col1
----
-72

query I rowsort
SELECT ALL + 93 + + 21 + - 28 + 75 * 31 * + 78 * + 2 AS col2
----
362786

onlyif mysql # aggregate syntax: 
query I rowsort label-9045
SELECT + COUNT( DISTINCT - 52 ) + + - 90 + + 71
----
-18

skipif mysql # not compatible
query I rowsort label-9045
SELECT + COUNT ( DISTINCT - 52 ) + + - 90 + + 71
----
-18

onlyif mysql # DIV for integer division: 
query I rowsort label-9046
SELECT ALL 65 DIV 27
----
2

skipif mysql # not compatible
query I rowsort label-9046
SELECT ALL 65 / 27
----
2

query I rowsort
SELECT DISTINCT - 66 + + - 12 AS col1
----
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-9048
SELECT ALL - COUNT( * ) + + 94 col1
----
93

skipif mysql # not compatible
query I rowsort label-9048
SELECT ALL - COUNT ( * ) + + 94 col1
----
93

onlyif mysql # DIV for integer division: 
query I rowsort label-9049
SELECT DISTINCT + ( + 45 ) DIV 46 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9049
SELECT DISTINCT + ( + 45 ) / 46 AS col0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9050
SELECT ALL + CAST( NULL AS SIGNED ) + - 32
----
NULL

skipif mysql # not compatible
query I rowsort label-9050
SELECT ALL + CAST ( NULL AS INTEGER ) + - 32
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9051
SELECT + + 27 * + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9051
SELECT + + 27 * + CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9052
SELECT - + 22 + + + 60 * COUNT( * ) AS col1
----
38

skipif mysql # not compatible
query I rowsort label-9052
SELECT - + 22 + + + 60 * COUNT ( * ) AS col1
----
38

query I rowsort
SELECT DISTINCT 5 + + 10 + + - 44 col1
----
-29

query I rowsort
SELECT ALL - + 97 + + 73 AS col1
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-9055
SELECT ALL + - COUNT( + + ( 11 ) )
----
-1

skipif mysql # not compatible
query I rowsort label-9055
SELECT ALL + - COUNT ( + + ( 11 ) )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9056
SELECT - 20 * + 83 * - + MAX( DISTINCT + 55 ) * - - CASE - 22 WHEN MIN( DISTINCT + + 40 ) * + + 91 * - + 1 THEN 99 END
----
NULL

skipif mysql # not compatible
query I rowsort label-9056
SELECT - 20 * + 83 * - + MAX ( DISTINCT + 55 ) * - - CASE - 22 WHEN MIN ( DISTINCT + + 40 ) * + + 91 * - + 1 THEN 99 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9057
SELECT COALESCE ( + + 29, - 79 + 81 + - 15 * + - COUNT( * ), 49 ) AS col1
----
29

skipif mysql # not compatible
query I rowsort label-9057
SELECT COALESCE ( + + 29, - 79 + 81 + - 15 * + - COUNT ( * ), 49 ) AS col1
----
29

query I rowsort
SELECT 34 * - - 79 - - 12
----
2698

query I rowsort
SELECT - 65 * + 86
----
-5590

onlyif mysql # aggregate syntax: 
query I rowsort label-9060
SELECT COALESCE ( - COUNT( * ), + 80, + + 25 ) col1
----
-1

skipif mysql # not compatible
query I rowsort label-9060
SELECT COALESCE ( - COUNT ( * ), + 80, + + 25 ) col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9061
SELECT ALL + NULLIF ( - SUM( ALL + - ( 74 ) ), - 42 ) AS col1
----
74

skipif mysql # not compatible
query I rowsort label-9061
SELECT ALL + NULLIF ( - SUM ( ALL + - ( 74 ) ), - 42 ) AS col1
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-9062
SELECT DISTINCT - 43 * - COUNT( - - 34 )
----
43

skipif mysql # not compatible
query I rowsort label-9062
SELECT DISTINCT - 43 * - COUNT ( - - 34 )
----
43

onlyif mysql # DIV for integer division: 
query I rowsort label-9063
SELECT - 29 DIV - 29 col1
----
1

skipif mysql # not compatible
query I rowsort label-9063
SELECT - 29 / - 29 col1
----
1

query I rowsort
SELECT ALL - 26 * + + 87
----
-2262

query II rowsort
SELECT COALESCE ( - 35, 38 * + 17 + + - 2 + + 64 * - 5 + 29 + - - 25 + + 38 ), - 56 + 29 col1
----
-35
-27

query I rowsort
SELECT ( 79 ) * - 69 - - 30
----
-5421

query I rowsort
SELECT ALL - 35 * + 75 AS col2
----
-2625

query I rowsort
SELECT DISTINCT + 81 * + 70
----
5670

query I rowsort
SELECT ALL - 26 * - + 93 AS col1
----
2418

query I rowsort
SELECT ALL + 63 * + + 46
----
2898

query I rowsort
SELECT + 45 * - 53 AS col0
----
-2385

onlyif mysql # aggregate syntax: 
query I rowsort label-9072
SELECT ALL COUNT( * ) + - - COALESCE ( - 41, + - 40 ) - 84 * - 65 - 40
----
5380

skipif mysql # not compatible
query I rowsort label-9072
SELECT ALL COUNT ( * ) + - - COALESCE ( - 41, + - 40 ) - 84 * - 65 - 40
----
5380

query I rowsort
SELECT DISTINCT + - 32 + + 27 AS col2
----
-5

query I rowsort
SELECT + - 17 * + + 98
----
-1666

query I rowsort
SELECT DISTINCT - 6 + 68
----
62

query I rowsort
SELECT DISTINCT - + COALESCE ( + 5, - 41 ) * + 96 AS col0
----
-480

onlyif mysql # aggregate syntax: 
query I rowsort label-9077
SELECT ALL + 37 + - ( + COUNT( * ) ) AS col1
----
36

skipif mysql # not compatible
query I rowsort label-9077
SELECT ALL + 37 + - ( + COUNT ( * ) ) AS col1
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-9078
SELECT ALL - SUM( + 73 ) + + - ( - 3 ) - - + 41
----
-29

skipif mysql # not compatible
query I rowsort label-9078
SELECT ALL - SUM ( + 73 ) + + - ( - 3 ) - - + 41
----
-29

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9079
SELECT - COUNT( * ) + 35 * + + NULLIF ( + 12, 62 * 25 + - + ( + - 97 ) + + CAST( NULL AS DECIMAL ) + + - 71 + - - 73 )
----
419

skipif mysql # not compatible
query I rowsort label-9079
SELECT - COUNT ( * ) + 35 * + + NULLIF ( + 12, 62 * 25 + - + ( + - 97 ) + + CAST ( NULL AS REAL ) + + - 71 + - - 73 )
----
419

query I rowsort
SELECT + 11 * + - 29
----
-319

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9081
SELECT DISTINCT CASE + 96 WHEN + - 7 THEN NULL ELSE COALESCE ( - COUNT( * ), 22, + COUNT( + + 40 ) ) * + 51 - + 37 * - CAST( NULL AS SIGNED ) END * SUM( CAST( 0 AS SIGNED ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9081
SELECT DISTINCT CASE + 96 WHEN + - 7 THEN NULL ELSE COALESCE ( - COUNT ( * ), 22, + COUNT ( + + 40 ) ) * + 51 - + 37 * - CAST ( NULL AS INTEGER ) END * SUM ( CAST ( 0 AS INTEGER ) ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9082
SELECT + COUNT( DISTINCT - 27 ) + 47
----
48

skipif mysql # not compatible
query I rowsort label-9082
SELECT + COUNT ( DISTINCT - 27 ) + 47
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-9083
SELECT ALL 94 + + CASE + - 5 WHEN 79 THEN NULL WHEN + + 50 THEN 5 END * - - CASE - 77 WHEN ( ( - 96 ) ) THEN NULL WHEN - + MAX( ALL - 88 ) THEN NULL WHEN 51 THEN 41 * 60 + + 42 + 9 ELSE + - 1 - + 61 END
----
NULL

skipif mysql # not compatible
query I rowsort label-9083
SELECT ALL 94 + + CASE + - 5 WHEN 79 THEN NULL WHEN + + 50 THEN 5 END * - - CASE - 77 WHEN ( ( - 96 ) ) THEN NULL WHEN - + MAX ( ALL - 88 ) THEN NULL WHEN 51 THEN 41 * 60 + + 42 + 9 ELSE + - 1 - + 61 END
----
NULL

query I rowsort
SELECT DISTINCT + - 15 + 40
----
25

query I rowsort
SELECT DISTINCT 56 - - 93
----
149

query I rowsort
SELECT + + 41 + + 91 * + 62 * + 40 AS col0
----
225721

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9087
SELECT ALL - - 69 * + + MAX( ALL + 89 ) * + CAST( + AVG ( + + 39 ) AS SIGNED ) + - 11 + - 68 AS col2
----
239420

skipif mysql # not compatible
query I rowsort label-9087
SELECT ALL - - 69 * + + MAX ( ALL + 89 ) * + CAST ( + AVG ( + + 39 ) AS INTEGER ) + - 11 + - 68 AS col2
----
239420

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9088
SELECT DISTINCT 83 / + CASE - - CAST( NULL AS DECIMAL ) WHEN 78 * + CAST( + COUNT( * ) AS SIGNED ) / 71 + ( + + 41 ) - ( - + SUM( + 76 ) ) + - 58 * + 65 * - + ( - SUM( ALL + + 3 ) ) THEN - 88 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-9088
SELECT DISTINCT 83 / + CASE - - CAST ( NULL AS REAL ) WHEN 78 * + CAST ( + COUNT ( * ) AS INTEGER ) / 71 + ( + + 41 ) - ( - + SUM ( + 76 ) ) + - 58 * + 65 * - + ( - SUM ( ALL + + 3 ) ) THEN - 88 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9089
SELECT + - 55 + MAX( ALL + ( - 4 ) ) * - 11 * SUM( + + 22 )
----
913

skipif mysql # not compatible
query I rowsort label-9089
SELECT + - 55 + MAX ( ALL + ( - 4 ) ) * - 11 * SUM ( + + 22 )
----
913

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9090
SELECT + COUNT( DISTINCT - - 84 ) / + - 70 + COUNT( * ) - 60 / COUNT( * ) * CAST( NULL AS SIGNED ) * + 86 + COUNT( * ) * - + 92 + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-9090
SELECT + COUNT ( DISTINCT - - 84 ) / + - 70 + COUNT ( * ) - 60 / COUNT ( * ) * CAST ( NULL AS INTEGER ) * + 86 + COUNT ( * ) * - + 92 + COUNT ( * )
----
NULL

query II rowsort
SELECT ALL + 79, - 72 col2
----
79
-72

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9092
SELECT 39 * 1 + + ( - + COALESCE ( - + ( - COALESCE ( 56, + - 92 ) ), + CAST( NULL AS SIGNED ), - 50 ) ) col2
----
-17

skipif mysql # not compatible
query I rowsort label-9092
SELECT 39 * 1 + + ( - + COALESCE ( - + ( - COALESCE ( 56, + - 92 ) ), + CAST ( NULL AS INTEGER ), - 50 ) ) col2
----
-17

query I rowsort
SELECT - 41 - + + 45
----
-86

query I rowsort
SELECT ALL 47 * - - 50
----
2350

query I rowsort
SELECT + 53 * - 37 * + - 5
----
9805

onlyif mysql # aggregate syntax: DIV for integer division: 
query III rowsort label-9096
SELECT - 18 DIV + - ( - 45 ) + + 57 AS col1, + 24 * CASE COUNT( * ) WHEN - COUNT( * ) THEN NULL ELSE - 30 END AS col0, - COUNT( - 35 ) AS col0
----
57
-720
-1

skipif mysql # not compatible
query III rowsort label-9096
SELECT - 18 / + - ( - 45 ) + + 57 AS col1, + 24 * CASE COUNT ( * ) WHEN - COUNT ( * ) THEN NULL ELSE - 30 END AS col0, - COUNT ( - 35 ) AS col0
----
57
-720
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9097
SELECT + 30 * + 88 + - - CASE - 69 WHEN + COUNT( DISTINCT 9 ) THEN - 33 ELSE - COUNT( * ) END
----
2639

skipif mysql # not compatible
query I rowsort label-9097
SELECT + 30 * + 88 + - - CASE - 69 WHEN + COUNT ( DISTINCT 9 ) THEN - 33 ELSE - COUNT ( * ) END
----
2639

onlyif mysql # aggregate syntax: 
query II rowsort label-9098
SELECT DISTINCT 76 * + + 11 * - COALESCE ( 98, + + SUM( DISTINCT - 66 ) ) AS col1, - 69 * 23 AS col1
----
-81928
-1587

skipif mysql # not compatible
query II rowsort label-9098
SELECT DISTINCT 76 * + + 11 * - COALESCE ( 98, + + SUM ( DISTINCT - 66 ) ) AS col1, - 69 * 23 AS col1
----
-81928
-1587

onlyif mysql # aggregate syntax: 
query II rowsort label-9099
SELECT DISTINCT + COUNT( * ), 90 AS col1
----
1
90

skipif mysql # not compatible
query II rowsort label-9099
SELECT DISTINCT + COUNT ( * ), 90 AS col1
----
1
90

query I rowsort
SELECT ALL + ( + + 86 )
----
86

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9101
SELECT - 75 DIV - 48 * COUNT( DISTINCT - 40 )
----
1

skipif mysql # not compatible
query I rowsort label-9101
SELECT - 75 / - 48 * COUNT ( DISTINCT - 40 )
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9102
SELECT ALL + COALESCE ( - NULLIF ( CAST( NULL AS SIGNED ), + COUNT( * ) ), 58 ) AS col2
----
58

skipif mysql # not compatible
query I rowsort label-9102
SELECT ALL + COALESCE ( - NULLIF ( CAST ( NULL AS INTEGER ), + COUNT ( * ) ), 58 ) AS col2
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-9103
SELECT + ( + 79 ) + COUNT( + 61 )
----
80

skipif mysql # not compatible
query I rowsort label-9103
SELECT + ( + 79 ) + COUNT ( + 61 )
----
80

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9104
SELECT ALL - 4 DIV CAST( - COUNT( * ) AS SIGNED )
----
4

skipif mysql # not compatible
query I rowsort label-9104
SELECT ALL - 4 / CAST ( - COUNT ( * ) AS INTEGER )
----
4

onlyif mysql # DIV for integer division: 
query I rowsort label-9105
SELECT DISTINCT 62 DIV + 34 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-9105
SELECT DISTINCT 62 / + 34 AS col1
----
1

query I rowsort
SELECT ALL + 32 + + 15
----
47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9107
SELECT COUNT( + + 45 ) * - CASE CAST( + - AVG ( - - 96 ) AS SIGNED ) WHEN 13 + - 86 THEN - - CAST( NULL AS SIGNED ) + - NULLIF ( + ( + 2 ), 34 ) - - MIN( + NULLIF ( CAST( - 28 AS SIGNED ), - - 0 ) ) + + ( - + 5 ) + + 31 * 41 ELSE NULL END + 9 / 59
----
NULL

skipif mysql # not compatible
query I rowsort label-9107
SELECT COUNT ( + + 45 ) * - CASE CAST ( + - AVG ( - - 96 ) AS INTEGER ) WHEN 13 + - 86 THEN - - CAST ( NULL AS INTEGER ) + - NULLIF ( + ( + 2 ), 34 ) - - MIN ( + NULLIF ( CAST ( - 28 AS INTEGER ), - - 0 ) ) + + ( - + 5 ) + + 31 * 41 ELSE NULL END + 9 / 59
----
NULL

query I rowsort
SELECT DISTINCT - 59 + - 37 AS col1
----
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-9109
SELECT DISTINCT - COUNT( * ) * - 77
----
77

skipif mysql # not compatible
query I rowsort label-9109
SELECT DISTINCT - COUNT ( * ) * - 77
----
77

query I rowsort
SELECT DISTINCT - 50 + 11
----
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-9111
SELECT DISTINCT + + MAX( - ( 33 ) ) + + 89 + 59
----
115

skipif mysql # not compatible
query I rowsort label-9111
SELECT DISTINCT + + MAX ( - ( 33 ) ) + + 89 + 59
----
115

query I rowsort
SELECT - 12 + 11 AS col1
----
-1

query II rowsort
SELECT - - 79 AS col0, + 94 AS col0
----
79
94

query II rowsort
SELECT ALL 32 AS col1, 1 AS col1
----
32
1

query II rowsort
SELECT ALL 82, - 88 * + 91 AS col2
----
82
-8008

query II rowsort
SELECT 46 AS col1, 82 AS col2
----
46
82

query I rowsort
SELECT + 22 + 81
----
103

onlyif mysql # aggregate syntax: 
query I rowsort label-9118
SELECT ALL + COUNT( * ) - 12 + 94 + 4 + 97 * NULLIF ( - 2, - - 8 )
----
-107

skipif mysql # not compatible
query I rowsort label-9118
SELECT ALL + COUNT ( * ) - 12 + 94 + 4 + 97 * NULLIF ( - 2, - - 8 )
----
-107

query I rowsort
SELECT + 61 + + 88 AS col2
----
149

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9120
SELECT - 44, CAST( NULL AS SIGNED ) col1
----
-44
NULL

skipif mysql # not compatible
query II rowsort label-9120
SELECT - 44, CAST ( NULL AS INTEGER ) col1
----
-44
NULL

query I rowsort
SELECT ( - 59 ) + 69 AS col2
----
10

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9122
SELECT ALL - + 25 - 81 - + 81 + - 92 * + 41 * CAST( NULL AS DECIMAL ) * - 61 * + - 82 * - - COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9122
SELECT ALL - + 25 - 81 - + 81 + - 92 * + 41 * CAST ( NULL AS REAL ) * - 61 * + - 82 * - - COUNT ( * ) AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9123
SELECT DISTINCT 14 * - ( + + COUNT( * ) ) * CAST( NULL AS SIGNED ) * + COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9123
SELECT DISTINCT 14 * - ( + + COUNT ( * ) ) * CAST ( NULL AS INTEGER ) * + COUNT ( * ) AS col1
----
NULL

query II rowsort
SELECT + 88 + 0 col0, - 39
----
88
-39

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9125
SELECT ALL 50 AS col0, - 41 * - CAST( NULL AS SIGNED ) / + COUNT( * ) * - ( + - COALESCE ( + 28, + + 78 ) ) * 44
----
50
NULL

skipif mysql # not compatible
query II rowsort label-9125
SELECT ALL 50 AS col0, - 41 * - CAST ( NULL AS INTEGER ) / + COUNT ( * ) * - ( + - COALESCE ( + 28, + + 78 ) ) * 44
----
50
NULL

query I rowsort
SELECT ALL - + ( 82 ) * - 80 * - 55 * - - 0 AS col2
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9127
SELECT 14 DIV 50 + + + 90 + - - COUNT( * ) - 62
----
29

skipif mysql # not compatible
query I rowsort label-9127
SELECT 14 / 50 + + + 90 + - - COUNT ( * ) - 62
----
29

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-9128
SELECT - 11 * - 68 AS col0, - CAST( + MAX( DISTINCT ( - 16 ) ) AS SIGNED ) DIV MAX( + + 14 ) + + 27 + - + COALESCE ( - + CAST( NULL AS SIGNED ), + - COUNT( * ) * - ( - - COALESCE ( - 69, + + 53 ) ) ) + + ( + ( 93 ) ) * - 79 * 58
----
748
-426029

skipif mysql # not compatible
query II rowsort label-9128
SELECT - 11 * - 68 AS col0, - CAST ( + MAX ( DISTINCT ( - 16 ) ) AS INTEGER ) / MAX ( + + 14 ) + + 27 + - + COALESCE ( - + CAST ( NULL AS INTEGER ), + - COUNT ( * ) * - ( - - COALESCE ( - 69, + + 53 ) ) ) + + ( + ( 93 ) ) * - 79 * 58
----
748
-426029

onlyif mysql # aggregate syntax: DIV for integer division: 
query III rowsort label-9129
SELECT - + 60 AS col2, COUNT( * ) DIV - + 91 + + 96 AS col1, - + COUNT( DISTINCT + + 91 ) col0
----
-60
96
-1

skipif mysql # not compatible
query III rowsort label-9129
SELECT - + 60 AS col2, COUNT ( * ) / - + 91 + + 96 AS col1, - + COUNT ( DISTINCT + + 91 ) col0
----
-60
96
-1

query I rowsort
SELECT 4 + - 49 AS col0
----
-45

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9131
SELECT - 29 * CAST( NULL AS SIGNED ) - - 10
----
NULL

skipif mysql # not compatible
query I rowsort label-9131
SELECT - 29 * CAST ( NULL AS INTEGER ) - - 10
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9132
SELECT ALL ( + AVG ( DISTINCT - ( + 35 ) ) ) * + + 58 * CASE WHEN ( 10 ) IN ( 37 / COUNT( * ) - - 1 ) THEN 61 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9132
SELECT ALL ( + AVG ( DISTINCT - ( + 35 ) ) ) * + + 58 * CASE WHEN ( 10 ) IN ( 37 / COUNT ( * ) - - 1 ) THEN 61 END AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9133
SELECT + 38 + 56 + - - 21 DIV + 17 + + 15 AS col0
----
110

skipif mysql # not compatible
query I rowsort label-9133
SELECT + 38 + 56 + - - 21 / + 17 + + 15 AS col0
----
110

query I rowsort
SELECT + 77 * 87 * 17
----
113883

onlyif mysql # aggregate syntax: 
query I rowsort label-9135
SELECT COUNT( DISTINCT + + 11 ) * + 6
----
6

skipif mysql # not compatible
query I rowsort label-9135
SELECT COUNT ( DISTINCT + + 11 ) * + 6
----
6

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9136
SELECT ALL 17 DIV - COUNT( * )
----
-17

skipif mysql # not compatible
query I rowsort label-9136
SELECT ALL 17 / - COUNT ( * )
----
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-9137
SELECT ALL 64 + COUNT( * ) col0
----
65

skipif mysql # not compatible
query I rowsort label-9137
SELECT ALL 64 + COUNT ( * ) col0
----
65

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9138
SELECT COUNT( * ) DIV + 56 - - - 88 AS col0
----
-88

skipif mysql # not compatible
query I rowsort label-9138
SELECT COUNT ( * ) / + 56 - - - 88 AS col0
----
-88

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9139
SELECT 68 * + - 5 DIV + COUNT( * )
----
-340

skipif mysql # not compatible
query I rowsort label-9139
SELECT 68 * + - 5 / + COUNT ( * )
----
-340

onlyif mysql # aggregate syntax: 
query I rowsort label-9140
SELECT ( 56 ) + MAX( ALL - 90 ) AS col1
----
-34

skipif mysql # not compatible
query I rowsort label-9140
SELECT ( 56 ) + MAX ( ALL - 90 ) AS col1
----
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-9141
SELECT DISTINCT 92 * - CASE - NULLIF ( + 37, - AVG ( 57 ) ) WHEN - 25 * 62 * - COUNT( - + 44 ) + - 36 - + 30 * - 40 THEN + - 73 + 96 WHEN - 83 * + ( + 60 ) THEN NULL WHEN - 83 THEN 12 END
----
NULL

skipif mysql # not compatible
query I rowsort label-9141
SELECT DISTINCT 92 * - CASE - NULLIF ( + 37, - AVG ( 57 ) ) WHEN - 25 * 62 * - COUNT ( - + 44 ) + - 36 - + 30 * - 40 THEN + - 73 + 96 WHEN - 83 * + ( + 60 ) THEN NULL WHEN - 83 THEN 12 END
----
NULL

query I rowsort
SELECT ALL 21 * + 13
----
273

query I rowsort
SELECT ALL + COALESCE ( + 28, 21, 99 ) + - COALESCE ( - 41, + 93, 93 )
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-9144
SELECT + 87 * - 16 * 92 - + - COUNT( * ) AS col2
----
-128063

skipif mysql # not compatible
query I rowsort label-9144
SELECT + 87 * - 16 * 92 - + - COUNT ( * ) AS col2
----
-128063

onlyif mysql # aggregate syntax: 
query II rowsort label-9145
SELECT DISTINCT COUNT( * ) + 23 AS col2, ( + 37 )
----
24
37

skipif mysql # not compatible
query II rowsort label-9145
SELECT DISTINCT COUNT ( * ) + 23 AS col2, ( + 37 )
----
24
37

onlyif mysql # aggregate syntax: 
query I rowsort label-9146
SELECT ALL - COUNT( ALL 15 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-9146
SELECT ALL - COUNT ( ALL 15 ) AS col2
----
-1

query I rowsort
SELECT ALL 91 + - - 50 col1
----
141

query I rowsort
SELECT ALL 50 + - 68
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-9149
SELECT NULLIF ( + 89, + COALESCE ( 15, - - ( + 14 ) - - + 20, + CASE - + ( 19 ) WHEN - + MIN( ( + + 9 ) ) THEN NULL ELSE - COALESCE ( 67, - + 90 ) * - COUNT( * ) * - - 65 END + 66 ) + 1 * 40 * + COUNT( * ) ) col2
----
89

skipif mysql # not compatible
query I rowsort label-9149
SELECT NULLIF ( + 89, + COALESCE ( 15, - - ( + 14 ) - - + 20, + CASE - + ( 19 ) WHEN - + MIN ( ( + + 9 ) ) THEN NULL ELSE - COALESCE ( 67, - + 90 ) * - COUNT ( * ) * - - 65 END + 66 ) + 1 * 40 * + COUNT ( * ) ) col2
----
89

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9150
SELECT + - 24 * + 21 * + 34 + CAST( NULL AS SIGNED ) + + 53 + 97 - + + COUNT( * ) * + - COALESCE ( COUNT( * ), + + 33 - + COALESCE ( + 10, 75 ) ) * + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-9150
SELECT + - 24 * + 21 * + 34 + CAST ( NULL AS INTEGER ) + + 53 + 97 - + + COUNT ( * ) * + - COALESCE ( COUNT ( * ), + + 33 - + COALESCE ( + 10, 75 ) ) * + CAST ( NULL AS REAL )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9151
SELECT COUNT( ALL - 20 ) * - 11
----
-11

skipif mysql # not compatible
query I rowsort label-9151
SELECT COUNT ( ALL - 20 ) * - 11
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-9152
SELECT ALL - + MIN( + 3 ) AS col2
----
-3

skipif mysql # not compatible
query I rowsort label-9152
SELECT ALL - + MIN ( + 3 ) AS col2
----
-3

query I rowsort
SELECT + - ( + + 35 ) col0
----
-35

query I rowsort
SELECT DISTINCT + + 52 * - 11 AS col0
----
-572

query I rowsort
SELECT 73 * + - 24
----
-1752

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9156
SELECT DISTINCT - CAST( NULL AS SIGNED ) - - ( + 5 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9156
SELECT DISTINCT - CAST ( NULL AS INTEGER ) - - ( + 5 ) AS col2
----
NULL

query I rowsort
SELECT - - COALESCE ( + 87, + 49 * - ( - 94 ) * + 85 )
----
87

query I rowsort
SELECT DISTINCT + + 60 * - 67 - - + 87 * - + 96 * 18
----
-154356

query I rowsort
SELECT ALL + 19 * + 63 * 47
----
56259

onlyif mysql # aggregate syntax: 
query I rowsort label-9160
SELECT MAX( 10 ) + + MAX( ALL + 95 ) + + 96 + + 40 + + + 13
----
254

skipif mysql # not compatible
query I rowsort label-9160
SELECT MAX ( 10 ) + + MAX ( ALL + 95 ) + + 96 + + 40 + + + 13
----
254

query I rowsort
SELECT 29 + - 11
----
18

onlyif mysql # DIV for integer division: 
query I rowsort label-9162
SELECT 88 DIV 90 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-9162
SELECT 88 / 90 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9163
SELECT 21 * + + COALESCE ( 96, COUNT( * ) ) AS col1
----
2016

skipif mysql # not compatible
query I rowsort label-9163
SELECT 21 * + + COALESCE ( 96, COUNT ( * ) ) AS col1
----
2016

query I rowsort
SELECT ALL 76 + + 99 AS col2
----
175

query I rowsort
SELECT 71 + + 18 * - 64 col1
----
-1081

query II rowsort
SELECT 49 col2, - 26
----
49
-26

query I rowsort
SELECT 81 + + 92 - 37
----
136

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9168
SELECT 52 + - COUNT( * ) + COUNT( * ) + - 3 DIV + 90 + - 47 * + 67 * 0 AS col1, + 26 - - - 95 AS col2
----
52
-69

skipif mysql # not compatible
query II rowsort label-9168
SELECT 52 + - COUNT ( * ) + COUNT ( * ) + - 3 / + 90 + - 47 * + 67 * 0 AS col1, + 26 - - - 95 AS col2
----
52
-69

onlyif mysql # aggregate syntax: 
query II rowsort label-9169
SELECT ALL - 23 col1, 33 + 4 + - - 30 + MAX( DISTINCT + 46 )
----
-23
113

skipif mysql # not compatible
query II rowsort label-9169
SELECT ALL - 23 col1, 33 + 4 + - - 30 + MAX ( DISTINCT + 46 )
----
-23
113

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9170
SELECT COALESCE ( + 72, + 99 DIV + COUNT( * ) )
----
72

skipif mysql # not compatible
query I rowsort label-9170
SELECT COALESCE ( + 72, + 99 / + COUNT ( * ) )
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-9171
SELECT 13 * - 63 * - COUNT( + 44 ) * 31 + - 25
----
25364

skipif mysql # not compatible
query I rowsort label-9171
SELECT 13 * - 63 * - COUNT ( + 44 ) * 31 + - 25
----
25364

onlyif mysql # aggregate syntax: 
query I rowsort label-9172
SELECT CASE + + 5 WHEN + 50 + 92 * + + 1 + + COUNT( * ) + + 23 THEN + COUNT( * ) WHEN 83 * - + 90 - 94 + 74 THEN NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9172
SELECT CASE + + 5 WHEN + 50 + 92 * + + 1 + + COUNT ( * ) + + 23 THEN + COUNT ( * ) WHEN 83 * - + 90 - 94 + 74 THEN NULL END AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9173
SELECT ALL - CAST( + CASE + + 48 WHEN - 57 THEN + 75 ELSE NULL END AS SIGNED ) * + - 11 + - - 5 + 8 * + COALESCE ( + 88, + 30 ) + + 32 / + - 16 * + 41
----
NULL

skipif mysql # not compatible
query I rowsort label-9173
SELECT ALL - CAST ( + CASE + + 48 WHEN - 57 THEN + 75 ELSE NULL END AS INTEGER ) * + - 11 + - - 5 + 8 * + COALESCE ( + 88, + 30 ) + + 32 / + - 16 * + 41
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9174
SELECT + CAST( NULL AS SIGNED ) * - 13
----
NULL

skipif mysql # not compatible
query I rowsort label-9174
SELECT + CAST ( NULL AS INTEGER ) * - 13
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9175
SELECT ALL MAX( - 43 ) * + + 57 + + 25 + 36 AS col1
----
-2390

skipif mysql # not compatible
query I rowsort label-9175
SELECT ALL MAX ( - 43 ) * + + 57 + + 25 + 36 AS col1
----
-2390

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9176
SELECT ALL ( + 9 ) DIV COUNT( * ) * - - 52 col0, - ( MIN( + 58 ) ) AS col0
----
468
-58

skipif mysql # not compatible
query II rowsort label-9176
SELECT ALL ( + 9 ) / COUNT ( * ) * - - 52 col0, - ( MIN ( + 58 ) ) AS col0
----
468
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-9177
SELECT ALL + 60 * 71 + - CASE 88 WHEN - COUNT( * ) * - 42 + + 7 + 22 / + + 27 * + 65 THEN + - CASE 53 WHEN - 26 THEN - 12 WHEN + COUNT( * ) THEN NULL END * 95 ELSE NULL END + + + 56 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9177
SELECT ALL + 60 * 71 + - CASE 88 WHEN - COUNT ( * ) * - 42 + + 7 + 22 / + + 27 * + 65 THEN + - CASE 53 WHEN - 26 THEN - 12 WHEN + COUNT ( * ) THEN NULL END * 95 ELSE NULL END + + + 56 AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9178
SELECT + 32 DIV + 74
----
0

skipif mysql # not compatible
query I rowsort label-9178
SELECT + 32 / + 74
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9179
SELECT + - SUM( 11 ) * - - 35 DIV + 7, 13 + 4 AS col1
----
-55
17

skipif mysql # not compatible
query II rowsort label-9179
SELECT + - SUM ( 11 ) * - - 35 / + 7, 13 + 4 AS col1
----
-55
17

query I rowsort
SELECT ALL - 74 * + + 36 AS col1
----
-2664

onlyif mysql # aggregate syntax: 
query I rowsort label-9181
SELECT + SUM( + 20 ) AS col0
----
20

skipif mysql # not compatible
query I rowsort label-9181
SELECT + SUM ( + 20 ) AS col0
----
20

query I rowsort
SELECT + + 5 + - 36
----
-31

onlyif mysql # aggregate syntax: 
query II rowsort label-9183
SELECT + 5 AS col2, - 54 - 86 + - CASE COUNT( * ) WHEN - 4 THEN - 73 * - 29 * - - 67 * - 9 * - - 14 ELSE + + 47 * 88 - + 12 END * + 53 + - 33 * 18
----
5
-219306

skipif mysql # not compatible
query II rowsort label-9183
SELECT + 5 AS col2, - 54 - 86 + - CASE COUNT ( * ) WHEN - 4 THEN - 73 * - 29 * - - 67 * - 9 * - - 14 ELSE + + 47 * 88 - + 12 END * + 53 + - 33 * 18
----
5
-219306

query I rowsort
SELECT ALL 60 * + - ( 2 ) + + + 79 AS col0
----
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-9185
SELECT DISTINCT + 67 * - MAX( 72 )
----
-4824

skipif mysql # not compatible
query I rowsort label-9185
SELECT DISTINCT + 67 * - MAX ( 72 )
----
-4824

query I rowsort
SELECT DISTINCT + 56 * 99 * - 50 * + 86 * - 9
----
214552800

query I rowsort
SELECT + 48 * ( + 1 ) * 42 - + + 66 + 85 AS col0
----
2035

query I rowsort
SELECT + - 28 + + 99 + 81 col1
----
152

query I rowsort
SELECT ALL + 23 * - 91 * + + 99 * 49 AS col1
----
-10153143

onlyif mysql # DIV for integer division: 
query II rowsort label-9190
SELECT ALL - 77, 18 + - 3 DIV 68 * - 32 AS col0
----
-77
18

skipif mysql # not compatible
query II rowsort label-9190
SELECT ALL - 77, 18 + - 3 / 68 * - 32 AS col0
----
-77
18

query II rowsort
SELECT + - 42 + - + 36 * + + 44, + 52 AS col1
----
-1626
52

query I rowsort
SELECT + - 84 * - 15
----
1260

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9193
SELECT - - 78 * + - 67 * CASE 83 WHEN AVG ( - - 76 ) / 19 * + - 79 + 96 THEN NULL ELSE + + 64 - + 31 * - + 9 END + + + CASE 63 WHEN - 16 - 72 THEN NULL WHEN + - 47 + + 62 * + CAST( + 8 AS SIGNED ) - 0 + 30 * - 42 THEN NULL ELSE - 93 + 68 END * 17 col0
----
-1792943

skipif mysql # not compatible
query I rowsort label-9193
SELECT - - 78 * + - 67 * CASE 83 WHEN AVG ( - - 76 ) / 19 * + - 79 + 96 THEN NULL ELSE + + 64 - + 31 * - + 9 END + + + CASE 63 WHEN - 16 - 72 THEN NULL WHEN + - 47 + + 62 * + CAST ( + 8 AS INTEGER ) - 0 + 30 * - 42 THEN NULL ELSE - 93 + 68 END * 17 col0
----
-1792943

onlyif mysql # aggregate syntax: 
query I rowsort label-9194
SELECT ALL - MIN( DISTINCT 80 ) col0
----
-80

skipif mysql # not compatible
query I rowsort label-9194
SELECT ALL - MIN ( DISTINCT 80 ) col0
----
-80

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9195
SELECT - SUM( ALL 58 ) + - 84 * + CAST( - + 12 AS SIGNED ) AS col2
----
950

skipif mysql # not compatible
query I rowsort label-9195
SELECT - SUM ( ALL 58 ) + - 84 * + CAST ( - + 12 AS INTEGER ) AS col2
----
950

onlyif mysql # aggregate syntax: 
query II rowsort label-9196
SELECT - 90 AS col0, COUNT( * ) AS col2
----
-90
1

skipif mysql # not compatible
query II rowsort label-9196
SELECT - 90 AS col0, COUNT ( * ) AS col2
----
-90
1

query II rowsort
SELECT ALL 35, - 12 AS col2
----
35
-12

query I rowsort
SELECT + ( + 12 ) * - 25
----
-300

query I rowsort
SELECT ALL + + 83 * + 95 AS col0
----
7885

query II rowsort
SELECT DISTINCT + 92 AS col0, - 68 + + 28 AS col1
----
92
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-9201
SELECT DISTINCT + 90 * + - COUNT( ALL 45 ) + - 74
----
-164

skipif mysql # not compatible
query I rowsort label-9201
SELECT DISTINCT + 90 * + - COUNT ( ALL 45 ) + - 74
----
-164

query I rowsort
SELECT ALL - + 7 + + + 48
----
41

query I rowsort
SELECT - 82 + - 10 + 92 AS col0
----
0

query I rowsort
SELECT ALL 88 + 37
----
125

onlyif mysql # aggregate syntax: 
query I rowsort label-9205
SELECT - CASE - + 64 WHEN COALESCE ( + - 35, 42, - 2 ) THEN - 68 + 34 END * COUNT( * ) * - - 21 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9205
SELECT - CASE - + 64 WHEN COALESCE ( + - 35, 42, - 2 ) THEN - 68 + 34 END * COUNT ( * ) * - - 21 AS col0
----
NULL

query I rowsort
SELECT DISTINCT + 35 * - 0 * - + 64
----
0

query I rowsort
SELECT ALL - 81 + 54 - - 94 + + 37 * - 87
----
-3152

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9208
SELECT + 46 * CAST( NULL AS SIGNED ) * + + 2
----
NULL

skipif mysql # not compatible
query I rowsort label-9208
SELECT + 46 * CAST ( NULL AS INTEGER ) * + + 2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9209
SELECT - 28 + + + SUM( ALL 44 )
----
16

skipif mysql # not compatible
query I rowsort label-9209
SELECT - 28 + + + SUM ( ALL 44 )
----
16

query I rowsort
SELECT ALL + 8 + - COALESCE ( + + 47, + - 21 * - ( 81 ) + - + 42 - + 54 )
----
-39

query I rowsort
SELECT ALL + 73 * - 43 col0
----
-3139

onlyif mysql # DIV for integer division: 
query I rowsort label-9212
SELECT DISTINCT - 60 DIV + 64 - - 43 + - 57 * + + 90
----
-5087

skipif mysql # not compatible
query I rowsort label-9212
SELECT DISTINCT - 60 / + 64 - - 43 + - 57 * + + 90
----
-5087

query I rowsort
SELECT DISTINCT + ( + + ( - 55 ) ) col2
----
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-9214
SELECT + 79 * 14 - COUNT( * ) + + + MIN( DISTINCT + 95 )
----
1200

skipif mysql # not compatible
query I rowsort label-9214
SELECT + 79 * 14 - COUNT ( * ) + + + MIN ( DISTINCT + 95 )
----
1200

onlyif mysql # aggregate syntax: 
query I rowsort label-9215
SELECT ALL + MAX( 48 )
----
48

skipif mysql # not compatible
query I rowsort label-9215
SELECT ALL + MAX ( 48 )
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-9216
SELECT + NULLIF ( - 85, + NULLIF ( - + 4, - + 76 * + - 73 ) - - ( 10 ) * + 82 * + - COALESCE ( - - 88, MAX( - 93 ) + - COUNT( * ) + + ( - COUNT( * ) ) ) ) AS col0
----
-85

skipif mysql # not compatible
query I rowsort label-9216
SELECT + NULLIF ( - 85, + NULLIF ( - + 4, - + 76 * + - 73 ) - - ( 10 ) * + 82 * + - COALESCE ( - - 88, MAX ( - 93 ) + - COUNT ( * ) + + ( - COUNT ( * ) ) ) ) AS col0
----
-85

onlyif mysql # aggregate syntax: 
query II rowsort label-9217
SELECT - 9 + 84 AS col1, COUNT( * )
----
75
1

skipif mysql # not compatible
query II rowsort label-9217
SELECT - 9 + 84 AS col1, COUNT ( * )
----
75
1

onlyif mysql # DIV for integer division: 
query I rowsort label-9218
SELECT + 15 DIV - 24
----
0

skipif mysql # not compatible
query I rowsort label-9218
SELECT + 15 / - 24
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-9219
SELECT ALL 21 * COUNT( * ) AS col0, + 66 col1
----
21
66

skipif mysql # not compatible
query II rowsort label-9219
SELECT ALL 21 * COUNT ( * ) AS col0, + 66 col1
----
21
66

query I rowsort
SELECT ALL - - 19 * + 24
----
456

onlyif mysql # aggregate syntax: 
query I rowsort label-9221
SELECT DISTINCT + CASE - ( NULLIF ( - 33, - COUNT( * ) * - 0 * 91 ) ) WHEN - ( - SUM( 22 ) ) THEN + COUNT( DISTINCT 65 ) + - 18 + + 15 WHEN + COALESCE ( + - 20, + + 74 ) * 44 THEN 80 * COUNT( * ) + ( ( + - 96 ) ) + - + 92 + MIN( 49 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-9221
SELECT DISTINCT + CASE - ( NULLIF ( - 33, - COUNT ( * ) * - 0 * 91 ) ) WHEN - ( - SUM ( 22 ) ) THEN + COUNT ( DISTINCT 65 ) + - 18 + + 15 WHEN + COALESCE ( + - 20, + + 74 ) * 44 THEN 80 * COUNT ( * ) + ( ( + - 96 ) ) + - + 92 + MIN ( 49 ) END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9222
SELECT ALL + MAX( - 24 ) DIV + + 54 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-9222
SELECT ALL + MAX ( - 24 ) / + + 54 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9223
SELECT + + MAX( DISTINCT 52 ) * + COALESCE ( 88, + + 46, - + 67 - - - COUNT( * ) )
----
4576

skipif mysql # not compatible
query I rowsort label-9223
SELECT + + MAX ( DISTINCT 52 ) * + COALESCE ( 88, + + 46, - + 67 - - - COUNT ( * ) )
----
4576

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9224
SELECT + 46 - - 59 + - + 46 + + + ( + 85 ) DIV + COUNT( * ) + 75 * + COUNT( * ) AS col0
----
219

skipif mysql # not compatible
query I rowsort label-9224
SELECT + 46 - - 59 + - + 46 + + + ( + 85 ) / + COUNT ( * ) + 75 * + COUNT ( * ) AS col0
----
219

onlyif mysql # DIV for integer division: 
query I rowsort label-9225
SELECT ALL 38 DIV 38 * + 42 + 76 + + ( - 33 ) AS col0
----
85

skipif mysql # not compatible
query I rowsort label-9225
SELECT ALL 38 / 38 * + 42 + 76 + + ( - 33 ) AS col0
----
85

query II rowsort
SELECT - 8 * - + 93 col1, - 1
----
744
-1

query I rowsort
SELECT + 21 * - 8 AS col1
----
-168

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9228
SELECT ALL SUM( DISTINCT 9 ) * + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9228
SELECT ALL SUM ( DISTINCT 9 ) * + CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9229
SELECT DISTINCT ( CAST( NULL AS DECIMAL ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9229
SELECT DISTINCT ( CAST ( NULL AS REAL ) ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9230
SELECT - NULLIF ( 85, - COUNT( + 39 ) ) AS col2, NULLIF ( - 39, - 66 )
----
-85
-39

skipif mysql # not compatible
query II rowsort label-9230
SELECT - NULLIF ( 85, - COUNT ( + 39 ) ) AS col2, NULLIF ( - 39, - 66 )
----
-85
-39

query I rowsort
SELECT ALL - 71 * + 5 + 80 + + 78 AS col2
----
-197

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9232
SELECT ALL - COUNT( * ) * + 60 + + 75 * - 52 + COALESCE ( - ( - 81 ), 14 DIV - CAST( NULL AS SIGNED ) * - 47 ) AS col2
----
-3879

skipif mysql # not compatible
query I rowsort label-9232
SELECT ALL - COUNT ( * ) * + 60 + + 75 * - 52 + COALESCE ( - ( - 81 ), 14 / - CAST ( NULL AS INTEGER ) * - 47 ) AS col2
----
-3879

query I rowsort
SELECT + - 6 * - + ( + 18 ) * - 65 * 66
----
-463320

onlyif mysql # aggregate syntax: 
query I rowsort label-9234
SELECT + 70 + - MIN( ALL - 33 ) col2
----
103

skipif mysql # not compatible
query I rowsort label-9234
SELECT + 70 + - MIN ( ALL - 33 ) col2
----
103

query I rowsort
SELECT ALL 41 + - 11 AS col2
----
30

query I rowsort
SELECT 71 + + 13 col2
----
84

query II rowsort
SELECT ALL 35 + - 60 + - 43 * + ( 98 ), 56 AS col0
----
-4239
56

query I rowsort
SELECT 77 * - 78 AS col2
----
-6006

query I rowsort
SELECT ( + + 29 ) - ( 33 ) AS col0
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-9240
SELECT ALL - CASE - - 4 WHEN + 44 + + 73 / + - COUNT( * ) * - 97 THEN NULL ELSE - 86 * - 66 + 63 END * + - COUNT( * )
----
5739

skipif mysql # not compatible
query I rowsort label-9240
SELECT ALL - CASE - - 4 WHEN + 44 + + 73 / + - COUNT ( * ) * - 97 THEN NULL ELSE - 86 * - 66 + 63 END * + - COUNT ( * )
----
5739

query I rowsort
SELECT 96 + + + ( 74 ) AS col1
----
170

onlyif mysql # aggregate syntax: 
query I rowsort label-9242
SELECT ALL 99 - + ( + MIN( DISTINCT + + 66 ) ) * + + 46
----
-2937

skipif mysql # not compatible
query I rowsort label-9242
SELECT ALL 99 - + ( + MIN ( DISTINCT + + 66 ) ) * + + 46
----
-2937

onlyif mysql # aggregate syntax: 
query I rowsort label-9243
SELECT 6 + - + 49 * - MIN( + 88 ) AS col0
----
4318

skipif mysql # not compatible
query I rowsort label-9243
SELECT 6 + - + 49 * - MIN ( + 88 ) AS col0
----
4318

query I rowsort
SELECT DISTINCT 34 * + 58 AS col1
----
1972

onlyif mysql # aggregate syntax: 
query I rowsort label-9245
SELECT MIN( + + 54 ) + - + 24
----
30

skipif mysql # not compatible
query I rowsort label-9245
SELECT MIN ( + + 54 ) + - + 24
----
30

query I rowsort
SELECT 22 * + 50 AS col1
----
1100

onlyif mysql # aggregate syntax: 
query I rowsort label-9247
SELECT ALL - COUNT( * ) * + 64 AS col1
----
-64

skipif mysql # not compatible
query I rowsort label-9247
SELECT ALL - COUNT ( * ) * + 64 AS col1
----
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-9248
SELECT + 12 * + COUNT( * ) + + - SUM( - + 29 )
----
41

skipif mysql # not compatible
query I rowsort label-9248
SELECT + 12 * + COUNT ( * ) + + - SUM ( - + 29 )
----
41

onlyif mysql # aggregate syntax: DIV for integer division: 
query III rowsort label-9249
SELECT 87 DIV - ( - 23 ) * COUNT( * ) + 17, ( - MAX( - 42 ) ) AS col0, + 96 DIV - 99 + 9 - - 0 - - 25 * + + 98 AS col0
----
20
42
2459

skipif mysql # not compatible
query III rowsort label-9249
SELECT 87 / - ( - 23 ) * COUNT ( * ) + 17, ( - MAX ( - 42 ) ) AS col0, + 96 / - 99 + 9 - - 0 - - 25 * + + 98 AS col0
----
20
42
2459

onlyif mysql # aggregate syntax: 
query I rowsort label-9250
SELECT 51 * NULLIF ( - NULLIF ( + 20, + - ( - COUNT( * ) ) ), COUNT( * ) ) + - 52 * + + 60
----
-4140

skipif mysql # not compatible
query I rowsort label-9250
SELECT 51 * NULLIF ( - NULLIF ( + 20, + - ( - COUNT ( * ) ) ), COUNT ( * ) ) + - 52 * + + 60
----
-4140

onlyif mysql # aggregate syntax: 
query I rowsort label-9251
SELECT ALL - 14 - - + 89 + + + COUNT( * ) * - COUNT( * )
----
74

skipif mysql # not compatible
query I rowsort label-9251
SELECT ALL - 14 - - + 89 + + + COUNT ( * ) * - COUNT ( * )
----
74

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9252
SELECT 12 / + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9252
SELECT 12 / + CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9253
SELECT 21 * 41 * - - COUNT( * )
----
861

skipif mysql # not compatible
query I rowsort label-9253
SELECT 21 * 41 * - - COUNT ( * )
----
861

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9254
SELECT ALL - CAST( - - 16 AS SIGNED )
----
-16

skipif mysql # not compatible
query I rowsort label-9254
SELECT ALL - CAST ( - - 16 AS INTEGER )
----
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-9255
SELECT + 16 + - - COUNT( * ) col2
----
17

skipif mysql # not compatible
query I rowsort label-9255
SELECT + 16 + - - COUNT ( * ) col2
----
17

onlyif mysql # aggregate syntax: 
query II rowsort label-9256
SELECT COUNT( * ) AS col2, + 0 AS col2
----
1
0

skipif mysql # not compatible
query II rowsort label-9256
SELECT COUNT ( * ) AS col2, + 0 AS col2
----
1
0

query I rowsort
SELECT - 39 * 46 - - - 81 AS col0
----
-1875

query I rowsort
SELECT ALL - - ( 73 ) AS col2
----
73

onlyif mysql # aggregate syntax: 
query I rowsort label-9259
SELECT COUNT( * ) + + + 91 - - 25 * - 39 * - 46 AS col0
----
44942

skipif mysql # not compatible
query I rowsort label-9259
SELECT COUNT ( * ) + + + 91 - - 25 * - 39 * - 46 AS col0
----
44942

onlyif mysql # aggregate syntax: 
query I rowsort label-9260
SELECT - 5 + + - 46 + COUNT( * ) AS col0
----
-50

skipif mysql # not compatible
query I rowsort label-9260
SELECT - 5 + + - 46 + COUNT ( * ) AS col0
----
-50

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9261
SELECT ALL - - COALESCE ( COALESCE ( - 79, + 42 * 26 + + - 75 * + 45 DIV - 69 - 96 + - 13 + + COUNT( * ) * + 61 * - 83 ), 37 )
----
-79

skipif mysql # not compatible
query I rowsort label-9261
SELECT ALL - - COALESCE ( COALESCE ( - 79, + 42 * 26 + + - 75 * + 45 / - 69 - 96 + - 13 + + COUNT ( * ) * + 61 * - 83 ), 37 )
----
-79

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9262
SELECT DISTINCT - - CAST( + 6 AS SIGNED ) col2
----
6

skipif mysql # not compatible
query I rowsort label-9262
SELECT DISTINCT - - CAST ( + 6 AS INTEGER ) col2
----
6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9263
SELECT DISTINCT - CAST( NULL AS SIGNED ) + + 89
----
NULL

skipif mysql # not compatible
query I rowsort label-9263
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + + 89
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9264
SELECT - COUNT( * ) * + + 20 + + 51 * 57 + + NULLIF ( + - 17, - 50 ) + - - 52 + - 62 AS col2
----
2860

skipif mysql # not compatible
query I rowsort label-9264
SELECT - COUNT ( * ) * + + 20 + + 51 * 57 + + NULLIF ( + - 17, - 50 ) + - - 52 + - 62 AS col2
----
2860

onlyif mysql # aggregate syntax: 
query II rowsort label-9265
SELECT DISTINCT - - 99 + - + COUNT( * ) + - - 45 AS col2, 36
----
143
36

skipif mysql # not compatible
query II rowsort label-9265
SELECT DISTINCT - - 99 + - + COUNT ( * ) + - - 45 AS col2, 36
----
143
36

onlyif mysql # aggregate syntax: 
query I rowsort label-9266
SELECT - 55 + + COUNT( * )
----
-54

skipif mysql # not compatible
query I rowsort label-9266
SELECT - 55 + + COUNT ( * )
----
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-9267
SELECT - + CASE - - ( + 2 ) WHEN + COUNT( * ) / + 4 THEN + MAX( + - 7 ) WHEN - + COUNT( * ) THEN NULL ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9267
SELECT - + CASE - - ( + 2 ) WHEN + COUNT ( * ) / + 4 THEN + MAX ( + - 7 ) WHEN - + COUNT ( * ) THEN NULL ELSE NULL END AS col0
----
NULL

query I rowsort
SELECT 96 + + 74 AS col2
----
170

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9269
SELECT ALL - - 24 + - CAST( 69 AS SIGNED ) AS col1
----
-45

skipif mysql # not compatible
query I rowsort label-9269
SELECT ALL - - 24 + - CAST ( 69 AS INTEGER ) AS col1
----
-45

query I rowsort
SELECT - 21 * 94
----
-1974

query I rowsort
SELECT 97 + - 41 - - 74
----
130

query I rowsort
SELECT DISTINCT 59 + - ( + 27 ) AS col0
----
32

onlyif mysql # aggregate syntax: 
query II rowsort label-9273
SELECT 46 AS col0, - MAX( ALL - 95 )
----
46
95

skipif mysql # not compatible
query II rowsort label-9273
SELECT 46 AS col0, - MAX ( ALL - 95 )
----
46
95

onlyif mysql # aggregate syntax: 
query I rowsort label-9274
SELECT - 59 * - 68 + - COALESCE ( - MIN( DISTINCT - 24 ), + 46 )
----
3988

skipif mysql # not compatible
query I rowsort label-9274
SELECT - 59 * - 68 + - COALESCE ( - MIN ( DISTINCT - 24 ), + 46 )
----
3988

query I rowsort
SELECT ALL 35 + + COALESCE ( - 82, - 52, + + 56 ) + 39 + 45
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-9276
SELECT DISTINCT MAX( + 58 ) * 50 + + 25 AS col0
----
2925

skipif mysql # not compatible
query I rowsort label-9276
SELECT DISTINCT MAX ( + 58 ) * 50 + + 25 AS col0
----
2925

query II rowsort
SELECT - 66 col1, + 89 col0
----
-66
89

onlyif mysql # aggregate syntax: 
query I rowsort label-9278
SELECT ALL 99 - + MIN( DISTINCT + + 42 )
----
57

skipif mysql # not compatible
query I rowsort label-9278
SELECT ALL 99 - + MIN ( DISTINCT + + 42 )
----
57

query I rowsort
SELECT ALL 58 * + + 89
----
5162

query I rowsort
SELECT ALL 81 - - - 83 col0
----
-2

query I rowsort
SELECT DISTINCT 93 * + 37 AS col0
----
3441

query II rowsort
SELECT - 80 AS col1, + 46 col0
----
-80
46

query II rowsort
SELECT ALL 34 AS col0, + 87 + + 74
----
34
161

query I rowsort
SELECT 2 * - 70 * 41
----
-5740

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9285
SELECT 41 + + ( - - CAST( + 45 AS SIGNED ) )
----
86

skipif mysql # not compatible
query I rowsort label-9285
SELECT 41 + + ( - - CAST ( + 45 AS INTEGER ) )
----
86

onlyif mysql # aggregate syntax: 
query II rowsort label-9286
SELECT ALL 91 AS col2, MAX( ALL + 37 ) + 26 + - 34 col1
----
91
29

skipif mysql # not compatible
query II rowsort label-9286
SELECT ALL 91 AS col2, MAX ( ALL + 37 ) + 26 + - 34 col1
----
91
29

query II rowsort
SELECT 75 AS col1, + 9 + + 29 AS col2
----
75
38

query I rowsort
SELECT ALL - 10 * 55
----
-550

onlyif mysql # aggregate syntax: 
query II rowsort label-9289
SELECT DISTINCT + COUNT( * ) * + 91, - 31 AS col1
----
91
-31

skipif mysql # not compatible
query II rowsort label-9289
SELECT DISTINCT + COUNT ( * ) * + 91, - 31 AS col1
----
91
-31

query I rowsort
SELECT - 14 * + 13 AS col2
----
-182

query I rowsort
SELECT NULLIF ( 27, 12 ) AS col1
----
27

onlyif mysql # DIV for integer division: 
query I rowsort label-9292
SELECT 70 DIV 96 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9292
SELECT 70 / 96 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9293
SELECT ALL + 35 * + + ( + + MIN( DISTINCT ( - 42 ) ) ) col1
----
-1470

skipif mysql # not compatible
query I rowsort label-9293
SELECT ALL + 35 * + + ( + + MIN ( DISTINCT ( - 42 ) ) ) col1
----
-1470

onlyif mysql # aggregate syntax: 
query I rowsort label-9294
SELECT ALL - 35 * COUNT( * ) + 92 + 84 AS col1
----
141

skipif mysql # not compatible
query I rowsort label-9294
SELECT ALL - 35 * COUNT ( * ) + 92 + 84 AS col1
----
141

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9295
SELECT ( COUNT( * ) ) DIV - 88
----
0

skipif mysql # not compatible
query I rowsort label-9295
SELECT ( COUNT ( * ) ) / - 88
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9296
SELECT + + COALESCE ( + 61, 57, + 74 * + COALESCE ( + 80, + 29 / - + COALESCE ( 83, 55 + 98, - MIN( + 82 ) + + 62 * 0 ) * 32 ) * - 79 ) * + - 86 + + CASE 88 WHEN + - 58 THEN NULL WHEN - NULLIF ( - - 27, - 85 * - - 78 + - 17 * 47 ) THEN 96 * - 93 + CAST( NULL AS SIGNED ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9296
SELECT + + COALESCE ( + 61, 57, + 74 * + COALESCE ( + 80, + 29 / - + COALESCE ( 83, 55 + 98, - MIN ( + 82 ) + + 62 * 0 ) * 32 ) * - 79 ) * + - 86 + + CASE 88 WHEN + - 58 THEN NULL WHEN - NULLIF ( - - 27, - 85 * - - 78 + - 17 * 47 ) THEN 96 * - 93 + CAST ( NULL AS INTEGER ) END AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9297
SELECT DISTINCT + 52 DIV + COUNT( * ) AS col1
----
52

skipif mysql # not compatible
query I rowsort label-9297
SELECT DISTINCT + 52 / + COUNT ( * ) AS col1
----
52

query I rowsort
SELECT ALL + NULLIF ( - - 63, 48 ) + + 82
----
145

query I rowsort
SELECT ALL - 61 + + 32 col2
----
-29

onlyif mysql # aggregate syntax: 
query II rowsort label-9300
SELECT + + 65 col0, - CASE + COUNT( * ) WHEN 47 THEN NULL ELSE + 80 END * + 51
----
65
-4080

skipif mysql # not compatible
query II rowsort label-9300
SELECT + + 65 col0, - CASE + COUNT ( * ) WHEN 47 THEN NULL ELSE + 80 END * + 51
----
65
-4080

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9301
SELECT + COUNT( CAST( 88 AS SIGNED ) )
----
1

skipif mysql # not compatible
query I rowsort label-9301
SELECT + COUNT ( CAST ( 88 AS INTEGER ) )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9302
SELECT - + COUNT( + + 77 ) * + 89 AS col1
----
-89

skipif mysql # not compatible
query I rowsort label-9302
SELECT - + COUNT ( + + 77 ) * + 89 AS col1
----
-89

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9303
SELECT DISTINCT - SUM( ALL ( - CAST( NULL AS SIGNED ) ) ) + ( + + ( NULLIF ( - - 7, + 1 ) ) ) - - - 70
----
NULL

skipif mysql # not compatible
query I rowsort label-9303
SELECT DISTINCT - SUM ( ALL ( - CAST ( NULL AS INTEGER ) ) ) + ( + + ( NULLIF ( - - 7, + 1 ) ) ) - - - 70
----
NULL

query II rowsort
SELECT ALL + 1 AS col1, - 34 + 69 + + - 52 AS col1
----
1
-17

query II rowsort
SELECT 87, + 14 AS col0
----
87
14

query I rowsort
SELECT DISTINCT NULLIF ( + 34, + + 8 ) col1
----
34

query II rowsort
SELECT DISTINCT + 77 * - 99, - 54 * + ( + - 44 ) AS col0
----
-7623
2376

onlyif mysql # aggregate syntax: 
query I rowsort label-9308
SELECT ALL MAX( DISTINCT 21 ) AS col1
----
21

skipif mysql # not compatible
query I rowsort label-9308
SELECT ALL MAX ( DISTINCT 21 ) AS col1
----
21

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9309
SELECT - 57 + - CAST( 29 AS SIGNED )
----
-86

skipif mysql # not compatible
query I rowsort label-9309
SELECT - 57 + - CAST ( 29 AS INTEGER )
----
-86

query II rowsort
SELECT + 22 * - 53, 74 AS col2
----
-1166
74

query II rowsort
SELECT + 4 + - + 28, - 41 AS col0
----
-24
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-9312
SELECT ALL MAX( 32 ) * ( + 46 ) * 61 + 1 + COUNT( * )
----
89794

skipif mysql # not compatible
query I rowsort label-9312
SELECT ALL MAX ( 32 ) * ( + 46 ) * 61 + 1 + COUNT ( * )
----
89794

onlyif mysql # aggregate syntax: 
query I rowsort label-9313
SELECT + 80 + 2 + + COALESCE ( 52, + SUM( DISTINCT + + 52 ) * 9 * + + COUNT( * ) ) * + 64 + - 77
----
3333

skipif mysql # not compatible
query I rowsort label-9313
SELECT + 80 + 2 + + COALESCE ( 52, + SUM ( DISTINCT + + 52 ) * 9 * + + COUNT ( * ) ) * + 64 + - 77
----
3333

onlyif mysql # aggregate syntax: 
query I rowsort label-9314
SELECT - NULLIF ( CASE + + 20 WHEN - ( + COUNT( * ) ) THEN - COUNT( * ) * COUNT( * ) * - + 34 + 55 WHEN + + 98 THEN - 59 + + 65 ELSE 10 END, - - 65 ) AS col2
----
-10

skipif mysql # not compatible
query I rowsort label-9314
SELECT - NULLIF ( CASE + + 20 WHEN - ( + COUNT ( * ) ) THEN - COUNT ( * ) * COUNT ( * ) * - + 34 + 55 WHEN + + 98 THEN - 59 + + 65 ELSE 10 END, - - 65 ) AS col2
----
-10

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9315
SELECT ALL AVG ( - CAST( NULL AS SIGNED ) ) + + 78 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9315
SELECT ALL AVG ( - CAST ( NULL AS INTEGER ) ) + + 78 AS col2
----
NULL

query I rowsort
SELECT - + 0 + - + 19 col2
----
-19

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9317
SELECT ( - 42 ) * + 12 + + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9317
SELECT ( - 42 ) * + 12 + + - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT + - 20 + ( 15 ) col0
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-9319
SELECT DISTINCT - SUM( DISTINCT - 63 ) * - 81 + + 68 * + + 7 col1
----
-4627

skipif mysql # not compatible
query I rowsort label-9319
SELECT DISTINCT - SUM ( DISTINCT - 63 ) * - 81 + + 68 * + + 7 col1
----
-4627

onlyif mysql # aggregate syntax: 
query II rowsort label-9320
SELECT + + 51 * - 41, COALESCE ( + + 45, - 80 ) * + COUNT( * ) AS col0
----
-2091
45

skipif mysql # not compatible
query II rowsort label-9320
SELECT + + 51 * - 41, COALESCE ( + + 45, - 80 ) * + COUNT ( * ) AS col0
----
-2091
45

onlyif mysql # aggregate syntax: 
query I rowsort label-9321
SELECT ALL - 30 * - 66 + NULLIF ( + 97, - COALESCE ( - 85, COALESCE ( - - 34, 94 * 20 + COUNT( DISTINCT 17 ) ) * + 95 + - ( + + 15 ) ) ) - - COUNT( * ) * - 77 * + 74 + SUM( + COALESCE ( + - 96, - + 97, 13 ) ) + + - 14 + + 18 * + + MAX( - - 81 ) AS col2
----
-2273

skipif mysql # not compatible
query I rowsort label-9321
SELECT ALL - 30 * - 66 + NULLIF ( + 97, - COALESCE ( - 85, COALESCE ( - - 34, 94 * 20 + COUNT ( DISTINCT 17 ) ) * + 95 + - ( + + 15 ) ) ) - - COUNT ( * ) * - 77 * + 74 + SUM ( + COALESCE ( + - 96, - + 97, 13 ) ) + + - 14 + + 18 * + + MAX ( - - 81 ) AS col2
----
-2273

query I rowsort
SELECT + 1 + - 48
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-9323
SELECT + MIN( + 21 )
----
21

skipif mysql # not compatible
query I rowsort label-9323
SELECT + MIN ( + 21 )
----
21

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9324
SELECT + COALESCE ( 9, - 51 + + - COUNT( ALL + - COALESCE ( + - 7, - 18 ) ) ) + 67 * + 75 + 3 AS col0, CAST( + - COUNT( + - 36 ) AS SIGNED ) + NULLIF ( - - 97, 4 )
----
5037
96

skipif mysql # not compatible
query II rowsort label-9324
SELECT + COALESCE ( 9, - 51 + + - COUNT ( ALL + - COALESCE ( + - 7, - 18 ) ) ) + 67 * + 75 + 3 AS col0, CAST ( + - COUNT ( + - 36 ) AS INTEGER ) + NULLIF ( - - 97, 4 )
----
5037
96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9325
SELECT ALL + 74 * COUNT( * ) * COALESCE ( - + ( + 91 ), COUNT( DISTINCT + CAST( NULL AS SIGNED ) ) * + COUNT( ALL + ( + 49 ) ) ) AS col2
----
-6734

skipif mysql # not compatible
query I rowsort label-9325
SELECT ALL + 74 * COUNT ( * ) * COALESCE ( - + ( + 91 ), COUNT ( DISTINCT + CAST ( NULL AS INTEGER ) ) * + COUNT ( ALL + ( + 49 ) ) ) AS col2
----
-6734

onlyif mysql # aggregate syntax: 
query I rowsort label-9326
SELECT ALL ( + 11 ) * + 51 + - NULLIF ( - - CASE + AVG ( + 30 ) WHEN + - COUNT( * ) THEN - 19 + + 5 ELSE + NULLIF ( 47, 16 * + 27 * + - 46 ) * + - 38 - - COUNT( * ) * - 57 - + 69 END, 72 * + ( - 1 ) ) + - 13 * + 20 AS col0
----
2213

skipif mysql # not compatible
query I rowsort label-9326
SELECT ALL ( + 11 ) * + 51 + - NULLIF ( - - CASE + AVG ( + 30 ) WHEN + - COUNT ( * ) THEN - 19 + + 5 ELSE + NULLIF ( 47, 16 * + 27 * + - 46 ) * + - 38 - - COUNT ( * ) * - 57 - + 69 END, 72 * + ( - 1 ) ) + - 13 * + 20 AS col0
----
2213

onlyif mysql # aggregate syntax: 
query I rowsort label-9327
SELECT + + NULLIF ( + - 55, + COUNT( * ) / + - COUNT( * ) - - - COUNT( * ) + - + 30 ) AS col0
----
-55

skipif mysql # not compatible
query I rowsort label-9327
SELECT + + NULLIF ( + - 55, + COUNT ( * ) / + - COUNT ( * ) - - - COUNT ( * ) + - + 30 ) AS col0
----
-55

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9328
SELECT ALL + ( - CASE + 99 WHEN + 70 THEN - - 9 WHEN CAST( NULL AS SIGNED ) THEN NULL END )
----
NULL

skipif mysql # not compatible
query I rowsort label-9328
SELECT ALL + ( - CASE + 99 WHEN + 70 THEN - - 9 WHEN CAST ( NULL AS INTEGER ) THEN NULL END )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9329
SELECT + - COUNT( * ) * - 9 AS col0, 72
----
9
72

skipif mysql # not compatible
query II rowsort label-9329
SELECT + - COUNT ( * ) * - 9 AS col0, 72
----
9
72

onlyif mysql # aggregate syntax: 
query I rowsort label-9330
SELECT - - COUNT( * ) * - + 51
----
-51

skipif mysql # not compatible
query I rowsort label-9330
SELECT - - COUNT ( * ) * - + 51
----
-51

query I rowsort
SELECT + - ( - 96 ) + - 44
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-9332
SELECT DISTINCT - COUNT( * ) * - NULLIF ( - COUNT( * ), + 26 ) - 17 AS col1
----
-18

skipif mysql # not compatible
query I rowsort label-9332
SELECT DISTINCT - COUNT ( * ) * - NULLIF ( - COUNT ( * ), + 26 ) - 17 AS col1
----
-18

query I rowsort
SELECT ALL + + ( - 85 ) AS col2
----
-85

query I rowsort
SELECT + 17 * + 69 AS col2
----
1173

onlyif mysql # DIV for integer division: 
query I rowsort label-9335
SELECT ALL - - 56 DIV + 56
----
1

skipif mysql # not compatible
query I rowsort label-9335
SELECT ALL - - 56 / + 56
----
1

query I rowsort
SELECT 81 * 17 + 87
----
1464

onlyif mysql # aggregate syntax: 
query I rowsort label-9337
SELECT + 51 * COUNT( * ) * - - COUNT( * ) + + 14
----
65

skipif mysql # not compatible
query I rowsort label-9337
SELECT + 51 * COUNT ( * ) * - - COUNT ( * ) + + 14
----
65

query I rowsort
SELECT NULLIF ( - 6, + 54 )
----
-6

query I rowsort
SELECT - 46 * + - 15 col2
----
690

onlyif mysql # aggregate syntax: 
query I rowsort label-9340
SELECT ALL CASE 7 WHEN + + COUNT( * ) + - 82 + + - 10 + - COUNT( * ) THEN SUM( + 74 ) ELSE + COALESCE ( 54, - 76 + + - 10 + - - SUM( DISTINCT 26 ) ) * 1 END AS col2
----
54

skipif mysql # not compatible
query I rowsort label-9340
SELECT ALL CASE 7 WHEN + + COUNT ( * ) + - 82 + + - 10 + - COUNT ( * ) THEN SUM ( + 74 ) ELSE + COALESCE ( 54, - 76 + + - 10 + - - SUM ( DISTINCT 26 ) ) * 1 END AS col2
----
54

query I rowsort
SELECT - 64 + + 86
----
22

query I rowsort
SELECT - 40 + 91
----
51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9343
SELECT - 98 * + - CAST( NULL AS SIGNED ) * + 48
----
NULL

skipif mysql # not compatible
query I rowsort label-9343
SELECT - 98 * + - CAST ( NULL AS INTEGER ) * + 48
----
NULL

query I rowsort
SELECT ALL + 28 * - 16 AS col1
----
-448

query I rowsort
SELECT - 10 * - + 46 AS col2
----
460

onlyif mysql # aggregate syntax: 
query I rowsort label-9346
SELECT DISTINCT + COUNT( * ) * - 96 AS col1
----
-96

skipif mysql # not compatible
query I rowsort label-9346
SELECT DISTINCT + COUNT ( * ) * - 96 AS col1
----
-96

query I rowsort
SELECT ALL COALESCE ( 52, 13 + - - 71 ) AS col0
----
52

query II rowsort
SELECT - 80 * + 98 * - - 33, 70 AS col0
----
-258720
70

query I rowsort
SELECT ALL 50 + - 49 AS col0
----
1

query I rowsort
SELECT ALL - CASE + + 50 WHEN 6 THEN NULL WHEN + + 6 THEN - - 17 END + 58 + CASE + ( + + 33 ) WHEN + 41 THEN 2 ELSE NULL END AS col2
----
NULL

query I rowsort
SELECT - 68 - + - 62 AS col2
----
-6

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9352
SELECT - NULLIF ( 57, - + COUNT( * ) ) DIV + SUM( DISTINCT - - 20 ) + - + SUM( ( 12 ) )
----
-14

skipif mysql # not compatible
query I rowsort label-9352
SELECT - NULLIF ( 57, - + COUNT ( * ) ) / + SUM ( DISTINCT - - 20 ) + - + SUM ( ( 12 ) )
----
-14

query I rowsort
SELECT - 44 * + ( + + 22 )
----
-968

query II rowsort
SELECT ALL 81, 82 + - 35 AS col1
----
81
47

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9355
SELECT - - 80 / 45 + - CAST( NULL AS SIGNED ) AS col2, 93 AS col1
----
NULL
93

skipif mysql # not compatible
query II rowsort label-9355
SELECT - - 80 / 45 + - CAST ( NULL AS INTEGER ) AS col2, 93 AS col1
----
NULL
93

query I rowsort
SELECT ALL - 74 + + + 27
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-9357
SELECT DISTINCT - MAX( - + 40 ) AS col2
----
40

skipif mysql # not compatible
query I rowsort label-9357
SELECT DISTINCT - MAX ( - + 40 ) AS col2
----
40

query I rowsort
SELECT ALL + NULLIF ( 34, + 5 * ( - 0 ) * + 93 ) AS col0
----
34

query I rowsort
SELECT + + 39 * - 9 * 23 + 79
----
-7994

onlyif mysql # aggregate syntax: 
query I rowsort label-9360
SELECT - COUNT( * ) * + 1 + + 71 AS col1
----
70

skipif mysql # not compatible
query I rowsort label-9360
SELECT - COUNT ( * ) * + 1 + + 71 AS col1
----
70

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9361
SELECT - ( - MIN( - - 16 ) ) AS col0, - COUNT( * ) DIV + 67 * - + 55 AS col0
----
16
0

skipif mysql # not compatible
query II rowsort label-9361
SELECT - ( - MIN ( - - 16 ) ) AS col0, - COUNT ( * ) / + 67 * - + 55 AS col0
----
16
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9362
SELECT DISTINCT - CASE - ( - CASE 47 WHEN MIN( DISTINCT - 22 ) THEN - 29 - + ( - - COUNT( * ) ) ELSE NULL END ) WHEN + 72 THEN - + 38 - COUNT( * ) WHEN + + 38 * + 54 THEN + 21 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9362
SELECT DISTINCT - CASE - ( - CASE 47 WHEN MIN ( DISTINCT - 22 ) THEN - 29 - + ( - - COUNT ( * ) ) ELSE NULL END ) WHEN + 72 THEN - + 38 - COUNT ( * ) WHEN + + 38 * + 54 THEN + 21 END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9363
SELECT DISTINCT - MAX( ALL + 45 )
----
-45

skipif mysql # not compatible
query I rowsort label-9363
SELECT DISTINCT - MAX ( ALL + 45 )
----
-45

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9364
SELECT DISTINCT - + CASE - + 56 WHEN 45 * + - 71 / - 28 THEN NULL WHEN 9 / + + COUNT( * ) * - 56 * + CAST( 80 AS SIGNED ) + - ( + 5 ) + + 10 * + COUNT( 12 ) + - - 13 THEN 85 * - ( 90 ) - - 40 END
----
NULL

skipif mysql # not compatible
query I rowsort label-9364
SELECT DISTINCT - + CASE - + 56 WHEN 45 * + - 71 / - 28 THEN NULL WHEN 9 / + + COUNT ( * ) * - 56 * + CAST ( 80 AS INTEGER ) + - ( + 5 ) + + 10 * + COUNT ( 12 ) + - - 13 THEN 85 * - ( 90 ) - - 40 END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9365
SELECT ALL 45 DIV 23 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-9365
SELECT ALL 45 / 23 AS col0
----
1

query I rowsort
SELECT - 47 * 30 - + 21
----
-1431

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9367
SELECT ALL 35 * + CAST( NULLIF ( 46, + 76 ) AS SIGNED ) AS col2, + 90 AS col2
----
1610
90

skipif mysql # not compatible
query II rowsort label-9367
SELECT ALL 35 * + CAST ( NULLIF ( 46, + 76 ) AS INTEGER ) AS col2, + 90 AS col2
----
1610
90

query I rowsort
SELECT + 84 * 40 * + + 33 + - 46 + - 3
----
110831

onlyif mysql # aggregate syntax: 
query I rowsort label-9369
SELECT ALL COUNT( * ) * - - NULLIF ( - 70, + 88 + 77 ) AS col2
----
-70

skipif mysql # not compatible
query I rowsort label-9369
SELECT ALL COUNT ( * ) * - - NULLIF ( - 70, + 88 + 77 ) AS col2
----
-70

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9370
SELECT 6 DIV COALESCE ( COUNT( * ), - - 29 ) col2
----
6

skipif mysql # not compatible
query I rowsort label-9370
SELECT 6 / COALESCE ( COUNT ( * ), - - 29 ) col2
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-9371
SELECT DISTINCT SUM( - 72 ) * + - 28
----
2016

skipif mysql # not compatible
query I rowsort label-9371
SELECT DISTINCT SUM ( - 72 ) * + - 28
----
2016

query I rowsort
SELECT DISTINCT 34 * 57 * - 30 AS col1
----
-58140

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9373
SELECT ALL + CAST( NULL AS SIGNED ) + - 22
----
NULL

skipif mysql # not compatible
query I rowsort label-9373
SELECT ALL + CAST ( NULL AS INTEGER ) + - 22
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9374
SELECT ( - - 42 ) - + 8 - - NULLIF ( 86, 55 * + + 48 ) DIV - 69
----
33

skipif mysql # not compatible
query I rowsort label-9374
SELECT ( - - 42 ) - + 8 - - NULLIF ( 86, 55 * + + 48 ) / - 69
----
33

onlyif mysql # DIV for integer division: 
query I rowsort label-9375
SELECT DISTINCT NULLIF ( + 79, - 56 ) + + + 5 - + 10 DIV + - 85 AS col0
----
84

skipif mysql # not compatible
query I rowsort label-9375
SELECT DISTINCT NULLIF ( + 79, - 56 ) + + + 5 - + 10 / + - 85 AS col0
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-9376
SELECT ALL + 97 + + - SUM( - 99 ) * - - 40 * 88
----
348577

skipif mysql # not compatible
query I rowsort label-9376
SELECT ALL + 97 + + - SUM ( - 99 ) * - - 40 * 88
----
348577

query I rowsort
SELECT ALL ( 65 ) + - 71
----
-6

onlyif mysql # aggregate syntax: 
query II rowsort label-9378
SELECT COUNT( * ) + 7 + + ( + 30 ) AS col2, + 99
----
38
99

skipif mysql # not compatible
query II rowsort label-9378
SELECT COUNT ( * ) + 7 + + ( + 30 ) AS col2, + 99
----
38
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9379
SELECT 56 - - ( 62 ) + - + 47 * + + 17 * - 89 * - CAST( NULL AS SIGNED ) + - + 25 * CAST( + 90 AS SIGNED ) - - - COALESCE ( 63, - ( + ( + ( 4 ) ) ) ) + - 42 * - - 9
----
NULL

skipif mysql # not compatible
query I rowsort label-9379
SELECT 56 - - ( 62 ) + - + 47 * + + 17 * - 89 * - CAST ( NULL AS INTEGER ) + - + 25 * CAST ( + 90 AS INTEGER ) - - - COALESCE ( 63, - ( + ( + ( 4 ) ) ) ) + - 42 * - - 9
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9380
SELECT MAX( + 72 ) * + 37
----
2664

skipif mysql # not compatible
query I rowsort label-9380
SELECT MAX ( + 72 ) * + 37
----
2664

onlyif mysql # aggregate syntax: 
query I rowsort label-9381
SELECT - NULLIF ( - MAX( - 87 ), + 48 ) + 34 AS col2
----
-53

skipif mysql # not compatible
query I rowsort label-9381
SELECT - NULLIF ( - MAX ( - 87 ), + 48 ) + 34 AS col2
----
-53

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9382
SELECT ALL + + CAST( - + 89 AS SIGNED ) + COALESCE ( - - 15, + - CASE 30 WHEN 37 THEN NULL WHEN - 35 * - 55 + - + 81 THEN NULL WHEN - + 90 + + 52 THEN - + ( + 25 ) WHEN + 84 + + 43 THEN + ( + + 26 ) END )
----
-74

skipif mysql # not compatible
query I rowsort label-9382
SELECT ALL + + CAST ( - + 89 AS INTEGER ) + COALESCE ( - - 15, + - CASE 30 WHEN 37 THEN NULL WHEN - 35 * - 55 + - + 81 THEN NULL WHEN - + 90 + + 52 THEN - + ( + 25 ) WHEN + 84 + + 43 THEN + ( + + 26 ) END )
----
-74

onlyif mysql # aggregate syntax: 
query II rowsort label-9383
SELECT COUNT( * ) + - 92, - 81 AS col1
----
-91
-81

skipif mysql # not compatible
query II rowsort label-9383
SELECT COUNT ( * ) + - 92, - 81 AS col1
----
-91
-81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9384
SELECT + 97 + + CAST( NULL AS SIGNED ) / - 18
----
NULL

skipif mysql # not compatible
query I rowsort label-9384
SELECT + 97 + + CAST ( NULL AS INTEGER ) / - 18
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9385
SELECT ALL - + MIN( DISTINCT + - 7 ) - 12
----
-5

skipif mysql # not compatible
query I rowsort label-9385
SELECT ALL - + MIN ( DISTINCT + - 7 ) - 12
----
-5

query I rowsort
SELECT 27 * + 11 + 30 AS col1
----
327

onlyif mysql # aggregate syntax: 
query I rowsort label-9387
SELECT - ( 70 ) * - 15 * + + MAX( DISTINCT ( + 18 ) ) AS col2
----
18900

skipif mysql # not compatible
query I rowsort label-9387
SELECT - ( 70 ) * - 15 * + + MAX ( DISTINCT ( + 18 ) ) AS col2
----
18900

query I rowsort
SELECT 86 + 74
----
160

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9389
SELECT ALL - + 15 DIV 64 * - MAX( ALL 77 ) * - 40 - 97 + + ( + 89 ) AS col2
----
-8

skipif mysql # not compatible
query I rowsort label-9389
SELECT ALL - + 15 / 64 * - MAX ( ALL 77 ) * - 40 - 97 + + ( + 89 ) AS col2
----
-8

query I rowsort
SELECT - NULLIF ( + - 2, 36 + - - 54 + + 61 * + 56 ) + + 73 AS col0
----
75

query I rowsort
SELECT ALL + 22 - 72
----
-50

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9392
SELECT ALL + COUNT( * ) * + CAST( 69 AS SIGNED )
----
69

skipif mysql # not compatible
query I rowsort label-9392
SELECT ALL + COUNT ( * ) * + CAST ( 69 AS INTEGER )
----
69

onlyif mysql # DIV for integer division: 
query I rowsort label-9393
SELECT + 99 DIV NULLIF ( - 72, - 10 )
----
-1

skipif mysql # not compatible
query I rowsort label-9393
SELECT + 99 / NULLIF ( - 72, - 10 )
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9394
SELECT - COUNT( * ) * COALESCE ( + ( - 43 ), 86 ) DIV + 88
----
0

skipif mysql # not compatible
query I rowsort label-9394
SELECT - COUNT ( * ) * COALESCE ( + ( - 43 ), 86 ) / + 88
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9395
SELECT DISTINCT - - 73 * + MAX( ALL - + 73 )
----
-5329

skipif mysql # not compatible
query I rowsort label-9395
SELECT DISTINCT - - 73 * + MAX ( ALL - + 73 )
----
-5329

query I rowsort
SELECT DISTINCT - COALESCE ( + 17, - 49 ) * + 67 AS col2
----
-1139

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-9397
SELECT + COUNT( * ) * + + 69 DIV + 27 + CAST( - 23 AS SIGNED ) col0, 99 AS col1
----
-21
99

skipif mysql # not compatible
query II rowsort label-9397
SELECT + COUNT ( * ) * + + 69 / + 27 + CAST ( - 23 AS INTEGER ) col0, 99 AS col1
----
-21
99

query I rowsort
SELECT COALESCE ( + 98, + 58 - 11 * - 31 + - + 43 - 89 ) + - 76
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-9399
SELECT DISTINCT 64 + - COALESCE ( + - COUNT( * ), + - 38 ) AS col0
----
65

skipif mysql # not compatible
query I rowsort label-9399
SELECT DISTINCT 64 + - COALESCE ( + - COUNT ( * ), + - 38 ) AS col0
----
65

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9400
SELECT 55 * - 2 + + ( + 92 ) + + COUNT( - + 80 ) * - - 88 * - - COALESCE ( NULLIF ( + MIN( ALL + 62 ), - 54 / - + 72 - - 86 * + + 52 + + + 13 / - CAST( - 33 AS SIGNED ) - - + COUNT( * ) - - 7 ), - 32, - COUNT( * ) ) * + 44, ( - + 70 ) col0
----
240046
-70

skipif mysql # not compatible
query II rowsort label-9400
SELECT 55 * - 2 + + ( + 92 ) + + COUNT ( - + 80 ) * - - 88 * - - COALESCE ( NULLIF ( + MIN ( ALL + 62 ), - 54 / - + 72 - - 86 * + + 52 + + + 13 / - CAST ( - 33 AS INTEGER ) - - + COUNT ( * ) - - 7 ), - 32, - COUNT ( * ) ) * + 44, ( - + 70 ) col0
----
240046
-70

query I rowsort
SELECT DISTINCT 16 * - + 62 AS col0
----
-992

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9402
SELECT ALL CAST( - 36 AS SIGNED ) + + - 66 * - + COUNT( * ) DIV - 89 + - + 12 + 44 AS col0
----
-4

skipif mysql # not compatible
query I rowsort label-9402
SELECT ALL CAST ( - 36 AS INTEGER ) + + - 66 * - + COUNT ( * ) / - 89 + - + 12 + 44 AS col0
----
-4

query I rowsort
SELECT ALL 51 * + + 7 * - 3 * + 57
----
-61047

onlyif mysql # aggregate syntax: 
query I rowsort label-9404
SELECT 41 + COALESCE ( - ( + COUNT( * ) ), - 60 * - 81, + 74 ) AS col1
----
40

skipif mysql # not compatible
query I rowsort label-9404
SELECT 41 + COALESCE ( - ( + COUNT ( * ) ), - 60 * - 81, + 74 ) AS col1
----
40

query I rowsort
SELECT 11 * + - 76
----
-836

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9406
SELECT DISTINCT COUNT( DISTINCT 38 ) * + ( - MAX( CAST( NULL AS DECIMAL ) ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-9406
SELECT DISTINCT COUNT ( DISTINCT 38 ) * + ( - MAX ( CAST ( NULL AS REAL ) ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9407
SELECT ALL COUNT( * ) * - 16 AS col1
----
-16

skipif mysql # not compatible
query I rowsort label-9407
SELECT ALL COUNT ( * ) * - 16 AS col1
----
-16

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9408
SELECT 31 DIV 84 DIV NULLIF ( 73, + 55 + + 14 ) * COUNT( * ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-9408
SELECT 31 / 84 / NULLIF ( 73, + 55 + + 14 ) * COUNT ( * ) AS col1
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-9409
SELECT MAX( DISTINCT 64 ) + - 83 AS col2, + 29 + - + 7
----
-19
22

skipif mysql # not compatible
query II rowsort label-9409
SELECT MAX ( DISTINCT 64 ) + - 83 AS col2, + 29 + - + 7
----
-19
22

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9410
SELECT DISTINCT CAST( NULL AS SIGNED ) * - + 57
----
NULL

skipif mysql # not compatible
query I rowsort label-9410
SELECT DISTINCT CAST ( NULL AS INTEGER ) * - + 57
----
NULL

query I rowsort
SELECT ALL + 58 * + 25 AS col2
----
1450

query II rowsort
SELECT - - 62 AS col2, 17
----
62
17

onlyif mysql # aggregate syntax: 
query I rowsort label-9413
SELECT ALL 37 - + 79 + - COUNT( * )
----
-43

skipif mysql # not compatible
query I rowsort label-9413
SELECT ALL 37 - + 79 + - COUNT ( * )
----
-43

query II rowsort
SELECT + 39, ( - 33 ) col0
----
39
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-9415
SELECT DISTINCT - SUM( ALL + - 47 )
----
47

skipif mysql # not compatible
query I rowsort label-9415
SELECT DISTINCT - SUM ( ALL + - 47 )
----
47

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9416
SELECT - + 6 * 56 + - 24 AS col1, - CAST( - 90 AS SIGNED ) AS col2
----
-360
90

skipif mysql # not compatible
query II rowsort label-9416
SELECT - + 6 * 56 + - 24 AS col1, - CAST ( - 90 AS INTEGER ) AS col2
----
-360
90

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9417
SELECT DISTINCT - CASE 51 WHEN - + 43 + + NULLIF ( - - CAST( + + ( - 14 ) AS SIGNED ), + ( - + 6 ) ) THEN + 85 / + 4 WHEN + 1 * - - 70 - 70 THEN - SUM( + 69 ) END * CAST( + COUNT( * ) AS SIGNED ) + - - 88 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9417
SELECT DISTINCT - CASE 51 WHEN - + 43 + + NULLIF ( - - CAST ( + + ( - 14 ) AS INTEGER ), + ( - + 6 ) ) THEN + 85 / + 4 WHEN + 1 * - - 70 - 70 THEN - SUM ( + 69 ) END * CAST ( + COUNT ( * ) AS INTEGER ) + - - 88 col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9418
SELECT ALL - 51 * - COUNT( * ) DIV + - 96 * 37 + - - 51 + - - ( - ( - 79 ) )
----
130

skipif mysql # not compatible
query I rowsort label-9418
SELECT ALL - 51 * - COUNT ( * ) / + - 96 * 37 + - - 51 + - - ( - ( - 79 ) )
----
130

query I rowsort
SELECT - + 71 - - 44
----
-27

query I rowsort
SELECT ALL - 90 * + - 42
----
3780

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9421
SELECT DISTINCT + CAST( + 91 AS SIGNED ) AS col1
----
91

skipif mysql # not compatible
query I rowsort label-9421
SELECT DISTINCT + CAST ( + 91 AS INTEGER ) AS col1
----
91

onlyif mysql # DIV for integer division: 
query I rowsort label-9422
SELECT + 87 DIV + 92 + + - 83 AS col0
----
-83

skipif mysql # not compatible
query I rowsort label-9422
SELECT + 87 / + 92 + + - 83 AS col0
----
-83

query I rowsort
SELECT COALESCE ( - + 16, 69 * + 76 * - - 94 ) AS col2
----
-16

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9424
SELECT - COALESCE ( - + CAST( NULL AS SIGNED ), + 2 ) DIV + COUNT( * ) + - 78 + 69 + - 35
----
-46

skipif mysql # not compatible
query I rowsort label-9424
SELECT - COALESCE ( - + CAST ( NULL AS INTEGER ), + 2 ) / + COUNT ( * ) + - 78 + 69 + - 35
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-9425
SELECT - 41 + - + COUNT( * ) AS col0
----
-42

skipif mysql # not compatible
query I rowsort label-9425
SELECT - 41 + - + COUNT ( * ) AS col0
----
-42

query I rowsort
SELECT - 11 * + - 25 * 32
----
8800

query I rowsort
SELECT COALESCE ( + 0, - 17 ) col0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9428
SELECT ALL 75 * - - 96 * + COALESCE ( - 89, 20, CASE + + 47 WHEN 36 THEN NULL WHEN - ( + + ( + COALESCE ( 7, - 37, + - 20 ) ) ) THEN CAST( NULL AS SIGNED ) WHEN - 7 THEN + 69 END * 46 ) AS col1
----
-640800

skipif mysql # not compatible
query I rowsort label-9428
SELECT ALL 75 * - - 96 * + COALESCE ( - 89, 20, CASE + + 47 WHEN 36 THEN NULL WHEN - ( + + ( + COALESCE ( 7, - 37, + - 20 ) ) ) THEN CAST ( NULL AS INTEGER ) WHEN - 7 THEN + 69 END * 46 ) AS col1
----
-640800

query I rowsort
SELECT - 0 * + 57 + 98
----
98

onlyif mysql # aggregate syntax: 
query I rowsort label-9430
SELECT - 69 - - COUNT( * ) + - 37
----
-105

skipif mysql # not compatible
query I rowsort label-9430
SELECT - 69 - - COUNT ( * ) + - 37
----
-105

onlyif mysql # aggregate syntax: 
query I rowsort label-9431
SELECT - 45 * + - COUNT( * )
----
45

skipif mysql # not compatible
query I rowsort label-9431
SELECT - 45 * + - COUNT ( * )
----
45

query I rowsort
SELECT + 51 * - 13 * - 36 col0
----
23868

query I rowsort
SELECT DISTINCT + 32 * + 33 + - - 18 AS col1
----
1074

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9434
SELECT ALL 6 * + 55 / + + 31 - - NULLIF ( - ( + MIN( CAST( NULL AS SIGNED ) ) ), + 93 ) - - 80 * + 88 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9434
SELECT ALL 6 * + 55 / + + 31 - - NULLIF ( - ( + MIN ( CAST ( NULL AS INTEGER ) ) ), + 93 ) - - 80 * + 88 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9435
SELECT 25 * - 69 - - CASE - 73 WHEN + 90 * - 68 + + ( - 22 ) + + - 10 + + + 43 + - 10 * + 1 * 63 / - 24 - - 93 * - ( - 2 ) * - 19 + COUNT( - + ( - 11 ) ) THEN 79 WHEN + 63 THEN - NULLIF ( - - COUNT( * ), - 18 ) ELSE + 49 END AS col0
----
-1676

skipif mysql # not compatible
query I rowsort label-9435
SELECT 25 * - 69 - - CASE - 73 WHEN + 90 * - 68 + + ( - 22 ) + + - 10 + + + 43 + - 10 * + 1 * 63 / - 24 - - 93 * - ( - 2 ) * - 19 + COUNT ( - + ( - 11 ) ) THEN 79 WHEN + 63 THEN - NULLIF ( - - COUNT ( * ), - 18 ) ELSE + 49 END AS col0
----
-1676

query I rowsort
SELECT DISTINCT ( - - 4 ) AS col1
----
4

query I rowsort
SELECT ALL 61 * - 24 / CASE + + 40 WHEN - 54 + + 7 THEN 72 * + 49 END AS col2
----
NULL

query I rowsort
SELECT DISTINCT ( NULLIF ( - - 7, + 26 + + - 72 ) ) AS col0
----
7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9439
SELECT - + 15 + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9439
SELECT - + 15 + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT + 79 * - 36
----
-2844

onlyif mysql # aggregate syntax: 
query I rowsort label-9441
SELECT + + 66 + COUNT( ALL + 4 )
----
67

skipif mysql # not compatible
query I rowsort label-9441
SELECT + + 66 + COUNT ( ALL + 4 )
----
67

query I rowsort
SELECT + - 91 + - 1 col2
----
-92

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9443
SELECT ALL + 90 AS col1, + COUNT( ALL + 18 ) / + CAST( NULL AS SIGNED ) - + - 46 col1
----
90
NULL

skipif mysql # not compatible
query II rowsort label-9443
SELECT ALL + 90 AS col1, + COUNT ( ALL + 18 ) / + CAST ( NULL AS INTEGER ) - + - 46 col1
----
90
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9444
SELECT DISTINCT MAX( DISTINCT + 17 ) AS col1
----
17

skipif mysql # not compatible
query I rowsort label-9444
SELECT DISTINCT MAX ( DISTINCT + 17 ) AS col1
----
17

query I rowsort
SELECT + 68 + + 10 AS col1
----
78

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9446
SELECT + 81 + + + CAST( + CAST( + 50 AS SIGNED ) AS SIGNED ) AS col2, - 85
----
131
-85

skipif mysql # not compatible
query II rowsort label-9446
SELECT + 81 + + + CAST ( + CAST ( + 50 AS INTEGER ) AS INTEGER ) AS col2, - 85
----
131
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-9447
SELECT ALL - MIN( - ( - 18 ) )
----
-18

skipif mysql # not compatible
query I rowsort label-9447
SELECT ALL - MIN ( - ( - 18 ) )
----
-18

query II rowsort
SELECT DISTINCT 96 AS col2, 30 AS col0
----
96
30

query II rowsort
SELECT - 41 AS col1, 87 + 16 + - 95
----
-41
8

onlyif mysql # aggregate syntax: 
query I rowsort label-9450
SELECT - CASE + COALESCE ( 29, - + COUNT( * ) ) WHEN - COUNT( * ) THEN + 18 - - 13 WHEN + COUNT( * ) THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-9450
SELECT - CASE + COALESCE ( 29, - + COUNT ( * ) ) WHEN - COUNT ( * ) THEN + 18 - - 13 WHEN + COUNT ( * ) THEN NULL ELSE NULL END
----
NULL

query I rowsort
SELECT ALL - COALESCE ( - 26, + 79 )
----
26

query II rowsort
SELECT - 91, - 50 + + 70 + 90 + 52 AS col2
----
-91
162

query II rowsort
SELECT - 25, 89 col2
----
-25
89

onlyif mysql # aggregate syntax: 
query I rowsort label-9454
SELECT + - SUM( 72 ) * - + 4 * + 74 * + ( + - 83 )
----
-1768896

skipif mysql # not compatible
query I rowsort label-9454
SELECT + - SUM ( 72 ) * - + 4 * + 74 * + ( + - 83 )
----
-1768896

onlyif mysql # aggregate syntax: 
query II rowsort label-9455
SELECT - + MIN( ALL - 55 ) + ( - 98 ) AS col1, + 65
----
-43
65

skipif mysql # not compatible
query II rowsort label-9455
SELECT - + MIN ( ALL - 55 ) + ( - 98 ) AS col1, + 65
----
-43
65

query I rowsort
SELECT ALL + 0 * + 28 * + - 11
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-9457
SELECT ALL 22 DIV - 3 + 20 + - 45 * - 44 + 61 AS col1
----
2054

skipif mysql # not compatible
query I rowsort label-9457
SELECT ALL 22 / - 3 + 20 + - 45 * - 44 + 61 AS col1
----
2054

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9458
SELECT ALL + 14 DIV - COUNT( * ) + - COUNT( * ) AS col0
----
-15

skipif mysql # not compatible
query I rowsort label-9458
SELECT ALL + 14 / - COUNT ( * ) + - COUNT ( * ) AS col0
----
-15

onlyif mysql # DIV for integer division: 
query I rowsort label-9459
SELECT ALL + 48 DIV 56 + - 63 DIV + 69
----
0

skipif mysql # not compatible
query I rowsort label-9459
SELECT ALL + 48 / 56 + - 63 / + 69
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9460
SELECT ALL + CASE COUNT( + - 5 ) WHEN - 15 / CASE 47 WHEN CASE + + COUNT( DISTINCT - 97 ) WHEN - 67 / - 62 * + - 44 + 84 THEN 68 END * - 19 THEN + - 78 + 52 * 95 WHEN - + ( NULLIF ( + ( + NULLIF ( + 20, CAST( 10 AS SIGNED ) ) ), + 74 ) ) * + + COUNT( * ) - + 72 * - 92 + + 28 + + 18 THEN NULL END THEN - - 56 * - 65 + + 89 ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9460
SELECT ALL + CASE COUNT ( + - 5 ) WHEN - 15 / CASE 47 WHEN CASE + + COUNT ( DISTINCT - 97 ) WHEN - 67 / - 62 * + - 44 + 84 THEN 68 END * - 19 THEN + - 78 + 52 * 95 WHEN - + ( NULLIF ( + ( + NULLIF ( + 20, CAST ( 10 AS INTEGER ) ) ), + 74 ) ) * + + COUNT ( * ) - + 72 * - 92 + + 28 + + 18 THEN NULL END THEN - - 56 * - 65 + + 89 ELSE NULL END AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9461
SELECT - 81 DIV COUNT( ALL + 65 ) AS col1
----
-81

skipif mysql # not compatible
query I rowsort label-9461
SELECT - 81 / COUNT ( ALL + 65 ) AS col1
----
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-9462
SELECT DISTINCT COALESCE ( CASE + 59 WHEN + 51 THEN 32 ELSE + COUNT( + 46 ) + + MIN( + 59 ) END, - + 74 ) * - 54 AS col1
----
-3240

skipif mysql # not compatible
query I rowsort label-9462
SELECT DISTINCT COALESCE ( CASE + 59 WHEN + 51 THEN 32 ELSE + COUNT ( + 46 ) + + MIN ( + 59 ) END, - + 74 ) * - 54 AS col1
----
-3240

query I rowsort
SELECT + 28 * 9 * - 88 AS col0
----
-22176

onlyif mysql # aggregate syntax: 
query I rowsort label-9464
SELECT - 21 + - + 0 + ( COUNT( * ) )
----
-20

skipif mysql # not compatible
query I rowsort label-9464
SELECT - 21 + - + 0 + ( COUNT ( * ) )
----
-20

query II rowsort
SELECT 29 * - 27 * - 80 * 95 + + 51 AS col0, 86
----
5950851
86

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9466
SELECT DISTINCT COUNT( * ) * COUNT( * ) - + + ( 89 ) * ( 99 ) * - MAX( + - 48 ) + + + 48 + 16 DIV + ( 64 )
----
-422879

skipif mysql # not compatible
query I rowsort label-9466
SELECT DISTINCT COUNT ( * ) * COUNT ( * ) - + + ( 89 ) * ( 99 ) * - MAX ( + - 48 ) + + + 48 + 16 / + ( 64 )
----
-422879

onlyif mysql # DIV for integer division: 
query I rowsort label-9467
SELECT ALL + 38 DIV - ( - 68 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-9467
SELECT ALL + 38 / - ( - 68 ) AS col2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9468
SELECT DISTINCT + 20 * + - 23, 38 + + + 5 + 37 / + + CAST( NULL AS SIGNED ) AS col0
----
-460
NULL

skipif mysql # not compatible
query II rowsort label-9468
SELECT DISTINCT + 20 * + - 23, 38 + + + 5 + 37 / + + CAST ( NULL AS INTEGER ) AS col0
----
-460
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9469
SELECT DISTINCT + COUNT( * ) DIV - 80
----
0

skipif mysql # not compatible
query I rowsort label-9469
SELECT DISTINCT + COUNT ( * ) / - 80
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9470
SELECT DISTINCT + ( - COUNT( * ) ) * + 4 - - + 98 * - - 4
----
388

skipif mysql # not compatible
query I rowsort label-9470
SELECT DISTINCT + ( - COUNT ( * ) ) * + 4 - - + 98 * - - 4
----
388

onlyif mysql # aggregate syntax: 
query I rowsort label-9471
SELECT ALL + 2 * - NULLIF ( - 52, + - COUNT( * ) * 51 + + COUNT( * ) + + 33 ) col0
----
104

skipif mysql # not compatible
query I rowsort label-9471
SELECT ALL + 2 * - NULLIF ( - 52, + - COUNT ( * ) * 51 + + COUNT ( * ) + + 33 ) col0
----
104

query I rowsort
SELECT - ( - 56 ) + + 38 AS col2
----
94

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9473
SELECT ALL CAST( - 77 AS SIGNED ) * - 12 - - 78 AS col2
----
1002

skipif mysql # not compatible
query I rowsort label-9473
SELECT ALL CAST ( - 77 AS INTEGER ) * - 12 - - 78 AS col2
----
1002

query II rowsort
SELECT DISTINCT + 21 * 25 AS col1, 52
----
525
52

onlyif mysql # aggregate syntax: 
query I rowsort label-9475
SELECT - MAX( DISTINCT - 1 ) * 89
----
89

skipif mysql # not compatible
query I rowsort label-9475
SELECT - MAX ( DISTINCT - 1 ) * 89
----
89

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9476
SELECT DISTINCT + + 21 * + 68 * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9476
SELECT DISTINCT + + 21 * + 68 * - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9477
SELECT + 76 * + COUNT( * ) AS col2, COUNT( * )
----
76
1

skipif mysql # not compatible
query II rowsort label-9477
SELECT + 76 * + COUNT ( * ) AS col2, COUNT ( * )
----
76
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9478
SELECT - COUNT( * ) * + - 99 + - 99
----
0

skipif mysql # not compatible
query I rowsort label-9478
SELECT - COUNT ( * ) * + - 99 + - 99
----
0

query I rowsort
SELECT DISTINCT + + ( + - 25 ) * 55 AS col2
----
-1375

query I rowsort
SELECT - 43 * ( + + 0 )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9481
SELECT DISTINCT CAST( + - 45 AS SIGNED ) AS col1
----
-45

skipif mysql # not compatible
query I rowsort label-9481
SELECT DISTINCT CAST ( + - 45 AS INTEGER ) AS col1
----
-45

onlyif mysql # aggregate syntax: 
query II rowsort label-9482
SELECT ALL 96 + - COUNT( * ) AS col2, 34 * - 18 * + - 53
----
95
32436

skipif mysql # not compatible
query II rowsort label-9482
SELECT ALL 96 + - COUNT ( * ) AS col2, 34 * - 18 * + - 53
----
95
32436

onlyif mysql # aggregate syntax: 
query I rowsort label-9483
SELECT DISTINCT 0 + - COUNT( 70 )
----
-1

skipif mysql # not compatible
query I rowsort label-9483
SELECT DISTINCT 0 + - COUNT ( 70 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9484
SELECT - + COALESCE ( - + 29, + COALESCE ( COUNT( * ), - - 18, - MAX( + - 55 ), 44 ) ) AS col2
----
29

skipif mysql # not compatible
query I rowsort label-9484
SELECT - + COALESCE ( - + 29, + COALESCE ( COUNT ( * ), - - 18, - MAX ( + - 55 ), 44 ) ) AS col2
----
29

query I rowsort
SELECT DISTINCT - + 66 + - + 99
----
-165

onlyif mysql # aggregate syntax: 
query I rowsort label-9486
SELECT + 18 - - SUM( ALL 52 ) * - + 80 * - 40
----
166418

skipif mysql # not compatible
query I rowsort label-9486
SELECT + 18 - - SUM ( ALL 52 ) * - + 80 * - 40
----
166418

onlyif mysql # aggregate syntax: 
query I rowsort label-9487
SELECT CASE + COUNT( * ) WHEN - SUM( - 16 ) - - COUNT( * ) THEN COUNT( DISTINCT 72 ) WHEN + SUM( + 72 ) THEN - - 96 END - - 30 * + 99 + - MAX( DISTINCT + 81 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9487
SELECT CASE + COUNT ( * ) WHEN - SUM ( - 16 ) - - COUNT ( * ) THEN COUNT ( DISTINCT 72 ) WHEN + SUM ( + 72 ) THEN - - 96 END - - 30 * + 99 + - MAX ( DISTINCT + 81 )
----
NULL

query I rowsort
SELECT 63 * 31 AS col0
----
1953

query I rowsort
SELECT ALL 85 * - 15 * + 7 col2
----
-8925

onlyif mysql # aggregate syntax: 
query I rowsort label-9490
SELECT ALL + 96 * + COUNT( DISTINCT - 25 ) AS col1
----
96

skipif mysql # not compatible
query I rowsort label-9490
SELECT ALL + 96 * + COUNT ( DISTINCT - 25 ) AS col1
----
96

query I rowsort
SELECT ALL - - 24 + + 59 AS col2
----
83

onlyif mysql # aggregate syntax: 
query II rowsort label-9492
SELECT ( - 41 ) AS col1, NULLIF ( 24, + 8 * - 9 * - - COUNT( * ) ) AS col2
----
-41
24

skipif mysql # not compatible
query II rowsort label-9492
SELECT ( - 41 ) AS col1, NULLIF ( 24, + 8 * - 9 * - - COUNT ( * ) ) AS col2
----
-41
24

query I rowsort
SELECT ALL 58 + + 10
----
68

query I rowsort
SELECT 25 - 71 AS col1
----
-46

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9495
SELECT ALL 5 AS col1, - COALESCE ( 18, + 11 + - 49 DIV - CASE - 42 WHEN + - 96 - - NULLIF ( + 44, + 76 * + 92 + 4 + 98 ) - - 18 * 52 THEN + 45 WHEN - - COUNT( * ) * + 21 + - - 41 + - - COUNT( * ) THEN NULL END * + 50 + - ( - 0 ) * + 35, 33 * + - 16, - NULLIF ( + NULLIF ( - + 72, 29 * - ( + - 19 ) * 62 ), + 28 ) ) AS col1
----
5
-18

skipif mysql # not compatible
query II rowsort label-9495
SELECT ALL 5 AS col1, - COALESCE ( 18, + 11 + - 49 / - CASE - 42 WHEN + - 96 - - NULLIF ( + 44, + 76 * + 92 + 4 + 98 ) - - 18 * 52 THEN + 45 WHEN - - COUNT ( * ) * + 21 + - - 41 + - - COUNT ( * ) THEN NULL END * + 50 + - ( - 0 ) * + 35, 33 * + - 16, - NULLIF ( + NULLIF ( - + 72, 29 * - ( + - 19 ) * 62 ), + 28 ) ) AS col1
----
5
-18

query II rowsort
SELECT - 6, + 33 - 86 AS col2
----
-6
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-9497
SELECT NULLIF ( - + 3, COUNT( * ) / 67 * + + 32 ) * 54
----
-162

skipif mysql # not compatible
query I rowsort label-9497
SELECT NULLIF ( - + 3, COUNT ( * ) / 67 * + + 32 ) * 54
----
-162

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9498
SELECT - 92 / - 69 + + CAST( NULL AS SIGNED ) + 72 * 11
----
NULL

skipif mysql # not compatible
query I rowsort label-9498
SELECT - 92 / - 69 + + CAST ( NULL AS INTEGER ) + 72 * 11
----
NULL

query I rowsort
SELECT 60 * 13
----
780

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9500
SELECT ( 72 ) / - - 95 - - 66 * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9500
SELECT ( 72 ) / - - 95 - - 66 * - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9501
SELECT 79, - 4 + - + MAX( DISTINCT + 6 ) AS col0
----
79
-10

skipif mysql # not compatible
query II rowsort label-9501
SELECT 79, - 4 + - + MAX ( DISTINCT + 6 ) AS col0
----
79
-10

query I rowsort
SELECT ALL + 34 * + + 77
----
2618

query II rowsort
SELECT 92 col2, 62 AS col1
----
92
62

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9504
SELECT DISTINCT CAST( + 69 AS SIGNED ) - - 34 * + 19 + + 99 + + 33
----
847

skipif mysql # not compatible
query I rowsort label-9504
SELECT DISTINCT CAST ( + 69 AS INTEGER ) - - 34 * + 19 + + 99 + + 33
----
847

onlyif mysql # aggregate syntax: 
query II rowsort label-9505
SELECT ALL - 95 AS col0, + ( + 49 ) * MAX( 55 ) * ( - MAX( ALL + + COALESCE ( + 34, + - 27 ) ) ) * + - 26 + + + 42 col2
----
-95
2382422

skipif mysql # not compatible
query II rowsort label-9505
SELECT ALL - 95 AS col0, + ( + 49 ) * MAX ( 55 ) * ( - MAX ( ALL + + COALESCE ( + 34, + - 27 ) ) ) * + - 26 + + + 42 col2
----
-95
2382422

query I rowsort
SELECT DISTINCT - ( ( - 57 ) ) AS col1
----
57

query I rowsort
SELECT ALL 50 * - 4
----
-200

onlyif mysql # aggregate syntax: 
query I rowsort label-9508
SELECT - COUNT( DISTINCT - 26 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-9508
SELECT - COUNT ( DISTINCT - 26 ) AS col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9509
SELECT 37 * - + COUNT( * ) AS col1
----
-37

skipif mysql # not compatible
query I rowsort label-9509
SELECT 37 * - + COUNT ( * ) AS col1
----
-37

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9510
SELECT DISTINCT - - COALESCE ( - - 26, 86, - + 39 ) DIV + COUNT( * ) AS col1
----
26

skipif mysql # not compatible
query I rowsort label-9510
SELECT DISTINCT - - COALESCE ( - - 26, 86, - + 39 ) / + COUNT ( * ) AS col1
----
26

onlyif mysql # aggregate syntax: 
query II rowsort label-9511
SELECT DISTINCT - 99 col2, + SUM( ALL 57 ) AS col2
----
-99
57

skipif mysql # not compatible
query II rowsort label-9511
SELECT DISTINCT - 99 col2, + SUM ( ALL 57 ) AS col2
----
-99
57

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9512
SELECT MAX( DISTINCT - 34 ) DIV + 64 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-9512
SELECT MAX ( DISTINCT - 34 ) / + 64 AS col2
----
0

query I rowsort
SELECT 17 - - 85 AS col0
----
102

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9514
SELECT ALL - 52 DIV + COUNT( * ) AS col2
----
-52

skipif mysql # not compatible
query I rowsort label-9514
SELECT ALL - 52 / + COUNT ( * ) AS col2
----
-52

query I rowsort
SELECT DISTINCT + 61 + + + 45
----
106

query II rowsort
SELECT ALL - 3 + - 23 + + + 26, 56 AS col1
----
0
56

query I rowsort
SELECT 96 + + - 15 AS col1
----
81

query II rowsort
SELECT - 64, - 24 - - + 22 col0
----
-64
-2

query II rowsort
SELECT 96 AS col1, - 86 AS col2
----
96
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-9520
SELECT 86 - + COUNT( * ) AS col2
----
85

skipif mysql # not compatible
query I rowsort label-9520
SELECT 86 - + COUNT ( * ) AS col2
----
85

query I rowsort
SELECT ALL + 11 * - - ( + 72 ) + + ( - 56 ) AS col2
----
736

query I rowsort
SELECT 88 + - 65 col1
----
23

query I rowsort
SELECT - 99 - + 66
----
-165

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9524
SELECT 35 + - CAST( NULL AS DECIMAL ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9524
SELECT 35 + - CAST ( NULL AS REAL ) AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9525
SELECT DISTINCT - 9 + - CASE + COUNT( * ) WHEN - 30 * 10 * CAST( - + COUNT( * ) AS SIGNED ) THEN + 67 WHEN ( + 59 ) THEN NULL WHEN - - COUNT( * ) + - ( - 28 ) + - 37 * CAST( - - COALESCE ( + COUNT( + 17 ), - + 68 - 39 + + 30 / - 74 + - + 18 ) AS SIGNED ) / - - 77 THEN - COUNT( * ) ELSE + 96 * COUNT( * ) END AS col2
----
-105

skipif mysql # not compatible
query I rowsort label-9525
SELECT DISTINCT - 9 + - CASE + COUNT ( * ) WHEN - 30 * 10 * CAST ( - + COUNT ( * ) AS INTEGER ) THEN + 67 WHEN ( + 59 ) THEN NULL WHEN - - COUNT ( * ) + - ( - 28 ) + - 37 * CAST ( - - COALESCE ( + COUNT ( + 17 ), - + 68 - 39 + + 30 / - 74 + - + 18 ) AS INTEGER ) / - - 77 THEN - COUNT ( * ) ELSE + 96 * COUNT ( * ) END AS col2
----
-105

query I rowsort
SELECT ALL + ( - 53 ) + - - 76
----
23

query I rowsort
SELECT 34 + - - 77 + + 19 AS col2
----
130

query I rowsort
SELECT ALL + 10 - - 75 AS col1
----
85

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9529
SELECT 21 + - - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9529
SELECT 21 + - - CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9530
SELECT 24 DIV 16 col2
----
1

skipif mysql # not compatible
query I rowsort label-9530
SELECT 24 / 16 col2
----
1

query I rowsort
SELECT 60 * + 5 * + + 34 AS col1
----
10200

query I rowsort
SELECT ALL 16 * 29
----
464

query I rowsort
SELECT 31 * - 65 * + + NULLIF ( - 78, + 84 )
----
157170

query I rowsort
SELECT DISTINCT 51 * 64
----
3264

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9535
SELECT ALL - NULLIF ( CAST( NULL AS DECIMAL ), + - 58 ) * - + 64
----
NULL

skipif mysql # not compatible
query I rowsort label-9535
SELECT ALL - NULLIF ( CAST ( NULL AS REAL ), + - 58 ) * - + 64
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9536
SELECT ( - 0 ) + + - 32 + 91 * + + 34 + + 98 + 14 * - - MIN( ALL + CAST( NULL AS SIGNED ) ) + - 82
----
NULL

skipif mysql # not compatible
query I rowsort label-9536
SELECT ( - 0 ) + + - 32 + 91 * + + 34 + + 98 + 14 * - - MIN ( ALL + CAST ( NULL AS INTEGER ) ) + - 82
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9537
SELECT - 39 DIV - 48 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9537
SELECT - 39 / - 48 AS col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9538
SELECT + CAST( NULL AS SIGNED ) * - - COUNT( * ) AS col1, 55 AS col1
----
NULL
55

skipif mysql # not compatible
query II rowsort label-9538
SELECT + CAST ( NULL AS INTEGER ) * - - COUNT ( * ) AS col1, 55 AS col1
----
NULL
55

onlyif mysql # aggregate syntax: 
query I rowsort label-9539
SELECT MIN( DISTINCT - - 70 )
----
70

skipif mysql # not compatible
query I rowsort label-9539
SELECT MIN ( DISTINCT - - 70 )
----
70

onlyif mysql # aggregate syntax: 
query II rowsort label-9540
SELECT MIN( ALL - - 28 ) col1, + 9 + - 34 + + + 89
----
28
64

skipif mysql # not compatible
query II rowsort label-9540
SELECT MIN ( ALL - - 28 ) col1, + 9 + - 34 + + + 89
----
28
64

query I rowsort
SELECT + - 78 * 30
----
-2340

onlyif mysql # aggregate syntax: 
query I rowsort label-9542
SELECT + - 62 + - CASE 89 WHEN - - 14 THEN + 73 ELSE NULL END * + MIN( - NULLIF ( + 63, - 34 - + 37 ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9542
SELECT + - 62 + - CASE 89 WHEN - - 14 THEN + 73 ELSE NULL END * + MIN ( - NULLIF ( + 63, - 34 - + 37 ) ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9543
SELECT ALL - COUNT( * ) * - 99
----
99

skipif mysql # not compatible
query I rowsort label-9543
SELECT ALL - COUNT ( * ) * - 99
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-9544
SELECT ALL 17 + - + 59 + + 32 + - + MIN( DISTINCT + - 18 )
----
8

skipif mysql # not compatible
query I rowsort label-9544
SELECT ALL 17 + - + 59 + + 32 + - + MIN ( DISTINCT + - 18 )
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-9545
SELECT DISTINCT - 74 + - + CASE 63 WHEN - 55 / + 34 + + + 2 THEN + - COUNT( * ) ELSE NULL END + - - 99 * ( - COALESCE ( ( COUNT( * ) ), - COUNT( * ) ) ) * + 8 * - + 12
----
NULL

skipif mysql # not compatible
query I rowsort label-9545
SELECT DISTINCT - 74 + - + CASE 63 WHEN - 55 / + 34 + + + 2 THEN + - COUNT ( * ) ELSE NULL END + - - 99 * ( - COALESCE ( ( COUNT ( * ) ), - COUNT ( * ) ) ) * + 8 * - + 12
----
NULL

query I rowsort
SELECT + 0 * - - 76
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9547
SELECT - + COUNT( * ) + 18 AS col0
----
17

skipif mysql # not compatible
query I rowsort label-9547
SELECT - + COUNT ( * ) + 18 AS col0
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-9548
SELECT ALL CASE + 98 WHEN + - 5 THEN + 28 WHEN - 44 THEN NULL ELSE - - COUNT( * ) END AS col1
----
1

skipif mysql # not compatible
query I rowsort label-9548
SELECT ALL CASE + 98 WHEN + - 5 THEN + 28 WHEN - 44 THEN NULL ELSE - - COUNT ( * ) END AS col1
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9549
SELECT CAST( - - 20 AS SIGNED ) AS col0
----
20

skipif mysql # not compatible
query I rowsort label-9549
SELECT CAST ( - - 20 AS INTEGER ) AS col0
----
20

onlyif mysql # DIV for integer division: 
query I rowsort label-9550
SELECT ALL - 71 + COALESCE ( - 38, - 88 DIV 12 + - 77 ) AS col0
----
-109

skipif mysql # not compatible
query I rowsort label-9550
SELECT ALL - 71 + COALESCE ( - 38, - 88 / 12 + - 77 ) AS col0
----
-109

query I rowsort
SELECT + 3 * ( + + 66 ) * 20
----
3960

query I rowsort
SELECT - 58 * - 34
----
1972

query I rowsort
SELECT + 29 - + + 0
----
29

query I rowsort
SELECT - 35 * 62
----
-2170

onlyif mysql # aggregate syntax: 
query I rowsort label-9555
SELECT ALL 87 * + + MAX( - ( + 73 ) ) AS col1
----
-6351

skipif mysql # not compatible
query I rowsort label-9555
SELECT ALL 87 * + + MAX ( - ( + 73 ) ) AS col1
----
-6351

query I rowsort
SELECT DISTINCT ( - 30 ) AS col0
----
-30

query I rowsort
SELECT ALL ( 96 ) AS col1
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-9558
SELECT ALL CASE WHEN ( + 52 ) IS NULL THEN - 90 * + NULLIF ( 85, COUNT( * ) ) ELSE + + 10 + - - 37 * + 63 * 37 END
----
86257

skipif mysql # not compatible
query I rowsort label-9558
SELECT ALL CASE WHEN ( + 52 ) IS NULL THEN - 90 * + NULLIF ( 85, COUNT ( * ) ) ELSE + + 10 + - - 37 * + 63 * 37 END
----
86257

onlyif mysql # aggregate syntax: 
query I rowsort label-9559
SELECT - 51 - - 56 + - COUNT( * ) AS col1
----
4

skipif mysql # not compatible
query I rowsort label-9559
SELECT - 51 - - 56 + - COUNT ( * ) AS col1
----
4

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9560
SELECT + COUNT( * ) DIV + 98 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-9560
SELECT + COUNT ( * ) / + 98 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9561
SELECT - 33 * + + COUNT( * )
----
-33

skipif mysql # not compatible
query I rowsort label-9561
SELECT - 33 * + + COUNT ( * )
----
-33

onlyif mysql # DIV for integer division: 
query I rowsort label-9562
SELECT + 46 DIV - 93 + - 98
----
-98

skipif mysql # not compatible
query I rowsort label-9562
SELECT + 46 / - 93 + - 98
----
-98

onlyif mysql # DIV for integer division: 
query I rowsort label-9563
SELECT ALL - 17 DIV - - 46 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-9563
SELECT ALL - 17 / - - 46 AS col1
----
0

query I rowsort
SELECT ALL ( - ( 20 ) ) * + 91 + - 6
----
-1826

onlyif mysql # aggregate syntax: 
query I rowsort label-9565
SELECT ALL - 3 * - COUNT( * ) + - + 8 + + - COUNT( * ) + + + COUNT( * )
----
-5

skipif mysql # not compatible
query I rowsort label-9565
SELECT ALL - 3 * - COUNT ( * ) + - + 8 + + - COUNT ( * ) + + + COUNT ( * )
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-9566
SELECT + - 38 * - + 10 + COUNT( * ) + 85 AS col2
----
466

skipif mysql # not compatible
query I rowsort label-9566
SELECT + - 38 * - + 10 + COUNT ( * ) + 85 AS col2
----
466

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9567
SELECT DISTINCT CAST( NULL AS SIGNED ) * - 42 * 89 + 91 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9567
SELECT DISTINCT CAST ( NULL AS INTEGER ) * - 42 * 89 + 91 col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9568
SELECT - + 56 - + MAX( DISTINCT + 45 ) * - 33 * + 61 + 96
----
90625

skipif mysql # not compatible
query I rowsort label-9568
SELECT - + 56 - + MAX ( DISTINCT + 45 ) * - 33 * + 61 + 96
----
90625

onlyif mysql # aggregate syntax: 
query II rowsort label-9569
SELECT + SUM( ( + 27 ) ), ( - + 2 ) AS col1
----
27
-2

skipif mysql # not compatible
query II rowsort label-9569
SELECT + SUM ( ( + 27 ) ), ( - + 2 ) AS col1
----
27
-2

onlyif mysql # DIV for integer division: 
query I rowsort label-9570
SELECT - - ( + - 86 ) + - 51 + - + ( + CASE 31 WHEN + 42 THEN - - 11 ELSE - 68 + - - 62 DIV + 86 * + 30 END ) AS col1
----
-69

skipif mysql # not compatible
query I rowsort label-9570
SELECT - - ( + - 86 ) + - 51 + - + ( + CASE 31 WHEN + 42 THEN - - 11 ELSE - 68 + - - 62 / + 86 * + 30 END ) AS col1
----
-69

onlyif mysql # aggregate syntax: 
query II rowsort label-9571
SELECT ALL + + NULLIF ( + 30, 34 ), - ( COUNT( * ) ) * - 49 * - 46 AS col2
----
30
-2254

skipif mysql # not compatible
query II rowsort label-9571
SELECT ALL + + NULLIF ( + 30, 34 ), - ( COUNT ( * ) ) * - 49 * - 46 AS col2
----
30
-2254

query I rowsort
SELECT + - COALESCE ( - + 43, - 2 )
----
43

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9573
SELECT ALL + 73 * + 12 + - - 63 + 31 - COUNT( + 23 ) - - ( - + COUNT( * ) ) * - - 93 + + 4 + 3 DIV + 2
----
881

skipif mysql # not compatible
query I rowsort label-9573
SELECT ALL + 73 * + 12 + - - 63 + 31 - COUNT ( + 23 ) - - ( - + COUNT ( * ) ) * - - 93 + + 4 + 3 / + 2
----
881

onlyif mysql # aggregate syntax: 
query I rowsort label-9574
SELECT DISTINCT + 38 * + NULLIF ( + 72, - 92 - - COUNT( * ) + + ( - 40 ) ) + - 6 + - 9 * 16 * + 65 AS col0
----
-6630

skipif mysql # not compatible
query I rowsort label-9574
SELECT DISTINCT + 38 * + NULLIF ( + 72, - 92 - - COUNT ( * ) + + ( - 40 ) ) + - 6 + - 9 * 16 * + 65 AS col0
----
-6630

query III rowsort
SELECT ALL + - 25 * + 46 - - 57 - 32 + + 94 AS col0, 56 AS col0, - - ( - - 16 ) * 22 + + - 66 + - 32 AS col0
----
-1031
56
254

query I rowsort
SELECT + 21 - - - 32 AS col1
----
-11

onlyif mysql # DIV for integer division: 
query II rowsort label-9577
SELECT ALL - 29 * - 52 + + 73 AS col1, 75 DIV 84 + + - 99
----
1581
-99

skipif mysql # not compatible
query II rowsort label-9577
SELECT ALL - 29 * - 52 + + 73 AS col1, 75 / 84 + + - 99
----
1581
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-9578
SELECT DISTINCT - 18 * - - 74 + + 56 * + ( - 95 ) + MAX( 5 )
----
-6647

skipif mysql # not compatible
query I rowsort label-9578
SELECT DISTINCT - 18 * - - 74 + + 56 * + ( - 95 ) + MAX ( 5 )
----
-6647

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9579
SELECT ALL - 80 * 36 + - - 22 + + COUNT( * ) * - 9 - - 38 - CAST( NULL AS SIGNED ) - - 6 + + 98 - - - 31 + - - 94 + + AVG ( - + 85 ) / + + 89 - COUNT( + 38 ) / + 47 * + + ( + - 2 ) * - 36 / - + 23
----
NULL

skipif mysql # not compatible
query I rowsort label-9579
SELECT ALL - 80 * 36 + - - 22 + + COUNT ( * ) * - 9 - - 38 - CAST ( NULL AS INTEGER ) - - 6 + + 98 - - - 31 + - - 94 + + AVG ( - + 85 ) / + + 89 - COUNT ( + 38 ) / + 47 * + + ( + - 2 ) * - 36 / - + 23
----
NULL

query I rowsort
SELECT - - ( - 16 ) AS col1
----
-16

query I rowsort
SELECT + - 79 + - - 32
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-9582
SELECT - - CASE 41 WHEN + 76 THEN 65 * - 82 + + 6 * ( + + COUNT( * ) ) ELSE NULL END * - 98
----
NULL

skipif mysql # not compatible
query I rowsort label-9582
SELECT - - CASE 41 WHEN + 76 THEN 65 * - 82 + + 6 * ( + + COUNT ( * ) ) ELSE NULL END * - 98
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9583
SELECT COUNT( * ) col0, CAST( NULL AS SIGNED )
----
1
NULL

skipif mysql # not compatible
query II rowsort label-9583
SELECT COUNT ( * ) col0, CAST ( NULL AS INTEGER )
----
1
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9584
SELECT + 5 + + SUM( DISTINCT - 58 ) * ( - 16 ) AS col1
----
933

skipif mysql # not compatible
query I rowsort label-9584
SELECT + 5 + + SUM ( DISTINCT - 58 ) * ( - 16 ) AS col1
----
933

onlyif mysql # DIV for integer division: 
query I rowsort label-9585
SELECT + 81 + - 21 DIV + ( - + 34 ) + + - 56 AS col1
----
25

skipif mysql # not compatible
query I rowsort label-9585
SELECT + 81 + - 21 / + ( - + 34 ) + + - 56 AS col1
----
25

query II rowsort
SELECT DISTINCT 7 AS col1, + 97 col2
----
7
97

query II rowsort
SELECT ALL 58 AS col0, - 24 AS col1
----
58
-24

onlyif mysql # aggregate syntax: 
query II rowsort label-9588
SELECT ALL COUNT( + 34 ) AS col2, + MAX( - 63 ) AS col0
----
1
-63

skipif mysql # not compatible
query II rowsort label-9588
SELECT ALL COUNT ( + 34 ) AS col2, + MAX ( - 63 ) AS col0
----
1
-63

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9589
SELECT - MIN( 24 ) + - 1 + + - ( 13 ) DIV + 51 + + 31 + 77 + + + 9 * - - 79
----
794

skipif mysql # not compatible
query I rowsort label-9589
SELECT - MIN ( 24 ) + - 1 + + - ( 13 ) / + 51 + + 31 + 77 + + + 9 * - - 79
----
794

query I rowsort
SELECT ALL + 75 * + 62
----
4650

query I rowsort
SELECT 66 * - 92 * 34
----
-206448

onlyif mysql # DIV for integer division: 
query I rowsort label-9592
SELECT DISTINCT 75 DIV 24
----
3

skipif mysql # not compatible
query I rowsort label-9592
SELECT DISTINCT 75 / 24
----
3

query I rowsort
SELECT 75 * + 36 col0
----
2700

onlyif mysql # aggregate syntax: 
query I rowsort label-9594
SELECT 78 + - CASE + - COUNT( * ) WHEN - + 10 THEN + + 80 ELSE + 80 END AS col2
----
-2

skipif mysql # not compatible
query I rowsort label-9594
SELECT 78 + - CASE + - COUNT ( * ) WHEN - + 10 THEN + + 80 ELSE + 80 END AS col2
----
-2

query II rowsort
SELECT - 78 AS col2, - 90 AS col0
----
-78
-90

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9596
SELECT CAST( 99 AS SIGNED ) + - 30 AS col1
----
69

skipif mysql # not compatible
query I rowsort label-9596
SELECT CAST ( 99 AS INTEGER ) + - 30 AS col1
----
69

query II rowsort
SELECT 97, + 17 AS col1
----
97
17

query II rowsort
SELECT 65 + 15, 89 AS col0
----
80
89

query I rowsort
SELECT DISTINCT 32 * + ( - + 90 )
----
-2880

query I rowsort
SELECT ALL 91 + 23 AS col0
----
114

query I rowsort
SELECT ALL - 85 + 2 AS col1
----
-83

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9602
SELECT + 43 AS col0, 72 + - - CAST( - + 26 AS SIGNED )
----
43
46

skipif mysql # not compatible
query II rowsort label-9602
SELECT + 43 AS col0, 72 + - - CAST ( - + 26 AS INTEGER )
----
43
46

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-9603
SELECT DISTINCT + 58 + + + 94 - - + MIN( + 59 ), 34 / 37 / SUM( DISTINCT 71 ) + CAST( NULL AS DECIMAL ) * - + 80 * ( 18 ) + - + 29 * 58 * COUNT( * ) AS col0
----
211
NULL

skipif mysql # not compatible
query II rowsort label-9603
SELECT DISTINCT + 58 + + + 94 - - + MIN ( + 59 ), 34 / 37 / SUM ( DISTINCT 71 ) + CAST ( NULL AS REAL ) * - + 80 * ( 18 ) + - + 29 * 58 * COUNT ( * ) AS col0
----
211
NULL

query II rowsort
SELECT - 15, + 67 * 38 AS col0
----
-15
2546

query II rowsort
SELECT ALL - 25, 83 col0
----
-25
83

onlyif mysql # aggregate syntax: 
query I rowsort label-9606
SELECT + COUNT( * ) + + 68 col1
----
69

skipif mysql # not compatible
query I rowsort label-9606
SELECT + COUNT ( * ) + + 68 col1
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-9607
SELECT ALL + - 70 + + + SUM( - + 79 )
----
-149

skipif mysql # not compatible
query I rowsort label-9607
SELECT ALL + - 70 + + + SUM ( - + 79 )
----
-149

onlyif mysql # aggregate syntax: 
query I rowsort label-9608
SELECT + SUM( + 47 ) AS col2
----
47

skipif mysql # not compatible
query I rowsort label-9608
SELECT + SUM ( + 47 ) AS col2
----
47

query I rowsort
SELECT + COALESCE ( - 32, + 13, 84 * + 50 ) * + 29 * + 24 + - 70 + - - 90 AS col2
----
-22252

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9610
SELECT DISTINCT + CAST( + 40 AS SIGNED ) DIV + ( - 30 ) - - + 55 AS col0
----
54

skipif mysql # not compatible
query I rowsort label-9610
SELECT DISTINCT + CAST ( + 40 AS INTEGER ) / + ( - 30 ) - - + 55 AS col0
----
54

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9611
SELECT DISTINCT + + 28 DIV + COUNT( * )
----
28

skipif mysql # not compatible
query I rowsort label-9611
SELECT DISTINCT + + 28 / + COUNT ( * )
----
28

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9612
SELECT ALL - 84 AS col0, - CAST( NULL AS SIGNED ) + + COUNT( * ) AS col1
----
-84
NULL

skipif mysql # not compatible
query II rowsort label-9612
SELECT ALL - 84 AS col0, - CAST ( NULL AS INTEGER ) + + COUNT ( * ) AS col1
----
-84
NULL

query I rowsort
SELECT - 10 * + 51 + - 57 AS col2
----
-567

onlyif mysql # aggregate syntax: 
query I rowsort label-9614
SELECT ALL + 80 * - COUNT( * )
----
-80

skipif mysql # not compatible
query I rowsort label-9614
SELECT ALL + 80 * - COUNT ( * )
----
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-9615
SELECT - 61 * - - 73 + - ( + COUNT( * ) ) - - ( 95 ) - 56 * - 8 * 71 * - + SUM( + 98 ) - + COUNT( * ) + - - 66 + + + 67 - 84 * + - 54 AS col1
----
-3116875

skipif mysql # not compatible
query I rowsort label-9615
SELECT - 61 * - - 73 + - ( + COUNT ( * ) ) - - ( 95 ) - 56 * - 8 * 71 * - + SUM ( + 98 ) - + COUNT ( * ) + - - 66 + + + 67 - 84 * + - 54 AS col1
----
-3116875

onlyif mysql # aggregate syntax: 
query II rowsort label-9616
SELECT ALL - + 62, 25 + ( 20 ) + + 74 + + + NULLIF ( - COUNT( ALL + - 77 ), + 53 + - COUNT( * ) ) AS col2
----
-62
118

skipif mysql # not compatible
query II rowsort label-9616
SELECT ALL - + 62, 25 + ( 20 ) + + 74 + + + NULLIF ( - COUNT ( ALL + - 77 ), + 53 + - COUNT ( * ) ) AS col2
----
-62
118

onlyif mysql # aggregate syntax: 
query I rowsort label-9617
SELECT 51 * + 93 * - - MIN( 44 ) + 19
----
208711

skipif mysql # not compatible
query I rowsort label-9617
SELECT 51 * + 93 * - - MIN ( 44 ) + 19
----
208711

onlyif mysql # aggregate syntax: 
query I rowsort label-9618
SELECT + 46 * 48 + + 90 + + - NULLIF ( + - 66, - 82 ) + 65 * + ( - ( + 24 ) ) + MAX( DISTINCT + ( 47 ) ) - - 53 * + 51 AS col2
----
3554

skipif mysql # not compatible
query I rowsort label-9618
SELECT + 46 * 48 + + 90 + + - NULLIF ( + - 66, - 82 ) + 65 * + ( - ( + 24 ) ) + MAX ( DISTINCT + ( 47 ) ) - - 53 * + 51 AS col2
----
3554

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9619
SELECT 40 / - - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9619
SELECT 40 / - - CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT ALL COALESCE ( - - 36, + + 20 ) AS col0
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-9621
SELECT COUNT( * ) * - 2 AS col0
----
-2

skipif mysql # not compatible
query I rowsort label-9621
SELECT COUNT ( * ) * - 2 AS col0
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-9622
SELECT CASE + 96 WHEN COUNT( + 93 ) THEN + 73 END * + COALESCE ( 93, - 47 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9622
SELECT CASE + 96 WHEN COUNT ( + 93 ) THEN + 73 END * + COALESCE ( 93, - 47 )
----
NULL

query I rowsort
SELECT 49 - - ( 64 ) col0
----
113

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9624
SELECT DISTINCT COUNT( * ) + - - 77 * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9624
SELECT DISTINCT COUNT ( * ) + - - 77 * + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9625
SELECT ALL 80 + + + 4 + 58 * + 49 * - COUNT( DISTINCT 95 ) + - 36 + - COUNT( * ) AS col1
----
-2795

skipif mysql # not compatible
query I rowsort label-9625
SELECT ALL 80 + + + 4 + 58 * + 49 * - COUNT ( DISTINCT 95 ) + - 36 + - COUNT ( * ) AS col1
----
-2795

query I rowsort
SELECT ALL 50 + + + 64
----
114

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9627
SELECT CAST( + - CAST( NULL AS SIGNED ) AS SIGNED ) * - - 77 - 75 / 19
----
NULL

skipif mysql # not compatible
query I rowsort label-9627
SELECT CAST ( + - CAST ( NULL AS INTEGER ) AS INTEGER ) * - - 77 - 75 / 19
----
NULL

query I rowsort
SELECT DISTINCT 85 + - + 30 col0
----
55

query I rowsort
SELECT 3 - - 35 + 69
----
107

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9630
SELECT ALL + 66 * + COALESCE ( - - ( - CAST( - - 47 AS SIGNED ) ), + 32 + + 45 * 64, + - MIN( 78 ) - - + 65 + + - COUNT( * ), + 77 ) * 43 + - 72 - + 62 DIV 24 - + 34 + 81 AS col2
----
-133413

skipif mysql # not compatible
query I rowsort label-9630
SELECT ALL + 66 * + COALESCE ( - - ( - CAST ( - - 47 AS INTEGER ) ), + 32 + + 45 * 64, + - MIN ( 78 ) - - + 65 + + - COUNT ( * ), + 77 ) * 43 + - 72 - + 62 / 24 - + 34 + 81 AS col2
----
-133413

onlyif mysql # aggregate syntax: 
query II rowsort label-9631
SELECT COUNT( * ) * 57 AS col0, 11
----
57
11

skipif mysql # not compatible
query II rowsort label-9631
SELECT COUNT ( * ) * 57 AS col0, 11
----
57
11

onlyif mysql # DIV for integer division: 
query I rowsort label-9632
SELECT 71 DIV 62 * + + 50
----
50

skipif mysql # not compatible
query I rowsort label-9632
SELECT 71 / 62 * + + 50
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-9633
SELECT ALL + ( COUNT( * ) ) * - 58
----
-58

skipif mysql # not compatible
query I rowsort label-9633
SELECT ALL + ( COUNT ( * ) ) * - 58
----
-58

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9634
SELECT - COUNT( * ) DIV - 90 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-9634
SELECT - COUNT ( * ) / - 90 AS col2
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-9635
SELECT ALL - 53 - + + COUNT( * ) AS col2, 32 AS col1
----
-54
32

skipif mysql # not compatible
query II rowsort label-9635
SELECT ALL - 53 - + + COUNT ( * ) AS col2, 32 AS col1
----
-54
32

onlyif mysql # DIV for integer division: 
query I rowsort label-9636
SELECT ALL - 84 * 89 + + 3 DIV + 59 AS col2
----
-7476

skipif mysql # not compatible
query I rowsort label-9636
SELECT ALL - 84 * 89 + + 3 / + 59 AS col2
----
-7476

onlyif mysql # aggregate syntax: 
query I rowsort label-9637
SELECT COALESCE ( + 25, + - 92, - 56 * - 37 ) * - ( + COUNT( * ) ) * 64 AS col1
----
-1600

skipif mysql # not compatible
query I rowsort label-9637
SELECT COALESCE ( + 25, + - 92, - 56 * - 37 ) * - ( + COUNT ( * ) ) * 64 AS col1
----
-1600

query II rowsort
SELECT DISTINCT + 51 * - 29 * - 51 * + 75 * - + 29 AS col0, 16 AS col1
----
-164058075
16

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-9639
SELECT + CAST( + 13 AS SIGNED ), 18 DIV 49 * - 98 AS col0
----
13
0

skipif mysql # not compatible
query II rowsort label-9639
SELECT + CAST ( + 13 AS INTEGER ), 18 / 49 * - 98 AS col0
----
13
0

onlyif mysql # DIV for integer division: 
query I rowsort label-9640
SELECT - 17 DIV - 97 * + 19 - - - 85
----
-85

skipif mysql # not compatible
query I rowsort label-9640
SELECT - 17 / - 97 * + 19 - - - 85
----
-85

query I rowsort
SELECT 65 + 48 AS col2
----
113

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9642
SELECT + SUM( DISTINCT 65 ) / - CAST( NULL AS SIGNED ) + - 48 + - - 45 * 37 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9642
SELECT + SUM ( DISTINCT 65 ) / - CAST ( NULL AS INTEGER ) + - 48 + - - 45 * 37 AS col2
----
NULL

query I rowsort
SELECT - 43 * + 89 * 15 AS col2
----
-57405

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9644
SELECT ALL + + 50 DIV + - SUM( ALL 11 ) AS col2, 5
----
-4
5

skipif mysql # not compatible
query II rowsort label-9644
SELECT ALL + + 50 / + - SUM ( ALL 11 ) AS col2, 5
----
-4
5

onlyif mysql # aggregate syntax: 
query I rowsort label-9645
SELECT ALL COUNT( ALL 51 )
----
1

skipif mysql # not compatible
query I rowsort label-9645
SELECT ALL COUNT ( ALL 51 )
----
1

query I rowsort
SELECT + 28 + - 95
----
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-9647
SELECT - COUNT( * ) + + 98 + + + ( 84 ) AS col1
----
181

skipif mysql # not compatible
query I rowsort label-9647
SELECT - COUNT ( * ) + + 98 + + + ( 84 ) AS col1
----
181

onlyif mysql # aggregate syntax: 
query I rowsort label-9648
SELECT - COUNT( + 52 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-9648
SELECT - COUNT ( + 52 ) AS col1
----
-1

query I rowsort
SELECT ALL 86 + 68
----
154

query II rowsort
SELECT + 98 - + 83 * + 73 AS col0, 24
----
-5961
24

onlyif mysql # aggregate syntax: 
query I rowsort label-9651
SELECT ALL COUNT( ALL - 84 ) + 82 col0
----
83

skipif mysql # not compatible
query I rowsort label-9651
SELECT ALL COUNT ( ALL - 84 ) + 82 col0
----
83

query I rowsort
SELECT ALL - 58 + - 27
----
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-9653
SELECT DISTINCT + 3 + - COALESCE ( 17, - COUNT( * ) * - 63 * + ( - 18 ) )
----
-14

skipif mysql # not compatible
query I rowsort label-9653
SELECT DISTINCT + 3 + - COALESCE ( 17, - COUNT ( * ) * - 63 * + ( - 18 ) )
----
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-9654
SELECT ALL COALESCE ( - + 98, + 75 + - 19 ) + COUNT( * ) + + - 19 * + 46
----
-971

skipif mysql # not compatible
query I rowsort label-9654
SELECT ALL COALESCE ( - + 98, + 75 + - 19 ) + COUNT ( * ) + + - 19 * + 46
----
-971

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9655
SELECT + CAST( NULL AS SIGNED ) + - 35 + + SUM( + 79 ) * 45
----
NULL

skipif mysql # not compatible
query I rowsort label-9655
SELECT + CAST ( NULL AS INTEGER ) + - 35 + + SUM ( + 79 ) * 45
----
NULL

query II rowsort
SELECT ALL 86, 74 AS col1
----
86
74

query I rowsort
SELECT + 28 * + + 54
----
1512

onlyif mysql # aggregate syntax: 
query I rowsort label-9658
SELECT + ( - - 75 ) * 90 * - COUNT( * ) + - 44
----
-6794

skipif mysql # not compatible
query I rowsort label-9658
SELECT + ( - - 75 ) * 90 * - COUNT ( * ) + - 44
----
-6794

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9659
SELECT - + 82 DIV - + COUNT( * ) + 20
----
102

skipif mysql # not compatible
query I rowsort label-9659
SELECT - + 82 / - + COUNT ( * ) + 20
----
102

onlyif mysql # DIV for integer division: 
query I rowsort label-9660
SELECT ALL + 63 DIV - 92 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9660
SELECT ALL + 63 / - 92 AS col0
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-9661
SELECT + 31 * - 74 * + 90 AS col2, 96 * + ( + ( + - 32 ) ) * + ( COUNT( * ) ) - 79 AS col0
----
-206460
-3151

skipif mysql # not compatible
query II rowsort label-9661
SELECT + 31 * - 74 * + 90 AS col2, 96 * + ( + ( + - 32 ) ) * + ( COUNT ( * ) ) - 79 AS col0
----
-206460
-3151

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9662
SELECT + 1 + - 7 - - + MIN( ALL - 62 ) * CAST( NULL AS DECIMAL ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9662
SELECT + 1 + - 7 - - + MIN ( ALL - 62 ) * CAST ( NULL AS REAL ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9663
SELECT + 44 * - 57 * + 75, COUNT( * ) AS col0
----
-188100
1

skipif mysql # not compatible
query II rowsort label-9663
SELECT + 44 * - 57 * + 75, COUNT ( * ) AS col0
----
-188100
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9664
SELECT ALL + - CAST( - 44 AS SIGNED ) AS col0
----
44

skipif mysql # not compatible
query I rowsort label-9664
SELECT ALL + - CAST ( - 44 AS INTEGER ) AS col0
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-9665
SELECT - MIN( DISTINCT - 75 ) * 50 + ( 30 )
----
3780

skipif mysql # not compatible
query I rowsort label-9665
SELECT - MIN ( DISTINCT - 75 ) * 50 + ( 30 )
----
3780

onlyif mysql # aggregate syntax: 
query II rowsort label-9666
SELECT NULLIF ( + COUNT( * ), + COUNT( * ) ) AS col2, 78
----
NULL
78

skipif mysql # not compatible
query II rowsort label-9666
SELECT NULLIF ( + COUNT ( * ), + COUNT ( * ) ) AS col2, 78
----
NULL
78

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9667
SELECT DISTINCT COALESCE ( + 95, + - 7 DIV + COUNT( * ) ) * - SUM( - + 60 ) + - + COUNT( * ) AS col2
----
5699

skipif mysql # not compatible
query I rowsort label-9667
SELECT DISTINCT COALESCE ( + 95, + - 7 / + COUNT ( * ) ) * - SUM ( - + 60 ) + - + COUNT ( * ) AS col2
----
5699

query I rowsort
SELECT + 90 + - + 52
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-9669
SELECT + - COUNT( + + 58 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-9669
SELECT + - COUNT ( + + 58 ) AS col0
----
-1

query I rowsort
SELECT ALL + - 56 * - 70 + - 43 + - + 23 col1
----
3854

query I rowsort
SELECT + 12 * - 45 + + + ( 0 ) + - 87
----
-627

onlyif mysql # aggregate syntax: 
query I rowsort label-9672
SELECT ALL + 36 * + - COALESCE ( + 14, - 5 + - + ( COUNT( * ) ) ) + - 81 + - 76 AS col1
----
-661

skipif mysql # not compatible
query I rowsort label-9672
SELECT ALL + 36 * + - COALESCE ( + 14, - 5 + - + ( COUNT ( * ) ) ) + - 81 + - 76 AS col1
----
-661

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9673
SELECT COALESCE ( - ( + 14 ), - - COUNT( * ) + - + COUNT( * ) - - + 65 + - CAST( NULL AS SIGNED ) * AVG ( ALL - 11 ) DIV ( 75 ) + - COUNT( * ) + 72 * + 46 )
----
-14

skipif mysql # not compatible
query I rowsort label-9673
SELECT COALESCE ( - ( + 14 ), - - COUNT ( * ) + - + COUNT ( * ) - - + 65 + - CAST ( NULL AS INTEGER ) * AVG ( ALL - 11 ) / ( 75 ) + - COUNT ( * ) + 72 * + 46 )
----
-14

query I rowsort
SELECT - 5 * 38
----
-190

query I rowsort
SELECT ALL 36 * - CASE + 71 WHEN + 50 * + 43 THEN + - 34 WHEN + - 5 - + 5 + - 68 / - - 16 * - 27 THEN NULL ELSE NULL END + - 55
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9676
SELECT DISTINCT COUNT( * ) * + 78 * + - 88 + + 91 + COUNT( * ) AS col0
----
-6772

skipif mysql # not compatible
query I rowsort label-9676
SELECT DISTINCT COUNT ( * ) * + 78 * + - 88 + + 91 + COUNT ( * ) AS col0
----
-6772

onlyif mysql # aggregate syntax: 
query II rowsort label-9677
SELECT - 86 * 85 AS col1, COUNT( DISTINCT 20 ) + 33 AS col2
----
-7310
34

skipif mysql # not compatible
query II rowsort label-9677
SELECT - 86 * 85 AS col1, COUNT ( DISTINCT 20 ) + 33 AS col2
----
-7310
34

onlyif mysql # aggregate syntax: 
query I rowsort label-9678
SELECT DISTINCT - NULLIF ( + 23, 94 * 89 * 96 + COUNT( * ) ) * + 92 * - + 68 + - 30
----
143858

skipif mysql # not compatible
query I rowsort label-9678
SELECT DISTINCT - NULLIF ( + 23, 94 * 89 * 96 + COUNT ( * ) ) * + 92 * - + 68 + - 30
----
143858

query I rowsort
SELECT DISTINCT - 72 + 61 AS col2
----
-11

onlyif mysql # DIV for integer division: 
query I rowsort label-9680
SELECT - 39 DIV - + 88 * - + 1 * 60
----
0

skipif mysql # not compatible
query I rowsort label-9680
SELECT - 39 / - + 88 * - + 1 * 60
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9681
SELECT ALL - 54 - - COUNT( * ) AS col0
----
-53

skipif mysql # not compatible
query I rowsort label-9681
SELECT ALL - 54 - - COUNT ( * ) AS col0
----
-53

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9682
SELECT ALL CAST( - 6 AS SIGNED )
----
-6

skipif mysql # not compatible
query I rowsort label-9682
SELECT ALL CAST ( - 6 AS INTEGER )
----
-6

onlyif mysql # DIV for integer division: 
query II rowsort label-9683
SELECT + 8 DIV + 71 AS col1, COALESCE ( - 53, 73 ) AS col2
----
0
-53

skipif mysql # not compatible
query II rowsort label-9683
SELECT + 8 / + 71 AS col1, COALESCE ( - 53, 73 ) AS col2
----
0
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-9684
SELECT - COUNT( * ) * + 6 AS col0
----
-6

skipif mysql # not compatible
query I rowsort label-9684
SELECT - COUNT ( * ) * + 6 AS col0
----
-6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9685
SELECT + 85 * + - CASE 47 WHEN 69 * + 35 + + COUNT( DISTINCT 87 ) THEN NULL WHEN - 90 + + 86 * + - 8 + + - 89 THEN CAST( + 35 AS SIGNED ) - 41 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9685
SELECT + 85 * + - CASE 47 WHEN 69 * + 35 + + COUNT ( DISTINCT 87 ) THEN NULL WHEN - 90 + + 86 * + - 8 + + - 89 THEN CAST ( + 35 AS INTEGER ) - 41 END AS col2
----
NULL

query I rowsort
SELECT ALL + ( ( - 66 ) )
----
-66

query I rowsort
SELECT - - 64 + 11 * 95
----
1109

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9688
SELECT ALL CASE - + 73 WHEN - COALESCE ( + - 44, + 77 ) THEN - + 35 * + 92 * 8 / - - CAST( NULL AS SIGNED ) * - - 51 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9688
SELECT ALL CASE - + 73 WHEN - COALESCE ( + - 44, + 77 ) THEN - + 35 * + 92 * 8 / - - CAST ( NULL AS INTEGER ) * - - 51 END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9689
SELECT NULLIF ( - 76, MIN( DISTINCT - + ( - NULLIF ( - 25, + 46 ) ) ) ) AS col1, - COALESCE ( 53, + 80 * - ( 49 ) ) * + 20 AS col2
----
-76
-1060

skipif mysql # not compatible
query II rowsort label-9689
SELECT NULLIF ( - 76, MIN ( DISTINCT - + ( - NULLIF ( - 25, + 46 ) ) ) ) AS col1, - COALESCE ( 53, + 80 * - ( 49 ) ) * + 20 AS col2
----
-76
-1060

onlyif mysql # aggregate syntax: 
query I rowsort label-9690
SELECT DISTINCT - + 8 * + + COUNT( * ) AS col1
----
-8

skipif mysql # not compatible
query I rowsort label-9690
SELECT DISTINCT - + 8 * + + COUNT ( * ) AS col1
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-9691
SELECT - 29 * COUNT( - - 55 ) + + ( - 34 ) AS col1
----
-63

skipif mysql # not compatible
query I rowsort label-9691
SELECT - 29 * COUNT ( - - 55 ) + + ( - 34 ) AS col1
----
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-9692
SELECT ALL - COUNT( * ) * + + COUNT( * ) - - + 31 * - 35 col0
----
-1086

skipif mysql # not compatible
query I rowsort label-9692
SELECT ALL - COUNT ( * ) * + + COUNT ( * ) - - + 31 * - 35 col0
----
-1086

onlyif mysql # DIV for integer division: 
query I rowsort label-9693
SELECT - 87 DIV - 75 + + 22 + + 30 + + 47 AS col0
----
100

skipif mysql # not compatible
query I rowsort label-9693
SELECT - 87 / - 75 + + 22 + + 30 + + 47 AS col0
----
100

query III rowsort
SELECT + - ( 11 ) * - 56 + 56 AS col2, - 4 col1, + - 67 AS col0
----
672
-4
-67

onlyif mysql # DIV for integer division: 
query I rowsort label-9695
SELECT DISTINCT - 91 DIV - 8 + + + 89 * + + 23 - + + 43 AS col2
----
2015

skipif mysql # not compatible
query I rowsort label-9695
SELECT DISTINCT - 91 / - 8 + + + 89 * + + 23 - + + 43 AS col2
----
2015

query I rowsort
SELECT ALL 35 + 78
----
113

query II rowsort
SELECT ( + 96 ) + 36 AS col0, + 9
----
132
9

query I rowsort
SELECT 85 * 12
----
1020

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9699
SELECT CASE + COALESCE ( 43, 92, + COUNT( * ) - + + 17 ) WHEN - 10 THEN 92 ELSE 4 END * - MAX( + 19 ) - CASE - 11 WHEN - 9 THEN - 15 WHEN + 33 THEN + - 16 * - + CASE - 44 WHEN COUNT( * ) THEN 45 - COUNT( * ) END / + + 86 - 8 ELSE NULL END + 29 * - CAST( NULL AS SIGNED ) * + 91 * + + COUNT( * ) * + + COUNT( * ) * + 96 + COUNT( DISTINCT - ( - 64 ) ) + - 51 * - 46 * - 87 / + NULLIF ( + 90, 2 ) * - 15 + - 45 / 87
----
NULL

skipif mysql # not compatible
query I rowsort label-9699
SELECT CASE + COALESCE ( 43, 92, + COUNT ( * ) - + + 17 ) WHEN - 10 THEN 92 ELSE 4 END * - MAX ( + 19 ) - CASE - 11 WHEN - 9 THEN - 15 WHEN + 33 THEN + - 16 * - + CASE - 44 WHEN COUNT ( * ) THEN 45 - COUNT ( * ) END / + + 86 - 8 ELSE NULL END + 29 * - CAST ( NULL AS INTEGER ) * + 91 * + + COUNT ( * ) * + + COUNT ( * ) * + 96 + COUNT ( DISTINCT - ( - 64 ) ) + - 51 * - 46 * - 87 / + NULLIF ( + 90, 2 ) * - 15 + - 45 / 87
----
NULL

query I rowsort
SELECT ALL 4 + - 8 AS col1
----
-4

query I rowsort
SELECT DISTINCT 34 + + 45 + + 86
----
165

query I rowsort
SELECT ALL - 58 - 42 + + + 38 - - 69 AS col2
----
7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9703
SELECT 84 + 14 + - - 53 - - + 16 - + 48 + + - NULLIF ( + + CASE - 17 WHEN 68 THEN COALESCE ( + COUNT( * ), - - 26 * + 78 + - COUNT( + 13 ) ) ELSE 9 END, + - 47 * + 22 ) * ( 49 ) / 94 * - + CAST( NULL AS SIGNED ) + COUNT( * ) * - 83 + - 23 + + ( + 16 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9703
SELECT 84 + 14 + - - 53 - - + 16 - + 48 + + - NULLIF ( + + CASE - 17 WHEN 68 THEN COALESCE ( + COUNT ( * ), - - 26 * + 78 + - COUNT ( + 13 ) ) ELSE 9 END, + - 47 * + 22 ) * ( 49 ) / 94 * - + CAST ( NULL AS INTEGER ) + COUNT ( * ) * - 83 + - 23 + + ( + 16 )
----
NULL

query I rowsort
SELECT 94 + 40
----
134

query I rowsort
SELECT 95 * 44 + 56 + 89 AS col2
----
4325

query I rowsort
SELECT 74 + - + 35 + + - 18 * + + 83
----
-1455

onlyif mysql # aggregate syntax: 
query I rowsort label-9707
SELECT 13 + - - CASE + + 45 WHEN 1 THEN - 5 * 85 * SUM( - - 45 ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-9707
SELECT 13 + - - CASE + + 45 WHEN 1 THEN - 5 * 85 * SUM ( - - 45 ) ELSE NULL END
----
NULL

query II rowsort
SELECT ALL 82, - 72 AS col0
----
82
-72

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9709
SELECT CAST( - + 82 AS SIGNED ) + + 36 AS col0, 92 AS col0
----
-46
92

skipif mysql # not compatible
query II rowsort label-9709
SELECT CAST ( - + 82 AS INTEGER ) + + 36 AS col0, 92 AS col0
----
-46
92

onlyif mysql # aggregate syntax: 
query I rowsort label-9710
SELECT SUM( DISTINCT + 72 ) + + 53
----
125

skipif mysql # not compatible
query I rowsort label-9710
SELECT SUM ( DISTINCT + 72 ) + + 53
----
125

query I rowsort
SELECT 29 - + + 80 * - 50
----
4029

onlyif mysql # aggregate syntax: 
query I rowsort label-9712
SELECT 0 * + - MAX( 79 ) col0
----
0

skipif mysql # not compatible
query I rowsort label-9712
SELECT 0 * + - MAX ( 79 ) col0
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9713
SELECT 3 + + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-9713
SELECT 3 + + CAST ( NULL AS REAL )
----
NULL

query I rowsort
SELECT ALL - 7 * 66
----
-462

onlyif mysql # aggregate syntax: 
query I rowsort label-9715
SELECT - 47 + + COUNT( * ) + 17 + + - 18 * - 51 AS col0
----
889

skipif mysql # not compatible
query I rowsort label-9715
SELECT - 47 + + COUNT ( * ) + 17 + + - 18 * - 51 AS col0
----
889

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9716
SELECT ALL + - 19 * + - CAST( 74 AS SIGNED )
----
1406

skipif mysql # not compatible
query I rowsort label-9716
SELECT ALL + - 19 * + - CAST ( 74 AS INTEGER )
----
1406

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9717
SELECT + CAST( - 97 AS SIGNED ) * - + CAST( 32 AS SIGNED ) col0
----
3104

skipif mysql # not compatible
query I rowsort label-9717
SELECT + CAST ( - 97 AS INTEGER ) * - + CAST ( 32 AS INTEGER ) col0
----
3104

query I rowsort
SELECT - 60 + 46 AS col2
----
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-9719
SELECT ALL - COUNT( * ) * - 62
----
62

skipif mysql # not compatible
query I rowsort label-9719
SELECT ALL - COUNT ( * ) * - 62
----
62

onlyif mysql # DIV for integer division: 
query I rowsort label-9720
SELECT ( 12 ) DIV 50 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-9720
SELECT ( 12 ) / 50 AS col2
----
0

query I rowsort
SELECT - 36 + + 65
----
29

query II rowsort
SELECT - 63 AS col0, + 64
----
-63
64

onlyif mysql # aggregate syntax: 
query I rowsort label-9723
SELECT DISTINCT - COUNT( * ) + + - 56 + + ( 12 ) * + - MIN( DISTINCT + CASE - 56 WHEN 13 - + - 16 * - 17 * + 27 * - 38 THEN - - 96 + - + 99 / 86 END ) * - 37 * 98 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9723
SELECT DISTINCT - COUNT ( * ) + + - 56 + + ( 12 ) * + - MIN ( DISTINCT + CASE - 56 WHEN 13 - + - 16 * - 17 * + 27 * - 38 THEN - - 96 + - + 99 / 86 END ) * - 37 * 98 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9724
SELECT ALL - 11 + MIN( - + 91 ) AS col1
----
-102

skipif mysql # not compatible
query I rowsort label-9724
SELECT ALL - 11 + MIN ( - + 91 ) AS col1
----
-102

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9725
SELECT ALL CAST( NULL AS SIGNED ) + - - MIN( - 51 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9725
SELECT ALL CAST ( NULL AS INTEGER ) + - - MIN ( - 51 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9726
SELECT DISTINCT - + COUNT( * ) + + + ( + 81 ) + COUNT( * ) * + - 31 * + 35 + 61 col0
----
-944

skipif mysql # not compatible
query I rowsort label-9726
SELECT DISTINCT - + COUNT ( * ) + + + ( + 81 ) + COUNT ( * ) * + - 31 * + 35 + 61 col0
----
-944

query I rowsort
SELECT DISTINCT - 62 + 25 AS col0
----
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-9728
SELECT ( + COUNT( * ) ) + - - 41 col0
----
42

skipif mysql # not compatible
query I rowsort label-9728
SELECT ( + COUNT ( * ) ) + - - 41 col0
----
42

query II rowsort
SELECT + 95 AS col0, + 26
----
95
26

onlyif mysql # DIV for integer division: 
query I rowsort label-9730
SELECT DISTINCT + 71 - - 37 DIV + NULLIF ( + + 51, + + 22 * 39 ) + - 92 + 47 * - + 17 AS col0
----
-820

skipif mysql # not compatible
query I rowsort label-9730
SELECT DISTINCT + 71 - - 37 / + NULLIF ( + + 51, + + 22 * 39 ) + - 92 + 47 * - + 17 AS col0
----
-820

onlyif mysql # aggregate syntax: 
query II rowsort label-9731
SELECT ALL - 49 AS col0, 21 + 71 + - + COUNT( * )
----
-49
91

skipif mysql # not compatible
query II rowsort label-9731
SELECT ALL - 49 AS col0, 21 + 71 + - + COUNT ( * )
----
-49
91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9732
SELECT SUM( DISTINCT 28 ) / - CAST( + ( CAST( NULL AS DECIMAL ) ) AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9732
SELECT SUM ( DISTINCT 28 ) / - CAST ( + ( CAST ( NULL AS REAL ) ) AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9733
SELECT ALL - 20 AS col1, 91 * + COUNT( * ) * + + 7
----
-20
637

skipif mysql # not compatible
query II rowsort label-9733
SELECT ALL - 20 AS col1, 91 * + COUNT ( * ) * + + 7
----
-20
637

onlyif mysql # aggregate syntax: 
query II rowsort label-9734
SELECT ALL - 23, - COUNT( * ) * 27 + - - 13 * + + 6 AS col1
----
-23
51

skipif mysql # not compatible
query II rowsort label-9734
SELECT ALL - 23, - COUNT ( * ) * 27 + - - 13 * + + 6 AS col1
----
-23
51

query II rowsort
SELECT + 16 AS col1, 84
----
16
84

query II rowsort
SELECT 44, + 75 AS col1
----
44
75

onlyif mysql # aggregate syntax: 
query II rowsort label-9737
SELECT 81 AS col1, COUNT( DISTINCT - - 7 ) + + + 51
----
81
52

skipif mysql # not compatible
query II rowsort label-9737
SELECT 81 AS col1, COUNT ( DISTINCT - - 7 ) + + + 51
----
81
52

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9738
SELECT ALL 21 DIV 30 DIV - COUNT( - 99 ), 15 + + 89 AS col2
----
0
104

skipif mysql # not compatible
query II rowsort label-9738
SELECT ALL 21 / 30 / - COUNT ( - 99 ), 15 + + 89 AS col2
----
0
104

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9739
SELECT MAX( DISTINCT - - 77 ) DIV 87 * 81 * + 35
----
0

skipif mysql # not compatible
query I rowsort label-9739
SELECT MAX ( DISTINCT - - 77 ) / 87 * 81 * + 35
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9740
SELECT ( - 73 ) * CASE + NULLIF ( + NULLIF ( - NULLIF ( - CAST( - MAX( DISTINCT 38 ) AS SIGNED ), 47 - - COUNT( * ) ), + 65 + + 16 ), + 61 - - 22 ) WHEN 56 THEN - 79 + - - CAST( + COUNT( * ) AS DECIMAL ) / - + 31 WHEN - 51 * - 31 * 14 - + + 63 THEN 37 * 33 + - 94 + - COUNT( * ) * - CAST( 79 AS SIGNED ) * + 84 + + 80 * + 44 * - COUNT( * ) * 47 ELSE NULL END + - NULLIF ( - + 4, 28 ) * 8
----
NULL

skipif mysql # not compatible
query I rowsort label-9740
SELECT ( - 73 ) * CASE + NULLIF ( + NULLIF ( - NULLIF ( - CAST ( - MAX ( DISTINCT 38 ) AS INTEGER ), 47 - - COUNT ( * ) ), + 65 + + 16 ), + 61 - - 22 ) WHEN 56 THEN - 79 + - - CAST ( + COUNT ( * ) AS REAL ) / - + 31 WHEN - 51 * - 31 * 14 - + + 63 THEN 37 * 33 + - 94 + - COUNT ( * ) * - CAST ( 79 AS INTEGER ) * + 84 + + 80 * + 44 * - COUNT ( * ) * 47 ELSE NULL END + - NULLIF ( - + 4, 28 ) * 8
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9741
SELECT ALL 85 DIV + 32 AS col1
----
2

skipif mysql # not compatible
query I rowsort label-9741
SELECT ALL 85 / + 32 AS col1
----
2

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9742
SELECT ( + 44 ) DIV + + COUNT( * ) + - - 56 AS col0, 72 col1
----
100
72

skipif mysql # not compatible
query II rowsort label-9742
SELECT ( + 44 ) / + + COUNT ( * ) + - - 56 AS col0, 72 col1
----
100
72

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9743
SELECT COUNT( * ) * + CAST( - 15 AS SIGNED )
----
-15

skipif mysql # not compatible
query I rowsort label-9743
SELECT COUNT ( * ) * + CAST ( - 15 AS INTEGER )
----
-15

query I rowsort
SELECT ALL 79 * + - 37 col1
----
-2923

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9745
SELECT ALL 92 AS col1, CAST( NULL AS SIGNED ) + COALESCE ( - - 23, - 68, - - 13 * + - COUNT( * ) + + 68 ) * 7 + + + NULLIF ( - 86, + 57 ) / CAST( NULL AS SIGNED ) + + - NULLIF ( + + 58, - + 71 * - - 49 / - 37 ) - - 71
----
92
NULL

skipif mysql # not compatible
query II rowsort label-9745
SELECT ALL 92 AS col1, CAST ( NULL AS INTEGER ) + COALESCE ( - - 23, - 68, - - 13 * + - COUNT ( * ) + + 68 ) * 7 + + + NULLIF ( - 86, + 57 ) / CAST ( NULL AS INTEGER ) + + - NULLIF ( + + 58, - + 71 * - - 49 / - 37 ) - - 71
----
92
NULL

query I rowsort
SELECT DISTINCT 5 * - - 79
----
395

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9747
SELECT - CAST( - CAST( - COUNT( * ) AS SIGNED ) AS SIGNED )
----
-1

skipif mysql # not compatible
query I rowsort label-9747
SELECT - CAST ( - CAST ( - COUNT ( * ) AS INTEGER ) AS INTEGER )
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-9748
SELECT - 53 * - 65 * + + SUM( + 5 ), 67 AS col1
----
17225
67

skipif mysql # not compatible
query II rowsort label-9748
SELECT - 53 * - 65 * + + SUM ( + 5 ), 67 AS col1
----
17225
67

onlyif mysql # aggregate syntax: 
query I rowsort label-9749
SELECT ALL COALESCE ( + SUM( DISTINCT + - 59 ), + ( - 83 ) )
----
-59

skipif mysql # not compatible
query I rowsort label-9749
SELECT ALL COALESCE ( + SUM ( DISTINCT + - 59 ), + ( - 83 ) )
----
-59

query II rowsort
SELECT 7, - 57 * + - 83 AS col1
----
7
4731

onlyif mysql # aggregate syntax: 
query I rowsort label-9751
SELECT - COUNT( * ) - + NULLIF ( + 76, 37 ) AS col0
----
-77

skipif mysql # not compatible
query I rowsort label-9751
SELECT - COUNT ( * ) - + NULLIF ( + 76, 37 ) AS col0
----
-77

query II rowsort
SELECT + 86 col2, + 13 - - 46 + + - 80
----
86
-21

query II rowsort
SELECT ALL 97, 21 * - CASE - 7 WHEN - 62 THEN NULL ELSE 70 END AS col1
----
97
-1470

query I rowsort
SELECT 1 + 81
----
82

query I rowsort
SELECT ALL 94 + + ( - 0 )
----
94

onlyif mysql # DIV for integer division: 
query I rowsort label-9756
SELECT ALL - 24 DIV - 33 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9756
SELECT ALL - 24 / - 33 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9757
SELECT DISTINCT + + COUNT( * ) * + - 89
----
-89

skipif mysql # not compatible
query I rowsort label-9757
SELECT DISTINCT + + COUNT ( * ) * + - 89
----
-89

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9758
SELECT DISTINCT - COUNT( * ) + - - NULLIF ( - 16, - CAST( NULL AS SIGNED ) ) + - 36
----
-53

skipif mysql # not compatible
query I rowsort label-9758
SELECT DISTINCT - COUNT ( * ) + - - NULLIF ( - 16, - CAST ( NULL AS INTEGER ) ) + - 36
----
-53

query II rowsort
SELECT - 43, 52 AS col1
----
-43
52

query I rowsort
SELECT ALL - + 36 + + ( + + 62 )
----
26

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9761
SELECT - 36 * - - CASE 29 WHEN + 53 + + 90 THEN NULL WHEN - CASE + + 47 WHEN + 99 THEN NULL ELSE + + 98 END THEN COALESCE ( 59, - + CAST( NULL AS SIGNED ) + 53 ) WHEN + 76 THEN + 80 WHEN ( - + 49 ) - COALESCE ( 89, - 77, 70, MIN( DISTINCT 49 ) + + 17 + + 68 - - 0 * - 94 * - NULLIF ( - - 55, AVG ( DISTINCT ( ( + 83 ) ) ) + 63 ) * ( 92 ) * + 27 * - CAST( NULL AS SIGNED ) ) THEN - - 16 END * + 43 + + + 20 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9761
SELECT - 36 * - - CASE 29 WHEN + 53 + + 90 THEN NULL WHEN - CASE + + 47 WHEN + 99 THEN NULL ELSE + + 98 END THEN COALESCE ( 59, - + CAST ( NULL AS INTEGER ) + 53 ) WHEN + 76 THEN + 80 WHEN ( - + 49 ) - COALESCE ( 89, - 77, 70, MIN ( DISTINCT 49 ) + + 17 + + 68 - - 0 * - 94 * - NULLIF ( - - 55, AVG ( DISTINCT ( ( + 83 ) ) ) + 63 ) * ( 92 ) * + 27 * - CAST ( NULL AS INTEGER ) ) THEN - - 16 END * + 43 + + + 20 AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9762
SELECT + - 25 DIV + 74 + + - 32 + + 12 + - 77
----
-97

skipif mysql # not compatible
query I rowsort label-9762
SELECT + - 25 / + 74 + + - 32 + + 12 + - 77
----
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-9763
SELECT ALL + MAX( - 41 ) * - 60 - 37 + - 38 * + - 5 AS col1
----
2613

skipif mysql # not compatible
query I rowsort label-9763
SELECT ALL + MAX ( - 41 ) * - 60 - 37 + - 38 * + - 5 AS col1
----
2613

query I rowsort
SELECT - 46 * - + 22 * 3
----
3036

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9765
SELECT ALL - 30 DIV + + COUNT( * ) AS col1, 19 AS col2
----
-30
19

skipif mysql # not compatible
query II rowsort label-9765
SELECT ALL - 30 / + + COUNT ( * ) AS col1, 19 AS col2
----
-30
19

onlyif mysql # aggregate syntax: 
query I rowsort label-9766
SELECT ALL + NULLIF ( - - COUNT( * ), 57 )
----
1

skipif mysql # not compatible
query I rowsort label-9766
SELECT ALL + NULLIF ( - - COUNT ( * ), 57 )
----
1

query I rowsort
SELECT - 27 + 75 + + 39 AS col1
----
87

onlyif mysql # aggregate syntax: 
query II rowsort label-9768
SELECT + 92 * - - 76 AS col0, ( + COUNT( * ) ) * - 97 * - - 49
----
6992
-4753

skipif mysql # not compatible
query II rowsort label-9768
SELECT + 92 * - - 76 AS col0, ( + COUNT ( * ) ) * - 97 * - - 49
----
6992
-4753

onlyif mysql # aggregate syntax: 
query I rowsort label-9769
SELECT - ( - COUNT( * ) ) + - 37
----
-36

skipif mysql # not compatible
query I rowsort label-9769
SELECT - ( - COUNT ( * ) ) + - 37
----
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-9770
SELECT SUM( NULLIF ( 25, + + 92 * - 14 * 81 * + 58 ) ) AS col0
----
25

skipif mysql # not compatible
query I rowsort label-9770
SELECT SUM ( NULLIF ( 25, + + 92 * - 14 * 81 * + 58 ) ) AS col0
----
25

query I rowsort
SELECT ALL + 22 * + 96 AS col2
----
2112

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9772
SELECT CAST( NULL AS SIGNED ) * + 24 + 8 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9772
SELECT CAST ( NULL AS INTEGER ) * + 24 + 8 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9773
SELECT DISTINCT + 41 * - COUNT( ALL ( + CAST( - 62 AS SIGNED ) ) ) * + + 58
----
-2378

skipif mysql # not compatible
query I rowsort label-9773
SELECT DISTINCT + 41 * - COUNT ( ALL ( + CAST ( - 62 AS INTEGER ) ) ) * + + 58
----
-2378

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9774
SELECT - 56 + - CAST( NULL AS SIGNED ) + + + 9, 60 + - + 73 + - 75 AS col0
----
NULL
-88

skipif mysql # not compatible
query II rowsort label-9774
SELECT - 56 + - CAST ( NULL AS INTEGER ) + + + 9, 60 + - + 73 + - 75 AS col0
----
NULL
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-9775
SELECT ALL + COUNT( * ) * - + 85
----
-85

skipif mysql # not compatible
query I rowsort label-9775
SELECT ALL + COUNT ( * ) * - + 85
----
-85

onlyif mysql # DIV for integer division: 
query I rowsort label-9776
SELECT + 50 + + 64 DIV + 69
----
50

skipif mysql # not compatible
query I rowsort label-9776
SELECT + 50 + + 64 / + 69
----
50

query I rowsort
SELECT DISTINCT + 2 * + 0 + - + 56 AS col2
----
-56

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9778
SELECT + COUNT( * ) DIV - + 85 + + 52 - - 68 AS col2
----
120

skipif mysql # not compatible
query I rowsort label-9778
SELECT + COUNT ( * ) / - + 85 + + 52 - - 68 AS col2
----
120

onlyif mysql # aggregate syntax: 
query I rowsort label-9779
SELECT + 72 * 9 + - + 75 + - ( - - COUNT( * ) ) AS col0
----
572

skipif mysql # not compatible
query I rowsort label-9779
SELECT + 72 * 9 + - + 75 + - ( - - COUNT ( * ) ) AS col0
----
572

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9780
SELECT + 56 + - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9780
SELECT + 56 + - CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT ALL + 14 * + - 95 * + + 82
----
-109060

onlyif mysql # aggregate syntax: 
query I rowsort label-9782
SELECT + ( 47 ) + 72 + + 5 * + 47 * - - MAX( DISTINCT 54 ) * + 1 AS col0
----
12809

skipif mysql # not compatible
query I rowsort label-9782
SELECT + ( 47 ) + 72 + + 5 * + 47 * - - MAX ( DISTINCT 54 ) * + 1 AS col0
----
12809

onlyif mysql # aggregate syntax: 
query I rowsort label-9783
SELECT ALL + - MAX( DISTINCT - + 13 ) + - + 50 AS col2
----
-37

skipif mysql # not compatible
query I rowsort label-9783
SELECT ALL + - MAX ( DISTINCT - + 13 ) + - + 50 AS col2
----
-37

onlyif mysql # DIV for integer division: 
query I rowsort label-9784
SELECT DISTINCT - 86 DIV 58 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-9784
SELECT DISTINCT - 86 / 58 AS col1
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-9785
SELECT + 22 DIV + 45 - + + 24 + - 50
----
-74

skipif mysql # not compatible
query I rowsort label-9785
SELECT + 22 / + 45 - + + 24 + - 50
----
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-9786
SELECT ALL + 64 + - CASE - 91 WHEN 43 THEN NULL WHEN + - 73 + + COUNT( DISTINCT - 73 ) THEN - - ( - 71 ) END * AVG ( - 5 ) - - 35 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9786
SELECT ALL + 64 + - CASE - 91 WHEN 43 THEN NULL WHEN + - 73 + + COUNT ( DISTINCT - 73 ) THEN - - ( - 71 ) END * AVG ( - 5 ) - - 35 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9787
SELECT ALL + 95 + + 51 + - COUNT( * )
----
145

skipif mysql # not compatible
query I rowsort label-9787
SELECT ALL + 95 + + 51 + - COUNT ( * )
----
145

onlyif mysql # aggregate syntax: 
query I rowsort label-9788
SELECT DISTINCT COUNT( * ) + - - ( + + NULLIF ( + 64, 40 ) ) + - 80
----
-15

skipif mysql # not compatible
query I rowsort label-9788
SELECT DISTINCT COUNT ( * ) + - - ( + + NULLIF ( + 64, 40 ) ) + - 80
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-9789
SELECT + - ( 38 ) + + COUNT( * ) * + COALESCE ( + + 45, 94 - + 82 ) + - 78
----
-71

skipif mysql # not compatible
query I rowsort label-9789
SELECT + - ( 38 ) + + COUNT ( * ) * + COALESCE ( + + 45, 94 - + 82 ) + - 78
----
-71

query I rowsort
SELECT ALL 41 - 1 + - 25 + - ( + 97 ) * + 80 + - 61 + 38 AS col0
----
-7768

onlyif mysql # aggregate syntax: 
query I rowsort label-9791
SELECT ALL MIN( ALL - + 84 )
----
-84

skipif mysql # not compatible
query I rowsort label-9791
SELECT ALL MIN ( ALL - + 84 )
----
-84

query I rowsort
SELECT + + 7 + + 22 + - - 49
----
78

onlyif mysql # DIV for integer division: 
query I rowsort label-9793
SELECT + - 32 + - - ( + 95 ) DIV + 81
----
-31

skipif mysql # not compatible
query I rowsort label-9793
SELECT + - 32 + - - ( + 95 ) / + 81
----
-31

query I rowsort
SELECT ALL 8 - + 69
----
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-9795
SELECT ALL + COUNT( * ) * + + 69
----
69

skipif mysql # not compatible
query I rowsort label-9795
SELECT ALL + COUNT ( * ) * + + 69
----
69

query I rowsort
SELECT ALL - 71 - + 24
----
-95

onlyif mysql # DIV for integer division: 
query I rowsort label-9797
SELECT DISTINCT 11 DIV 33
----
0

skipif mysql # not compatible
query I rowsort label-9797
SELECT DISTINCT 11 / 33
----
0

query I rowsort
SELECT - 22 * + 73
----
-1606

query I rowsort
SELECT ALL - 99 * + 66 col1
----
-6534

onlyif mysql # aggregate syntax: 
query I rowsort label-9800
SELECT - 40 + ( + SUM( DISTINCT 85 ) ) col0
----
45

skipif mysql # not compatible
query I rowsort label-9800
SELECT - 40 + ( + SUM ( DISTINCT 85 ) ) col0
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-9801
SELECT ALL 46 * COUNT( * ) * - + 4 AS col2
----
-184

skipif mysql # not compatible
query I rowsort label-9801
SELECT ALL 46 * COUNT ( * ) * - + 4 AS col2
----
-184

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9802
SELECT - 26 * + + 17 + - 72 * - CAST( NULL AS SIGNED ) + - 97 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9802
SELECT - 26 * + + 17 + - 72 * - CAST ( NULL AS INTEGER ) + - 97 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9803
SELECT DISTINCT - COUNT( * ) * 79 * + CAST( NULL AS SIGNED ) AS col0, CASE 65 WHEN + + 10 THEN 91 * + - 35 * 79 END - + CAST( 59 AS SIGNED ) col0
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-9803
SELECT DISTINCT - COUNT ( * ) * 79 * + CAST ( NULL AS INTEGER ) AS col0, CASE 65 WHEN + + 10 THEN 91 * + - 35 * 79 END - + CAST ( 59 AS INTEGER ) col0
----
NULL
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9804
SELECT + 86 DIV - NULLIF ( + 94, COUNT( * ) * + COUNT( * ) DIV + 80 )
----
0

skipif mysql # not compatible
query I rowsort label-9804
SELECT + 86 / - NULLIF ( + 94, COUNT ( * ) * + COUNT ( * ) / + 80 )
----
0

query I rowsort
SELECT - 92 * 81 col2
----
-7452

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9806
SELECT ALL + 49 AS col0, COALESCE ( 26, 34 + + + 27 ) * + + 77 * CAST( + + 39 AS SIGNED )
----
49
78078

skipif mysql # not compatible
query II rowsort label-9806
SELECT ALL + 49 AS col0, COALESCE ( 26, 34 + + + 27 ) * + + 77 * CAST ( + + 39 AS INTEGER )
----
49
78078

onlyif mysql # aggregate syntax: 
query I rowsort label-9807
SELECT 27 * - COUNT( DISTINCT - 58 ) + 17
----
-10

skipif mysql # not compatible
query I rowsort label-9807
SELECT 27 * - COUNT ( DISTINCT - 58 ) + 17
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-9808
SELECT - 68 * - ( COUNT( * ) )
----
68

skipif mysql # not compatible
query I rowsort label-9808
SELECT - 68 * - ( COUNT ( * ) )
----
68

query I rowsort
SELECT ( + + 34 ) AS col2
----
34

query I rowsort
SELECT ALL 86 * + 89
----
7654

query II rowsort
SELECT DISTINCT + 45 AS col2, - 88
----
45
-88

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9812
SELECT ALL 88 * + + 98 + - + COALESCE ( + 84, - 3 DIV - 48 DIV + + ( - - 76 ) + - COALESCE ( + - 23, - MIN( DISTINCT 30 ) ) + + + 44 + - + 57 + - + 28 * 63 + + + 15 + - 79 - + 63 * + - 96 ) AS col0
----
8540

skipif mysql # not compatible
query I rowsort label-9812
SELECT ALL 88 * + + 98 + - + COALESCE ( + 84, - 3 / - 48 / + + ( - - 76 ) + - COALESCE ( + - 23, - MIN ( DISTINCT 30 ) ) + + + 44 + - + 57 + - + 28 * 63 + + + 15 + - 79 - + 63 * + - 96 ) AS col0
----
8540

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9813
SELECT DISTINCT + CAST( - 70 AS SIGNED ) AS col0
----
-70

skipif mysql # not compatible
query I rowsort label-9813
SELECT DISTINCT + CAST ( - 70 AS INTEGER ) AS col0
----
-70

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9814
SELECT ALL - 75 * + CAST( - 99 AS SIGNED ) + + + 30
----
7455

skipif mysql # not compatible
query I rowsort label-9814
SELECT ALL - 75 * + CAST ( - 99 AS INTEGER ) + + + 30
----
7455

query I rowsort
SELECT - 97 * - 72
----
6984

query I rowsort
SELECT DISTINCT + - 99 * 16
----
-1584

onlyif mysql # aggregate syntax: 
query I rowsort label-9817
SELECT ALL + 4 * 30 + - ( COUNT( * ) )
----
119

skipif mysql # not compatible
query I rowsort label-9817
SELECT ALL + 4 * 30 + - ( COUNT ( * ) )
----
119

query I rowsort
SELECT + + ( + 32 )
----
32

query I rowsort
SELECT ALL + 85 * + 90
----
7650

onlyif mysql # aggregate syntax: 
query I rowsort label-9820
SELECT ALL + + 1 * - COUNT( * ) + - + NULLIF ( + 75, COUNT( * ) * + 7 + - 33 )
----
-76

skipif mysql # not compatible
query I rowsort label-9820
SELECT ALL + + 1 * - COUNT ( * ) + - + NULLIF ( + 75, COUNT ( * ) * + 7 + - 33 )
----
-76

onlyif mysql # aggregate syntax: 
query II rowsort label-9821
SELECT DISTINCT - - COUNT( * ) * 10 + + 68, ( + 85 ) AS col1
----
78
85

skipif mysql # not compatible
query II rowsort label-9821
SELECT DISTINCT - - COUNT ( * ) * 10 + + 68, ( + 85 ) AS col1
----
78
85

onlyif mysql # aggregate syntax: 
query I rowsort label-9822
SELECT ALL - MAX( - 63 ) + - 5
----
58

skipif mysql # not compatible
query I rowsort label-9822
SELECT ALL - MAX ( - 63 ) + - 5
----
58

query II rowsort
SELECT ALL - 59 AS col0, 97 + 66
----
-59
163

query I rowsort
SELECT DISTINCT + + ( + 36 ) + - 52 + - 80 * - 97 col2
----
7744

onlyif mysql # aggregate syntax: 
query I rowsort label-9825
SELECT - 38 + - - COUNT( * )
----
-37

skipif mysql # not compatible
query I rowsort label-9825
SELECT - 38 + - - COUNT ( * )
----
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-9826
SELECT DISTINCT - 91 + + 39 + COUNT( * ) + 90 AS col1
----
39

skipif mysql # not compatible
query I rowsort label-9826
SELECT DISTINCT - 91 + + 39 + COUNT ( * ) + 90 AS col1
----
39

query I rowsort
SELECT + 65 * + 83
----
5395

onlyif mysql # DIV for integer division: 
query I rowsort label-9828
SELECT ALL - 41 DIV + 45
----
0

skipif mysql # not compatible
query I rowsort label-9828
SELECT ALL - 41 / + 45
----
0

query I rowsort
SELECT 87 + - 67
----
20

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9830
SELECT ALL - CAST( + + 43 AS SIGNED ) - 44 DIV ( + + 6 ) AS col1
----
-50

skipif mysql # not compatible
query I rowsort label-9830
SELECT ALL - CAST ( + + 43 AS INTEGER ) - 44 / ( + + 6 ) AS col1
----
-50

query I rowsort
SELECT + 31 * - + COALESCE ( - + ( - 29 ), - - 88 )
----
-899

onlyif mysql # DIV for integer division: 
query I rowsort label-9832
SELECT ALL - 81 DIV - 64 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-9832
SELECT ALL - 81 / - 64 AS col2
----
1

query I rowsort
SELECT 10 * 49
----
490

query I rowsort
SELECT DISTINCT - 48 * - 38 AS col0
----
1824

query I rowsort
SELECT DISTINCT 70 * + 18
----
1260

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9836
SELECT CAST( + - COALESCE ( 44, + MAX( 32 ) + - 82 + + + 88, - 12 ) AS SIGNED ) + CASE + 43 WHEN 15 THEN 29 ELSE NULL END + + 13 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9836
SELECT CAST ( + - COALESCE ( 44, + MAX ( 32 ) + - 82 + + + 88, - 12 ) AS INTEGER ) + CASE + 43 WHEN 15 THEN 29 ELSE NULL END + + 13 AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9837
SELECT 75 - - CAST( NULL AS SIGNED ) AS col1, + 29 + + ( 71 )
----
NULL
100

skipif mysql # not compatible
query II rowsort label-9837
SELECT 75 - - CAST ( NULL AS INTEGER ) AS col1, + 29 + + ( 71 )
----
NULL
100

query I rowsort
SELECT 94 * + + 0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9839
SELECT ALL - MIN( + - 10 )
----
10

skipif mysql # not compatible
query I rowsort label-9839
SELECT ALL - MIN ( + - 10 )
----
10

query I rowsort
SELECT ALL 62 + - + 87 col2
----
-25

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9841
SELECT - CAST( NULL AS SIGNED ) / + + 25 - + 10
----
NULL

skipif mysql # not compatible
query I rowsort label-9841
SELECT - CAST ( NULL AS INTEGER ) / + + 25 - + 10
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9842
SELECT DISTINCT - CASE - COUNT( * ) WHEN - + 2 * - + COUNT( * ) + 42 * + MIN( DISTINCT ( - 8 ) ) - + 48 THEN NULL WHEN - 16 + - 93 THEN NULL ELSE + - 53 * 5 END
----
265

skipif mysql # not compatible
query I rowsort label-9842
SELECT DISTINCT - CASE - COUNT ( * ) WHEN - + 2 * - + COUNT ( * ) + 42 * + MIN ( DISTINCT ( - 8 ) ) - + 48 THEN NULL WHEN - 16 + - 93 THEN NULL ELSE + - 53 * 5 END
----
265

query I rowsort
SELECT ALL 56 + - 60 + + 20 + 72 + + + 42 * - 56 + - - 20 AS col1
----
-2244

onlyif mysql # aggregate syntax: 
query I rowsort label-9844
SELECT ALL 91 * - + COUNT( * ) * - 59 AS col0
----
5369

skipif mysql # not compatible
query I rowsort label-9844
SELECT ALL 91 * - + COUNT ( * ) * - 59 AS col0
----
5369

onlyif mysql # aggregate syntax: 
query I rowsort label-9845
SELECT DISTINCT - MIN( - 27 ) AS col2
----
27

skipif mysql # not compatible
query I rowsort label-9845
SELECT DISTINCT - MIN ( - 27 ) AS col2
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-9846
SELECT ALL + ( + ( CASE 53 WHEN 40 + + - COUNT( + 55 ) + - - 64 + 46 THEN - 10 ELSE NULL END ) ) + - 79
----
NULL

skipif mysql # not compatible
query I rowsort label-9846
SELECT ALL + ( + ( CASE 53 WHEN 40 + + - COUNT ( + 55 ) + - - 64 + 46 THEN - 10 ELSE NULL END ) ) + - 79
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9847
SELECT CAST( NULL AS DECIMAL ) + + 91 * 36 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9847
SELECT CAST ( NULL AS REAL ) + + 91 * 36 col1
----
NULL

query I rowsort
SELECT 54 - + 9
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-9849
SELECT ALL - 97 + - 88 * COUNT( DISTINCT - 96 ) + 87 AS col2
----
-98

skipif mysql # not compatible
query I rowsort label-9849
SELECT ALL - 97 + - 88 * COUNT ( DISTINCT - 96 ) + 87 AS col2
----
-98

onlyif mysql # aggregate syntax: 
query II rowsort label-9850
SELECT DISTINCT - - COUNT( DISTINCT - - 5 ) AS col2, - 97 AS col1
----
1
-97

skipif mysql # not compatible
query II rowsort label-9850
SELECT DISTINCT - - COUNT ( DISTINCT - - 5 ) AS col2, - 97 AS col1
----
1
-97

query I rowsort
SELECT + 88 * - 71 + 50 AS col0
----
-6198

query I rowsort
SELECT DISTINCT - + ( 7 )
----
-7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9853
SELECT ALL + ( + 99 ) DIV - 17 + ( - COUNT( * ) ) * 94 * - 7 * - + 42 + + 3
----
-27638

skipif mysql # not compatible
query I rowsort label-9853
SELECT ALL + ( + 99 ) / - 17 + ( - COUNT ( * ) ) * 94 * - 7 * - + 42 + + 3
----
-27638

onlyif mysql # aggregate syntax: 
query I rowsort label-9854
SELECT MAX( ALL 85 ) + 58 * - 63 + + 42
----
-3527

skipif mysql # not compatible
query I rowsort label-9854
SELECT MAX ( ALL 85 ) + 58 * - 63 + + 42
----
-3527

onlyif mysql # aggregate syntax: 
query I rowsort label-9855
SELECT + COUNT( * ) * - COUNT( * ) * + 26 - 63 * 17 + + 39 * - 71
----
-3866

skipif mysql # not compatible
query I rowsort label-9855
SELECT + COUNT ( * ) * - COUNT ( * ) * + 26 - 63 * 17 + + 39 * - 71
----
-3866

onlyif mysql # aggregate syntax: 
query I rowsort label-9856
SELECT - MIN( + + 79 ) AS col1
----
-79

skipif mysql # not compatible
query I rowsort label-9856
SELECT - MIN ( + + 79 ) AS col1
----
-79

onlyif mysql # aggregate syntax: 
query I rowsort label-9857
SELECT ALL - - 29 * - ( + 62 ) + + COUNT( * ) AS col0
----
-1797

skipif mysql # not compatible
query I rowsort label-9857
SELECT ALL - - 29 * - ( + 62 ) + + COUNT ( * ) AS col0
----
-1797

query I rowsort
SELECT DISTINCT + 54 - 49 * - 31 AS col1
----
1573

onlyif mysql # aggregate syntax: 
query II rowsort label-9859
SELECT - - NULLIF ( 81, - + 77 + - MIN( + 50 ) ) AS col0, 38 + - + 9
----
81
29

skipif mysql # not compatible
query II rowsort label-9859
SELECT - - NULLIF ( 81, - + 77 + - MIN ( + 50 ) ) AS col0, 38 + - + 9
----
81
29

onlyif mysql # aggregate syntax: 
query II rowsort label-9860
SELECT ALL + COUNT( + - 84 ), CASE + 2 WHEN - - 67 THEN NULL WHEN - 31 THEN + NULLIF ( 78, + + COUNT( * ) / - ( 70 ) - - - 30 + + 46 + - 11 * + - ( + + 71 ) ) / + 84 - + 86 + 50 - + 78 * + 56 * - - MIN( DISTINCT + 43 ) - - 74 END / - 74 AS col2
----
1
NULL

skipif mysql # not compatible
query II rowsort label-9860
SELECT ALL + COUNT ( + - 84 ), CASE + 2 WHEN - - 67 THEN NULL WHEN - 31 THEN + NULLIF ( 78, + + COUNT ( * ) / - ( 70 ) - - - 30 + + 46 + - 11 * + - ( + + 71 ) ) / + 84 - + 86 + 50 - + 78 * + 56 * - - MIN ( DISTINCT + 43 ) - - 74 END / - 74 AS col2
----
1
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9861
SELECT ALL - CAST( 1 AS SIGNED ) * + 17 AS col1
----
-17

skipif mysql # not compatible
query I rowsort label-9861
SELECT ALL - CAST ( 1 AS INTEGER ) * + 17 AS col1
----
-17

query I rowsort
SELECT DISTINCT - + 87 * + 32
----
-2784

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9863
SELECT 68 / 69 * CAST( NULL AS SIGNED ) * - + COALESCE ( + 7, - 47, - COUNT( * ) + 47 ) AS col0, 47 * 76 + - + 37
----
NULL
3535

skipif mysql # not compatible
query II rowsort label-9863
SELECT 68 / 69 * CAST ( NULL AS INTEGER ) * - + COALESCE ( + 7, - 47, - COUNT ( * ) + 47 ) AS col0, 47 * 76 + - + 37
----
NULL
3535

query I rowsort
SELECT 4 * + 25
----
100

onlyif mysql # aggregate syntax: 
query II rowsort label-9865
SELECT - 99, COUNT( * ) + + ( + 70 ) AS col0
----
-99
71

skipif mysql # not compatible
query II rowsort label-9865
SELECT - 99, COUNT ( * ) + + ( + 70 ) AS col0
----
-99
71

query II rowsort
SELECT 75 AS col0, 94 AS col2
----
75
94

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9867
SELECT 94 + CAST( NULL AS SIGNED ) - + 2 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9867
SELECT 94 + CAST ( NULL AS INTEGER ) - + 2 AS col0
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-9868
SELECT DISTINCT + 82 + - 47 + + 94 + + CAST( NULL AS DECIMAL ) * + ( - 50 ) * + + ( - + 56 ), + ( - + 35 ) col2
----
NULL
-35

skipif mysql # not compatible
query II rowsort label-9868
SELECT DISTINCT + 82 + - 47 + + 94 + + CAST ( NULL AS REAL ) * + ( - 50 ) * + + ( - + 56 ), + ( - + 35 ) col2
----
NULL
-35

query I rowsort
SELECT DISTINCT 86 * + + 28 AS col2
----
2408

onlyif mysql # aggregate syntax: 
query I rowsort label-9870
SELECT ALL + NULLIF ( + + ( - COUNT( DISTINCT 63 ) ), - 8 + - MAX( + 79 ) * - 40 - COALESCE ( + + 3, + + 50 + + + 34 ) ) * 1 + 92 + + COUNT( * )
----
92

skipif mysql # not compatible
query I rowsort label-9870
SELECT ALL + NULLIF ( + + ( - COUNT ( DISTINCT 63 ) ), - 8 + - MAX ( + 79 ) * - 40 - COALESCE ( + + 3, + + 50 + + + 34 ) ) * 1 + 92 + + COUNT ( * )
----
92

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9871
SELECT ALL 15 * + CAST( 27 AS SIGNED )
----
405

skipif mysql # not compatible
query I rowsort label-9871
SELECT ALL 15 * + CAST ( 27 AS INTEGER )
----
405

query I rowsort
SELECT DISTINCT 50 * - 62 AS col2
----
-3100

onlyif mysql # aggregate syntax: 
query II rowsort label-9873
SELECT ALL - 83 col2, 1 + - 42 * - COUNT( * )
----
-83
43

skipif mysql # not compatible
query II rowsort label-9873
SELECT ALL - 83 col2, 1 + - 42 * - COUNT ( * )
----
-83
43

query I rowsort
SELECT DISTINCT - 4 * 28 * - 71 + + 91 AS col1
----
8043

query I rowsort
SELECT DISTINCT - - 32 * 28 AS col1
----
896

onlyif mysql # aggregate syntax: 
query II rowsort label-9876
SELECT ALL + + COUNT( * ) AS col1, - 88 AS col1
----
1
-88

skipif mysql # not compatible
query II rowsort label-9876
SELECT ALL + + COUNT ( * ) AS col1, - 88 AS col1
----
1
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-9877
SELECT ALL - + NULLIF ( + - 52, + - 3 + 90 + 58 + 27 / 61 ) * + + 14 - + COUNT( + 37 ) AS col1
----
727

skipif mysql # not compatible
query I rowsort label-9877
SELECT ALL - + NULLIF ( + - 52, + - 3 + 90 + 58 + 27 / 61 ) * + + 14 - + COUNT ( + 37 ) AS col1
----
727

onlyif mysql # aggregate syntax: 
query I rowsort label-9878
SELECT + + 85 * - - COUNT( * ) AS col2
----
85

skipif mysql # not compatible
query I rowsort label-9878
SELECT + + 85 * - - COUNT ( * ) AS col2
----
85

query I rowsort
SELECT DISTINCT 90 * - 80
----
-7200

onlyif mysql # aggregate syntax: 
query II rowsort label-9880
SELECT ALL + CASE 26 WHEN - + MIN( ALL + 92 ) THEN 30 ELSE NULL END AS col1, COUNT( * )
----
NULL
1

skipif mysql # not compatible
query II rowsort label-9880
SELECT ALL + CASE 26 WHEN - + MIN ( ALL + 92 ) THEN 30 ELSE NULL END AS col1, COUNT ( * )
----
NULL
1

query I rowsort
SELECT DISTINCT + + ( 46 ) AS col0
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-9882
SELECT - 5 * - ( COUNT( * ) ) AS col1
----
5

skipif mysql # not compatible
query I rowsort label-9882
SELECT - 5 * - ( COUNT ( * ) ) AS col1
----
5

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9883
SELECT ALL + 59 DIV - + SUM( + - 3 )
----
19

skipif mysql # not compatible
query I rowsort label-9883
SELECT ALL + 59 / - + SUM ( + - 3 )
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-9884
SELECT - COALESCE ( 57, + 79 * 23 + 71 * 92, + + MIN( + 58 ) ) AS col1
----
-57

skipif mysql # not compatible
query I rowsort label-9884
SELECT - COALESCE ( 57, + 79 * 23 + 71 * 92, + + MIN ( + 58 ) ) AS col1
----
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-9885
SELECT ALL MAX( DISTINCT - 28 )
----
-28

skipif mysql # not compatible
query I rowsort label-9885
SELECT ALL MAX ( DISTINCT - 28 )
----
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-9886
SELECT - 36 * + - CASE + CASE - 61 WHEN + 59 THEN - + 9 * + 43 + + - 82 ELSE NULL END WHEN 45 * + 89 THEN - COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-9886
SELECT - 36 * + - CASE + CASE - 61 WHEN + 59 THEN - + 9 * + 43 + + - 82 ELSE NULL END WHEN 45 * + 89 THEN - COUNT ( * ) END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9887
SELECT - COUNT( * ) * - - 98 AS col2
----
-98

skipif mysql # not compatible
query I rowsort label-9887
SELECT - COUNT ( * ) * - - 98 AS col2
----
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-9888
SELECT ALL CASE - 31 WHEN + - COUNT( * ) THEN - 15 WHEN - - AVG ( DISTINCT - 21 ) + + + 59 THEN NULL ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9888
SELECT ALL CASE - 31 WHEN + - COUNT ( * ) THEN - 15 WHEN - - AVG ( DISTINCT - 21 ) + + + 59 THEN NULL ELSE NULL END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query III rowsort label-9889
SELECT 22 AS col1, + CASE - ( 10 ) WHEN 10 THEN - - 51 WHEN 20 - - 69 THEN 75 END AS col2, - 2 - + ( COUNT( * ) )
----
22
NULL
-3

skipif mysql # not compatible
query III rowsort label-9889
SELECT 22 AS col1, + CASE - ( 10 ) WHEN 10 THEN - - 51 WHEN 20 - - 69 THEN 75 END AS col2, - 2 - + ( COUNT ( * ) )
----
22
NULL
-3

query II rowsort
SELECT ALL + 4 + + 50 + - 0 * + 42 AS col2, 73 AS col1
----
54
73

query I rowsort
SELECT ALL 45 + - 70 - - 43 * 96 AS col2
----
4103

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9892
SELECT - 10 + + 0, - ( - 78 ) + CAST( + 50 AS SIGNED ) col2
----
-10
128

skipif mysql # not compatible
query II rowsort label-9892
SELECT - 10 + + 0, - ( - 78 ) + CAST ( + 50 AS INTEGER ) col2
----
-10
128

onlyif mysql # aggregate syntax: 
query I rowsort label-9893
SELECT ALL CASE - 15 WHEN 18 THEN - - COUNT( - - 14 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-9893
SELECT ALL CASE - 15 WHEN 18 THEN - - COUNT ( - - 14 ) END
----
NULL

query I rowsort
SELECT DISTINCT ( + - 30 ) AS col0
----
-30

query I rowsort
SELECT ALL - 5 + - 21
----
-26

query I rowsort
SELECT - 15 - + 55 AS col0
----
-70

query I rowsort
SELECT - 74 * - 11 AS col1
----
814

onlyif mysql # DIV for integer division: 
query I rowsort label-9898
SELECT DISTINCT ( - 72 ) DIV + 17 - + ( + 34 )
----
-38

skipif mysql # not compatible
query I rowsort label-9898
SELECT DISTINCT ( - 72 ) / + 17 - + ( + 34 )
----
-38

query I rowsort
SELECT DISTINCT + ( - + 21 )
----
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-9900
SELECT ALL 38 * NULLIF ( 37, COALESCE ( - 28, + 42, MAX( DISTINCT - NULLIF ( + + 33, - 80 * + 12 * - + 80 * + 89 + 28 * - 39 ) ) ) * - 39 ) * + 14
----
19684

skipif mysql # not compatible
query I rowsort label-9900
SELECT ALL 38 * NULLIF ( 37, COALESCE ( - 28, + 42, MAX ( DISTINCT - NULLIF ( + + 33, - 80 * + 12 * - + 80 * + 89 + 28 * - 39 ) ) ) * - 39 ) * + 14
----
19684

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9901
SELECT ALL + COUNT( * ) DIV + ( 1 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-9901
SELECT ALL + COUNT ( * ) / + ( 1 ) AS col1
----
1

query I rowsort
SELECT + - NULLIF ( + + 40, 19 * + 46 * - ( + 56 ) ) - + + 59 AS col2
----
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-9903
SELECT ALL - + 39 * - - 72 - - COUNT( * )
----
-2807

skipif mysql # not compatible
query I rowsort label-9903
SELECT ALL - + 39 * - - 72 - - COUNT ( * )
----
-2807

query I rowsort
SELECT ALL + - 50 * + - 61
----
3050

query I rowsort
SELECT - + 31 + + 18
----
-13

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9906
SELECT + CASE - COALESCE ( + 56, + 76 + 79, + 52 ) WHEN + CAST( NULL AS SIGNED ) + + 74 * - 42 THEN - NULLIF ( + COUNT( * ), - 68 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-9906
SELECT + CASE - COALESCE ( + 56, + 76 + 79, + 52 ) WHEN + CAST ( NULL AS INTEGER ) + + 74 * - 42 THEN - NULLIF ( + COUNT ( * ), - 68 ) END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9907
SELECT - COUNT( * ) + - COUNT( DISTINCT + + 86 ) AS col1
----
-2

skipif mysql # not compatible
query I rowsort label-9907
SELECT - COUNT ( * ) + - COUNT ( DISTINCT + + 86 ) AS col1
----
-2

query I rowsort
SELECT ( 47 ) * + 22 + 99 + - CASE WHEN 91 IS NULL THEN - AVG ( + 45 ) END + 51
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9909
SELECT + 31 - - COUNT( * ) AS col0
----
32

skipif mysql # not compatible
query I rowsort label-9909
SELECT + 31 - - COUNT ( * ) AS col0
----
32

query II rowsort
SELECT ALL + 95, 39 AS col1
----
95
39

onlyif mysql # aggregate syntax: 
query I rowsort label-9911
SELECT ALL + MIN( ALL - 16 )
----
-16

skipif mysql # not compatible
query I rowsort label-9911
SELECT ALL + MIN ( ALL - 16 )
----
-16

query I rowsort
SELECT + 89 + - 7
----
82

onlyif mysql # aggregate syntax: 
query II rowsort label-9913
SELECT ALL + + 58, MAX( ALL + + 74 ) AS col0
----
58
74

skipif mysql # not compatible
query II rowsort label-9913
SELECT ALL + + 58, MAX ( ALL + + 74 ) AS col0
----
58
74

query II rowsort
SELECT DISTINCT + 44 AS col1, 61
----
44
61

onlyif mysql # aggregate syntax: 
query I rowsort label-9915
SELECT ALL + + COUNT( 58 )
----
1

skipif mysql # not compatible
query I rowsort label-9915
SELECT ALL + + COUNT ( 58 )
----
1

query I rowsort
SELECT ALL + 30 * - - 60
----
1800

onlyif mysql # aggregate syntax: 
query I rowsort label-9917
SELECT + + 24 + - COUNT( * ) + - 96
----
-73

skipif mysql # not compatible
query I rowsort label-9917
SELECT + + 24 + - COUNT ( * ) + - 96
----
-73

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9918
SELECT + 51 DIV COUNT( * ) AS col0
----
51

skipif mysql # not compatible
query I rowsort label-9918
SELECT + 51 / COUNT ( * ) AS col0
----
51

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9919
SELECT DISTINCT 20 * CAST( NULL AS DECIMAL ) + - 17 + - - 34 + 9 + 60 + - + 76 * - COALESCE ( + + 80, + - 34, - - 18, + + ( - 92 ) / 12 ) * 63 * 18 + 94 / + 48 / - + 61 * 46 / + NULLIF ( 60, 70 ) + + - COUNT( 45 ) / 61 + + - 88 * + 39
----
NULL

skipif mysql # not compatible
query I rowsort label-9919
SELECT DISTINCT 20 * CAST ( NULL AS REAL ) + - 17 + - - 34 + 9 + 60 + - + 76 * - COALESCE ( + + 80, + - 34, - - 18, + + ( - 92 ) / 12 ) * 63 * 18 + 94 / + 48 / - + 61 * 46 / + NULLIF ( 60, 70 ) + + - COUNT ( 45 ) / 61 + + - 88 * + 39
----
NULL

query II rowsort
SELECT - 69 AS col1, 83 * - + 67
----
-69
-5561

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9921
SELECT - CAST( - ( + 17 ) AS SIGNED ) AS col0
----
17

skipif mysql # not compatible
query I rowsort label-9921
SELECT - CAST ( - ( + 17 ) AS INTEGER ) AS col0
----
17

onlyif mysql # aggregate syntax: 
query II rowsort label-9922
SELECT ALL MIN( + 64 ), + 87 AS col0
----
64
87

skipif mysql # not compatible
query II rowsort label-9922
SELECT ALL MIN ( + 64 ), + 87 AS col0
----
64
87

onlyif mysql # aggregate syntax: 
query II rowsort label-9923
SELECT - 51 + - 52 AS col0, + 63 - - COUNT( * )
----
-103
64

skipif mysql # not compatible
query II rowsort label-9923
SELECT - 51 + - 52 AS col0, + 63 - - COUNT ( * )
----
-103
64

onlyif mysql # aggregate syntax: 
query II rowsort label-9924
SELECT - 10 * + - 29, COUNT( * ) * - + 64 AS col1
----
290
-64

skipif mysql # not compatible
query II rowsort label-9924
SELECT - 10 * + - 29, COUNT ( * ) * - + 64 AS col1
----
290
-64

onlyif mysql # DIV for integer division: 
query I rowsort label-9925
SELECT ALL 16 DIV ( - - NULLIF ( 93, + + 5 ) ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9925
SELECT ALL 16 / ( - - NULLIF ( 93, + + 5 ) ) AS col0
----
0

query I rowsort
SELECT ALL 33 + - 5
----
28

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9927
SELECT - CAST( + + COUNT( * ) AS SIGNED ), 37 AS col2
----
-1
37

skipif mysql # not compatible
query II rowsort label-9927
SELECT - CAST ( + + COUNT ( * ) AS INTEGER ), 37 AS col2
----
-1
37

query I rowsort
SELECT + 15 + - ( - - 67 )
----
-52

query I rowsort
SELECT DISTINCT ( - - 68 ) AS col1
----
68

query I rowsort
SELECT DISTINCT - 1 - + 42
----
-43

query I rowsort
SELECT ALL + ( 16 ) * - 38 * 25
----
-15200

onlyif mysql # aggregate syntax: 
query II rowsort label-9932
SELECT DISTINCT + 56 * - 46 AS col2, - NULLIF ( CASE - COUNT( * ) WHEN + + 29 THEN - + 64 + + - 3 * + - ( - - 8 ) / + 61 * - 10 END, COUNT( * ) - + 27 )
----
-2576
NULL

skipif mysql # not compatible
query II rowsort label-9932
SELECT DISTINCT + 56 * - 46 AS col2, - NULLIF ( CASE - COUNT ( * ) WHEN + + 29 THEN - + 64 + + - 3 * + - ( - - 8 ) / + 61 * - 10 END, COUNT ( * ) - + 27 )
----
-2576
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9933
SELECT ALL + 20 - - + 17 * ( + 71 ) + COUNT( * ) col0
----
1228

skipif mysql # not compatible
query I rowsort label-9933
SELECT ALL + 20 - - + 17 * ( + 71 ) + COUNT ( * ) col0
----
1228

onlyif mysql # aggregate syntax: 
query II rowsort label-9934
SELECT ALL + 47 * + - 85 * + + 89 AS col2, COUNT( * )
----
-355555
1

skipif mysql # not compatible
query II rowsort label-9934
SELECT ALL + 47 * + - 85 * + + 89 AS col2, COUNT ( * )
----
-355555
1

onlyif mysql # DIV for integer division: 
query I rowsort label-9935
SELECT + 21 DIV - - ( + ( - - NULLIF ( 88, 33 ) ) ) + + 3
----
3

skipif mysql # not compatible
query I rowsort label-9935
SELECT + 21 / - - ( + ( - - NULLIF ( 88, 33 ) ) ) + + 3
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9936
SELECT - CAST( NULL AS SIGNED ) * + 39 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9936
SELECT - CAST ( NULL AS INTEGER ) * + 39 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9937
SELECT + NULLIF ( + 87, + - COUNT( * ) * - 45 ) AS col2
----
87

skipif mysql # not compatible
query I rowsort label-9937
SELECT + NULLIF ( + 87, + - COUNT ( * ) * - 45 ) AS col2
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-9938
SELECT ALL - ( + + COUNT( * ) ) * - COUNT( * ) * 33 AS col2
----
33

skipif mysql # not compatible
query I rowsort label-9938
SELECT ALL - ( + + COUNT ( * ) ) * - COUNT ( * ) * 33 AS col2
----
33

query I rowsort
SELECT DISTINCT 8 * + 85 * + 73 * - 46
----
-2283440

onlyif mysql # aggregate syntax: 
query I rowsort label-9940
SELECT ALL COUNT( * ) * 31 AS col1
----
31

skipif mysql # not compatible
query I rowsort label-9940
SELECT ALL COUNT ( * ) * 31 AS col1
----
31

query I rowsort
SELECT ALL - 64 * + 3
----
-192

onlyif mysql # aggregate syntax: 
query II rowsort label-9942
SELECT 31 * + + 72 AS col1, - NULLIF ( - MAX( DISTINCT + 48 ), + 96 ) * 97 AS col1
----
2232
4656

skipif mysql # not compatible
query II rowsort label-9942
SELECT 31 * + + 72 AS col1, - NULLIF ( - MAX ( DISTINCT + 48 ), + 96 ) * 97 AS col1
----
2232
4656

onlyif mysql # aggregate syntax: 
query I rowsort label-9943
SELECT DISTINCT + + ( - 19 ) * COUNT( * ) AS col1
----
-19

skipif mysql # not compatible
query I rowsort label-9943
SELECT DISTINCT + + ( - 19 ) * COUNT ( * ) AS col1
----
-19

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9944
SELECT - COUNT( * ) * - NULLIF ( 11, 53 - - CAST( + 55 AS SIGNED ) + - ( - + 58 ) * + CAST( - + 63 AS SIGNED ) * + - 71 - + AVG ( ALL + 71 ) * 25 + + + 73 ) col2
----
11

skipif mysql # not compatible
query I rowsort label-9944
SELECT - COUNT ( * ) * - NULLIF ( 11, 53 - - CAST ( + 55 AS INTEGER ) + - ( - + 58 ) * + CAST ( - + 63 AS INTEGER ) * + - 71 - + AVG ( ALL + 71 ) * 25 + + + 73 ) col2
----
11

query I rowsort
SELECT ALL + 73 + COALESCE ( 13, - 35 )
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-9946
SELECT ALL CASE + 60 WHEN + 94 THEN 93 WHEN + + 68 * + CASE 22 WHEN + - 46 / MIN( - 91 ) - + 82 - - COALESCE ( + - NULLIF ( 26, + + COUNT( * ) ), - + 63 * SUM( + 92 ) + - 2 ) * - 0 * 96 THEN - 4 / + COUNT( + + 38 ) WHEN - - 37 THEN NULL ELSE + + 64 - - COUNT( * ) * + 83 END + + 0 * 25 THEN NULL END + + COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9946
SELECT ALL CASE + 60 WHEN + 94 THEN 93 WHEN + + 68 * + CASE 22 WHEN + - 46 / MIN ( - 91 ) - + 82 - - COALESCE ( + - NULLIF ( 26, + + COUNT ( * ) ), - + 63 * SUM ( + 92 ) + - 2 ) * - 0 * 96 THEN - 4 / + COUNT ( + + 38 ) WHEN - - 37 THEN NULL ELSE + + 64 - - COUNT ( * ) * + 83 END + + 0 * 25 THEN NULL END + + COUNT ( * ) AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9947
SELECT ALL - CAST( SUM( DISTINCT CAST( - - 21 AS SIGNED ) ) AS SIGNED ) AS col1
----
-21

skipif mysql # not compatible
query I rowsort label-9947
SELECT ALL - CAST ( SUM ( DISTINCT CAST ( - - 21 AS INTEGER ) ) AS INTEGER ) AS col1
----
-21

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9948
SELECT 56 * - - 56 col1, CAST( NULL AS SIGNED ) * + - 40 AS col1
----
3136
NULL

skipif mysql # not compatible
query II rowsort label-9948
SELECT 56 * - - 56 col1, CAST ( NULL AS INTEGER ) * + - 40 AS col1
----
3136
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9949
SELECT - ( - 81 ) AS col1, COUNT( * ) * 23
----
81
23

skipif mysql # not compatible
query II rowsort label-9949
SELECT - ( - 81 ) AS col1, COUNT ( * ) * 23
----
81
23

onlyif mysql # aggregate syntax: 
query II rowsort label-9950
SELECT DISTINCT 48 AS col2, 31 + + COUNT( * )
----
48
32

skipif mysql # not compatible
query II rowsort label-9950
SELECT DISTINCT 48 AS col2, 31 + + COUNT ( * )
----
48
32

onlyif mysql # DIV for integer division: 
query I rowsort label-9951
SELECT DISTINCT 75 DIV + + 45 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-9951
SELECT DISTINCT 75 / + + 45 AS col0
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9952
SELECT 32 DIV + MAX( + - 60 )
----
0

skipif mysql # not compatible
query I rowsort label-9952
SELECT 32 / + MAX ( + - 60 )
----
0

query I rowsort
SELECT ALL 92 - - + 66 col2
----
158

onlyif mysql # aggregate syntax: 
query I rowsort label-9954
SELECT 3 * - + MAX( ( - 40 ) ) * - COUNT( * ) AS col0
----
-120

skipif mysql # not compatible
query I rowsort label-9954
SELECT 3 * - + MAX ( ( - 40 ) ) * - COUNT ( * ) AS col0
----
-120

onlyif mysql # aggregate syntax: 
query I rowsort label-9955
SELECT COUNT( * ) + + 1 * + 77 AS col2
----
78

skipif mysql # not compatible
query I rowsort label-9955
SELECT COUNT ( * ) + + 1 * + 77 AS col2
----
78

query II rowsort
SELECT ALL 63 col2, 14 AS col2
----
63
14

onlyif mysql # aggregate syntax: 
query II rowsort label-9957
SELECT - 64, - COUNT( * ) AS col2
----
-64
-1

skipif mysql # not compatible
query II rowsort label-9957
SELECT - 64, - COUNT ( * ) AS col2
----
-64
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-9958
SELECT 22 + - - NULLIF ( + + 56, + 72 ) * + - 65 + + 82 AS col1, MIN( ALL + ( - CASE + 37 WHEN + COALESCE ( 31, - ( - 97 ) ) THEN NULL ELSE 34 END ) ) * - + COUNT( DISTINCT + 92 )
----
-3536
34

skipif mysql # not compatible
query II rowsort label-9958
SELECT 22 + - - NULLIF ( + + 56, + 72 ) * + - 65 + + 82 AS col1, MIN ( ALL + ( - CASE + 37 WHEN + COALESCE ( 31, - ( - 97 ) ) THEN NULL ELSE 34 END ) ) * - + COUNT ( DISTINCT + 92 )
----
-3536
34

onlyif mysql # aggregate syntax: 
query I rowsort label-9959
SELECT 28 * + COUNT( * ) AS col1
----
28

skipif mysql # not compatible
query I rowsort label-9959
SELECT 28 * + COUNT ( * ) AS col1
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-9960
SELECT DISTINCT 91 * COUNT( * ) * - + 76 AS col0
----
-6916

skipif mysql # not compatible
query I rowsort label-9960
SELECT DISTINCT 91 * COUNT ( * ) * - + 76 AS col0
----
-6916

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9961
SELECT 71 AS col0, 81 + - 69 DIV + 26 + COUNT( * ) col0
----
71
80

skipif mysql # not compatible
query II rowsort label-9961
SELECT 71 AS col0, 81 + - 69 / + 26 + COUNT ( * ) col0
----
71
80

query I rowsort
SELECT ( - 87 ) - - - 20 AS col1
----
-107

query I rowsort
SELECT 73 / - + CASE + - 4 WHEN - 70 THEN - + 98 * 50 + + 86 + 94 / 96 + ( - + 22 ) END / 13 col0
----
NULL

query I rowsort
SELECT ( - 64 ) - + 9
----
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-9965
SELECT ALL + COALESCE ( + - COUNT( * ), - 65, 19 ) * - COALESCE ( - ( - 65 ), - 16 ) * COUNT( * ) * 90 * - + 15 * + - 53 + + + ( + 14 )
----
4650764

skipif mysql # not compatible
query I rowsort label-9965
SELECT ALL + COALESCE ( + - COUNT ( * ), - 65, 19 ) * - COALESCE ( - ( - 65 ), - 16 ) * COUNT ( * ) * 90 * - + 15 * + - 53 + + + ( + 14 )
----
4650764

query II rowsort
SELECT ALL - + 74 col2, - 19 + - 70 AS col2
----
-74
-89

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9967
SELECT + - CAST( - CAST( - - MIN( + - 65 ) AS SIGNED ) AS SIGNED ) AS col2
----
-65

skipif mysql # not compatible
query I rowsort label-9967
SELECT + - CAST ( - CAST ( - - MIN ( + - 65 ) AS INTEGER ) AS INTEGER ) AS col2
----
-65

query II rowsort
SELECT ALL - 63 AS col0, + 47 AS col2
----
-63
47

query I rowsort
SELECT ALL - 63 + + 97 AS col1
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-9970
SELECT ALL - + 54 * 11 * CASE + + 72 WHEN - ( + 33 ) + + + COUNT( * ) THEN + 37 ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9970
SELECT ALL - + 54 * 11 * CASE + + 72 WHEN - ( + 33 ) + + + COUNT ( * ) THEN + 37 ELSE NULL END AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9971
SELECT DISTINCT - 35 + CAST( 88 AS SIGNED )
----
53

skipif mysql # not compatible
query I rowsort label-9971
SELECT DISTINCT - 35 + CAST ( 88 AS INTEGER )
----
53

query I rowsort
SELECT - 24 * - 13 * 17
----
5304

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9973
SELECT COUNT( * ) * - COUNT( * ) + + 59 + + - CAST( - 64 AS SIGNED ) + - 65 * - + MIN( 35 ) AS col1, + 26
----
2397
26

skipif mysql # not compatible
query II rowsort label-9973
SELECT COUNT ( * ) * - COUNT ( * ) + + 59 + + - CAST ( - 64 AS INTEGER ) + - 65 * - + MIN ( 35 ) AS col1, + 26
----
2397
26

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9974
SELECT ALL - + 78 + - MAX( - + 78 ) + - 24 * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9974
SELECT ALL - + 78 + - MAX ( - + 78 ) + - 24 * - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT + 46 + 71 col0
----
117

onlyif mysql # aggregate syntax: 
query I rowsort label-9976
SELECT ALL - + 86 + + - COUNT( DISTINCT + 70 )
----
-87

skipif mysql # not compatible
query I rowsort label-9976
SELECT ALL - + 86 + + - COUNT ( DISTINCT + 70 )
----
-87

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9977
SELECT ALL + + 90 + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9977
SELECT ALL + + 90 + CAST ( NULL AS INTEGER )
----
NULL

query II rowsort
SELECT + - 2 AS col1, + 61
----
-2
61

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9979
SELECT ALL - COUNT( * ) AS col2, - CAST( + 72 AS SIGNED )
----
-1
-72

skipif mysql # not compatible
query II rowsort label-9979
SELECT ALL - COUNT ( * ) AS col2, - CAST ( + 72 AS INTEGER )
----
-1
-72

query I rowsort
SELECT ALL 26 + - + COALESCE ( + 69, 26, + 40 + - 69 * + + 79 ) col2
----
-43

onlyif mysql # aggregate syntax: 
query II rowsort label-9981
SELECT ALL - ( COUNT( * ) ) AS col0, 54 * 54
----
-1
2916

skipif mysql # not compatible
query II rowsort label-9981
SELECT ALL - ( COUNT ( * ) ) AS col0, 54 * 54
----
-1
2916

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9982
SELECT DISTINCT - COUNT( * ) - + + CAST( NULL AS SIGNED ) * - - 60 / 26
----
NULL

skipif mysql # not compatible
query I rowsort label-9982
SELECT DISTINCT - COUNT ( * ) - + + CAST ( NULL AS INTEGER ) * - - 60 / 26
----
NULL

query I rowsort
SELECT DISTINCT + 73 * - - 52 * + 19 AS col2
----
72124

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9984
SELECT ALL - ( 39 ) - ( + + 86 ) + 71 DIV - COUNT( DISTINCT - 87 ) + - + ( - 46 ) + 7 + 48 AS col2
----
-95

skipif mysql # not compatible
query I rowsort label-9984
SELECT ALL - ( 39 ) - ( + + 86 ) + 71 / - COUNT ( DISTINCT - 87 ) + - + ( - 46 ) + 7 + 48 AS col2
----
-95

onlyif mysql # DIV for integer division: 
query II rowsort label-9985
SELECT 3 DIV + 79, + 93 AS col2
----
0
93

skipif mysql # not compatible
query II rowsort label-9985
SELECT 3 / + 79, + 93 AS col2
----
0
93

query I rowsort
SELECT 41 + - 43 * + + 94
----
-4001

query I rowsort
SELECT 12 * - + 15 * - 7
----
1260

query I rowsort
SELECT 48 * + 69
----
3312

query I rowsort
SELECT ALL 39 - + ( 65 )
----
-26

query I rowsort
SELECT + 44 * - 56
----
-2464

query I rowsort
SELECT ALL COALESCE ( + 41, + + 4 )
----
41

query I rowsort
SELECT DISTINCT 74 * + 94 AS col1
----
6956

query I rowsort
SELECT - 8 * + 99
----
-792

query I rowsort
SELECT + 14 * 19 AS col0
----
266

onlyif mysql # aggregate syntax: 
query I rowsort label-9995
SELECT DISTINCT 38 * + ( COUNT( * ) )
----
38

skipif mysql # not compatible
query I rowsort label-9995
SELECT DISTINCT 38 * + ( COUNT ( * ) )
----
38

query I rowsort
SELECT + 61 - 17 * 79
----
-1282

query I rowsort
SELECT ALL 73 * - 41 AS col1
----
-2993

query I rowsort
SELECT + 78 + + 34
----
112

onlyif mysql # aggregate syntax: 
query II rowsort label-9999
SELECT ALL - - COUNT( * ) + - 35 AS col0, 21 AS col1
----
-34
21

skipif mysql # not compatible
query II rowsort label-9999
SELECT ALL - - COUNT ( * ) + - 35 AS col0, 21 AS col1
----
-34
21

